Version 1.9.0.
[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.9.0\n"
10 "Report-Msgid-Bugs-To: libguestfs@redhat.com\n"
11 "POT-Creation-Date: 2010-12-19 15:53+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 "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS"
712 msgstr ""
713
714 # type: textblock
715 #: ../src/guestfs.pod:339
716 msgid ""
717 "Calls like L</guestfs_upload>, L</guestfs_download>, L</guestfs_tar_in>, "
718 "L</guestfs_tar_out> etc appear to only take filenames as arguments, so it "
719 "appears you can only upload and download to files.  However many Un*x-like "
720 "hosts let you use the special device files C</dev/stdin>, C</dev/stdout>, "
721 "C</dev/stderr> and C</dev/fd/N> to read and write from stdin, stdout, "
722 "stderr, and arbitrary file descriptor N."
723 msgstr ""
724
725 # type: textblock
726 #: ../src/guestfs.pod:347
727 msgid "For example, L<virt-cat(1)> writes its output to stdout by doing:"
728 msgstr ""
729
730 # type: verbatim
731 #: ../src/guestfs.pod:350
732 #, no-wrap
733 msgid ""
734 " guestfs_download (filename, \"/dev/stdout\");\n"
735 "\n"
736 msgstr ""
737
738 # type: textblock
739 #: ../src/guestfs.pod:352
740 msgid "and you can write tar output to a pipe C<fd> by doing:"
741 msgstr ""
742
743 # type: verbatim
744 #: ../src/guestfs.pod:354
745 #, no-wrap
746 msgid ""
747 " char devfd[64];\n"
748 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
749 " guestfs_tar_out (\"/\", devfd);\n"
750 "\n"
751 msgstr ""
752
753 # type: =head2
754 #: ../src/guestfs.pod:358
755 msgid "LISTING FILES"
756 msgstr ""
757
758 # type: textblock
759 #: ../src/guestfs.pod:360
760 msgid ""
761 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
762 "L<guestfish(1)>-equivalent command C<ll>)."
763 msgstr ""
764
765 # type: textblock
766 #: ../src/guestfs.pod:363
767 msgid ""
768 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
769 "programs, as a flat list of strings."
770 msgstr ""
771
772 # type: textblock
773 #: ../src/guestfs.pod:366
774 msgid ""
775 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
776 "directory, plus additional information about each one.  It is more "
777 "equivalent to using the L<readdir(3)> call on a local filesystem."
778 msgstr ""
779
780 # type: textblock
781 #: ../src/guestfs.pod:370
782 msgid ""
783 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list "
784 "files."
785 msgstr ""
786
787 # type: =head2
788 #: ../src/guestfs.pod:373
789 msgid "RUNNING COMMANDS"
790 msgstr ""
791
792 # type: textblock
793 #: ../src/guestfs.pod:375
794 msgid ""
795 "Although libguestfs is primarily an API for manipulating files inside guest "
796 "images, we also provide some limited facilities for running commands inside "
797 "guests."
798 msgstr ""
799
800 # type: textblock
801 #: ../src/guestfs.pod:379
802 msgid "There are many limitations to this:"
803 msgstr ""
804
805 # type: =item
806 #: ../src/guestfs.pod:383 ../src/guestfs.pod:388 ../src/guestfs.pod:393 ../src/guestfs.pod:397 ../src/guestfs.pod:402 ../src/guestfs.pod:406 ../src/guestfs.pod:411 ../src/guestfs.pod:416 ../src/guestfs.pod:1006 ../src/guestfs.pod:1010 ../src/guestfs.pod:1014 ../src/guestfs.pod:1019 ../src/guestfs.pod:1027 ../src/guestfs.pod:1046 ../src/guestfs.pod:1054 ../src/guestfs.pod:1076 ../src/guestfs.pod:1080 ../src/guestfs.pod:1084 ../src/guestfs.pod:1088 ../src/guestfs.pod:1092 ../src/guestfs.pod:1096 ../src/guestfs.pod:1578 ../src/guestfs.pod:1583 ../src/guestfs.pod:1587 ../src/guestfs.pod:1697 ../src/guestfs.pod:1702 ../src/guestfs.pod:1706 ../src/guestfs.pod:2058 ../src/guestfs.pod:2064 ../src/guestfs.pod:2069 ../src/guestfs.pod:2075 ../src/guestfs.pod:2187 ../src/guestfs.pod:2191 ../src/guestfs.pod:2195 ../src/guestfs.pod:2199 ../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
807 msgid "*"
808 msgstr ""
809
810 # type: textblock
811 #: ../src/guestfs.pod:385
812 msgid ""
813 "The kernel version that the command runs under will be different from what "
814 "it expects."
815 msgstr ""
816
817 # type: textblock
818 #: ../src/guestfs.pod:390
819 msgid ""
820 "If the command needs to communicate with daemons, then most likely they "
821 "won't be running."
822 msgstr ""
823
824 # type: textblock
825 #: ../src/guestfs.pod:395
826 msgid "The command will be running in limited memory."
827 msgstr ""
828
829 # type: textblock
830 #: ../src/guestfs.pod:399
831 msgid ""
832 "The network may not be available unless you enable it (see "
833 "L</guestfs_set_network>)."
834 msgstr ""
835
836 # type: textblock
837 #: ../src/guestfs.pod:404
838 msgid "Only supports Linux guests (not Windows, BSD, etc)."
839 msgstr ""
840
841 # type: textblock
842 #: ../src/guestfs.pod:408
843 msgid "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
844 msgstr ""
845
846 # type: textblock
847 #: ../src/guestfs.pod:413
848 msgid ""
849 "For SELinux guests, you may need to enable SELinux and load policy first.  "
850 "See L</SELINUX> in this manpage."
851 msgstr ""
852
853 # type: textblock
854 #: ../src/guestfs.pod:418
855 msgid ""
856 "I<Security:> It is not safe to run commands from untrusted, possibly "
857 "malicious guests.  These commands may attempt to exploit your program by "
858 "sending unexpected output.  They could also try to exploit the Linux kernel "
859 "or qemu provided by the libguestfs appliance.  They could use the network "
860 "provided by the libguestfs appliance to bypass ordinary network partitions "
861 "and firewalls.  They could use the elevated privileges or different SELinux "
862 "context of your program to their advantage."
863 msgstr ""
864
865 # type: textblock
866 #: ../src/guestfs.pod:427
867 msgid ""
868 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
869 "(a script which runs when the guest next boots normally), and to have this "
870 "script run the commands you want in the normal context of the running guest, "
871 "network security and so on.  For information about other security issues, "
872 "see L</SECURITY>."
873 msgstr ""
874
875 # type: textblock
876 #: ../src/guestfs.pod:435
877 msgid ""
878 "The two main API calls to run commands are L</guestfs_command> and "
879 "L</guestfs_sh> (there are also variations)."
880 msgstr ""
881
882 # type: textblock
883 #: ../src/guestfs.pod:438
884 msgid ""
885 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
886 "shell globs, redirections, etc will work."
887 msgstr ""
888
889 # type: =head2
890 #: ../src/guestfs.pod:441
891 msgid "CONFIGURATION FILES"
892 msgstr ""
893
894 # type: textblock
895 #: ../src/guestfs.pod:443
896 msgid ""
897 "To read and write configuration files in Linux guest filesystems, we "
898 "strongly recommend using Augeas.  For example, Augeas understands how to "
899 "read and write, say, a Linux shadow password file or X.org configuration "
900 "file, and so avoids you having to write that code."
901 msgstr ""
902
903 # type: textblock
904 #: ../src/guestfs.pod:448
905 msgid ""
906 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't "
907 "document Augeas itself here because there is excellent documentation on the "
908 "L<http://augeas.net/> website."
909 msgstr ""
910
911 # type: textblock
912 #: ../src/guestfs.pod:452
913 msgid ""
914 "If you don't want to use Augeas (you fool!) then try calling "
915 "L</guestfs_read_lines> to get the file as a list of lines which you can "
916 "iterate over."
917 msgstr ""
918
919 # type: =head2
920 #: ../src/guestfs.pod:456
921 msgid "SELINUX"
922 msgstr ""
923
924 # type: textblock
925 #: ../src/guestfs.pod:458
926 msgid ""
927 "We support SELinux guests.  To ensure that labeling happens correctly in "
928 "SELinux guests, you need to enable SELinux and load the guest's policy:"
929 msgstr ""
930
931 # type: =item
932 #: ../src/guestfs.pod:464 ../src/guestfs.pod:1199 ../src/guestfs.pod:1330
933 msgid "1."
934 msgstr ""
935
936 # type: textblock
937 #: ../src/guestfs.pod:466
938 msgid "Before launching, do:"
939 msgstr ""
940
941 # type: verbatim
942 #: ../src/guestfs.pod:468
943 #, no-wrap
944 msgid ""
945 " guestfs_set_selinux (g, 1);\n"
946 "\n"
947 msgstr ""
948
949 # type: =item
950 #: ../src/guestfs.pod:470 ../src/guestfs.pod:1203 ../src/guestfs.pod:1334
951 msgid "2."
952 msgstr ""
953
954 # type: textblock
955 #: ../src/guestfs.pod:472
956 msgid ""
957 "After mounting the guest's filesystem(s), load the policy.  This is best "
958 "done by running the L<load_policy(8)> command in the guest itself:"
959 msgstr ""
960
961 # type: verbatim
962 #: ../src/guestfs.pod:476
963 #, no-wrap
964 msgid ""
965 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
966 "\n"
967 msgstr ""
968
969 # type: textblock
970 #: ../src/guestfs.pod:478
971 msgid ""
972 "(Older versions of C<load_policy> require you to specify the name of the "
973 "policy file)."
974 msgstr ""
975
976 # type: =item
977 #: ../src/guestfs.pod:481 ../src/guestfs.pod:1340
978 msgid "3."
979 msgstr ""
980
981 # type: textblock
982 #: ../src/guestfs.pod:483
983 msgid ""
984 "Optionally, set the security context for the API.  The correct security "
985 "context to use can only be known by inspecting the guest.  As an example:"
986 msgstr ""
987
988 # type: verbatim
989 #: ../src/guestfs.pod:487
990 #, no-wrap
991 msgid ""
992 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
993 "\n"
994 msgstr ""
995
996 # type: textblock
997 #: ../src/guestfs.pod:491
998 msgid "This will work for running commands and editing existing files."
999 msgstr ""
1000
1001 # type: textblock
1002 #: ../src/guestfs.pod:493
1003 msgid ""
1004 "When new files are created, you may need to label them explicitly, for "
1005 "example by running the external command C<restorecon pathname>."
1006 msgstr ""
1007
1008 # type: =head2
1009 #: ../src/guestfs.pod:497
1010 msgid "UMASK"
1011 msgstr ""
1012
1013 # type: textblock
1014 #: ../src/guestfs.pod:499
1015 msgid ""
1016 "Certain calls are affected by the current file mode creation mask (the "
1017 "\"umask\").  In particular ones which create files or directories, such as "
1018 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
1019 "either the default mode that the file is created with or modifies the mode "
1020 "that you supply."
1021 msgstr ""
1022
1023 # type: textblock
1024 #: ../src/guestfs.pod:505
1025 msgid ""
1026 "The default umask is C<022>, so files are created with modes such as C<0644> "
1027 "and directories with C<0755>."
1028 msgstr ""
1029
1030 # type: textblock
1031 #: ../src/guestfs.pod:508
1032 msgid ""
1033 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
1034 "(call C<guestfs_umask (g, 0)> early after launching).  Or call "
1035 "L</guestfs_chmod> after creating each file or directory."
1036 msgstr ""
1037
1038 # type: textblock
1039 #: ../src/guestfs.pod:512
1040 msgid "For more information about umask, see L<umask(2)>."
1041 msgstr ""
1042
1043 # type: =head1
1044 #: ../src/guestfs.pod:514 ../fish/guestfish.pod:720
1045 msgid "ENCRYPTED DISKS"
1046 msgstr ""
1047
1048 # type: textblock
1049 #: ../src/guestfs.pod:516
1050 msgid ""
1051 "Libguestfs allows you to access Linux guests which have been encrypted using "
1052 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
1053 "standard.  This includes nearly all whole disk encryption systems used by "
1054 "modern Linux guests."
1055 msgstr ""
1056
1057 # type: textblock
1058 #: ../src/guestfs.pod:522
1059 msgid ""
1060 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
1061 "returns the string C<crypto_LUKS>)."
1062 msgstr ""
1063
1064 # type: textblock
1065 #: ../src/guestfs.pod:525
1066 msgid ""
1067 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
1068 "will require the passphrase!"
1069 msgstr ""
1070
1071 # type: textblock
1072 #: ../src/guestfs.pod:528
1073 msgid ""
1074 "Opening a LUKS device creates a new device mapper device called "
1075 "C</dev/mapper/mapname> (where C<mapname> is the string you supply to "
1076 "L</guestfs_luks_open>).  Reads and writes to this mapper device are "
1077 "decrypted from and encrypted to the underlying block device respectively."
1078 msgstr ""
1079
1080 # type: textblock
1081 #: ../src/guestfs.pod:534
1082 msgid ""
1083 "LVM volume groups on the device can be made visible by calling "
1084 "L</guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical "
1085 "volume(s) can now be mounted in the usual way."
1086 msgstr ""
1087
1088 # type: textblock
1089 #: ../src/guestfs.pod:538
1090 msgid ""
1091 "Use the reverse process to close a LUKS device.  Unmount any logical volumes "
1092 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
1093 "[\"/dev/VG\"])>.  Then close the mapper device by calling "
1094 "L</guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
1095 "underlying encrypted block device)."
1096 msgstr ""
1097
1098 # type: =head2
1099 #: ../src/guestfs.pod:545
1100 msgid "INSPECTION"
1101 msgstr ""
1102
1103 # type: textblock
1104 #: ../src/guestfs.pod:547
1105 msgid ""
1106 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
1107 "contains operating systems.  (These APIs used to be in a separate Perl-only "
1108 "library called L<Sys::Guestfs::Lib(3)> but since version 1.5.3 the most "
1109 "frequently used part of this library has been rewritten in C and moved into "
1110 "the core code)."
1111 msgstr ""
1112
1113 # type: textblock
1114 #: ../src/guestfs.pod:553
1115 msgid ""
1116 "Add all disks belonging to the unknown virtual machine and call "
1117 "L</guestfs_launch> in the usual way."
1118 msgstr ""
1119
1120 # type: textblock
1121 #: ../src/guestfs.pod:556
1122 msgid ""
1123 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
1124 "and certain heuristics, and returns a list of operating systems that were "
1125 "found.  An empty list means none were found.  A single element is the root "
1126 "filesystem of the operating system.  For dual- or multi-boot guests, "
1127 "multiple roots can be returned, each one corresponding to a separate "
1128 "operating system.  (Multi-boot virtual machines are extremely rare in the "
1129 "world of virtualization, but since this scenario can happen, we have built "
1130 "libguestfs to deal with it.)"
1131 msgstr ""
1132
1133 # type: textblock
1134 #: ../src/guestfs.pod:565
1135 msgid ""
1136 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
1137 "to get additional details about that operating system.  For example, call "
1138 "L</guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
1139 "Windows and Linux-based operating systems respectively."
1140 msgstr ""
1141
1142 # type: textblock
1143 #: ../src/guestfs.pod:571
1144 msgid ""
1145 "Un*x-like and Linux-based operating systems usually consist of several "
1146 "filesystems which are mounted at boot time (for example, a separate boot "
1147 "partition mounted on C</boot>).  The inspection rules are able to detect how "
1148 "filesystems correspond to mount points.  Call "
1149 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
1150 "hash table like this example:"
1151 msgstr ""
1152
1153 # type: verbatim
1154 #: ../src/guestfs.pod:578
1155 #, no-wrap
1156 msgid ""
1157 " /boot => /dev/sda1\n"
1158 " /     => /dev/vg_guest/lv_root\n"
1159 " /usr  => /dev/vg_guest/lv_usr\n"
1160 "\n"
1161 msgstr ""
1162
1163 # type: textblock
1164 #: ../src/guestfs.pod:582
1165 msgid ""
1166 "The caller can then make calls to L</guestfs_mount_options> to mount the "
1167 "filesystems as suggested."
1168 msgstr ""
1169
1170 # type: textblock
1171 #: ../src/guestfs.pod:585
1172 msgid ""
1173 "Be careful to mount filesystems in the right order (eg. C</> before "
1174 "C</usr>).  Sorting the keys of the hash by length, shortest first, should "
1175 "work."
1176 msgstr ""
1177
1178 # type: textblock
1179 #: ../src/guestfs.pod:589
1180 msgid ""
1181 "Inspection currently only works for some common operating systems.  "
1182 "Contributors are welcome to send patches for other operating systems that we "
1183 "currently cannot detect."
1184 msgstr ""
1185
1186 # type: textblock
1187 #: ../src/guestfs.pod:593
1188 msgid ""
1189 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
1190 "for more details.  The L</guestfs_inspect_os> function just ignores any "
1191 "encrypted devices."
1192 msgstr ""
1193
1194 # type: textblock
1195 #: ../src/guestfs.pod:597
1196 msgid ""
1197 "A note on the implementation: The call L</guestfs_inspect_os> performs "
1198 "inspection and caches the results in the guest handle.  Subsequent calls to "
1199 "C<guestfs_inspect_get_*> return this cached information, but I<do not> "
1200 "re-read the disks.  If you change the content of the guest disks, you can "
1201 "redo inspection by calling L</guestfs_inspect_os> again.  "
1202 "(L</guestfs_inspect_list_applications> works a little differently from the "
1203 "other calls and does read the disks.  See documentation for that function "
1204 "for details)."
1205 msgstr ""
1206
1207 # type: =head2
1208 #: ../src/guestfs.pod:606
1209 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
1210 msgstr ""
1211
1212 # type: textblock
1213 #: ../src/guestfs.pod:608
1214 msgid ""
1215 "Libguestfs can mount NTFS partitions.  It does this using the "
1216 "L<http://www.ntfs-3g.org/> driver."
1217 msgstr ""
1218
1219 # type: =head3
1220 #: ../src/guestfs.pod:611
1221 msgid "DRIVE LETTERS AND PATHS"
1222 msgstr ""
1223
1224 # type: textblock
1225 #: ../src/guestfs.pod:613
1226 msgid ""
1227 "DOS and Windows still use drive letters, and the filesystems are always "
1228 "treated as case insensitive by Windows itself, and therefore you might find "
1229 "a Windows configuration file referring to a path like "
1230 "C<c:\\windows\\system32>.  When the filesystem is mounted in libguestfs, "
1231 "that directory might be referred to as C</WINDOWS/System32>."
1232 msgstr ""
1233
1234 # type: textblock
1235 #: ../src/guestfs.pod:619
1236 msgid ""
1237 "Drive letter mappings are outside the scope of libguestfs.  You have to use "
1238 "libguestfs to read the appropriate Windows Registry and configuration files, "
1239 "to determine yourself how drives are mapped (see also L<hivex(3)> and "
1240 "L<virt-inspector(1)>)."
1241 msgstr ""
1242
1243 # type: textblock
1244 #: ../src/guestfs.pod:624
1245 msgid ""
1246 "Replacing backslash characters with forward slash characters is also outside "
1247 "the scope of libguestfs, but something that you can easily do."
1248 msgstr ""
1249
1250 # type: textblock
1251 #: ../src/guestfs.pod:627
1252 msgid ""
1253 "Where we can help is in resolving the case insensitivity of paths.  For "
1254 "this, call L</guestfs_case_sensitive_path>."
1255 msgstr ""
1256
1257 # type: =head3
1258 #: ../src/guestfs.pod:630
1259 msgid "ACCESSING THE WINDOWS REGISTRY"
1260 msgstr ""
1261
1262 # type: textblock
1263 #: ../src/guestfs.pod:632
1264 msgid ""
1265 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
1266 "files, through the library C<hivex> which is part of the libguestfs project "
1267 "although ships as a separate tarball.  You have to locate and download the "
1268 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
1269 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and "
1270 "L<virt-win-reg(1)> for more help on this issue."
1271 msgstr ""
1272
1273 # type: =head3
1274 #: ../src/guestfs.pod:640
1275 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
1276 msgstr ""
1277
1278 # type: textblock
1279 #: ../src/guestfs.pod:642
1280 msgid ""
1281 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
1282 "provide something which looks like a Linux symlink.  The way it tries to do "
1283 "the rewriting is described here:"
1284 msgstr ""
1285
1286 # type: textblock
1287 #: ../src/guestfs.pod:646
1288 msgid "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-symbolic-links/>"
1289 msgstr ""
1290
1291 # type: textblock
1292 #: ../src/guestfs.pod:648
1293 msgid ""
1294 "The essential problem is that ntfs-3g simply does not have enough "
1295 "information to do a correct job.  NTFS links can contain drive letters and "
1296 "references to external device GUIDs that ntfs-3g has no way of resolving.  "
1297 "It is almost certainly the case that libguestfs callers should ignore what "
1298 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
1299 msgstr ""
1300
1301 # type: textblock
1302 #: ../src/guestfs.pod:655
1303 msgid ""
1304 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use "
1305 "L</guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
1306 "attribute, and read the raw reparse data from that (you can find the format "
1307 "documented in various places around the web)."
1308 msgstr ""
1309
1310 # type: =head3
1311 #: ../src/guestfs.pod:660
1312 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
1313 msgstr ""
1314
1315 # type: textblock
1316 #: ../src/guestfs.pod:662
1317 msgid ""
1318 "There are other useful extended attributes that can be read from ntfs-3g "
1319 "filesystems (using L</guestfs_getxattr>).  See:"
1320 msgstr ""
1321
1322 # type: textblock
1323 #: ../src/guestfs.pod:665
1324 msgid "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
1325 msgstr ""
1326
1327 # type: =head2
1328 #: ../src/guestfs.pod:667
1329 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
1330 msgstr ""
1331
1332 # type: textblock
1333 #: ../src/guestfs.pod:669
1334 msgid ""
1335 "Although we don't want to discourage you from using the C API, we will "
1336 "mention here that the same API is also available in other languages."
1337 msgstr ""
1338
1339 # type: textblock
1340 #: ../src/guestfs.pod:672
1341 msgid ""
1342 "The API is broadly identical in all supported languages.  This means that "
1343 "the C call C<guestfs_mount(g,path)> is C<$g-E<gt>mount($path)> in Perl, "
1344 "C<g.mount(path)> in Python, and C<Guestfs.mount g path> in OCaml.  In other "
1345 "words, a straightforward, predictable isomorphism between each language."
1346 msgstr ""
1347
1348 # type: textblock
1349 #: ../src/guestfs.pod:678
1350 msgid ""
1351 "Error messages are automatically transformed into exceptions if the language "
1352 "supports it."
1353 msgstr ""
1354
1355 # type: textblock
1356 #: ../src/guestfs.pod:681
1357 msgid ""
1358 "We don't try to \"object orientify\" parts of the API in OO languages, "
1359 "although contributors are welcome to write higher level APIs above what we "
1360 "provide in their favourite languages if they wish."
1361 msgstr ""
1362
1363 # type: =item
1364 #: ../src/guestfs.pod:687
1365 msgid "B<C++>"
1366 msgstr ""
1367
1368 # type: textblock
1369 #: ../src/guestfs.pod:689
1370 msgid ""
1371 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
1372 "identical to the C API.  C++ classes and exceptions are not used."
1373 msgstr ""
1374
1375 # type: =item
1376 #: ../src/guestfs.pod:693
1377 msgid "B<C#>"
1378 msgstr ""
1379
1380 # type: textblock
1381 #: ../src/guestfs.pod:695
1382 msgid ""
1383 "The C# bindings are highly experimental.  Please read the warnings at the "
1384 "top of C<csharp/Libguestfs.cs>."
1385 msgstr ""
1386
1387 # type: =item
1388 #: ../src/guestfs.pod:698
1389 msgid "B<Haskell>"
1390 msgstr ""
1391
1392 # type: textblock
1393 #: ../src/guestfs.pod:700
1394 msgid ""
1395 "This is the only language binding that is working but incomplete.  Only "
1396 "calls which return simple integers have been bound in Haskell, and we are "
1397 "looking for help to complete this binding."
1398 msgstr ""
1399
1400 # type: =item
1401 #: ../src/guestfs.pod:704
1402 msgid "B<Java>"
1403 msgstr ""
1404
1405 # type: textblock
1406 #: ../src/guestfs.pod:706
1407 msgid ""
1408 "Full documentation is contained in the Javadoc which is distributed with "
1409 "libguestfs."
1410 msgstr ""
1411
1412 # type: =item
1413 #: ../src/guestfs.pod:709
1414 msgid "B<OCaml>"
1415 msgstr ""
1416
1417 # type: textblock
1418 #: ../src/guestfs.pod:711
1419 msgid "For documentation see L<guestfs-ocaml(3)>."
1420 msgstr ""
1421
1422 # type: =item
1423 #: ../src/guestfs.pod:713
1424 msgid "B<Perl>"
1425 msgstr ""
1426
1427 # type: textblock
1428 #: ../src/guestfs.pod:715
1429 msgid "For documentation see L<Sys::Guestfs(3)>."
1430 msgstr ""
1431
1432 # type: =item
1433 #: ../src/guestfs.pod:717
1434 msgid "B<PHP>"
1435 msgstr ""
1436
1437 # type: textblock
1438 #: ../src/guestfs.pod:719
1439 msgid ""
1440 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
1441 "the php-libguestfs package for your distribution."
1442 msgstr ""
1443
1444 # type: textblock
1445 #: ../src/guestfs.pod:722
1446 msgid "The PHP binding only works correctly on 64 bit machines."
1447 msgstr ""
1448
1449 # type: =item
1450 #: ../src/guestfs.pod:724
1451 msgid "B<Python>"
1452 msgstr ""
1453
1454 # type: textblock
1455 #: ../src/guestfs.pod:726
1456 msgid "For documentation see L<guestfs-python(3)>."
1457 msgstr ""
1458
1459 # type: =item
1460 #: ../src/guestfs.pod:728
1461 msgid "B<Ruby>"
1462 msgstr ""
1463
1464 # type: textblock
1465 #: ../src/guestfs.pod:730
1466 msgid "For documentation see L<guestfs-ruby(3)>."
1467 msgstr ""
1468
1469 # type: =item
1470 #: ../src/guestfs.pod:732
1471 msgid "B<shell scripts>"
1472 msgstr ""
1473
1474 # type: textblock
1475 #: ../src/guestfs.pod:734
1476 msgid "For documentation see L<guestfish(1)>."
1477 msgstr ""
1478
1479 # type: =head2
1480 #: ../src/guestfs.pod:738
1481 msgid "LIBGUESTFS GOTCHAS"
1482 msgstr ""
1483
1484 # type: textblock
1485 #: ../src/guestfs.pod:740
1486 msgid ""
1487 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
1488 "system [...] that works in the way it is documented but is counterintuitive "
1489 "and almost invites mistakes.\""
1490 msgstr ""
1491
1492 # type: textblock
1493 #: ../src/guestfs.pod:744
1494 msgid ""
1495 "Since we developed libguestfs and the associated tools, there are several "
1496 "things we would have designed differently, but are now stuck with for "
1497 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
1498 "release, you can expect these to change.  Beware of them."
1499 msgstr ""
1500
1501 # type: =item
1502 #: ../src/guestfs.pod:752
1503 msgid "Autosync / forgetting to sync."
1504 msgstr ""
1505
1506 # type: textblock
1507 #: ../src/guestfs.pod:754
1508 msgid ""
1509 "When modifying a filesystem from C or another language, you B<must> unmount "
1510 "all filesystems and call L</guestfs_sync> explicitly before you close the "
1511 "libguestfs handle.  You can also call:"
1512 msgstr ""
1513
1514 # type: verbatim
1515 #: ../src/guestfs.pod:758
1516 #, no-wrap
1517 msgid ""
1518 " guestfs_set_autosync (g, 1);\n"
1519 "\n"
1520 msgstr ""
1521
1522 # type: textblock
1523 #: ../src/guestfs.pod:760
1524 msgid ""
1525 "to have the unmount/sync done automatically for you when the handle 'g' is "
1526 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> "
1527 "q.v.)"
1528 msgstr ""
1529
1530 # type: textblock
1531 #: ../src/guestfs.pod:764
1532 msgid ""
1533 "If you forget to do this, then it is entirely possible that your changes "
1534 "won't be written out, or will be partially written, or (very rarely) that "
1535 "you'll get disk corruption."
1536 msgstr ""
1537
1538 # type: textblock
1539 #: ../src/guestfs.pod:768
1540 msgid ""
1541 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
1542 "guestfish scripts that forget to sync will work just fine, which can make "
1543 "this very puzzling if you are trying to debug a problem."
1544 msgstr ""
1545
1546 # type: textblock
1547 #: ../src/guestfs.pod:772
1548 msgid ""
1549 "Update: Autosync is enabled by default for all API users starting from "
1550 "libguestfs 1.5.24."
1551 msgstr ""
1552
1553 # type: =item
1554 #: ../src/guestfs.pod:775
1555 msgid "Mount option C<-o sync> should not be the default."
1556 msgstr ""
1557
1558 # type: textblock
1559 #: ../src/guestfs.pod:777
1560 msgid ""
1561 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
1562 "However C<-o sync> does not add any reliability benefit, but does have a "
1563 "very large performance impact."
1564 msgstr ""
1565
1566 # type: textblock
1567 #: ../src/guestfs.pod:781
1568 msgid ""
1569 "The work around is to use L</guestfs_mount_options> and set the mount "
1570 "options that you actually want to use."
1571 msgstr ""
1572
1573 # type: =item
1574 #: ../src/guestfs.pod:784
1575 msgid "Read-only should be the default."
1576 msgstr ""
1577
1578 # type: textblock
1579 #: ../src/guestfs.pod:786
1580 msgid ""
1581 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
1582 "specify I<--rw> if you want to make changes to the image."
1583 msgstr ""
1584
1585 # type: textblock
1586 #: ../src/guestfs.pod:789
1587 msgid "This would reduce the potential to corrupt live VM images."
1588 msgstr ""
1589
1590 # type: textblock
1591 #: ../src/guestfs.pod:791
1592 msgid ""
1593 "Note that many filesystems change the disk when you just mount and unmount, "
1594 "even if you didn't perform any writes.  You need to use "
1595 "L</guestfs_add_drive_ro> to guarantee that the disk is not changed."
1596 msgstr ""
1597
1598 # type: =item
1599 #: ../src/guestfs.pod:795
1600 msgid "guestfish command line is hard to use."
1601 msgstr ""
1602
1603 # type: textblock
1604 #: ../src/guestfs.pod:797
1605 msgid ""
1606 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
1607 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
1608 "exist, so it fails.  In earlier versions of guestfish the error message was "
1609 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
1610 "we should have used C<guestfish -c command> to run commands."
1611 msgstr ""
1612
1613 # type: =item
1614 #: ../src/guestfs.pod:804
1615 msgid "guestfish megabyte modifiers don't work right on all commands"
1616 msgstr ""
1617
1618 # type: textblock
1619 #: ../src/guestfs.pod:806
1620 msgid ""
1621 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
1622 "other modifiers).  What guestfish actually does is to multiply the number "
1623 "part by the modifier part and pass the result to the C API.  However this "
1624 "doesn't work for a few APIs which aren't expecting bytes, but are already "
1625 "expecting some other unit (eg. megabytes)."
1626 msgstr ""
1627
1628 # type: textblock
1629 #: ../src/guestfs.pod:813
1630 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
1631 msgstr ""
1632
1633 # type: verbatim
1634 #: ../src/guestfs.pod:815
1635 #, no-wrap
1636 msgid ""
1637 " lvcreate LV VG 100M\n"
1638 "\n"
1639 msgstr ""
1640
1641 # type: textblock
1642 #: ../src/guestfs.pod:817
1643 msgid ""
1644 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
1645 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
1646 "megabytes * megabytes) logical volume.  The error message you get from this "
1647 "is also a little obscure."
1648 msgstr ""
1649
1650 # type: textblock
1651 #: ../src/guestfs.pod:822
1652 msgid ""
1653 "This could be fixed in the generator by specially marking parameters and "
1654 "return values which take bytes or other units."
1655 msgstr ""
1656
1657 # type: =item
1658 #: ../src/guestfs.pod:825
1659 msgid "Ambiguity between devices and paths"
1660 msgstr ""
1661
1662 # type: textblock
1663 #: ../src/guestfs.pod:827
1664 msgid ""
1665 "There is a subtle ambiguity in the API between a device name "
1666 "(eg. C</dev/sdb2>) and a similar pathname.  A file might just happen to be "
1667 "called C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
1668 msgstr ""
1669
1670 # type: textblock
1671 #: ../src/guestfs.pod:832
1672 msgid ""
1673 "In the current API we usually resolve this ambiguity by having two separate "
1674 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
1675 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
1676 "detecting if the path supplied begins with C</dev/>."
1677 msgstr ""
1678
1679 # type: textblock
1680 #: ../src/guestfs.pod:838
1681 msgid ""
1682 "To avoid both the ambiguity and the need to duplicate some calls, we could "
1683 "make paths/devices into structured names.  One way to do this would be to "
1684 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
1685 "aspect of grub.  Another way would be to use a structured type, equivalent "
1686 "to this OCaml type:"
1687 msgstr ""
1688
1689 # type: verbatim
1690 #: ../src/guestfs.pod:844
1691 #, no-wrap
1692 msgid ""
1693 " type path = Path of string | Device of int | Partition of int * int\n"
1694 "\n"
1695 msgstr ""
1696
1697 # type: textblock
1698 #: ../src/guestfs.pod:846
1699 msgid "which would allow you to pass arguments like:"
1700 msgstr ""
1701
1702 # type: verbatim
1703 #: ../src/guestfs.pod:848
1704 #, no-wrap
1705 msgid ""
1706 " Path \"/foo/bar\"\n"
1707 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
1708 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
1709 " Path \"/dev/sdb2\"    (* not a device *)\n"
1710 "\n"
1711 msgstr ""
1712
1713 # type: textblock
1714 #: ../src/guestfs.pod:853
1715 msgid ""
1716 "As you can see there are still problems to resolve even with this "
1717 "representation.  Also consider how it might work in guestfish."
1718 msgstr ""
1719
1720 # type: =head2
1721 #: ../src/guestfs.pod:858
1722 msgid "PROTOCOL LIMITS"
1723 msgstr ""
1724
1725 # type: textblock
1726 #: ../src/guestfs.pod:860
1727 msgid ""
1728 "Internally libguestfs uses a message-based protocol to pass API calls and "
1729 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
1730 "plenty more detail about this).  The maximum message size used by the "
1731 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
1732 "aware of this limit.  The API calls which may be affected are individually "
1733 "documented, with a link back to this section of the documentation."
1734 msgstr ""
1735
1736 # type: textblock
1737 #: ../src/guestfs.pod:868
1738 msgid ""
1739 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
1740 "a simple string.  Because this string is at some point internally encoded as "
1741 "a message, the maximum size that it can return is slightly under 4 MB.  If "
1742 "the requested file is larger than this then you will get an error."
1743 msgstr ""
1744
1745 # type: textblock
1746 #: ../src/guestfs.pod:874
1747 msgid ""
1748 "In order to transfer large files into and out of the guest filesystem, you "
1749 "need to use particular calls that support this.  The sections L</UPLOADING> "
1750 "and L</DOWNLOADING> document how to do this."
1751 msgstr ""
1752
1753 # type: textblock
1754 #: ../src/guestfs.pod:878
1755 msgid ""
1756 "You might also consider mounting the disk image using our FUSE filesystem "
1757 "support (L<guestmount(1)>)."
1758 msgstr ""
1759
1760 # type: =head2
1761 #: ../src/guestfs.pod:881
1762 msgid "KEYS AND PASSPHRASES"
1763 msgstr ""
1764
1765 # type: textblock
1766 #: ../src/guestfs.pod:883
1767 msgid ""
1768 "Certain libguestfs calls take a parameter that contains sensitive key "
1769 "material, passed in as a C string."
1770 msgstr ""
1771
1772 # type: textblock
1773 #: ../src/guestfs.pod:886
1774 msgid ""
1775 "In the future we would hope to change the libguestfs implementation so that "
1776 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
1777 "swap.  However this is I<not> done at the moment, because of the complexity "
1778 "of such an implementation."
1779 msgstr ""
1780
1781 # type: textblock
1782 #: ../src/guestfs.pod:891
1783 msgid ""
1784 "Therefore you should be aware that any key parameter you pass to libguestfs "
1785 "might end up being written out to the swap partition.  If this is a concern, "
1786 "scrub the swap partition or don't use libguestfs on encrypted devices."
1787 msgstr ""
1788
1789 # type: =head2
1790 #: ../src/guestfs.pod:896
1791 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
1792 msgstr ""
1793
1794 # type: textblock
1795 #: ../src/guestfs.pod:898
1796 msgid ""
1797 "All high-level libguestfs actions are synchronous.  If you want to use "
1798 "libguestfs asynchronously then you must create a thread."
1799 msgstr ""
1800
1801 # type: textblock
1802 #: ../src/guestfs.pod:901
1803 msgid ""
1804 "Only use the handle from a single thread.  Either use the handle exclusively "
1805 "from one thread, or provide your own mutex so that two threads cannot issue "
1806 "calls on the same handle at the same time."
1807 msgstr ""
1808
1809 # type: textblock
1810 #: ../src/guestfs.pod:905
1811 msgid ""
1812 "See the graphical program guestfs-browser for one possible architecture for "
1813 "multithreaded programs using libvirt and libguestfs."
1814 msgstr ""
1815
1816 # type: =head2
1817 #: ../src/guestfs.pod:908
1818 msgid "PATH"
1819 msgstr ""
1820
1821 # type: textblock
1822 #: ../src/guestfs.pod:910
1823 msgid ""
1824 "Libguestfs needs a kernel and initrd.img, which it finds by looking along an "
1825 "internal path."
1826 msgstr ""
1827
1828 # type: textblock
1829 #: ../src/guestfs.pod:913
1830 msgid ""
1831 "By default it looks for these in the directory C<$libdir/guestfs> "
1832 "(eg. C</usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
1833 msgstr ""
1834
1835 # type: textblock
1836 #: ../src/guestfs.pod:916
1837 msgid ""
1838 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
1839 "to change the directories that libguestfs will search in.  The value is a "
1840 "colon-separated list of paths.  The current directory is I<not> searched "
1841 "unless the path contains an empty element or C<.>.  For example "
1842 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
1843 "then C</usr/lib/guestfs>."
1844 msgstr ""
1845
1846 # type: =head2
1847 #: ../src/guestfs.pod:923
1848 msgid "QEMU WRAPPERS"
1849 msgstr ""
1850
1851 # type: textblock
1852 #: ../src/guestfs.pod:925
1853 msgid ""
1854 "If you want to compile your own qemu, run qemu from a non-standard location, "
1855 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
1856 "around qemu."
1857 msgstr ""
1858
1859 # type: textblock
1860 #: ../src/guestfs.pod:929
1861 msgid ""
1862 "There is one important rule to remember: you I<must C<exec qemu>> as the "
1863 "last command in the shell script (so that qemu replaces the shell and "
1864 "becomes the direct child of the libguestfs-using program).  If you don't do "
1865 "this, then the qemu process won't be cleaned up correctly."
1866 msgstr ""
1867
1868 # type: textblock
1869 #: ../src/guestfs.pod:934
1870 msgid ""
1871 "Here is an example of a wrapper, where I have built my own copy of qemu from "
1872 "source:"
1873 msgstr ""
1874
1875 # type: verbatim
1876 #: ../src/guestfs.pod:937
1877 #, no-wrap
1878 msgid ""
1879 " #!/bin/sh -\n"
1880 " qemudir=/home/rjones/d/qemu\n"
1881 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios "
1882 "\"$@\"\n"
1883 "\n"
1884 msgstr ""
1885
1886 # type: textblock
1887 #: ../src/guestfs.pod:941
1888 msgid ""
1889 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
1890 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
1891 "example:"
1892 msgstr ""
1893
1894 # type: verbatim
1895 #: ../src/guestfs.pod:945
1896 #, no-wrap
1897 msgid ""
1898 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
1899 "\n"
1900 msgstr ""
1901
1902 # type: textblock
1903 #: ../src/guestfs.pod:947
1904 msgid ""
1905 "Note that libguestfs also calls qemu with the -help and -version options in "
1906 "order to determine features."
1907 msgstr ""
1908
1909 # type: =head2
1910 #: ../src/guestfs.pod:950
1911 msgid "ABI GUARANTEE"
1912 msgstr ""
1913
1914 # type: textblock
1915 #: ../src/guestfs.pod:952
1916 msgid ""
1917 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
1918 "actions as outlined in this section.  Although we will deprecate some "
1919 "actions, for example if they get replaced by newer calls, we will keep the "
1920 "old actions forever.  This allows you the developer to program in confidence "
1921 "against the libguestfs API."
1922 msgstr ""
1923
1924 # type: =head2
1925 #: ../src/guestfs.pod:958
1926 msgid "BLOCK DEVICE NAMING"
1927 msgstr ""
1928
1929 # type: textblock
1930 #: ../src/guestfs.pod:960
1931 msgid ""
1932 "In the kernel there is now quite a profusion of schemata for naming block "
1933 "devices (in this context, by I<block device> I mean a physical or virtual "
1934 "hard drive).  The original Linux IDE driver used names starting with "
1935 "C</dev/hd*>.  SCSI devices have historically used a different naming scheme, "
1936 "C</dev/sd*>.  When the Linux kernel I<libata> driver became a popular "
1937 "replacement for the old IDE driver (particularly for SATA devices) those "
1938 "devices also used the C</dev/sd*> scheme.  Additionally we now have virtual "
1939 "machines with paravirtualized drivers.  This has created several different "
1940 "naming systems, such as C</dev/vd*> for virtio disks and C</dev/xvd*> for "
1941 "Xen PV disks."
1942 msgstr ""
1943
1944 # type: textblock
1945 #: ../src/guestfs.pod:972
1946 msgid ""
1947 "As discussed above, libguestfs uses a qemu appliance running an embedded "
1948 "Linux kernel to access block devices.  We can run a variety of appliances "
1949 "based on a variety of Linux kernels."
1950 msgstr ""
1951
1952 # type: textblock
1953 #: ../src/guestfs.pod:976
1954 msgid ""
1955 "This causes a problem for libguestfs because many API calls use device or "
1956 "partition names.  Working scripts and the recipe (example) scripts that we "
1957 "make available over the internet could fail if the naming scheme changes."
1958 msgstr ""
1959
1960 # type: textblock
1961 #: ../src/guestfs.pod:981
1962 msgid ""
1963 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
1964 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
1965 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
1966 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
1967 msgstr ""
1968
1969 # type: textblock
1970 #: ../src/guestfs.pod:987
1971 msgid ""
1972 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
1973 "L</guestfs_list_partitions> and similar calls return the true names of the "
1974 "devices and partitions as known to the appliance."
1975 msgstr ""
1976
1977 # type: =head3
1978 #: ../src/guestfs.pod:992
1979 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
1980 msgstr ""
1981
1982 # type: textblock
1983 #: ../src/guestfs.pod:994
1984 msgid ""
1985 "Usually this translation is transparent.  However in some (very rare)  cases "
1986 "you may need to know the exact algorithm.  Such cases include where you use "
1987 "L</guestfs_config> to add a mixture of virtio and IDE devices to the "
1988 "qemu-based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> "
1989 "devices."
1990 msgstr ""
1991
1992 # type: textblock
1993 #: ../src/guestfs.pod:1000
1994 msgid ""
1995 "The algorithm is applied only to I<parameters> which are known to be either "
1996 "device or partition names.  Return values from functions such as "
1997 "L</guestfs_list_devices> are never changed."
1998 msgstr ""
1999
2000 # type: textblock
2001 #: ../src/guestfs.pod:1008
2002 msgid "Is the string a parameter which is a device or partition name?"
2003 msgstr ""
2004
2005 # type: textblock
2006 #: ../src/guestfs.pod:1012
2007 msgid "Does the string begin with C</dev/sd>?"
2008 msgstr ""
2009
2010 # type: textblock
2011 #: ../src/guestfs.pod:1016
2012 msgid ""
2013 "Does the named device exist? If so, we use that device.  However if I<not> "
2014 "then we continue with this algorithm."
2015 msgstr ""
2016
2017 # type: textblock
2018 #: ../src/guestfs.pod:1021
2019 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
2020 msgstr ""
2021
2022 # type: textblock
2023 #: ../src/guestfs.pod:1023
2024 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
2025 msgstr ""
2026
2027 # type: textblock
2028 #: ../src/guestfs.pod:1025
2029 msgid "If that named device exists, use it.  If not, continue."
2030 msgstr ""
2031
2032 # type: textblock
2033 #: ../src/guestfs.pod:1029
2034 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
2035 msgstr ""
2036
2037 # type: textblock
2038 #: ../src/guestfs.pod:1031
2039 msgid "If that named device exists, use it.  If not, return an error."
2040 msgstr ""
2041
2042 # type: =head3
2043 #: ../src/guestfs.pod:1035
2044 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
2045 msgstr ""
2046
2047 # type: textblock
2048 #: ../src/guestfs.pod:1037
2049 msgid ""
2050 "Although the standard naming scheme and automatic translation is useful for "
2051 "simple programs and guestfish scripts, for larger programs it is best not to "
2052 "rely on this mechanism."
2053 msgstr ""
2054
2055 # type: textblock
2056 #: ../src/guestfs.pod:1041
2057 msgid ""
2058 "Where possible for maximum future portability programs using libguestfs "
2059 "should use these future-proof techniques:"
2060 msgstr ""
2061
2062 # type: textblock
2063 #: ../src/guestfs.pod:1048
2064 msgid ""
2065 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
2066 "device names, and then use those names directly."
2067 msgstr ""
2068
2069 # type: textblock
2070 #: ../src/guestfs.pod:1051
2071 msgid "Since those device names exist by definition, they will never be translated."
2072 msgstr ""
2073
2074 # type: textblock
2075 #: ../src/guestfs.pod:1056
2076 msgid ""
2077 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
2078 "filesystem labels."
2079 msgstr ""
2080
2081 # type: =head1
2082 #: ../src/guestfs.pod:1061
2083 msgid "SECURITY"
2084 msgstr ""
2085
2086 # type: textblock
2087 #: ../src/guestfs.pod:1063
2088 msgid ""
2089 "This section discusses security implications of using libguestfs, "
2090 "particularly with untrusted or malicious guests or disk images."
2091 msgstr ""
2092
2093 # type: =head2
2094 #: ../src/guestfs.pod:1066
2095 msgid "GENERAL SECURITY CONSIDERATIONS"
2096 msgstr ""
2097
2098 # type: textblock
2099 #: ../src/guestfs.pod:1068
2100 msgid ""
2101 "Be careful with any files or data that you download from a guest (by "
2102 "\"download\" we mean not just the L</guestfs_download> command but any "
2103 "command that reads files, filenames, directories or anything else from a "
2104 "disk image).  An attacker could manipulate the data to fool your program "
2105 "into doing the wrong thing.  Consider cases such as:"
2106 msgstr ""
2107
2108 # type: textblock
2109 #: ../src/guestfs.pod:1078
2110 msgid "the data (file etc) not being present"
2111 msgstr ""
2112
2113 # type: textblock
2114 #: ../src/guestfs.pod:1082
2115 msgid "being present but empty"
2116 msgstr ""
2117
2118 # type: textblock
2119 #: ../src/guestfs.pod:1086
2120 msgid "being much larger than normal"
2121 msgstr ""
2122
2123 # type: textblock
2124 #: ../src/guestfs.pod:1090
2125 msgid "containing arbitrary 8 bit data"
2126 msgstr ""
2127
2128 # type: textblock
2129 #: ../src/guestfs.pod:1094
2130 msgid "being in an unexpected character encoding"
2131 msgstr ""
2132
2133 # type: textblock
2134 #: ../src/guestfs.pod:1098
2135 msgid "containing homoglyphs."
2136 msgstr ""
2137
2138 # type: =head2
2139 #: ../src/guestfs.pod:1102
2140 msgid "SECURITY OF MOUNTING FILESYSTEMS"
2141 msgstr ""
2142
2143 # type: textblock
2144 #: ../src/guestfs.pod:1104
2145 msgid ""
2146 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
2147 "(VFS) module can sometimes be escalated into exploits by deliberately "
2148 "creating a malicious, malformed filesystem.  These exploits are very severe "
2149 "for two reasons.  Firstly there are very many filesystem drivers in the "
2150 "kernel, and many of them are infrequently used and not much developer "
2151 "attention has been paid to the code.  Linux userspace helps potential "
2152 "crackers by detecting the filesystem type and automatically choosing the "
2153 "right VFS driver, even if that filesystem type is obscure or unexpected for "
2154 "the administrator.  Secondly, a kernel-level exploit is like a local root "
2155 "exploit (worse in some ways), giving immediate and total access to the "
2156 "system right down to the hardware level."
2157 msgstr ""
2158
2159 # type: textblock
2160 #: ../src/guestfs.pod:1117
2161 msgid ""
2162 "That explains why you should never mount a filesystem from an untrusted "
2163 "guest on your host kernel.  How about libguestfs? We run a Linux kernel "
2164 "inside a qemu virtual machine, usually running as a non-root user.  The "
2165 "attacker would need to write a filesystem which first exploited the kernel, "
2166 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
2167 "the libguestfs protocol, and finally to be as serious as the host kernel "
2168 "exploit it would need to escalate its privileges to root.  This multi-step "
2169 "escalation, performed by a static piece of data, is thought to be extremely "
2170 "hard to do, although we never say 'never' about security issues."
2171 msgstr ""
2172
2173 # type: textblock
2174 #: ../src/guestfs.pod:1128
2175 msgid ""
2176 "In any case callers can reduce the attack surface by forcing the filesystem "
2177 "type when mounting (use L</guestfs_mount_vfs>)."
2178 msgstr ""
2179
2180 # type: =head2
2181 #: ../src/guestfs.pod:1131
2182 msgid "PROTOCOL SECURITY"
2183 msgstr ""
2184
2185 # type: textblock
2186 #: ../src/guestfs.pod:1133
2187 msgid ""
2188 "The protocol is designed to be secure, being based on RFC 4506 (XDR)  with a "
2189 "defined upper message size.  However a program that uses libguestfs must "
2190 "also take care - for example you can write a program that downloads a binary "
2191 "from a disk image and executes it locally, and no amount of protocol "
2192 "security will save you from the consequences."
2193 msgstr ""
2194
2195 # type: =head2
2196 #: ../src/guestfs.pod:1139
2197 msgid "INSPECTION SECURITY"
2198 msgstr ""
2199
2200 # type: textblock
2201 #: ../src/guestfs.pod:1141
2202 msgid ""
2203 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
2204 "directly from the guest, and these could contain any 8 bit data.  Callers "
2205 "should be careful to escape these before printing them to a structured file "
2206 "(for example, use HTML escaping if creating a web page)."
2207 msgstr ""
2208
2209 # type: textblock
2210 #: ../src/guestfs.pod:1147
2211 msgid ""
2212 "Guest configuration may be altered in unusual ways by the administrator of "
2213 "the virtual machine, and may not reflect reality (particularly for untrusted "
2214 "or actively malicious guests).  For example we parse the hostname from "
2215 "configuration files like C</etc/sysconfig/network> that we find in the "
2216 "guest, but the guest administrator can easily manipulate these files to "
2217 "provide the wrong hostname."
2218 msgstr ""
2219
2220 # type: textblock
2221 #: ../src/guestfs.pod:1155
2222 msgid ""
2223 "The inspection API parses guest configuration using two external libraries: "
2224 "Augeas (Linux configuration) and hivex (Windows Registry).  Both are "
2225 "designed to be robust in the face of malicious data, although denial of "
2226 "service attacks are still possible, for example with oversized configuration "
2227 "files."
2228 msgstr ""
2229
2230 # type: =head2
2231 #: ../src/guestfs.pod:1161
2232 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
2233 msgstr ""
2234
2235 # type: textblock
2236 #: ../src/guestfs.pod:1163
2237 msgid ""
2238 "Be very cautious about running commands from the guest.  By running a "
2239 "command in the guest, you are giving CPU time to a binary that you do not "
2240 "control, under the same user account as the library, albeit wrapped in qemu "
2241 "virtualization.  More information and alternatives can be found in the "
2242 "section L</RUNNING COMMANDS>."
2243 msgstr ""
2244
2245 # type: =head2
2246 #: ../src/guestfs.pod:1169
2247 msgid "CVE-2010-3851"
2248 msgstr ""
2249
2250 # type: textblock
2251 #: ../src/guestfs.pod:1171
2252 msgid "https://bugzilla.redhat.com/642934"
2253 msgstr ""
2254
2255 # type: textblock
2256 #: ../src/guestfs.pod:1173
2257 msgid ""
2258 "This security bug concerns the automatic disk format detection that qemu "
2259 "does on disk images."
2260 msgstr ""
2261
2262 # type: textblock
2263 #: ../src/guestfs.pod:1176
2264 msgid ""
2265 "A raw disk image is just the raw bytes, there is no header.  Other disk "
2266 "images like qcow2 contain a special header.  Qemu deals with this by looking "
2267 "for one of the known headers, and if none is found then assuming the disk "
2268 "image must be raw."
2269 msgstr ""
2270
2271 # type: textblock
2272 #: ../src/guestfs.pod:1181
2273 msgid ""
2274 "This allows a guest which has been given a raw disk image to write some "
2275 "other header.  At next boot (or when the disk image is accessed by "
2276 "libguestfs) qemu would do autodetection and think the disk image format was, "
2277 "say, qcow2 based on the header written by the guest."
2278 msgstr ""
2279
2280 # type: textblock
2281 #: ../src/guestfs.pod:1186
2282 msgid ""
2283 "This in itself would not be a problem, but qcow2 offers many features, one "
2284 "of which is to allow a disk image to refer to another image (called the "
2285 "\"backing disk\").  It does this by placing the path to the backing disk "
2286 "into the qcow2 header.  This path is not validated and could point to any "
2287 "host file (eg. \"/etc/passwd\").  The backing disk is then exposed through "
2288 "\"holes\" in the qcow2 disk image, which of course is completely under the "
2289 "control of the attacker."
2290 msgstr ""
2291
2292 # type: textblock
2293 #: ../src/guestfs.pod:1194
2294 msgid "In libguestfs this is rather hard to exploit except under two circumstances:"
2295 msgstr ""
2296
2297 # type: textblock
2298 #: ../src/guestfs.pod:1201
2299 msgid "You have enabled the network or have opened the disk in write mode."
2300 msgstr ""
2301
2302 # type: textblock
2303 #: ../src/guestfs.pod:1205
2304 msgid ""
2305 "You are also running untrusted code from the guest (see L</RUNNING "
2306 "COMMANDS>)."
2307 msgstr ""
2308
2309 # type: textblock
2310 #: ../src/guestfs.pod:1210
2311 msgid ""
2312 "The way to avoid this is to specify the expected disk format when adding "
2313 "disks (the optional C<format> option to L</guestfs_add_drive_opts>).  You "
2314 "should always do this if the disk is raw format, and it's a good idea for "
2315 "other cases too."
2316 msgstr ""
2317
2318 # type: textblock
2319 #: ../src/guestfs.pod:1215
2320 msgid ""
2321 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
2322 "format is fetched from libvirt and passed through."
2323 msgstr ""
2324
2325 # type: textblock
2326 #: ../src/guestfs.pod:1218
2327 msgid ""
2328 "For libguestfs tools, use the I<--format> command line parameter as "
2329 "appropriate."
2330 msgstr ""
2331
2332 # type: =head1
2333 #: ../src/guestfs.pod:1221
2334 msgid "CONNECTION MANAGEMENT"
2335 msgstr ""
2336
2337 # type: =head2
2338 #: ../src/guestfs.pod:1223
2339 msgid "guestfs_h *"
2340 msgstr ""
2341
2342 # type: textblock
2343 #: ../src/guestfs.pod:1225
2344 msgid ""
2345 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
2346 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
2347 "handle and release all resources used."
2348 msgstr ""
2349
2350 # type: textblock
2351 #: ../src/guestfs.pod:1229
2352 msgid ""
2353 "For information on using multiple handles and threads, see the section "
2354 "L</MULTIPLE HANDLES AND MULTIPLE THREADS> below."
2355 msgstr ""
2356
2357 # type: =head2
2358 #: ../src/guestfs.pod:1232
2359 msgid "guestfs_create"
2360 msgstr ""
2361
2362 # type: verbatim
2363 #: ../src/guestfs.pod:1234
2364 #, no-wrap
2365 msgid ""
2366 " guestfs_h *guestfs_create (void);\n"
2367 "\n"
2368 msgstr ""
2369
2370 # type: textblock
2371 #: ../src/guestfs.pod:1236
2372 msgid "Create a connection handle."
2373 msgstr ""
2374
2375 # type: textblock
2376 #: ../src/guestfs.pod:1238
2377 msgid ""
2378 "You have to call L</guestfs_add_drive_opts> (or one of the equivalent calls) "
2379 "on the handle at least once."
2380 msgstr ""
2381
2382 # type: textblock
2383 #: ../src/guestfs.pod:1241
2384 msgid ""
2385 "This function returns a non-NULL pointer to a handle on success or NULL on "
2386 "error."
2387 msgstr ""
2388
2389 # type: textblock
2390 #: ../src/guestfs.pod:1244
2391 msgid "After configuring the handle, you have to call L</guestfs_launch>."
2392 msgstr ""
2393
2394 # type: textblock
2395 #: ../src/guestfs.pod:1246
2396 msgid ""
2397 "You may also want to configure error handling for the handle.  See L</ERROR "
2398 "HANDLING> section below."
2399 msgstr ""
2400
2401 # type: =head2
2402 #: ../src/guestfs.pod:1249
2403 msgid "guestfs_close"
2404 msgstr ""
2405
2406 # type: verbatim
2407 #: ../src/guestfs.pod:1251
2408 #, no-wrap
2409 msgid ""
2410 " void guestfs_close (guestfs_h *g);\n"
2411 "\n"
2412 msgstr ""
2413
2414 # type: textblock
2415 #: ../src/guestfs.pod:1253
2416 msgid "This closes the connection handle and frees up all resources used."
2417 msgstr ""
2418
2419 # type: =head1
2420 #: ../src/guestfs.pod:1255
2421 msgid "ERROR HANDLING"
2422 msgstr ""
2423
2424 # type: textblock
2425 #: ../src/guestfs.pod:1257
2426 msgid ""
2427 "API functions can return errors.  For example, almost all functions that "
2428 "return C<int> will return C<-1> to indicate an error."
2429 msgstr ""
2430
2431 # type: textblock
2432 #: ../src/guestfs.pod:1260
2433 msgid ""
2434 "Additional information is available for errors: an error message string and "
2435 "optionally an error number (errno) if the thing that failed was a system "
2436 "call."
2437 msgstr ""
2438
2439 # type: textblock
2440 #: ../src/guestfs.pod:1264
2441 msgid ""
2442 "You can get at the additional information about the last error on the handle "
2443 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
2444 "up an error handler with L</guestfs_set_error_handler>."
2445 msgstr ""
2446
2447 # type: textblock
2448 #: ../src/guestfs.pod:1269
2449 msgid ""
2450 "When the handle is created, a default error handler is installed which "
2451 "prints the error message string to C<stderr>.  For small short-running "
2452 "command line programs it is sufficient to do:"
2453 msgstr ""
2454
2455 # type: verbatim
2456 #: ../src/guestfs.pod:1273
2457 #, no-wrap
2458 msgid ""
2459 " if (guestfs_launch (g) == -1)\n"
2460 "   exit (EXIT_FAILURE);\n"
2461 "\n"
2462 msgstr ""
2463
2464 # type: textblock
2465 #: ../src/guestfs.pod:1276
2466 msgid ""
2467 "since the default error handler will ensure that an error message has been "
2468 "printed to C<stderr> before the program exits."
2469 msgstr ""
2470
2471 # type: textblock
2472 #: ../src/guestfs.pod:1279
2473 msgid ""
2474 "For other programs the caller will almost certainly want to install an "
2475 "alternate error handler or do error handling in-line like this:"
2476 msgstr ""
2477
2478 # type: verbatim
2479 #: ../src/guestfs.pod:1282
2480 #, no-wrap
2481 msgid ""
2482 " g = guestfs_create ();\n"
2483 " \n"
2484 msgstr ""
2485
2486 # type: verbatim
2487 #: ../src/guestfs.pod:1284
2488 #, no-wrap
2489 msgid ""
2490 " /* This disables the default behaviour of printing errors\n"
2491 "    on stderr. */\n"
2492 " guestfs_set_error_handler (g, NULL, NULL);\n"
2493 " \n"
2494 msgstr ""
2495
2496 # type: verbatim
2497 #: ../src/guestfs.pod:1288
2498 #, no-wrap
2499 msgid ""
2500 " if (guestfs_launch (g) == -1) {\n"
2501 "   /* Examine the error message and print it etc. */\n"
2502 "   char *msg = guestfs_last_error (g);\n"
2503 "   int errnum = guestfs_last_errno (g);\n"
2504 "   fprintf (stderr, \"%s\\n\", msg);\n"
2505 "   /* ... */\n"
2506 "  }\n"
2507 "\n"
2508 msgstr ""
2509
2510 # type: textblock
2511 #: ../src/guestfs.pod:1296
2512 msgid ""
2513 "Out of memory errors are handled differently.  The default action is to call "
2514 "L<abort(3)>.  If this is undesirable, then you can set a handler using "
2515 "L</guestfs_set_out_of_memory_handler>."
2516 msgstr ""
2517
2518 # type: textblock
2519 #: ../src/guestfs.pod:1300
2520 msgid ""
2521 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
2522 "because there is no handle if this happens there is no way to get additional "
2523 "error information.  However L</guestfs_create> is supposed to be a "
2524 "lightweight operation which can only fail because of insufficient memory (it "
2525 "returns NULL in this case)."
2526 msgstr ""
2527
2528 # type: =head2
2529 #: ../src/guestfs.pod:1306
2530 msgid "guestfs_last_error"
2531 msgstr ""
2532
2533 # type: verbatim
2534 #: ../src/guestfs.pod:1308
2535 #, no-wrap
2536 msgid ""
2537 " const char *guestfs_last_error (guestfs_h *g);\n"
2538 "\n"
2539 msgstr ""
2540
2541 # type: textblock
2542 #: ../src/guestfs.pod:1310
2543 msgid ""
2544 "This returns the last error message that happened on C<g>.  If there has not "
2545 "been an error since the handle was created, then this returns C<NULL>."
2546 msgstr ""
2547
2548 # type: textblock
2549 #: ../src/guestfs.pod:1314
2550 msgid ""
2551 "The lifetime of the returned string is until the next error occurs, or "
2552 "L</guestfs_close> is called."
2553 msgstr ""
2554
2555 # type: =head2
2556 #: ../src/guestfs.pod:1317
2557 msgid "guestfs_last_errno"
2558 msgstr ""
2559
2560 # type: verbatim
2561 #: ../src/guestfs.pod:1319
2562 #, no-wrap
2563 msgid ""
2564 " int guestfs_last_errno (guestfs_h *g);\n"
2565 "\n"
2566 msgstr ""
2567
2568 # type: textblock
2569 #: ../src/guestfs.pod:1321
2570 msgid "This returns the last error number (errno) that happened on C<g>."
2571 msgstr ""
2572
2573 # type: textblock
2574 #: ../src/guestfs.pod:1323
2575 msgid "If successful, an errno integer not equal to zero is returned."
2576 msgstr ""
2577
2578 # type: textblock
2579 #: ../src/guestfs.pod:1325
2580 msgid "If no error, this returns 0.  This call can return 0 in three situations:"
2581 msgstr ""
2582
2583 # type: textblock
2584 #: ../src/guestfs.pod:1332
2585 msgid "There has not been any error on the handle."
2586 msgstr ""
2587
2588 # type: textblock
2589 #: ../src/guestfs.pod:1336
2590 msgid ""
2591 "There has been an error but the errno was meaningless.  This corresponds to "
2592 "the case where the error did not come from a failed system call, but for "
2593 "some other reason."
2594 msgstr ""
2595
2596 # type: textblock
2597 #: ../src/guestfs.pod:1342
2598 msgid ""
2599 "There was an error from a failed system call, but for some reason the errno "
2600 "was not captured and returned.  This usually indicates a bug in libguestfs."
2601 msgstr ""
2602
2603 # type: textblock
2604 #: ../src/guestfs.pod:1348
2605 msgid ""
2606 "Libguestfs tries to convert the errno from inside the applicance into a "
2607 "corresponding errno for the caller (not entirely trivial: the appliance "
2608 "might be running a completely different operating system from the library "
2609 "and error numbers are not standardized across Un*xen).  If this could not be "
2610 "done, then the error is translated to C<EINVAL>.  In practice this should "
2611 "only happen in very rare circumstances."
2612 msgstr ""
2613
2614 # type: =head2
2615 #: ../src/guestfs.pod:1356
2616 msgid "guestfs_set_error_handler"
2617 msgstr ""
2618
2619 # type: verbatim
2620 #: ../src/guestfs.pod:1358
2621 #, no-wrap
2622 msgid ""
2623 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
2624 "                                           void *opaque,\n"
2625 "                                           const char *msg);\n"
2626 " void guestfs_set_error_handler (guestfs_h *g,\n"
2627 "                                 guestfs_error_handler_cb cb,\n"
2628 "                                 void *opaque);\n"
2629 "\n"
2630 msgstr ""
2631
2632 # type: textblock
2633 #: ../src/guestfs.pod:1365
2634 msgid ""
2635 "The callback C<cb> will be called if there is an error.  The parameters "
2636 "passed to the callback are an opaque data pointer and the error message "
2637 "string."
2638 msgstr ""
2639
2640 # type: textblock
2641 #: ../src/guestfs.pod:1369
2642 msgid ""
2643 "C<errno> is not passed to the callback.  To get that the callback must call "
2644 "L</guestfs_last_errno>."
2645 msgstr ""
2646
2647 # type: textblock
2648 #: ../src/guestfs.pod:1372
2649 msgid ""
2650 "Note that the message string C<msg> is freed as soon as the callback "
2651 "function returns, so if you want to stash it somewhere you must make your "
2652 "own copy."
2653 msgstr ""
2654
2655 # type: textblock
2656 #: ../src/guestfs.pod:1376
2657 msgid "The default handler prints messages on C<stderr>."
2658 msgstr ""
2659
2660 # type: textblock
2661 #: ../src/guestfs.pod:1378
2662 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
2663 msgstr ""
2664
2665 # type: =head2
2666 #: ../src/guestfs.pod:1380
2667 msgid "guestfs_get_error_handler"
2668 msgstr ""
2669
2670 # type: verbatim
2671 #: ../src/guestfs.pod:1382
2672 #, no-wrap
2673 msgid ""
2674 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
2675 "                                                     void **opaque_rtn);\n"
2676 "\n"
2677 msgstr ""
2678
2679 # type: textblock
2680 #: ../src/guestfs.pod:1385
2681 msgid "Returns the current error handler callback."
2682 msgstr ""
2683
2684 # type: =head2
2685 #: ../src/guestfs.pod:1387
2686 msgid "guestfs_set_out_of_memory_handler"
2687 msgstr ""
2688
2689 # type: verbatim
2690 #: ../src/guestfs.pod:1389
2691 #, no-wrap
2692 msgid ""
2693 " typedef void (*guestfs_abort_cb) (void);\n"
2694 " int guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
2695 "                                        guestfs_abort_cb);\n"
2696 "\n"
2697 msgstr ""
2698
2699 # type: textblock
2700 #: ../src/guestfs.pod:1393
2701 msgid ""
2702 "The callback C<cb> will be called if there is an out of memory situation.  "
2703 "I<Note this callback must not return>."
2704 msgstr ""
2705
2706 # type: textblock
2707 #: ../src/guestfs.pod:1396
2708 msgid "The default is to call L<abort(3)>."
2709 msgstr ""
2710
2711 # type: textblock
2712 #: ../src/guestfs.pod:1398
2713 msgid "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
2714 msgstr ""
2715
2716 # type: =head2
2717 #: ../src/guestfs.pod:1401
2718 msgid "guestfs_get_out_of_memory_handler"
2719 msgstr ""
2720
2721 # type: verbatim
2722 #: ../src/guestfs.pod:1403
2723 #, no-wrap
2724 msgid ""
2725 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
2726 "\n"
2727 msgstr ""
2728
2729 # type: textblock
2730 #: ../src/guestfs.pod:1405
2731 msgid "This returns the current out of memory handler."
2732 msgstr ""
2733
2734 # type: =head1
2735 #: ../src/guestfs.pod:1407
2736 msgid "API CALLS"
2737 msgstr ""
2738
2739 # type: textblock
2740 #: ../src/guestfs.pod:1409 ../fish/guestfish.pod:958
2741 msgid "@ACTIONS@"
2742 msgstr ""
2743
2744 # type: =head1
2745 #: ../src/guestfs.pod:1411
2746 msgid "STRUCTURES"
2747 msgstr ""
2748
2749 # type: textblock
2750 #: ../src/guestfs.pod:1413
2751 msgid "@STRUCTS@"
2752 msgstr ""
2753
2754 # type: =head1
2755 #: ../src/guestfs.pod:1415
2756 msgid "AVAILABILITY"
2757 msgstr ""
2758
2759 # type: =head2
2760 #: ../src/guestfs.pod:1417
2761 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
2762 msgstr ""
2763
2764 # type: textblock
2765 #: ../src/guestfs.pod:1419
2766 msgid ""
2767 "Using L</guestfs_available> you can test availability of the following "
2768 "groups of functions.  This test queries the appliance to see if the "
2769 "appliance you are currently using supports the functionality."
2770 msgstr ""
2771
2772 # type: textblock
2773 #: ../src/guestfs.pod:1424
2774 msgid "@AVAILABILITY@"
2775 msgstr ""
2776
2777 # type: =head2
2778 #: ../src/guestfs.pod:1426
2779 msgid "GUESTFISH supported COMMAND"
2780 msgstr ""
2781
2782 # type: textblock
2783 #: ../src/guestfs.pod:1428
2784 msgid ""
2785 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
2786 "prints out the available groups and whether they are supported by this build "
2787 "of libguestfs.  Note however that you have to do C<run> first."
2788 msgstr ""
2789
2790 # type: =head2
2791 #: ../src/guestfs.pod:1433
2792 msgid "SINGLE CALLS AT COMPILE TIME"
2793 msgstr ""
2794
2795 # type: textblock
2796 #: ../src/guestfs.pod:1435
2797 msgid ""
2798 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
2799 "function, such as:"
2800 msgstr ""
2801
2802 # type: verbatim
2803 #: ../src/guestfs.pod:1438
2804 #, no-wrap
2805 msgid ""
2806 " #define LIBGUESTFS_HAVE_DD 1\n"
2807 "\n"
2808 msgstr ""
2809
2810 # type: textblock
2811 #: ../src/guestfs.pod:1440
2812 msgid "if L</guestfs_dd> is available."
2813 msgstr ""
2814
2815 # type: textblock
2816 #: ../src/guestfs.pod:1442
2817 msgid ""
2818 "Before version 1.5.8, if you needed to test whether a single libguestfs "
2819 "function is available at compile time, we recommended using build tools such "
2820 "as autoconf or cmake.  For example in autotools you could use:"
2821 msgstr ""
2822
2823 # type: verbatim
2824 #: ../src/guestfs.pod:1447
2825 #, no-wrap
2826 msgid ""
2827 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
2828 " AC_CHECK_FUNCS([guestfs_dd])\n"
2829 "\n"
2830 msgstr ""
2831
2832 # type: textblock
2833 #: ../src/guestfs.pod:1450
2834 msgid ""
2835 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
2836 "in your program."
2837 msgstr ""
2838
2839 # type: =head2
2840 #: ../src/guestfs.pod:1453
2841 msgid "SINGLE CALLS AT RUN TIME"
2842 msgstr ""
2843
2844 # type: textblock
2845 #: ../src/guestfs.pod:1455
2846 msgid ""
2847 "Testing at compile time doesn't guarantee that a function really exists in "
2848 "the library.  The reason is that you might be dynamically linked against a "
2849 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
2850 "This situation unfortunately results in a segmentation fault, which is a "
2851 "shortcoming of the C dynamic linking system itself."
2852 msgstr ""
2853
2854 # type: textblock
2855 #: ../src/guestfs.pod:1462
2856 msgid ""
2857 "You can use L<dlopen(3)> to test if a function is available at run time, as "
2858 "in this example program (note that you still need the compile time check as "
2859 "well):"
2860 msgstr ""
2861
2862 # type: verbatim
2863 #: ../src/guestfs.pod:1466
2864 #, no-wrap
2865 msgid ""
2866 " #include <stdio.h>\n"
2867 " #include <stdlib.h>\n"
2868 " #include <unistd.h>\n"
2869 " #include <dlfcn.h>\n"
2870 " #include <guestfs.h>\n"
2871 " \n"
2872 msgstr ""
2873
2874 # type: verbatim
2875 #: ../src/guestfs.pod:1472
2876 #, no-wrap
2877 msgid ""
2878 " main ()\n"
2879 " {\n"
2880 " #ifdef LIBGUESTFS_HAVE_DD\n"
2881 "   void *dl;\n"
2882 "   int has_function;\n"
2883 " \n"
2884 msgstr ""
2885
2886 # type: verbatim
2887 #: ../src/guestfs.pod:1478
2888 #, no-wrap
2889 msgid ""
2890 "   /* Test if the function guestfs_dd is really available. */\n"
2891 "   dl = dlopen (NULL, RTLD_LAZY);\n"
2892 "   if (!dl) {\n"
2893 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
2894 "     exit (EXIT_FAILURE);\n"
2895 "   }\n"
2896 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
2897 "   dlclose (dl);\n"
2898 " \n"
2899 msgstr ""
2900
2901 # type: verbatim
2902 #: ../src/guestfs.pod:1487
2903 #, no-wrap
2904 msgid ""
2905 "   if (!has_function)\n"
2906 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
2907 "   else {\n"
2908 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
2909 "     /* Now it's safe to call\n"
2910 "     guestfs_dd (g, \"foo\", \"bar\");\n"
2911 "     */\n"
2912 "   }\n"
2913 " #else\n"
2914 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
2915 " #endif\n"
2916 "  }\n"
2917 "\n"
2918 msgstr ""
2919
2920 # type: textblock
2921 #: ../src/guestfs.pod:1500
2922 msgid ""
2923 "You may think the above is an awful lot of hassle, and it is.  There are "
2924 "other ways outside of the C linking system to ensure that this kind of "
2925 "incompatibility never arises, such as using package versioning:"
2926 msgstr ""
2927
2928 # type: verbatim
2929 #: ../src/guestfs.pod:1505
2930 #, no-wrap
2931 msgid ""
2932 " Requires: libguestfs >= 1.0.80\n"
2933 "\n"
2934 msgstr ""
2935
2936 # type: =head1
2937 #: ../src/guestfs.pod:1507
2938 msgid "CALLS WITH OPTIONAL ARGUMENTS"
2939 msgstr ""
2940
2941 # type: textblock
2942 #: ../src/guestfs.pod:1509
2943 msgid ""
2944 "A recent feature of the API is the introduction of calls which take optional "
2945 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
2946 "takes variable arguments (ie. C<...>), as in this example:"
2947 msgstr ""
2948
2949 # type: verbatim
2950 #: ../src/guestfs.pod:1514
2951 #, no-wrap
2952 msgid ""
2953 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
2954 "\n"
2955 msgstr ""
2956
2957 # type: textblock
2958 #: ../src/guestfs.pod:1516
2959 msgid ""
2960 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
2961 "call with no optional arguments specified:"
2962 msgstr ""
2963
2964 # type: verbatim
2965 #: ../src/guestfs.pod:1519
2966 #, no-wrap
2967 msgid ""
2968 " guestfs_add_drive_opts (g, filename, -1);\n"
2969 "\n"
2970 msgstr ""
2971
2972 # type: textblock
2973 #: ../src/guestfs.pod:1521
2974 msgid "With a single optional argument:"
2975 msgstr ""
2976
2977 # type: verbatim
2978 #: ../src/guestfs.pod:1523
2979 #, no-wrap
2980 msgid ""
2981 " guestfs_add_drive_opts (g, filename,\n"
2982 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
2983 "                         -1);\n"
2984 "\n"
2985 msgstr ""
2986
2987 # type: textblock
2988 #: ../src/guestfs.pod:1527
2989 msgid "With two:"
2990 msgstr ""
2991
2992 # type: verbatim
2993 #: ../src/guestfs.pod:1529
2994 #, no-wrap
2995 msgid ""
2996 " guestfs_add_drive_opts (g, filename,\n"
2997 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
2998 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
2999 "                         -1);\n"
3000 "\n"
3001 msgstr ""
3002
3003 # type: textblock
3004 #: ../src/guestfs.pod:1534
3005 msgid ""
3006 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
3007 "happen!"
3008 msgstr ""
3009
3010 # type: =head2
3011 #: ../src/guestfs.pod:1537
3012 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
3013 msgstr ""
3014
3015 # type: textblock
3016 #: ../src/guestfs.pod:1539
3017 msgid ""
3018 "The second variant has the same name with the suffix C<_va>, which works the "
3019 "same way but takes a C<va_list>.  See the C manual for details.  For the "
3020 "example function, this is declared:"
3021 msgstr ""
3022
3023 # type: verbatim
3024 #: ../src/guestfs.pod:1543
3025 #, no-wrap
3026 msgid ""
3027 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
3028 "                                va_list args);\n"
3029 "\n"
3030 msgstr ""
3031
3032 # type: =head2
3033 #: ../src/guestfs.pod:1546
3034 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
3035 msgstr ""
3036
3037 # type: textblock
3038 #: ../src/guestfs.pod:1548
3039 msgid ""
3040 "The third variant is useful where you need to construct these calls.  You "
3041 "pass in a structure where you fill in the optional fields.  The structure "
3042 "has a bitmask as the first element which you must set to indicate which "
3043 "fields you have filled in.  For our example function the structure and call "
3044 "are declared:"
3045 msgstr ""
3046
3047 # type: verbatim
3048 #: ../src/guestfs.pod:1554
3049 #, no-wrap
3050 msgid ""
3051 " struct guestfs_add_drive_opts_argv {\n"
3052 "   uint64_t bitmask;\n"
3053 "   int readonly;\n"
3054 "   const char *format;\n"
3055 "   /* ... */\n"
3056 " };\n"
3057 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
3058 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
3059 "\n"
3060 msgstr ""
3061
3062 # type: textblock
3063 #: ../src/guestfs.pod:1563
3064 msgid "You could call it like this:"
3065 msgstr ""
3066
3067 # type: verbatim
3068 #: ../src/guestfs.pod:1565
3069 #, no-wrap
3070 msgid ""
3071 " struct guestfs_add_drive_opts_argv optargs = {\n"
3072 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
3073 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
3074 "   .readonly = 1,\n"
3075 "   .format = \"qcow2\"\n"
3076 " };\n"
3077 " \n"
3078 msgstr ""
3079
3080 # type: verbatim
3081 #: ../src/guestfs.pod:1572
3082 #, no-wrap
3083 msgid ""
3084 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
3085 "\n"
3086 msgstr ""
3087
3088 # type: textblock
3089 #: ../src/guestfs.pod:1574 ../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
3090 msgid "Notes:"
3091 msgstr ""
3092
3093 # type: textblock
3094 #: ../src/guestfs.pod:1580
3095 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
3096 msgstr ""
3097
3098 # type: textblock
3099 #: ../src/guestfs.pod:1585
3100 msgid "You do not need to fill in all fields of the structure."
3101 msgstr ""
3102
3103 # type: textblock
3104 #: ../src/guestfs.pod:1589
3105 msgid ""
3106 "There must be a one-to-one correspondence between fields of the structure "
3107 "that are filled in, and bits set in the bitmask."
3108 msgstr ""
3109
3110 # type: =head2
3111 #: ../src/guestfs.pod:1594
3112 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
3113 msgstr ""
3114
3115 # type: textblock
3116 #: ../src/guestfs.pod:1596
3117 msgid ""
3118 "In other languages, optional arguments are expressed in the way that is "
3119 "natural for that language.  We refer you to the language-specific "
3120 "documentation for more details on that."
3121 msgstr ""
3122
3123 # type: textblock
3124 #: ../src/guestfs.pod:1600
3125 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
3126 msgstr ""
3127
3128 # type: =head2
3129 #: ../src/guestfs.pod:1602
3130 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
3131 msgstr ""
3132
3133 # type: textblock
3134 #: ../src/guestfs.pod:1604
3135 msgid ""
3136 "The child process generates events in some situations.  Current events "
3137 "include: receiving a log message, the child process exits."
3138 msgstr ""
3139
3140 # type: textblock
3141 #: ../src/guestfs.pod:1607
3142 msgid ""
3143 "Use the C<guestfs_set_*_callback> functions to set a callback for different "
3144 "types of events."
3145 msgstr ""
3146
3147 # type: textblock
3148 #: ../src/guestfs.pod:1610
3149 msgid ""
3150 "Only I<one callback of each type> can be registered for each handle.  "
3151 "Calling C<guestfs_set_*_callback> again overwrites the previous callback of "
3152 "that type.  Cancel all callbacks of this type by calling this function with "
3153 "C<cb> set to C<NULL>."
3154 msgstr ""
3155
3156 # type: =head2
3157 #: ../src/guestfs.pod:1615
3158 msgid "guestfs_set_log_message_callback"
3159 msgstr ""
3160
3161 # type: verbatim
3162 #: ../src/guestfs.pod:1617
3163 #, no-wrap
3164 msgid ""
3165 " typedef void (*guestfs_log_message_cb) (guestfs_h *g, void *opaque,\n"
3166 "                                         char *buf, int len);\n"
3167 " void guestfs_set_log_message_callback (guestfs_h *g,\n"
3168 "                                        guestfs_log_message_cb cb,\n"
3169 "                                        void *opaque);\n"
3170 "\n"
3171 msgstr ""
3172
3173 # type: textblock
3174 #: ../src/guestfs.pod:1623
3175 msgid ""
3176 "The callback function C<cb> will be called whenever qemu or the guest writes "
3177 "anything to the console."
3178 msgstr ""
3179
3180 # type: textblock
3181 #: ../src/guestfs.pod:1626
3182 msgid "Use this function to capture kernel messages and similar."
3183 msgstr ""
3184
3185 # type: textblock
3186 #: ../src/guestfs.pod:1628
3187 msgid ""
3188 "Normally there is no log message handler, and log messages are just "
3189 "discarded."
3190 msgstr ""
3191
3192 # type: =head2
3193 #: ../src/guestfs.pod:1631
3194 msgid "guestfs_set_subprocess_quit_callback"
3195 msgstr ""
3196
3197 # type: verbatim
3198 #: ../src/guestfs.pod:1633
3199 #, no-wrap
3200 msgid ""
3201 " typedef void (*guestfs_subprocess_quit_cb) (guestfs_h *g, void *opaque);\n"
3202 " void guestfs_set_subprocess_quit_callback (guestfs_h *g,\n"
3203 "                                            guestfs_subprocess_quit_cb cb,\n"
3204 "                                            void *opaque);\n"
3205 "\n"
3206 msgstr ""
3207
3208 # type: textblock
3209 #: ../src/guestfs.pod:1638
3210 msgid ""
3211 "The callback function C<cb> will be called when the child process quits, "
3212 "either asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
3213 "corresponds to a transition from any state to the CONFIG state)."
3214 msgstr ""
3215
3216 # type: =head2
3217 #: ../src/guestfs.pod:1643
3218 msgid "guestfs_set_launch_done_callback"
3219 msgstr ""
3220
3221 # type: verbatim
3222 #: ../src/guestfs.pod:1645
3223 #, no-wrap
3224 msgid ""
3225 " typedef void (*guestfs_launch_done_cb) (guestfs_h *g, void *opaque);\n"
3226 " void guestfs_set_launch_done_callback (guestfs_h *g,\n"
3227 "                                        guestfs_launch_done_cb cb,\n"
3228 "                                        void *opaque);\n"
3229 "\n"
3230 msgstr ""
3231
3232 # type: textblock
3233 #: ../src/guestfs.pod:1650
3234 msgid ""
3235 "The callback function C<cb> will be called when the child process becomes "
3236 "ready first time after it has been launched.  (This corresponds to a "
3237 "transition from LAUNCHING to the READY state)."
3238 msgstr ""
3239
3240 # type: =head2
3241 #: ../src/guestfs.pod:1654
3242 msgid "guestfs_set_close_callback"
3243 msgstr ""
3244
3245 # type: verbatim
3246 #: ../src/guestfs.pod:1656
3247 #, no-wrap
3248 msgid ""
3249 " typedef void (*guestfs_close_cb) (guestfs_h *g, void *opaque);\n"
3250 " void guestfs_set_close_callback (guestfs_h *g,\n"
3251 "                                  guestfs_close_cb cb,\n"
3252 "                                  void *opaque);\n"
3253 "\n"
3254 msgstr ""
3255
3256 # type: textblock
3257 #: ../src/guestfs.pod:1661
3258 msgid ""
3259 "The callback function C<cb> will be called while the handle is being closed "
3260 "(synchronously from L</guestfs_close>)."
3261 msgstr ""
3262
3263 # type: textblock
3264 #: ../src/guestfs.pod:1664
3265 msgid ""
3266 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
3267 "handles that are open when the program exits.  This means that this callback "
3268 "might be called indirectly from L<exit(3)>, which can cause unexpected "
3269 "problems in higher-level languages (eg. if your HLL interpreter has already "
3270 "been cleaned up by the time this is called, and if your callback then jumps "
3271 "into some HLL function)."
3272 msgstr ""
3273
3274 # type: =head2
3275 #: ../src/guestfs.pod:1672
3276 msgid "guestfs_set_progress_callback"
3277 msgstr ""
3278
3279 # type: verbatim
3280 #: ../src/guestfs.pod:1674
3281 #, no-wrap
3282 msgid ""
3283 " typedef void (*guestfs_progress_cb) (guestfs_h *g, void *opaque,\n"
3284 "                                      int proc_nr, int serial,\n"
3285 "                                      uint64_t position, uint64_t total);\n"
3286 " void guestfs_set_progress_callback (guestfs_h *g,\n"
3287 "                                     guestfs_progress_cb cb,\n"
3288 "                                     void *opaque);\n"
3289 "\n"
3290 msgstr ""
3291
3292 # type: textblock
3293 #: ../src/guestfs.pod:1681
3294 msgid ""
3295 "Some long-running operations can generate progress messages.  If this "
3296 "callback is registered, then it will be called each time a progress message "
3297 "is generated (usually two seconds after the operation started, and three "
3298 "times per second thereafter until it completes, although the frequency may "
3299 "change in future versions)."
3300 msgstr ""
3301
3302 # type: textblock
3303 #: ../src/guestfs.pod:1687
3304 msgid ""
3305 "The callback receives two numbers: C<position> and C<total>.  The units of "
3306 "C<total> are not defined, although for some operations C<total> may relate "
3307 "in some way to the amount of data to be transferred (eg. in bytes or "
3308 "megabytes), and C<position> may be the portion which has been transferred."
3309 msgstr ""
3310
3311 # type: textblock
3312 #: ../src/guestfs.pod:1693
3313 msgid "The only defined and stable parts of the API are:"
3314 msgstr ""
3315
3316 # type: textblock
3317 #: ../src/guestfs.pod:1699
3318 msgid ""
3319 "The callback can display to the user some type of progress bar or indicator "
3320 "which shows the ratio of C<position>:C<total>."
3321 msgstr ""
3322
3323 # type: textblock
3324 #: ../src/guestfs.pod:1704
3325 msgid "0 E<lt>= C<position> E<lt>= C<total>"
3326 msgstr ""
3327
3328 # type: textblock
3329 #: ../src/guestfs.pod:1708
3330 msgid ""
3331 "If any progress notification is sent during a call, then a final progress "
3332 "notification is always sent when C<position> = C<total>."
3333 msgstr ""
3334
3335 # type: textblock
3336 #: ../src/guestfs.pod:1711
3337 msgid ""
3338 "This is to simplify caller code, so callers can easily set the progress "
3339 "indicator to \"100%\" at the end of the operation, without requiring special "
3340 "code to detect this case."
3341 msgstr ""
3342
3343 # type: textblock
3344 #: ../src/guestfs.pod:1717
3345 msgid ""
3346 "The callback also receives the procedure number and serial number of the "
3347 "call.  These are only useful for debugging protocol issues, and the callback "
3348 "can normally ignore them.  The callback may want to print these numbers in "
3349 "error messages or debugging messages."
3350 msgstr ""
3351
3352 # type: =head1
3353 #: ../src/guestfs.pod:1722
3354 msgid "PRIVATE DATA AREA"
3355 msgstr ""
3356
3357 # type: textblock
3358 #: ../src/guestfs.pod:1724
3359 msgid ""
3360 "You can attach named pieces of private data to the libguestfs handle, and "
3361 "fetch them by name for the lifetime of the handle.  This is called the "
3362 "private data area and is only available from the C API."
3363 msgstr ""
3364
3365 # type: textblock
3366 #: ../src/guestfs.pod:1728
3367 msgid "To attach a named piece of data, use the following call:"
3368 msgstr ""
3369
3370 # type: verbatim
3371 #: ../src/guestfs.pod:1730
3372 #, no-wrap
3373 msgid ""
3374 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
3375 "\n"
3376 msgstr ""
3377
3378 # type: textblock
3379 #: ../src/guestfs.pod:1732
3380 msgid ""
3381 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
3382 "pointer (which can be C<NULL>).  Any previous item with the same name is "
3383 "overwritten."
3384 msgstr ""
3385
3386 # type: textblock
3387 #: ../src/guestfs.pod:1736
3388 msgid ""
3389 "You can use any C<key> you want, but names beginning with an underscore "
3390 "character are reserved for internal libguestfs purposes (for implementing "
3391 "language bindings).  It is recommended to prefix the name with some unique "
3392 "string to avoid collisions with other users."
3393 msgstr ""
3394
3395 # type: textblock
3396 #: ../src/guestfs.pod:1741
3397 msgid "To retrieve the pointer, use:"
3398 msgstr ""
3399
3400 # type: verbatim
3401 #: ../src/guestfs.pod:1743
3402 #, no-wrap
3403 msgid ""
3404 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
3405 "\n"
3406 msgstr ""
3407
3408 # type: textblock
3409 #: ../src/guestfs.pod:1745
3410 msgid ""
3411 "This function returns C<NULL> if either no data is found associated with "
3412 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
3413 "C<NULL>."
3414 msgstr ""
3415
3416 # type: textblock
3417 #: ../src/guestfs.pod:1749
3418 msgid ""
3419 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
3420 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
3421 "all.  In particular, libguestfs does I<not> try to free the data when the "
3422 "handle is closed.  If the data must be freed, then the caller must either "
3423 "free it before calling L</guestfs_close> or must set up a close callback to "
3424 "do it (see L</guestfs_set_close_callback>, and note that only one callback "
3425 "can be registered for a handle)."
3426 msgstr ""
3427
3428 # type: textblock
3429 #: ../src/guestfs.pod:1757
3430 msgid ""
3431 "The private data area is implemented using a hash table, and should be "
3432 "reasonably efficient for moderate numbers of keys."
3433 msgstr ""
3434
3435 # type: =end
3436 #: ../src/guestfs.pod:1760 ../src/guestfs.pod:1765
3437 msgid "html"
3438 msgstr ""
3439
3440 # type: textblock
3441 #: ../src/guestfs.pod:1762
3442 msgid ""
3443 "<!-- old anchor for the next section --> <a "
3444 "name=\"state_machine_and_low_level_event_api\"/>"
3445 msgstr ""
3446
3447 # type: =head1
3448 #: ../src/guestfs.pod:1767
3449 msgid "ARCHITECTURE"
3450 msgstr ""
3451
3452 # type: textblock
3453 #: ../src/guestfs.pod:1769
3454 msgid ""
3455 "Internally, libguestfs is implemented by running an appliance (a special "
3456 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
3457 "process of the main program."
3458 msgstr ""
3459
3460 # type: verbatim
3461 #: ../src/guestfs.pod:1773
3462 #, no-wrap
3463 msgid ""
3464 "  ___________________\n"
3465 " /                   \\\n"
3466 " | main program      |\n"
3467 " |                   |\n"
3468 " |                   |           child process / appliance\n"
3469 " |                   |           __________________________\n"
3470 " |                   |          / qemu                     \\\n"
3471 " +-------------------+   RPC    |      +-----------------+ |\n"
3472 " | libguestfs     <--------------------> guestfsd        | |\n"
3473 " |                   |          |      +-----------------+ |\n"
3474 " \\___________________/          |      | Linux kernel    | |\n"
3475 "                                |      +--^--------------+ |\n"
3476 "                                \\_________|________________/\n"
3477 "                                          |\n"
3478 "                                   _______v______\n"
3479 "                                  /              \\\n"
3480 "                                  | Device or    |\n"
3481 "                                  | disk image   |\n"
3482 "                                  \\______________/\n"
3483 "\n"
3484 msgstr ""
3485
3486 # type: textblock
3487 #: ../src/guestfs.pod:1793
3488 msgid ""
3489 "The library, linked to the main program, creates the child process and hence "
3490 "the appliance in the L</guestfs_launch> function."
3491 msgstr ""
3492
3493 # type: textblock
3494 #: ../src/guestfs.pod:1796
3495 msgid ""
3496 "Inside the appliance is a Linux kernel and a complete stack of userspace "
3497 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
3498 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
3499 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
3500 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
3501 "attached to the qemu process which translates device access by the "
3502 "appliance's Linux kernel into accesses to the image."
3503 msgstr ""
3504
3505 # type: textblock
3506 #: ../src/guestfs.pod:1805
3507 msgid ""
3508 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
3509 "Although the disk image you are attached to might also be used by some "
3510 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
3511 "care if both libguestfs's qemu process and your virtual machine are trying "
3512 "to update the disk image at the same time, since these usually results in "
3513 "massive disk corruption)."
3514 msgstr ""
3515
3516 # type: =head1
3517 #: ../src/guestfs.pod:1812
3518 msgid "STATE MACHINE"
3519 msgstr ""
3520
3521 # type: textblock
3522 #: ../src/guestfs.pod:1814
3523 msgid "libguestfs uses a state machine to model the child process:"
3524 msgstr ""
3525
3526 # type: verbatim
3527 #: ../src/guestfs.pod:1816
3528 #, no-wrap
3529 msgid ""
3530 "                         |\n"
3531 "                    guestfs_create\n"
3532 "                         |\n"
3533 "                         |\n"
3534 "                     ____V_____\n"
3535 "                    /          \\\n"
3536 "                    |  CONFIG  |\n"
3537 "                    \\__________/\n"
3538 "                     ^ ^   ^  \\\n"
3539 "                    /  |    \\  \\ guestfs_launch\n"
3540 "                   /   |    _\\__V______\n"
3541 "                  /    |   /           \\\n"
3542 "                 /     |   | LAUNCHING |\n"
3543 "                /      |   \\___________/\n"
3544 "               /       |       /\n"
3545 "              /        |  guestfs_launch\n"
3546 "             /         |     /\n"
3547 "    ______  /        __|____V\n"
3548 "   /      \\ ------> /        \\\n"
3549 "   | BUSY |         | READY  |\n"
3550 "   \\______/ <------ \\________/\n"
3551 "\n"
3552 msgstr ""
3553
3554 # type: textblock
3555 #: ../src/guestfs.pod:1838
3556 msgid ""
3557 "The normal transitions are (1) CONFIG (when the handle is created, but there "
3558 "is no child process), (2) LAUNCHING (when the child process is booting up), "
3559 "(3) alternating between READY and BUSY as commands are issued to, and "
3560 "carried out by, the child process."
3561 msgstr ""
3562
3563 # type: textblock
3564 #: ../src/guestfs.pod:1843
3565 msgid ""
3566 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
3567 "asynchronously at any time (eg. due to some internal error), and that causes "
3568 "the state to transition back to CONFIG."
3569 msgstr ""
3570
3571 # type: textblock
3572 #: ../src/guestfs.pod:1847
3573 msgid ""
3574 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
3575 "issued when in the CONFIG state."
3576 msgstr ""
3577
3578 # type: textblock
3579 #: ../src/guestfs.pod:1850
3580 msgid ""
3581 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
3582 "L</guestfs_launch> blocks until the child process is READY to accept "
3583 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
3584 "moves the state from CONFIG to LAUNCHING while it is running."
3585 msgstr ""
3586
3587 # type: textblock
3588 #: ../src/guestfs.pod:1856
3589 msgid ""
3590 "API actions such as L</guestfs_mount> can only be issued when in the READY "
3591 "state.  These API calls block waiting for the command to be carried out "
3592 "(ie. the state to transition to BUSY and then back to READY).  There are no "
3593 "non-blocking versions, and no way to issue more than one command per handle "
3594 "at the same time."
3595 msgstr ""
3596
3597 # type: textblock
3598 #: ../src/guestfs.pod:1862
3599 msgid ""
3600 "Finally, the child process sends asynchronous messages back to the main "
3601 "program, such as kernel log messages.  You can register a callback to "
3602 "receive these messages."
3603 msgstr ""
3604
3605 # type: =head1
3606 #: ../src/guestfs.pod:1866
3607 msgid "INTERNALS"
3608 msgstr ""
3609
3610 # type: =head2
3611 #: ../src/guestfs.pod:1868
3612 msgid "COMMUNICATION PROTOCOL"
3613 msgstr ""
3614
3615 # type: textblock
3616 #: ../src/guestfs.pod:1870
3617 msgid ""
3618 "Don't rely on using this protocol directly.  This section documents how it "
3619 "currently works, but it may change at any time."
3620 msgstr ""
3621
3622 # type: textblock
3623 #: ../src/guestfs.pod:1873
3624 msgid ""
3625 "The protocol used to talk between the library and the daemon running inside "
3626 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
3627 "1014, RFC 1832, RFC 4506)."
3628 msgstr ""
3629
3630 # type: textblock
3631 #: ../src/guestfs.pod:1877
3632 msgid ""
3633 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
3634 "this file is automatically generated)."
3635 msgstr ""
3636
3637 # type: textblock
3638 #: ../src/guestfs.pod:1880
3639 msgid ""
3640 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
3641 "and C<FileOut> parameters, which are handled with very simple request/reply "
3642 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
3643 "parameters, which use the same request and reply messages, but they may also "
3644 "be followed by files sent using a chunked encoding."
3645 msgstr ""
3646
3647 # type: =head3
3648 #: ../src/guestfs.pod:1887
3649 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
3650 msgstr ""
3651
3652 # type: textblock
3653 #: ../src/guestfs.pod:1889
3654 msgid "For ordinary functions, the request message is:"
3655 msgstr ""
3656
3657 # type: verbatim
3658 #: ../src/guestfs.pod:1891
3659 #, no-wrap
3660 msgid ""
3661 " total length (header + arguments,\n"
3662 "      but not including the length word itself)\n"
3663 " struct guestfs_message_header (encoded as XDR)\n"
3664 " struct guestfs_<foo>_args (encoded as XDR)\n"
3665 "\n"
3666 msgstr ""
3667
3668 # type: textblock
3669 #: ../src/guestfs.pod:1896
3670 msgid ""
3671 "The total length field allows the daemon to allocate a fixed size buffer "
3672 "into which it slurps the rest of the message.  As a result, the total length "
3673 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
3674 "effective size of any request is limited to somewhere under this size."
3675 msgstr ""
3676
3677 # type: textblock
3678 #: ../src/guestfs.pod:1902
3679 msgid ""
3680 "Note also that many functions don't take any arguments, in which case the "
3681 "C<guestfs_I<foo>_args> is completely omitted."
3682 msgstr ""
3683
3684 # type: textblock
3685 #: ../src/guestfs.pod:1905
3686 msgid ""
3687 "The header contains the procedure number (C<guestfs_proc>) which is how the "
3688 "receiver knows what type of args structure to expect, or none at all."
3689 msgstr ""
3690
3691 # type: textblock
3692 #: ../src/guestfs.pod:1909
3693 msgid ""
3694 "For functions that take optional arguments, the optional arguments are "
3695 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
3696 "arguments.  A bitmask in the header indicates which optional arguments are "
3697 "meaningful.  The bitmask is also checked to see if it contains bits set "
3698 "which the daemon does not know about (eg. if more optional arguments were "
3699 "added in a later version of the library), and this causes the call to be "
3700 "rejected."
3701 msgstr ""
3702
3703 # type: textblock
3704 #: ../src/guestfs.pod:1917
3705 msgid "The reply message for ordinary functions is:"
3706 msgstr ""
3707
3708 # type: verbatim
3709 #: ../src/guestfs.pod:1919
3710 #, no-wrap
3711 msgid ""
3712 " total length (header + ret,\n"
3713 "      but not including the length word itself)\n"
3714 " struct guestfs_message_header (encoded as XDR)\n"
3715 " struct guestfs_<foo>_ret (encoded as XDR)\n"
3716 "\n"
3717 msgstr ""
3718
3719 # type: textblock
3720 #: ../src/guestfs.pod:1924
3721 msgid ""
3722 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
3723 "functions that return no formal return values."
3724 msgstr ""
3725
3726 # type: textblock
3727 #: ../src/guestfs.pod:1927
3728 msgid "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
3729 msgstr ""
3730
3731 # type: textblock
3732 #: ../src/guestfs.pod:1930
3733 msgid ""
3734 "In the case of an error, a flag is set in the header, and the reply message "
3735 "is slightly changed:"
3736 msgstr ""
3737
3738 # type: verbatim
3739 #: ../src/guestfs.pod:1933
3740 #, no-wrap
3741 msgid ""
3742 " total length (header + error,\n"
3743 "      but not including the length word itself)\n"
3744 " struct guestfs_message_header (encoded as XDR)\n"
3745 " struct guestfs_message_error (encoded as XDR)\n"
3746 "\n"
3747 msgstr ""
3748
3749 # type: textblock
3750 #: ../src/guestfs.pod:1938
3751 msgid ""
3752 "The C<guestfs_message_error> structure contains the error message as a "
3753 "string."
3754 msgstr ""
3755
3756 # type: =head3
3757 #: ../src/guestfs.pod:1941
3758 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
3759 msgstr ""
3760
3761 # type: textblock
3762 #: ../src/guestfs.pod:1943
3763 msgid ""
3764 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
3765 "The normal request message is sent (see above).  However this is followed by "
3766 "a sequence of file chunks."
3767 msgstr ""
3768
3769 # type: verbatim
3770 #: ../src/guestfs.pod:1947
3771 #, no-wrap
3772 msgid ""
3773 " total length (header + arguments,\n"
3774 "      but not including the length word itself,\n"
3775 "      and not including the chunks)\n"
3776 " struct guestfs_message_header (encoded as XDR)\n"
3777 " struct guestfs_<foo>_args (encoded as XDR)\n"
3778 " sequence of chunks for FileIn param #0\n"
3779 " sequence of chunks for FileIn param #1 etc.\n"
3780 "\n"
3781 msgstr ""
3782
3783 # type: textblock
3784 #: ../src/guestfs.pod:1955
3785 msgid "The \"sequence of chunks\" is:"
3786 msgstr ""
3787
3788 # type: verbatim
3789 #: ../src/guestfs.pod:1957
3790 #, no-wrap
3791 msgid ""
3792 " length of chunk (not including length word itself)\n"
3793 " struct guestfs_chunk (encoded as XDR)\n"
3794 " length of chunk\n"
3795 " struct guestfs_chunk (encoded as XDR)\n"
3796 "   ...\n"
3797 " length of chunk\n"
3798 " struct guestfs_chunk (with data.data_len == 0)\n"
3799 "\n"
3800 msgstr ""
3801
3802 # type: textblock
3803 #: ../src/guestfs.pod:1965
3804 msgid ""
3805 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
3806 "is set in the final chunk to indicate either successful completion or early "
3807 "cancellation."
3808 msgstr ""
3809
3810 # type: textblock
3811 #: ../src/guestfs.pod:1969
3812 msgid ""
3813 "At time of writing there are no functions that have more than one FileIn "
3814 "parameter.  However this is (theoretically) supported, by sending the "
3815 "sequence of chunks for each FileIn parameter one after another (from left to "
3816 "right)."
3817 msgstr ""
3818
3819 # type: textblock
3820 #: ../src/guestfs.pod:1974
3821 msgid ""
3822 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
3823 "transfer.  The library does this by sending a chunk with a special flag set "
3824 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
3825 "RPC, does I<not> send any reply, and goes back to reading the next request."
3826 msgstr ""
3827
3828 # type: textblock
3829 #: ../src/guestfs.pod:1980
3830 msgid ""
3831 "The daemon may also cancel.  It does this by writing a special word "
3832 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
3833 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
3834 "cancel chunk).  The special word is chosen so that even if cancellation "
3835 "happens right at the end of the transfer (after the library has finished "
3836 "writing and has started listening for the reply), the \"spurious\" cancel "
3837 "flag will not be confused with the reply message."
3838 msgstr ""
3839
3840 # type: textblock
3841 #: ../src/guestfs.pod:1989
3842 msgid ""
3843 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
3844 "limit), and also files where the size is not known in advance (eg. from "
3845 "pipes or sockets).  However the chunks are rather small "
3846 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
3847 "to keep much in memory."
3848 msgstr ""
3849
3850 # type: =head3
3851 #: ../src/guestfs.pod:1995
3852 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
3853 msgstr ""
3854
3855 # type: textblock
3856 #: ../src/guestfs.pod:1997
3857 msgid ""
3858 "The protocol for FileOut parameters is exactly the same as for FileIn "
3859 "parameters, but with the roles of daemon and library reversed."
3860 msgstr ""
3861
3862 # type: verbatim
3863 #: ../src/guestfs.pod:2000
3864 #, no-wrap
3865 msgid ""
3866 " total length (header + ret,\n"
3867 "      but not including the length word itself,\n"
3868 "      and not including the chunks)\n"
3869 " struct guestfs_message_header (encoded as XDR)\n"
3870 " struct guestfs_<foo>_ret (encoded as XDR)\n"
3871 " sequence of chunks for FileOut param #0\n"
3872 " sequence of chunks for FileOut param #1 etc.\n"
3873 "\n"
3874 msgstr ""
3875
3876 # type: =head3
3877 #: ../src/guestfs.pod:2008
3878 msgid "INITIAL MESSAGE"
3879 msgstr ""
3880
3881 # type: textblock
3882 #: ../src/guestfs.pod:2010
3883 msgid ""
3884 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
3885 "which indicates that the guest and daemon is alive.  This is what "
3886 "L</guestfs_launch> waits for."
3887 msgstr ""
3888
3889 # type: =head3
3890 #: ../src/guestfs.pod:2014
3891 msgid "PROGRESS NOTIFICATION MESSAGES"
3892 msgstr ""
3893
3894 # type: textblock
3895 #: ../src/guestfs.pod:2016
3896 msgid ""
3897 "The daemon may send progress notification messages at any time.  These are "
3898 "distinguished by the normal length word being replaced by "
3899 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
3900 msgstr ""
3901
3902 # type: textblock
3903 #: ../src/guestfs.pod:2020
3904 msgid ""
3905 "The library turns them into progress callbacks (see "
3906 "C<guestfs_set_progress_callback>) if there is a callback registered, or "
3907 "discards them if not."
3908 msgstr ""
3909
3910 # type: textblock
3911 #: ../src/guestfs.pod:2024
3912 msgid ""
3913 "The daemon self-limits the frequency of progress messages it sends (see "
3914 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
3915 "messages."
3916 msgstr ""
3917
3918 # type: =head1
3919 #: ../src/guestfs.pod:2028
3920 msgid "LIBGUESTFS VERSION NUMBERS"
3921 msgstr ""
3922
3923 # type: textblock
3924 #: ../src/guestfs.pod:2030
3925 msgid ""
3926 "Since April 2010, libguestfs has started to make separate development and "
3927 "stable releases, along with corresponding branches in our git repository.  "
3928 "These separate releases can be identified by version number:"
3929 msgstr ""
3930
3931 # type: verbatim
3932 #: ../src/guestfs.pod:2035
3933 #, no-wrap
3934 msgid ""
3935 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
3936 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
3937 "       |\n"
3938 "       v\n"
3939 " 1  .  3  .  5\n"
3940 " ^           ^\n"
3941 " |           |\n"
3942 " |           `-------- sub-version\n"
3943 " |\n"
3944 " `------ always '1' because we don't change the ABI\n"
3945 "\n"
3946 msgstr ""
3947
3948 # type: textblock
3949 #: ../src/guestfs.pod:2046
3950 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
3951 msgstr ""
3952
3953 # type: textblock
3954 #: ../src/guestfs.pod:2048
3955 msgid ""
3956 "As time passes we cherry pick fixes from the development branch and backport "
3957 "those into the stable branch, the effect being that the stable branch should "
3958 "get more stable and less buggy over time.  So the stable releases are ideal "
3959 "for people who don't need new features but would just like the software to "
3960 "work."
3961 msgstr ""
3962
3963 # type: textblock
3964 #: ../src/guestfs.pod:2054
3965 msgid "Our criteria for backporting changes are:"
3966 msgstr ""
3967
3968 # type: textblock
3969 #: ../src/guestfs.pod:2060
3970 msgid ""
3971 "Documentation changes which don't affect any code are backported unless the "
3972 "documentation refers to a future feature which is not in stable."
3973 msgstr ""
3974
3975 # type: textblock
3976 #: ../src/guestfs.pod:2066
3977 msgid ""
3978 "Bug fixes which are not controversial, fix obvious problems, and have been "
3979 "well tested are backported."
3980 msgstr ""
3981
3982 # type: textblock
3983 #: ../src/guestfs.pod:2071
3984 msgid ""
3985 "Simple rearrangements of code which shouldn't affect how it works get "
3986 "backported.  This is so that the code in the two branches doesn't get too "
3987 "far out of step, allowing us to backport future fixes more easily."
3988 msgstr ""
3989
3990 # type: textblock
3991 #: ../src/guestfs.pod:2077
3992 msgid ""
3993 "We I<don't> backport new features, new APIs, new tools etc, except in one "
3994 "exceptional case: the new feature is required in order to implement an "
3995 "important bug fix."
3996 msgstr ""
3997
3998 # type: textblock
3999 #: ../src/guestfs.pod:2083
4000 msgid ""
4001 "A new stable branch starts when we think the new features in development are "
4002 "substantial and compelling enough over the current stable branch to warrant "
4003 "it.  When that happens we create new stable and development versions 1.N.0 "
4004 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
4005 "stable at this point, but by backporting fixes from development, that branch "
4006 "will stabilize over time."
4007 msgstr ""
4008
4009 # type: =head1
4010 #: ../src/guestfs.pod:2091 ../fish/guestfish.pod:965 ../test-tool/libguestfs-test-tool.pod:104 ../tools/virt-edit.pl:330
4011 msgid "ENVIRONMENT VARIABLES"
4012 msgstr ""
4013
4014 # type: =item
4015 #: ../src/guestfs.pod:2095 ../fish/guestfish.pod:991
4016 msgid "LIBGUESTFS_APPEND"
4017 msgstr ""
4018
4019 # type: textblock
4020 #: ../src/guestfs.pod:2097 ../fish/guestfish.pod:993
4021 msgid "Pass additional options to the guest kernel."
4022 msgstr ""
4023
4024 # type: =item
4025 #: ../src/guestfs.pod:2099 ../fish/guestfish.pod:995
4026 msgid "LIBGUESTFS_DEBUG"
4027 msgstr ""
4028
4029 # type: textblock
4030 #: ../src/guestfs.pod:2101
4031 msgid ""
4032 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
4033 "effect as calling C<guestfs_set_verbose (g, 1)>."
4034 msgstr ""
4035
4036 # type: =item
4037 #: ../src/guestfs.pod:2104 ../fish/guestfish.pod:1000
4038 msgid "LIBGUESTFS_MEMSIZE"
4039 msgstr ""
4040
4041 # type: textblock
4042 #: ../src/guestfs.pod:2106 ../fish/guestfish.pod:1002
4043 msgid "Set the memory allocated to the qemu process, in megabytes.  For example:"
4044 msgstr ""
4045
4046 # type: verbatim
4047 #: ../src/guestfs.pod:2109 ../fish/guestfish.pod:1005
4048 #, no-wrap
4049 msgid ""
4050 " LIBGUESTFS_MEMSIZE=700\n"
4051 "\n"
4052 msgstr ""
4053
4054 # type: =item
4055 #: ../src/guestfs.pod:2111 ../fish/guestfish.pod:1007
4056 msgid "LIBGUESTFS_PATH"
4057 msgstr ""
4058
4059 # type: textblock
4060 #: ../src/guestfs.pod:2113
4061 msgid ""
4062 "Set the path that libguestfs uses to search for kernel and initrd.img.  See "
4063 "the discussion of paths in section PATH above."
4064 msgstr ""
4065
4066 # type: =item
4067 #: ../src/guestfs.pod:2116 ../fish/guestfish.pod:1012
4068 msgid "LIBGUESTFS_QEMU"
4069 msgstr ""
4070
4071 # type: textblock
4072 #: ../src/guestfs.pod:2118 ../fish/guestfish.pod:1014
4073 msgid ""
4074 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
4075 "which was found at compile time by the configure script is used."
4076 msgstr ""
4077
4078 # type: textblock
4079 #: ../src/guestfs.pod:2122
4080 msgid "See also L</QEMU WRAPPERS> above."
4081 msgstr ""
4082
4083 # type: =item
4084 #: ../src/guestfs.pod:2124 ../fish/guestfish.pod:1018
4085 msgid "LIBGUESTFS_TRACE"
4086 msgstr ""
4087
4088 # type: textblock
4089 #: ../src/guestfs.pod:2126
4090 msgid ""
4091 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
4092 "effect as calling C<guestfs_set_trace (g, 1)>."
4093 msgstr ""
4094
4095 # type: =item
4096 #: ../src/guestfs.pod:2129 ../fish/guestfish.pod:1027
4097 msgid "TMPDIR"
4098 msgstr ""
4099
4100 # type: textblock
4101 #: ../src/guestfs.pod:2131 ../fish/guestfish.pod:1029
4102 msgid "Location of temporary directory, defaults to C</tmp>."
4103 msgstr ""
4104
4105 # type: textblock
4106 #: ../src/guestfs.pod:2133 ../fish/guestfish.pod:1031
4107 msgid ""
4108 "If libguestfs was compiled to use the supermin appliance then the real "
4109 "appliance is cached in this directory, shared between all handles belonging "
4110 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
4111 "use in case C</tmp> is not large enough."
4112 msgstr ""
4113
4114 # type: =head1
4115 #: ../src/guestfs.pod:2141 ../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
4116 msgid "SEE ALSO"
4117 msgstr ""
4118
4119 # type: textblock
4120 #: ../src/guestfs.pod:2143
4121 msgid ""
4122 "L<guestfs-examples(3)>, L<guestfs-ocaml(3)>, L<guestfs-python(3)>, "
4123 "L<guestfs-ruby(3)>, L<guestfish(1)>, L<guestmount(1)>, L<virt-cat(1)>, "
4124 "L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems(1)>, "
4125 "L<virt-inspector(1)>, L<virt-list-filesystems(1)>, "
4126 "L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, "
4127 "L<virt-rescue(1)>, L<virt-tar(1)>, L<virt-win-reg(1)>, L<qemu(1)>, "
4128 "L<febootstrap(1)>, L<hivex(3)>, L<http://libguestfs.org/>."
4129 msgstr ""
4130
4131 # type: textblock
4132 #: ../src/guestfs.pod:2166
4133 msgid ""
4134 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, "
4135 "L<lvm(8)>, L<disktype(1)>."
4136 msgstr ""
4137
4138 # type: =head1
4139 #: ../src/guestfs.pod:2173 ../tools/virt-win-reg.pl:587 ../tools/virt-make-fs.pl:548
4140 msgid "BUGS"
4141 msgstr ""
4142
4143 # type: textblock
4144 #: ../src/guestfs.pod:2175
4145 msgid "To get a list of bugs against libguestfs use this link:"
4146 msgstr ""
4147
4148 # type: textblock
4149 #: ../src/guestfs.pod:2177
4150 msgid "L<https://bugzilla.redhat.com/buglist.cgi?component=libguestfs&product=Virtualization+Tools>"
4151 msgstr ""
4152
4153 # type: textblock
4154 #: ../src/guestfs.pod:2179
4155 msgid "To report a new bug against libguestfs use this link:"
4156 msgstr ""
4157
4158 # type: textblock
4159 #: ../src/guestfs.pod:2181
4160 msgid "L<https://bugzilla.redhat.com/enter_bug.cgi?component=libguestfs&product=Virtualization+Tools>"
4161 msgstr ""
4162
4163 # type: textblock
4164 #: ../src/guestfs.pod:2183
4165 msgid "When reporting a bug, please check:"
4166 msgstr ""
4167
4168 # type: textblock
4169 #: ../src/guestfs.pod:2189
4170 msgid "That the bug hasn't been reported already."
4171 msgstr ""
4172
4173 # type: textblock
4174 #: ../src/guestfs.pod:2193
4175 msgid "That you are testing a recent version."
4176 msgstr ""
4177
4178 # type: textblock
4179 #: ../src/guestfs.pod:2197
4180 msgid "Describe the bug accurately, and give a way to reproduce it."
4181 msgstr ""
4182
4183 # type: textblock
4184 #: ../src/guestfs.pod:2201
4185 msgid ""
4186 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
4187 "bug report."
4188 msgstr ""
4189
4190 # type: =head1
4191 #: ../src/guestfs.pod:2206 ../fish/guestfish.pod:1108 ../test-tool/libguestfs-test-tool.pod:115 ../fuse/guestmount.pod:244
4192 msgid "AUTHORS"
4193 msgstr ""
4194
4195 # type: textblock
4196 #: ../src/guestfs.pod:2208 ../fish/guestfish.pod:1110 ../test-tool/libguestfs-test-tool.pod:117 ../fuse/guestmount.pod:246
4197 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
4198 msgstr ""
4199
4200 # type: =head1
4201 #: ../src/guestfs.pod:2210 ../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
4202 msgid "COPYRIGHT"
4203 msgstr ""
4204
4205 # type: textblock
4206 #: ../src/guestfs.pod:2212 ../fish/guestfish.pod:1114 ../fuse/guestmount.pod:250
4207 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
4208 msgstr ""
4209
4210 # type: textblock
4211 #: ../src/guestfs.pod:2215
4212 msgid ""
4213 "This library is free software; you can redistribute it and/or modify it "
4214 "under the terms of the GNU Lesser General Public License as published by the "
4215 "Free Software Foundation; either version 2 of the License, or (at your "
4216 "option) any later version."
4217 msgstr ""
4218
4219 # type: textblock
4220 #: ../src/guestfs.pod:2220
4221 msgid ""
4222 "This library is distributed in the hope that it will be useful, but WITHOUT "
4223 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
4224 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License "
4225 "for more details."
4226 msgstr ""
4227
4228 # type: textblock
4229 #: ../src/guestfs.pod:2225
4230 msgid ""
4231 "You should have received a copy of the GNU Lesser General Public License "
4232 "along with this library; if not, write to the Free Software Foundation, "
4233 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
4234 msgstr ""
4235
4236 # type: =head2
4237 #: ../src/guestfs-actions.pod:1
4238 msgid "guestfs_add_cdrom"
4239 msgstr ""
4240
4241 # type: verbatim
4242 #: ../src/guestfs-actions.pod:3
4243 #, no-wrap
4244 msgid ""
4245 " int\n"
4246 " guestfs_add_cdrom (guestfs_h *g,\n"
4247 "                    const char *filename);\n"
4248 "\n"
4249 msgstr ""
4250
4251 # type: textblock
4252 #: ../src/guestfs-actions.pod:7 ../fish/guestfish-actions.pod:5
4253 msgid "This function adds a virtual CD-ROM disk image to the guest."
4254 msgstr ""
4255
4256 # type: textblock
4257 #: ../src/guestfs-actions.pod:9 ../fish/guestfish-actions.pod:7
4258 msgid "This is equivalent to the qemu parameter C<-cdrom filename>."
4259 msgstr ""
4260
4261 # type: textblock
4262 #: ../src/guestfs-actions.pod:17
4263 msgid ""
4264 "This call checks for the existence of C<filename>.  This stops you from "
4265 "specifying other types of drive which are supported by qemu such as C<nbd:> "
4266 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
4267 "instead."
4268 msgstr ""
4269
4270 # type: textblock
4271 #: ../src/guestfs-actions.pod:24
4272 msgid ""
4273 "If you just want to add an ISO file (often you use this as an efficient way "
4274 "to transfer large files into the guest), then you should probably use "
4275 "C<guestfs_add_drive_ro> instead."
4276 msgstr ""
4277
4278 # type: textblock
4279 #: ../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
4280 msgid "This function returns 0 on success or -1 on error."
4281 msgstr ""
4282
4283 # type: textblock
4284 #: ../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
4285 msgid ""
4286 "This function is deprecated.  In new code, use the C<add_drive_opts> call "
4287 "instead."
4288 msgstr ""
4289
4290 # type: textblock
4291 #: ../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
4292 msgid ""
4293 "Deprecated functions will not be removed from the API, but the fact that "
4294 "they are deprecated indicates that there are problems with correct use of "
4295 "these functions."
4296 msgstr ""
4297
4298 # type: textblock
4299 #: ../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
4300 msgid "(Added in 0.3)"
4301 msgstr ""
4302
4303 # type: =head2
4304 #: ../src/guestfs-actions.pod:41
4305 msgid "guestfs_add_domain"
4306 msgstr ""
4307
4308 # type: verbatim
4309 #: ../src/guestfs-actions.pod:43
4310 #, no-wrap
4311 msgid ""
4312 " int\n"
4313 " guestfs_add_domain (guestfs_h *g,\n"
4314 "                     const char *dom,\n"
4315 "                     ...);\n"
4316 "\n"
4317 msgstr ""
4318
4319 # type: textblock
4320 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:139 ../src/guestfs-actions.pod:4199
4321 msgid ""
4322 "You may supply a list of optional arguments to this call.  Use zero or more "
4323 "of the following pairs of parameters, and terminate the list with C<-1> on "
4324 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
4325 msgstr ""
4326
4327 # type: verbatim
4328 #: ../src/guestfs-actions.pod:53
4329 #, no-wrap
4330 msgid ""
4331 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
4332 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
4333 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
4334 "\n"
4335 msgstr ""
4336
4337 # type: textblock
4338 #: ../src/guestfs-actions.pod:57
4339 msgid ""
4340 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
4341 "It works by connecting to libvirt, requesting the domain and domain XML from "
4342 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
4343 "one."
4344 msgstr ""
4345
4346 # type: textblock
4347 #: ../src/guestfs-actions.pod:62 ../fish/guestfish-actions.pod:46
4348 msgid ""
4349 "The number of disks added is returned.  This operation is atomic: if an "
4350 "error is returned, then no disks are added."
4351 msgstr ""
4352
4353 # type: textblock
4354 #: ../src/guestfs-actions.pod:65 ../fish/guestfish-actions.pod:49
4355 msgid ""
4356 "This function does some minimal checks to make sure the libvirt domain is "
4357 "not running (unless C<readonly> is true).  In a future version we will try "
4358 "to acquire the libvirt lock on each disk."
4359 msgstr ""
4360
4361 # type: textblock
4362 #: ../src/guestfs-actions.pod:69 ../fish/guestfish-actions.pod:53
4363 msgid ""
4364 "Disks must be accessible locally.  This often means that adding disks from a "
4365 "remote libvirt connection (see L<http://libvirt.org/remote.html>)  will fail "
4366 "unless those disks are accessible via the same device path locally too."
4367 msgstr ""
4368
4369 # type: textblock
4370 #: ../src/guestfs-actions.pod:74
4371 msgid ""
4372 "The optional C<libvirturi> parameter sets the libvirt URI (see "
4373 "L<http://libvirt.org/uri.html>).  If this is not set then we connect to the "
4374 "default libvirt URI (or one set through an environment variable, see the "
4375 "libvirt documentation for full details).  If you are using the C API "
4376 "directly then it is more flexible to create the libvirt connection object "
4377 "yourself, get the domain object, and call C<guestfs_add_libvirt_dom>."
4378 msgstr ""
4379
4380 # type: textblock
4381 #: ../src/guestfs-actions.pod:82
4382 msgid ""
4383 "The other optional parameters are passed directly through to "
4384 "C<guestfs_add_drive_opts>."
4385 msgstr ""
4386
4387 # type: textblock
4388 #: ../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
4389 msgid "On error this function returns -1."
4390 msgstr ""
4391
4392 # type: textblock
4393 #: ../src/guestfs-actions.pod:87
4394 msgid "(Added in 1.7.4)"
4395 msgstr ""
4396
4397 # type: =head2
4398 #: ../src/guestfs-actions.pod:89
4399 msgid "guestfs_add_domain_va"
4400 msgstr ""
4401
4402 # type: verbatim
4403 #: ../src/guestfs-actions.pod:91
4404 #, no-wrap
4405 msgid ""
4406 " int\n"
4407 " guestfs_add_domain_va (guestfs_h *g,\n"
4408 "                        const char *dom,\n"
4409 "                        va_list args);\n"
4410 "\n"
4411 msgstr ""
4412
4413 # type: textblock
4414 #: ../src/guestfs-actions.pod:96
4415 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
4416 msgstr ""
4417
4418 # type: textblock
4419 #: ../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
4420 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
4421 msgstr ""
4422
4423 # type: =head2
4424 #: ../src/guestfs-actions.pod:100
4425 msgid "guestfs_add_domain_argv"
4426 msgstr ""
4427
4428 # type: verbatim
4429 #: ../src/guestfs-actions.pod:102
4430 #, no-wrap
4431 msgid ""
4432 " int\n"
4433 " guestfs_add_domain_argv (guestfs_h *g,\n"
4434 "                          const char *dom,\n"
4435 "                          const struct guestfs_add_domain_argv *optargs);\n"
4436 "\n"
4437 msgstr ""
4438
4439 # type: textblock
4440 #: ../src/guestfs-actions.pod:107
4441 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
4442 msgstr ""
4443
4444 # type: =head2
4445 #: ../src/guestfs-actions.pod:111
4446 msgid "guestfs_add_drive"
4447 msgstr ""
4448
4449 # type: verbatim
4450 #: ../src/guestfs-actions.pod:113
4451 #, no-wrap
4452 msgid ""
4453 " int\n"
4454 " guestfs_add_drive (guestfs_h *g,\n"
4455 "                    const char *filename);\n"
4456 "\n"
4457 msgstr ""
4458
4459 # type: textblock
4460 #: ../src/guestfs-actions.pod:117
4461 msgid ""
4462 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
4463 "optional parameters, so the disk is added writable, with the format being "
4464 "detected automatically."
4465 msgstr ""
4466
4467 # type: textblock
4468 #: ../src/guestfs-actions.pod:121
4469 msgid ""
4470 "Automatic detection of the format opens you up to a potential security hole "
4471 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
4472 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
4473 "you should think about replacing calls to this function with calls to "
4474 "C<guestfs_add_drive_opts>, and specifying the format."
4475 msgstr ""
4476
4477 # type: =head2
4478 #: ../src/guestfs-actions.pod:132
4479 msgid "guestfs_add_drive_opts"
4480 msgstr ""
4481
4482 # type: verbatim
4483 #: ../src/guestfs-actions.pod:134
4484 #, no-wrap
4485 msgid ""
4486 " int\n"
4487 " guestfs_add_drive_opts (guestfs_h *g,\n"
4488 "                         const char *filename,\n"
4489 "                         ...);\n"
4490 "\n"
4491 msgstr ""
4492
4493 # type: verbatim
4494 #: ../src/guestfs-actions.pod:144
4495 #, no-wrap
4496 msgid ""
4497 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
4498 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
4499 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
4500 "\n"
4501 msgstr ""
4502
4503 # type: textblock
4504 #: ../src/guestfs-actions.pod:148 ../fish/guestfish-actions.pod:92
4505 msgid ""
4506 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
4507 "The first time you call this function, the disk appears as C</dev/sda>, the "
4508 "second time as C</dev/sdb>, and so on."
4509 msgstr ""
4510
4511 # type: textblock
4512 #: ../src/guestfs-actions.pod:153 ../fish/guestfish-actions.pod:97
4513 msgid ""
4514 "You don't necessarily need to be root when using libguestfs.  However you "
4515 "obviously do need sufficient permissions to access the filename for whatever "
4516 "operations you want to perform (ie. read access if you just want to read the "
4517 "image or write access if you want to modify the image)."
4518 msgstr ""
4519
4520 # type: textblock
4521 #: ../src/guestfs-actions.pod:159 ../fish/guestfish-actions.pod:103
4522 msgid "This call checks that C<filename> exists."
4523 msgstr ""
4524
4525 # type: textblock
4526 #: ../src/guestfs-actions.pod:161 ../src/guestfs-actions.pod:4209 ../fish/guestfish-actions.pod:105 ../fish/guestfish-actions.pod:2829
4527 msgid "The optional arguments are:"
4528 msgstr ""
4529
4530 # type: =item
4531 #: ../src/guestfs-actions.pod:165 ../fish/guestfish-actions.pod:109
4532 msgid "C<readonly>"
4533 msgstr ""
4534
4535 # type: textblock
4536 #: ../src/guestfs-actions.pod:167 ../fish/guestfish-actions.pod:111
4537 msgid ""
4538 "If true then the image is treated as read-only.  Writes are still allowed, "
4539 "but they are stored in a temporary snapshot overlay which is discarded at "
4540 "the end.  The disk that you add is not modified."
4541 msgstr ""
4542
4543 # type: =item
4544 #: ../src/guestfs-actions.pod:171 ../fish/guestfish-actions.pod:115
4545 msgid "C<format>"
4546 msgstr ""
4547
4548 # type: textblock
4549 #: ../src/guestfs-actions.pod:173
4550 msgid ""
4551 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
4552 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
4553 "Possible formats include C<raw> and C<qcow2>."
4554 msgstr ""
4555
4556 # type: textblock
4557 #: ../src/guestfs-actions.pod:177 ../fish/guestfish-actions.pod:121
4558 msgid ""
4559 "Automatic detection of the format opens you up to a potential security hole "
4560 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
4561 "RHBZ#642934.  Specifying the format closes this security hole."
4562 msgstr ""
4563
4564 # type: =item
4565 #: ../src/guestfs-actions.pod:182 ../fish/guestfish-actions.pod:126
4566 msgid "C<iface>"
4567 msgstr ""
4568
4569 # type: textblock
4570 #: ../src/guestfs-actions.pod:184
4571 msgid ""
4572 "This rarely-used option lets you emulate the behaviour of the deprecated "
4573 "C<guestfs_add_drive_with_if> call (q.v.)"
4574 msgstr ""
4575
4576 # type: textblock
4577 #: ../src/guestfs-actions.pod:191
4578 msgid "(Added in 1.5.23)"
4579 msgstr ""
4580
4581 # type: =head2
4582 #: ../src/guestfs-actions.pod:193
4583 msgid "guestfs_add_drive_opts_va"
4584 msgstr ""
4585
4586 # type: verbatim
4587 #: ../src/guestfs-actions.pod:195
4588 #, no-wrap
4589 msgid ""
4590 " int\n"
4591 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
4592 "                            const char *filename,\n"
4593 "                            va_list args);\n"
4594 "\n"
4595 msgstr ""
4596
4597 # type: textblock
4598 #: ../src/guestfs-actions.pod:200
4599 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
4600 msgstr ""
4601
4602 # type: =head2
4603 #: ../src/guestfs-actions.pod:204
4604 msgid "guestfs_add_drive_opts_argv"
4605 msgstr ""
4606
4607 # type: verbatim
4608 #: ../src/guestfs-actions.pod:206
4609 #, no-wrap
4610 msgid ""
4611 " int\n"
4612 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
4613 "                              const char *filename,\n"
4614 "                              const struct guestfs_add_drive_opts_argv "
4615 "*optargs);\n"
4616 "\n"
4617 msgstr ""
4618
4619 # type: textblock
4620 #: ../src/guestfs-actions.pod:211
4621 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
4622 msgstr ""
4623
4624 # type: =head2
4625 #: ../src/guestfs-actions.pod:215
4626 msgid "guestfs_add_drive_ro"
4627 msgstr ""
4628
4629 # type: verbatim
4630 #: ../src/guestfs-actions.pod:217
4631 #, no-wrap
4632 msgid ""
4633 " int\n"
4634 " guestfs_add_drive_ro (guestfs_h *g,\n"
4635 "                       const char *filename);\n"
4636 "\n"
4637 msgstr ""
4638
4639 # type: textblock
4640 #: ../src/guestfs-actions.pod:221
4641 msgid ""
4642 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
4643 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
4644 "disk is added read-only, with the format being detected automatically."
4645 msgstr ""
4646
4647 # type: textblock
4648 #: ../src/guestfs-actions.pod:228
4649 msgid "(Added in 1.0.38)"
4650 msgstr ""
4651
4652 # type: =head2
4653 #: ../src/guestfs-actions.pod:230
4654 msgid "guestfs_add_drive_ro_with_if"
4655 msgstr ""
4656
4657 # type: verbatim
4658 #: ../src/guestfs-actions.pod:232
4659 #, no-wrap
4660 msgid ""
4661 " int\n"
4662 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
4663 "                               const char *filename,\n"
4664 "                               const char *iface);\n"
4665 "\n"
4666 msgstr ""
4667
4668 # type: textblock
4669 #: ../src/guestfs-actions.pod:237
4670 msgid ""
4671 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
4672 "QEMU interface emulation to use at run time."
4673 msgstr ""
4674
4675 # type: textblock
4676 #: ../src/guestfs-actions.pod:249 ../src/guestfs-actions.pod:270 ../src/guestfs-actions.pod:2333
4677 msgid "(Added in 1.0.84)"
4678 msgstr ""
4679
4680 # type: =head2
4681 #: ../src/guestfs-actions.pod:251
4682 msgid "guestfs_add_drive_with_if"
4683 msgstr ""
4684
4685 # type: verbatim
4686 #: ../src/guestfs-actions.pod:253
4687 #, no-wrap
4688 msgid ""
4689 " int\n"
4690 " guestfs_add_drive_with_if (guestfs_h *g,\n"
4691 "                            const char *filename,\n"
4692 "                            const char *iface);\n"
4693 "\n"
4694 msgstr ""
4695
4696 # type: textblock
4697 #: ../src/guestfs-actions.pod:258
4698 msgid ""
4699 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
4700 "QEMU interface emulation to use at run time."
4701 msgstr ""
4702
4703 # type: =head2
4704 #: ../src/guestfs-actions.pod:272
4705 msgid "guestfs_aug_clear"
4706 msgstr ""
4707
4708 # type: verbatim
4709 #: ../src/guestfs-actions.pod:274
4710 #, no-wrap
4711 msgid ""
4712 " int\n"
4713 " guestfs_aug_clear (guestfs_h *g,\n"
4714 "                    const char *augpath);\n"
4715 "\n"
4716 msgstr ""
4717
4718 # type: textblock
4719 #: ../src/guestfs-actions.pod:278 ../fish/guestfish-actions.pod:178
4720 msgid ""
4721 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
4722 "L<augtool(1)> C<clear> command."
4723 msgstr ""
4724
4725 # type: textblock
4726 #: ../src/guestfs-actions.pod:283 ../src/guestfs-actions.pod:2085
4727 msgid "(Added in 1.3.4)"
4728 msgstr ""
4729
4730 # type: =head2
4731 #: ../src/guestfs-actions.pod:285
4732 msgid "guestfs_aug_close"
4733 msgstr ""
4734
4735 # type: verbatim
4736 #: ../src/guestfs-actions.pod:287
4737 #, no-wrap
4738 msgid ""
4739 " int\n"
4740 " guestfs_aug_close (guestfs_h *g);\n"
4741 "\n"
4742 msgstr ""
4743
4744 # type: textblock
4745 #: ../src/guestfs-actions.pod:290
4746 msgid ""
4747 "Close the current Augeas handle and free up any resources used by it.  After "
4748 "calling this, you have to call C<guestfs_aug_init> again before you can use "
4749 "any other Augeas functions."
4750 msgstr ""
4751
4752 # type: textblock
4753 #: ../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
4754 msgid "(Added in 0.7)"
4755 msgstr ""
4756
4757 # type: =head2
4758 #: ../src/guestfs-actions.pod:299
4759 msgid "guestfs_aug_defnode"
4760 msgstr ""
4761
4762 # type: verbatim
4763 #: ../src/guestfs-actions.pod:301
4764 #, no-wrap
4765 msgid ""
4766 " struct guestfs_int_bool *\n"
4767 " guestfs_aug_defnode (guestfs_h *g,\n"
4768 "                      const char *name,\n"
4769 "                      const char *expr,\n"
4770 "                      const char *val);\n"
4771 "\n"
4772 msgstr ""
4773
4774 # type: textblock
4775 #: ../src/guestfs-actions.pod:307 ../fish/guestfish-actions.pod:194
4776 msgid "Defines a variable C<name> whose value is the result of evaluating C<expr>."
4777 msgstr ""
4778
4779 # type: textblock
4780 #: ../src/guestfs-actions.pod:310
4781 msgid ""
4782 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
4783 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
4784 "containing that single node."
4785 msgstr ""
4786
4787 # type: textblock
4788 #: ../src/guestfs-actions.pod:314 ../fish/guestfish-actions.pod:201
4789 msgid ""
4790 "On success this returns a pair containing the number of nodes in the "
4791 "nodeset, and a boolean flag if a node was created."
4792 msgstr ""
4793
4794 # type: textblock
4795 #: ../src/guestfs-actions.pod:318
4796 msgid ""
4797 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
4798 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
4799 msgstr ""
4800
4801 # type: =head2
4802 #: ../src/guestfs-actions.pod:324
4803 msgid "guestfs_aug_defvar"
4804 msgstr ""
4805
4806 # type: verbatim
4807 #: ../src/guestfs-actions.pod:326
4808 #, no-wrap
4809 msgid ""
4810 " int\n"
4811 " guestfs_aug_defvar (guestfs_h *g,\n"
4812 "                     const char *name,\n"
4813 "                     const char *expr);\n"
4814 "\n"
4815 msgstr ""
4816
4817 # type: textblock
4818 #: ../src/guestfs-actions.pod:331 ../fish/guestfish-actions.pod:209
4819 msgid ""
4820 "Defines an Augeas variable C<name> whose value is the result of evaluating "
4821 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
4822 msgstr ""
4823
4824 # type: textblock
4825 #: ../src/guestfs-actions.pod:335 ../fish/guestfish-actions.pod:213
4826 msgid ""
4827 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
4828 "evaluates to something which is not a nodeset."
4829 msgstr ""
4830
4831 # type: =head2
4832 #: ../src/guestfs-actions.pod:342
4833 msgid "guestfs_aug_get"
4834 msgstr ""
4835
4836 # type: verbatim
4837 #: ../src/guestfs-actions.pod:344
4838 #, no-wrap
4839 msgid ""
4840 " char *\n"
4841 " guestfs_aug_get (guestfs_h *g,\n"
4842 "                  const char *augpath);\n"
4843 "\n"
4844 msgstr ""
4845
4846 # type: textblock
4847 #: ../src/guestfs-actions.pod:348 ../fish/guestfish-actions.pod:220
4848 msgid ""
4849 "Look up the value associated with C<path>.  If C<path> matches exactly one "
4850 "node, the C<value> is returned."
4851 msgstr ""
4852
4853 # type: textblock
4854 #: ../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
4855 msgid ""
4856 "This function returns a string, or NULL on error.  I<The caller must free "
4857 "the returned string after use>."
4858 msgstr ""
4859
4860 # type: =head2
4861 #: ../src/guestfs-actions.pod:356
4862 msgid "guestfs_aug_init"
4863 msgstr ""
4864
4865 # type: verbatim
4866 #: ../src/guestfs-actions.pod:358
4867 #, no-wrap
4868 msgid ""
4869 " int\n"
4870 " guestfs_aug_init (guestfs_h *g,\n"
4871 "                   const char *root,\n"
4872 "                   int flags);\n"
4873 "\n"
4874 msgstr ""
4875
4876 # type: textblock
4877 #: ../src/guestfs-actions.pod:363 ../fish/guestfish-actions.pod:227
4878 msgid ""
4879 "Create a new Augeas handle for editing configuration files.  If there was "
4880 "any previous Augeas handle associated with this guestfs session, then it is "
4881 "closed."
4882 msgstr ""
4883
4884 # type: textblock
4885 #: ../src/guestfs-actions.pod:367
4886 msgid "You must call this before using any other C<guestfs_aug_*> commands."
4887 msgstr ""
4888
4889 # type: textblock
4890 #: ../src/guestfs-actions.pod:370 ../fish/guestfish-actions.pod:234
4891 msgid "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
4892 msgstr ""
4893
4894 # type: textblock
4895 #: ../src/guestfs-actions.pod:373 ../fish/guestfish-actions.pod:237
4896 msgid ""
4897 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
4898 "logical I<or> of the following integers:"
4899 msgstr ""
4900
4901 # type: =item
4902 #: ../src/guestfs-actions.pod:379 ../fish/guestfish-actions.pod:243
4903 msgid "C<AUG_SAVE_BACKUP> = 1"
4904 msgstr ""
4905
4906 # type: textblock
4907 #: ../src/guestfs-actions.pod:381 ../fish/guestfish-actions.pod:245
4908 msgid "Keep the original file with a C<.augsave> extension."
4909 msgstr ""
4910
4911 # type: =item
4912 #: ../src/guestfs-actions.pod:383 ../fish/guestfish-actions.pod:247
4913 msgid "C<AUG_SAVE_NEWFILE> = 2"
4914 msgstr ""
4915
4916 # type: textblock
4917 #: ../src/guestfs-actions.pod:385 ../fish/guestfish-actions.pod:249
4918 msgid ""
4919 "Save changes into a file with extension C<.augnew>, and do not overwrite "
4920 "original.  Overrides C<AUG_SAVE_BACKUP>."
4921 msgstr ""
4922
4923 # type: =item
4924 #: ../src/guestfs-actions.pod:388 ../fish/guestfish-actions.pod:252
4925 msgid "C<AUG_TYPE_CHECK> = 4"
4926 msgstr ""
4927
4928 # type: textblock
4929 #: ../src/guestfs-actions.pod:390 ../fish/guestfish-actions.pod:254
4930 msgid "Typecheck lenses (can be expensive)."
4931 msgstr ""
4932
4933 # type: =item
4934 #: ../src/guestfs-actions.pod:392 ../fish/guestfish-actions.pod:256
4935 msgid "C<AUG_NO_STDINC> = 8"
4936 msgstr ""
4937
4938 # type: textblock
4939 #: ../src/guestfs-actions.pod:394 ../fish/guestfish-actions.pod:258
4940 msgid "Do not use standard load path for modules."
4941 msgstr ""
4942
4943 # type: =item
4944 #: ../src/guestfs-actions.pod:396 ../fish/guestfish-actions.pod:260
4945 msgid "C<AUG_SAVE_NOOP> = 16"
4946 msgstr ""
4947
4948 # type: textblock
4949 #: ../src/guestfs-actions.pod:398 ../fish/guestfish-actions.pod:262
4950 msgid "Make save a no-op, just record what would have been changed."
4951 msgstr ""
4952
4953 # type: =item
4954 #: ../src/guestfs-actions.pod:400 ../fish/guestfish-actions.pod:264
4955 msgid "C<AUG_NO_LOAD> = 32"
4956 msgstr ""
4957
4958 # type: textblock
4959 #: ../src/guestfs-actions.pod:402
4960 msgid "Do not load the tree in C<guestfs_aug_init>."
4961 msgstr ""
4962
4963 # type: textblock
4964 #: ../src/guestfs-actions.pod:406
4965 msgid "To close the handle, you can call C<guestfs_aug_close>."
4966 msgstr ""
4967
4968 # type: textblock
4969 #: ../src/guestfs-actions.pod:408 ../fish/guestfish-actions.pod:272
4970 msgid "To find out more about Augeas, see L<http://augeas.net/>."
4971 msgstr ""
4972
4973 # type: =head2
4974 #: ../src/guestfs-actions.pod:414
4975 msgid "guestfs_aug_insert"
4976 msgstr ""
4977
4978 # type: verbatim
4979 #: ../src/guestfs-actions.pod:416
4980 #, no-wrap
4981 msgid ""
4982 " int\n"
4983 " guestfs_aug_insert (guestfs_h *g,\n"
4984 "                     const char *augpath,\n"
4985 "                     const char *label,\n"
4986 "                     int before);\n"
4987 "\n"
4988 msgstr ""
4989
4990 # type: textblock
4991 #: ../src/guestfs-actions.pod:422 ../fish/guestfish-actions.pod:278
4992 msgid ""
4993 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
4994 "or after C<path> (depending on the boolean flag C<before>)."
4995 msgstr ""
4996
4997 # type: textblock
4998 #: ../src/guestfs-actions.pod:426 ../fish/guestfish-actions.pod:282
4999 msgid ""
5000 "C<path> must match exactly one existing node in the tree, and C<label> must "
5001 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
5002 msgstr ""
5003
5004 # type: =head2
5005 #: ../src/guestfs-actions.pod:434
5006 msgid "guestfs_aug_load"
5007 msgstr ""
5008
5009 # type: verbatim
5010 #: ../src/guestfs-actions.pod:436
5011 #, no-wrap
5012 msgid ""
5013 " int\n"
5014 " guestfs_aug_load (guestfs_h *g);\n"
5015 "\n"
5016 msgstr ""
5017
5018 # type: textblock
5019 #: ../src/guestfs-actions.pod:439 ../fish/guestfish-actions.pod:290
5020 msgid "Load files into the tree."
5021 msgstr ""
5022
5023 # type: textblock
5024 #: ../src/guestfs-actions.pod:441 ../fish/guestfish-actions.pod:292
5025 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
5026 msgstr ""
5027
5028 # type: =head2
5029 #: ../src/guestfs-actions.pod:448
5030 msgid "guestfs_aug_ls"
5031 msgstr ""
5032
5033 # type: verbatim
5034 #: ../src/guestfs-actions.pod:450
5035 #, no-wrap
5036 msgid ""
5037 " char **\n"
5038 " guestfs_aug_ls (guestfs_h *g,\n"
5039 "                 const char *augpath);\n"
5040 "\n"
5041 msgstr ""
5042
5043 # type: textblock
5044 #: ../src/guestfs-actions.pod:454
5045 msgid ""
5046 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
5047 "sorting the resulting nodes into alphabetical order."
5048 msgstr ""
5049
5050 # type: textblock
5051 #: ../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
5052 msgid ""
5053 "This function returns a NULL-terminated array of strings (like "
5054 "L<environ(3)>), or NULL if there was an error.  I<The caller must free the "
5055 "strings and the array after use>."
5056 msgstr ""
5057
5058 # type: textblock
5059 #: ../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
5060 msgid "(Added in 0.8)"
5061 msgstr ""
5062
5063 # type: =head2
5064 #: ../src/guestfs-actions.pod:463
5065 msgid "guestfs_aug_match"
5066 msgstr ""
5067
5068 # type: verbatim
5069 #: ../src/guestfs-actions.pod:465
5070 #, no-wrap
5071 msgid ""
5072 " char **\n"
5073 " guestfs_aug_match (guestfs_h *g,\n"
5074 "                    const char *augpath);\n"
5075 "\n"
5076 msgstr ""
5077
5078 # type: textblock
5079 #: ../src/guestfs-actions.pod:469 ../fish/guestfish-actions.pod:306
5080 msgid ""
5081 "Returns a list of paths which match the path expression C<path>.  The "
5082 "returned paths are sufficiently qualified so that they match exactly one "
5083 "node in the current tree."
5084 msgstr ""
5085
5086 # type: =head2
5087 #: ../src/guestfs-actions.pod:479
5088 msgid "guestfs_aug_mv"
5089 msgstr ""
5090
5091 # type: verbatim
5092 #: ../src/guestfs-actions.pod:481
5093 #, no-wrap
5094 msgid ""
5095 " int\n"
5096 " guestfs_aug_mv (guestfs_h *g,\n"
5097 "                 const char *src,\n"
5098 "                 const char *dest);\n"
5099 "\n"
5100 msgstr ""
5101
5102 # type: textblock
5103 #: ../src/guestfs-actions.pod:486 ../fish/guestfish-actions.pod:314
5104 msgid ""
5105 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
5106 "C<dest> is overwritten if it exists."
5107 msgstr ""
5108
5109 # type: =head2
5110 #: ../src/guestfs-actions.pod:493
5111 msgid "guestfs_aug_rm"
5112 msgstr ""
5113
5114 # type: verbatim
5115 #: ../src/guestfs-actions.pod:495
5116 #, no-wrap
5117 msgid ""
5118 " int\n"
5119 " guestfs_aug_rm (guestfs_h *g,\n"
5120 "                 const char *augpath);\n"
5121 "\n"
5122 msgstr ""
5123
5124 # type: textblock
5125 #: ../src/guestfs-actions.pod:499 ../fish/guestfish-actions.pod:321
5126 msgid "Remove C<path> and all of its children."
5127 msgstr ""
5128
5129 # type: textblock
5130 #: ../src/guestfs-actions.pod:501 ../fish/guestfish-actions.pod:323
5131 msgid "On success this returns the number of entries which were removed."
5132 msgstr ""
5133
5134 # type: =head2
5135 #: ../src/guestfs-actions.pod:507
5136 msgid "guestfs_aug_save"
5137 msgstr ""
5138
5139 # type: verbatim
5140 #: ../src/guestfs-actions.pod:509
5141 #, no-wrap
5142 msgid ""
5143 " int\n"
5144 " guestfs_aug_save (guestfs_h *g);\n"
5145 "\n"
5146 msgstr ""
5147
5148 # type: textblock
5149 #: ../src/guestfs-actions.pod:512 ../fish/guestfish-actions.pod:329
5150 msgid "This writes all pending changes to disk."
5151 msgstr ""
5152
5153 # type: textblock
5154 #: ../src/guestfs-actions.pod:514
5155 msgid ""
5156 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
5157 "are saved."
5158 msgstr ""
5159
5160 # type: =head2
5161 #: ../src/guestfs-actions.pod:521
5162 msgid "guestfs_aug_set"
5163 msgstr ""
5164
5165 # type: verbatim
5166 #: ../src/guestfs-actions.pod:523
5167 #, no-wrap
5168 msgid ""
5169 " int\n"
5170 " guestfs_aug_set (guestfs_h *g,\n"
5171 "                  const char *augpath,\n"
5172 "                  const char *val);\n"
5173 "\n"
5174 msgstr ""
5175
5176 # type: textblock
5177 #: ../src/guestfs-actions.pod:528 ../fish/guestfish-actions.pod:338
5178 msgid "Set the value associated with C<path> to C<val>."
5179 msgstr ""
5180
5181 # type: textblock
5182 #: ../src/guestfs-actions.pod:530
5183 msgid ""
5184 "In the Augeas API, it is possible to clear a node by setting the value to "
5185 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
5186 "this call.  Instead you must use the C<guestfs_aug_clear> call."
5187 msgstr ""
5188
5189 # type: =head2
5190 #: ../src/guestfs-actions.pod:539
5191 msgid "guestfs_available"
5192 msgstr ""
5193
5194 # type: verbatim
5195 #: ../src/guestfs-actions.pod:541
5196 #, no-wrap
5197 msgid ""
5198 " int\n"
5199 " guestfs_available (guestfs_h *g,\n"
5200 "                    char *const *groups);\n"
5201 "\n"
5202 msgstr ""
5203
5204 # type: textblock
5205 #: ../src/guestfs-actions.pod:545 ../fish/guestfish-actions.pod:349
5206 msgid ""
5207 "This command is used to check the availability of some groups of "
5208 "functionality in the appliance, which not all builds of the libguestfs "
5209 "appliance will be able to provide."
5210 msgstr ""
5211
5212 # type: textblock
5213 #: ../src/guestfs-actions.pod:549
5214 msgid ""
5215 "The libguestfs groups, and the functions that those groups correspond to, "
5216 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
5217 "runtime by calling C<guestfs_available_all_groups>."
5218 msgstr ""
5219
5220 # type: textblock
5221 #: ../src/guestfs-actions.pod:554 ../fish/guestfish-actions.pod:358
5222 msgid ""
5223 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", "
5224 "\"augeas\"]> would check for the availability of the Linux inotify functions "
5225 "and Augeas (configuration file editing) functions."
5226 msgstr ""
5227
5228 # type: textblock
5229 #: ../src/guestfs-actions.pod:559 ../fish/guestfish-actions.pod:363
5230 msgid "The command returns no error if I<all> requested groups are available."
5231 msgstr ""
5232
5233 # type: textblock
5234 #: ../src/guestfs-actions.pod:561 ../fish/guestfish-actions.pod:365
5235 msgid ""
5236 "It fails with an error if one or more of the requested groups is unavailable "
5237 "in the appliance."
5238 msgstr ""
5239
5240 # type: textblock
5241 #: ../src/guestfs-actions.pod:564 ../fish/guestfish-actions.pod:368
5242 msgid ""
5243 "If an unknown group name is included in the list of groups then an error is "
5244 "always returned."
5245 msgstr ""
5246
5247 # type: textblock
5248 #: ../src/guestfs-actions.pod:567 ../fish/guestfish-actions.pod:371
5249 msgid "I<Notes:>"
5250 msgstr ""
5251
5252 # type: textblock
5253 #: ../src/guestfs-actions.pod:573
5254 msgid "You must call C<guestfs_launch> before calling this function."
5255 msgstr ""
5256
5257 # type: textblock
5258 #: ../src/guestfs-actions.pod:575 ../fish/guestfish-actions.pod:379
5259 msgid ""
5260 "The reason is because we don't know what groups are supported by the "
5261 "appliance/daemon until it is running and can be queried."
5262 msgstr ""
5263
5264 # type: textblock
5265 #: ../src/guestfs-actions.pod:581 ../fish/guestfish-actions.pod:385
5266 msgid ""
5267 "If a group of functions is available, this does not necessarily mean that "
5268 "they will work.  You still have to check for errors when calling individual "
5269 "API functions even if they are available."
5270 msgstr ""
5271
5272 # type: textblock
5273 #: ../src/guestfs-actions.pod:588 ../fish/guestfish-actions.pod:392
5274 msgid ""
5275 "It is usually the job of distro packagers to build complete functionality "
5276 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
5277 "with all requirements satisfied, will support everything."
5278 msgstr ""
5279
5280 # type: textblock
5281 #: ../src/guestfs-actions.pod:595
5282 msgid ""
5283 "This call was added in version C<1.0.80>.  In previous versions of "
5284 "libguestfs all you could do would be to speculatively execute a command to "
5285 "find out if the daemon implemented it.  See also C<guestfs_version>."
5286 msgstr ""
5287
5288 # type: textblock
5289 #: ../src/guestfs-actions.pod:604 ../src/guestfs-actions.pod:1165
5290 msgid "(Added in 1.0.80)"
5291 msgstr ""
5292
5293 # type: =head2
5294 #: ../src/guestfs-actions.pod:606
5295 msgid "guestfs_available_all_groups"
5296 msgstr ""
5297
5298 # type: verbatim
5299 #: ../src/guestfs-actions.pod:608
5300 #, no-wrap
5301 msgid ""
5302 " char **\n"
5303 " guestfs_available_all_groups (guestfs_h *g);\n"
5304 "\n"
5305 msgstr ""
5306
5307 # type: textblock
5308 #: ../src/guestfs-actions.pod:611
5309 msgid ""
5310 "This command returns a list of all optional groups that this daemon knows "
5311 "about.  Note this returns both supported and unsupported groups.  To find "
5312 "out which ones the daemon can actually support you have to call "
5313 "C<guestfs_available> on each member of the returned list."
5314 msgstr ""
5315
5316 # type: textblock
5317 #: ../src/guestfs-actions.pod:617
5318 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
5319 msgstr ""
5320
5321 # type: textblock
5322 #: ../src/guestfs-actions.pod:623
5323 msgid "(Added in 1.3.15)"
5324 msgstr ""
5325
5326 # type: =head2
5327 #: ../src/guestfs-actions.pod:625
5328 msgid "guestfs_base64_in"
5329 msgstr ""
5330
5331 # type: verbatim
5332 #: ../src/guestfs-actions.pod:627
5333 #, no-wrap
5334 msgid ""
5335 " int\n"
5336 " guestfs_base64_in (guestfs_h *g,\n"
5337 "                    const char *base64file,\n"
5338 "                    const char *filename);\n"
5339 "\n"
5340 msgstr ""
5341
5342 # type: textblock
5343 #: ../src/guestfs-actions.pod:632 ../fish/guestfish-actions.pod:422
5344 msgid "This command uploads base64-encoded data from C<base64file> to C<filename>."
5345 msgstr ""
5346
5347 # type: textblock
5348 #: ../src/guestfs-actions.pod:637 ../src/guestfs-actions.pod:651
5349 msgid "(Added in 1.3.5)"
5350 msgstr ""
5351
5352 # type: =head2
5353 #: ../src/guestfs-actions.pod:639
5354 msgid "guestfs_base64_out"
5355 msgstr ""
5356
5357 # type: verbatim
5358 #: ../src/guestfs-actions.pod:641
5359 #, no-wrap
5360 msgid ""
5361 " int\n"
5362 " guestfs_base64_out (guestfs_h *g,\n"
5363 "                     const char *filename,\n"
5364 "                     const char *base64file);\n"
5365 "\n"
5366 msgstr ""
5367
5368 # type: textblock
5369 #: ../src/guestfs-actions.pod:646 ../fish/guestfish-actions.pod:431
5370 msgid ""
5371 "This command downloads the contents of C<filename>, writing it out to local "
5372 "file C<base64file> encoded as base64."
5373 msgstr ""
5374
5375 # type: =head2
5376 #: ../src/guestfs-actions.pod:653
5377 msgid "guestfs_blockdev_flushbufs"
5378 msgstr ""
5379
5380 # type: verbatim
5381 #: ../src/guestfs-actions.pod:655
5382 #, no-wrap
5383 msgid ""
5384 " int\n"
5385 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
5386 "                             const char *device);\n"
5387 "\n"
5388 msgstr ""
5389
5390 # type: textblock
5391 #: ../src/guestfs-actions.pod:659 ../fish/guestfish-actions.pod:440
5392 msgid "This tells the kernel to flush internal buffers associated with C<device>."
5393 msgstr ""
5394
5395 # type: textblock
5396 #: ../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
5397 msgid "This uses the L<blockdev(8)> command."
5398 msgstr ""
5399
5400 # type: textblock
5401 #: ../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
5402 msgid "(Added in 0.9.3)"
5403 msgstr ""
5404
5405 # type: =head2
5406 #: ../src/guestfs-actions.pod:668
5407 msgid "guestfs_blockdev_getbsz"
5408 msgstr ""
5409
5410 # type: verbatim
5411 #: ../src/guestfs-actions.pod:670
5412 #, no-wrap
5413 msgid ""
5414 " int\n"
5415 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
5416 "                          const char *device);\n"
5417 "\n"
5418 msgstr ""
5419
5420 # type: textblock
5421 #: ../src/guestfs-actions.pod:674 ../fish/guestfish-actions.pod:449
5422 msgid "This returns the block size of a device."
5423 msgstr ""
5424
5425 # type: textblock
5426 #: ../src/guestfs-actions.pod:676 ../src/guestfs-actions.pod:776 ../fish/guestfish-actions.pod:451 ../fish/guestfish-actions.pod:514
5427 msgid ""
5428 "(Note this is different from both I<size in blocks> and I<filesystem block "
5429 "size>)."
5430 msgstr ""
5431
5432 # type: =head2
5433 #: ../src/guestfs-actions.pod:685
5434 msgid "guestfs_blockdev_getro"
5435 msgstr ""
5436
5437 # type: verbatim
5438 #: ../src/guestfs-actions.pod:687
5439 #, no-wrap
5440 msgid ""
5441 " int\n"
5442 " guestfs_blockdev_getro (guestfs_h *g,\n"
5443 "                         const char *device);\n"
5444 "\n"
5445 msgstr ""
5446
5447 # type: textblock
5448 #: ../src/guestfs-actions.pod:691 ../fish/guestfish-actions.pod:460
5449 msgid ""
5450 "Returns a boolean indicating if the block device is read-only (true if "
5451 "read-only, false if not)."
5452 msgstr ""
5453
5454 # type: textblock
5455 #: ../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
5456 msgid "This function returns a C truth value on success or -1 on error."
5457 msgstr ""
5458
5459 # type: =head2
5460 #: ../src/guestfs-actions.pod:700
5461 msgid "guestfs_blockdev_getsize64"
5462 msgstr ""
5463
5464 # type: verbatim
5465 #: ../src/guestfs-actions.pod:702
5466 #, no-wrap
5467 msgid ""
5468 " int64_t\n"
5469 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
5470 "                             const char *device);\n"
5471 "\n"
5472 msgstr ""
5473
5474 # type: textblock
5475 #: ../src/guestfs-actions.pod:706 ../fish/guestfish-actions.pod:469
5476 msgid "This returns the size of the device in bytes."
5477 msgstr ""
5478
5479 # type: textblock
5480 #: ../src/guestfs-actions.pod:708
5481 msgid "See also C<guestfs_blockdev_getsz>."
5482 msgstr ""
5483
5484 # type: =head2
5485 #: ../src/guestfs-actions.pod:716
5486 msgid "guestfs_blockdev_getss"
5487 msgstr ""
5488
5489 # type: verbatim
5490 #: ../src/guestfs-actions.pod:718
5491 #, no-wrap
5492 msgid ""
5493 " int\n"
5494 " guestfs_blockdev_getss (guestfs_h *g,\n"
5495 "                         const char *device);\n"
5496 "\n"
5497 msgstr ""
5498
5499 # type: textblock
5500 #: ../src/guestfs-actions.pod:722 ../fish/guestfish-actions.pod:479
5501 msgid ""
5502 "This returns the size of sectors on a block device.  Usually 512, but can be "
5503 "larger for modern devices."
5504 msgstr ""
5505
5506 # type: textblock
5507 #: ../src/guestfs-actions.pod:725
5508 msgid ""
5509 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
5510 "that)."
5511 msgstr ""
5512
5513 # type: =head2
5514 #: ../src/guestfs-actions.pod:734
5515 msgid "guestfs_blockdev_getsz"
5516 msgstr ""
5517
5518 # type: verbatim
5519 #: ../src/guestfs-actions.pod:736
5520 #, no-wrap
5521 msgid ""
5522 " int64_t\n"
5523 " guestfs_blockdev_getsz (guestfs_h *g,\n"
5524 "                         const char *device);\n"
5525 "\n"
5526 msgstr ""
5527
5528 # type: textblock
5529 #: ../src/guestfs-actions.pod:740 ../fish/guestfish-actions.pod:491
5530 msgid ""
5531 "This returns the size of the device in units of 512-byte sectors (even if "
5532 "the sectorsize isn't 512 bytes ... weird)."
5533 msgstr ""
5534
5535 # type: textblock
5536 #: ../src/guestfs-actions.pod:743
5537 msgid ""
5538 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
5539 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
5540 msgstr ""
5541
5542 # type: =head2
5543 #: ../src/guestfs-actions.pod:753
5544 msgid "guestfs_blockdev_rereadpt"
5545 msgstr ""
5546
5547 # type: verbatim
5548 #: ../src/guestfs-actions.pod:755
5549 #, no-wrap
5550 msgid ""
5551 " int\n"
5552 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
5553 "                            const char *device);\n"
5554 "\n"
5555 msgstr ""
5556
5557 # type: textblock
5558 #: ../src/guestfs-actions.pod:759 ../fish/guestfish-actions.pod:504
5559 msgid "Reread the partition table on C<device>."
5560 msgstr ""
5561
5562 # type: =head2
5563 #: ../src/guestfs-actions.pod:767
5564 msgid "guestfs_blockdev_setbsz"
5565 msgstr ""
5566
5567 # type: verbatim
5568 #: ../src/guestfs-actions.pod:769
5569 #, no-wrap
5570 msgid ""
5571 " int\n"
5572 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
5573 "                          const char *device,\n"
5574 "                          int blocksize);\n"
5575 "\n"
5576 msgstr ""
5577
5578 # type: textblock
5579 #: ../src/guestfs-actions.pod:774 ../fish/guestfish-actions.pod:512
5580 msgid "This sets the block size of a device."
5581 msgstr ""
5582
5583 # type: =head2
5584 #: ../src/guestfs-actions.pod:785
5585 msgid "guestfs_blockdev_setro"
5586 msgstr ""
5587
5588 # type: verbatim
5589 #: ../src/guestfs-actions.pod:787
5590 #, no-wrap
5591 msgid ""
5592 " int\n"
5593 " guestfs_blockdev_setro (guestfs_h *g,\n"
5594 "                         const char *device);\n"
5595 "\n"
5596 msgstr ""
5597
5598 # type: textblock
5599 #: ../src/guestfs-actions.pod:791 ../fish/guestfish-actions.pod:523
5600 msgid "Sets the block device named C<device> to read-only."
5601 msgstr ""
5602
5603 # type: =head2
5604 #: ../src/guestfs-actions.pod:799
5605 msgid "guestfs_blockdev_setrw"
5606 msgstr ""
5607
5608 # type: verbatim
5609 #: ../src/guestfs-actions.pod:801
5610 #, no-wrap
5611 msgid ""
5612 " int\n"
5613 " guestfs_blockdev_setrw (guestfs_h *g,\n"
5614 "                         const char *device);\n"
5615 "\n"
5616 msgstr ""
5617
5618 # type: textblock
5619 #: ../src/guestfs-actions.pod:805 ../fish/guestfish-actions.pod:531
5620 msgid "Sets the block device named C<device> to read-write."
5621 msgstr ""
5622
5623 # type: =head2
5624 #: ../src/guestfs-actions.pod:813
5625 msgid "guestfs_case_sensitive_path"
5626 msgstr ""
5627
5628 # type: verbatim
5629 #: ../src/guestfs-actions.pod:815
5630 #, no-wrap
5631 msgid ""
5632 " char *\n"
5633 " guestfs_case_sensitive_path (guestfs_h *g,\n"
5634 "                              const char *path);\n"
5635 "\n"
5636 msgstr ""
5637
5638 # type: textblock
5639 #: ../src/guestfs-actions.pod:819 ../fish/guestfish-actions.pod:539
5640 msgid ""
5641 "This can be used to resolve case insensitive paths on a filesystem which is "
5642 "case sensitive.  The use case is to resolve paths which you have read from "
5643 "Windows configuration files or the Windows Registry, to the true path."
5644 msgstr ""
5645
5646 # type: textblock
5647 #: ../src/guestfs-actions.pod:824 ../fish/guestfish-actions.pod:544
5648 msgid ""
5649 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
5650 "(and probably others), which is that although the underlying filesystem is "
5651 "case-insensitive, the driver exports the filesystem to Linux as "
5652 "case-sensitive."
5653 msgstr ""
5654
5655 # type: textblock
5656 #: ../src/guestfs-actions.pod:829 ../fish/guestfish-actions.pod:549
5657 msgid ""
5658 "One consequence of this is that special directories such as C<c:\\windows> "
5659 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
5660 "precise details of how they were created.  In Windows itself this would not "
5661 "be a problem."
5662 msgstr ""
5663
5664 # type: textblock
5665 #: ../src/guestfs-actions.pod:835 ../fish/guestfish-actions.pod:555
5666 msgid ""
5667 "Bug or feature? You decide: "
5668 "L<http://www.tuxera.com/community/ntfs-3g-faq/#posixfilenames1>"
5669 msgstr ""
5670
5671 # type: textblock
5672 #: ../src/guestfs-actions.pod:838 ../fish/guestfish-actions.pod:558
5673 msgid ""
5674 "This function resolves the true case of each element in the path and returns "
5675 "the case-sensitive path."
5676 msgstr ""
5677
5678 # type: textblock
5679 #: ../src/guestfs-actions.pod:841
5680 msgid ""
5681 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return "
5682 "C<\"/WINDOWS/system32\"> (the exact return value would depend on details of "
5683 "how the directories were originally created under Windows)."
5684 msgstr ""
5685
5686 # type: textblock
5687 #: ../src/guestfs-actions.pod:846 ../fish/guestfish-actions.pod:566
5688 msgid "I<Note>: This function does not handle drive names, backslashes etc."
5689 msgstr ""
5690
5691 # type: textblock
5692 #: ../src/guestfs-actions.pod:849
5693 msgid "See also C<guestfs_realpath>."
5694 msgstr ""
5695
5696 # type: textblock
5697 #: ../src/guestfs-actions.pod:854 ../src/guestfs-actions.pod:6661
5698 msgid "(Added in 1.0.75)"
5699 msgstr ""
5700
5701 # type: =head2
5702 #: ../src/guestfs-actions.pod:856
5703 msgid "guestfs_cat"
5704 msgstr ""
5705
5706 # type: verbatim
5707 #: ../src/guestfs-actions.pod:858
5708 #, no-wrap
5709 msgid ""
5710 " char *\n"
5711 " guestfs_cat (guestfs_h *g,\n"
5712 "              const char *path);\n"
5713 "\n"
5714 msgstr ""
5715
5716 # type: textblock
5717 #: ../src/guestfs-actions.pod:862 ../src/guestfs-actions.pod:5206 ../fish/guestfish-actions.pod:575 ../fish/guestfish-actions.pod:3464
5718 msgid "Return the contents of the file named C<path>."
5719 msgstr ""
5720
5721 # type: textblock
5722 #: ../src/guestfs-actions.pod:864
5723 msgid ""
5724 "Note that this function cannot correctly handle binary files (specifically, "
5725 "files containing C<\\0> character which is treated as end of string).  For "
5726 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
5727 "functions which have a more complex interface."
5728 msgstr ""
5729
5730 # type: textblock
5731 #: ../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
5732 msgid ""
5733 "Because of the message protocol, there is a transfer limit of somewhere "
5734 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
5735 msgstr ""
5736
5737 # type: textblock
5738 #: ../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
5739 msgid "(Added in 0.4)"
5740 msgstr ""
5741
5742 # type: =head2
5743 #: ../src/guestfs-actions.pod:877
5744 msgid "guestfs_checksum"
5745 msgstr ""
5746
5747 # type: verbatim
5748 #: ../src/guestfs-actions.pod:879
5749 #, no-wrap
5750 msgid ""
5751 " char *\n"
5752 " guestfs_checksum (guestfs_h *g,\n"
5753 "                   const char *csumtype,\n"
5754 "                   const char *path);\n"
5755 "\n"
5756 msgstr ""
5757
5758 # type: textblock
5759 #: ../src/guestfs-actions.pod:884 ../fish/guestfish-actions.pod:589
5760 msgid "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
5761 msgstr ""
5762
5763 # type: textblock
5764 #: ../src/guestfs-actions.pod:887 ../fish/guestfish-actions.pod:592
5765 msgid ""
5766 "The type of checksum to compute is given by the C<csumtype> parameter which "
5767 "must have one of the following values:"
5768 msgstr ""
5769
5770 # type: =item
5771 #: ../src/guestfs-actions.pod:892 ../fish/guestfish-actions.pod:597
5772 msgid "C<crc>"
5773 msgstr ""
5774
5775 # type: textblock
5776 #: ../src/guestfs-actions.pod:894 ../fish/guestfish-actions.pod:599
5777 msgid ""
5778 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
5779 "C<cksum> command."
5780 msgstr ""
5781
5782 # type: =item
5783 #: ../src/guestfs-actions.pod:897 ../fish/guestfish-actions.pod:602
5784 msgid "C<md5>"
5785 msgstr ""
5786
5787 # type: textblock
5788 #: ../src/guestfs-actions.pod:899 ../fish/guestfish-actions.pod:604
5789 msgid "Compute the MD5 hash (using the C<md5sum> program)."
5790 msgstr ""
5791
5792 # type: =item
5793 #: ../src/guestfs-actions.pod:901 ../fish/guestfish-actions.pod:606
5794 msgid "C<sha1>"
5795 msgstr ""
5796
5797 # type: textblock
5798 #: ../src/guestfs-actions.pod:903 ../fish/guestfish-actions.pod:608
5799 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
5800 msgstr ""
5801
5802 # type: =item
5803 #: ../src/guestfs-actions.pod:905 ../fish/guestfish-actions.pod:610
5804 msgid "C<sha224>"
5805 msgstr ""
5806
5807 # type: textblock
5808 #: ../src/guestfs-actions.pod:907 ../fish/guestfish-actions.pod:612
5809 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
5810 msgstr ""
5811
5812 # type: =item
5813 #: ../src/guestfs-actions.pod:909 ../fish/guestfish-actions.pod:614
5814 msgid "C<sha256>"
5815 msgstr ""
5816
5817 # type: textblock
5818 #: ../src/guestfs-actions.pod:911 ../fish/guestfish-actions.pod:616
5819 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
5820 msgstr ""
5821
5822 # type: =item
5823 #: ../src/guestfs-actions.pod:913 ../fish/guestfish-actions.pod:618
5824 msgid "C<sha384>"
5825 msgstr ""
5826
5827 # type: textblock
5828 #: ../src/guestfs-actions.pod:915 ../fish/guestfish-actions.pod:620
5829 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
5830 msgstr ""
5831
5832 # type: =item
5833 #: ../src/guestfs-actions.pod:917 ../fish/guestfish-actions.pod:622
5834 msgid "C<sha512>"
5835 msgstr ""
5836
5837 # type: textblock
5838 #: ../src/guestfs-actions.pod:919 ../fish/guestfish-actions.pod:624
5839 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
5840 msgstr ""
5841
5842 # type: textblock
5843 #: ../src/guestfs-actions.pod:923 ../fish/guestfish-actions.pod:628
5844 msgid "The checksum is returned as a printable string."
5845 msgstr ""
5846
5847 # type: textblock
5848 #: ../src/guestfs-actions.pod:925
5849 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
5850 msgstr ""
5851
5852 # type: textblock
5853 #: ../src/guestfs-actions.pod:927
5854 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
5855 msgstr ""
5856
5857 # type: textblock
5858 #: ../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
5859 msgid "(Added in 1.0.2)"
5860 msgstr ""
5861
5862 # type: =head2
5863 #: ../src/guestfs-actions.pod:934
5864 msgid "guestfs_checksum_device"
5865 msgstr ""
5866
5867 # type: verbatim
5868 #: ../src/guestfs-actions.pod:936
5869 #, no-wrap
5870 msgid ""
5871 " char *\n"
5872 " guestfs_checksum_device (guestfs_h *g,\n"
5873 "                          const char *csumtype,\n"
5874 "                          const char *device);\n"
5875 "\n"
5876 msgstr ""
5877
5878 # type: textblock
5879 #: ../src/guestfs-actions.pod:941
5880 msgid ""
5881 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
5882 "device named C<device>.  For the types of checksums supported see the "
5883 "C<guestfs_checksum> command."
5884 msgstr ""
5885
5886 # type: textblock
5887 #: ../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
5888 msgid "(Added in 1.3.2)"
5889 msgstr ""
5890
5891 # type: =head2
5892 #: ../src/guestfs-actions.pod:950
5893 msgid "guestfs_checksums_out"
5894 msgstr ""
5895
5896 # type: verbatim
5897 #: ../src/guestfs-actions.pod:952
5898 #, no-wrap
5899 msgid ""
5900 " int\n"
5901 " guestfs_checksums_out (guestfs_h *g,\n"
5902 "                        const char *csumtype,\n"
5903 "                        const char *directory,\n"
5904 "                        const char *sumsfile);\n"
5905 "\n"
5906 msgstr ""
5907
5908 # type: textblock
5909 #: ../src/guestfs-actions.pod:958 ../fish/guestfish-actions.pod:646
5910 msgid ""
5911 "This command computes the checksums of all regular files in C<directory> and "
5912 "then emits a list of those checksums to the local output file C<sumsfile>."
5913 msgstr ""
5914
5915 # type: textblock
5916 #: ../src/guestfs-actions.pod:962 ../fish/guestfish-actions.pod:650
5917 msgid ""
5918 "This can be used for verifying the integrity of a virtual machine.  However "
5919 "to be properly secure you should pay attention to the output of the checksum "
5920 "command (it uses the ones from GNU coreutils).  In particular when the "
5921 "filename is not printable, coreutils uses a special backslash syntax.  For "
5922 "more information, see the GNU coreutils info file."
5923 msgstr ""
5924
5925 # type: textblock
5926 #: ../src/guestfs-actions.pod:972
5927 msgid "(Added in 1.3.7)"
5928 msgstr ""
5929
5930 # type: =head2
5931 #: ../src/guestfs-actions.pod:974
5932 msgid "guestfs_chmod"
5933 msgstr ""
5934
5935 # type: verbatim
5936 #: ../src/guestfs-actions.pod:976
5937 #, no-wrap
5938 msgid ""
5939 " int\n"
5940 " guestfs_chmod (guestfs_h *g,\n"
5941 "                int mode,\n"
5942 "                const char *path);\n"
5943 "\n"
5944 msgstr ""
5945
5946 # type: textblock
5947 #: ../src/guestfs-actions.pod:981 ../fish/guestfish-actions.pod:664
5948 msgid ""
5949 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
5950 "supported."
5951 msgstr ""
5952
5953 # type: textblock
5954 #: ../src/guestfs-actions.pod:984 ../fish/guestfish-actions.pod:667
5955 msgid ""
5956 "I<Note>: When using this command from guestfish, C<mode> by default would be "
5957 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
5958 "C<700>."
5959 msgstr ""
5960
5961 # type: textblock
5962 #: ../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
5963 msgid "The mode actually set is affected by the umask."
5964 msgstr ""
5965
5966 # type: =head2
5967 #: ../src/guestfs-actions.pod:994
5968 msgid "guestfs_chown"
5969 msgstr ""
5970
5971 # type: verbatim
5972 #: ../src/guestfs-actions.pod:996
5973 #, no-wrap
5974 msgid ""
5975 " int\n"
5976 " guestfs_chown (guestfs_h *g,\n"
5977 "                int owner,\n"
5978 "                int group,\n"
5979 "                const char *path);\n"
5980 "\n"
5981 msgstr ""
5982
5983 # type: textblock
5984 #: ../src/guestfs-actions.pod:1002 ../fish/guestfish-actions.pod:677
5985 msgid "Change the file owner to C<owner> and group to C<group>."
5986 msgstr ""
5987
5988 # type: textblock
5989 #: ../src/guestfs-actions.pod:1004 ../src/guestfs-actions.pod:3253 ../fish/guestfish-actions.pod:679 ../fish/guestfish-actions.pod:2251
5990 msgid ""
5991 "Only numeric uid and gid are supported.  If you want to use names, you will "
5992 "need to locate and parse the password file yourself (Augeas support makes "
5993 "this relatively easy)."
5994 msgstr ""
5995
5996 # type: =head2
5997 #: ../src/guestfs-actions.pod:1012
5998 msgid "guestfs_command"
5999 msgstr ""
6000
6001 # type: verbatim
6002 #: ../src/guestfs-actions.pod:1014
6003 #, no-wrap
6004 msgid ""
6005 " char *\n"
6006 " guestfs_command (guestfs_h *g,\n"
6007 "                  char *const *arguments);\n"
6008 "\n"
6009 msgstr ""
6010
6011 # type: textblock
6012 #: ../src/guestfs-actions.pod:1018 ../fish/guestfish-actions.pod:687
6013 msgid ""
6014 "This call runs a command from the guest filesystem.  The filesystem must be "
6015 "mounted, and must contain a compatible operating system (ie. something "
6016 "Linux, with the same or compatible processor architecture)."
6017 msgstr ""
6018
6019 # type: textblock
6020 #: ../src/guestfs-actions.pod:1023
6021 msgid ""
6022 "The single parameter is an argv-style list of arguments.  The first element "
6023 "is the name of the program to run.  Subsequent elements are parameters.  The "
6024 "list must be non-empty (ie. must contain a program name).  Note that the "
6025 "command runs directly, and is I<not> invoked via the shell (see "
6026 "C<guestfs_sh>)."
6027 msgstr ""
6028
6029 # type: textblock
6030 #: ../src/guestfs-actions.pod:1030 ../fish/guestfish-actions.pod:699
6031 msgid "The return value is anything printed to I<stdout> by the command."
6032 msgstr ""
6033
6034 # type: textblock
6035 #: ../src/guestfs-actions.pod:1033 ../fish/guestfish-actions.pod:702
6036 msgid ""
6037 "If the command returns a non-zero exit status, then this function returns an "
6038 "error message.  The error message string is the content of I<stderr> from "
6039 "the command."
6040 msgstr ""
6041
6042 # type: textblock
6043 #: ../src/guestfs-actions.pod:1037 ../fish/guestfish-actions.pod:706
6044 msgid ""
6045 "The C<$PATH> environment variable will contain at least C</usr/bin> and "
6046 "C</bin>.  If you require a program from another location, you should provide "
6047 "the full path in the first parameter."
6048 msgstr ""
6049
6050 # type: textblock
6051 #: ../src/guestfs-actions.pod:1042 ../fish/guestfish-actions.pod:711
6052 msgid ""
6053 "Shared libraries and data files required by the program must be available on "
6054 "filesystems which are mounted in the correct places.  It is the caller's "
6055 "responsibility to ensure all filesystems that are needed are mounted at the "
6056 "right locations."
6057 msgstr ""
6058
6059 # type: textblock
6060 #: ../src/guestfs-actions.pod:1054 ../src/guestfs-actions.pod:1074 ../src/guestfs-actions.pod:1537
6061 msgid "(Added in 0.9.1)"
6062 msgstr ""
6063
6064 # type: =head2
6065 #: ../src/guestfs-actions.pod:1056
6066 msgid "guestfs_command_lines"
6067 msgstr ""
6068
6069 # type: verbatim
6070 #: ../src/guestfs-actions.pod:1058
6071 #, no-wrap
6072 msgid ""
6073 " char **\n"
6074 " guestfs_command_lines (guestfs_h *g,\n"
6075 "                        char *const *arguments);\n"
6076 "\n"
6077 msgstr ""
6078
6079 # type: textblock
6080 #: ../src/guestfs-actions.pod:1062
6081 msgid ""
6082 "This is the same as C<guestfs_command>, but splits the result into a list of "
6083 "lines."
6084 msgstr ""
6085
6086 # type: textblock
6087 #: ../src/guestfs-actions.pod:1065
6088 msgid "See also: C<guestfs_sh_lines>"
6089 msgstr ""
6090
6091 # type: =head2
6092 #: ../src/guestfs-actions.pod:1076
6093 msgid "guestfs_config"
6094 msgstr ""
6095
6096 # type: verbatim
6097 #: ../src/guestfs-actions.pod:1078
6098 #, no-wrap
6099 msgid ""
6100 " int\n"
6101 " guestfs_config (guestfs_h *g,\n"
6102 "                 const char *qemuparam,\n"
6103 "                 const char *qemuvalue);\n"
6104 "\n"
6105 msgstr ""
6106
6107 # type: textblock
6108 #: ../src/guestfs-actions.pod:1083 ../fish/guestfish-actions.pod:736
6109 msgid ""
6110 "This can be used to add arbitrary qemu command line parameters of the form "
6111 "C<-param value>.  Actually it's not quite arbitrary - we prevent you from "
6112 "setting some parameters which would interfere with parameters that we use."
6113 msgstr ""
6114
6115 # type: textblock
6116 #: ../src/guestfs-actions.pod:1088 ../fish/guestfish-actions.pod:741
6117 msgid "The first character of C<param> string must be a C<-> (dash)."
6118 msgstr ""
6119
6120 # type: textblock
6121 #: ../src/guestfs-actions.pod:1090 ../fish/guestfish-actions.pod:743
6122 msgid "C<value> can be NULL."
6123 msgstr ""
6124
6125 # type: =head2
6126 #: ../src/guestfs-actions.pod:1096
6127 msgid "guestfs_copy_size"
6128 msgstr ""
6129
6130 # type: verbatim
6131 #: ../src/guestfs-actions.pod:1098
6132 #, no-wrap
6133 msgid ""
6134 " int\n"
6135 " guestfs_copy_size (guestfs_h *g,\n"
6136 "                    const char *src,\n"
6137 "                    const char *dest,\n"
6138 "                    int64_t size);\n"
6139 "\n"
6140 msgstr ""
6141
6142 # type: textblock
6143 #: ../src/guestfs-actions.pod:1104 ../fish/guestfish-actions.pod:749
6144 msgid ""
6145 "This command copies exactly C<size> bytes from one source device or file "
6146 "C<src> to another destination device or file C<dest>."
6147 msgstr ""
6148
6149 # type: textblock
6150 #: ../src/guestfs-actions.pod:1107 ../fish/guestfish-actions.pod:752
6151 msgid ""
6152 "Note this will fail if the source is too short or if the destination is not "
6153 "large enough."
6154 msgstr ""
6155
6156 # type: textblock
6157 #: ../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
6158 msgid ""
6159 "This long-running command can generate progress notification messages so "
6160 "that the caller can display a progress bar or indicator.  To receive these "
6161 "messages, the caller must register a progress callback.  See "
6162 "L<guestfs(3)/guestfs_set_progress_callback>."
6163 msgstr ""
6164
6165 # type: textblock
6166 #: ../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
6167 msgid "(Added in 1.0.87)"
6168 msgstr ""
6169
6170 # type: =head2
6171 #: ../src/guestfs-actions.pod:1119
6172 msgid "guestfs_cp"
6173 msgstr ""
6174
6175 # type: verbatim
6176 #: ../src/guestfs-actions.pod:1121
6177 #, no-wrap
6178 msgid ""
6179 " int\n"
6180 " guestfs_cp (guestfs_h *g,\n"
6181 "             const char *src,\n"
6182 "             const char *dest);\n"
6183 "\n"
6184 msgstr ""
6185
6186 # type: textblock
6187 #: ../src/guestfs-actions.pod:1126 ../fish/guestfish-actions.pod:759
6188 msgid ""
6189 "This copies a file from C<src> to C<dest> where C<dest> is either a "
6190 "destination filename or destination directory."
6191 msgstr ""
6192
6193 # type: textblock
6194 #: ../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
6195 msgid "(Added in 1.0.18)"
6196 msgstr ""
6197
6198 # type: =head2
6199 #: ../src/guestfs-actions.pod:1133
6200 msgid "guestfs_cp_a"
6201 msgstr ""
6202
6203 # type: verbatim
6204 #: ../src/guestfs-actions.pod:1135
6205 #, no-wrap
6206 msgid ""
6207 " int\n"
6208 " guestfs_cp_a (guestfs_h *g,\n"
6209 "               const char *src,\n"
6210 "               const char *dest);\n"
6211 "\n"
6212 msgstr ""
6213
6214 # type: textblock
6215 #: ../src/guestfs-actions.pod:1140 ../fish/guestfish-actions.pod:766
6216 msgid ""
6217 "This copies a file or directory from C<src> to C<dest> recursively using the "
6218 "C<cp -a> command."
6219 msgstr ""
6220
6221 # type: =head2
6222 #: ../src/guestfs-actions.pod:1147
6223 msgid "guestfs_dd"
6224 msgstr ""
6225
6226 # type: verbatim
6227 #: ../src/guestfs-actions.pod:1149
6228 #, no-wrap
6229 msgid ""
6230 " int\n"
6231 " guestfs_dd (guestfs_h *g,\n"
6232 "             const char *src,\n"
6233 "             const char *dest);\n"
6234 "\n"
6235 msgstr ""
6236
6237 # type: textblock
6238 #: ../src/guestfs-actions.pod:1154 ../fish/guestfish-actions.pod:773
6239 msgid ""
6240 "This command copies from one source device or file C<src> to another "
6241 "destination device or file C<dest>.  Normally you would use this to copy to "
6242 "or from a device or partition, for example to duplicate a filesystem."
6243 msgstr ""
6244
6245 # type: textblock
6246 #: ../src/guestfs-actions.pod:1159
6247 msgid ""
6248 "If the destination is a device, it must be as large or larger than the "
6249 "source file or device, otherwise the copy will fail.  This command cannot do "
6250 "partial copies (see C<guestfs_copy_size>)."
6251 msgstr ""
6252
6253 # type: =head2
6254 #: ../src/guestfs-actions.pod:1167
6255 msgid "guestfs_df"
6256 msgstr ""
6257
6258 # type: verbatim
6259 #: ../src/guestfs-actions.pod:1169
6260 #, no-wrap
6261 msgid ""
6262 " char *\n"
6263 " guestfs_df (guestfs_h *g);\n"
6264 "\n"
6265 msgstr ""
6266
6267 # type: textblock
6268 #: ../src/guestfs-actions.pod:1172 ../fish/guestfish-actions.pod:786
6269 msgid "This command runs the C<df> command to report disk space used."
6270 msgstr ""
6271
6272 # type: textblock
6273 #: ../src/guestfs-actions.pod:1174 ../src/guestfs-actions.pod:1191
6274 msgid ""
6275 "This command is mostly useful for interactive sessions.  It is I<not> "
6276 "intended that you try to parse the output string.  Use C<guestfs_statvfs> "
6277 "from programs."
6278 msgstr ""
6279
6280 # type: textblock
6281 #: ../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
6282 msgid "(Added in 1.0.54)"
6283 msgstr ""
6284
6285 # type: =head2
6286 #: ../src/guestfs-actions.pod:1183
6287 msgid "guestfs_df_h"
6288 msgstr ""
6289
6290 # type: verbatim
6291 #: ../src/guestfs-actions.pod:1185
6292 #, no-wrap
6293 msgid ""
6294 " char *\n"
6295 " guestfs_df_h (guestfs_h *g);\n"
6296 "\n"
6297 msgstr ""
6298
6299 # type: textblock
6300 #: ../src/guestfs-actions.pod:1188 ../fish/guestfish-actions.pod:796
6301 msgid ""
6302 "This command runs the C<df -h> command to report disk space used in "
6303 "human-readable format."
6304 msgstr ""
6305
6306 # type: =head2
6307 #: ../src/guestfs-actions.pod:1200
6308 msgid "guestfs_dmesg"
6309 msgstr ""
6310
6311 # type: verbatim
6312 #: ../src/guestfs-actions.pod:1202
6313 #, no-wrap
6314 msgid ""
6315 " char *\n"
6316 " guestfs_dmesg (guestfs_h *g);\n"
6317 "\n"
6318 msgstr ""
6319
6320 # type: textblock
6321 #: ../src/guestfs-actions.pod:1205 ../fish/guestfish-actions.pod:807
6322 msgid ""
6323 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
6324 "This is sometimes useful for extended debugging of problems."
6325 msgstr ""
6326
6327 # type: textblock
6328 #: ../src/guestfs-actions.pod:1209
6329 msgid ""
6330 "Another way to get the same information is to enable verbose messages with "
6331 "C<guestfs_set_verbose> or by setting the environment variable "
6332 "C<LIBGUESTFS_DEBUG=1> before running the program."
6333 msgstr ""
6334
6335 # type: =head2
6336 #: ../src/guestfs-actions.pod:1219
6337 msgid "guestfs_download"
6338 msgstr ""
6339
6340 # type: verbatim
6341 #: ../src/guestfs-actions.pod:1221
6342 #, no-wrap
6343 msgid ""
6344 " int\n"
6345 " guestfs_download (guestfs_h *g,\n"
6346 "                   const char *remotefilename,\n"
6347 "                   const char *filename);\n"
6348 "\n"
6349 msgstr ""
6350
6351 # type: textblock
6352 #: ../src/guestfs-actions.pod:1226 ../src/guestfs-actions.pod:1251 ../fish/guestfish-actions.pod:820 ../fish/guestfish-actions.pod:833
6353 msgid ""
6354 "Download file C<remotefilename> and save it as C<filename> on the local "
6355 "machine."
6356 msgstr ""
6357
6358 # type: textblock
6359 #: ../src/guestfs-actions.pod:1229 ../src/guestfs-actions.pod:6506 ../fish/guestfish-actions.pod:823 ../fish/guestfish-actions.pod:4344
6360 msgid "C<filename> can also be a named pipe."
6361 msgstr ""
6362
6363 # type: textblock
6364 #: ../src/guestfs-actions.pod:1231
6365 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
6366 msgstr ""
6367
6368 # type: =head2
6369 #: ../src/guestfs-actions.pod:1242
6370 msgid "guestfs_download_offset"
6371 msgstr ""
6372
6373 # type: verbatim
6374 #: ../src/guestfs-actions.pod:1244
6375 #, no-wrap
6376 msgid ""
6377 " int\n"
6378 " guestfs_download_offset (guestfs_h *g,\n"
6379 "                          const char *remotefilename,\n"
6380 "                          const char *filename,\n"
6381 "                          int64_t offset,\n"
6382 "                          int64_t size);\n"
6383 "\n"
6384 msgstr ""
6385
6386 # type: textblock
6387 #: ../src/guestfs-actions.pod:1254 ../fish/guestfish-actions.pod:836
6388 msgid ""
6389 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
6390 "region must be within the file or device)."
6391 msgstr ""
6392
6393 # type: textblock
6394 #: ../src/guestfs-actions.pod:1257
6395 msgid ""
6396 "Note that there is no limit on the amount of data that can be downloaded "
6397 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
6398 "full amount unless an error occurs."
6399 msgstr ""
6400
6401 # type: textblock
6402 #: ../src/guestfs-actions.pod:1262
6403 msgid "See also C<guestfs_download>, C<guestfs_pread>."
6404 msgstr ""
6405
6406 # type: textblock
6407 #: ../src/guestfs-actions.pod:1271 ../src/guestfs-actions.pod:6551
6408 msgid "(Added in 1.5.17)"
6409 msgstr ""
6410
6411 # type: =head2
6412 #: ../src/guestfs-actions.pod:1273
6413 msgid "guestfs_drop_caches"
6414 msgstr ""
6415
6416 # type: verbatim
6417 #: ../src/guestfs-actions.pod:1275
6418 #, no-wrap
6419 msgid ""
6420 " int\n"
6421 " guestfs_drop_caches (guestfs_h *g,\n"
6422 "                      int whattodrop);\n"
6423 "\n"
6424 msgstr ""
6425
6426 # type: textblock
6427 #: ../src/guestfs-actions.pod:1279 ../fish/guestfish-actions.pod:852
6428 msgid ""
6429 "This instructs the guest kernel to drop its page cache, and/or dentries and "
6430 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
6431 "to drop, see L<http://linux-mm.org/Drop_Caches>"
6432 msgstr ""
6433
6434 # type: textblock
6435 #: ../src/guestfs-actions.pod:1284 ../fish/guestfish-actions.pod:857
6436 msgid "Setting C<whattodrop> to 3 should drop everything."
6437 msgstr ""
6438
6439 # type: textblock
6440 #: ../src/guestfs-actions.pod:1286 ../fish/guestfish-actions.pod:859
6441 msgid ""
6442 "This automatically calls L<sync(2)> before the operation, so that the "
6443 "maximum guest memory is freed."
6444 msgstr ""
6445
6446 # type: =head2
6447 #: ../src/guestfs-actions.pod:1293
6448 msgid "guestfs_du"
6449 msgstr ""
6450
6451 # type: verbatim
6452 #: ../src/guestfs-actions.pod:1295
6453 #, no-wrap
6454 msgid ""
6455 " int64_t\n"
6456 " guestfs_du (guestfs_h *g,\n"
6457 "             const char *path);\n"
6458 "\n"
6459 msgstr ""
6460
6461 # type: textblock
6462 #: ../src/guestfs-actions.pod:1299 ../fish/guestfish-actions.pod:866
6463 msgid ""
6464 "This command runs the C<du -s> command to estimate file space usage for "
6465 "C<path>."
6466 msgstr ""
6467
6468 # type: textblock
6469 #: ../src/guestfs-actions.pod:1302 ../fish/guestfish-actions.pod:869
6470 msgid ""
6471 "C<path> can be a file or a directory.  If C<path> is a directory then the "
6472 "estimate includes the contents of the directory and all subdirectories "
6473 "(recursively)."
6474 msgstr ""
6475
6476 # type: textblock
6477 #: ../src/guestfs-actions.pod:1306 ../fish/guestfish-actions.pod:873
6478 msgid "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
6479 msgstr ""
6480
6481 # type: =head2
6482 #: ../src/guestfs-actions.pod:1313
6483 msgid "guestfs_e2fsck_f"
6484 msgstr ""
6485
6486 # type: verbatim
6487 #: ../src/guestfs-actions.pod:1315
6488 #, no-wrap
6489 msgid ""
6490 " int\n"
6491 " guestfs_e2fsck_f (guestfs_h *g,\n"
6492 "                   const char *device);\n"
6493 "\n"
6494 msgstr ""
6495
6496 # type: textblock
6497 #: ../src/guestfs-actions.pod:1319 ../fish/guestfish-actions.pod:880
6498 msgid ""
6499 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
6500 "on C<device>, noninteractively (C<-p>), even if the filesystem appears to be "
6501 "clean (C<-f>)."
6502 msgstr ""
6503
6504 # type: textblock
6505 #: ../src/guestfs-actions.pod:1323
6506 msgid ""
6507 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
6508 "Normally you should use C<guestfs_fsck>."
6509 msgstr ""
6510
6511 # type: textblock
6512 #: ../src/guestfs-actions.pod:1328
6513 msgid "(Added in 1.0.29)"
6514 msgstr ""
6515
6516 # type: =head2
6517 #: ../src/guestfs-actions.pod:1330
6518 msgid "guestfs_echo_daemon"
6519 msgstr ""
6520
6521 # type: verbatim
6522 #: ../src/guestfs-actions.pod:1332
6523 #, no-wrap
6524 msgid ""
6525 " char *\n"
6526 " guestfs_echo_daemon (guestfs_h *g,\n"
6527 "                      char *const *words);\n"
6528 "\n"
6529 msgstr ""
6530
6531 # type: textblock
6532 #: ../src/guestfs-actions.pod:1336 ../fish/guestfish-actions.pod:891
6533 msgid ""
6534 "This command concatenates the list of C<words> passed with single spaces "
6535 "between them and returns the resulting string."
6536 msgstr ""
6537
6538 # type: textblock
6539 #: ../src/guestfs-actions.pod:1339 ../fish/guestfish-actions.pod:894
6540 msgid "You can use this command to test the connection through to the daemon."
6541 msgstr ""
6542
6543 # type: textblock
6544 #: ../src/guestfs-actions.pod:1341
6545 msgid "See also C<guestfs_ping_daemon>."
6546 msgstr ""
6547
6548 # type: textblock
6549 #: ../src/guestfs-actions.pod:1346 ../src/guestfs-actions.pod:2073 ../src/guestfs-actions.pod:5754
6550 msgid "(Added in 1.0.69)"
6551 msgstr ""
6552
6553 # type: =head2
6554 #: ../src/guestfs-actions.pod:1348
6555 msgid "guestfs_egrep"
6556 msgstr ""
6557
6558 # type: verbatim
6559 #: ../src/guestfs-actions.pod:1350
6560 #, no-wrap
6561 msgid ""
6562 " char **\n"
6563 " guestfs_egrep (guestfs_h *g,\n"
6564 "                const char *regex,\n"
6565 "                const char *path);\n"
6566 "\n"
6567 msgstr ""
6568
6569 # type: textblock
6570 #: ../src/guestfs-actions.pod:1355 ../fish/guestfish-actions.pod:902
6571 msgid "This calls the external C<egrep> program and returns the matching lines."
6572 msgstr ""
6573
6574 # type: textblock
6575 #: ../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
6576 msgid "(Added in 1.0.66)"
6577 msgstr ""
6578
6579 # type: =head2
6580 #: ../src/guestfs-actions.pod:1367
6581 msgid "guestfs_egrepi"
6582 msgstr ""
6583
6584 # type: verbatim
6585 #: ../src/guestfs-actions.pod:1369
6586 #, no-wrap
6587 msgid ""
6588 " char **\n"
6589 " guestfs_egrepi (guestfs_h *g,\n"
6590 "                 const char *regex,\n"
6591 "                 const char *path);\n"
6592 "\n"
6593 msgstr ""
6594
6595 # type: textblock
6596 #: ../src/guestfs-actions.pod:1374 ../fish/guestfish-actions.pod:912
6597 msgid "This calls the external C<egrep -i> program and returns the matching lines."
6598 msgstr ""
6599
6600 # type: =head2
6601 #: ../src/guestfs-actions.pod:1386
6602 msgid "guestfs_equal"
6603 msgstr ""
6604
6605 # type: verbatim
6606 #: ../src/guestfs-actions.pod:1388
6607 #, no-wrap
6608 msgid ""
6609 " int\n"
6610 " guestfs_equal (guestfs_h *g,\n"
6611 "                const char *file1,\n"
6612 "                const char *file2);\n"
6613 "\n"
6614 msgstr ""
6615
6616 # type: textblock
6617 #: ../src/guestfs-actions.pod:1393 ../fish/guestfish-actions.pod:922
6618 msgid ""
6619 "This compares the two files C<file1> and C<file2> and returns true if their "
6620 "content is exactly equal, or false otherwise."
6621 msgstr ""
6622
6623 # type: textblock
6624 #: ../src/guestfs-actions.pod:1396 ../fish/guestfish-actions.pod:925
6625 msgid "The external L<cmp(1)> program is used for the comparison."
6626 msgstr ""
6627
6628 # type: =head2
6629 #: ../src/guestfs-actions.pod:1402
6630 msgid "guestfs_exists"
6631 msgstr ""
6632
6633 # type: verbatim
6634 #: ../src/guestfs-actions.pod:1404
6635 #, no-wrap
6636 msgid ""
6637 " int\n"
6638 " guestfs_exists (guestfs_h *g,\n"
6639 "                 const char *path);\n"
6640 "\n"
6641 msgstr ""
6642
6643 # type: textblock
6644 #: ../src/guestfs-actions.pod:1408 ../fish/guestfish-actions.pod:931
6645 msgid ""
6646 "This returns C<true> if and only if there is a file, directory (or anything) "
6647 "with the given C<path> name."
6648 msgstr ""
6649
6650 # type: textblock
6651 #: ../src/guestfs-actions.pod:1411
6652 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
6653 msgstr ""
6654
6655 # type: =head2
6656 #: ../src/guestfs-actions.pod:1417
6657 msgid "guestfs_fallocate"
6658 msgstr ""
6659
6660 # type: verbatim
6661 #: ../src/guestfs-actions.pod:1419
6662 #, no-wrap
6663 msgid ""
6664 " int\n"
6665 " guestfs_fallocate (guestfs_h *g,\n"
6666 "                    const char *path,\n"
6667 "                    int len);\n"
6668 "\n"
6669 msgstr ""
6670
6671 # type: textblock
6672 #: ../src/guestfs-actions.pod:1424 ../src/guestfs-actions.pod:1450 ../fish/guestfish-actions.pod:940 ../fish/guestfish-actions.pod:959
6673 msgid ""
6674 "This command preallocates a file (containing zero bytes) named C<path> of "
6675 "size C<len> bytes.  If the file exists already, it is overwritten."
6676 msgstr ""
6677
6678 # type: textblock
6679 #: ../src/guestfs-actions.pod:1428 ../fish/guestfish-actions.pod:944
6680 msgid ""
6681 "Do not confuse this with the guestfish-specific C<alloc> command which "
6682 "allocates a file in the host and attaches it as a device."
6683 msgstr ""
6684
6685 # type: textblock
6686 #: ../src/guestfs-actions.pod:1434 ../fish/guestfish-actions.pod:948
6687 msgid ""
6688 "This function is deprecated.  In new code, use the C<fallocate64> call "
6689 "instead."
6690 msgstr ""
6691
6692 # type: =head2
6693 #: ../src/guestfs-actions.pod:1443
6694 msgid "guestfs_fallocate64"
6695 msgstr ""
6696
6697 # type: verbatim
6698 #: ../src/guestfs-actions.pod:1445
6699 #, no-wrap
6700 msgid ""
6701 " int\n"
6702 " guestfs_fallocate64 (guestfs_h *g,\n"
6703 "                      const char *path,\n"
6704 "                      int64_t len);\n"
6705 "\n"
6706 msgstr ""
6707
6708 # type: textblock
6709 #: ../src/guestfs-actions.pod:1454
6710 msgid ""
6711 "Note that this call allocates disk blocks for the file.  To create a sparse "
6712 "file use C<guestfs_truncate_size> instead."
6713 msgstr ""
6714
6715 # type: textblock
6716 #: ../src/guestfs-actions.pod:1457
6717 msgid ""
6718 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
6719 "oversight it only allowed 30 bit lengths to be specified, effectively "
6720 "limiting the maximum size of files created through that call to 1GB."
6721 msgstr ""
6722
6723 # type: textblock
6724 #: ../src/guestfs-actions.pod:1462 ../fish/guestfish-actions.pod:971
6725 msgid ""
6726 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
6727 "commands which create a file in the host and attach it as a device."
6728 msgstr ""
6729
6730 # type: textblock
6731 #: ../src/guestfs-actions.pod:1468
6732 msgid "(Added in 1.3.17)"
6733 msgstr ""
6734
6735 # type: =head2
6736 #: ../src/guestfs-actions.pod:1470
6737 msgid "guestfs_fgrep"
6738 msgstr ""
6739
6740 # type: verbatim
6741 #: ../src/guestfs-actions.pod:1472
6742 #, no-wrap
6743 msgid ""
6744 " char **\n"
6745 " guestfs_fgrep (guestfs_h *g,\n"
6746 "                const char *pattern,\n"
6747 "                const char *path);\n"
6748 "\n"
6749 msgstr ""
6750
6751 # type: textblock
6752 #: ../src/guestfs-actions.pod:1477 ../fish/guestfish-actions.pod:979
6753 msgid "This calls the external C<fgrep> program and returns the matching lines."
6754 msgstr ""
6755
6756 # type: =head2
6757 #: ../src/guestfs-actions.pod:1489
6758 msgid "guestfs_fgrepi"
6759 msgstr ""
6760
6761 # type: verbatim
6762 #: ../src/guestfs-actions.pod:1491
6763 #, no-wrap
6764 msgid ""
6765 " char **\n"
6766 " guestfs_fgrepi (guestfs_h *g,\n"
6767 "                 const char *pattern,\n"
6768 "                 const char *path);\n"
6769 "\n"
6770 msgstr ""
6771
6772 # type: textblock
6773 #: ../src/guestfs-actions.pod:1496 ../fish/guestfish-actions.pod:989
6774 msgid "This calls the external C<fgrep -i> program and returns the matching lines."
6775 msgstr ""
6776
6777 # type: =head2
6778 #: ../src/guestfs-actions.pod:1508
6779 msgid "guestfs_file"
6780 msgstr ""
6781
6782 # type: verbatim
6783 #: ../src/guestfs-actions.pod:1510
6784 #, no-wrap
6785 msgid ""
6786 " char *\n"
6787 " guestfs_file (guestfs_h *g,\n"
6788 "               const char *path);\n"
6789 "\n"
6790 msgstr ""
6791
6792 # type: textblock
6793 #: ../src/guestfs-actions.pod:1514 ../fish/guestfish-actions.pod:999
6794 msgid ""
6795 "This call uses the standard L<file(1)> command to determine the type or "
6796 "contents of the file."
6797 msgstr ""
6798
6799 # type: textblock
6800 #: ../src/guestfs-actions.pod:1517 ../fish/guestfish-actions.pod:1002
6801 msgid ""
6802 "This call will also transparently look inside various types of compressed "
6803 "file."
6804 msgstr ""
6805
6806 # type: textblock
6807 #: ../src/guestfs-actions.pod:1520 ../fish/guestfish-actions.pod:1005
6808 msgid ""
6809 "The exact command which runs is C<file -zb path>.  Note in particular that "
6810 "the filename is not prepended to the output (the C<-b> option)."
6811 msgstr ""
6812
6813 # type: textblock
6814 #: ../src/guestfs-actions.pod:1524
6815 msgid ""
6816 "This command can also be used on C</dev/> devices (and partitions, LV "
6817 "names).  You can for example use this to determine if a device contains a "
6818 "filesystem, although it's usually better to use C<guestfs_vfs_type>."
6819 msgstr ""
6820
6821 # type: textblock
6822 #: ../src/guestfs-actions.pod:1529 ../fish/guestfish-actions.pod:1014
6823 msgid ""
6824 "If the C<path> does not begin with C</dev/> then this command only works for "
6825 "the content of regular files.  For other file types (directory, symbolic "
6826 "link etc) it will just return the string C<directory> etc."
6827 msgstr ""
6828
6829 # type: =head2
6830 #: ../src/guestfs-actions.pod:1539
6831 msgid "guestfs_file_architecture"
6832 msgstr ""
6833
6834 # type: verbatim
6835 #: ../src/guestfs-actions.pod:1541
6836 #, no-wrap
6837 msgid ""
6838 " char *\n"
6839 " guestfs_file_architecture (guestfs_h *g,\n"
6840 "                            const char *filename);\n"
6841 "\n"
6842 msgstr ""
6843
6844 # type: textblock
6845 #: ../src/guestfs-actions.pod:1545 ../fish/guestfish-actions.pod:1023
6846 msgid ""
6847 "This detects the architecture of the binary C<filename>, and returns it if "
6848 "known."
6849 msgstr ""
6850
6851 # type: textblock
6852 #: ../src/guestfs-actions.pod:1548 ../fish/guestfish-actions.pod:1026
6853 msgid "Currently defined architectures are:"
6854 msgstr ""
6855
6856 # type: =item
6857 #: ../src/guestfs-actions.pod:1552 ../fish/guestfish-actions.pod:1030
6858 msgid "\"i386\""
6859 msgstr ""
6860
6861 # type: textblock
6862 #: ../src/guestfs-actions.pod:1554 ../fish/guestfish-actions.pod:1032
6863 msgid ""
6864 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
6865 "irrespective of the precise processor requirements of the binary."
6866 msgstr ""
6867
6868 # type: =item
6869 #: ../src/guestfs-actions.pod:1557 ../fish/guestfish-actions.pod:1035
6870 msgid "\"x86_64\""
6871 msgstr ""
6872
6873 # type: textblock
6874 #: ../src/guestfs-actions.pod:1559 ../fish/guestfish-actions.pod:1037
6875 msgid "64 bit x86-64."
6876 msgstr ""
6877
6878 # type: =item
6879 #: ../src/guestfs-actions.pod:1561 ../fish/guestfish-actions.pod:1039
6880 msgid "\"sparc\""
6881 msgstr ""
6882
6883 # type: textblock
6884 #: ../src/guestfs-actions.pod:1563 ../fish/guestfish-actions.pod:1041
6885 msgid "32 bit SPARC."
6886 msgstr ""
6887
6888 # type: =item
6889 #: ../src/guestfs-actions.pod:1565 ../fish/guestfish-actions.pod:1043
6890 msgid "\"sparc64\""
6891 msgstr ""
6892
6893 # type: textblock
6894 #: ../src/guestfs-actions.pod:1567 ../fish/guestfish-actions.pod:1045
6895 msgid "64 bit SPARC V9 and above."
6896 msgstr ""
6897
6898 # type: =item
6899 #: ../src/guestfs-actions.pod:1569 ../fish/guestfish-actions.pod:1047
6900 msgid "\"ia64\""
6901 msgstr ""
6902
6903 # type: textblock
6904 #: ../src/guestfs-actions.pod:1571 ../fish/guestfish-actions.pod:1049
6905 msgid "Intel Itanium."
6906 msgstr ""
6907
6908 # type: =item
6909 #: ../src/guestfs-actions.pod:1573 ../fish/guestfish-actions.pod:1051
6910 msgid "\"ppc\""
6911 msgstr ""
6912
6913 # type: textblock
6914 #: ../src/guestfs-actions.pod:1575 ../fish/guestfish-actions.pod:1053
6915 msgid "32 bit Power PC."
6916 msgstr ""
6917
6918 # type: =item
6919 #: ../src/guestfs-actions.pod:1577 ../fish/guestfish-actions.pod:1055
6920 msgid "\"ppc64\""
6921 msgstr ""
6922
6923 # type: textblock
6924 #: ../src/guestfs-actions.pod:1579 ../fish/guestfish-actions.pod:1057
6925 msgid "64 bit Power PC."
6926 msgstr ""
6927
6928 # type: textblock
6929 #: ../src/guestfs-actions.pod:1583 ../fish/guestfish-actions.pod:1061
6930 msgid "Libguestfs may return other architecture strings in future."
6931 msgstr ""
6932
6933 # type: textblock
6934 #: ../src/guestfs-actions.pod:1585 ../fish/guestfish-actions.pod:1063
6935 msgid "The function works on at least the following types of files:"
6936 msgstr ""
6937
6938 # type: textblock
6939 #: ../src/guestfs-actions.pod:1591 ../fish/guestfish-actions.pod:1069
6940 msgid "many types of Un*x and Linux binary"
6941 msgstr ""
6942
6943 # type: textblock
6944 #: ../src/guestfs-actions.pod:1595 ../fish/guestfish-actions.pod:1073
6945 msgid "many types of Un*x and Linux shared library"
6946 msgstr ""
6947
6948 # type: textblock
6949 #: ../src/guestfs-actions.pod:1599 ../fish/guestfish-actions.pod:1077
6950 msgid "Windows Win32 and Win64 binaries"
6951 msgstr ""
6952
6953 # type: textblock
6954 #: ../src/guestfs-actions.pod:1603 ../fish/guestfish-actions.pod:1081
6955 msgid "Windows Win32 and Win64 DLLs"
6956 msgstr ""
6957
6958 # type: textblock
6959 #: ../src/guestfs-actions.pod:1605 ../fish/guestfish-actions.pod:1083
6960 msgid "Win32 binaries and DLLs return C<i386>."
6961 msgstr ""
6962
6963 # type: textblock
6964 #: ../src/guestfs-actions.pod:1607 ../fish/guestfish-actions.pod:1085
6965 msgid "Win64 binaries and DLLs return C<x86_64>."
6966 msgstr ""
6967
6968 # type: textblock
6969 #: ../src/guestfs-actions.pod:1611 ../fish/guestfish-actions.pod:1089
6970 msgid "Linux kernel modules"
6971 msgstr ""
6972
6973 # type: textblock
6974 #: ../src/guestfs-actions.pod:1615 ../fish/guestfish-actions.pod:1093
6975 msgid "Linux new-style initrd images"
6976 msgstr ""
6977
6978 # type: textblock
6979 #: ../src/guestfs-actions.pod:1619 ../fish/guestfish-actions.pod:1097
6980 msgid "some non-x86 Linux vmlinuz kernels"
6981 msgstr ""
6982
6983 # type: textblock
6984 #: ../src/guestfs-actions.pod:1623 ../fish/guestfish-actions.pod:1101
6985 msgid "What it can't do currently:"
6986 msgstr ""
6987
6988 # type: textblock
6989 #: ../src/guestfs-actions.pod:1629 ../fish/guestfish-actions.pod:1107
6990 msgid "static libraries (libfoo.a)"
6991 msgstr ""
6992
6993 # type: textblock
6994 #: ../src/guestfs-actions.pod:1633 ../fish/guestfish-actions.pod:1111
6995 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
6996 msgstr ""
6997
6998 # type: textblock
6999 #: ../src/guestfs-actions.pod:1637 ../fish/guestfish-actions.pod:1115
7000 msgid "x86 Linux vmlinuz kernels"
7001 msgstr ""
7002
7003 # type: textblock
7004 #: ../src/guestfs-actions.pod:1639 ../fish/guestfish-actions.pod:1117
7005 msgid ""
7006 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
7007 "compressed code, and are horribly hard to unpack.  If you want to find the "
7008 "architecture of a kernel, use the architecture of the associated initrd or "
7009 "kernel module(s) instead."
7010 msgstr ""
7011
7012 # type: textblock
7013 #: ../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
7014 msgid "(Added in 1.5.3)"
7015 msgstr ""
7016
7017 # type: =head2
7018 #: ../src/guestfs-actions.pod:1651
7019 msgid "guestfs_filesize"
7020 msgstr ""
7021
7022 # type: verbatim
7023 #: ../src/guestfs-actions.pod:1653
7024 #, no-wrap
7025 msgid ""
7026 " int64_t\n"
7027 " guestfs_filesize (guestfs_h *g,\n"
7028 "                   const char *file);\n"
7029 "\n"
7030 msgstr ""
7031
7032 # type: textblock
7033 #: ../src/guestfs-actions.pod:1657 ../fish/guestfish-actions.pod:1128
7034 msgid "This command returns the size of C<file> in bytes."
7035 msgstr ""
7036
7037 # type: textblock
7038 #: ../src/guestfs-actions.pod:1659
7039 msgid ""
7040 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
7041 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
7042 "devices, use C<guestfs_blockdev_getsize64>."
7043 msgstr ""
7044
7045 # type: textblock
7046 #: ../src/guestfs-actions.pod:1665
7047 msgid "(Added in 1.0.82)"
7048 msgstr ""
7049
7050 # type: =head2
7051 #: ../src/guestfs-actions.pod:1667
7052 msgid "guestfs_fill"
7053 msgstr ""
7054
7055 # type: verbatim
7056 #: ../src/guestfs-actions.pod:1669
7057 #, no-wrap
7058 msgid ""
7059 " int\n"
7060 " guestfs_fill (guestfs_h *g,\n"
7061 "               int c,\n"
7062 "               int len,\n"
7063 "               const char *path);\n"
7064 "\n"
7065 msgstr ""
7066
7067 # type: textblock
7068 #: ../src/guestfs-actions.pod:1675 ../fish/guestfish-actions.pod:1138
7069 msgid ""
7070 "This command creates a new file called C<path>.  The initial content of the "
7071 "file is C<len> octets of C<c>, where C<c> must be a number in the range "
7072 "C<[0..255]>."
7073 msgstr ""
7074
7075 # type: textblock
7076 #: ../src/guestfs-actions.pod:1679
7077 msgid ""
7078 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
7079 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
7080 "bytes use C<guestfs_fill_pattern>."
7081 msgstr ""
7082
7083 # type: textblock
7084 #: ../src/guestfs-actions.pod:1691
7085 msgid "(Added in 1.0.79)"
7086 msgstr ""
7087
7088 # type: =head2
7089 #: ../src/guestfs-actions.pod:1693
7090 msgid "guestfs_fill_pattern"
7091 msgstr ""
7092
7093 # type: verbatim
7094 #: ../src/guestfs-actions.pod:1695
7095 #, no-wrap
7096 msgid ""
7097 " int\n"
7098 " guestfs_fill_pattern (guestfs_h *g,\n"
7099 "                       const char *pattern,\n"
7100 "                       int len,\n"
7101 "                       const char *path);\n"
7102 "\n"
7103 msgstr ""
7104
7105 # type: textblock
7106 #: ../src/guestfs-actions.pod:1701
7107 msgid ""
7108 "This function is like C<guestfs_fill> except that it creates a new file of "
7109 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
7110 "pattern is truncated if necessary to ensure the length of the file is "
7111 "exactly C<len> bytes."
7112 msgstr ""
7113
7114 # type: textblock
7115 #: ../src/guestfs-actions.pod:1713
7116 msgid "(Added in 1.3.12)"
7117 msgstr ""
7118
7119 # type: =head2
7120 #: ../src/guestfs-actions.pod:1715
7121 msgid "guestfs_find"
7122 msgstr ""
7123
7124 # type: verbatim
7125 #: ../src/guestfs-actions.pod:1717
7126 #, no-wrap
7127 msgid ""
7128 " char **\n"
7129 " guestfs_find (guestfs_h *g,\n"
7130 "               const char *directory);\n"
7131 "\n"
7132 msgstr ""
7133
7134 # type: textblock
7135 #: ../src/guestfs-actions.pod:1721 ../fish/guestfish-actions.pod:1160
7136 msgid ""
7137 "This command lists out all files and directories, recursively, starting at "
7138 "C<directory>.  It is essentially equivalent to running the shell command "
7139 "C<find directory -print> but some post-processing happens on the output, "
7140 "described below."
7141 msgstr ""
7142
7143 # type: textblock
7144 #: ../src/guestfs-actions.pod:1726 ../fish/guestfish-actions.pod:1165
7145 msgid ""
7146 "This returns a list of strings I<without any prefix>.  Thus if the directory "
7147 "structure was:"
7148 msgstr ""
7149
7150 # type: verbatim
7151 #: ../src/guestfs-actions.pod:1729 ../fish/guestfish-actions.pod:1168
7152 #, no-wrap
7153 msgid ""
7154 " /tmp/a\n"
7155 " /tmp/b\n"
7156 " /tmp/c/d\n"
7157 "\n"
7158 msgstr ""
7159
7160 # type: textblock
7161 #: ../src/guestfs-actions.pod:1733
7162 msgid "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
7163 msgstr ""
7164
7165 # type: verbatim
7166 #: ../src/guestfs-actions.pod:1736 ../fish/guestfish-actions.pod:1175
7167 #, no-wrap
7168 msgid ""
7169 " a\n"
7170 " b\n"
7171 " c\n"
7172 " c/d\n"
7173 "\n"
7174 msgstr ""
7175
7176 # type: textblock
7177 #: ../src/guestfs-actions.pod:1741 ../fish/guestfish-actions.pod:1180
7178 msgid "If C<directory> is not a directory, then this command returns an error."
7179 msgstr ""
7180
7181 # type: textblock
7182 #: ../src/guestfs-actions.pod:1744 ../fish/guestfish-actions.pod:1183
7183 msgid "The returned list is sorted."
7184 msgstr ""
7185
7186 # type: textblock
7187 #: ../src/guestfs-actions.pod:1746
7188 msgid "See also C<guestfs_find0>."
7189 msgstr ""
7190
7191 # type: textblock
7192 #: ../src/guestfs-actions.pod:1755 ../src/guestfs-actions.pod:3856 ../src/guestfs-actions.pod:5383
7193 msgid "(Added in 1.0.27)"
7194 msgstr ""
7195
7196 # type: =head2
7197 #: ../src/guestfs-actions.pod:1757
7198 msgid "guestfs_find0"
7199 msgstr ""
7200
7201 # type: verbatim
7202 #: ../src/guestfs-actions.pod:1759
7203 #, no-wrap
7204 msgid ""
7205 " int\n"
7206 " guestfs_find0 (guestfs_h *g,\n"
7207 "                const char *directory,\n"
7208 "                const char *files);\n"
7209 "\n"
7210 msgstr ""
7211
7212 # type: textblock
7213 #: ../src/guestfs-actions.pod:1764 ../fish/guestfish-actions.pod:1194
7214 msgid ""
7215 "This command lists out all files and directories, recursively, starting at "
7216 "C<directory>, placing the resulting list in the external file called "
7217 "C<files>."
7218 msgstr ""
7219
7220 # type: textblock
7221 #: ../src/guestfs-actions.pod:1768
7222 msgid ""
7223 "This command works the same way as C<guestfs_find> with the following "
7224 "exceptions:"
7225 msgstr ""
7226
7227 # type: textblock
7228 #: ../src/guestfs-actions.pod:1775 ../fish/guestfish-actions.pod:1205
7229 msgid "The resulting list is written to an external file."
7230 msgstr ""
7231
7232 # type: textblock
7233 #: ../src/guestfs-actions.pod:1779 ../fish/guestfish-actions.pod:1209
7234 msgid ""
7235 "Items (filenames) in the result are separated by C<\\0> characters.  See "
7236 "L<find(1)> option I<-print0>."
7237 msgstr ""
7238
7239 # type: textblock
7240 #: ../src/guestfs-actions.pod:1784 ../fish/guestfish-actions.pod:1214
7241 msgid "This command is not limited in the number of names that it can return."
7242 msgstr ""
7243
7244 # type: textblock
7245 #: ../src/guestfs-actions.pod:1789 ../fish/guestfish-actions.pod:1219
7246 msgid "The result list is not sorted."
7247 msgstr ""
7248
7249 # type: textblock
7250 #: ../src/guestfs-actions.pod:1795
7251 msgid "(Added in 1.0.74)"
7252 msgstr ""
7253
7254 # type: =head2
7255 #: ../src/guestfs-actions.pod:1797
7256 msgid "guestfs_findfs_label"
7257 msgstr ""
7258
7259 # type: verbatim
7260 #: ../src/guestfs-actions.pod:1799
7261 #, no-wrap
7262 msgid ""
7263 " char *\n"
7264 " guestfs_findfs_label (guestfs_h *g,\n"
7265 "                       const char *label);\n"
7266 "\n"
7267 msgstr ""
7268
7269 # type: textblock
7270 #: ../src/guestfs-actions.pod:1803 ../fish/guestfish-actions.pod:1229
7271 msgid ""
7272 "This command searches the filesystems and returns the one which has the "
7273 "given label.  An error is returned if no such filesystem can be found."
7274 msgstr ""
7275
7276 # type: textblock
7277 #: ../src/guestfs-actions.pod:1807
7278 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
7279 msgstr ""
7280
7281 # type: =head2
7282 #: ../src/guestfs-actions.pod:1814
7283 msgid "guestfs_findfs_uuid"
7284 msgstr ""
7285
7286 # type: verbatim
7287 #: ../src/guestfs-actions.pod:1816
7288 #, no-wrap
7289 msgid ""
7290 " char *\n"
7291 " guestfs_findfs_uuid (guestfs_h *g,\n"
7292 "                      const char *uuid);\n"
7293 "\n"
7294 msgstr ""
7295
7296 # type: textblock
7297 #: ../src/guestfs-actions.pod:1820 ../fish/guestfish-actions.pod:1239
7298 msgid ""
7299 "This command searches the filesystems and returns the one which has the "
7300 "given UUID.  An error is returned if no such filesystem can be found."
7301 msgstr ""
7302
7303 # type: textblock
7304 #: ../src/guestfs-actions.pod:1824
7305 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
7306 msgstr ""
7307
7308 # type: =head2
7309 #: ../src/guestfs-actions.pod:1831
7310 msgid "guestfs_fsck"
7311 msgstr ""
7312
7313 # type: verbatim
7314 #: ../src/guestfs-actions.pod:1833
7315 #, no-wrap
7316 msgid ""
7317 " int\n"
7318 " guestfs_fsck (guestfs_h *g,\n"
7319 "               const char *fstype,\n"
7320 "               const char *device);\n"
7321 "\n"
7322 msgstr ""
7323
7324 # type: textblock
7325 #: ../src/guestfs-actions.pod:1838 ../fish/guestfish-actions.pod:1249
7326 msgid ""
7327 "This runs the filesystem checker (fsck) on C<device> which should have "
7328 "filesystem type C<fstype>."
7329 msgstr ""
7330
7331 # type: textblock
7332 #: ../src/guestfs-actions.pod:1841 ../fish/guestfish-actions.pod:1252
7333 msgid ""
7334 "The returned integer is the status.  See L<fsck(8)> for the list of status "
7335 "codes from C<fsck>."
7336 msgstr ""
7337
7338 # type: textblock
7339 #: ../src/guestfs-actions.pod:1850 ../fish/guestfish-actions.pod:1261
7340 msgid "Multiple status codes can be summed together."
7341 msgstr ""
7342
7343 # type: textblock
7344 #: ../src/guestfs-actions.pod:1854 ../fish/guestfish-actions.pod:1265
7345 msgid ""
7346 "A non-zero return code can mean \"success\", for example if errors have been "
7347 "corrected on the filesystem."
7348 msgstr ""
7349
7350 # type: textblock
7351 #: ../src/guestfs-actions.pod:1859 ../fish/guestfish-actions.pod:1270
7352 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
7353 msgstr ""
7354
7355 # type: textblock
7356 #: ../src/guestfs-actions.pod:1864 ../fish/guestfish-actions.pod:1275
7357 msgid "This command is entirely equivalent to running C<fsck -a -t fstype device>."
7358 msgstr ""
7359
7360 # type: textblock
7361 #: ../src/guestfs-actions.pod:1868 ../src/guestfs-actions.pod:7030
7362 msgid "(Added in 1.0.16)"
7363 msgstr ""
7364
7365 # type: =head2
7366 #: ../src/guestfs-actions.pod:1870
7367 msgid "guestfs_get_append"
7368 msgstr ""
7369
7370 # type: verbatim
7371 #: ../src/guestfs-actions.pod:1872
7372 #, no-wrap
7373 msgid ""
7374 " const char *\n"
7375 " guestfs_get_append (guestfs_h *g);\n"
7376 "\n"
7377 msgstr ""
7378
7379 # type: textblock
7380 #: ../src/guestfs-actions.pod:1875 ../fish/guestfish-actions.pod:1281
7381 msgid ""
7382 "Return the additional kernel options which are added to the guest kernel "
7383 "command line."
7384 msgstr ""
7385
7386 # type: textblock
7387 #: ../src/guestfs-actions.pod:1878 ../fish/guestfish-actions.pod:1284
7388 msgid "If C<NULL> then no options are added."
7389 msgstr ""
7390
7391 # type: textblock
7392 #: ../src/guestfs-actions.pod:1880
7393 msgid ""
7394 "This function returns a string which may be NULL.  There is no way to return "
7395 "an error from this function.  The string is owned by the guest handle and "
7396 "must I<not> be freed."
7397 msgstr ""
7398
7399 # type: textblock
7400 #: ../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
7401 msgid "(Added in 1.0.26)"
7402 msgstr ""
7403
7404 # type: =head2
7405 #: ../src/guestfs-actions.pod:1886
7406 msgid "guestfs_get_autosync"
7407 msgstr ""
7408
7409 # type: verbatim
7410 #: ../src/guestfs-actions.pod:1888
7411 #, no-wrap
7412 msgid ""
7413 " int\n"
7414 " guestfs_get_autosync (guestfs_h *g);\n"
7415 "\n"
7416 msgstr ""
7417
7418 # type: textblock
7419 #: ../src/guestfs-actions.pod:1891 ../fish/guestfish-actions.pod:1290
7420 msgid "Get the autosync flag."
7421 msgstr ""
7422
7423 # type: =head2
7424 #: ../src/guestfs-actions.pod:1897
7425 msgid "guestfs_get_direct"
7426 msgstr ""
7427
7428 # type: verbatim
7429 #: ../src/guestfs-actions.pod:1899
7430 #, no-wrap
7431 msgid ""
7432 " int\n"
7433 " guestfs_get_direct (guestfs_h *g);\n"
7434 "\n"
7435 msgstr ""
7436
7437 # type: textblock
7438 #: ../src/guestfs-actions.pod:1902 ../fish/guestfish-actions.pod:1296
7439 msgid "Return the direct appliance mode flag."
7440 msgstr ""
7441
7442 # type: textblock
7443 #: ../src/guestfs-actions.pod:1906 ../src/guestfs-actions.pod:5565
7444 msgid "(Added in 1.0.72)"
7445 msgstr ""
7446
7447 # type: =head2
7448 #: ../src/guestfs-actions.pod:1908
7449 msgid "guestfs_get_e2label"
7450 msgstr ""
7451
7452 # type: verbatim
7453 #: ../src/guestfs-actions.pod:1910
7454 #, no-wrap
7455 msgid ""
7456 " char *\n"
7457 " guestfs_get_e2label (guestfs_h *g,\n"
7458 "                      const char *device);\n"
7459 "\n"
7460 msgstr ""
7461
7462 # type: textblock
7463 #: ../src/guestfs-actions.pod:1914 ../fish/guestfish-actions.pod:1302
7464 msgid "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
7465 msgstr ""
7466
7467 # type: textblock
7468 #: ../src/guestfs-actions.pod:1920 ../fish/guestfish-actions.pod:1305
7469 msgid ""
7470 "This function is deprecated.  In new code, use the C<vfs_label> call "
7471 "instead."
7472 msgstr ""
7473
7474 # type: textblock
7475 #: ../src/guestfs-actions.pod:1927 ../src/guestfs-actions.pod:1948 ../src/guestfs-actions.pod:5583 ../src/guestfs-actions.pod:5602
7476 msgid "(Added in 1.0.15)"
7477 msgstr ""
7478
7479 # type: =head2
7480 #: ../src/guestfs-actions.pod:1929
7481 msgid "guestfs_get_e2uuid"
7482 msgstr ""
7483
7484 # type: verbatim
7485 #: ../src/guestfs-actions.pod:1931
7486 #, no-wrap
7487 msgid ""
7488 " char *\n"
7489 " guestfs_get_e2uuid (guestfs_h *g,\n"
7490 "                     const char *device);\n"
7491 "\n"
7492 msgstr ""
7493
7494 # type: textblock
7495 #: ../src/guestfs-actions.pod:1935 ../fish/guestfish-actions.pod:1316
7496 msgid "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
7497 msgstr ""
7498
7499 # type: textblock
7500 #: ../src/guestfs-actions.pod:1941 ../fish/guestfish-actions.pod:1319
7501 msgid "This function is deprecated.  In new code, use the C<vfs_uuid> call instead."
7502 msgstr ""
7503
7504 # type: =head2
7505 #: ../src/guestfs-actions.pod:1950
7506 msgid "guestfs_get_memsize"
7507 msgstr ""
7508
7509 # type: verbatim
7510 #: ../src/guestfs-actions.pod:1952
7511 #, no-wrap
7512 msgid ""
7513 " int\n"
7514 " guestfs_get_memsize (guestfs_h *g);\n"
7515 "\n"
7516 msgstr ""
7517
7518 # type: textblock
7519 #: ../src/guestfs-actions.pod:1955 ../fish/guestfish-actions.pod:1330
7520 msgid "This gets the memory size in megabytes allocated to the qemu subprocess."
7521 msgstr ""
7522
7523 # type: textblock
7524 #: ../src/guestfs-actions.pod:1958
7525 msgid ""
7526 "If C<guestfs_set_memsize> was not called on this handle, and if "
7527 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
7528 "value for memsize."
7529 msgstr ""
7530
7531 # type: textblock
7532 #: ../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
7533 msgid "For more information on the architecture of libguestfs, see L<guestfs(3)>."
7534 msgstr ""
7535
7536 # type: textblock
7537 #: ../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
7538 msgid "(Added in 1.0.55)"
7539 msgstr ""
7540
7541 # type: =head2
7542 #: ../src/guestfs-actions.pod:1969
7543 msgid "guestfs_get_network"
7544 msgstr ""
7545
7546 # type: verbatim
7547 #: ../src/guestfs-actions.pod:1971
7548 #, no-wrap
7549 msgid ""
7550 " int\n"
7551 " guestfs_get_network (guestfs_h *g);\n"
7552 "\n"
7553 msgstr ""
7554
7555 # type: textblock
7556 #: ../src/guestfs-actions.pod:1974 ../fish/guestfish-actions.pod:1344
7557 msgid "This returns the enable network flag."
7558 msgstr ""
7559
7560 # type: textblock
7561 #: ../src/guestfs-actions.pod:1978 ../src/guestfs-actions.pod:5642
7562 msgid "(Added in 1.5.4)"
7563 msgstr ""
7564
7565 # type: =head2
7566 #: ../src/guestfs-actions.pod:1980
7567 msgid "guestfs_get_path"
7568 msgstr ""
7569
7570 # type: verbatim
7571 #: ../src/guestfs-actions.pod:1982
7572 #, no-wrap
7573 msgid ""
7574 " const char *\n"
7575 " guestfs_get_path (guestfs_h *g);\n"
7576 "\n"
7577 msgstr ""
7578
7579 # type: textblock
7580 #: ../src/guestfs-actions.pod:1985 ../fish/guestfish-actions.pod:1350
7581 msgid "Return the current search path."
7582 msgstr ""
7583
7584 # type: textblock
7585 #: ../src/guestfs-actions.pod:1987 ../fish/guestfish-actions.pod:1352
7586 msgid ""
7587 "This is always non-NULL.  If it wasn't set already, then this will return "
7588 "the default path."
7589 msgstr ""
7590
7591 # type: textblock
7592 #: ../src/guestfs-actions.pod:1990 ../src/guestfs-actions.pod:2019
7593 msgid ""
7594 "This function returns a string, or NULL on error.  The string is owned by "
7595 "the guest handle and must I<not> be freed."
7596 msgstr ""
7597
7598 # type: =head2
7599 #: ../src/guestfs-actions.pod:1995
7600 msgid "guestfs_get_pid"
7601 msgstr ""
7602
7603 # type: verbatim
7604 #: ../src/guestfs-actions.pod:1997
7605 #, no-wrap
7606 msgid ""
7607 " int\n"
7608 " guestfs_get_pid (guestfs_h *g);\n"
7609 "\n"
7610 msgstr ""
7611
7612 # type: textblock
7613 #: ../src/guestfs-actions.pod:2000 ../fish/guestfish-actions.pod:1361
7614 msgid ""
7615 "Return the process ID of the qemu subprocess.  If there is no qemu "
7616 "subprocess, then this will return an error."
7617 msgstr ""
7618
7619 # type: textblock
7620 #: ../src/guestfs-actions.pod:2003 ../fish/guestfish-actions.pod:1364
7621 msgid "This is an internal call used for debugging and testing."
7622 msgstr ""
7623
7624 # type: textblock
7625 #: ../src/guestfs-actions.pod:2007
7626 msgid "(Added in 1.0.56)"
7627 msgstr ""
7628
7629 # type: =head2
7630 #: ../src/guestfs-actions.pod:2009
7631 msgid "guestfs_get_qemu"
7632 msgstr ""
7633
7634 # type: verbatim
7635 #: ../src/guestfs-actions.pod:2011
7636 #, no-wrap
7637 msgid ""
7638 " const char *\n"
7639 " guestfs_get_qemu (guestfs_h *g);\n"
7640 "\n"
7641 msgstr ""
7642
7643 # type: textblock
7644 #: ../src/guestfs-actions.pod:2014 ../fish/guestfish-actions.pod:1370
7645 msgid "Return the current qemu binary."
7646 msgstr ""
7647
7648 # type: textblock
7649 #: ../src/guestfs-actions.pod:2016 ../fish/guestfish-actions.pod:1372
7650 msgid ""
7651 "This is always non-NULL.  If it wasn't set already, then this will return "
7652 "the default qemu binary name."
7653 msgstr ""
7654
7655 # type: textblock
7656 #: ../src/guestfs-actions.pod:2022 ../src/guestfs-actions.pod:5687
7657 msgid "(Added in 1.0.6)"
7658 msgstr ""
7659
7660 # type: =head2
7661 #: ../src/guestfs-actions.pod:2024
7662 msgid "guestfs_get_recovery_proc"
7663 msgstr ""
7664
7665 # type: verbatim
7666 #: ../src/guestfs-actions.pod:2026
7667 #, no-wrap
7668 msgid ""
7669 " int\n"
7670 " guestfs_get_recovery_proc (guestfs_h *g);\n"
7671 "\n"
7672 msgstr ""
7673
7674 # type: textblock
7675 #: ../src/guestfs-actions.pod:2029 ../fish/guestfish-actions.pod:1379
7676 msgid "Return the recovery process enabled flag."
7677 msgstr ""
7678
7679 # type: textblock
7680 #: ../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
7681 msgid "(Added in 1.0.77)"
7682 msgstr ""
7683
7684 # type: =head2
7685 #: ../src/guestfs-actions.pod:2035
7686 msgid "guestfs_get_selinux"
7687 msgstr ""
7688
7689 # type: verbatim
7690 #: ../src/guestfs-actions.pod:2037
7691 #, no-wrap
7692 msgid ""
7693 " int\n"
7694 " guestfs_get_selinux (guestfs_h *g);\n"
7695 "\n"
7696 msgstr ""
7697
7698 # type: textblock
7699 #: ../src/guestfs-actions.pod:2040
7700 msgid ""
7701 "This returns the current setting of the selinux flag which is passed to the "
7702 "appliance at boot time.  See C<guestfs_set_selinux>."
7703 msgstr ""
7704
7705 # type: textblock
7706 #: ../src/guestfs-actions.pod:2048 ../src/guestfs-actions.pod:2111 ../src/guestfs-actions.pod:5730 ../src/guestfs-actions.pod:5784
7707 msgid "(Added in 1.0.67)"
7708 msgstr ""
7709
7710 # type: =head2
7711 #: ../src/guestfs-actions.pod:2050
7712 msgid "guestfs_get_state"
7713 msgstr ""
7714
7715 # type: verbatim
7716 #: ../src/guestfs-actions.pod:2052
7717 #, no-wrap
7718 msgid ""
7719 " int\n"
7720 " guestfs_get_state (guestfs_h *g);\n"
7721 "\n"
7722 msgstr ""
7723
7724 # type: textblock
7725 #: ../src/guestfs-actions.pod:2055 ../fish/guestfish-actions.pod:1395
7726 msgid ""
7727 "This returns the current state as an opaque integer.  This is only useful "
7728 "for printing debug and internal error messages."
7729 msgstr ""
7730
7731 # type: textblock
7732 #: ../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
7733 msgid "For more information on states, see L<guestfs(3)>."
7734 msgstr ""
7735
7736 # type: =head2
7737 #: ../src/guestfs-actions.pod:2064
7738 msgid "guestfs_get_trace"
7739 msgstr ""
7740
7741 # type: verbatim
7742 #: ../src/guestfs-actions.pod:2066
7743 #, no-wrap
7744 msgid ""
7745 " int\n"
7746 " guestfs_get_trace (guestfs_h *g);\n"
7747 "\n"
7748 msgstr ""
7749
7750 # type: textblock
7751 #: ../src/guestfs-actions.pod:2069 ../fish/guestfish-actions.pod:1404
7752 msgid "Return the command trace flag."
7753 msgstr ""
7754
7755 # type: =head2
7756 #: ../src/guestfs-actions.pod:2075
7757 msgid "guestfs_get_umask"
7758 msgstr ""
7759
7760 # type: verbatim
7761 #: ../src/guestfs-actions.pod:2077
7762 #, no-wrap
7763 msgid ""
7764 " int\n"
7765 " guestfs_get_umask (guestfs_h *g);\n"
7766 "\n"
7767 msgstr ""
7768
7769 # type: textblock
7770 #: ../src/guestfs-actions.pod:2080
7771 msgid ""
7772 "Return the current umask.  By default the umask is C<022> unless it has been "
7773 "set by calling C<guestfs_umask>."
7774 msgstr ""
7775
7776 # type: =head2
7777 #: ../src/guestfs-actions.pod:2087
7778 msgid "guestfs_get_verbose"
7779 msgstr ""
7780
7781 # type: verbatim
7782 #: ../src/guestfs-actions.pod:2089
7783 #, no-wrap
7784 msgid ""
7785 " int\n"
7786 " guestfs_get_verbose (guestfs_h *g);\n"
7787 "\n"
7788 msgstr ""
7789
7790 # type: textblock
7791 #: ../src/guestfs-actions.pod:2092 ../fish/guestfish-actions.pod:1417
7792 msgid "This returns the verbose messages flag."
7793 msgstr ""
7794
7795 # type: =head2
7796 #: ../src/guestfs-actions.pod:2098
7797 msgid "guestfs_getcon"
7798 msgstr ""
7799
7800 # type: verbatim
7801 #: ../src/guestfs-actions.pod:2100
7802 #, no-wrap
7803 msgid ""
7804 " char *\n"
7805 " guestfs_getcon (guestfs_h *g);\n"
7806 "\n"
7807 msgstr ""
7808
7809 # type: textblock
7810 #: ../src/guestfs-actions.pod:2103 ../fish/guestfish-actions.pod:1423
7811 msgid "This gets the SELinux security context of the daemon."
7812 msgstr ""
7813
7814 # type: textblock
7815 #: ../src/guestfs-actions.pod:2105
7816 msgid "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
7817 msgstr ""
7818
7819 # type: =head2
7820 #: ../src/guestfs-actions.pod:2113
7821 msgid "guestfs_getxattr"
7822 msgstr ""
7823
7824 # type: verbatim
7825 #: ../src/guestfs-actions.pod:2115
7826 #, no-wrap
7827 msgid ""
7828 " char *\n"
7829 " guestfs_getxattr (guestfs_h *g,\n"
7830 "                   const char *path,\n"
7831 "                   const char *name,\n"
7832 "                   size_t *size_r);\n"
7833 "\n"
7834 msgstr ""
7835
7836 # type: textblock
7837 #: ../src/guestfs-actions.pod:2121
7838 msgid ""
7839 "Get a single extended attribute from file C<path> named C<name>.  This call "
7840 "follows symlinks.  If you want to lookup an extended attribute for the "
7841 "symlink itself, use C<guestfs_lgetxattr>."
7842 msgstr ""
7843
7844 # type: textblock
7845 #: ../src/guestfs-actions.pod:2125 ../src/guestfs-actions.pod:3273
7846 msgid ""
7847 "Normally it is better to get all extended attributes from a file in one go "
7848 "by calling C<guestfs_getxattrs>.  However some Linux filesystem "
7849 "implementations are buggy and do not provide a way to list out attributes.  "
7850 "For these filesystems (notably ntfs-3g)  you have to know the names of the "
7851 "extended attributes you want in advance and call this function."
7852 msgstr ""
7853
7854 # type: textblock
7855 #: ../src/guestfs-actions.pod:2132 ../src/guestfs-actions.pod:3280 ../fish/guestfish-actions.pod:1443 ../fish/guestfish-actions.pod:2270
7856 msgid ""
7857 "Extended attribute values are blobs of binary data.  If there is no extended "
7858 "attribute named C<name>, this returns an error."
7859 msgstr ""
7860
7861 # type: textblock
7862 #: ../src/guestfs-actions.pod:2135
7863 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
7864 msgstr ""
7865
7866 # type: textblock
7867 #: ../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
7868 msgid ""
7869 "This function returns a buffer, or NULL on error.  The size of the returned "
7870 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
7871 "after use>."
7872 msgstr ""
7873
7874 # type: =head2
7875 #: ../src/guestfs-actions.pod:2141
7876 msgid "guestfs_getxattrs"
7877 msgstr ""
7878
7879 # type: verbatim
7880 #: ../src/guestfs-actions.pod:2143
7881 #, no-wrap
7882 msgid ""
7883 " struct guestfs_xattr_list *\n"
7884 " guestfs_getxattrs (guestfs_h *g,\n"
7885 "                    const char *path);\n"
7886 "\n"
7887 msgstr ""
7888
7889 # type: textblock
7890 #: ../src/guestfs-actions.pod:2147 ../fish/guestfish-actions.pod:1452
7891 msgid "This call lists the extended attributes of the file or directory C<path>."
7892 msgstr ""
7893
7894 # type: textblock
7895 #: ../src/guestfs-actions.pod:2150 ../fish/guestfish-actions.pod:1455
7896 msgid ""
7897 "At the system call level, this is a combination of the L<listxattr(2)> and "
7898 "L<getxattr(2)> calls."
7899 msgstr ""
7900
7901 # type: textblock
7902 #: ../src/guestfs-actions.pod:2153
7903 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
7904 msgstr ""
7905
7906 # type: textblock
7907 #: ../src/guestfs-actions.pod:2155 ../src/guestfs-actions.pod:3299 ../src/guestfs-actions.pod:3950
7908 msgid ""
7909 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
7910 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
7911 msgstr ""
7912
7913 # type: textblock
7914 #: ../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
7915 msgid "(Added in 1.0.59)"
7916 msgstr ""
7917
7918 # type: =head2
7919 #: ../src/guestfs-actions.pod:2161
7920 msgid "guestfs_glob_expand"
7921 msgstr ""
7922
7923 # type: verbatim
7924 #: ../src/guestfs-actions.pod:2163
7925 #, no-wrap
7926 msgid ""
7927 " char **\n"
7928 " guestfs_glob_expand (guestfs_h *g,\n"
7929 "                      const char *pattern);\n"
7930 "\n"
7931 msgstr ""
7932
7933 # type: textblock
7934 #: ../src/guestfs-actions.pod:2167 ../fish/guestfish-actions.pod:1464
7935 msgid ""
7936 "This command searches for all the pathnames matching C<pattern> according to "
7937 "the wildcard expansion rules used by the shell."
7938 msgstr ""
7939
7940 # type: textblock
7941 #: ../src/guestfs-actions.pod:2171 ../fish/guestfish-actions.pod:1468
7942 msgid "If no paths match, then this returns an empty list (note: not an error)."
7943 msgstr ""
7944
7945 # type: textblock
7946 #: ../src/guestfs-actions.pod:2174 ../fish/guestfish-actions.pod:1471
7947 msgid ""
7948 "It is just a wrapper around the C L<glob(3)> function with flags "
7949 "C<GLOB_MARK|GLOB_BRACE>.  See that manual page for more details."
7950 msgstr ""
7951
7952 # type: textblock
7953 #: ../src/guestfs-actions.pod:2182 ../src/guestfs-actions.pod:5968 ../src/guestfs-actions.pod:5985
7954 msgid "(Added in 1.0.50)"
7955 msgstr ""
7956
7957 # type: =head2
7958 #: ../src/guestfs-actions.pod:2184
7959 msgid "guestfs_grep"
7960 msgstr ""
7961
7962 # type: verbatim
7963 #: ../src/guestfs-actions.pod:2186
7964 #, no-wrap
7965 msgid ""
7966 " char **\n"
7967 " guestfs_grep (guestfs_h *g,\n"
7968 "               const char *regex,\n"
7969 "               const char *path);\n"
7970 "\n"
7971 msgstr ""
7972
7973 # type: textblock
7974 #: ../src/guestfs-actions.pod:2191 ../fish/guestfish-actions.pod:1479
7975 msgid "This calls the external C<grep> program and returns the matching lines."
7976 msgstr ""
7977
7978 # type: =head2
7979 #: ../src/guestfs-actions.pod:2203
7980 msgid "guestfs_grepi"
7981 msgstr ""
7982
7983 # type: verbatim
7984 #: ../src/guestfs-actions.pod:2205
7985 #, no-wrap
7986 msgid ""
7987 " char **\n"
7988 " guestfs_grepi (guestfs_h *g,\n"
7989 "                const char *regex,\n"
7990 "                const char *path);\n"
7991 "\n"
7992 msgstr ""
7993
7994 # type: textblock
7995 #: ../src/guestfs-actions.pod:2210 ../fish/guestfish-actions.pod:1489
7996 msgid "This calls the external C<grep -i> program and returns the matching lines."
7997 msgstr ""
7998
7999 # type: =head2
8000 #: ../src/guestfs-actions.pod:2222
8001 msgid "guestfs_grub_install"
8002 msgstr ""
8003
8004 # type: verbatim
8005 #: ../src/guestfs-actions.pod:2224
8006 #, no-wrap
8007 msgid ""
8008 " int\n"
8009 " guestfs_grub_install (guestfs_h *g,\n"
8010 "                       const char *root,\n"
8011 "                       const char *device);\n"
8012 "\n"
8013 msgstr ""
8014
8015 # type: textblock
8016 #: ../src/guestfs-actions.pod:2229 ../fish/guestfish-actions.pod:1499
8017 msgid ""
8018 "This command installs GRUB (the Grand Unified Bootloader) on C<device>, with "
8019 "the root directory being C<root>."
8020 msgstr ""
8021
8022 # type: textblock
8023 #: ../src/guestfs-actions.pod:2232 ../fish/guestfish-actions.pod:1502
8024 msgid ""
8025 "Note: If grub-install reports the error \"No suitable drive was found in the "
8026 "generated device map.\" it may be that you need to create a "
8027 "C</boot/grub/device.map> file first that contains the mapping between grub "
8028 "device names and Linux device names.  It is usually sufficient to create a "
8029 "file containing:"
8030 msgstr ""
8031
8032 # type: verbatim
8033 #: ../src/guestfs-actions.pod:2239 ../fish/guestfish-actions.pod:1509
8034 #, no-wrap
8035 msgid ""
8036 " (hd0) /dev/vda\n"
8037 "\n"
8038 msgstr ""
8039
8040 # type: textblock
8041 #: ../src/guestfs-actions.pod:2241 ../fish/guestfish-actions.pod:1511
8042 msgid "replacing C</dev/vda> with the name of the installation device."
8043 msgstr ""
8044
8045 # type: textblock
8046 #: ../src/guestfs-actions.pod:2245
8047 msgid "(Added in 1.0.17)"
8048 msgstr ""
8049
8050 # type: =head2
8051 #: ../src/guestfs-actions.pod:2247
8052 msgid "guestfs_head"
8053 msgstr ""
8054
8055 # type: verbatim
8056 #: ../src/guestfs-actions.pod:2249
8057 #, no-wrap
8058 msgid ""
8059 " char **\n"
8060 " guestfs_head (guestfs_h *g,\n"
8061 "               const char *path);\n"
8062 "\n"
8063 msgstr ""
8064
8065 # type: textblock
8066 #: ../src/guestfs-actions.pod:2253 ../fish/guestfish-actions.pod:1517
8067 msgid ""
8068 "This command returns up to the first 10 lines of a file as a list of "
8069 "strings."
8070 msgstr ""
8071
8072 # type: =head2
8073 #: ../src/guestfs-actions.pod:2265
8074 msgid "guestfs_head_n"
8075 msgstr ""
8076
8077 # type: verbatim
8078 #: ../src/guestfs-actions.pod:2267
8079 #, no-wrap
8080 msgid ""
8081 " char **\n"
8082 " guestfs_head_n (guestfs_h *g,\n"
8083 "                 int nrlines,\n"
8084 "                 const char *path);\n"
8085 "\n"
8086 msgstr ""
8087
8088 # type: textblock
8089 #: ../src/guestfs-actions.pod:2272 ../fish/guestfish-actions.pod:1527
8090 msgid ""
8091 "If the parameter C<nrlines> is a positive number, this returns the first "
8092 "C<nrlines> lines of the file C<path>."
8093 msgstr ""
8094
8095 # type: textblock
8096 #: ../src/guestfs-actions.pod:2275 ../fish/guestfish-actions.pod:1530
8097 msgid ""
8098 "If the parameter C<nrlines> is a negative number, this returns lines from "
8099 "the file C<path>, excluding the last C<nrlines> lines."
8100 msgstr ""
8101
8102 # type: textblock
8103 #: ../src/guestfs-actions.pod:2278 ../src/guestfs-actions.pod:6265 ../fish/guestfish-actions.pod:1533 ../fish/guestfish-actions.pod:4184
8104 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
8105 msgstr ""
8106
8107 # type: =head2
8108 #: ../src/guestfs-actions.pod:2289
8109 msgid "guestfs_hexdump"
8110 msgstr ""
8111
8112 # type: verbatim
8113 #: ../src/guestfs-actions.pod:2291
8114 #, no-wrap
8115 msgid ""
8116 " char *\n"
8117 " guestfs_hexdump (guestfs_h *g,\n"
8118 "                  const char *path);\n"
8119 "\n"
8120 msgstr ""
8121
8122 # type: textblock
8123 #: ../src/guestfs-actions.pod:2295 ../fish/guestfish-actions.pod:1542
8124 msgid ""
8125 "This runs C<hexdump -C> on the given C<path>.  The result is the "
8126 "human-readable, canonical hex dump of the file."
8127 msgstr ""
8128
8129 # type: textblock
8130 #: ../src/guestfs-actions.pod:2304 ../src/guestfs-actions.pod:6049 ../src/guestfs-actions.pod:6104
8131 msgid "(Added in 1.0.22)"
8132 msgstr ""
8133
8134 # type: =head2
8135 #: ../src/guestfs-actions.pod:2306
8136 msgid "guestfs_initrd_cat"
8137 msgstr ""
8138
8139 # type: verbatim
8140 #: ../src/guestfs-actions.pod:2308
8141 #, no-wrap
8142 msgid ""
8143 " char *\n"
8144 " guestfs_initrd_cat (guestfs_h *g,\n"
8145 "                     const char *initrdpath,\n"
8146 "                     const char *filename,\n"
8147 "                     size_t *size_r);\n"
8148 "\n"
8149 msgstr ""
8150
8151 # type: textblock
8152 #: ../src/guestfs-actions.pod:2314 ../fish/guestfish-actions.pod:1552
8153 msgid ""
8154 "This command unpacks the file C<filename> from the initrd file called "
8155 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
8156 "character."
8157 msgstr ""
8158
8159 # type: textblock
8160 #: ../src/guestfs-actions.pod:2318 ../fish/guestfish-actions.pod:1556
8161 msgid ""
8162 "For example, in guestfish you could use the following command to examine the "
8163 "boot script (usually called C</init>)  contained in a Linux initrd or "
8164 "initramfs image:"
8165 msgstr ""
8166
8167 # type: verbatim
8168 #: ../src/guestfs-actions.pod:2322 ../fish/guestfish-actions.pod:1560
8169 #, no-wrap
8170 msgid ""
8171 " initrd-cat /boot/initrd-<version>.img init\n"
8172 "\n"
8173 msgstr ""
8174
8175 # type: textblock
8176 #: ../src/guestfs-actions.pod:2324
8177 msgid "See also C<guestfs_initrd_list>."
8178 msgstr ""
8179
8180 # type: =head2
8181 #: ../src/guestfs-actions.pod:2335
8182 msgid "guestfs_initrd_list"
8183 msgstr ""
8184
8185 # type: verbatim
8186 #: ../src/guestfs-actions.pod:2337
8187 #, no-wrap
8188 msgid ""
8189 " char **\n"
8190 " guestfs_initrd_list (guestfs_h *g,\n"
8191 "                      const char *path);\n"
8192 "\n"
8193 msgstr ""
8194
8195 # type: textblock
8196 #: ../src/guestfs-actions.pod:2341 ../fish/guestfish-actions.pod:1571
8197 msgid "This command lists out files contained in an initrd."
8198 msgstr ""
8199
8200 # type: textblock
8201 #: ../src/guestfs-actions.pod:2343 ../fish/guestfish-actions.pod:1573
8202 msgid ""
8203 "The files are listed without any initial C</> character.  The files are "
8204 "listed in the order they appear (not necessarily alphabetical).  Directory "
8205 "names are listed as separate items."
8206 msgstr ""
8207
8208 # type: textblock
8209 #: ../src/guestfs-actions.pod:2347 ../fish/guestfish-actions.pod:1577
8210 msgid ""
8211 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
8212 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
8213 "files)."
8214 msgstr ""
8215
8216 # type: =head2
8217 #: ../src/guestfs-actions.pod:2357
8218 msgid "guestfs_inotify_add_watch"
8219 msgstr ""
8220
8221 # type: verbatim
8222 #: ../src/guestfs-actions.pod:2359
8223 #, no-wrap
8224 msgid ""
8225 " int64_t\n"
8226 " guestfs_inotify_add_watch (guestfs_h *g,\n"
8227 "                            const char *path,\n"
8228 "                            int mask);\n"
8229 "\n"
8230 msgstr ""
8231
8232 # type: textblock
8233 #: ../src/guestfs-actions.pod:2364 ../fish/guestfish-actions.pod:1585
8234 msgid "Watch C<path> for the events listed in C<mask>."
8235 msgstr ""
8236
8237 # type: textblock
8238 #: ../src/guestfs-actions.pod:2366 ../fish/guestfish-actions.pod:1587
8239 msgid ""
8240 "Note that if C<path> is a directory then events within that directory are "
8241 "watched, but this does I<not> happen recursively (in subdirectories)."
8242 msgstr ""
8243
8244 # type: textblock
8245 #: ../src/guestfs-actions.pod:2370 ../fish/guestfish-actions.pod:1591
8246 msgid ""
8247 "Note for non-C or non-Linux callers: the inotify events are defined by the "
8248 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
8249 msgstr ""
8250
8251 # type: =head2
8252 #: ../src/guestfs-actions.pod:2378
8253 msgid "guestfs_inotify_close"
8254 msgstr ""
8255
8256 # type: verbatim
8257 #: ../src/guestfs-actions.pod:2380
8258 #, no-wrap
8259 msgid ""
8260 " int\n"
8261 " guestfs_inotify_close (guestfs_h *g);\n"
8262 "\n"
8263 msgstr ""
8264
8265 # type: textblock
8266 #: ../src/guestfs-actions.pod:2383 ../fish/guestfish-actions.pod:1599
8267 msgid ""
8268 "This closes the inotify handle which was previously opened by inotify_init.  "
8269 "It removes all watches, throws away any pending events, and deallocates all "
8270 "resources."
8271 msgstr ""
8272
8273 # type: =head2
8274 #: ../src/guestfs-actions.pod:2391
8275 msgid "guestfs_inotify_files"
8276 msgstr ""
8277
8278 # type: verbatim
8279 #: ../src/guestfs-actions.pod:2393
8280 #, no-wrap
8281 msgid ""
8282 " char **\n"
8283 " guestfs_inotify_files (guestfs_h *g);\n"
8284 "\n"
8285 msgstr ""
8286
8287 # type: textblock
8288 #: ../src/guestfs-actions.pod:2396
8289 msgid ""
8290 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
8291 "returns a list of pathnames of objects that were touched.  The returned "
8292 "pathnames are sorted and deduplicated."
8293 msgstr ""
8294
8295 # type: =head2
8296 #: ../src/guestfs-actions.pod:2406
8297 msgid "guestfs_inotify_init"
8298 msgstr ""
8299
8300 # type: verbatim
8301 #: ../src/guestfs-actions.pod:2408
8302 #, no-wrap
8303 msgid ""
8304 " int\n"
8305 " guestfs_inotify_init (guestfs_h *g,\n"
8306 "                       int maxevents);\n"
8307 "\n"
8308 msgstr ""
8309
8310 # type: textblock
8311 #: ../src/guestfs-actions.pod:2412 ../fish/guestfish-actions.pod:1615
8312 msgid ""
8313 "This command creates a new inotify handle.  The inotify subsystem can be "
8314 "used to notify events which happen to objects in the guest filesystem."
8315 msgstr ""
8316
8317 # type: textblock
8318 #: ../src/guestfs-actions.pod:2416
8319 msgid ""
8320 "C<maxevents> is the maximum number of events which will be queued up between "
8321 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
8322 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
8323 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
8324 "throws away events, but records the fact that it threw them away by setting "
8325 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
8326 "C<guestfs_inotify_read>)."
8327 msgstr ""
8328
8329 # type: textblock
8330 #: ../src/guestfs-actions.pod:2426
8331 msgid ""
8332 "Before any events are generated, you have to add some watches to the "
8333 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
8334 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
8335 msgstr ""
8336
8337 # type: textblock
8338 #: ../src/guestfs-actions.pod:2432
8339 msgid ""
8340 "Queued up events should be read periodically by calling "
8341 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
8342 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
8343 "often enough then you risk the internal queue overflowing."
8344 msgstr ""
8345
8346 # type: textblock
8347 #: ../src/guestfs-actions.pod:2439
8348 msgid ""
8349 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
8350 "This also removes any watches automatically."
8351 msgstr ""
8352
8353 # type: textblock
8354 #: ../src/guestfs-actions.pod:2443 ../fish/guestfish-actions.pod:1646
8355 msgid ""
8356 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
8357 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
8358 "that there is one global inotify handle per libguestfs instance."
8359 msgstr ""
8360
8361 # type: =head2
8362 #: ../src/guestfs-actions.pod:2452
8363 msgid "guestfs_inotify_read"
8364 msgstr ""
8365
8366 # type: verbatim
8367 #: ../src/guestfs-actions.pod:2454
8368 #, no-wrap
8369 msgid ""
8370 " struct guestfs_inotify_event_list *\n"
8371 " guestfs_inotify_read (guestfs_h *g);\n"
8372 "\n"
8373 msgstr ""
8374
8375 # type: textblock
8376 #: ../src/guestfs-actions.pod:2457 ../fish/guestfish-actions.pod:1655
8377 msgid ""
8378 "Return the complete queue of events that have happened since the previous "
8379 "read call."
8380 msgstr ""
8381
8382 # type: textblock
8383 #: ../src/guestfs-actions.pod:2460 ../fish/guestfish-actions.pod:1658
8384 msgid "If no events have happened, this returns an empty list."
8385 msgstr ""
8386
8387 # type: textblock
8388 #: ../src/guestfs-actions.pod:2462 ../fish/guestfish-actions.pod:1660
8389 msgid ""
8390 "I<Note>: In order to make sure that all events have been read, you must call "
8391 "this function repeatedly until it returns an empty list.  The reason is that "
8392 "the call will read events up to the maximum appliance-to-host message size "
8393 "and leave remaining events in the queue."
8394 msgstr ""
8395
8396 # type: textblock
8397 #: ../src/guestfs-actions.pod:2468
8398 msgid ""
8399 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
8400 "there was an error.  I<The caller must call "
8401 "C<guestfs_free_inotify_event_list> after use>."
8402 msgstr ""
8403
8404 # type: =head2
8405 #: ../src/guestfs-actions.pod:2474
8406 msgid "guestfs_inotify_rm_watch"
8407 msgstr ""
8408
8409 # type: verbatim
8410 #: ../src/guestfs-actions.pod:2476
8411 #, no-wrap
8412 msgid ""
8413 " int\n"
8414 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
8415 "                           int wd);\n"
8416 "\n"
8417 msgstr ""
8418
8419 # type: textblock
8420 #: ../src/guestfs-actions.pod:2480
8421 msgid ""
8422 "Remove a previously defined inotify watch.  See "
8423 "C<guestfs_inotify_add_watch>."
8424 msgstr ""
8425
8426 # type: =head2
8427 #: ../src/guestfs-actions.pod:2487
8428 msgid "guestfs_inspect_get_arch"
8429 msgstr ""
8430
8431 # type: verbatim
8432 #: ../src/guestfs-actions.pod:2489
8433 #, no-wrap
8434 msgid ""
8435 " char *\n"
8436 " guestfs_inspect_get_arch (guestfs_h *g,\n"
8437 "                           const char *root);\n"
8438 "\n"
8439 msgstr ""
8440
8441 # type: textblock
8442 #: ../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
8443 msgid ""
8444 "This function should only be called with a root device string as returned by "
8445 "C<guestfs_inspect_os>."
8446 msgstr ""
8447
8448 # type: textblock
8449 #: ../src/guestfs-actions.pod:2496
8450 msgid ""
8451 "This returns the architecture of the inspected operating system.  The "
8452 "possible return values are listed under C<guestfs_file_architecture>."
8453 msgstr ""
8454
8455 # type: textblock
8456 #: ../src/guestfs-actions.pod:2500 ../fish/guestfish-actions.pod:1684
8457 msgid ""
8458 "If the architecture could not be determined, then the string C<unknown> is "
8459 "returned."
8460 msgstr ""
8461
8462 # type: textblock
8463 #: ../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
8464 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
8465 msgstr ""
8466
8467 # type: =head2
8468 #: ../src/guestfs-actions.pod:2510
8469 msgid "guestfs_inspect_get_distro"
8470 msgstr ""
8471
8472 # type: verbatim
8473 #: ../src/guestfs-actions.pod:2512
8474 #, no-wrap
8475 msgid ""
8476 " char *\n"
8477 " guestfs_inspect_get_distro (guestfs_h *g,\n"
8478 "                             const char *root);\n"
8479 "\n"
8480 msgstr ""
8481
8482 # type: textblock
8483 #: ../src/guestfs-actions.pod:2519 ../fish/guestfish-actions.pod:1696
8484 msgid "This returns the distro (distribution) of the inspected operating system."
8485 msgstr ""
8486
8487 # type: textblock
8488 #: ../src/guestfs-actions.pod:2522 ../fish/guestfish-actions.pod:1699
8489 msgid "Currently defined distros are:"
8490 msgstr ""
8491
8492 # type: =item
8493 #: ../src/guestfs-actions.pod:2526 ../fish/guestfish-actions.pod:1703
8494 msgid "\"archlinux\""
8495 msgstr ""
8496
8497 # type: textblock
8498 #: ../src/guestfs-actions.pod:2528 ../fish/guestfish-actions.pod:1705
8499 msgid "Arch Linux."
8500 msgstr ""
8501
8502 # type: =item
8503 #: ../src/guestfs-actions.pod:2530 ../fish/guestfish-actions.pod:1707
8504 msgid "\"debian\""
8505 msgstr ""
8506
8507 # type: textblock
8508 #: ../src/guestfs-actions.pod:2532 ../fish/guestfish-actions.pod:1709
8509 msgid "Debian."
8510 msgstr ""
8511
8512 # type: =item
8513 #: ../src/guestfs-actions.pod:2534 ../fish/guestfish-actions.pod:1711
8514 msgid "\"fedora\""
8515 msgstr ""
8516
8517 # type: textblock
8518 #: ../src/guestfs-actions.pod:2536 ../fish/guestfish-actions.pod:1713
8519 msgid "Fedora."
8520 msgstr ""
8521
8522 # type: =item
8523 #: ../src/guestfs-actions.pod:2538 ../fish/guestfish-actions.pod:1715
8524 msgid "\"gentoo\""
8525 msgstr ""
8526
8527 # type: textblock
8528 #: ../src/guestfs-actions.pod:2540 ../fish/guestfish-actions.pod:1717
8529 msgid "Gentoo."
8530 msgstr ""
8531
8532 # type: =item
8533 #: ../src/guestfs-actions.pod:2542 ../fish/guestfish-actions.pod:1719
8534 msgid "\"linuxmint\""
8535 msgstr ""
8536
8537 # type: textblock
8538 #: ../src/guestfs-actions.pod:2544 ../fish/guestfish-actions.pod:1721
8539 msgid "Linux Mint."
8540 msgstr ""
8541
8542 # type: =item
8543 #: ../src/guestfs-actions.pod:2546 ../fish/guestfish-actions.pod:1723
8544 msgid "\"mandriva\""
8545 msgstr ""
8546
8547 # type: textblock
8548 #: ../src/guestfs-actions.pod:2548 ../fish/guestfish-actions.pod:1725
8549 msgid "Mandriva."
8550 msgstr ""
8551
8552 # type: =item
8553 #: ../src/guestfs-actions.pod:2550 ../fish/guestfish-actions.pod:1727
8554 msgid "\"meego\""
8555 msgstr ""
8556
8557 # type: textblock
8558 #: ../src/guestfs-actions.pod:2552 ../fish/guestfish-actions.pod:1729
8559 msgid "MeeGo."
8560 msgstr ""
8561
8562 # type: =item
8563 #: ../src/guestfs-actions.pod:2554 ../fish/guestfish-actions.pod:1731
8564 msgid "\"pardus\""
8565 msgstr ""
8566
8567 # type: textblock
8568 #: ../src/guestfs-actions.pod:2556 ../fish/guestfish-actions.pod:1733
8569 msgid "Pardus."
8570 msgstr ""
8571
8572 # type: =item
8573 #: ../src/guestfs-actions.pod:2558 ../fish/guestfish-actions.pod:1735
8574 msgid "\"redhat-based\""
8575 msgstr ""
8576
8577 # type: textblock
8578 #: ../src/guestfs-actions.pod:2560 ../fish/guestfish-actions.pod:1737
8579 msgid "Some Red Hat-derived distro."
8580 msgstr ""
8581
8582 # type: =item
8583 #: ../src/guestfs-actions.pod:2562 ../fish/guestfish-actions.pod:1739
8584 msgid "\"rhel\""
8585 msgstr ""
8586
8587 # type: textblock
8588 #: ../src/guestfs-actions.pod:2564 ../fish/guestfish-actions.pod:1741
8589 msgid "Red Hat Enterprise Linux and some derivatives."
8590 msgstr ""
8591
8592 # type: =item
8593 #: ../src/guestfs-actions.pod:2566 ../fish/guestfish-actions.pod:1743
8594 msgid "\"ubuntu\""
8595 msgstr ""
8596
8597 # type: textblock
8598 #: ../src/guestfs-actions.pod:2568 ../fish/guestfish-actions.pod:1745
8599 msgid "Ubuntu."
8600 msgstr ""
8601
8602 # type: =item
8603 #: ../src/guestfs-actions.pod:2570 ../src/guestfs-actions.pod:2850 ../fish/guestfish-actions.pod:1747 ../fish/guestfish-actions.pod:1955
8604 msgid "\"unknown\""
8605 msgstr ""
8606
8607 # type: textblock
8608 #: ../src/guestfs-actions.pod:2572 ../fish/guestfish-actions.pod:1749
8609 msgid "The distro could not be determined."
8610 msgstr ""
8611
8612 # type: =item
8613 #: ../src/guestfs-actions.pod:2574 ../src/guestfs-actions.pod:2842 ../fish/guestfish-actions.pod:1751 ../fish/guestfish-actions.pod:1947
8614 msgid "\"windows\""
8615 msgstr ""
8616
8617 # type: textblock
8618 #: ../src/guestfs-actions.pod:2576 ../fish/guestfish-actions.pod:1753
8619 msgid ""
8620 "Windows does not have distributions.  This string is returned if the OS type "
8621 "is Windows."
8622 msgstr ""
8623
8624 # type: textblock
8625 #: ../src/guestfs-actions.pod:2581 ../src/guestfs-actions.pod:2856 ../fish/guestfish-actions.pod:1758 ../fish/guestfish-actions.pod:1961
8626 msgid ""
8627 "Future versions of libguestfs may return other strings here.  The caller "
8628 "should be prepared to handle any string."
8629 msgstr ""
8630
8631 # type: =head2
8632 #: ../src/guestfs-actions.pod:2591
8633 msgid "guestfs_inspect_get_filesystems"
8634 msgstr ""
8635
8636 # type: verbatim
8637 #: ../src/guestfs-actions.pod:2593
8638 #, no-wrap
8639 msgid ""
8640 " char **\n"
8641 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
8642 "                                  const char *root);\n"
8643 "\n"
8644 msgstr ""
8645
8646 # type: textblock
8647 #: ../src/guestfs-actions.pod:2600 ../fish/guestfish-actions.pod:1770
8648 msgid ""
8649 "This returns a list of all the filesystems that we think are associated with "
8650 "this operating system.  This includes the root filesystem, other ordinary "
8651 "filesystems, and non-mounted devices like swap partitions."
8652 msgstr ""
8653
8654 # type: textblock
8655 #: ../src/guestfs-actions.pod:2605 ../fish/guestfish-actions.pod:1775
8656 msgid ""
8657 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
8658 "to be shared between operating systems."
8659 msgstr ""
8660
8661 # type: textblock
8662 #: ../src/guestfs-actions.pod:2608
8663 msgid ""
8664 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
8665 "C<guestfs_inspect_get_mountpoints>."
8666 msgstr ""
8667
8668 # type: =head2
8669 #: ../src/guestfs-actions.pod:2617
8670 msgid "guestfs_inspect_get_hostname"
8671 msgstr ""
8672
8673 # type: verbatim
8674 #: ../src/guestfs-actions.pod:2619
8675 #, no-wrap
8676 msgid ""
8677 " char *\n"
8678 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
8679 "                               const char *root);\n"
8680 "\n"
8681 msgstr ""
8682
8683 # type: textblock
8684 #: ../src/guestfs-actions.pod:2626 ../fish/guestfish-actions.pod:1788
8685 msgid ""
8686 "This function returns the hostname of the operating system as found by "
8687 "inspection of the guest's configuration files."
8688 msgstr ""
8689
8690 # type: textblock
8691 #: ../src/guestfs-actions.pod:2629 ../fish/guestfish-actions.pod:1791
8692 msgid ""
8693 "If the hostname could not be determined, then the string C<unknown> is "
8694 "returned."
8695 msgstr ""
8696
8697 # type: textblock
8698 #: ../src/guestfs-actions.pod:2637
8699 msgid "(Added in 1.7.9)"
8700 msgstr ""
8701
8702 # type: =head2
8703 #: ../src/guestfs-actions.pod:2639
8704 msgid "guestfs_inspect_get_major_version"
8705 msgstr ""
8706
8707 # type: verbatim
8708 #: ../src/guestfs-actions.pod:2641
8709 #, no-wrap
8710 msgid ""
8711 " int\n"
8712 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
8713 "                                    const char *root);\n"
8714 "\n"
8715 msgstr ""
8716
8717 # type: textblock
8718 #: ../src/guestfs-actions.pod:2648 ../fish/guestfish-actions.pod:1803
8719 msgid "This returns the major version number of the inspected operating system."
8720 msgstr ""
8721
8722 # type: textblock
8723 #: ../src/guestfs-actions.pod:2651 ../fish/guestfish-actions.pod:1806
8724 msgid ""
8725 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
8726 "popular public names used by the operating system.  Notably the operating "
8727 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
8728 "1).  You can find out the real versions corresponding to releases of Windows "
8729 "by consulting Wikipedia or MSDN."
8730 msgstr ""
8731
8732 # type: textblock
8733 #: ../src/guestfs-actions.pod:2658 ../src/guestfs-actions.pod:2678 ../fish/guestfish-actions.pod:1813 ../fish/guestfish-actions.pod:1827
8734 msgid "If the version could not be determined, then C<0> is returned."
8735 msgstr ""
8736
8737 # type: =head2
8738 #: ../src/guestfs-actions.pod:2666
8739 msgid "guestfs_inspect_get_minor_version"
8740 msgstr ""
8741
8742 # type: verbatim
8743 #: ../src/guestfs-actions.pod:2668
8744 #, no-wrap
8745 msgid ""
8746 " int\n"
8747 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
8748 "                                    const char *root);\n"
8749 "\n"
8750 msgstr ""
8751
8752 # type: textblock
8753 #: ../src/guestfs-actions.pod:2675 ../fish/guestfish-actions.pod:1824
8754 msgid "This returns the minor version number of the inspected operating system."
8755 msgstr ""
8756
8757 # type: textblock
8758 #: ../src/guestfs-actions.pod:2680
8759 msgid ""
8760 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
8761 "C<guestfs_inspect_get_major_version>."
8762 msgstr ""
8763
8764 # type: =head2
8765 #: ../src/guestfs-actions.pod:2687
8766 msgid "guestfs_inspect_get_mountpoints"
8767 msgstr ""
8768
8769 # type: verbatim
8770 #: ../src/guestfs-actions.pod:2689
8771 #, no-wrap
8772 msgid ""
8773 " char **\n"
8774 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
8775 "                                  const char *root);\n"
8776 "\n"
8777 msgstr ""
8778
8779 # type: textblock
8780 #: ../src/guestfs-actions.pod:2696 ../fish/guestfish-actions.pod:1839
8781 msgid ""
8782 "This returns a hash of where we think the filesystems associated with this "
8783 "operating system should be mounted.  Callers should note that this is at "
8784 "best an educated guess made by reading configuration files such as "
8785 "C</etc/fstab>."
8786 msgstr ""
8787
8788 # type: textblock
8789 #: ../src/guestfs-actions.pod:2701 ../fish/guestfish-actions.pod:1844
8790 msgid ""
8791 "Each element in the returned hashtable has a key which is the path of the "
8792 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
8793 "mounted there (eg. C</dev/sda1>)."
8794 msgstr ""
8795
8796 # type: textblock
8797 #: ../src/guestfs-actions.pod:2706 ../fish/guestfish-actions.pod:1849
8798 msgid "Non-mounted devices such as swap devices are I<not> returned in this list."
8799 msgstr ""
8800
8801 # type: textblock
8802 #: ../src/guestfs-actions.pod:2709
8803 msgid ""
8804 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
8805 "C<guestfs_inspect_get_filesystems>."
8806 msgstr ""
8807
8808 # type: textblock
8809 #: ../src/guestfs-actions.pod:2712 ../src/guestfs-actions.pod:3356 ../src/guestfs-actions.pod:4550 ../src/guestfs-actions.pod:6406
8810 msgid ""
8811 "This function returns a NULL-terminated array of strings, or NULL if there "
8812 "was an error.  The array of strings will always have length C<2n+1>, where "
8813 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
8814 "caller must free the strings and the array after use>."
8815 msgstr ""
8816
8817 # type: =head2
8818 #: ../src/guestfs-actions.pod:2720
8819 msgid "guestfs_inspect_get_package_format"
8820 msgstr ""
8821
8822 # type: verbatim
8823 #: ../src/guestfs-actions.pod:2722
8824 #, no-wrap
8825 msgid ""
8826 " char *\n"
8827 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
8828 "                                     const char *root);\n"
8829 "\n"
8830 msgstr ""
8831
8832 # type: textblock
8833 #: ../src/guestfs-actions.pod:2729
8834 msgid ""
8835 "This function and C<guestfs_inspect_get_package_management> return the "
8836 "package format and package management tool used by the inspected operating "
8837 "system.  For example for Fedora these functions would return C<rpm> (package "
8838 "format) and C<yum> (package management)."
8839 msgstr ""
8840
8841 # type: textblock
8842 #: ../src/guestfs-actions.pod:2735 ../fish/guestfish-actions.pod:1868
8843 msgid ""
8844 "This returns the string C<unknown> if we could not determine the package "
8845 "format I<or> if the operating system does not have a real packaging system "
8846 "(eg. Windows)."
8847 msgstr ""
8848
8849 # type: textblock
8850 #: ../src/guestfs-actions.pod:2739 ../fish/guestfish-actions.pod:1872
8851 msgid ""
8852 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>.  "
8853 "Future versions of libguestfs may return other strings."
8854 msgstr ""
8855
8856 # type: textblock
8857 #: ../src/guestfs-actions.pod:2747 ../src/guestfs-actions.pod:2778
8858 msgid "(Added in 1.7.5)"
8859 msgstr ""
8860
8861 # type: =head2
8862 #: ../src/guestfs-actions.pod:2749
8863 msgid "guestfs_inspect_get_package_management"
8864 msgstr ""
8865
8866 # type: verbatim
8867 #: ../src/guestfs-actions.pod:2751
8868 #, no-wrap
8869 msgid ""
8870 " char *\n"
8871 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
8872 "                                         const char *root);\n"
8873 "\n"
8874 msgstr ""
8875
8876 # type: textblock
8877 #: ../src/guestfs-actions.pod:2758
8878 msgid ""
8879 "C<guestfs_inspect_get_package_format> and this function return the package "
8880 "format and package management tool used by the inspected operating system.  "
8881 "For example for Fedora these functions would return C<rpm> (package format) "
8882 "and C<yum> (package management)."
8883 msgstr ""
8884
8885 # type: textblock
8886 #: ../src/guestfs-actions.pod:2764 ../fish/guestfish-actions.pod:1890
8887 msgid ""
8888 "This returns the string C<unknown> if we could not determine the package "
8889 "management tool I<or> if the operating system does not have a real packaging "
8890 "system (eg. Windows)."
8891 msgstr ""
8892
8893 # type: textblock
8894 #: ../src/guestfs-actions.pod:2768 ../fish/guestfish-actions.pod:1894
8895 msgid ""
8896 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
8897 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>.  Future versions of "
8898 "libguestfs may return other strings."
8899 msgstr ""
8900
8901 # type: =head2
8902 #: ../src/guestfs-actions.pod:2780
8903 msgid "guestfs_inspect_get_product_name"
8904 msgstr ""
8905
8906 # type: verbatim
8907 #: ../src/guestfs-actions.pod:2782
8908 #, no-wrap
8909 msgid ""
8910 " char *\n"
8911 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
8912 "                                   const char *root);\n"
8913 "\n"
8914 msgstr ""
8915
8916 # type: textblock
8917 #: ../src/guestfs-actions.pod:2789 ../fish/guestfish-actions.pod:1908
8918 msgid ""
8919 "This returns the product name of the inspected operating system.  The "
8920 "product name is generally some freeform string which can be displayed to the "
8921 "user, but should not be parsed by programs."
8922 msgstr ""
8923
8924 # type: textblock
8925 #: ../src/guestfs-actions.pod:2794 ../fish/guestfish-actions.pod:1913
8926 msgid ""
8927 "If the product name could not be determined, then the string C<unknown> is "
8928 "returned."
8929 msgstr ""
8930
8931 # type: =head2
8932 #: ../src/guestfs-actions.pod:2804
8933 msgid "guestfs_inspect_get_roots"
8934 msgstr ""
8935
8936 # type: verbatim
8937 #: ../src/guestfs-actions.pod:2806
8938 #, no-wrap
8939 msgid ""
8940 " char **\n"
8941 " guestfs_inspect_get_roots (guestfs_h *g);\n"
8942 "\n"
8943 msgstr ""
8944
8945 # type: textblock
8946 #: ../src/guestfs-actions.pod:2809
8947 msgid ""
8948 "This function is a convenient way to get the list of root devices, as "
8949 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
8950 "the whole inspection process."
8951 msgstr ""
8952
8953 # type: textblock
8954 #: ../src/guestfs-actions.pod:2813
8955 msgid ""
8956 "This returns an empty list if either no root devices were found or the "
8957 "caller has not called C<guestfs_inspect_os>."
8958 msgstr ""
8959
8960 # type: textblock
8961 #: ../src/guestfs-actions.pod:2822
8962 msgid "(Added in 1.7.3)"
8963 msgstr ""
8964
8965 # type: =head2
8966 #: ../src/guestfs-actions.pod:2824
8967 msgid "guestfs_inspect_get_type"
8968 msgstr ""
8969
8970 # type: verbatim
8971 #: ../src/guestfs-actions.pod:2826
8972 #, no-wrap
8973 msgid ""
8974 " char *\n"
8975 " guestfs_inspect_get_type (guestfs_h *g,\n"
8976 "                           const char *root);\n"
8977 "\n"
8978 msgstr ""
8979
8980 # type: textblock
8981 #: ../src/guestfs-actions.pod:2833 ../fish/guestfish-actions.pod:1938
8982 msgid ""
8983 "This returns the type of the inspected operating system.  Currently defined "
8984 "types are:"
8985 msgstr ""
8986
8987 # type: =item
8988 #: ../src/guestfs-actions.pod:2838 ../fish/guestfish-actions.pod:1943
8989 msgid "\"linux\""
8990 msgstr ""
8991
8992 # type: textblock
8993 #: ../src/guestfs-actions.pod:2840 ../fish/guestfish-actions.pod:1945
8994 msgid "Any Linux-based operating system."
8995 msgstr ""
8996
8997 # type: textblock
8998 #: ../src/guestfs-actions.pod:2844 ../fish/guestfish-actions.pod:1949
8999 msgid "Any Microsoft Windows operating system."
9000 msgstr ""
9001
9002 # type: =item
9003 #: ../src/guestfs-actions.pod:2846 ../fish/guestfish-actions.pod:1951
9004 msgid "\"freebsd\""
9005 msgstr ""
9006
9007 # type: textblock
9008 #: ../src/guestfs-actions.pod:2848 ../fish/guestfish-actions.pod:1953
9009 msgid "FreeBSD."
9010 msgstr ""
9011
9012 # type: textblock
9013 #: ../src/guestfs-actions.pod:2852 ../fish/guestfish-actions.pod:1957
9014 msgid "The operating system type could not be determined."
9015 msgstr ""
9016
9017 # type: =head2
9018 #: ../src/guestfs-actions.pod:2866
9019 msgid "guestfs_inspect_get_windows_systemroot"
9020 msgstr ""
9021
9022 # type: verbatim
9023 #: ../src/guestfs-actions.pod:2868
9024 #, no-wrap
9025 msgid ""
9026 " char *\n"
9027 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
9028 "                                         const char *root);\n"
9029 "\n"
9030 msgstr ""
9031
9032 # type: textblock
9033 #: ../src/guestfs-actions.pod:2875 ../fish/guestfish-actions.pod:1973
9034 msgid ""
9035 "This returns the Windows systemroot of the inspected guest.  The systemroot "
9036 "is a directory path such as C</WINDOWS>."
9037 msgstr ""
9038
9039 # type: textblock
9040 #: ../src/guestfs-actions.pod:2878 ../fish/guestfish-actions.pod:1976
9041 msgid ""
9042 "This call assumes that the guest is Windows and that the systemroot could be "
9043 "determined by inspection.  If this is not the case then an error is "
9044 "returned."
9045 msgstr ""
9046
9047 # type: textblock
9048 #: ../src/guestfs-actions.pod:2887
9049 msgid "(Added in 1.5.25)"
9050 msgstr ""
9051
9052 # type: =head2
9053 #: ../src/guestfs-actions.pod:2889
9054 msgid "guestfs_inspect_list_applications"
9055 msgstr ""
9056
9057 # type: verbatim
9058 #: ../src/guestfs-actions.pod:2891
9059 #, no-wrap
9060 msgid ""
9061 " struct guestfs_application_list *\n"
9062 " guestfs_inspect_list_applications (guestfs_h *g,\n"
9063 "                                    const char *root);\n"
9064 "\n"
9065 msgstr ""
9066
9067 # type: textblock
9068 #: ../src/guestfs-actions.pod:2898 ../fish/guestfish-actions.pod:1989
9069 msgid "Return the list of applications installed in the operating system."
9070 msgstr ""
9071
9072 # type: textblock
9073 #: ../src/guestfs-actions.pod:2900
9074 msgid ""
9075 "I<Note:> This call works differently from other parts of the inspection "
9076 "API.  You have to call C<guestfs_inspect_os>, then "
9077 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
9078 "this.  Listing applications is a significantly more difficult operation "
9079 "which requires access to the full filesystem.  Also note that unlike the "
9080 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
9081 "the libguestfs handle, this call actually reads parts of the mounted "
9082 "filesystems during the call."
9083 msgstr ""
9084
9085 # type: textblock
9086 #: ../src/guestfs-actions.pod:2910 ../fish/guestfish-actions.pod:2001
9087 msgid ""
9088 "This returns an empty list if the inspection code was not able to determine "
9089 "the list of applications."
9090 msgstr ""
9091
9092 # type: textblock
9093 #: ../src/guestfs-actions.pod:2913 ../fish/guestfish-actions.pod:2004
9094 msgid "The application structure contains the following fields:"
9095 msgstr ""
9096
9097 # type: =item
9098 #: ../src/guestfs-actions.pod:2917 ../fish/guestfish-actions.pod:2008
9099 msgid "C<app_name>"
9100 msgstr ""
9101
9102 # type: textblock
9103 #: ../src/guestfs-actions.pod:2919 ../fish/guestfish-actions.pod:2010
9104 msgid ""
9105 "The name of the application.  For Red Hat-derived and Debian-derived Linux "
9106 "guests, this is the package name."
9107 msgstr ""
9108
9109 # type: =item
9110 #: ../src/guestfs-actions.pod:2922 ../fish/guestfish-actions.pod:2013
9111 msgid "C<app_display_name>"
9112 msgstr ""
9113
9114 # type: textblock
9115 #: ../src/guestfs-actions.pod:2924 ../fish/guestfish-actions.pod:2015
9116 msgid ""
9117 "The display name of the application, sometimes localized to the install "
9118 "language of the guest operating system."
9119 msgstr ""
9120
9121 # type: textblock
9122 #: ../src/guestfs-actions.pod:2927 ../fish/guestfish-actions.pod:2018
9123 msgid ""
9124 "If unavailable this is returned as an empty string C<\"\">.  Callers needing "
9125 "to display something can use C<app_name> instead."
9126 msgstr ""
9127
9128 # type: =item
9129 #: ../src/guestfs-actions.pod:2930 ../fish/guestfish-actions.pod:2021
9130 msgid "C<app_epoch>"
9131 msgstr ""
9132
9133 # type: textblock
9134 #: ../src/guestfs-actions.pod:2932 ../fish/guestfish-actions.pod:2023
9135 msgid ""
9136 "For package managers which use epochs, this contains the epoch of the "
9137 "package (an integer).  If unavailable, this is returned as C<0>."
9138 msgstr ""
9139
9140 # type: =item
9141 #: ../src/guestfs-actions.pod:2935 ../fish/guestfish-actions.pod:2026
9142 msgid "C<app_version>"
9143 msgstr ""
9144
9145 # type: textblock
9146 #: ../src/guestfs-actions.pod:2937 ../fish/guestfish-actions.pod:2028
9147 msgid ""
9148 "The version string of the application or package.  If unavailable this is "
9149 "returned as an empty string C<\"\">."
9150 msgstr ""
9151
9152 # type: =item
9153 #: ../src/guestfs-actions.pod:2940 ../fish/guestfish-actions.pod:2031
9154 msgid "C<app_release>"
9155 msgstr ""
9156
9157 # type: textblock
9158 #: ../src/guestfs-actions.pod:2942 ../fish/guestfish-actions.pod:2033
9159 msgid ""
9160 "The release string of the application or package, for package managers that "
9161 "use this.  If unavailable this is returned as an empty string C<\"\">."
9162 msgstr ""
9163
9164 # type: =item
9165 #: ../src/guestfs-actions.pod:2946 ../fish/guestfish-actions.pod:2037
9166 msgid "C<app_install_path>"
9167 msgstr ""
9168
9169 # type: textblock
9170 #: ../src/guestfs-actions.pod:2948 ../fish/guestfish-actions.pod:2039
9171 msgid ""
9172 "The installation path of the application (on operating systems such as "
9173 "Windows which use installation paths).  This path is in the format used by "
9174 "the guest operating system, it is not a libguestfs path."
9175 msgstr ""
9176
9177 # type: textblock
9178 #: ../src/guestfs-actions.pod:2953 ../fish/guestfish-actions.pod:2044
9179 msgid "If unavailable this is returned as an empty string C<\"\">."
9180 msgstr ""
9181
9182 # type: =item
9183 #: ../src/guestfs-actions.pod:2955 ../fish/guestfish-actions.pod:2046
9184 msgid "C<app_trans_path>"
9185 msgstr ""
9186
9187 # type: textblock
9188 #: ../src/guestfs-actions.pod:2957 ../fish/guestfish-actions.pod:2048
9189 msgid ""
9190 "The install path translated into a libguestfs path.  If unavailable this is "
9191 "returned as an empty string C<\"\">."
9192 msgstr ""
9193
9194 # type: =item
9195 #: ../src/guestfs-actions.pod:2960 ../fish/guestfish-actions.pod:2051
9196 msgid "C<app_publisher>"
9197 msgstr ""
9198
9199 # type: textblock
9200 #: ../src/guestfs-actions.pod:2962 ../fish/guestfish-actions.pod:2053
9201 msgid ""
9202 "The name of the publisher of the application, for package managers that use "
9203 "this.  If unavailable this is returned as an empty string C<\"\">."
9204 msgstr ""
9205
9206 # type: =item
9207 #: ../src/guestfs-actions.pod:2966 ../fish/guestfish-actions.pod:2057
9208 msgid "C<app_url>"
9209 msgstr ""
9210
9211 # type: textblock
9212 #: ../src/guestfs-actions.pod:2968 ../fish/guestfish-actions.pod:2059
9213 msgid ""
9214 "The URL (eg. upstream URL) of the application.  If unavailable this is "
9215 "returned as an empty string C<\"\">."
9216 msgstr ""
9217
9218 # type: =item
9219 #: ../src/guestfs-actions.pod:2971 ../fish/guestfish-actions.pod:2062
9220 msgid "C<app_source_package>"
9221 msgstr ""
9222
9223 # type: textblock
9224 #: ../src/guestfs-actions.pod:2973 ../fish/guestfish-actions.pod:2064
9225 msgid ""
9226 "For packaging systems which support this, the name of the source package.  "
9227 "If unavailable this is returned as an empty string C<\"\">."
9228 msgstr ""
9229
9230 # type: =item
9231 #: ../src/guestfs-actions.pod:2976 ../fish/guestfish-actions.pod:2067
9232 msgid "C<app_summary>"
9233 msgstr ""
9234
9235 # type: textblock
9236 #: ../src/guestfs-actions.pod:2978 ../fish/guestfish-actions.pod:2069
9237 msgid ""
9238 "A short (usually one line) description of the application or package.  If "
9239 "unavailable this is returned as an empty string C<\"\">."
9240 msgstr ""
9241
9242 # type: =item
9243 #: ../src/guestfs-actions.pod:2981 ../fish/guestfish-actions.pod:2072
9244 msgid "C<app_description>"
9245 msgstr ""
9246
9247 # type: textblock
9248 #: ../src/guestfs-actions.pod:2983 ../fish/guestfish-actions.pod:2074
9249 msgid ""
9250 "A longer description of the application or package.  If unavailable this is "
9251 "returned as an empty string C<\"\">."
9252 msgstr ""
9253
9254 # type: textblock
9255 #: ../src/guestfs-actions.pod:2990
9256 msgid ""
9257 "This function returns a C<struct guestfs_application_list *>, or NULL if "
9258 "there was an error.  I<The caller must call C<guestfs_free_application_list> "
9259 "after use>."
9260 msgstr ""
9261
9262 # type: textblock
9263 #: ../src/guestfs-actions.pod:2994
9264 msgid "(Added in 1.7.8)"
9265 msgstr ""
9266
9267 # type: =head2
9268 #: ../src/guestfs-actions.pod:2996
9269 msgid "guestfs_inspect_os"
9270 msgstr ""
9271
9272 # type: verbatim
9273 #: ../src/guestfs-actions.pod:2998
9274 #, no-wrap
9275 msgid ""
9276 " char **\n"
9277 " guestfs_inspect_os (guestfs_h *g);\n"
9278 "\n"
9279 msgstr ""
9280
9281 # type: textblock
9282 #: ../src/guestfs-actions.pod:3001 ../fish/guestfish-actions.pod:2085
9283 msgid ""
9284 "This function uses other libguestfs functions and certain heuristics to "
9285 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
9286 "for operating systems."
9287 msgstr ""
9288
9289 # type: textblock
9290 #: ../src/guestfs-actions.pod:3005 ../fish/guestfish-actions.pod:2089
9291 msgid "The list returned is empty if no operating systems were found."
9292 msgstr ""
9293
9294 # type: textblock
9295 #: ../src/guestfs-actions.pod:3007 ../fish/guestfish-actions.pod:2091
9296 msgid ""
9297 "If one operating system was found, then this returns a list with a single "
9298 "element, which is the name of the root filesystem of this operating system.  "
9299 "It is also possible for this function to return a list containing more than "
9300 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
9301 "element being the root filesystem of one of the operating systems."
9302 msgstr ""
9303
9304 # type: textblock
9305 #: ../src/guestfs-actions.pod:3014
9306 msgid ""
9307 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
9308 "functions in order to query further information about each operating system, "
9309 "such as the name and version."
9310 msgstr ""
9311
9312 # type: textblock
9313 #: ../src/guestfs-actions.pod:3019
9314 msgid ""
9315 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
9316 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
9317 "the contents.  This should be called with no disks currently mounted.  The "
9318 "function may also use Augeas, so any existing Augeas handle will be closed."
9319 msgstr ""
9320
9321 # type: textblock
9322 #: ../src/guestfs-actions.pod:3025 ../fish/guestfish-actions.pod:2109
9323 msgid ""
9324 "This function cannot decrypt encrypted disks.  The caller must do that first "
9325 "(supplying the necessary keys) if the disk is encrypted."
9326 msgstr ""
9327
9328 # type: textblock
9329 #: ../src/guestfs-actions.pod:3031 ../src/guestfs-actions.pod:3314 ../src/guestfs-actions.pod:3376
9330 msgid "See also C<guestfs_list_filesystems>."
9331 msgstr ""
9332
9333 # type: =head2
9334 #: ../src/guestfs-actions.pod:3039
9335 msgid "guestfs_is_blockdev"
9336 msgstr ""
9337
9338 # type: verbatim
9339 #: ../src/guestfs-actions.pod:3041
9340 #, no-wrap
9341 msgid ""
9342 " int\n"
9343 " guestfs_is_blockdev (guestfs_h *g,\n"
9344 "                      const char *path);\n"
9345 "\n"
9346 msgstr ""
9347
9348 # type: textblock
9349 #: ../src/guestfs-actions.pod:3045 ../fish/guestfish-actions.pod:2121
9350 msgid ""
9351 "This returns C<true> if and only if there is a block device with the given "
9352 "C<path> name."
9353 msgstr ""
9354
9355 # type: textblock
9356 #: ../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
9357 msgid "See also C<guestfs_stat>."
9358 msgstr ""
9359
9360 # type: textblock
9361 #: ../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
9362 msgid "(Added in 1.5.10)"
9363 msgstr ""
9364
9365 # type: =head2
9366 #: ../src/guestfs-actions.pod:3054
9367 msgid "guestfs_is_busy"
9368 msgstr ""
9369
9370 # type: verbatim
9371 #: ../src/guestfs-actions.pod:3056
9372 #, no-wrap
9373 msgid ""
9374 " int\n"
9375 " guestfs_is_busy (guestfs_h *g);\n"
9376 "\n"
9377 msgstr ""
9378
9379 # type: textblock
9380 #: ../src/guestfs-actions.pod:3059 ../fish/guestfish-actions.pod:2130
9381 msgid ""
9382 "This returns true iff this handle is busy processing a command (in the "
9383 "C<BUSY> state)."
9384 msgstr ""
9385
9386 # type: =head2
9387 #: ../src/guestfs-actions.pod:3068
9388 msgid "guestfs_is_chardev"
9389 msgstr ""
9390
9391 # type: verbatim
9392 #: ../src/guestfs-actions.pod:3070
9393 #, no-wrap
9394 msgid ""
9395 " int\n"
9396 " guestfs_is_chardev (guestfs_h *g,\n"
9397 "                     const char *path);\n"
9398 "\n"
9399 msgstr ""
9400
9401 # type: textblock
9402 #: ../src/guestfs-actions.pod:3074 ../fish/guestfish-actions.pod:2139
9403 msgid ""
9404 "This returns C<true> if and only if there is a character device with the "
9405 "given C<path> name."
9406 msgstr ""
9407
9408 # type: =head2
9409 #: ../src/guestfs-actions.pod:3083
9410 msgid "guestfs_is_config"
9411 msgstr ""
9412
9413 # type: verbatim
9414 #: ../src/guestfs-actions.pod:3085
9415 #, no-wrap
9416 msgid ""
9417 " int\n"
9418 " guestfs_is_config (guestfs_h *g);\n"
9419 "\n"
9420 msgstr ""
9421
9422 # type: textblock
9423 #: ../src/guestfs-actions.pod:3088 ../fish/guestfish-actions.pod:2148
9424 msgid ""
9425 "This returns true iff this handle is being configured (in the C<CONFIG> "
9426 "state)."
9427 msgstr ""
9428
9429 # type: =head2
9430 #: ../src/guestfs-actions.pod:3097
9431 msgid "guestfs_is_dir"
9432 msgstr ""
9433
9434 # type: verbatim
9435 #: ../src/guestfs-actions.pod:3099
9436 #, no-wrap
9437 msgid ""
9438 " int\n"
9439 " guestfs_is_dir (guestfs_h *g,\n"
9440 "                 const char *path);\n"
9441 "\n"
9442 msgstr ""
9443
9444 # type: textblock
9445 #: ../src/guestfs-actions.pod:3103 ../fish/guestfish-actions.pod:2157
9446 msgid ""
9447 "This returns C<true> if and only if there is a directory with the given "
9448 "C<path> name.  Note that it returns false for other objects like files."
9449 msgstr ""
9450
9451 # type: =head2
9452 #: ../src/guestfs-actions.pod:3113
9453 msgid "guestfs_is_fifo"
9454 msgstr ""
9455
9456 # type: verbatim
9457 #: ../src/guestfs-actions.pod:3115
9458 #, no-wrap
9459 msgid ""
9460 " int\n"
9461 " guestfs_is_fifo (guestfs_h *g,\n"
9462 "                  const char *path);\n"
9463 "\n"
9464 msgstr ""
9465
9466 # type: textblock
9467 #: ../src/guestfs-actions.pod:3119 ../fish/guestfish-actions.pod:2167
9468 msgid ""
9469 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
9470 "given C<path> name."
9471 msgstr ""
9472
9473 # type: =head2
9474 #: ../src/guestfs-actions.pod:3128
9475 msgid "guestfs_is_file"
9476 msgstr ""
9477
9478 # type: verbatim
9479 #: ../src/guestfs-actions.pod:3130
9480 #, no-wrap
9481 msgid ""
9482 " int\n"
9483 " guestfs_is_file (guestfs_h *g,\n"
9484 "                  const char *path);\n"
9485 "\n"
9486 msgstr ""
9487
9488 # type: textblock
9489 #: ../src/guestfs-actions.pod:3134 ../fish/guestfish-actions.pod:2176
9490 msgid ""
9491 "This returns C<true> if and only if there is a regular file with the given "
9492 "C<path> name.  Note that it returns false for other objects like "
9493 "directories."
9494 msgstr ""
9495
9496 # type: =head2
9497 #: ../src/guestfs-actions.pod:3144
9498 msgid "guestfs_is_launching"
9499 msgstr ""
9500
9501 # type: verbatim
9502 #: ../src/guestfs-actions.pod:3146
9503 #, no-wrap
9504 msgid ""
9505 " int\n"
9506 " guestfs_is_launching (guestfs_h *g);\n"
9507 "\n"
9508 msgstr ""
9509
9510 # type: textblock
9511 #: ../src/guestfs-actions.pod:3149 ../fish/guestfish-actions.pod:2186
9512 msgid ""
9513 "This returns true iff this handle is launching the subprocess (in the "
9514 "C<LAUNCHING> state)."
9515 msgstr ""
9516
9517 # type: =head2
9518 #: ../src/guestfs-actions.pod:3158
9519 msgid "guestfs_is_lv"
9520 msgstr ""
9521
9522 # type: verbatim
9523 #: ../src/guestfs-actions.pod:3160
9524 #, no-wrap
9525 msgid ""
9526 " int\n"
9527 " guestfs_is_lv (guestfs_h *g,\n"
9528 "                const char *device);\n"
9529 "\n"
9530 msgstr ""
9531
9532 # type: textblock
9533 #: ../src/guestfs-actions.pod:3164 ../fish/guestfish-actions.pod:2195
9534 msgid ""
9535 "This command tests whether C<device> is a logical volume, and returns true "
9536 "iff this is the case."
9537 msgstr ""
9538
9539 # type: =head2
9540 #: ../src/guestfs-actions.pod:3171
9541 msgid "guestfs_is_ready"
9542 msgstr ""
9543
9544 # type: verbatim
9545 #: ../src/guestfs-actions.pod:3173
9546 #, no-wrap
9547 msgid ""
9548 " int\n"
9549 " guestfs_is_ready (guestfs_h *g);\n"
9550 "\n"
9551 msgstr ""
9552
9553 # type: textblock
9554 #: ../src/guestfs-actions.pod:3176 ../fish/guestfish-actions.pod:2202
9555 msgid ""
9556 "This returns true iff this handle is ready to accept commands (in the "
9557 "C<READY> state)."
9558 msgstr ""
9559
9560 # type: =head2
9561 #: ../src/guestfs-actions.pod:3185
9562 msgid "guestfs_is_socket"
9563 msgstr ""
9564
9565 # type: verbatim
9566 #: ../src/guestfs-actions.pod:3187
9567 #, no-wrap
9568 msgid ""
9569 " int\n"
9570 " guestfs_is_socket (guestfs_h *g,\n"
9571 "                    const char *path);\n"
9572 "\n"
9573 msgstr ""
9574
9575 # type: textblock
9576 #: ../src/guestfs-actions.pod:3191 ../fish/guestfish-actions.pod:2211
9577 msgid ""
9578 "This returns C<true> if and only if there is a Unix domain socket with the "
9579 "given C<path> name."
9580 msgstr ""
9581
9582 # type: =head2
9583 #: ../src/guestfs-actions.pod:3200
9584 msgid "guestfs_is_symlink"
9585 msgstr ""
9586
9587 # type: verbatim
9588 #: ../src/guestfs-actions.pod:3202
9589 #, no-wrap
9590 msgid ""
9591 " int\n"
9592 " guestfs_is_symlink (guestfs_h *g,\n"
9593 "                     const char *path);\n"
9594 "\n"
9595 msgstr ""
9596
9597 # type: textblock
9598 #: ../src/guestfs-actions.pod:3206 ../fish/guestfish-actions.pod:2220
9599 msgid ""
9600 "This returns C<true> if and only if there is a symbolic link with the given "
9601 "C<path> name."
9602 msgstr ""
9603
9604 # type: =head2
9605 #: ../src/guestfs-actions.pod:3215
9606 msgid "guestfs_kill_subprocess"
9607 msgstr ""
9608
9609 # type: verbatim
9610 #: ../src/guestfs-actions.pod:3217
9611 #, no-wrap
9612 msgid ""
9613 " int\n"
9614 " guestfs_kill_subprocess (guestfs_h *g);\n"
9615 "\n"
9616 msgstr ""
9617
9618 # type: textblock
9619 #: ../src/guestfs-actions.pod:3220 ../fish/guestfish-actions.pod:2229
9620 msgid "This kills the qemu subprocess.  You should never need to call this."
9621 msgstr ""
9622
9623 # type: =head2
9624 #: ../src/guestfs-actions.pod:3226
9625 msgid "guestfs_launch"
9626 msgstr ""
9627
9628 # type: verbatim
9629 #: ../src/guestfs-actions.pod:3228
9630 #, no-wrap
9631 msgid ""
9632 " int\n"
9633 " guestfs_launch (guestfs_h *g);\n"
9634 "\n"
9635 msgstr ""
9636
9637 # type: textblock
9638 #: ../src/guestfs-actions.pod:3231 ../fish/guestfish-actions.pod:2237
9639 msgid ""
9640 "Internally libguestfs is implemented by running a virtual machine using "
9641 "L<qemu(1)>."
9642 msgstr ""
9643
9644 # type: textblock
9645 #: ../src/guestfs-actions.pod:3234 ../fish/guestfish-actions.pod:2240
9646 msgid ""
9647 "You should call this after configuring the handle (eg. adding drives) but "
9648 "before performing any actions."
9649 msgstr ""
9650
9651 # type: =head2
9652 #: ../src/guestfs-actions.pod:3241
9653 msgid "guestfs_lchown"
9654 msgstr ""
9655
9656 # type: verbatim
9657 #: ../src/guestfs-actions.pod:3243
9658 #, no-wrap
9659 msgid ""
9660 " int\n"
9661 " guestfs_lchown (guestfs_h *g,\n"
9662 "                 int owner,\n"
9663 "                 int group,\n"
9664 "                 const char *path);\n"
9665 "\n"
9666 msgstr ""
9667
9668 # type: textblock
9669 #: ../src/guestfs-actions.pod:3249
9670 msgid ""
9671 "Change the file owner to C<owner> and group to C<group>.  This is like "
9672 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
9673 "changed, not the target."
9674 msgstr ""
9675
9676 # type: =head2
9677 #: ../src/guestfs-actions.pod:3261
9678 msgid "guestfs_lgetxattr"
9679 msgstr ""
9680
9681 # type: verbatim
9682 #: ../src/guestfs-actions.pod:3263
9683 #, no-wrap
9684 msgid ""
9685 " char *\n"
9686 " guestfs_lgetxattr (guestfs_h *g,\n"
9687 "                    const char *path,\n"
9688 "                    const char *name,\n"
9689 "                    size_t *size_r);\n"
9690 "\n"
9691 msgstr ""
9692
9693 # type: textblock
9694 #: ../src/guestfs-actions.pod:3269 ../fish/guestfish-actions.pod:2259
9695 msgid ""
9696 "Get a single extended attribute from file C<path> named C<name>.  If C<path> "
9697 "is a symlink, then this call returns an extended attribute from the symlink."
9698 msgstr ""
9699
9700 # type: textblock
9701 #: ../src/guestfs-actions.pod:3283
9702 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
9703 msgstr ""
9704
9705 # type: =head2
9706 #: ../src/guestfs-actions.pod:3289
9707 msgid "guestfs_lgetxattrs"
9708 msgstr ""
9709
9710 # type: verbatim
9711 #: ../src/guestfs-actions.pod:3291
9712 #, no-wrap
9713 msgid ""
9714 " struct guestfs_xattr_list *\n"
9715 " guestfs_lgetxattrs (guestfs_h *g,\n"
9716 "                     const char *path);\n"
9717 "\n"
9718 msgstr ""
9719
9720 # type: textblock
9721 #: ../src/guestfs-actions.pod:3295
9722 msgid ""
9723 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
9724 "then it returns the extended attributes of the link itself."
9725 msgstr ""
9726
9727 # type: =head2
9728 #: ../src/guestfs-actions.pod:3305
9729 msgid "guestfs_list_devices"
9730 msgstr ""
9731
9732 # type: verbatim
9733 #: ../src/guestfs-actions.pod:3307
9734 #, no-wrap
9735 msgid ""
9736 " char **\n"
9737 " guestfs_list_devices (guestfs_h *g);\n"
9738 "\n"
9739 msgstr ""
9740
9741 # type: textblock
9742 #: ../src/guestfs-actions.pod:3310 ../fish/guestfish-actions.pod:2287
9743 msgid "List all the block devices."
9744 msgstr ""
9745
9746 # type: textblock
9747 #: ../src/guestfs-actions.pod:3312 ../fish/guestfish-actions.pod:2289
9748 msgid "The full block device names are returned, eg. C</dev/sda>."
9749 msgstr ""
9750
9751 # type: =head2
9752 #: ../src/guestfs-actions.pod:3322
9753 msgid "guestfs_list_filesystems"
9754 msgstr ""
9755
9756 # type: verbatim
9757 #: ../src/guestfs-actions.pod:3324
9758 #, no-wrap
9759 msgid ""
9760 " char **\n"
9761 " guestfs_list_filesystems (guestfs_h *g);\n"
9762 "\n"
9763 msgstr ""
9764
9765 # type: textblock
9766 #: ../src/guestfs-actions.pod:3327 ../fish/guestfish-actions.pod:2297
9767 msgid ""
9768 "This inspection command looks for filesystems on partitions, block devices "
9769 "and logical volumes, returning a list of devices containing filesystems and "
9770 "their type."
9771 msgstr ""
9772
9773 # type: textblock
9774 #: ../src/guestfs-actions.pod:3331 ../fish/guestfish-actions.pod:2301
9775 msgid ""
9776 "The return value is a hash, where the keys are the devices containing "
9777 "filesystems, and the values are the filesystem types.  For example:"
9778 msgstr ""
9779
9780 # type: verbatim
9781 #: ../src/guestfs-actions.pod:3335 ../fish/guestfish-actions.pod:2305
9782 #, no-wrap
9783 msgid ""
9784 " \"/dev/sda1\" => \"ntfs\"\n"
9785 " \"/dev/sda2\" => \"ext2\"\n"
9786 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
9787 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
9788 "\n"
9789 msgstr ""
9790
9791 # type: textblock
9792 #: ../src/guestfs-actions.pod:3340 ../fish/guestfish-actions.pod:2310
9793 msgid ""
9794 "The value can have the special value \"unknown\", meaning the content of the "
9795 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
9796 msgstr ""
9797
9798 # type: textblock
9799 #: ../src/guestfs-actions.pod:3344
9800 msgid ""
9801 "This command runs other libguestfs commands, which might include "
9802 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
9803 "soon after launch and only when nothing is mounted."
9804 msgstr ""
9805
9806 # type: textblock
9807 #: ../src/guestfs-actions.pod:3348
9808 msgid ""
9809 "Not all of the filesystems returned will be mountable.  In particular, swap "
9810 "partitions are returned in the list.  Also this command does not check that "
9811 "each filesystem found is valid and mountable, and some filesystems might be "
9812 "mountable but require special options.  Filesystems may not all belong to a "
9813 "single logical operating system (use C<guestfs_inspect_os> to look for "
9814 "OSes)."
9815 msgstr ""
9816
9817 # type: textblock
9818 #: ../src/guestfs-actions.pod:3362 ../src/guestfs-actions.pod:4951
9819 msgid "(Added in 1.5.15)"
9820 msgstr ""
9821
9822 # type: =head2
9823 #: ../src/guestfs-actions.pod:3364
9824 msgid "guestfs_list_partitions"
9825 msgstr ""
9826
9827 # type: verbatim
9828 #: ../src/guestfs-actions.pod:3366
9829 #, no-wrap
9830 msgid ""
9831 " char **\n"
9832 " guestfs_list_partitions (guestfs_h *g);\n"
9833 "\n"
9834 msgstr ""
9835
9836 # type: textblock
9837 #: ../src/guestfs-actions.pod:3369 ../fish/guestfish-actions.pod:2330
9838 msgid "List all the partitions detected on all block devices."
9839 msgstr ""
9840
9841 # type: textblock
9842 #: ../src/guestfs-actions.pod:3371 ../fish/guestfish-actions.pod:2332
9843 msgid "The full partition device names are returned, eg. C</dev/sda1>"
9844 msgstr ""
9845
9846 # type: textblock
9847 #: ../src/guestfs-actions.pod:3373
9848 msgid ""
9849 "This does not return logical volumes.  For that you will need to call "
9850 "C<guestfs_lvs>."
9851 msgstr ""
9852
9853 # type: =head2
9854 #: ../src/guestfs-actions.pod:3384
9855 msgid "guestfs_ll"
9856 msgstr ""
9857
9858 # type: verbatim
9859 #: ../src/guestfs-actions.pod:3386
9860 #, no-wrap
9861 msgid ""
9862 " char *\n"
9863 " guestfs_ll (guestfs_h *g,\n"
9864 "             const char *directory);\n"
9865 "\n"
9866 msgstr ""
9867
9868 # type: textblock
9869 #: ../src/guestfs-actions.pod:3390 ../fish/guestfish-actions.pod:2343
9870 msgid ""
9871 "List the files in C<directory> (relative to the root directory, there is no "
9872 "cwd) in the format of 'ls -la'."
9873 msgstr ""
9874
9875 # type: textblock
9876 #: ../src/guestfs-actions.pod:3393 ../fish/guestfish-actions.pod:2346
9877 msgid ""
9878 "This command is mostly useful for interactive sessions.  It is I<not> "
9879 "intended that you try to parse the output string."
9880 msgstr ""
9881
9882 # type: =head2
9883 #: ../src/guestfs-actions.pod:3401
9884 msgid "guestfs_ln"
9885 msgstr ""
9886
9887 # type: verbatim
9888 #: ../src/guestfs-actions.pod:3403
9889 #, no-wrap
9890 msgid ""
9891 " int\n"
9892 " guestfs_ln (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:3408 ../fish/guestfish-actions.pod:2353
9900 msgid "This command creates a hard link using the C<ln> command."
9901 msgstr ""
9902
9903 # type: =head2
9904 #: ../src/guestfs-actions.pod:3414
9905 msgid "guestfs_ln_f"
9906 msgstr ""
9907
9908 # type: verbatim
9909 #: ../src/guestfs-actions.pod:3416
9910 #, no-wrap
9911 msgid ""
9912 " int\n"
9913 " guestfs_ln_f (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:3421 ../fish/guestfish-actions.pod:2359
9921 msgid ""
9922 "This command creates a hard link using the C<ln -f> 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:3428
9928 msgid "guestfs_ln_s"
9929 msgstr ""
9930
9931 # type: verbatim
9932 #: ../src/guestfs-actions.pod:3430
9933 #, no-wrap
9934 msgid ""
9935 " int\n"
9936 " guestfs_ln_s (guestfs_h *g,\n"
9937 "               const char *target,\n"
9938 "               const char *linkname);\n"
9939 "\n"
9940 msgstr ""
9941
9942 # type: textblock
9943 #: ../src/guestfs-actions.pod:3435 ../fish/guestfish-actions.pod:2366
9944 msgid "This command creates a symbolic link using the C<ln -s> command."
9945 msgstr ""
9946
9947 # type: =head2
9948 #: ../src/guestfs-actions.pod:3441
9949 msgid "guestfs_ln_sf"
9950 msgstr ""
9951
9952 # type: verbatim
9953 #: ../src/guestfs-actions.pod:3443
9954 #, no-wrap
9955 msgid ""
9956 " int\n"
9957 " guestfs_ln_sf (guestfs_h *g,\n"
9958 "                const char *target,\n"
9959 "                const char *linkname);\n"
9960 "\n"
9961 msgstr ""
9962
9963 # type: textblock
9964 #: ../src/guestfs-actions.pod:3448 ../fish/guestfish-actions.pod:2372
9965 msgid ""
9966 "This command creates a symbolic link using the C<ln -sf> command, The C<-f> "
9967 "option removes the link (C<linkname>) if it exists already."
9968 msgstr ""
9969
9970 # type: =head2
9971 #: ../src/guestfs-actions.pod:3455
9972 msgid "guestfs_lremovexattr"
9973 msgstr ""
9974
9975 # type: verbatim
9976 #: ../src/guestfs-actions.pod:3457
9977 #, no-wrap
9978 msgid ""
9979 " int\n"
9980 " guestfs_lremovexattr (guestfs_h *g,\n"
9981 "                       const char *xattr,\n"
9982 "                       const char *path);\n"
9983 "\n"
9984 msgstr ""
9985
9986 # type: textblock
9987 #: ../src/guestfs-actions.pod:3462
9988 msgid ""
9989 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
9990 "link, then it removes an extended attribute of the link itself."
9991 msgstr ""
9992
9993 # type: =head2
9994 #: ../src/guestfs-actions.pod:3470
9995 msgid "guestfs_ls"
9996 msgstr ""
9997
9998 # type: verbatim
9999 #: ../src/guestfs-actions.pod:3472
10000 #, no-wrap
10001 msgid ""
10002 " char **\n"
10003 " guestfs_ls (guestfs_h *g,\n"
10004 "             const char *directory);\n"
10005 "\n"
10006 msgstr ""
10007
10008 # type: textblock
10009 #: ../src/guestfs-actions.pod:3476 ../fish/guestfish-actions.pod:2387
10010 msgid ""
10011 "List the files in C<directory> (relative to the root directory, there is no "
10012 "cwd).  The '.' and '..' entries are not returned, but hidden files are "
10013 "shown."
10014 msgstr ""
10015
10016 # type: textblock
10017 #: ../src/guestfs-actions.pod:3480
10018 msgid ""
10019 "This command is mostly useful for interactive sessions.  Programs should "
10020 "probably use C<guestfs_readdir> instead."
10021 msgstr ""
10022
10023 # type: =head2
10024 #: ../src/guestfs-actions.pod:3489
10025 msgid "guestfs_lsetxattr"
10026 msgstr ""
10027
10028 # type: verbatim
10029 #: ../src/guestfs-actions.pod:3491
10030 #, no-wrap
10031 msgid ""
10032 " int\n"
10033 " guestfs_lsetxattr (guestfs_h *g,\n"
10034 "                    const char *xattr,\n"
10035 "                    const char *val,\n"
10036 "                    int vallen,\n"
10037 "                    const char *path);\n"
10038 "\n"
10039 msgstr ""
10040
10041 # type: textblock
10042 #: ../src/guestfs-actions.pod:3498
10043 msgid ""
10044 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
10045 "then it sets an extended attribute of the link itself."
10046 msgstr ""
10047
10048 # type: =head2
10049 #: ../src/guestfs-actions.pod:3506
10050 msgid "guestfs_lstat"
10051 msgstr ""
10052
10053 # type: verbatim
10054 #: ../src/guestfs-actions.pod:3508
10055 #, no-wrap
10056 msgid ""
10057 " struct guestfs_stat *\n"
10058 " guestfs_lstat (guestfs_h *g,\n"
10059 "                const char *path);\n"
10060 "\n"
10061 msgstr ""
10062
10063 # type: textblock
10064 #: ../src/guestfs-actions.pod:3512 ../src/guestfs-actions.pod:6005 ../fish/guestfish-actions.pod:2406 ../fish/guestfish-actions.pod:4019
10065 msgid "Returns file information for the given C<path>."
10066 msgstr ""
10067
10068 # type: textblock
10069 #: ../src/guestfs-actions.pod:3514
10070 msgid ""
10071 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
10072 "link, then the link is stat-ed, not the file it refers to."
10073 msgstr ""
10074
10075 # type: textblock
10076 #: ../src/guestfs-actions.pod:3518 ../fish/guestfish-actions.pod:2412
10077 msgid "This is the same as the C<lstat(2)> system call."
10078 msgstr ""
10079
10080 # type: textblock
10081 #: ../src/guestfs-actions.pod:3520 ../src/guestfs-actions.pod:6009
10082 msgid ""
10083 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
10084 "error.  I<The caller must call C<guestfs_free_stat> after use>."
10085 msgstr ""
10086
10087 # type: textblock
10088 #: ../src/guestfs-actions.pod:3524 ../src/guestfs-actions.pod:6013 ../src/guestfs-actions.pod:6031 ../src/guestfs-actions.pod:6412
10089 msgid "(Added in 0.9.2)"
10090 msgstr ""
10091
10092 # type: =head2
10093 #: ../src/guestfs-actions.pod:3526
10094 msgid "guestfs_lstatlist"
10095 msgstr ""
10096
10097 # type: verbatim
10098 #: ../src/guestfs-actions.pod:3528
10099 #, no-wrap
10100 msgid ""
10101 " struct guestfs_stat_list *\n"
10102 " guestfs_lstatlist (guestfs_h *g,\n"
10103 "                    const char *path,\n"
10104 "                    char *const *names);\n"
10105 "\n"
10106 msgstr ""
10107
10108 # type: textblock
10109 #: ../src/guestfs-actions.pod:3533
10110 msgid ""
10111 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
10112 "files, where all files are in the directory C<path>.  C<names> is the list "
10113 "of files from this directory."
10114 msgstr ""
10115
10116 # type: textblock
10117 #: ../src/guestfs-actions.pod:3537 ../fish/guestfish-actions.pod:2422
10118 msgid ""
10119 "On return you get a list of stat structs, with a one-to-one correspondence "
10120 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
10121 "then the C<ino> field of that structure is set to C<-1>."
10122 msgstr ""
10123
10124 # type: textblock
10125 #: ../src/guestfs-actions.pod:3542
10126 msgid ""
10127 "This call is intended for programs that want to efficiently list a directory "
10128 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
10129 "for a similarly efficient call for getting extended attributes.  Very long "
10130 "directory listings might cause the protocol message size to be exceeded, "
10131 "causing this call to fail.  The caller must split up such requests into "
10132 "smaller groups of names."
10133 msgstr ""
10134
10135 # type: textblock
10136 #: ../src/guestfs-actions.pod:3550
10137 msgid ""
10138 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
10139 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
10140 msgstr ""
10141
10142 # type: =head2
10143 #: ../src/guestfs-actions.pod:3556
10144 msgid "guestfs_luks_add_key"
10145 msgstr ""
10146
10147 # type: verbatim
10148 #: ../src/guestfs-actions.pod:3558
10149 #, no-wrap
10150 msgid ""
10151 " int\n"
10152 " guestfs_luks_add_key (guestfs_h *g,\n"
10153 "                       const char *device,\n"
10154 "                       const char *key,\n"
10155 "                       const char *newkey,\n"
10156 "                       int keyslot);\n"
10157 "\n"
10158 msgstr ""
10159
10160 # type: textblock
10161 #: ../src/guestfs-actions.pod:3565 ../fish/guestfish-actions.pod:2439
10162 msgid ""
10163 "This command adds a new key on LUKS device C<device>.  C<key> is any "
10164 "existing key, and is used to access the device.  C<newkey> is the new key to "
10165 "add.  C<keyslot> is the key slot that will be replaced."
10166 msgstr ""
10167
10168 # type: textblock
10169 #: ../src/guestfs-actions.pod:3570
10170 msgid ""
10171 "Note that if C<keyslot> already contains a key, then this command will "
10172 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
10173 msgstr ""
10174
10175 # type: textblock
10176 #: ../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
10177 msgid ""
10178 "This function takes a key or passphrase parameter which could contain "
10179 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
10180 "information."
10181 msgstr ""
10182
10183 # type: textblock
10184 #: ../src/guestfs-actions.pod:3580 ../src/guestfs-actions.pod:3620 ../src/guestfs-actions.pod:3643 ../src/guestfs-actions.pod:3663
10185 msgid "(Added in 1.5.2)"
10186 msgstr ""
10187
10188 # type: =head2
10189 #: ../src/guestfs-actions.pod:3582
10190 msgid "guestfs_luks_close"
10191 msgstr ""
10192
10193 # type: verbatim
10194 #: ../src/guestfs-actions.pod:3584
10195 #, no-wrap
10196 msgid ""
10197 " int\n"
10198 " guestfs_luks_close (guestfs_h *g,\n"
10199 "                     const char *device);\n"
10200 "\n"
10201 msgstr ""
10202
10203 # type: textblock
10204 #: ../src/guestfs-actions.pod:3588
10205 msgid ""
10206 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
10207 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
10208 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
10209 "underlying block device."
10210 msgstr ""
10211
10212 # type: textblock
10213 #: ../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
10214 msgid "(Added in 1.5.1)"
10215 msgstr ""
10216
10217 # type: =head2
10218 #: ../src/guestfs-actions.pod:3598
10219 msgid "guestfs_luks_format"
10220 msgstr ""
10221
10222 # type: verbatim
10223 #: ../src/guestfs-actions.pod:3600
10224 #, no-wrap
10225 msgid ""
10226 " int\n"
10227 " guestfs_luks_format (guestfs_h *g,\n"
10228 "                      const char *device,\n"
10229 "                      const char *key,\n"
10230 "                      int keyslot);\n"
10231 "\n"
10232 msgstr ""
10233
10234 # type: textblock
10235 #: ../src/guestfs-actions.pod:3606 ../fish/guestfish-actions.pod:2465
10236 msgid ""
10237 "This command erases existing data on C<device> and formats the device as a "
10238 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
10239 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
10240 msgstr ""
10241
10242 # type: textblock
10243 #: ../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
10244 msgid ""
10245 "B<This command is dangerous.  Without careful use you can easily destroy all "
10246 "your data>."
10247 msgstr ""
10248
10249 # type: =head2
10250 #: ../src/guestfs-actions.pod:3622
10251 msgid "guestfs_luks_format_cipher"
10252 msgstr ""
10253
10254 # type: verbatim
10255 #: ../src/guestfs-actions.pod:3624
10256 #, no-wrap
10257 msgid ""
10258 " int\n"
10259 " guestfs_luks_format_cipher (guestfs_h *g,\n"
10260 "                             const char *device,\n"
10261 "                             const char *key,\n"
10262 "                             int keyslot,\n"
10263 "                             const char *cipher);\n"
10264 "\n"
10265 msgstr ""
10266
10267 # type: textblock
10268 #: ../src/guestfs-actions.pod:3631
10269 msgid ""
10270 "This command is the same as C<guestfs_luks_format> but it also allows you to "
10271 "set the C<cipher> used."
10272 msgstr ""
10273
10274 # type: =head2
10275 #: ../src/guestfs-actions.pod:3645
10276 msgid "guestfs_luks_kill_slot"
10277 msgstr ""
10278
10279 # type: verbatim
10280 #: ../src/guestfs-actions.pod:3647
10281 #, no-wrap
10282 msgid ""
10283 " int\n"
10284 " guestfs_luks_kill_slot (guestfs_h *g,\n"
10285 "                         const char *device,\n"
10286 "                         const char *key,\n"
10287 "                         int keyslot);\n"
10288 "\n"
10289 msgstr ""
10290
10291 # type: textblock
10292 #: ../src/guestfs-actions.pod:3653 ../fish/guestfish-actions.pod:2493
10293 msgid ""
10294 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
10295 "device C<device>.  C<key> must be one of the I<other> keys."
10296 msgstr ""
10297
10298 # type: =head2
10299 #: ../src/guestfs-actions.pod:3665
10300 msgid "guestfs_luks_open"
10301 msgstr ""
10302
10303 # type: verbatim
10304 #: ../src/guestfs-actions.pod:3667
10305 #, no-wrap
10306 msgid ""
10307 " int\n"
10308 " guestfs_luks_open (guestfs_h *g,\n"
10309 "                    const char *device,\n"
10310 "                    const char *key,\n"
10311 "                    const char *mapname);\n"
10312 "\n"
10313 msgstr ""
10314
10315 # type: textblock
10316 #: ../src/guestfs-actions.pod:3673 ../fish/guestfish-actions.pod:2504
10317 msgid ""
10318 "This command opens a block device which has been encrypted according to the "
10319 "Linux Unified Key Setup (LUKS) standard."
10320 msgstr ""
10321
10322 # type: textblock
10323 #: ../src/guestfs-actions.pod:3676 ../fish/guestfish-actions.pod:2507
10324 msgid "C<device> is the encrypted block device or partition."
10325 msgstr ""
10326
10327 # type: textblock
10328 #: ../src/guestfs-actions.pod:3678 ../fish/guestfish-actions.pod:2509
10329 msgid ""
10330 "The caller must supply one of the keys associated with the LUKS block "
10331 "device, in the C<key> parameter."
10332 msgstr ""
10333
10334 # type: textblock
10335 #: ../src/guestfs-actions.pod:3681 ../fish/guestfish-actions.pod:2512
10336 msgid ""
10337 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
10338 "writes to this block device are decrypted from and encrypted to the "
10339 "underlying C<device> respectively."
10340 msgstr ""
10341
10342 # type: textblock
10343 #: ../src/guestfs-actions.pod:3685
10344 msgid ""
10345 "If this block device contains LVM volume groups, then calling "
10346 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
10347 "visible."
10348 msgstr ""
10349
10350 # type: =head2
10351 #: ../src/guestfs-actions.pod:3697
10352 msgid "guestfs_luks_open_ro"
10353 msgstr ""
10354
10355 # type: verbatim
10356 #: ../src/guestfs-actions.pod:3699
10357 #, no-wrap
10358 msgid ""
10359 " int\n"
10360 " guestfs_luks_open_ro (guestfs_h *g,\n"
10361 "                       const char *device,\n"
10362 "                       const char *key,\n"
10363 "                       const char *mapname);\n"
10364 "\n"
10365 msgstr ""
10366
10367 # type: textblock
10368 #: ../src/guestfs-actions.pod:3705
10369 msgid ""
10370 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
10371 "created."
10372 msgstr ""
10373
10374 # type: =head2
10375 #: ../src/guestfs-actions.pod:3716
10376 msgid "guestfs_lvcreate"
10377 msgstr ""
10378
10379 # type: verbatim
10380 #: ../src/guestfs-actions.pod:3718
10381 #, no-wrap
10382 msgid ""
10383 " int\n"
10384 " guestfs_lvcreate (guestfs_h *g,\n"
10385 "                   const char *logvol,\n"
10386 "                   const char *volgroup,\n"
10387 "                   int mbytes);\n"
10388 "\n"
10389 msgstr ""
10390
10391 # type: textblock
10392 #: ../src/guestfs-actions.pod:3724 ../fish/guestfish-actions.pod:2537
10393 msgid ""
10394 "This creates an LVM logical volume called C<logvol> on the volume group "
10395 "C<volgroup>, with C<size> megabytes."
10396 msgstr ""
10397
10398 # type: =head2
10399 #: ../src/guestfs-actions.pod:3731
10400 msgid "guestfs_lvm_canonical_lv_name"
10401 msgstr ""
10402
10403 # type: verbatim
10404 #: ../src/guestfs-actions.pod:3733
10405 #, no-wrap
10406 msgid ""
10407 " char *\n"
10408 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
10409 "                                const char *lvname);\n"
10410 "\n"
10411 msgstr ""
10412
10413 # type: textblock
10414 #: ../src/guestfs-actions.pod:3737 ../fish/guestfish-actions.pod:2544
10415 msgid ""
10416 "This converts alternative naming schemes for LVs that you might find to the "
10417 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to "
10418 "C</dev/VG/LV>."
10419 msgstr ""
10420
10421 # type: textblock
10422 #: ../src/guestfs-actions.pod:3741 ../fish/guestfish-actions.pod:2548
10423 msgid ""
10424 "This command returns an error if the C<lvname> parameter does not refer to a "
10425 "logical volume."
10426 msgstr ""
10427
10428 # type: textblock
10429 #: ../src/guestfs-actions.pod:3744
10430 msgid "See also C<guestfs_is_lv>."
10431 msgstr ""
10432
10433 # type: textblock
10434 #: ../src/guestfs-actions.pod:3749
10435 msgid "(Added in 1.5.24)"
10436 msgstr ""
10437
10438 # type: =head2
10439 #: ../src/guestfs-actions.pod:3751
10440 msgid "guestfs_lvm_clear_filter"
10441 msgstr ""
10442
10443 # type: verbatim
10444 #: ../src/guestfs-actions.pod:3753
10445 #, no-wrap
10446 msgid ""
10447 " int\n"
10448 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
10449 "\n"
10450 msgstr ""
10451
10452 # type: textblock
10453 #: ../src/guestfs-actions.pod:3756
10454 msgid ""
10455 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
10456 "see every block device."
10457 msgstr ""
10458
10459 # type: textblock
10460 #: ../src/guestfs-actions.pod:3759 ../src/guestfs-actions.pod:3801 ../fish/guestfish-actions.pod:2560 ../fish/guestfish-actions.pod:2591
10461 msgid "This command also clears the LVM cache and performs a volume group scan."
10462 msgstr ""
10463
10464 # type: =head2
10465 #: ../src/guestfs-actions.pod:3766
10466 msgid "guestfs_lvm_remove_all"
10467 msgstr ""
10468
10469 # type: verbatim
10470 #: ../src/guestfs-actions.pod:3768
10471 #, no-wrap
10472 msgid ""
10473 " int\n"
10474 " guestfs_lvm_remove_all (guestfs_h *g);\n"
10475 "\n"
10476 msgstr ""
10477
10478 # type: textblock
10479 #: ../src/guestfs-actions.pod:3771 ../fish/guestfish-actions.pod:2567
10480 msgid ""
10481 "This command removes all LVM logical volumes, volume groups and physical "
10482 "volumes."
10483 msgstr ""
10484
10485 # type: =head2
10486 #: ../src/guestfs-actions.pod:3781
10487 msgid "guestfs_lvm_set_filter"
10488 msgstr ""
10489
10490 # type: verbatim
10491 #: ../src/guestfs-actions.pod:3783
10492 #, no-wrap
10493 msgid ""
10494 " int\n"
10495 " guestfs_lvm_set_filter (guestfs_h *g,\n"
10496 "                         char *const *devices);\n"
10497 "\n"
10498 msgstr ""
10499
10500 # type: textblock
10501 #: ../src/guestfs-actions.pod:3787 ../fish/guestfish-actions.pod:2577
10502 msgid ""
10503 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
10504 "block devices in the list C<devices>, and will ignore all other attached "
10505 "block devices."
10506 msgstr ""
10507
10508 # type: textblock
10509 #: ../src/guestfs-actions.pod:3791 ../fish/guestfish-actions.pod:2581
10510 msgid ""
10511 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
10512 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
10513 "there are two types of duplication possible: either cloned PVs/VGs which "
10514 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
10515 "same name.  In normal operation you cannot create this situation, but you "
10516 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
10517 "inside the LVM metadata."
10518 msgstr ""
10519
10520 # type: textblock
10521 #: ../src/guestfs-actions.pod:3804 ../fish/guestfish-actions.pod:2594
10522 msgid "You can filter whole block devices or individual partitions."
10523 msgstr ""
10524
10525 # type: textblock
10526 #: ../src/guestfs-actions.pod:3806 ../fish/guestfish-actions.pod:2596
10527 msgid ""
10528 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
10529 "filesystem), even if you are not filtering out that VG."
10530 msgstr ""
10531
10532 # type: =head2
10533 #: ../src/guestfs-actions.pod:3814
10534 msgid "guestfs_lvremove"
10535 msgstr ""
10536
10537 # type: verbatim
10538 #: ../src/guestfs-actions.pod:3816
10539 #, no-wrap
10540 msgid ""
10541 " int\n"
10542 " guestfs_lvremove (guestfs_h *g,\n"
10543 "                   const char *device);\n"
10544 "\n"
10545 msgstr ""
10546
10547 # type: textblock
10548 #: ../src/guestfs-actions.pod:3820 ../fish/guestfish-actions.pod:2604
10549 msgid ""
10550 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
10551 "LV, such as C</dev/VG/LV>."
10552 msgstr ""
10553
10554 # type: textblock
10555 #: ../src/guestfs-actions.pod:3823 ../fish/guestfish-actions.pod:2607
10556 msgid ""
10557 "You can also remove all LVs in a volume group by specifying the VG name, "
10558 "C</dev/VG>."
10559 msgstr ""
10560
10561 # type: textblock
10562 #: ../src/guestfs-actions.pod:3828 ../src/guestfs-actions.pod:5048 ../src/guestfs-actions.pod:6788
10563 msgid "(Added in 1.0.13)"
10564 msgstr ""
10565
10566 # type: =head2
10567 #: ../src/guestfs-actions.pod:3830
10568 msgid "guestfs_lvrename"
10569 msgstr ""
10570
10571 # type: verbatim
10572 #: ../src/guestfs-actions.pod:3832
10573 #, no-wrap
10574 msgid ""
10575 " int\n"
10576 " guestfs_lvrename (guestfs_h *g,\n"
10577 "                   const char *logvol,\n"
10578 "                   const char *newlogvol);\n"
10579 "\n"
10580 msgstr ""
10581
10582 # type: textblock
10583 #: ../src/guestfs-actions.pod:3837 ../fish/guestfish-actions.pod:2614
10584 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
10585 msgstr ""
10586
10587 # type: textblock
10588 #: ../src/guestfs-actions.pod:3841 ../src/guestfs-actions.pod:6801
10589 msgid "(Added in 1.0.83)"
10590 msgstr ""
10591
10592 # type: =head2
10593 #: ../src/guestfs-actions.pod:3843
10594 msgid "guestfs_lvresize"
10595 msgstr ""
10596
10597 # type: verbatim
10598 #: ../src/guestfs-actions.pod:3845
10599 #, no-wrap
10600 msgid ""
10601 " int\n"
10602 " guestfs_lvresize (guestfs_h *g,\n"
10603 "                   const char *device,\n"
10604 "                   int mbytes);\n"
10605 "\n"
10606 msgstr ""
10607
10608 # type: textblock
10609 #: ../src/guestfs-actions.pod:3850 ../fish/guestfish-actions.pod:2620
10610 msgid ""
10611 "This resizes (expands or shrinks) an existing LVM logical volume to "
10612 "C<mbytes>.  When reducing, data in the reduced part is lost."
10613 msgstr ""
10614
10615 # type: =head2
10616 #: ../src/guestfs-actions.pod:3858
10617 msgid "guestfs_lvresize_free"
10618 msgstr ""
10619
10620 # type: verbatim
10621 #: ../src/guestfs-actions.pod:3860
10622 #, no-wrap
10623 msgid ""
10624 " int\n"
10625 " guestfs_lvresize_free (guestfs_h *g,\n"
10626 "                        const char *lv,\n"
10627 "                        int percent);\n"
10628 "\n"
10629 msgstr ""
10630
10631 # type: textblock
10632 #: ../src/guestfs-actions.pod:3865 ../fish/guestfish-actions.pod:2628
10633 msgid ""
10634 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
10635 "remaining free space in the volume group.  Commonly you would call this with "
10636 "pc = 100 which expands the logical volume as much as possible, using all "
10637 "remaining free space in the volume group."
10638 msgstr ""
10639
10640 # type: textblock
10641 #: ../src/guestfs-actions.pod:3873
10642 msgid "(Added in 1.3.3)"
10643 msgstr ""
10644
10645 # type: =head2
10646 #: ../src/guestfs-actions.pod:3875
10647 msgid "guestfs_lvs"
10648 msgstr ""
10649
10650 # type: verbatim
10651 #: ../src/guestfs-actions.pod:3877
10652 #, no-wrap
10653 msgid ""
10654 " char **\n"
10655 " guestfs_lvs (guestfs_h *g);\n"
10656 "\n"
10657 msgstr ""
10658
10659 # type: textblock
10660 #: ../src/guestfs-actions.pod:3880 ../fish/guestfish-actions.pod:2638
10661 msgid ""
10662 "List all the logical volumes detected.  This is the equivalent of the "
10663 "L<lvs(8)> command."
10664 msgstr ""
10665
10666 # type: textblock
10667 #: ../src/guestfs-actions.pod:3883 ../fish/guestfish-actions.pod:2641
10668 msgid ""
10669 "This returns a list of the logical volume device names "
10670 "(eg. C</dev/VolGroup00/LogVol00>)."
10671 msgstr ""
10672
10673 # type: textblock
10674 #: ../src/guestfs-actions.pod:3886
10675 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
10676 msgstr ""
10677
10678 # type: =head2
10679 #: ../src/guestfs-actions.pod:3894
10680 msgid "guestfs_lvs_full"
10681 msgstr ""
10682
10683 # type: verbatim
10684 #: ../src/guestfs-actions.pod:3896
10685 #, no-wrap
10686 msgid ""
10687 " struct guestfs_lvm_lv_list *\n"
10688 " guestfs_lvs_full (guestfs_h *g);\n"
10689 "\n"
10690 msgstr ""
10691
10692 # type: textblock
10693 #: ../src/guestfs-actions.pod:3899 ../fish/guestfish-actions.pod:2650
10694 msgid ""
10695 "List all the logical volumes detected.  This is the equivalent of the "
10696 "L<lvs(8)> command.  The \"full\" version includes all fields."
10697 msgstr ""
10698
10699 # type: textblock
10700 #: ../src/guestfs-actions.pod:3902
10701 msgid ""
10702 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
10703 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after "
10704 "use>."
10705 msgstr ""
10706
10707 # type: =head2
10708 #: ../src/guestfs-actions.pod:3908
10709 msgid "guestfs_lvuuid"
10710 msgstr ""
10711
10712 # type: verbatim
10713 #: ../src/guestfs-actions.pod:3910
10714 #, no-wrap
10715 msgid ""
10716 " char *\n"
10717 " guestfs_lvuuid (guestfs_h *g,\n"
10718 "                 const char *device);\n"
10719 "\n"
10720 msgstr ""
10721
10722 # type: textblock
10723 #: ../src/guestfs-actions.pod:3914 ../fish/guestfish-actions.pod:2657
10724 msgid "This command returns the UUID of the LVM LV C<device>."
10725 msgstr ""
10726
10727 # type: =head2
10728 #: ../src/guestfs-actions.pod:3921
10729 msgid "guestfs_lxattrlist"
10730 msgstr ""
10731
10732 # type: verbatim
10733 #: ../src/guestfs-actions.pod:3923
10734 #, no-wrap
10735 msgid ""
10736 " struct guestfs_xattr_list *\n"
10737 " guestfs_lxattrlist (guestfs_h *g,\n"
10738 "                     const char *path,\n"
10739 "                     char *const *names);\n"
10740 "\n"
10741 msgstr ""
10742
10743 # type: textblock
10744 #: ../src/guestfs-actions.pod:3928 ../fish/guestfish-actions.pod:2663
10745 msgid ""
10746 "This call allows you to get the extended attributes of multiple files, where "
10747 "all files are in the directory C<path>.  C<names> is the list of files from "
10748 "this directory."
10749 msgstr ""
10750
10751 # type: textblock
10752 #: ../src/guestfs-actions.pod:3932 ../fish/guestfish-actions.pod:2667
10753 msgid ""
10754 "On return you get a flat list of xattr structs which must be interpreted "
10755 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
10756 "C<attrval> in this struct is zero-length to indicate there was an error "
10757 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
10758 "number (the number of following attributes for this file, which could be "
10759 "C<\"0\">).  Then after the first xattr struct are the zero or more "
10760 "attributes for the first named file.  This repeats for the second and "
10761 "subsequent files."
10762 msgstr ""
10763
10764 # type: textblock
10765 #: ../src/guestfs-actions.pod:3942
10766 msgid ""
10767 "This call is intended for programs that want to efficiently list a directory "
10768 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
10769 "a similarly efficient call for getting standard stats.  Very long directory "
10770 "listings might cause the protocol message size to be exceeded, causing this "
10771 "call to fail.  The caller must split up such requests into smaller groups of "
10772 "names."
10773 msgstr ""
10774
10775 # type: =head2
10776 #: ../src/guestfs-actions.pod:3956
10777 msgid "guestfs_mkdir"
10778 msgstr ""
10779
10780 # type: verbatim
10781 #: ../src/guestfs-actions.pod:3958
10782 #, no-wrap
10783 msgid ""
10784 " int\n"
10785 " guestfs_mkdir (guestfs_h *g,\n"
10786 "                const char *path);\n"
10787 "\n"
10788 msgstr ""
10789
10790 # type: textblock
10791 #: ../src/guestfs-actions.pod:3962 ../fish/guestfish-actions.pod:2689
10792 msgid "Create a directory named C<path>."
10793 msgstr ""
10794
10795 # type: =head2
10796 #: ../src/guestfs-actions.pod:3968
10797 msgid "guestfs_mkdir_mode"
10798 msgstr ""
10799
10800 # type: verbatim
10801 #: ../src/guestfs-actions.pod:3970
10802 #, no-wrap
10803 msgid ""
10804 " int\n"
10805 " guestfs_mkdir_mode (guestfs_h *g,\n"
10806 "                     const char *path,\n"
10807 "                     int mode);\n"
10808 "\n"
10809 msgstr ""
10810
10811 # type: textblock
10812 #: ../src/guestfs-actions.pod:3975 ../fish/guestfish-actions.pod:2695
10813 msgid ""
10814 "This command creates a directory, setting the initial permissions of the "
10815 "directory to C<mode>."
10816 msgstr ""
10817
10818 # type: textblock
10819 #: ../src/guestfs-actions.pod:3978 ../fish/guestfish-actions.pod:2698
10820 msgid ""
10821 "For common Linux filesystems, the actual mode which is set will be C<mode & "
10822 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
10823 "other ways."
10824 msgstr ""
10825
10826 # type: textblock
10827 #: ../src/guestfs-actions.pod:3982
10828 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
10829 msgstr ""
10830
10831 # type: =head2
10832 #: ../src/guestfs-actions.pod:3988
10833 msgid "guestfs_mkdir_p"
10834 msgstr ""
10835
10836 # type: verbatim
10837 #: ../src/guestfs-actions.pod:3990
10838 #, no-wrap
10839 msgid ""
10840 " int\n"
10841 " guestfs_mkdir_p (guestfs_h *g,\n"
10842 "                  const char *path);\n"
10843 "\n"
10844 msgstr ""
10845
10846 # type: textblock
10847 #: ../src/guestfs-actions.pod:3994 ../fish/guestfish-actions.pod:2708
10848 msgid ""
10849 "Create a directory named C<path>, creating any parent directories as "
10850 "necessary.  This is like the C<mkdir -p> shell command."
10851 msgstr ""
10852
10853 # type: =head2
10854 #: ../src/guestfs-actions.pod:4001
10855 msgid "guestfs_mkdtemp"
10856 msgstr ""
10857
10858 # type: verbatim
10859 #: ../src/guestfs-actions.pod:4003
10860 #, no-wrap
10861 msgid ""
10862 " char *\n"
10863 " guestfs_mkdtemp (guestfs_h *g,\n"
10864 "                  const char *template);\n"
10865 "\n"
10866 msgstr ""
10867
10868 # type: textblock
10869 #: ../src/guestfs-actions.pod:4007 ../fish/guestfish-actions.pod:2715
10870 msgid ""
10871 "This command creates a temporary directory.  The C<template> parameter "
10872 "should be a full pathname for the temporary directory name with the final "
10873 "six characters being \"XXXXXX\"."
10874 msgstr ""
10875
10876 # type: textblock
10877 #: ../src/guestfs-actions.pod:4012 ../fish/guestfish-actions.pod:2720
10878 msgid ""
10879 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
10880 "being suitable for Windows filesystems."
10881 msgstr ""
10882
10883 # type: textblock
10884 #: ../src/guestfs-actions.pod:4015 ../fish/guestfish-actions.pod:2723
10885 msgid "The name of the temporary directory that was created is returned."
10886 msgstr ""
10887
10888 # type: textblock
10889 #: ../src/guestfs-actions.pod:4018 ../fish/guestfish-actions.pod:2726
10890 msgid "The temporary directory is created with mode 0700 and is owned by root."
10891 msgstr ""
10892
10893 # type: textblock
10894 #: ../src/guestfs-actions.pod:4021 ../fish/guestfish-actions.pod:2729
10895 msgid ""
10896 "The caller is responsible for deleting the temporary directory and its "
10897 "contents after use."
10898 msgstr ""
10899
10900 # type: textblock
10901 #: ../src/guestfs-actions.pod:4024 ../fish/guestfish-actions.pod:2732
10902 msgid "See also: L<mkdtemp(3)>"
10903 msgstr ""
10904
10905 # type: =head2
10906 #: ../src/guestfs-actions.pod:4031
10907 msgid "guestfs_mke2fs_J"
10908 msgstr ""
10909
10910 # type: verbatim
10911 #: ../src/guestfs-actions.pod:4033
10912 #, no-wrap
10913 msgid ""
10914 " int\n"
10915 " guestfs_mke2fs_J (guestfs_h *g,\n"
10916 "                   const char *fstype,\n"
10917 "                   int blocksize,\n"
10918 "                   const char *device,\n"
10919 "                   const char *journal);\n"
10920 "\n"
10921 msgstr ""
10922
10923 # type: textblock
10924 #: ../src/guestfs-actions.pod:4040 ../fish/guestfish-actions.pod:2738
10925 msgid ""
10926 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
10927 "C<journal>.  It is equivalent to the command:"
10928 msgstr ""
10929
10930 # type: verbatim
10931 #: ../src/guestfs-actions.pod:4044 ../fish/guestfish-actions.pod:2742
10932 #, no-wrap
10933 msgid ""
10934 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
10935 "\n"
10936 msgstr ""
10937
10938 # type: textblock
10939 #: ../src/guestfs-actions.pod:4046
10940 msgid "See also C<guestfs_mke2journal>."
10941 msgstr ""
10942
10943 # type: textblock
10944 #: ../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
10945 msgid "(Added in 1.0.68)"
10946 msgstr ""
10947
10948 # type: =head2
10949 #: ../src/guestfs-actions.pod:4052
10950 msgid "guestfs_mke2fs_JL"
10951 msgstr ""
10952
10953 # type: verbatim
10954 #: ../src/guestfs-actions.pod:4054
10955 #, no-wrap
10956 msgid ""
10957 " int\n"
10958 " guestfs_mke2fs_JL (guestfs_h *g,\n"
10959 "                    const char *fstype,\n"
10960 "                    int blocksize,\n"
10961 "                    const char *device,\n"
10962 "                    const char *label);\n"
10963 "\n"
10964 msgstr ""
10965
10966 # type: textblock
10967 #: ../src/guestfs-actions.pod:4061 ../fish/guestfish-actions.pod:2750
10968 msgid ""
10969 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
10970 "the journal labeled C<label>."
10971 msgstr ""
10972
10973 # type: textblock
10974 #: ../src/guestfs-actions.pod:4064
10975 msgid "See also C<guestfs_mke2journal_L>."
10976 msgstr ""
10977
10978 # type: =head2
10979 #: ../src/guestfs-actions.pod:4070
10980 msgid "guestfs_mke2fs_JU"
10981 msgstr ""
10982
10983 # type: verbatim
10984 #: ../src/guestfs-actions.pod:4072
10985 #, no-wrap
10986 msgid ""
10987 " int\n"
10988 " guestfs_mke2fs_JU (guestfs_h *g,\n"
10989 "                    const char *fstype,\n"
10990 "                    int blocksize,\n"
10991 "                    const char *device,\n"
10992 "                    const char *uuid);\n"
10993 "\n"
10994 msgstr ""
10995
10996 # type: textblock
10997 #: ../src/guestfs-actions.pod:4079 ../fish/guestfish-actions.pod:2759
10998 msgid ""
10999 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11000 "the journal with UUID C<uuid>."
11001 msgstr ""
11002
11003 # type: textblock
11004 #: ../src/guestfs-actions.pod:4082
11005 msgid "See also C<guestfs_mke2journal_U>."
11006 msgstr ""
11007
11008 # type: =head2
11009 #: ../src/guestfs-actions.pod:4088
11010 msgid "guestfs_mke2journal"
11011 msgstr ""
11012
11013 # type: verbatim
11014 #: ../src/guestfs-actions.pod:4090
11015 #, no-wrap
11016 msgid ""
11017 " int\n"
11018 " guestfs_mke2journal (guestfs_h *g,\n"
11019 "                      int blocksize,\n"
11020 "                      const char *device);\n"
11021 "\n"
11022 msgstr ""
11023
11024 # type: textblock
11025 #: ../src/guestfs-actions.pod:4095 ../fish/guestfish-actions.pod:2768
11026 msgid ""
11027 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
11028 "command:"
11029 msgstr ""
11030
11031 # type: verbatim
11032 #: ../src/guestfs-actions.pod:4098 ../fish/guestfish-actions.pod:2771
11033 #, no-wrap
11034 msgid ""
11035 " mke2fs -O journal_dev -b blocksize device\n"
11036 "\n"
11037 msgstr ""
11038
11039 # type: =head2
11040 #: ../src/guestfs-actions.pod:4104
11041 msgid "guestfs_mke2journal_L"
11042 msgstr ""
11043
11044 # type: verbatim
11045 #: ../src/guestfs-actions.pod:4106
11046 #, no-wrap
11047 msgid ""
11048 " int\n"
11049 " guestfs_mke2journal_L (guestfs_h *g,\n"
11050 "                        int blocksize,\n"
11051 "                        const char *label,\n"
11052 "                        const char *device);\n"
11053 "\n"
11054 msgstr ""
11055
11056 # type: textblock
11057 #: ../src/guestfs-actions.pod:4112 ../fish/guestfish-actions.pod:2777
11058 msgid "This creates an ext2 external journal on C<device> with label C<label>."
11059 msgstr ""
11060
11061 # type: =head2
11062 #: ../src/guestfs-actions.pod:4118
11063 msgid "guestfs_mke2journal_U"
11064 msgstr ""
11065
11066 # type: verbatim
11067 #: ../src/guestfs-actions.pod:4120
11068 #, no-wrap
11069 msgid ""
11070 " int\n"
11071 " guestfs_mke2journal_U (guestfs_h *g,\n"
11072 "                        int blocksize,\n"
11073 "                        const char *uuid,\n"
11074 "                        const char *device);\n"
11075 "\n"
11076 msgstr ""
11077
11078 # type: textblock
11079 #: ../src/guestfs-actions.pod:4126 ../fish/guestfish-actions.pod:2783
11080 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
11081 msgstr ""
11082
11083 # type: =head2
11084 #: ../src/guestfs-actions.pod:4132
11085 msgid "guestfs_mkfifo"
11086 msgstr ""
11087
11088 # type: verbatim
11089 #: ../src/guestfs-actions.pod:4134
11090 #, no-wrap
11091 msgid ""
11092 " int\n"
11093 " guestfs_mkfifo (guestfs_h *g,\n"
11094 "                 int mode,\n"
11095 "                 const char *path);\n"
11096 "\n"
11097 msgstr ""
11098
11099 # type: textblock
11100 #: ../src/guestfs-actions.pod:4139
11101 msgid ""
11102 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
11103 "is just a convenient wrapper around C<guestfs_mknod>."
11104 msgstr ""
11105
11106 # type: =head2
11107 #: ../src/guestfs-actions.pod:4149
11108 msgid "guestfs_mkfs"
11109 msgstr ""
11110
11111 # type: verbatim
11112 #: ../src/guestfs-actions.pod:4151
11113 #, no-wrap
11114 msgid ""
11115 " int\n"
11116 " guestfs_mkfs (guestfs_h *g,\n"
11117 "               const char *fstype,\n"
11118 "               const char *device);\n"
11119 "\n"
11120 msgstr ""
11121
11122 # type: textblock
11123 #: ../src/guestfs-actions.pod:4156 ../fish/guestfish-actions.pod:2799
11124 msgid ""
11125 "This creates a filesystem on C<device> (usually a partition or LVM logical "
11126 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
11127 msgstr ""
11128
11129 # type: =head2
11130 #: ../src/guestfs-actions.pod:4164
11131 msgid "guestfs_mkfs_b"
11132 msgstr ""
11133
11134 # type: verbatim
11135 #: ../src/guestfs-actions.pod:4166
11136 #, no-wrap
11137 msgid ""
11138 " int\n"
11139 " guestfs_mkfs_b (guestfs_h *g,\n"
11140 "                 const char *fstype,\n"
11141 "                 int blocksize,\n"
11142 "                 const char *device);\n"
11143 "\n"
11144 msgstr ""
11145
11146 # type: textblock
11147 #: ../src/guestfs-actions.pod:4172
11148 msgid ""
11149 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
11150 "block size of the resulting filesystem.  Supported block sizes depend on the "
11151 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
11152 msgstr ""
11153
11154 # type: textblock
11155 #: ../src/guestfs-actions.pod:4177 ../src/guestfs-actions.pod:4219 ../fish/guestfish-actions.pod:2812 ../fish/guestfish-actions.pod:2839
11156 msgid ""
11157 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
11158 "cluster size."
11159 msgstr ""
11160
11161 # type: textblock
11162 #: ../src/guestfs-actions.pod:4182 ../fish/guestfish-actions.pod:2815
11163 msgid ""
11164 "This function is deprecated.  In new code, use the C<mkfs_opts> call "
11165 "instead."
11166 msgstr ""
11167
11168 # type: =head2
11169 #: ../src/guestfs-actions.pod:4191
11170 msgid "guestfs_mkfs_opts"
11171 msgstr ""
11172
11173 # type: verbatim
11174 #: ../src/guestfs-actions.pod:4193
11175 #, no-wrap
11176 msgid ""
11177 " int\n"
11178 " guestfs_mkfs_opts (guestfs_h *g,\n"
11179 "                    const char *fstype,\n"
11180 "                    const char *device,\n"
11181 "                    ...);\n"
11182 "\n"
11183 msgstr ""
11184
11185 # type: verbatim
11186 #: ../src/guestfs-actions.pod:4204
11187 #, no-wrap
11188 msgid ""
11189 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
11190 "\n"
11191 msgstr ""
11192
11193 # type: textblock
11194 #: ../src/guestfs-actions.pod:4206 ../fish/guestfish-actions.pod:2826
11195 msgid ""
11196 "This function creates a filesystem on C<device>.  The filesystem type is "
11197 "C<fstype>, for example C<ext3>."
11198 msgstr ""
11199
11200 # type: =item
11201 #: ../src/guestfs-actions.pod:4213 ../fish/guestfish-actions.pod:2833
11202 msgid "C<blocksize>"
11203 msgstr ""
11204
11205 # type: textblock
11206 #: ../src/guestfs-actions.pod:4215 ../fish/guestfish-actions.pod:2835
11207 msgid ""
11208 "The filesystem block size.  Supported block sizes depend on the filesystem "
11209 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
11210 "filesystems."
11211 msgstr ""
11212
11213 # type: =head2
11214 #: ../src/guestfs-actions.pod:4226
11215 msgid "guestfs_mkfs_opts_va"
11216 msgstr ""
11217
11218 # type: verbatim
11219 #: ../src/guestfs-actions.pod:4228
11220 #, no-wrap
11221 msgid ""
11222 " int\n"
11223 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
11224 "                       const char *fstype,\n"
11225 "                       const char *device,\n"
11226 "                       va_list args);\n"
11227 "\n"
11228 msgstr ""
11229
11230 # type: textblock
11231 #: ../src/guestfs-actions.pod:4234
11232 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
11233 msgstr ""
11234
11235 # type: =head2
11236 #: ../src/guestfs-actions.pod:4238
11237 msgid "guestfs_mkfs_opts_argv"
11238 msgstr ""
11239
11240 # type: verbatim
11241 #: ../src/guestfs-actions.pod:4240
11242 #, no-wrap
11243 msgid ""
11244 " int\n"
11245 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
11246 "                         const char *fstype,\n"
11247 "                         const char *device,\n"
11248 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
11249 "\n"
11250 msgstr ""
11251
11252 # type: textblock
11253 #: ../src/guestfs-actions.pod:4246
11254 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
11255 msgstr ""
11256
11257 # type: =head2
11258 #: ../src/guestfs-actions.pod:4250
11259 msgid "guestfs_mkmountpoint"
11260 msgstr ""
11261
11262 # type: verbatim
11263 #: ../src/guestfs-actions.pod:4252
11264 #, no-wrap
11265 msgid ""
11266 " int\n"
11267 " guestfs_mkmountpoint (guestfs_h *g,\n"
11268 "                       const char *exemptpath);\n"
11269 "\n"
11270 msgstr ""
11271
11272 # type: textblock
11273 #: ../src/guestfs-actions.pod:4256
11274 msgid ""
11275 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
11276 "that can be used to create extra mountpoints before mounting the first "
11277 "filesystem."
11278 msgstr ""
11279
11280 # type: textblock
11281 #: ../src/guestfs-actions.pod:4260 ../fish/guestfish-actions.pod:2854
11282 msgid ""
11283 "These calls are I<only> necessary in some very limited circumstances, mainly "
11284 "the case where you want to mount a mix of unrelated and/or read-only "
11285 "filesystems together."
11286 msgstr ""
11287
11288 # type: textblock
11289 #: ../src/guestfs-actions.pod:4264 ../fish/guestfish-actions.pod:2858
11290 msgid ""
11291 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
11292 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
11293 "inside that.  You can unpack this as follows in guestfish:"
11294 msgstr ""
11295
11296 # type: verbatim
11297 #: ../src/guestfs-actions.pod:4269 ../fish/guestfish-actions.pod:2863
11298 #, no-wrap
11299 msgid ""
11300 " add-ro Fedora-11-i686-Live.iso\n"
11301 " run\n"
11302 " mkmountpoint /cd\n"
11303 " mkmountpoint /sqsh\n"
11304 " mkmountpoint /ext3fs\n"
11305 " mount /dev/sda /cd\n"
11306 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
11307 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
11308 "\n"
11309 msgstr ""
11310
11311 # type: textblock
11312 #: ../src/guestfs-actions.pod:4278 ../fish/guestfish-actions.pod:2872
11313 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
11314 msgstr ""
11315
11316 # type: textblock
11317 #: ../src/guestfs-actions.pod:4280
11318 msgid ""
11319 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
11320 "may get unexpected errors if you try to mix these calls.  It is safest to "
11321 "manually unmount filesystems and remove mountpoints after use."
11322 msgstr ""
11323
11324 # type: textblock
11325 #: ../src/guestfs-actions.pod:4284
11326 msgid ""
11327 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
11328 "first, so for this to work for manual mountpoints, you must ensure that the "
11329 "innermost mountpoints have the longest pathnames, as in the example code "
11330 "above."
11331 msgstr ""
11332
11333 # type: textblock
11334 #: ../src/guestfs-actions.pod:4289 ../fish/guestfish-actions.pod:2883
11335 msgid "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
11336 msgstr ""
11337
11338 # type: textblock
11339 #: ../src/guestfs-actions.pod:4291
11340 msgid ""
11341 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
11342 "means that C<guestfs_umount_all> is called when the handle is closed which "
11343 "can also trigger these issues."
11344 msgstr ""
11345
11346 # type: textblock
11347 #: ../src/guestfs-actions.pod:4297 ../src/guestfs-actions.pod:4556 ../src/guestfs-actions.pod:5449
11348 msgid "(Added in 1.0.62)"
11349 msgstr ""
11350
11351 # type: =head2
11352 #: ../src/guestfs-actions.pod:4299
11353 msgid "guestfs_mknod"
11354 msgstr ""
11355
11356 # type: verbatim
11357 #: ../src/guestfs-actions.pod:4301
11358 #, no-wrap
11359 msgid ""
11360 " int\n"
11361 " guestfs_mknod (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:4308 ../fish/guestfish-actions.pod:2893
11371 msgid ""
11372 "This call creates block or character special devices, or named pipes "
11373 "(FIFOs)."
11374 msgstr ""
11375
11376 # type: textblock
11377 #: ../src/guestfs-actions.pod:4311 ../fish/guestfish-actions.pod:2896
11378 msgid ""
11379 "The C<mode> parameter should be the mode, using the standard constants.  "
11380 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
11381 "used when creating block and character special devices."
11382 msgstr ""
11383
11384 # type: textblock
11385 #: ../src/guestfs-actions.pod:4316
11386 msgid ""
11387 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
11388 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
11389 "regular file).  These constants are available in the standard Linux header "
11390 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
11391 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
11392 "the appropriate constant for you."
11393 msgstr ""
11394
11395 # type: =head2
11396 #: ../src/guestfs-actions.pod:4330
11397 msgid "guestfs_mknod_b"
11398 msgstr ""
11399
11400 # type: verbatim
11401 #: ../src/guestfs-actions.pod:4332
11402 #, no-wrap
11403 msgid ""
11404 " int\n"
11405 " guestfs_mknod_b (guestfs_h *g,\n"
11406 "                  int mode,\n"
11407 "                  int devmajor,\n"
11408 "                  int devminor,\n"
11409 "                  const char *path);\n"
11410 "\n"
11411 msgstr ""
11412
11413 # type: textblock
11414 #: ../src/guestfs-actions.pod:4339
11415 msgid ""
11416 "This call creates a block device node called C<path> with mode C<mode> and "
11417 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
11418 "wrapper around C<guestfs_mknod>."
11419 msgstr ""
11420
11421 # type: =head2
11422 #: ../src/guestfs-actions.pod:4349
11423 msgid "guestfs_mknod_c"
11424 msgstr ""
11425
11426 # type: verbatim
11427 #: ../src/guestfs-actions.pod:4351
11428 #, no-wrap
11429 msgid ""
11430 " int\n"
11431 " guestfs_mknod_c (guestfs_h *g,\n"
11432 "                  int mode,\n"
11433 "                  int devmajor,\n"
11434 "                  int devminor,\n"
11435 "                  const char *path);\n"
11436 "\n"
11437 msgstr ""
11438
11439 # type: textblock
11440 #: ../src/guestfs-actions.pod:4358
11441 msgid ""
11442 "This call creates a char device node called C<path> with mode C<mode> and "
11443 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
11444 "wrapper around C<guestfs_mknod>."
11445 msgstr ""
11446
11447 # type: =head2
11448 #: ../src/guestfs-actions.pod:4368
11449 msgid "guestfs_mkswap"
11450 msgstr ""
11451
11452 # type: verbatim
11453 #: ../src/guestfs-actions.pod:4370
11454 #, no-wrap
11455 msgid ""
11456 " int\n"
11457 " guestfs_mkswap (guestfs_h *g,\n"
11458 "                 const char *device);\n"
11459 "\n"
11460 msgstr ""
11461
11462 # type: textblock
11463 #: ../src/guestfs-actions.pod:4374 ../fish/guestfish-actions.pod:2935
11464 msgid "Create a swap partition on C<device>."
11465 msgstr ""
11466
11467 # type: =head2
11468 #: ../src/guestfs-actions.pod:4380
11469 msgid "guestfs_mkswap_L"
11470 msgstr ""
11471
11472 # type: verbatim
11473 #: ../src/guestfs-actions.pod:4382
11474 #, no-wrap
11475 msgid ""
11476 " int\n"
11477 " guestfs_mkswap_L (guestfs_h *g,\n"
11478 "                   const char *label,\n"
11479 "                   const char *device);\n"
11480 "\n"
11481 msgstr ""
11482
11483 # type: textblock
11484 #: ../src/guestfs-actions.pod:4387 ../fish/guestfish-actions.pod:2941
11485 msgid "Create a swap partition on C<device> with label C<label>."
11486 msgstr ""
11487
11488 # type: textblock
11489 #: ../src/guestfs-actions.pod:4389 ../fish/guestfish-actions.pod:2943
11490 msgid ""
11491 "Note that you cannot attach a swap label to a block device "
11492 "(eg. C</dev/sda>), just to a partition.  This appears to be a limitation of "
11493 "the kernel or swap tools."
11494 msgstr ""
11495
11496 # type: =head2
11497 #: ../src/guestfs-actions.pod:4397
11498 msgid "guestfs_mkswap_U"
11499 msgstr ""
11500
11501 # type: verbatim
11502 #: ../src/guestfs-actions.pod:4399
11503 #, no-wrap
11504 msgid ""
11505 " int\n"
11506 " guestfs_mkswap_U (guestfs_h *g,\n"
11507 "                   const char *uuid,\n"
11508 "                   const char *device);\n"
11509 "\n"
11510 msgstr ""
11511
11512 # type: textblock
11513 #: ../src/guestfs-actions.pod:4404 ../fish/guestfish-actions.pod:2951
11514 msgid "Create a swap partition on C<device> with UUID C<uuid>."
11515 msgstr ""
11516
11517 # type: =head2
11518 #: ../src/guestfs-actions.pod:4410
11519 msgid "guestfs_mkswap_file"
11520 msgstr ""
11521
11522 # type: verbatim
11523 #: ../src/guestfs-actions.pod:4412
11524 #, no-wrap
11525 msgid ""
11526 " int\n"
11527 " guestfs_mkswap_file (guestfs_h *g,\n"
11528 "                      const char *path);\n"
11529 "\n"
11530 msgstr ""
11531
11532 # type: textblock
11533 #: ../src/guestfs-actions.pod:4416 ../fish/guestfish-actions.pod:2957
11534 msgid "Create a swap file."
11535 msgstr ""
11536
11537 # type: textblock
11538 #: ../src/guestfs-actions.pod:4418
11539 msgid ""
11540 "This command just writes a swap file signature to an existing file.  To "
11541 "create the file itself, use something like C<guestfs_fallocate>."
11542 msgstr ""
11543
11544 # type: =head2
11545 #: ../src/guestfs-actions.pod:4425
11546 msgid "guestfs_modprobe"
11547 msgstr ""
11548
11549 # type: verbatim
11550 #: ../src/guestfs-actions.pod:4427
11551 #, no-wrap
11552 msgid ""
11553 " int\n"
11554 " guestfs_modprobe (guestfs_h *g,\n"
11555 "                   const char *modulename);\n"
11556 "\n"
11557 msgstr ""
11558
11559 # type: textblock
11560 #: ../src/guestfs-actions.pod:4431 ../fish/guestfish-actions.pod:2966
11561 msgid "This loads a kernel module in the appliance."
11562 msgstr ""
11563
11564 # type: textblock
11565 #: ../src/guestfs-actions.pod:4433 ../fish/guestfish-actions.pod:2968
11566 msgid ""
11567 "The kernel module must have been whitelisted when libguestfs was built (see "
11568 "C<appliance/kmod.whitelist.in> in the source)."
11569 msgstr ""
11570
11571 # type: =head2
11572 #: ../src/guestfs-actions.pod:4440
11573 msgid "guestfs_mount"
11574 msgstr ""
11575
11576 # type: verbatim
11577 #: ../src/guestfs-actions.pod:4442
11578 #, no-wrap
11579 msgid ""
11580 " int\n"
11581 " guestfs_mount (guestfs_h *g,\n"
11582 "                const char *device,\n"
11583 "                const char *mountpoint);\n"
11584 "\n"
11585 msgstr ""
11586
11587 # type: textblock
11588 #: ../src/guestfs-actions.pod:4447 ../fish/guestfish-actions.pod:2975
11589 msgid ""
11590 "Mount a guest disk at a position in the filesystem.  Block devices are named "
11591 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
11592 "those block devices contain partitions, they will have the usual names "
11593 "(eg. C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
11594 msgstr ""
11595
11596 # type: textblock
11597 #: ../src/guestfs-actions.pod:4453 ../fish/guestfish-actions.pod:2981
11598 msgid ""
11599 "The rules are the same as for L<mount(2)>: A filesystem must first be "
11600 "mounted on C</> before others can be mounted.  Other filesystems can only be "
11601 "mounted on directories which already exist."
11602 msgstr ""
11603
11604 # type: textblock
11605 #: ../src/guestfs-actions.pod:4458 ../fish/guestfish-actions.pod:2986
11606 msgid ""
11607 "The mounted filesystem is writable, if we have sufficient permissions on the "
11608 "underlying device."
11609 msgstr ""
11610
11611 # type: textblock
11612 #: ../src/guestfs-actions.pod:4461
11613 msgid ""
11614 "B<Important note:> When you use this call, the filesystem options C<sync> "
11615 "and C<noatime> are set implicitly.  This was originally done because we "
11616 "thought it would improve reliability, but it turns out that I<-o sync> has a "
11617 "very large negative performance impact and negligible effect on "
11618 "reliability.  Therefore we recommend that you avoid using C<guestfs_mount> "
11619 "in any code that needs performance, and instead use C<guestfs_mount_options> "
11620 "(use an empty string for the first parameter if you don't want any options)."
11621 msgstr ""
11622
11623 # type: =head2
11624 #: ../src/guestfs-actions.pod:4475
11625 msgid "guestfs_mount_loop"
11626 msgstr ""
11627
11628 # type: verbatim
11629 #: ../src/guestfs-actions.pod:4477
11630 #, no-wrap
11631 msgid ""
11632 " int\n"
11633 " guestfs_mount_loop (guestfs_h *g,\n"
11634 "                     const char *file,\n"
11635 "                     const char *mountpoint);\n"
11636 "\n"
11637 msgstr ""
11638
11639 # type: textblock
11640 #: ../src/guestfs-actions.pod:4482 ../fish/guestfish-actions.pod:3003
11641 msgid ""
11642 "This command lets you mount C<file> (a filesystem image in a file) on a "
11643 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
11644 "mountpoint>."
11645 msgstr ""
11646
11647 # type: =head2
11648 #: ../src/guestfs-actions.pod:4490
11649 msgid "guestfs_mount_options"
11650 msgstr ""
11651
11652 # type: verbatim
11653 #: ../src/guestfs-actions.pod:4492
11654 #, no-wrap
11655 msgid ""
11656 " int\n"
11657 " guestfs_mount_options (guestfs_h *g,\n"
11658 "                        const char *options,\n"
11659 "                        const char *device,\n"
11660 "                        const char *mountpoint);\n"
11661 "\n"
11662 msgstr ""
11663
11664 # type: textblock
11665 #: ../src/guestfs-actions.pod:4498
11666 msgid ""
11667 "This is the same as the C<guestfs_mount> command, but it allows you to set "
11668 "the mount options as for the L<mount(8)> I<-o> flag."
11669 msgstr ""
11670
11671 # type: textblock
11672 #: ../src/guestfs-actions.pod:4502 ../fish/guestfish-actions.pod:3015
11673 msgid ""
11674 "If the C<options> parameter is an empty string, then no options are passed "
11675 "(all options default to whatever the filesystem uses)."
11676 msgstr ""
11677
11678 # type: textblock
11679 #: ../src/guestfs-actions.pod:4508 ../src/guestfs-actions.pod:4522 ../src/guestfs-actions.pod:4539
11680 msgid "(Added in 1.0.10)"
11681 msgstr ""
11682
11683 # type: =head2
11684 #: ../src/guestfs-actions.pod:4510
11685 msgid "guestfs_mount_ro"
11686 msgstr ""
11687
11688 # type: verbatim
11689 #: ../src/guestfs-actions.pod:4512
11690 #, no-wrap
11691 msgid ""
11692 " int\n"
11693 " guestfs_mount_ro (guestfs_h *g,\n"
11694 "                   const char *device,\n"
11695 "                   const char *mountpoint);\n"
11696 "\n"
11697 msgstr ""
11698
11699 # type: textblock
11700 #: ../src/guestfs-actions.pod:4517
11701 msgid ""
11702 "This is the same as the C<guestfs_mount> command, but it mounts the "
11703 "filesystem with the read-only (I<-o ro>) flag."
11704 msgstr ""
11705
11706 # type: =head2
11707 #: ../src/guestfs-actions.pod:4524
11708 msgid "guestfs_mount_vfs"
11709 msgstr ""
11710
11711 # type: verbatim
11712 #: ../src/guestfs-actions.pod:4526
11713 #, no-wrap
11714 msgid ""
11715 " int\n"
11716 " guestfs_mount_vfs (guestfs_h *g,\n"
11717 "                    const char *options,\n"
11718 "                    const char *vfstype,\n"
11719 "                    const char *device,\n"
11720 "                    const char *mountpoint);\n"
11721 "\n"
11722 msgstr ""
11723
11724 # type: textblock
11725 #: ../src/guestfs-actions.pod:4533
11726 msgid ""
11727 "This is the same as the C<guestfs_mount> command, but it allows you to set "
11728 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and "
11729 "I<-t> flags."
11730 msgstr ""
11731
11732 # type: =head2
11733 #: ../src/guestfs-actions.pod:4541
11734 msgid "guestfs_mountpoints"
11735 msgstr ""
11736
11737 # type: verbatim
11738 #: ../src/guestfs-actions.pod:4543
11739 #, no-wrap
11740 msgid ""
11741 " char **\n"
11742 " guestfs_mountpoints (guestfs_h *g);\n"
11743 "\n"
11744 msgstr ""
11745
11746 # type: textblock
11747 #: ../src/guestfs-actions.pod:4546
11748 msgid ""
11749 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
11750 "devices.  This one returns a hash table (map) of device name to directory "
11751 "where the device is mounted."
11752 msgstr ""
11753
11754 # type: =head2
11755 #: ../src/guestfs-actions.pod:4558
11756 msgid "guestfs_mounts"
11757 msgstr ""
11758
11759 # type: verbatim
11760 #: ../src/guestfs-actions.pod:4560
11761 #, no-wrap
11762 msgid ""
11763 " char **\n"
11764 " guestfs_mounts (guestfs_h *g);\n"
11765 "\n"
11766 msgstr ""
11767
11768 # type: textblock
11769 #: ../src/guestfs-actions.pod:4563 ../fish/guestfish-actions.pod:3046
11770 msgid ""
11771 "This returns the list of currently mounted filesystems.  It returns the list "
11772 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
11773 msgstr ""
11774
11775 # type: textblock
11776 #: ../src/guestfs-actions.pod:4566 ../fish/guestfish-actions.pod:3049
11777 msgid "Some internal mounts are not shown."
11778 msgstr ""
11779
11780 # type: textblock
11781 #: ../src/guestfs-actions.pod:4568
11782 msgid "See also: C<guestfs_mountpoints>"
11783 msgstr ""
11784
11785 # type: =head2
11786 #: ../src/guestfs-actions.pod:4576
11787 msgid "guestfs_mv"
11788 msgstr ""
11789
11790 # type: verbatim
11791 #: ../src/guestfs-actions.pod:4578
11792 #, no-wrap
11793 msgid ""
11794 " int\n"
11795 " guestfs_mv (guestfs_h *g,\n"
11796 "             const char *src,\n"
11797 "             const char *dest);\n"
11798 "\n"
11799 msgstr ""
11800
11801 # type: textblock
11802 #: ../src/guestfs-actions.pod:4583 ../fish/guestfish-actions.pod:3057
11803 msgid ""
11804 "This moves a file from C<src> to C<dest> where C<dest> is either a "
11805 "destination filename or destination directory."
11806 msgstr ""
11807
11808 # type: =head2
11809 #: ../src/guestfs-actions.pod:4590
11810 msgid "guestfs_ntfs_3g_probe"
11811 msgstr ""
11812
11813 # type: verbatim
11814 #: ../src/guestfs-actions.pod:4592
11815 #, no-wrap
11816 msgid ""
11817 " int\n"
11818 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
11819 "                        int rw,\n"
11820 "                        const char *device);\n"
11821 "\n"
11822 msgstr ""
11823
11824 # type: textblock
11825 #: ../src/guestfs-actions.pod:4597 ../fish/guestfish-actions.pod:3064
11826 msgid ""
11827 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
11828 "C<device> for mountability.  (Not all NTFS volumes can be mounted "
11829 "read-write, and some cannot be mounted at all)."
11830 msgstr ""
11831
11832 # type: textblock
11833 #: ../src/guestfs-actions.pod:4601 ../fish/guestfish-actions.pod:3068
11834 msgid ""
11835 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
11836 "can be mounted read-write.  Set it to false if you want to test if the "
11837 "volume can be mounted read-only."
11838 msgstr ""
11839
11840 # type: textblock
11841 #: ../src/guestfs-actions.pod:4605 ../fish/guestfish-actions.pod:3072
11842 msgid ""
11843 "The return value is an integer which C<0> if the operation would succeed, or "
11844 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
11845 msgstr ""
11846
11847 # type: textblock
11848 #: ../src/guestfs-actions.pod:4611
11849 msgid "(Added in 1.0.43)"
11850 msgstr ""
11851
11852 # type: =head2
11853 #: ../src/guestfs-actions.pod:4613
11854 msgid "guestfs_ntfsresize"
11855 msgstr ""
11856
11857 # type: verbatim
11858 #: ../src/guestfs-actions.pod:4615
11859 #, no-wrap
11860 msgid ""
11861 " int\n"
11862 " guestfs_ntfsresize (guestfs_h *g,\n"
11863 "                     const char *device);\n"
11864 "\n"
11865 msgstr ""
11866
11867 # type: textblock
11868 #: ../src/guestfs-actions.pod:4619 ../fish/guestfish-actions.pod:3080
11869 msgid ""
11870 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
11871 "size of the underlying device.  See also L<ntfsresize(8)>."
11872 msgstr ""
11873
11874 # type: =head2
11875 #: ../src/guestfs-actions.pod:4627
11876 msgid "guestfs_ntfsresize_size"
11877 msgstr ""
11878
11879 # type: verbatim
11880 #: ../src/guestfs-actions.pod:4629
11881 #, no-wrap
11882 msgid ""
11883 " int\n"
11884 " guestfs_ntfsresize_size (guestfs_h *g,\n"
11885 "                          const char *device,\n"
11886 "                          int64_t size);\n"
11887 "\n"
11888 msgstr ""
11889
11890 # type: textblock
11891 #: ../src/guestfs-actions.pod:4634
11892 msgid ""
11893 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
11894 "to specify the new size (in bytes) explicitly."
11895 msgstr ""
11896
11897 # type: textblock
11898 #: ../src/guestfs-actions.pod:4639 ../src/guestfs-actions.pod:5075 ../src/guestfs-actions.pod:5148 ../src/guestfs-actions.pod:5397
11899 msgid "(Added in 1.3.14)"
11900 msgstr ""
11901
11902 # type: =head2
11903 #: ../src/guestfs-actions.pod:4641
11904 msgid "guestfs_part_add"
11905 msgstr ""
11906
11907 # type: verbatim
11908 #: ../src/guestfs-actions.pod:4643
11909 #, no-wrap
11910 msgid ""
11911 " int\n"
11912 " guestfs_part_add (guestfs_h *g,\n"
11913 "                   const char *device,\n"
11914 "                   const char *prlogex,\n"
11915 "                   int64_t startsect,\n"
11916 "                   int64_t endsect);\n"
11917 "\n"
11918 msgstr ""
11919
11920 # type: textblock
11921 #: ../src/guestfs-actions.pod:4650
11922 msgid ""
11923 "This command adds a partition to C<device>.  If there is no partition table "
11924 "on the device, call C<guestfs_part_init> first."
11925 msgstr ""
11926
11927 # type: textblock
11928 #: ../src/guestfs-actions.pod:4653 ../fish/guestfish-actions.pod:3098
11929 msgid ""
11930 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
11931 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
11932 "C<logical>) and C<e> (or C<extended>) partition types."
11933 msgstr ""
11934
11935 # type: textblock
11936 #: ../src/guestfs-actions.pod:4658 ../fish/guestfish-actions.pod:3103
11937 msgid ""
11938 "C<startsect> and C<endsect> are the start and end of the partition in "
11939 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
11940 "from the end of the disk (C<-1> is the last sector)."
11941 msgstr ""
11942
11943 # type: textblock
11944 #: ../src/guestfs-actions.pod:4662
11945 msgid ""
11946 "Creating a partition which covers the whole disk is not so easy.  Use "
11947 "C<guestfs_part_disk> to do that."
11948 msgstr ""
11949
11950 # type: textblock
11951 #: ../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
11952 msgid "(Added in 1.0.78)"
11953 msgstr ""
11954
11955 # type: =head2
11956 #: ../src/guestfs-actions.pod:4669
11957 msgid "guestfs_part_del"
11958 msgstr ""
11959
11960 # type: verbatim
11961 #: ../src/guestfs-actions.pod:4671
11962 #, no-wrap
11963 msgid ""
11964 " int\n"
11965 " guestfs_part_del (guestfs_h *g,\n"
11966 "                   const char *device,\n"
11967 "                   int partnum);\n"
11968 "\n"
11969 msgstr ""
11970
11971 # type: textblock
11972 #: ../src/guestfs-actions.pod:4676 ../fish/guestfish-actions.pod:3114
11973 msgid "This command deletes the partition numbered C<partnum> on C<device>."
11974 msgstr ""
11975
11976 # type: textblock
11977 #: ../src/guestfs-actions.pod:4678 ../fish/guestfish-actions.pod:3116
11978 msgid ""
11979 "Note that in the case of MBR partitioning, deleting an extended partition "
11980 "also deletes any logical partitions it contains."
11981 msgstr ""
11982
11983 # type: =head2
11984 #: ../src/guestfs-actions.pod:4686
11985 msgid "guestfs_part_disk"
11986 msgstr ""
11987
11988 # type: verbatim
11989 #: ../src/guestfs-actions.pod:4688
11990 #, no-wrap
11991 msgid ""
11992 " int\n"
11993 " guestfs_part_disk (guestfs_h *g,\n"
11994 "                    const char *device,\n"
11995 "                    const char *parttype);\n"
11996 "\n"
11997 msgstr ""
11998
11999 # type: textblock
12000 #: ../src/guestfs-actions.pod:4693
12001 msgid ""
12002 "This command is simply a combination of C<guestfs_part_init> followed by "
12003 "C<guestfs_part_add> to create a single primary partition covering the whole "
12004 "disk."
12005 msgstr ""
12006
12007 # type: textblock
12008 #: ../src/guestfs-actions.pod:4697
12009 msgid ""
12010 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
12011 "possible values are described in C<guestfs_part_init>."
12012 msgstr ""
12013
12014 # type: =head2
12015 #: ../src/guestfs-actions.pod:4707
12016 msgid "guestfs_part_get_bootable"
12017 msgstr ""
12018
12019 # type: verbatim
12020 #: ../src/guestfs-actions.pod:4709
12021 #, no-wrap
12022 msgid ""
12023 " int\n"
12024 " guestfs_part_get_bootable (guestfs_h *g,\n"
12025 "                            const char *device,\n"
12026 "                            int partnum);\n"
12027 "\n"
12028 msgstr ""
12029
12030 # type: textblock
12031 #: ../src/guestfs-actions.pod:4714 ../fish/guestfish-actions.pod:3138
12032 msgid ""
12033 "This command returns true if the partition C<partnum> on C<device> has the "
12034 "bootable flag set."
12035 msgstr ""
12036
12037 # type: textblock
12038 #: ../src/guestfs-actions.pod:4717
12039 msgid "See also C<guestfs_part_set_bootable>."
12040 msgstr ""
12041
12042 # type: =head2
12043 #: ../src/guestfs-actions.pod:4723
12044 msgid "guestfs_part_get_mbr_id"
12045 msgstr ""
12046
12047 # type: verbatim
12048 #: ../src/guestfs-actions.pod:4725
12049 #, no-wrap
12050 msgid ""
12051 " int\n"
12052 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
12053 "                          const char *device,\n"
12054 "                          int partnum);\n"
12055 "\n"
12056 msgstr ""
12057
12058 # type: textblock
12059 #: ../src/guestfs-actions.pod:4730 ../fish/guestfish-actions.pod:3147
12060 msgid ""
12061 "Returns the MBR type byte (also known as the ID byte) from the numbered "
12062 "partition C<partnum>."
12063 msgstr ""
12064
12065 # type: textblock
12066 #: ../src/guestfs-actions.pod:4733 ../src/guestfs-actions.pod:4909
12067 msgid ""
12068 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
12069 "undefined results for other partition table types (see "
12070 "C<guestfs_part_get_parttype>)."
12071 msgstr ""
12072
12073 # type: =head2
12074 #: ../src/guestfs-actions.pod:4741
12075 msgid "guestfs_part_get_parttype"
12076 msgstr ""
12077
12078 # type: verbatim
12079 #: ../src/guestfs-actions.pod:4743
12080 #, no-wrap
12081 msgid ""
12082 " char *\n"
12083 " guestfs_part_get_parttype (guestfs_h *g,\n"
12084 "                            const char *device);\n"
12085 "\n"
12086 msgstr ""
12087
12088 # type: textblock
12089 #: ../src/guestfs-actions.pod:4747 ../fish/guestfish-actions.pod:3158
12090 msgid ""
12091 "This command examines the partition table on C<device> and returns the "
12092 "partition table type (format) being used."
12093 msgstr ""
12094
12095 # type: textblock
12096 #: ../src/guestfs-actions.pod:4750
12097 msgid ""
12098 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
12099 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
12100 "possible, although unusual.  See C<guestfs_part_init> for a full list."
12101 msgstr ""
12102
12103 # type: =head2
12104 #: ../src/guestfs-actions.pod:4760
12105 msgid "guestfs_part_init"
12106 msgstr ""
12107
12108 # type: verbatim
12109 #: ../src/guestfs-actions.pod:4762
12110 #, no-wrap
12111 msgid ""
12112 " int\n"
12113 " guestfs_part_init (guestfs_h *g,\n"
12114 "                    const char *device,\n"
12115 "                    const char *parttype);\n"
12116 "\n"
12117 msgstr ""
12118
12119 # type: textblock
12120 #: ../src/guestfs-actions.pod:4767 ../fish/guestfish-actions.pod:3170
12121 msgid ""
12122 "This creates an empty partition table on C<device> of one of the partition "
12123 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
12124 "(for large disks)."
12125 msgstr ""
12126
12127 # type: textblock
12128 #: ../src/guestfs-actions.pod:4771
12129 msgid ""
12130 "Initially there are no partitions.  Following this, you should call "
12131 "C<guestfs_part_add> for each partition required."
12132 msgstr ""
12133
12134 # type: textblock
12135 #: ../src/guestfs-actions.pod:4774 ../fish/guestfish-actions.pod:3177
12136 msgid "Possible values for C<parttype> are:"
12137 msgstr ""
12138
12139 # type: =item
12140 #: ../src/guestfs-actions.pod:4778 ../fish/guestfish-actions.pod:3181
12141 msgid "B<efi> | B<gpt>"
12142 msgstr ""
12143
12144 # type: textblock
12145 #: ../src/guestfs-actions.pod:4780 ../fish/guestfish-actions.pod:3183
12146 msgid "Intel EFI / GPT partition table."
12147 msgstr ""
12148
12149 # type: textblock
12150 #: ../src/guestfs-actions.pod:4782 ../fish/guestfish-actions.pod:3185
12151 msgid ""
12152 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
12153 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
12154 "the C<mbr> format."
12155 msgstr ""
12156
12157 # type: =item
12158 #: ../src/guestfs-actions.pod:4786 ../fish/guestfish-actions.pod:3189
12159 msgid "B<mbr> | B<msdos>"
12160 msgstr ""
12161
12162 # type: textblock
12163 #: ../src/guestfs-actions.pod:4788 ../fish/guestfish-actions.pod:3191
12164 msgid ""
12165 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
12166 "Windows.  This partition type will B<only> work for device sizes up to 2 "
12167 "TB.  For large disks we recommend using C<gpt>."
12168 msgstr ""
12169
12170 # type: textblock
12171 #: ../src/guestfs-actions.pod:4795 ../fish/guestfish-actions.pod:3198
12172 msgid "Other partition table types that may work but are not supported include:"
12173 msgstr ""
12174
12175 # type: =item
12176 #: ../src/guestfs-actions.pod:4800 ../fish/guestfish-actions.pod:3203
12177 msgid "B<aix>"
12178 msgstr ""
12179
12180 # type: textblock
12181 #: ../src/guestfs-actions.pod:4802 ../fish/guestfish-actions.pod:3205
12182 msgid "AIX disk labels."
12183 msgstr ""
12184
12185 # type: =item
12186 #: ../src/guestfs-actions.pod:4804 ../fish/guestfish-actions.pod:3207
12187 msgid "B<amiga> | B<rdb>"
12188 msgstr ""
12189
12190 # type: textblock
12191 #: ../src/guestfs-actions.pod:4806 ../fish/guestfish-actions.pod:3209
12192 msgid "Amiga \"Rigid Disk Block\" format."
12193 msgstr ""
12194
12195 # type: =item
12196 #: ../src/guestfs-actions.pod:4808 ../fish/guestfish-actions.pod:3211
12197 msgid "B<bsd>"
12198 msgstr ""
12199
12200 # type: textblock
12201 #: ../src/guestfs-actions.pod:4810 ../fish/guestfish-actions.pod:3213
12202 msgid "BSD disk labels."
12203 msgstr ""
12204
12205 # type: =item
12206 #: ../src/guestfs-actions.pod:4812 ../fish/guestfish-actions.pod:3215
12207 msgid "B<dasd>"
12208 msgstr ""
12209
12210 # type: textblock
12211 #: ../src/guestfs-actions.pod:4814 ../fish/guestfish-actions.pod:3217
12212 msgid "DASD, used on IBM mainframes."
12213 msgstr ""
12214
12215 # type: =item
12216 #: ../src/guestfs-actions.pod:4816 ../fish/guestfish-actions.pod:3219
12217 msgid "B<dvh>"
12218 msgstr ""
12219
12220 # type: textblock
12221 #: ../src/guestfs-actions.pod:4818 ../fish/guestfish-actions.pod:3221
12222 msgid "MIPS/SGI volumes."
12223 msgstr ""
12224
12225 # type: =item
12226 #: ../src/guestfs-actions.pod:4820 ../fish/guestfish-actions.pod:3223
12227 msgid "B<mac>"
12228 msgstr ""
12229
12230 # type: textblock
12231 #: ../src/guestfs-actions.pod:4822 ../fish/guestfish-actions.pod:3225
12232 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
12233 msgstr ""
12234
12235 # type: =item
12236 #: ../src/guestfs-actions.pod:4824 ../fish/guestfish-actions.pod:3227
12237 msgid "B<pc98>"
12238 msgstr ""
12239
12240 # type: textblock
12241 #: ../src/guestfs-actions.pod:4826 ../fish/guestfish-actions.pod:3229
12242 msgid "NEC PC-98 format, common in Japan apparently."
12243 msgstr ""
12244
12245 # type: =item
12246 #: ../src/guestfs-actions.pod:4828 ../fish/guestfish-actions.pod:3231
12247 msgid "B<sun>"
12248 msgstr ""
12249
12250 # type: textblock
12251 #: ../src/guestfs-actions.pod:4830 ../fish/guestfish-actions.pod:3233
12252 msgid "Sun disk labels."
12253 msgstr ""
12254
12255 # type: =head2
12256 #: ../src/guestfs-actions.pod:4838
12257 msgid "guestfs_part_list"
12258 msgstr ""
12259
12260 # type: verbatim
12261 #: ../src/guestfs-actions.pod:4840
12262 #, no-wrap
12263 msgid ""
12264 " struct guestfs_partition_list *\n"
12265 " guestfs_part_list (guestfs_h *g,\n"
12266 "                    const char *device);\n"
12267 "\n"
12268 msgstr ""
12269
12270 # type: textblock
12271 #: ../src/guestfs-actions.pod:4844 ../fish/guestfish-actions.pod:3241
12272 msgid ""
12273 "This command parses the partition table on C<device> and returns the list of "
12274 "partitions found."
12275 msgstr ""
12276
12277 # type: textblock
12278 #: ../src/guestfs-actions.pod:4847 ../fish/guestfish-actions.pod:3244
12279 msgid "The fields in the returned structure are:"
12280 msgstr ""
12281
12282 # type: =item
12283 #: ../src/guestfs-actions.pod:4851 ../fish/guestfish-actions.pod:3248
12284 msgid "B<part_num>"
12285 msgstr ""
12286
12287 # type: textblock
12288 #: ../src/guestfs-actions.pod:4853 ../fish/guestfish-actions.pod:3250
12289 msgid "Partition number, counting from 1."
12290 msgstr ""
12291
12292 # type: =item
12293 #: ../src/guestfs-actions.pod:4855 ../fish/guestfish-actions.pod:3252
12294 msgid "B<part_start>"
12295 msgstr ""
12296
12297 # type: textblock
12298 #: ../src/guestfs-actions.pod:4857
12299 msgid ""
12300 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
12301 "the device's sector size, see C<guestfs_blockdev_getss>."
12302 msgstr ""
12303
12304 # type: =item
12305 #: ../src/guestfs-actions.pod:4860 ../fish/guestfish-actions.pod:3257
12306 msgid "B<part_end>"
12307 msgstr ""
12308
12309 # type: textblock
12310 #: ../src/guestfs-actions.pod:4862 ../fish/guestfish-actions.pod:3259
12311 msgid "End of the partition in bytes."
12312 msgstr ""
12313
12314 # type: =item
12315 #: ../src/guestfs-actions.pod:4864 ../fish/guestfish-actions.pod:3261
12316 msgid "B<part_size>"
12317 msgstr ""
12318
12319 # type: textblock
12320 #: ../src/guestfs-actions.pod:4866 ../fish/guestfish-actions.pod:3263
12321 msgid "Size of the partition in bytes."
12322 msgstr ""
12323
12324 # type: textblock
12325 #: ../src/guestfs-actions.pod:4870
12326 msgid ""
12327 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
12328 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
12329 "use>."
12330 msgstr ""
12331
12332 # type: =head2
12333 #: ../src/guestfs-actions.pod:4876
12334 msgid "guestfs_part_set_bootable"
12335 msgstr ""
12336
12337 # type: verbatim
12338 #: ../src/guestfs-actions.pod:4878
12339 #, no-wrap
12340 msgid ""
12341 " int\n"
12342 " guestfs_part_set_bootable (guestfs_h *g,\n"
12343 "                            const char *device,\n"
12344 "                            int partnum,\n"
12345 "                            int bootable);\n"
12346 "\n"
12347 msgstr ""
12348
12349 # type: textblock
12350 #: ../src/guestfs-actions.pod:4884 ../fish/guestfish-actions.pod:3271
12351 msgid ""
12352 "This sets the bootable flag on partition numbered C<partnum> on device "
12353 "C<device>.  Note that partitions are numbered from 1."
12354 msgstr ""
12355
12356 # type: textblock
12357 #: ../src/guestfs-actions.pod:4887 ../fish/guestfish-actions.pod:3274
12358 msgid ""
12359 "The bootable flag is used by some operating systems (notably Windows) to "
12360 "determine which partition to boot from.  It is by no means universally "
12361 "recognized."
12362 msgstr ""
12363
12364 # type: =head2
12365 #: ../src/guestfs-actions.pod:4895
12366 msgid "guestfs_part_set_mbr_id"
12367 msgstr ""
12368
12369 # type: verbatim
12370 #: ../src/guestfs-actions.pod:4897
12371 #, no-wrap
12372 msgid ""
12373 " int\n"
12374 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
12375 "                          const char *device,\n"
12376 "                          int partnum,\n"
12377 "                          int idbyte);\n"
12378 "\n"
12379 msgstr ""
12380
12381 # type: textblock
12382 #: ../src/guestfs-actions.pod:4903 ../fish/guestfish-actions.pod:3282
12383 msgid ""
12384 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
12385 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
12386 "documentation are in fact hexadecimal numbers, but usually documented "
12387 "without any leading \"0x\" which might be confusing."
12388 msgstr ""
12389
12390 # type: =head2
12391 #: ../src/guestfs-actions.pod:4917
12392 msgid "guestfs_part_set_name"
12393 msgstr ""
12394
12395 # type: verbatim
12396 #: ../src/guestfs-actions.pod:4919
12397 #, no-wrap
12398 msgid ""
12399 " int\n"
12400 " guestfs_part_set_name (guestfs_h *g,\n"
12401 "                        const char *device,\n"
12402 "                        int partnum,\n"
12403 "                        const char *name);\n"
12404 "\n"
12405 msgstr ""
12406
12407 # type: textblock
12408 #: ../src/guestfs-actions.pod:4925 ../fish/guestfish-actions.pod:3296
12409 msgid ""
12410 "This sets the partition name on partition numbered C<partnum> on device "
12411 "C<device>.  Note that partitions are numbered from 1."
12412 msgstr ""
12413
12414 # type: textblock
12415 #: ../src/guestfs-actions.pod:4928 ../fish/guestfish-actions.pod:3299
12416 msgid ""
12417 "The partition name can only be set on certain types of partition table.  "
12418 "This works on C<gpt> but not on C<mbr> partitions."
12419 msgstr ""
12420
12421 # type: =head2
12422 #: ../src/guestfs-actions.pod:4935
12423 msgid "guestfs_part_to_dev"
12424 msgstr ""
12425
12426 # type: verbatim
12427 #: ../src/guestfs-actions.pod:4937
12428 #, no-wrap
12429 msgid ""
12430 " char *\n"
12431 " guestfs_part_to_dev (guestfs_h *g,\n"
12432 "                      const char *partition);\n"
12433 "\n"
12434 msgstr ""
12435
12436 # type: textblock
12437 #: ../src/guestfs-actions.pod:4941 ../fish/guestfish-actions.pod:3306
12438 msgid ""
12439 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
12440 "partition number, returning the device name (eg. \"/dev/sdb\")."
12441 msgstr ""
12442
12443 # type: textblock
12444 #: ../src/guestfs-actions.pod:4945
12445 msgid ""
12446 "The named partition must exist, for example as a string returned from "
12447 "C<guestfs_list_partitions>."
12448 msgstr ""
12449
12450 # type: =head2
12451 #: ../src/guestfs-actions.pod:4953
12452 msgid "guestfs_ping_daemon"
12453 msgstr ""
12454
12455 # type: verbatim
12456 #: ../src/guestfs-actions.pod:4955
12457 #, no-wrap
12458 msgid ""
12459 " int\n"
12460 " guestfs_ping_daemon (guestfs_h *g);\n"
12461 "\n"
12462 msgstr ""
12463
12464 # type: textblock
12465 #: ../src/guestfs-actions.pod:4958 ../fish/guestfish-actions.pod:3317
12466 msgid ""
12467 "This is a test probe into the guestfs daemon running inside the qemu "
12468 "subprocess.  Calling this function checks that the daemon responds to the "
12469 "ping message, without affecting the daemon or attached block device(s) in "
12470 "any other way."
12471 msgstr ""
12472
12473 # type: =head2
12474 #: ../src/guestfs-actions.pod:4967
12475 msgid "guestfs_pread"
12476 msgstr ""
12477
12478 # type: verbatim
12479 #: ../src/guestfs-actions.pod:4969
12480 #, no-wrap
12481 msgid ""
12482 " char *\n"
12483 " guestfs_pread (guestfs_h *g,\n"
12484 "                const char *path,\n"
12485 "                int count,\n"
12486 "                int64_t offset,\n"
12487 "                size_t *size_r);\n"
12488 "\n"
12489 msgstr ""
12490
12491 # type: textblock
12492 #: ../src/guestfs-actions.pod:4976 ../fish/guestfish-actions.pod:3326
12493 msgid ""
12494 "This command lets you read part of a file.  It reads C<count> bytes of the "
12495 "file, starting at C<offset>, from file C<path>."
12496 msgstr ""
12497
12498 # type: textblock
12499 #: ../src/guestfs-actions.pod:4979 ../src/guestfs-actions.pod:5005 ../fish/guestfish-actions.pod:3329 ../fish/guestfish-actions.pod:3344
12500 msgid ""
12501 "This may read fewer bytes than requested.  For further details see the "
12502 "L<pread(2)> system call."
12503 msgstr ""
12504
12505 # type: textblock
12506 #: ../src/guestfs-actions.pod:4982
12507 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
12508 msgstr ""
12509
12510 # type: =head2
12511 #: ../src/guestfs-actions.pod:4993
12512 msgid "guestfs_pread_device"
12513 msgstr ""
12514
12515 # type: verbatim
12516 #: ../src/guestfs-actions.pod:4995
12517 #, no-wrap
12518 msgid ""
12519 " char *\n"
12520 " guestfs_pread_device (guestfs_h *g,\n"
12521 "                       const char *device,\n"
12522 "                       int count,\n"
12523 "                       int64_t offset,\n"
12524 "                       size_t *size_r);\n"
12525 "\n"
12526 msgstr ""
12527
12528 # type: textblock
12529 #: ../src/guestfs-actions.pod:5002 ../fish/guestfish-actions.pod:3341
12530 msgid ""
12531 "This command lets you read part of a file.  It reads C<count> bytes of "
12532 "C<device>, starting at C<offset>."
12533 msgstr ""
12534
12535 # type: textblock
12536 #: ../src/guestfs-actions.pod:5008
12537 msgid "See also C<guestfs_pread>."
12538 msgstr ""
12539
12540 # type: textblock
12541 #: ../src/guestfs-actions.pod:5017
12542 msgid "(Added in 1.5.21)"
12543 msgstr ""
12544
12545 # type: =head2
12546 #: ../src/guestfs-actions.pod:5019
12547 msgid "guestfs_pvcreate"
12548 msgstr ""
12549
12550 # type: verbatim
12551 #: ../src/guestfs-actions.pod:5021
12552 #, no-wrap
12553 msgid ""
12554 " int\n"
12555 " guestfs_pvcreate (guestfs_h *g,\n"
12556 "                   const char *device);\n"
12557 "\n"
12558 msgstr ""
12559
12560 # type: textblock
12561 #: ../src/guestfs-actions.pod:5025 ../fish/guestfish-actions.pod:3356
12562 msgid ""
12563 "This creates an LVM physical volume on the named C<device>, where C<device> "
12564 "should usually be a partition name such as C</dev/sda1>."
12565 msgstr ""
12566
12567 # type: =head2
12568 #: ../src/guestfs-actions.pod:5033
12569 msgid "guestfs_pvremove"
12570 msgstr ""
12571
12572 # type: verbatim
12573 #: ../src/guestfs-actions.pod:5035
12574 #, no-wrap
12575 msgid ""
12576 " int\n"
12577 " guestfs_pvremove (guestfs_h *g,\n"
12578 "                   const char *device);\n"
12579 "\n"
12580 msgstr ""
12581
12582 # type: textblock
12583 #: ../src/guestfs-actions.pod:5039 ../fish/guestfish-actions.pod:3364
12584 msgid ""
12585 "This wipes a physical volume C<device> so that LVM will no longer recognise "
12586 "it."
12587 msgstr ""
12588
12589 # type: textblock
12590 #: ../src/guestfs-actions.pod:5042 ../fish/guestfish-actions.pod:3367
12591 msgid ""
12592 "The implementation uses the C<pvremove> command which refuses to wipe "
12593 "physical volumes that contain any volume groups, so you have to remove those "
12594 "first."
12595 msgstr ""
12596
12597 # type: =head2
12598 #: ../src/guestfs-actions.pod:5050
12599 msgid "guestfs_pvresize"
12600 msgstr ""
12601
12602 # type: verbatim
12603 #: ../src/guestfs-actions.pod:5052
12604 #, no-wrap
12605 msgid ""
12606 " int\n"
12607 " guestfs_pvresize (guestfs_h *g,\n"
12608 "                   const char *device);\n"
12609 "\n"
12610 msgstr ""
12611
12612 # type: textblock
12613 #: ../src/guestfs-actions.pod:5056 ../fish/guestfish-actions.pod:3375
12614 msgid ""
12615 "This resizes (expands or shrinks) an existing LVM physical volume to match "
12616 "the new size of the underlying device."
12617 msgstr ""
12618
12619 # type: =head2
12620 #: ../src/guestfs-actions.pod:5063
12621 msgid "guestfs_pvresize_size"
12622 msgstr ""
12623
12624 # type: verbatim
12625 #: ../src/guestfs-actions.pod:5065
12626 #, no-wrap
12627 msgid ""
12628 " int\n"
12629 " guestfs_pvresize_size (guestfs_h *g,\n"
12630 "                        const char *device,\n"
12631 "                        int64_t size);\n"
12632 "\n"
12633 msgstr ""
12634
12635 # type: textblock
12636 #: ../src/guestfs-actions.pod:5070
12637 msgid ""
12638 "This command is the same as C<guestfs_pvresize> except that it allows you to "
12639 "specify the new size (in bytes) explicitly."
12640 msgstr ""
12641
12642 # type: =head2
12643 #: ../src/guestfs-actions.pod:5077
12644 msgid "guestfs_pvs"
12645 msgstr ""
12646
12647 # type: verbatim
12648 #: ../src/guestfs-actions.pod:5079
12649 #, no-wrap
12650 msgid ""
12651 " char **\n"
12652 " guestfs_pvs (guestfs_h *g);\n"
12653 "\n"
12654 msgstr ""
12655
12656 # type: textblock
12657 #: ../src/guestfs-actions.pod:5082 ../fish/guestfish-actions.pod:3389
12658 msgid ""
12659 "List all the physical volumes detected.  This is the equivalent of the "
12660 "L<pvs(8)> command."
12661 msgstr ""
12662
12663 # type: textblock
12664 #: ../src/guestfs-actions.pod:5085 ../fish/guestfish-actions.pod:3392
12665 msgid ""
12666 "This returns a list of just the device names that contain PVs "
12667 "(eg. C</dev/sda2>)."
12668 msgstr ""
12669
12670 # type: textblock
12671 #: ../src/guestfs-actions.pod:5088
12672 msgid "See also C<guestfs_pvs_full>."
12673 msgstr ""
12674
12675 # type: =head2
12676 #: ../src/guestfs-actions.pod:5096
12677 msgid "guestfs_pvs_full"
12678 msgstr ""
12679
12680 # type: verbatim
12681 #: ../src/guestfs-actions.pod:5098
12682 #, no-wrap
12683 msgid ""
12684 " struct guestfs_lvm_pv_list *\n"
12685 " guestfs_pvs_full (guestfs_h *g);\n"
12686 "\n"
12687 msgstr ""
12688
12689 # type: textblock
12690 #: ../src/guestfs-actions.pod:5101 ../fish/guestfish-actions.pod:3401
12691 msgid ""
12692 "List all the physical volumes detected.  This is the equivalent of the "
12693 "L<pvs(8)> command.  The \"full\" version includes all fields."
12694 msgstr ""
12695
12696 # type: textblock
12697 #: ../src/guestfs-actions.pod:5104
12698 msgid ""
12699 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
12700 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after "
12701 "use>."
12702 msgstr ""
12703
12704 # type: =head2
12705 #: ../src/guestfs-actions.pod:5110
12706 msgid "guestfs_pvuuid"
12707 msgstr ""
12708
12709 # type: verbatim
12710 #: ../src/guestfs-actions.pod:5112
12711 #, no-wrap
12712 msgid ""
12713 " char *\n"
12714 " guestfs_pvuuid (guestfs_h *g,\n"
12715 "                 const char *device);\n"
12716 "\n"
12717 msgstr ""
12718
12719 # type: textblock
12720 #: ../src/guestfs-actions.pod:5116 ../fish/guestfish-actions.pod:3408
12721 msgid "This command returns the UUID of the LVM PV C<device>."
12722 msgstr ""
12723
12724 # type: =head2
12725 #: ../src/guestfs-actions.pod:5123
12726 msgid "guestfs_pwrite"
12727 msgstr ""
12728
12729 # type: verbatim
12730 #: ../src/guestfs-actions.pod:5125
12731 #, no-wrap
12732 msgid ""
12733 " int\n"
12734 " guestfs_pwrite (guestfs_h *g,\n"
12735 "                 const char *path,\n"
12736 "                 const char *content,\n"
12737 "                 size_t content_size,\n"
12738 "                 int64_t offset);\n"
12739 "\n"
12740 msgstr ""
12741
12742 # type: textblock
12743 #: ../src/guestfs-actions.pod:5132 ../fish/guestfish-actions.pod:3414
12744 msgid ""
12745 "This command writes to part of a file.  It writes the data buffer C<content> "
12746 "to the file C<path> starting at offset C<offset>."
12747 msgstr ""
12748
12749 # type: textblock
12750 #: ../src/guestfs-actions.pod:5135 ../fish/guestfish-actions.pod:3417
12751 msgid ""
12752 "This command implements the L<pwrite(2)> system call, and like that system "
12753 "call it may not write the full data requested.  The return value is the "
12754 "number of bytes that were actually written to the file.  This could even be "
12755 "0, although short writes are unlikely for regular files in ordinary "
12756 "circumstances."
12757 msgstr ""
12758
12759 # type: textblock
12760 #: ../src/guestfs-actions.pod:5141
12761 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
12762 msgstr ""
12763
12764 # type: =head2
12765 #: ../src/guestfs-actions.pod:5150
12766 msgid "guestfs_pwrite_device"
12767 msgstr ""
12768
12769 # type: verbatim
12770 #: ../src/guestfs-actions.pod:5152
12771 #, no-wrap
12772 msgid ""
12773 " int\n"
12774 " guestfs_pwrite_device (guestfs_h *g,\n"
12775 "                        const char *device,\n"
12776 "                        const char *content,\n"
12777 "                        size_t content_size,\n"
12778 "                        int64_t offset);\n"
12779 "\n"
12780 msgstr ""
12781
12782 # type: textblock
12783 #: ../src/guestfs-actions.pod:5159 ../fish/guestfish-actions.pod:3432
12784 msgid ""
12785 "This command writes to part of a device.  It writes the data buffer "
12786 "C<content> to C<device> starting at offset C<offset>."
12787 msgstr ""
12788
12789 # type: textblock
12790 #: ../src/guestfs-actions.pod:5162 ../fish/guestfish-actions.pod:3435
12791 msgid ""
12792 "This command implements the L<pwrite(2)> system call, and like that system "
12793 "call it may not write the full data requested (although short writes to disk "
12794 "devices and partitions are probably impossible with standard Linux kernels)."
12795 msgstr ""
12796
12797 # type: textblock
12798 #: ../src/guestfs-actions.pod:5167
12799 msgid "See also C<guestfs_pwrite>."
12800 msgstr ""
12801
12802 # type: textblock
12803 #: ../src/guestfs-actions.pod:5174
12804 msgid "(Added in 1.5.20)"
12805 msgstr ""
12806
12807 # type: =head2
12808 #: ../src/guestfs-actions.pod:5176
12809 msgid "guestfs_read_file"
12810 msgstr ""
12811
12812 # type: verbatim
12813 #: ../src/guestfs-actions.pod:5178
12814 #, no-wrap
12815 msgid ""
12816 " char *\n"
12817 " guestfs_read_file (guestfs_h *g,\n"
12818 "                    const char *path,\n"
12819 "                    size_t *size_r);\n"
12820 "\n"
12821 msgstr ""
12822
12823 # type: textblock
12824 #: ../src/guestfs-actions.pod:5183 ../fish/guestfish-actions.pod:3449
12825 msgid "This calls returns the contents of the file C<path> as a buffer."
12826 msgstr ""
12827
12828 # type: textblock
12829 #: ../src/guestfs-actions.pod:5186
12830 msgid ""
12831 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
12832 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
12833 "function is limited in the total size of file that can be handled."
12834 msgstr ""
12835
12836 # type: textblock
12837 #: ../src/guestfs-actions.pod:5198
12838 msgid "(Added in 1.0.63)"
12839 msgstr ""
12840
12841 # type: =head2
12842 #: ../src/guestfs-actions.pod:5200
12843 msgid "guestfs_read_lines"
12844 msgstr ""
12845
12846 # type: verbatim
12847 #: ../src/guestfs-actions.pod:5202
12848 #, no-wrap
12849 msgid ""
12850 " char **\n"
12851 " guestfs_read_lines (guestfs_h *g,\n"
12852 "                     const char *path);\n"
12853 "\n"
12854 msgstr ""
12855
12856 # type: textblock
12857 #: ../src/guestfs-actions.pod:5208 ../fish/guestfish-actions.pod:3466
12858 msgid ""
12859 "The file contents are returned as a list of lines.  Trailing C<LF> and "
12860 "C<CRLF> character sequences are I<not> returned."
12861 msgstr ""
12862
12863 # type: textblock
12864 #: ../src/guestfs-actions.pod:5211
12865 msgid ""
12866 "Note that this function cannot correctly handle binary files (specifically, "
12867 "files containing C<\\0> character which is treated as end of line).  For "
12868 "those you need to use the C<guestfs_read_file> function which has a more "
12869 "complex interface."
12870 msgstr ""
12871
12872 # type: =head2
12873 #: ../src/guestfs-actions.pod:5222
12874 msgid "guestfs_readdir"
12875 msgstr ""
12876
12877 # type: verbatim
12878 #: ../src/guestfs-actions.pod:5224
12879 #, no-wrap
12880 msgid ""
12881 " struct guestfs_dirent_list *\n"
12882 " guestfs_readdir (guestfs_h *g,\n"
12883 "                  const char *dir);\n"
12884 "\n"
12885 msgstr ""
12886
12887 # type: textblock
12888 #: ../src/guestfs-actions.pod:5228 ../fish/guestfish-actions.pod:3478
12889 msgid "This returns the list of directory entries in directory C<dir>."
12890 msgstr ""
12891
12892 # type: textblock
12893 #: ../src/guestfs-actions.pod:5230 ../fish/guestfish-actions.pod:3480
12894 msgid ""
12895 "All entries in the directory are returned, including C<.> and C<..>.  The "
12896 "entries are I<not> sorted, but returned in the same order as the underlying "
12897 "filesystem."
12898 msgstr ""
12899
12900 # type: textblock
12901 #: ../src/guestfs-actions.pod:5234 ../fish/guestfish-actions.pod:3484
12902 msgid ""
12903 "Also this call returns basic file type information about each file.  The "
12904 "C<ftyp> field will contain one of the following characters:"
12905 msgstr ""
12906
12907 # type: =item
12908 #: ../src/guestfs-actions.pod:5239 ../fish/guestfish-actions.pod:3489
12909 msgid "'b'"
12910 msgstr ""
12911
12912 # type: textblock
12913 #: ../src/guestfs-actions.pod:5241 ../fish/guestfish-actions.pod:3491
12914 msgid "Block special"
12915 msgstr ""
12916
12917 # type: =item
12918 #: ../src/guestfs-actions.pod:5243 ../fish/guestfish-actions.pod:3493
12919 msgid "'c'"
12920 msgstr ""
12921
12922 # type: textblock
12923 #: ../src/guestfs-actions.pod:5245 ../fish/guestfish-actions.pod:3495
12924 msgid "Char special"
12925 msgstr ""
12926
12927 # type: =item
12928 #: ../src/guestfs-actions.pod:5247 ../fish/guestfish-actions.pod:3497
12929 msgid "'d'"
12930 msgstr ""
12931
12932 # type: textblock
12933 #: ../src/guestfs-actions.pod:5249 ../fish/guestfish-actions.pod:3499
12934 msgid "Directory"
12935 msgstr ""
12936
12937 # type: =item
12938 #: ../src/guestfs-actions.pod:5251 ../fish/guestfish-actions.pod:3501
12939 msgid "'f'"
12940 msgstr ""
12941
12942 # type: textblock
12943 #: ../src/guestfs-actions.pod:5253 ../fish/guestfish-actions.pod:3503
12944 msgid "FIFO (named pipe)"
12945 msgstr ""
12946
12947 # type: =item
12948 #: ../src/guestfs-actions.pod:5255 ../fish/guestfish-actions.pod:3505
12949 msgid "'l'"
12950 msgstr ""
12951
12952 # type: textblock
12953 #: ../src/guestfs-actions.pod:5257 ../fish/guestfish-actions.pod:3507
12954 msgid "Symbolic link"
12955 msgstr ""
12956
12957 # type: =item
12958 #: ../src/guestfs-actions.pod:5259 ../fish/guestfish-actions.pod:3509
12959 msgid "'r'"
12960 msgstr ""
12961
12962 # type: textblock
12963 #: ../src/guestfs-actions.pod:5261 ../fish/guestfish-actions.pod:3511
12964 msgid "Regular file"
12965 msgstr ""
12966
12967 # type: =item
12968 #: ../src/guestfs-actions.pod:5263 ../fish/guestfish-actions.pod:3513
12969 msgid "'s'"
12970 msgstr ""
12971
12972 # type: textblock
12973 #: ../src/guestfs-actions.pod:5265 ../fish/guestfish-actions.pod:3515
12974 msgid "Socket"
12975 msgstr ""
12976
12977 # type: =item
12978 #: ../src/guestfs-actions.pod:5267 ../fish/guestfish-actions.pod:3517
12979 msgid "'u'"
12980 msgstr ""
12981
12982 # type: textblock
12983 #: ../src/guestfs-actions.pod:5269 ../fish/guestfish-actions.pod:3519
12984 msgid "Unknown file type"
12985 msgstr ""
12986
12987 # type: =item
12988 #: ../src/guestfs-actions.pod:5271 ../fish/guestfish-actions.pod:3521
12989 msgid "'?'"
12990 msgstr ""
12991
12992 # type: textblock
12993 #: ../src/guestfs-actions.pod:5273 ../fish/guestfish-actions.pod:3523
12994 msgid "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
12995 msgstr ""
12996
12997 # type: textblock
12998 #: ../src/guestfs-actions.pod:5278
12999 msgid ""
13000 "This function is primarily intended for use by programs.  To get a simple "
13001 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
13002 "consumption, use C<guestfs_ll>."
13003 msgstr ""
13004
13005 # type: textblock
13006 #: ../src/guestfs-actions.pod:5282
13007 msgid ""
13008 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
13009 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after "
13010 "use>."
13011 msgstr ""
13012
13013 # type: =head2
13014 #: ../src/guestfs-actions.pod:5288
13015 msgid "guestfs_readlink"
13016 msgstr ""
13017
13018 # type: verbatim
13019 #: ../src/guestfs-actions.pod:5290
13020 #, no-wrap
13021 msgid ""
13022 " char *\n"
13023 " guestfs_readlink (guestfs_h *g,\n"
13024 "                   const char *path);\n"
13025 "\n"
13026 msgstr ""
13027
13028 # type: textblock
13029 #: ../src/guestfs-actions.pod:5294 ../fish/guestfish-actions.pod:3536
13030 msgid "This command reads the target of a symbolic link."
13031 msgstr ""
13032
13033 # type: =head2
13034 #: ../src/guestfs-actions.pod:5301
13035 msgid "guestfs_readlinklist"
13036 msgstr ""
13037
13038 # type: verbatim
13039 #: ../src/guestfs-actions.pod:5303
13040 #, no-wrap
13041 msgid ""
13042 " char **\n"
13043 " guestfs_readlinklist (guestfs_h *g,\n"
13044 "                       const char *path,\n"
13045 "                       char *const *names);\n"
13046 "\n"
13047 msgstr ""
13048
13049 # type: textblock
13050 #: ../src/guestfs-actions.pod:5308 ../fish/guestfish-actions.pod:3542
13051 msgid ""
13052 "This call allows you to do a C<readlink> operation on multiple files, where "
13053 "all files are in the directory C<path>.  C<names> is the list of files from "
13054 "this directory."
13055 msgstr ""
13056
13057 # type: textblock
13058 #: ../src/guestfs-actions.pod:5312 ../fish/guestfish-actions.pod:3546
13059 msgid ""
13060 "On return you get a list of strings, with a one-to-one correspondence to the "
13061 "C<names> list.  Each string is the value of the symbolic link."
13062 msgstr ""
13063
13064 # type: textblock
13065 #: ../src/guestfs-actions.pod:5316 ../fish/guestfish-actions.pod:3550
13066 msgid ""
13067 "If the C<readlink(2)> operation fails on any name, then the corresponding "
13068 "result string is the empty string C<\"\">.  However the whole operation is "
13069 "completed even if there were C<readlink(2)> errors, and so you can call this "
13070 "function with names where you don't know if they are symbolic links already "
13071 "(albeit slightly less efficient)."
13072 msgstr ""
13073
13074 # type: textblock
13075 #: ../src/guestfs-actions.pod:5323 ../fish/guestfish-actions.pod:3557
13076 msgid ""
13077 "This call is intended for programs that want to efficiently list a directory "
13078 "contents without making many round-trips.  Very long directory listings "
13079 "might cause the protocol message size to be exceeded, causing this call to "
13080 "fail.  The caller must split up such requests into smaller groups of names."
13081 msgstr ""
13082
13083 # type: =head2
13084 #: ../src/guestfs-actions.pod:5336
13085 msgid "guestfs_realpath"
13086 msgstr ""
13087
13088 # type: verbatim
13089 #: ../src/guestfs-actions.pod:5338
13090 #, no-wrap
13091 msgid ""
13092 " char *\n"
13093 " guestfs_realpath (guestfs_h *g,\n"
13094 "                   const char *path);\n"
13095 "\n"
13096 msgstr ""
13097
13098 # type: textblock
13099 #: ../src/guestfs-actions.pod:5342 ../fish/guestfish-actions.pod:3568
13100 msgid ""
13101 "Return the canonicalized absolute pathname of C<path>.  The returned path "
13102 "has no C<.>, C<..> or symbolic link path elements."
13103 msgstr ""
13104
13105 # type: =head2
13106 #: ../src/guestfs-actions.pod:5350
13107 msgid "guestfs_removexattr"
13108 msgstr ""
13109
13110 # type: verbatim
13111 #: ../src/guestfs-actions.pod:5352
13112 #, no-wrap
13113 msgid ""
13114 " int\n"
13115 " guestfs_removexattr (guestfs_h *g,\n"
13116 "                      const char *xattr,\n"
13117 "                      const char *path);\n"
13118 "\n"
13119 msgstr ""
13120
13121 # type: textblock
13122 #: ../src/guestfs-actions.pod:5357 ../fish/guestfish-actions.pod:3575
13123 msgid "This call removes the extended attribute named C<xattr> of the file C<path>."
13124 msgstr ""
13125
13126 # type: textblock
13127 #: ../src/guestfs-actions.pod:5360
13128 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
13129 msgstr ""
13130
13131 # type: =head2
13132 #: ../src/guestfs-actions.pod:5366
13133 msgid "guestfs_resize2fs"
13134 msgstr ""
13135
13136 # type: verbatim
13137 #: ../src/guestfs-actions.pod:5368
13138 #, no-wrap
13139 msgid ""
13140 " int\n"
13141 " guestfs_resize2fs (guestfs_h *g,\n"
13142 "                    const char *device);\n"
13143 "\n"
13144 msgstr ""
13145
13146 # type: textblock
13147 #: ../src/guestfs-actions.pod:5372 ../fish/guestfish-actions.pod:3584
13148 msgid ""
13149 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
13150 "underlying device."
13151 msgstr ""
13152
13153 # type: textblock
13154 #: ../src/guestfs-actions.pod:5375
13155 msgid ""
13156 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
13157 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
13158 "sometimes gives an error about this and sometimes not.  In any case, it is "
13159 "always safe to call C<guestfs_e2fsck_f> before calling this function."
13160 msgstr ""
13161
13162 # type: =head2
13163 #: ../src/guestfs-actions.pod:5385
13164 msgid "guestfs_resize2fs_size"
13165 msgstr ""
13166
13167 # type: verbatim
13168 #: ../src/guestfs-actions.pod:5387
13169 #, no-wrap
13170 msgid ""
13171 " int\n"
13172 " guestfs_resize2fs_size (guestfs_h *g,\n"
13173 "                         const char *device,\n"
13174 "                         int64_t size);\n"
13175 "\n"
13176 msgstr ""
13177
13178 # type: textblock
13179 #: ../src/guestfs-actions.pod:5392
13180 msgid ""
13181 "This command is the same as C<guestfs_resize2fs> except that it allows you "
13182 "to specify the new size (in bytes) explicitly."
13183 msgstr ""
13184
13185 # type: =head2
13186 #: ../src/guestfs-actions.pod:5399
13187 msgid "guestfs_rm"
13188 msgstr ""
13189
13190 # type: verbatim
13191 #: ../src/guestfs-actions.pod:5401
13192 #, no-wrap
13193 msgid ""
13194 " int\n"
13195 " guestfs_rm (guestfs_h *g,\n"
13196 "             const char *path);\n"
13197 "\n"
13198 msgstr ""
13199
13200 # type: textblock
13201 #: ../src/guestfs-actions.pod:5405 ../fish/guestfish-actions.pod:3604
13202 msgid "Remove the single file C<path>."
13203 msgstr ""
13204
13205 # type: =head2
13206 #: ../src/guestfs-actions.pod:5411
13207 msgid "guestfs_rm_rf"
13208 msgstr ""
13209
13210 # type: verbatim
13211 #: ../src/guestfs-actions.pod:5413
13212 #, no-wrap
13213 msgid ""
13214 " int\n"
13215 " guestfs_rm_rf (guestfs_h *g,\n"
13216 "                const char *path);\n"
13217 "\n"
13218 msgstr ""
13219
13220 # type: textblock
13221 #: ../src/guestfs-actions.pod:5417 ../fish/guestfish-actions.pod:3610
13222 msgid ""
13223 "Remove the file or directory C<path>, recursively removing the contents if "
13224 "its a directory.  This is like the C<rm -rf> shell command."
13225 msgstr ""
13226
13227 # type: =head2
13228 #: ../src/guestfs-actions.pod:5425
13229 msgid "guestfs_rmdir"
13230 msgstr ""
13231
13232 # type: verbatim
13233 #: ../src/guestfs-actions.pod:5427
13234 #, no-wrap
13235 msgid ""
13236 " int\n"
13237 " guestfs_rmdir (guestfs_h *g,\n"
13238 "                const char *path);\n"
13239 "\n"
13240 msgstr ""
13241
13242 # type: textblock
13243 #: ../src/guestfs-actions.pod:5431 ../fish/guestfish-actions.pod:3618
13244 msgid "Remove the single directory C<path>."
13245 msgstr ""
13246
13247 # type: =head2
13248 #: ../src/guestfs-actions.pod:5437
13249 msgid "guestfs_rmmountpoint"
13250 msgstr ""
13251
13252 # type: verbatim
13253 #: ../src/guestfs-actions.pod:5439
13254 #, no-wrap
13255 msgid ""
13256 " int\n"
13257 " guestfs_rmmountpoint (guestfs_h *g,\n"
13258 "                       const char *exemptpath);\n"
13259 "\n"
13260 msgstr ""
13261
13262 # type: textblock
13263 #: ../src/guestfs-actions.pod:5443
13264 msgid ""
13265 "This calls removes a mountpoint that was previously created with "
13266 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
13267 msgstr ""
13268
13269 # type: =head2
13270 #: ../src/guestfs-actions.pod:5451
13271 msgid "guestfs_scrub_device"
13272 msgstr ""
13273
13274 # type: verbatim
13275 #: ../src/guestfs-actions.pod:5453
13276 #, no-wrap
13277 msgid ""
13278 " int\n"
13279 " guestfs_scrub_device (guestfs_h *g,\n"
13280 "                       const char *device);\n"
13281 "\n"
13282 msgstr ""
13283
13284 # type: textblock
13285 #: ../src/guestfs-actions.pod:5457 ../fish/guestfish-actions.pod:3632
13286 msgid ""
13287 "This command writes patterns over C<device> to make data retrieval more "
13288 "difficult."
13289 msgstr ""
13290
13291 # type: textblock
13292 #: ../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
13293 msgid ""
13294 "It is an interface to the L<scrub(1)> program.  See that manual page for "
13295 "more details."
13296 msgstr ""
13297
13298 # type: textblock
13299 #: ../src/guestfs-actions.pod:5468 ../src/guestfs-actions.pod:5486 ../src/guestfs-actions.pod:5505
13300 msgid "(Added in 1.0.52)"
13301 msgstr ""
13302
13303 # type: =head2
13304 #: ../src/guestfs-actions.pod:5470
13305 msgid "guestfs_scrub_file"
13306 msgstr ""
13307
13308 # type: verbatim
13309 #: ../src/guestfs-actions.pod:5472
13310 #, no-wrap
13311 msgid ""
13312 " int\n"
13313 " guestfs_scrub_file (guestfs_h *g,\n"
13314 "                     const char *file);\n"
13315 "\n"
13316 msgstr ""
13317
13318 # type: textblock
13319 #: ../src/guestfs-actions.pod:5476 ../fish/guestfish-actions.pod:3645
13320 msgid ""
13321 "This command writes patterns over a file to make data retrieval more "
13322 "difficult."
13323 msgstr ""
13324
13325 # type: textblock
13326 #: ../src/guestfs-actions.pod:5479 ../fish/guestfish-actions.pod:3648
13327 msgid "The file is I<removed> after scrubbing."
13328 msgstr ""
13329
13330 # type: =head2
13331 #: ../src/guestfs-actions.pod:5488
13332 msgid "guestfs_scrub_freespace"
13333 msgstr ""
13334
13335 # type: verbatim
13336 #: ../src/guestfs-actions.pod:5490
13337 #, no-wrap
13338 msgid ""
13339 " int\n"
13340 " guestfs_scrub_freespace (guestfs_h *g,\n"
13341 "                          const char *dir);\n"
13342 "\n"
13343 msgstr ""
13344
13345 # type: textblock
13346 #: ../src/guestfs-actions.pod:5494
13347 msgid ""
13348 "This command creates the directory C<dir> and then fills it with files until "
13349 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
13350 "and deletes them.  The intention is to scrub any free space on the partition "
13351 "containing C<dir>."
13352 msgstr ""
13353
13354 # type: =head2
13355 #: ../src/guestfs-actions.pod:5507
13356 msgid "guestfs_set_append"
13357 msgstr ""
13358
13359 # type: verbatim
13360 #: ../src/guestfs-actions.pod:5509
13361 #, no-wrap
13362 msgid ""
13363 " int\n"
13364 " guestfs_set_append (guestfs_h *g,\n"
13365 "                     const char *append);\n"
13366 "\n"
13367 msgstr ""
13368
13369 # type: textblock
13370 #: ../src/guestfs-actions.pod:5513 ../fish/guestfish-actions.pod:3672
13371 msgid ""
13372 "This function is used to add additional options to the guest kernel command "
13373 "line."
13374 msgstr ""
13375
13376 # type: textblock
13377 #: ../src/guestfs-actions.pod:5516 ../fish/guestfish-actions.pod:3675
13378 msgid ""
13379 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
13380 "environment variable."
13381 msgstr ""
13382
13383 # type: textblock
13384 #: ../src/guestfs-actions.pod:5519 ../fish/guestfish-actions.pod:3678
13385 msgid ""
13386 "Setting C<append> to C<NULL> means I<no> additional options are passed "
13387 "(libguestfs always adds a few of its own)."
13388 msgstr ""
13389
13390 # type: =head2
13391 #: ../src/guestfs-actions.pod:5526
13392 msgid "guestfs_set_autosync"
13393 msgstr ""
13394
13395 # type: verbatim
13396 #: ../src/guestfs-actions.pod:5528
13397 #, no-wrap
13398 msgid ""
13399 " int\n"
13400 " guestfs_set_autosync (guestfs_h *g,\n"
13401 "                       int autosync);\n"
13402 "\n"
13403 msgstr ""
13404
13405 # type: textblock
13406 #: ../src/guestfs-actions.pod:5532
13407 msgid ""
13408 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
13409 "effort attempt to run C<guestfs_umount_all> followed by C<guestfs_sync> when "
13410 "the handle is closed (also if the program exits without closing handles)."
13411 msgstr ""
13412
13413 # type: textblock
13414 #: ../src/guestfs-actions.pod:5537 ../fish/guestfish-actions.pod:3692
13415 msgid ""
13416 "This is enabled by default (since libguestfs 1.5.24, previously it was "
13417 "disabled by default)."
13418 msgstr ""
13419
13420 # type: =head2
13421 #: ../src/guestfs-actions.pod:5544
13422 msgid "guestfs_set_direct"
13423 msgstr ""
13424
13425 # type: verbatim
13426 #: ../src/guestfs-actions.pod:5546
13427 #, no-wrap
13428 msgid ""
13429 " int\n"
13430 " guestfs_set_direct (guestfs_h *g,\n"
13431 "                     int direct);\n"
13432 "\n"
13433 msgstr ""
13434
13435 # type: textblock
13436 #: ../src/guestfs-actions.pod:5550 ../fish/guestfish-actions.pod:3701
13437 msgid ""
13438 "If the direct appliance mode flag is enabled, then stdin and stdout are "
13439 "passed directly through to the appliance once it is launched."
13440 msgstr ""
13441
13442 # type: textblock
13443 #: ../src/guestfs-actions.pod:5554
13444 msgid ""
13445 "One consequence of this is that log messages aren't caught by the library "
13446 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
13447 "stdout."
13448 msgstr ""
13449
13450 # type: textblock
13451 #: ../src/guestfs-actions.pod:5558 ../fish/guestfish-actions.pod:3709
13452 msgid "You probably don't want to use this unless you know what you are doing."
13453 msgstr ""
13454
13455 # type: textblock
13456 #: ../src/guestfs-actions.pod:5561 ../fish/guestfish-actions.pod:3712
13457 msgid "The default is disabled."
13458 msgstr ""
13459
13460 # type: =head2
13461 #: ../src/guestfs-actions.pod:5567
13462 msgid "guestfs_set_e2label"
13463 msgstr ""
13464
13465 # type: verbatim
13466 #: ../src/guestfs-actions.pod:5569
13467 #, no-wrap
13468 msgid ""
13469 " int\n"
13470 " guestfs_set_e2label (guestfs_h *g,\n"
13471 "                      const char *device,\n"
13472 "                      const char *label);\n"
13473 "\n"
13474 msgstr ""
13475
13476 # type: textblock
13477 #: ../src/guestfs-actions.pod:5574 ../fish/guestfish-actions.pod:3718
13478 msgid ""
13479 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
13480 "C<label>.  Filesystem labels are limited to 16 characters."
13481 msgstr ""
13482
13483 # type: textblock
13484 #: ../src/guestfs-actions.pod:5578
13485 msgid ""
13486 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
13487 "the existing label on a filesystem."
13488 msgstr ""
13489
13490 # type: =head2
13491 #: ../src/guestfs-actions.pod:5585
13492 msgid "guestfs_set_e2uuid"
13493 msgstr ""
13494
13495 # type: verbatim
13496 #: ../src/guestfs-actions.pod:5587
13497 #, no-wrap
13498 msgid ""
13499 " int\n"
13500 " guestfs_set_e2uuid (guestfs_h *g,\n"
13501 "                     const char *device,\n"
13502 "                     const char *uuid);\n"
13503 "\n"
13504 msgstr ""
13505
13506 # type: textblock
13507 #: ../src/guestfs-actions.pod:5592 ../fish/guestfish-actions.pod:3729
13508 msgid ""
13509 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
13510 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
13511 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
13512 msgstr ""
13513
13514 # type: textblock
13515 #: ../src/guestfs-actions.pod:5597
13516 msgid ""
13517 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
13518 "the existing UUID of a filesystem."
13519 msgstr ""
13520
13521 # type: =head2
13522 #: ../src/guestfs-actions.pod:5604
13523 msgid "guestfs_set_memsize"
13524 msgstr ""
13525
13526 # type: verbatim
13527 #: ../src/guestfs-actions.pod:5606
13528 #, no-wrap
13529 msgid ""
13530 " int\n"
13531 " guestfs_set_memsize (guestfs_h *g,\n"
13532 "                      int memsize);\n"
13533 "\n"
13534 msgstr ""
13535
13536 # type: textblock
13537 #: ../src/guestfs-actions.pod:5610
13538 msgid ""
13539 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
13540 "This only has any effect if called before C<guestfs_launch>."
13541 msgstr ""
13542
13543 # type: textblock
13544 #: ../src/guestfs-actions.pod:5614 ../fish/guestfish-actions.pod:3747
13545 msgid ""
13546 "You can also change this by setting the environment variable "
13547 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
13548 msgstr ""
13549
13550 # type: =head2
13551 #: ../src/guestfs-actions.pod:5625
13552 msgid "guestfs_set_network"
13553 msgstr ""
13554
13555 # type: verbatim
13556 #: ../src/guestfs-actions.pod:5627
13557 #, no-wrap
13558 msgid ""
13559 " int\n"
13560 " guestfs_set_network (guestfs_h *g,\n"
13561 "                      int network);\n"
13562 "\n"
13563 msgstr ""
13564
13565 # type: textblock
13566 #: ../src/guestfs-actions.pod:5631 ../fish/guestfish-actions.pod:3760
13567 msgid ""
13568 "If C<network> is true, then the network is enabled in the libguestfs "
13569 "appliance.  The default is false."
13570 msgstr ""
13571
13572 # type: textblock
13573 #: ../src/guestfs-actions.pod:5634 ../fish/guestfish-actions.pod:3763
13574 msgid ""
13575 "This affects whether commands are able to access the network (see "
13576 "L<guestfs(3)/RUNNING COMMANDS>)."
13577 msgstr ""
13578
13579 # type: textblock
13580 #: ../src/guestfs-actions.pod:5637
13581 msgid ""
13582 "You must call this before calling C<guestfs_launch>, otherwise it has no "
13583 "effect."
13584 msgstr ""
13585
13586 # type: =head2
13587 #: ../src/guestfs-actions.pod:5644
13588 msgid "guestfs_set_path"
13589 msgstr ""
13590
13591 # type: verbatim
13592 #: ../src/guestfs-actions.pod:5646
13593 #, no-wrap
13594 msgid ""
13595 " int\n"
13596 " guestfs_set_path (guestfs_h *g,\n"
13597 "                   const char *searchpath);\n"
13598 "\n"
13599 msgstr ""
13600
13601 # type: textblock
13602 #: ../src/guestfs-actions.pod:5650 ../fish/guestfish-actions.pod:3775
13603 msgid "Set the path that libguestfs searches for kernel and initrd.img."
13604 msgstr ""
13605
13606 # type: textblock
13607 #: ../src/guestfs-actions.pod:5652 ../fish/guestfish-actions.pod:3777
13608 msgid ""
13609 "The default is C<$libdir/guestfs> unless overridden by setting "
13610 "C<LIBGUESTFS_PATH> environment variable."
13611 msgstr ""
13612
13613 # type: textblock
13614 #: ../src/guestfs-actions.pod:5655 ../fish/guestfish-actions.pod:3780
13615 msgid "Setting C<path> to C<NULL> restores the default path."
13616 msgstr ""
13617
13618 # type: =head2
13619 #: ../src/guestfs-actions.pod:5661
13620 msgid "guestfs_set_qemu"
13621 msgstr ""
13622
13623 # type: verbatim
13624 #: ../src/guestfs-actions.pod:5663
13625 #, no-wrap
13626 msgid ""
13627 " int\n"
13628 " guestfs_set_qemu (guestfs_h *g,\n"
13629 "                   const char *qemu);\n"
13630 "\n"
13631 msgstr ""
13632
13633 # type: textblock
13634 #: ../src/guestfs-actions.pod:5667 ../fish/guestfish-actions.pod:3788
13635 msgid "Set the qemu binary that we will use."
13636 msgstr ""
13637
13638 # type: textblock
13639 #: ../src/guestfs-actions.pod:5669 ../fish/guestfish-actions.pod:3790
13640 msgid "The default is chosen when the library was compiled by the configure script."
13641 msgstr ""
13642
13643 # type: textblock
13644 #: ../src/guestfs-actions.pod:5672 ../fish/guestfish-actions.pod:3793
13645 msgid ""
13646 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
13647 "variable."
13648 msgstr ""
13649
13650 # type: textblock
13651 #: ../src/guestfs-actions.pod:5675 ../fish/guestfish-actions.pod:3796
13652 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
13653 msgstr ""
13654
13655 # type: textblock
13656 #: ../src/guestfs-actions.pod:5677 ../fish/guestfish-actions.pod:3798
13657 msgid ""
13658 "Note that you should call this function as early as possible after creating "
13659 "the handle.  This is because some pre-launch operations depend on testing "
13660 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
13661 "don't retest features, and so you might see inconsistent results.  Using the "
13662 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
13663 "the qemu binary at the same time as the handle is created."
13664 msgstr ""
13665
13666 # type: =head2
13667 #: ../src/guestfs-actions.pod:5689
13668 msgid "guestfs_set_recovery_proc"
13669 msgstr ""
13670
13671 # type: verbatim
13672 #: ../src/guestfs-actions.pod:5691
13673 #, no-wrap
13674 msgid ""
13675 " int\n"
13676 " guestfs_set_recovery_proc (guestfs_h *g,\n"
13677 "                            int recoveryproc);\n"
13678 "\n"
13679 msgstr ""
13680
13681 # type: textblock
13682 #: ../src/guestfs-actions.pod:5695
13683 msgid ""
13684 "If this is called with the parameter C<false> then C<guestfs_launch> does "
13685 "not create a recovery process.  The purpose of the recovery process is to "
13686 "stop runaway qemu processes in the case where the main program aborts "
13687 "abruptly."
13688 msgstr ""
13689
13690 # type: textblock
13691 #: ../src/guestfs-actions.pod:5700
13692 msgid ""
13693 "This only has any effect if called before C<guestfs_launch>, and the default "
13694 "is true."
13695 msgstr ""
13696
13697 # type: textblock
13698 #: ../src/guestfs-actions.pod:5703 ../fish/guestfish-actions.pod:3820
13699 msgid ""
13700 "About the only time when you would want to disable this is if the main "
13701 "process will fork itself into the background (\"daemonize\" itself).  In "
13702 "this case the recovery process thinks that the main program has disappeared "
13703 "and so kills qemu, which is not very helpful."
13704 msgstr ""
13705
13706 # type: =head2
13707 #: ../src/guestfs-actions.pod:5713
13708 msgid "guestfs_set_selinux"
13709 msgstr ""
13710
13711 # type: verbatim
13712 #: ../src/guestfs-actions.pod:5715
13713 #, no-wrap
13714 msgid ""
13715 " int\n"
13716 " guestfs_set_selinux (guestfs_h *g,\n"
13717 "                      int selinux);\n"
13718 "\n"
13719 msgstr ""
13720
13721 # type: textblock
13722 #: ../src/guestfs-actions.pod:5719 ../fish/guestfish-actions.pod:3832
13723 msgid ""
13724 "This sets the selinux flag that is passed to the appliance at boot time.  "
13725 "The default is C<selinux=0> (disabled)."
13726 msgstr ""
13727
13728 # type: textblock
13729 #: ../src/guestfs-actions.pod:5722 ../fish/guestfish-actions.pod:3835
13730 msgid ""
13731 "Note that if SELinux is enabled, it is always in Permissive mode "
13732 "(C<enforcing=0>)."
13733 msgstr ""
13734
13735 # type: =head2
13736 #: ../src/guestfs-actions.pod:5732
13737 msgid "guestfs_set_trace"
13738 msgstr ""
13739
13740 # type: verbatim
13741 #: ../src/guestfs-actions.pod:5734
13742 #, no-wrap
13743 msgid ""
13744 " int\n"
13745 " guestfs_set_trace (guestfs_h *g,\n"
13746 "                    int trace);\n"
13747 "\n"
13748 msgstr ""
13749
13750 # type: textblock
13751 #: ../src/guestfs-actions.pod:5738 ../fish/guestfish-actions.pod:3847
13752 msgid ""
13753 "If the command trace flag is set to 1, then commands are printed on stderr "
13754 "before they are executed in a format which is very similar to the one used "
13755 "by guestfish.  In other words, you can run a program with this enabled, and "
13756 "you will get out a script which you can feed to guestfish to perform the "
13757 "same set of actions."
13758 msgstr ""
13759
13760 # type: textblock
13761 #: ../src/guestfs-actions.pod:5745 ../fish/guestfish-actions.pod:3854
13762 msgid ""
13763 "If you want to trace C API calls into libguestfs (and other libraries) then "
13764 "possibly a better way is to use the external ltrace(1) command."
13765 msgstr ""
13766
13767 # type: textblock
13768 #: ../src/guestfs-actions.pod:5749 ../fish/guestfish-actions.pod:3858
13769 msgid ""
13770 "Command traces are disabled unless the environment variable "
13771 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
13772 msgstr ""
13773
13774 # type: =head2
13775 #: ../src/guestfs-actions.pod:5756
13776 msgid "guestfs_set_verbose"
13777 msgstr ""
13778
13779 # type: verbatim
13780 #: ../src/guestfs-actions.pod:5758
13781 #, no-wrap
13782 msgid ""
13783 " int\n"
13784 " guestfs_set_verbose (guestfs_h *g,\n"
13785 "                      int verbose);\n"
13786 "\n"
13787 msgstr ""
13788
13789 # type: textblock
13790 #: ../src/guestfs-actions.pod:5762 ../fish/guestfish-actions.pod:3867
13791 msgid "If C<verbose> is true, this turns on verbose messages (to C<stderr>)."
13792 msgstr ""
13793
13794 # type: textblock
13795 #: ../src/guestfs-actions.pod:5764 ../fish/guestfish-actions.pod:3869
13796 msgid ""
13797 "Verbose messages are disabled unless the environment variable "
13798 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
13799 msgstr ""
13800
13801 # type: =head2
13802 #: ../src/guestfs-actions.pod:5771
13803 msgid "guestfs_setcon"
13804 msgstr ""
13805
13806 # type: verbatim
13807 #: ../src/guestfs-actions.pod:5773
13808 #, no-wrap
13809 msgid ""
13810 " int\n"
13811 " guestfs_setcon (guestfs_h *g,\n"
13812 "                 const char *context);\n"
13813 "\n"
13814 msgstr ""
13815
13816 # type: textblock
13817 #: ../src/guestfs-actions.pod:5777 ../fish/guestfish-actions.pod:3876
13818 msgid ""
13819 "This sets the SELinux security context of the daemon to the string "
13820 "C<context>."
13821 msgstr ""
13822
13823 # type: textblock
13824 #: ../src/guestfs-actions.pod:5780 ../fish/guestfish-actions.pod:3879
13825 msgid "See the documentation about SELINUX in L<guestfs(3)>."
13826 msgstr ""
13827
13828 # type: =head2
13829 #: ../src/guestfs-actions.pod:5786
13830 msgid "guestfs_setxattr"
13831 msgstr ""
13832
13833 # type: verbatim
13834 #: ../src/guestfs-actions.pod:5788
13835 #, no-wrap
13836 msgid ""
13837 " int\n"
13838 " guestfs_setxattr (guestfs_h *g,\n"
13839 "                   const char *xattr,\n"
13840 "                   const char *val,\n"
13841 "                   int vallen,\n"
13842 "                   const char *path);\n"
13843 "\n"
13844 msgstr ""
13845
13846 # type: textblock
13847 #: ../src/guestfs-actions.pod:5795 ../fish/guestfish-actions.pod:3885
13848 msgid ""
13849 "This call sets the extended attribute named C<xattr> of the file C<path> to "
13850 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
13851 msgstr ""
13852
13853 # type: textblock
13854 #: ../src/guestfs-actions.pod:5799
13855 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
13856 msgstr ""
13857
13858 # type: =head2
13859 #: ../src/guestfs-actions.pod:5805
13860 msgid "guestfs_sfdisk"
13861 msgstr ""
13862
13863 # type: verbatim
13864 #: ../src/guestfs-actions.pod:5807
13865 #, no-wrap
13866 msgid ""
13867 " int\n"
13868 " guestfs_sfdisk (guestfs_h *g,\n"
13869 "                 const char *device,\n"
13870 "                 int cyls,\n"
13871 "                 int heads,\n"
13872 "                 int sectors,\n"
13873 "                 char *const *lines);\n"
13874 "\n"
13875 msgstr ""
13876
13877 # type: textblock
13878 #: ../src/guestfs-actions.pod:5815 ../fish/guestfish-actions.pod:3895
13879 msgid ""
13880 "This is a direct interface to the L<sfdisk(8)> program for creating "
13881 "partitions on block devices."
13882 msgstr ""
13883
13884 # type: textblock
13885 #: ../src/guestfs-actions.pod:5818 ../fish/guestfish-actions.pod:3898
13886 msgid "C<device> should be a block device, for example C</dev/sda>."
13887 msgstr ""
13888
13889 # type: textblock
13890 #: ../src/guestfs-actions.pod:5820 ../fish/guestfish-actions.pod:3900
13891 msgid ""
13892 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
13893 "sectors on the device, which are passed directly to sfdisk as the I<-C>, "
13894 "I<-H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
13895 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
13896 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
13897 "the kernel) cannot work out the right geometry and you will need to tell it."
13898 msgstr ""
13899
13900 # type: textblock
13901 #: ../src/guestfs-actions.pod:5828 ../fish/guestfish-actions.pod:3908
13902 msgid ""
13903 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
13904 "refer to the L<sfdisk(8)> manpage."
13905 msgstr ""
13906
13907 # type: textblock
13908 #: ../src/guestfs-actions.pod:5831 ../fish/guestfish-actions.pod:3911
13909 msgid ""
13910 "To create a single partition occupying the whole disk, you would pass "
13911 "C<lines> as a single element list, when the single element being the string "
13912 "C<,> (comma)."
13913 msgstr ""
13914
13915 # type: textblock
13916 #: ../src/guestfs-actions.pod:5835
13917 msgid "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
13918 msgstr ""
13919
13920 # type: =head2
13921 #: ../src/guestfs-actions.pod:5845
13922 msgid "guestfs_sfdiskM"
13923 msgstr ""
13924
13925 # type: verbatim
13926 #: ../src/guestfs-actions.pod:5847
13927 #, no-wrap
13928 msgid ""
13929 " int\n"
13930 " guestfs_sfdiskM (guestfs_h *g,\n"
13931 "                  const char *device,\n"
13932 "                  char *const *lines);\n"
13933 "\n"
13934 msgstr ""
13935
13936 # type: textblock
13937 #: ../src/guestfs-actions.pod:5852
13938 msgid ""
13939 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
13940 "partition sizes are specified in megabytes only (rounded to the nearest "
13941 "cylinder) and you don't need to specify the cyls, heads and sectors "
13942 "parameters which were rarely if ever used anyway."
13943 msgstr ""
13944
13945 # type: textblock
13946 #: ../src/guestfs-actions.pod:5858
13947 msgid ""
13948 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
13949 "C<guestfs_part_disk>"
13950 msgstr ""
13951
13952 # type: =head2
13953 #: ../src/guestfs-actions.pod:5868
13954 msgid "guestfs_sfdisk_N"
13955 msgstr ""
13956
13957 # type: verbatim
13958 #: ../src/guestfs-actions.pod:5870
13959 #, no-wrap
13960 msgid ""
13961 " int\n"
13962 " guestfs_sfdisk_N (guestfs_h *g,\n"
13963 "                   const char *device,\n"
13964 "                   int partnum,\n"
13965 "                   int cyls,\n"
13966 "                   int heads,\n"
13967 "                   int sectors,\n"
13968 "                   const char *line);\n"
13969 "\n"
13970 msgstr ""
13971
13972 # type: textblock
13973 #: ../src/guestfs-actions.pod:5879 ../fish/guestfish-actions.pod:3941
13974 msgid ""
13975 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
13976 "(note: C<n> counts from 1)."
13977 msgstr ""
13978
13979 # type: textblock
13980 #: ../src/guestfs-actions.pod:5882
13981 msgid ""
13982 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
13983 "for the cyls/heads/sectors parameters."
13984 msgstr ""
13985
13986 # type: textblock
13987 #: ../src/guestfs-actions.pod:5885
13988 msgid "See also: C<guestfs_part_add>"
13989 msgstr ""
13990
13991 # type: =head2
13992 #: ../src/guestfs-actions.pod:5894
13993 msgid "guestfs_sfdisk_disk_geometry"
13994 msgstr ""
13995
13996 # type: verbatim
13997 #: ../src/guestfs-actions.pod:5896
13998 #, no-wrap
13999 msgid ""
14000 " char *\n"
14001 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
14002 "                               const char *device);\n"
14003 "\n"
14004 msgstr ""
14005
14006 # type: textblock
14007 #: ../src/guestfs-actions.pod:5900
14008 msgid ""
14009 "This displays the disk geometry of C<device> read from the partition table.  "
14010 "Especially in the case where the underlying block device has been resized, "
14011 "this can be different from the kernel's idea of the geometry (see "
14012 "C<guestfs_sfdisk_kernel_geometry>)."
14013 msgstr ""
14014
14015 # type: textblock
14016 #: ../src/guestfs-actions.pod:5905 ../src/guestfs-actions.pod:5921 ../fish/guestfish-actions.pod:3961 ../fish/guestfish-actions.pod:3970
14017 msgid "The result is in human-readable format, and not designed to be parsed."
14018 msgstr ""
14019
14020 # type: =head2
14021 #: ../src/guestfs-actions.pod:5913
14022 msgid "guestfs_sfdisk_kernel_geometry"
14023 msgstr ""
14024
14025 # type: verbatim
14026 #: ../src/guestfs-actions.pod:5915
14027 #, no-wrap
14028 msgid ""
14029 " char *\n"
14030 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
14031 "                                 const char *device);\n"
14032 "\n"
14033 msgstr ""
14034
14035 # type: textblock
14036 #: ../src/guestfs-actions.pod:5919 ../fish/guestfish-actions.pod:3968
14037 msgid "This displays the kernel's idea of the geometry of C<device>."
14038 msgstr ""
14039
14040 # type: =head2
14041 #: ../src/guestfs-actions.pod:5929
14042 msgid "guestfs_sfdisk_l"
14043 msgstr ""
14044
14045 # type: verbatim
14046 #: ../src/guestfs-actions.pod:5931
14047 #, no-wrap
14048 msgid ""
14049 " char *\n"
14050 " guestfs_sfdisk_l (guestfs_h *g,\n"
14051 "                   const char *device);\n"
14052 "\n"
14053 msgstr ""
14054
14055 # type: textblock
14056 #: ../src/guestfs-actions.pod:5935 ../fish/guestfish-actions.pod:3977
14057 msgid ""
14058 "This displays the partition table on C<device>, in the human-readable output "
14059 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
14060 msgstr ""
14061
14062 # type: textblock
14063 #: ../src/guestfs-actions.pod:5939
14064 msgid "See also: C<guestfs_part_list>"
14065 msgstr ""
14066
14067 # type: =head2
14068 #: ../src/guestfs-actions.pod:5946
14069 msgid "guestfs_sh"
14070 msgstr ""
14071
14072 # type: verbatim
14073 #: ../src/guestfs-actions.pod:5948
14074 #, no-wrap
14075 msgid ""
14076 " char *\n"
14077 " guestfs_sh (guestfs_h *g,\n"
14078 "             const char *command);\n"
14079 "\n"
14080 msgstr ""
14081
14082 # type: textblock
14083 #: ../src/guestfs-actions.pod:5952 ../fish/guestfish-actions.pod:3987
14084 msgid ""
14085 "This call runs a command from the guest filesystem via the guest's "
14086 "C</bin/sh>."
14087 msgstr ""
14088
14089 # type: textblock
14090 #: ../src/guestfs-actions.pod:5955
14091 msgid "This is like C<guestfs_command>, but passes the command to:"
14092 msgstr ""
14093
14094 # type: verbatim
14095 #: ../src/guestfs-actions.pod:5957 ../fish/guestfish-actions.pod:3992
14096 #, no-wrap
14097 msgid ""
14098 " /bin/sh -c \"command\"\n"
14099 "\n"
14100 msgstr ""
14101
14102 # type: textblock
14103 #: ../src/guestfs-actions.pod:5959 ../fish/guestfish-actions.pod:3994
14104 msgid ""
14105 "Depending on the guest's shell, this usually results in wildcards being "
14106 "expanded, shell expressions being interpolated and so on."
14107 msgstr ""
14108
14109 # type: textblock
14110 #: ../src/guestfs-actions.pod:5963
14111 msgid "All the provisos about C<guestfs_command> apply to this call."
14112 msgstr ""
14113
14114 # type: =head2
14115 #: ../src/guestfs-actions.pod:5970
14116 msgid "guestfs_sh_lines"
14117 msgstr ""
14118
14119 # type: verbatim
14120 #: ../src/guestfs-actions.pod:5972
14121 #, no-wrap
14122 msgid ""
14123 " char **\n"
14124 " guestfs_sh_lines (guestfs_h *g,\n"
14125 "                   const char *command);\n"
14126 "\n"
14127 msgstr ""
14128
14129 # type: textblock
14130 #: ../src/guestfs-actions.pod:5976
14131 msgid ""
14132 "This is the same as C<guestfs_sh>, but splits the result into a list of "
14133 "lines."
14134 msgstr ""
14135
14136 # type: textblock
14137 #: ../src/guestfs-actions.pod:5979
14138 msgid "See also: C<guestfs_command_lines>"
14139 msgstr ""
14140
14141 # type: =head2
14142 #: ../src/guestfs-actions.pod:5987
14143 msgid "guestfs_sleep"
14144 msgstr ""
14145
14146 # type: verbatim
14147 #: ../src/guestfs-actions.pod:5989
14148 #, no-wrap
14149 msgid ""
14150 " int\n"
14151 " guestfs_sleep (guestfs_h *g,\n"
14152 "                int secs);\n"
14153 "\n"
14154 msgstr ""
14155
14156 # type: textblock
14157 #: ../src/guestfs-actions.pod:5993 ../fish/guestfish-actions.pod:4013
14158 msgid "Sleep for C<secs> seconds."
14159 msgstr ""
14160
14161 # type: textblock
14162 #: ../src/guestfs-actions.pod:5997
14163 msgid "(Added in 1.0.41)"
14164 msgstr ""
14165
14166 # type: =head2
14167 #: ../src/guestfs-actions.pod:5999 ../src/guestfs-structs.pod:109
14168 msgid "guestfs_stat"
14169 msgstr ""
14170
14171 # type: verbatim
14172 #: ../src/guestfs-actions.pod:6001
14173 #, no-wrap
14174 msgid ""
14175 " struct guestfs_stat *\n"
14176 " guestfs_stat (guestfs_h *g,\n"
14177 "               const char *path);\n"
14178 "\n"
14179 msgstr ""
14180
14181 # type: textblock
14182 #: ../src/guestfs-actions.pod:6007 ../fish/guestfish-actions.pod:4021
14183 msgid "This is the same as the C<stat(2)> system call."
14184 msgstr ""
14185
14186 # type: =head2
14187 #: ../src/guestfs-actions.pod:6015 ../src/guestfs-structs.pod:135
14188 msgid "guestfs_statvfs"
14189 msgstr ""
14190
14191 # type: verbatim
14192 #: ../src/guestfs-actions.pod:6017
14193 #, no-wrap
14194 msgid ""
14195 " struct guestfs_statvfs *\n"
14196 " guestfs_statvfs (guestfs_h *g,\n"
14197 "                  const char *path);\n"
14198 "\n"
14199 msgstr ""
14200
14201 # type: textblock
14202 #: ../src/guestfs-actions.pod:6021 ../fish/guestfish-actions.pod:4027
14203 msgid ""
14204 "Returns file system statistics for any mounted file system.  C<path> should "
14205 "be a file or directory in the mounted file system (typically it is the mount "
14206 "point itself, but it doesn't need to be)."
14207 msgstr ""
14208
14209 # type: textblock
14210 #: ../src/guestfs-actions.pod:6025 ../fish/guestfish-actions.pod:4031
14211 msgid "This is the same as the C<statvfs(2)> system call."
14212 msgstr ""
14213
14214 # type: textblock
14215 #: ../src/guestfs-actions.pod:6027
14216 msgid ""
14217 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
14218 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
14219 msgstr ""
14220
14221 # type: =head2
14222 #: ../src/guestfs-actions.pod:6033
14223 msgid "guestfs_strings"
14224 msgstr ""
14225
14226 # type: verbatim
14227 #: ../src/guestfs-actions.pod:6035
14228 #, no-wrap
14229 msgid ""
14230 " char **\n"
14231 " guestfs_strings (guestfs_h *g,\n"
14232 "                  const char *path);\n"
14233 "\n"
14234 msgstr ""
14235
14236 # type: textblock
14237 #: ../src/guestfs-actions.pod:6039 ../fish/guestfish-actions.pod:4037
14238 msgid ""
14239 "This runs the L<strings(1)> command on a file and returns the list of "
14240 "printable strings found."
14241 msgstr ""
14242
14243 # type: =head2
14244 #: ../src/guestfs-actions.pod:6051
14245 msgid "guestfs_strings_e"
14246 msgstr ""
14247
14248 # type: verbatim
14249 #: ../src/guestfs-actions.pod:6053
14250 #, no-wrap
14251 msgid ""
14252 " char **\n"
14253 " guestfs_strings_e (guestfs_h *g,\n"
14254 "                    const char *encoding,\n"
14255 "                    const char *path);\n"
14256 "\n"
14257 msgstr ""
14258
14259 # type: textblock
14260 #: ../src/guestfs-actions.pod:6058
14261 msgid ""
14262 "This is like the C<guestfs_strings> command, but allows you to specify the "
14263 "encoding of strings that are looked for in the source file C<path>."
14264 msgstr ""
14265
14266 # type: textblock
14267 #: ../src/guestfs-actions.pod:6062 ../fish/guestfish-actions.pod:4051
14268 msgid "Allowed encodings are:"
14269 msgstr ""
14270
14271 # type: =item
14272 #: ../src/guestfs-actions.pod:6066 ../fish/guestfish-actions.pod:4055
14273 msgid "s"
14274 msgstr ""
14275
14276 # type: textblock
14277 #: ../src/guestfs-actions.pod:6068
14278 msgid ""
14279 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
14280 "ISO-8859-X (this is what C<guestfs_strings> uses)."
14281 msgstr ""
14282
14283 # type: =item
14284 #: ../src/guestfs-actions.pod:6071 ../fish/guestfish-actions.pod:4060
14285 msgid "S"
14286 msgstr ""
14287
14288 # type: textblock
14289 #: ../src/guestfs-actions.pod:6073 ../fish/guestfish-actions.pod:4062
14290 msgid "Single 8-bit-byte characters."
14291 msgstr ""
14292
14293 # type: =item
14294 #: ../src/guestfs-actions.pod:6075 ../fish/guestfish-actions.pod:4064
14295 msgid "b"
14296 msgstr ""
14297
14298 # type: textblock
14299 #: ../src/guestfs-actions.pod:6077 ../fish/guestfish-actions.pod:4066
14300 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
14301 msgstr ""
14302
14303 # type: =item
14304 #: ../src/guestfs-actions.pod:6080 ../fish/guestfish-actions.pod:4069
14305 msgid "l (lower case letter L)"
14306 msgstr ""
14307
14308 # type: textblock
14309 #: ../src/guestfs-actions.pod:6082 ../fish/guestfish-actions.pod:4071
14310 msgid ""
14311 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
14312 "examining binaries in Windows guests."
14313 msgstr ""
14314
14315 # type: =item
14316 #: ../src/guestfs-actions.pod:6085 ../fish/guestfish-actions.pod:4074
14317 msgid "B"
14318 msgstr ""
14319
14320 # type: textblock
14321 #: ../src/guestfs-actions.pod:6087 ../fish/guestfish-actions.pod:4076
14322 msgid "32-bit big endian such as UCS-4BE."
14323 msgstr ""
14324
14325 # type: =item
14326 #: ../src/guestfs-actions.pod:6089 ../fish/guestfish-actions.pod:4078
14327 msgid "L"
14328 msgstr ""
14329
14330 # type: textblock
14331 #: ../src/guestfs-actions.pod:6091 ../fish/guestfish-actions.pod:4080
14332 msgid "32-bit little endian such as UCS-4LE."
14333 msgstr ""
14334
14335 # type: textblock
14336 #: ../src/guestfs-actions.pod:6095 ../fish/guestfish-actions.pod:4084
14337 msgid "The returned strings are transcoded to UTF-8."
14338 msgstr ""
14339
14340 # type: =head2
14341 #: ../src/guestfs-actions.pod:6106
14342 msgid "guestfs_swapoff_device"
14343 msgstr ""
14344
14345 # type: verbatim
14346 #: ../src/guestfs-actions.pod:6108
14347 #, no-wrap
14348 msgid ""
14349 " int\n"
14350 " guestfs_swapoff_device (guestfs_h *g,\n"
14351 "                         const char *device);\n"
14352 "\n"
14353 msgstr ""
14354
14355 # type: textblock
14356 #: ../src/guestfs-actions.pod:6112
14357 msgid ""
14358 "This command disables the libguestfs appliance swap device or partition "
14359 "named C<device>.  See C<guestfs_swapon_device>."
14360 msgstr ""
14361
14362 # type: =head2
14363 #: ../src/guestfs-actions.pod:6120
14364 msgid "guestfs_swapoff_file"
14365 msgstr ""
14366
14367 # type: verbatim
14368 #: ../src/guestfs-actions.pod:6122
14369 #, no-wrap
14370 msgid ""
14371 " int\n"
14372 " guestfs_swapoff_file (guestfs_h *g,\n"
14373 "                       const char *file);\n"
14374 "\n"
14375 msgstr ""
14376
14377 # type: textblock
14378 #: ../src/guestfs-actions.pod:6126 ../fish/guestfish-actions.pod:4101
14379 msgid "This command disables the libguestfs appliance swap on file."
14380 msgstr ""
14381
14382 # type: =head2
14383 #: ../src/guestfs-actions.pod:6132
14384 msgid "guestfs_swapoff_label"
14385 msgstr ""
14386
14387 # type: verbatim
14388 #: ../src/guestfs-actions.pod:6134
14389 #, no-wrap
14390 msgid ""
14391 " int\n"
14392 " guestfs_swapoff_label (guestfs_h *g,\n"
14393 "                        const char *label);\n"
14394 "\n"
14395 msgstr ""
14396
14397 # type: textblock
14398 #: ../src/guestfs-actions.pod:6138 ../fish/guestfish-actions.pod:4107
14399 msgid ""
14400 "This command disables the libguestfs appliance swap on labeled swap "
14401 "partition."
14402 msgstr ""
14403
14404 # type: =head2
14405 #: ../src/guestfs-actions.pod:6145
14406 msgid "guestfs_swapoff_uuid"
14407 msgstr ""
14408
14409 # type: verbatim
14410 #: ../src/guestfs-actions.pod:6147
14411 #, no-wrap
14412 msgid ""
14413 " int\n"
14414 " guestfs_swapoff_uuid (guestfs_h *g,\n"
14415 "                       const char *uuid);\n"
14416 "\n"
14417 msgstr ""
14418
14419 # type: textblock
14420 #: ../src/guestfs-actions.pod:6151 ../fish/guestfish-actions.pod:4114
14421 msgid ""
14422 "This command disables the libguestfs appliance swap partition with the given "
14423 "UUID."
14424 msgstr ""
14425
14426 # type: =head2
14427 #: ../src/guestfs-actions.pod:6158
14428 msgid "guestfs_swapon_device"
14429 msgstr ""
14430
14431 # type: verbatim
14432 #: ../src/guestfs-actions.pod:6160
14433 #, no-wrap
14434 msgid ""
14435 " int\n"
14436 " guestfs_swapon_device (guestfs_h *g,\n"
14437 "                        const char *device);\n"
14438 "\n"
14439 msgstr ""
14440
14441 # type: textblock
14442 #: ../src/guestfs-actions.pod:6164
14443 msgid ""
14444 "This command enables the libguestfs appliance to use the swap device or "
14445 "partition named C<device>.  The increased memory is made available for all "
14446 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
14447 msgstr ""
14448
14449 # type: textblock
14450 #: ../src/guestfs-actions.pod:6169 ../fish/guestfish-actions.pod:4126
14451 msgid ""
14452 "Note that you should not swap to existing guest swap partitions unless you "
14453 "know what you are doing.  They may contain hibernation information, or other "
14454 "information that the guest doesn't want you to trash.  You also risk leaking "
14455 "information about the host to the guest this way.  Instead, attach a new "
14456 "host device to the guest and swap on that."
14457 msgstr ""
14458
14459 # type: =head2
14460 #: ../src/guestfs-actions.pod:6180
14461 msgid "guestfs_swapon_file"
14462 msgstr ""
14463
14464 # type: verbatim
14465 #: ../src/guestfs-actions.pod:6182
14466 #, no-wrap
14467 msgid ""
14468 " int\n"
14469 " guestfs_swapon_file (guestfs_h *g,\n"
14470 "                      const char *file);\n"
14471 "\n"
14472 msgstr ""
14473
14474 # type: textblock
14475 #: ../src/guestfs-actions.pod:6186
14476 msgid ""
14477 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
14478 "notes."
14479 msgstr ""
14480
14481 # type: =head2
14482 #: ../src/guestfs-actions.pod:6193
14483 msgid "guestfs_swapon_label"
14484 msgstr ""
14485
14486 # type: verbatim
14487 #: ../src/guestfs-actions.pod:6195
14488 #, no-wrap
14489 msgid ""
14490 " int\n"
14491 " guestfs_swapon_label (guestfs_h *g,\n"
14492 "                       const char *label);\n"
14493 "\n"
14494 msgstr ""
14495
14496 # type: textblock
14497 #: ../src/guestfs-actions.pod:6199
14498 msgid ""
14499 "This command enables swap to a labeled swap partition.  See "
14500 "C<guestfs_swapon_device> for other notes."
14501 msgstr ""
14502
14503 # type: =head2
14504 #: ../src/guestfs-actions.pod:6206
14505 msgid "guestfs_swapon_uuid"
14506 msgstr ""
14507
14508 # type: verbatim
14509 #: ../src/guestfs-actions.pod:6208
14510 #, no-wrap
14511 msgid ""
14512 " int\n"
14513 " guestfs_swapon_uuid (guestfs_h *g,\n"
14514 "                      const char *uuid);\n"
14515 "\n"
14516 msgstr ""
14517
14518 # type: textblock
14519 #: ../src/guestfs-actions.pod:6212
14520 msgid ""
14521 "This command enables swap to a swap partition with the given UUID.  See "
14522 "C<guestfs_swapon_device> for other notes."
14523 msgstr ""
14524
14525 # type: =head2
14526 #: ../src/guestfs-actions.pod:6219
14527 msgid "guestfs_sync"
14528 msgstr ""
14529
14530 # type: verbatim
14531 #: ../src/guestfs-actions.pod:6221
14532 #, no-wrap
14533 msgid ""
14534 " int\n"
14535 " guestfs_sync (guestfs_h *g);\n"
14536 "\n"
14537 msgstr ""
14538
14539 # type: textblock
14540 #: ../src/guestfs-actions.pod:6224 ../fish/guestfish-actions.pod:4158
14541 msgid ""
14542 "This syncs the disk, so that any writes are flushed through to the "
14543 "underlying disk image."
14544 msgstr ""
14545
14546 # type: textblock
14547 #: ../src/guestfs-actions.pod:6227 ../fish/guestfish-actions.pod:4161
14548 msgid ""
14549 "You should always call this if you have modified a disk image, before "
14550 "closing the handle."
14551 msgstr ""
14552
14553 # type: =head2
14554 #: ../src/guestfs-actions.pod:6234
14555 msgid "guestfs_tail"
14556 msgstr ""
14557
14558 # type: verbatim
14559 #: ../src/guestfs-actions.pod:6236
14560 #, no-wrap
14561 msgid ""
14562 " char **\n"
14563 " guestfs_tail (guestfs_h *g,\n"
14564 "               const char *path);\n"
14565 "\n"
14566 msgstr ""
14567
14568 # type: textblock
14569 #: ../src/guestfs-actions.pod:6240 ../fish/guestfish-actions.pod:4168
14570 msgid "This command returns up to the last 10 lines of a file as a list of strings."
14571 msgstr ""
14572
14573 # type: =head2
14574 #: ../src/guestfs-actions.pod:6252
14575 msgid "guestfs_tail_n"
14576 msgstr ""
14577
14578 # type: verbatim
14579 #: ../src/guestfs-actions.pod:6254
14580 #, no-wrap
14581 msgid ""
14582 " char **\n"
14583 " guestfs_tail_n (guestfs_h *g,\n"
14584 "                 int nrlines,\n"
14585 "                 const char *path);\n"
14586 "\n"
14587 msgstr ""
14588
14589 # type: textblock
14590 #: ../src/guestfs-actions.pod:6259 ../fish/guestfish-actions.pod:4178
14591 msgid ""
14592 "If the parameter C<nrlines> is a positive number, this returns the last "
14593 "C<nrlines> lines of the file C<path>."
14594 msgstr ""
14595
14596 # type: textblock
14597 #: ../src/guestfs-actions.pod:6262 ../fish/guestfish-actions.pod:4181
14598 msgid ""
14599 "If the parameter C<nrlines> is a negative number, this returns lines from "
14600 "the file C<path>, starting with the C<-nrlines>th line."
14601 msgstr ""
14602
14603 # type: =head2
14604 #: ../src/guestfs-actions.pod:6276
14605 msgid "guestfs_tar_in"
14606 msgstr ""
14607
14608 # type: verbatim
14609 #: ../src/guestfs-actions.pod:6278
14610 #, no-wrap
14611 msgid ""
14612 " int\n"
14613 " guestfs_tar_in (guestfs_h *g,\n"
14614 "                 const char *tarfile,\n"
14615 "                 const char *directory);\n"
14616 "\n"
14617 msgstr ""
14618
14619 # type: textblock
14620 #: ../src/guestfs-actions.pod:6283 ../fish/guestfish-actions.pod:4193
14621 msgid ""
14622 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
14623 "tar file) into C<directory>."
14624 msgstr ""
14625
14626 # type: textblock
14627 #: ../src/guestfs-actions.pod:6286
14628 msgid "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
14629 msgstr ""
14630
14631 # type: textblock
14632 #: ../src/guestfs-actions.pod:6291 ../src/guestfs-actions.pod:6308 ../src/guestfs-actions.pod:6324 ../src/guestfs-actions.pod:6340
14633 msgid "(Added in 1.0.3)"
14634 msgstr ""
14635
14636 # type: =head2
14637 #: ../src/guestfs-actions.pod:6293
14638 msgid "guestfs_tar_out"
14639 msgstr ""
14640
14641 # type: verbatim
14642 #: ../src/guestfs-actions.pod:6295
14643 #, no-wrap
14644 msgid ""
14645 " int\n"
14646 " guestfs_tar_out (guestfs_h *g,\n"
14647 "                  const char *directory,\n"
14648 "                  const char *tarfile);\n"
14649 "\n"
14650 msgstr ""
14651
14652 # type: textblock
14653 #: ../src/guestfs-actions.pod:6300 ../fish/guestfish-actions.pod:4205
14654 msgid ""
14655 "This command packs the contents of C<directory> and downloads it to local "
14656 "file C<tarfile>."
14657 msgstr ""
14658
14659 # type: textblock
14660 #: ../src/guestfs-actions.pod:6303
14661 msgid ""
14662 "To download a compressed tarball, use C<guestfs_tgz_out> or "
14663 "C<guestfs_txz_out>."
14664 msgstr ""
14665
14666 # type: =head2
14667 #: ../src/guestfs-actions.pod:6310
14668 msgid "guestfs_tgz_in"
14669 msgstr ""
14670
14671 # type: verbatim
14672 #: ../src/guestfs-actions.pod:6312
14673 #, no-wrap
14674 msgid ""
14675 " int\n"
14676 " guestfs_tgz_in (guestfs_h *g,\n"
14677 "                 const char *tarball,\n"
14678 "                 const char *directory);\n"
14679 "\n"
14680 msgstr ""
14681
14682 # type: textblock
14683 #: ../src/guestfs-actions.pod:6317 ../fish/guestfish-actions.pod:4217
14684 msgid ""
14685 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
14686 "tar file) into C<directory>."
14687 msgstr ""
14688
14689 # type: textblock
14690 #: ../src/guestfs-actions.pod:6320
14691 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
14692 msgstr ""
14693
14694 # type: =head2
14695 #: ../src/guestfs-actions.pod:6326
14696 msgid "guestfs_tgz_out"
14697 msgstr ""
14698
14699 # type: verbatim
14700 #: ../src/guestfs-actions.pod:6328
14701 #, no-wrap
14702 msgid ""
14703 " int\n"
14704 " guestfs_tgz_out (guestfs_h *g,\n"
14705 "                  const char *directory,\n"
14706 "                  const char *tarball);\n"
14707 "\n"
14708 msgstr ""
14709
14710 # type: textblock
14711 #: ../src/guestfs-actions.pod:6333 ../fish/guestfish-actions.pod:4228
14712 msgid ""
14713 "This command packs the contents of C<directory> and downloads it to local "
14714 "file C<tarball>."
14715 msgstr ""
14716
14717 # type: textblock
14718 #: ../src/guestfs-actions.pod:6336
14719 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
14720 msgstr ""
14721
14722 # type: =head2
14723 #: ../src/guestfs-actions.pod:6342
14724 msgid "guestfs_touch"
14725 msgstr ""
14726
14727 # type: verbatim
14728 #: ../src/guestfs-actions.pod:6344
14729 #, no-wrap
14730 msgid ""
14731 " int\n"
14732 " guestfs_touch (guestfs_h *g,\n"
14733 "                const char *path);\n"
14734 "\n"
14735 msgstr ""
14736
14737 # type: textblock
14738 #: ../src/guestfs-actions.pod:6348 ../fish/guestfish-actions.pod:4239
14739 msgid ""
14740 "Touch acts like the L<touch(1)> command.  It can be used to update the "
14741 "timestamps on a file, or, if the file does not exist, to create a new "
14742 "zero-length file."
14743 msgstr ""
14744
14745 # type: textblock
14746 #: ../src/guestfs-actions.pod:6352 ../fish/guestfish-actions.pod:4243
14747 msgid ""
14748 "This command only works on regular files, and will fail on other file types "
14749 "such as directories, symbolic links, block special etc."
14750 msgstr ""
14751
14752 # type: =head2
14753 #: ../src/guestfs-actions.pod:6359
14754 msgid "guestfs_truncate"
14755 msgstr ""
14756
14757 # type: verbatim
14758 #: ../src/guestfs-actions.pod:6361
14759 #, no-wrap
14760 msgid ""
14761 " int\n"
14762 " guestfs_truncate (guestfs_h *g,\n"
14763 "                   const char *path);\n"
14764 "\n"
14765 msgstr ""
14766
14767 # type: textblock
14768 #: ../src/guestfs-actions.pod:6365 ../fish/guestfish-actions.pod:4250
14769 msgid ""
14770 "This command truncates C<path> to a zero-length file.  The file must exist "
14771 "already."
14772 msgstr ""
14773
14774 # type: =head2
14775 #: ../src/guestfs-actions.pod:6372
14776 msgid "guestfs_truncate_size"
14777 msgstr ""
14778
14779 # type: verbatim
14780 #: ../src/guestfs-actions.pod:6374
14781 #, no-wrap
14782 msgid ""
14783 " int\n"
14784 " guestfs_truncate_size (guestfs_h *g,\n"
14785 "                        const char *path,\n"
14786 "                        int64_t size);\n"
14787 "\n"
14788 msgstr ""
14789
14790 # type: textblock
14791 #: ../src/guestfs-actions.pod:6379 ../fish/guestfish-actions.pod:4257
14792 msgid ""
14793 "This command truncates C<path> to size C<size> bytes.  The file must exist "
14794 "already."
14795 msgstr ""
14796
14797 # type: textblock
14798 #: ../src/guestfs-actions.pod:6382
14799 msgid ""
14800 "If the current file size is less than C<size> then the file is extended to "
14801 "the required size with zero bytes.  This creates a sparse file (ie. disk "
14802 "blocks are not allocated for the file until you write to it).  To create a "
14803 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
14804 msgstr ""
14805
14806 # type: =head2
14807 #: ../src/guestfs-actions.pod:6392
14808 msgid "guestfs_tune2fs_l"
14809 msgstr ""
14810
14811 # type: verbatim
14812 #: ../src/guestfs-actions.pod:6394
14813 #, no-wrap
14814 msgid ""
14815 " char **\n"
14816 " guestfs_tune2fs_l (guestfs_h *g,\n"
14817 "                    const char *device);\n"
14818 "\n"
14819 msgstr ""
14820
14821 # type: textblock
14822 #: ../src/guestfs-actions.pod:6398 ../fish/guestfish-actions.pod:4270
14823 msgid ""
14824 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
14825 "C<device>."
14826 msgstr ""
14827
14828 # type: textblock
14829 #: ../src/guestfs-actions.pod:6401 ../fish/guestfish-actions.pod:4273
14830 msgid ""
14831 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
14832 "for more details.  The list of fields returned isn't clearly defined, and "
14833 "depends on both the version of C<tune2fs> that libguestfs was built against, "
14834 "and the filesystem itself."
14835 msgstr ""
14836
14837 # type: =head2
14838 #: ../src/guestfs-actions.pod:6414
14839 msgid "guestfs_txz_in"
14840 msgstr ""
14841
14842 # type: verbatim
14843 #: ../src/guestfs-actions.pod:6416
14844 #, no-wrap
14845 msgid ""
14846 " int\n"
14847 " guestfs_txz_in (guestfs_h *g,\n"
14848 "                 const char *tarball,\n"
14849 "                 const char *directory);\n"
14850 "\n"
14851 msgstr ""
14852
14853 # type: textblock
14854 #: ../src/guestfs-actions.pod:6421 ../fish/guestfish-actions.pod:4282
14855 msgid ""
14856 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
14857 "tar file) into C<directory>."
14858 msgstr ""
14859
14860 # type: =head2
14861 #: ../src/guestfs-actions.pod:6428
14862 msgid "guestfs_txz_out"
14863 msgstr ""
14864
14865 # type: verbatim
14866 #: ../src/guestfs-actions.pod:6430
14867 #, no-wrap
14868 msgid ""
14869 " int\n"
14870 " guestfs_txz_out (guestfs_h *g,\n"
14871 "                  const char *directory,\n"
14872 "                  const char *tarball);\n"
14873 "\n"
14874 msgstr ""
14875
14876 # type: textblock
14877 #: ../src/guestfs-actions.pod:6435 ../fish/guestfish-actions.pod:4291
14878 msgid ""
14879 "This command packs the contents of C<directory> and downloads it to local "
14880 "file C<tarball> (as an xz compressed tar archive)."
14881 msgstr ""
14882
14883 # type: =head2
14884 #: ../src/guestfs-actions.pod:6442
14885 msgid "guestfs_umask"
14886 msgstr ""
14887
14888 # type: verbatim
14889 #: ../src/guestfs-actions.pod:6444
14890 #, no-wrap
14891 msgid ""
14892 " int\n"
14893 " guestfs_umask (guestfs_h *g,\n"
14894 "                int mask);\n"
14895 "\n"
14896 msgstr ""
14897
14898 # type: textblock
14899 #: ../src/guestfs-actions.pod:6448 ../fish/guestfish-actions.pod:4300
14900 msgid ""
14901 "This function sets the mask used for creating new files and device nodes to "
14902 "C<mask & 0777>."
14903 msgstr ""
14904
14905 # type: textblock
14906 #: ../src/guestfs-actions.pod:6451 ../fish/guestfish-actions.pod:4303
14907 msgid ""
14908 "Typical umask values would be C<022> which creates new files with "
14909 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
14910 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
14911 msgstr ""
14912
14913 # type: textblock
14914 #: ../src/guestfs-actions.pod:6456 ../fish/guestfish-actions.pod:4308
14915 msgid ""
14916 "The default umask is C<022>.  This is important because it means that "
14917 "directories and device nodes will be created with C<0644> or C<0755> mode "
14918 "even if you specify C<0777>."
14919 msgstr ""
14920
14921 # type: textblock
14922 #: ../src/guestfs-actions.pod:6460
14923 msgid ""
14924 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
14925 "C<guestfs_mkdir>."
14926 msgstr ""
14927
14928 # type: textblock
14929 #: ../src/guestfs-actions.pod:6463 ../fish/guestfish-actions.pod:4315
14930 msgid "This call returns the previous umask."
14931 msgstr ""
14932
14933 # type: =head2
14934 #: ../src/guestfs-actions.pod:6469
14935 msgid "guestfs_umount"
14936 msgstr ""
14937
14938 # type: verbatim
14939 #: ../src/guestfs-actions.pod:6471
14940 #, no-wrap
14941 msgid ""
14942 " int\n"
14943 " guestfs_umount (guestfs_h *g,\n"
14944 "                 const char *pathordevice);\n"
14945 "\n"
14946 msgstr ""
14947
14948 # type: textblock
14949 #: ../src/guestfs-actions.pod:6475 ../fish/guestfish-actions.pod:4323
14950 msgid ""
14951 "This unmounts the given filesystem.  The filesystem may be specified either "
14952 "by its mountpoint (path) or the device which contains the filesystem."
14953 msgstr ""
14954
14955 # type: =head2
14956 #: ../src/guestfs-actions.pod:6483
14957 msgid "guestfs_umount_all"
14958 msgstr ""
14959
14960 # type: verbatim
14961 #: ../src/guestfs-actions.pod:6485
14962 #, no-wrap
14963 msgid ""
14964 " int\n"
14965 " guestfs_umount_all (guestfs_h *g);\n"
14966 "\n"
14967 msgstr ""
14968
14969 # type: textblock
14970 #: ../src/guestfs-actions.pod:6488 ../fish/guestfish-actions.pod:4333
14971 msgid "This unmounts all mounted filesystems."
14972 msgstr ""
14973
14974 # type: textblock
14975 #: ../src/guestfs-actions.pod:6490 ../fish/guestfish-actions.pod:4335
14976 msgid "Some internal mounts are not unmounted by this call."
14977 msgstr ""
14978
14979 # type: =head2
14980 #: ../src/guestfs-actions.pod:6496
14981 msgid "guestfs_upload"
14982 msgstr ""
14983
14984 # type: verbatim
14985 #: ../src/guestfs-actions.pod:6498
14986 #, no-wrap
14987 msgid ""
14988 " int\n"
14989 " guestfs_upload (guestfs_h *g,\n"
14990 "                 const char *filename,\n"
14991 "                 const char *remotefilename);\n"
14992 "\n"
14993 msgstr ""
14994
14995 # type: textblock
14996 #: ../src/guestfs-actions.pod:6503 ../src/guestfs-actions.pod:6527 ../fish/guestfish-actions.pod:4341 ../fish/guestfish-actions.pod:4354
14997 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
14998 msgstr ""
14999
15000 # type: textblock
15001 #: ../src/guestfs-actions.pod:6508
15002 msgid "See also C<guestfs_download>."
15003 msgstr ""
15004
15005 # type: =head2
15006 #: ../src/guestfs-actions.pod:6519
15007 msgid "guestfs_upload_offset"
15008 msgstr ""
15009
15010 # type: verbatim
15011 #: ../src/guestfs-actions.pod:6521
15012 #, no-wrap
15013 msgid ""
15014 " int\n"
15015 " guestfs_upload_offset (guestfs_h *g,\n"
15016 "                        const char *filename,\n"
15017 "                        const char *remotefilename,\n"
15018 "                        int64_t offset);\n"
15019 "\n"
15020 msgstr ""
15021
15022 # type: textblock
15023 #: ../src/guestfs-actions.pod:6530 ../fish/guestfish-actions.pod:4357
15024 msgid ""
15025 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
15026 "The intention is to overwrite parts of existing files or devices, although "
15027 "if a non-existant file is specified then it is created with a \"hole\" "
15028 "before C<offset>.  The size of the data written is implicit in the size of "
15029 "the source C<filename>."
15030 msgstr ""
15031
15032 # type: textblock
15033 #: ../src/guestfs-actions.pod:6537
15034 msgid ""
15035 "Note that there is no limit on the amount of data that can be uploaded with "
15036 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
15037 "full amount unless an error occurs."
15038 msgstr ""
15039
15040 # type: textblock
15041 #: ../src/guestfs-actions.pod:6542
15042 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
15043 msgstr ""
15044
15045 # type: =head2
15046 #: ../src/guestfs-actions.pod:6553
15047 msgid "guestfs_utimens"
15048 msgstr ""
15049
15050 # type: verbatim
15051 #: ../src/guestfs-actions.pod:6555
15052 #, no-wrap
15053 msgid ""
15054 " int\n"
15055 " guestfs_utimens (guestfs_h *g,\n"
15056 "                  const char *path,\n"
15057 "                  int64_t atsecs,\n"
15058 "                  int64_t atnsecs,\n"
15059 "                  int64_t mtsecs,\n"
15060 "                  int64_t mtnsecs);\n"
15061 "\n"
15062 msgstr ""
15063
15064 # type: textblock
15065 #: ../src/guestfs-actions.pod:6563 ../fish/guestfish-actions.pod:4377
15066 msgid "This command sets the timestamps of a file with nanosecond precision."
15067 msgstr ""
15068
15069 # type: textblock
15070 #: ../src/guestfs-actions.pod:6566 ../fish/guestfish-actions.pod:4380
15071 msgid ""
15072 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
15073 "from the epoch."
15074 msgstr ""
15075
15076 # type: textblock
15077 #: ../src/guestfs-actions.pod:6569 ../fish/guestfish-actions.pod:4383
15078 msgid ""
15079 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
15080 "nanoseconds from the epoch."
15081 msgstr ""
15082
15083 # type: textblock
15084 #: ../src/guestfs-actions.pod:6572 ../fish/guestfish-actions.pod:4386
15085 msgid ""
15086 "If the C<*nsecs> field contains the special value C<-1> then the "
15087 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
15088 "ignored in this case)."
15089 msgstr ""
15090
15091 # type: textblock
15092 #: ../src/guestfs-actions.pod:6576 ../fish/guestfish-actions.pod:4390
15093 msgid ""
15094 "If the C<*nsecs> field contains the special value C<-2> then the "
15095 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
15096 "in this case)."
15097 msgstr ""
15098
15099 # type: =head2
15100 #: ../src/guestfs-actions.pod:6584 ../src/guestfs-structs.pod:175
15101 msgid "guestfs_version"
15102 msgstr ""
15103
15104 # type: verbatim
15105 #: ../src/guestfs-actions.pod:6586
15106 #, no-wrap
15107 msgid ""
15108 " struct guestfs_version *\n"
15109 " guestfs_version (guestfs_h *g);\n"
15110 "\n"
15111 msgstr ""
15112
15113 # type: textblock
15114 #: ../src/guestfs-actions.pod:6589 ../fish/guestfish-actions.pod:4398
15115 msgid "Return the libguestfs version number that the program is linked against."
15116 msgstr ""
15117
15118 # type: textblock
15119 #: ../src/guestfs-actions.pod:6592 ../fish/guestfish-actions.pod:4401
15120 msgid ""
15121 "Note that because of dynamic linking this is not necessarily the version of "
15122 "libguestfs that you compiled against.  You can compile the program, and then "
15123 "at runtime dynamically link against a completely different C<libguestfs.so> "
15124 "library."
15125 msgstr ""
15126
15127 # type: textblock
15128 #: ../src/guestfs-actions.pod:6597 ../fish/guestfish-actions.pod:4406
15129 msgid ""
15130 "This call was added in version C<1.0.58>.  In previous versions of "
15131 "libguestfs there was no way to get the version number.  From C code you can "
15132 "use dynamic linker functions to find out if this symbol exists (if it "
15133 "doesn't, then it's an earlier version)."
15134 msgstr ""
15135
15136 # type: textblock
15137 #: ../src/guestfs-actions.pod:6603 ../fish/guestfish-actions.pod:4412
15138 msgid ""
15139 "The call returns a structure with four elements.  The first three (C<major>, "
15140 "C<minor> and C<release>) are numbers and correspond to the usual version "
15141 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
15142 "but may be used for distro-specific information."
15143 msgstr ""
15144
15145 # type: textblock
15146 #: ../src/guestfs-actions.pod:6609 ../fish/guestfish-actions.pod:4418
15147 msgid "To construct the original version string: C<$major.$minor.$release$extra>"
15148 msgstr ""
15149
15150 # type: textblock
15151 #: ../src/guestfs-actions.pod:6612 ../fish/guestfish-actions.pod:4421
15152 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
15153 msgstr ""
15154
15155 # type: textblock
15156 #: ../src/guestfs-actions.pod:6614
15157 msgid ""
15158 "I<Note:> Don't use this call to test for availability of features.  In "
15159 "enterprise distributions we backport features from later versions into "
15160 "earlier versions, making this an unreliable way to test for features.  Use "
15161 "C<guestfs_available> instead."
15162 msgstr ""
15163
15164 # type: textblock
15165 #: ../src/guestfs-actions.pod:6620
15166 msgid ""
15167 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
15168 "error.  I<The caller must call C<guestfs_free_version> after use>."
15169 msgstr ""
15170
15171 # type: textblock
15172 #: ../src/guestfs-actions.pod:6624
15173 msgid "(Added in 1.0.58)"
15174 msgstr ""
15175
15176 # type: =head2
15177 #: ../src/guestfs-actions.pod:6626
15178 msgid "guestfs_vfs_label"
15179 msgstr ""
15180
15181 # type: verbatim
15182 #: ../src/guestfs-actions.pod:6628
15183 #, no-wrap
15184 msgid ""
15185 " char *\n"
15186 " guestfs_vfs_label (guestfs_h *g,\n"
15187 "                    const char *device);\n"
15188 "\n"
15189 msgstr ""
15190
15191 # type: textblock
15192 #: ../src/guestfs-actions.pod:6632 ../fish/guestfish-actions.pod:4433
15193 msgid "This returns the filesystem label of the filesystem on C<device>."
15194 msgstr ""
15195
15196 # type: textblock
15197 #: ../src/guestfs-actions.pod:6635 ../fish/guestfish-actions.pod:4436
15198 msgid "If the filesystem is unlabeled, this returns the empty string."
15199 msgstr ""
15200
15201 # type: textblock
15202 #: ../src/guestfs-actions.pod:6637
15203 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
15204 msgstr ""
15205
15206 # type: textblock
15207 #: ../src/guestfs-actions.pod:6642 ../src/guestfs-actions.pod:6679
15208 msgid "(Added in 1.3.18)"
15209 msgstr ""
15210
15211 # type: =head2
15212 #: ../src/guestfs-actions.pod:6644
15213 msgid "guestfs_vfs_type"
15214 msgstr ""
15215
15216 # type: verbatim
15217 #: ../src/guestfs-actions.pod:6646
15218 #, no-wrap
15219 msgid ""
15220 " char *\n"
15221 " guestfs_vfs_type (guestfs_h *g,\n"
15222 "                   const char *device);\n"
15223 "\n"
15224 msgstr ""
15225
15226 # type: textblock
15227 #: ../src/guestfs-actions.pod:6650 ../fish/guestfish-actions.pod:4444
15228 msgid ""
15229 "This command gets the filesystem type corresponding to the filesystem on "
15230 "C<device>."
15231 msgstr ""
15232
15233 # type: textblock
15234 #: ../src/guestfs-actions.pod:6653 ../fish/guestfish-actions.pod:4447
15235 msgid ""
15236 "For most filesystems, the result is the name of the Linux VFS module which "
15237 "would be used to mount this filesystem if you mounted it without specifying "
15238 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
15239 msgstr ""
15240
15241 # type: =head2
15242 #: ../src/guestfs-actions.pod:6663
15243 msgid "guestfs_vfs_uuid"
15244 msgstr ""
15245
15246 # type: verbatim
15247 #: ../src/guestfs-actions.pod:6665
15248 #, no-wrap
15249 msgid ""
15250 " char *\n"
15251 " guestfs_vfs_uuid (guestfs_h *g,\n"
15252 "                   const char *device);\n"
15253 "\n"
15254 msgstr ""
15255
15256 # type: textblock
15257 #: ../src/guestfs-actions.pod:6669 ../fish/guestfish-actions.pod:4456
15258 msgid "This returns the filesystem UUID of the filesystem on C<device>."
15259 msgstr ""
15260
15261 # type: textblock
15262 #: ../src/guestfs-actions.pod:6672 ../fish/guestfish-actions.pod:4459
15263 msgid "If the filesystem does not have a UUID, this returns the empty string."
15264 msgstr ""
15265
15266 # type: textblock
15267 #: ../src/guestfs-actions.pod:6674
15268 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
15269 msgstr ""
15270
15271 # type: =head2
15272 #: ../src/guestfs-actions.pod:6681
15273 msgid "guestfs_vg_activate"
15274 msgstr ""
15275
15276 # type: verbatim
15277 #: ../src/guestfs-actions.pod:6683
15278 #, no-wrap
15279 msgid ""
15280 " int\n"
15281 " guestfs_vg_activate (guestfs_h *g,\n"
15282 "                      int activate,\n"
15283 "                      char *const *volgroups);\n"
15284 "\n"
15285 msgstr ""
15286
15287 # type: textblock
15288 #: ../src/guestfs-actions.pod:6688 ../fish/guestfish-actions.pod:4467
15289 msgid ""
15290 "This command activates or (if C<activate> is false) deactivates all logical "
15291 "volumes in the listed volume groups C<volgroups>.  If activated, then they "
15292 "are made known to the kernel, ie. they appear as C</dev/mapper> devices.  If "
15293 "deactivated, then those devices disappear."
15294 msgstr ""
15295
15296 # type: textblock
15297 #: ../src/guestfs-actions.pod:6694 ../fish/guestfish-actions.pod:4473
15298 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
15299 msgstr ""
15300
15301 # type: textblock
15302 #: ../src/guestfs-actions.pod:6696 ../fish/guestfish-actions.pod:4475
15303 msgid ""
15304 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
15305 "activated or deactivated."
15306 msgstr ""
15307
15308 # type: =head2
15309 #: ../src/guestfs-actions.pod:6703
15310 msgid "guestfs_vg_activate_all"
15311 msgstr ""
15312
15313 # type: verbatim
15314 #: ../src/guestfs-actions.pod:6705
15315 #, no-wrap
15316 msgid ""
15317 " int\n"
15318 " guestfs_vg_activate_all (guestfs_h *g,\n"
15319 "                          int activate);\n"
15320 "\n"
15321 msgstr ""
15322
15323 # type: textblock
15324 #: ../src/guestfs-actions.pod:6709 ../fish/guestfish-actions.pod:4482
15325 msgid ""
15326 "This command activates or (if C<activate> is false) deactivates all logical "
15327 "volumes in all volume groups.  If activated, then they are made known to the "
15328 "kernel, ie. they appear as C</dev/mapper> devices.  If deactivated, then "
15329 "those devices disappear."
15330 msgstr ""
15331
15332 # type: textblock
15333 #: ../src/guestfs-actions.pod:6715 ../fish/guestfish-actions.pod:4488
15334 msgid "This command is the same as running C<vgchange -a y|n>"
15335 msgstr ""
15336
15337 # type: =head2
15338 #: ../src/guestfs-actions.pod:6721
15339 msgid "guestfs_vgcreate"
15340 msgstr ""
15341
15342 # type: verbatim
15343 #: ../src/guestfs-actions.pod:6723
15344 #, no-wrap
15345 msgid ""
15346 " int\n"
15347 " guestfs_vgcreate (guestfs_h *g,\n"
15348 "                   const char *volgroup,\n"
15349 "                   char *const *physvols);\n"
15350 "\n"
15351 msgstr ""
15352
15353 # type: textblock
15354 #: ../src/guestfs-actions.pod:6728 ../fish/guestfish-actions.pod:4494
15355 msgid ""
15356 "This creates an LVM volume group called C<volgroup> from the non-empty list "
15357 "of physical volumes C<physvols>."
15358 msgstr ""
15359
15360 # type: =head2
15361 #: ../src/guestfs-actions.pod:6735
15362 msgid "guestfs_vglvuuids"
15363 msgstr ""
15364
15365 # type: verbatim
15366 #: ../src/guestfs-actions.pod:6737
15367 #, no-wrap
15368 msgid ""
15369 " char **\n"
15370 " guestfs_vglvuuids (guestfs_h *g,\n"
15371 "                    const char *vgname);\n"
15372 "\n"
15373 msgstr ""
15374
15375 # type: textblock
15376 #: ../src/guestfs-actions.pod:6741 ../fish/guestfish-actions.pod:4501
15377 msgid ""
15378 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
15379 "volumes created in this volume group."
15380 msgstr ""
15381
15382 # type: textblock
15383 #: ../src/guestfs-actions.pod:6744
15384 msgid ""
15385 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
15386 "associate logical volumes and volume groups."
15387 msgstr ""
15388
15389 # type: textblock
15390 #: ../src/guestfs-actions.pod:6747
15391 msgid "See also C<guestfs_vgpvuuids>."
15392 msgstr ""
15393
15394 # type: =head2
15395 #: ../src/guestfs-actions.pod:6755
15396 msgid "guestfs_vgpvuuids"
15397 msgstr ""
15398
15399 # type: verbatim
15400 #: ../src/guestfs-actions.pod:6757
15401 #, no-wrap
15402 msgid ""
15403 " char **\n"
15404 " guestfs_vgpvuuids (guestfs_h *g,\n"
15405 "                    const char *vgname);\n"
15406 "\n"
15407 msgstr ""
15408
15409 # type: textblock
15410 #: ../src/guestfs-actions.pod:6761 ../fish/guestfish-actions.pod:4513
15411 msgid ""
15412 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
15413 "volumes that this volume group resides on."
15414 msgstr ""
15415
15416 # type: textblock
15417 #: ../src/guestfs-actions.pod:6764
15418 msgid ""
15419 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
15420 "associate physical volumes and volume groups."
15421 msgstr ""
15422
15423 # type: textblock
15424 #: ../src/guestfs-actions.pod:6767
15425 msgid "See also C<guestfs_vglvuuids>."
15426 msgstr ""
15427
15428 # type: =head2
15429 #: ../src/guestfs-actions.pod:6775
15430 msgid "guestfs_vgremove"
15431 msgstr ""
15432
15433 # type: verbatim
15434 #: ../src/guestfs-actions.pod:6777
15435 #, no-wrap
15436 msgid ""
15437 " int\n"
15438 " guestfs_vgremove (guestfs_h *g,\n"
15439 "                   const char *vgname);\n"
15440 "\n"
15441 msgstr ""
15442
15443 # type: textblock
15444 #: ../src/guestfs-actions.pod:6781 ../fish/guestfish-actions.pod:4525
15445 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
15446 msgstr ""
15447
15448 # type: textblock
15449 #: ../src/guestfs-actions.pod:6783 ../fish/guestfish-actions.pod:4527
15450 msgid "This also forcibly removes all logical volumes in the volume group (if any)."
15451 msgstr ""
15452
15453 # type: =head2
15454 #: ../src/guestfs-actions.pod:6790
15455 msgid "guestfs_vgrename"
15456 msgstr ""
15457
15458 # type: verbatim
15459 #: ../src/guestfs-actions.pod:6792
15460 #, no-wrap
15461 msgid ""
15462 " int\n"
15463 " guestfs_vgrename (guestfs_h *g,\n"
15464 "                   const char *volgroup,\n"
15465 "                   const char *newvolgroup);\n"
15466 "\n"
15467 msgstr ""
15468
15469 # type: textblock
15470 #: ../src/guestfs-actions.pod:6797 ../fish/guestfish-actions.pod:4534
15471 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
15472 msgstr ""
15473
15474 # type: =head2
15475 #: ../src/guestfs-actions.pod:6803
15476 msgid "guestfs_vgs"
15477 msgstr ""
15478
15479 # type: verbatim
15480 #: ../src/guestfs-actions.pod:6805
15481 #, no-wrap
15482 msgid ""
15483 " char **\n"
15484 " guestfs_vgs (guestfs_h *g);\n"
15485 "\n"
15486 msgstr ""
15487
15488 # type: textblock
15489 #: ../src/guestfs-actions.pod:6808 ../fish/guestfish-actions.pod:4540
15490 msgid ""
15491 "List all the volumes groups detected.  This is the equivalent of the "
15492 "L<vgs(8)> command."
15493 msgstr ""
15494
15495 # type: textblock
15496 #: ../src/guestfs-actions.pod:6811 ../fish/guestfish-actions.pod:4543
15497 msgid ""
15498 "This returns a list of just the volume group names that were detected "
15499 "(eg. C<VolGroup00>)."
15500 msgstr ""
15501
15502 # type: textblock
15503 #: ../src/guestfs-actions.pod:6814
15504 msgid "See also C<guestfs_vgs_full>."
15505 msgstr ""
15506
15507 # type: =head2
15508 #: ../src/guestfs-actions.pod:6822
15509 msgid "guestfs_vgs_full"
15510 msgstr ""
15511
15512 # type: verbatim
15513 #: ../src/guestfs-actions.pod:6824
15514 #, no-wrap
15515 msgid ""
15516 " struct guestfs_lvm_vg_list *\n"
15517 " guestfs_vgs_full (guestfs_h *g);\n"
15518 "\n"
15519 msgstr ""
15520
15521 # type: textblock
15522 #: ../src/guestfs-actions.pod:6827 ../fish/guestfish-actions.pod:4552
15523 msgid ""
15524 "List all the volumes groups detected.  This is the equivalent of the "
15525 "L<vgs(8)> command.  The \"full\" version includes all fields."
15526 msgstr ""
15527
15528 # type: textblock
15529 #: ../src/guestfs-actions.pod:6830
15530 msgid ""
15531 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
15532 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after "
15533 "use>."
15534 msgstr ""
15535
15536 # type: =head2
15537 #: ../src/guestfs-actions.pod:6836
15538 msgid "guestfs_vgscan"
15539 msgstr ""
15540
15541 # type: verbatim
15542 #: ../src/guestfs-actions.pod:6838
15543 #, no-wrap
15544 msgid ""
15545 " int\n"
15546 " guestfs_vgscan (guestfs_h *g);\n"
15547 "\n"
15548 msgstr ""
15549
15550 # type: textblock
15551 #: ../src/guestfs-actions.pod:6841 ../fish/guestfish-actions.pod:4559
15552 msgid ""
15553 "This rescans all block devices and rebuilds the list of LVM physical "
15554 "volumes, volume groups and logical volumes."
15555 msgstr ""
15556
15557 # type: =head2
15558 #: ../src/guestfs-actions.pod:6848
15559 msgid "guestfs_vguuid"
15560 msgstr ""
15561
15562 # type: verbatim
15563 #: ../src/guestfs-actions.pod:6850
15564 #, no-wrap
15565 msgid ""
15566 " char *\n"
15567 " guestfs_vguuid (guestfs_h *g,\n"
15568 "                 const char *vgname);\n"
15569 "\n"
15570 msgstr ""
15571
15572 # type: textblock
15573 #: ../src/guestfs-actions.pod:6854 ../fish/guestfish-actions.pod:4566
15574 msgid "This command returns the UUID of the LVM VG named C<vgname>."
15575 msgstr ""
15576
15577 # type: =head2
15578 #: ../src/guestfs-actions.pod:6861
15579 msgid "guestfs_wait_ready"
15580 msgstr ""
15581
15582 # type: verbatim
15583 #: ../src/guestfs-actions.pod:6863
15584 #, no-wrap
15585 msgid ""
15586 " int\n"
15587 " guestfs_wait_ready (guestfs_h *g);\n"
15588 "\n"
15589 msgstr ""
15590
15591 # type: textblock
15592 #: ../src/guestfs-actions.pod:6866
15593 msgid "This function is a no op."
15594 msgstr ""
15595
15596 # type: textblock
15597 #: ../src/guestfs-actions.pod:6868
15598 msgid ""
15599 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
15600 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
15601 "is no longer necessary because C<guestfs_launch> now does the waiting."
15602 msgstr ""
15603
15604 # type: textblock
15605 #: ../src/guestfs-actions.pod:6873
15606 msgid ""
15607 "If you see any calls to this function in code then you can just remove them, "
15608 "unless you want to retain compatibility with older versions of the API."
15609 msgstr ""
15610
15611 # type: =head2
15612 #: ../src/guestfs-actions.pod:6881
15613 msgid "guestfs_wc_c"
15614 msgstr ""
15615
15616 # type: verbatim
15617 #: ../src/guestfs-actions.pod:6883
15618 #, no-wrap
15619 msgid ""
15620 " int\n"
15621 " guestfs_wc_c (guestfs_h *g,\n"
15622 "               const char *path);\n"
15623 "\n"
15624 msgstr ""
15625
15626 # type: textblock
15627 #: ../src/guestfs-actions.pod:6887 ../fish/guestfish-actions.pod:4572
15628 msgid ""
15629 "This command counts the characters in a file, using the C<wc -c> external "
15630 "command."
15631 msgstr ""
15632
15633 # type: =head2
15634 #: ../src/guestfs-actions.pod:6894
15635 msgid "guestfs_wc_l"
15636 msgstr ""
15637
15638 # type: verbatim
15639 #: ../src/guestfs-actions.pod:6896
15640 #, no-wrap
15641 msgid ""
15642 " int\n"
15643 " guestfs_wc_l (guestfs_h *g,\n"
15644 "               const char *path);\n"
15645 "\n"
15646 msgstr ""
15647
15648 # type: textblock
15649 #: ../src/guestfs-actions.pod:6900 ../fish/guestfish-actions.pod:4579
15650 msgid ""
15651 "This command counts the lines in a file, using the C<wc -l> external "
15652 "command."
15653 msgstr ""
15654
15655 # type: =head2
15656 #: ../src/guestfs-actions.pod:6907
15657 msgid "guestfs_wc_w"
15658 msgstr ""
15659
15660 # type: verbatim
15661 #: ../src/guestfs-actions.pod:6909
15662 #, no-wrap
15663 msgid ""
15664 " int\n"
15665 " guestfs_wc_w (guestfs_h *g,\n"
15666 "               const char *path);\n"
15667 "\n"
15668 msgstr ""
15669
15670 # type: textblock
15671 #: ../src/guestfs-actions.pod:6913 ../fish/guestfish-actions.pod:4586
15672 msgid ""
15673 "This command counts the words in a file, using the C<wc -w> external "
15674 "command."
15675 msgstr ""
15676
15677 # type: =head2
15678 #: ../src/guestfs-actions.pod:6920
15679 msgid "guestfs_write"
15680 msgstr ""
15681
15682 # type: verbatim
15683 #: ../src/guestfs-actions.pod:6922
15684 #, no-wrap
15685 msgid ""
15686 " int\n"
15687 " guestfs_write (guestfs_h *g,\n"
15688 "                const char *path,\n"
15689 "                const char *content,\n"
15690 "                size_t content_size);\n"
15691 "\n"
15692 msgstr ""
15693
15694 # type: textblock
15695 #: ../src/guestfs-actions.pod:6928 ../fish/guestfish-actions.pod:4593
15696 msgid ""
15697 "This call creates a file called C<path>.  The content of the file is the "
15698 "string C<content> (which can contain any 8 bit data)."
15699 msgstr ""
15700
15701 # type: =head2
15702 #: ../src/guestfs-actions.pod:6938
15703 msgid "guestfs_write_file"
15704 msgstr ""
15705
15706 # type: verbatim
15707 #: ../src/guestfs-actions.pod:6940
15708 #, no-wrap
15709 msgid ""
15710 " int\n"
15711 " guestfs_write_file (guestfs_h *g,\n"
15712 "                     const char *path,\n"
15713 "                     const char *content,\n"
15714 "                     int size);\n"
15715 "\n"
15716 msgstr ""
15717
15718 # type: textblock
15719 #: ../src/guestfs-actions.pod:6946 ../fish/guestfish-actions.pod:4603
15720 msgid ""
15721 "This call creates a file called C<path>.  The contents of the file is the "
15722 "string C<content> (which can contain any 8 bit data), with length C<size>."
15723 msgstr ""
15724
15725 # type: textblock
15726 #: ../src/guestfs-actions.pod:6950 ../fish/guestfish-actions.pod:4607
15727 msgid ""
15728 "As a special case, if C<size> is C<0> then the length is calculated using "
15729 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
15730 msgstr ""
15731
15732 # type: textblock
15733 #: ../src/guestfs-actions.pod:6954 ../fish/guestfish-actions.pod:4611
15734 msgid ""
15735 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
15736 "I<not> work, even if the length is specified."
15737 msgstr ""
15738
15739 # type: textblock
15740 #: ../src/guestfs-actions.pod:6962 ../fish/guestfish-actions.pod:4617
15741 msgid "This function is deprecated.  In new code, use the C<write> call instead."
15742 msgstr ""
15743
15744 # type: =head2
15745 #: ../src/guestfs-actions.pod:6971
15746 msgid "guestfs_zegrep"
15747 msgstr ""
15748
15749 # type: verbatim
15750 #: ../src/guestfs-actions.pod:6973
15751 #, no-wrap
15752 msgid ""
15753 " char **\n"
15754 " guestfs_zegrep (guestfs_h *g,\n"
15755 "                 const char *regex,\n"
15756 "                 const char *path);\n"
15757 "\n"
15758 msgstr ""
15759
15760 # type: textblock
15761 #: ../src/guestfs-actions.pod:6978 ../fish/guestfish-actions.pod:4628
15762 msgid "This calls the external C<zegrep> program and returns the matching lines."
15763 msgstr ""
15764
15765 # type: =head2
15766 #: ../src/guestfs-actions.pod:6990
15767 msgid "guestfs_zegrepi"
15768 msgstr ""
15769
15770 # type: verbatim
15771 #: ../src/guestfs-actions.pod:6992
15772 #, no-wrap
15773 msgid ""
15774 " char **\n"
15775 " guestfs_zegrepi (guestfs_h *g,\n"
15776 "                  const char *regex,\n"
15777 "                  const char *path);\n"
15778 "\n"
15779 msgstr ""
15780
15781 # type: textblock
15782 #: ../src/guestfs-actions.pod:6997 ../fish/guestfish-actions.pod:4638
15783 msgid "This calls the external C<zegrep -i> program and returns the matching lines."
15784 msgstr ""
15785
15786 # type: =head2
15787 #: ../src/guestfs-actions.pod:7009
15788 msgid "guestfs_zero"
15789 msgstr ""
15790
15791 # type: verbatim
15792 #: ../src/guestfs-actions.pod:7011
15793 #, no-wrap
15794 msgid ""
15795 " int\n"
15796 " guestfs_zero (guestfs_h *g,\n"
15797 "               const char *device);\n"
15798 "\n"
15799 msgstr ""
15800
15801 # type: textblock
15802 #: ../src/guestfs-actions.pod:7015 ../fish/guestfish-actions.pod:4648
15803 msgid "This command writes zeroes over the first few blocks of C<device>."
15804 msgstr ""
15805
15806 # type: textblock
15807 #: ../src/guestfs-actions.pod:7017 ../fish/guestfish-actions.pod:4650
15808 msgid ""
15809 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
15810 "securely wipe the device).  It should be sufficient to remove any partition "
15811 "tables, filesystem superblocks and so on."
15812 msgstr ""
15813
15814 # type: textblock
15815 #: ../src/guestfs-actions.pod:7021
15816 msgid "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>."
15817 msgstr ""
15818
15819 # type: =head2
15820 #: ../src/guestfs-actions.pod:7032
15821 msgid "guestfs_zero_device"
15822 msgstr ""
15823
15824 # type: verbatim
15825 #: ../src/guestfs-actions.pod:7034
15826 #, no-wrap
15827 msgid ""
15828 " int\n"
15829 " guestfs_zero_device (guestfs_h *g,\n"
15830 "                      const char *device);\n"
15831 "\n"
15832 msgstr ""
15833
15834 # type: textblock
15835 #: ../src/guestfs-actions.pod:7038
15836 msgid ""
15837 "This command writes zeroes over the entire C<device>.  Compare with "
15838 "C<guestfs_zero> which just zeroes the first few blocks of a device."
15839 msgstr ""
15840
15841 # type: textblock
15842 #: ../src/guestfs-actions.pod:7052
15843 msgid "(Added in 1.3.1)"
15844 msgstr ""
15845
15846 # type: =head2
15847 #: ../src/guestfs-actions.pod:7054
15848 msgid "guestfs_zerofree"
15849 msgstr ""
15850
15851 # type: verbatim
15852 #: ../src/guestfs-actions.pod:7056
15853 #, no-wrap
15854 msgid ""
15855 " int\n"
15856 " guestfs_zerofree (guestfs_h *g,\n"
15857 "                   const char *device);\n"
15858 "\n"
15859 msgstr ""
15860
15861 # type: textblock
15862 #: ../src/guestfs-actions.pod:7060 ../fish/guestfish-actions.pod:4671
15863 msgid ""
15864 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
15865 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
15866 "possible to compress the filesystem more effectively."
15867 msgstr ""
15868
15869 # type: textblock
15870 #: ../src/guestfs-actions.pod:7065 ../fish/guestfish-actions.pod:4676
15871 msgid "You should B<not> run this program if the filesystem is mounted."
15872 msgstr ""
15873
15874 # type: textblock
15875 #: ../src/guestfs-actions.pod:7068 ../fish/guestfish-actions.pod:4679
15876 msgid ""
15877 "It is possible that using this program can damage the filesystem or data on "
15878 "the filesystem."
15879 msgstr ""
15880
15881 # type: =head2
15882 #: ../src/guestfs-actions.pod:7075
15883 msgid "guestfs_zfgrep"
15884 msgstr ""
15885
15886 # type: verbatim
15887 #: ../src/guestfs-actions.pod:7077
15888 #, no-wrap
15889 msgid ""
15890 " char **\n"
15891 " guestfs_zfgrep (guestfs_h *g,\n"
15892 "                 const char *pattern,\n"
15893 "                 const char *path);\n"
15894 "\n"
15895 msgstr ""
15896
15897 # type: textblock
15898 #: ../src/guestfs-actions.pod:7082 ../fish/guestfish-actions.pod:4686
15899 msgid "This calls the external C<zfgrep> program and returns the matching lines."
15900 msgstr ""
15901
15902 # type: =head2
15903 #: ../src/guestfs-actions.pod:7094
15904 msgid "guestfs_zfgrepi"
15905 msgstr ""
15906
15907 # type: verbatim
15908 #: ../src/guestfs-actions.pod:7096
15909 #, no-wrap
15910 msgid ""
15911 " char **\n"
15912 " guestfs_zfgrepi (guestfs_h *g,\n"
15913 "                  const char *pattern,\n"
15914 "                  const char *path);\n"
15915 "\n"
15916 msgstr ""
15917
15918 # type: textblock
15919 #: ../src/guestfs-actions.pod:7101 ../fish/guestfish-actions.pod:4696
15920 msgid "This calls the external C<zfgrep -i> program and returns the matching lines."
15921 msgstr ""
15922
15923 # type: =head2
15924 #: ../src/guestfs-actions.pod:7113
15925 msgid "guestfs_zfile"
15926 msgstr ""
15927
15928 # type: verbatim
15929 #: ../src/guestfs-actions.pod:7115
15930 #, no-wrap
15931 msgid ""
15932 " char *\n"
15933 " guestfs_zfile (guestfs_h *g,\n"
15934 "                const char *meth,\n"
15935 "                const char *path);\n"
15936 "\n"
15937 msgstr ""
15938
15939 # type: textblock
15940 #: ../src/guestfs-actions.pod:7120 ../fish/guestfish-actions.pod:4706
15941 msgid "This command runs C<file> after first decompressing C<path> using C<method>."
15942 msgstr ""
15943
15944 # type: textblock
15945 #: ../src/guestfs-actions.pod:7123 ../fish/guestfish-actions.pod:4709
15946 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
15947 msgstr ""
15948
15949 # type: textblock
15950 #: ../src/guestfs-actions.pod:7125
15951 msgid ""
15952 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
15953 "files."
15954 msgstr ""
15955
15956 # type: textblock
15957 #: ../src/guestfs-actions.pod:7131 ../fish/guestfish-actions.pod:4714
15958 msgid "This function is deprecated.  In new code, use the C<file> call instead."
15959 msgstr ""
15960
15961 # type: =head2
15962 #: ../src/guestfs-actions.pod:7140
15963 msgid "guestfs_zgrep"
15964 msgstr ""
15965
15966 # type: verbatim
15967 #: ../src/guestfs-actions.pod:7142
15968 #, no-wrap
15969 msgid ""
15970 " char **\n"
15971 " guestfs_zgrep (guestfs_h *g,\n"
15972 "                const char *regex,\n"
15973 "                const char *path);\n"
15974 "\n"
15975 msgstr ""
15976
15977 # type: textblock
15978 #: ../src/guestfs-actions.pod:7147 ../fish/guestfish-actions.pod:4725
15979 msgid "This calls the external C<zgrep> program and returns the matching lines."
15980 msgstr ""
15981
15982 # type: =head2
15983 #: ../src/guestfs-actions.pod:7159
15984 msgid "guestfs_zgrepi"
15985 msgstr ""
15986
15987 # type: verbatim
15988 #: ../src/guestfs-actions.pod:7161
15989 #, no-wrap
15990 msgid ""
15991 " char **\n"
15992 " guestfs_zgrepi (guestfs_h *g,\n"
15993 "                 const char *regex,\n"
15994 "                 const char *path);\n"
15995 "\n"
15996 msgstr ""
15997
15998 # type: textblock
15999 #: ../src/guestfs-actions.pod:7166 ../fish/guestfish-actions.pod:4735
16000 msgid "This calls the external C<zgrep -i> program and returns the matching lines."
16001 msgstr ""
16002
16003 # type: =item
16004 #: ../src/guestfs-availability.pod:3
16005 msgid "B<augeas>"
16006 msgstr ""
16007
16008 # type: textblock
16009 #: ../src/guestfs-availability.pod:5
16010 msgid ""
16011 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> "
16012 "L</guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> "
16013 "L</guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> "
16014 "L</guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> "
16015 "L</guestfs_aug_rm> L</guestfs_aug_save> L</guestfs_aug_set>"
16016 msgstr ""
16017
16018 # type: =item
16019 #: ../src/guestfs-availability.pod:21
16020 msgid "B<inotify>"
16021 msgstr ""
16022
16023 # type: textblock
16024 #: ../src/guestfs-availability.pod:23
16025 msgid ""
16026 "The following functions: L</guestfs_inotify_add_watch> "
16027 "L</guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> "
16028 "L</guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
16029 msgstr ""
16030
16031 # type: =item
16032 #: ../src/guestfs-availability.pod:31
16033 msgid "B<linuxfsuuid>"
16034 msgstr ""
16035
16036 # type: textblock
16037 #: ../src/guestfs-availability.pod:33
16038 msgid ""
16039 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> "
16040 "L</guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
16041 msgstr ""
16042
16043 # type: =item
16044 #: ../src/guestfs-availability.pod:40
16045 msgid "B<linuxmodules>"
16046 msgstr ""
16047
16048 # type: textblock
16049 #: ../src/guestfs-availability.pod:42
16050 msgid "The following functions: L</guestfs_modprobe>"
16051 msgstr ""
16052
16053 # type: =item
16054 #: ../src/guestfs-availability.pod:45
16055 msgid "B<linuxxattrs>"
16056 msgstr ""
16057
16058 # type: textblock
16059 #: ../src/guestfs-availability.pod:47
16060 msgid ""
16061 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> "
16062 "L</guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> "
16063 "L</guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> "
16064 "L</guestfs_setxattr>"
16065 msgstr ""
16066
16067 # type: =item
16068 #: ../src/guestfs-availability.pod:58
16069 msgid "B<luks>"
16070 msgstr ""
16071
16072 # type: textblock
16073 #: ../src/guestfs-availability.pod:60
16074 msgid ""
16075 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> "
16076 "L</guestfs_luks_format> L</guestfs_luks_format_cipher> "
16077 "L</guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
16078 msgstr ""
16079
16080 # type: =item
16081 #: ../src/guestfs-availability.pod:69
16082 msgid "B<lvm2>"
16083 msgstr ""
16084
16085 # type: textblock
16086 #: ../src/guestfs-availability.pod:71
16087 msgid ""
16088 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> "
16089 "L</guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> "
16090 "L</guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> "
16091 "L</guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> "
16092 "L</guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> "
16093 "L</guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> "
16094 "L</guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> "
16095 "L</guestfs_vgs_full>"
16096 msgstr ""
16097
16098 # type: =item
16099 #: ../src/guestfs-availability.pod:94
16100 msgid "B<mknod>"
16101 msgstr ""
16102
16103 # type: textblock
16104 #: ../src/guestfs-availability.pod:96
16105 msgid ""
16106 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> "
16107 "L</guestfs_mknod_b> L</guestfs_mknod_c>"
16108 msgstr ""
16109
16110 # type: =item
16111 #: ../src/guestfs-availability.pod:102
16112 msgid "B<ntfs3g>"
16113 msgstr ""
16114
16115 # type: textblock
16116 #: ../src/guestfs-availability.pod:104
16117 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
16118 msgstr ""
16119
16120 # type: =item
16121 #: ../src/guestfs-availability.pod:107
16122 msgid "B<ntfsprogs>"
16123 msgstr ""
16124
16125 # type: textblock
16126 #: ../src/guestfs-availability.pod:109
16127 msgid "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_size>"
16128 msgstr ""
16129
16130 # type: =item
16131 #: ../src/guestfs-availability.pod:113
16132 msgid "B<realpath>"
16133 msgstr ""
16134
16135 # type: textblock
16136 #: ../src/guestfs-availability.pod:115
16137 msgid "The following functions: L</guestfs_realpath>"
16138 msgstr ""
16139
16140 # type: =item
16141 #: ../src/guestfs-availability.pod:118
16142 msgid "B<scrub>"
16143 msgstr ""
16144
16145 # type: textblock
16146 #: ../src/guestfs-availability.pod:120
16147 msgid ""
16148 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> "
16149 "L</guestfs_scrub_freespace>"
16150 msgstr ""
16151
16152 # type: =item
16153 #: ../src/guestfs-availability.pod:125
16154 msgid "B<selinux>"
16155 msgstr ""
16156
16157 # type: textblock
16158 #: ../src/guestfs-availability.pod:127
16159 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
16160 msgstr ""
16161
16162 # type: =item
16163 #: ../src/guestfs-availability.pod:131
16164 msgid "B<xz>"
16165 msgstr ""
16166
16167 # type: textblock
16168 #: ../src/guestfs-availability.pod:133
16169 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
16170 msgstr ""
16171
16172 # type: =item
16173 #: ../src/guestfs-availability.pod:137
16174 msgid "B<zerofree>"
16175 msgstr ""
16176
16177 # type: textblock
16178 #: ../src/guestfs-availability.pod:139
16179 msgid "The following functions: L</guestfs_zerofree>"
16180 msgstr ""
16181
16182 # type: =head2
16183 #: ../src/guestfs-structs.pod:1
16184 msgid "guestfs_int_bool"
16185 msgstr ""
16186
16187 # type: verbatim
16188 #: ../src/guestfs-structs.pod:3
16189 #, no-wrap
16190 msgid ""
16191 " struct guestfs_int_bool {\n"
16192 "   int32_t i;\n"
16193 "   int32_t b;\n"
16194 " };\n"
16195 " \n"
16196 msgstr ""
16197
16198 # type: verbatim
16199 #: ../src/guestfs-structs.pod:8
16200 #, no-wrap
16201 msgid ""
16202 " struct guestfs_int_bool_list {\n"
16203 "   uint32_t len; /* Number of elements in list. */\n"
16204 "   struct guestfs_int_bool *val; /* Elements. */\n"
16205 " };\n"
16206 " \n"
16207 msgstr ""
16208
16209 # type: verbatim
16210 #: ../src/guestfs-structs.pod:13
16211 #, no-wrap
16212 msgid ""
16213 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
16214 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
16215 "\n"
16216 msgstr ""
16217
16218 # type: =head2
16219 #: ../src/guestfs-structs.pod:16
16220 msgid "guestfs_lvm_pv"
16221 msgstr ""
16222
16223 # type: verbatim
16224 #: ../src/guestfs-structs.pod:18
16225 #, no-wrap
16226 msgid ""
16227 " struct guestfs_lvm_pv {\n"
16228 "   char *pv_name;\n"
16229 "   /* The next field is NOT nul-terminated, be careful when printing it: "
16230 "*/\n"
16231 "   char pv_uuid[32];\n"
16232 "   char *pv_fmt;\n"
16233 "   uint64_t pv_size;\n"
16234 "   uint64_t dev_size;\n"
16235 "   uint64_t pv_free;\n"
16236 "   uint64_t pv_used;\n"
16237 "   char *pv_attr;\n"
16238 "   int64_t pv_pe_count;\n"
16239 "   int64_t pv_pe_alloc_count;\n"
16240 "   char *pv_tags;\n"
16241 "   uint64_t pe_start;\n"
16242 "   int64_t pv_mda_count;\n"
16243 "   uint64_t pv_mda_free;\n"
16244 " };\n"
16245 " \n"
16246 msgstr ""
16247
16248 # type: verbatim
16249 #: ../src/guestfs-structs.pod:36
16250 #, no-wrap
16251 msgid ""
16252 " struct guestfs_lvm_pv_list {\n"
16253 "   uint32_t len; /* Number of elements in list. */\n"
16254 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
16255 " };\n"
16256 " \n"
16257 msgstr ""
16258
16259 # type: verbatim
16260 #: ../src/guestfs-structs.pod:41
16261 #, no-wrap
16262 msgid ""
16263 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
16264 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
16265 "\n"
16266 msgstr ""
16267
16268 # type: =head2
16269 #: ../src/guestfs-structs.pod:44
16270 msgid "guestfs_lvm_vg"
16271 msgstr ""
16272
16273 # type: verbatim
16274 #: ../src/guestfs-structs.pod:46
16275 #, no-wrap
16276 msgid ""
16277 " struct guestfs_lvm_vg {\n"
16278 "   char *vg_name;\n"
16279 "   /* The next field is NOT nul-terminated, be careful when printing it: "
16280 "*/\n"
16281 "   char vg_uuid[32];\n"
16282 "   char *vg_fmt;\n"
16283 "   char *vg_attr;\n"
16284 "   uint64_t vg_size;\n"
16285 "   uint64_t vg_free;\n"
16286 "   char *vg_sysid;\n"
16287 "   uint64_t vg_extent_size;\n"
16288 "   int64_t vg_extent_count;\n"
16289 "   int64_t vg_free_count;\n"
16290 "   int64_t max_lv;\n"
16291 "   int64_t max_pv;\n"
16292 "   int64_t pv_count;\n"
16293 "   int64_t lv_count;\n"
16294 "   int64_t snap_count;\n"
16295 "   int64_t vg_seqno;\n"
16296 "   char *vg_tags;\n"
16297 "   int64_t vg_mda_count;\n"
16298 "   uint64_t vg_mda_free;\n"
16299 " };\n"
16300 " \n"
16301 msgstr ""
16302
16303 # type: verbatim
16304 #: ../src/guestfs-structs.pod:69
16305 #, no-wrap
16306 msgid ""
16307 " struct guestfs_lvm_vg_list {\n"
16308 "   uint32_t len; /* Number of elements in list. */\n"
16309 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
16310 " };\n"
16311 " \n"
16312 msgstr ""
16313
16314 # type: verbatim
16315 #: ../src/guestfs-structs.pod:74
16316 #, no-wrap
16317 msgid ""
16318 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
16319 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
16320 "\n"
16321 msgstr ""
16322
16323 # type: =head2
16324 #: ../src/guestfs-structs.pod:77
16325 msgid "guestfs_lvm_lv"
16326 msgstr ""
16327
16328 # type: verbatim
16329 #: ../src/guestfs-structs.pod:79
16330 #, no-wrap
16331 msgid ""
16332 " struct guestfs_lvm_lv {\n"
16333 "   char *lv_name;\n"
16334 "   /* The next field is NOT nul-terminated, be careful when printing it: "
16335 "*/\n"
16336 "   char lv_uuid[32];\n"
16337 "   char *lv_attr;\n"
16338 "   int64_t lv_major;\n"
16339 "   int64_t lv_minor;\n"
16340 "   int64_t lv_kernel_major;\n"
16341 "   int64_t lv_kernel_minor;\n"
16342 "   uint64_t lv_size;\n"
16343 "   int64_t seg_count;\n"
16344 "   char *origin;\n"
16345 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
16346 "   float snap_percent;\n"
16347 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
16348 "   float copy_percent;\n"
16349 "   char *move_pv;\n"
16350 "   char *lv_tags;\n"
16351 "   char *mirror_log;\n"
16352 "   char *modules;\n"
16353 " };\n"
16354 " \n"
16355 msgstr ""
16356
16357 # type: verbatim
16358 #: ../src/guestfs-structs.pod:101
16359 #, no-wrap
16360 msgid ""
16361 " struct guestfs_lvm_lv_list {\n"
16362 "   uint32_t len; /* Number of elements in list. */\n"
16363 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
16364 " };\n"
16365 " \n"
16366 msgstr ""
16367
16368 # type: verbatim
16369 #: ../src/guestfs-structs.pod:106
16370 #, no-wrap
16371 msgid ""
16372 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
16373 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
16374 "\n"
16375 msgstr ""
16376
16377 # type: verbatim
16378 #: ../src/guestfs-structs.pod:111
16379 #, no-wrap
16380 msgid ""
16381 " struct guestfs_stat {\n"
16382 "   int64_t dev;\n"
16383 "   int64_t ino;\n"
16384 "   int64_t mode;\n"
16385 "   int64_t nlink;\n"
16386 "   int64_t uid;\n"
16387 "   int64_t gid;\n"
16388 "   int64_t rdev;\n"
16389 "   int64_t size;\n"
16390 "   int64_t blksize;\n"
16391 "   int64_t blocks;\n"
16392 "   int64_t atime;\n"
16393 "   int64_t mtime;\n"
16394 "   int64_t ctime;\n"
16395 " };\n"
16396 " \n"
16397 msgstr ""
16398
16399 # type: verbatim
16400 #: ../src/guestfs-structs.pod:127
16401 #, no-wrap
16402 msgid ""
16403 " struct guestfs_stat_list {\n"
16404 "   uint32_t len; /* Number of elements in list. */\n"
16405 "   struct guestfs_stat *val; /* Elements. */\n"
16406 " };\n"
16407 " \n"
16408 msgstr ""
16409
16410 # type: verbatim
16411 #: ../src/guestfs-structs.pod:132
16412 #, no-wrap
16413 msgid ""
16414 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
16415 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
16416 "\n"
16417 msgstr ""
16418
16419 # type: verbatim
16420 #: ../src/guestfs-structs.pod:137
16421 #, no-wrap
16422 msgid ""
16423 " struct guestfs_statvfs {\n"
16424 "   int64_t bsize;\n"
16425 "   int64_t frsize;\n"
16426 "   int64_t blocks;\n"
16427 "   int64_t bfree;\n"
16428 "   int64_t bavail;\n"
16429 "   int64_t files;\n"
16430 "   int64_t ffree;\n"
16431 "   int64_t favail;\n"
16432 "   int64_t fsid;\n"
16433 "   int64_t flag;\n"
16434 "   int64_t namemax;\n"
16435 " };\n"
16436 " \n"
16437 msgstr ""
16438
16439 # type: verbatim
16440 #: ../src/guestfs-structs.pod:151
16441 #, no-wrap
16442 msgid ""
16443 " struct guestfs_statvfs_list {\n"
16444 "   uint32_t len; /* Number of elements in list. */\n"
16445 "   struct guestfs_statvfs *val; /* Elements. */\n"
16446 " };\n"
16447 " \n"
16448 msgstr ""
16449
16450 # type: verbatim
16451 #: ../src/guestfs-structs.pod:156
16452 #, no-wrap
16453 msgid ""
16454 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
16455 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
16456 "\n"
16457 msgstr ""
16458
16459 # type: =head2
16460 #: ../src/guestfs-structs.pod:159
16461 msgid "guestfs_dirent"
16462 msgstr ""
16463
16464 # type: verbatim
16465 #: ../src/guestfs-structs.pod:161
16466 #, no-wrap
16467 msgid ""
16468 " struct guestfs_dirent {\n"
16469 "   int64_t ino;\n"
16470 "   char ftyp;\n"
16471 "   char *name;\n"
16472 " };\n"
16473 " \n"
16474 msgstr ""
16475
16476 # type: verbatim
16477 #: ../src/guestfs-structs.pod:167
16478 #, no-wrap
16479 msgid ""
16480 " struct guestfs_dirent_list {\n"
16481 "   uint32_t len; /* Number of elements in list. */\n"
16482 "   struct guestfs_dirent *val; /* Elements. */\n"
16483 " };\n"
16484 " \n"
16485 msgstr ""
16486
16487 # type: verbatim
16488 #: ../src/guestfs-structs.pod:172
16489 #, no-wrap
16490 msgid ""
16491 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
16492 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
16493 "\n"
16494 msgstr ""
16495
16496 # type: verbatim
16497 #: ../src/guestfs-structs.pod:177
16498 #, no-wrap
16499 msgid ""
16500 " struct guestfs_version {\n"
16501 "   int64_t major;\n"
16502 "   int64_t minor;\n"
16503 "   int64_t release;\n"
16504 "   char *extra;\n"
16505 " };\n"
16506 " \n"
16507 msgstr ""
16508
16509 # type: verbatim
16510 #: ../src/guestfs-structs.pod:184
16511 #, no-wrap
16512 msgid ""
16513 " struct guestfs_version_list {\n"
16514 "   uint32_t len; /* Number of elements in list. */\n"
16515 "   struct guestfs_version *val; /* Elements. */\n"
16516 " };\n"
16517 " \n"
16518 msgstr ""
16519
16520 # type: verbatim
16521 #: ../src/guestfs-structs.pod:189
16522 #, no-wrap
16523 msgid ""
16524 " void guestfs_free_version (struct guestfs_free_version *);\n"
16525 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
16526 "\n"
16527 msgstr ""
16528
16529 # type: =head2
16530 #: ../src/guestfs-structs.pod:192
16531 msgid "guestfs_xattr"
16532 msgstr ""
16533
16534 # type: verbatim
16535 #: ../src/guestfs-structs.pod:194
16536 #, no-wrap
16537 msgid ""
16538 " struct guestfs_xattr {\n"
16539 "   char *attrname;\n"
16540 "   /* The next two fields describe a byte array. */\n"
16541 "   uint32_t attrval_len;\n"
16542 "   char *attrval;\n"
16543 " };\n"
16544 " \n"
16545 msgstr ""
16546
16547 # type: verbatim
16548 #: ../src/guestfs-structs.pod:201
16549 #, no-wrap
16550 msgid ""
16551 " struct guestfs_xattr_list {\n"
16552 "   uint32_t len; /* Number of elements in list. */\n"
16553 "   struct guestfs_xattr *val; /* Elements. */\n"
16554 " };\n"
16555 " \n"
16556 msgstr ""
16557
16558 # type: verbatim
16559 #: ../src/guestfs-structs.pod:206
16560 #, no-wrap
16561 msgid ""
16562 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
16563 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
16564 "\n"
16565 msgstr ""
16566
16567 # type: =head2
16568 #: ../src/guestfs-structs.pod:209
16569 msgid "guestfs_inotify_event"
16570 msgstr ""
16571
16572 # type: verbatim
16573 #: ../src/guestfs-structs.pod:211
16574 #, no-wrap
16575 msgid ""
16576 " struct guestfs_inotify_event {\n"
16577 "   int64_t in_wd;\n"
16578 "   uint32_t in_mask;\n"
16579 "   uint32_t in_cookie;\n"
16580 "   char *in_name;\n"
16581 " };\n"
16582 " \n"
16583 msgstr ""
16584
16585 # type: verbatim
16586 #: ../src/guestfs-structs.pod:218
16587 #, no-wrap
16588 msgid ""
16589 " struct guestfs_inotify_event_list {\n"
16590 "   uint32_t len; /* Number of elements in list. */\n"
16591 "   struct guestfs_inotify_event *val; /* Elements. */\n"
16592 " };\n"
16593 " \n"
16594 msgstr ""
16595
16596 # type: verbatim
16597 #: ../src/guestfs-structs.pod:223
16598 #, no-wrap
16599 msgid ""
16600 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
16601 " void guestfs_free_inotify_event_list (struct "
16602 "guestfs_free_inotify_event_list *);\n"
16603 "\n"
16604 msgstr ""
16605
16606 # type: =head2
16607 #: ../src/guestfs-structs.pod:226
16608 msgid "guestfs_partition"
16609 msgstr ""
16610
16611 # type: verbatim
16612 #: ../src/guestfs-structs.pod:228
16613 #, no-wrap
16614 msgid ""
16615 " struct guestfs_partition {\n"
16616 "   int32_t part_num;\n"
16617 "   uint64_t part_start;\n"
16618 "   uint64_t part_end;\n"
16619 "   uint64_t part_size;\n"
16620 " };\n"
16621 " \n"
16622 msgstr ""
16623
16624 # type: verbatim
16625 #: ../src/guestfs-structs.pod:235
16626 #, no-wrap
16627 msgid ""
16628 " struct guestfs_partition_list {\n"
16629 "   uint32_t len; /* Number of elements in list. */\n"
16630 "   struct guestfs_partition *val; /* Elements. */\n"
16631 " };\n"
16632 " \n"
16633 msgstr ""
16634
16635 # type: verbatim
16636 #: ../src/guestfs-structs.pod:240
16637 #, no-wrap
16638 msgid ""
16639 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
16640 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
16641 "\n"
16642 msgstr ""
16643
16644 # type: =head2
16645 #: ../src/guestfs-structs.pod:243
16646 msgid "guestfs_application"
16647 msgstr ""
16648
16649 # type: verbatim
16650 #: ../src/guestfs-structs.pod:245
16651 #, no-wrap
16652 msgid ""
16653 " struct guestfs_application {\n"
16654 "   char *app_name;\n"
16655 "   char *app_display_name;\n"
16656 "   int32_t app_epoch;\n"
16657 "   char *app_version;\n"
16658 "   char *app_release;\n"
16659 "   char *app_install_path;\n"
16660 "   char *app_trans_path;\n"
16661 "   char *app_publisher;\n"
16662 "   char *app_url;\n"
16663 "   char *app_source_package;\n"
16664 "   char *app_summary;\n"
16665 "   char *app_description;\n"
16666 " };\n"
16667 " \n"
16668 msgstr ""
16669
16670 # type: verbatim
16671 #: ../src/guestfs-structs.pod:260
16672 #, no-wrap
16673 msgid ""
16674 " struct guestfs_application_list {\n"
16675 "   uint32_t len; /* Number of elements in list. */\n"
16676 "   struct guestfs_application *val; /* Elements. */\n"
16677 " };\n"
16678 " \n"
16679 msgstr ""
16680
16681 # type: verbatim
16682 #: ../src/guestfs-structs.pod:265
16683 #, no-wrap
16684 msgid ""
16685 " void guestfs_free_application (struct guestfs_free_application *);\n"
16686 " void guestfs_free_application_list (struct guestfs_free_application_list "
16687 "*);\n"
16688 "\n"
16689 msgstr ""
16690
16691 # type: textblock
16692 #: ../fish/guestfish.pod:5
16693 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
16694 msgstr ""
16695
16696 # type: verbatim
16697 #: ../fish/guestfish.pod:9
16698 #, no-wrap
16699 msgid ""
16700 " guestfish [--options] [commands]\n"
16701 "\n"
16702 msgstr ""
16703
16704 # type: verbatim
16705 #: ../fish/guestfish.pod:11
16706 #, no-wrap
16707 msgid ""
16708 " guestfish\n"
16709 "\n"
16710 msgstr ""
16711
16712 # type: verbatim
16713 #: ../fish/guestfish.pod:13
16714 #, no-wrap
16715 msgid ""
16716 " guestfish [--ro|--rw] -a disk.img\n"
16717 "\n"
16718 msgstr ""
16719
16720 # type: verbatim
16721 #: ../fish/guestfish.pod:15
16722 #, no-wrap
16723 msgid ""
16724 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
16725 "\n"
16726 msgstr ""
16727
16728 # type: verbatim
16729 #: ../fish/guestfish.pod:17
16730 #, no-wrap
16731 msgid ""
16732 " guestfish -d libvirt-domain\n"
16733 "\n"
16734 msgstr ""
16735
16736 # type: verbatim
16737 #: ../fish/guestfish.pod:19
16738 #, no-wrap
16739 msgid ""
16740 " guestfish [--ro|--rw] -a disk.img -i\n"
16741 "\n"
16742 msgstr ""
16743
16744 # type: verbatim
16745 #: ../fish/guestfish.pod:21
16746 #, no-wrap
16747 msgid ""
16748 " guestfish -d libvirt-domain -i\n"
16749 "\n"
16750 msgstr ""
16751
16752 # type: =head1
16753 #: ../fish/guestfish.pod:23 ../fuse/guestmount.pod:15 ../tools/virt-edit.pl:44 ../tools/virt-win-reg.pl:51 ../tools/virt-tar.pl:59
16754 msgid "WARNING"
16755 msgstr ""
16756
16757 # type: textblock
16758 #: ../fish/guestfish.pod:25
16759 msgid ""
16760 "Using guestfish in read/write mode on live virtual machines can be "
16761 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
16762 "option to use guestfish safely if the disk image or virtual machine might be "
16763 "live."
16764 msgstr ""
16765
16766 # type: textblock
16767 #: ../fish/guestfish.pod:32
16768 msgid ""
16769 "Guestfish is a shell and command-line tool for examining and modifying "
16770 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
16771 "functionality of the guestfs API, see L<guestfs(3)>."
16772 msgstr ""
16773
16774 # type: textblock
16775 #: ../fish/guestfish.pod:36
16776 msgid ""
16777 "Guestfish gives you structured access to the libguestfs API, from shell "
16778 "scripts or the command line or interactively.  If you want to rescue a "
16779 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
16780 "command."
16781 msgstr ""
16782
16783 # type: =head1
16784 #: ../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
16785 msgid "EXAMPLES"
16786 msgstr ""
16787
16788 # type: =head2
16789 #: ../fish/guestfish.pod:43
16790 msgid "As an interactive shell"
16791 msgstr ""
16792
16793 # type: verbatim
16794 #: ../fish/guestfish.pod:45
16795 #, no-wrap
16796 msgid ""
16797 " $ guestfish\n"
16798 " \n"
16799 msgstr ""
16800
16801 # type: verbatim
16802 #: ../fish/guestfish.pod:47
16803 #, no-wrap
16804 msgid ""
16805 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
16806 " editing virtual machine filesystems.\n"
16807 " \n"
16808 msgstr ""
16809
16810 # type: verbatim
16811 #: ../fish/guestfish.pod:50
16812 #, no-wrap
16813 msgid ""
16814 " Type: 'help' for a list of commands\n"
16815 "       'man' to read the manual\n"
16816 "       'quit' to quit the shell\n"
16817 " \n"
16818 msgstr ""
16819
16820 # type: verbatim
16821 #: ../fish/guestfish.pod:54
16822 #, no-wrap
16823 msgid ""
16824 " ><fs> add-ro disk.img\n"
16825 " ><fs> run\n"
16826 " ><fs> list-filesystems\n"
16827 " /dev/sda1: ext4\n"
16828 " /dev/vg_guest/lv_root: ext4\n"
16829 " /dev/vg_guest/lv_swap: swap\n"
16830 " ><fs> mount /dev/vg_guest/lv_root /\n"
16831 " ><fs> cat /etc/fstab\n"
16832 " # /etc/fstab\n"
16833 " # Created by anaconda\n"
16834 " [...]\n"
16835 " ><fs> exit\n"
16836 "\n"
16837 msgstr ""
16838
16839 # type: =head2
16840 #: ../fish/guestfish.pod:67
16841 msgid "From shell scripts"
16842 msgstr ""
16843
16844 # type: textblock
16845 #: ../fish/guestfish.pod:69
16846 msgid "Create a new C</etc/motd> file in a guest or disk image:"
16847 msgstr ""
16848
16849 # type: verbatim
16850 #: ../fish/guestfish.pod:71
16851 #, no-wrap
16852 msgid ""
16853 " guestfish <<_EOF_\n"
16854 " add disk.img\n"
16855 " run\n"
16856 " mount /dev/vg_guest/lv_root /\n"
16857 " write /etc/motd \"Welcome, new users\"\n"
16858 " _EOF_\n"
16859 "\n"
16860 msgstr ""
16861
16862 # type: textblock
16863 #: ../fish/guestfish.pod:78
16864 msgid "List the LVM logical volumes in a disk image:"
16865 msgstr ""
16866
16867 # type: verbatim
16868 #: ../fish/guestfish.pod:80
16869 #, no-wrap
16870 msgid ""
16871 " guestfish -a disk.img --ro <<_EOF_\n"
16872 " run\n"
16873 " lvs\n"
16874 " _EOF_\n"
16875 "\n"
16876 msgstr ""
16877
16878 # type: textblock
16879 #: ../fish/guestfish.pod:85
16880 msgid "List all the filesystems in a disk image:"
16881 msgstr ""
16882
16883 # type: verbatim
16884 #: ../fish/guestfish.pod:87
16885 #, no-wrap
16886 msgid ""
16887 " guestfish -a disk.img --ro <<_EOF_\n"
16888 " run\n"
16889 " list-filesystems\n"
16890 " _EOF_\n"
16891 "\n"
16892 msgstr ""
16893
16894 # type: =head2
16895 #: ../fish/guestfish.pod:92
16896 msgid "On one command line"
16897 msgstr ""
16898
16899 # type: textblock
16900 #: ../fish/guestfish.pod:94
16901 msgid "Update C</etc/resolv.conf> in a guest:"
16902 msgstr ""
16903
16904 # type: verbatim
16905 #: ../fish/guestfish.pod:96
16906 #, no-wrap
16907 msgid ""
16908 " guestfish \\\n"
16909 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
16910 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
16911 "\n"
16912 msgstr ""
16913
16914 # type: textblock
16915 #: ../fish/guestfish.pod:100
16916 msgid "Edit C</boot/grub/grub.conf> interactively:"
16917 msgstr ""
16918
16919 # type: verbatim
16920 #: ../fish/guestfish.pod:102
16921 #, no-wrap
16922 msgid ""
16923 " guestfish --rw --add disk.img \\\n"
16924 "   --mount /dev/vg_guest/lv_root \\\n"
16925 "   --mount /dev/sda1:/boot \\\n"
16926 "   edit /boot/grub/grub.conf\n"
16927 "\n"
16928 msgstr ""
16929
16930 # type: =head2
16931 #: ../fish/guestfish.pod:107
16932 msgid "Mount disks automatically"
16933 msgstr ""
16934
16935 # type: textblock
16936 #: ../fish/guestfish.pod:109
16937 msgid ""
16938 "Use the I<-i> option to automatically mount the disks from a virtual "
16939 "machine:"
16940 msgstr ""
16941
16942 # type: verbatim
16943 #: ../fish/guestfish.pod:112
16944 #, no-wrap
16945 msgid ""
16946 " guestfish --ro -a disk.img -i cat /etc/group\n"
16947 "\n"
16948 msgstr ""
16949
16950 # type: verbatim
16951 #: ../fish/guestfish.pod:114
16952 #, no-wrap
16953 msgid ""
16954 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
16955 "\n"
16956 msgstr ""
16957
16958 # type: textblock
16959 #: ../fish/guestfish.pod:116
16960 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
16961 msgstr ""
16962
16963 # type: verbatim
16964 #: ../fish/guestfish.pod:118
16965 #, no-wrap
16966 msgid ""
16967 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
16968 "\n"
16969 msgstr ""
16970
16971 # type: =head2
16972 #: ../fish/guestfish.pod:120
16973 msgid "As a script interpreter"
16974 msgstr ""
16975
16976 # type: textblock
16977 #: ../fish/guestfish.pod:122
16978 msgid "Create a 100MB disk containing an ext2-formatted partition:"
16979 msgstr ""
16980
16981 # type: verbatim
16982 #: ../fish/guestfish.pod:124
16983 #, no-wrap
16984 msgid ""
16985 " #!/usr/bin/guestfish -f\n"
16986 " sparse test1.img 100M\n"
16987 " run\n"
16988 " part-disk /dev/sda mbr\n"
16989 " mkfs ext2 /dev/sda1\n"
16990 "\n"
16991 msgstr ""
16992
16993 # type: =head2
16994 #: ../fish/guestfish.pod:130
16995 msgid "Start with a prepared disk"
16996 msgstr ""
16997
16998 # type: textblock
16999 #: ../fish/guestfish.pod:132
17000 msgid ""
17001 "An alternate way to create a 100MB disk called C<test1.img> containing a "
17002 "single ext2-formatted partition:"
17003 msgstr ""
17004
17005 # type: verbatim
17006 #: ../fish/guestfish.pod:135
17007 #, no-wrap
17008 msgid ""
17009 " guestfish -N fs\n"
17010 "\n"
17011 msgstr ""
17012
17013 # type: textblock
17014 #: ../fish/guestfish.pod:137
17015 msgid "To list what is available do:"
17016 msgstr ""
17017
17018 # type: verbatim
17019 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:888
17020 #, no-wrap
17021 msgid ""
17022 " guestfish -N help | less\n"
17023 "\n"
17024 msgstr ""
17025
17026 # type: =head2
17027 #: ../fish/guestfish.pod:141
17028 msgid "Remote control"
17029 msgstr ""
17030
17031 # type: verbatim
17032 #: ../fish/guestfish.pod:143
17033 #, no-wrap
17034 msgid ""
17035 " eval \"`guestfish --listen`\"\n"
17036 " guestfish --remote add-ro disk.img\n"
17037 " guestfish --remote run\n"
17038 " guestfish --remote lvs\n"
17039 "\n"
17040 msgstr ""
17041
17042 # type: =head1
17043 #: ../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
17044 msgid "OPTIONS"
17045 msgstr ""
17046
17047 # type: =item
17048 #: ../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
17049 msgid "B<--help>"
17050 msgstr ""
17051
17052 # type: textblock
17053 #: ../fish/guestfish.pod:154
17054 msgid "Displays general help on options."
17055 msgstr ""
17056
17057 # type: =item
17058 #: ../fish/guestfish.pod:156
17059 msgid "B<-h>"
17060 msgstr ""
17061
17062 # type: =item
17063 #: ../fish/guestfish.pod:158
17064 msgid "B<--cmd-help>"
17065 msgstr ""
17066
17067 # type: textblock
17068 #: ../fish/guestfish.pod:160
17069 msgid "Lists all available guestfish commands."
17070 msgstr ""
17071
17072 # type: =item
17073 #: ../fish/guestfish.pod:162
17074 msgid "B<-h cmd>"
17075 msgstr ""
17076
17077 # type: =item
17078 #: ../fish/guestfish.pod:164
17079 msgid "B<--cmd-help cmd>"
17080 msgstr ""
17081
17082 # type: textblock
17083 #: ../fish/guestfish.pod:166
17084 msgid "Displays detailed help on a single command C<cmd>."
17085 msgstr ""
17086
17087 # type: =item
17088 #: ../fish/guestfish.pod:168
17089 msgid "B<-a image>"
17090 msgstr ""
17091
17092 # type: =item
17093 #: ../fish/guestfish.pod:170
17094 msgid "B<--add image>"
17095 msgstr ""
17096
17097 # type: textblock
17098 #: ../fish/guestfish.pod:172
17099 msgid "Add a block device or virtual machine image to the shell."
17100 msgstr ""
17101
17102 # type: textblock
17103 #: ../fish/guestfish.pod:174 ../fuse/guestmount.pod:81
17104 msgid ""
17105 "The format of the disk image is auto-detected.  To override this and force a "
17106 "particular format use the I<--format=..> option."
17107 msgstr ""
17108
17109 # type: textblock
17110 #: ../fish/guestfish.pod:177
17111 msgid ""
17112 "Using this flag is mostly equivalent to using the C<add> command, with "
17113 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
17114 "the I<--format:...> flag was given."
17115 msgstr ""
17116
17117 # type: =item
17118 #: ../fish/guestfish.pod:181
17119 msgid "B<-c URI>"
17120 msgstr ""
17121
17122 # type: =item
17123 #: ../fish/guestfish.pod:183
17124 msgid "B<--connect URI>"
17125 msgstr ""
17126
17127 # type: textblock
17128 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:86
17129 msgid ""
17130 "When used in conjunction with the I<-d> option, this specifies the libvirt "
17131 "URI to use.  The default is to use the default libvirt connection."
17132 msgstr ""
17133
17134 # type: =item
17135 #: ../fish/guestfish.pod:189
17136 msgid "B<--csh>"
17137 msgstr ""
17138
17139 # type: textblock
17140 #: ../fish/guestfish.pod:191
17141 msgid ""
17142 "If using the I<--listen> option and a csh-like shell, use this option.  See "
17143 "section L</REMOTE CONTROL AND CSH> below."
17144 msgstr ""
17145
17146 # type: =item
17147 #: ../fish/guestfish.pod:194
17148 msgid "B<-d libvirt-domain>"
17149 msgstr ""
17150
17151 # type: =item
17152 #: ../fish/guestfish.pod:196
17153 msgid "B<--domain libvirt-domain>"
17154 msgstr ""
17155
17156 # type: textblock
17157 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:92
17158 msgid ""
17159 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
17160 "used, then any libvirt domain can be used.  However in write mode, only "
17161 "libvirt domains which are shut down can be named here."
17162 msgstr ""
17163
17164 # type: textblock
17165 #: ../fish/guestfish.pod:202
17166 msgid ""
17167 "Using this flag is mostly equivalent to using the C<add-domain> command, "
17168 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
17169 "if the I<--format:...> flag was given."
17170 msgstr ""
17171
17172 # type: =item
17173 #: ../fish/guestfish.pod:206
17174 msgid "B<-D>"
17175 msgstr ""
17176
17177 # type: =item
17178 #: ../fish/guestfish.pod:208
17179 msgid "B<--no-dest-paths>"
17180 msgstr ""
17181
17182 # type: textblock
17183 #: ../fish/guestfish.pod:210
17184 msgid ""
17185 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
17186 "to hit the tab key to complete paths on the guest filesystem, but this "
17187 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
17188 "allow this feature to be disabled."
17189 msgstr ""
17190
17191 # type: =item
17192 #: ../fish/guestfish.pod:215 ../fuse/guestmount.pod:108
17193 msgid "B<--echo-keys>"
17194 msgstr ""
17195
17196 # type: textblock
17197 #: ../fish/guestfish.pod:217 ../fuse/guestmount.pod:110
17198 msgid ""
17199 "When prompting for keys and passphrases, guestfish normally turns echoing "
17200 "off so you cannot see what you are typing.  If you are not worried about "
17201 "Tempest attacks and there is no one else in the room you can specify this "
17202 "flag to see what you are typing."
17203 msgstr ""
17204
17205 # type: =item
17206 #: ../fish/guestfish.pod:222
17207 msgid "B<-f file>"
17208 msgstr ""
17209
17210 # type: =item
17211 #: ../fish/guestfish.pod:224
17212 msgid "B<--file file>"
17213 msgstr ""
17214
17215 # type: textblock
17216 #: ../fish/guestfish.pod:226
17217 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
17218 msgstr ""
17219
17220 # type: verbatim
17221 #: ../fish/guestfish.pod:229
17222 #, no-wrap
17223 msgid ""
17224 " #!/usr/bin/guestfish -f\n"
17225 "\n"
17226 msgstr ""
17227
17228 # type: =item
17229 #: ../fish/guestfish.pod:231
17230 msgid "B<--format=raw|qcow2|..>"
17231 msgstr ""
17232
17233 # type: =item
17234 #: ../fish/guestfish.pod:233
17235 msgid "B<--format>"
17236 msgstr ""
17237
17238 # type: textblock
17239 #: ../fish/guestfish.pod:235 ../fuse/guestmount.pod:117
17240 msgid ""
17241 "The default for the I<-a> option is to auto-detect the format of the disk "
17242 "image.  Using this forces the disk format for I<-a> options which follow on "
17243 "the command line.  Using I<--format> with no argument switches back to "
17244 "auto-detection for subsequent I<-a> options."
17245 msgstr ""
17246
17247 # type: textblock
17248 #: ../fish/guestfish.pod:240 ../fish/guestfish.pod:594
17249 msgid "For example:"
17250 msgstr ""
17251
17252 # type: verbatim
17253 #: ../fish/guestfish.pod:242
17254 #, no-wrap
17255 msgid ""
17256 " guestfish --format=raw -a disk.img\n"
17257 "\n"
17258 msgstr ""
17259
17260 # type: textblock
17261 #: ../fish/guestfish.pod:244
17262 msgid "forces raw format (no auto-detection) for C<disk.img>."
17263 msgstr ""
17264
17265 # type: verbatim
17266 #: ../fish/guestfish.pod:246
17267 #, no-wrap
17268 msgid ""
17269 " guestfish --format=raw -a disk.img --format -a another.img\n"
17270 "\n"
17271 msgstr ""
17272
17273 # type: textblock
17274 #: ../fish/guestfish.pod:248
17275 msgid ""
17276 "forces raw format (no auto-detection) for C<disk.img> and reverts to "
17277 "auto-detection for C<another.img>."
17278 msgstr ""
17279
17280 # type: textblock
17281 #: ../fish/guestfish.pod:251
17282 msgid ""
17283 "If you have untrusted raw-format guest disk images, you should use this "
17284 "option to specify the disk format.  This avoids a possible security problem "
17285 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
17286 msgstr ""
17287
17288 # type: =item
17289 #: ../fish/guestfish.pod:256
17290 msgid "B<-i>"
17291 msgstr ""
17292
17293 # type: =item
17294 #: ../fish/guestfish.pod:258
17295 msgid "B<--inspector>"
17296 msgstr ""
17297
17298 # type: textblock
17299 #: ../fish/guestfish.pod:260 ../fuse/guestmount.pod:137
17300 msgid ""
17301 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
17302 "system and mount filesystems as they would be mounted on the real virtual "
17303 "machine."
17304 msgstr ""
17305
17306 # type: textblock
17307 #: ../fish/guestfish.pod:264
17308 msgid "Typical usage is either:"
17309 msgstr ""
17310
17311 # type: verbatim
17312 #: ../fish/guestfish.pod:266
17313 #, no-wrap
17314 msgid ""
17315 " guestfish -d myguest -i\n"
17316 "\n"
17317 msgstr ""
17318
17319 # type: textblock
17320 #: ../fish/guestfish.pod:268
17321 msgid "(for an inactive libvirt domain called I<myguest>), or:"
17322 msgstr ""
17323
17324 # type: verbatim
17325 #: ../fish/guestfish.pod:270
17326 #, no-wrap
17327 msgid ""
17328 " guestfish --ro -d myguest -i\n"
17329 "\n"
17330 msgstr ""
17331
17332 # type: textblock
17333 #: ../fish/guestfish.pod:272
17334 msgid "(for active domains, readonly), or specify the block device directly:"
17335 msgstr ""
17336
17337 # type: verbatim
17338 #: ../fish/guestfish.pod:274
17339 #, no-wrap
17340 msgid ""
17341 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
17342 "\n"
17343 msgstr ""
17344
17345 # type: textblock
17346 #: ../fish/guestfish.pod:276
17347 msgid ""
17348 "Note that the command line syntax changed slightly over older versions of "
17349 "guestfish.  You can still use the old syntax:"
17350 msgstr ""
17351
17352 # type: verbatim
17353 #: ../fish/guestfish.pod:279
17354 #, no-wrap
17355 msgid ""
17356 " guestfish [--ro] -i disk.img\n"
17357 "\n"
17358 msgstr ""
17359
17360 # type: verbatim
17361 #: ../fish/guestfish.pod:281
17362 #, no-wrap
17363 msgid ""
17364 " guestfish [--ro] -i libvirt-domain\n"
17365 "\n"
17366 msgstr ""
17367
17368 # type: textblock
17369 #: ../fish/guestfish.pod:283
17370 msgid ""
17371 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
17372 "then using other commands to mount the filesystems that were found."
17373 msgstr ""
17374
17375 # type: =item
17376 #: ../fish/guestfish.pod:287 ../fuse/guestmount.pod:141
17377 msgid "B<--keys-from-stdin>"
17378 msgstr ""
17379
17380 # type: textblock
17381 #: ../fish/guestfish.pod:289 ../fuse/guestmount.pod:143
17382 msgid ""
17383 "Read key or passphrase parameters from stdin.  The default is to try to read "
17384 "passphrases from the user by opening C</dev/tty>."
17385 msgstr ""
17386
17387 # type: =item
17388 #: ../fish/guestfish.pod:292
17389 msgid "B<--listen>"
17390 msgstr ""
17391
17392 # type: textblock
17393 #: ../fish/guestfish.pod:294
17394 msgid ""
17395 "Fork into the background and listen for remote commands.  See section "
17396 "L</REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
17397 msgstr ""
17398
17399 # type: =item
17400 #: ../fish/guestfish.pod:297
17401 msgid "B<-m dev[:mountpoint]>"
17402 msgstr ""
17403
17404 # type: =item
17405 #: ../fish/guestfish.pod:299
17406 msgid "B<--mount dev[:mountpoint]>"
17407 msgstr ""
17408
17409 # type: textblock
17410 #: ../fish/guestfish.pod:301
17411 msgid "Mount the named partition or logical volume on the given mountpoint."
17412 msgstr ""
17413
17414 # type: textblock
17415 #: ../fish/guestfish.pod:303
17416 msgid "If the mountpoint is omitted, it defaults to C</>."
17417 msgstr ""
17418
17419 # type: textblock
17420 #: ../fish/guestfish.pod:305
17421 msgid "You have to mount something on C</> before most commands will work."
17422 msgstr ""
17423
17424 # type: textblock
17425 #: ../fish/guestfish.pod:307
17426 msgid ""
17427 "If any I<-m> or I<--mount> options are given, the guest is automatically "
17428 "launched."
17429 msgstr ""
17430
17431 # type: textblock
17432 #: ../fish/guestfish.pod:310
17433 msgid ""
17434 "If you don't know what filesystems a disk image contains, you can either run "
17435 "guestfish without this option, then list the partitions, filesystems and LVs "
17436 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
17437 "commands), or you can use the L<virt-filesystems(1)> program."
17438 msgstr ""
17439
17440 # type: textblock
17441 #: ../fish/guestfish.pod:316
17442 msgid ""
17443 "Using this flag is mostly equivalent to using the C<mount-options> command "
17444 "or the C<mount-ro> command if the I<--ro> flag was given."
17445 msgstr ""
17446
17447 # type: =item
17448 #: ../fish/guestfish.pod:319
17449 msgid "B<-n>"
17450 msgstr ""
17451
17452 # type: =item
17453 #: ../fish/guestfish.pod:321
17454 msgid "B<--no-sync>"
17455 msgstr ""
17456
17457 # type: textblock
17458 #: ../fish/guestfish.pod:323
17459 msgid ""
17460 "Disable autosync.  This is enabled by default.  See the discussion of "
17461 "autosync in the L<guestfs(3)> manpage."
17462 msgstr ""
17463
17464 # type: =item
17465 #: ../fish/guestfish.pod:326
17466 msgid "B<-N type>"
17467 msgstr ""
17468
17469 # type: =item
17470 #: ../fish/guestfish.pod:328
17471 msgid "B<--new type>"
17472 msgstr ""
17473
17474 # type: =item
17475 #: ../fish/guestfish.pod:330
17476 msgid "B<-N help>"
17477 msgstr ""
17478
17479 # type: textblock
17480 #: ../fish/guestfish.pod:332
17481 msgid ""
17482 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
17483 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
17484 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
17485 "IMAGES> below."
17486 msgstr ""
17487
17488 # type: =item
17489 #: ../fish/guestfish.pod:337
17490 msgid "B<--progress-bars>"
17491 msgstr ""
17492
17493 # type: textblock
17494 #: ../fish/guestfish.pod:339
17495 msgid "Enable progress bars, even when guestfish is used non-interactively."
17496 msgstr ""
17497
17498 # type: textblock
17499 #: ../fish/guestfish.pod:341
17500 msgid ""
17501 "Progress bars are enabled by default when guestfish is used as an "
17502 "interactive shell."
17503 msgstr ""
17504
17505 # type: =item
17506 #: ../fish/guestfish.pod:344
17507 msgid "B<--no-progress-bars>"
17508 msgstr ""
17509
17510 # type: textblock
17511 #: ../fish/guestfish.pod:346
17512 msgid "Disable progress bars."
17513 msgstr ""
17514
17515 # type: =item
17516 #: ../fish/guestfish.pod:348
17517 msgid "B<--remote[=pid]>"
17518 msgstr ""
17519
17520 # type: textblock
17521 #: ../fish/guestfish.pod:350
17522 msgid ""
17523 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
17524 "CONTROL GUESTFISH OVER A SOCKET> below."
17525 msgstr ""
17526
17527 # type: =item
17528 #: ../fish/guestfish.pod:353
17529 msgid "B<-r>"
17530 msgstr ""
17531
17532 # type: =item
17533 #: ../fish/guestfish.pod:355
17534 msgid "B<--ro>"
17535 msgstr ""
17536
17537 # type: textblock
17538 #: ../fish/guestfish.pod:357
17539 msgid ""
17540 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
17541 "mounts are done read-only."
17542 msgstr ""
17543
17544 # type: textblock
17545 #: ../fish/guestfish.pod:360
17546 msgid ""
17547 "The option must always be used if the disk image or virtual machine might be "
17548 "running, and is generally recommended in cases where you don't need write "
17549 "access to the disk."
17550 msgstr ""
17551
17552 # type: textblock
17553 #: ../fish/guestfish.pod:364
17554 msgid ""
17555 "Note that prepared disk images created with I<-N> are not affected by this "
17556 "option.  Also commands like C<add> are not affected - you have to specify "
17557 "the C<readonly:true> option explicitly if you need it."
17558 msgstr ""
17559
17560 # type: textblock
17561 #: ../fish/guestfish.pod:368
17562 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
17563 msgstr ""
17564
17565 # type: =item
17566 #: ../fish/guestfish.pod:370 ../fuse/guestmount.pod:208
17567 msgid "B<--selinux>"
17568 msgstr ""
17569
17570 # type: textblock
17571 #: ../fish/guestfish.pod:372
17572 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
17573 msgstr ""
17574
17575 # type: =item
17576 #: ../fish/guestfish.pod:374
17577 msgid "B<-v>"
17578 msgstr ""
17579
17580 # type: =item
17581 #: ../fish/guestfish.pod:376
17582 msgid "B<--verbose>"
17583 msgstr ""
17584
17585 # type: textblock
17586 #: ../fish/guestfish.pod:378
17587 msgid ""
17588 "Enable very verbose messages.  This is particularly useful if you find a "
17589 "bug."
17590 msgstr ""
17591
17592 # type: =item
17593 #: ../fish/guestfish.pod:381
17594 msgid "B<-V>"
17595 msgstr ""
17596
17597 # type: =item
17598 #: ../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
17599 msgid "B<--version>"
17600 msgstr ""
17601
17602 # type: textblock
17603 #: ../fish/guestfish.pod:385
17604 msgid "Display the guestfish / libguestfs version number and exit."
17605 msgstr ""
17606
17607 # type: =item
17608 #: ../fish/guestfish.pod:387
17609 msgid "B<-w>"
17610 msgstr ""
17611
17612 # type: =item
17613 #: ../fish/guestfish.pod:389
17614 msgid "B<--rw>"
17615 msgstr ""
17616
17617 # type: textblock
17618 #: ../fish/guestfish.pod:391
17619 msgid ""
17620 "This option does nothing at the moment.  See L</OPENING DISKS FOR READ AND "
17621 "WRITE> below."
17622 msgstr ""
17623
17624 # type: =item
17625 #: ../fish/guestfish.pod:394
17626 msgid "B<-x>"
17627 msgstr ""
17628
17629 # type: textblock
17630 #: ../fish/guestfish.pod:396
17631 msgid "Echo each command before executing it."
17632 msgstr ""
17633
17634 # type: =head1
17635 #: ../fish/guestfish.pod:400
17636 msgid "COMMANDS ON COMMAND LINE"
17637 msgstr ""
17638
17639 # type: textblock
17640 #: ../fish/guestfish.pod:402
17641 msgid "Any additional (non-option) arguments are treated as commands to execute."
17642 msgstr ""
17643
17644 # type: textblock
17645 #: ../fish/guestfish.pod:405
17646 msgid ""
17647 "Commands to execute should be separated by a colon (C<:>), where the colon "
17648 "is a separate parameter.  Thus:"
17649 msgstr ""
17650
17651 # type: verbatim
17652 #: ../fish/guestfish.pod:408
17653 #, no-wrap
17654 msgid ""
17655 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
17656 "\n"
17657 msgstr ""
17658
17659 # type: textblock
17660 #: ../fish/guestfish.pod:410
17661 msgid ""
17662 "If there are no additional arguments, then we enter a shell, either an "
17663 "interactive shell with a prompt (if the input is a terminal) or a "
17664 "non-interactive shell."
17665 msgstr ""
17666
17667 # type: textblock
17668 #: ../fish/guestfish.pod:414
17669 msgid ""
17670 "In either command line mode or non-interactive shell, the first command that "
17671 "gives an error causes the whole shell to exit.  In interactive mode (with a "
17672 "prompt) if a command fails, you can continue to enter commands."
17673 msgstr ""
17674
17675 # type: =head1
17676 #: ../fish/guestfish.pod:419
17677 msgid "USING launch (OR run)"
17678 msgstr ""
17679
17680 # type: textblock
17681 #: ../fish/guestfish.pod:421
17682 msgid ""
17683 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
17684 "then launch it, then mount any disks you need, and finally issue "
17685 "actions/commands.  So the general order of the day is:"
17686 msgstr ""
17687
17688 # type: textblock
17689 #: ../fish/guestfish.pod:429
17690 msgid "add or -a/--add"
17691 msgstr ""
17692
17693 # type: textblock
17694 #: ../fish/guestfish.pod:433
17695 msgid "launch (aka run)"
17696 msgstr ""
17697
17698 # type: textblock
17699 #: ../fish/guestfish.pod:437
17700 msgid "mount or -m/--mount"
17701 msgstr ""
17702
17703 # type: textblock
17704 #: ../fish/guestfish.pod:441
17705 msgid "any other commands"
17706 msgstr ""
17707
17708 # type: textblock
17709 #: ../fish/guestfish.pod:445
17710 msgid ""
17711 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
17712 "guest before mounting or performing any other commands."
17713 msgstr ""
17714
17715 # type: textblock
17716 #: ../fish/guestfish.pod:448
17717 msgid ""
17718 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
17719 "I<--new> options were given then C<run> is done automatically, simply "
17720 "because guestfish can't perform the action you asked for without doing this."
17721 msgstr ""
17722
17723 # type: =head1
17724 #: ../fish/guestfish.pod:453
17725 msgid "OPENING DISKS FOR READ AND WRITE"
17726 msgstr ""
17727
17728 # type: textblock
17729 #: ../fish/guestfish.pod:455
17730 msgid ""
17731 "The guestfish (and L<guestmount(1)>) options I<--ro> and I<--rw> affect "
17732 "whether the other command line options I<-a>, I<-c>, I<-d>, I<-i> and I<-m> "
17733 "open disk images read-only or for writing."
17734 msgstr ""
17735
17736 # type: textblock
17737 #: ../fish/guestfish.pod:459
17738 msgid ""
17739 "In libguestfs E<lt> 1.6.2, guestfish and guestmount defaulted to opening "
17740 "disk images supplied on the command line for write.  To open a disk image "
17741 "read-only you have to do I<-a image --ro>."
17742 msgstr ""
17743
17744 # type: textblock
17745 #: ../fish/guestfish.pod:463
17746 msgid ""
17747 "This matters: If you accidentally open a live VM disk image writable then "
17748 "you will cause irreversible disk corruption."
17749 msgstr ""
17750
17751 # type: textblock
17752 #: ../fish/guestfish.pod:466
17753 msgid ""
17754 "By libguestfs 1.8 we intend to change the default the other way.  Disk "
17755 "images will be opened read-only.  You will have to either specify "
17756 "I<guestfish --rw> or change a configuration file in order to get write "
17757 "access for disk images specified by those other command line options."
17758 msgstr ""
17759
17760 # type: textblock
17761 #: ../fish/guestfish.pod:471
17762 msgid ""
17763 "This version of guestfish has a I<--rw> option which does nothing (it is "
17764 "already the default).  However it is highly recommended that you use this "
17765 "option to indicate that guestfish needs write access, and to prepare your "
17766 "scripts for the day when this option will be required for write access."
17767 msgstr ""
17768
17769 # type: textblock
17770 #: ../fish/guestfish.pod:477
17771 msgid ""
17772 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
17773 "other libguestfs program apart from guestfish and guestmount."
17774 msgstr ""
17775
17776 # type: =head1
17777 #: ../fish/guestfish.pod:480
17778 msgid "QUOTING"
17779 msgstr ""
17780
17781 # type: textblock
17782 #: ../fish/guestfish.pod:482
17783 msgid ""
17784 "You can quote ordinary parameters using either single or double quotes.  For "
17785 "example:"
17786 msgstr ""
17787
17788 # type: verbatim
17789 #: ../fish/guestfish.pod:485
17790 #, no-wrap
17791 msgid ""
17792 " add \"file with a space.img\"\n"
17793 "\n"
17794 msgstr ""
17795
17796 # type: verbatim
17797 #: ../fish/guestfish.pod:487
17798 #, no-wrap
17799 msgid ""
17800 " rm '/file name'\n"
17801 "\n"
17802 msgstr ""
17803
17804 # type: verbatim
17805 #: ../fish/guestfish.pod:489
17806 #, no-wrap
17807 msgid ""
17808 " rm '/\"'\n"
17809 "\n"
17810 msgstr ""
17811
17812 # type: textblock
17813 #: ../fish/guestfish.pod:491
17814 msgid ""
17815 "A few commands require a list of strings to be passed.  For these, use a "
17816 "whitespace-separated list, enclosed in quotes.  Strings containing "
17817 "whitespace to be passed through must be enclosed in single quotes.  A "
17818 "literal single quote must be escaped with a backslash."
17819 msgstr ""
17820
17821 # type: verbatim
17822 #: ../fish/guestfish.pod:496
17823 #, no-wrap
17824 msgid ""
17825 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
17826 " command \"/bin/echo 'foo      bar'\"\n"
17827 " command \"/bin/echo \\'foo\\'\"\n"
17828 "\n"
17829 msgstr ""
17830
17831 # type: =head1
17832 #: ../fish/guestfish.pod:500
17833 msgid "OPTIONAL ARGUMENTS"
17834 msgstr ""
17835
17836 # type: textblock
17837 #: ../fish/guestfish.pod:502
17838 msgid ""
17839 "Some commands take optional arguments.  These arguments appear in this "
17840 "documentation as C<[argname:..]>.  You can use them as in these examples:"
17841 msgstr ""
17842
17843 # type: verbatim
17844 #: ../fish/guestfish.pod:506
17845 #, no-wrap
17846 msgid ""
17847 " add-drive-opts filename\n"
17848 "\n"
17849 msgstr ""
17850
17851 # type: verbatim
17852 #: ../fish/guestfish.pod:508
17853 #, no-wrap
17854 msgid ""
17855 " add-drive-opts filename readonly:true\n"
17856 "\n"
17857 msgstr ""
17858
17859 # type: verbatim
17860 #: ../fish/guestfish.pod:510
17861 #, no-wrap
17862 msgid ""
17863 " add-drive-opts filename format:qcow2 readonly:false\n"
17864 "\n"
17865 msgstr ""
17866
17867 # type: textblock
17868 #: ../fish/guestfish.pod:512
17869 msgid ""
17870 "Each optional argument can appear at most once.  All optional arguments must "
17871 "appear after the required ones."
17872 msgstr ""
17873
17874 # type: =head1
17875 #: ../fish/guestfish.pod:515
17876 msgid "NUMBERS"
17877 msgstr ""
17878
17879 # type: textblock
17880 #: ../fish/guestfish.pod:517
17881 msgid "This section applies to all commands which can take integers as parameters."
17882 msgstr ""
17883
17884 # type: =head2
17885 #: ../fish/guestfish.pod:520
17886 msgid "SIZE SUFFIX"
17887 msgstr ""
17888
17889 # type: textblock
17890 #: ../fish/guestfish.pod:522
17891 msgid ""
17892 "When the command takes a parameter measured in bytes, you can use one of the "
17893 "following suffixes to specify kilobytes, megabytes and larger sizes:"
17894 msgstr ""
17895
17896 # type: =item
17897 #: ../fish/guestfish.pod:528
17898 msgid "B<k> or B<K> or B<KiB>"
17899 msgstr ""
17900
17901 # type: textblock
17902 #: ../fish/guestfish.pod:530
17903 msgid "The size in kilobytes (multiplied by 1024)."
17904 msgstr ""
17905
17906 # type: =item
17907 #: ../fish/guestfish.pod:532
17908 msgid "B<KB>"
17909 msgstr ""
17910
17911 # type: textblock
17912 #: ../fish/guestfish.pod:534
17913 msgid "The size in SI 1000 byte units."
17914 msgstr ""
17915
17916 # type: =item
17917 #: ../fish/guestfish.pod:536
17918 msgid "B<M> or B<MiB>"
17919 msgstr ""
17920
17921 # type: textblock
17922 #: ../fish/guestfish.pod:538
17923 msgid "The size in megabytes (multiplied by 1048576)."
17924 msgstr ""
17925
17926 # type: =item
17927 #: ../fish/guestfish.pod:540
17928 msgid "B<MB>"
17929 msgstr ""
17930
17931 # type: textblock
17932 #: ../fish/guestfish.pod:542
17933 msgid "The size in SI 1000000 byte units."
17934 msgstr ""
17935
17936 # type: =item
17937 #: ../fish/guestfish.pod:544
17938 msgid "B<G> or B<GiB>"
17939 msgstr ""
17940
17941 # type: textblock
17942 #: ../fish/guestfish.pod:546
17943 msgid "The size in gigabytes (multiplied by 2**30)."
17944 msgstr ""
17945
17946 # type: =item
17947 #: ../fish/guestfish.pod:548
17948 msgid "B<GB>"
17949 msgstr ""
17950
17951 # type: textblock
17952 #: ../fish/guestfish.pod:550
17953 msgid "The size in SI 10**9 byte units."
17954 msgstr ""
17955
17956 # type: =item
17957 #: ../fish/guestfish.pod:552
17958 msgid "B<T> or B<TiB>"
17959 msgstr ""
17960
17961 # type: textblock
17962 #: ../fish/guestfish.pod:554
17963 msgid "The size in terabytes (multiplied by 2**40)."
17964 msgstr ""
17965
17966 # type: =item
17967 #: ../fish/guestfish.pod:556
17968 msgid "B<TB>"
17969 msgstr ""
17970
17971 # type: textblock
17972 #: ../fish/guestfish.pod:558
17973 msgid "The size in SI 10**12 byte units."
17974 msgstr ""
17975
17976 # type: =item
17977 #: ../fish/guestfish.pod:560
17978 msgid "B<P> or B<PiB>"
17979 msgstr ""
17980
17981 # type: textblock
17982 #: ../fish/guestfish.pod:562
17983 msgid "The size in petabytes (multiplied by 2**50)."
17984 msgstr ""
17985
17986 # type: =item
17987 #: ../fish/guestfish.pod:564
17988 msgid "B<PB>"
17989 msgstr ""
17990
17991 # type: textblock
17992 #: ../fish/guestfish.pod:566
17993 msgid "The size in SI 10**15 byte units."
17994 msgstr ""
17995
17996 # type: =item
17997 #: ../fish/guestfish.pod:568
17998 msgid "B<E> or B<EiB>"
17999 msgstr ""
18000
18001 # type: textblock
18002 #: ../fish/guestfish.pod:570
18003 msgid "The size in exabytes (multiplied by 2**60)."
18004 msgstr ""
18005
18006 # type: =item
18007 #: ../fish/guestfish.pod:572
18008 msgid "B<EB>"
18009 msgstr ""
18010
18011 # type: textblock
18012 #: ../fish/guestfish.pod:574
18013 msgid "The size in SI 10**18 byte units."
18014 msgstr ""
18015
18016 # type: =item
18017 #: ../fish/guestfish.pod:576
18018 msgid "B<Z> or B<ZiB>"
18019 msgstr ""
18020
18021 # type: textblock
18022 #: ../fish/guestfish.pod:578
18023 msgid "The size in zettabytes (multiplied by 2**70)."
18024 msgstr ""
18025
18026 # type: =item
18027 #: ../fish/guestfish.pod:580
18028 msgid "B<ZB>"
18029 msgstr ""
18030
18031 # type: textblock
18032 #: ../fish/guestfish.pod:582
18033 msgid "The size in SI 10**21 byte units."
18034 msgstr ""
18035
18036 # type: =item
18037 #: ../fish/guestfish.pod:584
18038 msgid "B<Y> or B<YiB>"
18039 msgstr ""
18040
18041 # type: textblock
18042 #: ../fish/guestfish.pod:586
18043 msgid "The size in yottabytes (multiplied by 2**80)."
18044 msgstr ""
18045
18046 # type: =item
18047 #: ../fish/guestfish.pod:588
18048 msgid "B<YB>"
18049 msgstr ""
18050
18051 # type: textblock
18052 #: ../fish/guestfish.pod:590
18053 msgid "The size in SI 10**24 byte units."
18054 msgstr ""
18055
18056 # type: verbatim
18057 #: ../fish/guestfish.pod:596
18058 #, no-wrap
18059 msgid ""
18060 " truncate-size /file 1G\n"
18061 "\n"
18062 msgstr ""
18063
18064 # type: textblock
18065 #: ../fish/guestfish.pod:598
18066 msgid "would truncate the file to 1 gigabyte."
18067 msgstr ""
18068
18069 # type: textblock
18070 #: ../fish/guestfish.pod:600
18071 msgid ""
18072 "Be careful because a few commands take sizes in kilobytes or megabytes "
18073 "(eg. the parameter to L</memsize> is specified in megabytes already).  "
18074 "Adding a suffix will probably not do what you expect."
18075 msgstr ""
18076
18077 # type: =head2
18078 #: ../fish/guestfish.pod:604
18079 msgid "OCTAL AND HEXADECIMAL NUMBERS"
18080 msgstr ""
18081
18082 # type: textblock
18083 #: ../fish/guestfish.pod:606
18084 msgid ""
18085 "For specifying the radix (base) use the C convention: C<0> to prefix an "
18086 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
18087 msgstr ""
18088
18089 # type: verbatim
18090 #: ../fish/guestfish.pod:609
18091 #, no-wrap
18092 msgid ""
18093 " 1234      decimal number 1234\n"
18094 " 02322     octal number, equivalent to decimal 1234\n"
18095 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
18096 "\n"
18097 msgstr ""
18098
18099 # type: textblock
18100 #: ../fish/guestfish.pod:613
18101 msgid ""
18102 "When using the C<chmod> command, you almost always want to specify an octal "
18103 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
18104 "L<chmod(1)> program):"
18105 msgstr ""
18106
18107 # type: verbatim
18108 #: ../fish/guestfish.pod:617
18109 #, no-wrap
18110 msgid ""
18111 " chmod 0777 /public  # OK\n"
18112 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
18113 "\n"
18114 msgstr ""
18115
18116 # type: textblock
18117 #: ../fish/guestfish.pod:620
18118 msgid ""
18119 "Commands that return numbers usually print them in decimal, but some "
18120 "commands print numbers in other radices (eg. C<umask> prints the mode in "
18121 "octal, preceeded by C<0>)."
18122 msgstr ""
18123
18124 # type: =head1
18125 #: ../fish/guestfish.pod:624
18126 msgid "WILDCARDS AND GLOBBING"
18127 msgstr ""
18128
18129 # type: textblock
18130 #: ../fish/guestfish.pod:626
18131 msgid ""
18132 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
18133 "(globbing) by default.  So for example the following will not do what you "
18134 "expect:"
18135 msgstr ""
18136
18137 # type: verbatim
18138 #: ../fish/guestfish.pod:630
18139 #, no-wrap
18140 msgid ""
18141 " rm-rf /home/*\n"
18142 "\n"
18143 msgstr ""
18144
18145 # type: textblock
18146 #: ../fish/guestfish.pod:632
18147 msgid ""
18148 "Assuming you don't have a directory called literally C</home/*> then the "
18149 "above command will return an error."
18150 msgstr ""
18151
18152 # type: textblock
18153 #: ../fish/guestfish.pod:635
18154 msgid "To perform wildcard expansion, use the C<glob> command."
18155 msgstr ""
18156
18157 # type: verbatim
18158 #: ../fish/guestfish.pod:637
18159 #, no-wrap
18160 msgid ""
18161 " glob rm-rf /home/*\n"
18162 "\n"
18163 msgstr ""
18164
18165 # type: textblock
18166 #: ../fish/guestfish.pod:639
18167 msgid ""
18168 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
18169 "many times), equivalent to:"
18170 msgstr ""
18171
18172 # type: verbatim
18173 #: ../fish/guestfish.pod:642
18174 #, no-wrap
18175 msgid ""
18176 " rm-rf /home/jim\n"
18177 " rm-rf /home/joe\n"
18178 " rm-rf /home/mary\n"
18179 "\n"
18180 msgstr ""
18181
18182 # type: textblock
18183 #: ../fish/guestfish.pod:646
18184 msgid "C<glob> only works on simple guest paths and not on device names."
18185 msgstr ""
18186
18187 # type: textblock
18188 #: ../fish/guestfish.pod:648
18189 msgid ""
18190 "If you have several parameters, each containing a wildcard, then glob will "
18191 "perform a Cartesian product."
18192 msgstr ""
18193
18194 # type: =head1
18195 #: ../fish/guestfish.pod:651
18196 msgid "COMMENTS"
18197 msgstr ""
18198
18199 # type: textblock
18200 #: ../fish/guestfish.pod:653
18201 msgid ""
18202 "Any line which starts with a I<#> character is treated as a comment and "
18203 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
18204 "a command.  For example:"
18205 msgstr ""
18206
18207 # type: verbatim
18208 #: ../fish/guestfish.pod:657
18209 #, no-wrap
18210 msgid ""
18211 " # this is a comment\n"
18212 "         # this is a comment\n"
18213 " foo # NOT a comment\n"
18214 "\n"
18215 msgstr ""
18216
18217 # type: textblock
18218 #: ../fish/guestfish.pod:661
18219 msgid "Blank lines are also ignored."
18220 msgstr ""
18221
18222 # type: =head1
18223 #: ../fish/guestfish.pod:663
18224 msgid "RUNNING COMMANDS LOCALLY"
18225 msgstr ""
18226
18227 # type: textblock
18228 #: ../fish/guestfish.pod:665
18229 msgid ""
18230 "Any line which starts with a I<!> character is treated as a command sent to "
18231 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
18232 msgstr ""
18233
18234 # type: verbatim
18235 #: ../fish/guestfish.pod:669
18236 #, no-wrap
18237 msgid ""
18238 " !mkdir local\n"
18239 " tgz-out /remote local/remote-data.tar.gz\n"
18240 "\n"
18241 msgstr ""
18242
18243 # type: textblock
18244 #: ../fish/guestfish.pod:672
18245 msgid ""
18246 "will create a directory C<local> on the host, and then export the contents "
18247 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
18248 "(See C<tgz-out>)."
18249 msgstr ""
18250
18251 # type: textblock
18252 #: ../fish/guestfish.pod:676
18253 msgid ""
18254 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
18255 "effect, due to the way that subprocesses work in Unix."
18256 msgstr ""
18257
18258 # type: =head1
18259 #: ../fish/guestfish.pod:679
18260 msgid "PIPES"
18261 msgstr ""
18262
18263 # type: textblock
18264 #: ../fish/guestfish.pod:681
18265 msgid ""
18266 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
18267 "command (a guestfish command) to the second command (any host command).  For "
18268 "example:"
18269 msgstr ""
18270
18271 # type: verbatim
18272 #: ../fish/guestfish.pod:685
18273 #, no-wrap
18274 msgid ""
18275 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
18276 "\n"
18277 msgstr ""
18278
18279 # type: textblock
18280 #: ../fish/guestfish.pod:687
18281 msgid ""
18282 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
18283 "program).  The above command would list all accounts in the guest filesystem "
18284 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
18285 msgstr ""
18286
18287 # type: verbatim
18288 #: ../fish/guestfish.pod:692
18289 #, no-wrap
18290 msgid ""
18291 " hexdump /bin/ls | head\n"
18292 " list-devices | tail -1\n"
18293 " tgz-out / - | tar ztf -\n"
18294 "\n"
18295 msgstr ""
18296
18297 # type: textblock
18298 #: ../fish/guestfish.pod:696
18299 msgid ""
18300 "The space before the pipe symbol is required, any space after the pipe "
18301 "symbol is optional.  Everything after the pipe symbol is just passed "
18302 "straight to the host shell, so it can contain redirections, globs and "
18303 "anything else that makes sense on the host side."
18304 msgstr ""
18305
18306 # type: textblock
18307 #: ../fish/guestfish.pod:701
18308 msgid ""
18309 "To use a literal argument which begins with a pipe symbol, you have to quote "
18310 "it, eg:"
18311 msgstr ""
18312
18313 # type: verbatim
18314 #: ../fish/guestfish.pod:704
18315 #, no-wrap
18316 msgid ""
18317 " echo \"|\"\n"
18318 "\n"
18319 msgstr ""
18320
18321 # type: =head1
18322 #: ../fish/guestfish.pod:706
18323 msgid "HOME DIRECTORIES"
18324 msgstr ""
18325
18326 # type: textblock
18327 #: ../fish/guestfish.pod:708
18328 msgid ""
18329 "If a parameter starts with the character C<~> then the tilde may be expanded "
18330 "as a home directory path (either C<~> for the current user's home directory, "
18331 "or C<~user> for another user)."
18332 msgstr ""
18333
18334 # type: textblock
18335 #: ../fish/guestfish.pod:712
18336 msgid ""
18337 "Note that home directory expansion happens for users known I<on the host>, "
18338 "not in the guest filesystem."
18339 msgstr ""
18340
18341 # type: textblock
18342 #: ../fish/guestfish.pod:715
18343 msgid ""
18344 "To use a literal argument which begins with a tilde, you have to quote it, "
18345 "eg:"
18346 msgstr ""
18347
18348 # type: verbatim
18349 #: ../fish/guestfish.pod:718
18350 #, no-wrap
18351 msgid ""
18352 " echo \"~\"\n"
18353 "\n"
18354 msgstr ""
18355
18356 # type: textblock
18357 #: ../fish/guestfish.pod:722
18358 msgid ""
18359 "Libguestfs has some support for Linux guests encrypted according to the "
18360 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
18361 "disk encryption systems used by modern Linux guests.  Currently only "
18362 "LVM-on-LUKS is supported."
18363 msgstr ""
18364
18365 # type: textblock
18366 #: ../fish/guestfish.pod:727
18367 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
18368 msgstr ""
18369
18370 # type: verbatim
18371 #: ../fish/guestfish.pod:729
18372 #, no-wrap
18373 msgid ""
18374 " ><fs> vfs-type /dev/sda2\n"
18375 " crypto_LUKS\n"
18376 "\n"
18377 msgstr ""
18378
18379 # type: textblock
18380 #: ../fish/guestfish.pod:732
18381 msgid ""
18382 "Then open those devices using L</luks-open>.  This creates a device-mapper "
18383 "device called C</dev/mapper/luksdev>."
18384 msgstr ""
18385
18386 # type: verbatim
18387 #: ../fish/guestfish.pod:735
18388 #, no-wrap
18389 msgid ""
18390 " ><fs> luks-open /dev/sda2 luksdev\n"
18391 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
18392 "\n"
18393 msgstr ""
18394
18395 # type: textblock
18396 #: ../fish/guestfish.pod:738
18397 msgid ""
18398 "Finally you have to tell LVM to scan for volume groups on the newly created "
18399 "mapper device:"
18400 msgstr ""
18401
18402 # type: verbatim
18403 #: ../fish/guestfish.pod:741
18404 #, no-wrap
18405 msgid ""
18406 " vgscan\n"
18407 " vg-activate-all true\n"
18408 "\n"
18409 msgstr ""
18410
18411 # type: textblock
18412 #: ../fish/guestfish.pod:744
18413 msgid "The logical volume(s) can now be mounted in the usual way."
18414 msgstr ""
18415
18416 # type: textblock
18417 #: ../fish/guestfish.pod:746
18418 msgid ""
18419 "Before closing a LUKS device you must unmount any logical volumes on it and "
18420 "deactivate the volume groups by calling C<vg-activate false VG> on each "
18421 "one.  Then you can close the mapper device:"
18422 msgstr ""
18423
18424 # type: verbatim
18425 #: ../fish/guestfish.pod:750
18426 #, no-wrap
18427 msgid ""
18428 " vg-activate false /dev/VG\n"
18429 " luks-close /dev/mapper/luksdev\n"
18430 "\n"
18431 msgstr ""
18432
18433 # type: =head1
18434 #: ../fish/guestfish.pod:753
18435 msgid "WINDOWS PATHS"
18436 msgstr ""
18437
18438 # type: textblock
18439 #: ../fish/guestfish.pod:755
18440 msgid ""
18441 "If a path is prefixed with C<win:> then you can use Windows-style paths "
18442 "(with some limitations).  The following commands are equivalent:"
18443 msgstr ""
18444
18445 # type: verbatim
18446 #: ../fish/guestfish.pod:758
18447 #, no-wrap
18448 msgid ""
18449 " file /WINDOWS/system32/config/system.LOG\n"
18450 "\n"
18451 msgstr ""
18452
18453 # type: verbatim
18454 #: ../fish/guestfish.pod:760
18455 #, no-wrap
18456 msgid ""
18457 " file win:/windows/system32/config/system.log\n"
18458 "\n"
18459 msgstr ""
18460
18461 # type: verbatim
18462 #: ../fish/guestfish.pod:762
18463 #, no-wrap
18464 msgid ""
18465 " file win:\\windows\\system32\\config\\system.log\n"
18466 "\n"
18467 msgstr ""
18468
18469 # type: verbatim
18470 #: ../fish/guestfish.pod:764
18471 #, no-wrap
18472 msgid ""
18473 " file WIN:C:\\Windows\\SYSTEM32\\conFIG\\SYSTEM.LOG\n"
18474 "\n"
18475 msgstr ""
18476
18477 # type: textblock
18478 #: ../fish/guestfish.pod:766
18479 msgid ""
18480 "This syntax implicitly calls C<case-sensitive-path> (q.v.) so it also "
18481 "handles case insensitivity like Windows would.  This only works in argument "
18482 "positions that expect a path."
18483 msgstr ""
18484
18485 # type: =head1
18486 #: ../fish/guestfish.pod:770
18487 msgid "UPLOADING AND DOWNLOADING FILES"
18488 msgstr ""
18489
18490 # type: textblock
18491 #: ../fish/guestfish.pod:772
18492 msgid ""
18493 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
18494 "others which upload from or download to a local file, you can use the "
18495 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
18496 msgstr ""
18497
18498 # type: verbatim
18499 #: ../fish/guestfish.pod:776
18500 #, no-wrap
18501 msgid ""
18502 " upload - /foo\n"
18503 "\n"
18504 msgstr ""
18505
18506 # type: textblock
18507 #: ../fish/guestfish.pod:778
18508 msgid "reads stdin and creates from that a file C</foo> in the disk image, and:"
18509 msgstr ""
18510
18511 # type: verbatim
18512 #: ../fish/guestfish.pod:781
18513 #, no-wrap
18514 msgid ""
18515 " tar-out /etc - | tar tf -\n"
18516 "\n"
18517 msgstr ""
18518
18519 # type: textblock
18520 #: ../fish/guestfish.pod:783
18521 msgid ""
18522 "writes the tarball to stdout and then pipes that into the external \"tar\" "
18523 "command (see L</PIPES>)."
18524 msgstr ""
18525
18526 # type: textblock
18527 #: ../fish/guestfish.pod:786
18528 msgid ""
18529 "When using C<-> to read from stdin, the input is read up to the end of "
18530 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
18531 "some arbitrary end marker:"
18532 msgstr ""
18533
18534 # type: verbatim
18535 #: ../fish/guestfish.pod:790
18536 #, no-wrap
18537 msgid ""
18538 " upload -<<END /foo\n"
18539 " input line 1\n"
18540 " input line 2\n"
18541 " input line 3\n"
18542 " END\n"
18543 "\n"
18544 msgstr ""
18545
18546 # type: textblock
18547 #: ../fish/guestfish.pod:796
18548 msgid ""
18549 "Any string of characters can be used instead of C<END>.  The end marker must "
18550 "appear on a line of its own, without any preceeding or following characters "
18551 "(not even spaces)."
18552 msgstr ""
18553
18554 # type: textblock
18555 #: ../fish/guestfish.pod:800
18556 msgid ""
18557 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
18558 "upload local files (so-called \"FileIn\" parameters in the generator)."
18559 msgstr ""
18560
18561 # type: =head1
18562 #: ../fish/guestfish.pod:803
18563 msgid "EXIT ON ERROR BEHAVIOUR"
18564 msgstr ""
18565
18566 # type: textblock
18567 #: ../fish/guestfish.pod:805
18568 msgid ""
18569 "By default, guestfish will ignore any errors when in interactive mode "
18570 "(ie. taking commands from a human over a tty), and will exit on the first "
18571 "error in non-interactive mode (scripts, commands given on the command line)."
18572 msgstr ""
18573
18574 # type: textblock
18575 #: ../fish/guestfish.pod:810
18576 msgid ""
18577 "If you prefix a command with a I<-> character, then that command will not "
18578 "cause guestfish to exit, even if that (one) command returns an error."
18579 msgstr ""
18580
18581 # type: =head1
18582 #: ../fish/guestfish.pod:814
18583 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
18584 msgstr ""
18585
18586 # type: textblock
18587 #: ../fish/guestfish.pod:816
18588 msgid ""
18589 "Guestfish can be remote-controlled over a socket.  This is useful "
18590 "particularly in shell scripts where you want to make several different "
18591 "changes to a filesystem, but you don't want the overhead of starting up a "
18592 "guestfish process each time."
18593 msgstr ""
18594
18595 # type: textblock
18596 #: ../fish/guestfish.pod:821
18597 msgid "Start a guestfish server process using:"
18598 msgstr ""
18599
18600 # type: verbatim
18601 #: ../fish/guestfish.pod:823
18602 #, no-wrap
18603 msgid ""
18604 " eval \"`guestfish --listen`\"\n"
18605 "\n"
18606 msgstr ""
18607
18608 # type: textblock
18609 #: ../fish/guestfish.pod:825
18610 msgid "and then send it commands by doing:"
18611 msgstr ""
18612
18613 # type: verbatim
18614 #: ../fish/guestfish.pod:827
18615 #, no-wrap
18616 msgid ""
18617 " guestfish --remote cmd [...]\n"
18618 "\n"
18619 msgstr ""
18620
18621 # type: textblock
18622 #: ../fish/guestfish.pod:829
18623 msgid "To cause the server to exit, send it the exit command:"
18624 msgstr ""
18625
18626 # type: verbatim
18627 #: ../fish/guestfish.pod:831
18628 #, no-wrap
18629 msgid ""
18630 " guestfish --remote exit\n"
18631 "\n"
18632 msgstr ""
18633
18634 # type: textblock
18635 #: ../fish/guestfish.pod:833
18636 msgid ""
18637 "Note that the server will normally exit if there is an error in a command.  "
18638 "You can change this in the usual way.  See section L</EXIT ON ERROR "
18639 "BEHAVIOUR>."
18640 msgstr ""
18641
18642 # type: =head2
18643 #: ../fish/guestfish.pod:837
18644 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
18645 msgstr ""
18646
18647 # type: textblock
18648 #: ../fish/guestfish.pod:839
18649 msgid ""
18650 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
18651 "is how the I<--remote> option knows where to send the commands.  You can "
18652 "have several guestfish listener processes running using:"
18653 msgstr ""
18654
18655 # type: verbatim
18656 #: ../fish/guestfish.pod:843
18657 #, no-wrap
18658 msgid ""
18659 " eval \"`guestfish --listen`\"\n"
18660 " pid1=$GUESTFISH_PID\n"
18661 " eval \"`guestfish --listen`\"\n"
18662 " pid2=$GUESTFISH_PID\n"
18663 " ...\n"
18664 " guestfish --remote=$pid1 cmd\n"
18665 " guestfish --remote=$pid2 cmd\n"
18666 "\n"
18667 msgstr ""
18668
18669 # type: =head2
18670 #: ../fish/guestfish.pod:851
18671 msgid "REMOTE CONTROL AND CSH"
18672 msgstr ""
18673
18674 # type: textblock
18675 #: ../fish/guestfish.pod:853
18676 msgid ""
18677 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
18678 "option:"
18679 msgstr ""
18680
18681 # type: verbatim
18682 #: ../fish/guestfish.pod:856
18683 #, no-wrap
18684 msgid ""
18685 " eval \"`guestfish --listen --csh`\"\n"
18686 "\n"
18687 msgstr ""
18688
18689 # type: =head2
18690 #: ../fish/guestfish.pod:858
18691 msgid "REMOTE CONTROL DETAILS"
18692 msgstr ""
18693
18694 # type: textblock
18695 #: ../fish/guestfish.pod:860
18696 msgid ""
18697 "Remote control happens over a Unix domain socket called "
18698 "C</tmp/.guestfish-$UID/socket-$PID>, where C<$UID> is the effective user ID "
18699 "of the process, and C<$PID> is the process ID of the server."
18700 msgstr ""
18701
18702 # type: textblock
18703 #: ../fish/guestfish.pod:864
18704 msgid "Guestfish client and server versions must match exactly."
18705 msgstr ""
18706
18707 # type: =head1
18708 #: ../fish/guestfish.pod:866
18709 msgid "PREPARED DISK IMAGES"
18710 msgstr ""
18711
18712 # type: textblock
18713 #: ../fish/guestfish.pod:868
18714 msgid ""
18715 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
18716 "preformatted disk images that guestfish can make for you to save typing.  "
18717 "This is particularly useful for testing purposes.  This option is used "
18718 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
18719 "can be mixed with I<-a>)."
18720 msgstr ""
18721
18722 # type: textblock
18723 #: ../fish/guestfish.pod:874
18724 msgid ""
18725 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
18726 "the second and so on.  Existing files in the current directory are "
18727 "I<overwritten>."
18728 msgstr ""
18729
18730 # type: textblock
18731 #: ../fish/guestfish.pod:878
18732 msgid ""
18733 "The type briefly describes how the disk should be sized, partitioned, how "
18734 "filesystem(s) should be created, and how content should be added.  "
18735 "Optionally the type can be followed by extra parameters, separated by C<:> "
18736 "(colon) characters.  For example, I<-N fs> creates a default 100MB, "
18737 "sparsely-allocated disk, containing a single partition, with the partition "
18738 "formatted as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem "
18739 "on a 1GB disk instead."
18740 msgstr ""
18741
18742 # type: textblock
18743 #: ../fish/guestfish.pod:886
18744 msgid "To list the available types and any extra parameters they take, run:"
18745 msgstr ""
18746
18747 # type: textblock
18748 #: ../fish/guestfish.pod:890
18749 msgid ""
18750 "Note that the prepared filesystem is not mounted.  You would usually have to "
18751 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
18752 msgstr ""
18753
18754 # type: textblock
18755 #: ../fish/guestfish.pod:894
18756 msgid ""
18757 "If any I<-N> or I<--new> options are given, the guest is automatically "
18758 "launched."
18759 msgstr ""
18760
18761 # type: textblock
18762 #: ../fish/guestfish.pod:899
18763 msgid "Create a 100MB disk with an ext4-formatted partition:"
18764 msgstr ""
18765
18766 # type: verbatim
18767 #: ../fish/guestfish.pod:901
18768 #, no-wrap
18769 msgid ""
18770 " guestfish -N fs:ext4\n"
18771 "\n"
18772 msgstr ""
18773
18774 # type: textblock
18775 #: ../fish/guestfish.pod:903
18776 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
18777 msgstr ""
18778
18779 # type: verbatim
18780 #: ../fish/guestfish.pod:905
18781 #, no-wrap
18782 msgid ""
18783 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
18784 "\n"
18785 msgstr ""
18786
18787 # type: textblock
18788 #: ../fish/guestfish.pod:907
18789 msgid "Create a blank 200MB disk:"
18790 msgstr ""
18791
18792 # type: verbatim
18793 #: ../fish/guestfish.pod:909
18794 #, no-wrap
18795 msgid ""
18796 " guestfish -N disk:200M\n"
18797 "\n"
18798 msgstr ""
18799
18800 # type: =head1
18801 #: ../fish/guestfish.pod:911
18802 msgid "PROGRESS BARS"
18803 msgstr ""
18804
18805 # type: textblock
18806 #: ../fish/guestfish.pod:913
18807 msgid ""
18808 "Some (not all) long-running commands send progress notification messages as "
18809 "they are running.  Guestfish turns these messages into progress bars."
18810 msgstr ""
18811
18812 # type: textblock
18813 #: ../fish/guestfish.pod:917
18814 msgid ""
18815 "When a command that supports progress bars takes longer than two seconds to "
18816 "run, and if progress bars are enabled, then you will see one appearing below "
18817 "the command:"
18818 msgstr ""
18819
18820 # type: verbatim
18821 #: ../fish/guestfish.pod:921
18822 #, no-wrap
18823 msgid ""
18824 " ><fs> copy-size /large-file /another-file 2048M\n"
18825 " / 10% [#####-----------------------------------------] 00:30\n"
18826 "\n"
18827 msgstr ""
18828
18829 # type: textblock
18830 #: ../fish/guestfish.pod:924
18831 msgid ""
18832 "The spinner on the left hand side moves round once for every progress "
18833 "notification received from the backend.  This is a (reasonably) golden "
18834 "assurance that the command is \"doing something\" even if the progress bar "
18835 "is not moving, because the command is able to send the progress "
18836 "notifications.  When the bar reaches 100% and the command finishes, the "
18837 "spinner disappears."
18838 msgstr ""
18839
18840 # type: textblock
18841 #: ../fish/guestfish.pod:931
18842 msgid ""
18843 "Progress bars are enabled by default when guestfish is used interactively.  "
18844 "You can enable them even for non-interactive modes using I<--progress-bars>, "
18845 "and you can disable them completely using I<--no-progress-bars>."
18846 msgstr ""
18847
18848 # type: =head1
18849 #: ../fish/guestfish.pod:936
18850 msgid "GUESTFISH COMMANDS"
18851 msgstr ""
18852
18853 # type: textblock
18854 #: ../fish/guestfish.pod:938
18855 msgid ""
18856 "The commands in this section are guestfish convenience commands, in other "
18857 "words, they are not part of the L<guestfs(3)> API."
18858 msgstr ""
18859
18860 # type: =head2
18861 #: ../fish/guestfish.pod:941
18862 msgid "help"
18863 msgstr ""
18864
18865 # type: verbatim
18866 #: ../fish/guestfish.pod:943
18867 #, no-wrap
18868 msgid ""
18869 " help\n"
18870 " help cmd\n"
18871 "\n"
18872 msgstr ""
18873
18874 # type: textblock
18875 #: ../fish/guestfish.pod:946
18876 msgid "Without any parameter, this provides general help."
18877 msgstr ""
18878
18879 # type: textblock
18880 #: ../fish/guestfish.pod:948
18881 msgid "With a C<cmd> parameter, this displays detailed help for that command."
18882 msgstr ""
18883
18884 # type: =head2
18885 #: ../fish/guestfish.pod:950
18886 msgid "quit | exit"
18887 msgstr ""
18888
18889 # type: textblock
18890 #: ../fish/guestfish.pod:952
18891 msgid "This exits guestfish.  You can also use C<^D> key."
18892 msgstr ""
18893
18894 # type: textblock
18895 #: ../fish/guestfish.pod:954
18896 msgid "@FISH_COMMANDS@"
18897 msgstr ""
18898
18899 # type: =head1
18900 #: ../fish/guestfish.pod:956
18901 msgid "COMMANDS"
18902 msgstr ""
18903
18904 # type: =head1
18905 #: ../fish/guestfish.pod:960 ../test-tool/libguestfs-test-tool.pod:83
18906 msgid "EXIT CODE"
18907 msgstr ""
18908
18909 # type: textblock
18910 #: ../fish/guestfish.pod:962
18911 msgid ""
18912 "guestfish returns 0 if the commands completed without error, or 1 if there "
18913 "was an error."
18914 msgstr ""
18915
18916 # type: =item
18917 #: ../fish/guestfish.pod:969
18918 msgid "EDITOR"
18919 msgstr ""
18920
18921 # type: textblock
18922 #: ../fish/guestfish.pod:971
18923 msgid ""
18924 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
18925 "C<vi>."
18926 msgstr ""
18927
18928 # type: =item
18929 #: ../fish/guestfish.pod:974
18930 msgid "GUESTFISH_PID"
18931 msgstr ""
18932
18933 # type: textblock
18934 #: ../fish/guestfish.pod:976
18935 msgid ""
18936 "Used with the I<--remote> option to specify the remote guestfish process to "
18937 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
18938 msgstr ""
18939
18940 # type: =item
18941 #: ../fish/guestfish.pod:980
18942 msgid "HEXEDITOR"
18943 msgstr ""
18944
18945 # type: textblock
18946 #: ../fish/guestfish.pod:982
18947 msgid ""
18948 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
18949 "not specified, the external L<hexedit(1)> program is used."
18950 msgstr ""
18951
18952 # type: =item
18953 #: ../fish/guestfish.pod:986
18954 msgid "HOME"
18955 msgstr ""
18956
18957 # type: textblock
18958 #: ../fish/guestfish.pod:988
18959 msgid ""
18960 "If compiled with GNU readline support, various files in the home directory "
18961 "can be used.  See L</FILES>."
18962 msgstr ""
18963
18964 # type: textblock
18965 #: ../fish/guestfish.pod:997
18966 msgid ""
18967 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
18968 "effect as using the B<-v> option."
18969 msgstr ""
18970
18971 # type: textblock
18972 #: ../fish/guestfish.pod:1009
18973 msgid ""
18974 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
18975 "the discussion of paths in L<guestfs(3)>."
18976 msgstr ""
18977
18978 # type: textblock
18979 #: ../fish/guestfish.pod:1020
18980 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
18981 msgstr ""
18982
18983 # type: =item
18984 #: ../fish/guestfish.pod:1022
18985 msgid "PAGER"
18986 msgstr ""
18987
18988 # type: textblock
18989 #: ../fish/guestfish.pod:1024
18990 msgid ""
18991 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
18992 "C<more>."
18993 msgstr ""
18994
18995 # type: =head1
18996 #: ../fish/guestfish.pod:1039 ../test-tool/libguestfs-test-tool.pod:88
18997 msgid "FILES"
18998 msgstr ""
18999
19000 # type: =item
19001 #: ../fish/guestfish.pod:1043
19002 msgid "$HOME/.guestfish"
19003 msgstr ""
19004
19005 # type: textblock
19006 #: ../fish/guestfish.pod:1045
19007 msgid ""
19008 "If compiled with GNU readline support, then the command history is saved in "
19009 "this file."
19010 msgstr ""
19011
19012 # type: =item
19013 #: ../fish/guestfish.pod:1048
19014 msgid "$HOME/.inputrc"
19015 msgstr ""
19016
19017 # type: =item
19018 #: ../fish/guestfish.pod:1050
19019 msgid "/etc/inputrc"
19020 msgstr ""
19021
19022 # type: textblock
19023 #: ../fish/guestfish.pod:1052
19024 msgid ""
19025 "If compiled with GNU readline support, then these files can be used to "
19026 "configure readline.  For further information, please see "
19027 "L<readline(3)/INITIALIZATION FILE>."
19028 msgstr ""
19029
19030 # type: textblock
19031 #: ../fish/guestfish.pod:1056
19032 msgid "To write rules which only apply to guestfish, use:"
19033 msgstr ""
19034
19035 # type: verbatim
19036 #: ../fish/guestfish.pod:1058
19037 #, no-wrap
19038 msgid ""
19039 " $if guestfish\n"
19040 " ...\n"
19041 " $endif\n"
19042 "\n"
19043 msgstr ""
19044
19045 # type: textblock
19046 #: ../fish/guestfish.pod:1062
19047 msgid ""
19048 "Variables that you can set in inputrc that change the behaviour of guestfish "
19049 "in useful ways include:"
19050 msgstr ""
19051
19052 # type: =item
19053 #: ../fish/guestfish.pod:1067
19054 msgid "completion-ignore-case (default: on)"
19055 msgstr ""
19056
19057 # type: textblock
19058 #: ../fish/guestfish.pod:1069
19059 msgid ""
19060 "By default, guestfish will ignore case when tab-completing paths on the "
19061 "disk.  Use:"
19062 msgstr ""
19063
19064 # type: verbatim
19065 #: ../fish/guestfish.pod:1072
19066 #, no-wrap
19067 msgid ""
19068 " set completion-ignore-case off\n"
19069 "\n"
19070 msgstr ""
19071
19072 # type: textblock
19073 #: ../fish/guestfish.pod:1074
19074 msgid "to make guestfish case sensitive."
19075 msgstr ""
19076
19077 # type: =item
19078 #: ../fish/guestfish.pod:1078
19079 msgid "test1.img"
19080 msgstr ""
19081
19082 # type: =item
19083 #: ../fish/guestfish.pod:1080
19084 msgid "test2.img (etc)"
19085 msgstr ""
19086
19087 # type: textblock
19088 #: ../fish/guestfish.pod:1082
19089 msgid ""
19090 "When using the C<-N> or C<--new> option, the prepared disk or filesystem "
19091 "will be created in the file C<test1.img> in the current directory.  The "
19092 "second use of C<-N> will use C<test2.img> and so on.  Any existing file with "
19093 "the same name will be overwritten."
19094 msgstr ""
19095
19096 # type: textblock
19097 #: ../fish/guestfish.pod:1091
19098 msgid ""
19099 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-cat(1)>, L<virt-df(1)>, "
19100 "L<virt-edit(1)>, L<virt-filesystems(1)>, L<virt-inspector(1)>, "
19101 "L<virt-list-filesystems(1)>, L<virt-list-partitions(1)>, L<virt-ls(1)>, "
19102 "L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-resize(1)>, L<virt-tar(1)>, "
19103 "L<virt-win-reg(1)>, L<hexedit(1)>."
19104 msgstr ""
19105
19106 # type: textblock
19107 #: ../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
19108 msgid ""
19109 "This program is free software; you can redistribute it and/or modify it "
19110 "under the terms of the GNU General Public License as published by the Free "
19111 "Software Foundation; either version 2 of the License, or (at your option) "
19112 "any later version."
19113 msgstr ""
19114
19115 # type: textblock
19116 #: ../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
19117 msgid ""
19118 "This program is distributed in the hope that it will be useful, but WITHOUT "
19119 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
19120 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
19121 "more details."
19122 msgstr ""
19123
19124 # type: textblock
19125 #: ../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
19126 msgid ""
19127 "You should have received a copy of the GNU General Public License along with "
19128 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
19129 "Ave, Cambridge, MA 02139, USA."
19130 msgstr ""
19131
19132 # type: =head2
19133 #: ../fish/guestfish-actions.pod:1
19134 msgid "add-cdrom"
19135 msgstr ""
19136
19137 # type: verbatim
19138 #: ../fish/guestfish-actions.pod:3
19139 #, no-wrap
19140 msgid ""
19141 " add-cdrom filename\n"
19142 "\n"
19143 msgstr ""
19144
19145 # type: textblock
19146 #: ../fish/guestfish-actions.pod:15
19147 msgid ""
19148 "This call checks for the existence of C<filename>.  This stops you from "
19149 "specifying other types of drive which are supported by qemu such as C<nbd:> "
19150 "and C<http:> URLs.  To specify those, use the general L</config> call "
19151 "instead."
19152 msgstr ""
19153
19154 # type: textblock
19155 #: ../fish/guestfish-actions.pod:22
19156 msgid ""
19157 "If you just want to add an ISO file (often you use this as an efficient way "
19158 "to transfer large files into the guest), then you should probably use "
19159 "L</add-drive-ro> instead."
19160 msgstr ""
19161
19162 # type: =head2
19163 #: ../fish/guestfish-actions.pod:35
19164 msgid "add-domain"
19165 msgstr ""
19166
19167 # type: =head2
19168 #: ../fish/guestfish-actions.pod:37
19169 msgid "domain"
19170 msgstr ""
19171
19172 # type: verbatim
19173 #: ../fish/guestfish-actions.pod:39
19174 #, no-wrap
19175 msgid ""
19176 " add-domain dom [libvirturi:..] [readonly:..] [iface:..]\n"
19177 "\n"
19178 msgstr ""
19179
19180 # type: textblock
19181 #: ../fish/guestfish-actions.pod:41
19182 msgid ""
19183 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
19184 "It works by connecting to libvirt, requesting the domain and domain XML from "
19185 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
19186 msgstr ""
19187
19188 # type: textblock
19189 #: ../fish/guestfish-actions.pod:58
19190 msgid ""
19191 "The optional C<libvirturi> parameter sets the libvirt URI (see "
19192 "L<http://libvirt.org/uri.html>).  If this is not set then we connect to the "
19193 "default libvirt URI (or one set through an environment variable, see the "
19194 "libvirt documentation for full details).  If you are using the C API "
19195 "directly then it is more flexible to create the libvirt connection object "
19196 "yourself, get the domain object, and call L</add-libvirt-dom>."
19197 msgstr ""
19198
19199 # type: textblock
19200 #: ../fish/guestfish-actions.pod:66
19201 msgid ""
19202 "The other optional parameters are passed directly through to "
19203 "L</add-drive-opts>."
19204 msgstr ""
19205
19206 # type: textblock
19207 #: ../fish/guestfish-actions.pod:69 ../fish/guestfish-actions.pod:133 ../fish/guestfish-actions.pod:2844
19208 msgid ""
19209 "This command has one or more optional arguments.  See L</OPTIONAL "
19210 "ARGUMENTS>."
19211 msgstr ""
19212
19213 # type: =head2
19214 #: ../fish/guestfish-actions.pod:71
19215 msgid "add-drive"
19216 msgstr ""
19217
19218 # type: verbatim
19219 #: ../fish/guestfish-actions.pod:73
19220 #, no-wrap
19221 msgid ""
19222 " add-drive filename\n"
19223 "\n"
19224 msgstr ""
19225
19226 # type: textblock
19227 #: ../fish/guestfish-actions.pod:75
19228 msgid ""
19229 "This function is the equivalent of calling L</add-drive-opts> with no "
19230 "optional parameters, so the disk is added writable, with the format being "
19231 "detected automatically."
19232 msgstr ""
19233
19234 # type: textblock
19235 #: ../fish/guestfish-actions.pod:79
19236 msgid ""
19237 "Automatic detection of the format opens you up to a potential security hole "
19238 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
19239 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
19240 "you should think about replacing calls to this function with calls to "
19241 "L</add-drive-opts>, and specifying the format."
19242 msgstr ""
19243
19244 # type: =head2
19245 #: ../fish/guestfish-actions.pod:86
19246 msgid "add-drive-opts"
19247 msgstr ""
19248
19249 # type: =head2
19250 #: ../fish/guestfish-actions.pod:88
19251 msgid "add"
19252 msgstr ""
19253
19254 # type: verbatim
19255 #: ../fish/guestfish-actions.pod:90
19256 #, no-wrap
19257 msgid ""
19258 " add-drive-opts filename [readonly:..] [format:..] [iface:..]\n"
19259 "\n"
19260 msgstr ""
19261
19262 # type: textblock
19263 #: ../fish/guestfish-actions.pod:117
19264 msgid ""
19265 "This forces the image format.  If you omit this (or use L</add-drive> or "
19266 "L</add-drive-ro>) then the format is automatically detected.  Possible "
19267 "formats include C<raw> and C<qcow2>."
19268 msgstr ""
19269
19270 # type: textblock
19271 #: ../fish/guestfish-actions.pod:128
19272 msgid ""
19273 "This rarely-used option lets you emulate the behaviour of the deprecated "
19274 "L</add-drive-with-if> call (q.v.)"
19275 msgstr ""
19276
19277 # type: =head2
19278 #: ../fish/guestfish-actions.pod:135
19279 msgid "add-drive-ro"
19280 msgstr ""
19281
19282 # type: =head2
19283 #: ../fish/guestfish-actions.pod:137
19284 msgid "add-ro"
19285 msgstr ""
19286
19287 # type: verbatim
19288 #: ../fish/guestfish-actions.pod:139
19289 #, no-wrap
19290 msgid ""
19291 " add-drive-ro filename\n"
19292 "\n"
19293 msgstr ""
19294
19295 # type: textblock
19296 #: ../fish/guestfish-actions.pod:141
19297 msgid ""
19298 "This function is the equivalent of calling L</add-drive-opts> with the "
19299 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
19300 "is added read-only, with the format being detected automatically."
19301 msgstr ""
19302
19303 # type: =head2
19304 #: ../fish/guestfish-actions.pod:146
19305 msgid "add-drive-ro-with-if"
19306 msgstr ""
19307
19308 # type: verbatim
19309 #: ../fish/guestfish-actions.pod:148
19310 #, no-wrap
19311 msgid ""
19312 " add-drive-ro-with-if filename iface\n"
19313 "\n"
19314 msgstr ""
19315
19316 # type: textblock
19317 #: ../fish/guestfish-actions.pod:150
19318 msgid ""
19319 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
19320 "interface emulation to use at run time."
19321 msgstr ""
19322
19323 # type: =head2
19324 #: ../fish/guestfish-actions.pod:160
19325 msgid "add-drive-with-if"
19326 msgstr ""
19327
19328 # type: verbatim
19329 #: ../fish/guestfish-actions.pod:162
19330 #, no-wrap
19331 msgid ""
19332 " add-drive-with-if filename iface\n"
19333 "\n"
19334 msgstr ""
19335
19336 # type: textblock
19337 #: ../fish/guestfish-actions.pod:164
19338 msgid ""
19339 "This is the same as L</add-drive> but it allows you to specify the QEMU "
19340 "interface emulation to use at run time."
19341 msgstr ""
19342
19343 # type: =head2
19344 #: ../fish/guestfish-actions.pod:174
19345 msgid "aug-clear"
19346 msgstr ""
19347
19348 # type: verbatim
19349 #: ../fish/guestfish-actions.pod:176
19350 #, no-wrap
19351 msgid ""
19352 " aug-clear augpath\n"
19353 "\n"
19354 msgstr ""
19355
19356 # type: =head2
19357 #: ../fish/guestfish-actions.pod:181
19358 msgid "aug-close"
19359 msgstr ""
19360
19361 # type: verbatim
19362 #: ../fish/guestfish-actions.pod:183
19363 #, no-wrap
19364 msgid ""
19365 " aug-close\n"
19366 "\n"
19367 msgstr ""
19368
19369 # type: textblock
19370 #: ../fish/guestfish-actions.pod:185
19371 msgid ""
19372 "Close the current Augeas handle and free up any resources used by it.  After "
19373 "calling this, you have to call L</aug-init> again before you can use any "
19374 "other Augeas functions."
19375 msgstr ""
19376
19377 # type: =head2
19378 #: ../fish/guestfish-actions.pod:190
19379 msgid "aug-defnode"
19380 msgstr ""
19381
19382 # type: verbatim
19383 #: ../fish/guestfish-actions.pod:192
19384 #, no-wrap
19385 msgid ""
19386 " aug-defnode name expr val\n"
19387 "\n"
19388 msgstr ""
19389
19390 # type: textblock
19391 #: ../fish/guestfish-actions.pod:197
19392 msgid ""
19393 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
19394 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
19395 "containing that single node."
19396 msgstr ""
19397
19398 # type: =head2
19399 #: ../fish/guestfish-actions.pod:205
19400 msgid "aug-defvar"
19401 msgstr ""
19402
19403 # type: verbatim
19404 #: ../fish/guestfish-actions.pod:207
19405 #, no-wrap
19406 msgid ""
19407 " aug-defvar name expr\n"
19408 "\n"
19409 msgstr ""
19410
19411 # type: =head2
19412 #: ../fish/guestfish-actions.pod:216
19413 msgid "aug-get"
19414 msgstr ""
19415
19416 # type: verbatim
19417 #: ../fish/guestfish-actions.pod:218
19418 #, no-wrap
19419 msgid ""
19420 " aug-get augpath\n"
19421 "\n"
19422 msgstr ""
19423
19424 # type: =head2
19425 #: ../fish/guestfish-actions.pod:223
19426 msgid "aug-init"
19427 msgstr ""
19428
19429 # type: verbatim
19430 #: ../fish/guestfish-actions.pod:225
19431 #, no-wrap
19432 msgid ""
19433 " aug-init root flags\n"
19434 "\n"
19435 msgstr ""
19436
19437 # type: textblock
19438 #: ../fish/guestfish-actions.pod:231
19439 msgid "You must call this before using any other L</aug-*> commands."
19440 msgstr ""
19441
19442 # type: textblock
19443 #: ../fish/guestfish-actions.pod:266
19444 msgid "Do not load the tree in L</aug-init>."
19445 msgstr ""
19446
19447 # type: textblock
19448 #: ../fish/guestfish-actions.pod:270
19449 msgid "To close the handle, you can call L</aug-close>."
19450 msgstr ""
19451
19452 # type: =head2
19453 #: ../fish/guestfish-actions.pod:274
19454 msgid "aug-insert"
19455 msgstr ""
19456
19457 # type: verbatim
19458 #: ../fish/guestfish-actions.pod:276
19459 #, no-wrap
19460 msgid ""
19461 " aug-insert augpath label true|false\n"
19462 "\n"
19463 msgstr ""
19464
19465 # type: =head2
19466 #: ../fish/guestfish-actions.pod:286
19467 msgid "aug-load"
19468 msgstr ""
19469
19470 # type: verbatim
19471 #: ../fish/guestfish-actions.pod:288
19472 #, no-wrap
19473 msgid ""
19474 " aug-load\n"
19475 "\n"
19476 msgstr ""
19477
19478 # type: =head2
19479 #: ../fish/guestfish-actions.pod:295
19480 msgid "aug-ls"
19481 msgstr ""
19482
19483 # type: verbatim
19484 #: ../fish/guestfish-actions.pod:297
19485 #, no-wrap
19486 msgid ""
19487 " aug-ls augpath\n"
19488 "\n"
19489 msgstr ""
19490
19491 # type: textblock
19492 #: ../fish/guestfish-actions.pod:299
19493 msgid ""
19494 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
19495 "resulting nodes into alphabetical order."
19496 msgstr ""
19497
19498 # type: =head2
19499 #: ../fish/guestfish-actions.pod:302
19500 msgid "aug-match"
19501 msgstr ""
19502
19503 # type: verbatim
19504 #: ../fish/guestfish-actions.pod:304
19505 #, no-wrap
19506 msgid ""
19507 " aug-match augpath\n"
19508 "\n"
19509 msgstr ""
19510
19511 # type: =head2
19512 #: ../fish/guestfish-actions.pod:310
19513 msgid "aug-mv"
19514 msgstr ""
19515
19516 # type: verbatim
19517 #: ../fish/guestfish-actions.pod:312
19518 #, no-wrap
19519 msgid ""
19520 " aug-mv src dest\n"
19521 "\n"
19522 msgstr ""
19523
19524 # type: =head2
19525 #: ../fish/guestfish-actions.pod:317
19526 msgid "aug-rm"
19527 msgstr ""
19528
19529 # type: verbatim
19530 #: ../fish/guestfish-actions.pod:319
19531 #, no-wrap
19532 msgid ""
19533 " aug-rm augpath\n"
19534 "\n"
19535 msgstr ""
19536
19537 # type: =head2
19538 #: ../fish/guestfish-actions.pod:325
19539 msgid "aug-save"
19540 msgstr ""
19541
19542 # type: verbatim
19543 #: ../fish/guestfish-actions.pod:327
19544 #, no-wrap
19545 msgid ""
19546 " aug-save\n"
19547 "\n"
19548 msgstr ""
19549
19550 # type: textblock
19551 #: ../fish/guestfish-actions.pod:331
19552 msgid ""
19553 "The flags which were passed to L</aug-init> affect exactly how files are "
19554 "saved."
19555 msgstr ""
19556
19557 # type: =head2
19558 #: ../fish/guestfish-actions.pod:334
19559 msgid "aug-set"
19560 msgstr ""
19561
19562 # type: verbatim
19563 #: ../fish/guestfish-actions.pod:336
19564 #, no-wrap
19565 msgid ""
19566 " aug-set augpath val\n"
19567 "\n"
19568 msgstr ""
19569
19570 # type: textblock
19571 #: ../fish/guestfish-actions.pod:340
19572 msgid ""
19573 "In the Augeas API, it is possible to clear a node by setting the value to "
19574 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
19575 "this call.  Instead you must use the L</aug-clear> call."
19576 msgstr ""
19577
19578 # type: =head2
19579 #: ../fish/guestfish-actions.pod:345
19580 msgid "available"
19581 msgstr ""
19582
19583 # type: verbatim
19584 #: ../fish/guestfish-actions.pod:347
19585 #, no-wrap
19586 msgid ""
19587 " available 'groups ...'\n"
19588 "\n"
19589 msgstr ""
19590
19591 # type: textblock
19592 #: ../fish/guestfish-actions.pod:353
19593 msgid ""
19594 "The libguestfs groups, and the functions that those groups correspond to, "
19595 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
19596 "runtime by calling L</available-all-groups>."
19597 msgstr ""
19598
19599 # type: textblock
19600 #: ../fish/guestfish-actions.pod:377
19601 msgid "You must call L</launch> before calling this function."
19602 msgstr ""
19603
19604 # type: textblock
19605 #: ../fish/guestfish-actions.pod:399
19606 msgid ""
19607 "This call was added in version C<1.0.80>.  In previous versions of "
19608 "libguestfs all you could do would be to speculatively execute a command to "
19609 "find out if the daemon implemented it.  See also L</version>."
19610 msgstr ""
19611
19612 # type: =head2
19613 #: ../fish/guestfish-actions.pod:406
19614 msgid "available-all-groups"
19615 msgstr ""
19616
19617 # type: verbatim
19618 #: ../fish/guestfish-actions.pod:408
19619 #, no-wrap
19620 msgid ""
19621 " available-all-groups\n"
19622 "\n"
19623 msgstr ""
19624
19625 # type: textblock
19626 #: ../fish/guestfish-actions.pod:410
19627 msgid ""
19628 "This command returns a list of all optional groups that this daemon knows "
19629 "about.  Note this returns both supported and unsupported groups.  To find "
19630 "out which ones the daemon can actually support you have to call "
19631 "L</available> on each member of the returned list."
19632 msgstr ""
19633
19634 # type: textblock
19635 #: ../fish/guestfish-actions.pod:416
19636 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
19637 msgstr ""
19638
19639 # type: =head2
19640 #: ../fish/guestfish-actions.pod:418
19641 msgid "base64-in"
19642 msgstr ""
19643
19644 # type: verbatim
19645 #: ../fish/guestfish-actions.pod:420
19646 #, no-wrap
19647 msgid ""
19648 " base64-in (base64file|-) filename\n"
19649 "\n"
19650 msgstr ""
19651
19652 # type: textblock
19653 #: ../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
19654 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
19655 msgstr ""
19656
19657 # type: =head2
19658 #: ../fish/guestfish-actions.pod:427
19659 msgid "base64-out"
19660 msgstr ""
19661
19662 # type: verbatim
19663 #: ../fish/guestfish-actions.pod:429
19664 #, no-wrap
19665 msgid ""
19666 " base64-out filename (base64file|-)\n"
19667 "\n"
19668 msgstr ""
19669
19670 # type: =head2
19671 #: ../fish/guestfish-actions.pod:436
19672 msgid "blockdev-flushbufs"
19673 msgstr ""
19674
19675 # type: verbatim
19676 #: ../fish/guestfish-actions.pod:438
19677 #, no-wrap
19678 msgid ""
19679 " blockdev-flushbufs device\n"
19680 "\n"
19681 msgstr ""
19682
19683 # type: =head2
19684 #: ../fish/guestfish-actions.pod:445
19685 msgid "blockdev-getbsz"
19686 msgstr ""
19687
19688 # type: verbatim
19689 #: ../fish/guestfish-actions.pod:447
19690 #, no-wrap
19691 msgid ""
19692 " blockdev-getbsz device\n"
19693 "\n"
19694 msgstr ""
19695
19696 # type: =head2
19697 #: ../fish/guestfish-actions.pod:456
19698 msgid "blockdev-getro"
19699 msgstr ""
19700
19701 # type: verbatim
19702 #: ../fish/guestfish-actions.pod:458
19703 #, no-wrap
19704 msgid ""
19705 " blockdev-getro device\n"
19706 "\n"
19707 msgstr ""
19708
19709 # type: =head2
19710 #: ../fish/guestfish-actions.pod:465
19711 msgid "blockdev-getsize64"
19712 msgstr ""
19713
19714 # type: verbatim
19715 #: ../fish/guestfish-actions.pod:467
19716 #, no-wrap
19717 msgid ""
19718 " blockdev-getsize64 device\n"
19719 "\n"
19720 msgstr ""
19721
19722 # type: textblock
19723 #: ../fish/guestfish-actions.pod:471
19724 msgid "See also L</blockdev-getsz>."
19725 msgstr ""
19726
19727 # type: =head2
19728 #: ../fish/guestfish-actions.pod:475
19729 msgid "blockdev-getss"
19730 msgstr ""
19731
19732 # type: verbatim
19733 #: ../fish/guestfish-actions.pod:477
19734 #, no-wrap
19735 msgid ""
19736 " blockdev-getss device\n"
19737 "\n"
19738 msgstr ""
19739
19740 # type: textblock
19741 #: ../fish/guestfish-actions.pod:482
19742 msgid "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
19743 msgstr ""
19744
19745 # type: =head2
19746 #: ../fish/guestfish-actions.pod:487
19747 msgid "blockdev-getsz"
19748 msgstr ""
19749
19750 # type: verbatim
19751 #: ../fish/guestfish-actions.pod:489
19752 #, no-wrap
19753 msgid ""
19754 " blockdev-getsz device\n"
19755 "\n"
19756 msgstr ""
19757
19758 # type: textblock
19759 #: ../fish/guestfish-actions.pod:494
19760 msgid ""
19761 "See also L</blockdev-getss> for the real sector size of the device, and "
19762 "L</blockdev-getsize64> for the more useful I<size in bytes>."
19763 msgstr ""
19764
19765 # type: =head2
19766 #: ../fish/guestfish-actions.pod:500
19767 msgid "blockdev-rereadpt"
19768 msgstr ""
19769
19770 # type: verbatim
19771 #: ../fish/guestfish-actions.pod:502
19772 #, no-wrap
19773 msgid ""
19774 " blockdev-rereadpt device\n"
19775 "\n"
19776 msgstr ""
19777
19778 # type: =head2
19779 #: ../fish/guestfish-actions.pod:508
19780 msgid "blockdev-setbsz"
19781 msgstr ""
19782
19783 # type: verbatim
19784 #: ../fish/guestfish-actions.pod:510
19785 #, no-wrap
19786 msgid ""
19787 " blockdev-setbsz device blocksize\n"
19788 "\n"
19789 msgstr ""
19790
19791 # type: =head2
19792 #: ../fish/guestfish-actions.pod:519
19793 msgid "blockdev-setro"
19794 msgstr ""
19795
19796 # type: verbatim
19797 #: ../fish/guestfish-actions.pod:521
19798 #, no-wrap
19799 msgid ""
19800 " blockdev-setro device\n"
19801 "\n"
19802 msgstr ""
19803
19804 # type: =head2
19805 #: ../fish/guestfish-actions.pod:527
19806 msgid "blockdev-setrw"
19807 msgstr ""
19808
19809 # type: verbatim
19810 #: ../fish/guestfish-actions.pod:529
19811 #, no-wrap
19812 msgid ""
19813 " blockdev-setrw device\n"
19814 "\n"
19815 msgstr ""
19816
19817 # type: =head2
19818 #: ../fish/guestfish-actions.pod:535
19819 msgid "case-sensitive-path"
19820 msgstr ""
19821
19822 # type: verbatim
19823 #: ../fish/guestfish-actions.pod:537
19824 #, no-wrap
19825 msgid ""
19826 " case-sensitive-path path\n"
19827 "\n"
19828 msgstr ""
19829
19830 # type: textblock
19831 #: ../fish/guestfish-actions.pod:561
19832 msgid ""
19833 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return "
19834 "C<\"/WINDOWS/system32\"> (the exact return value would depend on details of "
19835 "how the directories were originally created under Windows)."
19836 msgstr ""
19837
19838 # type: textblock
19839 #: ../fish/guestfish-actions.pod:569
19840 msgid "See also L</realpath>."
19841 msgstr ""
19842
19843 # type: =head2
19844 #: ../fish/guestfish-actions.pod:571
19845 msgid "cat"
19846 msgstr ""
19847
19848 # type: verbatim
19849 #: ../fish/guestfish-actions.pod:573
19850 #, no-wrap
19851 msgid ""
19852 " cat path\n"
19853 "\n"
19854 msgstr ""
19855
19856 # type: textblock
19857 #: ../fish/guestfish-actions.pod:577
19858 msgid ""
19859 "Note that this function cannot correctly handle binary files (specifically, "
19860 "files containing C<\\0> character which is treated as end of string).  For "
19861 "those you need to use the L</read-file> or L</download> functions which have "
19862 "a more complex interface."
19863 msgstr ""
19864
19865 # type: =head2
19866 #: ../fish/guestfish-actions.pod:585
19867 msgid "checksum"
19868 msgstr ""
19869
19870 # type: verbatim
19871 #: ../fish/guestfish-actions.pod:587
19872 #, no-wrap
19873 msgid ""
19874 " checksum csumtype path\n"
19875 "\n"
19876 msgstr ""
19877
19878 # type: textblock
19879 #: ../fish/guestfish-actions.pod:630
19880 msgid "To get the checksum for a device, use L</checksum-device>."
19881 msgstr ""
19882
19883 # type: textblock
19884 #: ../fish/guestfish-actions.pod:632
19885 msgid "To get the checksums for many files, use L</checksums-out>."
19886 msgstr ""
19887
19888 # type: =head2
19889 #: ../fish/guestfish-actions.pod:634
19890 msgid "checksum-device"
19891 msgstr ""
19892
19893 # type: verbatim
19894 #: ../fish/guestfish-actions.pod:636
19895 #, no-wrap
19896 msgid ""
19897 " checksum-device csumtype device\n"
19898 "\n"
19899 msgstr ""
19900
19901 # type: textblock
19902 #: ../fish/guestfish-actions.pod:638
19903 msgid ""
19904 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
19905 "device named C<device>.  For the types of checksums supported see the "
19906 "L</checksum> command."
19907 msgstr ""
19908
19909 # type: =head2
19910 #: ../fish/guestfish-actions.pod:642
19911 msgid "checksums-out"
19912 msgstr ""
19913
19914 # type: verbatim
19915 #: ../fish/guestfish-actions.pod:644
19916 #, no-wrap
19917 msgid ""
19918 " checksums-out csumtype directory (sumsfile|-)\n"
19919 "\n"
19920 msgstr ""
19921
19922 # type: =head2
19923 #: ../fish/guestfish-actions.pod:660
19924 msgid "chmod"
19925 msgstr ""
19926
19927 # type: verbatim
19928 #: ../fish/guestfish-actions.pod:662
19929 #, no-wrap
19930 msgid ""
19931 " chmod mode path\n"
19932 "\n"
19933 msgstr ""
19934
19935 # type: =head2
19936 #: ../fish/guestfish-actions.pod:673
19937 msgid "chown"
19938 msgstr ""
19939
19940 # type: verbatim
19941 #: ../fish/guestfish-actions.pod:675
19942 #, no-wrap
19943 msgid ""
19944 " chown owner group path\n"
19945 "\n"
19946 msgstr ""
19947
19948 # type: =head2
19949 #: ../fish/guestfish-actions.pod:683
19950 msgid "command"
19951 msgstr ""
19952
19953 # type: verbatim
19954 #: ../fish/guestfish-actions.pod:685
19955 #, no-wrap
19956 msgid ""
19957 " command 'arguments ...'\n"
19958 "\n"
19959 msgstr ""
19960
19961 # type: textblock
19962 #: ../fish/guestfish-actions.pod:692
19963 msgid ""
19964 "The single parameter is an argv-style list of arguments.  The first element "
19965 "is the name of the program to run.  Subsequent elements are parameters.  The "
19966 "list must be non-empty (ie. must contain a program name).  Note that the "
19967 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
19968 msgstr ""
19969
19970 # type: =head2
19971 #: ../fish/guestfish-actions.pod:720
19972 msgid "command-lines"
19973 msgstr ""
19974
19975 # type: verbatim
19976 #: ../fish/guestfish-actions.pod:722
19977 #, no-wrap
19978 msgid ""
19979 " command-lines 'arguments ...'\n"
19980 "\n"
19981 msgstr ""
19982
19983 # type: textblock
19984 #: ../fish/guestfish-actions.pod:724
19985 msgid "This is the same as L</command>, but splits the result into a list of lines."
19986 msgstr ""
19987
19988 # type: textblock
19989 #: ../fish/guestfish-actions.pod:727
19990 msgid "See also: L</sh-lines>"
19991 msgstr ""
19992
19993 # type: =head2
19994 #: ../fish/guestfish-actions.pod:732
19995 msgid "config"
19996 msgstr ""
19997
19998 # type: verbatim
19999 #: ../fish/guestfish-actions.pod:734
20000 #, no-wrap
20001 msgid ""
20002 " config qemuparam qemuvalue\n"
20003 "\n"
20004 msgstr ""
20005
20006 # type: =head2
20007 #: ../fish/guestfish-actions.pod:745
20008 msgid "copy-size"
20009 msgstr ""
20010
20011 # type: verbatim
20012 #: ../fish/guestfish-actions.pod:747
20013 #, no-wrap
20014 msgid ""
20015 " copy-size src dest size\n"
20016 "\n"
20017 msgstr ""
20018
20019 # type: =head2
20020 #: ../fish/guestfish-actions.pod:755
20021 msgid "cp"
20022 msgstr ""
20023
20024 # type: verbatim
20025 #: ../fish/guestfish-actions.pod:757
20026 #, no-wrap
20027 msgid ""
20028 " cp src dest\n"
20029 "\n"
20030 msgstr ""
20031
20032 # type: =head2
20033 #: ../fish/guestfish-actions.pod:762
20034 msgid "cp-a"
20035 msgstr ""
20036
20037 # type: verbatim
20038 #: ../fish/guestfish-actions.pod:764
20039 #, no-wrap
20040 msgid ""
20041 " cp-a src dest\n"
20042 "\n"
20043 msgstr ""
20044
20045 # type: =head2
20046 #: ../fish/guestfish-actions.pod:769
20047 msgid "dd"
20048 msgstr ""
20049
20050 # type: verbatim
20051 #: ../fish/guestfish-actions.pod:771
20052 #, no-wrap
20053 msgid ""
20054 " dd src dest\n"
20055 "\n"
20056 msgstr ""
20057
20058 # type: textblock
20059 #: ../fish/guestfish-actions.pod:778
20060 msgid ""
20061 "If the destination is a device, it must be as large or larger than the "
20062 "source file or device, otherwise the copy will fail.  This command cannot do "
20063 "partial copies (see L</copy-size>)."
20064 msgstr ""
20065
20066 # type: =head2
20067 #: ../fish/guestfish-actions.pod:782
20068 msgid "df"
20069 msgstr ""
20070
20071 # type: verbatim
20072 #: ../fish/guestfish-actions.pod:784
20073 #, no-wrap
20074 msgid ""
20075 " df\n"
20076 "\n"
20077 msgstr ""
20078
20079 # type: textblock
20080 #: ../fish/guestfish-actions.pod:788 ../fish/guestfish-actions.pod:799
20081 msgid ""
20082 "This command is mostly useful for interactive sessions.  It is I<not> "
20083 "intended that you try to parse the output string.  Use L</statvfs> from "
20084 "programs."
20085 msgstr ""
20086
20087 # type: =head2
20088 #: ../fish/guestfish-actions.pod:792
20089 msgid "df-h"
20090 msgstr ""
20091
20092 # type: verbatim
20093 #: ../fish/guestfish-actions.pod:794
20094 #, no-wrap
20095 msgid ""
20096 " df-h\n"
20097 "\n"
20098 msgstr ""
20099
20100 # type: =head2
20101 #: ../fish/guestfish-actions.pod:803
20102 msgid "dmesg"
20103 msgstr ""
20104
20105 # type: verbatim
20106 #: ../fish/guestfish-actions.pod:805
20107 #, no-wrap
20108 msgid ""
20109 " dmesg\n"
20110 "\n"
20111 msgstr ""
20112
20113 # type: textblock
20114 #: ../fish/guestfish-actions.pod:811
20115 msgid ""
20116 "Another way to get the same information is to enable verbose messages with "
20117 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
20118 "before running the program."
20119 msgstr ""
20120
20121 # type: =head2
20122 #: ../fish/guestfish-actions.pod:816
20123 msgid "download"
20124 msgstr ""
20125
20126 # type: verbatim
20127 #: ../fish/guestfish-actions.pod:818
20128 #, no-wrap
20129 msgid ""
20130 " download remotefilename (filename|-)\n"
20131 "\n"
20132 msgstr ""
20133
20134 # type: textblock
20135 #: ../fish/guestfish-actions.pod:825
20136 msgid "See also L</upload>, L</cat>."
20137 msgstr ""
20138
20139 # type: =head2
20140 #: ../fish/guestfish-actions.pod:829
20141 msgid "download-offset"
20142 msgstr ""
20143
20144 # type: verbatim
20145 #: ../fish/guestfish-actions.pod:831
20146 #, no-wrap
20147 msgid ""
20148 " download-offset remotefilename (filename|-) offset size\n"
20149 "\n"
20150 msgstr ""
20151
20152 # type: textblock
20153 #: ../fish/guestfish-actions.pod:839
20154 msgid ""
20155 "Note that there is no limit on the amount of data that can be downloaded "
20156 "with this call, unlike with L</pread>, and this call always reads the full "
20157 "amount unless an error occurs."
20158 msgstr ""
20159
20160 # type: textblock
20161 #: ../fish/guestfish-actions.pod:844
20162 msgid "See also L</download>, L</pread>."
20163 msgstr ""
20164
20165 # type: =head2
20166 #: ../fish/guestfish-actions.pod:848
20167 msgid "drop-caches"
20168 msgstr ""
20169
20170 # type: verbatim
20171 #: ../fish/guestfish-actions.pod:850
20172 #, no-wrap
20173 msgid ""
20174 " drop-caches whattodrop\n"
20175 "\n"
20176 msgstr ""
20177
20178 # type: =head2
20179 #: ../fish/guestfish-actions.pod:862
20180 msgid "du"
20181 msgstr ""
20182
20183 # type: verbatim
20184 #: ../fish/guestfish-actions.pod:864
20185 #, no-wrap
20186 msgid ""
20187 " du path\n"
20188 "\n"
20189 msgstr ""
20190
20191 # type: =head2
20192 #: ../fish/guestfish-actions.pod:876
20193 msgid "e2fsck-f"
20194 msgstr ""
20195
20196 # type: verbatim
20197 #: ../fish/guestfish-actions.pod:878
20198 #, no-wrap
20199 msgid ""
20200 " e2fsck-f device\n"
20201 "\n"
20202 msgstr ""
20203
20204 # type: textblock
20205 #: ../fish/guestfish-actions.pod:884
20206 msgid ""
20207 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
20208 "should use L</fsck>."
20209 msgstr ""
20210
20211 # type: =head2
20212 #: ../fish/guestfish-actions.pod:887
20213 msgid "echo-daemon"
20214 msgstr ""
20215
20216 # type: verbatim
20217 #: ../fish/guestfish-actions.pod:889
20218 #, no-wrap
20219 msgid ""
20220 " echo-daemon 'words ...'\n"
20221 "\n"
20222 msgstr ""
20223
20224 # type: textblock
20225 #: ../fish/guestfish-actions.pod:896
20226 msgid "See also L</ping-daemon>."
20227 msgstr ""
20228
20229 # type: =head2
20230 #: ../fish/guestfish-actions.pod:898
20231 msgid "egrep"
20232 msgstr ""
20233
20234 # type: verbatim
20235 #: ../fish/guestfish-actions.pod:900
20236 #, no-wrap
20237 msgid ""
20238 " egrep regex path\n"
20239 "\n"
20240 msgstr ""
20241
20242 # type: =head2
20243 #: ../fish/guestfish-actions.pod:908
20244 msgid "egrepi"
20245 msgstr ""
20246
20247 # type: verbatim
20248 #: ../fish/guestfish-actions.pod:910
20249 #, no-wrap
20250 msgid ""
20251 " egrepi regex path\n"
20252 "\n"
20253 msgstr ""
20254
20255 # type: =head2
20256 #: ../fish/guestfish-actions.pod:918
20257 msgid "equal"
20258 msgstr ""
20259
20260 # type: verbatim
20261 #: ../fish/guestfish-actions.pod:920
20262 #, no-wrap
20263 msgid ""
20264 " equal file1 file2\n"
20265 "\n"
20266 msgstr ""
20267
20268 # type: =head2
20269 #: ../fish/guestfish-actions.pod:927
20270 msgid "exists"
20271 msgstr ""
20272
20273 # type: verbatim
20274 #: ../fish/guestfish-actions.pod:929
20275 #, no-wrap
20276 msgid ""
20277 " exists path\n"
20278 "\n"
20279 msgstr ""
20280
20281 # type: textblock
20282 #: ../fish/guestfish-actions.pod:934
20283 msgid "See also L</is-file>, L</is-dir>, L</stat>."
20284 msgstr ""
20285
20286 # type: =head2
20287 #: ../fish/guestfish-actions.pod:936
20288 msgid "fallocate"
20289 msgstr ""
20290
20291 # type: verbatim
20292 #: ../fish/guestfish-actions.pod:938
20293 #, no-wrap
20294 msgid ""
20295 " fallocate path len\n"
20296 "\n"
20297 msgstr ""
20298
20299 # type: =head2
20300 #: ../fish/guestfish-actions.pod:955
20301 msgid "fallocate64"
20302 msgstr ""
20303
20304 # type: verbatim
20305 #: ../fish/guestfish-actions.pod:957
20306 #, no-wrap
20307 msgid ""
20308 " fallocate64 path len\n"
20309 "\n"
20310 msgstr ""
20311
20312 # type: textblock
20313 #: ../fish/guestfish-actions.pod:963
20314 msgid ""
20315 "Note that this call allocates disk blocks for the file.  To create a sparse "
20316 "file use L</truncate-size> instead."
20317 msgstr ""
20318
20319 # type: textblock
20320 #: ../fish/guestfish-actions.pod:966
20321 msgid ""
20322 "The deprecated call L</fallocate> does the same, but owing to an oversight "
20323 "it only allowed 30 bit lengths to be specified, effectively limiting the "
20324 "maximum size of files created through that call to 1GB."
20325 msgstr ""
20326
20327 # type: =head2
20328 #: ../fish/guestfish-actions.pod:975
20329 msgid "fgrep"
20330 msgstr ""
20331
20332 # type: verbatim
20333 #: ../fish/guestfish-actions.pod:977
20334 #, no-wrap
20335 msgid ""
20336 " fgrep pattern path\n"
20337 "\n"
20338 msgstr ""
20339
20340 # type: =head2
20341 #: ../fish/guestfish-actions.pod:985
20342 msgid "fgrepi"
20343 msgstr ""
20344
20345 # type: verbatim
20346 #: ../fish/guestfish-actions.pod:987
20347 #, no-wrap
20348 msgid ""
20349 " fgrepi pattern path\n"
20350 "\n"
20351 msgstr ""
20352
20353 # type: =head2
20354 #: ../fish/guestfish-actions.pod:995
20355 msgid "file"
20356 msgstr ""
20357
20358 # type: verbatim
20359 #: ../fish/guestfish-actions.pod:997
20360 #, no-wrap
20361 msgid ""
20362 " file path\n"
20363 "\n"
20364 msgstr ""
20365
20366 # type: textblock
20367 #: ../fish/guestfish-actions.pod:1009
20368 msgid ""
20369 "This command can also be used on C</dev/> devices (and partitions, LV "
20370 "names).  You can for example use this to determine if a device contains a "
20371 "filesystem, although it's usually better to use L</vfs-type>."
20372 msgstr ""
20373
20374 # type: =head2
20375 #: ../fish/guestfish-actions.pod:1019
20376 msgid "file-architecture"
20377 msgstr ""
20378
20379 # type: verbatim
20380 #: ../fish/guestfish-actions.pod:1021
20381 #, no-wrap
20382 msgid ""
20383 " file-architecture filename\n"
20384 "\n"
20385 msgstr ""
20386
20387 # type: =head2
20388 #: ../fish/guestfish-actions.pod:1124
20389 msgid "filesize"
20390 msgstr ""
20391
20392 # type: verbatim
20393 #: ../fish/guestfish-actions.pod:1126
20394 #, no-wrap
20395 msgid ""
20396 " filesize file\n"
20397 "\n"
20398 msgstr ""
20399
20400 # type: textblock
20401 #: ../fish/guestfish-actions.pod:1130
20402 msgid ""
20403 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, "
20404 "L</is-file> etc.  To get the size of block devices, use "
20405 "L</blockdev-getsize64>."
20406 msgstr ""
20407
20408 # type: =head2
20409 #: ../fish/guestfish-actions.pod:1134
20410 msgid "fill"
20411 msgstr ""
20412
20413 # type: verbatim
20414 #: ../fish/guestfish-actions.pod:1136
20415 #, no-wrap
20416 msgid ""
20417 " fill c len path\n"
20418 "\n"
20419 msgstr ""
20420
20421 # type: textblock
20422 #: ../fish/guestfish-actions.pod:1142
20423 msgid ""
20424 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
20425 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
20426 "L</fill-pattern>."
20427 msgstr ""
20428
20429 # type: =head2
20430 #: ../fish/guestfish-actions.pod:1147
20431 msgid "fill-pattern"
20432 msgstr ""
20433
20434 # type: verbatim
20435 #: ../fish/guestfish-actions.pod:1149
20436 #, no-wrap
20437 msgid ""
20438 " fill-pattern pattern len path\n"
20439 "\n"
20440 msgstr ""
20441
20442 # type: textblock
20443 #: ../fish/guestfish-actions.pod:1151
20444 msgid ""
20445 "This function is like L</fill> except that it creates a new file of length "
20446 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
20447 "is truncated if necessary to ensure the length of the file is exactly C<len> "
20448 "bytes."
20449 msgstr ""
20450
20451 # type: =head2
20452 #: ../fish/guestfish-actions.pod:1156
20453 msgid "find"
20454 msgstr ""
20455
20456 # type: verbatim
20457 #: ../fish/guestfish-actions.pod:1158
20458 #, no-wrap
20459 msgid ""
20460 " find directory\n"
20461 "\n"
20462 msgstr ""
20463
20464 # type: textblock
20465 #: ../fish/guestfish-actions.pod:1172
20466 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
20467 msgstr ""
20468
20469 # type: textblock
20470 #: ../fish/guestfish-actions.pod:1185
20471 msgid "See also L</find0>."
20472 msgstr ""
20473
20474 # type: =head2
20475 #: ../fish/guestfish-actions.pod:1190
20476 msgid "find0"
20477 msgstr ""
20478
20479 # type: verbatim
20480 #: ../fish/guestfish-actions.pod:1192
20481 #, no-wrap
20482 msgid ""
20483 " find0 directory (files|-)\n"
20484 "\n"
20485 msgstr ""
20486
20487 # type: textblock
20488 #: ../fish/guestfish-actions.pod:1198
20489 msgid "This command works the same way as L</find> with the following exceptions:"
20490 msgstr ""
20491
20492 # type: =head2
20493 #: ../fish/guestfish-actions.pod:1225
20494 msgid "findfs-label"
20495 msgstr ""
20496
20497 # type: verbatim
20498 #: ../fish/guestfish-actions.pod:1227
20499 #, no-wrap
20500 msgid ""
20501 " findfs-label label\n"
20502 "\n"
20503 msgstr ""
20504
20505 # type: textblock
20506 #: ../fish/guestfish-actions.pod:1233
20507 msgid "To find the label of a filesystem, use L</vfs-label>."
20508 msgstr ""
20509
20510 # type: =head2
20511 #: ../fish/guestfish-actions.pod:1235
20512 msgid "findfs-uuid"
20513 msgstr ""
20514
20515 # type: verbatim
20516 #: ../fish/guestfish-actions.pod:1237
20517 #, no-wrap
20518 msgid ""
20519 " findfs-uuid uuid\n"
20520 "\n"
20521 msgstr ""
20522
20523 # type: textblock
20524 #: ../fish/guestfish-actions.pod:1243
20525 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
20526 msgstr ""
20527
20528 # type: =head2
20529 #: ../fish/guestfish-actions.pod:1245
20530 msgid "fsck"
20531 msgstr ""
20532
20533 # type: verbatim
20534 #: ../fish/guestfish-actions.pod:1247
20535 #, no-wrap
20536 msgid ""
20537 " fsck fstype device\n"
20538 "\n"
20539 msgstr ""
20540
20541 # type: =head2
20542 #: ../fish/guestfish-actions.pod:1277
20543 msgid "get-append"
20544 msgstr ""
20545
20546 # type: verbatim
20547 #: ../fish/guestfish-actions.pod:1279
20548 #, no-wrap
20549 msgid ""
20550 " get-append\n"
20551 "\n"
20552 msgstr ""
20553
20554 # type: =head2
20555 #: ../fish/guestfish-actions.pod:1286
20556 msgid "get-autosync"
20557 msgstr ""
20558
20559 # type: verbatim
20560 #: ../fish/guestfish-actions.pod:1288
20561 #, no-wrap
20562 msgid ""
20563 " get-autosync\n"
20564 "\n"
20565 msgstr ""
20566
20567 # type: =head2
20568 #: ../fish/guestfish-actions.pod:1292
20569 msgid "get-direct"
20570 msgstr ""
20571
20572 # type: verbatim
20573 #: ../fish/guestfish-actions.pod:1294
20574 #, no-wrap
20575 msgid ""
20576 " get-direct\n"
20577 "\n"
20578 msgstr ""
20579
20580 # type: =head2
20581 #: ../fish/guestfish-actions.pod:1298
20582 msgid "get-e2label"
20583 msgstr ""
20584
20585 # type: verbatim
20586 #: ../fish/guestfish-actions.pod:1300
20587 #, no-wrap
20588 msgid ""
20589 " get-e2label device\n"
20590 "\n"
20591 msgstr ""
20592
20593 # type: =head2
20594 #: ../fish/guestfish-actions.pod:1312
20595 msgid "get-e2uuid"
20596 msgstr ""
20597
20598 # type: verbatim
20599 #: ../fish/guestfish-actions.pod:1314
20600 #, no-wrap
20601 msgid ""
20602 " get-e2uuid device\n"
20603 "\n"
20604 msgstr ""
20605
20606 # type: =head2
20607 #: ../fish/guestfish-actions.pod:1326
20608 msgid "get-memsize"
20609 msgstr ""
20610
20611 # type: verbatim
20612 #: ../fish/guestfish-actions.pod:1328
20613 #, no-wrap
20614 msgid ""
20615 " get-memsize\n"
20616 "\n"
20617 msgstr ""
20618
20619 # type: textblock
20620 #: ../fish/guestfish-actions.pod:1333
20621 msgid ""
20622 "If L</set-memsize> was not called on this handle, and if "
20623 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
20624 "value for memsize."
20625 msgstr ""
20626
20627 # type: =head2
20628 #: ../fish/guestfish-actions.pod:1340
20629 msgid "get-network"
20630 msgstr ""
20631
20632 # type: verbatim
20633 #: ../fish/guestfish-actions.pod:1342
20634 #, no-wrap
20635 msgid ""
20636 " get-network\n"
20637 "\n"
20638 msgstr ""
20639
20640 # type: =head2
20641 #: ../fish/guestfish-actions.pod:1346
20642 msgid "get-path"
20643 msgstr ""
20644
20645 # type: verbatim
20646 #: ../fish/guestfish-actions.pod:1348
20647 #, no-wrap
20648 msgid ""
20649 " get-path\n"
20650 "\n"
20651 msgstr ""
20652
20653 # type: =head2
20654 #: ../fish/guestfish-actions.pod:1355
20655 msgid "get-pid"
20656 msgstr ""
20657
20658 # type: =head2
20659 #: ../fish/guestfish-actions.pod:1357
20660 msgid "pid"
20661 msgstr ""
20662
20663 # type: verbatim
20664 #: ../fish/guestfish-actions.pod:1359
20665 #, no-wrap
20666 msgid ""
20667 " get-pid\n"
20668 "\n"
20669 msgstr ""
20670
20671 # type: =head2
20672 #: ../fish/guestfish-actions.pod:1366
20673 msgid "get-qemu"
20674 msgstr ""
20675
20676 # type: verbatim
20677 #: ../fish/guestfish-actions.pod:1368
20678 #, no-wrap
20679 msgid ""
20680 " get-qemu\n"
20681 "\n"
20682 msgstr ""
20683
20684 # type: =head2
20685 #: ../fish/guestfish-actions.pod:1375
20686 msgid "get-recovery-proc"
20687 msgstr ""
20688
20689 # type: verbatim
20690 #: ../fish/guestfish-actions.pod:1377
20691 #, no-wrap
20692 msgid ""
20693 " get-recovery-proc\n"
20694 "\n"
20695 msgstr ""
20696
20697 # type: =head2
20698 #: ../fish/guestfish-actions.pod:1381
20699 msgid "get-selinux"
20700 msgstr ""
20701
20702 # type: verbatim
20703 #: ../fish/guestfish-actions.pod:1383
20704 #, no-wrap
20705 msgid ""
20706 " get-selinux\n"
20707 "\n"
20708 msgstr ""
20709
20710 # type: textblock
20711 #: ../fish/guestfish-actions.pod:1385
20712 msgid ""
20713 "This returns the current setting of the selinux flag which is passed to the "
20714 "appliance at boot time.  See L</set-selinux>."
20715 msgstr ""
20716
20717 # type: =head2
20718 #: ../fish/guestfish-actions.pod:1391
20719 msgid "get-state"
20720 msgstr ""
20721
20722 # type: verbatim
20723 #: ../fish/guestfish-actions.pod:1393
20724 #, no-wrap
20725 msgid ""
20726 " get-state\n"
20727 "\n"
20728 msgstr ""
20729
20730 # type: =head2
20731 #: ../fish/guestfish-actions.pod:1400
20732 msgid "get-trace"
20733 msgstr ""
20734
20735 # type: verbatim
20736 #: ../fish/guestfish-actions.pod:1402
20737 #, no-wrap
20738 msgid ""
20739 " get-trace\n"
20740 "\n"
20741 msgstr ""
20742
20743 # type: =head2
20744 #: ../fish/guestfish-actions.pod:1406
20745 msgid "get-umask"
20746 msgstr ""
20747
20748 # type: verbatim
20749 #: ../fish/guestfish-actions.pod:1408
20750 #, no-wrap
20751 msgid ""
20752 " get-umask\n"
20753 "\n"
20754 msgstr ""
20755
20756 # type: textblock
20757 #: ../fish/guestfish-actions.pod:1410
20758 msgid ""
20759 "Return the current umask.  By default the umask is C<022> unless it has been "
20760 "set by calling L</umask>."
20761 msgstr ""
20762
20763 # type: =head2
20764 #: ../fish/guestfish-actions.pod:1413
20765 msgid "get-verbose"
20766 msgstr ""
20767
20768 # type: verbatim
20769 #: ../fish/guestfish-actions.pod:1415
20770 #, no-wrap
20771 msgid ""
20772 " get-verbose\n"
20773 "\n"
20774 msgstr ""
20775
20776 # type: =head2
20777 #: ../fish/guestfish-actions.pod:1419
20778 msgid "getcon"
20779 msgstr ""
20780
20781 # type: verbatim
20782 #: ../fish/guestfish-actions.pod:1421
20783 #, no-wrap
20784 msgid ""
20785 " getcon\n"
20786 "\n"
20787 msgstr ""
20788
20789 # type: textblock
20790 #: ../fish/guestfish-actions.pod:1425
20791 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
20792 msgstr ""
20793
20794 # type: =head2
20795 #: ../fish/guestfish-actions.pod:1428
20796 msgid "getxattr"
20797 msgstr ""
20798
20799 # type: verbatim
20800 #: ../fish/guestfish-actions.pod:1430
20801 #, no-wrap
20802 msgid ""
20803 " getxattr path name\n"
20804 "\n"
20805 msgstr ""
20806
20807 # type: textblock
20808 #: ../fish/guestfish-actions.pod:1432
20809 msgid ""
20810 "Get a single extended attribute from file C<path> named C<name>.  This call "
20811 "follows symlinks.  If you want to lookup an extended attribute for the "
20812 "symlink itself, use L</lgetxattr>."
20813 msgstr ""
20814
20815 # type: textblock
20816 #: ../fish/guestfish-actions.pod:1436 ../fish/guestfish-actions.pod:2263
20817 msgid ""
20818 "Normally it is better to get all extended attributes from a file in one go "
20819 "by calling L</getxattrs>.  However some Linux filesystem implementations are "
20820 "buggy and do not provide a way to list out attributes.  For these "
20821 "filesystems (notably ntfs-3g)  you have to know the names of the extended "
20822 "attributes you want in advance and call this function."
20823 msgstr ""
20824
20825 # type: textblock
20826 #: ../fish/guestfish-actions.pod:1446
20827 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
20828 msgstr ""
20829
20830 # type: =head2
20831 #: ../fish/guestfish-actions.pod:1448
20832 msgid "getxattrs"
20833 msgstr ""
20834
20835 # type: verbatim
20836 #: ../fish/guestfish-actions.pod:1450
20837 #, no-wrap
20838 msgid ""
20839 " getxattrs path\n"
20840 "\n"
20841 msgstr ""
20842
20843 # type: textblock
20844 #: ../fish/guestfish-actions.pod:1458
20845 msgid "See also: L</lgetxattrs>, L<attr(5)>."
20846 msgstr ""
20847
20848 # type: =head2
20849 #: ../fish/guestfish-actions.pod:1460
20850 msgid "glob-expand"
20851 msgstr ""
20852
20853 # type: verbatim
20854 #: ../fish/guestfish-actions.pod:1462
20855 #, no-wrap
20856 msgid ""
20857 " glob-expand pattern\n"
20858 "\n"
20859 msgstr ""
20860
20861 # type: =head2
20862 #: ../fish/guestfish-actions.pod:1475
20863 msgid "grep"
20864 msgstr ""
20865
20866 # type: verbatim
20867 #: ../fish/guestfish-actions.pod:1477
20868 #, no-wrap
20869 msgid ""
20870 " grep regex path\n"
20871 "\n"
20872 msgstr ""
20873
20874 # type: =head2
20875 #: ../fish/guestfish-actions.pod:1485
20876 msgid "grepi"
20877 msgstr ""
20878
20879 # type: verbatim
20880 #: ../fish/guestfish-actions.pod:1487
20881 #, no-wrap
20882 msgid ""
20883 " grepi regex path\n"
20884 "\n"
20885 msgstr ""
20886
20887 # type: =head2
20888 #: ../fish/guestfish-actions.pod:1495
20889 msgid "grub-install"
20890 msgstr ""
20891
20892 # type: verbatim
20893 #: ../fish/guestfish-actions.pod:1497
20894 #, no-wrap
20895 msgid ""
20896 " grub-install root device\n"
20897 "\n"
20898 msgstr ""
20899
20900 # type: =head2
20901 #: ../fish/guestfish-actions.pod:1513
20902 msgid "head"
20903 msgstr ""
20904
20905 # type: verbatim
20906 #: ../fish/guestfish-actions.pod:1515
20907 #, no-wrap
20908 msgid ""
20909 " head path\n"
20910 "\n"
20911 msgstr ""
20912
20913 # type: =head2
20914 #: ../fish/guestfish-actions.pod:1523
20915 msgid "head-n"
20916 msgstr ""
20917
20918 # type: verbatim
20919 #: ../fish/guestfish-actions.pod:1525
20920 #, no-wrap
20921 msgid ""
20922 " head-n nrlines path\n"
20923 "\n"
20924 msgstr ""
20925
20926 # type: =head2
20927 #: ../fish/guestfish-actions.pod:1538
20928 msgid "hexdump"
20929 msgstr ""
20930
20931 # type: verbatim
20932 #: ../fish/guestfish-actions.pod:1540
20933 #, no-wrap
20934 msgid ""
20935 " hexdump path\n"
20936 "\n"
20937 msgstr ""
20938
20939 # type: =head2
20940 #: ../fish/guestfish-actions.pod:1548
20941 msgid "initrd-cat"
20942 msgstr ""
20943
20944 # type: verbatim
20945 #: ../fish/guestfish-actions.pod:1550
20946 #, no-wrap
20947 msgid ""
20948 " initrd-cat initrdpath filename\n"
20949 "\n"
20950 msgstr ""
20951
20952 # type: textblock
20953 #: ../fish/guestfish-actions.pod:1562
20954 msgid "See also L</initrd-list>."
20955 msgstr ""
20956
20957 # type: =head2
20958 #: ../fish/guestfish-actions.pod:1567
20959 msgid "initrd-list"
20960 msgstr ""
20961
20962 # type: verbatim
20963 #: ../fish/guestfish-actions.pod:1569
20964 #, no-wrap
20965 msgid ""
20966 " initrd-list path\n"
20967 "\n"
20968 msgstr ""
20969
20970 # type: =head2
20971 #: ../fish/guestfish-actions.pod:1581
20972 msgid "inotify-add-watch"
20973 msgstr ""
20974
20975 # type: verbatim
20976 #: ../fish/guestfish-actions.pod:1583
20977 #, no-wrap
20978 msgid ""
20979 " inotify-add-watch path mask\n"
20980 "\n"
20981 msgstr ""
20982
20983 # type: =head2
20984 #: ../fish/guestfish-actions.pod:1595
20985 msgid "inotify-close"
20986 msgstr ""
20987
20988 # type: verbatim
20989 #: ../fish/guestfish-actions.pod:1597
20990 #, no-wrap
20991 msgid ""
20992 " inotify-close\n"
20993 "\n"
20994 msgstr ""
20995
20996 # type: =head2
20997 #: ../fish/guestfish-actions.pod:1603
20998 msgid "inotify-files"
20999 msgstr ""
21000
21001 # type: verbatim
21002 #: ../fish/guestfish-actions.pod:1605
21003 #, no-wrap
21004 msgid ""
21005 " inotify-files\n"
21006 "\n"
21007 msgstr ""
21008
21009 # type: textblock
21010 #: ../fish/guestfish-actions.pod:1607
21011 msgid ""
21012 "This function is a helpful wrapper around L</inotify-read> which just "
21013 "returns a list of pathnames of objects that were touched.  The returned "
21014 "pathnames are sorted and deduplicated."
21015 msgstr ""
21016
21017 # type: =head2
21018 #: ../fish/guestfish-actions.pod:1611
21019 msgid "inotify-init"
21020 msgstr ""
21021
21022 # type: verbatim
21023 #: ../fish/guestfish-actions.pod:1613
21024 #, no-wrap
21025 msgid ""
21026 " inotify-init maxevents\n"
21027 "\n"
21028 msgstr ""
21029
21030 # type: textblock
21031 #: ../fish/guestfish-actions.pod:1619
21032 msgid ""
21033 "C<maxevents> is the maximum number of events which will be queued up between "
21034 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
21035 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
21036 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
21037 "but records the fact that it threw them away by setting a flag "
21038 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
21039 msgstr ""
21040
21041 # type: textblock
21042 #: ../fish/guestfish-actions.pod:1629
21043 msgid ""
21044 "Before any events are generated, you have to add some watches to the "
21045 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
21046 "L</inotify-watch-all>."
21047 msgstr ""
21048
21049 # type: textblock
21050 #: ../fish/guestfish-actions.pod:1635
21051 msgid ""
21052 "Queued up events should be read periodically by calling L</inotify-read> (or "
21053 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
21054 "If you don't read the events out often enough then you risk the internal "
21055 "queue overflowing."
21056 msgstr ""
21057
21058 # type: textblock
21059 #: ../fish/guestfish-actions.pod:1642
21060 msgid ""
21061 "The handle should be closed after use by calling L</inotify-close>.  This "
21062 "also removes any watches automatically."
21063 msgstr ""
21064
21065 # type: =head2
21066 #: ../fish/guestfish-actions.pod:1651
21067 msgid "inotify-read"
21068 msgstr ""
21069
21070 # type: verbatim
21071 #: ../fish/guestfish-actions.pod:1653
21072 #, no-wrap
21073 msgid ""
21074 " inotify-read\n"
21075 "\n"
21076 msgstr ""
21077
21078 # type: =head2
21079 #: ../fish/guestfish-actions.pod:1666
21080 msgid "inotify-rm-watch"
21081 msgstr ""
21082
21083 # type: verbatim
21084 #: ../fish/guestfish-actions.pod:1668
21085 #, no-wrap
21086 msgid ""
21087 " inotify-rm-watch wd\n"
21088 "\n"
21089 msgstr ""
21090
21091 # type: textblock
21092 #: ../fish/guestfish-actions.pod:1670
21093 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
21094 msgstr ""
21095
21096 # type: =head2
21097 #: ../fish/guestfish-actions.pod:1673
21098 msgid "inspect-get-arch"
21099 msgstr ""
21100
21101 # type: verbatim
21102 #: ../fish/guestfish-actions.pod:1675
21103 #, no-wrap
21104 msgid ""
21105 " inspect-get-arch root\n"
21106 "\n"
21107 msgstr ""
21108
21109 # type: textblock
21110 #: ../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
21111 msgid ""
21112 "This function should only be called with a root device string as returned by "
21113 "L</inspect-os>."
21114 msgstr ""
21115
21116 # type: textblock
21117 #: ../fish/guestfish-actions.pod:1680
21118 msgid ""
21119 "This returns the architecture of the inspected operating system.  The "
21120 "possible return values are listed under L</file-architecture>."
21121 msgstr ""
21122
21123 # type: =head2
21124 #: ../fish/guestfish-actions.pod:1689
21125 msgid "inspect-get-distro"
21126 msgstr ""
21127
21128 # type: verbatim
21129 #: ../fish/guestfish-actions.pod:1691
21130 #, no-wrap
21131 msgid ""
21132 " inspect-get-distro root\n"
21133 "\n"
21134 msgstr ""
21135
21136 # type: =head2
21137 #: ../fish/guestfish-actions.pod:1763
21138 msgid "inspect-get-filesystems"
21139 msgstr ""
21140
21141 # type: verbatim
21142 #: ../fish/guestfish-actions.pod:1765
21143 #, no-wrap
21144 msgid ""
21145 " inspect-get-filesystems root\n"
21146 "\n"
21147 msgstr ""
21148
21149 # type: textblock
21150 #: ../fish/guestfish-actions.pod:1778
21151 msgid ""
21152 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
21153 "L</inspect-get-mountpoints>."
21154 msgstr ""
21155
21156 # type: =head2
21157 #: ../fish/guestfish-actions.pod:1781
21158 msgid "inspect-get-hostname"
21159 msgstr ""
21160
21161 # type: verbatim
21162 #: ../fish/guestfish-actions.pod:1783
21163 #, no-wrap
21164 msgid ""
21165 " inspect-get-hostname root\n"
21166 "\n"
21167 msgstr ""
21168
21169 # type: =head2
21170 #: ../fish/guestfish-actions.pod:1796
21171 msgid "inspect-get-major-version"
21172 msgstr ""
21173
21174 # type: verbatim
21175 #: ../fish/guestfish-actions.pod:1798
21176 #, no-wrap
21177 msgid ""
21178 " inspect-get-major-version root\n"
21179 "\n"
21180 msgstr ""
21181
21182 # type: =head2
21183 #: ../fish/guestfish-actions.pod:1817
21184 msgid "inspect-get-minor-version"
21185 msgstr ""
21186
21187 # type: verbatim
21188 #: ../fish/guestfish-actions.pod:1819
21189 #, no-wrap
21190 msgid ""
21191 " inspect-get-minor-version root\n"
21192 "\n"
21193 msgstr ""
21194
21195 # type: textblock
21196 #: ../fish/guestfish-actions.pod:1829
21197 msgid ""
21198 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
21199 "L</inspect-get-major-version>."
21200 msgstr ""
21201
21202 # type: =head2
21203 #: ../fish/guestfish-actions.pod:1832
21204 msgid "inspect-get-mountpoints"
21205 msgstr ""
21206
21207 # type: verbatim
21208 #: ../fish/guestfish-actions.pod:1834
21209 #, no-wrap
21210 msgid ""
21211 " inspect-get-mountpoints root\n"
21212 "\n"
21213 msgstr ""
21214
21215 # type: textblock
21216 #: ../fish/guestfish-actions.pod:1852
21217 msgid ""
21218 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
21219 "L</inspect-get-filesystems>."
21220 msgstr ""
21221
21222 # type: =head2
21223 #: ../fish/guestfish-actions.pod:1855
21224 msgid "inspect-get-package-format"
21225 msgstr ""
21226
21227 # type: verbatim
21228 #: ../fish/guestfish-actions.pod:1857
21229 #, no-wrap
21230 msgid ""
21231 " inspect-get-package-format root\n"
21232 "\n"
21233 msgstr ""
21234
21235 # type: textblock
21236 #: ../fish/guestfish-actions.pod:1862
21237 msgid ""
21238 "This function and L</inspect-get-package-management> return the package "
21239 "format and package management tool used by the inspected operating system.  "
21240 "For example for Fedora these functions would return C<rpm> (package format) "
21241 "and C<yum> (package management)."
21242 msgstr ""
21243
21244 # type: =head2
21245 #: ../fish/guestfish-actions.pod:1877
21246 msgid "inspect-get-package-management"
21247 msgstr ""
21248
21249 # type: verbatim
21250 #: ../fish/guestfish-actions.pod:1879
21251 #, no-wrap
21252 msgid ""
21253 " inspect-get-package-management root\n"
21254 "\n"
21255 msgstr ""
21256
21257 # type: textblock
21258 #: ../fish/guestfish-actions.pod:1884
21259 msgid ""
21260 "L</inspect-get-package-format> and this function return the package format "
21261 "and package management tool used by the inspected operating system.  For "
21262 "example for Fedora these functions would return C<rpm> (package format) and "
21263 "C<yum> (package management)."
21264 msgstr ""
21265
21266 # type: =head2
21267 #: ../fish/guestfish-actions.pod:1901
21268 msgid "inspect-get-product-name"
21269 msgstr ""
21270
21271 # type: verbatim
21272 #: ../fish/guestfish-actions.pod:1903
21273 #, no-wrap
21274 msgid ""
21275 " inspect-get-product-name root\n"
21276 "\n"
21277 msgstr ""
21278
21279 # type: =head2
21280 #: ../fish/guestfish-actions.pod:1918
21281 msgid "inspect-get-roots"
21282 msgstr ""
21283
21284 # type: verbatim
21285 #: ../fish/guestfish-actions.pod:1920
21286 #, no-wrap
21287 msgid ""
21288 " inspect-get-roots\n"
21289 "\n"
21290 msgstr ""
21291
21292 # type: textblock
21293 #: ../fish/guestfish-actions.pod:1922
21294 msgid ""
21295 "This function is a convenient way to get the list of root devices, as "
21296 "returned from a previous call to L</inspect-os>, but without redoing the "
21297 "whole inspection process."
21298 msgstr ""
21299
21300 # type: textblock
21301 #: ../fish/guestfish-actions.pod:1926
21302 msgid ""
21303 "This returns an empty list if either no root devices were found or the "
21304 "caller has not called L</inspect-os>."
21305 msgstr ""
21306
21307 # type: =head2
21308 #: ../fish/guestfish-actions.pod:1931
21309 msgid "inspect-get-type"
21310 msgstr ""
21311
21312 # type: verbatim
21313 #: ../fish/guestfish-actions.pod:1933
21314 #, no-wrap
21315 msgid ""
21316 " inspect-get-type root\n"
21317 "\n"
21318 msgstr ""
21319
21320 # type: =head2
21321 #: ../fish/guestfish-actions.pod:1966
21322 msgid "inspect-get-windows-systemroot"
21323 msgstr ""
21324
21325 # type: verbatim
21326 #: ../fish/guestfish-actions.pod:1968
21327 #, no-wrap
21328 msgid ""
21329 " inspect-get-windows-systemroot root\n"
21330 "\n"
21331 msgstr ""
21332
21333 # type: =head2
21334 #: ../fish/guestfish-actions.pod:1982
21335 msgid "inspect-list-applications"
21336 msgstr ""
21337
21338 # type: verbatim
21339 #: ../fish/guestfish-actions.pod:1984
21340 #, no-wrap
21341 msgid ""
21342 " inspect-list-applications root\n"
21343 "\n"
21344 msgstr ""
21345
21346 # type: textblock
21347 #: ../fish/guestfish-actions.pod:1991
21348 msgid ""
21349 "I<Note:> This call works differently from other parts of the inspection "
21350 "API.  You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
21351 "then mount up the disks, before calling this.  Listing applications is a "
21352 "significantly more difficult operation which requires access to the full "
21353 "filesystem.  Also note that unlike the other L</inspect-get-*> calls which "
21354 "are just returning data cached in the libguestfs handle, this call actually "
21355 "reads parts of the mounted filesystems during the call."
21356 msgstr ""
21357
21358 # type: =head2
21359 #: ../fish/guestfish-actions.pod:2081
21360 msgid "inspect-os"
21361 msgstr ""
21362
21363 # type: verbatim
21364 #: ../fish/guestfish-actions.pod:2083
21365 #, no-wrap
21366 msgid ""
21367 " inspect-os\n"
21368 "\n"
21369 msgstr ""
21370
21371 # type: textblock
21372 #: ../fish/guestfish-actions.pod:2098
21373 msgid ""
21374 "You can pass the root string(s) returned to other L</inspect-get-*> "
21375 "functions in order to query further information about each operating system, "
21376 "such as the name and version."
21377 msgstr ""
21378
21379 # type: textblock
21380 #: ../fish/guestfish-actions.pod:2103
21381 msgid ""
21382 "This function uses other libguestfs features such as L</mount-ro> and "
21383 "L</umount-all> in order to mount and unmount filesystems and look at the "
21384 "contents.  This should be called with no disks currently mounted.  The "
21385 "function may also use Augeas, so any existing Augeas handle will be closed."
21386 msgstr ""
21387
21388 # type: textblock
21389 #: ../fish/guestfish-actions.pod:2115 ../fish/guestfish-actions.pod:2291 ../fish/guestfish-actions.pod:2337
21390 msgid "See also L</list-filesystems>."
21391 msgstr ""
21392
21393 # type: =head2
21394 #: ../fish/guestfish-actions.pod:2117
21395 msgid "is-blockdev"
21396 msgstr ""
21397
21398 # type: verbatim
21399 #: ../fish/guestfish-actions.pod:2119
21400 #, no-wrap
21401 msgid ""
21402 " is-blockdev path\n"
21403 "\n"
21404 msgstr ""
21405
21406 # type: textblock
21407 #: ../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
21408 msgid "See also L</stat>."
21409 msgstr ""
21410
21411 # type: =head2
21412 #: ../fish/guestfish-actions.pod:2126
21413 msgid "is-busy"
21414 msgstr ""
21415
21416 # type: verbatim
21417 #: ../fish/guestfish-actions.pod:2128
21418 #, no-wrap
21419 msgid ""
21420 " is-busy\n"
21421 "\n"
21422 msgstr ""
21423
21424 # type: =head2
21425 #: ../fish/guestfish-actions.pod:2135
21426 msgid "is-chardev"
21427 msgstr ""
21428
21429 # type: verbatim
21430 #: ../fish/guestfish-actions.pod:2137
21431 #, no-wrap
21432 msgid ""
21433 " is-chardev path\n"
21434 "\n"
21435 msgstr ""
21436
21437 # type: =head2
21438 #: ../fish/guestfish-actions.pod:2144
21439 msgid "is-config"
21440 msgstr ""
21441
21442 # type: verbatim
21443 #: ../fish/guestfish-actions.pod:2146
21444 #, no-wrap
21445 msgid ""
21446 " is-config\n"
21447 "\n"
21448 msgstr ""
21449
21450 # type: =head2
21451 #: ../fish/guestfish-actions.pod:2153
21452 msgid "is-dir"
21453 msgstr ""
21454
21455 # type: verbatim
21456 #: ../fish/guestfish-actions.pod:2155
21457 #, no-wrap
21458 msgid ""
21459 " is-dir path\n"
21460 "\n"
21461 msgstr ""
21462
21463 # type: =head2
21464 #: ../fish/guestfish-actions.pod:2163
21465 msgid "is-fifo"
21466 msgstr ""
21467
21468 # type: verbatim
21469 #: ../fish/guestfish-actions.pod:2165
21470 #, no-wrap
21471 msgid ""
21472 " is-fifo path\n"
21473 "\n"
21474 msgstr ""
21475
21476 # type: =head2
21477 #: ../fish/guestfish-actions.pod:2172
21478 msgid "is-file"
21479 msgstr ""
21480
21481 # type: verbatim
21482 #: ../fish/guestfish-actions.pod:2174
21483 #, no-wrap
21484 msgid ""
21485 " is-file path\n"
21486 "\n"
21487 msgstr ""
21488
21489 # type: =head2
21490 #: ../fish/guestfish-actions.pod:2182
21491 msgid "is-launching"
21492 msgstr ""
21493
21494 # type: verbatim
21495 #: ../fish/guestfish-actions.pod:2184
21496 #, no-wrap
21497 msgid ""
21498 " is-launching\n"
21499 "\n"
21500 msgstr ""
21501
21502 # type: =head2
21503 #: ../fish/guestfish-actions.pod:2191
21504 msgid "is-lv"
21505 msgstr ""
21506
21507 # type: verbatim
21508 #: ../fish/guestfish-actions.pod:2193
21509 #, no-wrap
21510 msgid ""
21511 " is-lv device\n"
21512 "\n"
21513 msgstr ""
21514
21515 # type: =head2
21516 #: ../fish/guestfish-actions.pod:2198
21517 msgid "is-ready"
21518 msgstr ""
21519
21520 # type: verbatim
21521 #: ../fish/guestfish-actions.pod:2200
21522 #, no-wrap
21523 msgid ""
21524 " is-ready\n"
21525 "\n"
21526 msgstr ""
21527
21528 # type: =head2
21529 #: ../fish/guestfish-actions.pod:2207
21530 msgid "is-socket"
21531 msgstr ""
21532
21533 # type: verbatim
21534 #: ../fish/guestfish-actions.pod:2209
21535 #, no-wrap
21536 msgid ""
21537 " is-socket path\n"
21538 "\n"
21539 msgstr ""
21540
21541 # type: =head2
21542 #: ../fish/guestfish-actions.pod:2216
21543 msgid "is-symlink"
21544 msgstr ""
21545
21546 # type: verbatim
21547 #: ../fish/guestfish-actions.pod:2218
21548 #, no-wrap
21549 msgid ""
21550 " is-symlink path\n"
21551 "\n"
21552 msgstr ""
21553
21554 # type: =head2
21555 #: ../fish/guestfish-actions.pod:2225
21556 msgid "kill-subprocess"
21557 msgstr ""
21558
21559 # type: verbatim
21560 #: ../fish/guestfish-actions.pod:2227
21561 #, no-wrap
21562 msgid ""
21563 " kill-subprocess\n"
21564 "\n"
21565 msgstr ""
21566
21567 # type: =head2
21568 #: ../fish/guestfish-actions.pod:2231
21569 msgid "launch"
21570 msgstr ""
21571
21572 # type: =head2
21573 #: ../fish/guestfish-actions.pod:2233
21574 msgid "run"
21575 msgstr ""
21576
21577 # type: verbatim
21578 #: ../fish/guestfish-actions.pod:2235
21579 #, no-wrap
21580 msgid ""
21581 " launch\n"
21582 "\n"
21583 msgstr ""
21584
21585 # type: =head2
21586 #: ../fish/guestfish-actions.pod:2243
21587 msgid "lchown"
21588 msgstr ""
21589
21590 # type: verbatim
21591 #: ../fish/guestfish-actions.pod:2245
21592 #, no-wrap
21593 msgid ""
21594 " lchown owner group path\n"
21595 "\n"
21596 msgstr ""
21597
21598 # type: textblock
21599 #: ../fish/guestfish-actions.pod:2247
21600 msgid ""
21601 "Change the file owner to C<owner> and group to C<group>.  This is like "
21602 "L</chown> but if C<path> is a symlink then the link itself is changed, not "
21603 "the target."
21604 msgstr ""
21605
21606 # type: =head2
21607 #: ../fish/guestfish-actions.pod:2255
21608 msgid "lgetxattr"
21609 msgstr ""
21610
21611 # type: verbatim
21612 #: ../fish/guestfish-actions.pod:2257
21613 #, no-wrap
21614 msgid ""
21615 " lgetxattr path name\n"
21616 "\n"
21617 msgstr ""
21618
21619 # type: textblock
21620 #: ../fish/guestfish-actions.pod:2273
21621 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
21622 msgstr ""
21623
21624 # type: =head2
21625 #: ../fish/guestfish-actions.pod:2275
21626 msgid "lgetxattrs"
21627 msgstr ""
21628
21629 # type: verbatim
21630 #: ../fish/guestfish-actions.pod:2277
21631 #, no-wrap
21632 msgid ""
21633 " lgetxattrs path\n"
21634 "\n"
21635 msgstr ""
21636
21637 # type: textblock
21638 #: ../fish/guestfish-actions.pod:2279
21639 msgid ""
21640 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
21641 "it returns the extended attributes of the link itself."
21642 msgstr ""
21643
21644 # type: =head2
21645 #: ../fish/guestfish-actions.pod:2283
21646 msgid "list-devices"
21647 msgstr ""
21648
21649 # type: verbatim
21650 #: ../fish/guestfish-actions.pod:2285
21651 #, no-wrap
21652 msgid ""
21653 " list-devices\n"
21654 "\n"
21655 msgstr ""
21656
21657 # type: =head2
21658 #: ../fish/guestfish-actions.pod:2293
21659 msgid "list-filesystems"
21660 msgstr ""
21661
21662 # type: verbatim
21663 #: ../fish/guestfish-actions.pod:2295
21664 #, no-wrap
21665 msgid ""
21666 " list-filesystems\n"
21667 "\n"
21668 msgstr ""
21669
21670 # type: textblock
21671 #: ../fish/guestfish-actions.pod:2314
21672 msgid ""
21673 "This command runs other libguestfs commands, which might include L</mount> "
21674 "and L</umount>, and therefore you should use this soon after launch and only "
21675 "when nothing is mounted."
21676 msgstr ""
21677
21678 # type: textblock
21679 #: ../fish/guestfish-actions.pod:2318
21680 msgid ""
21681 "Not all of the filesystems returned will be mountable.  In particular, swap "
21682 "partitions are returned in the list.  Also this command does not check that "
21683 "each filesystem found is valid and mountable, and some filesystems might be "
21684 "mountable but require special options.  Filesystems may not all belong to a "
21685 "single logical operating system (use L</inspect-os> to look for OSes)."
21686 msgstr ""
21687
21688 # type: =head2
21689 #: ../fish/guestfish-actions.pod:2326
21690 msgid "list-partitions"
21691 msgstr ""
21692
21693 # type: verbatim
21694 #: ../fish/guestfish-actions.pod:2328
21695 #, no-wrap
21696 msgid ""
21697 " list-partitions\n"
21698 "\n"
21699 msgstr ""
21700
21701 # type: textblock
21702 #: ../fish/guestfish-actions.pod:2334
21703 msgid ""
21704 "This does not return logical volumes.  For that you will need to call "
21705 "L</lvs>."
21706 msgstr ""
21707
21708 # type: =head2
21709 #: ../fish/guestfish-actions.pod:2339
21710 msgid "ll"
21711 msgstr ""
21712
21713 # type: verbatim
21714 #: ../fish/guestfish-actions.pod:2341
21715 #, no-wrap
21716 msgid ""
21717 " ll directory\n"
21718 "\n"
21719 msgstr ""
21720
21721 # type: =head2
21722 #: ../fish/guestfish-actions.pod:2349
21723 msgid "ln"
21724 msgstr ""
21725
21726 # type: verbatim
21727 #: ../fish/guestfish-actions.pod:2351
21728 #, no-wrap
21729 msgid ""
21730 " ln target linkname\n"
21731 "\n"
21732 msgstr ""
21733
21734 # type: =head2
21735 #: ../fish/guestfish-actions.pod:2355
21736 msgid "ln-f"
21737 msgstr ""
21738
21739 # type: verbatim
21740 #: ../fish/guestfish-actions.pod:2357
21741 #, no-wrap
21742 msgid ""
21743 " ln-f target linkname\n"
21744 "\n"
21745 msgstr ""
21746
21747 # type: =head2
21748 #: ../fish/guestfish-actions.pod:2362
21749 msgid "ln-s"
21750 msgstr ""
21751
21752 # type: verbatim
21753 #: ../fish/guestfish-actions.pod:2364
21754 #, no-wrap
21755 msgid ""
21756 " ln-s target linkname\n"
21757 "\n"
21758 msgstr ""
21759
21760 # type: =head2
21761 #: ../fish/guestfish-actions.pod:2368
21762 msgid "ln-sf"
21763 msgstr ""
21764
21765 # type: verbatim
21766 #: ../fish/guestfish-actions.pod:2370
21767 #, no-wrap
21768 msgid ""
21769 " ln-sf target linkname\n"
21770 "\n"
21771 msgstr ""
21772
21773 # type: =head2
21774 #: ../fish/guestfish-actions.pod:2375
21775 msgid "lremovexattr"
21776 msgstr ""
21777
21778 # type: verbatim
21779 #: ../fish/guestfish-actions.pod:2377
21780 #, no-wrap
21781 msgid ""
21782 " lremovexattr xattr path\n"
21783 "\n"
21784 msgstr ""
21785
21786 # type: textblock
21787 #: ../fish/guestfish-actions.pod:2379
21788 msgid ""
21789 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
21790 "it removes an extended attribute of the link itself."
21791 msgstr ""
21792
21793 # type: =head2
21794 #: ../fish/guestfish-actions.pod:2383
21795 msgid "ls"
21796 msgstr ""
21797
21798 # type: verbatim
21799 #: ../fish/guestfish-actions.pod:2385
21800 #, no-wrap
21801 msgid ""
21802 " ls directory\n"
21803 "\n"
21804 msgstr ""
21805
21806 # type: textblock
21807 #: ../fish/guestfish-actions.pod:2391
21808 msgid ""
21809 "This command is mostly useful for interactive sessions.  Programs should "
21810 "probably use L</readdir> instead."
21811 msgstr ""
21812
21813 # type: =head2
21814 #: ../fish/guestfish-actions.pod:2394
21815 msgid "lsetxattr"
21816 msgstr ""
21817
21818 # type: verbatim
21819 #: ../fish/guestfish-actions.pod:2396
21820 #, no-wrap
21821 msgid ""
21822 " lsetxattr xattr val vallen path\n"
21823 "\n"
21824 msgstr ""
21825
21826 # type: textblock
21827 #: ../fish/guestfish-actions.pod:2398
21828 msgid ""
21829 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
21830 "sets an extended attribute of the link itself."
21831 msgstr ""
21832
21833 # type: =head2
21834 #: ../fish/guestfish-actions.pod:2402
21835 msgid "lstat"
21836 msgstr ""
21837
21838 # type: verbatim
21839 #: ../fish/guestfish-actions.pod:2404
21840 #, no-wrap
21841 msgid ""
21842 " lstat path\n"
21843 "\n"
21844 msgstr ""
21845
21846 # type: textblock
21847 #: ../fish/guestfish-actions.pod:2408
21848 msgid ""
21849 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
21850 "the link is stat-ed, not the file it refers to."
21851 msgstr ""
21852
21853 # type: =head2
21854 #: ../fish/guestfish-actions.pod:2414
21855 msgid "lstatlist"
21856 msgstr ""
21857
21858 # type: verbatim
21859 #: ../fish/guestfish-actions.pod:2416
21860 #, no-wrap
21861 msgid ""
21862 " lstatlist path 'names ...'\n"
21863 "\n"
21864 msgstr ""
21865
21866 # type: textblock
21867 #: ../fish/guestfish-actions.pod:2418
21868 msgid ""
21869 "This call allows you to perform the L</lstat> operation on multiple files, "
21870 "where all files are in the directory C<path>.  C<names> is the list of files "
21871 "from this directory."
21872 msgstr ""
21873
21874 # type: textblock
21875 #: ../fish/guestfish-actions.pod:2427
21876 msgid ""
21877 "This call is intended for programs that want to efficiently list a directory "
21878 "contents without making many round-trips.  See also L</lxattrlist> for a "
21879 "similarly efficient call for getting extended attributes.  Very long "
21880 "directory listings might cause the protocol message size to be exceeded, "
21881 "causing this call to fail.  The caller must split up such requests into "
21882 "smaller groups of names."
21883 msgstr ""
21884
21885 # type: =head2
21886 #: ../fish/guestfish-actions.pod:2435
21887 msgid "luks-add-key"
21888 msgstr ""
21889
21890 # type: verbatim
21891 #: ../fish/guestfish-actions.pod:2437
21892 #, no-wrap
21893 msgid ""
21894 " luks-add-key device keyslot\n"
21895 "\n"
21896 msgstr ""
21897
21898 # type: textblock
21899 #: ../fish/guestfish-actions.pod:2444
21900 msgid ""
21901 "Note that if C<keyslot> already contains a key, then this command will "
21902 "fail.  You have to use L</luks-kill-slot> first to remove that key."
21903 msgstr ""
21904
21905 # type: textblock
21906 #: ../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
21907 msgid ""
21908 "This command has one or more key or passphrase parameters.  Guestfish will "
21909 "prompt for these separately."
21910 msgstr ""
21911
21912 # type: =head2
21913 #: ../fish/guestfish-actions.pod:2451
21914 msgid "luks-close"
21915 msgstr ""
21916
21917 # type: verbatim
21918 #: ../fish/guestfish-actions.pod:2453
21919 #, no-wrap
21920 msgid ""
21921 " luks-close device\n"
21922 "\n"
21923 msgstr ""
21924
21925 # type: textblock
21926 #: ../fish/guestfish-actions.pod:2455
21927 msgid ""
21928 "This closes a LUKS device that was created earlier by L</luks-open> or "
21929 "L</luks-open-ro>.  The C<device> parameter must be the name of the LUKS "
21930 "mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
21931 "underlying block device."
21932 msgstr ""
21933
21934 # type: =head2
21935 #: ../fish/guestfish-actions.pod:2461
21936 msgid "luks-format"
21937 msgstr ""
21938
21939 # type: verbatim
21940 #: ../fish/guestfish-actions.pod:2463
21941 #, no-wrap
21942 msgid ""
21943 " luks-format device keyslot\n"
21944 "\n"
21945 msgstr ""
21946
21947 # type: =head2
21948 #: ../fish/guestfish-actions.pod:2476
21949 msgid "luks-format-cipher"
21950 msgstr ""
21951
21952 # type: verbatim
21953 #: ../fish/guestfish-actions.pod:2478
21954 #, no-wrap
21955 msgid ""
21956 " luks-format-cipher device keyslot cipher\n"
21957 "\n"
21958 msgstr ""
21959
21960 # type: textblock
21961 #: ../fish/guestfish-actions.pod:2480
21962 msgid ""
21963 "This command is the same as L</luks-format> but it also allows you to set "
21964 "the C<cipher> used."
21965 msgstr ""
21966
21967 # type: =head2
21968 #: ../fish/guestfish-actions.pod:2489
21969 msgid "luks-kill-slot"
21970 msgstr ""
21971
21972 # type: verbatim
21973 #: ../fish/guestfish-actions.pod:2491
21974 #, no-wrap
21975 msgid ""
21976 " luks-kill-slot device keyslot\n"
21977 "\n"
21978 msgstr ""
21979
21980 # type: =head2
21981 #: ../fish/guestfish-actions.pod:2500
21982 msgid "luks-open"
21983 msgstr ""
21984
21985 # type: verbatim
21986 #: ../fish/guestfish-actions.pod:2502
21987 #, no-wrap
21988 msgid ""
21989 " luks-open device mapname\n"
21990 "\n"
21991 msgstr ""
21992
21993 # type: textblock
21994 #: ../fish/guestfish-actions.pod:2516
21995 msgid ""
21996 "If this block device contains LVM volume groups, then calling L</vgscan> "
21997 "followed by L</vg-activate-all> will make them visible."
21998 msgstr ""
21999
22000 # type: =head2
22001 #: ../fish/guestfish-actions.pod:2523
22002 msgid "luks-open-ro"
22003 msgstr ""
22004
22005 # type: verbatim
22006 #: ../fish/guestfish-actions.pod:2525
22007 #, no-wrap
22008 msgid ""
22009 " luks-open-ro device mapname\n"
22010 "\n"
22011 msgstr ""
22012
22013 # type: textblock
22014 #: ../fish/guestfish-actions.pod:2527
22015 msgid ""
22016 "This is the same as L</luks-open> except that a read-only mapping is "
22017 "created."
22018 msgstr ""
22019
22020 # type: =head2
22021 #: ../fish/guestfish-actions.pod:2533
22022 msgid "lvcreate"
22023 msgstr ""
22024
22025 # type: verbatim
22026 #: ../fish/guestfish-actions.pod:2535
22027 #, no-wrap
22028 msgid ""
22029 " lvcreate logvol volgroup mbytes\n"
22030 "\n"
22031 msgstr ""
22032
22033 # type: =head2
22034 #: ../fish/guestfish-actions.pod:2540
22035 msgid "lvm-canonical-lv-name"
22036 msgstr ""
22037
22038 # type: verbatim
22039 #: ../fish/guestfish-actions.pod:2542
22040 #, no-wrap
22041 msgid ""
22042 " lvm-canonical-lv-name lvname\n"
22043 "\n"
22044 msgstr ""
22045
22046 # type: textblock
22047 #: ../fish/guestfish-actions.pod:2551
22048 msgid "See also L</is-lv>."
22049 msgstr ""
22050
22051 # type: =head2
22052 #: ../fish/guestfish-actions.pod:2553
22053 msgid "lvm-clear-filter"
22054 msgstr ""
22055
22056 # type: verbatim
22057 #: ../fish/guestfish-actions.pod:2555
22058 #, no-wrap
22059 msgid ""
22060 " lvm-clear-filter\n"
22061 "\n"
22062 msgstr ""
22063
22064 # type: textblock
22065 #: ../fish/guestfish-actions.pod:2557
22066 msgid ""
22067 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
22068 "block device."
22069 msgstr ""
22070
22071 # type: =head2
22072 #: ../fish/guestfish-actions.pod:2563
22073 msgid "lvm-remove-all"
22074 msgstr ""
22075
22076 # type: verbatim
22077 #: ../fish/guestfish-actions.pod:2565
22078 #, no-wrap
22079 msgid ""
22080 " lvm-remove-all\n"
22081 "\n"
22082 msgstr ""
22083
22084 # type: =head2
22085 #: ../fish/guestfish-actions.pod:2573
22086 msgid "lvm-set-filter"
22087 msgstr ""
22088
22089 # type: verbatim
22090 #: ../fish/guestfish-actions.pod:2575
22091 #, no-wrap
22092 msgid ""
22093 " lvm-set-filter 'devices ...'\n"
22094 "\n"
22095 msgstr ""
22096
22097 # type: =head2
22098 #: ../fish/guestfish-actions.pod:2600
22099 msgid "lvremove"
22100 msgstr ""
22101
22102 # type: verbatim
22103 #: ../fish/guestfish-actions.pod:2602
22104 #, no-wrap
22105 msgid ""
22106 " lvremove device\n"
22107 "\n"
22108 msgstr ""
22109
22110 # type: =head2
22111 #: ../fish/guestfish-actions.pod:2610
22112 msgid "lvrename"
22113 msgstr ""
22114
22115 # type: verbatim
22116 #: ../fish/guestfish-actions.pod:2612
22117 #, no-wrap
22118 msgid ""
22119 " lvrename logvol newlogvol\n"
22120 "\n"
22121 msgstr ""
22122
22123 # type: =head2
22124 #: ../fish/guestfish-actions.pod:2616
22125 msgid "lvresize"
22126 msgstr ""
22127
22128 # type: verbatim
22129 #: ../fish/guestfish-actions.pod:2618
22130 #, no-wrap
22131 msgid ""
22132 " lvresize device mbytes\n"
22133 "\n"
22134 msgstr ""
22135
22136 # type: =head2
22137 #: ../fish/guestfish-actions.pod:2624
22138 msgid "lvresize-free"
22139 msgstr ""
22140
22141 # type: verbatim
22142 #: ../fish/guestfish-actions.pod:2626
22143 #, no-wrap
22144 msgid ""
22145 " lvresize-free lv percent\n"
22146 "\n"
22147 msgstr ""
22148
22149 # type: =head2
22150 #: ../fish/guestfish-actions.pod:2634
22151 msgid "lvs"
22152 msgstr ""
22153
22154 # type: verbatim
22155 #: ../fish/guestfish-actions.pod:2636
22156 #, no-wrap
22157 msgid ""
22158 " lvs\n"
22159 "\n"
22160 msgstr ""
22161
22162 # type: textblock
22163 #: ../fish/guestfish-actions.pod:2644
22164 msgid "See also L</lvs-full>, L</list-filesystems>."
22165 msgstr ""
22166
22167 # type: =head2
22168 #: ../fish/guestfish-actions.pod:2646
22169 msgid "lvs-full"
22170 msgstr ""
22171
22172 # type: verbatim
22173 #: ../fish/guestfish-actions.pod:2648
22174 #, no-wrap
22175 msgid ""
22176 " lvs-full\n"
22177 "\n"
22178 msgstr ""
22179
22180 # type: =head2
22181 #: ../fish/guestfish-actions.pod:2653
22182 msgid "lvuuid"
22183 msgstr ""
22184
22185 # type: verbatim
22186 #: ../fish/guestfish-actions.pod:2655
22187 #, no-wrap
22188 msgid ""
22189 " lvuuid device\n"
22190 "\n"
22191 msgstr ""
22192
22193 # type: =head2
22194 #: ../fish/guestfish-actions.pod:2659
22195 msgid "lxattrlist"
22196 msgstr ""
22197
22198 # type: verbatim
22199 #: ../fish/guestfish-actions.pod:2661
22200 #, no-wrap
22201 msgid ""
22202 " lxattrlist path 'names ...'\n"
22203 "\n"
22204 msgstr ""
22205
22206 # type: textblock
22207 #: ../fish/guestfish-actions.pod:2677
22208 msgid ""
22209 "This call is intended for programs that want to efficiently list a directory "
22210 "contents without making many round-trips.  See also L</lstatlist> for a "
22211 "similarly efficient call for getting standard stats.  Very long directory "
22212 "listings might cause the protocol message size to be exceeded, causing this "
22213 "call to fail.  The caller must split up such requests into smaller groups of "
22214 "names."
22215 msgstr ""
22216
22217 # type: =head2
22218 #: ../fish/guestfish-actions.pod:2685
22219 msgid "mkdir"
22220 msgstr ""
22221
22222 # type: verbatim
22223 #: ../fish/guestfish-actions.pod:2687
22224 #, no-wrap
22225 msgid ""
22226 " mkdir path\n"
22227 "\n"
22228 msgstr ""
22229
22230 # type: =head2
22231 #: ../fish/guestfish-actions.pod:2691
22232 msgid "mkdir-mode"
22233 msgstr ""
22234
22235 # type: verbatim
22236 #: ../fish/guestfish-actions.pod:2693
22237 #, no-wrap
22238 msgid ""
22239 " mkdir-mode path mode\n"
22240 "\n"
22241 msgstr ""
22242
22243 # type: textblock
22244 #: ../fish/guestfish-actions.pod:2702
22245 msgid "See also L</mkdir>, L</umask>"
22246 msgstr ""
22247
22248 # type: =head2
22249 #: ../fish/guestfish-actions.pod:2704
22250 msgid "mkdir-p"
22251 msgstr ""
22252
22253 # type: verbatim
22254 #: ../fish/guestfish-actions.pod:2706
22255 #, no-wrap
22256 msgid ""
22257 " mkdir-p path\n"
22258 "\n"
22259 msgstr ""
22260
22261 # type: =head2
22262 #: ../fish/guestfish-actions.pod:2711
22263 msgid "mkdtemp"
22264 msgstr ""
22265
22266 # type: verbatim
22267 #: ../fish/guestfish-actions.pod:2713
22268 #, no-wrap
22269 msgid ""
22270 " mkdtemp template\n"
22271 "\n"
22272 msgstr ""
22273
22274 # type: =head2
22275 #: ../fish/guestfish-actions.pod:2734
22276 msgid "mke2fs-J"
22277 msgstr ""
22278
22279 # type: verbatim
22280 #: ../fish/guestfish-actions.pod:2736
22281 #, no-wrap
22282 msgid ""
22283 " mke2fs-J fstype blocksize device journal\n"
22284 "\n"
22285 msgstr ""
22286
22287 # type: textblock
22288 #: ../fish/guestfish-actions.pod:2744
22289 msgid "See also L</mke2journal>."
22290 msgstr ""
22291
22292 # type: =head2
22293 #: ../fish/guestfish-actions.pod:2746
22294 msgid "mke2fs-JL"
22295 msgstr ""
22296
22297 # type: verbatim
22298 #: ../fish/guestfish-actions.pod:2748
22299 #, no-wrap
22300 msgid ""
22301 " mke2fs-JL fstype blocksize device label\n"
22302 "\n"
22303 msgstr ""
22304
22305 # type: textblock
22306 #: ../fish/guestfish-actions.pod:2753
22307 msgid "See also L</mke2journal-L>."
22308 msgstr ""
22309
22310 # type: =head2
22311 #: ../fish/guestfish-actions.pod:2755
22312 msgid "mke2fs-JU"
22313 msgstr ""
22314
22315 # type: verbatim
22316 #: ../fish/guestfish-actions.pod:2757
22317 #, no-wrap
22318 msgid ""
22319 " mke2fs-JU fstype blocksize device uuid\n"
22320 "\n"
22321 msgstr ""
22322
22323 # type: textblock
22324 #: ../fish/guestfish-actions.pod:2762
22325 msgid "See also L</mke2journal-U>."
22326 msgstr ""
22327
22328 # type: =head2
22329 #: ../fish/guestfish-actions.pod:2764
22330 msgid "mke2journal"
22331 msgstr ""
22332
22333 # type: verbatim
22334 #: ../fish/guestfish-actions.pod:2766
22335 #, no-wrap
22336 msgid ""
22337 " mke2journal blocksize device\n"
22338 "\n"
22339 msgstr ""
22340
22341 # type: =head2
22342 #: ../fish/guestfish-actions.pod:2773
22343 msgid "mke2journal-L"
22344 msgstr ""
22345
22346 # type: verbatim
22347 #: ../fish/guestfish-actions.pod:2775
22348 #, no-wrap
22349 msgid ""
22350 " mke2journal-L blocksize label device\n"
22351 "\n"
22352 msgstr ""
22353
22354 # type: =head2
22355 #: ../fish/guestfish-actions.pod:2779
22356 msgid "mke2journal-U"
22357 msgstr ""
22358
22359 # type: verbatim
22360 #: ../fish/guestfish-actions.pod:2781
22361 #, no-wrap
22362 msgid ""
22363 " mke2journal-U blocksize uuid device\n"
22364 "\n"
22365 msgstr ""
22366
22367 # type: =head2
22368 #: ../fish/guestfish-actions.pod:2785
22369 msgid "mkfifo"
22370 msgstr ""
22371
22372 # type: verbatim
22373 #: ../fish/guestfish-actions.pod:2787
22374 #, no-wrap
22375 msgid ""
22376 " mkfifo mode path\n"
22377 "\n"
22378 msgstr ""
22379
22380 # type: textblock
22381 #: ../fish/guestfish-actions.pod:2789
22382 msgid ""
22383 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
22384 "is just a convenient wrapper around L</mknod>."
22385 msgstr ""
22386
22387 # type: =head2
22388 #: ../fish/guestfish-actions.pod:2795
22389 msgid "mkfs"
22390 msgstr ""
22391
22392 # type: verbatim
22393 #: ../fish/guestfish-actions.pod:2797
22394 #, no-wrap
22395 msgid ""
22396 " mkfs fstype device\n"
22397 "\n"
22398 msgstr ""
22399
22400 # type: =head2
22401 #: ../fish/guestfish-actions.pod:2803
22402 msgid "mkfs-b"
22403 msgstr ""
22404
22405 # type: verbatim
22406 #: ../fish/guestfish-actions.pod:2805
22407 #, no-wrap
22408 msgid ""
22409 " mkfs-b fstype blocksize device\n"
22410 "\n"
22411 msgstr ""
22412
22413 # type: textblock
22414 #: ../fish/guestfish-actions.pod:2807
22415 msgid ""
22416 "This call is similar to L</mkfs>, but it allows you to control the block "
22417 "size of the resulting filesystem.  Supported block sizes depend on the "
22418 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
22419 msgstr ""
22420
22421 # type: =head2
22422 #: ../fish/guestfish-actions.pod:2822
22423 msgid "mkfs-opts"
22424 msgstr ""
22425
22426 # type: verbatim
22427 #: ../fish/guestfish-actions.pod:2824
22428 #, no-wrap
22429 msgid ""
22430 " mkfs-opts fstype device [blocksize:..]\n"
22431 "\n"
22432 msgstr ""
22433
22434 # type: =head2
22435 #: ../fish/guestfish-actions.pod:2846
22436 msgid "mkmountpoint"
22437 msgstr ""
22438
22439 # type: verbatim
22440 #: ../fish/guestfish-actions.pod:2848
22441 #, no-wrap
22442 msgid ""
22443 " mkmountpoint exemptpath\n"
22444 "\n"
22445 msgstr ""
22446
22447 # type: textblock
22448 #: ../fish/guestfish-actions.pod:2850
22449 msgid ""
22450 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
22451 "to create extra mountpoints before mounting the first filesystem."
22452 msgstr ""
22453
22454 # type: textblock
22455 #: ../fish/guestfish-actions.pod:2874
22456 msgid ""
22457 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
22458 "unexpected errors if you try to mix these calls.  It is safest to manually "
22459 "unmount filesystems and remove mountpoints after use."
22460 msgstr ""
22461
22462 # type: textblock
22463 #: ../fish/guestfish-actions.pod:2878
22464 msgid ""
22465 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
22466 "for this to work for manual mountpoints, you must ensure that the innermost "
22467 "mountpoints have the longest pathnames, as in the example code above."
22468 msgstr ""
22469
22470 # type: textblock
22471 #: ../fish/guestfish-actions.pod:2885
22472 msgid ""
22473 "Autosync [see L</set-autosync>, this is set by default on handles] means "
22474 "that L</umount-all> is called when the handle is closed which can also "
22475 "trigger these issues."
22476 msgstr ""
22477
22478 # type: =head2
22479 #: ../fish/guestfish-actions.pod:2889
22480 msgid "mknod"
22481 msgstr ""
22482
22483 # type: verbatim
22484 #: ../fish/guestfish-actions.pod:2891
22485 #, no-wrap
22486 msgid ""
22487 " mknod mode devmajor devminor path\n"
22488 "\n"
22489 msgstr ""
22490
22491 # type: textblock
22492 #: ../fish/guestfish-actions.pod:2901
22493 msgid ""
22494 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
22495 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
22496 "regular file).  These constants are available in the standard Linux header "
22497 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
22498 "wrappers around this command which bitwise OR in the appropriate constant "
22499 "for you."
22500 msgstr ""
22501
22502 # type: =head2
22503 #: ../fish/guestfish-actions.pod:2911
22504 msgid "mknod-b"
22505 msgstr ""
22506
22507 # type: verbatim
22508 #: ../fish/guestfish-actions.pod:2913
22509 #, no-wrap
22510 msgid ""
22511 " mknod-b mode devmajor devminor path\n"
22512 "\n"
22513 msgstr ""
22514
22515 # type: textblock
22516 #: ../fish/guestfish-actions.pod:2915
22517 msgid ""
22518 "This call creates a block device node called C<path> with mode C<mode> and "
22519 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
22520 "wrapper around L</mknod>."
22521 msgstr ""
22522
22523 # type: =head2
22524 #: ../fish/guestfish-actions.pod:2921
22525 msgid "mknod-c"
22526 msgstr ""
22527
22528 # type: verbatim
22529 #: ../fish/guestfish-actions.pod:2923
22530 #, no-wrap
22531 msgid ""
22532 " mknod-c mode devmajor devminor path\n"
22533 "\n"
22534 msgstr ""
22535
22536 # type: textblock
22537 #: ../fish/guestfish-actions.pod:2925
22538 msgid ""
22539 "This call creates a char device node called C<path> with mode C<mode> and "
22540 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
22541 "wrapper around L</mknod>."
22542 msgstr ""
22543
22544 # type: =head2
22545 #: ../fish/guestfish-actions.pod:2931
22546 msgid "mkswap"
22547 msgstr ""
22548
22549 # type: verbatim
22550 #: ../fish/guestfish-actions.pod:2933
22551 #, no-wrap
22552 msgid ""
22553 " mkswap device\n"
22554 "\n"
22555 msgstr ""
22556
22557 # type: =head2
22558 #: ../fish/guestfish-actions.pod:2937
22559 msgid "mkswap-L"
22560 msgstr ""
22561
22562 # type: verbatim
22563 #: ../fish/guestfish-actions.pod:2939
22564 #, no-wrap
22565 msgid ""
22566 " mkswap-L label device\n"
22567 "\n"
22568 msgstr ""
22569
22570 # type: =head2
22571 #: ../fish/guestfish-actions.pod:2947
22572 msgid "mkswap-U"
22573 msgstr ""
22574
22575 # type: verbatim
22576 #: ../fish/guestfish-actions.pod:2949
22577 #, no-wrap
22578 msgid ""
22579 " mkswap-U uuid device\n"
22580 "\n"
22581 msgstr ""
22582
22583 # type: =head2
22584 #: ../fish/guestfish-actions.pod:2953
22585 msgid "mkswap-file"
22586 msgstr ""
22587
22588 # type: verbatim
22589 #: ../fish/guestfish-actions.pod:2955
22590 #, no-wrap
22591 msgid ""
22592 " mkswap-file path\n"
22593 "\n"
22594 msgstr ""
22595
22596 # type: textblock
22597 #: ../fish/guestfish-actions.pod:2959
22598 msgid ""
22599 "This command just writes a swap file signature to an existing file.  To "
22600 "create the file itself, use something like L</fallocate>."
22601 msgstr ""
22602
22603 # type: =head2
22604 #: ../fish/guestfish-actions.pod:2962
22605 msgid "modprobe"
22606 msgstr ""
22607
22608 # type: verbatim
22609 #: ../fish/guestfish-actions.pod:2964
22610 #, no-wrap
22611 msgid ""
22612 " modprobe modulename\n"
22613 "\n"
22614 msgstr ""
22615
22616 # type: =head2
22617 #: ../fish/guestfish-actions.pod:2971
22618 msgid "mount"
22619 msgstr ""
22620
22621 # type: verbatim
22622 #: ../fish/guestfish-actions.pod:2973
22623 #, no-wrap
22624 msgid ""
22625 " mount device mountpoint\n"
22626 "\n"
22627 msgstr ""
22628
22629 # type: textblock
22630 #: ../fish/guestfish-actions.pod:2989
22631 msgid ""
22632 "B<Important note:> When you use this call, the filesystem options C<sync> "
22633 "and C<noatime> are set implicitly.  This was originally done because we "
22634 "thought it would improve reliability, but it turns out that I<-o sync> has a "
22635 "very large negative performance impact and negligible effect on "
22636 "reliability.  Therefore we recommend that you avoid using L</mount> in any "
22637 "code that needs performance, and instead use L</mount-options> (use an empty "
22638 "string for the first parameter if you don't want any options)."
22639 msgstr ""
22640
22641 # type: =head2
22642 #: ../fish/guestfish-actions.pod:2999
22643 msgid "mount-loop"
22644 msgstr ""
22645
22646 # type: verbatim
22647 #: ../fish/guestfish-actions.pod:3001
22648 #, no-wrap
22649 msgid ""
22650 " mount-loop file mountpoint\n"
22651 "\n"
22652 msgstr ""
22653
22654 # type: =head2
22655 #: ../fish/guestfish-actions.pod:3007
22656 msgid "mount-options"
22657 msgstr ""
22658
22659 # type: verbatim
22660 #: ../fish/guestfish-actions.pod:3009
22661 #, no-wrap
22662 msgid ""
22663 " mount-options options device mountpoint\n"
22664 "\n"
22665 msgstr ""
22666
22667 # type: textblock
22668 #: ../fish/guestfish-actions.pod:3011
22669 msgid ""
22670 "This is the same as the L</mount> command, but it allows you to set the "
22671 "mount options as for the L<mount(8)> I<-o> flag."
22672 msgstr ""
22673
22674 # type: =head2
22675 #: ../fish/guestfish-actions.pod:3019
22676 msgid "mount-ro"
22677 msgstr ""
22678
22679 # type: verbatim
22680 #: ../fish/guestfish-actions.pod:3021
22681 #, no-wrap
22682 msgid ""
22683 " mount-ro device mountpoint\n"
22684 "\n"
22685 msgstr ""
22686
22687 # type: textblock
22688 #: ../fish/guestfish-actions.pod:3023
22689 msgid ""
22690 "This is the same as the L</mount> command, but it mounts the filesystem with "
22691 "the read-only (I<-o ro>) flag."
22692 msgstr ""
22693
22694 # type: =head2
22695 #: ../fish/guestfish-actions.pod:3026
22696 msgid "mount-vfs"
22697 msgstr ""
22698
22699 # type: verbatim
22700 #: ../fish/guestfish-actions.pod:3028
22701 #, no-wrap
22702 msgid ""
22703 " mount-vfs options vfstype device mountpoint\n"
22704 "\n"
22705 msgstr ""
22706
22707 # type: textblock
22708 #: ../fish/guestfish-actions.pod:3030
22709 msgid ""
22710 "This is the same as the L</mount> command, but it allows you to set both the "
22711 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
22712 msgstr ""
22713
22714 # type: =head2
22715 #: ../fish/guestfish-actions.pod:3034
22716 msgid "mountpoints"
22717 msgstr ""
22718
22719 # type: verbatim
22720 #: ../fish/guestfish-actions.pod:3036
22721 #, no-wrap
22722 msgid ""
22723 " mountpoints\n"
22724 "\n"
22725 msgstr ""
22726
22727 # type: textblock
22728 #: ../fish/guestfish-actions.pod:3038
22729 msgid ""
22730 "This call is similar to L</mounts>.  That call returns a list of devices.  "
22731 "This one returns a hash table (map) of device name to directory where the "
22732 "device is mounted."
22733 msgstr ""
22734
22735 # type: =head2
22736 #: ../fish/guestfish-actions.pod:3042
22737 msgid "mounts"
22738 msgstr ""
22739
22740 # type: verbatim
22741 #: ../fish/guestfish-actions.pod:3044
22742 #, no-wrap
22743 msgid ""
22744 " mounts\n"
22745 "\n"
22746 msgstr ""
22747
22748 # type: textblock
22749 #: ../fish/guestfish-actions.pod:3051
22750 msgid "See also: L</mountpoints>"
22751 msgstr ""
22752
22753 # type: =head2
22754 #: ../fish/guestfish-actions.pod:3053
22755 msgid "mv"
22756 msgstr ""
22757
22758 # type: verbatim
22759 #: ../fish/guestfish-actions.pod:3055
22760 #, no-wrap
22761 msgid ""
22762 " mv src dest\n"
22763 "\n"
22764 msgstr ""
22765
22766 # type: =head2
22767 #: ../fish/guestfish-actions.pod:3060
22768 msgid "ntfs-3g-probe"
22769 msgstr ""
22770
22771 # type: verbatim
22772 #: ../fish/guestfish-actions.pod:3062
22773 #, no-wrap
22774 msgid ""
22775 " ntfs-3g-probe true|false device\n"
22776 "\n"
22777 msgstr ""
22778
22779 # type: =head2
22780 #: ../fish/guestfish-actions.pod:3076
22781 msgid "ntfsresize"
22782 msgstr ""
22783
22784 # type: verbatim
22785 #: ../fish/guestfish-actions.pod:3078
22786 #, no-wrap
22787 msgid ""
22788 " ntfsresize device\n"
22789 "\n"
22790 msgstr ""
22791
22792 # type: =head2
22793 #: ../fish/guestfish-actions.pod:3084
22794 msgid "ntfsresize-size"
22795 msgstr ""
22796
22797 # type: verbatim
22798 #: ../fish/guestfish-actions.pod:3086
22799 #, no-wrap
22800 msgid ""
22801 " ntfsresize-size device size\n"
22802 "\n"
22803 msgstr ""
22804
22805 # type: textblock
22806 #: ../fish/guestfish-actions.pod:3088
22807 msgid ""
22808 "This command is the same as L</ntfsresize> except that it allows you to "
22809 "specify the new size (in bytes) explicitly."
22810 msgstr ""
22811
22812 # type: =head2
22813 #: ../fish/guestfish-actions.pod:3091
22814 msgid "part-add"
22815 msgstr ""
22816
22817 # type: verbatim
22818 #: ../fish/guestfish-actions.pod:3093
22819 #, no-wrap
22820 msgid ""
22821 " part-add device prlogex startsect endsect\n"
22822 "\n"
22823 msgstr ""
22824
22825 # type: textblock
22826 #: ../fish/guestfish-actions.pod:3095
22827 msgid ""
22828 "This command adds a partition to C<device>.  If there is no partition table "
22829 "on the device, call L</part-init> first."
22830 msgstr ""
22831
22832 # type: textblock
22833 #: ../fish/guestfish-actions.pod:3107
22834 msgid ""
22835 "Creating a partition which covers the whole disk is not so easy.  Use "
22836 "L</part-disk> to do that."
22837 msgstr ""
22838
22839 # type: =head2
22840 #: ../fish/guestfish-actions.pod:3110
22841 msgid "part-del"
22842 msgstr ""
22843
22844 # type: verbatim
22845 #: ../fish/guestfish-actions.pod:3112
22846 #, no-wrap
22847 msgid ""
22848 " part-del device partnum\n"
22849 "\n"
22850 msgstr ""
22851
22852 # type: =head2
22853 #: ../fish/guestfish-actions.pod:3120
22854 msgid "part-disk"
22855 msgstr ""
22856
22857 # type: verbatim
22858 #: ../fish/guestfish-actions.pod:3122
22859 #, no-wrap
22860 msgid ""
22861 " part-disk device parttype\n"
22862 "\n"
22863 msgstr ""
22864
22865 # type: textblock
22866 #: ../fish/guestfish-actions.pod:3124
22867 msgid ""
22868 "This command is simply a combination of L</part-init> followed by "
22869 "L</part-add> to create a single primary partition covering the whole disk."
22870 msgstr ""
22871
22872 # type: textblock
22873 #: ../fish/guestfish-actions.pod:3128
22874 msgid ""
22875 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
22876 "possible values are described in L</part-init>."
22877 msgstr ""
22878
22879 # type: =head2
22880 #: ../fish/guestfish-actions.pod:3134
22881 msgid "part-get-bootable"
22882 msgstr ""
22883
22884 # type: verbatim
22885 #: ../fish/guestfish-actions.pod:3136
22886 #, no-wrap
22887 msgid ""
22888 " part-get-bootable device partnum\n"
22889 "\n"
22890 msgstr ""
22891
22892 # type: textblock
22893 #: ../fish/guestfish-actions.pod:3141
22894 msgid "See also L</part-set-bootable>."
22895 msgstr ""
22896
22897 # type: =head2
22898 #: ../fish/guestfish-actions.pod:3143
22899 msgid "part-get-mbr-id"
22900 msgstr ""
22901
22902 # type: verbatim
22903 #: ../fish/guestfish-actions.pod:3145
22904 #, no-wrap
22905 msgid ""
22906 " part-get-mbr-id device partnum\n"
22907 "\n"
22908 msgstr ""
22909
22910 # type: textblock
22911 #: ../fish/guestfish-actions.pod:3150 ../fish/guestfish-actions.pod:3288
22912 msgid ""
22913 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
22914 "undefined results for other partition table types (see "
22915 "L</part-get-parttype>)."
22916 msgstr ""
22917
22918 # type: =head2
22919 #: ../fish/guestfish-actions.pod:3154
22920 msgid "part-get-parttype"
22921 msgstr ""
22922
22923 # type: verbatim
22924 #: ../fish/guestfish-actions.pod:3156
22925 #, no-wrap
22926 msgid ""
22927 " part-get-parttype device\n"
22928 "\n"
22929 msgstr ""
22930
22931 # type: textblock
22932 #: ../fish/guestfish-actions.pod:3161
22933 msgid ""
22934 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
22935 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
22936 "possible, although unusual.  See L</part-init> for a full list."
22937 msgstr ""
22938
22939 # type: =head2
22940 #: ../fish/guestfish-actions.pod:3166
22941 msgid "part-init"
22942 msgstr ""
22943
22944 # type: verbatim
22945 #: ../fish/guestfish-actions.pod:3168
22946 #, no-wrap
22947 msgid ""
22948 " part-init device parttype\n"
22949 "\n"
22950 msgstr ""
22951
22952 # type: textblock
22953 #: ../fish/guestfish-actions.pod:3174
22954 msgid ""
22955 "Initially there are no partitions.  Following this, you should call "
22956 "L</part-add> for each partition required."
22957 msgstr ""
22958
22959 # type: =head2
22960 #: ../fish/guestfish-actions.pod:3237
22961 msgid "part-list"
22962 msgstr ""
22963
22964 # type: verbatim
22965 #: ../fish/guestfish-actions.pod:3239
22966 #, no-wrap
22967 msgid ""
22968 " part-list device\n"
22969 "\n"
22970 msgstr ""
22971
22972 # type: textblock
22973 #: ../fish/guestfish-actions.pod:3254
22974 msgid ""
22975 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
22976 "the device's sector size, see L</blockdev-getss>."
22977 msgstr ""
22978
22979 # type: =head2
22980 #: ../fish/guestfish-actions.pod:3267
22981 msgid "part-set-bootable"
22982 msgstr ""
22983
22984 # type: verbatim
22985 #: ../fish/guestfish-actions.pod:3269
22986 #, no-wrap
22987 msgid ""
22988 " part-set-bootable device partnum true|false\n"
22989 "\n"
22990 msgstr ""
22991
22992 # type: =head2
22993 #: ../fish/guestfish-actions.pod:3278
22994 msgid "part-set-mbr-id"
22995 msgstr ""
22996
22997 # type: verbatim
22998 #: ../fish/guestfish-actions.pod:3280
22999 #, no-wrap
23000 msgid ""
23001 " part-set-mbr-id device partnum idbyte\n"
23002 "\n"
23003 msgstr ""
23004
23005 # type: =head2
23006 #: ../fish/guestfish-actions.pod:3292
23007 msgid "part-set-name"
23008 msgstr ""
23009
23010 # type: verbatim
23011 #: ../fish/guestfish-actions.pod:3294
23012 #, no-wrap
23013 msgid ""
23014 " part-set-name device partnum name\n"
23015 "\n"
23016 msgstr ""
23017
23018 # type: =head2
23019 #: ../fish/guestfish-actions.pod:3302
23020 msgid "part-to-dev"
23021 msgstr ""
23022
23023 # type: verbatim
23024 #: ../fish/guestfish-actions.pod:3304
23025 #, no-wrap
23026 msgid ""
23027 " part-to-dev partition\n"
23028 "\n"
23029 msgstr ""
23030
23031 # type: textblock
23032 #: ../fish/guestfish-actions.pod:3310
23033 msgid ""
23034 "The named partition must exist, for example as a string returned from "
23035 "L</list-partitions>."
23036 msgstr ""
23037
23038 # type: =head2
23039 #: ../fish/guestfish-actions.pod:3313
23040 msgid "ping-daemon"
23041 msgstr ""
23042
23043 # type: verbatim
23044 #: ../fish/guestfish-actions.pod:3315
23045 #, no-wrap
23046 msgid ""
23047 " ping-daemon\n"
23048 "\n"
23049 msgstr ""
23050
23051 # type: =head2
23052 #: ../fish/guestfish-actions.pod:3322
23053 msgid "pread"
23054 msgstr ""
23055
23056 # type: verbatim
23057 #: ../fish/guestfish-actions.pod:3324
23058 #, no-wrap
23059 msgid ""
23060 " pread path count offset\n"
23061 "\n"
23062 msgstr ""
23063
23064 # type: textblock
23065 #: ../fish/guestfish-actions.pod:3332
23066 msgid "See also L</pwrite>, L</pread-device>."
23067 msgstr ""
23068
23069 # type: =head2
23070 #: ../fish/guestfish-actions.pod:3337
23071 msgid "pread-device"
23072 msgstr ""
23073
23074 # type: verbatim
23075 #: ../fish/guestfish-actions.pod:3339
23076 #, no-wrap
23077 msgid ""
23078 " pread-device device count offset\n"
23079 "\n"
23080 msgstr ""
23081
23082 # type: textblock
23083 #: ../fish/guestfish-actions.pod:3347
23084 msgid "See also L</pread>."
23085 msgstr ""
23086
23087 # type: =head2
23088 #: ../fish/guestfish-actions.pod:3352
23089 msgid "pvcreate"
23090 msgstr ""
23091
23092 # type: verbatim
23093 #: ../fish/guestfish-actions.pod:3354
23094 #, no-wrap
23095 msgid ""
23096 " pvcreate device\n"
23097 "\n"
23098 msgstr ""
23099
23100 # type: =head2
23101 #: ../fish/guestfish-actions.pod:3360
23102 msgid "pvremove"
23103 msgstr ""
23104
23105 # type: verbatim
23106 #: ../fish/guestfish-actions.pod:3362
23107 #, no-wrap
23108 msgid ""
23109 " pvremove device\n"
23110 "\n"
23111 msgstr ""
23112
23113 # type: =head2
23114 #: ../fish/guestfish-actions.pod:3371
23115 msgid "pvresize"
23116 msgstr ""
23117
23118 # type: verbatim
23119 #: ../fish/guestfish-actions.pod:3373
23120 #, no-wrap
23121 msgid ""
23122 " pvresize device\n"
23123 "\n"
23124 msgstr ""
23125
23126 # type: =head2
23127 #: ../fish/guestfish-actions.pod:3378
23128 msgid "pvresize-size"
23129 msgstr ""
23130
23131 # type: verbatim
23132 #: ../fish/guestfish-actions.pod:3380
23133 #, no-wrap
23134 msgid ""
23135 " pvresize-size device size\n"
23136 "\n"
23137 msgstr ""
23138
23139 # type: textblock
23140 #: ../fish/guestfish-actions.pod:3382
23141 msgid ""
23142 "This command is the same as L</pvresize> except that it allows you to "
23143 "specify the new size (in bytes) explicitly."
23144 msgstr ""
23145
23146 # type: =head2
23147 #: ../fish/guestfish-actions.pod:3385
23148 msgid "pvs"
23149 msgstr ""
23150
23151 # type: verbatim
23152 #: ../fish/guestfish-actions.pod:3387
23153 #, no-wrap
23154 msgid ""
23155 " pvs\n"
23156 "\n"
23157 msgstr ""
23158
23159 # type: textblock
23160 #: ../fish/guestfish-actions.pod:3395
23161 msgid "See also L</pvs-full>."
23162 msgstr ""
23163
23164 # type: =head2
23165 #: ../fish/guestfish-actions.pod:3397
23166 msgid "pvs-full"
23167 msgstr ""
23168
23169 # type: verbatim
23170 #: ../fish/guestfish-actions.pod:3399
23171 #, no-wrap
23172 msgid ""
23173 " pvs-full\n"
23174 "\n"
23175 msgstr ""
23176
23177 # type: =head2
23178 #: ../fish/guestfish-actions.pod:3404
23179 msgid "pvuuid"
23180 msgstr ""
23181
23182 # type: verbatim
23183 #: ../fish/guestfish-actions.pod:3406
23184 #, no-wrap
23185 msgid ""
23186 " pvuuid device\n"
23187 "\n"
23188 msgstr ""
23189
23190 # type: =head2
23191 #: ../fish/guestfish-actions.pod:3410
23192 msgid "pwrite"
23193 msgstr ""
23194
23195 # type: verbatim
23196 #: ../fish/guestfish-actions.pod:3412
23197 #, no-wrap
23198 msgid ""
23199 " pwrite path content offset\n"
23200 "\n"
23201 msgstr ""
23202
23203 # type: textblock
23204 #: ../fish/guestfish-actions.pod:3423
23205 msgid "See also L</pread>, L</pwrite-device>."
23206 msgstr ""
23207
23208 # type: =head2
23209 #: ../fish/guestfish-actions.pod:3428
23210 msgid "pwrite-device"
23211 msgstr ""
23212
23213 # type: verbatim
23214 #: ../fish/guestfish-actions.pod:3430
23215 #, no-wrap
23216 msgid ""
23217 " pwrite-device device content offset\n"
23218 "\n"
23219 msgstr ""
23220
23221 # type: textblock
23222 #: ../fish/guestfish-actions.pod:3440
23223 msgid "See also L</pwrite>."
23224 msgstr ""
23225
23226 # type: =head2
23227 #: ../fish/guestfish-actions.pod:3445
23228 msgid "read-file"
23229 msgstr ""
23230
23231 # type: verbatim
23232 #: ../fish/guestfish-actions.pod:3447
23233 #, no-wrap
23234 msgid ""
23235 " read-file path\n"
23236 "\n"
23237 msgstr ""
23238
23239 # type: textblock
23240 #: ../fish/guestfish-actions.pod:3452
23241 msgid ""
23242 "Unlike L</cat>, this function can correctly handle files that contain "
23243 "embedded ASCII NUL characters.  However unlike L</download>, this function "
23244 "is limited in the total size of file that can be handled."
23245 msgstr ""
23246
23247 # type: =head2
23248 #: ../fish/guestfish-actions.pod:3460
23249 msgid "read-lines"
23250 msgstr ""
23251
23252 # type: verbatim
23253 #: ../fish/guestfish-actions.pod:3462
23254 #, no-wrap
23255 msgid ""
23256 " read-lines path\n"
23257 "\n"
23258 msgstr ""
23259
23260 # type: textblock
23261 #: ../fish/guestfish-actions.pod:3469
23262 msgid ""
23263 "Note that this function cannot correctly handle binary files (specifically, "
23264 "files containing C<\\0> character which is treated as end of line).  For "
23265 "those you need to use the L</read-file> function which has a more complex "
23266 "interface."
23267 msgstr ""
23268
23269 # type: =head2
23270 #: ../fish/guestfish-actions.pod:3474
23271 msgid "readdir"
23272 msgstr ""
23273
23274 # type: verbatim
23275 #: ../fish/guestfish-actions.pod:3476
23276 #, no-wrap
23277 msgid ""
23278 " readdir dir\n"
23279 "\n"
23280 msgstr ""
23281
23282 # type: textblock
23283 #: ../fish/guestfish-actions.pod:3528
23284 msgid ""
23285 "This function is primarily intended for use by programs.  To get a simple "
23286 "list of names, use L</ls>.  To get a printable directory for human "
23287 "consumption, use L</ll>."
23288 msgstr ""
23289
23290 # type: =head2
23291 #: ../fish/guestfish-actions.pod:3532
23292 msgid "readlink"
23293 msgstr ""
23294
23295 # type: verbatim
23296 #: ../fish/guestfish-actions.pod:3534
23297 #, no-wrap
23298 msgid ""
23299 " readlink path\n"
23300 "\n"
23301 msgstr ""
23302
23303 # type: =head2
23304 #: ../fish/guestfish-actions.pod:3538
23305 msgid "readlinklist"
23306 msgstr ""
23307
23308 # type: verbatim
23309 #: ../fish/guestfish-actions.pod:3540
23310 #, no-wrap
23311 msgid ""
23312 " readlinklist path 'names ...'\n"
23313 "\n"
23314 msgstr ""
23315
23316 # type: =head2
23317 #: ../fish/guestfish-actions.pod:3564
23318 msgid "realpath"
23319 msgstr ""
23320
23321 # type: verbatim
23322 #: ../fish/guestfish-actions.pod:3566
23323 #, no-wrap
23324 msgid ""
23325 " realpath path\n"
23326 "\n"
23327 msgstr ""
23328
23329 # type: =head2
23330 #: ../fish/guestfish-actions.pod:3571
23331 msgid "removexattr"
23332 msgstr ""
23333
23334 # type: verbatim
23335 #: ../fish/guestfish-actions.pod:3573
23336 #, no-wrap
23337 msgid ""
23338 " removexattr xattr path\n"
23339 "\n"
23340 msgstr ""
23341
23342 # type: textblock
23343 #: ../fish/guestfish-actions.pod:3578
23344 msgid "See also: L</lremovexattr>, L<attr(5)>."
23345 msgstr ""
23346
23347 # type: =head2
23348 #: ../fish/guestfish-actions.pod:3580
23349 msgid "resize2fs"
23350 msgstr ""
23351
23352 # type: verbatim
23353 #: ../fish/guestfish-actions.pod:3582
23354 #, no-wrap
23355 msgid ""
23356 " resize2fs device\n"
23357 "\n"
23358 msgstr ""
23359
23360 # type: textblock
23361 #: ../fish/guestfish-actions.pod:3587
23362 msgid ""
23363 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
23364 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
23365 "gives an error about this and sometimes not.  In any case, it is always safe "
23366 "to call L</e2fsck-f> before calling this function."
23367 msgstr ""
23368
23369 # type: =head2
23370 #: ../fish/guestfish-actions.pod:3593
23371 msgid "resize2fs-size"
23372 msgstr ""
23373
23374 # type: verbatim
23375 #: ../fish/guestfish-actions.pod:3595
23376 #, no-wrap
23377 msgid ""
23378 " resize2fs-size device size\n"
23379 "\n"
23380 msgstr ""
23381
23382 # type: textblock
23383 #: ../fish/guestfish-actions.pod:3597
23384 msgid ""
23385 "This command is the same as L</resize2fs> except that it allows you to "
23386 "specify the new size (in bytes) explicitly."
23387 msgstr ""
23388
23389 # type: =head2
23390 #: ../fish/guestfish-actions.pod:3600
23391 msgid "rm"
23392 msgstr ""
23393
23394 # type: verbatim
23395 #: ../fish/guestfish-actions.pod:3602
23396 #, no-wrap
23397 msgid ""
23398 " rm path\n"
23399 "\n"
23400 msgstr ""
23401
23402 # type: =head2
23403 #: ../fish/guestfish-actions.pod:3606
23404 msgid "rm-rf"
23405 msgstr ""
23406
23407 # type: verbatim
23408 #: ../fish/guestfish-actions.pod:3608
23409 #, no-wrap
23410 msgid ""
23411 " rm-rf path\n"
23412 "\n"
23413 msgstr ""
23414
23415 # type: =head2
23416 #: ../fish/guestfish-actions.pod:3614
23417 msgid "rmdir"
23418 msgstr ""
23419
23420 # type: verbatim
23421 #: ../fish/guestfish-actions.pod:3616
23422 #, no-wrap
23423 msgid ""
23424 " rmdir path\n"
23425 "\n"
23426 msgstr ""
23427
23428 # type: =head2
23429 #: ../fish/guestfish-actions.pod:3620
23430 msgid "rmmountpoint"
23431 msgstr ""
23432
23433 # type: verbatim
23434 #: ../fish/guestfish-actions.pod:3622
23435 #, no-wrap
23436 msgid ""
23437 " rmmountpoint exemptpath\n"
23438 "\n"
23439 msgstr ""
23440
23441 # type: textblock
23442 #: ../fish/guestfish-actions.pod:3624
23443 msgid ""
23444 "This calls removes a mountpoint that was previously created with "
23445 "L</mkmountpoint>.  See L</mkmountpoint> for full details."
23446 msgstr ""
23447
23448 # type: =head2
23449 #: ../fish/guestfish-actions.pod:3628
23450 msgid "scrub-device"
23451 msgstr ""
23452
23453 # type: verbatim
23454 #: ../fish/guestfish-actions.pod:3630
23455 #, no-wrap
23456 msgid ""
23457 " scrub-device device\n"
23458 "\n"
23459 msgstr ""
23460
23461 # type: =head2
23462 #: ../fish/guestfish-actions.pod:3641
23463 msgid "scrub-file"
23464 msgstr ""
23465
23466 # type: verbatim
23467 #: ../fish/guestfish-actions.pod:3643
23468 #, no-wrap
23469 msgid ""
23470 " scrub-file file\n"
23471 "\n"
23472 msgstr ""
23473
23474 # type: =head2
23475 #: ../fish/guestfish-actions.pod:3653
23476 msgid "scrub-freespace"
23477 msgstr ""
23478
23479 # type: verbatim
23480 #: ../fish/guestfish-actions.pod:3655
23481 #, no-wrap
23482 msgid ""
23483 " scrub-freespace dir\n"
23484 "\n"
23485 msgstr ""
23486
23487 # type: textblock
23488 #: ../fish/guestfish-actions.pod:3657
23489 msgid ""
23490 "This command creates the directory C<dir> and then fills it with files until "
23491 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
23492 "deletes them.  The intention is to scrub any free space on the partition "
23493 "containing C<dir>."
23494 msgstr ""
23495
23496 # type: =head2
23497 #: ../fish/guestfish-actions.pod:3666
23498 msgid "set-append"
23499 msgstr ""
23500
23501 # type: =head2
23502 #: ../fish/guestfish-actions.pod:3668
23503 msgid "append"
23504 msgstr ""
23505
23506 # type: verbatim
23507 #: ../fish/guestfish-actions.pod:3670
23508 #, no-wrap
23509 msgid ""
23510 " set-append append\n"
23511 "\n"
23512 msgstr ""
23513
23514 # type: =head2
23515 #: ../fish/guestfish-actions.pod:3681
23516 msgid "set-autosync"
23517 msgstr ""
23518
23519 # type: =head2
23520 #: ../fish/guestfish-actions.pod:3683
23521 msgid "autosync"
23522 msgstr ""
23523
23524 # type: verbatim
23525 #: ../fish/guestfish-actions.pod:3685
23526 #, no-wrap
23527 msgid ""
23528 " set-autosync true|false\n"
23529 "\n"
23530 msgstr ""
23531
23532 # type: textblock
23533 #: ../fish/guestfish-actions.pod:3687
23534 msgid ""
23535 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
23536 "effort attempt to run L</umount-all> followed by L</sync> when the handle is "
23537 "closed (also if the program exits without closing handles)."
23538 msgstr ""
23539
23540 # type: =head2
23541 #: ../fish/guestfish-actions.pod:3695
23542 msgid "set-direct"
23543 msgstr ""
23544
23545 # type: =head2
23546 #: ../fish/guestfish-actions.pod:3697
23547 msgid "direct"
23548 msgstr ""
23549
23550 # type: verbatim
23551 #: ../fish/guestfish-actions.pod:3699
23552 #, no-wrap
23553 msgid ""
23554 " set-direct true|false\n"
23555 "\n"
23556 msgstr ""
23557
23558 # type: textblock
23559 #: ../fish/guestfish-actions.pod:3705
23560 msgid ""
23561 "One consequence of this is that log messages aren't caught by the library "
23562 "and handled by L</set-log-message-callback>, but go straight to stdout."
23563 msgstr ""
23564
23565 # type: =head2
23566 #: ../fish/guestfish-actions.pod:3714
23567 msgid "set-e2label"
23568 msgstr ""
23569
23570 # type: verbatim
23571 #: ../fish/guestfish-actions.pod:3716
23572 #, no-wrap
23573 msgid ""
23574 " set-e2label device label\n"
23575 "\n"
23576 msgstr ""
23577
23578 # type: textblock
23579 #: ../fish/guestfish-actions.pod:3722
23580 msgid ""
23581 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
23582 "label on a filesystem."
23583 msgstr ""
23584
23585 # type: =head2
23586 #: ../fish/guestfish-actions.pod:3725
23587 msgid "set-e2uuid"
23588 msgstr ""
23589
23590 # type: verbatim
23591 #: ../fish/guestfish-actions.pod:3727
23592 #, no-wrap
23593 msgid ""
23594 " set-e2uuid device uuid\n"
23595 "\n"
23596 msgstr ""
23597
23598 # type: textblock
23599 #: ../fish/guestfish-actions.pod:3734
23600 msgid ""
23601 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
23602 "UUID of a filesystem."
23603 msgstr ""
23604
23605 # type: =head2
23606 #: ../fish/guestfish-actions.pod:3737
23607 msgid "set-memsize"
23608 msgstr ""
23609
23610 # type: =head2
23611 #: ../fish/guestfish-actions.pod:3739
23612 msgid "memsize"
23613 msgstr ""
23614
23615 # type: verbatim
23616 #: ../fish/guestfish-actions.pod:3741
23617 #, no-wrap
23618 msgid ""
23619 " set-memsize memsize\n"
23620 "\n"
23621 msgstr ""
23622
23623 # type: textblock
23624 #: ../fish/guestfish-actions.pod:3743
23625 msgid ""
23626 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
23627 "This only has any effect if called before L</launch>."
23628 msgstr ""
23629
23630 # type: =head2
23631 #: ../fish/guestfish-actions.pod:3754
23632 msgid "set-network"
23633 msgstr ""
23634
23635 # type: =head2
23636 #: ../fish/guestfish-actions.pod:3756
23637 msgid "network"
23638 msgstr ""
23639
23640 # type: verbatim
23641 #: ../fish/guestfish-actions.pod:3758
23642 #, no-wrap
23643 msgid ""
23644 " set-network true|false\n"
23645 "\n"
23646 msgstr ""
23647
23648 # type: textblock
23649 #: ../fish/guestfish-actions.pod:3766
23650 msgid "You must call this before calling L</launch>, otherwise it has no effect."
23651 msgstr ""
23652
23653 # type: =head2
23654 #: ../fish/guestfish-actions.pod:3769
23655 msgid "set-path"
23656 msgstr ""
23657
23658 # type: =head2
23659 #: ../fish/guestfish-actions.pod:3771
23660 msgid "path"
23661 msgstr ""
23662
23663 # type: verbatim
23664 #: ../fish/guestfish-actions.pod:3773
23665 #, no-wrap
23666 msgid ""
23667 " set-path searchpath\n"
23668 "\n"
23669 msgstr ""
23670
23671 # type: =head2
23672 #: ../fish/guestfish-actions.pod:3782
23673 msgid "set-qemu"
23674 msgstr ""
23675
23676 # type: =head2
23677 #: ../fish/guestfish-actions.pod:3784
23678 msgid "qemu"
23679 msgstr ""
23680
23681 # type: verbatim
23682 #: ../fish/guestfish-actions.pod:3786
23683 #, no-wrap
23684 msgid ""
23685 " set-qemu qemu\n"
23686 "\n"
23687 msgstr ""
23688
23689 # type: =head2
23690 #: ../fish/guestfish-actions.pod:3806
23691 msgid "set-recovery-proc"
23692 msgstr ""
23693
23694 # type: =head2
23695 #: ../fish/guestfish-actions.pod:3808
23696 msgid "recovery-proc"
23697 msgstr ""
23698
23699 # type: verbatim
23700 #: ../fish/guestfish-actions.pod:3810
23701 #, no-wrap
23702 msgid ""
23703 " set-recovery-proc true|false\n"
23704 "\n"
23705 msgstr ""
23706
23707 # type: textblock
23708 #: ../fish/guestfish-actions.pod:3812
23709 msgid ""
23710 "If this is called with the parameter C<false> then L</launch> does not "
23711 "create a recovery process.  The purpose of the recovery process is to stop "
23712 "runaway qemu processes in the case where the main program aborts abruptly."
23713 msgstr ""
23714
23715 # type: textblock
23716 #: ../fish/guestfish-actions.pod:3817
23717 msgid ""
23718 "This only has any effect if called before L</launch>, and the default is "
23719 "true."
23720 msgstr ""
23721
23722 # type: =head2
23723 #: ../fish/guestfish-actions.pod:3826
23724 msgid "set-selinux"
23725 msgstr ""
23726
23727 # type: =head2
23728 #: ../fish/guestfish-actions.pod:3828
23729 msgid "selinux"
23730 msgstr ""
23731
23732 # type: verbatim
23733 #: ../fish/guestfish-actions.pod:3830
23734 #, no-wrap
23735 msgid ""
23736 " set-selinux true|false\n"
23737 "\n"
23738 msgstr ""
23739
23740 # type: =head2
23741 #: ../fish/guestfish-actions.pod:3841
23742 msgid "set-trace"
23743 msgstr ""
23744
23745 # type: =head2
23746 #: ../fish/guestfish-actions.pod:3843
23747 msgid "trace"
23748 msgstr ""
23749
23750 # type: verbatim
23751 #: ../fish/guestfish-actions.pod:3845
23752 #, no-wrap
23753 msgid ""
23754 " set-trace true|false\n"
23755 "\n"
23756 msgstr ""
23757
23758 # type: =head2
23759 #: ../fish/guestfish-actions.pod:3861
23760 msgid "set-verbose"
23761 msgstr ""
23762
23763 # type: =head2
23764 #: ../fish/guestfish-actions.pod:3863
23765 msgid "verbose"
23766 msgstr ""
23767
23768 # type: verbatim
23769 #: ../fish/guestfish-actions.pod:3865
23770 #, no-wrap
23771 msgid ""
23772 " set-verbose true|false\n"
23773 "\n"
23774 msgstr ""
23775
23776 # type: =head2
23777 #: ../fish/guestfish-actions.pod:3872
23778 msgid "setcon"
23779 msgstr ""
23780
23781 # type: verbatim
23782 #: ../fish/guestfish-actions.pod:3874
23783 #, no-wrap
23784 msgid ""
23785 " setcon context\n"
23786 "\n"
23787 msgstr ""
23788
23789 # type: =head2
23790 #: ../fish/guestfish-actions.pod:3881
23791 msgid "setxattr"
23792 msgstr ""
23793
23794 # type: verbatim
23795 #: ../fish/guestfish-actions.pod:3883
23796 #, no-wrap
23797 msgid ""
23798 " setxattr xattr val vallen path\n"
23799 "\n"
23800 msgstr ""
23801
23802 # type: textblock
23803 #: ../fish/guestfish-actions.pod:3889
23804 msgid "See also: L</lsetxattr>, L<attr(5)>."
23805 msgstr ""
23806
23807 # type: =head2
23808 #: ../fish/guestfish-actions.pod:3891
23809 msgid "sfdisk"
23810 msgstr ""
23811
23812 # type: verbatim
23813 #: ../fish/guestfish-actions.pod:3893
23814 #, no-wrap
23815 msgid ""
23816 " sfdisk device cyls heads sectors 'lines ...'\n"
23817 "\n"
23818 msgstr ""
23819
23820 # type: textblock
23821 #: ../fish/guestfish-actions.pod:3915
23822 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
23823 msgstr ""
23824
23825 # type: =head2
23826 #: ../fish/guestfish-actions.pod:3921
23827 msgid "sfdiskM"
23828 msgstr ""
23829
23830 # type: verbatim
23831 #: ../fish/guestfish-actions.pod:3923
23832 #, no-wrap
23833 msgid ""
23834 " sfdiskM device 'lines ...'\n"
23835 "\n"
23836 msgstr ""
23837
23838 # type: textblock
23839 #: ../fish/guestfish-actions.pod:3925
23840 msgid ""
23841 "This is a simplified interface to the L</sfdisk> command, where partition "
23842 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
23843 "you don't need to specify the cyls, heads and sectors parameters which were "
23844 "rarely if ever used anyway."
23845 msgstr ""
23846
23847 # type: textblock
23848 #: ../fish/guestfish-actions.pod:3931
23849 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
23850 msgstr ""
23851
23852 # type: =head2
23853 #: ../fish/guestfish-actions.pod:3937
23854 msgid "sfdisk-N"
23855 msgstr ""
23856
23857 # type: verbatim
23858 #: ../fish/guestfish-actions.pod:3939
23859 #, no-wrap
23860 msgid ""
23861 " sfdisk-N device partnum cyls heads sectors line\n"
23862 "\n"
23863 msgstr ""
23864
23865 # type: textblock
23866 #: ../fish/guestfish-actions.pod:3944
23867 msgid ""
23868 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
23869 "cyls/heads/sectors parameters."
23870 msgstr ""
23871
23872 # type: textblock
23873 #: ../fish/guestfish-actions.pod:3947
23874 msgid "See also: L</part-add>"
23875 msgstr ""
23876
23877 # type: =head2
23878 #: ../fish/guestfish-actions.pod:3952
23879 msgid "sfdisk-disk-geometry"
23880 msgstr ""
23881
23882 # type: verbatim
23883 #: ../fish/guestfish-actions.pod:3954
23884 #, no-wrap
23885 msgid ""
23886 " sfdisk-disk-geometry device\n"
23887 "\n"
23888 msgstr ""
23889
23890 # type: textblock
23891 #: ../fish/guestfish-actions.pod:3956
23892 msgid ""
23893 "This displays the disk geometry of C<device> read from the partition table.  "
23894 "Especially in the case where the underlying block device has been resized, "
23895 "this can be different from the kernel's idea of the geometry (see "
23896 "L</sfdisk-kernel-geometry>)."
23897 msgstr ""
23898
23899 # type: =head2
23900 #: ../fish/guestfish-actions.pod:3964
23901 msgid "sfdisk-kernel-geometry"
23902 msgstr ""
23903
23904 # type: verbatim
23905 #: ../fish/guestfish-actions.pod:3966
23906 #, no-wrap
23907 msgid ""
23908 " sfdisk-kernel-geometry device\n"
23909 "\n"
23910 msgstr ""
23911
23912 # type: =head2
23913 #: ../fish/guestfish-actions.pod:3973
23914 msgid "sfdisk-l"
23915 msgstr ""
23916
23917 # type: verbatim
23918 #: ../fish/guestfish-actions.pod:3975
23919 #, no-wrap
23920 msgid ""
23921 " sfdisk-l device\n"
23922 "\n"
23923 msgstr ""
23924
23925 # type: textblock
23926 #: ../fish/guestfish-actions.pod:3981
23927 msgid "See also: L</part-list>"
23928 msgstr ""
23929
23930 # type: =head2
23931 #: ../fish/guestfish-actions.pod:3983
23932 msgid "sh"
23933 msgstr ""
23934
23935 # type: verbatim
23936 #: ../fish/guestfish-actions.pod:3985
23937 #, no-wrap
23938 msgid ""
23939 " sh command\n"
23940 "\n"
23941 msgstr ""
23942
23943 # type: textblock
23944 #: ../fish/guestfish-actions.pod:3990
23945 msgid "This is like L</command>, but passes the command to:"
23946 msgstr ""
23947
23948 # type: textblock
23949 #: ../fish/guestfish-actions.pod:3998
23950 msgid "All the provisos about L</command> apply to this call."
23951 msgstr ""
23952
23953 # type: =head2
23954 #: ../fish/guestfish-actions.pod:4000
23955 msgid "sh-lines"
23956 msgstr ""
23957
23958 # type: verbatim
23959 #: ../fish/guestfish-actions.pod:4002
23960 #, no-wrap
23961 msgid ""
23962 " sh-lines command\n"
23963 "\n"
23964 msgstr ""
23965
23966 # type: textblock
23967 #: ../fish/guestfish-actions.pod:4004
23968 msgid "This is the same as L</sh>, but splits the result into a list of lines."
23969 msgstr ""
23970
23971 # type: textblock
23972 #: ../fish/guestfish-actions.pod:4007
23973 msgid "See also: L</command-lines>"
23974 msgstr ""
23975
23976 # type: =head2
23977 #: ../fish/guestfish-actions.pod:4009
23978 msgid "sleep"
23979 msgstr ""
23980
23981 # type: verbatim
23982 #: ../fish/guestfish-actions.pod:4011
23983 #, no-wrap
23984 msgid ""
23985 " sleep secs\n"
23986 "\n"
23987 msgstr ""
23988
23989 # type: =head2
23990 #: ../fish/guestfish-actions.pod:4015
23991 msgid "stat"
23992 msgstr ""
23993
23994 # type: verbatim
23995 #: ../fish/guestfish-actions.pod:4017
23996 #, no-wrap
23997 msgid ""
23998 " stat path\n"
23999 "\n"
24000 msgstr ""
24001
24002 # type: =head2
24003 #: ../fish/guestfish-actions.pod:4023
24004 msgid "statvfs"
24005 msgstr ""
24006
24007 # type: verbatim
24008 #: ../fish/guestfish-actions.pod:4025
24009 #, no-wrap
24010 msgid ""
24011 " statvfs path\n"
24012 "\n"
24013 msgstr ""
24014
24015 # type: =head2
24016 #: ../fish/guestfish-actions.pod:4033
24017 msgid "strings"
24018 msgstr ""
24019
24020 # type: verbatim
24021 #: ../fish/guestfish-actions.pod:4035
24022 #, no-wrap
24023 msgid ""
24024 " strings path\n"
24025 "\n"
24026 msgstr ""
24027
24028 # type: =head2
24029 #: ../fish/guestfish-actions.pod:4043
24030 msgid "strings-e"
24031 msgstr ""
24032
24033 # type: verbatim
24034 #: ../fish/guestfish-actions.pod:4045
24035 #, no-wrap
24036 msgid ""
24037 " strings-e encoding path\n"
24038 "\n"
24039 msgstr ""
24040
24041 # type: textblock
24042 #: ../fish/guestfish-actions.pod:4047
24043 msgid ""
24044 "This is like the L</strings> command, but allows you to specify the encoding "
24045 "of strings that are looked for in the source file C<path>."
24046 msgstr ""
24047
24048 # type: textblock
24049 #: ../fish/guestfish-actions.pod:4057
24050 msgid ""
24051 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
24052 "ISO-8859-X (this is what L</strings> uses)."
24053 msgstr ""
24054
24055 # type: =head2
24056 #: ../fish/guestfish-actions.pod:4089
24057 msgid "swapoff-device"
24058 msgstr ""
24059
24060 # type: verbatim
24061 #: ../fish/guestfish-actions.pod:4091
24062 #, no-wrap
24063 msgid ""
24064 " swapoff-device device\n"
24065 "\n"
24066 msgstr ""
24067
24068 # type: textblock
24069 #: ../fish/guestfish-actions.pod:4093
24070 msgid ""
24071 "This command disables the libguestfs appliance swap device or partition "
24072 "named C<device>.  See L</swapon-device>."
24073 msgstr ""
24074
24075 # type: =head2
24076 #: ../fish/guestfish-actions.pod:4097
24077 msgid "swapoff-file"
24078 msgstr ""
24079
24080 # type: verbatim
24081 #: ../fish/guestfish-actions.pod:4099
24082 #, no-wrap
24083 msgid ""
24084 " swapoff-file file\n"
24085 "\n"
24086 msgstr ""
24087
24088 # type: =head2
24089 #: ../fish/guestfish-actions.pod:4103
24090 msgid "swapoff-label"
24091 msgstr ""
24092
24093 # type: verbatim
24094 #: ../fish/guestfish-actions.pod:4105
24095 #, no-wrap
24096 msgid ""
24097 " swapoff-label label\n"
24098 "\n"
24099 msgstr ""
24100
24101 # type: =head2
24102 #: ../fish/guestfish-actions.pod:4110
24103 msgid "swapoff-uuid"
24104 msgstr ""
24105
24106 # type: verbatim
24107 #: ../fish/guestfish-actions.pod:4112
24108 #, no-wrap
24109 msgid ""
24110 " swapoff-uuid uuid\n"
24111 "\n"
24112 msgstr ""
24113
24114 # type: =head2
24115 #: ../fish/guestfish-actions.pod:4117
24116 msgid "swapon-device"
24117 msgstr ""
24118
24119 # type: verbatim
24120 #: ../fish/guestfish-actions.pod:4119
24121 #, no-wrap
24122 msgid ""
24123 " swapon-device device\n"
24124 "\n"
24125 msgstr ""
24126
24127 # type: textblock
24128 #: ../fish/guestfish-actions.pod:4121
24129 msgid ""
24130 "This command enables the libguestfs appliance to use the swap device or "
24131 "partition named C<device>.  The increased memory is made available for all "
24132 "commands, for example those run using L</command> or L</sh>."
24133 msgstr ""
24134
24135 # type: =head2
24136 #: ../fish/guestfish-actions.pod:4133
24137 msgid "swapon-file"
24138 msgstr ""
24139
24140 # type: verbatim
24141 #: ../fish/guestfish-actions.pod:4135
24142 #, no-wrap
24143 msgid ""
24144 " swapon-file file\n"
24145 "\n"
24146 msgstr ""
24147
24148 # type: textblock
24149 #: ../fish/guestfish-actions.pod:4137
24150 msgid "This command enables swap to a file.  See L</swapon-device> for other notes."
24151 msgstr ""
24152
24153 # type: =head2
24154 #: ../fish/guestfish-actions.pod:4140
24155 msgid "swapon-label"
24156 msgstr ""
24157
24158 # type: verbatim
24159 #: ../fish/guestfish-actions.pod:4142
24160 #, no-wrap
24161 msgid ""
24162 " swapon-label label\n"
24163 "\n"
24164 msgstr ""
24165
24166 # type: textblock
24167 #: ../fish/guestfish-actions.pod:4144
24168 msgid ""
24169 "This command enables swap to a labeled swap partition.  See "
24170 "L</swapon-device> for other notes."
24171 msgstr ""
24172
24173 # type: =head2
24174 #: ../fish/guestfish-actions.pod:4147
24175 msgid "swapon-uuid"
24176 msgstr ""
24177
24178 # type: verbatim
24179 #: ../fish/guestfish-actions.pod:4149
24180 #, no-wrap
24181 msgid ""
24182 " swapon-uuid uuid\n"
24183 "\n"
24184 msgstr ""
24185
24186 # type: textblock
24187 #: ../fish/guestfish-actions.pod:4151
24188 msgid ""
24189 "This command enables swap to a swap partition with the given UUID.  See "
24190 "L</swapon-device> for other notes."
24191 msgstr ""
24192
24193 # type: =head2
24194 #: ../fish/guestfish-actions.pod:4154
24195 msgid "sync"
24196 msgstr ""
24197
24198 # type: verbatim
24199 #: ../fish/guestfish-actions.pod:4156
24200 #, no-wrap
24201 msgid ""
24202 " sync\n"
24203 "\n"
24204 msgstr ""
24205
24206 # type: =head2
24207 #: ../fish/guestfish-actions.pod:4164
24208 msgid "tail"
24209 msgstr ""
24210
24211 # type: verbatim
24212 #: ../fish/guestfish-actions.pod:4166
24213 #, no-wrap
24214 msgid ""
24215 " tail path\n"
24216 "\n"
24217 msgstr ""
24218
24219 # type: =head2
24220 #: ../fish/guestfish-actions.pod:4174
24221 msgid "tail-n"
24222 msgstr ""
24223
24224 # type: verbatim
24225 #: ../fish/guestfish-actions.pod:4176
24226 #, no-wrap
24227 msgid ""
24228 " tail-n nrlines path\n"
24229 "\n"
24230 msgstr ""
24231
24232 # type: =head2
24233 #: ../fish/guestfish-actions.pod:4189
24234 msgid "tar-in"
24235 msgstr ""
24236
24237 # type: verbatim
24238 #: ../fish/guestfish-actions.pod:4191
24239 #, no-wrap
24240 msgid ""
24241 " tar-in (tarfile|-) directory\n"
24242 "\n"
24243 msgstr ""
24244
24245 # type: textblock
24246 #: ../fish/guestfish-actions.pod:4196
24247 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
24248 msgstr ""
24249
24250 # type: =head2
24251 #: ../fish/guestfish-actions.pod:4201
24252 msgid "tar-out"
24253 msgstr ""
24254
24255 # type: verbatim
24256 #: ../fish/guestfish-actions.pod:4203
24257 #, no-wrap
24258 msgid ""
24259 " tar-out directory (tarfile|-)\n"
24260 "\n"
24261 msgstr ""
24262
24263 # type: textblock
24264 #: ../fish/guestfish-actions.pod:4208
24265 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
24266 msgstr ""
24267
24268 # type: =head2
24269 #: ../fish/guestfish-actions.pod:4213
24270 msgid "tgz-in"
24271 msgstr ""
24272
24273 # type: verbatim
24274 #: ../fish/guestfish-actions.pod:4215
24275 #, no-wrap
24276 msgid ""
24277 " tgz-in (tarball|-) directory\n"
24278 "\n"
24279 msgstr ""
24280
24281 # type: textblock
24282 #: ../fish/guestfish-actions.pod:4220
24283 msgid "To upload an uncompressed tarball, use L</tar-in>."
24284 msgstr ""
24285
24286 # type: =head2
24287 #: ../fish/guestfish-actions.pod:4224
24288 msgid "tgz-out"
24289 msgstr ""
24290
24291 # type: verbatim
24292 #: ../fish/guestfish-actions.pod:4226
24293 #, no-wrap
24294 msgid ""
24295 " tgz-out directory (tarball|-)\n"
24296 "\n"
24297 msgstr ""
24298
24299 # type: textblock
24300 #: ../fish/guestfish-actions.pod:4231
24301 msgid "To download an uncompressed tarball, use L</tar-out>."
24302 msgstr ""
24303
24304 # type: =head2
24305 #: ../fish/guestfish-actions.pod:4235
24306 msgid "touch"
24307 msgstr ""
24308
24309 # type: verbatim
24310 #: ../fish/guestfish-actions.pod:4237
24311 #, no-wrap
24312 msgid ""
24313 " touch path\n"
24314 "\n"
24315 msgstr ""
24316
24317 # type: =head2
24318 #: ../fish/guestfish-actions.pod:4246
24319 msgid "truncate"
24320 msgstr ""
24321
24322 # type: verbatim
24323 #: ../fish/guestfish-actions.pod:4248
24324 #, no-wrap
24325 msgid ""
24326 " truncate path\n"
24327 "\n"
24328 msgstr ""
24329
24330 # type: =head2
24331 #: ../fish/guestfish-actions.pod:4253
24332 msgid "truncate-size"
24333 msgstr ""
24334
24335 # type: verbatim
24336 #: ../fish/guestfish-actions.pod:4255
24337 #, no-wrap
24338 msgid ""
24339 " truncate-size path size\n"
24340 "\n"
24341 msgstr ""
24342
24343 # type: textblock
24344 #: ../fish/guestfish-actions.pod:4260
24345 msgid ""
24346 "If the current file size is less than C<size> then the file is extended to "
24347 "the required size with zero bytes.  This creates a sparse file (ie. disk "
24348 "blocks are not allocated for the file until you write to it).  To create a "
24349 "non-sparse file of zeroes, use L</fallocate64> instead."
24350 msgstr ""
24351
24352 # type: =head2
24353 #: ../fish/guestfish-actions.pod:4266
24354 msgid "tune2fs-l"
24355 msgstr ""
24356
24357 # type: verbatim
24358 #: ../fish/guestfish-actions.pod:4268
24359 #, no-wrap
24360 msgid ""
24361 " tune2fs-l device\n"
24362 "\n"
24363 msgstr ""
24364
24365 # type: =head2
24366 #: ../fish/guestfish-actions.pod:4278
24367 msgid "txz-in"
24368 msgstr ""
24369
24370 # type: verbatim
24371 #: ../fish/guestfish-actions.pod:4280
24372 #, no-wrap
24373 msgid ""
24374 " txz-in (tarball|-) directory\n"
24375 "\n"
24376 msgstr ""
24377
24378 # type: =head2
24379 #: ../fish/guestfish-actions.pod:4287
24380 msgid "txz-out"
24381 msgstr ""
24382
24383 # type: verbatim
24384 #: ../fish/guestfish-actions.pod:4289
24385 #, no-wrap
24386 msgid ""
24387 " txz-out directory (tarball|-)\n"
24388 "\n"
24389 msgstr ""
24390
24391 # type: =head2
24392 #: ../fish/guestfish-actions.pod:4296
24393 msgid "umask"
24394 msgstr ""
24395
24396 # type: verbatim
24397 #: ../fish/guestfish-actions.pod:4298
24398 #, no-wrap
24399 msgid ""
24400 " umask mask\n"
24401 "\n"
24402 msgstr ""
24403
24404 # type: textblock
24405 #: ../fish/guestfish-actions.pod:4312
24406 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
24407 msgstr ""
24408
24409 # type: =head2
24410 #: ../fish/guestfish-actions.pod:4317
24411 msgid "umount"
24412 msgstr ""
24413
24414 # type: =head2
24415 #: ../fish/guestfish-actions.pod:4319
24416 msgid "unmount"
24417 msgstr ""
24418
24419 # type: verbatim
24420 #: ../fish/guestfish-actions.pod:4321
24421 #, no-wrap
24422 msgid ""
24423 " umount pathordevice\n"
24424 "\n"
24425 msgstr ""
24426
24427 # type: =head2
24428 #: ../fish/guestfish-actions.pod:4327
24429 msgid "umount-all"
24430 msgstr ""
24431
24432 # type: =head2
24433 #: ../fish/guestfish-actions.pod:4329
24434 msgid "unmount-all"
24435 msgstr ""
24436
24437 # type: verbatim
24438 #: ../fish/guestfish-actions.pod:4331
24439 #, no-wrap
24440 msgid ""
24441 " umount-all\n"
24442 "\n"
24443 msgstr ""
24444
24445 # type: =head2
24446 #: ../fish/guestfish-actions.pod:4337
24447 msgid "upload"
24448 msgstr ""
24449
24450 # type: verbatim
24451 #: ../fish/guestfish-actions.pod:4339
24452 #, no-wrap
24453 msgid ""
24454 " upload (filename|-) remotefilename\n"
24455 "\n"
24456 msgstr ""
24457
24458 # type: textblock
24459 #: ../fish/guestfish-actions.pod:4346
24460 msgid "See also L</download>."
24461 msgstr ""
24462
24463 # type: =head2
24464 #: ../fish/guestfish-actions.pod:4350
24465 msgid "upload-offset"
24466 msgstr ""
24467
24468 # type: verbatim
24469 #: ../fish/guestfish-actions.pod:4352
24470 #, no-wrap
24471 msgid ""
24472 " upload-offset (filename|-) remotefilename offset\n"
24473 "\n"
24474 msgstr ""
24475
24476 # type: textblock
24477 #: ../fish/guestfish-actions.pod:4364
24478 msgid ""
24479 "Note that there is no limit on the amount of data that can be uploaded with "
24480 "this call, unlike with L</pwrite>, and this call always writes the full "
24481 "amount unless an error occurs."
24482 msgstr ""
24483
24484 # type: textblock
24485 #: ../fish/guestfish-actions.pod:4369
24486 msgid "See also L</upload>, L</pwrite>."
24487 msgstr ""
24488
24489 # type: =head2
24490 #: ../fish/guestfish-actions.pod:4373
24491 msgid "utimens"
24492 msgstr ""
24493
24494 # type: verbatim
24495 #: ../fish/guestfish-actions.pod:4375
24496 #, no-wrap
24497 msgid ""
24498 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
24499 "\n"
24500 msgstr ""
24501
24502 # type: =head2
24503 #: ../fish/guestfish-actions.pod:4394
24504 msgid "version"
24505 msgstr ""
24506
24507 # type: verbatim
24508 #: ../fish/guestfish-actions.pod:4396
24509 #, no-wrap
24510 msgid ""
24511 " version\n"
24512 "\n"
24513 msgstr ""
24514
24515 # type: textblock
24516 #: ../fish/guestfish-actions.pod:4423
24517 msgid ""
24518 "I<Note:> Don't use this call to test for availability of features.  In "
24519 "enterprise distributions we backport features from later versions into "
24520 "earlier versions, making this an unreliable way to test for features.  Use "
24521 "L</available> instead."
24522 msgstr ""
24523
24524 # type: =head2
24525 #: ../fish/guestfish-actions.pod:4429
24526 msgid "vfs-label"
24527 msgstr ""
24528
24529 # type: verbatim
24530 #: ../fish/guestfish-actions.pod:4431
24531 #, no-wrap
24532 msgid ""
24533 " vfs-label device\n"
24534 "\n"
24535 msgstr ""
24536
24537 # type: textblock
24538 #: ../fish/guestfish-actions.pod:4438
24539 msgid "To find a filesystem from the label, use L</findfs-label>."
24540 msgstr ""
24541
24542 # type: =head2
24543 #: ../fish/guestfish-actions.pod:4440
24544 msgid "vfs-type"
24545 msgstr ""
24546
24547 # type: verbatim
24548 #: ../fish/guestfish-actions.pod:4442
24549 #, no-wrap
24550 msgid ""
24551 " vfs-type device\n"
24552 "\n"
24553 msgstr ""
24554
24555 # type: =head2
24556 #: ../fish/guestfish-actions.pod:4452
24557 msgid "vfs-uuid"
24558 msgstr ""
24559
24560 # type: verbatim
24561 #: ../fish/guestfish-actions.pod:4454
24562 #, no-wrap
24563 msgid ""
24564 " vfs-uuid device\n"
24565 "\n"
24566 msgstr ""
24567
24568 # type: textblock
24569 #: ../fish/guestfish-actions.pod:4461
24570 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
24571 msgstr ""
24572
24573 # type: =head2
24574 #: ../fish/guestfish-actions.pod:4463
24575 msgid "vg-activate"
24576 msgstr ""
24577
24578 # type: verbatim
24579 #: ../fish/guestfish-actions.pod:4465
24580 #, no-wrap
24581 msgid ""
24582 " vg-activate true|false 'volgroups ...'\n"
24583 "\n"
24584 msgstr ""
24585
24586 # type: =head2
24587 #: ../fish/guestfish-actions.pod:4478
24588 msgid "vg-activate-all"
24589 msgstr ""
24590
24591 # type: verbatim
24592 #: ../fish/guestfish-actions.pod:4480
24593 #, no-wrap
24594 msgid ""
24595 " vg-activate-all true|false\n"
24596 "\n"
24597 msgstr ""
24598
24599 # type: =head2
24600 #: ../fish/guestfish-actions.pod:4490
24601 msgid "vgcreate"
24602 msgstr ""
24603
24604 # type: verbatim
24605 #: ../fish/guestfish-actions.pod:4492
24606 #, no-wrap
24607 msgid ""
24608 " vgcreate volgroup 'physvols ...'\n"
24609 "\n"
24610 msgstr ""
24611
24612 # type: =head2
24613 #: ../fish/guestfish-actions.pod:4497
24614 msgid "vglvuuids"
24615 msgstr ""
24616
24617 # type: verbatim
24618 #: ../fish/guestfish-actions.pod:4499
24619 #, no-wrap
24620 msgid ""
24621 " vglvuuids vgname\n"
24622 "\n"
24623 msgstr ""
24624
24625 # type: textblock
24626 #: ../fish/guestfish-actions.pod:4504
24627 msgid ""
24628 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
24629 "logical volumes and volume groups."
24630 msgstr ""
24631
24632 # type: textblock
24633 #: ../fish/guestfish-actions.pod:4507
24634 msgid "See also L</vgpvuuids>."
24635 msgstr ""
24636
24637 # type: =head2
24638 #: ../fish/guestfish-actions.pod:4509
24639 msgid "vgpvuuids"
24640 msgstr ""
24641
24642 # type: verbatim
24643 #: ../fish/guestfish-actions.pod:4511
24644 #, no-wrap
24645 msgid ""
24646 " vgpvuuids vgname\n"
24647 "\n"
24648 msgstr ""
24649
24650 # type: textblock
24651 #: ../fish/guestfish-actions.pod:4516
24652 msgid ""
24653 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
24654 "physical volumes and volume groups."
24655 msgstr ""
24656
24657 # type: textblock
24658 #: ../fish/guestfish-actions.pod:4519
24659 msgid "See also L</vglvuuids>."
24660 msgstr ""
24661
24662 # type: =head2
24663 #: ../fish/guestfish-actions.pod:4521
24664 msgid "vgremove"
24665 msgstr ""
24666
24667 # type: verbatim
24668 #: ../fish/guestfish-actions.pod:4523
24669 #, no-wrap
24670 msgid ""
24671 " vgremove vgname\n"
24672 "\n"
24673 msgstr ""
24674
24675 # type: =head2
24676 #: ../fish/guestfish-actions.pod:4530
24677 msgid "vgrename"
24678 msgstr ""
24679
24680 # type: verbatim
24681 #: ../fish/guestfish-actions.pod:4532
24682 #, no-wrap
24683 msgid ""
24684 " vgrename volgroup newvolgroup\n"
24685 "\n"
24686 msgstr ""
24687
24688 # type: =head2
24689 #: ../fish/guestfish-actions.pod:4536
24690 msgid "vgs"
24691 msgstr ""
24692
24693 # type: verbatim
24694 #: ../fish/guestfish-actions.pod:4538
24695 #, no-wrap
24696 msgid ""
24697 " vgs\n"
24698 "\n"
24699 msgstr ""
24700
24701 # type: textblock
24702 #: ../fish/guestfish-actions.pod:4546
24703 msgid "See also L</vgs-full>."
24704 msgstr ""
24705
24706 # type: =head2
24707 #: ../fish/guestfish-actions.pod:4548
24708 msgid "vgs-full"
24709 msgstr ""
24710
24711 # type: verbatim
24712 #: ../fish/guestfish-actions.pod:4550
24713 #, no-wrap
24714 msgid ""
24715 " vgs-full\n"
24716 "\n"
24717 msgstr ""
24718
24719 # type: =head2
24720 #: ../fish/guestfish-actions.pod:4555
24721 msgid "vgscan"
24722 msgstr ""
24723
24724 # type: verbatim
24725 #: ../fish/guestfish-actions.pod:4557
24726 #, no-wrap
24727 msgid ""
24728 " vgscan\n"
24729 "\n"
24730 msgstr ""
24731
24732 # type: =head2
24733 #: ../fish/guestfish-actions.pod:4562
24734 msgid "vguuid"
24735 msgstr ""
24736
24737 # type: verbatim
24738 #: ../fish/guestfish-actions.pod:4564
24739 #, no-wrap
24740 msgid ""
24741 " vguuid vgname\n"
24742 "\n"
24743 msgstr ""
24744
24745 # type: =head2
24746 #: ../fish/guestfish-actions.pod:4568
24747 msgid "wc-c"
24748 msgstr ""
24749
24750 # type: verbatim
24751 #: ../fish/guestfish-actions.pod:4570
24752 #, no-wrap
24753 msgid ""
24754 " wc-c path\n"
24755 "\n"
24756 msgstr ""
24757
24758 # type: =head2
24759 #: ../fish/guestfish-actions.pod:4575
24760 msgid "wc-l"
24761 msgstr ""
24762
24763 # type: verbatim
24764 #: ../fish/guestfish-actions.pod:4577
24765 #, no-wrap
24766 msgid ""
24767 " wc-l path\n"
24768 "\n"
24769 msgstr ""
24770
24771 # type: =head2
24772 #: ../fish/guestfish-actions.pod:4582
24773 msgid "wc-w"
24774 msgstr ""
24775
24776 # type: verbatim
24777 #: ../fish/guestfish-actions.pod:4584
24778 #, no-wrap
24779 msgid ""
24780 " wc-w path\n"
24781 "\n"
24782 msgstr ""
24783
24784 # type: =head2
24785 #: ../fish/guestfish-actions.pod:4589
24786 msgid "write"
24787 msgstr ""
24788
24789 # type: verbatim
24790 #: ../fish/guestfish-actions.pod:4591
24791 #, no-wrap
24792 msgid ""
24793 " write path content\n"
24794 "\n"
24795 msgstr ""
24796
24797 # type: =head2
24798 #: ../fish/guestfish-actions.pod:4599
24799 msgid "write-file"
24800 msgstr ""
24801
24802 # type: verbatim
24803 #: ../fish/guestfish-actions.pod:4601
24804 #, no-wrap
24805 msgid ""
24806 " write-file path content size\n"
24807 "\n"
24808 msgstr ""
24809
24810 # type: =head2
24811 #: ../fish/guestfish-actions.pod:4624
24812 msgid "zegrep"
24813 msgstr ""
24814
24815 # type: verbatim
24816 #: ../fish/guestfish-actions.pod:4626
24817 #, no-wrap
24818 msgid ""
24819 " zegrep regex path\n"
24820 "\n"
24821 msgstr ""
24822
24823 # type: =head2
24824 #: ../fish/guestfish-actions.pod:4634
24825 msgid "zegrepi"
24826 msgstr ""
24827
24828 # type: verbatim
24829 #: ../fish/guestfish-actions.pod:4636
24830 #, no-wrap
24831 msgid ""
24832 " zegrepi regex path\n"
24833 "\n"
24834 msgstr ""
24835
24836 # type: =head2
24837 #: ../fish/guestfish-actions.pod:4644
24838 msgid "zero"
24839 msgstr ""
24840
24841 # type: verbatim
24842 #: ../fish/guestfish-actions.pod:4646
24843 #, no-wrap
24844 msgid ""
24845 " zero device\n"
24846 "\n"
24847 msgstr ""
24848
24849 # type: textblock
24850 #: ../fish/guestfish-actions.pod:4654
24851 msgid "See also: L</zero-device>, L</scrub-device>."
24852 msgstr ""
24853
24854 # type: =head2
24855 #: ../fish/guestfish-actions.pod:4656
24856 msgid "zero-device"
24857 msgstr ""
24858
24859 # type: verbatim
24860 #: ../fish/guestfish-actions.pod:4658
24861 #, no-wrap
24862 msgid ""
24863 " zero-device device\n"
24864 "\n"
24865 msgstr ""
24866
24867 # type: textblock
24868 #: ../fish/guestfish-actions.pod:4660
24869 msgid ""
24870 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
24871 "which just zeroes the first few blocks of a device."
24872 msgstr ""
24873
24874 # type: =head2
24875 #: ../fish/guestfish-actions.pod:4667
24876 msgid "zerofree"
24877 msgstr ""
24878
24879 # type: verbatim
24880 #: ../fish/guestfish-actions.pod:4669
24881 #, no-wrap
24882 msgid ""
24883 " zerofree device\n"
24884 "\n"
24885 msgstr ""
24886
24887 # type: =head2
24888 #: ../fish/guestfish-actions.pod:4682
24889 msgid "zfgrep"
24890 msgstr ""
24891
24892 # type: verbatim
24893 #: ../fish/guestfish-actions.pod:4684
24894 #, no-wrap
24895 msgid ""
24896 " zfgrep pattern path\n"
24897 "\n"
24898 msgstr ""
24899
24900 # type: =head2
24901 #: ../fish/guestfish-actions.pod:4692
24902 msgid "zfgrepi"
24903 msgstr ""
24904
24905 # type: verbatim
24906 #: ../fish/guestfish-actions.pod:4694
24907 #, no-wrap
24908 msgid ""
24909 " zfgrepi pattern path\n"
24910 "\n"
24911 msgstr ""
24912
24913 # type: =head2
24914 #: ../fish/guestfish-actions.pod:4702
24915 msgid "zfile"
24916 msgstr ""
24917
24918 # type: verbatim
24919 #: ../fish/guestfish-actions.pod:4704
24920 #, no-wrap
24921 msgid ""
24922 " zfile meth path\n"
24923 "\n"
24924 msgstr ""
24925
24926 # type: textblock
24927 #: ../fish/guestfish-actions.pod:4711
24928 msgid "Since 1.0.63, use L</file> instead which can now process compressed files."
24929 msgstr ""
24930
24931 # type: =head2
24932 #: ../fish/guestfish-actions.pod:4721
24933 msgid "zgrep"
24934 msgstr ""
24935
24936 # type: verbatim
24937 #: ../fish/guestfish-actions.pod:4723
24938 #, no-wrap
24939 msgid ""
24940 " zgrep regex path\n"
24941 "\n"
24942 msgstr ""
24943
24944 # type: =head2
24945 #: ../fish/guestfish-actions.pod:4731
24946 msgid "zgrepi"
24947 msgstr ""
24948
24949 # type: verbatim
24950 #: ../fish/guestfish-actions.pod:4733
24951 #, no-wrap
24952 msgid ""
24953 " zgrepi regex path\n"
24954 "\n"
24955 msgstr ""
24956
24957 # type: =head2
24958 #: ../fish/guestfish-commands.pod:1
24959 msgid "alloc"
24960 msgstr ""
24961
24962 # type: =head2
24963 #: ../fish/guestfish-commands.pod:3
24964 msgid "allocate"
24965 msgstr ""
24966
24967 # type: verbatim
24968 #: ../fish/guestfish-commands.pod:5
24969 #, no-wrap
24970 msgid ""
24971 " alloc filename size\n"
24972 "\n"
24973 msgstr ""
24974
24975 # type: textblock
24976 #: ../fish/guestfish-commands.pod:7
24977 msgid ""
24978 "This creates an empty (zeroed) file of the given size, and then adds so it "
24979 "can be further examined."
24980 msgstr ""
24981
24982 # type: textblock
24983 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:168
24984 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
24985 msgstr ""
24986
24987 # type: textblock
24988 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:170
24989 msgid "Size can be specified using standard suffixes, eg. C<1M>."
24990 msgstr ""
24991
24992 # type: textblock
24993 #: ../fish/guestfish-commands.pod:14
24994 msgid ""
24995 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
24996 "image, see L</PREPARED DISK IMAGES>."
24997 msgstr ""
24998
24999 # type: =head2
25000 #: ../fish/guestfish-commands.pod:17
25001 msgid "copy-in"
25002 msgstr ""
25003
25004 # type: verbatim
25005 #: ../fish/guestfish-commands.pod:19
25006 #, no-wrap
25007 msgid ""
25008 " copy-in local [local ...] /remotedir\n"
25009 "\n"
25010 msgstr ""
25011
25012 # type: textblock
25013 #: ../fish/guestfish-commands.pod:21
25014 msgid ""
25015 "C<copy-in> copies local files or directories recursively into the disk "
25016 "image, placing them in the directory called C</remotedir> (which must "
25017 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
25018 "other commands as necessary."
25019 msgstr ""
25020
25021 # type: textblock
25022 #: ../fish/guestfish-commands.pod:26
25023 msgid ""
25024 "Multiple local files and directories can be specified, but the last "
25025 "parameter must always be a remote directory.  Wildcards cannot be used."
25026 msgstr ""
25027
25028 # type: =head2
25029 #: ../fish/guestfish-commands.pod:30
25030 msgid "copy-out"
25031 msgstr ""
25032
25033 # type: verbatim
25034 #: ../fish/guestfish-commands.pod:32
25035 #, no-wrap
25036 msgid ""
25037 " copy-out remote [remote ...] localdir\n"
25038 "\n"
25039 msgstr ""
25040
25041 # type: textblock
25042 #: ../fish/guestfish-commands.pod:34
25043 msgid ""
25044 "C<copy-out> copies remote files or directories recursively out of the disk "
25045 "image, placing them on the host disk in a local directory called C<localdir> "
25046 "(which must exist).  This guestfish meta-command turns into a sequence of "
25047 "L</download>, L</tar-out> and other commands as necessary."
25048 msgstr ""
25049
25050 # type: textblock
25051 #: ../fish/guestfish-commands.pod:40
25052 msgid ""
25053 "Multiple remote files and directories can be specified, but the last "
25054 "parameter must always be a local directory.  To download to the current "
25055 "directory, use C<.> as in:"
25056 msgstr ""
25057
25058 # type: verbatim
25059 #: ../fish/guestfish-commands.pod:44
25060 #, no-wrap
25061 msgid ""
25062 " copy-out /home .\n"
25063 "\n"
25064 msgstr ""
25065
25066 # type: textblock
25067 #: ../fish/guestfish-commands.pod:46
25068 msgid ""
25069 "Wildcards cannot be used in the ordinary command, but you can use them with "
25070 "the help of L</glob> like this:"
25071 msgstr ""
25072
25073 # type: verbatim
25074 #: ../fish/guestfish-commands.pod:49
25075 #, no-wrap
25076 msgid ""
25077 " glob copy-out /home/* .\n"
25078 "\n"
25079 msgstr ""
25080
25081 # type: =head2
25082 #: ../fish/guestfish-commands.pod:51
25083 msgid "echo"
25084 msgstr ""
25085
25086 # type: verbatim
25087 #: ../fish/guestfish-commands.pod:53
25088 #, no-wrap
25089 msgid ""
25090 " echo [params ...]\n"
25091 "\n"
25092 msgstr ""
25093
25094 # type: textblock
25095 #: ../fish/guestfish-commands.pod:55
25096 msgid "This echos the parameters to the terminal."
25097 msgstr ""
25098
25099 # type: =head2
25100 #: ../fish/guestfish-commands.pod:57
25101 msgid "edit"
25102 msgstr ""
25103
25104 # type: =head2
25105 #: ../fish/guestfish-commands.pod:59
25106 msgid "vi"
25107 msgstr ""
25108
25109 # type: =head2
25110 #: ../fish/guestfish-commands.pod:61
25111 msgid "emacs"
25112 msgstr ""
25113
25114 # type: verbatim
25115 #: ../fish/guestfish-commands.pod:63
25116 #, no-wrap
25117 msgid ""
25118 " edit filename\n"
25119 "\n"
25120 msgstr ""
25121
25122 # type: textblock
25123 #: ../fish/guestfish-commands.pod:65
25124 msgid ""
25125 "This is used to edit a file.  It downloads the file, edits it locally using "
25126 "your editor, then uploads the result."
25127 msgstr ""
25128
25129 # type: textblock
25130 #: ../fish/guestfish-commands.pod:68
25131 msgid ""
25132 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
25133 "or C<emacs> you will get those corresponding editors."
25134 msgstr ""
25135
25136 # type: =head2
25137 #: ../fish/guestfish-commands.pod:72
25138 msgid "glob"
25139 msgstr ""
25140
25141 # type: verbatim
25142 #: ../fish/guestfish-commands.pod:74
25143 #, no-wrap
25144 msgid ""
25145 " glob command args...\n"
25146 "\n"
25147 msgstr ""
25148
25149 # type: textblock
25150 #: ../fish/guestfish-commands.pod:76
25151 msgid ""
25152 "Expand wildcards in any paths in the args list, and run C<command> "
25153 "repeatedly on each matching path."
25154 msgstr ""
25155
25156 # type: textblock
25157 #: ../fish/guestfish-commands.pod:79
25158 msgid "See L</WILDCARDS AND GLOBBING>."
25159 msgstr ""
25160
25161 # type: =head2
25162 #: ../fish/guestfish-commands.pod:81
25163 msgid "hexedit"
25164 msgstr ""
25165
25166 # type: verbatim
25167 #: ../fish/guestfish-commands.pod:83
25168 #, no-wrap
25169 msgid ""
25170 " hexedit <filename|device>\n"
25171 " hexedit <filename|device> <max>\n"
25172 " hexedit <filename|device> <start> <max>\n"
25173 "\n"
25174 msgstr ""
25175
25176 # type: textblock
25177 #: ../fish/guestfish-commands.pod:87
25178 msgid ""
25179 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
25180 "device."
25181 msgstr ""
25182
25183 # type: textblock
25184 #: ../fish/guestfish-commands.pod:90
25185 msgid ""
25186 "This command works by downloading potentially the whole file or device, "
25187 "editing it locally, then uploading it.  If the file or device is large, you "
25188 "have to specify which part you wish to edit by using C<max> and/or C<start> "
25189 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
25190 "usual modifiers allowed such as C<1M> (1 megabyte)."
25191 msgstr ""
25192
25193 # type: textblock
25194 #: ../fish/guestfish-commands.pod:97
25195 msgid "For example to edit the first few sectors of a disk you might do:"
25196 msgstr ""
25197
25198 # type: verbatim
25199 #: ../fish/guestfish-commands.pod:100
25200 #, no-wrap
25201 msgid ""
25202 " hexedit /dev/sda 1M\n"
25203 "\n"
25204 msgstr ""
25205
25206 # type: textblock
25207 #: ../fish/guestfish-commands.pod:102
25208 msgid ""
25209 "which would allow you to edit anywhere within the first megabyte of the "
25210 "disk."
25211 msgstr ""
25212
25213 # type: textblock
25214 #: ../fish/guestfish-commands.pod:105
25215 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
25216 msgstr ""
25217
25218 # type: verbatim
25219 #: ../fish/guestfish-commands.pod:107
25220 #, no-wrap
25221 msgid ""
25222 " hexedit /dev/sda1 0x400 0x400\n"
25223 "\n"
25224 msgstr ""
25225
25226 # type: textblock
25227 #: ../fish/guestfish-commands.pod:109
25228 msgid "(assuming the superblock is in the standard location)."
25229 msgstr ""
25230
25231 # type: textblock
25232 #: ../fish/guestfish-commands.pod:111
25233 msgid ""
25234 "This command requires the external L<hexedit(1)> program.  You can specify "
25235 "another program to use by setting the C<HEXEDITOR> environment variable."
25236 msgstr ""
25237
25238 # type: textblock
25239 #: ../fish/guestfish-commands.pod:115
25240 msgid "See also L</hexdump>."
25241 msgstr ""
25242
25243 # type: =head2
25244 #: ../fish/guestfish-commands.pod:117
25245 msgid "lcd"
25246 msgstr ""
25247
25248 # type: verbatim
25249 #: ../fish/guestfish-commands.pod:119
25250 #, no-wrap
25251 msgid ""
25252 " lcd directory\n"
25253 "\n"
25254 msgstr ""
25255
25256 # type: textblock
25257 #: ../fish/guestfish-commands.pod:121
25258 msgid "Change the local directory, ie. the current directory of guestfish itself."
25259 msgstr ""
25260
25261 # type: textblock
25262 #: ../fish/guestfish-commands.pod:124
25263 msgid "Note that C<!cd> won't do what you might expect."
25264 msgstr ""
25265
25266 # type: =head2
25267 #: ../fish/guestfish-commands.pod:126
25268 msgid "man"
25269 msgstr ""
25270
25271 # type: =head2
25272 #: ../fish/guestfish-commands.pod:128
25273 msgid "manual"
25274 msgstr ""
25275
25276 # type: verbatim
25277 #: ../fish/guestfish-commands.pod:130
25278 #, no-wrap
25279 msgid ""
25280 "  man\n"
25281 "\n"
25282 msgstr ""
25283
25284 # type: textblock
25285 #: ../fish/guestfish-commands.pod:132
25286 msgid "Opens the manual page for guestfish."
25287 msgstr ""
25288
25289 # type: =head2
25290 #: ../fish/guestfish-commands.pod:134
25291 msgid "more"
25292 msgstr ""
25293
25294 # type: =head2
25295 #: ../fish/guestfish-commands.pod:136
25296 msgid "less"
25297 msgstr ""
25298
25299 # type: verbatim
25300 #: ../fish/guestfish-commands.pod:138
25301 #, no-wrap
25302 msgid ""
25303 " more filename\n"
25304 "\n"
25305 msgstr ""
25306
25307 # type: verbatim
25308 #: ../fish/guestfish-commands.pod:140
25309 #, no-wrap
25310 msgid ""
25311 " less filename\n"
25312 "\n"
25313 msgstr ""
25314
25315 # type: textblock
25316 #: ../fish/guestfish-commands.pod:142
25317 msgid "This is used to view a file."
25318 msgstr ""
25319
25320 # type: textblock
25321 #: ../fish/guestfish-commands.pod:144
25322 msgid ""
25323 "The default viewer is C<$PAGER>.  However if you use the alternate command "
25324 "C<less> you will get the C<less> command specifically."
25325 msgstr ""
25326
25327 # type: =head2
25328 #: ../fish/guestfish-commands.pod:147
25329 msgid "reopen"
25330 msgstr ""
25331
25332 # type: verbatim
25333 #: ../fish/guestfish-commands.pod:149
25334 #, no-wrap
25335 msgid ""
25336 "  reopen\n"
25337 "\n"
25338 msgstr ""
25339
25340 # type: textblock
25341 #: ../fish/guestfish-commands.pod:151
25342 msgid ""
25343 "Close and reopen the libguestfs handle.  It is not necessary to use this "
25344 "normally, because the handle is closed properly when guestfish exits.  "
25345 "However this is occasionally useful for testing."
25346 msgstr ""
25347
25348 # type: =head2
25349 #: ../fish/guestfish-commands.pod:155
25350 msgid "sparse"
25351 msgstr ""
25352
25353 # type: verbatim
25354 #: ../fish/guestfish-commands.pod:157
25355 #, no-wrap
25356 msgid ""
25357 " sparse filename size\n"
25358 "\n"
25359 msgstr ""
25360
25361 # type: textblock
25362 #: ../fish/guestfish-commands.pod:159
25363 msgid ""
25364 "This creates an empty sparse file of the given size, and then adds so it can "
25365 "be further examined."
25366 msgstr ""
25367
25368 # type: textblock
25369 #: ../fish/guestfish-commands.pod:162
25370 msgid ""
25371 "In all respects it works the same as the L</alloc> command, except that the "
25372 "image file is allocated sparsely, which means that disk blocks are not "
25373 "assigned to the file until they are needed.  Sparse disk files only use "
25374 "space when written to, but they are slower and there is a danger you could "
25375 "run out of real disk space during a write operation."
25376 msgstr ""
25377
25378 # type: =head2
25379 #: ../fish/guestfish-commands.pod:172
25380 msgid "supported"
25381 msgstr ""
25382
25383 # type: verbatim
25384 #: ../fish/guestfish-commands.pod:174
25385 #, no-wrap
25386 msgid ""
25387 " supported\n"
25388 "\n"
25389 msgstr ""
25390
25391 # type: textblock
25392 #: ../fish/guestfish-commands.pod:176
25393 msgid ""
25394 "This command returns a list of the optional groups known to the daemon, and "
25395 "indicates which ones are supported by this build of the libguestfs "
25396 "appliance."
25397 msgstr ""
25398
25399 # type: textblock
25400 #: ../fish/guestfish-commands.pod:180
25401 msgid "See also L<guestfs(3)/AVAILABILITY>."
25402 msgstr ""
25403
25404 # type: =head2
25405 #: ../fish/guestfish-commands.pod:182
25406 msgid "time"
25407 msgstr ""
25408
25409 # type: verbatim
25410 #: ../fish/guestfish-commands.pod:184
25411 #, no-wrap
25412 msgid ""
25413 " time command args...\n"
25414 "\n"
25415 msgstr ""
25416
25417 # type: textblock
25418 #: ../fish/guestfish-commands.pod:186
25419 msgid ""
25420 "Run the command as usual, but print the elapsed time afterwards.  This can "
25421 "be useful for benchmarking operations."
25422 msgstr ""
25423
25424 # type: textblock
25425 #: ../test-tool/libguestfs-test-tool.pod:5
25426 msgid "libguestfs-test-tool - End user tests for libguestfs"
25427 msgstr ""
25428
25429 # type: verbatim
25430 #: ../test-tool/libguestfs-test-tool.pod:9
25431 #, no-wrap
25432 msgid ""
25433 " libguestfs-test-tool [--options]\n"
25434 "\n"
25435 msgstr ""
25436
25437 # type: textblock
25438 #: ../test-tool/libguestfs-test-tool.pod:13
25439 msgid ""
25440 "libguestfs-test-tool is a test program shipped with libguestfs to end users "
25441 "and developers, to allow them to check basic libguestfs functionality is "
25442 "working.  This is needed because libguestfs occasionally breaks for reasons "
25443 "beyond our control: usually because of changes in the underlying qemu or "
25444 "kernel packages, or the host environment."
25445 msgstr ""
25446
25447 # type: textblock
25448 #: ../test-tool/libguestfs-test-tool.pod:20
25449 msgid "If you suspect a problem in libguestfs, then just run:"
25450 msgstr ""
25451
25452 # type: verbatim
25453 #: ../test-tool/libguestfs-test-tool.pod:22
25454 #, no-wrap
25455 msgid ""
25456 " libguestfs-test-tool\n"
25457 "\n"
25458 msgstr ""
25459
25460 # type: textblock
25461 #: ../test-tool/libguestfs-test-tool.pod:24
25462 msgid "It will print lots of diagnostic messages."
25463 msgstr ""
25464
25465 # type: textblock
25466 #: ../test-tool/libguestfs-test-tool.pod:26
25467 msgid "If it runs to completion successfully, you will see this near the end:"
25468 msgstr ""
25469
25470 # type: verbatim
25471 #: ../test-tool/libguestfs-test-tool.pod:28
25472 #, no-wrap
25473 msgid ""
25474 " ===== TEST FINISHED OK =====\n"
25475 "\n"
25476 msgstr ""
25477
25478 # type: textblock
25479 #: ../test-tool/libguestfs-test-tool.pod:30
25480 msgid "and the test tool will exit with code 0."
25481 msgstr ""
25482
25483 # type: textblock
25484 #: ../test-tool/libguestfs-test-tool.pod:32
25485 msgid ""
25486 "If it fails (and/or exits with non-zero error code), please paste the "
25487 "B<complete, unedited> output of the test tool into a bug report.  More "
25488 "information about reporting bugs can be found on the "
25489 "L<http://libguestfs.org/> website."
25490 msgstr ""
25491
25492 # type: =item
25493 #: ../test-tool/libguestfs-test-tool.pod:41
25494 msgid "I<--help>"
25495 msgstr ""
25496
25497 # type: textblock
25498 #: ../test-tool/libguestfs-test-tool.pod:43
25499 msgid "Display short usage information and exit."
25500 msgstr ""
25501
25502 # type: =item
25503 #: ../test-tool/libguestfs-test-tool.pod:45
25504 msgid "I<--helper /path/to/libguestfs-test-tool-helper>"
25505 msgstr ""
25506
25507 # type: textblock
25508 #: ../test-tool/libguestfs-test-tool.pod:47
25509 msgid ""
25510 "Pass an alternate name for the helper program.  libguestfs-test-tool will "
25511 "normally look in the C<$libexec> directory that was configured when the tool "
25512 "was built."
25513 msgstr ""
25514
25515 # type: =item
25516 #: ../test-tool/libguestfs-test-tool.pod:51
25517 msgid "I<--qemu qemu_binary>"
25518 msgstr ""
25519
25520 # type: textblock
25521 #: ../test-tool/libguestfs-test-tool.pod:53
25522 msgid ""
25523 "If you have downloaded another qemu binary, point this option at the full "
25524 "path of the binary to try it."
25525 msgstr ""
25526
25527 # type: =item
25528 #: ../test-tool/libguestfs-test-tool.pod:56
25529 msgid "I<--qemudir qemu_source_dir>"
25530 msgstr ""
25531
25532 # type: textblock
25533 #: ../test-tool/libguestfs-test-tool.pod:58
25534 msgid ""
25535 "If you have compiled qemu from source, point this option at the source "
25536 "directory to try it."
25537 msgstr ""
25538
25539 # type: =item
25540 #: ../test-tool/libguestfs-test-tool.pod:61
25541 msgid "I<--timeout N>"
25542 msgstr ""
25543
25544 # type: textblock
25545 #: ../test-tool/libguestfs-test-tool.pod:63
25546 msgid ""
25547 "Set the launch timeout to C<N> seconds.  The default is 120 seconds which "
25548 "does not usually need to be adjusted unless your machine is very slow."
25549 msgstr ""
25550
25551 # type: =head1
25552 #: ../test-tool/libguestfs-test-tool.pod:69
25553 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
25554 msgstr ""
25555
25556 # type: textblock
25557 #: ../test-tool/libguestfs-test-tool.pod:71
25558 msgid ""
25559 "If you have compiled another version of qemu from source and would like to "
25560 "try that, then you can use the I<--qemudir> option to point to the qemu "
25561 "source directory."
25562 msgstr ""
25563
25564 # type: textblock
25565 #: ../test-tool/libguestfs-test-tool.pod:75
25566 msgid ""
25567 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
25568 "option to point to the binary."
25569 msgstr ""
25570
25571 # type: textblock
25572 #: ../test-tool/libguestfs-test-tool.pod:78
25573 msgid ""
25574 "When using an alternate qemu with libguestfs, usually you would need to "
25575 "write a qemu wrapper script (see section I<QEMU WRAPPERS> in "
25576 "L<guestfs(3)>).  libguestfs-test-tool writes a temporary qemu wrapper script "
25577 "when you use either of the I<--qemudir> or I<--qemu> options."
25578 msgstr ""
25579
25580 # type: textblock
25581 #: ../test-tool/libguestfs-test-tool.pod:85
25582 msgid ""
25583 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
25584 "I<1> if there was an error."
25585 msgstr ""
25586
25587 # type: =item
25588 #: ../test-tool/libguestfs-test-tool.pod:92
25589 msgid "/usr/libexec/libguestfs-test-tool-helper"
25590 msgstr ""
25591
25592 # type: textblock
25593 #: ../test-tool/libguestfs-test-tool.pod:94
25594 msgid ""
25595 "This helper program is run inside the appliance and provides additional "
25596 "tests."
25597 msgstr ""
25598
25599 # type: =item
25600 #: ../test-tool/libguestfs-test-tool.pod:97
25601 msgid "/usr/bin/mkisofs"
25602 msgstr ""
25603
25604 # type: textblock
25605 #: ../test-tool/libguestfs-test-tool.pod:99
25606 msgid ""
25607 "The C<mkisofs> command is required in order to construct a CD-ROM ISO file "
25608 "which is used as part of the tests."
25609 msgstr ""
25610
25611 # type: textblock
25612 #: ../test-tool/libguestfs-test-tool.pod:106
25613 msgid ""
25614 "For the full list of environment variables which may affect libguestfs, "
25615 "please see the L<guestfs(3)> manual page."
25616 msgstr ""
25617
25618 # type: textblock
25619 #: ../test-tool/libguestfs-test-tool.pod:111
25620 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
25621 msgstr ""
25622
25623 # type: textblock
25624 #: ../test-tool/libguestfs-test-tool.pod:121
25625 msgid "Copyright (C) 2009 Red Hat Inc.  L<http://libguestfs.org/>"
25626 msgstr ""
25627
25628 # type: textblock
25629 #: ../fuse/guestmount.pod:5
25630 msgid "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
25631 msgstr ""
25632
25633 # type: verbatim
25634 #: ../fuse/guestmount.pod:9
25635 #, no-wrap
25636 msgid ""
25637 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
25638 "\n"
25639 msgstr ""
25640
25641 # type: verbatim
25642 #: ../fuse/guestmount.pod:11
25643 #, no-wrap
25644 msgid ""
25645 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
25646 "\n"
25647 msgstr ""
25648
25649 # type: verbatim
25650 #: ../fuse/guestmount.pod:13
25651 #, no-wrap
25652 msgid ""
25653 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
25654 "\n"
25655 msgstr ""
25656
25657 # type: textblock
25658 #: ../fuse/guestmount.pod:17
25659 msgid ""
25660 "You must I<not> use C<guestmount> in read-write mode on live virtual "
25661 "machines.  If you do this, you risk disk corruption in the VM."
25662 msgstr ""
25663
25664 # type: textblock
25665 #: ../fuse/guestmount.pod:22
25666 msgid ""
25667 "The guestmount program can be used to mount virtual machine filesystems and "
25668 "other disk images on the host.  It uses libguestfs for access to the guest "
25669 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
25670 "a mountable device."
25671 msgstr ""
25672
25673 # type: textblock
25674 #: ../fuse/guestmount.pod:27
25675 msgid ""
25676 "Along with other options, you have to give at least one device (I<-a> "
25677 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
25678 "option) or use the I<-i> inspection option.  How this works is better "
25679 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
25680 "below."
25681 msgstr ""
25682
25683 # type: textblock
25684 #: ../fuse/guestmount.pod:33
25685 msgid ""
25686 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
25687 "by you, and the filesystem will not be visible to any other users unless you "
25688 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
25689 "the filesystem, use the C<fusermount -u> command."
25690 msgstr ""
25691
25692 # type: textblock
25693 #: ../fuse/guestmount.pod:41
25694 msgid ""
25695 "For a typical Windows guest which has its main filesystem on the first "
25696 "partition:"
25697 msgstr ""
25698
25699 # type: verbatim
25700 #: ../fuse/guestmount.pod:44
25701 #, no-wrap
25702 msgid ""
25703 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
25704 "\n"
25705 msgstr ""
25706
25707 # type: textblock
25708 #: ../fuse/guestmount.pod:46
25709 msgid ""
25710 "For a typical Linux guest which has a /boot filesystem on the first "
25711 "partition, and the root filesystem on a logical volume:"
25712 msgstr ""
25713
25714 # type: verbatim
25715 #: ../fuse/guestmount.pod:49
25716 #, no-wrap
25717 msgid ""
25718 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
25719 "\n"
25720 msgstr ""
25721
25722 # type: textblock
25723 #: ../fuse/guestmount.pod:51
25724 msgid "To get libguestfs to detect guest mountpoints for you:"
25725 msgstr ""
25726
25727 # type: verbatim
25728 #: ../fuse/guestmount.pod:53
25729 #, no-wrap
25730 msgid ""
25731 " guestmount -a guest.img -i --ro /mnt\n"
25732 "\n"
25733 msgstr ""
25734
25735 # type: textblock
25736 #: ../fuse/guestmount.pod:55
25737 msgid "For a libvirt guest called \"Guest\" you could do:"
25738 msgstr ""
25739
25740 # type: verbatim
25741 #: ../fuse/guestmount.pod:57
25742 #, no-wrap
25743 msgid ""
25744 " guestmount -d Guest -i --ro /mnt\n"
25745 "\n"
25746 msgstr ""
25747
25748 # type: textblock
25749 #: ../fuse/guestmount.pod:59
25750 msgid ""
25751 "If you don't know what filesystems are contained in a guest or disk image, "
25752 "use L<virt-filesystems(1)> first:"
25753 msgstr ""
25754
25755 # type: verbatim
25756 #: ../fuse/guestmount.pod:62
25757 #, no-wrap
25758 msgid ""
25759 " virt-filesystems MyGuest\n"
25760 "\n"
25761 msgstr ""
25762
25763 # type: textblock
25764 #: ../fuse/guestmount.pod:64
25765 msgid ""
25766 "If you want to trace the libguestfs calls but without excessive debugging "
25767 "information, we recommend:"
25768 msgstr ""
25769
25770 # type: verbatim
25771 #: ../fuse/guestmount.pod:67
25772 #, no-wrap
25773 msgid ""
25774 " guestmount [...] --trace /mnt\n"
25775 "\n"
25776 msgstr ""
25777
25778 # type: textblock
25779 #: ../fuse/guestmount.pod:69
25780 msgid "If you want to debug the program, we recommend:"
25781 msgstr ""
25782
25783 # type: verbatim
25784 #: ../fuse/guestmount.pod:71
25785 #, no-wrap
25786 msgid ""
25787 " guestmount [...] --trace --verbose /mnt\n"
25788 "\n"
25789 msgstr ""
25790
25791 # type: =item
25792 #: ../fuse/guestmount.pod:77
25793 msgid "B<-a image> | B<--add image>"
25794 msgstr ""
25795
25796 # type: textblock
25797 #: ../fuse/guestmount.pod:79
25798 msgid "Add a block device or virtual machine image."
25799 msgstr ""
25800
25801 # type: =item
25802 #: ../fuse/guestmount.pod:84
25803 msgid "B<-c URI> | B<--connect URI>"
25804 msgstr ""
25805
25806 # type: =item
25807 #: ../fuse/guestmount.pod:90
25808 msgid "B<-d libvirt-domain> | B<--domain libvirt-domain>"
25809 msgstr ""
25810
25811 # type: =item
25812 #: ../fuse/guestmount.pod:96
25813 msgid "B<--dir-cache-timeout N>"
25814 msgstr ""
25815
25816 # type: textblock
25817 #: ../fuse/guestmount.pod:98
25818 msgid ""
25819 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
25820 "seconds.  The readdir cache [actually, there are several semi-independent "
25821 "caches] is populated after a readdir(2) call with the stat and extended "
25822 "attributes of the files in the directory, in anticipation that they will be "
25823 "requested soon after."
25824 msgstr ""
25825
25826 # type: textblock
25827 #: ../fuse/guestmount.pod:104
25828 msgid ""
25829 "There is also a different attribute cache implemented by FUSE (see the FUSE "
25830 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
25831 "requests, only cache existing ones."
25832 msgstr ""
25833
25834 # type: =item
25835 #: ../fuse/guestmount.pod:115
25836 msgid "B<--format=raw|qcow2|..> | B<--format>"
25837 msgstr ""
25838
25839 # type: textblock
25840 #: ../fuse/guestmount.pod:122
25841 msgid ""
25842 "If you have untrusted raw-format guest disk images, you should use this "
25843 "option to specify the disk format.  This avoids a possible security problem "
25844 "with malicious guests (CVE-2010-3851).  See also "
25845 "L<guestfs(3)/guestfs_add_drive_opts>."
25846 msgstr ""
25847
25848 # type: =item
25849 #: ../fuse/guestmount.pod:127
25850 msgid "B<--fuse-help>"
25851 msgstr ""
25852
25853 # type: textblock
25854 #: ../fuse/guestmount.pod:129
25855 msgid "Display help on special FUSE options (see I<-o> below)."
25856 msgstr ""
25857
25858 # type: textblock
25859 #: ../fuse/guestmount.pod:133
25860 msgid "Display brief help and exit."
25861 msgstr ""
25862
25863 # type: =item
25864 #: ../fuse/guestmount.pod:135
25865 msgid "B<-i> | B<--inspector>"
25866 msgstr ""
25867
25868 # type: =item
25869 #: ../fuse/guestmount.pod:146
25870 msgid "B<-m dev[:mnt]> | B<--mount dev[:mnt]>"
25871 msgstr ""
25872
25873 # type: textblock
25874 #: ../fuse/guestmount.pod:148
25875 msgid ""
25876 "Mount the named partition or logical volume on the given mountpoint B<in the "
25877 "guest> (this has nothing to do with mountpoints in the host)."
25878 msgstr ""
25879
25880 # type: textblock
25881 #: ../fuse/guestmount.pod:151
25882 msgid ""
25883 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
25884 "something on C</>."
25885 msgstr ""
25886
25887 # type: =item
25888 #: ../fuse/guestmount.pod:154
25889 msgid "B<-n> | B<--no-sync>"
25890 msgstr ""
25891
25892 # type: textblock
25893 #: ../fuse/guestmount.pod:156
25894 msgid ""
25895 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
25896 "unmounted.  If you specify this option, then we don't attempt to sync the "
25897 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
25898 msgstr ""
25899
25900 # type: =item
25901 #: ../fuse/guestmount.pod:161
25902 msgid "B<-o option> | B<--option option>"
25903 msgstr ""
25904
25905 # type: textblock
25906 #: ../fuse/guestmount.pod:163
25907 msgid "Pass extra options to FUSE."
25908 msgstr ""
25909
25910 # type: textblock
25911 #: ../fuse/guestmount.pod:165
25912 msgid ""
25913 "To get a list of all the extra options supported by FUSE, use the command "
25914 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
25915 "of them are a good idea."
25916 msgstr ""
25917
25918 # type: verbatim
25919 #: ../fuse/guestmount.pod:169
25920 #, no-wrap
25921 msgid ""
25922 " guestmount --fuse-help\n"
25923 "\n"
25924 msgstr ""
25925
25926 # type: textblock
25927 #: ../fuse/guestmount.pod:171
25928 msgid "Some potentially useful FUSE options:"
25929 msgstr ""
25930
25931 # type: =item
25932 #: ../fuse/guestmount.pod:175
25933 msgid "B<-o allow_other>"
25934 msgstr ""
25935
25936 # type: textblock
25937 #: ../fuse/guestmount.pod:177
25938 msgid "Allow other users to see the filesystem."
25939 msgstr ""
25940
25941 # type: =item
25942 #: ../fuse/guestmount.pod:179
25943 msgid "B<-o attr_timeout=N>"
25944 msgstr ""
25945
25946 # type: textblock
25947 #: ../fuse/guestmount.pod:181
25948 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
25949 msgstr ""
25950
25951 # type: =item
25952 #: ../fuse/guestmount.pod:183
25953 msgid "B<-o kernel_cache>"
25954 msgstr ""
25955
25956 # type: textblock
25957 #: ../fuse/guestmount.pod:185
25958 msgid ""
25959 "Allow the kernel to cache files (reduces the number of reads that have to go "
25960 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
25961 "afford the extra memory usage."
25962 msgstr ""
25963
25964 # type: =item
25965 #: ../fuse/guestmount.pod:189
25966 msgid "B<-o uid=N> B<-o gid=N>"
25967 msgstr ""
25968
25969 # type: textblock
25970 #: ../fuse/guestmount.pod:191
25971 msgid ""
25972 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
25973 "the chosen values."
25974 msgstr ""
25975
25976 # type: =item
25977 #: ../fuse/guestmount.pod:196
25978 msgid "B<-r> | B<--ro>"
25979 msgstr ""
25980
25981 # type: textblock
25982 #: ../fuse/guestmount.pod:198
25983 msgid ""
25984 "Add devices and mount everything read-only.  Also disallow writes and make "
25985 "the disk appear read-only to FUSE."
25986 msgstr ""
25987
25988 # type: textblock
25989 #: ../fuse/guestmount.pod:201
25990 msgid ""
25991 "This is highly recommended if you are not going to edit the guest disk.  If "
25992 "the guest is running and this option is I<not> supplied, then there is a "
25993 "strong risk of disk corruption in the guest.  We try to prevent this from "
25994 "happening, but it is not always possible."
25995 msgstr ""
25996
25997 # type: textblock
25998 #: ../fuse/guestmount.pod:206
25999 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
26000 msgstr ""
26001
26002 # type: textblock
26003 #: ../fuse/guestmount.pod:210
26004 msgid "Enable SELinux support for the guest."
26005 msgstr ""
26006
26007 # type: =item
26008 #: ../fuse/guestmount.pod:212
26009 msgid "B<-v> | B<--verbose>"
26010 msgstr ""
26011
26012 # type: textblock
26013 #: ../fuse/guestmount.pod:214
26014 msgid "Enable verbose messages from underlying libguestfs."
26015 msgstr ""
26016
26017 # type: =item
26018 #: ../fuse/guestmount.pod:216
26019 msgid "B<-V> | B<--version>"
26020 msgstr ""
26021
26022 # type: textblock
26023 #: ../fuse/guestmount.pod:218
26024 msgid "Display the program version and exit."
26025 msgstr ""
26026
26027 # type: =item
26028 #: ../fuse/guestmount.pod:220
26029 msgid "B<-w> | B<--rw>"
26030 msgstr ""
26031
26032 # type: textblock
26033 #: ../fuse/guestmount.pod:222
26034 msgid ""
26035 "This option does nothing at the moment.  See L<guestfish(1)/OPENING DISKS "
26036 "FOR READ AND WRITE>."
26037 msgstr ""
26038
26039 # type: =item
26040 #: ../fuse/guestmount.pod:225
26041 msgid "B<-x> | B<--trace>"
26042 msgstr ""
26043
26044 # type: textblock
26045 #: ../fuse/guestmount.pod:227
26046 msgid "Trace libguestfs calls and entry into each FUSE function."
26047 msgstr ""
26048
26049 # type: textblock
26050 #: ../fuse/guestmount.pod:229
26051 msgid "This also stops the daemon from forking into the background."
26052 msgstr ""
26053
26054 # type: textblock
26055 #: ../fuse/guestmount.pod:235
26056 msgid ""
26057 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
26058 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, "
26059 "L<http://fuse.sf.net/>."
26060 msgstr ""
26061
26062 # type: textblock
26063 #: ../tools/virt-edit.pl:34
26064 msgid "virt-edit - Edit a file in a virtual machine"
26065 msgstr ""
26066
26067 # type: verbatim
26068 #: ../tools/virt-edit.pl:38
26069 #, no-wrap
26070 msgid ""
26071 " virt-edit [--options] domname file\n"
26072 "\n"
26073 msgstr ""
26074
26075 # type: verbatim
26076 #: ../tools/virt-edit.pl:40
26077 #, no-wrap
26078 msgid ""
26079 " virt-edit [--options] disk.img [disk.img ...] file\n"
26080 "\n"
26081 msgstr ""
26082
26083 # type: verbatim
26084 #: ../tools/virt-edit.pl:42
26085 #, no-wrap
26086 msgid ""
26087 " virt-edit [domname|disk.img] file -e 'expr'\n"
26088 "\n"
26089 msgstr ""
26090
26091 # type: textblock
26092 #: ../tools/virt-edit.pl:46
26093 msgid ""
26094 "You must I<not> use C<virt-edit> on live virtual machines.  If you do this, "
26095 "you risk disk corruption in the VM.  C<virt-edit> tries to stop you from "
26096 "doing this, but doesn't catch all cases."
26097 msgstr ""
26098
26099 # type: textblock
26100 #: ../tools/virt-edit.pl:52
26101 msgid ""
26102 "C<virt-edit> is a command line tool to edit C<file> where C<file> exists in "
26103 "the named virtual machine (or disk image)."
26104 msgstr ""
26105
26106 # type: textblock
26107 #: ../tools/virt-edit.pl:55
26108 msgid ""
26109 "If you want to just view a file, use L<virt-cat(1)>.  For more complex cases "
26110 "you should look at the L<guestfish(1)> tool."
26111 msgstr ""
26112
26113 # type: textblock
26114 #: ../tools/virt-edit.pl:60
26115 msgid "Edit the named files interactively:"
26116 msgstr ""
26117
26118 # type: verbatim
26119 #: ../tools/virt-edit.pl:62
26120 #, no-wrap
26121 msgid ""
26122 " virt-edit mydomain /boot/grub/grub.conf\n"
26123 "\n"
26124 msgstr ""
26125
26126 # type: verbatim
26127 #: ../tools/virt-edit.pl:64
26128 #, no-wrap
26129 msgid ""
26130 " virt-edit mydomain /etc/passwd\n"
26131 "\n"
26132 msgstr ""
26133
26134 # type: textblock
26135 #: ../tools/virt-edit.pl:66
26136 msgid ""
26137 "You can also edit files non-interactively (see L</NON-INTERACTIVE EDITING> "
26138 "below).  To change the init default level to 5:"
26139 msgstr ""
26140
26141 # type: verbatim
26142 #: ../tools/virt-edit.pl:70
26143 #, no-wrap
26144 msgid ""
26145 " virt-edit mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
26146 "\n"
26147 msgstr ""
26148
26149 # type: textblock
26150 #: ../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
26151 msgid "Display brief help."
26152 msgstr ""
26153
26154 # type: textblock
26155 #: ../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
26156 msgid "Display version number and exit."
26157 msgstr ""
26158
26159 # type: =item
26160 #: ../tools/virt-edit.pl:96
26161 msgid "B<--backup extension> | B<-b extension>"
26162 msgstr ""
26163
26164 # type: textblock
26165 #: ../tools/virt-edit.pl:98
26166 msgid ""
26167 "Create a backup of the original file I<in the guest disk image>.  The backup "
26168 "has the original filename with C<extension> added."
26169 msgstr ""
26170
26171 # type: textblock
26172 #: ../tools/virt-edit.pl:101
26173 msgid ""
26174 "Usually the first character of C<extension> would be a dot C<.> so you would "
26175 "write:"
26176 msgstr ""
26177
26178 # type: verbatim
26179 #: ../tools/virt-edit.pl:104
26180 #, no-wrap
26181 msgid ""
26182 " virt-edit -b .orig [etc]\n"
26183 "\n"
26184 msgstr ""
26185
26186 # type: textblock
26187 #: ../tools/virt-edit.pl:106
26188 msgid "By default, no backup file is made."
26189 msgstr ""
26190
26191 # type: =item
26192 #: ../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
26193 msgid "B<--connect URI> | B<-c URI>"
26194 msgstr ""
26195
26196 # type: textblock
26197 #: ../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
26198 msgid ""
26199 "If using libvirt, connect to the given I<URI>.  If omitted, then we connect "
26200 "to the default libvirt hypervisor."
26201 msgstr ""
26202
26203 # type: textblock
26204 #: ../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
26205 msgid ""
26206 "If you specify guest block devices directly, then libvirt is not used at "
26207 "all."
26208 msgstr ""
26209
26210 # type: =item
26211 #: ../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
26212 msgid "B<--format> raw"
26213 msgstr ""
26214
26215 # type: textblock
26216 #: ../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
26217 msgid ""
26218 "Specify the format of disk images given on the command line.  If this is "
26219 "omitted then the format is autodetected from the content of the disk image."
26220 msgstr ""
26221
26222 # type: textblock
26223 #: ../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
26224 msgid ""
26225 "If disk images are requested from libvirt, then this program asks libvirt "
26226 "for this information.  In this case, the value of the format parameter is "
26227 "ignored."
26228 msgstr ""
26229
26230 # type: textblock
26231 #: ../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
26232 msgid ""
26233 "If working with untrusted raw-format guest disk images, you should ensure "
26234 "the format is always specified."
26235 msgstr ""
26236
26237 # type: =item
26238 #: ../tools/virt-edit.pl:141
26239 msgid "B<--expr EXPR> | B<-e EXPR>"
26240 msgstr ""
26241
26242 # type: textblock
26243 #: ../tools/virt-edit.pl:143
26244 msgid ""
26245 "Instead of launching the external editor, non-interactively apply the Perl "
26246 "expression C<EXPR> to each line in the file.  See L</NON-INTERACTIVE "
26247 "EDITING> below."
26248 msgstr ""
26249
26250 # type: textblock
26251 #: ../tools/virt-edit.pl:147
26252 msgid ""
26253 "Be careful to properly quote the expression to prevent it from being altered "
26254 "by the shell."
26255 msgstr ""
26256
26257 # type: =head1
26258 #: ../tools/virt-edit.pl:268
26259 msgid "NON-INTERACTIVE EDITING"
26260 msgstr ""
26261
26262 # type: textblock
26263 #: ../tools/virt-edit.pl:270
26264 msgid ""
26265 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
26266 "administrator can interactively edit the file."
26267 msgstr ""
26268
26269 # type: textblock
26270 #: ../tools/virt-edit.pl:273
26271 msgid ""
26272 "There are two ways also to use C<virt-edit> from scripts in order to make "
26273 "automated edits to files.  (Note that although you I<can> use C<virt-edit> "
26274 "like this, it's less error-prone to write scripts directly using the "
26275 "libguestfs API and Augeas for configuration file editing.)"
26276 msgstr ""
26277
26278 # type: textblock
26279 #: ../tools/virt-edit.pl:279
26280 msgid ""
26281 "The first method is to temporarily set C<$EDITOR> to any script or program "
26282 "you want to run.  The script is invoked as C<$EDITOR tmpfile> and it should "
26283 "update C<tmpfile> in place however it likes."
26284 msgstr ""
26285
26286 # type: textblock
26287 #: ../tools/virt-edit.pl:283
26288 msgid ""
26289 "The second method is to use the C<-e> parameter of C<virt-edit> to run a "
26290 "short Perl snippet in the style of L<sed(1)>.  For example to replace all "
26291 "instances of C<foo> with C<bar> in a file:"
26292 msgstr ""
26293
26294 # type: verbatim
26295 #: ../tools/virt-edit.pl:287
26296 #, no-wrap
26297 msgid ""
26298 " virt-edit domname filename -e 's/foo/bar/'\n"
26299 "\n"
26300 msgstr ""
26301
26302 # type: textblock
26303 #: ../tools/virt-edit.pl:289
26304 msgid ""
26305 "The full power of Perl regular expressions can be used (see L<perlre(1)>).  "
26306 "For example to delete root's password you could do:"
26307 msgstr ""
26308
26309 # type: verbatim
26310 #: ../tools/virt-edit.pl:292
26311 #, no-wrap
26312 msgid ""
26313 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
26314 "\n"
26315 msgstr ""
26316
26317 # type: textblock
26318 #: ../tools/virt-edit.pl:294
26319 msgid ""
26320 "What really happens is that the snippet is evaluated as a Perl expression "
26321 "for each line of the file.  The line, including the final C<\\n>, is passed "
26322 "in C<$_> and the expression should update C<$_> or leave it unchanged."
26323 msgstr ""
26324
26325 # type: textblock
26326 #: ../tools/virt-edit.pl:299
26327 msgid ""
26328 "To delete a line, set C<$_> to the empty string.  For example, to delete the "
26329 "C<apache> user account from the password file you can do:"
26330 msgstr ""
26331
26332 # type: verbatim
26333 #: ../tools/virt-edit.pl:302
26334 #, no-wrap
26335 msgid ""
26336 " virt-edit mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
26337 "\n"
26338 msgstr ""
26339
26340 # type: textblock
26341 #: ../tools/virt-edit.pl:304
26342 msgid ""
26343 "To insert a line, prepend or append it to C<$_>.  However appending lines to "
26344 "the end of the file is rather difficult this way since there is no concept "
26345 "of \"last line of the file\" - your expression just doesn't get called "
26346 "again.  You might want to use the first method (setting C<$EDITOR>) if you "
26347 "want to do this."
26348 msgstr ""
26349
26350 # type: textblock
26351 #: ../tools/virt-edit.pl:310
26352 msgid ""
26353 "The variable C<$lineno> contains the current line number.  As is "
26354 "traditional, the first line in the file is number C<1>."
26355 msgstr ""
26356
26357 # type: textblock
26358 #: ../tools/virt-edit.pl:313
26359 msgid ""
26360 "The return value from the expression is ignored, but the expression may call "
26361 "C<die> in order to abort the whole program, leaving the original file "
26362 "untouched."
26363 msgstr ""
26364
26365 # type: textblock
26366 #: ../tools/virt-edit.pl:317
26367 msgid ""
26368 "Remember when matching the end of a line that C<$_> may contain the final "
26369 "C<\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
26370 "newline then neither of these.  Thus to match or substitute some text at the "
26371 "end of a line, use this regular expression:"
26372 msgstr ""
26373
26374 # type: verbatim
26375 #: ../tools/virt-edit.pl:322
26376 #, no-wrap
26377 msgid ""
26378 " /some text(\\r?\\n)?$/\n"
26379 "\n"
26380 msgstr ""
26381
26382 # type: textblock
26383 #: ../tools/virt-edit.pl:324
26384 msgid ""
26385 "Alternately, use the perl C<chomp> function, being careful not to chomp "
26386 "C<$_> itself (since that would remove all newlines from the file):"
26387 msgstr ""
26388
26389 # type: verbatim
26390 #: ../tools/virt-edit.pl:328
26391 #, no-wrap
26392 msgid ""
26393 " my $m = $_; chomp $m; $m =~ /some text$/\n"
26394 "\n"
26395 msgstr ""
26396
26397 # type: =item
26398 #: ../tools/virt-edit.pl:334
26399 msgid "C<EDITOR>"
26400 msgstr ""
26401
26402 # type: textblock
26403 #: ../tools/virt-edit.pl:336
26404 msgid ""
26405 "If set, this string is used as the editor.  It may contain arguments, "
26406 "eg. C<\"emacs -nw\">"
26407 msgstr ""
26408
26409 # type: textblock
26410 #: ../tools/virt-edit.pl:339
26411 msgid "If not set, C<vi> is used."
26412 msgstr ""
26413
26414 # type: =head1
26415 #: ../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
26416 msgid "SHELL QUOTING"
26417 msgstr ""
26418
26419 # type: textblock
26420 #: ../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
26421 msgid ""
26422 "Libvirt guest names can contain arbitrary characters, some of which have "
26423 "meaning to the shell such as C<#> and space.  You may need to quote or "
26424 "escape these characters on the command line.  See the shell manual page "
26425 "L<sh(1)> for details."
26426 msgstr ""
26427
26428 # type: textblock
26429 #: ../tools/virt-edit.pl:352
26430 msgid ""
26431 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, "
26432 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>, "
26433 "L<perl(1)>, L<perlre(1)>."
26434 msgstr ""
26435
26436 # type: =head1
26437 #: ../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
26438 msgid "AUTHOR"
26439 msgstr ""
26440
26441 # type: textblock
26442 #: ../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
26443 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
26444 msgstr ""
26445
26446 # type: textblock
26447 #: ../tools/virt-edit.pl:368 ../tools/virt-list-partitions.pl:275
26448 msgid "Copyright (C) 2009-2010 Red Hat Inc."
26449 msgstr ""
26450
26451 # type: textblock
26452 #: ../tools/virt-win-reg.pl:37
26453 msgid ""
26454 "virt-win-reg - Export and merge Windows Registry entries from a Windows "
26455 "guest"
26456 msgstr ""
26457
26458 # type: verbatim
26459 #: ../tools/virt-win-reg.pl:41
26460 #, no-wrap
26461 msgid ""
26462 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
26463 "\n"
26464 msgstr ""
26465
26466 # type: verbatim
26467 #: ../tools/virt-win-reg.pl:43
26468 #, no-wrap
26469 msgid ""
26470 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
26471 "\n"
26472 msgstr ""
26473
26474 # type: verbatim
26475 #: ../tools/virt-win-reg.pl:45
26476 #, no-wrap
26477 msgid ""
26478 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
26479 "\n"
26480 msgstr ""
26481
26482 # type: verbatim
26483 #: ../tools/virt-win-reg.pl:47
26484 #, no-wrap
26485 msgid ""
26486 " virt-win-reg --merge domname [input.reg ...]\n"
26487 "\n"
26488 msgstr ""
26489
26490 # type: verbatim
26491 #: ../tools/virt-win-reg.pl:49
26492 #, no-wrap
26493 msgid ""
26494 " virt-win-reg [--options] disk.img ... # instead of domname\n"
26495 "\n"
26496 msgstr ""
26497
26498 # type: textblock
26499 #: ../tools/virt-win-reg.pl:53
26500 msgid ""
26501 "You must I<not> use C<virt-win-reg> with the C<--merge> option on live "
26502 "virtual machines.  If you do this, you I<will> get irreversible disk "
26503 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
26504 "but doesn't catch all cases."
26505 msgstr ""
26506
26507 # type: textblock
26508 #: ../tools/virt-win-reg.pl:58
26509 msgid ""
26510 "Modifying the Windows Registry is an inherently risky operation.  The format "
26511 "is deliberately obscure and undocumented, and Registry changes can leave the "
26512 "system unbootable.  Therefore when using the C<--merge> option, make sure "
26513 "you have a reliable backup first."
26514 msgstr ""
26515
26516 # type: textblock
26517 #: ../tools/virt-win-reg.pl:65
26518 msgid ""
26519 "This program can export and merge Windows Registry entries from a Windows "
26520 "guest."
26521 msgstr ""
26522
26523 # type: textblock
26524 #: ../tools/virt-win-reg.pl:68
26525 msgid ""
26526 "The first parameter is the libvirt guest name or the raw disk image of a "
26527 "Windows guest."
26528 msgstr ""
26529
26530 # type: textblock
26531 #: ../tools/virt-win-reg.pl:71
26532 msgid ""
26533 "If C<--merge> is I<not> specified, then the chosen registry key is "
26534 "displayed/exported (recursively).  For example:"
26535 msgstr ""
26536
26537 # type: verbatim
26538 #: ../tools/virt-win-reg.pl:74
26539 #, no-wrap
26540 msgid ""
26541 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
26542 "\n"
26543 msgstr ""
26544
26545 # type: textblock
26546 #: ../tools/virt-win-reg.pl:76
26547 msgid "You can also display single values from within registry keys, for example:"
26548 msgstr ""
26549
26550 # type: verbatim
26551 #: ../tools/virt-win-reg.pl:79
26552 #, no-wrap
26553 msgid ""
26554 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
26555 " $ virt-win-reg Windows7 $cvkey ProductName\n"
26556 " Windows 7 Enterprise\n"
26557 "\n"
26558 msgstr ""
26559
26560 # type: textblock
26561 #: ../tools/virt-win-reg.pl:83
26562 msgid ""
26563 "With C<--merge>, you can merge a textual regedit file into the Windows "
26564 "Registry:"
26565 msgstr ""
26566
26567 # type: verbatim
26568 #: ../tools/virt-win-reg.pl:86
26569 #, no-wrap
26570 msgid ""
26571 " $ virt-win-reg --merge Windows7 changes.reg\n"
26572 "\n"
26573 msgstr ""
26574
26575 # type: =head2
26576 #: ../tools/virt-win-reg.pl:88
26577 msgid "NOTE"
26578 msgstr ""
26579
26580 # type: textblock
26581 #: ../tools/virt-win-reg.pl:90
26582 msgid ""
26583 "This program is only meant for simple access to the registry.  If you want "
26584 "to do complicated things with the registry, we suggest you download the "
26585 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
26586 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
26587 "L<hivexregedit(1)>."
26588 msgstr ""
26589
26590 # type: =item
26591 #: ../tools/virt-win-reg.pl:120 ../tools/virt-make-fs.pl:177
26592 msgid "B<--debug>"
26593 msgstr ""
26594
26595 # type: textblock
26596 #: ../tools/virt-win-reg.pl:122 ../tools/virt-resize.pl:498
26597 msgid "Enable debugging messages."
26598 msgstr ""
26599
26600 # type: =item
26601 #: ../tools/virt-win-reg.pl:157
26602 msgid "B<--merge>"
26603 msgstr ""
26604
26605 # type: textblock
26606 #: ../tools/virt-win-reg.pl:159
26607 msgid ""
26608 "In merge mode, this merges a textual regedit file into the Windows Registry "
26609 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
26610 "displays or exports Registry entries instead."
26611 msgstr ""
26612
26613 # type: textblock
26614 #: ../tools/virt-win-reg.pl:163
26615 msgid ""
26616 "Note that C<--merge> is I<unsafe> to use on live virtual machines, and will "
26617 "result in disk corruption.  However exporting (without this flag)  is always "
26618 "safe."
26619 msgstr ""
26620
26621 # type: =item
26622 #: ../tools/virt-win-reg.pl:171
26623 msgid "B<--encoding> UTF-16LE|ASCII"
26624 msgstr ""
26625
26626 # type: textblock
26627 #: ../tools/virt-win-reg.pl:173
26628 msgid ""
26629 "When merging (only), you may need to specify the encoding for strings to be "
26630 "used in the hive file.  This is explained in detail in "
26631 "L<Win::Hivex::Regedit(3)/ENCODING STRINGS>."
26632 msgstr ""
26633
26634 # type: textblock
26635 #: ../tools/virt-win-reg.pl:177
26636 msgid ""
26637 "The default is to use UTF-16LE, which should work with recent versions of "
26638 "Windows."
26639 msgstr ""
26640
26641 # type: =head1
26642 #: ../tools/virt-win-reg.pl:402
26643 msgid "SUPPORTED SYSTEMS"
26644 msgstr ""
26645
26646 # type: textblock
26647 #: ../tools/virt-win-reg.pl:404
26648 msgid ""
26649 "The program currently supports Windows NT-derived guests starting with "
26650 "Windows XP through to at least Windows 7."
26651 msgstr ""
26652
26653 # type: textblock
26654 #: ../tools/virt-win-reg.pl:407
26655 msgid ""
26656 "Registry support is done for C<HKEY_LOCAL_MACHINE\\SAM>, "
26657 "C<HKEY_LOCAL_MACHINE\\SECURITY>, C<HKEY_LOCAL_MACHINE\\SOFTWARE>, "
26658 "C<HKEY_LOCAL_MACHINE\\SYSTEM> and C<HKEY_USERS\\.DEFAULT>."
26659 msgstr ""
26660
26661 # type: textblock
26662 #: ../tools/virt-win-reg.pl:411
26663 msgid ""
26664 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
26665 "C<HKEY_USERS>."
26666 msgstr ""
26667
26668 # type: textblock
26669 #: ../tools/virt-win-reg.pl:414
26670 msgid ""
26671 "C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are B<not> supported at this "
26672 "time."
26673 msgstr ""
26674
26675 # type: =head1
26676 #: ../tools/virt-win-reg.pl:417
26677 msgid "ENCODING"
26678 msgstr ""
26679
26680 # type: textblock
26681 #: ../tools/virt-win-reg.pl:419
26682 msgid ""
26683 "C<virt-win-reg> expects that regedit files have already been reencoded in "
26684 "the local encoding.  Usually on Linux hosts, this means UTF-8 with "
26685 "Unix-style line endings.  Since Windows regedit files are often in UTF-16LE "
26686 "with Windows-style line endings, you may need to reencode the whole file "
26687 "before or after processing."
26688 msgstr ""
26689
26690 # type: textblock
26691 #: ../tools/virt-win-reg.pl:425
26692 msgid ""
26693 "To reencode a file from Windows format to Linux (before processing it with "
26694 "the C<--merge> option), you would do something like this:"
26695 msgstr ""
26696
26697 # type: verbatim
26698 #: ../tools/virt-win-reg.pl:428
26699 #, no-wrap
26700 msgid ""
26701 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
26702 "\n"
26703 msgstr ""
26704
26705 # type: textblock
26706 #: ../tools/virt-win-reg.pl:430
26707 msgid ""
26708 "To go in the opposite direction, after exporting and before sending the file "
26709 "to a Windows user, do something like this:"
26710 msgstr ""
26711
26712 # type: verbatim
26713 #: ../tools/virt-win-reg.pl:433
26714 #, no-wrap
26715 msgid ""
26716 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
26717 "\n"
26718 msgstr ""
26719
26720 # type: textblock
26721 #: ../tools/virt-win-reg.pl:435
26722 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
26723 msgstr ""
26724
26725 # type: textblock
26726 #: ../tools/virt-win-reg.pl:437
26727 msgid ""
26728 "If you are unsure about the current encoding, use the L<file(1)> command.  "
26729 "Recent versions of Windows regedit.exe produce a UTF-16LE file with "
26730 "Windows-style (CRLF) line endings, like this:"
26731 msgstr ""
26732
26733 # type: verbatim
26734 #: ../tools/virt-win-reg.pl:441
26735 #, no-wrap
26736 msgid ""
26737 " $ file software.reg\n"
26738 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
26739 " with CRLF line terminators\n"
26740 "\n"
26741 msgstr ""
26742
26743 # type: textblock
26744 #: ../tools/virt-win-reg.pl:445
26745 msgid "This file would need conversion before you could C<--merge> it."
26746 msgstr ""
26747
26748 # type: =head1
26749 #: ../tools/virt-win-reg.pl:447
26750 msgid "CurrentControlSet etc."
26751 msgstr ""
26752
26753 # type: textblock
26754 #: ../tools/virt-win-reg.pl:449
26755 msgid ""
26756 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
26757 "Registry at the level of the hive file, and therefore you cannot modify "
26758 "these."
26759 msgstr ""
26760
26761 # type: textblock
26762 #: ../tools/virt-win-reg.pl:453
26763 msgid ""
26764 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
26765 "circumstances it might refer to another control set.  The way to find out is "
26766 "to look at the C<HKLM\\SYSTEM\\Select> key:"
26767 msgstr ""
26768
26769 # type: verbatim
26770 #: ../tools/virt-win-reg.pl:457
26771 #, no-wrap
26772 msgid ""
26773 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
26774 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
26775 " \"Current\"=dword:00000001\n"
26776 " \"Default\"=dword:00000001\n"
26777 " \"Failed\"=dword:00000000\n"
26778 " \"LastKnownGood\"=dword:00000002\n"
26779 "\n"
26780 msgstr ""
26781
26782 # type: textblock
26783 #: ../tools/virt-win-reg.pl:464
26784 msgid "\"Current\" is the one which Windows will choose when it boots."
26785 msgstr ""
26786
26787 # type: textblock
26788 #: ../tools/virt-win-reg.pl:466
26789 msgid "Similarly, other C<Current...> keys in the path may need to be replaced."
26790 msgstr ""
26791
26792 # type: =head1
26793 #: ../tools/virt-win-reg.pl:469
26794 msgid "WINDOWS TIPS"
26795 msgstr ""
26796
26797 # type: textblock
26798 #: ../tools/virt-win-reg.pl:471
26799 msgid ""
26800 "Note that some of these tips modify the guest disk image.  The guest I<must> "
26801 "be shut off, else you will get disk corruption."
26802 msgstr ""
26803
26804 # type: =head2
26805 #: ../tools/virt-win-reg.pl:474
26806 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
26807 msgstr ""
26808
26809 # type: textblock
26810 #: ../tools/virt-win-reg.pl:476
26811 msgid ""
26812 "Prepare a DOS batch script, VBScript or executable.  Upload this using "
26813 "L<guestfish(1)>.  For this example the script is called C<test.bat> and it "
26814 "is uploaded into C<C:\\>:"
26815 msgstr ""
26816
26817 # type: verbatim
26818 #: ../tools/virt-win-reg.pl:480
26819 #, no-wrap
26820 msgid ""
26821 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
26822 "\n"
26823 msgstr ""
26824
26825 # type: textblock
26826 #: ../tools/virt-win-reg.pl:482
26827 msgid "Prepare a regedit file containing the registry change:"
26828 msgstr ""
26829
26830 # type: verbatim
26831 #: ../tools/virt-win-reg.pl:484
26832 #, no-wrap
26833 msgid ""
26834 " cat > test.reg <<'EOF'\n"
26835 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
26836 " \"Test\"=\"c:\\\\test.bat\"\n"
26837 " EOF\n"
26838 "\n"
26839 msgstr ""
26840
26841 # type: textblock
26842 #: ../tools/virt-win-reg.pl:489
26843 msgid ""
26844 "In this example we use the key C<RunOnce> which means that the script will "
26845 "run precisely once when the first user logs in.  If you want it to run every "
26846 "time a user logs in, replace C<RunOnce> with C<Run>."
26847 msgstr ""
26848
26849 # type: textblock
26850 #: ../tools/virt-win-reg.pl:493
26851 msgid "Now update the registry:"
26852 msgstr ""
26853
26854 # type: verbatim
26855 #: ../tools/virt-win-reg.pl:495
26856 #, no-wrap
26857 msgid ""
26858 " virt-win-reg --merge WindowsGuest test.reg\n"
26859 "\n"
26860 msgstr ""
26861
26862 # type: =head2
26863 #: ../tools/virt-win-reg.pl:497
26864 msgid "INSTALLING A SERVICE"
26865 msgstr ""
26866
26867 # type: textblock
26868 #: ../tools/virt-win-reg.pl:499
26869 msgid ""
26870 "This section assumes you are familiar with Windows services, and you either "
26871 "have a program which handles the Windows Service Control Protocol directly "
26872 "or you want to run any program using a service wrapper like SrvAny or the "
26873 "free RHSrvAny."
26874 msgstr ""
26875
26876 # type: textblock
26877 #: ../tools/virt-win-reg.pl:504
26878 msgid ""
26879 "First upload the program and optionally the service wrapper.  In this case "
26880 "the test program is called C<test.exe> and we are using the RHSrvAny "
26881 "wrapper:"
26882 msgstr ""
26883
26884 # type: verbatim
26885 #: ../tools/virt-win-reg.pl:508
26886 #, no-wrap
26887 msgid ""
26888 " guestfish -i -d WindowsGuest <<EOF\n"
26889 "   upload rhsrvany.exe /rhsrvany.exe\n"
26890 "   upload test.exe /test.exe\n"
26891 " EOF\n"
26892 "\n"
26893 msgstr ""
26894
26895 # type: textblock
26896 #: ../tools/virt-win-reg.pl:513
26897 msgid ""
26898 "Prepare a regedit file containing the registry changes.  In this example, "
26899 "the first registry change is needed for the service itself or the service "
26900 "wrapper (if used).  The second registry change is only needed because I am "
26901 "using the RHSrvAny service wrapper."
26902 msgstr ""
26903
26904 # type: verbatim
26905 #: ../tools/virt-win-reg.pl:518
26906 #, no-wrap
26907 msgid ""
26908 " cat > service.reg <<'EOF'\n"
26909 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
26910 " \"Type\"=dword:00000010\n"
26911 " \"Start\"=dword:00000002\n"
26912 " \"ErrorControl\"=dword:00000001\n"
26913 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
26914 " \"DisplayName\"=\"RHSrvAny\"\n"
26915 " \"ObjectName\"=\"NetworkService\"\n"
26916 " \n"
26917 msgstr ""
26918
26919 # type: verbatim
26920 #: ../tools/virt-win-reg.pl:527
26921 #, no-wrap
26922 msgid ""
26923 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
26924 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
26925 " \"PWD\"=\"c:\\\\Temp\"\n"
26926 " EOF\n"
26927 "\n"
26928 msgstr ""
26929
26930 # type: textblock
26931 #: ../tools/virt-win-reg.pl:538
26932 msgid ""
26933 "For use of C<ControlSet001> see the section above in this manual page.  You "
26934 "may need to adjust this according to the control set that is in use by the "
26935 "guest."
26936 msgstr ""
26937
26938 # type: textblock
26939 #: ../tools/virt-win-reg.pl:544
26940 msgid ""
26941 "C<\"ObjectName\"> controls the privileges that the service will have.  An "
26942 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
26943 "privileged account."
26944 msgstr ""
26945
26946 # type: textblock
26947 #: ../tools/virt-win-reg.pl:550
26948 msgid ""
26949 "For the meaning of the magic numbers, see this Microsoft KB article: "
26950 "L<http://support.microsoft.com/kb/103000>."
26951 msgstr ""
26952
26953 # type: textblock
26954 #: ../tools/virt-win-reg.pl:555
26955 msgid "Update the registry:"
26956 msgstr ""
26957
26958 # type: verbatim
26959 #: ../tools/virt-win-reg.pl:557
26960 #, no-wrap
26961 msgid ""
26962 " virt-win-reg --merge WindowsGuest service.reg\n"
26963 "\n"
26964 msgstr ""
26965
26966 # type: textblock
26967 #: ../tools/virt-win-reg.pl:561
26968 msgid ""
26969 "Be careful when passing parameters containing C<\\> (backslash) in the "
26970 "shell.  Usually you will have to use 'single quotes' or double backslashes "
26971 "(but not both) to protect them from the shell."
26972 msgstr ""
26973
26974 # type: textblock
26975 #: ../tools/virt-win-reg.pl:565
26976 msgid "Paths and value names are case-insensitive."
26977 msgstr ""
26978
26979 # type: textblock
26980 #: ../tools/virt-win-reg.pl:574
26981 msgid ""
26982 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, "
26983 "L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, "
26984 "L<Sys::Guestfs::Lib(3)>, L<Win::Hivex(3)>, L<Win::Hivex::Regedit(3)>, "
26985 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
26986 msgstr ""
26987
26988 # type: textblock
26989 #: ../tools/virt-win-reg.pl:589 ../tools/virt-make-fs.pl:550
26990 msgid ""
26991 "When reporting bugs, please enable debugging and capture the I<complete> "
26992 "output:"
26993 msgstr ""
26994
26995 # type: verbatim
26996 #: ../tools/virt-win-reg.pl:592
26997 #, no-wrap
26998 msgid ""
26999 " export LIBGUESTFS_DEBUG=1\n"
27000 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
27001 "\n"
27002 msgstr ""
27003
27004 # type: textblock
27005 #: ../tools/virt-win-reg.pl:595
27006 msgid ""
27007 "Attach /tmp/virt-win-reg.log to a new bug report at "
27008 "L<https://bugzilla.redhat.com/>"
27009 msgstr ""
27010
27011 # type: textblock
27012 #: ../tools/virt-win-reg.pl:604 ../tools/virt-resize.pl:1510 ../tools/virt-make-fs.pl:565
27013 msgid "Copyright (C) 2010 Red Hat Inc."
27014 msgstr ""
27015
27016 # type: textblock
27017 #: ../tools/virt-resize.pl:42
27018 msgid "virt-resize - Resize a virtual machine disk"
27019 msgstr ""
27020
27021 # type: verbatim
27022 #: ../tools/virt-resize.pl:46
27023 #, no-wrap
27024 msgid ""
27025 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
27026 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
27027 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
27028 "\n"
27029 msgstr ""
27030
27031 # type: textblock
27032 #: ../tools/virt-resize.pl:52
27033 msgid ""
27034 "Virt-resize is a tool which can resize a virtual machine disk, making it "
27035 "larger or smaller overall, and resizing or deleting any partitions contained "
27036 "within."
27037 msgstr ""
27038
27039 # type: textblock
27040 #: ../tools/virt-resize.pl:56
27041 msgid ""
27042 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
27043 "not> be used on live virtual machines - for consistent results, shut the "
27044 "virtual machine down before resizing it."
27045 msgstr ""
27046
27047 # type: textblock
27048 #: ../tools/virt-resize.pl:60
27049 msgid ""
27050 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
27051 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
27052 msgstr ""
27053
27054 # type: textblock
27055 #: ../tools/virt-resize.pl:66
27056 msgid ""
27057 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
27058 "fill the extra 5GB of space."
27059 msgstr ""
27060
27061 # type: verbatim
27062 #: ../tools/virt-resize.pl:69
27063 #, no-wrap
27064 msgid ""
27065 " truncate -r olddisk newdisk; truncate -s +5G newdisk\n"
27066 " virt-filesystems --long --h --all -a olddisk\n"
27067 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
27068 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
27069 "\n"
27070 msgstr ""
27071
27072 # type: textblock
27073 #: ../tools/virt-resize.pl:74
27074 msgid ""
27075 "As above, but make the /boot partition 200MB bigger, while giving the "
27076 "remaining space to /dev/sda2:"
27077 msgstr ""
27078
27079 # type: verbatim
27080 #: ../tools/virt-resize.pl:77
27081 #, no-wrap
27082 msgid ""
27083 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 olddisk newdisk\n"
27084 "\n"
27085 msgstr ""
27086
27087 # type: textblock
27088 #: ../tools/virt-resize.pl:79
27089 msgid "As above, but the output format will be uncompressed qcow2:"
27090 msgstr ""
27091
27092 # type: verbatim
27093 #: ../tools/virt-resize.pl:81
27094 #, no-wrap
27095 msgid ""
27096 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
27097 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
27098 "\n"
27099 msgstr ""
27100
27101 # type: =head1
27102 #: ../tools/virt-resize.pl:84
27103 msgid "DETAILED USAGE"
27104 msgstr ""
27105
27106 # type: =head2
27107 #: ../tools/virt-resize.pl:86
27108 msgid "EXPANDING A VIRTUAL MACHINE DISK"
27109 msgstr ""
27110
27111 # type: =item
27112 #: ../tools/virt-resize.pl:90
27113 msgid "1. Shut down the virtual machine"
27114 msgstr ""
27115
27116 # type: =item
27117 #: ../tools/virt-resize.pl:92
27118 msgid "2. Locate input disk image"
27119 msgstr ""
27120
27121 # type: textblock
27122 #: ../tools/virt-resize.pl:94
27123 msgid ""
27124 "Locate the input disk image (ie. the file or device on the host containing "
27125 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
27126 "dumpxml> like this to find the disk image name:"
27127 msgstr ""
27128
27129 # type: verbatim
27130 #: ../tools/virt-resize.pl:98
27131 #, no-wrap
27132 msgid ""
27133 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
27134 " Found 1 nodes:\n"
27135 " -- NODE --\n"
27136 " <source dev=\"/dev/vg/lv_guest\" />\n"
27137 "\n"
27138 msgstr ""
27139
27140 # type: =item
27141 #: ../tools/virt-resize.pl:103
27142 msgid "3. Look at current sizing"
27143 msgstr ""
27144
27145 # type: textblock
27146 #: ../tools/virt-resize.pl:105
27147 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
27148 msgstr ""
27149
27150 # type: verbatim
27151 #: ../tools/virt-resize.pl:108
27152 #, no-wrap
27153 msgid ""
27154 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
27155 " Name       Type       Size  Parent\n"
27156 " /dev/sda1  partition  101M  /dev/sda\n"
27157 " /dev/sda2  partition  7.9G  /dev/sda\n"
27158 " /dev/sda   device     8.0G  -\n"
27159 "\n"
27160 msgstr ""
27161
27162 # type: textblock
27163 #: ../tools/virt-resize.pl:114
27164 msgid ""
27165 "(This example is a virtual machine with an 8 GB disk which we would like to "
27166 "expand up to 10 GB)."
27167 msgstr ""
27168
27169 # type: =item
27170 #: ../tools/virt-resize.pl:117
27171 msgid "4. Create output disk"
27172 msgstr ""
27173
27174 # type: textblock
27175 #: ../tools/virt-resize.pl:119
27176 msgid ""
27177 "Virt-resize cannot do in-place disk modifications.  You have to have space "
27178 "to store the resized output disk."
27179 msgstr ""
27180
27181 # type: textblock
27182 #: ../tools/virt-resize.pl:122
27183 msgid "To store the resized disk image in a file, create a file of a suitable size:"
27184 msgstr ""
27185
27186 # type: verbatim
27187 #: ../tools/virt-resize.pl:125
27188 #, no-wrap
27189 msgid ""
27190 " # rm -f outdisk\n"
27191 " # truncate -s 10G outdisk\n"
27192 "\n"
27193 msgstr ""
27194
27195 # type: textblock
27196 #: ../tools/virt-resize.pl:128
27197 msgid "Or use L<lvcreate(1)> to create a logical volume:"
27198 msgstr ""
27199
27200 # type: verbatim
27201 #: ../tools/virt-resize.pl:130
27202 #, no-wrap
27203 msgid ""
27204 " # lvcreate -L 10G -n lv_name vg_name\n"
27205 "\n"
27206 msgstr ""
27207
27208 # type: textblock
27209 #: ../tools/virt-resize.pl:132
27210 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
27211 msgstr ""
27212
27213 # type: verbatim
27214 #: ../tools/virt-resize.pl:134
27215 #, no-wrap
27216 msgid ""
27217 " # virsh pool-list\n"
27218 " # virsh vol-create-as poolname newvol 10G\n"
27219 "\n"
27220 msgstr ""
27221
27222 # type: =item
27223 #: ../tools/virt-resize.pl:137
27224 msgid "5. Resize"
27225 msgstr ""
27226
27227 # type: textblock
27228 #: ../tools/virt-resize.pl:139
27229 msgid ""
27230 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
27231 "file) and the output disk.  The output disk is the one created in the "
27232 "previous step."
27233 msgstr ""
27234
27235 # type: verbatim
27236 #: ../tools/virt-resize.pl:143
27237 #, no-wrap
27238 msgid ""
27239 " # virt-resize indisk outdisk\n"
27240 "\n"
27241 msgstr ""
27242
27243 # type: textblock
27244 #: ../tools/virt-resize.pl:145
27245 msgid ""
27246 "This command just copies disk image C<indisk> to disk image C<outdisk> "
27247 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
27248 "larger, then an extra, empty partition is created at the end of the disk "
27249 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
27250 "error."
27251 msgstr ""
27252
27253 # type: textblock
27254 #: ../tools/virt-resize.pl:151
27255 msgid ""
27256 "More realistically you'd want to expand existing partitions in the disk "
27257 "image by passing extra options (for the full list see the L</OPTIONS> "
27258 "section below)."
27259 msgstr ""
27260
27261 # type: textblock
27262 #: ../tools/virt-resize.pl:155
27263 msgid ""
27264 "L</--expand> is the most useful option.  It expands the named partition "
27265 "within the disk to fill any extra space:"
27266 msgstr ""
27267
27268 # type: verbatim
27269 #: ../tools/virt-resize.pl:158
27270 #, no-wrap
27271 msgid ""
27272 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
27273 "\n"
27274 msgstr ""
27275
27276 # type: textblock
27277 #: ../tools/virt-resize.pl:160
27278 msgid ""
27279 "(In this case, an extra partition is I<not> created at the end of the disk, "
27280 "because there will be no unused space)."
27281 msgstr ""
27282
27283 # type: textblock
27284 #: ../tools/virt-resize.pl:163
27285 msgid ""
27286 "L</--resize> is the other commonly used option.  The following would "
27287 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
27288 "rest of the available space:"
27289 msgstr ""
27290
27291 # type: verbatim
27292 #: ../tools/virt-resize.pl:167
27293 #, no-wrap
27294 msgid ""
27295 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
27296 "     indisk outdisk\n"
27297 "\n"
27298 msgstr ""
27299
27300 # type: textblock
27301 #: ../tools/virt-resize.pl:170
27302 msgid ""
27303 "If the expanded partition in the image contains a filesystem or LVM PV, then "
27304 "if virt-resize knows how, it will resize the contents, the equivalent of "
27305 "calling a command such as L<pvresize(8)>, L<resize2fs(8)> or "
27306 "L<ntfsresize(8)>.  However virt-resize does not know how to resize some "
27307 "filesystems, so you would have to online resize them after booting the "
27308 "guest."
27309 msgstr ""
27310
27311 # type: textblock
27312 #: ../tools/virt-resize.pl:177
27313 msgid "Other options are covered below."
27314 msgstr ""
27315
27316 # type: =item
27317 #: ../tools/virt-resize.pl:179
27318 msgid "6. Test"
27319 msgstr ""
27320
27321 # type: textblock
27322 #: ../tools/virt-resize.pl:181
27323 msgid "Thoroughly test the new disk image I<before> discarding the old one."
27324 msgstr ""
27325
27326 # type: textblock
27327 #: ../tools/virt-resize.pl:183
27328 msgid "If you are using libvirt, edit the XML to point at the new disk:"
27329 msgstr ""
27330
27331 # type: verbatim
27332 #: ../tools/virt-resize.pl:185
27333 #, no-wrap
27334 msgid ""
27335 " # virsh edit guestname\n"
27336 "\n"
27337 msgstr ""
27338
27339 # type: textblock
27340 #: ../tools/virt-resize.pl:187
27341 msgid ""
27342 "Change E<lt>source ...E<gt>, see "
27343 "L<http://libvirt.org/formatdomain.html#elementsDisks>"
27344 msgstr ""
27345
27346 # type: textblock
27347 #: ../tools/virt-resize.pl:190
27348 msgid "Then start up the domain with the new, resized disk:"
27349 msgstr ""
27350
27351 # type: verbatim
27352 #: ../tools/virt-resize.pl:192
27353 #, no-wrap
27354 msgid ""
27355 " # virsh start guestname\n"
27356 "\n"
27357 msgstr ""
27358
27359 # type: textblock
27360 #: ../tools/virt-resize.pl:194
27361 msgid ""
27362 "and check that it still works.  See also the L</NOTES> section below for "
27363 "additional information."
27364 msgstr ""
27365
27366 # type: =item
27367 #: ../tools/virt-resize.pl:197
27368 msgid "7. Resize LVs etc inside the guest"
27369 msgstr ""
27370
27371 # type: textblock
27372 #: ../tools/virt-resize.pl:199
27373 msgid "(This can also be done offline using L<guestfish(1)>)"
27374 msgstr ""
27375
27376 # type: textblock
27377 #: ../tools/virt-resize.pl:201
27378 msgid ""
27379 "Once the guest has booted you should see the new space available, at least "
27380 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
27381 "may need to resize LVs inside PVs, and also resize filesystem types that "
27382 "virt-resize does not know how to expand."
27383 msgstr ""
27384
27385 # type: =head2
27386 #: ../tools/virt-resize.pl:208
27387 msgid "SHRINKING A VIRTUAL MACHINE DISK"
27388 msgstr ""
27389
27390 # type: textblock
27391 #: ../tools/virt-resize.pl:210
27392 msgid ""
27393 "Shrinking is somewhat more complex than expanding, and only an overview is "
27394 "given here."
27395 msgstr ""
27396
27397 # type: textblock
27398 #: ../tools/virt-resize.pl:213
27399 msgid ""
27400 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
27401 "filesystems).  The user has to shrink content before passing the disk image "
27402 "to virt-resize, and virt-resize will check that the content has been shrunk "
27403 "properly."
27404 msgstr ""
27405
27406 # type: textblock
27407 #: ../tools/virt-resize.pl:218
27408 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
27409 msgstr ""
27410
27411 # type: textblock
27412 #: ../tools/virt-resize.pl:220
27413 msgid ""
27414 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
27415 "steps 3 and 4 above to allocate a new disk image."
27416 msgstr ""
27417
27418 # type: textblock
27419 #: ../tools/virt-resize.pl:223
27420 msgid "Then run virt-resize with any of the C<--shrink> and/or C<--resize> options."
27421 msgstr ""
27422
27423 # type: =head2
27424 #: ../tools/virt-resize.pl:226
27425 msgid "IGNORING OR DELETING PARTITIONS"
27426 msgstr ""
27427
27428 # type: textblock
27429 #: ../tools/virt-resize.pl:228
27430 msgid ""
27431 "virt-resize also gives a convenient way to ignore or delete partitions when "
27432 "copying from the input disk to the output disk.  Ignoring a partition speeds "
27433 "up the copy where you don't care about the existing contents of a "
27434 "partition.  Deleting a partition removes it completely, but note that it "
27435 "also renumbers any partitions after the one which is deleted, which can "
27436 "leave some guests unbootable."
27437 msgstr ""
27438
27439 # type: =head2
27440 #: ../tools/virt-resize.pl:235
27441 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
27442 msgstr ""
27443
27444 # type: textblock
27445 #: ../tools/virt-resize.pl:237
27446 msgid ""
27447 "If the input disk is in qcow2 format, then you may prefer that the output is "
27448 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
27449 "the fly.  The output format is simply determined by the format of the empty "
27450 "output container that you provide.  Thus to create qcow2 output, use:"
27451 msgstr ""
27452
27453 # type: verbatim
27454 #: ../tools/virt-resize.pl:243
27455 #, no-wrap
27456 msgid ""
27457 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
27458 "\n"
27459 msgstr ""
27460
27461 # type: textblock
27462 #: ../tools/virt-resize.pl:245
27463 msgid "instead of the truncate command (use C<-c> for a compressed disk)."
27464 msgstr ""
27465
27466 # type: textblock
27467 #: ../tools/virt-resize.pl:247
27468 msgid "Similarly, to get non-sparse raw output use:"
27469 msgstr ""
27470
27471 # type: verbatim
27472 #: ../tools/virt-resize.pl:249
27473 #, no-wrap
27474 msgid ""
27475 " fallocate -l size outdisk\n"
27476 "\n"
27477 msgstr ""
27478
27479 # type: textblock
27480 #: ../tools/virt-resize.pl:251
27481 msgid ""
27482 "(on older systems that don't have the L<fallocate(1)> command use C<dd "
27483 "if=/dev/zero of=outdisk bs=1M count=..>)"
27484 msgstr ""
27485
27486 # type: textblock
27487 #: ../tools/virt-resize.pl:264
27488 msgid "Display help."
27489 msgstr ""
27490
27491 # type: =item
27492 #: ../tools/virt-resize.pl:278
27493 msgid "B<--resize part=size>"
27494 msgstr ""
27495
27496 # type: textblock
27497 #: ../tools/virt-resize.pl:280
27498 msgid ""
27499 "Resize the named partition (expanding or shrinking it) so that it has the "
27500 "given size."
27501 msgstr ""
27502
27503 # type: textblock
27504 #: ../tools/virt-resize.pl:283
27505 msgid ""
27506 "C<size> can be expressed as an absolute number followed by b/K/M/G/T/P/E to "
27507 "mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Petabytes or "
27508 "Exabytes; or as a percentage of the current size; or as a relative number or "
27509 "percentage.  For example:"
27510 msgstr ""
27511
27512 # type: verbatim
27513 #: ../tools/virt-resize.pl:288
27514 #, no-wrap
27515 msgid ""
27516 " --resize /dev/sda2=10G\n"
27517 "\n"
27518 msgstr ""
27519
27520 # type: verbatim
27521 #: ../tools/virt-resize.pl:290
27522 #, no-wrap
27523 msgid ""
27524 " --resize /dev/sda4=90%\n"
27525 "\n"
27526 msgstr ""
27527
27528 # type: verbatim
27529 #: ../tools/virt-resize.pl:292
27530 #, no-wrap
27531 msgid ""
27532 " --resize /dev/sda2=+1G\n"
27533 "\n"
27534 msgstr ""
27535
27536 # type: verbatim
27537 #: ../tools/virt-resize.pl:294
27538 #, no-wrap
27539 msgid ""
27540 " --resize /dev/sda2=-200M\n"
27541 "\n"
27542 msgstr ""
27543
27544 # type: verbatim
27545 #: ../tools/virt-resize.pl:296
27546 #, no-wrap
27547 msgid ""
27548 " --resize /dev/sda1=+128K\n"
27549 "\n"
27550 msgstr ""
27551
27552 # type: verbatim
27553 #: ../tools/virt-resize.pl:298
27554 #, no-wrap
27555 msgid ""
27556 " --resize /dev/sda1=+10%\n"
27557 "\n"
27558 msgstr ""
27559
27560 # type: verbatim
27561 #: ../tools/virt-resize.pl:300
27562 #, no-wrap
27563 msgid ""
27564 " --resize /dev/sda1=-10%\n"
27565 "\n"
27566 msgstr ""
27567
27568 # type: textblock
27569 #: ../tools/virt-resize.pl:302
27570 msgid ""
27571 "You can increase the size of any partition.  Virt-resize will expand the "
27572 "direct content of the partition if it knows how (see C<--expand> below)."
27573 msgstr ""
27574
27575 # type: textblock
27576 #: ../tools/virt-resize.pl:306
27577 msgid ""
27578 "You can only I<decrease> the size of partitions that contain filesystems or "
27579 "PVs which have already been shrunk.  Virt-resize will check this has been "
27580 "done before proceeding, or else will print an error (see also "
27581 "C<--resize-force>)."
27582 msgstr ""
27583
27584 # type: textblock
27585 #: ../tools/virt-resize.pl:311 ../tools/virt-resize.pl:403 ../tools/virt-resize.pl:420
27586 msgid "You can give this option multiple times."
27587 msgstr ""
27588
27589 # type: =item
27590 #: ../tools/virt-resize.pl:317
27591 msgid "B<--resize-force part=size>"
27592 msgstr ""
27593
27594 # type: textblock
27595 #: ../tools/virt-resize.pl:319
27596 msgid ""
27597 "This is the same as C<--resize> except that it will let you decrease the "
27598 "size of any partition.  Generally this means you will lose any data which "
27599 "was at the end of the partition you shrink, but you may not care about that "
27600 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
27601 "as a swap partition)."
27602 msgstr ""
27603
27604 # type: textblock
27605 #: ../tools/virt-resize.pl:325
27606 msgid "See also the C<--ignore> option."
27607 msgstr ""
27608
27609 # type: =item
27610 #: ../tools/virt-resize.pl:331
27611 msgid "B<--expand part>"
27612 msgstr ""
27613
27614 # type: textblock
27615 #: ../tools/virt-resize.pl:333
27616 msgid ""
27617 "Expand the named partition so it uses up all extra space (space left over "
27618 "after any other resize changes that you request have been done)."
27619 msgstr ""
27620
27621 # type: textblock
27622 #: ../tools/virt-resize.pl:336
27623 msgid ""
27624 "If virt-resize knows how, it will expand the direct content of the "
27625 "partition.  For example, if the partition is an LVM PV, it will expand the "
27626 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
27627 "content it doesn't know about alone."
27628 msgstr ""
27629
27630 # type: textblock
27631 #: ../tools/virt-resize.pl:341
27632 msgid "Currently virt-resize can resize:"
27633 msgstr ""
27634
27635 # type: textblock
27636 #: ../tools/virt-resize.pl:347
27637 msgid ""
27638 "ext2, ext3 and ext4 filesystems when they are contained directly inside a "
27639 "partition."
27640 msgstr ""
27641
27642 # type: textblock
27643 #: ../tools/virt-resize.pl:352
27644 msgid ""
27645 "NTFS filesystems contained directly in a partition, if libguestfs was "
27646 "compiled with support for NTFS."
27647 msgstr ""
27648
27649 # type: textblock
27650 #: ../tools/virt-resize.pl:355
27651 msgid ""
27652 "The filesystem must have been shut down consistently last time it was used.  "
27653 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
27654 "consistency check, so at the first boot after resizing Windows will check "
27655 "the disk."
27656 msgstr ""
27657
27658 # type: textblock
27659 #: ../tools/virt-resize.pl:362
27660 msgid ""
27661 "LVM PVs (physical volumes).  virt-resize does not usually resize anything "
27662 "inside the PV, but see the C<--LV-expand> option.  The user could also "
27663 "resize LVs as desired after boot."
27664 msgstr ""
27665
27666 # type: textblock
27667 #: ../tools/virt-resize.pl:368 ../tools/virt-resize.pl:390
27668 msgid "Note that you cannot use C<--expand> and C<--shrink> together."
27669 msgstr ""
27670
27671 # type: =item
27672 #: ../tools/virt-resize.pl:374
27673 msgid "B<--shrink part>"
27674 msgstr ""
27675
27676 # type: textblock
27677 #: ../tools/virt-resize.pl:376
27678 msgid ""
27679 "Shrink the named partition until the overall disk image fits in the "
27680 "destination.  The named partition B<must> contain a filesystem or PV which "
27681 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
27682 "online tools).  Virt-resize will check this and give an error if it has not "
27683 "been done."
27684 msgstr ""
27685
27686 # type: textblock
27687 #: ../tools/virt-resize.pl:382
27688 msgid ""
27689 "The amount by which the overall disk must be shrunk (after carrying out all "
27690 "other operations requested by the user) is called the \"deficit\".  For "
27691 "example, a straight copy (assume no other operations)  from a 5GB disk image "
27692 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
27693 "would give an error unless the user specified a partition to shrink and that "
27694 "partition had more than a gigabyte of free space."
27695 msgstr ""
27696
27697 # type: =item
27698 #: ../tools/virt-resize.pl:396
27699 msgid "B<--ignore part>"
27700 msgstr ""
27701
27702 # type: textblock
27703 #: ../tools/virt-resize.pl:398
27704 msgid ""
27705 "Ignore the named partition.  Effectively this means the partition is "
27706 "allocated on the destination disk, but the content is not copied across from "
27707 "the source disk.  The content of the partition will be blank (all zero "
27708 "bytes)."
27709 msgstr ""
27710
27711 # type: =item
27712 #: ../tools/virt-resize.pl:409
27713 msgid "B<--delete part>"
27714 msgstr ""
27715
27716 # type: textblock
27717 #: ../tools/virt-resize.pl:411
27718 msgid ""
27719 "Delete the named partition.  It would be more accurate to describe this as "
27720 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
27721 "the original disk image is left intact."
27722 msgstr ""
27723
27724 # type: textblock
27725 #: ../tools/virt-resize.pl:415
27726 msgid ""
27727 "Note that when you delete a partition, then anything contained in the "
27728 "partition is also deleted.  Furthermore, this causes any partitions that "
27729 "come after to be I<renumbered>, which can easily make your guest unbootable."
27730 msgstr ""
27731
27732 # type: =item
27733 #: ../tools/virt-resize.pl:426
27734 msgid "B<--LV-expand logvol>"
27735 msgstr ""
27736
27737 # type: textblock
27738 #: ../tools/virt-resize.pl:428
27739 msgid ""
27740 "This takes the logical volume and, as a final step, expands it to fill all "
27741 "the space available in its volume group.  A typical usage, assuming a Linux "
27742 "guest with a single PV C</dev/sda2> and a root device called "
27743 "C</dev/vg_guest/lv_root> would be:"
27744 msgstr ""
27745
27746 # type: verbatim
27747 #: ../tools/virt-resize.pl:433
27748 #, no-wrap
27749 msgid ""
27750 " virt-resize indisk outdisk \\\n"
27751 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
27752 "\n"
27753 msgstr ""
27754
27755 # type: textblock
27756 #: ../tools/virt-resize.pl:436
27757 msgid ""
27758 "This would first expand the partition (and PV), and then expand the root "
27759 "device to fill the extra space in the PV."
27760 msgstr ""
27761
27762 # type: textblock
27763 #: ../tools/virt-resize.pl:439
27764 msgid ""
27765 "The contents of the LV are also resized if virt-resize knows how to do "
27766 "that.  You can stop virt-resize from trying to expand the content by using "
27767 "the option C<--no-expand-content>."
27768 msgstr ""
27769
27770 # type: textblock
27771 #: ../tools/virt-resize.pl:443
27772 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
27773 msgstr ""
27774
27775 # type: textblock
27776 #: ../tools/virt-resize.pl:446
27777 msgid ""
27778 "You can give this option multiple times, I<but> it doesn't make sense to do "
27779 "this unless the logical volumes you specify are all in different volume "
27780 "groups."
27781 msgstr ""
27782
27783 # type: =item
27784 #: ../tools/virt-resize.pl:454
27785 msgid "B<--no-copy-boot-loader>"
27786 msgstr ""
27787
27788 # type: textblock
27789 #: ../tools/virt-resize.pl:456
27790 msgid ""
27791 "By default, virt-resize copies over some sectors at the start of the disk "
27792 "(up to the beginning of the first partition).  Commonly these sectors "
27793 "contain the Master Boot Record (MBR) and the boot loader, and are required "
27794 "in order for the guest to boot correctly."
27795 msgstr ""
27796
27797 # type: textblock
27798 #: ../tools/virt-resize.pl:461
27799 msgid ""
27800 "If you specify this flag, then this initial copy is not done.  You may need "
27801 "to reinstall the boot loader in this case."
27802 msgstr ""
27803
27804 # type: =item
27805 #: ../tools/virt-resize.pl:469
27806 msgid "B<--no-extra-partition>"
27807 msgstr ""
27808
27809 # type: textblock
27810 #: ../tools/virt-resize.pl:471
27811 msgid ""
27812 "By default, virt-resize creates an extra partition if there is any extra, "
27813 "unused space after all resizing has happened.  Use this option to prevent "
27814 "the extra partition from being created.  If you do this then the extra space "
27815 "will be inaccessible until you run fdisk, parted, or some other partitioning "
27816 "tool in the guest."
27817 msgstr ""
27818
27819 # type: textblock
27820 #: ../tools/virt-resize.pl:477
27821 msgid ""
27822 "Note that if the surplus space is smaller than 10 MB, no extra partition "
27823 "will be created."
27824 msgstr ""
27825
27826 # type: =item
27827 #: ../tools/virt-resize.pl:484
27828 msgid "B<--no-expand-content>"
27829 msgstr ""
27830
27831 # type: textblock
27832 #: ../tools/virt-resize.pl:486
27833 msgid ""
27834 "By default, virt-resize will try to expand the direct contents of "
27835 "partitions, if it knows how (see C<--expand> option above)."
27836 msgstr ""
27837
27838 # type: textblock
27839 #: ../tools/virt-resize.pl:489
27840 msgid ""
27841 "If you give the C<--no-expand-content> option then virt-resize will not "
27842 "attempt this."
27843 msgstr ""
27844
27845 # type: =item
27846 #: ../tools/virt-resize.pl:496
27847 msgid "B<-d> | B<--debug>"
27848 msgstr ""
27849
27850 # type: =item
27851 #: ../tools/virt-resize.pl:504
27852 msgid "B<-n> | B<--dryrun>"
27853 msgstr ""
27854
27855 # type: textblock
27856 #: ../tools/virt-resize.pl:506
27857 msgid "Print a summary of what would be done, but don't do anything."
27858 msgstr ""
27859
27860 # type: =item
27861 #: ../tools/virt-resize.pl:512
27862 msgid "B<-q> | B<--quiet>"
27863 msgstr ""
27864
27865 # type: textblock
27866 #: ../tools/virt-resize.pl:514
27867 msgid "Don't print the summary."
27868 msgstr ""
27869
27870 # type: textblock
27871 #: ../tools/virt-resize.pl:522
27872 msgid ""
27873 "Specify the format of the input disk image.  If this flag is not given then "
27874 "it is auto-detected from the image itself."
27875 msgstr ""
27876
27877 # type: textblock
27878 #: ../tools/virt-resize.pl:528
27879 msgid ""
27880 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
27881 "AND NON-SPARSE RAW FORMATS>."
27882 msgstr ""
27883
27884 # type: =item
27885 #: ../tools/virt-resize.pl:535
27886 msgid "B<--output-format> raw"
27887 msgstr ""
27888
27889 # type: textblock
27890 #: ../tools/virt-resize.pl:537
27891 msgid ""
27892 "Specify the format of the output disk image.  If this flag is not given then "
27893 "it is auto-detected from the image itself."
27894 msgstr ""
27895
27896 # type: textblock
27897 #: ../tools/virt-resize.pl:543
27898 msgid ""
27899 "Note that you still need to create the output disk with the right format.  "
27900 "See L</QCOW2 AND NON-SPARSE RAW FORMATS>."
27901 msgstr ""
27902
27903 # type: =head1
27904 #: ../tools/virt-resize.pl:1419
27905 msgid "NOTES"
27906 msgstr ""
27907
27908 # type: =head2
27909 #: ../tools/virt-resize.pl:1421
27910 msgid "\"Partition 1 does not end on cylinder boundary.\""
27911 msgstr ""
27912
27913 # type: textblock
27914 #: ../tools/virt-resize.pl:1423
27915 msgid ""
27916 "Virt-resize aligns partitions to multiples of 64 sectors.  Usually this "
27917 "means the partitions will not be aligned to the ancient CHS geometry.  "
27918 "However CHS geometry is meaningless for disks manufactured since the early "
27919 "1990s, and doubly so for virtual hard drives.  Alignment of partitions to "
27920 "cylinders is not required by any modern operating system."
27921 msgstr ""
27922
27923 # type: =head2
27924 #: ../tools/virt-resize.pl:1430
27925 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
27926 msgstr ""
27927
27928 # type: textblock
27929 #: ../tools/virt-resize.pl:1432
27930 msgid ""
27931 "In Windows Vista and later versions, Microsoft switched to using a separate "
27932 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
27933 "and C</dev/sda2> is the main (C:) drive.  We have not had any luck resizing "
27934 "the boot partition.  Doing so seems to break the guest completely.  However "
27935 "expanding the second partition (ie. C: drive) should work."
27936 msgstr ""
27937
27938 # type: textblock
27939 #: ../tools/virt-resize.pl:1439
27940 msgid ""
27941 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
27942 "NTFS partitions have been expanded.  This is just a safety check and (unless "
27943 "it find errors) is nothing to worry about."
27944 msgstr ""
27945
27946 # type: =head2
27947 #: ../tools/virt-resize.pl:1443
27948 msgid "GUEST BOOT STUCK AT \"GRUB\""
27949 msgstr ""
27950
27951 # type: textblock
27952 #: ../tools/virt-resize.pl:1445
27953 msgid ""
27954 "If a Linux guest does not boot after resizing, and the boot is stuck after "
27955 "printing C<GRUB> on the console, try reinstalling grub.  This sometimes "
27956 "happens on older (RHEL 5-era) guests, for reasons we don't fully understand, "
27957 "although we think is to do with partition alignment."
27958 msgstr ""
27959
27960 # type: verbatim
27961 #: ../tools/virt-resize.pl:1450
27962 #, no-wrap
27963 msgid ""
27964 " guestfish -i -a newdisk\n"
27965 " ><fs> cat /boot/grub/device.map\n"
27966 " # check the contents of this file are sensible or\n"
27967 " # edit the file if necessary\n"
27968 " ><fs> grub-install / /dev/vda\n"
27969 " ><fs> exit\n"
27970 "\n"
27971 msgstr ""
27972
27973 # type: textblock
27974 #: ../tools/virt-resize.pl:1457
27975 msgid ""
27976 "For more flexible guest reconfiguration, including if you need to specify "
27977 "other parameters to grub-install, use L<virt-rescue(1)>."
27978 msgstr ""
27979
27980 # type: =head1
27981 #: ../tools/virt-resize.pl:1460
27982 msgid "ALTERNATIVE TOOLS"
27983 msgstr ""
27984
27985 # type: textblock
27986 #: ../tools/virt-resize.pl:1462
27987 msgid ""
27988 "There are several proprietary tools for resizing partitions.  We won't "
27989 "mention any here."
27990 msgstr ""
27991
27992 # type: textblock
27993 #: ../tools/virt-resize.pl:1465
27994 msgid ""
27995 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
27996 "operations on disk images.  They can resize and move partitions, but I don't "
27997 "think they can do anything with the contents, and they certainly don't "
27998 "understand LVM."
27999 msgstr ""
28000
28001 # type: textblock
28002 #: ../tools/virt-resize.pl:1470
28003 msgid ""
28004 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
28005 "but at a much lower level.  You will probably end up hand-calculating sector "
28006 "offsets, which is something that virt-resize was designed to avoid.  If you "
28007 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
28008 "C<--debug> flag."
28009 msgstr ""
28010
28011 # type: textblock
28012 #: ../tools/virt-resize.pl:1485
28013 msgid ""
28014 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, "
28015 "L<lvm(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, "
28016 "L<ntfsresize(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)>, "
28017 "L<fallocate(1)>, L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, "
28018 "L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
28019 msgstr ""
28020
28021 # type: textblock
28022 #: ../tools/virt-list-filesystems.pl:32
28023 msgid "virt-list-filesystems - List filesystems in a virtual machine or disk image"
28024 msgstr ""
28025
28026 # type: verbatim
28027 #: ../tools/virt-list-filesystems.pl:36
28028 #, no-wrap
28029 msgid ""
28030 " virt-list-filesystems [--options] domname\n"
28031 "\n"
28032 msgstr ""
28033
28034 # type: verbatim
28035 #: ../tools/virt-list-filesystems.pl:38
28036 #, no-wrap
28037 msgid ""
28038 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
28039 "\n"
28040 msgstr ""
28041
28042 # type: textblock
28043 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
28044 msgid ""
28045 "This tool is obsolete.  Use L<virt-filesystems(1)> as a more flexible "
28046 "replacement."
28047 msgstr ""
28048
28049 # type: textblock
28050 #: ../tools/virt-list-filesystems.pl:45
28051 msgid ""
28052 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
28053 "are contained in a virtual machine or disk image."
28054 msgstr ""
28055
28056 # type: textblock
28057 #: ../tools/virt-list-filesystems.pl:49
28058 msgid ""
28059 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
28060 "functionality.  For more complex cases you should look at the "
28061 "L<guestfish(1)> tool."
28062 msgstr ""
28063
28064 # type: =item
28065 #: ../tools/virt-list-filesystems.pl:106 ../tools/virt-list-partitions.pl:115
28066 msgid "B<-l> | B<--long>"
28067 msgstr ""
28068
28069 # type: textblock
28070 #: ../tools/virt-list-filesystems.pl:108
28071 msgid ""
28072 "With this option, C<virt-list-filesystems> displays the type of each "
28073 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
28074 msgstr ""
28075
28076 # type: =item
28077 #: ../tools/virt-list-filesystems.pl:115
28078 msgid "B<-a> | B<--all>"
28079 msgstr ""
28080
28081 # type: textblock
28082 #: ../tools/virt-list-filesystems.pl:117
28083 msgid ""
28084 "Normally we only show mountable filesystems.  If this option is given then "
28085 "swap devices are shown too."
28086 msgstr ""
28087
28088 # type: textblock
28089 #: ../tools/virt-list-filesystems.pl:191
28090 msgid ""
28091 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, "
28092 "L<virt-filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, "
28093 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
28094 msgstr ""
28095
28096 # type: textblock
28097 #: ../tools/virt-list-filesystems.pl:208 ../tools/virt-tar.pl:298
28098 msgid "Copyright (C) 2009 Red Hat Inc."
28099 msgstr ""
28100
28101 # type: textblock
28102 #: ../tools/virt-tar.pl:33
28103 msgid "virt-tar - Extract or upload files to a virtual machine"
28104 msgstr ""
28105
28106 # type: verbatim
28107 #: ../tools/virt-tar.pl:37
28108 #, no-wrap
28109 msgid ""
28110 " virt-tar [--options] -x domname directory tarball\n"
28111 "\n"
28112 msgstr ""
28113
28114 # type: verbatim
28115 #: ../tools/virt-tar.pl:39
28116 #, no-wrap
28117 msgid ""
28118 " virt-tar [--options] -u domname tarball directory\n"
28119 "\n"
28120 msgstr ""
28121
28122 # type: verbatim
28123 #: ../tools/virt-tar.pl:41
28124 #, no-wrap
28125 msgid ""
28126 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
28127 "\n"
28128 msgstr ""
28129
28130 # type: verbatim
28131 #: ../tools/virt-tar.pl:43
28132 #, no-wrap
28133 msgid ""
28134 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
28135 "\n"
28136 msgstr ""
28137
28138 # type: textblock
28139 #: ../tools/virt-tar.pl:47
28140 msgid "Download C</home> from the VM into a local tarball:"
28141 msgstr ""
28142
28143 # type: verbatim
28144 #: ../tools/virt-tar.pl:49
28145 #, no-wrap
28146 msgid ""
28147 " virt-tar -x domname /home home.tar\n"
28148 "\n"
28149 msgstr ""
28150
28151 # type: verbatim
28152 #: ../tools/virt-tar.pl:51
28153 #, no-wrap
28154 msgid ""
28155 " virt-tar -zx domname /home home.tar.gz\n"
28156 "\n"
28157 msgstr ""
28158
28159 # type: textblock
28160 #: ../tools/virt-tar.pl:53
28161 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
28162 msgstr ""
28163
28164 # type: verbatim
28165 #: ../tools/virt-tar.pl:55
28166 #, no-wrap
28167 msgid ""
28168 " virt-tar -u domname uploadstuff.tar /tmp\n"
28169 "\n"
28170 msgstr ""
28171
28172 # type: verbatim
28173 #: ../tools/virt-tar.pl:57
28174 #, no-wrap
28175 msgid ""
28176 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
28177 "\n"
28178 msgstr ""
28179
28180 # type: textblock
28181 #: ../tools/virt-tar.pl:61
28182 msgid ""
28183 "You must I<not> use C<virt-tar> with the C<-u> option (upload) on live "
28184 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
28185 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
28186 msgstr ""
28187
28188 # type: textblock
28189 #: ../tools/virt-tar.pl:66
28190 msgid ""
28191 "You can use C<-x> (extract) on live virtual machines, but you might get "
28192 "inconsistent results or errors if there is filesystem activity inside the "
28193 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
28194 "work, but the only way to guarantee consistent results is if the virtual "
28195 "machine is shut down."
28196 msgstr ""
28197
28198 # type: textblock
28199 #: ../tools/virt-tar.pl:74
28200 msgid ""
28201 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
28202 "parts of a guest filesystem.  There are many possibilities: making backups, "
28203 "uploading data files, snooping on guest activity, fixing or customizing "
28204 "guests, etc."
28205 msgstr ""
28206
28207 # type: textblock
28208 #: ../tools/virt-tar.pl:79
28209 msgid ""
28210 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
28211 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
28212 "should look at the L<guestfish(1)> tool."
28213 msgstr ""
28214
28215 # type: textblock
28216 #: ../tools/virt-tar.pl:83
28217 msgid ""
28218 "There are two modes of operation: C<-x> (eXtract) downloads a directory and "
28219 "its contents (recursively) from the virtual machine into a local tarball.  "
28220 "C<-u> uploads from a local tarball, unpacking it into a directory inside the "
28221 "virtual machine.  You cannot use these two options together."
28222 msgstr ""
28223
28224 # type: textblock
28225 #: ../tools/virt-tar.pl:89
28226 msgid ""
28227 "In addition, you may need to use the C<-z> (gZip) option to enable "
28228 "compression.  When uploading, you have to specify C<-z> if the upload file "
28229 "is compressed because virt-tar won't detect this on its own."
28230 msgstr ""
28231
28232 # type: textblock
28233 #: ../tools/virt-tar.pl:93
28234 msgid ""
28235 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
28236 "example it cannot do PKZip files or bzip2 compression.  If you want that "
28237 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
28238 "the L<libguestfs(3)> API)."
28239 msgstr ""
28240
28241 # type: =item
28242 #: ../tools/virt-tar.pl:151
28243 msgid "B<-x> | B<--extract> | B<--download>"
28244 msgstr ""
28245
28246 # type: =item
28247 #: ../tools/virt-tar.pl:153
28248 msgid "B<-u> | B<--upload>"
28249 msgstr ""
28250
28251 # type: textblock
28252 #: ../tools/virt-tar.pl:155
28253 msgid ""
28254 "Use C<-x> to extract (download) a directory from a virtual machine to a "
28255 "local tarball."
28256 msgstr ""
28257
28258 # type: textblock
28259 #: ../tools/virt-tar.pl:158
28260 msgid ""
28261 "Use C<-u> to upload and unpack from a local tarball into a virtual machine.  "
28262 "Please read the L</WARNING> section above before using this option."
28263 msgstr ""
28264
28265 # type: textblock
28266 #: ../tools/virt-tar.pl:162
28267 msgid "You must specify exactly one of these options."
28268 msgstr ""
28269
28270 # type: =item
28271 #: ../tools/virt-tar.pl:168
28272 msgid "B<-z> | B<--gzip>"
28273 msgstr ""
28274
28275 # type: textblock
28276 #: ../tools/virt-tar.pl:170
28277 msgid "Specify that the input or output tarball is gzip-compressed."
28278 msgstr ""
28279
28280 # type: textblock
28281 #: ../tools/virt-tar.pl:283
28282 msgid ""
28283 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
28284 "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
28285 "L<http://libguestfs.org/>."
28286 msgstr ""
28287
28288 # type: textblock
28289 #: ../tools/virt-make-fs.pl:37
28290 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
28291 msgstr ""
28292
28293 # type: verbatim
28294 #: ../tools/virt-make-fs.pl:41
28295 #, no-wrap
28296 msgid ""
28297 " virt-make-fs [--options] input.tar output.img\n"
28298 "\n"
28299 msgstr ""
28300
28301 # type: verbatim
28302 #: ../tools/virt-make-fs.pl:43
28303 #, no-wrap
28304 msgid ""
28305 " virt-make-fs [--options] input.tar.gz output.img\n"
28306 "\n"
28307 msgstr ""
28308
28309 # type: verbatim
28310 #: ../tools/virt-make-fs.pl:45
28311 #, no-wrap
28312 msgid ""
28313 " virt-make-fs [--options] directory output.img\n"
28314 "\n"
28315 msgstr ""
28316
28317 # type: textblock
28318 #: ../tools/virt-make-fs.pl:49
28319 msgid ""
28320 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
28321 "archive or some files in a directory.  It is similar to tools like "
28322 "L<mkisofs(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, "
28323 "it can create common filesystem types like ext2/3 or NTFS, which can be "
28324 "useful if you want to attach these filesystems to existing virtual machines "
28325 "(eg. to import large amounts of read-only data to a VM)."
28326 msgstr ""
28327
28328 # type: textblock
28329 #: ../tools/virt-make-fs.pl:57
28330 msgid "Basic usage is:"
28331 msgstr ""
28332
28333 # type: verbatim
28334 #: ../tools/virt-make-fs.pl:59
28335 #, no-wrap
28336 msgid ""
28337 " virt-make-fs input output\n"
28338 "\n"
28339 msgstr ""
28340
28341 # type: textblock
28342 #: ../tools/virt-make-fs.pl:61
28343 msgid ""
28344 "where C<input> is either a directory containing files that you want to add, "
28345 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
28346 "C<output> is a disk image.  The input type is detected automatically.  The "
28347 "output disk image defaults to a raw ext2 image unless you specify extra "
28348 "flags (see L</OPTIONS> below)."
28349 msgstr ""
28350
28351 # type: =head2
28352 #: ../tools/virt-make-fs.pl:67
28353 msgid "EXTRA SPACE"
28354 msgstr ""
28355
28356 # type: textblock
28357 #: ../tools/virt-make-fs.pl:69
28358 msgid ""
28359 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
28360 "the files that it contains, but might have extra space.  Depending on how "
28361 "you are going to use the output, you might think this extra space is wasted "
28362 "and want to minimize it, or you might want to leave space so that more files "
28363 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
28364 "but you can use the C<--size> flag to leave space in the filesystem if you "
28365 "want it."
28366 msgstr ""
28367
28368 # type: textblock
28369 #: ../tools/virt-make-fs.pl:77
28370 msgid ""
28371 "An alternative way to leave extra space but not make the output image any "
28372 "bigger is to use an alternative disk image format (instead of the default "
28373 "\"raw\" format).  Using C<--format=qcow2> will use the native QEmu/KVM qcow2 "
28374 "image format (check your hypervisor supports this before using it).  This "
28375 "allows you to choose a large C<--size> but the extra space won't actually be "
28376 "allocated in the image until you try to store something in it."
28377 msgstr ""
28378
28379 # type: textblock
28380 #: ../tools/virt-make-fs.pl:85
28381 msgid ""
28382 "Don't forget that you can also use local commands including L<resize2fs(8)> "
28383 "and L<virt-resize(1)> to resize existing filesystems, or rerun "
28384 "virt-make-resize to build another image from scratch."
28385 msgstr ""
28386
28387 # type: =head3
28388 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123 ../tools/virt-make-fs.pl:142
28389 msgid "EXAMPLE"
28390 msgstr ""
28391
28392 # type: verbatim
28393 #: ../tools/virt-make-fs.pl:91
28394 #, no-wrap
28395 msgid ""
28396 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
28397 "\n"
28398 msgstr ""
28399
28400 # type: =head2
28401 #: ../tools/virt-make-fs.pl:93
28402 msgid "FILESYSTEM TYPE"
28403 msgstr ""
28404
28405 # type: textblock
28406 #: ../tools/virt-make-fs.pl:95
28407 msgid ""
28408 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
28409 "libguestfs supports can be used (but I<not> read-only formats like "
28410 "ISO9660).  Here are some of the more common choices:"
28411 msgstr ""
28412
28413 # type: =item
28414 #: ../tools/virt-make-fs.pl:101
28415 msgid "I<ext3>"
28416 msgstr ""
28417
28418 # type: textblock
28419 #: ../tools/virt-make-fs.pl:103
28420 msgid ""
28421 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
28422 "you are not going to use the filesystem in a way that requires the journal, "
28423 "then this is just wasted overhead."
28424 msgstr ""
28425
28426 # type: =item
28427 #: ../tools/virt-make-fs.pl:107
28428 msgid "I<ntfs> or I<vfat>"
28429 msgstr ""
28430
28431 # type: textblock
28432 #: ../tools/virt-make-fs.pl:109
28433 msgid "Useful if exporting data to a Windows guest."
28434 msgstr ""
28435
28436 # type: textblock
28437 #: ../tools/virt-make-fs.pl:111
28438 msgid ""
28439 "I<Note for vfat>: The tar archive or local directory must only contain files "
28440 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
28441 "program running within libguestfs is unable to change the ownership of "
28442 "non-root files, since vfat itself does not support this."
28443 msgstr ""
28444
28445 # type: =item
28446 #: ../tools/virt-make-fs.pl:116
28447 msgid "I<minix>"
28448 msgstr ""
28449
28450 # type: textblock
28451 #: ../tools/virt-make-fs.pl:118
28452 msgid ""
28453 "Lower overhead than C<ext2>, but certain limitations on filename length and "
28454 "total filesystem size."
28455 msgstr ""
28456
28457 # type: verbatim
28458 #: ../tools/virt-make-fs.pl:125
28459 #, no-wrap
28460 msgid ""
28461 " virt-make-fs --type=minix input minixfs.img\n"
28462 "\n"
28463 msgstr ""
28464
28465 # type: =head2
28466 #: ../tools/virt-make-fs.pl:127
28467 msgid "TO PARTITION OR NOT TO PARTITION"
28468 msgstr ""
28469
28470 # type: textblock
28471 #: ../tools/virt-make-fs.pl:129
28472 msgid "Optionally virt-make-fs can add a partition table to the output disk."
28473 msgstr ""
28474
28475 # type: textblock
28476 #: ../tools/virt-make-fs.pl:131
28477 msgid ""
28478 "Adding a partition can make the disk image more compatible with certain "
28479 "virtualized operating systems which don't expect to see a filesystem "
28480 "directly located on a block device (Linux doesn't care and will happily "
28481 "handle both types)."
28482 msgstr ""
28483
28484 # type: textblock
28485 #: ../tools/virt-make-fs.pl:136
28486 msgid ""
28487 "On the other hand, if you have a partition table then the output image is no "
28488 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
28489 "directly on a partitioned disk image.  (However libguestfs tools such as "
28490 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
28491 msgstr ""
28492
28493 # type: textblock
28494 #: ../tools/virt-make-fs.pl:144
28495 msgid "Add an MBR partition:"
28496 msgstr ""
28497
28498 # type: verbatim
28499 #: ../tools/virt-make-fs.pl:146
28500 #, no-wrap
28501 msgid ""
28502 " virt-make-fs --partition -- input disk.img\n"
28503 "\n"
28504 msgstr ""
28505
28506 # type: textblock
28507 #: ../tools/virt-make-fs.pl:148
28508 msgid ""
28509 "If the output disk image could be terabyte-sized or larger, it's better to "
28510 "use an EFI/GPT-compatible partition table:"
28511 msgstr ""
28512
28513 # type: verbatim
28514 #: ../tools/virt-make-fs.pl:151
28515 #, no-wrap
28516 msgid ""
28517 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
28518 "\n"
28519 msgstr ""
28520
28521 # type: textblock
28522 #: ../tools/virt-make-fs.pl:179
28523 msgid "Enable debugging information."
28524 msgstr ""
28525
28526 # type: =item
28527 #: ../tools/virt-make-fs.pl:185
28528 msgid "B<--size=E<lt>NE<gt>>"
28529 msgstr ""
28530
28531 # type: =item
28532 #: ../tools/virt-make-fs.pl:187
28533 msgid "B<--size=+E<lt>NE<gt>>"
28534 msgstr ""
28535
28536 # type: =item
28537 #: ../tools/virt-make-fs.pl:189
28538 msgid "B<-s E<lt>NE<gt>>"
28539 msgstr ""
28540
28541 # type: =item
28542 #: ../tools/virt-make-fs.pl:191
28543 msgid "B<-s +E<lt>NE<gt>>"
28544 msgstr ""
28545
28546 # type: textblock
28547 #: ../tools/virt-make-fs.pl:193
28548 msgid "Use the C<--size> (or C<-s>) option to choose the size of the output image."
28549 msgstr ""
28550
28551 # type: textblock
28552 #: ../tools/virt-make-fs.pl:196
28553 msgid ""
28554 "If this option is I<not> given, then the output image will be just large "
28555 "enough to contain all the files, with not much wasted space."
28556 msgstr ""
28557
28558 # type: textblock
28559 #: ../tools/virt-make-fs.pl:199
28560 msgid ""
28561 "To choose a fixed size output disk, specify an absolute number followed by "
28562 "b/K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
28563 "Petabytes or Exabytes.  This must be large enough to contain all the input "
28564 "files, else you will get an error."
28565 msgstr ""
28566
28567 # type: textblock
28568 #: ../tools/virt-make-fs.pl:204
28569 msgid ""
28570 "To leave extra space, specify C<+> (plus sign) and a number followed by "
28571 "b/K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
28572 "Petabytes or Exabytes.  For example: C<--size=+200M> means enough space for "
28573 "the input files, and (approximately) an extra 200 MB free space."
28574 msgstr ""
28575
28576 # type: textblock
28577 #: ../tools/virt-make-fs.pl:210
28578 msgid ""
28579 "Note that virt-make-fs estimates free space, and therefore will not produce "
28580 "filesystems containing precisely the free space requested.  (It is much more "
28581 "expensive and time-consuming to produce a filesystem which has precisely the "
28582 "desired free space)."
28583 msgstr ""
28584
28585 # type: =item
28586 #: ../tools/virt-make-fs.pl:219
28587 msgid "B<--format=E<lt>fmtE<gt>>"
28588 msgstr ""
28589
28590 # type: =item
28591 #: ../tools/virt-make-fs.pl:221
28592 msgid "B<-F E<lt>fmtE<gt>>"
28593 msgstr ""
28594
28595 # type: textblock
28596 #: ../tools/virt-make-fs.pl:223
28597 msgid "Choose the output disk image format."
28598 msgstr ""
28599
28600 # type: textblock
28601 #: ../tools/virt-make-fs.pl:225
28602 msgid "The default is C<raw> (raw disk image)."
28603 msgstr ""
28604
28605 # type: textblock
28606 #: ../tools/virt-make-fs.pl:227
28607 msgid ""
28608 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
28609 "that would really make sense here is C<qcow2>."
28610 msgstr ""
28611
28612 # type: =item
28613 #: ../tools/virt-make-fs.pl:234
28614 msgid "B<--type=E<lt>fsE<gt>>"
28615 msgstr ""
28616
28617 # type: =item
28618 #: ../tools/virt-make-fs.pl:236
28619 msgid "B<-t E<lt>fsE<gt>>"
28620 msgstr ""
28621
28622 # type: textblock
28623 #: ../tools/virt-make-fs.pl:238
28624 msgid "Choose the output filesystem type."
28625 msgstr ""
28626
28627 # type: textblock
28628 #: ../tools/virt-make-fs.pl:240
28629 msgid "The default is C<ext2>."
28630 msgstr ""
28631
28632 # type: textblock
28633 #: ../tools/virt-make-fs.pl:242
28634 msgid "Any filesystem which is supported read-write by libguestfs can be used here."
28635 msgstr ""
28636
28637 # type: =item
28638 #: ../tools/virt-make-fs.pl:249
28639 msgid "B<--partition>"
28640 msgstr ""
28641
28642 # type: =item
28643 #: ../tools/virt-make-fs.pl:251
28644 msgid "B<--partition=E<lt>parttypeE<gt>>"
28645 msgstr ""
28646
28647 # type: textblock
28648 #: ../tools/virt-make-fs.pl:253
28649 msgid ""
28650 "If specified, this flag adds an MBR partition table to the output disk "
28651 "image."
28652 msgstr ""
28653
28654 # type: textblock
28655 #: ../tools/virt-make-fs.pl:256
28656 msgid ""
28657 "You can change the partition table type, eg. C<--partition=gpt> for large "
28658 "disks."
28659 msgstr ""
28660
28661 # type: textblock
28662 #: ../tools/virt-make-fs.pl:259
28663 msgid ""
28664 "Note that if you just use a lonesome C<--partition>, the Perl option parser "
28665 "might consider the next parameter to be the partition type.  For example:"
28666 msgstr ""
28667
28668 # type: verbatim
28669 #: ../tools/virt-make-fs.pl:263
28670 #, no-wrap
28671 msgid ""
28672 " virt-make-fs --partition input.tar ...\n"
28673 "\n"
28674 msgstr ""
28675
28676 # type: textblock
28677 #: ../tools/virt-make-fs.pl:265
28678 msgid ""
28679 "would cause virt-make-fs to think you wanted to use a partition type of "
28680 "C<input.tar> which is completely wrong.  To avoid this, use C<--> (a double "
28681 "dash) between options and the input file argument:"
28682 msgstr ""
28683
28684 # type: verbatim
28685 #: ../tools/virt-make-fs.pl:269
28686 #, no-wrap
28687 msgid ""
28688 " virt-make-fs --partition -- input.tar ...\n"
28689 "\n"
28690 msgstr ""
28691
28692 # type: textblock
28693 #: ../tools/virt-make-fs.pl:536
28694 msgid ""
28695 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar(1)>, L<mkisofs(1)>, "
28696 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, "
28697 "L<guestfs(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
28698 msgstr ""
28699
28700 # type: verbatim
28701 #: ../tools/virt-make-fs.pl:553
28702 #, no-wrap
28703 msgid ""
28704 " export LIBGUESTFS_DEBUG=1\n"
28705 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
28706 "\n"
28707 msgstr ""
28708
28709 # type: textblock
28710 #: ../tools/virt-make-fs.pl:556
28711 msgid ""
28712 "Attach /tmp/virt-make-fs.log to a new bug report at "
28713 "L<https://bugzilla.redhat.com/>"
28714 msgstr ""
28715
28716 # type: textblock
28717 #: ../tools/virt-list-partitions.pl:32
28718 msgid "virt-list-partitions - List partitions in a virtual machine or disk image"
28719 msgstr ""
28720
28721 # type: verbatim
28722 #: ../tools/virt-list-partitions.pl:36
28723 #, no-wrap
28724 msgid ""
28725 " virt-list-partitions [--options] domname\n"
28726 "\n"
28727 msgstr ""
28728
28729 # type: verbatim
28730 #: ../tools/virt-list-partitions.pl:38
28731 #, no-wrap
28732 msgid ""
28733 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
28734 "\n"
28735 msgstr ""
28736
28737 # type: textblock
28738 #: ../tools/virt-list-partitions.pl:45
28739 msgid ""
28740 "C<virt-list-partitions> is a command line tool to list the partitions that "
28741 "are contained in a virtual machine or disk image.  It is mainly useful as a "
28742 "first step to using L<virt-resize(1)>."
28743 msgstr ""
28744
28745 # type: textblock
28746 #: ../tools/virt-list-partitions.pl:50
28747 msgid ""
28748 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
28749 "functionality.  For more complex cases you should look at the "
28750 "L<guestfish(1)> tool."
28751 msgstr ""
28752
28753 # type: =item
28754 #: ../tools/virt-list-partitions.pl:107
28755 msgid "B<-h> | B<--human-readable>"
28756 msgstr ""
28757
28758 # type: textblock
28759 #: ../tools/virt-list-partitions.pl:109
28760 msgid "Show sizes in human-readable form (eg. \"1G\")."
28761 msgstr ""
28762
28763 # type: textblock
28764 #: ../tools/virt-list-partitions.pl:117
28765 msgid ""
28766 "With this option, C<virt-list-partitions> displays the type and size of each "
28767 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
28768 msgstr ""
28769
28770 # type: =item
28771 #: ../tools/virt-list-partitions.pl:124
28772 msgid "B<-t> | B<--total>"
28773 msgstr ""
28774
28775 # type: textblock
28776 #: ../tools/virt-list-partitions.pl:126
28777 msgid "Display the total size of each block device (as a separate row or rows)."
28778 msgstr ""
28779
28780 # type: textblock
28781 #: ../tools/virt-list-partitions.pl:259
28782 msgid ""
28783 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, "
28784 "L<virt-list-filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, "
28785 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
28786 msgstr ""