Version 1.7.24.
[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.24\n"
10 "Report-Msgid-Bugs-To: libguestfs@redhat.com\n"
11 "POT-Creation-Date: 2010-12-16 23:16+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:985 ../src/guestfs.pod:989 ../src/guestfs.pod:993 ../src/guestfs.pod:998 ../src/guestfs.pod:1006 ../src/guestfs.pod:1025 ../src/guestfs.pod:1033 ../src/guestfs.pod:1055 ../src/guestfs.pod:1059 ../src/guestfs.pod:1063 ../src/guestfs.pod:1067 ../src/guestfs.pod:1071 ../src/guestfs.pod:1075 ../src/guestfs.pod:1557 ../src/guestfs.pod:1562 ../src/guestfs.pod:1566 ../src/guestfs.pod:1676 ../src/guestfs.pod:1681 ../src/guestfs.pod:1685 ../src/guestfs.pod:2037 ../src/guestfs.pod:2043 ../src/guestfs.pod:2048 ../src/guestfs.pod:2054 ../src/guestfs.pod:2166 ../src/guestfs.pod:2170 ../src/guestfs.pod:2174 ../src/guestfs.pod:2178 ../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:1178 ../src/guestfs.pod:1309
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:1182 ../src/guestfs.pod:1313
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:1319
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: =head3
1176 #: ../src/guestfs.pod:590
1177 msgid "DRIVE LETTERS AND PATHS"
1178 msgstr ""
1179
1180 # type: textblock
1181 #: ../src/guestfs.pod:592
1182 msgid ""
1183 "DOS and Windows still use drive letters, and the filesystems are always "
1184 "treated as case insensitive by Windows itself, and therefore you might find "
1185 "a Windows configuration file referring to a path like "
1186 "C<c:\\windows\\system32>.  When the filesystem is mounted in libguestfs, "
1187 "that directory might be referred to as C</WINDOWS/System32>."
1188 msgstr ""
1189
1190 # type: textblock
1191 #: ../src/guestfs.pod:598
1192 msgid ""
1193 "Drive letter mappings are outside the scope of libguestfs.  You have to use "
1194 "libguestfs to read the appropriate Windows Registry and configuration files, "
1195 "to determine yourself how drives are mapped (see also L<hivex(3)> and "
1196 "L<virt-inspector(1)>)."
1197 msgstr ""
1198
1199 # type: textblock
1200 #: ../src/guestfs.pod:603
1201 msgid ""
1202 "Replacing backslash characters with forward slash characters is also outside "
1203 "the scope of libguestfs, but something that you can easily do."
1204 msgstr ""
1205
1206 # type: textblock
1207 #: ../src/guestfs.pod:606
1208 msgid ""
1209 "Where we can help is in resolving the case insensitivity of paths.  For "
1210 "this, call L</guestfs_case_sensitive_path>."
1211 msgstr ""
1212
1213 # type: =head3
1214 #: ../src/guestfs.pod:609
1215 msgid "ACCESSING THE WINDOWS REGISTRY"
1216 msgstr ""
1217
1218 # type: textblock
1219 #: ../src/guestfs.pod:611
1220 msgid ""
1221 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
1222 "files, through the library C<hivex> which is part of the libguestfs project "
1223 "although ships as a separate tarball.  You have to locate and download the "
1224 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
1225 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and "
1226 "L<virt-win-reg(1)> for more help on this issue."
1227 msgstr ""
1228
1229 # type: =head3
1230 #: ../src/guestfs.pod:619
1231 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
1232 msgstr ""
1233
1234 # type: textblock
1235 #: ../src/guestfs.pod:621
1236 msgid ""
1237 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
1238 "provide something which looks like a Linux symlink.  The way it tries to do "
1239 "the rewriting is described here:"
1240 msgstr ""
1241
1242 # type: textblock
1243 #: ../src/guestfs.pod:625
1244 msgid "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-symbolic-links/>"
1245 msgstr ""
1246
1247 # type: textblock
1248 #: ../src/guestfs.pod:627
1249 msgid ""
1250 "The essential problem is that ntfs-3g simply does not have enough "
1251 "information to do a correct job.  NTFS links can contain drive letters and "
1252 "references to external device GUIDs that ntfs-3g has no way of resolving.  "
1253 "It is almost certainly the case that libguestfs callers should ignore what "
1254 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
1255 msgstr ""
1256
1257 # type: textblock
1258 #: ../src/guestfs.pod:634
1259 msgid ""
1260 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use "
1261 "L</guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
1262 "attribute, and read the raw reparse data from that (you can find the format "
1263 "documented in various places around the web)."
1264 msgstr ""
1265
1266 # type: =head3
1267 #: ../src/guestfs.pod:639
1268 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
1269 msgstr ""
1270
1271 # type: textblock
1272 #: ../src/guestfs.pod:641
1273 msgid ""
1274 "There are other useful extended attributes that can be read from ntfs-3g "
1275 "filesystems (using L</guestfs_getxattr>).  See:"
1276 msgstr ""
1277
1278 # type: textblock
1279 #: ../src/guestfs.pod:644
1280 msgid "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
1281 msgstr ""
1282
1283 # type: =head2
1284 #: ../src/guestfs.pod:646
1285 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
1286 msgstr ""
1287
1288 # type: textblock
1289 #: ../src/guestfs.pod:648
1290 msgid ""
1291 "Although we don't want to discourage you from using the C API, we will "
1292 "mention here that the same API is also available in other languages."
1293 msgstr ""
1294
1295 # type: textblock
1296 #: ../src/guestfs.pod:651
1297 msgid ""
1298 "The API is broadly identical in all supported languages.  This means that "
1299 "the C call C<guestfs_mount(g,path)> is C<$g-E<gt>mount($path)> in Perl, "
1300 "C<g.mount(path)> in Python, and C<Guestfs.mount g path> in OCaml.  In other "
1301 "words, a straightforward, predictable isomorphism between each language."
1302 msgstr ""
1303
1304 # type: textblock
1305 #: ../src/guestfs.pod:657
1306 msgid ""
1307 "Error messages are automatically transformed into exceptions if the language "
1308 "supports it."
1309 msgstr ""
1310
1311 # type: textblock
1312 #: ../src/guestfs.pod:660
1313 msgid ""
1314 "We don't try to \"object orientify\" parts of the API in OO languages, "
1315 "although contributors are welcome to write higher level APIs above what we "
1316 "provide in their favourite languages if they wish."
1317 msgstr ""
1318
1319 # type: =item
1320 #: ../src/guestfs.pod:666
1321 msgid "B<C++>"
1322 msgstr ""
1323
1324 # type: textblock
1325 #: ../src/guestfs.pod:668
1326 msgid ""
1327 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
1328 "identical to the C API.  C++ classes and exceptions are not used."
1329 msgstr ""
1330
1331 # type: =item
1332 #: ../src/guestfs.pod:672
1333 msgid "B<C#>"
1334 msgstr ""
1335
1336 # type: textblock
1337 #: ../src/guestfs.pod:674
1338 msgid ""
1339 "The C# bindings are highly experimental.  Please read the warnings at the "
1340 "top of C<csharp/Libguestfs.cs>."
1341 msgstr ""
1342
1343 # type: =item
1344 #: ../src/guestfs.pod:677
1345 msgid "B<Haskell>"
1346 msgstr ""
1347
1348 # type: textblock
1349 #: ../src/guestfs.pod:679
1350 msgid ""
1351 "This is the only language binding that is working but incomplete.  Only "
1352 "calls which return simple integers have been bound in Haskell, and we are "
1353 "looking for help to complete this binding."
1354 msgstr ""
1355
1356 # type: =item
1357 #: ../src/guestfs.pod:683
1358 msgid "B<Java>"
1359 msgstr ""
1360
1361 # type: textblock
1362 #: ../src/guestfs.pod:685
1363 msgid ""
1364 "Full documentation is contained in the Javadoc which is distributed with "
1365 "libguestfs."
1366 msgstr ""
1367
1368 # type: =item
1369 #: ../src/guestfs.pod:688
1370 msgid "B<OCaml>"
1371 msgstr ""
1372
1373 # type: textblock
1374 #: ../src/guestfs.pod:690
1375 msgid "For documentation see L<guestfs-ocaml(3)>."
1376 msgstr ""
1377
1378 # type: =item
1379 #: ../src/guestfs.pod:692
1380 msgid "B<Perl>"
1381 msgstr ""
1382
1383 # type: textblock
1384 #: ../src/guestfs.pod:694
1385 msgid "For documentation see L<Sys::Guestfs(3)>."
1386 msgstr ""
1387
1388 # type: =item
1389 #: ../src/guestfs.pod:696
1390 msgid "B<PHP>"
1391 msgstr ""
1392
1393 # type: textblock
1394 #: ../src/guestfs.pod:698
1395 msgid ""
1396 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
1397 "the php-libguestfs package for your distribution."
1398 msgstr ""
1399
1400 # type: textblock
1401 #: ../src/guestfs.pod:701
1402 msgid "The PHP binding only works correctly on 64 bit machines."
1403 msgstr ""
1404
1405 # type: =item
1406 #: ../src/guestfs.pod:703
1407 msgid "B<Python>"
1408 msgstr ""
1409
1410 # type: textblock
1411 #: ../src/guestfs.pod:705
1412 msgid "For documentation see L<guestfs-python(3)>."
1413 msgstr ""
1414
1415 # type: =item
1416 #: ../src/guestfs.pod:707
1417 msgid "B<Ruby>"
1418 msgstr ""
1419
1420 # type: textblock
1421 #: ../src/guestfs.pod:709
1422 msgid "For documentation see L<guestfs-ruby(3)>."
1423 msgstr ""
1424
1425 # type: =item
1426 #: ../src/guestfs.pod:711
1427 msgid "B<shell scripts>"
1428 msgstr ""
1429
1430 # type: textblock
1431 #: ../src/guestfs.pod:713
1432 msgid "For documentation see L<guestfish(1)>."
1433 msgstr ""
1434
1435 # type: =head2
1436 #: ../src/guestfs.pod:717
1437 msgid "LIBGUESTFS GOTCHAS"
1438 msgstr ""
1439
1440 # type: textblock
1441 #: ../src/guestfs.pod:719
1442 msgid ""
1443 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
1444 "system [...] that works in the way it is documented but is counterintuitive "
1445 "and almost invites mistakes.\""
1446 msgstr ""
1447
1448 # type: textblock
1449 #: ../src/guestfs.pod:723
1450 msgid ""
1451 "Since we developed libguestfs and the associated tools, there are several "
1452 "things we would have designed differently, but are now stuck with for "
1453 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
1454 "release, you can expect these to change.  Beware of them."
1455 msgstr ""
1456
1457 # type: =item
1458 #: ../src/guestfs.pod:731
1459 msgid "Autosync / forgetting to sync."
1460 msgstr ""
1461
1462 # type: textblock
1463 #: ../src/guestfs.pod:733
1464 msgid ""
1465 "When modifying a filesystem from C or another language, you B<must> unmount "
1466 "all filesystems and call L</guestfs_sync> explicitly before you close the "
1467 "libguestfs handle.  You can also call:"
1468 msgstr ""
1469
1470 # type: verbatim
1471 #: ../src/guestfs.pod:737
1472 #, no-wrap
1473 msgid ""
1474 " guestfs_set_autosync (g, 1);\n"
1475 "\n"
1476 msgstr ""
1477
1478 # type: textblock
1479 #: ../src/guestfs.pod:739
1480 msgid ""
1481 "to have the unmount/sync done automatically for you when the handle 'g' is "
1482 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> "
1483 "q.v.)"
1484 msgstr ""
1485
1486 # type: textblock
1487 #: ../src/guestfs.pod:743
1488 msgid ""
1489 "If you forget to do this, then it is entirely possible that your changes "
1490 "won't be written out, or will be partially written, or (very rarely) that "
1491 "you'll get disk corruption."
1492 msgstr ""
1493
1494 # type: textblock
1495 #: ../src/guestfs.pod:747
1496 msgid ""
1497 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
1498 "guestfish scripts that forget to sync will work just fine, which can make "
1499 "this very puzzling if you are trying to debug a problem."
1500 msgstr ""
1501
1502 # type: textblock
1503 #: ../src/guestfs.pod:751
1504 msgid ""
1505 "Update: Autosync is enabled by default for all API users starting from "
1506 "libguestfs 1.5.24."
1507 msgstr ""
1508
1509 # type: =item
1510 #: ../src/guestfs.pod:754
1511 msgid "Mount option C<-o sync> should not be the default."
1512 msgstr ""
1513
1514 # type: textblock
1515 #: ../src/guestfs.pod:756
1516 msgid ""
1517 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
1518 "However C<-o sync> does not add any reliability benefit, but does have a "
1519 "very large performance impact."
1520 msgstr ""
1521
1522 # type: textblock
1523 #: ../src/guestfs.pod:760
1524 msgid ""
1525 "The work around is to use L</guestfs_mount_options> and set the mount "
1526 "options that you actually want to use."
1527 msgstr ""
1528
1529 # type: =item
1530 #: ../src/guestfs.pod:763
1531 msgid "Read-only should be the default."
1532 msgstr ""
1533
1534 # type: textblock
1535 #: ../src/guestfs.pod:765
1536 msgid ""
1537 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
1538 "specify I<--rw> if you want to make changes to the image."
1539 msgstr ""
1540
1541 # type: textblock
1542 #: ../src/guestfs.pod:768
1543 msgid "This would reduce the potential to corrupt live VM images."
1544 msgstr ""
1545
1546 # type: textblock
1547 #: ../src/guestfs.pod:770
1548 msgid ""
1549 "Note that many filesystems change the disk when you just mount and unmount, "
1550 "even if you didn't perform any writes.  You need to use "
1551 "L</guestfs_add_drive_ro> to guarantee that the disk is not changed."
1552 msgstr ""
1553
1554 # type: =item
1555 #: ../src/guestfs.pod:774
1556 msgid "guestfish command line is hard to use."
1557 msgstr ""
1558
1559 # type: textblock
1560 #: ../src/guestfs.pod:776
1561 msgid ""
1562 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
1563 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
1564 "exist, so it fails.  In earlier versions of guestfish the error message was "
1565 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
1566 "we should have used C<guestfish -c command> to run commands."
1567 msgstr ""
1568
1569 # type: =item
1570 #: ../src/guestfs.pod:783
1571 msgid "guestfish megabyte modifiers don't work right on all commands"
1572 msgstr ""
1573
1574 # type: textblock
1575 #: ../src/guestfs.pod:785
1576 msgid ""
1577 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
1578 "other modifiers).  What guestfish actually does is to multiply the number "
1579 "part by the modifier part and pass the result to the C API.  However this "
1580 "doesn't work for a few APIs which aren't expecting bytes, but are already "
1581 "expecting some other unit (eg. megabytes)."
1582 msgstr ""
1583
1584 # type: textblock
1585 #: ../src/guestfs.pod:792
1586 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
1587 msgstr ""
1588
1589 # type: verbatim
1590 #: ../src/guestfs.pod:794
1591 #, no-wrap
1592 msgid ""
1593 " lvcreate LV VG 100M\n"
1594 "\n"
1595 msgstr ""
1596
1597 # type: textblock
1598 #: ../src/guestfs.pod:796
1599 msgid ""
1600 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
1601 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
1602 "megabytes * megabytes) logical volume.  The error message you get from this "
1603 "is also a little obscure."
1604 msgstr ""
1605
1606 # type: textblock
1607 #: ../src/guestfs.pod:801
1608 msgid ""
1609 "This could be fixed in the generator by specially marking parameters and "
1610 "return values which take bytes or other units."
1611 msgstr ""
1612
1613 # type: =item
1614 #: ../src/guestfs.pod:804
1615 msgid "Ambiguity between devices and paths"
1616 msgstr ""
1617
1618 # type: textblock
1619 #: ../src/guestfs.pod:806
1620 msgid ""
1621 "There is a subtle ambiguity in the API between a device name "
1622 "(eg. C</dev/sdb2>) and a similar pathname.  A file might just happen to be "
1623 "called C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
1624 msgstr ""
1625
1626 # type: textblock
1627 #: ../src/guestfs.pod:811
1628 msgid ""
1629 "In the current API we usually resolve this ambiguity by having two separate "
1630 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
1631 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
1632 "detecting if the path supplied begins with C</dev/>."
1633 msgstr ""
1634
1635 # type: textblock
1636 #: ../src/guestfs.pod:817
1637 msgid ""
1638 "To avoid both the ambiguity and the need to duplicate some calls, we could "
1639 "make paths/devices into structured names.  One way to do this would be to "
1640 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
1641 "aspect of grub.  Another way would be to use a structured type, equivalent "
1642 "to this OCaml type:"
1643 msgstr ""
1644
1645 # type: verbatim
1646 #: ../src/guestfs.pod:823
1647 #, no-wrap
1648 msgid ""
1649 " type path = Path of string | Device of int | Partition of int * int\n"
1650 "\n"
1651 msgstr ""
1652
1653 # type: textblock
1654 #: ../src/guestfs.pod:825
1655 msgid "which would allow you to pass arguments like:"
1656 msgstr ""
1657
1658 # type: verbatim
1659 #: ../src/guestfs.pod:827
1660 #, no-wrap
1661 msgid ""
1662 " Path \"/foo/bar\"\n"
1663 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
1664 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
1665 " Path \"/dev/sdb2\"    (* not a device *)\n"
1666 "\n"
1667 msgstr ""
1668
1669 # type: textblock
1670 #: ../src/guestfs.pod:832
1671 msgid ""
1672 "As you can see there are still problems to resolve even with this "
1673 "representation.  Also consider how it might work in guestfish."
1674 msgstr ""
1675
1676 # type: =head2
1677 #: ../src/guestfs.pod:837
1678 msgid "PROTOCOL LIMITS"
1679 msgstr ""
1680
1681 # type: textblock
1682 #: ../src/guestfs.pod:839
1683 msgid ""
1684 "Internally libguestfs uses a message-based protocol to pass API calls and "
1685 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
1686 "plenty more detail about this).  The maximum message size used by the "
1687 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
1688 "aware of this limit.  The API calls which may be affected are individually "
1689 "documented, with a link back to this section of the documentation."
1690 msgstr ""
1691
1692 # type: textblock
1693 #: ../src/guestfs.pod:847
1694 msgid ""
1695 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
1696 "a simple string.  Because this string is at some point internally encoded as "
1697 "a message, the maximum size that it can return is slightly under 4 MB.  If "
1698 "the requested file is larger than this then you will get an error."
1699 msgstr ""
1700
1701 # type: textblock
1702 #: ../src/guestfs.pod:853
1703 msgid ""
1704 "In order to transfer large files into and out of the guest filesystem, you "
1705 "need to use particular calls that support this.  The sections L</UPLOADING> "
1706 "and L</DOWNLOADING> document how to do this."
1707 msgstr ""
1708
1709 # type: textblock
1710 #: ../src/guestfs.pod:857
1711 msgid ""
1712 "You might also consider mounting the disk image using our FUSE filesystem "
1713 "support (L<guestmount(1)>)."
1714 msgstr ""
1715
1716 # type: =head2
1717 #: ../src/guestfs.pod:860
1718 msgid "KEYS AND PASSPHRASES"
1719 msgstr ""
1720
1721 # type: textblock
1722 #: ../src/guestfs.pod:862
1723 msgid ""
1724 "Certain libguestfs calls take a parameter that contains sensitive key "
1725 "material, passed in as a C string."
1726 msgstr ""
1727
1728 # type: textblock
1729 #: ../src/guestfs.pod:865
1730 msgid ""
1731 "In the future we would hope to change the libguestfs implementation so that "
1732 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
1733 "swap.  However this is I<not> done at the moment, because of the complexity "
1734 "of such an implementation."
1735 msgstr ""
1736
1737 # type: textblock
1738 #: ../src/guestfs.pod:870
1739 msgid ""
1740 "Therefore you should be aware that any key parameter you pass to libguestfs "
1741 "might end up being written out to the swap partition.  If this is a concern, "
1742 "scrub the swap partition or don't use libguestfs on encrypted devices."
1743 msgstr ""
1744
1745 # type: =head2
1746 #: ../src/guestfs.pod:875
1747 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
1748 msgstr ""
1749
1750 # type: textblock
1751 #: ../src/guestfs.pod:877
1752 msgid ""
1753 "All high-level libguestfs actions are synchronous.  If you want to use "
1754 "libguestfs asynchronously then you must create a thread."
1755 msgstr ""
1756
1757 # type: textblock
1758 #: ../src/guestfs.pod:880
1759 msgid ""
1760 "Only use the handle from a single thread.  Either use the handle exclusively "
1761 "from one thread, or provide your own mutex so that two threads cannot issue "
1762 "calls on the same handle at the same time."
1763 msgstr ""
1764
1765 # type: textblock
1766 #: ../src/guestfs.pod:884
1767 msgid ""
1768 "See the graphical program guestfs-browser for one possible architecture for "
1769 "multithreaded programs using libvirt and libguestfs."
1770 msgstr ""
1771
1772 # type: =head2
1773 #: ../src/guestfs.pod:887
1774 msgid "PATH"
1775 msgstr ""
1776
1777 # type: textblock
1778 #: ../src/guestfs.pod:889
1779 msgid ""
1780 "Libguestfs needs a kernel and initrd.img, which it finds by looking along an "
1781 "internal path."
1782 msgstr ""
1783
1784 # type: textblock
1785 #: ../src/guestfs.pod:892
1786 msgid ""
1787 "By default it looks for these in the directory C<$libdir/guestfs> "
1788 "(eg. C</usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
1789 msgstr ""
1790
1791 # type: textblock
1792 #: ../src/guestfs.pod:895
1793 msgid ""
1794 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
1795 "to change the directories that libguestfs will search in.  The value is a "
1796 "colon-separated list of paths.  The current directory is I<not> searched "
1797 "unless the path contains an empty element or C<.>.  For example "
1798 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
1799 "then C</usr/lib/guestfs>."
1800 msgstr ""
1801
1802 # type: =head2
1803 #: ../src/guestfs.pod:902
1804 msgid "QEMU WRAPPERS"
1805 msgstr ""
1806
1807 # type: textblock
1808 #: ../src/guestfs.pod:904
1809 msgid ""
1810 "If you want to compile your own qemu, run qemu from a non-standard location, "
1811 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
1812 "around qemu."
1813 msgstr ""
1814
1815 # type: textblock
1816 #: ../src/guestfs.pod:908
1817 msgid ""
1818 "There is one important rule to remember: you I<must C<exec qemu>> as the "
1819 "last command in the shell script (so that qemu replaces the shell and "
1820 "becomes the direct child of the libguestfs-using program).  If you don't do "
1821 "this, then the qemu process won't be cleaned up correctly."
1822 msgstr ""
1823
1824 # type: textblock
1825 #: ../src/guestfs.pod:913
1826 msgid ""
1827 "Here is an example of a wrapper, where I have built my own copy of qemu from "
1828 "source:"
1829 msgstr ""
1830
1831 # type: verbatim
1832 #: ../src/guestfs.pod:916
1833 #, no-wrap
1834 msgid ""
1835 " #!/bin/sh -\n"
1836 " qemudir=/home/rjones/d/qemu\n"
1837 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios "
1838 "\"$@\"\n"
1839 "\n"
1840 msgstr ""
1841
1842 # type: textblock
1843 #: ../src/guestfs.pod:920
1844 msgid ""
1845 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
1846 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
1847 "example:"
1848 msgstr ""
1849
1850 # type: verbatim
1851 #: ../src/guestfs.pod:924
1852 #, no-wrap
1853 msgid ""
1854 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
1855 "\n"
1856 msgstr ""
1857
1858 # type: textblock
1859 #: ../src/guestfs.pod:926
1860 msgid ""
1861 "Note that libguestfs also calls qemu with the -help and -version options in "
1862 "order to determine features."
1863 msgstr ""
1864
1865 # type: =head2
1866 #: ../src/guestfs.pod:929
1867 msgid "ABI GUARANTEE"
1868 msgstr ""
1869
1870 # type: textblock
1871 #: ../src/guestfs.pod:931
1872 msgid ""
1873 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
1874 "actions as outlined in this section.  Although we will deprecate some "
1875 "actions, for example if they get replaced by newer calls, we will keep the "
1876 "old actions forever.  This allows you the developer to program in confidence "
1877 "against the libguestfs API."
1878 msgstr ""
1879
1880 # type: =head2
1881 #: ../src/guestfs.pod:937
1882 msgid "BLOCK DEVICE NAMING"
1883 msgstr ""
1884
1885 # type: textblock
1886 #: ../src/guestfs.pod:939
1887 msgid ""
1888 "In the kernel there is now quite a profusion of schemata for naming block "
1889 "devices (in this context, by I<block device> I mean a physical or virtual "
1890 "hard drive).  The original Linux IDE driver used names starting with "
1891 "C</dev/hd*>.  SCSI devices have historically used a different naming scheme, "
1892 "C</dev/sd*>.  When the Linux kernel I<libata> driver became a popular "
1893 "replacement for the old IDE driver (particularly for SATA devices) those "
1894 "devices also used the C</dev/sd*> scheme.  Additionally we now have virtual "
1895 "machines with paravirtualized drivers.  This has created several different "
1896 "naming systems, such as C</dev/vd*> for virtio disks and C</dev/xvd*> for "
1897 "Xen PV disks."
1898 msgstr ""
1899
1900 # type: textblock
1901 #: ../src/guestfs.pod:951
1902 msgid ""
1903 "As discussed above, libguestfs uses a qemu appliance running an embedded "
1904 "Linux kernel to access block devices.  We can run a variety of appliances "
1905 "based on a variety of Linux kernels."
1906 msgstr ""
1907
1908 # type: textblock
1909 #: ../src/guestfs.pod:955
1910 msgid ""
1911 "This causes a problem for libguestfs because many API calls use device or "
1912 "partition names.  Working scripts and the recipe (example) scripts that we "
1913 "make available over the internet could fail if the naming scheme changes."
1914 msgstr ""
1915
1916 # type: textblock
1917 #: ../src/guestfs.pod:960
1918 msgid ""
1919 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
1920 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
1921 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
1922 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
1923 msgstr ""
1924
1925 # type: textblock
1926 #: ../src/guestfs.pod:966
1927 msgid ""
1928 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
1929 "L</guestfs_list_partitions> and similar calls return the true names of the "
1930 "devices and partitions as known to the appliance."
1931 msgstr ""
1932
1933 # type: =head3
1934 #: ../src/guestfs.pod:971
1935 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
1936 msgstr ""
1937
1938 # type: textblock
1939 #: ../src/guestfs.pod:973
1940 msgid ""
1941 "Usually this translation is transparent.  However in some (very rare)  cases "
1942 "you may need to know the exact algorithm.  Such cases include where you use "
1943 "L</guestfs_config> to add a mixture of virtio and IDE devices to the "
1944 "qemu-based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> "
1945 "devices."
1946 msgstr ""
1947
1948 # type: textblock
1949 #: ../src/guestfs.pod:979
1950 msgid ""
1951 "The algorithm is applied only to I<parameters> which are known to be either "
1952 "device or partition names.  Return values from functions such as "
1953 "L</guestfs_list_devices> are never changed."
1954 msgstr ""
1955
1956 # type: textblock
1957 #: ../src/guestfs.pod:987
1958 msgid "Is the string a parameter which is a device or partition name?"
1959 msgstr ""
1960
1961 # type: textblock
1962 #: ../src/guestfs.pod:991
1963 msgid "Does the string begin with C</dev/sd>?"
1964 msgstr ""
1965
1966 # type: textblock
1967 #: ../src/guestfs.pod:995
1968 msgid ""
1969 "Does the named device exist? If so, we use that device.  However if I<not> "
1970 "then we continue with this algorithm."
1971 msgstr ""
1972
1973 # type: textblock
1974 #: ../src/guestfs.pod:1000
1975 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
1976 msgstr ""
1977
1978 # type: textblock
1979 #: ../src/guestfs.pod:1002
1980 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
1981 msgstr ""
1982
1983 # type: textblock
1984 #: ../src/guestfs.pod:1004
1985 msgid "If that named device exists, use it.  If not, continue."
1986 msgstr ""
1987
1988 # type: textblock
1989 #: ../src/guestfs.pod:1008
1990 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
1991 msgstr ""
1992
1993 # type: textblock
1994 #: ../src/guestfs.pod:1010
1995 msgid "If that named device exists, use it.  If not, return an error."
1996 msgstr ""
1997
1998 # type: =head3
1999 #: ../src/guestfs.pod:1014
2000 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
2001 msgstr ""
2002
2003 # type: textblock
2004 #: ../src/guestfs.pod:1016
2005 msgid ""
2006 "Although the standard naming scheme and automatic translation is useful for "
2007 "simple programs and guestfish scripts, for larger programs it is best not to "
2008 "rely on this mechanism."
2009 msgstr ""
2010
2011 # type: textblock
2012 #: ../src/guestfs.pod:1020
2013 msgid ""
2014 "Where possible for maximum future portability programs using libguestfs "
2015 "should use these future-proof techniques:"
2016 msgstr ""
2017
2018 # type: textblock
2019 #: ../src/guestfs.pod:1027
2020 msgid ""
2021 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
2022 "device names, and then use those names directly."
2023 msgstr ""
2024
2025 # type: textblock
2026 #: ../src/guestfs.pod:1030
2027 msgid "Since those device names exist by definition, they will never be translated."
2028 msgstr ""
2029
2030 # type: textblock
2031 #: ../src/guestfs.pod:1035
2032 msgid ""
2033 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
2034 "filesystem labels."
2035 msgstr ""
2036
2037 # type: =head1
2038 #: ../src/guestfs.pod:1040
2039 msgid "SECURITY"
2040 msgstr ""
2041
2042 # type: textblock
2043 #: ../src/guestfs.pod:1042
2044 msgid ""
2045 "This section discusses security implications of using libguestfs, "
2046 "particularly with untrusted or malicious guests or disk images."
2047 msgstr ""
2048
2049 # type: =head2
2050 #: ../src/guestfs.pod:1045
2051 msgid "GENERAL SECURITY CONSIDERATIONS"
2052 msgstr ""
2053
2054 # type: textblock
2055 #: ../src/guestfs.pod:1047
2056 msgid ""
2057 "Be careful with any files or data that you download from a guest (by "
2058 "\"download\" we mean not just the L</guestfs_download> command but any "
2059 "command that reads files, filenames, directories or anything else from a "
2060 "disk image).  An attacker could manipulate the data to fool your program "
2061 "into doing the wrong thing.  Consider cases such as:"
2062 msgstr ""
2063
2064 # type: textblock
2065 #: ../src/guestfs.pod:1057
2066 msgid "the data (file etc) not being present"
2067 msgstr ""
2068
2069 # type: textblock
2070 #: ../src/guestfs.pod:1061
2071 msgid "being present but empty"
2072 msgstr ""
2073
2074 # type: textblock
2075 #: ../src/guestfs.pod:1065
2076 msgid "being much larger than normal"
2077 msgstr ""
2078
2079 # type: textblock
2080 #: ../src/guestfs.pod:1069
2081 msgid "containing arbitrary 8 bit data"
2082 msgstr ""
2083
2084 # type: textblock
2085 #: ../src/guestfs.pod:1073
2086 msgid "being in an unexpected character encoding"
2087 msgstr ""
2088
2089 # type: textblock
2090 #: ../src/guestfs.pod:1077
2091 msgid "containing homoglyphs."
2092 msgstr ""
2093
2094 # type: =head2
2095 #: ../src/guestfs.pod:1081
2096 msgid "SECURITY OF MOUNTING FILESYSTEMS"
2097 msgstr ""
2098
2099 # type: textblock
2100 #: ../src/guestfs.pod:1083
2101 msgid ""
2102 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
2103 "(VFS) module can sometimes be escalated into exploits by deliberately "
2104 "creating a malicious, malformed filesystem.  These exploits are very severe "
2105 "for two reasons.  Firstly there are very many filesystem drivers in the "
2106 "kernel, and many of them are infrequently used and not much developer "
2107 "attention has been paid to the code.  Linux userspace helps potential "
2108 "crackers by detecting the filesystem type and automatically choosing the "
2109 "right VFS driver, even if that filesystem type is obscure or unexpected for "
2110 "the administrator.  Secondly, a kernel-level exploit is like a local root "
2111 "exploit (worse in some ways), giving immediate and total access to the "
2112 "system right down to the hardware level."
2113 msgstr ""
2114
2115 # type: textblock
2116 #: ../src/guestfs.pod:1096
2117 msgid ""
2118 "That explains why you should never mount a filesystem from an untrusted "
2119 "guest on your host kernel.  How about libguestfs? We run a Linux kernel "
2120 "inside a qemu virtual machine, usually running as a non-root user.  The "
2121 "attacker would need to write a filesystem which first exploited the kernel, "
2122 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
2123 "the libguestfs protocol, and finally to be as serious as the host kernel "
2124 "exploit it would need to escalate its privileges to root.  This multi-step "
2125 "escalation, performed by a static piece of data, is thought to be extremely "
2126 "hard to do, although we never say 'never' about security issues."
2127 msgstr ""
2128
2129 # type: textblock
2130 #: ../src/guestfs.pod:1107
2131 msgid ""
2132 "In any case callers can reduce the attack surface by forcing the filesystem "
2133 "type when mounting (use L</guestfs_mount_vfs>)."
2134 msgstr ""
2135
2136 # type: =head2
2137 #: ../src/guestfs.pod:1110
2138 msgid "PROTOCOL SECURITY"
2139 msgstr ""
2140
2141 # type: textblock
2142 #: ../src/guestfs.pod:1112
2143 msgid ""
2144 "The protocol is designed to be secure, being based on RFC 4506 (XDR)  with a "
2145 "defined upper message size.  However a program that uses libguestfs must "
2146 "also take care - for example you can write a program that downloads a binary "
2147 "from a disk image and executes it locally, and no amount of protocol "
2148 "security will save you from the consequences."
2149 msgstr ""
2150
2151 # type: =head2
2152 #: ../src/guestfs.pod:1118
2153 msgid "INSPECTION SECURITY"
2154 msgstr ""
2155
2156 # type: textblock
2157 #: ../src/guestfs.pod:1120
2158 msgid ""
2159 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
2160 "directly from the guest, and these could contain any 8 bit data.  Callers "
2161 "should be careful to escape these before printing them to a structured file "
2162 "(for example, use HTML escaping if creating a web page)."
2163 msgstr ""
2164
2165 # type: textblock
2166 #: ../src/guestfs.pod:1126
2167 msgid ""
2168 "Guest configuration may be altered in unusual ways by the administrator of "
2169 "the virtual machine, and may not reflect reality (particularly for untrusted "
2170 "or actively malicious guests).  For example we parse the hostname from "
2171 "configuration files like C</etc/sysconfig/network> that we find in the "
2172 "guest, but the guest administrator can easily manipulate these files to "
2173 "provide the wrong hostname."
2174 msgstr ""
2175
2176 # type: textblock
2177 #: ../src/guestfs.pod:1134
2178 msgid ""
2179 "The inspection API parses guest configuration using two external libraries: "
2180 "Augeas (Linux configuration) and hivex (Windows Registry).  Both are "
2181 "designed to be robust in the face of malicious data, although denial of "
2182 "service attacks are still possible, for example with oversized configuration "
2183 "files."
2184 msgstr ""
2185
2186 # type: =head2
2187 #: ../src/guestfs.pod:1140
2188 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
2189 msgstr ""
2190
2191 # type: textblock
2192 #: ../src/guestfs.pod:1142
2193 msgid ""
2194 "Be very cautious about running commands from the guest.  By running a "
2195 "command in the guest, you are giving CPU time to a binary that you do not "
2196 "control, under the same user account as the library, albeit wrapped in qemu "
2197 "virtualization.  More information and alternatives can be found in the "
2198 "section L</RUNNING COMMANDS>."
2199 msgstr ""
2200
2201 # type: =head2
2202 #: ../src/guestfs.pod:1148
2203 msgid "CVE-2010-3851"
2204 msgstr ""
2205
2206 # type: textblock
2207 #: ../src/guestfs.pod:1150
2208 msgid "https://bugzilla.redhat.com/642934"
2209 msgstr ""
2210
2211 # type: textblock
2212 #: ../src/guestfs.pod:1152
2213 msgid ""
2214 "This security bug concerns the automatic disk format detection that qemu "
2215 "does on disk images."
2216 msgstr ""
2217
2218 # type: textblock
2219 #: ../src/guestfs.pod:1155
2220 msgid ""
2221 "A raw disk image is just the raw bytes, there is no header.  Other disk "
2222 "images like qcow2 contain a special header.  Qemu deals with this by looking "
2223 "for one of the known headers, and if none is found then assuming the disk "
2224 "image must be raw."
2225 msgstr ""
2226
2227 # type: textblock
2228 #: ../src/guestfs.pod:1160
2229 msgid ""
2230 "This allows a guest which has been given a raw disk image to write some "
2231 "other header.  At next boot (or when the disk image is accessed by "
2232 "libguestfs) qemu would do autodetection and think the disk image format was, "
2233 "say, qcow2 based on the header written by the guest."
2234 msgstr ""
2235
2236 # type: textblock
2237 #: ../src/guestfs.pod:1165
2238 msgid ""
2239 "This in itself would not be a problem, but qcow2 offers many features, one "
2240 "of which is to allow a disk image to refer to another image (called the "
2241 "\"backing disk\").  It does this by placing the path to the backing disk "
2242 "into the qcow2 header.  This path is not validated and could point to any "
2243 "host file (eg. \"/etc/passwd\").  The backing disk is then exposed through "
2244 "\"holes\" in the qcow2 disk image, which of course is completely under the "
2245 "control of the attacker."
2246 msgstr ""
2247
2248 # type: textblock
2249 #: ../src/guestfs.pod:1173
2250 msgid "In libguestfs this is rather hard to exploit except under two circumstances:"
2251 msgstr ""
2252
2253 # type: textblock
2254 #: ../src/guestfs.pod:1180
2255 msgid "You have enabled the network or have opened the disk in write mode."
2256 msgstr ""
2257
2258 # type: textblock
2259 #: ../src/guestfs.pod:1184
2260 msgid ""
2261 "You are also running untrusted code from the guest (see L</RUNNING "
2262 "COMMANDS>)."
2263 msgstr ""
2264
2265 # type: textblock
2266 #: ../src/guestfs.pod:1189
2267 msgid ""
2268 "The way to avoid this is to specify the expected disk format when adding "
2269 "disks (the optional C<format> option to L</guestfs_add_drive_opts>).  You "
2270 "should always do this if the disk is raw format, and it's a good idea for "
2271 "other cases too."
2272 msgstr ""
2273
2274 # type: textblock
2275 #: ../src/guestfs.pod:1194
2276 msgid ""
2277 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
2278 "format is fetched from libvirt and passed through."
2279 msgstr ""
2280
2281 # type: textblock
2282 #: ../src/guestfs.pod:1197
2283 msgid ""
2284 "For libguestfs tools, use the I<--format> command line parameter as "
2285 "appropriate."
2286 msgstr ""
2287
2288 # type: =head1
2289 #: ../src/guestfs.pod:1200
2290 msgid "CONNECTION MANAGEMENT"
2291 msgstr ""
2292
2293 # type: =head2
2294 #: ../src/guestfs.pod:1202
2295 msgid "guestfs_h *"
2296 msgstr ""
2297
2298 # type: textblock
2299 #: ../src/guestfs.pod:1204
2300 msgid ""
2301 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
2302 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
2303 "handle and release all resources used."
2304 msgstr ""
2305
2306 # type: textblock
2307 #: ../src/guestfs.pod:1208
2308 msgid ""
2309 "For information on using multiple handles and threads, see the section "
2310 "L</MULTIPLE HANDLES AND MULTIPLE THREADS> below."
2311 msgstr ""
2312
2313 # type: =head2
2314 #: ../src/guestfs.pod:1211
2315 msgid "guestfs_create"
2316 msgstr ""
2317
2318 # type: verbatim
2319 #: ../src/guestfs.pod:1213
2320 #, no-wrap
2321 msgid ""
2322 " guestfs_h *guestfs_create (void);\n"
2323 "\n"
2324 msgstr ""
2325
2326 # type: textblock
2327 #: ../src/guestfs.pod:1215
2328 msgid "Create a connection handle."
2329 msgstr ""
2330
2331 # type: textblock
2332 #: ../src/guestfs.pod:1217
2333 msgid ""
2334 "You have to call L</guestfs_add_drive_opts> (or one of the equivalent calls) "
2335 "on the handle at least once."
2336 msgstr ""
2337
2338 # type: textblock
2339 #: ../src/guestfs.pod:1220
2340 msgid ""
2341 "This function returns a non-NULL pointer to a handle on success or NULL on "
2342 "error."
2343 msgstr ""
2344
2345 # type: textblock
2346 #: ../src/guestfs.pod:1223
2347 msgid "After configuring the handle, you have to call L</guestfs_launch>."
2348 msgstr ""
2349
2350 # type: textblock
2351 #: ../src/guestfs.pod:1225
2352 msgid ""
2353 "You may also want to configure error handling for the handle.  See L</ERROR "
2354 "HANDLING> section below."
2355 msgstr ""
2356
2357 # type: =head2
2358 #: ../src/guestfs.pod:1228
2359 msgid "guestfs_close"
2360 msgstr ""
2361
2362 # type: verbatim
2363 #: ../src/guestfs.pod:1230
2364 #, no-wrap
2365 msgid ""
2366 " void guestfs_close (guestfs_h *g);\n"
2367 "\n"
2368 msgstr ""
2369
2370 # type: textblock
2371 #: ../src/guestfs.pod:1232
2372 msgid "This closes the connection handle and frees up all resources used."
2373 msgstr ""
2374
2375 # type: =head1
2376 #: ../src/guestfs.pod:1234
2377 msgid "ERROR HANDLING"
2378 msgstr ""
2379
2380 # type: textblock
2381 #: ../src/guestfs.pod:1236
2382 msgid ""
2383 "API functions can return errors.  For example, almost all functions that "
2384 "return C<int> will return C<-1> to indicate an error."
2385 msgstr ""
2386
2387 # type: textblock
2388 #: ../src/guestfs.pod:1239
2389 msgid ""
2390 "Additional information is available for errors: an error message string and "
2391 "optionally an error number (errno) if the thing that failed was a system "
2392 "call."
2393 msgstr ""
2394
2395 # type: textblock
2396 #: ../src/guestfs.pod:1243
2397 msgid ""
2398 "You can get at the additional information about the last error on the handle "
2399 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
2400 "up an error handler with L</guestfs_set_error_handler>."
2401 msgstr ""
2402
2403 # type: textblock
2404 #: ../src/guestfs.pod:1248
2405 msgid ""
2406 "When the handle is created, a default error handler is installed which "
2407 "prints the error message string to C<stderr>.  For small short-running "
2408 "command line programs it is sufficient to do:"
2409 msgstr ""
2410
2411 # type: verbatim
2412 #: ../src/guestfs.pod:1252
2413 #, no-wrap
2414 msgid ""
2415 " if (guestfs_launch (g) == -1)\n"
2416 "   exit (EXIT_FAILURE);\n"
2417 "\n"
2418 msgstr ""
2419
2420 # type: textblock
2421 #: ../src/guestfs.pod:1255
2422 msgid ""
2423 "since the default error handler will ensure that an error message has been "
2424 "printed to C<stderr> before the program exits."
2425 msgstr ""
2426
2427 # type: textblock
2428 #: ../src/guestfs.pod:1258
2429 msgid ""
2430 "For other programs the caller will almost certainly want to install an "
2431 "alternate error handler or do error handling in-line like this:"
2432 msgstr ""
2433
2434 # type: verbatim
2435 #: ../src/guestfs.pod:1261
2436 #, no-wrap
2437 msgid ""
2438 " g = guestfs_create ();\n"
2439 " \n"
2440 msgstr ""
2441
2442 # type: verbatim
2443 #: ../src/guestfs.pod:1263
2444 #, no-wrap
2445 msgid ""
2446 " /* This disables the default behaviour of printing errors\n"
2447 "    on stderr. */\n"
2448 " guestfs_set_error_handler (g, NULL, NULL);\n"
2449 " \n"
2450 msgstr ""
2451
2452 # type: verbatim
2453 #: ../src/guestfs.pod:1267
2454 #, no-wrap
2455 msgid ""
2456 " if (guestfs_launch (g) == -1) {\n"
2457 "   /* Examine the error message and print it etc. */\n"
2458 "   char *msg = guestfs_last_error (g);\n"
2459 "   int errnum = guestfs_last_errno (g);\n"
2460 "   fprintf (stderr, \"%s\\n\", msg);\n"
2461 "   /* ... */\n"
2462 "  }\n"
2463 "\n"
2464 msgstr ""
2465
2466 # type: textblock
2467 #: ../src/guestfs.pod:1275
2468 msgid ""
2469 "Out of memory errors are handled differently.  The default action is to call "
2470 "L<abort(3)>.  If this is undesirable, then you can set a handler using "
2471 "L</guestfs_set_out_of_memory_handler>."
2472 msgstr ""
2473
2474 # type: textblock
2475 #: ../src/guestfs.pod:1279
2476 msgid ""
2477 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
2478 "because there is no handle if this happens there is no way to get additional "
2479 "error information.  However L</guestfs_create> is supposed to be a "
2480 "lightweight operation which can only fail because of insufficient memory (it "
2481 "returns NULL in this case)."
2482 msgstr ""
2483
2484 # type: =head2
2485 #: ../src/guestfs.pod:1285
2486 msgid "guestfs_last_error"
2487 msgstr ""
2488
2489 # type: verbatim
2490 #: ../src/guestfs.pod:1287
2491 #, no-wrap
2492 msgid ""
2493 " const char *guestfs_last_error (guestfs_h *g);\n"
2494 "\n"
2495 msgstr ""
2496
2497 # type: textblock
2498 #: ../src/guestfs.pod:1289
2499 msgid ""
2500 "This returns the last error message that happened on C<g>.  If there has not "
2501 "been an error since the handle was created, then this returns C<NULL>."
2502 msgstr ""
2503
2504 # type: textblock
2505 #: ../src/guestfs.pod:1293
2506 msgid ""
2507 "The lifetime of the returned string is until the next error occurs, or "
2508 "L</guestfs_close> is called."
2509 msgstr ""
2510
2511 # type: =head2
2512 #: ../src/guestfs.pod:1296
2513 msgid "guestfs_last_errno"
2514 msgstr ""
2515
2516 # type: verbatim
2517 #: ../src/guestfs.pod:1298
2518 #, no-wrap
2519 msgid ""
2520 " int guestfs_last_errno (guestfs_h *g);\n"
2521 "\n"
2522 msgstr ""
2523
2524 # type: textblock
2525 #: ../src/guestfs.pod:1300
2526 msgid "This returns the last error number (errno) that happened on C<g>."
2527 msgstr ""
2528
2529 # type: textblock
2530 #: ../src/guestfs.pod:1302
2531 msgid "If successful, an errno integer not equal to zero is returned."
2532 msgstr ""
2533
2534 # type: textblock
2535 #: ../src/guestfs.pod:1304
2536 msgid "If no error, this returns 0.  This call can return 0 in three situations:"
2537 msgstr ""
2538
2539 # type: textblock
2540 #: ../src/guestfs.pod:1311
2541 msgid "There has not been any error on the handle."
2542 msgstr ""
2543
2544 # type: textblock
2545 #: ../src/guestfs.pod:1315
2546 msgid ""
2547 "There has been an error but the errno was meaningless.  This corresponds to "
2548 "the case where the error did not come from a failed system call, but for "
2549 "some other reason."
2550 msgstr ""
2551
2552 # type: textblock
2553 #: ../src/guestfs.pod:1321
2554 msgid ""
2555 "There was an error from a failed system call, but for some reason the errno "
2556 "was not captured and returned.  This usually indicates a bug in libguestfs."
2557 msgstr ""
2558
2559 # type: textblock
2560 #: ../src/guestfs.pod:1327
2561 msgid ""
2562 "Libguestfs tries to convert the errno from inside the applicance into a "
2563 "corresponding errno for the caller (not entirely trivial: the appliance "
2564 "might be running a completely different operating system from the library "
2565 "and error numbers are not standardized across Un*xen).  If this could not be "
2566 "done, then the error is translated to C<EINVAL>.  In practice this should "
2567 "only happen in very rare circumstances."
2568 msgstr ""
2569
2570 # type: =head2
2571 #: ../src/guestfs.pod:1335
2572 msgid "guestfs_set_error_handler"
2573 msgstr ""
2574
2575 # type: verbatim
2576 #: ../src/guestfs.pod:1337
2577 #, no-wrap
2578 msgid ""
2579 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
2580 "                                           void *opaque,\n"
2581 "                                           const char *msg);\n"
2582 " void guestfs_set_error_handler (guestfs_h *g,\n"
2583 "                                 guestfs_error_handler_cb cb,\n"
2584 "                                 void *opaque);\n"
2585 "\n"
2586 msgstr ""
2587
2588 # type: textblock
2589 #: ../src/guestfs.pod:1344
2590 msgid ""
2591 "The callback C<cb> will be called if there is an error.  The parameters "
2592 "passed to the callback are an opaque data pointer and the error message "
2593 "string."
2594 msgstr ""
2595
2596 # type: textblock
2597 #: ../src/guestfs.pod:1348
2598 msgid ""
2599 "C<errno> is not passed to the callback.  To get that the callback must call "
2600 "L</guestfs_last_errno>."
2601 msgstr ""
2602
2603 # type: textblock
2604 #: ../src/guestfs.pod:1351
2605 msgid ""
2606 "Note that the message string C<msg> is freed as soon as the callback "
2607 "function returns, so if you want to stash it somewhere you must make your "
2608 "own copy."
2609 msgstr ""
2610
2611 # type: textblock
2612 #: ../src/guestfs.pod:1355
2613 msgid "The default handler prints messages on C<stderr>."
2614 msgstr ""
2615
2616 # type: textblock
2617 #: ../src/guestfs.pod:1357
2618 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
2619 msgstr ""
2620
2621 # type: =head2
2622 #: ../src/guestfs.pod:1359
2623 msgid "guestfs_get_error_handler"
2624 msgstr ""
2625
2626 # type: verbatim
2627 #: ../src/guestfs.pod:1361
2628 #, no-wrap
2629 msgid ""
2630 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
2631 "                                                     void **opaque_rtn);\n"
2632 "\n"
2633 msgstr ""
2634
2635 # type: textblock
2636 #: ../src/guestfs.pod:1364
2637 msgid "Returns the current error handler callback."
2638 msgstr ""
2639
2640 # type: =head2
2641 #: ../src/guestfs.pod:1366
2642 msgid "guestfs_set_out_of_memory_handler"
2643 msgstr ""
2644
2645 # type: verbatim
2646 #: ../src/guestfs.pod:1368
2647 #, no-wrap
2648 msgid ""
2649 " typedef void (*guestfs_abort_cb) (void);\n"
2650 " int guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
2651 "                                        guestfs_abort_cb);\n"
2652 "\n"
2653 msgstr ""
2654
2655 # type: textblock
2656 #: ../src/guestfs.pod:1372
2657 msgid ""
2658 "The callback C<cb> will be called if there is an out of memory situation.  "
2659 "I<Note this callback must not return>."
2660 msgstr ""
2661
2662 # type: textblock
2663 #: ../src/guestfs.pod:1375
2664 msgid "The default is to call L<abort(3)>."
2665 msgstr ""
2666
2667 # type: textblock
2668 #: ../src/guestfs.pod:1377
2669 msgid "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
2670 msgstr ""
2671
2672 # type: =head2
2673 #: ../src/guestfs.pod:1380
2674 msgid "guestfs_get_out_of_memory_handler"
2675 msgstr ""
2676
2677 # type: verbatim
2678 #: ../src/guestfs.pod:1382
2679 #, no-wrap
2680 msgid ""
2681 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
2682 "\n"
2683 msgstr ""
2684
2685 # type: textblock
2686 #: ../src/guestfs.pod:1384
2687 msgid "This returns the current out of memory handler."
2688 msgstr ""
2689
2690 # type: =head1
2691 #: ../src/guestfs.pod:1386
2692 msgid "API CALLS"
2693 msgstr ""
2694
2695 # type: textblock
2696 #: ../src/guestfs.pod:1388 ../fish/guestfish.pod:958
2697 msgid "@ACTIONS@"
2698 msgstr ""
2699
2700 # type: =head1
2701 #: ../src/guestfs.pod:1390
2702 msgid "STRUCTURES"
2703 msgstr ""
2704
2705 # type: textblock
2706 #: ../src/guestfs.pod:1392
2707 msgid "@STRUCTS@"
2708 msgstr ""
2709
2710 # type: =head1
2711 #: ../src/guestfs.pod:1394
2712 msgid "AVAILABILITY"
2713 msgstr ""
2714
2715 # type: =head2
2716 #: ../src/guestfs.pod:1396
2717 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
2718 msgstr ""
2719
2720 # type: textblock
2721 #: ../src/guestfs.pod:1398
2722 msgid ""
2723 "Using L</guestfs_available> you can test availability of the following "
2724 "groups of functions.  This test queries the appliance to see if the "
2725 "appliance you are currently using supports the functionality."
2726 msgstr ""
2727
2728 # type: textblock
2729 #: ../src/guestfs.pod:1403
2730 msgid "@AVAILABILITY@"
2731 msgstr ""
2732
2733 # type: =head2
2734 #: ../src/guestfs.pod:1405
2735 msgid "GUESTFISH supported COMMAND"
2736 msgstr ""
2737
2738 # type: textblock
2739 #: ../src/guestfs.pod:1407
2740 msgid ""
2741 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
2742 "prints out the available groups and whether they are supported by this build "
2743 "of libguestfs.  Note however that you have to do C<run> first."
2744 msgstr ""
2745
2746 # type: =head2
2747 #: ../src/guestfs.pod:1412
2748 msgid "SINGLE CALLS AT COMPILE TIME"
2749 msgstr ""
2750
2751 # type: textblock
2752 #: ../src/guestfs.pod:1414
2753 msgid ""
2754 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
2755 "function, such as:"
2756 msgstr ""
2757
2758 # type: verbatim
2759 #: ../src/guestfs.pod:1417
2760 #, no-wrap
2761 msgid ""
2762 " #define LIBGUESTFS_HAVE_DD 1\n"
2763 "\n"
2764 msgstr ""
2765
2766 # type: textblock
2767 #: ../src/guestfs.pod:1419
2768 msgid "if L</guestfs_dd> is available."
2769 msgstr ""
2770
2771 # type: textblock
2772 #: ../src/guestfs.pod:1421
2773 msgid ""
2774 "Before version 1.5.8, if you needed to test whether a single libguestfs "
2775 "function is available at compile time, we recommended using build tools such "
2776 "as autoconf or cmake.  For example in autotools you could use:"
2777 msgstr ""
2778
2779 # type: verbatim
2780 #: ../src/guestfs.pod:1426
2781 #, no-wrap
2782 msgid ""
2783 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
2784 " AC_CHECK_FUNCS([guestfs_dd])\n"
2785 "\n"
2786 msgstr ""
2787
2788 # type: textblock
2789 #: ../src/guestfs.pod:1429
2790 msgid ""
2791 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
2792 "in your program."
2793 msgstr ""
2794
2795 # type: =head2
2796 #: ../src/guestfs.pod:1432
2797 msgid "SINGLE CALLS AT RUN TIME"
2798 msgstr ""
2799
2800 # type: textblock
2801 #: ../src/guestfs.pod:1434
2802 msgid ""
2803 "Testing at compile time doesn't guarantee that a function really exists in "
2804 "the library.  The reason is that you might be dynamically linked against a "
2805 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
2806 "This situation unfortunately results in a segmentation fault, which is a "
2807 "shortcoming of the C dynamic linking system itself."
2808 msgstr ""
2809
2810 # type: textblock
2811 #: ../src/guestfs.pod:1441
2812 msgid ""
2813 "You can use L<dlopen(3)> to test if a function is available at run time, as "
2814 "in this example program (note that you still need the compile time check as "
2815 "well):"
2816 msgstr ""
2817
2818 # type: verbatim
2819 #: ../src/guestfs.pod:1445
2820 #, no-wrap
2821 msgid ""
2822 " #include <stdio.h>\n"
2823 " #include <stdlib.h>\n"
2824 " #include <unistd.h>\n"
2825 " #include <dlfcn.h>\n"
2826 " #include <guestfs.h>\n"
2827 " \n"
2828 msgstr ""
2829
2830 # type: verbatim
2831 #: ../src/guestfs.pod:1451
2832 #, no-wrap
2833 msgid ""
2834 " main ()\n"
2835 " {\n"
2836 " #ifdef LIBGUESTFS_HAVE_DD\n"
2837 "   void *dl;\n"
2838 "   int has_function;\n"
2839 " \n"
2840 msgstr ""
2841
2842 # type: verbatim
2843 #: ../src/guestfs.pod:1457
2844 #, no-wrap
2845 msgid ""
2846 "   /* Test if the function guestfs_dd is really available. */\n"
2847 "   dl = dlopen (NULL, RTLD_LAZY);\n"
2848 "   if (!dl) {\n"
2849 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
2850 "     exit (EXIT_FAILURE);\n"
2851 "   }\n"
2852 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
2853 "   dlclose (dl);\n"
2854 " \n"
2855 msgstr ""
2856
2857 # type: verbatim
2858 #: ../src/guestfs.pod:1466
2859 #, no-wrap
2860 msgid ""
2861 "   if (!has_function)\n"
2862 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
2863 "   else {\n"
2864 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
2865 "     /* Now it's safe to call\n"
2866 "     guestfs_dd (g, \"foo\", \"bar\");\n"
2867 "     */\n"
2868 "   }\n"
2869 " #else\n"
2870 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
2871 " #endif\n"
2872 "  }\n"
2873 "\n"
2874 msgstr ""
2875
2876 # type: textblock
2877 #: ../src/guestfs.pod:1479
2878 msgid ""
2879 "You may think the above is an awful lot of hassle, and it is.  There are "
2880 "other ways outside of the C linking system to ensure that this kind of "
2881 "incompatibility never arises, such as using package versioning:"
2882 msgstr ""
2883
2884 # type: verbatim
2885 #: ../src/guestfs.pod:1484
2886 #, no-wrap
2887 msgid ""
2888 " Requires: libguestfs >= 1.0.80\n"
2889 "\n"
2890 msgstr ""
2891
2892 # type: =head1
2893 #: ../src/guestfs.pod:1486
2894 msgid "CALLS WITH OPTIONAL ARGUMENTS"
2895 msgstr ""
2896
2897 # type: textblock
2898 #: ../src/guestfs.pod:1488
2899 msgid ""
2900 "A recent feature of the API is the introduction of calls which take optional "
2901 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
2902 "takes variable arguments (ie. C<...>), as in this example:"
2903 msgstr ""
2904
2905 # type: verbatim
2906 #: ../src/guestfs.pod:1493
2907 #, no-wrap
2908 msgid ""
2909 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
2910 "\n"
2911 msgstr ""
2912
2913 # type: textblock
2914 #: ../src/guestfs.pod:1495
2915 msgid ""
2916 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
2917 "call with no optional arguments specified:"
2918 msgstr ""
2919
2920 # type: verbatim
2921 #: ../src/guestfs.pod:1498
2922 #, no-wrap
2923 msgid ""
2924 " guestfs_add_drive_opts (g, filename, -1);\n"
2925 "\n"
2926 msgstr ""
2927
2928 # type: textblock
2929 #: ../src/guestfs.pod:1500
2930 msgid "With a single optional argument:"
2931 msgstr ""
2932
2933 # type: verbatim
2934 #: ../src/guestfs.pod:1502
2935 #, no-wrap
2936 msgid ""
2937 " guestfs_add_drive_opts (g, filename,\n"
2938 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
2939 "                         -1);\n"
2940 "\n"
2941 msgstr ""
2942
2943 # type: textblock
2944 #: ../src/guestfs.pod:1506
2945 msgid "With two:"
2946 msgstr ""
2947
2948 # type: verbatim
2949 #: ../src/guestfs.pod:1508
2950 #, no-wrap
2951 msgid ""
2952 " guestfs_add_drive_opts (g, filename,\n"
2953 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
2954 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
2955 "                         -1);\n"
2956 "\n"
2957 msgstr ""
2958
2959 # type: textblock
2960 #: ../src/guestfs.pod:1513
2961 msgid ""
2962 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
2963 "happen!"
2964 msgstr ""
2965
2966 # type: =head2
2967 #: ../src/guestfs.pod:1516
2968 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
2969 msgstr ""
2970
2971 # type: textblock
2972 #: ../src/guestfs.pod:1518
2973 msgid ""
2974 "The second variant has the same name with the suffix C<_va>, which works the "
2975 "same way but takes a C<va_list>.  See the C manual for details.  For the "
2976 "example function, this is declared:"
2977 msgstr ""
2978
2979 # type: verbatim
2980 #: ../src/guestfs.pod:1522
2981 #, no-wrap
2982 msgid ""
2983 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
2984 "                                va_list args);\n"
2985 "\n"
2986 msgstr ""
2987
2988 # type: =head2
2989 #: ../src/guestfs.pod:1525
2990 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
2991 msgstr ""
2992
2993 # type: textblock
2994 #: ../src/guestfs.pod:1527
2995 msgid ""
2996 "The third variant is useful where you need to construct these calls.  You "
2997 "pass in a structure where you fill in the optional fields.  The structure "
2998 "has a bitmask as the first element which you must set to indicate which "
2999 "fields you have filled in.  For our example function the structure and call "
3000 "are declared:"
3001 msgstr ""
3002
3003 # type: verbatim
3004 #: ../src/guestfs.pod:1533
3005 #, no-wrap
3006 msgid ""
3007 " struct guestfs_add_drive_opts_argv {\n"
3008 "   uint64_t bitmask;\n"
3009 "   int readonly;\n"
3010 "   const char *format;\n"
3011 "   /* ... */\n"
3012 " };\n"
3013 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
3014 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
3015 "\n"
3016 msgstr ""
3017
3018 # type: textblock
3019 #: ../src/guestfs.pod:1542
3020 msgid "You could call it like this:"
3021 msgstr ""
3022
3023 # type: verbatim
3024 #: ../src/guestfs.pod:1544
3025 #, no-wrap
3026 msgid ""
3027 " struct guestfs_add_drive_opts_argv optargs = {\n"
3028 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
3029 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
3030 "   .readonly = 1,\n"
3031 "   .format = \"qcow2\"\n"
3032 " };\n"
3033 " \n"
3034 msgstr ""
3035
3036 # type: verbatim
3037 #: ../src/guestfs.pod:1551
3038 #, no-wrap
3039 msgid ""
3040 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
3041 "\n"
3042 msgstr ""
3043
3044 # type: textblock
3045 #: ../src/guestfs.pod:1553 ../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
3046 msgid "Notes:"
3047 msgstr ""
3048
3049 # type: textblock
3050 #: ../src/guestfs.pod:1559
3051 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
3052 msgstr ""
3053
3054 # type: textblock
3055 #: ../src/guestfs.pod:1564
3056 msgid "You do not need to fill in all fields of the structure."
3057 msgstr ""
3058
3059 # type: textblock
3060 #: ../src/guestfs.pod:1568
3061 msgid ""
3062 "There must be a one-to-one correspondence between fields of the structure "
3063 "that are filled in, and bits set in the bitmask."
3064 msgstr ""
3065
3066 # type: =head2
3067 #: ../src/guestfs.pod:1573
3068 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
3069 msgstr ""
3070
3071 # type: textblock
3072 #: ../src/guestfs.pod:1575
3073 msgid ""
3074 "In other languages, optional arguments are expressed in the way that is "
3075 "natural for that language.  We refer you to the language-specific "
3076 "documentation for more details on that."
3077 msgstr ""
3078
3079 # type: textblock
3080 #: ../src/guestfs.pod:1579
3081 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
3082 msgstr ""
3083
3084 # type: =head2
3085 #: ../src/guestfs.pod:1581
3086 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
3087 msgstr ""
3088
3089 # type: textblock
3090 #: ../src/guestfs.pod:1583
3091 msgid ""
3092 "The child process generates events in some situations.  Current events "
3093 "include: receiving a log message, the child process exits."
3094 msgstr ""
3095
3096 # type: textblock
3097 #: ../src/guestfs.pod:1586
3098 msgid ""
3099 "Use the C<guestfs_set_*_callback> functions to set a callback for different "
3100 "types of events."
3101 msgstr ""
3102
3103 # type: textblock
3104 #: ../src/guestfs.pod:1589
3105 msgid ""
3106 "Only I<one callback of each type> can be registered for each handle.  "
3107 "Calling C<guestfs_set_*_callback> again overwrites the previous callback of "
3108 "that type.  Cancel all callbacks of this type by calling this function with "
3109 "C<cb> set to C<NULL>."
3110 msgstr ""
3111
3112 # type: =head2
3113 #: ../src/guestfs.pod:1594
3114 msgid "guestfs_set_log_message_callback"
3115 msgstr ""
3116
3117 # type: verbatim
3118 #: ../src/guestfs.pod:1596
3119 #, no-wrap
3120 msgid ""
3121 " typedef void (*guestfs_log_message_cb) (guestfs_h *g, void *opaque,\n"
3122 "                                         char *buf, int len);\n"
3123 " void guestfs_set_log_message_callback (guestfs_h *g,\n"
3124 "                                        guestfs_log_message_cb cb,\n"
3125 "                                        void *opaque);\n"
3126 "\n"
3127 msgstr ""
3128
3129 # type: textblock
3130 #: ../src/guestfs.pod:1602
3131 msgid ""
3132 "The callback function C<cb> will be called whenever qemu or the guest writes "
3133 "anything to the console."
3134 msgstr ""
3135
3136 # type: textblock
3137 #: ../src/guestfs.pod:1605
3138 msgid "Use this function to capture kernel messages and similar."
3139 msgstr ""
3140
3141 # type: textblock
3142 #: ../src/guestfs.pod:1607
3143 msgid ""
3144 "Normally there is no log message handler, and log messages are just "
3145 "discarded."
3146 msgstr ""
3147
3148 # type: =head2
3149 #: ../src/guestfs.pod:1610
3150 msgid "guestfs_set_subprocess_quit_callback"
3151 msgstr ""
3152
3153 # type: verbatim
3154 #: ../src/guestfs.pod:1612
3155 #, no-wrap
3156 msgid ""
3157 " typedef void (*guestfs_subprocess_quit_cb) (guestfs_h *g, void *opaque);\n"
3158 " void guestfs_set_subprocess_quit_callback (guestfs_h *g,\n"
3159 "                                            guestfs_subprocess_quit_cb cb,\n"
3160 "                                            void *opaque);\n"
3161 "\n"
3162 msgstr ""
3163
3164 # type: textblock
3165 #: ../src/guestfs.pod:1617
3166 msgid ""
3167 "The callback function C<cb> will be called when the child process quits, "
3168 "either asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
3169 "corresponds to a transition from any state to the CONFIG state)."
3170 msgstr ""
3171
3172 # type: =head2
3173 #: ../src/guestfs.pod:1622
3174 msgid "guestfs_set_launch_done_callback"
3175 msgstr ""
3176
3177 # type: verbatim
3178 #: ../src/guestfs.pod:1624
3179 #, no-wrap
3180 msgid ""
3181 " typedef void (*guestfs_launch_done_cb) (guestfs_h *g, void *opaque);\n"
3182 " void guestfs_set_launch_done_callback (guestfs_h *g,\n"
3183 "                                        guestfs_launch_done_cb cb,\n"
3184 "                                        void *opaque);\n"
3185 "\n"
3186 msgstr ""
3187
3188 # type: textblock
3189 #: ../src/guestfs.pod:1629
3190 msgid ""
3191 "The callback function C<cb> will be called when the child process becomes "
3192 "ready first time after it has been launched.  (This corresponds to a "
3193 "transition from LAUNCHING to the READY state)."
3194 msgstr ""
3195
3196 # type: =head2
3197 #: ../src/guestfs.pod:1633
3198 msgid "guestfs_set_close_callback"
3199 msgstr ""
3200
3201 # type: verbatim
3202 #: ../src/guestfs.pod:1635
3203 #, no-wrap
3204 msgid ""
3205 " typedef void (*guestfs_close_cb) (guestfs_h *g, void *opaque);\n"
3206 " void guestfs_set_close_callback (guestfs_h *g,\n"
3207 "                                  guestfs_close_cb cb,\n"
3208 "                                  void *opaque);\n"
3209 "\n"
3210 msgstr ""
3211
3212 # type: textblock
3213 #: ../src/guestfs.pod:1640
3214 msgid ""
3215 "The callback function C<cb> will be called while the handle is being closed "
3216 "(synchronously from L</guestfs_close>)."
3217 msgstr ""
3218
3219 # type: textblock
3220 #: ../src/guestfs.pod:1643
3221 msgid ""
3222 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
3223 "handles that are open when the program exits.  This means that this callback "
3224 "might be called indirectly from L<exit(3)>, which can cause unexpected "
3225 "problems in higher-level languages (eg. if your HLL interpreter has already "
3226 "been cleaned up by the time this is called, and if your callback then jumps "
3227 "into some HLL function)."
3228 msgstr ""
3229
3230 # type: =head2
3231 #: ../src/guestfs.pod:1651
3232 msgid "guestfs_set_progress_callback"
3233 msgstr ""
3234
3235 # type: verbatim
3236 #: ../src/guestfs.pod:1653
3237 #, no-wrap
3238 msgid ""
3239 " typedef void (*guestfs_progress_cb) (guestfs_h *g, void *opaque,\n"
3240 "                                      int proc_nr, int serial,\n"
3241 "                                      uint64_t position, uint64_t total);\n"
3242 " void guestfs_set_progress_callback (guestfs_h *g,\n"
3243 "                                     guestfs_progress_cb cb,\n"
3244 "                                     void *opaque);\n"
3245 "\n"
3246 msgstr ""
3247
3248 # type: textblock
3249 #: ../src/guestfs.pod:1660
3250 msgid ""
3251 "Some long-running operations can generate progress messages.  If this "
3252 "callback is registered, then it will be called each time a progress message "
3253 "is generated (usually two seconds after the operation started, and three "
3254 "times per second thereafter until it completes, although the frequency may "
3255 "change in future versions)."
3256 msgstr ""
3257
3258 # type: textblock
3259 #: ../src/guestfs.pod:1666
3260 msgid ""
3261 "The callback receives two numbers: C<position> and C<total>.  The units of "
3262 "C<total> are not defined, although for some operations C<total> may relate "
3263 "in some way to the amount of data to be transferred (eg. in bytes or "
3264 "megabytes), and C<position> may be the portion which has been transferred."
3265 msgstr ""
3266
3267 # type: textblock
3268 #: ../src/guestfs.pod:1672
3269 msgid "The only defined and stable parts of the API are:"
3270 msgstr ""
3271
3272 # type: textblock
3273 #: ../src/guestfs.pod:1678
3274 msgid ""
3275 "The callback can display to the user some type of progress bar or indicator "
3276 "which shows the ratio of C<position>:C<total>."
3277 msgstr ""
3278
3279 # type: textblock
3280 #: ../src/guestfs.pod:1683
3281 msgid "0 E<lt>= C<position> E<lt>= C<total>"
3282 msgstr ""
3283
3284 # type: textblock
3285 #: ../src/guestfs.pod:1687
3286 msgid ""
3287 "If any progress notification is sent during a call, then a final progress "
3288 "notification is always sent when C<position> = C<total>."
3289 msgstr ""
3290
3291 # type: textblock
3292 #: ../src/guestfs.pod:1690
3293 msgid ""
3294 "This is to simplify caller code, so callers can easily set the progress "
3295 "indicator to \"100%\" at the end of the operation, without requiring special "
3296 "code to detect this case."
3297 msgstr ""
3298
3299 # type: textblock
3300 #: ../src/guestfs.pod:1696
3301 msgid ""
3302 "The callback also receives the procedure number and serial number of the "
3303 "call.  These are only useful for debugging protocol issues, and the callback "
3304 "can normally ignore them.  The callback may want to print these numbers in "
3305 "error messages or debugging messages."
3306 msgstr ""
3307
3308 # type: =head1
3309 #: ../src/guestfs.pod:1701
3310 msgid "PRIVATE DATA AREA"
3311 msgstr ""
3312
3313 # type: textblock
3314 #: ../src/guestfs.pod:1703
3315 msgid ""
3316 "You can attach named pieces of private data to the libguestfs handle, and "
3317 "fetch them by name for the lifetime of the handle.  This is called the "
3318 "private data area and is only available from the C API."
3319 msgstr ""
3320
3321 # type: textblock
3322 #: ../src/guestfs.pod:1707
3323 msgid "To attach a named piece of data, use the following call:"
3324 msgstr ""
3325
3326 # type: verbatim
3327 #: ../src/guestfs.pod:1709
3328 #, no-wrap
3329 msgid ""
3330 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
3331 "\n"
3332 msgstr ""
3333
3334 # type: textblock
3335 #: ../src/guestfs.pod:1711
3336 msgid ""
3337 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
3338 "pointer (which can be C<NULL>).  Any previous item with the same name is "
3339 "overwritten."
3340 msgstr ""
3341
3342 # type: textblock
3343 #: ../src/guestfs.pod:1715
3344 msgid ""
3345 "You can use any C<key> you want, but names beginning with an underscore "
3346 "character are reserved for internal libguestfs purposes (for implementing "
3347 "language bindings).  It is recommended to prefix the name with some unique "
3348 "string to avoid collisions with other users."
3349 msgstr ""
3350
3351 # type: textblock
3352 #: ../src/guestfs.pod:1720
3353 msgid "To retrieve the pointer, use:"
3354 msgstr ""
3355
3356 # type: verbatim
3357 #: ../src/guestfs.pod:1722
3358 #, no-wrap
3359 msgid ""
3360 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
3361 "\n"
3362 msgstr ""
3363
3364 # type: textblock
3365 #: ../src/guestfs.pod:1724
3366 msgid ""
3367 "This function returns C<NULL> if either no data is found associated with "
3368 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
3369 "C<NULL>."
3370 msgstr ""
3371
3372 # type: textblock
3373 #: ../src/guestfs.pod:1728
3374 msgid ""
3375 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
3376 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
3377 "all.  In particular, libguestfs does I<not> try to free the data when the "
3378 "handle is closed.  If the data must be freed, then the caller must either "
3379 "free it before calling L</guestfs_close> or must set up a close callback to "
3380 "do it (see L</guestfs_set_close_callback>, and note that only one callback "
3381 "can be registered for a handle)."
3382 msgstr ""
3383
3384 # type: textblock
3385 #: ../src/guestfs.pod:1736
3386 msgid ""
3387 "The private data area is implemented using a hash table, and should be "
3388 "reasonably efficient for moderate numbers of keys."
3389 msgstr ""
3390
3391 # type: =end
3392 #: ../src/guestfs.pod:1739 ../src/guestfs.pod:1744
3393 msgid "html"
3394 msgstr ""
3395
3396 # type: textblock
3397 #: ../src/guestfs.pod:1741
3398 msgid ""
3399 "<!-- old anchor for the next section --> <a "
3400 "name=\"state_machine_and_low_level_event_api\"/>"
3401 msgstr ""
3402
3403 # type: =head1
3404 #: ../src/guestfs.pod:1746
3405 msgid "ARCHITECTURE"
3406 msgstr ""
3407
3408 # type: textblock
3409 #: ../src/guestfs.pod:1748
3410 msgid ""
3411 "Internally, libguestfs is implemented by running an appliance (a special "
3412 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
3413 "process of the main program."
3414 msgstr ""
3415
3416 # type: verbatim
3417 #: ../src/guestfs.pod:1752
3418 #, no-wrap
3419 msgid ""
3420 "  ___________________\n"
3421 " /                   \\\n"
3422 " | main program      |\n"
3423 " |                   |\n"
3424 " |                   |           child process / appliance\n"
3425 " |                   |           __________________________\n"
3426 " |                   |          / qemu                     \\\n"
3427 " +-------------------+   RPC    |      +-----------------+ |\n"
3428 " | libguestfs     <--------------------> guestfsd        | |\n"
3429 " |                   |          |      +-----------------+ |\n"
3430 " \\___________________/          |      | Linux kernel    | |\n"
3431 "                                |      +--^--------------+ |\n"
3432 "                                \\_________|________________/\n"
3433 "                                          |\n"
3434 "                                   _______v______\n"
3435 "                                  /              \\\n"
3436 "                                  | Device or    |\n"
3437 "                                  | disk image   |\n"
3438 "                                  \\______________/\n"
3439 "\n"
3440 msgstr ""
3441
3442 # type: textblock
3443 #: ../src/guestfs.pod:1772
3444 msgid ""
3445 "The library, linked to the main program, creates the child process and hence "
3446 "the appliance in the L</guestfs_launch> function."
3447 msgstr ""
3448
3449 # type: textblock
3450 #: ../src/guestfs.pod:1775
3451 msgid ""
3452 "Inside the appliance is a Linux kernel and a complete stack of userspace "
3453 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
3454 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
3455 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
3456 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
3457 "attached to the qemu process which translates device access by the "
3458 "appliance's Linux kernel into accesses to the image."
3459 msgstr ""
3460
3461 # type: textblock
3462 #: ../src/guestfs.pod:1784
3463 msgid ""
3464 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
3465 "Although the disk image you are attached to might also be used by some "
3466 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
3467 "care if both libguestfs's qemu process and your virtual machine are trying "
3468 "to update the disk image at the same time, since these usually results in "
3469 "massive disk corruption)."
3470 msgstr ""
3471
3472 # type: =head1
3473 #: ../src/guestfs.pod:1791
3474 msgid "STATE MACHINE"
3475 msgstr ""
3476
3477 # type: textblock
3478 #: ../src/guestfs.pod:1793
3479 msgid "libguestfs uses a state machine to model the child process:"
3480 msgstr ""
3481
3482 # type: verbatim
3483 #: ../src/guestfs.pod:1795
3484 #, no-wrap
3485 msgid ""
3486 "                         |\n"
3487 "                    guestfs_create\n"
3488 "                         |\n"
3489 "                         |\n"
3490 "                     ____V_____\n"
3491 "                    /          \\\n"
3492 "                    |  CONFIG  |\n"
3493 "                    \\__________/\n"
3494 "                     ^ ^   ^  \\\n"
3495 "                    /  |    \\  \\ guestfs_launch\n"
3496 "                   /   |    _\\__V______\n"
3497 "                  /    |   /           \\\n"
3498 "                 /     |   | LAUNCHING |\n"
3499 "                /      |   \\___________/\n"
3500 "               /       |       /\n"
3501 "              /        |  guestfs_launch\n"
3502 "             /         |     /\n"
3503 "    ______  /        __|____V\n"
3504 "   /      \\ ------> /        \\\n"
3505 "   | BUSY |         | READY  |\n"
3506 "   \\______/ <------ \\________/\n"
3507 "\n"
3508 msgstr ""
3509
3510 # type: textblock
3511 #: ../src/guestfs.pod:1817
3512 msgid ""
3513 "The normal transitions are (1) CONFIG (when the handle is created, but there "
3514 "is no child process), (2) LAUNCHING (when the child process is booting up), "
3515 "(3) alternating between READY and BUSY as commands are issued to, and "
3516 "carried out by, the child process."
3517 msgstr ""
3518
3519 # type: textblock
3520 #: ../src/guestfs.pod:1822
3521 msgid ""
3522 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
3523 "asynchronously at any time (eg. due to some internal error), and that causes "
3524 "the state to transition back to CONFIG."
3525 msgstr ""
3526
3527 # type: textblock
3528 #: ../src/guestfs.pod:1826
3529 msgid ""
3530 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
3531 "issued when in the CONFIG state."
3532 msgstr ""
3533
3534 # type: textblock
3535 #: ../src/guestfs.pod:1829
3536 msgid ""
3537 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
3538 "L</guestfs_launch> blocks until the child process is READY to accept "
3539 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
3540 "moves the state from CONFIG to LAUNCHING while it is running."
3541 msgstr ""
3542
3543 # type: textblock
3544 #: ../src/guestfs.pod:1835
3545 msgid ""
3546 "API actions such as L</guestfs_mount> can only be issued when in the READY "
3547 "state.  These API calls block waiting for the command to be carried out "
3548 "(ie. the state to transition to BUSY and then back to READY).  There are no "
3549 "non-blocking versions, and no way to issue more than one command per handle "
3550 "at the same time."
3551 msgstr ""
3552
3553 # type: textblock
3554 #: ../src/guestfs.pod:1841
3555 msgid ""
3556 "Finally, the child process sends asynchronous messages back to the main "
3557 "program, such as kernel log messages.  You can register a callback to "
3558 "receive these messages."
3559 msgstr ""
3560
3561 # type: =head1
3562 #: ../src/guestfs.pod:1845
3563 msgid "INTERNALS"
3564 msgstr ""
3565
3566 # type: =head2
3567 #: ../src/guestfs.pod:1847
3568 msgid "COMMUNICATION PROTOCOL"
3569 msgstr ""
3570
3571 # type: textblock
3572 #: ../src/guestfs.pod:1849
3573 msgid ""
3574 "Don't rely on using this protocol directly.  This section documents how it "
3575 "currently works, but it may change at any time."
3576 msgstr ""
3577
3578 # type: textblock
3579 #: ../src/guestfs.pod:1852
3580 msgid ""
3581 "The protocol used to talk between the library and the daemon running inside "
3582 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
3583 "1014, RFC 1832, RFC 4506)."
3584 msgstr ""
3585
3586 # type: textblock
3587 #: ../src/guestfs.pod:1856
3588 msgid ""
3589 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
3590 "this file is automatically generated)."
3591 msgstr ""
3592
3593 # type: textblock
3594 #: ../src/guestfs.pod:1859
3595 msgid ""
3596 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
3597 "and C<FileOut> parameters, which are handled with very simple request/reply "
3598 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
3599 "parameters, which use the same request and reply messages, but they may also "
3600 "be followed by files sent using a chunked encoding."
3601 msgstr ""
3602
3603 # type: =head3
3604 #: ../src/guestfs.pod:1866
3605 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
3606 msgstr ""
3607
3608 # type: textblock
3609 #: ../src/guestfs.pod:1868
3610 msgid "For ordinary functions, the request message is:"
3611 msgstr ""
3612
3613 # type: verbatim
3614 #: ../src/guestfs.pod:1870
3615 #, no-wrap
3616 msgid ""
3617 " total length (header + arguments,\n"
3618 "      but not including the length word itself)\n"
3619 " struct guestfs_message_header (encoded as XDR)\n"
3620 " struct guestfs_<foo>_args (encoded as XDR)\n"
3621 "\n"
3622 msgstr ""
3623
3624 # type: textblock
3625 #: ../src/guestfs.pod:1875
3626 msgid ""
3627 "The total length field allows the daemon to allocate a fixed size buffer "
3628 "into which it slurps the rest of the message.  As a result, the total length "
3629 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
3630 "effective size of any request is limited to somewhere under this size."
3631 msgstr ""
3632
3633 # type: textblock
3634 #: ../src/guestfs.pod:1881
3635 msgid ""
3636 "Note also that many functions don't take any arguments, in which case the "
3637 "C<guestfs_I<foo>_args> is completely omitted."
3638 msgstr ""
3639
3640 # type: textblock
3641 #: ../src/guestfs.pod:1884
3642 msgid ""
3643 "The header contains the procedure number (C<guestfs_proc>) which is how the "
3644 "receiver knows what type of args structure to expect, or none at all."
3645 msgstr ""
3646
3647 # type: textblock
3648 #: ../src/guestfs.pod:1888
3649 msgid ""
3650 "For functions that take optional arguments, the optional arguments are "
3651 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
3652 "arguments.  A bitmask in the header indicates which optional arguments are "
3653 "meaningful.  The bitmask is also checked to see if it contains bits set "
3654 "which the daemon does not know about (eg. if more optional arguments were "
3655 "added in a later version of the library), and this causes the call to be "
3656 "rejected."
3657 msgstr ""
3658
3659 # type: textblock
3660 #: ../src/guestfs.pod:1896
3661 msgid "The reply message for ordinary functions is:"
3662 msgstr ""
3663
3664 # type: verbatim
3665 #: ../src/guestfs.pod:1898
3666 #, no-wrap
3667 msgid ""
3668 " total length (header + ret,\n"
3669 "      but not including the length word itself)\n"
3670 " struct guestfs_message_header (encoded as XDR)\n"
3671 " struct guestfs_<foo>_ret (encoded as XDR)\n"
3672 "\n"
3673 msgstr ""
3674
3675 # type: textblock
3676 #: ../src/guestfs.pod:1903
3677 msgid ""
3678 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
3679 "functions that return no formal return values."
3680 msgstr ""
3681
3682 # type: textblock
3683 #: ../src/guestfs.pod:1906
3684 msgid "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
3685 msgstr ""
3686
3687 # type: textblock
3688 #: ../src/guestfs.pod:1909
3689 msgid ""
3690 "In the case of an error, a flag is set in the header, and the reply message "
3691 "is slightly changed:"
3692 msgstr ""
3693
3694 # type: verbatim
3695 #: ../src/guestfs.pod:1912
3696 #, no-wrap
3697 msgid ""
3698 " total length (header + error,\n"
3699 "      but not including the length word itself)\n"
3700 " struct guestfs_message_header (encoded as XDR)\n"
3701 " struct guestfs_message_error (encoded as XDR)\n"
3702 "\n"
3703 msgstr ""
3704
3705 # type: textblock
3706 #: ../src/guestfs.pod:1917
3707 msgid ""
3708 "The C<guestfs_message_error> structure contains the error message as a "
3709 "string."
3710 msgstr ""
3711
3712 # type: =head3
3713 #: ../src/guestfs.pod:1920
3714 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
3715 msgstr ""
3716
3717 # type: textblock
3718 #: ../src/guestfs.pod:1922
3719 msgid ""
3720 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
3721 "The normal request message is sent (see above).  However this is followed by "
3722 "a sequence of file chunks."
3723 msgstr ""
3724
3725 # type: verbatim
3726 #: ../src/guestfs.pod:1926
3727 #, no-wrap
3728 msgid ""
3729 " total length (header + arguments,\n"
3730 "      but not including the length word itself,\n"
3731 "      and not including the chunks)\n"
3732 " struct guestfs_message_header (encoded as XDR)\n"
3733 " struct guestfs_<foo>_args (encoded as XDR)\n"
3734 " sequence of chunks for FileIn param #0\n"
3735 " sequence of chunks for FileIn param #1 etc.\n"
3736 "\n"
3737 msgstr ""
3738
3739 # type: textblock
3740 #: ../src/guestfs.pod:1934
3741 msgid "The \"sequence of chunks\" is:"
3742 msgstr ""
3743
3744 # type: verbatim
3745 #: ../src/guestfs.pod:1936
3746 #, no-wrap
3747 msgid ""
3748 " length of chunk (not including length word itself)\n"
3749 " struct guestfs_chunk (encoded as XDR)\n"
3750 " length of chunk\n"
3751 " struct guestfs_chunk (encoded as XDR)\n"
3752 "   ...\n"
3753 " length of chunk\n"
3754 " struct guestfs_chunk (with data.data_len == 0)\n"
3755 "\n"
3756 msgstr ""
3757
3758 # type: textblock
3759 #: ../src/guestfs.pod:1944
3760 msgid ""
3761 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
3762 "is set in the final chunk to indicate either successful completion or early "
3763 "cancellation."
3764 msgstr ""
3765
3766 # type: textblock
3767 #: ../src/guestfs.pod:1948
3768 msgid ""
3769 "At time of writing there are no functions that have more than one FileIn "
3770 "parameter.  However this is (theoretically) supported, by sending the "
3771 "sequence of chunks for each FileIn parameter one after another (from left to "
3772 "right)."
3773 msgstr ""
3774
3775 # type: textblock
3776 #: ../src/guestfs.pod:1953
3777 msgid ""
3778 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
3779 "transfer.  The library does this by sending a chunk with a special flag set "
3780 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
3781 "RPC, does I<not> send any reply, and goes back to reading the next request."
3782 msgstr ""
3783
3784 # type: textblock
3785 #: ../src/guestfs.pod:1959
3786 msgid ""
3787 "The daemon may also cancel.  It does this by writing a special word "
3788 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
3789 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
3790 "cancel chunk).  The special word is chosen so that even if cancellation "
3791 "happens right at the end of the transfer (after the library has finished "
3792 "writing and has started listening for the reply), the \"spurious\" cancel "
3793 "flag will not be confused with the reply message."
3794 msgstr ""
3795
3796 # type: textblock
3797 #: ../src/guestfs.pod:1968
3798 msgid ""
3799 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
3800 "limit), and also files where the size is not known in advance (eg. from "
3801 "pipes or sockets).  However the chunks are rather small "
3802 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
3803 "to keep much in memory."
3804 msgstr ""
3805
3806 # type: =head3
3807 #: ../src/guestfs.pod:1974
3808 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
3809 msgstr ""
3810
3811 # type: textblock
3812 #: ../src/guestfs.pod:1976
3813 msgid ""
3814 "The protocol for FileOut parameters is exactly the same as for FileIn "
3815 "parameters, but with the roles of daemon and library reversed."
3816 msgstr ""
3817
3818 # type: verbatim
3819 #: ../src/guestfs.pod:1979
3820 #, no-wrap
3821 msgid ""
3822 " total length (header + ret,\n"
3823 "      but not including the length word itself,\n"
3824 "      and not including the chunks)\n"
3825 " struct guestfs_message_header (encoded as XDR)\n"
3826 " struct guestfs_<foo>_ret (encoded as XDR)\n"
3827 " sequence of chunks for FileOut param #0\n"
3828 " sequence of chunks for FileOut param #1 etc.\n"
3829 "\n"
3830 msgstr ""
3831
3832 # type: =head3
3833 #: ../src/guestfs.pod:1987
3834 msgid "INITIAL MESSAGE"
3835 msgstr ""
3836
3837 # type: textblock
3838 #: ../src/guestfs.pod:1989
3839 msgid ""
3840 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
3841 "which indicates that the guest and daemon is alive.  This is what "
3842 "L</guestfs_launch> waits for."
3843 msgstr ""
3844
3845 # type: =head3
3846 #: ../src/guestfs.pod:1993
3847 msgid "PROGRESS NOTIFICATION MESSAGES"
3848 msgstr ""
3849
3850 # type: textblock
3851 #: ../src/guestfs.pod:1995
3852 msgid ""
3853 "The daemon may send progress notification messages at any time.  These are "
3854 "distinguished by the normal length word being replaced by "
3855 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
3856 msgstr ""
3857
3858 # type: textblock
3859 #: ../src/guestfs.pod:1999
3860 msgid ""
3861 "The library turns them into progress callbacks (see "
3862 "C<guestfs_set_progress_callback>) if there is a callback registered, or "
3863 "discards them if not."
3864 msgstr ""
3865
3866 # type: textblock
3867 #: ../src/guestfs.pod:2003
3868 msgid ""
3869 "The daemon self-limits the frequency of progress messages it sends (see "
3870 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
3871 "messages."
3872 msgstr ""
3873
3874 # type: =head1
3875 #: ../src/guestfs.pod:2007
3876 msgid "LIBGUESTFS VERSION NUMBERS"
3877 msgstr ""
3878
3879 # type: textblock
3880 #: ../src/guestfs.pod:2009
3881 msgid ""
3882 "Since April 2010, libguestfs has started to make separate development and "
3883 "stable releases, along with corresponding branches in our git repository.  "
3884 "These separate releases can be identified by version number:"
3885 msgstr ""
3886
3887 # type: verbatim
3888 #: ../src/guestfs.pod:2014
3889 #, no-wrap
3890 msgid ""
3891 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
3892 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
3893 "       |\n"
3894 "       v\n"
3895 " 1  .  3  .  5\n"
3896 " ^           ^\n"
3897 " |           |\n"
3898 " |           `-------- sub-version\n"
3899 " |\n"
3900 " `------ always '1' because we don't change the ABI\n"
3901 "\n"
3902 msgstr ""
3903
3904 # type: textblock
3905 #: ../src/guestfs.pod:2025
3906 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
3907 msgstr ""
3908
3909 # type: textblock
3910 #: ../src/guestfs.pod:2027
3911 msgid ""
3912 "As time passes we cherry pick fixes from the development branch and backport "
3913 "those into the stable branch, the effect being that the stable branch should "
3914 "get more stable and less buggy over time.  So the stable releases are ideal "
3915 "for people who don't need new features but would just like the software to "
3916 "work."
3917 msgstr ""
3918
3919 # type: textblock
3920 #: ../src/guestfs.pod:2033
3921 msgid "Our criteria for backporting changes are:"
3922 msgstr ""
3923
3924 # type: textblock
3925 #: ../src/guestfs.pod:2039
3926 msgid ""
3927 "Documentation changes which don't affect any code are backported unless the "
3928 "documentation refers to a future feature which is not in stable."
3929 msgstr ""
3930
3931 # type: textblock
3932 #: ../src/guestfs.pod:2045
3933 msgid ""
3934 "Bug fixes which are not controversial, fix obvious problems, and have been "
3935 "well tested are backported."
3936 msgstr ""
3937
3938 # type: textblock
3939 #: ../src/guestfs.pod:2050
3940 msgid ""
3941 "Simple rearrangements of code which shouldn't affect how it works get "
3942 "backported.  This is so that the code in the two branches doesn't get too "
3943 "far out of step, allowing us to backport future fixes more easily."
3944 msgstr ""
3945
3946 # type: textblock
3947 #: ../src/guestfs.pod:2056
3948 msgid ""
3949 "We I<don't> backport new features, new APIs, new tools etc, except in one "
3950 "exceptional case: the new feature is required in order to implement an "
3951 "important bug fix."
3952 msgstr ""
3953
3954 # type: textblock
3955 #: ../src/guestfs.pod:2062
3956 msgid ""
3957 "A new stable branch starts when we think the new features in development are "
3958 "substantial and compelling enough over the current stable branch to warrant "
3959 "it.  When that happens we create new stable and development versions 1.N.0 "
3960 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
3961 "stable at this point, but by backporting fixes from development, that branch "
3962 "will stabilize over time."
3963 msgstr ""
3964
3965 # type: =head1
3966 #: ../src/guestfs.pod:2070 ../fish/guestfish.pod:965 ../test-tool/libguestfs-test-tool.pod:104 ../tools/virt-edit.pl:330
3967 msgid "ENVIRONMENT VARIABLES"
3968 msgstr ""
3969
3970 # type: =item
3971 #: ../src/guestfs.pod:2074 ../fish/guestfish.pod:991
3972 msgid "LIBGUESTFS_APPEND"
3973 msgstr ""
3974
3975 # type: textblock
3976 #: ../src/guestfs.pod:2076 ../fish/guestfish.pod:993
3977 msgid "Pass additional options to the guest kernel."
3978 msgstr ""
3979
3980 # type: =item
3981 #: ../src/guestfs.pod:2078 ../fish/guestfish.pod:995
3982 msgid "LIBGUESTFS_DEBUG"
3983 msgstr ""
3984
3985 # type: textblock
3986 #: ../src/guestfs.pod:2080
3987 msgid ""
3988 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
3989 "effect as calling C<guestfs_set_verbose (g, 1)>."
3990 msgstr ""
3991
3992 # type: =item
3993 #: ../src/guestfs.pod:2083 ../fish/guestfish.pod:1000
3994 msgid "LIBGUESTFS_MEMSIZE"
3995 msgstr ""
3996
3997 # type: textblock
3998 #: ../src/guestfs.pod:2085 ../fish/guestfish.pod:1002
3999 msgid "Set the memory allocated to the qemu process, in megabytes.  For example:"
4000 msgstr ""
4001
4002 # type: verbatim
4003 #: ../src/guestfs.pod:2088 ../fish/guestfish.pod:1005
4004 #, no-wrap
4005 msgid ""
4006 " LIBGUESTFS_MEMSIZE=700\n"
4007 "\n"
4008 msgstr ""
4009
4010 # type: =item
4011 #: ../src/guestfs.pod:2090 ../fish/guestfish.pod:1007
4012 msgid "LIBGUESTFS_PATH"
4013 msgstr ""
4014
4015 # type: textblock
4016 #: ../src/guestfs.pod:2092
4017 msgid ""
4018 "Set the path that libguestfs uses to search for kernel and initrd.img.  See "
4019 "the discussion of paths in section PATH above."
4020 msgstr ""
4021
4022 # type: =item
4023 #: ../src/guestfs.pod:2095 ../fish/guestfish.pod:1012
4024 msgid "LIBGUESTFS_QEMU"
4025 msgstr ""
4026
4027 # type: textblock
4028 #: ../src/guestfs.pod:2097 ../fish/guestfish.pod:1014
4029 msgid ""
4030 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
4031 "which was found at compile time by the configure script is used."
4032 msgstr ""
4033
4034 # type: textblock
4035 #: ../src/guestfs.pod:2101
4036 msgid "See also L</QEMU WRAPPERS> above."
4037 msgstr ""
4038
4039 # type: =item
4040 #: ../src/guestfs.pod:2103 ../fish/guestfish.pod:1018
4041 msgid "LIBGUESTFS_TRACE"
4042 msgstr ""
4043
4044 # type: textblock
4045 #: ../src/guestfs.pod:2105
4046 msgid ""
4047 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
4048 "effect as calling C<guestfs_set_trace (g, 1)>."
4049 msgstr ""
4050
4051 # type: =item
4052 #: ../src/guestfs.pod:2108 ../fish/guestfish.pod:1027
4053 msgid "TMPDIR"
4054 msgstr ""
4055
4056 # type: textblock
4057 #: ../src/guestfs.pod:2110 ../fish/guestfish.pod:1029
4058 msgid "Location of temporary directory, defaults to C</tmp>."
4059 msgstr ""
4060
4061 # type: textblock
4062 #: ../src/guestfs.pod:2112 ../fish/guestfish.pod:1031
4063 msgid ""
4064 "If libguestfs was compiled to use the supermin appliance then the real "
4065 "appliance is cached in this directory, shared between all handles belonging "
4066 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
4067 "use in case C</tmp> is not large enough."
4068 msgstr ""
4069
4070 # type: =head1
4071 #: ../src/guestfs.pod:2120 ../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
4072 msgid "SEE ALSO"
4073 msgstr ""
4074
4075 # type: textblock
4076 #: ../src/guestfs.pod:2122
4077 msgid ""
4078 "L<guestfs-examples(3)>, L<guestfs-ocaml(3)>, L<guestfs-python(3)>, "
4079 "L<guestfs-ruby(3)>, L<guestfish(1)>, L<guestmount(1)>, L<virt-cat(1)>, "
4080 "L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems(1)>, "
4081 "L<virt-inspector(1)>, L<virt-list-filesystems(1)>, "
4082 "L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, "
4083 "L<virt-rescue(1)>, L<virt-tar(1)>, L<virt-win-reg(1)>, L<qemu(1)>, "
4084 "L<febootstrap(1)>, L<hivex(3)>, L<http://libguestfs.org/>."
4085 msgstr ""
4086
4087 # type: textblock
4088 #: ../src/guestfs.pod:2145
4089 msgid ""
4090 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, "
4091 "L<lvm(8)>, L<disktype(1)>."
4092 msgstr ""
4093
4094 # type: =head1
4095 #: ../src/guestfs.pod:2152 ../tools/virt-win-reg.pl:587 ../tools/virt-make-fs.pl:548
4096 msgid "BUGS"
4097 msgstr ""
4098
4099 # type: textblock
4100 #: ../src/guestfs.pod:2154
4101 msgid "To get a list of bugs against libguestfs use this link:"
4102 msgstr ""
4103
4104 # type: textblock
4105 #: ../src/guestfs.pod:2156
4106 msgid "L<https://bugzilla.redhat.com/buglist.cgi?component=libguestfs&product=Virtualization+Tools>"
4107 msgstr ""
4108
4109 # type: textblock
4110 #: ../src/guestfs.pod:2158
4111 msgid "To report a new bug against libguestfs use this link:"
4112 msgstr ""
4113
4114 # type: textblock
4115 #: ../src/guestfs.pod:2160
4116 msgid "L<https://bugzilla.redhat.com/enter_bug.cgi?component=libguestfs&product=Virtualization+Tools>"
4117 msgstr ""
4118
4119 # type: textblock
4120 #: ../src/guestfs.pod:2162
4121 msgid "When reporting a bug, please check:"
4122 msgstr ""
4123
4124 # type: textblock
4125 #: ../src/guestfs.pod:2168
4126 msgid "That the bug hasn't been reported already."
4127 msgstr ""
4128
4129 # type: textblock
4130 #: ../src/guestfs.pod:2172
4131 msgid "That you are testing a recent version."
4132 msgstr ""
4133
4134 # type: textblock
4135 #: ../src/guestfs.pod:2176
4136 msgid "Describe the bug accurately, and give a way to reproduce it."
4137 msgstr ""
4138
4139 # type: textblock
4140 #: ../src/guestfs.pod:2180
4141 msgid ""
4142 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
4143 "bug report."
4144 msgstr ""
4145
4146 # type: =head1
4147 #: ../src/guestfs.pod:2185 ../fish/guestfish.pod:1108 ../test-tool/libguestfs-test-tool.pod:115 ../fuse/guestmount.pod:244
4148 msgid "AUTHORS"
4149 msgstr ""
4150
4151 # type: textblock
4152 #: ../src/guestfs.pod:2187 ../fish/guestfish.pod:1110 ../test-tool/libguestfs-test-tool.pod:117 ../fuse/guestmount.pod:246
4153 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
4154 msgstr ""
4155
4156 # type: =head1
4157 #: ../src/guestfs.pod:2189 ../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
4158 msgid "COPYRIGHT"
4159 msgstr ""
4160
4161 # type: textblock
4162 #: ../src/guestfs.pod:2191 ../fish/guestfish.pod:1114 ../fuse/guestmount.pod:250
4163 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
4164 msgstr ""
4165
4166 # type: textblock
4167 #: ../src/guestfs.pod:2194
4168 msgid ""
4169 "This library is free software; you can redistribute it and/or modify it "
4170 "under the terms of the GNU Lesser General Public License as published by the "
4171 "Free Software Foundation; either version 2 of the License, or (at your "
4172 "option) any later version."
4173 msgstr ""
4174
4175 # type: textblock
4176 #: ../src/guestfs.pod:2199
4177 msgid ""
4178 "This library is distributed in the hope that it will be useful, but WITHOUT "
4179 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
4180 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License "
4181 "for more details."
4182 msgstr ""
4183
4184 # type: textblock
4185 #: ../src/guestfs.pod:2204
4186 msgid ""
4187 "You should have received a copy of the GNU Lesser General Public License "
4188 "along with this library; if not, write to the Free Software Foundation, "
4189 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
4190 msgstr ""
4191
4192 # type: =head2
4193 #: ../src/guestfs-actions.pod:1
4194 msgid "guestfs_add_cdrom"
4195 msgstr ""
4196
4197 # type: verbatim
4198 #: ../src/guestfs-actions.pod:3
4199 #, no-wrap
4200 msgid ""
4201 " int\n"
4202 " guestfs_add_cdrom (guestfs_h *g,\n"
4203 "                    const char *filename);\n"
4204 "\n"
4205 msgstr ""
4206
4207 # type: textblock
4208 #: ../src/guestfs-actions.pod:7 ../fish/guestfish-actions.pod:5
4209 msgid "This function adds a virtual CD-ROM disk image to the guest."
4210 msgstr ""
4211
4212 # type: textblock
4213 #: ../src/guestfs-actions.pod:9 ../fish/guestfish-actions.pod:7
4214 msgid "This is equivalent to the qemu parameter C<-cdrom filename>."
4215 msgstr ""
4216
4217 # type: textblock
4218 #: ../src/guestfs-actions.pod:17
4219 msgid ""
4220 "This call checks for the existence of C<filename>.  This stops you from "
4221 "specifying other types of drive which are supported by qemu such as C<nbd:> "
4222 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
4223 "instead."
4224 msgstr ""
4225
4226 # type: textblock
4227 #: ../src/guestfs-actions.pod:24
4228 msgid ""
4229 "If you just want to add an ISO file (often you use this as an efficient way "
4230 "to transfer large files into the guest), then you should probably use "
4231 "C<guestfs_add_drive_ro> instead."
4232 msgstr ""
4233
4234 # type: textblock
4235 #: ../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:2243 ../src/guestfs-actions.pod:2387 ../src/guestfs-actions.pod:2448 ../src/guestfs-actions.pod:2483 ../src/guestfs-actions.pod:3222 ../src/guestfs-actions.pod:3237 ../src/guestfs-actions.pod:3257 ../src/guestfs-actions.pod:3410 ../src/guestfs-actions.pod:3424 ../src/guestfs-actions.pod:3437 ../src/guestfs-actions.pod:3451 ../src/guestfs-actions.pod:3466 ../src/guestfs-actions.pod:3502 ../src/guestfs-actions.pod:3574 ../src/guestfs-actions.pod:3594 ../src/guestfs-actions.pod:3611 ../src/guestfs-actions.pod:3634 ../src/guestfs-actions.pod:3657 ../src/guestfs-actions.pod:3689 ../src/guestfs-actions.pod:3708 ../src/guestfs-actions.pod:3727 ../src/guestfs-actions.pod:3762 ../src/guestfs-actions.pod:3774 ../src/guestfs-actions.pod:3810 ../src/guestfs-actions.pod:3826 ../src/guestfs-actions.pod:3839 ../src/guestfs-actions.pod:3854 ../src/guestfs-actions.pod:3871 ../src/guestfs-actions.pod:3964 ../src/guestfs-actions.pod:3984 ../src/guestfs-actions.pod:3997 ../src/guestfs-actions.pod:4048 ../src/guestfs-actions.pod:4066 ../src/guestfs-actions.pod:4084 ../src/guestfs-actions.pod:4100 ../src/guestfs-actions.pod:4114 ../src/guestfs-actions.pod:4128 ../src/guestfs-actions.pod:4145 ../src/guestfs-actions.pod:4160 ../src/guestfs-actions.pod:4180 ../src/guestfs-actions.pod:4224 ../src/guestfs-actions.pod:4295 ../src/guestfs-actions.pod:4326 ../src/guestfs-actions.pod:4345 ../src/guestfs-actions.pod:4364 ../src/guestfs-actions.pod:4376 ../src/guestfs-actions.pod:4393 ../src/guestfs-actions.pod:4406 ../src/guestfs-actions.pod:4421 ../src/guestfs-actions.pod:4436 ../src/guestfs-actions.pod:4471 ../src/guestfs-actions.pod:4486 ../src/guestfs-actions.pod:4506 ../src/guestfs-actions.pod:4520 ../src/guestfs-actions.pod:4537 ../src/guestfs-actions.pod:4586 ../src/guestfs-actions.pod:4623 ../src/guestfs-actions.pod:4637 ../src/guestfs-actions.pod:4665 ../src/guestfs-actions.pod:4682 ../src/guestfs-actions.pod:4700 ../src/guestfs-actions.pod:4834 ../src/guestfs-actions.pod:4891 ../src/guestfs-actions.pod:4913 ../src/guestfs-actions.pod:4931 ../src/guestfs-actions.pod:4963 ../src/guestfs-actions.pod:5029 ../src/guestfs-actions.pod:5046 ../src/guestfs-actions.pod:5059 ../src/guestfs-actions.pod:5073 ../src/guestfs-actions.pod:5362 ../src/guestfs-actions.pod:5381 ../src/guestfs-actions.pod:5395 ../src/guestfs-actions.pod:5407 ../src/guestfs-actions.pod:5421 ../src/guestfs-actions.pod:5433 ../src/guestfs-actions.pod:5447 ../src/guestfs-actions.pod:5463 ../src/guestfs-actions.pod:5484 ../src/guestfs-actions.pod:5503 ../src/guestfs-actions.pod:5522 ../src/guestfs-actions.pod:5540 ../src/guestfs-actions.pod:5563 ../src/guestfs-actions.pod:5581 ../src/guestfs-actions.pod:5600 ../src/guestfs-actions.pod:5621 ../src/guestfs-actions.pod:5640 ../src/guestfs-actions.pod:5657 ../src/guestfs-actions.pod:5685 ../src/guestfs-actions.pod:5709 ../src/guestfs-actions.pod:5728 ../src/guestfs-actions.pod:5752 ../src/guestfs-actions.pod:5767 ../src/guestfs-actions.pod:5782 ../src/guestfs-actions.pod:5801 ../src/guestfs-actions.pod:5838 ../src/guestfs-actions.pod:5861 ../src/guestfs-actions.pod:5887 ../src/guestfs-actions.pod:5995 ../src/guestfs-actions.pod:6116 ../src/guestfs-actions.pod:6128 ../src/guestfs-actions.pod:6141 ../src/guestfs-actions.pod:6154 ../src/guestfs-actions.pod:6176 ../src/guestfs-actions.pod:6189 ../src/guestfs-actions.pod:6202 ../src/guestfs-actions.pod:6215 ../src/guestfs-actions.pod:6230 ../src/guestfs-actions.pod:6289 ../src/guestfs-actions.pod:6306 ../src/guestfs-actions.pod:6322 ../src/guestfs-actions.pod:6338 ../src/guestfs-actions.pod:6355 ../src/guestfs-actions.pod:6368 ../src/guestfs-actions.pod:6388 ../src/guestfs-actions.pod:6424 ../src/guestfs-actions.pod:6438 ../src/guestfs-actions.pod:6479 ../src/guestfs-actions.pod:6492 ../src/guestfs-actions.pod:6510 ../src/guestfs-actions.pod:6544 ../src/guestfs-actions.pod:6580 ../src/guestfs-actions.pod:6699 ../src/guestfs-actions.pod:6717 ../src/guestfs-actions.pod:6731 ../src/guestfs-actions.pod:6786 ../src/guestfs-actions.pod:6799 ../src/guestfs-actions.pod:6844 ../src/guestfs-actions.pod:6877 ../src/guestfs-actions.pod:6931 ../src/guestfs-actions.pod:6957 ../src/guestfs-actions.pod:7023 ../src/guestfs-actions.pod:7042 ../src/guestfs-actions.pod:7071
4236 msgid "This function returns 0 on success or -1 on error."
4237 msgstr ""
4238
4239 # type: textblock
4240 #: ../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
4241 msgid ""
4242 "This function is deprecated.  In new code, use the C<add_drive_opts> call "
4243 "instead."
4244 msgstr ""
4245
4246 # type: textblock
4247 #: ../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:4185 ../src/guestfs-actions.pod:6965 ../src/guestfs-actions.pod:7134 ../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:2818 ../fish/guestfish-actions.pod:4620 ../fish/guestfish-actions.pod:4717
4248 msgid ""
4249 "Deprecated functions will not be removed from the API, but the fact that "
4250 "they are deprecated indicates that there are problems with correct use of "
4251 "these functions."
4252 msgstr ""
4253
4254 # type: textblock
4255 #: ../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:3224 ../src/guestfs-actions.pod:3239 ../src/guestfs-actions.pod:4473 ../src/guestfs-actions.pod:5542 ../src/guestfs-actions.pod:5659 ../src/guestfs-actions.pod:5769 ../src/guestfs-actions.pod:6232 ../src/guestfs-actions.pod:6357 ../src/guestfs-actions.pod:6879
4256 msgid "(Added in 0.3)"
4257 msgstr ""
4258
4259 # type: =head2
4260 #: ../src/guestfs-actions.pod:41
4261 msgid "guestfs_add_domain"
4262 msgstr ""
4263
4264 # type: verbatim
4265 #: ../src/guestfs-actions.pod:43
4266 #, no-wrap
4267 msgid ""
4268 " int\n"
4269 " guestfs_add_domain (guestfs_h *g,\n"
4270 "                     const char *dom,\n"
4271 "                     ...);\n"
4272 "\n"
4273 msgstr ""
4274
4275 # type: textblock
4276 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:139 ../src/guestfs-actions.pod:4199
4277 msgid ""
4278 "You may supply a list of optional arguments to this call.  Use zero or more "
4279 "of the following pairs of parameters, and terminate the list with C<-1> on "
4280 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
4281 msgstr ""
4282
4283 # type: verbatim
4284 #: ../src/guestfs-actions.pod:53
4285 #, no-wrap
4286 msgid ""
4287 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
4288 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
4289 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
4290 "\n"
4291 msgstr ""
4292
4293 # type: textblock
4294 #: ../src/guestfs-actions.pod:57
4295 msgid ""
4296 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
4297 "It works by connecting to libvirt, requesting the domain and domain XML from "
4298 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
4299 "one."
4300 msgstr ""
4301
4302 # type: textblock
4303 #: ../src/guestfs-actions.pod:62 ../fish/guestfish-actions.pod:46
4304 msgid ""
4305 "The number of disks added is returned.  This operation is atomic: if an "
4306 "error is returned, then no disks are added."
4307 msgstr ""
4308
4309 # type: textblock
4310 #: ../src/guestfs-actions.pod:65 ../fish/guestfish-actions.pod:49
4311 msgid ""
4312 "This function does some minimal checks to make sure the libvirt domain is "
4313 "not running (unless C<readonly> is true).  In a future version we will try "
4314 "to acquire the libvirt lock on each disk."
4315 msgstr ""
4316
4317 # type: textblock
4318 #: ../src/guestfs-actions.pod:69 ../fish/guestfish-actions.pod:53
4319 msgid ""
4320 "Disks must be accessible locally.  This often means that adding disks from a "
4321 "remote libvirt connection (see L<http://libvirt.org/remote.html>)  will fail "
4322 "unless those disks are accessible via the same device path locally too."
4323 msgstr ""
4324
4325 # type: textblock
4326 #: ../src/guestfs-actions.pod:74
4327 msgid ""
4328 "The optional C<libvirturi> parameter sets the libvirt URI (see "
4329 "L<http://libvirt.org/uri.html>).  If this is not set then we connect to the "
4330 "default libvirt URI (or one set through an environment variable, see the "
4331 "libvirt documentation for full details).  If you are using the C API "
4332 "directly then it is more flexible to create the libvirt connection object "
4333 "yourself, get the domain object, and call C<guestfs_add_libvirt_dom>."
4334 msgstr ""
4335
4336 # type: textblock
4337 #: ../src/guestfs-actions.pod:82
4338 msgid ""
4339 "The other optional parameters are passed directly through to "
4340 "C<guestfs_add_drive_opts>."
4341 msgstr ""
4342
4343 # type: textblock
4344 #: ../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:2374 ../src/guestfs-actions.pod:2662 ../src/guestfs-actions.pod:2683 ../src/guestfs-actions.pod:4609 ../src/guestfs-actions.pod:4737 ../src/guestfs-actions.pod:5143 ../src/guestfs-actions.pod:5169 ../src/guestfs-actions.pod:6465 ../src/guestfs-actions.pod:6890 ../src/guestfs-actions.pod:6903 ../src/guestfs-actions.pod:6916
4345 msgid "On error this function returns -1."
4346 msgstr ""
4347
4348 # type: textblock
4349 #: ../src/guestfs-actions.pod:87
4350 msgid "(Added in 1.7.4)"
4351 msgstr ""
4352
4353 # type: =head2
4354 #: ../src/guestfs-actions.pod:89
4355 msgid "guestfs_add_domain_va"
4356 msgstr ""
4357
4358 # type: verbatim
4359 #: ../src/guestfs-actions.pod:91
4360 #, no-wrap
4361 msgid ""
4362 " int\n"
4363 " guestfs_add_domain_va (guestfs_h *g,\n"
4364 "                        const char *dom,\n"
4365 "                        va_list args);\n"
4366 "\n"
4367 msgstr ""
4368
4369 # type: textblock
4370 #: ../src/guestfs-actions.pod:96
4371 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
4372 msgstr ""
4373
4374 # type: textblock
4375 #: ../src/guestfs-actions.pod:98 ../src/guestfs-actions.pod:109 ../src/guestfs-actions.pod:202 ../src/guestfs-actions.pod:213 ../src/guestfs-actions.pod:4236 ../src/guestfs-actions.pod:4248
4376 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
4377 msgstr ""
4378
4379 # type: =head2
4380 #: ../src/guestfs-actions.pod:100
4381 msgid "guestfs_add_domain_argv"
4382 msgstr ""
4383
4384 # type: verbatim
4385 #: ../src/guestfs-actions.pod:102
4386 #, no-wrap
4387 msgid ""
4388 " int\n"
4389 " guestfs_add_domain_argv (guestfs_h *g,\n"
4390 "                          const char *dom,\n"
4391 "                          const struct guestfs_add_domain_argv *optargs);\n"
4392 "\n"
4393 msgstr ""
4394
4395 # type: textblock
4396 #: ../src/guestfs-actions.pod:107
4397 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
4398 msgstr ""
4399
4400 # type: =head2
4401 #: ../src/guestfs-actions.pod:111
4402 msgid "guestfs_add_drive"
4403 msgstr ""
4404
4405 # type: verbatim
4406 #: ../src/guestfs-actions.pod:113
4407 #, no-wrap
4408 msgid ""
4409 " int\n"
4410 " guestfs_add_drive (guestfs_h *g,\n"
4411 "                    const char *filename);\n"
4412 "\n"
4413 msgstr ""
4414
4415 # type: textblock
4416 #: ../src/guestfs-actions.pod:117
4417 msgid ""
4418 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
4419 "optional parameters, so the disk is added writable, with the format being "
4420 "detected automatically."
4421 msgstr ""
4422
4423 # type: textblock
4424 #: ../src/guestfs-actions.pod:121
4425 msgid ""
4426 "Automatic detection of the format opens you up to a potential security hole "
4427 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
4428 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
4429 "you should think about replacing calls to this function with calls to "
4430 "C<guestfs_add_drive_opts>, and specifying the format."
4431 msgstr ""
4432
4433 # type: =head2
4434 #: ../src/guestfs-actions.pod:132
4435 msgid "guestfs_add_drive_opts"
4436 msgstr ""
4437
4438 # type: verbatim
4439 #: ../src/guestfs-actions.pod:134
4440 #, no-wrap
4441 msgid ""
4442 " int\n"
4443 " guestfs_add_drive_opts (guestfs_h *g,\n"
4444 "                         const char *filename,\n"
4445 "                         ...);\n"
4446 "\n"
4447 msgstr ""
4448
4449 # type: verbatim
4450 #: ../src/guestfs-actions.pod:144
4451 #, no-wrap
4452 msgid ""
4453 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
4454 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
4455 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
4456 "\n"
4457 msgstr ""
4458
4459 # type: textblock
4460 #: ../src/guestfs-actions.pod:148 ../fish/guestfish-actions.pod:92
4461 msgid ""
4462 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
4463 "The first time you call this function, the disk appears as C</dev/sda>, the "
4464 "second time as C</dev/sdb>, and so on."
4465 msgstr ""
4466
4467 # type: textblock
4468 #: ../src/guestfs-actions.pod:153 ../fish/guestfish-actions.pod:97
4469 msgid ""
4470 "You don't necessarily need to be root when using libguestfs.  However you "
4471 "obviously do need sufficient permissions to access the filename for whatever "
4472 "operations you want to perform (ie. read access if you just want to read the "
4473 "image or write access if you want to modify the image)."
4474 msgstr ""
4475
4476 # type: textblock
4477 #: ../src/guestfs-actions.pod:159 ../fish/guestfish-actions.pod:103
4478 msgid "This call checks that C<filename> exists."
4479 msgstr ""
4480
4481 # type: textblock
4482 #: ../src/guestfs-actions.pod:161 ../src/guestfs-actions.pod:4209 ../fish/guestfish-actions.pod:105 ../fish/guestfish-actions.pod:2829
4483 msgid "The optional arguments are:"
4484 msgstr ""
4485
4486 # type: =item
4487 #: ../src/guestfs-actions.pod:165 ../fish/guestfish-actions.pod:109
4488 msgid "C<readonly>"
4489 msgstr ""
4490
4491 # type: textblock
4492 #: ../src/guestfs-actions.pod:167 ../fish/guestfish-actions.pod:111
4493 msgid ""
4494 "If true then the image is treated as read-only.  Writes are still allowed, "
4495 "but they are stored in a temporary snapshot overlay which is discarded at "
4496 "the end.  The disk that you add is not modified."
4497 msgstr ""
4498
4499 # type: =item
4500 #: ../src/guestfs-actions.pod:171 ../fish/guestfish-actions.pod:115
4501 msgid "C<format>"
4502 msgstr ""
4503
4504 # type: textblock
4505 #: ../src/guestfs-actions.pod:173
4506 msgid ""
4507 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
4508 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
4509 "Possible formats include C<raw> and C<qcow2>."
4510 msgstr ""
4511
4512 # type: textblock
4513 #: ../src/guestfs-actions.pod:177 ../fish/guestfish-actions.pod:121
4514 msgid ""
4515 "Automatic detection of the format opens you up to a potential security hole "
4516 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
4517 "RHBZ#642934.  Specifying the format closes this security hole."
4518 msgstr ""
4519
4520 # type: =item
4521 #: ../src/guestfs-actions.pod:182 ../fish/guestfish-actions.pod:126
4522 msgid "C<iface>"
4523 msgstr ""
4524
4525 # type: textblock
4526 #: ../src/guestfs-actions.pod:184
4527 msgid ""
4528 "This rarely-used option lets you emulate the behaviour of the deprecated "
4529 "C<guestfs_add_drive_with_if> call (q.v.)"
4530 msgstr ""
4531
4532 # type: textblock
4533 #: ../src/guestfs-actions.pod:191
4534 msgid "(Added in 1.5.23)"
4535 msgstr ""
4536
4537 # type: =head2
4538 #: ../src/guestfs-actions.pod:193
4539 msgid "guestfs_add_drive_opts_va"
4540 msgstr ""
4541
4542 # type: verbatim
4543 #: ../src/guestfs-actions.pod:195
4544 #, no-wrap
4545 msgid ""
4546 " int\n"
4547 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
4548 "                            const char *filename,\n"
4549 "                            va_list args);\n"
4550 "\n"
4551 msgstr ""
4552
4553 # type: textblock
4554 #: ../src/guestfs-actions.pod:200
4555 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
4556 msgstr ""
4557
4558 # type: =head2
4559 #: ../src/guestfs-actions.pod:204
4560 msgid "guestfs_add_drive_opts_argv"
4561 msgstr ""
4562
4563 # type: verbatim
4564 #: ../src/guestfs-actions.pod:206
4565 #, no-wrap
4566 msgid ""
4567 " int\n"
4568 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
4569 "                              const char *filename,\n"
4570 "                              const struct guestfs_add_drive_opts_argv "
4571 "*optargs);\n"
4572 "\n"
4573 msgstr ""
4574
4575 # type: textblock
4576 #: ../src/guestfs-actions.pod:211
4577 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
4578 msgstr ""
4579
4580 # type: =head2
4581 #: ../src/guestfs-actions.pod:215
4582 msgid "guestfs_add_drive_ro"
4583 msgstr ""
4584
4585 # type: verbatim
4586 #: ../src/guestfs-actions.pod:217
4587 #, no-wrap
4588 msgid ""
4589 " int\n"
4590 " guestfs_add_drive_ro (guestfs_h *g,\n"
4591 "                       const char *filename);\n"
4592 "\n"
4593 msgstr ""
4594
4595 # type: textblock
4596 #: ../src/guestfs-actions.pod:221
4597 msgid ""
4598 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
4599 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
4600 "disk is added read-only, with the format being detected automatically."
4601 msgstr ""
4602
4603 # type: textblock
4604 #: ../src/guestfs-actions.pod:228
4605 msgid "(Added in 1.0.38)"
4606 msgstr ""
4607
4608 # type: =head2
4609 #: ../src/guestfs-actions.pod:230
4610 msgid "guestfs_add_drive_ro_with_if"
4611 msgstr ""
4612
4613 # type: verbatim
4614 #: ../src/guestfs-actions.pod:232
4615 #, no-wrap
4616 msgid ""
4617 " int\n"
4618 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
4619 "                               const char *filename,\n"
4620 "                               const char *iface);\n"
4621 "\n"
4622 msgstr ""
4623
4624 # type: textblock
4625 #: ../src/guestfs-actions.pod:237
4626 msgid ""
4627 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
4628 "QEMU interface emulation to use at run time."
4629 msgstr ""
4630
4631 # type: textblock
4632 #: ../src/guestfs-actions.pod:249 ../src/guestfs-actions.pod:270 ../src/guestfs-actions.pod:2333
4633 msgid "(Added in 1.0.84)"
4634 msgstr ""
4635
4636 # type: =head2
4637 #: ../src/guestfs-actions.pod:251
4638 msgid "guestfs_add_drive_with_if"
4639 msgstr ""
4640
4641 # type: verbatim
4642 #: ../src/guestfs-actions.pod:253
4643 #, no-wrap
4644 msgid ""
4645 " int\n"
4646 " guestfs_add_drive_with_if (guestfs_h *g,\n"
4647 "                            const char *filename,\n"
4648 "                            const char *iface);\n"
4649 "\n"
4650 msgstr ""
4651
4652 # type: textblock
4653 #: ../src/guestfs-actions.pod:258
4654 msgid ""
4655 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
4656 "QEMU interface emulation to use at run time."
4657 msgstr ""
4658
4659 # type: =head2
4660 #: ../src/guestfs-actions.pod:272
4661 msgid "guestfs_aug_clear"
4662 msgstr ""
4663
4664 # type: verbatim
4665 #: ../src/guestfs-actions.pod:274
4666 #, no-wrap
4667 msgid ""
4668 " int\n"
4669 " guestfs_aug_clear (guestfs_h *g,\n"
4670 "                    const char *augpath);\n"
4671 "\n"
4672 msgstr ""
4673
4674 # type: textblock
4675 #: ../src/guestfs-actions.pod:278 ../fish/guestfish-actions.pod:178
4676 msgid ""
4677 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
4678 "L<augtool(1)> C<clear> command."
4679 msgstr ""
4680
4681 # type: textblock
4682 #: ../src/guestfs-actions.pod:283 ../src/guestfs-actions.pod:2085
4683 msgid "(Added in 1.3.4)"
4684 msgstr ""
4685
4686 # type: =head2
4687 #: ../src/guestfs-actions.pod:285
4688 msgid "guestfs_aug_close"
4689 msgstr ""
4690
4691 # type: verbatim
4692 #: ../src/guestfs-actions.pod:287
4693 #, no-wrap
4694 msgid ""
4695 " int\n"
4696 " guestfs_aug_close (guestfs_h *g);\n"
4697 "\n"
4698 msgstr ""
4699
4700 # type: textblock
4701 #: ../src/guestfs-actions.pod:290
4702 msgid ""
4703 "Close the current Augeas handle and free up any resources used by it.  After "
4704 "calling this, you have to call C<guestfs_aug_init> again before you can use "
4705 "any other Augeas functions."
4706 msgstr ""
4707
4708 # type: textblock
4709 #: ../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:5220
4710 msgid "(Added in 0.7)"
4711 msgstr ""
4712
4713 # type: =head2
4714 #: ../src/guestfs-actions.pod:299
4715 msgid "guestfs_aug_defnode"
4716 msgstr ""
4717
4718 # type: verbatim
4719 #: ../src/guestfs-actions.pod:301
4720 #, no-wrap
4721 msgid ""
4722 " struct guestfs_int_bool *\n"
4723 " guestfs_aug_defnode (guestfs_h *g,\n"
4724 "                      const char *name,\n"
4725 "                      const char *expr,\n"
4726 "                      const char *val);\n"
4727 "\n"
4728 msgstr ""
4729
4730 # type: textblock
4731 #: ../src/guestfs-actions.pod:307 ../fish/guestfish-actions.pod:194
4732 msgid "Defines a variable C<name> whose value is the result of evaluating C<expr>."
4733 msgstr ""
4734
4735 # type: textblock
4736 #: ../src/guestfs-actions.pod:310
4737 msgid ""
4738 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
4739 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
4740 "containing that single node."
4741 msgstr ""
4742
4743 # type: textblock
4744 #: ../src/guestfs-actions.pod:314 ../fish/guestfish-actions.pod:201
4745 msgid ""
4746 "On success this returns a pair containing the number of nodes in the "
4747 "nodeset, and a boolean flag if a node was created."
4748 msgstr ""
4749
4750 # type: textblock
4751 #: ../src/guestfs-actions.pod:318
4752 msgid ""
4753 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
4754 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
4755 msgstr ""
4756
4757 # type: =head2
4758 #: ../src/guestfs-actions.pod:324
4759 msgid "guestfs_aug_defvar"
4760 msgstr ""
4761
4762 # type: verbatim
4763 #: ../src/guestfs-actions.pod:326
4764 #, no-wrap
4765 msgid ""
4766 " int\n"
4767 " guestfs_aug_defvar (guestfs_h *g,\n"
4768 "                     const char *name,\n"
4769 "                     const char *expr);\n"
4770 "\n"
4771 msgstr ""
4772
4773 # type: textblock
4774 #: ../src/guestfs-actions.pod:331 ../fish/guestfish-actions.pod:209
4775 msgid ""
4776 "Defines an Augeas variable C<name> whose value is the result of evaluating "
4777 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
4778 msgstr ""
4779
4780 # type: textblock
4781 #: ../src/guestfs-actions.pod:335 ../fish/guestfish-actions.pod:213
4782 msgid ""
4783 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
4784 "evaluates to something which is not a nodeset."
4785 msgstr ""
4786
4787 # type: =head2
4788 #: ../src/guestfs-actions.pod:342
4789 msgid "guestfs_aug_get"
4790 msgstr ""
4791
4792 # type: verbatim
4793 #: ../src/guestfs-actions.pod:344
4794 #, no-wrap
4795 msgid ""
4796 " char *\n"
4797 " guestfs_aug_get (guestfs_h *g,\n"
4798 "                  const char *augpath);\n"
4799 "\n"
4800 msgstr ""
4801
4802 # type: textblock
4803 #: ../src/guestfs-actions.pod:348 ../fish/guestfish-actions.pod:220
4804 msgid ""
4805 "Look up the value associated with C<path>.  If C<path> matches exactly one "
4806 "node, the C<value> is returned."
4807 msgstr ""
4808
4809 # type: textblock
4810 #: ../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:2298 ../src/guestfs-actions.pod:2505 ../src/guestfs-actions.pod:2586 ../src/guestfs-actions.pod:2634 ../src/guestfs-actions.pod:2744 ../src/guestfs-actions.pod:2775 ../src/guestfs-actions.pod:2799 ../src/guestfs-actions.pod:2861 ../src/guestfs-actions.pod:2884 ../src/guestfs-actions.pod:3396 ../src/guestfs-actions.pod:3746 ../src/guestfs-actions.pod:3916 ../src/guestfs-actions.pod:4026 ../src/guestfs-actions.pod:4755 ../src/guestfs-actions.pod:4948 ../src/guestfs-actions.pod:5118 ../src/guestfs-actions.pod:5296 ../src/guestfs-actions.pod:5345 ../src/guestfs-actions.pod:5908 ../src/guestfs-actions.pod:5924 ../src/guestfs-actions.pod:5941 ../src/guestfs-actions.pod:5965 ../src/guestfs-actions.pod:6639 ../src/guestfs-actions.pod:6658 ../src/guestfs-actions.pod:6676 ../src/guestfs-actions.pod:6856 ../src/guestfs-actions.pod:7128
4811 msgid ""
4812 "This function returns a string, or NULL on error.  I<The caller must free "
4813 "the returned string after use>."
4814 msgstr ""
4815
4816 # type: =head2
4817 #: ../src/guestfs-actions.pod:356
4818 msgid "guestfs_aug_init"
4819 msgstr ""
4820
4821 # type: verbatim
4822 #: ../src/guestfs-actions.pod:358
4823 #, no-wrap
4824 msgid ""
4825 " int\n"
4826 " guestfs_aug_init (guestfs_h *g,\n"
4827 "                   const char *root,\n"
4828 "                   int flags);\n"
4829 "\n"
4830 msgstr ""
4831
4832 # type: textblock
4833 #: ../src/guestfs-actions.pod:363 ../fish/guestfish-actions.pod:227
4834 msgid ""
4835 "Create a new Augeas handle for editing configuration files.  If there was "
4836 "any previous Augeas handle associated with this guestfs session, then it is "
4837 "closed."
4838 msgstr ""
4839
4840 # type: textblock
4841 #: ../src/guestfs-actions.pod:367
4842 msgid "You must call this before using any other C<guestfs_aug_*> commands."
4843 msgstr ""
4844
4845 # type: textblock
4846 #: ../src/guestfs-actions.pod:370 ../fish/guestfish-actions.pod:234
4847 msgid "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
4848 msgstr ""
4849
4850 # type: textblock
4851 #: ../src/guestfs-actions.pod:373 ../fish/guestfish-actions.pod:237
4852 msgid ""
4853 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
4854 "logical I<or> of the following integers:"
4855 msgstr ""
4856
4857 # type: =item
4858 #: ../src/guestfs-actions.pod:379 ../fish/guestfish-actions.pod:243
4859 msgid "C<AUG_SAVE_BACKUP> = 1"
4860 msgstr ""
4861
4862 # type: textblock
4863 #: ../src/guestfs-actions.pod:381 ../fish/guestfish-actions.pod:245
4864 msgid "Keep the original file with a C<.augsave> extension."
4865 msgstr ""
4866
4867 # type: =item
4868 #: ../src/guestfs-actions.pod:383 ../fish/guestfish-actions.pod:247
4869 msgid "C<AUG_SAVE_NEWFILE> = 2"
4870 msgstr ""
4871
4872 # type: textblock
4873 #: ../src/guestfs-actions.pod:385 ../fish/guestfish-actions.pod:249
4874 msgid ""
4875 "Save changes into a file with extension C<.augnew>, and do not overwrite "
4876 "original.  Overrides C<AUG_SAVE_BACKUP>."
4877 msgstr ""
4878
4879 # type: =item
4880 #: ../src/guestfs-actions.pod:388 ../fish/guestfish-actions.pod:252
4881 msgid "C<AUG_TYPE_CHECK> = 4"
4882 msgstr ""
4883
4884 # type: textblock
4885 #: ../src/guestfs-actions.pod:390 ../fish/guestfish-actions.pod:254
4886 msgid "Typecheck lenses (can be expensive)."
4887 msgstr ""
4888
4889 # type: =item
4890 #: ../src/guestfs-actions.pod:392 ../fish/guestfish-actions.pod:256
4891 msgid "C<AUG_NO_STDINC> = 8"
4892 msgstr ""
4893
4894 # type: textblock
4895 #: ../src/guestfs-actions.pod:394 ../fish/guestfish-actions.pod:258
4896 msgid "Do not use standard load path for modules."
4897 msgstr ""
4898
4899 # type: =item
4900 #: ../src/guestfs-actions.pod:396 ../fish/guestfish-actions.pod:260
4901 msgid "C<AUG_SAVE_NOOP> = 16"
4902 msgstr ""
4903
4904 # type: textblock
4905 #: ../src/guestfs-actions.pod:398 ../fish/guestfish-actions.pod:262
4906 msgid "Make save a no-op, just record what would have been changed."
4907 msgstr ""
4908
4909 # type: =item
4910 #: ../src/guestfs-actions.pod:400 ../fish/guestfish-actions.pod:264
4911 msgid "C<AUG_NO_LOAD> = 32"
4912 msgstr ""
4913
4914 # type: textblock
4915 #: ../src/guestfs-actions.pod:402
4916 msgid "Do not load the tree in C<guestfs_aug_init>."
4917 msgstr ""
4918
4919 # type: textblock
4920 #: ../src/guestfs-actions.pod:406
4921 msgid "To close the handle, you can call C<guestfs_aug_close>."
4922 msgstr ""
4923
4924 # type: textblock
4925 #: ../src/guestfs-actions.pod:408 ../fish/guestfish-actions.pod:272
4926 msgid "To find out more about Augeas, see L<http://augeas.net/>."
4927 msgstr ""
4928
4929 # type: =head2
4930 #: ../src/guestfs-actions.pod:414
4931 msgid "guestfs_aug_insert"
4932 msgstr ""
4933
4934 # type: verbatim
4935 #: ../src/guestfs-actions.pod:416
4936 #, no-wrap
4937 msgid ""
4938 " int\n"
4939 " guestfs_aug_insert (guestfs_h *g,\n"
4940 "                     const char *augpath,\n"
4941 "                     const char *label,\n"
4942 "                     int before);\n"
4943 "\n"
4944 msgstr ""
4945
4946 # type: textblock
4947 #: ../src/guestfs-actions.pod:422 ../fish/guestfish-actions.pod:278
4948 msgid ""
4949 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
4950 "or after C<path> (depending on the boolean flag C<before>)."
4951 msgstr ""
4952
4953 # type: textblock
4954 #: ../src/guestfs-actions.pod:426 ../fish/guestfish-actions.pod:282
4955 msgid ""
4956 "C<path> must match exactly one existing node in the tree, and C<label> must "
4957 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
4958 msgstr ""
4959
4960 # type: =head2
4961 #: ../src/guestfs-actions.pod:434
4962 msgid "guestfs_aug_load"
4963 msgstr ""
4964
4965 # type: verbatim
4966 #: ../src/guestfs-actions.pod:436
4967 #, no-wrap
4968 msgid ""
4969 " int\n"
4970 " guestfs_aug_load (guestfs_h *g);\n"
4971 "\n"
4972 msgstr ""
4973
4974 # type: textblock
4975 #: ../src/guestfs-actions.pod:439 ../fish/guestfish-actions.pod:290
4976 msgid "Load files into the tree."
4977 msgstr ""
4978
4979 # type: textblock
4980 #: ../src/guestfs-actions.pod:441 ../fish/guestfish-actions.pod:292
4981 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
4982 msgstr ""
4983
4984 # type: =head2
4985 #: ../src/guestfs-actions.pod:448
4986 msgid "guestfs_aug_ls"
4987 msgstr ""
4988
4989 # type: verbatim
4990 #: ../src/guestfs-actions.pod:450
4991 #, no-wrap
4992 msgid ""
4993 " char **\n"
4994 " guestfs_aug_ls (guestfs_h *g,\n"
4995 "                 const char *augpath);\n"
4996 "\n"
4997 msgstr ""
4998
4999 # type: textblock
5000 #: ../src/guestfs-actions.pod:454
5001 msgid ""
5002 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
5003 "sorting the resulting nodes into alphabetical order."
5004 msgstr ""
5005
5006 # type: textblock
5007 #: ../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:2178 ../src/guestfs-actions.pod:2194 ../src/guestfs-actions.pod:2213 ../src/guestfs-actions.pod:2256 ../src/guestfs-actions.pod:2280 ../src/guestfs-actions.pod:2351 ../src/guestfs-actions.pod:2400 ../src/guestfs-actions.pod:2611 ../src/guestfs-actions.pod:2818 ../src/guestfs-actions.pod:3033 ../src/guestfs-actions.pod:3316 ../src/guestfs-actions.pod:3378 ../src/guestfs-actions.pod:3483 ../src/guestfs-actions.pod:3888 ../src/guestfs-actions.pod:4570 ../src/guestfs-actions.pod:5090 ../src/guestfs-actions.pod:5216 ../src/guestfs-actions.pod:5330 ../src/guestfs-actions.pod:5981 ../src/guestfs-actions.pod:6042 ../src/guestfs-actions.pod:6097 ../src/guestfs-actions.pod:6243 ../src/guestfs-actions.pod:6267 ../src/guestfs-actions.pod:6749 ../src/guestfs-actions.pod:6769 ../src/guestfs-actions.pod:6816 ../src/guestfs-actions.pod:6981 ../src/guestfs-actions.pod:7000 ../src/guestfs-actions.pod:7085 ../src/guestfs-actions.pod:7104 ../src/guestfs-actions.pod:7150 ../src/guestfs-actions.pod:7169
5008 msgid ""
5009 "This function returns a NULL-terminated array of strings (like "
5010 "L<environ(3)>), or NULL if there was an error.  I<The caller must free the "
5011 "strings and the array after use>."
5012 msgstr ""
5013
5014 # type: textblock
5015 #: ../src/guestfs-actions.pod:461 ../src/guestfs-actions.pod:992 ../src/guestfs-actions.pod:1010 ../src/guestfs-actions.pod:1415 ../src/guestfs-actions.pod:3111 ../src/guestfs-actions.pod:3142 ../src/guestfs-actions.pod:3729 ../src/guestfs-actions.pod:3779 ../src/guestfs-actions.pod:3966 ../src/guestfs-actions.pod:3999 ../src/guestfs-actions.pod:4162 ../src/guestfs-actions.pod:4574 ../src/guestfs-actions.pod:5031 ../src/guestfs-actions.pod:5409 ../src/guestfs-actions.pod:5423 ../src/guestfs-actions.pod:5435 ../src/guestfs-actions.pod:5843 ../src/guestfs-actions.pod:6481 ../src/guestfs-actions.pod:6494 ../src/guestfs-actions.pod:6733 ../src/guestfs-actions.pod:6936 ../src/guestfs-actions.pod:6969
5016 msgid "(Added in 0.8)"
5017 msgstr ""
5018
5019 # type: =head2
5020 #: ../src/guestfs-actions.pod:463
5021 msgid "guestfs_aug_match"
5022 msgstr ""
5023
5024 # type: verbatim
5025 #: ../src/guestfs-actions.pod:465
5026 #, no-wrap
5027 msgid ""
5028 " char **\n"
5029 " guestfs_aug_match (guestfs_h *g,\n"
5030 "                    const char *augpath);\n"
5031 "\n"
5032 msgstr ""
5033
5034 # type: textblock
5035 #: ../src/guestfs-actions.pod:469 ../fish/guestfish-actions.pod:306
5036 msgid ""
5037 "Returns a list of paths which match the path expression C<path>.  The "
5038 "returned paths are sufficiently qualified so that they match exactly one "
5039 "node in the current tree."
5040 msgstr ""
5041
5042 # type: =head2
5043 #: ../src/guestfs-actions.pod:479
5044 msgid "guestfs_aug_mv"
5045 msgstr ""
5046
5047 # type: verbatim
5048 #: ../src/guestfs-actions.pod:481
5049 #, no-wrap
5050 msgid ""
5051 " int\n"
5052 " guestfs_aug_mv (guestfs_h *g,\n"
5053 "                 const char *src,\n"
5054 "                 const char *dest);\n"
5055 "\n"
5056 msgstr ""
5057
5058 # type: textblock
5059 #: ../src/guestfs-actions.pod:486 ../fish/guestfish-actions.pod:314
5060 msgid ""
5061 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
5062 "C<dest> is overwritten if it exists."
5063 msgstr ""
5064
5065 # type: =head2
5066 #: ../src/guestfs-actions.pod:493
5067 msgid "guestfs_aug_rm"
5068 msgstr ""
5069
5070 # type: verbatim
5071 #: ../src/guestfs-actions.pod:495
5072 #, no-wrap
5073 msgid ""
5074 " int\n"
5075 " guestfs_aug_rm (guestfs_h *g,\n"
5076 "                 const char *augpath);\n"
5077 "\n"
5078 msgstr ""
5079
5080 # type: textblock
5081 #: ../src/guestfs-actions.pod:499 ../fish/guestfish-actions.pod:321
5082 msgid "Remove C<path> and all of its children."
5083 msgstr ""
5084
5085 # type: textblock
5086 #: ../src/guestfs-actions.pod:501 ../fish/guestfish-actions.pod:323
5087 msgid "On success this returns the number of entries which were removed."
5088 msgstr ""
5089
5090 # type: =head2
5091 #: ../src/guestfs-actions.pod:507
5092 msgid "guestfs_aug_save"
5093 msgstr ""
5094
5095 # type: verbatim
5096 #: ../src/guestfs-actions.pod:509
5097 #, no-wrap
5098 msgid ""
5099 " int\n"
5100 " guestfs_aug_save (guestfs_h *g);\n"
5101 "\n"
5102 msgstr ""
5103
5104 # type: textblock
5105 #: ../src/guestfs-actions.pod:512 ../fish/guestfish-actions.pod:329
5106 msgid "This writes all pending changes to disk."
5107 msgstr ""
5108
5109 # type: textblock
5110 #: ../src/guestfs-actions.pod:514
5111 msgid ""
5112 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
5113 "are saved."
5114 msgstr ""
5115
5116 # type: =head2
5117 #: ../src/guestfs-actions.pod:521
5118 msgid "guestfs_aug_set"
5119 msgstr ""
5120
5121 # type: verbatim
5122 #: ../src/guestfs-actions.pod:523
5123 #, no-wrap
5124 msgid ""
5125 " int\n"
5126 " guestfs_aug_set (guestfs_h *g,\n"
5127 "                  const char *augpath,\n"
5128 "                  const char *val);\n"
5129 "\n"
5130 msgstr ""
5131
5132 # type: textblock
5133 #: ../src/guestfs-actions.pod:528 ../fish/guestfish-actions.pod:338
5134 msgid "Set the value associated with C<path> to C<val>."
5135 msgstr ""
5136
5137 # type: textblock
5138 #: ../src/guestfs-actions.pod:530
5139 msgid ""
5140 "In the Augeas API, it is possible to clear a node by setting the value to "
5141 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
5142 "this call.  Instead you must use the C<guestfs_aug_clear> call."
5143 msgstr ""
5144
5145 # type: =head2
5146 #: ../src/guestfs-actions.pod:539
5147 msgid "guestfs_available"
5148 msgstr ""
5149
5150 # type: verbatim
5151 #: ../src/guestfs-actions.pod:541
5152 #, no-wrap
5153 msgid ""
5154 " int\n"
5155 " guestfs_available (guestfs_h *g,\n"
5156 "                    char *const *groups);\n"
5157 "\n"
5158 msgstr ""
5159
5160 # type: textblock
5161 #: ../src/guestfs-actions.pod:545 ../fish/guestfish-actions.pod:349
5162 msgid ""
5163 "This command is used to check the availability of some groups of "
5164 "functionality in the appliance, which not all builds of the libguestfs "
5165 "appliance will be able to provide."
5166 msgstr ""
5167
5168 # type: textblock
5169 #: ../src/guestfs-actions.pod:549
5170 msgid ""
5171 "The libguestfs groups, and the functions that those groups correspond to, "
5172 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
5173 "runtime by calling C<guestfs_available_all_groups>."
5174 msgstr ""
5175
5176 # type: textblock
5177 #: ../src/guestfs-actions.pod:554 ../fish/guestfish-actions.pod:358
5178 msgid ""
5179 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", "
5180 "\"augeas\"]> would check for the availability of the Linux inotify functions "
5181 "and Augeas (configuration file editing) functions."
5182 msgstr ""
5183
5184 # type: textblock
5185 #: ../src/guestfs-actions.pod:559 ../fish/guestfish-actions.pod:363
5186 msgid "The command returns no error if I<all> requested groups are available."
5187 msgstr ""
5188
5189 # type: textblock
5190 #: ../src/guestfs-actions.pod:561 ../fish/guestfish-actions.pod:365
5191 msgid ""
5192 "It fails with an error if one or more of the requested groups is unavailable "
5193 "in the appliance."
5194 msgstr ""
5195
5196 # type: textblock
5197 #: ../src/guestfs-actions.pod:564 ../fish/guestfish-actions.pod:368
5198 msgid ""
5199 "If an unknown group name is included in the list of groups then an error is "
5200 "always returned."
5201 msgstr ""
5202
5203 # type: textblock
5204 #: ../src/guestfs-actions.pod:567 ../fish/guestfish-actions.pod:371
5205 msgid "I<Notes:>"
5206 msgstr ""
5207
5208 # type: textblock
5209 #: ../src/guestfs-actions.pod:573
5210 msgid "You must call C<guestfs_launch> before calling this function."
5211 msgstr ""
5212
5213 # type: textblock
5214 #: ../src/guestfs-actions.pod:575 ../fish/guestfish-actions.pod:379
5215 msgid ""
5216 "The reason is because we don't know what groups are supported by the "
5217 "appliance/daemon until it is running and can be queried."
5218 msgstr ""
5219
5220 # type: textblock
5221 #: ../src/guestfs-actions.pod:581 ../fish/guestfish-actions.pod:385
5222 msgid ""
5223 "If a group of functions is available, this does not necessarily mean that "
5224 "they will work.  You still have to check for errors when calling individual "
5225 "API functions even if they are available."
5226 msgstr ""
5227
5228 # type: textblock
5229 #: ../src/guestfs-actions.pod:588 ../fish/guestfish-actions.pod:392
5230 msgid ""
5231 "It is usually the job of distro packagers to build complete functionality "
5232 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
5233 "with all requirements satisfied, will support everything."
5234 msgstr ""
5235
5236 # type: textblock
5237 #: ../src/guestfs-actions.pod:595
5238 msgid ""
5239 "This call was added in version C<1.0.80>.  In previous versions of "
5240 "libguestfs all you could do would be to speculatively execute a command to "
5241 "find out if the daemon implemented it.  See also C<guestfs_version>."
5242 msgstr ""
5243
5244 # type: textblock
5245 #: ../src/guestfs-actions.pod:604 ../src/guestfs-actions.pod:1165
5246 msgid "(Added in 1.0.80)"
5247 msgstr ""
5248
5249 # type: =head2
5250 #: ../src/guestfs-actions.pod:606
5251 msgid "guestfs_available_all_groups"
5252 msgstr ""
5253
5254 # type: verbatim
5255 #: ../src/guestfs-actions.pod:608
5256 #, no-wrap
5257 msgid ""
5258 " char **\n"
5259 " guestfs_available_all_groups (guestfs_h *g);\n"
5260 "\n"
5261 msgstr ""
5262
5263 # type: textblock
5264 #: ../src/guestfs-actions.pod:611
5265 msgid ""
5266 "This command returns a list of all optional groups that this daemon knows "
5267 "about.  Note this returns both supported and unsupported groups.  To find "
5268 "out which ones the daemon can actually support you have to call "
5269 "C<guestfs_available> on each member of the returned list."
5270 msgstr ""
5271
5272 # type: textblock
5273 #: ../src/guestfs-actions.pod:617
5274 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
5275 msgstr ""
5276
5277 # type: textblock
5278 #: ../src/guestfs-actions.pod:623
5279 msgid "(Added in 1.3.15)"
5280 msgstr ""
5281
5282 # type: =head2
5283 #: ../src/guestfs-actions.pod:625
5284 msgid "guestfs_base64_in"
5285 msgstr ""
5286
5287 # type: verbatim
5288 #: ../src/guestfs-actions.pod:627
5289 #, no-wrap
5290 msgid ""
5291 " int\n"
5292 " guestfs_base64_in (guestfs_h *g,\n"
5293 "                    const char *base64file,\n"
5294 "                    const char *filename);\n"
5295 "\n"
5296 msgstr ""
5297
5298 # type: textblock
5299 #: ../src/guestfs-actions.pod:632 ../fish/guestfish-actions.pod:422
5300 msgid "This command uploads base64-encoded data from C<base64file> to C<filename>."
5301 msgstr ""
5302
5303 # type: textblock
5304 #: ../src/guestfs-actions.pod:637 ../src/guestfs-actions.pod:651
5305 msgid "(Added in 1.3.5)"
5306 msgstr ""
5307
5308 # type: =head2
5309 #: ../src/guestfs-actions.pod:639
5310 msgid "guestfs_base64_out"
5311 msgstr ""
5312
5313 # type: verbatim
5314 #: ../src/guestfs-actions.pod:641
5315 #, no-wrap
5316 msgid ""
5317 " int\n"
5318 " guestfs_base64_out (guestfs_h *g,\n"
5319 "                     const char *filename,\n"
5320 "                     const char *base64file);\n"
5321 "\n"
5322 msgstr ""
5323
5324 # type: textblock
5325 #: ../src/guestfs-actions.pod:646 ../fish/guestfish-actions.pod:431
5326 msgid ""
5327 "This command downloads the contents of C<filename>, writing it out to local "
5328 "file C<base64file> encoded as base64."
5329 msgstr ""
5330
5331 # type: =head2
5332 #: ../src/guestfs-actions.pod:653
5333 msgid "guestfs_blockdev_flushbufs"
5334 msgstr ""
5335
5336 # type: verbatim
5337 #: ../src/guestfs-actions.pod:655
5338 #, no-wrap
5339 msgid ""
5340 " int\n"
5341 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
5342 "                             const char *device);\n"
5343 "\n"
5344 msgstr ""
5345
5346 # type: textblock
5347 #: ../src/guestfs-actions.pod:659 ../fish/guestfish-actions.pod:440
5348 msgid "This tells the kernel to flush internal buffers associated with C<device>."
5349 msgstr ""
5350
5351 # type: textblock
5352 #: ../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
5353 msgid "This uses the L<blockdev(8)> command."
5354 msgstr ""
5355
5356 # type: textblock
5357 #: ../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
5358 msgid "(Added in 0.9.3)"
5359 msgstr ""
5360
5361 # type: =head2
5362 #: ../src/guestfs-actions.pod:668
5363 msgid "guestfs_blockdev_getbsz"
5364 msgstr ""
5365
5366 # type: verbatim
5367 #: ../src/guestfs-actions.pod:670
5368 #, no-wrap
5369 msgid ""
5370 " int\n"
5371 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
5372 "                          const char *device);\n"
5373 "\n"
5374 msgstr ""
5375
5376 # type: textblock
5377 #: ../src/guestfs-actions.pod:674 ../fish/guestfish-actions.pod:449
5378 msgid "This returns the block size of a device."
5379 msgstr ""
5380
5381 # type: textblock
5382 #: ../src/guestfs-actions.pod:676 ../src/guestfs-actions.pod:776 ../fish/guestfish-actions.pod:451 ../fish/guestfish-actions.pod:514
5383 msgid ""
5384 "(Note this is different from both I<size in blocks> and I<filesystem block "
5385 "size>)."
5386 msgstr ""
5387
5388 # type: =head2
5389 #: ../src/guestfs-actions.pod:685
5390 msgid "guestfs_blockdev_getro"
5391 msgstr ""
5392
5393 # type: verbatim
5394 #: ../src/guestfs-actions.pod:687
5395 #, no-wrap
5396 msgid ""
5397 " int\n"
5398 " guestfs_blockdev_getro (guestfs_h *g,\n"
5399 "                         const char *device);\n"
5400 "\n"
5401 msgstr ""
5402
5403 # type: textblock
5404 #: ../src/guestfs-actions.pod:691 ../fish/guestfish-actions.pod:460
5405 msgid ""
5406 "Returns a boolean indicating if the block device is read-only (true if "
5407 "read-only, false if not)."
5408 msgstr ""
5409
5410 # type: textblock
5411 #: ../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:3050 ../src/guestfs-actions.pod:3064 ../src/guestfs-actions.pod:3079 ../src/guestfs-actions.pod:3093 ../src/guestfs-actions.pod:3109 ../src/guestfs-actions.pod:3124 ../src/guestfs-actions.pod:3140 ../src/guestfs-actions.pod:3154 ../src/guestfs-actions.pod:3167 ../src/guestfs-actions.pod:3181 ../src/guestfs-actions.pod:3196 ../src/guestfs-actions.pod:3211 ../src/guestfs-actions.pod:4719
5412 msgid "This function returns a C truth value on success or -1 on error."
5413 msgstr ""
5414
5415 # type: =head2
5416 #: ../src/guestfs-actions.pod:700
5417 msgid "guestfs_blockdev_getsize64"
5418 msgstr ""
5419
5420 # type: verbatim
5421 #: ../src/guestfs-actions.pod:702
5422 #, no-wrap
5423 msgid ""
5424 " int64_t\n"
5425 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
5426 "                             const char *device);\n"
5427 "\n"
5428 msgstr ""
5429
5430 # type: textblock
5431 #: ../src/guestfs-actions.pod:706 ../fish/guestfish-actions.pod:469
5432 msgid "This returns the size of the device in bytes."
5433 msgstr ""
5434
5435 # type: textblock
5436 #: ../src/guestfs-actions.pod:708
5437 msgid "See also C<guestfs_blockdev_getsz>."
5438 msgstr ""
5439
5440 # type: =head2
5441 #: ../src/guestfs-actions.pod:716
5442 msgid "guestfs_blockdev_getss"
5443 msgstr ""
5444
5445 # type: verbatim
5446 #: ../src/guestfs-actions.pod:718
5447 #, no-wrap
5448 msgid ""
5449 " int\n"
5450 " guestfs_blockdev_getss (guestfs_h *g,\n"
5451 "                         const char *device);\n"
5452 "\n"
5453 msgstr ""
5454
5455 # type: textblock
5456 #: ../src/guestfs-actions.pod:722 ../fish/guestfish-actions.pod:479
5457 msgid ""
5458 "This returns the size of sectors on a block device.  Usually 512, but can be "
5459 "larger for modern devices."
5460 msgstr ""
5461
5462 # type: textblock
5463 #: ../src/guestfs-actions.pod:725
5464 msgid ""
5465 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
5466 "that)."
5467 msgstr ""
5468
5469 # type: =head2
5470 #: ../src/guestfs-actions.pod:734
5471 msgid "guestfs_blockdev_getsz"
5472 msgstr ""
5473
5474 # type: verbatim
5475 #: ../src/guestfs-actions.pod:736
5476 #, no-wrap
5477 msgid ""
5478 " int64_t\n"
5479 " guestfs_blockdev_getsz (guestfs_h *g,\n"
5480 "                         const char *device);\n"
5481 "\n"
5482 msgstr ""
5483
5484 # type: textblock
5485 #: ../src/guestfs-actions.pod:740 ../fish/guestfish-actions.pod:491
5486 msgid ""
5487 "This returns the size of the device in units of 512-byte sectors (even if "
5488 "the sectorsize isn't 512 bytes ... weird)."
5489 msgstr ""
5490
5491 # type: textblock
5492 #: ../src/guestfs-actions.pod:743
5493 msgid ""
5494 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
5495 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
5496 msgstr ""
5497
5498 # type: =head2
5499 #: ../src/guestfs-actions.pod:753
5500 msgid "guestfs_blockdev_rereadpt"
5501 msgstr ""
5502
5503 # type: verbatim
5504 #: ../src/guestfs-actions.pod:755
5505 #, no-wrap
5506 msgid ""
5507 " int\n"
5508 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
5509 "                            const char *device);\n"
5510 "\n"
5511 msgstr ""
5512
5513 # type: textblock
5514 #: ../src/guestfs-actions.pod:759 ../fish/guestfish-actions.pod:504
5515 msgid "Reread the partition table on C<device>."
5516 msgstr ""
5517
5518 # type: =head2
5519 #: ../src/guestfs-actions.pod:767
5520 msgid "guestfs_blockdev_setbsz"
5521 msgstr ""
5522
5523 # type: verbatim
5524 #: ../src/guestfs-actions.pod:769
5525 #, no-wrap
5526 msgid ""
5527 " int\n"
5528 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
5529 "                          const char *device,\n"
5530 "                          int blocksize);\n"
5531 "\n"
5532 msgstr ""
5533
5534 # type: textblock
5535 #: ../src/guestfs-actions.pod:774 ../fish/guestfish-actions.pod:512
5536 msgid "This sets the block size of a device."
5537 msgstr ""
5538
5539 # type: =head2
5540 #: ../src/guestfs-actions.pod:785
5541 msgid "guestfs_blockdev_setro"
5542 msgstr ""
5543
5544 # type: verbatim
5545 #: ../src/guestfs-actions.pod:787
5546 #, no-wrap
5547 msgid ""
5548 " int\n"
5549 " guestfs_blockdev_setro (guestfs_h *g,\n"
5550 "                         const char *device);\n"
5551 "\n"
5552 msgstr ""
5553
5554 # type: textblock
5555 #: ../src/guestfs-actions.pod:791 ../fish/guestfish-actions.pod:523
5556 msgid "Sets the block device named C<device> to read-only."
5557 msgstr ""
5558
5559 # type: =head2
5560 #: ../src/guestfs-actions.pod:799
5561 msgid "guestfs_blockdev_setrw"
5562 msgstr ""
5563
5564 # type: verbatim
5565 #: ../src/guestfs-actions.pod:801
5566 #, no-wrap
5567 msgid ""
5568 " int\n"
5569 " guestfs_blockdev_setrw (guestfs_h *g,\n"
5570 "                         const char *device);\n"
5571 "\n"
5572 msgstr ""
5573
5574 # type: textblock
5575 #: ../src/guestfs-actions.pod:805 ../fish/guestfish-actions.pod:531
5576 msgid "Sets the block device named C<device> to read-write."
5577 msgstr ""
5578
5579 # type: =head2
5580 #: ../src/guestfs-actions.pod:813
5581 msgid "guestfs_case_sensitive_path"
5582 msgstr ""
5583
5584 # type: verbatim
5585 #: ../src/guestfs-actions.pod:815
5586 #, no-wrap
5587 msgid ""
5588 " char *\n"
5589 " guestfs_case_sensitive_path (guestfs_h *g,\n"
5590 "                              const char *path);\n"
5591 "\n"
5592 msgstr ""
5593
5594 # type: textblock
5595 #: ../src/guestfs-actions.pod:819 ../fish/guestfish-actions.pod:539
5596 msgid ""
5597 "This can be used to resolve case insensitive paths on a filesystem which is "
5598 "case sensitive.  The use case is to resolve paths which you have read from "
5599 "Windows configuration files or the Windows Registry, to the true path."
5600 msgstr ""
5601
5602 # type: textblock
5603 #: ../src/guestfs-actions.pod:824 ../fish/guestfish-actions.pod:544
5604 msgid ""
5605 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
5606 "(and probably others), which is that although the underlying filesystem is "
5607 "case-insensitive, the driver exports the filesystem to Linux as "
5608 "case-sensitive."
5609 msgstr ""
5610
5611 # type: textblock
5612 #: ../src/guestfs-actions.pod:829 ../fish/guestfish-actions.pod:549
5613 msgid ""
5614 "One consequence of this is that special directories such as C<c:\\windows> "
5615 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
5616 "precise details of how they were created.  In Windows itself this would not "
5617 "be a problem."
5618 msgstr ""
5619
5620 # type: textblock
5621 #: ../src/guestfs-actions.pod:835 ../fish/guestfish-actions.pod:555
5622 msgid ""
5623 "Bug or feature? You decide: "
5624 "L<http://www.tuxera.com/community/ntfs-3g-faq/#posixfilenames1>"
5625 msgstr ""
5626
5627 # type: textblock
5628 #: ../src/guestfs-actions.pod:838 ../fish/guestfish-actions.pod:558
5629 msgid ""
5630 "This function resolves the true case of each element in the path and returns "
5631 "the case-sensitive path."
5632 msgstr ""
5633
5634 # type: textblock
5635 #: ../src/guestfs-actions.pod:841
5636 msgid ""
5637 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return "
5638 "C<\"/WINDOWS/system32\"> (the exact return value would depend on details of "
5639 "how the directories were originally created under Windows)."
5640 msgstr ""
5641
5642 # type: textblock
5643 #: ../src/guestfs-actions.pod:846 ../fish/guestfish-actions.pod:566
5644 msgid "I<Note>: This function does not handle drive names, backslashes etc."
5645 msgstr ""
5646
5647 # type: textblock
5648 #: ../src/guestfs-actions.pod:849
5649 msgid "See also C<guestfs_realpath>."
5650 msgstr ""
5651
5652 # type: textblock
5653 #: ../src/guestfs-actions.pod:854 ../src/guestfs-actions.pod:6661
5654 msgid "(Added in 1.0.75)"
5655 msgstr ""
5656
5657 # type: =head2
5658 #: ../src/guestfs-actions.pod:856
5659 msgid "guestfs_cat"
5660 msgstr ""
5661
5662 # type: verbatim
5663 #: ../src/guestfs-actions.pod:858
5664 #, no-wrap
5665 msgid ""
5666 " char *\n"
5667 " guestfs_cat (guestfs_h *g,\n"
5668 "              const char *path);\n"
5669 "\n"
5670 msgstr ""
5671
5672 # type: textblock
5673 #: ../src/guestfs-actions.pod:862 ../src/guestfs-actions.pod:5206 ../fish/guestfish-actions.pod:575 ../fish/guestfish-actions.pod:3464
5674 msgid "Return the contents of the file named C<path>."
5675 msgstr ""
5676
5677 # type: textblock
5678 #: ../src/guestfs-actions.pod:864
5679 msgid ""
5680 "Note that this function cannot correctly handle binary files (specifically, "
5681 "files containing C<\\0> character which is treated as end of string).  For "
5682 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
5683 "functions which have a more complex interface."
5684 msgstr ""
5685
5686 # type: textblock
5687 #: ../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:2198 ../src/guestfs-actions.pod:2217 ../src/guestfs-actions.pod:2260 ../src/guestfs-actions.pod:2284 ../src/guestfs-actions.pod:2301 ../src/guestfs-actions.pod:2330 ../src/guestfs-actions.pod:4988 ../src/guestfs-actions.pod:5014 ../src/guestfs-actions.pod:5145 ../src/guestfs-actions.pod:5171 ../src/guestfs-actions.pod:5195 ../src/guestfs-actions.pod:6046 ../src/guestfs-actions.pod:6101 ../src/guestfs-actions.pod:6247 ../src/guestfs-actions.pod:6271 ../src/guestfs-actions.pod:6933 ../src/guestfs-actions.pod:6959 ../src/guestfs-actions.pod:6985 ../src/guestfs-actions.pod:7004 ../src/guestfs-actions.pod:7089 ../src/guestfs-actions.pod:7108 ../src/guestfs-actions.pod:7154 ../src/guestfs-actions.pod:7173 ../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:1482 ../fish/guestfish-actions.pod:1492 ../fish/guestfish-actions.pod:1520 ../fish/guestfish-actions.pod:1535 ../fish/guestfish-actions.pod:1545 ../fish/guestfish-actions.pod:1564 ../fish/guestfish-actions.pod:3334 ../fish/guestfish-actions.pod:3349 ../fish/guestfish-actions.pod:3425 ../fish/guestfish-actions.pod:3442 ../fish/guestfish-actions.pod:3457 ../fish/guestfish-actions.pod:4040 ../fish/guestfish-actions.pod:4086 ../fish/guestfish-actions.pod:4171 ../fish/guestfish-actions.pod:4186 ../fish/guestfish-actions.pod:4596 ../fish/guestfish-actions.pod:4614 ../fish/guestfish-actions.pod:4631 ../fish/guestfish-actions.pod:4641 ../fish/guestfish-actions.pod:4689 ../fish/guestfish-actions.pod:4699 ../fish/guestfish-actions.pod:4728 ../fish/guestfish-actions.pod:4738
5688 msgid ""
5689 "Because of the message protocol, there is a transfer limit of somewhere "
5690 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
5691 msgstr ""
5692
5693 # type: textblock
5694 #: ../src/guestfs-actions.pod:875 ../src/guestfs-actions.pod:3320 ../src/guestfs-actions.pod:3382 ../src/guestfs-actions.pod:3399 ../src/guestfs-actions.pod:3487 ../src/guestfs-actions.pod:3892 ../src/guestfs-actions.pod:3906 ../src/guestfs-actions.pod:5094 ../src/guestfs-actions.pod:5108 ../src/guestfs-actions.pod:6820 ../src/guestfs-actions.pod:6834
5695 msgid "(Added in 0.4)"
5696 msgstr ""
5697
5698 # type: =head2
5699 #: ../src/guestfs-actions.pod:877
5700 msgid "guestfs_checksum"
5701 msgstr ""
5702
5703 # type: verbatim
5704 #: ../src/guestfs-actions.pod:879
5705 #, no-wrap
5706 msgid ""
5707 " char *\n"
5708 " guestfs_checksum (guestfs_h *g,\n"
5709 "                   const char *csumtype,\n"
5710 "                   const char *path);\n"
5711 "\n"
5712 msgstr ""
5713
5714 # type: textblock
5715 #: ../src/guestfs-actions.pod:884 ../fish/guestfish-actions.pod:589
5716 msgid "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
5717 msgstr ""
5718
5719 # type: textblock
5720 #: ../src/guestfs-actions.pod:887 ../fish/guestfish-actions.pod:592
5721 msgid ""
5722 "The type of checksum to compute is given by the C<csumtype> parameter which "
5723 "must have one of the following values:"
5724 msgstr ""
5725
5726 # type: =item
5727 #: ../src/guestfs-actions.pod:892 ../fish/guestfish-actions.pod:597
5728 msgid "C<crc>"
5729 msgstr ""
5730
5731 # type: textblock
5732 #: ../src/guestfs-actions.pod:894 ../fish/guestfish-actions.pod:599
5733 msgid ""
5734 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
5735 "C<cksum> command."
5736 msgstr ""
5737
5738 # type: =item
5739 #: ../src/guestfs-actions.pod:897 ../fish/guestfish-actions.pod:602
5740 msgid "C<md5>"
5741 msgstr ""
5742
5743 # type: textblock
5744 #: ../src/guestfs-actions.pod:899 ../fish/guestfish-actions.pod:604
5745 msgid "Compute the MD5 hash (using the C<md5sum> program)."
5746 msgstr ""
5747
5748 # type: =item
5749 #: ../src/guestfs-actions.pod:901 ../fish/guestfish-actions.pod:606
5750 msgid "C<sha1>"
5751 msgstr ""
5752
5753 # type: textblock
5754 #: ../src/guestfs-actions.pod:903 ../fish/guestfish-actions.pod:608
5755 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
5756 msgstr ""
5757
5758 # type: =item
5759 #: ../src/guestfs-actions.pod:905 ../fish/guestfish-actions.pod:610
5760 msgid "C<sha224>"
5761 msgstr ""
5762
5763 # type: textblock
5764 #: ../src/guestfs-actions.pod:907 ../fish/guestfish-actions.pod:612
5765 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
5766 msgstr ""
5767
5768 # type: =item
5769 #: ../src/guestfs-actions.pod:909 ../fish/guestfish-actions.pod:614
5770 msgid "C<sha256>"
5771 msgstr ""
5772
5773 # type: textblock
5774 #: ../src/guestfs-actions.pod:911 ../fish/guestfish-actions.pod:616
5775 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
5776 msgstr ""
5777
5778 # type: =item
5779 #: ../src/guestfs-actions.pod:913 ../fish/guestfish-actions.pod:618
5780 msgid "C<sha384>"
5781 msgstr ""
5782
5783 # type: textblock
5784 #: ../src/guestfs-actions.pod:915 ../fish/guestfish-actions.pod:620
5785 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
5786 msgstr ""
5787
5788 # type: =item
5789 #: ../src/guestfs-actions.pod:917 ../fish/guestfish-actions.pod:622
5790 msgid "C<sha512>"
5791 msgstr ""
5792
5793 # type: textblock
5794 #: ../src/guestfs-actions.pod:919 ../fish/guestfish-actions.pod:624
5795 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
5796 msgstr ""
5797
5798 # type: textblock
5799 #: ../src/guestfs-actions.pod:923 ../fish/guestfish-actions.pod:628
5800 msgid "The checksum is returned as a printable string."
5801 msgstr ""
5802
5803 # type: textblock
5804 #: ../src/guestfs-actions.pod:925
5805 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
5806 msgstr ""
5807
5808 # type: textblock
5809 #: ../src/guestfs-actions.pod:927
5810 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
5811 msgstr ""
5812
5813 # type: textblock
5814 #: ../src/guestfs-actions.pod:932 ../src/guestfs-actions.pod:1240 ../src/guestfs-actions.pod:2062 ../src/guestfs-actions.pod:3066 ../src/guestfs-actions.pod:3095 ../src/guestfs-actions.pod:3156 ../src/guestfs-actions.pod:3183 ../src/guestfs-actions.pod:6517
5815 msgid "(Added in 1.0.2)"
5816 msgstr ""
5817
5818 # type: =head2
5819 #: ../src/guestfs-actions.pod:934
5820 msgid "guestfs_checksum_device"
5821 msgstr ""
5822
5823 # type: verbatim
5824 #: ../src/guestfs-actions.pod:936
5825 #, no-wrap
5826 msgid ""
5827 " char *\n"
5828 " guestfs_checksum_device (guestfs_h *g,\n"
5829 "                          const char *csumtype,\n"
5830 "                          const char *device);\n"
5831 "\n"
5832 msgstr ""
5833
5834 # type: textblock
5835 #: ../src/guestfs-actions.pod:941
5836 msgid ""
5837 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
5838 "device named C<device>.  For the types of checksums supported see the "
5839 "C<guestfs_checksum> command."
5840 msgstr ""
5841
5842 # type: textblock
5843 #: ../src/guestfs-actions.pod:948 ../src/guestfs-actions.pod:4625 ../src/guestfs-actions.pod:4684 ../src/guestfs-actions.pod:4721 ../src/guestfs-actions.pod:4739 ../src/guestfs-actions.pod:4915 ../src/guestfs-actions.pod:6426 ../src/guestfs-actions.pod:6440 ../src/guestfs-actions.pod:6846
5844 msgid "(Added in 1.3.2)"
5845 msgstr ""
5846
5847 # type: =head2
5848 #: ../src/guestfs-actions.pod:950
5849 msgid "guestfs_checksums_out"
5850 msgstr ""
5851
5852 # type: verbatim
5853 #: ../src/guestfs-actions.pod:952
5854 #, no-wrap
5855 msgid ""
5856 " int\n"
5857 " guestfs_checksums_out (guestfs_h *g,\n"
5858 "                        const char *csumtype,\n"
5859 "                        const char *directory,\n"
5860 "                        const char *sumsfile);\n"
5861 "\n"
5862 msgstr ""
5863
5864 # type: textblock
5865 #: ../src/guestfs-actions.pod:958 ../fish/guestfish-actions.pod:646
5866 msgid ""
5867 "This command computes the checksums of all regular files in C<directory> and "
5868 "then emits a list of those checksums to the local output file C<sumsfile>."
5869 msgstr ""
5870
5871 # type: textblock
5872 #: ../src/guestfs-actions.pod:962 ../fish/guestfish-actions.pod:650
5873 msgid ""
5874 "This can be used for verifying the integrity of a virtual machine.  However "
5875 "to be properly secure you should pay attention to the output of the checksum "
5876 "command (it uses the ones from GNU coreutils).  In particular when the "
5877 "filename is not printable, coreutils uses a special backslash syntax.  For "
5878 "more information, see the GNU coreutils info file."
5879 msgstr ""
5880
5881 # type: textblock
5882 #: ../src/guestfs-actions.pod:972
5883 msgid "(Added in 1.3.7)"
5884 msgstr ""
5885
5886 # type: =head2
5887 #: ../src/guestfs-actions.pod:974
5888 msgid "guestfs_chmod"
5889 msgstr ""
5890
5891 # type: verbatim
5892 #: ../src/guestfs-actions.pod:976
5893 #, no-wrap
5894 msgid ""
5895 " int\n"
5896 " guestfs_chmod (guestfs_h *g,\n"
5897 "                int mode,\n"
5898 "                const char *path);\n"
5899 "\n"
5900 msgstr ""
5901
5902 # type: textblock
5903 #: ../src/guestfs-actions.pod:981 ../fish/guestfish-actions.pod:664
5904 msgid ""
5905 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
5906 "supported."
5907 msgstr ""
5908
5909 # type: textblock
5910 #: ../src/guestfs-actions.pod:984 ../fish/guestfish-actions.pod:667
5911 msgid ""
5912 "I<Note>: When using this command from guestfish, C<mode> by default would be "
5913 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
5914 "C<700>."
5915 msgstr ""
5916
5917 # type: textblock
5918 #: ../src/guestfs-actions.pod:988 ../src/guestfs-actions.pod:4143 ../src/guestfs-actions.pod:4324 ../src/guestfs-actions.pod:4343 ../src/guestfs-actions.pod:4362 ../fish/guestfish-actions.pod:671 ../fish/guestfish-actions.pod:2793 ../fish/guestfish-actions.pod:2909 ../fish/guestfish-actions.pod:2919 ../fish/guestfish-actions.pod:2929
5919 msgid "The mode actually set is affected by the umask."
5920 msgstr ""
5921
5922 # type: =head2
5923 #: ../src/guestfs-actions.pod:994
5924 msgid "guestfs_chown"
5925 msgstr ""
5926
5927 # type: verbatim
5928 #: ../src/guestfs-actions.pod:996
5929 #, no-wrap
5930 msgid ""
5931 " int\n"
5932 " guestfs_chown (guestfs_h *g,\n"
5933 "                int owner,\n"
5934 "                int group,\n"
5935 "                const char *path);\n"
5936 "\n"
5937 msgstr ""
5938
5939 # type: textblock
5940 #: ../src/guestfs-actions.pod:1002 ../fish/guestfish-actions.pod:677
5941 msgid "Change the file owner to C<owner> and group to C<group>."
5942 msgstr ""
5943
5944 # type: textblock
5945 #: ../src/guestfs-actions.pod:1004 ../src/guestfs-actions.pod:3253 ../fish/guestfish-actions.pod:679 ../fish/guestfish-actions.pod:2251
5946 msgid ""
5947 "Only numeric uid and gid are supported.  If you want to use names, you will "
5948 "need to locate and parse the password file yourself (Augeas support makes "
5949 "this relatively easy)."
5950 msgstr ""
5951
5952 # type: =head2
5953 #: ../src/guestfs-actions.pod:1012
5954 msgid "guestfs_command"
5955 msgstr ""
5956
5957 # type: verbatim
5958 #: ../src/guestfs-actions.pod:1014
5959 #, no-wrap
5960 msgid ""
5961 " char *\n"
5962 " guestfs_command (guestfs_h *g,\n"
5963 "                  char *const *arguments);\n"
5964 "\n"
5965 msgstr ""
5966
5967 # type: textblock
5968 #: ../src/guestfs-actions.pod:1018 ../fish/guestfish-actions.pod:687
5969 msgid ""
5970 "This call runs a command from the guest filesystem.  The filesystem must be "
5971 "mounted, and must contain a compatible operating system (ie. something "
5972 "Linux, with the same or compatible processor architecture)."
5973 msgstr ""
5974
5975 # type: textblock
5976 #: ../src/guestfs-actions.pod:1023
5977 msgid ""
5978 "The single parameter is an argv-style list of arguments.  The first element "
5979 "is the name of the program to run.  Subsequent elements are parameters.  The "
5980 "list must be non-empty (ie. must contain a program name).  Note that the "
5981 "command runs directly, and is I<not> invoked via the shell (see "
5982 "C<guestfs_sh>)."
5983 msgstr ""
5984
5985 # type: textblock
5986 #: ../src/guestfs-actions.pod:1030 ../fish/guestfish-actions.pod:699
5987 msgid "The return value is anything printed to I<stdout> by the command."
5988 msgstr ""
5989
5990 # type: textblock
5991 #: ../src/guestfs-actions.pod:1033 ../fish/guestfish-actions.pod:702
5992 msgid ""
5993 "If the command returns a non-zero exit status, then this function returns an "
5994 "error message.  The error message string is the content of I<stderr> from "
5995 "the command."
5996 msgstr ""
5997
5998 # type: textblock
5999 #: ../src/guestfs-actions.pod:1037 ../fish/guestfish-actions.pod:706
6000 msgid ""
6001 "The C<$PATH> environment variable will contain at least C</usr/bin> and "
6002 "C</bin>.  If you require a program from another location, you should provide "
6003 "the full path in the first parameter."
6004 msgstr ""
6005
6006 # type: textblock
6007 #: ../src/guestfs-actions.pod:1042 ../fish/guestfish-actions.pod:711
6008 msgid ""
6009 "Shared libraries and data files required by the program must be available on "
6010 "filesystems which are mounted in the correct places.  It is the caller's "
6011 "responsibility to ensure all filesystems that are needed are mounted at the "
6012 "right locations."
6013 msgstr ""
6014
6015 # type: textblock
6016 #: ../src/guestfs-actions.pod:1054 ../src/guestfs-actions.pod:1074 ../src/guestfs-actions.pod:1537
6017 msgid "(Added in 0.9.1)"
6018 msgstr ""
6019
6020 # type: =head2
6021 #: ../src/guestfs-actions.pod:1056
6022 msgid "guestfs_command_lines"
6023 msgstr ""
6024
6025 # type: verbatim
6026 #: ../src/guestfs-actions.pod:1058
6027 #, no-wrap
6028 msgid ""
6029 " char **\n"
6030 " guestfs_command_lines (guestfs_h *g,\n"
6031 "                        char *const *arguments);\n"
6032 "\n"
6033 msgstr ""
6034
6035 # type: textblock
6036 #: ../src/guestfs-actions.pod:1062
6037 msgid ""
6038 "This is the same as C<guestfs_command>, but splits the result into a list of "
6039 "lines."
6040 msgstr ""
6041
6042 # type: textblock
6043 #: ../src/guestfs-actions.pod:1065
6044 msgid "See also: C<guestfs_sh_lines>"
6045 msgstr ""
6046
6047 # type: =head2
6048 #: ../src/guestfs-actions.pod:1076
6049 msgid "guestfs_config"
6050 msgstr ""
6051
6052 # type: verbatim
6053 #: ../src/guestfs-actions.pod:1078
6054 #, no-wrap
6055 msgid ""
6056 " int\n"
6057 " guestfs_config (guestfs_h *g,\n"
6058 "                 const char *qemuparam,\n"
6059 "                 const char *qemuvalue);\n"
6060 "\n"
6061 msgstr ""
6062
6063 # type: textblock
6064 #: ../src/guestfs-actions.pod:1083 ../fish/guestfish-actions.pod:736
6065 msgid ""
6066 "This can be used to add arbitrary qemu command line parameters of the form "
6067 "C<-param value>.  Actually it's not quite arbitrary - we prevent you from "
6068 "setting some parameters which would interfere with parameters that we use."
6069 msgstr ""
6070
6071 # type: textblock
6072 #: ../src/guestfs-actions.pod:1088 ../fish/guestfish-actions.pod:741
6073 msgid "The first character of C<param> string must be a C<-> (dash)."
6074 msgstr ""
6075
6076 # type: textblock
6077 #: ../src/guestfs-actions.pod:1090 ../fish/guestfish-actions.pod:743
6078 msgid "C<value> can be NULL."
6079 msgstr ""
6080
6081 # type: =head2
6082 #: ../src/guestfs-actions.pod:1096
6083 msgid "guestfs_copy_size"
6084 msgstr ""
6085
6086 # type: verbatim
6087 #: ../src/guestfs-actions.pod:1098
6088 #, no-wrap
6089 msgid ""
6090 " int\n"
6091 " guestfs_copy_size (guestfs_h *g,\n"
6092 "                    const char *src,\n"
6093 "                    const char *dest,\n"
6094 "                    int64_t size);\n"
6095 "\n"
6096 msgstr ""
6097
6098 # type: textblock
6099 #: ../src/guestfs-actions.pod:1104 ../fish/guestfish-actions.pod:749
6100 msgid ""
6101 "This command copies exactly C<size> bytes from one source device or file "
6102 "C<src> to another destination device or file C<dest>."
6103 msgstr ""
6104
6105 # type: textblock
6106 #: ../src/guestfs-actions.pod:1107 ../fish/guestfish-actions.pod:752
6107 msgid ""
6108 "Note this will fail if the source is too short or if the destination is not "
6109 "large enough."
6110 msgstr ""
6111
6112 # type: textblock
6113 #: ../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:6512 ../src/guestfs-actions.pod:6546 ../src/guestfs-actions.pod:7025 ../src/guestfs-actions.pod:7044
6114 msgid ""
6115 "This long-running command can generate progress notification messages so "
6116 "that the caller can display a progress bar or indicator.  To receive these "
6117 "messages, the caller must register a progress callback.  See "
6118 "L<guestfs(3)/guestfs_set_progress_callback>."
6119 msgstr ""
6120
6121 # type: textblock
6122 #: ../src/guestfs-actions.pod:1117 ../src/guestfs-actions.pod:3919 ../src/guestfs-actions.pod:5121 ../src/guestfs-actions.pod:6753 ../src/guestfs-actions.pod:6773 ../src/guestfs-actions.pod:6859
6123 msgid "(Added in 1.0.87)"
6124 msgstr ""
6125
6126 # type: =head2
6127 #: ../src/guestfs-actions.pod:1119
6128 msgid "guestfs_cp"
6129 msgstr ""
6130
6131 # type: verbatim
6132 #: ../src/guestfs-actions.pod:1121
6133 #, no-wrap
6134 msgid ""
6135 " int\n"
6136 " guestfs_cp (guestfs_h *g,\n"
6137 "             const char *src,\n"
6138 "             const char *dest);\n"
6139 "\n"
6140 msgstr ""
6141
6142 # type: textblock
6143 #: ../src/guestfs-actions.pod:1126 ../fish/guestfish-actions.pod:759
6144 msgid ""
6145 "This copies a file from C<src> to C<dest> where C<dest> is either a "
6146 "destination filename or destination directory."
6147 msgstr ""
6148
6149 # type: textblock
6150 #: ../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:4588 ../src/guestfs-actions.pod:4965
6151 msgid "(Added in 1.0.18)"
6152 msgstr ""
6153
6154 # type: =head2
6155 #: ../src/guestfs-actions.pod:1133
6156 msgid "guestfs_cp_a"
6157 msgstr ""
6158
6159 # type: verbatim
6160 #: ../src/guestfs-actions.pod:1135
6161 #, no-wrap
6162 msgid ""
6163 " int\n"
6164 " guestfs_cp_a (guestfs_h *g,\n"
6165 "               const char *src,\n"
6166 "               const char *dest);\n"
6167 "\n"
6168 msgstr ""
6169
6170 # type: textblock
6171 #: ../src/guestfs-actions.pod:1140 ../fish/guestfish-actions.pod:766
6172 msgid ""
6173 "This copies a file or directory from C<src> to C<dest> recursively using the "
6174 "C<cp -a> command."
6175 msgstr ""
6176
6177 # type: =head2
6178 #: ../src/guestfs-actions.pod:1147
6179 msgid "guestfs_dd"
6180 msgstr ""
6181
6182 # type: verbatim
6183 #: ../src/guestfs-actions.pod:1149
6184 #, no-wrap
6185 msgid ""
6186 " int\n"
6187 " guestfs_dd (guestfs_h *g,\n"
6188 "             const char *src,\n"
6189 "             const char *dest);\n"
6190 "\n"
6191 msgstr ""
6192
6193 # type: textblock
6194 #: ../src/guestfs-actions.pod:1154 ../fish/guestfish-actions.pod:773
6195 msgid ""
6196 "This command copies from one source device or file C<src> to another "
6197 "destination device or file C<dest>.  Normally you would use this to copy to "
6198 "or from a device or partition, for example to duplicate a filesystem."
6199 msgstr ""
6200
6201 # type: textblock
6202 #: ../src/guestfs-actions.pod:1159
6203 msgid ""
6204 "If the destination is a device, it must be as large or larger than the "
6205 "source file or device, otherwise the copy will fail.  This command cannot do "
6206 "partial copies (see C<guestfs_copy_size>)."
6207 msgstr ""
6208
6209 # type: =head2
6210 #: ../src/guestfs-actions.pod:1167
6211 msgid "guestfs_df"
6212 msgstr ""
6213
6214 # type: verbatim
6215 #: ../src/guestfs-actions.pod:1169
6216 #, no-wrap
6217 msgid ""
6218 " char *\n"
6219 " guestfs_df (guestfs_h *g);\n"
6220 "\n"
6221 msgstr ""
6222
6223 # type: textblock
6224 #: ../src/guestfs-actions.pod:1172 ../fish/guestfish-actions.pod:786
6225 msgid "This command runs the C<df> command to report disk space used."
6226 msgstr ""
6227
6228 # type: textblock
6229 #: ../src/guestfs-actions.pod:1174 ../src/guestfs-actions.pod:1191 ../fish/guestfish-actions.pod:788 ../fish/guestfish-actions.pod:799
6230 msgid ""
6231 "This command is mostly useful for interactive sessions.  It is I<not> "
6232 "intended that you try to parse the output string.  Use C<statvfs> from "
6233 "programs."
6234 msgstr ""
6235
6236 # type: textblock
6237 #: ../src/guestfs-actions.pod:1181 ../src/guestfs-actions.pod:1198 ../src/guestfs-actions.pod:1311 ../src/guestfs-actions.pod:2263 ../src/guestfs-actions.pod:2287 ../src/guestfs-actions.pod:2355 ../src/guestfs-actions.pod:4029 ../src/guestfs-actions.pod:4488 ../src/guestfs-actions.pod:6250 ../src/guestfs-actions.pod:6274 ../src/guestfs-actions.pod:6892 ../src/guestfs-actions.pod:6905 ../src/guestfs-actions.pod:6918
6238 msgid "(Added in 1.0.54)"
6239 msgstr ""
6240
6241 # type: =head2
6242 #: ../src/guestfs-actions.pod:1183
6243 msgid "guestfs_df_h"
6244 msgstr ""
6245
6246 # type: verbatim
6247 #: ../src/guestfs-actions.pod:1185
6248 #, no-wrap
6249 msgid ""
6250 " char *\n"
6251 " guestfs_df_h (guestfs_h *g);\n"
6252 "\n"
6253 msgstr ""
6254
6255 # type: textblock
6256 #: ../src/guestfs-actions.pod:1188 ../fish/guestfish-actions.pod:796
6257 msgid ""
6258 "This command runs the C<df -h> command to report disk space used in "
6259 "human-readable format."
6260 msgstr ""
6261
6262 # type: =head2
6263 #: ../src/guestfs-actions.pod:1200
6264 msgid "guestfs_dmesg"
6265 msgstr ""
6266
6267 # type: verbatim
6268 #: ../src/guestfs-actions.pod:1202
6269 #, no-wrap
6270 msgid ""
6271 " char *\n"
6272 " guestfs_dmesg (guestfs_h *g);\n"
6273 "\n"
6274 msgstr ""
6275
6276 # type: textblock
6277 #: ../src/guestfs-actions.pod:1205 ../fish/guestfish-actions.pod:807
6278 msgid ""
6279 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
6280 "This is sometimes useful for extended debugging of problems."
6281 msgstr ""
6282
6283 # type: textblock
6284 #: ../src/guestfs-actions.pod:1209
6285 msgid ""
6286 "Another way to get the same information is to enable verbose messages with "
6287 "C<guestfs_set_verbose> or by setting the environment variable "
6288 "C<LIBGUESTFS_DEBUG=1> before running the program."
6289 msgstr ""
6290
6291 # type: =head2
6292 #: ../src/guestfs-actions.pod:1219
6293 msgid "guestfs_download"
6294 msgstr ""
6295
6296 # type: verbatim
6297 #: ../src/guestfs-actions.pod:1221
6298 #, no-wrap
6299 msgid ""
6300 " int\n"
6301 " guestfs_download (guestfs_h *g,\n"
6302 "                   const char *remotefilename,\n"
6303 "                   const char *filename);\n"
6304 "\n"
6305 msgstr ""
6306
6307 # type: textblock
6308 #: ../src/guestfs-actions.pod:1226 ../src/guestfs-actions.pod:1251 ../fish/guestfish-actions.pod:820 ../fish/guestfish-actions.pod:833
6309 msgid ""
6310 "Download file C<remotefilename> and save it as C<filename> on the local "
6311 "machine."
6312 msgstr ""
6313
6314 # type: textblock
6315 #: ../src/guestfs-actions.pod:1229 ../src/guestfs-actions.pod:6506 ../fish/guestfish-actions.pod:823 ../fish/guestfish-actions.pod:4344
6316 msgid "C<filename> can also be a named pipe."
6317 msgstr ""
6318
6319 # type: textblock
6320 #: ../src/guestfs-actions.pod:1231
6321 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
6322 msgstr ""
6323
6324 # type: =head2
6325 #: ../src/guestfs-actions.pod:1242
6326 msgid "guestfs_download_offset"
6327 msgstr ""
6328
6329 # type: verbatim
6330 #: ../src/guestfs-actions.pod:1244
6331 #, no-wrap
6332 msgid ""
6333 " int\n"
6334 " guestfs_download_offset (guestfs_h *g,\n"
6335 "                          const char *remotefilename,\n"
6336 "                          const char *filename,\n"
6337 "                          int64_t offset,\n"
6338 "                          int64_t size);\n"
6339 "\n"
6340 msgstr ""
6341
6342 # type: textblock
6343 #: ../src/guestfs-actions.pod:1254 ../fish/guestfish-actions.pod:836
6344 msgid ""
6345 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
6346 "region must be within the file or device)."
6347 msgstr ""
6348
6349 # type: textblock
6350 #: ../src/guestfs-actions.pod:1257
6351 msgid ""
6352 "Note that there is no limit on the amount of data that can be downloaded "
6353 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
6354 "full amount unless an error occurs."
6355 msgstr ""
6356
6357 # type: textblock
6358 #: ../src/guestfs-actions.pod:1262
6359 msgid "See also C<guestfs_download>, C<guestfs_pread>."
6360 msgstr ""
6361
6362 # type: textblock
6363 #: ../src/guestfs-actions.pod:1271 ../src/guestfs-actions.pod:6551
6364 msgid "(Added in 1.5.17)"
6365 msgstr ""
6366
6367 # type: =head2
6368 #: ../src/guestfs-actions.pod:1273
6369 msgid "guestfs_drop_caches"
6370 msgstr ""
6371
6372 # type: verbatim
6373 #: ../src/guestfs-actions.pod:1275
6374 #, no-wrap
6375 msgid ""
6376 " int\n"
6377 " guestfs_drop_caches (guestfs_h *g,\n"
6378 "                      int whattodrop);\n"
6379 "\n"
6380 msgstr ""
6381
6382 # type: textblock
6383 #: ../src/guestfs-actions.pod:1279 ../fish/guestfish-actions.pod:852
6384 msgid ""
6385 "This instructs the guest kernel to drop its page cache, and/or dentries and "
6386 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
6387 "to drop, see L<http://linux-mm.org/Drop_Caches>"
6388 msgstr ""
6389
6390 # type: textblock
6391 #: ../src/guestfs-actions.pod:1284 ../fish/guestfish-actions.pod:857
6392 msgid "Setting C<whattodrop> to 3 should drop everything."
6393 msgstr ""
6394
6395 # type: textblock
6396 #: ../src/guestfs-actions.pod:1286 ../fish/guestfish-actions.pod:859
6397 msgid ""
6398 "This automatically calls L<sync(2)> before the operation, so that the "
6399 "maximum guest memory is freed."
6400 msgstr ""
6401
6402 # type: =head2
6403 #: ../src/guestfs-actions.pod:1293
6404 msgid "guestfs_du"
6405 msgstr ""
6406
6407 # type: verbatim
6408 #: ../src/guestfs-actions.pod:1295
6409 #, no-wrap
6410 msgid ""
6411 " int64_t\n"
6412 " guestfs_du (guestfs_h *g,\n"
6413 "             const char *path);\n"
6414 "\n"
6415 msgstr ""
6416
6417 # type: textblock
6418 #: ../src/guestfs-actions.pod:1299 ../fish/guestfish-actions.pod:866
6419 msgid ""
6420 "This command runs the C<du -s> command to estimate file space usage for "
6421 "C<path>."
6422 msgstr ""
6423
6424 # type: textblock
6425 #: ../src/guestfs-actions.pod:1302 ../fish/guestfish-actions.pod:869
6426 msgid ""
6427 "C<path> can be a file or a directory.  If C<path> is a directory then the "
6428 "estimate includes the contents of the directory and all subdirectories "
6429 "(recursively)."
6430 msgstr ""
6431
6432 # type: textblock
6433 #: ../src/guestfs-actions.pod:1306 ../fish/guestfish-actions.pod:873
6434 msgid "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
6435 msgstr ""
6436
6437 # type: =head2
6438 #: ../src/guestfs-actions.pod:1313
6439 msgid "guestfs_e2fsck_f"
6440 msgstr ""
6441
6442 # type: verbatim
6443 #: ../src/guestfs-actions.pod:1315
6444 #, no-wrap
6445 msgid ""
6446 " int\n"
6447 " guestfs_e2fsck_f (guestfs_h *g,\n"
6448 "                   const char *device);\n"
6449 "\n"
6450 msgstr ""
6451
6452 # type: textblock
6453 #: ../src/guestfs-actions.pod:1319 ../fish/guestfish-actions.pod:880
6454 msgid ""
6455 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
6456 "on C<device>, noninteractively (C<-p>), even if the filesystem appears to be "
6457 "clean (C<-f>)."
6458 msgstr ""
6459
6460 # type: textblock
6461 #: ../src/guestfs-actions.pod:1323
6462 msgid ""
6463 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
6464 "Normally you should use C<guestfs_fsck>."
6465 msgstr ""
6466
6467 # type: textblock
6468 #: ../src/guestfs-actions.pod:1328
6469 msgid "(Added in 1.0.29)"
6470 msgstr ""
6471
6472 # type: =head2
6473 #: ../src/guestfs-actions.pod:1330
6474 msgid "guestfs_echo_daemon"
6475 msgstr ""
6476
6477 # type: verbatim
6478 #: ../src/guestfs-actions.pod:1332
6479 #, no-wrap
6480 msgid ""
6481 " char *\n"
6482 " guestfs_echo_daemon (guestfs_h *g,\n"
6483 "                      char *const *words);\n"
6484 "\n"
6485 msgstr ""
6486
6487 # type: textblock
6488 #: ../src/guestfs-actions.pod:1336 ../fish/guestfish-actions.pod:891
6489 msgid ""
6490 "This command concatenates the list of C<words> passed with single spaces "
6491 "between them and returns the resulting string."
6492 msgstr ""
6493
6494 # type: textblock
6495 #: ../src/guestfs-actions.pod:1339 ../fish/guestfish-actions.pod:894
6496 msgid "You can use this command to test the connection through to the daemon."
6497 msgstr ""
6498
6499 # type: textblock
6500 #: ../src/guestfs-actions.pod:1341
6501 msgid "See also C<guestfs_ping_daemon>."
6502 msgstr ""
6503
6504 # type: textblock
6505 #: ../src/guestfs-actions.pod:1346 ../src/guestfs-actions.pod:2073 ../src/guestfs-actions.pod:5754
6506 msgid "(Added in 1.0.69)"
6507 msgstr ""
6508
6509 # type: =head2
6510 #: ../src/guestfs-actions.pod:1348
6511 msgid "guestfs_egrep"
6512 msgstr ""
6513
6514 # type: verbatim
6515 #: ../src/guestfs-actions.pod:1350
6516 #, no-wrap
6517 msgid ""
6518 " char **\n"
6519 " guestfs_egrep (guestfs_h *g,\n"
6520 "                const char *regex,\n"
6521 "                const char *path);\n"
6522 "\n"
6523 msgstr ""
6524
6525 # type: textblock
6526 #: ../src/guestfs-actions.pod:1355 ../fish/guestfish-actions.pod:902
6527 msgid "This calls the external C<egrep> program and returns the matching lines."
6528 msgstr ""
6529
6530 # type: textblock
6531 #: ../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:2201 ../src/guestfs-actions.pod:2220 ../src/guestfs-actions.pod:2376 ../src/guestfs-actions.pod:2389 ../src/guestfs-actions.pod:2404 ../src/guestfs-actions.pod:2450 ../src/guestfs-actions.pod:2472 ../src/guestfs-actions.pod:2485 ../src/guestfs-actions.pod:3412 ../src/guestfs-actions.pod:3426 ../src/guestfs-actions.pod:3439 ../src/guestfs-actions.pod:3453 ../src/guestfs-actions.pod:4423 ../src/guestfs-actions.pod:5299 ../src/guestfs-actions.pod:5348 ../src/guestfs-actions.pod:6118 ../src/guestfs-actions.pod:6130 ../src/guestfs-actions.pod:6143 ../src/guestfs-actions.pod:6156 ../src/guestfs-actions.pod:6178 ../src/guestfs-actions.pod:6191 ../src/guestfs-actions.pod:6204 ../src/guestfs-actions.pod:6217 ../src/guestfs-actions.pod:6988 ../src/guestfs-actions.pod:7007 ../src/guestfs-actions.pod:7092 ../src/guestfs-actions.pod:7111 ../src/guestfs-actions.pod:7157 ../src/guestfs-actions.pod:7176
6532 msgid "(Added in 1.0.66)"
6533 msgstr ""
6534
6535 # type: =head2
6536 #: ../src/guestfs-actions.pod:1367
6537 msgid "guestfs_egrepi"
6538 msgstr ""
6539
6540 # type: verbatim
6541 #: ../src/guestfs-actions.pod:1369
6542 #, no-wrap
6543 msgid ""
6544 " char **\n"
6545 " guestfs_egrepi (guestfs_h *g,\n"
6546 "                 const char *regex,\n"
6547 "                 const char *path);\n"
6548 "\n"
6549 msgstr ""
6550
6551 # type: textblock
6552 #: ../src/guestfs-actions.pod:1374 ../fish/guestfish-actions.pod:912
6553 msgid "This calls the external C<egrep -i> program and returns the matching lines."
6554 msgstr ""
6555
6556 # type: =head2
6557 #: ../src/guestfs-actions.pod:1386
6558 msgid "guestfs_equal"
6559 msgstr ""
6560
6561 # type: verbatim
6562 #: ../src/guestfs-actions.pod:1388
6563 #, no-wrap
6564 msgid ""
6565 " int\n"
6566 " guestfs_equal (guestfs_h *g,\n"
6567 "                const char *file1,\n"
6568 "                const char *file2);\n"
6569 "\n"
6570 msgstr ""
6571
6572 # type: textblock
6573 #: ../src/guestfs-actions.pod:1393 ../fish/guestfish-actions.pod:922
6574 msgid ""
6575 "This compares the two files C<file1> and C<file2> and returns true if their "
6576 "content is exactly equal, or false otherwise."
6577 msgstr ""
6578
6579 # type: textblock
6580 #: ../src/guestfs-actions.pod:1396 ../fish/guestfish-actions.pod:925
6581 msgid "The external L<cmp(1)> program is used for the comparison."
6582 msgstr ""
6583
6584 # type: =head2
6585 #: ../src/guestfs-actions.pod:1402
6586 msgid "guestfs_exists"
6587 msgstr ""
6588
6589 # type: verbatim
6590 #: ../src/guestfs-actions.pod:1404
6591 #, no-wrap
6592 msgid ""
6593 " int\n"
6594 " guestfs_exists (guestfs_h *g,\n"
6595 "                 const char *path);\n"
6596 "\n"
6597 msgstr ""
6598
6599 # type: textblock
6600 #: ../src/guestfs-actions.pod:1408 ../fish/guestfish-actions.pod:931
6601 msgid ""
6602 "This returns C<true> if and only if there is a file, directory (or anything) "
6603 "with the given C<path> name."
6604 msgstr ""
6605
6606 # type: textblock
6607 #: ../src/guestfs-actions.pod:1411
6608 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
6609 msgstr ""
6610
6611 # type: =head2
6612 #: ../src/guestfs-actions.pod:1417
6613 msgid "guestfs_fallocate"
6614 msgstr ""
6615
6616 # type: verbatim
6617 #: ../src/guestfs-actions.pod:1419
6618 #, no-wrap
6619 msgid ""
6620 " int\n"
6621 " guestfs_fallocate (guestfs_h *g,\n"
6622 "                    const char *path,\n"
6623 "                    int len);\n"
6624 "\n"
6625 msgstr ""
6626
6627 # type: textblock
6628 #: ../src/guestfs-actions.pod:1424 ../src/guestfs-actions.pod:1450 ../fish/guestfish-actions.pod:940 ../fish/guestfish-actions.pod:959
6629 msgid ""
6630 "This command preallocates a file (containing zero bytes) named C<path> of "
6631 "size C<len> bytes.  If the file exists already, it is overwritten."
6632 msgstr ""
6633
6634 # type: textblock
6635 #: ../src/guestfs-actions.pod:1428 ../fish/guestfish-actions.pod:944
6636 msgid ""
6637 "Do not confuse this with the guestfish-specific C<alloc> command which "
6638 "allocates a file in the host and attaches it as a device."
6639 msgstr ""
6640
6641 # type: textblock
6642 #: ../src/guestfs-actions.pod:1434 ../fish/guestfish-actions.pod:948
6643 msgid ""
6644 "This function is deprecated.  In new code, use the C<fallocate64> call "
6645 "instead."
6646 msgstr ""
6647
6648 # type: =head2
6649 #: ../src/guestfs-actions.pod:1443
6650 msgid "guestfs_fallocate64"
6651 msgstr ""
6652
6653 # type: verbatim
6654 #: ../src/guestfs-actions.pod:1445
6655 #, no-wrap
6656 msgid ""
6657 " int\n"
6658 " guestfs_fallocate64 (guestfs_h *g,\n"
6659 "                      const char *path,\n"
6660 "                      int64_t len);\n"
6661 "\n"
6662 msgstr ""
6663
6664 # type: textblock
6665 #: ../src/guestfs-actions.pod:1454
6666 msgid ""
6667 "Note that this call allocates disk blocks for the file.  To create a sparse "
6668 "file use C<guestfs_truncate_size> instead."
6669 msgstr ""
6670
6671 # type: textblock
6672 #: ../src/guestfs-actions.pod:1457
6673 msgid ""
6674 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
6675 "oversight it only allowed 30 bit lengths to be specified, effectively "
6676 "limiting the maximum size of files created through that call to 1GB."
6677 msgstr ""
6678
6679 # type: textblock
6680 #: ../src/guestfs-actions.pod:1462 ../fish/guestfish-actions.pod:971
6681 msgid ""
6682 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
6683 "commands which create a file in the host and attach it as a device."
6684 msgstr ""
6685
6686 # type: textblock
6687 #: ../src/guestfs-actions.pod:1468
6688 msgid "(Added in 1.3.17)"
6689 msgstr ""
6690
6691 # type: =head2
6692 #: ../src/guestfs-actions.pod:1470
6693 msgid "guestfs_fgrep"
6694 msgstr ""
6695
6696 # type: verbatim
6697 #: ../src/guestfs-actions.pod:1472
6698 #, no-wrap
6699 msgid ""
6700 " char **\n"
6701 " guestfs_fgrep (guestfs_h *g,\n"
6702 "                const char *pattern,\n"
6703 "                const char *path);\n"
6704 "\n"
6705 msgstr ""
6706
6707 # type: textblock
6708 #: ../src/guestfs-actions.pod:1477 ../fish/guestfish-actions.pod:979
6709 msgid "This calls the external C<fgrep> program and returns the matching lines."
6710 msgstr ""
6711
6712 # type: =head2
6713 #: ../src/guestfs-actions.pod:1489
6714 msgid "guestfs_fgrepi"
6715 msgstr ""
6716
6717 # type: verbatim
6718 #: ../src/guestfs-actions.pod:1491
6719 #, no-wrap
6720 msgid ""
6721 " char **\n"
6722 " guestfs_fgrepi (guestfs_h *g,\n"
6723 "                 const char *pattern,\n"
6724 "                 const char *path);\n"
6725 "\n"
6726 msgstr ""
6727
6728 # type: textblock
6729 #: ../src/guestfs-actions.pod:1496 ../fish/guestfish-actions.pod:989
6730 msgid "This calls the external C<fgrep -i> program and returns the matching lines."
6731 msgstr ""
6732
6733 # type: =head2
6734 #: ../src/guestfs-actions.pod:1508
6735 msgid "guestfs_file"
6736 msgstr ""
6737
6738 # type: verbatim
6739 #: ../src/guestfs-actions.pod:1510
6740 #, no-wrap
6741 msgid ""
6742 " char *\n"
6743 " guestfs_file (guestfs_h *g,\n"
6744 "               const char *path);\n"
6745 "\n"
6746 msgstr ""
6747
6748 # type: textblock
6749 #: ../src/guestfs-actions.pod:1514 ../fish/guestfish-actions.pod:999
6750 msgid ""
6751 "This call uses the standard L<file(1)> command to determine the type or "
6752 "contents of the file."
6753 msgstr ""
6754
6755 # type: textblock
6756 #: ../src/guestfs-actions.pod:1517 ../fish/guestfish-actions.pod:1002
6757 msgid ""
6758 "This call will also transparently look inside various types of compressed "
6759 "file."
6760 msgstr ""
6761
6762 # type: textblock
6763 #: ../src/guestfs-actions.pod:1520 ../fish/guestfish-actions.pod:1005
6764 msgid ""
6765 "The exact command which runs is C<file -zb path>.  Note in particular that "
6766 "the filename is not prepended to the output (the C<-b> option)."
6767 msgstr ""
6768
6769 # type: textblock
6770 #: ../src/guestfs-actions.pod:1524
6771 msgid ""
6772 "This command can also be used on C</dev/> devices (and partitions, LV "
6773 "names).  You can for example use this to determine if a device contains a "
6774 "filesystem, although it's usually better to use C<guestfs_vfs_type>."
6775 msgstr ""
6776
6777 # type: textblock
6778 #: ../src/guestfs-actions.pod:1529 ../fish/guestfish-actions.pod:1014
6779 msgid ""
6780 "If the C<path> does not begin with C</dev/> then this command only works for "
6781 "the content of regular files.  For other file types (directory, symbolic "
6782 "link etc) it will just return the string C<directory> etc."
6783 msgstr ""
6784
6785 # type: =head2
6786 #: ../src/guestfs-actions.pod:1539
6787 msgid "guestfs_file_architecture"
6788 msgstr ""
6789
6790 # type: verbatim
6791 #: ../src/guestfs-actions.pod:1541
6792 #, no-wrap
6793 msgid ""
6794 " char *\n"
6795 " guestfs_file_architecture (guestfs_h *g,\n"
6796 "                            const char *filename);\n"
6797 "\n"
6798 msgstr ""
6799
6800 # type: textblock
6801 #: ../src/guestfs-actions.pod:1545 ../fish/guestfish-actions.pod:1023
6802 msgid ""
6803 "This detects the architecture of the binary C<filename>, and returns it if "
6804 "known."
6805 msgstr ""
6806
6807 # type: textblock
6808 #: ../src/guestfs-actions.pod:1548 ../fish/guestfish-actions.pod:1026
6809 msgid "Currently defined architectures are:"
6810 msgstr ""
6811
6812 # type: =item
6813 #: ../src/guestfs-actions.pod:1552 ../fish/guestfish-actions.pod:1030
6814 msgid "\"i386\""
6815 msgstr ""
6816
6817 # type: textblock
6818 #: ../src/guestfs-actions.pod:1554 ../fish/guestfish-actions.pod:1032
6819 msgid ""
6820 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
6821 "irrespective of the precise processor requirements of the binary."
6822 msgstr ""
6823
6824 # type: =item
6825 #: ../src/guestfs-actions.pod:1557 ../fish/guestfish-actions.pod:1035
6826 msgid "\"x86_64\""
6827 msgstr ""
6828
6829 # type: textblock
6830 #: ../src/guestfs-actions.pod:1559 ../fish/guestfish-actions.pod:1037
6831 msgid "64 bit x86-64."
6832 msgstr ""
6833
6834 # type: =item
6835 #: ../src/guestfs-actions.pod:1561 ../fish/guestfish-actions.pod:1039
6836 msgid "\"sparc\""
6837 msgstr ""
6838
6839 # type: textblock
6840 #: ../src/guestfs-actions.pod:1563 ../fish/guestfish-actions.pod:1041
6841 msgid "32 bit SPARC."
6842 msgstr ""
6843
6844 # type: =item
6845 #: ../src/guestfs-actions.pod:1565 ../fish/guestfish-actions.pod:1043
6846 msgid "\"sparc64\""
6847 msgstr ""
6848
6849 # type: textblock
6850 #: ../src/guestfs-actions.pod:1567 ../fish/guestfish-actions.pod:1045
6851 msgid "64 bit SPARC V9 and above."
6852 msgstr ""
6853
6854 # type: =item
6855 #: ../src/guestfs-actions.pod:1569 ../fish/guestfish-actions.pod:1047
6856 msgid "\"ia64\""
6857 msgstr ""
6858
6859 # type: textblock
6860 #: ../src/guestfs-actions.pod:1571 ../fish/guestfish-actions.pod:1049
6861 msgid "Intel Itanium."
6862 msgstr ""
6863
6864 # type: =item
6865 #: ../src/guestfs-actions.pod:1573 ../fish/guestfish-actions.pod:1051
6866 msgid "\"ppc\""
6867 msgstr ""
6868
6869 # type: textblock
6870 #: ../src/guestfs-actions.pod:1575 ../fish/guestfish-actions.pod:1053
6871 msgid "32 bit Power PC."
6872 msgstr ""
6873
6874 # type: =item
6875 #: ../src/guestfs-actions.pod:1577 ../fish/guestfish-actions.pod:1055
6876 msgid "\"ppc64\""
6877 msgstr ""
6878
6879 # type: textblock
6880 #: ../src/guestfs-actions.pod:1579 ../fish/guestfish-actions.pod:1057
6881 msgid "64 bit Power PC."
6882 msgstr ""
6883
6884 # type: textblock
6885 #: ../src/guestfs-actions.pod:1583 ../fish/guestfish-actions.pod:1061
6886 msgid "Libguestfs may return other architecture strings in future."
6887 msgstr ""
6888
6889 # type: textblock
6890 #: ../src/guestfs-actions.pod:1585 ../fish/guestfish-actions.pod:1063
6891 msgid "The function works on at least the following types of files:"
6892 msgstr ""
6893
6894 # type: textblock
6895 #: ../src/guestfs-actions.pod:1591 ../fish/guestfish-actions.pod:1069
6896 msgid "many types of Un*x and Linux binary"
6897 msgstr ""
6898
6899 # type: textblock
6900 #: ../src/guestfs-actions.pod:1595 ../fish/guestfish-actions.pod:1073
6901 msgid "many types of Un*x and Linux shared library"
6902 msgstr ""
6903
6904 # type: textblock
6905 #: ../src/guestfs-actions.pod:1599 ../fish/guestfish-actions.pod:1077
6906 msgid "Windows Win32 and Win64 binaries"
6907 msgstr ""
6908
6909 # type: textblock
6910 #: ../src/guestfs-actions.pod:1603 ../fish/guestfish-actions.pod:1081
6911 msgid "Windows Win32 and Win64 DLLs"
6912 msgstr ""
6913
6914 # type: textblock
6915 #: ../src/guestfs-actions.pod:1605 ../fish/guestfish-actions.pod:1083
6916 msgid "Win32 binaries and DLLs return C<i386>."
6917 msgstr ""
6918
6919 # type: textblock
6920 #: ../src/guestfs-actions.pod:1607 ../fish/guestfish-actions.pod:1085
6921 msgid "Win64 binaries and DLLs return C<x86_64>."
6922 msgstr ""
6923
6924 # type: textblock
6925 #: ../src/guestfs-actions.pod:1611 ../fish/guestfish-actions.pod:1089
6926 msgid "Linux kernel modules"
6927 msgstr ""
6928
6929 # type: textblock
6930 #: ../src/guestfs-actions.pod:1615 ../fish/guestfish-actions.pod:1093
6931 msgid "Linux new-style initrd images"
6932 msgstr ""
6933
6934 # type: textblock
6935 #: ../src/guestfs-actions.pod:1619 ../fish/guestfish-actions.pod:1097
6936 msgid "some non-x86 Linux vmlinuz kernels"
6937 msgstr ""
6938
6939 # type: textblock
6940 #: ../src/guestfs-actions.pod:1623 ../fish/guestfish-actions.pod:1101
6941 msgid "What it can't do currently:"
6942 msgstr ""
6943
6944 # type: textblock
6945 #: ../src/guestfs-actions.pod:1629 ../fish/guestfish-actions.pod:1107
6946 msgid "static libraries (libfoo.a)"
6947 msgstr ""
6948
6949 # type: textblock
6950 #: ../src/guestfs-actions.pod:1633 ../fish/guestfish-actions.pod:1111
6951 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
6952 msgstr ""
6953
6954 # type: textblock
6955 #: ../src/guestfs-actions.pod:1637 ../fish/guestfish-actions.pod:1115
6956 msgid "x86 Linux vmlinuz kernels"
6957 msgstr ""
6958
6959 # type: textblock
6960 #: ../src/guestfs-actions.pod:1639 ../fish/guestfish-actions.pod:1117
6961 msgid ""
6962 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
6963 "compressed code, and are horribly hard to unpack.  If you want to find the "
6964 "architecture of a kernel, use the architecture of the associated initrd or "
6965 "kernel module(s) instead."
6966 msgstr ""
6967
6968 # type: textblock
6969 #: ../src/guestfs-actions.pod:1649 ../src/guestfs-actions.pod:1812 ../src/guestfs-actions.pod:1829 ../src/guestfs-actions.pod:2508 ../src/guestfs-actions.pod:2589 ../src/guestfs-actions.pod:2615 ../src/guestfs-actions.pod:2664 ../src/guestfs-actions.pod:2685 ../src/guestfs-actions.pod:2718 ../src/guestfs-actions.pod:2802 ../src/guestfs-actions.pod:2864 ../src/guestfs-actions.pod:3037 ../src/guestfs-actions.pod:3169
6970 msgid "(Added in 1.5.3)"
6971 msgstr ""
6972
6973 # type: =head2
6974 #: ../src/guestfs-actions.pod:1651
6975 msgid "guestfs_filesize"
6976 msgstr ""
6977
6978 # type: verbatim
6979 #: ../src/guestfs-actions.pod:1653
6980 #, no-wrap
6981 msgid ""
6982 " int64_t\n"
6983 " guestfs_filesize (guestfs_h *g,\n"
6984 "                   const char *file);\n"
6985 "\n"
6986 msgstr ""
6987
6988 # type: textblock
6989 #: ../src/guestfs-actions.pod:1657 ../fish/guestfish-actions.pod:1128
6990 msgid "This command returns the size of C<file> in bytes."
6991 msgstr ""
6992
6993 # type: textblock
6994 #: ../src/guestfs-actions.pod:1659
6995 msgid ""
6996 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
6997 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
6998 "devices, use C<guestfs_blockdev_getsize64>."
6999 msgstr ""
7000
7001 # type: textblock
7002 #: ../src/guestfs-actions.pod:1665
7003 msgid "(Added in 1.0.82)"
7004 msgstr ""
7005
7006 # type: =head2
7007 #: ../src/guestfs-actions.pod:1667
7008 msgid "guestfs_fill"
7009 msgstr ""
7010
7011 # type: verbatim
7012 #: ../src/guestfs-actions.pod:1669
7013 #, no-wrap
7014 msgid ""
7015 " int\n"
7016 " guestfs_fill (guestfs_h *g,\n"
7017 "               int c,\n"
7018 "               int len,\n"
7019 "               const char *path);\n"
7020 "\n"
7021 msgstr ""
7022
7023 # type: textblock
7024 #: ../src/guestfs-actions.pod:1675 ../fish/guestfish-actions.pod:1138
7025 msgid ""
7026 "This command creates a new file called C<path>.  The initial content of the "
7027 "file is C<len> octets of C<c>, where C<c> must be a number in the range "
7028 "C<[0..255]>."
7029 msgstr ""
7030
7031 # type: textblock
7032 #: ../src/guestfs-actions.pod:1679
7033 msgid ""
7034 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
7035 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
7036 "bytes use C<guestfs_fill_pattern>."
7037 msgstr ""
7038
7039 # type: textblock
7040 #: ../src/guestfs-actions.pod:1691
7041 msgid "(Added in 1.0.79)"
7042 msgstr ""
7043
7044 # type: =head2
7045 #: ../src/guestfs-actions.pod:1693
7046 msgid "guestfs_fill_pattern"
7047 msgstr ""
7048
7049 # type: verbatim
7050 #: ../src/guestfs-actions.pod:1695
7051 #, no-wrap
7052 msgid ""
7053 " int\n"
7054 " guestfs_fill_pattern (guestfs_h *g,\n"
7055 "                       const char *pattern,\n"
7056 "                       int len,\n"
7057 "                       const char *path);\n"
7058 "\n"
7059 msgstr ""
7060
7061 # type: textblock
7062 #: ../src/guestfs-actions.pod:1701
7063 msgid ""
7064 "This function is like C<guestfs_fill> except that it creates a new file of "
7065 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
7066 "pattern is truncated if necessary to ensure the length of the file is "
7067 "exactly C<len> bytes."
7068 msgstr ""
7069
7070 # type: textblock
7071 #: ../src/guestfs-actions.pod:1713
7072 msgid "(Added in 1.3.12)"
7073 msgstr ""
7074
7075 # type: =head2
7076 #: ../src/guestfs-actions.pod:1715
7077 msgid "guestfs_find"
7078 msgstr ""
7079
7080 # type: verbatim
7081 #: ../src/guestfs-actions.pod:1717
7082 #, no-wrap
7083 msgid ""
7084 " char **\n"
7085 " guestfs_find (guestfs_h *g,\n"
7086 "               const char *directory);\n"
7087 "\n"
7088 msgstr ""
7089
7090 # type: textblock
7091 #: ../src/guestfs-actions.pod:1721 ../fish/guestfish-actions.pod:1160
7092 msgid ""
7093 "This command lists out all files and directories, recursively, starting at "
7094 "C<directory>.  It is essentially equivalent to running the shell command "
7095 "C<find directory -print> but some post-processing happens on the output, "
7096 "described below."
7097 msgstr ""
7098
7099 # type: textblock
7100 #: ../src/guestfs-actions.pod:1726 ../fish/guestfish-actions.pod:1165
7101 msgid ""
7102 "This returns a list of strings I<without any prefix>.  Thus if the directory "
7103 "structure was:"
7104 msgstr ""
7105
7106 # type: verbatim
7107 #: ../src/guestfs-actions.pod:1729 ../fish/guestfish-actions.pod:1168
7108 #, no-wrap
7109 msgid ""
7110 " /tmp/a\n"
7111 " /tmp/b\n"
7112 " /tmp/c/d\n"
7113 "\n"
7114 msgstr ""
7115
7116 # type: textblock
7117 #: ../src/guestfs-actions.pod:1733
7118 msgid "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
7119 msgstr ""
7120
7121 # type: verbatim
7122 #: ../src/guestfs-actions.pod:1736 ../fish/guestfish-actions.pod:1175
7123 #, no-wrap
7124 msgid ""
7125 " a\n"
7126 " b\n"
7127 " c\n"
7128 " c/d\n"
7129 "\n"
7130 msgstr ""
7131
7132 # type: textblock
7133 #: ../src/guestfs-actions.pod:1741 ../fish/guestfish-actions.pod:1180
7134 msgid "If C<directory> is not a directory, then this command returns an error."
7135 msgstr ""
7136
7137 # type: textblock
7138 #: ../src/guestfs-actions.pod:1744 ../fish/guestfish-actions.pod:1183
7139 msgid "The returned list is sorted."
7140 msgstr ""
7141
7142 # type: textblock
7143 #: ../src/guestfs-actions.pod:1746
7144 msgid "See also C<guestfs_find0>."
7145 msgstr ""
7146
7147 # type: textblock
7148 #: ../src/guestfs-actions.pod:1755 ../src/guestfs-actions.pod:3856 ../src/guestfs-actions.pod:5383
7149 msgid "(Added in 1.0.27)"
7150 msgstr ""
7151
7152 # type: =head2
7153 #: ../src/guestfs-actions.pod:1757
7154 msgid "guestfs_find0"
7155 msgstr ""
7156
7157 # type: verbatim
7158 #: ../src/guestfs-actions.pod:1759
7159 #, no-wrap
7160 msgid ""
7161 " int\n"
7162 " guestfs_find0 (guestfs_h *g,\n"
7163 "                const char *directory,\n"
7164 "                const char *files);\n"
7165 "\n"
7166 msgstr ""
7167
7168 # type: textblock
7169 #: ../src/guestfs-actions.pod:1764 ../fish/guestfish-actions.pod:1194
7170 msgid ""
7171 "This command lists out all files and directories, recursively, starting at "
7172 "C<directory>, placing the resulting list in the external file called "
7173 "C<files>."
7174 msgstr ""
7175
7176 # type: textblock
7177 #: ../src/guestfs-actions.pod:1768
7178 msgid ""
7179 "This command works the same way as C<guestfs_find> with the following "
7180 "exceptions:"
7181 msgstr ""
7182
7183 # type: textblock
7184 #: ../src/guestfs-actions.pod:1775 ../fish/guestfish-actions.pod:1205
7185 msgid "The resulting list is written to an external file."
7186 msgstr ""
7187
7188 # type: textblock
7189 #: ../src/guestfs-actions.pod:1779 ../fish/guestfish-actions.pod:1209
7190 msgid ""
7191 "Items (filenames) in the result are separated by C<\\0> characters.  See "
7192 "L<find(1)> option I<-print0>."
7193 msgstr ""
7194
7195 # type: textblock
7196 #: ../src/guestfs-actions.pod:1784 ../fish/guestfish-actions.pod:1214
7197 msgid "This command is not limited in the number of names that it can return."
7198 msgstr ""
7199
7200 # type: textblock
7201 #: ../src/guestfs-actions.pod:1789 ../fish/guestfish-actions.pod:1219
7202 msgid "The result list is not sorted."
7203 msgstr ""
7204
7205 # type: textblock
7206 #: ../src/guestfs-actions.pod:1795
7207 msgid "(Added in 1.0.74)"
7208 msgstr ""
7209
7210 # type: =head2
7211 #: ../src/guestfs-actions.pod:1797
7212 msgid "guestfs_findfs_label"
7213 msgstr ""
7214
7215 # type: verbatim
7216 #: ../src/guestfs-actions.pod:1799
7217 #, no-wrap
7218 msgid ""
7219 " char *\n"
7220 " guestfs_findfs_label (guestfs_h *g,\n"
7221 "                       const char *label);\n"
7222 "\n"
7223 msgstr ""
7224
7225 # type: textblock
7226 #: ../src/guestfs-actions.pod:1803 ../fish/guestfish-actions.pod:1229
7227 msgid ""
7228 "This command searches the filesystems and returns the one which has the "
7229 "given label.  An error is returned if no such filesystem can be found."
7230 msgstr ""
7231
7232 # type: textblock
7233 #: ../src/guestfs-actions.pod:1807
7234 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
7235 msgstr ""
7236
7237 # type: =head2
7238 #: ../src/guestfs-actions.pod:1814
7239 msgid "guestfs_findfs_uuid"
7240 msgstr ""
7241
7242 # type: verbatim
7243 #: ../src/guestfs-actions.pod:1816
7244 #, no-wrap
7245 msgid ""
7246 " char *\n"
7247 " guestfs_findfs_uuid (guestfs_h *g,\n"
7248 "                      const char *uuid);\n"
7249 "\n"
7250 msgstr ""
7251
7252 # type: textblock
7253 #: ../src/guestfs-actions.pod:1820 ../fish/guestfish-actions.pod:1239
7254 msgid ""
7255 "This command searches the filesystems and returns the one which has the "
7256 "given UUID.  An error is returned if no such filesystem can be found."
7257 msgstr ""
7258
7259 # type: textblock
7260 #: ../src/guestfs-actions.pod:1824
7261 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
7262 msgstr ""
7263
7264 # type: =head2
7265 #: ../src/guestfs-actions.pod:1831
7266 msgid "guestfs_fsck"
7267 msgstr ""
7268
7269 # type: verbatim
7270 #: ../src/guestfs-actions.pod:1833
7271 #, no-wrap
7272 msgid ""
7273 " int\n"
7274 " guestfs_fsck (guestfs_h *g,\n"
7275 "               const char *fstype,\n"
7276 "               const char *device);\n"
7277 "\n"
7278 msgstr ""
7279
7280 # type: textblock
7281 #: ../src/guestfs-actions.pod:1838 ../fish/guestfish-actions.pod:1249
7282 msgid ""
7283 "This runs the filesystem checker (fsck) on C<device> which should have "
7284 "filesystem type C<fstype>."
7285 msgstr ""
7286
7287 # type: textblock
7288 #: ../src/guestfs-actions.pod:1841 ../fish/guestfish-actions.pod:1252
7289 msgid ""
7290 "The returned integer is the status.  See L<fsck(8)> for the list of status "
7291 "codes from C<fsck>."
7292 msgstr ""
7293
7294 # type: textblock
7295 #: ../src/guestfs-actions.pod:1850 ../fish/guestfish-actions.pod:1261
7296 msgid "Multiple status codes can be summed together."
7297 msgstr ""
7298
7299 # type: textblock
7300 #: ../src/guestfs-actions.pod:1854 ../fish/guestfish-actions.pod:1265
7301 msgid ""
7302 "A non-zero return code can mean \"success\", for example if errors have been "
7303 "corrected on the filesystem."
7304 msgstr ""
7305
7306 # type: textblock
7307 #: ../src/guestfs-actions.pod:1859 ../fish/guestfish-actions.pod:1270
7308 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
7309 msgstr ""
7310
7311 # type: textblock
7312 #: ../src/guestfs-actions.pod:1864 ../fish/guestfish-actions.pod:1275
7313 msgid "This command is entirely equivalent to running C<fsck -a -t fstype device>."
7314 msgstr ""
7315
7316 # type: textblock
7317 #: ../src/guestfs-actions.pod:1868 ../src/guestfs-actions.pod:7030
7318 msgid "(Added in 1.0.16)"
7319 msgstr ""
7320
7321 # type: =head2
7322 #: ../src/guestfs-actions.pod:1870
7323 msgid "guestfs_get_append"
7324 msgstr ""
7325
7326 # type: verbatim
7327 #: ../src/guestfs-actions.pod:1872
7328 #, no-wrap
7329 msgid ""
7330 " const char *\n"
7331 " guestfs_get_append (guestfs_h *g);\n"
7332 "\n"
7333 msgstr ""
7334
7335 # type: textblock
7336 #: ../src/guestfs-actions.pod:1875 ../fish/guestfish-actions.pod:1281
7337 msgid ""
7338 "Return the additional kernel options which are added to the guest kernel "
7339 "command line."
7340 msgstr ""
7341
7342 # type: textblock
7343 #: ../src/guestfs-actions.pod:1878 ../fish/guestfish-actions.pod:1284
7344 msgid "If C<NULL> then no options are added."
7345 msgstr ""
7346
7347 # type: textblock
7348 #: ../src/guestfs-actions.pod:1880
7349 msgid ""
7350 "This function returns a string which may be NULL.  There is no way to return "
7351 "an error from this function.  The string is owned by the guest handle and "
7352 "must I<not> be freed."
7353 msgstr ""
7354
7355 # type: textblock
7356 #: ../src/guestfs-actions.pod:1884 ../src/guestfs-actions.pod:5061 ../src/guestfs-actions.pod:5524 ../src/guestfs-actions.pod:5892 ../src/guestfs-actions.pod:5911 ../src/guestfs-actions.pod:5927 ../src/guestfs-actions.pod:5944 ../src/guestfs-actions.pod:6701 ../src/guestfs-actions.pod:6719 ../src/guestfs-actions.pod:7073
7357 msgid "(Added in 1.0.26)"
7358 msgstr ""
7359
7360 # type: =head2
7361 #: ../src/guestfs-actions.pod:1886
7362 msgid "guestfs_get_autosync"
7363 msgstr ""
7364
7365 # type: verbatim
7366 #: ../src/guestfs-actions.pod:1888
7367 #, no-wrap
7368 msgid ""
7369 " int\n"
7370 " guestfs_get_autosync (guestfs_h *g);\n"
7371 "\n"
7372 msgstr ""
7373
7374 # type: textblock
7375 #: ../src/guestfs-actions.pod:1891 ../fish/guestfish-actions.pod:1290
7376 msgid "Get the autosync flag."
7377 msgstr ""
7378
7379 # type: =head2
7380 #: ../src/guestfs-actions.pod:1897
7381 msgid "guestfs_get_direct"
7382 msgstr ""
7383
7384 # type: verbatim
7385 #: ../src/guestfs-actions.pod:1899
7386 #, no-wrap
7387 msgid ""
7388 " int\n"
7389 " guestfs_get_direct (guestfs_h *g);\n"
7390 "\n"
7391 msgstr ""
7392
7393 # type: textblock
7394 #: ../src/guestfs-actions.pod:1902 ../fish/guestfish-actions.pod:1296
7395 msgid "Return the direct appliance mode flag."
7396 msgstr ""
7397
7398 # type: textblock
7399 #: ../src/guestfs-actions.pod:1906 ../src/guestfs-actions.pod:5565
7400 msgid "(Added in 1.0.72)"
7401 msgstr ""
7402
7403 # type: =head2
7404 #: ../src/guestfs-actions.pod:1908
7405 msgid "guestfs_get_e2label"
7406 msgstr ""
7407
7408 # type: verbatim
7409 #: ../src/guestfs-actions.pod:1910
7410 #, no-wrap
7411 msgid ""
7412 " char *\n"
7413 " guestfs_get_e2label (guestfs_h *g,\n"
7414 "                      const char *device);\n"
7415 "\n"
7416 msgstr ""
7417
7418 # type: textblock
7419 #: ../src/guestfs-actions.pod:1914 ../fish/guestfish-actions.pod:1302
7420 msgid "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
7421 msgstr ""
7422
7423 # type: textblock
7424 #: ../src/guestfs-actions.pod:1920 ../fish/guestfish-actions.pod:1305
7425 msgid ""
7426 "This function is deprecated.  In new code, use the C<vfs_label> call "
7427 "instead."
7428 msgstr ""
7429
7430 # type: textblock
7431 #: ../src/guestfs-actions.pod:1927 ../src/guestfs-actions.pod:1948 ../src/guestfs-actions.pod:5583 ../src/guestfs-actions.pod:5602
7432 msgid "(Added in 1.0.15)"
7433 msgstr ""
7434
7435 # type: =head2
7436 #: ../src/guestfs-actions.pod:1929
7437 msgid "guestfs_get_e2uuid"
7438 msgstr ""
7439
7440 # type: verbatim
7441 #: ../src/guestfs-actions.pod:1931
7442 #, no-wrap
7443 msgid ""
7444 " char *\n"
7445 " guestfs_get_e2uuid (guestfs_h *g,\n"
7446 "                     const char *device);\n"
7447 "\n"
7448 msgstr ""
7449
7450 # type: textblock
7451 #: ../src/guestfs-actions.pod:1935 ../fish/guestfish-actions.pod:1316
7452 msgid "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
7453 msgstr ""
7454
7455 # type: textblock
7456 #: ../src/guestfs-actions.pod:1941 ../fish/guestfish-actions.pod:1319
7457 msgid "This function is deprecated.  In new code, use the C<vfs_uuid> call instead."
7458 msgstr ""
7459
7460 # type: =head2
7461 #: ../src/guestfs-actions.pod:1950
7462 msgid "guestfs_get_memsize"
7463 msgstr ""
7464
7465 # type: verbatim
7466 #: ../src/guestfs-actions.pod:1952
7467 #, no-wrap
7468 msgid ""
7469 " int\n"
7470 " guestfs_get_memsize (guestfs_h *g);\n"
7471 "\n"
7472 msgstr ""
7473
7474 # type: textblock
7475 #: ../src/guestfs-actions.pod:1955 ../fish/guestfish-actions.pod:1330
7476 msgid "This gets the memory size in megabytes allocated to the qemu subprocess."
7477 msgstr ""
7478
7479 # type: textblock
7480 #: ../src/guestfs-actions.pod:1958
7481 msgid ""
7482 "If C<guestfs_set_memsize> was not called on this handle, and if "
7483 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
7484 "value for memsize."
7485 msgstr ""
7486
7487 # type: textblock
7488 #: ../src/guestfs-actions.pod:1962 ../src/guestfs-actions.pod:2043 ../src/guestfs-actions.pod:5618 ../src/guestfs-actions.pod:5725 ../fish/guestfish-actions.pod:1337 ../fish/guestfish-actions.pod:1388 ../fish/guestfish-actions.pod:3751 ../fish/guestfish-actions.pod:3838
7489 msgid "For more information on the architecture of libguestfs, see L<guestfs(3)>."
7490 msgstr ""
7491
7492 # type: textblock
7493 #: ../src/guestfs-actions.pod:1967 ../src/guestfs-actions.pod:4147 ../src/guestfs-actions.pod:4328 ../src/guestfs-actions.pod:4347 ../src/guestfs-actions.pod:4366 ../src/guestfs-actions.pod:4378 ../src/guestfs-actions.pod:4395 ../src/guestfs-actions.pod:4408 ../src/guestfs-actions.pod:5286 ../src/guestfs-actions.pod:5623 ../src/guestfs-actions.pod:5866 ../src/guestfs-actions.pod:6467
7494 msgid "(Added in 1.0.55)"
7495 msgstr ""
7496
7497 # type: =head2
7498 #: ../src/guestfs-actions.pod:1969
7499 msgid "guestfs_get_network"
7500 msgstr ""
7501
7502 # type: verbatim
7503 #: ../src/guestfs-actions.pod:1971
7504 #, no-wrap
7505 msgid ""
7506 " int\n"
7507 " guestfs_get_network (guestfs_h *g);\n"
7508 "\n"
7509 msgstr ""
7510
7511 # type: textblock
7512 #: ../src/guestfs-actions.pod:1974 ../fish/guestfish-actions.pod:1344
7513 msgid "This returns the enable network flag."
7514 msgstr ""
7515
7516 # type: textblock
7517 #: ../src/guestfs-actions.pod:1978 ../src/guestfs-actions.pod:5642
7518 msgid "(Added in 1.5.4)"
7519 msgstr ""
7520
7521 # type: =head2
7522 #: ../src/guestfs-actions.pod:1980
7523 msgid "guestfs_get_path"
7524 msgstr ""
7525
7526 # type: verbatim
7527 #: ../src/guestfs-actions.pod:1982
7528 #, no-wrap
7529 msgid ""
7530 " const char *\n"
7531 " guestfs_get_path (guestfs_h *g);\n"
7532 "\n"
7533 msgstr ""
7534
7535 # type: textblock
7536 #: ../src/guestfs-actions.pod:1985 ../fish/guestfish-actions.pod:1350
7537 msgid "Return the current search path."
7538 msgstr ""
7539
7540 # type: textblock
7541 #: ../src/guestfs-actions.pod:1987 ../fish/guestfish-actions.pod:1352
7542 msgid ""
7543 "This is always non-NULL.  If it wasn't set already, then this will return "
7544 "the default path."
7545 msgstr ""
7546
7547 # type: textblock
7548 #: ../src/guestfs-actions.pod:1990 ../src/guestfs-actions.pod:2019
7549 msgid ""
7550 "This function returns a string, or NULL on error.  The string is owned by "
7551 "the guest handle and must I<not> be freed."
7552 msgstr ""
7553
7554 # type: =head2
7555 #: ../src/guestfs-actions.pod:1995
7556 msgid "guestfs_get_pid"
7557 msgstr ""
7558
7559 # type: verbatim
7560 #: ../src/guestfs-actions.pod:1997
7561 #, no-wrap
7562 msgid ""
7563 " int\n"
7564 " guestfs_get_pid (guestfs_h *g);\n"
7565 "\n"
7566 msgstr ""
7567
7568 # type: textblock
7569 #: ../src/guestfs-actions.pod:2000 ../fish/guestfish-actions.pod:1361
7570 msgid ""
7571 "Return the process ID of the qemu subprocess.  If there is no qemu "
7572 "subprocess, then this will return an error."
7573 msgstr ""
7574
7575 # type: textblock
7576 #: ../src/guestfs-actions.pod:2003 ../fish/guestfish-actions.pod:1364
7577 msgid "This is an internal call used for debugging and testing."
7578 msgstr ""
7579
7580 # type: textblock
7581 #: ../src/guestfs-actions.pod:2007
7582 msgid "(Added in 1.0.56)"
7583 msgstr ""
7584
7585 # type: =head2
7586 #: ../src/guestfs-actions.pod:2009
7587 msgid "guestfs_get_qemu"
7588 msgstr ""
7589
7590 # type: verbatim
7591 #: ../src/guestfs-actions.pod:2011
7592 #, no-wrap
7593 msgid ""
7594 " const char *\n"
7595 " guestfs_get_qemu (guestfs_h *g);\n"
7596 "\n"
7597 msgstr ""
7598
7599 # type: textblock
7600 #: ../src/guestfs-actions.pod:2014 ../fish/guestfish-actions.pod:1370
7601 msgid "Return the current qemu binary."
7602 msgstr ""
7603
7604 # type: textblock
7605 #: ../src/guestfs-actions.pod:2016 ../fish/guestfish-actions.pod:1372
7606 msgid ""
7607 "This is always non-NULL.  If it wasn't set already, then this will return "
7608 "the default qemu binary name."
7609 msgstr ""
7610
7611 # type: textblock
7612 #: ../src/guestfs-actions.pod:2022 ../src/guestfs-actions.pod:5687
7613 msgid "(Added in 1.0.6)"
7614 msgstr ""
7615
7616 # type: =head2
7617 #: ../src/guestfs-actions.pod:2024
7618 msgid "guestfs_get_recovery_proc"
7619 msgstr ""
7620
7621 # type: verbatim
7622 #: ../src/guestfs-actions.pod:2026
7623 #, no-wrap
7624 msgid ""
7625 " int\n"
7626 " guestfs_get_recovery_proc (guestfs_h *g);\n"
7627 "\n"
7628 msgstr ""
7629
7630 # type: textblock
7631 #: ../src/guestfs-actions.pod:2029 ../fish/guestfish-actions.pod:1379
7632 msgid "Return the recovery process enabled flag."
7633 msgstr ""
7634
7635 # type: textblock
7636 #: ../src/guestfs-actions.pod:2033 ../src/guestfs-actions.pod:3259 ../src/guestfs-actions.pod:3554 ../src/guestfs-actions.pod:3954 ../src/guestfs-actions.pod:3986 ../src/guestfs-actions.pod:4991 ../src/guestfs-actions.pod:5334 ../src/guestfs-actions.pod:5711 ../src/guestfs-actions.pod:6370 ../src/guestfs-actions.pod:6390 ../src/guestfs-actions.pod:6582
7637 msgid "(Added in 1.0.77)"
7638 msgstr ""
7639
7640 # type: =head2
7641 #: ../src/guestfs-actions.pod:2035
7642 msgid "guestfs_get_selinux"
7643 msgstr ""
7644
7645 # type: verbatim
7646 #: ../src/guestfs-actions.pod:2037
7647 #, no-wrap
7648 msgid ""
7649 " int\n"
7650 " guestfs_get_selinux (guestfs_h *g);\n"
7651 "\n"
7652 msgstr ""
7653
7654 # type: textblock
7655 #: ../src/guestfs-actions.pod:2040
7656 msgid ""
7657 "This returns the current setting of the selinux flag which is passed to the "
7658 "appliance at boot time.  See C<guestfs_set_selinux>."
7659 msgstr ""
7660
7661 # type: textblock
7662 #: ../src/guestfs-actions.pod:2048 ../src/guestfs-actions.pod:2111 ../src/guestfs-actions.pod:5730 ../src/guestfs-actions.pod:5784
7663 msgid "(Added in 1.0.67)"
7664 msgstr ""
7665
7666 # type: =head2
7667 #: ../src/guestfs-actions.pod:2050
7668 msgid "guestfs_get_state"
7669 msgstr ""
7670
7671 # type: verbatim
7672 #: ../src/guestfs-actions.pod:2052
7673 #, no-wrap
7674 msgid ""
7675 " int\n"
7676 " guestfs_get_state (guestfs_h *g);\n"
7677 "\n"
7678 msgstr ""
7679
7680 # type: textblock
7681 #: ../src/guestfs-actions.pod:2055 ../fish/guestfish-actions.pod:1395
7682 msgid ""
7683 "This returns the current state as an opaque integer.  This is only useful "
7684 "for printing debug and internal error messages."
7685 msgstr ""
7686
7687 # type: textblock
7688 #: ../src/guestfs-actions.pod:2058 ../src/guestfs-actions.pod:3062 ../src/guestfs-actions.pod:3091 ../src/guestfs-actions.pod:3152 ../src/guestfs-actions.pod:3179 ../fish/guestfish-actions.pod:1398 ../fish/guestfish-actions.pod:2133 ../fish/guestfish-actions.pod:2151 ../fish/guestfish-actions.pod:2189 ../fish/guestfish-actions.pod:2205
7689 msgid "For more information on states, see L<guestfs(3)>."
7690 msgstr ""
7691
7692 # type: =head2
7693 #: ../src/guestfs-actions.pod:2064
7694 msgid "guestfs_get_trace"
7695 msgstr ""
7696
7697 # type: verbatim
7698 #: ../src/guestfs-actions.pod:2066
7699 #, no-wrap
7700 msgid ""
7701 " int\n"
7702 " guestfs_get_trace (guestfs_h *g);\n"
7703 "\n"
7704 msgstr ""
7705
7706 # type: textblock
7707 #: ../src/guestfs-actions.pod:2069 ../fish/guestfish-actions.pod:1404
7708 msgid "Return the command trace flag."
7709 msgstr ""
7710
7711 # type: =head2
7712 #: ../src/guestfs-actions.pod:2075
7713 msgid "guestfs_get_umask"
7714 msgstr ""
7715
7716 # type: verbatim
7717 #: ../src/guestfs-actions.pod:2077
7718 #, no-wrap
7719 msgid ""
7720 " int\n"
7721 " guestfs_get_umask (guestfs_h *g);\n"
7722 "\n"
7723 msgstr ""
7724
7725 # type: textblock
7726 #: ../src/guestfs-actions.pod:2080
7727 msgid ""
7728 "Return the current umask.  By default the umask is C<022> unless it has been "
7729 "set by calling C<guestfs_umask>."
7730 msgstr ""
7731
7732 # type: =head2
7733 #: ../src/guestfs-actions.pod:2087
7734 msgid "guestfs_get_verbose"
7735 msgstr ""
7736
7737 # type: verbatim
7738 #: ../src/guestfs-actions.pod:2089
7739 #, no-wrap
7740 msgid ""
7741 " int\n"
7742 " guestfs_get_verbose (guestfs_h *g);\n"
7743 "\n"
7744 msgstr ""
7745
7746 # type: textblock
7747 #: ../src/guestfs-actions.pod:2092 ../fish/guestfish-actions.pod:1417
7748 msgid "This returns the verbose messages flag."
7749 msgstr ""
7750
7751 # type: =head2
7752 #: ../src/guestfs-actions.pod:2098
7753 msgid "guestfs_getcon"
7754 msgstr ""
7755
7756 # type: verbatim
7757 #: ../src/guestfs-actions.pod:2100
7758 #, no-wrap
7759 msgid ""
7760 " char *\n"
7761 " guestfs_getcon (guestfs_h *g);\n"
7762 "\n"
7763 msgstr ""
7764
7765 # type: textblock
7766 #: ../src/guestfs-actions.pod:2103 ../fish/guestfish-actions.pod:1423
7767 msgid "This gets the SELinux security context of the daemon."
7768 msgstr ""
7769
7770 # type: textblock
7771 #: ../src/guestfs-actions.pod:2105
7772 msgid "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
7773 msgstr ""
7774
7775 # type: =head2
7776 #: ../src/guestfs-actions.pod:2113
7777 msgid "guestfs_getxattr"
7778 msgstr ""
7779
7780 # type: verbatim
7781 #: ../src/guestfs-actions.pod:2115
7782 #, no-wrap
7783 msgid ""
7784 " char *\n"
7785 " guestfs_getxattr (guestfs_h *g,\n"
7786 "                   const char *path,\n"
7787 "                   const char *name,\n"
7788 "                   size_t *size_r);\n"
7789 "\n"
7790 msgstr ""
7791
7792 # type: textblock
7793 #: ../src/guestfs-actions.pod:2121
7794 msgid ""
7795 "Get a single extended attribute from file C<path> named C<name>.  This call "
7796 "follows symlinks.  If you want to lookup an extended attribute for the "
7797 "symlink itself, use C<guestfs_lgetxattr>."
7798 msgstr ""
7799
7800 # type: textblock
7801 #: ../src/guestfs-actions.pod:2125 ../src/guestfs-actions.pod:3273
7802 msgid ""
7803 "Normally it is better to get all extended attributes from a file in one go "
7804 "by calling C<guestfs_getxattrs>.  However some Linux filesystem "
7805 "implementations are buggy and do not provide a way to list out attributes.  "
7806 "For these filesystems (notably ntfs-3g)  you have to know the names of the "
7807 "extended attributes you want in advance and call this function."
7808 msgstr ""
7809
7810 # type: textblock
7811 #: ../src/guestfs-actions.pod:2132 ../src/guestfs-actions.pod:3280 ../fish/guestfish-actions.pod:1443 ../fish/guestfish-actions.pod:2270
7812 msgid ""
7813 "Extended attribute values are blobs of binary data.  If there is no extended "
7814 "attribute named C<name>, this returns an error."
7815 msgstr ""
7816
7817 # type: textblock
7818 #: ../src/guestfs-actions.pod:2135
7819 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
7820 msgstr ""
7821
7822 # type: textblock
7823 #: ../src/guestfs-actions.pod:2137 ../src/guestfs-actions.pod:2326 ../src/guestfs-actions.pod:3285 ../src/guestfs-actions.pod:4984 ../src/guestfs-actions.pod:5010 ../src/guestfs-actions.pod:5191
7824 msgid ""
7825 "This function returns a buffer, or NULL on error.  The size of the returned "
7826 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
7827 "after use>."
7828 msgstr ""
7829
7830 # type: =head2
7831 #: ../src/guestfs-actions.pod:2141
7832 msgid "guestfs_getxattrs"
7833 msgstr ""
7834
7835 # type: verbatim
7836 #: ../src/guestfs-actions.pod:2143
7837 #, no-wrap
7838 msgid ""
7839 " struct guestfs_xattr_list *\n"
7840 " guestfs_getxattrs (guestfs_h *g,\n"
7841 "                    const char *path);\n"
7842 "\n"
7843 msgstr ""
7844
7845 # type: textblock
7846 #: ../src/guestfs-actions.pod:2147 ../fish/guestfish-actions.pod:1452
7847 msgid "This call lists the extended attributes of the file or directory C<path>."
7848 msgstr ""
7849
7850 # type: textblock
7851 #: ../src/guestfs-actions.pod:2150 ../fish/guestfish-actions.pod:1455
7852 msgid ""
7853 "At the system call level, this is a combination of the L<listxattr(2)> and "
7854 "L<getxattr(2)> calls."
7855 msgstr ""
7856
7857 # type: textblock
7858 #: ../src/guestfs-actions.pod:2153
7859 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
7860 msgstr ""
7861
7862 # type: textblock
7863 #: ../src/guestfs-actions.pod:2155 ../src/guestfs-actions.pod:3299 ../src/guestfs-actions.pod:3950
7864 msgid ""
7865 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
7866 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
7867 msgstr ""
7868
7869 # type: textblock
7870 #: ../src/guestfs-actions.pod:2159 ../src/guestfs-actions.pod:3303 ../src/guestfs-actions.pod:3468 ../src/guestfs-actions.pod:3504 ../src/guestfs-actions.pod:5364 ../src/guestfs-actions.pod:5803 ../src/guestfs-actions.pod:7138
7871 msgid "(Added in 1.0.59)"
7872 msgstr ""
7873
7874 # type: =head2
7875 #: ../src/guestfs-actions.pod:2161
7876 msgid "guestfs_glob_expand"
7877 msgstr ""
7878
7879 # type: verbatim
7880 #: ../src/guestfs-actions.pod:2163
7881 #, no-wrap
7882 msgid ""
7883 " char **\n"
7884 " guestfs_glob_expand (guestfs_h *g,\n"
7885 "                      const char *pattern);\n"
7886 "\n"
7887 msgstr ""
7888
7889 # type: textblock
7890 #: ../src/guestfs-actions.pod:2167 ../fish/guestfish-actions.pod:1464
7891 msgid ""
7892 "This command searches for all the pathnames matching C<pattern> according to "
7893 "the wildcard expansion rules used by the shell."
7894 msgstr ""
7895
7896 # type: textblock
7897 #: ../src/guestfs-actions.pod:2171 ../fish/guestfish-actions.pod:1468
7898 msgid "If no paths match, then this returns an empty list (note: not an error)."
7899 msgstr ""
7900
7901 # type: textblock
7902 #: ../src/guestfs-actions.pod:2174 ../fish/guestfish-actions.pod:1471
7903 msgid ""
7904 "It is just a wrapper around the C L<glob(3)> function with flags "
7905 "C<GLOB_MARK|GLOB_BRACE>.  See that manual page for more details."
7906 msgstr ""
7907
7908 # type: textblock
7909 #: ../src/guestfs-actions.pod:2182 ../src/guestfs-actions.pod:5968 ../src/guestfs-actions.pod:5985
7910 msgid "(Added in 1.0.50)"
7911 msgstr ""
7912
7913 # type: =head2
7914 #: ../src/guestfs-actions.pod:2184
7915 msgid "guestfs_grep"
7916 msgstr ""
7917
7918 # type: verbatim
7919 #: ../src/guestfs-actions.pod:2186
7920 #, no-wrap
7921 msgid ""
7922 " char **\n"
7923 " guestfs_grep (guestfs_h *g,\n"
7924 "               const char *regex,\n"
7925 "               const char *path);\n"
7926 "\n"
7927 msgstr ""
7928
7929 # type: textblock
7930 #: ../src/guestfs-actions.pod:2191 ../fish/guestfish-actions.pod:1479
7931 msgid "This calls the external C<grep> program and returns the matching lines."
7932 msgstr ""
7933
7934 # type: =head2
7935 #: ../src/guestfs-actions.pod:2203
7936 msgid "guestfs_grepi"
7937 msgstr ""
7938
7939 # type: verbatim
7940 #: ../src/guestfs-actions.pod:2205
7941 #, no-wrap
7942 msgid ""
7943 " char **\n"
7944 " guestfs_grepi (guestfs_h *g,\n"
7945 "                const char *regex,\n"
7946 "                const char *path);\n"
7947 "\n"
7948 msgstr ""
7949
7950 # type: textblock
7951 #: ../src/guestfs-actions.pod:2210 ../fish/guestfish-actions.pod:1489
7952 msgid "This calls the external C<grep -i> program and returns the matching lines."
7953 msgstr ""
7954
7955 # type: =head2
7956 #: ../src/guestfs-actions.pod:2222
7957 msgid "guestfs_grub_install"
7958 msgstr ""
7959
7960 # type: verbatim
7961 #: ../src/guestfs-actions.pod:2224
7962 #, no-wrap
7963 msgid ""
7964 " int\n"
7965 " guestfs_grub_install (guestfs_h *g,\n"
7966 "                       const char *root,\n"
7967 "                       const char *device);\n"
7968 "\n"
7969 msgstr ""
7970
7971 # type: textblock
7972 #: ../src/guestfs-actions.pod:2229 ../fish/guestfish-actions.pod:1499
7973 msgid ""
7974 "This command installs GRUB (the Grand Unified Bootloader) on C<device>, with "
7975 "the root directory being C<root>."
7976 msgstr ""
7977
7978 # type: textblock
7979 #: ../src/guestfs-actions.pod:2232 ../fish/guestfish-actions.pod:1502
7980 msgid ""
7981 "Note: If grub-install reports the error \"No suitable drive was found in the "
7982 "generated device map.\" it may be that you need to create a "
7983 "C</boot/grub/device.map> file first that contains the mapping between grub "
7984 "device names and Linux device names.  It is usually sufficient to create a "
7985 "file containing:"
7986 msgstr ""
7987
7988 # type: verbatim
7989 #: ../src/guestfs-actions.pod:2239 ../fish/guestfish-actions.pod:1509
7990 #, no-wrap
7991 msgid ""
7992 " (hd0) /dev/vda\n"
7993 "\n"
7994 msgstr ""
7995
7996 # type: textblock
7997 #: ../src/guestfs-actions.pod:2241 ../fish/guestfish-actions.pod:1511
7998 msgid "replacing C</dev/vda> with the name of the installation device."
7999 msgstr ""
8000
8001 # type: textblock
8002 #: ../src/guestfs-actions.pod:2245
8003 msgid "(Added in 1.0.17)"
8004 msgstr ""
8005
8006 # type: =head2
8007 #: ../src/guestfs-actions.pod:2247
8008 msgid "guestfs_head"
8009 msgstr ""
8010
8011 # type: verbatim
8012 #: ../src/guestfs-actions.pod:2249
8013 #, no-wrap
8014 msgid ""
8015 " char **\n"
8016 " guestfs_head (guestfs_h *g,\n"
8017 "               const char *path);\n"
8018 "\n"
8019 msgstr ""
8020
8021 # type: textblock
8022 #: ../src/guestfs-actions.pod:2253 ../fish/guestfish-actions.pod:1517
8023 msgid ""
8024 "This command returns up to the first 10 lines of a file as a list of "
8025 "strings."
8026 msgstr ""
8027
8028 # type: =head2
8029 #: ../src/guestfs-actions.pod:2265
8030 msgid "guestfs_head_n"
8031 msgstr ""
8032
8033 # type: verbatim
8034 #: ../src/guestfs-actions.pod:2267
8035 #, no-wrap
8036 msgid ""
8037 " char **\n"
8038 " guestfs_head_n (guestfs_h *g,\n"
8039 "                 int nrlines,\n"
8040 "                 const char *path);\n"
8041 "\n"
8042 msgstr ""
8043
8044 # type: textblock
8045 #: ../src/guestfs-actions.pod:2272 ../fish/guestfish-actions.pod:1527
8046 msgid ""
8047 "If the parameter C<nrlines> is a positive number, this returns the first "
8048 "C<nrlines> lines of the file C<path>."
8049 msgstr ""
8050
8051 # type: textblock
8052 #: ../src/guestfs-actions.pod:2275 ../fish/guestfish-actions.pod:1530
8053 msgid ""
8054 "If the parameter C<nrlines> is a negative number, this returns lines from "
8055 "the file C<path>, excluding the last C<nrlines> lines."
8056 msgstr ""
8057
8058 # type: textblock
8059 #: ../src/guestfs-actions.pod:2278 ../src/guestfs-actions.pod:6265 ../fish/guestfish-actions.pod:1533 ../fish/guestfish-actions.pod:4184
8060 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
8061 msgstr ""
8062
8063 # type: =head2
8064 #: ../src/guestfs-actions.pod:2289
8065 msgid "guestfs_hexdump"
8066 msgstr ""
8067
8068 # type: verbatim
8069 #: ../src/guestfs-actions.pod:2291
8070 #, no-wrap
8071 msgid ""
8072 " char *\n"
8073 " guestfs_hexdump (guestfs_h *g,\n"
8074 "                  const char *path);\n"
8075 "\n"
8076 msgstr ""
8077
8078 # type: textblock
8079 #: ../src/guestfs-actions.pod:2295 ../fish/guestfish-actions.pod:1542
8080 msgid ""
8081 "This runs C<hexdump -C> on the given C<path>.  The result is the "
8082 "human-readable, canonical hex dump of the file."
8083 msgstr ""
8084
8085 # type: textblock
8086 #: ../src/guestfs-actions.pod:2304 ../src/guestfs-actions.pod:6049 ../src/guestfs-actions.pod:6104
8087 msgid "(Added in 1.0.22)"
8088 msgstr ""
8089
8090 # type: =head2
8091 #: ../src/guestfs-actions.pod:2306
8092 msgid "guestfs_initrd_cat"
8093 msgstr ""
8094
8095 # type: verbatim
8096 #: ../src/guestfs-actions.pod:2308
8097 #, no-wrap
8098 msgid ""
8099 " char *\n"
8100 " guestfs_initrd_cat (guestfs_h *g,\n"
8101 "                     const char *initrdpath,\n"
8102 "                     const char *filename,\n"
8103 "                     size_t *size_r);\n"
8104 "\n"
8105 msgstr ""
8106
8107 # type: textblock
8108 #: ../src/guestfs-actions.pod:2314 ../fish/guestfish-actions.pod:1552
8109 msgid ""
8110 "This command unpacks the file C<filename> from the initrd file called "
8111 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
8112 "character."
8113 msgstr ""
8114
8115 # type: textblock
8116 #: ../src/guestfs-actions.pod:2318 ../fish/guestfish-actions.pod:1556
8117 msgid ""
8118 "For example, in guestfish you could use the following command to examine the "
8119 "boot script (usually called C</init>)  contained in a Linux initrd or "
8120 "initramfs image:"
8121 msgstr ""
8122
8123 # type: verbatim
8124 #: ../src/guestfs-actions.pod:2322 ../fish/guestfish-actions.pod:1560
8125 #, no-wrap
8126 msgid ""
8127 " initrd-cat /boot/initrd-<version>.img init\n"
8128 "\n"
8129 msgstr ""
8130
8131 # type: textblock
8132 #: ../src/guestfs-actions.pod:2324
8133 msgid "See also C<guestfs_initrd_list>."
8134 msgstr ""
8135
8136 # type: =head2
8137 #: ../src/guestfs-actions.pod:2335
8138 msgid "guestfs_initrd_list"
8139 msgstr ""
8140
8141 # type: verbatim
8142 #: ../src/guestfs-actions.pod:2337
8143 #, no-wrap
8144 msgid ""
8145 " char **\n"
8146 " guestfs_initrd_list (guestfs_h *g,\n"
8147 "                      const char *path);\n"
8148 "\n"
8149 msgstr ""
8150
8151 # type: textblock
8152 #: ../src/guestfs-actions.pod:2341 ../fish/guestfish-actions.pod:1571
8153 msgid "This command lists out files contained in an initrd."
8154 msgstr ""
8155
8156 # type: textblock
8157 #: ../src/guestfs-actions.pod:2343 ../fish/guestfish-actions.pod:1573
8158 msgid ""
8159 "The files are listed without any initial C</> character.  The files are "
8160 "listed in the order they appear (not necessarily alphabetical).  Directory "
8161 "names are listed as separate items."
8162 msgstr ""
8163
8164 # type: textblock
8165 #: ../src/guestfs-actions.pod:2347 ../fish/guestfish-actions.pod:1577
8166 msgid ""
8167 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
8168 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
8169 "files)."
8170 msgstr ""
8171
8172 # type: =head2
8173 #: ../src/guestfs-actions.pod:2357
8174 msgid "guestfs_inotify_add_watch"
8175 msgstr ""
8176
8177 # type: verbatim
8178 #: ../src/guestfs-actions.pod:2359
8179 #, no-wrap
8180 msgid ""
8181 " int64_t\n"
8182 " guestfs_inotify_add_watch (guestfs_h *g,\n"
8183 "                            const char *path,\n"
8184 "                            int mask);\n"
8185 "\n"
8186 msgstr ""
8187
8188 # type: textblock
8189 #: ../src/guestfs-actions.pod:2364 ../fish/guestfish-actions.pod:1585
8190 msgid "Watch C<path> for the events listed in C<mask>."
8191 msgstr ""
8192
8193 # type: textblock
8194 #: ../src/guestfs-actions.pod:2366 ../fish/guestfish-actions.pod:1587
8195 msgid ""
8196 "Note that if C<path> is a directory then events within that directory are "
8197 "watched, but this does I<not> happen recursively (in subdirectories)."
8198 msgstr ""
8199
8200 # type: textblock
8201 #: ../src/guestfs-actions.pod:2370 ../fish/guestfish-actions.pod:1591
8202 msgid ""
8203 "Note for non-C or non-Linux callers: the inotify events are defined by the "
8204 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
8205 msgstr ""
8206
8207 # type: =head2
8208 #: ../src/guestfs-actions.pod:2378
8209 msgid "guestfs_inotify_close"
8210 msgstr ""
8211
8212 # type: verbatim
8213 #: ../src/guestfs-actions.pod:2380
8214 #, no-wrap
8215 msgid ""
8216 " int\n"
8217 " guestfs_inotify_close (guestfs_h *g);\n"
8218 "\n"
8219 msgstr ""
8220
8221 # type: textblock
8222 #: ../src/guestfs-actions.pod:2383 ../fish/guestfish-actions.pod:1599
8223 msgid ""
8224 "This closes the inotify handle which was previously opened by inotify_init.  "
8225 "It removes all watches, throws away any pending events, and deallocates all "
8226 "resources."
8227 msgstr ""
8228
8229 # type: =head2
8230 #: ../src/guestfs-actions.pod:2391
8231 msgid "guestfs_inotify_files"
8232 msgstr ""
8233
8234 # type: verbatim
8235 #: ../src/guestfs-actions.pod:2393
8236 #, no-wrap
8237 msgid ""
8238 " char **\n"
8239 " guestfs_inotify_files (guestfs_h *g);\n"
8240 "\n"
8241 msgstr ""
8242
8243 # type: textblock
8244 #: ../src/guestfs-actions.pod:2396
8245 msgid ""
8246 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
8247 "returns a list of pathnames of objects that were touched.  The returned "
8248 "pathnames are sorted and deduplicated."
8249 msgstr ""
8250
8251 # type: =head2
8252 #: ../src/guestfs-actions.pod:2406
8253 msgid "guestfs_inotify_init"
8254 msgstr ""
8255
8256 # type: verbatim
8257 #: ../src/guestfs-actions.pod:2408
8258 #, no-wrap
8259 msgid ""
8260 " int\n"
8261 " guestfs_inotify_init (guestfs_h *g,\n"
8262 "                       int maxevents);\n"
8263 "\n"
8264 msgstr ""
8265
8266 # type: textblock
8267 #: ../src/guestfs-actions.pod:2412 ../fish/guestfish-actions.pod:1615
8268 msgid ""
8269 "This command creates a new inotify handle.  The inotify subsystem can be "
8270 "used to notify events which happen to objects in the guest filesystem."
8271 msgstr ""
8272
8273 # type: textblock
8274 #: ../src/guestfs-actions.pod:2416
8275 msgid ""
8276 "C<maxevents> is the maximum number of events which will be queued up between "
8277 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
8278 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
8279 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
8280 "throws away events, but records the fact that it threw them away by setting "
8281 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
8282 "C<guestfs_inotify_read>)."
8283 msgstr ""
8284
8285 # type: textblock
8286 #: ../src/guestfs-actions.pod:2426
8287 msgid ""
8288 "Before any events are generated, you have to add some watches to the "
8289 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
8290 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
8291 msgstr ""
8292
8293 # type: textblock
8294 #: ../src/guestfs-actions.pod:2432
8295 msgid ""
8296 "Queued up events should be read periodically by calling "
8297 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
8298 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
8299 "often enough then you risk the internal queue overflowing."
8300 msgstr ""
8301
8302 # type: textblock
8303 #: ../src/guestfs-actions.pod:2439
8304 msgid ""
8305 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
8306 "This also removes any watches automatically."
8307 msgstr ""
8308
8309 # type: textblock
8310 #: ../src/guestfs-actions.pod:2443 ../fish/guestfish-actions.pod:1646
8311 msgid ""
8312 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
8313 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
8314 "that there is one global inotify handle per libguestfs instance."
8315 msgstr ""
8316
8317 # type: =head2
8318 #: ../src/guestfs-actions.pod:2452
8319 msgid "guestfs_inotify_read"
8320 msgstr ""
8321
8322 # type: verbatim
8323 #: ../src/guestfs-actions.pod:2454
8324 #, no-wrap
8325 msgid ""
8326 " struct guestfs_inotify_event_list *\n"
8327 " guestfs_inotify_read (guestfs_h *g);\n"
8328 "\n"
8329 msgstr ""
8330
8331 # type: textblock
8332 #: ../src/guestfs-actions.pod:2457 ../fish/guestfish-actions.pod:1655
8333 msgid ""
8334 "Return the complete queue of events that have happened since the previous "
8335 "read call."
8336 msgstr ""
8337
8338 # type: textblock
8339 #: ../src/guestfs-actions.pod:2460 ../fish/guestfish-actions.pod:1658
8340 msgid "If no events have happened, this returns an empty list."
8341 msgstr ""
8342
8343 # type: textblock
8344 #: ../src/guestfs-actions.pod:2462 ../fish/guestfish-actions.pod:1660
8345 msgid ""
8346 "I<Note>: In order to make sure that all events have been read, you must call "
8347 "this function repeatedly until it returns an empty list.  The reason is that "
8348 "the call will read events up to the maximum appliance-to-host message size "
8349 "and leave remaining events in the queue."
8350 msgstr ""
8351
8352 # type: textblock
8353 #: ../src/guestfs-actions.pod:2468
8354 msgid ""
8355 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
8356 "there was an error.  I<The caller must call "
8357 "C<guestfs_free_inotify_event_list> after use>."
8358 msgstr ""
8359
8360 # type: =head2
8361 #: ../src/guestfs-actions.pod:2474
8362 msgid "guestfs_inotify_rm_watch"
8363 msgstr ""
8364
8365 # type: verbatim
8366 #: ../src/guestfs-actions.pod:2476
8367 #, no-wrap
8368 msgid ""
8369 " int\n"
8370 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
8371 "                           int wd);\n"
8372 "\n"
8373 msgstr ""
8374
8375 # type: textblock
8376 #: ../src/guestfs-actions.pod:2480
8377 msgid ""
8378 "Remove a previously defined inotify watch.  See "
8379 "C<guestfs_inotify_add_watch>."
8380 msgstr ""
8381
8382 # type: =head2
8383 #: ../src/guestfs-actions.pod:2487
8384 msgid "guestfs_inspect_get_arch"
8385 msgstr ""
8386
8387 # type: verbatim
8388 #: ../src/guestfs-actions.pod:2489
8389 #, no-wrap
8390 msgid ""
8391 " char *\n"
8392 " guestfs_inspect_get_arch (guestfs_h *g,\n"
8393 "                           const char *root);\n"
8394 "\n"
8395 msgstr ""
8396
8397 # type: textblock
8398 #: ../src/guestfs-actions.pod:2493 ../src/guestfs-actions.pod:2516 ../src/guestfs-actions.pod:2597 ../src/guestfs-actions.pod:2623 ../src/guestfs-actions.pod:2645 ../src/guestfs-actions.pod:2672 ../src/guestfs-actions.pod:2693 ../src/guestfs-actions.pod:2726 ../src/guestfs-actions.pod:2755 ../src/guestfs-actions.pod:2786 ../src/guestfs-actions.pod:2830 ../src/guestfs-actions.pod:2872 ../src/guestfs-actions.pod:2895
8399 msgid ""
8400 "This function should only be called with a root device string as returned by "
8401 "C<guestfs_inspect_os>."
8402 msgstr ""
8403
8404 # type: textblock
8405 #: ../src/guestfs-actions.pod:2496
8406 msgid ""
8407 "This returns the architecture of the inspected operating system.  The "
8408 "possible return values are listed under C<guestfs_file_architecture>."
8409 msgstr ""
8410
8411 # type: textblock
8412 #: ../src/guestfs-actions.pod:2500 ../fish/guestfish-actions.pod:1684
8413 msgid ""
8414 "If the architecture could not be determined, then the string C<unknown> is "
8415 "returned."
8416 msgstr ""
8417
8418 # type: textblock
8419 #: ../src/guestfs-actions.pod:2503 ../src/guestfs-actions.pod:2584 ../src/guestfs-actions.pod:2632 ../src/guestfs-actions.pod:2660 ../src/guestfs-actions.pod:2742 ../src/guestfs-actions.pod:2773 ../src/guestfs-actions.pod:2797 ../src/guestfs-actions.pod:2816 ../src/guestfs-actions.pod:2859 ../src/guestfs-actions.pod:2882 ../src/guestfs-actions.pod:2988 ../src/guestfs-actions.pod:3029 ../fish/guestfish-actions.pod:1687 ../fish/guestfish-actions.pod:1761 ../fish/guestfish-actions.pod:1794 ../fish/guestfish-actions.pod:1815 ../fish/guestfish-actions.pod:1875 ../fish/guestfish-actions.pod:1899 ../fish/guestfish-actions.pod:1916 ../fish/guestfish-actions.pod:1929 ../fish/guestfish-actions.pod:1964 ../fish/guestfish-actions.pod:1980 ../fish/guestfish-actions.pod:2079 ../fish/guestfish-actions.pod:2113
8420 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
8421 msgstr ""
8422
8423 # type: =head2
8424 #: ../src/guestfs-actions.pod:2510
8425 msgid "guestfs_inspect_get_distro"
8426 msgstr ""
8427
8428 # type: verbatim
8429 #: ../src/guestfs-actions.pod:2512
8430 #, no-wrap
8431 msgid ""
8432 " char *\n"
8433 " guestfs_inspect_get_distro (guestfs_h *g,\n"
8434 "                             const char *root);\n"
8435 "\n"
8436 msgstr ""
8437
8438 # type: textblock
8439 #: ../src/guestfs-actions.pod:2519 ../fish/guestfish-actions.pod:1696
8440 msgid "This returns the distro (distribution) of the inspected operating system."
8441 msgstr ""
8442
8443 # type: textblock
8444 #: ../src/guestfs-actions.pod:2522 ../fish/guestfish-actions.pod:1699
8445 msgid "Currently defined distros are:"
8446 msgstr ""
8447
8448 # type: =item
8449 #: ../src/guestfs-actions.pod:2526 ../fish/guestfish-actions.pod:1703
8450 msgid "\"archlinux\""
8451 msgstr ""
8452
8453 # type: textblock
8454 #: ../src/guestfs-actions.pod:2528 ../fish/guestfish-actions.pod:1705
8455 msgid "Arch Linux."
8456 msgstr ""
8457
8458 # type: =item
8459 #: ../src/guestfs-actions.pod:2530 ../fish/guestfish-actions.pod:1707
8460 msgid "\"debian\""
8461 msgstr ""
8462
8463 # type: textblock
8464 #: ../src/guestfs-actions.pod:2532 ../fish/guestfish-actions.pod:1709
8465 msgid "Debian."
8466 msgstr ""
8467
8468 # type: =item
8469 #: ../src/guestfs-actions.pod:2534 ../fish/guestfish-actions.pod:1711
8470 msgid "\"fedora\""
8471 msgstr ""
8472
8473 # type: textblock
8474 #: ../src/guestfs-actions.pod:2536 ../fish/guestfish-actions.pod:1713
8475 msgid "Fedora."
8476 msgstr ""
8477
8478 # type: =item
8479 #: ../src/guestfs-actions.pod:2538 ../fish/guestfish-actions.pod:1715
8480 msgid "\"gentoo\""
8481 msgstr ""
8482
8483 # type: textblock
8484 #: ../src/guestfs-actions.pod:2540 ../fish/guestfish-actions.pod:1717
8485 msgid "Gentoo."
8486 msgstr ""
8487
8488 # type: =item
8489 #: ../src/guestfs-actions.pod:2542 ../fish/guestfish-actions.pod:1719
8490 msgid "\"linuxmint\""
8491 msgstr ""
8492
8493 # type: textblock
8494 #: ../src/guestfs-actions.pod:2544 ../fish/guestfish-actions.pod:1721
8495 msgid "Linux Mint."
8496 msgstr ""
8497
8498 # type: =item
8499 #: ../src/guestfs-actions.pod:2546 ../fish/guestfish-actions.pod:1723
8500 msgid "\"mandriva\""
8501 msgstr ""
8502
8503 # type: textblock
8504 #: ../src/guestfs-actions.pod:2548 ../fish/guestfish-actions.pod:1725
8505 msgid "Mandriva."
8506 msgstr ""
8507
8508 # type: =item
8509 #: ../src/guestfs-actions.pod:2550 ../fish/guestfish-actions.pod:1727
8510 msgid "\"meego\""
8511 msgstr ""
8512
8513 # type: textblock
8514 #: ../src/guestfs-actions.pod:2552 ../fish/guestfish-actions.pod:1729
8515 msgid "MeeGo."
8516 msgstr ""
8517
8518 # type: =item
8519 #: ../src/guestfs-actions.pod:2554 ../fish/guestfish-actions.pod:1731
8520 msgid "\"pardus\""
8521 msgstr ""
8522
8523 # type: textblock
8524 #: ../src/guestfs-actions.pod:2556 ../fish/guestfish-actions.pod:1733
8525 msgid "Pardus."
8526 msgstr ""
8527
8528 # type: =item
8529 #: ../src/guestfs-actions.pod:2558 ../fish/guestfish-actions.pod:1735
8530 msgid "\"redhat-based\""
8531 msgstr ""
8532
8533 # type: textblock
8534 #: ../src/guestfs-actions.pod:2560 ../fish/guestfish-actions.pod:1737
8535 msgid "Some Red Hat-derived distro."
8536 msgstr ""
8537
8538 # type: =item
8539 #: ../src/guestfs-actions.pod:2562 ../fish/guestfish-actions.pod:1739
8540 msgid "\"rhel\""
8541 msgstr ""
8542
8543 # type: textblock
8544 #: ../src/guestfs-actions.pod:2564 ../fish/guestfish-actions.pod:1741
8545 msgid "Red Hat Enterprise Linux and some derivatives."
8546 msgstr ""
8547
8548 # type: =item
8549 #: ../src/guestfs-actions.pod:2566 ../fish/guestfish-actions.pod:1743
8550 msgid "\"ubuntu\""
8551 msgstr ""
8552
8553 # type: textblock
8554 #: ../src/guestfs-actions.pod:2568 ../fish/guestfish-actions.pod:1745
8555 msgid "Ubuntu."
8556 msgstr ""
8557
8558 # type: =item
8559 #: ../src/guestfs-actions.pod:2570 ../src/guestfs-actions.pod:2850 ../fish/guestfish-actions.pod:1747 ../fish/guestfish-actions.pod:1955
8560 msgid "\"unknown\""
8561 msgstr ""
8562
8563 # type: textblock
8564 #: ../src/guestfs-actions.pod:2572 ../fish/guestfish-actions.pod:1749
8565 msgid "The distro could not be determined."
8566 msgstr ""
8567
8568 # type: =item
8569 #: ../src/guestfs-actions.pod:2574 ../src/guestfs-actions.pod:2842 ../fish/guestfish-actions.pod:1751 ../fish/guestfish-actions.pod:1947
8570 msgid "\"windows\""
8571 msgstr ""
8572
8573 # type: textblock
8574 #: ../src/guestfs-actions.pod:2576 ../fish/guestfish-actions.pod:1753
8575 msgid ""
8576 "Windows does not have distributions.  This string is returned if the OS type "
8577 "is Windows."
8578 msgstr ""
8579
8580 # type: textblock
8581 #: ../src/guestfs-actions.pod:2581 ../src/guestfs-actions.pod:2856 ../fish/guestfish-actions.pod:1758 ../fish/guestfish-actions.pod:1961
8582 msgid ""
8583 "Future versions of libguestfs may return other strings here.  The caller "
8584 "should be prepared to handle any string."
8585 msgstr ""
8586
8587 # type: =head2
8588 #: ../src/guestfs-actions.pod:2591
8589 msgid "guestfs_inspect_get_filesystems"
8590 msgstr ""
8591
8592 # type: verbatim
8593 #: ../src/guestfs-actions.pod:2593
8594 #, no-wrap
8595 msgid ""
8596 " char **\n"
8597 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
8598 "                                  const char *root);\n"
8599 "\n"
8600 msgstr ""
8601
8602 # type: textblock
8603 #: ../src/guestfs-actions.pod:2600 ../fish/guestfish-actions.pod:1770
8604 msgid ""
8605 "This returns a list of all the filesystems that we think are associated with "
8606 "this operating system.  This includes the root filesystem, other ordinary "
8607 "filesystems, and non-mounted devices like swap partitions."
8608 msgstr ""
8609
8610 # type: textblock
8611 #: ../src/guestfs-actions.pod:2605 ../fish/guestfish-actions.pod:1775
8612 msgid ""
8613 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
8614 "to be shared between operating systems."
8615 msgstr ""
8616
8617 # type: textblock
8618 #: ../src/guestfs-actions.pod:2608
8619 msgid ""
8620 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
8621 "C<guestfs_inspect_get_mountpoints>."
8622 msgstr ""
8623
8624 # type: =head2
8625 #: ../src/guestfs-actions.pod:2617
8626 msgid "guestfs_inspect_get_hostname"
8627 msgstr ""
8628
8629 # type: verbatim
8630 #: ../src/guestfs-actions.pod:2619
8631 #, no-wrap
8632 msgid ""
8633 " char *\n"
8634 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
8635 "                               const char *root);\n"
8636 "\n"
8637 msgstr ""
8638
8639 # type: textblock
8640 #: ../src/guestfs-actions.pod:2626 ../fish/guestfish-actions.pod:1788
8641 msgid ""
8642 "This function returns the hostname of the operating system as found by "
8643 "inspection of the guest's configuration files."
8644 msgstr ""
8645
8646 # type: textblock
8647 #: ../src/guestfs-actions.pod:2629 ../fish/guestfish-actions.pod:1791
8648 msgid ""
8649 "If the hostname could not be determined, then the string C<unknown> is "
8650 "returned."
8651 msgstr ""
8652
8653 # type: textblock
8654 #: ../src/guestfs-actions.pod:2637
8655 msgid "(Added in 1.7.9)"
8656 msgstr ""
8657
8658 # type: =head2
8659 #: ../src/guestfs-actions.pod:2639
8660 msgid "guestfs_inspect_get_major_version"
8661 msgstr ""
8662
8663 # type: verbatim
8664 #: ../src/guestfs-actions.pod:2641
8665 #, no-wrap
8666 msgid ""
8667 " int\n"
8668 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
8669 "                                    const char *root);\n"
8670 "\n"
8671 msgstr ""
8672
8673 # type: textblock
8674 #: ../src/guestfs-actions.pod:2648 ../fish/guestfish-actions.pod:1803
8675 msgid "This returns the major version number of the inspected operating system."
8676 msgstr ""
8677
8678 # type: textblock
8679 #: ../src/guestfs-actions.pod:2651 ../fish/guestfish-actions.pod:1806
8680 msgid ""
8681 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
8682 "popular public names used by the operating system.  Notably the operating "
8683 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
8684 "1).  You can find out the real versions corresponding to releases of Windows "
8685 "by consulting Wikipedia or MSDN."
8686 msgstr ""
8687
8688 # type: textblock
8689 #: ../src/guestfs-actions.pod:2658 ../src/guestfs-actions.pod:2678 ../fish/guestfish-actions.pod:1813 ../fish/guestfish-actions.pod:1827
8690 msgid "If the version could not be determined, then C<0> is returned."
8691 msgstr ""
8692
8693 # type: =head2
8694 #: ../src/guestfs-actions.pod:2666
8695 msgid "guestfs_inspect_get_minor_version"
8696 msgstr ""
8697
8698 # type: verbatim
8699 #: ../src/guestfs-actions.pod:2668
8700 #, no-wrap
8701 msgid ""
8702 " int\n"
8703 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
8704 "                                    const char *root);\n"
8705 "\n"
8706 msgstr ""
8707
8708 # type: textblock
8709 #: ../src/guestfs-actions.pod:2675 ../fish/guestfish-actions.pod:1824
8710 msgid "This returns the minor version number of the inspected operating system."
8711 msgstr ""
8712
8713 # type: textblock
8714 #: ../src/guestfs-actions.pod:2680
8715 msgid ""
8716 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
8717 "C<guestfs_inspect_get_major_version>."
8718 msgstr ""
8719
8720 # type: =head2
8721 #: ../src/guestfs-actions.pod:2687
8722 msgid "guestfs_inspect_get_mountpoints"
8723 msgstr ""
8724
8725 # type: verbatim
8726 #: ../src/guestfs-actions.pod:2689
8727 #, no-wrap
8728 msgid ""
8729 " char **\n"
8730 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
8731 "                                  const char *root);\n"
8732 "\n"
8733 msgstr ""
8734
8735 # type: textblock
8736 #: ../src/guestfs-actions.pod:2696 ../fish/guestfish-actions.pod:1839
8737 msgid ""
8738 "This returns a hash of where we think the filesystems associated with this "
8739 "operating system should be mounted.  Callers should note that this is at "
8740 "best an educated guess made by reading configuration files such as "
8741 "C</etc/fstab>."
8742 msgstr ""
8743
8744 # type: textblock
8745 #: ../src/guestfs-actions.pod:2701 ../fish/guestfish-actions.pod:1844
8746 msgid ""
8747 "Each element in the returned hashtable has a key which is the path of the "
8748 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
8749 "mounted there (eg. C</dev/sda1>)."
8750 msgstr ""
8751
8752 # type: textblock
8753 #: ../src/guestfs-actions.pod:2706 ../fish/guestfish-actions.pod:1849
8754 msgid "Non-mounted devices such as swap devices are I<not> returned in this list."
8755 msgstr ""
8756
8757 # type: textblock
8758 #: ../src/guestfs-actions.pod:2709
8759 msgid ""
8760 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
8761 "C<guestfs_inspect_get_filesystems>."
8762 msgstr ""
8763
8764 # type: textblock
8765 #: ../src/guestfs-actions.pod:2712 ../src/guestfs-actions.pod:3356 ../src/guestfs-actions.pod:4550 ../src/guestfs-actions.pod:6406
8766 msgid ""
8767 "This function returns a NULL-terminated array of strings, or NULL if there "
8768 "was an error.  The array of strings will always have length C<2n+1>, where "
8769 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
8770 "caller must free the strings and the array after use>."
8771 msgstr ""
8772
8773 # type: =head2
8774 #: ../src/guestfs-actions.pod:2720
8775 msgid "guestfs_inspect_get_package_format"
8776 msgstr ""
8777
8778 # type: verbatim
8779 #: ../src/guestfs-actions.pod:2722
8780 #, no-wrap
8781 msgid ""
8782 " char *\n"
8783 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
8784 "                                     const char *root);\n"
8785 "\n"
8786 msgstr ""
8787
8788 # type: textblock
8789 #: ../src/guestfs-actions.pod:2729
8790 msgid ""
8791 "This function and C<guestfs_inspect_get_package_management> return the "
8792 "package format and package management tool used by the inspected operating "
8793 "system.  For example for Fedora these functions would return C<rpm> (package "
8794 "format) and C<yum> (package management)."
8795 msgstr ""
8796
8797 # type: textblock
8798 #: ../src/guestfs-actions.pod:2735 ../fish/guestfish-actions.pod:1868
8799 msgid ""
8800 "This returns the string C<unknown> if we could not determine the package "
8801 "format I<or> if the operating system does not have a real packaging system "
8802 "(eg. Windows)."
8803 msgstr ""
8804
8805 # type: textblock
8806 #: ../src/guestfs-actions.pod:2739 ../fish/guestfish-actions.pod:1872
8807 msgid ""
8808 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>.  "
8809 "Future versions of libguestfs may return other strings."
8810 msgstr ""
8811
8812 # type: textblock
8813 #: ../src/guestfs-actions.pod:2747 ../src/guestfs-actions.pod:2778
8814 msgid "(Added in 1.7.5)"
8815 msgstr ""
8816
8817 # type: =head2
8818 #: ../src/guestfs-actions.pod:2749
8819 msgid "guestfs_inspect_get_package_management"
8820 msgstr ""
8821
8822 # type: verbatim
8823 #: ../src/guestfs-actions.pod:2751
8824 #, no-wrap
8825 msgid ""
8826 " char *\n"
8827 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
8828 "                                         const char *root);\n"
8829 "\n"
8830 msgstr ""
8831
8832 # type: textblock
8833 #: ../src/guestfs-actions.pod:2758
8834 msgid ""
8835 "C<guestfs_inspect_get_package_format> and this function return the package "
8836 "format and package management tool used by the inspected operating system.  "
8837 "For example for Fedora these functions would return C<rpm> (package format) "
8838 "and C<yum> (package management)."
8839 msgstr ""
8840
8841 # type: textblock
8842 #: ../src/guestfs-actions.pod:2764 ../fish/guestfish-actions.pod:1890
8843 msgid ""
8844 "This returns the string C<unknown> if we could not determine the package "
8845 "management tool I<or> if the operating system does not have a real packaging "
8846 "system (eg. Windows)."
8847 msgstr ""
8848
8849 # type: textblock
8850 #: ../src/guestfs-actions.pod:2768 ../fish/guestfish-actions.pod:1894
8851 msgid ""
8852 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
8853 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>.  Future versions of "
8854 "libguestfs may return other strings."
8855 msgstr ""
8856
8857 # type: =head2
8858 #: ../src/guestfs-actions.pod:2780
8859 msgid "guestfs_inspect_get_product_name"
8860 msgstr ""
8861
8862 # type: verbatim
8863 #: ../src/guestfs-actions.pod:2782
8864 #, no-wrap
8865 msgid ""
8866 " char *\n"
8867 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
8868 "                                   const char *root);\n"
8869 "\n"
8870 msgstr ""
8871
8872 # type: textblock
8873 #: ../src/guestfs-actions.pod:2789 ../fish/guestfish-actions.pod:1908
8874 msgid ""
8875 "This returns the product name of the inspected operating system.  The "
8876 "product name is generally some freeform string which can be displayed to the "
8877 "user, but should not be parsed by programs."
8878 msgstr ""
8879
8880 # type: textblock
8881 #: ../src/guestfs-actions.pod:2794 ../fish/guestfish-actions.pod:1913
8882 msgid ""
8883 "If the product name could not be determined, then the string C<unknown> is "
8884 "returned."
8885 msgstr ""
8886
8887 # type: =head2
8888 #: ../src/guestfs-actions.pod:2804
8889 msgid "guestfs_inspect_get_roots"
8890 msgstr ""
8891
8892 # type: verbatim
8893 #: ../src/guestfs-actions.pod:2806
8894 #, no-wrap
8895 msgid ""
8896 " char **\n"
8897 " guestfs_inspect_get_roots (guestfs_h *g);\n"
8898 "\n"
8899 msgstr ""
8900
8901 # type: textblock
8902 #: ../src/guestfs-actions.pod:2809
8903 msgid ""
8904 "This function is a convenient way to get the list of root devices, as "
8905 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
8906 "the whole inspection process."
8907 msgstr ""
8908
8909 # type: textblock
8910 #: ../src/guestfs-actions.pod:2813
8911 msgid ""
8912 "This returns an empty list if either no root devices were found or the "
8913 "caller has not called C<guestfs_inspect_os>."
8914 msgstr ""
8915
8916 # type: textblock
8917 #: ../src/guestfs-actions.pod:2822
8918 msgid "(Added in 1.7.3)"
8919 msgstr ""
8920
8921 # type: =head2
8922 #: ../src/guestfs-actions.pod:2824
8923 msgid "guestfs_inspect_get_type"
8924 msgstr ""
8925
8926 # type: verbatim
8927 #: ../src/guestfs-actions.pod:2826
8928 #, no-wrap
8929 msgid ""
8930 " char *\n"
8931 " guestfs_inspect_get_type (guestfs_h *g,\n"
8932 "                           const char *root);\n"
8933 "\n"
8934 msgstr ""
8935
8936 # type: textblock
8937 #: ../src/guestfs-actions.pod:2833 ../fish/guestfish-actions.pod:1938
8938 msgid ""
8939 "This returns the type of the inspected operating system.  Currently defined "
8940 "types are:"
8941 msgstr ""
8942
8943 # type: =item
8944 #: ../src/guestfs-actions.pod:2838 ../fish/guestfish-actions.pod:1943
8945 msgid "\"linux\""
8946 msgstr ""
8947
8948 # type: textblock
8949 #: ../src/guestfs-actions.pod:2840 ../fish/guestfish-actions.pod:1945
8950 msgid "Any Linux-based operating system."
8951 msgstr ""
8952
8953 # type: textblock
8954 #: ../src/guestfs-actions.pod:2844 ../fish/guestfish-actions.pod:1949
8955 msgid "Any Microsoft Windows operating system."
8956 msgstr ""
8957
8958 # type: =item
8959 #: ../src/guestfs-actions.pod:2846 ../fish/guestfish-actions.pod:1951
8960 msgid "\"freebsd\""
8961 msgstr ""
8962
8963 # type: textblock
8964 #: ../src/guestfs-actions.pod:2848 ../fish/guestfish-actions.pod:1953
8965 msgid "FreeBSD."
8966 msgstr ""
8967
8968 # type: textblock
8969 #: ../src/guestfs-actions.pod:2852 ../fish/guestfish-actions.pod:1957
8970 msgid "The operating system type could not be determined."
8971 msgstr ""
8972
8973 # type: =head2
8974 #: ../src/guestfs-actions.pod:2866
8975 msgid "guestfs_inspect_get_windows_systemroot"
8976 msgstr ""
8977
8978 # type: verbatim
8979 #: ../src/guestfs-actions.pod:2868
8980 #, no-wrap
8981 msgid ""
8982 " char *\n"
8983 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
8984 "                                         const char *root);\n"
8985 "\n"
8986 msgstr ""
8987
8988 # type: textblock
8989 #: ../src/guestfs-actions.pod:2875 ../fish/guestfish-actions.pod:1973
8990 msgid ""
8991 "This returns the Windows systemroot of the inspected guest.  The systemroot "
8992 "is a directory path such as C</WINDOWS>."
8993 msgstr ""
8994
8995 # type: textblock
8996 #: ../src/guestfs-actions.pod:2878 ../fish/guestfish-actions.pod:1976
8997 msgid ""
8998 "This call assumes that the guest is Windows and that the systemroot could be "
8999 "determined by inspection.  If this is not the case then an error is "
9000 "returned."
9001 msgstr ""
9002
9003 # type: textblock
9004 #: ../src/guestfs-actions.pod:2887
9005 msgid "(Added in 1.5.25)"
9006 msgstr ""
9007
9008 # type: =head2
9009 #: ../src/guestfs-actions.pod:2889
9010 msgid "guestfs_inspect_list_applications"
9011 msgstr ""
9012
9013 # type: verbatim
9014 #: ../src/guestfs-actions.pod:2891
9015 #, no-wrap
9016 msgid ""
9017 " struct guestfs_application_list *\n"
9018 " guestfs_inspect_list_applications (guestfs_h *g,\n"
9019 "                                    const char *root);\n"
9020 "\n"
9021 msgstr ""
9022
9023 # type: textblock
9024 #: ../src/guestfs-actions.pod:2898 ../fish/guestfish-actions.pod:1989
9025 msgid "Return the list of applications installed in the operating system."
9026 msgstr ""
9027
9028 # type: textblock
9029 #: ../src/guestfs-actions.pod:2900
9030 msgid ""
9031 "I<Note:> This call works differently from other parts of the inspection "
9032 "API.  You have to call C<guestfs_inspect_os>, then "
9033 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
9034 "this.  Listing applications is a significantly more difficult operation "
9035 "which requires access to the full filesystem.  Also note that unlike the "
9036 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
9037 "the libguestfs handle, this call actually reads parts of the mounted "
9038 "filesystems during the call."
9039 msgstr ""
9040
9041 # type: textblock
9042 #: ../src/guestfs-actions.pod:2910 ../fish/guestfish-actions.pod:2001
9043 msgid ""
9044 "This returns an empty list if the inspection code was not able to determine "
9045 "the list of applications."
9046 msgstr ""
9047
9048 # type: textblock
9049 #: ../src/guestfs-actions.pod:2913 ../fish/guestfish-actions.pod:2004
9050 msgid "The application structure contains the following fields:"
9051 msgstr ""
9052
9053 # type: =item
9054 #: ../src/guestfs-actions.pod:2917 ../fish/guestfish-actions.pod:2008
9055 msgid "C<app_name>"
9056 msgstr ""
9057
9058 # type: textblock
9059 #: ../src/guestfs-actions.pod:2919 ../fish/guestfish-actions.pod:2010
9060 msgid ""
9061 "The name of the application.  For Red Hat-derived and Debian-derived Linux "
9062 "guests, this is the package name."
9063 msgstr ""
9064
9065 # type: =item
9066 #: ../src/guestfs-actions.pod:2922 ../fish/guestfish-actions.pod:2013
9067 msgid "C<app_display_name>"
9068 msgstr ""
9069
9070 # type: textblock
9071 #: ../src/guestfs-actions.pod:2924 ../fish/guestfish-actions.pod:2015
9072 msgid ""
9073 "The display name of the application, sometimes localized to the install "
9074 "language of the guest operating system."
9075 msgstr ""
9076
9077 # type: textblock
9078 #: ../src/guestfs-actions.pod:2927 ../fish/guestfish-actions.pod:2018
9079 msgid ""
9080 "If unavailable this is returned as an empty string C<\"\">.  Callers needing "
9081 "to display something can use C<app_name> instead."
9082 msgstr ""
9083
9084 # type: =item
9085 #: ../src/guestfs-actions.pod:2930 ../fish/guestfish-actions.pod:2021
9086 msgid "C<app_epoch>"
9087 msgstr ""
9088
9089 # type: textblock
9090 #: ../src/guestfs-actions.pod:2932 ../fish/guestfish-actions.pod:2023
9091 msgid ""
9092 "For package managers which use epochs, this contains the epoch of the "
9093 "package (an integer).  If unavailable, this is returned as C<0>."
9094 msgstr ""
9095
9096 # type: =item
9097 #: ../src/guestfs-actions.pod:2935 ../fish/guestfish-actions.pod:2026
9098 msgid "C<app_version>"
9099 msgstr ""
9100
9101 # type: textblock
9102 #: ../src/guestfs-actions.pod:2937 ../fish/guestfish-actions.pod:2028
9103 msgid ""
9104 "The version string of the application or package.  If unavailable this is "
9105 "returned as an empty string C<\"\">."
9106 msgstr ""
9107
9108 # type: =item
9109 #: ../src/guestfs-actions.pod:2940 ../fish/guestfish-actions.pod:2031
9110 msgid "C<app_release>"
9111 msgstr ""
9112
9113 # type: textblock
9114 #: ../src/guestfs-actions.pod:2942 ../fish/guestfish-actions.pod:2033
9115 msgid ""
9116 "The release string of the application or package, for package managers that "
9117 "use this.  If unavailable this is returned as an empty string C<\"\">."
9118 msgstr ""
9119
9120 # type: =item
9121 #: ../src/guestfs-actions.pod:2946 ../fish/guestfish-actions.pod:2037
9122 msgid "C<app_install_path>"
9123 msgstr ""
9124
9125 # type: textblock
9126 #: ../src/guestfs-actions.pod:2948 ../fish/guestfish-actions.pod:2039
9127 msgid ""
9128 "The installation path of the application (on operating systems such as "
9129 "Windows which use installation paths).  This path is in the format used by "
9130 "the guest operating system, it is not a libguestfs path."
9131 msgstr ""
9132
9133 # type: textblock
9134 #: ../src/guestfs-actions.pod:2953 ../fish/guestfish-actions.pod:2044
9135 msgid "If unavailable this is returned as an empty string C<\"\">."
9136 msgstr ""
9137
9138 # type: =item
9139 #: ../src/guestfs-actions.pod:2955 ../fish/guestfish-actions.pod:2046
9140 msgid "C<app_trans_path>"
9141 msgstr ""
9142
9143 # type: textblock
9144 #: ../src/guestfs-actions.pod:2957 ../fish/guestfish-actions.pod:2048
9145 msgid ""
9146 "The install path translated into a libguestfs path.  If unavailable this is "
9147 "returned as an empty string C<\"\">."
9148 msgstr ""
9149
9150 # type: =item
9151 #: ../src/guestfs-actions.pod:2960 ../fish/guestfish-actions.pod:2051
9152 msgid "C<app_publisher>"
9153 msgstr ""
9154
9155 # type: textblock
9156 #: ../src/guestfs-actions.pod:2962 ../fish/guestfish-actions.pod:2053
9157 msgid ""
9158 "The name of the publisher of the application, for package managers that use "
9159 "this.  If unavailable this is returned as an empty string C<\"\">."
9160 msgstr ""
9161
9162 # type: =item
9163 #: ../src/guestfs-actions.pod:2966 ../fish/guestfish-actions.pod:2057
9164 msgid "C<app_url>"
9165 msgstr ""
9166
9167 # type: textblock
9168 #: ../src/guestfs-actions.pod:2968 ../fish/guestfish-actions.pod:2059
9169 msgid ""
9170 "The URL (eg. upstream URL) of the application.  If unavailable this is "
9171 "returned as an empty string C<\"\">."
9172 msgstr ""
9173
9174 # type: =item
9175 #: ../src/guestfs-actions.pod:2971 ../fish/guestfish-actions.pod:2062
9176 msgid "C<app_source_package>"
9177 msgstr ""
9178
9179 # type: textblock
9180 #: ../src/guestfs-actions.pod:2973 ../fish/guestfish-actions.pod:2064
9181 msgid ""
9182 "For packaging systems which support this, the name of the source package.  "
9183 "If unavailable this is returned as an empty string C<\"\">."
9184 msgstr ""
9185
9186 # type: =item
9187 #: ../src/guestfs-actions.pod:2976 ../fish/guestfish-actions.pod:2067
9188 msgid "C<app_summary>"
9189 msgstr ""
9190
9191 # type: textblock
9192 #: ../src/guestfs-actions.pod:2978 ../fish/guestfish-actions.pod:2069
9193 msgid ""
9194 "A short (usually one line) description of the application or package.  If "
9195 "unavailable this is returned as an empty string C<\"\">."
9196 msgstr ""
9197
9198 # type: =item
9199 #: ../src/guestfs-actions.pod:2981 ../fish/guestfish-actions.pod:2072
9200 msgid "C<app_description>"
9201 msgstr ""
9202
9203 # type: textblock
9204 #: ../src/guestfs-actions.pod:2983 ../fish/guestfish-actions.pod:2074
9205 msgid ""
9206 "A longer description of the application or package.  If unavailable this is "
9207 "returned as an empty string C<\"\">."
9208 msgstr ""
9209
9210 # type: textblock
9211 #: ../src/guestfs-actions.pod:2990
9212 msgid ""
9213 "This function returns a C<struct guestfs_application_list *>, or NULL if "
9214 "there was an error.  I<The caller must call C<guestfs_free_application_list> "
9215 "after use>."
9216 msgstr ""
9217
9218 # type: textblock
9219 #: ../src/guestfs-actions.pod:2994
9220 msgid "(Added in 1.7.8)"
9221 msgstr ""
9222
9223 # type: =head2
9224 #: ../src/guestfs-actions.pod:2996
9225 msgid "guestfs_inspect_os"
9226 msgstr ""
9227
9228 # type: verbatim
9229 #: ../src/guestfs-actions.pod:2998
9230 #, no-wrap
9231 msgid ""
9232 " char **\n"
9233 " guestfs_inspect_os (guestfs_h *g);\n"
9234 "\n"
9235 msgstr ""
9236
9237 # type: textblock
9238 #: ../src/guestfs-actions.pod:3001 ../fish/guestfish-actions.pod:2085
9239 msgid ""
9240 "This function uses other libguestfs functions and certain heuristics to "
9241 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
9242 "for operating systems."
9243 msgstr ""
9244
9245 # type: textblock
9246 #: ../src/guestfs-actions.pod:3005 ../fish/guestfish-actions.pod:2089
9247 msgid "The list returned is empty if no operating systems were found."
9248 msgstr ""
9249
9250 # type: textblock
9251 #: ../src/guestfs-actions.pod:3007 ../fish/guestfish-actions.pod:2091
9252 msgid ""
9253 "If one operating system was found, then this returns a list with a single "
9254 "element, which is the name of the root filesystem of this operating system.  "
9255 "It is also possible for this function to return a list containing more than "
9256 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
9257 "element being the root filesystem of one of the operating systems."
9258 msgstr ""
9259
9260 # type: textblock
9261 #: ../src/guestfs-actions.pod:3014
9262 msgid ""
9263 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
9264 "functions in order to query further information about each operating system, "
9265 "such as the name and version."
9266 msgstr ""
9267
9268 # type: textblock
9269 #: ../src/guestfs-actions.pod:3019
9270 msgid ""
9271 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
9272 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
9273 "the contents.  This should be called with no disks currently mounted.  The "
9274 "function may also use Augeas, so any existing Augeas handle will be closed."
9275 msgstr ""
9276
9277 # type: textblock
9278 #: ../src/guestfs-actions.pod:3025 ../fish/guestfish-actions.pod:2109
9279 msgid ""
9280 "This function cannot decrypt encrypted disks.  The caller must do that first "
9281 "(supplying the necessary keys) if the disk is encrypted."
9282 msgstr ""
9283
9284 # type: textblock
9285 #: ../src/guestfs-actions.pod:3031 ../src/guestfs-actions.pod:3314 ../src/guestfs-actions.pod:3376
9286 msgid "See also C<guestfs_list_filesystems>."
9287 msgstr ""
9288
9289 # type: =head2
9290 #: ../src/guestfs-actions.pod:3039
9291 msgid "guestfs_is_blockdev"
9292 msgstr ""
9293
9294 # type: verbatim
9295 #: ../src/guestfs-actions.pod:3041
9296 #, no-wrap
9297 msgid ""
9298 " int\n"
9299 " guestfs_is_blockdev (guestfs_h *g,\n"
9300 "                      const char *path);\n"
9301 "\n"
9302 msgstr ""
9303
9304 # type: textblock
9305 #: ../src/guestfs-actions.pod:3045 ../fish/guestfish-actions.pod:2121
9306 msgid ""
9307 "This returns C<true> if and only if there is a block device with the given "
9308 "C<path> name."
9309 msgstr ""
9310
9311 # type: textblock
9312 #: ../src/guestfs-actions.pod:3048 ../src/guestfs-actions.pod:3077 ../src/guestfs-actions.pod:3107 ../src/guestfs-actions.pod:3122 ../src/guestfs-actions.pod:3138 ../src/guestfs-actions.pod:3194 ../src/guestfs-actions.pod:3209
9313 msgid "See also C<guestfs_stat>."
9314 msgstr ""
9315
9316 # type: textblock
9317 #: ../src/guestfs-actions.pod:3052 ../src/guestfs-actions.pod:3081 ../src/guestfs-actions.pod:3126 ../src/guestfs-actions.pod:3198 ../src/guestfs-actions.pod:3213
9318 msgid "(Added in 1.5.10)"
9319 msgstr ""
9320
9321 # type: =head2
9322 #: ../src/guestfs-actions.pod:3054
9323 msgid "guestfs_is_busy"
9324 msgstr ""
9325
9326 # type: verbatim
9327 #: ../src/guestfs-actions.pod:3056
9328 #, no-wrap
9329 msgid ""
9330 " int\n"
9331 " guestfs_is_busy (guestfs_h *g);\n"
9332 "\n"
9333 msgstr ""
9334
9335 # type: textblock
9336 #: ../src/guestfs-actions.pod:3059 ../fish/guestfish-actions.pod:2130
9337 msgid ""
9338 "This returns true iff this handle is busy processing a command (in the "
9339 "C<BUSY> state)."
9340 msgstr ""
9341
9342 # type: =head2
9343 #: ../src/guestfs-actions.pod:3068
9344 msgid "guestfs_is_chardev"
9345 msgstr ""
9346
9347 # type: verbatim
9348 #: ../src/guestfs-actions.pod:3070
9349 #, no-wrap
9350 msgid ""
9351 " int\n"
9352 " guestfs_is_chardev (guestfs_h *g,\n"
9353 "                     const char *path);\n"
9354 "\n"
9355 msgstr ""
9356
9357 # type: textblock
9358 #: ../src/guestfs-actions.pod:3074 ../fish/guestfish-actions.pod:2139
9359 msgid ""
9360 "This returns C<true> if and only if there is a character device with the "
9361 "given C<path> name."
9362 msgstr ""
9363
9364 # type: =head2
9365 #: ../src/guestfs-actions.pod:3083
9366 msgid "guestfs_is_config"
9367 msgstr ""
9368
9369 # type: verbatim
9370 #: ../src/guestfs-actions.pod:3085
9371 #, no-wrap
9372 msgid ""
9373 " int\n"
9374 " guestfs_is_config (guestfs_h *g);\n"
9375 "\n"
9376 msgstr ""
9377
9378 # type: textblock
9379 #: ../src/guestfs-actions.pod:3088 ../fish/guestfish-actions.pod:2148
9380 msgid ""
9381 "This returns true iff this handle is being configured (in the C<CONFIG> "
9382 "state)."
9383 msgstr ""
9384
9385 # type: =head2
9386 #: ../src/guestfs-actions.pod:3097
9387 msgid "guestfs_is_dir"
9388 msgstr ""
9389
9390 # type: verbatim
9391 #: ../src/guestfs-actions.pod:3099
9392 #, no-wrap
9393 msgid ""
9394 " int\n"
9395 " guestfs_is_dir (guestfs_h *g,\n"
9396 "                 const char *path);\n"
9397 "\n"
9398 msgstr ""
9399
9400 # type: textblock
9401 #: ../src/guestfs-actions.pod:3103 ../fish/guestfish-actions.pod:2157
9402 msgid ""
9403 "This returns C<true> if and only if there is a directory with the given "
9404 "C<path> name.  Note that it returns false for other objects like files."
9405 msgstr ""
9406
9407 # type: =head2
9408 #: ../src/guestfs-actions.pod:3113
9409 msgid "guestfs_is_fifo"
9410 msgstr ""
9411
9412 # type: verbatim
9413 #: ../src/guestfs-actions.pod:3115
9414 #, no-wrap
9415 msgid ""
9416 " int\n"
9417 " guestfs_is_fifo (guestfs_h *g,\n"
9418 "                  const char *path);\n"
9419 "\n"
9420 msgstr ""
9421
9422 # type: textblock
9423 #: ../src/guestfs-actions.pod:3119 ../fish/guestfish-actions.pod:2167
9424 msgid ""
9425 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
9426 "given C<path> name."
9427 msgstr ""
9428
9429 # type: =head2
9430 #: ../src/guestfs-actions.pod:3128
9431 msgid "guestfs_is_file"
9432 msgstr ""
9433
9434 # type: verbatim
9435 #: ../src/guestfs-actions.pod:3130
9436 #, no-wrap
9437 msgid ""
9438 " int\n"
9439 " guestfs_is_file (guestfs_h *g,\n"
9440 "                  const char *path);\n"
9441 "\n"
9442 msgstr ""
9443
9444 # type: textblock
9445 #: ../src/guestfs-actions.pod:3134 ../fish/guestfish-actions.pod:2176
9446 msgid ""
9447 "This returns C<true> if and only if there is a regular file with the given "
9448 "C<path> name.  Note that it returns false for other objects like "
9449 "directories."
9450 msgstr ""
9451
9452 # type: =head2
9453 #: ../src/guestfs-actions.pod:3144
9454 msgid "guestfs_is_launching"
9455 msgstr ""
9456
9457 # type: verbatim
9458 #: ../src/guestfs-actions.pod:3146
9459 #, no-wrap
9460 msgid ""
9461 " int\n"
9462 " guestfs_is_launching (guestfs_h *g);\n"
9463 "\n"
9464 msgstr ""
9465
9466 # type: textblock
9467 #: ../src/guestfs-actions.pod:3149 ../fish/guestfish-actions.pod:2186
9468 msgid ""
9469 "This returns true iff this handle is launching the subprocess (in the "
9470 "C<LAUNCHING> state)."
9471 msgstr ""
9472
9473 # type: =head2
9474 #: ../src/guestfs-actions.pod:3158
9475 msgid "guestfs_is_lv"
9476 msgstr ""
9477
9478 # type: verbatim
9479 #: ../src/guestfs-actions.pod:3160
9480 #, no-wrap
9481 msgid ""
9482 " int\n"
9483 " guestfs_is_lv (guestfs_h *g,\n"
9484 "                const char *device);\n"
9485 "\n"
9486 msgstr ""
9487
9488 # type: textblock
9489 #: ../src/guestfs-actions.pod:3164 ../fish/guestfish-actions.pod:2195
9490 msgid ""
9491 "This command tests whether C<device> is a logical volume, and returns true "
9492 "iff this is the case."
9493 msgstr ""
9494
9495 # type: =head2
9496 #: ../src/guestfs-actions.pod:3171
9497 msgid "guestfs_is_ready"
9498 msgstr ""
9499
9500 # type: verbatim
9501 #: ../src/guestfs-actions.pod:3173
9502 #, no-wrap
9503 msgid ""
9504 " int\n"
9505 " guestfs_is_ready (guestfs_h *g);\n"
9506 "\n"
9507 msgstr ""
9508
9509 # type: textblock
9510 #: ../src/guestfs-actions.pod:3176 ../fish/guestfish-actions.pod:2202
9511 msgid ""
9512 "This returns true iff this handle is ready to accept commands (in the "
9513 "C<READY> state)."
9514 msgstr ""
9515
9516 # type: =head2
9517 #: ../src/guestfs-actions.pod:3185
9518 msgid "guestfs_is_socket"
9519 msgstr ""
9520
9521 # type: verbatim
9522 #: ../src/guestfs-actions.pod:3187
9523 #, no-wrap
9524 msgid ""
9525 " int\n"
9526 " guestfs_is_socket (guestfs_h *g,\n"
9527 "                    const char *path);\n"
9528 "\n"
9529 msgstr ""
9530
9531 # type: textblock
9532 #: ../src/guestfs-actions.pod:3191 ../fish/guestfish-actions.pod:2211
9533 msgid ""
9534 "This returns C<true> if and only if there is a Unix domain socket with the "
9535 "given C<path> name."
9536 msgstr ""
9537
9538 # type: =head2
9539 #: ../src/guestfs-actions.pod:3200
9540 msgid "guestfs_is_symlink"
9541 msgstr ""
9542
9543 # type: verbatim
9544 #: ../src/guestfs-actions.pod:3202
9545 #, no-wrap
9546 msgid ""
9547 " int\n"
9548 " guestfs_is_symlink (guestfs_h *g,\n"
9549 "                     const char *path);\n"
9550 "\n"
9551 msgstr ""
9552
9553 # type: textblock
9554 #: ../src/guestfs-actions.pod:3206 ../fish/guestfish-actions.pod:2220
9555 msgid ""
9556 "This returns C<true> if and only if there is a symbolic link with the given "
9557 "C<path> name."
9558 msgstr ""
9559
9560 # type: =head2
9561 #: ../src/guestfs-actions.pod:3215
9562 msgid "guestfs_kill_subprocess"
9563 msgstr ""
9564
9565 # type: verbatim
9566 #: ../src/guestfs-actions.pod:3217
9567 #, no-wrap
9568 msgid ""
9569 " int\n"
9570 " guestfs_kill_subprocess (guestfs_h *g);\n"
9571 "\n"
9572 msgstr ""
9573
9574 # type: textblock
9575 #: ../src/guestfs-actions.pod:3220 ../fish/guestfish-actions.pod:2229
9576 msgid "This kills the qemu subprocess.  You should never need to call this."
9577 msgstr ""
9578
9579 # type: =head2
9580 #: ../src/guestfs-actions.pod:3226
9581 msgid "guestfs_launch"
9582 msgstr ""
9583
9584 # type: verbatim
9585 #: ../src/guestfs-actions.pod:3228
9586 #, no-wrap
9587 msgid ""
9588 " int\n"
9589 " guestfs_launch (guestfs_h *g);\n"
9590 "\n"
9591 msgstr ""
9592
9593 # type: textblock
9594 #: ../src/guestfs-actions.pod:3231 ../fish/guestfish-actions.pod:2237
9595 msgid ""
9596 "Internally libguestfs is implemented by running a virtual machine using "
9597 "L<qemu(1)>."
9598 msgstr ""
9599
9600 # type: textblock
9601 #: ../src/guestfs-actions.pod:3234 ../fish/guestfish-actions.pod:2240
9602 msgid ""
9603 "You should call this after configuring the handle (eg. adding drives) but "
9604 "before performing any actions."
9605 msgstr ""
9606
9607 # type: =head2
9608 #: ../src/guestfs-actions.pod:3241
9609 msgid "guestfs_lchown"
9610 msgstr ""
9611
9612 # type: verbatim
9613 #: ../src/guestfs-actions.pod:3243
9614 #, no-wrap
9615 msgid ""
9616 " int\n"
9617 " guestfs_lchown (guestfs_h *g,\n"
9618 "                 int owner,\n"
9619 "                 int group,\n"
9620 "                 const char *path);\n"
9621 "\n"
9622 msgstr ""
9623
9624 # type: textblock
9625 #: ../src/guestfs-actions.pod:3249
9626 msgid ""
9627 "Change the file owner to C<owner> and group to C<group>.  This is like "
9628 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
9629 "changed, not the target."
9630 msgstr ""
9631
9632 # type: =head2
9633 #: ../src/guestfs-actions.pod:3261
9634 msgid "guestfs_lgetxattr"
9635 msgstr ""
9636
9637 # type: verbatim
9638 #: ../src/guestfs-actions.pod:3263
9639 #, no-wrap
9640 msgid ""
9641 " char *\n"
9642 " guestfs_lgetxattr (guestfs_h *g,\n"
9643 "                    const char *path,\n"
9644 "                    const char *name,\n"
9645 "                    size_t *size_r);\n"
9646 "\n"
9647 msgstr ""
9648
9649 # type: textblock
9650 #: ../src/guestfs-actions.pod:3269 ../fish/guestfish-actions.pod:2259
9651 msgid ""
9652 "Get a single extended attribute from file C<path> named C<name>.  If C<path> "
9653 "is a symlink, then this call returns an extended attribute from the symlink."
9654 msgstr ""
9655
9656 # type: textblock
9657 #: ../src/guestfs-actions.pod:3283
9658 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
9659 msgstr ""
9660
9661 # type: =head2
9662 #: ../src/guestfs-actions.pod:3289
9663 msgid "guestfs_lgetxattrs"
9664 msgstr ""
9665
9666 # type: verbatim
9667 #: ../src/guestfs-actions.pod:3291
9668 #, no-wrap
9669 msgid ""
9670 " struct guestfs_xattr_list *\n"
9671 " guestfs_lgetxattrs (guestfs_h *g,\n"
9672 "                     const char *path);\n"
9673 "\n"
9674 msgstr ""
9675
9676 # type: textblock
9677 #: ../src/guestfs-actions.pod:3295
9678 msgid ""
9679 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
9680 "then it returns the extended attributes of the link itself."
9681 msgstr ""
9682
9683 # type: =head2
9684 #: ../src/guestfs-actions.pod:3305
9685 msgid "guestfs_list_devices"
9686 msgstr ""
9687
9688 # type: verbatim
9689 #: ../src/guestfs-actions.pod:3307
9690 #, no-wrap
9691 msgid ""
9692 " char **\n"
9693 " guestfs_list_devices (guestfs_h *g);\n"
9694 "\n"
9695 msgstr ""
9696
9697 # type: textblock
9698 #: ../src/guestfs-actions.pod:3310 ../fish/guestfish-actions.pod:2287
9699 msgid "List all the block devices."
9700 msgstr ""
9701
9702 # type: textblock
9703 #: ../src/guestfs-actions.pod:3312 ../fish/guestfish-actions.pod:2289
9704 msgid "The full block device names are returned, eg. C</dev/sda>."
9705 msgstr ""
9706
9707 # type: =head2
9708 #: ../src/guestfs-actions.pod:3322
9709 msgid "guestfs_list_filesystems"
9710 msgstr ""
9711
9712 # type: verbatim
9713 #: ../src/guestfs-actions.pod:3324
9714 #, no-wrap
9715 msgid ""
9716 " char **\n"
9717 " guestfs_list_filesystems (guestfs_h *g);\n"
9718 "\n"
9719 msgstr ""
9720
9721 # type: textblock
9722 #: ../src/guestfs-actions.pod:3327 ../fish/guestfish-actions.pod:2297
9723 msgid ""
9724 "This inspection command looks for filesystems on partitions, block devices "
9725 "and logical volumes, returning a list of devices containing filesystems and "
9726 "their type."
9727 msgstr ""
9728
9729 # type: textblock
9730 #: ../src/guestfs-actions.pod:3331 ../fish/guestfish-actions.pod:2301
9731 msgid ""
9732 "The return value is a hash, where the keys are the devices containing "
9733 "filesystems, and the values are the filesystem types.  For example:"
9734 msgstr ""
9735
9736 # type: verbatim
9737 #: ../src/guestfs-actions.pod:3335 ../fish/guestfish-actions.pod:2305
9738 #, no-wrap
9739 msgid ""
9740 " \"/dev/sda1\" => \"ntfs\"\n"
9741 " \"/dev/sda2\" => \"ext2\"\n"
9742 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
9743 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
9744 "\n"
9745 msgstr ""
9746
9747 # type: textblock
9748 #: ../src/guestfs-actions.pod:3340 ../fish/guestfish-actions.pod:2310
9749 msgid ""
9750 "The value can have the special value \"unknown\", meaning the content of the "
9751 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
9752 msgstr ""
9753
9754 # type: textblock
9755 #: ../src/guestfs-actions.pod:3344
9756 msgid ""
9757 "This command runs other libguestfs commands, which might include "
9758 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
9759 "soon after launch and only when nothing is mounted."
9760 msgstr ""
9761
9762 # type: textblock
9763 #: ../src/guestfs-actions.pod:3348
9764 msgid ""
9765 "Not all of the filesystems returned will be mountable.  In particular, swap "
9766 "partitions are returned in the list.  Also this command does not check that "
9767 "each filesystem found is valid and mountable, and some filesystems might be "
9768 "mountable but require special options.  Filesystems may not all belong to a "
9769 "single logical operating system (use C<guestfs_inspect_os> to look for "
9770 "OSes)."
9771 msgstr ""
9772
9773 # type: textblock
9774 #: ../src/guestfs-actions.pod:3362 ../src/guestfs-actions.pod:4951
9775 msgid "(Added in 1.5.15)"
9776 msgstr ""
9777
9778 # type: =head2
9779 #: ../src/guestfs-actions.pod:3364
9780 msgid "guestfs_list_partitions"
9781 msgstr ""
9782
9783 # type: verbatim
9784 #: ../src/guestfs-actions.pod:3366
9785 #, no-wrap
9786 msgid ""
9787 " char **\n"
9788 " guestfs_list_partitions (guestfs_h *g);\n"
9789 "\n"
9790 msgstr ""
9791
9792 # type: textblock
9793 #: ../src/guestfs-actions.pod:3369 ../fish/guestfish-actions.pod:2330
9794 msgid "List all the partitions detected on all block devices."
9795 msgstr ""
9796
9797 # type: textblock
9798 #: ../src/guestfs-actions.pod:3371 ../fish/guestfish-actions.pod:2332
9799 msgid "The full partition device names are returned, eg. C</dev/sda1>"
9800 msgstr ""
9801
9802 # type: textblock
9803 #: ../src/guestfs-actions.pod:3373
9804 msgid ""
9805 "This does not return logical volumes.  For that you will need to call "
9806 "C<guestfs_lvs>."
9807 msgstr ""
9808
9809 # type: =head2
9810 #: ../src/guestfs-actions.pod:3384
9811 msgid "guestfs_ll"
9812 msgstr ""
9813
9814 # type: verbatim
9815 #: ../src/guestfs-actions.pod:3386
9816 #, no-wrap
9817 msgid ""
9818 " char *\n"
9819 " guestfs_ll (guestfs_h *g,\n"
9820 "             const char *directory);\n"
9821 "\n"
9822 msgstr ""
9823
9824 # type: textblock
9825 #: ../src/guestfs-actions.pod:3390 ../fish/guestfish-actions.pod:2343
9826 msgid ""
9827 "List the files in C<directory> (relative to the root directory, there is no "
9828 "cwd) in the format of 'ls -la'."
9829 msgstr ""
9830
9831 # type: textblock
9832 #: ../src/guestfs-actions.pod:3393 ../fish/guestfish-actions.pod:2346
9833 msgid ""
9834 "This command is mostly useful for interactive sessions.  It is I<not> "
9835 "intended that you try to parse the output string."
9836 msgstr ""
9837
9838 # type: =head2
9839 #: ../src/guestfs-actions.pod:3401
9840 msgid "guestfs_ln"
9841 msgstr ""
9842
9843 # type: verbatim
9844 #: ../src/guestfs-actions.pod:3403
9845 #, no-wrap
9846 msgid ""
9847 " int\n"
9848 " guestfs_ln (guestfs_h *g,\n"
9849 "             const char *target,\n"
9850 "             const char *linkname);\n"
9851 "\n"
9852 msgstr ""
9853
9854 # type: textblock
9855 #: ../src/guestfs-actions.pod:3408 ../fish/guestfish-actions.pod:2353
9856 msgid "This command creates a hard link using the C<ln> command."
9857 msgstr ""
9858
9859 # type: =head2
9860 #: ../src/guestfs-actions.pod:3414
9861 msgid "guestfs_ln_f"
9862 msgstr ""
9863
9864 # type: verbatim
9865 #: ../src/guestfs-actions.pod:3416
9866 #, no-wrap
9867 msgid ""
9868 " int\n"
9869 " guestfs_ln_f (guestfs_h *g,\n"
9870 "               const char *target,\n"
9871 "               const char *linkname);\n"
9872 "\n"
9873 msgstr ""
9874
9875 # type: textblock
9876 #: ../src/guestfs-actions.pod:3421 ../fish/guestfish-actions.pod:2359
9877 msgid ""
9878 "This command creates a hard link using the C<ln -f> command.  The C<-f> "
9879 "option removes the link (C<linkname>) if it exists already."
9880 msgstr ""
9881
9882 # type: =head2
9883 #: ../src/guestfs-actions.pod:3428
9884 msgid "guestfs_ln_s"
9885 msgstr ""
9886
9887 # type: verbatim
9888 #: ../src/guestfs-actions.pod:3430
9889 #, no-wrap
9890 msgid ""
9891 " int\n"
9892 " guestfs_ln_s (guestfs_h *g,\n"
9893 "               const char *target,\n"
9894 "               const char *linkname);\n"
9895 "\n"
9896 msgstr ""
9897
9898 # type: textblock
9899 #: ../src/guestfs-actions.pod:3435 ../fish/guestfish-actions.pod:2366
9900 msgid "This command creates a symbolic link using the C<ln -s> command."
9901 msgstr ""
9902
9903 # type: =head2
9904 #: ../src/guestfs-actions.pod:3441
9905 msgid "guestfs_ln_sf"
9906 msgstr ""
9907
9908 # type: verbatim
9909 #: ../src/guestfs-actions.pod:3443
9910 #, no-wrap
9911 msgid ""
9912 " int\n"
9913 " guestfs_ln_sf (guestfs_h *g,\n"
9914 "                const char *target,\n"
9915 "                const char *linkname);\n"
9916 "\n"
9917 msgstr ""
9918
9919 # type: textblock
9920 #: ../src/guestfs-actions.pod:3448 ../fish/guestfish-actions.pod:2372
9921 msgid ""
9922 "This command creates a symbolic link using the C<ln -sf> command, The C<-f> "
9923 "option removes the link (C<linkname>) if it exists already."
9924 msgstr ""
9925
9926 # type: =head2
9927 #: ../src/guestfs-actions.pod:3455
9928 msgid "guestfs_lremovexattr"
9929 msgstr ""
9930
9931 # type: verbatim
9932 #: ../src/guestfs-actions.pod:3457
9933 #, no-wrap
9934 msgid ""
9935 " int\n"
9936 " guestfs_lremovexattr (guestfs_h *g,\n"
9937 "                       const char *xattr,\n"
9938 "                       const char *path);\n"
9939 "\n"
9940 msgstr ""
9941
9942 # type: textblock
9943 #: ../src/guestfs-actions.pod:3462
9944 msgid ""
9945 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
9946 "link, then it removes an extended attribute of the link itself."
9947 msgstr ""
9948
9949 # type: =head2
9950 #: ../src/guestfs-actions.pod:3470
9951 msgid "guestfs_ls"
9952 msgstr ""
9953
9954 # type: verbatim
9955 #: ../src/guestfs-actions.pod:3472
9956 #, no-wrap
9957 msgid ""
9958 " char **\n"
9959 " guestfs_ls (guestfs_h *g,\n"
9960 "             const char *directory);\n"
9961 "\n"
9962 msgstr ""
9963
9964 # type: textblock
9965 #: ../src/guestfs-actions.pod:3476 ../fish/guestfish-actions.pod:2387
9966 msgid ""
9967 "List the files in C<directory> (relative to the root directory, there is no "
9968 "cwd).  The '.' and '..' entries are not returned, but hidden files are "
9969 "shown."
9970 msgstr ""
9971
9972 # type: textblock
9973 #: ../src/guestfs-actions.pod:3480
9974 msgid ""
9975 "This command is mostly useful for interactive sessions.  Programs should "
9976 "probably use C<guestfs_readdir> instead."
9977 msgstr ""
9978
9979 # type: =head2
9980 #: ../src/guestfs-actions.pod:3489
9981 msgid "guestfs_lsetxattr"
9982 msgstr ""
9983
9984 # type: verbatim
9985 #: ../src/guestfs-actions.pod:3491
9986 #, no-wrap
9987 msgid ""
9988 " int\n"
9989 " guestfs_lsetxattr (guestfs_h *g,\n"
9990 "                    const char *xattr,\n"
9991 "                    const char *val,\n"
9992 "                    int vallen,\n"
9993 "                    const char *path);\n"
9994 "\n"
9995 msgstr ""
9996
9997 # type: textblock
9998 #: ../src/guestfs-actions.pod:3498
9999 msgid ""
10000 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
10001 "then it sets an extended attribute of the link itself."
10002 msgstr ""
10003
10004 # type: =head2
10005 #: ../src/guestfs-actions.pod:3506
10006 msgid "guestfs_lstat"
10007 msgstr ""
10008
10009 # type: verbatim
10010 #: ../src/guestfs-actions.pod:3508
10011 #, no-wrap
10012 msgid ""
10013 " struct guestfs_stat *\n"
10014 " guestfs_lstat (guestfs_h *g,\n"
10015 "                const char *path);\n"
10016 "\n"
10017 msgstr ""
10018
10019 # type: textblock
10020 #: ../src/guestfs-actions.pod:3512 ../src/guestfs-actions.pod:6005 ../fish/guestfish-actions.pod:2406 ../fish/guestfish-actions.pod:4019
10021 msgid "Returns file information for the given C<path>."
10022 msgstr ""
10023
10024 # type: textblock
10025 #: ../src/guestfs-actions.pod:3514
10026 msgid ""
10027 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
10028 "link, then the link is stat-ed, not the file it refers to."
10029 msgstr ""
10030
10031 # type: textblock
10032 #: ../src/guestfs-actions.pod:3518 ../fish/guestfish-actions.pod:2412
10033 msgid "This is the same as the C<lstat(2)> system call."
10034 msgstr ""
10035
10036 # type: textblock
10037 #: ../src/guestfs-actions.pod:3520 ../src/guestfs-actions.pod:6009
10038 msgid ""
10039 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
10040 "error.  I<The caller must call C<guestfs_free_stat> after use>."
10041 msgstr ""
10042
10043 # type: textblock
10044 #: ../src/guestfs-actions.pod:3524 ../src/guestfs-actions.pod:6013 ../src/guestfs-actions.pod:6031 ../src/guestfs-actions.pod:6412
10045 msgid "(Added in 0.9.2)"
10046 msgstr ""
10047
10048 # type: =head2
10049 #: ../src/guestfs-actions.pod:3526
10050 msgid "guestfs_lstatlist"
10051 msgstr ""
10052
10053 # type: verbatim
10054 #: ../src/guestfs-actions.pod:3528
10055 #, no-wrap
10056 msgid ""
10057 " struct guestfs_stat_list *\n"
10058 " guestfs_lstatlist (guestfs_h *g,\n"
10059 "                    const char *path,\n"
10060 "                    char *const *names);\n"
10061 "\n"
10062 msgstr ""
10063
10064 # type: textblock
10065 #: ../src/guestfs-actions.pod:3533
10066 msgid ""
10067 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
10068 "files, where all files are in the directory C<path>.  C<names> is the list "
10069 "of files from this directory."
10070 msgstr ""
10071
10072 # type: textblock
10073 #: ../src/guestfs-actions.pod:3537 ../fish/guestfish-actions.pod:2422
10074 msgid ""
10075 "On return you get a list of stat structs, with a one-to-one correspondence "
10076 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
10077 "then the C<ino> field of that structure is set to C<-1>."
10078 msgstr ""
10079
10080 # type: textblock
10081 #: ../src/guestfs-actions.pod:3542
10082 msgid ""
10083 "This call is intended for programs that want to efficiently list a directory "
10084 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
10085 "for a similarly efficient call for getting extended attributes.  Very long "
10086 "directory listings might cause the protocol message size to be exceeded, "
10087 "causing this call to fail.  The caller must split up such requests into "
10088 "smaller groups of names."
10089 msgstr ""
10090
10091 # type: textblock
10092 #: ../src/guestfs-actions.pod:3550
10093 msgid ""
10094 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
10095 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
10096 msgstr ""
10097
10098 # type: =head2
10099 #: ../src/guestfs-actions.pod:3556
10100 msgid "guestfs_luks_add_key"
10101 msgstr ""
10102
10103 # type: verbatim
10104 #: ../src/guestfs-actions.pod:3558
10105 #, no-wrap
10106 msgid ""
10107 " int\n"
10108 " guestfs_luks_add_key (guestfs_h *g,\n"
10109 "                       const char *device,\n"
10110 "                       const char *key,\n"
10111 "                       const char *newkey,\n"
10112 "                       int keyslot);\n"
10113 "\n"
10114 msgstr ""
10115
10116 # type: textblock
10117 #: ../src/guestfs-actions.pod:3565 ../fish/guestfish-actions.pod:2439
10118 msgid ""
10119 "This command adds a new key on LUKS device C<device>.  C<key> is any "
10120 "existing key, and is used to access the device.  C<newkey> is the new key to "
10121 "add.  C<keyslot> is the key slot that will be replaced."
10122 msgstr ""
10123
10124 # type: textblock
10125 #: ../src/guestfs-actions.pod:3570
10126 msgid ""
10127 "Note that if C<keyslot> already contains a key, then this command will "
10128 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
10129 msgstr ""
10130
10131 # type: textblock
10132 #: ../src/guestfs-actions.pod:3576 ../src/guestfs-actions.pod:3616 ../src/guestfs-actions.pod:3639 ../src/guestfs-actions.pod:3659 ../src/guestfs-actions.pod:3691 ../src/guestfs-actions.pod:3710
10133 msgid ""
10134 "This function takes a key or passphrase parameter which could contain "
10135 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
10136 "information."
10137 msgstr ""
10138
10139 # type: textblock
10140 #: ../src/guestfs-actions.pod:3580 ../src/guestfs-actions.pod:3620 ../src/guestfs-actions.pod:3643 ../src/guestfs-actions.pod:3663
10141 msgid "(Added in 1.5.2)"
10142 msgstr ""
10143
10144 # type: =head2
10145 #: ../src/guestfs-actions.pod:3582
10146 msgid "guestfs_luks_close"
10147 msgstr ""
10148
10149 # type: verbatim
10150 #: ../src/guestfs-actions.pod:3584
10151 #, no-wrap
10152 msgid ""
10153 " int\n"
10154 " guestfs_luks_close (guestfs_h *g,\n"
10155 "                     const char *device);\n"
10156 "\n"
10157 msgstr ""
10158
10159 # type: textblock
10160 #: ../src/guestfs-actions.pod:3588
10161 msgid ""
10162 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
10163 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
10164 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
10165 "underlying block device."
10166 msgstr ""
10167
10168 # type: textblock
10169 #: ../src/guestfs-actions.pod:3596 ../src/guestfs-actions.pod:3695 ../src/guestfs-actions.pod:3714 ../src/guestfs-actions.pod:3764 ../src/guestfs-actions.pod:3812
10170 msgid "(Added in 1.5.1)"
10171 msgstr ""
10172
10173 # type: =head2
10174 #: ../src/guestfs-actions.pod:3598
10175 msgid "guestfs_luks_format"
10176 msgstr ""
10177
10178 # type: verbatim
10179 #: ../src/guestfs-actions.pod:3600
10180 #, no-wrap
10181 msgid ""
10182 " int\n"
10183 " guestfs_luks_format (guestfs_h *g,\n"
10184 "                      const char *device,\n"
10185 "                      const char *key,\n"
10186 "                      int keyslot);\n"
10187 "\n"
10188 msgstr ""
10189
10190 # type: textblock
10191 #: ../src/guestfs-actions.pod:3606 ../fish/guestfish-actions.pod:2465
10192 msgid ""
10193 "This command erases existing data on C<device> and formats the device as a "
10194 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
10195 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
10196 msgstr ""
10197
10198 # type: textblock
10199 #: ../src/guestfs-actions.pod:3613 ../src/guestfs-actions.pod:3636 ../src/guestfs-actions.pod:3776 ../src/guestfs-actions.pod:4702 ../src/guestfs-actions.pod:5465 ../src/guestfs-actions.pod:5840 ../src/guestfs-actions.pod:5863 ../src/guestfs-actions.pod:5889 ../src/guestfs-actions.pod:7049 ../fish/guestfish-actions.pod:2473 ../fish/guestfish-actions.pod:2486 ../fish/guestfish-actions.pod:2570 ../fish/guestfish-actions.pod:3131 ../fish/guestfish-actions.pod:3638 ../fish/guestfish-actions.pod:3918 ../fish/guestfish-actions.pod:3934 ../fish/guestfish-actions.pod:3949 ../fish/guestfish-actions.pod:4664
10200 msgid ""
10201 "B<This command is dangerous.  Without careful use you can easily destroy all "
10202 "your data>."
10203 msgstr ""
10204
10205 # type: =head2
10206 #: ../src/guestfs-actions.pod:3622
10207 msgid "guestfs_luks_format_cipher"
10208 msgstr ""
10209
10210 # type: verbatim
10211 #: ../src/guestfs-actions.pod:3624
10212 #, no-wrap
10213 msgid ""
10214 " int\n"
10215 " guestfs_luks_format_cipher (guestfs_h *g,\n"
10216 "                             const char *device,\n"
10217 "                             const char *key,\n"
10218 "                             int keyslot,\n"
10219 "                             const char *cipher);\n"
10220 "\n"
10221 msgstr ""
10222
10223 # type: textblock
10224 #: ../src/guestfs-actions.pod:3631
10225 msgid ""
10226 "This command is the same as C<guestfs_luks_format> but it also allows you to "
10227 "set the C<cipher> used."
10228 msgstr ""
10229
10230 # type: =head2
10231 #: ../src/guestfs-actions.pod:3645
10232 msgid "guestfs_luks_kill_slot"
10233 msgstr ""
10234
10235 # type: verbatim
10236 #: ../src/guestfs-actions.pod:3647
10237 #, no-wrap
10238 msgid ""
10239 " int\n"
10240 " guestfs_luks_kill_slot (guestfs_h *g,\n"
10241 "                         const char *device,\n"
10242 "                         const char *key,\n"
10243 "                         int keyslot);\n"
10244 "\n"
10245 msgstr ""
10246
10247 # type: textblock
10248 #: ../src/guestfs-actions.pod:3653 ../fish/guestfish-actions.pod:2493
10249 msgid ""
10250 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
10251 "device C<device>.  C<key> must be one of the I<other> keys."
10252 msgstr ""
10253
10254 # type: =head2
10255 #: ../src/guestfs-actions.pod:3665
10256 msgid "guestfs_luks_open"
10257 msgstr ""
10258
10259 # type: verbatim
10260 #: ../src/guestfs-actions.pod:3667
10261 #, no-wrap
10262 msgid ""
10263 " int\n"
10264 " guestfs_luks_open (guestfs_h *g,\n"
10265 "                    const char *device,\n"
10266 "                    const char *key,\n"
10267 "                    const char *mapname);\n"
10268 "\n"
10269 msgstr ""
10270
10271 # type: textblock
10272 #: ../src/guestfs-actions.pod:3673 ../fish/guestfish-actions.pod:2504
10273 msgid ""
10274 "This command opens a block device which has been encrypted according to the "
10275 "Linux Unified Key Setup (LUKS) standard."
10276 msgstr ""
10277
10278 # type: textblock
10279 #: ../src/guestfs-actions.pod:3676 ../fish/guestfish-actions.pod:2507
10280 msgid "C<device> is the encrypted block device or partition."
10281 msgstr ""
10282
10283 # type: textblock
10284 #: ../src/guestfs-actions.pod:3678 ../fish/guestfish-actions.pod:2509
10285 msgid ""
10286 "The caller must supply one of the keys associated with the LUKS block "
10287 "device, in the C<key> parameter."
10288 msgstr ""
10289
10290 # type: textblock
10291 #: ../src/guestfs-actions.pod:3681 ../fish/guestfish-actions.pod:2512
10292 msgid ""
10293 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
10294 "writes to this block device are decrypted from and encrypted to the "
10295 "underlying C<device> respectively."
10296 msgstr ""
10297
10298 # type: textblock
10299 #: ../src/guestfs-actions.pod:3685
10300 msgid ""
10301 "If this block device contains LVM volume groups, then calling "
10302 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
10303 "visible."
10304 msgstr ""
10305
10306 # type: =head2
10307 #: ../src/guestfs-actions.pod:3697
10308 msgid "guestfs_luks_open_ro"
10309 msgstr ""
10310
10311 # type: verbatim
10312 #: ../src/guestfs-actions.pod:3699
10313 #, no-wrap
10314 msgid ""
10315 " int\n"
10316 " guestfs_luks_open_ro (guestfs_h *g,\n"
10317 "                       const char *device,\n"
10318 "                       const char *key,\n"
10319 "                       const char *mapname);\n"
10320 "\n"
10321 msgstr ""
10322
10323 # type: textblock
10324 #: ../src/guestfs-actions.pod:3705
10325 msgid ""
10326 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
10327 "created."
10328 msgstr ""
10329
10330 # type: =head2
10331 #: ../src/guestfs-actions.pod:3716
10332 msgid "guestfs_lvcreate"
10333 msgstr ""
10334
10335 # type: verbatim
10336 #: ../src/guestfs-actions.pod:3718
10337 #, no-wrap
10338 msgid ""
10339 " int\n"
10340 " guestfs_lvcreate (guestfs_h *g,\n"
10341 "                   const char *logvol,\n"
10342 "                   const char *volgroup,\n"
10343 "                   int mbytes);\n"
10344 "\n"
10345 msgstr ""
10346
10347 # type: textblock
10348 #: ../src/guestfs-actions.pod:3724 ../fish/guestfish-actions.pod:2537
10349 msgid ""
10350 "This creates an LVM logical volume called C<logvol> on the volume group "
10351 "C<volgroup>, with C<size> megabytes."
10352 msgstr ""
10353
10354 # type: =head2
10355 #: ../src/guestfs-actions.pod:3731
10356 msgid "guestfs_lvm_canonical_lv_name"
10357 msgstr ""
10358
10359 # type: verbatim
10360 #: ../src/guestfs-actions.pod:3733
10361 #, no-wrap
10362 msgid ""
10363 " char *\n"
10364 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
10365 "                                const char *lvname);\n"
10366 "\n"
10367 msgstr ""
10368
10369 # type: textblock
10370 #: ../src/guestfs-actions.pod:3737 ../fish/guestfish-actions.pod:2544
10371 msgid ""
10372 "This converts alternative naming schemes for LVs that you might find to the "
10373 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to "
10374 "C</dev/VG/LV>."
10375 msgstr ""
10376
10377 # type: textblock
10378 #: ../src/guestfs-actions.pod:3741 ../fish/guestfish-actions.pod:2548
10379 msgid ""
10380 "This command returns an error if the C<lvname> parameter does not refer to a "
10381 "logical volume."
10382 msgstr ""
10383
10384 # type: textblock
10385 #: ../src/guestfs-actions.pod:3744
10386 msgid "See also C<guestfs_is_lv>."
10387 msgstr ""
10388
10389 # type: textblock
10390 #: ../src/guestfs-actions.pod:3749
10391 msgid "(Added in 1.5.24)"
10392 msgstr ""
10393
10394 # type: =head2
10395 #: ../src/guestfs-actions.pod:3751
10396 msgid "guestfs_lvm_clear_filter"
10397 msgstr ""
10398
10399 # type: verbatim
10400 #: ../src/guestfs-actions.pod:3753
10401 #, no-wrap
10402 msgid ""
10403 " int\n"
10404 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
10405 "\n"
10406 msgstr ""
10407
10408 # type: textblock
10409 #: ../src/guestfs-actions.pod:3756
10410 msgid ""
10411 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
10412 "see every block device."
10413 msgstr ""
10414
10415 # type: textblock
10416 #: ../src/guestfs-actions.pod:3759 ../src/guestfs-actions.pod:3801 ../fish/guestfish-actions.pod:2560 ../fish/guestfish-actions.pod:2591
10417 msgid "This command also clears the LVM cache and performs a volume group scan."
10418 msgstr ""
10419
10420 # type: =head2
10421 #: ../src/guestfs-actions.pod:3766
10422 msgid "guestfs_lvm_remove_all"
10423 msgstr ""
10424
10425 # type: verbatim
10426 #: ../src/guestfs-actions.pod:3768
10427 #, no-wrap
10428 msgid ""
10429 " int\n"
10430 " guestfs_lvm_remove_all (guestfs_h *g);\n"
10431 "\n"
10432 msgstr ""
10433
10434 # type: textblock
10435 #: ../src/guestfs-actions.pod:3771 ../fish/guestfish-actions.pod:2567
10436 msgid ""
10437 "This command removes all LVM logical volumes, volume groups and physical "
10438 "volumes."
10439 msgstr ""
10440
10441 # type: =head2
10442 #: ../src/guestfs-actions.pod:3781
10443 msgid "guestfs_lvm_set_filter"
10444 msgstr ""
10445
10446 # type: verbatim
10447 #: ../src/guestfs-actions.pod:3783
10448 #, no-wrap
10449 msgid ""
10450 " int\n"
10451 " guestfs_lvm_set_filter (guestfs_h *g,\n"
10452 "                         char *const *devices);\n"
10453 "\n"
10454 msgstr ""
10455
10456 # type: textblock
10457 #: ../src/guestfs-actions.pod:3787 ../fish/guestfish-actions.pod:2577
10458 msgid ""
10459 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
10460 "block devices in the list C<devices>, and will ignore all other attached "
10461 "block devices."
10462 msgstr ""
10463
10464 # type: textblock
10465 #: ../src/guestfs-actions.pod:3791 ../fish/guestfish-actions.pod:2581
10466 msgid ""
10467 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
10468 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
10469 "there are two types of duplication possible: either cloned PVs/VGs which "
10470 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
10471 "same name.  In normal operation you cannot create this situation, but you "
10472 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
10473 "inside the LVM metadata."
10474 msgstr ""
10475
10476 # type: textblock
10477 #: ../src/guestfs-actions.pod:3804 ../fish/guestfish-actions.pod:2594
10478 msgid "You can filter whole block devices or individual partitions."
10479 msgstr ""
10480
10481 # type: textblock
10482 #: ../src/guestfs-actions.pod:3806 ../fish/guestfish-actions.pod:2596
10483 msgid ""
10484 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
10485 "filesystem), even if you are not filtering out that VG."
10486 msgstr ""
10487
10488 # type: =head2
10489 #: ../src/guestfs-actions.pod:3814
10490 msgid "guestfs_lvremove"
10491 msgstr ""
10492
10493 # type: verbatim
10494 #: ../src/guestfs-actions.pod:3816
10495 #, no-wrap
10496 msgid ""
10497 " int\n"
10498 " guestfs_lvremove (guestfs_h *g,\n"
10499 "                   const char *device);\n"
10500 "\n"
10501 msgstr ""
10502
10503 # type: textblock
10504 #: ../src/guestfs-actions.pod:3820 ../fish/guestfish-actions.pod:2604
10505 msgid ""
10506 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
10507 "LV, such as C</dev/VG/LV>."
10508 msgstr ""
10509
10510 # type: textblock
10511 #: ../src/guestfs-actions.pod:3823 ../fish/guestfish-actions.pod:2607
10512 msgid ""
10513 "You can also remove all LVs in a volume group by specifying the VG name, "
10514 "C</dev/VG>."
10515 msgstr ""
10516
10517 # type: textblock
10518 #: ../src/guestfs-actions.pod:3828 ../src/guestfs-actions.pod:5048 ../src/guestfs-actions.pod:6788
10519 msgid "(Added in 1.0.13)"
10520 msgstr ""
10521
10522 # type: =head2
10523 #: ../src/guestfs-actions.pod:3830
10524 msgid "guestfs_lvrename"
10525 msgstr ""
10526
10527 # type: verbatim
10528 #: ../src/guestfs-actions.pod:3832
10529 #, no-wrap
10530 msgid ""
10531 " int\n"
10532 " guestfs_lvrename (guestfs_h *g,\n"
10533 "                   const char *logvol,\n"
10534 "                   const char *newlogvol);\n"
10535 "\n"
10536 msgstr ""
10537
10538 # type: textblock
10539 #: ../src/guestfs-actions.pod:3837 ../fish/guestfish-actions.pod:2614
10540 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
10541 msgstr ""
10542
10543 # type: textblock
10544 #: ../src/guestfs-actions.pod:3841 ../src/guestfs-actions.pod:6801
10545 msgid "(Added in 1.0.83)"
10546 msgstr ""
10547
10548 # type: =head2
10549 #: ../src/guestfs-actions.pod:3843
10550 msgid "guestfs_lvresize"
10551 msgstr ""
10552
10553 # type: verbatim
10554 #: ../src/guestfs-actions.pod:3845
10555 #, no-wrap
10556 msgid ""
10557 " int\n"
10558 " guestfs_lvresize (guestfs_h *g,\n"
10559 "                   const char *device,\n"
10560 "                   int mbytes);\n"
10561 "\n"
10562 msgstr ""
10563
10564 # type: textblock
10565 #: ../src/guestfs-actions.pod:3850 ../fish/guestfish-actions.pod:2620
10566 msgid ""
10567 "This resizes (expands or shrinks) an existing LVM logical volume to "
10568 "C<mbytes>.  When reducing, data in the reduced part is lost."
10569 msgstr ""
10570
10571 # type: =head2
10572 #: ../src/guestfs-actions.pod:3858
10573 msgid "guestfs_lvresize_free"
10574 msgstr ""
10575
10576 # type: verbatim
10577 #: ../src/guestfs-actions.pod:3860
10578 #, no-wrap
10579 msgid ""
10580 " int\n"
10581 " guestfs_lvresize_free (guestfs_h *g,\n"
10582 "                        const char *lv,\n"
10583 "                        int percent);\n"
10584 "\n"
10585 msgstr ""
10586
10587 # type: textblock
10588 #: ../src/guestfs-actions.pod:3865 ../fish/guestfish-actions.pod:2628
10589 msgid ""
10590 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
10591 "remaining free space in the volume group.  Commonly you would call this with "
10592 "pc = 100 which expands the logical volume as much as possible, using all "
10593 "remaining free space in the volume group."
10594 msgstr ""
10595
10596 # type: textblock
10597 #: ../src/guestfs-actions.pod:3873
10598 msgid "(Added in 1.3.3)"
10599 msgstr ""
10600
10601 # type: =head2
10602 #: ../src/guestfs-actions.pod:3875
10603 msgid "guestfs_lvs"
10604 msgstr ""
10605
10606 # type: verbatim
10607 #: ../src/guestfs-actions.pod:3877
10608 #, no-wrap
10609 msgid ""
10610 " char **\n"
10611 " guestfs_lvs (guestfs_h *g);\n"
10612 "\n"
10613 msgstr ""
10614
10615 # type: textblock
10616 #: ../src/guestfs-actions.pod:3880 ../fish/guestfish-actions.pod:2638
10617 msgid ""
10618 "List all the logical volumes detected.  This is the equivalent of the "
10619 "L<lvs(8)> command."
10620 msgstr ""
10621
10622 # type: textblock
10623 #: ../src/guestfs-actions.pod:3883 ../fish/guestfish-actions.pod:2641
10624 msgid ""
10625 "This returns a list of the logical volume device names "
10626 "(eg. C</dev/VolGroup00/LogVol00>)."
10627 msgstr ""
10628
10629 # type: textblock
10630 #: ../src/guestfs-actions.pod:3886
10631 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
10632 msgstr ""
10633
10634 # type: =head2
10635 #: ../src/guestfs-actions.pod:3894
10636 msgid "guestfs_lvs_full"
10637 msgstr ""
10638
10639 # type: verbatim
10640 #: ../src/guestfs-actions.pod:3896
10641 #, no-wrap
10642 msgid ""
10643 " struct guestfs_lvm_lv_list *\n"
10644 " guestfs_lvs_full (guestfs_h *g);\n"
10645 "\n"
10646 msgstr ""
10647
10648 # type: textblock
10649 #: ../src/guestfs-actions.pod:3899 ../fish/guestfish-actions.pod:2650
10650 msgid ""
10651 "List all the logical volumes detected.  This is the equivalent of the "
10652 "L<lvs(8)> command.  The \"full\" version includes all fields."
10653 msgstr ""
10654
10655 # type: textblock
10656 #: ../src/guestfs-actions.pod:3902
10657 msgid ""
10658 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
10659 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after "
10660 "use>."
10661 msgstr ""
10662
10663 # type: =head2
10664 #: ../src/guestfs-actions.pod:3908
10665 msgid "guestfs_lvuuid"
10666 msgstr ""
10667
10668 # type: verbatim
10669 #: ../src/guestfs-actions.pod:3910
10670 #, no-wrap
10671 msgid ""
10672 " char *\n"
10673 " guestfs_lvuuid (guestfs_h *g,\n"
10674 "                 const char *device);\n"
10675 "\n"
10676 msgstr ""
10677
10678 # type: textblock
10679 #: ../src/guestfs-actions.pod:3914 ../fish/guestfish-actions.pod:2657
10680 msgid "This command returns the UUID of the LVM LV C<device>."
10681 msgstr ""
10682
10683 # type: =head2
10684 #: ../src/guestfs-actions.pod:3921
10685 msgid "guestfs_lxattrlist"
10686 msgstr ""
10687
10688 # type: verbatim
10689 #: ../src/guestfs-actions.pod:3923
10690 #, no-wrap
10691 msgid ""
10692 " struct guestfs_xattr_list *\n"
10693 " guestfs_lxattrlist (guestfs_h *g,\n"
10694 "                     const char *path,\n"
10695 "                     char *const *names);\n"
10696 "\n"
10697 msgstr ""
10698
10699 # type: textblock
10700 #: ../src/guestfs-actions.pod:3928 ../fish/guestfish-actions.pod:2663
10701 msgid ""
10702 "This call allows you to get the extended attributes of multiple files, where "
10703 "all files are in the directory C<path>.  C<names> is the list of files from "
10704 "this directory."
10705 msgstr ""
10706
10707 # type: textblock
10708 #: ../src/guestfs-actions.pod:3932 ../fish/guestfish-actions.pod:2667
10709 msgid ""
10710 "On return you get a flat list of xattr structs which must be interpreted "
10711 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
10712 "C<attrval> in this struct is zero-length to indicate there was an error "
10713 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
10714 "number (the number of following attributes for this file, which could be "
10715 "C<\"0\">).  Then after the first xattr struct are the zero or more "
10716 "attributes for the first named file.  This repeats for the second and "
10717 "subsequent files."
10718 msgstr ""
10719
10720 # type: textblock
10721 #: ../src/guestfs-actions.pod:3942
10722 msgid ""
10723 "This call is intended for programs that want to efficiently list a directory "
10724 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
10725 "a similarly efficient call for getting standard stats.  Very long directory "
10726 "listings might cause the protocol message size to be exceeded, causing this "
10727 "call to fail.  The caller must split up such requests into smaller groups of "
10728 "names."
10729 msgstr ""
10730
10731 # type: =head2
10732 #: ../src/guestfs-actions.pod:3956
10733 msgid "guestfs_mkdir"
10734 msgstr ""
10735
10736 # type: verbatim
10737 #: ../src/guestfs-actions.pod:3958
10738 #, no-wrap
10739 msgid ""
10740 " int\n"
10741 " guestfs_mkdir (guestfs_h *g,\n"
10742 "                const char *path);\n"
10743 "\n"
10744 msgstr ""
10745
10746 # type: textblock
10747 #: ../src/guestfs-actions.pod:3962 ../fish/guestfish-actions.pod:2689
10748 msgid "Create a directory named C<path>."
10749 msgstr ""
10750
10751 # type: =head2
10752 #: ../src/guestfs-actions.pod:3968
10753 msgid "guestfs_mkdir_mode"
10754 msgstr ""
10755
10756 # type: verbatim
10757 #: ../src/guestfs-actions.pod:3970
10758 #, no-wrap
10759 msgid ""
10760 " int\n"
10761 " guestfs_mkdir_mode (guestfs_h *g,\n"
10762 "                     const char *path,\n"
10763 "                     int mode);\n"
10764 "\n"
10765 msgstr ""
10766
10767 # type: textblock
10768 #: ../src/guestfs-actions.pod:3975 ../fish/guestfish-actions.pod:2695
10769 msgid ""
10770 "This command creates a directory, setting the initial permissions of the "
10771 "directory to C<mode>."
10772 msgstr ""
10773
10774 # type: textblock
10775 #: ../src/guestfs-actions.pod:3978 ../fish/guestfish-actions.pod:2698
10776 msgid ""
10777 "For common Linux filesystems, the actual mode which is set will be C<mode & "
10778 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
10779 "other ways."
10780 msgstr ""
10781
10782 # type: textblock
10783 #: ../src/guestfs-actions.pod:3982
10784 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
10785 msgstr ""
10786
10787 # type: =head2
10788 #: ../src/guestfs-actions.pod:3988
10789 msgid "guestfs_mkdir_p"
10790 msgstr ""
10791
10792 # type: verbatim
10793 #: ../src/guestfs-actions.pod:3990
10794 #, no-wrap
10795 msgid ""
10796 " int\n"
10797 " guestfs_mkdir_p (guestfs_h *g,\n"
10798 "                  const char *path);\n"
10799 "\n"
10800 msgstr ""
10801
10802 # type: textblock
10803 #: ../src/guestfs-actions.pod:3994 ../fish/guestfish-actions.pod:2708
10804 msgid ""
10805 "Create a directory named C<path>, creating any parent directories as "
10806 "necessary.  This is like the C<mkdir -p> shell command."
10807 msgstr ""
10808
10809 # type: =head2
10810 #: ../src/guestfs-actions.pod:4001
10811 msgid "guestfs_mkdtemp"
10812 msgstr ""
10813
10814 # type: verbatim
10815 #: ../src/guestfs-actions.pod:4003
10816 #, no-wrap
10817 msgid ""
10818 " char *\n"
10819 " guestfs_mkdtemp (guestfs_h *g,\n"
10820 "                  const char *template);\n"
10821 "\n"
10822 msgstr ""
10823
10824 # type: textblock
10825 #: ../src/guestfs-actions.pod:4007 ../fish/guestfish-actions.pod:2715
10826 msgid ""
10827 "This command creates a temporary directory.  The C<template> parameter "
10828 "should be a full pathname for the temporary directory name with the final "
10829 "six characters being \"XXXXXX\"."
10830 msgstr ""
10831
10832 # type: textblock
10833 #: ../src/guestfs-actions.pod:4012 ../fish/guestfish-actions.pod:2720
10834 msgid ""
10835 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
10836 "being suitable for Windows filesystems."
10837 msgstr ""
10838
10839 # type: textblock
10840 #: ../src/guestfs-actions.pod:4015 ../fish/guestfish-actions.pod:2723
10841 msgid "The name of the temporary directory that was created is returned."
10842 msgstr ""
10843
10844 # type: textblock
10845 #: ../src/guestfs-actions.pod:4018 ../fish/guestfish-actions.pod:2726
10846 msgid "The temporary directory is created with mode 0700 and is owned by root."
10847 msgstr ""
10848
10849 # type: textblock
10850 #: ../src/guestfs-actions.pod:4021 ../fish/guestfish-actions.pod:2729
10851 msgid ""
10852 "The caller is responsible for deleting the temporary directory and its "
10853 "contents after use."
10854 msgstr ""
10855
10856 # type: textblock
10857 #: ../src/guestfs-actions.pod:4024 ../fish/guestfish-actions.pod:2732
10858 msgid "See also: L<mkdtemp(3)>"
10859 msgstr ""
10860
10861 # type: =head2
10862 #: ../src/guestfs-actions.pod:4031
10863 msgid "guestfs_mke2fs_J"
10864 msgstr ""
10865
10866 # type: verbatim
10867 #: ../src/guestfs-actions.pod:4033
10868 #, no-wrap
10869 msgid ""
10870 " int\n"
10871 " guestfs_mke2fs_J (guestfs_h *g,\n"
10872 "                   const char *fstype,\n"
10873 "                   int blocksize,\n"
10874 "                   const char *device,\n"
10875 "                   const char *journal);\n"
10876 "\n"
10877 msgstr ""
10878
10879 # type: textblock
10880 #: ../src/guestfs-actions.pod:4040 ../fish/guestfish-actions.pod:2738
10881 msgid ""
10882 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
10883 "C<journal>.  It is equivalent to the command:"
10884 msgstr ""
10885
10886 # type: verbatim
10887 #: ../src/guestfs-actions.pod:4044 ../fish/guestfish-actions.pod:2742
10888 #, no-wrap
10889 msgid ""
10890 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
10891 "\n"
10892 msgstr ""
10893
10894 # type: textblock
10895 #: ../src/guestfs-actions.pod:4046
10896 msgid "See also C<guestfs_mke2journal>."
10897 msgstr ""
10898
10899 # type: textblock
10900 #: ../src/guestfs-actions.pod:4050 ../src/guestfs-actions.pod:4068 ../src/guestfs-actions.pod:4086 ../src/guestfs-actions.pod:4102 ../src/guestfs-actions.pod:4116 ../src/guestfs-actions.pod:4130 ../src/guestfs-actions.pod:4189 ../src/guestfs-actions.pod:4438
10901 msgid "(Added in 1.0.68)"
10902 msgstr ""
10903
10904 # type: =head2
10905 #: ../src/guestfs-actions.pod:4052
10906 msgid "guestfs_mke2fs_JL"
10907 msgstr ""
10908
10909 # type: verbatim
10910 #: ../src/guestfs-actions.pod:4054
10911 #, no-wrap
10912 msgid ""
10913 " int\n"
10914 " guestfs_mke2fs_JL (guestfs_h *g,\n"
10915 "                    const char *fstype,\n"
10916 "                    int blocksize,\n"
10917 "                    const char *device,\n"
10918 "                    const char *label);\n"
10919 "\n"
10920 msgstr ""
10921
10922 # type: textblock
10923 #: ../src/guestfs-actions.pod:4061 ../fish/guestfish-actions.pod:2750
10924 msgid ""
10925 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
10926 "the journal labeled C<label>."
10927 msgstr ""
10928
10929 # type: textblock
10930 #: ../src/guestfs-actions.pod:4064
10931 msgid "See also C<guestfs_mke2journal_L>."
10932 msgstr ""
10933
10934 # type: =head2
10935 #: ../src/guestfs-actions.pod:4070
10936 msgid "guestfs_mke2fs_JU"
10937 msgstr ""
10938
10939 # type: verbatim
10940 #: ../src/guestfs-actions.pod:4072
10941 #, no-wrap
10942 msgid ""
10943 " int\n"
10944 " guestfs_mke2fs_JU (guestfs_h *g,\n"
10945 "                    const char *fstype,\n"
10946 "                    int blocksize,\n"
10947 "                    const char *device,\n"
10948 "                    const char *uuid);\n"
10949 "\n"
10950 msgstr ""
10951
10952 # type: textblock
10953 #: ../src/guestfs-actions.pod:4079 ../fish/guestfish-actions.pod:2759
10954 msgid ""
10955 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
10956 "the journal with UUID C<uuid>."
10957 msgstr ""
10958
10959 # type: textblock
10960 #: ../src/guestfs-actions.pod:4082
10961 msgid "See also C<guestfs_mke2journal_U>."
10962 msgstr ""
10963
10964 # type: =head2
10965 #: ../src/guestfs-actions.pod:4088
10966 msgid "guestfs_mke2journal"
10967 msgstr ""
10968
10969 # type: verbatim
10970 #: ../src/guestfs-actions.pod:4090
10971 #, no-wrap
10972 msgid ""
10973 " int\n"
10974 " guestfs_mke2journal (guestfs_h *g,\n"
10975 "                      int blocksize,\n"
10976 "                      const char *device);\n"
10977 "\n"
10978 msgstr ""
10979
10980 # type: textblock
10981 #: ../src/guestfs-actions.pod:4095 ../fish/guestfish-actions.pod:2768
10982 msgid ""
10983 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
10984 "command:"
10985 msgstr ""
10986
10987 # type: verbatim
10988 #: ../src/guestfs-actions.pod:4098 ../fish/guestfish-actions.pod:2771
10989 #, no-wrap
10990 msgid ""
10991 " mke2fs -O journal_dev -b blocksize device\n"
10992 "\n"
10993 msgstr ""
10994
10995 # type: =head2
10996 #: ../src/guestfs-actions.pod:4104
10997 msgid "guestfs_mke2journal_L"
10998 msgstr ""
10999
11000 # type: verbatim
11001 #: ../src/guestfs-actions.pod:4106
11002 #, no-wrap
11003 msgid ""
11004 " int\n"
11005 " guestfs_mke2journal_L (guestfs_h *g,\n"
11006 "                        int blocksize,\n"
11007 "                        const char *label,\n"
11008 "                        const char *device);\n"
11009 "\n"
11010 msgstr ""
11011
11012 # type: textblock
11013 #: ../src/guestfs-actions.pod:4112 ../fish/guestfish-actions.pod:2777
11014 msgid "This creates an ext2 external journal on C<device> with label C<label>."
11015 msgstr ""
11016
11017 # type: =head2
11018 #: ../src/guestfs-actions.pod:4118
11019 msgid "guestfs_mke2journal_U"
11020 msgstr ""
11021
11022 # type: verbatim
11023 #: ../src/guestfs-actions.pod:4120
11024 #, no-wrap
11025 msgid ""
11026 " int\n"
11027 " guestfs_mke2journal_U (guestfs_h *g,\n"
11028 "                        int blocksize,\n"
11029 "                        const char *uuid,\n"
11030 "                        const char *device);\n"
11031 "\n"
11032 msgstr ""
11033
11034 # type: textblock
11035 #: ../src/guestfs-actions.pod:4126 ../fish/guestfish-actions.pod:2783
11036 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
11037 msgstr ""
11038
11039 # type: =head2
11040 #: ../src/guestfs-actions.pod:4132
11041 msgid "guestfs_mkfifo"
11042 msgstr ""
11043
11044 # type: verbatim
11045 #: ../src/guestfs-actions.pod:4134
11046 #, no-wrap
11047 msgid ""
11048 " int\n"
11049 " guestfs_mkfifo (guestfs_h *g,\n"
11050 "                 int mode,\n"
11051 "                 const char *path);\n"
11052 "\n"
11053 msgstr ""
11054
11055 # type: textblock
11056 #: ../src/guestfs-actions.pod:4139
11057 msgid ""
11058 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
11059 "is just a convenient wrapper around C<guestfs_mknod>."
11060 msgstr ""
11061
11062 # type: =head2
11063 #: ../src/guestfs-actions.pod:4149
11064 msgid "guestfs_mkfs"
11065 msgstr ""
11066
11067 # type: verbatim
11068 #: ../src/guestfs-actions.pod:4151
11069 #, no-wrap
11070 msgid ""
11071 " int\n"
11072 " guestfs_mkfs (guestfs_h *g,\n"
11073 "               const char *fstype,\n"
11074 "               const char *device);\n"
11075 "\n"
11076 msgstr ""
11077
11078 # type: textblock
11079 #: ../src/guestfs-actions.pod:4156 ../fish/guestfish-actions.pod:2799
11080 msgid ""
11081 "This creates a filesystem on C<device> (usually a partition or LVM logical "
11082 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
11083 msgstr ""
11084
11085 # type: =head2
11086 #: ../src/guestfs-actions.pod:4164
11087 msgid "guestfs_mkfs_b"
11088 msgstr ""
11089
11090 # type: verbatim
11091 #: ../src/guestfs-actions.pod:4166
11092 #, no-wrap
11093 msgid ""
11094 " int\n"
11095 " guestfs_mkfs_b (guestfs_h *g,\n"
11096 "                 const char *fstype,\n"
11097 "                 int blocksize,\n"
11098 "                 const char *device);\n"
11099 "\n"
11100 msgstr ""
11101
11102 # type: textblock
11103 #: ../src/guestfs-actions.pod:4172
11104 msgid ""
11105 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
11106 "block size of the resulting filesystem.  Supported block sizes depend on the "
11107 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
11108 msgstr ""
11109
11110 # type: textblock
11111 #: ../src/guestfs-actions.pod:4177 ../src/guestfs-actions.pod:4219 ../fish/guestfish-actions.pod:2812 ../fish/guestfish-actions.pod:2839
11112 msgid ""
11113 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
11114 "cluster size."
11115 msgstr ""
11116
11117 # type: textblock
11118 #: ../src/guestfs-actions.pod:4182 ../fish/guestfish-actions.pod:2815
11119 msgid ""
11120 "This function is deprecated.  In new code, use the C<mkfs_opts> call "
11121 "instead."
11122 msgstr ""
11123
11124 # type: =head2
11125 #: ../src/guestfs-actions.pod:4191
11126 msgid "guestfs_mkfs_opts"
11127 msgstr ""
11128
11129 # type: verbatim
11130 #: ../src/guestfs-actions.pod:4193
11131 #, no-wrap
11132 msgid ""
11133 " int\n"
11134 " guestfs_mkfs_opts (guestfs_h *g,\n"
11135 "                    const char *fstype,\n"
11136 "                    const char *device,\n"
11137 "                    ...);\n"
11138 "\n"
11139 msgstr ""
11140
11141 # type: verbatim
11142 #: ../src/guestfs-actions.pod:4204
11143 #, no-wrap
11144 msgid ""
11145 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
11146 "\n"
11147 msgstr ""
11148
11149 # type: textblock
11150 #: ../src/guestfs-actions.pod:4206 ../fish/guestfish-actions.pod:2826
11151 msgid ""
11152 "This function creates a filesystem on C<device>.  The filesystem type is "
11153 "C<fstype>, for example C<ext3>."
11154 msgstr ""
11155
11156 # type: =item
11157 #: ../src/guestfs-actions.pod:4213 ../fish/guestfish-actions.pod:2833
11158 msgid "C<blocksize>"
11159 msgstr ""
11160
11161 # type: textblock
11162 #: ../src/guestfs-actions.pod:4215 ../fish/guestfish-actions.pod:2835
11163 msgid ""
11164 "The filesystem block size.  Supported block sizes depend on the filesystem "
11165 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
11166 "filesystems."
11167 msgstr ""
11168
11169 # type: =head2
11170 #: ../src/guestfs-actions.pod:4226
11171 msgid "guestfs_mkfs_opts_va"
11172 msgstr ""
11173
11174 # type: verbatim
11175 #: ../src/guestfs-actions.pod:4228
11176 #, no-wrap
11177 msgid ""
11178 " int\n"
11179 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
11180 "                       const char *fstype,\n"
11181 "                       const char *device,\n"
11182 "                       va_list args);\n"
11183 "\n"
11184 msgstr ""
11185
11186 # type: textblock
11187 #: ../src/guestfs-actions.pod:4234
11188 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
11189 msgstr ""
11190
11191 # type: =head2
11192 #: ../src/guestfs-actions.pod:4238
11193 msgid "guestfs_mkfs_opts_argv"
11194 msgstr ""
11195
11196 # type: verbatim
11197 #: ../src/guestfs-actions.pod:4240
11198 #, no-wrap
11199 msgid ""
11200 " int\n"
11201 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
11202 "                         const char *fstype,\n"
11203 "                         const char *device,\n"
11204 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
11205 "\n"
11206 msgstr ""
11207
11208 # type: textblock
11209 #: ../src/guestfs-actions.pod:4246
11210 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
11211 msgstr ""
11212
11213 # type: =head2
11214 #: ../src/guestfs-actions.pod:4250
11215 msgid "guestfs_mkmountpoint"
11216 msgstr ""
11217
11218 # type: verbatim
11219 #: ../src/guestfs-actions.pod:4252
11220 #, no-wrap
11221 msgid ""
11222 " int\n"
11223 " guestfs_mkmountpoint (guestfs_h *g,\n"
11224 "                       const char *exemptpath);\n"
11225 "\n"
11226 msgstr ""
11227
11228 # type: textblock
11229 #: ../src/guestfs-actions.pod:4256
11230 msgid ""
11231 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
11232 "that can be used to create extra mountpoints before mounting the first "
11233 "filesystem."
11234 msgstr ""
11235
11236 # type: textblock
11237 #: ../src/guestfs-actions.pod:4260 ../fish/guestfish-actions.pod:2854
11238 msgid ""
11239 "These calls are I<only> necessary in some very limited circumstances, mainly "
11240 "the case where you want to mount a mix of unrelated and/or read-only "
11241 "filesystems together."
11242 msgstr ""
11243
11244 # type: textblock
11245 #: ../src/guestfs-actions.pod:4264 ../fish/guestfish-actions.pod:2858
11246 msgid ""
11247 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
11248 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
11249 "inside that.  You can unpack this as follows in guestfish:"
11250 msgstr ""
11251
11252 # type: verbatim
11253 #: ../src/guestfs-actions.pod:4269 ../fish/guestfish-actions.pod:2863
11254 #, no-wrap
11255 msgid ""
11256 " add-ro Fedora-11-i686-Live.iso\n"
11257 " run\n"
11258 " mkmountpoint /cd\n"
11259 " mkmountpoint /sqsh\n"
11260 " mkmountpoint /ext3fs\n"
11261 " mount /dev/sda /cd\n"
11262 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
11263 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
11264 "\n"
11265 msgstr ""
11266
11267 # type: textblock
11268 #: ../src/guestfs-actions.pod:4278 ../fish/guestfish-actions.pod:2872
11269 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
11270 msgstr ""
11271
11272 # type: textblock
11273 #: ../src/guestfs-actions.pod:4280
11274 msgid ""
11275 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
11276 "may get unexpected errors if you try to mix these calls.  It is safest to "
11277 "manually unmount filesystems and remove mountpoints after use."
11278 msgstr ""
11279
11280 # type: textblock
11281 #: ../src/guestfs-actions.pod:4284
11282 msgid ""
11283 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
11284 "first, so for this to work for manual mountpoints, you must ensure that the "
11285 "innermost mountpoints have the longest pathnames, as in the example code "
11286 "above."
11287 msgstr ""
11288
11289 # type: textblock
11290 #: ../src/guestfs-actions.pod:4289 ../fish/guestfish-actions.pod:2883
11291 msgid "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
11292 msgstr ""
11293
11294 # type: textblock
11295 #: ../src/guestfs-actions.pod:4291
11296 msgid ""
11297 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
11298 "means that C<guestfs_umount_all> is called when the handle is closed which "
11299 "can also trigger these issues."
11300 msgstr ""
11301
11302 # type: textblock
11303 #: ../src/guestfs-actions.pod:4297 ../src/guestfs-actions.pod:4556 ../src/guestfs-actions.pod:5449
11304 msgid "(Added in 1.0.62)"
11305 msgstr ""
11306
11307 # type: =head2
11308 #: ../src/guestfs-actions.pod:4299
11309 msgid "guestfs_mknod"
11310 msgstr ""
11311
11312 # type: verbatim
11313 #: ../src/guestfs-actions.pod:4301
11314 #, no-wrap
11315 msgid ""
11316 " int\n"
11317 " guestfs_mknod (guestfs_h *g,\n"
11318 "                int mode,\n"
11319 "                int devmajor,\n"
11320 "                int devminor,\n"
11321 "                const char *path);\n"
11322 "\n"
11323 msgstr ""
11324
11325 # type: textblock
11326 #: ../src/guestfs-actions.pod:4308 ../fish/guestfish-actions.pod:2893
11327 msgid ""
11328 "This call creates block or character special devices, or named pipes "
11329 "(FIFOs)."
11330 msgstr ""
11331
11332 # type: textblock
11333 #: ../src/guestfs-actions.pod:4311 ../fish/guestfish-actions.pod:2896
11334 msgid ""
11335 "The C<mode> parameter should be the mode, using the standard constants.  "
11336 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
11337 "used when creating block and character special devices."
11338 msgstr ""
11339
11340 # type: textblock
11341 #: ../src/guestfs-actions.pod:4316
11342 msgid ""
11343 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
11344 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
11345 "regular file).  These constants are available in the standard Linux header "
11346 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
11347 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
11348 "the appropriate constant for you."
11349 msgstr ""
11350
11351 # type: =head2
11352 #: ../src/guestfs-actions.pod:4330
11353 msgid "guestfs_mknod_b"
11354 msgstr ""
11355
11356 # type: verbatim
11357 #: ../src/guestfs-actions.pod:4332
11358 #, no-wrap
11359 msgid ""
11360 " int\n"
11361 " guestfs_mknod_b (guestfs_h *g,\n"
11362 "                  int mode,\n"
11363 "                  int devmajor,\n"
11364 "                  int devminor,\n"
11365 "                  const char *path);\n"
11366 "\n"
11367 msgstr ""
11368
11369 # type: textblock
11370 #: ../src/guestfs-actions.pod:4339
11371 msgid ""
11372 "This call creates a block device node called C<path> with mode C<mode> and "
11373 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
11374 "wrapper around C<guestfs_mknod>."
11375 msgstr ""
11376
11377 # type: =head2
11378 #: ../src/guestfs-actions.pod:4349
11379 msgid "guestfs_mknod_c"
11380 msgstr ""
11381
11382 # type: verbatim
11383 #: ../src/guestfs-actions.pod:4351
11384 #, no-wrap
11385 msgid ""
11386 " int\n"
11387 " guestfs_mknod_c (guestfs_h *g,\n"
11388 "                  int mode,\n"
11389 "                  int devmajor,\n"
11390 "                  int devminor,\n"
11391 "                  const char *path);\n"
11392 "\n"
11393 msgstr ""
11394
11395 # type: textblock
11396 #: ../src/guestfs-actions.pod:4358
11397 msgid ""
11398 "This call creates a char device node called C<path> with mode C<mode> and "
11399 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
11400 "wrapper around C<guestfs_mknod>."
11401 msgstr ""
11402
11403 # type: =head2
11404 #: ../src/guestfs-actions.pod:4368
11405 msgid "guestfs_mkswap"
11406 msgstr ""
11407
11408 # type: verbatim
11409 #: ../src/guestfs-actions.pod:4370
11410 #, no-wrap
11411 msgid ""
11412 " int\n"
11413 " guestfs_mkswap (guestfs_h *g,\n"
11414 "                 const char *device);\n"
11415 "\n"
11416 msgstr ""
11417
11418 # type: textblock
11419 #: ../src/guestfs-actions.pod:4374 ../fish/guestfish-actions.pod:2935
11420 msgid "Create a swap partition on C<device>."
11421 msgstr ""
11422
11423 # type: =head2
11424 #: ../src/guestfs-actions.pod:4380
11425 msgid "guestfs_mkswap_L"
11426 msgstr ""
11427
11428 # type: verbatim
11429 #: ../src/guestfs-actions.pod:4382
11430 #, no-wrap
11431 msgid ""
11432 " int\n"
11433 " guestfs_mkswap_L (guestfs_h *g,\n"
11434 "                   const char *label,\n"
11435 "                   const char *device);\n"
11436 "\n"
11437 msgstr ""
11438
11439 # type: textblock
11440 #: ../src/guestfs-actions.pod:4387 ../fish/guestfish-actions.pod:2941
11441 msgid "Create a swap partition on C<device> with label C<label>."
11442 msgstr ""
11443
11444 # type: textblock
11445 #: ../src/guestfs-actions.pod:4389 ../fish/guestfish-actions.pod:2943
11446 msgid ""
11447 "Note that you cannot attach a swap label to a block device "
11448 "(eg. C</dev/sda>), just to a partition.  This appears to be a limitation of "
11449 "the kernel or swap tools."
11450 msgstr ""
11451
11452 # type: =head2
11453 #: ../src/guestfs-actions.pod:4397
11454 msgid "guestfs_mkswap_U"
11455 msgstr ""
11456
11457 # type: verbatim
11458 #: ../src/guestfs-actions.pod:4399
11459 #, no-wrap
11460 msgid ""
11461 " int\n"
11462 " guestfs_mkswap_U (guestfs_h *g,\n"
11463 "                   const char *uuid,\n"
11464 "                   const char *device);\n"
11465 "\n"
11466 msgstr ""
11467
11468 # type: textblock
11469 #: ../src/guestfs-actions.pod:4404 ../fish/guestfish-actions.pod:2951
11470 msgid "Create a swap partition on C<device> with UUID C<uuid>."
11471 msgstr ""
11472
11473 # type: =head2
11474 #: ../src/guestfs-actions.pod:4410
11475 msgid "guestfs_mkswap_file"
11476 msgstr ""
11477
11478 # type: verbatim
11479 #: ../src/guestfs-actions.pod:4412
11480 #, no-wrap
11481 msgid ""
11482 " int\n"
11483 " guestfs_mkswap_file (guestfs_h *g,\n"
11484 "                      const char *path);\n"
11485 "\n"
11486 msgstr ""
11487
11488 # type: textblock
11489 #: ../src/guestfs-actions.pod:4416 ../fish/guestfish-actions.pod:2957
11490 msgid "Create a swap file."
11491 msgstr ""
11492
11493 # type: textblock
11494 #: ../src/guestfs-actions.pod:4418
11495 msgid ""
11496 "This command just writes a swap file signature to an existing file.  To "
11497 "create the file itself, use something like C<guestfs_fallocate>."
11498 msgstr ""
11499
11500 # type: =head2
11501 #: ../src/guestfs-actions.pod:4425
11502 msgid "guestfs_modprobe"
11503 msgstr ""
11504
11505 # type: verbatim
11506 #: ../src/guestfs-actions.pod:4427
11507 #, no-wrap
11508 msgid ""
11509 " int\n"
11510 " guestfs_modprobe (guestfs_h *g,\n"
11511 "                   const char *modulename);\n"
11512 "\n"
11513 msgstr ""
11514
11515 # type: textblock
11516 #: ../src/guestfs-actions.pod:4431 ../fish/guestfish-actions.pod:2966
11517 msgid "This loads a kernel module in the appliance."
11518 msgstr ""
11519
11520 # type: textblock
11521 #: ../src/guestfs-actions.pod:4433 ../fish/guestfish-actions.pod:2968
11522 msgid ""
11523 "The kernel module must have been whitelisted when libguestfs was built (see "
11524 "C<appliance/kmod.whitelist.in> in the source)."
11525 msgstr ""
11526
11527 # type: =head2
11528 #: ../src/guestfs-actions.pod:4440
11529 msgid "guestfs_mount"
11530 msgstr ""
11531
11532 # type: verbatim
11533 #: ../src/guestfs-actions.pod:4442
11534 #, no-wrap
11535 msgid ""
11536 " int\n"
11537 " guestfs_mount (guestfs_h *g,\n"
11538 "                const char *device,\n"
11539 "                const char *mountpoint);\n"
11540 "\n"
11541 msgstr ""
11542
11543 # type: textblock
11544 #: ../src/guestfs-actions.pod:4447 ../fish/guestfish-actions.pod:2975
11545 msgid ""
11546 "Mount a guest disk at a position in the filesystem.  Block devices are named "
11547 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
11548 "those block devices contain partitions, they will have the usual names "
11549 "(eg. C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
11550 msgstr ""
11551
11552 # type: textblock
11553 #: ../src/guestfs-actions.pod:4453 ../fish/guestfish-actions.pod:2981
11554 msgid ""
11555 "The rules are the same as for L<mount(2)>: A filesystem must first be "
11556 "mounted on C</> before others can be mounted.  Other filesystems can only be "
11557 "mounted on directories which already exist."
11558 msgstr ""
11559
11560 # type: textblock
11561 #: ../src/guestfs-actions.pod:4458 ../fish/guestfish-actions.pod:2986
11562 msgid ""
11563 "The mounted filesystem is writable, if we have sufficient permissions on the "
11564 "underlying device."
11565 msgstr ""
11566
11567 # type: textblock
11568 #: ../src/guestfs-actions.pod:4461
11569 msgid ""
11570 "B<Important note:> When you use this call, the filesystem options C<sync> "
11571 "and C<noatime> are set implicitly.  This was originally done because we "
11572 "thought it would improve reliability, but it turns out that I<-o sync> has a "
11573 "very large negative performance impact and negligible effect on "
11574 "reliability.  Therefore we recommend that you avoid using C<guestfs_mount> "
11575 "in any code that needs performance, and instead use C<guestfs_mount_options> "
11576 "(use an empty string for the first parameter if you don't want any options)."
11577 msgstr ""
11578
11579 # type: =head2
11580 #: ../src/guestfs-actions.pod:4475
11581 msgid "guestfs_mount_loop"
11582 msgstr ""
11583
11584 # type: verbatim
11585 #: ../src/guestfs-actions.pod:4477
11586 #, no-wrap
11587 msgid ""
11588 " int\n"
11589 " guestfs_mount_loop (guestfs_h *g,\n"
11590 "                     const char *file,\n"
11591 "                     const char *mountpoint);\n"
11592 "\n"
11593 msgstr ""
11594
11595 # type: textblock
11596 #: ../src/guestfs-actions.pod:4482 ../fish/guestfish-actions.pod:3003
11597 msgid ""
11598 "This command lets you mount C<file> (a filesystem image in a file) on a "
11599 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
11600 "mountpoint>."
11601 msgstr ""
11602
11603 # type: =head2
11604 #: ../src/guestfs-actions.pod:4490
11605 msgid "guestfs_mount_options"
11606 msgstr ""
11607
11608 # type: verbatim
11609 #: ../src/guestfs-actions.pod:4492
11610 #, no-wrap
11611 msgid ""
11612 " int\n"
11613 " guestfs_mount_options (guestfs_h *g,\n"
11614 "                        const char *options,\n"
11615 "                        const char *device,\n"
11616 "                        const char *mountpoint);\n"
11617 "\n"
11618 msgstr ""
11619
11620 # type: textblock
11621 #: ../src/guestfs-actions.pod:4498
11622 msgid ""
11623 "This is the same as the C<guestfs_mount> command, but it allows you to set "
11624 "the mount options as for the L<mount(8)> I<-o> flag."
11625 msgstr ""
11626
11627 # type: textblock
11628 #: ../src/guestfs-actions.pod:4502 ../fish/guestfish-actions.pod:3015
11629 msgid ""
11630 "If the C<options> parameter is an empty string, then no options are passed "
11631 "(all options default to whatever the filesystem uses)."
11632 msgstr ""
11633
11634 # type: textblock
11635 #: ../src/guestfs-actions.pod:4508 ../src/guestfs-actions.pod:4522 ../src/guestfs-actions.pod:4539
11636 msgid "(Added in 1.0.10)"
11637 msgstr ""
11638
11639 # type: =head2
11640 #: ../src/guestfs-actions.pod:4510
11641 msgid "guestfs_mount_ro"
11642 msgstr ""
11643
11644 # type: verbatim
11645 #: ../src/guestfs-actions.pod:4512
11646 #, no-wrap
11647 msgid ""
11648 " int\n"
11649 " guestfs_mount_ro (guestfs_h *g,\n"
11650 "                   const char *device,\n"
11651 "                   const char *mountpoint);\n"
11652 "\n"
11653 msgstr ""
11654
11655 # type: textblock
11656 #: ../src/guestfs-actions.pod:4517
11657 msgid ""
11658 "This is the same as the C<guestfs_mount> command, but it mounts the "
11659 "filesystem with the read-only (I<-o ro>) flag."
11660 msgstr ""
11661
11662 # type: =head2
11663 #: ../src/guestfs-actions.pod:4524
11664 msgid "guestfs_mount_vfs"
11665 msgstr ""
11666
11667 # type: verbatim
11668 #: ../src/guestfs-actions.pod:4526
11669 #, no-wrap
11670 msgid ""
11671 " int\n"
11672 " guestfs_mount_vfs (guestfs_h *g,\n"
11673 "                    const char *options,\n"
11674 "                    const char *vfstype,\n"
11675 "                    const char *device,\n"
11676 "                    const char *mountpoint);\n"
11677 "\n"
11678 msgstr ""
11679
11680 # type: textblock
11681 #: ../src/guestfs-actions.pod:4533
11682 msgid ""
11683 "This is the same as the C<guestfs_mount> command, but it allows you to set "
11684 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and "
11685 "I<-t> flags."
11686 msgstr ""
11687
11688 # type: =head2
11689 #: ../src/guestfs-actions.pod:4541
11690 msgid "guestfs_mountpoints"
11691 msgstr ""
11692
11693 # type: verbatim
11694 #: ../src/guestfs-actions.pod:4543
11695 #, no-wrap
11696 msgid ""
11697 " char **\n"
11698 " guestfs_mountpoints (guestfs_h *g);\n"
11699 "\n"
11700 msgstr ""
11701
11702 # type: textblock
11703 #: ../src/guestfs-actions.pod:4546
11704 msgid ""
11705 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
11706 "devices.  This one returns a hash table (map) of device name to directory "
11707 "where the device is mounted."
11708 msgstr ""
11709
11710 # type: =head2
11711 #: ../src/guestfs-actions.pod:4558
11712 msgid "guestfs_mounts"
11713 msgstr ""
11714
11715 # type: verbatim
11716 #: ../src/guestfs-actions.pod:4560
11717 #, no-wrap
11718 msgid ""
11719 " char **\n"
11720 " guestfs_mounts (guestfs_h *g);\n"
11721 "\n"
11722 msgstr ""
11723
11724 # type: textblock
11725 #: ../src/guestfs-actions.pod:4563 ../fish/guestfish-actions.pod:3046
11726 msgid ""
11727 "This returns the list of currently mounted filesystems.  It returns the list "
11728 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
11729 msgstr ""
11730
11731 # type: textblock
11732 #: ../src/guestfs-actions.pod:4566 ../fish/guestfish-actions.pod:3049
11733 msgid "Some internal mounts are not shown."
11734 msgstr ""
11735
11736 # type: textblock
11737 #: ../src/guestfs-actions.pod:4568
11738 msgid "See also: C<guestfs_mountpoints>"
11739 msgstr ""
11740
11741 # type: =head2
11742 #: ../src/guestfs-actions.pod:4576
11743 msgid "guestfs_mv"
11744 msgstr ""
11745
11746 # type: verbatim
11747 #: ../src/guestfs-actions.pod:4578
11748 #, no-wrap
11749 msgid ""
11750 " int\n"
11751 " guestfs_mv (guestfs_h *g,\n"
11752 "             const char *src,\n"
11753 "             const char *dest);\n"
11754 "\n"
11755 msgstr ""
11756
11757 # type: textblock
11758 #: ../src/guestfs-actions.pod:4583 ../fish/guestfish-actions.pod:3057
11759 msgid ""
11760 "This moves a file from C<src> to C<dest> where C<dest> is either a "
11761 "destination filename or destination directory."
11762 msgstr ""
11763
11764 # type: =head2
11765 #: ../src/guestfs-actions.pod:4590
11766 msgid "guestfs_ntfs_3g_probe"
11767 msgstr ""
11768
11769 # type: verbatim
11770 #: ../src/guestfs-actions.pod:4592
11771 #, no-wrap
11772 msgid ""
11773 " int\n"
11774 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
11775 "                        int rw,\n"
11776 "                        const char *device);\n"
11777 "\n"
11778 msgstr ""
11779
11780 # type: textblock
11781 #: ../src/guestfs-actions.pod:4597 ../fish/guestfish-actions.pod:3064
11782 msgid ""
11783 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
11784 "C<device> for mountability.  (Not all NTFS volumes can be mounted "
11785 "read-write, and some cannot be mounted at all)."
11786 msgstr ""
11787
11788 # type: textblock
11789 #: ../src/guestfs-actions.pod:4601 ../fish/guestfish-actions.pod:3068
11790 msgid ""
11791 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
11792 "can be mounted read-write.  Set it to false if you want to test if the "
11793 "volume can be mounted read-only."
11794 msgstr ""
11795
11796 # type: textblock
11797 #: ../src/guestfs-actions.pod:4605 ../fish/guestfish-actions.pod:3072
11798 msgid ""
11799 "The return value is an integer which C<0> if the operation would succeed, or "
11800 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
11801 msgstr ""
11802
11803 # type: textblock
11804 #: ../src/guestfs-actions.pod:4611
11805 msgid "(Added in 1.0.43)"
11806 msgstr ""
11807
11808 # type: =head2
11809 #: ../src/guestfs-actions.pod:4613
11810 msgid "guestfs_ntfsresize"
11811 msgstr ""
11812
11813 # type: verbatim
11814 #: ../src/guestfs-actions.pod:4615
11815 #, no-wrap
11816 msgid ""
11817 " int\n"
11818 " guestfs_ntfsresize (guestfs_h *g,\n"
11819 "                     const char *device);\n"
11820 "\n"
11821 msgstr ""
11822
11823 # type: textblock
11824 #: ../src/guestfs-actions.pod:4619 ../fish/guestfish-actions.pod:3080
11825 msgid ""
11826 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
11827 "size of the underlying device.  See also L<ntfsresize(8)>."
11828 msgstr ""
11829
11830 # type: =head2
11831 #: ../src/guestfs-actions.pod:4627
11832 msgid "guestfs_ntfsresize_size"
11833 msgstr ""
11834
11835 # type: verbatim
11836 #: ../src/guestfs-actions.pod:4629
11837 #, no-wrap
11838 msgid ""
11839 " int\n"
11840 " guestfs_ntfsresize_size (guestfs_h *g,\n"
11841 "                          const char *device,\n"
11842 "                          int64_t size);\n"
11843 "\n"
11844 msgstr ""
11845
11846 # type: textblock
11847 #: ../src/guestfs-actions.pod:4634
11848 msgid ""
11849 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
11850 "to specify the new size (in bytes) explicitly."
11851 msgstr ""
11852
11853 # type: textblock
11854 #: ../src/guestfs-actions.pod:4639 ../src/guestfs-actions.pod:5075 ../src/guestfs-actions.pod:5148 ../src/guestfs-actions.pod:5397
11855 msgid "(Added in 1.3.14)"
11856 msgstr ""
11857
11858 # type: =head2
11859 #: ../src/guestfs-actions.pod:4641
11860 msgid "guestfs_part_add"
11861 msgstr ""
11862
11863 # type: verbatim
11864 #: ../src/guestfs-actions.pod:4643
11865 #, no-wrap
11866 msgid ""
11867 " int\n"
11868 " guestfs_part_add (guestfs_h *g,\n"
11869 "                   const char *device,\n"
11870 "                   const char *prlogex,\n"
11871 "                   int64_t startsect,\n"
11872 "                   int64_t endsect);\n"
11873 "\n"
11874 msgstr ""
11875
11876 # type: textblock
11877 #: ../src/guestfs-actions.pod:4650
11878 msgid ""
11879 "This command adds a partition to C<device>.  If there is no partition table "
11880 "on the device, call C<guestfs_part_init> first."
11881 msgstr ""
11882
11883 # type: textblock
11884 #: ../src/guestfs-actions.pod:4653 ../fish/guestfish-actions.pod:3098
11885 msgid ""
11886 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
11887 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
11888 "C<logical>) and C<e> (or C<extended>) partition types."
11889 msgstr ""
11890
11891 # type: textblock
11892 #: ../src/guestfs-actions.pod:4658 ../fish/guestfish-actions.pod:3103
11893 msgid ""
11894 "C<startsect> and C<endsect> are the start and end of the partition in "
11895 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
11896 "from the end of the disk (C<-1> is the last sector)."
11897 msgstr ""
11898
11899 # type: textblock
11900 #: ../src/guestfs-actions.pod:4662
11901 msgid ""
11902 "Creating a partition which covers the whole disk is not so easy.  Use "
11903 "C<guestfs_part_disk> to do that."
11904 msgstr ""
11905
11906 # type: textblock
11907 #: ../src/guestfs-actions.pod:4667 ../src/guestfs-actions.pod:4705 ../src/guestfs-actions.pod:4758 ../src/guestfs-actions.pod:4836 ../src/guestfs-actions.pod:4874 ../src/guestfs-actions.pod:4893 ../src/guestfs-actions.pod:4933
11908 msgid "(Added in 1.0.78)"
11909 msgstr ""
11910
11911 # type: =head2
11912 #: ../src/guestfs-actions.pod:4669
11913 msgid "guestfs_part_del"
11914 msgstr ""
11915
11916 # type: verbatim
11917 #: ../src/guestfs-actions.pod:4671
11918 #, no-wrap
11919 msgid ""
11920 " int\n"
11921 " guestfs_part_del (guestfs_h *g,\n"
11922 "                   const char *device,\n"
11923 "                   int partnum);\n"
11924 "\n"
11925 msgstr ""
11926
11927 # type: textblock
11928 #: ../src/guestfs-actions.pod:4676 ../fish/guestfish-actions.pod:3114
11929 msgid "This command deletes the partition numbered C<partnum> on C<device>."
11930 msgstr ""
11931
11932 # type: textblock
11933 #: ../src/guestfs-actions.pod:4678 ../fish/guestfish-actions.pod:3116
11934 msgid ""
11935 "Note that in the case of MBR partitioning, deleting an extended partition "
11936 "also deletes any logical partitions it contains."
11937 msgstr ""
11938
11939 # type: =head2
11940 #: ../src/guestfs-actions.pod:4686
11941 msgid "guestfs_part_disk"
11942 msgstr ""
11943
11944 # type: verbatim
11945 #: ../src/guestfs-actions.pod:4688
11946 #, no-wrap
11947 msgid ""
11948 " int\n"
11949 " guestfs_part_disk (guestfs_h *g,\n"
11950 "                    const char *device,\n"
11951 "                    const char *parttype);\n"
11952 "\n"
11953 msgstr ""
11954
11955 # type: textblock
11956 #: ../src/guestfs-actions.pod:4693
11957 msgid ""
11958 "This command is simply a combination of C<guestfs_part_init> followed by "
11959 "C<guestfs_part_add> to create a single primary partition covering the whole "
11960 "disk."
11961 msgstr ""
11962
11963 # type: textblock
11964 #: ../src/guestfs-actions.pod:4697
11965 msgid ""
11966 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
11967 "possible values are described in C<guestfs_part_init>."
11968 msgstr ""
11969
11970 # type: =head2
11971 #: ../src/guestfs-actions.pod:4707
11972 msgid "guestfs_part_get_bootable"
11973 msgstr ""
11974
11975 # type: verbatim
11976 #: ../src/guestfs-actions.pod:4709
11977 #, no-wrap
11978 msgid ""
11979 " int\n"
11980 " guestfs_part_get_bootable (guestfs_h *g,\n"
11981 "                            const char *device,\n"
11982 "                            int partnum);\n"
11983 "\n"
11984 msgstr ""
11985
11986 # type: textblock
11987 #: ../src/guestfs-actions.pod:4714 ../fish/guestfish-actions.pod:3138
11988 msgid ""
11989 "This command returns true if the partition C<partnum> on C<device> has the "
11990 "bootable flag set."
11991 msgstr ""
11992
11993 # type: textblock
11994 #: ../src/guestfs-actions.pod:4717
11995 msgid "See also C<guestfs_part_set_bootable>."
11996 msgstr ""
11997
11998 # type: =head2
11999 #: ../src/guestfs-actions.pod:4723
12000 msgid "guestfs_part_get_mbr_id"
12001 msgstr ""
12002
12003 # type: verbatim
12004 #: ../src/guestfs-actions.pod:4725
12005 #, no-wrap
12006 msgid ""
12007 " int\n"
12008 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
12009 "                          const char *device,\n"
12010 "                          int partnum);\n"
12011 "\n"
12012 msgstr ""
12013
12014 # type: textblock
12015 #: ../src/guestfs-actions.pod:4730 ../fish/guestfish-actions.pod:3147
12016 msgid ""
12017 "Returns the MBR type byte (also known as the ID byte) from the numbered "
12018 "partition C<partnum>."
12019 msgstr ""
12020
12021 # type: textblock
12022 #: ../src/guestfs-actions.pod:4733 ../src/guestfs-actions.pod:4909
12023 msgid ""
12024 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
12025 "undefined results for other partition table types (see "
12026 "C<guestfs_part_get_parttype>)."
12027 msgstr ""
12028
12029 # type: =head2
12030 #: ../src/guestfs-actions.pod:4741
12031 msgid "guestfs_part_get_parttype"
12032 msgstr ""
12033
12034 # type: verbatim
12035 #: ../src/guestfs-actions.pod:4743
12036 #, no-wrap
12037 msgid ""
12038 " char *\n"
12039 " guestfs_part_get_parttype (guestfs_h *g,\n"
12040 "                            const char *device);\n"
12041 "\n"
12042 msgstr ""
12043
12044 # type: textblock
12045 #: ../src/guestfs-actions.pod:4747 ../fish/guestfish-actions.pod:3158
12046 msgid ""
12047 "This command examines the partition table on C<device> and returns the "
12048 "partition table type (format) being used."
12049 msgstr ""
12050
12051 # type: textblock
12052 #: ../src/guestfs-actions.pod:4750
12053 msgid ""
12054 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
12055 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
12056 "possible, although unusual.  See C<guestfs_part_init> for a full list."
12057 msgstr ""
12058
12059 # type: =head2
12060 #: ../src/guestfs-actions.pod:4760
12061 msgid "guestfs_part_init"
12062 msgstr ""
12063
12064 # type: verbatim
12065 #: ../src/guestfs-actions.pod:4762
12066 #, no-wrap
12067 msgid ""
12068 " int\n"
12069 " guestfs_part_init (guestfs_h *g,\n"
12070 "                    const char *device,\n"
12071 "                    const char *parttype);\n"
12072 "\n"
12073 msgstr ""
12074
12075 # type: textblock
12076 #: ../src/guestfs-actions.pod:4767 ../fish/guestfish-actions.pod:3170
12077 msgid ""
12078 "This creates an empty partition table on C<device> of one of the partition "
12079 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
12080 "(for large disks)."
12081 msgstr ""
12082
12083 # type: textblock
12084 #: ../src/guestfs-actions.pod:4771
12085 msgid ""
12086 "Initially there are no partitions.  Following this, you should call "
12087 "C<guestfs_part_add> for each partition required."
12088 msgstr ""
12089
12090 # type: textblock
12091 #: ../src/guestfs-actions.pod:4774 ../fish/guestfish-actions.pod:3177
12092 msgid "Possible values for C<parttype> are:"
12093 msgstr ""
12094
12095 # type: =item
12096 #: ../src/guestfs-actions.pod:4778 ../fish/guestfish-actions.pod:3181
12097 msgid "B<efi> | B<gpt>"
12098 msgstr ""
12099
12100 # type: textblock
12101 #: ../src/guestfs-actions.pod:4780 ../fish/guestfish-actions.pod:3183
12102 msgid "Intel EFI / GPT partition table."
12103 msgstr ""
12104
12105 # type: textblock
12106 #: ../src/guestfs-actions.pod:4782 ../fish/guestfish-actions.pod:3185
12107 msgid ""
12108 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
12109 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
12110 "the C<mbr> format."
12111 msgstr ""
12112
12113 # type: =item
12114 #: ../src/guestfs-actions.pod:4786 ../fish/guestfish-actions.pod:3189
12115 msgid "B<mbr> | B<msdos>"
12116 msgstr ""
12117
12118 # type: textblock
12119 #: ../src/guestfs-actions.pod:4788 ../fish/guestfish-actions.pod:3191
12120 msgid ""
12121 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
12122 "Windows.  This partition type will B<only> work for device sizes up to 2 "
12123 "TB.  For large disks we recommend using C<gpt>."
12124 msgstr ""
12125
12126 # type: textblock
12127 #: ../src/guestfs-actions.pod:4795 ../fish/guestfish-actions.pod:3198
12128 msgid "Other partition table types that may work but are not supported include:"
12129 msgstr ""
12130
12131 # type: =item
12132 #: ../src/guestfs-actions.pod:4800 ../fish/guestfish-actions.pod:3203
12133 msgid "B<aix>"
12134 msgstr ""
12135
12136 # type: textblock
12137 #: ../src/guestfs-actions.pod:4802 ../fish/guestfish-actions.pod:3205
12138 msgid "AIX disk labels."
12139 msgstr ""
12140
12141 # type: =item
12142 #: ../src/guestfs-actions.pod:4804 ../fish/guestfish-actions.pod:3207
12143 msgid "B<amiga> | B<rdb>"
12144 msgstr ""
12145
12146 # type: textblock
12147 #: ../src/guestfs-actions.pod:4806 ../fish/guestfish-actions.pod:3209
12148 msgid "Amiga \"Rigid Disk Block\" format."
12149 msgstr ""
12150
12151 # type: =item
12152 #: ../src/guestfs-actions.pod:4808 ../fish/guestfish-actions.pod:3211
12153 msgid "B<bsd>"
12154 msgstr ""
12155
12156 # type: textblock
12157 #: ../src/guestfs-actions.pod:4810 ../fish/guestfish-actions.pod:3213
12158 msgid "BSD disk labels."
12159 msgstr ""
12160
12161 # type: =item
12162 #: ../src/guestfs-actions.pod:4812 ../fish/guestfish-actions.pod:3215
12163 msgid "B<dasd>"
12164 msgstr ""
12165
12166 # type: textblock
12167 #: ../src/guestfs-actions.pod:4814 ../fish/guestfish-actions.pod:3217
12168 msgid "DASD, used on IBM mainframes."
12169 msgstr ""
12170
12171 # type: =item
12172 #: ../src/guestfs-actions.pod:4816 ../fish/guestfish-actions.pod:3219
12173 msgid "B<dvh>"
12174 msgstr ""
12175
12176 # type: textblock
12177 #: ../src/guestfs-actions.pod:4818 ../fish/guestfish-actions.pod:3221
12178 msgid "MIPS/SGI volumes."
12179 msgstr ""
12180
12181 # type: =item
12182 #: ../src/guestfs-actions.pod:4820 ../fish/guestfish-actions.pod:3223
12183 msgid "B<mac>"
12184 msgstr ""
12185
12186 # type: textblock
12187 #: ../src/guestfs-actions.pod:4822 ../fish/guestfish-actions.pod:3225
12188 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
12189 msgstr ""
12190
12191 # type: =item
12192 #: ../src/guestfs-actions.pod:4824 ../fish/guestfish-actions.pod:3227
12193 msgid "B<pc98>"
12194 msgstr ""
12195
12196 # type: textblock
12197 #: ../src/guestfs-actions.pod:4826 ../fish/guestfish-actions.pod:3229
12198 msgid "NEC PC-98 format, common in Japan apparently."
12199 msgstr ""
12200
12201 # type: =item
12202 #: ../src/guestfs-actions.pod:4828 ../fish/guestfish-actions.pod:3231
12203 msgid "B<sun>"
12204 msgstr ""
12205
12206 # type: textblock
12207 #: ../src/guestfs-actions.pod:4830 ../fish/guestfish-actions.pod:3233
12208 msgid "Sun disk labels."
12209 msgstr ""
12210
12211 # type: =head2
12212 #: ../src/guestfs-actions.pod:4838
12213 msgid "guestfs_part_list"
12214 msgstr ""
12215
12216 # type: verbatim
12217 #: ../src/guestfs-actions.pod:4840
12218 #, no-wrap
12219 msgid ""
12220 " struct guestfs_partition_list *\n"
12221 " guestfs_part_list (guestfs_h *g,\n"
12222 "                    const char *device);\n"
12223 "\n"
12224 msgstr ""
12225
12226 # type: textblock
12227 #: ../src/guestfs-actions.pod:4844 ../fish/guestfish-actions.pod:3241
12228 msgid ""
12229 "This command parses the partition table on C<device> and returns the list of "
12230 "partitions found."
12231 msgstr ""
12232
12233 # type: textblock
12234 #: ../src/guestfs-actions.pod:4847 ../fish/guestfish-actions.pod:3244
12235 msgid "The fields in the returned structure are:"
12236 msgstr ""
12237
12238 # type: =item
12239 #: ../src/guestfs-actions.pod:4851 ../fish/guestfish-actions.pod:3248
12240 msgid "B<part_num>"
12241 msgstr ""
12242
12243 # type: textblock
12244 #: ../src/guestfs-actions.pod:4853 ../fish/guestfish-actions.pod:3250
12245 msgid "Partition number, counting from 1."
12246 msgstr ""
12247
12248 # type: =item
12249 #: ../src/guestfs-actions.pod:4855 ../fish/guestfish-actions.pod:3252
12250 msgid "B<part_start>"
12251 msgstr ""
12252
12253 # type: textblock
12254 #: ../src/guestfs-actions.pod:4857
12255 msgid ""
12256 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
12257 "the device's sector size, see C<guestfs_blockdev_getss>."
12258 msgstr ""
12259
12260 # type: =item
12261 #: ../src/guestfs-actions.pod:4860 ../fish/guestfish-actions.pod:3257
12262 msgid "B<part_end>"
12263 msgstr ""
12264
12265 # type: textblock
12266 #: ../src/guestfs-actions.pod:4862 ../fish/guestfish-actions.pod:3259
12267 msgid "End of the partition in bytes."
12268 msgstr ""
12269
12270 # type: =item
12271 #: ../src/guestfs-actions.pod:4864 ../fish/guestfish-actions.pod:3261
12272 msgid "B<part_size>"
12273 msgstr ""
12274
12275 # type: textblock
12276 #: ../src/guestfs-actions.pod:4866 ../fish/guestfish-actions.pod:3263
12277 msgid "Size of the partition in bytes."
12278 msgstr ""
12279
12280 # type: textblock
12281 #: ../src/guestfs-actions.pod:4870
12282 msgid ""
12283 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
12284 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
12285 "use>."
12286 msgstr ""
12287
12288 # type: =head2
12289 #: ../src/guestfs-actions.pod:4876
12290 msgid "guestfs_part_set_bootable"
12291 msgstr ""
12292
12293 # type: verbatim
12294 #: ../src/guestfs-actions.pod:4878
12295 #, no-wrap
12296 msgid ""
12297 " int\n"
12298 " guestfs_part_set_bootable (guestfs_h *g,\n"
12299 "                            const char *device,\n"
12300 "                            int partnum,\n"
12301 "                            int bootable);\n"
12302 "\n"
12303 msgstr ""
12304
12305 # type: textblock
12306 #: ../src/guestfs-actions.pod:4884 ../fish/guestfish-actions.pod:3271
12307 msgid ""
12308 "This sets the bootable flag on partition numbered C<partnum> on device "
12309 "C<device>.  Note that partitions are numbered from 1."
12310 msgstr ""
12311
12312 # type: textblock
12313 #: ../src/guestfs-actions.pod:4887 ../fish/guestfish-actions.pod:3274
12314 msgid ""
12315 "The bootable flag is used by some operating systems (notably Windows) to "
12316 "determine which partition to boot from.  It is by no means universally "
12317 "recognized."
12318 msgstr ""
12319
12320 # type: =head2
12321 #: ../src/guestfs-actions.pod:4895
12322 msgid "guestfs_part_set_mbr_id"
12323 msgstr ""
12324
12325 # type: verbatim
12326 #: ../src/guestfs-actions.pod:4897
12327 #, no-wrap
12328 msgid ""
12329 " int\n"
12330 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
12331 "                          const char *device,\n"
12332 "                          int partnum,\n"
12333 "                          int idbyte);\n"
12334 "\n"
12335 msgstr ""
12336
12337 # type: textblock
12338 #: ../src/guestfs-actions.pod:4903 ../fish/guestfish-actions.pod:3282
12339 msgid ""
12340 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
12341 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
12342 "documentation are in fact hexadecimal numbers, but usually documented "
12343 "without any leading \"0x\" which might be confusing."
12344 msgstr ""
12345
12346 # type: =head2
12347 #: ../src/guestfs-actions.pod:4917
12348 msgid "guestfs_part_set_name"
12349 msgstr ""
12350
12351 # type: verbatim
12352 #: ../src/guestfs-actions.pod:4919
12353 #, no-wrap
12354 msgid ""
12355 " int\n"
12356 " guestfs_part_set_name (guestfs_h *g,\n"
12357 "                        const char *device,\n"
12358 "                        int partnum,\n"
12359 "                        const char *name);\n"
12360 "\n"
12361 msgstr ""
12362
12363 # type: textblock
12364 #: ../src/guestfs-actions.pod:4925 ../fish/guestfish-actions.pod:3296
12365 msgid ""
12366 "This sets the partition name on partition numbered C<partnum> on device "
12367 "C<device>.  Note that partitions are numbered from 1."
12368 msgstr ""
12369
12370 # type: textblock
12371 #: ../src/guestfs-actions.pod:4928 ../fish/guestfish-actions.pod:3299
12372 msgid ""
12373 "The partition name can only be set on certain types of partition table.  "
12374 "This works on C<gpt> but not on C<mbr> partitions."
12375 msgstr ""
12376
12377 # type: =head2
12378 #: ../src/guestfs-actions.pod:4935
12379 msgid "guestfs_part_to_dev"
12380 msgstr ""
12381
12382 # type: verbatim
12383 #: ../src/guestfs-actions.pod:4937
12384 #, no-wrap
12385 msgid ""
12386 " char *\n"
12387 " guestfs_part_to_dev (guestfs_h *g,\n"
12388 "                      const char *partition);\n"
12389 "\n"
12390 msgstr ""
12391
12392 # type: textblock
12393 #: ../src/guestfs-actions.pod:4941 ../fish/guestfish-actions.pod:3306
12394 msgid ""
12395 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
12396 "partition number, returning the device name (eg. \"/dev/sdb\")."
12397 msgstr ""
12398
12399 # type: textblock
12400 #: ../src/guestfs-actions.pod:4945
12401 msgid ""
12402 "The named partition must exist, for example as a string returned from "
12403 "C<guestfs_list_partitions>."
12404 msgstr ""
12405
12406 # type: =head2
12407 #: ../src/guestfs-actions.pod:4953
12408 msgid "guestfs_ping_daemon"
12409 msgstr ""
12410
12411 # type: verbatim
12412 #: ../src/guestfs-actions.pod:4955
12413 #, no-wrap
12414 msgid ""
12415 " int\n"
12416 " guestfs_ping_daemon (guestfs_h *g);\n"
12417 "\n"
12418 msgstr ""
12419
12420 # type: textblock
12421 #: ../src/guestfs-actions.pod:4958 ../fish/guestfish-actions.pod:3317
12422 msgid ""
12423 "This is a test probe into the guestfs daemon running inside the qemu "
12424 "subprocess.  Calling this function checks that the daemon responds to the "
12425 "ping message, without affecting the daemon or attached block device(s) in "
12426 "any other way."
12427 msgstr ""
12428
12429 # type: =head2
12430 #: ../src/guestfs-actions.pod:4967
12431 msgid "guestfs_pread"
12432 msgstr ""
12433
12434 # type: verbatim
12435 #: ../src/guestfs-actions.pod:4969
12436 #, no-wrap
12437 msgid ""
12438 " char *\n"
12439 " guestfs_pread (guestfs_h *g,\n"
12440 "                const char *path,\n"
12441 "                int count,\n"
12442 "                int64_t offset,\n"
12443 "                size_t *size_r);\n"
12444 "\n"
12445 msgstr ""
12446
12447 # type: textblock
12448 #: ../src/guestfs-actions.pod:4976 ../fish/guestfish-actions.pod:3326
12449 msgid ""
12450 "This command lets you read part of a file.  It reads C<count> bytes of the "
12451 "file, starting at C<offset>, from file C<path>."
12452 msgstr ""
12453
12454 # type: textblock
12455 #: ../src/guestfs-actions.pod:4979 ../src/guestfs-actions.pod:5005 ../fish/guestfish-actions.pod:3329 ../fish/guestfish-actions.pod:3344
12456 msgid ""
12457 "This may read fewer bytes than requested.  For further details see the "
12458 "L<pread(2)> system call."
12459 msgstr ""
12460
12461 # type: textblock
12462 #: ../src/guestfs-actions.pod:4982
12463 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
12464 msgstr ""
12465
12466 # type: =head2
12467 #: ../src/guestfs-actions.pod:4993
12468 msgid "guestfs_pread_device"
12469 msgstr ""
12470
12471 # type: verbatim
12472 #: ../src/guestfs-actions.pod:4995
12473 #, no-wrap
12474 msgid ""
12475 " char *\n"
12476 " guestfs_pread_device (guestfs_h *g,\n"
12477 "                       const char *device,\n"
12478 "                       int count,\n"
12479 "                       int64_t offset,\n"
12480 "                       size_t *size_r);\n"
12481 "\n"
12482 msgstr ""
12483
12484 # type: textblock
12485 #: ../src/guestfs-actions.pod:5002 ../fish/guestfish-actions.pod:3341
12486 msgid ""
12487 "This command lets you read part of a file.  It reads C<count> bytes of "
12488 "C<device>, starting at C<offset>."
12489 msgstr ""
12490
12491 # type: textblock
12492 #: ../src/guestfs-actions.pod:5008
12493 msgid "See also C<guestfs_pread>."
12494 msgstr ""
12495
12496 # type: textblock
12497 #: ../src/guestfs-actions.pod:5017
12498 msgid "(Added in 1.5.21)"
12499 msgstr ""
12500
12501 # type: =head2
12502 #: ../src/guestfs-actions.pod:5019
12503 msgid "guestfs_pvcreate"
12504 msgstr ""
12505
12506 # type: verbatim
12507 #: ../src/guestfs-actions.pod:5021
12508 #, no-wrap
12509 msgid ""
12510 " int\n"
12511 " guestfs_pvcreate (guestfs_h *g,\n"
12512 "                   const char *device);\n"
12513 "\n"
12514 msgstr ""
12515
12516 # type: textblock
12517 #: ../src/guestfs-actions.pod:5025 ../fish/guestfish-actions.pod:3356
12518 msgid ""
12519 "This creates an LVM physical volume on the named C<device>, where C<device> "
12520 "should usually be a partition name such as C</dev/sda1>."
12521 msgstr ""
12522
12523 # type: =head2
12524 #: ../src/guestfs-actions.pod:5033
12525 msgid "guestfs_pvremove"
12526 msgstr ""
12527
12528 # type: verbatim
12529 #: ../src/guestfs-actions.pod:5035
12530 #, no-wrap
12531 msgid ""
12532 " int\n"
12533 " guestfs_pvremove (guestfs_h *g,\n"
12534 "                   const char *device);\n"
12535 "\n"
12536 msgstr ""
12537
12538 # type: textblock
12539 #: ../src/guestfs-actions.pod:5039 ../fish/guestfish-actions.pod:3364
12540 msgid ""
12541 "This wipes a physical volume C<device> so that LVM will no longer recognise "
12542 "it."
12543 msgstr ""
12544
12545 # type: textblock
12546 #: ../src/guestfs-actions.pod:5042 ../fish/guestfish-actions.pod:3367
12547 msgid ""
12548 "The implementation uses the C<pvremove> command which refuses to wipe "
12549 "physical volumes that contain any volume groups, so you have to remove those "
12550 "first."
12551 msgstr ""
12552
12553 # type: =head2
12554 #: ../src/guestfs-actions.pod:5050
12555 msgid "guestfs_pvresize"
12556 msgstr ""
12557
12558 # type: verbatim
12559 #: ../src/guestfs-actions.pod:5052
12560 #, no-wrap
12561 msgid ""
12562 " int\n"
12563 " guestfs_pvresize (guestfs_h *g,\n"
12564 "                   const char *device);\n"
12565 "\n"
12566 msgstr ""
12567
12568 # type: textblock
12569 #: ../src/guestfs-actions.pod:5056 ../fish/guestfish-actions.pod:3375
12570 msgid ""
12571 "This resizes (expands or shrinks) an existing LVM physical volume to match "
12572 "the new size of the underlying device."
12573 msgstr ""
12574
12575 # type: =head2
12576 #: ../src/guestfs-actions.pod:5063
12577 msgid "guestfs_pvresize_size"
12578 msgstr ""
12579
12580 # type: verbatim
12581 #: ../src/guestfs-actions.pod:5065
12582 #, no-wrap
12583 msgid ""
12584 " int\n"
12585 " guestfs_pvresize_size (guestfs_h *g,\n"
12586 "                        const char *device,\n"
12587 "                        int64_t size);\n"
12588 "\n"
12589 msgstr ""
12590
12591 # type: textblock
12592 #: ../src/guestfs-actions.pod:5070
12593 msgid ""
12594 "This command is the same as C<guestfs_pvresize> except that it allows you to "
12595 "specify the new size (in bytes) explicitly."
12596 msgstr ""
12597
12598 # type: =head2
12599 #: ../src/guestfs-actions.pod:5077
12600 msgid "guestfs_pvs"
12601 msgstr ""
12602
12603 # type: verbatim
12604 #: ../src/guestfs-actions.pod:5079
12605 #, no-wrap
12606 msgid ""
12607 " char **\n"
12608 " guestfs_pvs (guestfs_h *g);\n"
12609 "\n"
12610 msgstr ""
12611
12612 # type: textblock
12613 #: ../src/guestfs-actions.pod:5082 ../fish/guestfish-actions.pod:3389
12614 msgid ""
12615 "List all the physical volumes detected.  This is the equivalent of the "
12616 "L<pvs(8)> command."
12617 msgstr ""
12618
12619 # type: textblock
12620 #: ../src/guestfs-actions.pod:5085 ../fish/guestfish-actions.pod:3392
12621 msgid ""
12622 "This returns a list of just the device names that contain PVs "
12623 "(eg. C</dev/sda2>)."
12624 msgstr ""
12625
12626 # type: textblock
12627 #: ../src/guestfs-actions.pod:5088
12628 msgid "See also C<guestfs_pvs_full>."
12629 msgstr ""
12630
12631 # type: =head2
12632 #: ../src/guestfs-actions.pod:5096
12633 msgid "guestfs_pvs_full"
12634 msgstr ""
12635
12636 # type: verbatim
12637 #: ../src/guestfs-actions.pod:5098
12638 #, no-wrap
12639 msgid ""
12640 " struct guestfs_lvm_pv_list *\n"
12641 " guestfs_pvs_full (guestfs_h *g);\n"
12642 "\n"
12643 msgstr ""
12644
12645 # type: textblock
12646 #: ../src/guestfs-actions.pod:5101 ../fish/guestfish-actions.pod:3401
12647 msgid ""
12648 "List all the physical volumes detected.  This is the equivalent of the "
12649 "L<pvs(8)> command.  The \"full\" version includes all fields."
12650 msgstr ""
12651
12652 # type: textblock
12653 #: ../src/guestfs-actions.pod:5104
12654 msgid ""
12655 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
12656 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after "
12657 "use>."
12658 msgstr ""
12659
12660 # type: =head2
12661 #: ../src/guestfs-actions.pod:5110
12662 msgid "guestfs_pvuuid"
12663 msgstr ""
12664
12665 # type: verbatim
12666 #: ../src/guestfs-actions.pod:5112
12667 #, no-wrap
12668 msgid ""
12669 " char *\n"
12670 " guestfs_pvuuid (guestfs_h *g,\n"
12671 "                 const char *device);\n"
12672 "\n"
12673 msgstr ""
12674
12675 # type: textblock
12676 #: ../src/guestfs-actions.pod:5116 ../fish/guestfish-actions.pod:3408
12677 msgid "This command returns the UUID of the LVM PV C<device>."
12678 msgstr ""
12679
12680 # type: =head2
12681 #: ../src/guestfs-actions.pod:5123
12682 msgid "guestfs_pwrite"
12683 msgstr ""
12684
12685 # type: verbatim
12686 #: ../src/guestfs-actions.pod:5125
12687 #, no-wrap
12688 msgid ""
12689 " int\n"
12690 " guestfs_pwrite (guestfs_h *g,\n"
12691 "                 const char *path,\n"
12692 "                 const char *content,\n"
12693 "                 size_t content_size,\n"
12694 "                 int64_t offset);\n"
12695 "\n"
12696 msgstr ""
12697
12698 # type: textblock
12699 #: ../src/guestfs-actions.pod:5132 ../fish/guestfish-actions.pod:3414
12700 msgid ""
12701 "This command writes to part of a file.  It writes the data buffer C<content> "
12702 "to the file C<path> starting at offset C<offset>."
12703 msgstr ""
12704
12705 # type: textblock
12706 #: ../src/guestfs-actions.pod:5135 ../fish/guestfish-actions.pod:3417
12707 msgid ""
12708 "This command implements the L<pwrite(2)> system call, and like that system "
12709 "call it may not write the full data requested.  The return value is the "
12710 "number of bytes that were actually written to the file.  This could even be "
12711 "0, although short writes are unlikely for regular files in ordinary "
12712 "circumstances."
12713 msgstr ""
12714
12715 # type: textblock
12716 #: ../src/guestfs-actions.pod:5141
12717 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
12718 msgstr ""
12719
12720 # type: =head2
12721 #: ../src/guestfs-actions.pod:5150
12722 msgid "guestfs_pwrite_device"
12723 msgstr ""
12724
12725 # type: verbatim
12726 #: ../src/guestfs-actions.pod:5152
12727 #, no-wrap
12728 msgid ""
12729 " int\n"
12730 " guestfs_pwrite_device (guestfs_h *g,\n"
12731 "                        const char *device,\n"
12732 "                        const char *content,\n"
12733 "                        size_t content_size,\n"
12734 "                        int64_t offset);\n"
12735 "\n"
12736 msgstr ""
12737
12738 # type: textblock
12739 #: ../src/guestfs-actions.pod:5159 ../fish/guestfish-actions.pod:3432
12740 msgid ""
12741 "This command writes to part of a device.  It writes the data buffer "
12742 "C<content> to C<device> starting at offset C<offset>."
12743 msgstr ""
12744
12745 # type: textblock
12746 #: ../src/guestfs-actions.pod:5162 ../fish/guestfish-actions.pod:3435
12747 msgid ""
12748 "This command implements the L<pwrite(2)> system call, and like that system "
12749 "call it may not write the full data requested (although short writes to disk "
12750 "devices and partitions are probably impossible with standard Linux kernels)."
12751 msgstr ""
12752
12753 # type: textblock
12754 #: ../src/guestfs-actions.pod:5167
12755 msgid "See also C<guestfs_pwrite>."
12756 msgstr ""
12757
12758 # type: textblock
12759 #: ../src/guestfs-actions.pod:5174
12760 msgid "(Added in 1.5.20)"
12761 msgstr ""
12762
12763 # type: =head2
12764 #: ../src/guestfs-actions.pod:5176
12765 msgid "guestfs_read_file"
12766 msgstr ""
12767
12768 # type: verbatim
12769 #: ../src/guestfs-actions.pod:5178
12770 #, no-wrap
12771 msgid ""
12772 " char *\n"
12773 " guestfs_read_file (guestfs_h *g,\n"
12774 "                    const char *path,\n"
12775 "                    size_t *size_r);\n"
12776 "\n"
12777 msgstr ""
12778
12779 # type: textblock
12780 #: ../src/guestfs-actions.pod:5183 ../fish/guestfish-actions.pod:3449
12781 msgid "This calls returns the contents of the file C<path> as a buffer."
12782 msgstr ""
12783
12784 # type: textblock
12785 #: ../src/guestfs-actions.pod:5186
12786 msgid ""
12787 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
12788 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
12789 "function is limited in the total size of file that can be handled."
12790 msgstr ""
12791
12792 # type: textblock
12793 #: ../src/guestfs-actions.pod:5198
12794 msgid "(Added in 1.0.63)"
12795 msgstr ""
12796
12797 # type: =head2
12798 #: ../src/guestfs-actions.pod:5200
12799 msgid "guestfs_read_lines"
12800 msgstr ""
12801
12802 # type: verbatim
12803 #: ../src/guestfs-actions.pod:5202
12804 #, no-wrap
12805 msgid ""
12806 " char **\n"
12807 " guestfs_read_lines (guestfs_h *g,\n"
12808 "                     const char *path);\n"
12809 "\n"
12810 msgstr ""
12811
12812 # type: textblock
12813 #: ../src/guestfs-actions.pod:5208 ../fish/guestfish-actions.pod:3466
12814 msgid ""
12815 "The file contents are returned as a list of lines.  Trailing C<LF> and "
12816 "C<CRLF> character sequences are I<not> returned."
12817 msgstr ""
12818
12819 # type: textblock
12820 #: ../src/guestfs-actions.pod:5211
12821 msgid ""
12822 "Note that this function cannot correctly handle binary files (specifically, "
12823 "files containing C<\\0> character which is treated as end of line).  For "
12824 "those you need to use the C<guestfs_read_file> function which has a more "
12825 "complex interface."
12826 msgstr ""
12827
12828 # type: =head2
12829 #: ../src/guestfs-actions.pod:5222
12830 msgid "guestfs_readdir"
12831 msgstr ""
12832
12833 # type: verbatim
12834 #: ../src/guestfs-actions.pod:5224
12835 #, no-wrap
12836 msgid ""
12837 " struct guestfs_dirent_list *\n"
12838 " guestfs_readdir (guestfs_h *g,\n"
12839 "                  const char *dir);\n"
12840 "\n"
12841 msgstr ""
12842
12843 # type: textblock
12844 #: ../src/guestfs-actions.pod:5228 ../fish/guestfish-actions.pod:3478
12845 msgid "This returns the list of directory entries in directory C<dir>."
12846 msgstr ""
12847
12848 # type: textblock
12849 #: ../src/guestfs-actions.pod:5230 ../fish/guestfish-actions.pod:3480
12850 msgid ""
12851 "All entries in the directory are returned, including C<.> and C<..>.  The "
12852 "entries are I<not> sorted, but returned in the same order as the underlying "
12853 "filesystem."
12854 msgstr ""
12855
12856 # type: textblock
12857 #: ../src/guestfs-actions.pod:5234 ../fish/guestfish-actions.pod:3484
12858 msgid ""
12859 "Also this call returns basic file type information about each file.  The "
12860 "C<ftyp> field will contain one of the following characters:"
12861 msgstr ""
12862
12863 # type: =item
12864 #: ../src/guestfs-actions.pod:5239 ../fish/guestfish-actions.pod:3489
12865 msgid "'b'"
12866 msgstr ""
12867
12868 # type: textblock
12869 #: ../src/guestfs-actions.pod:5241 ../fish/guestfish-actions.pod:3491
12870 msgid "Block special"
12871 msgstr ""
12872
12873 # type: =item
12874 #: ../src/guestfs-actions.pod:5243 ../fish/guestfish-actions.pod:3493
12875 msgid "'c'"
12876 msgstr ""
12877
12878 # type: textblock
12879 #: ../src/guestfs-actions.pod:5245 ../fish/guestfish-actions.pod:3495
12880 msgid "Char special"
12881 msgstr ""
12882
12883 # type: =item
12884 #: ../src/guestfs-actions.pod:5247 ../fish/guestfish-actions.pod:3497
12885 msgid "'d'"
12886 msgstr ""
12887
12888 # type: textblock
12889 #: ../src/guestfs-actions.pod:5249 ../fish/guestfish-actions.pod:3499
12890 msgid "Directory"
12891 msgstr ""
12892
12893 # type: =item
12894 #: ../src/guestfs-actions.pod:5251 ../fish/guestfish-actions.pod:3501
12895 msgid "'f'"
12896 msgstr ""
12897
12898 # type: textblock
12899 #: ../src/guestfs-actions.pod:5253 ../fish/guestfish-actions.pod:3503
12900 msgid "FIFO (named pipe)"
12901 msgstr ""
12902
12903 # type: =item
12904 #: ../src/guestfs-actions.pod:5255 ../fish/guestfish-actions.pod:3505
12905 msgid "'l'"
12906 msgstr ""
12907
12908 # type: textblock
12909 #: ../src/guestfs-actions.pod:5257 ../fish/guestfish-actions.pod:3507
12910 msgid "Symbolic link"
12911 msgstr ""
12912
12913 # type: =item
12914 #: ../src/guestfs-actions.pod:5259 ../fish/guestfish-actions.pod:3509
12915 msgid "'r'"
12916 msgstr ""
12917
12918 # type: textblock
12919 #: ../src/guestfs-actions.pod:5261 ../fish/guestfish-actions.pod:3511
12920 msgid "Regular file"
12921 msgstr ""
12922
12923 # type: =item
12924 #: ../src/guestfs-actions.pod:5263 ../fish/guestfish-actions.pod:3513
12925 msgid "'s'"
12926 msgstr ""
12927
12928 # type: textblock
12929 #: ../src/guestfs-actions.pod:5265 ../fish/guestfish-actions.pod:3515
12930 msgid "Socket"
12931 msgstr ""
12932
12933 # type: =item
12934 #: ../src/guestfs-actions.pod:5267 ../fish/guestfish-actions.pod:3517
12935 msgid "'u'"
12936 msgstr ""
12937
12938 # type: textblock
12939 #: ../src/guestfs-actions.pod:5269 ../fish/guestfish-actions.pod:3519
12940 msgid "Unknown file type"
12941 msgstr ""
12942
12943 # type: =item
12944 #: ../src/guestfs-actions.pod:5271 ../fish/guestfish-actions.pod:3521
12945 msgid "'?'"
12946 msgstr ""
12947
12948 # type: textblock
12949 #: ../src/guestfs-actions.pod:5273 ../fish/guestfish-actions.pod:3523
12950 msgid "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
12951 msgstr ""
12952
12953 # type: textblock
12954 #: ../src/guestfs-actions.pod:5278
12955 msgid ""
12956 "This function is primarily intended for use by programs.  To get a simple "
12957 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
12958 "consumption, use C<guestfs_ll>."
12959 msgstr ""
12960
12961 # type: textblock
12962 #: ../src/guestfs-actions.pod:5282
12963 msgid ""
12964 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
12965 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after "
12966 "use>."
12967 msgstr ""
12968
12969 # type: =head2
12970 #: ../src/guestfs-actions.pod:5288
12971 msgid "guestfs_readlink"
12972 msgstr ""
12973
12974 # type: verbatim
12975 #: ../src/guestfs-actions.pod:5290
12976 #, no-wrap
12977 msgid ""
12978 " char *\n"
12979 " guestfs_readlink (guestfs_h *g,\n"
12980 "                   const char *path);\n"
12981 "\n"
12982 msgstr ""
12983
12984 # type: textblock
12985 #: ../src/guestfs-actions.pod:5294 ../fish/guestfish-actions.pod:3536
12986 msgid "This command reads the target of a symbolic link."
12987 msgstr ""
12988
12989 # type: =head2
12990 #: ../src/guestfs-actions.pod:5301
12991 msgid "guestfs_readlinklist"
12992 msgstr ""
12993
12994 # type: verbatim
12995 #: ../src/guestfs-actions.pod:5303
12996 #, no-wrap
12997 msgid ""
12998 " char **\n"
12999 " guestfs_readlinklist (guestfs_h *g,\n"
13000 "                       const char *path,\n"
13001 "                       char *const *names);\n"
13002 "\n"
13003 msgstr ""
13004
13005 # type: textblock
13006 #: ../src/guestfs-actions.pod:5308 ../fish/guestfish-actions.pod:3542
13007 msgid ""
13008 "This call allows you to do a C<readlink> operation on multiple files, where "
13009 "all files are in the directory C<path>.  C<names> is the list of files from "
13010 "this directory."
13011 msgstr ""
13012
13013 # type: textblock
13014 #: ../src/guestfs-actions.pod:5312 ../fish/guestfish-actions.pod:3546
13015 msgid ""
13016 "On return you get a list of strings, with a one-to-one correspondence to the "
13017 "C<names> list.  Each string is the value of the symbolic link."
13018 msgstr ""
13019
13020 # type: textblock
13021 #: ../src/guestfs-actions.pod:5316 ../fish/guestfish-actions.pod:3550
13022 msgid ""
13023 "If the C<readlink(2)> operation fails on any name, then the corresponding "
13024 "result string is the empty string C<\"\">.  However the whole operation is "
13025 "completed even if there were C<readlink(2)> errors, and so you can call this "
13026 "function with names where you don't know if they are symbolic links already "
13027 "(albeit slightly less efficient)."
13028 msgstr ""
13029
13030 # type: textblock
13031 #: ../src/guestfs-actions.pod:5323 ../fish/guestfish-actions.pod:3557
13032 msgid ""
13033 "This call is intended for programs that want to efficiently list a directory "
13034 "contents without making many round-trips.  Very long directory listings "
13035 "might cause the protocol message size to be exceeded, causing this call to "
13036 "fail.  The caller must split up such requests into smaller groups of names."
13037 msgstr ""
13038
13039 # type: =head2
13040 #: ../src/guestfs-actions.pod:5336
13041 msgid "guestfs_realpath"
13042 msgstr ""
13043
13044 # type: verbatim
13045 #: ../src/guestfs-actions.pod:5338
13046 #, no-wrap
13047 msgid ""
13048 " char *\n"
13049 " guestfs_realpath (guestfs_h *g,\n"
13050 "                   const char *path);\n"
13051 "\n"
13052 msgstr ""
13053
13054 # type: textblock
13055 #: ../src/guestfs-actions.pod:5342 ../fish/guestfish-actions.pod:3568
13056 msgid ""
13057 "Return the canonicalized absolute pathname of C<path>.  The returned path "
13058 "has no C<.>, C<..> or symbolic link path elements."
13059 msgstr ""
13060
13061 # type: =head2
13062 #: ../src/guestfs-actions.pod:5350
13063 msgid "guestfs_removexattr"
13064 msgstr ""
13065
13066 # type: verbatim
13067 #: ../src/guestfs-actions.pod:5352
13068 #, no-wrap
13069 msgid ""
13070 " int\n"
13071 " guestfs_removexattr (guestfs_h *g,\n"
13072 "                      const char *xattr,\n"
13073 "                      const char *path);\n"
13074 "\n"
13075 msgstr ""
13076
13077 # type: textblock
13078 #: ../src/guestfs-actions.pod:5357 ../fish/guestfish-actions.pod:3575
13079 msgid "This call removes the extended attribute named C<xattr> of the file C<path>."
13080 msgstr ""
13081
13082 # type: textblock
13083 #: ../src/guestfs-actions.pod:5360
13084 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
13085 msgstr ""
13086
13087 # type: =head2
13088 #: ../src/guestfs-actions.pod:5366
13089 msgid "guestfs_resize2fs"
13090 msgstr ""
13091
13092 # type: verbatim
13093 #: ../src/guestfs-actions.pod:5368
13094 #, no-wrap
13095 msgid ""
13096 " int\n"
13097 " guestfs_resize2fs (guestfs_h *g,\n"
13098 "                    const char *device);\n"
13099 "\n"
13100 msgstr ""
13101
13102 # type: textblock
13103 #: ../src/guestfs-actions.pod:5372 ../fish/guestfish-actions.pod:3584
13104 msgid ""
13105 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
13106 "underlying device."
13107 msgstr ""
13108
13109 # type: textblock
13110 #: ../src/guestfs-actions.pod:5375
13111 msgid ""
13112 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
13113 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
13114 "sometimes gives an error about this and sometimes not.  In any case, it is "
13115 "always safe to call C<guestfs_e2fsck_f> before calling this function."
13116 msgstr ""
13117
13118 # type: =head2
13119 #: ../src/guestfs-actions.pod:5385
13120 msgid "guestfs_resize2fs_size"
13121 msgstr ""
13122
13123 # type: verbatim
13124 #: ../src/guestfs-actions.pod:5387
13125 #, no-wrap
13126 msgid ""
13127 " int\n"
13128 " guestfs_resize2fs_size (guestfs_h *g,\n"
13129 "                         const char *device,\n"
13130 "                         int64_t size);\n"
13131 "\n"
13132 msgstr ""
13133
13134 # type: textblock
13135 #: ../src/guestfs-actions.pod:5392
13136 msgid ""
13137 "This command is the same as C<guestfs_resize2fs> except that it allows you "
13138 "to specify the new size (in bytes) explicitly."
13139 msgstr ""
13140
13141 # type: =head2
13142 #: ../src/guestfs-actions.pod:5399
13143 msgid "guestfs_rm"
13144 msgstr ""
13145
13146 # type: verbatim
13147 #: ../src/guestfs-actions.pod:5401
13148 #, no-wrap
13149 msgid ""
13150 " int\n"
13151 " guestfs_rm (guestfs_h *g,\n"
13152 "             const char *path);\n"
13153 "\n"
13154 msgstr ""
13155
13156 # type: textblock
13157 #: ../src/guestfs-actions.pod:5405 ../fish/guestfish-actions.pod:3604
13158 msgid "Remove the single file C<path>."
13159 msgstr ""
13160
13161 # type: =head2
13162 #: ../src/guestfs-actions.pod:5411
13163 msgid "guestfs_rm_rf"
13164 msgstr ""
13165
13166 # type: verbatim
13167 #: ../src/guestfs-actions.pod:5413
13168 #, no-wrap
13169 msgid ""
13170 " int\n"
13171 " guestfs_rm_rf (guestfs_h *g,\n"
13172 "                const char *path);\n"
13173 "\n"
13174 msgstr ""
13175
13176 # type: textblock
13177 #: ../src/guestfs-actions.pod:5417 ../fish/guestfish-actions.pod:3610
13178 msgid ""
13179 "Remove the file or directory C<path>, recursively removing the contents if "
13180 "its a directory.  This is like the C<rm -rf> shell command."
13181 msgstr ""
13182
13183 # type: =head2
13184 #: ../src/guestfs-actions.pod:5425
13185 msgid "guestfs_rmdir"
13186 msgstr ""
13187
13188 # type: verbatim
13189 #: ../src/guestfs-actions.pod:5427
13190 #, no-wrap
13191 msgid ""
13192 " int\n"
13193 " guestfs_rmdir (guestfs_h *g,\n"
13194 "                const char *path);\n"
13195 "\n"
13196 msgstr ""
13197
13198 # type: textblock
13199 #: ../src/guestfs-actions.pod:5431 ../fish/guestfish-actions.pod:3618
13200 msgid "Remove the single directory C<path>."
13201 msgstr ""
13202
13203 # type: =head2
13204 #: ../src/guestfs-actions.pod:5437
13205 msgid "guestfs_rmmountpoint"
13206 msgstr ""
13207
13208 # type: verbatim
13209 #: ../src/guestfs-actions.pod:5439
13210 #, no-wrap
13211 msgid ""
13212 " int\n"
13213 " guestfs_rmmountpoint (guestfs_h *g,\n"
13214 "                       const char *exemptpath);\n"
13215 "\n"
13216 msgstr ""
13217
13218 # type: textblock
13219 #: ../src/guestfs-actions.pod:5443
13220 msgid ""
13221 "This calls removes a mountpoint that was previously created with "
13222 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
13223 msgstr ""
13224
13225 # type: =head2
13226 #: ../src/guestfs-actions.pod:5451
13227 msgid "guestfs_scrub_device"
13228 msgstr ""
13229
13230 # type: verbatim
13231 #: ../src/guestfs-actions.pod:5453
13232 #, no-wrap
13233 msgid ""
13234 " int\n"
13235 " guestfs_scrub_device (guestfs_h *g,\n"
13236 "                       const char *device);\n"
13237 "\n"
13238 msgstr ""
13239
13240 # type: textblock
13241 #: ../src/guestfs-actions.pod:5457 ../fish/guestfish-actions.pod:3632
13242 msgid ""
13243 "This command writes patterns over C<device> to make data retrieval more "
13244 "difficult."
13245 msgstr ""
13246
13247 # type: textblock
13248 #: ../src/guestfs-actions.pod:5460 ../src/guestfs-actions.pod:5481 ../src/guestfs-actions.pod:5500 ../fish/guestfish-actions.pod:3635 ../fish/guestfish-actions.pod:3650 ../fish/guestfish-actions.pod:3663
13249 msgid ""
13250 "It is an interface to the L<scrub(1)> program.  See that manual page for "
13251 "more details."
13252 msgstr ""
13253
13254 # type: textblock
13255 #: ../src/guestfs-actions.pod:5468 ../src/guestfs-actions.pod:5486 ../src/guestfs-actions.pod:5505
13256 msgid "(Added in 1.0.52)"
13257 msgstr ""
13258
13259 # type: =head2
13260 #: ../src/guestfs-actions.pod:5470
13261 msgid "guestfs_scrub_file"
13262 msgstr ""
13263
13264 # type: verbatim
13265 #: ../src/guestfs-actions.pod:5472
13266 #, no-wrap
13267 msgid ""
13268 " int\n"
13269 " guestfs_scrub_file (guestfs_h *g,\n"
13270 "                     const char *file);\n"
13271 "\n"
13272 msgstr ""
13273
13274 # type: textblock
13275 #: ../src/guestfs-actions.pod:5476 ../fish/guestfish-actions.pod:3645
13276 msgid ""
13277 "This command writes patterns over a file to make data retrieval more "
13278 "difficult."
13279 msgstr ""
13280
13281 # type: textblock
13282 #: ../src/guestfs-actions.pod:5479 ../fish/guestfish-actions.pod:3648
13283 msgid "The file is I<removed> after scrubbing."
13284 msgstr ""
13285
13286 # type: =head2
13287 #: ../src/guestfs-actions.pod:5488
13288 msgid "guestfs_scrub_freespace"
13289 msgstr ""
13290
13291 # type: verbatim
13292 #: ../src/guestfs-actions.pod:5490
13293 #, no-wrap
13294 msgid ""
13295 " int\n"
13296 " guestfs_scrub_freespace (guestfs_h *g,\n"
13297 "                          const char *dir);\n"
13298 "\n"
13299 msgstr ""
13300
13301 # type: textblock
13302 #: ../src/guestfs-actions.pod:5494
13303 msgid ""
13304 "This command creates the directory C<dir> and then fills it with files until "
13305 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
13306 "and deletes them.  The intention is to scrub any free space on the partition "
13307 "containing C<dir>."
13308 msgstr ""
13309
13310 # type: =head2
13311 #: ../src/guestfs-actions.pod:5507
13312 msgid "guestfs_set_append"
13313 msgstr ""
13314
13315 # type: verbatim
13316 #: ../src/guestfs-actions.pod:5509
13317 #, no-wrap
13318 msgid ""
13319 " int\n"
13320 " guestfs_set_append (guestfs_h *g,\n"
13321 "                     const char *append);\n"
13322 "\n"
13323 msgstr ""
13324
13325 # type: textblock
13326 #: ../src/guestfs-actions.pod:5513 ../fish/guestfish-actions.pod:3672
13327 msgid ""
13328 "This function is used to add additional options to the guest kernel command "
13329 "line."
13330 msgstr ""
13331
13332 # type: textblock
13333 #: ../src/guestfs-actions.pod:5516 ../fish/guestfish-actions.pod:3675
13334 msgid ""
13335 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
13336 "environment variable."
13337 msgstr ""
13338
13339 # type: textblock
13340 #: ../src/guestfs-actions.pod:5519 ../fish/guestfish-actions.pod:3678
13341 msgid ""
13342 "Setting C<append> to C<NULL> means I<no> additional options are passed "
13343 "(libguestfs always adds a few of its own)."
13344 msgstr ""
13345
13346 # type: =head2
13347 #: ../src/guestfs-actions.pod:5526
13348 msgid "guestfs_set_autosync"
13349 msgstr ""
13350
13351 # type: verbatim
13352 #: ../src/guestfs-actions.pod:5528
13353 #, no-wrap
13354 msgid ""
13355 " int\n"
13356 " guestfs_set_autosync (guestfs_h *g,\n"
13357 "                       int autosync);\n"
13358 "\n"
13359 msgstr ""
13360
13361 # type: textblock
13362 #: ../src/guestfs-actions.pod:5532
13363 msgid ""
13364 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
13365 "effort attempt to run C<guestfs_umount_all> followed by C<guestfs_sync> when "
13366 "the handle is closed (also if the program exits without closing handles)."
13367 msgstr ""
13368
13369 # type: textblock
13370 #: ../src/guestfs-actions.pod:5537 ../fish/guestfish-actions.pod:3692
13371 msgid ""
13372 "This is enabled by default (since libguestfs 1.5.24, previously it was "
13373 "disabled by default)."
13374 msgstr ""
13375
13376 # type: =head2
13377 #: ../src/guestfs-actions.pod:5544
13378 msgid "guestfs_set_direct"
13379 msgstr ""
13380
13381 # type: verbatim
13382 #: ../src/guestfs-actions.pod:5546
13383 #, no-wrap
13384 msgid ""
13385 " int\n"
13386 " guestfs_set_direct (guestfs_h *g,\n"
13387 "                     int direct);\n"
13388 "\n"
13389 msgstr ""
13390
13391 # type: textblock
13392 #: ../src/guestfs-actions.pod:5550 ../fish/guestfish-actions.pod:3701
13393 msgid ""
13394 "If the direct appliance mode flag is enabled, then stdin and stdout are "
13395 "passed directly through to the appliance once it is launched."
13396 msgstr ""
13397
13398 # type: textblock
13399 #: ../src/guestfs-actions.pod:5554
13400 msgid ""
13401 "One consequence of this is that log messages aren't caught by the library "
13402 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
13403 "stdout."
13404 msgstr ""
13405
13406 # type: textblock
13407 #: ../src/guestfs-actions.pod:5558 ../fish/guestfish-actions.pod:3709
13408 msgid "You probably don't want to use this unless you know what you are doing."
13409 msgstr ""
13410
13411 # type: textblock
13412 #: ../src/guestfs-actions.pod:5561 ../fish/guestfish-actions.pod:3712
13413 msgid "The default is disabled."
13414 msgstr ""
13415
13416 # type: =head2
13417 #: ../src/guestfs-actions.pod:5567
13418 msgid "guestfs_set_e2label"
13419 msgstr ""
13420
13421 # type: verbatim
13422 #: ../src/guestfs-actions.pod:5569
13423 #, no-wrap
13424 msgid ""
13425 " int\n"
13426 " guestfs_set_e2label (guestfs_h *g,\n"
13427 "                      const char *device,\n"
13428 "                      const char *label);\n"
13429 "\n"
13430 msgstr ""
13431
13432 # type: textblock
13433 #: ../src/guestfs-actions.pod:5574 ../fish/guestfish-actions.pod:3718
13434 msgid ""
13435 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
13436 "C<label>.  Filesystem labels are limited to 16 characters."
13437 msgstr ""
13438
13439 # type: textblock
13440 #: ../src/guestfs-actions.pod:5578
13441 msgid ""
13442 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
13443 "the existing label on a filesystem."
13444 msgstr ""
13445
13446 # type: =head2
13447 #: ../src/guestfs-actions.pod:5585
13448 msgid "guestfs_set_e2uuid"
13449 msgstr ""
13450
13451 # type: verbatim
13452 #: ../src/guestfs-actions.pod:5587
13453 #, no-wrap
13454 msgid ""
13455 " int\n"
13456 " guestfs_set_e2uuid (guestfs_h *g,\n"
13457 "                     const char *device,\n"
13458 "                     const char *uuid);\n"
13459 "\n"
13460 msgstr ""
13461
13462 # type: textblock
13463 #: ../src/guestfs-actions.pod:5592 ../fish/guestfish-actions.pod:3729
13464 msgid ""
13465 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
13466 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
13467 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
13468 msgstr ""
13469
13470 # type: textblock
13471 #: ../src/guestfs-actions.pod:5597
13472 msgid ""
13473 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
13474 "the existing UUID of a filesystem."
13475 msgstr ""
13476
13477 # type: =head2
13478 #: ../src/guestfs-actions.pod:5604
13479 msgid "guestfs_set_memsize"
13480 msgstr ""
13481
13482 # type: verbatim
13483 #: ../src/guestfs-actions.pod:5606
13484 #, no-wrap
13485 msgid ""
13486 " int\n"
13487 " guestfs_set_memsize (guestfs_h *g,\n"
13488 "                      int memsize);\n"
13489 "\n"
13490 msgstr ""
13491
13492 # type: textblock
13493 #: ../src/guestfs-actions.pod:5610
13494 msgid ""
13495 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
13496 "This only has any effect if called before C<guestfs_launch>."
13497 msgstr ""
13498
13499 # type: textblock
13500 #: ../src/guestfs-actions.pod:5614 ../fish/guestfish-actions.pod:3747
13501 msgid ""
13502 "You can also change this by setting the environment variable "
13503 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
13504 msgstr ""
13505
13506 # type: =head2
13507 #: ../src/guestfs-actions.pod:5625
13508 msgid "guestfs_set_network"
13509 msgstr ""
13510
13511 # type: verbatim
13512 #: ../src/guestfs-actions.pod:5627
13513 #, no-wrap
13514 msgid ""
13515 " int\n"
13516 " guestfs_set_network (guestfs_h *g,\n"
13517 "                      int network);\n"
13518 "\n"
13519 msgstr ""
13520
13521 # type: textblock
13522 #: ../src/guestfs-actions.pod:5631 ../fish/guestfish-actions.pod:3760
13523 msgid ""
13524 "If C<network> is true, then the network is enabled in the libguestfs "
13525 "appliance.  The default is false."
13526 msgstr ""
13527
13528 # type: textblock
13529 #: ../src/guestfs-actions.pod:5634 ../fish/guestfish-actions.pod:3763
13530 msgid ""
13531 "This affects whether commands are able to access the network (see "
13532 "L<guestfs(3)/RUNNING COMMANDS>)."
13533 msgstr ""
13534
13535 # type: textblock
13536 #: ../src/guestfs-actions.pod:5637
13537 msgid ""
13538 "You must call this before calling C<guestfs_launch>, otherwise it has no "
13539 "effect."
13540 msgstr ""
13541
13542 # type: =head2
13543 #: ../src/guestfs-actions.pod:5644
13544 msgid "guestfs_set_path"
13545 msgstr ""
13546
13547 # type: verbatim
13548 #: ../src/guestfs-actions.pod:5646
13549 #, no-wrap
13550 msgid ""
13551 " int\n"
13552 " guestfs_set_path (guestfs_h *g,\n"
13553 "                   const char *searchpath);\n"
13554 "\n"
13555 msgstr ""
13556
13557 # type: textblock
13558 #: ../src/guestfs-actions.pod:5650 ../fish/guestfish-actions.pod:3775
13559 msgid "Set the path that libguestfs searches for kernel and initrd.img."
13560 msgstr ""
13561
13562 # type: textblock
13563 #: ../src/guestfs-actions.pod:5652 ../fish/guestfish-actions.pod:3777
13564 msgid ""
13565 "The default is C<$libdir/guestfs> unless overridden by setting "
13566 "C<LIBGUESTFS_PATH> environment variable."
13567 msgstr ""
13568
13569 # type: textblock
13570 #: ../src/guestfs-actions.pod:5655 ../fish/guestfish-actions.pod:3780
13571 msgid "Setting C<path> to C<NULL> restores the default path."
13572 msgstr ""
13573
13574 # type: =head2
13575 #: ../src/guestfs-actions.pod:5661
13576 msgid "guestfs_set_qemu"
13577 msgstr ""
13578
13579 # type: verbatim
13580 #: ../src/guestfs-actions.pod:5663
13581 #, no-wrap
13582 msgid ""
13583 " int\n"
13584 " guestfs_set_qemu (guestfs_h *g,\n"
13585 "                   const char *qemu);\n"
13586 "\n"
13587 msgstr ""
13588
13589 # type: textblock
13590 #: ../src/guestfs-actions.pod:5667 ../fish/guestfish-actions.pod:3788
13591 msgid "Set the qemu binary that we will use."
13592 msgstr ""
13593
13594 # type: textblock
13595 #: ../src/guestfs-actions.pod:5669 ../fish/guestfish-actions.pod:3790
13596 msgid "The default is chosen when the library was compiled by the configure script."
13597 msgstr ""
13598
13599 # type: textblock
13600 #: ../src/guestfs-actions.pod:5672 ../fish/guestfish-actions.pod:3793
13601 msgid ""
13602 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
13603 "variable."
13604 msgstr ""
13605
13606 # type: textblock
13607 #: ../src/guestfs-actions.pod:5675 ../fish/guestfish-actions.pod:3796
13608 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
13609 msgstr ""
13610
13611 # type: textblock
13612 #: ../src/guestfs-actions.pod:5677 ../fish/guestfish-actions.pod:3798
13613 msgid ""
13614 "Note that you should call this function as early as possible after creating "
13615 "the handle.  This is because some pre-launch operations depend on testing "
13616 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
13617 "don't retest features, and so you might see inconsistent results.  Using the "
13618 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
13619 "the qemu binary at the same time as the handle is created."
13620 msgstr ""
13621
13622 # type: =head2
13623 #: ../src/guestfs-actions.pod:5689
13624 msgid "guestfs_set_recovery_proc"
13625 msgstr ""
13626
13627 # type: verbatim
13628 #: ../src/guestfs-actions.pod:5691
13629 #, no-wrap
13630 msgid ""
13631 " int\n"
13632 " guestfs_set_recovery_proc (guestfs_h *g,\n"
13633 "                            int recoveryproc);\n"
13634 "\n"
13635 msgstr ""
13636
13637 # type: textblock
13638 #: ../src/guestfs-actions.pod:5695
13639 msgid ""
13640 "If this is called with the parameter C<false> then C<guestfs_launch> does "
13641 "not create a recovery process.  The purpose of the recovery process is to "
13642 "stop runaway qemu processes in the case where the main program aborts "
13643 "abruptly."
13644 msgstr ""
13645
13646 # type: textblock
13647 #: ../src/guestfs-actions.pod:5700
13648 msgid ""
13649 "This only has any effect if called before C<guestfs_launch>, and the default "
13650 "is true."
13651 msgstr ""
13652
13653 # type: textblock
13654 #: ../src/guestfs-actions.pod:5703 ../fish/guestfish-actions.pod:3820
13655 msgid ""
13656 "About the only time when you would want to disable this is if the main "
13657 "process will fork itself into the background (\"daemonize\" itself).  In "
13658 "this case the recovery process thinks that the main program has disappeared "
13659 "and so kills qemu, which is not very helpful."
13660 msgstr ""
13661
13662 # type: =head2
13663 #: ../src/guestfs-actions.pod:5713
13664 msgid "guestfs_set_selinux"
13665 msgstr ""
13666
13667 # type: verbatim
13668 #: ../src/guestfs-actions.pod:5715
13669 #, no-wrap
13670 msgid ""
13671 " int\n"
13672 " guestfs_set_selinux (guestfs_h *g,\n"
13673 "                      int selinux);\n"
13674 "\n"
13675 msgstr ""
13676
13677 # type: textblock
13678 #: ../src/guestfs-actions.pod:5719 ../fish/guestfish-actions.pod:3832
13679 msgid ""
13680 "This sets the selinux flag that is passed to the appliance at boot time.  "
13681 "The default is C<selinux=0> (disabled)."
13682 msgstr ""
13683
13684 # type: textblock
13685 #: ../src/guestfs-actions.pod:5722 ../fish/guestfish-actions.pod:3835
13686 msgid ""
13687 "Note that if SELinux is enabled, it is always in Permissive mode "
13688 "(C<enforcing=0>)."
13689 msgstr ""
13690
13691 # type: =head2
13692 #: ../src/guestfs-actions.pod:5732
13693 msgid "guestfs_set_trace"
13694 msgstr ""
13695
13696 # type: verbatim
13697 #: ../src/guestfs-actions.pod:5734
13698 #, no-wrap
13699 msgid ""
13700 " int\n"
13701 " guestfs_set_trace (guestfs_h *g,\n"
13702 "                    int trace);\n"
13703 "\n"
13704 msgstr ""
13705
13706 # type: textblock
13707 #: ../src/guestfs-actions.pod:5738 ../fish/guestfish-actions.pod:3847
13708 msgid ""
13709 "If the command trace flag is set to 1, then commands are printed on stderr "
13710 "before they are executed in a format which is very similar to the one used "
13711 "by guestfish.  In other words, you can run a program with this enabled, and "
13712 "you will get out a script which you can feed to guestfish to perform the "
13713 "same set of actions."
13714 msgstr ""
13715
13716 # type: textblock
13717 #: ../src/guestfs-actions.pod:5745 ../fish/guestfish-actions.pod:3854
13718 msgid ""
13719 "If you want to trace C API calls into libguestfs (and other libraries) then "
13720 "possibly a better way is to use the external ltrace(1) command."
13721 msgstr ""
13722
13723 # type: textblock
13724 #: ../src/guestfs-actions.pod:5749 ../fish/guestfish-actions.pod:3858
13725 msgid ""
13726 "Command traces are disabled unless the environment variable "
13727 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
13728 msgstr ""
13729
13730 # type: =head2
13731 #: ../src/guestfs-actions.pod:5756
13732 msgid "guestfs_set_verbose"
13733 msgstr ""
13734
13735 # type: verbatim
13736 #: ../src/guestfs-actions.pod:5758
13737 #, no-wrap
13738 msgid ""
13739 " int\n"
13740 " guestfs_set_verbose (guestfs_h *g,\n"
13741 "                      int verbose);\n"
13742 "\n"
13743 msgstr ""
13744
13745 # type: textblock
13746 #: ../src/guestfs-actions.pod:5762 ../fish/guestfish-actions.pod:3867
13747 msgid "If C<verbose> is true, this turns on verbose messages (to C<stderr>)."
13748 msgstr ""
13749
13750 # type: textblock
13751 #: ../src/guestfs-actions.pod:5764 ../fish/guestfish-actions.pod:3869
13752 msgid ""
13753 "Verbose messages are disabled unless the environment variable "
13754 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
13755 msgstr ""
13756
13757 # type: =head2
13758 #: ../src/guestfs-actions.pod:5771
13759 msgid "guestfs_setcon"
13760 msgstr ""
13761
13762 # type: verbatim
13763 #: ../src/guestfs-actions.pod:5773
13764 #, no-wrap
13765 msgid ""
13766 " int\n"
13767 " guestfs_setcon (guestfs_h *g,\n"
13768 "                 const char *context);\n"
13769 "\n"
13770 msgstr ""
13771
13772 # type: textblock
13773 #: ../src/guestfs-actions.pod:5777 ../fish/guestfish-actions.pod:3876
13774 msgid ""
13775 "This sets the SELinux security context of the daemon to the string "
13776 "C<context>."
13777 msgstr ""
13778
13779 # type: textblock
13780 #: ../src/guestfs-actions.pod:5780 ../fish/guestfish-actions.pod:3879
13781 msgid "See the documentation about SELINUX in L<guestfs(3)>."
13782 msgstr ""
13783
13784 # type: =head2
13785 #: ../src/guestfs-actions.pod:5786
13786 msgid "guestfs_setxattr"
13787 msgstr ""
13788
13789 # type: verbatim
13790 #: ../src/guestfs-actions.pod:5788
13791 #, no-wrap
13792 msgid ""
13793 " int\n"
13794 " guestfs_setxattr (guestfs_h *g,\n"
13795 "                   const char *xattr,\n"
13796 "                   const char *val,\n"
13797 "                   int vallen,\n"
13798 "                   const char *path);\n"
13799 "\n"
13800 msgstr ""
13801
13802 # type: textblock
13803 #: ../src/guestfs-actions.pod:5795 ../fish/guestfish-actions.pod:3885
13804 msgid ""
13805 "This call sets the extended attribute named C<xattr> of the file C<path> to "
13806 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
13807 msgstr ""
13808
13809 # type: textblock
13810 #: ../src/guestfs-actions.pod:5799
13811 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
13812 msgstr ""
13813
13814 # type: =head2
13815 #: ../src/guestfs-actions.pod:5805
13816 msgid "guestfs_sfdisk"
13817 msgstr ""
13818
13819 # type: verbatim
13820 #: ../src/guestfs-actions.pod:5807
13821 #, no-wrap
13822 msgid ""
13823 " int\n"
13824 " guestfs_sfdisk (guestfs_h *g,\n"
13825 "                 const char *device,\n"
13826 "                 int cyls,\n"
13827 "                 int heads,\n"
13828 "                 int sectors,\n"
13829 "                 char *const *lines);\n"
13830 "\n"
13831 msgstr ""
13832
13833 # type: textblock
13834 #: ../src/guestfs-actions.pod:5815 ../fish/guestfish-actions.pod:3895
13835 msgid ""
13836 "This is a direct interface to the L<sfdisk(8)> program for creating "
13837 "partitions on block devices."
13838 msgstr ""
13839
13840 # type: textblock
13841 #: ../src/guestfs-actions.pod:5818 ../fish/guestfish-actions.pod:3898
13842 msgid "C<device> should be a block device, for example C</dev/sda>."
13843 msgstr ""
13844
13845 # type: textblock
13846 #: ../src/guestfs-actions.pod:5820 ../fish/guestfish-actions.pod:3900
13847 msgid ""
13848 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
13849 "sectors on the device, which are passed directly to sfdisk as the I<-C>, "
13850 "I<-H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
13851 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
13852 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
13853 "the kernel) cannot work out the right geometry and you will need to tell it."
13854 msgstr ""
13855
13856 # type: textblock
13857 #: ../src/guestfs-actions.pod:5828 ../fish/guestfish-actions.pod:3908
13858 msgid ""
13859 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
13860 "refer to the L<sfdisk(8)> manpage."
13861 msgstr ""
13862
13863 # type: textblock
13864 #: ../src/guestfs-actions.pod:5831 ../fish/guestfish-actions.pod:3911
13865 msgid ""
13866 "To create a single partition occupying the whole disk, you would pass "
13867 "C<lines> as a single element list, when the single element being the string "
13868 "C<,> (comma)."
13869 msgstr ""
13870
13871 # type: textblock
13872 #: ../src/guestfs-actions.pod:5835
13873 msgid "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
13874 msgstr ""
13875
13876 # type: =head2
13877 #: ../src/guestfs-actions.pod:5845
13878 msgid "guestfs_sfdiskM"
13879 msgstr ""
13880
13881 # type: verbatim
13882 #: ../src/guestfs-actions.pod:5847
13883 #, no-wrap
13884 msgid ""
13885 " int\n"
13886 " guestfs_sfdiskM (guestfs_h *g,\n"
13887 "                  const char *device,\n"
13888 "                  char *const *lines);\n"
13889 "\n"
13890 msgstr ""
13891
13892 # type: textblock
13893 #: ../src/guestfs-actions.pod:5852
13894 msgid ""
13895 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
13896 "partition sizes are specified in megabytes only (rounded to the nearest "
13897 "cylinder) and you don't need to specify the cyls, heads and sectors "
13898 "parameters which were rarely if ever used anyway."
13899 msgstr ""
13900
13901 # type: textblock
13902 #: ../src/guestfs-actions.pod:5858
13903 msgid ""
13904 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
13905 "C<guestfs_part_disk>"
13906 msgstr ""
13907
13908 # type: =head2
13909 #: ../src/guestfs-actions.pod:5868
13910 msgid "guestfs_sfdisk_N"
13911 msgstr ""
13912
13913 # type: verbatim
13914 #: ../src/guestfs-actions.pod:5870
13915 #, no-wrap
13916 msgid ""
13917 " int\n"
13918 " guestfs_sfdisk_N (guestfs_h *g,\n"
13919 "                   const char *device,\n"
13920 "                   int partnum,\n"
13921 "                   int cyls,\n"
13922 "                   int heads,\n"
13923 "                   int sectors,\n"
13924 "                   const char *line);\n"
13925 "\n"
13926 msgstr ""
13927
13928 # type: textblock
13929 #: ../src/guestfs-actions.pod:5879 ../fish/guestfish-actions.pod:3941
13930 msgid ""
13931 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
13932 "(note: C<n> counts from 1)."
13933 msgstr ""
13934
13935 # type: textblock
13936 #: ../src/guestfs-actions.pod:5882
13937 msgid ""
13938 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
13939 "for the cyls/heads/sectors parameters."
13940 msgstr ""
13941
13942 # type: textblock
13943 #: ../src/guestfs-actions.pod:5885
13944 msgid "See also: C<guestfs_part_add>"
13945 msgstr ""
13946
13947 # type: =head2
13948 #: ../src/guestfs-actions.pod:5894
13949 msgid "guestfs_sfdisk_disk_geometry"
13950 msgstr ""
13951
13952 # type: verbatim
13953 #: ../src/guestfs-actions.pod:5896
13954 #, no-wrap
13955 msgid ""
13956 " char *\n"
13957 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
13958 "                               const char *device);\n"
13959 "\n"
13960 msgstr ""
13961
13962 # type: textblock
13963 #: ../src/guestfs-actions.pod:5900
13964 msgid ""
13965 "This displays the disk geometry of C<device> read from the partition table.  "
13966 "Especially in the case where the underlying block device has been resized, "
13967 "this can be different from the kernel's idea of the geometry (see "
13968 "C<guestfs_sfdisk_kernel_geometry>)."
13969 msgstr ""
13970
13971 # type: textblock
13972 #: ../src/guestfs-actions.pod:5905 ../src/guestfs-actions.pod:5921 ../fish/guestfish-actions.pod:3961 ../fish/guestfish-actions.pod:3970
13973 msgid "The result is in human-readable format, and not designed to be parsed."
13974 msgstr ""
13975
13976 # type: =head2
13977 #: ../src/guestfs-actions.pod:5913
13978 msgid "guestfs_sfdisk_kernel_geometry"
13979 msgstr ""
13980
13981 # type: verbatim
13982 #: ../src/guestfs-actions.pod:5915
13983 #, no-wrap
13984 msgid ""
13985 " char *\n"
13986 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
13987 "                                 const char *device);\n"
13988 "\n"
13989 msgstr ""
13990
13991 # type: textblock
13992 #: ../src/guestfs-actions.pod:5919 ../fish/guestfish-actions.pod:3968
13993 msgid "This displays the kernel's idea of the geometry of C<device>."
13994 msgstr ""
13995
13996 # type: =head2
13997 #: ../src/guestfs-actions.pod:5929
13998 msgid "guestfs_sfdisk_l"
13999 msgstr ""
14000
14001 # type: verbatim
14002 #: ../src/guestfs-actions.pod:5931
14003 #, no-wrap
14004 msgid ""
14005 " char *\n"
14006 " guestfs_sfdisk_l (guestfs_h *g,\n"
14007 "                   const char *device);\n"
14008 "\n"
14009 msgstr ""
14010
14011 # type: textblock
14012 #: ../src/guestfs-actions.pod:5935 ../fish/guestfish-actions.pod:3977
14013 msgid ""
14014 "This displays the partition table on C<device>, in the human-readable output "
14015 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
14016 msgstr ""
14017
14018 # type: textblock
14019 #: ../src/guestfs-actions.pod:5939
14020 msgid "See also: C<guestfs_part_list>"
14021 msgstr ""
14022
14023 # type: =head2
14024 #: ../src/guestfs-actions.pod:5946
14025 msgid "guestfs_sh"
14026 msgstr ""
14027
14028 # type: verbatim
14029 #: ../src/guestfs-actions.pod:5948
14030 #, no-wrap
14031 msgid ""
14032 " char *\n"
14033 " guestfs_sh (guestfs_h *g,\n"
14034 "             const char *command);\n"
14035 "\n"
14036 msgstr ""
14037
14038 # type: textblock
14039 #: ../src/guestfs-actions.pod:5952 ../fish/guestfish-actions.pod:3987
14040 msgid ""
14041 "This call runs a command from the guest filesystem via the guest's "
14042 "C</bin/sh>."
14043 msgstr ""
14044
14045 # type: textblock
14046 #: ../src/guestfs-actions.pod:5955
14047 msgid "This is like C<guestfs_command>, but passes the command to:"
14048 msgstr ""
14049
14050 # type: verbatim
14051 #: ../src/guestfs-actions.pod:5957 ../fish/guestfish-actions.pod:3992
14052 #, no-wrap
14053 msgid ""
14054 " /bin/sh -c \"command\"\n"
14055 "\n"
14056 msgstr ""
14057
14058 # type: textblock
14059 #: ../src/guestfs-actions.pod:5959 ../fish/guestfish-actions.pod:3994
14060 msgid ""
14061 "Depending on the guest's shell, this usually results in wildcards being "
14062 "expanded, shell expressions being interpolated and so on."
14063 msgstr ""
14064
14065 # type: textblock
14066 #: ../src/guestfs-actions.pod:5963
14067 msgid "All the provisos about C<guestfs_command> apply to this call."
14068 msgstr ""
14069
14070 # type: =head2
14071 #: ../src/guestfs-actions.pod:5970
14072 msgid "guestfs_sh_lines"
14073 msgstr ""
14074
14075 # type: verbatim
14076 #: ../src/guestfs-actions.pod:5972
14077 #, no-wrap
14078 msgid ""
14079 " char **\n"
14080 " guestfs_sh_lines (guestfs_h *g,\n"
14081 "                   const char *command);\n"
14082 "\n"
14083 msgstr ""
14084
14085 # type: textblock
14086 #: ../src/guestfs-actions.pod:5976
14087 msgid ""
14088 "This is the same as C<guestfs_sh>, but splits the result into a list of "
14089 "lines."
14090 msgstr ""
14091
14092 # type: textblock
14093 #: ../src/guestfs-actions.pod:5979
14094 msgid "See also: C<guestfs_command_lines>"
14095 msgstr ""
14096
14097 # type: =head2
14098 #: ../src/guestfs-actions.pod:5987
14099 msgid "guestfs_sleep"
14100 msgstr ""
14101
14102 # type: verbatim
14103 #: ../src/guestfs-actions.pod:5989
14104 #, no-wrap
14105 msgid ""
14106 " int\n"
14107 " guestfs_sleep (guestfs_h *g,\n"
14108 "                int secs);\n"
14109 "\n"
14110 msgstr ""
14111
14112 # type: textblock
14113 #: ../src/guestfs-actions.pod:5993 ../fish/guestfish-actions.pod:4013
14114 msgid "Sleep for C<secs> seconds."
14115 msgstr ""
14116
14117 # type: textblock
14118 #: ../src/guestfs-actions.pod:5997
14119 msgid "(Added in 1.0.41)"
14120 msgstr ""
14121
14122 # type: =head2
14123 #: ../src/guestfs-actions.pod:5999 ../src/guestfs-structs.pod:109
14124 msgid "guestfs_stat"
14125 msgstr ""
14126
14127 # type: verbatim
14128 #: ../src/guestfs-actions.pod:6001
14129 #, no-wrap
14130 msgid ""
14131 " struct guestfs_stat *\n"
14132 " guestfs_stat (guestfs_h *g,\n"
14133 "               const char *path);\n"
14134 "\n"
14135 msgstr ""
14136
14137 # type: textblock
14138 #: ../src/guestfs-actions.pod:6007 ../fish/guestfish-actions.pod:4021
14139 msgid "This is the same as the C<stat(2)> system call."
14140 msgstr ""
14141
14142 # type: =head2
14143 #: ../src/guestfs-actions.pod:6015 ../src/guestfs-structs.pod:135
14144 msgid "guestfs_statvfs"
14145 msgstr ""
14146
14147 # type: verbatim
14148 #: ../src/guestfs-actions.pod:6017
14149 #, no-wrap
14150 msgid ""
14151 " struct guestfs_statvfs *\n"
14152 " guestfs_statvfs (guestfs_h *g,\n"
14153 "                  const char *path);\n"
14154 "\n"
14155 msgstr ""
14156
14157 # type: textblock
14158 #: ../src/guestfs-actions.pod:6021 ../fish/guestfish-actions.pod:4027
14159 msgid ""
14160 "Returns file system statistics for any mounted file system.  C<path> should "
14161 "be a file or directory in the mounted file system (typically it is the mount "
14162 "point itself, but it doesn't need to be)."
14163 msgstr ""
14164
14165 # type: textblock
14166 #: ../src/guestfs-actions.pod:6025 ../fish/guestfish-actions.pod:4031
14167 msgid "This is the same as the C<statvfs(2)> system call."
14168 msgstr ""
14169
14170 # type: textblock
14171 #: ../src/guestfs-actions.pod:6027
14172 msgid ""
14173 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
14174 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
14175 msgstr ""
14176
14177 # type: =head2
14178 #: ../src/guestfs-actions.pod:6033
14179 msgid "guestfs_strings"
14180 msgstr ""
14181
14182 # type: verbatim
14183 #: ../src/guestfs-actions.pod:6035
14184 #, no-wrap
14185 msgid ""
14186 " char **\n"
14187 " guestfs_strings (guestfs_h *g,\n"
14188 "                  const char *path);\n"
14189 "\n"
14190 msgstr ""
14191
14192 # type: textblock
14193 #: ../src/guestfs-actions.pod:6039 ../fish/guestfish-actions.pod:4037
14194 msgid ""
14195 "This runs the L<strings(1)> command on a file and returns the list of "
14196 "printable strings found."
14197 msgstr ""
14198
14199 # type: =head2
14200 #: ../src/guestfs-actions.pod:6051
14201 msgid "guestfs_strings_e"
14202 msgstr ""
14203
14204 # type: verbatim
14205 #: ../src/guestfs-actions.pod:6053
14206 #, no-wrap
14207 msgid ""
14208 " char **\n"
14209 " guestfs_strings_e (guestfs_h *g,\n"
14210 "                    const char *encoding,\n"
14211 "                    const char *path);\n"
14212 "\n"
14213 msgstr ""
14214
14215 # type: textblock
14216 #: ../src/guestfs-actions.pod:6058
14217 msgid ""
14218 "This is like the C<guestfs_strings> command, but allows you to specify the "
14219 "encoding of strings that are looked for in the source file C<path>."
14220 msgstr ""
14221
14222 # type: textblock
14223 #: ../src/guestfs-actions.pod:6062 ../fish/guestfish-actions.pod:4051
14224 msgid "Allowed encodings are:"
14225 msgstr ""
14226
14227 # type: =item
14228 #: ../src/guestfs-actions.pod:6066 ../fish/guestfish-actions.pod:4055
14229 msgid "s"
14230 msgstr ""
14231
14232 # type: textblock
14233 #: ../src/guestfs-actions.pod:6068
14234 msgid ""
14235 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
14236 "ISO-8859-X (this is what C<guestfs_strings> uses)."
14237 msgstr ""
14238
14239 # type: =item
14240 #: ../src/guestfs-actions.pod:6071 ../fish/guestfish-actions.pod:4060
14241 msgid "S"
14242 msgstr ""
14243
14244 # type: textblock
14245 #: ../src/guestfs-actions.pod:6073 ../fish/guestfish-actions.pod:4062
14246 msgid "Single 8-bit-byte characters."
14247 msgstr ""
14248
14249 # type: =item
14250 #: ../src/guestfs-actions.pod:6075 ../fish/guestfish-actions.pod:4064
14251 msgid "b"
14252 msgstr ""
14253
14254 # type: textblock
14255 #: ../src/guestfs-actions.pod:6077 ../fish/guestfish-actions.pod:4066
14256 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
14257 msgstr ""
14258
14259 # type: =item
14260 #: ../src/guestfs-actions.pod:6080 ../fish/guestfish-actions.pod:4069
14261 msgid "l (lower case letter L)"
14262 msgstr ""
14263
14264 # type: textblock
14265 #: ../src/guestfs-actions.pod:6082 ../fish/guestfish-actions.pod:4071
14266 msgid ""
14267 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
14268 "examining binaries in Windows guests."
14269 msgstr ""
14270
14271 # type: =item
14272 #: ../src/guestfs-actions.pod:6085 ../fish/guestfish-actions.pod:4074
14273 msgid "B"
14274 msgstr ""
14275
14276 # type: textblock
14277 #: ../src/guestfs-actions.pod:6087 ../fish/guestfish-actions.pod:4076
14278 msgid "32-bit big endian such as UCS-4BE."
14279 msgstr ""
14280
14281 # type: =item
14282 #: ../src/guestfs-actions.pod:6089 ../fish/guestfish-actions.pod:4078
14283 msgid "L"
14284 msgstr ""
14285
14286 # type: textblock
14287 #: ../src/guestfs-actions.pod:6091 ../fish/guestfish-actions.pod:4080
14288 msgid "32-bit little endian such as UCS-4LE."
14289 msgstr ""
14290
14291 # type: textblock
14292 #: ../src/guestfs-actions.pod:6095 ../fish/guestfish-actions.pod:4084
14293 msgid "The returned strings are transcoded to UTF-8."
14294 msgstr ""
14295
14296 # type: =head2
14297 #: ../src/guestfs-actions.pod:6106
14298 msgid "guestfs_swapoff_device"
14299 msgstr ""
14300
14301 # type: verbatim
14302 #: ../src/guestfs-actions.pod:6108
14303 #, no-wrap
14304 msgid ""
14305 " int\n"
14306 " guestfs_swapoff_device (guestfs_h *g,\n"
14307 "                         const char *device);\n"
14308 "\n"
14309 msgstr ""
14310
14311 # type: textblock
14312 #: ../src/guestfs-actions.pod:6112
14313 msgid ""
14314 "This command disables the libguestfs appliance swap device or partition "
14315 "named C<device>.  See C<guestfs_swapon_device>."
14316 msgstr ""
14317
14318 # type: =head2
14319 #: ../src/guestfs-actions.pod:6120
14320 msgid "guestfs_swapoff_file"
14321 msgstr ""
14322
14323 # type: verbatim
14324 #: ../src/guestfs-actions.pod:6122
14325 #, no-wrap
14326 msgid ""
14327 " int\n"
14328 " guestfs_swapoff_file (guestfs_h *g,\n"
14329 "                       const char *file);\n"
14330 "\n"
14331 msgstr ""
14332
14333 # type: textblock
14334 #: ../src/guestfs-actions.pod:6126 ../fish/guestfish-actions.pod:4101
14335 msgid "This command disables the libguestfs appliance swap on file."
14336 msgstr ""
14337
14338 # type: =head2
14339 #: ../src/guestfs-actions.pod:6132
14340 msgid "guestfs_swapoff_label"
14341 msgstr ""
14342
14343 # type: verbatim
14344 #: ../src/guestfs-actions.pod:6134
14345 #, no-wrap
14346 msgid ""
14347 " int\n"
14348 " guestfs_swapoff_label (guestfs_h *g,\n"
14349 "                        const char *label);\n"
14350 "\n"
14351 msgstr ""
14352
14353 # type: textblock
14354 #: ../src/guestfs-actions.pod:6138 ../fish/guestfish-actions.pod:4107
14355 msgid ""
14356 "This command disables the libguestfs appliance swap on labeled swap "
14357 "partition."
14358 msgstr ""
14359
14360 # type: =head2
14361 #: ../src/guestfs-actions.pod:6145
14362 msgid "guestfs_swapoff_uuid"
14363 msgstr ""
14364
14365 # type: verbatim
14366 #: ../src/guestfs-actions.pod:6147
14367 #, no-wrap
14368 msgid ""
14369 " int\n"
14370 " guestfs_swapoff_uuid (guestfs_h *g,\n"
14371 "                       const char *uuid);\n"
14372 "\n"
14373 msgstr ""
14374
14375 # type: textblock
14376 #: ../src/guestfs-actions.pod:6151 ../fish/guestfish-actions.pod:4114
14377 msgid ""
14378 "This command disables the libguestfs appliance swap partition with the given "
14379 "UUID."
14380 msgstr ""
14381
14382 # type: =head2
14383 #: ../src/guestfs-actions.pod:6158
14384 msgid "guestfs_swapon_device"
14385 msgstr ""
14386
14387 # type: verbatim
14388 #: ../src/guestfs-actions.pod:6160
14389 #, no-wrap
14390 msgid ""
14391 " int\n"
14392 " guestfs_swapon_device (guestfs_h *g,\n"
14393 "                        const char *device);\n"
14394 "\n"
14395 msgstr ""
14396
14397 # type: textblock
14398 #: ../src/guestfs-actions.pod:6164
14399 msgid ""
14400 "This command enables the libguestfs appliance to use the swap device or "
14401 "partition named C<device>.  The increased memory is made available for all "
14402 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
14403 msgstr ""
14404
14405 # type: textblock
14406 #: ../src/guestfs-actions.pod:6169 ../fish/guestfish-actions.pod:4126
14407 msgid ""
14408 "Note that you should not swap to existing guest swap partitions unless you "
14409 "know what you are doing.  They may contain hibernation information, or other "
14410 "information that the guest doesn't want you to trash.  You also risk leaking "
14411 "information about the host to the guest this way.  Instead, attach a new "
14412 "host device to the guest and swap on that."
14413 msgstr ""
14414
14415 # type: =head2
14416 #: ../src/guestfs-actions.pod:6180
14417 msgid "guestfs_swapon_file"
14418 msgstr ""
14419
14420 # type: verbatim
14421 #: ../src/guestfs-actions.pod:6182
14422 #, no-wrap
14423 msgid ""
14424 " int\n"
14425 " guestfs_swapon_file (guestfs_h *g,\n"
14426 "                      const char *file);\n"
14427 "\n"
14428 msgstr ""
14429
14430 # type: textblock
14431 #: ../src/guestfs-actions.pod:6186
14432 msgid ""
14433 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
14434 "notes."
14435 msgstr ""
14436
14437 # type: =head2
14438 #: ../src/guestfs-actions.pod:6193
14439 msgid "guestfs_swapon_label"
14440 msgstr ""
14441
14442 # type: verbatim
14443 #: ../src/guestfs-actions.pod:6195
14444 #, no-wrap
14445 msgid ""
14446 " int\n"
14447 " guestfs_swapon_label (guestfs_h *g,\n"
14448 "                       const char *label);\n"
14449 "\n"
14450 msgstr ""
14451
14452 # type: textblock
14453 #: ../src/guestfs-actions.pod:6199
14454 msgid ""
14455 "This command enables swap to a labeled swap partition.  See "
14456 "C<guestfs_swapon_device> for other notes."
14457 msgstr ""
14458
14459 # type: =head2
14460 #: ../src/guestfs-actions.pod:6206
14461 msgid "guestfs_swapon_uuid"
14462 msgstr ""
14463
14464 # type: verbatim
14465 #: ../src/guestfs-actions.pod:6208
14466 #, no-wrap
14467 msgid ""
14468 " int\n"
14469 " guestfs_swapon_uuid (guestfs_h *g,\n"
14470 "                      const char *uuid);\n"
14471 "\n"
14472 msgstr ""
14473
14474 # type: textblock
14475 #: ../src/guestfs-actions.pod:6212
14476 msgid ""
14477 "This command enables swap to a swap partition with the given UUID.  See "
14478 "C<guestfs_swapon_device> for other notes."
14479 msgstr ""
14480
14481 # type: =head2
14482 #: ../src/guestfs-actions.pod:6219
14483 msgid "guestfs_sync"
14484 msgstr ""
14485
14486 # type: verbatim
14487 #: ../src/guestfs-actions.pod:6221
14488 #, no-wrap
14489 msgid ""
14490 " int\n"
14491 " guestfs_sync (guestfs_h *g);\n"
14492 "\n"
14493 msgstr ""
14494
14495 # type: textblock
14496 #: ../src/guestfs-actions.pod:6224 ../fish/guestfish-actions.pod:4158
14497 msgid ""
14498 "This syncs the disk, so that any writes are flushed through to the "
14499 "underlying disk image."
14500 msgstr ""
14501
14502 # type: textblock
14503 #: ../src/guestfs-actions.pod:6227 ../fish/guestfish-actions.pod:4161
14504 msgid ""
14505 "You should always call this if you have modified a disk image, before "
14506 "closing the handle."
14507 msgstr ""
14508
14509 # type: =head2
14510 #: ../src/guestfs-actions.pod:6234
14511 msgid "guestfs_tail"
14512 msgstr ""
14513
14514 # type: verbatim
14515 #: ../src/guestfs-actions.pod:6236
14516 #, no-wrap
14517 msgid ""
14518 " char **\n"
14519 " guestfs_tail (guestfs_h *g,\n"
14520 "               const char *path);\n"
14521 "\n"
14522 msgstr ""
14523
14524 # type: textblock
14525 #: ../src/guestfs-actions.pod:6240 ../fish/guestfish-actions.pod:4168
14526 msgid "This command returns up to the last 10 lines of a file as a list of strings."
14527 msgstr ""
14528
14529 # type: =head2
14530 #: ../src/guestfs-actions.pod:6252
14531 msgid "guestfs_tail_n"
14532 msgstr ""
14533
14534 # type: verbatim
14535 #: ../src/guestfs-actions.pod:6254
14536 #, no-wrap
14537 msgid ""
14538 " char **\n"
14539 " guestfs_tail_n (guestfs_h *g,\n"
14540 "                 int nrlines,\n"
14541 "                 const char *path);\n"
14542 "\n"
14543 msgstr ""
14544
14545 # type: textblock
14546 #: ../src/guestfs-actions.pod:6259 ../fish/guestfish-actions.pod:4178
14547 msgid ""
14548 "If the parameter C<nrlines> is a positive number, this returns the last "
14549 "C<nrlines> lines of the file C<path>."
14550 msgstr ""
14551
14552 # type: textblock
14553 #: ../src/guestfs-actions.pod:6262 ../fish/guestfish-actions.pod:4181
14554 msgid ""
14555 "If the parameter C<nrlines> is a negative number, this returns lines from "
14556 "the file C<path>, starting with the C<-nrlines>th line."
14557 msgstr ""
14558
14559 # type: =head2
14560 #: ../src/guestfs-actions.pod:6276
14561 msgid "guestfs_tar_in"
14562 msgstr ""
14563
14564 # type: verbatim
14565 #: ../src/guestfs-actions.pod:6278
14566 #, no-wrap
14567 msgid ""
14568 " int\n"
14569 " guestfs_tar_in (guestfs_h *g,\n"
14570 "                 const char *tarfile,\n"
14571 "                 const char *directory);\n"
14572 "\n"
14573 msgstr ""
14574
14575 # type: textblock
14576 #: ../src/guestfs-actions.pod:6283 ../fish/guestfish-actions.pod:4193
14577 msgid ""
14578 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
14579 "tar file) into C<directory>."
14580 msgstr ""
14581
14582 # type: textblock
14583 #: ../src/guestfs-actions.pod:6286
14584 msgid "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
14585 msgstr ""
14586
14587 # type: textblock
14588 #: ../src/guestfs-actions.pod:6291 ../src/guestfs-actions.pod:6308 ../src/guestfs-actions.pod:6324 ../src/guestfs-actions.pod:6340
14589 msgid "(Added in 1.0.3)"
14590 msgstr ""
14591
14592 # type: =head2
14593 #: ../src/guestfs-actions.pod:6293
14594 msgid "guestfs_tar_out"
14595 msgstr ""
14596
14597 # type: verbatim
14598 #: ../src/guestfs-actions.pod:6295
14599 #, no-wrap
14600 msgid ""
14601 " int\n"
14602 " guestfs_tar_out (guestfs_h *g,\n"
14603 "                  const char *directory,\n"
14604 "                  const char *tarfile);\n"
14605 "\n"
14606 msgstr ""
14607
14608 # type: textblock
14609 #: ../src/guestfs-actions.pod:6300 ../fish/guestfish-actions.pod:4205
14610 msgid ""
14611 "This command packs the contents of C<directory> and downloads it to local "
14612 "file C<tarfile>."
14613 msgstr ""
14614
14615 # type: textblock
14616 #: ../src/guestfs-actions.pod:6303
14617 msgid ""
14618 "To download a compressed tarball, use C<guestfs_tgz_out> or "
14619 "C<guestfs_txz_out>."
14620 msgstr ""
14621
14622 # type: =head2
14623 #: ../src/guestfs-actions.pod:6310
14624 msgid "guestfs_tgz_in"
14625 msgstr ""
14626
14627 # type: verbatim
14628 #: ../src/guestfs-actions.pod:6312
14629 #, no-wrap
14630 msgid ""
14631 " int\n"
14632 " guestfs_tgz_in (guestfs_h *g,\n"
14633 "                 const char *tarball,\n"
14634 "                 const char *directory);\n"
14635 "\n"
14636 msgstr ""
14637
14638 # type: textblock
14639 #: ../src/guestfs-actions.pod:6317 ../fish/guestfish-actions.pod:4217
14640 msgid ""
14641 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
14642 "tar file) into C<directory>."
14643 msgstr ""
14644
14645 # type: textblock
14646 #: ../src/guestfs-actions.pod:6320
14647 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
14648 msgstr ""
14649
14650 # type: =head2
14651 #: ../src/guestfs-actions.pod:6326
14652 msgid "guestfs_tgz_out"
14653 msgstr ""
14654
14655 # type: verbatim
14656 #: ../src/guestfs-actions.pod:6328
14657 #, no-wrap
14658 msgid ""
14659 " int\n"
14660 " guestfs_tgz_out (guestfs_h *g,\n"
14661 "                  const char *directory,\n"
14662 "                  const char *tarball);\n"
14663 "\n"
14664 msgstr ""
14665
14666 # type: textblock
14667 #: ../src/guestfs-actions.pod:6333 ../fish/guestfish-actions.pod:4228
14668 msgid ""
14669 "This command packs the contents of C<directory> and downloads it to local "
14670 "file C<tarball>."
14671 msgstr ""
14672
14673 # type: textblock
14674 #: ../src/guestfs-actions.pod:6336
14675 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
14676 msgstr ""
14677
14678 # type: =head2
14679 #: ../src/guestfs-actions.pod:6342
14680 msgid "guestfs_touch"
14681 msgstr ""
14682
14683 # type: verbatim
14684 #: ../src/guestfs-actions.pod:6344
14685 #, no-wrap
14686 msgid ""
14687 " int\n"
14688 " guestfs_touch (guestfs_h *g,\n"
14689 "                const char *path);\n"
14690 "\n"
14691 msgstr ""
14692
14693 # type: textblock
14694 #: ../src/guestfs-actions.pod:6348 ../fish/guestfish-actions.pod:4239
14695 msgid ""
14696 "Touch acts like the L<touch(1)> command.  It can be used to update the "
14697 "timestamps on a file, or, if the file does not exist, to create a new "
14698 "zero-length file."
14699 msgstr ""
14700
14701 # type: textblock
14702 #: ../src/guestfs-actions.pod:6352 ../fish/guestfish-actions.pod:4243
14703 msgid ""
14704 "This command only works on regular files, and will fail on other file types "
14705 "such as directories, symbolic links, block special etc."
14706 msgstr ""
14707
14708 # type: =head2
14709 #: ../src/guestfs-actions.pod:6359
14710 msgid "guestfs_truncate"
14711 msgstr ""
14712
14713 # type: verbatim
14714 #: ../src/guestfs-actions.pod:6361
14715 #, no-wrap
14716 msgid ""
14717 " int\n"
14718 " guestfs_truncate (guestfs_h *g,\n"
14719 "                   const char *path);\n"
14720 "\n"
14721 msgstr ""
14722
14723 # type: textblock
14724 #: ../src/guestfs-actions.pod:6365 ../fish/guestfish-actions.pod:4250
14725 msgid ""
14726 "This command truncates C<path> to a zero-length file.  The file must exist "
14727 "already."
14728 msgstr ""
14729
14730 # type: =head2
14731 #: ../src/guestfs-actions.pod:6372
14732 msgid "guestfs_truncate_size"
14733 msgstr ""
14734
14735 # type: verbatim
14736 #: ../src/guestfs-actions.pod:6374
14737 #, no-wrap
14738 msgid ""
14739 " int\n"
14740 " guestfs_truncate_size (guestfs_h *g,\n"
14741 "                        const char *path,\n"
14742 "                        int64_t size);\n"
14743 "\n"
14744 msgstr ""
14745
14746 # type: textblock
14747 #: ../src/guestfs-actions.pod:6379 ../fish/guestfish-actions.pod:4257
14748 msgid ""
14749 "This command truncates C<path> to size C<size> bytes.  The file must exist "
14750 "already."
14751 msgstr ""
14752
14753 # type: textblock
14754 #: ../src/guestfs-actions.pod:6382
14755 msgid ""
14756 "If the current file size is less than C<size> then the file is extended to "
14757 "the required size with zero bytes.  This creates a sparse file (ie. disk "
14758 "blocks are not allocated for the file until you write to it).  To create a "
14759 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
14760 msgstr ""
14761
14762 # type: =head2
14763 #: ../src/guestfs-actions.pod:6392
14764 msgid "guestfs_tune2fs_l"
14765 msgstr ""
14766
14767 # type: verbatim
14768 #: ../src/guestfs-actions.pod:6394
14769 #, no-wrap
14770 msgid ""
14771 " char **\n"
14772 " guestfs_tune2fs_l (guestfs_h *g,\n"
14773 "                    const char *device);\n"
14774 "\n"
14775 msgstr ""
14776
14777 # type: textblock
14778 #: ../src/guestfs-actions.pod:6398 ../fish/guestfish-actions.pod:4270
14779 msgid ""
14780 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
14781 "C<device>."
14782 msgstr ""
14783
14784 # type: textblock
14785 #: ../src/guestfs-actions.pod:6401 ../fish/guestfish-actions.pod:4273
14786 msgid ""
14787 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
14788 "for more details.  The list of fields returned isn't clearly defined, and "
14789 "depends on both the version of C<tune2fs> that libguestfs was built against, "
14790 "and the filesystem itself."
14791 msgstr ""
14792
14793 # type: =head2
14794 #: ../src/guestfs-actions.pod:6414
14795 msgid "guestfs_txz_in"
14796 msgstr ""
14797
14798 # type: verbatim
14799 #: ../src/guestfs-actions.pod:6416
14800 #, no-wrap
14801 msgid ""
14802 " int\n"
14803 " guestfs_txz_in (guestfs_h *g,\n"
14804 "                 const char *tarball,\n"
14805 "                 const char *directory);\n"
14806 "\n"
14807 msgstr ""
14808
14809 # type: textblock
14810 #: ../src/guestfs-actions.pod:6421 ../fish/guestfish-actions.pod:4282
14811 msgid ""
14812 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
14813 "tar file) into C<directory>."
14814 msgstr ""
14815
14816 # type: =head2
14817 #: ../src/guestfs-actions.pod:6428
14818 msgid "guestfs_txz_out"
14819 msgstr ""
14820
14821 # type: verbatim
14822 #: ../src/guestfs-actions.pod:6430
14823 #, no-wrap
14824 msgid ""
14825 " int\n"
14826 " guestfs_txz_out (guestfs_h *g,\n"
14827 "                  const char *directory,\n"
14828 "                  const char *tarball);\n"
14829 "\n"
14830 msgstr ""
14831
14832 # type: textblock
14833 #: ../src/guestfs-actions.pod:6435 ../fish/guestfish-actions.pod:4291
14834 msgid ""
14835 "This command packs the contents of C<directory> and downloads it to local "
14836 "file C<tarball> (as an xz compressed tar archive)."
14837 msgstr ""
14838
14839 # type: =head2
14840 #: ../src/guestfs-actions.pod:6442
14841 msgid "guestfs_umask"
14842 msgstr ""
14843
14844 # type: verbatim
14845 #: ../src/guestfs-actions.pod:6444
14846 #, no-wrap
14847 msgid ""
14848 " int\n"
14849 " guestfs_umask (guestfs_h *g,\n"
14850 "                int mask);\n"
14851 "\n"
14852 msgstr ""
14853
14854 # type: textblock
14855 #: ../src/guestfs-actions.pod:6448 ../fish/guestfish-actions.pod:4300
14856 msgid ""
14857 "This function sets the mask used for creating new files and device nodes to "
14858 "C<mask & 0777>."
14859 msgstr ""
14860
14861 # type: textblock
14862 #: ../src/guestfs-actions.pod:6451 ../fish/guestfish-actions.pod:4303
14863 msgid ""
14864 "Typical umask values would be C<022> which creates new files with "
14865 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
14866 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
14867 msgstr ""
14868
14869 # type: textblock
14870 #: ../src/guestfs-actions.pod:6456 ../fish/guestfish-actions.pod:4308
14871 msgid ""
14872 "The default umask is C<022>.  This is important because it means that "
14873 "directories and device nodes will be created with C<0644> or C<0755> mode "
14874 "even if you specify C<0777>."
14875 msgstr ""
14876
14877 # type: textblock
14878 #: ../src/guestfs-actions.pod:6460
14879 msgid ""
14880 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
14881 "C<guestfs_mkdir>."
14882 msgstr ""
14883
14884 # type: textblock
14885 #: ../src/guestfs-actions.pod:6463 ../fish/guestfish-actions.pod:4315
14886 msgid "This call returns the previous umask."
14887 msgstr ""
14888
14889 # type: =head2
14890 #: ../src/guestfs-actions.pod:6469
14891 msgid "guestfs_umount"
14892 msgstr ""
14893
14894 # type: verbatim
14895 #: ../src/guestfs-actions.pod:6471
14896 #, no-wrap
14897 msgid ""
14898 " int\n"
14899 " guestfs_umount (guestfs_h *g,\n"
14900 "                 const char *pathordevice);\n"
14901 "\n"
14902 msgstr ""
14903
14904 # type: textblock
14905 #: ../src/guestfs-actions.pod:6475 ../fish/guestfish-actions.pod:4323
14906 msgid ""
14907 "This unmounts the given filesystem.  The filesystem may be specified either "
14908 "by its mountpoint (path) or the device which contains the filesystem."
14909 msgstr ""
14910
14911 # type: =head2
14912 #: ../src/guestfs-actions.pod:6483
14913 msgid "guestfs_umount_all"
14914 msgstr ""
14915
14916 # type: verbatim
14917 #: ../src/guestfs-actions.pod:6485
14918 #, no-wrap
14919 msgid ""
14920 " int\n"
14921 " guestfs_umount_all (guestfs_h *g);\n"
14922 "\n"
14923 msgstr ""
14924
14925 # type: textblock
14926 #: ../src/guestfs-actions.pod:6488 ../fish/guestfish-actions.pod:4333
14927 msgid "This unmounts all mounted filesystems."
14928 msgstr ""
14929
14930 # type: textblock
14931 #: ../src/guestfs-actions.pod:6490 ../fish/guestfish-actions.pod:4335
14932 msgid "Some internal mounts are not unmounted by this call."
14933 msgstr ""
14934
14935 # type: =head2
14936 #: ../src/guestfs-actions.pod:6496
14937 msgid "guestfs_upload"
14938 msgstr ""
14939
14940 # type: verbatim
14941 #: ../src/guestfs-actions.pod:6498
14942 #, no-wrap
14943 msgid ""
14944 " int\n"
14945 " guestfs_upload (guestfs_h *g,\n"
14946 "                 const char *filename,\n"
14947 "                 const char *remotefilename);\n"
14948 "\n"
14949 msgstr ""
14950
14951 # type: textblock
14952 #: ../src/guestfs-actions.pod:6503 ../src/guestfs-actions.pod:6527 ../fish/guestfish-actions.pod:4341 ../fish/guestfish-actions.pod:4354
14953 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
14954 msgstr ""
14955
14956 # type: textblock
14957 #: ../src/guestfs-actions.pod:6508
14958 msgid "See also C<guestfs_download>."
14959 msgstr ""
14960
14961 # type: =head2
14962 #: ../src/guestfs-actions.pod:6519
14963 msgid "guestfs_upload_offset"
14964 msgstr ""
14965
14966 # type: verbatim
14967 #: ../src/guestfs-actions.pod:6521
14968 #, no-wrap
14969 msgid ""
14970 " int\n"
14971 " guestfs_upload_offset (guestfs_h *g,\n"
14972 "                        const char *filename,\n"
14973 "                        const char *remotefilename,\n"
14974 "                        int64_t offset);\n"
14975 "\n"
14976 msgstr ""
14977
14978 # type: textblock
14979 #: ../src/guestfs-actions.pod:6530 ../fish/guestfish-actions.pod:4357
14980 msgid ""
14981 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
14982 "The intention is to overwrite parts of existing files or devices, although "
14983 "if a non-existant file is specified then it is created with a \"hole\" "
14984 "before C<offset>.  The size of the data written is implicit in the size of "
14985 "the source C<filename>."
14986 msgstr ""
14987
14988 # type: textblock
14989 #: ../src/guestfs-actions.pod:6537
14990 msgid ""
14991 "Note that there is no limit on the amount of data that can be uploaded with "
14992 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
14993 "full amount unless an error occurs."
14994 msgstr ""
14995
14996 # type: textblock
14997 #: ../src/guestfs-actions.pod:6542
14998 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
14999 msgstr ""
15000
15001 # type: =head2
15002 #: ../src/guestfs-actions.pod:6553
15003 msgid "guestfs_utimens"
15004 msgstr ""
15005
15006 # type: verbatim
15007 #: ../src/guestfs-actions.pod:6555
15008 #, no-wrap
15009 msgid ""
15010 " int\n"
15011 " guestfs_utimens (guestfs_h *g,\n"
15012 "                  const char *path,\n"
15013 "                  int64_t atsecs,\n"
15014 "                  int64_t atnsecs,\n"
15015 "                  int64_t mtsecs,\n"
15016 "                  int64_t mtnsecs);\n"
15017 "\n"
15018 msgstr ""
15019
15020 # type: textblock
15021 #: ../src/guestfs-actions.pod:6563 ../fish/guestfish-actions.pod:4377
15022 msgid "This command sets the timestamps of a file with nanosecond precision."
15023 msgstr ""
15024
15025 # type: textblock
15026 #: ../src/guestfs-actions.pod:6566 ../fish/guestfish-actions.pod:4380
15027 msgid ""
15028 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
15029 "from the epoch."
15030 msgstr ""
15031
15032 # type: textblock
15033 #: ../src/guestfs-actions.pod:6569 ../fish/guestfish-actions.pod:4383
15034 msgid ""
15035 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
15036 "nanoseconds from the epoch."
15037 msgstr ""
15038
15039 # type: textblock
15040 #: ../src/guestfs-actions.pod:6572 ../fish/guestfish-actions.pod:4386
15041 msgid ""
15042 "If the C<*nsecs> field contains the special value C<-1> then the "
15043 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
15044 "ignored in this case)."
15045 msgstr ""
15046
15047 # type: textblock
15048 #: ../src/guestfs-actions.pod:6576 ../fish/guestfish-actions.pod:4390
15049 msgid ""
15050 "If the C<*nsecs> field contains the special value C<-2> then the "
15051 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
15052 "in this case)."
15053 msgstr ""
15054
15055 # type: =head2
15056 #: ../src/guestfs-actions.pod:6584 ../src/guestfs-structs.pod:175
15057 msgid "guestfs_version"
15058 msgstr ""
15059
15060 # type: verbatim
15061 #: ../src/guestfs-actions.pod:6586
15062 #, no-wrap
15063 msgid ""
15064 " struct guestfs_version *\n"
15065 " guestfs_version (guestfs_h *g);\n"
15066 "\n"
15067 msgstr ""
15068
15069 # type: textblock
15070 #: ../src/guestfs-actions.pod:6589 ../fish/guestfish-actions.pod:4398
15071 msgid "Return the libguestfs version number that the program is linked against."
15072 msgstr ""
15073
15074 # type: textblock
15075 #: ../src/guestfs-actions.pod:6592 ../fish/guestfish-actions.pod:4401
15076 msgid ""
15077 "Note that because of dynamic linking this is not necessarily the version of "
15078 "libguestfs that you compiled against.  You can compile the program, and then "
15079 "at runtime dynamically link against a completely different C<libguestfs.so> "
15080 "library."
15081 msgstr ""
15082
15083 # type: textblock
15084 #: ../src/guestfs-actions.pod:6597 ../fish/guestfish-actions.pod:4406
15085 msgid ""
15086 "This call was added in version C<1.0.58>.  In previous versions of "
15087 "libguestfs there was no way to get the version number.  From C code you can "
15088 "use dynamic linker functions to find out if this symbol exists (if it "
15089 "doesn't, then it's an earlier version)."
15090 msgstr ""
15091
15092 # type: textblock
15093 #: ../src/guestfs-actions.pod:6603 ../fish/guestfish-actions.pod:4412
15094 msgid ""
15095 "The call returns a structure with four elements.  The first three (C<major>, "
15096 "C<minor> and C<release>) are numbers and correspond to the usual version "
15097 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
15098 "but may be used for distro-specific information."
15099 msgstr ""
15100
15101 # type: textblock
15102 #: ../src/guestfs-actions.pod:6609 ../fish/guestfish-actions.pod:4418
15103 msgid "To construct the original version string: C<$major.$minor.$release$extra>"
15104 msgstr ""
15105
15106 # type: textblock
15107 #: ../src/guestfs-actions.pod:6612 ../fish/guestfish-actions.pod:4421
15108 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
15109 msgstr ""
15110
15111 # type: textblock
15112 #: ../src/guestfs-actions.pod:6614
15113 msgid ""
15114 "I<Note:> Don't use this call to test for availability of features.  In "
15115 "enterprise distributions we backport features from later versions into "
15116 "earlier versions, making this an unreliable way to test for features.  Use "
15117 "C<guestfs_available> instead."
15118 msgstr ""
15119
15120 # type: textblock
15121 #: ../src/guestfs-actions.pod:6620
15122 msgid ""
15123 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
15124 "error.  I<The caller must call C<guestfs_free_version> after use>."
15125 msgstr ""
15126
15127 # type: textblock
15128 #: ../src/guestfs-actions.pod:6624
15129 msgid "(Added in 1.0.58)"
15130 msgstr ""
15131
15132 # type: =head2
15133 #: ../src/guestfs-actions.pod:6626
15134 msgid "guestfs_vfs_label"
15135 msgstr ""
15136
15137 # type: verbatim
15138 #: ../src/guestfs-actions.pod:6628
15139 #, no-wrap
15140 msgid ""
15141 " char *\n"
15142 " guestfs_vfs_label (guestfs_h *g,\n"
15143 "                    const char *device);\n"
15144 "\n"
15145 msgstr ""
15146
15147 # type: textblock
15148 #: ../src/guestfs-actions.pod:6632 ../fish/guestfish-actions.pod:4433
15149 msgid "This returns the filesystem label of the filesystem on C<device>."
15150 msgstr ""
15151
15152 # type: textblock
15153 #: ../src/guestfs-actions.pod:6635 ../fish/guestfish-actions.pod:4436
15154 msgid "If the filesystem is unlabeled, this returns the empty string."
15155 msgstr ""
15156
15157 # type: textblock
15158 #: ../src/guestfs-actions.pod:6637
15159 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
15160 msgstr ""
15161
15162 # type: textblock
15163 #: ../src/guestfs-actions.pod:6642 ../src/guestfs-actions.pod:6679
15164 msgid "(Added in 1.3.18)"
15165 msgstr ""
15166
15167 # type: =head2
15168 #: ../src/guestfs-actions.pod:6644
15169 msgid "guestfs_vfs_type"
15170 msgstr ""
15171
15172 # type: verbatim
15173 #: ../src/guestfs-actions.pod:6646
15174 #, no-wrap
15175 msgid ""
15176 " char *\n"
15177 " guestfs_vfs_type (guestfs_h *g,\n"
15178 "                   const char *device);\n"
15179 "\n"
15180 msgstr ""
15181
15182 # type: textblock
15183 #: ../src/guestfs-actions.pod:6650 ../fish/guestfish-actions.pod:4444
15184 msgid ""
15185 "This command gets the filesystem type corresponding to the filesystem on "
15186 "C<device>."
15187 msgstr ""
15188
15189 # type: textblock
15190 #: ../src/guestfs-actions.pod:6653 ../fish/guestfish-actions.pod:4447
15191 msgid ""
15192 "For most filesystems, the result is the name of the Linux VFS module which "
15193 "would be used to mount this filesystem if you mounted it without specifying "
15194 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
15195 msgstr ""
15196
15197 # type: =head2
15198 #: ../src/guestfs-actions.pod:6663
15199 msgid "guestfs_vfs_uuid"
15200 msgstr ""
15201
15202 # type: verbatim
15203 #: ../src/guestfs-actions.pod:6665
15204 #, no-wrap
15205 msgid ""
15206 " char *\n"
15207 " guestfs_vfs_uuid (guestfs_h *g,\n"
15208 "                   const char *device);\n"
15209 "\n"
15210 msgstr ""
15211
15212 # type: textblock
15213 #: ../src/guestfs-actions.pod:6669 ../fish/guestfish-actions.pod:4456
15214 msgid "This returns the filesystem UUID of the filesystem on C<device>."
15215 msgstr ""
15216
15217 # type: textblock
15218 #: ../src/guestfs-actions.pod:6672 ../fish/guestfish-actions.pod:4459
15219 msgid "If the filesystem does not have a UUID, this returns the empty string."
15220 msgstr ""
15221
15222 # type: textblock
15223 #: ../src/guestfs-actions.pod:6674
15224 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
15225 msgstr ""
15226
15227 # type: =head2
15228 #: ../src/guestfs-actions.pod:6681
15229 msgid "guestfs_vg_activate"
15230 msgstr ""
15231
15232 # type: verbatim
15233 #: ../src/guestfs-actions.pod:6683
15234 #, no-wrap
15235 msgid ""
15236 " int\n"
15237 " guestfs_vg_activate (guestfs_h *g,\n"
15238 "                      int activate,\n"
15239 "                      char *const *volgroups);\n"
15240 "\n"
15241 msgstr ""
15242
15243 # type: textblock
15244 #: ../src/guestfs-actions.pod:6688 ../fish/guestfish-actions.pod:4467
15245 msgid ""
15246 "This command activates or (if C<activate> is false) deactivates all logical "
15247 "volumes in the listed volume groups C<volgroups>.  If activated, then they "
15248 "are made known to the kernel, ie. they appear as C</dev/mapper> devices.  If "
15249 "deactivated, then those devices disappear."
15250 msgstr ""
15251
15252 # type: textblock
15253 #: ../src/guestfs-actions.pod:6694 ../fish/guestfish-actions.pod:4473
15254 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
15255 msgstr ""
15256
15257 # type: textblock
15258 #: ../src/guestfs-actions.pod:6696 ../fish/guestfish-actions.pod:4475
15259 msgid ""
15260 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
15261 "activated or deactivated."
15262 msgstr ""
15263
15264 # type: =head2
15265 #: ../src/guestfs-actions.pod:6703
15266 msgid "guestfs_vg_activate_all"
15267 msgstr ""
15268
15269 # type: verbatim
15270 #: ../src/guestfs-actions.pod:6705
15271 #, no-wrap
15272 msgid ""
15273 " int\n"
15274 " guestfs_vg_activate_all (guestfs_h *g,\n"
15275 "                          int activate);\n"
15276 "\n"
15277 msgstr ""
15278
15279 # type: textblock
15280 #: ../src/guestfs-actions.pod:6709 ../fish/guestfish-actions.pod:4482
15281 msgid ""
15282 "This command activates or (if C<activate> is false) deactivates all logical "
15283 "volumes in all volume groups.  If activated, then they are made known to the "
15284 "kernel, ie. they appear as C</dev/mapper> devices.  If deactivated, then "
15285 "those devices disappear."
15286 msgstr ""
15287
15288 # type: textblock
15289 #: ../src/guestfs-actions.pod:6715 ../fish/guestfish-actions.pod:4488
15290 msgid "This command is the same as running C<vgchange -a y|n>"
15291 msgstr ""
15292
15293 # type: =head2
15294 #: ../src/guestfs-actions.pod:6721
15295 msgid "guestfs_vgcreate"
15296 msgstr ""
15297
15298 # type: verbatim
15299 #: ../src/guestfs-actions.pod:6723
15300 #, no-wrap
15301 msgid ""
15302 " int\n"
15303 " guestfs_vgcreate (guestfs_h *g,\n"
15304 "                   const char *volgroup,\n"
15305 "                   char *const *physvols);\n"
15306 "\n"
15307 msgstr ""
15308
15309 # type: textblock
15310 #: ../src/guestfs-actions.pod:6728 ../fish/guestfish-actions.pod:4494
15311 msgid ""
15312 "This creates an LVM volume group called C<volgroup> from the non-empty list "
15313 "of physical volumes C<physvols>."
15314 msgstr ""
15315
15316 # type: =head2
15317 #: ../src/guestfs-actions.pod:6735
15318 msgid "guestfs_vglvuuids"
15319 msgstr ""
15320
15321 # type: verbatim
15322 #: ../src/guestfs-actions.pod:6737
15323 #, no-wrap
15324 msgid ""
15325 " char **\n"
15326 " guestfs_vglvuuids (guestfs_h *g,\n"
15327 "                    const char *vgname);\n"
15328 "\n"
15329 msgstr ""
15330
15331 # type: textblock
15332 #: ../src/guestfs-actions.pod:6741 ../fish/guestfish-actions.pod:4501
15333 msgid ""
15334 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
15335 "volumes created in this volume group."
15336 msgstr ""
15337
15338 # type: textblock
15339 #: ../src/guestfs-actions.pod:6744
15340 msgid ""
15341 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
15342 "associate logical volumes and volume groups."
15343 msgstr ""
15344
15345 # type: textblock
15346 #: ../src/guestfs-actions.pod:6747
15347 msgid "See also C<guestfs_vgpvuuids>."
15348 msgstr ""
15349
15350 # type: =head2
15351 #: ../src/guestfs-actions.pod:6755
15352 msgid "guestfs_vgpvuuids"
15353 msgstr ""
15354
15355 # type: verbatim
15356 #: ../src/guestfs-actions.pod:6757
15357 #, no-wrap
15358 msgid ""
15359 " char **\n"
15360 " guestfs_vgpvuuids (guestfs_h *g,\n"
15361 "                    const char *vgname);\n"
15362 "\n"
15363 msgstr ""
15364
15365 # type: textblock
15366 #: ../src/guestfs-actions.pod:6761 ../fish/guestfish-actions.pod:4513
15367 msgid ""
15368 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
15369 "volumes that this volume group resides on."
15370 msgstr ""
15371
15372 # type: textblock
15373 #: ../src/guestfs-actions.pod:6764
15374 msgid ""
15375 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
15376 "associate physical volumes and volume groups."
15377 msgstr ""
15378
15379 # type: textblock
15380 #: ../src/guestfs-actions.pod:6767
15381 msgid "See also C<guestfs_vglvuuids>."
15382 msgstr ""
15383
15384 # type: =head2
15385 #: ../src/guestfs-actions.pod:6775
15386 msgid "guestfs_vgremove"
15387 msgstr ""
15388
15389 # type: verbatim
15390 #: ../src/guestfs-actions.pod:6777
15391 #, no-wrap
15392 msgid ""
15393 " int\n"
15394 " guestfs_vgremove (guestfs_h *g,\n"
15395 "                   const char *vgname);\n"
15396 "\n"
15397 msgstr ""
15398
15399 # type: textblock
15400 #: ../src/guestfs-actions.pod:6781 ../fish/guestfish-actions.pod:4525
15401 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
15402 msgstr ""
15403
15404 # type: textblock
15405 #: ../src/guestfs-actions.pod:6783 ../fish/guestfish-actions.pod:4527
15406 msgid "This also forcibly removes all logical volumes in the volume group (if any)."
15407 msgstr ""
15408
15409 # type: =head2
15410 #: ../src/guestfs-actions.pod:6790
15411 msgid "guestfs_vgrename"
15412 msgstr ""
15413
15414 # type: verbatim
15415 #: ../src/guestfs-actions.pod:6792
15416 #, no-wrap
15417 msgid ""
15418 " int\n"
15419 " guestfs_vgrename (guestfs_h *g,\n"
15420 "                   const char *volgroup,\n"
15421 "                   const char *newvolgroup);\n"
15422 "\n"
15423 msgstr ""
15424
15425 # type: textblock
15426 #: ../src/guestfs-actions.pod:6797 ../fish/guestfish-actions.pod:4534
15427 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
15428 msgstr ""
15429
15430 # type: =head2
15431 #: ../src/guestfs-actions.pod:6803
15432 msgid "guestfs_vgs"
15433 msgstr ""
15434
15435 # type: verbatim
15436 #: ../src/guestfs-actions.pod:6805
15437 #, no-wrap
15438 msgid ""
15439 " char **\n"
15440 " guestfs_vgs (guestfs_h *g);\n"
15441 "\n"
15442 msgstr ""
15443
15444 # type: textblock
15445 #: ../src/guestfs-actions.pod:6808 ../fish/guestfish-actions.pod:4540
15446 msgid ""
15447 "List all the volumes groups detected.  This is the equivalent of the "
15448 "L<vgs(8)> command."
15449 msgstr ""
15450
15451 # type: textblock
15452 #: ../src/guestfs-actions.pod:6811 ../fish/guestfish-actions.pod:4543
15453 msgid ""
15454 "This returns a list of just the volume group names that were detected "
15455 "(eg. C<VolGroup00>)."
15456 msgstr ""
15457
15458 # type: textblock
15459 #: ../src/guestfs-actions.pod:6814
15460 msgid "See also C<guestfs_vgs_full>."
15461 msgstr ""
15462
15463 # type: =head2
15464 #: ../src/guestfs-actions.pod:6822
15465 msgid "guestfs_vgs_full"
15466 msgstr ""
15467
15468 # type: verbatim
15469 #: ../src/guestfs-actions.pod:6824
15470 #, no-wrap
15471 msgid ""
15472 " struct guestfs_lvm_vg_list *\n"
15473 " guestfs_vgs_full (guestfs_h *g);\n"
15474 "\n"
15475 msgstr ""
15476
15477 # type: textblock
15478 #: ../src/guestfs-actions.pod:6827 ../fish/guestfish-actions.pod:4552
15479 msgid ""
15480 "List all the volumes groups detected.  This is the equivalent of the "
15481 "L<vgs(8)> command.  The \"full\" version includes all fields."
15482 msgstr ""
15483
15484 # type: textblock
15485 #: ../src/guestfs-actions.pod:6830
15486 msgid ""
15487 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
15488 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after "
15489 "use>."
15490 msgstr ""
15491
15492 # type: =head2
15493 #: ../src/guestfs-actions.pod:6836
15494 msgid "guestfs_vgscan"
15495 msgstr ""
15496
15497 # type: verbatim
15498 #: ../src/guestfs-actions.pod:6838
15499 #, no-wrap
15500 msgid ""
15501 " int\n"
15502 " guestfs_vgscan (guestfs_h *g);\n"
15503 "\n"
15504 msgstr ""
15505
15506 # type: textblock
15507 #: ../src/guestfs-actions.pod:6841 ../fish/guestfish-actions.pod:4559
15508 msgid ""
15509 "This rescans all block devices and rebuilds the list of LVM physical "
15510 "volumes, volume groups and logical volumes."
15511 msgstr ""
15512
15513 # type: =head2
15514 #: ../src/guestfs-actions.pod:6848
15515 msgid "guestfs_vguuid"
15516 msgstr ""
15517
15518 # type: verbatim
15519 #: ../src/guestfs-actions.pod:6850
15520 #, no-wrap
15521 msgid ""
15522 " char *\n"
15523 " guestfs_vguuid (guestfs_h *g,\n"
15524 "                 const char *vgname);\n"
15525 "\n"
15526 msgstr ""
15527
15528 # type: textblock
15529 #: ../src/guestfs-actions.pod:6854 ../fish/guestfish-actions.pod:4566
15530 msgid "This command returns the UUID of the LVM VG named C<vgname>."
15531 msgstr ""
15532
15533 # type: =head2
15534 #: ../src/guestfs-actions.pod:6861
15535 msgid "guestfs_wait_ready"
15536 msgstr ""
15537
15538 # type: verbatim
15539 #: ../src/guestfs-actions.pod:6863
15540 #, no-wrap
15541 msgid ""
15542 " int\n"
15543 " guestfs_wait_ready (guestfs_h *g);\n"
15544 "\n"
15545 msgstr ""
15546
15547 # type: textblock
15548 #: ../src/guestfs-actions.pod:6866
15549 msgid "This function is a no op."
15550 msgstr ""
15551
15552 # type: textblock
15553 #: ../src/guestfs-actions.pod:6868
15554 msgid ""
15555 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
15556 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
15557 "is no longer necessary because C<guestfs_launch> now does the waiting."
15558 msgstr ""
15559
15560 # type: textblock
15561 #: ../src/guestfs-actions.pod:6873
15562 msgid ""
15563 "If you see any calls to this function in code then you can just remove them, "
15564 "unless you want to retain compatibility with older versions of the API."
15565 msgstr ""
15566
15567 # type: =head2
15568 #: ../src/guestfs-actions.pod:6881
15569 msgid "guestfs_wc_c"
15570 msgstr ""
15571
15572 # type: verbatim
15573 #: ../src/guestfs-actions.pod:6883
15574 #, no-wrap
15575 msgid ""
15576 " int\n"
15577 " guestfs_wc_c (guestfs_h *g,\n"
15578 "               const char *path);\n"
15579 "\n"
15580 msgstr ""
15581
15582 # type: textblock
15583 #: ../src/guestfs-actions.pod:6887 ../fish/guestfish-actions.pod:4572
15584 msgid ""
15585 "This command counts the characters in a file, using the C<wc -c> external "
15586 "command."
15587 msgstr ""
15588
15589 # type: =head2
15590 #: ../src/guestfs-actions.pod:6894
15591 msgid "guestfs_wc_l"
15592 msgstr ""
15593
15594 # type: verbatim
15595 #: ../src/guestfs-actions.pod:6896
15596 #, no-wrap
15597 msgid ""
15598 " int\n"
15599 " guestfs_wc_l (guestfs_h *g,\n"
15600 "               const char *path);\n"
15601 "\n"
15602 msgstr ""
15603
15604 # type: textblock
15605 #: ../src/guestfs-actions.pod:6900 ../fish/guestfish-actions.pod:4579
15606 msgid ""
15607 "This command counts the lines in a file, using the C<wc -l> external "
15608 "command."
15609 msgstr ""
15610
15611 # type: =head2
15612 #: ../src/guestfs-actions.pod:6907
15613 msgid "guestfs_wc_w"
15614 msgstr ""
15615
15616 # type: verbatim
15617 #: ../src/guestfs-actions.pod:6909
15618 #, no-wrap
15619 msgid ""
15620 " int\n"
15621 " guestfs_wc_w (guestfs_h *g,\n"
15622 "               const char *path);\n"
15623 "\n"
15624 msgstr ""
15625
15626 # type: textblock
15627 #: ../src/guestfs-actions.pod:6913 ../fish/guestfish-actions.pod:4586
15628 msgid ""
15629 "This command counts the words in a file, using the C<wc -w> external "
15630 "command."
15631 msgstr ""
15632
15633 # type: =head2
15634 #: ../src/guestfs-actions.pod:6920
15635 msgid "guestfs_write"
15636 msgstr ""
15637
15638 # type: verbatim
15639 #: ../src/guestfs-actions.pod:6922
15640 #, no-wrap
15641 msgid ""
15642 " int\n"
15643 " guestfs_write (guestfs_h *g,\n"
15644 "                const char *path,\n"
15645 "                const char *content,\n"
15646 "                size_t content_size);\n"
15647 "\n"
15648 msgstr ""
15649
15650 # type: textblock
15651 #: ../src/guestfs-actions.pod:6928 ../fish/guestfish-actions.pod:4593
15652 msgid ""
15653 "This call creates a file called C<path>.  The content of the file is the "
15654 "string C<content> (which can contain any 8 bit data)."
15655 msgstr ""
15656
15657 # type: =head2
15658 #: ../src/guestfs-actions.pod:6938
15659 msgid "guestfs_write_file"
15660 msgstr ""
15661
15662 # type: verbatim
15663 #: ../src/guestfs-actions.pod:6940
15664 #, no-wrap
15665 msgid ""
15666 " int\n"
15667 " guestfs_write_file (guestfs_h *g,\n"
15668 "                     const char *path,\n"
15669 "                     const char *content,\n"
15670 "                     int size);\n"
15671 "\n"
15672 msgstr ""
15673
15674 # type: textblock
15675 #: ../src/guestfs-actions.pod:6946 ../fish/guestfish-actions.pod:4603
15676 msgid ""
15677 "This call creates a file called C<path>.  The contents of the file is the "
15678 "string C<content> (which can contain any 8 bit data), with length C<size>."
15679 msgstr ""
15680
15681 # type: textblock
15682 #: ../src/guestfs-actions.pod:6950 ../fish/guestfish-actions.pod:4607
15683 msgid ""
15684 "As a special case, if C<size> is C<0> then the length is calculated using "
15685 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
15686 msgstr ""
15687
15688 # type: textblock
15689 #: ../src/guestfs-actions.pod:6954 ../fish/guestfish-actions.pod:4611
15690 msgid ""
15691 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
15692 "I<not> work, even if the length is specified."
15693 msgstr ""
15694
15695 # type: textblock
15696 #: ../src/guestfs-actions.pod:6962 ../fish/guestfish-actions.pod:4617
15697 msgid "This function is deprecated.  In new code, use the C<write> call instead."
15698 msgstr ""
15699
15700 # type: =head2
15701 #: ../src/guestfs-actions.pod:6971
15702 msgid "guestfs_zegrep"
15703 msgstr ""
15704
15705 # type: verbatim
15706 #: ../src/guestfs-actions.pod:6973
15707 #, no-wrap
15708 msgid ""
15709 " char **\n"
15710 " guestfs_zegrep (guestfs_h *g,\n"
15711 "                 const char *regex,\n"
15712 "                 const char *path);\n"
15713 "\n"
15714 msgstr ""
15715
15716 # type: textblock
15717 #: ../src/guestfs-actions.pod:6978 ../fish/guestfish-actions.pod:4628
15718 msgid "This calls the external C<zegrep> program and returns the matching lines."
15719 msgstr ""
15720
15721 # type: =head2
15722 #: ../src/guestfs-actions.pod:6990
15723 msgid "guestfs_zegrepi"
15724 msgstr ""
15725
15726 # type: verbatim
15727 #: ../src/guestfs-actions.pod:6992
15728 #, no-wrap
15729 msgid ""
15730 " char **\n"
15731 " guestfs_zegrepi (guestfs_h *g,\n"
15732 "                  const char *regex,\n"
15733 "                  const char *path);\n"
15734 "\n"
15735 msgstr ""
15736
15737 # type: textblock
15738 #: ../src/guestfs-actions.pod:6997 ../fish/guestfish-actions.pod:4638
15739 msgid "This calls the external C<zegrep -i> program and returns the matching lines."
15740 msgstr ""
15741
15742 # type: =head2
15743 #: ../src/guestfs-actions.pod:7009
15744 msgid "guestfs_zero"
15745 msgstr ""
15746
15747 # type: verbatim
15748 #: ../src/guestfs-actions.pod:7011
15749 #, no-wrap
15750 msgid ""
15751 " int\n"
15752 " guestfs_zero (guestfs_h *g,\n"
15753 "               const char *device);\n"
15754 "\n"
15755 msgstr ""
15756
15757 # type: textblock
15758 #: ../src/guestfs-actions.pod:7015 ../fish/guestfish-actions.pod:4648
15759 msgid "This command writes zeroes over the first few blocks of C<device>."
15760 msgstr ""
15761
15762 # type: textblock
15763 #: ../src/guestfs-actions.pod:7017 ../fish/guestfish-actions.pod:4650
15764 msgid ""
15765 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
15766 "securely wipe the device).  It should be sufficient to remove any partition "
15767 "tables, filesystem superblocks and so on."
15768 msgstr ""
15769
15770 # type: textblock
15771 #: ../src/guestfs-actions.pod:7021
15772 msgid "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>."
15773 msgstr ""
15774
15775 # type: =head2
15776 #: ../src/guestfs-actions.pod:7032
15777 msgid "guestfs_zero_device"
15778 msgstr ""
15779
15780 # type: verbatim
15781 #: ../src/guestfs-actions.pod:7034
15782 #, no-wrap
15783 msgid ""
15784 " int\n"
15785 " guestfs_zero_device (guestfs_h *g,\n"
15786 "                      const char *device);\n"
15787 "\n"
15788 msgstr ""
15789
15790 # type: textblock
15791 #: ../src/guestfs-actions.pod:7038
15792 msgid ""
15793 "This command writes zeroes over the entire C<device>.  Compare with "
15794 "C<guestfs_zero> which just zeroes the first few blocks of a device."
15795 msgstr ""
15796
15797 # type: textblock
15798 #: ../src/guestfs-actions.pod:7052
15799 msgid "(Added in 1.3.1)"
15800 msgstr ""
15801
15802 # type: =head2
15803 #: ../src/guestfs-actions.pod:7054
15804 msgid "guestfs_zerofree"
15805 msgstr ""
15806
15807 # type: verbatim
15808 #: ../src/guestfs-actions.pod:7056
15809 #, no-wrap
15810 msgid ""
15811 " int\n"
15812 " guestfs_zerofree (guestfs_h *g,\n"
15813 "                   const char *device);\n"
15814 "\n"
15815 msgstr ""
15816
15817 # type: textblock
15818 #: ../src/guestfs-actions.pod:7060 ../fish/guestfish-actions.pod:4671
15819 msgid ""
15820 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
15821 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
15822 "possible to compress the filesystem more effectively."
15823 msgstr ""
15824
15825 # type: textblock
15826 #: ../src/guestfs-actions.pod:7065 ../fish/guestfish-actions.pod:4676
15827 msgid "You should B<not> run this program if the filesystem is mounted."
15828 msgstr ""
15829
15830 # type: textblock
15831 #: ../src/guestfs-actions.pod:7068 ../fish/guestfish-actions.pod:4679
15832 msgid ""
15833 "It is possible that using this program can damage the filesystem or data on "
15834 "the filesystem."
15835 msgstr ""
15836
15837 # type: =head2
15838 #: ../src/guestfs-actions.pod:7075
15839 msgid "guestfs_zfgrep"
15840 msgstr ""
15841
15842 # type: verbatim
15843 #: ../src/guestfs-actions.pod:7077
15844 #, no-wrap
15845 msgid ""
15846 " char **\n"
15847 " guestfs_zfgrep (guestfs_h *g,\n"
15848 "                 const char *pattern,\n"
15849 "                 const char *path);\n"
15850 "\n"
15851 msgstr ""
15852
15853 # type: textblock
15854 #: ../src/guestfs-actions.pod:7082 ../fish/guestfish-actions.pod:4686
15855 msgid "This calls the external C<zfgrep> program and returns the matching lines."
15856 msgstr ""
15857
15858 # type: =head2
15859 #: ../src/guestfs-actions.pod:7094
15860 msgid "guestfs_zfgrepi"
15861 msgstr ""
15862
15863 # type: verbatim
15864 #: ../src/guestfs-actions.pod:7096
15865 #, no-wrap
15866 msgid ""
15867 " char **\n"
15868 " guestfs_zfgrepi (guestfs_h *g,\n"
15869 "                  const char *pattern,\n"
15870 "                  const char *path);\n"
15871 "\n"
15872 msgstr ""
15873
15874 # type: textblock
15875 #: ../src/guestfs-actions.pod:7101 ../fish/guestfish-actions.pod:4696
15876 msgid "This calls the external C<zfgrep -i> program and returns the matching lines."
15877 msgstr ""
15878
15879 # type: =head2
15880 #: ../src/guestfs-actions.pod:7113
15881 msgid "guestfs_zfile"
15882 msgstr ""
15883
15884 # type: verbatim
15885 #: ../src/guestfs-actions.pod:7115
15886 #, no-wrap
15887 msgid ""
15888 " char *\n"
15889 " guestfs_zfile (guestfs_h *g,\n"
15890 "                const char *meth,\n"
15891 "                const char *path);\n"
15892 "\n"
15893 msgstr ""
15894
15895 # type: textblock
15896 #: ../src/guestfs-actions.pod:7120 ../fish/guestfish-actions.pod:4706
15897 msgid "This command runs C<file> after first decompressing C<path> using C<method>."
15898 msgstr ""
15899
15900 # type: textblock
15901 #: ../src/guestfs-actions.pod:7123 ../fish/guestfish-actions.pod:4709
15902 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
15903 msgstr ""
15904
15905 # type: textblock
15906 #: ../src/guestfs-actions.pod:7125
15907 msgid ""
15908 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
15909 "files."
15910 msgstr ""
15911
15912 # type: textblock
15913 #: ../src/guestfs-actions.pod:7131 ../fish/guestfish-actions.pod:4714
15914 msgid "This function is deprecated.  In new code, use the C<file> call instead."
15915 msgstr ""
15916
15917 # type: =head2
15918 #: ../src/guestfs-actions.pod:7140
15919 msgid "guestfs_zgrep"
15920 msgstr ""
15921
15922 # type: verbatim
15923 #: ../src/guestfs-actions.pod:7142
15924 #, no-wrap
15925 msgid ""
15926 " char **\n"
15927 " guestfs_zgrep (guestfs_h *g,\n"
15928 "                const char *regex,\n"
15929 "                const char *path);\n"
15930 "\n"
15931 msgstr ""
15932
15933 # type: textblock
15934 #: ../src/guestfs-actions.pod:7147 ../fish/guestfish-actions.pod:4725
15935 msgid "This calls the external C<zgrep> program and returns the matching lines."
15936 msgstr ""
15937
15938 # type: =head2
15939 #: ../src/guestfs-actions.pod:7159
15940 msgid "guestfs_zgrepi"
15941 msgstr ""
15942
15943 # type: verbatim
15944 #: ../src/guestfs-actions.pod:7161
15945 #, no-wrap
15946 msgid ""
15947 " char **\n"
15948 " guestfs_zgrepi (guestfs_h *g,\n"
15949 "                 const char *regex,\n"
15950 "                 const char *path);\n"
15951 "\n"
15952 msgstr ""
15953
15954 # type: textblock
15955 #: ../src/guestfs-actions.pod:7166 ../fish/guestfish-actions.pod:4735
15956 msgid "This calls the external C<zgrep -i> program and returns the matching lines."
15957 msgstr ""
15958
15959 # type: =item
15960 #: ../src/guestfs-availability.pod:3
15961 msgid "B<augeas>"
15962 msgstr ""
15963
15964 # type: textblock
15965 #: ../src/guestfs-availability.pod:5
15966 msgid ""
15967 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> "
15968 "L</guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> "
15969 "L</guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> "
15970 "L</guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> "
15971 "L</guestfs_aug_rm> L</guestfs_aug_save> L</guestfs_aug_set>"
15972 msgstr ""
15973
15974 # type: =item
15975 #: ../src/guestfs-availability.pod:21
15976 msgid "B<inotify>"
15977 msgstr ""
15978
15979 # type: textblock
15980 #: ../src/guestfs-availability.pod:23
15981 msgid ""
15982 "The following functions: L</guestfs_inotify_add_watch> "
15983 "L</guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> "
15984 "L</guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
15985 msgstr ""
15986
15987 # type: =item
15988 #: ../src/guestfs-availability.pod:31
15989 msgid "B<linuxfsuuid>"
15990 msgstr ""
15991
15992 # type: textblock
15993 #: ../src/guestfs-availability.pod:33
15994 msgid ""
15995 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> "
15996 "L</guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
15997 msgstr ""
15998
15999 # type: =item
16000 #: ../src/guestfs-availability.pod:40
16001 msgid "B<linuxmodules>"
16002 msgstr ""
16003
16004 # type: textblock
16005 #: ../src/guestfs-availability.pod:42
16006 msgid "The following functions: L</guestfs_modprobe>"
16007 msgstr ""
16008
16009 # type: =item
16010 #: ../src/guestfs-availability.pod:45
16011 msgid "B<linuxxattrs>"
16012 msgstr ""
16013
16014 # type: textblock
16015 #: ../src/guestfs-availability.pod:47
16016 msgid ""
16017 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> "
16018 "L</guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> "
16019 "L</guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> "
16020 "L</guestfs_setxattr>"
16021 msgstr ""
16022
16023 # type: =item
16024 #: ../src/guestfs-availability.pod:58
16025 msgid "B<luks>"
16026 msgstr ""
16027
16028 # type: textblock
16029 #: ../src/guestfs-availability.pod:60
16030 msgid ""
16031 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> "
16032 "L</guestfs_luks_format> L</guestfs_luks_format_cipher> "
16033 "L</guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
16034 msgstr ""
16035
16036 # type: =item
16037 #: ../src/guestfs-availability.pod:69
16038 msgid "B<lvm2>"
16039 msgstr ""
16040
16041 # type: textblock
16042 #: ../src/guestfs-availability.pod:71
16043 msgid ""
16044 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> "
16045 "L</guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> "
16046 "L</guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> "
16047 "L</guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> "
16048 "L</guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> "
16049 "L</guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> "
16050 "L</guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> "
16051 "L</guestfs_vgs_full>"
16052 msgstr ""
16053
16054 # type: =item
16055 #: ../src/guestfs-availability.pod:94
16056 msgid "B<mknod>"
16057 msgstr ""
16058
16059 # type: textblock
16060 #: ../src/guestfs-availability.pod:96
16061 msgid ""
16062 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> "
16063 "L</guestfs_mknod_b> L</guestfs_mknod_c>"
16064 msgstr ""
16065
16066 # type: =item
16067 #: ../src/guestfs-availability.pod:102
16068 msgid "B<ntfs3g>"
16069 msgstr ""
16070
16071 # type: textblock
16072 #: ../src/guestfs-availability.pod:104
16073 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
16074 msgstr ""
16075
16076 # type: =item
16077 #: ../src/guestfs-availability.pod:107
16078 msgid "B<ntfsprogs>"
16079 msgstr ""
16080
16081 # type: textblock
16082 #: ../src/guestfs-availability.pod:109
16083 msgid "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_size>"
16084 msgstr ""
16085
16086 # type: =item
16087 #: ../src/guestfs-availability.pod:113
16088 msgid "B<realpath>"
16089 msgstr ""
16090
16091 # type: textblock
16092 #: ../src/guestfs-availability.pod:115
16093 msgid "The following functions: L</guestfs_realpath>"
16094 msgstr ""
16095
16096 # type: =item
16097 #: ../src/guestfs-availability.pod:118
16098 msgid "B<scrub>"
16099 msgstr ""
16100
16101 # type: textblock
16102 #: ../src/guestfs-availability.pod:120
16103 msgid ""
16104 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> "
16105 "L</guestfs_scrub_freespace>"
16106 msgstr ""
16107
16108 # type: =item
16109 #: ../src/guestfs-availability.pod:125
16110 msgid "B<selinux>"
16111 msgstr ""
16112
16113 # type: textblock
16114 #: ../src/guestfs-availability.pod:127
16115 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
16116 msgstr ""
16117
16118 # type: =item
16119 #: ../src/guestfs-availability.pod:131
16120 msgid "B<xz>"
16121 msgstr ""
16122
16123 # type: textblock
16124 #: ../src/guestfs-availability.pod:133
16125 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
16126 msgstr ""
16127
16128 # type: =item
16129 #: ../src/guestfs-availability.pod:137
16130 msgid "B<zerofree>"
16131 msgstr ""
16132
16133 # type: textblock
16134 #: ../src/guestfs-availability.pod:139
16135 msgid "The following functions: L</guestfs_zerofree>"
16136 msgstr ""
16137
16138 # type: =head2
16139 #: ../src/guestfs-structs.pod:1
16140 msgid "guestfs_int_bool"
16141 msgstr ""
16142
16143 # type: verbatim
16144 #: ../src/guestfs-structs.pod:3
16145 #, no-wrap
16146 msgid ""
16147 " struct guestfs_int_bool {\n"
16148 "   int32_t i;\n"
16149 "   int32_t b;\n"
16150 " };\n"
16151 " \n"
16152 msgstr ""
16153
16154 # type: verbatim
16155 #: ../src/guestfs-structs.pod:8
16156 #, no-wrap
16157 msgid ""
16158 " struct guestfs_int_bool_list {\n"
16159 "   uint32_t len; /* Number of elements in list. */\n"
16160 "   struct guestfs_int_bool *val; /* Elements. */\n"
16161 " };\n"
16162 " \n"
16163 msgstr ""
16164
16165 # type: verbatim
16166 #: ../src/guestfs-structs.pod:13
16167 #, no-wrap
16168 msgid ""
16169 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
16170 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
16171 "\n"
16172 msgstr ""
16173
16174 # type: =head2
16175 #: ../src/guestfs-structs.pod:16
16176 msgid "guestfs_lvm_pv"
16177 msgstr ""
16178
16179 # type: verbatim
16180 #: ../src/guestfs-structs.pod:18
16181 #, no-wrap
16182 msgid ""
16183 " struct guestfs_lvm_pv {\n"
16184 "   char *pv_name;\n"
16185 "   /* The next field is NOT nul-terminated, be careful when printing it: "
16186 "*/\n"
16187 "   char pv_uuid[32];\n"
16188 "   char *pv_fmt;\n"
16189 "   uint64_t pv_size;\n"
16190 "   uint64_t dev_size;\n"
16191 "   uint64_t pv_free;\n"
16192 "   uint64_t pv_used;\n"
16193 "   char *pv_attr;\n"
16194 "   int64_t pv_pe_count;\n"
16195 "   int64_t pv_pe_alloc_count;\n"
16196 "   char *pv_tags;\n"
16197 "   uint64_t pe_start;\n"
16198 "   int64_t pv_mda_count;\n"
16199 "   uint64_t pv_mda_free;\n"
16200 " };\n"
16201 " \n"
16202 msgstr ""
16203
16204 # type: verbatim
16205 #: ../src/guestfs-structs.pod:36
16206 #, no-wrap
16207 msgid ""
16208 " struct guestfs_lvm_pv_list {\n"
16209 "   uint32_t len; /* Number of elements in list. */\n"
16210 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
16211 " };\n"
16212 " \n"
16213 msgstr ""
16214
16215 # type: verbatim
16216 #: ../src/guestfs-structs.pod:41
16217 #, no-wrap
16218 msgid ""
16219 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
16220 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
16221 "\n"
16222 msgstr ""
16223
16224 # type: =head2
16225 #: ../src/guestfs-structs.pod:44
16226 msgid "guestfs_lvm_vg"
16227 msgstr ""
16228
16229 # type: verbatim
16230 #: ../src/guestfs-structs.pod:46
16231 #, no-wrap
16232 msgid ""
16233 " struct guestfs_lvm_vg {\n"
16234 "   char *vg_name;\n"
16235 "   /* The next field is NOT nul-terminated, be careful when printing it: "
16236 "*/\n"
16237 "   char vg_uuid[32];\n"
16238 "   char *vg_fmt;\n"
16239 "   char *vg_attr;\n"
16240 "   uint64_t vg_size;\n"
16241 "   uint64_t vg_free;\n"
16242 "   char *vg_sysid;\n"
16243 "   uint64_t vg_extent_size;\n"
16244 "   int64_t vg_extent_count;\n"
16245 "   int64_t vg_free_count;\n"
16246 "   int64_t max_lv;\n"
16247 "   int64_t max_pv;\n"
16248 "   int64_t pv_count;\n"
16249 "   int64_t lv_count;\n"
16250 "   int64_t snap_count;\n"
16251 "   int64_t vg_seqno;\n"
16252 "   char *vg_tags;\n"
16253 "   int64_t vg_mda_count;\n"
16254 "   uint64_t vg_mda_free;\n"
16255 " };\n"
16256 " \n"
16257 msgstr ""
16258
16259 # type: verbatim
16260 #: ../src/guestfs-structs.pod:69
16261 #, no-wrap
16262 msgid ""
16263 " struct guestfs_lvm_vg_list {\n"
16264 "   uint32_t len; /* Number of elements in list. */\n"
16265 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
16266 " };\n"
16267 " \n"
16268 msgstr ""
16269
16270 # type: verbatim
16271 #: ../src/guestfs-structs.pod:74
16272 #, no-wrap
16273 msgid ""
16274 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
16275 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
16276 "\n"
16277 msgstr ""
16278
16279 # type: =head2
16280 #: ../src/guestfs-structs.pod:77
16281 msgid "guestfs_lvm_lv"
16282 msgstr ""
16283
16284 # type: verbatim
16285 #: ../src/guestfs-structs.pod:79
16286 #, no-wrap
16287 msgid ""
16288 " struct guestfs_lvm_lv {\n"
16289 "   char *lv_name;\n"
16290 "   /* The next field is NOT nul-terminated, be careful when printing it: "
16291 "*/\n"
16292 "   char lv_uuid[32];\n"
16293 "   char *lv_attr;\n"
16294 "   int64_t lv_major;\n"
16295 "   int64_t lv_minor;\n"
16296 "   int64_t lv_kernel_major;\n"
16297 "   int64_t lv_kernel_minor;\n"
16298 "   uint64_t lv_size;\n"
16299 "   int64_t seg_count;\n"
16300 "   char *origin;\n"
16301 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
16302 "   float snap_percent;\n"
16303 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
16304 "   float copy_percent;\n"
16305 "   char *move_pv;\n"
16306 "   char *lv_tags;\n"
16307 "   char *mirror_log;\n"
16308 "   char *modules;\n"
16309 " };\n"
16310 " \n"
16311 msgstr ""
16312
16313 # type: verbatim
16314 #: ../src/guestfs-structs.pod:101
16315 #, no-wrap
16316 msgid ""
16317 " struct guestfs_lvm_lv_list {\n"
16318 "   uint32_t len; /* Number of elements in list. */\n"
16319 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
16320 " };\n"
16321 " \n"
16322 msgstr ""
16323
16324 # type: verbatim
16325 #: ../src/guestfs-structs.pod:106
16326 #, no-wrap
16327 msgid ""
16328 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
16329 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
16330 "\n"
16331 msgstr ""
16332
16333 # type: verbatim
16334 #: ../src/guestfs-structs.pod:111
16335 #, no-wrap
16336 msgid ""
16337 " struct guestfs_stat {\n"
16338 "   int64_t dev;\n"
16339 "   int64_t ino;\n"
16340 "   int64_t mode;\n"
16341 "   int64_t nlink;\n"
16342 "   int64_t uid;\n"
16343 "   int64_t gid;\n"
16344 "   int64_t rdev;\n"
16345 "   int64_t size;\n"
16346 "   int64_t blksize;\n"
16347 "   int64_t blocks;\n"
16348 "   int64_t atime;\n"
16349 "   int64_t mtime;\n"
16350 "   int64_t ctime;\n"
16351 " };\n"
16352 " \n"
16353 msgstr ""
16354
16355 # type: verbatim
16356 #: ../src/guestfs-structs.pod:127
16357 #, no-wrap
16358 msgid ""
16359 " struct guestfs_stat_list {\n"
16360 "   uint32_t len; /* Number of elements in list. */\n"
16361 "   struct guestfs_stat *val; /* Elements. */\n"
16362 " };\n"
16363 " \n"
16364 msgstr ""
16365
16366 # type: verbatim
16367 #: ../src/guestfs-structs.pod:132
16368 #, no-wrap
16369 msgid ""
16370 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
16371 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
16372 "\n"
16373 msgstr ""
16374
16375 # type: verbatim
16376 #: ../src/guestfs-structs.pod:137
16377 #, no-wrap
16378 msgid ""
16379 " struct guestfs_statvfs {\n"
16380 "   int64_t bsize;\n"
16381 "   int64_t frsize;\n"
16382 "   int64_t blocks;\n"
16383 "   int64_t bfree;\n"
16384 "   int64_t bavail;\n"
16385 "   int64_t files;\n"
16386 "   int64_t ffree;\n"
16387 "   int64_t favail;\n"
16388 "   int64_t fsid;\n"
16389 "   int64_t flag;\n"
16390 "   int64_t namemax;\n"
16391 " };\n"
16392 " \n"
16393 msgstr ""
16394
16395 # type: verbatim
16396 #: ../src/guestfs-structs.pod:151
16397 #, no-wrap
16398 msgid ""
16399 " struct guestfs_statvfs_list {\n"
16400 "   uint32_t len; /* Number of elements in list. */\n"
16401 "   struct guestfs_statvfs *val; /* Elements. */\n"
16402 " };\n"
16403 " \n"
16404 msgstr ""
16405
16406 # type: verbatim
16407 #: ../src/guestfs-structs.pod:156
16408 #, no-wrap
16409 msgid ""
16410 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
16411 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
16412 "\n"
16413 msgstr ""
16414
16415 # type: =head2
16416 #: ../src/guestfs-structs.pod:159
16417 msgid "guestfs_dirent"
16418 msgstr ""
16419
16420 # type: verbatim
16421 #: ../src/guestfs-structs.pod:161
16422 #, no-wrap
16423 msgid ""
16424 " struct guestfs_dirent {\n"
16425 "   int64_t ino;\n"
16426 "   char ftyp;\n"
16427 "   char *name;\n"
16428 " };\n"
16429 " \n"
16430 msgstr ""
16431
16432 # type: verbatim
16433 #: ../src/guestfs-structs.pod:167
16434 #, no-wrap
16435 msgid ""
16436 " struct guestfs_dirent_list {\n"
16437 "   uint32_t len; /* Number of elements in list. */\n"
16438 "   struct guestfs_dirent *val; /* Elements. */\n"
16439 " };\n"
16440 " \n"
16441 msgstr ""
16442
16443 # type: verbatim
16444 #: ../src/guestfs-structs.pod:172
16445 #, no-wrap
16446 msgid ""
16447 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
16448 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
16449 "\n"
16450 msgstr ""
16451
16452 # type: verbatim
16453 #: ../src/guestfs-structs.pod:177
16454 #, no-wrap
16455 msgid ""
16456 " struct guestfs_version {\n"
16457 "   int64_t major;\n"
16458 "   int64_t minor;\n"
16459 "   int64_t release;\n"
16460 "   char *extra;\n"
16461 " };\n"
16462 " \n"
16463 msgstr ""
16464
16465 # type: verbatim
16466 #: ../src/guestfs-structs.pod:184
16467 #, no-wrap
16468 msgid ""
16469 " struct guestfs_version_list {\n"
16470 "   uint32_t len; /* Number of elements in list. */\n"
16471 "   struct guestfs_version *val; /* Elements. */\n"
16472 " };\n"
16473 " \n"
16474 msgstr ""
16475
16476 # type: verbatim
16477 #: ../src/guestfs-structs.pod:189
16478 #, no-wrap
16479 msgid ""
16480 " void guestfs_free_version (struct guestfs_free_version *);\n"
16481 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
16482 "\n"
16483 msgstr ""
16484
16485 # type: =head2
16486 #: ../src/guestfs-structs.pod:192
16487 msgid "guestfs_xattr"
16488 msgstr ""
16489
16490 # type: verbatim
16491 #: ../src/guestfs-structs.pod:194
16492 #, no-wrap
16493 msgid ""
16494 " struct guestfs_xattr {\n"
16495 "   char *attrname;\n"
16496 "   /* The next two fields describe a byte array. */\n"
16497 "   uint32_t attrval_len;\n"
16498 "   char *attrval;\n"
16499 " };\n"
16500 " \n"
16501 msgstr ""
16502
16503 # type: verbatim
16504 #: ../src/guestfs-structs.pod:201
16505 #, no-wrap
16506 msgid ""
16507 " struct guestfs_xattr_list {\n"
16508 "   uint32_t len; /* Number of elements in list. */\n"
16509 "   struct guestfs_xattr *val; /* Elements. */\n"
16510 " };\n"
16511 " \n"
16512 msgstr ""
16513
16514 # type: verbatim
16515 #: ../src/guestfs-structs.pod:206
16516 #, no-wrap
16517 msgid ""
16518 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
16519 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
16520 "\n"
16521 msgstr ""
16522
16523 # type: =head2
16524 #: ../src/guestfs-structs.pod:209
16525 msgid "guestfs_inotify_event"
16526 msgstr ""
16527
16528 # type: verbatim
16529 #: ../src/guestfs-structs.pod:211
16530 #, no-wrap
16531 msgid ""
16532 " struct guestfs_inotify_event {\n"
16533 "   int64_t in_wd;\n"
16534 "   uint32_t in_mask;\n"
16535 "   uint32_t in_cookie;\n"
16536 "   char *in_name;\n"
16537 " };\n"
16538 " \n"
16539 msgstr ""
16540
16541 # type: verbatim
16542 #: ../src/guestfs-structs.pod:218
16543 #, no-wrap
16544 msgid ""
16545 " struct guestfs_inotify_event_list {\n"
16546 "   uint32_t len; /* Number of elements in list. */\n"
16547 "   struct guestfs_inotify_event *val; /* Elements. */\n"
16548 " };\n"
16549 " \n"
16550 msgstr ""
16551
16552 # type: verbatim
16553 #: ../src/guestfs-structs.pod:223
16554 #, no-wrap
16555 msgid ""
16556 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
16557 " void guestfs_free_inotify_event_list (struct "
16558 "guestfs_free_inotify_event_list *);\n"
16559 "\n"
16560 msgstr ""
16561
16562 # type: =head2
16563 #: ../src/guestfs-structs.pod:226
16564 msgid "guestfs_partition"
16565 msgstr ""
16566
16567 # type: verbatim
16568 #: ../src/guestfs-structs.pod:228
16569 #, no-wrap
16570 msgid ""
16571 " struct guestfs_partition {\n"
16572 "   int32_t part_num;\n"
16573 "   uint64_t part_start;\n"
16574 "   uint64_t part_end;\n"
16575 "   uint64_t part_size;\n"
16576 " };\n"
16577 " \n"
16578 msgstr ""
16579
16580 # type: verbatim
16581 #: ../src/guestfs-structs.pod:235
16582 #, no-wrap
16583 msgid ""
16584 " struct guestfs_partition_list {\n"
16585 "   uint32_t len; /* Number of elements in list. */\n"
16586 "   struct guestfs_partition *val; /* Elements. */\n"
16587 " };\n"
16588 " \n"
16589 msgstr ""
16590
16591 # type: verbatim
16592 #: ../src/guestfs-structs.pod:240
16593 #, no-wrap
16594 msgid ""
16595 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
16596 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
16597 "\n"
16598 msgstr ""
16599
16600 # type: =head2
16601 #: ../src/guestfs-structs.pod:243
16602 msgid "guestfs_application"
16603 msgstr ""
16604
16605 # type: verbatim
16606 #: ../src/guestfs-structs.pod:245
16607 #, no-wrap
16608 msgid ""
16609 " struct guestfs_application {\n"
16610 "   char *app_name;\n"
16611 "   char *app_display_name;\n"
16612 "   int32_t app_epoch;\n"
16613 "   char *app_version;\n"
16614 "   char *app_release;\n"
16615 "   char *app_install_path;\n"
16616 "   char *app_trans_path;\n"
16617 "   char *app_publisher;\n"
16618 "   char *app_url;\n"
16619 "   char *app_source_package;\n"
16620 "   char *app_summary;\n"
16621 "   char *app_description;\n"
16622 " };\n"
16623 " \n"
16624 msgstr ""
16625
16626 # type: verbatim
16627 #: ../src/guestfs-structs.pod:260
16628 #, no-wrap
16629 msgid ""
16630 " struct guestfs_application_list {\n"
16631 "   uint32_t len; /* Number of elements in list. */\n"
16632 "   struct guestfs_application *val; /* Elements. */\n"
16633 " };\n"
16634 " \n"
16635 msgstr ""
16636
16637 # type: verbatim
16638 #: ../src/guestfs-structs.pod:265
16639 #, no-wrap
16640 msgid ""
16641 " void guestfs_free_application (struct guestfs_free_application *);\n"
16642 " void guestfs_free_application_list (struct guestfs_free_application_list "
16643 "*);\n"
16644 "\n"
16645 msgstr ""
16646
16647 # type: textblock
16648 #: ../fish/guestfish.pod:5
16649 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
16650 msgstr ""
16651
16652 # type: verbatim
16653 #: ../fish/guestfish.pod:9
16654 #, no-wrap
16655 msgid ""
16656 " guestfish [--options] [commands]\n"
16657 "\n"
16658 msgstr ""
16659
16660 # type: verbatim
16661 #: ../fish/guestfish.pod:11
16662 #, no-wrap
16663 msgid ""
16664 " guestfish\n"
16665 "\n"
16666 msgstr ""
16667
16668 # type: verbatim
16669 #: ../fish/guestfish.pod:13
16670 #, no-wrap
16671 msgid ""
16672 " guestfish [--ro|--rw] -a disk.img\n"
16673 "\n"
16674 msgstr ""
16675
16676 # type: verbatim
16677 #: ../fish/guestfish.pod:15
16678 #, no-wrap
16679 msgid ""
16680 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
16681 "\n"
16682 msgstr ""
16683
16684 # type: verbatim
16685 #: ../fish/guestfish.pod:17
16686 #, no-wrap
16687 msgid ""
16688 " guestfish -d libvirt-domain\n"
16689 "\n"
16690 msgstr ""
16691
16692 # type: verbatim
16693 #: ../fish/guestfish.pod:19
16694 #, no-wrap
16695 msgid ""
16696 " guestfish [--ro|--rw] -a disk.img -i\n"
16697 "\n"
16698 msgstr ""
16699
16700 # type: verbatim
16701 #: ../fish/guestfish.pod:21
16702 #, no-wrap
16703 msgid ""
16704 " guestfish -d libvirt-domain -i\n"
16705 "\n"
16706 msgstr ""
16707
16708 # type: =head1
16709 #: ../fish/guestfish.pod:23 ../fuse/guestmount.pod:15 ../tools/virt-edit.pl:44 ../tools/virt-win-reg.pl:51 ../tools/virt-tar.pl:59
16710 msgid "WARNING"
16711 msgstr ""
16712
16713 # type: textblock
16714 #: ../fish/guestfish.pod:25
16715 msgid ""
16716 "Using guestfish in read/write mode on live virtual machines can be "
16717 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
16718 "option to use guestfish safely if the disk image or virtual machine might be "
16719 "live."
16720 msgstr ""
16721
16722 # type: textblock
16723 #: ../fish/guestfish.pod:32
16724 msgid ""
16725 "Guestfish is a shell and command-line tool for examining and modifying "
16726 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
16727 "functionality of the guestfs API, see L<guestfs(3)>."
16728 msgstr ""
16729
16730 # type: textblock
16731 #: ../fish/guestfish.pod:36
16732 msgid ""
16733 "Guestfish gives you structured access to the libguestfs API, from shell "
16734 "scripts or the command line or interactively.  If you want to rescue a "
16735 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
16736 "command."
16737 msgstr ""
16738
16739 # type: =head1
16740 #: ../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
16741 msgid "EXAMPLES"
16742 msgstr ""
16743
16744 # type: =head2
16745 #: ../fish/guestfish.pod:43
16746 msgid "As an interactive shell"
16747 msgstr ""
16748
16749 # type: verbatim
16750 #: ../fish/guestfish.pod:45
16751 #, no-wrap
16752 msgid ""
16753 " $ guestfish\n"
16754 " \n"
16755 msgstr ""
16756
16757 # type: verbatim
16758 #: ../fish/guestfish.pod:47
16759 #, no-wrap
16760 msgid ""
16761 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
16762 " editing virtual machine filesystems.\n"
16763 " \n"
16764 msgstr ""
16765
16766 # type: verbatim
16767 #: ../fish/guestfish.pod:50
16768 #, no-wrap
16769 msgid ""
16770 " Type: 'help' for a list of commands\n"
16771 "       'man' to read the manual\n"
16772 "       'quit' to quit the shell\n"
16773 " \n"
16774 msgstr ""
16775
16776 # type: verbatim
16777 #: ../fish/guestfish.pod:54
16778 #, no-wrap
16779 msgid ""
16780 " ><fs> add-ro disk.img\n"
16781 " ><fs> run\n"
16782 " ><fs> list-filesystems\n"
16783 " /dev/sda1: ext4\n"
16784 " /dev/vg_guest/lv_root: ext4\n"
16785 " /dev/vg_guest/lv_swap: swap\n"
16786 " ><fs> mount /dev/vg_guest/lv_root /\n"
16787 " ><fs> cat /etc/fstab\n"
16788 " # /etc/fstab\n"
16789 " # Created by anaconda\n"
16790 " [...]\n"
16791 " ><fs> exit\n"
16792 "\n"
16793 msgstr ""
16794
16795 # type: =head2
16796 #: ../fish/guestfish.pod:67
16797 msgid "From shell scripts"
16798 msgstr ""
16799
16800 # type: textblock
16801 #: ../fish/guestfish.pod:69
16802 msgid "Create a new C</etc/motd> file in a guest or disk image:"
16803 msgstr ""
16804
16805 # type: verbatim
16806 #: ../fish/guestfish.pod:71
16807 #, no-wrap
16808 msgid ""
16809 " guestfish <<_EOF_\n"
16810 " add disk.img\n"
16811 " run\n"
16812 " mount /dev/vg_guest/lv_root /\n"
16813 " write /etc/motd \"Welcome, new users\"\n"
16814 " _EOF_\n"
16815 "\n"
16816 msgstr ""
16817
16818 # type: textblock
16819 #: ../fish/guestfish.pod:78
16820 msgid "List the LVM logical volumes in a disk image:"
16821 msgstr ""
16822
16823 # type: verbatim
16824 #: ../fish/guestfish.pod:80
16825 #, no-wrap
16826 msgid ""
16827 " guestfish -a disk.img --ro <<_EOF_\n"
16828 " run\n"
16829 " lvs\n"
16830 " _EOF_\n"
16831 "\n"
16832 msgstr ""
16833
16834 # type: textblock
16835 #: ../fish/guestfish.pod:85
16836 msgid "List all the filesystems in a disk image:"
16837 msgstr ""
16838
16839 # type: verbatim
16840 #: ../fish/guestfish.pod:87
16841 #, no-wrap
16842 msgid ""
16843 " guestfish -a disk.img --ro <<_EOF_\n"
16844 " run\n"
16845 " list-filesystems\n"
16846 " _EOF_\n"
16847 "\n"
16848 msgstr ""
16849
16850 # type: =head2
16851 #: ../fish/guestfish.pod:92
16852 msgid "On one command line"
16853 msgstr ""
16854
16855 # type: textblock
16856 #: ../fish/guestfish.pod:94
16857 msgid "Update C</etc/resolv.conf> in a guest:"
16858 msgstr ""
16859
16860 # type: verbatim
16861 #: ../fish/guestfish.pod:96
16862 #, no-wrap
16863 msgid ""
16864 " guestfish \\\n"
16865 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
16866 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
16867 "\n"
16868 msgstr ""
16869
16870 # type: textblock
16871 #: ../fish/guestfish.pod:100
16872 msgid "Edit C</boot/grub/grub.conf> interactively:"
16873 msgstr ""
16874
16875 # type: verbatim
16876 #: ../fish/guestfish.pod:102
16877 #, no-wrap
16878 msgid ""
16879 " guestfish --rw --add disk.img \\\n"
16880 "   --mount /dev/vg_guest/lv_root \\\n"
16881 "   --mount /dev/sda1:/boot \\\n"
16882 "   edit /boot/grub/grub.conf\n"
16883 "\n"
16884 msgstr ""
16885
16886 # type: =head2
16887 #: ../fish/guestfish.pod:107
16888 msgid "Mount disks automatically"
16889 msgstr ""
16890
16891 # type: textblock
16892 #: ../fish/guestfish.pod:109
16893 msgid ""
16894 "Use the I<-i> option to automatically mount the disks from a virtual "
16895 "machine:"
16896 msgstr ""
16897
16898 # type: verbatim
16899 #: ../fish/guestfish.pod:112
16900 #, no-wrap
16901 msgid ""
16902 " guestfish --ro -a disk.img -i cat /etc/group\n"
16903 "\n"
16904 msgstr ""
16905
16906 # type: verbatim
16907 #: ../fish/guestfish.pod:114
16908 #, no-wrap
16909 msgid ""
16910 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
16911 "\n"
16912 msgstr ""
16913
16914 # type: textblock
16915 #: ../fish/guestfish.pod:116
16916 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
16917 msgstr ""
16918
16919 # type: verbatim
16920 #: ../fish/guestfish.pod:118
16921 #, no-wrap
16922 msgid ""
16923 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
16924 "\n"
16925 msgstr ""
16926
16927 # type: =head2
16928 #: ../fish/guestfish.pod:120
16929 msgid "As a script interpreter"
16930 msgstr ""
16931
16932 # type: textblock
16933 #: ../fish/guestfish.pod:122
16934 msgid "Create a 100MB disk containing an ext2-formatted partition:"
16935 msgstr ""
16936
16937 # type: verbatim
16938 #: ../fish/guestfish.pod:124
16939 #, no-wrap
16940 msgid ""
16941 " #!/usr/bin/guestfish -f\n"
16942 " sparse test1.img 100M\n"
16943 " run\n"
16944 " part-disk /dev/sda mbr\n"
16945 " mkfs ext2 /dev/sda1\n"
16946 "\n"
16947 msgstr ""
16948
16949 # type: =head2
16950 #: ../fish/guestfish.pod:130
16951 msgid "Start with a prepared disk"
16952 msgstr ""
16953
16954 # type: textblock
16955 #: ../fish/guestfish.pod:132
16956 msgid ""
16957 "An alternate way to create a 100MB disk called C<test1.img> containing a "
16958 "single ext2-formatted partition:"
16959 msgstr ""
16960
16961 # type: verbatim
16962 #: ../fish/guestfish.pod:135
16963 #, no-wrap
16964 msgid ""
16965 " guestfish -N fs\n"
16966 "\n"
16967 msgstr ""
16968
16969 # type: textblock
16970 #: ../fish/guestfish.pod:137
16971 msgid "To list what is available do:"
16972 msgstr ""
16973
16974 # type: verbatim
16975 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:888
16976 #, no-wrap
16977 msgid ""
16978 " guestfish -N help | less\n"
16979 "\n"
16980 msgstr ""
16981
16982 # type: =head2
16983 #: ../fish/guestfish.pod:141
16984 msgid "Remote control"
16985 msgstr ""
16986
16987 # type: verbatim
16988 #: ../fish/guestfish.pod:143
16989 #, no-wrap
16990 msgid ""
16991 " eval \"`guestfish --listen`\"\n"
16992 " guestfish --remote add-ro disk.img\n"
16993 " guestfish --remote run\n"
16994 " guestfish --remote lvs\n"
16995 "\n"
16996 msgstr ""
16997
16998 # type: =head1
16999 #: ../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
17000 msgid "OPTIONS"
17001 msgstr ""
17002
17003 # type: =item
17004 #: ../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
17005 msgid "B<--help>"
17006 msgstr ""
17007
17008 # type: textblock
17009 #: ../fish/guestfish.pod:154
17010 msgid "Displays general help on options."
17011 msgstr ""
17012
17013 # type: =item
17014 #: ../fish/guestfish.pod:156
17015 msgid "B<-h>"
17016 msgstr ""
17017
17018 # type: =item
17019 #: ../fish/guestfish.pod:158
17020 msgid "B<--cmd-help>"
17021 msgstr ""
17022
17023 # type: textblock
17024 #: ../fish/guestfish.pod:160
17025 msgid "Lists all available guestfish commands."
17026 msgstr ""
17027
17028 # type: =item
17029 #: ../fish/guestfish.pod:162
17030 msgid "B<-h cmd>"
17031 msgstr ""
17032
17033 # type: =item
17034 #: ../fish/guestfish.pod:164
17035 msgid "B<--cmd-help cmd>"
17036 msgstr ""
17037
17038 # type: textblock
17039 #: ../fish/guestfish.pod:166
17040 msgid "Displays detailed help on a single command C<cmd>."
17041 msgstr ""
17042
17043 # type: =item
17044 #: ../fish/guestfish.pod:168
17045 msgid "B<-a image>"
17046 msgstr ""
17047
17048 # type: =item
17049 #: ../fish/guestfish.pod:170
17050 msgid "B<--add image>"
17051 msgstr ""
17052
17053 # type: textblock
17054 #: ../fish/guestfish.pod:172
17055 msgid "Add a block device or virtual machine image to the shell."
17056 msgstr ""
17057
17058 # type: textblock
17059 #: ../fish/guestfish.pod:174 ../fuse/guestmount.pod:81
17060 msgid ""
17061 "The format of the disk image is auto-detected.  To override this and force a "
17062 "particular format use the I<--format=..> option."
17063 msgstr ""
17064
17065 # type: textblock
17066 #: ../fish/guestfish.pod:177
17067 msgid ""
17068 "Using this flag is mostly equivalent to using the C<add> command, with "
17069 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
17070 "the I<--format:...> flag was given."
17071 msgstr ""
17072
17073 # type: =item
17074 #: ../fish/guestfish.pod:181
17075 msgid "B<-c URI>"
17076 msgstr ""
17077
17078 # type: =item
17079 #: ../fish/guestfish.pod:183
17080 msgid "B<--connect URI>"
17081 msgstr ""
17082
17083 # type: textblock
17084 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:86
17085 msgid ""
17086 "When used in conjunction with the I<-d> option, this specifies the libvirt "
17087 "URI to use.  The default is to use the default libvirt connection."
17088 msgstr ""
17089
17090 # type: =item
17091 #: ../fish/guestfish.pod:189
17092 msgid "B<--csh>"
17093 msgstr ""
17094
17095 # type: textblock
17096 #: ../fish/guestfish.pod:191
17097 msgid ""
17098 "If using the I<--listen> option and a csh-like shell, use this option.  See "
17099 "section L</REMOTE CONTROL AND CSH> below."
17100 msgstr ""
17101
17102 # type: =item
17103 #: ../fish/guestfish.pod:194
17104 msgid "B<-d libvirt-domain>"
17105 msgstr ""
17106
17107 # type: =item
17108 #: ../fish/guestfish.pod:196
17109 msgid "B<--domain libvirt-domain>"
17110 msgstr ""
17111
17112 # type: textblock
17113 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:92
17114 msgid ""
17115 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
17116 "used, then any libvirt domain can be used.  However in write mode, only "
17117 "libvirt domains which are shut down can be named here."
17118 msgstr ""
17119
17120 # type: textblock
17121 #: ../fish/guestfish.pod:202
17122 msgid ""
17123 "Using this flag is mostly equivalent to using the C<add-domain> command, "
17124 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
17125 "if the I<--format:...> flag was given."
17126 msgstr ""
17127
17128 # type: =item
17129 #: ../fish/guestfish.pod:206
17130 msgid "B<-D>"
17131 msgstr ""
17132
17133 # type: =item
17134 #: ../fish/guestfish.pod:208
17135 msgid "B<--no-dest-paths>"
17136 msgstr ""
17137
17138 # type: textblock
17139 #: ../fish/guestfish.pod:210
17140 msgid ""
17141 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
17142 "to hit the tab key to complete paths on the guest filesystem, but this "
17143 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
17144 "allow this feature to be disabled."
17145 msgstr ""
17146
17147 # type: =item
17148 #: ../fish/guestfish.pod:215 ../fuse/guestmount.pod:108
17149 msgid "B<--echo-keys>"
17150 msgstr ""
17151
17152 # type: textblock
17153 #: ../fish/guestfish.pod:217 ../fuse/guestmount.pod:110
17154 msgid ""
17155 "When prompting for keys and passphrases, guestfish normally turns echoing "
17156 "off so you cannot see what you are typing.  If you are not worried about "
17157 "Tempest attacks and there is no one else in the room you can specify this "
17158 "flag to see what you are typing."
17159 msgstr ""
17160
17161 # type: =item
17162 #: ../fish/guestfish.pod:222
17163 msgid "B<-f file>"
17164 msgstr ""
17165
17166 # type: =item
17167 #: ../fish/guestfish.pod:224
17168 msgid "B<--file file>"
17169 msgstr ""
17170
17171 # type: textblock
17172 #: ../fish/guestfish.pod:226
17173 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
17174 msgstr ""
17175
17176 # type: verbatim
17177 #: ../fish/guestfish.pod:229
17178 #, no-wrap
17179 msgid ""
17180 " #!/usr/bin/guestfish -f\n"
17181 "\n"
17182 msgstr ""
17183
17184 # type: =item
17185 #: ../fish/guestfish.pod:231
17186 msgid "B<--format=raw|qcow2|..>"
17187 msgstr ""
17188
17189 # type: =item
17190 #: ../fish/guestfish.pod:233
17191 msgid "B<--format>"
17192 msgstr ""
17193
17194 # type: textblock
17195 #: ../fish/guestfish.pod:235 ../fuse/guestmount.pod:117
17196 msgid ""
17197 "The default for the I<-a> option is to auto-detect the format of the disk "
17198 "image.  Using this forces the disk format for I<-a> options which follow on "
17199 "the command line.  Using I<--format> with no argument switches back to "
17200 "auto-detection for subsequent I<-a> options."
17201 msgstr ""
17202
17203 # type: textblock
17204 #: ../fish/guestfish.pod:240 ../fish/guestfish.pod:594
17205 msgid "For example:"
17206 msgstr ""
17207
17208 # type: verbatim
17209 #: ../fish/guestfish.pod:242
17210 #, no-wrap
17211 msgid ""
17212 " guestfish --format=raw -a disk.img\n"
17213 "\n"
17214 msgstr ""
17215
17216 # type: textblock
17217 #: ../fish/guestfish.pod:244
17218 msgid "forces raw format (no auto-detection) for C<disk.img>."
17219 msgstr ""
17220
17221 # type: verbatim
17222 #: ../fish/guestfish.pod:246
17223 #, no-wrap
17224 msgid ""
17225 " guestfish --format=raw -a disk.img --format -a another.img\n"
17226 "\n"
17227 msgstr ""
17228
17229 # type: textblock
17230 #: ../fish/guestfish.pod:248
17231 msgid ""
17232 "forces raw format (no auto-detection) for C<disk.img> and reverts to "
17233 "auto-detection for C<another.img>."
17234 msgstr ""
17235
17236 # type: textblock
17237 #: ../fish/guestfish.pod:251
17238 msgid ""
17239 "If you have untrusted raw-format guest disk images, you should use this "
17240 "option to specify the disk format.  This avoids a possible security problem "
17241 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
17242 msgstr ""
17243
17244 # type: =item
17245 #: ../fish/guestfish.pod:256
17246 msgid "B<-i>"
17247 msgstr ""
17248
17249 # type: =item
17250 #: ../fish/guestfish.pod:258
17251 msgid "B<--inspector>"
17252 msgstr ""
17253
17254 # type: textblock
17255 #: ../fish/guestfish.pod:260 ../fuse/guestmount.pod:137
17256 msgid ""
17257 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
17258 "system and mount filesystems as they would be mounted on the real virtual "
17259 "machine."
17260 msgstr ""
17261
17262 # type: textblock
17263 #: ../fish/guestfish.pod:264
17264 msgid "Typical usage is either:"
17265 msgstr ""
17266
17267 # type: verbatim
17268 #: ../fish/guestfish.pod:266
17269 #, no-wrap
17270 msgid ""
17271 " guestfish -d myguest -i\n"
17272 "\n"
17273 msgstr ""
17274
17275 # type: textblock
17276 #: ../fish/guestfish.pod:268
17277 msgid "(for an inactive libvirt domain called I<myguest>), or:"
17278 msgstr ""
17279
17280 # type: verbatim
17281 #: ../fish/guestfish.pod:270
17282 #, no-wrap
17283 msgid ""
17284 " guestfish --ro -d myguest -i\n"
17285 "\n"
17286 msgstr ""
17287
17288 # type: textblock
17289 #: ../fish/guestfish.pod:272
17290 msgid "(for active domains, readonly), or specify the block device directly:"
17291 msgstr ""
17292
17293 # type: verbatim
17294 #: ../fish/guestfish.pod:274
17295 #, no-wrap
17296 msgid ""
17297 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
17298 "\n"
17299 msgstr ""
17300
17301 # type: textblock
17302 #: ../fish/guestfish.pod:276
17303 msgid ""
17304 "Note that the command line syntax changed slightly over older versions of "
17305 "guestfish.  You can still use the old syntax:"
17306 msgstr ""
17307
17308 # type: verbatim
17309 #: ../fish/guestfish.pod:279
17310 #, no-wrap
17311 msgid ""
17312 " guestfish [--ro] -i disk.img\n"
17313 "\n"
17314 msgstr ""
17315
17316 # type: verbatim
17317 #: ../fish/guestfish.pod:281
17318 #, no-wrap
17319 msgid ""
17320 " guestfish [--ro] -i libvirt-domain\n"
17321 "\n"
17322 msgstr ""
17323
17324 # type: textblock
17325 #: ../fish/guestfish.pod:283
17326 msgid ""
17327 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
17328 "then using other commands to mount the filesystems that were found."
17329 msgstr ""
17330
17331 # type: =item
17332 #: ../fish/guestfish.pod:287 ../fuse/guestmount.pod:141
17333 msgid "B<--keys-from-stdin>"
17334 msgstr ""
17335
17336 # type: textblock
17337 #: ../fish/guestfish.pod:289 ../fuse/guestmount.pod:143
17338 msgid ""
17339 "Read key or passphrase parameters from stdin.  The default is to try to read "
17340 "passphrases from the user by opening C</dev/tty>."
17341 msgstr ""
17342
17343 # type: =item
17344 #: ../fish/guestfish.pod:292
17345 msgid "B<--listen>"
17346 msgstr ""
17347
17348 # type: textblock
17349 #: ../fish/guestfish.pod:294
17350 msgid ""
17351 "Fork into the background and listen for remote commands.  See section "
17352 "L</REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
17353 msgstr ""
17354
17355 # type: =item
17356 #: ../fish/guestfish.pod:297
17357 msgid "B<-m dev[:mountpoint]>"
17358 msgstr ""
17359
17360 # type: =item
17361 #: ../fish/guestfish.pod:299
17362 msgid "B<--mount dev[:mountpoint]>"
17363 msgstr ""
17364
17365 # type: textblock
17366 #: ../fish/guestfish.pod:301
17367 msgid "Mount the named partition or logical volume on the given mountpoint."
17368 msgstr ""
17369
17370 # type: textblock
17371 #: ../fish/guestfish.pod:303
17372 msgid "If the mountpoint is omitted, it defaults to C</>."
17373 msgstr ""
17374
17375 # type: textblock
17376 #: ../fish/guestfish.pod:305
17377 msgid "You have to mount something on C</> before most commands will work."
17378 msgstr ""
17379
17380 # type: textblock
17381 #: ../fish/guestfish.pod:307
17382 msgid ""
17383 "If any I<-m> or I<--mount> options are given, the guest is automatically "
17384 "launched."
17385 msgstr ""
17386
17387 # type: textblock
17388 #: ../fish/guestfish.pod:310
17389 msgid ""
17390 "If you don't know what filesystems a disk image contains, you can either run "
17391 "guestfish without this option, then list the partitions, filesystems and LVs "
17392 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
17393 "commands), or you can use the L<virt-filesystems(1)> program."
17394 msgstr ""
17395
17396 # type: textblock
17397 #: ../fish/guestfish.pod:316
17398 msgid ""
17399 "Using this flag is mostly equivalent to using the C<mount-options> command "
17400 "or the C<mount-ro> command if the I<--ro> flag was given."
17401 msgstr ""
17402
17403 # type: =item
17404 #: ../fish/guestfish.pod:319
17405 msgid "B<-n>"
17406 msgstr ""
17407
17408 # type: =item
17409 #: ../fish/guestfish.pod:321
17410 msgid "B<--no-sync>"
17411 msgstr ""
17412
17413 # type: textblock
17414 #: ../fish/guestfish.pod:323
17415 msgid ""
17416 "Disable autosync.  This is enabled by default.  See the discussion of "
17417 "autosync in the L<guestfs(3)> manpage."
17418 msgstr ""
17419
17420 # type: =item
17421 #: ../fish/guestfish.pod:326
17422 msgid "B<-N type>"
17423 msgstr ""
17424
17425 # type: =item
17426 #: ../fish/guestfish.pod:328
17427 msgid "B<--new type>"
17428 msgstr ""
17429
17430 # type: =item
17431 #: ../fish/guestfish.pod:330
17432 msgid "B<-N help>"
17433 msgstr ""
17434
17435 # type: textblock
17436 #: ../fish/guestfish.pod:332
17437 msgid ""
17438 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
17439 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
17440 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
17441 "IMAGES> below."
17442 msgstr ""
17443
17444 # type: =item
17445 #: ../fish/guestfish.pod:337
17446 msgid "B<--progress-bars>"
17447 msgstr ""
17448
17449 # type: textblock
17450 #: ../fish/guestfish.pod:339
17451 msgid "Enable progress bars, even when guestfish is used non-interactively."
17452 msgstr ""
17453
17454 # type: textblock
17455 #: ../fish/guestfish.pod:341
17456 msgid ""
17457 "Progress bars are enabled by default when guestfish is used as an "
17458 "interactive shell."
17459 msgstr ""
17460
17461 # type: =item
17462 #: ../fish/guestfish.pod:344
17463 msgid "B<--no-progress-bars>"
17464 msgstr ""
17465
17466 # type: textblock
17467 #: ../fish/guestfish.pod:346
17468 msgid "Disable progress bars."
17469 msgstr ""
17470
17471 # type: =item
17472 #: ../fish/guestfish.pod:348
17473 msgid "B<--remote[=pid]>"
17474 msgstr ""
17475
17476 # type: textblock
17477 #: ../fish/guestfish.pod:350
17478 msgid ""
17479 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
17480 "CONTROL GUESTFISH OVER A SOCKET> below."
17481 msgstr ""
17482
17483 # type: =item
17484 #: ../fish/guestfish.pod:353
17485 msgid "B<-r>"
17486 msgstr ""
17487
17488 # type: =item
17489 #: ../fish/guestfish.pod:355
17490 msgid "B<--ro>"
17491 msgstr ""
17492
17493 # type: textblock
17494 #: ../fish/guestfish.pod:357
17495 msgid ""
17496 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
17497 "mounts are done read-only."
17498 msgstr ""
17499
17500 # type: textblock
17501 #: ../fish/guestfish.pod:360
17502 msgid ""
17503 "The option must always be used if the disk image or virtual machine might be "
17504 "running, and is generally recommended in cases where you don't need write "
17505 "access to the disk."
17506 msgstr ""
17507
17508 # type: textblock
17509 #: ../fish/guestfish.pod:364
17510 msgid ""
17511 "Note that prepared disk images created with I<-N> are not affected by this "
17512 "option.  Also commands like C<add> are not affected - you have to specify "
17513 "the C<readonly:true> option explicitly if you need it."
17514 msgstr ""
17515
17516 # type: textblock
17517 #: ../fish/guestfish.pod:368
17518 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
17519 msgstr ""
17520
17521 # type: =item
17522 #: ../fish/guestfish.pod:370 ../fuse/guestmount.pod:208
17523 msgid "B<--selinux>"
17524 msgstr ""
17525
17526 # type: textblock
17527 #: ../fish/guestfish.pod:372
17528 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
17529 msgstr ""
17530
17531 # type: =item
17532 #: ../fish/guestfish.pod:374
17533 msgid "B<-v>"
17534 msgstr ""
17535
17536 # type: =item
17537 #: ../fish/guestfish.pod:376
17538 msgid "B<--verbose>"
17539 msgstr ""
17540
17541 # type: textblock
17542 #: ../fish/guestfish.pod:378
17543 msgid ""
17544 "Enable very verbose messages.  This is particularly useful if you find a "
17545 "bug."
17546 msgstr ""
17547
17548 # type: =item
17549 #: ../fish/guestfish.pod:381
17550 msgid "B<-V>"
17551 msgstr ""
17552
17553 # type: =item
17554 #: ../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
17555 msgid "B<--version>"
17556 msgstr ""
17557
17558 # type: textblock
17559 #: ../fish/guestfish.pod:385
17560 msgid "Display the guestfish / libguestfs version number and exit."
17561 msgstr ""
17562
17563 # type: =item
17564 #: ../fish/guestfish.pod:387
17565 msgid "B<-w>"
17566 msgstr ""
17567
17568 # type: =item
17569 #: ../fish/guestfish.pod:389
17570 msgid "B<--rw>"
17571 msgstr ""
17572
17573 # type: textblock
17574 #: ../fish/guestfish.pod:391
17575 msgid ""
17576 "This option does nothing at the moment.  See L</OPENING DISKS FOR READ AND "
17577 "WRITE> below."
17578 msgstr ""
17579
17580 # type: =item
17581 #: ../fish/guestfish.pod:394
17582 msgid "B<-x>"
17583 msgstr ""
17584
17585 # type: textblock
17586 #: ../fish/guestfish.pod:396
17587 msgid "Echo each command before executing it."
17588 msgstr ""
17589
17590 # type: =head1
17591 #: ../fish/guestfish.pod:400
17592 msgid "COMMANDS ON COMMAND LINE"
17593 msgstr ""
17594
17595 # type: textblock
17596 #: ../fish/guestfish.pod:402
17597 msgid "Any additional (non-option) arguments are treated as commands to execute."
17598 msgstr ""
17599
17600 # type: textblock
17601 #: ../fish/guestfish.pod:405
17602 msgid ""
17603 "Commands to execute should be separated by a colon (C<:>), where the colon "
17604 "is a separate parameter.  Thus:"
17605 msgstr ""
17606
17607 # type: verbatim
17608 #: ../fish/guestfish.pod:408
17609 #, no-wrap
17610 msgid ""
17611 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
17612 "\n"
17613 msgstr ""
17614
17615 # type: textblock
17616 #: ../fish/guestfish.pod:410
17617 msgid ""
17618 "If there are no additional arguments, then we enter a shell, either an "
17619 "interactive shell with a prompt (if the input is a terminal) or a "
17620 "non-interactive shell."
17621 msgstr ""
17622
17623 # type: textblock
17624 #: ../fish/guestfish.pod:414
17625 msgid ""
17626 "In either command line mode or non-interactive shell, the first command that "
17627 "gives an error causes the whole shell to exit.  In interactive mode (with a "
17628 "prompt) if a command fails, you can continue to enter commands."
17629 msgstr ""
17630
17631 # type: =head1
17632 #: ../fish/guestfish.pod:419
17633 msgid "USING launch (OR run)"
17634 msgstr ""
17635
17636 # type: textblock
17637 #: ../fish/guestfish.pod:421
17638 msgid ""
17639 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
17640 "then launch it, then mount any disks you need, and finally issue "
17641 "actions/commands.  So the general order of the day is:"
17642 msgstr ""
17643
17644 # type: textblock
17645 #: ../fish/guestfish.pod:429
17646 msgid "add or -a/--add"
17647 msgstr ""
17648
17649 # type: textblock
17650 #: ../fish/guestfish.pod:433
17651 msgid "launch (aka run)"
17652 msgstr ""
17653
17654 # type: textblock
17655 #: ../fish/guestfish.pod:437
17656 msgid "mount or -m/--mount"
17657 msgstr ""
17658
17659 # type: textblock
17660 #: ../fish/guestfish.pod:441
17661 msgid "any other commands"
17662 msgstr ""
17663
17664 # type: textblock
17665 #: ../fish/guestfish.pod:445
17666 msgid ""
17667 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
17668 "guest before mounting or performing any other commands."
17669 msgstr ""
17670
17671 # type: textblock
17672 #: ../fish/guestfish.pod:448
17673 msgid ""
17674 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
17675 "I<--new> options were given then C<run> is done automatically, simply "
17676 "because guestfish can't perform the action you asked for without doing this."
17677 msgstr ""
17678
17679 # type: =head1
17680 #: ../fish/guestfish.pod:453
17681 msgid "OPENING DISKS FOR READ AND WRITE"
17682 msgstr ""
17683
17684 # type: textblock
17685 #: ../fish/guestfish.pod:455
17686 msgid ""
17687 "The guestfish (and L<guestmount(1)>) options I<--ro> and I<--rw> affect "
17688 "whether the other command line options I<-a>, I<-c>, I<-d>, I<-i> and I<-m> "
17689 "open disk images read-only or for writing."
17690 msgstr ""
17691
17692 # type: textblock
17693 #: ../fish/guestfish.pod:459
17694 msgid ""
17695 "In libguestfs E<lt> 1.6.2, guestfish and guestmount defaulted to opening "
17696 "disk images supplied on the command line for write.  To open a disk image "
17697 "read-only you have to do I<-a image --ro>."
17698 msgstr ""
17699
17700 # type: textblock
17701 #: ../fish/guestfish.pod:463
17702 msgid ""
17703 "This matters: If you accidentally open a live VM disk image writable then "
17704 "you will cause irreversible disk corruption."
17705 msgstr ""
17706
17707 # type: textblock
17708 #: ../fish/guestfish.pod:466
17709 msgid ""
17710 "By libguestfs 1.8 we intend to change the default the other way.  Disk "
17711 "images will be opened read-only.  You will have to either specify "
17712 "I<guestfish --rw> or change a configuration file in order to get write "
17713 "access for disk images specified by those other command line options."
17714 msgstr ""
17715
17716 # type: textblock
17717 #: ../fish/guestfish.pod:471
17718 msgid ""
17719 "This version of guestfish has a I<--rw> option which does nothing (it is "
17720 "already the default).  However it is highly recommended that you use this "
17721 "option to indicate that guestfish needs write access, and to prepare your "
17722 "scripts for the day when this option will be required for write access."
17723 msgstr ""
17724
17725 # type: textblock
17726 #: ../fish/guestfish.pod:477
17727 msgid ""
17728 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
17729 "other libguestfs program apart from guestfish and guestmount."
17730 msgstr ""
17731
17732 # type: =head1
17733 #: ../fish/guestfish.pod:480
17734 msgid "QUOTING"
17735 msgstr ""
17736
17737 # type: textblock
17738 #: ../fish/guestfish.pod:482
17739 msgid ""
17740 "You can quote ordinary parameters using either single or double quotes.  For "
17741 "example:"
17742 msgstr ""
17743
17744 # type: verbatim
17745 #: ../fish/guestfish.pod:485
17746 #, no-wrap
17747 msgid ""
17748 " add \"file with a space.img\"\n"
17749 "\n"
17750 msgstr ""
17751
17752 # type: verbatim
17753 #: ../fish/guestfish.pod:487
17754 #, no-wrap
17755 msgid ""
17756 " rm '/file name'\n"
17757 "\n"
17758 msgstr ""
17759
17760 # type: verbatim
17761 #: ../fish/guestfish.pod:489
17762 #, no-wrap
17763 msgid ""
17764 " rm '/\"'\n"
17765 "\n"
17766 msgstr ""
17767
17768 # type: textblock
17769 #: ../fish/guestfish.pod:491
17770 msgid ""
17771 "A few commands require a list of strings to be passed.  For these, use a "
17772 "whitespace-separated list, enclosed in quotes.  Strings containing "
17773 "whitespace to be passed through must be enclosed in single quotes.  A "
17774 "literal single quote must be escaped with a backslash."
17775 msgstr ""
17776
17777 # type: verbatim
17778 #: ../fish/guestfish.pod:496
17779 #, no-wrap
17780 msgid ""
17781 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
17782 " command \"/bin/echo 'foo      bar'\"\n"
17783 " command \"/bin/echo \\'foo\\'\"\n"
17784 "\n"
17785 msgstr ""
17786
17787 # type: =head1
17788 #: ../fish/guestfish.pod:500
17789 msgid "OPTIONAL ARGUMENTS"
17790 msgstr ""
17791
17792 # type: textblock
17793 #: ../fish/guestfish.pod:502
17794 msgid ""
17795 "Some commands take optional arguments.  These arguments appear in this "
17796 "documentation as C<[argname:..]>.  You can use them as in these examples:"
17797 msgstr ""
17798
17799 # type: verbatim
17800 #: ../fish/guestfish.pod:506
17801 #, no-wrap
17802 msgid ""
17803 " add-drive-opts filename\n"
17804 "\n"
17805 msgstr ""
17806
17807 # type: verbatim
17808 #: ../fish/guestfish.pod:508
17809 #, no-wrap
17810 msgid ""
17811 " add-drive-opts filename readonly:true\n"
17812 "\n"
17813 msgstr ""
17814
17815 # type: verbatim
17816 #: ../fish/guestfish.pod:510
17817 #, no-wrap
17818 msgid ""
17819 " add-drive-opts filename format:qcow2 readonly:false\n"
17820 "\n"
17821 msgstr ""
17822
17823 # type: textblock
17824 #: ../fish/guestfish.pod:512
17825 msgid ""
17826 "Each optional argument can appear at most once.  All optional arguments must "
17827 "appear after the required ones."
17828 msgstr ""
17829
17830 # type: =head1
17831 #: ../fish/guestfish.pod:515
17832 msgid "NUMBERS"
17833 msgstr ""
17834
17835 # type: textblock
17836 #: ../fish/guestfish.pod:517
17837 msgid "This section applies to all commands which can take integers as parameters."
17838 msgstr ""
17839
17840 # type: =head2
17841 #: ../fish/guestfish.pod:520
17842 msgid "SIZE SUFFIX"
17843 msgstr ""
17844
17845 # type: textblock
17846 #: ../fish/guestfish.pod:522
17847 msgid ""
17848 "When the command takes a parameter measured in bytes, you can use one of the "
17849 "following suffixes to specify kilobytes, megabytes and larger sizes:"
17850 msgstr ""
17851
17852 # type: =item
17853 #: ../fish/guestfish.pod:528
17854 msgid "B<k> or B<K> or B<KiB>"
17855 msgstr ""
17856
17857 # type: textblock
17858 #: ../fish/guestfish.pod:530
17859 msgid "The size in kilobytes (multiplied by 1024)."
17860 msgstr ""
17861
17862 # type: =item
17863 #: ../fish/guestfish.pod:532
17864 msgid "B<KB>"
17865 msgstr ""
17866
17867 # type: textblock
17868 #: ../fish/guestfish.pod:534
17869 msgid "The size in SI 1000 byte units."
17870 msgstr ""
17871
17872 # type: =item
17873 #: ../fish/guestfish.pod:536
17874 msgid "B<M> or B<MiB>"
17875 msgstr ""
17876
17877 # type: textblock
17878 #: ../fish/guestfish.pod:538
17879 msgid "The size in megabytes (multiplied by 1048576)."
17880 msgstr ""
17881
17882 # type: =item
17883 #: ../fish/guestfish.pod:540
17884 msgid "B<MB>"
17885 msgstr ""
17886
17887 # type: textblock
17888 #: ../fish/guestfish.pod:542
17889 msgid "The size in SI 1000000 byte units."
17890 msgstr ""
17891
17892 # type: =item
17893 #: ../fish/guestfish.pod:544
17894 msgid "B<G> or B<GiB>"
17895 msgstr ""
17896
17897 # type: textblock
17898 #: ../fish/guestfish.pod:546
17899 msgid "The size in gigabytes (multiplied by 2**30)."
17900 msgstr ""
17901
17902 # type: =item
17903 #: ../fish/guestfish.pod:548
17904 msgid "B<GB>"
17905 msgstr ""
17906
17907 # type: textblock
17908 #: ../fish/guestfish.pod:550
17909 msgid "The size in SI 10**9 byte units."
17910 msgstr ""
17911
17912 # type: =item
17913 #: ../fish/guestfish.pod:552
17914 msgid "B<T> or B<TiB>"
17915 msgstr ""
17916
17917 # type: textblock
17918 #: ../fish/guestfish.pod:554
17919 msgid "The size in terabytes (multiplied by 2**40)."
17920 msgstr ""
17921
17922 # type: =item
17923 #: ../fish/guestfish.pod:556
17924 msgid "B<TB>"
17925 msgstr ""
17926
17927 # type: textblock
17928 #: ../fish/guestfish.pod:558
17929 msgid "The size in SI 10**12 byte units."
17930 msgstr ""
17931
17932 # type: =item
17933 #: ../fish/guestfish.pod:560
17934 msgid "B<P> or B<PiB>"
17935 msgstr ""
17936
17937 # type: textblock
17938 #: ../fish/guestfish.pod:562
17939 msgid "The size in petabytes (multiplied by 2**50)."
17940 msgstr ""
17941
17942 # type: =item
17943 #: ../fish/guestfish.pod:564
17944 msgid "B<PB>"
17945 msgstr ""
17946
17947 # type: textblock
17948 #: ../fish/guestfish.pod:566
17949 msgid "The size in SI 10**15 byte units."
17950 msgstr ""
17951
17952 # type: =item
17953 #: ../fish/guestfish.pod:568
17954 msgid "B<E> or B<EiB>"
17955 msgstr ""
17956
17957 # type: textblock
17958 #: ../fish/guestfish.pod:570
17959 msgid "The size in exabytes (multiplied by 2**60)."
17960 msgstr ""
17961
17962 # type: =item
17963 #: ../fish/guestfish.pod:572
17964 msgid "B<EB>"
17965 msgstr ""
17966
17967 # type: textblock
17968 #: ../fish/guestfish.pod:574
17969 msgid "The size in SI 10**18 byte units."
17970 msgstr ""
17971
17972 # type: =item
17973 #: ../fish/guestfish.pod:576
17974 msgid "B<Z> or B<ZiB>"
17975 msgstr ""
17976
17977 # type: textblock
17978 #: ../fish/guestfish.pod:578
17979 msgid "The size in zettabytes (multiplied by 2**70)."
17980 msgstr ""
17981
17982 # type: =item
17983 #: ../fish/guestfish.pod:580
17984 msgid "B<ZB>"
17985 msgstr ""
17986
17987 # type: textblock
17988 #: ../fish/guestfish.pod:582
17989 msgid "The size in SI 10**21 byte units."
17990 msgstr ""
17991
17992 # type: =item
17993 #: ../fish/guestfish.pod:584
17994 msgid "B<Y> or B<YiB>"
17995 msgstr ""
17996
17997 # type: textblock
17998 #: ../fish/guestfish.pod:586
17999 msgid "The size in yottabytes (multiplied by 2**80)."
18000 msgstr ""
18001
18002 # type: =item
18003 #: ../fish/guestfish.pod:588
18004 msgid "B<YB>"
18005 msgstr ""
18006
18007 # type: textblock
18008 #: ../fish/guestfish.pod:590
18009 msgid "The size in SI 10**24 byte units."
18010 msgstr ""
18011
18012 # type: verbatim
18013 #: ../fish/guestfish.pod:596
18014 #, no-wrap
18015 msgid ""
18016 " truncate-size /file 1G\n"
18017 "\n"
18018 msgstr ""
18019
18020 # type: textblock
18021 #: ../fish/guestfish.pod:598
18022 msgid "would truncate the file to 1 gigabyte."
18023 msgstr ""
18024
18025 # type: textblock
18026 #: ../fish/guestfish.pod:600
18027 msgid ""
18028 "Be careful because a few commands take sizes in kilobytes or megabytes "
18029 "(eg. the parameter to L</memsize> is specified in megabytes already).  "
18030 "Adding a suffix will probably not do what you expect."
18031 msgstr ""
18032
18033 # type: =head2
18034 #: ../fish/guestfish.pod:604
18035 msgid "OCTAL AND HEXADECIMAL NUMBERS"
18036 msgstr ""
18037
18038 # type: textblock
18039 #: ../fish/guestfish.pod:606
18040 msgid ""
18041 "For specifying the radix (base) use the C convention: C<0> to prefix an "
18042 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
18043 msgstr ""
18044
18045 # type: verbatim
18046 #: ../fish/guestfish.pod:609
18047 #, no-wrap
18048 msgid ""
18049 " 1234      decimal number 1234\n"
18050 " 02322     octal number, equivalent to decimal 1234\n"
18051 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
18052 "\n"
18053 msgstr ""
18054
18055 # type: textblock
18056 #: ../fish/guestfish.pod:613
18057 msgid ""
18058 "When using the C<chmod> command, you almost always want to specify an octal "
18059 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
18060 "L<chmod(1)> program):"
18061 msgstr ""
18062
18063 # type: verbatim
18064 #: ../fish/guestfish.pod:617
18065 #, no-wrap
18066 msgid ""
18067 " chmod 0777 /public  # OK\n"
18068 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
18069 "\n"
18070 msgstr ""
18071
18072 # type: textblock
18073 #: ../fish/guestfish.pod:620
18074 msgid ""
18075 "Commands that return numbers usually print them in decimal, but some "
18076 "commands print numbers in other radices (eg. C<umask> prints the mode in "
18077 "octal, preceeded by C<0>)."
18078 msgstr ""
18079
18080 # type: =head1
18081 #: ../fish/guestfish.pod:624
18082 msgid "WILDCARDS AND GLOBBING"
18083 msgstr ""
18084
18085 # type: textblock
18086 #: ../fish/guestfish.pod:626
18087 msgid ""
18088 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
18089 "(globbing) by default.  So for example the following will not do what you "
18090 "expect:"
18091 msgstr ""
18092
18093 # type: verbatim
18094 #: ../fish/guestfish.pod:630
18095 #, no-wrap
18096 msgid ""
18097 " rm-rf /home/*\n"
18098 "\n"
18099 msgstr ""
18100
18101 # type: textblock
18102 #: ../fish/guestfish.pod:632
18103 msgid ""
18104 "Assuming you don't have a directory called literally C</home/*> then the "
18105 "above command will return an error."
18106 msgstr ""
18107
18108 # type: textblock
18109 #: ../fish/guestfish.pod:635
18110 msgid "To perform wildcard expansion, use the C<glob> command."
18111 msgstr ""
18112
18113 # type: verbatim
18114 #: ../fish/guestfish.pod:637
18115 #, no-wrap
18116 msgid ""
18117 " glob rm-rf /home/*\n"
18118 "\n"
18119 msgstr ""
18120
18121 # type: textblock
18122 #: ../fish/guestfish.pod:639
18123 msgid ""
18124 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
18125 "many times), equivalent to:"
18126 msgstr ""
18127
18128 # type: verbatim
18129 #: ../fish/guestfish.pod:642
18130 #, no-wrap
18131 msgid ""
18132 " rm-rf /home/jim\n"
18133 " rm-rf /home/joe\n"
18134 " rm-rf /home/mary\n"
18135 "\n"
18136 msgstr ""
18137
18138 # type: textblock
18139 #: ../fish/guestfish.pod:646
18140 msgid "C<glob> only works on simple guest paths and not on device names."
18141 msgstr ""
18142
18143 # type: textblock
18144 #: ../fish/guestfish.pod:648
18145 msgid ""
18146 "If you have several parameters, each containing a wildcard, then glob will "
18147 "perform a Cartesian product."
18148 msgstr ""
18149
18150 # type: =head1
18151 #: ../fish/guestfish.pod:651
18152 msgid "COMMENTS"
18153 msgstr ""
18154
18155 # type: textblock
18156 #: ../fish/guestfish.pod:653
18157 msgid ""
18158 "Any line which starts with a I<#> character is treated as a comment and "
18159 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
18160 "a command.  For example:"
18161 msgstr ""
18162
18163 # type: verbatim
18164 #: ../fish/guestfish.pod:657
18165 #, no-wrap
18166 msgid ""
18167 " # this is a comment\n"
18168 "         # this is a comment\n"
18169 " foo # NOT a comment\n"
18170 "\n"
18171 msgstr ""
18172
18173 # type: textblock
18174 #: ../fish/guestfish.pod:661
18175 msgid "Blank lines are also ignored."
18176 msgstr ""
18177
18178 # type: =head1
18179 #: ../fish/guestfish.pod:663
18180 msgid "RUNNING COMMANDS LOCALLY"
18181 msgstr ""
18182
18183 # type: textblock
18184 #: ../fish/guestfish.pod:665
18185 msgid ""
18186 "Any line which starts with a I<!> character is treated as a command sent to "
18187 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
18188 msgstr ""
18189
18190 # type: verbatim
18191 #: ../fish/guestfish.pod:669
18192 #, no-wrap
18193 msgid ""
18194 " !mkdir local\n"
18195 " tgz-out /remote local/remote-data.tar.gz\n"
18196 "\n"
18197 msgstr ""
18198
18199 # type: textblock
18200 #: ../fish/guestfish.pod:672
18201 msgid ""
18202 "will create a directory C<local> on the host, and then export the contents "
18203 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
18204 "(See C<tgz-out>)."
18205 msgstr ""
18206
18207 # type: textblock
18208 #: ../fish/guestfish.pod:676
18209 msgid ""
18210 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
18211 "effect, due to the way that subprocesses work in Unix."
18212 msgstr ""
18213
18214 # type: =head1
18215 #: ../fish/guestfish.pod:679
18216 msgid "PIPES"
18217 msgstr ""
18218
18219 # type: textblock
18220 #: ../fish/guestfish.pod:681
18221 msgid ""
18222 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
18223 "command (a guestfish command) to the second command (any host command).  For "
18224 "example:"
18225 msgstr ""
18226
18227 # type: verbatim
18228 #: ../fish/guestfish.pod:685
18229 #, no-wrap
18230 msgid ""
18231 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
18232 "\n"
18233 msgstr ""
18234
18235 # type: textblock
18236 #: ../fish/guestfish.pod:687
18237 msgid ""
18238 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
18239 "program).  The above command would list all accounts in the guest filesystem "
18240 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
18241 msgstr ""
18242
18243 # type: verbatim
18244 #: ../fish/guestfish.pod:692
18245 #, no-wrap
18246 msgid ""
18247 " hexdump /bin/ls | head\n"
18248 " list-devices | tail -1\n"
18249 " tgz-out / - | tar ztf -\n"
18250 "\n"
18251 msgstr ""
18252
18253 # type: textblock
18254 #: ../fish/guestfish.pod:696
18255 msgid ""
18256 "The space before the pipe symbol is required, any space after the pipe "
18257 "symbol is optional.  Everything after the pipe symbol is just passed "
18258 "straight to the host shell, so it can contain redirections, globs and "
18259 "anything else that makes sense on the host side."
18260 msgstr ""
18261
18262 # type: textblock
18263 #: ../fish/guestfish.pod:701
18264 msgid ""
18265 "To use a literal argument which begins with a pipe symbol, you have to quote "
18266 "it, eg:"
18267 msgstr ""
18268
18269 # type: verbatim
18270 #: ../fish/guestfish.pod:704
18271 #, no-wrap
18272 msgid ""
18273 " echo \"|\"\n"
18274 "\n"
18275 msgstr ""
18276
18277 # type: =head1
18278 #: ../fish/guestfish.pod:706
18279 msgid "HOME DIRECTORIES"
18280 msgstr ""
18281
18282 # type: textblock
18283 #: ../fish/guestfish.pod:708
18284 msgid ""
18285 "If a parameter starts with the character C<~> then the tilde may be expanded "
18286 "as a home directory path (either C<~> for the current user's home directory, "
18287 "or C<~user> for another user)."
18288 msgstr ""
18289
18290 # type: textblock
18291 #: ../fish/guestfish.pod:712
18292 msgid ""
18293 "Note that home directory expansion happens for users known I<on the host>, "
18294 "not in the guest filesystem."
18295 msgstr ""
18296
18297 # type: textblock
18298 #: ../fish/guestfish.pod:715
18299 msgid ""
18300 "To use a literal argument which begins with a tilde, you have to quote it, "
18301 "eg:"
18302 msgstr ""
18303
18304 # type: verbatim
18305 #: ../fish/guestfish.pod:718
18306 #, no-wrap
18307 msgid ""
18308 " echo \"~\"\n"
18309 "\n"
18310 msgstr ""
18311
18312 # type: textblock
18313 #: ../fish/guestfish.pod:722
18314 msgid ""
18315 "Libguestfs has some support for Linux guests encrypted according to the "
18316 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
18317 "disk encryption systems used by modern Linux guests.  Currently only "
18318 "LVM-on-LUKS is supported."
18319 msgstr ""
18320
18321 # type: textblock
18322 #: ../fish/guestfish.pod:727
18323 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
18324 msgstr ""
18325
18326 # type: verbatim
18327 #: ../fish/guestfish.pod:729
18328 #, no-wrap
18329 msgid ""
18330 " ><fs> vfs-type /dev/sda2\n"
18331 " crypto_LUKS\n"
18332 "\n"
18333 msgstr ""
18334
18335 # type: textblock
18336 #: ../fish/guestfish.pod:732
18337 msgid ""
18338 "Then open those devices using L</luks-open>.  This creates a device-mapper "
18339 "device called C</dev/mapper/luksdev>."
18340 msgstr ""
18341
18342 # type: verbatim
18343 #: ../fish/guestfish.pod:735
18344 #, no-wrap
18345 msgid ""
18346 " ><fs> luks-open /dev/sda2 luksdev\n"
18347 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
18348 "\n"
18349 msgstr ""
18350
18351 # type: textblock
18352 #: ../fish/guestfish.pod:738
18353 msgid ""
18354 "Finally you have to tell LVM to scan for volume groups on the newly created "
18355 "mapper device:"
18356 msgstr ""
18357
18358 # type: verbatim
18359 #: ../fish/guestfish.pod:741
18360 #, no-wrap
18361 msgid ""
18362 " vgscan\n"
18363 " vg-activate-all true\n"
18364 "\n"
18365 msgstr ""
18366
18367 # type: textblock
18368 #: ../fish/guestfish.pod:744
18369 msgid "The logical volume(s) can now be mounted in the usual way."
18370 msgstr ""
18371
18372 # type: textblock
18373 #: ../fish/guestfish.pod:746
18374 msgid ""
18375 "Before closing a LUKS device you must unmount any logical volumes on it and "
18376 "deactivate the volume groups by calling C<vg-activate false VG> on each "
18377 "one.  Then you can close the mapper device:"
18378 msgstr ""
18379
18380 # type: verbatim
18381 #: ../fish/guestfish.pod:750
18382 #, no-wrap
18383 msgid ""
18384 " vg-activate false /dev/VG\n"
18385 " luks-close /dev/mapper/luksdev\n"
18386 "\n"
18387 msgstr ""
18388
18389 # type: =head1
18390 #: ../fish/guestfish.pod:753
18391 msgid "WINDOWS PATHS"
18392 msgstr ""
18393
18394 # type: textblock
18395 #: ../fish/guestfish.pod:755
18396 msgid ""
18397 "If a path is prefixed with C<win:> then you can use Windows-style paths "
18398 "(with some limitations).  The following commands are equivalent:"
18399 msgstr ""
18400
18401 # type: verbatim
18402 #: ../fish/guestfish.pod:758
18403 #, no-wrap
18404 msgid ""
18405 " file /WINDOWS/system32/config/system.LOG\n"
18406 "\n"
18407 msgstr ""
18408
18409 # type: verbatim
18410 #: ../fish/guestfish.pod:760
18411 #, no-wrap
18412 msgid ""
18413 " file win:/windows/system32/config/system.log\n"
18414 "\n"
18415 msgstr ""
18416
18417 # type: verbatim
18418 #: ../fish/guestfish.pod:762
18419 #, no-wrap
18420 msgid ""
18421 " file win:\\windows\\system32\\config\\system.log\n"
18422 "\n"
18423 msgstr ""
18424
18425 # type: verbatim
18426 #: ../fish/guestfish.pod:764
18427 #, no-wrap
18428 msgid ""
18429 " file WIN:C:\\Windows\\SYSTEM32\\conFIG\\SYSTEM.LOG\n"
18430 "\n"
18431 msgstr ""
18432
18433 # type: textblock
18434 #: ../fish/guestfish.pod:766
18435 msgid ""
18436 "This syntax implicitly calls C<case-sensitive-path> (q.v.) so it also "
18437 "handles case insensitivity like Windows would.  This only works in argument "
18438 "positions that expect a path."
18439 msgstr ""
18440
18441 # type: =head1
18442 #: ../fish/guestfish.pod:770
18443 msgid "UPLOADING AND DOWNLOADING FILES"
18444 msgstr ""
18445
18446 # type: textblock
18447 #: ../fish/guestfish.pod:772
18448 msgid ""
18449 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
18450 "others which upload from or download to a local file, you can use the "
18451 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
18452 msgstr ""
18453
18454 # type: verbatim
18455 #: ../fish/guestfish.pod:776
18456 #, no-wrap
18457 msgid ""
18458 " upload - /foo\n"
18459 "\n"
18460 msgstr ""
18461
18462 # type: textblock
18463 #: ../fish/guestfish.pod:778
18464 msgid "reads stdin and creates from that a file C</foo> in the disk image, and:"
18465 msgstr ""
18466
18467 # type: verbatim
18468 #: ../fish/guestfish.pod:781
18469 #, no-wrap
18470 msgid ""
18471 " tar-out /etc - | tar tf -\n"
18472 "\n"
18473 msgstr ""
18474
18475 # type: textblock
18476 #: ../fish/guestfish.pod:783
18477 msgid ""
18478 "writes the tarball to stdout and then pipes that into the external \"tar\" "
18479 "command (see L</PIPES>)."
18480 msgstr ""
18481
18482 # type: textblock
18483 #: ../fish/guestfish.pod:786
18484 msgid ""
18485 "When using C<-> to read from stdin, the input is read up to the end of "
18486 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
18487 "some arbitrary end marker:"
18488 msgstr ""
18489
18490 # type: verbatim
18491 #: ../fish/guestfish.pod:790
18492 #, no-wrap
18493 msgid ""
18494 " upload -<<END /foo\n"
18495 " input line 1\n"
18496 " input line 2\n"
18497 " input line 3\n"
18498 " END\n"
18499 "\n"
18500 msgstr ""
18501
18502 # type: textblock
18503 #: ../fish/guestfish.pod:796
18504 msgid ""
18505 "Any string of characters can be used instead of C<END>.  The end marker must "
18506 "appear on a line of its own, without any preceeding or following characters "
18507 "(not even spaces)."
18508 msgstr ""
18509
18510 # type: textblock
18511 #: ../fish/guestfish.pod:800
18512 msgid ""
18513 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
18514 "upload local files (so-called \"FileIn\" parameters in the generator)."
18515 msgstr ""
18516
18517 # type: =head1
18518 #: ../fish/guestfish.pod:803
18519 msgid "EXIT ON ERROR BEHAVIOUR"
18520 msgstr ""
18521
18522 # type: textblock
18523 #: ../fish/guestfish.pod:805
18524 msgid ""
18525 "By default, guestfish will ignore any errors when in interactive mode "
18526 "(ie. taking commands from a human over a tty), and will exit on the first "
18527 "error in non-interactive mode (scripts, commands given on the command line)."
18528 msgstr ""
18529
18530 # type: textblock
18531 #: ../fish/guestfish.pod:810
18532 msgid ""
18533 "If you prefix a command with a I<-> character, then that command will not "
18534 "cause guestfish to exit, even if that (one) command returns an error."
18535 msgstr ""
18536
18537 # type: =head1
18538 #: ../fish/guestfish.pod:814
18539 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
18540 msgstr ""
18541
18542 # type: textblock
18543 #: ../fish/guestfish.pod:816
18544 msgid ""
18545 "Guestfish can be remote-controlled over a socket.  This is useful "
18546 "particularly in shell scripts where you want to make several different "
18547 "changes to a filesystem, but you don't want the overhead of starting up a "
18548 "guestfish process each time."
18549 msgstr ""
18550
18551 # type: textblock
18552 #: ../fish/guestfish.pod:821
18553 msgid "Start a guestfish server process using:"
18554 msgstr ""
18555
18556 # type: verbatim
18557 #: ../fish/guestfish.pod:823
18558 #, no-wrap
18559 msgid ""
18560 " eval \"`guestfish --listen`\"\n"
18561 "\n"
18562 msgstr ""
18563
18564 # type: textblock
18565 #: ../fish/guestfish.pod:825
18566 msgid "and then send it commands by doing:"
18567 msgstr ""
18568
18569 # type: verbatim
18570 #: ../fish/guestfish.pod:827
18571 #, no-wrap
18572 msgid ""
18573 " guestfish --remote cmd [...]\n"
18574 "\n"
18575 msgstr ""
18576
18577 # type: textblock
18578 #: ../fish/guestfish.pod:829
18579 msgid "To cause the server to exit, send it the exit command:"
18580 msgstr ""
18581
18582 # type: verbatim
18583 #: ../fish/guestfish.pod:831
18584 #, no-wrap
18585 msgid ""
18586 " guestfish --remote exit\n"
18587 "\n"
18588 msgstr ""
18589
18590 # type: textblock
18591 #: ../fish/guestfish.pod:833
18592 msgid ""
18593 "Note that the server will normally exit if there is an error in a command.  "
18594 "You can change this in the usual way.  See section L</EXIT ON ERROR "
18595 "BEHAVIOUR>."
18596 msgstr ""
18597
18598 # type: =head2
18599 #: ../fish/guestfish.pod:837
18600 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
18601 msgstr ""
18602
18603 # type: textblock
18604 #: ../fish/guestfish.pod:839
18605 msgid ""
18606 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
18607 "is how the I<--remote> option knows where to send the commands.  You can "
18608 "have several guestfish listener processes running using:"
18609 msgstr ""
18610
18611 # type: verbatim
18612 #: ../fish/guestfish.pod:843
18613 #, no-wrap
18614 msgid ""
18615 " eval \"`guestfish --listen`\"\n"
18616 " pid1=$GUESTFISH_PID\n"
18617 " eval \"`guestfish --listen`\"\n"
18618 " pid2=$GUESTFISH_PID\n"
18619 " ...\n"
18620 " guestfish --remote=$pid1 cmd\n"
18621 " guestfish --remote=$pid2 cmd\n"
18622 "\n"
18623 msgstr ""
18624
18625 # type: =head2
18626 #: ../fish/guestfish.pod:851
18627 msgid "REMOTE CONTROL AND CSH"
18628 msgstr ""
18629
18630 # type: textblock
18631 #: ../fish/guestfish.pod:853
18632 msgid ""
18633 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
18634 "option:"
18635 msgstr ""
18636
18637 # type: verbatim
18638 #: ../fish/guestfish.pod:856
18639 #, no-wrap
18640 msgid ""
18641 " eval \"`guestfish --listen --csh`\"\n"
18642 "\n"
18643 msgstr ""
18644
18645 # type: =head2
18646 #: ../fish/guestfish.pod:858
18647 msgid "REMOTE CONTROL DETAILS"
18648 msgstr ""
18649
18650 # type: textblock
18651 #: ../fish/guestfish.pod:860
18652 msgid ""
18653 "Remote control happens over a Unix domain socket called "
18654 "C</tmp/.guestfish-$UID/socket-$PID>, where C<$UID> is the effective user ID "
18655 "of the process, and C<$PID> is the process ID of the server."
18656 msgstr ""
18657
18658 # type: textblock
18659 #: ../fish/guestfish.pod:864
18660 msgid "Guestfish client and server versions must match exactly."
18661 msgstr ""
18662
18663 # type: =head1
18664 #: ../fish/guestfish.pod:866
18665 msgid "PREPARED DISK IMAGES"
18666 msgstr ""
18667
18668 # type: textblock
18669 #: ../fish/guestfish.pod:868
18670 msgid ""
18671 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
18672 "preformatted disk images that guestfish can make for you to save typing.  "
18673 "This is particularly useful for testing purposes.  This option is used "
18674 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
18675 "can be mixed with I<-a>)."
18676 msgstr ""
18677
18678 # type: textblock
18679 #: ../fish/guestfish.pod:874
18680 msgid ""
18681 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
18682 "the second and so on.  Existing files in the current directory are "
18683 "I<overwritten>."
18684 msgstr ""
18685
18686 # type: textblock
18687 #: ../fish/guestfish.pod:878
18688 msgid ""
18689 "The type briefly describes how the disk should be sized, partitioned, how "
18690 "filesystem(s) should be created, and how content should be added.  "
18691 "Optionally the type can be followed by extra parameters, separated by C<:> "
18692 "(colon) characters.  For example, I<-N fs> creates a default 100MB, "
18693 "sparsely-allocated disk, containing a single partition, with the partition "
18694 "formatted as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem "
18695 "on a 1GB disk instead."
18696 msgstr ""
18697
18698 # type: textblock
18699 #: ../fish/guestfish.pod:886
18700 msgid "To list the available types and any extra parameters they take, run:"
18701 msgstr ""
18702
18703 # type: textblock
18704 #: ../fish/guestfish.pod:890
18705 msgid ""
18706 "Note that the prepared filesystem is not mounted.  You would usually have to "
18707 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
18708 msgstr ""
18709
18710 # type: textblock
18711 #: ../fish/guestfish.pod:894
18712 msgid ""
18713 "If any I<-N> or I<--new> options are given, the guest is automatically "
18714 "launched."
18715 msgstr ""
18716
18717 # type: textblock
18718 #: ../fish/guestfish.pod:899
18719 msgid "Create a 100MB disk with an ext4-formatted partition:"
18720 msgstr ""
18721
18722 # type: verbatim
18723 #: ../fish/guestfish.pod:901
18724 #, no-wrap
18725 msgid ""
18726 " guestfish -N fs:ext4\n"
18727 "\n"
18728 msgstr ""
18729
18730 # type: textblock
18731 #: ../fish/guestfish.pod:903
18732 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
18733 msgstr ""
18734
18735 # type: verbatim
18736 #: ../fish/guestfish.pod:905
18737 #, no-wrap
18738 msgid ""
18739 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
18740 "\n"
18741 msgstr ""
18742
18743 # type: textblock
18744 #: ../fish/guestfish.pod:907
18745 msgid "Create a blank 200MB disk:"
18746 msgstr ""
18747
18748 # type: verbatim
18749 #: ../fish/guestfish.pod:909
18750 #, no-wrap
18751 msgid ""
18752 " guestfish -N disk:200M\n"
18753 "\n"
18754 msgstr ""
18755
18756 # type: =head1
18757 #: ../fish/guestfish.pod:911
18758 msgid "PROGRESS BARS"
18759 msgstr ""
18760
18761 # type: textblock
18762 #: ../fish/guestfish.pod:913
18763 msgid ""
18764 "Some (not all) long-running commands send progress notification messages as "
18765 "they are running.  Guestfish turns these messages into progress bars."
18766 msgstr ""
18767
18768 # type: textblock
18769 #: ../fish/guestfish.pod:917
18770 msgid ""
18771 "When a command that supports progress bars takes longer than two seconds to "
18772 "run, and if progress bars are enabled, then you will see one appearing below "
18773 "the command:"
18774 msgstr ""
18775
18776 # type: verbatim
18777 #: ../fish/guestfish.pod:921
18778 #, no-wrap
18779 msgid ""
18780 " ><fs> copy-size /large-file /another-file 2048M\n"
18781 " / 10% [#####-----------------------------------------] 00:30\n"
18782 "\n"
18783 msgstr ""
18784
18785 # type: textblock
18786 #: ../fish/guestfish.pod:924
18787 msgid ""
18788 "The spinner on the left hand side moves round once for every progress "
18789 "notification received from the backend.  This is a (reasonably) golden "
18790 "assurance that the command is \"doing something\" even if the progress bar "
18791 "is not moving, because the command is able to send the progress "
18792 "notifications.  When the bar reaches 100% and the command finishes, the "
18793 "spinner disappears."
18794 msgstr ""
18795
18796 # type: textblock
18797 #: ../fish/guestfish.pod:931
18798 msgid ""
18799 "Progress bars are enabled by default when guestfish is used interactively.  "
18800 "You can enable them even for non-interactive modes using I<--progress-bars>, "
18801 "and you can disable them completely using I<--no-progress-bars>."
18802 msgstr ""
18803
18804 # type: =head1
18805 #: ../fish/guestfish.pod:936
18806 msgid "GUESTFISH COMMANDS"
18807 msgstr ""
18808
18809 # type: textblock
18810 #: ../fish/guestfish.pod:938
18811 msgid ""
18812 "The commands in this section are guestfish convenience commands, in other "
18813 "words, they are not part of the L<guestfs(3)> API."
18814 msgstr ""
18815
18816 # type: =head2
18817 #: ../fish/guestfish.pod:941
18818 msgid "help"
18819 msgstr ""
18820
18821 # type: verbatim
18822 #: ../fish/guestfish.pod:943
18823 #, no-wrap
18824 msgid ""
18825 " help\n"
18826 " help cmd\n"
18827 "\n"
18828 msgstr ""
18829
18830 # type: textblock
18831 #: ../fish/guestfish.pod:946
18832 msgid "Without any parameter, this provides general help."
18833 msgstr ""
18834
18835 # type: textblock
18836 #: ../fish/guestfish.pod:948
18837 msgid "With a C<cmd> parameter, this displays detailed help for that command."
18838 msgstr ""
18839
18840 # type: =head2
18841 #: ../fish/guestfish.pod:950
18842 msgid "quit | exit"
18843 msgstr ""
18844
18845 # type: textblock
18846 #: ../fish/guestfish.pod:952
18847 msgid "This exits guestfish.  You can also use C<^D> key."
18848 msgstr ""
18849
18850 # type: textblock
18851 #: ../fish/guestfish.pod:954
18852 msgid "@FISH_COMMANDS@"
18853 msgstr ""
18854
18855 # type: =head1
18856 #: ../fish/guestfish.pod:956
18857 msgid "COMMANDS"
18858 msgstr ""
18859
18860 # type: =head1
18861 #: ../fish/guestfish.pod:960 ../test-tool/libguestfs-test-tool.pod:83
18862 msgid "EXIT CODE"
18863 msgstr ""
18864
18865 # type: textblock
18866 #: ../fish/guestfish.pod:962
18867 msgid ""
18868 "guestfish returns 0 if the commands completed without error, or 1 if there "
18869 "was an error."
18870 msgstr ""
18871
18872 # type: =item
18873 #: ../fish/guestfish.pod:969
18874 msgid "EDITOR"
18875 msgstr ""
18876
18877 # type: textblock
18878 #: ../fish/guestfish.pod:971
18879 msgid ""
18880 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
18881 "C<vi>."
18882 msgstr ""
18883
18884 # type: =item
18885 #: ../fish/guestfish.pod:974
18886 msgid "GUESTFISH_PID"
18887 msgstr ""
18888
18889 # type: textblock
18890 #: ../fish/guestfish.pod:976
18891 msgid ""
18892 "Used with the I<--remote> option to specify the remote guestfish process to "
18893 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
18894 msgstr ""
18895
18896 # type: =item
18897 #: ../fish/guestfish.pod:980
18898 msgid "HEXEDITOR"
18899 msgstr ""
18900
18901 # type: textblock
18902 #: ../fish/guestfish.pod:982
18903 msgid ""
18904 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
18905 "not specified, the external L<hexedit(1)> program is used."
18906 msgstr ""
18907
18908 # type: =item
18909 #: ../fish/guestfish.pod:986
18910 msgid "HOME"
18911 msgstr ""
18912
18913 # type: textblock
18914 #: ../fish/guestfish.pod:988
18915 msgid ""
18916 "If compiled with GNU readline support, various files in the home directory "
18917 "can be used.  See L</FILES>."
18918 msgstr ""
18919
18920 # type: textblock
18921 #: ../fish/guestfish.pod:997
18922 msgid ""
18923 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
18924 "effect as using the B<-v> option."
18925 msgstr ""
18926
18927 # type: textblock
18928 #: ../fish/guestfish.pod:1009
18929 msgid ""
18930 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
18931 "the discussion of paths in L<guestfs(3)>."
18932 msgstr ""
18933
18934 # type: textblock
18935 #: ../fish/guestfish.pod:1020
18936 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
18937 msgstr ""
18938
18939 # type: =item
18940 #: ../fish/guestfish.pod:1022
18941 msgid "PAGER"
18942 msgstr ""
18943
18944 # type: textblock
18945 #: ../fish/guestfish.pod:1024
18946 msgid ""
18947 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
18948 "C<more>."
18949 msgstr ""
18950
18951 # type: =head1
18952 #: ../fish/guestfish.pod:1039 ../test-tool/libguestfs-test-tool.pod:88
18953 msgid "FILES"
18954 msgstr ""
18955
18956 # type: =item
18957 #: ../fish/guestfish.pod:1043
18958 msgid "$HOME/.guestfish"
18959 msgstr ""
18960
18961 # type: textblock
18962 #: ../fish/guestfish.pod:1045
18963 msgid ""
18964 "If compiled with GNU readline support, then the command history is saved in "
18965 "this file."
18966 msgstr ""
18967
18968 # type: =item
18969 #: ../fish/guestfish.pod:1048
18970 msgid "$HOME/.inputrc"
18971 msgstr ""
18972
18973 # type: =item
18974 #: ../fish/guestfish.pod:1050
18975 msgid "/etc/inputrc"
18976 msgstr ""
18977
18978 # type: textblock
18979 #: ../fish/guestfish.pod:1052
18980 msgid ""
18981 "If compiled with GNU readline support, then these files can be used to "
18982 "configure readline.  For further information, please see "
18983 "L<readline(3)/INITIALIZATION FILE>."
18984 msgstr ""
18985
18986 # type: textblock
18987 #: ../fish/guestfish.pod:1056
18988 msgid "To write rules which only apply to guestfish, use:"
18989 msgstr ""
18990
18991 # type: verbatim
18992 #: ../fish/guestfish.pod:1058
18993 #, no-wrap
18994 msgid ""
18995 " $if guestfish\n"
18996 " ...\n"
18997 " $endif\n"
18998 "\n"
18999 msgstr ""
19000
19001 # type: textblock
19002 #: ../fish/guestfish.pod:1062
19003 msgid ""
19004 "Variables that you can set in inputrc that change the behaviour of guestfish "
19005 "in useful ways include:"
19006 msgstr ""
19007
19008 # type: =item
19009 #: ../fish/guestfish.pod:1067
19010 msgid "completion-ignore-case (default: on)"
19011 msgstr ""
19012
19013 # type: textblock
19014 #: ../fish/guestfish.pod:1069
19015 msgid ""
19016 "By default, guestfish will ignore case when tab-completing paths on the "
19017 "disk.  Use:"
19018 msgstr ""
19019
19020 # type: verbatim
19021 #: ../fish/guestfish.pod:1072
19022 #, no-wrap
19023 msgid ""
19024 " set completion-ignore-case off\n"
19025 "\n"
19026 msgstr ""
19027
19028 # type: textblock
19029 #: ../fish/guestfish.pod:1074
19030 msgid "to make guestfish case sensitive."
19031 msgstr ""
19032
19033 # type: =item
19034 #: ../fish/guestfish.pod:1078
19035 msgid "test1.img"
19036 msgstr ""
19037
19038 # type: =item
19039 #: ../fish/guestfish.pod:1080
19040 msgid "test2.img (etc)"
19041 msgstr ""
19042
19043 # type: textblock
19044 #: ../fish/guestfish.pod:1082
19045 msgid ""
19046 "When using the C<-N> or C<--new> option, the prepared disk or filesystem "
19047 "will be created in the file C<test1.img> in the current directory.  The "
19048 "second use of C<-N> will use C<test2.img> and so on.  Any existing file with "
19049 "the same name will be overwritten."
19050 msgstr ""
19051
19052 # type: textblock
19053 #: ../fish/guestfish.pod:1091
19054 msgid ""
19055 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-cat(1)>, L<virt-df(1)>, "
19056 "L<virt-edit(1)>, L<virt-filesystems(1)>, L<virt-inspector(1)>, "
19057 "L<virt-list-filesystems(1)>, L<virt-list-partitions(1)>, L<virt-ls(1)>, "
19058 "L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-resize(1)>, L<virt-tar(1)>, "
19059 "L<virt-win-reg(1)>, L<hexedit(1)>."
19060 msgstr ""
19061
19062 # type: textblock
19063 #: ../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
19064 msgid ""
19065 "This program is free software; you can redistribute it and/or modify it "
19066 "under the terms of the GNU General Public License as published by the Free "
19067 "Software Foundation; either version 2 of the License, or (at your option) "
19068 "any later version."
19069 msgstr ""
19070
19071 # type: textblock
19072 #: ../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
19073 msgid ""
19074 "This program is distributed in the hope that it will be useful, but WITHOUT "
19075 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
19076 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
19077 "more details."
19078 msgstr ""
19079
19080 # type: textblock
19081 #: ../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
19082 msgid ""
19083 "You should have received a copy of the GNU General Public License along with "
19084 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
19085 "Ave, Cambridge, MA 02139, USA."
19086 msgstr ""
19087
19088 # type: =head2
19089 #: ../fish/guestfish-actions.pod:1
19090 msgid "add-cdrom"
19091 msgstr ""
19092
19093 # type: verbatim
19094 #: ../fish/guestfish-actions.pod:3
19095 #, no-wrap
19096 msgid ""
19097 " add-cdrom filename\n"
19098 "\n"
19099 msgstr ""
19100
19101 # type: textblock
19102 #: ../fish/guestfish-actions.pod:15
19103 msgid ""
19104 "This call checks for the existence of C<filename>.  This stops you from "
19105 "specifying other types of drive which are supported by qemu such as C<nbd:> "
19106 "and C<http:> URLs.  To specify those, use the general L</config> call "
19107 "instead."
19108 msgstr ""
19109
19110 # type: textblock
19111 #: ../fish/guestfish-actions.pod:22
19112 msgid ""
19113 "If you just want to add an ISO file (often you use this as an efficient way "
19114 "to transfer large files into the guest), then you should probably use "
19115 "L</add-drive-ro> instead."
19116 msgstr ""
19117
19118 # type: =head2
19119 #: ../fish/guestfish-actions.pod:35
19120 msgid "add-domain"
19121 msgstr ""
19122
19123 # type: =head2
19124 #: ../fish/guestfish-actions.pod:37
19125 msgid "domain"
19126 msgstr ""
19127
19128 # type: verbatim
19129 #: ../fish/guestfish-actions.pod:39
19130 #, no-wrap
19131 msgid ""
19132 " add-domain dom [libvirturi:..] [readonly:..] [iface:..]\n"
19133 "\n"
19134 msgstr ""
19135
19136 # type: textblock
19137 #: ../fish/guestfish-actions.pod:41
19138 msgid ""
19139 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
19140 "It works by connecting to libvirt, requesting the domain and domain XML from "
19141 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
19142 msgstr ""
19143
19144 # type: textblock
19145 #: ../fish/guestfish-actions.pod:58
19146 msgid ""
19147 "The optional C<libvirturi> parameter sets the libvirt URI (see "
19148 "L<http://libvirt.org/uri.html>).  If this is not set then we connect to the "
19149 "default libvirt URI (or one set through an environment variable, see the "
19150 "libvirt documentation for full details).  If you are using the C API "
19151 "directly then it is more flexible to create the libvirt connection object "
19152 "yourself, get the domain object, and call L</add-libvirt-dom>."
19153 msgstr ""
19154
19155 # type: textblock
19156 #: ../fish/guestfish-actions.pod:66
19157 msgid ""
19158 "The other optional parameters are passed directly through to "
19159 "L</add-drive-opts>."
19160 msgstr ""
19161
19162 # type: textblock
19163 #: ../fish/guestfish-actions.pod:69 ../fish/guestfish-actions.pod:133 ../fish/guestfish-actions.pod:2844
19164 msgid ""
19165 "This command has one or more optional arguments.  See L</OPTIONAL "
19166 "ARGUMENTS>."
19167 msgstr ""
19168
19169 # type: =head2
19170 #: ../fish/guestfish-actions.pod:71
19171 msgid "add-drive"
19172 msgstr ""
19173
19174 # type: verbatim
19175 #: ../fish/guestfish-actions.pod:73
19176 #, no-wrap
19177 msgid ""
19178 " add-drive filename\n"
19179 "\n"
19180 msgstr ""
19181
19182 # type: textblock
19183 #: ../fish/guestfish-actions.pod:75
19184 msgid ""
19185 "This function is the equivalent of calling L</add-drive-opts> with no "
19186 "optional parameters, so the disk is added writable, with the format being "
19187 "detected automatically."
19188 msgstr ""
19189
19190 # type: textblock
19191 #: ../fish/guestfish-actions.pod:79
19192 msgid ""
19193 "Automatic detection of the format opens you up to a potential security hole "
19194 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
19195 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
19196 "you should think about replacing calls to this function with calls to "
19197 "L</add-drive-opts>, and specifying the format."
19198 msgstr ""
19199
19200 # type: =head2
19201 #: ../fish/guestfish-actions.pod:86
19202 msgid "add-drive-opts"
19203 msgstr ""
19204
19205 # type: =head2
19206 #: ../fish/guestfish-actions.pod:88
19207 msgid "add"
19208 msgstr ""
19209
19210 # type: verbatim
19211 #: ../fish/guestfish-actions.pod:90
19212 #, no-wrap
19213 msgid ""
19214 " add-drive-opts filename [readonly:..] [format:..] [iface:..]\n"
19215 "\n"
19216 msgstr ""
19217
19218 # type: textblock
19219 #: ../fish/guestfish-actions.pod:117
19220 msgid ""
19221 "This forces the image format.  If you omit this (or use L</add-drive> or "
19222 "L</add-drive-ro>) then the format is automatically detected.  Possible "
19223 "formats include C<raw> and C<qcow2>."
19224 msgstr ""
19225
19226 # type: textblock
19227 #: ../fish/guestfish-actions.pod:128
19228 msgid ""
19229 "This rarely-used option lets you emulate the behaviour of the deprecated "
19230 "L</add-drive-with-if> call (q.v.)"
19231 msgstr ""
19232
19233 # type: =head2
19234 #: ../fish/guestfish-actions.pod:135
19235 msgid "add-drive-ro"
19236 msgstr ""
19237
19238 # type: =head2
19239 #: ../fish/guestfish-actions.pod:137
19240 msgid "add-ro"
19241 msgstr ""
19242
19243 # type: verbatim
19244 #: ../fish/guestfish-actions.pod:139
19245 #, no-wrap
19246 msgid ""
19247 " add-drive-ro filename\n"
19248 "\n"
19249 msgstr ""
19250
19251 # type: textblock
19252 #: ../fish/guestfish-actions.pod:141
19253 msgid ""
19254 "This function is the equivalent of calling L</add-drive-opts> with the "
19255 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
19256 "is added read-only, with the format being detected automatically."
19257 msgstr ""
19258
19259 # type: =head2
19260 #: ../fish/guestfish-actions.pod:146
19261 msgid "add-drive-ro-with-if"
19262 msgstr ""
19263
19264 # type: verbatim
19265 #: ../fish/guestfish-actions.pod:148
19266 #, no-wrap
19267 msgid ""
19268 " add-drive-ro-with-if filename iface\n"
19269 "\n"
19270 msgstr ""
19271
19272 # type: textblock
19273 #: ../fish/guestfish-actions.pod:150
19274 msgid ""
19275 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
19276 "interface emulation to use at run time."
19277 msgstr ""
19278
19279 # type: =head2
19280 #: ../fish/guestfish-actions.pod:160
19281 msgid "add-drive-with-if"
19282 msgstr ""
19283
19284 # type: verbatim
19285 #: ../fish/guestfish-actions.pod:162
19286 #, no-wrap
19287 msgid ""
19288 " add-drive-with-if filename iface\n"
19289 "\n"
19290 msgstr ""
19291
19292 # type: textblock
19293 #: ../fish/guestfish-actions.pod:164
19294 msgid ""
19295 "This is the same as L</add-drive> but it allows you to specify the QEMU "
19296 "interface emulation to use at run time."
19297 msgstr ""
19298
19299 # type: =head2
19300 #: ../fish/guestfish-actions.pod:174
19301 msgid "aug-clear"
19302 msgstr ""
19303
19304 # type: verbatim
19305 #: ../fish/guestfish-actions.pod:176
19306 #, no-wrap
19307 msgid ""
19308 " aug-clear augpath\n"
19309 "\n"
19310 msgstr ""
19311
19312 # type: =head2
19313 #: ../fish/guestfish-actions.pod:181
19314 msgid "aug-close"
19315 msgstr ""
19316
19317 # type: verbatim
19318 #: ../fish/guestfish-actions.pod:183
19319 #, no-wrap
19320 msgid ""
19321 " aug-close\n"
19322 "\n"
19323 msgstr ""
19324
19325 # type: textblock
19326 #: ../fish/guestfish-actions.pod:185
19327 msgid ""
19328 "Close the current Augeas handle and free up any resources used by it.  After "
19329 "calling this, you have to call L</aug-init> again before you can use any "
19330 "other Augeas functions."
19331 msgstr ""
19332
19333 # type: =head2
19334 #: ../fish/guestfish-actions.pod:190
19335 msgid "aug-defnode"
19336 msgstr ""
19337
19338 # type: verbatim
19339 #: ../fish/guestfish-actions.pod:192
19340 #, no-wrap
19341 msgid ""
19342 " aug-defnode name expr val\n"
19343 "\n"
19344 msgstr ""
19345
19346 # type: textblock
19347 #: ../fish/guestfish-actions.pod:197
19348 msgid ""
19349 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
19350 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
19351 "containing that single node."
19352 msgstr ""
19353
19354 # type: =head2
19355 #: ../fish/guestfish-actions.pod:205
19356 msgid "aug-defvar"
19357 msgstr ""
19358
19359 # type: verbatim
19360 #: ../fish/guestfish-actions.pod:207
19361 #, no-wrap
19362 msgid ""
19363 " aug-defvar name expr\n"
19364 "\n"
19365 msgstr ""
19366
19367 # type: =head2
19368 #: ../fish/guestfish-actions.pod:216
19369 msgid "aug-get"
19370 msgstr ""
19371
19372 # type: verbatim
19373 #: ../fish/guestfish-actions.pod:218
19374 #, no-wrap
19375 msgid ""
19376 " aug-get augpath\n"
19377 "\n"
19378 msgstr ""
19379
19380 # type: =head2
19381 #: ../fish/guestfish-actions.pod:223
19382 msgid "aug-init"
19383 msgstr ""
19384
19385 # type: verbatim
19386 #: ../fish/guestfish-actions.pod:225
19387 #, no-wrap
19388 msgid ""
19389 " aug-init root flags\n"
19390 "\n"
19391 msgstr ""
19392
19393 # type: textblock
19394 #: ../fish/guestfish-actions.pod:231
19395 msgid "You must call this before using any other L</aug-*> commands."
19396 msgstr ""
19397
19398 # type: textblock
19399 #: ../fish/guestfish-actions.pod:266
19400 msgid "Do not load the tree in L</aug-init>."
19401 msgstr ""
19402
19403 # type: textblock
19404 #: ../fish/guestfish-actions.pod:270
19405 msgid "To close the handle, you can call L</aug-close>."
19406 msgstr ""
19407
19408 # type: =head2
19409 #: ../fish/guestfish-actions.pod:274
19410 msgid "aug-insert"
19411 msgstr ""
19412
19413 # type: verbatim
19414 #: ../fish/guestfish-actions.pod:276
19415 #, no-wrap
19416 msgid ""
19417 " aug-insert augpath label true|false\n"
19418 "\n"
19419 msgstr ""
19420
19421 # type: =head2
19422 #: ../fish/guestfish-actions.pod:286
19423 msgid "aug-load"
19424 msgstr ""
19425
19426 # type: verbatim
19427 #: ../fish/guestfish-actions.pod:288
19428 #, no-wrap
19429 msgid ""
19430 " aug-load\n"
19431 "\n"
19432 msgstr ""
19433
19434 # type: =head2
19435 #: ../fish/guestfish-actions.pod:295
19436 msgid "aug-ls"
19437 msgstr ""
19438
19439 # type: verbatim
19440 #: ../fish/guestfish-actions.pod:297
19441 #, no-wrap
19442 msgid ""
19443 " aug-ls augpath\n"
19444 "\n"
19445 msgstr ""
19446
19447 # type: textblock
19448 #: ../fish/guestfish-actions.pod:299
19449 msgid ""
19450 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
19451 "resulting nodes into alphabetical order."
19452 msgstr ""
19453
19454 # type: =head2
19455 #: ../fish/guestfish-actions.pod:302
19456 msgid "aug-match"
19457 msgstr ""
19458
19459 # type: verbatim
19460 #: ../fish/guestfish-actions.pod:304
19461 #, no-wrap
19462 msgid ""
19463 " aug-match augpath\n"
19464 "\n"
19465 msgstr ""
19466
19467 # type: =head2
19468 #: ../fish/guestfish-actions.pod:310
19469 msgid "aug-mv"
19470 msgstr ""
19471
19472 # type: verbatim
19473 #: ../fish/guestfish-actions.pod:312
19474 #, no-wrap
19475 msgid ""
19476 " aug-mv src dest\n"
19477 "\n"
19478 msgstr ""
19479
19480 # type: =head2
19481 #: ../fish/guestfish-actions.pod:317
19482 msgid "aug-rm"
19483 msgstr ""
19484
19485 # type: verbatim
19486 #: ../fish/guestfish-actions.pod:319
19487 #, no-wrap
19488 msgid ""
19489 " aug-rm augpath\n"
19490 "\n"
19491 msgstr ""
19492
19493 # type: =head2
19494 #: ../fish/guestfish-actions.pod:325
19495 msgid "aug-save"
19496 msgstr ""
19497
19498 # type: verbatim
19499 #: ../fish/guestfish-actions.pod:327
19500 #, no-wrap
19501 msgid ""
19502 " aug-save\n"
19503 "\n"
19504 msgstr ""
19505
19506 # type: textblock
19507 #: ../fish/guestfish-actions.pod:331
19508 msgid ""
19509 "The flags which were passed to L</aug-init> affect exactly how files are "
19510 "saved."
19511 msgstr ""
19512
19513 # type: =head2
19514 #: ../fish/guestfish-actions.pod:334
19515 msgid "aug-set"
19516 msgstr ""
19517
19518 # type: verbatim
19519 #: ../fish/guestfish-actions.pod:336
19520 #, no-wrap
19521 msgid ""
19522 " aug-set augpath val\n"
19523 "\n"
19524 msgstr ""
19525
19526 # type: textblock
19527 #: ../fish/guestfish-actions.pod:340
19528 msgid ""
19529 "In the Augeas API, it is possible to clear a node by setting the value to "
19530 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
19531 "this call.  Instead you must use the L</aug-clear> call."
19532 msgstr ""
19533
19534 # type: =head2
19535 #: ../fish/guestfish-actions.pod:345
19536 msgid "available"
19537 msgstr ""
19538
19539 # type: verbatim
19540 #: ../fish/guestfish-actions.pod:347
19541 #, no-wrap
19542 msgid ""
19543 " available 'groups ...'\n"
19544 "\n"
19545 msgstr ""
19546
19547 # type: textblock
19548 #: ../fish/guestfish-actions.pod:353
19549 msgid ""
19550 "The libguestfs groups, and the functions that those groups correspond to, "
19551 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
19552 "runtime by calling L</available-all-groups>."
19553 msgstr ""
19554
19555 # type: textblock
19556 #: ../fish/guestfish-actions.pod:377
19557 msgid "You must call L</launch> before calling this function."
19558 msgstr ""
19559
19560 # type: textblock
19561 #: ../fish/guestfish-actions.pod:399
19562 msgid ""
19563 "This call was added in version C<1.0.80>.  In previous versions of "
19564 "libguestfs all you could do would be to speculatively execute a command to "
19565 "find out if the daemon implemented it.  See also L</version>."
19566 msgstr ""
19567
19568 # type: =head2
19569 #: ../fish/guestfish-actions.pod:406
19570 msgid "available-all-groups"
19571 msgstr ""
19572
19573 # type: verbatim
19574 #: ../fish/guestfish-actions.pod:408
19575 #, no-wrap
19576 msgid ""
19577 " available-all-groups\n"
19578 "\n"
19579 msgstr ""
19580
19581 # type: textblock
19582 #: ../fish/guestfish-actions.pod:410
19583 msgid ""
19584 "This command returns a list of all optional groups that this daemon knows "
19585 "about.  Note this returns both supported and unsupported groups.  To find "
19586 "out which ones the daemon can actually support you have to call "
19587 "L</available> on each member of the returned list."
19588 msgstr ""
19589
19590 # type: textblock
19591 #: ../fish/guestfish-actions.pod:416
19592 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
19593 msgstr ""
19594
19595 # type: =head2
19596 #: ../fish/guestfish-actions.pod:418
19597 msgid "base64-in"
19598 msgstr ""
19599
19600 # type: verbatim
19601 #: ../fish/guestfish-actions.pod:420
19602 #, no-wrap
19603 msgid ""
19604 " base64-in (base64file|-) filename\n"
19605 "\n"
19606 msgstr ""
19607
19608 # type: textblock
19609 #: ../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:4199 ../fish/guestfish-actions.pod:4211 ../fish/guestfish-actions.pod:4222 ../fish/guestfish-actions.pod:4233 ../fish/guestfish-actions.pod:4285 ../fish/guestfish-actions.pod:4294 ../fish/guestfish-actions.pod:4348 ../fish/guestfish-actions.pod:4371
19610 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
19611 msgstr ""
19612
19613 # type: =head2
19614 #: ../fish/guestfish-actions.pod:427
19615 msgid "base64-out"
19616 msgstr ""
19617
19618 # type: verbatim
19619 #: ../fish/guestfish-actions.pod:429
19620 #, no-wrap
19621 msgid ""
19622 " base64-out filename (base64file|-)\n"
19623 "\n"
19624 msgstr ""
19625
19626 # type: =head2
19627 #: ../fish/guestfish-actions.pod:436
19628 msgid "blockdev-flushbufs"
19629 msgstr ""
19630
19631 # type: verbatim
19632 #: ../fish/guestfish-actions.pod:438
19633 #, no-wrap
19634 msgid ""
19635 " blockdev-flushbufs device\n"
19636 "\n"
19637 msgstr ""
19638
19639 # type: =head2
19640 #: ../fish/guestfish-actions.pod:445
19641 msgid "blockdev-getbsz"
19642 msgstr ""
19643
19644 # type: verbatim
19645 #: ../fish/guestfish-actions.pod:447
19646 #, no-wrap
19647 msgid ""
19648 " blockdev-getbsz device\n"
19649 "\n"
19650 msgstr ""
19651
19652 # type: =head2
19653 #: ../fish/guestfish-actions.pod:456
19654 msgid "blockdev-getro"
19655 msgstr ""
19656
19657 # type: verbatim
19658 #: ../fish/guestfish-actions.pod:458
19659 #, no-wrap
19660 msgid ""
19661 " blockdev-getro device\n"
19662 "\n"
19663 msgstr ""
19664
19665 # type: =head2
19666 #: ../fish/guestfish-actions.pod:465
19667 msgid "blockdev-getsize64"
19668 msgstr ""
19669
19670 # type: verbatim
19671 #: ../fish/guestfish-actions.pod:467
19672 #, no-wrap
19673 msgid ""
19674 " blockdev-getsize64 device\n"
19675 "\n"
19676 msgstr ""
19677
19678 # type: textblock
19679 #: ../fish/guestfish-actions.pod:471
19680 msgid "See also L</blockdev-getsz>."
19681 msgstr ""
19682
19683 # type: =head2
19684 #: ../fish/guestfish-actions.pod:475
19685 msgid "blockdev-getss"
19686 msgstr ""
19687
19688 # type: verbatim
19689 #: ../fish/guestfish-actions.pod:477
19690 #, no-wrap
19691 msgid ""
19692 " blockdev-getss device\n"
19693 "\n"
19694 msgstr ""
19695
19696 # type: textblock
19697 #: ../fish/guestfish-actions.pod:482
19698 msgid "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
19699 msgstr ""
19700
19701 # type: =head2
19702 #: ../fish/guestfish-actions.pod:487
19703 msgid "blockdev-getsz"
19704 msgstr ""
19705
19706 # type: verbatim
19707 #: ../fish/guestfish-actions.pod:489
19708 #, no-wrap
19709 msgid ""
19710 " blockdev-getsz device\n"
19711 "\n"
19712 msgstr ""
19713
19714 # type: textblock
19715 #: ../fish/guestfish-actions.pod:494
19716 msgid ""
19717 "See also L</blockdev-getss> for the real sector size of the device, and "
19718 "L</blockdev-getsize64> for the more useful I<size in bytes>."
19719 msgstr ""
19720
19721 # type: =head2
19722 #: ../fish/guestfish-actions.pod:500
19723 msgid "blockdev-rereadpt"
19724 msgstr ""
19725
19726 # type: verbatim
19727 #: ../fish/guestfish-actions.pod:502
19728 #, no-wrap
19729 msgid ""
19730 " blockdev-rereadpt device\n"
19731 "\n"
19732 msgstr ""
19733
19734 # type: =head2
19735 #: ../fish/guestfish-actions.pod:508
19736 msgid "blockdev-setbsz"
19737 msgstr ""
19738
19739 # type: verbatim
19740 #: ../fish/guestfish-actions.pod:510
19741 #, no-wrap
19742 msgid ""
19743 " blockdev-setbsz device blocksize\n"
19744 "\n"
19745 msgstr ""
19746
19747 # type: =head2
19748 #: ../fish/guestfish-actions.pod:519
19749 msgid "blockdev-setro"
19750 msgstr ""
19751
19752 # type: verbatim
19753 #: ../fish/guestfish-actions.pod:521
19754 #, no-wrap
19755 msgid ""
19756 " blockdev-setro device\n"
19757 "\n"
19758 msgstr ""
19759
19760 # type: =head2
19761 #: ../fish/guestfish-actions.pod:527
19762 msgid "blockdev-setrw"
19763 msgstr ""
19764
19765 # type: verbatim
19766 #: ../fish/guestfish-actions.pod:529
19767 #, no-wrap
19768 msgid ""
19769 " blockdev-setrw device\n"
19770 "\n"
19771 msgstr ""
19772
19773 # type: =head2
19774 #: ../fish/guestfish-actions.pod:535
19775 msgid "case-sensitive-path"
19776 msgstr ""
19777
19778 # type: verbatim
19779 #: ../fish/guestfish-actions.pod:537
19780 #, no-wrap
19781 msgid ""
19782 " case-sensitive-path path\n"
19783 "\n"
19784 msgstr ""
19785
19786 # type: textblock
19787 #: ../fish/guestfish-actions.pod:561
19788 msgid ""
19789 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return "
19790 "C<\"/WINDOWS/system32\"> (the exact return value would depend on details of "
19791 "how the directories were originally created under Windows)."
19792 msgstr ""
19793
19794 # type: textblock
19795 #: ../fish/guestfish-actions.pod:569
19796 msgid "See also L</realpath>."
19797 msgstr ""
19798
19799 # type: =head2
19800 #: ../fish/guestfish-actions.pod:571
19801 msgid "cat"
19802 msgstr ""
19803
19804 # type: verbatim
19805 #: ../fish/guestfish-actions.pod:573
19806 #, no-wrap
19807 msgid ""
19808 " cat path\n"
19809 "\n"
19810 msgstr ""
19811
19812 # type: textblock
19813 #: ../fish/guestfish-actions.pod:577
19814 msgid ""
19815 "Note that this function cannot correctly handle binary files (specifically, "
19816 "files containing C<\\0> character which is treated as end of string).  For "
19817 "those you need to use the L</read-file> or L</download> functions which have "
19818 "a more complex interface."
19819 msgstr ""
19820
19821 # type: =head2
19822 #: ../fish/guestfish-actions.pod:585
19823 msgid "checksum"
19824 msgstr ""
19825
19826 # type: verbatim
19827 #: ../fish/guestfish-actions.pod:587
19828 #, no-wrap
19829 msgid ""
19830 " checksum csumtype path\n"
19831 "\n"
19832 msgstr ""
19833
19834 # type: textblock
19835 #: ../fish/guestfish-actions.pod:630
19836 msgid "To get the checksum for a device, use L</checksum-device>."
19837 msgstr ""
19838
19839 # type: textblock
19840 #: ../fish/guestfish-actions.pod:632
19841 msgid "To get the checksums for many files, use L</checksums-out>."
19842 msgstr ""
19843
19844 # type: =head2
19845 #: ../fish/guestfish-actions.pod:634
19846 msgid "checksum-device"
19847 msgstr ""
19848
19849 # type: verbatim
19850 #: ../fish/guestfish-actions.pod:636
19851 #, no-wrap
19852 msgid ""
19853 " checksum-device csumtype device\n"
19854 "\n"
19855 msgstr ""
19856
19857 # type: textblock
19858 #: ../fish/guestfish-actions.pod:638
19859 msgid ""
19860 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
19861 "device named C<device>.  For the types of checksums supported see the "
19862 "L</checksum> command."
19863 msgstr ""
19864
19865 # type: =head2
19866 #: ../fish/guestfish-actions.pod:642
19867 msgid "checksums-out"
19868 msgstr ""
19869
19870 # type: verbatim
19871 #: ../fish/guestfish-actions.pod:644
19872 #, no-wrap
19873 msgid ""
19874 " checksums-out csumtype directory (sumsfile|-)\n"
19875 "\n"
19876 msgstr ""
19877
19878 # type: =head2
19879 #: ../fish/guestfish-actions.pod:660
19880 msgid "chmod"
19881 msgstr ""
19882
19883 # type: verbatim
19884 #: ../fish/guestfish-actions.pod:662
19885 #, no-wrap
19886 msgid ""
19887 " chmod mode path\n"
19888 "\n"
19889 msgstr ""
19890
19891 # type: =head2
19892 #: ../fish/guestfish-actions.pod:673
19893 msgid "chown"
19894 msgstr ""
19895
19896 # type: verbatim
19897 #: ../fish/guestfish-actions.pod:675
19898 #, no-wrap
19899 msgid ""
19900 " chown owner group path\n"
19901 "\n"
19902 msgstr ""
19903
19904 # type: =head2
19905 #: ../fish/guestfish-actions.pod:683
19906 msgid "command"
19907 msgstr ""
19908
19909 # type: verbatim
19910 #: ../fish/guestfish-actions.pod:685
19911 #, no-wrap
19912 msgid ""
19913 " command 'arguments ...'\n"
19914 "\n"
19915 msgstr ""
19916
19917 # type: textblock
19918 #: ../fish/guestfish-actions.pod:692
19919 msgid ""
19920 "The single parameter is an argv-style list of arguments.  The first element "
19921 "is the name of the program to run.  Subsequent elements are parameters.  The "
19922 "list must be non-empty (ie. must contain a program name).  Note that the "
19923 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
19924 msgstr ""
19925
19926 # type: =head2
19927 #: ../fish/guestfish-actions.pod:720
19928 msgid "command-lines"
19929 msgstr ""
19930
19931 # type: verbatim
19932 #: ../fish/guestfish-actions.pod:722
19933 #, no-wrap
19934 msgid ""
19935 " command-lines 'arguments ...'\n"
19936 "\n"
19937 msgstr ""
19938
19939 # type: textblock
19940 #: ../fish/guestfish-actions.pod:724
19941 msgid "This is the same as L</command>, but splits the result into a list of lines."
19942 msgstr ""
19943
19944 # type: textblock
19945 #: ../fish/guestfish-actions.pod:727
19946 msgid "See also: L</sh-lines>"
19947 msgstr ""
19948
19949 # type: =head2
19950 #: ../fish/guestfish-actions.pod:732
19951 msgid "config"
19952 msgstr ""
19953
19954 # type: verbatim
19955 #: ../fish/guestfish-actions.pod:734
19956 #, no-wrap
19957 msgid ""
19958 " config qemuparam qemuvalue\n"
19959 "\n"
19960 msgstr ""
19961
19962 # type: =head2
19963 #: ../fish/guestfish-actions.pod:745
19964 msgid "copy-size"
19965 msgstr ""
19966
19967 # type: verbatim
19968 #: ../fish/guestfish-actions.pod:747
19969 #, no-wrap
19970 msgid ""
19971 " copy-size src dest size\n"
19972 "\n"
19973 msgstr ""
19974
19975 # type: =head2
19976 #: ../fish/guestfish-actions.pod:755
19977 msgid "cp"
19978 msgstr ""
19979
19980 # type: verbatim
19981 #: ../fish/guestfish-actions.pod:757
19982 #, no-wrap
19983 msgid ""
19984 " cp src dest\n"
19985 "\n"
19986 msgstr ""
19987
19988 # type: =head2
19989 #: ../fish/guestfish-actions.pod:762
19990 msgid "cp-a"
19991 msgstr ""
19992
19993 # type: verbatim
19994 #: ../fish/guestfish-actions.pod:764
19995 #, no-wrap
19996 msgid ""
19997 " cp-a src dest\n"
19998 "\n"
19999 msgstr ""
20000
20001 # type: =head2
20002 #: ../fish/guestfish-actions.pod:769
20003 msgid "dd"
20004 msgstr ""
20005
20006 # type: verbatim
20007 #: ../fish/guestfish-actions.pod:771
20008 #, no-wrap
20009 msgid ""
20010 " dd src dest\n"
20011 "\n"
20012 msgstr ""
20013
20014 # type: textblock
20015 #: ../fish/guestfish-actions.pod:778
20016 msgid ""
20017 "If the destination is a device, it must be as large or larger than the "
20018 "source file or device, otherwise the copy will fail.  This command cannot do "
20019 "partial copies (see L</copy-size>)."
20020 msgstr ""
20021
20022 # type: =head2
20023 #: ../fish/guestfish-actions.pod:782
20024 msgid "df"
20025 msgstr ""
20026
20027 # type: verbatim
20028 #: ../fish/guestfish-actions.pod:784
20029 #, no-wrap
20030 msgid ""
20031 " df\n"
20032 "\n"
20033 msgstr ""
20034
20035 # type: =head2
20036 #: ../fish/guestfish-actions.pod:792
20037 msgid "df-h"
20038 msgstr ""
20039
20040 # type: verbatim
20041 #: ../fish/guestfish-actions.pod:794
20042 #, no-wrap
20043 msgid ""
20044 " df-h\n"
20045 "\n"
20046 msgstr ""
20047
20048 # type: =head2
20049 #: ../fish/guestfish-actions.pod:803
20050 msgid "dmesg"
20051 msgstr ""
20052
20053 # type: verbatim
20054 #: ../fish/guestfish-actions.pod:805
20055 #, no-wrap
20056 msgid ""
20057 " dmesg\n"
20058 "\n"
20059 msgstr ""
20060
20061 # type: textblock
20062 #: ../fish/guestfish-actions.pod:811
20063 msgid ""
20064 "Another way to get the same information is to enable verbose messages with "
20065 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
20066 "before running the program."
20067 msgstr ""
20068
20069 # type: =head2
20070 #: ../fish/guestfish-actions.pod:816
20071 msgid "download"
20072 msgstr ""
20073
20074 # type: verbatim
20075 #: ../fish/guestfish-actions.pod:818
20076 #, no-wrap
20077 msgid ""
20078 " download remotefilename (filename|-)\n"
20079 "\n"
20080 msgstr ""
20081
20082 # type: textblock
20083 #: ../fish/guestfish-actions.pod:825
20084 msgid "See also L</upload>, L</cat>."
20085 msgstr ""
20086
20087 # type: =head2
20088 #: ../fish/guestfish-actions.pod:829
20089 msgid "download-offset"
20090 msgstr ""
20091
20092 # type: verbatim
20093 #: ../fish/guestfish-actions.pod:831
20094 #, no-wrap
20095 msgid ""
20096 " download-offset remotefilename (filename|-) offset size\n"
20097 "\n"
20098 msgstr ""
20099
20100 # type: textblock
20101 #: ../fish/guestfish-actions.pod:839
20102 msgid ""
20103 "Note that there is no limit on the amount of data that can be downloaded "
20104 "with this call, unlike with L</pread>, and this call always reads the full "
20105 "amount unless an error occurs."
20106 msgstr ""
20107
20108 # type: textblock
20109 #: ../fish/guestfish-actions.pod:844
20110 msgid "See also L</download>, L</pread>."
20111 msgstr ""
20112
20113 # type: =head2
20114 #: ../fish/guestfish-actions.pod:848
20115 msgid "drop-caches"
20116 msgstr ""
20117
20118 # type: verbatim
20119 #: ../fish/guestfish-actions.pod:850
20120 #, no-wrap
20121 msgid ""
20122 " drop-caches whattodrop\n"
20123 "\n"
20124 msgstr ""
20125
20126 # type: =head2
20127 #: ../fish/guestfish-actions.pod:862
20128 msgid "du"
20129 msgstr ""
20130
20131 # type: verbatim
20132 #: ../fish/guestfish-actions.pod:864
20133 #, no-wrap
20134 msgid ""
20135 " du path\n"
20136 "\n"
20137 msgstr ""
20138
20139 # type: =head2
20140 #: ../fish/guestfish-actions.pod:876
20141 msgid "e2fsck-f"
20142 msgstr ""
20143
20144 # type: verbatim
20145 #: ../fish/guestfish-actions.pod:878
20146 #, no-wrap
20147 msgid ""
20148 " e2fsck-f device\n"
20149 "\n"
20150 msgstr ""
20151
20152 # type: textblock
20153 #: ../fish/guestfish-actions.pod:884
20154 msgid ""
20155 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
20156 "should use L</fsck>."
20157 msgstr ""
20158
20159 # type: =head2
20160 #: ../fish/guestfish-actions.pod:887
20161 msgid "echo-daemon"
20162 msgstr ""
20163
20164 # type: verbatim
20165 #: ../fish/guestfish-actions.pod:889
20166 #, no-wrap
20167 msgid ""
20168 " echo-daemon 'words ...'\n"
20169 "\n"
20170 msgstr ""
20171
20172 # type: textblock
20173 #: ../fish/guestfish-actions.pod:896
20174 msgid "See also L</ping-daemon>."
20175 msgstr ""
20176
20177 # type: =head2
20178 #: ../fish/guestfish-actions.pod:898
20179 msgid "egrep"
20180 msgstr ""
20181
20182 # type: verbatim
20183 #: ../fish/guestfish-actions.pod:900
20184 #, no-wrap
20185 msgid ""
20186 " egrep regex path\n"
20187 "\n"
20188 msgstr ""
20189
20190 # type: =head2
20191 #: ../fish/guestfish-actions.pod:908
20192 msgid "egrepi"
20193 msgstr ""
20194
20195 # type: verbatim
20196 #: ../fish/guestfish-actions.pod:910
20197 #, no-wrap
20198 msgid ""
20199 " egrepi regex path\n"
20200 "\n"
20201 msgstr ""
20202
20203 # type: =head2
20204 #: ../fish/guestfish-actions.pod:918
20205 msgid "equal"
20206 msgstr ""
20207
20208 # type: verbatim
20209 #: ../fish/guestfish-actions.pod:920
20210 #, no-wrap
20211 msgid ""
20212 " equal file1 file2\n"
20213 "\n"
20214 msgstr ""
20215
20216 # type: =head2
20217 #: ../fish/guestfish-actions.pod:927
20218 msgid "exists"
20219 msgstr ""
20220
20221 # type: verbatim
20222 #: ../fish/guestfish-actions.pod:929
20223 #, no-wrap
20224 msgid ""
20225 " exists path\n"
20226 "\n"
20227 msgstr ""
20228
20229 # type: textblock
20230 #: ../fish/guestfish-actions.pod:934
20231 msgid "See also L</is-file>, L</is-dir>, L</stat>."
20232 msgstr ""
20233
20234 # type: =head2
20235 #: ../fish/guestfish-actions.pod:936
20236 msgid "fallocate"
20237 msgstr ""
20238
20239 # type: verbatim
20240 #: ../fish/guestfish-actions.pod:938
20241 #, no-wrap
20242 msgid ""
20243 " fallocate path len\n"
20244 "\n"
20245 msgstr ""
20246
20247 # type: =head2
20248 #: ../fish/guestfish-actions.pod:955
20249 msgid "fallocate64"
20250 msgstr ""
20251
20252 # type: verbatim
20253 #: ../fish/guestfish-actions.pod:957
20254 #, no-wrap
20255 msgid ""
20256 " fallocate64 path len\n"
20257 "\n"
20258 msgstr ""
20259
20260 # type: textblock
20261 #: ../fish/guestfish-actions.pod:963
20262 msgid ""
20263 "Note that this call allocates disk blocks for the file.  To create a sparse "
20264 "file use L</truncate-size> instead."
20265 msgstr ""
20266
20267 # type: textblock
20268 #: ../fish/guestfish-actions.pod:966
20269 msgid ""
20270 "The deprecated call L</fallocate> does the same, but owing to an oversight "
20271 "it only allowed 30 bit lengths to be specified, effectively limiting the "
20272 "maximum size of files created through that call to 1GB."
20273 msgstr ""
20274
20275 # type: =head2
20276 #: ../fish/guestfish-actions.pod:975
20277 msgid "fgrep"
20278 msgstr ""
20279
20280 # type: verbatim
20281 #: ../fish/guestfish-actions.pod:977
20282 #, no-wrap
20283 msgid ""
20284 " fgrep pattern path\n"
20285 "\n"
20286 msgstr ""
20287
20288 # type: =head2
20289 #: ../fish/guestfish-actions.pod:985
20290 msgid "fgrepi"
20291 msgstr ""
20292
20293 # type: verbatim
20294 #: ../fish/guestfish-actions.pod:987
20295 #, no-wrap
20296 msgid ""
20297 " fgrepi pattern path\n"
20298 "\n"
20299 msgstr ""
20300
20301 # type: =head2
20302 #: ../fish/guestfish-actions.pod:995
20303 msgid "file"
20304 msgstr ""
20305
20306 # type: verbatim
20307 #: ../fish/guestfish-actions.pod:997
20308 #, no-wrap
20309 msgid ""
20310 " file path\n"
20311 "\n"
20312 msgstr ""
20313
20314 # type: textblock
20315 #: ../fish/guestfish-actions.pod:1009
20316 msgid ""
20317 "This command can also be used on C</dev/> devices (and partitions, LV "
20318 "names).  You can for example use this to determine if a device contains a "
20319 "filesystem, although it's usually better to use L</vfs-type>."
20320 msgstr ""
20321
20322 # type: =head2
20323 #: ../fish/guestfish-actions.pod:1019
20324 msgid "file-architecture"
20325 msgstr ""
20326
20327 # type: verbatim
20328 #: ../fish/guestfish-actions.pod:1021
20329 #, no-wrap
20330 msgid ""
20331 " file-architecture filename\n"
20332 "\n"
20333 msgstr ""
20334
20335 # type: =head2
20336 #: ../fish/guestfish-actions.pod:1124
20337 msgid "filesize"
20338 msgstr ""
20339
20340 # type: verbatim
20341 #: ../fish/guestfish-actions.pod:1126
20342 #, no-wrap
20343 msgid ""
20344 " filesize file\n"
20345 "\n"
20346 msgstr ""
20347
20348 # type: textblock
20349 #: ../fish/guestfish-actions.pod:1130
20350 msgid ""
20351 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, "
20352 "L</is-file> etc.  To get the size of block devices, use "
20353 "L</blockdev-getsize64>."
20354 msgstr ""
20355
20356 # type: =head2
20357 #: ../fish/guestfish-actions.pod:1134
20358 msgid "fill"
20359 msgstr ""
20360
20361 # type: verbatim
20362 #: ../fish/guestfish-actions.pod:1136
20363 #, no-wrap
20364 msgid ""
20365 " fill c len path\n"
20366 "\n"
20367 msgstr ""
20368
20369 # type: textblock
20370 #: ../fish/guestfish-actions.pod:1142
20371 msgid ""
20372 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
20373 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
20374 "L</fill-pattern>."
20375 msgstr ""
20376
20377 # type: =head2
20378 #: ../fish/guestfish-actions.pod:1147
20379 msgid "fill-pattern"
20380 msgstr ""
20381
20382 # type: verbatim
20383 #: ../fish/guestfish-actions.pod:1149
20384 #, no-wrap
20385 msgid ""
20386 " fill-pattern pattern len path\n"
20387 "\n"
20388 msgstr ""
20389
20390 # type: textblock
20391 #: ../fish/guestfish-actions.pod:1151
20392 msgid ""
20393 "This function is like L</fill> except that it creates a new file of length "
20394 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
20395 "is truncated if necessary to ensure the length of the file is exactly C<len> "
20396 "bytes."
20397 msgstr ""
20398
20399 # type: =head2
20400 #: ../fish/guestfish-actions.pod:1156
20401 msgid "find"
20402 msgstr ""
20403
20404 # type: verbatim
20405 #: ../fish/guestfish-actions.pod:1158
20406 #, no-wrap
20407 msgid ""
20408 " find directory\n"
20409 "\n"
20410 msgstr ""
20411
20412 # type: textblock
20413 #: ../fish/guestfish-actions.pod:1172
20414 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
20415 msgstr ""
20416
20417 # type: textblock
20418 #: ../fish/guestfish-actions.pod:1185
20419 msgid "See also L</find0>."
20420 msgstr ""
20421
20422 # type: =head2
20423 #: ../fish/guestfish-actions.pod:1190
20424 msgid "find0"
20425 msgstr ""
20426
20427 # type: verbatim
20428 #: ../fish/guestfish-actions.pod:1192
20429 #, no-wrap
20430 msgid ""
20431 " find0 directory (files|-)\n"
20432 "\n"
20433 msgstr ""
20434
20435 # type: textblock
20436 #: ../fish/guestfish-actions.pod:1198
20437 msgid "This command works the same way as L</find> with the following exceptions:"
20438 msgstr ""
20439
20440 # type: =head2
20441 #: ../fish/guestfish-actions.pod:1225
20442 msgid "findfs-label"
20443 msgstr ""
20444
20445 # type: verbatim
20446 #: ../fish/guestfish-actions.pod:1227
20447 #, no-wrap
20448 msgid ""
20449 " findfs-label label\n"
20450 "\n"
20451 msgstr ""
20452
20453 # type: textblock
20454 #: ../fish/guestfish-actions.pod:1233
20455 msgid "To find the label of a filesystem, use L</vfs-label>."
20456 msgstr ""
20457
20458 # type: =head2
20459 #: ../fish/guestfish-actions.pod:1235
20460 msgid "findfs-uuid"
20461 msgstr ""
20462
20463 # type: verbatim
20464 #: ../fish/guestfish-actions.pod:1237
20465 #, no-wrap
20466 msgid ""
20467 " findfs-uuid uuid\n"
20468 "\n"
20469 msgstr ""
20470
20471 # type: textblock
20472 #: ../fish/guestfish-actions.pod:1243
20473 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
20474 msgstr ""
20475
20476 # type: =head2
20477 #: ../fish/guestfish-actions.pod:1245
20478 msgid "fsck"
20479 msgstr ""
20480
20481 # type: verbatim
20482 #: ../fish/guestfish-actions.pod:1247
20483 #, no-wrap
20484 msgid ""
20485 " fsck fstype device\n"
20486 "\n"
20487 msgstr ""
20488
20489 # type: =head2
20490 #: ../fish/guestfish-actions.pod:1277
20491 msgid "get-append"
20492 msgstr ""
20493
20494 # type: verbatim
20495 #: ../fish/guestfish-actions.pod:1279
20496 #, no-wrap
20497 msgid ""
20498 " get-append\n"
20499 "\n"
20500 msgstr ""
20501
20502 # type: =head2
20503 #: ../fish/guestfish-actions.pod:1286
20504 msgid "get-autosync"
20505 msgstr ""
20506
20507 # type: verbatim
20508 #: ../fish/guestfish-actions.pod:1288
20509 #, no-wrap
20510 msgid ""
20511 " get-autosync\n"
20512 "\n"
20513 msgstr ""
20514
20515 # type: =head2
20516 #: ../fish/guestfish-actions.pod:1292
20517 msgid "get-direct"
20518 msgstr ""
20519
20520 # type: verbatim
20521 #: ../fish/guestfish-actions.pod:1294
20522 #, no-wrap
20523 msgid ""
20524 " get-direct\n"
20525 "\n"
20526 msgstr ""
20527
20528 # type: =head2
20529 #: ../fish/guestfish-actions.pod:1298
20530 msgid "get-e2label"
20531 msgstr ""
20532
20533 # type: verbatim
20534 #: ../fish/guestfish-actions.pod:1300
20535 #, no-wrap
20536 msgid ""
20537 " get-e2label device\n"
20538 "\n"
20539 msgstr ""
20540
20541 # type: =head2
20542 #: ../fish/guestfish-actions.pod:1312
20543 msgid "get-e2uuid"
20544 msgstr ""
20545
20546 # type: verbatim
20547 #: ../fish/guestfish-actions.pod:1314
20548 #, no-wrap
20549 msgid ""
20550 " get-e2uuid device\n"
20551 "\n"
20552 msgstr ""
20553
20554 # type: =head2
20555 #: ../fish/guestfish-actions.pod:1326
20556 msgid "get-memsize"
20557 msgstr ""
20558
20559 # type: verbatim
20560 #: ../fish/guestfish-actions.pod:1328
20561 #, no-wrap
20562 msgid ""
20563 " get-memsize\n"
20564 "\n"
20565 msgstr ""
20566
20567 # type: textblock
20568 #: ../fish/guestfish-actions.pod:1333
20569 msgid ""
20570 "If L</set-memsize> was not called on this handle, and if "
20571 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
20572 "value for memsize."
20573 msgstr ""
20574
20575 # type: =head2
20576 #: ../fish/guestfish-actions.pod:1340
20577 msgid "get-network"
20578 msgstr ""
20579
20580 # type: verbatim
20581 #: ../fish/guestfish-actions.pod:1342
20582 #, no-wrap
20583 msgid ""
20584 " get-network\n"
20585 "\n"
20586 msgstr ""
20587
20588 # type: =head2
20589 #: ../fish/guestfish-actions.pod:1346
20590 msgid "get-path"
20591 msgstr ""
20592
20593 # type: verbatim
20594 #: ../fish/guestfish-actions.pod:1348
20595 #, no-wrap
20596 msgid ""
20597 " get-path\n"
20598 "\n"
20599 msgstr ""
20600
20601 # type: =head2
20602 #: ../fish/guestfish-actions.pod:1355
20603 msgid "get-pid"
20604 msgstr ""
20605
20606 # type: =head2
20607 #: ../fish/guestfish-actions.pod:1357
20608 msgid "pid"
20609 msgstr ""
20610
20611 # type: verbatim
20612 #: ../fish/guestfish-actions.pod:1359
20613 #, no-wrap
20614 msgid ""
20615 " get-pid\n"
20616 "\n"
20617 msgstr ""
20618
20619 # type: =head2
20620 #: ../fish/guestfish-actions.pod:1366
20621 msgid "get-qemu"
20622 msgstr ""
20623
20624 # type: verbatim
20625 #: ../fish/guestfish-actions.pod:1368
20626 #, no-wrap
20627 msgid ""
20628 " get-qemu\n"
20629 "\n"
20630 msgstr ""
20631
20632 # type: =head2
20633 #: ../fish/guestfish-actions.pod:1375
20634 msgid "get-recovery-proc"
20635 msgstr ""
20636
20637 # type: verbatim
20638 #: ../fish/guestfish-actions.pod:1377
20639 #, no-wrap
20640 msgid ""
20641 " get-recovery-proc\n"
20642 "\n"
20643 msgstr ""
20644
20645 # type: =head2
20646 #: ../fish/guestfish-actions.pod:1381
20647 msgid "get-selinux"
20648 msgstr ""
20649
20650 # type: verbatim
20651 #: ../fish/guestfish-actions.pod:1383
20652 #, no-wrap
20653 msgid ""
20654 " get-selinux\n"
20655 "\n"
20656 msgstr ""
20657
20658 # type: textblock
20659 #: ../fish/guestfish-actions.pod:1385
20660 msgid ""
20661 "This returns the current setting of the selinux flag which is passed to the "
20662 "appliance at boot time.  See L</set-selinux>."
20663 msgstr ""
20664
20665 # type: =head2
20666 #: ../fish/guestfish-actions.pod:1391
20667 msgid "get-state"
20668 msgstr ""
20669
20670 # type: verbatim
20671 #: ../fish/guestfish-actions.pod:1393
20672 #, no-wrap
20673 msgid ""
20674 " get-state\n"
20675 "\n"
20676 msgstr ""
20677
20678 # type: =head2
20679 #: ../fish/guestfish-actions.pod:1400
20680 msgid "get-trace"
20681 msgstr ""
20682
20683 # type: verbatim
20684 #: ../fish/guestfish-actions.pod:1402
20685 #, no-wrap
20686 msgid ""
20687 " get-trace\n"
20688 "\n"
20689 msgstr ""
20690
20691 # type: =head2
20692 #: ../fish/guestfish-actions.pod:1406
20693 msgid "get-umask"
20694 msgstr ""
20695
20696 # type: verbatim
20697 #: ../fish/guestfish-actions.pod:1408
20698 #, no-wrap
20699 msgid ""
20700 " get-umask\n"
20701 "\n"
20702 msgstr ""
20703
20704 # type: textblock
20705 #: ../fish/guestfish-actions.pod:1410
20706 msgid ""
20707 "Return the current umask.  By default the umask is C<022> unless it has been "
20708 "set by calling L</umask>."
20709 msgstr ""
20710
20711 # type: =head2
20712 #: ../fish/guestfish-actions.pod:1413
20713 msgid "get-verbose"
20714 msgstr ""
20715
20716 # type: verbatim
20717 #: ../fish/guestfish-actions.pod:1415
20718 #, no-wrap
20719 msgid ""
20720 " get-verbose\n"
20721 "\n"
20722 msgstr ""
20723
20724 # type: =head2
20725 #: ../fish/guestfish-actions.pod:1419
20726 msgid "getcon"
20727 msgstr ""
20728
20729 # type: verbatim
20730 #: ../fish/guestfish-actions.pod:1421
20731 #, no-wrap
20732 msgid ""
20733 " getcon\n"
20734 "\n"
20735 msgstr ""
20736
20737 # type: textblock
20738 #: ../fish/guestfish-actions.pod:1425
20739 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
20740 msgstr ""
20741
20742 # type: =head2
20743 #: ../fish/guestfish-actions.pod:1428
20744 msgid "getxattr"
20745 msgstr ""
20746
20747 # type: verbatim
20748 #: ../fish/guestfish-actions.pod:1430
20749 #, no-wrap
20750 msgid ""
20751 " getxattr path name\n"
20752 "\n"
20753 msgstr ""
20754
20755 # type: textblock
20756 #: ../fish/guestfish-actions.pod:1432
20757 msgid ""
20758 "Get a single extended attribute from file C<path> named C<name>.  This call "
20759 "follows symlinks.  If you want to lookup an extended attribute for the "
20760 "symlink itself, use L</lgetxattr>."
20761 msgstr ""
20762
20763 # type: textblock
20764 #: ../fish/guestfish-actions.pod:1436 ../fish/guestfish-actions.pod:2263
20765 msgid ""
20766 "Normally it is better to get all extended attributes from a file in one go "
20767 "by calling L</getxattrs>.  However some Linux filesystem implementations are "
20768 "buggy and do not provide a way to list out attributes.  For these "
20769 "filesystems (notably ntfs-3g)  you have to know the names of the extended "
20770 "attributes you want in advance and call this function."
20771 msgstr ""
20772
20773 # type: textblock
20774 #: ../fish/guestfish-actions.pod:1446
20775 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
20776 msgstr ""
20777
20778 # type: =head2
20779 #: ../fish/guestfish-actions.pod:1448
20780 msgid "getxattrs"
20781 msgstr ""
20782
20783 # type: verbatim
20784 #: ../fish/guestfish-actions.pod:1450
20785 #, no-wrap
20786 msgid ""
20787 " getxattrs path\n"
20788 "\n"
20789 msgstr ""
20790
20791 # type: textblock
20792 #: ../fish/guestfish-actions.pod:1458
20793 msgid "See also: L</lgetxattrs>, L<attr(5)>."
20794 msgstr ""
20795
20796 # type: =head2
20797 #: ../fish/guestfish-actions.pod:1460
20798 msgid "glob-expand"
20799 msgstr ""
20800
20801 # type: verbatim
20802 #: ../fish/guestfish-actions.pod:1462
20803 #, no-wrap
20804 msgid ""
20805 " glob-expand pattern\n"
20806 "\n"
20807 msgstr ""
20808
20809 # type: =head2
20810 #: ../fish/guestfish-actions.pod:1475
20811 msgid "grep"
20812 msgstr ""
20813
20814 # type: verbatim
20815 #: ../fish/guestfish-actions.pod:1477
20816 #, no-wrap
20817 msgid ""
20818 " grep regex path\n"
20819 "\n"
20820 msgstr ""
20821
20822 # type: =head2
20823 #: ../fish/guestfish-actions.pod:1485
20824 msgid "grepi"
20825 msgstr ""
20826
20827 # type: verbatim
20828 #: ../fish/guestfish-actions.pod:1487
20829 #, no-wrap
20830 msgid ""
20831 " grepi regex path\n"
20832 "\n"
20833 msgstr ""
20834
20835 # type: =head2
20836 #: ../fish/guestfish-actions.pod:1495
20837 msgid "grub-install"
20838 msgstr ""
20839
20840 # type: verbatim
20841 #: ../fish/guestfish-actions.pod:1497
20842 #, no-wrap
20843 msgid ""
20844 " grub-install root device\n"
20845 "\n"
20846 msgstr ""
20847
20848 # type: =head2
20849 #: ../fish/guestfish-actions.pod:1513
20850 msgid "head"
20851 msgstr ""
20852
20853 # type: verbatim
20854 #: ../fish/guestfish-actions.pod:1515
20855 #, no-wrap
20856 msgid ""
20857 " head path\n"
20858 "\n"
20859 msgstr ""
20860
20861 # type: =head2
20862 #: ../fish/guestfish-actions.pod:1523
20863 msgid "head-n"
20864 msgstr ""
20865
20866 # type: verbatim
20867 #: ../fish/guestfish-actions.pod:1525
20868 #, no-wrap
20869 msgid ""
20870 " head-n nrlines path\n"
20871 "\n"
20872 msgstr ""
20873
20874 # type: =head2
20875 #: ../fish/guestfish-actions.pod:1538
20876 msgid "hexdump"
20877 msgstr ""
20878
20879 # type: verbatim
20880 #: ../fish/guestfish-actions.pod:1540
20881 #, no-wrap
20882 msgid ""
20883 " hexdump path\n"
20884 "\n"
20885 msgstr ""
20886
20887 # type: =head2
20888 #: ../fish/guestfish-actions.pod:1548
20889 msgid "initrd-cat"
20890 msgstr ""
20891
20892 # type: verbatim
20893 #: ../fish/guestfish-actions.pod:1550
20894 #, no-wrap
20895 msgid ""
20896 " initrd-cat initrdpath filename\n"
20897 "\n"
20898 msgstr ""
20899
20900 # type: textblock
20901 #: ../fish/guestfish-actions.pod:1562
20902 msgid "See also L</initrd-list>."
20903 msgstr ""
20904
20905 # type: =head2
20906 #: ../fish/guestfish-actions.pod:1567
20907 msgid "initrd-list"
20908 msgstr ""
20909
20910 # type: verbatim
20911 #: ../fish/guestfish-actions.pod:1569
20912 #, no-wrap
20913 msgid ""
20914 " initrd-list path\n"
20915 "\n"
20916 msgstr ""
20917
20918 # type: =head2
20919 #: ../fish/guestfish-actions.pod:1581
20920 msgid "inotify-add-watch"
20921 msgstr ""
20922
20923 # type: verbatim
20924 #: ../fish/guestfish-actions.pod:1583
20925 #, no-wrap
20926 msgid ""
20927 " inotify-add-watch path mask\n"
20928 "\n"
20929 msgstr ""
20930
20931 # type: =head2
20932 #: ../fish/guestfish-actions.pod:1595
20933 msgid "inotify-close"
20934 msgstr ""
20935
20936 # type: verbatim
20937 #: ../fish/guestfish-actions.pod:1597
20938 #, no-wrap
20939 msgid ""
20940 " inotify-close\n"
20941 "\n"
20942 msgstr ""
20943
20944 # type: =head2
20945 #: ../fish/guestfish-actions.pod:1603
20946 msgid "inotify-files"
20947 msgstr ""
20948
20949 # type: verbatim
20950 #: ../fish/guestfish-actions.pod:1605
20951 #, no-wrap
20952 msgid ""
20953 " inotify-files\n"
20954 "\n"
20955 msgstr ""
20956
20957 # type: textblock
20958 #: ../fish/guestfish-actions.pod:1607
20959 msgid ""
20960 "This function is a helpful wrapper around L</inotify-read> which just "
20961 "returns a list of pathnames of objects that were touched.  The returned "
20962 "pathnames are sorted and deduplicated."
20963 msgstr ""
20964
20965 # type: =head2
20966 #: ../fish/guestfish-actions.pod:1611
20967 msgid "inotify-init"
20968 msgstr ""
20969
20970 # type: verbatim
20971 #: ../fish/guestfish-actions.pod:1613
20972 #, no-wrap
20973 msgid ""
20974 " inotify-init maxevents\n"
20975 "\n"
20976 msgstr ""
20977
20978 # type: textblock
20979 #: ../fish/guestfish-actions.pod:1619
20980 msgid ""
20981 "C<maxevents> is the maximum number of events which will be queued up between "
20982 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
20983 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
20984 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
20985 "but records the fact that it threw them away by setting a flag "
20986 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
20987 msgstr ""
20988
20989 # type: textblock
20990 #: ../fish/guestfish-actions.pod:1629
20991 msgid ""
20992 "Before any events are generated, you have to add some watches to the "
20993 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
20994 "L</inotify-watch-all>."
20995 msgstr ""
20996
20997 # type: textblock
20998 #: ../fish/guestfish-actions.pod:1635
20999 msgid ""
21000 "Queued up events should be read periodically by calling L</inotify-read> (or "
21001 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
21002 "If you don't read the events out often enough then you risk the internal "
21003 "queue overflowing."
21004 msgstr ""
21005
21006 # type: textblock
21007 #: ../fish/guestfish-actions.pod:1642
21008 msgid ""
21009 "The handle should be closed after use by calling L</inotify-close>.  This "
21010 "also removes any watches automatically."
21011 msgstr ""
21012
21013 # type: =head2
21014 #: ../fish/guestfish-actions.pod:1651
21015 msgid "inotify-read"
21016 msgstr ""
21017
21018 # type: verbatim
21019 #: ../fish/guestfish-actions.pod:1653
21020 #, no-wrap
21021 msgid ""
21022 " inotify-read\n"
21023 "\n"
21024 msgstr ""
21025
21026 # type: =head2
21027 #: ../fish/guestfish-actions.pod:1666
21028 msgid "inotify-rm-watch"
21029 msgstr ""
21030
21031 # type: verbatim
21032 #: ../fish/guestfish-actions.pod:1668
21033 #, no-wrap
21034 msgid ""
21035 " inotify-rm-watch wd\n"
21036 "\n"
21037 msgstr ""
21038
21039 # type: textblock
21040 #: ../fish/guestfish-actions.pod:1670
21041 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
21042 msgstr ""
21043
21044 # type: =head2
21045 #: ../fish/guestfish-actions.pod:1673
21046 msgid "inspect-get-arch"
21047 msgstr ""
21048
21049 # type: verbatim
21050 #: ../fish/guestfish-actions.pod:1675
21051 #, no-wrap
21052 msgid ""
21053 " inspect-get-arch root\n"
21054 "\n"
21055 msgstr ""
21056
21057 # type: textblock
21058 #: ../fish/guestfish-actions.pod:1677 ../fish/guestfish-actions.pod:1693 ../fish/guestfish-actions.pod:1767 ../fish/guestfish-actions.pod:1785 ../fish/guestfish-actions.pod:1800 ../fish/guestfish-actions.pod:1821 ../fish/guestfish-actions.pod:1836 ../fish/guestfish-actions.pod:1859 ../fish/guestfish-actions.pod:1881 ../fish/guestfish-actions.pod:1905 ../fish/guestfish-actions.pod:1935 ../fish/guestfish-actions.pod:1970 ../fish/guestfish-actions.pod:1986
21059 msgid ""
21060 "This function should only be called with a root device string as returned by "
21061 "L</inspect-os>."
21062 msgstr ""
21063
21064 # type: textblock
21065 #: ../fish/guestfish-actions.pod:1680
21066 msgid ""
21067 "This returns the architecture of the inspected operating system.  The "
21068 "possible return values are listed under L</file-architecture>."
21069 msgstr ""
21070
21071 # type: =head2
21072 #: ../fish/guestfish-actions.pod:1689
21073 msgid "inspect-get-distro"
21074 msgstr ""
21075
21076 # type: verbatim
21077 #: ../fish/guestfish-actions.pod:1691
21078 #, no-wrap
21079 msgid ""
21080 " inspect-get-distro root\n"
21081 "\n"
21082 msgstr ""
21083
21084 # type: =head2
21085 #: ../fish/guestfish-actions.pod:1763
21086 msgid "inspect-get-filesystems"
21087 msgstr ""
21088
21089 # type: verbatim
21090 #: ../fish/guestfish-actions.pod:1765
21091 #, no-wrap
21092 msgid ""
21093 " inspect-get-filesystems root\n"
21094 "\n"
21095 msgstr ""
21096
21097 # type: textblock
21098 #: ../fish/guestfish-actions.pod:1778
21099 msgid ""
21100 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
21101 "L</inspect-get-mountpoints>."
21102 msgstr ""
21103
21104 # type: =head2
21105 #: ../fish/guestfish-actions.pod:1781
21106 msgid "inspect-get-hostname"
21107 msgstr ""
21108
21109 # type: verbatim
21110 #: ../fish/guestfish-actions.pod:1783
21111 #, no-wrap
21112 msgid ""
21113 " inspect-get-hostname root\n"
21114 "\n"
21115 msgstr ""
21116
21117 # type: =head2
21118 #: ../fish/guestfish-actions.pod:1796
21119 msgid "inspect-get-major-version"
21120 msgstr ""
21121
21122 # type: verbatim
21123 #: ../fish/guestfish-actions.pod:1798
21124 #, no-wrap
21125 msgid ""
21126 " inspect-get-major-version root\n"
21127 "\n"
21128 msgstr ""
21129
21130 # type: =head2
21131 #: ../fish/guestfish-actions.pod:1817
21132 msgid "inspect-get-minor-version"
21133 msgstr ""
21134
21135 # type: verbatim
21136 #: ../fish/guestfish-actions.pod:1819
21137 #, no-wrap
21138 msgid ""
21139 " inspect-get-minor-version root\n"
21140 "\n"
21141 msgstr ""
21142
21143 # type: textblock
21144 #: ../fish/guestfish-actions.pod:1829
21145 msgid ""
21146 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
21147 "L</inspect-get-major-version>."
21148 msgstr ""
21149
21150 # type: =head2
21151 #: ../fish/guestfish-actions.pod:1832
21152 msgid "inspect-get-mountpoints"
21153 msgstr ""
21154
21155 # type: verbatim
21156 #: ../fish/guestfish-actions.pod:1834
21157 #, no-wrap
21158 msgid ""
21159 " inspect-get-mountpoints root\n"
21160 "\n"
21161 msgstr ""
21162
21163 # type: textblock
21164 #: ../fish/guestfish-actions.pod:1852
21165 msgid ""
21166 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
21167 "L</inspect-get-filesystems>."
21168 msgstr ""
21169
21170 # type: =head2
21171 #: ../fish/guestfish-actions.pod:1855
21172 msgid "inspect-get-package-format"
21173 msgstr ""
21174
21175 # type: verbatim
21176 #: ../fish/guestfish-actions.pod:1857
21177 #, no-wrap
21178 msgid ""
21179 " inspect-get-package-format root\n"
21180 "\n"
21181 msgstr ""
21182
21183 # type: textblock
21184 #: ../fish/guestfish-actions.pod:1862
21185 msgid ""
21186 "This function and L</inspect-get-package-management> return the package "
21187 "format and package management tool used by the inspected operating system.  "
21188 "For example for Fedora these functions would return C<rpm> (package format) "
21189 "and C<yum> (package management)."
21190 msgstr ""
21191
21192 # type: =head2
21193 #: ../fish/guestfish-actions.pod:1877
21194 msgid "inspect-get-package-management"
21195 msgstr ""
21196
21197 # type: verbatim
21198 #: ../fish/guestfish-actions.pod:1879
21199 #, no-wrap
21200 msgid ""
21201 " inspect-get-package-management root\n"
21202 "\n"
21203 msgstr ""
21204
21205 # type: textblock
21206 #: ../fish/guestfish-actions.pod:1884
21207 msgid ""
21208 "L</inspect-get-package-format> and this function return the package format "
21209 "and package management tool used by the inspected operating system.  For "
21210 "example for Fedora these functions would return C<rpm> (package format) and "
21211 "C<yum> (package management)."
21212 msgstr ""
21213
21214 # type: =head2
21215 #: ../fish/guestfish-actions.pod:1901
21216 msgid "inspect-get-product-name"
21217 msgstr ""
21218
21219 # type: verbatim
21220 #: ../fish/guestfish-actions.pod:1903
21221 #, no-wrap
21222 msgid ""
21223 " inspect-get-product-name root\n"
21224 "\n"
21225 msgstr ""
21226
21227 # type: =head2
21228 #: ../fish/guestfish-actions.pod:1918
21229 msgid "inspect-get-roots"
21230 msgstr ""
21231
21232 # type: verbatim
21233 #: ../fish/guestfish-actions.pod:1920
21234 #, no-wrap
21235 msgid ""
21236 " inspect-get-roots\n"
21237 "\n"
21238 msgstr ""
21239
21240 # type: textblock
21241 #: ../fish/guestfish-actions.pod:1922
21242 msgid ""
21243 "This function is a convenient way to get the list of root devices, as "
21244 "returned from a previous call to L</inspect-os>, but without redoing the "
21245 "whole inspection process."
21246 msgstr ""
21247
21248 # type: textblock
21249 #: ../fish/guestfish-actions.pod:1926
21250 msgid ""
21251 "This returns an empty list if either no root devices were found or the "
21252 "caller has not called L</inspect-os>."
21253 msgstr ""
21254
21255 # type: =head2
21256 #: ../fish/guestfish-actions.pod:1931
21257 msgid "inspect-get-type"
21258 msgstr ""
21259
21260 # type: verbatim
21261 #: ../fish/guestfish-actions.pod:1933
21262 #, no-wrap
21263 msgid ""
21264 " inspect-get-type root\n"
21265 "\n"
21266 msgstr ""
21267
21268 # type: =head2
21269 #: ../fish/guestfish-actions.pod:1966
21270 msgid "inspect-get-windows-systemroot"
21271 msgstr ""
21272
21273 # type: verbatim
21274 #: ../fish/guestfish-actions.pod:1968
21275 #, no-wrap
21276 msgid ""
21277 " inspect-get-windows-systemroot root\n"
21278 "\n"
21279 msgstr ""
21280
21281 # type: =head2
21282 #: ../fish/guestfish-actions.pod:1982
21283 msgid "inspect-list-applications"
21284 msgstr ""
21285
21286 # type: verbatim
21287 #: ../fish/guestfish-actions.pod:1984
21288 #, no-wrap
21289 msgid ""
21290 " inspect-list-applications root\n"
21291 "\n"
21292 msgstr ""
21293
21294 # type: textblock
21295 #: ../fish/guestfish-actions.pod:1991
21296 msgid ""
21297 "I<Note:> This call works differently from other parts of the inspection "
21298 "API.  You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
21299 "then mount up the disks, before calling this.  Listing applications is a "
21300 "significantly more difficult operation which requires access to the full "
21301 "filesystem.  Also note that unlike the other L</inspect-get-*> calls which "
21302 "are just returning data cached in the libguestfs handle, this call actually "
21303 "reads parts of the mounted filesystems during the call."
21304 msgstr ""
21305
21306 # type: =head2
21307 #: ../fish/guestfish-actions.pod:2081
21308 msgid "inspect-os"
21309 msgstr ""
21310
21311 # type: verbatim
21312 #: ../fish/guestfish-actions.pod:2083
21313 #, no-wrap
21314 msgid ""
21315 " inspect-os\n"
21316 "\n"
21317 msgstr ""
21318
21319 # type: textblock
21320 #: ../fish/guestfish-actions.pod:2098
21321 msgid ""
21322 "You can pass the root string(s) returned to other L</inspect-get-*> "
21323 "functions in order to query further information about each operating system, "
21324 "such as the name and version."
21325 msgstr ""
21326
21327 # type: textblock
21328 #: ../fish/guestfish-actions.pod:2103
21329 msgid ""
21330 "This function uses other libguestfs features such as L</mount-ro> and "
21331 "L</umount-all> in order to mount and unmount filesystems and look at the "
21332 "contents.  This should be called with no disks currently mounted.  The "
21333 "function may also use Augeas, so any existing Augeas handle will be closed."
21334 msgstr ""
21335
21336 # type: textblock
21337 #: ../fish/guestfish-actions.pod:2115 ../fish/guestfish-actions.pod:2291 ../fish/guestfish-actions.pod:2337
21338 msgid "See also L</list-filesystems>."
21339 msgstr ""
21340
21341 # type: =head2
21342 #: ../fish/guestfish-actions.pod:2117
21343 msgid "is-blockdev"
21344 msgstr ""
21345
21346 # type: verbatim
21347 #: ../fish/guestfish-actions.pod:2119
21348 #, no-wrap
21349 msgid ""
21350 " is-blockdev path\n"
21351 "\n"
21352 msgstr ""
21353
21354 # type: textblock
21355 #: ../fish/guestfish-actions.pod:2124 ../fish/guestfish-actions.pod:2142 ../fish/guestfish-actions.pod:2161 ../fish/guestfish-actions.pod:2170 ../fish/guestfish-actions.pod:2180 ../fish/guestfish-actions.pod:2214 ../fish/guestfish-actions.pod:2223
21356 msgid "See also L</stat>."
21357 msgstr ""
21358
21359 # type: =head2
21360 #: ../fish/guestfish-actions.pod:2126
21361 msgid "is-busy"
21362 msgstr ""
21363
21364 # type: verbatim
21365 #: ../fish/guestfish-actions.pod:2128
21366 #, no-wrap
21367 msgid ""
21368 " is-busy\n"
21369 "\n"
21370 msgstr ""
21371
21372 # type: =head2
21373 #: ../fish/guestfish-actions.pod:2135
21374 msgid "is-chardev"
21375 msgstr ""
21376
21377 # type: verbatim
21378 #: ../fish/guestfish-actions.pod:2137
21379 #, no-wrap
21380 msgid ""
21381 " is-chardev path\n"
21382 "\n"
21383 msgstr ""
21384
21385 # type: =head2
21386 #: ../fish/guestfish-actions.pod:2144
21387 msgid "is-config"
21388 msgstr ""
21389
21390 # type: verbatim
21391 #: ../fish/guestfish-actions.pod:2146
21392 #, no-wrap
21393 msgid ""
21394 " is-config\n"
21395 "\n"
21396 msgstr ""
21397
21398 # type: =head2
21399 #: ../fish/guestfish-actions.pod:2153
21400 msgid "is-dir"
21401 msgstr ""
21402
21403 # type: verbatim
21404 #: ../fish/guestfish-actions.pod:2155
21405 #, no-wrap
21406 msgid ""
21407 " is-dir path\n"
21408 "\n"
21409 msgstr ""
21410
21411 # type: =head2
21412 #: ../fish/guestfish-actions.pod:2163
21413 msgid "is-fifo"
21414 msgstr ""
21415
21416 # type: verbatim
21417 #: ../fish/guestfish-actions.pod:2165
21418 #, no-wrap
21419 msgid ""
21420 " is-fifo path\n"
21421 "\n"
21422 msgstr ""
21423
21424 # type: =head2
21425 #: ../fish/guestfish-actions.pod:2172
21426 msgid "is-file"
21427 msgstr ""
21428
21429 # type: verbatim
21430 #: ../fish/guestfish-actions.pod:2174
21431 #, no-wrap
21432 msgid ""
21433 " is-file path\n"
21434 "\n"
21435 msgstr ""
21436
21437 # type: =head2
21438 #: ../fish/guestfish-actions.pod:2182
21439 msgid "is-launching"
21440 msgstr ""
21441
21442 # type: verbatim
21443 #: ../fish/guestfish-actions.pod:2184
21444 #, no-wrap
21445 msgid ""
21446 " is-launching\n"
21447 "\n"
21448 msgstr ""
21449
21450 # type: =head2
21451 #: ../fish/guestfish-actions.pod:2191
21452 msgid "is-lv"
21453 msgstr ""
21454
21455 # type: verbatim
21456 #: ../fish/guestfish-actions.pod:2193
21457 #, no-wrap
21458 msgid ""
21459 " is-lv device\n"
21460 "\n"
21461 msgstr ""
21462
21463 # type: =head2
21464 #: ../fish/guestfish-actions.pod:2198
21465 msgid "is-ready"
21466 msgstr ""
21467
21468 # type: verbatim
21469 #: ../fish/guestfish-actions.pod:2200
21470 #, no-wrap
21471 msgid ""
21472 " is-ready\n"
21473 "\n"
21474 msgstr ""
21475
21476 # type: =head2
21477 #: ../fish/guestfish-actions.pod:2207
21478 msgid "is-socket"
21479 msgstr ""
21480
21481 # type: verbatim
21482 #: ../fish/guestfish-actions.pod:2209
21483 #, no-wrap
21484 msgid ""
21485 " is-socket path\n"
21486 "\n"
21487 msgstr ""
21488
21489 # type: =head2
21490 #: ../fish/guestfish-actions.pod:2216
21491 msgid "is-symlink"
21492 msgstr ""
21493
21494 # type: verbatim
21495 #: ../fish/guestfish-actions.pod:2218
21496 #, no-wrap
21497 msgid ""
21498 " is-symlink path\n"
21499 "\n"
21500 msgstr ""
21501
21502 # type: =head2
21503 #: ../fish/guestfish-actions.pod:2225
21504 msgid "kill-subprocess"
21505 msgstr ""
21506
21507 # type: verbatim
21508 #: ../fish/guestfish-actions.pod:2227
21509 #, no-wrap
21510 msgid ""
21511 " kill-subprocess\n"
21512 "\n"
21513 msgstr ""
21514
21515 # type: =head2
21516 #: ../fish/guestfish-actions.pod:2231
21517 msgid "launch"
21518 msgstr ""
21519
21520 # type: =head2
21521 #: ../fish/guestfish-actions.pod:2233
21522 msgid "run"
21523 msgstr ""
21524
21525 # type: verbatim
21526 #: ../fish/guestfish-actions.pod:2235
21527 #, no-wrap
21528 msgid ""
21529 " launch\n"
21530 "\n"
21531 msgstr ""
21532
21533 # type: =head2
21534 #: ../fish/guestfish-actions.pod:2243
21535 msgid "lchown"
21536 msgstr ""
21537
21538 # type: verbatim
21539 #: ../fish/guestfish-actions.pod:2245
21540 #, no-wrap
21541 msgid ""
21542 " lchown owner group path\n"
21543 "\n"
21544 msgstr ""
21545
21546 # type: textblock
21547 #: ../fish/guestfish-actions.pod:2247
21548 msgid ""
21549 "Change the file owner to C<owner> and group to C<group>.  This is like "
21550 "L</chown> but if C<path> is a symlink then the link itself is changed, not "
21551 "the target."
21552 msgstr ""
21553
21554 # type: =head2
21555 #: ../fish/guestfish-actions.pod:2255
21556 msgid "lgetxattr"
21557 msgstr ""
21558
21559 # type: verbatim
21560 #: ../fish/guestfish-actions.pod:2257
21561 #, no-wrap
21562 msgid ""
21563 " lgetxattr path name\n"
21564 "\n"
21565 msgstr ""
21566
21567 # type: textblock
21568 #: ../fish/guestfish-actions.pod:2273
21569 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
21570 msgstr ""
21571
21572 # type: =head2
21573 #: ../fish/guestfish-actions.pod:2275
21574 msgid "lgetxattrs"
21575 msgstr ""
21576
21577 # type: verbatim
21578 #: ../fish/guestfish-actions.pod:2277
21579 #, no-wrap
21580 msgid ""
21581 " lgetxattrs path\n"
21582 "\n"
21583 msgstr ""
21584
21585 # type: textblock
21586 #: ../fish/guestfish-actions.pod:2279
21587 msgid ""
21588 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
21589 "it returns the extended attributes of the link itself."
21590 msgstr ""
21591
21592 # type: =head2
21593 #: ../fish/guestfish-actions.pod:2283
21594 msgid "list-devices"
21595 msgstr ""
21596
21597 # type: verbatim
21598 #: ../fish/guestfish-actions.pod:2285
21599 #, no-wrap
21600 msgid ""
21601 " list-devices\n"
21602 "\n"
21603 msgstr ""
21604
21605 # type: =head2
21606 #: ../fish/guestfish-actions.pod:2293
21607 msgid "list-filesystems"
21608 msgstr ""
21609
21610 # type: verbatim
21611 #: ../fish/guestfish-actions.pod:2295
21612 #, no-wrap
21613 msgid ""
21614 " list-filesystems\n"
21615 "\n"
21616 msgstr ""
21617
21618 # type: textblock
21619 #: ../fish/guestfish-actions.pod:2314
21620 msgid ""
21621 "This command runs other libguestfs commands, which might include L</mount> "
21622 "and L</umount>, and therefore you should use this soon after launch and only "
21623 "when nothing is mounted."
21624 msgstr ""
21625
21626 # type: textblock
21627 #: ../fish/guestfish-actions.pod:2318
21628 msgid ""
21629 "Not all of the filesystems returned will be mountable.  In particular, swap "
21630 "partitions are returned in the list.  Also this command does not check that "
21631 "each filesystem found is valid and mountable, and some filesystems might be "
21632 "mountable but require special options.  Filesystems may not all belong to a "
21633 "single logical operating system (use L</inspect-os> to look for OSes)."
21634 msgstr ""
21635
21636 # type: =head2
21637 #: ../fish/guestfish-actions.pod:2326
21638 msgid "list-partitions"
21639 msgstr ""
21640
21641 # type: verbatim
21642 #: ../fish/guestfish-actions.pod:2328
21643 #, no-wrap
21644 msgid ""
21645 " list-partitions\n"
21646 "\n"
21647 msgstr ""
21648
21649 # type: textblock
21650 #: ../fish/guestfish-actions.pod:2334
21651 msgid ""
21652 "This does not return logical volumes.  For that you will need to call "
21653 "L</lvs>."
21654 msgstr ""
21655
21656 # type: =head2
21657 #: ../fish/guestfish-actions.pod:2339
21658 msgid "ll"
21659 msgstr ""
21660
21661 # type: verbatim
21662 #: ../fish/guestfish-actions.pod:2341
21663 #, no-wrap
21664 msgid ""
21665 " ll directory\n"
21666 "\n"
21667 msgstr ""
21668
21669 # type: =head2
21670 #: ../fish/guestfish-actions.pod:2349
21671 msgid "ln"
21672 msgstr ""
21673
21674 # type: verbatim
21675 #: ../fish/guestfish-actions.pod:2351
21676 #, no-wrap
21677 msgid ""
21678 " ln target linkname\n"
21679 "\n"
21680 msgstr ""
21681
21682 # type: =head2
21683 #: ../fish/guestfish-actions.pod:2355
21684 msgid "ln-f"
21685 msgstr ""
21686
21687 # type: verbatim
21688 #: ../fish/guestfish-actions.pod:2357
21689 #, no-wrap
21690 msgid ""
21691 " ln-f target linkname\n"
21692 "\n"
21693 msgstr ""
21694
21695 # type: =head2
21696 #: ../fish/guestfish-actions.pod:2362
21697 msgid "ln-s"
21698 msgstr ""
21699
21700 # type: verbatim
21701 #: ../fish/guestfish-actions.pod:2364
21702 #, no-wrap
21703 msgid ""
21704 " ln-s target linkname\n"
21705 "\n"
21706 msgstr ""
21707
21708 # type: =head2
21709 #: ../fish/guestfish-actions.pod:2368
21710 msgid "ln-sf"
21711 msgstr ""
21712
21713 # type: verbatim
21714 #: ../fish/guestfish-actions.pod:2370
21715 #, no-wrap
21716 msgid ""
21717 " ln-sf target linkname\n"
21718 "\n"
21719 msgstr ""
21720
21721 # type: =head2
21722 #: ../fish/guestfish-actions.pod:2375
21723 msgid "lremovexattr"
21724 msgstr ""
21725
21726 # type: verbatim
21727 #: ../fish/guestfish-actions.pod:2377
21728 #, no-wrap
21729 msgid ""
21730 " lremovexattr xattr path\n"
21731 "\n"
21732 msgstr ""
21733
21734 # type: textblock
21735 #: ../fish/guestfish-actions.pod:2379
21736 msgid ""
21737 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
21738 "it removes an extended attribute of the link itself."
21739 msgstr ""
21740
21741 # type: =head2
21742 #: ../fish/guestfish-actions.pod:2383
21743 msgid "ls"
21744 msgstr ""
21745
21746 # type: verbatim
21747 #: ../fish/guestfish-actions.pod:2385
21748 #, no-wrap
21749 msgid ""
21750 " ls directory\n"
21751 "\n"
21752 msgstr ""
21753
21754 # type: textblock
21755 #: ../fish/guestfish-actions.pod:2391
21756 msgid ""
21757 "This command is mostly useful for interactive sessions.  Programs should "
21758 "probably use L</readdir> instead."
21759 msgstr ""
21760
21761 # type: =head2
21762 #: ../fish/guestfish-actions.pod:2394
21763 msgid "lsetxattr"
21764 msgstr ""
21765
21766 # type: verbatim
21767 #: ../fish/guestfish-actions.pod:2396
21768 #, no-wrap
21769 msgid ""
21770 " lsetxattr xattr val vallen path\n"
21771 "\n"
21772 msgstr ""
21773
21774 # type: textblock
21775 #: ../fish/guestfish-actions.pod:2398
21776 msgid ""
21777 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
21778 "sets an extended attribute of the link itself."
21779 msgstr ""
21780
21781 # type: =head2
21782 #: ../fish/guestfish-actions.pod:2402
21783 msgid "lstat"
21784 msgstr ""
21785
21786 # type: verbatim
21787 #: ../fish/guestfish-actions.pod:2404
21788 #, no-wrap
21789 msgid ""
21790 " lstat path\n"
21791 "\n"
21792 msgstr ""
21793
21794 # type: textblock
21795 #: ../fish/guestfish-actions.pod:2408
21796 msgid ""
21797 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
21798 "the link is stat-ed, not the file it refers to."
21799 msgstr ""
21800
21801 # type: =head2
21802 #: ../fish/guestfish-actions.pod:2414
21803 msgid "lstatlist"
21804 msgstr ""
21805
21806 # type: verbatim
21807 #: ../fish/guestfish-actions.pod:2416
21808 #, no-wrap
21809 msgid ""
21810 " lstatlist path 'names ...'\n"
21811 "\n"
21812 msgstr ""
21813
21814 # type: textblock
21815 #: ../fish/guestfish-actions.pod:2418
21816 msgid ""
21817 "This call allows you to perform the L</lstat> operation on multiple files, "
21818 "where all files are in the directory C<path>.  C<names> is the list of files "
21819 "from this directory."
21820 msgstr ""
21821
21822 # type: textblock
21823 #: ../fish/guestfish-actions.pod:2427
21824 msgid ""
21825 "This call is intended for programs that want to efficiently list a directory "
21826 "contents without making many round-trips.  See also L</lxattrlist> for a "
21827 "similarly efficient call for getting extended attributes.  Very long "
21828 "directory listings might cause the protocol message size to be exceeded, "
21829 "causing this call to fail.  The caller must split up such requests into "
21830 "smaller groups of names."
21831 msgstr ""
21832
21833 # type: =head2
21834 #: ../fish/guestfish-actions.pod:2435
21835 msgid "luks-add-key"
21836 msgstr ""
21837
21838 # type: verbatim
21839 #: ../fish/guestfish-actions.pod:2437
21840 #, no-wrap
21841 msgid ""
21842 " luks-add-key device keyslot\n"
21843 "\n"
21844 msgstr ""
21845
21846 # type: textblock
21847 #: ../fish/guestfish-actions.pod:2444
21848 msgid ""
21849 "Note that if C<keyslot> already contains a key, then this command will "
21850 "fail.  You have to use L</luks-kill-slot> first to remove that key."
21851 msgstr ""
21852
21853 # type: textblock
21854 #: ../fish/guestfish-actions.pod:2448 ../fish/guestfish-actions.pod:2470 ../fish/guestfish-actions.pod:2483 ../fish/guestfish-actions.pod:2497 ../fish/guestfish-actions.pod:2520 ../fish/guestfish-actions.pod:2530
21855 msgid ""
21856 "This command has one or more key or passphrase parameters.  Guestfish will "
21857 "prompt for these separately."
21858 msgstr ""
21859
21860 # type: =head2
21861 #: ../fish/guestfish-actions.pod:2451
21862 msgid "luks-close"
21863 msgstr ""
21864
21865 # type: verbatim
21866 #: ../fish/guestfish-actions.pod:2453
21867 #, no-wrap
21868 msgid ""
21869 " luks-close device\n"
21870 "\n"
21871 msgstr ""
21872
21873 # type: textblock
21874 #: ../fish/guestfish-actions.pod:2455
21875 msgid ""
21876 "This closes a LUKS device that was created earlier by L</luks-open> or "
21877 "L</luks-open-ro>.  The C<device> parameter must be the name of the LUKS "
21878 "mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
21879 "underlying block device."
21880 msgstr ""
21881
21882 # type: =head2
21883 #: ../fish/guestfish-actions.pod:2461
21884 msgid "luks-format"
21885 msgstr ""
21886
21887 # type: verbatim
21888 #: ../fish/guestfish-actions.pod:2463
21889 #, no-wrap
21890 msgid ""
21891 " luks-format device keyslot\n"
21892 "\n"
21893 msgstr ""
21894
21895 # type: =head2
21896 #: ../fish/guestfish-actions.pod:2476
21897 msgid "luks-format-cipher"
21898 msgstr ""
21899
21900 # type: verbatim
21901 #: ../fish/guestfish-actions.pod:2478
21902 #, no-wrap
21903 msgid ""
21904 " luks-format-cipher device keyslot cipher\n"
21905 "\n"
21906 msgstr ""
21907
21908 # type: textblock
21909 #: ../fish/guestfish-actions.pod:2480
21910 msgid ""
21911 "This command is the same as L</luks-format> but it also allows you to set "
21912 "the C<cipher> used."
21913 msgstr ""
21914
21915 # type: =head2
21916 #: ../fish/guestfish-actions.pod:2489
21917 msgid "luks-kill-slot"
21918 msgstr ""
21919
21920 # type: verbatim
21921 #: ../fish/guestfish-actions.pod:2491
21922 #, no-wrap
21923 msgid ""
21924 " luks-kill-slot device keyslot\n"
21925 "\n"
21926 msgstr ""
21927
21928 # type: =head2
21929 #: ../fish/guestfish-actions.pod:2500
21930 msgid "luks-open"
21931 msgstr ""
21932
21933 # type: verbatim
21934 #: ../fish/guestfish-actions.pod:2502
21935 #, no-wrap
21936 msgid ""
21937 " luks-open device mapname\n"
21938 "\n"
21939 msgstr ""
21940
21941 # type: textblock
21942 #: ../fish/guestfish-actions.pod:2516
21943 msgid ""
21944 "If this block device contains LVM volume groups, then calling L</vgscan> "
21945 "followed by L</vg-activate-all> will make them visible."
21946 msgstr ""
21947
21948 # type: =head2
21949 #: ../fish/guestfish-actions.pod:2523
21950 msgid "luks-open-ro"
21951 msgstr ""
21952
21953 # type: verbatim
21954 #: ../fish/guestfish-actions.pod:2525
21955 #, no-wrap
21956 msgid ""
21957 " luks-open-ro device mapname\n"
21958 "\n"
21959 msgstr ""
21960
21961 # type: textblock
21962 #: ../fish/guestfish-actions.pod:2527
21963 msgid ""
21964 "This is the same as L</luks-open> except that a read-only mapping is "
21965 "created."
21966 msgstr ""
21967
21968 # type: =head2
21969 #: ../fish/guestfish-actions.pod:2533
21970 msgid "lvcreate"
21971 msgstr ""
21972
21973 # type: verbatim
21974 #: ../fish/guestfish-actions.pod:2535
21975 #, no-wrap
21976 msgid ""
21977 " lvcreate logvol volgroup mbytes\n"
21978 "\n"
21979 msgstr ""
21980
21981 # type: =head2
21982 #: ../fish/guestfish-actions.pod:2540
21983 msgid "lvm-canonical-lv-name"
21984 msgstr ""
21985
21986 # type: verbatim
21987 #: ../fish/guestfish-actions.pod:2542
21988 #, no-wrap
21989 msgid ""
21990 " lvm-canonical-lv-name lvname\n"
21991 "\n"
21992 msgstr ""
21993
21994 # type: textblock
21995 #: ../fish/guestfish-actions.pod:2551
21996 msgid "See also L</is-lv>."
21997 msgstr ""
21998
21999 # type: =head2
22000 #: ../fish/guestfish-actions.pod:2553
22001 msgid "lvm-clear-filter"
22002 msgstr ""
22003
22004 # type: verbatim
22005 #: ../fish/guestfish-actions.pod:2555
22006 #, no-wrap
22007 msgid ""
22008 " lvm-clear-filter\n"
22009 "\n"
22010 msgstr ""
22011
22012 # type: textblock
22013 #: ../fish/guestfish-actions.pod:2557
22014 msgid ""
22015 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
22016 "block device."
22017 msgstr ""
22018
22019 # type: =head2
22020 #: ../fish/guestfish-actions.pod:2563
22021 msgid "lvm-remove-all"
22022 msgstr ""
22023
22024 # type: verbatim
22025 #: ../fish/guestfish-actions.pod:2565
22026 #, no-wrap
22027 msgid ""
22028 " lvm-remove-all\n"
22029 "\n"
22030 msgstr ""
22031
22032 # type: =head2
22033 #: ../fish/guestfish-actions.pod:2573
22034 msgid "lvm-set-filter"
22035 msgstr ""
22036
22037 # type: verbatim
22038 #: ../fish/guestfish-actions.pod:2575
22039 #, no-wrap
22040 msgid ""
22041 " lvm-set-filter 'devices ...'\n"
22042 "\n"
22043 msgstr ""
22044
22045 # type: =head2
22046 #: ../fish/guestfish-actions.pod:2600
22047 msgid "lvremove"
22048 msgstr ""
22049
22050 # type: verbatim
22051 #: ../fish/guestfish-actions.pod:2602
22052 #, no-wrap
22053 msgid ""
22054 " lvremove device\n"
22055 "\n"
22056 msgstr ""
22057
22058 # type: =head2
22059 #: ../fish/guestfish-actions.pod:2610
22060 msgid "lvrename"
22061 msgstr ""
22062
22063 # type: verbatim
22064 #: ../fish/guestfish-actions.pod:2612
22065 #, no-wrap
22066 msgid ""
22067 " lvrename logvol newlogvol\n"
22068 "\n"
22069 msgstr ""
22070
22071 # type: =head2
22072 #: ../fish/guestfish-actions.pod:2616
22073 msgid "lvresize"
22074 msgstr ""
22075
22076 # type: verbatim
22077 #: ../fish/guestfish-actions.pod:2618
22078 #, no-wrap
22079 msgid ""
22080 " lvresize device mbytes\n"
22081 "\n"
22082 msgstr ""
22083
22084 # type: =head2
22085 #: ../fish/guestfish-actions.pod:2624
22086 msgid "lvresize-free"
22087 msgstr ""
22088
22089 # type: verbatim
22090 #: ../fish/guestfish-actions.pod:2626
22091 #, no-wrap
22092 msgid ""
22093 " lvresize-free lv percent\n"
22094 "\n"
22095 msgstr ""
22096
22097 # type: =head2
22098 #: ../fish/guestfish-actions.pod:2634
22099 msgid "lvs"
22100 msgstr ""
22101
22102 # type: verbatim
22103 #: ../fish/guestfish-actions.pod:2636
22104 #, no-wrap
22105 msgid ""
22106 " lvs\n"
22107 "\n"
22108 msgstr ""
22109
22110 # type: textblock
22111 #: ../fish/guestfish-actions.pod:2644
22112 msgid "See also L</lvs-full>, L</list-filesystems>."
22113 msgstr ""
22114
22115 # type: =head2
22116 #: ../fish/guestfish-actions.pod:2646
22117 msgid "lvs-full"
22118 msgstr ""
22119
22120 # type: verbatim
22121 #: ../fish/guestfish-actions.pod:2648
22122 #, no-wrap
22123 msgid ""
22124 " lvs-full\n"
22125 "\n"
22126 msgstr ""
22127
22128 # type: =head2
22129 #: ../fish/guestfish-actions.pod:2653
22130 msgid "lvuuid"
22131 msgstr ""
22132
22133 # type: verbatim
22134 #: ../fish/guestfish-actions.pod:2655
22135 #, no-wrap
22136 msgid ""
22137 " lvuuid device\n"
22138 "\n"
22139 msgstr ""
22140
22141 # type: =head2
22142 #: ../fish/guestfish-actions.pod:2659
22143 msgid "lxattrlist"
22144 msgstr ""
22145
22146 # type: verbatim
22147 #: ../fish/guestfish-actions.pod:2661
22148 #, no-wrap
22149 msgid ""
22150 " lxattrlist path 'names ...'\n"
22151 "\n"
22152 msgstr ""
22153
22154 # type: textblock
22155 #: ../fish/guestfish-actions.pod:2677
22156 msgid ""
22157 "This call is intended for programs that want to efficiently list a directory "
22158 "contents without making many round-trips.  See also L</lstatlist> for a "
22159 "similarly efficient call for getting standard stats.  Very long directory "
22160 "listings might cause the protocol message size to be exceeded, causing this "
22161 "call to fail.  The caller must split up such requests into smaller groups of "
22162 "names."
22163 msgstr ""
22164
22165 # type: =head2
22166 #: ../fish/guestfish-actions.pod:2685
22167 msgid "mkdir"
22168 msgstr ""
22169
22170 # type: verbatim
22171 #: ../fish/guestfish-actions.pod:2687
22172 #, no-wrap
22173 msgid ""
22174 " mkdir path\n"
22175 "\n"
22176 msgstr ""
22177
22178 # type: =head2
22179 #: ../fish/guestfish-actions.pod:2691
22180 msgid "mkdir-mode"
22181 msgstr ""
22182
22183 # type: verbatim
22184 #: ../fish/guestfish-actions.pod:2693
22185 #, no-wrap
22186 msgid ""
22187 " mkdir-mode path mode\n"
22188 "\n"
22189 msgstr ""
22190
22191 # type: textblock
22192 #: ../fish/guestfish-actions.pod:2702
22193 msgid "See also L</mkdir>, L</umask>"
22194 msgstr ""
22195
22196 # type: =head2
22197 #: ../fish/guestfish-actions.pod:2704
22198 msgid "mkdir-p"
22199 msgstr ""
22200
22201 # type: verbatim
22202 #: ../fish/guestfish-actions.pod:2706
22203 #, no-wrap
22204 msgid ""
22205 " mkdir-p path\n"
22206 "\n"
22207 msgstr ""
22208
22209 # type: =head2
22210 #: ../fish/guestfish-actions.pod:2711
22211 msgid "mkdtemp"
22212 msgstr ""
22213
22214 # type: verbatim
22215 #: ../fish/guestfish-actions.pod:2713
22216 #, no-wrap
22217 msgid ""
22218 " mkdtemp template\n"
22219 "\n"
22220 msgstr ""
22221
22222 # type: =head2
22223 #: ../fish/guestfish-actions.pod:2734
22224 msgid "mke2fs-J"
22225 msgstr ""
22226
22227 # type: verbatim
22228 #: ../fish/guestfish-actions.pod:2736
22229 #, no-wrap
22230 msgid ""
22231 " mke2fs-J fstype blocksize device journal\n"
22232 "\n"
22233 msgstr ""
22234
22235 # type: textblock
22236 #: ../fish/guestfish-actions.pod:2744
22237 msgid "See also L</mke2journal>."
22238 msgstr ""
22239
22240 # type: =head2
22241 #: ../fish/guestfish-actions.pod:2746
22242 msgid "mke2fs-JL"
22243 msgstr ""
22244
22245 # type: verbatim
22246 #: ../fish/guestfish-actions.pod:2748
22247 #, no-wrap
22248 msgid ""
22249 " mke2fs-JL fstype blocksize device label\n"
22250 "\n"
22251 msgstr ""
22252
22253 # type: textblock
22254 #: ../fish/guestfish-actions.pod:2753
22255 msgid "See also L</mke2journal-L>."
22256 msgstr ""
22257
22258 # type: =head2
22259 #: ../fish/guestfish-actions.pod:2755
22260 msgid "mke2fs-JU"
22261 msgstr ""
22262
22263 # type: verbatim
22264 #: ../fish/guestfish-actions.pod:2757
22265 #, no-wrap
22266 msgid ""
22267 " mke2fs-JU fstype blocksize device uuid\n"
22268 "\n"
22269 msgstr ""
22270
22271 # type: textblock
22272 #: ../fish/guestfish-actions.pod:2762
22273 msgid "See also L</mke2journal-U>."
22274 msgstr ""
22275
22276 # type: =head2
22277 #: ../fish/guestfish-actions.pod:2764
22278 msgid "mke2journal"
22279 msgstr ""
22280
22281 # type: verbatim
22282 #: ../fish/guestfish-actions.pod:2766
22283 #, no-wrap
22284 msgid ""
22285 " mke2journal blocksize device\n"
22286 "\n"
22287 msgstr ""
22288
22289 # type: =head2
22290 #: ../fish/guestfish-actions.pod:2773
22291 msgid "mke2journal-L"
22292 msgstr ""
22293
22294 # type: verbatim
22295 #: ../fish/guestfish-actions.pod:2775
22296 #, no-wrap
22297 msgid ""
22298 " mke2journal-L blocksize label device\n"
22299 "\n"
22300 msgstr ""
22301
22302 # type: =head2
22303 #: ../fish/guestfish-actions.pod:2779
22304 msgid "mke2journal-U"
22305 msgstr ""
22306
22307 # type: verbatim
22308 #: ../fish/guestfish-actions.pod:2781
22309 #, no-wrap
22310 msgid ""
22311 " mke2journal-U blocksize uuid device\n"
22312 "\n"
22313 msgstr ""
22314
22315 # type: =head2
22316 #: ../fish/guestfish-actions.pod:2785
22317 msgid "mkfifo"
22318 msgstr ""
22319
22320 # type: verbatim
22321 #: ../fish/guestfish-actions.pod:2787
22322 #, no-wrap
22323 msgid ""
22324 " mkfifo mode path\n"
22325 "\n"
22326 msgstr ""
22327
22328 # type: textblock
22329 #: ../fish/guestfish-actions.pod:2789
22330 msgid ""
22331 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
22332 "is just a convenient wrapper around L</mknod>."
22333 msgstr ""
22334
22335 # type: =head2
22336 #: ../fish/guestfish-actions.pod:2795
22337 msgid "mkfs"
22338 msgstr ""
22339
22340 # type: verbatim
22341 #: ../fish/guestfish-actions.pod:2797
22342 #, no-wrap
22343 msgid ""
22344 " mkfs fstype device\n"
22345 "\n"
22346 msgstr ""
22347
22348 # type: =head2
22349 #: ../fish/guestfish-actions.pod:2803
22350 msgid "mkfs-b"
22351 msgstr ""
22352
22353 # type: verbatim
22354 #: ../fish/guestfish-actions.pod:2805
22355 #, no-wrap
22356 msgid ""
22357 " mkfs-b fstype blocksize device\n"
22358 "\n"
22359 msgstr ""
22360
22361 # type: textblock
22362 #: ../fish/guestfish-actions.pod:2807
22363 msgid ""
22364 "This call is similar to L</mkfs>, but it allows you to control the block "
22365 "size of the resulting filesystem.  Supported block sizes depend on the "
22366 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
22367 msgstr ""
22368
22369 # type: =head2
22370 #: ../fish/guestfish-actions.pod:2822
22371 msgid "mkfs-opts"
22372 msgstr ""
22373
22374 # type: verbatim
22375 #: ../fish/guestfish-actions.pod:2824
22376 #, no-wrap
22377 msgid ""
22378 " mkfs-opts fstype device [blocksize:..]\n"
22379 "\n"
22380 msgstr ""
22381
22382 # type: =head2
22383 #: ../fish/guestfish-actions.pod:2846
22384 msgid "mkmountpoint"
22385 msgstr ""
22386
22387 # type: verbatim
22388 #: ../fish/guestfish-actions.pod:2848
22389 #, no-wrap
22390 msgid ""
22391 " mkmountpoint exemptpath\n"
22392 "\n"
22393 msgstr ""
22394
22395 # type: textblock
22396 #: ../fish/guestfish-actions.pod:2850
22397 msgid ""
22398 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
22399 "to create extra mountpoints before mounting the first filesystem."
22400 msgstr ""
22401
22402 # type: textblock
22403 #: ../fish/guestfish-actions.pod:2874
22404 msgid ""
22405 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
22406 "unexpected errors if you try to mix these calls.  It is safest to manually "
22407 "unmount filesystems and remove mountpoints after use."
22408 msgstr ""
22409
22410 # type: textblock
22411 #: ../fish/guestfish-actions.pod:2878
22412 msgid ""
22413 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
22414 "for this to work for manual mountpoints, you must ensure that the innermost "
22415 "mountpoints have the longest pathnames, as in the example code above."
22416 msgstr ""
22417
22418 # type: textblock
22419 #: ../fish/guestfish-actions.pod:2885
22420 msgid ""
22421 "Autosync [see L</set-autosync>, this is set by default on handles] means "
22422 "that L</umount-all> is called when the handle is closed which can also "
22423 "trigger these issues."
22424 msgstr ""
22425
22426 # type: =head2
22427 #: ../fish/guestfish-actions.pod:2889
22428 msgid "mknod"
22429 msgstr ""
22430
22431 # type: verbatim
22432 #: ../fish/guestfish-actions.pod:2891
22433 #, no-wrap
22434 msgid ""
22435 " mknod mode devmajor devminor path\n"
22436 "\n"
22437 msgstr ""
22438
22439 # type: textblock
22440 #: ../fish/guestfish-actions.pod:2901
22441 msgid ""
22442 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
22443 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
22444 "regular file).  These constants are available in the standard Linux header "
22445 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
22446 "wrappers around this command which bitwise OR in the appropriate constant "
22447 "for you."
22448 msgstr ""
22449
22450 # type: =head2
22451 #: ../fish/guestfish-actions.pod:2911
22452 msgid "mknod-b"
22453 msgstr ""
22454
22455 # type: verbatim
22456 #: ../fish/guestfish-actions.pod:2913
22457 #, no-wrap
22458 msgid ""
22459 " mknod-b mode devmajor devminor path\n"
22460 "\n"
22461 msgstr ""
22462
22463 # type: textblock
22464 #: ../fish/guestfish-actions.pod:2915
22465 msgid ""
22466 "This call creates a block device node called C<path> with mode C<mode> and "
22467 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
22468 "wrapper around L</mknod>."
22469 msgstr ""
22470
22471 # type: =head2
22472 #: ../fish/guestfish-actions.pod:2921
22473 msgid "mknod-c"
22474 msgstr ""
22475
22476 # type: verbatim
22477 #: ../fish/guestfish-actions.pod:2923
22478 #, no-wrap
22479 msgid ""
22480 " mknod-c mode devmajor devminor path\n"
22481 "\n"
22482 msgstr ""
22483
22484 # type: textblock
22485 #: ../fish/guestfish-actions.pod:2925
22486 msgid ""
22487 "This call creates a char device node called C<path> with mode C<mode> and "
22488 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
22489 "wrapper around L</mknod>."
22490 msgstr ""
22491
22492 # type: =head2
22493 #: ../fish/guestfish-actions.pod:2931
22494 msgid "mkswap"
22495 msgstr ""
22496
22497 # type: verbatim
22498 #: ../fish/guestfish-actions.pod:2933
22499 #, no-wrap
22500 msgid ""
22501 " mkswap device\n"
22502 "\n"
22503 msgstr ""
22504
22505 # type: =head2
22506 #: ../fish/guestfish-actions.pod:2937
22507 msgid "mkswap-L"
22508 msgstr ""
22509
22510 # type: verbatim
22511 #: ../fish/guestfish-actions.pod:2939
22512 #, no-wrap
22513 msgid ""
22514 " mkswap-L label device\n"
22515 "\n"
22516 msgstr ""
22517
22518 # type: =head2
22519 #: ../fish/guestfish-actions.pod:2947
22520 msgid "mkswap-U"
22521 msgstr ""
22522
22523 # type: verbatim
22524 #: ../fish/guestfish-actions.pod:2949
22525 #, no-wrap
22526 msgid ""
22527 " mkswap-U uuid device\n"
22528 "\n"
22529 msgstr ""
22530
22531 # type: =head2
22532 #: ../fish/guestfish-actions.pod:2953
22533 msgid "mkswap-file"
22534 msgstr ""
22535
22536 # type: verbatim
22537 #: ../fish/guestfish-actions.pod:2955
22538 #, no-wrap
22539 msgid ""
22540 " mkswap-file path\n"
22541 "\n"
22542 msgstr ""
22543
22544 # type: textblock
22545 #: ../fish/guestfish-actions.pod:2959
22546 msgid ""
22547 "This command just writes a swap file signature to an existing file.  To "
22548 "create the file itself, use something like L</fallocate>."
22549 msgstr ""
22550
22551 # type: =head2
22552 #: ../fish/guestfish-actions.pod:2962
22553 msgid "modprobe"
22554 msgstr ""
22555
22556 # type: verbatim
22557 #: ../fish/guestfish-actions.pod:2964
22558 #, no-wrap
22559 msgid ""
22560 " modprobe modulename\n"
22561 "\n"
22562 msgstr ""
22563
22564 # type: =head2
22565 #: ../fish/guestfish-actions.pod:2971
22566 msgid "mount"
22567 msgstr ""
22568
22569 # type: verbatim
22570 #: ../fish/guestfish-actions.pod:2973
22571 #, no-wrap
22572 msgid ""
22573 " mount device mountpoint\n"
22574 "\n"
22575 msgstr ""
22576
22577 # type: textblock
22578 #: ../fish/guestfish-actions.pod:2989
22579 msgid ""
22580 "B<Important note:> When you use this call, the filesystem options C<sync> "
22581 "and C<noatime> are set implicitly.  This was originally done because we "
22582 "thought it would improve reliability, but it turns out that I<-o sync> has a "
22583 "very large negative performance impact and negligible effect on "
22584 "reliability.  Therefore we recommend that you avoid using L</mount> in any "
22585 "code that needs performance, and instead use L</mount-options> (use an empty "
22586 "string for the first parameter if you don't want any options)."
22587 msgstr ""
22588
22589 # type: =head2
22590 #: ../fish/guestfish-actions.pod:2999
22591 msgid "mount-loop"
22592 msgstr ""
22593
22594 # type: verbatim
22595 #: ../fish/guestfish-actions.pod:3001
22596 #, no-wrap
22597 msgid ""
22598 " mount-loop file mountpoint\n"
22599 "\n"
22600 msgstr ""
22601
22602 # type: =head2
22603 #: ../fish/guestfish-actions.pod:3007
22604 msgid "mount-options"
22605 msgstr ""
22606
22607 # type: verbatim
22608 #: ../fish/guestfish-actions.pod:3009
22609 #, no-wrap
22610 msgid ""
22611 " mount-options options device mountpoint\n"
22612 "\n"
22613 msgstr ""
22614
22615 # type: textblock
22616 #: ../fish/guestfish-actions.pod:3011
22617 msgid ""
22618 "This is the same as the L</mount> command, but it allows you to set the "
22619 "mount options as for the L<mount(8)> I<-o> flag."
22620 msgstr ""
22621
22622 # type: =head2
22623 #: ../fish/guestfish-actions.pod:3019
22624 msgid "mount-ro"
22625 msgstr ""
22626
22627 # type: verbatim
22628 #: ../fish/guestfish-actions.pod:3021
22629 #, no-wrap
22630 msgid ""
22631 " mount-ro device mountpoint\n"
22632 "\n"
22633 msgstr ""
22634
22635 # type: textblock
22636 #: ../fish/guestfish-actions.pod:3023
22637 msgid ""
22638 "This is the same as the L</mount> command, but it mounts the filesystem with "
22639 "the read-only (I<-o ro>) flag."
22640 msgstr ""
22641
22642 # type: =head2
22643 #: ../fish/guestfish-actions.pod:3026
22644 msgid "mount-vfs"
22645 msgstr ""
22646
22647 # type: verbatim
22648 #: ../fish/guestfish-actions.pod:3028
22649 #, no-wrap
22650 msgid ""
22651 " mount-vfs options vfstype device mountpoint\n"
22652 "\n"
22653 msgstr ""
22654
22655 # type: textblock
22656 #: ../fish/guestfish-actions.pod:3030
22657 msgid ""
22658 "This is the same as the L</mount> command, but it allows you to set both the "
22659 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
22660 msgstr ""
22661
22662 # type: =head2
22663 #: ../fish/guestfish-actions.pod:3034
22664 msgid "mountpoints"
22665 msgstr ""
22666
22667 # type: verbatim
22668 #: ../fish/guestfish-actions.pod:3036
22669 #, no-wrap
22670 msgid ""
22671 " mountpoints\n"
22672 "\n"
22673 msgstr ""
22674
22675 # type: textblock
22676 #: ../fish/guestfish-actions.pod:3038
22677 msgid ""
22678 "This call is similar to L</mounts>.  That call returns a list of devices.  "
22679 "This one returns a hash table (map) of device name to directory where the "
22680 "device is mounted."
22681 msgstr ""
22682
22683 # type: =head2
22684 #: ../fish/guestfish-actions.pod:3042
22685 msgid "mounts"
22686 msgstr ""
22687
22688 # type: verbatim
22689 #: ../fish/guestfish-actions.pod:3044
22690 #, no-wrap
22691 msgid ""
22692 " mounts\n"
22693 "\n"
22694 msgstr ""
22695
22696 # type: textblock
22697 #: ../fish/guestfish-actions.pod:3051
22698 msgid "See also: L</mountpoints>"
22699 msgstr ""
22700
22701 # type: =head2
22702 #: ../fish/guestfish-actions.pod:3053
22703 msgid "mv"
22704 msgstr ""
22705
22706 # type: verbatim
22707 #: ../fish/guestfish-actions.pod:3055
22708 #, no-wrap
22709 msgid ""
22710 " mv src dest\n"
22711 "\n"
22712 msgstr ""
22713
22714 # type: =head2
22715 #: ../fish/guestfish-actions.pod:3060
22716 msgid "ntfs-3g-probe"
22717 msgstr ""
22718
22719 # type: verbatim
22720 #: ../fish/guestfish-actions.pod:3062
22721 #, no-wrap
22722 msgid ""
22723 " ntfs-3g-probe true|false device\n"
22724 "\n"
22725 msgstr ""
22726
22727 # type: =head2
22728 #: ../fish/guestfish-actions.pod:3076
22729 msgid "ntfsresize"
22730 msgstr ""
22731
22732 # type: verbatim
22733 #: ../fish/guestfish-actions.pod:3078
22734 #, no-wrap
22735 msgid ""
22736 " ntfsresize device\n"
22737 "\n"
22738 msgstr ""
22739
22740 # type: =head2
22741 #: ../fish/guestfish-actions.pod:3084
22742 msgid "ntfsresize-size"
22743 msgstr ""
22744
22745 # type: verbatim
22746 #: ../fish/guestfish-actions.pod:3086
22747 #, no-wrap
22748 msgid ""
22749 " ntfsresize-size device size\n"
22750 "\n"
22751 msgstr ""
22752
22753 # type: textblock
22754 #: ../fish/guestfish-actions.pod:3088
22755 msgid ""
22756 "This command is the same as L</ntfsresize> except that it allows you to "
22757 "specify the new size (in bytes) explicitly."
22758 msgstr ""
22759
22760 # type: =head2
22761 #: ../fish/guestfish-actions.pod:3091
22762 msgid "part-add"
22763 msgstr ""
22764
22765 # type: verbatim
22766 #: ../fish/guestfish-actions.pod:3093
22767 #, no-wrap
22768 msgid ""
22769 " part-add device prlogex startsect endsect\n"
22770 "\n"
22771 msgstr ""
22772
22773 # type: textblock
22774 #: ../fish/guestfish-actions.pod:3095
22775 msgid ""
22776 "This command adds a partition to C<device>.  If there is no partition table "
22777 "on the device, call L</part-init> first."
22778 msgstr ""
22779
22780 # type: textblock
22781 #: ../fish/guestfish-actions.pod:3107
22782 msgid ""
22783 "Creating a partition which covers the whole disk is not so easy.  Use "
22784 "L</part-disk> to do that."
22785 msgstr ""
22786
22787 # type: =head2
22788 #: ../fish/guestfish-actions.pod:3110
22789 msgid "part-del"
22790 msgstr ""
22791
22792 # type: verbatim
22793 #: ../fish/guestfish-actions.pod:3112
22794 #, no-wrap
22795 msgid ""
22796 " part-del device partnum\n"
22797 "\n"
22798 msgstr ""
22799
22800 # type: =head2
22801 #: ../fish/guestfish-actions.pod:3120
22802 msgid "part-disk"
22803 msgstr ""
22804
22805 # type: verbatim
22806 #: ../fish/guestfish-actions.pod:3122
22807 #, no-wrap
22808 msgid ""
22809 " part-disk device parttype\n"
22810 "\n"
22811 msgstr ""
22812
22813 # type: textblock
22814 #: ../fish/guestfish-actions.pod:3124
22815 msgid ""
22816 "This command is simply a combination of L</part-init> followed by "
22817 "L</part-add> to create a single primary partition covering the whole disk."
22818 msgstr ""
22819
22820 # type: textblock
22821 #: ../fish/guestfish-actions.pod:3128
22822 msgid ""
22823 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
22824 "possible values are described in L</part-init>."
22825 msgstr ""
22826
22827 # type: =head2
22828 #: ../fish/guestfish-actions.pod:3134
22829 msgid "part-get-bootable"
22830 msgstr ""
22831
22832 # type: verbatim
22833 #: ../fish/guestfish-actions.pod:3136
22834 #, no-wrap
22835 msgid ""
22836 " part-get-bootable device partnum\n"
22837 "\n"
22838 msgstr ""
22839
22840 # type: textblock
22841 #: ../fish/guestfish-actions.pod:3141
22842 msgid "See also L</part-set-bootable>."
22843 msgstr ""
22844
22845 # type: =head2
22846 #: ../fish/guestfish-actions.pod:3143
22847 msgid "part-get-mbr-id"
22848 msgstr ""
22849
22850 # type: verbatim
22851 #: ../fish/guestfish-actions.pod:3145
22852 #, no-wrap
22853 msgid ""
22854 " part-get-mbr-id device partnum\n"
22855 "\n"
22856 msgstr ""
22857
22858 # type: textblock
22859 #: ../fish/guestfish-actions.pod:3150 ../fish/guestfish-actions.pod:3288
22860 msgid ""
22861 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
22862 "undefined results for other partition table types (see "
22863 "L</part-get-parttype>)."
22864 msgstr ""
22865
22866 # type: =head2
22867 #: ../fish/guestfish-actions.pod:3154
22868 msgid "part-get-parttype"
22869 msgstr ""
22870
22871 # type: verbatim
22872 #: ../fish/guestfish-actions.pod:3156
22873 #, no-wrap
22874 msgid ""
22875 " part-get-parttype device\n"
22876 "\n"
22877 msgstr ""
22878
22879 # type: textblock
22880 #: ../fish/guestfish-actions.pod:3161
22881 msgid ""
22882 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
22883 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
22884 "possible, although unusual.  See L</part-init> for a full list."
22885 msgstr ""
22886
22887 # type: =head2
22888 #: ../fish/guestfish-actions.pod:3166
22889 msgid "part-init"
22890 msgstr ""
22891
22892 # type: verbatim
22893 #: ../fish/guestfish-actions.pod:3168
22894 #, no-wrap
22895 msgid ""
22896 " part-init device parttype\n"
22897 "\n"
22898 msgstr ""
22899
22900 # type: textblock
22901 #: ../fish/guestfish-actions.pod:3174
22902 msgid ""
22903 "Initially there are no partitions.  Following this, you should call "
22904 "L</part-add> for each partition required."
22905 msgstr ""
22906
22907 # type: =head2
22908 #: ../fish/guestfish-actions.pod:3237
22909 msgid "part-list"
22910 msgstr ""
22911
22912 # type: verbatim
22913 #: ../fish/guestfish-actions.pod:3239
22914 #, no-wrap
22915 msgid ""
22916 " part-list device\n"
22917 "\n"
22918 msgstr ""
22919
22920 # type: textblock
22921 #: ../fish/guestfish-actions.pod:3254
22922 msgid ""
22923 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
22924 "the device's sector size, see L</blockdev-getss>."
22925 msgstr ""
22926
22927 # type: =head2
22928 #: ../fish/guestfish-actions.pod:3267
22929 msgid "part-set-bootable"
22930 msgstr ""
22931
22932 # type: verbatim
22933 #: ../fish/guestfish-actions.pod:3269
22934 #, no-wrap
22935 msgid ""
22936 " part-set-bootable device partnum true|false\n"
22937 "\n"
22938 msgstr ""
22939
22940 # type: =head2
22941 #: ../fish/guestfish-actions.pod:3278
22942 msgid "part-set-mbr-id"
22943 msgstr ""
22944
22945 # type: verbatim
22946 #: ../fish/guestfish-actions.pod:3280
22947 #, no-wrap
22948 msgid ""
22949 " part-set-mbr-id device partnum idbyte\n"
22950 "\n"
22951 msgstr ""
22952
22953 # type: =head2
22954 #: ../fish/guestfish-actions.pod:3292
22955 msgid "part-set-name"
22956 msgstr ""
22957
22958 # type: verbatim
22959 #: ../fish/guestfish-actions.pod:3294
22960 #, no-wrap
22961 msgid ""
22962 " part-set-name device partnum name\n"
22963 "\n"
22964 msgstr ""
22965
22966 # type: =head2
22967 #: ../fish/guestfish-actions.pod:3302
22968 msgid "part-to-dev"
22969 msgstr ""
22970
22971 # type: verbatim
22972 #: ../fish/guestfish-actions.pod:3304
22973 #, no-wrap
22974 msgid ""
22975 " part-to-dev partition\n"
22976 "\n"
22977 msgstr ""
22978
22979 # type: textblock
22980 #: ../fish/guestfish-actions.pod:3310
22981 msgid ""
22982 "The named partition must exist, for example as a string returned from "
22983 "L</list-partitions>."
22984 msgstr ""
22985
22986 # type: =head2
22987 #: ../fish/guestfish-actions.pod:3313
22988 msgid "ping-daemon"
22989 msgstr ""
22990
22991 # type: verbatim
22992 #: ../fish/guestfish-actions.pod:3315
22993 #, no-wrap
22994 msgid ""
22995 " ping-daemon\n"
22996 "\n"
22997 msgstr ""
22998
22999 # type: =head2
23000 #: ../fish/guestfish-actions.pod:3322
23001 msgid "pread"
23002 msgstr ""
23003
23004 # type: verbatim
23005 #: ../fish/guestfish-actions.pod:3324
23006 #, no-wrap
23007 msgid ""
23008 " pread path count offset\n"
23009 "\n"
23010 msgstr ""
23011
23012 # type: textblock
23013 #: ../fish/guestfish-actions.pod:3332
23014 msgid "See also L</pwrite>, L</pread-device>."
23015 msgstr ""
23016
23017 # type: =head2
23018 #: ../fish/guestfish-actions.pod:3337
23019 msgid "pread-device"
23020 msgstr ""
23021
23022 # type: verbatim
23023 #: ../fish/guestfish-actions.pod:3339
23024 #, no-wrap
23025 msgid ""
23026 " pread-device device count offset\n"
23027 "\n"
23028 msgstr ""
23029
23030 # type: textblock
23031 #: ../fish/guestfish-actions.pod:3347
23032 msgid "See also L</pread>."
23033 msgstr ""
23034
23035 # type: =head2
23036 #: ../fish/guestfish-actions.pod:3352
23037 msgid "pvcreate"
23038 msgstr ""
23039
23040 # type: verbatim
23041 #: ../fish/guestfish-actions.pod:3354
23042 #, no-wrap
23043 msgid ""
23044 " pvcreate device\n"
23045 "\n"
23046 msgstr ""
23047
23048 # type: =head2
23049 #: ../fish/guestfish-actions.pod:3360
23050 msgid "pvremove"
23051 msgstr ""
23052
23053 # type: verbatim
23054 #: ../fish/guestfish-actions.pod:3362
23055 #, no-wrap
23056 msgid ""
23057 " pvremove device\n"
23058 "\n"
23059 msgstr ""
23060
23061 # type: =head2
23062 #: ../fish/guestfish-actions.pod:3371
23063 msgid "pvresize"
23064 msgstr ""
23065
23066 # type: verbatim
23067 #: ../fish/guestfish-actions.pod:3373
23068 #, no-wrap
23069 msgid ""
23070 " pvresize device\n"
23071 "\n"
23072 msgstr ""
23073
23074 # type: =head2
23075 #: ../fish/guestfish-actions.pod:3378
23076 msgid "pvresize-size"
23077 msgstr ""
23078
23079 # type: verbatim
23080 #: ../fish/guestfish-actions.pod:3380
23081 #, no-wrap
23082 msgid ""
23083 " pvresize-size device size\n"
23084 "\n"
23085 msgstr ""
23086
23087 # type: textblock
23088 #: ../fish/guestfish-actions.pod:3382
23089 msgid ""
23090 "This command is the same as L</pvresize> except that it allows you to "
23091 "specify the new size (in bytes) explicitly."
23092 msgstr ""
23093
23094 # type: =head2
23095 #: ../fish/guestfish-actions.pod:3385
23096 msgid "pvs"
23097 msgstr ""
23098
23099 # type: verbatim
23100 #: ../fish/guestfish-actions.pod:3387
23101 #, no-wrap
23102 msgid ""
23103 " pvs\n"
23104 "\n"
23105 msgstr ""
23106
23107 # type: textblock
23108 #: ../fish/guestfish-actions.pod:3395
23109 msgid "See also L</pvs-full>."
23110 msgstr ""
23111
23112 # type: =head2
23113 #: ../fish/guestfish-actions.pod:3397
23114 msgid "pvs-full"
23115 msgstr ""
23116
23117 # type: verbatim
23118 #: ../fish/guestfish-actions.pod:3399
23119 #, no-wrap
23120 msgid ""
23121 " pvs-full\n"
23122 "\n"
23123 msgstr ""
23124
23125 # type: =head2
23126 #: ../fish/guestfish-actions.pod:3404
23127 msgid "pvuuid"
23128 msgstr ""
23129
23130 # type: verbatim
23131 #: ../fish/guestfish-actions.pod:3406
23132 #, no-wrap
23133 msgid ""
23134 " pvuuid device\n"
23135 "\n"
23136 msgstr ""
23137
23138 # type: =head2
23139 #: ../fish/guestfish-actions.pod:3410
23140 msgid "pwrite"
23141 msgstr ""
23142
23143 # type: verbatim
23144 #: ../fish/guestfish-actions.pod:3412
23145 #, no-wrap
23146 msgid ""
23147 " pwrite path content offset\n"
23148 "\n"
23149 msgstr ""
23150
23151 # type: textblock
23152 #: ../fish/guestfish-actions.pod:3423
23153 msgid "See also L</pread>, L</pwrite-device>."
23154 msgstr ""
23155
23156 # type: =head2
23157 #: ../fish/guestfish-actions.pod:3428
23158 msgid "pwrite-device"
23159 msgstr ""
23160
23161 # type: verbatim
23162 #: ../fish/guestfish-actions.pod:3430
23163 #, no-wrap
23164 msgid ""
23165 " pwrite-device device content offset\n"
23166 "\n"
23167 msgstr ""
23168
23169 # type: textblock
23170 #: ../fish/guestfish-actions.pod:3440
23171 msgid "See also L</pwrite>."
23172 msgstr ""
23173
23174 # type: =head2
23175 #: ../fish/guestfish-actions.pod:3445
23176 msgid "read-file"
23177 msgstr ""
23178
23179 # type: verbatim
23180 #: ../fish/guestfish-actions.pod:3447
23181 #, no-wrap
23182 msgid ""
23183 " read-file path\n"
23184 "\n"
23185 msgstr ""
23186
23187 # type: textblock
23188 #: ../fish/guestfish-actions.pod:3452
23189 msgid ""
23190 "Unlike L</cat>, this function can correctly handle files that contain "
23191 "embedded ASCII NUL characters.  However unlike L</download>, this function "
23192 "is limited in the total size of file that can be handled."
23193 msgstr ""
23194
23195 # type: =head2
23196 #: ../fish/guestfish-actions.pod:3460
23197 msgid "read-lines"
23198 msgstr ""
23199
23200 # type: verbatim
23201 #: ../fish/guestfish-actions.pod:3462
23202 #, no-wrap
23203 msgid ""
23204 " read-lines path\n"
23205 "\n"
23206 msgstr ""
23207
23208 # type: textblock
23209 #: ../fish/guestfish-actions.pod:3469
23210 msgid ""
23211 "Note that this function cannot correctly handle binary files (specifically, "
23212 "files containing C<\\0> character which is treated as end of line).  For "
23213 "those you need to use the L</read-file> function which has a more complex "
23214 "interface."
23215 msgstr ""
23216
23217 # type: =head2
23218 #: ../fish/guestfish-actions.pod:3474
23219 msgid "readdir"
23220 msgstr ""
23221
23222 # type: verbatim
23223 #: ../fish/guestfish-actions.pod:3476
23224 #, no-wrap
23225 msgid ""
23226 " readdir dir\n"
23227 "\n"
23228 msgstr ""
23229
23230 # type: textblock
23231 #: ../fish/guestfish-actions.pod:3528
23232 msgid ""
23233 "This function is primarily intended for use by programs.  To get a simple "
23234 "list of names, use L</ls>.  To get a printable directory for human "
23235 "consumption, use L</ll>."
23236 msgstr ""
23237
23238 # type: =head2
23239 #: ../fish/guestfish-actions.pod:3532
23240 msgid "readlink"
23241 msgstr ""
23242
23243 # type: verbatim
23244 #: ../fish/guestfish-actions.pod:3534
23245 #, no-wrap
23246 msgid ""
23247 " readlink path\n"
23248 "\n"
23249 msgstr ""
23250
23251 # type: =head2
23252 #: ../fish/guestfish-actions.pod:3538
23253 msgid "readlinklist"
23254 msgstr ""
23255
23256 # type: verbatim
23257 #: ../fish/guestfish-actions.pod:3540
23258 #, no-wrap
23259 msgid ""
23260 " readlinklist path 'names ...'\n"
23261 "\n"
23262 msgstr ""
23263
23264 # type: =head2
23265 #: ../fish/guestfish-actions.pod:3564
23266 msgid "realpath"
23267 msgstr ""
23268
23269 # type: verbatim
23270 #: ../fish/guestfish-actions.pod:3566
23271 #, no-wrap
23272 msgid ""
23273 " realpath path\n"
23274 "\n"
23275 msgstr ""
23276
23277 # type: =head2
23278 #: ../fish/guestfish-actions.pod:3571
23279 msgid "removexattr"
23280 msgstr ""
23281
23282 # type: verbatim
23283 #: ../fish/guestfish-actions.pod:3573
23284 #, no-wrap
23285 msgid ""
23286 " removexattr xattr path\n"
23287 "\n"
23288 msgstr ""
23289
23290 # type: textblock
23291 #: ../fish/guestfish-actions.pod:3578
23292 msgid "See also: L</lremovexattr>, L<attr(5)>."
23293 msgstr ""
23294
23295 # type: =head2
23296 #: ../fish/guestfish-actions.pod:3580
23297 msgid "resize2fs"
23298 msgstr ""
23299
23300 # type: verbatim
23301 #: ../fish/guestfish-actions.pod:3582
23302 #, no-wrap
23303 msgid ""
23304 " resize2fs device\n"
23305 "\n"
23306 msgstr ""
23307
23308 # type: textblock
23309 #: ../fish/guestfish-actions.pod:3587
23310 msgid ""
23311 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
23312 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
23313 "gives an error about this and sometimes not.  In any case, it is always safe "
23314 "to call L</e2fsck-f> before calling this function."
23315 msgstr ""
23316
23317 # type: =head2
23318 #: ../fish/guestfish-actions.pod:3593
23319 msgid "resize2fs-size"
23320 msgstr ""
23321
23322 # type: verbatim
23323 #: ../fish/guestfish-actions.pod:3595
23324 #, no-wrap
23325 msgid ""
23326 " resize2fs-size device size\n"
23327 "\n"
23328 msgstr ""
23329
23330 # type: textblock
23331 #: ../fish/guestfish-actions.pod:3597
23332 msgid ""
23333 "This command is the same as L</resize2fs> except that it allows you to "
23334 "specify the new size (in bytes) explicitly."
23335 msgstr ""
23336
23337 # type: =head2
23338 #: ../fish/guestfish-actions.pod:3600
23339 msgid "rm"
23340 msgstr ""
23341
23342 # type: verbatim
23343 #: ../fish/guestfish-actions.pod:3602
23344 #, no-wrap
23345 msgid ""
23346 " rm path\n"
23347 "\n"
23348 msgstr ""
23349
23350 # type: =head2
23351 #: ../fish/guestfish-actions.pod:3606
23352 msgid "rm-rf"
23353 msgstr ""
23354
23355 # type: verbatim
23356 #: ../fish/guestfish-actions.pod:3608
23357 #, no-wrap
23358 msgid ""
23359 " rm-rf path\n"
23360 "\n"
23361 msgstr ""
23362
23363 # type: =head2
23364 #: ../fish/guestfish-actions.pod:3614
23365 msgid "rmdir"
23366 msgstr ""
23367
23368 # type: verbatim
23369 #: ../fish/guestfish-actions.pod:3616
23370 #, no-wrap
23371 msgid ""
23372 " rmdir path\n"
23373 "\n"
23374 msgstr ""
23375
23376 # type: =head2
23377 #: ../fish/guestfish-actions.pod:3620
23378 msgid "rmmountpoint"
23379 msgstr ""
23380
23381 # type: verbatim
23382 #: ../fish/guestfish-actions.pod:3622
23383 #, no-wrap
23384 msgid ""
23385 " rmmountpoint exemptpath\n"
23386 "\n"
23387 msgstr ""
23388
23389 # type: textblock
23390 #: ../fish/guestfish-actions.pod:3624
23391 msgid ""
23392 "This calls removes a mountpoint that was previously created with "
23393 "L</mkmountpoint>.  See L</mkmountpoint> for full details."
23394 msgstr ""
23395
23396 # type: =head2
23397 #: ../fish/guestfish-actions.pod:3628
23398 msgid "scrub-device"
23399 msgstr ""
23400
23401 # type: verbatim
23402 #: ../fish/guestfish-actions.pod:3630
23403 #, no-wrap
23404 msgid ""
23405 " scrub-device device\n"
23406 "\n"
23407 msgstr ""
23408
23409 # type: =head2
23410 #: ../fish/guestfish-actions.pod:3641
23411 msgid "scrub-file"
23412 msgstr ""
23413
23414 # type: verbatim
23415 #: ../fish/guestfish-actions.pod:3643
23416 #, no-wrap
23417 msgid ""
23418 " scrub-file file\n"
23419 "\n"
23420 msgstr ""
23421
23422 # type: =head2
23423 #: ../fish/guestfish-actions.pod:3653
23424 msgid "scrub-freespace"
23425 msgstr ""
23426
23427 # type: verbatim
23428 #: ../fish/guestfish-actions.pod:3655
23429 #, no-wrap
23430 msgid ""
23431 " scrub-freespace dir\n"
23432 "\n"
23433 msgstr ""
23434
23435 # type: textblock
23436 #: ../fish/guestfish-actions.pod:3657
23437 msgid ""
23438 "This command creates the directory C<dir> and then fills it with files until "
23439 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
23440 "deletes them.  The intention is to scrub any free space on the partition "
23441 "containing C<dir>."
23442 msgstr ""
23443
23444 # type: =head2
23445 #: ../fish/guestfish-actions.pod:3666
23446 msgid "set-append"
23447 msgstr ""
23448
23449 # type: =head2
23450 #: ../fish/guestfish-actions.pod:3668
23451 msgid "append"
23452 msgstr ""
23453
23454 # type: verbatim
23455 #: ../fish/guestfish-actions.pod:3670
23456 #, no-wrap
23457 msgid ""
23458 " set-append append\n"
23459 "\n"
23460 msgstr ""
23461
23462 # type: =head2
23463 #: ../fish/guestfish-actions.pod:3681
23464 msgid "set-autosync"
23465 msgstr ""
23466
23467 # type: =head2
23468 #: ../fish/guestfish-actions.pod:3683
23469 msgid "autosync"
23470 msgstr ""
23471
23472 # type: verbatim
23473 #: ../fish/guestfish-actions.pod:3685
23474 #, no-wrap
23475 msgid ""
23476 " set-autosync true|false\n"
23477 "\n"
23478 msgstr ""
23479
23480 # type: textblock
23481 #: ../fish/guestfish-actions.pod:3687
23482 msgid ""
23483 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
23484 "effort attempt to run L</umount-all> followed by L</sync> when the handle is "
23485 "closed (also if the program exits without closing handles)."
23486 msgstr ""
23487
23488 # type: =head2
23489 #: ../fish/guestfish-actions.pod:3695
23490 msgid "set-direct"
23491 msgstr ""
23492
23493 # type: =head2
23494 #: ../fish/guestfish-actions.pod:3697
23495 msgid "direct"
23496 msgstr ""
23497
23498 # type: verbatim
23499 #: ../fish/guestfish-actions.pod:3699
23500 #, no-wrap
23501 msgid ""
23502 " set-direct true|false\n"
23503 "\n"
23504 msgstr ""
23505
23506 # type: textblock
23507 #: ../fish/guestfish-actions.pod:3705
23508 msgid ""
23509 "One consequence of this is that log messages aren't caught by the library "
23510 "and handled by L</set-log-message-callback>, but go straight to stdout."
23511 msgstr ""
23512
23513 # type: =head2
23514 #: ../fish/guestfish-actions.pod:3714
23515 msgid "set-e2label"
23516 msgstr ""
23517
23518 # type: verbatim
23519 #: ../fish/guestfish-actions.pod:3716
23520 #, no-wrap
23521 msgid ""
23522 " set-e2label device label\n"
23523 "\n"
23524 msgstr ""
23525
23526 # type: textblock
23527 #: ../fish/guestfish-actions.pod:3722
23528 msgid ""
23529 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
23530 "label on a filesystem."
23531 msgstr ""
23532
23533 # type: =head2
23534 #: ../fish/guestfish-actions.pod:3725
23535 msgid "set-e2uuid"
23536 msgstr ""
23537
23538 # type: verbatim
23539 #: ../fish/guestfish-actions.pod:3727
23540 #, no-wrap
23541 msgid ""
23542 " set-e2uuid device uuid\n"
23543 "\n"
23544 msgstr ""
23545
23546 # type: textblock
23547 #: ../fish/guestfish-actions.pod:3734
23548 msgid ""
23549 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
23550 "UUID of a filesystem."
23551 msgstr ""
23552
23553 # type: =head2
23554 #: ../fish/guestfish-actions.pod:3737
23555 msgid "set-memsize"
23556 msgstr ""
23557
23558 # type: =head2
23559 #: ../fish/guestfish-actions.pod:3739
23560 msgid "memsize"
23561 msgstr ""
23562
23563 # type: verbatim
23564 #: ../fish/guestfish-actions.pod:3741
23565 #, no-wrap
23566 msgid ""
23567 " set-memsize memsize\n"
23568 "\n"
23569 msgstr ""
23570
23571 # type: textblock
23572 #: ../fish/guestfish-actions.pod:3743
23573 msgid ""
23574 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
23575 "This only has any effect if called before L</launch>."
23576 msgstr ""
23577
23578 # type: =head2
23579 #: ../fish/guestfish-actions.pod:3754
23580 msgid "set-network"
23581 msgstr ""
23582
23583 # type: =head2
23584 #: ../fish/guestfish-actions.pod:3756
23585 msgid "network"
23586 msgstr ""
23587
23588 # type: verbatim
23589 #: ../fish/guestfish-actions.pod:3758
23590 #, no-wrap
23591 msgid ""
23592 " set-network true|false\n"
23593 "\n"
23594 msgstr ""
23595
23596 # type: textblock
23597 #: ../fish/guestfish-actions.pod:3766
23598 msgid "You must call this before calling L</launch>, otherwise it has no effect."
23599 msgstr ""
23600
23601 # type: =head2
23602 #: ../fish/guestfish-actions.pod:3769
23603 msgid "set-path"
23604 msgstr ""
23605
23606 # type: =head2
23607 #: ../fish/guestfish-actions.pod:3771
23608 msgid "path"
23609 msgstr ""
23610
23611 # type: verbatim
23612 #: ../fish/guestfish-actions.pod:3773
23613 #, no-wrap
23614 msgid ""
23615 " set-path searchpath\n"
23616 "\n"
23617 msgstr ""
23618
23619 # type: =head2
23620 #: ../fish/guestfish-actions.pod:3782
23621 msgid "set-qemu"
23622 msgstr ""
23623
23624 # type: =head2
23625 #: ../fish/guestfish-actions.pod:3784
23626 msgid "qemu"
23627 msgstr ""
23628
23629 # type: verbatim
23630 #: ../fish/guestfish-actions.pod:3786
23631 #, no-wrap
23632 msgid ""
23633 " set-qemu qemu\n"
23634 "\n"
23635 msgstr ""
23636
23637 # type: =head2
23638 #: ../fish/guestfish-actions.pod:3806
23639 msgid "set-recovery-proc"
23640 msgstr ""
23641
23642 # type: =head2
23643 #: ../fish/guestfish-actions.pod:3808
23644 msgid "recovery-proc"
23645 msgstr ""
23646
23647 # type: verbatim
23648 #: ../fish/guestfish-actions.pod:3810
23649 #, no-wrap
23650 msgid ""
23651 " set-recovery-proc true|false\n"
23652 "\n"
23653 msgstr ""
23654
23655 # type: textblock
23656 #: ../fish/guestfish-actions.pod:3812
23657 msgid ""
23658 "If this is called with the parameter C<false> then L</launch> does not "
23659 "create a recovery process.  The purpose of the recovery process is to stop "
23660 "runaway qemu processes in the case where the main program aborts abruptly."
23661 msgstr ""
23662
23663 # type: textblock
23664 #: ../fish/guestfish-actions.pod:3817
23665 msgid ""
23666 "This only has any effect if called before L</launch>, and the default is "
23667 "true."
23668 msgstr ""
23669
23670 # type: =head2
23671 #: ../fish/guestfish-actions.pod:3826
23672 msgid "set-selinux"
23673 msgstr ""
23674
23675 # type: =head2
23676 #: ../fish/guestfish-actions.pod:3828
23677 msgid "selinux"
23678 msgstr ""
23679
23680 # type: verbatim
23681 #: ../fish/guestfish-actions.pod:3830
23682 #, no-wrap
23683 msgid ""
23684 " set-selinux true|false\n"
23685 "\n"
23686 msgstr ""
23687
23688 # type: =head2
23689 #: ../fish/guestfish-actions.pod:3841
23690 msgid "set-trace"
23691 msgstr ""
23692
23693 # type: =head2
23694 #: ../fish/guestfish-actions.pod:3843
23695 msgid "trace"
23696 msgstr ""
23697
23698 # type: verbatim
23699 #: ../fish/guestfish-actions.pod:3845
23700 #, no-wrap
23701 msgid ""
23702 " set-trace true|false\n"
23703 "\n"
23704 msgstr ""
23705
23706 # type: =head2
23707 #: ../fish/guestfish-actions.pod:3861
23708 msgid "set-verbose"
23709 msgstr ""
23710
23711 # type: =head2
23712 #: ../fish/guestfish-actions.pod:3863
23713 msgid "verbose"
23714 msgstr ""
23715
23716 # type: verbatim
23717 #: ../fish/guestfish-actions.pod:3865
23718 #, no-wrap
23719 msgid ""
23720 " set-verbose true|false\n"
23721 "\n"
23722 msgstr ""
23723
23724 # type: =head2
23725 #: ../fish/guestfish-actions.pod:3872
23726 msgid "setcon"
23727 msgstr ""
23728
23729 # type: verbatim
23730 #: ../fish/guestfish-actions.pod:3874
23731 #, no-wrap
23732 msgid ""
23733 " setcon context\n"
23734 "\n"
23735 msgstr ""
23736
23737 # type: =head2
23738 #: ../fish/guestfish-actions.pod:3881
23739 msgid "setxattr"
23740 msgstr ""
23741
23742 # type: verbatim
23743 #: ../fish/guestfish-actions.pod:3883
23744 #, no-wrap
23745 msgid ""
23746 " setxattr xattr val vallen path\n"
23747 "\n"
23748 msgstr ""
23749
23750 # type: textblock
23751 #: ../fish/guestfish-actions.pod:3889
23752 msgid "See also: L</lsetxattr>, L<attr(5)>."
23753 msgstr ""
23754
23755 # type: =head2
23756 #: ../fish/guestfish-actions.pod:3891
23757 msgid "sfdisk"
23758 msgstr ""
23759
23760 # type: verbatim
23761 #: ../fish/guestfish-actions.pod:3893
23762 #, no-wrap
23763 msgid ""
23764 " sfdisk device cyls heads sectors 'lines ...'\n"
23765 "\n"
23766 msgstr ""
23767
23768 # type: textblock
23769 #: ../fish/guestfish-actions.pod:3915
23770 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
23771 msgstr ""
23772
23773 # type: =head2
23774 #: ../fish/guestfish-actions.pod:3921
23775 msgid "sfdiskM"
23776 msgstr ""
23777
23778 # type: verbatim
23779 #: ../fish/guestfish-actions.pod:3923
23780 #, no-wrap
23781 msgid ""
23782 " sfdiskM device 'lines ...'\n"
23783 "\n"
23784 msgstr ""
23785
23786 # type: textblock
23787 #: ../fish/guestfish-actions.pod:3925
23788 msgid ""
23789 "This is a simplified interface to the L</sfdisk> command, where partition "
23790 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
23791 "you don't need to specify the cyls, heads and sectors parameters which were "
23792 "rarely if ever used anyway."
23793 msgstr ""
23794
23795 # type: textblock
23796 #: ../fish/guestfish-actions.pod:3931
23797 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
23798 msgstr ""
23799
23800 # type: =head2
23801 #: ../fish/guestfish-actions.pod:3937
23802 msgid "sfdisk-N"
23803 msgstr ""
23804
23805 # type: verbatim
23806 #: ../fish/guestfish-actions.pod:3939
23807 #, no-wrap
23808 msgid ""
23809 " sfdisk-N device partnum cyls heads sectors line\n"
23810 "\n"
23811 msgstr ""
23812
23813 # type: textblock
23814 #: ../fish/guestfish-actions.pod:3944
23815 msgid ""
23816 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
23817 "cyls/heads/sectors parameters."
23818 msgstr ""
23819
23820 # type: textblock
23821 #: ../fish/guestfish-actions.pod:3947
23822 msgid "See also: L</part-add>"
23823 msgstr ""
23824
23825 # type: =head2
23826 #: ../fish/guestfish-actions.pod:3952
23827 msgid "sfdisk-disk-geometry"
23828 msgstr ""
23829
23830 # type: verbatim
23831 #: ../fish/guestfish-actions.pod:3954
23832 #, no-wrap
23833 msgid ""
23834 " sfdisk-disk-geometry device\n"
23835 "\n"
23836 msgstr ""
23837
23838 # type: textblock
23839 #: ../fish/guestfish-actions.pod:3956
23840 msgid ""
23841 "This displays the disk geometry of C<device> read from the partition table.  "
23842 "Especially in the case where the underlying block device has been resized, "
23843 "this can be different from the kernel's idea of the geometry (see "
23844 "L</sfdisk-kernel-geometry>)."
23845 msgstr ""
23846
23847 # type: =head2
23848 #: ../fish/guestfish-actions.pod:3964
23849 msgid "sfdisk-kernel-geometry"
23850 msgstr ""
23851
23852 # type: verbatim
23853 #: ../fish/guestfish-actions.pod:3966
23854 #, no-wrap
23855 msgid ""
23856 " sfdisk-kernel-geometry device\n"
23857 "\n"
23858 msgstr ""
23859
23860 # type: =head2
23861 #: ../fish/guestfish-actions.pod:3973
23862 msgid "sfdisk-l"
23863 msgstr ""
23864
23865 # type: verbatim
23866 #: ../fish/guestfish-actions.pod:3975
23867 #, no-wrap
23868 msgid ""
23869 " sfdisk-l device\n"
23870 "\n"
23871 msgstr ""
23872
23873 # type: textblock
23874 #: ../fish/guestfish-actions.pod:3981
23875 msgid "See also: L</part-list>"
23876 msgstr ""
23877
23878 # type: =head2
23879 #: ../fish/guestfish-actions.pod:3983
23880 msgid "sh"
23881 msgstr ""
23882
23883 # type: verbatim
23884 #: ../fish/guestfish-actions.pod:3985
23885 #, no-wrap
23886 msgid ""
23887 " sh command\n"
23888 "\n"
23889 msgstr ""
23890
23891 # type: textblock
23892 #: ../fish/guestfish-actions.pod:3990
23893 msgid "This is like L</command>, but passes the command to:"
23894 msgstr ""
23895
23896 # type: textblock
23897 #: ../fish/guestfish-actions.pod:3998
23898 msgid "All the provisos about L</command> apply to this call."
23899 msgstr ""
23900
23901 # type: =head2
23902 #: ../fish/guestfish-actions.pod:4000
23903 msgid "sh-lines"
23904 msgstr ""
23905
23906 # type: verbatim
23907 #: ../fish/guestfish-actions.pod:4002
23908 #, no-wrap
23909 msgid ""
23910 " sh-lines command\n"
23911 "\n"
23912 msgstr ""
23913
23914 # type: textblock
23915 #: ../fish/guestfish-actions.pod:4004
23916 msgid "This is the same as L</sh>, but splits the result into a list of lines."
23917 msgstr ""
23918
23919 # type: textblock
23920 #: ../fish/guestfish-actions.pod:4007
23921 msgid "See also: L</command-lines>"
23922 msgstr ""
23923
23924 # type: =head2
23925 #: ../fish/guestfish-actions.pod:4009
23926 msgid "sleep"
23927 msgstr ""
23928
23929 # type: verbatim
23930 #: ../fish/guestfish-actions.pod:4011
23931 #, no-wrap
23932 msgid ""
23933 " sleep secs\n"
23934 "\n"
23935 msgstr ""
23936
23937 # type: =head2
23938 #: ../fish/guestfish-actions.pod:4015
23939 msgid "stat"
23940 msgstr ""
23941
23942 # type: verbatim
23943 #: ../fish/guestfish-actions.pod:4017
23944 #, no-wrap
23945 msgid ""
23946 " stat path\n"
23947 "\n"
23948 msgstr ""
23949
23950 # type: =head2
23951 #: ../fish/guestfish-actions.pod:4023
23952 msgid "statvfs"
23953 msgstr ""
23954
23955 # type: verbatim
23956 #: ../fish/guestfish-actions.pod:4025
23957 #, no-wrap
23958 msgid ""
23959 " statvfs path\n"
23960 "\n"
23961 msgstr ""
23962
23963 # type: =head2
23964 #: ../fish/guestfish-actions.pod:4033
23965 msgid "strings"
23966 msgstr ""
23967
23968 # type: verbatim
23969 #: ../fish/guestfish-actions.pod:4035
23970 #, no-wrap
23971 msgid ""
23972 " strings path\n"
23973 "\n"
23974 msgstr ""
23975
23976 # type: =head2
23977 #: ../fish/guestfish-actions.pod:4043
23978 msgid "strings-e"
23979 msgstr ""
23980
23981 # type: verbatim
23982 #: ../fish/guestfish-actions.pod:4045
23983 #, no-wrap
23984 msgid ""
23985 " strings-e encoding path\n"
23986 "\n"
23987 msgstr ""
23988
23989 # type: textblock
23990 #: ../fish/guestfish-actions.pod:4047
23991 msgid ""
23992 "This is like the L</strings> command, but allows you to specify the encoding "
23993 "of strings that are looked for in the source file C<path>."
23994 msgstr ""
23995
23996 # type: textblock
23997 #: ../fish/guestfish-actions.pod:4057
23998 msgid ""
23999 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
24000 "ISO-8859-X (this is what L</strings> uses)."
24001 msgstr ""
24002
24003 # type: =head2
24004 #: ../fish/guestfish-actions.pod:4089
24005 msgid "swapoff-device"
24006 msgstr ""
24007
24008 # type: verbatim
24009 #: ../fish/guestfish-actions.pod:4091
24010 #, no-wrap
24011 msgid ""
24012 " swapoff-device device\n"
24013 "\n"
24014 msgstr ""
24015
24016 # type: textblock
24017 #: ../fish/guestfish-actions.pod:4093
24018 msgid ""
24019 "This command disables the libguestfs appliance swap device or partition "
24020 "named C<device>.  See L</swapon-device>."
24021 msgstr ""
24022
24023 # type: =head2
24024 #: ../fish/guestfish-actions.pod:4097
24025 msgid "swapoff-file"
24026 msgstr ""
24027
24028 # type: verbatim
24029 #: ../fish/guestfish-actions.pod:4099
24030 #, no-wrap
24031 msgid ""
24032 " swapoff-file file\n"
24033 "\n"
24034 msgstr ""
24035
24036 # type: =head2
24037 #: ../fish/guestfish-actions.pod:4103
24038 msgid "swapoff-label"
24039 msgstr ""
24040
24041 # type: verbatim
24042 #: ../fish/guestfish-actions.pod:4105
24043 #, no-wrap
24044 msgid ""
24045 " swapoff-label label\n"
24046 "\n"
24047 msgstr ""
24048
24049 # type: =head2
24050 #: ../fish/guestfish-actions.pod:4110
24051 msgid "swapoff-uuid"
24052 msgstr ""
24053
24054 # type: verbatim
24055 #: ../fish/guestfish-actions.pod:4112
24056 #, no-wrap
24057 msgid ""
24058 " swapoff-uuid uuid\n"
24059 "\n"
24060 msgstr ""
24061
24062 # type: =head2
24063 #: ../fish/guestfish-actions.pod:4117
24064 msgid "swapon-device"
24065 msgstr ""
24066
24067 # type: verbatim
24068 #: ../fish/guestfish-actions.pod:4119
24069 #, no-wrap
24070 msgid ""
24071 " swapon-device device\n"
24072 "\n"
24073 msgstr ""
24074
24075 # type: textblock
24076 #: ../fish/guestfish-actions.pod:4121
24077 msgid ""
24078 "This command enables the libguestfs appliance to use the swap device or "
24079 "partition named C<device>.  The increased memory is made available for all "
24080 "commands, for example those run using L</command> or L</sh>."
24081 msgstr ""
24082
24083 # type: =head2
24084 #: ../fish/guestfish-actions.pod:4133
24085 msgid "swapon-file"
24086 msgstr ""
24087
24088 # type: verbatim
24089 #: ../fish/guestfish-actions.pod:4135
24090 #, no-wrap
24091 msgid ""
24092 " swapon-file file\n"
24093 "\n"
24094 msgstr ""
24095
24096 # type: textblock
24097 #: ../fish/guestfish-actions.pod:4137
24098 msgid "This command enables swap to a file.  See L</swapon-device> for other notes."
24099 msgstr ""
24100
24101 # type: =head2
24102 #: ../fish/guestfish-actions.pod:4140
24103 msgid "swapon-label"
24104 msgstr ""
24105
24106 # type: verbatim
24107 #: ../fish/guestfish-actions.pod:4142
24108 #, no-wrap
24109 msgid ""
24110 " swapon-label label\n"
24111 "\n"
24112 msgstr ""
24113
24114 # type: textblock
24115 #: ../fish/guestfish-actions.pod:4144
24116 msgid ""
24117 "This command enables swap to a labeled swap partition.  See "
24118 "L</swapon-device> for other notes."
24119 msgstr ""
24120
24121 # type: =head2
24122 #: ../fish/guestfish-actions.pod:4147
24123 msgid "swapon-uuid"
24124 msgstr ""
24125
24126 # type: verbatim
24127 #: ../fish/guestfish-actions.pod:4149
24128 #, no-wrap
24129 msgid ""
24130 " swapon-uuid uuid\n"
24131 "\n"
24132 msgstr ""
24133
24134 # type: textblock
24135 #: ../fish/guestfish-actions.pod:4151
24136 msgid ""
24137 "This command enables swap to a swap partition with the given UUID.  See "
24138 "L</swapon-device> for other notes."
24139 msgstr ""
24140
24141 # type: =head2
24142 #: ../fish/guestfish-actions.pod:4154
24143 msgid "sync"
24144 msgstr ""
24145
24146 # type: verbatim
24147 #: ../fish/guestfish-actions.pod:4156
24148 #, no-wrap
24149 msgid ""
24150 " sync\n"
24151 "\n"
24152 msgstr ""
24153
24154 # type: =head2
24155 #: ../fish/guestfish-actions.pod:4164
24156 msgid "tail"
24157 msgstr ""
24158
24159 # type: verbatim
24160 #: ../fish/guestfish-actions.pod:4166
24161 #, no-wrap
24162 msgid ""
24163 " tail path\n"
24164 "\n"
24165 msgstr ""
24166
24167 # type: =head2
24168 #: ../fish/guestfish-actions.pod:4174
24169 msgid "tail-n"
24170 msgstr ""
24171
24172 # type: verbatim
24173 #: ../fish/guestfish-actions.pod:4176
24174 #, no-wrap
24175 msgid ""
24176 " tail-n nrlines path\n"
24177 "\n"
24178 msgstr ""
24179
24180 # type: =head2
24181 #: ../fish/guestfish-actions.pod:4189
24182 msgid "tar-in"
24183 msgstr ""
24184
24185 # type: verbatim
24186 #: ../fish/guestfish-actions.pod:4191
24187 #, no-wrap
24188 msgid ""
24189 " tar-in (tarfile|-) directory\n"
24190 "\n"
24191 msgstr ""
24192
24193 # type: textblock
24194 #: ../fish/guestfish-actions.pod:4196
24195 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
24196 msgstr ""
24197
24198 # type: =head2
24199 #: ../fish/guestfish-actions.pod:4201
24200 msgid "tar-out"
24201 msgstr ""
24202
24203 # type: verbatim
24204 #: ../fish/guestfish-actions.pod:4203
24205 #, no-wrap
24206 msgid ""
24207 " tar-out directory (tarfile|-)\n"
24208 "\n"
24209 msgstr ""
24210
24211 # type: textblock
24212 #: ../fish/guestfish-actions.pod:4208
24213 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
24214 msgstr ""
24215
24216 # type: =head2
24217 #: ../fish/guestfish-actions.pod:4213
24218 msgid "tgz-in"
24219 msgstr ""
24220
24221 # type: verbatim
24222 #: ../fish/guestfish-actions.pod:4215
24223 #, no-wrap
24224 msgid ""
24225 " tgz-in (tarball|-) directory\n"
24226 "\n"
24227 msgstr ""
24228
24229 # type: textblock
24230 #: ../fish/guestfish-actions.pod:4220
24231 msgid "To upload an uncompressed tarball, use L</tar-in>."
24232 msgstr ""
24233
24234 # type: =head2
24235 #: ../fish/guestfish-actions.pod:4224
24236 msgid "tgz-out"
24237 msgstr ""
24238
24239 # type: verbatim
24240 #: ../fish/guestfish-actions.pod:4226
24241 #, no-wrap
24242 msgid ""
24243 " tgz-out directory (tarball|-)\n"
24244 "\n"
24245 msgstr ""
24246
24247 # type: textblock
24248 #: ../fish/guestfish-actions.pod:4231
24249 msgid "To download an uncompressed tarball, use L</tar-out>."
24250 msgstr ""
24251
24252 # type: =head2
24253 #: ../fish/guestfish-actions.pod:4235
24254 msgid "touch"
24255 msgstr ""
24256
24257 # type: verbatim
24258 #: ../fish/guestfish-actions.pod:4237
24259 #, no-wrap
24260 msgid ""
24261 " touch path\n"
24262 "\n"
24263 msgstr ""
24264
24265 # type: =head2
24266 #: ../fish/guestfish-actions.pod:4246
24267 msgid "truncate"
24268 msgstr ""
24269
24270 # type: verbatim
24271 #: ../fish/guestfish-actions.pod:4248
24272 #, no-wrap
24273 msgid ""
24274 " truncate path\n"
24275 "\n"
24276 msgstr ""
24277
24278 # type: =head2
24279 #: ../fish/guestfish-actions.pod:4253
24280 msgid "truncate-size"
24281 msgstr ""
24282
24283 # type: verbatim
24284 #: ../fish/guestfish-actions.pod:4255
24285 #, no-wrap
24286 msgid ""
24287 " truncate-size path size\n"
24288 "\n"
24289 msgstr ""
24290
24291 # type: textblock
24292 #: ../fish/guestfish-actions.pod:4260
24293 msgid ""
24294 "If the current file size is less than C<size> then the file is extended to "
24295 "the required size with zero bytes.  This creates a sparse file (ie. disk "
24296 "blocks are not allocated for the file until you write to it).  To create a "
24297 "non-sparse file of zeroes, use L</fallocate64> instead."
24298 msgstr ""
24299
24300 # type: =head2
24301 #: ../fish/guestfish-actions.pod:4266
24302 msgid "tune2fs-l"
24303 msgstr ""
24304
24305 # type: verbatim
24306 #: ../fish/guestfish-actions.pod:4268
24307 #, no-wrap
24308 msgid ""
24309 " tune2fs-l device\n"
24310 "\n"
24311 msgstr ""
24312
24313 # type: =head2
24314 #: ../fish/guestfish-actions.pod:4278
24315 msgid "txz-in"
24316 msgstr ""
24317
24318 # type: verbatim
24319 #: ../fish/guestfish-actions.pod:4280
24320 #, no-wrap
24321 msgid ""
24322 " txz-in (tarball|-) directory\n"
24323 "\n"
24324 msgstr ""
24325
24326 # type: =head2
24327 #: ../fish/guestfish-actions.pod:4287
24328 msgid "txz-out"
24329 msgstr ""
24330
24331 # type: verbatim
24332 #: ../fish/guestfish-actions.pod:4289
24333 #, no-wrap
24334 msgid ""
24335 " txz-out directory (tarball|-)\n"
24336 "\n"
24337 msgstr ""
24338
24339 # type: =head2
24340 #: ../fish/guestfish-actions.pod:4296
24341 msgid "umask"
24342 msgstr ""
24343
24344 # type: verbatim
24345 #: ../fish/guestfish-actions.pod:4298
24346 #, no-wrap
24347 msgid ""
24348 " umask mask\n"
24349 "\n"
24350 msgstr ""
24351
24352 # type: textblock
24353 #: ../fish/guestfish-actions.pod:4312
24354 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
24355 msgstr ""
24356
24357 # type: =head2
24358 #: ../fish/guestfish-actions.pod:4317
24359 msgid "umount"
24360 msgstr ""
24361
24362 # type: =head2
24363 #: ../fish/guestfish-actions.pod:4319
24364 msgid "unmount"
24365 msgstr ""
24366
24367 # type: verbatim
24368 #: ../fish/guestfish-actions.pod:4321
24369 #, no-wrap
24370 msgid ""
24371 " umount pathordevice\n"
24372 "\n"
24373 msgstr ""
24374
24375 # type: =head2
24376 #: ../fish/guestfish-actions.pod:4327
24377 msgid "umount-all"
24378 msgstr ""
24379
24380 # type: =head2
24381 #: ../fish/guestfish-actions.pod:4329
24382 msgid "unmount-all"
24383 msgstr ""
24384
24385 # type: verbatim
24386 #: ../fish/guestfish-actions.pod:4331
24387 #, no-wrap
24388 msgid ""
24389 " umount-all\n"
24390 "\n"
24391 msgstr ""
24392
24393 # type: =head2
24394 #: ../fish/guestfish-actions.pod:4337
24395 msgid "upload"
24396 msgstr ""
24397
24398 # type: verbatim
24399 #: ../fish/guestfish-actions.pod:4339
24400 #, no-wrap
24401 msgid ""
24402 " upload (filename|-) remotefilename\n"
24403 "\n"
24404 msgstr ""
24405
24406 # type: textblock
24407 #: ../fish/guestfish-actions.pod:4346
24408 msgid "See also L</download>."
24409 msgstr ""
24410
24411 # type: =head2
24412 #: ../fish/guestfish-actions.pod:4350
24413 msgid "upload-offset"
24414 msgstr ""
24415
24416 # type: verbatim
24417 #: ../fish/guestfish-actions.pod:4352
24418 #, no-wrap
24419 msgid ""
24420 " upload-offset (filename|-) remotefilename offset\n"
24421 "\n"
24422 msgstr ""
24423
24424 # type: textblock
24425 #: ../fish/guestfish-actions.pod:4364
24426 msgid ""
24427 "Note that there is no limit on the amount of data that can be uploaded with "
24428 "this call, unlike with L</pwrite>, and this call always writes the full "
24429 "amount unless an error occurs."
24430 msgstr ""
24431
24432 # type: textblock
24433 #: ../fish/guestfish-actions.pod:4369
24434 msgid "See also L</upload>, L</pwrite>."
24435 msgstr ""
24436
24437 # type: =head2
24438 #: ../fish/guestfish-actions.pod:4373
24439 msgid "utimens"
24440 msgstr ""
24441
24442 # type: verbatim
24443 #: ../fish/guestfish-actions.pod:4375
24444 #, no-wrap
24445 msgid ""
24446 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
24447 "\n"
24448 msgstr ""
24449
24450 # type: =head2
24451 #: ../fish/guestfish-actions.pod:4394
24452 msgid "version"
24453 msgstr ""
24454
24455 # type: verbatim
24456 #: ../fish/guestfish-actions.pod:4396
24457 #, no-wrap
24458 msgid ""
24459 " version\n"
24460 "\n"
24461 msgstr ""
24462
24463 # type: textblock
24464 #: ../fish/guestfish-actions.pod:4423
24465 msgid ""
24466 "I<Note:> Don't use this call to test for availability of features.  In "
24467 "enterprise distributions we backport features from later versions into "
24468 "earlier versions, making this an unreliable way to test for features.  Use "
24469 "L</available> instead."
24470 msgstr ""
24471
24472 # type: =head2
24473 #: ../fish/guestfish-actions.pod:4429
24474 msgid "vfs-label"
24475 msgstr ""
24476
24477 # type: verbatim
24478 #: ../fish/guestfish-actions.pod:4431
24479 #, no-wrap
24480 msgid ""
24481 " vfs-label device\n"
24482 "\n"
24483 msgstr ""
24484
24485 # type: textblock
24486 #: ../fish/guestfish-actions.pod:4438
24487 msgid "To find a filesystem from the label, use L</findfs-label>."
24488 msgstr ""
24489
24490 # type: =head2
24491 #: ../fish/guestfish-actions.pod:4440
24492 msgid "vfs-type"
24493 msgstr ""
24494
24495 # type: verbatim
24496 #: ../fish/guestfish-actions.pod:4442
24497 #, no-wrap
24498 msgid ""
24499 " vfs-type device\n"
24500 "\n"
24501 msgstr ""
24502
24503 # type: =head2
24504 #: ../fish/guestfish-actions.pod:4452
24505 msgid "vfs-uuid"
24506 msgstr ""
24507
24508 # type: verbatim
24509 #: ../fish/guestfish-actions.pod:4454
24510 #, no-wrap
24511 msgid ""
24512 " vfs-uuid device\n"
24513 "\n"
24514 msgstr ""
24515
24516 # type: textblock
24517 #: ../fish/guestfish-actions.pod:4461
24518 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
24519 msgstr ""
24520
24521 # type: =head2
24522 #: ../fish/guestfish-actions.pod:4463
24523 msgid "vg-activate"
24524 msgstr ""
24525
24526 # type: verbatim
24527 #: ../fish/guestfish-actions.pod:4465
24528 #, no-wrap
24529 msgid ""
24530 " vg-activate true|false 'volgroups ...'\n"
24531 "\n"
24532 msgstr ""
24533
24534 # type: =head2
24535 #: ../fish/guestfish-actions.pod:4478
24536 msgid "vg-activate-all"
24537 msgstr ""
24538
24539 # type: verbatim
24540 #: ../fish/guestfish-actions.pod:4480
24541 #, no-wrap
24542 msgid ""
24543 " vg-activate-all true|false\n"
24544 "\n"
24545 msgstr ""
24546
24547 # type: =head2
24548 #: ../fish/guestfish-actions.pod:4490
24549 msgid "vgcreate"
24550 msgstr ""
24551
24552 # type: verbatim
24553 #: ../fish/guestfish-actions.pod:4492
24554 #, no-wrap
24555 msgid ""
24556 " vgcreate volgroup 'physvols ...'\n"
24557 "\n"
24558 msgstr ""
24559
24560 # type: =head2
24561 #: ../fish/guestfish-actions.pod:4497
24562 msgid "vglvuuids"
24563 msgstr ""
24564
24565 # type: verbatim
24566 #: ../fish/guestfish-actions.pod:4499
24567 #, no-wrap
24568 msgid ""
24569 " vglvuuids vgname\n"
24570 "\n"
24571 msgstr ""
24572
24573 # type: textblock
24574 #: ../fish/guestfish-actions.pod:4504
24575 msgid ""
24576 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
24577 "logical volumes and volume groups."
24578 msgstr ""
24579
24580 # type: textblock
24581 #: ../fish/guestfish-actions.pod:4507
24582 msgid "See also L</vgpvuuids>."
24583 msgstr ""
24584
24585 # type: =head2
24586 #: ../fish/guestfish-actions.pod:4509
24587 msgid "vgpvuuids"
24588 msgstr ""
24589
24590 # type: verbatim
24591 #: ../fish/guestfish-actions.pod:4511
24592 #, no-wrap
24593 msgid ""
24594 " vgpvuuids vgname\n"
24595 "\n"
24596 msgstr ""
24597
24598 # type: textblock
24599 #: ../fish/guestfish-actions.pod:4516
24600 msgid ""
24601 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
24602 "physical volumes and volume groups."
24603 msgstr ""
24604
24605 # type: textblock
24606 #: ../fish/guestfish-actions.pod:4519
24607 msgid "See also L</vglvuuids>."
24608 msgstr ""
24609
24610 # type: =head2
24611 #: ../fish/guestfish-actions.pod:4521
24612 msgid "vgremove"
24613 msgstr ""
24614
24615 # type: verbatim
24616 #: ../fish/guestfish-actions.pod:4523
24617 #, no-wrap
24618 msgid ""
24619 " vgremove vgname\n"
24620 "\n"
24621 msgstr ""
24622
24623 # type: =head2
24624 #: ../fish/guestfish-actions.pod:4530
24625 msgid "vgrename"
24626 msgstr ""
24627
24628 # type: verbatim
24629 #: ../fish/guestfish-actions.pod:4532
24630 #, no-wrap
24631 msgid ""
24632 " vgrename volgroup newvolgroup\n"
24633 "\n"
24634 msgstr ""
24635
24636 # type: =head2
24637 #: ../fish/guestfish-actions.pod:4536
24638 msgid "vgs"
24639 msgstr ""
24640
24641 # type: verbatim
24642 #: ../fish/guestfish-actions.pod:4538
24643 #, no-wrap
24644 msgid ""
24645 " vgs\n"
24646 "\n"
24647 msgstr ""
24648
24649 # type: textblock
24650 #: ../fish/guestfish-actions.pod:4546
24651 msgid "See also L</vgs-full>."
24652 msgstr ""
24653
24654 # type: =head2
24655 #: ../fish/guestfish-actions.pod:4548
24656 msgid "vgs-full"
24657 msgstr ""
24658
24659 # type: verbatim
24660 #: ../fish/guestfish-actions.pod:4550
24661 #, no-wrap
24662 msgid ""
24663 " vgs-full\n"
24664 "\n"
24665 msgstr ""
24666
24667 # type: =head2
24668 #: ../fish/guestfish-actions.pod:4555
24669 msgid "vgscan"
24670 msgstr ""
24671
24672 # type: verbatim
24673 #: ../fish/guestfish-actions.pod:4557
24674 #, no-wrap
24675 msgid ""
24676 " vgscan\n"
24677 "\n"
24678 msgstr ""
24679
24680 # type: =head2
24681 #: ../fish/guestfish-actions.pod:4562
24682 msgid "vguuid"
24683 msgstr ""
24684
24685 # type: verbatim
24686 #: ../fish/guestfish-actions.pod:4564
24687 #, no-wrap
24688 msgid ""
24689 " vguuid vgname\n"
24690 "\n"
24691 msgstr ""
24692
24693 # type: =head2
24694 #: ../fish/guestfish-actions.pod:4568
24695 msgid "wc-c"
24696 msgstr ""
24697
24698 # type: verbatim
24699 #: ../fish/guestfish-actions.pod:4570
24700 #, no-wrap
24701 msgid ""
24702 " wc-c path\n"
24703 "\n"
24704 msgstr ""
24705
24706 # type: =head2
24707 #: ../fish/guestfish-actions.pod:4575
24708 msgid "wc-l"
24709 msgstr ""
24710
24711 # type: verbatim
24712 #: ../fish/guestfish-actions.pod:4577
24713 #, no-wrap
24714 msgid ""
24715 " wc-l path\n"
24716 "\n"
24717 msgstr ""
24718
24719 # type: =head2
24720 #: ../fish/guestfish-actions.pod:4582
24721 msgid "wc-w"
24722 msgstr ""
24723
24724 # type: verbatim
24725 #: ../fish/guestfish-actions.pod:4584
24726 #, no-wrap
24727 msgid ""
24728 " wc-w path\n"
24729 "\n"
24730 msgstr ""
24731
24732 # type: =head2
24733 #: ../fish/guestfish-actions.pod:4589
24734 msgid "write"
24735 msgstr ""
24736
24737 # type: verbatim
24738 #: ../fish/guestfish-actions.pod:4591
24739 #, no-wrap
24740 msgid ""
24741 " write path content\n"
24742 "\n"
24743 msgstr ""
24744
24745 # type: =head2
24746 #: ../fish/guestfish-actions.pod:4599
24747 msgid "write-file"
24748 msgstr ""
24749
24750 # type: verbatim
24751 #: ../fish/guestfish-actions.pod:4601
24752 #, no-wrap
24753 msgid ""
24754 " write-file path content size\n"
24755 "\n"
24756 msgstr ""
24757
24758 # type: =head2
24759 #: ../fish/guestfish-actions.pod:4624
24760 msgid "zegrep"
24761 msgstr ""
24762
24763 # type: verbatim
24764 #: ../fish/guestfish-actions.pod:4626
24765 #, no-wrap
24766 msgid ""
24767 " zegrep regex path\n"
24768 "\n"
24769 msgstr ""
24770
24771 # type: =head2
24772 #: ../fish/guestfish-actions.pod:4634
24773 msgid "zegrepi"
24774 msgstr ""
24775
24776 # type: verbatim
24777 #: ../fish/guestfish-actions.pod:4636
24778 #, no-wrap
24779 msgid ""
24780 " zegrepi regex path\n"
24781 "\n"
24782 msgstr ""
24783
24784 # type: =head2
24785 #: ../fish/guestfish-actions.pod:4644
24786 msgid "zero"
24787 msgstr ""
24788
24789 # type: verbatim
24790 #: ../fish/guestfish-actions.pod:4646
24791 #, no-wrap
24792 msgid ""
24793 " zero device\n"
24794 "\n"
24795 msgstr ""
24796
24797 # type: textblock
24798 #: ../fish/guestfish-actions.pod:4654
24799 msgid "See also: L</zero-device>, L</scrub-device>."
24800 msgstr ""
24801
24802 # type: =head2
24803 #: ../fish/guestfish-actions.pod:4656
24804 msgid "zero-device"
24805 msgstr ""
24806
24807 # type: verbatim
24808 #: ../fish/guestfish-actions.pod:4658
24809 #, no-wrap
24810 msgid ""
24811 " zero-device device\n"
24812 "\n"
24813 msgstr ""
24814
24815 # type: textblock
24816 #: ../fish/guestfish-actions.pod:4660
24817 msgid ""
24818 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
24819 "which just zeroes the first few blocks of a device."
24820 msgstr ""
24821
24822 # type: =head2
24823 #: ../fish/guestfish-actions.pod:4667
24824 msgid "zerofree"
24825 msgstr ""
24826
24827 # type: verbatim
24828 #: ../fish/guestfish-actions.pod:4669
24829 #, no-wrap
24830 msgid ""
24831 " zerofree device\n"
24832 "\n"
24833 msgstr ""
24834
24835 # type: =head2
24836 #: ../fish/guestfish-actions.pod:4682
24837 msgid "zfgrep"
24838 msgstr ""
24839
24840 # type: verbatim
24841 #: ../fish/guestfish-actions.pod:4684
24842 #, no-wrap
24843 msgid ""
24844 " zfgrep pattern path\n"
24845 "\n"
24846 msgstr ""
24847
24848 # type: =head2
24849 #: ../fish/guestfish-actions.pod:4692
24850 msgid "zfgrepi"
24851 msgstr ""
24852
24853 # type: verbatim
24854 #: ../fish/guestfish-actions.pod:4694
24855 #, no-wrap
24856 msgid ""
24857 " zfgrepi pattern path\n"
24858 "\n"
24859 msgstr ""
24860
24861 # type: =head2
24862 #: ../fish/guestfish-actions.pod:4702
24863 msgid "zfile"
24864 msgstr ""
24865
24866 # type: verbatim
24867 #: ../fish/guestfish-actions.pod:4704
24868 #, no-wrap
24869 msgid ""
24870 " zfile meth path\n"
24871 "\n"
24872 msgstr ""
24873
24874 # type: textblock
24875 #: ../fish/guestfish-actions.pod:4711
24876 msgid "Since 1.0.63, use L</file> instead which can now process compressed files."
24877 msgstr ""
24878
24879 # type: =head2
24880 #: ../fish/guestfish-actions.pod:4721
24881 msgid "zgrep"
24882 msgstr ""
24883
24884 # type: verbatim
24885 #: ../fish/guestfish-actions.pod:4723
24886 #, no-wrap
24887 msgid ""
24888 " zgrep regex path\n"
24889 "\n"
24890 msgstr ""
24891
24892 # type: =head2
24893 #: ../fish/guestfish-actions.pod:4731
24894 msgid "zgrepi"
24895 msgstr ""
24896
24897 # type: verbatim
24898 #: ../fish/guestfish-actions.pod:4733
24899 #, no-wrap
24900 msgid ""
24901 " zgrepi regex path\n"
24902 "\n"
24903 msgstr ""
24904
24905 # type: =head2
24906 #: ../fish/guestfish-commands.pod:1
24907 msgid "alloc"
24908 msgstr ""
24909
24910 # type: =head2
24911 #: ../fish/guestfish-commands.pod:3
24912 msgid "allocate"
24913 msgstr ""
24914
24915 # type: verbatim
24916 #: ../fish/guestfish-commands.pod:5
24917 #, no-wrap
24918 msgid ""
24919 " alloc filename size\n"
24920 "\n"
24921 msgstr ""
24922
24923 # type: textblock
24924 #: ../fish/guestfish-commands.pod:7
24925 msgid ""
24926 "This creates an empty (zeroed) file of the given size, and then adds so it "
24927 "can be further examined."
24928 msgstr ""
24929
24930 # type: textblock
24931 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:168
24932 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
24933 msgstr ""
24934
24935 # type: textblock
24936 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:170
24937 msgid "Size can be specified using standard suffixes, eg. C<1M>."
24938 msgstr ""
24939
24940 # type: textblock
24941 #: ../fish/guestfish-commands.pod:14
24942 msgid ""
24943 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
24944 "image, see L</PREPARED DISK IMAGES>."
24945 msgstr ""
24946
24947 # type: =head2
24948 #: ../fish/guestfish-commands.pod:17
24949 msgid "copy-in"
24950 msgstr ""
24951
24952 # type: verbatim
24953 #: ../fish/guestfish-commands.pod:19
24954 #, no-wrap
24955 msgid ""
24956 " copy-in local [local ...] /remotedir\n"
24957 "\n"
24958 msgstr ""
24959
24960 # type: textblock
24961 #: ../fish/guestfish-commands.pod:21
24962 msgid ""
24963 "C<copy-in> copies local files or directories recursively into the disk "
24964 "image, placing them in the directory called C</remotedir> (which must "
24965 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
24966 "other commands as necessary."
24967 msgstr ""
24968
24969 # type: textblock
24970 #: ../fish/guestfish-commands.pod:26
24971 msgid ""
24972 "Multiple local files and directories can be specified, but the last "
24973 "parameter must always be a remote directory.  Wildcards cannot be used."
24974 msgstr ""
24975
24976 # type: =head2
24977 #: ../fish/guestfish-commands.pod:30
24978 msgid "copy-out"
24979 msgstr ""
24980
24981 # type: verbatim
24982 #: ../fish/guestfish-commands.pod:32
24983 #, no-wrap
24984 msgid ""
24985 " copy-out remote [remote ...] localdir\n"
24986 "\n"
24987 msgstr ""
24988
24989 # type: textblock
24990 #: ../fish/guestfish-commands.pod:34
24991 msgid ""
24992 "C<copy-out> copies remote files or directories recursively out of the disk "
24993 "image, placing them on the host disk in a local directory called C<localdir> "
24994 "(which must exist).  This guestfish meta-command turns into a sequence of "
24995 "L</download>, L</tar-out> and other commands as necessary."
24996 msgstr ""
24997
24998 # type: textblock
24999 #: ../fish/guestfish-commands.pod:40
25000 msgid ""
25001 "Multiple remote files and directories can be specified, but the last "
25002 "parameter must always be a local directory.  To download to the current "
25003 "directory, use C<.> as in:"
25004 msgstr ""
25005
25006 # type: verbatim
25007 #: ../fish/guestfish-commands.pod:44
25008 #, no-wrap
25009 msgid ""
25010 " copy-out /home .\n"
25011 "\n"
25012 msgstr ""
25013
25014 # type: textblock
25015 #: ../fish/guestfish-commands.pod:46
25016 msgid ""
25017 "Wildcards cannot be used in the ordinary command, but you can use them with "
25018 "the help of L</glob> like this:"
25019 msgstr ""
25020
25021 # type: verbatim
25022 #: ../fish/guestfish-commands.pod:49
25023 #, no-wrap
25024 msgid ""
25025 " glob copy-out /home/* .\n"
25026 "\n"
25027 msgstr ""
25028
25029 # type: =head2
25030 #: ../fish/guestfish-commands.pod:51
25031 msgid "echo"
25032 msgstr ""
25033
25034 # type: verbatim
25035 #: ../fish/guestfish-commands.pod:53
25036 #, no-wrap
25037 msgid ""
25038 " echo [params ...]\n"
25039 "\n"
25040 msgstr ""
25041
25042 # type: textblock
25043 #: ../fish/guestfish-commands.pod:55
25044 msgid "This echos the parameters to the terminal."
25045 msgstr ""
25046
25047 # type: =head2
25048 #: ../fish/guestfish-commands.pod:57
25049 msgid "edit"
25050 msgstr ""
25051
25052 # type: =head2
25053 #: ../fish/guestfish-commands.pod:59
25054 msgid "vi"
25055 msgstr ""
25056
25057 # type: =head2
25058 #: ../fish/guestfish-commands.pod:61
25059 msgid "emacs"
25060 msgstr ""
25061
25062 # type: verbatim
25063 #: ../fish/guestfish-commands.pod:63
25064 #, no-wrap
25065 msgid ""
25066 " edit filename\n"
25067 "\n"
25068 msgstr ""
25069
25070 # type: textblock
25071 #: ../fish/guestfish-commands.pod:65
25072 msgid ""
25073 "This is used to edit a file.  It downloads the file, edits it locally using "
25074 "your editor, then uploads the result."
25075 msgstr ""
25076
25077 # type: textblock
25078 #: ../fish/guestfish-commands.pod:68
25079 msgid ""
25080 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
25081 "or C<emacs> you will get those corresponding editors."
25082 msgstr ""
25083
25084 # type: =head2
25085 #: ../fish/guestfish-commands.pod:72
25086 msgid "glob"
25087 msgstr ""
25088
25089 # type: verbatim
25090 #: ../fish/guestfish-commands.pod:74
25091 #, no-wrap
25092 msgid ""
25093 " glob command args...\n"
25094 "\n"
25095 msgstr ""
25096
25097 # type: textblock
25098 #: ../fish/guestfish-commands.pod:76
25099 msgid ""
25100 "Expand wildcards in any paths in the args list, and run C<command> "
25101 "repeatedly on each matching path."
25102 msgstr ""
25103
25104 # type: textblock
25105 #: ../fish/guestfish-commands.pod:79
25106 msgid "See L</WILDCARDS AND GLOBBING>."
25107 msgstr ""
25108
25109 # type: =head2
25110 #: ../fish/guestfish-commands.pod:81
25111 msgid "hexedit"
25112 msgstr ""
25113
25114 # type: verbatim
25115 #: ../fish/guestfish-commands.pod:83
25116 #, no-wrap
25117 msgid ""
25118 " hexedit <filename|device>\n"
25119 " hexedit <filename|device> <max>\n"
25120 " hexedit <filename|device> <start> <max>\n"
25121 "\n"
25122 msgstr ""
25123
25124 # type: textblock
25125 #: ../fish/guestfish-commands.pod:87
25126 msgid ""
25127 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
25128 "device."
25129 msgstr ""
25130
25131 # type: textblock
25132 #: ../fish/guestfish-commands.pod:90
25133 msgid ""
25134 "This command works by downloading potentially the whole file or device, "
25135 "editing it locally, then uploading it.  If the file or device is large, you "
25136 "have to specify which part you wish to edit by using C<max> and/or C<start> "
25137 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
25138 "usual modifiers allowed such as C<1M> (1 megabyte)."
25139 msgstr ""
25140
25141 # type: textblock
25142 #: ../fish/guestfish-commands.pod:97
25143 msgid "For example to edit the first few sectors of a disk you might do:"
25144 msgstr ""
25145
25146 # type: verbatim
25147 #: ../fish/guestfish-commands.pod:100
25148 #, no-wrap
25149 msgid ""
25150 " hexedit /dev/sda 1M\n"
25151 "\n"
25152 msgstr ""
25153
25154 # type: textblock
25155 #: ../fish/guestfish-commands.pod:102
25156 msgid ""
25157 "which would allow you to edit anywhere within the first megabyte of the "
25158 "disk."
25159 msgstr ""
25160
25161 # type: textblock
25162 #: ../fish/guestfish-commands.pod:105
25163 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
25164 msgstr ""
25165
25166 # type: verbatim
25167 #: ../fish/guestfish-commands.pod:107
25168 #, no-wrap
25169 msgid ""
25170 " hexedit /dev/sda1 0x400 0x400\n"
25171 "\n"
25172 msgstr ""
25173
25174 # type: textblock
25175 #: ../fish/guestfish-commands.pod:109
25176 msgid "(assuming the superblock is in the standard location)."
25177 msgstr ""
25178
25179 # type: textblock
25180 #: ../fish/guestfish-commands.pod:111
25181 msgid ""
25182 "This command requires the external L<hexedit(1)> program.  You can specify "
25183 "another program to use by setting the C<HEXEDITOR> environment variable."
25184 msgstr ""
25185
25186 # type: textblock
25187 #: ../fish/guestfish-commands.pod:115
25188 msgid "See also L</hexdump>."
25189 msgstr ""
25190
25191 # type: =head2
25192 #: ../fish/guestfish-commands.pod:117
25193 msgid "lcd"
25194 msgstr ""
25195
25196 # type: verbatim
25197 #: ../fish/guestfish-commands.pod:119
25198 #, no-wrap
25199 msgid ""
25200 " lcd directory\n"
25201 "\n"
25202 msgstr ""
25203
25204 # type: textblock
25205 #: ../fish/guestfish-commands.pod:121
25206 msgid "Change the local directory, ie. the current directory of guestfish itself."
25207 msgstr ""
25208
25209 # type: textblock
25210 #: ../fish/guestfish-commands.pod:124
25211 msgid "Note that C<!cd> won't do what you might expect."
25212 msgstr ""
25213
25214 # type: =head2
25215 #: ../fish/guestfish-commands.pod:126
25216 msgid "man"
25217 msgstr ""
25218
25219 # type: =head2
25220 #: ../fish/guestfish-commands.pod:128
25221 msgid "manual"
25222 msgstr ""
25223
25224 # type: verbatim
25225 #: ../fish/guestfish-commands.pod:130
25226 #, no-wrap
25227 msgid ""
25228 "  man\n"
25229 "\n"
25230 msgstr ""
25231
25232 # type: textblock
25233 #: ../fish/guestfish-commands.pod:132
25234 msgid "Opens the manual page for guestfish."
25235 msgstr ""
25236
25237 # type: =head2
25238 #: ../fish/guestfish-commands.pod:134
25239 msgid "more"
25240 msgstr ""
25241
25242 # type: =head2
25243 #: ../fish/guestfish-commands.pod:136
25244 msgid "less"
25245 msgstr ""
25246
25247 # type: verbatim
25248 #: ../fish/guestfish-commands.pod:138
25249 #, no-wrap
25250 msgid ""
25251 " more filename\n"
25252 "\n"
25253 msgstr ""
25254
25255 # type: verbatim
25256 #: ../fish/guestfish-commands.pod:140
25257 #, no-wrap
25258 msgid ""
25259 " less filename\n"
25260 "\n"
25261 msgstr ""
25262
25263 # type: textblock
25264 #: ../fish/guestfish-commands.pod:142
25265 msgid "This is used to view a file."
25266 msgstr ""
25267
25268 # type: textblock
25269 #: ../fish/guestfish-commands.pod:144
25270 msgid ""
25271 "The default viewer is C<$PAGER>.  However if you use the alternate command "
25272 "C<less> you will get the C<less> command specifically."
25273 msgstr ""
25274
25275 # type: =head2
25276 #: ../fish/guestfish-commands.pod:147
25277 msgid "reopen"
25278 msgstr ""
25279
25280 # type: verbatim
25281 #: ../fish/guestfish-commands.pod:149
25282 #, no-wrap
25283 msgid ""
25284 "  reopen\n"
25285 "\n"
25286 msgstr ""
25287
25288 # type: textblock
25289 #: ../fish/guestfish-commands.pod:151
25290 msgid ""
25291 "Close and reopen the libguestfs handle.  It is not necessary to use this "
25292 "normally, because the handle is closed properly when guestfish exits.  "
25293 "However this is occasionally useful for testing."
25294 msgstr ""
25295
25296 # type: =head2
25297 #: ../fish/guestfish-commands.pod:155
25298 msgid "sparse"
25299 msgstr ""
25300
25301 # type: verbatim
25302 #: ../fish/guestfish-commands.pod:157
25303 #, no-wrap
25304 msgid ""
25305 " sparse filename size\n"
25306 "\n"
25307 msgstr ""
25308
25309 # type: textblock
25310 #: ../fish/guestfish-commands.pod:159
25311 msgid ""
25312 "This creates an empty sparse file of the given size, and then adds so it can "
25313 "be further examined."
25314 msgstr ""
25315
25316 # type: textblock
25317 #: ../fish/guestfish-commands.pod:162
25318 msgid ""
25319 "In all respects it works the same as the L</alloc> command, except that the "
25320 "image file is allocated sparsely, which means that disk blocks are not "
25321 "assigned to the file until they are needed.  Sparse disk files only use "
25322 "space when written to, but they are slower and there is a danger you could "
25323 "run out of real disk space during a write operation."
25324 msgstr ""
25325
25326 # type: =head2
25327 #: ../fish/guestfish-commands.pod:172
25328 msgid "supported"
25329 msgstr ""
25330
25331 # type: verbatim
25332 #: ../fish/guestfish-commands.pod:174
25333 #, no-wrap
25334 msgid ""
25335 " supported\n"
25336 "\n"
25337 msgstr ""
25338
25339 # type: textblock
25340 #: ../fish/guestfish-commands.pod:176
25341 msgid ""
25342 "This command returns a list of the optional groups known to the daemon, and "
25343 "indicates which ones are supported by this build of the libguestfs "
25344 "appliance."
25345 msgstr ""
25346
25347 # type: textblock
25348 #: ../fish/guestfish-commands.pod:180
25349 msgid "See also L<guestfs(3)/AVAILABILITY>."
25350 msgstr ""
25351
25352 # type: =head2
25353 #: ../fish/guestfish-commands.pod:182
25354 msgid "time"
25355 msgstr ""
25356
25357 # type: verbatim
25358 #: ../fish/guestfish-commands.pod:184
25359 #, no-wrap
25360 msgid ""
25361 " time command args...\n"
25362 "\n"
25363 msgstr ""
25364
25365 # type: textblock
25366 #: ../fish/guestfish-commands.pod:186
25367 msgid ""
25368 "Run the command as usual, but print the elapsed time afterwards.  This can "
25369 "be useful for benchmarking operations."
25370 msgstr ""
25371
25372 # type: textblock
25373 #: ../test-tool/libguestfs-test-tool.pod:5
25374 msgid "libguestfs-test-tool - End user tests for libguestfs"
25375 msgstr ""
25376
25377 # type: verbatim
25378 #: ../test-tool/libguestfs-test-tool.pod:9
25379 #, no-wrap
25380 msgid ""
25381 " libguestfs-test-tool [--options]\n"
25382 "\n"
25383 msgstr ""
25384
25385 # type: textblock
25386 #: ../test-tool/libguestfs-test-tool.pod:13
25387 msgid ""
25388 "libguestfs-test-tool is a test program shipped with libguestfs to end users "
25389 "and developers, to allow them to check basic libguestfs functionality is "
25390 "working.  This is needed because libguestfs occasionally breaks for reasons "
25391 "beyond our control: usually because of changes in the underlying qemu or "
25392 "kernel packages, or the host environment."
25393 msgstr ""
25394
25395 # type: textblock
25396 #: ../test-tool/libguestfs-test-tool.pod:20
25397 msgid "If you suspect a problem in libguestfs, then just run:"
25398 msgstr ""
25399
25400 # type: verbatim
25401 #: ../test-tool/libguestfs-test-tool.pod:22
25402 #, no-wrap
25403 msgid ""
25404 " libguestfs-test-tool\n"
25405 "\n"
25406 msgstr ""
25407
25408 # type: textblock
25409 #: ../test-tool/libguestfs-test-tool.pod:24
25410 msgid "It will print lots of diagnostic messages."
25411 msgstr ""
25412
25413 # type: textblock
25414 #: ../test-tool/libguestfs-test-tool.pod:26
25415 msgid "If it runs to completion successfully, you will see this near the end:"
25416 msgstr ""
25417
25418 # type: verbatim
25419 #: ../test-tool/libguestfs-test-tool.pod:28
25420 #, no-wrap
25421 msgid ""
25422 " ===== TEST FINISHED OK =====\n"
25423 "\n"
25424 msgstr ""
25425
25426 # type: textblock
25427 #: ../test-tool/libguestfs-test-tool.pod:30
25428 msgid "and the test tool will exit with code 0."
25429 msgstr ""
25430
25431 # type: textblock
25432 #: ../test-tool/libguestfs-test-tool.pod:32
25433 msgid ""
25434 "If it fails (and/or exits with non-zero error code), please paste the "
25435 "B<complete, unedited> output of the test tool into a bug report.  More "
25436 "information about reporting bugs can be found on the "
25437 "L<http://libguestfs.org/> website."
25438 msgstr ""
25439
25440 # type: =item
25441 #: ../test-tool/libguestfs-test-tool.pod:41
25442 msgid "I<--help>"
25443 msgstr ""
25444
25445 # type: textblock
25446 #: ../test-tool/libguestfs-test-tool.pod:43
25447 msgid "Display short usage information and exit."
25448 msgstr ""
25449
25450 # type: =item
25451 #: ../test-tool/libguestfs-test-tool.pod:45
25452 msgid "I<--helper /path/to/libguestfs-test-tool-helper>"
25453 msgstr ""
25454
25455 # type: textblock
25456 #: ../test-tool/libguestfs-test-tool.pod:47
25457 msgid ""
25458 "Pass an alternate name for the helper program.  libguestfs-test-tool will "
25459 "normally look in the C<$libexec> directory that was configured when the tool "
25460 "was built."
25461 msgstr ""
25462
25463 # type: =item
25464 #: ../test-tool/libguestfs-test-tool.pod:51
25465 msgid "I<--qemu qemu_binary>"
25466 msgstr ""
25467
25468 # type: textblock
25469 #: ../test-tool/libguestfs-test-tool.pod:53
25470 msgid ""
25471 "If you have downloaded another qemu binary, point this option at the full "
25472 "path of the binary to try it."
25473 msgstr ""
25474
25475 # type: =item
25476 #: ../test-tool/libguestfs-test-tool.pod:56
25477 msgid "I<--qemudir qemu_source_dir>"
25478 msgstr ""
25479
25480 # type: textblock
25481 #: ../test-tool/libguestfs-test-tool.pod:58
25482 msgid ""
25483 "If you have compiled qemu from source, point this option at the source "
25484 "directory to try it."
25485 msgstr ""
25486
25487 # type: =item
25488 #: ../test-tool/libguestfs-test-tool.pod:61
25489 msgid "I<--timeout N>"
25490 msgstr ""
25491
25492 # type: textblock
25493 #: ../test-tool/libguestfs-test-tool.pod:63
25494 msgid ""
25495 "Set the launch timeout to C<N> seconds.  The default is 120 seconds which "
25496 "does not usually need to be adjusted unless your machine is very slow."
25497 msgstr ""
25498
25499 # type: =head1
25500 #: ../test-tool/libguestfs-test-tool.pod:69
25501 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
25502 msgstr ""
25503
25504 # type: textblock
25505 #: ../test-tool/libguestfs-test-tool.pod:71
25506 msgid ""
25507 "If you have compiled another version of qemu from source and would like to "
25508 "try that, then you can use the I<--qemudir> option to point to the qemu "
25509 "source directory."
25510 msgstr ""
25511
25512 # type: textblock
25513 #: ../test-tool/libguestfs-test-tool.pod:75
25514 msgid ""
25515 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
25516 "option to point to the binary."
25517 msgstr ""
25518
25519 # type: textblock
25520 #: ../test-tool/libguestfs-test-tool.pod:78
25521 msgid ""
25522 "When using an alternate qemu with libguestfs, usually you would need to "
25523 "write a qemu wrapper script (see section I<QEMU WRAPPERS> in "
25524 "L<guestfs(3)>).  libguestfs-test-tool writes a temporary qemu wrapper script "
25525 "when you use either of the I<--qemudir> or I<--qemu> options."
25526 msgstr ""
25527
25528 # type: textblock
25529 #: ../test-tool/libguestfs-test-tool.pod:85
25530 msgid ""
25531 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
25532 "I<1> if there was an error."
25533 msgstr ""
25534
25535 # type: =item
25536 #: ../test-tool/libguestfs-test-tool.pod:92
25537 msgid "/usr/libexec/libguestfs-test-tool-helper"
25538 msgstr ""
25539
25540 # type: textblock
25541 #: ../test-tool/libguestfs-test-tool.pod:94
25542 msgid ""
25543 "This helper program is run inside the appliance and provides additional "
25544 "tests."
25545 msgstr ""
25546
25547 # type: =item
25548 #: ../test-tool/libguestfs-test-tool.pod:97
25549 msgid "/usr/bin/mkisofs"
25550 msgstr ""
25551
25552 # type: textblock
25553 #: ../test-tool/libguestfs-test-tool.pod:99
25554 msgid ""
25555 "The C<mkisofs> command is required in order to construct a CD-ROM ISO file "
25556 "which is used as part of the tests."
25557 msgstr ""
25558
25559 # type: textblock
25560 #: ../test-tool/libguestfs-test-tool.pod:106
25561 msgid ""
25562 "For the full list of environment variables which may affect libguestfs, "
25563 "please see the L<guestfs(3)> manual page."
25564 msgstr ""
25565
25566 # type: textblock
25567 #: ../test-tool/libguestfs-test-tool.pod:111
25568 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
25569 msgstr ""
25570
25571 # type: textblock
25572 #: ../test-tool/libguestfs-test-tool.pod:121
25573 msgid "Copyright (C) 2009 Red Hat Inc.  L<http://libguestfs.org/>"
25574 msgstr ""
25575
25576 # type: textblock
25577 #: ../fuse/guestmount.pod:5
25578 msgid "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
25579 msgstr ""
25580
25581 # type: verbatim
25582 #: ../fuse/guestmount.pod:9
25583 #, no-wrap
25584 msgid ""
25585 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
25586 "\n"
25587 msgstr ""
25588
25589 # type: verbatim
25590 #: ../fuse/guestmount.pod:11
25591 #, no-wrap
25592 msgid ""
25593 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
25594 "\n"
25595 msgstr ""
25596
25597 # type: verbatim
25598 #: ../fuse/guestmount.pod:13
25599 #, no-wrap
25600 msgid ""
25601 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
25602 "\n"
25603 msgstr ""
25604
25605 # type: textblock
25606 #: ../fuse/guestmount.pod:17
25607 msgid ""
25608 "You must I<not> use C<guestmount> in read-write mode on live virtual "
25609 "machines.  If you do this, you risk disk corruption in the VM."
25610 msgstr ""
25611
25612 # type: textblock
25613 #: ../fuse/guestmount.pod:22
25614 msgid ""
25615 "The guestmount program can be used to mount virtual machine filesystems and "
25616 "other disk images on the host.  It uses libguestfs for access to the guest "
25617 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
25618 "a mountable device."
25619 msgstr ""
25620
25621 # type: textblock
25622 #: ../fuse/guestmount.pod:27
25623 msgid ""
25624 "Along with other options, you have to give at least one device (I<-a> "
25625 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
25626 "option) or use the I<-i> inspection option.  How this works is better "
25627 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
25628 "below."
25629 msgstr ""
25630
25631 # type: textblock
25632 #: ../fuse/guestmount.pod:33
25633 msgid ""
25634 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
25635 "by you, and the filesystem will not be visible to any other users unless you "
25636 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
25637 "the filesystem, use the C<fusermount -u> command."
25638 msgstr ""
25639
25640 # type: textblock
25641 #: ../fuse/guestmount.pod:41
25642 msgid ""
25643 "For a typical Windows guest which has its main filesystem on the first "
25644 "partition:"
25645 msgstr ""
25646
25647 # type: verbatim
25648 #: ../fuse/guestmount.pod:44
25649 #, no-wrap
25650 msgid ""
25651 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
25652 "\n"
25653 msgstr ""
25654
25655 # type: textblock
25656 #: ../fuse/guestmount.pod:46
25657 msgid ""
25658 "For a typical Linux guest which has a /boot filesystem on the first "
25659 "partition, and the root filesystem on a logical volume:"
25660 msgstr ""
25661
25662 # type: verbatim
25663 #: ../fuse/guestmount.pod:49
25664 #, no-wrap
25665 msgid ""
25666 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
25667 "\n"
25668 msgstr ""
25669
25670 # type: textblock
25671 #: ../fuse/guestmount.pod:51
25672 msgid "To get libguestfs to detect guest mountpoints for you:"
25673 msgstr ""
25674
25675 # type: verbatim
25676 #: ../fuse/guestmount.pod:53
25677 #, no-wrap
25678 msgid ""
25679 " guestmount -a guest.img -i --ro /mnt\n"
25680 "\n"
25681 msgstr ""
25682
25683 # type: textblock
25684 #: ../fuse/guestmount.pod:55
25685 msgid "For a libvirt guest called \"Guest\" you could do:"
25686 msgstr ""
25687
25688 # type: verbatim
25689 #: ../fuse/guestmount.pod:57
25690 #, no-wrap
25691 msgid ""
25692 " guestmount -d Guest -i --ro /mnt\n"
25693 "\n"
25694 msgstr ""
25695
25696 # type: textblock
25697 #: ../fuse/guestmount.pod:59
25698 msgid ""
25699 "If you don't know what filesystems are contained in a guest or disk image, "
25700 "use L<virt-filesystems(1)> first:"
25701 msgstr ""
25702
25703 # type: verbatim
25704 #: ../fuse/guestmount.pod:62
25705 #, no-wrap
25706 msgid ""
25707 " virt-filesystems MyGuest\n"
25708 "\n"
25709 msgstr ""
25710
25711 # type: textblock
25712 #: ../fuse/guestmount.pod:64
25713 msgid ""
25714 "If you want to trace the libguestfs calls but without excessive debugging "
25715 "information, we recommend:"
25716 msgstr ""
25717
25718 # type: verbatim
25719 #: ../fuse/guestmount.pod:67
25720 #, no-wrap
25721 msgid ""
25722 " guestmount [...] --trace /mnt\n"
25723 "\n"
25724 msgstr ""
25725
25726 # type: textblock
25727 #: ../fuse/guestmount.pod:69
25728 msgid "If you want to debug the program, we recommend:"
25729 msgstr ""
25730
25731 # type: verbatim
25732 #: ../fuse/guestmount.pod:71
25733 #, no-wrap
25734 msgid ""
25735 " guestmount [...] --trace --verbose /mnt\n"
25736 "\n"
25737 msgstr ""
25738
25739 # type: =item
25740 #: ../fuse/guestmount.pod:77
25741 msgid "B<-a image> | B<--add image>"
25742 msgstr ""
25743
25744 # type: textblock
25745 #: ../fuse/guestmount.pod:79
25746 msgid "Add a block device or virtual machine image."
25747 msgstr ""
25748
25749 # type: =item
25750 #: ../fuse/guestmount.pod:84
25751 msgid "B<-c URI> | B<--connect URI>"
25752 msgstr ""
25753
25754 # type: =item
25755 #: ../fuse/guestmount.pod:90
25756 msgid "B<-d libvirt-domain> | B<--domain libvirt-domain>"
25757 msgstr ""
25758
25759 # type: =item
25760 #: ../fuse/guestmount.pod:96
25761 msgid "B<--dir-cache-timeout N>"
25762 msgstr ""
25763
25764 # type: textblock
25765 #: ../fuse/guestmount.pod:98
25766 msgid ""
25767 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
25768 "seconds.  The readdir cache [actually, there are several semi-independent "
25769 "caches] is populated after a readdir(2) call with the stat and extended "
25770 "attributes of the files in the directory, in anticipation that they will be "
25771 "requested soon after."
25772 msgstr ""
25773
25774 # type: textblock
25775 #: ../fuse/guestmount.pod:104
25776 msgid ""
25777 "There is also a different attribute cache implemented by FUSE (see the FUSE "
25778 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
25779 "requests, only cache existing ones."
25780 msgstr ""
25781
25782 # type: =item
25783 #: ../fuse/guestmount.pod:115
25784 msgid "B<--format=raw|qcow2|..> | B<--format>"
25785 msgstr ""
25786
25787 # type: textblock
25788 #: ../fuse/guestmount.pod:122
25789 msgid ""
25790 "If you have untrusted raw-format guest disk images, you should use this "
25791 "option to specify the disk format.  This avoids a possible security problem "
25792 "with malicious guests (CVE-2010-3851).  See also "
25793 "L<guestfs(3)/guestfs_add_drive_opts>."
25794 msgstr ""
25795
25796 # type: =item
25797 #: ../fuse/guestmount.pod:127
25798 msgid "B<--fuse-help>"
25799 msgstr ""
25800
25801 # type: textblock
25802 #: ../fuse/guestmount.pod:129
25803 msgid "Display help on special FUSE options (see I<-o> below)."
25804 msgstr ""
25805
25806 # type: textblock
25807 #: ../fuse/guestmount.pod:133
25808 msgid "Display brief help and exit."
25809 msgstr ""
25810
25811 # type: =item
25812 #: ../fuse/guestmount.pod:135
25813 msgid "B<-i> | B<--inspector>"
25814 msgstr ""
25815
25816 # type: =item
25817 #: ../fuse/guestmount.pod:146
25818 msgid "B<-m dev[:mnt]> | B<--mount dev[:mnt]>"
25819 msgstr ""
25820
25821 # type: textblock
25822 #: ../fuse/guestmount.pod:148
25823 msgid ""
25824 "Mount the named partition or logical volume on the given mountpoint B<in the "
25825 "guest> (this has nothing to do with mountpoints in the host)."
25826 msgstr ""
25827
25828 # type: textblock
25829 #: ../fuse/guestmount.pod:151
25830 msgid ""
25831 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
25832 "something on C</>."
25833 msgstr ""
25834
25835 # type: =item
25836 #: ../fuse/guestmount.pod:154
25837 msgid "B<-n> | B<--no-sync>"
25838 msgstr ""
25839
25840 # type: textblock
25841 #: ../fuse/guestmount.pod:156
25842 msgid ""
25843 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
25844 "unmounted.  If you specify this option, then we don't attempt to sync the "
25845 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
25846 msgstr ""
25847
25848 # type: =item
25849 #: ../fuse/guestmount.pod:161
25850 msgid "B<-o option> | B<--option option>"
25851 msgstr ""
25852
25853 # type: textblock
25854 #: ../fuse/guestmount.pod:163
25855 msgid "Pass extra options to FUSE."
25856 msgstr ""
25857
25858 # type: textblock
25859 #: ../fuse/guestmount.pod:165
25860 msgid ""
25861 "To get a list of all the extra options supported by FUSE, use the command "
25862 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
25863 "of them are a good idea."
25864 msgstr ""
25865
25866 # type: verbatim
25867 #: ../fuse/guestmount.pod:169
25868 #, no-wrap
25869 msgid ""
25870 " guestmount --fuse-help\n"
25871 "\n"
25872 msgstr ""
25873
25874 # type: textblock
25875 #: ../fuse/guestmount.pod:171
25876 msgid "Some potentially useful FUSE options:"
25877 msgstr ""
25878
25879 # type: =item
25880 #: ../fuse/guestmount.pod:175
25881 msgid "B<-o allow_other>"
25882 msgstr ""
25883
25884 # type: textblock
25885 #: ../fuse/guestmount.pod:177
25886 msgid "Allow other users to see the filesystem."
25887 msgstr ""
25888
25889 # type: =item
25890 #: ../fuse/guestmount.pod:179
25891 msgid "B<-o attr_timeout=N>"
25892 msgstr ""
25893
25894 # type: textblock
25895 #: ../fuse/guestmount.pod:181
25896 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
25897 msgstr ""
25898
25899 # type: =item
25900 #: ../fuse/guestmount.pod:183
25901 msgid "B<-o kernel_cache>"
25902 msgstr ""
25903
25904 # type: textblock
25905 #: ../fuse/guestmount.pod:185
25906 msgid ""
25907 "Allow the kernel to cache files (reduces the number of reads that have to go "
25908 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
25909 "afford the extra memory usage."
25910 msgstr ""
25911
25912 # type: =item
25913 #: ../fuse/guestmount.pod:189
25914 msgid "B<-o uid=N> B<-o gid=N>"
25915 msgstr ""
25916
25917 # type: textblock
25918 #: ../fuse/guestmount.pod:191
25919 msgid ""
25920 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
25921 "the chosen values."
25922 msgstr ""
25923
25924 # type: =item
25925 #: ../fuse/guestmount.pod:196
25926 msgid "B<-r> | B<--ro>"
25927 msgstr ""
25928
25929 # type: textblock
25930 #: ../fuse/guestmount.pod:198
25931 msgid ""
25932 "Add devices and mount everything read-only.  Also disallow writes and make "
25933 "the disk appear read-only to FUSE."
25934 msgstr ""
25935
25936 # type: textblock
25937 #: ../fuse/guestmount.pod:201
25938 msgid ""
25939 "This is highly recommended if you are not going to edit the guest disk.  If "
25940 "the guest is running and this option is I<not> supplied, then there is a "
25941 "strong risk of disk corruption in the guest.  We try to prevent this from "
25942 "happening, but it is not always possible."
25943 msgstr ""
25944
25945 # type: textblock
25946 #: ../fuse/guestmount.pod:206
25947 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
25948 msgstr ""
25949
25950 # type: textblock
25951 #: ../fuse/guestmount.pod:210
25952 msgid "Enable SELinux support for the guest."
25953 msgstr ""
25954
25955 # type: =item
25956 #: ../fuse/guestmount.pod:212
25957 msgid "B<-v> | B<--verbose>"
25958 msgstr ""
25959
25960 # type: textblock
25961 #: ../fuse/guestmount.pod:214
25962 msgid "Enable verbose messages from underlying libguestfs."
25963 msgstr ""
25964
25965 # type: =item
25966 #: ../fuse/guestmount.pod:216
25967 msgid "B<-V> | B<--version>"
25968 msgstr ""
25969
25970 # type: textblock
25971 #: ../fuse/guestmount.pod:218
25972 msgid "Display the program version and exit."
25973 msgstr ""
25974
25975 # type: =item
25976 #: ../fuse/guestmount.pod:220
25977 msgid "B<-w> | B<--rw>"
25978 msgstr ""
25979
25980 # type: textblock
25981 #: ../fuse/guestmount.pod:222
25982 msgid ""
25983 "This option does nothing at the moment.  See L<guestfish(1)/OPENING DISKS "
25984 "FOR READ AND WRITE>."
25985 msgstr ""
25986
25987 # type: =item
25988 #: ../fuse/guestmount.pod:225
25989 msgid "B<-x> | B<--trace>"
25990 msgstr ""
25991
25992 # type: textblock
25993 #: ../fuse/guestmount.pod:227
25994 msgid "Trace libguestfs calls."
25995 msgstr ""
25996
25997 # type: textblock
25998 #: ../fuse/guestmount.pod:229
25999 msgid "This also stops the daemon from forking into the background."
26000 msgstr ""
26001
26002 # type: textblock
26003 #: ../fuse/guestmount.pod:235
26004 msgid ""
26005 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
26006 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, "
26007 "L<http://fuse.sf.net/>."
26008 msgstr ""
26009
26010 # type: textblock
26011 #: ../tools/virt-edit.pl:34
26012 msgid "virt-edit - Edit a file in a virtual machine"
26013 msgstr ""
26014
26015 # type: verbatim
26016 #: ../tools/virt-edit.pl:38
26017 #, no-wrap
26018 msgid ""
26019 " virt-edit [--options] domname file\n"
26020 "\n"
26021 msgstr ""
26022
26023 # type: verbatim
26024 #: ../tools/virt-edit.pl:40
26025 #, no-wrap
26026 msgid ""
26027 " virt-edit [--options] disk.img [disk.img ...] file\n"
26028 "\n"
26029 msgstr ""
26030
26031 # type: verbatim
26032 #: ../tools/virt-edit.pl:42
26033 #, no-wrap
26034 msgid ""
26035 " virt-edit [domname|disk.img] file -e 'expr'\n"
26036 "\n"
26037 msgstr ""
26038
26039 # type: textblock
26040 #: ../tools/virt-edit.pl:46
26041 msgid ""
26042 "You must I<not> use C<virt-edit> on live virtual machines.  If you do this, "
26043 "you risk disk corruption in the VM.  C<virt-edit> tries to stop you from "
26044 "doing this, but doesn't catch all cases."
26045 msgstr ""
26046
26047 # type: textblock
26048 #: ../tools/virt-edit.pl:52
26049 msgid ""
26050 "C<virt-edit> is a command line tool to edit C<file> where C<file> exists in "
26051 "the named virtual machine (or disk image)."
26052 msgstr ""
26053
26054 # type: textblock
26055 #: ../tools/virt-edit.pl:55
26056 msgid ""
26057 "If you want to just view a file, use L<virt-cat(1)>.  For more complex cases "
26058 "you should look at the L<guestfish(1)> tool."
26059 msgstr ""
26060
26061 # type: textblock
26062 #: ../tools/virt-edit.pl:60
26063 msgid "Edit the named files interactively:"
26064 msgstr ""
26065
26066 # type: verbatim
26067 #: ../tools/virt-edit.pl:62
26068 #, no-wrap
26069 msgid ""
26070 " virt-edit mydomain /boot/grub/grub.conf\n"
26071 "\n"
26072 msgstr ""
26073
26074 # type: verbatim
26075 #: ../tools/virt-edit.pl:64
26076 #, no-wrap
26077 msgid ""
26078 " virt-edit mydomain /etc/passwd\n"
26079 "\n"
26080 msgstr ""
26081
26082 # type: textblock
26083 #: ../tools/virt-edit.pl:66
26084 msgid ""
26085 "You can also edit files non-interactively (see L</NON-INTERACTIVE EDITING> "
26086 "below).  To change the init default level to 5:"
26087 msgstr ""
26088
26089 # type: verbatim
26090 #: ../tools/virt-edit.pl:70
26091 #, no-wrap
26092 msgid ""
26093 " virt-edit mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
26094 "\n"
26095 msgstr ""
26096
26097 # type: textblock
26098 #: ../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
26099 msgid "Display brief help."
26100 msgstr ""
26101
26102 # type: textblock
26103 #: ../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
26104 msgid "Display version number and exit."
26105 msgstr ""
26106
26107 # type: =item
26108 #: ../tools/virt-edit.pl:96
26109 msgid "B<--backup extension> | B<-b extension>"
26110 msgstr ""
26111
26112 # type: textblock
26113 #: ../tools/virt-edit.pl:98
26114 msgid ""
26115 "Create a backup of the original file I<in the guest disk image>.  The backup "
26116 "has the original filename with C<extension> added."
26117 msgstr ""
26118
26119 # type: textblock
26120 #: ../tools/virt-edit.pl:101
26121 msgid ""
26122 "Usually the first character of C<extension> would be a dot C<.> so you would "
26123 "write:"
26124 msgstr ""
26125
26126 # type: verbatim
26127 #: ../tools/virt-edit.pl:104
26128 #, no-wrap
26129 msgid ""
26130 " virt-edit -b .orig [etc]\n"
26131 "\n"
26132 msgstr ""
26133
26134 # type: textblock
26135 #: ../tools/virt-edit.pl:106
26136 msgid "By default, no backup file is made."
26137 msgstr ""
26138
26139 # type: =item
26140 #: ../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
26141 msgid "B<--connect URI> | B<-c URI>"
26142 msgstr ""
26143
26144 # type: textblock
26145 #: ../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
26146 msgid ""
26147 "If using libvirt, connect to the given I<URI>.  If omitted, then we connect "
26148 "to the default libvirt hypervisor."
26149 msgstr ""
26150
26151 # type: textblock
26152 #: ../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
26153 msgid ""
26154 "If you specify guest block devices directly, then libvirt is not used at "
26155 "all."
26156 msgstr ""
26157
26158 # type: =item
26159 #: ../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
26160 msgid "B<--format> raw"
26161 msgstr ""
26162
26163 # type: textblock
26164 #: ../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
26165 msgid ""
26166 "Specify the format of disk images given on the command line.  If this is "
26167 "omitted then the format is autodetected from the content of the disk image."
26168 msgstr ""
26169
26170 # type: textblock
26171 #: ../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
26172 msgid ""
26173 "If disk images are requested from libvirt, then this program asks libvirt "
26174 "for this information.  In this case, the value of the format parameter is "
26175 "ignored."
26176 msgstr ""
26177
26178 # type: textblock
26179 #: ../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
26180 msgid ""
26181 "If working with untrusted raw-format guest disk images, you should ensure "
26182 "the format is always specified."
26183 msgstr ""
26184
26185 # type: =item
26186 #: ../tools/virt-edit.pl:141
26187 msgid "B<--expr EXPR> | B<-e EXPR>"
26188 msgstr ""
26189
26190 # type: textblock
26191 #: ../tools/virt-edit.pl:143
26192 msgid ""
26193 "Instead of launching the external editor, non-interactively apply the Perl "
26194 "expression C<EXPR> to each line in the file.  See L</NON-INTERACTIVE "
26195 "EDITING> below."
26196 msgstr ""
26197
26198 # type: textblock
26199 #: ../tools/virt-edit.pl:147
26200 msgid ""
26201 "Be careful to properly quote the expression to prevent it from being altered "
26202 "by the shell."
26203 msgstr ""
26204
26205 # type: =head1
26206 #: ../tools/virt-edit.pl:268
26207 msgid "NON-INTERACTIVE EDITING"
26208 msgstr ""
26209
26210 # type: textblock
26211 #: ../tools/virt-edit.pl:270
26212 msgid ""
26213 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
26214 "administrator can interactively edit the file."
26215 msgstr ""
26216
26217 # type: textblock
26218 #: ../tools/virt-edit.pl:273
26219 msgid ""
26220 "There are two ways also to use C<virt-edit> from scripts in order to make "
26221 "automated edits to files.  (Note that although you I<can> use C<virt-edit> "
26222 "like this, it's less error-prone to write scripts directly using the "
26223 "libguestfs API and Augeas for configuration file editing.)"
26224 msgstr ""
26225
26226 # type: textblock
26227 #: ../tools/virt-edit.pl:279
26228 msgid ""
26229 "The first method is to temporarily set C<$EDITOR> to any script or program "
26230 "you want to run.  The script is invoked as C<$EDITOR tmpfile> and it should "
26231 "update C<tmpfile> in place however it likes."
26232 msgstr ""
26233
26234 # type: textblock
26235 #: ../tools/virt-edit.pl:283
26236 msgid ""
26237 "The second method is to use the C<-e> parameter of C<virt-edit> to run a "
26238 "short Perl snippet in the style of L<sed(1)>.  For example to replace all "
26239 "instances of C<foo> with C<bar> in a file:"
26240 msgstr ""
26241
26242 # type: verbatim
26243 #: ../tools/virt-edit.pl:287
26244 #, no-wrap
26245 msgid ""
26246 " virt-edit domname filename -e 's/foo/bar/'\n"
26247 "\n"
26248 msgstr ""
26249
26250 # type: textblock
26251 #: ../tools/virt-edit.pl:289
26252 msgid ""
26253 "The full power of Perl regular expressions can be used (see L<perlre(1)>).  "
26254 "For example to delete root's password you could do:"
26255 msgstr ""
26256
26257 # type: verbatim
26258 #: ../tools/virt-edit.pl:292
26259 #, no-wrap
26260 msgid ""
26261 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
26262 "\n"
26263 msgstr ""
26264
26265 # type: textblock
26266 #: ../tools/virt-edit.pl:294
26267 msgid ""
26268 "What really happens is that the snippet is evaluated as a Perl expression "
26269 "for each line of the file.  The line, including the final C<\\n>, is passed "
26270 "in C<$_> and the expression should update C<$_> or leave it unchanged."
26271 msgstr ""
26272
26273 # type: textblock
26274 #: ../tools/virt-edit.pl:299
26275 msgid ""
26276 "To delete a line, set C<$_> to the empty string.  For example, to delete the "
26277 "C<apache> user account from the password file you can do:"
26278 msgstr ""
26279
26280 # type: verbatim
26281 #: ../tools/virt-edit.pl:302
26282 #, no-wrap
26283 msgid ""
26284 " virt-edit mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
26285 "\n"
26286 msgstr ""
26287
26288 # type: textblock
26289 #: ../tools/virt-edit.pl:304
26290 msgid ""
26291 "To insert a line, prepend or append it to C<$_>.  However appending lines to "
26292 "the end of the file is rather difficult this way since there is no concept "
26293 "of \"last line of the file\" - your expression just doesn't get called "
26294 "again.  You might want to use the first method (setting C<$EDITOR>) if you "
26295 "want to do this."
26296 msgstr ""
26297
26298 # type: textblock
26299 #: ../tools/virt-edit.pl:310
26300 msgid ""
26301 "The variable C<$lineno> contains the current line number.  As is "
26302 "traditional, the first line in the file is number C<1>."
26303 msgstr ""
26304
26305 # type: textblock
26306 #: ../tools/virt-edit.pl:313
26307 msgid ""
26308 "The return value from the expression is ignored, but the expression may call "
26309 "C<die> in order to abort the whole program, leaving the original file "
26310 "untouched."
26311 msgstr ""
26312
26313 # type: textblock
26314 #: ../tools/virt-edit.pl:317
26315 msgid ""
26316 "Remember when matching the end of a line that C<$_> may contain the final "
26317 "C<\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
26318 "newline then neither of these.  Thus to match or substitute some text at the "
26319 "end of a line, use this regular expression:"
26320 msgstr ""
26321
26322 # type: verbatim
26323 #: ../tools/virt-edit.pl:322
26324 #, no-wrap
26325 msgid ""
26326 " /some text(\\r?\\n)?$/\n"
26327 "\n"
26328 msgstr ""
26329
26330 # type: textblock
26331 #: ../tools/virt-edit.pl:324
26332 msgid ""
26333 "Alternately, use the perl C<chomp> function, being careful not to chomp "
26334 "C<$_> itself (since that would remove all newlines from the file):"
26335 msgstr ""
26336
26337 # type: verbatim
26338 #: ../tools/virt-edit.pl:328
26339 #, no-wrap
26340 msgid ""
26341 " my $m = $_; chomp $m; $m =~ /some text$/\n"
26342 "\n"
26343 msgstr ""
26344
26345 # type: =item
26346 #: ../tools/virt-edit.pl:334
26347 msgid "C<EDITOR>"
26348 msgstr ""
26349
26350 # type: textblock
26351 #: ../tools/virt-edit.pl:336
26352 msgid ""
26353 "If set, this string is used as the editor.  It may contain arguments, "
26354 "eg. C<\"emacs -nw\">"
26355 msgstr ""
26356
26357 # type: textblock
26358 #: ../tools/virt-edit.pl:339
26359 msgid "If not set, C<vi> is used."
26360 msgstr ""
26361
26362 # type: =head1
26363 #: ../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
26364 msgid "SHELL QUOTING"
26365 msgstr ""
26366
26367 # type: textblock
26368 #: ../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
26369 msgid ""
26370 "Libvirt guest names can contain arbitrary characters, some of which have "
26371 "meaning to the shell such as C<#> and space.  You may need to quote or "
26372 "escape these characters on the command line.  See the shell manual page "
26373 "L<sh(1)> for details."
26374 msgstr ""
26375
26376 # type: textblock
26377 #: ../tools/virt-edit.pl:352
26378 msgid ""
26379 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, "
26380 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>, "
26381 "L<perl(1)>, L<perlre(1)>."
26382 msgstr ""
26383
26384 # type: =head1
26385 #: ../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
26386 msgid "AUTHOR"
26387 msgstr ""
26388
26389 # type: textblock
26390 #: ../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
26391 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
26392 msgstr ""
26393
26394 # type: textblock
26395 #: ../tools/virt-edit.pl:368 ../tools/virt-list-partitions.pl:275
26396 msgid "Copyright (C) 2009-2010 Red Hat Inc."
26397 msgstr ""
26398
26399 # type: textblock
26400 #: ../tools/virt-win-reg.pl:37
26401 msgid ""
26402 "virt-win-reg - Export and merge Windows Registry entries from a Windows "
26403 "guest"
26404 msgstr ""
26405
26406 # type: verbatim
26407 #: ../tools/virt-win-reg.pl:41
26408 #, no-wrap
26409 msgid ""
26410 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
26411 "\n"
26412 msgstr ""
26413
26414 # type: verbatim
26415 #: ../tools/virt-win-reg.pl:43
26416 #, no-wrap
26417 msgid ""
26418 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
26419 "\n"
26420 msgstr ""
26421
26422 # type: verbatim
26423 #: ../tools/virt-win-reg.pl:45
26424 #, no-wrap
26425 msgid ""
26426 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
26427 "\n"
26428 msgstr ""
26429
26430 # type: verbatim
26431 #: ../tools/virt-win-reg.pl:47
26432 #, no-wrap
26433 msgid ""
26434 " virt-win-reg --merge domname [input.reg ...]\n"
26435 "\n"
26436 msgstr ""
26437
26438 # type: verbatim
26439 #: ../tools/virt-win-reg.pl:49
26440 #, no-wrap
26441 msgid ""
26442 " virt-win-reg [--options] disk.img ... # instead of domname\n"
26443 "\n"
26444 msgstr ""
26445
26446 # type: textblock
26447 #: ../tools/virt-win-reg.pl:53
26448 msgid ""
26449 "You must I<not> use C<virt-win-reg> with the C<--merge> option on live "
26450 "virtual machines.  If you do this, you I<will> get irreversible disk "
26451 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
26452 "but doesn't catch all cases."
26453 msgstr ""
26454
26455 # type: textblock
26456 #: ../tools/virt-win-reg.pl:58
26457 msgid ""
26458 "Modifying the Windows Registry is an inherently risky operation.  The format "
26459 "is deliberately obscure and undocumented, and Registry changes can leave the "
26460 "system unbootable.  Therefore when using the C<--merge> option, make sure "
26461 "you have a reliable backup first."
26462 msgstr ""
26463
26464 # type: textblock
26465 #: ../tools/virt-win-reg.pl:65
26466 msgid ""
26467 "This program can export and merge Windows Registry entries from a Windows "
26468 "guest."
26469 msgstr ""
26470
26471 # type: textblock
26472 #: ../tools/virt-win-reg.pl:68
26473 msgid ""
26474 "The first parameter is the libvirt guest name or the raw disk image of a "
26475 "Windows guest."
26476 msgstr ""
26477
26478 # type: textblock
26479 #: ../tools/virt-win-reg.pl:71
26480 msgid ""
26481 "If C<--merge> is I<not> specified, then the chosen registry key is "
26482 "displayed/exported (recursively).  For example:"
26483 msgstr ""
26484
26485 # type: verbatim
26486 #: ../tools/virt-win-reg.pl:74
26487 #, no-wrap
26488 msgid ""
26489 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
26490 "\n"
26491 msgstr ""
26492
26493 # type: textblock
26494 #: ../tools/virt-win-reg.pl:76
26495 msgid "You can also display single values from within registry keys, for example:"
26496 msgstr ""
26497
26498 # type: verbatim
26499 #: ../tools/virt-win-reg.pl:79
26500 #, no-wrap
26501 msgid ""
26502 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
26503 " $ virt-win-reg Windows7 $cvkey ProductName\n"
26504 " Windows 7 Enterprise\n"
26505 "\n"
26506 msgstr ""
26507
26508 # type: textblock
26509 #: ../tools/virt-win-reg.pl:83
26510 msgid ""
26511 "With C<--merge>, you can merge a textual regedit file into the Windows "
26512 "Registry:"
26513 msgstr ""
26514
26515 # type: verbatim
26516 #: ../tools/virt-win-reg.pl:86
26517 #, no-wrap
26518 msgid ""
26519 " $ virt-win-reg --merge Windows7 changes.reg\n"
26520 "\n"
26521 msgstr ""
26522
26523 # type: =head2
26524 #: ../tools/virt-win-reg.pl:88
26525 msgid "NOTE"
26526 msgstr ""
26527
26528 # type: textblock
26529 #: ../tools/virt-win-reg.pl:90
26530 msgid ""
26531 "This program is only meant for simple access to the registry.  If you want "
26532 "to do complicated things with the registry, we suggest you download the "
26533 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
26534 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
26535 "L<hivexregedit(1)>."
26536 msgstr ""
26537
26538 # type: =item
26539 #: ../tools/virt-win-reg.pl:120 ../tools/virt-make-fs.pl:177
26540 msgid "B<--debug>"
26541 msgstr ""
26542
26543 # type: textblock
26544 #: ../tools/virt-win-reg.pl:122 ../tools/virt-resize.pl:498
26545 msgid "Enable debugging messages."
26546 msgstr ""
26547
26548 # type: =item
26549 #: ../tools/virt-win-reg.pl:157
26550 msgid "B<--merge>"
26551 msgstr ""
26552
26553 # type: textblock
26554 #: ../tools/virt-win-reg.pl:159
26555 msgid ""
26556 "In merge mode, this merges a textual regedit file into the Windows Registry "
26557 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
26558 "displays or exports Registry entries instead."
26559 msgstr ""
26560
26561 # type: textblock
26562 #: ../tools/virt-win-reg.pl:163
26563 msgid ""
26564 "Note that C<--merge> is I<unsafe> to use on live virtual machines, and will "
26565 "result in disk corruption.  However exporting (without this flag)  is always "
26566 "safe."
26567 msgstr ""
26568
26569 # type: =item
26570 #: ../tools/virt-win-reg.pl:171
26571 msgid "B<--encoding> UTF-16LE|ASCII"
26572 msgstr ""
26573
26574 # type: textblock
26575 #: ../tools/virt-win-reg.pl:173
26576 msgid ""
26577 "When merging (only), you may need to specify the encoding for strings to be "
26578 "used in the hive file.  This is explained in detail in "
26579 "L<Win::Hivex::Regedit(3)/ENCODING STRINGS>."
26580 msgstr ""
26581
26582 # type: textblock
26583 #: ../tools/virt-win-reg.pl:177
26584 msgid ""
26585 "The default is to use UTF-16LE, which should work with recent versions of "
26586 "Windows."
26587 msgstr ""
26588
26589 # type: =head1
26590 #: ../tools/virt-win-reg.pl:402
26591 msgid "SUPPORTED SYSTEMS"
26592 msgstr ""
26593
26594 # type: textblock
26595 #: ../tools/virt-win-reg.pl:404
26596 msgid ""
26597 "The program currently supports Windows NT-derived guests starting with "
26598 "Windows XP through to at least Windows 7."
26599 msgstr ""
26600
26601 # type: textblock
26602 #: ../tools/virt-win-reg.pl:407
26603 msgid ""
26604 "Registry support is done for C<HKEY_LOCAL_MACHINE\\SAM>, "
26605 "C<HKEY_LOCAL_MACHINE\\SECURITY>, C<HKEY_LOCAL_MACHINE\\SOFTWARE>, "
26606 "C<HKEY_LOCAL_MACHINE\\SYSTEM> and C<HKEY_USERS\\.DEFAULT>."
26607 msgstr ""
26608
26609 # type: textblock
26610 #: ../tools/virt-win-reg.pl:411
26611 msgid ""
26612 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
26613 "C<HKEY_USERS>."
26614 msgstr ""
26615
26616 # type: textblock
26617 #: ../tools/virt-win-reg.pl:414
26618 msgid ""
26619 "C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are B<not> supported at this "
26620 "time."
26621 msgstr ""
26622
26623 # type: =head1
26624 #: ../tools/virt-win-reg.pl:417
26625 msgid "ENCODING"
26626 msgstr ""
26627
26628 # type: textblock
26629 #: ../tools/virt-win-reg.pl:419
26630 msgid ""
26631 "C<virt-win-reg> expects that regedit files have already been reencoded in "
26632 "the local encoding.  Usually on Linux hosts, this means UTF-8 with "
26633 "Unix-style line endings.  Since Windows regedit files are often in UTF-16LE "
26634 "with Windows-style line endings, you may need to reencode the whole file "
26635 "before or after processing."
26636 msgstr ""
26637
26638 # type: textblock
26639 #: ../tools/virt-win-reg.pl:425
26640 msgid ""
26641 "To reencode a file from Windows format to Linux (before processing it with "
26642 "the C<--merge> option), you would do something like this:"
26643 msgstr ""
26644
26645 # type: verbatim
26646 #: ../tools/virt-win-reg.pl:428
26647 #, no-wrap
26648 msgid ""
26649 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
26650 "\n"
26651 msgstr ""
26652
26653 # type: textblock
26654 #: ../tools/virt-win-reg.pl:430
26655 msgid ""
26656 "To go in the opposite direction, after exporting and before sending the file "
26657 "to a Windows user, do something like this:"
26658 msgstr ""
26659
26660 # type: verbatim
26661 #: ../tools/virt-win-reg.pl:433
26662 #, no-wrap
26663 msgid ""
26664 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
26665 "\n"
26666 msgstr ""
26667
26668 # type: textblock
26669 #: ../tools/virt-win-reg.pl:435
26670 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
26671 msgstr ""
26672
26673 # type: textblock
26674 #: ../tools/virt-win-reg.pl:437
26675 msgid ""
26676 "If you are unsure about the current encoding, use the L<file(1)> command.  "
26677 "Recent versions of Windows regedit.exe produce a UTF-16LE file with "
26678 "Windows-style (CRLF) line endings, like this:"
26679 msgstr ""
26680
26681 # type: verbatim
26682 #: ../tools/virt-win-reg.pl:441
26683 #, no-wrap
26684 msgid ""
26685 " $ file software.reg\n"
26686 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
26687 " with CRLF line terminators\n"
26688 "\n"
26689 msgstr ""
26690
26691 # type: textblock
26692 #: ../tools/virt-win-reg.pl:445
26693 msgid "This file would need conversion before you could C<--merge> it."
26694 msgstr ""
26695
26696 # type: =head1
26697 #: ../tools/virt-win-reg.pl:447
26698 msgid "CurrentControlSet etc."
26699 msgstr ""
26700
26701 # type: textblock
26702 #: ../tools/virt-win-reg.pl:449
26703 msgid ""
26704 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
26705 "Registry at the level of the hive file, and therefore you cannot modify "
26706 "these."
26707 msgstr ""
26708
26709 # type: textblock
26710 #: ../tools/virt-win-reg.pl:453
26711 msgid ""
26712 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
26713 "circumstances it might refer to another control set.  The way to find out is "
26714 "to look at the C<HKLM\\SYSTEM\\Select> key:"
26715 msgstr ""
26716
26717 # type: verbatim
26718 #: ../tools/virt-win-reg.pl:457
26719 #, no-wrap
26720 msgid ""
26721 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
26722 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
26723 " \"Current\"=dword:00000001\n"
26724 " \"Default\"=dword:00000001\n"
26725 " \"Failed\"=dword:00000000\n"
26726 " \"LastKnownGood\"=dword:00000002\n"
26727 "\n"
26728 msgstr ""
26729
26730 # type: textblock
26731 #: ../tools/virt-win-reg.pl:464
26732 msgid "\"Current\" is the one which Windows will choose when it boots."
26733 msgstr ""
26734
26735 # type: textblock
26736 #: ../tools/virt-win-reg.pl:466
26737 msgid "Similarly, other C<Current...> keys in the path may need to be replaced."
26738 msgstr ""
26739
26740 # type: =head1
26741 #: ../tools/virt-win-reg.pl:469
26742 msgid "WINDOWS TIPS"
26743 msgstr ""
26744
26745 # type: textblock
26746 #: ../tools/virt-win-reg.pl:471
26747 msgid ""
26748 "Note that some of these tips modify the guest disk image.  The guest I<must> "
26749 "be shut off, else you will get disk corruption."
26750 msgstr ""
26751
26752 # type: =head2
26753 #: ../tools/virt-win-reg.pl:474
26754 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
26755 msgstr ""
26756
26757 # type: textblock
26758 #: ../tools/virt-win-reg.pl:476
26759 msgid ""
26760 "Prepare a DOS batch script, VBScript or executable.  Upload this using "
26761 "L<guestfish(1)>.  For this example the script is called C<test.bat> and it "
26762 "is uploaded into C<C:\\>:"
26763 msgstr ""
26764
26765 # type: verbatim
26766 #: ../tools/virt-win-reg.pl:480
26767 #, no-wrap
26768 msgid ""
26769 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
26770 "\n"
26771 msgstr ""
26772
26773 # type: textblock
26774 #: ../tools/virt-win-reg.pl:482
26775 msgid "Prepare a regedit file containing the registry change:"
26776 msgstr ""
26777
26778 # type: verbatim
26779 #: ../tools/virt-win-reg.pl:484
26780 #, no-wrap
26781 msgid ""
26782 " cat > test.reg <<'EOF'\n"
26783 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
26784 " \"Test\"=\"c:\\\\test.bat\"\n"
26785 " EOF\n"
26786 "\n"
26787 msgstr ""
26788
26789 # type: textblock
26790 #: ../tools/virt-win-reg.pl:489
26791 msgid ""
26792 "In this example we use the key C<RunOnce> which means that the script will "
26793 "run precisely once when the first user logs in.  If you want it to run every "
26794 "time a user logs in, replace C<RunOnce> with C<Run>."
26795 msgstr ""
26796
26797 # type: textblock
26798 #: ../tools/virt-win-reg.pl:493
26799 msgid "Now update the registry:"
26800 msgstr ""
26801
26802 # type: verbatim
26803 #: ../tools/virt-win-reg.pl:495
26804 #, no-wrap
26805 msgid ""
26806 " virt-win-reg --merge WindowsGuest test.reg\n"
26807 "\n"
26808 msgstr ""
26809
26810 # type: =head2
26811 #: ../tools/virt-win-reg.pl:497
26812 msgid "INSTALLING A SERVICE"
26813 msgstr ""
26814
26815 # type: textblock
26816 #: ../tools/virt-win-reg.pl:499
26817 msgid ""
26818 "This section assumes you are familiar with Windows services, and you either "
26819 "have a program which handles the Windows Service Control Protocol directly "
26820 "or you want to run any program using a service wrapper like SrvAny or the "
26821 "free RHSrvAny."
26822 msgstr ""
26823
26824 # type: textblock
26825 #: ../tools/virt-win-reg.pl:504
26826 msgid ""
26827 "First upload the program and optionally the service wrapper.  In this case "
26828 "the test program is called C<test.exe> and we are using the RHSrvAny "
26829 "wrapper:"
26830 msgstr ""
26831
26832 # type: verbatim
26833 #: ../tools/virt-win-reg.pl:508
26834 #, no-wrap
26835 msgid ""
26836 " guestfish -i -d WindowsGuest <<EOF\n"
26837 "   upload rhsrvany.exe /rhsrvany.exe\n"
26838 "   upload test.exe /test.exe\n"
26839 " EOF\n"
26840 "\n"
26841 msgstr ""
26842
26843 # type: textblock
26844 #: ../tools/virt-win-reg.pl:513
26845 msgid ""
26846 "Prepare a regedit file containing the registry changes.  In this example, "
26847 "the first registry change is needed for the service itself or the service "
26848 "wrapper (if used).  The second registry change is only needed because I am "
26849 "using the RHSrvAny service wrapper."
26850 msgstr ""
26851
26852 # type: verbatim
26853 #: ../tools/virt-win-reg.pl:518
26854 #, no-wrap
26855 msgid ""
26856 " cat > service.reg <<'EOF'\n"
26857 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
26858 " \"Type\"=dword:00000010\n"
26859 " \"Start\"=dword:00000002\n"
26860 " \"ErrorControl\"=dword:00000001\n"
26861 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
26862 " \"DisplayName\"=\"RHSrvAny\"\n"
26863 " \"ObjectName\"=\"NetworkService\"\n"
26864 " \n"
26865 msgstr ""
26866
26867 # type: verbatim
26868 #: ../tools/virt-win-reg.pl:527
26869 #, no-wrap
26870 msgid ""
26871 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
26872 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
26873 " \"PWD\"=\"c:\\\\Temp\"\n"
26874 " EOF\n"
26875 "\n"
26876 msgstr ""
26877
26878 # type: textblock
26879 #: ../tools/virt-win-reg.pl:538
26880 msgid ""
26881 "For use of C<ControlSet001> see the section above in this manual page.  You "
26882 "may need to adjust this according to the control set that is in use by the "
26883 "guest."
26884 msgstr ""
26885
26886 # type: textblock
26887 #: ../tools/virt-win-reg.pl:544
26888 msgid ""
26889 "C<\"ObjectName\"> controls the privileges that the service will have.  An "
26890 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
26891 "privileged account."
26892 msgstr ""
26893
26894 # type: textblock
26895 #: ../tools/virt-win-reg.pl:550
26896 msgid ""
26897 "For the meaning of the magic numbers, see this Microsoft KB article: "
26898 "L<http://support.microsoft.com/kb/103000>."
26899 msgstr ""
26900
26901 # type: textblock
26902 #: ../tools/virt-win-reg.pl:555
26903 msgid "Update the registry:"
26904 msgstr ""
26905
26906 # type: verbatim
26907 #: ../tools/virt-win-reg.pl:557
26908 #, no-wrap
26909 msgid ""
26910 " virt-win-reg --merge WindowsGuest service.reg\n"
26911 "\n"
26912 msgstr ""
26913
26914 # type: textblock
26915 #: ../tools/virt-win-reg.pl:561
26916 msgid ""
26917 "Be careful when passing parameters containing C<\\> (backslash) in the "
26918 "shell.  Usually you will have to use 'single quotes' or double backslashes "
26919 "(but not both) to protect them from the shell."
26920 msgstr ""
26921
26922 # type: textblock
26923 #: ../tools/virt-win-reg.pl:565
26924 msgid "Paths and value names are case-insensitive."
26925 msgstr ""
26926
26927 # type: textblock
26928 #: ../tools/virt-win-reg.pl:574
26929 msgid ""
26930 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, "
26931 "L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, "
26932 "L<Sys::Guestfs::Lib(3)>, L<Win::Hivex(3)>, L<Win::Hivex::Regedit(3)>, "
26933 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
26934 msgstr ""
26935
26936 # type: textblock
26937 #: ../tools/virt-win-reg.pl:589 ../tools/virt-make-fs.pl:550
26938 msgid ""
26939 "When reporting bugs, please enable debugging and capture the I<complete> "
26940 "output:"
26941 msgstr ""
26942
26943 # type: verbatim
26944 #: ../tools/virt-win-reg.pl:592
26945 #, no-wrap
26946 msgid ""
26947 " export LIBGUESTFS_DEBUG=1\n"
26948 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
26949 "\n"
26950 msgstr ""
26951
26952 # type: textblock
26953 #: ../tools/virt-win-reg.pl:595
26954 msgid ""
26955 "Attach /tmp/virt-win-reg.log to a new bug report at "
26956 "L<https://bugzilla.redhat.com/>"
26957 msgstr ""
26958
26959 # type: textblock
26960 #: ../tools/virt-win-reg.pl:604 ../tools/virt-resize.pl:1510 ../tools/virt-make-fs.pl:565
26961 msgid "Copyright (C) 2010 Red Hat Inc."
26962 msgstr ""
26963
26964 # type: textblock
26965 #: ../tools/virt-resize.pl:42
26966 msgid "virt-resize - Resize a virtual machine disk"
26967 msgstr ""
26968
26969 # type: verbatim
26970 #: ../tools/virt-resize.pl:46
26971 #, no-wrap
26972 msgid ""
26973 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
26974 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
26975 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
26976 "\n"
26977 msgstr ""
26978
26979 # type: textblock
26980 #: ../tools/virt-resize.pl:52
26981 msgid ""
26982 "Virt-resize is a tool which can resize a virtual machine disk, making it "
26983 "larger or smaller overall, and resizing or deleting any partitions contained "
26984 "within."
26985 msgstr ""
26986
26987 # type: textblock
26988 #: ../tools/virt-resize.pl:56
26989 msgid ""
26990 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
26991 "not> be used on live virtual machines - for consistent results, shut the "
26992 "virtual machine down before resizing it."
26993 msgstr ""
26994
26995 # type: textblock
26996 #: ../tools/virt-resize.pl:60
26997 msgid ""
26998 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
26999 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
27000 msgstr ""
27001
27002 # type: textblock
27003 #: ../tools/virt-resize.pl:66
27004 msgid ""
27005 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
27006 "fill the extra 5GB of space."
27007 msgstr ""
27008
27009 # type: verbatim
27010 #: ../tools/virt-resize.pl:69
27011 #, no-wrap
27012 msgid ""
27013 " truncate -r olddisk newdisk; truncate -s +5G newdisk\n"
27014 " virt-filesystems --long --h --all -a olddisk\n"
27015 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
27016 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
27017 "\n"
27018 msgstr ""
27019
27020 # type: textblock
27021 #: ../tools/virt-resize.pl:74
27022 msgid ""
27023 "As above, but make the /boot partition 200MB bigger, while giving the "
27024 "remaining space to /dev/sda2:"
27025 msgstr ""
27026
27027 # type: verbatim
27028 #: ../tools/virt-resize.pl:77
27029 #, no-wrap
27030 msgid ""
27031 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 olddisk newdisk\n"
27032 "\n"
27033 msgstr ""
27034
27035 # type: textblock
27036 #: ../tools/virt-resize.pl:79
27037 msgid "As above, but the output format will be uncompressed qcow2:"
27038 msgstr ""
27039
27040 # type: verbatim
27041 #: ../tools/virt-resize.pl:81
27042 #, no-wrap
27043 msgid ""
27044 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
27045 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
27046 "\n"
27047 msgstr ""
27048
27049 # type: =head1
27050 #: ../tools/virt-resize.pl:84
27051 msgid "DETAILED USAGE"
27052 msgstr ""
27053
27054 # type: =head2
27055 #: ../tools/virt-resize.pl:86
27056 msgid "EXPANDING A VIRTUAL MACHINE DISK"
27057 msgstr ""
27058
27059 # type: =item
27060 #: ../tools/virt-resize.pl:90
27061 msgid "1. Shut down the virtual machine"
27062 msgstr ""
27063
27064 # type: =item
27065 #: ../tools/virt-resize.pl:92
27066 msgid "2. Locate input disk image"
27067 msgstr ""
27068
27069 # type: textblock
27070 #: ../tools/virt-resize.pl:94
27071 msgid ""
27072 "Locate the input disk image (ie. the file or device on the host containing "
27073 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
27074 "dumpxml> like this to find the disk image name:"
27075 msgstr ""
27076
27077 # type: verbatim
27078 #: ../tools/virt-resize.pl:98
27079 #, no-wrap
27080 msgid ""
27081 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
27082 " Found 1 nodes:\n"
27083 " -- NODE --\n"
27084 " <source dev=\"/dev/vg/lv_guest\" />\n"
27085 "\n"
27086 msgstr ""
27087
27088 # type: =item
27089 #: ../tools/virt-resize.pl:103
27090 msgid "3. Look at current sizing"
27091 msgstr ""
27092
27093 # type: textblock
27094 #: ../tools/virt-resize.pl:105
27095 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
27096 msgstr ""
27097
27098 # type: verbatim
27099 #: ../tools/virt-resize.pl:108
27100 #, no-wrap
27101 msgid ""
27102 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
27103 " Name       Type       Size  Parent\n"
27104 " /dev/sda1  partition  101M  /dev/sda\n"
27105 " /dev/sda2  partition  7.9G  /dev/sda\n"
27106 " /dev/sda   device     8.0G  -\n"
27107 "\n"
27108 msgstr ""
27109
27110 # type: textblock
27111 #: ../tools/virt-resize.pl:114
27112 msgid ""
27113 "(This example is a virtual machine with an 8 GB disk which we would like to "
27114 "expand up to 10 GB)."
27115 msgstr ""
27116
27117 # type: =item
27118 #: ../tools/virt-resize.pl:117
27119 msgid "4. Create output disk"
27120 msgstr ""
27121
27122 # type: textblock
27123 #: ../tools/virt-resize.pl:119
27124 msgid ""
27125 "Virt-resize cannot do in-place disk modifications.  You have to have space "
27126 "to store the resized output disk."
27127 msgstr ""
27128
27129 # type: textblock
27130 #: ../tools/virt-resize.pl:122
27131 msgid "To store the resized disk image in a file, create a file of a suitable size:"
27132 msgstr ""
27133
27134 # type: verbatim
27135 #: ../tools/virt-resize.pl:125
27136 #, no-wrap
27137 msgid ""
27138 " # rm -f outdisk\n"
27139 " # truncate -s 10G outdisk\n"
27140 "\n"
27141 msgstr ""
27142
27143 # type: textblock
27144 #: ../tools/virt-resize.pl:128
27145 msgid "Or use L<lvcreate(1)> to create a logical volume:"
27146 msgstr ""
27147
27148 # type: verbatim
27149 #: ../tools/virt-resize.pl:130
27150 #, no-wrap
27151 msgid ""
27152 " # lvcreate -L 10G -n lv_name vg_name\n"
27153 "\n"
27154 msgstr ""
27155
27156 # type: textblock
27157 #: ../tools/virt-resize.pl:132
27158 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
27159 msgstr ""
27160
27161 # type: verbatim
27162 #: ../tools/virt-resize.pl:134
27163 #, no-wrap
27164 msgid ""
27165 " # virsh pool-list\n"
27166 " # virsh vol-create-as poolname newvol 10G\n"
27167 "\n"
27168 msgstr ""
27169
27170 # type: =item
27171 #: ../tools/virt-resize.pl:137
27172 msgid "5. Resize"
27173 msgstr ""
27174
27175 # type: textblock
27176 #: ../tools/virt-resize.pl:139
27177 msgid ""
27178 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
27179 "file) and the output disk.  The output disk is the one created in the "
27180 "previous step."
27181 msgstr ""
27182
27183 # type: verbatim
27184 #: ../tools/virt-resize.pl:143
27185 #, no-wrap
27186 msgid ""
27187 " # virt-resize indisk outdisk\n"
27188 "\n"
27189 msgstr ""
27190
27191 # type: textblock
27192 #: ../tools/virt-resize.pl:145
27193 msgid ""
27194 "This command just copies disk image C<indisk> to disk image C<outdisk> "
27195 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
27196 "larger, then an extra, empty partition is created at the end of the disk "
27197 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
27198 "error."
27199 msgstr ""
27200
27201 # type: textblock
27202 #: ../tools/virt-resize.pl:151
27203 msgid ""
27204 "More realistically you'd want to expand existing partitions in the disk "
27205 "image by passing extra options (for the full list see the L</OPTIONS> "
27206 "section below)."
27207 msgstr ""
27208
27209 # type: textblock
27210 #: ../tools/virt-resize.pl:155
27211 msgid ""
27212 "L</--expand> is the most useful option.  It expands the named partition "
27213 "within the disk to fill any extra space:"
27214 msgstr ""
27215
27216 # type: verbatim
27217 #: ../tools/virt-resize.pl:158
27218 #, no-wrap
27219 msgid ""
27220 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
27221 "\n"
27222 msgstr ""
27223
27224 # type: textblock
27225 #: ../tools/virt-resize.pl:160
27226 msgid ""
27227 "(In this case, an extra partition is I<not> created at the end of the disk, "
27228 "because there will be no unused space)."
27229 msgstr ""
27230
27231 # type: textblock
27232 #: ../tools/virt-resize.pl:163
27233 msgid ""
27234 "L</--resize> is the other commonly used option.  The following would "
27235 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
27236 "rest of the available space:"
27237 msgstr ""
27238
27239 # type: verbatim
27240 #: ../tools/virt-resize.pl:167
27241 #, no-wrap
27242 msgid ""
27243 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
27244 "     indisk outdisk\n"
27245 "\n"
27246 msgstr ""
27247
27248 # type: textblock
27249 #: ../tools/virt-resize.pl:170
27250 msgid ""
27251 "If the expanded partition in the image contains a filesystem or LVM PV, then "
27252 "if virt-resize knows how, it will resize the contents, the equivalent of "
27253 "calling a command such as L<pvresize(8)>, L<resize2fs(8)> or "
27254 "L<ntfsresize(8)>.  However virt-resize does not know how to resize some "
27255 "filesystems, so you would have to online resize them after booting the "
27256 "guest."
27257 msgstr ""
27258
27259 # type: textblock
27260 #: ../tools/virt-resize.pl:177
27261 msgid "Other options are covered below."
27262 msgstr ""
27263
27264 # type: =item
27265 #: ../tools/virt-resize.pl:179
27266 msgid "6. Test"
27267 msgstr ""
27268
27269 # type: textblock
27270 #: ../tools/virt-resize.pl:181
27271 msgid "Thoroughly test the new disk image I<before> discarding the old one."
27272 msgstr ""
27273
27274 # type: textblock
27275 #: ../tools/virt-resize.pl:183
27276 msgid "If you are using libvirt, edit the XML to point at the new disk:"
27277 msgstr ""
27278
27279 # type: verbatim
27280 #: ../tools/virt-resize.pl:185
27281 #, no-wrap
27282 msgid ""
27283 " # virsh edit guestname\n"
27284 "\n"
27285 msgstr ""
27286
27287 # type: textblock
27288 #: ../tools/virt-resize.pl:187
27289 msgid ""
27290 "Change E<lt>source ...E<gt>, see "
27291 "L<http://libvirt.org/formatdomain.html#elementsDisks>"
27292 msgstr ""
27293
27294 # type: textblock
27295 #: ../tools/virt-resize.pl:190
27296 msgid "Then start up the domain with the new, resized disk:"
27297 msgstr ""
27298
27299 # type: verbatim
27300 #: ../tools/virt-resize.pl:192
27301 #, no-wrap
27302 msgid ""
27303 " # virsh start guestname\n"
27304 "\n"
27305 msgstr ""
27306
27307 # type: textblock
27308 #: ../tools/virt-resize.pl:194
27309 msgid ""
27310 "and check that it still works.  See also the L</NOTES> section below for "
27311 "additional information."
27312 msgstr ""
27313
27314 # type: =item
27315 #: ../tools/virt-resize.pl:197
27316 msgid "7. Resize LVs etc inside the guest"
27317 msgstr ""
27318
27319 # type: textblock
27320 #: ../tools/virt-resize.pl:199
27321 msgid "(This can also be done offline using L<guestfish(1)>)"
27322 msgstr ""
27323
27324 # type: textblock
27325 #: ../tools/virt-resize.pl:201
27326 msgid ""
27327 "Once the guest has booted you should see the new space available, at least "
27328 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
27329 "may need to resize LVs inside PVs, and also resize filesystem types that "
27330 "virt-resize does not know how to expand."
27331 msgstr ""
27332
27333 # type: =head2
27334 #: ../tools/virt-resize.pl:208
27335 msgid "SHRINKING A VIRTUAL MACHINE DISK"
27336 msgstr ""
27337
27338 # type: textblock
27339 #: ../tools/virt-resize.pl:210
27340 msgid ""
27341 "Shrinking is somewhat more complex than expanding, and only an overview is "
27342 "given here."
27343 msgstr ""
27344
27345 # type: textblock
27346 #: ../tools/virt-resize.pl:213
27347 msgid ""
27348 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
27349 "filesystems).  The user has to shrink content before passing the disk image "
27350 "to virt-resize, and virt-resize will check that the content has been shrunk "
27351 "properly."
27352 msgstr ""
27353
27354 # type: textblock
27355 #: ../tools/virt-resize.pl:218
27356 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
27357 msgstr ""
27358
27359 # type: textblock
27360 #: ../tools/virt-resize.pl:220
27361 msgid ""
27362 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
27363 "steps 3 and 4 above to allocate a new disk image."
27364 msgstr ""
27365
27366 # type: textblock
27367 #: ../tools/virt-resize.pl:223
27368 msgid "Then run virt-resize with any of the C<--shrink> and/or C<--resize> options."
27369 msgstr ""
27370
27371 # type: =head2
27372 #: ../tools/virt-resize.pl:226
27373 msgid "IGNORING OR DELETING PARTITIONS"
27374 msgstr ""
27375
27376 # type: textblock
27377 #: ../tools/virt-resize.pl:228
27378 msgid ""
27379 "virt-resize also gives a convenient way to ignore or delete partitions when "
27380 "copying from the input disk to the output disk.  Ignoring a partition speeds "
27381 "up the copy where you don't care about the existing contents of a "
27382 "partition.  Deleting a partition removes it completely, but note that it "
27383 "also renumbers any partitions after the one which is deleted, which can "
27384 "leave some guests unbootable."
27385 msgstr ""
27386
27387 # type: =head2
27388 #: ../tools/virt-resize.pl:235
27389 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
27390 msgstr ""
27391
27392 # type: textblock
27393 #: ../tools/virt-resize.pl:237
27394 msgid ""
27395 "If the input disk is in qcow2 format, then you may prefer that the output is "
27396 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
27397 "the fly.  The output format is simply determined by the format of the empty "
27398 "output container that you provide.  Thus to create qcow2 output, use:"
27399 msgstr ""
27400
27401 # type: verbatim
27402 #: ../tools/virt-resize.pl:243
27403 #, no-wrap
27404 msgid ""
27405 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
27406 "\n"
27407 msgstr ""
27408
27409 # type: textblock
27410 #: ../tools/virt-resize.pl:245
27411 msgid "instead of the truncate command (use C<-c> for a compressed disk)."
27412 msgstr ""
27413
27414 # type: textblock
27415 #: ../tools/virt-resize.pl:247
27416 msgid "Similarly, to get non-sparse raw output use:"
27417 msgstr ""
27418
27419 # type: verbatim
27420 #: ../tools/virt-resize.pl:249
27421 #, no-wrap
27422 msgid ""
27423 " fallocate -l size outdisk\n"
27424 "\n"
27425 msgstr ""
27426
27427 # type: textblock
27428 #: ../tools/virt-resize.pl:251
27429 msgid ""
27430 "(on older systems that don't have the L<fallocate(1)> command use C<dd "
27431 "if=/dev/zero of=outdisk bs=1M count=..>)"
27432 msgstr ""
27433
27434 # type: textblock
27435 #: ../tools/virt-resize.pl:264
27436 msgid "Display help."
27437 msgstr ""
27438
27439 # type: =item
27440 #: ../tools/virt-resize.pl:278
27441 msgid "B<--resize part=size>"
27442 msgstr ""
27443
27444 # type: textblock
27445 #: ../tools/virt-resize.pl:280
27446 msgid ""
27447 "Resize the named partition (expanding or shrinking it) so that it has the "
27448 "given size."
27449 msgstr ""
27450
27451 # type: textblock
27452 #: ../tools/virt-resize.pl:283
27453 msgid ""
27454 "C<size> can be expressed as an absolute number followed by b/K/M/G/T/P/E to "
27455 "mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Petabytes or "
27456 "Exabytes; or as a percentage of the current size; or as a relative number or "
27457 "percentage.  For example:"
27458 msgstr ""
27459
27460 # type: verbatim
27461 #: ../tools/virt-resize.pl:288
27462 #, no-wrap
27463 msgid ""
27464 " --resize /dev/sda2=10G\n"
27465 "\n"
27466 msgstr ""
27467
27468 # type: verbatim
27469 #: ../tools/virt-resize.pl:290
27470 #, no-wrap
27471 msgid ""
27472 " --resize /dev/sda4=90%\n"
27473 "\n"
27474 msgstr ""
27475
27476 # type: verbatim
27477 #: ../tools/virt-resize.pl:292
27478 #, no-wrap
27479 msgid ""
27480 " --resize /dev/sda2=+1G\n"
27481 "\n"
27482 msgstr ""
27483
27484 # type: verbatim
27485 #: ../tools/virt-resize.pl:294
27486 #, no-wrap
27487 msgid ""
27488 " --resize /dev/sda2=-200M\n"
27489 "\n"
27490 msgstr ""
27491
27492 # type: verbatim
27493 #: ../tools/virt-resize.pl:296
27494 #, no-wrap
27495 msgid ""
27496 " --resize /dev/sda1=+128K\n"
27497 "\n"
27498 msgstr ""
27499
27500 # type: verbatim
27501 #: ../tools/virt-resize.pl:298
27502 #, no-wrap
27503 msgid ""
27504 " --resize /dev/sda1=+10%\n"
27505 "\n"
27506 msgstr ""
27507
27508 # type: verbatim
27509 #: ../tools/virt-resize.pl:300
27510 #, no-wrap
27511 msgid ""
27512 " --resize /dev/sda1=-10%\n"
27513 "\n"
27514 msgstr ""
27515
27516 # type: textblock
27517 #: ../tools/virt-resize.pl:302
27518 msgid ""
27519 "You can increase the size of any partition.  Virt-resize will expand the "
27520 "direct content of the partition if it knows how (see C<--expand> below)."
27521 msgstr ""
27522
27523 # type: textblock
27524 #: ../tools/virt-resize.pl:306
27525 msgid ""
27526 "You can only I<decrease> the size of partitions that contain filesystems or "
27527 "PVs which have already been shrunk.  Virt-resize will check this has been "
27528 "done before proceeding, or else will print an error (see also "
27529 "C<--resize-force>)."
27530 msgstr ""
27531
27532 # type: textblock
27533 #: ../tools/virt-resize.pl:311 ../tools/virt-resize.pl:403 ../tools/virt-resize.pl:420
27534 msgid "You can give this option multiple times."
27535 msgstr ""
27536
27537 # type: =item
27538 #: ../tools/virt-resize.pl:317
27539 msgid "B<--resize-force part=size>"
27540 msgstr ""
27541
27542 # type: textblock
27543 #: ../tools/virt-resize.pl:319
27544 msgid ""
27545 "This is the same as C<--resize> except that it will let you decrease the "
27546 "size of any partition.  Generally this means you will lose any data which "
27547 "was at the end of the partition you shrink, but you may not care about that "
27548 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
27549 "as a swap partition)."
27550 msgstr ""
27551
27552 # type: textblock
27553 #: ../tools/virt-resize.pl:325
27554 msgid "See also the C<--ignore> option."
27555 msgstr ""
27556
27557 # type: =item
27558 #: ../tools/virt-resize.pl:331
27559 msgid "B<--expand part>"
27560 msgstr ""
27561
27562 # type: textblock
27563 #: ../tools/virt-resize.pl:333
27564 msgid ""
27565 "Expand the named partition so it uses up all extra space (space left over "
27566 "after any other resize changes that you request have been done)."
27567 msgstr ""
27568
27569 # type: textblock
27570 #: ../tools/virt-resize.pl:336
27571 msgid ""
27572 "If virt-resize knows how, it will expand the direct content of the "
27573 "partition.  For example, if the partition is an LVM PV, it will expand the "
27574 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
27575 "content it doesn't know about alone."
27576 msgstr ""
27577
27578 # type: textblock
27579 #: ../tools/virt-resize.pl:341
27580 msgid "Currently virt-resize can resize:"
27581 msgstr ""
27582
27583 # type: textblock
27584 #: ../tools/virt-resize.pl:347
27585 msgid ""
27586 "ext2, ext3 and ext4 filesystems when they are contained directly inside a "
27587 "partition."
27588 msgstr ""
27589
27590 # type: textblock
27591 #: ../tools/virt-resize.pl:352
27592 msgid ""
27593 "NTFS filesystems contained directly in a partition, if libguestfs was "
27594 "compiled with support for NTFS."
27595 msgstr ""
27596
27597 # type: textblock
27598 #: ../tools/virt-resize.pl:355
27599 msgid ""
27600 "The filesystem must have been shut down consistently last time it was used.  "
27601 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
27602 "consistency check, so at the first boot after resizing Windows will check "
27603 "the disk."
27604 msgstr ""
27605
27606 # type: textblock
27607 #: ../tools/virt-resize.pl:362
27608 msgid ""
27609 "LVM PVs (physical volumes).  virt-resize does not usually resize anything "
27610 "inside the PV, but see the C<--LV-expand> option.  The user could also "
27611 "resize LVs as desired after boot."
27612 msgstr ""
27613
27614 # type: textblock
27615 #: ../tools/virt-resize.pl:368 ../tools/virt-resize.pl:390
27616 msgid "Note that you cannot use C<--expand> and C<--shrink> together."
27617 msgstr ""
27618
27619 # type: =item
27620 #: ../tools/virt-resize.pl:374
27621 msgid "B<--shrink part>"
27622 msgstr ""
27623
27624 # type: textblock
27625 #: ../tools/virt-resize.pl:376
27626 msgid ""
27627 "Shrink the named partition until the overall disk image fits in the "
27628 "destination.  The named partition B<must> contain a filesystem or PV which "
27629 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
27630 "online tools).  Virt-resize will check this and give an error if it has not "
27631 "been done."
27632 msgstr ""
27633
27634 # type: textblock
27635 #: ../tools/virt-resize.pl:382
27636 msgid ""
27637 "The amount by which the overall disk must be shrunk (after carrying out all "
27638 "other operations requested by the user) is called the \"deficit\".  For "
27639 "example, a straight copy (assume no other operations)  from a 5GB disk image "
27640 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
27641 "would give an error unless the user specified a partition to shrink and that "
27642 "partition had more than a gigabyte of free space."
27643 msgstr ""
27644
27645 # type: =item
27646 #: ../tools/virt-resize.pl:396
27647 msgid "B<--ignore part>"
27648 msgstr ""
27649
27650 # type: textblock
27651 #: ../tools/virt-resize.pl:398
27652 msgid ""
27653 "Ignore the named partition.  Effectively this means the partition is "
27654 "allocated on the destination disk, but the content is not copied across from "
27655 "the source disk.  The content of the partition will be blank (all zero "
27656 "bytes)."
27657 msgstr ""
27658
27659 # type: =item
27660 #: ../tools/virt-resize.pl:409
27661 msgid "B<--delete part>"
27662 msgstr ""
27663
27664 # type: textblock
27665 #: ../tools/virt-resize.pl:411
27666 msgid ""
27667 "Delete the named partition.  It would be more accurate to describe this as "
27668 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
27669 "the original disk image is left intact."
27670 msgstr ""
27671
27672 # type: textblock
27673 #: ../tools/virt-resize.pl:415
27674 msgid ""
27675 "Note that when you delete a partition, then anything contained in the "
27676 "partition is also deleted.  Furthermore, this causes any partitions that "
27677 "come after to be I<renumbered>, which can easily make your guest unbootable."
27678 msgstr ""
27679
27680 # type: =item
27681 #: ../tools/virt-resize.pl:426
27682 msgid "B<--LV-expand logvol>"
27683 msgstr ""
27684
27685 # type: textblock
27686 #: ../tools/virt-resize.pl:428
27687 msgid ""
27688 "This takes the logical volume and, as a final step, expands it to fill all "
27689 "the space available in its volume group.  A typical usage, assuming a Linux "
27690 "guest with a single PV C</dev/sda2> and a root device called "
27691 "C</dev/vg_guest/lv_root> would be:"
27692 msgstr ""
27693
27694 # type: verbatim
27695 #: ../tools/virt-resize.pl:433
27696 #, no-wrap
27697 msgid ""
27698 " virt-resize indisk outdisk \\\n"
27699 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
27700 "\n"
27701 msgstr ""
27702
27703 # type: textblock
27704 #: ../tools/virt-resize.pl:436
27705 msgid ""
27706 "This would first expand the partition (and PV), and then expand the root "
27707 "device to fill the extra space in the PV."
27708 msgstr ""
27709
27710 # type: textblock
27711 #: ../tools/virt-resize.pl:439
27712 msgid ""
27713 "The contents of the LV are also resized if virt-resize knows how to do "
27714 "that.  You can stop virt-resize from trying to expand the content by using "
27715 "the option C<--no-expand-content>."
27716 msgstr ""
27717
27718 # type: textblock
27719 #: ../tools/virt-resize.pl:443
27720 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
27721 msgstr ""
27722
27723 # type: textblock
27724 #: ../tools/virt-resize.pl:446
27725 msgid ""
27726 "You can give this option multiple times, I<but> it doesn't make sense to do "
27727 "this unless the logical volumes you specify are all in different volume "
27728 "groups."
27729 msgstr ""
27730
27731 # type: =item
27732 #: ../tools/virt-resize.pl:454
27733 msgid "B<--no-copy-boot-loader>"
27734 msgstr ""
27735
27736 # type: textblock
27737 #: ../tools/virt-resize.pl:456
27738 msgid ""
27739 "By default, virt-resize copies over some sectors at the start of the disk "
27740 "(up to the beginning of the first partition).  Commonly these sectors "
27741 "contain the Master Boot Record (MBR) and the boot loader, and are required "
27742 "in order for the guest to boot correctly."
27743 msgstr ""
27744
27745 # type: textblock
27746 #: ../tools/virt-resize.pl:461
27747 msgid ""
27748 "If you specify this flag, then this initial copy is not done.  You may need "
27749 "to reinstall the boot loader in this case."
27750 msgstr ""
27751
27752 # type: =item
27753 #: ../tools/virt-resize.pl:469
27754 msgid "B<--no-extra-partition>"
27755 msgstr ""
27756
27757 # type: textblock
27758 #: ../tools/virt-resize.pl:471
27759 msgid ""
27760 "By default, virt-resize creates an extra partition if there is any extra, "
27761 "unused space after all resizing has happened.  Use this option to prevent "
27762 "the extra partition from being created.  If you do this then the extra space "
27763 "will be inaccessible until you run fdisk, parted, or some other partitioning "
27764 "tool in the guest."
27765 msgstr ""
27766
27767 # type: textblock
27768 #: ../tools/virt-resize.pl:477
27769 msgid ""
27770 "Note that if the surplus space is smaller than 10 MB, no extra partition "
27771 "will be created."
27772 msgstr ""
27773
27774 # type: =item
27775 #: ../tools/virt-resize.pl:484
27776 msgid "B<--no-expand-content>"
27777 msgstr ""
27778
27779 # type: textblock
27780 #: ../tools/virt-resize.pl:486
27781 msgid ""
27782 "By default, virt-resize will try to expand the direct contents of "
27783 "partitions, if it knows how (see C<--expand> option above)."
27784 msgstr ""
27785
27786 # type: textblock
27787 #: ../tools/virt-resize.pl:489
27788 msgid ""
27789 "If you give the C<--no-expand-content> option then virt-resize will not "
27790 "attempt this."
27791 msgstr ""
27792
27793 # type: =item
27794 #: ../tools/virt-resize.pl:496
27795 msgid "B<-d> | B<--debug>"
27796 msgstr ""
27797
27798 # type: =item
27799 #: ../tools/virt-resize.pl:504
27800 msgid "B<-n> | B<--dryrun>"
27801 msgstr ""
27802
27803 # type: textblock
27804 #: ../tools/virt-resize.pl:506
27805 msgid "Print a summary of what would be done, but don't do anything."
27806 msgstr ""
27807
27808 # type: =item
27809 #: ../tools/virt-resize.pl:512
27810 msgid "B<-q> | B<--quiet>"
27811 msgstr ""
27812
27813 # type: textblock
27814 #: ../tools/virt-resize.pl:514
27815 msgid "Don't print the summary."
27816 msgstr ""
27817
27818 # type: textblock
27819 #: ../tools/virt-resize.pl:522
27820 msgid ""
27821 "Specify the format of the input disk image.  If this flag is not given then "
27822 "it is auto-detected from the image itself."
27823 msgstr ""
27824
27825 # type: textblock
27826 #: ../tools/virt-resize.pl:528
27827 msgid ""
27828 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
27829 "AND NON-SPARSE RAW FORMATS>."
27830 msgstr ""
27831
27832 # type: =item
27833 #: ../tools/virt-resize.pl:535
27834 msgid "B<--output-format> raw"
27835 msgstr ""
27836
27837 # type: textblock
27838 #: ../tools/virt-resize.pl:537
27839 msgid ""
27840 "Specify the format of the output disk image.  If this flag is not given then "
27841 "it is auto-detected from the image itself."
27842 msgstr ""
27843
27844 # type: textblock
27845 #: ../tools/virt-resize.pl:543
27846 msgid ""
27847 "Note that you still need to create the output disk with the right format.  "
27848 "See L</QCOW2 AND NON-SPARSE RAW FORMATS>."
27849 msgstr ""
27850
27851 # type: =head1
27852 #: ../tools/virt-resize.pl:1419
27853 msgid "NOTES"
27854 msgstr ""
27855
27856 # type: =head2
27857 #: ../tools/virt-resize.pl:1421
27858 msgid "\"Partition 1 does not end on cylinder boundary.\""
27859 msgstr ""
27860
27861 # type: textblock
27862 #: ../tools/virt-resize.pl:1423
27863 msgid ""
27864 "Virt-resize aligns partitions to multiples of 64 sectors.  Usually this "
27865 "means the partitions will not be aligned to the ancient CHS geometry.  "
27866 "However CHS geometry is meaningless for disks manufactured since the early "
27867 "1990s, and doubly so for virtual hard drives.  Alignment of partitions to "
27868 "cylinders is not required by any modern operating system."
27869 msgstr ""
27870
27871 # type: =head2
27872 #: ../tools/virt-resize.pl:1430
27873 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
27874 msgstr ""
27875
27876 # type: textblock
27877 #: ../tools/virt-resize.pl:1432
27878 msgid ""
27879 "In Windows Vista and later versions, Microsoft switched to using a separate "
27880 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
27881 "and C</dev/sda2> is the main (C:) drive.  We have not had any luck resizing "
27882 "the boot partition.  Doing so seems to break the guest completely.  However "
27883 "expanding the second partition (ie. C: drive) should work."
27884 msgstr ""
27885
27886 # type: textblock
27887 #: ../tools/virt-resize.pl:1439
27888 msgid ""
27889 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
27890 "NTFS partitions have been expanded.  This is just a safety check and (unless "
27891 "it find errors) is nothing to worry about."
27892 msgstr ""
27893
27894 # type: =head2
27895 #: ../tools/virt-resize.pl:1443
27896 msgid "GUEST BOOT STUCK AT \"GRUB\""
27897 msgstr ""
27898
27899 # type: textblock
27900 #: ../tools/virt-resize.pl:1445
27901 msgid ""
27902 "If a Linux guest does not boot after resizing, and the boot is stuck after "
27903 "printing C<GRUB> on the console, try reinstalling grub.  This sometimes "
27904 "happens on older (RHEL 5-era) guests, for reasons we don't fully understand, "
27905 "although we think is to do with partition alignment."
27906 msgstr ""
27907
27908 # type: verbatim
27909 #: ../tools/virt-resize.pl:1450
27910 #, no-wrap
27911 msgid ""
27912 " guestfish -i -a newdisk\n"
27913 " ><fs> cat /boot/grub/device.map\n"
27914 " # check the contents of this file are sensible or\n"
27915 " # edit the file if necessary\n"
27916 " ><fs> grub-install / /dev/vda\n"
27917 " ><fs> exit\n"
27918 "\n"
27919 msgstr ""
27920
27921 # type: textblock
27922 #: ../tools/virt-resize.pl:1457
27923 msgid ""
27924 "For more flexible guest reconfiguration, including if you need to specify "
27925 "other parameters to grub-install, use L<virt-rescue(1)>."
27926 msgstr ""
27927
27928 # type: =head1
27929 #: ../tools/virt-resize.pl:1460
27930 msgid "ALTERNATIVE TOOLS"
27931 msgstr ""
27932
27933 # type: textblock
27934 #: ../tools/virt-resize.pl:1462
27935 msgid ""
27936 "There are several proprietary tools for resizing partitions.  We won't "
27937 "mention any here."
27938 msgstr ""
27939
27940 # type: textblock
27941 #: ../tools/virt-resize.pl:1465
27942 msgid ""
27943 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
27944 "operations on disk images.  They can resize and move partitions, but I don't "
27945 "think they can do anything with the contents, and they certainly don't "
27946 "understand LVM."
27947 msgstr ""
27948
27949 # type: textblock
27950 #: ../tools/virt-resize.pl:1470
27951 msgid ""
27952 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
27953 "but at a much lower level.  You will probably end up hand-calculating sector "
27954 "offsets, which is something that virt-resize was designed to avoid.  If you "
27955 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
27956 "C<--debug> flag."
27957 msgstr ""
27958
27959 # type: textblock
27960 #: ../tools/virt-resize.pl:1485
27961 msgid ""
27962 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, "
27963 "L<lvm(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, "
27964 "L<ntfsresize(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)>, "
27965 "L<fallocate(1)>, L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, "
27966 "L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
27967 msgstr ""
27968
27969 # type: textblock
27970 #: ../tools/virt-list-filesystems.pl:32
27971 msgid "virt-list-filesystems - List filesystems in a virtual machine or disk image"
27972 msgstr ""
27973
27974 # type: verbatim
27975 #: ../tools/virt-list-filesystems.pl:36
27976 #, no-wrap
27977 msgid ""
27978 " virt-list-filesystems [--options] domname\n"
27979 "\n"
27980 msgstr ""
27981
27982 # type: verbatim
27983 #: ../tools/virt-list-filesystems.pl:38
27984 #, no-wrap
27985 msgid ""
27986 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
27987 "\n"
27988 msgstr ""
27989
27990 # type: textblock
27991 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
27992 msgid ""
27993 "This tool is obsolete.  Use L<virt-filesystems(1)> as a more flexible "
27994 "replacement."
27995 msgstr ""
27996
27997 # type: textblock
27998 #: ../tools/virt-list-filesystems.pl:45
27999 msgid ""
28000 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
28001 "are contained in a virtual machine or disk image."
28002 msgstr ""
28003
28004 # type: textblock
28005 #: ../tools/virt-list-filesystems.pl:49
28006 msgid ""
28007 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
28008 "functionality.  For more complex cases you should look at the "
28009 "L<guestfish(1)> tool."
28010 msgstr ""
28011
28012 # type: =item
28013 #: ../tools/virt-list-filesystems.pl:106 ../tools/virt-list-partitions.pl:115
28014 msgid "B<-l> | B<--long>"
28015 msgstr ""
28016
28017 # type: textblock
28018 #: ../tools/virt-list-filesystems.pl:108
28019 msgid ""
28020 "With this option, C<virt-list-filesystems> displays the type of each "
28021 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
28022 msgstr ""
28023
28024 # type: =item
28025 #: ../tools/virt-list-filesystems.pl:115
28026 msgid "B<-a> | B<--all>"
28027 msgstr ""
28028
28029 # type: textblock
28030 #: ../tools/virt-list-filesystems.pl:117
28031 msgid ""
28032 "Normally we only show mountable filesystems.  If this option is given then "
28033 "swap devices are shown too."
28034 msgstr ""
28035
28036 # type: textblock
28037 #: ../tools/virt-list-filesystems.pl:191
28038 msgid ""
28039 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, "
28040 "L<virt-filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, "
28041 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
28042 msgstr ""
28043
28044 # type: textblock
28045 #: ../tools/virt-list-filesystems.pl:208 ../tools/virt-tar.pl:298
28046 msgid "Copyright (C) 2009 Red Hat Inc."
28047 msgstr ""
28048
28049 # type: textblock
28050 #: ../tools/virt-tar.pl:33
28051 msgid "virt-tar - Extract or upload files to a virtual machine"
28052 msgstr ""
28053
28054 # type: verbatim
28055 #: ../tools/virt-tar.pl:37
28056 #, no-wrap
28057 msgid ""
28058 " virt-tar [--options] -x domname directory tarball\n"
28059 "\n"
28060 msgstr ""
28061
28062 # type: verbatim
28063 #: ../tools/virt-tar.pl:39
28064 #, no-wrap
28065 msgid ""
28066 " virt-tar [--options] -u domname tarball directory\n"
28067 "\n"
28068 msgstr ""
28069
28070 # type: verbatim
28071 #: ../tools/virt-tar.pl:41
28072 #, no-wrap
28073 msgid ""
28074 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
28075 "\n"
28076 msgstr ""
28077
28078 # type: verbatim
28079 #: ../tools/virt-tar.pl:43
28080 #, no-wrap
28081 msgid ""
28082 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
28083 "\n"
28084 msgstr ""
28085
28086 # type: textblock
28087 #: ../tools/virt-tar.pl:47
28088 msgid "Download C</home> from the VM into a local tarball:"
28089 msgstr ""
28090
28091 # type: verbatim
28092 #: ../tools/virt-tar.pl:49
28093 #, no-wrap
28094 msgid ""
28095 " virt-tar -x domname /home home.tar\n"
28096 "\n"
28097 msgstr ""
28098
28099 # type: verbatim
28100 #: ../tools/virt-tar.pl:51
28101 #, no-wrap
28102 msgid ""
28103 " virt-tar -zx domname /home home.tar.gz\n"
28104 "\n"
28105 msgstr ""
28106
28107 # type: textblock
28108 #: ../tools/virt-tar.pl:53
28109 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
28110 msgstr ""
28111
28112 # type: verbatim
28113 #: ../tools/virt-tar.pl:55
28114 #, no-wrap
28115 msgid ""
28116 " virt-tar -u domname uploadstuff.tar /tmp\n"
28117 "\n"
28118 msgstr ""
28119
28120 # type: verbatim
28121 #: ../tools/virt-tar.pl:57
28122 #, no-wrap
28123 msgid ""
28124 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
28125 "\n"
28126 msgstr ""
28127
28128 # type: textblock
28129 #: ../tools/virt-tar.pl:61
28130 msgid ""
28131 "You must I<not> use C<virt-tar> with the C<-u> option (upload) on live "
28132 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
28133 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
28134 msgstr ""
28135
28136 # type: textblock
28137 #: ../tools/virt-tar.pl:66
28138 msgid ""
28139 "You can use C<-x> (extract) on live virtual machines, but you might get "
28140 "inconsistent results or errors if there is filesystem activity inside the "
28141 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
28142 "work, but the only way to guarantee consistent results is if the virtual "
28143 "machine is shut down."
28144 msgstr ""
28145
28146 # type: textblock
28147 #: ../tools/virt-tar.pl:74
28148 msgid ""
28149 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
28150 "parts of a guest filesystem.  There are many possibilities: making backups, "
28151 "uploading data files, snooping on guest activity, fixing or customizing "
28152 "guests, etc."
28153 msgstr ""
28154
28155 # type: textblock
28156 #: ../tools/virt-tar.pl:79
28157 msgid ""
28158 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
28159 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
28160 "should look at the L<guestfish(1)> tool."
28161 msgstr ""
28162
28163 # type: textblock
28164 #: ../tools/virt-tar.pl:83
28165 msgid ""
28166 "There are two modes of operation: C<-x> (eXtract) downloads a directory and "
28167 "its contents (recursively) from the virtual machine into a local tarball.  "
28168 "C<-u> uploads from a local tarball, unpacking it into a directory inside the "
28169 "virtual machine.  You cannot use these two options together."
28170 msgstr ""
28171
28172 # type: textblock
28173 #: ../tools/virt-tar.pl:89
28174 msgid ""
28175 "In addition, you may need to use the C<-z> (gZip) option to enable "
28176 "compression.  When uploading, you have to specify C<-z> if the upload file "
28177 "is compressed because virt-tar won't detect this on its own."
28178 msgstr ""
28179
28180 # type: textblock
28181 #: ../tools/virt-tar.pl:93
28182 msgid ""
28183 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
28184 "example it cannot do PKZip files or bzip2 compression.  If you want that "
28185 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
28186 "the L<libguestfs(3)> API)."
28187 msgstr ""
28188
28189 # type: =item
28190 #: ../tools/virt-tar.pl:151
28191 msgid "B<-x> | B<--extract> | B<--download>"
28192 msgstr ""
28193
28194 # type: =item
28195 #: ../tools/virt-tar.pl:153
28196 msgid "B<-u> | B<--upload>"
28197 msgstr ""
28198
28199 # type: textblock
28200 #: ../tools/virt-tar.pl:155
28201 msgid ""
28202 "Use C<-x> to extract (download) a directory from a virtual machine to a "
28203 "local tarball."
28204 msgstr ""
28205
28206 # type: textblock
28207 #: ../tools/virt-tar.pl:158
28208 msgid ""
28209 "Use C<-u> to upload and unpack from a local tarball into a virtual machine.  "
28210 "Please read the L</WARNING> section above before using this option."
28211 msgstr ""
28212
28213 # type: textblock
28214 #: ../tools/virt-tar.pl:162
28215 msgid "You must specify exactly one of these options."
28216 msgstr ""
28217
28218 # type: =item
28219 #: ../tools/virt-tar.pl:168
28220 msgid "B<-z> | B<--gzip>"
28221 msgstr ""
28222
28223 # type: textblock
28224 #: ../tools/virt-tar.pl:170
28225 msgid "Specify that the input or output tarball is gzip-compressed."
28226 msgstr ""
28227
28228 # type: textblock
28229 #: ../tools/virt-tar.pl:283
28230 msgid ""
28231 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
28232 "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
28233 "L<http://libguestfs.org/>."
28234 msgstr ""
28235
28236 # type: textblock
28237 #: ../tools/virt-make-fs.pl:37
28238 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
28239 msgstr ""
28240
28241 # type: verbatim
28242 #: ../tools/virt-make-fs.pl:41
28243 #, no-wrap
28244 msgid ""
28245 " virt-make-fs [--options] input.tar output.img\n"
28246 "\n"
28247 msgstr ""
28248
28249 # type: verbatim
28250 #: ../tools/virt-make-fs.pl:43
28251 #, no-wrap
28252 msgid ""
28253 " virt-make-fs [--options] input.tar.gz output.img\n"
28254 "\n"
28255 msgstr ""
28256
28257 # type: verbatim
28258 #: ../tools/virt-make-fs.pl:45
28259 #, no-wrap
28260 msgid ""
28261 " virt-make-fs [--options] directory output.img\n"
28262 "\n"
28263 msgstr ""
28264
28265 # type: textblock
28266 #: ../tools/virt-make-fs.pl:49
28267 msgid ""
28268 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
28269 "archive or some files in a directory.  It is similar to tools like "
28270 "L<mkisofs(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, "
28271 "it can create common filesystem types like ext2/3 or NTFS, which can be "
28272 "useful if you want to attach these filesystems to existing virtual machines "
28273 "(eg. to import large amounts of read-only data to a VM)."
28274 msgstr ""
28275
28276 # type: textblock
28277 #: ../tools/virt-make-fs.pl:57
28278 msgid "Basic usage is:"
28279 msgstr ""
28280
28281 # type: verbatim
28282 #: ../tools/virt-make-fs.pl:59
28283 #, no-wrap
28284 msgid ""
28285 " virt-make-fs input output\n"
28286 "\n"
28287 msgstr ""
28288
28289 # type: textblock
28290 #: ../tools/virt-make-fs.pl:61
28291 msgid ""
28292 "where C<input> is either a directory containing files that you want to add, "
28293 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
28294 "C<output> is a disk image.  The input type is detected automatically.  The "
28295 "output disk image defaults to a raw ext2 image unless you specify extra "
28296 "flags (see L</OPTIONS> below)."
28297 msgstr ""
28298
28299 # type: =head2
28300 #: ../tools/virt-make-fs.pl:67
28301 msgid "EXTRA SPACE"
28302 msgstr ""
28303
28304 # type: textblock
28305 #: ../tools/virt-make-fs.pl:69
28306 msgid ""
28307 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
28308 "the files that it contains, but might have extra space.  Depending on how "
28309 "you are going to use the output, you might think this extra space is wasted "
28310 "and want to minimize it, or you might want to leave space so that more files "
28311 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
28312 "but you can use the C<--size> flag to leave space in the filesystem if you "
28313 "want it."
28314 msgstr ""
28315
28316 # type: textblock
28317 #: ../tools/virt-make-fs.pl:77
28318 msgid ""
28319 "An alternative way to leave extra space but not make the output image any "
28320 "bigger is to use an alternative disk image format (instead of the default "
28321 "\"raw\" format).  Using C<--format=qcow2> will use the native QEmu/KVM qcow2 "
28322 "image format (check your hypervisor supports this before using it).  This "
28323 "allows you to choose a large C<--size> but the extra space won't actually be "
28324 "allocated in the image until you try to store something in it."
28325 msgstr ""
28326
28327 # type: textblock
28328 #: ../tools/virt-make-fs.pl:85
28329 msgid ""
28330 "Don't forget that you can also use local commands including L<resize2fs(8)> "
28331 "and L<virt-resize(1)> to resize existing filesystems, or rerun "
28332 "virt-make-resize to build another image from scratch."
28333 msgstr ""
28334
28335 # type: =head3
28336 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123 ../tools/virt-make-fs.pl:142
28337 msgid "EXAMPLE"
28338 msgstr ""
28339
28340 # type: verbatim
28341 #: ../tools/virt-make-fs.pl:91
28342 #, no-wrap
28343 msgid ""
28344 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
28345 "\n"
28346 msgstr ""
28347
28348 # type: =head2
28349 #: ../tools/virt-make-fs.pl:93
28350 msgid "FILESYSTEM TYPE"
28351 msgstr ""
28352
28353 # type: textblock
28354 #: ../tools/virt-make-fs.pl:95
28355 msgid ""
28356 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
28357 "libguestfs supports can be used (but I<not> read-only formats like "
28358 "ISO9660).  Here are some of the more common choices:"
28359 msgstr ""
28360
28361 # type: =item
28362 #: ../tools/virt-make-fs.pl:101
28363 msgid "I<ext3>"
28364 msgstr ""
28365
28366 # type: textblock
28367 #: ../tools/virt-make-fs.pl:103
28368 msgid ""
28369 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
28370 "you are not going to use the filesystem in a way that requires the journal, "
28371 "then this is just wasted overhead."
28372 msgstr ""
28373
28374 # type: =item
28375 #: ../tools/virt-make-fs.pl:107
28376 msgid "I<ntfs> or I<vfat>"
28377 msgstr ""
28378
28379 # type: textblock
28380 #: ../tools/virt-make-fs.pl:109
28381 msgid "Useful if exporting data to a Windows guest."
28382 msgstr ""
28383
28384 # type: textblock
28385 #: ../tools/virt-make-fs.pl:111
28386 msgid ""
28387 "I<Note for vfat>: The tar archive or local directory must only contain files "
28388 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
28389 "program running within libguestfs is unable to change the ownership of "
28390 "non-root files, since vfat itself does not support this."
28391 msgstr ""
28392
28393 # type: =item
28394 #: ../tools/virt-make-fs.pl:116
28395 msgid "I<minix>"
28396 msgstr ""
28397
28398 # type: textblock
28399 #: ../tools/virt-make-fs.pl:118
28400 msgid ""
28401 "Lower overhead than C<ext2>, but certain limitations on filename length and "
28402 "total filesystem size."
28403 msgstr ""
28404
28405 # type: verbatim
28406 #: ../tools/virt-make-fs.pl:125
28407 #, no-wrap
28408 msgid ""
28409 " virt-make-fs --type=minix input minixfs.img\n"
28410 "\n"
28411 msgstr ""
28412
28413 # type: =head2
28414 #: ../tools/virt-make-fs.pl:127
28415 msgid "TO PARTITION OR NOT TO PARTITION"
28416 msgstr ""
28417
28418 # type: textblock
28419 #: ../tools/virt-make-fs.pl:129
28420 msgid "Optionally virt-make-fs can add a partition table to the output disk."
28421 msgstr ""
28422
28423 # type: textblock
28424 #: ../tools/virt-make-fs.pl:131
28425 msgid ""
28426 "Adding a partition can make the disk image more compatible with certain "
28427 "virtualized operating systems which don't expect to see a filesystem "
28428 "directly located on a block device (Linux doesn't care and will happily "
28429 "handle both types)."
28430 msgstr ""
28431
28432 # type: textblock
28433 #: ../tools/virt-make-fs.pl:136
28434 msgid ""
28435 "On the other hand, if you have a partition table then the output image is no "
28436 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
28437 "directly on a partitioned disk image.  (However libguestfs tools such as "
28438 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
28439 msgstr ""
28440
28441 # type: textblock
28442 #: ../tools/virt-make-fs.pl:144
28443 msgid "Add an MBR partition:"
28444 msgstr ""
28445
28446 # type: verbatim
28447 #: ../tools/virt-make-fs.pl:146
28448 #, no-wrap
28449 msgid ""
28450 " virt-make-fs --partition -- input disk.img\n"
28451 "\n"
28452 msgstr ""
28453
28454 # type: textblock
28455 #: ../tools/virt-make-fs.pl:148
28456 msgid ""
28457 "If the output disk image could be terabyte-sized or larger, it's better to "
28458 "use an EFI/GPT-compatible partition table:"
28459 msgstr ""
28460
28461 # type: verbatim
28462 #: ../tools/virt-make-fs.pl:151
28463 #, no-wrap
28464 msgid ""
28465 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
28466 "\n"
28467 msgstr ""
28468
28469 # type: textblock
28470 #: ../tools/virt-make-fs.pl:179
28471 msgid "Enable debugging information."
28472 msgstr ""
28473
28474 # type: =item
28475 #: ../tools/virt-make-fs.pl:185
28476 msgid "B<--size=E<lt>NE<gt>>"
28477 msgstr ""
28478
28479 # type: =item
28480 #: ../tools/virt-make-fs.pl:187
28481 msgid "B<--size=+E<lt>NE<gt>>"
28482 msgstr ""
28483
28484 # type: =item
28485 #: ../tools/virt-make-fs.pl:189
28486 msgid "B<-s E<lt>NE<gt>>"
28487 msgstr ""
28488
28489 # type: =item
28490 #: ../tools/virt-make-fs.pl:191
28491 msgid "B<-s +E<lt>NE<gt>>"
28492 msgstr ""
28493
28494 # type: textblock
28495 #: ../tools/virt-make-fs.pl:193
28496 msgid "Use the C<--size> (or C<-s>) option to choose the size of the output image."
28497 msgstr ""
28498
28499 # type: textblock
28500 #: ../tools/virt-make-fs.pl:196
28501 msgid ""
28502 "If this option is I<not> given, then the output image will be just large "
28503 "enough to contain all the files, with not much wasted space."
28504 msgstr ""
28505
28506 # type: textblock
28507 #: ../tools/virt-make-fs.pl:199
28508 msgid ""
28509 "To choose a fixed size output disk, specify an absolute number followed by "
28510 "b/K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
28511 "Petabytes or Exabytes.  This must be large enough to contain all the input "
28512 "files, else you will get an error."
28513 msgstr ""
28514
28515 # type: textblock
28516 #: ../tools/virt-make-fs.pl:204
28517 msgid ""
28518 "To leave extra space, specify C<+> (plus sign) and a number followed by "
28519 "b/K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
28520 "Petabytes or Exabytes.  For example: C<--size=+200M> means enough space for "
28521 "the input files, and (approximately) an extra 200 MB free space."
28522 msgstr ""
28523
28524 # type: textblock
28525 #: ../tools/virt-make-fs.pl:210
28526 msgid ""
28527 "Note that virt-make-fs estimates free space, and therefore will not produce "
28528 "filesystems containing precisely the free space requested.  (It is much more "
28529 "expensive and time-consuming to produce a filesystem which has precisely the "
28530 "desired free space)."
28531 msgstr ""
28532
28533 # type: =item
28534 #: ../tools/virt-make-fs.pl:219
28535 msgid "B<--format=E<lt>fmtE<gt>>"
28536 msgstr ""
28537
28538 # type: =item
28539 #: ../tools/virt-make-fs.pl:221
28540 msgid "B<-F E<lt>fmtE<gt>>"
28541 msgstr ""
28542
28543 # type: textblock
28544 #: ../tools/virt-make-fs.pl:223
28545 msgid "Choose the output disk image format."
28546 msgstr ""
28547
28548 # type: textblock
28549 #: ../tools/virt-make-fs.pl:225
28550 msgid "The default is C<raw> (raw disk image)."
28551 msgstr ""
28552
28553 # type: textblock
28554 #: ../tools/virt-make-fs.pl:227
28555 msgid ""
28556 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
28557 "that would really make sense here is C<qcow2>."
28558 msgstr ""
28559
28560 # type: =item
28561 #: ../tools/virt-make-fs.pl:234
28562 msgid "B<--type=E<lt>fsE<gt>>"
28563 msgstr ""
28564
28565 # type: =item
28566 #: ../tools/virt-make-fs.pl:236
28567 msgid "B<-t E<lt>fsE<gt>>"
28568 msgstr ""
28569
28570 # type: textblock
28571 #: ../tools/virt-make-fs.pl:238
28572 msgid "Choose the output filesystem type."
28573 msgstr ""
28574
28575 # type: textblock
28576 #: ../tools/virt-make-fs.pl:240
28577 msgid "The default is C<ext2>."
28578 msgstr ""
28579
28580 # type: textblock
28581 #: ../tools/virt-make-fs.pl:242
28582 msgid "Any filesystem which is supported read-write by libguestfs can be used here."
28583 msgstr ""
28584
28585 # type: =item
28586 #: ../tools/virt-make-fs.pl:249
28587 msgid "B<--partition>"
28588 msgstr ""
28589
28590 # type: =item
28591 #: ../tools/virt-make-fs.pl:251
28592 msgid "B<--partition=E<lt>parttypeE<gt>>"
28593 msgstr ""
28594
28595 # type: textblock
28596 #: ../tools/virt-make-fs.pl:253
28597 msgid ""
28598 "If specified, this flag adds an MBR partition table to the output disk "
28599 "image."
28600 msgstr ""
28601
28602 # type: textblock
28603 #: ../tools/virt-make-fs.pl:256
28604 msgid ""
28605 "You can change the partition table type, eg. C<--partition=gpt> for large "
28606 "disks."
28607 msgstr ""
28608
28609 # type: textblock
28610 #: ../tools/virt-make-fs.pl:259
28611 msgid ""
28612 "Note that if you just use a lonesome C<--partition>, the Perl option parser "
28613 "might consider the next parameter to be the partition type.  For example:"
28614 msgstr ""
28615
28616 # type: verbatim
28617 #: ../tools/virt-make-fs.pl:263
28618 #, no-wrap
28619 msgid ""
28620 " virt-make-fs --partition input.tar ...\n"
28621 "\n"
28622 msgstr ""
28623
28624 # type: textblock
28625 #: ../tools/virt-make-fs.pl:265
28626 msgid ""
28627 "would cause virt-make-fs to think you wanted to use a partition type of "
28628 "C<input.tar> which is completely wrong.  To avoid this, use C<--> (a double "
28629 "dash) between options and the input file argument:"
28630 msgstr ""
28631
28632 # type: verbatim
28633 #: ../tools/virt-make-fs.pl:269
28634 #, no-wrap
28635 msgid ""
28636 " virt-make-fs --partition -- input.tar ...\n"
28637 "\n"
28638 msgstr ""
28639
28640 # type: textblock
28641 #: ../tools/virt-make-fs.pl:536
28642 msgid ""
28643 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar(1)>, L<mkisofs(1)>, "
28644 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, "
28645 "L<guestfs(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
28646 msgstr ""
28647
28648 # type: verbatim
28649 #: ../tools/virt-make-fs.pl:553
28650 #, no-wrap
28651 msgid ""
28652 " export LIBGUESTFS_DEBUG=1\n"
28653 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
28654 "\n"
28655 msgstr ""
28656
28657 # type: textblock
28658 #: ../tools/virt-make-fs.pl:556
28659 msgid ""
28660 "Attach /tmp/virt-make-fs.log to a new bug report at "
28661 "L<https://bugzilla.redhat.com/>"
28662 msgstr ""
28663
28664 # type: textblock
28665 #: ../tools/virt-list-partitions.pl:32
28666 msgid "virt-list-partitions - List partitions in a virtual machine or disk image"
28667 msgstr ""
28668
28669 # type: verbatim
28670 #: ../tools/virt-list-partitions.pl:36
28671 #, no-wrap
28672 msgid ""
28673 " virt-list-partitions [--options] domname\n"
28674 "\n"
28675 msgstr ""
28676
28677 # type: verbatim
28678 #: ../tools/virt-list-partitions.pl:38
28679 #, no-wrap
28680 msgid ""
28681 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
28682 "\n"
28683 msgstr ""
28684
28685 # type: textblock
28686 #: ../tools/virt-list-partitions.pl:45
28687 msgid ""
28688 "C<virt-list-partitions> is a command line tool to list the partitions that "
28689 "are contained in a virtual machine or disk image.  It is mainly useful as a "
28690 "first step to using L<virt-resize(1)>."
28691 msgstr ""
28692
28693 # type: textblock
28694 #: ../tools/virt-list-partitions.pl:50
28695 msgid ""
28696 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
28697 "functionality.  For more complex cases you should look at the "
28698 "L<guestfish(1)> tool."
28699 msgstr ""
28700
28701 # type: =item
28702 #: ../tools/virt-list-partitions.pl:107
28703 msgid "B<-h> | B<--human-readable>"
28704 msgstr ""
28705
28706 # type: textblock
28707 #: ../tools/virt-list-partitions.pl:109
28708 msgid "Show sizes in human-readable form (eg. \"1G\")."
28709 msgstr ""
28710
28711 # type: textblock
28712 #: ../tools/virt-list-partitions.pl:117
28713 msgid ""
28714 "With this option, C<virt-list-partitions> displays the type and size of each "
28715 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
28716 msgstr ""
28717
28718 # type: =item
28719 #: ../tools/virt-list-partitions.pl:124
28720 msgid "B<-t> | B<--total>"
28721 msgstr ""
28722
28723 # type: textblock
28724 #: ../tools/virt-list-partitions.pl:126
28725 msgid "Display the total size of each block device (as a separate row or rows)."
28726 msgstr ""
28727
28728 # type: textblock
28729 #: ../tools/virt-list-partitions.pl:259
28730 msgid ""
28731 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, "
28732 "L<virt-list-filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, "
28733 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
28734 msgstr ""