Version 1.7.14.
[libguestfs.git] / po-docs / libguestfs-docs.pot
1 # SOME DESCRIPTIVE TITLE
2 # Copyright (C) YEAR Red Hat Inc.
3 # This file is distributed under the same license as the libguestfs package.
4 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5 #
6 #, fuzzy
7 msgid ""
8 msgstr ""
9 "Project-Id-Version: libguestfs 1.7.14\n"
10 "Report-Msgid-Bugs-To: libguestfs@redhat.com\n"
11 "POT-Creation-Date: 2010-11-25 18: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-rescue.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-rescue.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-rescue.pl:35 ../tools/virt-make-fs.pl:39 ../tools/virt-list-partitions.pl:34
36 msgid "SYNOPSIS"
37 msgstr ""
38
39 # type: verbatim
40 #: ../src/guestfs.pod:9
41 #, no-wrap
42 msgid ""
43 " #include <guestfs.h>\n"
44 " \n"
45 msgstr ""
46
47 # type: verbatim
48 #: ../src/guestfs.pod:11
49 #, no-wrap
50 msgid ""
51 " guestfs_h *g = guestfs_create ();\n"
52 " guestfs_add_drive (g, \"guest.img\");\n"
53 " guestfs_launch (g);\n"
54 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
55 " guestfs_touch (g, \"/hello\");\n"
56 " guestfs_umount (g, \"/\");\n"
57 " guestfs_sync (g);\n"
58 " guestfs_close (g);\n"
59 "\n"
60 msgstr ""
61
62 # type: verbatim
63 #: ../src/guestfs.pod:20
64 #, no-wrap
65 msgid ""
66 " cc prog.c -o prog -lguestfs\n"
67 "or:\n"
68 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
69 "\n"
70 msgstr ""
71
72 # type: =head1
73 #: ../src/guestfs.pod:24 ../fish/guestfish.pod:30 ../test-tool/libguestfs-test-tool.pod:11 ../fuse/guestmount.pod:20 ../tools/virt-edit.pl:50 ../tools/virt-win-reg.pl:63 ../tools/virt-resize.pl:50 ../tools/virt-list-filesystems.pl:40 ../tools/virt-tar.pl:72 ../tools/virt-rescue.pl:51 ../tools/virt-make-fs.pl:47 ../tools/virt-list-partitions.pl:40
74 msgid "DESCRIPTION"
75 msgstr ""
76
77 # type: textblock
78 #: ../src/guestfs.pod:26
79 msgid ""
80 "Libguestfs is a library for accessing and modifying guest disk images.  "
81 "Amongst the things this is good for: making batch configuration changes to "
82 "guests, getting disk used/free statistics (see also: virt-df), migrating "
83 "between virtualization systems (see also: virt-p2v), performing partial "
84 "backups, performing partial guest clones, cloning guests and changing "
85 "registry/UUID/hostname info, and much else besides."
86 msgstr ""
87
88 # type: textblock
89 #: ../src/guestfs.pod:34
90 msgid ""
91 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
92 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
93 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
94 "qcow2, vmdk."
95 msgstr ""
96
97 # type: textblock
98 #: ../src/guestfs.pod:39
99 msgid ""
100 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
101 "what filesystem is in each LV, etc.).  It can also run commands in the "
102 "context of the guest.  Also you can access filesystems over FUSE."
103 msgstr ""
104
105 # type: textblock
106 #: ../src/guestfs.pod:44
107 msgid ""
108 "Libguestfs is a library that can be linked with C and C++ management "
109 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
110 "PHP, Haskell or C#).  You can also use it from shell scripts or the command "
111 "line."
112 msgstr ""
113
114 # type: textblock
115 #: ../src/guestfs.pod:49
116 msgid ""
117 "You don't need to be root to use libguestfs, although obviously you do need "
118 "enough permissions to access the disk images."
119 msgstr ""
120
121 # type: textblock
122 #: ../src/guestfs.pod:52
123 msgid ""
124 "Libguestfs is a large API because it can do many things.  For a gentle "
125 "introduction, please read the L</API OVERVIEW> section next."
126 msgstr ""
127
128 # type: textblock
129 #: ../src/guestfs.pod:55
130 msgid ""
131 "There are also some example programs in the L<guestfs-examples(3)> manual "
132 "page."
133 msgstr ""
134
135 # type: =head1
136 #: ../src/guestfs.pod:58
137 msgid "API OVERVIEW"
138 msgstr ""
139
140 # type: textblock
141 #: ../src/guestfs.pod:60
142 msgid ""
143 "This section provides a gentler overview of the libguestfs API.  We also try "
144 "to group API calls together, where that may not be obvious from reading "
145 "about the individual calls in the main section of this manual."
146 msgstr ""
147
148 # type: =head2
149 #: ../src/guestfs.pod:65
150 msgid "HANDLES"
151 msgstr ""
152
153 # type: textblock
154 #: ../src/guestfs.pod:67
155 msgid ""
156 "Before you can use libguestfs calls, you have to create a handle.  Then you "
157 "must add at least one disk image to the handle, followed by launching the "
158 "handle, then performing whatever operations you want, and finally closing "
159 "the handle.  By convention we use the single letter C<g> for the name of the "
160 "handle variable, although of course you can use any name you want."
161 msgstr ""
162
163 # type: textblock
164 #: ../src/guestfs.pod:74
165 msgid "The general structure of all libguestfs-using programs looks like this:"
166 msgstr ""
167
168 # type: verbatim
169 #: ../src/guestfs.pod:77
170 #, no-wrap
171 msgid ""
172 " guestfs_h *g = guestfs_create ();\n"
173 " \n"
174 msgstr ""
175
176 # type: verbatim
177 #: ../src/guestfs.pod:79
178 #, no-wrap
179 msgid ""
180 " /* Call guestfs_add_drive additional times if there are\n"
181 "  * multiple disk images.\n"
182 "  */\n"
183 " guestfs_add_drive (g, \"guest.img\");\n"
184 " \n"
185 msgstr ""
186
187 # type: verbatim
188 #: ../src/guestfs.pod:84
189 #, no-wrap
190 msgid ""
191 " /* Most manipulation calls won't work until you've launched\n"
192 "  * the handle 'g'.  You have to do this _after_ adding drives\n"
193 "  * and _before_ other commands.\n"
194 "  */\n"
195 " guestfs_launch (g);\n"
196 " \n"
197 msgstr ""
198
199 # type: verbatim
200 #: ../src/guestfs.pod:90
201 #, no-wrap
202 msgid ""
203 " /* Now you can examine what partitions, LVs etc are available.\n"
204 "  */\n"
205 " char **partitions = guestfs_list_partitions (g);\n"
206 " char **logvols = guestfs_lvs (g);\n"
207 " \n"
208 msgstr ""
209
210 # type: verbatim
211 #: ../src/guestfs.pod:95
212 #, no-wrap
213 msgid ""
214 " /* To access a filesystem in the image, you must mount it.\n"
215 "  */\n"
216 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
217 " \n"
218 msgstr ""
219
220 # type: verbatim
221 #: ../src/guestfs.pod:99
222 #, no-wrap
223 msgid ""
224 " /* Now you can perform filesystem actions on the guest\n"
225 "  * disk image.\n"
226 "  */\n"
227 " guestfs_touch (g, \"/hello\");\n"
228 " \n"
229 msgstr ""
230
231 # type: verbatim
232 #: ../src/guestfs.pod:104
233 #, no-wrap
234 msgid ""
235 " /* You only need to call guestfs_sync if you have made\n"
236 "  * changes to the guest image.  (But if you've made changes\n"
237 "  * then you *must* sync).  See also: guestfs_umount and\n"
238 "  * guestfs_umount_all calls.\n"
239 "  */\n"
240 " guestfs_sync (g);\n"
241 " \n"
242 msgstr ""
243
244 # type: verbatim
245 #: ../src/guestfs.pod:111
246 #, no-wrap
247 msgid ""
248 " /* Close the handle 'g'. */\n"
249 " guestfs_close (g);\n"
250 "\n"
251 msgstr ""
252
253 # type: textblock
254 #: ../src/guestfs.pod:114
255 msgid ""
256 "The code above doesn't include any error checking.  In real code you should "
257 "check return values carefully for errors.  In general all functions that "
258 "return integers return C<-1> on error, and all functions that return "
259 "pointers return C<NULL> on error.  See section L</ERROR HANDLING> below for "
260 "how to handle errors, and consult the documentation for each function call "
261 "below to see precisely how they return error indications."
262 msgstr ""
263
264 # type: =head2
265 #: ../src/guestfs.pod:122
266 msgid "DISK IMAGES"
267 msgstr ""
268
269 # type: textblock
270 #: ../src/guestfs.pod:124
271 msgid ""
272 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
273 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
274 "actual block device, or simply an empty file of zeroes that you have created "
275 "through L<posix_fallocate(3)>.  Libguestfs lets you do useful things to all "
276 "of these."
277 msgstr ""
278
279 # type: textblock
280 #: ../src/guestfs.pod:130
281 msgid ""
282 "The call you should use in modern code for adding drives is "
283 "L</guestfs_add_drive_opts>.  To add a disk image, allowing writes, and "
284 "specifying that the format is raw, do:"
285 msgstr ""
286
287 # type: verbatim
288 #: ../src/guestfs.pod:134
289 #, no-wrap
290 msgid ""
291 " guestfs_add_drive_opts (g, filename,\n"
292 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
293 "                         -1);\n"
294 "\n"
295 msgstr ""
296
297 # type: textblock
298 #: ../src/guestfs.pod:138
299 msgid "You can add a disk read-only using:"
300 msgstr ""
301
302 # type: verbatim
303 #: ../src/guestfs.pod:140
304 #, no-wrap
305 msgid ""
306 " guestfs_add_drive_opts (g, filename,\n"
307 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
308 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
309 "                         -1);\n"
310 "\n"
311 msgstr ""
312
313 # type: textblock
314 #: ../src/guestfs.pod:145
315 msgid ""
316 "or by calling the older function L</guestfs_add_drive_ro>.  In either case "
317 "libguestfs won't modify the file."
318 msgstr ""
319
320 # type: textblock
321 #: ../src/guestfs.pod:148
322 msgid ""
323 "Be extremely cautious if the disk image is in use, eg. if it is being used "
324 "by a virtual machine.  Adding it read-write will almost certainly cause disk "
325 "corruption, but adding it read-only is safe."
326 msgstr ""
327
328 # type: textblock
329 #: ../src/guestfs.pod:152
330 msgid ""
331 "You must add at least one disk image, and you may add multiple disk images.  "
332 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
333 "first one you added), C</dev/sdb> (for the second one you added), etc."
334 msgstr ""
335
336 # type: textblock
337 #: ../src/guestfs.pod:157
338 msgid ""
339 "Once L</guestfs_launch> has been called you cannot add any more images.  You "
340 "can call L</guestfs_list_devices> to get a list of the device names, in the "
341 "order that you added them.  See also L</BLOCK DEVICE NAMING> below."
342 msgstr ""
343
344 # type: =head2
345 #: ../src/guestfs.pod:162
346 msgid "MOUNTING"
347 msgstr ""
348
349 # type: textblock
350 #: ../src/guestfs.pod:164
351 msgid ""
352 "Before you can read or write files, create directories and so on in a disk "
353 "image that contains filesystems, you have to mount those filesystems using "
354 "L</guestfs_mount>.  If you already know that a disk image contains (for "
355 "example) one partition with a filesystem on that partition, then you can "
356 "mount it directly:"
357 msgstr ""
358
359 # type: verbatim
360 #: ../src/guestfs.pod:170
361 #, no-wrap
362 msgid ""
363 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
364 "\n"
365 msgstr ""
366
367 # type: textblock
368 #: ../src/guestfs.pod:172
369 msgid ""
370 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
371 "disk image that we added (C</dev/sda>).  If the disk contains Linux LVM2 "
372 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>)."
373 msgstr ""
374
375 # type: textblock
376 #: ../src/guestfs.pod:176
377 msgid ""
378 "If you are given a disk image and you don't know what it contains then you "
379 "have to find out.  Libguestfs can do that too: use "
380 "L</guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions "
381 "and LVs, and either try mounting each to see what is mountable, or else "
382 "examine them with L</guestfs_vfs_type> or L</guestfs_file>.  Libguestfs also "
383 "has a set of APIs for inspection of disk images (see L</INSPECTION> below).  "
384 "But you might find it easier to look at higher level programs built on top "
385 "of libguestfs, in particular L<virt-inspector(1)>."
386 msgstr ""
387
388 # type: textblock
389 #: ../src/guestfs.pod:186
390 msgid ""
391 "To mount a disk image read-only, use L</guestfs_mount_ro>.  There are "
392 "several other variations of the C<guestfs_mount_*> call."
393 msgstr ""
394
395 # type: =head2
396 #: ../src/guestfs.pod:189
397 msgid "FILESYSTEM ACCESS AND MODIFICATION"
398 msgstr ""
399
400 # type: textblock
401 #: ../src/guestfs.pod:191
402 msgid ""
403 "The majority of the libguestfs API consists of fairly low-level calls for "
404 "accessing and modifying the files, directories, symlinks etc on mounted "
405 "filesystems.  There are over a hundred such calls which you can find listed "
406 "in detail below in this man page, and we don't even pretend to cover them "
407 "all in this overview."
408 msgstr ""
409
410 # type: textblock
411 #: ../src/guestfs.pod:197
412 msgid ""
413 "Specify filenames as full paths, starting with C<\"/\"> and including the "
414 "mount point."
415 msgstr ""
416
417 # type: textblock
418 #: ../src/guestfs.pod:200
419 msgid ""
420 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
421 "the file called C<\"etc/passwd\"> then you could do:"
422 msgstr ""
423
424 # type: verbatim
425 #: ../src/guestfs.pod:203
426 #, no-wrap
427 msgid ""
428 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
429 "\n"
430 msgstr ""
431
432 # type: textblock
433 #: ../src/guestfs.pod:205
434 msgid ""
435 "This would return C<data> as a newly allocated buffer containing the full "
436 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
437 "or C<NULL> if there was an error."
438 msgstr ""
439
440 # type: textblock
441 #: ../src/guestfs.pod:209
442 msgid ""
443 "As another example, to create a top-level directory on that filesystem "
444 "called C<\"var\"> you would do:"
445 msgstr ""
446
447 # type: verbatim
448 #: ../src/guestfs.pod:212
449 #, no-wrap
450 msgid ""
451 " guestfs_mkdir (g, \"/var\");\n"
452 "\n"
453 msgstr ""
454
455 # type: textblock
456 #: ../src/guestfs.pod:214
457 msgid "To create a symlink you could do:"
458 msgstr ""
459
460 # type: verbatim
461 #: ../src/guestfs.pod:216
462 #, no-wrap
463 msgid ""
464 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
465 "               \"/etc/rc3.d/S30portmap\");\n"
466 "\n"
467 msgstr ""
468
469 # type: textblock
470 #: ../src/guestfs.pod:219
471 msgid ""
472 "Libguestfs will reject attempts to use relative paths and there is no "
473 "concept of a current working directory."
474 msgstr ""
475
476 # type: textblock
477 #: ../src/guestfs.pod:222
478 msgid ""
479 "Libguestfs can return errors in many situations: for example if the "
480 "filesystem isn't writable, or if a file or directory that you requested "
481 "doesn't exist.  If you are using the C API (documented here)  you have to "
482 "check for those error conditions after each call.  (Other language bindings "
483 "turn these errors into exceptions)."
484 msgstr ""
485
486 # type: textblock
487 #: ../src/guestfs.pod:228
488 msgid ""
489 "File writes are affected by the per-handle umask, set by calling "
490 "L</guestfs_umask> and defaulting to 022.  See L</UMASK>."
491 msgstr ""
492
493 # type: =head2
494 #: ../src/guestfs.pod:231
495 msgid "PARTITIONING"
496 msgstr ""
497
498 # type: textblock
499 #: ../src/guestfs.pod:233
500 msgid ""
501 "Libguestfs contains API calls to read, create and modify partition tables on "
502 "disk images."
503 msgstr ""
504
505 # type: textblock
506 #: ../src/guestfs.pod:236
507 msgid ""
508 "In the common case where you want to create a single partition covering the "
509 "whole disk, you should use the L</guestfs_part_disk> call:"
510 msgstr ""
511
512 # type: verbatim
513 #: ../src/guestfs.pod:240
514 #, no-wrap
515 msgid ""
516 " const char *parttype = \"mbr\";\n"
517 " if (disk_is_larger_than_2TB)\n"
518 "   parttype = \"gpt\";\n"
519 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
520 "\n"
521 msgstr ""
522
523 # type: textblock
524 #: ../src/guestfs.pod:245
525 msgid ""
526 "Obviously this effectively wipes anything that was on that disk image "
527 "before."
528 msgstr ""
529
530 # type: =head2
531 #: ../src/guestfs.pod:248
532 msgid "LVM2"
533 msgstr ""
534
535 # type: textblock
536 #: ../src/guestfs.pod:250
537 msgid ""
538 "Libguestfs provides access to a large part of the LVM2 API, such as "
539 "L</guestfs_lvcreate> and L</guestfs_vgremove>.  It won't make much sense "
540 "unless you familiarize yourself with the concepts of physical volumes, "
541 "volume groups and logical volumes."
542 msgstr ""
543
544 # type: textblock
545 #: ../src/guestfs.pod:255
546 msgid ""
547 "This author strongly recommends reading the LVM HOWTO, online at "
548 "L<http://tldp.org/HOWTO/LVM-HOWTO/>."
549 msgstr ""
550
551 # type: =head2
552 #: ../src/guestfs.pod:258
553 msgid "DOWNLOADING"
554 msgstr ""
555
556 # type: textblock
557 #: ../src/guestfs.pod:260
558 msgid ""
559 "Use L</guestfs_cat> to download small, text only files.  This call is "
560 "limited to files which are less than 2 MB and which cannot contain any ASCII "
561 "NUL (C<\\0>) characters.  However it has a very simple to use API."
562 msgstr ""
563
564 # type: textblock
565 #: ../src/guestfs.pod:265
566 msgid ""
567 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
568 "bit data, since it returns a (pointer, size) pair.  However it is still "
569 "limited to \"small\" files, less than 2 MB."
570 msgstr ""
571
572 # type: textblock
573 #: ../src/guestfs.pod:269
574 msgid ""
575 "L</guestfs_download> can be used to download any file, with no limits on "
576 "content or size (even files larger than 4 GB)."
577 msgstr ""
578
579 # type: textblock
580 #: ../src/guestfs.pod:272
581 msgid "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
582 msgstr ""
583
584 # type: =head2
585 #: ../src/guestfs.pod:275
586 msgid "UPLOADING"
587 msgstr ""
588
589 # type: textblock
590 #: ../src/guestfs.pod:277
591 msgid ""
592 "It's often the case that you want to write a file or files to the disk "
593 "image."
594 msgstr ""
595
596 # type: textblock
597 #: ../src/guestfs.pod:280
598 msgid ""
599 "To write a small file with fixed content, use L</guestfs_write>.  To create "
600 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or "
601 "L</guestfs_fallocate64> (with all disk blocks allocated).  There are a "
602 "variety of other functions for creating test files, for example "
603 "L</guestfs_fill> and L</guestfs_fill_pattern>."
604 msgstr ""
605
606 # type: textblock
607 #: ../src/guestfs.pod:286
608 msgid ""
609 "To upload a single file, use L</guestfs_upload>.  This call has no limits on "
610 "file content or size (even files larger than 4 GB)."
611 msgstr ""
612
613 # type: textblock
614 #: ../src/guestfs.pod:289
615 msgid "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
616 msgstr ""
617
618 # type: textblock
619 #: ../src/guestfs.pod:291
620 msgid ""
621 "However the fastest way to upload I<large numbers of arbitrary files> is to "
622 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and "
623 "L<mkisofs(8)>), then attach this using L</guestfs_add_drive_ro>.  If you add "
624 "the drive in a predictable way (eg. adding it last after all other drives) "
625 "then you can get the device name from L</guestfs_list_devices> and mount it "
626 "directly using L</guestfs_mount_ro>.  Note that squashfs images are "
627 "sometimes non-portable between kernel versions, and they don't support "
628 "labels or UUIDs.  If you want to pre-build an image or you need to mount it "
629 "using a label or UUID, use an ISO image instead."
630 msgstr ""
631
632 # type: =head2
633 #: ../src/guestfs.pod:302
634 msgid "COPYING"
635 msgstr ""
636
637 # type: textblock
638 #: ../src/guestfs.pod:304
639 msgid ""
640 "There are various different commands for copying between files and devices "
641 "and in and out of the guest filesystem.  These are summarised in the table "
642 "below."
643 msgstr ""
644
645 # type: =item
646 #: ../src/guestfs.pod:310
647 msgid "B<file> to B<file>"
648 msgstr ""
649
650 # type: textblock
651 #: ../src/guestfs.pod:312
652 msgid ""
653 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
654 "directories recursively."
655 msgstr ""
656
657 # type: =item
658 #: ../src/guestfs.pod:315
659 msgid "B<file or device> to B<file or device>"
660 msgstr ""
661
662 # type: textblock
663 #: ../src/guestfs.pod:317
664 msgid ""
665 "Use L</guestfs_dd> which efficiently uses L<dd(1)> to copy between files and "
666 "devices in the guest."
667 msgstr ""
668
669 # type: textblock
670 #: ../src/guestfs.pod:320
671 msgid "Example: duplicate the contents of an LV:"
672 msgstr ""
673
674 # type: verbatim
675 #: ../src/guestfs.pod:322
676 #, no-wrap
677 msgid ""
678 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
679 "\n"
680 msgstr ""
681
682 # type: textblock
683 #: ../src/guestfs.pod:324
684 msgid ""
685 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
686 "(C</dev/VG/Original>).  To copy less than the whole source device, use "
687 "L</guestfs_copy_size>."
688 msgstr ""
689
690 # type: =item
691 #: ../src/guestfs.pod:328
692 msgid "B<file on the host> to B<file or device>"
693 msgstr ""
694
695 # type: textblock
696 #: ../src/guestfs.pod:330
697 msgid "Use L</guestfs_upload>.  See L</UPLOADING> above."
698 msgstr ""
699
700 # type: =item
701 #: ../src/guestfs.pod:332
702 msgid "B<file or device> to B<file on the host>"
703 msgstr ""
704
705 # type: textblock
706 #: ../src/guestfs.pod:334
707 msgid "Use L</guestfs_download>.  See L</DOWNLOADING> above."
708 msgstr ""
709
710 # type: =head2
711 #: ../src/guestfs.pod:338
712 msgid "LISTING FILES"
713 msgstr ""
714
715 # type: textblock
716 #: ../src/guestfs.pod:340
717 msgid ""
718 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
719 "L<guestfish(1)>-equivalent command C<ll>)."
720 msgstr ""
721
722 # type: textblock
723 #: ../src/guestfs.pod:343
724 msgid ""
725 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
726 "programs, as a flat list of strings."
727 msgstr ""
728
729 # type: textblock
730 #: ../src/guestfs.pod:346
731 msgid ""
732 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
733 "directory, plus additional information about each one.  It is more "
734 "equivalent to using the L<readdir(3)> call on a local filesystem."
735 msgstr ""
736
737 # type: textblock
738 #: ../src/guestfs.pod:350
739 msgid ""
740 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list "
741 "files."
742 msgstr ""
743
744 # type: =head2
745 #: ../src/guestfs.pod:353
746 msgid "RUNNING COMMANDS"
747 msgstr ""
748
749 # type: textblock
750 #: ../src/guestfs.pod:355
751 msgid ""
752 "Although libguestfs is primarily an API for manipulating files inside guest "
753 "images, we also provide some limited facilities for running commands inside "
754 "guests."
755 msgstr ""
756
757 # type: textblock
758 #: ../src/guestfs.pod:359
759 msgid "There are many limitations to this:"
760 msgstr ""
761
762 # type: =item
763 #: ../src/guestfs.pod:363 ../src/guestfs.pod:368 ../src/guestfs.pod:373 ../src/guestfs.pod:377 ../src/guestfs.pod:382 ../src/guestfs.pod:386 ../src/guestfs.pod:391 ../src/guestfs.pod:396 ../src/guestfs.pod:955 ../src/guestfs.pod:959 ../src/guestfs.pod:963 ../src/guestfs.pod:968 ../src/guestfs.pod:976 ../src/guestfs.pod:995 ../src/guestfs.pod:1003 ../src/guestfs.pod:1025 ../src/guestfs.pod:1029 ../src/guestfs.pod:1033 ../src/guestfs.pod:1037 ../src/guestfs.pod:1041 ../src/guestfs.pod:1045 ../src/guestfs.pod:1527 ../src/guestfs.pod:1532 ../src/guestfs.pod:1536 ../src/guestfs.pod:1646 ../src/guestfs.pod:1651 ../src/guestfs.pod:1655 ../src/guestfs.pod:1999 ../src/guestfs.pod:2005 ../src/guestfs.pod:2010 ../src/guestfs.pod:2016 ../src/guestfs.pod:2128 ../src/guestfs.pod:2132 ../src/guestfs.pod:2136 ../src/guestfs.pod:2140 ../src/guestfs-actions.pod:15 ../src/guestfs-actions.pod:22 ../src/guestfs-actions.pod:569 ../src/guestfs-actions.pod:577 ../src/guestfs-actions.pod:584 ../src/guestfs-actions.pod:591 ../src/guestfs-actions.pod:1587 ../src/guestfs-actions.pod:1591 ../src/guestfs-actions.pod:1595 ../src/guestfs-actions.pod:1599 ../src/guestfs-actions.pod:1607 ../src/guestfs-actions.pod:1611 ../src/guestfs-actions.pod:1615 ../src/guestfs-actions.pod:1625 ../src/guestfs-actions.pod:1629 ../src/guestfs-actions.pod:1633 ../src/guestfs-actions.pod:1771 ../src/guestfs-actions.pod:1775 ../src/guestfs-actions.pod:1780 ../src/guestfs-actions.pod:1785 ../src/guestfs-actions.pod:1846 ../src/guestfs-actions.pod:1850 ../src/guestfs-actions.pod:1855 ../fish/guestfish.pod:377 ../fish/guestfish.pod:381 ../fish/guestfish.pod:385 ../fish/guestfish.pod:389 ../fish/guestfish-actions.pod:13 ../fish/guestfish-actions.pod:20 ../fish/guestfish-actions.pod:375 ../fish/guestfish-actions.pod:383 ../fish/guestfish-actions.pod:390 ../fish/guestfish-actions.pod:397 ../fish/guestfish-actions.pod:1067 ../fish/guestfish-actions.pod:1071 ../fish/guestfish-actions.pod:1075 ../fish/guestfish-actions.pod:1079 ../fish/guestfish-actions.pod:1087 ../fish/guestfish-actions.pod:1091 ../fish/guestfish-actions.pod:1095 ../fish/guestfish-actions.pod:1105 ../fish/guestfish-actions.pod:1109 ../fish/guestfish-actions.pod:1113 ../fish/guestfish-actions.pod:1203 ../fish/guestfish-actions.pod:1207 ../fish/guestfish-actions.pod:1212 ../fish/guestfish-actions.pod:1217 ../fish/guestfish-actions.pod:1259 ../fish/guestfish-actions.pod:1263 ../fish/guestfish-actions.pod:1268 ../tools/virt-resize.pl:347 ../tools/virt-resize.pl:352 ../tools/virt-resize.pl:362
764 msgid "*"
765 msgstr ""
766
767 # type: textblock
768 #: ../src/guestfs.pod:365
769 msgid ""
770 "The kernel version that the command runs under will be different from what "
771 "it expects."
772 msgstr ""
773
774 # type: textblock
775 #: ../src/guestfs.pod:370
776 msgid ""
777 "If the command needs to communicate with daemons, then most likely they "
778 "won't be running."
779 msgstr ""
780
781 # type: textblock
782 #: ../src/guestfs.pod:375
783 msgid "The command will be running in limited memory."
784 msgstr ""
785
786 # type: textblock
787 #: ../src/guestfs.pod:379
788 msgid ""
789 "The network may not be available unless you enable it (see "
790 "L</guestfs_set_network>)."
791 msgstr ""
792
793 # type: textblock
794 #: ../src/guestfs.pod:384
795 msgid "Only supports Linux guests (not Windows, BSD, etc)."
796 msgstr ""
797
798 # type: textblock
799 #: ../src/guestfs.pod:388
800 msgid "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
801 msgstr ""
802
803 # type: textblock
804 #: ../src/guestfs.pod:393
805 msgid ""
806 "For SELinux guests, you may need to enable SELinux and load policy first.  "
807 "See L</SELINUX> in this manpage."
808 msgstr ""
809
810 # type: textblock
811 #: ../src/guestfs.pod:398
812 msgid ""
813 "I<Security:> It is not safe to run commands from untrusted, possibly "
814 "malicious guests.  These commands may attempt to exploit your program by "
815 "sending unexpected output.  They could also try to exploit the Linux kernel "
816 "or qemu provided by the libguestfs appliance.  They could use the network "
817 "provided by the libguestfs appliance to bypass ordinary network partitions "
818 "and firewalls.  They could use the elevated privileges or different SELinux "
819 "context of your program to their advantage."
820 msgstr ""
821
822 # type: textblock
823 #: ../src/guestfs.pod:407
824 msgid ""
825 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
826 "(a script which runs when the guest next boots normally), and to have this "
827 "script run the commands you want in the normal context of the running guest, "
828 "network security and so on.  For information about other security issues, "
829 "see L</SECURITY>."
830 msgstr ""
831
832 # type: textblock
833 #: ../src/guestfs.pod:415
834 msgid ""
835 "The two main API calls to run commands are L</guestfs_command> and "
836 "L</guestfs_sh> (there are also variations)."
837 msgstr ""
838
839 # type: textblock
840 #: ../src/guestfs.pod:418
841 msgid ""
842 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
843 "shell globs, redirections, etc will work."
844 msgstr ""
845
846 # type: =head2
847 #: ../src/guestfs.pod:421
848 msgid "CONFIGURATION FILES"
849 msgstr ""
850
851 # type: textblock
852 #: ../src/guestfs.pod:423
853 msgid ""
854 "To read and write configuration files in Linux guest filesystems, we "
855 "strongly recommend using Augeas.  For example, Augeas understands how to "
856 "read and write, say, a Linux shadow password file or X.org configuration "
857 "file, and so avoids you having to write that code."
858 msgstr ""
859
860 # type: textblock
861 #: ../src/guestfs.pod:428
862 msgid ""
863 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't "
864 "document Augeas itself here because there is excellent documentation on the "
865 "L<http://augeas.net/> website."
866 msgstr ""
867
868 # type: textblock
869 #: ../src/guestfs.pod:432
870 msgid ""
871 "If you don't want to use Augeas (you fool!) then try calling "
872 "L</guestfs_read_lines> to get the file as a list of lines which you can "
873 "iterate over."
874 msgstr ""
875
876 # type: =head2
877 #: ../src/guestfs.pod:436
878 msgid "SELINUX"
879 msgstr ""
880
881 # type: textblock
882 #: ../src/guestfs.pod:438
883 msgid ""
884 "We support SELinux guests.  To ensure that labeling happens correctly in "
885 "SELinux guests, you need to enable SELinux and load the guest's policy:"
886 msgstr ""
887
888 # type: =item
889 #: ../src/guestfs.pod:444 ../src/guestfs.pod:1148 ../src/guestfs.pod:1279
890 msgid "1."
891 msgstr ""
892
893 # type: textblock
894 #: ../src/guestfs.pod:446
895 msgid "Before launching, do:"
896 msgstr ""
897
898 # type: verbatim
899 #: ../src/guestfs.pod:448
900 #, no-wrap
901 msgid ""
902 " guestfs_set_selinux (g, 1);\n"
903 "\n"
904 msgstr ""
905
906 # type: =item
907 #: ../src/guestfs.pod:450 ../src/guestfs.pod:1152 ../src/guestfs.pod:1283
908 msgid "2."
909 msgstr ""
910
911 # type: textblock
912 #: ../src/guestfs.pod:452
913 msgid ""
914 "After mounting the guest's filesystem(s), load the policy.  This is best "
915 "done by running the L<load_policy(8)> command in the guest itself:"
916 msgstr ""
917
918 # type: verbatim
919 #: ../src/guestfs.pod:456
920 #, no-wrap
921 msgid ""
922 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
923 "\n"
924 msgstr ""
925
926 # type: textblock
927 #: ../src/guestfs.pod:458
928 msgid ""
929 "(Older versions of C<load_policy> require you to specify the name of the "
930 "policy file)."
931 msgstr ""
932
933 # type: =item
934 #: ../src/guestfs.pod:461 ../src/guestfs.pod:1289
935 msgid "3."
936 msgstr ""
937
938 # type: textblock
939 #: ../src/guestfs.pod:463
940 msgid ""
941 "Optionally, set the security context for the API.  The correct security "
942 "context to use can only be known by inspecting the guest.  As an example:"
943 msgstr ""
944
945 # type: verbatim
946 #: ../src/guestfs.pod:467
947 #, no-wrap
948 msgid ""
949 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
950 "\n"
951 msgstr ""
952
953 # type: textblock
954 #: ../src/guestfs.pod:471
955 msgid "This will work for running commands and editing existing files."
956 msgstr ""
957
958 # type: textblock
959 #: ../src/guestfs.pod:473
960 msgid ""
961 "When new files are created, you may need to label them explicitly, for "
962 "example by running the external command C<restorecon pathname>."
963 msgstr ""
964
965 # type: =head2
966 #: ../src/guestfs.pod:477
967 msgid "UMASK"
968 msgstr ""
969
970 # type: textblock
971 #: ../src/guestfs.pod:479
972 msgid ""
973 "Certain calls are affected by the current file mode creation mask (the "
974 "\"umask\").  In particular ones which create files or directories, such as "
975 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
976 "either the default mode that the file is created with or modifies the mode "
977 "that you supply."
978 msgstr ""
979
980 # type: textblock
981 #: ../src/guestfs.pod:485
982 msgid ""
983 "The default umask is C<022>, so files are created with modes such as C<0644> "
984 "and directories with C<0755>."
985 msgstr ""
986
987 # type: textblock
988 #: ../src/guestfs.pod:488
989 msgid ""
990 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
991 "(call C<guestfs_umask (g, 0)> early after launching).  Or call "
992 "L</guestfs_chmod> after creating each file or directory."
993 msgstr ""
994
995 # type: textblock
996 #: ../src/guestfs.pod:492
997 msgid "For more information about umask, see L<umask(2)>."
998 msgstr ""
999
1000 # type: =head1
1001 #: ../src/guestfs.pod:494 ../fish/guestfish.pod:670
1002 msgid "ENCRYPTED DISKS"
1003 msgstr ""
1004
1005 # type: textblock
1006 #: ../src/guestfs.pod:496
1007 msgid ""
1008 "Libguestfs allows you to access Linux guests which have been encrypted using "
1009 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
1010 "standard.  This includes nearly all whole disk encryption systems used by "
1011 "modern Linux guests."
1012 msgstr ""
1013
1014 # type: textblock
1015 #: ../src/guestfs.pod:502
1016 msgid ""
1017 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
1018 "returns the string C<crypto_LUKS>)."
1019 msgstr ""
1020
1021 # type: textblock
1022 #: ../src/guestfs.pod:505
1023 msgid ""
1024 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
1025 "will require the passphrase!"
1026 msgstr ""
1027
1028 # type: textblock
1029 #: ../src/guestfs.pod:508
1030 msgid ""
1031 "Opening a LUKS device creates a new device mapper device called "
1032 "C</dev/mapper/mapname> (where C<mapname> is the string you supply to "
1033 "L</guestfs_luks_open>).  Reads and writes to this mapper device are "
1034 "decrypted from and encrypted to the underlying block device respectively."
1035 msgstr ""
1036
1037 # type: textblock
1038 #: ../src/guestfs.pod:514
1039 msgid ""
1040 "LVM volume groups on the device can be made visible by calling "
1041 "L</guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical "
1042 "volume(s) can now be mounted in the usual way."
1043 msgstr ""
1044
1045 # type: textblock
1046 #: ../src/guestfs.pod:518
1047 msgid ""
1048 "Use the reverse process to close a LUKS device.  Unmount any logical volumes "
1049 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
1050 "[\"/dev/VG\"])>.  Then close the mapper device by calling "
1051 "L</guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
1052 "underlying encrypted block device)."
1053 msgstr ""
1054
1055 # type: =head2
1056 #: ../src/guestfs.pod:525
1057 msgid "INSPECTION"
1058 msgstr ""
1059
1060 # type: textblock
1061 #: ../src/guestfs.pod:527
1062 msgid ""
1063 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
1064 "contains operating systems.  (These APIs used to be in a separate Perl-only "
1065 "library called L<Sys::Guestfs::Lib(3)> but since version 1.5.3 the most "
1066 "frequently used part of this library has been rewritten in C and moved into "
1067 "the core code)."
1068 msgstr ""
1069
1070 # type: textblock
1071 #: ../src/guestfs.pod:533
1072 msgid ""
1073 "Add all disks belonging to the unknown virtual machine and call "
1074 "L</guestfs_launch> in the usual way."
1075 msgstr ""
1076
1077 # type: textblock
1078 #: ../src/guestfs.pod:536
1079 msgid ""
1080 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
1081 "and certain heuristics, and returns a list of operating systems that were "
1082 "found.  An empty list means none were found.  A single element is the root "
1083 "filesystem of the operating system.  For dual- or multi-boot guests, "
1084 "multiple roots can be returned, each one corresponding to a separate "
1085 "operating system.  (Multi-boot virtual machines are extremely rare in the "
1086 "world of virtualization, but since this scenario can happen, we have built "
1087 "libguestfs to deal with it.)"
1088 msgstr ""
1089
1090 # type: textblock
1091 #: ../src/guestfs.pod:545
1092 msgid ""
1093 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
1094 "to get additional details about that operating system.  For example, call "
1095 "L</guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
1096 "Windows and Linux-based operating systems respectively."
1097 msgstr ""
1098
1099 # type: textblock
1100 #: ../src/guestfs.pod:551
1101 msgid ""
1102 "Un*x-like and Linux-based operating systems usually consist of several "
1103 "filesystems which are mounted at boot time (for example, a separate boot "
1104 "partition mounted on C</boot>).  The inspection rules are able to detect how "
1105 "filesystems correspond to mount points.  Call "
1106 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
1107 "hash table like this example:"
1108 msgstr ""
1109
1110 # type: verbatim
1111 #: ../src/guestfs.pod:558
1112 #, no-wrap
1113 msgid ""
1114 " /boot => /dev/sda1\n"
1115 " /     => /dev/vg_guest/lv_root\n"
1116 " /usr  => /dev/vg_guest/lv_usr\n"
1117 "\n"
1118 msgstr ""
1119
1120 # type: textblock
1121 #: ../src/guestfs.pod:562
1122 msgid ""
1123 "The caller can then make calls to L</guestfs_mount_options> to mount the "
1124 "filesystems as suggested."
1125 msgstr ""
1126
1127 # type: textblock
1128 #: ../src/guestfs.pod:565
1129 msgid ""
1130 "Be careful to mount filesystems in the right order (eg. C</> before "
1131 "C</usr>).  Sorting the keys of the hash by length, shortest first, should "
1132 "work."
1133 msgstr ""
1134
1135 # type: textblock
1136 #: ../src/guestfs.pod:569
1137 msgid ""
1138 "Inspection currently only works for some common operating systems.  "
1139 "Contributors are welcome to send patches for other operating systems that we "
1140 "currently cannot detect."
1141 msgstr ""
1142
1143 # type: textblock
1144 #: ../src/guestfs.pod:573
1145 msgid ""
1146 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
1147 "for more details.  The L</guestfs_inspect_os> function just ignores any "
1148 "encrypted devices."
1149 msgstr ""
1150
1151 # type: textblock
1152 #: ../src/guestfs.pod:577
1153 msgid ""
1154 "A note on the implementation: The call L</guestfs_inspect_os> performs "
1155 "inspection and caches the results in the guest handle.  Subsequent calls to "
1156 "C<guestfs_inspect_get_*> return this cached information, but I<do not> "
1157 "re-read the disks.  If you change the content of the guest disks, you can "
1158 "redo inspection by calling L</guestfs_inspect_os> again.  "
1159 "(L</guestfs_inspect_list_applications> works a little differently from the "
1160 "other calls and does read the disks.  See documentation for that function "
1161 "for details)."
1162 msgstr ""
1163
1164 # type: =head2
1165 #: ../src/guestfs.pod:586
1166 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
1167 msgstr ""
1168
1169 # type: textblock
1170 #: ../src/guestfs.pod:588
1171 msgid ""
1172 "Libguestfs can mount NTFS partitions.  It does this using the "
1173 "L<http://www.ntfs-3g.org/> driver."
1174 msgstr ""
1175
1176 # type: textblock
1177 #: ../src/guestfs.pod:591
1178 msgid ""
1179 "DOS and Windows still use drive letters, and the filesystems are always "
1180 "treated as case insensitive by Windows itself, and therefore you might find "
1181 "a Windows configuration file referring to a path like "
1182 "C<c:\\windows\\system32>.  When the filesystem is mounted in libguestfs, "
1183 "that directory might be referred to as C</WINDOWS/System32>."
1184 msgstr ""
1185
1186 # type: textblock
1187 #: ../src/guestfs.pod:597
1188 msgid ""
1189 "Drive letter mappings are outside the scope of libguestfs.  You have to use "
1190 "libguestfs to read the appropriate Windows Registry and configuration files, "
1191 "to determine yourself how drives are mapped (see also L<hivex(3)> and "
1192 "L<virt-inspector(1)>)."
1193 msgstr ""
1194
1195 # type: textblock
1196 #: ../src/guestfs.pod:602
1197 msgid ""
1198 "Replacing backslash characters with forward slash characters is also outside "
1199 "the scope of libguestfs, but something that you can easily do."
1200 msgstr ""
1201
1202 # type: textblock
1203 #: ../src/guestfs.pod:605
1204 msgid ""
1205 "Where we can help is in resolving the case insensitivity of paths.  For "
1206 "this, call L</guestfs_case_sensitive_path>."
1207 msgstr ""
1208
1209 # type: textblock
1210 #: ../src/guestfs.pod:608
1211 msgid ""
1212 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
1213 "files, through the library C<hivex> which is part of the libguestfs project "
1214 "although ships as a separate tarball.  You have to locate and download the "
1215 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
1216 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and "
1217 "L<virt-win-reg(1)> for more help on this issue."
1218 msgstr ""
1219
1220 # type: =head2
1221 #: ../src/guestfs.pod:616
1222 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
1223 msgstr ""
1224
1225 # type: textblock
1226 #: ../src/guestfs.pod:618
1227 msgid ""
1228 "Although we don't want to discourage you from using the C API, we will "
1229 "mention here that the same API is also available in other languages."
1230 msgstr ""
1231
1232 # type: textblock
1233 #: ../src/guestfs.pod:621
1234 msgid ""
1235 "The API is broadly identical in all supported languages.  This means that "
1236 "the C call C<guestfs_mount(g,path)> is C<$g-E<gt>mount($path)> in Perl, "
1237 "C<g.mount(path)> in Python, and C<Guestfs.mount g path> in OCaml.  In other "
1238 "words, a straightforward, predictable isomorphism between each language."
1239 msgstr ""
1240
1241 # type: textblock
1242 #: ../src/guestfs.pod:627
1243 msgid ""
1244 "Error messages are automatically transformed into exceptions if the language "
1245 "supports it."
1246 msgstr ""
1247
1248 # type: textblock
1249 #: ../src/guestfs.pod:630
1250 msgid ""
1251 "We don't try to \"object orientify\" parts of the API in OO languages, "
1252 "although contributors are welcome to write higher level APIs above what we "
1253 "provide in their favourite languages if they wish."
1254 msgstr ""
1255
1256 # type: =item
1257 #: ../src/guestfs.pod:636
1258 msgid "B<C++>"
1259 msgstr ""
1260
1261 # type: textblock
1262 #: ../src/guestfs.pod:638
1263 msgid ""
1264 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
1265 "identical to the C API.  C++ classes and exceptions are not used."
1266 msgstr ""
1267
1268 # type: =item
1269 #: ../src/guestfs.pod:642
1270 msgid "B<C#>"
1271 msgstr ""
1272
1273 # type: textblock
1274 #: ../src/guestfs.pod:644
1275 msgid ""
1276 "The C# bindings are highly experimental.  Please read the warnings at the "
1277 "top of C<csharp/Libguestfs.cs>."
1278 msgstr ""
1279
1280 # type: =item
1281 #: ../src/guestfs.pod:647
1282 msgid "B<Haskell>"
1283 msgstr ""
1284
1285 # type: textblock
1286 #: ../src/guestfs.pod:649
1287 msgid ""
1288 "This is the only language binding that is working but incomplete.  Only "
1289 "calls which return simple integers have been bound in Haskell, and we are "
1290 "looking for help to complete this binding."
1291 msgstr ""
1292
1293 # type: =item
1294 #: ../src/guestfs.pod:653
1295 msgid "B<Java>"
1296 msgstr ""
1297
1298 # type: textblock
1299 #: ../src/guestfs.pod:655
1300 msgid ""
1301 "Full documentation is contained in the Javadoc which is distributed with "
1302 "libguestfs."
1303 msgstr ""
1304
1305 # type: =item
1306 #: ../src/guestfs.pod:658
1307 msgid "B<OCaml>"
1308 msgstr ""
1309
1310 # type: textblock
1311 #: ../src/guestfs.pod:660
1312 msgid "For documentation see L<guestfs-ocaml(3)>."
1313 msgstr ""
1314
1315 # type: =item
1316 #: ../src/guestfs.pod:662
1317 msgid "B<Perl>"
1318 msgstr ""
1319
1320 # type: textblock
1321 #: ../src/guestfs.pod:664
1322 msgid "For documentation see L<Sys::Guestfs(3)>."
1323 msgstr ""
1324
1325 # type: =item
1326 #: ../src/guestfs.pod:666
1327 msgid "B<PHP>"
1328 msgstr ""
1329
1330 # type: textblock
1331 #: ../src/guestfs.pod:668
1332 msgid ""
1333 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
1334 "the php-libguestfs package for your distribution."
1335 msgstr ""
1336
1337 # type: textblock
1338 #: ../src/guestfs.pod:671
1339 msgid "The PHP binding only works correctly on 64 bit machines."
1340 msgstr ""
1341
1342 # type: =item
1343 #: ../src/guestfs.pod:673
1344 msgid "B<Python>"
1345 msgstr ""
1346
1347 # type: textblock
1348 #: ../src/guestfs.pod:675
1349 msgid "For documentation see L<guestfs-python(3)>."
1350 msgstr ""
1351
1352 # type: =item
1353 #: ../src/guestfs.pod:677
1354 msgid "B<Ruby>"
1355 msgstr ""
1356
1357 # type: textblock
1358 #: ../src/guestfs.pod:679
1359 msgid "For documentation see L<guestfs-ruby(3)>."
1360 msgstr ""
1361
1362 # type: =item
1363 #: ../src/guestfs.pod:681
1364 msgid "B<shell scripts>"
1365 msgstr ""
1366
1367 # type: textblock
1368 #: ../src/guestfs.pod:683
1369 msgid "For documentation see L<guestfish(1)>."
1370 msgstr ""
1371
1372 # type: =head2
1373 #: ../src/guestfs.pod:687
1374 msgid "LIBGUESTFS GOTCHAS"
1375 msgstr ""
1376
1377 # type: textblock
1378 #: ../src/guestfs.pod:689
1379 msgid ""
1380 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
1381 "system [...] that works in the way it is documented but is counterintuitive "
1382 "and almost invites mistakes.\""
1383 msgstr ""
1384
1385 # type: textblock
1386 #: ../src/guestfs.pod:693
1387 msgid ""
1388 "Since we developed libguestfs and the associated tools, there are several "
1389 "things we would have designed differently, but are now stuck with for "
1390 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
1391 "release, you can expect these to change.  Beware of them."
1392 msgstr ""
1393
1394 # type: =item
1395 #: ../src/guestfs.pod:701
1396 msgid "Autosync / forgetting to sync."
1397 msgstr ""
1398
1399 # type: textblock
1400 #: ../src/guestfs.pod:703
1401 msgid ""
1402 "When modifying a filesystem from C or another language, you B<must> unmount "
1403 "all filesystems and call L</guestfs_sync> explicitly before you close the "
1404 "libguestfs handle.  You can also call:"
1405 msgstr ""
1406
1407 # type: verbatim
1408 #: ../src/guestfs.pod:707
1409 #, no-wrap
1410 msgid ""
1411 " guestfs_set_autosync (g, 1);\n"
1412 "\n"
1413 msgstr ""
1414
1415 # type: textblock
1416 #: ../src/guestfs.pod:709
1417 msgid ""
1418 "to have the unmount/sync done automatically for you when the handle 'g' is "
1419 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> "
1420 "q.v.)"
1421 msgstr ""
1422
1423 # type: textblock
1424 #: ../src/guestfs.pod:713
1425 msgid ""
1426 "If you forget to do this, then it is entirely possible that your changes "
1427 "won't be written out, or will be partially written, or (very rarely) that "
1428 "you'll get disk corruption."
1429 msgstr ""
1430
1431 # type: textblock
1432 #: ../src/guestfs.pod:717
1433 msgid ""
1434 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
1435 "guestfish scripts that forget to sync will work just fine, which can make "
1436 "this very puzzling if you are trying to debug a problem."
1437 msgstr ""
1438
1439 # type: textblock
1440 #: ../src/guestfs.pod:721
1441 msgid ""
1442 "Update: Autosync is enabled by default for all API users starting from "
1443 "libguestfs 1.5.24."
1444 msgstr ""
1445
1446 # type: =item
1447 #: ../src/guestfs.pod:724
1448 msgid "Mount option C<-o sync> should not be the default."
1449 msgstr ""
1450
1451 # type: textblock
1452 #: ../src/guestfs.pod:726
1453 msgid ""
1454 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
1455 "However C<-o sync> does not add any reliability benefit, but does have a "
1456 "very large performance impact."
1457 msgstr ""
1458
1459 # type: textblock
1460 #: ../src/guestfs.pod:730
1461 msgid ""
1462 "The work around is to use L</guestfs_mount_options> and set the mount "
1463 "options that you actually want to use."
1464 msgstr ""
1465
1466 # type: =item
1467 #: ../src/guestfs.pod:733
1468 msgid "Read-only should be the default."
1469 msgstr ""
1470
1471 # type: textblock
1472 #: ../src/guestfs.pod:735
1473 msgid ""
1474 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
1475 "specify I<--rw> if you want to make changes to the image."
1476 msgstr ""
1477
1478 # type: textblock
1479 #: ../src/guestfs.pod:738
1480 msgid "This would reduce the potential to corrupt live VM images."
1481 msgstr ""
1482
1483 # type: textblock
1484 #: ../src/guestfs.pod:740
1485 msgid ""
1486 "Note that many filesystems change the disk when you just mount and unmount, "
1487 "even if you didn't perform any writes.  You need to use "
1488 "L</guestfs_add_drive_ro> to guarantee that the disk is not changed."
1489 msgstr ""
1490
1491 # type: =item
1492 #: ../src/guestfs.pod:744
1493 msgid "guestfish command line is hard to use."
1494 msgstr ""
1495
1496 # type: textblock
1497 #: ../src/guestfs.pod:746
1498 msgid ""
1499 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
1500 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
1501 "exist, so it fails.  In earlier versions of guestfish the error message was "
1502 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
1503 "we should have used C<guestfish -c command> to run commands."
1504 msgstr ""
1505
1506 # type: =item
1507 #: ../src/guestfs.pod:753
1508 msgid "guestfish megabyte modifiers don't work right on all commands"
1509 msgstr ""
1510
1511 # type: textblock
1512 #: ../src/guestfs.pod:755
1513 msgid ""
1514 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
1515 "other modifiers).  What guestfish actually does is to multiply the number "
1516 "part by the modifier part and pass the result to the C API.  However this "
1517 "doesn't work for a few APIs which aren't expecting bytes, but are already "
1518 "expecting some other unit (eg. megabytes)."
1519 msgstr ""
1520
1521 # type: textblock
1522 #: ../src/guestfs.pod:762
1523 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
1524 msgstr ""
1525
1526 # type: verbatim
1527 #: ../src/guestfs.pod:764
1528 #, no-wrap
1529 msgid ""
1530 " lvcreate LV VG 100M\n"
1531 "\n"
1532 msgstr ""
1533
1534 # type: textblock
1535 #: ../src/guestfs.pod:766
1536 msgid ""
1537 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
1538 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
1539 "megabytes * megabytes) logical volume.  The error message you get from this "
1540 "is also a little obscure."
1541 msgstr ""
1542
1543 # type: textblock
1544 #: ../src/guestfs.pod:771
1545 msgid ""
1546 "This could be fixed in the generator by specially marking parameters and "
1547 "return values which take bytes or other units."
1548 msgstr ""
1549
1550 # type: =item
1551 #: ../src/guestfs.pod:774
1552 msgid "Ambiguity between devices and paths"
1553 msgstr ""
1554
1555 # type: textblock
1556 #: ../src/guestfs.pod:776
1557 msgid ""
1558 "There is a subtle ambiguity in the API between a device name "
1559 "(eg. C</dev/sdb2>) and a similar pathname.  A file might just happen to be "
1560 "called C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
1561 msgstr ""
1562
1563 # type: textblock
1564 #: ../src/guestfs.pod:781
1565 msgid ""
1566 "In the current API we usually resolve this ambiguity by having two separate "
1567 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
1568 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
1569 "detecting if the path supplied begins with C</dev/>."
1570 msgstr ""
1571
1572 # type: textblock
1573 #: ../src/guestfs.pod:787
1574 msgid ""
1575 "To avoid both the ambiguity and the need to duplicate some calls, we could "
1576 "make paths/devices into structured names.  One way to do this would be to "
1577 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
1578 "aspect of grub.  Another way would be to use a structured type, equivalent "
1579 "to this OCaml type:"
1580 msgstr ""
1581
1582 # type: verbatim
1583 #: ../src/guestfs.pod:793
1584 #, no-wrap
1585 msgid ""
1586 " type path = Path of string | Device of int | Partition of int * int\n"
1587 "\n"
1588 msgstr ""
1589
1590 # type: textblock
1591 #: ../src/guestfs.pod:795
1592 msgid "which would allow you to pass arguments like:"
1593 msgstr ""
1594
1595 # type: verbatim
1596 #: ../src/guestfs.pod:797
1597 #, no-wrap
1598 msgid ""
1599 " Path \"/foo/bar\"\n"
1600 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
1601 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
1602 " Path \"/dev/sdb2\"    (* not a device *)\n"
1603 "\n"
1604 msgstr ""
1605
1606 # type: textblock
1607 #: ../src/guestfs.pod:802
1608 msgid ""
1609 "As you can see there are still problems to resolve even with this "
1610 "representation.  Also consider how it might work in guestfish."
1611 msgstr ""
1612
1613 # type: =head2
1614 #: ../src/guestfs.pod:807
1615 msgid "PROTOCOL LIMITS"
1616 msgstr ""
1617
1618 # type: textblock
1619 #: ../src/guestfs.pod:809
1620 msgid ""
1621 "Internally libguestfs uses a message-based protocol to pass API calls and "
1622 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
1623 "plenty more detail about this).  The maximum message size used by the "
1624 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
1625 "aware of this limit.  The API calls which may be affected are individually "
1626 "documented, with a link back to this section of the documentation."
1627 msgstr ""
1628
1629 # type: textblock
1630 #: ../src/guestfs.pod:817
1631 msgid ""
1632 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
1633 "a simple string.  Because this string is at some point internally encoded as "
1634 "a message, the maximum size that it can return is slightly under 4 MB.  If "
1635 "the requested file is larger than this then you will get an error."
1636 msgstr ""
1637
1638 # type: textblock
1639 #: ../src/guestfs.pod:823
1640 msgid ""
1641 "In order to transfer large files into and out of the guest filesystem, you "
1642 "need to use particular calls that support this.  The sections L</UPLOADING> "
1643 "and L</DOWNLOADING> document how to do this."
1644 msgstr ""
1645
1646 # type: textblock
1647 #: ../src/guestfs.pod:827
1648 msgid ""
1649 "You might also consider mounting the disk image using our FUSE filesystem "
1650 "support (L<guestmount(1)>)."
1651 msgstr ""
1652
1653 # type: =head2
1654 #: ../src/guestfs.pod:830
1655 msgid "KEYS AND PASSPHRASES"
1656 msgstr ""
1657
1658 # type: textblock
1659 #: ../src/guestfs.pod:832
1660 msgid ""
1661 "Certain libguestfs calls take a parameter that contains sensitive key "
1662 "material, passed in as a C string."
1663 msgstr ""
1664
1665 # type: textblock
1666 #: ../src/guestfs.pod:835
1667 msgid ""
1668 "In the future we would hope to change the libguestfs implementation so that "
1669 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
1670 "swap.  However this is I<not> done at the moment, because of the complexity "
1671 "of such an implementation."
1672 msgstr ""
1673
1674 # type: textblock
1675 #: ../src/guestfs.pod:840
1676 msgid ""
1677 "Therefore you should be aware that any key parameter you pass to libguestfs "
1678 "might end up being written out to the swap partition.  If this is a concern, "
1679 "scrub the swap partition or don't use libguestfs on encrypted devices."
1680 msgstr ""
1681
1682 # type: =head2
1683 #: ../src/guestfs.pod:845
1684 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
1685 msgstr ""
1686
1687 # type: textblock
1688 #: ../src/guestfs.pod:847
1689 msgid ""
1690 "All high-level libguestfs actions are synchronous.  If you want to use "
1691 "libguestfs asynchronously then you must create a thread."
1692 msgstr ""
1693
1694 # type: textblock
1695 #: ../src/guestfs.pod:850
1696 msgid ""
1697 "Only use the handle from a single thread.  Either use the handle exclusively "
1698 "from one thread, or provide your own mutex so that two threads cannot issue "
1699 "calls on the same handle at the same time."
1700 msgstr ""
1701
1702 # type: textblock
1703 #: ../src/guestfs.pod:854
1704 msgid ""
1705 "See the graphical program guestfs-browser for one possible architecture for "
1706 "multithreaded programs using libvirt and libguestfs."
1707 msgstr ""
1708
1709 # type: =head2
1710 #: ../src/guestfs.pod:857
1711 msgid "PATH"
1712 msgstr ""
1713
1714 # type: textblock
1715 #: ../src/guestfs.pod:859
1716 msgid ""
1717 "Libguestfs needs a kernel and initrd.img, which it finds by looking along an "
1718 "internal path."
1719 msgstr ""
1720
1721 # type: textblock
1722 #: ../src/guestfs.pod:862
1723 msgid ""
1724 "By default it looks for these in the directory C<$libdir/guestfs> "
1725 "(eg. C</usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
1726 msgstr ""
1727
1728 # type: textblock
1729 #: ../src/guestfs.pod:865
1730 msgid ""
1731 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
1732 "to change the directories that libguestfs will search in.  The value is a "
1733 "colon-separated list of paths.  The current directory is I<not> searched "
1734 "unless the path contains an empty element or C<.>.  For example "
1735 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
1736 "then C</usr/lib/guestfs>."
1737 msgstr ""
1738
1739 # type: =head2
1740 #: ../src/guestfs.pod:872
1741 msgid "QEMU WRAPPERS"
1742 msgstr ""
1743
1744 # type: textblock
1745 #: ../src/guestfs.pod:874
1746 msgid ""
1747 "If you want to compile your own qemu, run qemu from a non-standard location, "
1748 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
1749 "around qemu."
1750 msgstr ""
1751
1752 # type: textblock
1753 #: ../src/guestfs.pod:878
1754 msgid ""
1755 "There is one important rule to remember: you I<must C<exec qemu>> as the "
1756 "last command in the shell script (so that qemu replaces the shell and "
1757 "becomes the direct child of the libguestfs-using program).  If you don't do "
1758 "this, then the qemu process won't be cleaned up correctly."
1759 msgstr ""
1760
1761 # type: textblock
1762 #: ../src/guestfs.pod:883
1763 msgid ""
1764 "Here is an example of a wrapper, where I have built my own copy of qemu from "
1765 "source:"
1766 msgstr ""
1767
1768 # type: verbatim
1769 #: ../src/guestfs.pod:886
1770 #, no-wrap
1771 msgid ""
1772 " #!/bin/sh -\n"
1773 " qemudir=/home/rjones/d/qemu\n"
1774 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios "
1775 "\"$@\"\n"
1776 "\n"
1777 msgstr ""
1778
1779 # type: textblock
1780 #: ../src/guestfs.pod:890
1781 msgid ""
1782 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
1783 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
1784 "example:"
1785 msgstr ""
1786
1787 # type: verbatim
1788 #: ../src/guestfs.pod:894
1789 #, no-wrap
1790 msgid ""
1791 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
1792 "\n"
1793 msgstr ""
1794
1795 # type: textblock
1796 #: ../src/guestfs.pod:896
1797 msgid ""
1798 "Note that libguestfs also calls qemu with the -help and -version options in "
1799 "order to determine features."
1800 msgstr ""
1801
1802 # type: =head2
1803 #: ../src/guestfs.pod:899
1804 msgid "ABI GUARANTEE"
1805 msgstr ""
1806
1807 # type: textblock
1808 #: ../src/guestfs.pod:901
1809 msgid ""
1810 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
1811 "actions as outlined in this section.  Although we will deprecate some "
1812 "actions, for example if they get replaced by newer calls, we will keep the "
1813 "old actions forever.  This allows you the developer to program in confidence "
1814 "against the libguestfs API."
1815 msgstr ""
1816
1817 # type: =head2
1818 #: ../src/guestfs.pod:907
1819 msgid "BLOCK DEVICE NAMING"
1820 msgstr ""
1821
1822 # type: textblock
1823 #: ../src/guestfs.pod:909
1824 msgid ""
1825 "In the kernel there is now quite a profusion of schemata for naming block "
1826 "devices (in this context, by I<block device> I mean a physical or virtual "
1827 "hard drive).  The original Linux IDE driver used names starting with "
1828 "C</dev/hd*>.  SCSI devices have historically used a different naming scheme, "
1829 "C</dev/sd*>.  When the Linux kernel I<libata> driver became a popular "
1830 "replacement for the old IDE driver (particularly for SATA devices) those "
1831 "devices also used the C</dev/sd*> scheme.  Additionally we now have virtual "
1832 "machines with paravirtualized drivers.  This has created several different "
1833 "naming systems, such as C</dev/vd*> for virtio disks and C</dev/xvd*> for "
1834 "Xen PV disks."
1835 msgstr ""
1836
1837 # type: textblock
1838 #: ../src/guestfs.pod:921
1839 msgid ""
1840 "As discussed above, libguestfs uses a qemu appliance running an embedded "
1841 "Linux kernel to access block devices.  We can run a variety of appliances "
1842 "based on a variety of Linux kernels."
1843 msgstr ""
1844
1845 # type: textblock
1846 #: ../src/guestfs.pod:925
1847 msgid ""
1848 "This causes a problem for libguestfs because many API calls use device or "
1849 "partition names.  Working scripts and the recipe (example) scripts that we "
1850 "make available over the internet could fail if the naming scheme changes."
1851 msgstr ""
1852
1853 # type: textblock
1854 #: ../src/guestfs.pod:930
1855 msgid ""
1856 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
1857 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
1858 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
1859 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
1860 msgstr ""
1861
1862 # type: textblock
1863 #: ../src/guestfs.pod:936
1864 msgid ""
1865 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
1866 "L</guestfs_list_partitions> and similar calls return the true names of the "
1867 "devices and partitions as known to the appliance."
1868 msgstr ""
1869
1870 # type: =head3
1871 #: ../src/guestfs.pod:941
1872 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
1873 msgstr ""
1874
1875 # type: textblock
1876 #: ../src/guestfs.pod:943
1877 msgid ""
1878 "Usually this translation is transparent.  However in some (very rare)  cases "
1879 "you may need to know the exact algorithm.  Such cases include where you use "
1880 "L</guestfs_config> to add a mixture of virtio and IDE devices to the "
1881 "qemu-based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> "
1882 "devices."
1883 msgstr ""
1884
1885 # type: textblock
1886 #: ../src/guestfs.pod:949
1887 msgid ""
1888 "The algorithm is applied only to I<parameters> which are known to be either "
1889 "device or partition names.  Return values from functions such as "
1890 "L</guestfs_list_devices> are never changed."
1891 msgstr ""
1892
1893 # type: textblock
1894 #: ../src/guestfs.pod:957
1895 msgid "Is the string a parameter which is a device or partition name?"
1896 msgstr ""
1897
1898 # type: textblock
1899 #: ../src/guestfs.pod:961
1900 msgid "Does the string begin with C</dev/sd>?"
1901 msgstr ""
1902
1903 # type: textblock
1904 #: ../src/guestfs.pod:965
1905 msgid ""
1906 "Does the named device exist? If so, we use that device.  However if I<not> "
1907 "then we continue with this algorithm."
1908 msgstr ""
1909
1910 # type: textblock
1911 #: ../src/guestfs.pod:970
1912 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
1913 msgstr ""
1914
1915 # type: textblock
1916 #: ../src/guestfs.pod:972
1917 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
1918 msgstr ""
1919
1920 # type: textblock
1921 #: ../src/guestfs.pod:974
1922 msgid "If that named device exists, use it.  If not, continue."
1923 msgstr ""
1924
1925 # type: textblock
1926 #: ../src/guestfs.pod:978
1927 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
1928 msgstr ""
1929
1930 # type: textblock
1931 #: ../src/guestfs.pod:980
1932 msgid "If that named device exists, use it.  If not, return an error."
1933 msgstr ""
1934
1935 # type: =head3
1936 #: ../src/guestfs.pod:984
1937 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
1938 msgstr ""
1939
1940 # type: textblock
1941 #: ../src/guestfs.pod:986
1942 msgid ""
1943 "Although the standard naming scheme and automatic translation is useful for "
1944 "simple programs and guestfish scripts, for larger programs it is best not to "
1945 "rely on this mechanism."
1946 msgstr ""
1947
1948 # type: textblock
1949 #: ../src/guestfs.pod:990
1950 msgid ""
1951 "Where possible for maximum future portability programs using libguestfs "
1952 "should use these future-proof techniques:"
1953 msgstr ""
1954
1955 # type: textblock
1956 #: ../src/guestfs.pod:997
1957 msgid ""
1958 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
1959 "device names, and then use those names directly."
1960 msgstr ""
1961
1962 # type: textblock
1963 #: ../src/guestfs.pod:1000
1964 msgid "Since those device names exist by definition, they will never be translated."
1965 msgstr ""
1966
1967 # type: textblock
1968 #: ../src/guestfs.pod:1005
1969 msgid ""
1970 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
1971 "filesystem labels."
1972 msgstr ""
1973
1974 # type: =head1
1975 #: ../src/guestfs.pod:1010
1976 msgid "SECURITY"
1977 msgstr ""
1978
1979 # type: textblock
1980 #: ../src/guestfs.pod:1012
1981 msgid ""
1982 "This section discusses security implications of using libguestfs, "
1983 "particularly with untrusted or malicious guests or disk images."
1984 msgstr ""
1985
1986 # type: =head2
1987 #: ../src/guestfs.pod:1015
1988 msgid "GENERAL SECURITY CONSIDERATIONS"
1989 msgstr ""
1990
1991 # type: textblock
1992 #: ../src/guestfs.pod:1017
1993 msgid ""
1994 "Be careful with any files or data that you download from a guest (by "
1995 "\"download\" we mean not just the L</guestfs_download> command but any "
1996 "command that reads files, filenames, directories or anything else from a "
1997 "disk image).  An attacker could manipulate the data to fool your program "
1998 "into doing the wrong thing.  Consider cases such as:"
1999 msgstr ""
2000
2001 # type: textblock
2002 #: ../src/guestfs.pod:1027
2003 msgid "the data (file etc) not being present"
2004 msgstr ""
2005
2006 # type: textblock
2007 #: ../src/guestfs.pod:1031
2008 msgid "being present but empty"
2009 msgstr ""
2010
2011 # type: textblock
2012 #: ../src/guestfs.pod:1035
2013 msgid "being much larger than normal"
2014 msgstr ""
2015
2016 # type: textblock
2017 #: ../src/guestfs.pod:1039
2018 msgid "containing arbitrary 8 bit data"
2019 msgstr ""
2020
2021 # type: textblock
2022 #: ../src/guestfs.pod:1043
2023 msgid "being in an unexpected character encoding"
2024 msgstr ""
2025
2026 # type: textblock
2027 #: ../src/guestfs.pod:1047
2028 msgid "containing homoglyphs."
2029 msgstr ""
2030
2031 # type: =head2
2032 #: ../src/guestfs.pod:1051
2033 msgid "SECURITY OF MOUNTING FILESYSTEMS"
2034 msgstr ""
2035
2036 # type: textblock
2037 #: ../src/guestfs.pod:1053
2038 msgid ""
2039 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
2040 "(VFS) module can sometimes be escalated into exploits by deliberately "
2041 "creating a malicious, malformed filesystem.  These exploits are very severe "
2042 "for two reasons.  Firstly there are very many filesystem drivers in the "
2043 "kernel, and many of them are infrequently used and not much developer "
2044 "attention has been paid to the code.  Linux userspace helps potential "
2045 "crackers by detecting the filesystem type and automatically choosing the "
2046 "right VFS driver, even if that filesystem type is obscure or unexpected for "
2047 "the administrator.  Secondly, a kernel-level exploit is like a local root "
2048 "exploit (worse in some ways), giving immediate and total access to the "
2049 "system right down to the hardware level."
2050 msgstr ""
2051
2052 # type: textblock
2053 #: ../src/guestfs.pod:1066
2054 msgid ""
2055 "That explains why you should never mount a filesystem from an untrusted "
2056 "guest on your host kernel.  How about libguestfs? We run a Linux kernel "
2057 "inside a qemu virtual machine, usually running as a non-root user.  The "
2058 "attacker would need to write a filesystem which first exploited the kernel, "
2059 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
2060 "the libguestfs protocol, and finally to be as serious as the host kernel "
2061 "exploit it would need to escalate its privileges to root.  This multi-step "
2062 "escalation, performed by a static piece of data, is thought to be extremely "
2063 "hard to do, although we never say 'never' about security issues."
2064 msgstr ""
2065
2066 # type: textblock
2067 #: ../src/guestfs.pod:1077
2068 msgid ""
2069 "In any case callers can reduce the attack surface by forcing the filesystem "
2070 "type when mounting (use L</guestfs_mount_vfs>)."
2071 msgstr ""
2072
2073 # type: =head2
2074 #: ../src/guestfs.pod:1080
2075 msgid "PROTOCOL SECURITY"
2076 msgstr ""
2077
2078 # type: textblock
2079 #: ../src/guestfs.pod:1082
2080 msgid ""
2081 "The protocol is designed to be secure, being based on RFC 4506 (XDR)  with a "
2082 "defined upper message size.  However a program that uses libguestfs must "
2083 "also take care - for example you can write a program that downloads a binary "
2084 "from a disk image and executes it locally, and no amount of protocol "
2085 "security will save you from the consequences."
2086 msgstr ""
2087
2088 # type: =head2
2089 #: ../src/guestfs.pod:1088
2090 msgid "INSPECTION SECURITY"
2091 msgstr ""
2092
2093 # type: textblock
2094 #: ../src/guestfs.pod:1090
2095 msgid ""
2096 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
2097 "directly from the guest, and these could contain any 8 bit data.  Callers "
2098 "should be careful to escape these before printing them to a structured file "
2099 "(for example, use HTML escaping if creating a web page)."
2100 msgstr ""
2101
2102 # type: textblock
2103 #: ../src/guestfs.pod:1096
2104 msgid ""
2105 "Guest configuration may be altered in unusual ways by the administrator of "
2106 "the virtual machine, and may not reflect reality (particularly for untrusted "
2107 "or actively malicious guests).  For example we parse the hostname from "
2108 "configuration files like C</etc/sysconfig/network> that we find in the "
2109 "guest, but the guest administrator can easily manipulate these files to "
2110 "provide the wrong hostname."
2111 msgstr ""
2112
2113 # type: textblock
2114 #: ../src/guestfs.pod:1104
2115 msgid ""
2116 "The inspection API parses guest configuration using two external libraries: "
2117 "Augeas (Linux configuration) and hivex (Windows Registry).  Both are "
2118 "designed to be robust in the face of malicious data, although denial of "
2119 "service attacks are still possible, for example with oversized configuration "
2120 "files."
2121 msgstr ""
2122
2123 # type: =head2
2124 #: ../src/guestfs.pod:1110
2125 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
2126 msgstr ""
2127
2128 # type: textblock
2129 #: ../src/guestfs.pod:1112
2130 msgid ""
2131 "Be very cautious about running commands from the guest.  By running a "
2132 "command in the guest, you are giving CPU time to a binary that you do not "
2133 "control, under the same user account as the library, albeit wrapped in qemu "
2134 "virtualization.  More information and alternatives can be found in the "
2135 "section L</RUNNING COMMANDS>."
2136 msgstr ""
2137
2138 # type: =head2
2139 #: ../src/guestfs.pod:1118
2140 msgid "CVE-2010-3851"
2141 msgstr ""
2142
2143 # type: textblock
2144 #: ../src/guestfs.pod:1120
2145 msgid "https://bugzilla.redhat.com/642934"
2146 msgstr ""
2147
2148 # type: textblock
2149 #: ../src/guestfs.pod:1122
2150 msgid ""
2151 "This security bug concerns the automatic disk format detection that qemu "
2152 "does on disk images."
2153 msgstr ""
2154
2155 # type: textblock
2156 #: ../src/guestfs.pod:1125
2157 msgid ""
2158 "A raw disk image is just the raw bytes, there is no header.  Other disk "
2159 "images like qcow2 contain a special header.  Qemu deals with this by looking "
2160 "for one of the known headers, and if none is found then assuming the disk "
2161 "image must be raw."
2162 msgstr ""
2163
2164 # type: textblock
2165 #: ../src/guestfs.pod:1130
2166 msgid ""
2167 "This allows a guest which has been given a raw disk image to write some "
2168 "other header.  At next boot (or when the disk image is accessed by "
2169 "libguestfs) qemu would do autodetection and think the disk image format was, "
2170 "say, qcow2 based on the header written by the guest."
2171 msgstr ""
2172
2173 # type: textblock
2174 #: ../src/guestfs.pod:1135
2175 msgid ""
2176 "This in itself would not be a problem, but qcow2 offers many features, one "
2177 "of which is to allow a disk image to refer to another image (called the "
2178 "\"backing disk\").  It does this by placing the path to the backing disk "
2179 "into the qcow2 header.  This path is not validated and could point to any "
2180 "host file (eg. \"/etc/passwd\").  The backing disk is then exposed through "
2181 "\"holes\" in the qcow2 disk image, which of course is completely under the "
2182 "control of the attacker."
2183 msgstr ""
2184
2185 # type: textblock
2186 #: ../src/guestfs.pod:1143
2187 msgid "In libguestfs this is rather hard to exploit except under two circumstances:"
2188 msgstr ""
2189
2190 # type: textblock
2191 #: ../src/guestfs.pod:1150
2192 msgid "You have enabled the network or have opened the disk in write mode."
2193 msgstr ""
2194
2195 # type: textblock
2196 #: ../src/guestfs.pod:1154
2197 msgid ""
2198 "You are also running untrusted code from the guest (see L</RUNNING "
2199 "COMMANDS>)."
2200 msgstr ""
2201
2202 # type: textblock
2203 #: ../src/guestfs.pod:1159
2204 msgid ""
2205 "The way to avoid this is to specify the expected disk format when adding "
2206 "disks (the optional C<format> option to L</guestfs_add_drive_opts>).  You "
2207 "should always do this if the disk is raw format, and it's a good idea for "
2208 "other cases too."
2209 msgstr ""
2210
2211 # type: textblock
2212 #: ../src/guestfs.pod:1164
2213 msgid ""
2214 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
2215 "format is fetched from libvirt and passed through."
2216 msgstr ""
2217
2218 # type: textblock
2219 #: ../src/guestfs.pod:1167
2220 msgid ""
2221 "For libguestfs tools, use the I<--format> command line parameter as "
2222 "appropriate."
2223 msgstr ""
2224
2225 # type: =head1
2226 #: ../src/guestfs.pod:1170
2227 msgid "CONNECTION MANAGEMENT"
2228 msgstr ""
2229
2230 # type: =head2
2231 #: ../src/guestfs.pod:1172
2232 msgid "guestfs_h *"
2233 msgstr ""
2234
2235 # type: textblock
2236 #: ../src/guestfs.pod:1174
2237 msgid ""
2238 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
2239 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
2240 "handle and release all resources used."
2241 msgstr ""
2242
2243 # type: textblock
2244 #: ../src/guestfs.pod:1178
2245 msgid ""
2246 "For information on using multiple handles and threads, see the section "
2247 "L</MULTIPLE HANDLES AND MULTIPLE THREADS> below."
2248 msgstr ""
2249
2250 # type: =head2
2251 #: ../src/guestfs.pod:1181
2252 msgid "guestfs_create"
2253 msgstr ""
2254
2255 # type: verbatim
2256 #: ../src/guestfs.pod:1183
2257 #, no-wrap
2258 msgid ""
2259 " guestfs_h *guestfs_create (void);\n"
2260 "\n"
2261 msgstr ""
2262
2263 # type: textblock
2264 #: ../src/guestfs.pod:1185
2265 msgid "Create a connection handle."
2266 msgstr ""
2267
2268 # type: textblock
2269 #: ../src/guestfs.pod:1187
2270 msgid ""
2271 "You have to call L</guestfs_add_drive_opts> (or one of the equivalent calls) "
2272 "on the handle at least once."
2273 msgstr ""
2274
2275 # type: textblock
2276 #: ../src/guestfs.pod:1190
2277 msgid ""
2278 "This function returns a non-NULL pointer to a handle on success or NULL on "
2279 "error."
2280 msgstr ""
2281
2282 # type: textblock
2283 #: ../src/guestfs.pod:1193
2284 msgid "After configuring the handle, you have to call L</guestfs_launch>."
2285 msgstr ""
2286
2287 # type: textblock
2288 #: ../src/guestfs.pod:1195
2289 msgid ""
2290 "You may also want to configure error handling for the handle.  See L</ERROR "
2291 "HANDLING> section below."
2292 msgstr ""
2293
2294 # type: =head2
2295 #: ../src/guestfs.pod:1198
2296 msgid "guestfs_close"
2297 msgstr ""
2298
2299 # type: verbatim
2300 #: ../src/guestfs.pod:1200
2301 #, no-wrap
2302 msgid ""
2303 " void guestfs_close (guestfs_h *g);\n"
2304 "\n"
2305 msgstr ""
2306
2307 # type: textblock
2308 #: ../src/guestfs.pod:1202
2309 msgid "This closes the connection handle and frees up all resources used."
2310 msgstr ""
2311
2312 # type: =head1
2313 #: ../src/guestfs.pod:1204
2314 msgid "ERROR HANDLING"
2315 msgstr ""
2316
2317 # type: textblock
2318 #: ../src/guestfs.pod:1206
2319 msgid ""
2320 "API functions can return errors.  For example, almost all functions that "
2321 "return C<int> will return C<-1> to indicate an error."
2322 msgstr ""
2323
2324 # type: textblock
2325 #: ../src/guestfs.pod:1209
2326 msgid ""
2327 "Additional information is available for errors: an error message string and "
2328 "optionally an error number (errno) if the thing that failed was a system "
2329 "call."
2330 msgstr ""
2331
2332 # type: textblock
2333 #: ../src/guestfs.pod:1213
2334 msgid ""
2335 "You can get at the additional information about the last error on the handle "
2336 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
2337 "up an error handler with L</guestfs_set_error_handler>."
2338 msgstr ""
2339
2340 # type: textblock
2341 #: ../src/guestfs.pod:1218
2342 msgid ""
2343 "When the handle is created, a default error handler is installed which "
2344 "prints the error message string to C<stderr>.  For small short-running "
2345 "command line programs it is sufficient to do:"
2346 msgstr ""
2347
2348 # type: verbatim
2349 #: ../src/guestfs.pod:1222
2350 #, no-wrap
2351 msgid ""
2352 " if (guestfs_launch (g) == -1)\n"
2353 "   exit (EXIT_FAILURE);\n"
2354 "\n"
2355 msgstr ""
2356
2357 # type: textblock
2358 #: ../src/guestfs.pod:1225
2359 msgid ""
2360 "since the default error handler will ensure that an error message has been "
2361 "printed to C<stderr> before the program exits."
2362 msgstr ""
2363
2364 # type: textblock
2365 #: ../src/guestfs.pod:1228
2366 msgid ""
2367 "For other programs the caller will almost certainly want to install an "
2368 "alternate error handler or do error handling in-line like this:"
2369 msgstr ""
2370
2371 # type: verbatim
2372 #: ../src/guestfs.pod:1231
2373 #, no-wrap
2374 msgid ""
2375 " g = guestfs_create ();\n"
2376 " \n"
2377 msgstr ""
2378
2379 # type: verbatim
2380 #: ../src/guestfs.pod:1233
2381 #, no-wrap
2382 msgid ""
2383 " /* This disables the default behaviour of printing errors\n"
2384 "    on stderr. */\n"
2385 " guestfs_set_error_handler (g, NULL, NULL);\n"
2386 " \n"
2387 msgstr ""
2388
2389 # type: verbatim
2390 #: ../src/guestfs.pod:1237
2391 #, no-wrap
2392 msgid ""
2393 " if (guestfs_launch (g) == -1) {\n"
2394 "   /* Examine the error message and print it etc. */\n"
2395 "   char *msg = guestfs_last_error (g);\n"
2396 "   int errnum = guestfs_last_errno (g);\n"
2397 "   fprintf (stderr, \"%s\\n\", msg);\n"
2398 "   /* ... */\n"
2399 "  }\n"
2400 "\n"
2401 msgstr ""
2402
2403 # type: textblock
2404 #: ../src/guestfs.pod:1245
2405 msgid ""
2406 "Out of memory errors are handled differently.  The default action is to call "
2407 "L<abort(3)>.  If this is undesirable, then you can set a handler using "
2408 "L</guestfs_set_out_of_memory_handler>."
2409 msgstr ""
2410
2411 # type: textblock
2412 #: ../src/guestfs.pod:1249
2413 msgid ""
2414 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
2415 "because there is no handle if this happens there is no way to get additional "
2416 "error information.  However L</guestfs_create> is supposed to be a "
2417 "lightweight operation which can only fail because of insufficient memory (it "
2418 "returns NULL in this case)."
2419 msgstr ""
2420
2421 # type: =head2
2422 #: ../src/guestfs.pod:1255
2423 msgid "guestfs_last_error"
2424 msgstr ""
2425
2426 # type: verbatim
2427 #: ../src/guestfs.pod:1257
2428 #, no-wrap
2429 msgid ""
2430 " const char *guestfs_last_error (guestfs_h *g);\n"
2431 "\n"
2432 msgstr ""
2433
2434 # type: textblock
2435 #: ../src/guestfs.pod:1259
2436 msgid ""
2437 "This returns the last error message that happened on C<g>.  If there has not "
2438 "been an error since the handle was created, then this returns C<NULL>."
2439 msgstr ""
2440
2441 # type: textblock
2442 #: ../src/guestfs.pod:1263
2443 msgid ""
2444 "The lifetime of the returned string is until the next error occurs, or "
2445 "L</guestfs_close> is called."
2446 msgstr ""
2447
2448 # type: =head2
2449 #: ../src/guestfs.pod:1266
2450 msgid "guestfs_last_errno"
2451 msgstr ""
2452
2453 # type: verbatim
2454 #: ../src/guestfs.pod:1268
2455 #, no-wrap
2456 msgid ""
2457 " int guestfs_last_errno (guestfs_h *g);\n"
2458 "\n"
2459 msgstr ""
2460
2461 # type: textblock
2462 #: ../src/guestfs.pod:1270
2463 msgid "This returns the last error number (errno) that happened on C<g>."
2464 msgstr ""
2465
2466 # type: textblock
2467 #: ../src/guestfs.pod:1272
2468 msgid "If successful, an errno integer not equal to zero is returned."
2469 msgstr ""
2470
2471 # type: textblock
2472 #: ../src/guestfs.pod:1274
2473 msgid "If no error, this returns 0.  This call can return 0 in three situations:"
2474 msgstr ""
2475
2476 # type: textblock
2477 #: ../src/guestfs.pod:1281
2478 msgid "There has not been any error on the handle."
2479 msgstr ""
2480
2481 # type: textblock
2482 #: ../src/guestfs.pod:1285
2483 msgid ""
2484 "There has been an error but the errno was meaningless.  This corresponds to "
2485 "the case where the error did not come from a failed system call, but for "
2486 "some other reason."
2487 msgstr ""
2488
2489 # type: textblock
2490 #: ../src/guestfs.pod:1291
2491 msgid ""
2492 "There was an error from a failed system call, but for some reason the errno "
2493 "was not captured and returned.  This usually indicates a bug in libguestfs."
2494 msgstr ""
2495
2496 # type: textblock
2497 #: ../src/guestfs.pod:1297
2498 msgid ""
2499 "Libguestfs tries to convert the errno from inside the applicance into a "
2500 "corresponding errno for the caller (not entirely trivial: the appliance "
2501 "might be running a completely different operating system from the library "
2502 "and error numbers are not standardized across Un*xen).  If this could not be "
2503 "done, then the error is translated to C<EINVAL>.  In practice this should "
2504 "only happen in very rare circumstances."
2505 msgstr ""
2506
2507 # type: =head2
2508 #: ../src/guestfs.pod:1305
2509 msgid "guestfs_set_error_handler"
2510 msgstr ""
2511
2512 # type: verbatim
2513 #: ../src/guestfs.pod:1307
2514 #, no-wrap
2515 msgid ""
2516 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
2517 "                                           void *opaque,\n"
2518 "                                           const char *msg);\n"
2519 " void guestfs_set_error_handler (guestfs_h *g,\n"
2520 "                                 guestfs_error_handler_cb cb,\n"
2521 "                                 void *opaque);\n"
2522 "\n"
2523 msgstr ""
2524
2525 # type: textblock
2526 #: ../src/guestfs.pod:1314
2527 msgid ""
2528 "The callback C<cb> will be called if there is an error.  The parameters "
2529 "passed to the callback are an opaque data pointer and the error message "
2530 "string."
2531 msgstr ""
2532
2533 # type: textblock
2534 #: ../src/guestfs.pod:1318
2535 msgid ""
2536 "C<errno> is not passed to the callback.  To get that the callback must call "
2537 "L</guestfs_last_errno>."
2538 msgstr ""
2539
2540 # type: textblock
2541 #: ../src/guestfs.pod:1321
2542 msgid ""
2543 "Note that the message string C<msg> is freed as soon as the callback "
2544 "function returns, so if you want to stash it somewhere you must make your "
2545 "own copy."
2546 msgstr ""
2547
2548 # type: textblock
2549 #: ../src/guestfs.pod:1325
2550 msgid "The default handler prints messages on C<stderr>."
2551 msgstr ""
2552
2553 # type: textblock
2554 #: ../src/guestfs.pod:1327
2555 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
2556 msgstr ""
2557
2558 # type: =head2
2559 #: ../src/guestfs.pod:1329
2560 msgid "guestfs_get_error_handler"
2561 msgstr ""
2562
2563 # type: verbatim
2564 #: ../src/guestfs.pod:1331
2565 #, no-wrap
2566 msgid ""
2567 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
2568 "                                                     void **opaque_rtn);\n"
2569 "\n"
2570 msgstr ""
2571
2572 # type: textblock
2573 #: ../src/guestfs.pod:1334
2574 msgid "Returns the current error handler callback."
2575 msgstr ""
2576
2577 # type: =head2
2578 #: ../src/guestfs.pod:1336
2579 msgid "guestfs_set_out_of_memory_handler"
2580 msgstr ""
2581
2582 # type: verbatim
2583 #: ../src/guestfs.pod:1338
2584 #, no-wrap
2585 msgid ""
2586 " typedef void (*guestfs_abort_cb) (void);\n"
2587 " int guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
2588 "                                        guestfs_abort_cb);\n"
2589 "\n"
2590 msgstr ""
2591
2592 # type: textblock
2593 #: ../src/guestfs.pod:1342
2594 msgid ""
2595 "The callback C<cb> will be called if there is an out of memory situation.  "
2596 "I<Note this callback must not return>."
2597 msgstr ""
2598
2599 # type: textblock
2600 #: ../src/guestfs.pod:1345
2601 msgid "The default is to call L<abort(3)>."
2602 msgstr ""
2603
2604 # type: textblock
2605 #: ../src/guestfs.pod:1347
2606 msgid "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
2607 msgstr ""
2608
2609 # type: =head2
2610 #: ../src/guestfs.pod:1350
2611 msgid "guestfs_get_out_of_memory_handler"
2612 msgstr ""
2613
2614 # type: verbatim
2615 #: ../src/guestfs.pod:1352
2616 #, no-wrap
2617 msgid ""
2618 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
2619 "\n"
2620 msgstr ""
2621
2622 # type: textblock
2623 #: ../src/guestfs.pod:1354
2624 msgid "This returns the current out of memory handler."
2625 msgstr ""
2626
2627 # type: =head1
2628 #: ../src/guestfs.pod:1356
2629 msgid "API CALLS"
2630 msgstr ""
2631
2632 # type: textblock
2633 #: ../src/guestfs.pod:1358 ../fish/guestfish.pod:908
2634 msgid "@ACTIONS@"
2635 msgstr ""
2636
2637 # type: =head1
2638 #: ../src/guestfs.pod:1360
2639 msgid "STRUCTURES"
2640 msgstr ""
2641
2642 # type: textblock
2643 #: ../src/guestfs.pod:1362
2644 msgid "@STRUCTS@"
2645 msgstr ""
2646
2647 # type: =head1
2648 #: ../src/guestfs.pod:1364
2649 msgid "AVAILABILITY"
2650 msgstr ""
2651
2652 # type: =head2
2653 #: ../src/guestfs.pod:1366
2654 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
2655 msgstr ""
2656
2657 # type: textblock
2658 #: ../src/guestfs.pod:1368
2659 msgid ""
2660 "Using L</guestfs_available> you can test availability of the following "
2661 "groups of functions.  This test queries the appliance to see if the "
2662 "appliance you are currently using supports the functionality."
2663 msgstr ""
2664
2665 # type: textblock
2666 #: ../src/guestfs.pod:1373
2667 msgid "@AVAILABILITY@"
2668 msgstr ""
2669
2670 # type: =head2
2671 #: ../src/guestfs.pod:1375
2672 msgid "GUESTFISH supported COMMAND"
2673 msgstr ""
2674
2675 # type: textblock
2676 #: ../src/guestfs.pod:1377
2677 msgid ""
2678 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
2679 "prints out the available groups and whether they are supported by this build "
2680 "of libguestfs.  Note however that you have to do C<run> first."
2681 msgstr ""
2682
2683 # type: =head2
2684 #: ../src/guestfs.pod:1382
2685 msgid "SINGLE CALLS AT COMPILE TIME"
2686 msgstr ""
2687
2688 # type: textblock
2689 #: ../src/guestfs.pod:1384
2690 msgid ""
2691 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
2692 "function, such as:"
2693 msgstr ""
2694
2695 # type: verbatim
2696 #: ../src/guestfs.pod:1387
2697 #, no-wrap
2698 msgid ""
2699 " #define LIBGUESTFS_HAVE_DD 1\n"
2700 "\n"
2701 msgstr ""
2702
2703 # type: textblock
2704 #: ../src/guestfs.pod:1389
2705 msgid "if L</guestfs_dd> is available."
2706 msgstr ""
2707
2708 # type: textblock
2709 #: ../src/guestfs.pod:1391
2710 msgid ""
2711 "Before version 1.5.8, if you needed to test whether a single libguestfs "
2712 "function is available at compile time, we recommended using build tools such "
2713 "as autoconf or cmake.  For example in autotools you could use:"
2714 msgstr ""
2715
2716 # type: verbatim
2717 #: ../src/guestfs.pod:1396
2718 #, no-wrap
2719 msgid ""
2720 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
2721 " AC_CHECK_FUNCS([guestfs_dd])\n"
2722 "\n"
2723 msgstr ""
2724
2725 # type: textblock
2726 #: ../src/guestfs.pod:1399
2727 msgid ""
2728 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
2729 "in your program."
2730 msgstr ""
2731
2732 # type: =head2
2733 #: ../src/guestfs.pod:1402
2734 msgid "SINGLE CALLS AT RUN TIME"
2735 msgstr ""
2736
2737 # type: textblock
2738 #: ../src/guestfs.pod:1404
2739 msgid ""
2740 "Testing at compile time doesn't guarantee that a function really exists in "
2741 "the library.  The reason is that you might be dynamically linked against a "
2742 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
2743 "This situation unfortunately results in a segmentation fault, which is a "
2744 "shortcoming of the C dynamic linking system itself."
2745 msgstr ""
2746
2747 # type: textblock
2748 #: ../src/guestfs.pod:1411
2749 msgid ""
2750 "You can use L<dlopen(3)> to test if a function is available at run time, as "
2751 "in this example program (note that you still need the compile time check as "
2752 "well):"
2753 msgstr ""
2754
2755 # type: verbatim
2756 #: ../src/guestfs.pod:1415
2757 #, no-wrap
2758 msgid ""
2759 " #include <stdio.h>\n"
2760 " #include <stdlib.h>\n"
2761 " #include <unistd.h>\n"
2762 " #include <dlfcn.h>\n"
2763 " #include <guestfs.h>\n"
2764 " \n"
2765 msgstr ""
2766
2767 # type: verbatim
2768 #: ../src/guestfs.pod:1421
2769 #, no-wrap
2770 msgid ""
2771 " main ()\n"
2772 " {\n"
2773 " #ifdef LIBGUESTFS_HAVE_DD\n"
2774 "   void *dl;\n"
2775 "   int has_function;\n"
2776 " \n"
2777 msgstr ""
2778
2779 # type: verbatim
2780 #: ../src/guestfs.pod:1427
2781 #, no-wrap
2782 msgid ""
2783 "   /* Test if the function guestfs_dd is really available. */\n"
2784 "   dl = dlopen (NULL, RTLD_LAZY);\n"
2785 "   if (!dl) {\n"
2786 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
2787 "     exit (EXIT_FAILURE);\n"
2788 "   }\n"
2789 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
2790 "   dlclose (dl);\n"
2791 " \n"
2792 msgstr ""
2793
2794 # type: verbatim
2795 #: ../src/guestfs.pod:1436
2796 #, no-wrap
2797 msgid ""
2798 "   if (!has_function)\n"
2799 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
2800 "   else {\n"
2801 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
2802 "     /* Now it's safe to call\n"
2803 "     guestfs_dd (g, \"foo\", \"bar\");\n"
2804 "     */\n"
2805 "   }\n"
2806 " #else\n"
2807 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
2808 " #endif\n"
2809 "  }\n"
2810 "\n"
2811 msgstr ""
2812
2813 # type: textblock
2814 #: ../src/guestfs.pod:1449
2815 msgid ""
2816 "You may think the above is an awful lot of hassle, and it is.  There are "
2817 "other ways outside of the C linking system to ensure that this kind of "
2818 "incompatibility never arises, such as using package versioning:"
2819 msgstr ""
2820
2821 # type: verbatim
2822 #: ../src/guestfs.pod:1454
2823 #, no-wrap
2824 msgid ""
2825 " Requires: libguestfs >= 1.0.80\n"
2826 "\n"
2827 msgstr ""
2828
2829 # type: =head1
2830 #: ../src/guestfs.pod:1456
2831 msgid "CALLS WITH OPTIONAL ARGUMENTS"
2832 msgstr ""
2833
2834 # type: textblock
2835 #: ../src/guestfs.pod:1458
2836 msgid ""
2837 "A recent feature of the API is the introduction of calls which take optional "
2838 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
2839 "takes variable arguments (ie. C<...>), as in this example:"
2840 msgstr ""
2841
2842 # type: verbatim
2843 #: ../src/guestfs.pod:1463
2844 #, no-wrap
2845 msgid ""
2846 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
2847 "\n"
2848 msgstr ""
2849
2850 # type: textblock
2851 #: ../src/guestfs.pod:1465
2852 msgid ""
2853 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
2854 "call with no optional arguments specified:"
2855 msgstr ""
2856
2857 # type: verbatim
2858 #: ../src/guestfs.pod:1468
2859 #, no-wrap
2860 msgid ""
2861 " guestfs_add_drive_opts (g, filename, -1);\n"
2862 "\n"
2863 msgstr ""
2864
2865 # type: textblock
2866 #: ../src/guestfs.pod:1470
2867 msgid "With a single optional argument:"
2868 msgstr ""
2869
2870 # type: verbatim
2871 #: ../src/guestfs.pod:1472
2872 #, no-wrap
2873 msgid ""
2874 " guestfs_add_drive_opts (g, filename,\n"
2875 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
2876 "                         -1);\n"
2877 "\n"
2878 msgstr ""
2879
2880 # type: textblock
2881 #: ../src/guestfs.pod:1476
2882 msgid "With two:"
2883 msgstr ""
2884
2885 # type: verbatim
2886 #: ../src/guestfs.pod:1478
2887 #, no-wrap
2888 msgid ""
2889 " guestfs_add_drive_opts (g, filename,\n"
2890 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
2891 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
2892 "                         -1);\n"
2893 "\n"
2894 msgstr ""
2895
2896 # type: textblock
2897 #: ../src/guestfs.pod:1483
2898 msgid ""
2899 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
2900 "happen!"
2901 msgstr ""
2902
2903 # type: =head2
2904 #: ../src/guestfs.pod:1486
2905 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
2906 msgstr ""
2907
2908 # type: textblock
2909 #: ../src/guestfs.pod:1488
2910 msgid ""
2911 "The second variant has the same name with the suffix C<_va>, which works the "
2912 "same way but takes a C<va_list>.  See the C manual for details.  For the "
2913 "example function, this is declared:"
2914 msgstr ""
2915
2916 # type: verbatim
2917 #: ../src/guestfs.pod:1492
2918 #, no-wrap
2919 msgid ""
2920 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
2921 "                                va_list args);\n"
2922 "\n"
2923 msgstr ""
2924
2925 # type: =head2
2926 #: ../src/guestfs.pod:1495
2927 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
2928 msgstr ""
2929
2930 # type: textblock
2931 #: ../src/guestfs.pod:1497
2932 msgid ""
2933 "The third variant is useful where you need to construct these calls.  You "
2934 "pass in a structure where you fill in the optional fields.  The structure "
2935 "has a bitmask as the first element which you must set to indicate which "
2936 "fields you have filled in.  For our example function the structure and call "
2937 "are declared:"
2938 msgstr ""
2939
2940 # type: verbatim
2941 #: ../src/guestfs.pod:1503
2942 #, no-wrap
2943 msgid ""
2944 " struct guestfs_add_drive_opts_argv {\n"
2945 "   uint64_t bitmask;\n"
2946 "   int readonly;\n"
2947 "   const char *format;\n"
2948 "   /* ... */\n"
2949 " };\n"
2950 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
2951 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
2952 "\n"
2953 msgstr ""
2954
2955 # type: textblock
2956 #: ../src/guestfs.pod:1512
2957 msgid "You could call it like this:"
2958 msgstr ""
2959
2960 # type: verbatim
2961 #: ../src/guestfs.pod:1514
2962 #, no-wrap
2963 msgid ""
2964 " struct guestfs_add_drive_opts_argv optargs = {\n"
2965 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
2966 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
2967 "   .readonly = 1,\n"
2968 "   .format = \"qcow2\"\n"
2969 " };\n"
2970 " \n"
2971 msgstr ""
2972
2973 # type: verbatim
2974 #: ../src/guestfs.pod:1521
2975 #, no-wrap
2976 msgid ""
2977 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
2978 "\n"
2979 msgstr ""
2980
2981 # type: textblock
2982 #: ../src/guestfs.pod:1523 ../src/guestfs-actions.pod:11 ../src/guestfs-actions.pod:1842 ../fish/guestfish-actions.pod:9 ../fish/guestfish-actions.pod:1255
2983 msgid "Notes:"
2984 msgstr ""
2985
2986 # type: textblock
2987 #: ../src/guestfs.pod:1529
2988 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
2989 msgstr ""
2990
2991 # type: textblock
2992 #: ../src/guestfs.pod:1534
2993 msgid "You do not need to fill in all fields of the structure."
2994 msgstr ""
2995
2996 # type: textblock
2997 #: ../src/guestfs.pod:1538
2998 msgid ""
2999 "There must be a one-to-one correspondence between fields of the structure "
3000 "that are filled in, and bits set in the bitmask."
3001 msgstr ""
3002
3003 # type: =head2
3004 #: ../src/guestfs.pod:1543
3005 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
3006 msgstr ""
3007
3008 # type: textblock
3009 #: ../src/guestfs.pod:1545
3010 msgid ""
3011 "In other languages, optional arguments are expressed in the way that is "
3012 "natural for that language.  We refer you to the language-specific "
3013 "documentation for more details on that."
3014 msgstr ""
3015
3016 # type: textblock
3017 #: ../src/guestfs.pod:1549
3018 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
3019 msgstr ""
3020
3021 # type: =head2
3022 #: ../src/guestfs.pod:1551
3023 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
3024 msgstr ""
3025
3026 # type: textblock
3027 #: ../src/guestfs.pod:1553
3028 msgid ""
3029 "The child process generates events in some situations.  Current events "
3030 "include: receiving a log message, the child process exits."
3031 msgstr ""
3032
3033 # type: textblock
3034 #: ../src/guestfs.pod:1556
3035 msgid ""
3036 "Use the C<guestfs_set_*_callback> functions to set a callback for different "
3037 "types of events."
3038 msgstr ""
3039
3040 # type: textblock
3041 #: ../src/guestfs.pod:1559
3042 msgid ""
3043 "Only I<one callback of each type> can be registered for each handle.  "
3044 "Calling C<guestfs_set_*_callback> again overwrites the previous callback of "
3045 "that type.  Cancel all callbacks of this type by calling this function with "
3046 "C<cb> set to C<NULL>."
3047 msgstr ""
3048
3049 # type: =head2
3050 #: ../src/guestfs.pod:1564
3051 msgid "guestfs_set_log_message_callback"
3052 msgstr ""
3053
3054 # type: verbatim
3055 #: ../src/guestfs.pod:1566
3056 #, no-wrap
3057 msgid ""
3058 " typedef void (*guestfs_log_message_cb) (guestfs_h *g, void *opaque,\n"
3059 "                                         char *buf, int len);\n"
3060 " void guestfs_set_log_message_callback (guestfs_h *g,\n"
3061 "                                        guestfs_log_message_cb cb,\n"
3062 "                                        void *opaque);\n"
3063 "\n"
3064 msgstr ""
3065
3066 # type: textblock
3067 #: ../src/guestfs.pod:1572
3068 msgid ""
3069 "The callback function C<cb> will be called whenever qemu or the guest writes "
3070 "anything to the console."
3071 msgstr ""
3072
3073 # type: textblock
3074 #: ../src/guestfs.pod:1575
3075 msgid "Use this function to capture kernel messages and similar."
3076 msgstr ""
3077
3078 # type: textblock
3079 #: ../src/guestfs.pod:1577
3080 msgid ""
3081 "Normally there is no log message handler, and log messages are just "
3082 "discarded."
3083 msgstr ""
3084
3085 # type: =head2
3086 #: ../src/guestfs.pod:1580
3087 msgid "guestfs_set_subprocess_quit_callback"
3088 msgstr ""
3089
3090 # type: verbatim
3091 #: ../src/guestfs.pod:1582
3092 #, no-wrap
3093 msgid ""
3094 " typedef void (*guestfs_subprocess_quit_cb) (guestfs_h *g, void *opaque);\n"
3095 " void guestfs_set_subprocess_quit_callback (guestfs_h *g,\n"
3096 "                                            guestfs_subprocess_quit_cb cb,\n"
3097 "                                            void *opaque);\n"
3098 "\n"
3099 msgstr ""
3100
3101 # type: textblock
3102 #: ../src/guestfs.pod:1587
3103 msgid ""
3104 "The callback function C<cb> will be called when the child process quits, "
3105 "either asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
3106 "corresponds to a transition from any state to the CONFIG state)."
3107 msgstr ""
3108
3109 # type: =head2
3110 #: ../src/guestfs.pod:1592
3111 msgid "guestfs_set_launch_done_callback"
3112 msgstr ""
3113
3114 # type: verbatim
3115 #: ../src/guestfs.pod:1594
3116 #, no-wrap
3117 msgid ""
3118 " typedef void (*guestfs_launch_done_cb) (guestfs_h *g, void *opaque);\n"
3119 " void guestfs_set_launch_done_callback (guestfs_h *g,\n"
3120 "                                        guestfs_launch_done_cb cb,\n"
3121 "                                        void *opaque);\n"
3122 "\n"
3123 msgstr ""
3124
3125 # type: textblock
3126 #: ../src/guestfs.pod:1599
3127 msgid ""
3128 "The callback function C<cb> will be called when the child process becomes "
3129 "ready first time after it has been launched.  (This corresponds to a "
3130 "transition from LAUNCHING to the READY state)."
3131 msgstr ""
3132
3133 # type: =head2
3134 #: ../src/guestfs.pod:1603
3135 msgid "guestfs_set_close_callback"
3136 msgstr ""
3137
3138 # type: verbatim
3139 #: ../src/guestfs.pod:1605
3140 #, no-wrap
3141 msgid ""
3142 " typedef void (*guestfs_close_cb) (guestfs_h *g, void *opaque);\n"
3143 " void guestfs_set_close_callback (guestfs_h *g,\n"
3144 "                                  guestfs_close_cb cb,\n"
3145 "                                  void *opaque);\n"
3146 "\n"
3147 msgstr ""
3148
3149 # type: textblock
3150 #: ../src/guestfs.pod:1610
3151 msgid ""
3152 "The callback function C<cb> will be called while the handle is being closed "
3153 "(synchronously from L</guestfs_close>)."
3154 msgstr ""
3155
3156 # type: textblock
3157 #: ../src/guestfs.pod:1613
3158 msgid ""
3159 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
3160 "handles that are open when the program exits.  This means that this callback "
3161 "might be called indirectly from L<exit(3)>, which can cause unexpected "
3162 "problems in higher-level languages (eg. if your HLL interpreter has already "
3163 "been cleaned up by the time this is called, and if your callback then jumps "
3164 "into some HLL function)."
3165 msgstr ""
3166
3167 # type: =head2
3168 #: ../src/guestfs.pod:1621
3169 msgid "guestfs_set_progress_callback"
3170 msgstr ""
3171
3172 # type: verbatim
3173 #: ../src/guestfs.pod:1623
3174 #, no-wrap
3175 msgid ""
3176 " typedef void (*guestfs_progress_cb) (guestfs_h *g, void *opaque,\n"
3177 "                                      int proc_nr, int serial,\n"
3178 "                                      uint64_t position, uint64_t total);\n"
3179 " void guestfs_set_progress_callback (guestfs_h *g,\n"
3180 "                                     guestfs_progress_cb cb,\n"
3181 "                                     void *opaque);\n"
3182 "\n"
3183 msgstr ""
3184
3185 # type: textblock
3186 #: ../src/guestfs.pod:1630
3187 msgid ""
3188 "Some long-running operations can generate progress messages.  If this "
3189 "callback is registered, then it will be called each time a progress message "
3190 "is generated (usually two seconds after the operation started, and three "
3191 "times per second thereafter until it completes, although the frequency may "
3192 "change in future versions)."
3193 msgstr ""
3194
3195 # type: textblock
3196 #: ../src/guestfs.pod:1636
3197 msgid ""
3198 "The callback receives two numbers: C<position> and C<total>.  The units of "
3199 "C<total> are not defined, although for some operations C<total> may relate "
3200 "in some way to the amount of data to be transferred (eg. in bytes or "
3201 "megabytes), and C<position> may be the portion which has been transferred."
3202 msgstr ""
3203
3204 # type: textblock
3205 #: ../src/guestfs.pod:1642
3206 msgid "The only defined and stable parts of the API are:"
3207 msgstr ""
3208
3209 # type: textblock
3210 #: ../src/guestfs.pod:1648
3211 msgid ""
3212 "The callback can display to the user some type of progress bar or indicator "
3213 "which shows the ratio of C<position>:C<total>."
3214 msgstr ""
3215
3216 # type: textblock
3217 #: ../src/guestfs.pod:1653
3218 msgid "0 E<lt>= C<position> E<lt>= C<total>"
3219 msgstr ""
3220
3221 # type: textblock
3222 #: ../src/guestfs.pod:1657
3223 msgid ""
3224 "If any progress notification is sent during a call, then a final progress "
3225 "notification is always sent when C<position> = C<total>."
3226 msgstr ""
3227
3228 # type: textblock
3229 #: ../src/guestfs.pod:1660
3230 msgid ""
3231 "This is to simplify caller code, so callers can easily set the progress "
3232 "indicator to \"100%\" at the end of the operation, without requiring special "
3233 "code to detect this case."
3234 msgstr ""
3235
3236 # type: textblock
3237 #: ../src/guestfs.pod:1666
3238 msgid ""
3239 "The callback also receives the procedure number and serial number of the "
3240 "call.  These are only useful for debugging protocol issues, and the callback "
3241 "can normally ignore them.  The callback may want to print these numbers in "
3242 "error messages or debugging messages."
3243 msgstr ""
3244
3245 # type: =head1
3246 #: ../src/guestfs.pod:1671
3247 msgid "PRIVATE DATA AREA"
3248 msgstr ""
3249
3250 # type: textblock
3251 #: ../src/guestfs.pod:1673
3252 msgid ""
3253 "You can attach named pieces of private data to the libguestfs handle, and "
3254 "fetch them by name for the lifetime of the handle.  This is called the "
3255 "private data area and is only available from the C API."
3256 msgstr ""
3257
3258 # type: textblock
3259 #: ../src/guestfs.pod:1677
3260 msgid "To attach a named piece of data, use the following call:"
3261 msgstr ""
3262
3263 # type: verbatim
3264 #: ../src/guestfs.pod:1679
3265 #, no-wrap
3266 msgid ""
3267 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
3268 "\n"
3269 msgstr ""
3270
3271 # type: textblock
3272 #: ../src/guestfs.pod:1681
3273 msgid ""
3274 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
3275 "pointer (which can be C<NULL>).  Any previous item with the same name is "
3276 "overwritten."
3277 msgstr ""
3278
3279 # type: textblock
3280 #: ../src/guestfs.pod:1685
3281 msgid ""
3282 "You can use any C<key> you want, but names beginning with an underscore "
3283 "character are reserved for internal libguestfs purposes (for implementing "
3284 "language bindings).  It is recommended to prefix the name with some unique "
3285 "string to avoid collisions with other users."
3286 msgstr ""
3287
3288 # type: textblock
3289 #: ../src/guestfs.pod:1690
3290 msgid "To retrieve the pointer, use:"
3291 msgstr ""
3292
3293 # type: verbatim
3294 #: ../src/guestfs.pod:1692
3295 #, no-wrap
3296 msgid ""
3297 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
3298 "\n"
3299 msgstr ""
3300
3301 # type: textblock
3302 #: ../src/guestfs.pod:1694
3303 msgid ""
3304 "This function returns C<NULL> if either no data is found associated with "
3305 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
3306 "C<NULL>."
3307 msgstr ""
3308
3309 # type: textblock
3310 #: ../src/guestfs.pod:1698
3311 msgid ""
3312 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
3313 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
3314 "all.  In particular, libguestfs does I<not> try to free the data when the "
3315 "handle is closed.  If the data must be freed, then the caller must either "
3316 "free it before calling L</guestfs_close> or must set up a close callback to "
3317 "do it (see L</guestfs_set_close_callback>, and note that only one callback "
3318 "can be registered for a handle)."
3319 msgstr ""
3320
3321 # type: textblock
3322 #: ../src/guestfs.pod:1706
3323 msgid ""
3324 "The private data area is implemented using a hash table, and should be "
3325 "reasonably efficient for moderate numbers of keys."
3326 msgstr ""
3327
3328 # type: =end
3329 #: ../src/guestfs.pod:1709 ../src/guestfs.pod:1714
3330 msgid "html"
3331 msgstr ""
3332
3333 # type: textblock
3334 #: ../src/guestfs.pod:1711
3335 msgid ""
3336 "<!-- old anchor for the next section --> <a "
3337 "name=\"state_machine_and_low_level_event_api\"/>"
3338 msgstr ""
3339
3340 # type: =head1
3341 #: ../src/guestfs.pod:1716
3342 msgid "ARCHITECTURE"
3343 msgstr ""
3344
3345 # type: textblock
3346 #: ../src/guestfs.pod:1718
3347 msgid ""
3348 "Internally, libguestfs is implemented by running an appliance (a special "
3349 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
3350 "process of the main program."
3351 msgstr ""
3352
3353 # type: verbatim
3354 #: ../src/guestfs.pod:1722
3355 #, no-wrap
3356 msgid ""
3357 "  ___________________\n"
3358 " /                   \\\n"
3359 " | main program      |\n"
3360 " |                   |\n"
3361 " |                   |           child process / appliance\n"
3362 " |                   |           __________________________\n"
3363 " |                   |          / qemu                     \\\n"
3364 " +-------------------+   RPC    |      +-----------------+ |\n"
3365 " | libguestfs     <--------------------> guestfsd        | |\n"
3366 " |                   |          |      +-----------------+ |\n"
3367 " \\___________________/          |      | Linux kernel    | |\n"
3368 "                                |      +--^--------------+ |\n"
3369 "                                \\_________|________________/\n"
3370 "                                          |\n"
3371 "                                   _______v______\n"
3372 "                                  /              \\\n"
3373 "                                  | Device or    |\n"
3374 "                                  | disk image   |\n"
3375 "                                  \\______________/\n"
3376 "\n"
3377 msgstr ""
3378
3379 # type: textblock
3380 #: ../src/guestfs.pod:1742
3381 msgid ""
3382 "The library, linked to the main program, creates the child process and hence "
3383 "the appliance in the L</guestfs_launch> function."
3384 msgstr ""
3385
3386 # type: textblock
3387 #: ../src/guestfs.pod:1745
3388 msgid ""
3389 "Inside the appliance is a Linux kernel and a complete stack of userspace "
3390 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
3391 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
3392 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
3393 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
3394 "attached to the qemu process which translates device access by the "
3395 "appliance's Linux kernel into accesses to the image."
3396 msgstr ""
3397
3398 # type: textblock
3399 #: ../src/guestfs.pod:1754
3400 msgid ""
3401 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
3402 "Although the disk image you are attached to might also be used by some "
3403 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
3404 "care if both libguestfs's qemu process and your virtual machine are trying "
3405 "to update the disk image at the same time, since these usually results in "
3406 "massive disk corruption)."
3407 msgstr ""
3408
3409 # type: =head1
3410 #: ../src/guestfs.pod:1761
3411 msgid "STATE MACHINE"
3412 msgstr ""
3413
3414 # type: textblock
3415 #: ../src/guestfs.pod:1763
3416 msgid "libguestfs uses a state machine to model the child process:"
3417 msgstr ""
3418
3419 # type: verbatim
3420 #: ../src/guestfs.pod:1765
3421 #, no-wrap
3422 msgid ""
3423 "                         |\n"
3424 "                    guestfs_create\n"
3425 "                         |\n"
3426 "                         |\n"
3427 "                     ____V_____\n"
3428 "                    /          \\\n"
3429 "                    |  CONFIG  |\n"
3430 "                    \\__________/\n"
3431 "                     ^ ^   ^  \\\n"
3432 "                    /  |    \\  \\ guestfs_launch\n"
3433 "                   /   |    _\\__V______\n"
3434 "                  /    |   /           \\\n"
3435 "                 /     |   | LAUNCHING |\n"
3436 "                /      |   \\___________/\n"
3437 "               /       |       /\n"
3438 "              /        |  guestfs_launch\n"
3439 "             /         |     /\n"
3440 "    ______  /        __|____V\n"
3441 "   /      \\ ------> /        \\\n"
3442 "   | BUSY |         | READY  |\n"
3443 "   \\______/ <------ \\________/\n"
3444 "\n"
3445 msgstr ""
3446
3447 # type: textblock
3448 #: ../src/guestfs.pod:1787
3449 msgid ""
3450 "The normal transitions are (1) CONFIG (when the handle is created, but there "
3451 "is no child process), (2) LAUNCHING (when the child process is booting up), "
3452 "(3) alternating between READY and BUSY as commands are issued to, and "
3453 "carried out by, the child process."
3454 msgstr ""
3455
3456 # type: textblock
3457 #: ../src/guestfs.pod:1792
3458 msgid ""
3459 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
3460 "asynchronously at any time (eg. due to some internal error), and that causes "
3461 "the state to transition back to CONFIG."
3462 msgstr ""
3463
3464 # type: textblock
3465 #: ../src/guestfs.pod:1796
3466 msgid ""
3467 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
3468 "issued when in the CONFIG state."
3469 msgstr ""
3470
3471 # type: textblock
3472 #: ../src/guestfs.pod:1799
3473 msgid ""
3474 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
3475 "L</guestfs_launch> blocks until the child process is READY to accept "
3476 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
3477 "moves the state from CONFIG to LAUNCHING while it is running."
3478 msgstr ""
3479
3480 # type: textblock
3481 #: ../src/guestfs.pod:1805
3482 msgid ""
3483 "API actions such as L</guestfs_mount> can only be issued when in the READY "
3484 "state.  These API calls block waiting for the command to be carried out "
3485 "(ie. the state to transition to BUSY and then back to READY).  There are no "
3486 "non-blocking versions, and no way to issue more than one command per handle "
3487 "at the same time."
3488 msgstr ""
3489
3490 # type: textblock
3491 #: ../src/guestfs.pod:1811
3492 msgid ""
3493 "Finally, the child process sends asynchronous messages back to the main "
3494 "program, such as kernel log messages.  You can register a callback to "
3495 "receive these messages."
3496 msgstr ""
3497
3498 # type: =head1
3499 #: ../src/guestfs.pod:1815
3500 msgid "INTERNALS"
3501 msgstr ""
3502
3503 # type: =head2
3504 #: ../src/guestfs.pod:1817
3505 msgid "COMMUNICATION PROTOCOL"
3506 msgstr ""
3507
3508 # type: textblock
3509 #: ../src/guestfs.pod:1819
3510 msgid ""
3511 "Don't rely on using this protocol directly.  This section documents how it "
3512 "currently works, but it may change at any time."
3513 msgstr ""
3514
3515 # type: textblock
3516 #: ../src/guestfs.pod:1822
3517 msgid ""
3518 "The protocol used to talk between the library and the daemon running inside "
3519 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
3520 "1014, RFC 1832, RFC 4506)."
3521 msgstr ""
3522
3523 # type: textblock
3524 #: ../src/guestfs.pod:1826
3525 msgid ""
3526 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
3527 "this file is automatically generated)."
3528 msgstr ""
3529
3530 # type: textblock
3531 #: ../src/guestfs.pod:1829
3532 msgid ""
3533 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
3534 "and C<FileOut> parameters, which are handled with very simple request/reply "
3535 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
3536 "parameters, which use the same request and reply messages, but they may also "
3537 "be followed by files sent using a chunked encoding."
3538 msgstr ""
3539
3540 # type: =head3
3541 #: ../src/guestfs.pod:1836
3542 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
3543 msgstr ""
3544
3545 # type: textblock
3546 #: ../src/guestfs.pod:1838
3547 msgid "For ordinary functions, the request message is:"
3548 msgstr ""
3549
3550 # type: verbatim
3551 #: ../src/guestfs.pod:1840
3552 #, no-wrap
3553 msgid ""
3554 " total length (header + arguments,\n"
3555 "      but not including the length word itself)\n"
3556 " struct guestfs_message_header (encoded as XDR)\n"
3557 " struct guestfs_<foo>_args (encoded as XDR)\n"
3558 "\n"
3559 msgstr ""
3560
3561 # type: textblock
3562 #: ../src/guestfs.pod:1845
3563 msgid ""
3564 "The total length field allows the daemon to allocate a fixed size buffer "
3565 "into which it slurps the rest of the message.  As a result, the total length "
3566 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
3567 "effective size of any request is limited to somewhere under this size."
3568 msgstr ""
3569
3570 # type: textblock
3571 #: ../src/guestfs.pod:1851
3572 msgid ""
3573 "Note also that many functions don't take any arguments, in which case the "
3574 "C<guestfs_I<foo>_args> is completely omitted."
3575 msgstr ""
3576
3577 # type: textblock
3578 #: ../src/guestfs.pod:1854
3579 msgid ""
3580 "The header contains the procedure number (C<guestfs_proc>) which is how the "
3581 "receiver knows what type of args structure to expect, or none at all."
3582 msgstr ""
3583
3584 # type: textblock
3585 #: ../src/guestfs.pod:1858
3586 msgid "The reply message for ordinary functions is:"
3587 msgstr ""
3588
3589 # type: verbatim
3590 #: ../src/guestfs.pod:1860
3591 #, no-wrap
3592 msgid ""
3593 " total length (header + ret,\n"
3594 "      but not including the length word itself)\n"
3595 " struct guestfs_message_header (encoded as XDR)\n"
3596 " struct guestfs_<foo>_ret (encoded as XDR)\n"
3597 "\n"
3598 msgstr ""
3599
3600 # type: textblock
3601 #: ../src/guestfs.pod:1865
3602 msgid ""
3603 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
3604 "functions that return no formal return values."
3605 msgstr ""
3606
3607 # type: textblock
3608 #: ../src/guestfs.pod:1868
3609 msgid "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
3610 msgstr ""
3611
3612 # type: textblock
3613 #: ../src/guestfs.pod:1871
3614 msgid ""
3615 "In the case of an error, a flag is set in the header, and the reply message "
3616 "is slightly changed:"
3617 msgstr ""
3618
3619 # type: verbatim
3620 #: ../src/guestfs.pod:1874
3621 #, no-wrap
3622 msgid ""
3623 " total length (header + error,\n"
3624 "      but not including the length word itself)\n"
3625 " struct guestfs_message_header (encoded as XDR)\n"
3626 " struct guestfs_message_error (encoded as XDR)\n"
3627 "\n"
3628 msgstr ""
3629
3630 # type: textblock
3631 #: ../src/guestfs.pod:1879
3632 msgid ""
3633 "The C<guestfs_message_error> structure contains the error message as a "
3634 "string."
3635 msgstr ""
3636
3637 # type: =head3
3638 #: ../src/guestfs.pod:1882
3639 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
3640 msgstr ""
3641
3642 # type: textblock
3643 #: ../src/guestfs.pod:1884
3644 msgid ""
3645 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
3646 "The normal request message is sent (see above).  However this is followed by "
3647 "a sequence of file chunks."
3648 msgstr ""
3649
3650 # type: verbatim
3651 #: ../src/guestfs.pod:1888
3652 #, no-wrap
3653 msgid ""
3654 " total length (header + arguments,\n"
3655 "      but not including the length word itself,\n"
3656 "      and not including the chunks)\n"
3657 " struct guestfs_message_header (encoded as XDR)\n"
3658 " struct guestfs_<foo>_args (encoded as XDR)\n"
3659 " sequence of chunks for FileIn param #0\n"
3660 " sequence of chunks for FileIn param #1 etc.\n"
3661 "\n"
3662 msgstr ""
3663
3664 # type: textblock
3665 #: ../src/guestfs.pod:1896
3666 msgid "The \"sequence of chunks\" is:"
3667 msgstr ""
3668
3669 # type: verbatim
3670 #: ../src/guestfs.pod:1898
3671 #, no-wrap
3672 msgid ""
3673 " length of chunk (not including length word itself)\n"
3674 " struct guestfs_chunk (encoded as XDR)\n"
3675 " length of chunk\n"
3676 " struct guestfs_chunk (encoded as XDR)\n"
3677 "   ...\n"
3678 " length of chunk\n"
3679 " struct guestfs_chunk (with data.data_len == 0)\n"
3680 "\n"
3681 msgstr ""
3682
3683 # type: textblock
3684 #: ../src/guestfs.pod:1906
3685 msgid ""
3686 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
3687 "is set in the final chunk to indicate either successful completion or early "
3688 "cancellation."
3689 msgstr ""
3690
3691 # type: textblock
3692 #: ../src/guestfs.pod:1910
3693 msgid ""
3694 "At time of writing there are no functions that have more than one FileIn "
3695 "parameter.  However this is (theoretically) supported, by sending the "
3696 "sequence of chunks for each FileIn parameter one after another (from left to "
3697 "right)."
3698 msgstr ""
3699
3700 # type: textblock
3701 #: ../src/guestfs.pod:1915
3702 msgid ""
3703 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
3704 "transfer.  The library does this by sending a chunk with a special flag set "
3705 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
3706 "RPC, does I<not> send any reply, and goes back to reading the next request."
3707 msgstr ""
3708
3709 # type: textblock
3710 #: ../src/guestfs.pod:1921
3711 msgid ""
3712 "The daemon may also cancel.  It does this by writing a special word "
3713 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
3714 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
3715 "cancel chunk).  The special word is chosen so that even if cancellation "
3716 "happens right at the end of the transfer (after the library has finished "
3717 "writing and has started listening for the reply), the \"spurious\" cancel "
3718 "flag will not be confused with the reply message."
3719 msgstr ""
3720
3721 # type: textblock
3722 #: ../src/guestfs.pod:1930
3723 msgid ""
3724 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
3725 "limit), and also files where the size is not known in advance (eg. from "
3726 "pipes or sockets).  However the chunks are rather small "
3727 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
3728 "to keep much in memory."
3729 msgstr ""
3730
3731 # type: =head3
3732 #: ../src/guestfs.pod:1936
3733 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
3734 msgstr ""
3735
3736 # type: textblock
3737 #: ../src/guestfs.pod:1938
3738 msgid ""
3739 "The protocol for FileOut parameters is exactly the same as for FileIn "
3740 "parameters, but with the roles of daemon and library reversed."
3741 msgstr ""
3742
3743 # type: verbatim
3744 #: ../src/guestfs.pod:1941
3745 #, no-wrap
3746 msgid ""
3747 " total length (header + ret,\n"
3748 "      but not including the length word itself,\n"
3749 "      and not including the chunks)\n"
3750 " struct guestfs_message_header (encoded as XDR)\n"
3751 " struct guestfs_<foo>_ret (encoded as XDR)\n"
3752 " sequence of chunks for FileOut param #0\n"
3753 " sequence of chunks for FileOut param #1 etc.\n"
3754 "\n"
3755 msgstr ""
3756
3757 # type: =head3
3758 #: ../src/guestfs.pod:1949
3759 msgid "INITIAL MESSAGE"
3760 msgstr ""
3761
3762 # type: textblock
3763 #: ../src/guestfs.pod:1951
3764 msgid ""
3765 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
3766 "which indicates that the guest and daemon is alive.  This is what "
3767 "L</guestfs_launch> waits for."
3768 msgstr ""
3769
3770 # type: =head3
3771 #: ../src/guestfs.pod:1955
3772 msgid "PROGRESS NOTIFICATION MESSAGES"
3773 msgstr ""
3774
3775 # type: textblock
3776 #: ../src/guestfs.pod:1957
3777 msgid ""
3778 "The daemon may send progress notification messages at any time.  These are "
3779 "distinguished by the normal length word being replaced by "
3780 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
3781 msgstr ""
3782
3783 # type: textblock
3784 #: ../src/guestfs.pod:1961
3785 msgid ""
3786 "The library turns them into progress callbacks (see "
3787 "C<guestfs_set_progress_callback>) if there is a callback registered, or "
3788 "discards them if not."
3789 msgstr ""
3790
3791 # type: textblock
3792 #: ../src/guestfs.pod:1965
3793 msgid ""
3794 "The daemon self-limits the frequency of progress messages it sends (see "
3795 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
3796 "messages."
3797 msgstr ""
3798
3799 # type: =head1
3800 #: ../src/guestfs.pod:1969
3801 msgid "LIBGUESTFS VERSION NUMBERS"
3802 msgstr ""
3803
3804 # type: textblock
3805 #: ../src/guestfs.pod:1971
3806 msgid ""
3807 "Since April 2010, libguestfs has started to make separate development and "
3808 "stable releases, along with corresponding branches in our git repository.  "
3809 "These separate releases can be identified by version number:"
3810 msgstr ""
3811
3812 # type: verbatim
3813 #: ../src/guestfs.pod:1976
3814 #, no-wrap
3815 msgid ""
3816 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
3817 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
3818 "       |\n"
3819 "       v\n"
3820 " 1  .  3  .  5\n"
3821 " ^           ^\n"
3822 " |           |\n"
3823 " |           `-------- sub-version\n"
3824 " |\n"
3825 " `------ always '1' because we don't change the ABI\n"
3826 "\n"
3827 msgstr ""
3828
3829 # type: textblock
3830 #: ../src/guestfs.pod:1987
3831 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
3832 msgstr ""
3833
3834 # type: textblock
3835 #: ../src/guestfs.pod:1989
3836 msgid ""
3837 "As time passes we cherry pick fixes from the development branch and backport "
3838 "those into the stable branch, the effect being that the stable branch should "
3839 "get more stable and less buggy over time.  So the stable releases are ideal "
3840 "for people who don't need new features but would just like the software to "
3841 "work."
3842 msgstr ""
3843
3844 # type: textblock
3845 #: ../src/guestfs.pod:1995
3846 msgid "Our criteria for backporting changes are:"
3847 msgstr ""
3848
3849 # type: textblock
3850 #: ../src/guestfs.pod:2001
3851 msgid ""
3852 "Documentation changes which don't affect any code are backported unless the "
3853 "documentation refers to a future feature which is not in stable."
3854 msgstr ""
3855
3856 # type: textblock
3857 #: ../src/guestfs.pod:2007
3858 msgid ""
3859 "Bug fixes which are not controversial, fix obvious problems, and have been "
3860 "well tested are backported."
3861 msgstr ""
3862
3863 # type: textblock
3864 #: ../src/guestfs.pod:2012
3865 msgid ""
3866 "Simple rearrangements of code which shouldn't affect how it works get "
3867 "backported.  This is so that the code in the two branches doesn't get too "
3868 "far out of step, allowing us to backport future fixes more easily."
3869 msgstr ""
3870
3871 # type: textblock
3872 #: ../src/guestfs.pod:2018
3873 msgid ""
3874 "We I<don't> backport new features, new APIs, new tools etc, except in one "
3875 "exceptional case: the new feature is required in order to implement an "
3876 "important bug fix."
3877 msgstr ""
3878
3879 # type: textblock
3880 #: ../src/guestfs.pod:2024
3881 msgid ""
3882 "A new stable branch starts when we think the new features in development are "
3883 "substantial and compelling enough over the current stable branch to warrant "
3884 "it.  When that happens we create new stable and development versions 1.N.0 "
3885 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
3886 "stable at this point, but by backporting fixes from development, that branch "
3887 "will stabilize over time."
3888 msgstr ""
3889
3890 # type: =head1
3891 #: ../src/guestfs.pod:2032 ../fish/guestfish.pod:915 ../test-tool/libguestfs-test-tool.pod:104 ../tools/virt-edit.pl:330 ../tools/virt-rescue.pl:255
3892 msgid "ENVIRONMENT VARIABLES"
3893 msgstr ""
3894
3895 # type: =item
3896 #: ../src/guestfs.pod:2036 ../fish/guestfish.pod:941
3897 msgid "LIBGUESTFS_APPEND"
3898 msgstr ""
3899
3900 # type: textblock
3901 #: ../src/guestfs.pod:2038 ../fish/guestfish.pod:943
3902 msgid "Pass additional options to the guest kernel."
3903 msgstr ""
3904
3905 # type: =item
3906 #: ../src/guestfs.pod:2040 ../fish/guestfish.pod:945
3907 msgid "LIBGUESTFS_DEBUG"
3908 msgstr ""
3909
3910 # type: textblock
3911 #: ../src/guestfs.pod:2042
3912 msgid ""
3913 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
3914 "effect as calling C<guestfs_set_verbose (g, 1)>."
3915 msgstr ""
3916
3917 # type: =item
3918 #: ../src/guestfs.pod:2045 ../fish/guestfish.pod:950
3919 msgid "LIBGUESTFS_MEMSIZE"
3920 msgstr ""
3921
3922 # type: textblock
3923 #: ../src/guestfs.pod:2047 ../fish/guestfish.pod:952
3924 msgid "Set the memory allocated to the qemu process, in megabytes.  For example:"
3925 msgstr ""
3926
3927 # type: verbatim
3928 #: ../src/guestfs.pod:2050 ../fish/guestfish.pod:955
3929 #, no-wrap
3930 msgid ""
3931 " LIBGUESTFS_MEMSIZE=700\n"
3932 "\n"
3933 msgstr ""
3934
3935 # type: =item
3936 #: ../src/guestfs.pod:2052 ../fish/guestfish.pod:957
3937 msgid "LIBGUESTFS_PATH"
3938 msgstr ""
3939
3940 # type: textblock
3941 #: ../src/guestfs.pod:2054
3942 msgid ""
3943 "Set the path that libguestfs uses to search for kernel and initrd.img.  See "
3944 "the discussion of paths in section PATH above."
3945 msgstr ""
3946
3947 # type: =item
3948 #: ../src/guestfs.pod:2057 ../fish/guestfish.pod:962
3949 msgid "LIBGUESTFS_QEMU"
3950 msgstr ""
3951
3952 # type: textblock
3953 #: ../src/guestfs.pod:2059 ../fish/guestfish.pod:964
3954 msgid ""
3955 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
3956 "which was found at compile time by the configure script is used."
3957 msgstr ""
3958
3959 # type: textblock
3960 #: ../src/guestfs.pod:2063
3961 msgid "See also L</QEMU WRAPPERS> above."
3962 msgstr ""
3963
3964 # type: =item
3965 #: ../src/guestfs.pod:2065 ../fish/guestfish.pod:968
3966 msgid "LIBGUESTFS_TRACE"
3967 msgstr ""
3968
3969 # type: textblock
3970 #: ../src/guestfs.pod:2067
3971 msgid ""
3972 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
3973 "effect as calling C<guestfs_set_trace (g, 1)>."
3974 msgstr ""
3975
3976 # type: =item
3977 #: ../src/guestfs.pod:2070 ../fish/guestfish.pod:977
3978 msgid "TMPDIR"
3979 msgstr ""
3980
3981 # type: textblock
3982 #: ../src/guestfs.pod:2072 ../fish/guestfish.pod:979
3983 msgid "Location of temporary directory, defaults to C</tmp>."
3984 msgstr ""
3985
3986 # type: textblock
3987 #: ../src/guestfs.pod:2074 ../fish/guestfish.pod:981
3988 msgid ""
3989 "If libguestfs was compiled to use the supermin appliance then the real "
3990 "appliance is cached in this directory, shared between all handles belonging "
3991 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
3992 "use in case C</tmp> is not large enough."
3993 msgstr ""
3994
3995 # type: =head1
3996 #: ../src/guestfs.pod:2082 ../fish/guestfish.pod:1039 ../test-tool/libguestfs-test-tool.pod:109 ../fuse/guestmount.pod:233 ../tools/virt-edit.pl:350 ../tools/virt-win-reg.pl:484 ../tools/virt-resize.pl:1485 ../tools/virt-list-filesystems.pl:189 ../tools/virt-tar.pl:281 ../tools/virt-rescue.pl:267 ../tools/virt-make-fs.pl:534 ../tools/virt-list-partitions.pl:257
3997 msgid "SEE ALSO"
3998 msgstr ""
3999
4000 # type: textblock
4001 #: ../src/guestfs.pod:2084
4002 msgid ""
4003 "L<guestfs-examples(3)>, L<guestfs-ocaml(3)>, L<guestfs-python(3)>, "
4004 "L<guestfs-ruby(3)>, L<guestfish(1)>, L<guestmount(1)>, L<virt-cat(1)>, "
4005 "L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems(1)>, "
4006 "L<virt-inspector(1)>, L<virt-list-filesystems(1)>, "
4007 "L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, "
4008 "L<virt-rescue(1)>, L<virt-tar(1)>, L<virt-win-reg(1)>, L<qemu(1)>, "
4009 "L<febootstrap(1)>, L<hivex(3)>, L<http://libguestfs.org/>."
4010 msgstr ""
4011
4012 # type: textblock
4013 #: ../src/guestfs.pod:2107
4014 msgid ""
4015 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, "
4016 "L<lvm(8)>, L<disktype(1)>."
4017 msgstr ""
4018
4019 # type: =head1
4020 #: ../src/guestfs.pod:2114 ../tools/virt-win-reg.pl:499 ../tools/virt-make-fs.pl:548
4021 msgid "BUGS"
4022 msgstr ""
4023
4024 # type: textblock
4025 #: ../src/guestfs.pod:2116
4026 msgid "To get a list of bugs against libguestfs use this link:"
4027 msgstr ""
4028
4029 # type: textblock
4030 #: ../src/guestfs.pod:2118
4031 msgid "L<https://bugzilla.redhat.com/buglist.cgi?component=libguestfs&product=Virtualization+Tools>"
4032 msgstr ""
4033
4034 # type: textblock
4035 #: ../src/guestfs.pod:2120
4036 msgid "To report a new bug against libguestfs use this link:"
4037 msgstr ""
4038
4039 # type: textblock
4040 #: ../src/guestfs.pod:2122
4041 msgid "L<https://bugzilla.redhat.com/enter_bug.cgi?component=libguestfs&product=Virtualization+Tools>"
4042 msgstr ""
4043
4044 # type: textblock
4045 #: ../src/guestfs.pod:2124
4046 msgid "When reporting a bug, please check:"
4047 msgstr ""
4048
4049 # type: textblock
4050 #: ../src/guestfs.pod:2130
4051 msgid "That the bug hasn't been reported already."
4052 msgstr ""
4053
4054 # type: textblock
4055 #: ../src/guestfs.pod:2134
4056 msgid "That you are testing a recent version."
4057 msgstr ""
4058
4059 # type: textblock
4060 #: ../src/guestfs.pod:2138
4061 msgid "Describe the bug accurately, and give a way to reproduce it."
4062 msgstr ""
4063
4064 # type: textblock
4065 #: ../src/guestfs.pod:2142
4066 msgid ""
4067 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
4068 "bug report."
4069 msgstr ""
4070
4071 # type: =head1
4072 #: ../src/guestfs.pod:2147 ../fish/guestfish.pod:1058 ../test-tool/libguestfs-test-tool.pod:115 ../fuse/guestmount.pod:244
4073 msgid "AUTHORS"
4074 msgstr ""
4075
4076 # type: textblock
4077 #: ../src/guestfs.pod:2149 ../fish/guestfish.pod:1060 ../test-tool/libguestfs-test-tool.pod:117 ../fuse/guestmount.pod:246
4078 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
4079 msgstr ""
4080
4081 # type: =head1
4082 #: ../src/guestfs.pod:2151 ../fish/guestfish.pod:1062 ../test-tool/libguestfs-test-tool.pod:119 ../fuse/guestmount.pod:248 ../tools/virt-edit.pl:366 ../tools/virt-win-reg.pl:514 ../tools/virt-resize.pl:1510 ../tools/virt-list-filesystems.pl:206 ../tools/virt-tar.pl:296 ../tools/virt-rescue.pl:281 ../tools/virt-make-fs.pl:563 ../tools/virt-list-partitions.pl:273
4083 msgid "COPYRIGHT"
4084 msgstr ""
4085
4086 # type: textblock
4087 #: ../src/guestfs.pod:2153 ../fish/guestfish.pod:1064 ../fuse/guestmount.pod:250
4088 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
4089 msgstr ""
4090
4091 # type: textblock
4092 #: ../src/guestfs.pod:2156
4093 msgid ""
4094 "This library is free software; you can redistribute it and/or modify it "
4095 "under the terms of the GNU Lesser General Public License as published by the "
4096 "Free Software Foundation; either version 2 of the License, or (at your "
4097 "option) any later version."
4098 msgstr ""
4099
4100 # type: textblock
4101 #: ../src/guestfs.pod:2161
4102 msgid ""
4103 "This library is distributed in the hope that it will be useful, but WITHOUT "
4104 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
4105 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License "
4106 "for more details."
4107 msgstr ""
4108
4109 # type: textblock
4110 #: ../src/guestfs.pod:2166
4111 msgid ""
4112 "You should have received a copy of the GNU Lesser General Public License "
4113 "along with this library; if not, write to the Free Software Foundation, "
4114 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
4115 msgstr ""
4116
4117 # type: =head2
4118 #: ../src/guestfs-actions.pod:1
4119 msgid "guestfs_add_cdrom"
4120 msgstr ""
4121
4122 # type: verbatim
4123 #: ../src/guestfs-actions.pod:3
4124 #, no-wrap
4125 msgid ""
4126 " int\n"
4127 " guestfs_add_cdrom (guestfs_h *g,\n"
4128 "                    const char *filename);\n"
4129 "\n"
4130 msgstr ""
4131
4132 # type: textblock
4133 #: ../src/guestfs-actions.pod:7 ../fish/guestfish-actions.pod:5
4134 msgid "This function adds a virtual CD-ROM disk image to the guest."
4135 msgstr ""
4136
4137 # type: textblock
4138 #: ../src/guestfs-actions.pod:9 ../fish/guestfish-actions.pod:7
4139 msgid "This is equivalent to the qemu parameter C<-cdrom filename>."
4140 msgstr ""
4141
4142 # type: textblock
4143 #: ../src/guestfs-actions.pod:17
4144 msgid ""
4145 "This call checks for the existence of C<filename>.  This stops you from "
4146 "specifying other types of drive which are supported by qemu such as C<nbd:> "
4147 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
4148 "instead."
4149 msgstr ""
4150
4151 # type: textblock
4152 #: ../src/guestfs-actions.pod:24
4153 msgid ""
4154 "If you just want to add an ISO file (often you use this as an efficient way "
4155 "to transfer large files into the guest), then you should probably use "
4156 "C<guestfs_add_drive_ro> instead."
4157 msgstr ""
4158
4159 # type: textblock
4160 #: ../src/guestfs-actions.pod:30 ../src/guestfs-actions.pod:126 ../src/guestfs-actions.pod:187 ../src/guestfs-actions.pod:224 ../src/guestfs-actions.pod:238 ../src/guestfs-actions.pod:259 ../src/guestfs-actions.pod:279 ../src/guestfs-actions.pod:293 ../src/guestfs-actions.pod:408 ../src/guestfs-actions.pod:428 ../src/guestfs-actions.pod:442 ../src/guestfs-actions.pod:487 ../src/guestfs-actions.pod:515 ../src/guestfs-actions.pod:533 ../src/guestfs-actions.pod:600 ../src/guestfs-actions.pod:633 ../src/guestfs-actions.pod:647 ../src/guestfs-actions.pod:662 ../src/guestfs-actions.pod:761 ../src/guestfs-actions.pod:779 ../src/guestfs-actions.pod:793 ../src/guestfs-actions.pod:807 ../src/guestfs-actions.pod:968 ../src/guestfs-actions.pod:988 ../src/guestfs-actions.pod:1006 ../src/guestfs-actions.pod:1090 ../src/guestfs-actions.pod:1108 ../src/guestfs-actions.pod:1127 ../src/guestfs-actions.pod:1141 ../src/guestfs-actions.pod:1161 ../src/guestfs-actions.pod:1231 ../src/guestfs-actions.pod:1262 ../src/guestfs-actions.pod:1287 ../src/guestfs-actions.pod:1324 ../src/guestfs-actions.pod:1430 ../src/guestfs-actions.pod:1464 ../src/guestfs-actions.pod:1682 ../src/guestfs-actions.pod:1704 ../src/guestfs-actions.pod:1791 ../src/guestfs-actions.pod:2213 ../src/guestfs-actions.pod:2357 ../src/guestfs-actions.pod:2418 ../src/guestfs-actions.pod:2453 ../src/guestfs-actions.pod:3182 ../src/guestfs-actions.pod:3197 ../src/guestfs-actions.pod:3217 ../src/guestfs-actions.pod:3342 ../src/guestfs-actions.pod:3356 ../src/guestfs-actions.pod:3369 ../src/guestfs-actions.pod:3383 ../src/guestfs-actions.pod:3398 ../src/guestfs-actions.pod:3434 ../src/guestfs-actions.pod:3506 ../src/guestfs-actions.pod:3526 ../src/guestfs-actions.pod:3543 ../src/guestfs-actions.pod:3566 ../src/guestfs-actions.pod:3589 ../src/guestfs-actions.pod:3621 ../src/guestfs-actions.pod:3640 ../src/guestfs-actions.pod:3659 ../src/guestfs-actions.pod:3694 ../src/guestfs-actions.pod:3706 ../src/guestfs-actions.pod:3742 ../src/guestfs-actions.pod:3758 ../src/guestfs-actions.pod:3771 ../src/guestfs-actions.pod:3786 ../src/guestfs-actions.pod:3803 ../src/guestfs-actions.pod:3896 ../src/guestfs-actions.pod:3916 ../src/guestfs-actions.pod:3929 ../src/guestfs-actions.pod:3980 ../src/guestfs-actions.pod:3998 ../src/guestfs-actions.pod:4016 ../src/guestfs-actions.pod:4032 ../src/guestfs-actions.pod:4046 ../src/guestfs-actions.pod:4060 ../src/guestfs-actions.pod:4077 ../src/guestfs-actions.pod:4092 ../src/guestfs-actions.pod:4112 ../src/guestfs-actions.pod:4161 ../src/guestfs-actions.pod:4192 ../src/guestfs-actions.pod:4211 ../src/guestfs-actions.pod:4230 ../src/guestfs-actions.pod:4242 ../src/guestfs-actions.pod:4259 ../src/guestfs-actions.pod:4272 ../src/guestfs-actions.pod:4287 ../src/guestfs-actions.pod:4302 ../src/guestfs-actions.pod:4337 ../src/guestfs-actions.pod:4352 ../src/guestfs-actions.pod:4372 ../src/guestfs-actions.pod:4386 ../src/guestfs-actions.pod:4403 ../src/guestfs-actions.pod:4452 ../src/guestfs-actions.pod:4489 ../src/guestfs-actions.pod:4503 ../src/guestfs-actions.pod:4531 ../src/guestfs-actions.pod:4548 ../src/guestfs-actions.pod:4566 ../src/guestfs-actions.pod:4700 ../src/guestfs-actions.pod:4757 ../src/guestfs-actions.pod:4779 ../src/guestfs-actions.pod:4797 ../src/guestfs-actions.pod:4829 ../src/guestfs-actions.pod:4895 ../src/guestfs-actions.pod:4912 ../src/guestfs-actions.pod:4925 ../src/guestfs-actions.pod:4939 ../src/guestfs-actions.pod:5228 ../src/guestfs-actions.pod:5247 ../src/guestfs-actions.pod:5261 ../src/guestfs-actions.pod:5273 ../src/guestfs-actions.pod:5287 ../src/guestfs-actions.pod:5299 ../src/guestfs-actions.pod:5313 ../src/guestfs-actions.pod:5329 ../src/guestfs-actions.pod:5350 ../src/guestfs-actions.pod:5369 ../src/guestfs-actions.pod:5388 ../src/guestfs-actions.pod:5406 ../src/guestfs-actions.pod:5429 ../src/guestfs-actions.pod:5447 ../src/guestfs-actions.pod:5466 ../src/guestfs-actions.pod:5487 ../src/guestfs-actions.pod:5506 ../src/guestfs-actions.pod:5523 ../src/guestfs-actions.pod:5551 ../src/guestfs-actions.pod:5575 ../src/guestfs-actions.pod:5594 ../src/guestfs-actions.pod:5618 ../src/guestfs-actions.pod:5633 ../src/guestfs-actions.pod:5648 ../src/guestfs-actions.pod:5667 ../src/guestfs-actions.pod:5704 ../src/guestfs-actions.pod:5727 ../src/guestfs-actions.pod:5753 ../src/guestfs-actions.pod:5861 ../src/guestfs-actions.pod:5982 ../src/guestfs-actions.pod:5994 ../src/guestfs-actions.pod:6007 ../src/guestfs-actions.pod:6020 ../src/guestfs-actions.pod:6042 ../src/guestfs-actions.pod:6055 ../src/guestfs-actions.pod:6068 ../src/guestfs-actions.pod:6081 ../src/guestfs-actions.pod:6096 ../src/guestfs-actions.pod:6155 ../src/guestfs-actions.pod:6172 ../src/guestfs-actions.pod:6188 ../src/guestfs-actions.pod:6204 ../src/guestfs-actions.pod:6221 ../src/guestfs-actions.pod:6234 ../src/guestfs-actions.pod:6254 ../src/guestfs-actions.pod:6290 ../src/guestfs-actions.pod:6304 ../src/guestfs-actions.pod:6345 ../src/guestfs-actions.pod:6358 ../src/guestfs-actions.pod:6376 ../src/guestfs-actions.pod:6405 ../src/guestfs-actions.pod:6436 ../src/guestfs-actions.pod:6555 ../src/guestfs-actions.pod:6573 ../src/guestfs-actions.pod:6587 ../src/guestfs-actions.pod:6642 ../src/guestfs-actions.pod:6655 ../src/guestfs-actions.pod:6700 ../src/guestfs-actions.pod:6733 ../src/guestfs-actions.pod:6787 ../src/guestfs-actions.pod:6813 ../src/guestfs-actions.pod:6879 ../src/guestfs-actions.pod:6898 ../src/guestfs-actions.pod:6927
4161 msgid "This function returns 0 on success or -1 on error."
4162 msgstr ""
4163
4164 # type: textblock
4165 #: ../src/guestfs-actions.pod:32 ../src/guestfs-actions.pod:240 ../src/guestfs-actions.pod:261 ../fish/guestfish-actions.pod:28 ../fish/guestfish-actions.pod:153 ../fish/guestfish-actions.pod:167
4166 msgid ""
4167 "This function is deprecated.  In new code, use the C<add_drive_opts> call "
4168 "instead."
4169 msgstr ""
4170
4171 # type: textblock
4172 #: ../src/guestfs-actions.pod:35 ../src/guestfs-actions.pod:243 ../src/guestfs-actions.pod:264 ../src/guestfs-actions.pod:1435 ../src/guestfs-actions.pod:1921 ../src/guestfs-actions.pod:1942 ../src/guestfs-actions.pod:6821 ../src/guestfs-actions.pod:6990 ../fish/guestfish-actions.pod:31 ../fish/guestfish-actions.pod:156 ../fish/guestfish-actions.pod:170 ../fish/guestfish-actions.pod:951 ../fish/guestfish-actions.pod:1308 ../fish/guestfish-actions.pod:1322 ../fish/guestfish-actions.pod:4549 ../fish/guestfish-actions.pod:4646
4173 msgid ""
4174 "Deprecated functions will not be removed from the API, but the fact that "
4175 "they are deprecated indicates that there are problems with correct use of "
4176 "these functions."
4177 msgstr ""
4178
4179 # type: textblock
4180 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:128 ../src/guestfs-actions.pod:1092 ../src/guestfs-actions.pod:1893 ../src/guestfs-actions.pod:1991 ../src/guestfs-actions.pod:2094 ../src/guestfs-actions.pod:3184 ../src/guestfs-actions.pod:3199 ../src/guestfs-actions.pod:4339 ../src/guestfs-actions.pod:5408 ../src/guestfs-actions.pod:5525 ../src/guestfs-actions.pod:5635 ../src/guestfs-actions.pod:6098 ../src/guestfs-actions.pod:6223 ../src/guestfs-actions.pod:6735
4181 msgid "(Added in 0.3)"
4182 msgstr ""
4183
4184 # type: =head2
4185 #: ../src/guestfs-actions.pod:41
4186 msgid "guestfs_add_domain"
4187 msgstr ""
4188
4189 # type: verbatim
4190 #: ../src/guestfs-actions.pod:43
4191 #, no-wrap
4192 msgid ""
4193 " int\n"
4194 " guestfs_add_domain (guestfs_h *g,\n"
4195 "                     const char *dom,\n"
4196 "                     ...);\n"
4197 "\n"
4198 msgstr ""
4199
4200 # type: textblock
4201 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:137
4202 msgid ""
4203 "You may supply a list of optional arguments to this call.  Use zero or more "
4204 "of the following pairs of parameters, and terminate the list with C<-1> on "
4205 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
4206 msgstr ""
4207
4208 # type: verbatim
4209 #: ../src/guestfs-actions.pod:53
4210 #, no-wrap
4211 msgid ""
4212 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
4213 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
4214 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
4215 "\n"
4216 msgstr ""
4217
4218 # type: textblock
4219 #: ../src/guestfs-actions.pod:57
4220 msgid ""
4221 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
4222 "It works by connecting to libvirt, requesting the domain and domain XML from "
4223 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
4224 "one."
4225 msgstr ""
4226
4227 # type: textblock
4228 #: ../src/guestfs-actions.pod:62 ../fish/guestfish-actions.pod:46
4229 msgid ""
4230 "The number of disks added is returned.  This operation is atomic: if an "
4231 "error is returned, then no disks are added."
4232 msgstr ""
4233
4234 # type: textblock
4235 #: ../src/guestfs-actions.pod:65 ../fish/guestfish-actions.pod:49
4236 msgid ""
4237 "This function does some minimal checks to make sure the libvirt domain is "
4238 "not running (unless C<readonly> is true).  In a future version we will try "
4239 "to acquire the libvirt lock on each disk."
4240 msgstr ""
4241
4242 # type: textblock
4243 #: ../src/guestfs-actions.pod:69 ../fish/guestfish-actions.pod:53
4244 msgid ""
4245 "Disks must be accessible locally.  This often means that adding disks from a "
4246 "remote libvirt connection (see L<http://libvirt.org/remote.html>)  will fail "
4247 "unless those disks are accessible via the same device path locally too."
4248 msgstr ""
4249
4250 # type: textblock
4251 #: ../src/guestfs-actions.pod:74
4252 msgid ""
4253 "The optional C<libvirturi> parameter sets the libvirt URI (see "
4254 "L<http://libvirt.org/uri.html>).  If this is not set then we connect to the "
4255 "default libvirt URI (or one set through an environment variable, see the "
4256 "libvirt documentation for full details).  If you are using the C API "
4257 "directly then it is more flexible to create the libvirt connection object "
4258 "yourself, get the domain object, and call C<guestfs_add_libvirt_dom>."
4259 msgstr ""
4260
4261 # type: textblock
4262 #: ../src/guestfs-actions.pod:82
4263 msgid ""
4264 "The other optional parameters are passed directly through to "
4265 "C<guestfs_add_drive_opts>."
4266 msgstr ""
4267
4268 # type: textblock
4269 #: ../src/guestfs-actions.pod:85 ../src/guestfs-actions.pod:336 ../src/guestfs-actions.pod:501 ../src/guestfs-actions.pod:679 ../src/guestfs-actions.pod:710 ../src/guestfs-actions.pod:728 ../src/guestfs-actions.pod:747 ../src/guestfs-actions.pod:1307 ../src/guestfs-actions.pod:1661 ../src/guestfs-actions.pod:1864 ../src/guestfs-actions.pod:1963 ../src/guestfs-actions.pod:2003 ../src/guestfs-actions.pod:2058 ../src/guestfs-actions.pod:2081 ../src/guestfs-actions.pod:2344 ../src/guestfs-actions.pod:2630 ../src/guestfs-actions.pod:2651 ../src/guestfs-actions.pod:4475 ../src/guestfs-actions.pod:4603 ../src/guestfs-actions.pod:5009 ../src/guestfs-actions.pod:5035 ../src/guestfs-actions.pod:6331 ../src/guestfs-actions.pod:6746 ../src/guestfs-actions.pod:6759 ../src/guestfs-actions.pod:6772
4270 msgid "On error this function returns -1."
4271 msgstr ""
4272
4273 # type: =head2
4274 #: ../src/guestfs-actions.pod:87
4275 msgid "guestfs_add_domain_va"
4276 msgstr ""
4277
4278 # type: verbatim
4279 #: ../src/guestfs-actions.pod:89
4280 #, no-wrap
4281 msgid ""
4282 " int\n"
4283 " guestfs_add_domain_va (guestfs_h *g,\n"
4284 "                        const char *dom,\n"
4285 "                        va_list args);\n"
4286 "\n"
4287 msgstr ""
4288
4289 # type: textblock
4290 #: ../src/guestfs-actions.pod:94
4291 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
4292 msgstr ""
4293
4294 # type: textblock
4295 #: ../src/guestfs-actions.pod:96 ../src/guestfs-actions.pod:107 ../src/guestfs-actions.pod:200 ../src/guestfs-actions.pod:211
4296 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
4297 msgstr ""
4298
4299 # type: =head2
4300 #: ../src/guestfs-actions.pod:98
4301 msgid "guestfs_add_domain_argv"
4302 msgstr ""
4303
4304 # type: verbatim
4305 #: ../src/guestfs-actions.pod:100
4306 #, no-wrap
4307 msgid ""
4308 " int\n"
4309 " guestfs_add_domain_argv (guestfs_h *g,\n"
4310 "                          const char *dom,\n"
4311 "                          const struct guestfs_add_domain_argv *optargs);\n"
4312 "\n"
4313 msgstr ""
4314
4315 # type: textblock
4316 #: ../src/guestfs-actions.pod:105
4317 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
4318 msgstr ""
4319
4320 # type: =head2
4321 #: ../src/guestfs-actions.pod:109
4322 msgid "guestfs_add_drive"
4323 msgstr ""
4324
4325 # type: verbatim
4326 #: ../src/guestfs-actions.pod:111
4327 #, no-wrap
4328 msgid ""
4329 " int\n"
4330 " guestfs_add_drive (guestfs_h *g,\n"
4331 "                    const char *filename);\n"
4332 "\n"
4333 msgstr ""
4334
4335 # type: textblock
4336 #: ../src/guestfs-actions.pod:115
4337 msgid ""
4338 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
4339 "optional parameters, so the disk is added writable, with the format being "
4340 "detected automatically."
4341 msgstr ""
4342
4343 # type: textblock
4344 #: ../src/guestfs-actions.pod:119
4345 msgid ""
4346 "Automatic detection of the format opens you up to a potential security hole "
4347 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
4348 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
4349 "you should think about replacing calls to this function with calls to "
4350 "C<guestfs_add_drive_opts>, and specifying the format."
4351 msgstr ""
4352
4353 # type: =head2
4354 #: ../src/guestfs-actions.pod:130
4355 msgid "guestfs_add_drive_opts"
4356 msgstr ""
4357
4358 # type: verbatim
4359 #: ../src/guestfs-actions.pod:132
4360 #, no-wrap
4361 msgid ""
4362 " int\n"
4363 " guestfs_add_drive_opts (guestfs_h *g,\n"
4364 "                         const char *filename,\n"
4365 "                         ...);\n"
4366 "\n"
4367 msgstr ""
4368
4369 # type: verbatim
4370 #: ../src/guestfs-actions.pod:142
4371 #, no-wrap
4372 msgid ""
4373 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
4374 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
4375 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
4376 "\n"
4377 msgstr ""
4378
4379 # type: textblock
4380 #: ../src/guestfs-actions.pod:146 ../fish/guestfish-actions.pod:92
4381 msgid ""
4382 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
4383 "The first time you call this function, the disk appears as C</dev/sda>, the "
4384 "second time as C</dev/sdb>, and so on."
4385 msgstr ""
4386
4387 # type: textblock
4388 #: ../src/guestfs-actions.pod:151 ../fish/guestfish-actions.pod:97
4389 msgid ""
4390 "You don't necessarily need to be root when using libguestfs.  However you "
4391 "obviously do need sufficient permissions to access the filename for whatever "
4392 "operations you want to perform (ie. read access if you just want to read the "
4393 "image or write access if you want to modify the image)."
4394 msgstr ""
4395
4396 # type: textblock
4397 #: ../src/guestfs-actions.pod:157 ../fish/guestfish-actions.pod:103
4398 msgid "This call checks that C<filename> exists."
4399 msgstr ""
4400
4401 # type: textblock
4402 #: ../src/guestfs-actions.pod:159 ../fish/guestfish-actions.pod:105
4403 msgid "The optional arguments are:"
4404 msgstr ""
4405
4406 # type: =item
4407 #: ../src/guestfs-actions.pod:163 ../fish/guestfish-actions.pod:109
4408 msgid "C<readonly>"
4409 msgstr ""
4410
4411 # type: textblock
4412 #: ../src/guestfs-actions.pod:165 ../fish/guestfish-actions.pod:111
4413 msgid ""
4414 "If true then the image is treated as read-only.  Writes are still allowed, "
4415 "but they are stored in a temporary snapshot overlay which is discarded at "
4416 "the end.  The disk that you add is not modified."
4417 msgstr ""
4418
4419 # type: =item
4420 #: ../src/guestfs-actions.pod:169 ../fish/guestfish-actions.pod:115
4421 msgid "C<format>"
4422 msgstr ""
4423
4424 # type: textblock
4425 #: ../src/guestfs-actions.pod:171
4426 msgid ""
4427 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
4428 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
4429 "Possible formats include C<raw> and C<qcow2>."
4430 msgstr ""
4431
4432 # type: textblock
4433 #: ../src/guestfs-actions.pod:175 ../fish/guestfish-actions.pod:121
4434 msgid ""
4435 "Automatic detection of the format opens you up to a potential security hole "
4436 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
4437 "RHBZ#642934.  Specifying the format closes this security hole."
4438 msgstr ""
4439
4440 # type: =item
4441 #: ../src/guestfs-actions.pod:180 ../fish/guestfish-actions.pod:126
4442 msgid "C<iface>"
4443 msgstr ""
4444
4445 # type: textblock
4446 #: ../src/guestfs-actions.pod:182
4447 msgid ""
4448 "This rarely-used option lets you emulate the behaviour of the deprecated "
4449 "C<guestfs_add_drive_with_if> call (q.v.)"
4450 msgstr ""
4451
4452 # type: textblock
4453 #: ../src/guestfs-actions.pod:189
4454 msgid "(Added in 1.5.23)"
4455 msgstr ""
4456
4457 # type: =head2
4458 #: ../src/guestfs-actions.pod:191
4459 msgid "guestfs_add_drive_opts_va"
4460 msgstr ""
4461
4462 # type: verbatim
4463 #: ../src/guestfs-actions.pod:193
4464 #, no-wrap
4465 msgid ""
4466 " int\n"
4467 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
4468 "                            const char *filename,\n"
4469 "                            va_list args);\n"
4470 "\n"
4471 msgstr ""
4472
4473 # type: textblock
4474 #: ../src/guestfs-actions.pod:198
4475 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
4476 msgstr ""
4477
4478 # type: =head2
4479 #: ../src/guestfs-actions.pod:202
4480 msgid "guestfs_add_drive_opts_argv"
4481 msgstr ""
4482
4483 # type: verbatim
4484 #: ../src/guestfs-actions.pod:204
4485 #, no-wrap
4486 msgid ""
4487 " int\n"
4488 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
4489 "                              const char *filename,\n"
4490 "                              const struct guestfs_add_drive_opts_argv "
4491 "*optargs);\n"
4492 "\n"
4493 msgstr ""
4494
4495 # type: textblock
4496 #: ../src/guestfs-actions.pod:209
4497 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
4498 msgstr ""
4499
4500 # type: =head2
4501 #: ../src/guestfs-actions.pod:213
4502 msgid "guestfs_add_drive_ro"
4503 msgstr ""
4504
4505 # type: verbatim
4506 #: ../src/guestfs-actions.pod:215
4507 #, no-wrap
4508 msgid ""
4509 " int\n"
4510 " guestfs_add_drive_ro (guestfs_h *g,\n"
4511 "                       const char *filename);\n"
4512 "\n"
4513 msgstr ""
4514
4515 # type: textblock
4516 #: ../src/guestfs-actions.pod:219
4517 msgid ""
4518 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
4519 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
4520 "disk is added read-only, with the format being detected automatically."
4521 msgstr ""
4522
4523 # type: textblock
4524 #: ../src/guestfs-actions.pod:226
4525 msgid "(Added in 1.0.38)"
4526 msgstr ""
4527
4528 # type: =head2
4529 #: ../src/guestfs-actions.pod:228
4530 msgid "guestfs_add_drive_ro_with_if"
4531 msgstr ""
4532
4533 # type: verbatim
4534 #: ../src/guestfs-actions.pod:230
4535 #, no-wrap
4536 msgid ""
4537 " int\n"
4538 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
4539 "                               const char *filename,\n"
4540 "                               const char *iface);\n"
4541 "\n"
4542 msgstr ""
4543
4544 # type: textblock
4545 #: ../src/guestfs-actions.pod:235
4546 msgid ""
4547 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
4548 "QEMU interface emulation to use at run time."
4549 msgstr ""
4550
4551 # type: textblock
4552 #: ../src/guestfs-actions.pod:247 ../src/guestfs-actions.pod:268 ../src/guestfs-actions.pod:2303
4553 msgid "(Added in 1.0.84)"
4554 msgstr ""
4555
4556 # type: =head2
4557 #: ../src/guestfs-actions.pod:249
4558 msgid "guestfs_add_drive_with_if"
4559 msgstr ""
4560
4561 # type: verbatim
4562 #: ../src/guestfs-actions.pod:251
4563 #, no-wrap
4564 msgid ""
4565 " int\n"
4566 " guestfs_add_drive_with_if (guestfs_h *g,\n"
4567 "                            const char *filename,\n"
4568 "                            const char *iface);\n"
4569 "\n"
4570 msgstr ""
4571
4572 # type: textblock
4573 #: ../src/guestfs-actions.pod:256
4574 msgid ""
4575 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
4576 "QEMU interface emulation to use at run time."
4577 msgstr ""
4578
4579 # type: =head2
4580 #: ../src/guestfs-actions.pod:270
4581 msgid "guestfs_aug_clear"
4582 msgstr ""
4583
4584 # type: verbatim
4585 #: ../src/guestfs-actions.pod:272
4586 #, no-wrap
4587 msgid ""
4588 " int\n"
4589 " guestfs_aug_clear (guestfs_h *g,\n"
4590 "                    const char *augpath);\n"
4591 "\n"
4592 msgstr ""
4593
4594 # type: textblock
4595 #: ../src/guestfs-actions.pod:276 ../fish/guestfish-actions.pod:178
4596 msgid ""
4597 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
4598 "L<augtool(1)> C<clear> command."
4599 msgstr ""
4600
4601 # type: textblock
4602 #: ../src/guestfs-actions.pod:281 ../src/guestfs-actions.pod:2083
4603 msgid "(Added in 1.3.4)"
4604 msgstr ""
4605
4606 # type: =head2
4607 #: ../src/guestfs-actions.pod:283
4608 msgid "guestfs_aug_close"
4609 msgstr ""
4610
4611 # type: verbatim
4612 #: ../src/guestfs-actions.pod:285
4613 #, no-wrap
4614 msgid ""
4615 " int\n"
4616 " guestfs_aug_close (guestfs_h *g);\n"
4617 "\n"
4618 msgstr ""
4619
4620 # type: textblock
4621 #: ../src/guestfs-actions.pod:288
4622 msgid ""
4623 "Close the current Augeas handle and free up any resources used by it.  After "
4624 "calling this, you have to call C<guestfs_aug_init> again before you can use "
4625 "any other Augeas functions."
4626 msgstr ""
4627
4628 # type: textblock
4629 #: ../src/guestfs-actions.pod:295 ../src/guestfs-actions.pod:320 ../src/guestfs-actions.pod:338 ../src/guestfs-actions.pod:352 ../src/guestfs-actions.pod:410 ../src/guestfs-actions.pod:430 ../src/guestfs-actions.pod:444 ../src/guestfs-actions.pod:475 ../src/guestfs-actions.pod:489 ../src/guestfs-actions.pod:503 ../src/guestfs-actions.pod:517 ../src/guestfs-actions.pod:535 ../src/guestfs-actions.pod:5086
4630 msgid "(Added in 0.7)"
4631 msgstr ""
4632
4633 # type: =head2
4634 #: ../src/guestfs-actions.pod:297
4635 msgid "guestfs_aug_defnode"
4636 msgstr ""
4637
4638 # type: verbatim
4639 #: ../src/guestfs-actions.pod:299
4640 #, no-wrap
4641 msgid ""
4642 " struct guestfs_int_bool *\n"
4643 " guestfs_aug_defnode (guestfs_h *g,\n"
4644 "                      const char *name,\n"
4645 "                      const char *expr,\n"
4646 "                      const char *val);\n"
4647 "\n"
4648 msgstr ""
4649
4650 # type: textblock
4651 #: ../src/guestfs-actions.pod:305 ../fish/guestfish-actions.pod:194
4652 msgid "Defines a variable C<name> whose value is the result of evaluating C<expr>."
4653 msgstr ""
4654
4655 # type: textblock
4656 #: ../src/guestfs-actions.pod:308
4657 msgid ""
4658 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
4659 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
4660 "containing that single node."
4661 msgstr ""
4662
4663 # type: textblock
4664 #: ../src/guestfs-actions.pod:312 ../fish/guestfish-actions.pod:201
4665 msgid ""
4666 "On success this returns a pair containing the number of nodes in the "
4667 "nodeset, and a boolean flag if a node was created."
4668 msgstr ""
4669
4670 # type: textblock
4671 #: ../src/guestfs-actions.pod:316
4672 msgid ""
4673 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
4674 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
4675 msgstr ""
4676
4677 # type: =head2
4678 #: ../src/guestfs-actions.pod:322
4679 msgid "guestfs_aug_defvar"
4680 msgstr ""
4681
4682 # type: verbatim
4683 #: ../src/guestfs-actions.pod:324
4684 #, no-wrap
4685 msgid ""
4686 " int\n"
4687 " guestfs_aug_defvar (guestfs_h *g,\n"
4688 "                     const char *name,\n"
4689 "                     const char *expr);\n"
4690 "\n"
4691 msgstr ""
4692
4693 # type: textblock
4694 #: ../src/guestfs-actions.pod:329 ../fish/guestfish-actions.pod:209
4695 msgid ""
4696 "Defines an Augeas variable C<name> whose value is the result of evaluating "
4697 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
4698 msgstr ""
4699
4700 # type: textblock
4701 #: ../src/guestfs-actions.pod:333 ../fish/guestfish-actions.pod:213
4702 msgid ""
4703 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
4704 "evaluates to something which is not a nodeset."
4705 msgstr ""
4706
4707 # type: =head2
4708 #: ../src/guestfs-actions.pod:340
4709 msgid "guestfs_aug_get"
4710 msgstr ""
4711
4712 # type: verbatim
4713 #: ../src/guestfs-actions.pod:342
4714 #, no-wrap
4715 msgid ""
4716 " char *\n"
4717 " guestfs_aug_get (guestfs_h *g,\n"
4718 "                  const char *augpath);\n"
4719 "\n"
4720 msgstr ""
4721
4722 # type: textblock
4723 #: ../src/guestfs-actions.pod:346 ../fish/guestfish-actions.pod:220
4724 msgid ""
4725 "Look up the value associated with C<path>.  If C<path> matches exactly one "
4726 "node, the C<value> is returned."
4727 msgstr ""
4728
4729 # type: textblock
4730 #: ../src/guestfs-actions.pod:349 ../src/guestfs-actions.pod:849 ../src/guestfs-actions.pod:867 ../src/guestfs-actions.pod:927 ../src/guestfs-actions.pod:943 ../src/guestfs-actions.pod:1046 ../src/guestfs-actions.pod:1176 ../src/guestfs-actions.pod:1193 ../src/guestfs-actions.pod:1212 ../src/guestfs-actions.pod:1341 ../src/guestfs-actions.pod:1532 ../src/guestfs-actions.pod:1644 ../src/guestfs-actions.pod:1807 ../src/guestfs-actions.pod:1824 ../src/guestfs-actions.pod:1915 ../src/guestfs-actions.pod:1936 ../src/guestfs-actions.pod:2106 ../src/guestfs-actions.pod:2268 ../src/guestfs-actions.pod:2475 ../src/guestfs-actions.pod:2556 ../src/guestfs-actions.pod:2604 ../src/guestfs-actions.pod:2712 ../src/guestfs-actions.pod:2741 ../src/guestfs-actions.pod:2763 ../src/guestfs-actions.pod:2823 ../src/guestfs-actions.pod:2846 ../src/guestfs-actions.pod:3328 ../src/guestfs-actions.pod:3678 ../src/guestfs-actions.pod:3848 ../src/guestfs-actions.pod:3958 ../src/guestfs-actions.pod:4621 ../src/guestfs-actions.pod:4814 ../src/guestfs-actions.pod:4984 ../src/guestfs-actions.pod:5162 ../src/guestfs-actions.pod:5211 ../src/guestfs-actions.pod:5774 ../src/guestfs-actions.pod:5790 ../src/guestfs-actions.pod:5807 ../src/guestfs-actions.pod:5831 ../src/guestfs-actions.pod:6495 ../src/guestfs-actions.pod:6514 ../src/guestfs-actions.pod:6532 ../src/guestfs-actions.pod:6712 ../src/guestfs-actions.pod:6984
4731 msgid ""
4732 "This function returns a string, or NULL on error.  I<The caller must free "
4733 "the returned string after use>."
4734 msgstr ""
4735
4736 # type: =head2
4737 #: ../src/guestfs-actions.pod:354
4738 msgid "guestfs_aug_init"
4739 msgstr ""
4740
4741 # type: verbatim
4742 #: ../src/guestfs-actions.pod:356
4743 #, no-wrap
4744 msgid ""
4745 " int\n"
4746 " guestfs_aug_init (guestfs_h *g,\n"
4747 "                   const char *root,\n"
4748 "                   int flags);\n"
4749 "\n"
4750 msgstr ""
4751
4752 # type: textblock
4753 #: ../src/guestfs-actions.pod:361 ../fish/guestfish-actions.pod:227
4754 msgid ""
4755 "Create a new Augeas handle for editing configuration files.  If there was "
4756 "any previous Augeas handle associated with this guestfs session, then it is "
4757 "closed."
4758 msgstr ""
4759
4760 # type: textblock
4761 #: ../src/guestfs-actions.pod:365
4762 msgid "You must call this before using any other C<guestfs_aug_*> commands."
4763 msgstr ""
4764
4765 # type: textblock
4766 #: ../src/guestfs-actions.pod:368 ../fish/guestfish-actions.pod:234
4767 msgid "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
4768 msgstr ""
4769
4770 # type: textblock
4771 #: ../src/guestfs-actions.pod:371 ../fish/guestfish-actions.pod:237
4772 msgid ""
4773 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
4774 "logical I<or> of the following integers:"
4775 msgstr ""
4776
4777 # type: =item
4778 #: ../src/guestfs-actions.pod:377 ../fish/guestfish-actions.pod:243
4779 msgid "C<AUG_SAVE_BACKUP> = 1"
4780 msgstr ""
4781
4782 # type: textblock
4783 #: ../src/guestfs-actions.pod:379 ../fish/guestfish-actions.pod:245
4784 msgid "Keep the original file with a C<.augsave> extension."
4785 msgstr ""
4786
4787 # type: =item
4788 #: ../src/guestfs-actions.pod:381 ../fish/guestfish-actions.pod:247
4789 msgid "C<AUG_SAVE_NEWFILE> = 2"
4790 msgstr ""
4791
4792 # type: textblock
4793 #: ../src/guestfs-actions.pod:383 ../fish/guestfish-actions.pod:249
4794 msgid ""
4795 "Save changes into a file with extension C<.augnew>, and do not overwrite "
4796 "original.  Overrides C<AUG_SAVE_BACKUP>."
4797 msgstr ""
4798
4799 # type: =item
4800 #: ../src/guestfs-actions.pod:386 ../fish/guestfish-actions.pod:252
4801 msgid "C<AUG_TYPE_CHECK> = 4"
4802 msgstr ""
4803
4804 # type: textblock
4805 #: ../src/guestfs-actions.pod:388 ../fish/guestfish-actions.pod:254
4806 msgid "Typecheck lenses (can be expensive)."
4807 msgstr ""
4808
4809 # type: =item
4810 #: ../src/guestfs-actions.pod:390 ../fish/guestfish-actions.pod:256
4811 msgid "C<AUG_NO_STDINC> = 8"
4812 msgstr ""
4813
4814 # type: textblock
4815 #: ../src/guestfs-actions.pod:392 ../fish/guestfish-actions.pod:258
4816 msgid "Do not use standard load path for modules."
4817 msgstr ""
4818
4819 # type: =item
4820 #: ../src/guestfs-actions.pod:394 ../fish/guestfish-actions.pod:260
4821 msgid "C<AUG_SAVE_NOOP> = 16"
4822 msgstr ""
4823
4824 # type: textblock
4825 #: ../src/guestfs-actions.pod:396 ../fish/guestfish-actions.pod:262
4826 msgid "Make save a no-op, just record what would have been changed."
4827 msgstr ""
4828
4829 # type: =item
4830 #: ../src/guestfs-actions.pod:398 ../fish/guestfish-actions.pod:264
4831 msgid "C<AUG_NO_LOAD> = 32"
4832 msgstr ""
4833
4834 # type: textblock
4835 #: ../src/guestfs-actions.pod:400
4836 msgid "Do not load the tree in C<guestfs_aug_init>."
4837 msgstr ""
4838
4839 # type: textblock
4840 #: ../src/guestfs-actions.pod:404
4841 msgid "To close the handle, you can call C<guestfs_aug_close>."
4842 msgstr ""
4843
4844 # type: textblock
4845 #: ../src/guestfs-actions.pod:406 ../fish/guestfish-actions.pod:272
4846 msgid "To find out more about Augeas, see L<http://augeas.net/>."
4847 msgstr ""
4848
4849 # type: =head2
4850 #: ../src/guestfs-actions.pod:412
4851 msgid "guestfs_aug_insert"
4852 msgstr ""
4853
4854 # type: verbatim
4855 #: ../src/guestfs-actions.pod:414
4856 #, no-wrap
4857 msgid ""
4858 " int\n"
4859 " guestfs_aug_insert (guestfs_h *g,\n"
4860 "                     const char *augpath,\n"
4861 "                     const char *label,\n"
4862 "                     int before);\n"
4863 "\n"
4864 msgstr ""
4865
4866 # type: textblock
4867 #: ../src/guestfs-actions.pod:420 ../fish/guestfish-actions.pod:278
4868 msgid ""
4869 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
4870 "or after C<path> (depending on the boolean flag C<before>)."
4871 msgstr ""
4872
4873 # type: textblock
4874 #: ../src/guestfs-actions.pod:424 ../fish/guestfish-actions.pod:282
4875 msgid ""
4876 "C<path> must match exactly one existing node in the tree, and C<label> must "
4877 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
4878 msgstr ""
4879
4880 # type: =head2
4881 #: ../src/guestfs-actions.pod:432
4882 msgid "guestfs_aug_load"
4883 msgstr ""
4884
4885 # type: verbatim
4886 #: ../src/guestfs-actions.pod:434
4887 #, no-wrap
4888 msgid ""
4889 " int\n"
4890 " guestfs_aug_load (guestfs_h *g);\n"
4891 "\n"
4892 msgstr ""
4893
4894 # type: textblock
4895 #: ../src/guestfs-actions.pod:437 ../fish/guestfish-actions.pod:290
4896 msgid "Load files into the tree."
4897 msgstr ""
4898
4899 # type: textblock
4900 #: ../src/guestfs-actions.pod:439 ../fish/guestfish-actions.pod:292
4901 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
4902 msgstr ""
4903
4904 # type: =head2
4905 #: ../src/guestfs-actions.pod:446
4906 msgid "guestfs_aug_ls"
4907 msgstr ""
4908
4909 # type: verbatim
4910 #: ../src/guestfs-actions.pod:448
4911 #, no-wrap
4912 msgid ""
4913 " char **\n"
4914 " guestfs_aug_ls (guestfs_h *g,\n"
4915 "                 const char *augpath);\n"
4916 "\n"
4917 msgstr ""
4918
4919 # type: textblock
4920 #: ../src/guestfs-actions.pod:452
4921 msgid ""
4922 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
4923 "sorting the resulting nodes into alphabetical order."
4924 msgstr ""
4925
4926 # type: textblock
4927 #: ../src/guestfs-actions.pod:455 ../src/guestfs-actions.pod:471 ../src/guestfs-actions.pod:617 ../src/guestfs-actions.pod:1065 ../src/guestfs-actions.pod:1356 ../src/guestfs-actions.pod:1375 ../src/guestfs-actions.pod:1478 ../src/guestfs-actions.pod:1497 ../src/guestfs-actions.pod:1746 ../src/guestfs-actions.pod:2148 ../src/guestfs-actions.pod:2164 ../src/guestfs-actions.pod:2183 ../src/guestfs-actions.pod:2226 ../src/guestfs-actions.pod:2250 ../src/guestfs-actions.pod:2321 ../src/guestfs-actions.pod:2370 ../src/guestfs-actions.pod:2581 ../src/guestfs-actions.pod:2782 ../src/guestfs-actions.pod:2993 ../src/guestfs-actions.pod:3248 ../src/guestfs-actions.pod:3310 ../src/guestfs-actions.pod:3415 ../src/guestfs-actions.pod:3820 ../src/guestfs-actions.pod:4436 ../src/guestfs-actions.pod:4956 ../src/guestfs-actions.pod:5082 ../src/guestfs-actions.pod:5196 ../src/guestfs-actions.pod:5847 ../src/guestfs-actions.pod:5908 ../src/guestfs-actions.pod:5963 ../src/guestfs-actions.pod:6109 ../src/guestfs-actions.pod:6133 ../src/guestfs-actions.pod:6605 ../src/guestfs-actions.pod:6625 ../src/guestfs-actions.pod:6672 ../src/guestfs-actions.pod:6837 ../src/guestfs-actions.pod:6856 ../src/guestfs-actions.pod:6941 ../src/guestfs-actions.pod:6960 ../src/guestfs-actions.pod:7006 ../src/guestfs-actions.pod:7025
4928 msgid ""
4929 "This function returns a NULL-terminated array of strings (like "
4930 "L<environ(3)>), or NULL if there was an error.  I<The caller must free the "
4931 "strings and the array after use>."
4932 msgstr ""
4933
4934 # type: textblock
4935 #: ../src/guestfs-actions.pod:459 ../src/guestfs-actions.pod:990 ../src/guestfs-actions.pod:1008 ../src/guestfs-actions.pod:1413 ../src/guestfs-actions.pod:3071 ../src/guestfs-actions.pod:3102 ../src/guestfs-actions.pod:3661 ../src/guestfs-actions.pod:3711 ../src/guestfs-actions.pod:3898 ../src/guestfs-actions.pod:3931 ../src/guestfs-actions.pod:4094 ../src/guestfs-actions.pod:4440 ../src/guestfs-actions.pod:4897 ../src/guestfs-actions.pod:5275 ../src/guestfs-actions.pod:5289 ../src/guestfs-actions.pod:5301 ../src/guestfs-actions.pod:5709 ../src/guestfs-actions.pod:6347 ../src/guestfs-actions.pod:6360 ../src/guestfs-actions.pod:6589 ../src/guestfs-actions.pod:6792 ../src/guestfs-actions.pod:6825
4936 msgid "(Added in 0.8)"
4937 msgstr ""
4938
4939 # type: =head2
4940 #: ../src/guestfs-actions.pod:461
4941 msgid "guestfs_aug_match"
4942 msgstr ""
4943
4944 # type: verbatim
4945 #: ../src/guestfs-actions.pod:463
4946 #, no-wrap
4947 msgid ""
4948 " char **\n"
4949 " guestfs_aug_match (guestfs_h *g,\n"
4950 "                    const char *augpath);\n"
4951 "\n"
4952 msgstr ""
4953
4954 # type: textblock
4955 #: ../src/guestfs-actions.pod:467 ../fish/guestfish-actions.pod:306
4956 msgid ""
4957 "Returns a list of paths which match the path expression C<path>.  The "
4958 "returned paths are sufficiently qualified so that they match exactly one "
4959 "node in the current tree."
4960 msgstr ""
4961
4962 # type: =head2
4963 #: ../src/guestfs-actions.pod:477
4964 msgid "guestfs_aug_mv"
4965 msgstr ""
4966
4967 # type: verbatim
4968 #: ../src/guestfs-actions.pod:479
4969 #, no-wrap
4970 msgid ""
4971 " int\n"
4972 " guestfs_aug_mv (guestfs_h *g,\n"
4973 "                 const char *src,\n"
4974 "                 const char *dest);\n"
4975 "\n"
4976 msgstr ""
4977
4978 # type: textblock
4979 #: ../src/guestfs-actions.pod:484 ../fish/guestfish-actions.pod:314
4980 msgid ""
4981 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
4982 "C<dest> is overwritten if it exists."
4983 msgstr ""
4984
4985 # type: =head2
4986 #: ../src/guestfs-actions.pod:491
4987 msgid "guestfs_aug_rm"
4988 msgstr ""
4989
4990 # type: verbatim
4991 #: ../src/guestfs-actions.pod:493
4992 #, no-wrap
4993 msgid ""
4994 " int\n"
4995 " guestfs_aug_rm (guestfs_h *g,\n"
4996 "                 const char *augpath);\n"
4997 "\n"
4998 msgstr ""
4999
5000 # type: textblock
5001 #: ../src/guestfs-actions.pod:497 ../fish/guestfish-actions.pod:321
5002 msgid "Remove C<path> and all of its children."
5003 msgstr ""
5004
5005 # type: textblock
5006 #: ../src/guestfs-actions.pod:499 ../fish/guestfish-actions.pod:323
5007 msgid "On success this returns the number of entries which were removed."
5008 msgstr ""
5009
5010 # type: =head2
5011 #: ../src/guestfs-actions.pod:505
5012 msgid "guestfs_aug_save"
5013 msgstr ""
5014
5015 # type: verbatim
5016 #: ../src/guestfs-actions.pod:507
5017 #, no-wrap
5018 msgid ""
5019 " int\n"
5020 " guestfs_aug_save (guestfs_h *g);\n"
5021 "\n"
5022 msgstr ""
5023
5024 # type: textblock
5025 #: ../src/guestfs-actions.pod:510 ../fish/guestfish-actions.pod:329
5026 msgid "This writes all pending changes to disk."
5027 msgstr ""
5028
5029 # type: textblock
5030 #: ../src/guestfs-actions.pod:512
5031 msgid ""
5032 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
5033 "are saved."
5034 msgstr ""
5035
5036 # type: =head2
5037 #: ../src/guestfs-actions.pod:519
5038 msgid "guestfs_aug_set"
5039 msgstr ""
5040
5041 # type: verbatim
5042 #: ../src/guestfs-actions.pod:521
5043 #, no-wrap
5044 msgid ""
5045 " int\n"
5046 " guestfs_aug_set (guestfs_h *g,\n"
5047 "                  const char *augpath,\n"
5048 "                  const char *val);\n"
5049 "\n"
5050 msgstr ""
5051
5052 # type: textblock
5053 #: ../src/guestfs-actions.pod:526 ../fish/guestfish-actions.pod:338
5054 msgid "Set the value associated with C<path> to C<val>."
5055 msgstr ""
5056
5057 # type: textblock
5058 #: ../src/guestfs-actions.pod:528
5059 msgid ""
5060 "In the Augeas API, it is possible to clear a node by setting the value to "
5061 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
5062 "this call.  Instead you must use the C<guestfs_aug_clear> call."
5063 msgstr ""
5064
5065 # type: =head2
5066 #: ../src/guestfs-actions.pod:537
5067 msgid "guestfs_available"
5068 msgstr ""
5069
5070 # type: verbatim
5071 #: ../src/guestfs-actions.pod:539
5072 #, no-wrap
5073 msgid ""
5074 " int\n"
5075 " guestfs_available (guestfs_h *g,\n"
5076 "                    char *const *groups);\n"
5077 "\n"
5078 msgstr ""
5079
5080 # type: textblock
5081 #: ../src/guestfs-actions.pod:543 ../fish/guestfish-actions.pod:349
5082 msgid ""
5083 "This command is used to check the availability of some groups of "
5084 "functionality in the appliance, which not all builds of the libguestfs "
5085 "appliance will be able to provide."
5086 msgstr ""
5087
5088 # type: textblock
5089 #: ../src/guestfs-actions.pod:547
5090 msgid ""
5091 "The libguestfs groups, and the functions that those groups correspond to, "
5092 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
5093 "runtime by calling C<guestfs_available_all_groups>."
5094 msgstr ""
5095
5096 # type: textblock
5097 #: ../src/guestfs-actions.pod:552 ../fish/guestfish-actions.pod:358
5098 msgid ""
5099 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", "
5100 "\"augeas\"]> would check for the availability of the Linux inotify functions "
5101 "and Augeas (configuration file editing) functions."
5102 msgstr ""
5103
5104 # type: textblock
5105 #: ../src/guestfs-actions.pod:557 ../fish/guestfish-actions.pod:363
5106 msgid "The command returns no error if I<all> requested groups are available."
5107 msgstr ""
5108
5109 # type: textblock
5110 #: ../src/guestfs-actions.pod:559 ../fish/guestfish-actions.pod:365
5111 msgid ""
5112 "It fails with an error if one or more of the requested groups is unavailable "
5113 "in the appliance."
5114 msgstr ""
5115
5116 # type: textblock
5117 #: ../src/guestfs-actions.pod:562 ../fish/guestfish-actions.pod:368
5118 msgid ""
5119 "If an unknown group name is included in the list of groups then an error is "
5120 "always returned."
5121 msgstr ""
5122
5123 # type: textblock
5124 #: ../src/guestfs-actions.pod:565 ../fish/guestfish-actions.pod:371
5125 msgid "I<Notes:>"
5126 msgstr ""
5127
5128 # type: textblock
5129 #: ../src/guestfs-actions.pod:571
5130 msgid "You must call C<guestfs_launch> before calling this function."
5131 msgstr ""
5132
5133 # type: textblock
5134 #: ../src/guestfs-actions.pod:573 ../fish/guestfish-actions.pod:379
5135 msgid ""
5136 "The reason is because we don't know what groups are supported by the "
5137 "appliance/daemon until it is running and can be queried."
5138 msgstr ""
5139
5140 # type: textblock
5141 #: ../src/guestfs-actions.pod:579 ../fish/guestfish-actions.pod:385
5142 msgid ""
5143 "If a group of functions is available, this does not necessarily mean that "
5144 "they will work.  You still have to check for errors when calling individual "
5145 "API functions even if they are available."
5146 msgstr ""
5147
5148 # type: textblock
5149 #: ../src/guestfs-actions.pod:586 ../fish/guestfish-actions.pod:392
5150 msgid ""
5151 "It is usually the job of distro packagers to build complete functionality "
5152 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
5153 "with all requirements satisfied, will support everything."
5154 msgstr ""
5155
5156 # type: textblock
5157 #: ../src/guestfs-actions.pod:593
5158 msgid ""
5159 "This call was added in version C<1.0.80>.  In previous versions of "
5160 "libguestfs all you could do would be to speculatively execute a command to "
5161 "find out if the daemon implemented it.  See also C<guestfs_version>."
5162 msgstr ""
5163
5164 # type: textblock
5165 #: ../src/guestfs-actions.pod:602 ../src/guestfs-actions.pod:1163
5166 msgid "(Added in 1.0.80)"
5167 msgstr ""
5168
5169 # type: =head2
5170 #: ../src/guestfs-actions.pod:604
5171 msgid "guestfs_available_all_groups"
5172 msgstr ""
5173
5174 # type: verbatim
5175 #: ../src/guestfs-actions.pod:606
5176 #, no-wrap
5177 msgid ""
5178 " char **\n"
5179 " guestfs_available_all_groups (guestfs_h *g);\n"
5180 "\n"
5181 msgstr ""
5182
5183 # type: textblock
5184 #: ../src/guestfs-actions.pod:609
5185 msgid ""
5186 "This command returns a list of all optional groups that this daemon knows "
5187 "about.  Note this returns both supported and unsupported groups.  To find "
5188 "out which ones the daemon can actually support you have to call "
5189 "C<guestfs_available> on each member of the returned list."
5190 msgstr ""
5191
5192 # type: textblock
5193 #: ../src/guestfs-actions.pod:615
5194 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
5195 msgstr ""
5196
5197 # type: textblock
5198 #: ../src/guestfs-actions.pod:621
5199 msgid "(Added in 1.3.15)"
5200 msgstr ""
5201
5202 # type: =head2
5203 #: ../src/guestfs-actions.pod:623
5204 msgid "guestfs_base64_in"
5205 msgstr ""
5206
5207 # type: verbatim
5208 #: ../src/guestfs-actions.pod:625
5209 #, no-wrap
5210 msgid ""
5211 " int\n"
5212 " guestfs_base64_in (guestfs_h *g,\n"
5213 "                    const char *base64file,\n"
5214 "                    const char *filename);\n"
5215 "\n"
5216 msgstr ""
5217
5218 # type: textblock
5219 #: ../src/guestfs-actions.pod:630 ../fish/guestfish-actions.pod:422
5220 msgid "This command uploads base64-encoded data from C<base64file> to C<filename>."
5221 msgstr ""
5222
5223 # type: textblock
5224 #: ../src/guestfs-actions.pod:635 ../src/guestfs-actions.pod:649
5225 msgid "(Added in 1.3.5)"
5226 msgstr ""
5227
5228 # type: =head2
5229 #: ../src/guestfs-actions.pod:637
5230 msgid "guestfs_base64_out"
5231 msgstr ""
5232
5233 # type: verbatim
5234 #: ../src/guestfs-actions.pod:639
5235 #, no-wrap
5236 msgid ""
5237 " int\n"
5238 " guestfs_base64_out (guestfs_h *g,\n"
5239 "                     const char *filename,\n"
5240 "                     const char *base64file);\n"
5241 "\n"
5242 msgstr ""
5243
5244 # type: textblock
5245 #: ../src/guestfs-actions.pod:644 ../fish/guestfish-actions.pod:431
5246 msgid ""
5247 "This command downloads the contents of C<filename>, writing it out to local "
5248 "file C<base64file> encoded as base64."
5249 msgstr ""
5250
5251 # type: =head2
5252 #: ../src/guestfs-actions.pod:651
5253 msgid "guestfs_blockdev_flushbufs"
5254 msgstr ""
5255
5256 # type: verbatim
5257 #: ../src/guestfs-actions.pod:653
5258 #, no-wrap
5259 msgid ""
5260 " int\n"
5261 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
5262 "                             const char *device);\n"
5263 "\n"
5264 msgstr ""
5265
5266 # type: textblock
5267 #: ../src/guestfs-actions.pod:657 ../fish/guestfish-actions.pod:440
5268 msgid "This tells the kernel to flush internal buffers associated with C<device>."
5269 msgstr ""
5270
5271 # type: textblock
5272 #: ../src/guestfs-actions.pod:660 ../src/guestfs-actions.pod:677 ../src/guestfs-actions.pod:692 ../src/guestfs-actions.pod:708 ../src/guestfs-actions.pod:726 ../src/guestfs-actions.pod:745 ../src/guestfs-actions.pod:759 ../src/guestfs-actions.pod:777 ../src/guestfs-actions.pod:791 ../src/guestfs-actions.pod:805 ../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
5273 msgid "This uses the L<blockdev(8)> command."
5274 msgstr ""
5275
5276 # type: textblock
5277 #: ../src/guestfs-actions.pod:664 ../src/guestfs-actions.pod:681 ../src/guestfs-actions.pod:696 ../src/guestfs-actions.pod:712 ../src/guestfs-actions.pod:730 ../src/guestfs-actions.pod:749 ../src/guestfs-actions.pod:763 ../src/guestfs-actions.pod:781 ../src/guestfs-actions.pod:795 ../src/guestfs-actions.pod:809
5278 msgid "(Added in 0.9.3)"
5279 msgstr ""
5280
5281 # type: =head2
5282 #: ../src/guestfs-actions.pod:666
5283 msgid "guestfs_blockdev_getbsz"
5284 msgstr ""
5285
5286 # type: verbatim
5287 #: ../src/guestfs-actions.pod:668
5288 #, no-wrap
5289 msgid ""
5290 " int\n"
5291 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
5292 "                          const char *device);\n"
5293 "\n"
5294 msgstr ""
5295
5296 # type: textblock
5297 #: ../src/guestfs-actions.pod:672 ../fish/guestfish-actions.pod:449
5298 msgid "This returns the block size of a device."
5299 msgstr ""
5300
5301 # type: textblock
5302 #: ../src/guestfs-actions.pod:674 ../src/guestfs-actions.pod:774 ../fish/guestfish-actions.pod:451 ../fish/guestfish-actions.pod:514
5303 msgid ""
5304 "(Note this is different from both I<size in blocks> and I<filesystem block "
5305 "size>)."
5306 msgstr ""
5307
5308 # type: =head2
5309 #: ../src/guestfs-actions.pod:683
5310 msgid "guestfs_blockdev_getro"
5311 msgstr ""
5312
5313 # type: verbatim
5314 #: ../src/guestfs-actions.pod:685
5315 #, no-wrap
5316 msgid ""
5317 " int\n"
5318 " guestfs_blockdev_getro (guestfs_h *g,\n"
5319 "                         const char *device);\n"
5320 "\n"
5321 msgstr ""
5322
5323 # type: textblock
5324 #: ../src/guestfs-actions.pod:689 ../fish/guestfish-actions.pod:460
5325 msgid ""
5326 "Returns a boolean indicating if the block device is read-only (true if "
5327 "read-only, false if not)."
5328 msgstr ""
5329
5330 # type: textblock
5331 #: ../src/guestfs-actions.pod:694 ../src/guestfs-actions.pod:1396 ../src/guestfs-actions.pod:1411 ../src/guestfs-actions.pod:1891 ../src/guestfs-actions.pod:1902 ../src/guestfs-actions.pod:1974 ../src/guestfs-actions.pod:2029 ../src/guestfs-actions.pod:2044 ../src/guestfs-actions.pod:2069 ../src/guestfs-actions.pod:2092 ../src/guestfs-actions.pod:3010 ../src/guestfs-actions.pod:3024 ../src/guestfs-actions.pod:3039 ../src/guestfs-actions.pod:3053 ../src/guestfs-actions.pod:3069 ../src/guestfs-actions.pod:3084 ../src/guestfs-actions.pod:3100 ../src/guestfs-actions.pod:3114 ../src/guestfs-actions.pod:3127 ../src/guestfs-actions.pod:3141 ../src/guestfs-actions.pod:3156 ../src/guestfs-actions.pod:3171 ../src/guestfs-actions.pod:4585
5332 msgid "This function returns a C truth value on success or -1 on error."
5333 msgstr ""
5334
5335 # type: =head2
5336 #: ../src/guestfs-actions.pod:698
5337 msgid "guestfs_blockdev_getsize64"
5338 msgstr ""
5339
5340 # type: verbatim
5341 #: ../src/guestfs-actions.pod:700
5342 #, no-wrap
5343 msgid ""
5344 " int64_t\n"
5345 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
5346 "                             const char *device);\n"
5347 "\n"
5348 msgstr ""
5349
5350 # type: textblock
5351 #: ../src/guestfs-actions.pod:704 ../fish/guestfish-actions.pod:469
5352 msgid "This returns the size of the device in bytes."
5353 msgstr ""
5354
5355 # type: textblock
5356 #: ../src/guestfs-actions.pod:706
5357 msgid "See also C<guestfs_blockdev_getsz>."
5358 msgstr ""
5359
5360 # type: =head2
5361 #: ../src/guestfs-actions.pod:714
5362 msgid "guestfs_blockdev_getss"
5363 msgstr ""
5364
5365 # type: verbatim
5366 #: ../src/guestfs-actions.pod:716
5367 #, no-wrap
5368 msgid ""
5369 " int\n"
5370 " guestfs_blockdev_getss (guestfs_h *g,\n"
5371 "                         const char *device);\n"
5372 "\n"
5373 msgstr ""
5374
5375 # type: textblock
5376 #: ../src/guestfs-actions.pod:720 ../fish/guestfish-actions.pod:479
5377 msgid ""
5378 "This returns the size of sectors on a block device.  Usually 512, but can be "
5379 "larger for modern devices."
5380 msgstr ""
5381
5382 # type: textblock
5383 #: ../src/guestfs-actions.pod:723
5384 msgid ""
5385 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
5386 "that)."
5387 msgstr ""
5388
5389 # type: =head2
5390 #: ../src/guestfs-actions.pod:732
5391 msgid "guestfs_blockdev_getsz"
5392 msgstr ""
5393
5394 # type: verbatim
5395 #: ../src/guestfs-actions.pod:734
5396 #, no-wrap
5397 msgid ""
5398 " int64_t\n"
5399 " guestfs_blockdev_getsz (guestfs_h *g,\n"
5400 "                         const char *device);\n"
5401 "\n"
5402 msgstr ""
5403
5404 # type: textblock
5405 #: ../src/guestfs-actions.pod:738 ../fish/guestfish-actions.pod:491
5406 msgid ""
5407 "This returns the size of the device in units of 512-byte sectors (even if "
5408 "the sectorsize isn't 512 bytes ... weird)."
5409 msgstr ""
5410
5411 # type: textblock
5412 #: ../src/guestfs-actions.pod:741
5413 msgid ""
5414 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
5415 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
5416 msgstr ""
5417
5418 # type: =head2
5419 #: ../src/guestfs-actions.pod:751
5420 msgid "guestfs_blockdev_rereadpt"
5421 msgstr ""
5422
5423 # type: verbatim
5424 #: ../src/guestfs-actions.pod:753
5425 #, no-wrap
5426 msgid ""
5427 " int\n"
5428 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
5429 "                            const char *device);\n"
5430 "\n"
5431 msgstr ""
5432
5433 # type: textblock
5434 #: ../src/guestfs-actions.pod:757 ../fish/guestfish-actions.pod:504
5435 msgid "Reread the partition table on C<device>."
5436 msgstr ""
5437
5438 # type: =head2
5439 #: ../src/guestfs-actions.pod:765
5440 msgid "guestfs_blockdev_setbsz"
5441 msgstr ""
5442
5443 # type: verbatim
5444 #: ../src/guestfs-actions.pod:767
5445 #, no-wrap
5446 msgid ""
5447 " int\n"
5448 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
5449 "                          const char *device,\n"
5450 "                          int blocksize);\n"
5451 "\n"
5452 msgstr ""
5453
5454 # type: textblock
5455 #: ../src/guestfs-actions.pod:772 ../fish/guestfish-actions.pod:512
5456 msgid "This sets the block size of a device."
5457 msgstr ""
5458
5459 # type: =head2
5460 #: ../src/guestfs-actions.pod:783
5461 msgid "guestfs_blockdev_setro"
5462 msgstr ""
5463
5464 # type: verbatim
5465 #: ../src/guestfs-actions.pod:785
5466 #, no-wrap
5467 msgid ""
5468 " int\n"
5469 " guestfs_blockdev_setro (guestfs_h *g,\n"
5470 "                         const char *device);\n"
5471 "\n"
5472 msgstr ""
5473
5474 # type: textblock
5475 #: ../src/guestfs-actions.pod:789 ../fish/guestfish-actions.pod:523
5476 msgid "Sets the block device named C<device> to read-only."
5477 msgstr ""
5478
5479 # type: =head2
5480 #: ../src/guestfs-actions.pod:797
5481 msgid "guestfs_blockdev_setrw"
5482 msgstr ""
5483
5484 # type: verbatim
5485 #: ../src/guestfs-actions.pod:799
5486 #, no-wrap
5487 msgid ""
5488 " int\n"
5489 " guestfs_blockdev_setrw (guestfs_h *g,\n"
5490 "                         const char *device);\n"
5491 "\n"
5492 msgstr ""
5493
5494 # type: textblock
5495 #: ../src/guestfs-actions.pod:803 ../fish/guestfish-actions.pod:531
5496 msgid "Sets the block device named C<device> to read-write."
5497 msgstr ""
5498
5499 # type: =head2
5500 #: ../src/guestfs-actions.pod:811
5501 msgid "guestfs_case_sensitive_path"
5502 msgstr ""
5503
5504 # type: verbatim
5505 #: ../src/guestfs-actions.pod:813
5506 #, no-wrap
5507 msgid ""
5508 " char *\n"
5509 " guestfs_case_sensitive_path (guestfs_h *g,\n"
5510 "                              const char *path);\n"
5511 "\n"
5512 msgstr ""
5513
5514 # type: textblock
5515 #: ../src/guestfs-actions.pod:817 ../fish/guestfish-actions.pod:539
5516 msgid ""
5517 "This can be used to resolve case insensitive paths on a filesystem which is "
5518 "case sensitive.  The use case is to resolve paths which you have read from "
5519 "Windows configuration files or the Windows Registry, to the true path."
5520 msgstr ""
5521
5522 # type: textblock
5523 #: ../src/guestfs-actions.pod:822 ../fish/guestfish-actions.pod:544
5524 msgid ""
5525 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
5526 "(and probably others), which is that although the underlying filesystem is "
5527 "case-insensitive, the driver exports the filesystem to Linux as "
5528 "case-sensitive."
5529 msgstr ""
5530
5531 # type: textblock
5532 #: ../src/guestfs-actions.pod:827 ../fish/guestfish-actions.pod:549
5533 msgid ""
5534 "One consequence of this is that special directories such as C<c:\\windows> "
5535 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
5536 "precise details of how they were created.  In Windows itself this would not "
5537 "be a problem."
5538 msgstr ""
5539
5540 # type: textblock
5541 #: ../src/guestfs-actions.pod:833 ../fish/guestfish-actions.pod:555
5542 msgid ""
5543 "Bug or feature? You decide: "
5544 "L<http://www.tuxera.com/community/ntfs-3g-faq/#posixfilenames1>"
5545 msgstr ""
5546
5547 # type: textblock
5548 #: ../src/guestfs-actions.pod:836 ../fish/guestfish-actions.pod:558
5549 msgid ""
5550 "This function resolves the true case of each element in the path and returns "
5551 "the case-sensitive path."
5552 msgstr ""
5553
5554 # type: textblock
5555 #: ../src/guestfs-actions.pod:839
5556 msgid ""
5557 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return "
5558 "C<\"/WINDOWS/system32\"> (the exact return value would depend on details of "
5559 "how the directories were originally created under Windows)."
5560 msgstr ""
5561
5562 # type: textblock
5563 #: ../src/guestfs-actions.pod:844 ../fish/guestfish-actions.pod:566
5564 msgid "I<Note>: This function does not handle drive names, backslashes etc."
5565 msgstr ""
5566
5567 # type: textblock
5568 #: ../src/guestfs-actions.pod:847
5569 msgid "See also C<guestfs_realpath>."
5570 msgstr ""
5571
5572 # type: textblock
5573 #: ../src/guestfs-actions.pod:852 ../src/guestfs-actions.pod:6517
5574 msgid "(Added in 1.0.75)"
5575 msgstr ""
5576
5577 # type: =head2
5578 #: ../src/guestfs-actions.pod:854
5579 msgid "guestfs_cat"
5580 msgstr ""
5581
5582 # type: verbatim
5583 #: ../src/guestfs-actions.pod:856
5584 #, no-wrap
5585 msgid ""
5586 " char *\n"
5587 " guestfs_cat (guestfs_h *g,\n"
5588 "              const char *path);\n"
5589 "\n"
5590 msgstr ""
5591
5592 # type: textblock
5593 #: ../src/guestfs-actions.pod:860 ../src/guestfs-actions.pod:5072 ../fish/guestfish-actions.pod:575 ../fish/guestfish-actions.pod:3393
5594 msgid "Return the contents of the file named C<path>."
5595 msgstr ""
5596
5597 # type: textblock
5598 #: ../src/guestfs-actions.pod:862
5599 msgid ""
5600 "Note that this function cannot correctly handle binary files (specifically, "
5601 "files containing C<\\0> character which is treated as end of string).  For "
5602 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
5603 "functions which have a more complex interface."
5604 msgstr ""
5605
5606 # type: textblock
5607 #: ../src/guestfs-actions.pod:870 ../src/guestfs-actions.pod:1049 ../src/guestfs-actions.pod:1069 ../src/guestfs-actions.pod:1360 ../src/guestfs-actions.pod:1379 ../src/guestfs-actions.pod:1482 ../src/guestfs-actions.pod:1501 ../src/guestfs-actions.pod:1750 ../src/guestfs-actions.pod:2168 ../src/guestfs-actions.pod:2187 ../src/guestfs-actions.pod:2230 ../src/guestfs-actions.pod:2254 ../src/guestfs-actions.pod:2271 ../src/guestfs-actions.pod:2300 ../src/guestfs-actions.pod:4854 ../src/guestfs-actions.pod:4880 ../src/guestfs-actions.pod:5011 ../src/guestfs-actions.pod:5037 ../src/guestfs-actions.pod:5061 ../src/guestfs-actions.pod:5912 ../src/guestfs-actions.pod:5967 ../src/guestfs-actions.pod:6113 ../src/guestfs-actions.pod:6137 ../src/guestfs-actions.pod:6789 ../src/guestfs-actions.pod:6815 ../src/guestfs-actions.pod:6841 ../src/guestfs-actions.pod:6860 ../src/guestfs-actions.pod:6945 ../src/guestfs-actions.pod:6964 ../src/guestfs-actions.pod:7010 ../src/guestfs-actions.pod:7029 ../fish/guestfish-actions.pod:582 ../fish/guestfish-actions.pod:717 ../fish/guestfish-actions.pod:729 ../fish/guestfish-actions.pod:905 ../fish/guestfish-actions.pod:915 ../fish/guestfish-actions.pod:982 ../fish/guestfish-actions.pod:992 ../fish/guestfish-actions.pod:1187 ../fish/guestfish-actions.pod:1462 ../fish/guestfish-actions.pod:1472 ../fish/guestfish-actions.pod:1500 ../fish/guestfish-actions.pod:1515 ../fish/guestfish-actions.pod:1525 ../fish/guestfish-actions.pod:1544 ../fish/guestfish-actions.pod:3263 ../fish/guestfish-actions.pod:3278 ../fish/guestfish-actions.pod:3354 ../fish/guestfish-actions.pod:3371 ../fish/guestfish-actions.pod:3386 ../fish/guestfish-actions.pod:3969 ../fish/guestfish-actions.pod:4015 ../fish/guestfish-actions.pod:4100 ../fish/guestfish-actions.pod:4115 ../fish/guestfish-actions.pod:4525 ../fish/guestfish-actions.pod:4543 ../fish/guestfish-actions.pod:4560 ../fish/guestfish-actions.pod:4570 ../fish/guestfish-actions.pod:4618 ../fish/guestfish-actions.pod:4628 ../fish/guestfish-actions.pod:4657 ../fish/guestfish-actions.pod:4667
5608 msgid ""
5609 "Because of the message protocol, there is a transfer limit of somewhere "
5610 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
5611 msgstr ""
5612
5613 # type: textblock
5614 #: ../src/guestfs-actions.pod:873 ../src/guestfs-actions.pod:3252 ../src/guestfs-actions.pod:3314 ../src/guestfs-actions.pod:3331 ../src/guestfs-actions.pod:3419 ../src/guestfs-actions.pod:3824 ../src/guestfs-actions.pod:3838 ../src/guestfs-actions.pod:4960 ../src/guestfs-actions.pod:4974 ../src/guestfs-actions.pod:6676 ../src/guestfs-actions.pod:6690
5615 msgid "(Added in 0.4)"
5616 msgstr ""
5617
5618 # type: =head2
5619 #: ../src/guestfs-actions.pod:875
5620 msgid "guestfs_checksum"
5621 msgstr ""
5622
5623 # type: verbatim
5624 #: ../src/guestfs-actions.pod:877
5625 #, no-wrap
5626 msgid ""
5627 " char *\n"
5628 " guestfs_checksum (guestfs_h *g,\n"
5629 "                   const char *csumtype,\n"
5630 "                   const char *path);\n"
5631 "\n"
5632 msgstr ""
5633
5634 # type: textblock
5635 #: ../src/guestfs-actions.pod:882 ../fish/guestfish-actions.pod:589
5636 msgid "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
5637 msgstr ""
5638
5639 # type: textblock
5640 #: ../src/guestfs-actions.pod:885 ../fish/guestfish-actions.pod:592
5641 msgid ""
5642 "The type of checksum to compute is given by the C<csumtype> parameter which "
5643 "must have one of the following values:"
5644 msgstr ""
5645
5646 # type: =item
5647 #: ../src/guestfs-actions.pod:890 ../fish/guestfish-actions.pod:597
5648 msgid "C<crc>"
5649 msgstr ""
5650
5651 # type: textblock
5652 #: ../src/guestfs-actions.pod:892 ../fish/guestfish-actions.pod:599
5653 msgid ""
5654 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
5655 "C<cksum> command."
5656 msgstr ""
5657
5658 # type: =item
5659 #: ../src/guestfs-actions.pod:895 ../fish/guestfish-actions.pod:602
5660 msgid "C<md5>"
5661 msgstr ""
5662
5663 # type: textblock
5664 #: ../src/guestfs-actions.pod:897 ../fish/guestfish-actions.pod:604
5665 msgid "Compute the MD5 hash (using the C<md5sum> program)."
5666 msgstr ""
5667
5668 # type: =item
5669 #: ../src/guestfs-actions.pod:899 ../fish/guestfish-actions.pod:606
5670 msgid "C<sha1>"
5671 msgstr ""
5672
5673 # type: textblock
5674 #: ../src/guestfs-actions.pod:901 ../fish/guestfish-actions.pod:608
5675 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
5676 msgstr ""
5677
5678 # type: =item
5679 #: ../src/guestfs-actions.pod:903 ../fish/guestfish-actions.pod:610
5680 msgid "C<sha224>"
5681 msgstr ""
5682
5683 # type: textblock
5684 #: ../src/guestfs-actions.pod:905 ../fish/guestfish-actions.pod:612
5685 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
5686 msgstr ""
5687
5688 # type: =item
5689 #: ../src/guestfs-actions.pod:907 ../fish/guestfish-actions.pod:614
5690 msgid "C<sha256>"
5691 msgstr ""
5692
5693 # type: textblock
5694 #: ../src/guestfs-actions.pod:909 ../fish/guestfish-actions.pod:616
5695 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
5696 msgstr ""
5697
5698 # type: =item
5699 #: ../src/guestfs-actions.pod:911 ../fish/guestfish-actions.pod:618
5700 msgid "C<sha384>"
5701 msgstr ""
5702
5703 # type: textblock
5704 #: ../src/guestfs-actions.pod:913 ../fish/guestfish-actions.pod:620
5705 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
5706 msgstr ""
5707
5708 # type: =item
5709 #: ../src/guestfs-actions.pod:915 ../fish/guestfish-actions.pod:622
5710 msgid "C<sha512>"
5711 msgstr ""
5712
5713 # type: textblock
5714 #: ../src/guestfs-actions.pod:917 ../fish/guestfish-actions.pod:624
5715 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
5716 msgstr ""
5717
5718 # type: textblock
5719 #: ../src/guestfs-actions.pod:921 ../fish/guestfish-actions.pod:628
5720 msgid "The checksum is returned as a printable string."
5721 msgstr ""
5722
5723 # type: textblock
5724 #: ../src/guestfs-actions.pod:923
5725 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
5726 msgstr ""
5727
5728 # type: textblock
5729 #: ../src/guestfs-actions.pod:925
5730 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
5731 msgstr ""
5732
5733 # type: textblock
5734 #: ../src/guestfs-actions.pod:930 ../src/guestfs-actions.pod:1238 ../src/guestfs-actions.pod:2060 ../src/guestfs-actions.pod:3026 ../src/guestfs-actions.pod:3055 ../src/guestfs-actions.pod:3116 ../src/guestfs-actions.pod:3143 ../src/guestfs-actions.pod:6378
5735 msgid "(Added in 1.0.2)"
5736 msgstr ""
5737
5738 # type: =head2
5739 #: ../src/guestfs-actions.pod:932
5740 msgid "guestfs_checksum_device"
5741 msgstr ""
5742
5743 # type: verbatim
5744 #: ../src/guestfs-actions.pod:934
5745 #, no-wrap
5746 msgid ""
5747 " char *\n"
5748 " guestfs_checksum_device (guestfs_h *g,\n"
5749 "                          const char *csumtype,\n"
5750 "                          const char *device);\n"
5751 "\n"
5752 msgstr ""
5753
5754 # type: textblock
5755 #: ../src/guestfs-actions.pod:939
5756 msgid ""
5757 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
5758 "device named C<device>.  For the types of checksums supported see the "
5759 "C<guestfs_checksum> command."
5760 msgstr ""
5761
5762 # type: textblock
5763 #: ../src/guestfs-actions.pod:946 ../src/guestfs-actions.pod:4491 ../src/guestfs-actions.pod:4550 ../src/guestfs-actions.pod:4587 ../src/guestfs-actions.pod:4605 ../src/guestfs-actions.pod:4781 ../src/guestfs-actions.pod:6292 ../src/guestfs-actions.pod:6306 ../src/guestfs-actions.pod:6702
5764 msgid "(Added in 1.3.2)"
5765 msgstr ""
5766
5767 # type: =head2
5768 #: ../src/guestfs-actions.pod:948
5769 msgid "guestfs_checksums_out"
5770 msgstr ""
5771
5772 # type: verbatim
5773 #: ../src/guestfs-actions.pod:950
5774 #, no-wrap
5775 msgid ""
5776 " int\n"
5777 " guestfs_checksums_out (guestfs_h *g,\n"
5778 "                        const char *csumtype,\n"
5779 "                        const char *directory,\n"
5780 "                        const char *sumsfile);\n"
5781 "\n"
5782 msgstr ""
5783
5784 # type: textblock
5785 #: ../src/guestfs-actions.pod:956 ../fish/guestfish-actions.pod:646
5786 msgid ""
5787 "This command computes the checksums of all regular files in C<directory> and "
5788 "then emits a list of those checksums to the local output file C<sumsfile>."
5789 msgstr ""
5790
5791 # type: textblock
5792 #: ../src/guestfs-actions.pod:960 ../fish/guestfish-actions.pod:650
5793 msgid ""
5794 "This can be used for verifying the integrity of a virtual machine.  However "
5795 "to be properly secure you should pay attention to the output of the checksum "
5796 "command (it uses the ones from GNU coreutils).  In particular when the "
5797 "filename is not printable, coreutils uses a special backslash syntax.  For "
5798 "more information, see the GNU coreutils info file."
5799 msgstr ""
5800
5801 # type: textblock
5802 #: ../src/guestfs-actions.pod:970
5803 msgid "(Added in 1.3.7)"
5804 msgstr ""
5805
5806 # type: =head2
5807 #: ../src/guestfs-actions.pod:972
5808 msgid "guestfs_chmod"
5809 msgstr ""
5810
5811 # type: verbatim
5812 #: ../src/guestfs-actions.pod:974
5813 #, no-wrap
5814 msgid ""
5815 " int\n"
5816 " guestfs_chmod (guestfs_h *g,\n"
5817 "                int mode,\n"
5818 "                const char *path);\n"
5819 "\n"
5820 msgstr ""
5821
5822 # type: textblock
5823 #: ../src/guestfs-actions.pod:979 ../fish/guestfish-actions.pod:664
5824 msgid ""
5825 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
5826 "supported."
5827 msgstr ""
5828
5829 # type: textblock
5830 #: ../src/guestfs-actions.pod:982 ../fish/guestfish-actions.pod:667
5831 msgid ""
5832 "I<Note>: When using this command from guestfish, C<mode> by default would be "
5833 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
5834 "C<700>."
5835 msgstr ""
5836
5837 # type: textblock
5838 #: ../src/guestfs-actions.pod:986 ../src/guestfs-actions.pod:4075 ../src/guestfs-actions.pod:4190 ../src/guestfs-actions.pod:4209 ../src/guestfs-actions.pod:4228 ../fish/guestfish-actions.pod:671 ../fish/guestfish-actions.pod:2753 ../fish/guestfish-actions.pod:2838 ../fish/guestfish-actions.pod:2848 ../fish/guestfish-actions.pod:2858
5839 msgid "The mode actually set is affected by the umask."
5840 msgstr ""
5841
5842 # type: =head2
5843 #: ../src/guestfs-actions.pod:992
5844 msgid "guestfs_chown"
5845 msgstr ""
5846
5847 # type: verbatim
5848 #: ../src/guestfs-actions.pod:994
5849 #, no-wrap
5850 msgid ""
5851 " int\n"
5852 " guestfs_chown (guestfs_h *g,\n"
5853 "                int owner,\n"
5854 "                int group,\n"
5855 "                const char *path);\n"
5856 "\n"
5857 msgstr ""
5858
5859 # type: textblock
5860 #: ../src/guestfs-actions.pod:1000 ../fish/guestfish-actions.pod:677
5861 msgid "Change the file owner to C<owner> and group to C<group>."
5862 msgstr ""
5863
5864 # type: textblock
5865 #: ../src/guestfs-actions.pod:1002 ../src/guestfs-actions.pod:3213 ../fish/guestfish-actions.pod:679 ../fish/guestfish-actions.pod:2231
5866 msgid ""
5867 "Only numeric uid and gid are supported.  If you want to use names, you will "
5868 "need to locate and parse the password file yourself (Augeas support makes "
5869 "this relatively easy)."
5870 msgstr ""
5871
5872 # type: =head2
5873 #: ../src/guestfs-actions.pod:1010
5874 msgid "guestfs_command"
5875 msgstr ""
5876
5877 # type: verbatim
5878 #: ../src/guestfs-actions.pod:1012
5879 #, no-wrap
5880 msgid ""
5881 " char *\n"
5882 " guestfs_command (guestfs_h *g,\n"
5883 "                  char *const *arguments);\n"
5884 "\n"
5885 msgstr ""
5886
5887 # type: textblock
5888 #: ../src/guestfs-actions.pod:1016 ../fish/guestfish-actions.pod:687
5889 msgid ""
5890 "This call runs a command from the guest filesystem.  The filesystem must be "
5891 "mounted, and must contain a compatible operating system (ie. something "
5892 "Linux, with the same or compatible processor architecture)."
5893 msgstr ""
5894
5895 # type: textblock
5896 #: ../src/guestfs-actions.pod:1021
5897 msgid ""
5898 "The single parameter is an argv-style list of arguments.  The first element "
5899 "is the name of the program to run.  Subsequent elements are parameters.  The "
5900 "list must be non-empty (ie. must contain a program name).  Note that the "
5901 "command runs directly, and is I<not> invoked via the shell (see "
5902 "C<guestfs_sh>)."
5903 msgstr ""
5904
5905 # type: textblock
5906 #: ../src/guestfs-actions.pod:1028 ../fish/guestfish-actions.pod:699
5907 msgid "The return value is anything printed to I<stdout> by the command."
5908 msgstr ""
5909
5910 # type: textblock
5911 #: ../src/guestfs-actions.pod:1031 ../fish/guestfish-actions.pod:702
5912 msgid ""
5913 "If the command returns a non-zero exit status, then this function returns an "
5914 "error message.  The error message string is the content of I<stderr> from "
5915 "the command."
5916 msgstr ""
5917
5918 # type: textblock
5919 #: ../src/guestfs-actions.pod:1035 ../fish/guestfish-actions.pod:706
5920 msgid ""
5921 "The C<$PATH> environment variable will contain at least C</usr/bin> and "
5922 "C</bin>.  If you require a program from another location, you should provide "
5923 "the full path in the first parameter."
5924 msgstr ""
5925
5926 # type: textblock
5927 #: ../src/guestfs-actions.pod:1040 ../fish/guestfish-actions.pod:711
5928 msgid ""
5929 "Shared libraries and data files required by the program must be available on "
5930 "filesystems which are mounted in the correct places.  It is the caller's "
5931 "responsibility to ensure all filesystems that are needed are mounted at the "
5932 "right locations."
5933 msgstr ""
5934
5935 # type: textblock
5936 #: ../src/guestfs-actions.pod:1052 ../src/guestfs-actions.pod:1072 ../src/guestfs-actions.pod:1535
5937 msgid "(Added in 0.9.1)"
5938 msgstr ""
5939
5940 # type: =head2
5941 #: ../src/guestfs-actions.pod:1054
5942 msgid "guestfs_command_lines"
5943 msgstr ""
5944
5945 # type: verbatim
5946 #: ../src/guestfs-actions.pod:1056
5947 #, no-wrap
5948 msgid ""
5949 " char **\n"
5950 " guestfs_command_lines (guestfs_h *g,\n"
5951 "                        char *const *arguments);\n"
5952 "\n"
5953 msgstr ""
5954
5955 # type: textblock
5956 #: ../src/guestfs-actions.pod:1060
5957 msgid ""
5958 "This is the same as C<guestfs_command>, but splits the result into a list of "
5959 "lines."
5960 msgstr ""
5961
5962 # type: textblock
5963 #: ../src/guestfs-actions.pod:1063
5964 msgid "See also: C<guestfs_sh_lines>"
5965 msgstr ""
5966
5967 # type: =head2
5968 #: ../src/guestfs-actions.pod:1074
5969 msgid "guestfs_config"
5970 msgstr ""
5971
5972 # type: verbatim
5973 #: ../src/guestfs-actions.pod:1076
5974 #, no-wrap
5975 msgid ""
5976 " int\n"
5977 " guestfs_config (guestfs_h *g,\n"
5978 "                 const char *qemuparam,\n"
5979 "                 const char *qemuvalue);\n"
5980 "\n"
5981 msgstr ""
5982
5983 # type: textblock
5984 #: ../src/guestfs-actions.pod:1081 ../fish/guestfish-actions.pod:736
5985 msgid ""
5986 "This can be used to add arbitrary qemu command line parameters of the form "
5987 "C<-param value>.  Actually it's not quite arbitrary - we prevent you from "
5988 "setting some parameters which would interfere with parameters that we use."
5989 msgstr ""
5990
5991 # type: textblock
5992 #: ../src/guestfs-actions.pod:1086 ../fish/guestfish-actions.pod:741
5993 msgid "The first character of C<param> string must be a C<-> (dash)."
5994 msgstr ""
5995
5996 # type: textblock
5997 #: ../src/guestfs-actions.pod:1088 ../fish/guestfish-actions.pod:743
5998 msgid "C<value> can be NULL."
5999 msgstr ""
6000
6001 # type: =head2
6002 #: ../src/guestfs-actions.pod:1094
6003 msgid "guestfs_copy_size"
6004 msgstr ""
6005
6006 # type: verbatim
6007 #: ../src/guestfs-actions.pod:1096
6008 #, no-wrap
6009 msgid ""
6010 " int\n"
6011 " guestfs_copy_size (guestfs_h *g,\n"
6012 "                    const char *src,\n"
6013 "                    const char *dest,\n"
6014 "                    int64_t size);\n"
6015 "\n"
6016 msgstr ""
6017
6018 # type: textblock
6019 #: ../src/guestfs-actions.pod:1102 ../fish/guestfish-actions.pod:749
6020 msgid ""
6021 "This command copies exactly C<size> bytes from one source device or file "
6022 "C<src> to another destination device or file C<dest>."
6023 msgstr ""
6024
6025 # type: textblock
6026 #: ../src/guestfs-actions.pod:1105 ../fish/guestfish-actions.pod:752
6027 msgid ""
6028 "Note this will fail if the source is too short or if the destination is not "
6029 "large enough."
6030 msgstr ""
6031
6032 # type: textblock
6033 #: ../src/guestfs-actions.pod:1110 ../src/guestfs-actions.pod:1233 ../src/guestfs-actions.pod:1264 ../src/guestfs-actions.pod:1684 ../src/guestfs-actions.pod:1706 ../src/guestfs-actions.pod:6881 ../src/guestfs-actions.pod:6900
6034 msgid ""
6035 "This long-running command can generate progress notification messages so "
6036 "that the caller can display a progress bar or indicator.  To receive these "
6037 "messages, the caller must register a progress callback.  See "
6038 "L<guestfs(3)/guestfs_set_progress_callback>."
6039 msgstr ""
6040
6041 # type: textblock
6042 #: ../src/guestfs-actions.pod:1115 ../src/guestfs-actions.pod:3851 ../src/guestfs-actions.pod:4987 ../src/guestfs-actions.pod:6609 ../src/guestfs-actions.pod:6629 ../src/guestfs-actions.pod:6715
6043 msgid "(Added in 1.0.87)"
6044 msgstr ""
6045
6046 # type: =head2
6047 #: ../src/guestfs-actions.pod:1117
6048 msgid "guestfs_cp"
6049 msgstr ""
6050
6051 # type: verbatim
6052 #: ../src/guestfs-actions.pod:1119
6053 #, no-wrap
6054 msgid ""
6055 " int\n"
6056 " guestfs_cp (guestfs_h *g,\n"
6057 "             const char *src,\n"
6058 "             const char *dest);\n"
6059 "\n"
6060 msgstr ""
6061
6062 # type: textblock
6063 #: ../src/guestfs-actions.pod:1124 ../fish/guestfish-actions.pod:759
6064 msgid ""
6065 "This copies a file from C<src> to C<dest> where C<dest> is either a "
6066 "destination filename or destination directory."
6067 msgstr ""
6068
6069 # type: textblock
6070 #: ../src/guestfs-actions.pod:1129 ../src/guestfs-actions.pod:1143 ../src/guestfs-actions.pod:1215 ../src/guestfs-actions.pod:1289 ../src/guestfs-actions.pod:1398 ../src/guestfs-actions.pod:4454 ../src/guestfs-actions.pod:4831
6071 msgid "(Added in 1.0.18)"
6072 msgstr ""
6073
6074 # type: =head2
6075 #: ../src/guestfs-actions.pod:1131
6076 msgid "guestfs_cp_a"
6077 msgstr ""
6078
6079 # type: verbatim
6080 #: ../src/guestfs-actions.pod:1133
6081 #, no-wrap
6082 msgid ""
6083 " int\n"
6084 " guestfs_cp_a (guestfs_h *g,\n"
6085 "               const char *src,\n"
6086 "               const char *dest);\n"
6087 "\n"
6088 msgstr ""
6089
6090 # type: textblock
6091 #: ../src/guestfs-actions.pod:1138 ../fish/guestfish-actions.pod:766
6092 msgid ""
6093 "This copies a file or directory from C<src> to C<dest> recursively using the "
6094 "C<cp -a> command."
6095 msgstr ""
6096
6097 # type: =head2
6098 #: ../src/guestfs-actions.pod:1145
6099 msgid "guestfs_dd"
6100 msgstr ""
6101
6102 # type: verbatim
6103 #: ../src/guestfs-actions.pod:1147
6104 #, no-wrap
6105 msgid ""
6106 " int\n"
6107 " guestfs_dd (guestfs_h *g,\n"
6108 "             const char *src,\n"
6109 "             const char *dest);\n"
6110 "\n"
6111 msgstr ""
6112
6113 # type: textblock
6114 #: ../src/guestfs-actions.pod:1152 ../fish/guestfish-actions.pod:773
6115 msgid ""
6116 "This command copies from one source device or file C<src> to another "
6117 "destination device or file C<dest>.  Normally you would use this to copy to "
6118 "or from a device or partition, for example to duplicate a filesystem."
6119 msgstr ""
6120
6121 # type: textblock
6122 #: ../src/guestfs-actions.pod:1157
6123 msgid ""
6124 "If the destination is a device, it must be as large or larger than the "
6125 "source file or device, otherwise the copy will fail.  This command cannot do "
6126 "partial copies (see C<guestfs_copy_size>)."
6127 msgstr ""
6128
6129 # type: =head2
6130 #: ../src/guestfs-actions.pod:1165
6131 msgid "guestfs_df"
6132 msgstr ""
6133
6134 # type: verbatim
6135 #: ../src/guestfs-actions.pod:1167
6136 #, no-wrap
6137 msgid ""
6138 " char *\n"
6139 " guestfs_df (guestfs_h *g);\n"
6140 "\n"
6141 msgstr ""
6142
6143 # type: textblock
6144 #: ../src/guestfs-actions.pod:1170 ../fish/guestfish-actions.pod:786
6145 msgid "This command runs the C<df> command to report disk space used."
6146 msgstr ""
6147
6148 # type: textblock
6149 #: ../src/guestfs-actions.pod:1172 ../src/guestfs-actions.pod:1189 ../fish/guestfish-actions.pod:788 ../fish/guestfish-actions.pod:799
6150 msgid ""
6151 "This command is mostly useful for interactive sessions.  It is I<not> "
6152 "intended that you try to parse the output string.  Use C<statvfs> from "
6153 "programs."
6154 msgstr ""
6155
6156 # type: textblock
6157 #: ../src/guestfs-actions.pod:1179 ../src/guestfs-actions.pod:1196 ../src/guestfs-actions.pod:1309 ../src/guestfs-actions.pod:2233 ../src/guestfs-actions.pod:2257 ../src/guestfs-actions.pod:2325 ../src/guestfs-actions.pod:3961 ../src/guestfs-actions.pod:4354 ../src/guestfs-actions.pod:6116 ../src/guestfs-actions.pod:6140 ../src/guestfs-actions.pod:6748 ../src/guestfs-actions.pod:6761 ../src/guestfs-actions.pod:6774
6158 msgid "(Added in 1.0.54)"
6159 msgstr ""
6160
6161 # type: =head2
6162 #: ../src/guestfs-actions.pod:1181
6163 msgid "guestfs_df_h"
6164 msgstr ""
6165
6166 # type: verbatim
6167 #: ../src/guestfs-actions.pod:1183
6168 #, no-wrap
6169 msgid ""
6170 " char *\n"
6171 " guestfs_df_h (guestfs_h *g);\n"
6172 "\n"
6173 msgstr ""
6174
6175 # type: textblock
6176 #: ../src/guestfs-actions.pod:1186 ../fish/guestfish-actions.pod:796
6177 msgid ""
6178 "This command runs the C<df -h> command to report disk space used in "
6179 "human-readable format."
6180 msgstr ""
6181
6182 # type: =head2
6183 #: ../src/guestfs-actions.pod:1198
6184 msgid "guestfs_dmesg"
6185 msgstr ""
6186
6187 # type: verbatim
6188 #: ../src/guestfs-actions.pod:1200
6189 #, no-wrap
6190 msgid ""
6191 " char *\n"
6192 " guestfs_dmesg (guestfs_h *g);\n"
6193 "\n"
6194 msgstr ""
6195
6196 # type: textblock
6197 #: ../src/guestfs-actions.pod:1203 ../fish/guestfish-actions.pod:807
6198 msgid ""
6199 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
6200 "This is sometimes useful for extended debugging of problems."
6201 msgstr ""
6202
6203 # type: textblock
6204 #: ../src/guestfs-actions.pod:1207
6205 msgid ""
6206 "Another way to get the same information is to enable verbose messages with "
6207 "C<guestfs_set_verbose> or by setting the environment variable "
6208 "C<LIBGUESTFS_DEBUG=1> before running the program."
6209 msgstr ""
6210
6211 # type: =head2
6212 #: ../src/guestfs-actions.pod:1217
6213 msgid "guestfs_download"
6214 msgstr ""
6215
6216 # type: verbatim
6217 #: ../src/guestfs-actions.pod:1219
6218 #, no-wrap
6219 msgid ""
6220 " int\n"
6221 " guestfs_download (guestfs_h *g,\n"
6222 "                   const char *remotefilename,\n"
6223 "                   const char *filename);\n"
6224 "\n"
6225 msgstr ""
6226
6227 # type: textblock
6228 #: ../src/guestfs-actions.pod:1224 ../src/guestfs-actions.pod:1249 ../fish/guestfish-actions.pod:820 ../fish/guestfish-actions.pod:833
6229 msgid ""
6230 "Download file C<remotefilename> and save it as C<filename> on the local "
6231 "machine."
6232 msgstr ""
6233
6234 # type: textblock
6235 #: ../src/guestfs-actions.pod:1227 ../src/guestfs-actions.pod:6372 ../fish/guestfish-actions.pod:823 ../fish/guestfish-actions.pod:4273
6236 msgid "C<filename> can also be a named pipe."
6237 msgstr ""
6238
6239 # type: textblock
6240 #: ../src/guestfs-actions.pod:1229
6241 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
6242 msgstr ""
6243
6244 # type: =head2
6245 #: ../src/guestfs-actions.pod:1240
6246 msgid "guestfs_download_offset"
6247 msgstr ""
6248
6249 # type: verbatim
6250 #: ../src/guestfs-actions.pod:1242
6251 #, no-wrap
6252 msgid ""
6253 " int\n"
6254 " guestfs_download_offset (guestfs_h *g,\n"
6255 "                          const char *remotefilename,\n"
6256 "                          const char *filename,\n"
6257 "                          int64_t offset,\n"
6258 "                          int64_t size);\n"
6259 "\n"
6260 msgstr ""
6261
6262 # type: textblock
6263 #: ../src/guestfs-actions.pod:1252 ../fish/guestfish-actions.pod:836
6264 msgid ""
6265 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
6266 "region must be within the file or device)."
6267 msgstr ""
6268
6269 # type: textblock
6270 #: ../src/guestfs-actions.pod:1255
6271 msgid ""
6272 "Note that there is no limit on the amount of data that can be downloaded "
6273 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
6274 "full amount unless an error occurs."
6275 msgstr ""
6276
6277 # type: textblock
6278 #: ../src/guestfs-actions.pod:1260
6279 msgid "See also C<guestfs_download>, C<guestfs_pread>."
6280 msgstr ""
6281
6282 # type: textblock
6283 #: ../src/guestfs-actions.pod:1269 ../src/guestfs-actions.pod:6407
6284 msgid "(Added in 1.5.17)"
6285 msgstr ""
6286
6287 # type: =head2
6288 #: ../src/guestfs-actions.pod:1271
6289 msgid "guestfs_drop_caches"
6290 msgstr ""
6291
6292 # type: verbatim
6293 #: ../src/guestfs-actions.pod:1273
6294 #, no-wrap
6295 msgid ""
6296 " int\n"
6297 " guestfs_drop_caches (guestfs_h *g,\n"
6298 "                      int whattodrop);\n"
6299 "\n"
6300 msgstr ""
6301
6302 # type: textblock
6303 #: ../src/guestfs-actions.pod:1277 ../fish/guestfish-actions.pod:852
6304 msgid ""
6305 "This instructs the guest kernel to drop its page cache, and/or dentries and "
6306 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
6307 "to drop, see L<http://linux-mm.org/Drop_Caches>"
6308 msgstr ""
6309
6310 # type: textblock
6311 #: ../src/guestfs-actions.pod:1282 ../fish/guestfish-actions.pod:857
6312 msgid "Setting C<whattodrop> to 3 should drop everything."
6313 msgstr ""
6314
6315 # type: textblock
6316 #: ../src/guestfs-actions.pod:1284 ../fish/guestfish-actions.pod:859
6317 msgid ""
6318 "This automatically calls L<sync(2)> before the operation, so that the "
6319 "maximum guest memory is freed."
6320 msgstr ""
6321
6322 # type: =head2
6323 #: ../src/guestfs-actions.pod:1291
6324 msgid "guestfs_du"
6325 msgstr ""
6326
6327 # type: verbatim
6328 #: ../src/guestfs-actions.pod:1293
6329 #, no-wrap
6330 msgid ""
6331 " int64_t\n"
6332 " guestfs_du (guestfs_h *g,\n"
6333 "             const char *path);\n"
6334 "\n"
6335 msgstr ""
6336
6337 # type: textblock
6338 #: ../src/guestfs-actions.pod:1297 ../fish/guestfish-actions.pod:866
6339 msgid ""
6340 "This command runs the C<du -s> command to estimate file space usage for "
6341 "C<path>."
6342 msgstr ""
6343
6344 # type: textblock
6345 #: ../src/guestfs-actions.pod:1300 ../fish/guestfish-actions.pod:869
6346 msgid ""
6347 "C<path> can be a file or a directory.  If C<path> is a directory then the "
6348 "estimate includes the contents of the directory and all subdirectories "
6349 "(recursively)."
6350 msgstr ""
6351
6352 # type: textblock
6353 #: ../src/guestfs-actions.pod:1304 ../fish/guestfish-actions.pod:873
6354 msgid "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
6355 msgstr ""
6356
6357 # type: =head2
6358 #: ../src/guestfs-actions.pod:1311
6359 msgid "guestfs_e2fsck_f"
6360 msgstr ""
6361
6362 # type: verbatim
6363 #: ../src/guestfs-actions.pod:1313
6364 #, no-wrap
6365 msgid ""
6366 " int\n"
6367 " guestfs_e2fsck_f (guestfs_h *g,\n"
6368 "                   const char *device);\n"
6369 "\n"
6370 msgstr ""
6371
6372 # type: textblock
6373 #: ../src/guestfs-actions.pod:1317 ../fish/guestfish-actions.pod:880
6374 msgid ""
6375 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
6376 "on C<device>, noninteractively (C<-p>), even if the filesystem appears to be "
6377 "clean (C<-f>)."
6378 msgstr ""
6379
6380 # type: textblock
6381 #: ../src/guestfs-actions.pod:1321
6382 msgid ""
6383 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
6384 "Normally you should use C<guestfs_fsck>."
6385 msgstr ""
6386
6387 # type: textblock
6388 #: ../src/guestfs-actions.pod:1326
6389 msgid "(Added in 1.0.29)"
6390 msgstr ""
6391
6392 # type: =head2
6393 #: ../src/guestfs-actions.pod:1328
6394 msgid "guestfs_echo_daemon"
6395 msgstr ""
6396
6397 # type: verbatim
6398 #: ../src/guestfs-actions.pod:1330
6399 #, no-wrap
6400 msgid ""
6401 " char *\n"
6402 " guestfs_echo_daemon (guestfs_h *g,\n"
6403 "                      char *const *words);\n"
6404 "\n"
6405 msgstr ""
6406
6407 # type: textblock
6408 #: ../src/guestfs-actions.pod:1334 ../fish/guestfish-actions.pod:891
6409 msgid ""
6410 "This command concatenates the list of C<words> passed with single spaces "
6411 "between them and returns the resulting string."
6412 msgstr ""
6413
6414 # type: textblock
6415 #: ../src/guestfs-actions.pod:1337 ../fish/guestfish-actions.pod:894
6416 msgid "You can use this command to test the connection through to the daemon."
6417 msgstr ""
6418
6419 # type: textblock
6420 #: ../src/guestfs-actions.pod:1339
6421 msgid "See also C<guestfs_ping_daemon>."
6422 msgstr ""
6423
6424 # type: textblock
6425 #: ../src/guestfs-actions.pod:1344 ../src/guestfs-actions.pod:2071 ../src/guestfs-actions.pod:5620
6426 msgid "(Added in 1.0.69)"
6427 msgstr ""
6428
6429 # type: =head2
6430 #: ../src/guestfs-actions.pod:1346
6431 msgid "guestfs_egrep"
6432 msgstr ""
6433
6434 # type: verbatim
6435 #: ../src/guestfs-actions.pod:1348
6436 #, no-wrap
6437 msgid ""
6438 " char **\n"
6439 " guestfs_egrep (guestfs_h *g,\n"
6440 "                const char *regex,\n"
6441 "                const char *path);\n"
6442 "\n"
6443 msgstr ""
6444
6445 # type: textblock
6446 #: ../src/guestfs-actions.pod:1353 ../fish/guestfish-actions.pod:902
6447 msgid "This calls the external C<egrep> program and returns the matching lines."
6448 msgstr ""
6449
6450 # type: textblock
6451 #: ../src/guestfs-actions.pod:1363 ../src/guestfs-actions.pod:1382 ../src/guestfs-actions.pod:1439 ../src/guestfs-actions.pod:1485 ../src/guestfs-actions.pod:1504 ../src/guestfs-actions.pod:2171 ../src/guestfs-actions.pod:2190 ../src/guestfs-actions.pod:2346 ../src/guestfs-actions.pod:2359 ../src/guestfs-actions.pod:2374 ../src/guestfs-actions.pod:2420 ../src/guestfs-actions.pod:2442 ../src/guestfs-actions.pod:2455 ../src/guestfs-actions.pod:3344 ../src/guestfs-actions.pod:3358 ../src/guestfs-actions.pod:3371 ../src/guestfs-actions.pod:3385 ../src/guestfs-actions.pod:4289 ../src/guestfs-actions.pod:5165 ../src/guestfs-actions.pod:5214 ../src/guestfs-actions.pod:5984 ../src/guestfs-actions.pod:5996 ../src/guestfs-actions.pod:6009 ../src/guestfs-actions.pod:6022 ../src/guestfs-actions.pod:6044 ../src/guestfs-actions.pod:6057 ../src/guestfs-actions.pod:6070 ../src/guestfs-actions.pod:6083 ../src/guestfs-actions.pod:6844 ../src/guestfs-actions.pod:6863 ../src/guestfs-actions.pod:6948 ../src/guestfs-actions.pod:6967 ../src/guestfs-actions.pod:7013 ../src/guestfs-actions.pod:7032
6452 msgid "(Added in 1.0.66)"
6453 msgstr ""
6454
6455 # type: =head2
6456 #: ../src/guestfs-actions.pod:1365
6457 msgid "guestfs_egrepi"
6458 msgstr ""
6459
6460 # type: verbatim
6461 #: ../src/guestfs-actions.pod:1367
6462 #, no-wrap
6463 msgid ""
6464 " char **\n"
6465 " guestfs_egrepi (guestfs_h *g,\n"
6466 "                 const char *regex,\n"
6467 "                 const char *path);\n"
6468 "\n"
6469 msgstr ""
6470
6471 # type: textblock
6472 #: ../src/guestfs-actions.pod:1372 ../fish/guestfish-actions.pod:912
6473 msgid "This calls the external C<egrep -i> program and returns the matching lines."
6474 msgstr ""
6475
6476 # type: =head2
6477 #: ../src/guestfs-actions.pod:1384
6478 msgid "guestfs_equal"
6479 msgstr ""
6480
6481 # type: verbatim
6482 #: ../src/guestfs-actions.pod:1386
6483 #, no-wrap
6484 msgid ""
6485 " int\n"
6486 " guestfs_equal (guestfs_h *g,\n"
6487 "                const char *file1,\n"
6488 "                const char *file2);\n"
6489 "\n"
6490 msgstr ""
6491
6492 # type: textblock
6493 #: ../src/guestfs-actions.pod:1391 ../fish/guestfish-actions.pod:922
6494 msgid ""
6495 "This compares the two files C<file1> and C<file2> and returns true if their "
6496 "content is exactly equal, or false otherwise."
6497 msgstr ""
6498
6499 # type: textblock
6500 #: ../src/guestfs-actions.pod:1394 ../fish/guestfish-actions.pod:925
6501 msgid "The external L<cmp(1)> program is used for the comparison."
6502 msgstr ""
6503
6504 # type: =head2
6505 #: ../src/guestfs-actions.pod:1400
6506 msgid "guestfs_exists"
6507 msgstr ""
6508
6509 # type: verbatim
6510 #: ../src/guestfs-actions.pod:1402
6511 #, no-wrap
6512 msgid ""
6513 " int\n"
6514 " guestfs_exists (guestfs_h *g,\n"
6515 "                 const char *path);\n"
6516 "\n"
6517 msgstr ""
6518
6519 # type: textblock
6520 #: ../src/guestfs-actions.pod:1406 ../fish/guestfish-actions.pod:931
6521 msgid ""
6522 "This returns C<true> if and only if there is a file, directory (or anything) "
6523 "with the given C<path> name."
6524 msgstr ""
6525
6526 # type: textblock
6527 #: ../src/guestfs-actions.pod:1409
6528 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
6529 msgstr ""
6530
6531 # type: =head2
6532 #: ../src/guestfs-actions.pod:1415
6533 msgid "guestfs_fallocate"
6534 msgstr ""
6535
6536 # type: verbatim
6537 #: ../src/guestfs-actions.pod:1417
6538 #, no-wrap
6539 msgid ""
6540 " int\n"
6541 " guestfs_fallocate (guestfs_h *g,\n"
6542 "                    const char *path,\n"
6543 "                    int len);\n"
6544 "\n"
6545 msgstr ""
6546
6547 # type: textblock
6548 #: ../src/guestfs-actions.pod:1422 ../src/guestfs-actions.pod:1448 ../fish/guestfish-actions.pod:940 ../fish/guestfish-actions.pod:959
6549 msgid ""
6550 "This command preallocates a file (containing zero bytes) named C<path> of "
6551 "size C<len> bytes.  If the file exists already, it is overwritten."
6552 msgstr ""
6553
6554 # type: textblock
6555 #: ../src/guestfs-actions.pod:1426 ../fish/guestfish-actions.pod:944
6556 msgid ""
6557 "Do not confuse this with the guestfish-specific C<alloc> command which "
6558 "allocates a file in the host and attaches it as a device."
6559 msgstr ""
6560
6561 # type: textblock
6562 #: ../src/guestfs-actions.pod:1432 ../fish/guestfish-actions.pod:948
6563 msgid ""
6564 "This function is deprecated.  In new code, use the C<fallocate64> call "
6565 "instead."
6566 msgstr ""
6567
6568 # type: =head2
6569 #: ../src/guestfs-actions.pod:1441
6570 msgid "guestfs_fallocate64"
6571 msgstr ""
6572
6573 # type: verbatim
6574 #: ../src/guestfs-actions.pod:1443
6575 #, no-wrap
6576 msgid ""
6577 " int\n"
6578 " guestfs_fallocate64 (guestfs_h *g,\n"
6579 "                      const char *path,\n"
6580 "                      int64_t len);\n"
6581 "\n"
6582 msgstr ""
6583
6584 # type: textblock
6585 #: ../src/guestfs-actions.pod:1452
6586 msgid ""
6587 "Note that this call allocates disk blocks for the file.  To create a sparse "
6588 "file use C<guestfs_truncate_size> instead."
6589 msgstr ""
6590
6591 # type: textblock
6592 #: ../src/guestfs-actions.pod:1455
6593 msgid ""
6594 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
6595 "oversight it only allowed 30 bit lengths to be specified, effectively "
6596 "limiting the maximum size of files created through that call to 1GB."
6597 msgstr ""
6598
6599 # type: textblock
6600 #: ../src/guestfs-actions.pod:1460 ../fish/guestfish-actions.pod:971
6601 msgid ""
6602 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
6603 "commands which create a file in the host and attach it as a device."
6604 msgstr ""
6605
6606 # type: textblock
6607 #: ../src/guestfs-actions.pod:1466
6608 msgid "(Added in 1.3.17)"
6609 msgstr ""
6610
6611 # type: =head2
6612 #: ../src/guestfs-actions.pod:1468
6613 msgid "guestfs_fgrep"
6614 msgstr ""
6615
6616 # type: verbatim
6617 #: ../src/guestfs-actions.pod:1470
6618 #, no-wrap
6619 msgid ""
6620 " char **\n"
6621 " guestfs_fgrep (guestfs_h *g,\n"
6622 "                const char *pattern,\n"
6623 "                const char *path);\n"
6624 "\n"
6625 msgstr ""
6626
6627 # type: textblock
6628 #: ../src/guestfs-actions.pod:1475 ../fish/guestfish-actions.pod:979
6629 msgid "This calls the external C<fgrep> program and returns the matching lines."
6630 msgstr ""
6631
6632 # type: =head2
6633 #: ../src/guestfs-actions.pod:1487
6634 msgid "guestfs_fgrepi"
6635 msgstr ""
6636
6637 # type: verbatim
6638 #: ../src/guestfs-actions.pod:1489
6639 #, no-wrap
6640 msgid ""
6641 " char **\n"
6642 " guestfs_fgrepi (guestfs_h *g,\n"
6643 "                 const char *pattern,\n"
6644 "                 const char *path);\n"
6645 "\n"
6646 msgstr ""
6647
6648 # type: textblock
6649 #: ../src/guestfs-actions.pod:1494 ../fish/guestfish-actions.pod:989
6650 msgid "This calls the external C<fgrep -i> program and returns the matching lines."
6651 msgstr ""
6652
6653 # type: =head2
6654 #: ../src/guestfs-actions.pod:1506
6655 msgid "guestfs_file"
6656 msgstr ""
6657
6658 # type: verbatim
6659 #: ../src/guestfs-actions.pod:1508
6660 #, no-wrap
6661 msgid ""
6662 " char *\n"
6663 " guestfs_file (guestfs_h *g,\n"
6664 "               const char *path);\n"
6665 "\n"
6666 msgstr ""
6667
6668 # type: textblock
6669 #: ../src/guestfs-actions.pod:1512 ../fish/guestfish-actions.pod:999
6670 msgid ""
6671 "This call uses the standard L<file(1)> command to determine the type or "
6672 "contents of the file."
6673 msgstr ""
6674
6675 # type: textblock
6676 #: ../src/guestfs-actions.pod:1515 ../fish/guestfish-actions.pod:1002
6677 msgid ""
6678 "This call will also transparently look inside various types of compressed "
6679 "file."
6680 msgstr ""
6681
6682 # type: textblock
6683 #: ../src/guestfs-actions.pod:1518 ../fish/guestfish-actions.pod:1005
6684 msgid ""
6685 "The exact command which runs is C<file -zb path>.  Note in particular that "
6686 "the filename is not prepended to the output (the C<-b> option)."
6687 msgstr ""
6688
6689 # type: textblock
6690 #: ../src/guestfs-actions.pod:1522
6691 msgid ""
6692 "This command can also be used on C</dev/> devices (and partitions, LV "
6693 "names).  You can for example use this to determine if a device contains a "
6694 "filesystem, although it's usually better to use C<guestfs_vfs_type>."
6695 msgstr ""
6696
6697 # type: textblock
6698 #: ../src/guestfs-actions.pod:1527 ../fish/guestfish-actions.pod:1014
6699 msgid ""
6700 "If the C<path> does not begin with C</dev/> then this command only works for "
6701 "the content of regular files.  For other file types (directory, symbolic "
6702 "link etc) it will just return the string C<directory> etc."
6703 msgstr ""
6704
6705 # type: =head2
6706 #: ../src/guestfs-actions.pod:1537
6707 msgid "guestfs_file_architecture"
6708 msgstr ""
6709
6710 # type: verbatim
6711 #: ../src/guestfs-actions.pod:1539
6712 #, no-wrap
6713 msgid ""
6714 " char *\n"
6715 " guestfs_file_architecture (guestfs_h *g,\n"
6716 "                            const char *filename);\n"
6717 "\n"
6718 msgstr ""
6719
6720 # type: textblock
6721 #: ../src/guestfs-actions.pod:1543 ../fish/guestfish-actions.pod:1023
6722 msgid ""
6723 "This detects the architecture of the binary C<filename>, and returns it if "
6724 "known."
6725 msgstr ""
6726
6727 # type: textblock
6728 #: ../src/guestfs-actions.pod:1546 ../fish/guestfish-actions.pod:1026
6729 msgid "Currently defined architectures are:"
6730 msgstr ""
6731
6732 # type: =item
6733 #: ../src/guestfs-actions.pod:1550 ../fish/guestfish-actions.pod:1030
6734 msgid "\"i386\""
6735 msgstr ""
6736
6737 # type: textblock
6738 #: ../src/guestfs-actions.pod:1552 ../fish/guestfish-actions.pod:1032
6739 msgid ""
6740 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
6741 "irrespective of the precise processor requirements of the binary."
6742 msgstr ""
6743
6744 # type: =item
6745 #: ../src/guestfs-actions.pod:1555 ../fish/guestfish-actions.pod:1035
6746 msgid "\"x86_64\""
6747 msgstr ""
6748
6749 # type: textblock
6750 #: ../src/guestfs-actions.pod:1557 ../fish/guestfish-actions.pod:1037
6751 msgid "64 bit x86-64."
6752 msgstr ""
6753
6754 # type: =item
6755 #: ../src/guestfs-actions.pod:1559 ../fish/guestfish-actions.pod:1039
6756 msgid "\"sparc\""
6757 msgstr ""
6758
6759 # type: textblock
6760 #: ../src/guestfs-actions.pod:1561 ../fish/guestfish-actions.pod:1041
6761 msgid "32 bit SPARC."
6762 msgstr ""
6763
6764 # type: =item
6765 #: ../src/guestfs-actions.pod:1563 ../fish/guestfish-actions.pod:1043
6766 msgid "\"sparc64\""
6767 msgstr ""
6768
6769 # type: textblock
6770 #: ../src/guestfs-actions.pod:1565 ../fish/guestfish-actions.pod:1045
6771 msgid "64 bit SPARC V9 and above."
6772 msgstr ""
6773
6774 # type: =item
6775 #: ../src/guestfs-actions.pod:1567 ../fish/guestfish-actions.pod:1047
6776 msgid "\"ia64\""
6777 msgstr ""
6778
6779 # type: textblock
6780 #: ../src/guestfs-actions.pod:1569 ../fish/guestfish-actions.pod:1049
6781 msgid "Intel Itanium."
6782 msgstr ""
6783
6784 # type: =item
6785 #: ../src/guestfs-actions.pod:1571 ../fish/guestfish-actions.pod:1051
6786 msgid "\"ppc\""
6787 msgstr ""
6788
6789 # type: textblock
6790 #: ../src/guestfs-actions.pod:1573 ../fish/guestfish-actions.pod:1053
6791 msgid "32 bit Power PC."
6792 msgstr ""
6793
6794 # type: =item
6795 #: ../src/guestfs-actions.pod:1575 ../fish/guestfish-actions.pod:1055
6796 msgid "\"ppc64\""
6797 msgstr ""
6798
6799 # type: textblock
6800 #: ../src/guestfs-actions.pod:1577 ../fish/guestfish-actions.pod:1057
6801 msgid "64 bit Power PC."
6802 msgstr ""
6803
6804 # type: textblock
6805 #: ../src/guestfs-actions.pod:1581 ../fish/guestfish-actions.pod:1061
6806 msgid "Libguestfs may return other architecture strings in future."
6807 msgstr ""
6808
6809 # type: textblock
6810 #: ../src/guestfs-actions.pod:1583 ../fish/guestfish-actions.pod:1063
6811 msgid "The function works on at least the following types of files:"
6812 msgstr ""
6813
6814 # type: textblock
6815 #: ../src/guestfs-actions.pod:1589 ../fish/guestfish-actions.pod:1069
6816 msgid "many types of Un*x and Linux binary"
6817 msgstr ""
6818
6819 # type: textblock
6820 #: ../src/guestfs-actions.pod:1593 ../fish/guestfish-actions.pod:1073
6821 msgid "many types of Un*x and Linux shared library"
6822 msgstr ""
6823
6824 # type: textblock
6825 #: ../src/guestfs-actions.pod:1597 ../fish/guestfish-actions.pod:1077
6826 msgid "Windows Win32 and Win64 binaries"
6827 msgstr ""
6828
6829 # type: textblock
6830 #: ../src/guestfs-actions.pod:1601 ../fish/guestfish-actions.pod:1081
6831 msgid "Windows Win32 and Win64 DLLs"
6832 msgstr ""
6833
6834 # type: textblock
6835 #: ../src/guestfs-actions.pod:1603 ../fish/guestfish-actions.pod:1083
6836 msgid "Win32 binaries and DLLs return C<i386>."
6837 msgstr ""
6838
6839 # type: textblock
6840 #: ../src/guestfs-actions.pod:1605 ../fish/guestfish-actions.pod:1085
6841 msgid "Win64 binaries and DLLs return C<x86_64>."
6842 msgstr ""
6843
6844 # type: textblock
6845 #: ../src/guestfs-actions.pod:1609 ../fish/guestfish-actions.pod:1089
6846 msgid "Linux kernel modules"
6847 msgstr ""
6848
6849 # type: textblock
6850 #: ../src/guestfs-actions.pod:1613 ../fish/guestfish-actions.pod:1093
6851 msgid "Linux new-style initrd images"
6852 msgstr ""
6853
6854 # type: textblock
6855 #: ../src/guestfs-actions.pod:1617 ../fish/guestfish-actions.pod:1097
6856 msgid "some non-x86 Linux vmlinuz kernels"
6857 msgstr ""
6858
6859 # type: textblock
6860 #: ../src/guestfs-actions.pod:1621 ../fish/guestfish-actions.pod:1101
6861 msgid "What it can't do currently:"
6862 msgstr ""
6863
6864 # type: textblock
6865 #: ../src/guestfs-actions.pod:1627 ../fish/guestfish-actions.pod:1107
6866 msgid "static libraries (libfoo.a)"
6867 msgstr ""
6868
6869 # type: textblock
6870 #: ../src/guestfs-actions.pod:1631 ../fish/guestfish-actions.pod:1111
6871 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
6872 msgstr ""
6873
6874 # type: textblock
6875 #: ../src/guestfs-actions.pod:1635 ../fish/guestfish-actions.pod:1115
6876 msgid "x86 Linux vmlinuz kernels"
6877 msgstr ""
6878
6879 # type: textblock
6880 #: ../src/guestfs-actions.pod:1637 ../fish/guestfish-actions.pod:1117
6881 msgid ""
6882 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
6883 "compressed code, and are horribly hard to unpack.  If you want to find the "
6884 "architecture of a kernel, use the architecture of the associated initrd or "
6885 "kernel module(s) instead."
6886 msgstr ""
6887
6888 # type: textblock
6889 #: ../src/guestfs-actions.pod:1647 ../src/guestfs-actions.pod:1810 ../src/guestfs-actions.pod:1827 ../src/guestfs-actions.pod:2478 ../src/guestfs-actions.pod:2559 ../src/guestfs-actions.pod:2585 ../src/guestfs-actions.pod:2632 ../src/guestfs-actions.pod:2653 ../src/guestfs-actions.pod:2686 ../src/guestfs-actions.pod:2766 ../src/guestfs-actions.pod:2826 ../src/guestfs-actions.pod:2997 ../src/guestfs-actions.pod:3129
6890 msgid "(Added in 1.5.3)"
6891 msgstr ""
6892
6893 # type: =head2
6894 #: ../src/guestfs-actions.pod:1649
6895 msgid "guestfs_filesize"
6896 msgstr ""
6897
6898 # type: verbatim
6899 #: ../src/guestfs-actions.pod:1651
6900 #, no-wrap
6901 msgid ""
6902 " int64_t\n"
6903 " guestfs_filesize (guestfs_h *g,\n"
6904 "                   const char *file);\n"
6905 "\n"
6906 msgstr ""
6907
6908 # type: textblock
6909 #: ../src/guestfs-actions.pod:1655 ../fish/guestfish-actions.pod:1128
6910 msgid "This command returns the size of C<file> in bytes."
6911 msgstr ""
6912
6913 # type: textblock
6914 #: ../src/guestfs-actions.pod:1657
6915 msgid ""
6916 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
6917 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
6918 "devices, use C<guestfs_blockdev_getsize64>."
6919 msgstr ""
6920
6921 # type: textblock
6922 #: ../src/guestfs-actions.pod:1663
6923 msgid "(Added in 1.0.82)"
6924 msgstr ""
6925
6926 # type: =head2
6927 #: ../src/guestfs-actions.pod:1665
6928 msgid "guestfs_fill"
6929 msgstr ""
6930
6931 # type: verbatim
6932 #: ../src/guestfs-actions.pod:1667
6933 #, no-wrap
6934 msgid ""
6935 " int\n"
6936 " guestfs_fill (guestfs_h *g,\n"
6937 "               int c,\n"
6938 "               int len,\n"
6939 "               const char *path);\n"
6940 "\n"
6941 msgstr ""
6942
6943 # type: textblock
6944 #: ../src/guestfs-actions.pod:1673 ../fish/guestfish-actions.pod:1138
6945 msgid ""
6946 "This command creates a new file called C<path>.  The initial content of the "
6947 "file is C<len> octets of C<c>, where C<c> must be a number in the range "
6948 "C<[0..255]>."
6949 msgstr ""
6950
6951 # type: textblock
6952 #: ../src/guestfs-actions.pod:1677
6953 msgid ""
6954 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
6955 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
6956 "bytes use C<guestfs_fill_pattern>."
6957 msgstr ""
6958
6959 # type: textblock
6960 #: ../src/guestfs-actions.pod:1689
6961 msgid "(Added in 1.0.79)"
6962 msgstr ""
6963
6964 # type: =head2
6965 #: ../src/guestfs-actions.pod:1691
6966 msgid "guestfs_fill_pattern"
6967 msgstr ""
6968
6969 # type: verbatim
6970 #: ../src/guestfs-actions.pod:1693
6971 #, no-wrap
6972 msgid ""
6973 " int\n"
6974 " guestfs_fill_pattern (guestfs_h *g,\n"
6975 "                       const char *pattern,\n"
6976 "                       int len,\n"
6977 "                       const char *path);\n"
6978 "\n"
6979 msgstr ""
6980
6981 # type: textblock
6982 #: ../src/guestfs-actions.pod:1699
6983 msgid ""
6984 "This function is like C<guestfs_fill> except that it creates a new file of "
6985 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
6986 "pattern is truncated if necessary to ensure the length of the file is "
6987 "exactly C<len> bytes."
6988 msgstr ""
6989
6990 # type: textblock
6991 #: ../src/guestfs-actions.pod:1711
6992 msgid "(Added in 1.3.12)"
6993 msgstr ""
6994
6995 # type: =head2
6996 #: ../src/guestfs-actions.pod:1713
6997 msgid "guestfs_find"
6998 msgstr ""
6999
7000 # type: verbatim
7001 #: ../src/guestfs-actions.pod:1715
7002 #, no-wrap
7003 msgid ""
7004 " char **\n"
7005 " guestfs_find (guestfs_h *g,\n"
7006 "               const char *directory);\n"
7007 "\n"
7008 msgstr ""
7009
7010 # type: textblock
7011 #: ../src/guestfs-actions.pod:1719 ../fish/guestfish-actions.pod:1160
7012 msgid ""
7013 "This command lists out all files and directories, recursively, starting at "
7014 "C<directory>.  It is essentially equivalent to running the shell command "
7015 "C<find directory -print> but some post-processing happens on the output, "
7016 "described below."
7017 msgstr ""
7018
7019 # type: textblock
7020 #: ../src/guestfs-actions.pod:1724 ../fish/guestfish-actions.pod:1165
7021 msgid ""
7022 "This returns a list of strings I<without any prefix>.  Thus if the directory "
7023 "structure was:"
7024 msgstr ""
7025
7026 # type: verbatim
7027 #: ../src/guestfs-actions.pod:1727 ../fish/guestfish-actions.pod:1168
7028 #, no-wrap
7029 msgid ""
7030 " /tmp/a\n"
7031 " /tmp/b\n"
7032 " /tmp/c/d\n"
7033 "\n"
7034 msgstr ""
7035
7036 # type: textblock
7037 #: ../src/guestfs-actions.pod:1731
7038 msgid "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
7039 msgstr ""
7040
7041 # type: verbatim
7042 #: ../src/guestfs-actions.pod:1734 ../fish/guestfish-actions.pod:1175
7043 #, no-wrap
7044 msgid ""
7045 " a\n"
7046 " b\n"
7047 " c\n"
7048 " c/d\n"
7049 "\n"
7050 msgstr ""
7051
7052 # type: textblock
7053 #: ../src/guestfs-actions.pod:1739 ../fish/guestfish-actions.pod:1180
7054 msgid "If C<directory> is not a directory, then this command returns an error."
7055 msgstr ""
7056
7057 # type: textblock
7058 #: ../src/guestfs-actions.pod:1742 ../fish/guestfish-actions.pod:1183
7059 msgid "The returned list is sorted."
7060 msgstr ""
7061
7062 # type: textblock
7063 #: ../src/guestfs-actions.pod:1744
7064 msgid "See also C<guestfs_find0>."
7065 msgstr ""
7066
7067 # type: textblock
7068 #: ../src/guestfs-actions.pod:1753 ../src/guestfs-actions.pod:3788 ../src/guestfs-actions.pod:5249
7069 msgid "(Added in 1.0.27)"
7070 msgstr ""
7071
7072 # type: =head2
7073 #: ../src/guestfs-actions.pod:1755
7074 msgid "guestfs_find0"
7075 msgstr ""
7076
7077 # type: verbatim
7078 #: ../src/guestfs-actions.pod:1757
7079 #, no-wrap
7080 msgid ""
7081 " int\n"
7082 " guestfs_find0 (guestfs_h *g,\n"
7083 "                const char *directory,\n"
7084 "                const char *files);\n"
7085 "\n"
7086 msgstr ""
7087
7088 # type: textblock
7089 #: ../src/guestfs-actions.pod:1762 ../fish/guestfish-actions.pod:1194
7090 msgid ""
7091 "This command lists out all files and directories, recursively, starting at "
7092 "C<directory>, placing the resulting list in the external file called "
7093 "C<files>."
7094 msgstr ""
7095
7096 # type: textblock
7097 #: ../src/guestfs-actions.pod:1766
7098 msgid ""
7099 "This command works the same way as C<guestfs_find> with the following "
7100 "exceptions:"
7101 msgstr ""
7102
7103 # type: textblock
7104 #: ../src/guestfs-actions.pod:1773 ../fish/guestfish-actions.pod:1205
7105 msgid "The resulting list is written to an external file."
7106 msgstr ""
7107
7108 # type: textblock
7109 #: ../src/guestfs-actions.pod:1777 ../fish/guestfish-actions.pod:1209
7110 msgid ""
7111 "Items (filenames) in the result are separated by C<\\0> characters.  See "
7112 "L<find(1)> option I<-print0>."
7113 msgstr ""
7114
7115 # type: textblock
7116 #: ../src/guestfs-actions.pod:1782 ../fish/guestfish-actions.pod:1214
7117 msgid "This command is not limited in the number of names that it can return."
7118 msgstr ""
7119
7120 # type: textblock
7121 #: ../src/guestfs-actions.pod:1787 ../fish/guestfish-actions.pod:1219
7122 msgid "The result list is not sorted."
7123 msgstr ""
7124
7125 # type: textblock
7126 #: ../src/guestfs-actions.pod:1793
7127 msgid "(Added in 1.0.74)"
7128 msgstr ""
7129
7130 # type: =head2
7131 #: ../src/guestfs-actions.pod:1795
7132 msgid "guestfs_findfs_label"
7133 msgstr ""
7134
7135 # type: verbatim
7136 #: ../src/guestfs-actions.pod:1797
7137 #, no-wrap
7138 msgid ""
7139 " char *\n"
7140 " guestfs_findfs_label (guestfs_h *g,\n"
7141 "                       const char *label);\n"
7142 "\n"
7143 msgstr ""
7144
7145 # type: textblock
7146 #: ../src/guestfs-actions.pod:1801 ../fish/guestfish-actions.pod:1229
7147 msgid ""
7148 "This command searches the filesystems and returns the one which has the "
7149 "given label.  An error is returned if no such filesystem can be found."
7150 msgstr ""
7151
7152 # type: textblock
7153 #: ../src/guestfs-actions.pod:1805
7154 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
7155 msgstr ""
7156
7157 # type: =head2
7158 #: ../src/guestfs-actions.pod:1812
7159 msgid "guestfs_findfs_uuid"
7160 msgstr ""
7161
7162 # type: verbatim
7163 #: ../src/guestfs-actions.pod:1814
7164 #, no-wrap
7165 msgid ""
7166 " char *\n"
7167 " guestfs_findfs_uuid (guestfs_h *g,\n"
7168 "                      const char *uuid);\n"
7169 "\n"
7170 msgstr ""
7171
7172 # type: textblock
7173 #: ../src/guestfs-actions.pod:1818 ../fish/guestfish-actions.pod:1239
7174 msgid ""
7175 "This command searches the filesystems and returns the one which has the "
7176 "given UUID.  An error is returned if no such filesystem can be found."
7177 msgstr ""
7178
7179 # type: textblock
7180 #: ../src/guestfs-actions.pod:1822
7181 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
7182 msgstr ""
7183
7184 # type: =head2
7185 #: ../src/guestfs-actions.pod:1829
7186 msgid "guestfs_fsck"
7187 msgstr ""
7188
7189 # type: verbatim
7190 #: ../src/guestfs-actions.pod:1831
7191 #, no-wrap
7192 msgid ""
7193 " int\n"
7194 " guestfs_fsck (guestfs_h *g,\n"
7195 "               const char *fstype,\n"
7196 "               const char *device);\n"
7197 "\n"
7198 msgstr ""
7199
7200 # type: textblock
7201 #: ../src/guestfs-actions.pod:1836 ../fish/guestfish-actions.pod:1249
7202 msgid ""
7203 "This runs the filesystem checker (fsck) on C<device> which should have "
7204 "filesystem type C<fstype>."
7205 msgstr ""
7206
7207 # type: textblock
7208 #: ../src/guestfs-actions.pod:1839 ../fish/guestfish-actions.pod:1252
7209 msgid ""
7210 "The returned integer is the status.  See L<fsck(8)> for the list of status "
7211 "codes from C<fsck>."
7212 msgstr ""
7213
7214 # type: textblock
7215 #: ../src/guestfs-actions.pod:1848 ../fish/guestfish-actions.pod:1261
7216 msgid "Multiple status codes can be summed together."
7217 msgstr ""
7218
7219 # type: textblock
7220 #: ../src/guestfs-actions.pod:1852 ../fish/guestfish-actions.pod:1265
7221 msgid ""
7222 "A non-zero return code can mean \"success\", for example if errors have been "
7223 "corrected on the filesystem."
7224 msgstr ""
7225
7226 # type: textblock
7227 #: ../src/guestfs-actions.pod:1857 ../fish/guestfish-actions.pod:1270
7228 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
7229 msgstr ""
7230
7231 # type: textblock
7232 #: ../src/guestfs-actions.pod:1862 ../fish/guestfish-actions.pod:1275
7233 msgid "This command is entirely equivalent to running C<fsck -a -t fstype device>."
7234 msgstr ""
7235
7236 # type: textblock
7237 #: ../src/guestfs-actions.pod:1866 ../src/guestfs-actions.pod:6886
7238 msgid "(Added in 1.0.16)"
7239 msgstr ""
7240
7241 # type: =head2
7242 #: ../src/guestfs-actions.pod:1868
7243 msgid "guestfs_get_append"
7244 msgstr ""
7245
7246 # type: verbatim
7247 #: ../src/guestfs-actions.pod:1870
7248 #, no-wrap
7249 msgid ""
7250 " const char *\n"
7251 " guestfs_get_append (guestfs_h *g);\n"
7252 "\n"
7253 msgstr ""
7254
7255 # type: textblock
7256 #: ../src/guestfs-actions.pod:1873 ../fish/guestfish-actions.pod:1281
7257 msgid ""
7258 "Return the additional kernel options which are added to the guest kernel "
7259 "command line."
7260 msgstr ""
7261
7262 # type: textblock
7263 #: ../src/guestfs-actions.pod:1876 ../fish/guestfish-actions.pod:1284
7264 msgid "If C<NULL> then no options are added."
7265 msgstr ""
7266
7267 # type: textblock
7268 #: ../src/guestfs-actions.pod:1878
7269 msgid ""
7270 "This function returns a string which may be NULL.  There is no way to return "
7271 "an error from this function.  The string is owned by the guest handle and "
7272 "must I<not> be freed."
7273 msgstr ""
7274
7275 # type: textblock
7276 #: ../src/guestfs-actions.pod:1882 ../src/guestfs-actions.pod:4927 ../src/guestfs-actions.pod:5390 ../src/guestfs-actions.pod:5758 ../src/guestfs-actions.pod:5777 ../src/guestfs-actions.pod:5793 ../src/guestfs-actions.pod:5810 ../src/guestfs-actions.pod:6557 ../src/guestfs-actions.pod:6575 ../src/guestfs-actions.pod:6929
7277 msgid "(Added in 1.0.26)"
7278 msgstr ""
7279
7280 # type: =head2
7281 #: ../src/guestfs-actions.pod:1884
7282 msgid "guestfs_get_autosync"
7283 msgstr ""
7284
7285 # type: verbatim
7286 #: ../src/guestfs-actions.pod:1886
7287 #, no-wrap
7288 msgid ""
7289 " int\n"
7290 " guestfs_get_autosync (guestfs_h *g);\n"
7291 "\n"
7292 msgstr ""
7293
7294 # type: textblock
7295 #: ../src/guestfs-actions.pod:1889 ../fish/guestfish-actions.pod:1290
7296 msgid "Get the autosync flag."
7297 msgstr ""
7298
7299 # type: =head2
7300 #: ../src/guestfs-actions.pod:1895
7301 msgid "guestfs_get_direct"
7302 msgstr ""
7303
7304 # type: verbatim
7305 #: ../src/guestfs-actions.pod:1897
7306 #, no-wrap
7307 msgid ""
7308 " int\n"
7309 " guestfs_get_direct (guestfs_h *g);\n"
7310 "\n"
7311 msgstr ""
7312
7313 # type: textblock
7314 #: ../src/guestfs-actions.pod:1900 ../fish/guestfish-actions.pod:1296
7315 msgid "Return the direct appliance mode flag."
7316 msgstr ""
7317
7318 # type: textblock
7319 #: ../src/guestfs-actions.pod:1904 ../src/guestfs-actions.pod:5431
7320 msgid "(Added in 1.0.72)"
7321 msgstr ""
7322
7323 # type: =head2
7324 #: ../src/guestfs-actions.pod:1906
7325 msgid "guestfs_get_e2label"
7326 msgstr ""
7327
7328 # type: verbatim
7329 #: ../src/guestfs-actions.pod:1908
7330 #, no-wrap
7331 msgid ""
7332 " char *\n"
7333 " guestfs_get_e2label (guestfs_h *g,\n"
7334 "                      const char *device);\n"
7335 "\n"
7336 msgstr ""
7337
7338 # type: textblock
7339 #: ../src/guestfs-actions.pod:1912 ../fish/guestfish-actions.pod:1302
7340 msgid "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
7341 msgstr ""
7342
7343 # type: textblock
7344 #: ../src/guestfs-actions.pod:1918 ../fish/guestfish-actions.pod:1305
7345 msgid ""
7346 "This function is deprecated.  In new code, use the C<vfs_label> call "
7347 "instead."
7348 msgstr ""
7349
7350 # type: textblock
7351 #: ../src/guestfs-actions.pod:1925 ../src/guestfs-actions.pod:1946 ../src/guestfs-actions.pod:5449 ../src/guestfs-actions.pod:5468
7352 msgid "(Added in 1.0.15)"
7353 msgstr ""
7354
7355 # type: =head2
7356 #: ../src/guestfs-actions.pod:1927
7357 msgid "guestfs_get_e2uuid"
7358 msgstr ""
7359
7360 # type: verbatim
7361 #: ../src/guestfs-actions.pod:1929
7362 #, no-wrap
7363 msgid ""
7364 " char *\n"
7365 " guestfs_get_e2uuid (guestfs_h *g,\n"
7366 "                     const char *device);\n"
7367 "\n"
7368 msgstr ""
7369
7370 # type: textblock
7371 #: ../src/guestfs-actions.pod:1933 ../fish/guestfish-actions.pod:1316
7372 msgid "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
7373 msgstr ""
7374
7375 # type: textblock
7376 #: ../src/guestfs-actions.pod:1939 ../fish/guestfish-actions.pod:1319
7377 msgid "This function is deprecated.  In new code, use the C<vfs_uuid> call instead."
7378 msgstr ""
7379
7380 # type: =head2
7381 #: ../src/guestfs-actions.pod:1948
7382 msgid "guestfs_get_memsize"
7383 msgstr ""
7384
7385 # type: verbatim
7386 #: ../src/guestfs-actions.pod:1950
7387 #, no-wrap
7388 msgid ""
7389 " int\n"
7390 " guestfs_get_memsize (guestfs_h *g);\n"
7391 "\n"
7392 msgstr ""
7393
7394 # type: textblock
7395 #: ../src/guestfs-actions.pod:1953 ../fish/guestfish-actions.pod:1330
7396 msgid "This gets the memory size in megabytes allocated to the qemu subprocess."
7397 msgstr ""
7398
7399 # type: textblock
7400 #: ../src/guestfs-actions.pod:1956
7401 msgid ""
7402 "If C<guestfs_set_memsize> was not called on this handle, and if "
7403 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
7404 "value for memsize."
7405 msgstr ""
7406
7407 # type: textblock
7408 #: ../src/guestfs-actions.pod:1960 ../src/guestfs-actions.pod:2041 ../src/guestfs-actions.pod:5484 ../src/guestfs-actions.pod:5591 ../fish/guestfish-actions.pod:1337 ../fish/guestfish-actions.pod:1388 ../fish/guestfish-actions.pod:3680 ../fish/guestfish-actions.pod:3767
7409 msgid "For more information on the architecture of libguestfs, see L<guestfs(3)>."
7410 msgstr ""
7411
7412 # type: textblock
7413 #: ../src/guestfs-actions.pod:1965 ../src/guestfs-actions.pod:4079 ../src/guestfs-actions.pod:4194 ../src/guestfs-actions.pod:4213 ../src/guestfs-actions.pod:4232 ../src/guestfs-actions.pod:4244 ../src/guestfs-actions.pod:4261 ../src/guestfs-actions.pod:4274 ../src/guestfs-actions.pod:5152 ../src/guestfs-actions.pod:5489 ../src/guestfs-actions.pod:5732 ../src/guestfs-actions.pod:6333
7414 msgid "(Added in 1.0.55)"
7415 msgstr ""
7416
7417 # type: =head2
7418 #: ../src/guestfs-actions.pod:1967
7419 msgid "guestfs_get_network"
7420 msgstr ""
7421
7422 # type: verbatim
7423 #: ../src/guestfs-actions.pod:1969
7424 #, no-wrap
7425 msgid ""
7426 " int\n"
7427 " guestfs_get_network (guestfs_h *g);\n"
7428 "\n"
7429 msgstr ""
7430
7431 # type: textblock
7432 #: ../src/guestfs-actions.pod:1972 ../fish/guestfish-actions.pod:1344
7433 msgid "This returns the enable network flag."
7434 msgstr ""
7435
7436 # type: textblock
7437 #: ../src/guestfs-actions.pod:1976 ../src/guestfs-actions.pod:5508
7438 msgid "(Added in 1.5.4)"
7439 msgstr ""
7440
7441 # type: =head2
7442 #: ../src/guestfs-actions.pod:1978
7443 msgid "guestfs_get_path"
7444 msgstr ""
7445
7446 # type: verbatim
7447 #: ../src/guestfs-actions.pod:1980
7448 #, no-wrap
7449 msgid ""
7450 " const char *\n"
7451 " guestfs_get_path (guestfs_h *g);\n"
7452 "\n"
7453 msgstr ""
7454
7455 # type: textblock
7456 #: ../src/guestfs-actions.pod:1983 ../fish/guestfish-actions.pod:1350
7457 msgid "Return the current search path."
7458 msgstr ""
7459
7460 # type: textblock
7461 #: ../src/guestfs-actions.pod:1985 ../fish/guestfish-actions.pod:1352
7462 msgid ""
7463 "This is always non-NULL.  If it wasn't set already, then this will return "
7464 "the default path."
7465 msgstr ""
7466
7467 # type: textblock
7468 #: ../src/guestfs-actions.pod:1988 ../src/guestfs-actions.pod:2017
7469 msgid ""
7470 "This function returns a string, or NULL on error.  The string is owned by "
7471 "the guest handle and must I<not> be freed."
7472 msgstr ""
7473
7474 # type: =head2
7475 #: ../src/guestfs-actions.pod:1993
7476 msgid "guestfs_get_pid"
7477 msgstr ""
7478
7479 # type: verbatim
7480 #: ../src/guestfs-actions.pod:1995
7481 #, no-wrap
7482 msgid ""
7483 " int\n"
7484 " guestfs_get_pid (guestfs_h *g);\n"
7485 "\n"
7486 msgstr ""
7487
7488 # type: textblock
7489 #: ../src/guestfs-actions.pod:1998 ../fish/guestfish-actions.pod:1361
7490 msgid ""
7491 "Return the process ID of the qemu subprocess.  If there is no qemu "
7492 "subprocess, then this will return an error."
7493 msgstr ""
7494
7495 # type: textblock
7496 #: ../src/guestfs-actions.pod:2001 ../fish/guestfish-actions.pod:1364
7497 msgid "This is an internal call used for debugging and testing."
7498 msgstr ""
7499
7500 # type: textblock
7501 #: ../src/guestfs-actions.pod:2005
7502 msgid "(Added in 1.0.56)"
7503 msgstr ""
7504
7505 # type: =head2
7506 #: ../src/guestfs-actions.pod:2007
7507 msgid "guestfs_get_qemu"
7508 msgstr ""
7509
7510 # type: verbatim
7511 #: ../src/guestfs-actions.pod:2009
7512 #, no-wrap
7513 msgid ""
7514 " const char *\n"
7515 " guestfs_get_qemu (guestfs_h *g);\n"
7516 "\n"
7517 msgstr ""
7518
7519 # type: textblock
7520 #: ../src/guestfs-actions.pod:2012 ../fish/guestfish-actions.pod:1370
7521 msgid "Return the current qemu binary."
7522 msgstr ""
7523
7524 # type: textblock
7525 #: ../src/guestfs-actions.pod:2014 ../fish/guestfish-actions.pod:1372
7526 msgid ""
7527 "This is always non-NULL.  If it wasn't set already, then this will return "
7528 "the default qemu binary name."
7529 msgstr ""
7530
7531 # type: textblock
7532 #: ../src/guestfs-actions.pod:2020 ../src/guestfs-actions.pod:5553
7533 msgid "(Added in 1.0.6)"
7534 msgstr ""
7535
7536 # type: =head2
7537 #: ../src/guestfs-actions.pod:2022
7538 msgid "guestfs_get_recovery_proc"
7539 msgstr ""
7540
7541 # type: verbatim
7542 #: ../src/guestfs-actions.pod:2024
7543 #, no-wrap
7544 msgid ""
7545 " int\n"
7546 " guestfs_get_recovery_proc (guestfs_h *g);\n"
7547 "\n"
7548 msgstr ""
7549
7550 # type: textblock
7551 #: ../src/guestfs-actions.pod:2027 ../fish/guestfish-actions.pod:1379
7552 msgid "Return the recovery process enabled flag."
7553 msgstr ""
7554
7555 # type: textblock
7556 #: ../src/guestfs-actions.pod:2031 ../src/guestfs-actions.pod:3219 ../src/guestfs-actions.pod:3486 ../src/guestfs-actions.pod:3886 ../src/guestfs-actions.pod:3918 ../src/guestfs-actions.pod:4857 ../src/guestfs-actions.pod:5200 ../src/guestfs-actions.pod:5577 ../src/guestfs-actions.pod:6236 ../src/guestfs-actions.pod:6256 ../src/guestfs-actions.pod:6438
7557 msgid "(Added in 1.0.77)"
7558 msgstr ""
7559
7560 # type: =head2
7561 #: ../src/guestfs-actions.pod:2033
7562 msgid "guestfs_get_selinux"
7563 msgstr ""
7564
7565 # type: verbatim
7566 #: ../src/guestfs-actions.pod:2035
7567 #, no-wrap
7568 msgid ""
7569 " int\n"
7570 " guestfs_get_selinux (guestfs_h *g);\n"
7571 "\n"
7572 msgstr ""
7573
7574 # type: textblock
7575 #: ../src/guestfs-actions.pod:2038
7576 msgid ""
7577 "This returns the current setting of the selinux flag which is passed to the "
7578 "appliance at boot time.  See C<guestfs_set_selinux>."
7579 msgstr ""
7580
7581 # type: textblock
7582 #: ../src/guestfs-actions.pod:2046 ../src/guestfs-actions.pod:2109 ../src/guestfs-actions.pod:5596 ../src/guestfs-actions.pod:5650
7583 msgid "(Added in 1.0.67)"
7584 msgstr ""
7585
7586 # type: =head2
7587 #: ../src/guestfs-actions.pod:2048
7588 msgid "guestfs_get_state"
7589 msgstr ""
7590
7591 # type: verbatim
7592 #: ../src/guestfs-actions.pod:2050
7593 #, no-wrap
7594 msgid ""
7595 " int\n"
7596 " guestfs_get_state (guestfs_h *g);\n"
7597 "\n"
7598 msgstr ""
7599
7600 # type: textblock
7601 #: ../src/guestfs-actions.pod:2053 ../fish/guestfish-actions.pod:1395
7602 msgid ""
7603 "This returns the current state as an opaque integer.  This is only useful "
7604 "for printing debug and internal error messages."
7605 msgstr ""
7606
7607 # type: textblock
7608 #: ../src/guestfs-actions.pod:2056 ../src/guestfs-actions.pod:3022 ../src/guestfs-actions.pod:3051 ../src/guestfs-actions.pod:3112 ../src/guestfs-actions.pod:3139 ../fish/guestfish-actions.pod:1398 ../fish/guestfish-actions.pod:2113 ../fish/guestfish-actions.pod:2131 ../fish/guestfish-actions.pod:2169 ../fish/guestfish-actions.pod:2185
7609 msgid "For more information on states, see L<guestfs(3)>."
7610 msgstr ""
7611
7612 # type: =head2
7613 #: ../src/guestfs-actions.pod:2062
7614 msgid "guestfs_get_trace"
7615 msgstr ""
7616
7617 # type: verbatim
7618 #: ../src/guestfs-actions.pod:2064
7619 #, no-wrap
7620 msgid ""
7621 " int\n"
7622 " guestfs_get_trace (guestfs_h *g);\n"
7623 "\n"
7624 msgstr ""
7625
7626 # type: textblock
7627 #: ../src/guestfs-actions.pod:2067 ../fish/guestfish-actions.pod:1404
7628 msgid "Return the command trace flag."
7629 msgstr ""
7630
7631 # type: =head2
7632 #: ../src/guestfs-actions.pod:2073
7633 msgid "guestfs_get_umask"
7634 msgstr ""
7635
7636 # type: verbatim
7637 #: ../src/guestfs-actions.pod:2075
7638 #, no-wrap
7639 msgid ""
7640 " int\n"
7641 " guestfs_get_umask (guestfs_h *g);\n"
7642 "\n"
7643 msgstr ""
7644
7645 # type: textblock
7646 #: ../src/guestfs-actions.pod:2078
7647 msgid ""
7648 "Return the current umask.  By default the umask is C<022> unless it has been "
7649 "set by calling C<guestfs_umask>."
7650 msgstr ""
7651
7652 # type: =head2
7653 #: ../src/guestfs-actions.pod:2085
7654 msgid "guestfs_get_verbose"
7655 msgstr ""
7656
7657 # type: verbatim
7658 #: ../src/guestfs-actions.pod:2087
7659 #, no-wrap
7660 msgid ""
7661 " int\n"
7662 " guestfs_get_verbose (guestfs_h *g);\n"
7663 "\n"
7664 msgstr ""
7665
7666 # type: textblock
7667 #: ../src/guestfs-actions.pod:2090 ../fish/guestfish-actions.pod:1417
7668 msgid "This returns the verbose messages flag."
7669 msgstr ""
7670
7671 # type: =head2
7672 #: ../src/guestfs-actions.pod:2096
7673 msgid "guestfs_getcon"
7674 msgstr ""
7675
7676 # type: verbatim
7677 #: ../src/guestfs-actions.pod:2098
7678 #, no-wrap
7679 msgid ""
7680 " char *\n"
7681 " guestfs_getcon (guestfs_h *g);\n"
7682 "\n"
7683 msgstr ""
7684
7685 # type: textblock
7686 #: ../src/guestfs-actions.pod:2101 ../fish/guestfish-actions.pod:1423
7687 msgid "This gets the SELinux security context of the daemon."
7688 msgstr ""
7689
7690 # type: textblock
7691 #: ../src/guestfs-actions.pod:2103
7692 msgid "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
7693 msgstr ""
7694
7695 # type: =head2
7696 #: ../src/guestfs-actions.pod:2111
7697 msgid "guestfs_getxattrs"
7698 msgstr ""
7699
7700 # type: verbatim
7701 #: ../src/guestfs-actions.pod:2113
7702 #, no-wrap
7703 msgid ""
7704 " struct guestfs_xattr_list *\n"
7705 " guestfs_getxattrs (guestfs_h *g,\n"
7706 "                    const char *path);\n"
7707 "\n"
7708 msgstr ""
7709
7710 # type: textblock
7711 #: ../src/guestfs-actions.pod:2117 ../fish/guestfish-actions.pod:1432
7712 msgid "This call lists the extended attributes of the file or directory C<path>."
7713 msgstr ""
7714
7715 # type: textblock
7716 #: ../src/guestfs-actions.pod:2120 ../fish/guestfish-actions.pod:1435
7717 msgid ""
7718 "At the system call level, this is a combination of the L<listxattr(2)> and "
7719 "L<getxattr(2)> calls."
7720 msgstr ""
7721
7722 # type: textblock
7723 #: ../src/guestfs-actions.pod:2123
7724 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
7725 msgstr ""
7726
7727 # type: textblock
7728 #: ../src/guestfs-actions.pod:2125 ../src/guestfs-actions.pod:3231 ../src/guestfs-actions.pod:3882
7729 msgid ""
7730 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
7731 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
7732 msgstr ""
7733
7734 # type: textblock
7735 #: ../src/guestfs-actions.pod:2129 ../src/guestfs-actions.pod:3235 ../src/guestfs-actions.pod:3400 ../src/guestfs-actions.pod:3436 ../src/guestfs-actions.pod:5230 ../src/guestfs-actions.pod:5669 ../src/guestfs-actions.pod:6994
7736 msgid "(Added in 1.0.59)"
7737 msgstr ""
7738
7739 # type: =head2
7740 #: ../src/guestfs-actions.pod:2131
7741 msgid "guestfs_glob_expand"
7742 msgstr ""
7743
7744 # type: verbatim
7745 #: ../src/guestfs-actions.pod:2133
7746 #, no-wrap
7747 msgid ""
7748 " char **\n"
7749 " guestfs_glob_expand (guestfs_h *g,\n"
7750 "                      const char *pattern);\n"
7751 "\n"
7752 msgstr ""
7753
7754 # type: textblock
7755 #: ../src/guestfs-actions.pod:2137 ../fish/guestfish-actions.pod:1444
7756 msgid ""
7757 "This command searches for all the pathnames matching C<pattern> according to "
7758 "the wildcard expansion rules used by the shell."
7759 msgstr ""
7760
7761 # type: textblock
7762 #: ../src/guestfs-actions.pod:2141 ../fish/guestfish-actions.pod:1448
7763 msgid "If no paths match, then this returns an empty list (note: not an error)."
7764 msgstr ""
7765
7766 # type: textblock
7767 #: ../src/guestfs-actions.pod:2144 ../fish/guestfish-actions.pod:1451
7768 msgid ""
7769 "It is just a wrapper around the C L<glob(3)> function with flags "
7770 "C<GLOB_MARK|GLOB_BRACE>.  See that manual page for more details."
7771 msgstr ""
7772
7773 # type: textblock
7774 #: ../src/guestfs-actions.pod:2152 ../src/guestfs-actions.pod:5834 ../src/guestfs-actions.pod:5851
7775 msgid "(Added in 1.0.50)"
7776 msgstr ""
7777
7778 # type: =head2
7779 #: ../src/guestfs-actions.pod:2154
7780 msgid "guestfs_grep"
7781 msgstr ""
7782
7783 # type: verbatim
7784 #: ../src/guestfs-actions.pod:2156
7785 #, no-wrap
7786 msgid ""
7787 " char **\n"
7788 " guestfs_grep (guestfs_h *g,\n"
7789 "               const char *regex,\n"
7790 "               const char *path);\n"
7791 "\n"
7792 msgstr ""
7793
7794 # type: textblock
7795 #: ../src/guestfs-actions.pod:2161 ../fish/guestfish-actions.pod:1459
7796 msgid "This calls the external C<grep> program and returns the matching lines."
7797 msgstr ""
7798
7799 # type: =head2
7800 #: ../src/guestfs-actions.pod:2173
7801 msgid "guestfs_grepi"
7802 msgstr ""
7803
7804 # type: verbatim
7805 #: ../src/guestfs-actions.pod:2175
7806 #, no-wrap
7807 msgid ""
7808 " char **\n"
7809 " guestfs_grepi (guestfs_h *g,\n"
7810 "                const char *regex,\n"
7811 "                const char *path);\n"
7812 "\n"
7813 msgstr ""
7814
7815 # type: textblock
7816 #: ../src/guestfs-actions.pod:2180 ../fish/guestfish-actions.pod:1469
7817 msgid "This calls the external C<grep -i> program and returns the matching lines."
7818 msgstr ""
7819
7820 # type: =head2
7821 #: ../src/guestfs-actions.pod:2192
7822 msgid "guestfs_grub_install"
7823 msgstr ""
7824
7825 # type: verbatim
7826 #: ../src/guestfs-actions.pod:2194
7827 #, no-wrap
7828 msgid ""
7829 " int\n"
7830 " guestfs_grub_install (guestfs_h *g,\n"
7831 "                       const char *root,\n"
7832 "                       const char *device);\n"
7833 "\n"
7834 msgstr ""
7835
7836 # type: textblock
7837 #: ../src/guestfs-actions.pod:2199 ../fish/guestfish-actions.pod:1479
7838 msgid ""
7839 "This command installs GRUB (the Grand Unified Bootloader) on C<device>, with "
7840 "the root directory being C<root>."
7841 msgstr ""
7842
7843 # type: textblock
7844 #: ../src/guestfs-actions.pod:2202 ../fish/guestfish-actions.pod:1482
7845 msgid ""
7846 "Note: If grub-install reports the error \"No suitable drive was found in the "
7847 "generated device map.\" it may be that you need to create a "
7848 "C</boot/grub/device.map> file first that contains the mapping between grub "
7849 "device names and Linux device names.  It is usually sufficient to create a "
7850 "file containing:"
7851 msgstr ""
7852
7853 # type: verbatim
7854 #: ../src/guestfs-actions.pod:2209 ../fish/guestfish-actions.pod:1489
7855 #, no-wrap
7856 msgid ""
7857 " (hd0) /dev/vda\n"
7858 "\n"
7859 msgstr ""
7860
7861 # type: textblock
7862 #: ../src/guestfs-actions.pod:2211 ../fish/guestfish-actions.pod:1491
7863 msgid "replacing C</dev/vda> with the name of the installation device."
7864 msgstr ""
7865
7866 # type: textblock
7867 #: ../src/guestfs-actions.pod:2215
7868 msgid "(Added in 1.0.17)"
7869 msgstr ""
7870
7871 # type: =head2
7872 #: ../src/guestfs-actions.pod:2217
7873 msgid "guestfs_head"
7874 msgstr ""
7875
7876 # type: verbatim
7877 #: ../src/guestfs-actions.pod:2219
7878 #, no-wrap
7879 msgid ""
7880 " char **\n"
7881 " guestfs_head (guestfs_h *g,\n"
7882 "               const char *path);\n"
7883 "\n"
7884 msgstr ""
7885
7886 # type: textblock
7887 #: ../src/guestfs-actions.pod:2223 ../fish/guestfish-actions.pod:1497
7888 msgid ""
7889 "This command returns up to the first 10 lines of a file as a list of "
7890 "strings."
7891 msgstr ""
7892
7893 # type: =head2
7894 #: ../src/guestfs-actions.pod:2235
7895 msgid "guestfs_head_n"
7896 msgstr ""
7897
7898 # type: verbatim
7899 #: ../src/guestfs-actions.pod:2237
7900 #, no-wrap
7901 msgid ""
7902 " char **\n"
7903 " guestfs_head_n (guestfs_h *g,\n"
7904 "                 int nrlines,\n"
7905 "                 const char *path);\n"
7906 "\n"
7907 msgstr ""
7908
7909 # type: textblock
7910 #: ../src/guestfs-actions.pod:2242 ../fish/guestfish-actions.pod:1507
7911 msgid ""
7912 "If the parameter C<nrlines> is a positive number, this returns the first "
7913 "C<nrlines> lines of the file C<path>."
7914 msgstr ""
7915
7916 # type: textblock
7917 #: ../src/guestfs-actions.pod:2245 ../fish/guestfish-actions.pod:1510
7918 msgid ""
7919 "If the parameter C<nrlines> is a negative number, this returns lines from "
7920 "the file C<path>, excluding the last C<nrlines> lines."
7921 msgstr ""
7922
7923 # type: textblock
7924 #: ../src/guestfs-actions.pod:2248 ../src/guestfs-actions.pod:6131 ../fish/guestfish-actions.pod:1513 ../fish/guestfish-actions.pod:4113
7925 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
7926 msgstr ""
7927
7928 # type: =head2
7929 #: ../src/guestfs-actions.pod:2259
7930 msgid "guestfs_hexdump"
7931 msgstr ""
7932
7933 # type: verbatim
7934 #: ../src/guestfs-actions.pod:2261
7935 #, no-wrap
7936 msgid ""
7937 " char *\n"
7938 " guestfs_hexdump (guestfs_h *g,\n"
7939 "                  const char *path);\n"
7940 "\n"
7941 msgstr ""
7942
7943 # type: textblock
7944 #: ../src/guestfs-actions.pod:2265 ../fish/guestfish-actions.pod:1522
7945 msgid ""
7946 "This runs C<hexdump -C> on the given C<path>.  The result is the "
7947 "human-readable, canonical hex dump of the file."
7948 msgstr ""
7949
7950 # type: textblock
7951 #: ../src/guestfs-actions.pod:2274 ../src/guestfs-actions.pod:5915 ../src/guestfs-actions.pod:5970
7952 msgid "(Added in 1.0.22)"
7953 msgstr ""
7954
7955 # type: =head2
7956 #: ../src/guestfs-actions.pod:2276
7957 msgid "guestfs_initrd_cat"
7958 msgstr ""
7959
7960 # type: verbatim
7961 #: ../src/guestfs-actions.pod:2278
7962 #, no-wrap
7963 msgid ""
7964 " char *\n"
7965 " guestfs_initrd_cat (guestfs_h *g,\n"
7966 "                     const char *initrdpath,\n"
7967 "                     const char *filename,\n"
7968 "                     size_t *size_r);\n"
7969 "\n"
7970 msgstr ""
7971
7972 # type: textblock
7973 #: ../src/guestfs-actions.pod:2284 ../fish/guestfish-actions.pod:1532
7974 msgid ""
7975 "This command unpacks the file C<filename> from the initrd file called "
7976 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
7977 "character."
7978 msgstr ""
7979
7980 # type: textblock
7981 #: ../src/guestfs-actions.pod:2288 ../fish/guestfish-actions.pod:1536
7982 msgid ""
7983 "For example, in guestfish you could use the following command to examine the "
7984 "boot script (usually called C</init>)  contained in a Linux initrd or "
7985 "initramfs image:"
7986 msgstr ""
7987
7988 # type: verbatim
7989 #: ../src/guestfs-actions.pod:2292 ../fish/guestfish-actions.pod:1540
7990 #, no-wrap
7991 msgid ""
7992 " initrd-cat /boot/initrd-<version>.img init\n"
7993 "\n"
7994 msgstr ""
7995
7996 # type: textblock
7997 #: ../src/guestfs-actions.pod:2294
7998 msgid "See also C<guestfs_initrd_list>."
7999 msgstr ""
8000
8001 # type: textblock
8002 #: ../src/guestfs-actions.pod:2296 ../src/guestfs-actions.pod:4850 ../src/guestfs-actions.pod:4876 ../src/guestfs-actions.pod:5057
8003 msgid ""
8004 "This function returns a buffer, or NULL on error.  The size of the returned "
8005 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
8006 "after use>."
8007 msgstr ""
8008
8009 # type: =head2
8010 #: ../src/guestfs-actions.pod:2305
8011 msgid "guestfs_initrd_list"
8012 msgstr ""
8013
8014 # type: verbatim
8015 #: ../src/guestfs-actions.pod:2307
8016 #, no-wrap
8017 msgid ""
8018 " char **\n"
8019 " guestfs_initrd_list (guestfs_h *g,\n"
8020 "                      const char *path);\n"
8021 "\n"
8022 msgstr ""
8023
8024 # type: textblock
8025 #: ../src/guestfs-actions.pod:2311 ../fish/guestfish-actions.pod:1551
8026 msgid "This command lists out files contained in an initrd."
8027 msgstr ""
8028
8029 # type: textblock
8030 #: ../src/guestfs-actions.pod:2313 ../fish/guestfish-actions.pod:1553
8031 msgid ""
8032 "The files are listed without any initial C</> character.  The files are "
8033 "listed in the order they appear (not necessarily alphabetical).  Directory "
8034 "names are listed as separate items."
8035 msgstr ""
8036
8037 # type: textblock
8038 #: ../src/guestfs-actions.pod:2317 ../fish/guestfish-actions.pod:1557
8039 msgid ""
8040 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
8041 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
8042 "files)."
8043 msgstr ""
8044
8045 # type: =head2
8046 #: ../src/guestfs-actions.pod:2327
8047 msgid "guestfs_inotify_add_watch"
8048 msgstr ""
8049
8050 # type: verbatim
8051 #: ../src/guestfs-actions.pod:2329
8052 #, no-wrap
8053 msgid ""
8054 " int64_t\n"
8055 " guestfs_inotify_add_watch (guestfs_h *g,\n"
8056 "                            const char *path,\n"
8057 "                            int mask);\n"
8058 "\n"
8059 msgstr ""
8060
8061 # type: textblock
8062 #: ../src/guestfs-actions.pod:2334 ../fish/guestfish-actions.pod:1565
8063 msgid "Watch C<path> for the events listed in C<mask>."
8064 msgstr ""
8065
8066 # type: textblock
8067 #: ../src/guestfs-actions.pod:2336 ../fish/guestfish-actions.pod:1567
8068 msgid ""
8069 "Note that if C<path> is a directory then events within that directory are "
8070 "watched, but this does I<not> happen recursively (in subdirectories)."
8071 msgstr ""
8072
8073 # type: textblock
8074 #: ../src/guestfs-actions.pod:2340 ../fish/guestfish-actions.pod:1571
8075 msgid ""
8076 "Note for non-C or non-Linux callers: the inotify events are defined by the "
8077 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
8078 msgstr ""
8079
8080 # type: =head2
8081 #: ../src/guestfs-actions.pod:2348
8082 msgid "guestfs_inotify_close"
8083 msgstr ""
8084
8085 # type: verbatim
8086 #: ../src/guestfs-actions.pod:2350
8087 #, no-wrap
8088 msgid ""
8089 " int\n"
8090 " guestfs_inotify_close (guestfs_h *g);\n"
8091 "\n"
8092 msgstr ""
8093
8094 # type: textblock
8095 #: ../src/guestfs-actions.pod:2353 ../fish/guestfish-actions.pod:1579
8096 msgid ""
8097 "This closes the inotify handle which was previously opened by inotify_init.  "
8098 "It removes all watches, throws away any pending events, and deallocates all "
8099 "resources."
8100 msgstr ""
8101
8102 # type: =head2
8103 #: ../src/guestfs-actions.pod:2361
8104 msgid "guestfs_inotify_files"
8105 msgstr ""
8106
8107 # type: verbatim
8108 #: ../src/guestfs-actions.pod:2363
8109 #, no-wrap
8110 msgid ""
8111 " char **\n"
8112 " guestfs_inotify_files (guestfs_h *g);\n"
8113 "\n"
8114 msgstr ""
8115
8116 # type: textblock
8117 #: ../src/guestfs-actions.pod:2366
8118 msgid ""
8119 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
8120 "returns a list of pathnames of objects that were touched.  The returned "
8121 "pathnames are sorted and deduplicated."
8122 msgstr ""
8123
8124 # type: =head2
8125 #: ../src/guestfs-actions.pod:2376
8126 msgid "guestfs_inotify_init"
8127 msgstr ""
8128
8129 # type: verbatim
8130 #: ../src/guestfs-actions.pod:2378
8131 #, no-wrap
8132 msgid ""
8133 " int\n"
8134 " guestfs_inotify_init (guestfs_h *g,\n"
8135 "                       int maxevents);\n"
8136 "\n"
8137 msgstr ""
8138
8139 # type: textblock
8140 #: ../src/guestfs-actions.pod:2382 ../fish/guestfish-actions.pod:1595
8141 msgid ""
8142 "This command creates a new inotify handle.  The inotify subsystem can be "
8143 "used to notify events which happen to objects in the guest filesystem."
8144 msgstr ""
8145
8146 # type: textblock
8147 #: ../src/guestfs-actions.pod:2386
8148 msgid ""
8149 "C<maxevents> is the maximum number of events which will be queued up between "
8150 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
8151 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
8152 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
8153 "throws away events, but records the fact that it threw them away by setting "
8154 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
8155 "C<guestfs_inotify_read>)."
8156 msgstr ""
8157
8158 # type: textblock
8159 #: ../src/guestfs-actions.pod:2396
8160 msgid ""
8161 "Before any events are generated, you have to add some watches to the "
8162 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
8163 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
8164 msgstr ""
8165
8166 # type: textblock
8167 #: ../src/guestfs-actions.pod:2402
8168 msgid ""
8169 "Queued up events should be read periodically by calling "
8170 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
8171 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
8172 "often enough then you risk the internal queue overflowing."
8173 msgstr ""
8174
8175 # type: textblock
8176 #: ../src/guestfs-actions.pod:2409
8177 msgid ""
8178 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
8179 "This also removes any watches automatically."
8180 msgstr ""
8181
8182 # type: textblock
8183 #: ../src/guestfs-actions.pod:2413 ../fish/guestfish-actions.pod:1626
8184 msgid ""
8185 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
8186 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
8187 "that there is one global inotify handle per libguestfs instance."
8188 msgstr ""
8189
8190 # type: =head2
8191 #: ../src/guestfs-actions.pod:2422
8192 msgid "guestfs_inotify_read"
8193 msgstr ""
8194
8195 # type: verbatim
8196 #: ../src/guestfs-actions.pod:2424
8197 #, no-wrap
8198 msgid ""
8199 " struct guestfs_inotify_event_list *\n"
8200 " guestfs_inotify_read (guestfs_h *g);\n"
8201 "\n"
8202 msgstr ""
8203
8204 # type: textblock
8205 #: ../src/guestfs-actions.pod:2427 ../fish/guestfish-actions.pod:1635
8206 msgid ""
8207 "Return the complete queue of events that have happened since the previous "
8208 "read call."
8209 msgstr ""
8210
8211 # type: textblock
8212 #: ../src/guestfs-actions.pod:2430 ../fish/guestfish-actions.pod:1638
8213 msgid "If no events have happened, this returns an empty list."
8214 msgstr ""
8215
8216 # type: textblock
8217 #: ../src/guestfs-actions.pod:2432 ../fish/guestfish-actions.pod:1640
8218 msgid ""
8219 "I<Note>: In order to make sure that all events have been read, you must call "
8220 "this function repeatedly until it returns an empty list.  The reason is that "
8221 "the call will read events up to the maximum appliance-to-host message size "
8222 "and leave remaining events in the queue."
8223 msgstr ""
8224
8225 # type: textblock
8226 #: ../src/guestfs-actions.pod:2438
8227 msgid ""
8228 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
8229 "there was an error.  I<The caller must call "
8230 "C<guestfs_free_inotify_event_list> after use>."
8231 msgstr ""
8232
8233 # type: =head2
8234 #: ../src/guestfs-actions.pod:2444
8235 msgid "guestfs_inotify_rm_watch"
8236 msgstr ""
8237
8238 # type: verbatim
8239 #: ../src/guestfs-actions.pod:2446
8240 #, no-wrap
8241 msgid ""
8242 " int\n"
8243 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
8244 "                           int wd);\n"
8245 "\n"
8246 msgstr ""
8247
8248 # type: textblock
8249 #: ../src/guestfs-actions.pod:2450
8250 msgid ""
8251 "Remove a previously defined inotify watch.  See "
8252 "C<guestfs_inotify_add_watch>."
8253 msgstr ""
8254
8255 # type: =head2
8256 #: ../src/guestfs-actions.pod:2457
8257 msgid "guestfs_inspect_get_arch"
8258 msgstr ""
8259
8260 # type: verbatim
8261 #: ../src/guestfs-actions.pod:2459
8262 #, no-wrap
8263 msgid ""
8264 " char *\n"
8265 " guestfs_inspect_get_arch (guestfs_h *g,\n"
8266 "                           const char *root);\n"
8267 "\n"
8268 msgstr ""
8269
8270 # type: textblock
8271 #: ../src/guestfs-actions.pod:2463 ../src/guestfs-actions.pod:2486 ../src/guestfs-actions.pod:2567 ../src/guestfs-actions.pod:2593 ../src/guestfs-actions.pod:2613 ../src/guestfs-actions.pod:2640 ../src/guestfs-actions.pod:2661 ../src/guestfs-actions.pod:2694 ../src/guestfs-actions.pod:2721 ../src/guestfs-actions.pod:2750 ../src/guestfs-actions.pod:2792 ../src/guestfs-actions.pod:2834 ../src/guestfs-actions.pod:2857
8272 msgid ""
8273 "This function should only be called with a root device string as returned by "
8274 "C<guestfs_inspect_os>."
8275 msgstr ""
8276
8277 # type: textblock
8278 #: ../src/guestfs-actions.pod:2466
8279 msgid ""
8280 "This returns the architecture of the inspected operating system.  The "
8281 "possible return values are listed under C<guestfs_file_architecture>."
8282 msgstr ""
8283
8284 # type: textblock
8285 #: ../src/guestfs-actions.pod:2470 ../fish/guestfish-actions.pod:1664
8286 msgid ""
8287 "If the architecture could not be determined, then the string C<unknown> is "
8288 "returned."
8289 msgstr ""
8290
8291 # type: textblock
8292 #: ../src/guestfs-actions.pod:2473 ../src/guestfs-actions.pod:2554 ../src/guestfs-actions.pod:2602 ../src/guestfs-actions.pod:2628 ../src/guestfs-actions.pod:2710 ../src/guestfs-actions.pod:2739 ../src/guestfs-actions.pod:2761 ../src/guestfs-actions.pod:2780 ../src/guestfs-actions.pod:2821 ../src/guestfs-actions.pod:2844 ../src/guestfs-actions.pod:2950 ../src/guestfs-actions.pod:2989 ../fish/guestfish-actions.pod:1667 ../fish/guestfish-actions.pod:1741 ../fish/guestfish-actions.pod:1774 ../fish/guestfish-actions.pod:1795 ../fish/guestfish-actions.pod:1855 ../fish/guestfish-actions.pod:1879 ../fish/guestfish-actions.pod:1896 ../fish/guestfish-actions.pod:1909 ../fish/guestfish-actions.pod:1944 ../fish/guestfish-actions.pod:1960 ../fish/guestfish-actions.pod:2059 ../fish/guestfish-actions.pod:2093
8293 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
8294 msgstr ""
8295
8296 # type: =head2
8297 #: ../src/guestfs-actions.pod:2480
8298 msgid "guestfs_inspect_get_distro"
8299 msgstr ""
8300
8301 # type: verbatim
8302 #: ../src/guestfs-actions.pod:2482
8303 #, no-wrap
8304 msgid ""
8305 " char *\n"
8306 " guestfs_inspect_get_distro (guestfs_h *g,\n"
8307 "                             const char *root);\n"
8308 "\n"
8309 msgstr ""
8310
8311 # type: textblock
8312 #: ../src/guestfs-actions.pod:2489 ../fish/guestfish-actions.pod:1676
8313 msgid "This returns the distro (distribution) of the inspected operating system."
8314 msgstr ""
8315
8316 # type: textblock
8317 #: ../src/guestfs-actions.pod:2492 ../fish/guestfish-actions.pod:1679
8318 msgid "Currently defined distros are:"
8319 msgstr ""
8320
8321 # type: =item
8322 #: ../src/guestfs-actions.pod:2496 ../fish/guestfish-actions.pod:1683
8323 msgid "\"archlinux\""
8324 msgstr ""
8325
8326 # type: textblock
8327 #: ../src/guestfs-actions.pod:2498 ../fish/guestfish-actions.pod:1685
8328 msgid "Arch Linux."
8329 msgstr ""
8330
8331 # type: =item
8332 #: ../src/guestfs-actions.pod:2500 ../fish/guestfish-actions.pod:1687
8333 msgid "\"debian\""
8334 msgstr ""
8335
8336 # type: textblock
8337 #: ../src/guestfs-actions.pod:2502 ../fish/guestfish-actions.pod:1689
8338 msgid "Debian."
8339 msgstr ""
8340
8341 # type: =item
8342 #: ../src/guestfs-actions.pod:2504 ../fish/guestfish-actions.pod:1691
8343 msgid "\"fedora\""
8344 msgstr ""
8345
8346 # type: textblock
8347 #: ../src/guestfs-actions.pod:2506 ../fish/guestfish-actions.pod:1693
8348 msgid "Fedora."
8349 msgstr ""
8350
8351 # type: =item
8352 #: ../src/guestfs-actions.pod:2508 ../fish/guestfish-actions.pod:1695
8353 msgid "\"gentoo\""
8354 msgstr ""
8355
8356 # type: textblock
8357 #: ../src/guestfs-actions.pod:2510 ../fish/guestfish-actions.pod:1697
8358 msgid "Gentoo."
8359 msgstr ""
8360
8361 # type: =item
8362 #: ../src/guestfs-actions.pod:2512 ../fish/guestfish-actions.pod:1699
8363 msgid "\"linuxmint\""
8364 msgstr ""
8365
8366 # type: textblock
8367 #: ../src/guestfs-actions.pod:2514 ../fish/guestfish-actions.pod:1701
8368 msgid "Linux Mint."
8369 msgstr ""
8370
8371 # type: =item
8372 #: ../src/guestfs-actions.pod:2516 ../fish/guestfish-actions.pod:1703
8373 msgid "\"mandriva\""
8374 msgstr ""
8375
8376 # type: textblock
8377 #: ../src/guestfs-actions.pod:2518 ../fish/guestfish-actions.pod:1705
8378 msgid "Mandriva."
8379 msgstr ""
8380
8381 # type: =item
8382 #: ../src/guestfs-actions.pod:2520 ../fish/guestfish-actions.pod:1707
8383 msgid "\"meego\""
8384 msgstr ""
8385
8386 # type: textblock
8387 #: ../src/guestfs-actions.pod:2522 ../fish/guestfish-actions.pod:1709
8388 msgid "MeeGo."
8389 msgstr ""
8390
8391 # type: =item
8392 #: ../src/guestfs-actions.pod:2524 ../fish/guestfish-actions.pod:1711
8393 msgid "\"pardus\""
8394 msgstr ""
8395
8396 # type: textblock
8397 #: ../src/guestfs-actions.pod:2526 ../fish/guestfish-actions.pod:1713
8398 msgid "Pardus."
8399 msgstr ""
8400
8401 # type: =item
8402 #: ../src/guestfs-actions.pod:2528 ../fish/guestfish-actions.pod:1715
8403 msgid "\"redhat-based\""
8404 msgstr ""
8405
8406 # type: textblock
8407 #: ../src/guestfs-actions.pod:2530 ../fish/guestfish-actions.pod:1717
8408 msgid "Some Red Hat-derived distro."
8409 msgstr ""
8410
8411 # type: =item
8412 #: ../src/guestfs-actions.pod:2532 ../fish/guestfish-actions.pod:1719
8413 msgid "\"rhel\""
8414 msgstr ""
8415
8416 # type: textblock
8417 #: ../src/guestfs-actions.pod:2534 ../fish/guestfish-actions.pod:1721
8418 msgid "Red Hat Enterprise Linux and some derivatives."
8419 msgstr ""
8420
8421 # type: =item
8422 #: ../src/guestfs-actions.pod:2536 ../fish/guestfish-actions.pod:1723
8423 msgid "\"ubuntu\""
8424 msgstr ""
8425
8426 # type: textblock
8427 #: ../src/guestfs-actions.pod:2538 ../fish/guestfish-actions.pod:1725
8428 msgid "Ubuntu."
8429 msgstr ""
8430
8431 # type: =item
8432 #: ../src/guestfs-actions.pod:2540 ../src/guestfs-actions.pod:2812 ../fish/guestfish-actions.pod:1727 ../fish/guestfish-actions.pod:1935
8433 msgid "\"unknown\""
8434 msgstr ""
8435
8436 # type: textblock
8437 #: ../src/guestfs-actions.pod:2542 ../fish/guestfish-actions.pod:1729
8438 msgid "The distro could not be determined."
8439 msgstr ""
8440
8441 # type: =item
8442 #: ../src/guestfs-actions.pod:2544 ../src/guestfs-actions.pod:2804 ../fish/guestfish-actions.pod:1731 ../fish/guestfish-actions.pod:1927
8443 msgid "\"windows\""
8444 msgstr ""
8445
8446 # type: textblock
8447 #: ../src/guestfs-actions.pod:2546 ../fish/guestfish-actions.pod:1733
8448 msgid ""
8449 "Windows does not have distributions.  This string is returned if the OS type "
8450 "is Windows."
8451 msgstr ""
8452
8453 # type: textblock
8454 #: ../src/guestfs-actions.pod:2551 ../src/guestfs-actions.pod:2818 ../fish/guestfish-actions.pod:1738 ../fish/guestfish-actions.pod:1941
8455 msgid ""
8456 "Future versions of libguestfs may return other strings here.  The caller "
8457 "should be prepared to handle any string."
8458 msgstr ""
8459
8460 # type: =head2
8461 #: ../src/guestfs-actions.pod:2561
8462 msgid "guestfs_inspect_get_filesystems"
8463 msgstr ""
8464
8465 # type: verbatim
8466 #: ../src/guestfs-actions.pod:2563
8467 #, no-wrap
8468 msgid ""
8469 " char **\n"
8470 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
8471 "                                  const char *root);\n"
8472 "\n"
8473 msgstr ""
8474
8475 # type: textblock
8476 #: ../src/guestfs-actions.pod:2570 ../fish/guestfish-actions.pod:1750
8477 msgid ""
8478 "This returns a list of all the filesystems that we think are associated with "
8479 "this operating system.  This includes the root filesystem, other ordinary "
8480 "filesystems, and non-mounted devices like swap partitions."
8481 msgstr ""
8482
8483 # type: textblock
8484 #: ../src/guestfs-actions.pod:2575 ../fish/guestfish-actions.pod:1755
8485 msgid ""
8486 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
8487 "to be shared between operating systems."
8488 msgstr ""
8489
8490 # type: textblock
8491 #: ../src/guestfs-actions.pod:2578
8492 msgid ""
8493 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
8494 "C<guestfs_inspect_get_mountpoints>."
8495 msgstr ""
8496
8497 # type: =head2
8498 #: ../src/guestfs-actions.pod:2587
8499 msgid "guestfs_inspect_get_hostname"
8500 msgstr ""
8501
8502 # type: verbatim
8503 #: ../src/guestfs-actions.pod:2589
8504 #, no-wrap
8505 msgid ""
8506 " char *\n"
8507 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
8508 "                               const char *root);\n"
8509 "\n"
8510 msgstr ""
8511
8512 # type: textblock
8513 #: ../src/guestfs-actions.pod:2596 ../fish/guestfish-actions.pod:1768
8514 msgid ""
8515 "This function returns the hostname of the operating system as found by "
8516 "inspection of the guest's configuration files."
8517 msgstr ""
8518
8519 # type: textblock
8520 #: ../src/guestfs-actions.pod:2599 ../fish/guestfish-actions.pod:1771
8521 msgid ""
8522 "If the hostname could not be determined, then the string C<unknown> is "
8523 "returned."
8524 msgstr ""
8525
8526 # type: =head2
8527 #: ../src/guestfs-actions.pod:2607
8528 msgid "guestfs_inspect_get_major_version"
8529 msgstr ""
8530
8531 # type: verbatim
8532 #: ../src/guestfs-actions.pod:2609
8533 #, no-wrap
8534 msgid ""
8535 " int\n"
8536 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
8537 "                                    const char *root);\n"
8538 "\n"
8539 msgstr ""
8540
8541 # type: textblock
8542 #: ../src/guestfs-actions.pod:2616 ../fish/guestfish-actions.pod:1783
8543 msgid "This returns the major version number of the inspected operating system."
8544 msgstr ""
8545
8546 # type: textblock
8547 #: ../src/guestfs-actions.pod:2619 ../fish/guestfish-actions.pod:1786
8548 msgid ""
8549 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
8550 "popular public names used by the operating system.  Notably the operating "
8551 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
8552 "1).  You can find out the real versions corresponding to releases of Windows "
8553 "by consulting Wikipedia or MSDN."
8554 msgstr ""
8555
8556 # type: textblock
8557 #: ../src/guestfs-actions.pod:2626 ../src/guestfs-actions.pod:2646 ../fish/guestfish-actions.pod:1793 ../fish/guestfish-actions.pod:1807
8558 msgid "If the version could not be determined, then C<0> is returned."
8559 msgstr ""
8560
8561 # type: =head2
8562 #: ../src/guestfs-actions.pod:2634
8563 msgid "guestfs_inspect_get_minor_version"
8564 msgstr ""
8565
8566 # type: verbatim
8567 #: ../src/guestfs-actions.pod:2636
8568 #, no-wrap
8569 msgid ""
8570 " int\n"
8571 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
8572 "                                    const char *root);\n"
8573 "\n"
8574 msgstr ""
8575
8576 # type: textblock
8577 #: ../src/guestfs-actions.pod:2643 ../fish/guestfish-actions.pod:1804
8578 msgid "This returns the minor version number of the inspected operating system."
8579 msgstr ""
8580
8581 # type: textblock
8582 #: ../src/guestfs-actions.pod:2648
8583 msgid ""
8584 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
8585 "C<guestfs_inspect_get_major_version>."
8586 msgstr ""
8587
8588 # type: =head2
8589 #: ../src/guestfs-actions.pod:2655
8590 msgid "guestfs_inspect_get_mountpoints"
8591 msgstr ""
8592
8593 # type: verbatim
8594 #: ../src/guestfs-actions.pod:2657
8595 #, no-wrap
8596 msgid ""
8597 " char **\n"
8598 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
8599 "                                  const char *root);\n"
8600 "\n"
8601 msgstr ""
8602
8603 # type: textblock
8604 #: ../src/guestfs-actions.pod:2664 ../fish/guestfish-actions.pod:1819
8605 msgid ""
8606 "This returns a hash of where we think the filesystems associated with this "
8607 "operating system should be mounted.  Callers should note that this is at "
8608 "best an educated guess made by reading configuration files such as "
8609 "C</etc/fstab>."
8610 msgstr ""
8611
8612 # type: textblock
8613 #: ../src/guestfs-actions.pod:2669 ../fish/guestfish-actions.pod:1824
8614 msgid ""
8615 "Each element in the returned hashtable has a key which is the path of the "
8616 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
8617 "mounted there (eg. C</dev/sda1>)."
8618 msgstr ""
8619
8620 # type: textblock
8621 #: ../src/guestfs-actions.pod:2674 ../fish/guestfish-actions.pod:1829
8622 msgid "Non-mounted devices such as swap devices are I<not> returned in this list."
8623 msgstr ""
8624
8625 # type: textblock
8626 #: ../src/guestfs-actions.pod:2677
8627 msgid ""
8628 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
8629 "C<guestfs_inspect_get_filesystems>."
8630 msgstr ""
8631
8632 # type: textblock
8633 #: ../src/guestfs-actions.pod:2680 ../src/guestfs-actions.pod:3288 ../src/guestfs-actions.pod:4416 ../src/guestfs-actions.pod:6272
8634 msgid ""
8635 "This function returns a NULL-terminated array of strings, or NULL if there "
8636 "was an error.  The array of strings will always have length C<2n+1>, where "
8637 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
8638 "caller must free the strings and the array after use>."
8639 msgstr ""
8640
8641 # type: =head2
8642 #: ../src/guestfs-actions.pod:2688
8643 msgid "guestfs_inspect_get_package_format"
8644 msgstr ""
8645
8646 # type: verbatim
8647 #: ../src/guestfs-actions.pod:2690
8648 #, no-wrap
8649 msgid ""
8650 " char *\n"
8651 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
8652 "                                     const char *root);\n"
8653 "\n"
8654 msgstr ""
8655
8656 # type: textblock
8657 #: ../src/guestfs-actions.pod:2697
8658 msgid ""
8659 "This function and C<guestfs_inspect_get_package_management> return the "
8660 "package format and package management tool used by the inspected operating "
8661 "system.  For example for Fedora these functions would return C<rpm> (package "
8662 "format) and C<yum> (package management)."
8663 msgstr ""
8664
8665 # type: textblock
8666 #: ../src/guestfs-actions.pod:2703 ../fish/guestfish-actions.pod:1848
8667 msgid ""
8668 "This returns the string C<unknown> if we could not determine the package "
8669 "format I<or> if the operating system does not have a real packaging system "
8670 "(eg. Windows)."
8671 msgstr ""
8672
8673 # type: textblock
8674 #: ../src/guestfs-actions.pod:2707 ../fish/guestfish-actions.pod:1852
8675 msgid ""
8676 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>.  "
8677 "Future versions of libguestfs may return other strings."
8678 msgstr ""
8679
8680 # type: =head2
8681 #: ../src/guestfs-actions.pod:2715
8682 msgid "guestfs_inspect_get_package_management"
8683 msgstr ""
8684
8685 # type: verbatim
8686 #: ../src/guestfs-actions.pod:2717
8687 #, no-wrap
8688 msgid ""
8689 " char *\n"
8690 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
8691 "                                         const char *root);\n"
8692 "\n"
8693 msgstr ""
8694
8695 # type: textblock
8696 #: ../src/guestfs-actions.pod:2724
8697 msgid ""
8698 "C<guestfs_inspect_get_package_format> and this function return the package "
8699 "format and package management tool used by the inspected operating system.  "
8700 "For example for Fedora these functions would return C<rpm> (package format) "
8701 "and C<yum> (package management)."
8702 msgstr ""
8703
8704 # type: textblock
8705 #: ../src/guestfs-actions.pod:2730 ../fish/guestfish-actions.pod:1870
8706 msgid ""
8707 "This returns the string C<unknown> if we could not determine the package "
8708 "management tool I<or> if the operating system does not have a real packaging "
8709 "system (eg. Windows)."
8710 msgstr ""
8711
8712 # type: textblock
8713 #: ../src/guestfs-actions.pod:2734 ../fish/guestfish-actions.pod:1874
8714 msgid ""
8715 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
8716 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>.  Future versions of "
8717 "libguestfs may return other strings."
8718 msgstr ""
8719
8720 # type: =head2
8721 #: ../src/guestfs-actions.pod:2744
8722 msgid "guestfs_inspect_get_product_name"
8723 msgstr ""
8724
8725 # type: verbatim
8726 #: ../src/guestfs-actions.pod:2746
8727 #, no-wrap
8728 msgid ""
8729 " char *\n"
8730 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
8731 "                                   const char *root);\n"
8732 "\n"
8733 msgstr ""
8734
8735 # type: textblock
8736 #: ../src/guestfs-actions.pod:2753 ../fish/guestfish-actions.pod:1888
8737 msgid ""
8738 "This returns the product name of the inspected operating system.  The "
8739 "product name is generally some freeform string which can be displayed to the "
8740 "user, but should not be parsed by programs."
8741 msgstr ""
8742
8743 # type: textblock
8744 #: ../src/guestfs-actions.pod:2758 ../fish/guestfish-actions.pod:1893
8745 msgid ""
8746 "If the product name could not be determined, then the string C<unknown> is "
8747 "returned."
8748 msgstr ""
8749
8750 # type: =head2
8751 #: ../src/guestfs-actions.pod:2768
8752 msgid "guestfs_inspect_get_roots"
8753 msgstr ""
8754
8755 # type: verbatim
8756 #: ../src/guestfs-actions.pod:2770
8757 #, no-wrap
8758 msgid ""
8759 " char **\n"
8760 " guestfs_inspect_get_roots (guestfs_h *g);\n"
8761 "\n"
8762 msgstr ""
8763
8764 # type: textblock
8765 #: ../src/guestfs-actions.pod:2773
8766 msgid ""
8767 "This function is a convenient way to get the list of root devices, as "
8768 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
8769 "the whole inspection process."
8770 msgstr ""
8771
8772 # type: textblock
8773 #: ../src/guestfs-actions.pod:2777
8774 msgid ""
8775 "This returns an empty list if either no root devices were found or the "
8776 "caller has not called C<guestfs_inspect_os>."
8777 msgstr ""
8778
8779 # type: =head2
8780 #: ../src/guestfs-actions.pod:2786
8781 msgid "guestfs_inspect_get_type"
8782 msgstr ""
8783
8784 # type: verbatim
8785 #: ../src/guestfs-actions.pod:2788
8786 #, no-wrap
8787 msgid ""
8788 " char *\n"
8789 " guestfs_inspect_get_type (guestfs_h *g,\n"
8790 "                           const char *root);\n"
8791 "\n"
8792 msgstr ""
8793
8794 # type: textblock
8795 #: ../src/guestfs-actions.pod:2795 ../fish/guestfish-actions.pod:1918
8796 msgid ""
8797 "This returns the type of the inspected operating system.  Currently defined "
8798 "types are:"
8799 msgstr ""
8800
8801 # type: =item
8802 #: ../src/guestfs-actions.pod:2800 ../fish/guestfish-actions.pod:1923
8803 msgid "\"linux\""
8804 msgstr ""
8805
8806 # type: textblock
8807 #: ../src/guestfs-actions.pod:2802 ../fish/guestfish-actions.pod:1925
8808 msgid "Any Linux-based operating system."
8809 msgstr ""
8810
8811 # type: textblock
8812 #: ../src/guestfs-actions.pod:2806 ../fish/guestfish-actions.pod:1929
8813 msgid "Any Microsoft Windows operating system."
8814 msgstr ""
8815
8816 # type: =item
8817 #: ../src/guestfs-actions.pod:2808 ../fish/guestfish-actions.pod:1931
8818 msgid "\"freebsd\""
8819 msgstr ""
8820
8821 # type: textblock
8822 #: ../src/guestfs-actions.pod:2810 ../fish/guestfish-actions.pod:1933
8823 msgid "FreeBSD."
8824 msgstr ""
8825
8826 # type: textblock
8827 #: ../src/guestfs-actions.pod:2814 ../fish/guestfish-actions.pod:1937
8828 msgid "The operating system type could not be determined."
8829 msgstr ""
8830
8831 # type: =head2
8832 #: ../src/guestfs-actions.pod:2828
8833 msgid "guestfs_inspect_get_windows_systemroot"
8834 msgstr ""
8835
8836 # type: verbatim
8837 #: ../src/guestfs-actions.pod:2830
8838 #, no-wrap
8839 msgid ""
8840 " char *\n"
8841 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
8842 "                                         const char *root);\n"
8843 "\n"
8844 msgstr ""
8845
8846 # type: textblock
8847 #: ../src/guestfs-actions.pod:2837 ../fish/guestfish-actions.pod:1953
8848 msgid ""
8849 "This returns the Windows systemroot of the inspected guest.  The systemroot "
8850 "is a directory path such as C</WINDOWS>."
8851 msgstr ""
8852
8853 # type: textblock
8854 #: ../src/guestfs-actions.pod:2840 ../fish/guestfish-actions.pod:1956
8855 msgid ""
8856 "This call assumes that the guest is Windows and that the systemroot could be "
8857 "determined by inspection.  If this is not the case then an error is "
8858 "returned."
8859 msgstr ""
8860
8861 # type: textblock
8862 #: ../src/guestfs-actions.pod:2849
8863 msgid "(Added in 1.5.25)"
8864 msgstr ""
8865
8866 # type: =head2
8867 #: ../src/guestfs-actions.pod:2851
8868 msgid "guestfs_inspect_list_applications"
8869 msgstr ""
8870
8871 # type: verbatim
8872 #: ../src/guestfs-actions.pod:2853
8873 #, no-wrap
8874 msgid ""
8875 " struct guestfs_application_list *\n"
8876 " guestfs_inspect_list_applications (guestfs_h *g,\n"
8877 "                                    const char *root);\n"
8878 "\n"
8879 msgstr ""
8880
8881 # type: textblock
8882 #: ../src/guestfs-actions.pod:2860 ../fish/guestfish-actions.pod:1969
8883 msgid "Return the list of applications installed in the operating system."
8884 msgstr ""
8885
8886 # type: textblock
8887 #: ../src/guestfs-actions.pod:2862
8888 msgid ""
8889 "I<Note:> This call works differently from other parts of the inspection "
8890 "API.  You have to call C<guestfs_inspect_os>, then "
8891 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
8892 "this.  Listing applications is a significantly more difficult operation "
8893 "which requires access to the full filesystem.  Also note that unlike the "
8894 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
8895 "the libguestfs handle, this call actually reads parts of the mounted "
8896 "filesystems during the call."
8897 msgstr ""
8898
8899 # type: textblock
8900 #: ../src/guestfs-actions.pod:2872 ../fish/guestfish-actions.pod:1981
8901 msgid ""
8902 "This returns an empty list if the inspection code was not able to determine "
8903 "the list of applications."
8904 msgstr ""
8905
8906 # type: textblock
8907 #: ../src/guestfs-actions.pod:2875 ../fish/guestfish-actions.pod:1984
8908 msgid "The application structure contains the following fields:"
8909 msgstr ""
8910
8911 # type: =item
8912 #: ../src/guestfs-actions.pod:2879 ../fish/guestfish-actions.pod:1988
8913 msgid "C<app_name>"
8914 msgstr ""
8915
8916 # type: textblock
8917 #: ../src/guestfs-actions.pod:2881 ../fish/guestfish-actions.pod:1990
8918 msgid ""
8919 "The name of the application.  For Red Hat-derived and Debian-derived Linux "
8920 "guests, this is the package name."
8921 msgstr ""
8922
8923 # type: =item
8924 #: ../src/guestfs-actions.pod:2884 ../fish/guestfish-actions.pod:1993
8925 msgid "C<app_display_name>"
8926 msgstr ""
8927
8928 # type: textblock
8929 #: ../src/guestfs-actions.pod:2886 ../fish/guestfish-actions.pod:1995
8930 msgid ""
8931 "The display name of the application, sometimes localized to the install "
8932 "language of the guest operating system."
8933 msgstr ""
8934
8935 # type: textblock
8936 #: ../src/guestfs-actions.pod:2889 ../fish/guestfish-actions.pod:1998
8937 msgid ""
8938 "If unavailable this is returned as an empty string C<\"\">.  Callers needing "
8939 "to display something can use C<app_name> instead."
8940 msgstr ""
8941
8942 # type: =item
8943 #: ../src/guestfs-actions.pod:2892 ../fish/guestfish-actions.pod:2001
8944 msgid "C<app_epoch>"
8945 msgstr ""
8946
8947 # type: textblock
8948 #: ../src/guestfs-actions.pod:2894 ../fish/guestfish-actions.pod:2003
8949 msgid ""
8950 "For package managers which use epochs, this contains the epoch of the "
8951 "package (an integer).  If unavailable, this is returned as C<0>."
8952 msgstr ""
8953
8954 # type: =item
8955 #: ../src/guestfs-actions.pod:2897 ../fish/guestfish-actions.pod:2006
8956 msgid "C<app_version>"
8957 msgstr ""
8958
8959 # type: textblock
8960 #: ../src/guestfs-actions.pod:2899 ../fish/guestfish-actions.pod:2008
8961 msgid ""
8962 "The version string of the application or package.  If unavailable this is "
8963 "returned as an empty string C<\"\">."
8964 msgstr ""
8965
8966 # type: =item
8967 #: ../src/guestfs-actions.pod:2902 ../fish/guestfish-actions.pod:2011
8968 msgid "C<app_release>"
8969 msgstr ""
8970
8971 # type: textblock
8972 #: ../src/guestfs-actions.pod:2904 ../fish/guestfish-actions.pod:2013
8973 msgid ""
8974 "The release string of the application or package, for package managers that "
8975 "use this.  If unavailable this is returned as an empty string C<\"\">."
8976 msgstr ""
8977
8978 # type: =item
8979 #: ../src/guestfs-actions.pod:2908 ../fish/guestfish-actions.pod:2017
8980 msgid "C<app_install_path>"
8981 msgstr ""
8982
8983 # type: textblock
8984 #: ../src/guestfs-actions.pod:2910 ../fish/guestfish-actions.pod:2019
8985 msgid ""
8986 "The installation path of the application (on operating systems such as "
8987 "Windows which use installation paths).  This path is in the format used by "
8988 "the guest operating system, it is not a libguestfs path."
8989 msgstr ""
8990
8991 # type: textblock
8992 #: ../src/guestfs-actions.pod:2915 ../fish/guestfish-actions.pod:2024
8993 msgid "If unavailable this is returned as an empty string C<\"\">."
8994 msgstr ""
8995
8996 # type: =item
8997 #: ../src/guestfs-actions.pod:2917 ../fish/guestfish-actions.pod:2026
8998 msgid "C<app_trans_path>"
8999 msgstr ""
9000
9001 # type: textblock
9002 #: ../src/guestfs-actions.pod:2919 ../fish/guestfish-actions.pod:2028
9003 msgid ""
9004 "The install path translated into a libguestfs path.  If unavailable this is "
9005 "returned as an empty string C<\"\">."
9006 msgstr ""
9007
9008 # type: =item
9009 #: ../src/guestfs-actions.pod:2922 ../fish/guestfish-actions.pod:2031
9010 msgid "C<app_publisher>"
9011 msgstr ""
9012
9013 # type: textblock
9014 #: ../src/guestfs-actions.pod:2924 ../fish/guestfish-actions.pod:2033
9015 msgid ""
9016 "The name of the publisher of the application, for package managers that use "
9017 "this.  If unavailable this is returned as an empty string C<\"\">."
9018 msgstr ""
9019
9020 # type: =item
9021 #: ../src/guestfs-actions.pod:2928 ../fish/guestfish-actions.pod:2037
9022 msgid "C<app_url>"
9023 msgstr ""
9024
9025 # type: textblock
9026 #: ../src/guestfs-actions.pod:2930 ../fish/guestfish-actions.pod:2039
9027 msgid ""
9028 "The URL (eg. upstream URL) of the application.  If unavailable this is "
9029 "returned as an empty string C<\"\">."
9030 msgstr ""
9031
9032 # type: =item
9033 #: ../src/guestfs-actions.pod:2933 ../fish/guestfish-actions.pod:2042
9034 msgid "C<app_source_package>"
9035 msgstr ""
9036
9037 # type: textblock
9038 #: ../src/guestfs-actions.pod:2935 ../fish/guestfish-actions.pod:2044
9039 msgid ""
9040 "For packaging systems which support this, the name of the source package.  "
9041 "If unavailable this is returned as an empty string C<\"\">."
9042 msgstr ""
9043
9044 # type: =item
9045 #: ../src/guestfs-actions.pod:2938 ../fish/guestfish-actions.pod:2047
9046 msgid "C<app_summary>"
9047 msgstr ""
9048
9049 # type: textblock
9050 #: ../src/guestfs-actions.pod:2940 ../fish/guestfish-actions.pod:2049
9051 msgid ""
9052 "A short (usually one line) description of the application or package.  If "
9053 "unavailable this is returned as an empty string C<\"\">."
9054 msgstr ""
9055
9056 # type: =item
9057 #: ../src/guestfs-actions.pod:2943 ../fish/guestfish-actions.pod:2052
9058 msgid "C<app_description>"
9059 msgstr ""
9060
9061 # type: textblock
9062 #: ../src/guestfs-actions.pod:2945 ../fish/guestfish-actions.pod:2054
9063 msgid ""
9064 "A longer description of the application or package.  If unavailable this is "
9065 "returned as an empty string C<\"\">."
9066 msgstr ""
9067
9068 # type: textblock
9069 #: ../src/guestfs-actions.pod:2952
9070 msgid ""
9071 "This function returns a C<struct guestfs_application_list *>, or NULL if "
9072 "there was an error.  I<The caller must call C<guestfs_free_application_list> "
9073 "after use>."
9074 msgstr ""
9075
9076 # type: =head2
9077 #: ../src/guestfs-actions.pod:2956
9078 msgid "guestfs_inspect_os"
9079 msgstr ""
9080
9081 # type: verbatim
9082 #: ../src/guestfs-actions.pod:2958
9083 #, no-wrap
9084 msgid ""
9085 " char **\n"
9086 " guestfs_inspect_os (guestfs_h *g);\n"
9087 "\n"
9088 msgstr ""
9089
9090 # type: textblock
9091 #: ../src/guestfs-actions.pod:2961 ../fish/guestfish-actions.pod:2065
9092 msgid ""
9093 "This function uses other libguestfs functions and certain heuristics to "
9094 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
9095 "for operating systems."
9096 msgstr ""
9097
9098 # type: textblock
9099 #: ../src/guestfs-actions.pod:2965 ../fish/guestfish-actions.pod:2069
9100 msgid "The list returned is empty if no operating systems were found."
9101 msgstr ""
9102
9103 # type: textblock
9104 #: ../src/guestfs-actions.pod:2967 ../fish/guestfish-actions.pod:2071
9105 msgid ""
9106 "If one operating system was found, then this returns a list with a single "
9107 "element, which is the name of the root filesystem of this operating system.  "
9108 "It is also possible for this function to return a list containing more than "
9109 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
9110 "element being the root filesystem of one of the operating systems."
9111 msgstr ""
9112
9113 # type: textblock
9114 #: ../src/guestfs-actions.pod:2974
9115 msgid ""
9116 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
9117 "functions in order to query further information about each operating system, "
9118 "such as the name and version."
9119 msgstr ""
9120
9121 # type: textblock
9122 #: ../src/guestfs-actions.pod:2979
9123 msgid ""
9124 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
9125 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
9126 "the contents.  This should be called with no disks currently mounted.  The "
9127 "function may also use Augeas, so any existing Augeas handle will be closed."
9128 msgstr ""
9129
9130 # type: textblock
9131 #: ../src/guestfs-actions.pod:2985 ../fish/guestfish-actions.pod:2089
9132 msgid ""
9133 "This function cannot decrypt encrypted disks.  The caller must do that first "
9134 "(supplying the necessary keys) if the disk is encrypted."
9135 msgstr ""
9136
9137 # type: textblock
9138 #: ../src/guestfs-actions.pod:2991 ../src/guestfs-actions.pod:3246 ../src/guestfs-actions.pod:3308
9139 msgid "See also C<guestfs_list_filesystems>."
9140 msgstr ""
9141
9142 # type: =head2
9143 #: ../src/guestfs-actions.pod:2999
9144 msgid "guestfs_is_blockdev"
9145 msgstr ""
9146
9147 # type: verbatim
9148 #: ../src/guestfs-actions.pod:3001
9149 #, no-wrap
9150 msgid ""
9151 " int\n"
9152 " guestfs_is_blockdev (guestfs_h *g,\n"
9153 "                      const char *path);\n"
9154 "\n"
9155 msgstr ""
9156
9157 # type: textblock
9158 #: ../src/guestfs-actions.pod:3005 ../fish/guestfish-actions.pod:2101
9159 msgid ""
9160 "This returns C<true> if and only if there is a block device with the given "
9161 "C<path> name."
9162 msgstr ""
9163
9164 # type: textblock
9165 #: ../src/guestfs-actions.pod:3008 ../src/guestfs-actions.pod:3037 ../src/guestfs-actions.pod:3067 ../src/guestfs-actions.pod:3082 ../src/guestfs-actions.pod:3098 ../src/guestfs-actions.pod:3154 ../src/guestfs-actions.pod:3169
9166 msgid "See also C<guestfs_stat>."
9167 msgstr ""
9168
9169 # type: textblock
9170 #: ../src/guestfs-actions.pod:3012 ../src/guestfs-actions.pod:3041 ../src/guestfs-actions.pod:3086 ../src/guestfs-actions.pod:3158 ../src/guestfs-actions.pod:3173
9171 msgid "(Added in 1.5.10)"
9172 msgstr ""
9173
9174 # type: =head2
9175 #: ../src/guestfs-actions.pod:3014
9176 msgid "guestfs_is_busy"
9177 msgstr ""
9178
9179 # type: verbatim
9180 #: ../src/guestfs-actions.pod:3016
9181 #, no-wrap
9182 msgid ""
9183 " int\n"
9184 " guestfs_is_busy (guestfs_h *g);\n"
9185 "\n"
9186 msgstr ""
9187
9188 # type: textblock
9189 #: ../src/guestfs-actions.pod:3019 ../fish/guestfish-actions.pod:2110
9190 msgid ""
9191 "This returns true iff this handle is busy processing a command (in the "
9192 "C<BUSY> state)."
9193 msgstr ""
9194
9195 # type: =head2
9196 #: ../src/guestfs-actions.pod:3028
9197 msgid "guestfs_is_chardev"
9198 msgstr ""
9199
9200 # type: verbatim
9201 #: ../src/guestfs-actions.pod:3030
9202 #, no-wrap
9203 msgid ""
9204 " int\n"
9205 " guestfs_is_chardev (guestfs_h *g,\n"
9206 "                     const char *path);\n"
9207 "\n"
9208 msgstr ""
9209
9210 # type: textblock
9211 #: ../src/guestfs-actions.pod:3034 ../fish/guestfish-actions.pod:2119
9212 msgid ""
9213 "This returns C<true> if and only if there is a character device with the "
9214 "given C<path> name."
9215 msgstr ""
9216
9217 # type: =head2
9218 #: ../src/guestfs-actions.pod:3043
9219 msgid "guestfs_is_config"
9220 msgstr ""
9221
9222 # type: verbatim
9223 #: ../src/guestfs-actions.pod:3045
9224 #, no-wrap
9225 msgid ""
9226 " int\n"
9227 " guestfs_is_config (guestfs_h *g);\n"
9228 "\n"
9229 msgstr ""
9230
9231 # type: textblock
9232 #: ../src/guestfs-actions.pod:3048 ../fish/guestfish-actions.pod:2128
9233 msgid ""
9234 "This returns true iff this handle is being configured (in the C<CONFIG> "
9235 "state)."
9236 msgstr ""
9237
9238 # type: =head2
9239 #: ../src/guestfs-actions.pod:3057
9240 msgid "guestfs_is_dir"
9241 msgstr ""
9242
9243 # type: verbatim
9244 #: ../src/guestfs-actions.pod:3059
9245 #, no-wrap
9246 msgid ""
9247 " int\n"
9248 " guestfs_is_dir (guestfs_h *g,\n"
9249 "                 const char *path);\n"
9250 "\n"
9251 msgstr ""
9252
9253 # type: textblock
9254 #: ../src/guestfs-actions.pod:3063 ../fish/guestfish-actions.pod:2137
9255 msgid ""
9256 "This returns C<true> if and only if there is a directory with the given "
9257 "C<path> name.  Note that it returns false for other objects like files."
9258 msgstr ""
9259
9260 # type: =head2
9261 #: ../src/guestfs-actions.pod:3073
9262 msgid "guestfs_is_fifo"
9263 msgstr ""
9264
9265 # type: verbatim
9266 #: ../src/guestfs-actions.pod:3075
9267 #, no-wrap
9268 msgid ""
9269 " int\n"
9270 " guestfs_is_fifo (guestfs_h *g,\n"
9271 "                  const char *path);\n"
9272 "\n"
9273 msgstr ""
9274
9275 # type: textblock
9276 #: ../src/guestfs-actions.pod:3079 ../fish/guestfish-actions.pod:2147
9277 msgid ""
9278 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
9279 "given C<path> name."
9280 msgstr ""
9281
9282 # type: =head2
9283 #: ../src/guestfs-actions.pod:3088
9284 msgid "guestfs_is_file"
9285 msgstr ""
9286
9287 # type: verbatim
9288 #: ../src/guestfs-actions.pod:3090
9289 #, no-wrap
9290 msgid ""
9291 " int\n"
9292 " guestfs_is_file (guestfs_h *g,\n"
9293 "                  const char *path);\n"
9294 "\n"
9295 msgstr ""
9296
9297 # type: textblock
9298 #: ../src/guestfs-actions.pod:3094 ../fish/guestfish-actions.pod:2156
9299 msgid ""
9300 "This returns C<true> if and only if there is a regular file with the given "
9301 "C<path> name.  Note that it returns false for other objects like "
9302 "directories."
9303 msgstr ""
9304
9305 # type: =head2
9306 #: ../src/guestfs-actions.pod:3104
9307 msgid "guestfs_is_launching"
9308 msgstr ""
9309
9310 # type: verbatim
9311 #: ../src/guestfs-actions.pod:3106
9312 #, no-wrap
9313 msgid ""
9314 " int\n"
9315 " guestfs_is_launching (guestfs_h *g);\n"
9316 "\n"
9317 msgstr ""
9318
9319 # type: textblock
9320 #: ../src/guestfs-actions.pod:3109 ../fish/guestfish-actions.pod:2166
9321 msgid ""
9322 "This returns true iff this handle is launching the subprocess (in the "
9323 "C<LAUNCHING> state)."
9324 msgstr ""
9325
9326 # type: =head2
9327 #: ../src/guestfs-actions.pod:3118
9328 msgid "guestfs_is_lv"
9329 msgstr ""
9330
9331 # type: verbatim
9332 #: ../src/guestfs-actions.pod:3120
9333 #, no-wrap
9334 msgid ""
9335 " int\n"
9336 " guestfs_is_lv (guestfs_h *g,\n"
9337 "                const char *device);\n"
9338 "\n"
9339 msgstr ""
9340
9341 # type: textblock
9342 #: ../src/guestfs-actions.pod:3124 ../fish/guestfish-actions.pod:2175
9343 msgid ""
9344 "This command tests whether C<device> is a logical volume, and returns true "
9345 "iff this is the case."
9346 msgstr ""
9347
9348 # type: =head2
9349 #: ../src/guestfs-actions.pod:3131
9350 msgid "guestfs_is_ready"
9351 msgstr ""
9352
9353 # type: verbatim
9354 #: ../src/guestfs-actions.pod:3133
9355 #, no-wrap
9356 msgid ""
9357 " int\n"
9358 " guestfs_is_ready (guestfs_h *g);\n"
9359 "\n"
9360 msgstr ""
9361
9362 # type: textblock
9363 #: ../src/guestfs-actions.pod:3136 ../fish/guestfish-actions.pod:2182
9364 msgid ""
9365 "This returns true iff this handle is ready to accept commands (in the "
9366 "C<READY> state)."
9367 msgstr ""
9368
9369 # type: =head2
9370 #: ../src/guestfs-actions.pod:3145
9371 msgid "guestfs_is_socket"
9372 msgstr ""
9373
9374 # type: verbatim
9375 #: ../src/guestfs-actions.pod:3147
9376 #, no-wrap
9377 msgid ""
9378 " int\n"
9379 " guestfs_is_socket (guestfs_h *g,\n"
9380 "                    const char *path);\n"
9381 "\n"
9382 msgstr ""
9383
9384 # type: textblock
9385 #: ../src/guestfs-actions.pod:3151 ../fish/guestfish-actions.pod:2191
9386 msgid ""
9387 "This returns C<true> if and only if there is a Unix domain socket with the "
9388 "given C<path> name."
9389 msgstr ""
9390
9391 # type: =head2
9392 #: ../src/guestfs-actions.pod:3160
9393 msgid "guestfs_is_symlink"
9394 msgstr ""
9395
9396 # type: verbatim
9397 #: ../src/guestfs-actions.pod:3162
9398 #, no-wrap
9399 msgid ""
9400 " int\n"
9401 " guestfs_is_symlink (guestfs_h *g,\n"
9402 "                     const char *path);\n"
9403 "\n"
9404 msgstr ""
9405
9406 # type: textblock
9407 #: ../src/guestfs-actions.pod:3166 ../fish/guestfish-actions.pod:2200
9408 msgid ""
9409 "This returns C<true> if and only if there is a symbolic link with the given "
9410 "C<path> name."
9411 msgstr ""
9412
9413 # type: =head2
9414 #: ../src/guestfs-actions.pod:3175
9415 msgid "guestfs_kill_subprocess"
9416 msgstr ""
9417
9418 # type: verbatim
9419 #: ../src/guestfs-actions.pod:3177
9420 #, no-wrap
9421 msgid ""
9422 " int\n"
9423 " guestfs_kill_subprocess (guestfs_h *g);\n"
9424 "\n"
9425 msgstr ""
9426
9427 # type: textblock
9428 #: ../src/guestfs-actions.pod:3180 ../fish/guestfish-actions.pod:2209
9429 msgid "This kills the qemu subprocess.  You should never need to call this."
9430 msgstr ""
9431
9432 # type: =head2
9433 #: ../src/guestfs-actions.pod:3186
9434 msgid "guestfs_launch"
9435 msgstr ""
9436
9437 # type: verbatim
9438 #: ../src/guestfs-actions.pod:3188
9439 #, no-wrap
9440 msgid ""
9441 " int\n"
9442 " guestfs_launch (guestfs_h *g);\n"
9443 "\n"
9444 msgstr ""
9445
9446 # type: textblock
9447 #: ../src/guestfs-actions.pod:3191 ../fish/guestfish-actions.pod:2217
9448 msgid ""
9449 "Internally libguestfs is implemented by running a virtual machine using "
9450 "L<qemu(1)>."
9451 msgstr ""
9452
9453 # type: textblock
9454 #: ../src/guestfs-actions.pod:3194 ../fish/guestfish-actions.pod:2220
9455 msgid ""
9456 "You should call this after configuring the handle (eg. adding drives) but "
9457 "before performing any actions."
9458 msgstr ""
9459
9460 # type: =head2
9461 #: ../src/guestfs-actions.pod:3201
9462 msgid "guestfs_lchown"
9463 msgstr ""
9464
9465 # type: verbatim
9466 #: ../src/guestfs-actions.pod:3203
9467 #, no-wrap
9468 msgid ""
9469 " int\n"
9470 " guestfs_lchown (guestfs_h *g,\n"
9471 "                 int owner,\n"
9472 "                 int group,\n"
9473 "                 const char *path);\n"
9474 "\n"
9475 msgstr ""
9476
9477 # type: textblock
9478 #: ../src/guestfs-actions.pod:3209
9479 msgid ""
9480 "Change the file owner to C<owner> and group to C<group>.  This is like "
9481 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
9482 "changed, not the target."
9483 msgstr ""
9484
9485 # type: =head2
9486 #: ../src/guestfs-actions.pod:3221
9487 msgid "guestfs_lgetxattrs"
9488 msgstr ""
9489
9490 # type: verbatim
9491 #: ../src/guestfs-actions.pod:3223
9492 #, no-wrap
9493 msgid ""
9494 " struct guestfs_xattr_list *\n"
9495 " guestfs_lgetxattrs (guestfs_h *g,\n"
9496 "                     const char *path);\n"
9497 "\n"
9498 msgstr ""
9499
9500 # type: textblock
9501 #: ../src/guestfs-actions.pod:3227
9502 msgid ""
9503 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
9504 "then it returns the extended attributes of the link itself."
9505 msgstr ""
9506
9507 # type: =head2
9508 #: ../src/guestfs-actions.pod:3237
9509 msgid "guestfs_list_devices"
9510 msgstr ""
9511
9512 # type: verbatim
9513 #: ../src/guestfs-actions.pod:3239
9514 #, no-wrap
9515 msgid ""
9516 " char **\n"
9517 " guestfs_list_devices (guestfs_h *g);\n"
9518 "\n"
9519 msgstr ""
9520
9521 # type: textblock
9522 #: ../src/guestfs-actions.pod:3242 ../fish/guestfish-actions.pod:2247
9523 msgid "List all the block devices."
9524 msgstr ""
9525
9526 # type: textblock
9527 #: ../src/guestfs-actions.pod:3244 ../fish/guestfish-actions.pod:2249
9528 msgid "The full block device names are returned, eg. C</dev/sda>."
9529 msgstr ""
9530
9531 # type: =head2
9532 #: ../src/guestfs-actions.pod:3254
9533 msgid "guestfs_list_filesystems"
9534 msgstr ""
9535
9536 # type: verbatim
9537 #: ../src/guestfs-actions.pod:3256
9538 #, no-wrap
9539 msgid ""
9540 " char **\n"
9541 " guestfs_list_filesystems (guestfs_h *g);\n"
9542 "\n"
9543 msgstr ""
9544
9545 # type: textblock
9546 #: ../src/guestfs-actions.pod:3259 ../fish/guestfish-actions.pod:2257
9547 msgid ""
9548 "This inspection command looks for filesystems on partitions, block devices "
9549 "and logical volumes, returning a list of devices containing filesystems and "
9550 "their type."
9551 msgstr ""
9552
9553 # type: textblock
9554 #: ../src/guestfs-actions.pod:3263 ../fish/guestfish-actions.pod:2261
9555 msgid ""
9556 "The return value is a hash, where the keys are the devices containing "
9557 "filesystems, and the values are the filesystem types.  For example:"
9558 msgstr ""
9559
9560 # type: verbatim
9561 #: ../src/guestfs-actions.pod:3267 ../fish/guestfish-actions.pod:2265
9562 #, no-wrap
9563 msgid ""
9564 " \"/dev/sda1\" => \"ntfs\"\n"
9565 " \"/dev/sda2\" => \"ext2\"\n"
9566 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
9567 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
9568 "\n"
9569 msgstr ""
9570
9571 # type: textblock
9572 #: ../src/guestfs-actions.pod:3272 ../fish/guestfish-actions.pod:2270
9573 msgid ""
9574 "The value can have the special value \"unknown\", meaning the content of the "
9575 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
9576 msgstr ""
9577
9578 # type: textblock
9579 #: ../src/guestfs-actions.pod:3276
9580 msgid ""
9581 "This command runs other libguestfs commands, which might include "
9582 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
9583 "soon after launch and only when nothing is mounted."
9584 msgstr ""
9585
9586 # type: textblock
9587 #: ../src/guestfs-actions.pod:3280
9588 msgid ""
9589 "Not all of the filesystems returned will be mountable.  In particular, swap "
9590 "partitions are returned in the list.  Also this command does not check that "
9591 "each filesystem found is valid and mountable, and some filesystems might be "
9592 "mountable but require special options.  Filesystems may not all belong to a "
9593 "single logical operating system (use C<guestfs_inspect_os> to look for "
9594 "OSes)."
9595 msgstr ""
9596
9597 # type: textblock
9598 #: ../src/guestfs-actions.pod:3294 ../src/guestfs-actions.pod:4817
9599 msgid "(Added in 1.5.15)"
9600 msgstr ""
9601
9602 # type: =head2
9603 #: ../src/guestfs-actions.pod:3296
9604 msgid "guestfs_list_partitions"
9605 msgstr ""
9606
9607 # type: verbatim
9608 #: ../src/guestfs-actions.pod:3298
9609 #, no-wrap
9610 msgid ""
9611 " char **\n"
9612 " guestfs_list_partitions (guestfs_h *g);\n"
9613 "\n"
9614 msgstr ""
9615
9616 # type: textblock
9617 #: ../src/guestfs-actions.pod:3301 ../fish/guestfish-actions.pod:2290
9618 msgid "List all the partitions detected on all block devices."
9619 msgstr ""
9620
9621 # type: textblock
9622 #: ../src/guestfs-actions.pod:3303 ../fish/guestfish-actions.pod:2292
9623 msgid "The full partition device names are returned, eg. C</dev/sda1>"
9624 msgstr ""
9625
9626 # type: textblock
9627 #: ../src/guestfs-actions.pod:3305
9628 msgid ""
9629 "This does not return logical volumes.  For that you will need to call "
9630 "C<guestfs_lvs>."
9631 msgstr ""
9632
9633 # type: =head2
9634 #: ../src/guestfs-actions.pod:3316
9635 msgid "guestfs_ll"
9636 msgstr ""
9637
9638 # type: verbatim
9639 #: ../src/guestfs-actions.pod:3318
9640 #, no-wrap
9641 msgid ""
9642 " char *\n"
9643 " guestfs_ll (guestfs_h *g,\n"
9644 "             const char *directory);\n"
9645 "\n"
9646 msgstr ""
9647
9648 # type: textblock
9649 #: ../src/guestfs-actions.pod:3322 ../fish/guestfish-actions.pod:2303
9650 msgid ""
9651 "List the files in C<directory> (relative to the root directory, there is no "
9652 "cwd) in the format of 'ls -la'."
9653 msgstr ""
9654
9655 # type: textblock
9656 #: ../src/guestfs-actions.pod:3325 ../fish/guestfish-actions.pod:2306
9657 msgid ""
9658 "This command is mostly useful for interactive sessions.  It is I<not> "
9659 "intended that you try to parse the output string."
9660 msgstr ""
9661
9662 # type: =head2
9663 #: ../src/guestfs-actions.pod:3333
9664 msgid "guestfs_ln"
9665 msgstr ""
9666
9667 # type: verbatim
9668 #: ../src/guestfs-actions.pod:3335
9669 #, no-wrap
9670 msgid ""
9671 " int\n"
9672 " guestfs_ln (guestfs_h *g,\n"
9673 "             const char *target,\n"
9674 "             const char *linkname);\n"
9675 "\n"
9676 msgstr ""
9677
9678 # type: textblock
9679 #: ../src/guestfs-actions.pod:3340 ../fish/guestfish-actions.pod:2313
9680 msgid "This command creates a hard link using the C<ln> command."
9681 msgstr ""
9682
9683 # type: =head2
9684 #: ../src/guestfs-actions.pod:3346
9685 msgid "guestfs_ln_f"
9686 msgstr ""
9687
9688 # type: verbatim
9689 #: ../src/guestfs-actions.pod:3348
9690 #, no-wrap
9691 msgid ""
9692 " int\n"
9693 " guestfs_ln_f (guestfs_h *g,\n"
9694 "               const char *target,\n"
9695 "               const char *linkname);\n"
9696 "\n"
9697 msgstr ""
9698
9699 # type: textblock
9700 #: ../src/guestfs-actions.pod:3353 ../fish/guestfish-actions.pod:2319
9701 msgid ""
9702 "This command creates a hard link using the C<ln -f> command.  The C<-f> "
9703 "option removes the link (C<linkname>) if it exists already."
9704 msgstr ""
9705
9706 # type: =head2
9707 #: ../src/guestfs-actions.pod:3360
9708 msgid "guestfs_ln_s"
9709 msgstr ""
9710
9711 # type: verbatim
9712 #: ../src/guestfs-actions.pod:3362
9713 #, no-wrap
9714 msgid ""
9715 " int\n"
9716 " guestfs_ln_s (guestfs_h *g,\n"
9717 "               const char *target,\n"
9718 "               const char *linkname);\n"
9719 "\n"
9720 msgstr ""
9721
9722 # type: textblock
9723 #: ../src/guestfs-actions.pod:3367 ../fish/guestfish-actions.pod:2326
9724 msgid "This command creates a symbolic link using the C<ln -s> command."
9725 msgstr ""
9726
9727 # type: =head2
9728 #: ../src/guestfs-actions.pod:3373
9729 msgid "guestfs_ln_sf"
9730 msgstr ""
9731
9732 # type: verbatim
9733 #: ../src/guestfs-actions.pod:3375
9734 #, no-wrap
9735 msgid ""
9736 " int\n"
9737 " guestfs_ln_sf (guestfs_h *g,\n"
9738 "                const char *target,\n"
9739 "                const char *linkname);\n"
9740 "\n"
9741 msgstr ""
9742
9743 # type: textblock
9744 #: ../src/guestfs-actions.pod:3380 ../fish/guestfish-actions.pod:2332
9745 msgid ""
9746 "This command creates a symbolic link using the C<ln -sf> command, The C<-f> "
9747 "option removes the link (C<linkname>) if it exists already."
9748 msgstr ""
9749
9750 # type: =head2
9751 #: ../src/guestfs-actions.pod:3387
9752 msgid "guestfs_lremovexattr"
9753 msgstr ""
9754
9755 # type: verbatim
9756 #: ../src/guestfs-actions.pod:3389
9757 #, no-wrap
9758 msgid ""
9759 " int\n"
9760 " guestfs_lremovexattr (guestfs_h *g,\n"
9761 "                       const char *xattr,\n"
9762 "                       const char *path);\n"
9763 "\n"
9764 msgstr ""
9765
9766 # type: textblock
9767 #: ../src/guestfs-actions.pod:3394
9768 msgid ""
9769 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
9770 "link, then it removes an extended attribute of the link itself."
9771 msgstr ""
9772
9773 # type: =head2
9774 #: ../src/guestfs-actions.pod:3402
9775 msgid "guestfs_ls"
9776 msgstr ""
9777
9778 # type: verbatim
9779 #: ../src/guestfs-actions.pod:3404
9780 #, no-wrap
9781 msgid ""
9782 " char **\n"
9783 " guestfs_ls (guestfs_h *g,\n"
9784 "             const char *directory);\n"
9785 "\n"
9786 msgstr ""
9787
9788 # type: textblock
9789 #: ../src/guestfs-actions.pod:3408 ../fish/guestfish-actions.pod:2347
9790 msgid ""
9791 "List the files in C<directory> (relative to the root directory, there is no "
9792 "cwd).  The '.' and '..' entries are not returned, but hidden files are "
9793 "shown."
9794 msgstr ""
9795
9796 # type: textblock
9797 #: ../src/guestfs-actions.pod:3412
9798 msgid ""
9799 "This command is mostly useful for interactive sessions.  Programs should "
9800 "probably use C<guestfs_readdir> instead."
9801 msgstr ""
9802
9803 # type: =head2
9804 #: ../src/guestfs-actions.pod:3421
9805 msgid "guestfs_lsetxattr"
9806 msgstr ""
9807
9808 # type: verbatim
9809 #: ../src/guestfs-actions.pod:3423
9810 #, no-wrap
9811 msgid ""
9812 " int\n"
9813 " guestfs_lsetxattr (guestfs_h *g,\n"
9814 "                    const char *xattr,\n"
9815 "                    const char *val,\n"
9816 "                    int vallen,\n"
9817 "                    const char *path);\n"
9818 "\n"
9819 msgstr ""
9820
9821 # type: textblock
9822 #: ../src/guestfs-actions.pod:3430
9823 msgid ""
9824 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
9825 "then it sets an extended attribute of the link itself."
9826 msgstr ""
9827
9828 # type: =head2
9829 #: ../src/guestfs-actions.pod:3438
9830 msgid "guestfs_lstat"
9831 msgstr ""
9832
9833 # type: verbatim
9834 #: ../src/guestfs-actions.pod:3440
9835 #, no-wrap
9836 msgid ""
9837 " struct guestfs_stat *\n"
9838 " guestfs_lstat (guestfs_h *g,\n"
9839 "                const char *path);\n"
9840 "\n"
9841 msgstr ""
9842
9843 # type: textblock
9844 #: ../src/guestfs-actions.pod:3444 ../src/guestfs-actions.pod:5871 ../fish/guestfish-actions.pod:2366 ../fish/guestfish-actions.pod:3948
9845 msgid "Returns file information for the given C<path>."
9846 msgstr ""
9847
9848 # type: textblock
9849 #: ../src/guestfs-actions.pod:3446
9850 msgid ""
9851 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
9852 "link, then the link is stat-ed, not the file it refers to."
9853 msgstr ""
9854
9855 # type: textblock
9856 #: ../src/guestfs-actions.pod:3450 ../fish/guestfish-actions.pod:2372
9857 msgid "This is the same as the C<lstat(2)> system call."
9858 msgstr ""
9859
9860 # type: textblock
9861 #: ../src/guestfs-actions.pod:3452 ../src/guestfs-actions.pod:5875
9862 msgid ""
9863 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
9864 "error.  I<The caller must call C<guestfs_free_stat> after use>."
9865 msgstr ""
9866
9867 # type: textblock
9868 #: ../src/guestfs-actions.pod:3456 ../src/guestfs-actions.pod:5879 ../src/guestfs-actions.pod:5897 ../src/guestfs-actions.pod:6278
9869 msgid "(Added in 0.9.2)"
9870 msgstr ""
9871
9872 # type: =head2
9873 #: ../src/guestfs-actions.pod:3458
9874 msgid "guestfs_lstatlist"
9875 msgstr ""
9876
9877 # type: verbatim
9878 #: ../src/guestfs-actions.pod:3460
9879 #, no-wrap
9880 msgid ""
9881 " struct guestfs_stat_list *\n"
9882 " guestfs_lstatlist (guestfs_h *g,\n"
9883 "                    const char *path,\n"
9884 "                    char *const *names);\n"
9885 "\n"
9886 msgstr ""
9887
9888 # type: textblock
9889 #: ../src/guestfs-actions.pod:3465
9890 msgid ""
9891 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
9892 "files, where all files are in the directory C<path>.  C<names> is the list "
9893 "of files from this directory."
9894 msgstr ""
9895
9896 # type: textblock
9897 #: ../src/guestfs-actions.pod:3469 ../fish/guestfish-actions.pod:2382
9898 msgid ""
9899 "On return you get a list of stat structs, with a one-to-one correspondence "
9900 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
9901 "then the C<ino> field of that structure is set to C<-1>."
9902 msgstr ""
9903
9904 # type: textblock
9905 #: ../src/guestfs-actions.pod:3474
9906 msgid ""
9907 "This call is intended for programs that want to efficiently list a directory "
9908 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
9909 "for a similarly efficient call for getting extended attributes.  Very long "
9910 "directory listings might cause the protocol message size to be exceeded, "
9911 "causing this call to fail.  The caller must split up such requests into "
9912 "smaller groups of names."
9913 msgstr ""
9914
9915 # type: textblock
9916 #: ../src/guestfs-actions.pod:3482
9917 msgid ""
9918 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
9919 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
9920 msgstr ""
9921
9922 # type: =head2
9923 #: ../src/guestfs-actions.pod:3488
9924 msgid "guestfs_luks_add_key"
9925 msgstr ""
9926
9927 # type: verbatim
9928 #: ../src/guestfs-actions.pod:3490
9929 #, no-wrap
9930 msgid ""
9931 " int\n"
9932 " guestfs_luks_add_key (guestfs_h *g,\n"
9933 "                       const char *device,\n"
9934 "                       const char *key,\n"
9935 "                       const char *newkey,\n"
9936 "                       int keyslot);\n"
9937 "\n"
9938 msgstr ""
9939
9940 # type: textblock
9941 #: ../src/guestfs-actions.pod:3497 ../fish/guestfish-actions.pod:2399
9942 msgid ""
9943 "This command adds a new key on LUKS device C<device>.  C<key> is any "
9944 "existing key, and is used to access the device.  C<newkey> is the new key to "
9945 "add.  C<keyslot> is the key slot that will be replaced."
9946 msgstr ""
9947
9948 # type: textblock
9949 #: ../src/guestfs-actions.pod:3502
9950 msgid ""
9951 "Note that if C<keyslot> already contains a key, then this command will "
9952 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
9953 msgstr ""
9954
9955 # type: textblock
9956 #: ../src/guestfs-actions.pod:3508 ../src/guestfs-actions.pod:3548 ../src/guestfs-actions.pod:3571 ../src/guestfs-actions.pod:3591 ../src/guestfs-actions.pod:3623 ../src/guestfs-actions.pod:3642
9957 msgid ""
9958 "This function takes a key or passphrase parameter which could contain "
9959 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
9960 "information."
9961 msgstr ""
9962
9963 # type: textblock
9964 #: ../src/guestfs-actions.pod:3512 ../src/guestfs-actions.pod:3552 ../src/guestfs-actions.pod:3575 ../src/guestfs-actions.pod:3595
9965 msgid "(Added in 1.5.2)"
9966 msgstr ""
9967
9968 # type: =head2
9969 #: ../src/guestfs-actions.pod:3514
9970 msgid "guestfs_luks_close"
9971 msgstr ""
9972
9973 # type: verbatim
9974 #: ../src/guestfs-actions.pod:3516
9975 #, no-wrap
9976 msgid ""
9977 " int\n"
9978 " guestfs_luks_close (guestfs_h *g,\n"
9979 "                     const char *device);\n"
9980 "\n"
9981 msgstr ""
9982
9983 # type: textblock
9984 #: ../src/guestfs-actions.pod:3520
9985 msgid ""
9986 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
9987 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
9988 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
9989 "underlying block device."
9990 msgstr ""
9991
9992 # type: textblock
9993 #: ../src/guestfs-actions.pod:3528 ../src/guestfs-actions.pod:3627 ../src/guestfs-actions.pod:3646 ../src/guestfs-actions.pod:3696 ../src/guestfs-actions.pod:3744
9994 msgid "(Added in 1.5.1)"
9995 msgstr ""
9996
9997 # type: =head2
9998 #: ../src/guestfs-actions.pod:3530
9999 msgid "guestfs_luks_format"
10000 msgstr ""
10001
10002 # type: verbatim
10003 #: ../src/guestfs-actions.pod:3532
10004 #, no-wrap
10005 msgid ""
10006 " int\n"
10007 " guestfs_luks_format (guestfs_h *g,\n"
10008 "                      const char *device,\n"
10009 "                      const char *key,\n"
10010 "                      int keyslot);\n"
10011 "\n"
10012 msgstr ""
10013
10014 # type: textblock
10015 #: ../src/guestfs-actions.pod:3538 ../fish/guestfish-actions.pod:2425
10016 msgid ""
10017 "This command erases existing data on C<device> and formats the device as a "
10018 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
10019 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
10020 msgstr ""
10021
10022 # type: textblock
10023 #: ../src/guestfs-actions.pod:3545 ../src/guestfs-actions.pod:3568 ../src/guestfs-actions.pod:3708 ../src/guestfs-actions.pod:4568 ../src/guestfs-actions.pod:5331 ../src/guestfs-actions.pod:5706 ../src/guestfs-actions.pod:5729 ../src/guestfs-actions.pod:5755 ../src/guestfs-actions.pod:6905 ../fish/guestfish-actions.pod:2433 ../fish/guestfish-actions.pod:2446 ../fish/guestfish-actions.pod:2530 ../fish/guestfish-actions.pod:3060 ../fish/guestfish-actions.pod:3567 ../fish/guestfish-actions.pod:3847 ../fish/guestfish-actions.pod:3863 ../fish/guestfish-actions.pod:3878 ../fish/guestfish-actions.pod:4593
10024 msgid ""
10025 "B<This command is dangerous.  Without careful use you can easily destroy all "
10026 "your data>."
10027 msgstr ""
10028
10029 # type: =head2
10030 #: ../src/guestfs-actions.pod:3554
10031 msgid "guestfs_luks_format_cipher"
10032 msgstr ""
10033
10034 # type: verbatim
10035 #: ../src/guestfs-actions.pod:3556
10036 #, no-wrap
10037 msgid ""
10038 " int\n"
10039 " guestfs_luks_format_cipher (guestfs_h *g,\n"
10040 "                             const char *device,\n"
10041 "                             const char *key,\n"
10042 "                             int keyslot,\n"
10043 "                             const char *cipher);\n"
10044 "\n"
10045 msgstr ""
10046
10047 # type: textblock
10048 #: ../src/guestfs-actions.pod:3563
10049 msgid ""
10050 "This command is the same as C<guestfs_luks_format> but it also allows you to "
10051 "set the C<cipher> used."
10052 msgstr ""
10053
10054 # type: =head2
10055 #: ../src/guestfs-actions.pod:3577
10056 msgid "guestfs_luks_kill_slot"
10057 msgstr ""
10058
10059 # type: verbatim
10060 #: ../src/guestfs-actions.pod:3579
10061 #, no-wrap
10062 msgid ""
10063 " int\n"
10064 " guestfs_luks_kill_slot (guestfs_h *g,\n"
10065 "                         const char *device,\n"
10066 "                         const char *key,\n"
10067 "                         int keyslot);\n"
10068 "\n"
10069 msgstr ""
10070
10071 # type: textblock
10072 #: ../src/guestfs-actions.pod:3585 ../fish/guestfish-actions.pod:2453
10073 msgid ""
10074 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
10075 "device C<device>.  C<key> must be one of the I<other> keys."
10076 msgstr ""
10077
10078 # type: =head2
10079 #: ../src/guestfs-actions.pod:3597
10080 msgid "guestfs_luks_open"
10081 msgstr ""
10082
10083 # type: verbatim
10084 #: ../src/guestfs-actions.pod:3599
10085 #, no-wrap
10086 msgid ""
10087 " int\n"
10088 " guestfs_luks_open (guestfs_h *g,\n"
10089 "                    const char *device,\n"
10090 "                    const char *key,\n"
10091 "                    const char *mapname);\n"
10092 "\n"
10093 msgstr ""
10094
10095 # type: textblock
10096 #: ../src/guestfs-actions.pod:3605 ../fish/guestfish-actions.pod:2464
10097 msgid ""
10098 "This command opens a block device which has been encrypted according to the "
10099 "Linux Unified Key Setup (LUKS) standard."
10100 msgstr ""
10101
10102 # type: textblock
10103 #: ../src/guestfs-actions.pod:3608 ../fish/guestfish-actions.pod:2467
10104 msgid "C<device> is the encrypted block device or partition."
10105 msgstr ""
10106
10107 # type: textblock
10108 #: ../src/guestfs-actions.pod:3610 ../fish/guestfish-actions.pod:2469
10109 msgid ""
10110 "The caller must supply one of the keys associated with the LUKS block "
10111 "device, in the C<key> parameter."
10112 msgstr ""
10113
10114 # type: textblock
10115 #: ../src/guestfs-actions.pod:3613 ../fish/guestfish-actions.pod:2472
10116 msgid ""
10117 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
10118 "writes to this block device are decrypted from and encrypted to the "
10119 "underlying C<device> respectively."
10120 msgstr ""
10121
10122 # type: textblock
10123 #: ../src/guestfs-actions.pod:3617
10124 msgid ""
10125 "If this block device contains LVM volume groups, then calling "
10126 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
10127 "visible."
10128 msgstr ""
10129
10130 # type: =head2
10131 #: ../src/guestfs-actions.pod:3629
10132 msgid "guestfs_luks_open_ro"
10133 msgstr ""
10134
10135 # type: verbatim
10136 #: ../src/guestfs-actions.pod:3631
10137 #, no-wrap
10138 msgid ""
10139 " int\n"
10140 " guestfs_luks_open_ro (guestfs_h *g,\n"
10141 "                       const char *device,\n"
10142 "                       const char *key,\n"
10143 "                       const char *mapname);\n"
10144 "\n"
10145 msgstr ""
10146
10147 # type: textblock
10148 #: ../src/guestfs-actions.pod:3637
10149 msgid ""
10150 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
10151 "created."
10152 msgstr ""
10153
10154 # type: =head2
10155 #: ../src/guestfs-actions.pod:3648
10156 msgid "guestfs_lvcreate"
10157 msgstr ""
10158
10159 # type: verbatim
10160 #: ../src/guestfs-actions.pod:3650
10161 #, no-wrap
10162 msgid ""
10163 " int\n"
10164 " guestfs_lvcreate (guestfs_h *g,\n"
10165 "                   const char *logvol,\n"
10166 "                   const char *volgroup,\n"
10167 "                   int mbytes);\n"
10168 "\n"
10169 msgstr ""
10170
10171 # type: textblock
10172 #: ../src/guestfs-actions.pod:3656 ../fish/guestfish-actions.pod:2497
10173 msgid ""
10174 "This creates an LVM logical volume called C<logvol> on the volume group "
10175 "C<volgroup>, with C<size> megabytes."
10176 msgstr ""
10177
10178 # type: =head2
10179 #: ../src/guestfs-actions.pod:3663
10180 msgid "guestfs_lvm_canonical_lv_name"
10181 msgstr ""
10182
10183 # type: verbatim
10184 #: ../src/guestfs-actions.pod:3665
10185 #, no-wrap
10186 msgid ""
10187 " char *\n"
10188 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
10189 "                                const char *lvname);\n"
10190 "\n"
10191 msgstr ""
10192
10193 # type: textblock
10194 #: ../src/guestfs-actions.pod:3669 ../fish/guestfish-actions.pod:2504
10195 msgid ""
10196 "This converts alternative naming schemes for LVs that you might find to the "
10197 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to "
10198 "C</dev/VG/LV>."
10199 msgstr ""
10200
10201 # type: textblock
10202 #: ../src/guestfs-actions.pod:3673 ../fish/guestfish-actions.pod:2508
10203 msgid ""
10204 "This command returns an error if the C<lvname> parameter does not refer to a "
10205 "logical volume."
10206 msgstr ""
10207
10208 # type: textblock
10209 #: ../src/guestfs-actions.pod:3676
10210 msgid "See also C<guestfs_is_lv>."
10211 msgstr ""
10212
10213 # type: textblock
10214 #: ../src/guestfs-actions.pod:3681
10215 msgid "(Added in 1.5.24)"
10216 msgstr ""
10217
10218 # type: =head2
10219 #: ../src/guestfs-actions.pod:3683
10220 msgid "guestfs_lvm_clear_filter"
10221 msgstr ""
10222
10223 # type: verbatim
10224 #: ../src/guestfs-actions.pod:3685
10225 #, no-wrap
10226 msgid ""
10227 " int\n"
10228 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
10229 "\n"
10230 msgstr ""
10231
10232 # type: textblock
10233 #: ../src/guestfs-actions.pod:3688
10234 msgid ""
10235 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
10236 "see every block device."
10237 msgstr ""
10238
10239 # type: textblock
10240 #: ../src/guestfs-actions.pod:3691 ../src/guestfs-actions.pod:3733 ../fish/guestfish-actions.pod:2520 ../fish/guestfish-actions.pod:2551
10241 msgid "This command also clears the LVM cache and performs a volume group scan."
10242 msgstr ""
10243
10244 # type: =head2
10245 #: ../src/guestfs-actions.pod:3698
10246 msgid "guestfs_lvm_remove_all"
10247 msgstr ""
10248
10249 # type: verbatim
10250 #: ../src/guestfs-actions.pod:3700
10251 #, no-wrap
10252 msgid ""
10253 " int\n"
10254 " guestfs_lvm_remove_all (guestfs_h *g);\n"
10255 "\n"
10256 msgstr ""
10257
10258 # type: textblock
10259 #: ../src/guestfs-actions.pod:3703 ../fish/guestfish-actions.pod:2527
10260 msgid ""
10261 "This command removes all LVM logical volumes, volume groups and physical "
10262 "volumes."
10263 msgstr ""
10264
10265 # type: =head2
10266 #: ../src/guestfs-actions.pod:3713
10267 msgid "guestfs_lvm_set_filter"
10268 msgstr ""
10269
10270 # type: verbatim
10271 #: ../src/guestfs-actions.pod:3715
10272 #, no-wrap
10273 msgid ""
10274 " int\n"
10275 " guestfs_lvm_set_filter (guestfs_h *g,\n"
10276 "                         char *const *devices);\n"
10277 "\n"
10278 msgstr ""
10279
10280 # type: textblock
10281 #: ../src/guestfs-actions.pod:3719 ../fish/guestfish-actions.pod:2537
10282 msgid ""
10283 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
10284 "block devices in the list C<devices>, and will ignore all other attached "
10285 "block devices."
10286 msgstr ""
10287
10288 # type: textblock
10289 #: ../src/guestfs-actions.pod:3723 ../fish/guestfish-actions.pod:2541
10290 msgid ""
10291 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
10292 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
10293 "there are two types of duplication possible: either cloned PVs/VGs which "
10294 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
10295 "same name.  In normal operation you cannot create this situation, but you "
10296 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
10297 "inside the LVM metadata."
10298 msgstr ""
10299
10300 # type: textblock
10301 #: ../src/guestfs-actions.pod:3736 ../fish/guestfish-actions.pod:2554
10302 msgid "You can filter whole block devices or individual partitions."
10303 msgstr ""
10304
10305 # type: textblock
10306 #: ../src/guestfs-actions.pod:3738 ../fish/guestfish-actions.pod:2556
10307 msgid ""
10308 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
10309 "filesystem), even if you are not filtering out that VG."
10310 msgstr ""
10311
10312 # type: =head2
10313 #: ../src/guestfs-actions.pod:3746
10314 msgid "guestfs_lvremove"
10315 msgstr ""
10316
10317 # type: verbatim
10318 #: ../src/guestfs-actions.pod:3748
10319 #, no-wrap
10320 msgid ""
10321 " int\n"
10322 " guestfs_lvremove (guestfs_h *g,\n"
10323 "                   const char *device);\n"
10324 "\n"
10325 msgstr ""
10326
10327 # type: textblock
10328 #: ../src/guestfs-actions.pod:3752 ../fish/guestfish-actions.pod:2564
10329 msgid ""
10330 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
10331 "LV, such as C</dev/VG/LV>."
10332 msgstr ""
10333
10334 # type: textblock
10335 #: ../src/guestfs-actions.pod:3755 ../fish/guestfish-actions.pod:2567
10336 msgid ""
10337 "You can also remove all LVs in a volume group by specifying the VG name, "
10338 "C</dev/VG>."
10339 msgstr ""
10340
10341 # type: textblock
10342 #: ../src/guestfs-actions.pod:3760 ../src/guestfs-actions.pod:4914 ../src/guestfs-actions.pod:6644
10343 msgid "(Added in 1.0.13)"
10344 msgstr ""
10345
10346 # type: =head2
10347 #: ../src/guestfs-actions.pod:3762
10348 msgid "guestfs_lvrename"
10349 msgstr ""
10350
10351 # type: verbatim
10352 #: ../src/guestfs-actions.pod:3764
10353 #, no-wrap
10354 msgid ""
10355 " int\n"
10356 " guestfs_lvrename (guestfs_h *g,\n"
10357 "                   const char *logvol,\n"
10358 "                   const char *newlogvol);\n"
10359 "\n"
10360 msgstr ""
10361
10362 # type: textblock
10363 #: ../src/guestfs-actions.pod:3769 ../fish/guestfish-actions.pod:2574
10364 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
10365 msgstr ""
10366
10367 # type: textblock
10368 #: ../src/guestfs-actions.pod:3773 ../src/guestfs-actions.pod:6657
10369 msgid "(Added in 1.0.83)"
10370 msgstr ""
10371
10372 # type: =head2
10373 #: ../src/guestfs-actions.pod:3775
10374 msgid "guestfs_lvresize"
10375 msgstr ""
10376
10377 # type: verbatim
10378 #: ../src/guestfs-actions.pod:3777
10379 #, no-wrap
10380 msgid ""
10381 " int\n"
10382 " guestfs_lvresize (guestfs_h *g,\n"
10383 "                   const char *device,\n"
10384 "                   int mbytes);\n"
10385 "\n"
10386 msgstr ""
10387
10388 # type: textblock
10389 #: ../src/guestfs-actions.pod:3782 ../fish/guestfish-actions.pod:2580
10390 msgid ""
10391 "This resizes (expands or shrinks) an existing LVM logical volume to "
10392 "C<mbytes>.  When reducing, data in the reduced part is lost."
10393 msgstr ""
10394
10395 # type: =head2
10396 #: ../src/guestfs-actions.pod:3790
10397 msgid "guestfs_lvresize_free"
10398 msgstr ""
10399
10400 # type: verbatim
10401 #: ../src/guestfs-actions.pod:3792
10402 #, no-wrap
10403 msgid ""
10404 " int\n"
10405 " guestfs_lvresize_free (guestfs_h *g,\n"
10406 "                        const char *lv,\n"
10407 "                        int percent);\n"
10408 "\n"
10409 msgstr ""
10410
10411 # type: textblock
10412 #: ../src/guestfs-actions.pod:3797 ../fish/guestfish-actions.pod:2588
10413 msgid ""
10414 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
10415 "remaining free space in the volume group.  Commonly you would call this with "
10416 "pc = 100 which expands the logical volume as much as possible, using all "
10417 "remaining free space in the volume group."
10418 msgstr ""
10419
10420 # type: textblock
10421 #: ../src/guestfs-actions.pod:3805
10422 msgid "(Added in 1.3.3)"
10423 msgstr ""
10424
10425 # type: =head2
10426 #: ../src/guestfs-actions.pod:3807
10427 msgid "guestfs_lvs"
10428 msgstr ""
10429
10430 # type: verbatim
10431 #: ../src/guestfs-actions.pod:3809
10432 #, no-wrap
10433 msgid ""
10434 " char **\n"
10435 " guestfs_lvs (guestfs_h *g);\n"
10436 "\n"
10437 msgstr ""
10438
10439 # type: textblock
10440 #: ../src/guestfs-actions.pod:3812 ../fish/guestfish-actions.pod:2598
10441 msgid ""
10442 "List all the logical volumes detected.  This is the equivalent of the "
10443 "L<lvs(8)> command."
10444 msgstr ""
10445
10446 # type: textblock
10447 #: ../src/guestfs-actions.pod:3815 ../fish/guestfish-actions.pod:2601
10448 msgid ""
10449 "This returns a list of the logical volume device names "
10450 "(eg. C</dev/VolGroup00/LogVol00>)."
10451 msgstr ""
10452
10453 # type: textblock
10454 #: ../src/guestfs-actions.pod:3818
10455 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
10456 msgstr ""
10457
10458 # type: =head2
10459 #: ../src/guestfs-actions.pod:3826
10460 msgid "guestfs_lvs_full"
10461 msgstr ""
10462
10463 # type: verbatim
10464 #: ../src/guestfs-actions.pod:3828
10465 #, no-wrap
10466 msgid ""
10467 " struct guestfs_lvm_lv_list *\n"
10468 " guestfs_lvs_full (guestfs_h *g);\n"
10469 "\n"
10470 msgstr ""
10471
10472 # type: textblock
10473 #: ../src/guestfs-actions.pod:3831 ../fish/guestfish-actions.pod:2610
10474 msgid ""
10475 "List all the logical volumes detected.  This is the equivalent of the "
10476 "L<lvs(8)> command.  The \"full\" version includes all fields."
10477 msgstr ""
10478
10479 # type: textblock
10480 #: ../src/guestfs-actions.pod:3834
10481 msgid ""
10482 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
10483 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after "
10484 "use>."
10485 msgstr ""
10486
10487 # type: =head2
10488 #: ../src/guestfs-actions.pod:3840
10489 msgid "guestfs_lvuuid"
10490 msgstr ""
10491
10492 # type: verbatim
10493 #: ../src/guestfs-actions.pod:3842
10494 #, no-wrap
10495 msgid ""
10496 " char *\n"
10497 " guestfs_lvuuid (guestfs_h *g,\n"
10498 "                 const char *device);\n"
10499 "\n"
10500 msgstr ""
10501
10502 # type: textblock
10503 #: ../src/guestfs-actions.pod:3846 ../fish/guestfish-actions.pod:2617
10504 msgid "This command returns the UUID of the LVM LV C<device>."
10505 msgstr ""
10506
10507 # type: =head2
10508 #: ../src/guestfs-actions.pod:3853
10509 msgid "guestfs_lxattrlist"
10510 msgstr ""
10511
10512 # type: verbatim
10513 #: ../src/guestfs-actions.pod:3855
10514 #, no-wrap
10515 msgid ""
10516 " struct guestfs_xattr_list *\n"
10517 " guestfs_lxattrlist (guestfs_h *g,\n"
10518 "                     const char *path,\n"
10519 "                     char *const *names);\n"
10520 "\n"
10521 msgstr ""
10522
10523 # type: textblock
10524 #: ../src/guestfs-actions.pod:3860 ../fish/guestfish-actions.pod:2623
10525 msgid ""
10526 "This call allows you to get the extended attributes of multiple files, where "
10527 "all files are in the directory C<path>.  C<names> is the list of files from "
10528 "this directory."
10529 msgstr ""
10530
10531 # type: textblock
10532 #: ../src/guestfs-actions.pod:3864 ../fish/guestfish-actions.pod:2627
10533 msgid ""
10534 "On return you get a flat list of xattr structs which must be interpreted "
10535 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
10536 "C<attrval> in this struct is zero-length to indicate there was an error "
10537 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
10538 "number (the number of following attributes for this file, which could be "
10539 "C<\"0\">).  Then after the first xattr struct are the zero or more "
10540 "attributes for the first named file.  This repeats for the second and "
10541 "subsequent files."
10542 msgstr ""
10543
10544 # type: textblock
10545 #: ../src/guestfs-actions.pod:3874
10546 msgid ""
10547 "This call is intended for programs that want to efficiently list a directory "
10548 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
10549 "a similarly efficient call for getting standard stats.  Very long directory "
10550 "listings might cause the protocol message size to be exceeded, causing this "
10551 "call to fail.  The caller must split up such requests into smaller groups of "
10552 "names."
10553 msgstr ""
10554
10555 # type: =head2
10556 #: ../src/guestfs-actions.pod:3888
10557 msgid "guestfs_mkdir"
10558 msgstr ""
10559
10560 # type: verbatim
10561 #: ../src/guestfs-actions.pod:3890
10562 #, no-wrap
10563 msgid ""
10564 " int\n"
10565 " guestfs_mkdir (guestfs_h *g,\n"
10566 "                const char *path);\n"
10567 "\n"
10568 msgstr ""
10569
10570 # type: textblock
10571 #: ../src/guestfs-actions.pod:3894 ../fish/guestfish-actions.pod:2649
10572 msgid "Create a directory named C<path>."
10573 msgstr ""
10574
10575 # type: =head2
10576 #: ../src/guestfs-actions.pod:3900
10577 msgid "guestfs_mkdir_mode"
10578 msgstr ""
10579
10580 # type: verbatim
10581 #: ../src/guestfs-actions.pod:3902
10582 #, no-wrap
10583 msgid ""
10584 " int\n"
10585 " guestfs_mkdir_mode (guestfs_h *g,\n"
10586 "                     const char *path,\n"
10587 "                     int mode);\n"
10588 "\n"
10589 msgstr ""
10590
10591 # type: textblock
10592 #: ../src/guestfs-actions.pod:3907 ../fish/guestfish-actions.pod:2655
10593 msgid ""
10594 "This command creates a directory, setting the initial permissions of the "
10595 "directory to C<mode>."
10596 msgstr ""
10597
10598 # type: textblock
10599 #: ../src/guestfs-actions.pod:3910 ../fish/guestfish-actions.pod:2658
10600 msgid ""
10601 "For common Linux filesystems, the actual mode which is set will be C<mode & "
10602 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
10603 "other ways."
10604 msgstr ""
10605
10606 # type: textblock
10607 #: ../src/guestfs-actions.pod:3914
10608 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
10609 msgstr ""
10610
10611 # type: =head2
10612 #: ../src/guestfs-actions.pod:3920
10613 msgid "guestfs_mkdir_p"
10614 msgstr ""
10615
10616 # type: verbatim
10617 #: ../src/guestfs-actions.pod:3922
10618 #, no-wrap
10619 msgid ""
10620 " int\n"
10621 " guestfs_mkdir_p (guestfs_h *g,\n"
10622 "                  const char *path);\n"
10623 "\n"
10624 msgstr ""
10625
10626 # type: textblock
10627 #: ../src/guestfs-actions.pod:3926 ../fish/guestfish-actions.pod:2668
10628 msgid ""
10629 "Create a directory named C<path>, creating any parent directories as "
10630 "necessary.  This is like the C<mkdir -p> shell command."
10631 msgstr ""
10632
10633 # type: =head2
10634 #: ../src/guestfs-actions.pod:3933
10635 msgid "guestfs_mkdtemp"
10636 msgstr ""
10637
10638 # type: verbatim
10639 #: ../src/guestfs-actions.pod:3935
10640 #, no-wrap
10641 msgid ""
10642 " char *\n"
10643 " guestfs_mkdtemp (guestfs_h *g,\n"
10644 "                  const char *template);\n"
10645 "\n"
10646 msgstr ""
10647
10648 # type: textblock
10649 #: ../src/guestfs-actions.pod:3939 ../fish/guestfish-actions.pod:2675
10650 msgid ""
10651 "This command creates a temporary directory.  The C<template> parameter "
10652 "should be a full pathname for the temporary directory name with the final "
10653 "six characters being \"XXXXXX\"."
10654 msgstr ""
10655
10656 # type: textblock
10657 #: ../src/guestfs-actions.pod:3944 ../fish/guestfish-actions.pod:2680
10658 msgid ""
10659 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
10660 "being suitable for Windows filesystems."
10661 msgstr ""
10662
10663 # type: textblock
10664 #: ../src/guestfs-actions.pod:3947 ../fish/guestfish-actions.pod:2683
10665 msgid "The name of the temporary directory that was created is returned."
10666 msgstr ""
10667
10668 # type: textblock
10669 #: ../src/guestfs-actions.pod:3950 ../fish/guestfish-actions.pod:2686
10670 msgid "The temporary directory is created with mode 0700 and is owned by root."
10671 msgstr ""
10672
10673 # type: textblock
10674 #: ../src/guestfs-actions.pod:3953 ../fish/guestfish-actions.pod:2689
10675 msgid ""
10676 "The caller is responsible for deleting the temporary directory and its "
10677 "contents after use."
10678 msgstr ""
10679
10680 # type: textblock
10681 #: ../src/guestfs-actions.pod:3956 ../fish/guestfish-actions.pod:2692
10682 msgid "See also: L<mkdtemp(3)>"
10683 msgstr ""
10684
10685 # type: =head2
10686 #: ../src/guestfs-actions.pod:3963
10687 msgid "guestfs_mke2fs_J"
10688 msgstr ""
10689
10690 # type: verbatim
10691 #: ../src/guestfs-actions.pod:3965
10692 #, no-wrap
10693 msgid ""
10694 " int\n"
10695 " guestfs_mke2fs_J (guestfs_h *g,\n"
10696 "                   const char *fstype,\n"
10697 "                   int blocksize,\n"
10698 "                   const char *device,\n"
10699 "                   const char *journal);\n"
10700 "\n"
10701 msgstr ""
10702
10703 # type: textblock
10704 #: ../src/guestfs-actions.pod:3972 ../fish/guestfish-actions.pod:2698
10705 msgid ""
10706 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
10707 "C<journal>.  It is equivalent to the command:"
10708 msgstr ""
10709
10710 # type: verbatim
10711 #: ../src/guestfs-actions.pod:3976 ../fish/guestfish-actions.pod:2702
10712 #, no-wrap
10713 msgid ""
10714 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
10715 "\n"
10716 msgstr ""
10717
10718 # type: textblock
10719 #: ../src/guestfs-actions.pod:3978
10720 msgid "See also C<guestfs_mke2journal>."
10721 msgstr ""
10722
10723 # type: textblock
10724 #: ../src/guestfs-actions.pod:3982 ../src/guestfs-actions.pod:4000 ../src/guestfs-actions.pod:4018 ../src/guestfs-actions.pod:4034 ../src/guestfs-actions.pod:4048 ../src/guestfs-actions.pod:4062 ../src/guestfs-actions.pod:4114 ../src/guestfs-actions.pod:4304
10725 msgid "(Added in 1.0.68)"
10726 msgstr ""
10727
10728 # type: =head2
10729 #: ../src/guestfs-actions.pod:3984
10730 msgid "guestfs_mke2fs_JL"
10731 msgstr ""
10732
10733 # type: verbatim
10734 #: ../src/guestfs-actions.pod:3986
10735 #, no-wrap
10736 msgid ""
10737 " int\n"
10738 " guestfs_mke2fs_JL (guestfs_h *g,\n"
10739 "                    const char *fstype,\n"
10740 "                    int blocksize,\n"
10741 "                    const char *device,\n"
10742 "                    const char *label);\n"
10743 "\n"
10744 msgstr ""
10745
10746 # type: textblock
10747 #: ../src/guestfs-actions.pod:3993 ../fish/guestfish-actions.pod:2710
10748 msgid ""
10749 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
10750 "the journal labeled C<label>."
10751 msgstr ""
10752
10753 # type: textblock
10754 #: ../src/guestfs-actions.pod:3996
10755 msgid "See also C<guestfs_mke2journal_L>."
10756 msgstr ""
10757
10758 # type: =head2
10759 #: ../src/guestfs-actions.pod:4002
10760 msgid "guestfs_mke2fs_JU"
10761 msgstr ""
10762
10763 # type: verbatim
10764 #: ../src/guestfs-actions.pod:4004
10765 #, no-wrap
10766 msgid ""
10767 " int\n"
10768 " guestfs_mke2fs_JU (guestfs_h *g,\n"
10769 "                    const char *fstype,\n"
10770 "                    int blocksize,\n"
10771 "                    const char *device,\n"
10772 "                    const char *uuid);\n"
10773 "\n"
10774 msgstr ""
10775
10776 # type: textblock
10777 #: ../src/guestfs-actions.pod:4011 ../fish/guestfish-actions.pod:2719
10778 msgid ""
10779 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
10780 "the journal with UUID C<uuid>."
10781 msgstr ""
10782
10783 # type: textblock
10784 #: ../src/guestfs-actions.pod:4014
10785 msgid "See also C<guestfs_mke2journal_U>."
10786 msgstr ""
10787
10788 # type: =head2
10789 #: ../src/guestfs-actions.pod:4020
10790 msgid "guestfs_mke2journal"
10791 msgstr ""
10792
10793 # type: verbatim
10794 #: ../src/guestfs-actions.pod:4022
10795 #, no-wrap
10796 msgid ""
10797 " int\n"
10798 " guestfs_mke2journal (guestfs_h *g,\n"
10799 "                      int blocksize,\n"
10800 "                      const char *device);\n"
10801 "\n"
10802 msgstr ""
10803
10804 # type: textblock
10805 #: ../src/guestfs-actions.pod:4027 ../fish/guestfish-actions.pod:2728
10806 msgid ""
10807 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
10808 "command:"
10809 msgstr ""
10810
10811 # type: verbatim
10812 #: ../src/guestfs-actions.pod:4030 ../fish/guestfish-actions.pod:2731
10813 #, no-wrap
10814 msgid ""
10815 " mke2fs -O journal_dev -b blocksize device\n"
10816 "\n"
10817 msgstr ""
10818
10819 # type: =head2
10820 #: ../src/guestfs-actions.pod:4036
10821 msgid "guestfs_mke2journal_L"
10822 msgstr ""
10823
10824 # type: verbatim
10825 #: ../src/guestfs-actions.pod:4038
10826 #, no-wrap
10827 msgid ""
10828 " int\n"
10829 " guestfs_mke2journal_L (guestfs_h *g,\n"
10830 "                        int blocksize,\n"
10831 "                        const char *label,\n"
10832 "                        const char *device);\n"
10833 "\n"
10834 msgstr ""
10835
10836 # type: textblock
10837 #: ../src/guestfs-actions.pod:4044 ../fish/guestfish-actions.pod:2737
10838 msgid "This creates an ext2 external journal on C<device> with label C<label>."
10839 msgstr ""
10840
10841 # type: =head2
10842 #: ../src/guestfs-actions.pod:4050
10843 msgid "guestfs_mke2journal_U"
10844 msgstr ""
10845
10846 # type: verbatim
10847 #: ../src/guestfs-actions.pod:4052
10848 #, no-wrap
10849 msgid ""
10850 " int\n"
10851 " guestfs_mke2journal_U (guestfs_h *g,\n"
10852 "                        int blocksize,\n"
10853 "                        const char *uuid,\n"
10854 "                        const char *device);\n"
10855 "\n"
10856 msgstr ""
10857
10858 # type: textblock
10859 #: ../src/guestfs-actions.pod:4058 ../fish/guestfish-actions.pod:2743
10860 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
10861 msgstr ""
10862
10863 # type: =head2
10864 #: ../src/guestfs-actions.pod:4064
10865 msgid "guestfs_mkfifo"
10866 msgstr ""
10867
10868 # type: verbatim
10869 #: ../src/guestfs-actions.pod:4066
10870 #, no-wrap
10871 msgid ""
10872 " int\n"
10873 " guestfs_mkfifo (guestfs_h *g,\n"
10874 "                 int mode,\n"
10875 "                 const char *path);\n"
10876 "\n"
10877 msgstr ""
10878
10879 # type: textblock
10880 #: ../src/guestfs-actions.pod:4071
10881 msgid ""
10882 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
10883 "is just a convenient wrapper around C<guestfs_mknod>."
10884 msgstr ""
10885
10886 # type: =head2
10887 #: ../src/guestfs-actions.pod:4081
10888 msgid "guestfs_mkfs"
10889 msgstr ""
10890
10891 # type: verbatim
10892 #: ../src/guestfs-actions.pod:4083
10893 #, no-wrap
10894 msgid ""
10895 " int\n"
10896 " guestfs_mkfs (guestfs_h *g,\n"
10897 "               const char *fstype,\n"
10898 "               const char *device);\n"
10899 "\n"
10900 msgstr ""
10901
10902 # type: textblock
10903 #: ../src/guestfs-actions.pod:4088 ../fish/guestfish-actions.pod:2759
10904 msgid ""
10905 "This creates a filesystem on C<device> (usually a partition or LVM logical "
10906 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
10907 msgstr ""
10908
10909 # type: =head2
10910 #: ../src/guestfs-actions.pod:4096
10911 msgid "guestfs_mkfs_b"
10912 msgstr ""
10913
10914 # type: verbatim
10915 #: ../src/guestfs-actions.pod:4098
10916 #, no-wrap
10917 msgid ""
10918 " int\n"
10919 " guestfs_mkfs_b (guestfs_h *g,\n"
10920 "                 const char *fstype,\n"
10921 "                 int blocksize,\n"
10922 "                 const char *device);\n"
10923 "\n"
10924 msgstr ""
10925
10926 # type: textblock
10927 #: ../src/guestfs-actions.pod:4104
10928 msgid ""
10929 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
10930 "block size of the resulting filesystem.  Supported block sizes depend on the "
10931 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
10932 msgstr ""
10933
10934 # type: textblock
10935 #: ../src/guestfs-actions.pod:4109 ../fish/guestfish-actions.pod:2772
10936 msgid ""
10937 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
10938 "cluster size."
10939 msgstr ""
10940
10941 # type: =head2
10942 #: ../src/guestfs-actions.pod:4116
10943 msgid "guestfs_mkmountpoint"
10944 msgstr ""
10945
10946 # type: verbatim
10947 #: ../src/guestfs-actions.pod:4118
10948 #, no-wrap
10949 msgid ""
10950 " int\n"
10951 " guestfs_mkmountpoint (guestfs_h *g,\n"
10952 "                       const char *exemptpath);\n"
10953 "\n"
10954 msgstr ""
10955
10956 # type: textblock
10957 #: ../src/guestfs-actions.pod:4122
10958 msgid ""
10959 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
10960 "that can be used to create extra mountpoints before mounting the first "
10961 "filesystem."
10962 msgstr ""
10963
10964 # type: textblock
10965 #: ../src/guestfs-actions.pod:4126 ../fish/guestfish-actions.pod:2783
10966 msgid ""
10967 "These calls are I<only> necessary in some very limited circumstances, mainly "
10968 "the case where you want to mount a mix of unrelated and/or read-only "
10969 "filesystems together."
10970 msgstr ""
10971
10972 # type: textblock
10973 #: ../src/guestfs-actions.pod:4130 ../fish/guestfish-actions.pod:2787
10974 msgid ""
10975 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
10976 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
10977 "inside that.  You can unpack this as follows in guestfish:"
10978 msgstr ""
10979
10980 # type: verbatim
10981 #: ../src/guestfs-actions.pod:4135 ../fish/guestfish-actions.pod:2792
10982 #, no-wrap
10983 msgid ""
10984 " add-ro Fedora-11-i686-Live.iso\n"
10985 " run\n"
10986 " mkmountpoint /cd\n"
10987 " mkmountpoint /sqsh\n"
10988 " mkmountpoint /ext3fs\n"
10989 " mount /dev/sda /cd\n"
10990 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
10991 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
10992 "\n"
10993 msgstr ""
10994
10995 # type: textblock
10996 #: ../src/guestfs-actions.pod:4144 ../fish/guestfish-actions.pod:2801
10997 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
10998 msgstr ""
10999
11000 # type: textblock
11001 #: ../src/guestfs-actions.pod:4146
11002 msgid ""
11003 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
11004 "may get unexpected errors if you try to mix these calls.  It is safest to "
11005 "manually unmount filesystems and remove mountpoints after use."
11006 msgstr ""
11007
11008 # type: textblock
11009 #: ../src/guestfs-actions.pod:4150
11010 msgid ""
11011 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
11012 "first, so for this to work for manual mountpoints, you must ensure that the "
11013 "innermost mountpoints have the longest pathnames, as in the example code "
11014 "above."
11015 msgstr ""
11016
11017 # type: textblock
11018 #: ../src/guestfs-actions.pod:4155 ../fish/guestfish-actions.pod:2812
11019 msgid "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
11020 msgstr ""
11021
11022 # type: textblock
11023 #: ../src/guestfs-actions.pod:4157
11024 msgid ""
11025 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
11026 "means that C<guestfs_umount_all> is called when the handle is closed which "
11027 "can also trigger these issues."
11028 msgstr ""
11029
11030 # type: textblock
11031 #: ../src/guestfs-actions.pod:4163 ../src/guestfs-actions.pod:4422 ../src/guestfs-actions.pod:5315
11032 msgid "(Added in 1.0.62)"
11033 msgstr ""
11034
11035 # type: =head2
11036 #: ../src/guestfs-actions.pod:4165
11037 msgid "guestfs_mknod"
11038 msgstr ""
11039
11040 # type: verbatim
11041 #: ../src/guestfs-actions.pod:4167
11042 #, no-wrap
11043 msgid ""
11044 " int\n"
11045 " guestfs_mknod (guestfs_h *g,\n"
11046 "                int mode,\n"
11047 "                int devmajor,\n"
11048 "                int devminor,\n"
11049 "                const char *path);\n"
11050 "\n"
11051 msgstr ""
11052
11053 # type: textblock
11054 #: ../src/guestfs-actions.pod:4174 ../fish/guestfish-actions.pod:2822
11055 msgid ""
11056 "This call creates block or character special devices, or named pipes "
11057 "(FIFOs)."
11058 msgstr ""
11059
11060 # type: textblock
11061 #: ../src/guestfs-actions.pod:4177 ../fish/guestfish-actions.pod:2825
11062 msgid ""
11063 "The C<mode> parameter should be the mode, using the standard constants.  "
11064 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
11065 "used when creating block and character special devices."
11066 msgstr ""
11067
11068 # type: textblock
11069 #: ../src/guestfs-actions.pod:4182
11070 msgid ""
11071 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
11072 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
11073 "regular file).  These constants are available in the standard Linux header "
11074 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
11075 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
11076 "the appropriate constant for you."
11077 msgstr ""
11078
11079 # type: =head2
11080 #: ../src/guestfs-actions.pod:4196
11081 msgid "guestfs_mknod_b"
11082 msgstr ""
11083
11084 # type: verbatim
11085 #: ../src/guestfs-actions.pod:4198
11086 #, no-wrap
11087 msgid ""
11088 " int\n"
11089 " guestfs_mknod_b (guestfs_h *g,\n"
11090 "                  int mode,\n"
11091 "                  int devmajor,\n"
11092 "                  int devminor,\n"
11093 "                  const char *path);\n"
11094 "\n"
11095 msgstr ""
11096
11097 # type: textblock
11098 #: ../src/guestfs-actions.pod:4205
11099 msgid ""
11100 "This call creates a block device node called C<path> with mode C<mode> and "
11101 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
11102 "wrapper around C<guestfs_mknod>."
11103 msgstr ""
11104
11105 # type: =head2
11106 #: ../src/guestfs-actions.pod:4215
11107 msgid "guestfs_mknod_c"
11108 msgstr ""
11109
11110 # type: verbatim
11111 #: ../src/guestfs-actions.pod:4217
11112 #, no-wrap
11113 msgid ""
11114 " int\n"
11115 " guestfs_mknod_c (guestfs_h *g,\n"
11116 "                  int mode,\n"
11117 "                  int devmajor,\n"
11118 "                  int devminor,\n"
11119 "                  const char *path);\n"
11120 "\n"
11121 msgstr ""
11122
11123 # type: textblock
11124 #: ../src/guestfs-actions.pod:4224
11125 msgid ""
11126 "This call creates a char device node called C<path> with mode C<mode> and "
11127 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
11128 "wrapper around C<guestfs_mknod>."
11129 msgstr ""
11130
11131 # type: =head2
11132 #: ../src/guestfs-actions.pod:4234
11133 msgid "guestfs_mkswap"
11134 msgstr ""
11135
11136 # type: verbatim
11137 #: ../src/guestfs-actions.pod:4236
11138 #, no-wrap
11139 msgid ""
11140 " int\n"
11141 " guestfs_mkswap (guestfs_h *g,\n"
11142 "                 const char *device);\n"
11143 "\n"
11144 msgstr ""
11145
11146 # type: textblock
11147 #: ../src/guestfs-actions.pod:4240 ../fish/guestfish-actions.pod:2864
11148 msgid "Create a swap partition on C<device>."
11149 msgstr ""
11150
11151 # type: =head2
11152 #: ../src/guestfs-actions.pod:4246
11153 msgid "guestfs_mkswap_L"
11154 msgstr ""
11155
11156 # type: verbatim
11157 #: ../src/guestfs-actions.pod:4248
11158 #, no-wrap
11159 msgid ""
11160 " int\n"
11161 " guestfs_mkswap_L (guestfs_h *g,\n"
11162 "                   const char *label,\n"
11163 "                   const char *device);\n"
11164 "\n"
11165 msgstr ""
11166
11167 # type: textblock
11168 #: ../src/guestfs-actions.pod:4253 ../fish/guestfish-actions.pod:2870
11169 msgid "Create a swap partition on C<device> with label C<label>."
11170 msgstr ""
11171
11172 # type: textblock
11173 #: ../src/guestfs-actions.pod:4255 ../fish/guestfish-actions.pod:2872
11174 msgid ""
11175 "Note that you cannot attach a swap label to a block device "
11176 "(eg. C</dev/sda>), just to a partition.  This appears to be a limitation of "
11177 "the kernel or swap tools."
11178 msgstr ""
11179
11180 # type: =head2
11181 #: ../src/guestfs-actions.pod:4263
11182 msgid "guestfs_mkswap_U"
11183 msgstr ""
11184
11185 # type: verbatim
11186 #: ../src/guestfs-actions.pod:4265
11187 #, no-wrap
11188 msgid ""
11189 " int\n"
11190 " guestfs_mkswap_U (guestfs_h *g,\n"
11191 "                   const char *uuid,\n"
11192 "                   const char *device);\n"
11193 "\n"
11194 msgstr ""
11195
11196 # type: textblock
11197 #: ../src/guestfs-actions.pod:4270 ../fish/guestfish-actions.pod:2880
11198 msgid "Create a swap partition on C<device> with UUID C<uuid>."
11199 msgstr ""
11200
11201 # type: =head2
11202 #: ../src/guestfs-actions.pod:4276
11203 msgid "guestfs_mkswap_file"
11204 msgstr ""
11205
11206 # type: verbatim
11207 #: ../src/guestfs-actions.pod:4278
11208 #, no-wrap
11209 msgid ""
11210 " int\n"
11211 " guestfs_mkswap_file (guestfs_h *g,\n"
11212 "                      const char *path);\n"
11213 "\n"
11214 msgstr ""
11215
11216 # type: textblock
11217 #: ../src/guestfs-actions.pod:4282 ../fish/guestfish-actions.pod:2886
11218 msgid "Create a swap file."
11219 msgstr ""
11220
11221 # type: textblock
11222 #: ../src/guestfs-actions.pod:4284
11223 msgid ""
11224 "This command just writes a swap file signature to an existing file.  To "
11225 "create the file itself, use something like C<guestfs_fallocate>."
11226 msgstr ""
11227
11228 # type: =head2
11229 #: ../src/guestfs-actions.pod:4291
11230 msgid "guestfs_modprobe"
11231 msgstr ""
11232
11233 # type: verbatim
11234 #: ../src/guestfs-actions.pod:4293
11235 #, no-wrap
11236 msgid ""
11237 " int\n"
11238 " guestfs_modprobe (guestfs_h *g,\n"
11239 "                   const char *modulename);\n"
11240 "\n"
11241 msgstr ""
11242
11243 # type: textblock
11244 #: ../src/guestfs-actions.pod:4297 ../fish/guestfish-actions.pod:2895
11245 msgid "This loads a kernel module in the appliance."
11246 msgstr ""
11247
11248 # type: textblock
11249 #: ../src/guestfs-actions.pod:4299 ../fish/guestfish-actions.pod:2897
11250 msgid ""
11251 "The kernel module must have been whitelisted when libguestfs was built (see "
11252 "C<appliance/kmod.whitelist.in> in the source)."
11253 msgstr ""
11254
11255 # type: =head2
11256 #: ../src/guestfs-actions.pod:4306
11257 msgid "guestfs_mount"
11258 msgstr ""
11259
11260 # type: verbatim
11261 #: ../src/guestfs-actions.pod:4308
11262 #, no-wrap
11263 msgid ""
11264 " int\n"
11265 " guestfs_mount (guestfs_h *g,\n"
11266 "                const char *device,\n"
11267 "                const char *mountpoint);\n"
11268 "\n"
11269 msgstr ""
11270
11271 # type: textblock
11272 #: ../src/guestfs-actions.pod:4313 ../fish/guestfish-actions.pod:2904
11273 msgid ""
11274 "Mount a guest disk at a position in the filesystem.  Block devices are named "
11275 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
11276 "those block devices contain partitions, they will have the usual names "
11277 "(eg. C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
11278 msgstr ""
11279
11280 # type: textblock
11281 #: ../src/guestfs-actions.pod:4319 ../fish/guestfish-actions.pod:2910
11282 msgid ""
11283 "The rules are the same as for L<mount(2)>: A filesystem must first be "
11284 "mounted on C</> before others can be mounted.  Other filesystems can only be "
11285 "mounted on directories which already exist."
11286 msgstr ""
11287
11288 # type: textblock
11289 #: ../src/guestfs-actions.pod:4324 ../fish/guestfish-actions.pod:2915
11290 msgid ""
11291 "The mounted filesystem is writable, if we have sufficient permissions on the "
11292 "underlying device."
11293 msgstr ""
11294
11295 # type: textblock
11296 #: ../src/guestfs-actions.pod:4327
11297 msgid ""
11298 "B<Important note:> When you use this call, the filesystem options C<sync> "
11299 "and C<noatime> are set implicitly.  This was originally done because we "
11300 "thought it would improve reliability, but it turns out that I<-o sync> has a "
11301 "very large negative performance impact and negligible effect on "
11302 "reliability.  Therefore we recommend that you avoid using C<guestfs_mount> "
11303 "in any code that needs performance, and instead use C<guestfs_mount_options> "
11304 "(use an empty string for the first parameter if you don't want any options)."
11305 msgstr ""
11306
11307 # type: =head2
11308 #: ../src/guestfs-actions.pod:4341
11309 msgid "guestfs_mount_loop"
11310 msgstr ""
11311
11312 # type: verbatim
11313 #: ../src/guestfs-actions.pod:4343
11314 #, no-wrap
11315 msgid ""
11316 " int\n"
11317 " guestfs_mount_loop (guestfs_h *g,\n"
11318 "                     const char *file,\n"
11319 "                     const char *mountpoint);\n"
11320 "\n"
11321 msgstr ""
11322
11323 # type: textblock
11324 #: ../src/guestfs-actions.pod:4348 ../fish/guestfish-actions.pod:2932
11325 msgid ""
11326 "This command lets you mount C<file> (a filesystem image in a file) on a "
11327 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
11328 "mountpoint>."
11329 msgstr ""
11330
11331 # type: =head2
11332 #: ../src/guestfs-actions.pod:4356
11333 msgid "guestfs_mount_options"
11334 msgstr ""
11335
11336 # type: verbatim
11337 #: ../src/guestfs-actions.pod:4358
11338 #, no-wrap
11339 msgid ""
11340 " int\n"
11341 " guestfs_mount_options (guestfs_h *g,\n"
11342 "                        const char *options,\n"
11343 "                        const char *device,\n"
11344 "                        const char *mountpoint);\n"
11345 "\n"
11346 msgstr ""
11347
11348 # type: textblock
11349 #: ../src/guestfs-actions.pod:4364
11350 msgid ""
11351 "This is the same as the C<guestfs_mount> command, but it allows you to set "
11352 "the mount options as for the L<mount(8)> I<-o> flag."
11353 msgstr ""
11354
11355 # type: textblock
11356 #: ../src/guestfs-actions.pod:4368 ../fish/guestfish-actions.pod:2944
11357 msgid ""
11358 "If the C<options> parameter is an empty string, then no options are passed "
11359 "(all options default to whatever the filesystem uses)."
11360 msgstr ""
11361
11362 # type: textblock
11363 #: ../src/guestfs-actions.pod:4374 ../src/guestfs-actions.pod:4388 ../src/guestfs-actions.pod:4405
11364 msgid "(Added in 1.0.10)"
11365 msgstr ""
11366
11367 # type: =head2
11368 #: ../src/guestfs-actions.pod:4376
11369 msgid "guestfs_mount_ro"
11370 msgstr ""
11371
11372 # type: verbatim
11373 #: ../src/guestfs-actions.pod:4378
11374 #, no-wrap
11375 msgid ""
11376 " int\n"
11377 " guestfs_mount_ro (guestfs_h *g,\n"
11378 "                   const char *device,\n"
11379 "                   const char *mountpoint);\n"
11380 "\n"
11381 msgstr ""
11382
11383 # type: textblock
11384 #: ../src/guestfs-actions.pod:4383
11385 msgid ""
11386 "This is the same as the C<guestfs_mount> command, but it mounts the "
11387 "filesystem with the read-only (I<-o ro>) flag."
11388 msgstr ""
11389
11390 # type: =head2
11391 #: ../src/guestfs-actions.pod:4390
11392 msgid "guestfs_mount_vfs"
11393 msgstr ""
11394
11395 # type: verbatim
11396 #: ../src/guestfs-actions.pod:4392
11397 #, no-wrap
11398 msgid ""
11399 " int\n"
11400 " guestfs_mount_vfs (guestfs_h *g,\n"
11401 "                    const char *options,\n"
11402 "                    const char *vfstype,\n"
11403 "                    const char *device,\n"
11404 "                    const char *mountpoint);\n"
11405 "\n"
11406 msgstr ""
11407
11408 # type: textblock
11409 #: ../src/guestfs-actions.pod:4399
11410 msgid ""
11411 "This is the same as the C<guestfs_mount> command, but it allows you to set "
11412 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and "
11413 "I<-t> flags."
11414 msgstr ""
11415
11416 # type: =head2
11417 #: ../src/guestfs-actions.pod:4407
11418 msgid "guestfs_mountpoints"
11419 msgstr ""
11420
11421 # type: verbatim
11422 #: ../src/guestfs-actions.pod:4409
11423 #, no-wrap
11424 msgid ""
11425 " char **\n"
11426 " guestfs_mountpoints (guestfs_h *g);\n"
11427 "\n"
11428 msgstr ""
11429
11430 # type: textblock
11431 #: ../src/guestfs-actions.pod:4412
11432 msgid ""
11433 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
11434 "devices.  This one returns a hash table (map) of device name to directory "
11435 "where the device is mounted."
11436 msgstr ""
11437
11438 # type: =head2
11439 #: ../src/guestfs-actions.pod:4424
11440 msgid "guestfs_mounts"
11441 msgstr ""
11442
11443 # type: verbatim
11444 #: ../src/guestfs-actions.pod:4426
11445 #, no-wrap
11446 msgid ""
11447 " char **\n"
11448 " guestfs_mounts (guestfs_h *g);\n"
11449 "\n"
11450 msgstr ""
11451
11452 # type: textblock
11453 #: ../src/guestfs-actions.pod:4429 ../fish/guestfish-actions.pod:2975
11454 msgid ""
11455 "This returns the list of currently mounted filesystems.  It returns the list "
11456 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
11457 msgstr ""
11458
11459 # type: textblock
11460 #: ../src/guestfs-actions.pod:4432 ../fish/guestfish-actions.pod:2978
11461 msgid "Some internal mounts are not shown."
11462 msgstr ""
11463
11464 # type: textblock
11465 #: ../src/guestfs-actions.pod:4434
11466 msgid "See also: C<guestfs_mountpoints>"
11467 msgstr ""
11468
11469 # type: =head2
11470 #: ../src/guestfs-actions.pod:4442
11471 msgid "guestfs_mv"
11472 msgstr ""
11473
11474 # type: verbatim
11475 #: ../src/guestfs-actions.pod:4444
11476 #, no-wrap
11477 msgid ""
11478 " int\n"
11479 " guestfs_mv (guestfs_h *g,\n"
11480 "             const char *src,\n"
11481 "             const char *dest);\n"
11482 "\n"
11483 msgstr ""
11484
11485 # type: textblock
11486 #: ../src/guestfs-actions.pod:4449 ../fish/guestfish-actions.pod:2986
11487 msgid ""
11488 "This moves a file from C<src> to C<dest> where C<dest> is either a "
11489 "destination filename or destination directory."
11490 msgstr ""
11491
11492 # type: =head2
11493 #: ../src/guestfs-actions.pod:4456
11494 msgid "guestfs_ntfs_3g_probe"
11495 msgstr ""
11496
11497 # type: verbatim
11498 #: ../src/guestfs-actions.pod:4458
11499 #, no-wrap
11500 msgid ""
11501 " int\n"
11502 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
11503 "                        int rw,\n"
11504 "                        const char *device);\n"
11505 "\n"
11506 msgstr ""
11507
11508 # type: textblock
11509 #: ../src/guestfs-actions.pod:4463 ../fish/guestfish-actions.pod:2993
11510 msgid ""
11511 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
11512 "C<device> for mountability.  (Not all NTFS volumes can be mounted "
11513 "read-write, and some cannot be mounted at all)."
11514 msgstr ""
11515
11516 # type: textblock
11517 #: ../src/guestfs-actions.pod:4467 ../fish/guestfish-actions.pod:2997
11518 msgid ""
11519 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
11520 "can be mounted read-write.  Set it to false if you want to test if the "
11521 "volume can be mounted read-only."
11522 msgstr ""
11523
11524 # type: textblock
11525 #: ../src/guestfs-actions.pod:4471 ../fish/guestfish-actions.pod:3001
11526 msgid ""
11527 "The return value is an integer which C<0> if the operation would succeed, or "
11528 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
11529 msgstr ""
11530
11531 # type: textblock
11532 #: ../src/guestfs-actions.pod:4477
11533 msgid "(Added in 1.0.43)"
11534 msgstr ""
11535
11536 # type: =head2
11537 #: ../src/guestfs-actions.pod:4479
11538 msgid "guestfs_ntfsresize"
11539 msgstr ""
11540
11541 # type: verbatim
11542 #: ../src/guestfs-actions.pod:4481
11543 #, no-wrap
11544 msgid ""
11545 " int\n"
11546 " guestfs_ntfsresize (guestfs_h *g,\n"
11547 "                     const char *device);\n"
11548 "\n"
11549 msgstr ""
11550
11551 # type: textblock
11552 #: ../src/guestfs-actions.pod:4485 ../fish/guestfish-actions.pod:3009
11553 msgid ""
11554 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
11555 "size of the underlying device.  See also L<ntfsresize(8)>."
11556 msgstr ""
11557
11558 # type: =head2
11559 #: ../src/guestfs-actions.pod:4493
11560 msgid "guestfs_ntfsresize_size"
11561 msgstr ""
11562
11563 # type: verbatim
11564 #: ../src/guestfs-actions.pod:4495
11565 #, no-wrap
11566 msgid ""
11567 " int\n"
11568 " guestfs_ntfsresize_size (guestfs_h *g,\n"
11569 "                          const char *device,\n"
11570 "                          int64_t size);\n"
11571 "\n"
11572 msgstr ""
11573
11574 # type: textblock
11575 #: ../src/guestfs-actions.pod:4500
11576 msgid ""
11577 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
11578 "to specify the new size (in bytes) explicitly."
11579 msgstr ""
11580
11581 # type: textblock
11582 #: ../src/guestfs-actions.pod:4505 ../src/guestfs-actions.pod:4941 ../src/guestfs-actions.pod:5014 ../src/guestfs-actions.pod:5263
11583 msgid "(Added in 1.3.14)"
11584 msgstr ""
11585
11586 # type: =head2
11587 #: ../src/guestfs-actions.pod:4507
11588 msgid "guestfs_part_add"
11589 msgstr ""
11590
11591 # type: verbatim
11592 #: ../src/guestfs-actions.pod:4509
11593 #, no-wrap
11594 msgid ""
11595 " int\n"
11596 " guestfs_part_add (guestfs_h *g,\n"
11597 "                   const char *device,\n"
11598 "                   const char *prlogex,\n"
11599 "                   int64_t startsect,\n"
11600 "                   int64_t endsect);\n"
11601 "\n"
11602 msgstr ""
11603
11604 # type: textblock
11605 #: ../src/guestfs-actions.pod:4516
11606 msgid ""
11607 "This command adds a partition to C<device>.  If there is no partition table "
11608 "on the device, call C<guestfs_part_init> first."
11609 msgstr ""
11610
11611 # type: textblock
11612 #: ../src/guestfs-actions.pod:4519 ../fish/guestfish-actions.pod:3027
11613 msgid ""
11614 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
11615 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
11616 "C<logical>) and C<e> (or C<extended>) partition types."
11617 msgstr ""
11618
11619 # type: textblock
11620 #: ../src/guestfs-actions.pod:4524 ../fish/guestfish-actions.pod:3032
11621 msgid ""
11622 "C<startsect> and C<endsect> are the start and end of the partition in "
11623 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
11624 "from the end of the disk (C<-1> is the last sector)."
11625 msgstr ""
11626
11627 # type: textblock
11628 #: ../src/guestfs-actions.pod:4528
11629 msgid ""
11630 "Creating a partition which covers the whole disk is not so easy.  Use "
11631 "C<guestfs_part_disk> to do that."
11632 msgstr ""
11633
11634 # type: textblock
11635 #: ../src/guestfs-actions.pod:4533 ../src/guestfs-actions.pod:4571 ../src/guestfs-actions.pod:4624 ../src/guestfs-actions.pod:4702 ../src/guestfs-actions.pod:4740 ../src/guestfs-actions.pod:4759 ../src/guestfs-actions.pod:4799
11636 msgid "(Added in 1.0.78)"
11637 msgstr ""
11638
11639 # type: =head2
11640 #: ../src/guestfs-actions.pod:4535
11641 msgid "guestfs_part_del"
11642 msgstr ""
11643
11644 # type: verbatim
11645 #: ../src/guestfs-actions.pod:4537
11646 #, no-wrap
11647 msgid ""
11648 " int\n"
11649 " guestfs_part_del (guestfs_h *g,\n"
11650 "                   const char *device,\n"
11651 "                   int partnum);\n"
11652 "\n"
11653 msgstr ""
11654
11655 # type: textblock
11656 #: ../src/guestfs-actions.pod:4542 ../fish/guestfish-actions.pod:3043
11657 msgid "This command deletes the partition numbered C<partnum> on C<device>."
11658 msgstr ""
11659
11660 # type: textblock
11661 #: ../src/guestfs-actions.pod:4544 ../fish/guestfish-actions.pod:3045
11662 msgid ""
11663 "Note that in the case of MBR partitioning, deleting an extended partition "
11664 "also deletes any logical partitions it contains."
11665 msgstr ""
11666
11667 # type: =head2
11668 #: ../src/guestfs-actions.pod:4552
11669 msgid "guestfs_part_disk"
11670 msgstr ""
11671
11672 # type: verbatim
11673 #: ../src/guestfs-actions.pod:4554
11674 #, no-wrap
11675 msgid ""
11676 " int\n"
11677 " guestfs_part_disk (guestfs_h *g,\n"
11678 "                    const char *device,\n"
11679 "                    const char *parttype);\n"
11680 "\n"
11681 msgstr ""
11682
11683 # type: textblock
11684 #: ../src/guestfs-actions.pod:4559
11685 msgid ""
11686 "This command is simply a combination of C<guestfs_part_init> followed by "
11687 "C<guestfs_part_add> to create a single primary partition covering the whole "
11688 "disk."
11689 msgstr ""
11690
11691 # type: textblock
11692 #: ../src/guestfs-actions.pod:4563
11693 msgid ""
11694 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
11695 "possible values are described in C<guestfs_part_init>."
11696 msgstr ""
11697
11698 # type: =head2
11699 #: ../src/guestfs-actions.pod:4573
11700 msgid "guestfs_part_get_bootable"
11701 msgstr ""
11702
11703 # type: verbatim
11704 #: ../src/guestfs-actions.pod:4575
11705 #, no-wrap
11706 msgid ""
11707 " int\n"
11708 " guestfs_part_get_bootable (guestfs_h *g,\n"
11709 "                            const char *device,\n"
11710 "                            int partnum);\n"
11711 "\n"
11712 msgstr ""
11713
11714 # type: textblock
11715 #: ../src/guestfs-actions.pod:4580 ../fish/guestfish-actions.pod:3067
11716 msgid ""
11717 "This command returns true if the partition C<partnum> on C<device> has the "
11718 "bootable flag set."
11719 msgstr ""
11720
11721 # type: textblock
11722 #: ../src/guestfs-actions.pod:4583
11723 msgid "See also C<guestfs_part_set_bootable>."
11724 msgstr ""
11725
11726 # type: =head2
11727 #: ../src/guestfs-actions.pod:4589
11728 msgid "guestfs_part_get_mbr_id"
11729 msgstr ""
11730
11731 # type: verbatim
11732 #: ../src/guestfs-actions.pod:4591
11733 #, no-wrap
11734 msgid ""
11735 " int\n"
11736 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
11737 "                          const char *device,\n"
11738 "                          int partnum);\n"
11739 "\n"
11740 msgstr ""
11741
11742 # type: textblock
11743 #: ../src/guestfs-actions.pod:4596 ../fish/guestfish-actions.pod:3076
11744 msgid ""
11745 "Returns the MBR type byte (also known as the ID byte) from the numbered "
11746 "partition C<partnum>."
11747 msgstr ""
11748
11749 # type: textblock
11750 #: ../src/guestfs-actions.pod:4599 ../src/guestfs-actions.pod:4775
11751 msgid ""
11752 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
11753 "undefined results for other partition table types (see "
11754 "C<guestfs_part_get_parttype>)."
11755 msgstr ""
11756
11757 # type: =head2
11758 #: ../src/guestfs-actions.pod:4607
11759 msgid "guestfs_part_get_parttype"
11760 msgstr ""
11761
11762 # type: verbatim
11763 #: ../src/guestfs-actions.pod:4609
11764 #, no-wrap
11765 msgid ""
11766 " char *\n"
11767 " guestfs_part_get_parttype (guestfs_h *g,\n"
11768 "                            const char *device);\n"
11769 "\n"
11770 msgstr ""
11771
11772 # type: textblock
11773 #: ../src/guestfs-actions.pod:4613 ../fish/guestfish-actions.pod:3087
11774 msgid ""
11775 "This command examines the partition table on C<device> and returns the "
11776 "partition table type (format) being used."
11777 msgstr ""
11778
11779 # type: textblock
11780 #: ../src/guestfs-actions.pod:4616
11781 msgid ""
11782 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
11783 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
11784 "possible, although unusual.  See C<guestfs_part_init> for a full list."
11785 msgstr ""
11786
11787 # type: =head2
11788 #: ../src/guestfs-actions.pod:4626
11789 msgid "guestfs_part_init"
11790 msgstr ""
11791
11792 # type: verbatim
11793 #: ../src/guestfs-actions.pod:4628
11794 #, no-wrap
11795 msgid ""
11796 " int\n"
11797 " guestfs_part_init (guestfs_h *g,\n"
11798 "                    const char *device,\n"
11799 "                    const char *parttype);\n"
11800 "\n"
11801 msgstr ""
11802
11803 # type: textblock
11804 #: ../src/guestfs-actions.pod:4633 ../fish/guestfish-actions.pod:3099
11805 msgid ""
11806 "This creates an empty partition table on C<device> of one of the partition "
11807 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
11808 "(for large disks)."
11809 msgstr ""
11810
11811 # type: textblock
11812 #: ../src/guestfs-actions.pod:4637
11813 msgid ""
11814 "Initially there are no partitions.  Following this, you should call "
11815 "C<guestfs_part_add> for each partition required."
11816 msgstr ""
11817
11818 # type: textblock
11819 #: ../src/guestfs-actions.pod:4640 ../fish/guestfish-actions.pod:3106
11820 msgid "Possible values for C<parttype> are:"
11821 msgstr ""
11822
11823 # type: =item
11824 #: ../src/guestfs-actions.pod:4644 ../fish/guestfish-actions.pod:3110
11825 msgid "B<efi> | B<gpt>"
11826 msgstr ""
11827
11828 # type: textblock
11829 #: ../src/guestfs-actions.pod:4646 ../fish/guestfish-actions.pod:3112
11830 msgid "Intel EFI / GPT partition table."
11831 msgstr ""
11832
11833 # type: textblock
11834 #: ../src/guestfs-actions.pod:4648 ../fish/guestfish-actions.pod:3114
11835 msgid ""
11836 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
11837 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
11838 "the C<mbr> format."
11839 msgstr ""
11840
11841 # type: =item
11842 #: ../src/guestfs-actions.pod:4652 ../fish/guestfish-actions.pod:3118
11843 msgid "B<mbr> | B<msdos>"
11844 msgstr ""
11845
11846 # type: textblock
11847 #: ../src/guestfs-actions.pod:4654 ../fish/guestfish-actions.pod:3120
11848 msgid ""
11849 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
11850 "Windows.  This partition type will B<only> work for device sizes up to 2 "
11851 "TB.  For large disks we recommend using C<gpt>."
11852 msgstr ""
11853
11854 # type: textblock
11855 #: ../src/guestfs-actions.pod:4661 ../fish/guestfish-actions.pod:3127
11856 msgid "Other partition table types that may work but are not supported include:"
11857 msgstr ""
11858
11859 # type: =item
11860 #: ../src/guestfs-actions.pod:4666 ../fish/guestfish-actions.pod:3132
11861 msgid "B<aix>"
11862 msgstr ""
11863
11864 # type: textblock
11865 #: ../src/guestfs-actions.pod:4668 ../fish/guestfish-actions.pod:3134
11866 msgid "AIX disk labels."
11867 msgstr ""
11868
11869 # type: =item
11870 #: ../src/guestfs-actions.pod:4670 ../fish/guestfish-actions.pod:3136
11871 msgid "B<amiga> | B<rdb>"
11872 msgstr ""
11873
11874 # type: textblock
11875 #: ../src/guestfs-actions.pod:4672 ../fish/guestfish-actions.pod:3138
11876 msgid "Amiga \"Rigid Disk Block\" format."
11877 msgstr ""
11878
11879 # type: =item
11880 #: ../src/guestfs-actions.pod:4674 ../fish/guestfish-actions.pod:3140
11881 msgid "B<bsd>"
11882 msgstr ""
11883
11884 # type: textblock
11885 #: ../src/guestfs-actions.pod:4676 ../fish/guestfish-actions.pod:3142
11886 msgid "BSD disk labels."
11887 msgstr ""
11888
11889 # type: =item
11890 #: ../src/guestfs-actions.pod:4678 ../fish/guestfish-actions.pod:3144
11891 msgid "B<dasd>"
11892 msgstr ""
11893
11894 # type: textblock
11895 #: ../src/guestfs-actions.pod:4680 ../fish/guestfish-actions.pod:3146
11896 msgid "DASD, used on IBM mainframes."
11897 msgstr ""
11898
11899 # type: =item
11900 #: ../src/guestfs-actions.pod:4682 ../fish/guestfish-actions.pod:3148
11901 msgid "B<dvh>"
11902 msgstr ""
11903
11904 # type: textblock
11905 #: ../src/guestfs-actions.pod:4684 ../fish/guestfish-actions.pod:3150
11906 msgid "MIPS/SGI volumes."
11907 msgstr ""
11908
11909 # type: =item
11910 #: ../src/guestfs-actions.pod:4686 ../fish/guestfish-actions.pod:3152
11911 msgid "B<mac>"
11912 msgstr ""
11913
11914 # type: textblock
11915 #: ../src/guestfs-actions.pod:4688 ../fish/guestfish-actions.pod:3154
11916 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
11917 msgstr ""
11918
11919 # type: =item
11920 #: ../src/guestfs-actions.pod:4690 ../fish/guestfish-actions.pod:3156
11921 msgid "B<pc98>"
11922 msgstr ""
11923
11924 # type: textblock
11925 #: ../src/guestfs-actions.pod:4692 ../fish/guestfish-actions.pod:3158
11926 msgid "NEC PC-98 format, common in Japan apparently."
11927 msgstr ""
11928
11929 # type: =item
11930 #: ../src/guestfs-actions.pod:4694 ../fish/guestfish-actions.pod:3160
11931 msgid "B<sun>"
11932 msgstr ""
11933
11934 # type: textblock
11935 #: ../src/guestfs-actions.pod:4696 ../fish/guestfish-actions.pod:3162
11936 msgid "Sun disk labels."
11937 msgstr ""
11938
11939 # type: =head2
11940 #: ../src/guestfs-actions.pod:4704
11941 msgid "guestfs_part_list"
11942 msgstr ""
11943
11944 # type: verbatim
11945 #: ../src/guestfs-actions.pod:4706
11946 #, no-wrap
11947 msgid ""
11948 " struct guestfs_partition_list *\n"
11949 " guestfs_part_list (guestfs_h *g,\n"
11950 "                    const char *device);\n"
11951 "\n"
11952 msgstr ""
11953
11954 # type: textblock
11955 #: ../src/guestfs-actions.pod:4710 ../fish/guestfish-actions.pod:3170
11956 msgid ""
11957 "This command parses the partition table on C<device> and returns the list of "
11958 "partitions found."
11959 msgstr ""
11960
11961 # type: textblock
11962 #: ../src/guestfs-actions.pod:4713 ../fish/guestfish-actions.pod:3173
11963 msgid "The fields in the returned structure are:"
11964 msgstr ""
11965
11966 # type: =item
11967 #: ../src/guestfs-actions.pod:4717 ../fish/guestfish-actions.pod:3177
11968 msgid "B<part_num>"
11969 msgstr ""
11970
11971 # type: textblock
11972 #: ../src/guestfs-actions.pod:4719 ../fish/guestfish-actions.pod:3179
11973 msgid "Partition number, counting from 1."
11974 msgstr ""
11975
11976 # type: =item
11977 #: ../src/guestfs-actions.pod:4721 ../fish/guestfish-actions.pod:3181
11978 msgid "B<part_start>"
11979 msgstr ""
11980
11981 # type: textblock
11982 #: ../src/guestfs-actions.pod:4723
11983 msgid ""
11984 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
11985 "the device's sector size, see C<guestfs_blockdev_getss>."
11986 msgstr ""
11987
11988 # type: =item
11989 #: ../src/guestfs-actions.pod:4726 ../fish/guestfish-actions.pod:3186
11990 msgid "B<part_end>"
11991 msgstr ""
11992
11993 # type: textblock
11994 #: ../src/guestfs-actions.pod:4728 ../fish/guestfish-actions.pod:3188
11995 msgid "End of the partition in bytes."
11996 msgstr ""
11997
11998 # type: =item
11999 #: ../src/guestfs-actions.pod:4730 ../fish/guestfish-actions.pod:3190
12000 msgid "B<part_size>"
12001 msgstr ""
12002
12003 # type: textblock
12004 #: ../src/guestfs-actions.pod:4732 ../fish/guestfish-actions.pod:3192
12005 msgid "Size of the partition in bytes."
12006 msgstr ""
12007
12008 # type: textblock
12009 #: ../src/guestfs-actions.pod:4736
12010 msgid ""
12011 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
12012 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
12013 "use>."
12014 msgstr ""
12015
12016 # type: =head2
12017 #: ../src/guestfs-actions.pod:4742
12018 msgid "guestfs_part_set_bootable"
12019 msgstr ""
12020
12021 # type: verbatim
12022 #: ../src/guestfs-actions.pod:4744
12023 #, no-wrap
12024 msgid ""
12025 " int\n"
12026 " guestfs_part_set_bootable (guestfs_h *g,\n"
12027 "                            const char *device,\n"
12028 "                            int partnum,\n"
12029 "                            int bootable);\n"
12030 "\n"
12031 msgstr ""
12032
12033 # type: textblock
12034 #: ../src/guestfs-actions.pod:4750 ../fish/guestfish-actions.pod:3200
12035 msgid ""
12036 "This sets the bootable flag on partition numbered C<partnum> on device "
12037 "C<device>.  Note that partitions are numbered from 1."
12038 msgstr ""
12039
12040 # type: textblock
12041 #: ../src/guestfs-actions.pod:4753 ../fish/guestfish-actions.pod:3203
12042 msgid ""
12043 "The bootable flag is used by some operating systems (notably Windows) to "
12044 "determine which partition to boot from.  It is by no means universally "
12045 "recognized."
12046 msgstr ""
12047
12048 # type: =head2
12049 #: ../src/guestfs-actions.pod:4761
12050 msgid "guestfs_part_set_mbr_id"
12051 msgstr ""
12052
12053 # type: verbatim
12054 #: ../src/guestfs-actions.pod:4763
12055 #, no-wrap
12056 msgid ""
12057 " int\n"
12058 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
12059 "                          const char *device,\n"
12060 "                          int partnum,\n"
12061 "                          int idbyte);\n"
12062 "\n"
12063 msgstr ""
12064
12065 # type: textblock
12066 #: ../src/guestfs-actions.pod:4769 ../fish/guestfish-actions.pod:3211
12067 msgid ""
12068 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
12069 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
12070 "documentation are in fact hexadecimal numbers, but usually documented "
12071 "without any leading \"0x\" which might be confusing."
12072 msgstr ""
12073
12074 # type: =head2
12075 #: ../src/guestfs-actions.pod:4783
12076 msgid "guestfs_part_set_name"
12077 msgstr ""
12078
12079 # type: verbatim
12080 #: ../src/guestfs-actions.pod:4785
12081 #, no-wrap
12082 msgid ""
12083 " int\n"
12084 " guestfs_part_set_name (guestfs_h *g,\n"
12085 "                        const char *device,\n"
12086 "                        int partnum,\n"
12087 "                        const char *name);\n"
12088 "\n"
12089 msgstr ""
12090
12091 # type: textblock
12092 #: ../src/guestfs-actions.pod:4791 ../fish/guestfish-actions.pod:3225
12093 msgid ""
12094 "This sets the partition name on partition numbered C<partnum> on device "
12095 "C<device>.  Note that partitions are numbered from 1."
12096 msgstr ""
12097
12098 # type: textblock
12099 #: ../src/guestfs-actions.pod:4794 ../fish/guestfish-actions.pod:3228
12100 msgid ""
12101 "The partition name can only be set on certain types of partition table.  "
12102 "This works on C<gpt> but not on C<mbr> partitions."
12103 msgstr ""
12104
12105 # type: =head2
12106 #: ../src/guestfs-actions.pod:4801
12107 msgid "guestfs_part_to_dev"
12108 msgstr ""
12109
12110 # type: verbatim
12111 #: ../src/guestfs-actions.pod:4803
12112 #, no-wrap
12113 msgid ""
12114 " char *\n"
12115 " guestfs_part_to_dev (guestfs_h *g,\n"
12116 "                      const char *partition);\n"
12117 "\n"
12118 msgstr ""
12119
12120 # type: textblock
12121 #: ../src/guestfs-actions.pod:4807 ../fish/guestfish-actions.pod:3235
12122 msgid ""
12123 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
12124 "partition number, returning the device name (eg. \"/dev/sdb\")."
12125 msgstr ""
12126
12127 # type: textblock
12128 #: ../src/guestfs-actions.pod:4811
12129 msgid ""
12130 "The named partition must exist, for example as a string returned from "
12131 "C<guestfs_list_partitions>."
12132 msgstr ""
12133
12134 # type: =head2
12135 #: ../src/guestfs-actions.pod:4819
12136 msgid "guestfs_ping_daemon"
12137 msgstr ""
12138
12139 # type: verbatim
12140 #: ../src/guestfs-actions.pod:4821
12141 #, no-wrap
12142 msgid ""
12143 " int\n"
12144 " guestfs_ping_daemon (guestfs_h *g);\n"
12145 "\n"
12146 msgstr ""
12147
12148 # type: textblock
12149 #: ../src/guestfs-actions.pod:4824 ../fish/guestfish-actions.pod:3246
12150 msgid ""
12151 "This is a test probe into the guestfs daemon running inside the qemu "
12152 "subprocess.  Calling this function checks that the daemon responds to the "
12153 "ping message, without affecting the daemon or attached block device(s) in "
12154 "any other way."
12155 msgstr ""
12156
12157 # type: =head2
12158 #: ../src/guestfs-actions.pod:4833
12159 msgid "guestfs_pread"
12160 msgstr ""
12161
12162 # type: verbatim
12163 #: ../src/guestfs-actions.pod:4835
12164 #, no-wrap
12165 msgid ""
12166 " char *\n"
12167 " guestfs_pread (guestfs_h *g,\n"
12168 "                const char *path,\n"
12169 "                int count,\n"
12170 "                int64_t offset,\n"
12171 "                size_t *size_r);\n"
12172 "\n"
12173 msgstr ""
12174
12175 # type: textblock
12176 #: ../src/guestfs-actions.pod:4842 ../fish/guestfish-actions.pod:3255
12177 msgid ""
12178 "This command lets you read part of a file.  It reads C<count> bytes of the "
12179 "file, starting at C<offset>, from file C<path>."
12180 msgstr ""
12181
12182 # type: textblock
12183 #: ../src/guestfs-actions.pod:4845 ../src/guestfs-actions.pod:4871 ../fish/guestfish-actions.pod:3258 ../fish/guestfish-actions.pod:3273
12184 msgid ""
12185 "This may read fewer bytes than requested.  For further details see the "
12186 "L<pread(2)> system call."
12187 msgstr ""
12188
12189 # type: textblock
12190 #: ../src/guestfs-actions.pod:4848
12191 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
12192 msgstr ""
12193
12194 # type: =head2
12195 #: ../src/guestfs-actions.pod:4859
12196 msgid "guestfs_pread_device"
12197 msgstr ""
12198
12199 # type: verbatim
12200 #: ../src/guestfs-actions.pod:4861
12201 #, no-wrap
12202 msgid ""
12203 " char *\n"
12204 " guestfs_pread_device (guestfs_h *g,\n"
12205 "                       const char *device,\n"
12206 "                       int count,\n"
12207 "                       int64_t offset,\n"
12208 "                       size_t *size_r);\n"
12209 "\n"
12210 msgstr ""
12211
12212 # type: textblock
12213 #: ../src/guestfs-actions.pod:4868 ../fish/guestfish-actions.pod:3270
12214 msgid ""
12215 "This command lets you read part of a file.  It reads C<count> bytes of "
12216 "C<device>, starting at C<offset>."
12217 msgstr ""
12218
12219 # type: textblock
12220 #: ../src/guestfs-actions.pod:4874
12221 msgid "See also C<guestfs_pread>."
12222 msgstr ""
12223
12224 # type: textblock
12225 #: ../src/guestfs-actions.pod:4883
12226 msgid "(Added in 1.5.21)"
12227 msgstr ""
12228
12229 # type: =head2
12230 #: ../src/guestfs-actions.pod:4885
12231 msgid "guestfs_pvcreate"
12232 msgstr ""
12233
12234 # type: verbatim
12235 #: ../src/guestfs-actions.pod:4887
12236 #, no-wrap
12237 msgid ""
12238 " int\n"
12239 " guestfs_pvcreate (guestfs_h *g,\n"
12240 "                   const char *device);\n"
12241 "\n"
12242 msgstr ""
12243
12244 # type: textblock
12245 #: ../src/guestfs-actions.pod:4891 ../fish/guestfish-actions.pod:3285
12246 msgid ""
12247 "This creates an LVM physical volume on the named C<device>, where C<device> "
12248 "should usually be a partition name such as C</dev/sda1>."
12249 msgstr ""
12250
12251 # type: =head2
12252 #: ../src/guestfs-actions.pod:4899
12253 msgid "guestfs_pvremove"
12254 msgstr ""
12255
12256 # type: verbatim
12257 #: ../src/guestfs-actions.pod:4901
12258 #, no-wrap
12259 msgid ""
12260 " int\n"
12261 " guestfs_pvremove (guestfs_h *g,\n"
12262 "                   const char *device);\n"
12263 "\n"
12264 msgstr ""
12265
12266 # type: textblock
12267 #: ../src/guestfs-actions.pod:4905 ../fish/guestfish-actions.pod:3293
12268 msgid ""
12269 "This wipes a physical volume C<device> so that LVM will no longer recognise "
12270 "it."
12271 msgstr ""
12272
12273 # type: textblock
12274 #: ../src/guestfs-actions.pod:4908 ../fish/guestfish-actions.pod:3296
12275 msgid ""
12276 "The implementation uses the C<pvremove> command which refuses to wipe "
12277 "physical volumes that contain any volume groups, so you have to remove those "
12278 "first."
12279 msgstr ""
12280
12281 # type: =head2
12282 #: ../src/guestfs-actions.pod:4916
12283 msgid "guestfs_pvresize"
12284 msgstr ""
12285
12286 # type: verbatim
12287 #: ../src/guestfs-actions.pod:4918
12288 #, no-wrap
12289 msgid ""
12290 " int\n"
12291 " guestfs_pvresize (guestfs_h *g,\n"
12292 "                   const char *device);\n"
12293 "\n"
12294 msgstr ""
12295
12296 # type: textblock
12297 #: ../src/guestfs-actions.pod:4922 ../fish/guestfish-actions.pod:3304
12298 msgid ""
12299 "This resizes (expands or shrinks) an existing LVM physical volume to match "
12300 "the new size of the underlying device."
12301 msgstr ""
12302
12303 # type: =head2
12304 #: ../src/guestfs-actions.pod:4929
12305 msgid "guestfs_pvresize_size"
12306 msgstr ""
12307
12308 # type: verbatim
12309 #: ../src/guestfs-actions.pod:4931
12310 #, no-wrap
12311 msgid ""
12312 " int\n"
12313 " guestfs_pvresize_size (guestfs_h *g,\n"
12314 "                        const char *device,\n"
12315 "                        int64_t size);\n"
12316 "\n"
12317 msgstr ""
12318
12319 # type: textblock
12320 #: ../src/guestfs-actions.pod:4936
12321 msgid ""
12322 "This command is the same as C<guestfs_pvresize> except that it allows you to "
12323 "specify the new size (in bytes) explicitly."
12324 msgstr ""
12325
12326 # type: =head2
12327 #: ../src/guestfs-actions.pod:4943
12328 msgid "guestfs_pvs"
12329 msgstr ""
12330
12331 # type: verbatim
12332 #: ../src/guestfs-actions.pod:4945
12333 #, no-wrap
12334 msgid ""
12335 " char **\n"
12336 " guestfs_pvs (guestfs_h *g);\n"
12337 "\n"
12338 msgstr ""
12339
12340 # type: textblock
12341 #: ../src/guestfs-actions.pod:4948 ../fish/guestfish-actions.pod:3318
12342 msgid ""
12343 "List all the physical volumes detected.  This is the equivalent of the "
12344 "L<pvs(8)> command."
12345 msgstr ""
12346
12347 # type: textblock
12348 #: ../src/guestfs-actions.pod:4951 ../fish/guestfish-actions.pod:3321
12349 msgid ""
12350 "This returns a list of just the device names that contain PVs "
12351 "(eg. C</dev/sda2>)."
12352 msgstr ""
12353
12354 # type: textblock
12355 #: ../src/guestfs-actions.pod:4954
12356 msgid "See also C<guestfs_pvs_full>."
12357 msgstr ""
12358
12359 # type: =head2
12360 #: ../src/guestfs-actions.pod:4962
12361 msgid "guestfs_pvs_full"
12362 msgstr ""
12363
12364 # type: verbatim
12365 #: ../src/guestfs-actions.pod:4964
12366 #, no-wrap
12367 msgid ""
12368 " struct guestfs_lvm_pv_list *\n"
12369 " guestfs_pvs_full (guestfs_h *g);\n"
12370 "\n"
12371 msgstr ""
12372
12373 # type: textblock
12374 #: ../src/guestfs-actions.pod:4967 ../fish/guestfish-actions.pod:3330
12375 msgid ""
12376 "List all the physical volumes detected.  This is the equivalent of the "
12377 "L<pvs(8)> command.  The \"full\" version includes all fields."
12378 msgstr ""
12379
12380 # type: textblock
12381 #: ../src/guestfs-actions.pod:4970
12382 msgid ""
12383 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
12384 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after "
12385 "use>."
12386 msgstr ""
12387
12388 # type: =head2
12389 #: ../src/guestfs-actions.pod:4976
12390 msgid "guestfs_pvuuid"
12391 msgstr ""
12392
12393 # type: verbatim
12394 #: ../src/guestfs-actions.pod:4978
12395 #, no-wrap
12396 msgid ""
12397 " char *\n"
12398 " guestfs_pvuuid (guestfs_h *g,\n"
12399 "                 const char *device);\n"
12400 "\n"
12401 msgstr ""
12402
12403 # type: textblock
12404 #: ../src/guestfs-actions.pod:4982 ../fish/guestfish-actions.pod:3337
12405 msgid "This command returns the UUID of the LVM PV C<device>."
12406 msgstr ""
12407
12408 # type: =head2
12409 #: ../src/guestfs-actions.pod:4989
12410 msgid "guestfs_pwrite"
12411 msgstr ""
12412
12413 # type: verbatim
12414 #: ../src/guestfs-actions.pod:4991
12415 #, no-wrap
12416 msgid ""
12417 " int\n"
12418 " guestfs_pwrite (guestfs_h *g,\n"
12419 "                 const char *path,\n"
12420 "                 const char *content,\n"
12421 "                 size_t content_size,\n"
12422 "                 int64_t offset);\n"
12423 "\n"
12424 msgstr ""
12425
12426 # type: textblock
12427 #: ../src/guestfs-actions.pod:4998 ../fish/guestfish-actions.pod:3343
12428 msgid ""
12429 "This command writes to part of a file.  It writes the data buffer C<content> "
12430 "to the file C<path> starting at offset C<offset>."
12431 msgstr ""
12432
12433 # type: textblock
12434 #: ../src/guestfs-actions.pod:5001 ../fish/guestfish-actions.pod:3346
12435 msgid ""
12436 "This command implements the L<pwrite(2)> system call, and like that system "
12437 "call it may not write the full data requested.  The return value is the "
12438 "number of bytes that were actually written to the file.  This could even be "
12439 "0, although short writes are unlikely for regular files in ordinary "
12440 "circumstances."
12441 msgstr ""
12442
12443 # type: textblock
12444 #: ../src/guestfs-actions.pod:5007
12445 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
12446 msgstr ""
12447
12448 # type: =head2
12449 #: ../src/guestfs-actions.pod:5016
12450 msgid "guestfs_pwrite_device"
12451 msgstr ""
12452
12453 # type: verbatim
12454 #: ../src/guestfs-actions.pod:5018
12455 #, no-wrap
12456 msgid ""
12457 " int\n"
12458 " guestfs_pwrite_device (guestfs_h *g,\n"
12459 "                        const char *device,\n"
12460 "                        const char *content,\n"
12461 "                        size_t content_size,\n"
12462 "                        int64_t offset);\n"
12463 "\n"
12464 msgstr ""
12465
12466 # type: textblock
12467 #: ../src/guestfs-actions.pod:5025 ../fish/guestfish-actions.pod:3361
12468 msgid ""
12469 "This command writes to part of a device.  It writes the data buffer "
12470 "C<content> to C<device> starting at offset C<offset>."
12471 msgstr ""
12472
12473 # type: textblock
12474 #: ../src/guestfs-actions.pod:5028 ../fish/guestfish-actions.pod:3364
12475 msgid ""
12476 "This command implements the L<pwrite(2)> system call, and like that system "
12477 "call it may not write the full data requested (although short writes to disk "
12478 "devices and partitions are probably impossible with standard Linux kernels)."
12479 msgstr ""
12480
12481 # type: textblock
12482 #: ../src/guestfs-actions.pod:5033
12483 msgid "See also C<guestfs_pwrite>."
12484 msgstr ""
12485
12486 # type: textblock
12487 #: ../src/guestfs-actions.pod:5040
12488 msgid "(Added in 1.5.20)"
12489 msgstr ""
12490
12491 # type: =head2
12492 #: ../src/guestfs-actions.pod:5042
12493 msgid "guestfs_read_file"
12494 msgstr ""
12495
12496 # type: verbatim
12497 #: ../src/guestfs-actions.pod:5044
12498 #, no-wrap
12499 msgid ""
12500 " char *\n"
12501 " guestfs_read_file (guestfs_h *g,\n"
12502 "                    const char *path,\n"
12503 "                    size_t *size_r);\n"
12504 "\n"
12505 msgstr ""
12506
12507 # type: textblock
12508 #: ../src/guestfs-actions.pod:5049 ../fish/guestfish-actions.pod:3378
12509 msgid "This calls returns the contents of the file C<path> as a buffer."
12510 msgstr ""
12511
12512 # type: textblock
12513 #: ../src/guestfs-actions.pod:5052
12514 msgid ""
12515 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
12516 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
12517 "function is limited in the total size of file that can be handled."
12518 msgstr ""
12519
12520 # type: textblock
12521 #: ../src/guestfs-actions.pod:5064
12522 msgid "(Added in 1.0.63)"
12523 msgstr ""
12524
12525 # type: =head2
12526 #: ../src/guestfs-actions.pod:5066
12527 msgid "guestfs_read_lines"
12528 msgstr ""
12529
12530 # type: verbatim
12531 #: ../src/guestfs-actions.pod:5068
12532 #, no-wrap
12533 msgid ""
12534 " char **\n"
12535 " guestfs_read_lines (guestfs_h *g,\n"
12536 "                     const char *path);\n"
12537 "\n"
12538 msgstr ""
12539
12540 # type: textblock
12541 #: ../src/guestfs-actions.pod:5074 ../fish/guestfish-actions.pod:3395
12542 msgid ""
12543 "The file contents are returned as a list of lines.  Trailing C<LF> and "
12544 "C<CRLF> character sequences are I<not> returned."
12545 msgstr ""
12546
12547 # type: textblock
12548 #: ../src/guestfs-actions.pod:5077
12549 msgid ""
12550 "Note that this function cannot correctly handle binary files (specifically, "
12551 "files containing C<\\0> character which is treated as end of line).  For "
12552 "those you need to use the C<guestfs_read_file> function which has a more "
12553 "complex interface."
12554 msgstr ""
12555
12556 # type: =head2
12557 #: ../src/guestfs-actions.pod:5088
12558 msgid "guestfs_readdir"
12559 msgstr ""
12560
12561 # type: verbatim
12562 #: ../src/guestfs-actions.pod:5090
12563 #, no-wrap
12564 msgid ""
12565 " struct guestfs_dirent_list *\n"
12566 " guestfs_readdir (guestfs_h *g,\n"
12567 "                  const char *dir);\n"
12568 "\n"
12569 msgstr ""
12570
12571 # type: textblock
12572 #: ../src/guestfs-actions.pod:5094 ../fish/guestfish-actions.pod:3407
12573 msgid "This returns the list of directory entries in directory C<dir>."
12574 msgstr ""
12575
12576 # type: textblock
12577 #: ../src/guestfs-actions.pod:5096 ../fish/guestfish-actions.pod:3409
12578 msgid ""
12579 "All entries in the directory are returned, including C<.> and C<..>.  The "
12580 "entries are I<not> sorted, but returned in the same order as the underlying "
12581 "filesystem."
12582 msgstr ""
12583
12584 # type: textblock
12585 #: ../src/guestfs-actions.pod:5100 ../fish/guestfish-actions.pod:3413
12586 msgid ""
12587 "Also this call returns basic file type information about each file.  The "
12588 "C<ftyp> field will contain one of the following characters:"
12589 msgstr ""
12590
12591 # type: =item
12592 #: ../src/guestfs-actions.pod:5105 ../fish/guestfish-actions.pod:3418
12593 msgid "'b'"
12594 msgstr ""
12595
12596 # type: textblock
12597 #: ../src/guestfs-actions.pod:5107 ../fish/guestfish-actions.pod:3420
12598 msgid "Block special"
12599 msgstr ""
12600
12601 # type: =item
12602 #: ../src/guestfs-actions.pod:5109 ../fish/guestfish-actions.pod:3422
12603 msgid "'c'"
12604 msgstr ""
12605
12606 # type: textblock
12607 #: ../src/guestfs-actions.pod:5111 ../fish/guestfish-actions.pod:3424
12608 msgid "Char special"
12609 msgstr ""
12610
12611 # type: =item
12612 #: ../src/guestfs-actions.pod:5113 ../fish/guestfish-actions.pod:3426
12613 msgid "'d'"
12614 msgstr ""
12615
12616 # type: textblock
12617 #: ../src/guestfs-actions.pod:5115 ../fish/guestfish-actions.pod:3428
12618 msgid "Directory"
12619 msgstr ""
12620
12621 # type: =item
12622 #: ../src/guestfs-actions.pod:5117 ../fish/guestfish-actions.pod:3430
12623 msgid "'f'"
12624 msgstr ""
12625
12626 # type: textblock
12627 #: ../src/guestfs-actions.pod:5119 ../fish/guestfish-actions.pod:3432
12628 msgid "FIFO (named pipe)"
12629 msgstr ""
12630
12631 # type: =item
12632 #: ../src/guestfs-actions.pod:5121 ../fish/guestfish-actions.pod:3434
12633 msgid "'l'"
12634 msgstr ""
12635
12636 # type: textblock
12637 #: ../src/guestfs-actions.pod:5123 ../fish/guestfish-actions.pod:3436
12638 msgid "Symbolic link"
12639 msgstr ""
12640
12641 # type: =item
12642 #: ../src/guestfs-actions.pod:5125 ../fish/guestfish-actions.pod:3438
12643 msgid "'r'"
12644 msgstr ""
12645
12646 # type: textblock
12647 #: ../src/guestfs-actions.pod:5127 ../fish/guestfish-actions.pod:3440
12648 msgid "Regular file"
12649 msgstr ""
12650
12651 # type: =item
12652 #: ../src/guestfs-actions.pod:5129 ../fish/guestfish-actions.pod:3442
12653 msgid "'s'"
12654 msgstr ""
12655
12656 # type: textblock
12657 #: ../src/guestfs-actions.pod:5131 ../fish/guestfish-actions.pod:3444
12658 msgid "Socket"
12659 msgstr ""
12660
12661 # type: =item
12662 #: ../src/guestfs-actions.pod:5133 ../fish/guestfish-actions.pod:3446
12663 msgid "'u'"
12664 msgstr ""
12665
12666 # type: textblock
12667 #: ../src/guestfs-actions.pod:5135 ../fish/guestfish-actions.pod:3448
12668 msgid "Unknown file type"
12669 msgstr ""
12670
12671 # type: =item
12672 #: ../src/guestfs-actions.pod:5137 ../fish/guestfish-actions.pod:3450
12673 msgid "'?'"
12674 msgstr ""
12675
12676 # type: textblock
12677 #: ../src/guestfs-actions.pod:5139 ../fish/guestfish-actions.pod:3452
12678 msgid "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
12679 msgstr ""
12680
12681 # type: textblock
12682 #: ../src/guestfs-actions.pod:5144
12683 msgid ""
12684 "This function is primarily intended for use by programs.  To get a simple "
12685 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
12686 "consumption, use C<guestfs_ll>."
12687 msgstr ""
12688
12689 # type: textblock
12690 #: ../src/guestfs-actions.pod:5148
12691 msgid ""
12692 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
12693 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after "
12694 "use>."
12695 msgstr ""
12696
12697 # type: =head2
12698 #: ../src/guestfs-actions.pod:5154
12699 msgid "guestfs_readlink"
12700 msgstr ""
12701
12702 # type: verbatim
12703 #: ../src/guestfs-actions.pod:5156
12704 #, no-wrap
12705 msgid ""
12706 " char *\n"
12707 " guestfs_readlink (guestfs_h *g,\n"
12708 "                   const char *path);\n"
12709 "\n"
12710 msgstr ""
12711
12712 # type: textblock
12713 #: ../src/guestfs-actions.pod:5160 ../fish/guestfish-actions.pod:3465
12714 msgid "This command reads the target of a symbolic link."
12715 msgstr ""
12716
12717 # type: =head2
12718 #: ../src/guestfs-actions.pod:5167
12719 msgid "guestfs_readlinklist"
12720 msgstr ""
12721
12722 # type: verbatim
12723 #: ../src/guestfs-actions.pod:5169
12724 #, no-wrap
12725 msgid ""
12726 " char **\n"
12727 " guestfs_readlinklist (guestfs_h *g,\n"
12728 "                       const char *path,\n"
12729 "                       char *const *names);\n"
12730 "\n"
12731 msgstr ""
12732
12733 # type: textblock
12734 #: ../src/guestfs-actions.pod:5174 ../fish/guestfish-actions.pod:3471
12735 msgid ""
12736 "This call allows you to do a C<readlink> operation on multiple files, where "
12737 "all files are in the directory C<path>.  C<names> is the list of files from "
12738 "this directory."
12739 msgstr ""
12740
12741 # type: textblock
12742 #: ../src/guestfs-actions.pod:5178 ../fish/guestfish-actions.pod:3475
12743 msgid ""
12744 "On return you get a list of strings, with a one-to-one correspondence to the "
12745 "C<names> list.  Each string is the value of the symbolic link."
12746 msgstr ""
12747
12748 # type: textblock
12749 #: ../src/guestfs-actions.pod:5182 ../fish/guestfish-actions.pod:3479
12750 msgid ""
12751 "If the C<readlink(2)> operation fails on any name, then the corresponding "
12752 "result string is the empty string C<\"\">.  However the whole operation is "
12753 "completed even if there were C<readlink(2)> errors, and so you can call this "
12754 "function with names where you don't know if they are symbolic links already "
12755 "(albeit slightly less efficient)."
12756 msgstr ""
12757
12758 # type: textblock
12759 #: ../src/guestfs-actions.pod:5189 ../fish/guestfish-actions.pod:3486
12760 msgid ""
12761 "This call is intended for programs that want to efficiently list a directory "
12762 "contents without making many round-trips.  Very long directory listings "
12763 "might cause the protocol message size to be exceeded, causing this call to "
12764 "fail.  The caller must split up such requests into smaller groups of names."
12765 msgstr ""
12766
12767 # type: =head2
12768 #: ../src/guestfs-actions.pod:5202
12769 msgid "guestfs_realpath"
12770 msgstr ""
12771
12772 # type: verbatim
12773 #: ../src/guestfs-actions.pod:5204
12774 #, no-wrap
12775 msgid ""
12776 " char *\n"
12777 " guestfs_realpath (guestfs_h *g,\n"
12778 "                   const char *path);\n"
12779 "\n"
12780 msgstr ""
12781
12782 # type: textblock
12783 #: ../src/guestfs-actions.pod:5208 ../fish/guestfish-actions.pod:3497
12784 msgid ""
12785 "Return the canonicalized absolute pathname of C<path>.  The returned path "
12786 "has no C<.>, C<..> or symbolic link path elements."
12787 msgstr ""
12788
12789 # type: =head2
12790 #: ../src/guestfs-actions.pod:5216
12791 msgid "guestfs_removexattr"
12792 msgstr ""
12793
12794 # type: verbatim
12795 #: ../src/guestfs-actions.pod:5218
12796 #, no-wrap
12797 msgid ""
12798 " int\n"
12799 " guestfs_removexattr (guestfs_h *g,\n"
12800 "                      const char *xattr,\n"
12801 "                      const char *path);\n"
12802 "\n"
12803 msgstr ""
12804
12805 # type: textblock
12806 #: ../src/guestfs-actions.pod:5223 ../fish/guestfish-actions.pod:3504
12807 msgid "This call removes the extended attribute named C<xattr> of the file C<path>."
12808 msgstr ""
12809
12810 # type: textblock
12811 #: ../src/guestfs-actions.pod:5226
12812 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
12813 msgstr ""
12814
12815 # type: =head2
12816 #: ../src/guestfs-actions.pod:5232
12817 msgid "guestfs_resize2fs"
12818 msgstr ""
12819
12820 # type: verbatim
12821 #: ../src/guestfs-actions.pod:5234
12822 #, no-wrap
12823 msgid ""
12824 " int\n"
12825 " guestfs_resize2fs (guestfs_h *g,\n"
12826 "                    const char *device);\n"
12827 "\n"
12828 msgstr ""
12829
12830 # type: textblock
12831 #: ../src/guestfs-actions.pod:5238 ../fish/guestfish-actions.pod:3513
12832 msgid ""
12833 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
12834 "underlying device."
12835 msgstr ""
12836
12837 # type: textblock
12838 #: ../src/guestfs-actions.pod:5241
12839 msgid ""
12840 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
12841 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
12842 "sometimes gives an error about this and sometimes not.  In any case, it is "
12843 "always safe to call C<guestfs_e2fsck_f> before calling this function."
12844 msgstr ""
12845
12846 # type: =head2
12847 #: ../src/guestfs-actions.pod:5251
12848 msgid "guestfs_resize2fs_size"
12849 msgstr ""
12850
12851 # type: verbatim
12852 #: ../src/guestfs-actions.pod:5253
12853 #, no-wrap
12854 msgid ""
12855 " int\n"
12856 " guestfs_resize2fs_size (guestfs_h *g,\n"
12857 "                         const char *device,\n"
12858 "                         int64_t size);\n"
12859 "\n"
12860 msgstr ""
12861
12862 # type: textblock
12863 #: ../src/guestfs-actions.pod:5258
12864 msgid ""
12865 "This command is the same as C<guestfs_resize2fs> except that it allows you "
12866 "to specify the new size (in bytes) explicitly."
12867 msgstr ""
12868
12869 # type: =head2
12870 #: ../src/guestfs-actions.pod:5265
12871 msgid "guestfs_rm"
12872 msgstr ""
12873
12874 # type: verbatim
12875 #: ../src/guestfs-actions.pod:5267
12876 #, no-wrap
12877 msgid ""
12878 " int\n"
12879 " guestfs_rm (guestfs_h *g,\n"
12880 "             const char *path);\n"
12881 "\n"
12882 msgstr ""
12883
12884 # type: textblock
12885 #: ../src/guestfs-actions.pod:5271 ../fish/guestfish-actions.pod:3533
12886 msgid "Remove the single file C<path>."
12887 msgstr ""
12888
12889 # type: =head2
12890 #: ../src/guestfs-actions.pod:5277
12891 msgid "guestfs_rm_rf"
12892 msgstr ""
12893
12894 # type: verbatim
12895 #: ../src/guestfs-actions.pod:5279
12896 #, no-wrap
12897 msgid ""
12898 " int\n"
12899 " guestfs_rm_rf (guestfs_h *g,\n"
12900 "                const char *path);\n"
12901 "\n"
12902 msgstr ""
12903
12904 # type: textblock
12905 #: ../src/guestfs-actions.pod:5283 ../fish/guestfish-actions.pod:3539
12906 msgid ""
12907 "Remove the file or directory C<path>, recursively removing the contents if "
12908 "its a directory.  This is like the C<rm -rf> shell command."
12909 msgstr ""
12910
12911 # type: =head2
12912 #: ../src/guestfs-actions.pod:5291
12913 msgid "guestfs_rmdir"
12914 msgstr ""
12915
12916 # type: verbatim
12917 #: ../src/guestfs-actions.pod:5293
12918 #, no-wrap
12919 msgid ""
12920 " int\n"
12921 " guestfs_rmdir (guestfs_h *g,\n"
12922 "                const char *path);\n"
12923 "\n"
12924 msgstr ""
12925
12926 # type: textblock
12927 #: ../src/guestfs-actions.pod:5297 ../fish/guestfish-actions.pod:3547
12928 msgid "Remove the single directory C<path>."
12929 msgstr ""
12930
12931 # type: =head2
12932 #: ../src/guestfs-actions.pod:5303
12933 msgid "guestfs_rmmountpoint"
12934 msgstr ""
12935
12936 # type: verbatim
12937 #: ../src/guestfs-actions.pod:5305
12938 #, no-wrap
12939 msgid ""
12940 " int\n"
12941 " guestfs_rmmountpoint (guestfs_h *g,\n"
12942 "                       const char *exemptpath);\n"
12943 "\n"
12944 msgstr ""
12945
12946 # type: textblock
12947 #: ../src/guestfs-actions.pod:5309
12948 msgid ""
12949 "This calls removes a mountpoint that was previously created with "
12950 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
12951 msgstr ""
12952
12953 # type: =head2
12954 #: ../src/guestfs-actions.pod:5317
12955 msgid "guestfs_scrub_device"
12956 msgstr ""
12957
12958 # type: verbatim
12959 #: ../src/guestfs-actions.pod:5319
12960 #, no-wrap
12961 msgid ""
12962 " int\n"
12963 " guestfs_scrub_device (guestfs_h *g,\n"
12964 "                       const char *device);\n"
12965 "\n"
12966 msgstr ""
12967
12968 # type: textblock
12969 #: ../src/guestfs-actions.pod:5323 ../fish/guestfish-actions.pod:3561
12970 msgid ""
12971 "This command writes patterns over C<device> to make data retrieval more "
12972 "difficult."
12973 msgstr ""
12974
12975 # type: textblock
12976 #: ../src/guestfs-actions.pod:5326 ../src/guestfs-actions.pod:5347 ../src/guestfs-actions.pod:5366 ../fish/guestfish-actions.pod:3564 ../fish/guestfish-actions.pod:3579 ../fish/guestfish-actions.pod:3592
12977 msgid ""
12978 "It is an interface to the L<scrub(1)> program.  See that manual page for "
12979 "more details."
12980 msgstr ""
12981
12982 # type: textblock
12983 #: ../src/guestfs-actions.pod:5334 ../src/guestfs-actions.pod:5352 ../src/guestfs-actions.pod:5371
12984 msgid "(Added in 1.0.52)"
12985 msgstr ""
12986
12987 # type: =head2
12988 #: ../src/guestfs-actions.pod:5336
12989 msgid "guestfs_scrub_file"
12990 msgstr ""
12991
12992 # type: verbatim
12993 #: ../src/guestfs-actions.pod:5338
12994 #, no-wrap
12995 msgid ""
12996 " int\n"
12997 " guestfs_scrub_file (guestfs_h *g,\n"
12998 "                     const char *file);\n"
12999 "\n"
13000 msgstr ""
13001
13002 # type: textblock
13003 #: ../src/guestfs-actions.pod:5342 ../fish/guestfish-actions.pod:3574
13004 msgid ""
13005 "This command writes patterns over a file to make data retrieval more "
13006 "difficult."
13007 msgstr ""
13008
13009 # type: textblock
13010 #: ../src/guestfs-actions.pod:5345 ../fish/guestfish-actions.pod:3577
13011 msgid "The file is I<removed> after scrubbing."
13012 msgstr ""
13013
13014 # type: =head2
13015 #: ../src/guestfs-actions.pod:5354
13016 msgid "guestfs_scrub_freespace"
13017 msgstr ""
13018
13019 # type: verbatim
13020 #: ../src/guestfs-actions.pod:5356
13021 #, no-wrap
13022 msgid ""
13023 " int\n"
13024 " guestfs_scrub_freespace (guestfs_h *g,\n"
13025 "                          const char *dir);\n"
13026 "\n"
13027 msgstr ""
13028
13029 # type: textblock
13030 #: ../src/guestfs-actions.pod:5360
13031 msgid ""
13032 "This command creates the directory C<dir> and then fills it with files until "
13033 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
13034 "and deletes them.  The intention is to scrub any free space on the partition "
13035 "containing C<dir>."
13036 msgstr ""
13037
13038 # type: =head2
13039 #: ../src/guestfs-actions.pod:5373
13040 msgid "guestfs_set_append"
13041 msgstr ""
13042
13043 # type: verbatim
13044 #: ../src/guestfs-actions.pod:5375
13045 #, no-wrap
13046 msgid ""
13047 " int\n"
13048 " guestfs_set_append (guestfs_h *g,\n"
13049 "                     const char *append);\n"
13050 "\n"
13051 msgstr ""
13052
13053 # type: textblock
13054 #: ../src/guestfs-actions.pod:5379 ../fish/guestfish-actions.pod:3601
13055 msgid ""
13056 "This function is used to add additional options to the guest kernel command "
13057 "line."
13058 msgstr ""
13059
13060 # type: textblock
13061 #: ../src/guestfs-actions.pod:5382 ../fish/guestfish-actions.pod:3604
13062 msgid ""
13063 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
13064 "environment variable."
13065 msgstr ""
13066
13067 # type: textblock
13068 #: ../src/guestfs-actions.pod:5385 ../fish/guestfish-actions.pod:3607
13069 msgid ""
13070 "Setting C<append> to C<NULL> means I<no> additional options are passed "
13071 "(libguestfs always adds a few of its own)."
13072 msgstr ""
13073
13074 # type: =head2
13075 #: ../src/guestfs-actions.pod:5392
13076 msgid "guestfs_set_autosync"
13077 msgstr ""
13078
13079 # type: verbatim
13080 #: ../src/guestfs-actions.pod:5394
13081 #, no-wrap
13082 msgid ""
13083 " int\n"
13084 " guestfs_set_autosync (guestfs_h *g,\n"
13085 "                       int autosync);\n"
13086 "\n"
13087 msgstr ""
13088
13089 # type: textblock
13090 #: ../src/guestfs-actions.pod:5398
13091 msgid ""
13092 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
13093 "effort attempt to run C<guestfs_umount_all> followed by C<guestfs_sync> when "
13094 "the handle is closed (also if the program exits without closing handles)."
13095 msgstr ""
13096
13097 # type: textblock
13098 #: ../src/guestfs-actions.pod:5403 ../fish/guestfish-actions.pod:3621
13099 msgid ""
13100 "This is enabled by default (since libguestfs 1.5.24, previously it was "
13101 "disabled by default)."
13102 msgstr ""
13103
13104 # type: =head2
13105 #: ../src/guestfs-actions.pod:5410
13106 msgid "guestfs_set_direct"
13107 msgstr ""
13108
13109 # type: verbatim
13110 #: ../src/guestfs-actions.pod:5412
13111 #, no-wrap
13112 msgid ""
13113 " int\n"
13114 " guestfs_set_direct (guestfs_h *g,\n"
13115 "                     int direct);\n"
13116 "\n"
13117 msgstr ""
13118
13119 # type: textblock
13120 #: ../src/guestfs-actions.pod:5416 ../fish/guestfish-actions.pod:3630
13121 msgid ""
13122 "If the direct appliance mode flag is enabled, then stdin and stdout are "
13123 "passed directly through to the appliance once it is launched."
13124 msgstr ""
13125
13126 # type: textblock
13127 #: ../src/guestfs-actions.pod:5420
13128 msgid ""
13129 "One consequence of this is that log messages aren't caught by the library "
13130 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
13131 "stdout."
13132 msgstr ""
13133
13134 # type: textblock
13135 #: ../src/guestfs-actions.pod:5424 ../fish/guestfish-actions.pod:3638
13136 msgid "You probably don't want to use this unless you know what you are doing."
13137 msgstr ""
13138
13139 # type: textblock
13140 #: ../src/guestfs-actions.pod:5427 ../fish/guestfish-actions.pod:3641
13141 msgid "The default is disabled."
13142 msgstr ""
13143
13144 # type: =head2
13145 #: ../src/guestfs-actions.pod:5433
13146 msgid "guestfs_set_e2label"
13147 msgstr ""
13148
13149 # type: verbatim
13150 #: ../src/guestfs-actions.pod:5435
13151 #, no-wrap
13152 msgid ""
13153 " int\n"
13154 " guestfs_set_e2label (guestfs_h *g,\n"
13155 "                      const char *device,\n"
13156 "                      const char *label);\n"
13157 "\n"
13158 msgstr ""
13159
13160 # type: textblock
13161 #: ../src/guestfs-actions.pod:5440 ../fish/guestfish-actions.pod:3647
13162 msgid ""
13163 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
13164 "C<label>.  Filesystem labels are limited to 16 characters."
13165 msgstr ""
13166
13167 # type: textblock
13168 #: ../src/guestfs-actions.pod:5444
13169 msgid ""
13170 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
13171 "the existing label on a filesystem."
13172 msgstr ""
13173
13174 # type: =head2
13175 #: ../src/guestfs-actions.pod:5451
13176 msgid "guestfs_set_e2uuid"
13177 msgstr ""
13178
13179 # type: verbatim
13180 #: ../src/guestfs-actions.pod:5453
13181 #, no-wrap
13182 msgid ""
13183 " int\n"
13184 " guestfs_set_e2uuid (guestfs_h *g,\n"
13185 "                     const char *device,\n"
13186 "                     const char *uuid);\n"
13187 "\n"
13188 msgstr ""
13189
13190 # type: textblock
13191 #: ../src/guestfs-actions.pod:5458 ../fish/guestfish-actions.pod:3658
13192 msgid ""
13193 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
13194 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
13195 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
13196 msgstr ""
13197
13198 # type: textblock
13199 #: ../src/guestfs-actions.pod:5463
13200 msgid ""
13201 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
13202 "the existing UUID of a filesystem."
13203 msgstr ""
13204
13205 # type: =head2
13206 #: ../src/guestfs-actions.pod:5470
13207 msgid "guestfs_set_memsize"
13208 msgstr ""
13209
13210 # type: verbatim
13211 #: ../src/guestfs-actions.pod:5472
13212 #, no-wrap
13213 msgid ""
13214 " int\n"
13215 " guestfs_set_memsize (guestfs_h *g,\n"
13216 "                      int memsize);\n"
13217 "\n"
13218 msgstr ""
13219
13220 # type: textblock
13221 #: ../src/guestfs-actions.pod:5476
13222 msgid ""
13223 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
13224 "This only has any effect if called before C<guestfs_launch>."
13225 msgstr ""
13226
13227 # type: textblock
13228 #: ../src/guestfs-actions.pod:5480 ../fish/guestfish-actions.pod:3676
13229 msgid ""
13230 "You can also change this by setting the environment variable "
13231 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
13232 msgstr ""
13233
13234 # type: =head2
13235 #: ../src/guestfs-actions.pod:5491
13236 msgid "guestfs_set_network"
13237 msgstr ""
13238
13239 # type: verbatim
13240 #: ../src/guestfs-actions.pod:5493
13241 #, no-wrap
13242 msgid ""
13243 " int\n"
13244 " guestfs_set_network (guestfs_h *g,\n"
13245 "                      int network);\n"
13246 "\n"
13247 msgstr ""
13248
13249 # type: textblock
13250 #: ../src/guestfs-actions.pod:5497 ../fish/guestfish-actions.pod:3689
13251 msgid ""
13252 "If C<network> is true, then the network is enabled in the libguestfs "
13253 "appliance.  The default is false."
13254 msgstr ""
13255
13256 # type: textblock
13257 #: ../src/guestfs-actions.pod:5500 ../fish/guestfish-actions.pod:3692
13258 msgid ""
13259 "This affects whether commands are able to access the network (see "
13260 "L<guestfs(3)/RUNNING COMMANDS>)."
13261 msgstr ""
13262
13263 # type: textblock
13264 #: ../src/guestfs-actions.pod:5503
13265 msgid ""
13266 "You must call this before calling C<guestfs_launch>, otherwise it has no "
13267 "effect."
13268 msgstr ""
13269
13270 # type: =head2
13271 #: ../src/guestfs-actions.pod:5510
13272 msgid "guestfs_set_path"
13273 msgstr ""
13274
13275 # type: verbatim
13276 #: ../src/guestfs-actions.pod:5512
13277 #, no-wrap
13278 msgid ""
13279 " int\n"
13280 " guestfs_set_path (guestfs_h *g,\n"
13281 "                   const char *searchpath);\n"
13282 "\n"
13283 msgstr ""
13284
13285 # type: textblock
13286 #: ../src/guestfs-actions.pod:5516 ../fish/guestfish-actions.pod:3704
13287 msgid "Set the path that libguestfs searches for kernel and initrd.img."
13288 msgstr ""
13289
13290 # type: textblock
13291 #: ../src/guestfs-actions.pod:5518 ../fish/guestfish-actions.pod:3706
13292 msgid ""
13293 "The default is C<$libdir/guestfs> unless overridden by setting "
13294 "C<LIBGUESTFS_PATH> environment variable."
13295 msgstr ""
13296
13297 # type: textblock
13298 #: ../src/guestfs-actions.pod:5521 ../fish/guestfish-actions.pod:3709
13299 msgid "Setting C<path> to C<NULL> restores the default path."
13300 msgstr ""
13301
13302 # type: =head2
13303 #: ../src/guestfs-actions.pod:5527
13304 msgid "guestfs_set_qemu"
13305 msgstr ""
13306
13307 # type: verbatim
13308 #: ../src/guestfs-actions.pod:5529
13309 #, no-wrap
13310 msgid ""
13311 " int\n"
13312 " guestfs_set_qemu (guestfs_h *g,\n"
13313 "                   const char *qemu);\n"
13314 "\n"
13315 msgstr ""
13316
13317 # type: textblock
13318 #: ../src/guestfs-actions.pod:5533 ../fish/guestfish-actions.pod:3717
13319 msgid "Set the qemu binary that we will use."
13320 msgstr ""
13321
13322 # type: textblock
13323 #: ../src/guestfs-actions.pod:5535 ../fish/guestfish-actions.pod:3719
13324 msgid "The default is chosen when the library was compiled by the configure script."
13325 msgstr ""
13326
13327 # type: textblock
13328 #: ../src/guestfs-actions.pod:5538 ../fish/guestfish-actions.pod:3722
13329 msgid ""
13330 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
13331 "variable."
13332 msgstr ""
13333
13334 # type: textblock
13335 #: ../src/guestfs-actions.pod:5541 ../fish/guestfish-actions.pod:3725
13336 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
13337 msgstr ""
13338
13339 # type: textblock
13340 #: ../src/guestfs-actions.pod:5543 ../fish/guestfish-actions.pod:3727
13341 msgid ""
13342 "Note that you should call this function as early as possible after creating "
13343 "the handle.  This is because some pre-launch operations depend on testing "
13344 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
13345 "don't retest features, and so you might see inconsistent results.  Using the "
13346 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
13347 "the qemu binary at the same time as the handle is created."
13348 msgstr ""
13349
13350 # type: =head2
13351 #: ../src/guestfs-actions.pod:5555
13352 msgid "guestfs_set_recovery_proc"
13353 msgstr ""
13354
13355 # type: verbatim
13356 #: ../src/guestfs-actions.pod:5557
13357 #, no-wrap
13358 msgid ""
13359 " int\n"
13360 " guestfs_set_recovery_proc (guestfs_h *g,\n"
13361 "                            int recoveryproc);\n"
13362 "\n"
13363 msgstr ""
13364
13365 # type: textblock
13366 #: ../src/guestfs-actions.pod:5561
13367 msgid ""
13368 "If this is called with the parameter C<false> then C<guestfs_launch> does "
13369 "not create a recovery process.  The purpose of the recovery process is to "
13370 "stop runaway qemu processes in the case where the main program aborts "
13371 "abruptly."
13372 msgstr ""
13373
13374 # type: textblock
13375 #: ../src/guestfs-actions.pod:5566
13376 msgid ""
13377 "This only has any effect if called before C<guestfs_launch>, and the default "
13378 "is true."
13379 msgstr ""
13380
13381 # type: textblock
13382 #: ../src/guestfs-actions.pod:5569 ../fish/guestfish-actions.pod:3749
13383 msgid ""
13384 "About the only time when you would want to disable this is if the main "
13385 "process will fork itself into the background (\"daemonize\" itself).  In "
13386 "this case the recovery process thinks that the main program has disappeared "
13387 "and so kills qemu, which is not very helpful."
13388 msgstr ""
13389
13390 # type: =head2
13391 #: ../src/guestfs-actions.pod:5579
13392 msgid "guestfs_set_selinux"
13393 msgstr ""
13394
13395 # type: verbatim
13396 #: ../src/guestfs-actions.pod:5581
13397 #, no-wrap
13398 msgid ""
13399 " int\n"
13400 " guestfs_set_selinux (guestfs_h *g,\n"
13401 "                      int selinux);\n"
13402 "\n"
13403 msgstr ""
13404
13405 # type: textblock
13406 #: ../src/guestfs-actions.pod:5585 ../fish/guestfish-actions.pod:3761
13407 msgid ""
13408 "This sets the selinux flag that is passed to the appliance at boot time.  "
13409 "The default is C<selinux=0> (disabled)."
13410 msgstr ""
13411
13412 # type: textblock
13413 #: ../src/guestfs-actions.pod:5588 ../fish/guestfish-actions.pod:3764
13414 msgid ""
13415 "Note that if SELinux is enabled, it is always in Permissive mode "
13416 "(C<enforcing=0>)."
13417 msgstr ""
13418
13419 # type: =head2
13420 #: ../src/guestfs-actions.pod:5598
13421 msgid "guestfs_set_trace"
13422 msgstr ""
13423
13424 # type: verbatim
13425 #: ../src/guestfs-actions.pod:5600
13426 #, no-wrap
13427 msgid ""
13428 " int\n"
13429 " guestfs_set_trace (guestfs_h *g,\n"
13430 "                    int trace);\n"
13431 "\n"
13432 msgstr ""
13433
13434 # type: textblock
13435 #: ../src/guestfs-actions.pod:5604 ../fish/guestfish-actions.pod:3776
13436 msgid ""
13437 "If the command trace flag is set to 1, then commands are printed on stderr "
13438 "before they are executed in a format which is very similar to the one used "
13439 "by guestfish.  In other words, you can run a program with this enabled, and "
13440 "you will get out a script which you can feed to guestfish to perform the "
13441 "same set of actions."
13442 msgstr ""
13443
13444 # type: textblock
13445 #: ../src/guestfs-actions.pod:5611 ../fish/guestfish-actions.pod:3783
13446 msgid ""
13447 "If you want to trace C API calls into libguestfs (and other libraries) then "
13448 "possibly a better way is to use the external ltrace(1) command."
13449 msgstr ""
13450
13451 # type: textblock
13452 #: ../src/guestfs-actions.pod:5615 ../fish/guestfish-actions.pod:3787
13453 msgid ""
13454 "Command traces are disabled unless the environment variable "
13455 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
13456 msgstr ""
13457
13458 # type: =head2
13459 #: ../src/guestfs-actions.pod:5622
13460 msgid "guestfs_set_verbose"
13461 msgstr ""
13462
13463 # type: verbatim
13464 #: ../src/guestfs-actions.pod:5624
13465 #, no-wrap
13466 msgid ""
13467 " int\n"
13468 " guestfs_set_verbose (guestfs_h *g,\n"
13469 "                      int verbose);\n"
13470 "\n"
13471 msgstr ""
13472
13473 # type: textblock
13474 #: ../src/guestfs-actions.pod:5628 ../fish/guestfish-actions.pod:3796
13475 msgid "If C<verbose> is true, this turns on verbose messages (to C<stderr>)."
13476 msgstr ""
13477
13478 # type: textblock
13479 #: ../src/guestfs-actions.pod:5630 ../fish/guestfish-actions.pod:3798
13480 msgid ""
13481 "Verbose messages are disabled unless the environment variable "
13482 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
13483 msgstr ""
13484
13485 # type: =head2
13486 #: ../src/guestfs-actions.pod:5637
13487 msgid "guestfs_setcon"
13488 msgstr ""
13489
13490 # type: verbatim
13491 #: ../src/guestfs-actions.pod:5639
13492 #, no-wrap
13493 msgid ""
13494 " int\n"
13495 " guestfs_setcon (guestfs_h *g,\n"
13496 "                 const char *context);\n"
13497 "\n"
13498 msgstr ""
13499
13500 # type: textblock
13501 #: ../src/guestfs-actions.pod:5643 ../fish/guestfish-actions.pod:3805
13502 msgid ""
13503 "This sets the SELinux security context of the daemon to the string "
13504 "C<context>."
13505 msgstr ""
13506
13507 # type: textblock
13508 #: ../src/guestfs-actions.pod:5646 ../fish/guestfish-actions.pod:3808
13509 msgid "See the documentation about SELINUX in L<guestfs(3)>."
13510 msgstr ""
13511
13512 # type: =head2
13513 #: ../src/guestfs-actions.pod:5652
13514 msgid "guestfs_setxattr"
13515 msgstr ""
13516
13517 # type: verbatim
13518 #: ../src/guestfs-actions.pod:5654
13519 #, no-wrap
13520 msgid ""
13521 " int\n"
13522 " guestfs_setxattr (guestfs_h *g,\n"
13523 "                   const char *xattr,\n"
13524 "                   const char *val,\n"
13525 "                   int vallen,\n"
13526 "                   const char *path);\n"
13527 "\n"
13528 msgstr ""
13529
13530 # type: textblock
13531 #: ../src/guestfs-actions.pod:5661 ../fish/guestfish-actions.pod:3814
13532 msgid ""
13533 "This call sets the extended attribute named C<xattr> of the file C<path> to "
13534 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
13535 msgstr ""
13536
13537 # type: textblock
13538 #: ../src/guestfs-actions.pod:5665
13539 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
13540 msgstr ""
13541
13542 # type: =head2
13543 #: ../src/guestfs-actions.pod:5671
13544 msgid "guestfs_sfdisk"
13545 msgstr ""
13546
13547 # type: verbatim
13548 #: ../src/guestfs-actions.pod:5673
13549 #, no-wrap
13550 msgid ""
13551 " int\n"
13552 " guestfs_sfdisk (guestfs_h *g,\n"
13553 "                 const char *device,\n"
13554 "                 int cyls,\n"
13555 "                 int heads,\n"
13556 "                 int sectors,\n"
13557 "                 char *const *lines);\n"
13558 "\n"
13559 msgstr ""
13560
13561 # type: textblock
13562 #: ../src/guestfs-actions.pod:5681 ../fish/guestfish-actions.pod:3824
13563 msgid ""
13564 "This is a direct interface to the L<sfdisk(8)> program for creating "
13565 "partitions on block devices."
13566 msgstr ""
13567
13568 # type: textblock
13569 #: ../src/guestfs-actions.pod:5684 ../fish/guestfish-actions.pod:3827
13570 msgid "C<device> should be a block device, for example C</dev/sda>."
13571 msgstr ""
13572
13573 # type: textblock
13574 #: ../src/guestfs-actions.pod:5686 ../fish/guestfish-actions.pod:3829
13575 msgid ""
13576 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
13577 "sectors on the device, which are passed directly to sfdisk as the I<-C>, "
13578 "I<-H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
13579 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
13580 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
13581 "the kernel) cannot work out the right geometry and you will need to tell it."
13582 msgstr ""
13583
13584 # type: textblock
13585 #: ../src/guestfs-actions.pod:5694 ../fish/guestfish-actions.pod:3837
13586 msgid ""
13587 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
13588 "refer to the L<sfdisk(8)> manpage."
13589 msgstr ""
13590
13591 # type: textblock
13592 #: ../src/guestfs-actions.pod:5697 ../fish/guestfish-actions.pod:3840
13593 msgid ""
13594 "To create a single partition occupying the whole disk, you would pass "
13595 "C<lines> as a single element list, when the single element being the string "
13596 "C<,> (comma)."
13597 msgstr ""
13598
13599 # type: textblock
13600 #: ../src/guestfs-actions.pod:5701
13601 msgid "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
13602 msgstr ""
13603
13604 # type: =head2
13605 #: ../src/guestfs-actions.pod:5711
13606 msgid "guestfs_sfdiskM"
13607 msgstr ""
13608
13609 # type: verbatim
13610 #: ../src/guestfs-actions.pod:5713
13611 #, no-wrap
13612 msgid ""
13613 " int\n"
13614 " guestfs_sfdiskM (guestfs_h *g,\n"
13615 "                  const char *device,\n"
13616 "                  char *const *lines);\n"
13617 "\n"
13618 msgstr ""
13619
13620 # type: textblock
13621 #: ../src/guestfs-actions.pod:5718
13622 msgid ""
13623 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
13624 "partition sizes are specified in megabytes only (rounded to the nearest "
13625 "cylinder) and you don't need to specify the cyls, heads and sectors "
13626 "parameters which were rarely if ever used anyway."
13627 msgstr ""
13628
13629 # type: textblock
13630 #: ../src/guestfs-actions.pod:5724
13631 msgid ""
13632 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
13633 "C<guestfs_part_disk>"
13634 msgstr ""
13635
13636 # type: =head2
13637 #: ../src/guestfs-actions.pod:5734
13638 msgid "guestfs_sfdisk_N"
13639 msgstr ""
13640
13641 # type: verbatim
13642 #: ../src/guestfs-actions.pod:5736
13643 #, no-wrap
13644 msgid ""
13645 " int\n"
13646 " guestfs_sfdisk_N (guestfs_h *g,\n"
13647 "                   const char *device,\n"
13648 "                   int partnum,\n"
13649 "                   int cyls,\n"
13650 "                   int heads,\n"
13651 "                   int sectors,\n"
13652 "                   const char *line);\n"
13653 "\n"
13654 msgstr ""
13655
13656 # type: textblock
13657 #: ../src/guestfs-actions.pod:5745 ../fish/guestfish-actions.pod:3870
13658 msgid ""
13659 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
13660 "(note: C<n> counts from 1)."
13661 msgstr ""
13662
13663 # type: textblock
13664 #: ../src/guestfs-actions.pod:5748
13665 msgid ""
13666 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
13667 "for the cyls/heads/sectors parameters."
13668 msgstr ""
13669
13670 # type: textblock
13671 #: ../src/guestfs-actions.pod:5751
13672 msgid "See also: C<guestfs_part_add>"
13673 msgstr ""
13674
13675 # type: =head2
13676 #: ../src/guestfs-actions.pod:5760
13677 msgid "guestfs_sfdisk_disk_geometry"
13678 msgstr ""
13679
13680 # type: verbatim
13681 #: ../src/guestfs-actions.pod:5762
13682 #, no-wrap
13683 msgid ""
13684 " char *\n"
13685 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
13686 "                               const char *device);\n"
13687 "\n"
13688 msgstr ""
13689
13690 # type: textblock
13691 #: ../src/guestfs-actions.pod:5766
13692 msgid ""
13693 "This displays the disk geometry of C<device> read from the partition table.  "
13694 "Especially in the case where the underlying block device has been resized, "
13695 "this can be different from the kernel's idea of the geometry (see "
13696 "C<guestfs_sfdisk_kernel_geometry>)."
13697 msgstr ""
13698
13699 # type: textblock
13700 #: ../src/guestfs-actions.pod:5771 ../src/guestfs-actions.pod:5787 ../fish/guestfish-actions.pod:3890 ../fish/guestfish-actions.pod:3899
13701 msgid "The result is in human-readable format, and not designed to be parsed."
13702 msgstr ""
13703
13704 # type: =head2
13705 #: ../src/guestfs-actions.pod:5779
13706 msgid "guestfs_sfdisk_kernel_geometry"
13707 msgstr ""
13708
13709 # type: verbatim
13710 #: ../src/guestfs-actions.pod:5781
13711 #, no-wrap
13712 msgid ""
13713 " char *\n"
13714 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
13715 "                                 const char *device);\n"
13716 "\n"
13717 msgstr ""
13718
13719 # type: textblock
13720 #: ../src/guestfs-actions.pod:5785 ../fish/guestfish-actions.pod:3897
13721 msgid "This displays the kernel's idea of the geometry of C<device>."
13722 msgstr ""
13723
13724 # type: =head2
13725 #: ../src/guestfs-actions.pod:5795
13726 msgid "guestfs_sfdisk_l"
13727 msgstr ""
13728
13729 # type: verbatim
13730 #: ../src/guestfs-actions.pod:5797
13731 #, no-wrap
13732 msgid ""
13733 " char *\n"
13734 " guestfs_sfdisk_l (guestfs_h *g,\n"
13735 "                   const char *device);\n"
13736 "\n"
13737 msgstr ""
13738
13739 # type: textblock
13740 #: ../src/guestfs-actions.pod:5801 ../fish/guestfish-actions.pod:3906
13741 msgid ""
13742 "This displays the partition table on C<device>, in the human-readable output "
13743 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
13744 msgstr ""
13745
13746 # type: textblock
13747 #: ../src/guestfs-actions.pod:5805
13748 msgid "See also: C<guestfs_part_list>"
13749 msgstr ""
13750
13751 # type: =head2
13752 #: ../src/guestfs-actions.pod:5812
13753 msgid "guestfs_sh"
13754 msgstr ""
13755
13756 # type: verbatim
13757 #: ../src/guestfs-actions.pod:5814
13758 #, no-wrap
13759 msgid ""
13760 " char *\n"
13761 " guestfs_sh (guestfs_h *g,\n"
13762 "             const char *command);\n"
13763 "\n"
13764 msgstr ""
13765
13766 # type: textblock
13767 #: ../src/guestfs-actions.pod:5818 ../fish/guestfish-actions.pod:3916
13768 msgid ""
13769 "This call runs a command from the guest filesystem via the guest's "
13770 "C</bin/sh>."
13771 msgstr ""
13772
13773 # type: textblock
13774 #: ../src/guestfs-actions.pod:5821
13775 msgid "This is like C<guestfs_command>, but passes the command to:"
13776 msgstr ""
13777
13778 # type: verbatim
13779 #: ../src/guestfs-actions.pod:5823 ../fish/guestfish-actions.pod:3921
13780 #, no-wrap
13781 msgid ""
13782 " /bin/sh -c \"command\"\n"
13783 "\n"
13784 msgstr ""
13785
13786 # type: textblock
13787 #: ../src/guestfs-actions.pod:5825 ../fish/guestfish-actions.pod:3923
13788 msgid ""
13789 "Depending on the guest's shell, this usually results in wildcards being "
13790 "expanded, shell expressions being interpolated and so on."
13791 msgstr ""
13792
13793 # type: textblock
13794 #: ../src/guestfs-actions.pod:5829
13795 msgid "All the provisos about C<guestfs_command> apply to this call."
13796 msgstr ""
13797
13798 # type: =head2
13799 #: ../src/guestfs-actions.pod:5836
13800 msgid "guestfs_sh_lines"
13801 msgstr ""
13802
13803 # type: verbatim
13804 #: ../src/guestfs-actions.pod:5838
13805 #, no-wrap
13806 msgid ""
13807 " char **\n"
13808 " guestfs_sh_lines (guestfs_h *g,\n"
13809 "                   const char *command);\n"
13810 "\n"
13811 msgstr ""
13812
13813 # type: textblock
13814 #: ../src/guestfs-actions.pod:5842
13815 msgid ""
13816 "This is the same as C<guestfs_sh>, but splits the result into a list of "
13817 "lines."
13818 msgstr ""
13819
13820 # type: textblock
13821 #: ../src/guestfs-actions.pod:5845
13822 msgid "See also: C<guestfs_command_lines>"
13823 msgstr ""
13824
13825 # type: =head2
13826 #: ../src/guestfs-actions.pod:5853
13827 msgid "guestfs_sleep"
13828 msgstr ""
13829
13830 # type: verbatim
13831 #: ../src/guestfs-actions.pod:5855
13832 #, no-wrap
13833 msgid ""
13834 " int\n"
13835 " guestfs_sleep (guestfs_h *g,\n"
13836 "                int secs);\n"
13837 "\n"
13838 msgstr ""
13839
13840 # type: textblock
13841 #: ../src/guestfs-actions.pod:5859 ../fish/guestfish-actions.pod:3942
13842 msgid "Sleep for C<secs> seconds."
13843 msgstr ""
13844
13845 # type: textblock
13846 #: ../src/guestfs-actions.pod:5863
13847 msgid "(Added in 1.0.41)"
13848 msgstr ""
13849
13850 # type: =head2
13851 #: ../src/guestfs-actions.pod:5865 ../src/guestfs-structs.pod:109
13852 msgid "guestfs_stat"
13853 msgstr ""
13854
13855 # type: verbatim
13856 #: ../src/guestfs-actions.pod:5867
13857 #, no-wrap
13858 msgid ""
13859 " struct guestfs_stat *\n"
13860 " guestfs_stat (guestfs_h *g,\n"
13861 "               const char *path);\n"
13862 "\n"
13863 msgstr ""
13864
13865 # type: textblock
13866 #: ../src/guestfs-actions.pod:5873 ../fish/guestfish-actions.pod:3950
13867 msgid "This is the same as the C<stat(2)> system call."
13868 msgstr ""
13869
13870 # type: =head2
13871 #: ../src/guestfs-actions.pod:5881 ../src/guestfs-structs.pod:135
13872 msgid "guestfs_statvfs"
13873 msgstr ""
13874
13875 # type: verbatim
13876 #: ../src/guestfs-actions.pod:5883
13877 #, no-wrap
13878 msgid ""
13879 " struct guestfs_statvfs *\n"
13880 " guestfs_statvfs (guestfs_h *g,\n"
13881 "                  const char *path);\n"
13882 "\n"
13883 msgstr ""
13884
13885 # type: textblock
13886 #: ../src/guestfs-actions.pod:5887 ../fish/guestfish-actions.pod:3956
13887 msgid ""
13888 "Returns file system statistics for any mounted file system.  C<path> should "
13889 "be a file or directory in the mounted file system (typically it is the mount "
13890 "point itself, but it doesn't need to be)."
13891 msgstr ""
13892
13893 # type: textblock
13894 #: ../src/guestfs-actions.pod:5891 ../fish/guestfish-actions.pod:3960
13895 msgid "This is the same as the C<statvfs(2)> system call."
13896 msgstr ""
13897
13898 # type: textblock
13899 #: ../src/guestfs-actions.pod:5893
13900 msgid ""
13901 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
13902 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
13903 msgstr ""
13904
13905 # type: =head2
13906 #: ../src/guestfs-actions.pod:5899
13907 msgid "guestfs_strings"
13908 msgstr ""
13909
13910 # type: verbatim
13911 #: ../src/guestfs-actions.pod:5901
13912 #, no-wrap
13913 msgid ""
13914 " char **\n"
13915 " guestfs_strings (guestfs_h *g,\n"
13916 "                  const char *path);\n"
13917 "\n"
13918 msgstr ""
13919
13920 # type: textblock
13921 #: ../src/guestfs-actions.pod:5905 ../fish/guestfish-actions.pod:3966
13922 msgid ""
13923 "This runs the L<strings(1)> command on a file and returns the list of "
13924 "printable strings found."
13925 msgstr ""
13926
13927 # type: =head2
13928 #: ../src/guestfs-actions.pod:5917
13929 msgid "guestfs_strings_e"
13930 msgstr ""
13931
13932 # type: verbatim
13933 #: ../src/guestfs-actions.pod:5919
13934 #, no-wrap
13935 msgid ""
13936 " char **\n"
13937 " guestfs_strings_e (guestfs_h *g,\n"
13938 "                    const char *encoding,\n"
13939 "                    const char *path);\n"
13940 "\n"
13941 msgstr ""
13942
13943 # type: textblock
13944 #: ../src/guestfs-actions.pod:5924
13945 msgid ""
13946 "This is like the C<guestfs_strings> command, but allows you to specify the "
13947 "encoding of strings that are looked for in the source file C<path>."
13948 msgstr ""
13949
13950 # type: textblock
13951 #: ../src/guestfs-actions.pod:5928 ../fish/guestfish-actions.pod:3980
13952 msgid "Allowed encodings are:"
13953 msgstr ""
13954
13955 # type: =item
13956 #: ../src/guestfs-actions.pod:5932 ../fish/guestfish-actions.pod:3984
13957 msgid "s"
13958 msgstr ""
13959
13960 # type: textblock
13961 #: ../src/guestfs-actions.pod:5934
13962 msgid ""
13963 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
13964 "ISO-8859-X (this is what C<guestfs_strings> uses)."
13965 msgstr ""
13966
13967 # type: =item
13968 #: ../src/guestfs-actions.pod:5937 ../fish/guestfish-actions.pod:3989
13969 msgid "S"
13970 msgstr ""
13971
13972 # type: textblock
13973 #: ../src/guestfs-actions.pod:5939 ../fish/guestfish-actions.pod:3991
13974 msgid "Single 8-bit-byte characters."
13975 msgstr ""
13976
13977 # type: =item
13978 #: ../src/guestfs-actions.pod:5941 ../fish/guestfish-actions.pod:3993
13979 msgid "b"
13980 msgstr ""
13981
13982 # type: textblock
13983 #: ../src/guestfs-actions.pod:5943 ../fish/guestfish-actions.pod:3995
13984 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
13985 msgstr ""
13986
13987 # type: =item
13988 #: ../src/guestfs-actions.pod:5946 ../fish/guestfish-actions.pod:3998
13989 msgid "l (lower case letter L)"
13990 msgstr ""
13991
13992 # type: textblock
13993 #: ../src/guestfs-actions.pod:5948 ../fish/guestfish-actions.pod:4000
13994 msgid ""
13995 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
13996 "examining binaries in Windows guests."
13997 msgstr ""
13998
13999 # type: =item
14000 #: ../src/guestfs-actions.pod:5951 ../fish/guestfish-actions.pod:4003
14001 msgid "B"
14002 msgstr ""
14003
14004 # type: textblock
14005 #: ../src/guestfs-actions.pod:5953 ../fish/guestfish-actions.pod:4005
14006 msgid "32-bit big endian such as UCS-4BE."
14007 msgstr ""
14008
14009 # type: =item
14010 #: ../src/guestfs-actions.pod:5955 ../fish/guestfish-actions.pod:4007
14011 msgid "L"
14012 msgstr ""
14013
14014 # type: textblock
14015 #: ../src/guestfs-actions.pod:5957 ../fish/guestfish-actions.pod:4009
14016 msgid "32-bit little endian such as UCS-4LE."
14017 msgstr ""
14018
14019 # type: textblock
14020 #: ../src/guestfs-actions.pod:5961 ../fish/guestfish-actions.pod:4013
14021 msgid "The returned strings are transcoded to UTF-8."
14022 msgstr ""
14023
14024 # type: =head2
14025 #: ../src/guestfs-actions.pod:5972
14026 msgid "guestfs_swapoff_device"
14027 msgstr ""
14028
14029 # type: verbatim
14030 #: ../src/guestfs-actions.pod:5974
14031 #, no-wrap
14032 msgid ""
14033 " int\n"
14034 " guestfs_swapoff_device (guestfs_h *g,\n"
14035 "                         const char *device);\n"
14036 "\n"
14037 msgstr ""
14038
14039 # type: textblock
14040 #: ../src/guestfs-actions.pod:5978
14041 msgid ""
14042 "This command disables the libguestfs appliance swap device or partition "
14043 "named C<device>.  See C<guestfs_swapon_device>."
14044 msgstr ""
14045
14046 # type: =head2
14047 #: ../src/guestfs-actions.pod:5986
14048 msgid "guestfs_swapoff_file"
14049 msgstr ""
14050
14051 # type: verbatim
14052 #: ../src/guestfs-actions.pod:5988
14053 #, no-wrap
14054 msgid ""
14055 " int\n"
14056 " guestfs_swapoff_file (guestfs_h *g,\n"
14057 "                       const char *file);\n"
14058 "\n"
14059 msgstr ""
14060
14061 # type: textblock
14062 #: ../src/guestfs-actions.pod:5992 ../fish/guestfish-actions.pod:4030
14063 msgid "This command disables the libguestfs appliance swap on file."
14064 msgstr ""
14065
14066 # type: =head2
14067 #: ../src/guestfs-actions.pod:5998
14068 msgid "guestfs_swapoff_label"
14069 msgstr ""
14070
14071 # type: verbatim
14072 #: ../src/guestfs-actions.pod:6000
14073 #, no-wrap
14074 msgid ""
14075 " int\n"
14076 " guestfs_swapoff_label (guestfs_h *g,\n"
14077 "                        const char *label);\n"
14078 "\n"
14079 msgstr ""
14080
14081 # type: textblock
14082 #: ../src/guestfs-actions.pod:6004 ../fish/guestfish-actions.pod:4036
14083 msgid ""
14084 "This command disables the libguestfs appliance swap on labeled swap "
14085 "partition."
14086 msgstr ""
14087
14088 # type: =head2
14089 #: ../src/guestfs-actions.pod:6011
14090 msgid "guestfs_swapoff_uuid"
14091 msgstr ""
14092
14093 # type: verbatim
14094 #: ../src/guestfs-actions.pod:6013
14095 #, no-wrap
14096 msgid ""
14097 " int\n"
14098 " guestfs_swapoff_uuid (guestfs_h *g,\n"
14099 "                       const char *uuid);\n"
14100 "\n"
14101 msgstr ""
14102
14103 # type: textblock
14104 #: ../src/guestfs-actions.pod:6017 ../fish/guestfish-actions.pod:4043
14105 msgid ""
14106 "This command disables the libguestfs appliance swap partition with the given "
14107 "UUID."
14108 msgstr ""
14109
14110 # type: =head2
14111 #: ../src/guestfs-actions.pod:6024
14112 msgid "guestfs_swapon_device"
14113 msgstr ""
14114
14115 # type: verbatim
14116 #: ../src/guestfs-actions.pod:6026
14117 #, no-wrap
14118 msgid ""
14119 " int\n"
14120 " guestfs_swapon_device (guestfs_h *g,\n"
14121 "                        const char *device);\n"
14122 "\n"
14123 msgstr ""
14124
14125 # type: textblock
14126 #: ../src/guestfs-actions.pod:6030
14127 msgid ""
14128 "This command enables the libguestfs appliance to use the swap device or "
14129 "partition named C<device>.  The increased memory is made available for all "
14130 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
14131 msgstr ""
14132
14133 # type: textblock
14134 #: ../src/guestfs-actions.pod:6035 ../fish/guestfish-actions.pod:4055
14135 msgid ""
14136 "Note that you should not swap to existing guest swap partitions unless you "
14137 "know what you are doing.  They may contain hibernation information, or other "
14138 "information that the guest doesn't want you to trash.  You also risk leaking "
14139 "information about the host to the guest this way.  Instead, attach a new "
14140 "host device to the guest and swap on that."
14141 msgstr ""
14142
14143 # type: =head2
14144 #: ../src/guestfs-actions.pod:6046
14145 msgid "guestfs_swapon_file"
14146 msgstr ""
14147
14148 # type: verbatim
14149 #: ../src/guestfs-actions.pod:6048
14150 #, no-wrap
14151 msgid ""
14152 " int\n"
14153 " guestfs_swapon_file (guestfs_h *g,\n"
14154 "                      const char *file);\n"
14155 "\n"
14156 msgstr ""
14157
14158 # type: textblock
14159 #: ../src/guestfs-actions.pod:6052
14160 msgid ""
14161 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
14162 "notes."
14163 msgstr ""
14164
14165 # type: =head2
14166 #: ../src/guestfs-actions.pod:6059
14167 msgid "guestfs_swapon_label"
14168 msgstr ""
14169
14170 # type: verbatim
14171 #: ../src/guestfs-actions.pod:6061
14172 #, no-wrap
14173 msgid ""
14174 " int\n"
14175 " guestfs_swapon_label (guestfs_h *g,\n"
14176 "                       const char *label);\n"
14177 "\n"
14178 msgstr ""
14179
14180 # type: textblock
14181 #: ../src/guestfs-actions.pod:6065
14182 msgid ""
14183 "This command enables swap to a labeled swap partition.  See "
14184 "C<guestfs_swapon_device> for other notes."
14185 msgstr ""
14186
14187 # type: =head2
14188 #: ../src/guestfs-actions.pod:6072
14189 msgid "guestfs_swapon_uuid"
14190 msgstr ""
14191
14192 # type: verbatim
14193 #: ../src/guestfs-actions.pod:6074
14194 #, no-wrap
14195 msgid ""
14196 " int\n"
14197 " guestfs_swapon_uuid (guestfs_h *g,\n"
14198 "                      const char *uuid);\n"
14199 "\n"
14200 msgstr ""
14201
14202 # type: textblock
14203 #: ../src/guestfs-actions.pod:6078
14204 msgid ""
14205 "This command enables swap to a swap partition with the given UUID.  See "
14206 "C<guestfs_swapon_device> for other notes."
14207 msgstr ""
14208
14209 # type: =head2
14210 #: ../src/guestfs-actions.pod:6085
14211 msgid "guestfs_sync"
14212 msgstr ""
14213
14214 # type: verbatim
14215 #: ../src/guestfs-actions.pod:6087
14216 #, no-wrap
14217 msgid ""
14218 " int\n"
14219 " guestfs_sync (guestfs_h *g);\n"
14220 "\n"
14221 msgstr ""
14222
14223 # type: textblock
14224 #: ../src/guestfs-actions.pod:6090 ../fish/guestfish-actions.pod:4087
14225 msgid ""
14226 "This syncs the disk, so that any writes are flushed through to the "
14227 "underlying disk image."
14228 msgstr ""
14229
14230 # type: textblock
14231 #: ../src/guestfs-actions.pod:6093 ../fish/guestfish-actions.pod:4090
14232 msgid ""
14233 "You should always call this if you have modified a disk image, before "
14234 "closing the handle."
14235 msgstr ""
14236
14237 # type: =head2
14238 #: ../src/guestfs-actions.pod:6100
14239 msgid "guestfs_tail"
14240 msgstr ""
14241
14242 # type: verbatim
14243 #: ../src/guestfs-actions.pod:6102
14244 #, no-wrap
14245 msgid ""
14246 " char **\n"
14247 " guestfs_tail (guestfs_h *g,\n"
14248 "               const char *path);\n"
14249 "\n"
14250 msgstr ""
14251
14252 # type: textblock
14253 #: ../src/guestfs-actions.pod:6106 ../fish/guestfish-actions.pod:4097
14254 msgid "This command returns up to the last 10 lines of a file as a list of strings."
14255 msgstr ""
14256
14257 # type: =head2
14258 #: ../src/guestfs-actions.pod:6118
14259 msgid "guestfs_tail_n"
14260 msgstr ""
14261
14262 # type: verbatim
14263 #: ../src/guestfs-actions.pod:6120
14264 #, no-wrap
14265 msgid ""
14266 " char **\n"
14267 " guestfs_tail_n (guestfs_h *g,\n"
14268 "                 int nrlines,\n"
14269 "                 const char *path);\n"
14270 "\n"
14271 msgstr ""
14272
14273 # type: textblock
14274 #: ../src/guestfs-actions.pod:6125 ../fish/guestfish-actions.pod:4107
14275 msgid ""
14276 "If the parameter C<nrlines> is a positive number, this returns the last "
14277 "C<nrlines> lines of the file C<path>."
14278 msgstr ""
14279
14280 # type: textblock
14281 #: ../src/guestfs-actions.pod:6128 ../fish/guestfish-actions.pod:4110
14282 msgid ""
14283 "If the parameter C<nrlines> is a negative number, this returns lines from "
14284 "the file C<path>, starting with the C<-nrlines>th line."
14285 msgstr ""
14286
14287 # type: =head2
14288 #: ../src/guestfs-actions.pod:6142
14289 msgid "guestfs_tar_in"
14290 msgstr ""
14291
14292 # type: verbatim
14293 #: ../src/guestfs-actions.pod:6144
14294 #, no-wrap
14295 msgid ""
14296 " int\n"
14297 " guestfs_tar_in (guestfs_h *g,\n"
14298 "                 const char *tarfile,\n"
14299 "                 const char *directory);\n"
14300 "\n"
14301 msgstr ""
14302
14303 # type: textblock
14304 #: ../src/guestfs-actions.pod:6149 ../fish/guestfish-actions.pod:4122
14305 msgid ""
14306 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
14307 "tar file) into C<directory>."
14308 msgstr ""
14309
14310 # type: textblock
14311 #: ../src/guestfs-actions.pod:6152
14312 msgid "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
14313 msgstr ""
14314
14315 # type: textblock
14316 #: ../src/guestfs-actions.pod:6157 ../src/guestfs-actions.pod:6174 ../src/guestfs-actions.pod:6190 ../src/guestfs-actions.pod:6206
14317 msgid "(Added in 1.0.3)"
14318 msgstr ""
14319
14320 # type: =head2
14321 #: ../src/guestfs-actions.pod:6159
14322 msgid "guestfs_tar_out"
14323 msgstr ""
14324
14325 # type: verbatim
14326 #: ../src/guestfs-actions.pod:6161
14327 #, no-wrap
14328 msgid ""
14329 " int\n"
14330 " guestfs_tar_out (guestfs_h *g,\n"
14331 "                  const char *directory,\n"
14332 "                  const char *tarfile);\n"
14333 "\n"
14334 msgstr ""
14335
14336 # type: textblock
14337 #: ../src/guestfs-actions.pod:6166 ../fish/guestfish-actions.pod:4134
14338 msgid ""
14339 "This command packs the contents of C<directory> and downloads it to local "
14340 "file C<tarfile>."
14341 msgstr ""
14342
14343 # type: textblock
14344 #: ../src/guestfs-actions.pod:6169
14345 msgid ""
14346 "To download a compressed tarball, use C<guestfs_tgz_out> or "
14347 "C<guestfs_txz_out>."
14348 msgstr ""
14349
14350 # type: =head2
14351 #: ../src/guestfs-actions.pod:6176
14352 msgid "guestfs_tgz_in"
14353 msgstr ""
14354
14355 # type: verbatim
14356 #: ../src/guestfs-actions.pod:6178
14357 #, no-wrap
14358 msgid ""
14359 " int\n"
14360 " guestfs_tgz_in (guestfs_h *g,\n"
14361 "                 const char *tarball,\n"
14362 "                 const char *directory);\n"
14363 "\n"
14364 msgstr ""
14365
14366 # type: textblock
14367 #: ../src/guestfs-actions.pod:6183 ../fish/guestfish-actions.pod:4146
14368 msgid ""
14369 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
14370 "tar file) into C<directory>."
14371 msgstr ""
14372
14373 # type: textblock
14374 #: ../src/guestfs-actions.pod:6186
14375 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
14376 msgstr ""
14377
14378 # type: =head2
14379 #: ../src/guestfs-actions.pod:6192
14380 msgid "guestfs_tgz_out"
14381 msgstr ""
14382
14383 # type: verbatim
14384 #: ../src/guestfs-actions.pod:6194
14385 #, no-wrap
14386 msgid ""
14387 " int\n"
14388 " guestfs_tgz_out (guestfs_h *g,\n"
14389 "                  const char *directory,\n"
14390 "                  const char *tarball);\n"
14391 "\n"
14392 msgstr ""
14393
14394 # type: textblock
14395 #: ../src/guestfs-actions.pod:6199 ../fish/guestfish-actions.pod:4157
14396 msgid ""
14397 "This command packs the contents of C<directory> and downloads it to local "
14398 "file C<tarball>."
14399 msgstr ""
14400
14401 # type: textblock
14402 #: ../src/guestfs-actions.pod:6202
14403 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
14404 msgstr ""
14405
14406 # type: =head2
14407 #: ../src/guestfs-actions.pod:6208
14408 msgid "guestfs_touch"
14409 msgstr ""
14410
14411 # type: verbatim
14412 #: ../src/guestfs-actions.pod:6210
14413 #, no-wrap
14414 msgid ""
14415 " int\n"
14416 " guestfs_touch (guestfs_h *g,\n"
14417 "                const char *path);\n"
14418 "\n"
14419 msgstr ""
14420
14421 # type: textblock
14422 #: ../src/guestfs-actions.pod:6214 ../fish/guestfish-actions.pod:4168
14423 msgid ""
14424 "Touch acts like the L<touch(1)> command.  It can be used to update the "
14425 "timestamps on a file, or, if the file does not exist, to create a new "
14426 "zero-length file."
14427 msgstr ""
14428
14429 # type: textblock
14430 #: ../src/guestfs-actions.pod:6218 ../fish/guestfish-actions.pod:4172
14431 msgid ""
14432 "This command only works on regular files, and will fail on other file types "
14433 "such as directories, symbolic links, block special etc."
14434 msgstr ""
14435
14436 # type: =head2
14437 #: ../src/guestfs-actions.pod:6225
14438 msgid "guestfs_truncate"
14439 msgstr ""
14440
14441 # type: verbatim
14442 #: ../src/guestfs-actions.pod:6227
14443 #, no-wrap
14444 msgid ""
14445 " int\n"
14446 " guestfs_truncate (guestfs_h *g,\n"
14447 "                   const char *path);\n"
14448 "\n"
14449 msgstr ""
14450
14451 # type: textblock
14452 #: ../src/guestfs-actions.pod:6231 ../fish/guestfish-actions.pod:4179
14453 msgid ""
14454 "This command truncates C<path> to a zero-length file.  The file must exist "
14455 "already."
14456 msgstr ""
14457
14458 # type: =head2
14459 #: ../src/guestfs-actions.pod:6238
14460 msgid "guestfs_truncate_size"
14461 msgstr ""
14462
14463 # type: verbatim
14464 #: ../src/guestfs-actions.pod:6240
14465 #, no-wrap
14466 msgid ""
14467 " int\n"
14468 " guestfs_truncate_size (guestfs_h *g,\n"
14469 "                        const char *path,\n"
14470 "                        int64_t size);\n"
14471 "\n"
14472 msgstr ""
14473
14474 # type: textblock
14475 #: ../src/guestfs-actions.pod:6245 ../fish/guestfish-actions.pod:4186
14476 msgid ""
14477 "This command truncates C<path> to size C<size> bytes.  The file must exist "
14478 "already."
14479 msgstr ""
14480
14481 # type: textblock
14482 #: ../src/guestfs-actions.pod:6248
14483 msgid ""
14484 "If the current file size is less than C<size> then the file is extended to "
14485 "the required size with zero bytes.  This creates a sparse file (ie. disk "
14486 "blocks are not allocated for the file until you write to it).  To create a "
14487 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
14488 msgstr ""
14489
14490 # type: =head2
14491 #: ../src/guestfs-actions.pod:6258
14492 msgid "guestfs_tune2fs_l"
14493 msgstr ""
14494
14495 # type: verbatim
14496 #: ../src/guestfs-actions.pod:6260
14497 #, no-wrap
14498 msgid ""
14499 " char **\n"
14500 " guestfs_tune2fs_l (guestfs_h *g,\n"
14501 "                    const char *device);\n"
14502 "\n"
14503 msgstr ""
14504
14505 # type: textblock
14506 #: ../src/guestfs-actions.pod:6264 ../fish/guestfish-actions.pod:4199
14507 msgid ""
14508 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
14509 "C<device>."
14510 msgstr ""
14511
14512 # type: textblock
14513 #: ../src/guestfs-actions.pod:6267 ../fish/guestfish-actions.pod:4202
14514 msgid ""
14515 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
14516 "for more details.  The list of fields returned isn't clearly defined, and "
14517 "depends on both the version of C<tune2fs> that libguestfs was built against, "
14518 "and the filesystem itself."
14519 msgstr ""
14520
14521 # type: =head2
14522 #: ../src/guestfs-actions.pod:6280
14523 msgid "guestfs_txz_in"
14524 msgstr ""
14525
14526 # type: verbatim
14527 #: ../src/guestfs-actions.pod:6282
14528 #, no-wrap
14529 msgid ""
14530 " int\n"
14531 " guestfs_txz_in (guestfs_h *g,\n"
14532 "                 const char *tarball,\n"
14533 "                 const char *directory);\n"
14534 "\n"
14535 msgstr ""
14536
14537 # type: textblock
14538 #: ../src/guestfs-actions.pod:6287 ../fish/guestfish-actions.pod:4211
14539 msgid ""
14540 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
14541 "tar file) into C<directory>."
14542 msgstr ""
14543
14544 # type: =head2
14545 #: ../src/guestfs-actions.pod:6294
14546 msgid "guestfs_txz_out"
14547 msgstr ""
14548
14549 # type: verbatim
14550 #: ../src/guestfs-actions.pod:6296
14551 #, no-wrap
14552 msgid ""
14553 " int\n"
14554 " guestfs_txz_out (guestfs_h *g,\n"
14555 "                  const char *directory,\n"
14556 "                  const char *tarball);\n"
14557 "\n"
14558 msgstr ""
14559
14560 # type: textblock
14561 #: ../src/guestfs-actions.pod:6301 ../fish/guestfish-actions.pod:4220
14562 msgid ""
14563 "This command packs the contents of C<directory> and downloads it to local "
14564 "file C<tarball> (as an xz compressed tar archive)."
14565 msgstr ""
14566
14567 # type: =head2
14568 #: ../src/guestfs-actions.pod:6308
14569 msgid "guestfs_umask"
14570 msgstr ""
14571
14572 # type: verbatim
14573 #: ../src/guestfs-actions.pod:6310
14574 #, no-wrap
14575 msgid ""
14576 " int\n"
14577 " guestfs_umask (guestfs_h *g,\n"
14578 "                int mask);\n"
14579 "\n"
14580 msgstr ""
14581
14582 # type: textblock
14583 #: ../src/guestfs-actions.pod:6314 ../fish/guestfish-actions.pod:4229
14584 msgid ""
14585 "This function sets the mask used for creating new files and device nodes to "
14586 "C<mask & 0777>."
14587 msgstr ""
14588
14589 # type: textblock
14590 #: ../src/guestfs-actions.pod:6317 ../fish/guestfish-actions.pod:4232
14591 msgid ""
14592 "Typical umask values would be C<022> which creates new files with "
14593 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
14594 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
14595 msgstr ""
14596
14597 # type: textblock
14598 #: ../src/guestfs-actions.pod:6322 ../fish/guestfish-actions.pod:4237
14599 msgid ""
14600 "The default umask is C<022>.  This is important because it means that "
14601 "directories and device nodes will be created with C<0644> or C<0755> mode "
14602 "even if you specify C<0777>."
14603 msgstr ""
14604
14605 # type: textblock
14606 #: ../src/guestfs-actions.pod:6326
14607 msgid ""
14608 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
14609 "C<guestfs_mkdir>."
14610 msgstr ""
14611
14612 # type: textblock
14613 #: ../src/guestfs-actions.pod:6329 ../fish/guestfish-actions.pod:4244
14614 msgid "This call returns the previous umask."
14615 msgstr ""
14616
14617 # type: =head2
14618 #: ../src/guestfs-actions.pod:6335
14619 msgid "guestfs_umount"
14620 msgstr ""
14621
14622 # type: verbatim
14623 #: ../src/guestfs-actions.pod:6337
14624 #, no-wrap
14625 msgid ""
14626 " int\n"
14627 " guestfs_umount (guestfs_h *g,\n"
14628 "                 const char *pathordevice);\n"
14629 "\n"
14630 msgstr ""
14631
14632 # type: textblock
14633 #: ../src/guestfs-actions.pod:6341 ../fish/guestfish-actions.pod:4252
14634 msgid ""
14635 "This unmounts the given filesystem.  The filesystem may be specified either "
14636 "by its mountpoint (path) or the device which contains the filesystem."
14637 msgstr ""
14638
14639 # type: =head2
14640 #: ../src/guestfs-actions.pod:6349
14641 msgid "guestfs_umount_all"
14642 msgstr ""
14643
14644 # type: verbatim
14645 #: ../src/guestfs-actions.pod:6351
14646 #, no-wrap
14647 msgid ""
14648 " int\n"
14649 " guestfs_umount_all (guestfs_h *g);\n"
14650 "\n"
14651 msgstr ""
14652
14653 # type: textblock
14654 #: ../src/guestfs-actions.pod:6354 ../fish/guestfish-actions.pod:4262
14655 msgid "This unmounts all mounted filesystems."
14656 msgstr ""
14657
14658 # type: textblock
14659 #: ../src/guestfs-actions.pod:6356 ../fish/guestfish-actions.pod:4264
14660 msgid "Some internal mounts are not unmounted by this call."
14661 msgstr ""
14662
14663 # type: =head2
14664 #: ../src/guestfs-actions.pod:6362
14665 msgid "guestfs_upload"
14666 msgstr ""
14667
14668 # type: verbatim
14669 #: ../src/guestfs-actions.pod:6364
14670 #, no-wrap
14671 msgid ""
14672 " int\n"
14673 " guestfs_upload (guestfs_h *g,\n"
14674 "                 const char *filename,\n"
14675 "                 const char *remotefilename);\n"
14676 "\n"
14677 msgstr ""
14678
14679 # type: textblock
14680 #: ../src/guestfs-actions.pod:6369 ../src/guestfs-actions.pod:6388 ../fish/guestfish-actions.pod:4270 ../fish/guestfish-actions.pod:4283
14681 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
14682 msgstr ""
14683
14684 # type: textblock
14685 #: ../src/guestfs-actions.pod:6374
14686 msgid "See also C<guestfs_download>."
14687 msgstr ""
14688
14689 # type: =head2
14690 #: ../src/guestfs-actions.pod:6380
14691 msgid "guestfs_upload_offset"
14692 msgstr ""
14693
14694 # type: verbatim
14695 #: ../src/guestfs-actions.pod:6382
14696 #, no-wrap
14697 msgid ""
14698 " int\n"
14699 " guestfs_upload_offset (guestfs_h *g,\n"
14700 "                        const char *filename,\n"
14701 "                        const char *remotefilename,\n"
14702 "                        int64_t offset);\n"
14703 "\n"
14704 msgstr ""
14705
14706 # type: textblock
14707 #: ../src/guestfs-actions.pod:6391 ../fish/guestfish-actions.pod:4286
14708 msgid ""
14709 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
14710 "The intention is to overwrite parts of existing files or devices, although "
14711 "if a non-existant file is specified then it is created with a \"hole\" "
14712 "before C<offset>.  The size of the data written is implicit in the size of "
14713 "the source C<filename>."
14714 msgstr ""
14715
14716 # type: textblock
14717 #: ../src/guestfs-actions.pod:6398
14718 msgid ""
14719 "Note that there is no limit on the amount of data that can be uploaded with "
14720 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
14721 "full amount unless an error occurs."
14722 msgstr ""
14723
14724 # type: textblock
14725 #: ../src/guestfs-actions.pod:6403
14726 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
14727 msgstr ""
14728
14729 # type: =head2
14730 #: ../src/guestfs-actions.pod:6409
14731 msgid "guestfs_utimens"
14732 msgstr ""
14733
14734 # type: verbatim
14735 #: ../src/guestfs-actions.pod:6411
14736 #, no-wrap
14737 msgid ""
14738 " int\n"
14739 " guestfs_utimens (guestfs_h *g,\n"
14740 "                  const char *path,\n"
14741 "                  int64_t atsecs,\n"
14742 "                  int64_t atnsecs,\n"
14743 "                  int64_t mtsecs,\n"
14744 "                  int64_t mtnsecs);\n"
14745 "\n"
14746 msgstr ""
14747
14748 # type: textblock
14749 #: ../src/guestfs-actions.pod:6419 ../fish/guestfish-actions.pod:4306
14750 msgid "This command sets the timestamps of a file with nanosecond precision."
14751 msgstr ""
14752
14753 # type: textblock
14754 #: ../src/guestfs-actions.pod:6422 ../fish/guestfish-actions.pod:4309
14755 msgid ""
14756 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
14757 "from the epoch."
14758 msgstr ""
14759
14760 # type: textblock
14761 #: ../src/guestfs-actions.pod:6425 ../fish/guestfish-actions.pod:4312
14762 msgid ""
14763 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
14764 "nanoseconds from the epoch."
14765 msgstr ""
14766
14767 # type: textblock
14768 #: ../src/guestfs-actions.pod:6428 ../fish/guestfish-actions.pod:4315
14769 msgid ""
14770 "If the C<*nsecs> field contains the special value C<-1> then the "
14771 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
14772 "ignored in this case)."
14773 msgstr ""
14774
14775 # type: textblock
14776 #: ../src/guestfs-actions.pod:6432 ../fish/guestfish-actions.pod:4319
14777 msgid ""
14778 "If the C<*nsecs> field contains the special value C<-2> then the "
14779 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
14780 "in this case)."
14781 msgstr ""
14782
14783 # type: =head2
14784 #: ../src/guestfs-actions.pod:6440 ../src/guestfs-structs.pod:175
14785 msgid "guestfs_version"
14786 msgstr ""
14787
14788 # type: verbatim
14789 #: ../src/guestfs-actions.pod:6442
14790 #, no-wrap
14791 msgid ""
14792 " struct guestfs_version *\n"
14793 " guestfs_version (guestfs_h *g);\n"
14794 "\n"
14795 msgstr ""
14796
14797 # type: textblock
14798 #: ../src/guestfs-actions.pod:6445 ../fish/guestfish-actions.pod:4327
14799 msgid "Return the libguestfs version number that the program is linked against."
14800 msgstr ""
14801
14802 # type: textblock
14803 #: ../src/guestfs-actions.pod:6448 ../fish/guestfish-actions.pod:4330
14804 msgid ""
14805 "Note that because of dynamic linking this is not necessarily the version of "
14806 "libguestfs that you compiled against.  You can compile the program, and then "
14807 "at runtime dynamically link against a completely different C<libguestfs.so> "
14808 "library."
14809 msgstr ""
14810
14811 # type: textblock
14812 #: ../src/guestfs-actions.pod:6453 ../fish/guestfish-actions.pod:4335
14813 msgid ""
14814 "This call was added in version C<1.0.58>.  In previous versions of "
14815 "libguestfs there was no way to get the version number.  From C code you can "
14816 "use dynamic linker functions to find out if this symbol exists (if it "
14817 "doesn't, then it's an earlier version)."
14818 msgstr ""
14819
14820 # type: textblock
14821 #: ../src/guestfs-actions.pod:6459 ../fish/guestfish-actions.pod:4341
14822 msgid ""
14823 "The call returns a structure with four elements.  The first three (C<major>, "
14824 "C<minor> and C<release>) are numbers and correspond to the usual version "
14825 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
14826 "but may be used for distro-specific information."
14827 msgstr ""
14828
14829 # type: textblock
14830 #: ../src/guestfs-actions.pod:6465 ../fish/guestfish-actions.pod:4347
14831 msgid "To construct the original version string: C<$major.$minor.$release$extra>"
14832 msgstr ""
14833
14834 # type: textblock
14835 #: ../src/guestfs-actions.pod:6468 ../fish/guestfish-actions.pod:4350
14836 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
14837 msgstr ""
14838
14839 # type: textblock
14840 #: ../src/guestfs-actions.pod:6470
14841 msgid ""
14842 "I<Note:> Don't use this call to test for availability of features.  In "
14843 "enterprise distributions we backport features from later versions into "
14844 "earlier versions, making this an unreliable way to test for features.  Use "
14845 "C<guestfs_available> instead."
14846 msgstr ""
14847
14848 # type: textblock
14849 #: ../src/guestfs-actions.pod:6476
14850 msgid ""
14851 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
14852 "error.  I<The caller must call C<guestfs_free_version> after use>."
14853 msgstr ""
14854
14855 # type: textblock
14856 #: ../src/guestfs-actions.pod:6480
14857 msgid "(Added in 1.0.58)"
14858 msgstr ""
14859
14860 # type: =head2
14861 #: ../src/guestfs-actions.pod:6482
14862 msgid "guestfs_vfs_label"
14863 msgstr ""
14864
14865 # type: verbatim
14866 #: ../src/guestfs-actions.pod:6484
14867 #, no-wrap
14868 msgid ""
14869 " char *\n"
14870 " guestfs_vfs_label (guestfs_h *g,\n"
14871 "                    const char *device);\n"
14872 "\n"
14873 msgstr ""
14874
14875 # type: textblock
14876 #: ../src/guestfs-actions.pod:6488 ../fish/guestfish-actions.pod:4362
14877 msgid "This returns the filesystem label of the filesystem on C<device>."
14878 msgstr ""
14879
14880 # type: textblock
14881 #: ../src/guestfs-actions.pod:6491 ../fish/guestfish-actions.pod:4365
14882 msgid "If the filesystem is unlabeled, this returns the empty string."
14883 msgstr ""
14884
14885 # type: textblock
14886 #: ../src/guestfs-actions.pod:6493
14887 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
14888 msgstr ""
14889
14890 # type: textblock
14891 #: ../src/guestfs-actions.pod:6498 ../src/guestfs-actions.pod:6535
14892 msgid "(Added in 1.3.18)"
14893 msgstr ""
14894
14895 # type: =head2
14896 #: ../src/guestfs-actions.pod:6500
14897 msgid "guestfs_vfs_type"
14898 msgstr ""
14899
14900 # type: verbatim
14901 #: ../src/guestfs-actions.pod:6502
14902 #, no-wrap
14903 msgid ""
14904 " char *\n"
14905 " guestfs_vfs_type (guestfs_h *g,\n"
14906 "                   const char *device);\n"
14907 "\n"
14908 msgstr ""
14909
14910 # type: textblock
14911 #: ../src/guestfs-actions.pod:6506 ../fish/guestfish-actions.pod:4373
14912 msgid ""
14913 "This command gets the filesystem type corresponding to the filesystem on "
14914 "C<device>."
14915 msgstr ""
14916
14917 # type: textblock
14918 #: ../src/guestfs-actions.pod:6509 ../fish/guestfish-actions.pod:4376
14919 msgid ""
14920 "For most filesystems, the result is the name of the Linux VFS module which "
14921 "would be used to mount this filesystem if you mounted it without specifying "
14922 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
14923 msgstr ""
14924
14925 # type: =head2
14926 #: ../src/guestfs-actions.pod:6519
14927 msgid "guestfs_vfs_uuid"
14928 msgstr ""
14929
14930 # type: verbatim
14931 #: ../src/guestfs-actions.pod:6521
14932 #, no-wrap
14933 msgid ""
14934 " char *\n"
14935 " guestfs_vfs_uuid (guestfs_h *g,\n"
14936 "                   const char *device);\n"
14937 "\n"
14938 msgstr ""
14939
14940 # type: textblock
14941 #: ../src/guestfs-actions.pod:6525 ../fish/guestfish-actions.pod:4385
14942 msgid "This returns the filesystem UUID of the filesystem on C<device>."
14943 msgstr ""
14944
14945 # type: textblock
14946 #: ../src/guestfs-actions.pod:6528 ../fish/guestfish-actions.pod:4388
14947 msgid "If the filesystem does not have a UUID, this returns the empty string."
14948 msgstr ""
14949
14950 # type: textblock
14951 #: ../src/guestfs-actions.pod:6530
14952 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
14953 msgstr ""
14954
14955 # type: =head2
14956 #: ../src/guestfs-actions.pod:6537
14957 msgid "guestfs_vg_activate"
14958 msgstr ""
14959
14960 # type: verbatim
14961 #: ../src/guestfs-actions.pod:6539
14962 #, no-wrap
14963 msgid ""
14964 " int\n"
14965 " guestfs_vg_activate (guestfs_h *g,\n"
14966 "                      int activate,\n"
14967 "                      char *const *volgroups);\n"
14968 "\n"
14969 msgstr ""
14970
14971 # type: textblock
14972 #: ../src/guestfs-actions.pod:6544 ../fish/guestfish-actions.pod:4396
14973 msgid ""
14974 "This command activates or (if C<activate> is false) deactivates all logical "
14975 "volumes in the listed volume groups C<volgroups>.  If activated, then they "
14976 "are made known to the kernel, ie. they appear as C</dev/mapper> devices.  If "
14977 "deactivated, then those devices disappear."
14978 msgstr ""
14979
14980 # type: textblock
14981 #: ../src/guestfs-actions.pod:6550 ../fish/guestfish-actions.pod:4402
14982 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
14983 msgstr ""
14984
14985 # type: textblock
14986 #: ../src/guestfs-actions.pod:6552 ../fish/guestfish-actions.pod:4404
14987 msgid ""
14988 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
14989 "activated or deactivated."
14990 msgstr ""
14991
14992 # type: =head2
14993 #: ../src/guestfs-actions.pod:6559
14994 msgid "guestfs_vg_activate_all"
14995 msgstr ""
14996
14997 # type: verbatim
14998 #: ../src/guestfs-actions.pod:6561
14999 #, no-wrap
15000 msgid ""
15001 " int\n"
15002 " guestfs_vg_activate_all (guestfs_h *g,\n"
15003 "                          int activate);\n"
15004 "\n"
15005 msgstr ""
15006
15007 # type: textblock
15008 #: ../src/guestfs-actions.pod:6565 ../fish/guestfish-actions.pod:4411
15009 msgid ""
15010 "This command activates or (if C<activate> is false) deactivates all logical "
15011 "volumes in all volume groups.  If activated, then they are made known to the "
15012 "kernel, ie. they appear as C</dev/mapper> devices.  If deactivated, then "
15013 "those devices disappear."
15014 msgstr ""
15015
15016 # type: textblock
15017 #: ../src/guestfs-actions.pod:6571 ../fish/guestfish-actions.pod:4417
15018 msgid "This command is the same as running C<vgchange -a y|n>"
15019 msgstr ""
15020
15021 # type: =head2
15022 #: ../src/guestfs-actions.pod:6577
15023 msgid "guestfs_vgcreate"
15024 msgstr ""
15025
15026 # type: verbatim
15027 #: ../src/guestfs-actions.pod:6579
15028 #, no-wrap
15029 msgid ""
15030 " int\n"
15031 " guestfs_vgcreate (guestfs_h *g,\n"
15032 "                   const char *volgroup,\n"
15033 "                   char *const *physvols);\n"
15034 "\n"
15035 msgstr ""
15036
15037 # type: textblock
15038 #: ../src/guestfs-actions.pod:6584 ../fish/guestfish-actions.pod:4423
15039 msgid ""
15040 "This creates an LVM volume group called C<volgroup> from the non-empty list "
15041 "of physical volumes C<physvols>."
15042 msgstr ""
15043
15044 # type: =head2
15045 #: ../src/guestfs-actions.pod:6591
15046 msgid "guestfs_vglvuuids"
15047 msgstr ""
15048
15049 # type: verbatim
15050 #: ../src/guestfs-actions.pod:6593
15051 #, no-wrap
15052 msgid ""
15053 " char **\n"
15054 " guestfs_vglvuuids (guestfs_h *g,\n"
15055 "                    const char *vgname);\n"
15056 "\n"
15057 msgstr ""
15058
15059 # type: textblock
15060 #: ../src/guestfs-actions.pod:6597 ../fish/guestfish-actions.pod:4430
15061 msgid ""
15062 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
15063 "volumes created in this volume group."
15064 msgstr ""
15065
15066 # type: textblock
15067 #: ../src/guestfs-actions.pod:6600
15068 msgid ""
15069 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
15070 "associate logical volumes and volume groups."
15071 msgstr ""
15072
15073 # type: textblock
15074 #: ../src/guestfs-actions.pod:6603
15075 msgid "See also C<guestfs_vgpvuuids>."
15076 msgstr ""
15077
15078 # type: =head2
15079 #: ../src/guestfs-actions.pod:6611
15080 msgid "guestfs_vgpvuuids"
15081 msgstr ""
15082
15083 # type: verbatim
15084 #: ../src/guestfs-actions.pod:6613
15085 #, no-wrap
15086 msgid ""
15087 " char **\n"
15088 " guestfs_vgpvuuids (guestfs_h *g,\n"
15089 "                    const char *vgname);\n"
15090 "\n"
15091 msgstr ""
15092
15093 # type: textblock
15094 #: ../src/guestfs-actions.pod:6617 ../fish/guestfish-actions.pod:4442
15095 msgid ""
15096 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
15097 "volumes that this volume group resides on."
15098 msgstr ""
15099
15100 # type: textblock
15101 #: ../src/guestfs-actions.pod:6620
15102 msgid ""
15103 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
15104 "associate physical volumes and volume groups."
15105 msgstr ""
15106
15107 # type: textblock
15108 #: ../src/guestfs-actions.pod:6623
15109 msgid "See also C<guestfs_vglvuuids>."
15110 msgstr ""
15111
15112 # type: =head2
15113 #: ../src/guestfs-actions.pod:6631
15114 msgid "guestfs_vgremove"
15115 msgstr ""
15116
15117 # type: verbatim
15118 #: ../src/guestfs-actions.pod:6633
15119 #, no-wrap
15120 msgid ""
15121 " int\n"
15122 " guestfs_vgremove (guestfs_h *g,\n"
15123 "                   const char *vgname);\n"
15124 "\n"
15125 msgstr ""
15126
15127 # type: textblock
15128 #: ../src/guestfs-actions.pod:6637 ../fish/guestfish-actions.pod:4454
15129 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
15130 msgstr ""
15131
15132 # type: textblock
15133 #: ../src/guestfs-actions.pod:6639 ../fish/guestfish-actions.pod:4456
15134 msgid "This also forcibly removes all logical volumes in the volume group (if any)."
15135 msgstr ""
15136
15137 # type: =head2
15138 #: ../src/guestfs-actions.pod:6646
15139 msgid "guestfs_vgrename"
15140 msgstr ""
15141
15142 # type: verbatim
15143 #: ../src/guestfs-actions.pod:6648
15144 #, no-wrap
15145 msgid ""
15146 " int\n"
15147 " guestfs_vgrename (guestfs_h *g,\n"
15148 "                   const char *volgroup,\n"
15149 "                   const char *newvolgroup);\n"
15150 "\n"
15151 msgstr ""
15152
15153 # type: textblock
15154 #: ../src/guestfs-actions.pod:6653 ../fish/guestfish-actions.pod:4463
15155 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
15156 msgstr ""
15157
15158 # type: =head2
15159 #: ../src/guestfs-actions.pod:6659
15160 msgid "guestfs_vgs"
15161 msgstr ""
15162
15163 # type: verbatim
15164 #: ../src/guestfs-actions.pod:6661
15165 #, no-wrap
15166 msgid ""
15167 " char **\n"
15168 " guestfs_vgs (guestfs_h *g);\n"
15169 "\n"
15170 msgstr ""
15171
15172 # type: textblock
15173 #: ../src/guestfs-actions.pod:6664 ../fish/guestfish-actions.pod:4469
15174 msgid ""
15175 "List all the volumes groups detected.  This is the equivalent of the "
15176 "L<vgs(8)> command."
15177 msgstr ""
15178
15179 # type: textblock
15180 #: ../src/guestfs-actions.pod:6667 ../fish/guestfish-actions.pod:4472
15181 msgid ""
15182 "This returns a list of just the volume group names that were detected "
15183 "(eg. C<VolGroup00>)."
15184 msgstr ""
15185
15186 # type: textblock
15187 #: ../src/guestfs-actions.pod:6670
15188 msgid "See also C<guestfs_vgs_full>."
15189 msgstr ""
15190
15191 # type: =head2
15192 #: ../src/guestfs-actions.pod:6678
15193 msgid "guestfs_vgs_full"
15194 msgstr ""
15195
15196 # type: verbatim
15197 #: ../src/guestfs-actions.pod:6680
15198 #, no-wrap
15199 msgid ""
15200 " struct guestfs_lvm_vg_list *\n"
15201 " guestfs_vgs_full (guestfs_h *g);\n"
15202 "\n"
15203 msgstr ""
15204
15205 # type: textblock
15206 #: ../src/guestfs-actions.pod:6683 ../fish/guestfish-actions.pod:4481
15207 msgid ""
15208 "List all the volumes groups detected.  This is the equivalent of the "
15209 "L<vgs(8)> command.  The \"full\" version includes all fields."
15210 msgstr ""
15211
15212 # type: textblock
15213 #: ../src/guestfs-actions.pod:6686
15214 msgid ""
15215 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
15216 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after "
15217 "use>."
15218 msgstr ""
15219
15220 # type: =head2
15221 #: ../src/guestfs-actions.pod:6692
15222 msgid "guestfs_vgscan"
15223 msgstr ""
15224
15225 # type: verbatim
15226 #: ../src/guestfs-actions.pod:6694
15227 #, no-wrap
15228 msgid ""
15229 " int\n"
15230 " guestfs_vgscan (guestfs_h *g);\n"
15231 "\n"
15232 msgstr ""
15233
15234 # type: textblock
15235 #: ../src/guestfs-actions.pod:6697 ../fish/guestfish-actions.pod:4488
15236 msgid ""
15237 "This rescans all block devices and rebuilds the list of LVM physical "
15238 "volumes, volume groups and logical volumes."
15239 msgstr ""
15240
15241 # type: =head2
15242 #: ../src/guestfs-actions.pod:6704
15243 msgid "guestfs_vguuid"
15244 msgstr ""
15245
15246 # type: verbatim
15247 #: ../src/guestfs-actions.pod:6706
15248 #, no-wrap
15249 msgid ""
15250 " char *\n"
15251 " guestfs_vguuid (guestfs_h *g,\n"
15252 "                 const char *vgname);\n"
15253 "\n"
15254 msgstr ""
15255
15256 # type: textblock
15257 #: ../src/guestfs-actions.pod:6710 ../fish/guestfish-actions.pod:4495
15258 msgid "This command returns the UUID of the LVM VG named C<vgname>."
15259 msgstr ""
15260
15261 # type: =head2
15262 #: ../src/guestfs-actions.pod:6717
15263 msgid "guestfs_wait_ready"
15264 msgstr ""
15265
15266 # type: verbatim
15267 #: ../src/guestfs-actions.pod:6719
15268 #, no-wrap
15269 msgid ""
15270 " int\n"
15271 " guestfs_wait_ready (guestfs_h *g);\n"
15272 "\n"
15273 msgstr ""
15274
15275 # type: textblock
15276 #: ../src/guestfs-actions.pod:6722
15277 msgid "This function is a no op."
15278 msgstr ""
15279
15280 # type: textblock
15281 #: ../src/guestfs-actions.pod:6724
15282 msgid ""
15283 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
15284 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
15285 "is no longer necessary because C<guestfs_launch> now does the waiting."
15286 msgstr ""
15287
15288 # type: textblock
15289 #: ../src/guestfs-actions.pod:6729
15290 msgid ""
15291 "If you see any calls to this function in code then you can just remove them, "
15292 "unless you want to retain compatibility with older versions of the API."
15293 msgstr ""
15294
15295 # type: =head2
15296 #: ../src/guestfs-actions.pod:6737
15297 msgid "guestfs_wc_c"
15298 msgstr ""
15299
15300 # type: verbatim
15301 #: ../src/guestfs-actions.pod:6739
15302 #, no-wrap
15303 msgid ""
15304 " int\n"
15305 " guestfs_wc_c (guestfs_h *g,\n"
15306 "               const char *path);\n"
15307 "\n"
15308 msgstr ""
15309
15310 # type: textblock
15311 #: ../src/guestfs-actions.pod:6743 ../fish/guestfish-actions.pod:4501
15312 msgid ""
15313 "This command counts the characters in a file, using the C<wc -c> external "
15314 "command."
15315 msgstr ""
15316
15317 # type: =head2
15318 #: ../src/guestfs-actions.pod:6750
15319 msgid "guestfs_wc_l"
15320 msgstr ""
15321
15322 # type: verbatim
15323 #: ../src/guestfs-actions.pod:6752
15324 #, no-wrap
15325 msgid ""
15326 " int\n"
15327 " guestfs_wc_l (guestfs_h *g,\n"
15328 "               const char *path);\n"
15329 "\n"
15330 msgstr ""
15331
15332 # type: textblock
15333 #: ../src/guestfs-actions.pod:6756 ../fish/guestfish-actions.pod:4508
15334 msgid ""
15335 "This command counts the lines in a file, using the C<wc -l> external "
15336 "command."
15337 msgstr ""
15338
15339 # type: =head2
15340 #: ../src/guestfs-actions.pod:6763
15341 msgid "guestfs_wc_w"
15342 msgstr ""
15343
15344 # type: verbatim
15345 #: ../src/guestfs-actions.pod:6765
15346 #, no-wrap
15347 msgid ""
15348 " int\n"
15349 " guestfs_wc_w (guestfs_h *g,\n"
15350 "               const char *path);\n"
15351 "\n"
15352 msgstr ""
15353
15354 # type: textblock
15355 #: ../src/guestfs-actions.pod:6769 ../fish/guestfish-actions.pod:4515
15356 msgid ""
15357 "This command counts the words in a file, using the C<wc -w> external "
15358 "command."
15359 msgstr ""
15360
15361 # type: =head2
15362 #: ../src/guestfs-actions.pod:6776
15363 msgid "guestfs_write"
15364 msgstr ""
15365
15366 # type: verbatim
15367 #: ../src/guestfs-actions.pod:6778
15368 #, no-wrap
15369 msgid ""
15370 " int\n"
15371 " guestfs_write (guestfs_h *g,\n"
15372 "                const char *path,\n"
15373 "                const char *content,\n"
15374 "                size_t content_size);\n"
15375 "\n"
15376 msgstr ""
15377
15378 # type: textblock
15379 #: ../src/guestfs-actions.pod:6784 ../fish/guestfish-actions.pod:4522
15380 msgid ""
15381 "This call creates a file called C<path>.  The content of the file is the "
15382 "string C<content> (which can contain any 8 bit data)."
15383 msgstr ""
15384
15385 # type: =head2
15386 #: ../src/guestfs-actions.pod:6794
15387 msgid "guestfs_write_file"
15388 msgstr ""
15389
15390 # type: verbatim
15391 #: ../src/guestfs-actions.pod:6796
15392 #, no-wrap
15393 msgid ""
15394 " int\n"
15395 " guestfs_write_file (guestfs_h *g,\n"
15396 "                     const char *path,\n"
15397 "                     const char *content,\n"
15398 "                     int size);\n"
15399 "\n"
15400 msgstr ""
15401
15402 # type: textblock
15403 #: ../src/guestfs-actions.pod:6802 ../fish/guestfish-actions.pod:4532
15404 msgid ""
15405 "This call creates a file called C<path>.  The contents of the file is the "
15406 "string C<content> (which can contain any 8 bit data), with length C<size>."
15407 msgstr ""
15408
15409 # type: textblock
15410 #: ../src/guestfs-actions.pod:6806 ../fish/guestfish-actions.pod:4536
15411 msgid ""
15412 "As a special case, if C<size> is C<0> then the length is calculated using "
15413 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
15414 msgstr ""
15415
15416 # type: textblock
15417 #: ../src/guestfs-actions.pod:6810 ../fish/guestfish-actions.pod:4540
15418 msgid ""
15419 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
15420 "I<not> work, even if the length is specified."
15421 msgstr ""
15422
15423 # type: textblock
15424 #: ../src/guestfs-actions.pod:6818 ../fish/guestfish-actions.pod:4546
15425 msgid "This function is deprecated.  In new code, use the C<write> call instead."
15426 msgstr ""
15427
15428 # type: =head2
15429 #: ../src/guestfs-actions.pod:6827
15430 msgid "guestfs_zegrep"
15431 msgstr ""
15432
15433 # type: verbatim
15434 #: ../src/guestfs-actions.pod:6829
15435 #, no-wrap
15436 msgid ""
15437 " char **\n"
15438 " guestfs_zegrep (guestfs_h *g,\n"
15439 "                 const char *regex,\n"
15440 "                 const char *path);\n"
15441 "\n"
15442 msgstr ""
15443
15444 # type: textblock
15445 #: ../src/guestfs-actions.pod:6834 ../fish/guestfish-actions.pod:4557
15446 msgid "This calls the external C<zegrep> program and returns the matching lines."
15447 msgstr ""
15448
15449 # type: =head2
15450 #: ../src/guestfs-actions.pod:6846
15451 msgid "guestfs_zegrepi"
15452 msgstr ""
15453
15454 # type: verbatim
15455 #: ../src/guestfs-actions.pod:6848
15456 #, no-wrap
15457 msgid ""
15458 " char **\n"
15459 " guestfs_zegrepi (guestfs_h *g,\n"
15460 "                  const char *regex,\n"
15461 "                  const char *path);\n"
15462 "\n"
15463 msgstr ""
15464
15465 # type: textblock
15466 #: ../src/guestfs-actions.pod:6853 ../fish/guestfish-actions.pod:4567
15467 msgid "This calls the external C<zegrep -i> program and returns the matching lines."
15468 msgstr ""
15469
15470 # type: =head2
15471 #: ../src/guestfs-actions.pod:6865
15472 msgid "guestfs_zero"
15473 msgstr ""
15474
15475 # type: verbatim
15476 #: ../src/guestfs-actions.pod:6867
15477 #, no-wrap
15478 msgid ""
15479 " int\n"
15480 " guestfs_zero (guestfs_h *g,\n"
15481 "               const char *device);\n"
15482 "\n"
15483 msgstr ""
15484
15485 # type: textblock
15486 #: ../src/guestfs-actions.pod:6871 ../fish/guestfish-actions.pod:4577
15487 msgid "This command writes zeroes over the first few blocks of C<device>."
15488 msgstr ""
15489
15490 # type: textblock
15491 #: ../src/guestfs-actions.pod:6873 ../fish/guestfish-actions.pod:4579
15492 msgid ""
15493 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
15494 "securely wipe the device).  It should be sufficient to remove any partition "
15495 "tables, filesystem superblocks and so on."
15496 msgstr ""
15497
15498 # type: textblock
15499 #: ../src/guestfs-actions.pod:6877
15500 msgid "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>."
15501 msgstr ""
15502
15503 # type: =head2
15504 #: ../src/guestfs-actions.pod:6888
15505 msgid "guestfs_zero_device"
15506 msgstr ""
15507
15508 # type: verbatim
15509 #: ../src/guestfs-actions.pod:6890
15510 #, no-wrap
15511 msgid ""
15512 " int\n"
15513 " guestfs_zero_device (guestfs_h *g,\n"
15514 "                      const char *device);\n"
15515 "\n"
15516 msgstr ""
15517
15518 # type: textblock
15519 #: ../src/guestfs-actions.pod:6894
15520 msgid ""
15521 "This command writes zeroes over the entire C<device>.  Compare with "
15522 "C<guestfs_zero> which just zeroes the first few blocks of a device."
15523 msgstr ""
15524
15525 # type: textblock
15526 #: ../src/guestfs-actions.pod:6908
15527 msgid "(Added in 1.3.1)"
15528 msgstr ""
15529
15530 # type: =head2
15531 #: ../src/guestfs-actions.pod:6910
15532 msgid "guestfs_zerofree"
15533 msgstr ""
15534
15535 # type: verbatim
15536 #: ../src/guestfs-actions.pod:6912
15537 #, no-wrap
15538 msgid ""
15539 " int\n"
15540 " guestfs_zerofree (guestfs_h *g,\n"
15541 "                   const char *device);\n"
15542 "\n"
15543 msgstr ""
15544
15545 # type: textblock
15546 #: ../src/guestfs-actions.pod:6916 ../fish/guestfish-actions.pod:4600
15547 msgid ""
15548 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
15549 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
15550 "possible to compress the filesystem more effectively."
15551 msgstr ""
15552
15553 # type: textblock
15554 #: ../src/guestfs-actions.pod:6921 ../fish/guestfish-actions.pod:4605
15555 msgid "You should B<not> run this program if the filesystem is mounted."
15556 msgstr ""
15557
15558 # type: textblock
15559 #: ../src/guestfs-actions.pod:6924 ../fish/guestfish-actions.pod:4608
15560 msgid ""
15561 "It is possible that using this program can damage the filesystem or data on "
15562 "the filesystem."
15563 msgstr ""
15564
15565 # type: =head2
15566 #: ../src/guestfs-actions.pod:6931
15567 msgid "guestfs_zfgrep"
15568 msgstr ""
15569
15570 # type: verbatim
15571 #: ../src/guestfs-actions.pod:6933
15572 #, no-wrap
15573 msgid ""
15574 " char **\n"
15575 " guestfs_zfgrep (guestfs_h *g,\n"
15576 "                 const char *pattern,\n"
15577 "                 const char *path);\n"
15578 "\n"
15579 msgstr ""
15580
15581 # type: textblock
15582 #: ../src/guestfs-actions.pod:6938 ../fish/guestfish-actions.pod:4615
15583 msgid "This calls the external C<zfgrep> program and returns the matching lines."
15584 msgstr ""
15585
15586 # type: =head2
15587 #: ../src/guestfs-actions.pod:6950
15588 msgid "guestfs_zfgrepi"
15589 msgstr ""
15590
15591 # type: verbatim
15592 #: ../src/guestfs-actions.pod:6952
15593 #, no-wrap
15594 msgid ""
15595 " char **\n"
15596 " guestfs_zfgrepi (guestfs_h *g,\n"
15597 "                  const char *pattern,\n"
15598 "                  const char *path);\n"
15599 "\n"
15600 msgstr ""
15601
15602 # type: textblock
15603 #: ../src/guestfs-actions.pod:6957 ../fish/guestfish-actions.pod:4625
15604 msgid "This calls the external C<zfgrep -i> program and returns the matching lines."
15605 msgstr ""
15606
15607 # type: =head2
15608 #: ../src/guestfs-actions.pod:6969
15609 msgid "guestfs_zfile"
15610 msgstr ""
15611
15612 # type: verbatim
15613 #: ../src/guestfs-actions.pod:6971
15614 #, no-wrap
15615 msgid ""
15616 " char *\n"
15617 " guestfs_zfile (guestfs_h *g,\n"
15618 "                const char *meth,\n"
15619 "                const char *path);\n"
15620 "\n"
15621 msgstr ""
15622
15623 # type: textblock
15624 #: ../src/guestfs-actions.pod:6976 ../fish/guestfish-actions.pod:4635
15625 msgid "This command runs C<file> after first decompressing C<path> using C<method>."
15626 msgstr ""
15627
15628 # type: textblock
15629 #: ../src/guestfs-actions.pod:6979 ../fish/guestfish-actions.pod:4638
15630 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
15631 msgstr ""
15632
15633 # type: textblock
15634 #: ../src/guestfs-actions.pod:6981
15635 msgid ""
15636 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
15637 "files."
15638 msgstr ""
15639
15640 # type: textblock
15641 #: ../src/guestfs-actions.pod:6987 ../fish/guestfish-actions.pod:4643
15642 msgid "This function is deprecated.  In new code, use the C<file> call instead."
15643 msgstr ""
15644
15645 # type: =head2
15646 #: ../src/guestfs-actions.pod:6996
15647 msgid "guestfs_zgrep"
15648 msgstr ""
15649
15650 # type: verbatim
15651 #: ../src/guestfs-actions.pod:6998
15652 #, no-wrap
15653 msgid ""
15654 " char **\n"
15655 " guestfs_zgrep (guestfs_h *g,\n"
15656 "                const char *regex,\n"
15657 "                const char *path);\n"
15658 "\n"
15659 msgstr ""
15660
15661 # type: textblock
15662 #: ../src/guestfs-actions.pod:7003 ../fish/guestfish-actions.pod:4654
15663 msgid "This calls the external C<zgrep> program and returns the matching lines."
15664 msgstr ""
15665
15666 # type: =head2
15667 #: ../src/guestfs-actions.pod:7015
15668 msgid "guestfs_zgrepi"
15669 msgstr ""
15670
15671 # type: verbatim
15672 #: ../src/guestfs-actions.pod:7017
15673 #, no-wrap
15674 msgid ""
15675 " char **\n"
15676 " guestfs_zgrepi (guestfs_h *g,\n"
15677 "                 const char *regex,\n"
15678 "                 const char *path);\n"
15679 "\n"
15680 msgstr ""
15681
15682 # type: textblock
15683 #: ../src/guestfs-actions.pod:7022 ../fish/guestfish-actions.pod:4664
15684 msgid "This calls the external C<zgrep -i> program and returns the matching lines."
15685 msgstr ""
15686
15687 # type: =item
15688 #: ../src/guestfs-availability.pod:3
15689 msgid "B<augeas>"
15690 msgstr ""
15691
15692 # type: textblock
15693 #: ../src/guestfs-availability.pod:5
15694 msgid ""
15695 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> "
15696 "L</guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> "
15697 "L</guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> "
15698 "L</guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> "
15699 "L</guestfs_aug_rm> L</guestfs_aug_save> L</guestfs_aug_set>"
15700 msgstr ""
15701
15702 # type: =item
15703 #: ../src/guestfs-availability.pod:21
15704 msgid "B<inotify>"
15705 msgstr ""
15706
15707 # type: textblock
15708 #: ../src/guestfs-availability.pod:23
15709 msgid ""
15710 "The following functions: L</guestfs_inotify_add_watch> "
15711 "L</guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> "
15712 "L</guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
15713 msgstr ""
15714
15715 # type: =item
15716 #: ../src/guestfs-availability.pod:31
15717 msgid "B<linuxfsuuid>"
15718 msgstr ""
15719
15720 # type: textblock
15721 #: ../src/guestfs-availability.pod:33
15722 msgid ""
15723 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> "
15724 "L</guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
15725 msgstr ""
15726
15727 # type: =item
15728 #: ../src/guestfs-availability.pod:40
15729 msgid "B<linuxmodules>"
15730 msgstr ""
15731
15732 # type: textblock
15733 #: ../src/guestfs-availability.pod:42
15734 msgid "The following functions: L</guestfs_modprobe>"
15735 msgstr ""
15736
15737 # type: =item
15738 #: ../src/guestfs-availability.pod:45
15739 msgid "B<linuxxattrs>"
15740 msgstr ""
15741
15742 # type: textblock
15743 #: ../src/guestfs-availability.pod:47
15744 msgid ""
15745 "The following functions: L</guestfs_getxattrs> L</guestfs_lgetxattrs> "
15746 "L</guestfs_lremovexattr> L</guestfs_lsetxattr> L</guestfs_lxattrlist> "
15747 "L</guestfs_removexattr> L</guestfs_setxattr>"
15748 msgstr ""
15749
15750 # type: =item
15751 #: ../src/guestfs-availability.pod:56
15752 msgid "B<luks>"
15753 msgstr ""
15754
15755 # type: textblock
15756 #: ../src/guestfs-availability.pod:58
15757 msgid ""
15758 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> "
15759 "L</guestfs_luks_format> L</guestfs_luks_format_cipher> "
15760 "L</guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
15761 msgstr ""
15762
15763 # type: =item
15764 #: ../src/guestfs-availability.pod:67
15765 msgid "B<lvm2>"
15766 msgstr ""
15767
15768 # type: textblock
15769 #: ../src/guestfs-availability.pod:69
15770 msgid ""
15771 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> "
15772 "L</guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> "
15773 "L</guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> "
15774 "L</guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> "
15775 "L</guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> "
15776 "L</guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> "
15777 "L</guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> "
15778 "L</guestfs_vgs_full>"
15779 msgstr ""
15780
15781 # type: =item
15782 #: ../src/guestfs-availability.pod:92
15783 msgid "B<mknod>"
15784 msgstr ""
15785
15786 # type: textblock
15787 #: ../src/guestfs-availability.pod:94
15788 msgid ""
15789 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> "
15790 "L</guestfs_mknod_b> L</guestfs_mknod_c>"
15791 msgstr ""
15792
15793 # type: =item
15794 #: ../src/guestfs-availability.pod:100
15795 msgid "B<ntfs3g>"
15796 msgstr ""
15797
15798 # type: textblock
15799 #: ../src/guestfs-availability.pod:102
15800 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
15801 msgstr ""
15802
15803 # type: =item
15804 #: ../src/guestfs-availability.pod:105
15805 msgid "B<ntfsprogs>"
15806 msgstr ""
15807
15808 # type: textblock
15809 #: ../src/guestfs-availability.pod:107
15810 msgid "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_size>"
15811 msgstr ""
15812
15813 # type: =item
15814 #: ../src/guestfs-availability.pod:111
15815 msgid "B<realpath>"
15816 msgstr ""
15817
15818 # type: textblock
15819 #: ../src/guestfs-availability.pod:113
15820 msgid "The following functions: L</guestfs_realpath>"
15821 msgstr ""
15822
15823 # type: =item
15824 #: ../src/guestfs-availability.pod:116
15825 msgid "B<scrub>"
15826 msgstr ""
15827
15828 # type: textblock
15829 #: ../src/guestfs-availability.pod:118
15830 msgid ""
15831 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> "
15832 "L</guestfs_scrub_freespace>"
15833 msgstr ""
15834
15835 # type: =item
15836 #: ../src/guestfs-availability.pod:123
15837 msgid "B<selinux>"
15838 msgstr ""
15839
15840 # type: textblock
15841 #: ../src/guestfs-availability.pod:125
15842 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
15843 msgstr ""
15844
15845 # type: =item
15846 #: ../src/guestfs-availability.pod:129
15847 msgid "B<xz>"
15848 msgstr ""
15849
15850 # type: textblock
15851 #: ../src/guestfs-availability.pod:131
15852 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
15853 msgstr ""
15854
15855 # type: =item
15856 #: ../src/guestfs-availability.pod:135
15857 msgid "B<zerofree>"
15858 msgstr ""
15859
15860 # type: textblock
15861 #: ../src/guestfs-availability.pod:137
15862 msgid "The following functions: L</guestfs_zerofree>"
15863 msgstr ""
15864
15865 # type: =head2
15866 #: ../src/guestfs-structs.pod:1
15867 msgid "guestfs_int_bool"
15868 msgstr ""
15869
15870 # type: verbatim
15871 #: ../src/guestfs-structs.pod:3
15872 #, no-wrap
15873 msgid ""
15874 " struct guestfs_int_bool {\n"
15875 "   int32_t i;\n"
15876 "   int32_t b;\n"
15877 " };\n"
15878 " \n"
15879 msgstr ""
15880
15881 # type: verbatim
15882 #: ../src/guestfs-structs.pod:8
15883 #, no-wrap
15884 msgid ""
15885 " struct guestfs_int_bool_list {\n"
15886 "   uint32_t len; /* Number of elements in list. */\n"
15887 "   struct guestfs_int_bool *val; /* Elements. */\n"
15888 " };\n"
15889 " \n"
15890 msgstr ""
15891
15892 # type: verbatim
15893 #: ../src/guestfs-structs.pod:13
15894 #, no-wrap
15895 msgid ""
15896 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
15897 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
15898 "\n"
15899 msgstr ""
15900
15901 # type: =head2
15902 #: ../src/guestfs-structs.pod:16
15903 msgid "guestfs_lvm_pv"
15904 msgstr ""
15905
15906 # type: verbatim
15907 #: ../src/guestfs-structs.pod:18
15908 #, no-wrap
15909 msgid ""
15910 " struct guestfs_lvm_pv {\n"
15911 "   char *pv_name;\n"
15912 "   /* The next field is NOT nul-terminated, be careful when printing it: "
15913 "*/\n"
15914 "   char pv_uuid[32];\n"
15915 "   char *pv_fmt;\n"
15916 "   uint64_t pv_size;\n"
15917 "   uint64_t dev_size;\n"
15918 "   uint64_t pv_free;\n"
15919 "   uint64_t pv_used;\n"
15920 "   char *pv_attr;\n"
15921 "   int64_t pv_pe_count;\n"
15922 "   int64_t pv_pe_alloc_count;\n"
15923 "   char *pv_tags;\n"
15924 "   uint64_t pe_start;\n"
15925 "   int64_t pv_mda_count;\n"
15926 "   uint64_t pv_mda_free;\n"
15927 " };\n"
15928 " \n"
15929 msgstr ""
15930
15931 # type: verbatim
15932 #: ../src/guestfs-structs.pod:36
15933 #, no-wrap
15934 msgid ""
15935 " struct guestfs_lvm_pv_list {\n"
15936 "   uint32_t len; /* Number of elements in list. */\n"
15937 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
15938 " };\n"
15939 " \n"
15940 msgstr ""
15941
15942 # type: verbatim
15943 #: ../src/guestfs-structs.pod:41
15944 #, no-wrap
15945 msgid ""
15946 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
15947 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
15948 "\n"
15949 msgstr ""
15950
15951 # type: =head2
15952 #: ../src/guestfs-structs.pod:44
15953 msgid "guestfs_lvm_vg"
15954 msgstr ""
15955
15956 # type: verbatim
15957 #: ../src/guestfs-structs.pod:46
15958 #, no-wrap
15959 msgid ""
15960 " struct guestfs_lvm_vg {\n"
15961 "   char *vg_name;\n"
15962 "   /* The next field is NOT nul-terminated, be careful when printing it: "
15963 "*/\n"
15964 "   char vg_uuid[32];\n"
15965 "   char *vg_fmt;\n"
15966 "   char *vg_attr;\n"
15967 "   uint64_t vg_size;\n"
15968 "   uint64_t vg_free;\n"
15969 "   char *vg_sysid;\n"
15970 "   uint64_t vg_extent_size;\n"
15971 "   int64_t vg_extent_count;\n"
15972 "   int64_t vg_free_count;\n"
15973 "   int64_t max_lv;\n"
15974 "   int64_t max_pv;\n"
15975 "   int64_t pv_count;\n"
15976 "   int64_t lv_count;\n"
15977 "   int64_t snap_count;\n"
15978 "   int64_t vg_seqno;\n"
15979 "   char *vg_tags;\n"
15980 "   int64_t vg_mda_count;\n"
15981 "   uint64_t vg_mda_free;\n"
15982 " };\n"
15983 " \n"
15984 msgstr ""
15985
15986 # type: verbatim
15987 #: ../src/guestfs-structs.pod:69
15988 #, no-wrap
15989 msgid ""
15990 " struct guestfs_lvm_vg_list {\n"
15991 "   uint32_t len; /* Number of elements in list. */\n"
15992 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
15993 " };\n"
15994 " \n"
15995 msgstr ""
15996
15997 # type: verbatim
15998 #: ../src/guestfs-structs.pod:74
15999 #, no-wrap
16000 msgid ""
16001 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
16002 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
16003 "\n"
16004 msgstr ""
16005
16006 # type: =head2
16007 #: ../src/guestfs-structs.pod:77
16008 msgid "guestfs_lvm_lv"
16009 msgstr ""
16010
16011 # type: verbatim
16012 #: ../src/guestfs-structs.pod:79
16013 #, no-wrap
16014 msgid ""
16015 " struct guestfs_lvm_lv {\n"
16016 "   char *lv_name;\n"
16017 "   /* The next field is NOT nul-terminated, be careful when printing it: "
16018 "*/\n"
16019 "   char lv_uuid[32];\n"
16020 "   char *lv_attr;\n"
16021 "   int64_t lv_major;\n"
16022 "   int64_t lv_minor;\n"
16023 "   int64_t lv_kernel_major;\n"
16024 "   int64_t lv_kernel_minor;\n"
16025 "   uint64_t lv_size;\n"
16026 "   int64_t seg_count;\n"
16027 "   char *origin;\n"
16028 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
16029 "   float snap_percent;\n"
16030 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
16031 "   float copy_percent;\n"
16032 "   char *move_pv;\n"
16033 "   char *lv_tags;\n"
16034 "   char *mirror_log;\n"
16035 "   char *modules;\n"
16036 " };\n"
16037 " \n"
16038 msgstr ""
16039
16040 # type: verbatim
16041 #: ../src/guestfs-structs.pod:101
16042 #, no-wrap
16043 msgid ""
16044 " struct guestfs_lvm_lv_list {\n"
16045 "   uint32_t len; /* Number of elements in list. */\n"
16046 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
16047 " };\n"
16048 " \n"
16049 msgstr ""
16050
16051 # type: verbatim
16052 #: ../src/guestfs-structs.pod:106
16053 #, no-wrap
16054 msgid ""
16055 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
16056 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
16057 "\n"
16058 msgstr ""
16059
16060 # type: verbatim
16061 #: ../src/guestfs-structs.pod:111
16062 #, no-wrap
16063 msgid ""
16064 " struct guestfs_stat {\n"
16065 "   int64_t dev;\n"
16066 "   int64_t ino;\n"
16067 "   int64_t mode;\n"
16068 "   int64_t nlink;\n"
16069 "   int64_t uid;\n"
16070 "   int64_t gid;\n"
16071 "   int64_t rdev;\n"
16072 "   int64_t size;\n"
16073 "   int64_t blksize;\n"
16074 "   int64_t blocks;\n"
16075 "   int64_t atime;\n"
16076 "   int64_t mtime;\n"
16077 "   int64_t ctime;\n"
16078 " };\n"
16079 " \n"
16080 msgstr ""
16081
16082 # type: verbatim
16083 #: ../src/guestfs-structs.pod:127
16084 #, no-wrap
16085 msgid ""
16086 " struct guestfs_stat_list {\n"
16087 "   uint32_t len; /* Number of elements in list. */\n"
16088 "   struct guestfs_stat *val; /* Elements. */\n"
16089 " };\n"
16090 " \n"
16091 msgstr ""
16092
16093 # type: verbatim
16094 #: ../src/guestfs-structs.pod:132
16095 #, no-wrap
16096 msgid ""
16097 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
16098 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
16099 "\n"
16100 msgstr ""
16101
16102 # type: verbatim
16103 #: ../src/guestfs-structs.pod:137
16104 #, no-wrap
16105 msgid ""
16106 " struct guestfs_statvfs {\n"
16107 "   int64_t bsize;\n"
16108 "   int64_t frsize;\n"
16109 "   int64_t blocks;\n"
16110 "   int64_t bfree;\n"
16111 "   int64_t bavail;\n"
16112 "   int64_t files;\n"
16113 "   int64_t ffree;\n"
16114 "   int64_t favail;\n"
16115 "   int64_t fsid;\n"
16116 "   int64_t flag;\n"
16117 "   int64_t namemax;\n"
16118 " };\n"
16119 " \n"
16120 msgstr ""
16121
16122 # type: verbatim
16123 #: ../src/guestfs-structs.pod:151
16124 #, no-wrap
16125 msgid ""
16126 " struct guestfs_statvfs_list {\n"
16127 "   uint32_t len; /* Number of elements in list. */\n"
16128 "   struct guestfs_statvfs *val; /* Elements. */\n"
16129 " };\n"
16130 " \n"
16131 msgstr ""
16132
16133 # type: verbatim
16134 #: ../src/guestfs-structs.pod:156
16135 #, no-wrap
16136 msgid ""
16137 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
16138 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
16139 "\n"
16140 msgstr ""
16141
16142 # type: =head2
16143 #: ../src/guestfs-structs.pod:159
16144 msgid "guestfs_dirent"
16145 msgstr ""
16146
16147 # type: verbatim
16148 #: ../src/guestfs-structs.pod:161
16149 #, no-wrap
16150 msgid ""
16151 " struct guestfs_dirent {\n"
16152 "   int64_t ino;\n"
16153 "   char ftyp;\n"
16154 "   char *name;\n"
16155 " };\n"
16156 " \n"
16157 msgstr ""
16158
16159 # type: verbatim
16160 #: ../src/guestfs-structs.pod:167
16161 #, no-wrap
16162 msgid ""
16163 " struct guestfs_dirent_list {\n"
16164 "   uint32_t len; /* Number of elements in list. */\n"
16165 "   struct guestfs_dirent *val; /* Elements. */\n"
16166 " };\n"
16167 " \n"
16168 msgstr ""
16169
16170 # type: verbatim
16171 #: ../src/guestfs-structs.pod:172
16172 #, no-wrap
16173 msgid ""
16174 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
16175 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
16176 "\n"
16177 msgstr ""
16178
16179 # type: verbatim
16180 #: ../src/guestfs-structs.pod:177
16181 #, no-wrap
16182 msgid ""
16183 " struct guestfs_version {\n"
16184 "   int64_t major;\n"
16185 "   int64_t minor;\n"
16186 "   int64_t release;\n"
16187 "   char *extra;\n"
16188 " };\n"
16189 " \n"
16190 msgstr ""
16191
16192 # type: verbatim
16193 #: ../src/guestfs-structs.pod:184
16194 #, no-wrap
16195 msgid ""
16196 " struct guestfs_version_list {\n"
16197 "   uint32_t len; /* Number of elements in list. */\n"
16198 "   struct guestfs_version *val; /* Elements. */\n"
16199 " };\n"
16200 " \n"
16201 msgstr ""
16202
16203 # type: verbatim
16204 #: ../src/guestfs-structs.pod:189
16205 #, no-wrap
16206 msgid ""
16207 " void guestfs_free_version (struct guestfs_free_version *);\n"
16208 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
16209 "\n"
16210 msgstr ""
16211
16212 # type: =head2
16213 #: ../src/guestfs-structs.pod:192
16214 msgid "guestfs_xattr"
16215 msgstr ""
16216
16217 # type: verbatim
16218 #: ../src/guestfs-structs.pod:194
16219 #, no-wrap
16220 msgid ""
16221 " struct guestfs_xattr {\n"
16222 "   char *attrname;\n"
16223 "   /* The next two fields describe a byte array. */\n"
16224 "   uint32_t attrval_len;\n"
16225 "   char *attrval;\n"
16226 " };\n"
16227 " \n"
16228 msgstr ""
16229
16230 # type: verbatim
16231 #: ../src/guestfs-structs.pod:201
16232 #, no-wrap
16233 msgid ""
16234 " struct guestfs_xattr_list {\n"
16235 "   uint32_t len; /* Number of elements in list. */\n"
16236 "   struct guestfs_xattr *val; /* Elements. */\n"
16237 " };\n"
16238 " \n"
16239 msgstr ""
16240
16241 # type: verbatim
16242 #: ../src/guestfs-structs.pod:206
16243 #, no-wrap
16244 msgid ""
16245 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
16246 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
16247 "\n"
16248 msgstr ""
16249
16250 # type: =head2
16251 #: ../src/guestfs-structs.pod:209
16252 msgid "guestfs_inotify_event"
16253 msgstr ""
16254
16255 # type: verbatim
16256 #: ../src/guestfs-structs.pod:211
16257 #, no-wrap
16258 msgid ""
16259 " struct guestfs_inotify_event {\n"
16260 "   int64_t in_wd;\n"
16261 "   uint32_t in_mask;\n"
16262 "   uint32_t in_cookie;\n"
16263 "   char *in_name;\n"
16264 " };\n"
16265 " \n"
16266 msgstr ""
16267
16268 # type: verbatim
16269 #: ../src/guestfs-structs.pod:218
16270 #, no-wrap
16271 msgid ""
16272 " struct guestfs_inotify_event_list {\n"
16273 "   uint32_t len; /* Number of elements in list. */\n"
16274 "   struct guestfs_inotify_event *val; /* Elements. */\n"
16275 " };\n"
16276 " \n"
16277 msgstr ""
16278
16279 # type: verbatim
16280 #: ../src/guestfs-structs.pod:223
16281 #, no-wrap
16282 msgid ""
16283 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
16284 " void guestfs_free_inotify_event_list (struct "
16285 "guestfs_free_inotify_event_list *);\n"
16286 "\n"
16287 msgstr ""
16288
16289 # type: =head2
16290 #: ../src/guestfs-structs.pod:226
16291 msgid "guestfs_partition"
16292 msgstr ""
16293
16294 # type: verbatim
16295 #: ../src/guestfs-structs.pod:228
16296 #, no-wrap
16297 msgid ""
16298 " struct guestfs_partition {\n"
16299 "   int32_t part_num;\n"
16300 "   uint64_t part_start;\n"
16301 "   uint64_t part_end;\n"
16302 "   uint64_t part_size;\n"
16303 " };\n"
16304 " \n"
16305 msgstr ""
16306
16307 # type: verbatim
16308 #: ../src/guestfs-structs.pod:235
16309 #, no-wrap
16310 msgid ""
16311 " struct guestfs_partition_list {\n"
16312 "   uint32_t len; /* Number of elements in list. */\n"
16313 "   struct guestfs_partition *val; /* Elements. */\n"
16314 " };\n"
16315 " \n"
16316 msgstr ""
16317
16318 # type: verbatim
16319 #: ../src/guestfs-structs.pod:240
16320 #, no-wrap
16321 msgid ""
16322 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
16323 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
16324 "\n"
16325 msgstr ""
16326
16327 # type: =head2
16328 #: ../src/guestfs-structs.pod:243
16329 msgid "guestfs_application"
16330 msgstr ""
16331
16332 # type: verbatim
16333 #: ../src/guestfs-structs.pod:245
16334 #, no-wrap
16335 msgid ""
16336 " struct guestfs_application {\n"
16337 "   char *app_name;\n"
16338 "   char *app_display_name;\n"
16339 "   int32_t app_epoch;\n"
16340 "   char *app_version;\n"
16341 "   char *app_release;\n"
16342 "   char *app_install_path;\n"
16343 "   char *app_trans_path;\n"
16344 "   char *app_publisher;\n"
16345 "   char *app_url;\n"
16346 "   char *app_source_package;\n"
16347 "   char *app_summary;\n"
16348 "   char *app_description;\n"
16349 " };\n"
16350 " \n"
16351 msgstr ""
16352
16353 # type: verbatim
16354 #: ../src/guestfs-structs.pod:260
16355 #, no-wrap
16356 msgid ""
16357 " struct guestfs_application_list {\n"
16358 "   uint32_t len; /* Number of elements in list. */\n"
16359 "   struct guestfs_application *val; /* Elements. */\n"
16360 " };\n"
16361 " \n"
16362 msgstr ""
16363
16364 # type: verbatim
16365 #: ../src/guestfs-structs.pod:265
16366 #, no-wrap
16367 msgid ""
16368 " void guestfs_free_application (struct guestfs_free_application *);\n"
16369 " void guestfs_free_application_list (struct guestfs_free_application_list "
16370 "*);\n"
16371 "\n"
16372 msgstr ""
16373
16374 # type: textblock
16375 #: ../fish/guestfish.pod:5
16376 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
16377 msgstr ""
16378
16379 # type: verbatim
16380 #: ../fish/guestfish.pod:9
16381 #, no-wrap
16382 msgid ""
16383 " guestfish [--options] [commands]\n"
16384 "\n"
16385 msgstr ""
16386
16387 # type: verbatim
16388 #: ../fish/guestfish.pod:11
16389 #, no-wrap
16390 msgid ""
16391 " guestfish\n"
16392 "\n"
16393 msgstr ""
16394
16395 # type: verbatim
16396 #: ../fish/guestfish.pod:13
16397 #, no-wrap
16398 msgid ""
16399 " guestfish [--ro|--rw] -a disk.img\n"
16400 "\n"
16401 msgstr ""
16402
16403 # type: verbatim
16404 #: ../fish/guestfish.pod:15
16405 #, no-wrap
16406 msgid ""
16407 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
16408 "\n"
16409 msgstr ""
16410
16411 # type: verbatim
16412 #: ../fish/guestfish.pod:17
16413 #, no-wrap
16414 msgid ""
16415 " guestfish -d libvirt-domain\n"
16416 "\n"
16417 msgstr ""
16418
16419 # type: verbatim
16420 #: ../fish/guestfish.pod:19
16421 #, no-wrap
16422 msgid ""
16423 " guestfish [--ro|--rw] -a disk.img -i\n"
16424 "\n"
16425 msgstr ""
16426
16427 # type: verbatim
16428 #: ../fish/guestfish.pod:21
16429 #, no-wrap
16430 msgid ""
16431 " guestfish -d libvirt-domain -i\n"
16432 "\n"
16433 msgstr ""
16434
16435 # type: =head1
16436 #: ../fish/guestfish.pod:23 ../fuse/guestmount.pod:15 ../tools/virt-edit.pl:44 ../tools/virt-win-reg.pl:51 ../tools/virt-tar.pl:59 ../tools/virt-rescue.pl:41
16437 msgid "WARNING"
16438 msgstr ""
16439
16440 # type: textblock
16441 #: ../fish/guestfish.pod:25
16442 msgid ""
16443 "Using guestfish in read/write mode on live virtual machines can be "
16444 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
16445 "option to use guestfish safely if the disk image or virtual machine might be "
16446 "live."
16447 msgstr ""
16448
16449 # type: textblock
16450 #: ../fish/guestfish.pod:32
16451 msgid ""
16452 "Guestfish is a shell and command-line tool for examining and modifying "
16453 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
16454 "functionality of the guestfs API, see L<guestfs(3)>."
16455 msgstr ""
16456
16457 # type: textblock
16458 #: ../fish/guestfish.pod:36
16459 msgid ""
16460 "Guestfish gives you structured access to the libguestfs API, from shell "
16461 "scripts or the command line or interactively.  If you want to rescue a "
16462 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
16463 "command."
16464 msgstr ""
16465
16466 # type: =head1
16467 #: ../fish/guestfish.pod:41 ../fish/guestfish.pod:847 ../fuse/guestmount.pod:39 ../tools/virt-edit.pl:58 ../tools/virt-resize.pl:64 ../tools/virt-tar.pl:45
16468 msgid "EXAMPLES"
16469 msgstr ""
16470
16471 # type: =head2
16472 #: ../fish/guestfish.pod:43
16473 msgid "As an interactive shell"
16474 msgstr ""
16475
16476 # type: verbatim
16477 #: ../fish/guestfish.pod:45
16478 #, no-wrap
16479 msgid ""
16480 " $ guestfish\n"
16481 " \n"
16482 msgstr ""
16483
16484 # type: verbatim
16485 #: ../fish/guestfish.pod:47
16486 #, no-wrap
16487 msgid ""
16488 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
16489 " editing virtual machine filesystems.\n"
16490 " \n"
16491 msgstr ""
16492
16493 # type: verbatim
16494 #: ../fish/guestfish.pod:50
16495 #, no-wrap
16496 msgid ""
16497 " Type: 'help' for a list of commands\n"
16498 "       'man' to read the manual\n"
16499 "       'quit' to quit the shell\n"
16500 " \n"
16501 msgstr ""
16502
16503 # type: verbatim
16504 #: ../fish/guestfish.pod:54
16505 #, no-wrap
16506 msgid ""
16507 " ><fs> add-ro disk.img\n"
16508 " ><fs> run\n"
16509 " ><fs> list-filesystems\n"
16510 " /dev/sda1: ext4\n"
16511 " /dev/vg_guest/lv_root: ext4\n"
16512 " /dev/vg_guest/lv_swap: swap\n"
16513 " ><fs> mount /dev/vg_guest/lv_root /\n"
16514 " ><fs> cat /etc/fstab\n"
16515 " # /etc/fstab\n"
16516 " # Created by anaconda\n"
16517 " [...]\n"
16518 " ><fs> exit\n"
16519 "\n"
16520 msgstr ""
16521
16522 # type: =head2
16523 #: ../fish/guestfish.pod:67
16524 msgid "From shell scripts"
16525 msgstr ""
16526
16527 # type: textblock
16528 #: ../fish/guestfish.pod:69
16529 msgid "Create a new C</etc/motd> file in a guest or disk image:"
16530 msgstr ""
16531
16532 # type: verbatim
16533 #: ../fish/guestfish.pod:71
16534 #, no-wrap
16535 msgid ""
16536 " guestfish <<_EOF_\n"
16537 " add disk.img\n"
16538 " run\n"
16539 " mount /dev/vg_guest/lv_root /\n"
16540 " write /etc/motd \"Welcome, new users\"\n"
16541 " _EOF_\n"
16542 "\n"
16543 msgstr ""
16544
16545 # type: textblock
16546 #: ../fish/guestfish.pod:78
16547 msgid "List the LVM logical volumes in a disk image:"
16548 msgstr ""
16549
16550 # type: verbatim
16551 #: ../fish/guestfish.pod:80
16552 #, no-wrap
16553 msgid ""
16554 " guestfish -a disk.img --ro <<_EOF_\n"
16555 " run\n"
16556 " lvs\n"
16557 " _EOF_\n"
16558 "\n"
16559 msgstr ""
16560
16561 # type: textblock
16562 #: ../fish/guestfish.pod:85
16563 msgid "List all the filesystems in a disk image:"
16564 msgstr ""
16565
16566 # type: verbatim
16567 #: ../fish/guestfish.pod:87
16568 #, no-wrap
16569 msgid ""
16570 " guestfish -a disk.img --ro <<_EOF_\n"
16571 " run\n"
16572 " list-filesystems\n"
16573 " _EOF_\n"
16574 "\n"
16575 msgstr ""
16576
16577 # type: =head2
16578 #: ../fish/guestfish.pod:92
16579 msgid "On one command line"
16580 msgstr ""
16581
16582 # type: textblock
16583 #: ../fish/guestfish.pod:94
16584 msgid "Update C</etc/resolv.conf> in a guest:"
16585 msgstr ""
16586
16587 # type: verbatim
16588 #: ../fish/guestfish.pod:96
16589 #, no-wrap
16590 msgid ""
16591 " guestfish \\\n"
16592 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
16593 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
16594 "\n"
16595 msgstr ""
16596
16597 # type: textblock
16598 #: ../fish/guestfish.pod:100
16599 msgid "Edit C</boot/grub/grub.conf> interactively:"
16600 msgstr ""
16601
16602 # type: verbatim
16603 #: ../fish/guestfish.pod:102
16604 #, no-wrap
16605 msgid ""
16606 " guestfish --rw --add disk.img \\\n"
16607 "   --mount /dev/vg_guest/lv_root \\\n"
16608 "   --mount /dev/sda1:/boot \\\n"
16609 "   edit /boot/grub/grub.conf\n"
16610 "\n"
16611 msgstr ""
16612
16613 # type: =head2
16614 #: ../fish/guestfish.pod:107
16615 msgid "Mount disks automatically"
16616 msgstr ""
16617
16618 # type: textblock
16619 #: ../fish/guestfish.pod:109
16620 msgid ""
16621 "Use the I<-i> option to automatically mount the disks from a virtual "
16622 "machine:"
16623 msgstr ""
16624
16625 # type: verbatim
16626 #: ../fish/guestfish.pod:112
16627 #, no-wrap
16628 msgid ""
16629 " guestfish --ro -a disk.img -i cat /etc/group\n"
16630 "\n"
16631 msgstr ""
16632
16633 # type: verbatim
16634 #: ../fish/guestfish.pod:114
16635 #, no-wrap
16636 msgid ""
16637 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
16638 "\n"
16639 msgstr ""
16640
16641 # type: textblock
16642 #: ../fish/guestfish.pod:116
16643 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
16644 msgstr ""
16645
16646 # type: verbatim
16647 #: ../fish/guestfish.pod:118
16648 #, no-wrap
16649 msgid ""
16650 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
16651 "\n"
16652 msgstr ""
16653
16654 # type: =head2
16655 #: ../fish/guestfish.pod:120
16656 msgid "As a script interpreter"
16657 msgstr ""
16658
16659 # type: textblock
16660 #: ../fish/guestfish.pod:122
16661 msgid "Create a 100MB disk containing an ext2-formatted partition:"
16662 msgstr ""
16663
16664 # type: verbatim
16665 #: ../fish/guestfish.pod:124
16666 #, no-wrap
16667 msgid ""
16668 " #!/usr/bin/guestfish -f\n"
16669 " sparse test1.img 100M\n"
16670 " run\n"
16671 " part-disk /dev/sda mbr\n"
16672 " mkfs ext2 /dev/sda1\n"
16673 "\n"
16674 msgstr ""
16675
16676 # type: =head2
16677 #: ../fish/guestfish.pod:130
16678 msgid "Start with a prepared disk"
16679 msgstr ""
16680
16681 # type: textblock
16682 #: ../fish/guestfish.pod:132
16683 msgid ""
16684 "An alternate way to create a 100MB disk called C<test1.img> containing a "
16685 "single ext2-formatted partition:"
16686 msgstr ""
16687
16688 # type: verbatim
16689 #: ../fish/guestfish.pod:135
16690 #, no-wrap
16691 msgid ""
16692 " guestfish -N fs\n"
16693 "\n"
16694 msgstr ""
16695
16696 # type: textblock
16697 #: ../fish/guestfish.pod:137
16698 msgid "To list what is available do:"
16699 msgstr ""
16700
16701 # type: verbatim
16702 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:838
16703 #, no-wrap
16704 msgid ""
16705 " guestfish -N help | less\n"
16706 "\n"
16707 msgstr ""
16708
16709 # type: =head2
16710 #: ../fish/guestfish.pod:141
16711 msgid "Remote control"
16712 msgstr ""
16713
16714 # type: verbatim
16715 #: ../fish/guestfish.pod:143
16716 #, no-wrap
16717 msgid ""
16718 " eval \"`guestfish --listen`\"\n"
16719 " guestfish --remote add-ro disk.img\n"
16720 " guestfish --remote run\n"
16721 " guestfish --remote lvs\n"
16722 "\n"
16723 msgstr ""
16724
16725 # type: =head1
16726 #: ../fish/guestfish.pod:148 ../test-tool/libguestfs-test-tool.pod:37 ../fuse/guestmount.pod:73 ../tools/virt-edit.pl:72 ../tools/virt-win-reg.pl:171 ../tools/virt-resize.pl:256 ../tools/virt-list-filesystems.pl:53 ../tools/virt-tar.pl:98 ../tools/virt-rescue.pl:103 ../tools/virt-make-fs.pl:153 ../tools/virt-list-partitions.pl:54
16727 msgid "OPTIONS"
16728 msgstr ""
16729
16730 # type: =item
16731 #: ../fish/guestfish.pod:152 ../fuse/guestmount.pod:131 ../tools/virt-edit.pl:80 ../tools/virt-win-reg.pl:179 ../tools/virt-resize.pl:264 ../tools/virt-list-filesystems.pl:61 ../tools/virt-tar.pl:106 ../tools/virt-rescue.pl:111 ../tools/virt-make-fs.pl:161 ../tools/virt-list-partitions.pl:62
16732 msgid "B<--help>"
16733 msgstr ""
16734
16735 # type: textblock
16736 #: ../fish/guestfish.pod:154
16737 msgid "Displays general help on options."
16738 msgstr ""
16739
16740 # type: =item
16741 #: ../fish/guestfish.pod:156
16742 msgid "B<-h> | B<--cmd-help>"
16743 msgstr ""
16744
16745 # type: textblock
16746 #: ../fish/guestfish.pod:158
16747 msgid "Lists all available guestfish commands."
16748 msgstr ""
16749
16750 # type: =item
16751 #: ../fish/guestfish.pod:160
16752 msgid "B<-h cmd> | B<--cmd-help cmd>"
16753 msgstr ""
16754
16755 # type: textblock
16756 #: ../fish/guestfish.pod:162
16757 msgid "Displays detailed help on a single command C<cmd>."
16758 msgstr ""
16759
16760 # type: =item
16761 #: ../fish/guestfish.pod:164 ../fuse/guestmount.pod:77
16762 msgid "B<-a image> | B<--add image>"
16763 msgstr ""
16764
16765 # type: textblock
16766 #: ../fish/guestfish.pod:166
16767 msgid "Add a block device or virtual machine image to the shell."
16768 msgstr ""
16769
16770 # type: textblock
16771 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:81
16772 msgid ""
16773 "The format of the disk image is auto-detected.  To override this and force a "
16774 "particular format use the I<--format=..> option."
16775 msgstr ""
16776
16777 # type: =item
16778 #: ../fish/guestfish.pod:171 ../fuse/guestmount.pod:84
16779 msgid "B<-c URI> | B<--connect URI>"
16780 msgstr ""
16781
16782 # type: textblock
16783 #: ../fish/guestfish.pod:173 ../fuse/guestmount.pod:86
16784 msgid ""
16785 "When used in conjunction with the I<-d> option, this specifies the libvirt "
16786 "URI to use.  The default is to use the default libvirt connection."
16787 msgstr ""
16788
16789 # type: =item
16790 #: ../fish/guestfish.pod:177
16791 msgid "B<--csh>"
16792 msgstr ""
16793
16794 # type: textblock
16795 #: ../fish/guestfish.pod:179
16796 msgid ""
16797 "If using the I<--listen> option and a csh-like shell, use this option.  See "
16798 "section L</REMOTE CONTROL AND CSH> below."
16799 msgstr ""
16800
16801 # type: =item
16802 #: ../fish/guestfish.pod:182 ../fuse/guestmount.pod:90
16803 msgid "B<-d libvirt-domain> | B<--domain libvirt-domain>"
16804 msgstr ""
16805
16806 # type: textblock
16807 #: ../fish/guestfish.pod:184 ../fuse/guestmount.pod:92
16808 msgid ""
16809 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
16810 "used, then any libvirt domain can be used.  However in write mode, only "
16811 "libvirt domains which are shut down can be named here."
16812 msgstr ""
16813
16814 # type: =item
16815 #: ../fish/guestfish.pod:188
16816 msgid "B<-D> | B<--no-dest-paths>"
16817 msgstr ""
16818
16819 # type: textblock
16820 #: ../fish/guestfish.pod:190
16821 msgid ""
16822 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
16823 "to hit the tab key to complete paths on the guest filesystem, but this "
16824 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
16825 "allow this feature to be disabled."
16826 msgstr ""
16827
16828 # type: =item
16829 #: ../fish/guestfish.pod:195 ../fuse/guestmount.pod:108
16830 msgid "B<--echo-keys>"
16831 msgstr ""
16832
16833 # type: textblock
16834 #: ../fish/guestfish.pod:197 ../fuse/guestmount.pod:110
16835 msgid ""
16836 "When prompting for keys and passphrases, guestfish normally turns echoing "
16837 "off so you cannot see what you are typing.  If you are not worried about "
16838 "Tempest attacks and there is no one else in the room you can specify this "
16839 "flag to see what you are typing."
16840 msgstr ""
16841
16842 # type: =item
16843 #: ../fish/guestfish.pod:202
16844 msgid "B<-f file> | B<--file file>"
16845 msgstr ""
16846
16847 # type: textblock
16848 #: ../fish/guestfish.pod:204
16849 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
16850 msgstr ""
16851
16852 # type: verbatim
16853 #: ../fish/guestfish.pod:207
16854 #, no-wrap
16855 msgid ""
16856 " #!/usr/bin/guestfish -f\n"
16857 "\n"
16858 msgstr ""
16859
16860 # type: =item
16861 #: ../fish/guestfish.pod:209 ../fuse/guestmount.pod:115
16862 msgid "B<--format=raw|qcow2|..> | B<--format>"
16863 msgstr ""
16864
16865 # type: textblock
16866 #: ../fish/guestfish.pod:211 ../fuse/guestmount.pod:117
16867 msgid ""
16868 "The default for the I<-a> option is to auto-detect the format of the disk "
16869 "image.  Using this forces the disk format for I<-a> options which follow on "
16870 "the command line.  Using I<--format> with no argument switches back to "
16871 "auto-detection for subsequent I<-a> options."
16872 msgstr ""
16873
16874 # type: textblock
16875 #: ../fish/guestfish.pod:216 ../fish/guestfish.pod:544
16876 msgid "For example:"
16877 msgstr ""
16878
16879 # type: verbatim
16880 #: ../fish/guestfish.pod:218
16881 #, no-wrap
16882 msgid ""
16883 " guestfish --format=raw -a disk.img\n"
16884 "\n"
16885 msgstr ""
16886
16887 # type: textblock
16888 #: ../fish/guestfish.pod:220
16889 msgid "forces raw format (no auto-detection) for C<disk.img>."
16890 msgstr ""
16891
16892 # type: verbatim
16893 #: ../fish/guestfish.pod:222
16894 #, no-wrap
16895 msgid ""
16896 " guestfish --format=raw -a disk.img --format -a another.img\n"
16897 "\n"
16898 msgstr ""
16899
16900 # type: textblock
16901 #: ../fish/guestfish.pod:224
16902 msgid ""
16903 "forces raw format (no auto-detection) for C<disk.img> and reverts to "
16904 "auto-detection for C<another.img>."
16905 msgstr ""
16906
16907 # type: textblock
16908 #: ../fish/guestfish.pod:227
16909 msgid ""
16910 "If you have untrusted raw-format guest disk images, you should use this "
16911 "option to specify the disk format.  This avoids a possible security problem "
16912 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
16913 msgstr ""
16914
16915 # type: =item
16916 #: ../fish/guestfish.pod:232 ../fuse/guestmount.pod:135
16917 msgid "B<-i> | B<--inspector>"
16918 msgstr ""
16919
16920 # type: textblock
16921 #: ../fish/guestfish.pod:234 ../fuse/guestmount.pod:137
16922 msgid ""
16923 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
16924 "system and mount filesystems as they would be mounted on the real virtual "
16925 "machine."
16926 msgstr ""
16927
16928 # type: textblock
16929 #: ../fish/guestfish.pod:238
16930 msgid "Typical usage is either:"
16931 msgstr ""
16932
16933 # type: verbatim
16934 #: ../fish/guestfish.pod:240
16935 #, no-wrap
16936 msgid ""
16937 " guestfish -d myguest -i\n"
16938 "\n"
16939 msgstr ""
16940
16941 # type: textblock
16942 #: ../fish/guestfish.pod:242
16943 msgid "(for an inactive libvirt domain called I<myguest>), or:"
16944 msgstr ""
16945
16946 # type: verbatim
16947 #: ../fish/guestfish.pod:244
16948 #, no-wrap
16949 msgid ""
16950 " guestfish --ro -d myguest -i\n"
16951 "\n"
16952 msgstr ""
16953
16954 # type: textblock
16955 #: ../fish/guestfish.pod:246
16956 msgid "(for active domains, readonly), or specify the block device directly:"
16957 msgstr ""
16958
16959 # type: verbatim
16960 #: ../fish/guestfish.pod:248
16961 #, no-wrap
16962 msgid ""
16963 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
16964 "\n"
16965 msgstr ""
16966
16967 # type: textblock
16968 #: ../fish/guestfish.pod:250
16969 msgid ""
16970 "Note that the command line syntax changed slightly over older versions of "
16971 "guestfish.  You can still use the old syntax:"
16972 msgstr ""
16973
16974 # type: verbatim
16975 #: ../fish/guestfish.pod:253
16976 #, no-wrap
16977 msgid ""
16978 " guestfish [--ro] -i disk.img\n"
16979 "\n"
16980 msgstr ""
16981
16982 # type: verbatim
16983 #: ../fish/guestfish.pod:255
16984 #, no-wrap
16985 msgid ""
16986 " guestfish [--ro] -i libvirt-domain\n"
16987 "\n"
16988 msgstr ""
16989
16990 # type: =item
16991 #: ../fish/guestfish.pod:257 ../fuse/guestmount.pod:141
16992 msgid "B<--keys-from-stdin>"
16993 msgstr ""
16994
16995 # type: textblock
16996 #: ../fish/guestfish.pod:259 ../fuse/guestmount.pod:143
16997 msgid ""
16998 "Read key or passphrase parameters from stdin.  The default is to try to read "
16999 "passphrases from the user by opening C</dev/tty>."
17000 msgstr ""
17001
17002 # type: =item
17003 #: ../fish/guestfish.pod:262
17004 msgid "B<--listen>"
17005 msgstr ""
17006
17007 # type: textblock
17008 #: ../fish/guestfish.pod:264
17009 msgid ""
17010 "Fork into the background and listen for remote commands.  See section "
17011 "L</REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
17012 msgstr ""
17013
17014 # type: =item
17015 #: ../fish/guestfish.pod:267
17016 msgid "B<-m dev[:mountpoint]> | B<--mount dev[:mountpoint]>"
17017 msgstr ""
17018
17019 # type: textblock
17020 #: ../fish/guestfish.pod:269
17021 msgid "Mount the named partition or logical volume on the given mountpoint."
17022 msgstr ""
17023
17024 # type: textblock
17025 #: ../fish/guestfish.pod:271
17026 msgid "If the mountpoint is omitted, it defaults to C</>."
17027 msgstr ""
17028
17029 # type: textblock
17030 #: ../fish/guestfish.pod:273
17031 msgid "You have to mount something on C</> before most commands will work."
17032 msgstr ""
17033
17034 # type: textblock
17035 #: ../fish/guestfish.pod:275
17036 msgid ""
17037 "If any I<-m> or I<--mount> options are given, the guest is automatically "
17038 "launched."
17039 msgstr ""
17040
17041 # type: textblock
17042 #: ../fish/guestfish.pod:278
17043 msgid ""
17044 "If you don't know what filesystems a disk image contains, you can either run "
17045 "guestfish without this option, then list the partitions, filesystems and LVs "
17046 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
17047 "commands), or you can use the L<virt-filesystems(1)> program."
17048 msgstr ""
17049
17050 # type: =item
17051 #: ../fish/guestfish.pod:284 ../fuse/guestmount.pod:154
17052 msgid "B<-n> | B<--no-sync>"
17053 msgstr ""
17054
17055 # type: textblock
17056 #: ../fish/guestfish.pod:286
17057 msgid ""
17058 "Disable autosync.  This is enabled by default.  See the discussion of "
17059 "autosync in the L<guestfs(3)> manpage."
17060 msgstr ""
17061
17062 # type: =item
17063 #: ../fish/guestfish.pod:289
17064 msgid "B<-N type> | B<--new type> | B<-N help>"
17065 msgstr ""
17066
17067 # type: textblock
17068 #: ../fish/guestfish.pod:291
17069 msgid ""
17070 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
17071 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
17072 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
17073 "IMAGES> below."
17074 msgstr ""
17075
17076 # type: =item
17077 #: ../fish/guestfish.pod:296
17078 msgid "B<--progress-bars>"
17079 msgstr ""
17080
17081 # type: textblock
17082 #: ../fish/guestfish.pod:298
17083 msgid "Enable progress bars, even when guestfish is used non-interactively."
17084 msgstr ""
17085
17086 # type: textblock
17087 #: ../fish/guestfish.pod:300
17088 msgid ""
17089 "Progress bars are enabled by default when guestfish is used as an "
17090 "interactive shell."
17091 msgstr ""
17092
17093 # type: =item
17094 #: ../fish/guestfish.pod:303
17095 msgid "B<--no-progress-bars>"
17096 msgstr ""
17097
17098 # type: textblock
17099 #: ../fish/guestfish.pod:305
17100 msgid "Disable progress bars."
17101 msgstr ""
17102
17103 # type: =item
17104 #: ../fish/guestfish.pod:307
17105 msgid "B<--remote[=pid]>"
17106 msgstr ""
17107
17108 # type: textblock
17109 #: ../fish/guestfish.pod:309
17110 msgid ""
17111 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
17112 "CONTROL GUESTFISH OVER A SOCKET> below."
17113 msgstr ""
17114
17115 # type: =item
17116 #: ../fish/guestfish.pod:312 ../fuse/guestmount.pod:196
17117 msgid "B<-r> | B<--ro>"
17118 msgstr ""
17119
17120 # type: textblock
17121 #: ../fish/guestfish.pod:314
17122 msgid ""
17123 "This changes the I<-a> and I<-m> options so that disks are added and mounts "
17124 "are done read-only (see L<guestfs(3)/guestfs_mount_ro>)."
17125 msgstr ""
17126
17127 # type: textblock
17128 #: ../fish/guestfish.pod:317 ../tools/virt-rescue.pl:187
17129 msgid ""
17130 "The option must always be used if the disk image or virtual machine might be "
17131 "running, and is generally recommended in cases where you don't need write "
17132 "access to the disk."
17133 msgstr ""
17134
17135 # type: textblock
17136 #: ../fish/guestfish.pod:321
17137 msgid ""
17138 "Note that prepared disk images created with I<-N> are not affected by the "
17139 "I<--ro> option."
17140 msgstr ""
17141
17142 # type: textblock
17143 #: ../fish/guestfish.pod:324
17144 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
17145 msgstr ""
17146
17147 # type: =item
17148 #: ../fish/guestfish.pod:326 ../fuse/guestmount.pod:208 ../tools/virt-rescue.pl:195
17149 msgid "B<--selinux>"
17150 msgstr ""
17151
17152 # type: textblock
17153 #: ../fish/guestfish.pod:328
17154 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
17155 msgstr ""
17156
17157 # type: =item
17158 #: ../fish/guestfish.pod:330 ../fuse/guestmount.pod:212
17159 msgid "B<-v> | B<--verbose>"
17160 msgstr ""
17161
17162 # type: textblock
17163 #: ../fish/guestfish.pod:332
17164 msgid ""
17165 "Enable very verbose messages.  This is particularly useful if you find a "
17166 "bug."
17167 msgstr ""
17168
17169 # type: =item
17170 #: ../fish/guestfish.pod:335 ../fuse/guestmount.pod:216
17171 msgid "B<-V> | B<--version>"
17172 msgstr ""
17173
17174 # type: textblock
17175 #: ../fish/guestfish.pod:337
17176 msgid "Display the guestfish / libguestfs version number and exit."
17177 msgstr ""
17178
17179 # type: =item
17180 #: ../fish/guestfish.pod:339 ../fuse/guestmount.pod:220
17181 msgid "B<-w> | B<--rw>"
17182 msgstr ""
17183
17184 # type: textblock
17185 #: ../fish/guestfish.pod:341
17186 msgid ""
17187 "This option does nothing at the moment.  See L</OPENING DISKS FOR READ AND "
17188 "WRITE> below."
17189 msgstr ""
17190
17191 # type: =item
17192 #: ../fish/guestfish.pod:344
17193 msgid "B<-x>"
17194 msgstr ""
17195
17196 # type: textblock
17197 #: ../fish/guestfish.pod:346
17198 msgid "Echo each command before executing it."
17199 msgstr ""
17200
17201 # type: =head1
17202 #: ../fish/guestfish.pod:350
17203 msgid "COMMANDS ON COMMAND LINE"
17204 msgstr ""
17205
17206 # type: textblock
17207 #: ../fish/guestfish.pod:352
17208 msgid "Any additional (non-option) arguments are treated as commands to execute."
17209 msgstr ""
17210
17211 # type: textblock
17212 #: ../fish/guestfish.pod:355
17213 msgid ""
17214 "Commands to execute should be separated by a colon (C<:>), where the colon "
17215 "is a separate parameter.  Thus:"
17216 msgstr ""
17217
17218 # type: verbatim
17219 #: ../fish/guestfish.pod:358
17220 #, no-wrap
17221 msgid ""
17222 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
17223 "\n"
17224 msgstr ""
17225
17226 # type: textblock
17227 #: ../fish/guestfish.pod:360
17228 msgid ""
17229 "If there are no additional arguments, then we enter a shell, either an "
17230 "interactive shell with a prompt (if the input is a terminal) or a "
17231 "non-interactive shell."
17232 msgstr ""
17233
17234 # type: textblock
17235 #: ../fish/guestfish.pod:364
17236 msgid ""
17237 "In either command line mode or non-interactive shell, the first command that "
17238 "gives an error causes the whole shell to exit.  In interactive mode (with a "
17239 "prompt) if a command fails, you can continue to enter commands."
17240 msgstr ""
17241
17242 # type: =head1
17243 #: ../fish/guestfish.pod:369
17244 msgid "USING launch (OR run)"
17245 msgstr ""
17246
17247 # type: textblock
17248 #: ../fish/guestfish.pod:371
17249 msgid ""
17250 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
17251 "then launch it, then mount any disks you need, and finally issue "
17252 "actions/commands.  So the general order of the day is:"
17253 msgstr ""
17254
17255 # type: textblock
17256 #: ../fish/guestfish.pod:379
17257 msgid "add or -a/--add"
17258 msgstr ""
17259
17260 # type: textblock
17261 #: ../fish/guestfish.pod:383
17262 msgid "launch (aka run)"
17263 msgstr ""
17264
17265 # type: textblock
17266 #: ../fish/guestfish.pod:387
17267 msgid "mount or -m/--mount"
17268 msgstr ""
17269
17270 # type: textblock
17271 #: ../fish/guestfish.pod:391
17272 msgid "any other commands"
17273 msgstr ""
17274
17275 # type: textblock
17276 #: ../fish/guestfish.pod:395
17277 msgid ""
17278 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
17279 "guest before mounting or performing any other commands."
17280 msgstr ""
17281
17282 # type: textblock
17283 #: ../fish/guestfish.pod:398
17284 msgid ""
17285 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
17286 "I<--new> options were given then C<run> is done automatically, simply "
17287 "because guestfish can't perform the action you asked for without doing this."
17288 msgstr ""
17289
17290 # type: =head1
17291 #: ../fish/guestfish.pod:403
17292 msgid "OPENING DISKS FOR READ AND WRITE"
17293 msgstr ""
17294
17295 # type: textblock
17296 #: ../fish/guestfish.pod:405
17297 msgid ""
17298 "The guestfish (and L<guestmount(1)>) options I<--ro> and I<--rw> affect "
17299 "whether the other command line options I<-a>, I<-c>, I<-d>, I<-i> and I<-m> "
17300 "open disk images read-only or for writing."
17301 msgstr ""
17302
17303 # type: textblock
17304 #: ../fish/guestfish.pod:409
17305 msgid ""
17306 "In libguestfs E<lt> 1.6.2, guestfish and guestmount defaulted to opening "
17307 "disk images supplied on the command line for write.  To open a disk image "
17308 "read-only you have to do I<-a image --ro>."
17309 msgstr ""
17310
17311 # type: textblock
17312 #: ../fish/guestfish.pod:413
17313 msgid ""
17314 "This matters: If you accidentally open a live VM disk image writable then "
17315 "you will cause irreversible disk corruption."
17316 msgstr ""
17317
17318 # type: textblock
17319 #: ../fish/guestfish.pod:416
17320 msgid ""
17321 "By libguestfs 1.8 we intend to change the default the other way.  Disk "
17322 "images will be opened read-only.  You will have to either specify "
17323 "I<guestfish --rw> or change a configuration file in order to get write "
17324 "access for disk images specified by those other command line options."
17325 msgstr ""
17326
17327 # type: textblock
17328 #: ../fish/guestfish.pod:421
17329 msgid ""
17330 "This version of guestfish has a I<--rw> option which does nothing (it is "
17331 "already the default).  However it is highly recommended that you use this "
17332 "option to indicate that guestfish needs write access, and to prepare your "
17333 "scripts for the day when this option will be required for write access."
17334 msgstr ""
17335
17336 # type: textblock
17337 #: ../fish/guestfish.pod:427
17338 msgid ""
17339 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
17340 "other libguestfs program apart from guestfish and guestmount."
17341 msgstr ""
17342
17343 # type: =head1
17344 #: ../fish/guestfish.pod:430
17345 msgid "QUOTING"
17346 msgstr ""
17347
17348 # type: textblock
17349 #: ../fish/guestfish.pod:432
17350 msgid ""
17351 "You can quote ordinary parameters using either single or double quotes.  For "
17352 "example:"
17353 msgstr ""
17354
17355 # type: verbatim
17356 #: ../fish/guestfish.pod:435
17357 #, no-wrap
17358 msgid ""
17359 " add \"file with a space.img\"\n"
17360 "\n"
17361 msgstr ""
17362
17363 # type: verbatim
17364 #: ../fish/guestfish.pod:437
17365 #, no-wrap
17366 msgid ""
17367 " rm '/file name'\n"
17368 "\n"
17369 msgstr ""
17370
17371 # type: verbatim
17372 #: ../fish/guestfish.pod:439
17373 #, no-wrap
17374 msgid ""
17375 " rm '/\"'\n"
17376 "\n"
17377 msgstr ""
17378
17379 # type: textblock
17380 #: ../fish/guestfish.pod:441
17381 msgid ""
17382 "A few commands require a list of strings to be passed.  For these, use a "
17383 "whitespace-separated list, enclosed in quotes.  Strings containing "
17384 "whitespace to be passed through must be enclosed in single quotes.  A "
17385 "literal single quote must be escaped with a backslash."
17386 msgstr ""
17387
17388 # type: verbatim
17389 #: ../fish/guestfish.pod:446
17390 #, no-wrap
17391 msgid ""
17392 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
17393 " command \"/bin/echo 'foo      bar'\"\n"
17394 " command \"/bin/echo \\'foo\\'\"\n"
17395 "\n"
17396 msgstr ""
17397
17398 # type: =head1
17399 #: ../fish/guestfish.pod:450
17400 msgid "OPTIONAL ARGUMENTS"
17401 msgstr ""
17402
17403 # type: textblock
17404 #: ../fish/guestfish.pod:452
17405 msgid ""
17406 "Some commands take optional arguments.  These arguments appear in this "
17407 "documentation as C<[argname:..]>.  You can use them as in these examples:"
17408 msgstr ""
17409
17410 # type: verbatim
17411 #: ../fish/guestfish.pod:456
17412 #, no-wrap
17413 msgid ""
17414 " add-drive-opts filename\n"
17415 "\n"
17416 msgstr ""
17417
17418 # type: verbatim
17419 #: ../fish/guestfish.pod:458
17420 #, no-wrap
17421 msgid ""
17422 " add-drive-opts filename readonly:true\n"
17423 "\n"
17424 msgstr ""
17425
17426 # type: verbatim
17427 #: ../fish/guestfish.pod:460
17428 #, no-wrap
17429 msgid ""
17430 " add-drive-opts filename format:qcow2 readonly:false\n"
17431 "\n"
17432 msgstr ""
17433
17434 # type: textblock
17435 #: ../fish/guestfish.pod:462
17436 msgid ""
17437 "Each optional argument can appear at most once.  All optional arguments must "
17438 "appear after the required ones."
17439 msgstr ""
17440
17441 # type: =head1
17442 #: ../fish/guestfish.pod:465
17443 msgid "NUMBERS"
17444 msgstr ""
17445
17446 # type: textblock
17447 #: ../fish/guestfish.pod:467
17448 msgid "This section applies to all commands which can take integers as parameters."
17449 msgstr ""
17450
17451 # type: =head2
17452 #: ../fish/guestfish.pod:470
17453 msgid "SIZE SUFFIX"
17454 msgstr ""
17455
17456 # type: textblock
17457 #: ../fish/guestfish.pod:472
17458 msgid ""
17459 "When the command takes a parameter measured in bytes, you can use one of the "
17460 "following suffixes to specify kilobytes, megabytes and larger sizes:"
17461 msgstr ""
17462
17463 # type: =item
17464 #: ../fish/guestfish.pod:478
17465 msgid "B<k> or B<K> or B<KiB>"
17466 msgstr ""
17467
17468 # type: textblock
17469 #: ../fish/guestfish.pod:480
17470 msgid "The size in kilobytes (multiplied by 1024)."
17471 msgstr ""
17472
17473 # type: =item
17474 #: ../fish/guestfish.pod:482
17475 msgid "B<KB>"
17476 msgstr ""
17477
17478 # type: textblock
17479 #: ../fish/guestfish.pod:484
17480 msgid "The size in SI 1000 byte units."
17481 msgstr ""
17482
17483 # type: =item
17484 #: ../fish/guestfish.pod:486
17485 msgid "B<M> or B<MiB>"
17486 msgstr ""
17487
17488 # type: textblock
17489 #: ../fish/guestfish.pod:488
17490 msgid "The size in megabytes (multiplied by 1048576)."
17491 msgstr ""
17492
17493 # type: =item
17494 #: ../fish/guestfish.pod:490
17495 msgid "B<MB>"
17496 msgstr ""
17497
17498 # type: textblock
17499 #: ../fish/guestfish.pod:492
17500 msgid "The size in SI 1000000 byte units."
17501 msgstr ""
17502
17503 # type: =item
17504 #: ../fish/guestfish.pod:494
17505 msgid "B<G> or B<GiB>"
17506 msgstr ""
17507
17508 # type: textblock
17509 #: ../fish/guestfish.pod:496
17510 msgid "The size in gigabytes (multiplied by 2**30)."
17511 msgstr ""
17512
17513 # type: =item
17514 #: ../fish/guestfish.pod:498
17515 msgid "B<GB>"
17516 msgstr ""
17517
17518 # type: textblock
17519 #: ../fish/guestfish.pod:500
17520 msgid "The size in SI 10**9 byte units."
17521 msgstr ""
17522
17523 # type: =item
17524 #: ../fish/guestfish.pod:502
17525 msgid "B<T> or B<TiB>"
17526 msgstr ""
17527
17528 # type: textblock
17529 #: ../fish/guestfish.pod:504
17530 msgid "The size in terabytes (multiplied by 2**40)."
17531 msgstr ""
17532
17533 # type: =item
17534 #: ../fish/guestfish.pod:506
17535 msgid "B<TB>"
17536 msgstr ""
17537
17538 # type: textblock
17539 #: ../fish/guestfish.pod:508
17540 msgid "The size in SI 10**12 byte units."
17541 msgstr ""
17542
17543 # type: =item
17544 #: ../fish/guestfish.pod:510
17545 msgid "B<P> or B<PiB>"
17546 msgstr ""
17547
17548 # type: textblock
17549 #: ../fish/guestfish.pod:512
17550 msgid "The size in petabytes (multiplied by 2**50)."
17551 msgstr ""
17552
17553 # type: =item
17554 #: ../fish/guestfish.pod:514
17555 msgid "B<PB>"
17556 msgstr ""
17557
17558 # type: textblock
17559 #: ../fish/guestfish.pod:516
17560 msgid "The size in SI 10**15 byte units."
17561 msgstr ""
17562
17563 # type: =item
17564 #: ../fish/guestfish.pod:518
17565 msgid "B<E> or B<EiB>"
17566 msgstr ""
17567
17568 # type: textblock
17569 #: ../fish/guestfish.pod:520
17570 msgid "The size in exabytes (multiplied by 2**60)."
17571 msgstr ""
17572
17573 # type: =item
17574 #: ../fish/guestfish.pod:522
17575 msgid "B<EB>"
17576 msgstr ""
17577
17578 # type: textblock
17579 #: ../fish/guestfish.pod:524
17580 msgid "The size in SI 10**18 byte units."
17581 msgstr ""
17582
17583 # type: =item
17584 #: ../fish/guestfish.pod:526
17585 msgid "B<Z> or B<ZiB>"
17586 msgstr ""
17587
17588 # type: textblock
17589 #: ../fish/guestfish.pod:528
17590 msgid "The size in zettabytes (multiplied by 2**70)."
17591 msgstr ""
17592
17593 # type: =item
17594 #: ../fish/guestfish.pod:530
17595 msgid "B<ZB>"
17596 msgstr ""
17597
17598 # type: textblock
17599 #: ../fish/guestfish.pod:532
17600 msgid "The size in SI 10**21 byte units."
17601 msgstr ""
17602
17603 # type: =item
17604 #: ../fish/guestfish.pod:534
17605 msgid "B<Y> or B<YiB>"
17606 msgstr ""
17607
17608 # type: textblock
17609 #: ../fish/guestfish.pod:536
17610 msgid "The size in yottabytes (multiplied by 2**80)."
17611 msgstr ""
17612
17613 # type: =item
17614 #: ../fish/guestfish.pod:538
17615 msgid "B<YB>"
17616 msgstr ""
17617
17618 # type: textblock
17619 #: ../fish/guestfish.pod:540
17620 msgid "The size in SI 10**24 byte units."
17621 msgstr ""
17622
17623 # type: verbatim
17624 #: ../fish/guestfish.pod:546
17625 #, no-wrap
17626 msgid ""
17627 " truncate-size /file 1G\n"
17628 "\n"
17629 msgstr ""
17630
17631 # type: textblock
17632 #: ../fish/guestfish.pod:548
17633 msgid "would truncate the file to 1 gigabyte."
17634 msgstr ""
17635
17636 # type: textblock
17637 #: ../fish/guestfish.pod:550
17638 msgid ""
17639 "Be careful because a few commands take sizes in kilobytes or megabytes "
17640 "(eg. the parameter to L</memsize> is specified in megabytes already).  "
17641 "Adding a suffix will probably not do what you expect."
17642 msgstr ""
17643
17644 # type: =head2
17645 #: ../fish/guestfish.pod:554
17646 msgid "OCTAL AND HEXADECIMAL NUMBERS"
17647 msgstr ""
17648
17649 # type: textblock
17650 #: ../fish/guestfish.pod:556
17651 msgid ""
17652 "For specifying the radix (base) use the C convention: C<0> to prefix an "
17653 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
17654 msgstr ""
17655
17656 # type: verbatim
17657 #: ../fish/guestfish.pod:559
17658 #, no-wrap
17659 msgid ""
17660 " 1234      decimal number 1234\n"
17661 " 02322     octal number, equivalent to decimal 1234\n"
17662 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
17663 "\n"
17664 msgstr ""
17665
17666 # type: textblock
17667 #: ../fish/guestfish.pod:563
17668 msgid ""
17669 "When using the C<chmod> command, you almost always want to specify an octal "
17670 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
17671 "L<chmod(1)> program):"
17672 msgstr ""
17673
17674 # type: verbatim
17675 #: ../fish/guestfish.pod:567
17676 #, no-wrap
17677 msgid ""
17678 " chmod 0777 /public  # OK\n"
17679 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
17680 "\n"
17681 msgstr ""
17682
17683 # type: textblock
17684 #: ../fish/guestfish.pod:570
17685 msgid ""
17686 "Commands that return numbers usually print them in decimal, but some "
17687 "commands print numbers in other radices (eg. C<umask> prints the mode in "
17688 "octal, preceeded by C<0>)."
17689 msgstr ""
17690
17691 # type: =head1
17692 #: ../fish/guestfish.pod:574
17693 msgid "WILDCARDS AND GLOBBING"
17694 msgstr ""
17695
17696 # type: textblock
17697 #: ../fish/guestfish.pod:576
17698 msgid ""
17699 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
17700 "(globbing) by default.  So for example the following will not do what you "
17701 "expect:"
17702 msgstr ""
17703
17704 # type: verbatim
17705 #: ../fish/guestfish.pod:580
17706 #, no-wrap
17707 msgid ""
17708 " rm-rf /home/*\n"
17709 "\n"
17710 msgstr ""
17711
17712 # type: textblock
17713 #: ../fish/guestfish.pod:582
17714 msgid ""
17715 "Assuming you don't have a directory called literally C</home/*> then the "
17716 "above command will return an error."
17717 msgstr ""
17718
17719 # type: textblock
17720 #: ../fish/guestfish.pod:585
17721 msgid "To perform wildcard expansion, use the C<glob> command."
17722 msgstr ""
17723
17724 # type: verbatim
17725 #: ../fish/guestfish.pod:587
17726 #, no-wrap
17727 msgid ""
17728 " glob rm-rf /home/*\n"
17729 "\n"
17730 msgstr ""
17731
17732 # type: textblock
17733 #: ../fish/guestfish.pod:589
17734 msgid ""
17735 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
17736 "many times), equivalent to:"
17737 msgstr ""
17738
17739 # type: verbatim
17740 #: ../fish/guestfish.pod:592
17741 #, no-wrap
17742 msgid ""
17743 " rm-rf /home/jim\n"
17744 " rm-rf /home/joe\n"
17745 " rm-rf /home/mary\n"
17746 "\n"
17747 msgstr ""
17748
17749 # type: textblock
17750 #: ../fish/guestfish.pod:596
17751 msgid "C<glob> only works on simple guest paths and not on device names."
17752 msgstr ""
17753
17754 # type: textblock
17755 #: ../fish/guestfish.pod:598
17756 msgid ""
17757 "If you have several parameters, each containing a wildcard, then glob will "
17758 "perform a Cartesian product."
17759 msgstr ""
17760
17761 # type: =head1
17762 #: ../fish/guestfish.pod:601
17763 msgid "COMMENTS"
17764 msgstr ""
17765
17766 # type: textblock
17767 #: ../fish/guestfish.pod:603
17768 msgid ""
17769 "Any line which starts with a I<#> character is treated as a comment and "
17770 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
17771 "a command.  For example:"
17772 msgstr ""
17773
17774 # type: verbatim
17775 #: ../fish/guestfish.pod:607
17776 #, no-wrap
17777 msgid ""
17778 " # this is a comment\n"
17779 "         # this is a comment\n"
17780 " foo # NOT a comment\n"
17781 "\n"
17782 msgstr ""
17783
17784 # type: textblock
17785 #: ../fish/guestfish.pod:611
17786 msgid "Blank lines are also ignored."
17787 msgstr ""
17788
17789 # type: =head1
17790 #: ../fish/guestfish.pod:613
17791 msgid "RUNNING COMMANDS LOCALLY"
17792 msgstr ""
17793
17794 # type: textblock
17795 #: ../fish/guestfish.pod:615
17796 msgid ""
17797 "Any line which starts with a I<!> character is treated as a command sent to "
17798 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
17799 msgstr ""
17800
17801 # type: verbatim
17802 #: ../fish/guestfish.pod:619
17803 #, no-wrap
17804 msgid ""
17805 " !mkdir local\n"
17806 " tgz-out /remote local/remote-data.tar.gz\n"
17807 "\n"
17808 msgstr ""
17809
17810 # type: textblock
17811 #: ../fish/guestfish.pod:622
17812 msgid ""
17813 "will create a directory C<local> on the host, and then export the contents "
17814 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
17815 "(See C<tgz-out>)."
17816 msgstr ""
17817
17818 # type: textblock
17819 #: ../fish/guestfish.pod:626
17820 msgid ""
17821 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
17822 "effect, due to the way that subprocesses work in Unix."
17823 msgstr ""
17824
17825 # type: =head1
17826 #: ../fish/guestfish.pod:629
17827 msgid "PIPES"
17828 msgstr ""
17829
17830 # type: textblock
17831 #: ../fish/guestfish.pod:631
17832 msgid ""
17833 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
17834 "command (a guestfish command) to the second command (any host command).  For "
17835 "example:"
17836 msgstr ""
17837
17838 # type: verbatim
17839 #: ../fish/guestfish.pod:635
17840 #, no-wrap
17841 msgid ""
17842 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
17843 "\n"
17844 msgstr ""
17845
17846 # type: textblock
17847 #: ../fish/guestfish.pod:637
17848 msgid ""
17849 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
17850 "program).  The above command would list all accounts in the guest filesystem "
17851 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
17852 msgstr ""
17853
17854 # type: verbatim
17855 #: ../fish/guestfish.pod:642
17856 #, no-wrap
17857 msgid ""
17858 " hexdump /bin/ls | head\n"
17859 " list-devices | tail -1\n"
17860 " tgz-out / - | tar ztf -\n"
17861 "\n"
17862 msgstr ""
17863
17864 # type: textblock
17865 #: ../fish/guestfish.pod:646
17866 msgid ""
17867 "The space before the pipe symbol is required, any space after the pipe "
17868 "symbol is optional.  Everything after the pipe symbol is just passed "
17869 "straight to the host shell, so it can contain redirections, globs and "
17870 "anything else that makes sense on the host side."
17871 msgstr ""
17872
17873 # type: textblock
17874 #: ../fish/guestfish.pod:651
17875 msgid ""
17876 "To use a literal argument which begins with a pipe symbol, you have to quote "
17877 "it, eg:"
17878 msgstr ""
17879
17880 # type: verbatim
17881 #: ../fish/guestfish.pod:654
17882 #, no-wrap
17883 msgid ""
17884 " echo \"|\"\n"
17885 "\n"
17886 msgstr ""
17887
17888 # type: =head1
17889 #: ../fish/guestfish.pod:656
17890 msgid "HOME DIRECTORIES"
17891 msgstr ""
17892
17893 # type: textblock
17894 #: ../fish/guestfish.pod:658
17895 msgid ""
17896 "If a parameter starts with the character C<~> then the tilde may be expanded "
17897 "as a home directory path (either C<~> for the current user's home directory, "
17898 "or C<~user> for another user)."
17899 msgstr ""
17900
17901 # type: textblock
17902 #: ../fish/guestfish.pod:662
17903 msgid ""
17904 "Note that home directory expansion happens for users known I<on the host>, "
17905 "not in the guest filesystem."
17906 msgstr ""
17907
17908 # type: textblock
17909 #: ../fish/guestfish.pod:665
17910 msgid ""
17911 "To use a literal argument which begins with a tilde, you have to quote it, "
17912 "eg:"
17913 msgstr ""
17914
17915 # type: verbatim
17916 #: ../fish/guestfish.pod:668
17917 #, no-wrap
17918 msgid ""
17919 " echo \"~\"\n"
17920 "\n"
17921 msgstr ""
17922
17923 # type: textblock
17924 #: ../fish/guestfish.pod:672
17925 msgid ""
17926 "Libguestfs has some support for Linux guests encrypted according to the "
17927 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
17928 "disk encryption systems used by modern Linux guests.  Currently only "
17929 "LVM-on-LUKS is supported."
17930 msgstr ""
17931
17932 # type: textblock
17933 #: ../fish/guestfish.pod:677
17934 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
17935 msgstr ""
17936
17937 # type: verbatim
17938 #: ../fish/guestfish.pod:679
17939 #, no-wrap
17940 msgid ""
17941 " ><fs> vfs-type /dev/sda2\n"
17942 " crypto_LUKS\n"
17943 "\n"
17944 msgstr ""
17945
17946 # type: textblock
17947 #: ../fish/guestfish.pod:682
17948 msgid ""
17949 "Then open those devices using L</luks-open>.  This creates a device-mapper "
17950 "device called C</dev/mapper/luksdev>."
17951 msgstr ""
17952
17953 # type: verbatim
17954 #: ../fish/guestfish.pod:685
17955 #, no-wrap
17956 msgid ""
17957 " ><fs> luks-open /dev/sda2 luksdev\n"
17958 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
17959 "\n"
17960 msgstr ""
17961
17962 # type: textblock
17963 #: ../fish/guestfish.pod:688
17964 msgid ""
17965 "Finally you have to tell LVM to scan for volume groups on the newly created "
17966 "mapper device:"
17967 msgstr ""
17968
17969 # type: verbatim
17970 #: ../fish/guestfish.pod:691
17971 #, no-wrap
17972 msgid ""
17973 " vgscan\n"
17974 " vg-activate-all true\n"
17975 "\n"
17976 msgstr ""
17977
17978 # type: textblock
17979 #: ../fish/guestfish.pod:694
17980 msgid "The logical volume(s) can now be mounted in the usual way."
17981 msgstr ""
17982
17983 # type: textblock
17984 #: ../fish/guestfish.pod:696
17985 msgid ""
17986 "Before closing a LUKS device you must unmount any logical volumes on it and "
17987 "deactivate the volume groups by calling C<vg-activate false VG> on each "
17988 "one.  Then you can close the mapper device:"
17989 msgstr ""
17990
17991 # type: verbatim
17992 #: ../fish/guestfish.pod:700
17993 #, no-wrap
17994 msgid ""
17995 " vg-activate false /dev/VG\n"
17996 " luks-close /dev/mapper/luksdev\n"
17997 "\n"
17998 msgstr ""
17999
18000 # type: =head1
18001 #: ../fish/guestfish.pod:703
18002 msgid "WINDOWS PATHS"
18003 msgstr ""
18004
18005 # type: textblock
18006 #: ../fish/guestfish.pod:705
18007 msgid ""
18008 "If a path is prefixed with C<win:> then you can use Windows-style paths "
18009 "(with some limitations).  The following commands are equivalent:"
18010 msgstr ""
18011
18012 # type: verbatim
18013 #: ../fish/guestfish.pod:708
18014 #, no-wrap
18015 msgid ""
18016 " file /WINDOWS/system32/config/system.LOG\n"
18017 "\n"
18018 msgstr ""
18019
18020 # type: verbatim
18021 #: ../fish/guestfish.pod:710
18022 #, no-wrap
18023 msgid ""
18024 " file win:/windows/system32/config/system.log\n"
18025 "\n"
18026 msgstr ""
18027
18028 # type: verbatim
18029 #: ../fish/guestfish.pod:712
18030 #, no-wrap
18031 msgid ""
18032 " file win:\\windows\\system32\\config\\system.log\n"
18033 "\n"
18034 msgstr ""
18035
18036 # type: verbatim
18037 #: ../fish/guestfish.pod:714
18038 #, no-wrap
18039 msgid ""
18040 " file WIN:C:\\Windows\\SYSTEM32\\conFIG\\SYSTEM.LOG\n"
18041 "\n"
18042 msgstr ""
18043
18044 # type: textblock
18045 #: ../fish/guestfish.pod:716
18046 msgid ""
18047 "This syntax implicitly calls C<case-sensitive-path> (q.v.) so it also "
18048 "handles case insensitivity like Windows would.  This only works in argument "
18049 "positions that expect a path."
18050 msgstr ""
18051
18052 # type: =head1
18053 #: ../fish/guestfish.pod:720
18054 msgid "UPLOADING AND DOWNLOADING FILES"
18055 msgstr ""
18056
18057 # type: textblock
18058 #: ../fish/guestfish.pod:722
18059 msgid ""
18060 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
18061 "others which upload from or download to a local file, you can use the "
18062 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
18063 msgstr ""
18064
18065 # type: verbatim
18066 #: ../fish/guestfish.pod:726
18067 #, no-wrap
18068 msgid ""
18069 " upload - /foo\n"
18070 "\n"
18071 msgstr ""
18072
18073 # type: textblock
18074 #: ../fish/guestfish.pod:728
18075 msgid "reads stdin and creates from that a file C</foo> in the disk image, and:"
18076 msgstr ""
18077
18078 # type: verbatim
18079 #: ../fish/guestfish.pod:731
18080 #, no-wrap
18081 msgid ""
18082 " tar-out /etc - | tar tf -\n"
18083 "\n"
18084 msgstr ""
18085
18086 # type: textblock
18087 #: ../fish/guestfish.pod:733
18088 msgid ""
18089 "writes the tarball to stdout and then pipes that into the external \"tar\" "
18090 "command (see L</PIPES>)."
18091 msgstr ""
18092
18093 # type: textblock
18094 #: ../fish/guestfish.pod:736
18095 msgid ""
18096 "When using C<-> to read from stdin, the input is read up to the end of "
18097 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
18098 "some arbitrary end marker:"
18099 msgstr ""
18100
18101 # type: verbatim
18102 #: ../fish/guestfish.pod:740
18103 #, no-wrap
18104 msgid ""
18105 " upload -<<END /foo\n"
18106 " input line 1\n"
18107 " input line 2\n"
18108 " input line 3\n"
18109 " END\n"
18110 "\n"
18111 msgstr ""
18112
18113 # type: textblock
18114 #: ../fish/guestfish.pod:746
18115 msgid ""
18116 "Any string of characters can be used instead of C<END>.  The end marker must "
18117 "appear on a line of its own, without any preceeding or following characters "
18118 "(not even spaces)."
18119 msgstr ""
18120
18121 # type: textblock
18122 #: ../fish/guestfish.pod:750
18123 msgid ""
18124 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
18125 "upload local files (so-called \"FileIn\" parameters in the generator)."
18126 msgstr ""
18127
18128 # type: =head1
18129 #: ../fish/guestfish.pod:753
18130 msgid "EXIT ON ERROR BEHAVIOUR"
18131 msgstr ""
18132
18133 # type: textblock
18134 #: ../fish/guestfish.pod:755
18135 msgid ""
18136 "By default, guestfish will ignore any errors when in interactive mode "
18137 "(ie. taking commands from a human over a tty), and will exit on the first "
18138 "error in non-interactive mode (scripts, commands given on the command line)."
18139 msgstr ""
18140
18141 # type: textblock
18142 #: ../fish/guestfish.pod:760
18143 msgid ""
18144 "If you prefix a command with a I<-> character, then that command will not "
18145 "cause guestfish to exit, even if that (one) command returns an error."
18146 msgstr ""
18147
18148 # type: =head1
18149 #: ../fish/guestfish.pod:764
18150 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
18151 msgstr ""
18152
18153 # type: textblock
18154 #: ../fish/guestfish.pod:766
18155 msgid ""
18156 "Guestfish can be remote-controlled over a socket.  This is useful "
18157 "particularly in shell scripts where you want to make several different "
18158 "changes to a filesystem, but you don't want the overhead of starting up a "
18159 "guestfish process each time."
18160 msgstr ""
18161
18162 # type: textblock
18163 #: ../fish/guestfish.pod:771
18164 msgid "Start a guestfish server process using:"
18165 msgstr ""
18166
18167 # type: verbatim
18168 #: ../fish/guestfish.pod:773
18169 #, no-wrap
18170 msgid ""
18171 " eval \"`guestfish --listen`\"\n"
18172 "\n"
18173 msgstr ""
18174
18175 # type: textblock
18176 #: ../fish/guestfish.pod:775
18177 msgid "and then send it commands by doing:"
18178 msgstr ""
18179
18180 # type: verbatim
18181 #: ../fish/guestfish.pod:777
18182 #, no-wrap
18183 msgid ""
18184 " guestfish --remote cmd [...]\n"
18185 "\n"
18186 msgstr ""
18187
18188 # type: textblock
18189 #: ../fish/guestfish.pod:779
18190 msgid "To cause the server to exit, send it the exit command:"
18191 msgstr ""
18192
18193 # type: verbatim
18194 #: ../fish/guestfish.pod:781
18195 #, no-wrap
18196 msgid ""
18197 " guestfish --remote exit\n"
18198 "\n"
18199 msgstr ""
18200
18201 # type: textblock
18202 #: ../fish/guestfish.pod:783
18203 msgid ""
18204 "Note that the server will normally exit if there is an error in a command.  "
18205 "You can change this in the usual way.  See section L</EXIT ON ERROR "
18206 "BEHAVIOUR>."
18207 msgstr ""
18208
18209 # type: =head2
18210 #: ../fish/guestfish.pod:787
18211 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
18212 msgstr ""
18213
18214 # type: textblock
18215 #: ../fish/guestfish.pod:789
18216 msgid ""
18217 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
18218 "is how the I<--remote> option knows where to send the commands.  You can "
18219 "have several guestfish listener processes running using:"
18220 msgstr ""
18221
18222 # type: verbatim
18223 #: ../fish/guestfish.pod:793
18224 #, no-wrap
18225 msgid ""
18226 " eval \"`guestfish --listen`\"\n"
18227 " pid1=$GUESTFISH_PID\n"
18228 " eval \"`guestfish --listen`\"\n"
18229 " pid2=$GUESTFISH_PID\n"
18230 " ...\n"
18231 " guestfish --remote=$pid1 cmd\n"
18232 " guestfish --remote=$pid2 cmd\n"
18233 "\n"
18234 msgstr ""
18235
18236 # type: =head2
18237 #: ../fish/guestfish.pod:801
18238 msgid "REMOTE CONTROL AND CSH"
18239 msgstr ""
18240
18241 # type: textblock
18242 #: ../fish/guestfish.pod:803
18243 msgid ""
18244 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
18245 "option:"
18246 msgstr ""
18247
18248 # type: verbatim
18249 #: ../fish/guestfish.pod:806
18250 #, no-wrap
18251 msgid ""
18252 " eval \"`guestfish --listen --csh`\"\n"
18253 "\n"
18254 msgstr ""
18255
18256 # type: =head2
18257 #: ../fish/guestfish.pod:808
18258 msgid "REMOTE CONTROL DETAILS"
18259 msgstr ""
18260
18261 # type: textblock
18262 #: ../fish/guestfish.pod:810
18263 msgid ""
18264 "Remote control happens over a Unix domain socket called "
18265 "C</tmp/.guestfish-$UID/socket-$PID>, where C<$UID> is the effective user ID "
18266 "of the process, and C<$PID> is the process ID of the server."
18267 msgstr ""
18268
18269 # type: textblock
18270 #: ../fish/guestfish.pod:814
18271 msgid "Guestfish client and server versions must match exactly."
18272 msgstr ""
18273
18274 # type: =head1
18275 #: ../fish/guestfish.pod:816
18276 msgid "PREPARED DISK IMAGES"
18277 msgstr ""
18278
18279 # type: textblock
18280 #: ../fish/guestfish.pod:818
18281 msgid ""
18282 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
18283 "preformatted disk images that guestfish can make for you to save typing.  "
18284 "This is particularly useful for testing purposes.  This option is used "
18285 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
18286 "can be mixed with I<-a>)."
18287 msgstr ""
18288
18289 # type: textblock
18290 #: ../fish/guestfish.pod:824
18291 msgid ""
18292 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
18293 "the second and so on.  Existing files in the current directory are "
18294 "I<overwritten>."
18295 msgstr ""
18296
18297 # type: textblock
18298 #: ../fish/guestfish.pod:828
18299 msgid ""
18300 "The type briefly describes how the disk should be sized, partitioned, how "
18301 "filesystem(s) should be created, and how content should be added.  "
18302 "Optionally the type can be followed by extra parameters, separated by C<:> "
18303 "(colon) characters.  For example, I<-N fs> creates a default 100MB, "
18304 "sparsely-allocated disk, containing a single partition, with the partition "
18305 "formatted as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem "
18306 "on a 1GB disk instead."
18307 msgstr ""
18308
18309 # type: textblock
18310 #: ../fish/guestfish.pod:836
18311 msgid "To list the available types and any extra parameters they take, run:"
18312 msgstr ""
18313
18314 # type: textblock
18315 #: ../fish/guestfish.pod:840
18316 msgid ""
18317 "Note that the prepared filesystem is not mounted.  You would usually have to "
18318 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
18319 msgstr ""
18320
18321 # type: textblock
18322 #: ../fish/guestfish.pod:844
18323 msgid ""
18324 "If any I<-N> or I<--new> options are given, the guest is automatically "
18325 "launched."
18326 msgstr ""
18327
18328 # type: textblock
18329 #: ../fish/guestfish.pod:849
18330 msgid "Create a 100MB disk with an ext4-formatted partition:"
18331 msgstr ""
18332
18333 # type: verbatim
18334 #: ../fish/guestfish.pod:851
18335 #, no-wrap
18336 msgid ""
18337 " guestfish -N fs:ext4\n"
18338 "\n"
18339 msgstr ""
18340
18341 # type: textblock
18342 #: ../fish/guestfish.pod:853
18343 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
18344 msgstr ""
18345
18346 # type: verbatim
18347 #: ../fish/guestfish.pod:855
18348 #, no-wrap
18349 msgid ""
18350 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
18351 "\n"
18352 msgstr ""
18353
18354 # type: textblock
18355 #: ../fish/guestfish.pod:857
18356 msgid "Create a blank 200MB disk:"
18357 msgstr ""
18358
18359 # type: verbatim
18360 #: ../fish/guestfish.pod:859
18361 #, no-wrap
18362 msgid ""
18363 " guestfish -N disk:200M\n"
18364 "\n"
18365 msgstr ""
18366
18367 # type: =head1
18368 #: ../fish/guestfish.pod:861
18369 msgid "PROGRESS BARS"
18370 msgstr ""
18371
18372 # type: textblock
18373 #: ../fish/guestfish.pod:863
18374 msgid ""
18375 "Some (not all) long-running commands send progress notification messages as "
18376 "they are running.  Guestfish turns these messages into progress bars."
18377 msgstr ""
18378
18379 # type: textblock
18380 #: ../fish/guestfish.pod:867
18381 msgid ""
18382 "When a command that supports progress bars takes longer than two seconds to "
18383 "run, and if progress bars are enabled, then you will see one appearing below "
18384 "the command:"
18385 msgstr ""
18386
18387 # type: verbatim
18388 #: ../fish/guestfish.pod:871
18389 #, no-wrap
18390 msgid ""
18391 " ><fs> copy-size /large-file /another-file 2048M\n"
18392 " / 10% [#####-----------------------------------------] 00:30\n"
18393 "\n"
18394 msgstr ""
18395
18396 # type: textblock
18397 #: ../fish/guestfish.pod:874
18398 msgid ""
18399 "The spinner on the left hand side moves round once for every progress "
18400 "notification received from the backend.  This is a (reasonably) golden "
18401 "assurance that the command is \"doing something\" even if the progress bar "
18402 "is not moving, because the command is able to send the progress "
18403 "notifications.  When the bar reaches 100% and the command finishes, the "
18404 "spinner disappears."
18405 msgstr ""
18406
18407 # type: textblock
18408 #: ../fish/guestfish.pod:881
18409 msgid ""
18410 "Progress bars are enabled by default when guestfish is used interactively.  "
18411 "You can enable them even for non-interactive modes using I<--progress-bars>, "
18412 "and you can disable them completely using I<--no-progress-bars>."
18413 msgstr ""
18414
18415 # type: =head1
18416 #: ../fish/guestfish.pod:886
18417 msgid "GUESTFISH COMMANDS"
18418 msgstr ""
18419
18420 # type: textblock
18421 #: ../fish/guestfish.pod:888
18422 msgid ""
18423 "The commands in this section are guestfish convenience commands, in other "
18424 "words, they are not part of the L<guestfs(3)> API."
18425 msgstr ""
18426
18427 # type: =head2
18428 #: ../fish/guestfish.pod:891
18429 msgid "help"
18430 msgstr ""
18431
18432 # type: verbatim
18433 #: ../fish/guestfish.pod:893
18434 #, no-wrap
18435 msgid ""
18436 " help\n"
18437 " help cmd\n"
18438 "\n"
18439 msgstr ""
18440
18441 # type: textblock
18442 #: ../fish/guestfish.pod:896
18443 msgid "Without any parameter, this provides general help."
18444 msgstr ""
18445
18446 # type: textblock
18447 #: ../fish/guestfish.pod:898
18448 msgid "With a C<cmd> parameter, this displays detailed help for that command."
18449 msgstr ""
18450
18451 # type: =head2
18452 #: ../fish/guestfish.pod:900
18453 msgid "quit | exit"
18454 msgstr ""
18455
18456 # type: textblock
18457 #: ../fish/guestfish.pod:902
18458 msgid "This exits guestfish.  You can also use C<^D> key."
18459 msgstr ""
18460
18461 # type: textblock
18462 #: ../fish/guestfish.pod:904
18463 msgid "@FISH_COMMANDS@"
18464 msgstr ""
18465
18466 # type: =head1
18467 #: ../fish/guestfish.pod:906
18468 msgid "COMMANDS"
18469 msgstr ""
18470
18471 # type: =head1
18472 #: ../fish/guestfish.pod:910 ../test-tool/libguestfs-test-tool.pod:83
18473 msgid "EXIT CODE"
18474 msgstr ""
18475
18476 # type: textblock
18477 #: ../fish/guestfish.pod:912
18478 msgid ""
18479 "guestfish returns 0 if the commands completed without error, or 1 if there "
18480 "was an error."
18481 msgstr ""
18482
18483 # type: =item
18484 #: ../fish/guestfish.pod:919
18485 msgid "EDITOR"
18486 msgstr ""
18487
18488 # type: textblock
18489 #: ../fish/guestfish.pod:921
18490 msgid ""
18491 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
18492 "C<vi>."
18493 msgstr ""
18494
18495 # type: =item
18496 #: ../fish/guestfish.pod:924
18497 msgid "GUESTFISH_PID"
18498 msgstr ""
18499
18500 # type: textblock
18501 #: ../fish/guestfish.pod:926
18502 msgid ""
18503 "Used with the I<--remote> option to specify the remote guestfish process to "
18504 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
18505 msgstr ""
18506
18507 # type: =item
18508 #: ../fish/guestfish.pod:930
18509 msgid "HEXEDITOR"
18510 msgstr ""
18511
18512 # type: textblock
18513 #: ../fish/guestfish.pod:932
18514 msgid ""
18515 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
18516 "not specified, the external L<hexedit(1)> program is used."
18517 msgstr ""
18518
18519 # type: =item
18520 #: ../fish/guestfish.pod:936
18521 msgid "HOME"
18522 msgstr ""
18523
18524 # type: textblock
18525 #: ../fish/guestfish.pod:938
18526 msgid ""
18527 "If compiled with GNU readline support, various files in the home directory "
18528 "can be used.  See L</FILES>."
18529 msgstr ""
18530
18531 # type: textblock
18532 #: ../fish/guestfish.pod:947
18533 msgid ""
18534 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
18535 "effect as using the B<-v> option."
18536 msgstr ""
18537
18538 # type: textblock
18539 #: ../fish/guestfish.pod:959
18540 msgid ""
18541 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
18542 "the discussion of paths in L<guestfs(3)>."
18543 msgstr ""
18544
18545 # type: textblock
18546 #: ../fish/guestfish.pod:970
18547 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
18548 msgstr ""
18549
18550 # type: =item
18551 #: ../fish/guestfish.pod:972
18552 msgid "PAGER"
18553 msgstr ""
18554
18555 # type: textblock
18556 #: ../fish/guestfish.pod:974
18557 msgid ""
18558 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
18559 "C<more>."
18560 msgstr ""
18561
18562 # type: =head1
18563 #: ../fish/guestfish.pod:989 ../test-tool/libguestfs-test-tool.pod:88
18564 msgid "FILES"
18565 msgstr ""
18566
18567 # type: =item
18568 #: ../fish/guestfish.pod:993
18569 msgid "$HOME/.guestfish"
18570 msgstr ""
18571
18572 # type: textblock
18573 #: ../fish/guestfish.pod:995
18574 msgid ""
18575 "If compiled with GNU readline support, then the command history is saved in "
18576 "this file."
18577 msgstr ""
18578
18579 # type: =item
18580 #: ../fish/guestfish.pod:998
18581 msgid "$HOME/.inputrc"
18582 msgstr ""
18583
18584 # type: =item
18585 #: ../fish/guestfish.pod:1000
18586 msgid "/etc/inputrc"
18587 msgstr ""
18588
18589 # type: textblock
18590 #: ../fish/guestfish.pod:1002
18591 msgid ""
18592 "If compiled with GNU readline support, then these files can be used to "
18593 "configure readline.  For further information, please see "
18594 "L<readline(3)/INITIALIZATION FILE>."
18595 msgstr ""
18596
18597 # type: textblock
18598 #: ../fish/guestfish.pod:1006
18599 msgid "To write rules which only apply to guestfish, use:"
18600 msgstr ""
18601
18602 # type: verbatim
18603 #: ../fish/guestfish.pod:1008
18604 #, no-wrap
18605 msgid ""
18606 " $if guestfish\n"
18607 " ...\n"
18608 " $endif\n"
18609 "\n"
18610 msgstr ""
18611
18612 # type: textblock
18613 #: ../fish/guestfish.pod:1012
18614 msgid ""
18615 "Variables that you can set in inputrc that change the behaviour of guestfish "
18616 "in useful ways include:"
18617 msgstr ""
18618
18619 # type: =item
18620 #: ../fish/guestfish.pod:1017
18621 msgid "completion-ignore-case (default: on)"
18622 msgstr ""
18623
18624 # type: textblock
18625 #: ../fish/guestfish.pod:1019
18626 msgid ""
18627 "By default, guestfish will ignore case when tab-completing paths on the "
18628 "disk.  Use:"
18629 msgstr ""
18630
18631 # type: verbatim
18632 #: ../fish/guestfish.pod:1022
18633 #, no-wrap
18634 msgid ""
18635 " set completion-ignore-case off\n"
18636 "\n"
18637 msgstr ""
18638
18639 # type: textblock
18640 #: ../fish/guestfish.pod:1024
18641 msgid "to make guestfish case sensitive."
18642 msgstr ""
18643
18644 # type: =item
18645 #: ../fish/guestfish.pod:1028
18646 msgid "test1.img"
18647 msgstr ""
18648
18649 # type: =item
18650 #: ../fish/guestfish.pod:1030
18651 msgid "test2.img (etc)"
18652 msgstr ""
18653
18654 # type: textblock
18655 #: ../fish/guestfish.pod:1032
18656 msgid ""
18657 "When using the C<-N> or C<--new> option, the prepared disk or filesystem "
18658 "will be created in the file C<test1.img> in the current directory.  The "
18659 "second use of C<-N> will use C<test2.img> and so on.  Any existing file with "
18660 "the same name will be overwritten."
18661 msgstr ""
18662
18663 # type: textblock
18664 #: ../fish/guestfish.pod:1041
18665 msgid ""
18666 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-cat(1)>, L<virt-df(1)>, "
18667 "L<virt-edit(1)>, L<virt-filesystems(1)>, L<virt-inspector(1)>, "
18668 "L<virt-list-filesystems(1)>, L<virt-list-partitions(1)>, L<virt-ls(1)>, "
18669 "L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-resize(1)>, L<virt-tar(1)>, "
18670 "L<virt-win-reg(1)>, L<hexedit(1)>."
18671 msgstr ""
18672
18673 # type: textblock
18674 #: ../fish/guestfish.pod:1067 ../test-tool/libguestfs-test-tool.pod:124 ../fuse/guestmount.pod:253 ../tools/virt-edit.pl:370 ../tools/virt-win-reg.pl:518 ../tools/virt-resize.pl:1514 ../tools/virt-list-filesystems.pl:210 ../tools/virt-tar.pl:300 ../tools/virt-rescue.pl:285 ../tools/virt-make-fs.pl:567 ../tools/virt-list-partitions.pl:277
18675 msgid ""
18676 "This program is free software; you can redistribute it and/or modify it "
18677 "under the terms of the GNU General Public License as published by the Free "
18678 "Software Foundation; either version 2 of the License, or (at your option) "
18679 "any later version."
18680 msgstr ""
18681
18682 # type: textblock
18683 #: ../fish/guestfish.pod:1072 ../test-tool/libguestfs-test-tool.pod:129 ../fuse/guestmount.pod:258 ../tools/virt-edit.pl:375 ../tools/virt-win-reg.pl:523 ../tools/virt-resize.pl:1519 ../tools/virt-list-filesystems.pl:215 ../tools/virt-tar.pl:305 ../tools/virt-rescue.pl:290 ../tools/virt-make-fs.pl:572 ../tools/virt-list-partitions.pl:282
18684 msgid ""
18685 "This program is distributed in the hope that it will be useful, but WITHOUT "
18686 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
18687 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
18688 "more details."
18689 msgstr ""
18690
18691 # type: textblock
18692 #: ../fish/guestfish.pod:1077 ../test-tool/libguestfs-test-tool.pod:134 ../fuse/guestmount.pod:263 ../tools/virt-edit.pl:380 ../tools/virt-win-reg.pl:528 ../tools/virt-resize.pl:1524 ../tools/virt-list-filesystems.pl:220 ../tools/virt-tar.pl:310 ../tools/virt-rescue.pl:295 ../tools/virt-make-fs.pl:577 ../tools/virt-list-partitions.pl:287
18693 msgid ""
18694 "You should have received a copy of the GNU General Public License along with "
18695 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
18696 "Ave, Cambridge, MA 02139, USA."
18697 msgstr ""
18698
18699 # type: =head2
18700 #: ../fish/guestfish-actions.pod:1
18701 msgid "add-cdrom"
18702 msgstr ""
18703
18704 # type: verbatim
18705 #: ../fish/guestfish-actions.pod:3
18706 #, no-wrap
18707 msgid ""
18708 " add-cdrom filename\n"
18709 "\n"
18710 msgstr ""
18711
18712 # type: textblock
18713 #: ../fish/guestfish-actions.pod:15
18714 msgid ""
18715 "This call checks for the existence of C<filename>.  This stops you from "
18716 "specifying other types of drive which are supported by qemu such as C<nbd:> "
18717 "and C<http:> URLs.  To specify those, use the general L</config> call "
18718 "instead."
18719 msgstr ""
18720
18721 # type: textblock
18722 #: ../fish/guestfish-actions.pod:22
18723 msgid ""
18724 "If you just want to add an ISO file (often you use this as an efficient way "
18725 "to transfer large files into the guest), then you should probably use "
18726 "L</add-drive-ro> instead."
18727 msgstr ""
18728
18729 # type: =head2
18730 #: ../fish/guestfish-actions.pod:35
18731 msgid "add-domain"
18732 msgstr ""
18733
18734 # type: =head2
18735 #: ../fish/guestfish-actions.pod:37
18736 msgid "domain"
18737 msgstr ""
18738
18739 # type: verbatim
18740 #: ../fish/guestfish-actions.pod:39
18741 #, no-wrap
18742 msgid ""
18743 " add-domain dom [libvirturi:..] [readonly:..] [iface:..]\n"
18744 "\n"
18745 msgstr ""
18746
18747 # type: textblock
18748 #: ../fish/guestfish-actions.pod:41
18749 msgid ""
18750 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
18751 "It works by connecting to libvirt, requesting the domain and domain XML from "
18752 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
18753 msgstr ""
18754
18755 # type: textblock
18756 #: ../fish/guestfish-actions.pod:58
18757 msgid ""
18758 "The optional C<libvirturi> parameter sets the libvirt URI (see "
18759 "L<http://libvirt.org/uri.html>).  If this is not set then we connect to the "
18760 "default libvirt URI (or one set through an environment variable, see the "
18761 "libvirt documentation for full details).  If you are using the C API "
18762 "directly then it is more flexible to create the libvirt connection object "
18763 "yourself, get the domain object, and call L</add-libvirt-dom>."
18764 msgstr ""
18765
18766 # type: textblock
18767 #: ../fish/guestfish-actions.pod:66
18768 msgid ""
18769 "The other optional parameters are passed directly through to "
18770 "L</add-drive-opts>."
18771 msgstr ""
18772
18773 # type: textblock
18774 #: ../fish/guestfish-actions.pod:69 ../fish/guestfish-actions.pod:133
18775 msgid ""
18776 "This command has one or more optional arguments.  See L</OPTIONAL "
18777 "ARGUMENTS>."
18778 msgstr ""
18779
18780 # type: =head2
18781 #: ../fish/guestfish-actions.pod:71
18782 msgid "add-drive"
18783 msgstr ""
18784
18785 # type: verbatim
18786 #: ../fish/guestfish-actions.pod:73
18787 #, no-wrap
18788 msgid ""
18789 " add-drive filename\n"
18790 "\n"
18791 msgstr ""
18792
18793 # type: textblock
18794 #: ../fish/guestfish-actions.pod:75
18795 msgid ""
18796 "This function is the equivalent of calling L</add-drive-opts> with no "
18797 "optional parameters, so the disk is added writable, with the format being "
18798 "detected automatically."
18799 msgstr ""
18800
18801 # type: textblock
18802 #: ../fish/guestfish-actions.pod:79
18803 msgid ""
18804 "Automatic detection of the format opens you up to a potential security hole "
18805 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
18806 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
18807 "you should think about replacing calls to this function with calls to "
18808 "L</add-drive-opts>, and specifying the format."
18809 msgstr ""
18810
18811 # type: =head2
18812 #: ../fish/guestfish-actions.pod:86
18813 msgid "add-drive-opts"
18814 msgstr ""
18815
18816 # type: =head2
18817 #: ../fish/guestfish-actions.pod:88
18818 msgid "add"
18819 msgstr ""
18820
18821 # type: verbatim
18822 #: ../fish/guestfish-actions.pod:90
18823 #, no-wrap
18824 msgid ""
18825 " add-drive-opts filename [readonly:..] [format:..] [iface:..]\n"
18826 "\n"
18827 msgstr ""
18828
18829 # type: textblock
18830 #: ../fish/guestfish-actions.pod:117
18831 msgid ""
18832 "This forces the image format.  If you omit this (or use L</add-drive> or "
18833 "L</add-drive-ro>) then the format is automatically detected.  Possible "
18834 "formats include C<raw> and C<qcow2>."
18835 msgstr ""
18836
18837 # type: textblock
18838 #: ../fish/guestfish-actions.pod:128
18839 msgid ""
18840 "This rarely-used option lets you emulate the behaviour of the deprecated "
18841 "L</add-drive-with-if> call (q.v.)"
18842 msgstr ""
18843
18844 # type: =head2
18845 #: ../fish/guestfish-actions.pod:135
18846 msgid "add-drive-ro"
18847 msgstr ""
18848
18849 # type: =head2
18850 #: ../fish/guestfish-actions.pod:137
18851 msgid "add-ro"
18852 msgstr ""
18853
18854 # type: verbatim
18855 #: ../fish/guestfish-actions.pod:139
18856 #, no-wrap
18857 msgid ""
18858 " add-drive-ro filename\n"
18859 "\n"
18860 msgstr ""
18861
18862 # type: textblock
18863 #: ../fish/guestfish-actions.pod:141
18864 msgid ""
18865 "This function is the equivalent of calling L</add-drive-opts> with the "
18866 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
18867 "is added read-only, with the format being detected automatically."
18868 msgstr ""
18869
18870 # type: =head2
18871 #: ../fish/guestfish-actions.pod:146
18872 msgid "add-drive-ro-with-if"
18873 msgstr ""
18874
18875 # type: verbatim
18876 #: ../fish/guestfish-actions.pod:148
18877 #, no-wrap
18878 msgid ""
18879 " add-drive-ro-with-if filename iface\n"
18880 "\n"
18881 msgstr ""
18882
18883 # type: textblock
18884 #: ../fish/guestfish-actions.pod:150
18885 msgid ""
18886 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
18887 "interface emulation to use at run time."
18888 msgstr ""
18889
18890 # type: =head2
18891 #: ../fish/guestfish-actions.pod:160
18892 msgid "add-drive-with-if"
18893 msgstr ""
18894
18895 # type: verbatim
18896 #: ../fish/guestfish-actions.pod:162
18897 #, no-wrap
18898 msgid ""
18899 " add-drive-with-if filename iface\n"
18900 "\n"
18901 msgstr ""
18902
18903 # type: textblock
18904 #: ../fish/guestfish-actions.pod:164
18905 msgid ""
18906 "This is the same as L</add-drive> but it allows you to specify the QEMU "
18907 "interface emulation to use at run time."
18908 msgstr ""
18909
18910 # type: =head2
18911 #: ../fish/guestfish-actions.pod:174
18912 msgid "aug-clear"
18913 msgstr ""
18914
18915 # type: verbatim
18916 #: ../fish/guestfish-actions.pod:176
18917 #, no-wrap
18918 msgid ""
18919 " aug-clear augpath\n"
18920 "\n"
18921 msgstr ""
18922
18923 # type: =head2
18924 #: ../fish/guestfish-actions.pod:181
18925 msgid "aug-close"
18926 msgstr ""
18927
18928 # type: verbatim
18929 #: ../fish/guestfish-actions.pod:183
18930 #, no-wrap
18931 msgid ""
18932 " aug-close\n"
18933 "\n"
18934 msgstr ""
18935
18936 # type: textblock
18937 #: ../fish/guestfish-actions.pod:185
18938 msgid ""
18939 "Close the current Augeas handle and free up any resources used by it.  After "
18940 "calling this, you have to call L</aug-init> again before you can use any "
18941 "other Augeas functions."
18942 msgstr ""
18943
18944 # type: =head2
18945 #: ../fish/guestfish-actions.pod:190
18946 msgid "aug-defnode"
18947 msgstr ""
18948
18949 # type: verbatim
18950 #: ../fish/guestfish-actions.pod:192
18951 #, no-wrap
18952 msgid ""
18953 " aug-defnode name expr val\n"
18954 "\n"
18955 msgstr ""
18956
18957 # type: textblock
18958 #: ../fish/guestfish-actions.pod:197
18959 msgid ""
18960 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
18961 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
18962 "containing that single node."
18963 msgstr ""
18964
18965 # type: =head2
18966 #: ../fish/guestfish-actions.pod:205
18967 msgid "aug-defvar"
18968 msgstr ""
18969
18970 # type: verbatim
18971 #: ../fish/guestfish-actions.pod:207
18972 #, no-wrap
18973 msgid ""
18974 " aug-defvar name expr\n"
18975 "\n"
18976 msgstr ""
18977
18978 # type: =head2
18979 #: ../fish/guestfish-actions.pod:216
18980 msgid "aug-get"
18981 msgstr ""
18982
18983 # type: verbatim
18984 #: ../fish/guestfish-actions.pod:218
18985 #, no-wrap
18986 msgid ""
18987 " aug-get augpath\n"
18988 "\n"
18989 msgstr ""
18990
18991 # type: =head2
18992 #: ../fish/guestfish-actions.pod:223
18993 msgid "aug-init"
18994 msgstr ""
18995
18996 # type: verbatim
18997 #: ../fish/guestfish-actions.pod:225
18998 #, no-wrap
18999 msgid ""
19000 " aug-init root flags\n"
19001 "\n"
19002 msgstr ""
19003
19004 # type: textblock
19005 #: ../fish/guestfish-actions.pod:231
19006 msgid "You must call this before using any other L</aug-*> commands."
19007 msgstr ""
19008
19009 # type: textblock
19010 #: ../fish/guestfish-actions.pod:266
19011 msgid "Do not load the tree in L</aug-init>."
19012 msgstr ""
19013
19014 # type: textblock
19015 #: ../fish/guestfish-actions.pod:270
19016 msgid "To close the handle, you can call L</aug-close>."
19017 msgstr ""
19018
19019 # type: =head2
19020 #: ../fish/guestfish-actions.pod:274
19021 msgid "aug-insert"
19022 msgstr ""
19023
19024 # type: verbatim
19025 #: ../fish/guestfish-actions.pod:276
19026 #, no-wrap
19027 msgid ""
19028 " aug-insert augpath label true|false\n"
19029 "\n"
19030 msgstr ""
19031
19032 # type: =head2
19033 #: ../fish/guestfish-actions.pod:286
19034 msgid "aug-load"
19035 msgstr ""
19036
19037 # type: verbatim
19038 #: ../fish/guestfish-actions.pod:288
19039 #, no-wrap
19040 msgid ""
19041 " aug-load\n"
19042 "\n"
19043 msgstr ""
19044
19045 # type: =head2
19046 #: ../fish/guestfish-actions.pod:295
19047 msgid "aug-ls"
19048 msgstr ""
19049
19050 # type: verbatim
19051 #: ../fish/guestfish-actions.pod:297
19052 #, no-wrap
19053 msgid ""
19054 " aug-ls augpath\n"
19055 "\n"
19056 msgstr ""
19057
19058 # type: textblock
19059 #: ../fish/guestfish-actions.pod:299
19060 msgid ""
19061 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
19062 "resulting nodes into alphabetical order."
19063 msgstr ""
19064
19065 # type: =head2
19066 #: ../fish/guestfish-actions.pod:302
19067 msgid "aug-match"
19068 msgstr ""
19069
19070 # type: verbatim
19071 #: ../fish/guestfish-actions.pod:304
19072 #, no-wrap
19073 msgid ""
19074 " aug-match augpath\n"
19075 "\n"
19076 msgstr ""
19077
19078 # type: =head2
19079 #: ../fish/guestfish-actions.pod:310
19080 msgid "aug-mv"
19081 msgstr ""
19082
19083 # type: verbatim
19084 #: ../fish/guestfish-actions.pod:312
19085 #, no-wrap
19086 msgid ""
19087 " aug-mv src dest\n"
19088 "\n"
19089 msgstr ""
19090
19091 # type: =head2
19092 #: ../fish/guestfish-actions.pod:317
19093 msgid "aug-rm"
19094 msgstr ""
19095
19096 # type: verbatim
19097 #: ../fish/guestfish-actions.pod:319
19098 #, no-wrap
19099 msgid ""
19100 " aug-rm augpath\n"
19101 "\n"
19102 msgstr ""
19103
19104 # type: =head2
19105 #: ../fish/guestfish-actions.pod:325
19106 msgid "aug-save"
19107 msgstr ""
19108
19109 # type: verbatim
19110 #: ../fish/guestfish-actions.pod:327
19111 #, no-wrap
19112 msgid ""
19113 " aug-save\n"
19114 "\n"
19115 msgstr ""
19116
19117 # type: textblock
19118 #: ../fish/guestfish-actions.pod:331
19119 msgid ""
19120 "The flags which were passed to L</aug-init> affect exactly how files are "
19121 "saved."
19122 msgstr ""
19123
19124 # type: =head2
19125 #: ../fish/guestfish-actions.pod:334
19126 msgid "aug-set"
19127 msgstr ""
19128
19129 # type: verbatim
19130 #: ../fish/guestfish-actions.pod:336
19131 #, no-wrap
19132 msgid ""
19133 " aug-set augpath val\n"
19134 "\n"
19135 msgstr ""
19136
19137 # type: textblock
19138 #: ../fish/guestfish-actions.pod:340
19139 msgid ""
19140 "In the Augeas API, it is possible to clear a node by setting the value to "
19141 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
19142 "this call.  Instead you must use the L</aug-clear> call."
19143 msgstr ""
19144
19145 # type: =head2
19146 #: ../fish/guestfish-actions.pod:345
19147 msgid "available"
19148 msgstr ""
19149
19150 # type: verbatim
19151 #: ../fish/guestfish-actions.pod:347
19152 #, no-wrap
19153 msgid ""
19154 " available 'groups ...'\n"
19155 "\n"
19156 msgstr ""
19157
19158 # type: textblock
19159 #: ../fish/guestfish-actions.pod:353
19160 msgid ""
19161 "The libguestfs groups, and the functions that those groups correspond to, "
19162 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
19163 "runtime by calling L</available-all-groups>."
19164 msgstr ""
19165
19166 # type: textblock
19167 #: ../fish/guestfish-actions.pod:377
19168 msgid "You must call L</launch> before calling this function."
19169 msgstr ""
19170
19171 # type: textblock
19172 #: ../fish/guestfish-actions.pod:399
19173 msgid ""
19174 "This call was added in version C<1.0.80>.  In previous versions of "
19175 "libguestfs all you could do would be to speculatively execute a command to "
19176 "find out if the daemon implemented it.  See also L</version>."
19177 msgstr ""
19178
19179 # type: =head2
19180 #: ../fish/guestfish-actions.pod:406
19181 msgid "available-all-groups"
19182 msgstr ""
19183
19184 # type: verbatim
19185 #: ../fish/guestfish-actions.pod:408
19186 #, no-wrap
19187 msgid ""
19188 " available-all-groups\n"
19189 "\n"
19190 msgstr ""
19191
19192 # type: textblock
19193 #: ../fish/guestfish-actions.pod:410
19194 msgid ""
19195 "This command returns a list of all optional groups that this daemon knows "
19196 "about.  Note this returns both supported and unsupported groups.  To find "
19197 "out which ones the daemon can actually support you have to call "
19198 "L</available> on each member of the returned list."
19199 msgstr ""
19200
19201 # type: textblock
19202 #: ../fish/guestfish-actions.pod:416
19203 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
19204 msgstr ""
19205
19206 # type: =head2
19207 #: ../fish/guestfish-actions.pod:418
19208 msgid "base64-in"
19209 msgstr ""
19210
19211 # type: verbatim
19212 #: ../fish/guestfish-actions.pod:420
19213 #, no-wrap
19214 msgid ""
19215 " base64-in (base64file|-) filename\n"
19216 "\n"
19217 msgstr ""
19218
19219 # type: textblock
19220 #: ../fish/guestfish-actions.pod:425 ../fish/guestfish-actions.pod:434 ../fish/guestfish-actions.pod:658 ../fish/guestfish-actions.pod:827 ../fish/guestfish-actions.pod:846 ../fish/guestfish-actions.pod:1223 ../fish/guestfish-actions.pod:4128 ../fish/guestfish-actions.pod:4140 ../fish/guestfish-actions.pod:4151 ../fish/guestfish-actions.pod:4162 ../fish/guestfish-actions.pod:4214 ../fish/guestfish-actions.pod:4223 ../fish/guestfish-actions.pod:4277 ../fish/guestfish-actions.pod:4300
19221 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
19222 msgstr ""
19223
19224 # type: =head2
19225 #: ../fish/guestfish-actions.pod:427
19226 msgid "base64-out"
19227 msgstr ""
19228
19229 # type: verbatim
19230 #: ../fish/guestfish-actions.pod:429
19231 #, no-wrap
19232 msgid ""
19233 " base64-out filename (base64file|-)\n"
19234 "\n"
19235 msgstr ""
19236
19237 # type: =head2
19238 #: ../fish/guestfish-actions.pod:436
19239 msgid "blockdev-flushbufs"
19240 msgstr ""
19241
19242 # type: verbatim
19243 #: ../fish/guestfish-actions.pod:438
19244 #, no-wrap
19245 msgid ""
19246 " blockdev-flushbufs device\n"
19247 "\n"
19248 msgstr ""
19249
19250 # type: =head2
19251 #: ../fish/guestfish-actions.pod:445
19252 msgid "blockdev-getbsz"
19253 msgstr ""
19254
19255 # type: verbatim
19256 #: ../fish/guestfish-actions.pod:447
19257 #, no-wrap
19258 msgid ""
19259 " blockdev-getbsz device\n"
19260 "\n"
19261 msgstr ""
19262
19263 # type: =head2
19264 #: ../fish/guestfish-actions.pod:456
19265 msgid "blockdev-getro"
19266 msgstr ""
19267
19268 # type: verbatim
19269 #: ../fish/guestfish-actions.pod:458
19270 #, no-wrap
19271 msgid ""
19272 " blockdev-getro device\n"
19273 "\n"
19274 msgstr ""
19275
19276 # type: =head2
19277 #: ../fish/guestfish-actions.pod:465
19278 msgid "blockdev-getsize64"
19279 msgstr ""
19280
19281 # type: verbatim
19282 #: ../fish/guestfish-actions.pod:467
19283 #, no-wrap
19284 msgid ""
19285 " blockdev-getsize64 device\n"
19286 "\n"
19287 msgstr ""
19288
19289 # type: textblock
19290 #: ../fish/guestfish-actions.pod:471
19291 msgid "See also L</blockdev-getsz>."
19292 msgstr ""
19293
19294 # type: =head2
19295 #: ../fish/guestfish-actions.pod:475
19296 msgid "blockdev-getss"
19297 msgstr ""
19298
19299 # type: verbatim
19300 #: ../fish/guestfish-actions.pod:477
19301 #, no-wrap
19302 msgid ""
19303 " blockdev-getss device\n"
19304 "\n"
19305 msgstr ""
19306
19307 # type: textblock
19308 #: ../fish/guestfish-actions.pod:482
19309 msgid "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
19310 msgstr ""
19311
19312 # type: =head2
19313 #: ../fish/guestfish-actions.pod:487
19314 msgid "blockdev-getsz"
19315 msgstr ""
19316
19317 # type: verbatim
19318 #: ../fish/guestfish-actions.pod:489
19319 #, no-wrap
19320 msgid ""
19321 " blockdev-getsz device\n"
19322 "\n"
19323 msgstr ""
19324
19325 # type: textblock
19326 #: ../fish/guestfish-actions.pod:494
19327 msgid ""
19328 "See also L</blockdev-getss> for the real sector size of the device, and "
19329 "L</blockdev-getsize64> for the more useful I<size in bytes>."
19330 msgstr ""
19331
19332 # type: =head2
19333 #: ../fish/guestfish-actions.pod:500
19334 msgid "blockdev-rereadpt"
19335 msgstr ""
19336
19337 # type: verbatim
19338 #: ../fish/guestfish-actions.pod:502
19339 #, no-wrap
19340 msgid ""
19341 " blockdev-rereadpt device\n"
19342 "\n"
19343 msgstr ""
19344
19345 # type: =head2
19346 #: ../fish/guestfish-actions.pod:508
19347 msgid "blockdev-setbsz"
19348 msgstr ""
19349
19350 # type: verbatim
19351 #: ../fish/guestfish-actions.pod:510
19352 #, no-wrap
19353 msgid ""
19354 " blockdev-setbsz device blocksize\n"
19355 "\n"
19356 msgstr ""
19357
19358 # type: =head2
19359 #: ../fish/guestfish-actions.pod:519
19360 msgid "blockdev-setro"
19361 msgstr ""
19362
19363 # type: verbatim
19364 #: ../fish/guestfish-actions.pod:521
19365 #, no-wrap
19366 msgid ""
19367 " blockdev-setro device\n"
19368 "\n"
19369 msgstr ""
19370
19371 # type: =head2
19372 #: ../fish/guestfish-actions.pod:527
19373 msgid "blockdev-setrw"
19374 msgstr ""
19375
19376 # type: verbatim
19377 #: ../fish/guestfish-actions.pod:529
19378 #, no-wrap
19379 msgid ""
19380 " blockdev-setrw device\n"
19381 "\n"
19382 msgstr ""
19383
19384 # type: =head2
19385 #: ../fish/guestfish-actions.pod:535
19386 msgid "case-sensitive-path"
19387 msgstr ""
19388
19389 # type: verbatim
19390 #: ../fish/guestfish-actions.pod:537
19391 #, no-wrap
19392 msgid ""
19393 " case-sensitive-path path\n"
19394 "\n"
19395 msgstr ""
19396
19397 # type: textblock
19398 #: ../fish/guestfish-actions.pod:561
19399 msgid ""
19400 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return "
19401 "C<\"/WINDOWS/system32\"> (the exact return value would depend on details of "
19402 "how the directories were originally created under Windows)."
19403 msgstr ""
19404
19405 # type: textblock
19406 #: ../fish/guestfish-actions.pod:569
19407 msgid "See also L</realpath>."
19408 msgstr ""
19409
19410 # type: =head2
19411 #: ../fish/guestfish-actions.pod:571
19412 msgid "cat"
19413 msgstr ""
19414
19415 # type: verbatim
19416 #: ../fish/guestfish-actions.pod:573
19417 #, no-wrap
19418 msgid ""
19419 " cat path\n"
19420 "\n"
19421 msgstr ""
19422
19423 # type: textblock
19424 #: ../fish/guestfish-actions.pod:577
19425 msgid ""
19426 "Note that this function cannot correctly handle binary files (specifically, "
19427 "files containing C<\\0> character which is treated as end of string).  For "
19428 "those you need to use the L</read-file> or L</download> functions which have "
19429 "a more complex interface."
19430 msgstr ""
19431
19432 # type: =head2
19433 #: ../fish/guestfish-actions.pod:585
19434 msgid "checksum"
19435 msgstr ""
19436
19437 # type: verbatim
19438 #: ../fish/guestfish-actions.pod:587
19439 #, no-wrap
19440 msgid ""
19441 " checksum csumtype path\n"
19442 "\n"
19443 msgstr ""
19444
19445 # type: textblock
19446 #: ../fish/guestfish-actions.pod:630
19447 msgid "To get the checksum for a device, use L</checksum-device>."
19448 msgstr ""
19449
19450 # type: textblock
19451 #: ../fish/guestfish-actions.pod:632
19452 msgid "To get the checksums for many files, use L</checksums-out>."
19453 msgstr ""
19454
19455 # type: =head2
19456 #: ../fish/guestfish-actions.pod:634
19457 msgid "checksum-device"
19458 msgstr ""
19459
19460 # type: verbatim
19461 #: ../fish/guestfish-actions.pod:636
19462 #, no-wrap
19463 msgid ""
19464 " checksum-device csumtype device\n"
19465 "\n"
19466 msgstr ""
19467
19468 # type: textblock
19469 #: ../fish/guestfish-actions.pod:638
19470 msgid ""
19471 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
19472 "device named C<device>.  For the types of checksums supported see the "
19473 "L</checksum> command."
19474 msgstr ""
19475
19476 # type: =head2
19477 #: ../fish/guestfish-actions.pod:642
19478 msgid "checksums-out"
19479 msgstr ""
19480
19481 # type: verbatim
19482 #: ../fish/guestfish-actions.pod:644
19483 #, no-wrap
19484 msgid ""
19485 " checksums-out csumtype directory (sumsfile|-)\n"
19486 "\n"
19487 msgstr ""
19488
19489 # type: =head2
19490 #: ../fish/guestfish-actions.pod:660
19491 msgid "chmod"
19492 msgstr ""
19493
19494 # type: verbatim
19495 #: ../fish/guestfish-actions.pod:662
19496 #, no-wrap
19497 msgid ""
19498 " chmod mode path\n"
19499 "\n"
19500 msgstr ""
19501
19502 # type: =head2
19503 #: ../fish/guestfish-actions.pod:673
19504 msgid "chown"
19505 msgstr ""
19506
19507 # type: verbatim
19508 #: ../fish/guestfish-actions.pod:675
19509 #, no-wrap
19510 msgid ""
19511 " chown owner group path\n"
19512 "\n"
19513 msgstr ""
19514
19515 # type: =head2
19516 #: ../fish/guestfish-actions.pod:683
19517 msgid "command"
19518 msgstr ""
19519
19520 # type: verbatim
19521 #: ../fish/guestfish-actions.pod:685
19522 #, no-wrap
19523 msgid ""
19524 " command 'arguments ...'\n"
19525 "\n"
19526 msgstr ""
19527
19528 # type: textblock
19529 #: ../fish/guestfish-actions.pod:692
19530 msgid ""
19531 "The single parameter is an argv-style list of arguments.  The first element "
19532 "is the name of the program to run.  Subsequent elements are parameters.  The "
19533 "list must be non-empty (ie. must contain a program name).  Note that the "
19534 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
19535 msgstr ""
19536
19537 # type: =head2
19538 #: ../fish/guestfish-actions.pod:720
19539 msgid "command-lines"
19540 msgstr ""
19541
19542 # type: verbatim
19543 #: ../fish/guestfish-actions.pod:722
19544 #, no-wrap
19545 msgid ""
19546 " command-lines 'arguments ...'\n"
19547 "\n"
19548 msgstr ""
19549
19550 # type: textblock
19551 #: ../fish/guestfish-actions.pod:724
19552 msgid "This is the same as L</command>, but splits the result into a list of lines."
19553 msgstr ""
19554
19555 # type: textblock
19556 #: ../fish/guestfish-actions.pod:727
19557 msgid "See also: L</sh-lines>"
19558 msgstr ""
19559
19560 # type: =head2
19561 #: ../fish/guestfish-actions.pod:732
19562 msgid "config"
19563 msgstr ""
19564
19565 # type: verbatim
19566 #: ../fish/guestfish-actions.pod:734
19567 #, no-wrap
19568 msgid ""
19569 " config qemuparam qemuvalue\n"
19570 "\n"
19571 msgstr ""
19572
19573 # type: =head2
19574 #: ../fish/guestfish-actions.pod:745
19575 msgid "copy-size"
19576 msgstr ""
19577
19578 # type: verbatim
19579 #: ../fish/guestfish-actions.pod:747
19580 #, no-wrap
19581 msgid ""
19582 " copy-size src dest size\n"
19583 "\n"
19584 msgstr ""
19585
19586 # type: =head2
19587 #: ../fish/guestfish-actions.pod:755
19588 msgid "cp"
19589 msgstr ""
19590
19591 # type: verbatim
19592 #: ../fish/guestfish-actions.pod:757
19593 #, no-wrap
19594 msgid ""
19595 " cp src dest\n"
19596 "\n"
19597 msgstr ""
19598
19599 # type: =head2
19600 #: ../fish/guestfish-actions.pod:762
19601 msgid "cp-a"
19602 msgstr ""
19603
19604 # type: verbatim
19605 #: ../fish/guestfish-actions.pod:764
19606 #, no-wrap
19607 msgid ""
19608 " cp-a src dest\n"
19609 "\n"
19610 msgstr ""
19611
19612 # type: =head2
19613 #: ../fish/guestfish-actions.pod:769
19614 msgid "dd"
19615 msgstr ""
19616
19617 # type: verbatim
19618 #: ../fish/guestfish-actions.pod:771
19619 #, no-wrap
19620 msgid ""
19621 " dd src dest\n"
19622 "\n"
19623 msgstr ""
19624
19625 # type: textblock
19626 #: ../fish/guestfish-actions.pod:778
19627 msgid ""
19628 "If the destination is a device, it must be as large or larger than the "
19629 "source file or device, otherwise the copy will fail.  This command cannot do "
19630 "partial copies (see L</copy-size>)."
19631 msgstr ""
19632
19633 # type: =head2
19634 #: ../fish/guestfish-actions.pod:782
19635 msgid "df"
19636 msgstr ""
19637
19638 # type: verbatim
19639 #: ../fish/guestfish-actions.pod:784
19640 #, no-wrap
19641 msgid ""
19642 " df\n"
19643 "\n"
19644 msgstr ""
19645
19646 # type: =head2
19647 #: ../fish/guestfish-actions.pod:792
19648 msgid "df-h"
19649 msgstr ""
19650
19651 # type: verbatim
19652 #: ../fish/guestfish-actions.pod:794
19653 #, no-wrap
19654 msgid ""
19655 " df-h\n"
19656 "\n"
19657 msgstr ""
19658
19659 # type: =head2
19660 #: ../fish/guestfish-actions.pod:803
19661 msgid "dmesg"
19662 msgstr ""
19663
19664 # type: verbatim
19665 #: ../fish/guestfish-actions.pod:805
19666 #, no-wrap
19667 msgid ""
19668 " dmesg\n"
19669 "\n"
19670 msgstr ""
19671
19672 # type: textblock
19673 #: ../fish/guestfish-actions.pod:811
19674 msgid ""
19675 "Another way to get the same information is to enable verbose messages with "
19676 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
19677 "before running the program."
19678 msgstr ""
19679
19680 # type: =head2
19681 #: ../fish/guestfish-actions.pod:816
19682 msgid "download"
19683 msgstr ""
19684
19685 # type: verbatim
19686 #: ../fish/guestfish-actions.pod:818
19687 #, no-wrap
19688 msgid ""
19689 " download remotefilename (filename|-)\n"
19690 "\n"
19691 msgstr ""
19692
19693 # type: textblock
19694 #: ../fish/guestfish-actions.pod:825
19695 msgid "See also L</upload>, L</cat>."
19696 msgstr ""
19697
19698 # type: =head2
19699 #: ../fish/guestfish-actions.pod:829
19700 msgid "download-offset"
19701 msgstr ""
19702
19703 # type: verbatim
19704 #: ../fish/guestfish-actions.pod:831
19705 #, no-wrap
19706 msgid ""
19707 " download-offset remotefilename (filename|-) offset size\n"
19708 "\n"
19709 msgstr ""
19710
19711 # type: textblock
19712 #: ../fish/guestfish-actions.pod:839
19713 msgid ""
19714 "Note that there is no limit on the amount of data that can be downloaded "
19715 "with this call, unlike with L</pread>, and this call always reads the full "
19716 "amount unless an error occurs."
19717 msgstr ""
19718
19719 # type: textblock
19720 #: ../fish/guestfish-actions.pod:844
19721 msgid "See also L</download>, L</pread>."
19722 msgstr ""
19723
19724 # type: =head2
19725 #: ../fish/guestfish-actions.pod:848
19726 msgid "drop-caches"
19727 msgstr ""
19728
19729 # type: verbatim
19730 #: ../fish/guestfish-actions.pod:850
19731 #, no-wrap
19732 msgid ""
19733 " drop-caches whattodrop\n"
19734 "\n"
19735 msgstr ""
19736
19737 # type: =head2
19738 #: ../fish/guestfish-actions.pod:862
19739 msgid "du"
19740 msgstr ""
19741
19742 # type: verbatim
19743 #: ../fish/guestfish-actions.pod:864
19744 #, no-wrap
19745 msgid ""
19746 " du path\n"
19747 "\n"
19748 msgstr ""
19749
19750 # type: =head2
19751 #: ../fish/guestfish-actions.pod:876
19752 msgid "e2fsck-f"
19753 msgstr ""
19754
19755 # type: verbatim
19756 #: ../fish/guestfish-actions.pod:878
19757 #, no-wrap
19758 msgid ""
19759 " e2fsck-f device\n"
19760 "\n"
19761 msgstr ""
19762
19763 # type: textblock
19764 #: ../fish/guestfish-actions.pod:884
19765 msgid ""
19766 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
19767 "should use L</fsck>."
19768 msgstr ""
19769
19770 # type: =head2
19771 #: ../fish/guestfish-actions.pod:887
19772 msgid "echo-daemon"
19773 msgstr ""
19774
19775 # type: verbatim
19776 #: ../fish/guestfish-actions.pod:889
19777 #, no-wrap
19778 msgid ""
19779 " echo-daemon 'words ...'\n"
19780 "\n"
19781 msgstr ""
19782
19783 # type: textblock
19784 #: ../fish/guestfish-actions.pod:896
19785 msgid "See also L</ping-daemon>."
19786 msgstr ""
19787
19788 # type: =head2
19789 #: ../fish/guestfish-actions.pod:898
19790 msgid "egrep"
19791 msgstr ""
19792
19793 # type: verbatim
19794 #: ../fish/guestfish-actions.pod:900
19795 #, no-wrap
19796 msgid ""
19797 " egrep regex path\n"
19798 "\n"
19799 msgstr ""
19800
19801 # type: =head2
19802 #: ../fish/guestfish-actions.pod:908
19803 msgid "egrepi"
19804 msgstr ""
19805
19806 # type: verbatim
19807 #: ../fish/guestfish-actions.pod:910
19808 #, no-wrap
19809 msgid ""
19810 " egrepi regex path\n"
19811 "\n"
19812 msgstr ""
19813
19814 # type: =head2
19815 #: ../fish/guestfish-actions.pod:918
19816 msgid "equal"
19817 msgstr ""
19818
19819 # type: verbatim
19820 #: ../fish/guestfish-actions.pod:920
19821 #, no-wrap
19822 msgid ""
19823 " equal file1 file2\n"
19824 "\n"
19825 msgstr ""
19826
19827 # type: =head2
19828 #: ../fish/guestfish-actions.pod:927
19829 msgid "exists"
19830 msgstr ""
19831
19832 # type: verbatim
19833 #: ../fish/guestfish-actions.pod:929
19834 #, no-wrap
19835 msgid ""
19836 " exists path\n"
19837 "\n"
19838 msgstr ""
19839
19840 # type: textblock
19841 #: ../fish/guestfish-actions.pod:934
19842 msgid "See also L</is-file>, L</is-dir>, L</stat>."
19843 msgstr ""
19844
19845 # type: =head2
19846 #: ../fish/guestfish-actions.pod:936
19847 msgid "fallocate"
19848 msgstr ""
19849
19850 # type: verbatim
19851 #: ../fish/guestfish-actions.pod:938
19852 #, no-wrap
19853 msgid ""
19854 " fallocate path len\n"
19855 "\n"
19856 msgstr ""
19857
19858 # type: =head2
19859 #: ../fish/guestfish-actions.pod:955
19860 msgid "fallocate64"
19861 msgstr ""
19862
19863 # type: verbatim
19864 #: ../fish/guestfish-actions.pod:957
19865 #, no-wrap
19866 msgid ""
19867 " fallocate64 path len\n"
19868 "\n"
19869 msgstr ""
19870
19871 # type: textblock
19872 #: ../fish/guestfish-actions.pod:963
19873 msgid ""
19874 "Note that this call allocates disk blocks for the file.  To create a sparse "
19875 "file use L</truncate-size> instead."
19876 msgstr ""
19877
19878 # type: textblock
19879 #: ../fish/guestfish-actions.pod:966
19880 msgid ""
19881 "The deprecated call L</fallocate> does the same, but owing to an oversight "
19882 "it only allowed 30 bit lengths to be specified, effectively limiting the "
19883 "maximum size of files created through that call to 1GB."
19884 msgstr ""
19885
19886 # type: =head2
19887 #: ../fish/guestfish-actions.pod:975
19888 msgid "fgrep"
19889 msgstr ""
19890
19891 # type: verbatim
19892 #: ../fish/guestfish-actions.pod:977
19893 #, no-wrap
19894 msgid ""
19895 " fgrep pattern path\n"
19896 "\n"
19897 msgstr ""
19898
19899 # type: =head2
19900 #: ../fish/guestfish-actions.pod:985
19901 msgid "fgrepi"
19902 msgstr ""
19903
19904 # type: verbatim
19905 #: ../fish/guestfish-actions.pod:987
19906 #, no-wrap
19907 msgid ""
19908 " fgrepi pattern path\n"
19909 "\n"
19910 msgstr ""
19911
19912 # type: =head2
19913 #: ../fish/guestfish-actions.pod:995
19914 msgid "file"
19915 msgstr ""
19916
19917 # type: verbatim
19918 #: ../fish/guestfish-actions.pod:997
19919 #, no-wrap
19920 msgid ""
19921 " file path\n"
19922 "\n"
19923 msgstr ""
19924
19925 # type: textblock
19926 #: ../fish/guestfish-actions.pod:1009
19927 msgid ""
19928 "This command can also be used on C</dev/> devices (and partitions, LV "
19929 "names).  You can for example use this to determine if a device contains a "
19930 "filesystem, although it's usually better to use L</vfs-type>."
19931 msgstr ""
19932
19933 # type: =head2
19934 #: ../fish/guestfish-actions.pod:1019
19935 msgid "file-architecture"
19936 msgstr ""
19937
19938 # type: verbatim
19939 #: ../fish/guestfish-actions.pod:1021
19940 #, no-wrap
19941 msgid ""
19942 " file-architecture filename\n"
19943 "\n"
19944 msgstr ""
19945
19946 # type: =head2
19947 #: ../fish/guestfish-actions.pod:1124
19948 msgid "filesize"
19949 msgstr ""
19950
19951 # type: verbatim
19952 #: ../fish/guestfish-actions.pod:1126
19953 #, no-wrap
19954 msgid ""
19955 " filesize file\n"
19956 "\n"
19957 msgstr ""
19958
19959 # type: textblock
19960 #: ../fish/guestfish-actions.pod:1130
19961 msgid ""
19962 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, "
19963 "L</is-file> etc.  To get the size of block devices, use "
19964 "L</blockdev-getsize64>."
19965 msgstr ""
19966
19967 # type: =head2
19968 #: ../fish/guestfish-actions.pod:1134
19969 msgid "fill"
19970 msgstr ""
19971
19972 # type: verbatim
19973 #: ../fish/guestfish-actions.pod:1136
19974 #, no-wrap
19975 msgid ""
19976 " fill c len path\n"
19977 "\n"
19978 msgstr ""
19979
19980 # type: textblock
19981 #: ../fish/guestfish-actions.pod:1142
19982 msgid ""
19983 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
19984 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
19985 "L</fill-pattern>."
19986 msgstr ""
19987
19988 # type: =head2
19989 #: ../fish/guestfish-actions.pod:1147
19990 msgid "fill-pattern"
19991 msgstr ""
19992
19993 # type: verbatim
19994 #: ../fish/guestfish-actions.pod:1149
19995 #, no-wrap
19996 msgid ""
19997 " fill-pattern pattern len path\n"
19998 "\n"
19999 msgstr ""
20000
20001 # type: textblock
20002 #: ../fish/guestfish-actions.pod:1151
20003 msgid ""
20004 "This function is like L</fill> except that it creates a new file of length "
20005 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
20006 "is truncated if necessary to ensure the length of the file is exactly C<len> "
20007 "bytes."
20008 msgstr ""
20009
20010 # type: =head2
20011 #: ../fish/guestfish-actions.pod:1156
20012 msgid "find"
20013 msgstr ""
20014
20015 # type: verbatim
20016 #: ../fish/guestfish-actions.pod:1158
20017 #, no-wrap
20018 msgid ""
20019 " find directory\n"
20020 "\n"
20021 msgstr ""
20022
20023 # type: textblock
20024 #: ../fish/guestfish-actions.pod:1172
20025 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
20026 msgstr ""
20027
20028 # type: textblock
20029 #: ../fish/guestfish-actions.pod:1185
20030 msgid "See also L</find0>."
20031 msgstr ""
20032
20033 # type: =head2
20034 #: ../fish/guestfish-actions.pod:1190
20035 msgid "find0"
20036 msgstr ""
20037
20038 # type: verbatim
20039 #: ../fish/guestfish-actions.pod:1192
20040 #, no-wrap
20041 msgid ""
20042 " find0 directory (files|-)\n"
20043 "\n"
20044 msgstr ""
20045
20046 # type: textblock
20047 #: ../fish/guestfish-actions.pod:1198
20048 msgid "This command works the same way as L</find> with the following exceptions:"
20049 msgstr ""
20050
20051 # type: =head2
20052 #: ../fish/guestfish-actions.pod:1225
20053 msgid "findfs-label"
20054 msgstr ""
20055
20056 # type: verbatim
20057 #: ../fish/guestfish-actions.pod:1227
20058 #, no-wrap
20059 msgid ""
20060 " findfs-label label\n"
20061 "\n"
20062 msgstr ""
20063
20064 # type: textblock
20065 #: ../fish/guestfish-actions.pod:1233
20066 msgid "To find the label of a filesystem, use L</vfs-label>."
20067 msgstr ""
20068
20069 # type: =head2
20070 #: ../fish/guestfish-actions.pod:1235
20071 msgid "findfs-uuid"
20072 msgstr ""
20073
20074 # type: verbatim
20075 #: ../fish/guestfish-actions.pod:1237
20076 #, no-wrap
20077 msgid ""
20078 " findfs-uuid uuid\n"
20079 "\n"
20080 msgstr ""
20081
20082 # type: textblock
20083 #: ../fish/guestfish-actions.pod:1243
20084 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
20085 msgstr ""
20086
20087 # type: =head2
20088 #: ../fish/guestfish-actions.pod:1245
20089 msgid "fsck"
20090 msgstr ""
20091
20092 # type: verbatim
20093 #: ../fish/guestfish-actions.pod:1247
20094 #, no-wrap
20095 msgid ""
20096 " fsck fstype device\n"
20097 "\n"
20098 msgstr ""
20099
20100 # type: =head2
20101 #: ../fish/guestfish-actions.pod:1277
20102 msgid "get-append"
20103 msgstr ""
20104
20105 # type: verbatim
20106 #: ../fish/guestfish-actions.pod:1279
20107 #, no-wrap
20108 msgid ""
20109 " get-append\n"
20110 "\n"
20111 msgstr ""
20112
20113 # type: =head2
20114 #: ../fish/guestfish-actions.pod:1286
20115 msgid "get-autosync"
20116 msgstr ""
20117
20118 # type: verbatim
20119 #: ../fish/guestfish-actions.pod:1288
20120 #, no-wrap
20121 msgid ""
20122 " get-autosync\n"
20123 "\n"
20124 msgstr ""
20125
20126 # type: =head2
20127 #: ../fish/guestfish-actions.pod:1292
20128 msgid "get-direct"
20129 msgstr ""
20130
20131 # type: verbatim
20132 #: ../fish/guestfish-actions.pod:1294
20133 #, no-wrap
20134 msgid ""
20135 " get-direct\n"
20136 "\n"
20137 msgstr ""
20138
20139 # type: =head2
20140 #: ../fish/guestfish-actions.pod:1298
20141 msgid "get-e2label"
20142 msgstr ""
20143
20144 # type: verbatim
20145 #: ../fish/guestfish-actions.pod:1300
20146 #, no-wrap
20147 msgid ""
20148 " get-e2label device\n"
20149 "\n"
20150 msgstr ""
20151
20152 # type: =head2
20153 #: ../fish/guestfish-actions.pod:1312
20154 msgid "get-e2uuid"
20155 msgstr ""
20156
20157 # type: verbatim
20158 #: ../fish/guestfish-actions.pod:1314
20159 #, no-wrap
20160 msgid ""
20161 " get-e2uuid device\n"
20162 "\n"
20163 msgstr ""
20164
20165 # type: =head2
20166 #: ../fish/guestfish-actions.pod:1326
20167 msgid "get-memsize"
20168 msgstr ""
20169
20170 # type: verbatim
20171 #: ../fish/guestfish-actions.pod:1328
20172 #, no-wrap
20173 msgid ""
20174 " get-memsize\n"
20175 "\n"
20176 msgstr ""
20177
20178 # type: textblock
20179 #: ../fish/guestfish-actions.pod:1333
20180 msgid ""
20181 "If L</set-memsize> was not called on this handle, and if "
20182 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
20183 "value for memsize."
20184 msgstr ""
20185
20186 # type: =head2
20187 #: ../fish/guestfish-actions.pod:1340
20188 msgid "get-network"
20189 msgstr ""
20190
20191 # type: verbatim
20192 #: ../fish/guestfish-actions.pod:1342
20193 #, no-wrap
20194 msgid ""
20195 " get-network\n"
20196 "\n"
20197 msgstr ""
20198
20199 # type: =head2
20200 #: ../fish/guestfish-actions.pod:1346
20201 msgid "get-path"
20202 msgstr ""
20203
20204 # type: verbatim
20205 #: ../fish/guestfish-actions.pod:1348
20206 #, no-wrap
20207 msgid ""
20208 " get-path\n"
20209 "\n"
20210 msgstr ""
20211
20212 # type: =head2
20213 #: ../fish/guestfish-actions.pod:1355
20214 msgid "get-pid"
20215 msgstr ""
20216
20217 # type: =head2
20218 #: ../fish/guestfish-actions.pod:1357
20219 msgid "pid"
20220 msgstr ""
20221
20222 # type: verbatim
20223 #: ../fish/guestfish-actions.pod:1359
20224 #, no-wrap
20225 msgid ""
20226 " get-pid\n"
20227 "\n"
20228 msgstr ""
20229
20230 # type: =head2
20231 #: ../fish/guestfish-actions.pod:1366
20232 msgid "get-qemu"
20233 msgstr ""
20234
20235 # type: verbatim
20236 #: ../fish/guestfish-actions.pod:1368
20237 #, no-wrap
20238 msgid ""
20239 " get-qemu\n"
20240 "\n"
20241 msgstr ""
20242
20243 # type: =head2
20244 #: ../fish/guestfish-actions.pod:1375
20245 msgid "get-recovery-proc"
20246 msgstr ""
20247
20248 # type: verbatim
20249 #: ../fish/guestfish-actions.pod:1377
20250 #, no-wrap
20251 msgid ""
20252 " get-recovery-proc\n"
20253 "\n"
20254 msgstr ""
20255
20256 # type: =head2
20257 #: ../fish/guestfish-actions.pod:1381
20258 msgid "get-selinux"
20259 msgstr ""
20260
20261 # type: verbatim
20262 #: ../fish/guestfish-actions.pod:1383
20263 #, no-wrap
20264 msgid ""
20265 " get-selinux\n"
20266 "\n"
20267 msgstr ""
20268
20269 # type: textblock
20270 #: ../fish/guestfish-actions.pod:1385
20271 msgid ""
20272 "This returns the current setting of the selinux flag which is passed to the "
20273 "appliance at boot time.  See L</set-selinux>."
20274 msgstr ""
20275
20276 # type: =head2
20277 #: ../fish/guestfish-actions.pod:1391
20278 msgid "get-state"
20279 msgstr ""
20280
20281 # type: verbatim
20282 #: ../fish/guestfish-actions.pod:1393
20283 #, no-wrap
20284 msgid ""
20285 " get-state\n"
20286 "\n"
20287 msgstr ""
20288
20289 # type: =head2
20290 #: ../fish/guestfish-actions.pod:1400
20291 msgid "get-trace"
20292 msgstr ""
20293
20294 # type: verbatim
20295 #: ../fish/guestfish-actions.pod:1402
20296 #, no-wrap
20297 msgid ""
20298 " get-trace\n"
20299 "\n"
20300 msgstr ""
20301
20302 # type: =head2
20303 #: ../fish/guestfish-actions.pod:1406
20304 msgid "get-umask"
20305 msgstr ""
20306
20307 # type: verbatim
20308 #: ../fish/guestfish-actions.pod:1408
20309 #, no-wrap
20310 msgid ""
20311 " get-umask\n"
20312 "\n"
20313 msgstr ""
20314
20315 # type: textblock
20316 #: ../fish/guestfish-actions.pod:1410
20317 msgid ""
20318 "Return the current umask.  By default the umask is C<022> unless it has been "
20319 "set by calling L</umask>."
20320 msgstr ""
20321
20322 # type: =head2
20323 #: ../fish/guestfish-actions.pod:1413
20324 msgid "get-verbose"
20325 msgstr ""
20326
20327 # type: verbatim
20328 #: ../fish/guestfish-actions.pod:1415
20329 #, no-wrap
20330 msgid ""
20331 " get-verbose\n"
20332 "\n"
20333 msgstr ""
20334
20335 # type: =head2
20336 #: ../fish/guestfish-actions.pod:1419
20337 msgid "getcon"
20338 msgstr ""
20339
20340 # type: verbatim
20341 #: ../fish/guestfish-actions.pod:1421
20342 #, no-wrap
20343 msgid ""
20344 " getcon\n"
20345 "\n"
20346 msgstr ""
20347
20348 # type: textblock
20349 #: ../fish/guestfish-actions.pod:1425
20350 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
20351 msgstr ""
20352
20353 # type: =head2
20354 #: ../fish/guestfish-actions.pod:1428
20355 msgid "getxattrs"
20356 msgstr ""
20357
20358 # type: verbatim
20359 #: ../fish/guestfish-actions.pod:1430
20360 #, no-wrap
20361 msgid ""
20362 " getxattrs path\n"
20363 "\n"
20364 msgstr ""
20365
20366 # type: textblock
20367 #: ../fish/guestfish-actions.pod:1438
20368 msgid "See also: L</lgetxattrs>, L<attr(5)>."
20369 msgstr ""
20370
20371 # type: =head2
20372 #: ../fish/guestfish-actions.pod:1440
20373 msgid "glob-expand"
20374 msgstr ""
20375
20376 # type: verbatim
20377 #: ../fish/guestfish-actions.pod:1442
20378 #, no-wrap
20379 msgid ""
20380 " glob-expand pattern\n"
20381 "\n"
20382 msgstr ""
20383
20384 # type: =head2
20385 #: ../fish/guestfish-actions.pod:1455
20386 msgid "grep"
20387 msgstr ""
20388
20389 # type: verbatim
20390 #: ../fish/guestfish-actions.pod:1457
20391 #, no-wrap
20392 msgid ""
20393 " grep regex path\n"
20394 "\n"
20395 msgstr ""
20396
20397 # type: =head2
20398 #: ../fish/guestfish-actions.pod:1465
20399 msgid "grepi"
20400 msgstr ""
20401
20402 # type: verbatim
20403 #: ../fish/guestfish-actions.pod:1467
20404 #, no-wrap
20405 msgid ""
20406 " grepi regex path\n"
20407 "\n"
20408 msgstr ""
20409
20410 # type: =head2
20411 #: ../fish/guestfish-actions.pod:1475
20412 msgid "grub-install"
20413 msgstr ""
20414
20415 # type: verbatim
20416 #: ../fish/guestfish-actions.pod:1477
20417 #, no-wrap
20418 msgid ""
20419 " grub-install root device\n"
20420 "\n"
20421 msgstr ""
20422
20423 # type: =head2
20424 #: ../fish/guestfish-actions.pod:1493
20425 msgid "head"
20426 msgstr ""
20427
20428 # type: verbatim
20429 #: ../fish/guestfish-actions.pod:1495
20430 #, no-wrap
20431 msgid ""
20432 " head path\n"
20433 "\n"
20434 msgstr ""
20435
20436 # type: =head2
20437 #: ../fish/guestfish-actions.pod:1503
20438 msgid "head-n"
20439 msgstr ""
20440
20441 # type: verbatim
20442 #: ../fish/guestfish-actions.pod:1505
20443 #, no-wrap
20444 msgid ""
20445 " head-n nrlines path\n"
20446 "\n"
20447 msgstr ""
20448
20449 # type: =head2
20450 #: ../fish/guestfish-actions.pod:1518
20451 msgid "hexdump"
20452 msgstr ""
20453
20454 # type: verbatim
20455 #: ../fish/guestfish-actions.pod:1520
20456 #, no-wrap
20457 msgid ""
20458 " hexdump path\n"
20459 "\n"
20460 msgstr ""
20461
20462 # type: =head2
20463 #: ../fish/guestfish-actions.pod:1528
20464 msgid "initrd-cat"
20465 msgstr ""
20466
20467 # type: verbatim
20468 #: ../fish/guestfish-actions.pod:1530
20469 #, no-wrap
20470 msgid ""
20471 " initrd-cat initrdpath filename\n"
20472 "\n"
20473 msgstr ""
20474
20475 # type: textblock
20476 #: ../fish/guestfish-actions.pod:1542
20477 msgid "See also L</initrd-list>."
20478 msgstr ""
20479
20480 # type: =head2
20481 #: ../fish/guestfish-actions.pod:1547
20482 msgid "initrd-list"
20483 msgstr ""
20484
20485 # type: verbatim
20486 #: ../fish/guestfish-actions.pod:1549
20487 #, no-wrap
20488 msgid ""
20489 " initrd-list path\n"
20490 "\n"
20491 msgstr ""
20492
20493 # type: =head2
20494 #: ../fish/guestfish-actions.pod:1561
20495 msgid "inotify-add-watch"
20496 msgstr ""
20497
20498 # type: verbatim
20499 #: ../fish/guestfish-actions.pod:1563
20500 #, no-wrap
20501 msgid ""
20502 " inotify-add-watch path mask\n"
20503 "\n"
20504 msgstr ""
20505
20506 # type: =head2
20507 #: ../fish/guestfish-actions.pod:1575
20508 msgid "inotify-close"
20509 msgstr ""
20510
20511 # type: verbatim
20512 #: ../fish/guestfish-actions.pod:1577
20513 #, no-wrap
20514 msgid ""
20515 " inotify-close\n"
20516 "\n"
20517 msgstr ""
20518
20519 # type: =head2
20520 #: ../fish/guestfish-actions.pod:1583
20521 msgid "inotify-files"
20522 msgstr ""
20523
20524 # type: verbatim
20525 #: ../fish/guestfish-actions.pod:1585
20526 #, no-wrap
20527 msgid ""
20528 " inotify-files\n"
20529 "\n"
20530 msgstr ""
20531
20532 # type: textblock
20533 #: ../fish/guestfish-actions.pod:1587
20534 msgid ""
20535 "This function is a helpful wrapper around L</inotify-read> which just "
20536 "returns a list of pathnames of objects that were touched.  The returned "
20537 "pathnames are sorted and deduplicated."
20538 msgstr ""
20539
20540 # type: =head2
20541 #: ../fish/guestfish-actions.pod:1591
20542 msgid "inotify-init"
20543 msgstr ""
20544
20545 # type: verbatim
20546 #: ../fish/guestfish-actions.pod:1593
20547 #, no-wrap
20548 msgid ""
20549 " inotify-init maxevents\n"
20550 "\n"
20551 msgstr ""
20552
20553 # type: textblock
20554 #: ../fish/guestfish-actions.pod:1599
20555 msgid ""
20556 "C<maxevents> is the maximum number of events which will be queued up between "
20557 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
20558 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
20559 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
20560 "but records the fact that it threw them away by setting a flag "
20561 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
20562 msgstr ""
20563
20564 # type: textblock
20565 #: ../fish/guestfish-actions.pod:1609
20566 msgid ""
20567 "Before any events are generated, you have to add some watches to the "
20568 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
20569 "L</inotify-watch-all>."
20570 msgstr ""
20571
20572 # type: textblock
20573 #: ../fish/guestfish-actions.pod:1615
20574 msgid ""
20575 "Queued up events should be read periodically by calling L</inotify-read> (or "
20576 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
20577 "If you don't read the events out often enough then you risk the internal "
20578 "queue overflowing."
20579 msgstr ""
20580
20581 # type: textblock
20582 #: ../fish/guestfish-actions.pod:1622
20583 msgid ""
20584 "The handle should be closed after use by calling L</inotify-close>.  This "
20585 "also removes any watches automatically."
20586 msgstr ""
20587
20588 # type: =head2
20589 #: ../fish/guestfish-actions.pod:1631
20590 msgid "inotify-read"
20591 msgstr ""
20592
20593 # type: verbatim
20594 #: ../fish/guestfish-actions.pod:1633
20595 #, no-wrap
20596 msgid ""
20597 " inotify-read\n"
20598 "\n"
20599 msgstr ""
20600
20601 # type: =head2
20602 #: ../fish/guestfish-actions.pod:1646
20603 msgid "inotify-rm-watch"
20604 msgstr ""
20605
20606 # type: verbatim
20607 #: ../fish/guestfish-actions.pod:1648
20608 #, no-wrap
20609 msgid ""
20610 " inotify-rm-watch wd\n"
20611 "\n"
20612 msgstr ""
20613
20614 # type: textblock
20615 #: ../fish/guestfish-actions.pod:1650
20616 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
20617 msgstr ""
20618
20619 # type: =head2
20620 #: ../fish/guestfish-actions.pod:1653
20621 msgid "inspect-get-arch"
20622 msgstr ""
20623
20624 # type: verbatim
20625 #: ../fish/guestfish-actions.pod:1655
20626 #, no-wrap
20627 msgid ""
20628 " inspect-get-arch root\n"
20629 "\n"
20630 msgstr ""
20631
20632 # type: textblock
20633 #: ../fish/guestfish-actions.pod:1657 ../fish/guestfish-actions.pod:1673 ../fish/guestfish-actions.pod:1747 ../fish/guestfish-actions.pod:1765 ../fish/guestfish-actions.pod:1780 ../fish/guestfish-actions.pod:1801 ../fish/guestfish-actions.pod:1816 ../fish/guestfish-actions.pod:1839 ../fish/guestfish-actions.pod:1861 ../fish/guestfish-actions.pod:1885 ../fish/guestfish-actions.pod:1915 ../fish/guestfish-actions.pod:1950 ../fish/guestfish-actions.pod:1966
20634 msgid ""
20635 "This function should only be called with a root device string as returned by "
20636 "L</inspect-os>."
20637 msgstr ""
20638
20639 # type: textblock
20640 #: ../fish/guestfish-actions.pod:1660
20641 msgid ""
20642 "This returns the architecture of the inspected operating system.  The "
20643 "possible return values are listed under L</file-architecture>."
20644 msgstr ""
20645
20646 # type: =head2
20647 #: ../fish/guestfish-actions.pod:1669
20648 msgid "inspect-get-distro"
20649 msgstr ""
20650
20651 # type: verbatim
20652 #: ../fish/guestfish-actions.pod:1671
20653 #, no-wrap
20654 msgid ""
20655 " inspect-get-distro root\n"
20656 "\n"
20657 msgstr ""
20658
20659 # type: =head2
20660 #: ../fish/guestfish-actions.pod:1743
20661 msgid "inspect-get-filesystems"
20662 msgstr ""
20663
20664 # type: verbatim
20665 #: ../fish/guestfish-actions.pod:1745
20666 #, no-wrap
20667 msgid ""
20668 " inspect-get-filesystems root\n"
20669 "\n"
20670 msgstr ""
20671
20672 # type: textblock
20673 #: ../fish/guestfish-actions.pod:1758
20674 msgid ""
20675 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
20676 "L</inspect-get-mountpoints>."
20677 msgstr ""
20678
20679 # type: =head2
20680 #: ../fish/guestfish-actions.pod:1761
20681 msgid "inspect-get-hostname"
20682 msgstr ""
20683
20684 # type: verbatim
20685 #: ../fish/guestfish-actions.pod:1763
20686 #, no-wrap
20687 msgid ""
20688 " inspect-get-hostname root\n"
20689 "\n"
20690 msgstr ""
20691
20692 # type: =head2
20693 #: ../fish/guestfish-actions.pod:1776
20694 msgid "inspect-get-major-version"
20695 msgstr ""
20696
20697 # type: verbatim
20698 #: ../fish/guestfish-actions.pod:1778
20699 #, no-wrap
20700 msgid ""
20701 " inspect-get-major-version root\n"
20702 "\n"
20703 msgstr ""
20704
20705 # type: =head2
20706 #: ../fish/guestfish-actions.pod:1797
20707 msgid "inspect-get-minor-version"
20708 msgstr ""
20709
20710 # type: verbatim
20711 #: ../fish/guestfish-actions.pod:1799
20712 #, no-wrap
20713 msgid ""
20714 " inspect-get-minor-version root\n"
20715 "\n"
20716 msgstr ""
20717
20718 # type: textblock
20719 #: ../fish/guestfish-actions.pod:1809
20720 msgid ""
20721 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
20722 "L</inspect-get-major-version>."
20723 msgstr ""
20724
20725 # type: =head2
20726 #: ../fish/guestfish-actions.pod:1812
20727 msgid "inspect-get-mountpoints"
20728 msgstr ""
20729
20730 # type: verbatim
20731 #: ../fish/guestfish-actions.pod:1814
20732 #, no-wrap
20733 msgid ""
20734 " inspect-get-mountpoints root\n"
20735 "\n"
20736 msgstr ""
20737
20738 # type: textblock
20739 #: ../fish/guestfish-actions.pod:1832
20740 msgid ""
20741 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
20742 "L</inspect-get-filesystems>."
20743 msgstr ""
20744
20745 # type: =head2
20746 #: ../fish/guestfish-actions.pod:1835
20747 msgid "inspect-get-package-format"
20748 msgstr ""
20749
20750 # type: verbatim
20751 #: ../fish/guestfish-actions.pod:1837
20752 #, no-wrap
20753 msgid ""
20754 " inspect-get-package-format root\n"
20755 "\n"
20756 msgstr ""
20757
20758 # type: textblock
20759 #: ../fish/guestfish-actions.pod:1842
20760 msgid ""
20761 "This function and L</inspect-get-package-management> return the package "
20762 "format and package management tool used by the inspected operating system.  "
20763 "For example for Fedora these functions would return C<rpm> (package format) "
20764 "and C<yum> (package management)."
20765 msgstr ""
20766
20767 # type: =head2
20768 #: ../fish/guestfish-actions.pod:1857
20769 msgid "inspect-get-package-management"
20770 msgstr ""
20771
20772 # type: verbatim
20773 #: ../fish/guestfish-actions.pod:1859
20774 #, no-wrap
20775 msgid ""
20776 " inspect-get-package-management root\n"
20777 "\n"
20778 msgstr ""
20779
20780 # type: textblock
20781 #: ../fish/guestfish-actions.pod:1864
20782 msgid ""
20783 "L</inspect-get-package-format> and this function return the package format "
20784 "and package management tool used by the inspected operating system.  For "
20785 "example for Fedora these functions would return C<rpm> (package format) and "
20786 "C<yum> (package management)."
20787 msgstr ""
20788
20789 # type: =head2
20790 #: ../fish/guestfish-actions.pod:1881
20791 msgid "inspect-get-product-name"
20792 msgstr ""
20793
20794 # type: verbatim
20795 #: ../fish/guestfish-actions.pod:1883
20796 #, no-wrap
20797 msgid ""
20798 " inspect-get-product-name root\n"
20799 "\n"
20800 msgstr ""
20801
20802 # type: =head2
20803 #: ../fish/guestfish-actions.pod:1898
20804 msgid "inspect-get-roots"
20805 msgstr ""
20806
20807 # type: verbatim
20808 #: ../fish/guestfish-actions.pod:1900
20809 #, no-wrap
20810 msgid ""
20811 " inspect-get-roots\n"
20812 "\n"
20813 msgstr ""
20814
20815 # type: textblock
20816 #: ../fish/guestfish-actions.pod:1902
20817 msgid ""
20818 "This function is a convenient way to get the list of root devices, as "
20819 "returned from a previous call to L</inspect-os>, but without redoing the "
20820 "whole inspection process."
20821 msgstr ""
20822
20823 # type: textblock
20824 #: ../fish/guestfish-actions.pod:1906
20825 msgid ""
20826 "This returns an empty list if either no root devices were found or the "
20827 "caller has not called L</inspect-os>."
20828 msgstr ""
20829
20830 # type: =head2
20831 #: ../fish/guestfish-actions.pod:1911
20832 msgid "inspect-get-type"
20833 msgstr ""
20834
20835 # type: verbatim
20836 #: ../fish/guestfish-actions.pod:1913
20837 #, no-wrap
20838 msgid ""
20839 " inspect-get-type root\n"
20840 "\n"
20841 msgstr ""
20842
20843 # type: =head2
20844 #: ../fish/guestfish-actions.pod:1946
20845 msgid "inspect-get-windows-systemroot"
20846 msgstr ""
20847
20848 # type: verbatim
20849 #: ../fish/guestfish-actions.pod:1948
20850 #, no-wrap
20851 msgid ""
20852 " inspect-get-windows-systemroot root\n"
20853 "\n"
20854 msgstr ""
20855
20856 # type: =head2
20857 #: ../fish/guestfish-actions.pod:1962
20858 msgid "inspect-list-applications"
20859 msgstr ""
20860
20861 # type: verbatim
20862 #: ../fish/guestfish-actions.pod:1964
20863 #, no-wrap
20864 msgid ""
20865 " inspect-list-applications root\n"
20866 "\n"
20867 msgstr ""
20868
20869 # type: textblock
20870 #: ../fish/guestfish-actions.pod:1971
20871 msgid ""
20872 "I<Note:> This call works differently from other parts of the inspection "
20873 "API.  You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
20874 "then mount up the disks, before calling this.  Listing applications is a "
20875 "significantly more difficult operation which requires access to the full "
20876 "filesystem.  Also note that unlike the other L</inspect-get-*> calls which "
20877 "are just returning data cached in the libguestfs handle, this call actually "
20878 "reads parts of the mounted filesystems during the call."
20879 msgstr ""
20880
20881 # type: =head2
20882 #: ../fish/guestfish-actions.pod:2061
20883 msgid "inspect-os"
20884 msgstr ""
20885
20886 # type: verbatim
20887 #: ../fish/guestfish-actions.pod:2063
20888 #, no-wrap
20889 msgid ""
20890 " inspect-os\n"
20891 "\n"
20892 msgstr ""
20893
20894 # type: textblock
20895 #: ../fish/guestfish-actions.pod:2078
20896 msgid ""
20897 "You can pass the root string(s) returned to other L</inspect-get-*> "
20898 "functions in order to query further information about each operating system, "
20899 "such as the name and version."
20900 msgstr ""
20901
20902 # type: textblock
20903 #: ../fish/guestfish-actions.pod:2083
20904 msgid ""
20905 "This function uses other libguestfs features such as L</mount-ro> and "
20906 "L</umount-all> in order to mount and unmount filesystems and look at the "
20907 "contents.  This should be called with no disks currently mounted.  The "
20908 "function may also use Augeas, so any existing Augeas handle will be closed."
20909 msgstr ""
20910
20911 # type: textblock
20912 #: ../fish/guestfish-actions.pod:2095 ../fish/guestfish-actions.pod:2251 ../fish/guestfish-actions.pod:2297
20913 msgid "See also L</list-filesystems>."
20914 msgstr ""
20915
20916 # type: =head2
20917 #: ../fish/guestfish-actions.pod:2097
20918 msgid "is-blockdev"
20919 msgstr ""
20920
20921 # type: verbatim
20922 #: ../fish/guestfish-actions.pod:2099
20923 #, no-wrap
20924 msgid ""
20925 " is-blockdev path\n"
20926 "\n"
20927 msgstr ""
20928
20929 # type: textblock
20930 #: ../fish/guestfish-actions.pod:2104 ../fish/guestfish-actions.pod:2122 ../fish/guestfish-actions.pod:2141 ../fish/guestfish-actions.pod:2150 ../fish/guestfish-actions.pod:2160 ../fish/guestfish-actions.pod:2194 ../fish/guestfish-actions.pod:2203
20931 msgid "See also L</stat>."
20932 msgstr ""
20933
20934 # type: =head2
20935 #: ../fish/guestfish-actions.pod:2106
20936 msgid "is-busy"
20937 msgstr ""
20938
20939 # type: verbatim
20940 #: ../fish/guestfish-actions.pod:2108
20941 #, no-wrap
20942 msgid ""
20943 " is-busy\n"
20944 "\n"
20945 msgstr ""
20946
20947 # type: =head2
20948 #: ../fish/guestfish-actions.pod:2115
20949 msgid "is-chardev"
20950 msgstr ""
20951
20952 # type: verbatim
20953 #: ../fish/guestfish-actions.pod:2117
20954 #, no-wrap
20955 msgid ""
20956 " is-chardev path\n"
20957 "\n"
20958 msgstr ""
20959
20960 # type: =head2
20961 #: ../fish/guestfish-actions.pod:2124
20962 msgid "is-config"
20963 msgstr ""
20964
20965 # type: verbatim
20966 #: ../fish/guestfish-actions.pod:2126
20967 #, no-wrap
20968 msgid ""
20969 " is-config\n"
20970 "\n"
20971 msgstr ""
20972
20973 # type: =head2
20974 #: ../fish/guestfish-actions.pod:2133
20975 msgid "is-dir"
20976 msgstr ""
20977
20978 # type: verbatim
20979 #: ../fish/guestfish-actions.pod:2135
20980 #, no-wrap
20981 msgid ""
20982 " is-dir path\n"
20983 "\n"
20984 msgstr ""
20985
20986 # type: =head2
20987 #: ../fish/guestfish-actions.pod:2143
20988 msgid "is-fifo"
20989 msgstr ""
20990
20991 # type: verbatim
20992 #: ../fish/guestfish-actions.pod:2145
20993 #, no-wrap
20994 msgid ""
20995 " is-fifo path\n"
20996 "\n"
20997 msgstr ""
20998
20999 # type: =head2
21000 #: ../fish/guestfish-actions.pod:2152
21001 msgid "is-file"
21002 msgstr ""
21003
21004 # type: verbatim
21005 #: ../fish/guestfish-actions.pod:2154
21006 #, no-wrap
21007 msgid ""
21008 " is-file path\n"
21009 "\n"
21010 msgstr ""
21011
21012 # type: =head2
21013 #: ../fish/guestfish-actions.pod:2162
21014 msgid "is-launching"
21015 msgstr ""
21016
21017 # type: verbatim
21018 #: ../fish/guestfish-actions.pod:2164
21019 #, no-wrap
21020 msgid ""
21021 " is-launching\n"
21022 "\n"
21023 msgstr ""
21024
21025 # type: =head2
21026 #: ../fish/guestfish-actions.pod:2171
21027 msgid "is-lv"
21028 msgstr ""
21029
21030 # type: verbatim
21031 #: ../fish/guestfish-actions.pod:2173
21032 #, no-wrap
21033 msgid ""
21034 " is-lv device\n"
21035 "\n"
21036 msgstr ""
21037
21038 # type: =head2
21039 #: ../fish/guestfish-actions.pod:2178
21040 msgid "is-ready"
21041 msgstr ""
21042
21043 # type: verbatim
21044 #: ../fish/guestfish-actions.pod:2180
21045 #, no-wrap
21046 msgid ""
21047 " is-ready\n"
21048 "\n"
21049 msgstr ""
21050
21051 # type: =head2
21052 #: ../fish/guestfish-actions.pod:2187
21053 msgid "is-socket"
21054 msgstr ""
21055
21056 # type: verbatim
21057 #: ../fish/guestfish-actions.pod:2189
21058 #, no-wrap
21059 msgid ""
21060 " is-socket path\n"
21061 "\n"
21062 msgstr ""
21063
21064 # type: =head2
21065 #: ../fish/guestfish-actions.pod:2196
21066 msgid "is-symlink"
21067 msgstr ""
21068
21069 # type: verbatim
21070 #: ../fish/guestfish-actions.pod:2198
21071 #, no-wrap
21072 msgid ""
21073 " is-symlink path\n"
21074 "\n"
21075 msgstr ""
21076
21077 # type: =head2
21078 #: ../fish/guestfish-actions.pod:2205
21079 msgid "kill-subprocess"
21080 msgstr ""
21081
21082 # type: verbatim
21083 #: ../fish/guestfish-actions.pod:2207
21084 #, no-wrap
21085 msgid ""
21086 " kill-subprocess\n"
21087 "\n"
21088 msgstr ""
21089
21090 # type: =head2
21091 #: ../fish/guestfish-actions.pod:2211
21092 msgid "launch"
21093 msgstr ""
21094
21095 # type: =head2
21096 #: ../fish/guestfish-actions.pod:2213
21097 msgid "run"
21098 msgstr ""
21099
21100 # type: verbatim
21101 #: ../fish/guestfish-actions.pod:2215
21102 #, no-wrap
21103 msgid ""
21104 " launch\n"
21105 "\n"
21106 msgstr ""
21107
21108 # type: =head2
21109 #: ../fish/guestfish-actions.pod:2223
21110 msgid "lchown"
21111 msgstr ""
21112
21113 # type: verbatim
21114 #: ../fish/guestfish-actions.pod:2225
21115 #, no-wrap
21116 msgid ""
21117 " lchown owner group path\n"
21118 "\n"
21119 msgstr ""
21120
21121 # type: textblock
21122 #: ../fish/guestfish-actions.pod:2227
21123 msgid ""
21124 "Change the file owner to C<owner> and group to C<group>.  This is like "
21125 "L</chown> but if C<path> is a symlink then the link itself is changed, not "
21126 "the target."
21127 msgstr ""
21128
21129 # type: =head2
21130 #: ../fish/guestfish-actions.pod:2235
21131 msgid "lgetxattrs"
21132 msgstr ""
21133
21134 # type: verbatim
21135 #: ../fish/guestfish-actions.pod:2237
21136 #, no-wrap
21137 msgid ""
21138 " lgetxattrs path\n"
21139 "\n"
21140 msgstr ""
21141
21142 # type: textblock
21143 #: ../fish/guestfish-actions.pod:2239
21144 msgid ""
21145 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
21146 "it returns the extended attributes of the link itself."
21147 msgstr ""
21148
21149 # type: =head2
21150 #: ../fish/guestfish-actions.pod:2243
21151 msgid "list-devices"
21152 msgstr ""
21153
21154 # type: verbatim
21155 #: ../fish/guestfish-actions.pod:2245
21156 #, no-wrap
21157 msgid ""
21158 " list-devices\n"
21159 "\n"
21160 msgstr ""
21161
21162 # type: =head2
21163 #: ../fish/guestfish-actions.pod:2253
21164 msgid "list-filesystems"
21165 msgstr ""
21166
21167 # type: verbatim
21168 #: ../fish/guestfish-actions.pod:2255
21169 #, no-wrap
21170 msgid ""
21171 " list-filesystems\n"
21172 "\n"
21173 msgstr ""
21174
21175 # type: textblock
21176 #: ../fish/guestfish-actions.pod:2274
21177 msgid ""
21178 "This command runs other libguestfs commands, which might include L</mount> "
21179 "and L</umount>, and therefore you should use this soon after launch and only "
21180 "when nothing is mounted."
21181 msgstr ""
21182
21183 # type: textblock
21184 #: ../fish/guestfish-actions.pod:2278
21185 msgid ""
21186 "Not all of the filesystems returned will be mountable.  In particular, swap "
21187 "partitions are returned in the list.  Also this command does not check that "
21188 "each filesystem found is valid and mountable, and some filesystems might be "
21189 "mountable but require special options.  Filesystems may not all belong to a "
21190 "single logical operating system (use L</inspect-os> to look for OSes)."
21191 msgstr ""
21192
21193 # type: =head2
21194 #: ../fish/guestfish-actions.pod:2286
21195 msgid "list-partitions"
21196 msgstr ""
21197
21198 # type: verbatim
21199 #: ../fish/guestfish-actions.pod:2288
21200 #, no-wrap
21201 msgid ""
21202 " list-partitions\n"
21203 "\n"
21204 msgstr ""
21205
21206 # type: textblock
21207 #: ../fish/guestfish-actions.pod:2294
21208 msgid ""
21209 "This does not return logical volumes.  For that you will need to call "
21210 "L</lvs>."
21211 msgstr ""
21212
21213 # type: =head2
21214 #: ../fish/guestfish-actions.pod:2299
21215 msgid "ll"
21216 msgstr ""
21217
21218 # type: verbatim
21219 #: ../fish/guestfish-actions.pod:2301
21220 #, no-wrap
21221 msgid ""
21222 " ll directory\n"
21223 "\n"
21224 msgstr ""
21225
21226 # type: =head2
21227 #: ../fish/guestfish-actions.pod:2309
21228 msgid "ln"
21229 msgstr ""
21230
21231 # type: verbatim
21232 #: ../fish/guestfish-actions.pod:2311
21233 #, no-wrap
21234 msgid ""
21235 " ln target linkname\n"
21236 "\n"
21237 msgstr ""
21238
21239 # type: =head2
21240 #: ../fish/guestfish-actions.pod:2315
21241 msgid "ln-f"
21242 msgstr ""
21243
21244 # type: verbatim
21245 #: ../fish/guestfish-actions.pod:2317
21246 #, no-wrap
21247 msgid ""
21248 " ln-f target linkname\n"
21249 "\n"
21250 msgstr ""
21251
21252 # type: =head2
21253 #: ../fish/guestfish-actions.pod:2322
21254 msgid "ln-s"
21255 msgstr ""
21256
21257 # type: verbatim
21258 #: ../fish/guestfish-actions.pod:2324
21259 #, no-wrap
21260 msgid ""
21261 " ln-s target linkname\n"
21262 "\n"
21263 msgstr ""
21264
21265 # type: =head2
21266 #: ../fish/guestfish-actions.pod:2328
21267 msgid "ln-sf"
21268 msgstr ""
21269
21270 # type: verbatim
21271 #: ../fish/guestfish-actions.pod:2330
21272 #, no-wrap
21273 msgid ""
21274 " ln-sf target linkname\n"
21275 "\n"
21276 msgstr ""
21277
21278 # type: =head2
21279 #: ../fish/guestfish-actions.pod:2335
21280 msgid "lremovexattr"
21281 msgstr ""
21282
21283 # type: verbatim
21284 #: ../fish/guestfish-actions.pod:2337
21285 #, no-wrap
21286 msgid ""
21287 " lremovexattr xattr path\n"
21288 "\n"
21289 msgstr ""
21290
21291 # type: textblock
21292 #: ../fish/guestfish-actions.pod:2339
21293 msgid ""
21294 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
21295 "it removes an extended attribute of the link itself."
21296 msgstr ""
21297
21298 # type: =head2
21299 #: ../fish/guestfish-actions.pod:2343
21300 msgid "ls"
21301 msgstr ""
21302
21303 # type: verbatim
21304 #: ../fish/guestfish-actions.pod:2345
21305 #, no-wrap
21306 msgid ""
21307 " ls directory\n"
21308 "\n"
21309 msgstr ""
21310
21311 # type: textblock
21312 #: ../fish/guestfish-actions.pod:2351
21313 msgid ""
21314 "This command is mostly useful for interactive sessions.  Programs should "
21315 "probably use L</readdir> instead."
21316 msgstr ""
21317
21318 # type: =head2
21319 #: ../fish/guestfish-actions.pod:2354
21320 msgid "lsetxattr"
21321 msgstr ""
21322
21323 # type: verbatim
21324 #: ../fish/guestfish-actions.pod:2356
21325 #, no-wrap
21326 msgid ""
21327 " lsetxattr xattr val vallen path\n"
21328 "\n"
21329 msgstr ""
21330
21331 # type: textblock
21332 #: ../fish/guestfish-actions.pod:2358
21333 msgid ""
21334 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
21335 "sets an extended attribute of the link itself."
21336 msgstr ""
21337
21338 # type: =head2
21339 #: ../fish/guestfish-actions.pod:2362
21340 msgid "lstat"
21341 msgstr ""
21342
21343 # type: verbatim
21344 #: ../fish/guestfish-actions.pod:2364
21345 #, no-wrap
21346 msgid ""
21347 " lstat path\n"
21348 "\n"
21349 msgstr ""
21350
21351 # type: textblock
21352 #: ../fish/guestfish-actions.pod:2368
21353 msgid ""
21354 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
21355 "the link is stat-ed, not the file it refers to."
21356 msgstr ""
21357
21358 # type: =head2
21359 #: ../fish/guestfish-actions.pod:2374
21360 msgid "lstatlist"
21361 msgstr ""
21362
21363 # type: verbatim
21364 #: ../fish/guestfish-actions.pod:2376
21365 #, no-wrap
21366 msgid ""
21367 " lstatlist path 'names ...'\n"
21368 "\n"
21369 msgstr ""
21370
21371 # type: textblock
21372 #: ../fish/guestfish-actions.pod:2378
21373 msgid ""
21374 "This call allows you to perform the L</lstat> operation on multiple files, "
21375 "where all files are in the directory C<path>.  C<names> is the list of files "
21376 "from this directory."
21377 msgstr ""
21378
21379 # type: textblock
21380 #: ../fish/guestfish-actions.pod:2387
21381 msgid ""
21382 "This call is intended for programs that want to efficiently list a directory "
21383 "contents without making many round-trips.  See also L</lxattrlist> for a "
21384 "similarly efficient call for getting extended attributes.  Very long "
21385 "directory listings might cause the protocol message size to be exceeded, "
21386 "causing this call to fail.  The caller must split up such requests into "
21387 "smaller groups of names."
21388 msgstr ""
21389
21390 # type: =head2
21391 #: ../fish/guestfish-actions.pod:2395
21392 msgid "luks-add-key"
21393 msgstr ""
21394
21395 # type: verbatim
21396 #: ../fish/guestfish-actions.pod:2397
21397 #, no-wrap
21398 msgid ""
21399 " luks-add-key device keyslot\n"
21400 "\n"
21401 msgstr ""
21402
21403 # type: textblock
21404 #: ../fish/guestfish-actions.pod:2404
21405 msgid ""
21406 "Note that if C<keyslot> already contains a key, then this command will "
21407 "fail.  You have to use L</luks-kill-slot> first to remove that key."
21408 msgstr ""
21409
21410 # type: textblock
21411 #: ../fish/guestfish-actions.pod:2408 ../fish/guestfish-actions.pod:2430 ../fish/guestfish-actions.pod:2443 ../fish/guestfish-actions.pod:2457 ../fish/guestfish-actions.pod:2480 ../fish/guestfish-actions.pod:2490
21412 msgid ""
21413 "This command has one or more key or passphrase parameters.  Guestfish will "
21414 "prompt for these separately."
21415 msgstr ""
21416
21417 # type: =head2
21418 #: ../fish/guestfish-actions.pod:2411
21419 msgid "luks-close"
21420 msgstr ""
21421
21422 # type: verbatim
21423 #: ../fish/guestfish-actions.pod:2413
21424 #, no-wrap
21425 msgid ""
21426 " luks-close device\n"
21427 "\n"
21428 msgstr ""
21429
21430 # type: textblock
21431 #: ../fish/guestfish-actions.pod:2415
21432 msgid ""
21433 "This closes a LUKS device that was created earlier by L</luks-open> or "
21434 "L</luks-open-ro>.  The C<device> parameter must be the name of the LUKS "
21435 "mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
21436 "underlying block device."
21437 msgstr ""
21438
21439 # type: =head2
21440 #: ../fish/guestfish-actions.pod:2421
21441 msgid "luks-format"
21442 msgstr ""
21443
21444 # type: verbatim
21445 #: ../fish/guestfish-actions.pod:2423
21446 #, no-wrap
21447 msgid ""
21448 " luks-format device keyslot\n"
21449 "\n"
21450 msgstr ""
21451
21452 # type: =head2
21453 #: ../fish/guestfish-actions.pod:2436
21454 msgid "luks-format-cipher"
21455 msgstr ""
21456
21457 # type: verbatim
21458 #: ../fish/guestfish-actions.pod:2438
21459 #, no-wrap
21460 msgid ""
21461 " luks-format-cipher device keyslot cipher\n"
21462 "\n"
21463 msgstr ""
21464
21465 # type: textblock
21466 #: ../fish/guestfish-actions.pod:2440
21467 msgid ""
21468 "This command is the same as L</luks-format> but it also allows you to set "
21469 "the C<cipher> used."
21470 msgstr ""
21471
21472 # type: =head2
21473 #: ../fish/guestfish-actions.pod:2449
21474 msgid "luks-kill-slot"
21475 msgstr ""
21476
21477 # type: verbatim
21478 #: ../fish/guestfish-actions.pod:2451
21479 #, no-wrap
21480 msgid ""
21481 " luks-kill-slot device keyslot\n"
21482 "\n"
21483 msgstr ""
21484
21485 # type: =head2
21486 #: ../fish/guestfish-actions.pod:2460
21487 msgid "luks-open"
21488 msgstr ""
21489
21490 # type: verbatim
21491 #: ../fish/guestfish-actions.pod:2462
21492 #, no-wrap
21493 msgid ""
21494 " luks-open device mapname\n"
21495 "\n"
21496 msgstr ""
21497
21498 # type: textblock
21499 #: ../fish/guestfish-actions.pod:2476
21500 msgid ""
21501 "If this block device contains LVM volume groups, then calling L</vgscan> "
21502 "followed by L</vg-activate-all> will make them visible."
21503 msgstr ""
21504
21505 # type: =head2
21506 #: ../fish/guestfish-actions.pod:2483
21507 msgid "luks-open-ro"
21508 msgstr ""
21509
21510 # type: verbatim
21511 #: ../fish/guestfish-actions.pod:2485
21512 #, no-wrap
21513 msgid ""
21514 " luks-open-ro device mapname\n"
21515 "\n"
21516 msgstr ""
21517
21518 # type: textblock
21519 #: ../fish/guestfish-actions.pod:2487
21520 msgid ""
21521 "This is the same as L</luks-open> except that a read-only mapping is "
21522 "created."
21523 msgstr ""
21524
21525 # type: =head2
21526 #: ../fish/guestfish-actions.pod:2493
21527 msgid "lvcreate"
21528 msgstr ""
21529
21530 # type: verbatim
21531 #: ../fish/guestfish-actions.pod:2495
21532 #, no-wrap
21533 msgid ""
21534 " lvcreate logvol volgroup mbytes\n"
21535 "\n"
21536 msgstr ""
21537
21538 # type: =head2
21539 #: ../fish/guestfish-actions.pod:2500
21540 msgid "lvm-canonical-lv-name"
21541 msgstr ""
21542
21543 # type: verbatim
21544 #: ../fish/guestfish-actions.pod:2502
21545 #, no-wrap
21546 msgid ""
21547 " lvm-canonical-lv-name lvname\n"
21548 "\n"
21549 msgstr ""
21550
21551 # type: textblock
21552 #: ../fish/guestfish-actions.pod:2511
21553 msgid "See also L</is-lv>."
21554 msgstr ""
21555
21556 # type: =head2
21557 #: ../fish/guestfish-actions.pod:2513
21558 msgid "lvm-clear-filter"
21559 msgstr ""
21560
21561 # type: verbatim
21562 #: ../fish/guestfish-actions.pod:2515
21563 #, no-wrap
21564 msgid ""
21565 " lvm-clear-filter\n"
21566 "\n"
21567 msgstr ""
21568
21569 # type: textblock
21570 #: ../fish/guestfish-actions.pod:2517
21571 msgid ""
21572 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
21573 "block device."
21574 msgstr ""
21575
21576 # type: =head2
21577 #: ../fish/guestfish-actions.pod:2523
21578 msgid "lvm-remove-all"
21579 msgstr ""
21580
21581 # type: verbatim
21582 #: ../fish/guestfish-actions.pod:2525
21583 #, no-wrap
21584 msgid ""
21585 " lvm-remove-all\n"
21586 "\n"
21587 msgstr ""
21588
21589 # type: =head2
21590 #: ../fish/guestfish-actions.pod:2533
21591 msgid "lvm-set-filter"
21592 msgstr ""
21593
21594 # type: verbatim
21595 #: ../fish/guestfish-actions.pod:2535
21596 #, no-wrap
21597 msgid ""
21598 " lvm-set-filter 'devices ...'\n"
21599 "\n"
21600 msgstr ""
21601
21602 # type: =head2
21603 #: ../fish/guestfish-actions.pod:2560
21604 msgid "lvremove"
21605 msgstr ""
21606
21607 # type: verbatim
21608 #: ../fish/guestfish-actions.pod:2562
21609 #, no-wrap
21610 msgid ""
21611 " lvremove device\n"
21612 "\n"
21613 msgstr ""
21614
21615 # type: =head2
21616 #: ../fish/guestfish-actions.pod:2570
21617 msgid "lvrename"
21618 msgstr ""
21619
21620 # type: verbatim
21621 #: ../fish/guestfish-actions.pod:2572
21622 #, no-wrap
21623 msgid ""
21624 " lvrename logvol newlogvol\n"
21625 "\n"
21626 msgstr ""
21627
21628 # type: =head2
21629 #: ../fish/guestfish-actions.pod:2576
21630 msgid "lvresize"
21631 msgstr ""
21632
21633 # type: verbatim
21634 #: ../fish/guestfish-actions.pod:2578
21635 #, no-wrap
21636 msgid ""
21637 " lvresize device mbytes\n"
21638 "\n"
21639 msgstr ""
21640
21641 # type: =head2
21642 #: ../fish/guestfish-actions.pod:2584
21643 msgid "lvresize-free"
21644 msgstr ""
21645
21646 # type: verbatim
21647 #: ../fish/guestfish-actions.pod:2586
21648 #, no-wrap
21649 msgid ""
21650 " lvresize-free lv percent\n"
21651 "\n"
21652 msgstr ""
21653
21654 # type: =head2
21655 #: ../fish/guestfish-actions.pod:2594
21656 msgid "lvs"
21657 msgstr ""
21658
21659 # type: verbatim
21660 #: ../fish/guestfish-actions.pod:2596
21661 #, no-wrap
21662 msgid ""
21663 " lvs\n"
21664 "\n"
21665 msgstr ""
21666
21667 # type: textblock
21668 #: ../fish/guestfish-actions.pod:2604
21669 msgid "See also L</lvs-full>, L</list-filesystems>."
21670 msgstr ""
21671
21672 # type: =head2
21673 #: ../fish/guestfish-actions.pod:2606
21674 msgid "lvs-full"
21675 msgstr ""
21676
21677 # type: verbatim
21678 #: ../fish/guestfish-actions.pod:2608
21679 #, no-wrap
21680 msgid ""
21681 " lvs-full\n"
21682 "\n"
21683 msgstr ""
21684
21685 # type: =head2
21686 #: ../fish/guestfish-actions.pod:2613
21687 msgid "lvuuid"
21688 msgstr ""
21689
21690 # type: verbatim
21691 #: ../fish/guestfish-actions.pod:2615
21692 #, no-wrap
21693 msgid ""
21694 " lvuuid device\n"
21695 "\n"
21696 msgstr ""
21697
21698 # type: =head2
21699 #: ../fish/guestfish-actions.pod:2619
21700 msgid "lxattrlist"
21701 msgstr ""
21702
21703 # type: verbatim
21704 #: ../fish/guestfish-actions.pod:2621
21705 #, no-wrap
21706 msgid ""
21707 " lxattrlist path 'names ...'\n"
21708 "\n"
21709 msgstr ""
21710
21711 # type: textblock
21712 #: ../fish/guestfish-actions.pod:2637
21713 msgid ""
21714 "This call is intended for programs that want to efficiently list a directory "
21715 "contents without making many round-trips.  See also L</lstatlist> for a "
21716 "similarly efficient call for getting standard stats.  Very long directory "
21717 "listings might cause the protocol message size to be exceeded, causing this "
21718 "call to fail.  The caller must split up such requests into smaller groups of "
21719 "names."
21720 msgstr ""
21721
21722 # type: =head2
21723 #: ../fish/guestfish-actions.pod:2645
21724 msgid "mkdir"
21725 msgstr ""
21726
21727 # type: verbatim
21728 #: ../fish/guestfish-actions.pod:2647
21729 #, no-wrap
21730 msgid ""
21731 " mkdir path\n"
21732 "\n"
21733 msgstr ""
21734
21735 # type: =head2
21736 #: ../fish/guestfish-actions.pod:2651
21737 msgid "mkdir-mode"
21738 msgstr ""
21739
21740 # type: verbatim
21741 #: ../fish/guestfish-actions.pod:2653
21742 #, no-wrap
21743 msgid ""
21744 " mkdir-mode path mode\n"
21745 "\n"
21746 msgstr ""
21747
21748 # type: textblock
21749 #: ../fish/guestfish-actions.pod:2662
21750 msgid "See also L</mkdir>, L</umask>"
21751 msgstr ""
21752
21753 # type: =head2
21754 #: ../fish/guestfish-actions.pod:2664
21755 msgid "mkdir-p"
21756 msgstr ""
21757
21758 # type: verbatim
21759 #: ../fish/guestfish-actions.pod:2666
21760 #, no-wrap
21761 msgid ""
21762 " mkdir-p path\n"
21763 "\n"
21764 msgstr ""
21765
21766 # type: =head2
21767 #: ../fish/guestfish-actions.pod:2671
21768 msgid "mkdtemp"
21769 msgstr ""
21770
21771 # type: verbatim
21772 #: ../fish/guestfish-actions.pod:2673
21773 #, no-wrap
21774 msgid ""
21775 " mkdtemp template\n"
21776 "\n"
21777 msgstr ""
21778
21779 # type: =head2
21780 #: ../fish/guestfish-actions.pod:2694
21781 msgid "mke2fs-J"
21782 msgstr ""
21783
21784 # type: verbatim
21785 #: ../fish/guestfish-actions.pod:2696
21786 #, no-wrap
21787 msgid ""
21788 " mke2fs-J fstype blocksize device journal\n"
21789 "\n"
21790 msgstr ""
21791
21792 # type: textblock
21793 #: ../fish/guestfish-actions.pod:2704
21794 msgid "See also L</mke2journal>."
21795 msgstr ""
21796
21797 # type: =head2
21798 #: ../fish/guestfish-actions.pod:2706
21799 msgid "mke2fs-JL"
21800 msgstr ""
21801
21802 # type: verbatim
21803 #: ../fish/guestfish-actions.pod:2708
21804 #, no-wrap
21805 msgid ""
21806 " mke2fs-JL fstype blocksize device label\n"
21807 "\n"
21808 msgstr ""
21809
21810 # type: textblock
21811 #: ../fish/guestfish-actions.pod:2713
21812 msgid "See also L</mke2journal-L>."
21813 msgstr ""
21814
21815 # type: =head2
21816 #: ../fish/guestfish-actions.pod:2715
21817 msgid "mke2fs-JU"
21818 msgstr ""
21819
21820 # type: verbatim
21821 #: ../fish/guestfish-actions.pod:2717
21822 #, no-wrap
21823 msgid ""
21824 " mke2fs-JU fstype blocksize device uuid\n"
21825 "\n"
21826 msgstr ""
21827
21828 # type: textblock
21829 #: ../fish/guestfish-actions.pod:2722
21830 msgid "See also L</mke2journal-U>."
21831 msgstr ""
21832
21833 # type: =head2
21834 #: ../fish/guestfish-actions.pod:2724
21835 msgid "mke2journal"
21836 msgstr ""
21837
21838 # type: verbatim
21839 #: ../fish/guestfish-actions.pod:2726
21840 #, no-wrap
21841 msgid ""
21842 " mke2journal blocksize device\n"
21843 "\n"
21844 msgstr ""
21845
21846 # type: =head2
21847 #: ../fish/guestfish-actions.pod:2733
21848 msgid "mke2journal-L"
21849 msgstr ""
21850
21851 # type: verbatim
21852 #: ../fish/guestfish-actions.pod:2735
21853 #, no-wrap
21854 msgid ""
21855 " mke2journal-L blocksize label device\n"
21856 "\n"
21857 msgstr ""
21858
21859 # type: =head2
21860 #: ../fish/guestfish-actions.pod:2739
21861 msgid "mke2journal-U"
21862 msgstr ""
21863
21864 # type: verbatim
21865 #: ../fish/guestfish-actions.pod:2741
21866 #, no-wrap
21867 msgid ""
21868 " mke2journal-U blocksize uuid device\n"
21869 "\n"
21870 msgstr ""
21871
21872 # type: =head2
21873 #: ../fish/guestfish-actions.pod:2745
21874 msgid "mkfifo"
21875 msgstr ""
21876
21877 # type: verbatim
21878 #: ../fish/guestfish-actions.pod:2747
21879 #, no-wrap
21880 msgid ""
21881 " mkfifo mode path\n"
21882 "\n"
21883 msgstr ""
21884
21885 # type: textblock
21886 #: ../fish/guestfish-actions.pod:2749
21887 msgid ""
21888 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
21889 "is just a convenient wrapper around L</mknod>."
21890 msgstr ""
21891
21892 # type: =head2
21893 #: ../fish/guestfish-actions.pod:2755
21894 msgid "mkfs"
21895 msgstr ""
21896
21897 # type: verbatim
21898 #: ../fish/guestfish-actions.pod:2757
21899 #, no-wrap
21900 msgid ""
21901 " mkfs fstype device\n"
21902 "\n"
21903 msgstr ""
21904
21905 # type: =head2
21906 #: ../fish/guestfish-actions.pod:2763
21907 msgid "mkfs-b"
21908 msgstr ""
21909
21910 # type: verbatim
21911 #: ../fish/guestfish-actions.pod:2765
21912 #, no-wrap
21913 msgid ""
21914 " mkfs-b fstype blocksize device\n"
21915 "\n"
21916 msgstr ""
21917
21918 # type: textblock
21919 #: ../fish/guestfish-actions.pod:2767
21920 msgid ""
21921 "This call is similar to L</mkfs>, but it allows you to control the block "
21922 "size of the resulting filesystem.  Supported block sizes depend on the "
21923 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
21924 msgstr ""
21925
21926 # type: =head2
21927 #: ../fish/guestfish-actions.pod:2775
21928 msgid "mkmountpoint"
21929 msgstr ""
21930
21931 # type: verbatim
21932 #: ../fish/guestfish-actions.pod:2777
21933 #, no-wrap
21934 msgid ""
21935 " mkmountpoint exemptpath\n"
21936 "\n"
21937 msgstr ""
21938
21939 # type: textblock
21940 #: ../fish/guestfish-actions.pod:2779
21941 msgid ""
21942 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
21943 "to create extra mountpoints before mounting the first filesystem."
21944 msgstr ""
21945
21946 # type: textblock
21947 #: ../fish/guestfish-actions.pod:2803
21948 msgid ""
21949 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
21950 "unexpected errors if you try to mix these calls.  It is safest to manually "
21951 "unmount filesystems and remove mountpoints after use."
21952 msgstr ""
21953
21954 # type: textblock
21955 #: ../fish/guestfish-actions.pod:2807
21956 msgid ""
21957 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
21958 "for this to work for manual mountpoints, you must ensure that the innermost "
21959 "mountpoints have the longest pathnames, as in the example code above."
21960 msgstr ""
21961
21962 # type: textblock
21963 #: ../fish/guestfish-actions.pod:2814
21964 msgid ""
21965 "Autosync [see L</set-autosync>, this is set by default on handles] means "
21966 "that L</umount-all> is called when the handle is closed which can also "
21967 "trigger these issues."
21968 msgstr ""
21969
21970 # type: =head2
21971 #: ../fish/guestfish-actions.pod:2818
21972 msgid "mknod"
21973 msgstr ""
21974
21975 # type: verbatim
21976 #: ../fish/guestfish-actions.pod:2820
21977 #, no-wrap
21978 msgid ""
21979 " mknod mode devmajor devminor path\n"
21980 "\n"
21981 msgstr ""
21982
21983 # type: textblock
21984 #: ../fish/guestfish-actions.pod:2830
21985 msgid ""
21986 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
21987 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
21988 "regular file).  These constants are available in the standard Linux header "
21989 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
21990 "wrappers around this command which bitwise OR in the appropriate constant "
21991 "for you."
21992 msgstr ""
21993
21994 # type: =head2
21995 #: ../fish/guestfish-actions.pod:2840
21996 msgid "mknod-b"
21997 msgstr ""
21998
21999 # type: verbatim
22000 #: ../fish/guestfish-actions.pod:2842
22001 #, no-wrap
22002 msgid ""
22003 " mknod-b mode devmajor devminor path\n"
22004 "\n"
22005 msgstr ""
22006
22007 # type: textblock
22008 #: ../fish/guestfish-actions.pod:2844
22009 msgid ""
22010 "This call creates a block device node called C<path> with mode C<mode> and "
22011 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
22012 "wrapper around L</mknod>."
22013 msgstr ""
22014
22015 # type: =head2
22016 #: ../fish/guestfish-actions.pod:2850
22017 msgid "mknod-c"
22018 msgstr ""
22019
22020 # type: verbatim
22021 #: ../fish/guestfish-actions.pod:2852
22022 #, no-wrap
22023 msgid ""
22024 " mknod-c mode devmajor devminor path\n"
22025 "\n"
22026 msgstr ""
22027
22028 # type: textblock
22029 #: ../fish/guestfish-actions.pod:2854
22030 msgid ""
22031 "This call creates a char device node called C<path> with mode C<mode> and "
22032 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
22033 "wrapper around L</mknod>."
22034 msgstr ""
22035
22036 # type: =head2
22037 #: ../fish/guestfish-actions.pod:2860
22038 msgid "mkswap"
22039 msgstr ""
22040
22041 # type: verbatim
22042 #: ../fish/guestfish-actions.pod:2862
22043 #, no-wrap
22044 msgid ""
22045 " mkswap device\n"
22046 "\n"
22047 msgstr ""
22048
22049 # type: =head2
22050 #: ../fish/guestfish-actions.pod:2866
22051 msgid "mkswap-L"
22052 msgstr ""
22053
22054 # type: verbatim
22055 #: ../fish/guestfish-actions.pod:2868
22056 #, no-wrap
22057 msgid ""
22058 " mkswap-L label device\n"
22059 "\n"
22060 msgstr ""
22061
22062 # type: =head2
22063 #: ../fish/guestfish-actions.pod:2876
22064 msgid "mkswap-U"
22065 msgstr ""
22066
22067 # type: verbatim
22068 #: ../fish/guestfish-actions.pod:2878
22069 #, no-wrap
22070 msgid ""
22071 " mkswap-U uuid device\n"
22072 "\n"
22073 msgstr ""
22074
22075 # type: =head2
22076 #: ../fish/guestfish-actions.pod:2882
22077 msgid "mkswap-file"
22078 msgstr ""
22079
22080 # type: verbatim
22081 #: ../fish/guestfish-actions.pod:2884
22082 #, no-wrap
22083 msgid ""
22084 " mkswap-file path\n"
22085 "\n"
22086 msgstr ""
22087
22088 # type: textblock
22089 #: ../fish/guestfish-actions.pod:2888
22090 msgid ""
22091 "This command just writes a swap file signature to an existing file.  To "
22092 "create the file itself, use something like L</fallocate>."
22093 msgstr ""
22094
22095 # type: =head2
22096 #: ../fish/guestfish-actions.pod:2891
22097 msgid "modprobe"
22098 msgstr ""
22099
22100 # type: verbatim
22101 #: ../fish/guestfish-actions.pod:2893
22102 #, no-wrap
22103 msgid ""
22104 " modprobe modulename\n"
22105 "\n"
22106 msgstr ""
22107
22108 # type: =head2
22109 #: ../fish/guestfish-actions.pod:2900
22110 msgid "mount"
22111 msgstr ""
22112
22113 # type: verbatim
22114 #: ../fish/guestfish-actions.pod:2902
22115 #, no-wrap
22116 msgid ""
22117 " mount device mountpoint\n"
22118 "\n"
22119 msgstr ""
22120
22121 # type: textblock
22122 #: ../fish/guestfish-actions.pod:2918
22123 msgid ""
22124 "B<Important note:> When you use this call, the filesystem options C<sync> "
22125 "and C<noatime> are set implicitly.  This was originally done because we "
22126 "thought it would improve reliability, but it turns out that I<-o sync> has a "
22127 "very large negative performance impact and negligible effect on "
22128 "reliability.  Therefore we recommend that you avoid using L</mount> in any "
22129 "code that needs performance, and instead use L</mount-options> (use an empty "
22130 "string for the first parameter if you don't want any options)."
22131 msgstr ""
22132
22133 # type: =head2
22134 #: ../fish/guestfish-actions.pod:2928
22135 msgid "mount-loop"
22136 msgstr ""
22137
22138 # type: verbatim
22139 #: ../fish/guestfish-actions.pod:2930
22140 #, no-wrap
22141 msgid ""
22142 " mount-loop file mountpoint\n"
22143 "\n"
22144 msgstr ""
22145
22146 # type: =head2
22147 #: ../fish/guestfish-actions.pod:2936
22148 msgid "mount-options"
22149 msgstr ""
22150
22151 # type: verbatim
22152 #: ../fish/guestfish-actions.pod:2938
22153 #, no-wrap
22154 msgid ""
22155 " mount-options options device mountpoint\n"
22156 "\n"
22157 msgstr ""
22158
22159 # type: textblock
22160 #: ../fish/guestfish-actions.pod:2940
22161 msgid ""
22162 "This is the same as the L</mount> command, but it allows you to set the "
22163 "mount options as for the L<mount(8)> I<-o> flag."
22164 msgstr ""
22165
22166 # type: =head2
22167 #: ../fish/guestfish-actions.pod:2948
22168 msgid "mount-ro"
22169 msgstr ""
22170
22171 # type: verbatim
22172 #: ../fish/guestfish-actions.pod:2950
22173 #, no-wrap
22174 msgid ""
22175 " mount-ro device mountpoint\n"
22176 "\n"
22177 msgstr ""
22178
22179 # type: textblock
22180 #: ../fish/guestfish-actions.pod:2952
22181 msgid ""
22182 "This is the same as the L</mount> command, but it mounts the filesystem with "
22183 "the read-only (I<-o ro>) flag."
22184 msgstr ""
22185
22186 # type: =head2
22187 #: ../fish/guestfish-actions.pod:2955
22188 msgid "mount-vfs"
22189 msgstr ""
22190
22191 # type: verbatim
22192 #: ../fish/guestfish-actions.pod:2957
22193 #, no-wrap
22194 msgid ""
22195 " mount-vfs options vfstype device mountpoint\n"
22196 "\n"
22197 msgstr ""
22198
22199 # type: textblock
22200 #: ../fish/guestfish-actions.pod:2959
22201 msgid ""
22202 "This is the same as the L</mount> command, but it allows you to set both the "
22203 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
22204 msgstr ""
22205
22206 # type: =head2
22207 #: ../fish/guestfish-actions.pod:2963
22208 msgid "mountpoints"
22209 msgstr ""
22210
22211 # type: verbatim
22212 #: ../fish/guestfish-actions.pod:2965
22213 #, no-wrap
22214 msgid ""
22215 " mountpoints\n"
22216 "\n"
22217 msgstr ""
22218
22219 # type: textblock
22220 #: ../fish/guestfish-actions.pod:2967
22221 msgid ""
22222 "This call is similar to L</mounts>.  That call returns a list of devices.  "
22223 "This one returns a hash table (map) of device name to directory where the "
22224 "device is mounted."
22225 msgstr ""
22226
22227 # type: =head2
22228 #: ../fish/guestfish-actions.pod:2971
22229 msgid "mounts"
22230 msgstr ""
22231
22232 # type: verbatim
22233 #: ../fish/guestfish-actions.pod:2973
22234 #, no-wrap
22235 msgid ""
22236 " mounts\n"
22237 "\n"
22238 msgstr ""
22239
22240 # type: textblock
22241 #: ../fish/guestfish-actions.pod:2980
22242 msgid "See also: L</mountpoints>"
22243 msgstr ""
22244
22245 # type: =head2
22246 #: ../fish/guestfish-actions.pod:2982
22247 msgid "mv"
22248 msgstr ""
22249
22250 # type: verbatim
22251 #: ../fish/guestfish-actions.pod:2984
22252 #, no-wrap
22253 msgid ""
22254 " mv src dest\n"
22255 "\n"
22256 msgstr ""
22257
22258 # type: =head2
22259 #: ../fish/guestfish-actions.pod:2989
22260 msgid "ntfs-3g-probe"
22261 msgstr ""
22262
22263 # type: verbatim
22264 #: ../fish/guestfish-actions.pod:2991
22265 #, no-wrap
22266 msgid ""
22267 " ntfs-3g-probe true|false device\n"
22268 "\n"
22269 msgstr ""
22270
22271 # type: =head2
22272 #: ../fish/guestfish-actions.pod:3005
22273 msgid "ntfsresize"
22274 msgstr ""
22275
22276 # type: verbatim
22277 #: ../fish/guestfish-actions.pod:3007
22278 #, no-wrap
22279 msgid ""
22280 " ntfsresize device\n"
22281 "\n"
22282 msgstr ""
22283
22284 # type: =head2
22285 #: ../fish/guestfish-actions.pod:3013
22286 msgid "ntfsresize-size"
22287 msgstr ""
22288
22289 # type: verbatim
22290 #: ../fish/guestfish-actions.pod:3015
22291 #, no-wrap
22292 msgid ""
22293 " ntfsresize-size device size\n"
22294 "\n"
22295 msgstr ""
22296
22297 # type: textblock
22298 #: ../fish/guestfish-actions.pod:3017
22299 msgid ""
22300 "This command is the same as L</ntfsresize> except that it allows you to "
22301 "specify the new size (in bytes) explicitly."
22302 msgstr ""
22303
22304 # type: =head2
22305 #: ../fish/guestfish-actions.pod:3020
22306 msgid "part-add"
22307 msgstr ""
22308
22309 # type: verbatim
22310 #: ../fish/guestfish-actions.pod:3022
22311 #, no-wrap
22312 msgid ""
22313 " part-add device prlogex startsect endsect\n"
22314 "\n"
22315 msgstr ""
22316
22317 # type: textblock
22318 #: ../fish/guestfish-actions.pod:3024
22319 msgid ""
22320 "This command adds a partition to C<device>.  If there is no partition table "
22321 "on the device, call L</part-init> first."
22322 msgstr ""
22323
22324 # type: textblock
22325 #: ../fish/guestfish-actions.pod:3036
22326 msgid ""
22327 "Creating a partition which covers the whole disk is not so easy.  Use "
22328 "L</part-disk> to do that."
22329 msgstr ""
22330
22331 # type: =head2
22332 #: ../fish/guestfish-actions.pod:3039
22333 msgid "part-del"
22334 msgstr ""
22335
22336 # type: verbatim
22337 #: ../fish/guestfish-actions.pod:3041
22338 #, no-wrap
22339 msgid ""
22340 " part-del device partnum\n"
22341 "\n"
22342 msgstr ""
22343
22344 # type: =head2
22345 #: ../fish/guestfish-actions.pod:3049
22346 msgid "part-disk"
22347 msgstr ""
22348
22349 # type: verbatim
22350 #: ../fish/guestfish-actions.pod:3051
22351 #, no-wrap
22352 msgid ""
22353 " part-disk device parttype\n"
22354 "\n"
22355 msgstr ""
22356
22357 # type: textblock
22358 #: ../fish/guestfish-actions.pod:3053
22359 msgid ""
22360 "This command is simply a combination of L</part-init> followed by "
22361 "L</part-add> to create a single primary partition covering the whole disk."
22362 msgstr ""
22363
22364 # type: textblock
22365 #: ../fish/guestfish-actions.pod:3057
22366 msgid ""
22367 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
22368 "possible values are described in L</part-init>."
22369 msgstr ""
22370
22371 # type: =head2
22372 #: ../fish/guestfish-actions.pod:3063
22373 msgid "part-get-bootable"
22374 msgstr ""
22375
22376 # type: verbatim
22377 #: ../fish/guestfish-actions.pod:3065
22378 #, no-wrap
22379 msgid ""
22380 " part-get-bootable device partnum\n"
22381 "\n"
22382 msgstr ""
22383
22384 # type: textblock
22385 #: ../fish/guestfish-actions.pod:3070
22386 msgid "See also L</part-set-bootable>."
22387 msgstr ""
22388
22389 # type: =head2
22390 #: ../fish/guestfish-actions.pod:3072
22391 msgid "part-get-mbr-id"
22392 msgstr ""
22393
22394 # type: verbatim
22395 #: ../fish/guestfish-actions.pod:3074
22396 #, no-wrap
22397 msgid ""
22398 " part-get-mbr-id device partnum\n"
22399 "\n"
22400 msgstr ""
22401
22402 # type: textblock
22403 #: ../fish/guestfish-actions.pod:3079 ../fish/guestfish-actions.pod:3217
22404 msgid ""
22405 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
22406 "undefined results for other partition table types (see "
22407 "L</part-get-parttype>)."
22408 msgstr ""
22409
22410 # type: =head2
22411 #: ../fish/guestfish-actions.pod:3083
22412 msgid "part-get-parttype"
22413 msgstr ""
22414
22415 # type: verbatim
22416 #: ../fish/guestfish-actions.pod:3085
22417 #, no-wrap
22418 msgid ""
22419 " part-get-parttype device\n"
22420 "\n"
22421 msgstr ""
22422
22423 # type: textblock
22424 #: ../fish/guestfish-actions.pod:3090
22425 msgid ""
22426 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
22427 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
22428 "possible, although unusual.  See L</part-init> for a full list."
22429 msgstr ""
22430
22431 # type: =head2
22432 #: ../fish/guestfish-actions.pod:3095
22433 msgid "part-init"
22434 msgstr ""
22435
22436 # type: verbatim
22437 #: ../fish/guestfish-actions.pod:3097
22438 #, no-wrap
22439 msgid ""
22440 " part-init device parttype\n"
22441 "\n"
22442 msgstr ""
22443
22444 # type: textblock
22445 #: ../fish/guestfish-actions.pod:3103
22446 msgid ""
22447 "Initially there are no partitions.  Following this, you should call "
22448 "L</part-add> for each partition required."
22449 msgstr ""
22450
22451 # type: =head2
22452 #: ../fish/guestfish-actions.pod:3166
22453 msgid "part-list"
22454 msgstr ""
22455
22456 # type: verbatim
22457 #: ../fish/guestfish-actions.pod:3168
22458 #, no-wrap
22459 msgid ""
22460 " part-list device\n"
22461 "\n"
22462 msgstr ""
22463
22464 # type: textblock
22465 #: ../fish/guestfish-actions.pod:3183
22466 msgid ""
22467 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
22468 "the device's sector size, see L</blockdev-getss>."
22469 msgstr ""
22470
22471 # type: =head2
22472 #: ../fish/guestfish-actions.pod:3196
22473 msgid "part-set-bootable"
22474 msgstr ""
22475
22476 # type: verbatim
22477 #: ../fish/guestfish-actions.pod:3198
22478 #, no-wrap
22479 msgid ""
22480 " part-set-bootable device partnum true|false\n"
22481 "\n"
22482 msgstr ""
22483
22484 # type: =head2
22485 #: ../fish/guestfish-actions.pod:3207
22486 msgid "part-set-mbr-id"
22487 msgstr ""
22488
22489 # type: verbatim
22490 #: ../fish/guestfish-actions.pod:3209
22491 #, no-wrap
22492 msgid ""
22493 " part-set-mbr-id device partnum idbyte\n"
22494 "\n"
22495 msgstr ""
22496
22497 # type: =head2
22498 #: ../fish/guestfish-actions.pod:3221
22499 msgid "part-set-name"
22500 msgstr ""
22501
22502 # type: verbatim
22503 #: ../fish/guestfish-actions.pod:3223
22504 #, no-wrap
22505 msgid ""
22506 " part-set-name device partnum name\n"
22507 "\n"
22508 msgstr ""
22509
22510 # type: =head2
22511 #: ../fish/guestfish-actions.pod:3231
22512 msgid "part-to-dev"
22513 msgstr ""
22514
22515 # type: verbatim
22516 #: ../fish/guestfish-actions.pod:3233
22517 #, no-wrap
22518 msgid ""
22519 " part-to-dev partition\n"
22520 "\n"
22521 msgstr ""
22522
22523 # type: textblock
22524 #: ../fish/guestfish-actions.pod:3239
22525 msgid ""
22526 "The named partition must exist, for example as a string returned from "
22527 "L</list-partitions>."
22528 msgstr ""
22529
22530 # type: =head2
22531 #: ../fish/guestfish-actions.pod:3242
22532 msgid "ping-daemon"
22533 msgstr ""
22534
22535 # type: verbatim
22536 #: ../fish/guestfish-actions.pod:3244
22537 #, no-wrap
22538 msgid ""
22539 " ping-daemon\n"
22540 "\n"
22541 msgstr ""
22542
22543 # type: =head2
22544 #: ../fish/guestfish-actions.pod:3251
22545 msgid "pread"
22546 msgstr ""
22547
22548 # type: verbatim
22549 #: ../fish/guestfish-actions.pod:3253
22550 #, no-wrap
22551 msgid ""
22552 " pread path count offset\n"
22553 "\n"
22554 msgstr ""
22555
22556 # type: textblock
22557 #: ../fish/guestfish-actions.pod:3261
22558 msgid "See also L</pwrite>, L</pread-device>."
22559 msgstr ""
22560
22561 # type: =head2
22562 #: ../fish/guestfish-actions.pod:3266
22563 msgid "pread-device"
22564 msgstr ""
22565
22566 # type: verbatim
22567 #: ../fish/guestfish-actions.pod:3268
22568 #, no-wrap
22569 msgid ""
22570 " pread-device device count offset\n"
22571 "\n"
22572 msgstr ""
22573
22574 # type: textblock
22575 #: ../fish/guestfish-actions.pod:3276
22576 msgid "See also L</pread>."
22577 msgstr ""
22578
22579 # type: =head2
22580 #: ../fish/guestfish-actions.pod:3281
22581 msgid "pvcreate"
22582 msgstr ""
22583
22584 # type: verbatim
22585 #: ../fish/guestfish-actions.pod:3283
22586 #, no-wrap
22587 msgid ""
22588 " pvcreate device\n"
22589 "\n"
22590 msgstr ""
22591
22592 # type: =head2
22593 #: ../fish/guestfish-actions.pod:3289
22594 msgid "pvremove"
22595 msgstr ""
22596
22597 # type: verbatim
22598 #: ../fish/guestfish-actions.pod:3291
22599 #, no-wrap
22600 msgid ""
22601 " pvremove device\n"
22602 "\n"
22603 msgstr ""
22604
22605 # type: =head2
22606 #: ../fish/guestfish-actions.pod:3300
22607 msgid "pvresize"
22608 msgstr ""
22609
22610 # type: verbatim
22611 #: ../fish/guestfish-actions.pod:3302
22612 #, no-wrap
22613 msgid ""
22614 " pvresize device\n"
22615 "\n"
22616 msgstr ""
22617
22618 # type: =head2
22619 #: ../fish/guestfish-actions.pod:3307
22620 msgid "pvresize-size"
22621 msgstr ""
22622
22623 # type: verbatim
22624 #: ../fish/guestfish-actions.pod:3309
22625 #, no-wrap
22626 msgid ""
22627 " pvresize-size device size\n"
22628 "\n"
22629 msgstr ""
22630
22631 # type: textblock
22632 #: ../fish/guestfish-actions.pod:3311
22633 msgid ""
22634 "This command is the same as L</pvresize> except that it allows you to "
22635 "specify the new size (in bytes) explicitly."
22636 msgstr ""
22637
22638 # type: =head2
22639 #: ../fish/guestfish-actions.pod:3314
22640 msgid "pvs"
22641 msgstr ""
22642
22643 # type: verbatim
22644 #: ../fish/guestfish-actions.pod:3316
22645 #, no-wrap
22646 msgid ""
22647 " pvs\n"
22648 "\n"
22649 msgstr ""
22650
22651 # type: textblock
22652 #: ../fish/guestfish-actions.pod:3324
22653 msgid "See also L</pvs-full>."
22654 msgstr ""
22655
22656 # type: =head2
22657 #: ../fish/guestfish-actions.pod:3326
22658 msgid "pvs-full"
22659 msgstr ""
22660
22661 # type: verbatim
22662 #: ../fish/guestfish-actions.pod:3328
22663 #, no-wrap
22664 msgid ""
22665 " pvs-full\n"
22666 "\n"
22667 msgstr ""
22668
22669 # type: =head2
22670 #: ../fish/guestfish-actions.pod:3333
22671 msgid "pvuuid"
22672 msgstr ""
22673
22674 # type: verbatim
22675 #: ../fish/guestfish-actions.pod:3335
22676 #, no-wrap
22677 msgid ""
22678 " pvuuid device\n"
22679 "\n"
22680 msgstr ""
22681
22682 # type: =head2
22683 #: ../fish/guestfish-actions.pod:3339
22684 msgid "pwrite"
22685 msgstr ""
22686
22687 # type: verbatim
22688 #: ../fish/guestfish-actions.pod:3341
22689 #, no-wrap
22690 msgid ""
22691 " pwrite path content offset\n"
22692 "\n"
22693 msgstr ""
22694
22695 # type: textblock
22696 #: ../fish/guestfish-actions.pod:3352
22697 msgid "See also L</pread>, L</pwrite-device>."
22698 msgstr ""
22699
22700 # type: =head2
22701 #: ../fish/guestfish-actions.pod:3357
22702 msgid "pwrite-device"
22703 msgstr ""
22704
22705 # type: verbatim
22706 #: ../fish/guestfish-actions.pod:3359
22707 #, no-wrap
22708 msgid ""
22709 " pwrite-device device content offset\n"
22710 "\n"
22711 msgstr ""
22712
22713 # type: textblock
22714 #: ../fish/guestfish-actions.pod:3369
22715 msgid "See also L</pwrite>."
22716 msgstr ""
22717
22718 # type: =head2
22719 #: ../fish/guestfish-actions.pod:3374
22720 msgid "read-file"
22721 msgstr ""
22722
22723 # type: verbatim
22724 #: ../fish/guestfish-actions.pod:3376
22725 #, no-wrap
22726 msgid ""
22727 " read-file path\n"
22728 "\n"
22729 msgstr ""
22730
22731 # type: textblock
22732 #: ../fish/guestfish-actions.pod:3381
22733 msgid ""
22734 "Unlike L</cat>, this function can correctly handle files that contain "
22735 "embedded ASCII NUL characters.  However unlike L</download>, this function "
22736 "is limited in the total size of file that can be handled."
22737 msgstr ""
22738
22739 # type: =head2
22740 #: ../fish/guestfish-actions.pod:3389
22741 msgid "read-lines"
22742 msgstr ""
22743
22744 # type: verbatim
22745 #: ../fish/guestfish-actions.pod:3391
22746 #, no-wrap
22747 msgid ""
22748 " read-lines path\n"
22749 "\n"
22750 msgstr ""
22751
22752 # type: textblock
22753 #: ../fish/guestfish-actions.pod:3398
22754 msgid ""
22755 "Note that this function cannot correctly handle binary files (specifically, "
22756 "files containing C<\\0> character which is treated as end of line).  For "
22757 "those you need to use the L</read-file> function which has a more complex "
22758 "interface."
22759 msgstr ""
22760
22761 # type: =head2
22762 #: ../fish/guestfish-actions.pod:3403
22763 msgid "readdir"
22764 msgstr ""
22765
22766 # type: verbatim
22767 #: ../fish/guestfish-actions.pod:3405
22768 #, no-wrap
22769 msgid ""
22770 " readdir dir\n"
22771 "\n"
22772 msgstr ""
22773
22774 # type: textblock
22775 #: ../fish/guestfish-actions.pod:3457
22776 msgid ""
22777 "This function is primarily intended for use by programs.  To get a simple "
22778 "list of names, use L</ls>.  To get a printable directory for human "
22779 "consumption, use L</ll>."
22780 msgstr ""
22781
22782 # type: =head2
22783 #: ../fish/guestfish-actions.pod:3461
22784 msgid "readlink"
22785 msgstr ""
22786
22787 # type: verbatim
22788 #: ../fish/guestfish-actions.pod:3463
22789 #, no-wrap
22790 msgid ""
22791 " readlink path\n"
22792 "\n"
22793 msgstr ""
22794
22795 # type: =head2
22796 #: ../fish/guestfish-actions.pod:3467
22797 msgid "readlinklist"
22798 msgstr ""
22799
22800 # type: verbatim
22801 #: ../fish/guestfish-actions.pod:3469
22802 #, no-wrap
22803 msgid ""
22804 " readlinklist path 'names ...'\n"
22805 "\n"
22806 msgstr ""
22807
22808 # type: =head2
22809 #: ../fish/guestfish-actions.pod:3493
22810 msgid "realpath"
22811 msgstr ""
22812
22813 # type: verbatim
22814 #: ../fish/guestfish-actions.pod:3495
22815 #, no-wrap
22816 msgid ""
22817 " realpath path\n"
22818 "\n"
22819 msgstr ""
22820
22821 # type: =head2
22822 #: ../fish/guestfish-actions.pod:3500
22823 msgid "removexattr"
22824 msgstr ""
22825
22826 # type: verbatim
22827 #: ../fish/guestfish-actions.pod:3502
22828 #, no-wrap
22829 msgid ""
22830 " removexattr xattr path\n"
22831 "\n"
22832 msgstr ""
22833
22834 # type: textblock
22835 #: ../fish/guestfish-actions.pod:3507
22836 msgid "See also: L</lremovexattr>, L<attr(5)>."
22837 msgstr ""
22838
22839 # type: =head2
22840 #: ../fish/guestfish-actions.pod:3509
22841 msgid "resize2fs"
22842 msgstr ""
22843
22844 # type: verbatim
22845 #: ../fish/guestfish-actions.pod:3511
22846 #, no-wrap
22847 msgid ""
22848 " resize2fs device\n"
22849 "\n"
22850 msgstr ""
22851
22852 # type: textblock
22853 #: ../fish/guestfish-actions.pod:3516
22854 msgid ""
22855 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
22856 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
22857 "gives an error about this and sometimes not.  In any case, it is always safe "
22858 "to call L</e2fsck-f> before calling this function."
22859 msgstr ""
22860
22861 # type: =head2
22862 #: ../fish/guestfish-actions.pod:3522
22863 msgid "resize2fs-size"
22864 msgstr ""
22865
22866 # type: verbatim
22867 #: ../fish/guestfish-actions.pod:3524
22868 #, no-wrap
22869 msgid ""
22870 " resize2fs-size device size\n"
22871 "\n"
22872 msgstr ""
22873
22874 # type: textblock
22875 #: ../fish/guestfish-actions.pod:3526
22876 msgid ""
22877 "This command is the same as L</resize2fs> except that it allows you to "
22878 "specify the new size (in bytes) explicitly."
22879 msgstr ""
22880
22881 # type: =head2
22882 #: ../fish/guestfish-actions.pod:3529
22883 msgid "rm"
22884 msgstr ""
22885
22886 # type: verbatim
22887 #: ../fish/guestfish-actions.pod:3531
22888 #, no-wrap
22889 msgid ""
22890 " rm path\n"
22891 "\n"
22892 msgstr ""
22893
22894 # type: =head2
22895 #: ../fish/guestfish-actions.pod:3535
22896 msgid "rm-rf"
22897 msgstr ""
22898
22899 # type: verbatim
22900 #: ../fish/guestfish-actions.pod:3537
22901 #, no-wrap
22902 msgid ""
22903 " rm-rf path\n"
22904 "\n"
22905 msgstr ""
22906
22907 # type: =head2
22908 #: ../fish/guestfish-actions.pod:3543
22909 msgid "rmdir"
22910 msgstr ""
22911
22912 # type: verbatim
22913 #: ../fish/guestfish-actions.pod:3545
22914 #, no-wrap
22915 msgid ""
22916 " rmdir path\n"
22917 "\n"
22918 msgstr ""
22919
22920 # type: =head2
22921 #: ../fish/guestfish-actions.pod:3549
22922 msgid "rmmountpoint"
22923 msgstr ""
22924
22925 # type: verbatim
22926 #: ../fish/guestfish-actions.pod:3551
22927 #, no-wrap
22928 msgid ""
22929 " rmmountpoint exemptpath\n"
22930 "\n"
22931 msgstr ""
22932
22933 # type: textblock
22934 #: ../fish/guestfish-actions.pod:3553
22935 msgid ""
22936 "This calls removes a mountpoint that was previously created with "
22937 "L</mkmountpoint>.  See L</mkmountpoint> for full details."
22938 msgstr ""
22939
22940 # type: =head2
22941 #: ../fish/guestfish-actions.pod:3557
22942 msgid "scrub-device"
22943 msgstr ""
22944
22945 # type: verbatim
22946 #: ../fish/guestfish-actions.pod:3559
22947 #, no-wrap
22948 msgid ""
22949 " scrub-device device\n"
22950 "\n"
22951 msgstr ""
22952
22953 # type: =head2
22954 #: ../fish/guestfish-actions.pod:3570
22955 msgid "scrub-file"
22956 msgstr ""
22957
22958 # type: verbatim
22959 #: ../fish/guestfish-actions.pod:3572
22960 #, no-wrap
22961 msgid ""
22962 " scrub-file file\n"
22963 "\n"
22964 msgstr ""
22965
22966 # type: =head2
22967 #: ../fish/guestfish-actions.pod:3582
22968 msgid "scrub-freespace"
22969 msgstr ""
22970
22971 # type: verbatim
22972 #: ../fish/guestfish-actions.pod:3584
22973 #, no-wrap
22974 msgid ""
22975 " scrub-freespace dir\n"
22976 "\n"
22977 msgstr ""
22978
22979 # type: textblock
22980 #: ../fish/guestfish-actions.pod:3586
22981 msgid ""
22982 "This command creates the directory C<dir> and then fills it with files until "
22983 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
22984 "deletes them.  The intention is to scrub any free space on the partition "
22985 "containing C<dir>."
22986 msgstr ""
22987
22988 # type: =head2
22989 #: ../fish/guestfish-actions.pod:3595
22990 msgid "set-append"
22991 msgstr ""
22992
22993 # type: =head2
22994 #: ../fish/guestfish-actions.pod:3597
22995 msgid "append"
22996 msgstr ""
22997
22998 # type: verbatim
22999 #: ../fish/guestfish-actions.pod:3599
23000 #, no-wrap
23001 msgid ""
23002 " set-append append\n"
23003 "\n"
23004 msgstr ""
23005
23006 # type: =head2
23007 #: ../fish/guestfish-actions.pod:3610
23008 msgid "set-autosync"
23009 msgstr ""
23010
23011 # type: =head2
23012 #: ../fish/guestfish-actions.pod:3612
23013 msgid "autosync"
23014 msgstr ""
23015
23016 # type: verbatim
23017 #: ../fish/guestfish-actions.pod:3614
23018 #, no-wrap
23019 msgid ""
23020 " set-autosync true|false\n"
23021 "\n"
23022 msgstr ""
23023
23024 # type: textblock
23025 #: ../fish/guestfish-actions.pod:3616
23026 msgid ""
23027 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
23028 "effort attempt to run L</umount-all> followed by L</sync> when the handle is "
23029 "closed (also if the program exits without closing handles)."
23030 msgstr ""
23031
23032 # type: =head2
23033 #: ../fish/guestfish-actions.pod:3624
23034 msgid "set-direct"
23035 msgstr ""
23036
23037 # type: =head2
23038 #: ../fish/guestfish-actions.pod:3626
23039 msgid "direct"
23040 msgstr ""
23041
23042 # type: verbatim
23043 #: ../fish/guestfish-actions.pod:3628
23044 #, no-wrap
23045 msgid ""
23046 " set-direct true|false\n"
23047 "\n"
23048 msgstr ""
23049
23050 # type: textblock
23051 #: ../fish/guestfish-actions.pod:3634
23052 msgid ""
23053 "One consequence of this is that log messages aren't caught by the library "
23054 "and handled by L</set-log-message-callback>, but go straight to stdout."
23055 msgstr ""
23056
23057 # type: =head2
23058 #: ../fish/guestfish-actions.pod:3643
23059 msgid "set-e2label"
23060 msgstr ""
23061
23062 # type: verbatim
23063 #: ../fish/guestfish-actions.pod:3645
23064 #, no-wrap
23065 msgid ""
23066 " set-e2label device label\n"
23067 "\n"
23068 msgstr ""
23069
23070 # type: textblock
23071 #: ../fish/guestfish-actions.pod:3651
23072 msgid ""
23073 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
23074 "label on a filesystem."
23075 msgstr ""
23076
23077 # type: =head2
23078 #: ../fish/guestfish-actions.pod:3654
23079 msgid "set-e2uuid"
23080 msgstr ""
23081
23082 # type: verbatim
23083 #: ../fish/guestfish-actions.pod:3656
23084 #, no-wrap
23085 msgid ""
23086 " set-e2uuid device uuid\n"
23087 "\n"
23088 msgstr ""
23089
23090 # type: textblock
23091 #: ../fish/guestfish-actions.pod:3663
23092 msgid ""
23093 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
23094 "UUID of a filesystem."
23095 msgstr ""
23096
23097 # type: =head2
23098 #: ../fish/guestfish-actions.pod:3666
23099 msgid "set-memsize"
23100 msgstr ""
23101
23102 # type: =head2
23103 #: ../fish/guestfish-actions.pod:3668
23104 msgid "memsize"
23105 msgstr ""
23106
23107 # type: verbatim
23108 #: ../fish/guestfish-actions.pod:3670
23109 #, no-wrap
23110 msgid ""
23111 " set-memsize memsize\n"
23112 "\n"
23113 msgstr ""
23114
23115 # type: textblock
23116 #: ../fish/guestfish-actions.pod:3672
23117 msgid ""
23118 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
23119 "This only has any effect if called before L</launch>."
23120 msgstr ""
23121
23122 # type: =head2
23123 #: ../fish/guestfish-actions.pod:3683
23124 msgid "set-network"
23125 msgstr ""
23126
23127 # type: =head2
23128 #: ../fish/guestfish-actions.pod:3685
23129 msgid "network"
23130 msgstr ""
23131
23132 # type: verbatim
23133 #: ../fish/guestfish-actions.pod:3687
23134 #, no-wrap
23135 msgid ""
23136 " set-network true|false\n"
23137 "\n"
23138 msgstr ""
23139
23140 # type: textblock
23141 #: ../fish/guestfish-actions.pod:3695
23142 msgid "You must call this before calling L</launch>, otherwise it has no effect."
23143 msgstr ""
23144
23145 # type: =head2
23146 #: ../fish/guestfish-actions.pod:3698
23147 msgid "set-path"
23148 msgstr ""
23149
23150 # type: =head2
23151 #: ../fish/guestfish-actions.pod:3700
23152 msgid "path"
23153 msgstr ""
23154
23155 # type: verbatim
23156 #: ../fish/guestfish-actions.pod:3702
23157 #, no-wrap
23158 msgid ""
23159 " set-path searchpath\n"
23160 "\n"
23161 msgstr ""
23162
23163 # type: =head2
23164 #: ../fish/guestfish-actions.pod:3711
23165 msgid "set-qemu"
23166 msgstr ""
23167
23168 # type: =head2
23169 #: ../fish/guestfish-actions.pod:3713
23170 msgid "qemu"
23171 msgstr ""
23172
23173 # type: verbatim
23174 #: ../fish/guestfish-actions.pod:3715
23175 #, no-wrap
23176 msgid ""
23177 " set-qemu qemu\n"
23178 "\n"
23179 msgstr ""
23180
23181 # type: =head2
23182 #: ../fish/guestfish-actions.pod:3735
23183 msgid "set-recovery-proc"
23184 msgstr ""
23185
23186 # type: =head2
23187 #: ../fish/guestfish-actions.pod:3737
23188 msgid "recovery-proc"
23189 msgstr ""
23190
23191 # type: verbatim
23192 #: ../fish/guestfish-actions.pod:3739
23193 #, no-wrap
23194 msgid ""
23195 " set-recovery-proc true|false\n"
23196 "\n"
23197 msgstr ""
23198
23199 # type: textblock
23200 #: ../fish/guestfish-actions.pod:3741
23201 msgid ""
23202 "If this is called with the parameter C<false> then L</launch> does not "
23203 "create a recovery process.  The purpose of the recovery process is to stop "
23204 "runaway qemu processes in the case where the main program aborts abruptly."
23205 msgstr ""
23206
23207 # type: textblock
23208 #: ../fish/guestfish-actions.pod:3746
23209 msgid ""
23210 "This only has any effect if called before L</launch>, and the default is "
23211 "true."
23212 msgstr ""
23213
23214 # type: =head2
23215 #: ../fish/guestfish-actions.pod:3755
23216 msgid "set-selinux"
23217 msgstr ""
23218
23219 # type: =head2
23220 #: ../fish/guestfish-actions.pod:3757
23221 msgid "selinux"
23222 msgstr ""
23223
23224 # type: verbatim
23225 #: ../fish/guestfish-actions.pod:3759
23226 #, no-wrap
23227 msgid ""
23228 " set-selinux true|false\n"
23229 "\n"
23230 msgstr ""
23231
23232 # type: =head2
23233 #: ../fish/guestfish-actions.pod:3770
23234 msgid "set-trace"
23235 msgstr ""
23236
23237 # type: =head2
23238 #: ../fish/guestfish-actions.pod:3772
23239 msgid "trace"
23240 msgstr ""
23241
23242 # type: verbatim
23243 #: ../fish/guestfish-actions.pod:3774
23244 #, no-wrap
23245 msgid ""
23246 " set-trace true|false\n"
23247 "\n"
23248 msgstr ""
23249
23250 # type: =head2
23251 #: ../fish/guestfish-actions.pod:3790
23252 msgid "set-verbose"
23253 msgstr ""
23254
23255 # type: =head2
23256 #: ../fish/guestfish-actions.pod:3792
23257 msgid "verbose"
23258 msgstr ""
23259
23260 # type: verbatim
23261 #: ../fish/guestfish-actions.pod:3794
23262 #, no-wrap
23263 msgid ""
23264 " set-verbose true|false\n"
23265 "\n"
23266 msgstr ""
23267
23268 # type: =head2
23269 #: ../fish/guestfish-actions.pod:3801
23270 msgid "setcon"
23271 msgstr ""
23272
23273 # type: verbatim
23274 #: ../fish/guestfish-actions.pod:3803
23275 #, no-wrap
23276 msgid ""
23277 " setcon context\n"
23278 "\n"
23279 msgstr ""
23280
23281 # type: =head2
23282 #: ../fish/guestfish-actions.pod:3810
23283 msgid "setxattr"
23284 msgstr ""
23285
23286 # type: verbatim
23287 #: ../fish/guestfish-actions.pod:3812
23288 #, no-wrap
23289 msgid ""
23290 " setxattr xattr val vallen path\n"
23291 "\n"
23292 msgstr ""
23293
23294 # type: textblock
23295 #: ../fish/guestfish-actions.pod:3818
23296 msgid "See also: L</lsetxattr>, L<attr(5)>."
23297 msgstr ""
23298
23299 # type: =head2
23300 #: ../fish/guestfish-actions.pod:3820
23301 msgid "sfdisk"
23302 msgstr ""
23303
23304 # type: verbatim
23305 #: ../fish/guestfish-actions.pod:3822
23306 #, no-wrap
23307 msgid ""
23308 " sfdisk device cyls heads sectors 'lines ...'\n"
23309 "\n"
23310 msgstr ""
23311
23312 # type: textblock
23313 #: ../fish/guestfish-actions.pod:3844
23314 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
23315 msgstr ""
23316
23317 # type: =head2
23318 #: ../fish/guestfish-actions.pod:3850
23319 msgid "sfdiskM"
23320 msgstr ""
23321
23322 # type: verbatim
23323 #: ../fish/guestfish-actions.pod:3852
23324 #, no-wrap
23325 msgid ""
23326 " sfdiskM device 'lines ...'\n"
23327 "\n"
23328 msgstr ""
23329
23330 # type: textblock
23331 #: ../fish/guestfish-actions.pod:3854
23332 msgid ""
23333 "This is a simplified interface to the L</sfdisk> command, where partition "
23334 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
23335 "you don't need to specify the cyls, heads and sectors parameters which were "
23336 "rarely if ever used anyway."
23337 msgstr ""
23338
23339 # type: textblock
23340 #: ../fish/guestfish-actions.pod:3860
23341 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
23342 msgstr ""
23343
23344 # type: =head2
23345 #: ../fish/guestfish-actions.pod:3866
23346 msgid "sfdisk-N"
23347 msgstr ""
23348
23349 # type: verbatim
23350 #: ../fish/guestfish-actions.pod:3868
23351 #, no-wrap
23352 msgid ""
23353 " sfdisk-N device partnum cyls heads sectors line\n"
23354 "\n"
23355 msgstr ""
23356
23357 # type: textblock
23358 #: ../fish/guestfish-actions.pod:3873
23359 msgid ""
23360 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
23361 "cyls/heads/sectors parameters."
23362 msgstr ""
23363
23364 # type: textblock
23365 #: ../fish/guestfish-actions.pod:3876
23366 msgid "See also: L</part-add>"
23367 msgstr ""
23368
23369 # type: =head2
23370 #: ../fish/guestfish-actions.pod:3881
23371 msgid "sfdisk-disk-geometry"
23372 msgstr ""
23373
23374 # type: verbatim
23375 #: ../fish/guestfish-actions.pod:3883
23376 #, no-wrap
23377 msgid ""
23378 " sfdisk-disk-geometry device\n"
23379 "\n"
23380 msgstr ""
23381
23382 # type: textblock
23383 #: ../fish/guestfish-actions.pod:3885
23384 msgid ""
23385 "This displays the disk geometry of C<device> read from the partition table.  "
23386 "Especially in the case where the underlying block device has been resized, "
23387 "this can be different from the kernel's idea of the geometry (see "
23388 "L</sfdisk-kernel-geometry>)."
23389 msgstr ""
23390
23391 # type: =head2
23392 #: ../fish/guestfish-actions.pod:3893
23393 msgid "sfdisk-kernel-geometry"
23394 msgstr ""
23395
23396 # type: verbatim
23397 #: ../fish/guestfish-actions.pod:3895
23398 #, no-wrap
23399 msgid ""
23400 " sfdisk-kernel-geometry device\n"
23401 "\n"
23402 msgstr ""
23403
23404 # type: =head2
23405 #: ../fish/guestfish-actions.pod:3902
23406 msgid "sfdisk-l"
23407 msgstr ""
23408
23409 # type: verbatim
23410 #: ../fish/guestfish-actions.pod:3904
23411 #, no-wrap
23412 msgid ""
23413 " sfdisk-l device\n"
23414 "\n"
23415 msgstr ""
23416
23417 # type: textblock
23418 #: ../fish/guestfish-actions.pod:3910
23419 msgid "See also: L</part-list>"
23420 msgstr ""
23421
23422 # type: =head2
23423 #: ../fish/guestfish-actions.pod:3912
23424 msgid "sh"
23425 msgstr ""
23426
23427 # type: verbatim
23428 #: ../fish/guestfish-actions.pod:3914
23429 #, no-wrap
23430 msgid ""
23431 " sh command\n"
23432 "\n"
23433 msgstr ""
23434
23435 # type: textblock
23436 #: ../fish/guestfish-actions.pod:3919
23437 msgid "This is like L</command>, but passes the command to:"
23438 msgstr ""
23439
23440 # type: textblock
23441 #: ../fish/guestfish-actions.pod:3927
23442 msgid "All the provisos about L</command> apply to this call."
23443 msgstr ""
23444
23445 # type: =head2
23446 #: ../fish/guestfish-actions.pod:3929
23447 msgid "sh-lines"
23448 msgstr ""
23449
23450 # type: verbatim
23451 #: ../fish/guestfish-actions.pod:3931
23452 #, no-wrap
23453 msgid ""
23454 " sh-lines command\n"
23455 "\n"
23456 msgstr ""
23457
23458 # type: textblock
23459 #: ../fish/guestfish-actions.pod:3933
23460 msgid "This is the same as L</sh>, but splits the result into a list of lines."
23461 msgstr ""
23462
23463 # type: textblock
23464 #: ../fish/guestfish-actions.pod:3936
23465 msgid "See also: L</command-lines>"
23466 msgstr ""
23467
23468 # type: =head2
23469 #: ../fish/guestfish-actions.pod:3938
23470 msgid "sleep"
23471 msgstr ""
23472
23473 # type: verbatim
23474 #: ../fish/guestfish-actions.pod:3940
23475 #, no-wrap
23476 msgid ""
23477 " sleep secs\n"
23478 "\n"
23479 msgstr ""
23480
23481 # type: =head2
23482 #: ../fish/guestfish-actions.pod:3944
23483 msgid "stat"
23484 msgstr ""
23485
23486 # type: verbatim
23487 #: ../fish/guestfish-actions.pod:3946
23488 #, no-wrap
23489 msgid ""
23490 " stat path\n"
23491 "\n"
23492 msgstr ""
23493
23494 # type: =head2
23495 #: ../fish/guestfish-actions.pod:3952
23496 msgid "statvfs"
23497 msgstr ""
23498
23499 # type: verbatim
23500 #: ../fish/guestfish-actions.pod:3954
23501 #, no-wrap
23502 msgid ""
23503 " statvfs path\n"
23504 "\n"
23505 msgstr ""
23506
23507 # type: =head2
23508 #: ../fish/guestfish-actions.pod:3962
23509 msgid "strings"
23510 msgstr ""
23511
23512 # type: verbatim
23513 #: ../fish/guestfish-actions.pod:3964
23514 #, no-wrap
23515 msgid ""
23516 " strings path\n"
23517 "\n"
23518 msgstr ""
23519
23520 # type: =head2
23521 #: ../fish/guestfish-actions.pod:3972
23522 msgid "strings-e"
23523 msgstr ""
23524
23525 # type: verbatim
23526 #: ../fish/guestfish-actions.pod:3974
23527 #, no-wrap
23528 msgid ""
23529 " strings-e encoding path\n"
23530 "\n"
23531 msgstr ""
23532
23533 # type: textblock
23534 #: ../fish/guestfish-actions.pod:3976
23535 msgid ""
23536 "This is like the L</strings> command, but allows you to specify the encoding "
23537 "of strings that are looked for in the source file C<path>."
23538 msgstr ""
23539
23540 # type: textblock
23541 #: ../fish/guestfish-actions.pod:3986
23542 msgid ""
23543 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
23544 "ISO-8859-X (this is what L</strings> uses)."
23545 msgstr ""
23546
23547 # type: =head2
23548 #: ../fish/guestfish-actions.pod:4018
23549 msgid "swapoff-device"
23550 msgstr ""
23551
23552 # type: verbatim
23553 #: ../fish/guestfish-actions.pod:4020
23554 #, no-wrap
23555 msgid ""
23556 " swapoff-device device\n"
23557 "\n"
23558 msgstr ""
23559
23560 # type: textblock
23561 #: ../fish/guestfish-actions.pod:4022
23562 msgid ""
23563 "This command disables the libguestfs appliance swap device or partition "
23564 "named C<device>.  See L</swapon-device>."
23565 msgstr ""
23566
23567 # type: =head2
23568 #: ../fish/guestfish-actions.pod:4026
23569 msgid "swapoff-file"
23570 msgstr ""
23571
23572 # type: verbatim
23573 #: ../fish/guestfish-actions.pod:4028
23574 #, no-wrap
23575 msgid ""
23576 " swapoff-file file\n"
23577 "\n"
23578 msgstr ""
23579
23580 # type: =head2
23581 #: ../fish/guestfish-actions.pod:4032
23582 msgid "swapoff-label"
23583 msgstr ""
23584
23585 # type: verbatim
23586 #: ../fish/guestfish-actions.pod:4034
23587 #, no-wrap
23588 msgid ""
23589 " swapoff-label label\n"
23590 "\n"
23591 msgstr ""
23592
23593 # type: =head2
23594 #: ../fish/guestfish-actions.pod:4039
23595 msgid "swapoff-uuid"
23596 msgstr ""
23597
23598 # type: verbatim
23599 #: ../fish/guestfish-actions.pod:4041
23600 #, no-wrap
23601 msgid ""
23602 " swapoff-uuid uuid\n"
23603 "\n"
23604 msgstr ""
23605
23606 # type: =head2
23607 #: ../fish/guestfish-actions.pod:4046
23608 msgid "swapon-device"
23609 msgstr ""
23610
23611 # type: verbatim
23612 #: ../fish/guestfish-actions.pod:4048
23613 #, no-wrap
23614 msgid ""
23615 " swapon-device device\n"
23616 "\n"
23617 msgstr ""
23618
23619 # type: textblock
23620 #: ../fish/guestfish-actions.pod:4050
23621 msgid ""
23622 "This command enables the libguestfs appliance to use the swap device or "
23623 "partition named C<device>.  The increased memory is made available for all "
23624 "commands, for example those run using L</command> or L</sh>."
23625 msgstr ""
23626
23627 # type: =head2
23628 #: ../fish/guestfish-actions.pod:4062
23629 msgid "swapon-file"
23630 msgstr ""
23631
23632 # type: verbatim
23633 #: ../fish/guestfish-actions.pod:4064
23634 #, no-wrap
23635 msgid ""
23636 " swapon-file file\n"
23637 "\n"
23638 msgstr ""
23639
23640 # type: textblock
23641 #: ../fish/guestfish-actions.pod:4066
23642 msgid "This command enables swap to a file.  See L</swapon-device> for other notes."
23643 msgstr ""
23644
23645 # type: =head2
23646 #: ../fish/guestfish-actions.pod:4069
23647 msgid "swapon-label"
23648 msgstr ""
23649
23650 # type: verbatim
23651 #: ../fish/guestfish-actions.pod:4071
23652 #, no-wrap
23653 msgid ""
23654 " swapon-label label\n"
23655 "\n"
23656 msgstr ""
23657
23658 # type: textblock
23659 #: ../fish/guestfish-actions.pod:4073
23660 msgid ""
23661 "This command enables swap to a labeled swap partition.  See "
23662 "L</swapon-device> for other notes."
23663 msgstr ""
23664
23665 # type: =head2
23666 #: ../fish/guestfish-actions.pod:4076
23667 msgid "swapon-uuid"
23668 msgstr ""
23669
23670 # type: verbatim
23671 #: ../fish/guestfish-actions.pod:4078
23672 #, no-wrap
23673 msgid ""
23674 " swapon-uuid uuid\n"
23675 "\n"
23676 msgstr ""
23677
23678 # type: textblock
23679 #: ../fish/guestfish-actions.pod:4080
23680 msgid ""
23681 "This command enables swap to a swap partition with the given UUID.  See "
23682 "L</swapon-device> for other notes."
23683 msgstr ""
23684
23685 # type: =head2
23686 #: ../fish/guestfish-actions.pod:4083
23687 msgid "sync"
23688 msgstr ""
23689
23690 # type: verbatim
23691 #: ../fish/guestfish-actions.pod:4085
23692 #, no-wrap
23693 msgid ""
23694 " sync\n"
23695 "\n"
23696 msgstr ""
23697
23698 # type: =head2
23699 #: ../fish/guestfish-actions.pod:4093
23700 msgid "tail"
23701 msgstr ""
23702
23703 # type: verbatim
23704 #: ../fish/guestfish-actions.pod:4095
23705 #, no-wrap
23706 msgid ""
23707 " tail path\n"
23708 "\n"
23709 msgstr ""
23710
23711 # type: =head2
23712 #: ../fish/guestfish-actions.pod:4103
23713 msgid "tail-n"
23714 msgstr ""
23715
23716 # type: verbatim
23717 #: ../fish/guestfish-actions.pod:4105
23718 #, no-wrap
23719 msgid ""
23720 " tail-n nrlines path\n"
23721 "\n"
23722 msgstr ""
23723
23724 # type: =head2
23725 #: ../fish/guestfish-actions.pod:4118
23726 msgid "tar-in"
23727 msgstr ""
23728
23729 # type: verbatim
23730 #: ../fish/guestfish-actions.pod:4120
23731 #, no-wrap
23732 msgid ""
23733 " tar-in (tarfile|-) directory\n"
23734 "\n"
23735 msgstr ""
23736
23737 # type: textblock
23738 #: ../fish/guestfish-actions.pod:4125
23739 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
23740 msgstr ""
23741
23742 # type: =head2
23743 #: ../fish/guestfish-actions.pod:4130
23744 msgid "tar-out"
23745 msgstr ""
23746
23747 # type: verbatim
23748 #: ../fish/guestfish-actions.pod:4132
23749 #, no-wrap
23750 msgid ""
23751 " tar-out directory (tarfile|-)\n"
23752 "\n"
23753 msgstr ""
23754
23755 # type: textblock
23756 #: ../fish/guestfish-actions.pod:4137
23757 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
23758 msgstr ""
23759
23760 # type: =head2
23761 #: ../fish/guestfish-actions.pod:4142
23762 msgid "tgz-in"
23763 msgstr ""
23764
23765 # type: verbatim
23766 #: ../fish/guestfish-actions.pod:4144
23767 #, no-wrap
23768 msgid ""
23769 " tgz-in (tarball|-) directory\n"
23770 "\n"
23771 msgstr ""
23772
23773 # type: textblock
23774 #: ../fish/guestfish-actions.pod:4149
23775 msgid "To upload an uncompressed tarball, use L</tar-in>."
23776 msgstr ""
23777
23778 # type: =head2
23779 #: ../fish/guestfish-actions.pod:4153
23780 msgid "tgz-out"
23781 msgstr ""
23782
23783 # type: verbatim
23784 #: ../fish/guestfish-actions.pod:4155
23785 #, no-wrap
23786 msgid ""
23787 " tgz-out directory (tarball|-)\n"
23788 "\n"
23789 msgstr ""
23790
23791 # type: textblock
23792 #: ../fish/guestfish-actions.pod:4160
23793 msgid "To download an uncompressed tarball, use L</tar-out>."
23794 msgstr ""
23795
23796 # type: =head2
23797 #: ../fish/guestfish-actions.pod:4164
23798 msgid "touch"
23799 msgstr ""
23800
23801 # type: verbatim
23802 #: ../fish/guestfish-actions.pod:4166
23803 #, no-wrap
23804 msgid ""
23805 " touch path\n"
23806 "\n"
23807 msgstr ""
23808
23809 # type: =head2
23810 #: ../fish/guestfish-actions.pod:4175
23811 msgid "truncate"
23812 msgstr ""
23813
23814 # type: verbatim
23815 #: ../fish/guestfish-actions.pod:4177
23816 #, no-wrap
23817 msgid ""
23818 " truncate path\n"
23819 "\n"
23820 msgstr ""
23821
23822 # type: =head2
23823 #: ../fish/guestfish-actions.pod:4182
23824 msgid "truncate-size"
23825 msgstr ""
23826
23827 # type: verbatim
23828 #: ../fish/guestfish-actions.pod:4184
23829 #, no-wrap
23830 msgid ""
23831 " truncate-size path size\n"
23832 "\n"
23833 msgstr ""
23834
23835 # type: textblock
23836 #: ../fish/guestfish-actions.pod:4189
23837 msgid ""
23838 "If the current file size is less than C<size> then the file is extended to "
23839 "the required size with zero bytes.  This creates a sparse file (ie. disk "
23840 "blocks are not allocated for the file until you write to it).  To create a "
23841 "non-sparse file of zeroes, use L</fallocate64> instead."
23842 msgstr ""
23843
23844 # type: =head2
23845 #: ../fish/guestfish-actions.pod:4195
23846 msgid "tune2fs-l"
23847 msgstr ""
23848
23849 # type: verbatim
23850 #: ../fish/guestfish-actions.pod:4197
23851 #, no-wrap
23852 msgid ""
23853 " tune2fs-l device\n"
23854 "\n"
23855 msgstr ""
23856
23857 # type: =head2
23858 #: ../fish/guestfish-actions.pod:4207
23859 msgid "txz-in"
23860 msgstr ""
23861
23862 # type: verbatim
23863 #: ../fish/guestfish-actions.pod:4209
23864 #, no-wrap
23865 msgid ""
23866 " txz-in (tarball|-) directory\n"
23867 "\n"
23868 msgstr ""
23869
23870 # type: =head2
23871 #: ../fish/guestfish-actions.pod:4216
23872 msgid "txz-out"
23873 msgstr ""
23874
23875 # type: verbatim
23876 #: ../fish/guestfish-actions.pod:4218
23877 #, no-wrap
23878 msgid ""
23879 " txz-out directory (tarball|-)\n"
23880 "\n"
23881 msgstr ""
23882
23883 # type: =head2
23884 #: ../fish/guestfish-actions.pod:4225
23885 msgid "umask"
23886 msgstr ""
23887
23888 # type: verbatim
23889 #: ../fish/guestfish-actions.pod:4227
23890 #, no-wrap
23891 msgid ""
23892 " umask mask\n"
23893 "\n"
23894 msgstr ""
23895
23896 # type: textblock
23897 #: ../fish/guestfish-actions.pod:4241
23898 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
23899 msgstr ""
23900
23901 # type: =head2
23902 #: ../fish/guestfish-actions.pod:4246
23903 msgid "umount"
23904 msgstr ""
23905
23906 # type: =head2
23907 #: ../fish/guestfish-actions.pod:4248
23908 msgid "unmount"
23909 msgstr ""
23910
23911 # type: verbatim
23912 #: ../fish/guestfish-actions.pod:4250
23913 #, no-wrap
23914 msgid ""
23915 " umount pathordevice\n"
23916 "\n"
23917 msgstr ""
23918
23919 # type: =head2
23920 #: ../fish/guestfish-actions.pod:4256
23921 msgid "umount-all"
23922 msgstr ""
23923
23924 # type: =head2
23925 #: ../fish/guestfish-actions.pod:4258
23926 msgid "unmount-all"
23927 msgstr ""
23928
23929 # type: verbatim
23930 #: ../fish/guestfish-actions.pod:4260
23931 #, no-wrap
23932 msgid ""
23933 " umount-all\n"
23934 "\n"
23935 msgstr ""
23936
23937 # type: =head2
23938 #: ../fish/guestfish-actions.pod:4266
23939 msgid "upload"
23940 msgstr ""
23941
23942 # type: verbatim
23943 #: ../fish/guestfish-actions.pod:4268
23944 #, no-wrap
23945 msgid ""
23946 " upload (filename|-) remotefilename\n"
23947 "\n"
23948 msgstr ""
23949
23950 # type: textblock
23951 #: ../fish/guestfish-actions.pod:4275
23952 msgid "See also L</download>."
23953 msgstr ""
23954
23955 # type: =head2
23956 #: ../fish/guestfish-actions.pod:4279
23957 msgid "upload-offset"
23958 msgstr ""
23959
23960 # type: verbatim
23961 #: ../fish/guestfish-actions.pod:4281
23962 #, no-wrap
23963 msgid ""
23964 " upload-offset (filename|-) remotefilename offset\n"
23965 "\n"
23966 msgstr ""
23967
23968 # type: textblock
23969 #: ../fish/guestfish-actions.pod:4293
23970 msgid ""
23971 "Note that there is no limit on the amount of data that can be uploaded with "
23972 "this call, unlike with L</pwrite>, and this call always writes the full "
23973 "amount unless an error occurs."
23974 msgstr ""
23975
23976 # type: textblock
23977 #: ../fish/guestfish-actions.pod:4298
23978 msgid "See also L</upload>, L</pwrite>."
23979 msgstr ""
23980
23981 # type: =head2
23982 #: ../fish/guestfish-actions.pod:4302
23983 msgid "utimens"
23984 msgstr ""
23985
23986 # type: verbatim
23987 #: ../fish/guestfish-actions.pod:4304
23988 #, no-wrap
23989 msgid ""
23990 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
23991 "\n"
23992 msgstr ""
23993
23994 # type: =head2
23995 #: ../fish/guestfish-actions.pod:4323
23996 msgid "version"
23997 msgstr ""
23998
23999 # type: verbatim
24000 #: ../fish/guestfish-actions.pod:4325
24001 #, no-wrap
24002 msgid ""
24003 " version\n"
24004 "\n"
24005 msgstr ""
24006
24007 # type: textblock
24008 #: ../fish/guestfish-actions.pod:4352
24009 msgid ""
24010 "I<Note:> Don't use this call to test for availability of features.  In "
24011 "enterprise distributions we backport features from later versions into "
24012 "earlier versions, making this an unreliable way to test for features.  Use "
24013 "L</available> instead."
24014 msgstr ""
24015
24016 # type: =head2
24017 #: ../fish/guestfish-actions.pod:4358
24018 msgid "vfs-label"
24019 msgstr ""
24020
24021 # type: verbatim
24022 #: ../fish/guestfish-actions.pod:4360
24023 #, no-wrap
24024 msgid ""
24025 " vfs-label device\n"
24026 "\n"
24027 msgstr ""
24028
24029 # type: textblock
24030 #: ../fish/guestfish-actions.pod:4367
24031 msgid "To find a filesystem from the label, use L</findfs-label>."
24032 msgstr ""
24033
24034 # type: =head2
24035 #: ../fish/guestfish-actions.pod:4369
24036 msgid "vfs-type"
24037 msgstr ""
24038
24039 # type: verbatim
24040 #: ../fish/guestfish-actions.pod:4371
24041 #, no-wrap
24042 msgid ""
24043 " vfs-type device\n"
24044 "\n"
24045 msgstr ""
24046
24047 # type: =head2
24048 #: ../fish/guestfish-actions.pod:4381
24049 msgid "vfs-uuid"
24050 msgstr ""
24051
24052 # type: verbatim
24053 #: ../fish/guestfish-actions.pod:4383
24054 #, no-wrap
24055 msgid ""
24056 " vfs-uuid device\n"
24057 "\n"
24058 msgstr ""
24059
24060 # type: textblock
24061 #: ../fish/guestfish-actions.pod:4390
24062 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
24063 msgstr ""
24064
24065 # type: =head2
24066 #: ../fish/guestfish-actions.pod:4392
24067 msgid "vg-activate"
24068 msgstr ""
24069
24070 # type: verbatim
24071 #: ../fish/guestfish-actions.pod:4394
24072 #, no-wrap
24073 msgid ""
24074 " vg-activate true|false 'volgroups ...'\n"
24075 "\n"
24076 msgstr ""
24077
24078 # type: =head2
24079 #: ../fish/guestfish-actions.pod:4407
24080 msgid "vg-activate-all"
24081 msgstr ""
24082
24083 # type: verbatim
24084 #: ../fish/guestfish-actions.pod:4409
24085 #, no-wrap
24086 msgid ""
24087 " vg-activate-all true|false\n"
24088 "\n"
24089 msgstr ""
24090
24091 # type: =head2
24092 #: ../fish/guestfish-actions.pod:4419
24093 msgid "vgcreate"
24094 msgstr ""
24095
24096 # type: verbatim
24097 #: ../fish/guestfish-actions.pod:4421
24098 #, no-wrap
24099 msgid ""
24100 " vgcreate volgroup 'physvols ...'\n"
24101 "\n"
24102 msgstr ""
24103
24104 # type: =head2
24105 #: ../fish/guestfish-actions.pod:4426
24106 msgid "vglvuuids"
24107 msgstr ""
24108
24109 # type: verbatim
24110 #: ../fish/guestfish-actions.pod:4428
24111 #, no-wrap
24112 msgid ""
24113 " vglvuuids vgname\n"
24114 "\n"
24115 msgstr ""
24116
24117 # type: textblock
24118 #: ../fish/guestfish-actions.pod:4433
24119 msgid ""
24120 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
24121 "logical volumes and volume groups."
24122 msgstr ""
24123
24124 # type: textblock
24125 #: ../fish/guestfish-actions.pod:4436
24126 msgid "See also L</vgpvuuids>."
24127 msgstr ""
24128
24129 # type: =head2
24130 #: ../fish/guestfish-actions.pod:4438
24131 msgid "vgpvuuids"
24132 msgstr ""
24133
24134 # type: verbatim
24135 #: ../fish/guestfish-actions.pod:4440
24136 #, no-wrap
24137 msgid ""
24138 " vgpvuuids vgname\n"
24139 "\n"
24140 msgstr ""
24141
24142 # type: textblock
24143 #: ../fish/guestfish-actions.pod:4445
24144 msgid ""
24145 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
24146 "physical volumes and volume groups."
24147 msgstr ""
24148
24149 # type: textblock
24150 #: ../fish/guestfish-actions.pod:4448
24151 msgid "See also L</vglvuuids>."
24152 msgstr ""
24153
24154 # type: =head2
24155 #: ../fish/guestfish-actions.pod:4450
24156 msgid "vgremove"
24157 msgstr ""
24158
24159 # type: verbatim
24160 #: ../fish/guestfish-actions.pod:4452
24161 #, no-wrap
24162 msgid ""
24163 " vgremove vgname\n"
24164 "\n"
24165 msgstr ""
24166
24167 # type: =head2
24168 #: ../fish/guestfish-actions.pod:4459
24169 msgid "vgrename"
24170 msgstr ""
24171
24172 # type: verbatim
24173 #: ../fish/guestfish-actions.pod:4461
24174 #, no-wrap
24175 msgid ""
24176 " vgrename volgroup newvolgroup\n"
24177 "\n"
24178 msgstr ""
24179
24180 # type: =head2
24181 #: ../fish/guestfish-actions.pod:4465
24182 msgid "vgs"
24183 msgstr ""
24184
24185 # type: verbatim
24186 #: ../fish/guestfish-actions.pod:4467
24187 #, no-wrap
24188 msgid ""
24189 " vgs\n"
24190 "\n"
24191 msgstr ""
24192
24193 # type: textblock
24194 #: ../fish/guestfish-actions.pod:4475
24195 msgid "See also L</vgs-full>."
24196 msgstr ""
24197
24198 # type: =head2
24199 #: ../fish/guestfish-actions.pod:4477
24200 msgid "vgs-full"
24201 msgstr ""
24202
24203 # type: verbatim
24204 #: ../fish/guestfish-actions.pod:4479
24205 #, no-wrap
24206 msgid ""
24207 " vgs-full\n"
24208 "\n"
24209 msgstr ""
24210
24211 # type: =head2
24212 #: ../fish/guestfish-actions.pod:4484
24213 msgid "vgscan"
24214 msgstr ""
24215
24216 # type: verbatim
24217 #: ../fish/guestfish-actions.pod:4486
24218 #, no-wrap
24219 msgid ""
24220 " vgscan\n"
24221 "\n"
24222 msgstr ""
24223
24224 # type: =head2
24225 #: ../fish/guestfish-actions.pod:4491
24226 msgid "vguuid"
24227 msgstr ""
24228
24229 # type: verbatim
24230 #: ../fish/guestfish-actions.pod:4493
24231 #, no-wrap
24232 msgid ""
24233 " vguuid vgname\n"
24234 "\n"
24235 msgstr ""
24236
24237 # type: =head2
24238 #: ../fish/guestfish-actions.pod:4497
24239 msgid "wc-c"
24240 msgstr ""
24241
24242 # type: verbatim
24243 #: ../fish/guestfish-actions.pod:4499
24244 #, no-wrap
24245 msgid ""
24246 " wc-c path\n"
24247 "\n"
24248 msgstr ""
24249
24250 # type: =head2
24251 #: ../fish/guestfish-actions.pod:4504
24252 msgid "wc-l"
24253 msgstr ""
24254
24255 # type: verbatim
24256 #: ../fish/guestfish-actions.pod:4506
24257 #, no-wrap
24258 msgid ""
24259 " wc-l path\n"
24260 "\n"
24261 msgstr ""
24262
24263 # type: =head2
24264 #: ../fish/guestfish-actions.pod:4511
24265 msgid "wc-w"
24266 msgstr ""
24267
24268 # type: verbatim
24269 #: ../fish/guestfish-actions.pod:4513
24270 #, no-wrap
24271 msgid ""
24272 " wc-w path\n"
24273 "\n"
24274 msgstr ""
24275
24276 # type: =head2
24277 #: ../fish/guestfish-actions.pod:4518
24278 msgid "write"
24279 msgstr ""
24280
24281 # type: verbatim
24282 #: ../fish/guestfish-actions.pod:4520
24283 #, no-wrap
24284 msgid ""
24285 " write path content\n"
24286 "\n"
24287 msgstr ""
24288
24289 # type: =head2
24290 #: ../fish/guestfish-actions.pod:4528
24291 msgid "write-file"
24292 msgstr ""
24293
24294 # type: verbatim
24295 #: ../fish/guestfish-actions.pod:4530
24296 #, no-wrap
24297 msgid ""
24298 " write-file path content size\n"
24299 "\n"
24300 msgstr ""
24301
24302 # type: =head2
24303 #: ../fish/guestfish-actions.pod:4553
24304 msgid "zegrep"
24305 msgstr ""
24306
24307 # type: verbatim
24308 #: ../fish/guestfish-actions.pod:4555
24309 #, no-wrap
24310 msgid ""
24311 " zegrep regex path\n"
24312 "\n"
24313 msgstr ""
24314
24315 # type: =head2
24316 #: ../fish/guestfish-actions.pod:4563
24317 msgid "zegrepi"
24318 msgstr ""
24319
24320 # type: verbatim
24321 #: ../fish/guestfish-actions.pod:4565
24322 #, no-wrap
24323 msgid ""
24324 " zegrepi regex path\n"
24325 "\n"
24326 msgstr ""
24327
24328 # type: =head2
24329 #: ../fish/guestfish-actions.pod:4573
24330 msgid "zero"
24331 msgstr ""
24332
24333 # type: verbatim
24334 #: ../fish/guestfish-actions.pod:4575
24335 #, no-wrap
24336 msgid ""
24337 " zero device\n"
24338 "\n"
24339 msgstr ""
24340
24341 # type: textblock
24342 #: ../fish/guestfish-actions.pod:4583
24343 msgid "See also: L</zero-device>, L</scrub-device>."
24344 msgstr ""
24345
24346 # type: =head2
24347 #: ../fish/guestfish-actions.pod:4585
24348 msgid "zero-device"
24349 msgstr ""
24350
24351 # type: verbatim
24352 #: ../fish/guestfish-actions.pod:4587
24353 #, no-wrap
24354 msgid ""
24355 " zero-device device\n"
24356 "\n"
24357 msgstr ""
24358
24359 # type: textblock
24360 #: ../fish/guestfish-actions.pod:4589
24361 msgid ""
24362 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
24363 "which just zeroes the first few blocks of a device."
24364 msgstr ""
24365
24366 # type: =head2
24367 #: ../fish/guestfish-actions.pod:4596
24368 msgid "zerofree"
24369 msgstr ""
24370
24371 # type: verbatim
24372 #: ../fish/guestfish-actions.pod:4598
24373 #, no-wrap
24374 msgid ""
24375 " zerofree device\n"
24376 "\n"
24377 msgstr ""
24378
24379 # type: =head2
24380 #: ../fish/guestfish-actions.pod:4611
24381 msgid "zfgrep"
24382 msgstr ""
24383
24384 # type: verbatim
24385 #: ../fish/guestfish-actions.pod:4613
24386 #, no-wrap
24387 msgid ""
24388 " zfgrep pattern path\n"
24389 "\n"
24390 msgstr ""
24391
24392 # type: =head2
24393 #: ../fish/guestfish-actions.pod:4621
24394 msgid "zfgrepi"
24395 msgstr ""
24396
24397 # type: verbatim
24398 #: ../fish/guestfish-actions.pod:4623
24399 #, no-wrap
24400 msgid ""
24401 " zfgrepi pattern path\n"
24402 "\n"
24403 msgstr ""
24404
24405 # type: =head2
24406 #: ../fish/guestfish-actions.pod:4631
24407 msgid "zfile"
24408 msgstr ""
24409
24410 # type: verbatim
24411 #: ../fish/guestfish-actions.pod:4633
24412 #, no-wrap
24413 msgid ""
24414 " zfile meth path\n"
24415 "\n"
24416 msgstr ""
24417
24418 # type: textblock
24419 #: ../fish/guestfish-actions.pod:4640
24420 msgid "Since 1.0.63, use L</file> instead which can now process compressed files."
24421 msgstr ""
24422
24423 # type: =head2
24424 #: ../fish/guestfish-actions.pod:4650
24425 msgid "zgrep"
24426 msgstr ""
24427
24428 # type: verbatim
24429 #: ../fish/guestfish-actions.pod:4652
24430 #, no-wrap
24431 msgid ""
24432 " zgrep regex path\n"
24433 "\n"
24434 msgstr ""
24435
24436 # type: =head2
24437 #: ../fish/guestfish-actions.pod:4660
24438 msgid "zgrepi"
24439 msgstr ""
24440
24441 # type: verbatim
24442 #: ../fish/guestfish-actions.pod:4662
24443 #, no-wrap
24444 msgid ""
24445 " zgrepi regex path\n"
24446 "\n"
24447 msgstr ""
24448
24449 # type: =head2
24450 #: ../fish/guestfish-commands.pod:1
24451 msgid "alloc"
24452 msgstr ""
24453
24454 # type: =head2
24455 #: ../fish/guestfish-commands.pod:3
24456 msgid "allocate"
24457 msgstr ""
24458
24459 # type: verbatim
24460 #: ../fish/guestfish-commands.pod:5
24461 #, no-wrap
24462 msgid ""
24463 " alloc filename size\n"
24464 "\n"
24465 msgstr ""
24466
24467 # type: textblock
24468 #: ../fish/guestfish-commands.pod:7
24469 msgid ""
24470 "This creates an empty (zeroed) file of the given size, and then adds so it "
24471 "can be further examined."
24472 msgstr ""
24473
24474 # type: textblock
24475 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:168
24476 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
24477 msgstr ""
24478
24479 # type: textblock
24480 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:170
24481 msgid "Size can be specified using standard suffixes, eg. C<1M>."
24482 msgstr ""
24483
24484 # type: textblock
24485 #: ../fish/guestfish-commands.pod:14
24486 msgid ""
24487 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
24488 "image, see L</PREPARED DISK IMAGES>."
24489 msgstr ""
24490
24491 # type: =head2
24492 #: ../fish/guestfish-commands.pod:17
24493 msgid "copy-in"
24494 msgstr ""
24495
24496 # type: verbatim
24497 #: ../fish/guestfish-commands.pod:19
24498 #, no-wrap
24499 msgid ""
24500 " copy-in local [local ...] /remotedir\n"
24501 "\n"
24502 msgstr ""
24503
24504 # type: textblock
24505 #: ../fish/guestfish-commands.pod:21
24506 msgid ""
24507 "C<copy-in> copies local files or directories recursively into the disk "
24508 "image, placing them in the directory called C</remotedir> (which must "
24509 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
24510 "other commands as necessary."
24511 msgstr ""
24512
24513 # type: textblock
24514 #: ../fish/guestfish-commands.pod:26
24515 msgid ""
24516 "Multiple local files and directories can be specified, but the last "
24517 "parameter must always be a remote directory.  Wildcards cannot be used."
24518 msgstr ""
24519
24520 # type: =head2
24521 #: ../fish/guestfish-commands.pod:30
24522 msgid "copy-out"
24523 msgstr ""
24524
24525 # type: verbatim
24526 #: ../fish/guestfish-commands.pod:32
24527 #, no-wrap
24528 msgid ""
24529 " copy-out remote [remote ...] localdir\n"
24530 "\n"
24531 msgstr ""
24532
24533 # type: textblock
24534 #: ../fish/guestfish-commands.pod:34
24535 msgid ""
24536 "C<copy-out> copies remote files or directories recursively out of the disk "
24537 "image, placing them on the host disk in a local directory called C<localdir> "
24538 "(which must exist).  This guestfish meta-command turns into a sequence of "
24539 "L</download>, L</tar-out> and other commands as necessary."
24540 msgstr ""
24541
24542 # type: textblock
24543 #: ../fish/guestfish-commands.pod:40
24544 msgid ""
24545 "Multiple remote files and directories can be specified, but the last "
24546 "parameter must always be a local directory.  To download to the current "
24547 "directory, use C<.> as in:"
24548 msgstr ""
24549
24550 # type: verbatim
24551 #: ../fish/guestfish-commands.pod:44
24552 #, no-wrap
24553 msgid ""
24554 " copy-out /home .\n"
24555 "\n"
24556 msgstr ""
24557
24558 # type: textblock
24559 #: ../fish/guestfish-commands.pod:46
24560 msgid ""
24561 "Wildcards cannot be used in the ordinary command, but you can use them with "
24562 "the help of L</glob> like this:"
24563 msgstr ""
24564
24565 # type: verbatim
24566 #: ../fish/guestfish-commands.pod:49
24567 #, no-wrap
24568 msgid ""
24569 " glob copy-out /home/* .\n"
24570 "\n"
24571 msgstr ""
24572
24573 # type: =head2
24574 #: ../fish/guestfish-commands.pod:51
24575 msgid "echo"
24576 msgstr ""
24577
24578 # type: verbatim
24579 #: ../fish/guestfish-commands.pod:53
24580 #, no-wrap
24581 msgid ""
24582 " echo [params ...]\n"
24583 "\n"
24584 msgstr ""
24585
24586 # type: textblock
24587 #: ../fish/guestfish-commands.pod:55
24588 msgid "This echos the parameters to the terminal."
24589 msgstr ""
24590
24591 # type: =head2
24592 #: ../fish/guestfish-commands.pod:57
24593 msgid "edit"
24594 msgstr ""
24595
24596 # type: =head2
24597 #: ../fish/guestfish-commands.pod:59
24598 msgid "vi"
24599 msgstr ""
24600
24601 # type: =head2
24602 #: ../fish/guestfish-commands.pod:61
24603 msgid "emacs"
24604 msgstr ""
24605
24606 # type: verbatim
24607 #: ../fish/guestfish-commands.pod:63
24608 #, no-wrap
24609 msgid ""
24610 " edit filename\n"
24611 "\n"
24612 msgstr ""
24613
24614 # type: textblock
24615 #: ../fish/guestfish-commands.pod:65
24616 msgid ""
24617 "This is used to edit a file.  It downloads the file, edits it locally using "
24618 "your editor, then uploads the result."
24619 msgstr ""
24620
24621 # type: textblock
24622 #: ../fish/guestfish-commands.pod:68
24623 msgid ""
24624 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
24625 "or C<emacs> you will get those corresponding editors."
24626 msgstr ""
24627
24628 # type: =head2
24629 #: ../fish/guestfish-commands.pod:72
24630 msgid "glob"
24631 msgstr ""
24632
24633 # type: verbatim
24634 #: ../fish/guestfish-commands.pod:74
24635 #, no-wrap
24636 msgid ""
24637 " glob command args...\n"
24638 "\n"
24639 msgstr ""
24640
24641 # type: textblock
24642 #: ../fish/guestfish-commands.pod:76
24643 msgid ""
24644 "Expand wildcards in any paths in the args list, and run C<command> "
24645 "repeatedly on each matching path."
24646 msgstr ""
24647
24648 # type: textblock
24649 #: ../fish/guestfish-commands.pod:79
24650 msgid "See L</WILDCARDS AND GLOBBING>."
24651 msgstr ""
24652
24653 # type: =head2
24654 #: ../fish/guestfish-commands.pod:81
24655 msgid "hexedit"
24656 msgstr ""
24657
24658 # type: verbatim
24659 #: ../fish/guestfish-commands.pod:83
24660 #, no-wrap
24661 msgid ""
24662 " hexedit <filename|device>\n"
24663 " hexedit <filename|device> <max>\n"
24664 " hexedit <filename|device> <start> <max>\n"
24665 "\n"
24666 msgstr ""
24667
24668 # type: textblock
24669 #: ../fish/guestfish-commands.pod:87
24670 msgid ""
24671 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
24672 "device."
24673 msgstr ""
24674
24675 # type: textblock
24676 #: ../fish/guestfish-commands.pod:90
24677 msgid ""
24678 "This command works by downloading potentially the whole file or device, "
24679 "editing it locally, then uploading it.  If the file or device is large, you "
24680 "have to specify which part you wish to edit by using C<max> and/or C<start> "
24681 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
24682 "usual modifiers allowed such as C<1M> (1 megabyte)."
24683 msgstr ""
24684
24685 # type: textblock
24686 #: ../fish/guestfish-commands.pod:97
24687 msgid "For example to edit the first few sectors of a disk you might do:"
24688 msgstr ""
24689
24690 # type: verbatim
24691 #: ../fish/guestfish-commands.pod:100
24692 #, no-wrap
24693 msgid ""
24694 " hexedit /dev/sda 1M\n"
24695 "\n"
24696 msgstr ""
24697
24698 # type: textblock
24699 #: ../fish/guestfish-commands.pod:102
24700 msgid ""
24701 "which would allow you to edit anywhere within the first megabyte of the "
24702 "disk."
24703 msgstr ""
24704
24705 # type: textblock
24706 #: ../fish/guestfish-commands.pod:105
24707 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
24708 msgstr ""
24709
24710 # type: verbatim
24711 #: ../fish/guestfish-commands.pod:107
24712 #, no-wrap
24713 msgid ""
24714 " hexedit /dev/sda1 0x400 0x400\n"
24715 "\n"
24716 msgstr ""
24717
24718 # type: textblock
24719 #: ../fish/guestfish-commands.pod:109
24720 msgid "(assuming the superblock is in the standard location)."
24721 msgstr ""
24722
24723 # type: textblock
24724 #: ../fish/guestfish-commands.pod:111
24725 msgid ""
24726 "This command requires the external L<hexedit(1)> program.  You can specify "
24727 "another program to use by setting the C<HEXEDITOR> environment variable."
24728 msgstr ""
24729
24730 # type: textblock
24731 #: ../fish/guestfish-commands.pod:115
24732 msgid "See also L</hexdump>."
24733 msgstr ""
24734
24735 # type: =head2
24736 #: ../fish/guestfish-commands.pod:117
24737 msgid "lcd"
24738 msgstr ""
24739
24740 # type: verbatim
24741 #: ../fish/guestfish-commands.pod:119
24742 #, no-wrap
24743 msgid ""
24744 " lcd directory\n"
24745 "\n"
24746 msgstr ""
24747
24748 # type: textblock
24749 #: ../fish/guestfish-commands.pod:121
24750 msgid "Change the local directory, ie. the current directory of guestfish itself."
24751 msgstr ""
24752
24753 # type: textblock
24754 #: ../fish/guestfish-commands.pod:124
24755 msgid "Note that C<!cd> won't do what you might expect."
24756 msgstr ""
24757
24758 # type: =head2
24759 #: ../fish/guestfish-commands.pod:126
24760 msgid "man"
24761 msgstr ""
24762
24763 # type: =head2
24764 #: ../fish/guestfish-commands.pod:128
24765 msgid "manual"
24766 msgstr ""
24767
24768 # type: verbatim
24769 #: ../fish/guestfish-commands.pod:130
24770 #, no-wrap
24771 msgid ""
24772 "  man\n"
24773 "\n"
24774 msgstr ""
24775
24776 # type: textblock
24777 #: ../fish/guestfish-commands.pod:132
24778 msgid "Opens the manual page for guestfish."
24779 msgstr ""
24780
24781 # type: =head2
24782 #: ../fish/guestfish-commands.pod:134
24783 msgid "more"
24784 msgstr ""
24785
24786 # type: =head2
24787 #: ../fish/guestfish-commands.pod:136
24788 msgid "less"
24789 msgstr ""
24790
24791 # type: verbatim
24792 #: ../fish/guestfish-commands.pod:138
24793 #, no-wrap
24794 msgid ""
24795 " more filename\n"
24796 "\n"
24797 msgstr ""
24798
24799 # type: verbatim
24800 #: ../fish/guestfish-commands.pod:140
24801 #, no-wrap
24802 msgid ""
24803 " less filename\n"
24804 "\n"
24805 msgstr ""
24806
24807 # type: textblock
24808 #: ../fish/guestfish-commands.pod:142
24809 msgid "This is used to view a file."
24810 msgstr ""
24811
24812 # type: textblock
24813 #: ../fish/guestfish-commands.pod:144
24814 msgid ""
24815 "The default viewer is C<$PAGER>.  However if you use the alternate command "
24816 "C<less> you will get the C<less> command specifically."
24817 msgstr ""
24818
24819 # type: =head2
24820 #: ../fish/guestfish-commands.pod:147
24821 msgid "reopen"
24822 msgstr ""
24823
24824 # type: verbatim
24825 #: ../fish/guestfish-commands.pod:149
24826 #, no-wrap
24827 msgid ""
24828 "  reopen\n"
24829 "\n"
24830 msgstr ""
24831
24832 # type: textblock
24833 #: ../fish/guestfish-commands.pod:151
24834 msgid ""
24835 "Close and reopen the libguestfs handle.  It is not necessary to use this "
24836 "normally, because the handle is closed properly when guestfish exits.  "
24837 "However this is occasionally useful for testing."
24838 msgstr ""
24839
24840 # type: =head2
24841 #: ../fish/guestfish-commands.pod:155
24842 msgid "sparse"
24843 msgstr ""
24844
24845 # type: verbatim
24846 #: ../fish/guestfish-commands.pod:157
24847 #, no-wrap
24848 msgid ""
24849 " sparse filename size\n"
24850 "\n"
24851 msgstr ""
24852
24853 # type: textblock
24854 #: ../fish/guestfish-commands.pod:159
24855 msgid ""
24856 "This creates an empty sparse file of the given size, and then adds so it can "
24857 "be further examined."
24858 msgstr ""
24859
24860 # type: textblock
24861 #: ../fish/guestfish-commands.pod:162
24862 msgid ""
24863 "In all respects it works the same as the L</alloc> command, except that the "
24864 "image file is allocated sparsely, which means that disk blocks are not "
24865 "assigned to the file until they are needed.  Sparse disk files only use "
24866 "space when written to, but they are slower and there is a danger you could "
24867 "run out of real disk space during a write operation."
24868 msgstr ""
24869
24870 # type: =head2
24871 #: ../fish/guestfish-commands.pod:172
24872 msgid "supported"
24873 msgstr ""
24874
24875 # type: verbatim
24876 #: ../fish/guestfish-commands.pod:174
24877 #, no-wrap
24878 msgid ""
24879 " supported\n"
24880 "\n"
24881 msgstr ""
24882
24883 # type: textblock
24884 #: ../fish/guestfish-commands.pod:176
24885 msgid ""
24886 "This command returns a list of the optional groups known to the daemon, and "
24887 "indicates which ones are supported by this build of the libguestfs "
24888 "appliance."
24889 msgstr ""
24890
24891 # type: textblock
24892 #: ../fish/guestfish-commands.pod:180
24893 msgid "See also L<guestfs(3)/AVAILABILITY>."
24894 msgstr ""
24895
24896 # type: =head2
24897 #: ../fish/guestfish-commands.pod:182
24898 msgid "time"
24899 msgstr ""
24900
24901 # type: verbatim
24902 #: ../fish/guestfish-commands.pod:184
24903 #, no-wrap
24904 msgid ""
24905 " time command args...\n"
24906 "\n"
24907 msgstr ""
24908
24909 # type: textblock
24910 #: ../fish/guestfish-commands.pod:186
24911 msgid ""
24912 "Run the command as usual, but print the elapsed time afterwards.  This can "
24913 "be useful for benchmarking operations."
24914 msgstr ""
24915
24916 # type: textblock
24917 #: ../test-tool/libguestfs-test-tool.pod:5
24918 msgid "libguestfs-test-tool - End user tests for libguestfs"
24919 msgstr ""
24920
24921 # type: verbatim
24922 #: ../test-tool/libguestfs-test-tool.pod:9
24923 #, no-wrap
24924 msgid ""
24925 " libguestfs-test-tool [--options]\n"
24926 "\n"
24927 msgstr ""
24928
24929 # type: textblock
24930 #: ../test-tool/libguestfs-test-tool.pod:13
24931 msgid ""
24932 "libguestfs-test-tool is a test program shipped with libguestfs to end users "
24933 "and developers, to allow them to check basic libguestfs functionality is "
24934 "working.  This is needed because libguestfs occasionally breaks for reasons "
24935 "beyond our control: usually because of changes in the underlying qemu or "
24936 "kernel packages, or the host environment."
24937 msgstr ""
24938
24939 # type: textblock
24940 #: ../test-tool/libguestfs-test-tool.pod:20
24941 msgid "If you suspect a problem in libguestfs, then just run:"
24942 msgstr ""
24943
24944 # type: verbatim
24945 #: ../test-tool/libguestfs-test-tool.pod:22
24946 #, no-wrap
24947 msgid ""
24948 " libguestfs-test-tool\n"
24949 "\n"
24950 msgstr ""
24951
24952 # type: textblock
24953 #: ../test-tool/libguestfs-test-tool.pod:24
24954 msgid "It will print lots of diagnostic messages."
24955 msgstr ""
24956
24957 # type: textblock
24958 #: ../test-tool/libguestfs-test-tool.pod:26
24959 msgid "If it runs to completion successfully, you will see this near the end:"
24960 msgstr ""
24961
24962 # type: verbatim
24963 #: ../test-tool/libguestfs-test-tool.pod:28
24964 #, no-wrap
24965 msgid ""
24966 " ===== TEST FINISHED OK =====\n"
24967 "\n"
24968 msgstr ""
24969
24970 # type: textblock
24971 #: ../test-tool/libguestfs-test-tool.pod:30
24972 msgid "and the test tool will exit with code 0."
24973 msgstr ""
24974
24975 # type: textblock
24976 #: ../test-tool/libguestfs-test-tool.pod:32
24977 msgid ""
24978 "If it fails (and/or exits with non-zero error code), please paste the "
24979 "B<complete, unedited> output of the test tool into a bug report.  More "
24980 "information about reporting bugs can be found on the "
24981 "L<http://libguestfs.org/> website."
24982 msgstr ""
24983
24984 # type: =item
24985 #: ../test-tool/libguestfs-test-tool.pod:41
24986 msgid "I<--help>"
24987 msgstr ""
24988
24989 # type: textblock
24990 #: ../test-tool/libguestfs-test-tool.pod:43
24991 msgid "Display short usage information and exit."
24992 msgstr ""
24993
24994 # type: =item
24995 #: ../test-tool/libguestfs-test-tool.pod:45
24996 msgid "I<--helper /path/to/libguestfs-test-tool-helper>"
24997 msgstr ""
24998
24999 # type: textblock
25000 #: ../test-tool/libguestfs-test-tool.pod:47
25001 msgid ""
25002 "Pass an alternate name for the helper program.  libguestfs-test-tool will "
25003 "normally look in the C<$libexec> directory that was configured when the tool "
25004 "was built."
25005 msgstr ""
25006
25007 # type: =item
25008 #: ../test-tool/libguestfs-test-tool.pod:51
25009 msgid "I<--qemu qemu_binary>"
25010 msgstr ""
25011
25012 # type: textblock
25013 #: ../test-tool/libguestfs-test-tool.pod:53
25014 msgid ""
25015 "If you have downloaded another qemu binary, point this option at the full "
25016 "path of the binary to try it."
25017 msgstr ""
25018
25019 # type: =item
25020 #: ../test-tool/libguestfs-test-tool.pod:56
25021 msgid "I<--qemudir qemu_source_dir>"
25022 msgstr ""
25023
25024 # type: textblock
25025 #: ../test-tool/libguestfs-test-tool.pod:58
25026 msgid ""
25027 "If you have compiled qemu from source, point this option at the source "
25028 "directory to try it."
25029 msgstr ""
25030
25031 # type: =item
25032 #: ../test-tool/libguestfs-test-tool.pod:61
25033 msgid "I<--timeout N>"
25034 msgstr ""
25035
25036 # type: textblock
25037 #: ../test-tool/libguestfs-test-tool.pod:63
25038 msgid ""
25039 "Set the launch timeout to C<N> seconds.  The default is 120 seconds which "
25040 "does not usually need to be adjusted unless your machine is very slow."
25041 msgstr ""
25042
25043 # type: =head1
25044 #: ../test-tool/libguestfs-test-tool.pod:69
25045 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
25046 msgstr ""
25047
25048 # type: textblock
25049 #: ../test-tool/libguestfs-test-tool.pod:71
25050 msgid ""
25051 "If you have compiled another version of qemu from source and would like to "
25052 "try that, then you can use the I<--qemudir> option to point to the qemu "
25053 "source directory."
25054 msgstr ""
25055
25056 # type: textblock
25057 #: ../test-tool/libguestfs-test-tool.pod:75
25058 msgid ""
25059 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
25060 "option to point to the binary."
25061 msgstr ""
25062
25063 # type: textblock
25064 #: ../test-tool/libguestfs-test-tool.pod:78
25065 msgid ""
25066 "When using an alternate qemu with libguestfs, usually you would need to "
25067 "write a qemu wrapper script (see section I<QEMU WRAPPERS> in "
25068 "L<guestfs(3)>).  libguestfs-test-tool writes a temporary qemu wrapper script "
25069 "when you use either of the I<--qemudir> or I<--qemu> options."
25070 msgstr ""
25071
25072 # type: textblock
25073 #: ../test-tool/libguestfs-test-tool.pod:85
25074 msgid ""
25075 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
25076 "I<1> if there was an error."
25077 msgstr ""
25078
25079 # type: =item
25080 #: ../test-tool/libguestfs-test-tool.pod:92
25081 msgid "/usr/libexec/libguestfs-test-tool-helper"
25082 msgstr ""
25083
25084 # type: textblock
25085 #: ../test-tool/libguestfs-test-tool.pod:94
25086 msgid ""
25087 "This helper program is run inside the appliance and provides additional "
25088 "tests."
25089 msgstr ""
25090
25091 # type: =item
25092 #: ../test-tool/libguestfs-test-tool.pod:97
25093 msgid "/usr/bin/mkisofs"
25094 msgstr ""
25095
25096 # type: textblock
25097 #: ../test-tool/libguestfs-test-tool.pod:99
25098 msgid ""
25099 "The C<mkisofs> command is required in order to construct a CD-ROM ISO file "
25100 "which is used as part of the tests."
25101 msgstr ""
25102
25103 # type: textblock
25104 #: ../test-tool/libguestfs-test-tool.pod:106
25105 msgid ""
25106 "For the full list of environment variables which may affect libguestfs, "
25107 "please see the L<guestfs(3)> manual page."
25108 msgstr ""
25109
25110 # type: textblock
25111 #: ../test-tool/libguestfs-test-tool.pod:111
25112 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
25113 msgstr ""
25114
25115 # type: textblock
25116 #: ../test-tool/libguestfs-test-tool.pod:121
25117 msgid "Copyright (C) 2009 Red Hat Inc.  L<http://libguestfs.org/>"
25118 msgstr ""
25119
25120 # type: textblock
25121 #: ../fuse/guestmount.pod:5
25122 msgid "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
25123 msgstr ""
25124
25125 # type: verbatim
25126 #: ../fuse/guestmount.pod:9
25127 #, no-wrap
25128 msgid ""
25129 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
25130 "\n"
25131 msgstr ""
25132
25133 # type: verbatim
25134 #: ../fuse/guestmount.pod:11
25135 #, no-wrap
25136 msgid ""
25137 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
25138 "\n"
25139 msgstr ""
25140
25141 # type: verbatim
25142 #: ../fuse/guestmount.pod:13
25143 #, no-wrap
25144 msgid ""
25145 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
25146 "\n"
25147 msgstr ""
25148
25149 # type: textblock
25150 #: ../fuse/guestmount.pod:17
25151 msgid ""
25152 "You must I<not> use C<guestmount> in read-write mode on live virtual "
25153 "machines.  If you do this, you risk disk corruption in the VM."
25154 msgstr ""
25155
25156 # type: textblock
25157 #: ../fuse/guestmount.pod:22
25158 msgid ""
25159 "The guestmount program can be used to mount virtual machine filesystems and "
25160 "other disk images on the host.  It uses libguestfs for access to the guest "
25161 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
25162 "a mountable device."
25163 msgstr ""
25164
25165 # type: textblock
25166 #: ../fuse/guestmount.pod:27
25167 msgid ""
25168 "Along with other options, you have to give at least one device (I<-a> "
25169 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
25170 "option) or use the I<-i> inspection option.  How this works is better "
25171 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
25172 "below."
25173 msgstr ""
25174
25175 # type: textblock
25176 #: ../fuse/guestmount.pod:33
25177 msgid ""
25178 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
25179 "by you, and the filesystem will not be visible to any other users unless you "
25180 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
25181 "the filesystem, use the C<fusermount -u> command."
25182 msgstr ""
25183
25184 # type: textblock
25185 #: ../fuse/guestmount.pod:41
25186 msgid ""
25187 "For a typical Windows guest which has its main filesystem on the first "
25188 "partition:"
25189 msgstr ""
25190
25191 # type: verbatim
25192 #: ../fuse/guestmount.pod:44
25193 #, no-wrap
25194 msgid ""
25195 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
25196 "\n"
25197 msgstr ""
25198
25199 # type: textblock
25200 #: ../fuse/guestmount.pod:46
25201 msgid ""
25202 "For a typical Linux guest which has a /boot filesystem on the first "
25203 "partition, and the root filesystem on a logical volume:"
25204 msgstr ""
25205
25206 # type: verbatim
25207 #: ../fuse/guestmount.pod:49
25208 #, no-wrap
25209 msgid ""
25210 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
25211 "\n"
25212 msgstr ""
25213
25214 # type: textblock
25215 #: ../fuse/guestmount.pod:51
25216 msgid "To get libguestfs to detect guest mountpoints for you:"
25217 msgstr ""
25218
25219 # type: verbatim
25220 #: ../fuse/guestmount.pod:53
25221 #, no-wrap
25222 msgid ""
25223 " guestmount -a guest.img -i --ro /mnt\n"
25224 "\n"
25225 msgstr ""
25226
25227 # type: textblock
25228 #: ../fuse/guestmount.pod:55
25229 msgid "For a libvirt guest called \"Guest\" you could do:"
25230 msgstr ""
25231
25232 # type: verbatim
25233 #: ../fuse/guestmount.pod:57
25234 #, no-wrap
25235 msgid ""
25236 " guestmount -d Guest -i --ro /mnt\n"
25237 "\n"
25238 msgstr ""
25239
25240 # type: textblock
25241 #: ../fuse/guestmount.pod:59
25242 msgid ""
25243 "If you don't know what filesystems are contained in a guest or disk image, "
25244 "use L<virt-filesystems(1)> first:"
25245 msgstr ""
25246
25247 # type: verbatim
25248 #: ../fuse/guestmount.pod:62
25249 #, no-wrap
25250 msgid ""
25251 " virt-filesystems MyGuest\n"
25252 "\n"
25253 msgstr ""
25254
25255 # type: textblock
25256 #: ../fuse/guestmount.pod:64
25257 msgid ""
25258 "If you want to trace the libguestfs calls but without excessive debugging "
25259 "information, we recommend:"
25260 msgstr ""
25261
25262 # type: verbatim
25263 #: ../fuse/guestmount.pod:67
25264 #, no-wrap
25265 msgid ""
25266 " guestmount [...] --trace /mnt\n"
25267 "\n"
25268 msgstr ""
25269
25270 # type: textblock
25271 #: ../fuse/guestmount.pod:69
25272 msgid "If you want to debug the program, we recommend:"
25273 msgstr ""
25274
25275 # type: verbatim
25276 #: ../fuse/guestmount.pod:71
25277 #, no-wrap
25278 msgid ""
25279 " guestmount [...] --trace --verbose /mnt\n"
25280 "\n"
25281 msgstr ""
25282
25283 # type: textblock
25284 #: ../fuse/guestmount.pod:79
25285 msgid "Add a block device or virtual machine image."
25286 msgstr ""
25287
25288 # type: =item
25289 #: ../fuse/guestmount.pod:96
25290 msgid "B<--dir-cache-timeout N>"
25291 msgstr ""
25292
25293 # type: textblock
25294 #: ../fuse/guestmount.pod:98
25295 msgid ""
25296 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
25297 "seconds.  The readdir cache [actually, there are several semi-independent "
25298 "caches] is populated after a readdir(2) call with the stat and extended "
25299 "attributes of the files in the directory, in anticipation that they will be "
25300 "requested soon after."
25301 msgstr ""
25302
25303 # type: textblock
25304 #: ../fuse/guestmount.pod:104
25305 msgid ""
25306 "There is also a different attribute cache implemented by FUSE (see the FUSE "
25307 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
25308 "requests, only cache existing ones."
25309 msgstr ""
25310
25311 # type: textblock
25312 #: ../fuse/guestmount.pod:122
25313 msgid ""
25314 "If you have untrusted raw-format guest disk images, you should use this "
25315 "option to specify the disk format.  This avoids a possible security problem "
25316 "with malicious guests (CVE-2010-3851).  See also "
25317 "L<guestfs(3)/guestfs_add_drive_opts>."
25318 msgstr ""
25319
25320 # type: =item
25321 #: ../fuse/guestmount.pod:127
25322 msgid "B<--fuse-help>"
25323 msgstr ""
25324
25325 # type: textblock
25326 #: ../fuse/guestmount.pod:129
25327 msgid "Display help on special FUSE options (see I<-o> below)."
25328 msgstr ""
25329
25330 # type: textblock
25331 #: ../fuse/guestmount.pod:133
25332 msgid "Display brief help and exit."
25333 msgstr ""
25334
25335 # type: =item
25336 #: ../fuse/guestmount.pod:146
25337 msgid "B<-m dev[:mnt]> | B<--mount dev[:mnt]>"
25338 msgstr ""
25339
25340 # type: textblock
25341 #: ../fuse/guestmount.pod:148
25342 msgid ""
25343 "Mount the named partition or logical volume on the given mountpoint B<in the "
25344 "guest> (this has nothing to do with mountpoints in the host)."
25345 msgstr ""
25346
25347 # type: textblock
25348 #: ../fuse/guestmount.pod:151
25349 msgid ""
25350 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
25351 "something on C</>."
25352 msgstr ""
25353
25354 # type: textblock
25355 #: ../fuse/guestmount.pod:156
25356 msgid ""
25357 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
25358 "unmounted.  If you specify this option, then we don't attempt to sync the "
25359 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
25360 msgstr ""
25361
25362 # type: =item
25363 #: ../fuse/guestmount.pod:161
25364 msgid "B<-o option> | B<--option option>"
25365 msgstr ""
25366
25367 # type: textblock
25368 #: ../fuse/guestmount.pod:163
25369 msgid "Pass extra options to FUSE."
25370 msgstr ""
25371
25372 # type: textblock
25373 #: ../fuse/guestmount.pod:165
25374 msgid ""
25375 "To get a list of all the extra options supported by FUSE, use the command "
25376 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
25377 "of them are a good idea."
25378 msgstr ""
25379
25380 # type: verbatim
25381 #: ../fuse/guestmount.pod:169
25382 #, no-wrap
25383 msgid ""
25384 " guestmount --fuse-help\n"
25385 "\n"
25386 msgstr ""
25387
25388 # type: textblock
25389 #: ../fuse/guestmount.pod:171
25390 msgid "Some potentially useful FUSE options:"
25391 msgstr ""
25392
25393 # type: =item
25394 #: ../fuse/guestmount.pod:175
25395 msgid "B<-o allow_other>"
25396 msgstr ""
25397
25398 # type: textblock
25399 #: ../fuse/guestmount.pod:177
25400 msgid "Allow other users to see the filesystem."
25401 msgstr ""
25402
25403 # type: =item
25404 #: ../fuse/guestmount.pod:179
25405 msgid "B<-o attr_timeout=N>"
25406 msgstr ""
25407
25408 # type: textblock
25409 #: ../fuse/guestmount.pod:181
25410 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
25411 msgstr ""
25412
25413 # type: =item
25414 #: ../fuse/guestmount.pod:183
25415 msgid "B<-o kernel_cache>"
25416 msgstr ""
25417
25418 # type: textblock
25419 #: ../fuse/guestmount.pod:185
25420 msgid ""
25421 "Allow the kernel to cache files (reduces the number of reads that have to go "
25422 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
25423 "afford the extra memory usage."
25424 msgstr ""
25425
25426 # type: =item
25427 #: ../fuse/guestmount.pod:189
25428 msgid "B<-o uid=N> B<-o gid=N>"
25429 msgstr ""
25430
25431 # type: textblock
25432 #: ../fuse/guestmount.pod:191
25433 msgid ""
25434 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
25435 "the chosen values."
25436 msgstr ""
25437
25438 # type: textblock
25439 #: ../fuse/guestmount.pod:198
25440 msgid ""
25441 "Add devices and mount everything read-only.  Also disallow writes and make "
25442 "the disk appear read-only to FUSE."
25443 msgstr ""
25444
25445 # type: textblock
25446 #: ../fuse/guestmount.pod:201
25447 msgid ""
25448 "This is highly recommended if you are not going to edit the guest disk.  If "
25449 "the guest is running and this option is I<not> supplied, then there is a "
25450 "strong risk of disk corruption in the guest.  We try to prevent this from "
25451 "happening, but it is not always possible."
25452 msgstr ""
25453
25454 # type: textblock
25455 #: ../fuse/guestmount.pod:206
25456 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
25457 msgstr ""
25458
25459 # type: textblock
25460 #: ../fuse/guestmount.pod:210
25461 msgid "Enable SELinux support for the guest."
25462 msgstr ""
25463
25464 # type: textblock
25465 #: ../fuse/guestmount.pod:214
25466 msgid "Enable verbose messages from underlying libguestfs."
25467 msgstr ""
25468
25469 # type: textblock
25470 #: ../fuse/guestmount.pod:218
25471 msgid "Display the program version and exit."
25472 msgstr ""
25473
25474 # type: textblock
25475 #: ../fuse/guestmount.pod:222
25476 msgid ""
25477 "This option does nothing at the moment.  See L<guestfish(1)/OPENING DISKS "
25478 "FOR READ AND WRITE>."
25479 msgstr ""
25480
25481 # type: =item
25482 #: ../fuse/guestmount.pod:225
25483 msgid "B<-x> | B<--trace>"
25484 msgstr ""
25485
25486 # type: textblock
25487 #: ../fuse/guestmount.pod:227
25488 msgid "Trace libguestfs calls."
25489 msgstr ""
25490
25491 # type: textblock
25492 #: ../fuse/guestmount.pod:229
25493 msgid "This also stops the daemon from forking into the background."
25494 msgstr ""
25495
25496 # type: textblock
25497 #: ../fuse/guestmount.pod:235
25498 msgid ""
25499 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
25500 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, "
25501 "L<http://fuse.sf.net/>."
25502 msgstr ""
25503
25504 # type: textblock
25505 #: ../tools/virt-edit.pl:34
25506 msgid "virt-edit - Edit a file in a virtual machine"
25507 msgstr ""
25508
25509 # type: verbatim
25510 #: ../tools/virt-edit.pl:38
25511 #, no-wrap
25512 msgid ""
25513 " virt-edit [--options] domname file\n"
25514 "\n"
25515 msgstr ""
25516
25517 # type: verbatim
25518 #: ../tools/virt-edit.pl:40
25519 #, no-wrap
25520 msgid ""
25521 " virt-edit [--options] disk.img [disk.img ...] file\n"
25522 "\n"
25523 msgstr ""
25524
25525 # type: verbatim
25526 #: ../tools/virt-edit.pl:42
25527 #, no-wrap
25528 msgid ""
25529 " virt-edit [domname|disk.img] file -e 'expr'\n"
25530 "\n"
25531 msgstr ""
25532
25533 # type: textblock
25534 #: ../tools/virt-edit.pl:46
25535 msgid ""
25536 "You must I<not> use C<virt-edit> on live virtual machines.  If you do this, "
25537 "you risk disk corruption in the VM.  C<virt-edit> tries to stop you from "
25538 "doing this, but doesn't catch all cases."
25539 msgstr ""
25540
25541 # type: textblock
25542 #: ../tools/virt-edit.pl:52
25543 msgid ""
25544 "C<virt-edit> is a command line tool to edit C<file> where C<file> exists in "
25545 "the named virtual machine (or disk image)."
25546 msgstr ""
25547
25548 # type: textblock
25549 #: ../tools/virt-edit.pl:55
25550 msgid ""
25551 "If you want to just view a file, use L<virt-cat(1)>.  For more complex cases "
25552 "you should look at the L<guestfish(1)> tool."
25553 msgstr ""
25554
25555 # type: textblock
25556 #: ../tools/virt-edit.pl:60
25557 msgid "Edit the named files interactively:"
25558 msgstr ""
25559
25560 # type: verbatim
25561 #: ../tools/virt-edit.pl:62
25562 #, no-wrap
25563 msgid ""
25564 " virt-edit mydomain /boot/grub/grub.conf\n"
25565 "\n"
25566 msgstr ""
25567
25568 # type: verbatim
25569 #: ../tools/virt-edit.pl:64
25570 #, no-wrap
25571 msgid ""
25572 " virt-edit mydomain /etc/passwd\n"
25573 "\n"
25574 msgstr ""
25575
25576 # type: textblock
25577 #: ../tools/virt-edit.pl:66
25578 msgid ""
25579 "You can also edit files non-interactively (see L</NON-INTERACTIVE EDITING> "
25580 "below).  To change the init default level to 5:"
25581 msgstr ""
25582
25583 # type: verbatim
25584 #: ../tools/virt-edit.pl:70
25585 #, no-wrap
25586 msgid ""
25587 " virt-edit mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
25588 "\n"
25589 msgstr ""
25590
25591 # type: textblock
25592 #: ../tools/virt-edit.pl:82 ../tools/virt-win-reg.pl:181 ../tools/virt-list-filesystems.pl:63 ../tools/virt-tar.pl:108 ../tools/virt-rescue.pl:113 ../tools/virt-make-fs.pl:163 ../tools/virt-list-partitions.pl:64
25593 msgid "Display brief help."
25594 msgstr ""
25595
25596 # type: =item
25597 #: ../tools/virt-edit.pl:88 ../tools/virt-win-reg.pl:187 ../tools/virt-resize.pl:272 ../tools/virt-list-filesystems.pl:69 ../tools/virt-tar.pl:114 ../tools/virt-rescue.pl:119 ../tools/virt-make-fs.pl:169 ../tools/virt-list-partitions.pl:70
25598 msgid "B<--version>"
25599 msgstr ""
25600
25601 # type: textblock
25602 #: ../tools/virt-edit.pl:90 ../tools/virt-win-reg.pl:189 ../tools/virt-resize.pl:274 ../tools/virt-list-filesystems.pl:71 ../tools/virt-tar.pl:116 ../tools/virt-rescue.pl:121 ../tools/virt-make-fs.pl:171 ../tools/virt-list-partitions.pl:72
25603 msgid "Display version number and exit."
25604 msgstr ""
25605
25606 # type: =item
25607 #: ../tools/virt-edit.pl:96
25608 msgid "B<--backup extension> | B<-b extension>"
25609 msgstr ""
25610
25611 # type: textblock
25612 #: ../tools/virt-edit.pl:98
25613 msgid ""
25614 "Create a backup of the original file I<in the guest disk image>.  The backup "
25615 "has the original filename with C<extension> added."
25616 msgstr ""
25617
25618 # type: textblock
25619 #: ../tools/virt-edit.pl:101
25620 msgid ""
25621 "Usually the first character of C<extension> would be a dot C<.> so you would "
25622 "write:"
25623 msgstr ""
25624
25625 # type: verbatim
25626 #: ../tools/virt-edit.pl:104
25627 #, no-wrap
25628 msgid ""
25629 " virt-edit -b .orig [etc]\n"
25630 "\n"
25631 msgstr ""
25632
25633 # type: textblock
25634 #: ../tools/virt-edit.pl:106
25635 msgid "By default, no backup file is made."
25636 msgstr ""
25637
25638 # type: =item
25639 #: ../tools/virt-edit.pl:112 ../tools/virt-win-reg.pl:203 ../tools/virt-list-filesystems.pl:77 ../tools/virt-tar.pl:122 ../tools/virt-rescue.pl:135 ../tools/virt-list-partitions.pl:78
25640 msgid "B<--connect URI> | B<-c URI>"
25641 msgstr ""
25642
25643 # type: textblock
25644 #: ../tools/virt-edit.pl:114 ../tools/virt-win-reg.pl:205 ../tools/virt-list-filesystems.pl:79 ../tools/virt-tar.pl:124 ../tools/virt-rescue.pl:137 ../tools/virt-list-partitions.pl:80
25645 msgid ""
25646 "If using libvirt, connect to the given I<URI>.  If omitted, then we connect "
25647 "to the default libvirt hypervisor."
25648 msgstr ""
25649
25650 # type: textblock
25651 #: ../tools/virt-edit.pl:117 ../tools/virt-win-reg.pl:208 ../tools/virt-list-filesystems.pl:82 ../tools/virt-tar.pl:127 ../tools/virt-rescue.pl:140 ../tools/virt-list-partitions.pl:83
25652 msgid ""
25653 "If you specify guest block devices directly, then libvirt is not used at "
25654 "all."
25655 msgstr ""
25656
25657 # type: =item
25658 #: ../tools/virt-edit.pl:124 ../tools/virt-win-reg.pl:215 ../tools/virt-resize.pl:522 ../tools/virt-list-filesystems.pl:89 ../tools/virt-tar.pl:134 ../tools/virt-rescue.pl:147 ../tools/virt-list-partitions.pl:90
25659 msgid "B<--format> raw"
25660 msgstr ""
25661
25662 # type: textblock
25663 #: ../tools/virt-edit.pl:126 ../tools/virt-win-reg.pl:217 ../tools/virt-list-filesystems.pl:91 ../tools/virt-tar.pl:136 ../tools/virt-rescue.pl:149 ../tools/virt-list-partitions.pl:92
25664 msgid ""
25665 "Specify the format of disk images given on the command line.  If this is "
25666 "omitted then the format is autodetected from the content of the disk image."
25667 msgstr ""
25668
25669 # type: textblock
25670 #: ../tools/virt-edit.pl:130 ../tools/virt-win-reg.pl:221 ../tools/virt-list-filesystems.pl:95 ../tools/virt-tar.pl:140 ../tools/virt-rescue.pl:153 ../tools/virt-list-partitions.pl:96
25671 msgid ""
25672 "If disk images are requested from libvirt, then this program asks libvirt "
25673 "for this information.  In this case, the value of the format parameter is "
25674 "ignored."
25675 msgstr ""
25676
25677 # type: textblock
25678 #: ../tools/virt-edit.pl:134 ../tools/virt-win-reg.pl:225 ../tools/virt-resize.pl:527 ../tools/virt-resize.pl:542 ../tools/virt-list-filesystems.pl:99 ../tools/virt-tar.pl:144 ../tools/virt-rescue.pl:157 ../tools/virt-list-partitions.pl:100
25679 msgid ""
25680 "If working with untrusted raw-format guest disk images, you should ensure "
25681 "the format is always specified."
25682 msgstr ""
25683
25684 # type: =item
25685 #: ../tools/virt-edit.pl:141
25686 msgid "B<--expr EXPR> | B<-e EXPR>"
25687 msgstr ""
25688
25689 # type: textblock
25690 #: ../tools/virt-edit.pl:143
25691 msgid ""
25692 "Instead of launching the external editor, non-interactively apply the Perl "
25693 "expression C<EXPR> to each line in the file.  See L</NON-INTERACTIVE "
25694 "EDITING> below."
25695 msgstr ""
25696
25697 # type: textblock
25698 #: ../tools/virt-edit.pl:147
25699 msgid ""
25700 "Be careful to properly quote the expression to prevent it from being altered "
25701 "by the shell."
25702 msgstr ""
25703
25704 # type: =head1
25705 #: ../tools/virt-edit.pl:268
25706 msgid "NON-INTERACTIVE EDITING"
25707 msgstr ""
25708
25709 # type: textblock
25710 #: ../tools/virt-edit.pl:270
25711 msgid ""
25712 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
25713 "administrator can interactively edit the file."
25714 msgstr ""
25715
25716 # type: textblock
25717 #: ../tools/virt-edit.pl:273
25718 msgid ""
25719 "There are two ways also to use C<virt-edit> from scripts in order to make "
25720 "automated edits to files.  (Note that although you I<can> use C<virt-edit> "
25721 "like this, it's less error-prone to write scripts directly using the "
25722 "libguestfs API and Augeas for configuration file editing.)"
25723 msgstr ""
25724
25725 # type: textblock
25726 #: ../tools/virt-edit.pl:279
25727 msgid ""
25728 "The first method is to temporarily set C<$EDITOR> to any script or program "
25729 "you want to run.  The script is invoked as C<$EDITOR tmpfile> and it should "
25730 "update C<tmpfile> in place however it likes."
25731 msgstr ""
25732
25733 # type: textblock
25734 #: ../tools/virt-edit.pl:283
25735 msgid ""
25736 "The second method is to use the C<-e> parameter of C<virt-edit> to run a "
25737 "short Perl snippet in the style of L<sed(1)>.  For example to replace all "
25738 "instances of C<foo> with C<bar> in a file:"
25739 msgstr ""
25740
25741 # type: verbatim
25742 #: ../tools/virt-edit.pl:287
25743 #, no-wrap
25744 msgid ""
25745 " virt-edit domname filename -e 's/foo/bar/'\n"
25746 "\n"
25747 msgstr ""
25748
25749 # type: textblock
25750 #: ../tools/virt-edit.pl:289
25751 msgid ""
25752 "The full power of Perl regular expressions can be used (see L<perlre(1)>).  "
25753 "For example to delete root's password you could do:"
25754 msgstr ""
25755
25756 # type: verbatim
25757 #: ../tools/virt-edit.pl:292
25758 #, no-wrap
25759 msgid ""
25760 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
25761 "\n"
25762 msgstr ""
25763
25764 # type: textblock
25765 #: ../tools/virt-edit.pl:294
25766 msgid ""
25767 "What really happens is that the snippet is evaluated as a Perl expression "
25768 "for each line of the file.  The line, including the final C<\\n>, is passed "
25769 "in C<$_> and the expression should update C<$_> or leave it unchanged."
25770 msgstr ""
25771
25772 # type: textblock
25773 #: ../tools/virt-edit.pl:299
25774 msgid ""
25775 "To delete a line, set C<$_> to the empty string.  For example, to delete the "
25776 "C<apache> user account from the password file you can do:"
25777 msgstr ""
25778
25779 # type: verbatim
25780 #: ../tools/virt-edit.pl:302
25781 #, no-wrap
25782 msgid ""
25783 " virt-edit mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
25784 "\n"
25785 msgstr ""
25786
25787 # type: textblock
25788 #: ../tools/virt-edit.pl:304
25789 msgid ""
25790 "To insert a line, prepend or append it to C<$_>.  However appending lines to "
25791 "the end of the file is rather difficult this way since there is no concept "
25792 "of \"last line of the file\" - your expression just doesn't get called "
25793 "again.  You might want to use the first method (setting C<$EDITOR>) if you "
25794 "want to do this."
25795 msgstr ""
25796
25797 # type: textblock
25798 #: ../tools/virt-edit.pl:310
25799 msgid ""
25800 "The variable C<$lineno> contains the current line number.  As is "
25801 "traditional, the first line in the file is number C<1>."
25802 msgstr ""
25803
25804 # type: textblock
25805 #: ../tools/virt-edit.pl:313
25806 msgid ""
25807 "The return value from the expression is ignored, but the expression may call "
25808 "C<die> in order to abort the whole program, leaving the original file "
25809 "untouched."
25810 msgstr ""
25811
25812 # type: textblock
25813 #: ../tools/virt-edit.pl:317
25814 msgid ""
25815 "Remember when matching the end of a line that C<$_> may contain the final "
25816 "C<\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
25817 "newline then neither of these.  Thus to match or substitute some text at the "
25818 "end of a line, use this regular expression:"
25819 msgstr ""
25820
25821 # type: verbatim
25822 #: ../tools/virt-edit.pl:322
25823 #, no-wrap
25824 msgid ""
25825 " /some text(\\r?\\n)?$/\n"
25826 "\n"
25827 msgstr ""
25828
25829 # type: textblock
25830 #: ../tools/virt-edit.pl:324
25831 msgid ""
25832 "Alternately, use the perl C<chomp> function, being careful not to chomp "
25833 "C<$_> itself (since that would remove all newlines from the file):"
25834 msgstr ""
25835
25836 # type: verbatim
25837 #: ../tools/virt-edit.pl:328
25838 #, no-wrap
25839 msgid ""
25840 " my $m = $_; chomp $m; $m =~ /some text$/\n"
25841 "\n"
25842 msgstr ""
25843
25844 # type: =item
25845 #: ../tools/virt-edit.pl:334
25846 msgid "C<EDITOR>"
25847 msgstr ""
25848
25849 # type: textblock
25850 #: ../tools/virt-edit.pl:336
25851 msgid ""
25852 "If set, this string is used as the editor.  It may contain arguments, "
25853 "eg. C<\"emacs -nw\">"
25854 msgstr ""
25855
25856 # type: textblock
25857 #: ../tools/virt-edit.pl:339
25858 msgid "If not set, C<vi> is used."
25859 msgstr ""
25860
25861 # type: =head1
25862 #: ../tools/virt-edit.pl:343 ../tools/virt-win-reg.pl:141 ../tools/virt-win-reg.pl:477 ../tools/virt-resize.pl:1478 ../tools/virt-list-filesystems.pl:182 ../tools/virt-tar.pl:274 ../tools/virt-rescue.pl:260 ../tools/virt-make-fs.pl:527 ../tools/virt-list-partitions.pl:250
25863 msgid "SHELL QUOTING"
25864 msgstr ""
25865
25866 # type: textblock
25867 #: ../tools/virt-edit.pl:345 ../tools/virt-win-reg.pl:479 ../tools/virt-resize.pl:1480 ../tools/virt-list-filesystems.pl:184 ../tools/virt-tar.pl:276 ../tools/virt-rescue.pl:262 ../tools/virt-make-fs.pl:529 ../tools/virt-list-partitions.pl:252
25868 msgid ""
25869 "Libvirt guest names can contain arbitrary characters, some of which have "
25870 "meaning to the shell such as C<#> and space.  You may need to quote or "
25871 "escape these characters on the command line.  See the shell manual page "
25872 "L<sh(1)> for details."
25873 msgstr ""
25874
25875 # type: textblock
25876 #: ../tools/virt-edit.pl:352
25877 msgid ""
25878 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, "
25879 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>, "
25880 "L<perl(1)>, L<perlre(1)>."
25881 msgstr ""
25882
25883 # type: =head1
25884 #: ../tools/virt-edit.pl:362 ../tools/virt-win-reg.pl:510 ../tools/virt-resize.pl:1506 ../tools/virt-list-filesystems.pl:202 ../tools/virt-tar.pl:292 ../tools/virt-rescue.pl:277 ../tools/virt-make-fs.pl:559 ../tools/virt-list-partitions.pl:269
25885 msgid "AUTHOR"
25886 msgstr ""
25887
25888 # type: textblock
25889 #: ../tools/virt-edit.pl:364 ../tools/virt-win-reg.pl:512 ../tools/virt-resize.pl:1508 ../tools/virt-list-filesystems.pl:204 ../tools/virt-tar.pl:294 ../tools/virt-rescue.pl:279 ../tools/virt-make-fs.pl:561 ../tools/virt-list-partitions.pl:271
25890 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
25891 msgstr ""
25892
25893 # type: textblock
25894 #: ../tools/virt-edit.pl:368 ../tools/virt-rescue.pl:283 ../tools/virt-list-partitions.pl:275
25895 msgid "Copyright (C) 2009-2010 Red Hat Inc."
25896 msgstr ""
25897
25898 # type: textblock
25899 #: ../tools/virt-win-reg.pl:37
25900 msgid ""
25901 "virt-win-reg - Export and merge Windows Registry entries from a Windows "
25902 "guest"
25903 msgstr ""
25904
25905 # type: verbatim
25906 #: ../tools/virt-win-reg.pl:41
25907 #, no-wrap
25908 msgid ""
25909 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
25910 "\n"
25911 msgstr ""
25912
25913 # type: verbatim
25914 #: ../tools/virt-win-reg.pl:43
25915 #, no-wrap
25916 msgid ""
25917 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
25918 "\n"
25919 msgstr ""
25920
25921 # type: verbatim
25922 #: ../tools/virt-win-reg.pl:45
25923 #, no-wrap
25924 msgid ""
25925 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
25926 "\n"
25927 msgstr ""
25928
25929 # type: verbatim
25930 #: ../tools/virt-win-reg.pl:47
25931 #, no-wrap
25932 msgid ""
25933 " virt-win-reg --merge domname [input.reg ...]\n"
25934 "\n"
25935 msgstr ""
25936
25937 # type: verbatim
25938 #: ../tools/virt-win-reg.pl:49
25939 #, no-wrap
25940 msgid ""
25941 " virt-win-reg [--options] disk.img ... # instead of domname\n"
25942 "\n"
25943 msgstr ""
25944
25945 # type: textblock
25946 #: ../tools/virt-win-reg.pl:53
25947 msgid ""
25948 "You must I<not> use C<virt-win-reg> with the C<--merge> option on live "
25949 "virtual machines.  If you do this, you I<will> get irreversible disk "
25950 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
25951 "but doesn't catch all cases."
25952 msgstr ""
25953
25954 # type: textblock
25955 #: ../tools/virt-win-reg.pl:58
25956 msgid ""
25957 "Modifying the Windows Registry is an inherently risky operation.  The format "
25958 "is deliberately obscure and undocumented, and Registry changes can leave the "
25959 "system unbootable.  Therefore when using the C<--merge> option, make sure "
25960 "you have a reliable backup first."
25961 msgstr ""
25962
25963 # type: textblock
25964 #: ../tools/virt-win-reg.pl:65
25965 msgid ""
25966 "This program can export and merge Windows Registry entries from a Windows "
25967 "guest."
25968 msgstr ""
25969
25970 # type: textblock
25971 #: ../tools/virt-win-reg.pl:68
25972 msgid ""
25973 "The first parameter is the libvirt guest name or the raw disk image of a "
25974 "Windows guest."
25975 msgstr ""
25976
25977 # type: textblock
25978 #: ../tools/virt-win-reg.pl:71
25979 msgid ""
25980 "If C<--merge> is I<not> specified, then the chosen registry key is "
25981 "displayed/exported (recursively).  For example:"
25982 msgstr ""
25983
25984 # type: verbatim
25985 #: ../tools/virt-win-reg.pl:74
25986 #, no-wrap
25987 msgid ""
25988 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
25989 "\n"
25990 msgstr ""
25991
25992 # type: textblock
25993 #: ../tools/virt-win-reg.pl:76
25994 msgid "You can also display single values from within registry keys, for example:"
25995 msgstr ""
25996
25997 # type: verbatim
25998 #: ../tools/virt-win-reg.pl:79
25999 #, no-wrap
26000 msgid ""
26001 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
26002 " $ virt-win-reg Windows7 $cvkey ProductName\n"
26003 " Windows 7 Enterprise\n"
26004 "\n"
26005 msgstr ""
26006
26007 # type: textblock
26008 #: ../tools/virt-win-reg.pl:83
26009 msgid ""
26010 "With C<--merge>, you can merge a textual regedit file into the Windows "
26011 "Registry:"
26012 msgstr ""
26013
26014 # type: verbatim
26015 #: ../tools/virt-win-reg.pl:86
26016 #, no-wrap
26017 msgid ""
26018 " $ virt-win-reg --merge Windows7 changes.reg\n"
26019 "\n"
26020 msgstr ""
26021
26022 # type: =head2
26023 #: ../tools/virt-win-reg.pl:88
26024 msgid "SUPPORTED SYSTEMS"
26025 msgstr ""
26026
26027 # type: textblock
26028 #: ../tools/virt-win-reg.pl:90
26029 msgid ""
26030 "The program currently supports Windows NT-derived guests starting with "
26031 "Windows XP through to at least Windows 7."
26032 msgstr ""
26033
26034 # type: textblock
26035 #: ../tools/virt-win-reg.pl:93
26036 msgid ""
26037 "Registry support is done for C<HKEY_LOCAL_MACHINE\\SAM>, "
26038 "C<HKEY_LOCAL_MACHINE\\SECURITY>, C<HKEY_LOCAL_MACHINE\\SOFTWARE>, "
26039 "C<HKEY_LOCAL_MACHINE\\SYSTEM> and C<HKEY_USERS\\.DEFAULT>."
26040 msgstr ""
26041
26042 # type: textblock
26043 #: ../tools/virt-win-reg.pl:97
26044 msgid ""
26045 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
26046 "C<HKEY_USERS>."
26047 msgstr ""
26048
26049 # type: textblock
26050 #: ../tools/virt-win-reg.pl:100
26051 msgid ""
26052 "C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are B<not> supported at this "
26053 "time."
26054 msgstr ""
26055
26056 # type: =head2
26057 #: ../tools/virt-win-reg.pl:103
26058 msgid "NOTE"
26059 msgstr ""
26060
26061 # type: textblock
26062 #: ../tools/virt-win-reg.pl:105
26063 msgid ""
26064 "This program is only meant for simple access to the registry.  If you want "
26065 "to do complicated things with the registry, we suggest you download the "
26066 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
26067 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
26068 "L<hivexregedit(1)>."
26069 msgstr ""
26070
26071 # type: =head2
26072 #: ../tools/virt-win-reg.pl:111
26073 msgid "ENCODING"
26074 msgstr ""
26075
26076 # type: textblock
26077 #: ../tools/virt-win-reg.pl:113
26078 msgid ""
26079 "C<virt-win-reg> expects that regedit files have already been reencoded in "
26080 "the local encoding.  Usually on Linux hosts, this means UTF-8 with "
26081 "Unix-style line endings.  Since Windows regedit files are often in UTF-16LE "
26082 "with Windows-style line endings, you may need to reencode the whole file "
26083 "before or after processing."
26084 msgstr ""
26085
26086 # type: textblock
26087 #: ../tools/virt-win-reg.pl:119
26088 msgid ""
26089 "To reencode a file from Windows format to Linux (before processing it with "
26090 "the C<--merge> option), you would do something like this:"
26091 msgstr ""
26092
26093 # type: verbatim
26094 #: ../tools/virt-win-reg.pl:122
26095 #, no-wrap
26096 msgid ""
26097 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
26098 "\n"
26099 msgstr ""
26100
26101 # type: textblock
26102 #: ../tools/virt-win-reg.pl:124
26103 msgid ""
26104 "To go in the opposite direction, after exporting and before sending the file "
26105 "to a Windows user, do something like this:"
26106 msgstr ""
26107
26108 # type: verbatim
26109 #: ../tools/virt-win-reg.pl:127
26110 #, no-wrap
26111 msgid ""
26112 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
26113 "\n"
26114 msgstr ""
26115
26116 # type: textblock
26117 #: ../tools/virt-win-reg.pl:129
26118 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
26119 msgstr ""
26120
26121 # type: textblock
26122 #: ../tools/virt-win-reg.pl:131
26123 msgid ""
26124 "If you are unsure about the current encoding, use the L<file(1)> command.  "
26125 "Recent versions of Windows regedit.exe produce a UTF-16LE file with "
26126 "Windows-style (CRLF) line endings, like this:"
26127 msgstr ""
26128
26129 # type: verbatim
26130 #: ../tools/virt-win-reg.pl:135
26131 #, no-wrap
26132 msgid ""
26133 " $ file software.reg\n"
26134 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
26135 " with CRLF line terminators\n"
26136 "\n"
26137 msgstr ""
26138
26139 # type: textblock
26140 #: ../tools/virt-win-reg.pl:139
26141 msgid "This file would need conversion before you could C<--merge> it."
26142 msgstr ""
26143
26144 # type: textblock
26145 #: ../tools/virt-win-reg.pl:143
26146 msgid ""
26147 "Be careful when passing parameters containing C<\\> (backslash) in the "
26148 "shell.  Usually you will have to use 'single quotes' or double backslashes "
26149 "(but not both) to protect them from the shell."
26150 msgstr ""
26151
26152 # type: textblock
26153 #: ../tools/virt-win-reg.pl:147
26154 msgid "Paths and value names are case-insensitive."
26155 msgstr ""
26156
26157 # type: =head2
26158 #: ../tools/virt-win-reg.pl:149
26159 msgid "CurrentControlSet etc."
26160 msgstr ""
26161
26162 # type: textblock
26163 #: ../tools/virt-win-reg.pl:151
26164 msgid ""
26165 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
26166 "Registry at the level of the hive file, and therefore you cannot modify "
26167 "these."
26168 msgstr ""
26169
26170 # type: textblock
26171 #: ../tools/virt-win-reg.pl:155
26172 msgid ""
26173 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
26174 "circumstances it might refer to another control set.  The way to find out is "
26175 "to look at the C<HKLM\\SYSTEM\\Select> key:"
26176 msgstr ""
26177
26178 # type: verbatim
26179 #: ../tools/virt-win-reg.pl:159
26180 #, no-wrap
26181 msgid ""
26182 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
26183 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
26184 " \"Current\"=dword:00000001\n"
26185 " \"Default\"=dword:00000001\n"
26186 " \"Failed\"=dword:00000000\n"
26187 " \"LastKnownGood\"=dword:00000002\n"
26188 "\n"
26189 msgstr ""
26190
26191 # type: textblock
26192 #: ../tools/virt-win-reg.pl:166
26193 msgid "\"Current\" is the one which Windows will choose when it boots."
26194 msgstr ""
26195
26196 # type: textblock
26197 #: ../tools/virt-win-reg.pl:168
26198 msgid "Similarly, other C<Current...> keys in the path may need to be replaced."
26199 msgstr ""
26200
26201 # type: =item
26202 #: ../tools/virt-win-reg.pl:195 ../tools/virt-make-fs.pl:177
26203 msgid "B<--debug>"
26204 msgstr ""
26205
26206 # type: textblock
26207 #: ../tools/virt-win-reg.pl:197 ../tools/virt-resize.pl:500
26208 msgid "Enable debugging messages."
26209 msgstr ""
26210
26211 # type: =item
26212 #: ../tools/virt-win-reg.pl:232
26213 msgid "B<--merge>"
26214 msgstr ""
26215
26216 # type: textblock
26217 #: ../tools/virt-win-reg.pl:234
26218 msgid ""
26219 "In merge mode, this merges a textual regedit file into the Windows Registry "
26220 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
26221 "displays or exports Registry entries instead."
26222 msgstr ""
26223
26224 # type: textblock
26225 #: ../tools/virt-win-reg.pl:238
26226 msgid ""
26227 "Note that C<--merge> is I<unsafe> to use on live virtual machines, and will "
26228 "result in disk corruption.  However exporting (without this flag)  is always "
26229 "safe."
26230 msgstr ""
26231
26232 # type: =item
26233 #: ../tools/virt-win-reg.pl:246
26234 msgid "B<--encoding> UTF-16LE|ASCII"
26235 msgstr ""
26236
26237 # type: textblock
26238 #: ../tools/virt-win-reg.pl:248
26239 msgid ""
26240 "When merging (only), you may need to specify the encoding for strings to be "
26241 "used in the hive file.  This is explained in detail in "
26242 "L<Win::Hivex::Regedit(3)/ENCODING STRINGS>."
26243 msgstr ""
26244
26245 # type: textblock
26246 #: ../tools/virt-win-reg.pl:252
26247 msgid ""
26248 "The default is to use UTF-16LE, which should work with recent versions of "
26249 "Windows."
26250 msgstr ""
26251
26252 # type: textblock
26253 #: ../tools/virt-win-reg.pl:486
26254 msgid ""
26255 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, "
26256 "L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, "
26257 "L<Sys::Guestfs::Lib(3)>, L<Win::Hivex(3)>, L<Win::Hivex::Regedit(3)>, "
26258 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
26259 msgstr ""
26260
26261 # type: textblock
26262 #: ../tools/virt-win-reg.pl:501 ../tools/virt-make-fs.pl:550
26263 msgid ""
26264 "When reporting bugs, please enable debugging and capture the I<complete> "
26265 "output:"
26266 msgstr ""
26267
26268 # type: verbatim
26269 #: ../tools/virt-win-reg.pl:504
26270 #, no-wrap
26271 msgid ""
26272 " export LIBGUESTFS_DEBUG=1\n"
26273 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
26274 "\n"
26275 msgstr ""
26276
26277 # type: textblock
26278 #: ../tools/virt-win-reg.pl:507
26279 msgid ""
26280 "Attach /tmp/virt-win-reg.log to a new bug report at "
26281 "L<https://bugzilla.redhat.com/>"
26282 msgstr ""
26283
26284 # type: textblock
26285 #: ../tools/virt-win-reg.pl:516 ../tools/virt-resize.pl:1512 ../tools/virt-make-fs.pl:565
26286 msgid "Copyright (C) 2010 Red Hat Inc."
26287 msgstr ""
26288
26289 # type: textblock
26290 #: ../tools/virt-resize.pl:42
26291 msgid "virt-resize - Resize a virtual machine disk"
26292 msgstr ""
26293
26294 # type: verbatim
26295 #: ../tools/virt-resize.pl:46
26296 #, no-wrap
26297 msgid ""
26298 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
26299 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
26300 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
26301 "\n"
26302 msgstr ""
26303
26304 # type: textblock
26305 #: ../tools/virt-resize.pl:52
26306 msgid ""
26307 "Virt-resize is a tool which can resize a virtual machine disk, making it "
26308 "larger or smaller overall, and resizing or deleting any partitions contained "
26309 "within."
26310 msgstr ""
26311
26312 # type: textblock
26313 #: ../tools/virt-resize.pl:56
26314 msgid ""
26315 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
26316 "not> be used on live virtual machines - for consistent results, shut the "
26317 "virtual machine down before resizing it."
26318 msgstr ""
26319
26320 # type: textblock
26321 #: ../tools/virt-resize.pl:60
26322 msgid ""
26323 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
26324 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
26325 msgstr ""
26326
26327 # type: textblock
26328 #: ../tools/virt-resize.pl:66
26329 msgid ""
26330 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
26331 "fill the extra 5GB of space."
26332 msgstr ""
26333
26334 # type: verbatim
26335 #: ../tools/virt-resize.pl:69
26336 #, no-wrap
26337 msgid ""
26338 " truncate -r olddisk newdisk; truncate -s +5G newdisk\n"
26339 " virt-filesystems --long --h --all -a olddisk\n"
26340 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
26341 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
26342 "\n"
26343 msgstr ""
26344
26345 # type: textblock
26346 #: ../tools/virt-resize.pl:74
26347 msgid ""
26348 "As above, but make the /boot partition 200MB bigger, while giving the "
26349 "remaining space to /dev/sda2:"
26350 msgstr ""
26351
26352 # type: verbatim
26353 #: ../tools/virt-resize.pl:77
26354 #, no-wrap
26355 msgid ""
26356 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 olddisk newdisk\n"
26357 "\n"
26358 msgstr ""
26359
26360 # type: textblock
26361 #: ../tools/virt-resize.pl:79
26362 msgid "As above, but the output format will be uncompressed qcow2:"
26363 msgstr ""
26364
26365 # type: verbatim
26366 #: ../tools/virt-resize.pl:81
26367 #, no-wrap
26368 msgid ""
26369 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
26370 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
26371 "\n"
26372 msgstr ""
26373
26374 # type: =head1
26375 #: ../tools/virt-resize.pl:84
26376 msgid "DETAILED USAGE"
26377 msgstr ""
26378
26379 # type: =head2
26380 #: ../tools/virt-resize.pl:86
26381 msgid "EXPANDING A VIRTUAL MACHINE DISK"
26382 msgstr ""
26383
26384 # type: =item
26385 #: ../tools/virt-resize.pl:90
26386 msgid "1. Shut down the virtual machine"
26387 msgstr ""
26388
26389 # type: =item
26390 #: ../tools/virt-resize.pl:92
26391 msgid "2. Locate input disk image"
26392 msgstr ""
26393
26394 # type: textblock
26395 #: ../tools/virt-resize.pl:94
26396 msgid ""
26397 "Locate the input disk image (ie. the file or device on the host containing "
26398 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
26399 "dumpxml> like this to find the disk image name:"
26400 msgstr ""
26401
26402 # type: verbatim
26403 #: ../tools/virt-resize.pl:98
26404 #, no-wrap
26405 msgid ""
26406 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
26407 " Found 1 nodes:\n"
26408 " -- NODE --\n"
26409 " <source dev=\"/dev/vg/lv_guest\" />\n"
26410 "\n"
26411 msgstr ""
26412
26413 # type: =item
26414 #: ../tools/virt-resize.pl:103
26415 msgid "3. Look at current sizing"
26416 msgstr ""
26417
26418 # type: textblock
26419 #: ../tools/virt-resize.pl:105
26420 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
26421 msgstr ""
26422
26423 # type: verbatim
26424 #: ../tools/virt-resize.pl:108
26425 #, no-wrap
26426 msgid ""
26427 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
26428 " Name       Type       Size  Parent\n"
26429 " /dev/sda1  partition  101M  /dev/sda\n"
26430 " /dev/sda2  partition  7.9G  /dev/sda\n"
26431 " /dev/sda   device     8.0G  -\n"
26432 "\n"
26433 msgstr ""
26434
26435 # type: textblock
26436 #: ../tools/virt-resize.pl:114
26437 msgid ""
26438 "(This example is a virtual machine with an 8 GB disk which we would like to "
26439 "expand up to 10 GB)."
26440 msgstr ""
26441
26442 # type: =item
26443 #: ../tools/virt-resize.pl:117
26444 msgid "4. Create output disk"
26445 msgstr ""
26446
26447 # type: textblock
26448 #: ../tools/virt-resize.pl:119
26449 msgid ""
26450 "Virt-resize cannot do in-place disk modifications.  You have to have space "
26451 "to store the resized output disk."
26452 msgstr ""
26453
26454 # type: textblock
26455 #: ../tools/virt-resize.pl:122
26456 msgid "To store the resized disk image in a file, create a file of a suitable size:"
26457 msgstr ""
26458
26459 # type: verbatim
26460 #: ../tools/virt-resize.pl:125
26461 #, no-wrap
26462 msgid ""
26463 " # rm -f outdisk\n"
26464 " # truncate -s 10G outdisk\n"
26465 "\n"
26466 msgstr ""
26467
26468 # type: textblock
26469 #: ../tools/virt-resize.pl:128
26470 msgid "Or use L<lvcreate(1)> to create a logical volume:"
26471 msgstr ""
26472
26473 # type: verbatim
26474 #: ../tools/virt-resize.pl:130
26475 #, no-wrap
26476 msgid ""
26477 " # lvcreate -L 10G -n lv_name vg_name\n"
26478 "\n"
26479 msgstr ""
26480
26481 # type: textblock
26482 #: ../tools/virt-resize.pl:132
26483 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
26484 msgstr ""
26485
26486 # type: verbatim
26487 #: ../tools/virt-resize.pl:134
26488 #, no-wrap
26489 msgid ""
26490 " # virsh pool-list\n"
26491 " # virsh vol-create-as poolname newvol 10G\n"
26492 "\n"
26493 msgstr ""
26494
26495 # type: =item
26496 #: ../tools/virt-resize.pl:137
26497 msgid "5. Resize"
26498 msgstr ""
26499
26500 # type: textblock
26501 #: ../tools/virt-resize.pl:139
26502 msgid ""
26503 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
26504 "file) and the output disk.  The output disk is the one created in the "
26505 "previous step."
26506 msgstr ""
26507
26508 # type: verbatim
26509 #: ../tools/virt-resize.pl:143
26510 #, no-wrap
26511 msgid ""
26512 " # virt-resize indisk outdisk\n"
26513 "\n"
26514 msgstr ""
26515
26516 # type: textblock
26517 #: ../tools/virt-resize.pl:145
26518 msgid ""
26519 "This command just copies disk image C<indisk> to disk image C<outdisk> "
26520 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
26521 "larger, then an extra, empty partition is created at the end of the disk "
26522 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
26523 "error."
26524 msgstr ""
26525
26526 # type: textblock
26527 #: ../tools/virt-resize.pl:151
26528 msgid ""
26529 "More realistically you'd want to expand existing partitions in the disk "
26530 "image by passing extra options (for the full list see the L</OPTIONS> "
26531 "section below)."
26532 msgstr ""
26533
26534 # type: textblock
26535 #: ../tools/virt-resize.pl:155
26536 msgid ""
26537 "L</--expand> is the most useful option.  It expands the named partition "
26538 "within the disk to fill any extra space:"
26539 msgstr ""
26540
26541 # type: verbatim
26542 #: ../tools/virt-resize.pl:158
26543 #, no-wrap
26544 msgid ""
26545 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
26546 "\n"
26547 msgstr ""
26548
26549 # type: textblock
26550 #: ../tools/virt-resize.pl:160
26551 msgid ""
26552 "(In this case, an extra partition is I<not> created at the end of the disk, "
26553 "because there will be no unused space)."
26554 msgstr ""
26555
26556 # type: textblock
26557 #: ../tools/virt-resize.pl:163
26558 msgid ""
26559 "L</--resize> is the other commonly used option.  The following would "
26560 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
26561 "rest of the available space:"
26562 msgstr ""
26563
26564 # type: verbatim
26565 #: ../tools/virt-resize.pl:167
26566 #, no-wrap
26567 msgid ""
26568 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
26569 "     indisk outdisk\n"
26570 "\n"
26571 msgstr ""
26572
26573 # type: textblock
26574 #: ../tools/virt-resize.pl:170
26575 msgid ""
26576 "If the expanded partition in the image contains a filesystem or LVM PV, then "
26577 "if virt-resize knows how, it will resize the contents, the equivalent of "
26578 "calling a command such as L<pvresize(8)>, L<resize2fs(8)> or "
26579 "L<ntfsresize(8)>.  However virt-resize does not know how to resize some "
26580 "filesystems, so you would have to online resize them after booting the "
26581 "guest.  And virt-resize also does not resize anything inside an LVM PV, it "
26582 "just resizes the PV itself and leaves the user to resize any LVs inside that "
26583 "PV as desired."
26584 msgstr ""
26585
26586 # type: textblock
26587 #: ../tools/virt-resize.pl:179
26588 msgid "Other options are covered below."
26589 msgstr ""
26590
26591 # type: =item
26592 #: ../tools/virt-resize.pl:181
26593 msgid "6. Test"
26594 msgstr ""
26595
26596 # type: textblock
26597 #: ../tools/virt-resize.pl:183
26598 msgid "Thoroughly test the new disk image I<before> discarding the old one."
26599 msgstr ""
26600
26601 # type: textblock
26602 #: ../tools/virt-resize.pl:185
26603 msgid "If you are using libvirt, edit the XML to point at the new disk:"
26604 msgstr ""
26605
26606 # type: verbatim
26607 #: ../tools/virt-resize.pl:187
26608 #, no-wrap
26609 msgid ""
26610 " # virsh edit guestname\n"
26611 "\n"
26612 msgstr ""
26613
26614 # type: textblock
26615 #: ../tools/virt-resize.pl:189
26616 msgid ""
26617 "Change E<lt>source ...E<gt>, see "
26618 "L<http://libvirt.org/formatdomain.html#elementsDisks>"
26619 msgstr ""
26620
26621 # type: textblock
26622 #: ../tools/virt-resize.pl:192
26623 msgid "Then start up the domain with the new, resized disk:"
26624 msgstr ""
26625
26626 # type: verbatim
26627 #: ../tools/virt-resize.pl:194
26628 #, no-wrap
26629 msgid ""
26630 " # virsh start guestname\n"
26631 "\n"
26632 msgstr ""
26633
26634 # type: textblock
26635 #: ../tools/virt-resize.pl:196
26636 msgid ""
26637 "and check that it still works.  See also the L</NOTES> section below for "
26638 "additional information."
26639 msgstr ""
26640
26641 # type: =item
26642 #: ../tools/virt-resize.pl:199
26643 msgid "7. Resize LVs etc inside the guest"
26644 msgstr ""
26645
26646 # type: textblock
26647 #: ../tools/virt-resize.pl:201
26648 msgid "(This can also be done offline using L<guestfish(1)>)"
26649 msgstr ""
26650
26651 # type: textblock
26652 #: ../tools/virt-resize.pl:203
26653 msgid ""
26654 "Once the guest has booted you should see the new space available, at least "
26655 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
26656 "may need to resize LVs inside PVs, and also resize filesystem types that "
26657 "virt-resize does not know how to expand."
26658 msgstr ""
26659
26660 # type: =head2
26661 #: ../tools/virt-resize.pl:210
26662 msgid "SHRINKING A VIRTUAL MACHINE DISK"
26663 msgstr ""
26664
26665 # type: textblock
26666 #: ../tools/virt-resize.pl:212
26667 msgid ""
26668 "Shrinking is somewhat more complex than expanding, and only an overview is "
26669 "given here."
26670 msgstr ""
26671
26672 # type: textblock
26673 #: ../tools/virt-resize.pl:215
26674 msgid ""
26675 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
26676 "filesystems).  The user has to shrink content before passing the disk image "
26677 "to virt-resize, and virt-resize will check that the content has been shrunk "
26678 "properly."
26679 msgstr ""
26680
26681 # type: textblock
26682 #: ../tools/virt-resize.pl:220
26683 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
26684 msgstr ""
26685
26686 # type: textblock
26687 #: ../tools/virt-resize.pl:222
26688 msgid ""
26689 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
26690 "steps 3 and 4 above to allocate a new disk image."
26691 msgstr ""
26692
26693 # type: textblock
26694 #: ../tools/virt-resize.pl:225
26695 msgid "Then run virt-resize with any of the C<--shrink> and/or C<--resize> options."
26696 msgstr ""
26697
26698 # type: =head2
26699 #: ../tools/virt-resize.pl:228
26700 msgid "IGNORING OR DELETING PARTITIONS"
26701 msgstr ""
26702
26703 # type: textblock
26704 #: ../tools/virt-resize.pl:230
26705 msgid ""
26706 "virt-resize also gives a convenient way to ignore or delete partitions when "
26707 "copying from the input disk to the output disk.  Ignoring a partition speeds "
26708 "up the copy where you don't care about the existing contents of a "
26709 "partition.  Deleting a partition removes it completely, but note that it "
26710 "also renumbers any partitions after the one which is deleted, which can "
26711 "leave some guests unbootable."
26712 msgstr ""
26713
26714 # type: =head2
26715 #: ../tools/virt-resize.pl:237
26716 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
26717 msgstr ""
26718
26719 # type: textblock
26720 #: ../tools/virt-resize.pl:239
26721 msgid ""
26722 "If the input disk is in qcow2 format, then you may prefer that the output is "
26723 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
26724 "the fly.  The output format is simply determined by the format of the empty "
26725 "output container that you provide.  Thus to create qcow2 output, use:"
26726 msgstr ""
26727
26728 # type: verbatim
26729 #: ../tools/virt-resize.pl:245
26730 #, no-wrap
26731 msgid ""
26732 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
26733 "\n"
26734 msgstr ""
26735
26736 # type: textblock
26737 #: ../tools/virt-resize.pl:247
26738 msgid "instead of the truncate command (use C<-c> for a compressed disk)."
26739 msgstr ""
26740
26741 # type: textblock
26742 #: ../tools/virt-resize.pl:249
26743 msgid "Similarly, to get non-sparse raw output use:"
26744 msgstr ""
26745
26746 # type: verbatim
26747 #: ../tools/virt-resize.pl:251
26748 #, no-wrap
26749 msgid ""
26750 " fallocate -l size outdisk\n"
26751 "\n"
26752 msgstr ""
26753
26754 # type: textblock
26755 #: ../tools/virt-resize.pl:253
26756 msgid ""
26757 "(on older systems that don't have the L<fallocate(1)> command use C<dd "
26758 "if=/dev/zero of=outdisk bs=1M count=..>)"
26759 msgstr ""
26760
26761 # type: textblock
26762 #: ../tools/virt-resize.pl:266
26763 msgid "Display help."
26764 msgstr ""
26765
26766 # type: =item
26767 #: ../tools/virt-resize.pl:280
26768 msgid "B<--resize part=size>"
26769 msgstr ""
26770
26771 # type: textblock
26772 #: ../tools/virt-resize.pl:282
26773 msgid ""
26774 "Resize the named partition (expanding or shrinking it) so that it has the "
26775 "given size."
26776 msgstr ""
26777
26778 # type: textblock
26779 #: ../tools/virt-resize.pl:285
26780 msgid ""
26781 "C<size> can be expressed as an absolute number followed by b/K/M/G/T/P/E to "
26782 "mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Petabytes or "
26783 "Exabytes; or as a percentage of the current size; or as a relative number or "
26784 "percentage.  For example:"
26785 msgstr ""
26786
26787 # type: verbatim
26788 #: ../tools/virt-resize.pl:290
26789 #, no-wrap
26790 msgid ""
26791 " --resize /dev/sda2=10G\n"
26792 "\n"
26793 msgstr ""
26794
26795 # type: verbatim
26796 #: ../tools/virt-resize.pl:292
26797 #, no-wrap
26798 msgid ""
26799 " --resize /dev/sda4=90%\n"
26800 "\n"
26801 msgstr ""
26802
26803 # type: verbatim
26804 #: ../tools/virt-resize.pl:294
26805 #, no-wrap
26806 msgid ""
26807 " --resize /dev/sda2=+1G\n"
26808 "\n"
26809 msgstr ""
26810
26811 # type: verbatim
26812 #: ../tools/virt-resize.pl:296
26813 #, no-wrap
26814 msgid ""
26815 " --resize /dev/sda2=-200M\n"
26816 "\n"
26817 msgstr ""
26818
26819 # type: verbatim
26820 #: ../tools/virt-resize.pl:298
26821 #, no-wrap
26822 msgid ""
26823 " --resize /dev/sda1=+128K\n"
26824 "\n"
26825 msgstr ""
26826
26827 # type: verbatim
26828 #: ../tools/virt-resize.pl:300
26829 #, no-wrap
26830 msgid ""
26831 " --resize /dev/sda1=+10%\n"
26832 "\n"
26833 msgstr ""
26834
26835 # type: verbatim
26836 #: ../tools/virt-resize.pl:302
26837 #, no-wrap
26838 msgid ""
26839 " --resize /dev/sda1=-10%\n"
26840 "\n"
26841 msgstr ""
26842
26843 # type: textblock
26844 #: ../tools/virt-resize.pl:304
26845 msgid ""
26846 "You can increase the size of any partition.  Virt-resize will expand the "
26847 "direct content of the partition if it knows how (see C<--expand> below)."
26848 msgstr ""
26849
26850 # type: textblock
26851 #: ../tools/virt-resize.pl:308
26852 msgid ""
26853 "You can only I<decrease> the size of partitions that contain filesystems or "
26854 "PVs which have already been shrunk.  Virt-resize will check this has been "
26855 "done before proceeding, or else will print an error (see also "
26856 "C<--resize-force>)."
26857 msgstr ""
26858
26859 # type: textblock
26860 #: ../tools/virt-resize.pl:313 ../tools/virt-resize.pl:405 ../tools/virt-resize.pl:422
26861 msgid "You can give this option multiple times."
26862 msgstr ""
26863
26864 # type: =item
26865 #: ../tools/virt-resize.pl:319
26866 msgid "B<--resize-force part=size>"
26867 msgstr ""
26868
26869 # type: textblock
26870 #: ../tools/virt-resize.pl:321
26871 msgid ""
26872 "This is the same as C<--resize> except that it will let you decrease the "
26873 "size of any partition.  Generally this means you will lose any data which "
26874 "was at the end of the partition you shrink, but you may not care about that "
26875 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
26876 "as a swap partition)."
26877 msgstr ""
26878
26879 # type: textblock
26880 #: ../tools/virt-resize.pl:327
26881 msgid "See also the C<--ignore> option."
26882 msgstr ""
26883
26884 # type: =item
26885 #: ../tools/virt-resize.pl:333
26886 msgid "B<--expand part>"
26887 msgstr ""
26888
26889 # type: textblock
26890 #: ../tools/virt-resize.pl:335
26891 msgid ""
26892 "Expand the named partition so it uses up all extra space (space left over "
26893 "after any other resize changes that you request have been done)."
26894 msgstr ""
26895
26896 # type: textblock
26897 #: ../tools/virt-resize.pl:338
26898 msgid ""
26899 "If virt-resize knows how, it will expand the direct content of the "
26900 "partition.  For example, if the partition is an LVM PV, it will expand the "
26901 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
26902 "content it doesn't know about alone."
26903 msgstr ""
26904
26905 # type: textblock
26906 #: ../tools/virt-resize.pl:343
26907 msgid "Currently virt-resize can resize:"
26908 msgstr ""
26909
26910 # type: textblock
26911 #: ../tools/virt-resize.pl:349
26912 msgid ""
26913 "ext2, ext3 and ext4 filesystems when they are contained directly inside a "
26914 "partition."
26915 msgstr ""
26916
26917 # type: textblock
26918 #: ../tools/virt-resize.pl:354
26919 msgid ""
26920 "NTFS filesystems contained directly in a partition, if libguestfs was "
26921 "compiled with support for NTFS."
26922 msgstr ""
26923
26924 # type: textblock
26925 #: ../tools/virt-resize.pl:357
26926 msgid ""
26927 "The filesystem must have been shut down consistently last time it was used.  "
26928 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
26929 "consistency check, so at the first boot after resizing Windows will check "
26930 "the disk."
26931 msgstr ""
26932
26933 # type: textblock
26934 #: ../tools/virt-resize.pl:364
26935 msgid ""
26936 "LVM PVs (physical volumes).  However virt-resize does I<not> resize anything "
26937 "inside the PV.  The user will have to resize LVs as desired."
26938 msgstr ""
26939
26940 # type: textblock
26941 #: ../tools/virt-resize.pl:370 ../tools/virt-resize.pl:392
26942 msgid "Note that you cannot use C<--expand> and C<--shrink> together."
26943 msgstr ""
26944
26945 # type: =item
26946 #: ../tools/virt-resize.pl:376
26947 msgid "B<--shrink part>"
26948 msgstr ""
26949
26950 # type: textblock
26951 #: ../tools/virt-resize.pl:378
26952 msgid ""
26953 "Shrink the named partition until the overall disk image fits in the "
26954 "destination.  The named partition B<must> contain a filesystem or PV which "
26955 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
26956 "online tools).  Virt-resize will check this and give an error if it has not "
26957 "been done."
26958 msgstr ""
26959
26960 # type: textblock
26961 #: ../tools/virt-resize.pl:384
26962 msgid ""
26963 "The amount by which the overall disk must be shrunk (after carrying out all "
26964 "other operations requested by the user) is called the \"deficit\".  For "
26965 "example, a straight copy (assume no other operations)  from a 5GB disk image "
26966 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
26967 "would give an error unless the user specified a partition to shrink and that "
26968 "partition had more than a gigabyte of free space."
26969 msgstr ""
26970
26971 # type: =item
26972 #: ../tools/virt-resize.pl:398
26973 msgid "B<--ignore part>"
26974 msgstr ""
26975
26976 # type: textblock
26977 #: ../tools/virt-resize.pl:400
26978 msgid ""
26979 "Ignore the named partition.  Effectively this means the partition is "
26980 "allocated on the destination disk, but the content is not copied across from "
26981 "the source disk.  The content of the partition will be blank (all zero "
26982 "bytes)."
26983 msgstr ""
26984
26985 # type: =item
26986 #: ../tools/virt-resize.pl:411
26987 msgid "B<--delete part>"
26988 msgstr ""
26989
26990 # type: textblock
26991 #: ../tools/virt-resize.pl:413
26992 msgid ""
26993 "Delete the named partition.  It would be more accurate to describe this as "
26994 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
26995 "the original disk image is left intact."
26996 msgstr ""
26997
26998 # type: textblock
26999 #: ../tools/virt-resize.pl:417
27000 msgid ""
27001 "Note that when you delete a partition, then anything contained in the "
27002 "partition is also deleted.  Furthermore, this causes any partitions that "
27003 "come after to be I<renumbered>, which can easily make your guest unbootable."
27004 msgstr ""
27005
27006 # type: =item
27007 #: ../tools/virt-resize.pl:428
27008 msgid "B<--LV-expand logvol>"
27009 msgstr ""
27010
27011 # type: textblock
27012 #: ../tools/virt-resize.pl:430
27013 msgid ""
27014 "This takes the logical volume and, as a final step, expands it to fill all "
27015 "the space available in its volume group.  A typical usage, assuming a Linux "
27016 "guest with a single PV C</dev/sda2> and a root device called "
27017 "C</dev/vg_guest/lv_root> would be:"
27018 msgstr ""
27019
27020 # type: verbatim
27021 #: ../tools/virt-resize.pl:435
27022 #, no-wrap
27023 msgid ""
27024 " virt-resize indisk outdisk \\\n"
27025 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
27026 "\n"
27027 msgstr ""
27028
27029 # type: textblock
27030 #: ../tools/virt-resize.pl:438
27031 msgid ""
27032 "This would first expand the partition (and PV), and then expand the root "
27033 "device to fill the extra space in the PV."
27034 msgstr ""
27035
27036 # type: textblock
27037 #: ../tools/virt-resize.pl:441
27038 msgid ""
27039 "The contents of the LV are also resized if virt-resize knows how to do "
27040 "that.  You can stop virt-resize from trying to expand the content by using "
27041 "the option C<--no-expand-content>."
27042 msgstr ""
27043
27044 # type: textblock
27045 #: ../tools/virt-resize.pl:445
27046 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
27047 msgstr ""
27048
27049 # type: textblock
27050 #: ../tools/virt-resize.pl:448
27051 msgid ""
27052 "You can give this option multiple times, I<but> it doesn't make sense to do "
27053 "this unless the logical volumes you specify are all in different volume "
27054 "groups."
27055 msgstr ""
27056
27057 # type: =item
27058 #: ../tools/virt-resize.pl:456
27059 msgid "B<--no-copy-boot-loader>"
27060 msgstr ""
27061
27062 # type: textblock
27063 #: ../tools/virt-resize.pl:458
27064 msgid ""
27065 "By default, virt-resize copies over some sectors at the start of the disk "
27066 "(up to the beginning of the first partition).  Commonly these sectors "
27067 "contain the Master Boot Record (MBR) and the boot loader, and are required "
27068 "in order for the guest to boot correctly."
27069 msgstr ""
27070
27071 # type: textblock
27072 #: ../tools/virt-resize.pl:463
27073 msgid ""
27074 "If you specify this flag, then this initial copy is not done.  You may need "
27075 "to reinstall the boot loader in this case."
27076 msgstr ""
27077
27078 # type: =item
27079 #: ../tools/virt-resize.pl:471
27080 msgid "B<--no-extra-partition>"
27081 msgstr ""
27082
27083 # type: textblock
27084 #: ../tools/virt-resize.pl:473
27085 msgid ""
27086 "By default, virt-resize creates an extra partition if there is any extra, "
27087 "unused space after all resizing has happened.  Use this option to prevent "
27088 "the extra partition from being created.  If you do this then the extra space "
27089 "will be inaccessible until you run fdisk, parted, or some other partitioning "
27090 "tool in the guest."
27091 msgstr ""
27092
27093 # type: textblock
27094 #: ../tools/virt-resize.pl:479
27095 msgid ""
27096 "Note that if the surplus space is smaller than 10 MB, no extra partition "
27097 "will be created."
27098 msgstr ""
27099
27100 # type: =item
27101 #: ../tools/virt-resize.pl:486
27102 msgid "B<--no-expand-content>"
27103 msgstr ""
27104
27105 # type: textblock
27106 #: ../tools/virt-resize.pl:488
27107 msgid ""
27108 "By default, virt-resize will try to expand the direct contents of "
27109 "partitions, if it knows how (see C<--expand> option above)."
27110 msgstr ""
27111
27112 # type: textblock
27113 #: ../tools/virt-resize.pl:491
27114 msgid ""
27115 "If you give the C<--no-expand-content> option then virt-resize will not "
27116 "attempt this."
27117 msgstr ""
27118
27119 # type: =item
27120 #: ../tools/virt-resize.pl:498
27121 msgid "B<-d> | B<--debug>"
27122 msgstr ""
27123
27124 # type: =item
27125 #: ../tools/virt-resize.pl:506
27126 msgid "B<-n> | B<--dryrun>"
27127 msgstr ""
27128
27129 # type: textblock
27130 #: ../tools/virt-resize.pl:508
27131 msgid "Print a summary of what would be done, but don't do anything."
27132 msgstr ""
27133
27134 # type: =item
27135 #: ../tools/virt-resize.pl:514
27136 msgid "B<-q> | B<--quiet>"
27137 msgstr ""
27138
27139 # type: textblock
27140 #: ../tools/virt-resize.pl:516
27141 msgid "Don't print the summary."
27142 msgstr ""
27143
27144 # type: textblock
27145 #: ../tools/virt-resize.pl:524
27146 msgid ""
27147 "Specify the format of the input disk image.  If this flag is not given then "
27148 "it is auto-detected from the image itself."
27149 msgstr ""
27150
27151 # type: textblock
27152 #: ../tools/virt-resize.pl:530
27153 msgid ""
27154 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
27155 "AND NON-SPARSE RAW FORMATS>."
27156 msgstr ""
27157
27158 # type: =item
27159 #: ../tools/virt-resize.pl:537
27160 msgid "B<--output-format> raw"
27161 msgstr ""
27162
27163 # type: textblock
27164 #: ../tools/virt-resize.pl:539
27165 msgid ""
27166 "Specify the format of the output disk image.  If this flag is not given then "
27167 "it is auto-detected from the image itself."
27168 msgstr ""
27169
27170 # type: textblock
27171 #: ../tools/virt-resize.pl:545
27172 msgid ""
27173 "Note that you still need to create the output disk with the right format.  "
27174 "See L</QCOW2 AND NON-SPARSE RAW FORMATS>."
27175 msgstr ""
27176
27177 # type: =head2
27178 #: ../tools/virt-resize.pl:1421 ../tools/virt-rescue.pl:90
27179 msgid "NOTES"
27180 msgstr ""
27181
27182 # type: =head2
27183 #: ../tools/virt-resize.pl:1423
27184 msgid "\"Partition 1 does not end on cylinder boundary.\""
27185 msgstr ""
27186
27187 # type: textblock
27188 #: ../tools/virt-resize.pl:1425
27189 msgid ""
27190 "Virt-resize aligns partitions to multiples of 64 sectors.  Usually this "
27191 "means the partitions will not be aligned to the ancient CHS geometry.  "
27192 "However CHS geometry is meaningless for disks manufactured since the early "
27193 "1990s, and doubly so for virtual hard drives.  Alignment of partitions to "
27194 "cylinders is not required by any modern operating system."
27195 msgstr ""
27196
27197 # type: =head2
27198 #: ../tools/virt-resize.pl:1432
27199 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
27200 msgstr ""
27201
27202 # type: textblock
27203 #: ../tools/virt-resize.pl:1434
27204 msgid ""
27205 "In Windows Vista and later versions, Microsoft switched to using a separate "
27206 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
27207 "and C</dev/sda2> is the main (C:) drive.  We have not had any luck resizing "
27208 "the boot partition.  Doing so seems to break the guest completely.  However "
27209 "expanding the second partition (ie. C: drive) should work."
27210 msgstr ""
27211
27212 # type: textblock
27213 #: ../tools/virt-resize.pl:1441
27214 msgid ""
27215 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
27216 "NTFS partitions have been expanded.  This is just a safety check and (unless "
27217 "it find errors) is nothing to worry about."
27218 msgstr ""
27219
27220 # type: =head2
27221 #: ../tools/virt-resize.pl:1445
27222 msgid "GUEST BOOT STUCK AT \"GRUB\""
27223 msgstr ""
27224
27225 # type: textblock
27226 #: ../tools/virt-resize.pl:1447
27227 msgid ""
27228 "If a Linux guest does not boot after resizing, and the boot is stuck after "
27229 "printing C<GRUB> on the console, try reinstalling grub.  This sometimes "
27230 "happens on older (RHEL 5-era) guests, for reasons we don't fully understand, "
27231 "although we think is to do with partition alignment."
27232 msgstr ""
27233
27234 # type: verbatim
27235 #: ../tools/virt-resize.pl:1452
27236 #, no-wrap
27237 msgid ""
27238 " guestfish -i -a newdisk\n"
27239 " ><fs> cat /boot/grub/device.map\n"
27240 " # check the contents of this file are sensible or\n"
27241 " # edit the file if necessary\n"
27242 " ><fs> grub-install / /dev/vda\n"
27243 " ><fs> exit\n"
27244 "\n"
27245 msgstr ""
27246
27247 # type: textblock
27248 #: ../tools/virt-resize.pl:1459
27249 msgid ""
27250 "For more flexible guest reconfiguration, including if you need to specify "
27251 "other parameters to grub-install, use L<virt-rescue(1)>."
27252 msgstr ""
27253
27254 # type: =head1
27255 #: ../tools/virt-resize.pl:1462
27256 msgid "ALTERNATIVE TOOLS"
27257 msgstr ""
27258
27259 # type: textblock
27260 #: ../tools/virt-resize.pl:1464
27261 msgid ""
27262 "There are several proprietary tools for resizing partitions.  We won't "
27263 "mention any here."
27264 msgstr ""
27265
27266 # type: textblock
27267 #: ../tools/virt-resize.pl:1467
27268 msgid ""
27269 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
27270 "operations on disk images.  They can resize and move partitions, but I don't "
27271 "think they can do anything with the contents, and they certainly don't "
27272 "understand LVM."
27273 msgstr ""
27274
27275 # type: textblock
27276 #: ../tools/virt-resize.pl:1472
27277 msgid ""
27278 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
27279 "but at a much lower level.  You will probably end up hand-calculating sector "
27280 "offsets, which is something that virt-resize was designed to avoid.  If you "
27281 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
27282 "C<--debug> flag."
27283 msgstr ""
27284
27285 # type: textblock
27286 #: ../tools/virt-resize.pl:1487
27287 msgid ""
27288 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, "
27289 "L<lvm(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, "
27290 "L<ntfsresize(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)>, "
27291 "L<fallocate(1)>, L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, "
27292 "L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
27293 msgstr ""
27294
27295 # type: textblock
27296 #: ../tools/virt-list-filesystems.pl:32
27297 msgid "virt-list-filesystems - List filesystems in a virtual machine or disk image"
27298 msgstr ""
27299
27300 # type: verbatim
27301 #: ../tools/virt-list-filesystems.pl:36
27302 #, no-wrap
27303 msgid ""
27304 " virt-list-filesystems [--options] domname\n"
27305 "\n"
27306 msgstr ""
27307
27308 # type: verbatim
27309 #: ../tools/virt-list-filesystems.pl:38
27310 #, no-wrap
27311 msgid ""
27312 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
27313 "\n"
27314 msgstr ""
27315
27316 # type: textblock
27317 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
27318 msgid ""
27319 "This tool is obsolete.  Use L<virt-filesystems(1)> as a more flexible "
27320 "replacement."
27321 msgstr ""
27322
27323 # type: textblock
27324 #: ../tools/virt-list-filesystems.pl:45
27325 msgid ""
27326 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
27327 "are contained in a virtual machine or disk image."
27328 msgstr ""
27329
27330 # type: textblock
27331 #: ../tools/virt-list-filesystems.pl:49
27332 msgid ""
27333 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
27334 "functionality.  For more complex cases you should look at the "
27335 "L<guestfish(1)> tool."
27336 msgstr ""
27337
27338 # type: =item
27339 #: ../tools/virt-list-filesystems.pl:106 ../tools/virt-list-partitions.pl:115
27340 msgid "B<-l> | B<--long>"
27341 msgstr ""
27342
27343 # type: textblock
27344 #: ../tools/virt-list-filesystems.pl:108
27345 msgid ""
27346 "With this option, C<virt-list-filesystems> displays the type of each "
27347 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
27348 msgstr ""
27349
27350 # type: =item
27351 #: ../tools/virt-list-filesystems.pl:115
27352 msgid "B<-a> | B<--all>"
27353 msgstr ""
27354
27355 # type: textblock
27356 #: ../tools/virt-list-filesystems.pl:117
27357 msgid ""
27358 "Normally we only show mountable filesystems.  If this option is given then "
27359 "swap devices are shown too."
27360 msgstr ""
27361
27362 # type: textblock
27363 #: ../tools/virt-list-filesystems.pl:191
27364 msgid ""
27365 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, "
27366 "L<virt-filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, "
27367 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
27368 msgstr ""
27369
27370 # type: textblock
27371 #: ../tools/virt-list-filesystems.pl:208 ../tools/virt-tar.pl:298
27372 msgid "Copyright (C) 2009 Red Hat Inc."
27373 msgstr ""
27374
27375 # type: textblock
27376 #: ../tools/virt-tar.pl:33
27377 msgid "virt-tar - Extract or upload files to a virtual machine"
27378 msgstr ""
27379
27380 # type: verbatim
27381 #: ../tools/virt-tar.pl:37
27382 #, no-wrap
27383 msgid ""
27384 " virt-tar [--options] -x domname directory tarball\n"
27385 "\n"
27386 msgstr ""
27387
27388 # type: verbatim
27389 #: ../tools/virt-tar.pl:39
27390 #, no-wrap
27391 msgid ""
27392 " virt-tar [--options] -u domname tarball directory\n"
27393 "\n"
27394 msgstr ""
27395
27396 # type: verbatim
27397 #: ../tools/virt-tar.pl:41
27398 #, no-wrap
27399 msgid ""
27400 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
27401 "\n"
27402 msgstr ""
27403
27404 # type: verbatim
27405 #: ../tools/virt-tar.pl:43
27406 #, no-wrap
27407 msgid ""
27408 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
27409 "\n"
27410 msgstr ""
27411
27412 # type: textblock
27413 #: ../tools/virt-tar.pl:47
27414 msgid "Download C</home> from the VM into a local tarball:"
27415 msgstr ""
27416
27417 # type: verbatim
27418 #: ../tools/virt-tar.pl:49
27419 #, no-wrap
27420 msgid ""
27421 " virt-tar -x domname /home home.tar\n"
27422 "\n"
27423 msgstr ""
27424
27425 # type: verbatim
27426 #: ../tools/virt-tar.pl:51
27427 #, no-wrap
27428 msgid ""
27429 " virt-tar -zx domname /home home.tar.gz\n"
27430 "\n"
27431 msgstr ""
27432
27433 # type: textblock
27434 #: ../tools/virt-tar.pl:53
27435 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
27436 msgstr ""
27437
27438 # type: verbatim
27439 #: ../tools/virt-tar.pl:55
27440 #, no-wrap
27441 msgid ""
27442 " virt-tar -u domname uploadstuff.tar /tmp\n"
27443 "\n"
27444 msgstr ""
27445
27446 # type: verbatim
27447 #: ../tools/virt-tar.pl:57
27448 #, no-wrap
27449 msgid ""
27450 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
27451 "\n"
27452 msgstr ""
27453
27454 # type: textblock
27455 #: ../tools/virt-tar.pl:61
27456 msgid ""
27457 "You must I<not> use C<virt-tar> with the C<-u> option (upload) on live "
27458 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
27459 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
27460 msgstr ""
27461
27462 # type: textblock
27463 #: ../tools/virt-tar.pl:66
27464 msgid ""
27465 "You can use C<-x> (extract) on live virtual machines, but you might get "
27466 "inconsistent results or errors if there is filesystem activity inside the "
27467 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
27468 "work, but the only way to guarantee consistent results is if the virtual "
27469 "machine is shut down."
27470 msgstr ""
27471
27472 # type: textblock
27473 #: ../tools/virt-tar.pl:74
27474 msgid ""
27475 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
27476 "parts of a guest filesystem.  There are many possibilities: making backups, "
27477 "uploading data files, snooping on guest activity, fixing or customizing "
27478 "guests, etc."
27479 msgstr ""
27480
27481 # type: textblock
27482 #: ../tools/virt-tar.pl:79
27483 msgid ""
27484 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
27485 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
27486 "should look at the L<guestfish(1)> tool."
27487 msgstr ""
27488
27489 # type: textblock
27490 #: ../tools/virt-tar.pl:83
27491 msgid ""
27492 "There are two modes of operation: C<-x> (eXtract) downloads a directory and "
27493 "its contents (recursively) from the virtual machine into a local tarball.  "
27494 "C<-u> uploads from a local tarball, unpacking it into a directory inside the "
27495 "virtual machine.  You cannot use these two options together."
27496 msgstr ""
27497
27498 # type: textblock
27499 #: ../tools/virt-tar.pl:89
27500 msgid ""
27501 "In addition, you may need to use the C<-z> (gZip) option to enable "
27502 "compression.  When uploading, you have to specify C<-z> if the upload file "
27503 "is compressed because virt-tar won't detect this on its own."
27504 msgstr ""
27505
27506 # type: textblock
27507 #: ../tools/virt-tar.pl:93
27508 msgid ""
27509 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
27510 "example it cannot do PKZip files or bzip2 compression.  If you want that "
27511 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
27512 "the L<libguestfs(3)> API)."
27513 msgstr ""
27514
27515 # type: =item
27516 #: ../tools/virt-tar.pl:151
27517 msgid "B<-x> | B<--extract> | B<--download>"
27518 msgstr ""
27519
27520 # type: =item
27521 #: ../tools/virt-tar.pl:153
27522 msgid "B<-u> | B<--upload>"
27523 msgstr ""
27524
27525 # type: textblock
27526 #: ../tools/virt-tar.pl:155
27527 msgid ""
27528 "Use C<-x> to extract (download) a directory from a virtual machine to a "
27529 "local tarball."
27530 msgstr ""
27531
27532 # type: textblock
27533 #: ../tools/virt-tar.pl:158
27534 msgid ""
27535 "Use C<-u> to upload and unpack from a local tarball into a virtual machine.  "
27536 "Please read the L</WARNING> section above before using this option."
27537 msgstr ""
27538
27539 # type: textblock
27540 #: ../tools/virt-tar.pl:162
27541 msgid "You must specify exactly one of these options."
27542 msgstr ""
27543
27544 # type: =item
27545 #: ../tools/virt-tar.pl:168
27546 msgid "B<-z> | B<--gzip>"
27547 msgstr ""
27548
27549 # type: textblock
27550 #: ../tools/virt-tar.pl:170
27551 msgid "Specify that the input or output tarball is gzip-compressed."
27552 msgstr ""
27553
27554 # type: textblock
27555 #: ../tools/virt-tar.pl:283
27556 msgid ""
27557 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
27558 "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
27559 "L<http://libguestfs.org/>."
27560 msgstr ""
27561
27562 # type: textblock
27563 #: ../tools/virt-rescue.pl:33
27564 msgid "virt-rescue - Run a rescue shell on a virtual machine"
27565 msgstr ""
27566
27567 # type: verbatim
27568 #: ../tools/virt-rescue.pl:37
27569 #, no-wrap
27570 msgid ""
27571 " virt-rescue [--options] domname\n"
27572 "\n"
27573 msgstr ""
27574
27575 # type: verbatim
27576 #: ../tools/virt-rescue.pl:39
27577 #, no-wrap
27578 msgid ""
27579 " virt-rescue [--options] disk.img [disk.img ...]\n"
27580 "\n"
27581 msgstr ""
27582
27583 # type: textblock
27584 #: ../tools/virt-rescue.pl:43
27585 msgid ""
27586 "You must I<not> use C<virt-rescue> on live virtual machines.  Doing so will "
27587 "probably result in disk corruption in the VM.  C<virt-rescue> tries to stop "
27588 "you from doing this, but doesn't catch all cases."
27589 msgstr ""
27590
27591 # type: textblock
27592 #: ../tools/virt-rescue.pl:47
27593 msgid ""
27594 "However if you use the I<--ro> (read only) option, then you can attach a "
27595 "shell to a live virtual machine.  The results might be strange or "
27596 "inconsistent at times but you won't get disk corruption."
27597 msgstr ""
27598
27599 # type: textblock
27600 #: ../tools/virt-rescue.pl:53
27601 msgid ""
27602 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
27603 "need for a CD.  virt-rescue gives you a rescue shell and some simple "
27604 "recovery tools which you can use to examine or rescue a virtual machine or "
27605 "disk image."
27606 msgstr ""
27607
27608 # type: textblock
27609 #: ../tools/virt-rescue.pl:58
27610 msgid ""
27611 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
27612 "on disk image(s):"
27613 msgstr ""
27614
27615 # type: verbatim
27616 #: ../tools/virt-rescue.pl:61
27617 #, no-wrap
27618 msgid ""
27619 " virt-rescue GuestName\n"
27620 "\n"
27621 msgstr ""
27622
27623 # type: verbatim
27624 #: ../tools/virt-rescue.pl:63
27625 #, no-wrap
27626 msgid ""
27627 " virt-rescue --ro /path/to/disk.img\n"
27628 "\n"
27629 msgstr ""
27630
27631 # type: verbatim
27632 #: ../tools/virt-rescue.pl:65
27633 #, no-wrap
27634 msgid ""
27635 " virt-rescue /dev/sdc\n"
27636 "\n"
27637 msgstr ""
27638
27639 # type: textblock
27640 #: ../tools/virt-rescue.pl:67
27641 msgid "For live VMs you I<must> use the --ro option."
27642 msgstr ""
27643
27644 # type: textblock
27645 #: ../tools/virt-rescue.pl:69
27646 msgid ""
27647 "When you run virt-rescue on a virtual machine or disk image, you are placed "
27648 "in an interactive bash shell where you can use many ordinary Linux "
27649 "commands.  What you see in C</> (C</bin>, C</lib> etc) is the rescue "
27650 "appliance.  You must mount the virtual machine's filesystems by hand.  There "
27651 "is an empty directory called C</sysroot> where you can mount filesystems."
27652 msgstr ""
27653
27654 # type: textblock
27655 #: ../tools/virt-rescue.pl:76
27656 msgid ""
27657 "In the example below, we list logical volumes, then choose one to mount "
27658 "under C</sysroot>:"
27659 msgstr ""
27660
27661 # type: verbatim
27662 #: ../tools/virt-rescue.pl:79
27663 #, no-wrap
27664 msgid ""
27665 " ><rescue> lvs\n"
27666 " LV      VG        Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n"
27667 " lv_root vg_f11x64 -wi-a-   8.83G\n"
27668 " lv_swap vg_f11x64 -wi-a- 992.00M\n"
27669 " ><rescue> mount /dev/vg_f11x64/lv_root /sysroot\n"
27670 " ><rescue> ls /sysroot\n"
27671 "\n"
27672 msgstr ""
27673
27674 # type: textblock
27675 #: ../tools/virt-rescue.pl:86
27676 msgid ""
27677 "If you don't know what filesystems are available on the virtual machine then "
27678 "you can use commands such as L<parted(8)> and L<lvs(8)> to find out."
27679 msgstr ""
27680
27681 # type: textblock
27682 #: ../tools/virt-rescue.pl:92
27683 msgid ""
27684 "Virt-rescue can be used on I<any> disk image file or device, not just a "
27685 "virtual machine.  For example you can use it on a blank file if you want to "
27686 "partition that file (although we would recommend using L<guestfish(1)> "
27687 "instead as it is more suitable for this purpose).  You can even use "
27688 "virt-rescue on things like SD cards."
27689 msgstr ""
27690
27691 # type: textblock
27692 #: ../tools/virt-rescue.pl:98
27693 msgid ""
27694 "This tool is just designed for quick interactive hacking on a virtual "
27695 "machine.  For more structured access to a virtual machine disk image, you "
27696 "should use L<guestfs(3)>.  To get a structured shell that you can use to "
27697 "make scripted changes to guests, use L<guestfish(1)>."
27698 msgstr ""
27699
27700 # type: =item
27701 #: ../tools/virt-rescue.pl:127
27702 msgid "B<--append kernelopts>"
27703 msgstr ""
27704
27705 # type: textblock
27706 #: ../tools/virt-rescue.pl:129
27707 msgid "Pass additional options to the rescue kernel."
27708 msgstr ""
27709
27710 # type: =item
27711 #: ../tools/virt-rescue.pl:164
27712 msgid "B<--memsize MB> | B<-m MB>"
27713 msgstr ""
27714
27715 # type: textblock
27716 #: ../tools/virt-rescue.pl:166
27717 msgid ""
27718 "Change the amount of memory allocated to the rescue system.  The default is "
27719 "set by libguestfs and is small but adequate for running system tools.  The "
27720 "occasional program might need more memory.  The parameter is specified in "
27721 "megabytes."
27722 msgstr ""
27723
27724 # type: =item
27725 #: ../tools/virt-rescue.pl:175
27726 msgid "B<--network>"
27727 msgstr ""
27728
27729 # type: textblock
27730 #: ../tools/virt-rescue.pl:177
27731 msgid "Enable QEMU user networking in the guest."
27732 msgstr ""
27733
27734 # type: =item
27735 #: ../tools/virt-rescue.pl:183
27736 msgid "B<--ro> | B<-r>"
27737 msgstr ""
27738
27739 # type: textblock
27740 #: ../tools/virt-rescue.pl:185
27741 msgid "Open the image read-only."
27742 msgstr ""
27743
27744 # type: textblock
27745 #: ../tools/virt-rescue.pl:197
27746 msgid ""
27747 "Enable SELinux in the rescue appliance.  You should read "
27748 "L<guestfs(3)/SELINUX> before using this option."
27749 msgstr ""
27750
27751 # type: textblock
27752 #: ../tools/virt-rescue.pl:257
27753 msgid ""
27754 "Several environment variables affect virt-rescue.  See "
27755 "L<guestfs(3)/ENVIRONMENT VARIABLES> for the complete list."
27756 msgstr ""
27757
27758 # type: textblock
27759 #: ../tools/virt-rescue.pl:269
27760 msgid ""
27761 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, "
27762 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
27763 msgstr ""
27764
27765 # type: textblock
27766 #: ../tools/virt-make-fs.pl:37
27767 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
27768 msgstr ""
27769
27770 # type: verbatim
27771 #: ../tools/virt-make-fs.pl:41
27772 #, no-wrap
27773 msgid ""
27774 " virt-make-fs [--options] input.tar output.img\n"
27775 "\n"
27776 msgstr ""
27777
27778 # type: verbatim
27779 #: ../tools/virt-make-fs.pl:43
27780 #, no-wrap
27781 msgid ""
27782 " virt-make-fs [--options] input.tar.gz output.img\n"
27783 "\n"
27784 msgstr ""
27785
27786 # type: verbatim
27787 #: ../tools/virt-make-fs.pl:45
27788 #, no-wrap
27789 msgid ""
27790 " virt-make-fs [--options] directory output.img\n"
27791 "\n"
27792 msgstr ""
27793
27794 # type: textblock
27795 #: ../tools/virt-make-fs.pl:49
27796 msgid ""
27797 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
27798 "archive or some files in a directory.  It is similar to tools like "
27799 "L<mkisofs(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, "
27800 "it can create common filesystem types like ext2/3 or NTFS, which can be "
27801 "useful if you want to attach these filesystems to existing virtual machines "
27802 "(eg. to import large amounts of read-only data to a VM)."
27803 msgstr ""
27804
27805 # type: textblock
27806 #: ../tools/virt-make-fs.pl:57
27807 msgid "Basic usage is:"
27808 msgstr ""
27809
27810 # type: verbatim
27811 #: ../tools/virt-make-fs.pl:59
27812 #, no-wrap
27813 msgid ""
27814 " virt-make-fs input output\n"
27815 "\n"
27816 msgstr ""
27817
27818 # type: textblock
27819 #: ../tools/virt-make-fs.pl:61
27820 msgid ""
27821 "where C<input> is either a directory containing files that you want to add, "
27822 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
27823 "C<output> is a disk image.  The input type is detected automatically.  The "
27824 "output disk image defaults to a raw ext2 image unless you specify extra "
27825 "flags (see L</OPTIONS> below)."
27826 msgstr ""
27827
27828 # type: =head2
27829 #: ../tools/virt-make-fs.pl:67
27830 msgid "EXTRA SPACE"
27831 msgstr ""
27832
27833 # type: textblock
27834 #: ../tools/virt-make-fs.pl:69
27835 msgid ""
27836 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
27837 "the files that it contains, but might have extra space.  Depending on how "
27838 "you are going to use the output, you might think this extra space is wasted "
27839 "and want to minimize it, or you might want to leave space so that more files "
27840 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
27841 "but you can use the C<--size> flag to leave space in the filesystem if you "
27842 "want it."
27843 msgstr ""
27844
27845 # type: textblock
27846 #: ../tools/virt-make-fs.pl:77
27847 msgid ""
27848 "An alternative way to leave extra space but not make the output image any "
27849 "bigger is to use an alternative disk image format (instead of the default "
27850 "\"raw\" format).  Using C<--format=qcow2> will use the native QEmu/KVM qcow2 "
27851 "image format (check your hypervisor supports this before using it).  This "
27852 "allows you to choose a large C<--size> but the extra space won't actually be "
27853 "allocated in the image until you try to store something in it."
27854 msgstr ""
27855
27856 # type: textblock
27857 #: ../tools/virt-make-fs.pl:85
27858 msgid ""
27859 "Don't forget that you can also use local commands including L<resize2fs(8)> "
27860 "and L<virt-resize(1)> to resize existing filesystems, or rerun "
27861 "virt-make-resize to build another image from scratch."
27862 msgstr ""
27863
27864 # type: =head3
27865 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123 ../tools/virt-make-fs.pl:142
27866 msgid "EXAMPLE"
27867 msgstr ""
27868
27869 # type: verbatim
27870 #: ../tools/virt-make-fs.pl:91
27871 #, no-wrap
27872 msgid ""
27873 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
27874 "\n"
27875 msgstr ""
27876
27877 # type: =head2
27878 #: ../tools/virt-make-fs.pl:93
27879 msgid "FILESYSTEM TYPE"
27880 msgstr ""
27881
27882 # type: textblock
27883 #: ../tools/virt-make-fs.pl:95
27884 msgid ""
27885 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
27886 "libguestfs supports can be used (but I<not> read-only formats like "
27887 "ISO9660).  Here are some of the more common choices:"
27888 msgstr ""
27889
27890 # type: =item
27891 #: ../tools/virt-make-fs.pl:101
27892 msgid "I<ext3>"
27893 msgstr ""
27894
27895 # type: textblock
27896 #: ../tools/virt-make-fs.pl:103
27897 msgid ""
27898 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
27899 "you are not going to use the filesystem in a way that requires the journal, "
27900 "then this is just wasted overhead."
27901 msgstr ""
27902
27903 # type: =item
27904 #: ../tools/virt-make-fs.pl:107
27905 msgid "I<ntfs> or I<vfat>"
27906 msgstr ""
27907
27908 # type: textblock
27909 #: ../tools/virt-make-fs.pl:109
27910 msgid "Useful if exporting data to a Windows guest."
27911 msgstr ""
27912
27913 # type: textblock
27914 #: ../tools/virt-make-fs.pl:111
27915 msgid ""
27916 "I<Note for vfat>: The tar archive or local directory must only contain files "
27917 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
27918 "program running within libguestfs is unable to change the ownership of "
27919 "non-root files, since vfat itself does not support this."
27920 msgstr ""
27921
27922 # type: =item
27923 #: ../tools/virt-make-fs.pl:116
27924 msgid "I<minix>"
27925 msgstr ""
27926
27927 # type: textblock
27928 #: ../tools/virt-make-fs.pl:118
27929 msgid ""
27930 "Lower overhead than C<ext2>, but certain limitations on filename length and "
27931 "total filesystem size."
27932 msgstr ""
27933
27934 # type: verbatim
27935 #: ../tools/virt-make-fs.pl:125
27936 #, no-wrap
27937 msgid ""
27938 " virt-make-fs --type=minix input minixfs.img\n"
27939 "\n"
27940 msgstr ""
27941
27942 # type: =head2
27943 #: ../tools/virt-make-fs.pl:127
27944 msgid "TO PARTITION OR NOT TO PARTITION"
27945 msgstr ""
27946
27947 # type: textblock
27948 #: ../tools/virt-make-fs.pl:129
27949 msgid "Optionally virt-make-fs can add a partition table to the output disk."
27950 msgstr ""
27951
27952 # type: textblock
27953 #: ../tools/virt-make-fs.pl:131
27954 msgid ""
27955 "Adding a partition can make the disk image more compatible with certain "
27956 "virtualized operating systems which don't expect to see a filesystem "
27957 "directly located on a block device (Linux doesn't care and will happily "
27958 "handle both types)."
27959 msgstr ""
27960
27961 # type: textblock
27962 #: ../tools/virt-make-fs.pl:136
27963 msgid ""
27964 "On the other hand, if you have a partition table then the output image is no "
27965 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
27966 "directly on a partitioned disk image.  (However libguestfs tools such as "
27967 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
27968 msgstr ""
27969
27970 # type: textblock
27971 #: ../tools/virt-make-fs.pl:144
27972 msgid "Add an MBR partition:"
27973 msgstr ""
27974
27975 # type: verbatim
27976 #: ../tools/virt-make-fs.pl:146
27977 #, no-wrap
27978 msgid ""
27979 " virt-make-fs --partition -- input disk.img\n"
27980 "\n"
27981 msgstr ""
27982
27983 # type: textblock
27984 #: ../tools/virt-make-fs.pl:148
27985 msgid ""
27986 "If the output disk image could be terabyte-sized or larger, it's better to "
27987 "use an EFI/GPT-compatible partition table:"
27988 msgstr ""
27989
27990 # type: verbatim
27991 #: ../tools/virt-make-fs.pl:151
27992 #, no-wrap
27993 msgid ""
27994 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
27995 "\n"
27996 msgstr ""
27997
27998 # type: textblock
27999 #: ../tools/virt-make-fs.pl:179
28000 msgid "Enable debugging information."
28001 msgstr ""
28002
28003 # type: =item
28004 #: ../tools/virt-make-fs.pl:185
28005 msgid "B<--size=E<lt>NE<gt>>"
28006 msgstr ""
28007
28008 # type: =item
28009 #: ../tools/virt-make-fs.pl:187
28010 msgid "B<--size=+E<lt>NE<gt>>"
28011 msgstr ""
28012
28013 # type: =item
28014 #: ../tools/virt-make-fs.pl:189
28015 msgid "B<-s E<lt>NE<gt>>"
28016 msgstr ""
28017
28018 # type: =item
28019 #: ../tools/virt-make-fs.pl:191
28020 msgid "B<-s +E<lt>NE<gt>>"
28021 msgstr ""
28022
28023 # type: textblock
28024 #: ../tools/virt-make-fs.pl:193
28025 msgid "Use the C<--size> (or C<-s>) option to choose the size of the output image."
28026 msgstr ""
28027
28028 # type: textblock
28029 #: ../tools/virt-make-fs.pl:196
28030 msgid ""
28031 "If this option is I<not> given, then the output image will be just large "
28032 "enough to contain all the files, with not much wasted space."
28033 msgstr ""
28034
28035 # type: textblock
28036 #: ../tools/virt-make-fs.pl:199
28037 msgid ""
28038 "To choose a fixed size output disk, specify an absolute number followed by "
28039 "b/K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
28040 "Petabytes or Exabytes.  This must be large enough to contain all the input "
28041 "files, else you will get an error."
28042 msgstr ""
28043
28044 # type: textblock
28045 #: ../tools/virt-make-fs.pl:204
28046 msgid ""
28047 "To leave extra space, specify C<+> (plus sign) and a number followed by "
28048 "b/K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
28049 "Petabytes or Exabytes.  For example: C<--size=+200M> means enough space for "
28050 "the input files, and (approximately) an extra 200 MB free space."
28051 msgstr ""
28052
28053 # type: textblock
28054 #: ../tools/virt-make-fs.pl:210
28055 msgid ""
28056 "Note that virt-make-fs estimates free space, and therefore will not produce "
28057 "filesystems containing precisely the free space requested.  (It is much more "
28058 "expensive and time-consuming to produce a filesystem which has precisely the "
28059 "desired free space)."
28060 msgstr ""
28061
28062 # type: =item
28063 #: ../tools/virt-make-fs.pl:219
28064 msgid "B<--format=E<lt>fmtE<gt>>"
28065 msgstr ""
28066
28067 # type: =item
28068 #: ../tools/virt-make-fs.pl:221
28069 msgid "B<-F E<lt>fmtE<gt>>"
28070 msgstr ""
28071
28072 # type: textblock
28073 #: ../tools/virt-make-fs.pl:223
28074 msgid "Choose the output disk image format."
28075 msgstr ""
28076
28077 # type: textblock
28078 #: ../tools/virt-make-fs.pl:225
28079 msgid "The default is C<raw> (raw disk image)."
28080 msgstr ""
28081
28082 # type: textblock
28083 #: ../tools/virt-make-fs.pl:227
28084 msgid ""
28085 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
28086 "that would really make sense here is C<qcow2>."
28087 msgstr ""
28088
28089 # type: =item
28090 #: ../tools/virt-make-fs.pl:234
28091 msgid "B<--type=E<lt>fsE<gt>>"
28092 msgstr ""
28093
28094 # type: =item
28095 #: ../tools/virt-make-fs.pl:236
28096 msgid "B<-t E<lt>fsE<gt>>"
28097 msgstr ""
28098
28099 # type: textblock
28100 #: ../tools/virt-make-fs.pl:238
28101 msgid "Choose the output filesystem type."
28102 msgstr ""
28103
28104 # type: textblock
28105 #: ../tools/virt-make-fs.pl:240
28106 msgid "The default is C<ext2>."
28107 msgstr ""
28108
28109 # type: textblock
28110 #: ../tools/virt-make-fs.pl:242
28111 msgid "Any filesystem which is supported read-write by libguestfs can be used here."
28112 msgstr ""
28113
28114 # type: =item
28115 #: ../tools/virt-make-fs.pl:249
28116 msgid "B<--partition>"
28117 msgstr ""
28118
28119 # type: =item
28120 #: ../tools/virt-make-fs.pl:251
28121 msgid "B<--partition=E<lt>parttypeE<gt>>"
28122 msgstr ""
28123
28124 # type: textblock
28125 #: ../tools/virt-make-fs.pl:253
28126 msgid ""
28127 "If specified, this flag adds an MBR partition table to the output disk "
28128 "image."
28129 msgstr ""
28130
28131 # type: textblock
28132 #: ../tools/virt-make-fs.pl:256
28133 msgid ""
28134 "You can change the partition table type, eg. C<--partition=gpt> for large "
28135 "disks."
28136 msgstr ""
28137
28138 # type: textblock
28139 #: ../tools/virt-make-fs.pl:259
28140 msgid ""
28141 "Note that if you just use a lonesome C<--partition>, the Perl option parser "
28142 "might consider the next parameter to be the partition type.  For example:"
28143 msgstr ""
28144
28145 # type: verbatim
28146 #: ../tools/virt-make-fs.pl:263
28147 #, no-wrap
28148 msgid ""
28149 " virt-make-fs --partition input.tar ...\n"
28150 "\n"
28151 msgstr ""
28152
28153 # type: textblock
28154 #: ../tools/virt-make-fs.pl:265
28155 msgid ""
28156 "would cause virt-make-fs to think you wanted to use a partition type of "
28157 "C<input.tar> which is completely wrong.  To avoid this, use C<--> (a double "
28158 "dash) between options and the input file argument:"
28159 msgstr ""
28160
28161 # type: verbatim
28162 #: ../tools/virt-make-fs.pl:269
28163 #, no-wrap
28164 msgid ""
28165 " virt-make-fs --partition -- input.tar ...\n"
28166 "\n"
28167 msgstr ""
28168
28169 # type: textblock
28170 #: ../tools/virt-make-fs.pl:536
28171 msgid ""
28172 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar(1)>, L<mkisofs(1)>, "
28173 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, "
28174 "L<guestfs(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
28175 msgstr ""
28176
28177 # type: verbatim
28178 #: ../tools/virt-make-fs.pl:553
28179 #, no-wrap
28180 msgid ""
28181 " export LIBGUESTFS_DEBUG=1\n"
28182 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
28183 "\n"
28184 msgstr ""
28185
28186 # type: textblock
28187 #: ../tools/virt-make-fs.pl:556
28188 msgid ""
28189 "Attach /tmp/virt-make-fs.log to a new bug report at "
28190 "L<https://bugzilla.redhat.com/>"
28191 msgstr ""
28192
28193 # type: textblock
28194 #: ../tools/virt-list-partitions.pl:32
28195 msgid "virt-list-partitions - List partitions in a virtual machine or disk image"
28196 msgstr ""
28197
28198 # type: verbatim
28199 #: ../tools/virt-list-partitions.pl:36
28200 #, no-wrap
28201 msgid ""
28202 " virt-list-partitions [--options] domname\n"
28203 "\n"
28204 msgstr ""
28205
28206 # type: verbatim
28207 #: ../tools/virt-list-partitions.pl:38
28208 #, no-wrap
28209 msgid ""
28210 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
28211 "\n"
28212 msgstr ""
28213
28214 # type: textblock
28215 #: ../tools/virt-list-partitions.pl:45
28216 msgid ""
28217 "C<virt-list-partitions> is a command line tool to list the partitions that "
28218 "are contained in a virtual machine or disk image.  It is mainly useful as a "
28219 "first step to using L<virt-resize(1)>."
28220 msgstr ""
28221
28222 # type: textblock
28223 #: ../tools/virt-list-partitions.pl:50
28224 msgid ""
28225 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
28226 "functionality.  For more complex cases you should look at the "
28227 "L<guestfish(1)> tool."
28228 msgstr ""
28229
28230 # type: =item
28231 #: ../tools/virt-list-partitions.pl:107
28232 msgid "B<-h> | B<--human-readable>"
28233 msgstr ""
28234
28235 # type: textblock
28236 #: ../tools/virt-list-partitions.pl:109
28237 msgid "Show sizes in human-readable form (eg. \"1G\")."
28238 msgstr ""
28239
28240 # type: textblock
28241 #: ../tools/virt-list-partitions.pl:117
28242 msgid ""
28243 "With this option, C<virt-list-partitions> displays the type and size of each "
28244 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
28245 msgstr ""
28246
28247 # type: =item
28248 #: ../tools/virt-list-partitions.pl:124
28249 msgid "B<-t> | B<--total>"
28250 msgstr ""
28251
28252 # type: textblock
28253 #: ../tools/virt-list-partitions.pl:126
28254 msgid "Display the total size of each block device (as a separate row or rows)."
28255 msgstr ""
28256
28257 # type: textblock
28258 #: ../tools/virt-list-partitions.pl:259
28259 msgid ""
28260 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, "
28261 "L<virt-list-filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, "
28262 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
28263 msgstr ""