Version 1.7.6.
[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.6\n"
10 "Report-Msgid-Bugs-To: libguestfs@redhat.com\n"
11 "POT-Creation-Date: 2010-11-13 16:19+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 ../inspector/virt-inspector.pl:31 ../tools/virt-edit.pl:30 ../tools/virt-win-reg.pl:33 ../tools/virt-df.pl:32 ../tools/virt-ls.pl:30 ../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 ../inspector/virt-inspector.pl:33 ../tools/virt-edit.pl:32 ../tools/virt-win-reg.pl:35 ../tools/virt-df.pl:34 ../tools/virt-ls.pl:32 ../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 ../inspector/virt-inspector.pl:37 ../tools/virt-edit.pl:36 ../tools/virt-win-reg.pl:39 ../tools/virt-df.pl:38 ../tools/virt-ls.pl:36 ../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 ../inspector/virt-inspector.pl:43 ../tools/virt-edit.pl:50 ../tools/virt-win-reg.pl:63 ../tools/virt-df.pl:46 ../tools/virt-ls.pl:42 ../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: =head1
129 #: ../src/guestfs.pod:55
130 msgid "API OVERVIEW"
131 msgstr ""
132
133 # type: textblock
134 #: ../src/guestfs.pod:57
135 msgid ""
136 "This section provides a gentler overview of the libguestfs API.  We also try "
137 "to group API calls together, where that may not be obvious from reading "
138 "about the individual calls in the main section of this manual."
139 msgstr ""
140
141 # type: =head2
142 #: ../src/guestfs.pod:62
143 msgid "HANDLES"
144 msgstr ""
145
146 # type: textblock
147 #: ../src/guestfs.pod:64
148 msgid ""
149 "Before you can use libguestfs calls, you have to create a handle.  Then you "
150 "must add at least one disk image to the handle, followed by launching the "
151 "handle, then performing whatever operations you want, and finally closing "
152 "the handle.  By convention we use the single letter C<g> for the name of the "
153 "handle variable, although of course you can use any name you want."
154 msgstr ""
155
156 # type: textblock
157 #: ../src/guestfs.pod:71
158 msgid "The general structure of all libguestfs-using programs looks like this:"
159 msgstr ""
160
161 # type: verbatim
162 #: ../src/guestfs.pod:74
163 #, no-wrap
164 msgid ""
165 " guestfs_h *g = guestfs_create ();\n"
166 " \n"
167 msgstr ""
168
169 # type: verbatim
170 #: ../src/guestfs.pod:76
171 #, no-wrap
172 msgid ""
173 " /* Call guestfs_add_drive additional times if there are\n"
174 "  * multiple disk images.\n"
175 "  */\n"
176 " guestfs_add_drive (g, \"guest.img\");\n"
177 " \n"
178 msgstr ""
179
180 # type: verbatim
181 #: ../src/guestfs.pod:81
182 #, no-wrap
183 msgid ""
184 " /* Most manipulation calls won't work until you've launched\n"
185 "  * the handle 'g'.  You have to do this _after_ adding drives\n"
186 "  * and _before_ other commands.\n"
187 "  */\n"
188 " guestfs_launch (g);\n"
189 " \n"
190 msgstr ""
191
192 # type: verbatim
193 #: ../src/guestfs.pod:87
194 #, no-wrap
195 msgid ""
196 " /* Now you can examine what partitions, LVs etc are available.\n"
197 "  */\n"
198 " char **partitions = guestfs_list_partitions (g);\n"
199 " char **logvols = guestfs_lvs (g);\n"
200 " \n"
201 msgstr ""
202
203 # type: verbatim
204 #: ../src/guestfs.pod:92
205 #, no-wrap
206 msgid ""
207 " /* To access a filesystem in the image, you must mount it.\n"
208 "  */\n"
209 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
210 " \n"
211 msgstr ""
212
213 # type: verbatim
214 #: ../src/guestfs.pod:96
215 #, no-wrap
216 msgid ""
217 " /* Now you can perform filesystem actions on the guest\n"
218 "  * disk image.\n"
219 "  */\n"
220 " guestfs_touch (g, \"/hello\");\n"
221 " \n"
222 msgstr ""
223
224 # type: verbatim
225 #: ../src/guestfs.pod:101
226 #, no-wrap
227 msgid ""
228 " /* You only need to call guestfs_sync if you have made\n"
229 "  * changes to the guest image.  (But if you've made changes\n"
230 "  * then you *must* sync).  See also: guestfs_umount and\n"
231 "  * guestfs_umount_all calls.\n"
232 "  */\n"
233 " guestfs_sync (g);\n"
234 " \n"
235 msgstr ""
236
237 # type: verbatim
238 #: ../src/guestfs.pod:108
239 #, no-wrap
240 msgid ""
241 " /* Close the handle 'g'. */\n"
242 " guestfs_close (g);\n"
243 "\n"
244 msgstr ""
245
246 # type: textblock
247 #: ../src/guestfs.pod:111
248 msgid ""
249 "The code above doesn't include any error checking.  In real code you should "
250 "check return values carefully for errors.  In general all functions that "
251 "return integers return C<-1> on error, and all functions that return "
252 "pointers return C<NULL> on error.  See section L</ERROR HANDLING> below for "
253 "how to handle errors, and consult the documentation for each function call "
254 "below to see precisely how they return error indications."
255 msgstr ""
256
257 # type: =head2
258 #: ../src/guestfs.pod:119
259 msgid "DISK IMAGES"
260 msgstr ""
261
262 # type: textblock
263 #: ../src/guestfs.pod:121
264 msgid ""
265 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
266 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
267 "actual block device, or simply an empty file of zeroes that you have created "
268 "through L<posix_fallocate(3)>.  Libguestfs lets you do useful things to all "
269 "of these."
270 msgstr ""
271
272 # type: textblock
273 #: ../src/guestfs.pod:127
274 msgid ""
275 "The call you should use in modern code for adding drives is "
276 "L</guestfs_add_drive_opts>.  To add a disk image, allowing writes, and "
277 "specifying that the format is raw, do:"
278 msgstr ""
279
280 # type: verbatim
281 #: ../src/guestfs.pod:131
282 #, no-wrap
283 msgid ""
284 " guestfs_add_drive_opts (g, filename,\n"
285 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
286 "                         -1);\n"
287 "\n"
288 msgstr ""
289
290 # type: textblock
291 #: ../src/guestfs.pod:135
292 msgid "You can add a disk read-only using:"
293 msgstr ""
294
295 # type: verbatim
296 #: ../src/guestfs.pod:137
297 #, no-wrap
298 msgid ""
299 " guestfs_add_drive_opts (g, filename,\n"
300 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
301 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
302 "                         -1);\n"
303 "\n"
304 msgstr ""
305
306 # type: textblock
307 #: ../src/guestfs.pod:142
308 msgid ""
309 "or by calling the older function L</guestfs_add_drive_ro>.  In either case "
310 "libguestfs won't modify the file."
311 msgstr ""
312
313 # type: textblock
314 #: ../src/guestfs.pod:145
315 msgid ""
316 "Be extremely cautious if the disk image is in use, eg. if it is being used "
317 "by a virtual machine.  Adding it read-write will almost certainly cause disk "
318 "corruption, but adding it read-only is safe."
319 msgstr ""
320
321 # type: textblock
322 #: ../src/guestfs.pod:149
323 msgid ""
324 "You must add at least one disk image, and you may add multiple disk images.  "
325 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
326 "first one you added), C</dev/sdb> (for the second one you added), etc."
327 msgstr ""
328
329 # type: textblock
330 #: ../src/guestfs.pod:154
331 msgid ""
332 "Once L</guestfs_launch> has been called you cannot add any more images.  You "
333 "can call L</guestfs_list_devices> to get a list of the device names, in the "
334 "order that you added them.  See also L</BLOCK DEVICE NAMING> below."
335 msgstr ""
336
337 # type: =head2
338 #: ../src/guestfs.pod:159
339 msgid "MOUNTING"
340 msgstr ""
341
342 # type: textblock
343 #: ../src/guestfs.pod:161
344 msgid ""
345 "Before you can read or write files, create directories and so on in a disk "
346 "image that contains filesystems, you have to mount those filesystems using "
347 "L</guestfs_mount>.  If you already know that a disk image contains (for "
348 "example) one partition with a filesystem on that partition, then you can "
349 "mount it directly:"
350 msgstr ""
351
352 # type: verbatim
353 #: ../src/guestfs.pod:167
354 #, no-wrap
355 msgid ""
356 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
357 "\n"
358 msgstr ""
359
360 # type: textblock
361 #: ../src/guestfs.pod:169
362 msgid ""
363 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
364 "disk image that we added (C</dev/sda>).  If the disk contains Linux LVM2 "
365 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>)."
366 msgstr ""
367
368 # type: textblock
369 #: ../src/guestfs.pod:173
370 msgid ""
371 "If you are given a disk image and you don't know what it contains then you "
372 "have to find out.  Libguestfs can do that too: use "
373 "L</guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions "
374 "and LVs, and either try mounting each to see what is mountable, or else "
375 "examine them with L</guestfs_vfs_type> or L</guestfs_file>.  Libguestfs also "
376 "has a set of APIs for inspection of disk images (see L</INSPECTION> below).  "
377 "But you might find it easier to look at higher level programs built on top "
378 "of libguestfs, in particular L<virt-inspector(1)>."
379 msgstr ""
380
381 # type: textblock
382 #: ../src/guestfs.pod:183
383 msgid ""
384 "To mount a disk image read-only, use L</guestfs_mount_ro>.  There are "
385 "several other variations of the C<guestfs_mount_*> call."
386 msgstr ""
387
388 # type: =head2
389 #: ../src/guestfs.pod:186
390 msgid "FILESYSTEM ACCESS AND MODIFICATION"
391 msgstr ""
392
393 # type: textblock
394 #: ../src/guestfs.pod:188
395 msgid ""
396 "The majority of the libguestfs API consists of fairly low-level calls for "
397 "accessing and modifying the files, directories, symlinks etc on mounted "
398 "filesystems.  There are over a hundred such calls which you can find listed "
399 "in detail below in this man page, and we don't even pretend to cover them "
400 "all in this overview."
401 msgstr ""
402
403 # type: textblock
404 #: ../src/guestfs.pod:194
405 msgid ""
406 "Specify filenames as full paths, starting with C<\"/\"> and including the "
407 "mount point."
408 msgstr ""
409
410 # type: textblock
411 #: ../src/guestfs.pod:197
412 msgid ""
413 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
414 "the file called C<\"etc/passwd\"> then you could do:"
415 msgstr ""
416
417 # type: verbatim
418 #: ../src/guestfs.pod:200
419 #, no-wrap
420 msgid ""
421 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
422 "\n"
423 msgstr ""
424
425 # type: textblock
426 #: ../src/guestfs.pod:202
427 msgid ""
428 "This would return C<data> as a newly allocated buffer containing the full "
429 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
430 "or C<NULL> if there was an error."
431 msgstr ""
432
433 # type: textblock
434 #: ../src/guestfs.pod:206
435 msgid ""
436 "As another example, to create a top-level directory on that filesystem "
437 "called C<\"var\"> you would do:"
438 msgstr ""
439
440 # type: verbatim
441 #: ../src/guestfs.pod:209
442 #, no-wrap
443 msgid ""
444 " guestfs_mkdir (g, \"/var\");\n"
445 "\n"
446 msgstr ""
447
448 # type: textblock
449 #: ../src/guestfs.pod:211
450 msgid "To create a symlink you could do:"
451 msgstr ""
452
453 # type: verbatim
454 #: ../src/guestfs.pod:213
455 #, no-wrap
456 msgid ""
457 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
458 "               \"/etc/rc3.d/S30portmap\");\n"
459 "\n"
460 msgstr ""
461
462 # type: textblock
463 #: ../src/guestfs.pod:216
464 msgid ""
465 "Libguestfs will reject attempts to use relative paths and there is no "
466 "concept of a current working directory."
467 msgstr ""
468
469 # type: textblock
470 #: ../src/guestfs.pod:219
471 msgid ""
472 "Libguestfs can return errors in many situations: for example if the "
473 "filesystem isn't writable, or if a file or directory that you requested "
474 "doesn't exist.  If you are using the C API (documented here)  you have to "
475 "check for those error conditions after each call.  (Other language bindings "
476 "turn these errors into exceptions)."
477 msgstr ""
478
479 # type: textblock
480 #: ../src/guestfs.pod:225
481 msgid ""
482 "File writes are affected by the per-handle umask, set by calling "
483 "L</guestfs_umask> and defaulting to 022.  See L</UMASK>."
484 msgstr ""
485
486 # type: =head2
487 #: ../src/guestfs.pod:228
488 msgid "PARTITIONING"
489 msgstr ""
490
491 # type: textblock
492 #: ../src/guestfs.pod:230
493 msgid ""
494 "Libguestfs contains API calls to read, create and modify partition tables on "
495 "disk images."
496 msgstr ""
497
498 # type: textblock
499 #: ../src/guestfs.pod:233
500 msgid ""
501 "In the common case where you want to create a single partition covering the "
502 "whole disk, you should use the L</guestfs_part_disk> call:"
503 msgstr ""
504
505 # type: verbatim
506 #: ../src/guestfs.pod:237
507 #, no-wrap
508 msgid ""
509 " const char *parttype = \"mbr\";\n"
510 " if (disk_is_larger_than_2TB)\n"
511 "   parttype = \"gpt\";\n"
512 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
513 "\n"
514 msgstr ""
515
516 # type: textblock
517 #: ../src/guestfs.pod:242
518 msgid ""
519 "Obviously this effectively wipes anything that was on that disk image "
520 "before."
521 msgstr ""
522
523 # type: =head2
524 #: ../src/guestfs.pod:245
525 msgid "LVM2"
526 msgstr ""
527
528 # type: textblock
529 #: ../src/guestfs.pod:247
530 msgid ""
531 "Libguestfs provides access to a large part of the LVM2 API, such as "
532 "L</guestfs_lvcreate> and L</guestfs_vgremove>.  It won't make much sense "
533 "unless you familiarize yourself with the concepts of physical volumes, "
534 "volume groups and logical volumes."
535 msgstr ""
536
537 # type: textblock
538 #: ../src/guestfs.pod:252
539 msgid ""
540 "This author strongly recommends reading the LVM HOWTO, online at "
541 "L<http://tldp.org/HOWTO/LVM-HOWTO/>."
542 msgstr ""
543
544 # type: =head2
545 #: ../src/guestfs.pod:255
546 msgid "DOWNLOADING"
547 msgstr ""
548
549 # type: textblock
550 #: ../src/guestfs.pod:257
551 msgid ""
552 "Use L</guestfs_cat> to download small, text only files.  This call is "
553 "limited to files which are less than 2 MB and which cannot contain any ASCII "
554 "NUL (C<\\0>) characters.  However it has a very simple to use API."
555 msgstr ""
556
557 # type: textblock
558 #: ../src/guestfs.pod:262
559 msgid ""
560 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
561 "bit data, since it returns a (pointer, size) pair.  However it is still "
562 "limited to \"small\" files, less than 2 MB."
563 msgstr ""
564
565 # type: textblock
566 #: ../src/guestfs.pod:266
567 msgid ""
568 "L</guestfs_download> can be used to download any file, with no limits on "
569 "content or size (even files larger than 4 GB)."
570 msgstr ""
571
572 # type: textblock
573 #: ../src/guestfs.pod:269
574 msgid "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
575 msgstr ""
576
577 # type: =head2
578 #: ../src/guestfs.pod:272
579 msgid "UPLOADING"
580 msgstr ""
581
582 # type: textblock
583 #: ../src/guestfs.pod:274
584 msgid ""
585 "It's often the case that you want to write a file or files to the disk "
586 "image."
587 msgstr ""
588
589 # type: textblock
590 #: ../src/guestfs.pod:277
591 msgid ""
592 "To write a small file with fixed content, use L</guestfs_write>.  To create "
593 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or "
594 "L</guestfs_fallocate64> (with all disk blocks allocated).  There are a "
595 "variety of other functions for creating test files, for example "
596 "L</guestfs_fill> and L</guestfs_fill_pattern>."
597 msgstr ""
598
599 # type: textblock
600 #: ../src/guestfs.pod:283
601 msgid ""
602 "To upload a single file, use L</guestfs_upload>.  This call has no limits on "
603 "file content or size (even files larger than 4 GB)."
604 msgstr ""
605
606 # type: textblock
607 #: ../src/guestfs.pod:286
608 msgid "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
609 msgstr ""
610
611 # type: textblock
612 #: ../src/guestfs.pod:288
613 msgid ""
614 "However the fastest way to upload I<large numbers of arbitrary files> is to "
615 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and "
616 "L<mkisofs(8)>), then attach this using L</guestfs_add_drive_ro>.  If you add "
617 "the drive in a predictable way (eg. adding it last after all other drives) "
618 "then you can get the device name from L</guestfs_list_devices> and mount it "
619 "directly using L</guestfs_mount_ro>.  Note that squashfs images are "
620 "sometimes non-portable between kernel versions, and they don't support "
621 "labels or UUIDs.  If you want to pre-build an image or you need to mount it "
622 "using a label or UUID, use an ISO image instead."
623 msgstr ""
624
625 # type: =head2
626 #: ../src/guestfs.pod:299
627 msgid "COPYING"
628 msgstr ""
629
630 # type: textblock
631 #: ../src/guestfs.pod:301
632 msgid ""
633 "There are various different commands for copying between files and devices "
634 "and in and out of the guest filesystem.  These are summarised in the table "
635 "below."
636 msgstr ""
637
638 # type: =item
639 #: ../src/guestfs.pod:307
640 msgid "B<file> to B<file>"
641 msgstr ""
642
643 # type: textblock
644 #: ../src/guestfs.pod:309
645 msgid ""
646 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
647 "directories recursively."
648 msgstr ""
649
650 # type: =item
651 #: ../src/guestfs.pod:312
652 msgid "B<file or device> to B<file or device>"
653 msgstr ""
654
655 # type: textblock
656 #: ../src/guestfs.pod:314
657 msgid ""
658 "Use L</guestfs_dd> which efficiently uses L<dd(1)> to copy between files and "
659 "devices in the guest."
660 msgstr ""
661
662 # type: textblock
663 #: ../src/guestfs.pod:317
664 msgid "Example: duplicate the contents of an LV:"
665 msgstr ""
666
667 # type: verbatim
668 #: ../src/guestfs.pod:319
669 #, no-wrap
670 msgid ""
671 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
672 "\n"
673 msgstr ""
674
675 # type: textblock
676 #: ../src/guestfs.pod:321
677 msgid ""
678 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
679 "(C</dev/VG/Original>).  To copy less than the whole source device, use "
680 "L</guestfs_copy_size>."
681 msgstr ""
682
683 # type: =item
684 #: ../src/guestfs.pod:325
685 msgid "B<file on the host> to B<file or device>"
686 msgstr ""
687
688 # type: textblock
689 #: ../src/guestfs.pod:327
690 msgid "Use L</guestfs_upload>.  See L</UPLOADING> above."
691 msgstr ""
692
693 # type: =item
694 #: ../src/guestfs.pod:329
695 msgid "B<file or device> to B<file on the host>"
696 msgstr ""
697
698 # type: textblock
699 #: ../src/guestfs.pod:331
700 msgid "Use L</guestfs_download>.  See L</DOWNLOADING> above."
701 msgstr ""
702
703 # type: =head2
704 #: ../src/guestfs.pod:335
705 msgid "LISTING FILES"
706 msgstr ""
707
708 # type: textblock
709 #: ../src/guestfs.pod:337
710 msgid ""
711 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
712 "L<guestfish(1)>-equivalent command C<ll>)."
713 msgstr ""
714
715 # type: textblock
716 #: ../src/guestfs.pod:340
717 msgid ""
718 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
719 "programs, as a flat list of strings."
720 msgstr ""
721
722 # type: textblock
723 #: ../src/guestfs.pod:343
724 msgid ""
725 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
726 "directory, plus additional information about each one.  It is more "
727 "equivalent to using the L<readdir(3)> call on a local filesystem."
728 msgstr ""
729
730 # type: textblock
731 #: ../src/guestfs.pod:347
732 msgid ""
733 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list "
734 "files."
735 msgstr ""
736
737 # type: =head2
738 #: ../src/guestfs.pod:350
739 msgid "RUNNING COMMANDS"
740 msgstr ""
741
742 # type: textblock
743 #: ../src/guestfs.pod:352
744 msgid ""
745 "Although libguestfs is primarily an API for manipulating files inside guest "
746 "images, we also provide some limited facilities for running commands inside "
747 "guests."
748 msgstr ""
749
750 # type: textblock
751 #: ../src/guestfs.pod:356
752 msgid "There are many limitations to this:"
753 msgstr ""
754
755 # type: =item
756 #: ../src/guestfs.pod:360 ../src/guestfs.pod:365 ../src/guestfs.pod:370 ../src/guestfs.pod:374 ../src/guestfs.pod:379 ../src/guestfs.pod:383 ../src/guestfs.pod:388 ../src/guestfs.pod:393 ../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:1519 ../src/guestfs.pod:1524 ../src/guestfs.pod:1528 ../src/guestfs.pod:1638 ../src/guestfs.pod:1643 ../src/guestfs.pod:1647 ../src/guestfs.pod:1991 ../src/guestfs.pod:1997 ../src/guestfs.pod:2002 ../src/guestfs.pod:2008 ../src/guestfs.pod:2115 ../src/guestfs.pod:2119 ../src/guestfs.pod:2123 ../src/guestfs.pod:2127 ../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:376 ../fish/guestfish.pod:380 ../fish/guestfish.pod:384 ../fish/guestfish.pod:388 ../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 ../inspector/virt-inspector.pl:550 ../inspector/virt-inspector.pl:554 ../tools/virt-df.pl:161 ../tools/virt-df.pl:167 ../tools/virt-resize.pl:348 ../tools/virt-resize.pl:353 ../tools/virt-resize.pl:363
757 msgid "*"
758 msgstr ""
759
760 # type: textblock
761 #: ../src/guestfs.pod:362
762 msgid ""
763 "The kernel version that the command runs under will be different from what "
764 "it expects."
765 msgstr ""
766
767 # type: textblock
768 #: ../src/guestfs.pod:367
769 msgid ""
770 "If the command needs to communicate with daemons, then most likely they "
771 "won't be running."
772 msgstr ""
773
774 # type: textblock
775 #: ../src/guestfs.pod:372
776 msgid "The command will be running in limited memory."
777 msgstr ""
778
779 # type: textblock
780 #: ../src/guestfs.pod:376
781 msgid ""
782 "The network may not be available unless you enable it (see "
783 "L</guestfs_set_network>)."
784 msgstr ""
785
786 # type: textblock
787 #: ../src/guestfs.pod:381
788 msgid "Only supports Linux guests (not Windows, BSD, etc)."
789 msgstr ""
790
791 # type: textblock
792 #: ../src/guestfs.pod:385
793 msgid "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
794 msgstr ""
795
796 # type: textblock
797 #: ../src/guestfs.pod:390
798 msgid ""
799 "For SELinux guests, you may need to enable SELinux and load policy first.  "
800 "See L</SELINUX> in this manpage."
801 msgstr ""
802
803 # type: textblock
804 #: ../src/guestfs.pod:395
805 msgid ""
806 "I<Security:> It is not safe to run commands from untrusted, possibly "
807 "malicious guests.  These commands may attempt to exploit your program by "
808 "sending unexpected output.  They could also try to exploit the Linux kernel "
809 "or qemu provided by the libguestfs appliance.  They could use the network "
810 "provided by the libguestfs appliance to bypass ordinary network partitions "
811 "and firewalls.  They could use the elevated privileges or different SELinux "
812 "context of your program to their advantage."
813 msgstr ""
814
815 # type: textblock
816 #: ../src/guestfs.pod:404
817 msgid ""
818 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
819 "(a script which runs when the guest next boots normally), and to have this "
820 "script run the commands you want in the normal context of the running guest, "
821 "network security and so on.  For information about other security issues, "
822 "see L</SECURITY>."
823 msgstr ""
824
825 # type: textblock
826 #: ../src/guestfs.pod:412
827 msgid ""
828 "The two main API calls to run commands are L</guestfs_command> and "
829 "L</guestfs_sh> (there are also variations)."
830 msgstr ""
831
832 # type: textblock
833 #: ../src/guestfs.pod:415
834 msgid ""
835 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
836 "shell globs, redirections, etc will work."
837 msgstr ""
838
839 # type: =head2
840 #: ../src/guestfs.pod:418
841 msgid "CONFIGURATION FILES"
842 msgstr ""
843
844 # type: textblock
845 #: ../src/guestfs.pod:420
846 msgid ""
847 "To read and write configuration files in Linux guest filesystems, we "
848 "strongly recommend using Augeas.  For example, Augeas understands how to "
849 "read and write, say, a Linux shadow password file or X.org configuration "
850 "file, and so avoids you having to write that code."
851 msgstr ""
852
853 # type: textblock
854 #: ../src/guestfs.pod:425
855 msgid ""
856 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't "
857 "document Augeas itself here because there is excellent documentation on the "
858 "L<http://augeas.net/> website."
859 msgstr ""
860
861 # type: textblock
862 #: ../src/guestfs.pod:429
863 msgid ""
864 "If you don't want to use Augeas (you fool!) then try calling "
865 "L</guestfs_read_lines> to get the file as a list of lines which you can "
866 "iterate over."
867 msgstr ""
868
869 # type: =head2
870 #: ../src/guestfs.pod:433
871 msgid "SELINUX"
872 msgstr ""
873
874 # type: textblock
875 #: ../src/guestfs.pod:435
876 msgid ""
877 "We support SELinux guests.  To ensure that labeling happens correctly in "
878 "SELinux guests, you need to enable SELinux and load the guest's policy:"
879 msgstr ""
880
881 # type: =item
882 #: ../src/guestfs.pod:441 ../src/guestfs.pod:1140 ../src/guestfs.pod:1271
883 msgid "1."
884 msgstr ""
885
886 # type: textblock
887 #: ../src/guestfs.pod:443
888 msgid "Before launching, do:"
889 msgstr ""
890
891 # type: verbatim
892 #: ../src/guestfs.pod:445
893 #, no-wrap
894 msgid ""
895 " guestfs_set_selinux (g, 1);\n"
896 "\n"
897 msgstr ""
898
899 # type: =item
900 #: ../src/guestfs.pod:447 ../src/guestfs.pod:1144 ../src/guestfs.pod:1275
901 msgid "2."
902 msgstr ""
903
904 # type: textblock
905 #: ../src/guestfs.pod:449
906 msgid ""
907 "After mounting the guest's filesystem(s), load the policy.  This is best "
908 "done by running the L<load_policy(8)> command in the guest itself:"
909 msgstr ""
910
911 # type: verbatim
912 #: ../src/guestfs.pod:453
913 #, no-wrap
914 msgid ""
915 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
916 "\n"
917 msgstr ""
918
919 # type: textblock
920 #: ../src/guestfs.pod:455
921 msgid ""
922 "(Older versions of C<load_policy> require you to specify the name of the "
923 "policy file)."
924 msgstr ""
925
926 # type: =item
927 #: ../src/guestfs.pod:458 ../src/guestfs.pod:1281
928 msgid "3."
929 msgstr ""
930
931 # type: textblock
932 #: ../src/guestfs.pod:460
933 msgid ""
934 "Optionally, set the security context for the API.  The correct security "
935 "context to use can only be known by inspecting the guest.  As an example:"
936 msgstr ""
937
938 # type: verbatim
939 #: ../src/guestfs.pod:464
940 #, no-wrap
941 msgid ""
942 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
943 "\n"
944 msgstr ""
945
946 # type: textblock
947 #: ../src/guestfs.pod:468
948 msgid "This will work for running commands and editing existing files."
949 msgstr ""
950
951 # type: textblock
952 #: ../src/guestfs.pod:470
953 msgid ""
954 "When new files are created, you may need to label them explicitly, for "
955 "example by running the external command C<restorecon pathname>."
956 msgstr ""
957
958 # type: =head2
959 #: ../src/guestfs.pod:474
960 msgid "UMASK"
961 msgstr ""
962
963 # type: textblock
964 #: ../src/guestfs.pod:476
965 msgid ""
966 "Certain calls are affected by the current file mode creation mask (the "
967 "\"umask\").  In particular ones which create files or directories, such as "
968 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
969 "either the default mode that the file is created with or modifies the mode "
970 "that you supply."
971 msgstr ""
972
973 # type: textblock
974 #: ../src/guestfs.pod:482
975 msgid ""
976 "The default umask is C<022>, so files are created with modes such as C<0644> "
977 "and directories with C<0755>."
978 msgstr ""
979
980 # type: textblock
981 #: ../src/guestfs.pod:485
982 msgid ""
983 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
984 "(call C<guestfs_umask (g, 0)> early after launching).  Or call "
985 "L</guestfs_chmod> after creating each file or directory."
986 msgstr ""
987
988 # type: textblock
989 #: ../src/guestfs.pod:489
990 msgid "For more information about umask, see L<umask(2)>."
991 msgstr ""
992
993 # type: =head1
994 #: ../src/guestfs.pod:491 ../fish/guestfish.pod:669
995 msgid "ENCRYPTED DISKS"
996 msgstr ""
997
998 # type: textblock
999 #: ../src/guestfs.pod:493
1000 msgid ""
1001 "Libguestfs allows you to access Linux guests which have been encrypted using "
1002 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
1003 "standard.  This includes nearly all whole disk encryption systems used by "
1004 "modern Linux guests."
1005 msgstr ""
1006
1007 # type: textblock
1008 #: ../src/guestfs.pod:499
1009 msgid ""
1010 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
1011 "returns the string C<crypto_LUKS>)."
1012 msgstr ""
1013
1014 # type: textblock
1015 #: ../src/guestfs.pod:502
1016 msgid ""
1017 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
1018 "will require the passphrase!"
1019 msgstr ""
1020
1021 # type: textblock
1022 #: ../src/guestfs.pod:505
1023 msgid ""
1024 "Opening a LUKS device creates a new device mapper device called "
1025 "C</dev/mapper/mapname> (where C<mapname> is the string you supply to "
1026 "L</guestfs_luks_open>).  Reads and writes to this mapper device are "
1027 "decrypted from and encrypted to the underlying block device respectively."
1028 msgstr ""
1029
1030 # type: textblock
1031 #: ../src/guestfs.pod:511
1032 msgid ""
1033 "LVM volume groups on the device can be made visible by calling "
1034 "L</guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical "
1035 "volume(s) can now be mounted in the usual way."
1036 msgstr ""
1037
1038 # type: textblock
1039 #: ../src/guestfs.pod:515
1040 msgid ""
1041 "Use the reverse process to close a LUKS device.  Unmount any logical volumes "
1042 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
1043 "[\"/dev/VG\"])>.  Then close the mapper device by calling "
1044 "L</guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
1045 "underlying encrypted block device)."
1046 msgstr ""
1047
1048 # type: =head2
1049 #: ../src/guestfs.pod:522
1050 msgid "INSPECTION"
1051 msgstr ""
1052
1053 # type: textblock
1054 #: ../src/guestfs.pod:524
1055 msgid ""
1056 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
1057 "contains operating systems.  (These APIs used to be in a separate Perl-only "
1058 "library called L<Sys::Guestfs::Lib(3)> but since version 1.5.3 the most "
1059 "frequently used part of this library has been rewritten in C and moved into "
1060 "the core code)."
1061 msgstr ""
1062
1063 # type: textblock
1064 #: ../src/guestfs.pod:530
1065 msgid ""
1066 "Add all disks belonging to the unknown virtual machine and call "
1067 "L</guestfs_launch> in the usual way."
1068 msgstr ""
1069
1070 # type: textblock
1071 #: ../src/guestfs.pod:533
1072 msgid ""
1073 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
1074 "and certain heuristics, and returns a list of operating systems that were "
1075 "found.  An empty list means none were found.  A single element is the root "
1076 "filesystem of the operating system.  For dual- or multi-boot guests, "
1077 "multiple roots can be returned, each one corresponding to a separate "
1078 "operating system.  (Multi-boot virtual machines are extremely rare in the "
1079 "world of virtualization, but since this scenario can happen, we have built "
1080 "libguestfs to deal with it.)"
1081 msgstr ""
1082
1083 # type: textblock
1084 #: ../src/guestfs.pod:542
1085 msgid ""
1086 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
1087 "to get additional details about that operating system.  For example, call "
1088 "L</guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
1089 "Windows and Linux-based operating systems respectively."
1090 msgstr ""
1091
1092 # type: textblock
1093 #: ../src/guestfs.pod:548
1094 msgid ""
1095 "Un*x-like and Linux-based operating systems usually consist of several "
1096 "filesystems which are mounted at boot time (for example, a separate boot "
1097 "partition mounted on C</boot>).  The inspection rules are able to detect how "
1098 "filesystems correspond to mount points.  Call "
1099 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
1100 "hash table like this example:"
1101 msgstr ""
1102
1103 # type: verbatim
1104 #: ../src/guestfs.pod:555
1105 #, no-wrap
1106 msgid ""
1107 " /boot => /dev/sda1\n"
1108 " /     => /dev/vg_guest/lv_root\n"
1109 " /usr  => /dev/vg_guest/lv_usr\n"
1110 "\n"
1111 msgstr ""
1112
1113 # type: textblock
1114 #: ../src/guestfs.pod:559
1115 msgid ""
1116 "The caller can then make calls to L</guestfs_mount_options> to mount the "
1117 "filesystems as suggested."
1118 msgstr ""
1119
1120 # type: textblock
1121 #: ../src/guestfs.pod:562
1122 msgid ""
1123 "Be careful to mount filesystems in the right order (eg. C</> before "
1124 "C</usr>).  Sorting the keys of the hash by length, shortest first, should "
1125 "work."
1126 msgstr ""
1127
1128 # type: textblock
1129 #: ../src/guestfs.pod:566
1130 msgid ""
1131 "Inspection currently only works for some common operating systems.  "
1132 "Contributors are welcome to send patches for other operating systems that we "
1133 "currently cannot detect."
1134 msgstr ""
1135
1136 # type: textblock
1137 #: ../src/guestfs.pod:570
1138 msgid ""
1139 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
1140 "for more details.  The L</guestfs_inspect_os> function just ignores any "
1141 "encrypted devices."
1142 msgstr ""
1143
1144 # type: textblock
1145 #: ../src/guestfs.pod:574
1146 msgid ""
1147 "A note on the implementation: The call L</guestfs_inspect_os> performs "
1148 "inspection and caches the results in the guest handle.  Subsequent calls to "
1149 "C<guestfs_inspect_get_*> return this cached information, but I<do not> "
1150 "re-read the disks.  If you change the content of the guest disks, you can "
1151 "redo inspection by calling L</guestfs_inspect_os> again."
1152 msgstr ""
1153
1154 # type: =head2
1155 #: ../src/guestfs.pod:581
1156 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
1157 msgstr ""
1158
1159 # type: textblock
1160 #: ../src/guestfs.pod:583
1161 msgid ""
1162 "Libguestfs can mount NTFS partitions.  It does this using the "
1163 "L<http://www.ntfs-3g.org/> driver."
1164 msgstr ""
1165
1166 # type: textblock
1167 #: ../src/guestfs.pod:586
1168 msgid ""
1169 "DOS and Windows still use drive letters, and the filesystems are always "
1170 "treated as case insensitive by Windows itself, and therefore you might find "
1171 "a Windows configuration file referring to a path like "
1172 "C<c:\\windows\\system32>.  When the filesystem is mounted in libguestfs, "
1173 "that directory might be referred to as C</WINDOWS/System32>."
1174 msgstr ""
1175
1176 # type: textblock
1177 #: ../src/guestfs.pod:592
1178 msgid ""
1179 "Drive letter mappings are outside the scope of libguestfs.  You have to use "
1180 "libguestfs to read the appropriate Windows Registry and configuration files, "
1181 "to determine yourself how drives are mapped (see also L<hivex(3)> and "
1182 "L<virt-inspector(1)>)."
1183 msgstr ""
1184
1185 # type: textblock
1186 #: ../src/guestfs.pod:597
1187 msgid ""
1188 "Replacing backslash characters with forward slash characters is also outside "
1189 "the scope of libguestfs, but something that you can easily do."
1190 msgstr ""
1191
1192 # type: textblock
1193 #: ../src/guestfs.pod:600
1194 msgid ""
1195 "Where we can help is in resolving the case insensitivity of paths.  For "
1196 "this, call L</guestfs_case_sensitive_path>."
1197 msgstr ""
1198
1199 # type: textblock
1200 #: ../src/guestfs.pod:603
1201 msgid ""
1202 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
1203 "files, through the library C<hivex> which is part of the libguestfs project "
1204 "although ships as a separate tarball.  You have to locate and download the "
1205 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
1206 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and "
1207 "L<virt-win-reg(1)> for more help on this issue."
1208 msgstr ""
1209
1210 # type: =head2
1211 #: ../src/guestfs.pod:611
1212 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
1213 msgstr ""
1214
1215 # type: textblock
1216 #: ../src/guestfs.pod:613
1217 msgid ""
1218 "Although we don't want to discourage you from using the C API, we will "
1219 "mention here that the same API is also available in other languages."
1220 msgstr ""
1221
1222 # type: textblock
1223 #: ../src/guestfs.pod:616
1224 msgid ""
1225 "The API is broadly identical in all supported languages.  This means that "
1226 "the C call C<guestfs_mount(g,path)> is C<$g-E<gt>mount($path)> in Perl, "
1227 "C<g.mount(path)> in Python, and C<Guestfs.mount g path> in OCaml.  In other "
1228 "words, a straightforward, predictable isomorphism between each language."
1229 msgstr ""
1230
1231 # type: textblock
1232 #: ../src/guestfs.pod:622
1233 msgid ""
1234 "Error messages are automatically transformed into exceptions if the language "
1235 "supports it."
1236 msgstr ""
1237
1238 # type: textblock
1239 #: ../src/guestfs.pod:625
1240 msgid ""
1241 "We don't try to \"object orientify\" parts of the API in OO languages, "
1242 "although contributors are welcome to write higher level APIs above what we "
1243 "provide in their favourite languages if they wish."
1244 msgstr ""
1245
1246 # type: =item
1247 #: ../src/guestfs.pod:631
1248 msgid "B<C++>"
1249 msgstr ""
1250
1251 # type: textblock
1252 #: ../src/guestfs.pod:633
1253 msgid ""
1254 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
1255 "identical to the C API.  C++ classes and exceptions are not used."
1256 msgstr ""
1257
1258 # type: =item
1259 #: ../src/guestfs.pod:637
1260 msgid "B<C#>"
1261 msgstr ""
1262
1263 # type: textblock
1264 #: ../src/guestfs.pod:639
1265 msgid ""
1266 "The C# bindings are highly experimental.  Please read the warnings at the "
1267 "top of C<csharp/Libguestfs.cs>."
1268 msgstr ""
1269
1270 # type: =item
1271 #: ../src/guestfs.pod:642
1272 msgid "B<Haskell>"
1273 msgstr ""
1274
1275 # type: textblock
1276 #: ../src/guestfs.pod:644
1277 msgid ""
1278 "This is the only language binding that is working but incomplete.  Only "
1279 "calls which return simple integers have been bound in Haskell, and we are "
1280 "looking for help to complete this binding."
1281 msgstr ""
1282
1283 # type: =item
1284 #: ../src/guestfs.pod:648
1285 msgid "B<Java>"
1286 msgstr ""
1287
1288 # type: textblock
1289 #: ../src/guestfs.pod:650
1290 msgid ""
1291 "Full documentation is contained in the Javadoc which is distributed with "
1292 "libguestfs."
1293 msgstr ""
1294
1295 # type: =item
1296 #: ../src/guestfs.pod:653
1297 msgid "B<OCaml>"
1298 msgstr ""
1299
1300 # type: textblock
1301 #: ../src/guestfs.pod:655
1302 msgid "For documentation see the file C<guestfs.mli>."
1303 msgstr ""
1304
1305 # type: =item
1306 #: ../src/guestfs.pod:657
1307 msgid "B<Perl>"
1308 msgstr ""
1309
1310 # type: textblock
1311 #: ../src/guestfs.pod:659
1312 msgid "For documentation see L<Sys::Guestfs(3)>."
1313 msgstr ""
1314
1315 # type: =item
1316 #: ../src/guestfs.pod:661
1317 msgid "B<PHP>"
1318 msgstr ""
1319
1320 # type: textblock
1321 #: ../src/guestfs.pod:663
1322 msgid ""
1323 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
1324 "the php-libguestfs package for your distribution."
1325 msgstr ""
1326
1327 # type: textblock
1328 #: ../src/guestfs.pod:666
1329 msgid "The PHP binding only works correctly on 64 bit machines."
1330 msgstr ""
1331
1332 # type: =item
1333 #: ../src/guestfs.pod:668
1334 msgid "B<Python>"
1335 msgstr ""
1336
1337 # type: textblock
1338 #: ../src/guestfs.pod:670
1339 msgid "For documentation do:"
1340 msgstr ""
1341
1342 # type: verbatim
1343 #: ../src/guestfs.pod:672
1344 #, no-wrap
1345 msgid ""
1346 " $ python\n"
1347 " >>> import guestfs\n"
1348 " >>> help (guestfs)\n"
1349 "\n"
1350 msgstr ""
1351
1352 # type: =item
1353 #: ../src/guestfs.pod:676
1354 msgid "B<Ruby>"
1355 msgstr ""
1356
1357 # type: textblock
1358 #: ../src/guestfs.pod:678
1359 msgid ""
1360 "Use the Guestfs module.  There is no Ruby-specific documentation, but you "
1361 "can find examples written in Ruby in the libguestfs source."
1362 msgstr ""
1363
1364 # type: =item
1365 #: ../src/guestfs.pod:681
1366 msgid "B<shell scripts>"
1367 msgstr ""
1368
1369 # type: textblock
1370 #: ../src/guestfs.pod:683
1371 msgid "For documentation see L<guestfish(1)>."
1372 msgstr ""
1373
1374 # type: =head2
1375 #: ../src/guestfs.pod:687
1376 msgid "LIBGUESTFS GOTCHAS"
1377 msgstr ""
1378
1379 # type: textblock
1380 #: ../src/guestfs.pod:689
1381 msgid ""
1382 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
1383 "system [...] that works in the way it is documented but is counterintuitive "
1384 "and almost invites mistakes.\""
1385 msgstr ""
1386
1387 # type: textblock
1388 #: ../src/guestfs.pod:693
1389 msgid ""
1390 "Since we developed libguestfs and the associated tools, there are several "
1391 "things we would have designed differently, but are now stuck with for "
1392 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
1393 "release, you can expect these to change.  Beware of them."
1394 msgstr ""
1395
1396 # type: =item
1397 #: ../src/guestfs.pod:701
1398 msgid "Autosync / forgetting to sync."
1399 msgstr ""
1400
1401 # type: textblock
1402 #: ../src/guestfs.pod:703
1403 msgid ""
1404 "When modifying a filesystem from C or another language, you B<must> unmount "
1405 "all filesystems and call L</guestfs_sync> explicitly before you close the "
1406 "libguestfs handle.  You can also call:"
1407 msgstr ""
1408
1409 # type: verbatim
1410 #: ../src/guestfs.pod:707
1411 #, no-wrap
1412 msgid ""
1413 " guestfs_set_autosync (g, 1);\n"
1414 "\n"
1415 msgstr ""
1416
1417 # type: textblock
1418 #: ../src/guestfs.pod:709
1419 msgid ""
1420 "to have the unmount/sync done automatically for you when the handle 'g' is "
1421 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> "
1422 "q.v.)"
1423 msgstr ""
1424
1425 # type: textblock
1426 #: ../src/guestfs.pod:713
1427 msgid ""
1428 "If you forget to do this, then it is entirely possible that your changes "
1429 "won't be written out, or will be partially written, or (very rarely) that "
1430 "you'll get disk corruption."
1431 msgstr ""
1432
1433 # type: textblock
1434 #: ../src/guestfs.pod:717
1435 msgid ""
1436 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
1437 "guestfish scripts that forget to sync will work just fine, which can make "
1438 "this very puzzling if you are trying to debug a problem."
1439 msgstr ""
1440
1441 # type: textblock
1442 #: ../src/guestfs.pod:721
1443 msgid ""
1444 "Update: Autosync is enabled by default for all API users starting from "
1445 "libguestfs 1.5.24."
1446 msgstr ""
1447
1448 # type: =item
1449 #: ../src/guestfs.pod:724
1450 msgid "Mount option C<-o sync> should not be the default."
1451 msgstr ""
1452
1453 # type: textblock
1454 #: ../src/guestfs.pod:726
1455 msgid ""
1456 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
1457 "However C<-o sync> does not add any reliability benefit, but does have a "
1458 "very large performance impact."
1459 msgstr ""
1460
1461 # type: textblock
1462 #: ../src/guestfs.pod:730
1463 msgid ""
1464 "The work around is to use L</guestfs_mount_options> and set the mount "
1465 "options that you actually want to use."
1466 msgstr ""
1467
1468 # type: =item
1469 #: ../src/guestfs.pod:733
1470 msgid "Read-only should be the default."
1471 msgstr ""
1472
1473 # type: textblock
1474 #: ../src/guestfs.pod:735
1475 msgid ""
1476 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
1477 "specify I<--rw> if you want to make changes to the image."
1478 msgstr ""
1479
1480 # type: textblock
1481 #: ../src/guestfs.pod:738
1482 msgid "This would reduce the potential to corrupt live VM images."
1483 msgstr ""
1484
1485 # type: textblock
1486 #: ../src/guestfs.pod:740
1487 msgid ""
1488 "Note that many filesystems change the disk when you just mount and unmount, "
1489 "even if you didn't perform any writes.  You need to use "
1490 "L</guestfs_add_drive_ro> to guarantee that the disk is not changed."
1491 msgstr ""
1492
1493 # type: =item
1494 #: ../src/guestfs.pod:744
1495 msgid "guestfish command line is hard to use."
1496 msgstr ""
1497
1498 # type: textblock
1499 #: ../src/guestfs.pod:746
1500 msgid ""
1501 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
1502 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
1503 "exist, so it fails.  In earlier versions of guestfish the error message was "
1504 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
1505 "we should have used C<guestfish -c command> to run commands."
1506 msgstr ""
1507
1508 # type: =item
1509 #: ../src/guestfs.pod:753
1510 msgid "guestfish megabyte modifiers don't work right on all commands"
1511 msgstr ""
1512
1513 # type: textblock
1514 #: ../src/guestfs.pod:755
1515 msgid ""
1516 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
1517 "other modifiers).  What guestfish actually does is to multiply the number "
1518 "part by the modifier part and pass the result to the C API.  However this "
1519 "doesn't work for a few APIs which aren't expecting bytes, but are already "
1520 "expecting some other unit (eg. megabytes)."
1521 msgstr ""
1522
1523 # type: textblock
1524 #: ../src/guestfs.pod:762
1525 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
1526 msgstr ""
1527
1528 # type: verbatim
1529 #: ../src/guestfs.pod:764
1530 #, no-wrap
1531 msgid ""
1532 " lvcreate LV VG 100M\n"
1533 "\n"
1534 msgstr ""
1535
1536 # type: textblock
1537 #: ../src/guestfs.pod:766
1538 msgid ""
1539 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
1540 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
1541 "megabytes * megabytes) logical volume.  The error message you get from this "
1542 "is also a little obscure."
1543 msgstr ""
1544
1545 # type: textblock
1546 #: ../src/guestfs.pod:771
1547 msgid ""
1548 "This could be fixed in the generator by specially marking parameters and "
1549 "return values which take bytes or other units."
1550 msgstr ""
1551
1552 # type: =item
1553 #: ../src/guestfs.pod:774
1554 msgid "Ambiguity between devices and paths"
1555 msgstr ""
1556
1557 # type: textblock
1558 #: ../src/guestfs.pod:776
1559 msgid ""
1560 "There is a subtle ambiguity in the API between a device name "
1561 "(eg. C</dev/sdb2>) and a similar pathname.  A file might just happen to be "
1562 "called C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
1563 msgstr ""
1564
1565 # type: textblock
1566 #: ../src/guestfs.pod:781
1567 msgid ""
1568 "In the current API we usually resolve this ambiguity by having two separate "
1569 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
1570 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
1571 "detecting if the path supplied begins with C</dev/>."
1572 msgstr ""
1573
1574 # type: textblock
1575 #: ../src/guestfs.pod:787
1576 msgid ""
1577 "To avoid both the ambiguity and the need to duplicate some calls, we could "
1578 "make paths/devices into structured names.  One way to do this would be to "
1579 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
1580 "aspect of grub.  Another way would be to use a structured type, equivalent "
1581 "to this OCaml type:"
1582 msgstr ""
1583
1584 # type: verbatim
1585 #: ../src/guestfs.pod:793
1586 #, no-wrap
1587 msgid ""
1588 " type path = Path of string | Device of int | Partition of int * int\n"
1589 "\n"
1590 msgstr ""
1591
1592 # type: textblock
1593 #: ../src/guestfs.pod:795
1594 msgid "which would allow you to pass arguments like:"
1595 msgstr ""
1596
1597 # type: verbatim
1598 #: ../src/guestfs.pod:797
1599 #, no-wrap
1600 msgid ""
1601 " Path \"/foo/bar\"\n"
1602 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
1603 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
1604 " Path \"/dev/sdb2\"    (* not a device *)\n"
1605 "\n"
1606 msgstr ""
1607
1608 # type: textblock
1609 #: ../src/guestfs.pod:802
1610 msgid ""
1611 "As you can see there are still problems to resolve even with this "
1612 "representation.  Also consider how it might work in guestfish."
1613 msgstr ""
1614
1615 # type: =head2
1616 #: ../src/guestfs.pod:807
1617 msgid "PROTOCOL LIMITS"
1618 msgstr ""
1619
1620 # type: textblock
1621 #: ../src/guestfs.pod:809
1622 msgid ""
1623 "Internally libguestfs uses a message-based protocol to pass API calls and "
1624 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
1625 "plenty more detail about this).  The maximum message size used by the "
1626 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
1627 "aware of this limit.  The API calls which may be affected are individually "
1628 "documented, with a link back to this section of the documentation."
1629 msgstr ""
1630
1631 # type: textblock
1632 #: ../src/guestfs.pod:817
1633 msgid ""
1634 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
1635 "a simple string.  Because this string is at some point internally encoded as "
1636 "a message, the maximum size that it can return is slightly under 4 MB.  If "
1637 "the requested file is larger than this then you will get an error."
1638 msgstr ""
1639
1640 # type: textblock
1641 #: ../src/guestfs.pod:823
1642 msgid ""
1643 "In order to transfer large files into and out of the guest filesystem, you "
1644 "need to use particular calls that support this.  The sections L</UPLOADING> "
1645 "and L</DOWNLOADING> document how to do this."
1646 msgstr ""
1647
1648 # type: textblock
1649 #: ../src/guestfs.pod:827
1650 msgid ""
1651 "You might also consider mounting the disk image using our FUSE filesystem "
1652 "support (L<guestmount(1)>)."
1653 msgstr ""
1654
1655 # type: =head2
1656 #: ../src/guestfs.pod:830
1657 msgid "KEYS AND PASSPHRASES"
1658 msgstr ""
1659
1660 # type: textblock
1661 #: ../src/guestfs.pod:832
1662 msgid ""
1663 "Certain libguestfs calls take a parameter that contains sensitive key "
1664 "material, passed in as a C string."
1665 msgstr ""
1666
1667 # type: textblock
1668 #: ../src/guestfs.pod:835
1669 msgid ""
1670 "In the future we would hope to change the libguestfs implementation so that "
1671 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
1672 "swap.  However this is I<not> done at the moment, because of the complexity "
1673 "of such an implementation."
1674 msgstr ""
1675
1676 # type: textblock
1677 #: ../src/guestfs.pod:840
1678 msgid ""
1679 "Therefore you should be aware that any key parameter you pass to libguestfs "
1680 "might end up being written out to the swap partition.  If this is a concern, "
1681 "scrub the swap partition or don't use libguestfs on encrypted devices."
1682 msgstr ""
1683
1684 # type: =head2
1685 #: ../src/guestfs.pod:845
1686 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
1687 msgstr ""
1688
1689 # type: textblock
1690 #: ../src/guestfs.pod:847
1691 msgid ""
1692 "All high-level libguestfs actions are synchronous.  If you want to use "
1693 "libguestfs asynchronously then you must create a thread."
1694 msgstr ""
1695
1696 # type: textblock
1697 #: ../src/guestfs.pod:850
1698 msgid ""
1699 "Only use the handle from a single thread.  Either use the handle exclusively "
1700 "from one thread, or provide your own mutex so that two threads cannot issue "
1701 "calls on the same handle at the same time."
1702 msgstr ""
1703
1704 # type: textblock
1705 #: ../src/guestfs.pod:854
1706 msgid ""
1707 "See the graphical program guestfs-browser for one possible architecture for "
1708 "multithreaded programs using libvirt and libguestfs."
1709 msgstr ""
1710
1711 # type: =head2
1712 #: ../src/guestfs.pod:857
1713 msgid "PATH"
1714 msgstr ""
1715
1716 # type: textblock
1717 #: ../src/guestfs.pod:859
1718 msgid ""
1719 "Libguestfs needs a kernel and initrd.img, which it finds by looking along an "
1720 "internal path."
1721 msgstr ""
1722
1723 # type: textblock
1724 #: ../src/guestfs.pod:862
1725 msgid ""
1726 "By default it looks for these in the directory C<$libdir/guestfs> "
1727 "(eg. C</usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
1728 msgstr ""
1729
1730 # type: textblock
1731 #: ../src/guestfs.pod:865
1732 msgid ""
1733 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
1734 "to change the directories that libguestfs will search in.  The value is a "
1735 "colon-separated list of paths.  The current directory is I<not> searched "
1736 "unless the path contains an empty element or C<.>.  For example "
1737 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
1738 "then C</usr/lib/guestfs>."
1739 msgstr ""
1740
1741 # type: =head2
1742 #: ../src/guestfs.pod:872
1743 msgid "QEMU WRAPPERS"
1744 msgstr ""
1745
1746 # type: textblock
1747 #: ../src/guestfs.pod:874
1748 msgid ""
1749 "If you want to compile your own qemu, run qemu from a non-standard location, "
1750 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
1751 "around qemu."
1752 msgstr ""
1753
1754 # type: textblock
1755 #: ../src/guestfs.pod:878
1756 msgid ""
1757 "There is one important rule to remember: you I<must C<exec qemu>> as the "
1758 "last command in the shell script (so that qemu replaces the shell and "
1759 "becomes the direct child of the libguestfs-using program).  If you don't do "
1760 "this, then the qemu process won't be cleaned up correctly."
1761 msgstr ""
1762
1763 # type: textblock
1764 #: ../src/guestfs.pod:883
1765 msgid ""
1766 "Here is an example of a wrapper, where I have built my own copy of qemu from "
1767 "source:"
1768 msgstr ""
1769
1770 # type: verbatim
1771 #: ../src/guestfs.pod:886
1772 #, no-wrap
1773 msgid ""
1774 " #!/bin/sh -\n"
1775 " qemudir=/home/rjones/d/qemu\n"
1776 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios "
1777 "\"$@\"\n"
1778 "\n"
1779 msgstr ""
1780
1781 # type: textblock
1782 #: ../src/guestfs.pod:890
1783 msgid ""
1784 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
1785 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
1786 "example:"
1787 msgstr ""
1788
1789 # type: verbatim
1790 #: ../src/guestfs.pod:894
1791 #, no-wrap
1792 msgid ""
1793 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
1794 "\n"
1795 msgstr ""
1796
1797 # type: textblock
1798 #: ../src/guestfs.pod:896
1799 msgid ""
1800 "Note that libguestfs also calls qemu with the -help and -version options in "
1801 "order to determine features."
1802 msgstr ""
1803
1804 # type: =head2
1805 #: ../src/guestfs.pod:899
1806 msgid "ABI GUARANTEE"
1807 msgstr ""
1808
1809 # type: textblock
1810 #: ../src/guestfs.pod:901
1811 msgid ""
1812 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
1813 "actions as outlined in this section.  Although we will deprecate some "
1814 "actions, for example if they get replaced by newer calls, we will keep the "
1815 "old actions forever.  This allows you the developer to program in confidence "
1816 "against the libguestfs API."
1817 msgstr ""
1818
1819 # type: =head2
1820 #: ../src/guestfs.pod:907
1821 msgid "BLOCK DEVICE NAMING"
1822 msgstr ""
1823
1824 # type: textblock
1825 #: ../src/guestfs.pod:909
1826 msgid ""
1827 "In the kernel there is now quite a profusion of schemata for naming block "
1828 "devices (in this context, by I<block device> I mean a physical or virtual "
1829 "hard drive).  The original Linux IDE driver used names starting with "
1830 "C</dev/hd*>.  SCSI devices have historically used a different naming scheme, "
1831 "C</dev/sd*>.  When the Linux kernel I<libata> driver became a popular "
1832 "replacement for the old IDE driver (particularly for SATA devices) those "
1833 "devices also used the C</dev/sd*> scheme.  Additionally we now have virtual "
1834 "machines with paravirtualized drivers.  This has created several different "
1835 "naming systems, such as C</dev/vd*> for virtio disks and C</dev/xvd*> for "
1836 "Xen PV disks."
1837 msgstr ""
1838
1839 # type: textblock
1840 #: ../src/guestfs.pod:921
1841 msgid ""
1842 "As discussed above, libguestfs uses a qemu appliance running an embedded "
1843 "Linux kernel to access block devices.  We can run a variety of appliances "
1844 "based on a variety of Linux kernels."
1845 msgstr ""
1846
1847 # type: textblock
1848 #: ../src/guestfs.pod:925
1849 msgid ""
1850 "This causes a problem for libguestfs because many API calls use device or "
1851 "partition names.  Working scripts and the recipe (example) scripts that we "
1852 "make available over the internet could fail if the naming scheme changes."
1853 msgstr ""
1854
1855 # type: textblock
1856 #: ../src/guestfs.pod:930
1857 msgid ""
1858 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
1859 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
1860 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
1861 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
1862 msgstr ""
1863
1864 # type: textblock
1865 #: ../src/guestfs.pod:936
1866 msgid ""
1867 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
1868 "L</guestfs_list_partitions> and similar calls return the true names of the "
1869 "devices and partitions as known to the appliance."
1870 msgstr ""
1871
1872 # type: =head3
1873 #: ../src/guestfs.pod:941
1874 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
1875 msgstr ""
1876
1877 # type: textblock
1878 #: ../src/guestfs.pod:943
1879 msgid ""
1880 "Usually this translation is transparent.  However in some (very rare)  cases "
1881 "you may need to know the exact algorithm.  Such cases include where you use "
1882 "L</guestfs_config> to add a mixture of virtio and IDE devices to the "
1883 "qemu-based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> "
1884 "devices."
1885 msgstr ""
1886
1887 # type: textblock
1888 #: ../src/guestfs.pod:949
1889 msgid ""
1890 "The algorithm is applied only to I<parameters> which are known to be either "
1891 "device or partition names.  Return values from functions such as "
1892 "L</guestfs_list_devices> are never changed."
1893 msgstr ""
1894
1895 # type: textblock
1896 #: ../src/guestfs.pod:957
1897 msgid "Is the string a parameter which is a device or partition name?"
1898 msgstr ""
1899
1900 # type: textblock
1901 #: ../src/guestfs.pod:961
1902 msgid "Does the string begin with C</dev/sd>?"
1903 msgstr ""
1904
1905 # type: textblock
1906 #: ../src/guestfs.pod:965
1907 msgid ""
1908 "Does the named device exist? If so, we use that device.  However if I<not> "
1909 "then we continue with this algorithm."
1910 msgstr ""
1911
1912 # type: textblock
1913 #: ../src/guestfs.pod:970
1914 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
1915 msgstr ""
1916
1917 # type: textblock
1918 #: ../src/guestfs.pod:972
1919 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
1920 msgstr ""
1921
1922 # type: textblock
1923 #: ../src/guestfs.pod:974
1924 msgid "If that named device exists, use it.  If not, continue."
1925 msgstr ""
1926
1927 # type: textblock
1928 #: ../src/guestfs.pod:978
1929 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
1930 msgstr ""
1931
1932 # type: textblock
1933 #: ../src/guestfs.pod:980
1934 msgid "If that named device exists, use it.  If not, return an error."
1935 msgstr ""
1936
1937 # type: =head3
1938 #: ../src/guestfs.pod:984
1939 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
1940 msgstr ""
1941
1942 # type: textblock
1943 #: ../src/guestfs.pod:986
1944 msgid ""
1945 "Although the standard naming scheme and automatic translation is useful for "
1946 "simple programs and guestfish scripts, for larger programs it is best not to "
1947 "rely on this mechanism."
1948 msgstr ""
1949
1950 # type: textblock
1951 #: ../src/guestfs.pod:990
1952 msgid ""
1953 "Where possible for maximum future portability programs using libguestfs "
1954 "should use these future-proof techniques:"
1955 msgstr ""
1956
1957 # type: textblock
1958 #: ../src/guestfs.pod:997
1959 msgid ""
1960 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
1961 "device names, and then use those names directly."
1962 msgstr ""
1963
1964 # type: textblock
1965 #: ../src/guestfs.pod:1000
1966 msgid "Since those device names exist by definition, they will never be translated."
1967 msgstr ""
1968
1969 # type: textblock
1970 #: ../src/guestfs.pod:1005
1971 msgid ""
1972 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
1973 "filesystem labels."
1974 msgstr ""
1975
1976 # type: =head1
1977 #: ../src/guestfs.pod:1010
1978 msgid "SECURITY"
1979 msgstr ""
1980
1981 # type: textblock
1982 #: ../src/guestfs.pod:1012
1983 msgid ""
1984 "This section discusses security implications of using libguestfs, "
1985 "particularly with untrusted or malicious guests or disk images."
1986 msgstr ""
1987
1988 # type: =head2
1989 #: ../src/guestfs.pod:1015
1990 msgid "GENERAL SECURITY CONSIDERATIONS"
1991 msgstr ""
1992
1993 # type: textblock
1994 #: ../src/guestfs.pod:1017
1995 msgid ""
1996 "Be careful with any files or data that you download from a guest (by "
1997 "\"download\" we mean not just the L</guestfs_download> command but any "
1998 "command that reads files, filenames, directories or anything else from a "
1999 "disk image).  An attacker could manipulate the data to fool your program "
2000 "into doing the wrong thing.  Consider cases such as:"
2001 msgstr ""
2002
2003 # type: textblock
2004 #: ../src/guestfs.pod:1027
2005 msgid "the data (file etc) not being present"
2006 msgstr ""
2007
2008 # type: textblock
2009 #: ../src/guestfs.pod:1031
2010 msgid "being present but empty"
2011 msgstr ""
2012
2013 # type: textblock
2014 #: ../src/guestfs.pod:1035
2015 msgid "being much larger than normal"
2016 msgstr ""
2017
2018 # type: textblock
2019 #: ../src/guestfs.pod:1039
2020 msgid "containing arbitrary 8 bit data"
2021 msgstr ""
2022
2023 # type: textblock
2024 #: ../src/guestfs.pod:1043
2025 msgid "being in an unexpected character encoding"
2026 msgstr ""
2027
2028 # type: textblock
2029 #: ../src/guestfs.pod:1047
2030 msgid "containing homoglyphs."
2031 msgstr ""
2032
2033 # type: =head2
2034 #: ../src/guestfs.pod:1051
2035 msgid "SECURITY OF MOUNTING FILESYSTEMS"
2036 msgstr ""
2037
2038 # type: textblock
2039 #: ../src/guestfs.pod:1053
2040 msgid ""
2041 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
2042 "(VFS) module can sometimes be escalated into exploits by deliberately "
2043 "creating a malicious, malformed filesystem.  These exploits are very severe "
2044 "for two reasons.  Firstly there are very many filesystem drivers in the "
2045 "kernel, and many of them are infrequently used and not much developer "
2046 "attention has been paid to the code.  Linux userspace helps potential "
2047 "crackers by detecting the filesystem type and automatically choosing the "
2048 "right VFS driver, even if that filesystem type is obscure or unexpected for "
2049 "the administrator.  Secondly, a kernel-level exploit is like a local root "
2050 "exploit (worse in some ways), giving immediate and total access to the "
2051 "system right down to the hardware level."
2052 msgstr ""
2053
2054 # type: textblock
2055 #: ../src/guestfs.pod:1066
2056 msgid ""
2057 "That explains why you should never mount a filesystem from an untrusted "
2058 "guest on your host kernel.  How about libguestfs? We run a Linux kernel "
2059 "inside a qemu virtual machine, usually running as a non-root user.  The "
2060 "attacker would need to write a filesystem which first exploited the kernel, "
2061 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
2062 "the libguestfs protocol, and finally to be as serious as the host kernel "
2063 "exploit it would need to escalate its privileges to root.  This multi-step "
2064 "escalation, performed by a static piece of data, is thought to be extremely "
2065 "hard to do, although we never say 'never' about security issues."
2066 msgstr ""
2067
2068 # type: textblock
2069 #: ../src/guestfs.pod:1077
2070 msgid ""
2071 "In any case callers can reduce the attack surface by forcing the filesystem "
2072 "type when mounting (use L</guestfs_mount_vfs>)."
2073 msgstr ""
2074
2075 # type: =head2
2076 #: ../src/guestfs.pod:1080
2077 msgid "PROTOCOL SECURITY"
2078 msgstr ""
2079
2080 # type: textblock
2081 #: ../src/guestfs.pod:1082
2082 msgid ""
2083 "The protocol is designed to be secure, being based on RFC 4506 (XDR)  with a "
2084 "defined upper message size.  However a program that uses libguestfs must "
2085 "also take care - for example you can write a program that downloads a binary "
2086 "from a disk image and executes it locally, and no amount of protocol "
2087 "security will save you from the consequences."
2088 msgstr ""
2089
2090 # type: =head2
2091 #: ../src/guestfs.pod:1088
2092 msgid "INSPECTION SECURITY"
2093 msgstr ""
2094
2095 # type: textblock
2096 #: ../src/guestfs.pod:1090
2097 msgid ""
2098 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
2099 "directly from the guest, and these could contain any 8 bit data.  Callers "
2100 "should be careful to escape these before printing them to a structured file "
2101 "(for example, use HTML escaping if creating a web page)."
2102 msgstr ""
2103
2104 # type: textblock
2105 #: ../src/guestfs.pod:1096
2106 msgid ""
2107 "The inspection API parses guest configuration using two external libraries: "
2108 "Augeas (Linux configuration) and hivex (Windows Registry).  Both are "
2109 "designed to be robust in the face of malicious data, although denial of "
2110 "service attacks are still possible, for example with oversized configuration "
2111 "files."
2112 msgstr ""
2113
2114 # type: =head2
2115 #: ../src/guestfs.pod:1102
2116 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
2117 msgstr ""
2118
2119 # type: textblock
2120 #: ../src/guestfs.pod:1104
2121 msgid ""
2122 "Be very cautious about running commands from the guest.  By running a "
2123 "command in the guest, you are giving CPU time to a binary that you do not "
2124 "control, under the same user account as the library, albeit wrapped in qemu "
2125 "virtualization.  More information and alternatives can be found in the "
2126 "section L</RUNNING COMMANDS>."
2127 msgstr ""
2128
2129 # type: =head2
2130 #: ../src/guestfs.pod:1110
2131 msgid "CVE-2010-3851"
2132 msgstr ""
2133
2134 # type: textblock
2135 #: ../src/guestfs.pod:1112
2136 msgid "https://bugzilla.redhat.com/642934"
2137 msgstr ""
2138
2139 # type: textblock
2140 #: ../src/guestfs.pod:1114
2141 msgid ""
2142 "This security bug concerns the automatic disk format detection that qemu "
2143 "does on disk images."
2144 msgstr ""
2145
2146 # type: textblock
2147 #: ../src/guestfs.pod:1117
2148 msgid ""
2149 "A raw disk image is just the raw bytes, there is no header.  Other disk "
2150 "images like qcow2 contain a special header.  Qemu deals with this by looking "
2151 "for one of the known headers, and if none is found then assuming the disk "
2152 "image must be raw."
2153 msgstr ""
2154
2155 # type: textblock
2156 #: ../src/guestfs.pod:1122
2157 msgid ""
2158 "This allows a guest which has been given a raw disk image to write some "
2159 "other header.  At next boot (or when the disk image is accessed by "
2160 "libguestfs) qemu would do autodetection and think the disk image format was, "
2161 "say, qcow2 based on the header written by the guest."
2162 msgstr ""
2163
2164 # type: textblock
2165 #: ../src/guestfs.pod:1127
2166 msgid ""
2167 "This in itself would not be a problem, but qcow2 offers many features, one "
2168 "of which is to allow a disk image to refer to another image (called the "
2169 "\"backing disk\").  It does this by placing the path to the backing disk "
2170 "into the qcow2 header.  This path is not validated and could point to any "
2171 "host file (eg. \"/etc/passwd\").  The backing disk is then exposed through "
2172 "\"holes\" in the qcow2 disk image, which of course is completely under the "
2173 "control of the attacker."
2174 msgstr ""
2175
2176 # type: textblock
2177 #: ../src/guestfs.pod:1135
2178 msgid "In libguestfs this is rather hard to exploit except under two circumstances:"
2179 msgstr ""
2180
2181 # type: textblock
2182 #: ../src/guestfs.pod:1142
2183 msgid "You have enabled the network or have opened the disk in write mode."
2184 msgstr ""
2185
2186 # type: textblock
2187 #: ../src/guestfs.pod:1146
2188 msgid ""
2189 "You are also running untrusted code from the guest (see L</RUNNING "
2190 "COMMANDS>)."
2191 msgstr ""
2192
2193 # type: textblock
2194 #: ../src/guestfs.pod:1151
2195 msgid ""
2196 "The way to avoid this is to specify the expected disk format when adding "
2197 "disks (the optional C<format> option to L</guestfs_add_drive_opts>).  You "
2198 "should always do this if the disk is raw format, and it's a good idea for "
2199 "other cases too."
2200 msgstr ""
2201
2202 # type: textblock
2203 #: ../src/guestfs.pod:1156
2204 msgid ""
2205 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
2206 "format is fetched from libvirt and passed through."
2207 msgstr ""
2208
2209 # type: textblock
2210 #: ../src/guestfs.pod:1159
2211 msgid ""
2212 "For libguestfs tools, use the I<--format> command line parameter as "
2213 "appropriate."
2214 msgstr ""
2215
2216 # type: =head1
2217 #: ../src/guestfs.pod:1162
2218 msgid "CONNECTION MANAGEMENT"
2219 msgstr ""
2220
2221 # type: =head2
2222 #: ../src/guestfs.pod:1164
2223 msgid "guestfs_h *"
2224 msgstr ""
2225
2226 # type: textblock
2227 #: ../src/guestfs.pod:1166
2228 msgid ""
2229 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
2230 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
2231 "handle and release all resources used."
2232 msgstr ""
2233
2234 # type: textblock
2235 #: ../src/guestfs.pod:1170
2236 msgid ""
2237 "For information on using multiple handles and threads, see the section "
2238 "L</MULTIPLE HANDLES AND MULTIPLE THREADS> below."
2239 msgstr ""
2240
2241 # type: =head2
2242 #: ../src/guestfs.pod:1173
2243 msgid "guestfs_create"
2244 msgstr ""
2245
2246 # type: verbatim
2247 #: ../src/guestfs.pod:1175
2248 #, no-wrap
2249 msgid ""
2250 " guestfs_h *guestfs_create (void);\n"
2251 "\n"
2252 msgstr ""
2253
2254 # type: textblock
2255 #: ../src/guestfs.pod:1177
2256 msgid "Create a connection handle."
2257 msgstr ""
2258
2259 # type: textblock
2260 #: ../src/guestfs.pod:1179
2261 msgid ""
2262 "You have to call L</guestfs_add_drive_opts> (or one of the equivalent calls) "
2263 "on the handle at least once."
2264 msgstr ""
2265
2266 # type: textblock
2267 #: ../src/guestfs.pod:1182
2268 msgid ""
2269 "This function returns a non-NULL pointer to a handle on success or NULL on "
2270 "error."
2271 msgstr ""
2272
2273 # type: textblock
2274 #: ../src/guestfs.pod:1185
2275 msgid "After configuring the handle, you have to call L</guestfs_launch>."
2276 msgstr ""
2277
2278 # type: textblock
2279 #: ../src/guestfs.pod:1187
2280 msgid ""
2281 "You may also want to configure error handling for the handle.  See L</ERROR "
2282 "HANDLING> section below."
2283 msgstr ""
2284
2285 # type: =head2
2286 #: ../src/guestfs.pod:1190
2287 msgid "guestfs_close"
2288 msgstr ""
2289
2290 # type: verbatim
2291 #: ../src/guestfs.pod:1192
2292 #, no-wrap
2293 msgid ""
2294 " void guestfs_close (guestfs_h *g);\n"
2295 "\n"
2296 msgstr ""
2297
2298 # type: textblock
2299 #: ../src/guestfs.pod:1194
2300 msgid "This closes the connection handle and frees up all resources used."
2301 msgstr ""
2302
2303 # type: =head1
2304 #: ../src/guestfs.pod:1196
2305 msgid "ERROR HANDLING"
2306 msgstr ""
2307
2308 # type: textblock
2309 #: ../src/guestfs.pod:1198
2310 msgid ""
2311 "API functions can return errors.  For example, almost all functions that "
2312 "return C<int> will return C<-1> to indicate an error."
2313 msgstr ""
2314
2315 # type: textblock
2316 #: ../src/guestfs.pod:1201
2317 msgid ""
2318 "Additional information is available for errors: an error message string and "
2319 "optionally an error number (errno) if the thing that failed was a system "
2320 "call."
2321 msgstr ""
2322
2323 # type: textblock
2324 #: ../src/guestfs.pod:1205
2325 msgid ""
2326 "You can get at the additional information about the last error on the handle "
2327 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
2328 "up an error handler with L</guestfs_set_error_handler>."
2329 msgstr ""
2330
2331 # type: textblock
2332 #: ../src/guestfs.pod:1210
2333 msgid ""
2334 "When the handle is created, a default error handler is installed which "
2335 "prints the error message string to C<stderr>.  For small short-running "
2336 "command line programs it is sufficient to do:"
2337 msgstr ""
2338
2339 # type: verbatim
2340 #: ../src/guestfs.pod:1214
2341 #, no-wrap
2342 msgid ""
2343 " if (guestfs_launch (g) == -1)\n"
2344 "   exit (EXIT_FAILURE);\n"
2345 "\n"
2346 msgstr ""
2347
2348 # type: textblock
2349 #: ../src/guestfs.pod:1217
2350 msgid ""
2351 "since the default error handler will ensure that an error message has been "
2352 "printed to C<stderr> before the program exits."
2353 msgstr ""
2354
2355 # type: textblock
2356 #: ../src/guestfs.pod:1220
2357 msgid ""
2358 "For other programs the caller will almost certainly want to install an "
2359 "alternate error handler or do error handling in-line like this:"
2360 msgstr ""
2361
2362 # type: verbatim
2363 #: ../src/guestfs.pod:1223
2364 #, no-wrap
2365 msgid ""
2366 " g = guestfs_create ();\n"
2367 " \n"
2368 msgstr ""
2369
2370 # type: verbatim
2371 #: ../src/guestfs.pod:1225
2372 #, no-wrap
2373 msgid ""
2374 " /* This disables the default behaviour of printing errors\n"
2375 "    on stderr. */\n"
2376 " guestfs_set_error_handler (g, NULL, NULL);\n"
2377 " \n"
2378 msgstr ""
2379
2380 # type: verbatim
2381 #: ../src/guestfs.pod:1229
2382 #, no-wrap
2383 msgid ""
2384 " if (guestfs_launch (g) == -1) {\n"
2385 "   /* Examine the error message and print it etc. */\n"
2386 "   char *msg = guestfs_last_error (g);\n"
2387 "   int errnum = guestfs_last_errno (g);\n"
2388 "   fprintf (stderr, \"%s\\n\", msg);\n"
2389 "   /* ... */\n"
2390 "  }\n"
2391 "\n"
2392 msgstr ""
2393
2394 # type: textblock
2395 #: ../src/guestfs.pod:1237
2396 msgid ""
2397 "Out of memory errors are handled differently.  The default action is to call "
2398 "L<abort(3)>.  If this is undesirable, then you can set a handler using "
2399 "L</guestfs_set_out_of_memory_handler>."
2400 msgstr ""
2401
2402 # type: textblock
2403 #: ../src/guestfs.pod:1241
2404 msgid ""
2405 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
2406 "because there is no handle if this happens there is no way to get additional "
2407 "error information.  However L</guestfs_create> is supposed to be a "
2408 "lightweight operation which can only fail because of insufficient memory (it "
2409 "returns NULL in this case)."
2410 msgstr ""
2411
2412 # type: =head2
2413 #: ../src/guestfs.pod:1247
2414 msgid "guestfs_last_error"
2415 msgstr ""
2416
2417 # type: verbatim
2418 #: ../src/guestfs.pod:1249
2419 #, no-wrap
2420 msgid ""
2421 " const char *guestfs_last_error (guestfs_h *g);\n"
2422 "\n"
2423 msgstr ""
2424
2425 # type: textblock
2426 #: ../src/guestfs.pod:1251
2427 msgid ""
2428 "This returns the last error message that happened on C<g>.  If there has not "
2429 "been an error since the handle was created, then this returns C<NULL>."
2430 msgstr ""
2431
2432 # type: textblock
2433 #: ../src/guestfs.pod:1255
2434 msgid ""
2435 "The lifetime of the returned string is until the next error occurs, or "
2436 "L</guestfs_close> is called."
2437 msgstr ""
2438
2439 # type: =head2
2440 #: ../src/guestfs.pod:1258
2441 msgid "guestfs_last_errno"
2442 msgstr ""
2443
2444 # type: verbatim
2445 #: ../src/guestfs.pod:1260
2446 #, no-wrap
2447 msgid ""
2448 " int guestfs_last_errno (guestfs_h *g);\n"
2449 "\n"
2450 msgstr ""
2451
2452 # type: textblock
2453 #: ../src/guestfs.pod:1262
2454 msgid "This returns the last error number (errno) that happened on C<g>."
2455 msgstr ""
2456
2457 # type: textblock
2458 #: ../src/guestfs.pod:1264
2459 msgid "If successful, an errno integer not equal to zero is returned."
2460 msgstr ""
2461
2462 # type: textblock
2463 #: ../src/guestfs.pod:1266
2464 msgid "If no error, this returns 0.  This call can return 0 in three situations:"
2465 msgstr ""
2466
2467 # type: textblock
2468 #: ../src/guestfs.pod:1273
2469 msgid "There has not been any error on the handle."
2470 msgstr ""
2471
2472 # type: textblock
2473 #: ../src/guestfs.pod:1277
2474 msgid ""
2475 "There has been an error but the errno was meaningless.  This corresponds to "
2476 "the case where the error did not come from a failed system call, but for "
2477 "some other reason."
2478 msgstr ""
2479
2480 # type: textblock
2481 #: ../src/guestfs.pod:1283
2482 msgid ""
2483 "There was an error from a failed system call, but for some reason the errno "
2484 "was not captured and returned.  This usually indicates a bug in libguestfs."
2485 msgstr ""
2486
2487 # type: textblock
2488 #: ../src/guestfs.pod:1289
2489 msgid ""
2490 "Libguestfs tries to convert the errno from inside the applicance into a "
2491 "corresponding errno for the caller (not entirely trivial: the appliance "
2492 "might be running a completely different operating system from the library "
2493 "and error numbers are not standardized across Un*xen).  If this could not be "
2494 "done, then the error is translated to C<EINVAL>.  In practice this should "
2495 "only happen in very rare circumstances."
2496 msgstr ""
2497
2498 # type: =head2
2499 #: ../src/guestfs.pod:1297
2500 msgid "guestfs_set_error_handler"
2501 msgstr ""
2502
2503 # type: verbatim
2504 #: ../src/guestfs.pod:1299
2505 #, no-wrap
2506 msgid ""
2507 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
2508 "                                           void *opaque,\n"
2509 "                                           const char *msg);\n"
2510 " void guestfs_set_error_handler (guestfs_h *g,\n"
2511 "                                 guestfs_error_handler_cb cb,\n"
2512 "                                 void *opaque);\n"
2513 "\n"
2514 msgstr ""
2515
2516 # type: textblock
2517 #: ../src/guestfs.pod:1306
2518 msgid ""
2519 "The callback C<cb> will be called if there is an error.  The parameters "
2520 "passed to the callback are an opaque data pointer and the error message "
2521 "string."
2522 msgstr ""
2523
2524 # type: textblock
2525 #: ../src/guestfs.pod:1310
2526 msgid ""
2527 "C<errno> is not passed to the callback.  To get that the callback must call "
2528 "L</guestfs_last_errno>."
2529 msgstr ""
2530
2531 # type: textblock
2532 #: ../src/guestfs.pod:1313
2533 msgid ""
2534 "Note that the message string C<msg> is freed as soon as the callback "
2535 "function returns, so if you want to stash it somewhere you must make your "
2536 "own copy."
2537 msgstr ""
2538
2539 # type: textblock
2540 #: ../src/guestfs.pod:1317
2541 msgid "The default handler prints messages on C<stderr>."
2542 msgstr ""
2543
2544 # type: textblock
2545 #: ../src/guestfs.pod:1319
2546 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
2547 msgstr ""
2548
2549 # type: =head2
2550 #: ../src/guestfs.pod:1321
2551 msgid "guestfs_get_error_handler"
2552 msgstr ""
2553
2554 # type: verbatim
2555 #: ../src/guestfs.pod:1323
2556 #, no-wrap
2557 msgid ""
2558 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
2559 "                                                     void **opaque_rtn);\n"
2560 "\n"
2561 msgstr ""
2562
2563 # type: textblock
2564 #: ../src/guestfs.pod:1326
2565 msgid "Returns the current error handler callback."
2566 msgstr ""
2567
2568 # type: =head2
2569 #: ../src/guestfs.pod:1328
2570 msgid "guestfs_set_out_of_memory_handler"
2571 msgstr ""
2572
2573 # type: verbatim
2574 #: ../src/guestfs.pod:1330
2575 #, no-wrap
2576 msgid ""
2577 " typedef void (*guestfs_abort_cb) (void);\n"
2578 " int guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
2579 "                                        guestfs_abort_cb);\n"
2580 "\n"
2581 msgstr ""
2582
2583 # type: textblock
2584 #: ../src/guestfs.pod:1334
2585 msgid ""
2586 "The callback C<cb> will be called if there is an out of memory situation.  "
2587 "I<Note this callback must not return>."
2588 msgstr ""
2589
2590 # type: textblock
2591 #: ../src/guestfs.pod:1337
2592 msgid "The default is to call L<abort(3)>."
2593 msgstr ""
2594
2595 # type: textblock
2596 #: ../src/guestfs.pod:1339
2597 msgid "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
2598 msgstr ""
2599
2600 # type: =head2
2601 #: ../src/guestfs.pod:1342
2602 msgid "guestfs_get_out_of_memory_handler"
2603 msgstr ""
2604
2605 # type: verbatim
2606 #: ../src/guestfs.pod:1344
2607 #, no-wrap
2608 msgid ""
2609 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
2610 "\n"
2611 msgstr ""
2612
2613 # type: textblock
2614 #: ../src/guestfs.pod:1346
2615 msgid "This returns the current out of memory handler."
2616 msgstr ""
2617
2618 # type: =head1
2619 #: ../src/guestfs.pod:1348
2620 msgid "API CALLS"
2621 msgstr ""
2622
2623 # type: textblock
2624 #: ../src/guestfs.pod:1350 ../fish/guestfish.pod:907
2625 msgid "@ACTIONS@"
2626 msgstr ""
2627
2628 # type: =head1
2629 #: ../src/guestfs.pod:1352
2630 msgid "STRUCTURES"
2631 msgstr ""
2632
2633 # type: textblock
2634 #: ../src/guestfs.pod:1354
2635 msgid "@STRUCTS@"
2636 msgstr ""
2637
2638 # type: =head1
2639 #: ../src/guestfs.pod:1356
2640 msgid "AVAILABILITY"
2641 msgstr ""
2642
2643 # type: =head2
2644 #: ../src/guestfs.pod:1358
2645 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
2646 msgstr ""
2647
2648 # type: textblock
2649 #: ../src/guestfs.pod:1360
2650 msgid ""
2651 "Using L</guestfs_available> you can test availability of the following "
2652 "groups of functions.  This test queries the appliance to see if the "
2653 "appliance you are currently using supports the functionality."
2654 msgstr ""
2655
2656 # type: textblock
2657 #: ../src/guestfs.pod:1365
2658 msgid "@AVAILABILITY@"
2659 msgstr ""
2660
2661 # type: =head2
2662 #: ../src/guestfs.pod:1367
2663 msgid "GUESTFISH supported COMMAND"
2664 msgstr ""
2665
2666 # type: textblock
2667 #: ../src/guestfs.pod:1369
2668 msgid ""
2669 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
2670 "prints out the available groups and whether they are supported by this build "
2671 "of libguestfs.  Note however that you have to do C<run> first."
2672 msgstr ""
2673
2674 # type: =head2
2675 #: ../src/guestfs.pod:1374
2676 msgid "SINGLE CALLS AT COMPILE TIME"
2677 msgstr ""
2678
2679 # type: textblock
2680 #: ../src/guestfs.pod:1376
2681 msgid ""
2682 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
2683 "function, such as:"
2684 msgstr ""
2685
2686 # type: verbatim
2687 #: ../src/guestfs.pod:1379
2688 #, no-wrap
2689 msgid ""
2690 " #define LIBGUESTFS_HAVE_DD 1\n"
2691 "\n"
2692 msgstr ""
2693
2694 # type: textblock
2695 #: ../src/guestfs.pod:1381
2696 msgid "if L</guestfs_dd> is available."
2697 msgstr ""
2698
2699 # type: textblock
2700 #: ../src/guestfs.pod:1383
2701 msgid ""
2702 "Before version 1.5.8, if you needed to test whether a single libguestfs "
2703 "function is available at compile time, we recommended using build tools such "
2704 "as autoconf or cmake.  For example in autotools you could use:"
2705 msgstr ""
2706
2707 # type: verbatim
2708 #: ../src/guestfs.pod:1388
2709 #, no-wrap
2710 msgid ""
2711 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
2712 " AC_CHECK_FUNCS([guestfs_dd])\n"
2713 "\n"
2714 msgstr ""
2715
2716 # type: textblock
2717 #: ../src/guestfs.pod:1391
2718 msgid ""
2719 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
2720 "in your program."
2721 msgstr ""
2722
2723 # type: =head2
2724 #: ../src/guestfs.pod:1394
2725 msgid "SINGLE CALLS AT RUN TIME"
2726 msgstr ""
2727
2728 # type: textblock
2729 #: ../src/guestfs.pod:1396
2730 msgid ""
2731 "Testing at compile time doesn't guarantee that a function really exists in "
2732 "the library.  The reason is that you might be dynamically linked against a "
2733 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
2734 "This situation unfortunately results in a segmentation fault, which is a "
2735 "shortcoming of the C dynamic linking system itself."
2736 msgstr ""
2737
2738 # type: textblock
2739 #: ../src/guestfs.pod:1403
2740 msgid ""
2741 "You can use L<dlopen(3)> to test if a function is available at run time, as "
2742 "in this example program (note that you still need the compile time check as "
2743 "well):"
2744 msgstr ""
2745
2746 # type: verbatim
2747 #: ../src/guestfs.pod:1407
2748 #, no-wrap
2749 msgid ""
2750 " #include <stdio.h>\n"
2751 " #include <stdlib.h>\n"
2752 " #include <unistd.h>\n"
2753 " #include <dlfcn.h>\n"
2754 " #include <guestfs.h>\n"
2755 " \n"
2756 msgstr ""
2757
2758 # type: verbatim
2759 #: ../src/guestfs.pod:1413
2760 #, no-wrap
2761 msgid ""
2762 " main ()\n"
2763 " {\n"
2764 " #ifdef LIBGUESTFS_HAVE_DD\n"
2765 "   void *dl;\n"
2766 "   int has_function;\n"
2767 " \n"
2768 msgstr ""
2769
2770 # type: verbatim
2771 #: ../src/guestfs.pod:1419
2772 #, no-wrap
2773 msgid ""
2774 "   /* Test if the function guestfs_dd is really available. */\n"
2775 "   dl = dlopen (NULL, RTLD_LAZY);\n"
2776 "   if (!dl) {\n"
2777 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
2778 "     exit (EXIT_FAILURE);\n"
2779 "   }\n"
2780 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
2781 "   dlclose (dl);\n"
2782 " \n"
2783 msgstr ""
2784
2785 # type: verbatim
2786 #: ../src/guestfs.pod:1428
2787 #, no-wrap
2788 msgid ""
2789 "   if (!has_function)\n"
2790 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
2791 "   else {\n"
2792 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
2793 "     /* Now it's safe to call\n"
2794 "     guestfs_dd (g, \"foo\", \"bar\");\n"
2795 "     */\n"
2796 "   }\n"
2797 " #else\n"
2798 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
2799 " #endif\n"
2800 "  }\n"
2801 "\n"
2802 msgstr ""
2803
2804 # type: textblock
2805 #: ../src/guestfs.pod:1441
2806 msgid ""
2807 "You may think the above is an awful lot of hassle, and it is.  There are "
2808 "other ways outside of the C linking system to ensure that this kind of "
2809 "incompatibility never arises, such as using package versioning:"
2810 msgstr ""
2811
2812 # type: verbatim
2813 #: ../src/guestfs.pod:1446
2814 #, no-wrap
2815 msgid ""
2816 " Requires: libguestfs >= 1.0.80\n"
2817 "\n"
2818 msgstr ""
2819
2820 # type: =head1
2821 #: ../src/guestfs.pod:1448
2822 msgid "CALLS WITH OPTIONAL ARGUMENTS"
2823 msgstr ""
2824
2825 # type: textblock
2826 #: ../src/guestfs.pod:1450
2827 msgid ""
2828 "A recent feature of the API is the introduction of calls which take optional "
2829 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
2830 "takes variable arguments (ie. C<...>), as in this example:"
2831 msgstr ""
2832
2833 # type: verbatim
2834 #: ../src/guestfs.pod:1455
2835 #, no-wrap
2836 msgid ""
2837 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
2838 "\n"
2839 msgstr ""
2840
2841 # type: textblock
2842 #: ../src/guestfs.pod:1457
2843 msgid ""
2844 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
2845 "call with no optional arguments specified:"
2846 msgstr ""
2847
2848 # type: verbatim
2849 #: ../src/guestfs.pod:1460
2850 #, no-wrap
2851 msgid ""
2852 " guestfs_add_drive_opts (g, filename, -1);\n"
2853 "\n"
2854 msgstr ""
2855
2856 # type: textblock
2857 #: ../src/guestfs.pod:1462
2858 msgid "With a single optional argument:"
2859 msgstr ""
2860
2861 # type: verbatim
2862 #: ../src/guestfs.pod:1464
2863 #, no-wrap
2864 msgid ""
2865 " guestfs_add_drive_opts (g, filename,\n"
2866 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
2867 "                         -1);\n"
2868 "\n"
2869 msgstr ""
2870
2871 # type: textblock
2872 #: ../src/guestfs.pod:1468
2873 msgid "With two:"
2874 msgstr ""
2875
2876 # type: verbatim
2877 #: ../src/guestfs.pod:1470
2878 #, no-wrap
2879 msgid ""
2880 " guestfs_add_drive_opts (g, filename,\n"
2881 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
2882 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
2883 "                         -1);\n"
2884 "\n"
2885 msgstr ""
2886
2887 # type: textblock
2888 #: ../src/guestfs.pod:1475
2889 msgid ""
2890 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
2891 "happen!"
2892 msgstr ""
2893
2894 # type: =head2
2895 #: ../src/guestfs.pod:1478
2896 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
2897 msgstr ""
2898
2899 # type: textblock
2900 #: ../src/guestfs.pod:1480
2901 msgid ""
2902 "The second variant has the same name with the suffix C<_va>, which works the "
2903 "same way but takes a C<va_list>.  See the C manual for details.  For the "
2904 "example function, this is declared:"
2905 msgstr ""
2906
2907 # type: verbatim
2908 #: ../src/guestfs.pod:1484
2909 #, no-wrap
2910 msgid ""
2911 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
2912 "                                va_list args);\n"
2913 "\n"
2914 msgstr ""
2915
2916 # type: =head2
2917 #: ../src/guestfs.pod:1487
2918 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
2919 msgstr ""
2920
2921 # type: textblock
2922 #: ../src/guestfs.pod:1489
2923 msgid ""
2924 "The third variant is useful where you need to construct these calls.  You "
2925 "pass in a structure where you fill in the optional fields.  The structure "
2926 "has a bitmask as the first element which you must set to indicate which "
2927 "fields you have filled in.  For our example function the structure and call "
2928 "are declared:"
2929 msgstr ""
2930
2931 # type: verbatim
2932 #: ../src/guestfs.pod:1495
2933 #, no-wrap
2934 msgid ""
2935 " struct guestfs_add_drive_opts_argv {\n"
2936 "   uint64_t bitmask;\n"
2937 "   int readonly;\n"
2938 "   const char *format;\n"
2939 "   /* ... */\n"
2940 " };\n"
2941 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
2942 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
2943 "\n"
2944 msgstr ""
2945
2946 # type: textblock
2947 #: ../src/guestfs.pod:1504
2948 msgid "You could call it like this:"
2949 msgstr ""
2950
2951 # type: verbatim
2952 #: ../src/guestfs.pod:1506
2953 #, no-wrap
2954 msgid ""
2955 " struct guestfs_add_drive_opts_argv optargs = {\n"
2956 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
2957 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
2958 "   .readonly = 1,\n"
2959 "   .format = \"qcow2\"\n"
2960 " };\n"
2961 " \n"
2962 msgstr ""
2963
2964 # type: verbatim
2965 #: ../src/guestfs.pod:1513
2966 #, no-wrap
2967 msgid ""
2968 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
2969 "\n"
2970 msgstr ""
2971
2972 # type: textblock
2973 #: ../src/guestfs.pod:1515 ../src/guestfs-actions.pod:11 ../src/guestfs-actions.pod:1842 ../fish/guestfish-actions.pod:9 ../fish/guestfish-actions.pod:1255
2974 msgid "Notes:"
2975 msgstr ""
2976
2977 # type: textblock
2978 #: ../src/guestfs.pod:1521
2979 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
2980 msgstr ""
2981
2982 # type: textblock
2983 #: ../src/guestfs.pod:1526
2984 msgid "You do not need to fill in all fields of the structure."
2985 msgstr ""
2986
2987 # type: textblock
2988 #: ../src/guestfs.pod:1530
2989 msgid ""
2990 "There must be a one-to-one correspondence between fields of the structure "
2991 "that are filled in, and bits set in the bitmask."
2992 msgstr ""
2993
2994 # type: =head2
2995 #: ../src/guestfs.pod:1535
2996 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
2997 msgstr ""
2998
2999 # type: textblock
3000 #: ../src/guestfs.pod:1537
3001 msgid ""
3002 "In other languages, optional arguments are expressed in the way that is "
3003 "natural for that language.  We refer you to the language-specific "
3004 "documentation for more details on that."
3005 msgstr ""
3006
3007 # type: textblock
3008 #: ../src/guestfs.pod:1541
3009 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
3010 msgstr ""
3011
3012 # type: =head2
3013 #: ../src/guestfs.pod:1543
3014 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
3015 msgstr ""
3016
3017 # type: textblock
3018 #: ../src/guestfs.pod:1545
3019 msgid ""
3020 "The child process generates events in some situations.  Current events "
3021 "include: receiving a log message, the child process exits."
3022 msgstr ""
3023
3024 # type: textblock
3025 #: ../src/guestfs.pod:1548
3026 msgid ""
3027 "Use the C<guestfs_set_*_callback> functions to set a callback for different "
3028 "types of events."
3029 msgstr ""
3030
3031 # type: textblock
3032 #: ../src/guestfs.pod:1551
3033 msgid ""
3034 "Only I<one callback of each type> can be registered for each handle.  "
3035 "Calling C<guestfs_set_*_callback> again overwrites the previous callback of "
3036 "that type.  Cancel all callbacks of this type by calling this function with "
3037 "C<cb> set to C<NULL>."
3038 msgstr ""
3039
3040 # type: =head2
3041 #: ../src/guestfs.pod:1556
3042 msgid "guestfs_set_log_message_callback"
3043 msgstr ""
3044
3045 # type: verbatim
3046 #: ../src/guestfs.pod:1558
3047 #, no-wrap
3048 msgid ""
3049 " typedef void (*guestfs_log_message_cb) (guestfs_h *g, void *opaque,\n"
3050 "                                         char *buf, int len);\n"
3051 " void guestfs_set_log_message_callback (guestfs_h *g,\n"
3052 "                                        guestfs_log_message_cb cb,\n"
3053 "                                        void *opaque);\n"
3054 "\n"
3055 msgstr ""
3056
3057 # type: textblock
3058 #: ../src/guestfs.pod:1564
3059 msgid ""
3060 "The callback function C<cb> will be called whenever qemu or the guest writes "
3061 "anything to the console."
3062 msgstr ""
3063
3064 # type: textblock
3065 #: ../src/guestfs.pod:1567
3066 msgid "Use this function to capture kernel messages and similar."
3067 msgstr ""
3068
3069 # type: textblock
3070 #: ../src/guestfs.pod:1569
3071 msgid ""
3072 "Normally there is no log message handler, and log messages are just "
3073 "discarded."
3074 msgstr ""
3075
3076 # type: =head2
3077 #: ../src/guestfs.pod:1572
3078 msgid "guestfs_set_subprocess_quit_callback"
3079 msgstr ""
3080
3081 # type: verbatim
3082 #: ../src/guestfs.pod:1574
3083 #, no-wrap
3084 msgid ""
3085 " typedef void (*guestfs_subprocess_quit_cb) (guestfs_h *g, void *opaque);\n"
3086 " void guestfs_set_subprocess_quit_callback (guestfs_h *g,\n"
3087 "                                            guestfs_subprocess_quit_cb cb,\n"
3088 "                                            void *opaque);\n"
3089 "\n"
3090 msgstr ""
3091
3092 # type: textblock
3093 #: ../src/guestfs.pod:1579
3094 msgid ""
3095 "The callback function C<cb> will be called when the child process quits, "
3096 "either asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
3097 "corresponds to a transition from any state to the CONFIG state)."
3098 msgstr ""
3099
3100 # type: =head2
3101 #: ../src/guestfs.pod:1584
3102 msgid "guestfs_set_launch_done_callback"
3103 msgstr ""
3104
3105 # type: verbatim
3106 #: ../src/guestfs.pod:1586
3107 #, no-wrap
3108 msgid ""
3109 " typedef void (*guestfs_launch_done_cb) (guestfs_h *g, void *opaque);\n"
3110 " void guestfs_set_launch_done_callback (guestfs_h *g,\n"
3111 "                                        guestfs_launch_done_cb cb,\n"
3112 "                                        void *opaque);\n"
3113 "\n"
3114 msgstr ""
3115
3116 # type: textblock
3117 #: ../src/guestfs.pod:1591
3118 msgid ""
3119 "The callback function C<cb> will be called when the child process becomes "
3120 "ready first time after it has been launched.  (This corresponds to a "
3121 "transition from LAUNCHING to the READY state)."
3122 msgstr ""
3123
3124 # type: =head2
3125 #: ../src/guestfs.pod:1595
3126 msgid "guestfs_set_close_callback"
3127 msgstr ""
3128
3129 # type: verbatim
3130 #: ../src/guestfs.pod:1597
3131 #, no-wrap
3132 msgid ""
3133 " typedef void (*guestfs_close_cb) (guestfs_h *g, void *opaque);\n"
3134 " void guestfs_set_close_callback (guestfs_h *g,\n"
3135 "                                  guestfs_close_cb cb,\n"
3136 "                                  void *opaque);\n"
3137 "\n"
3138 msgstr ""
3139
3140 # type: textblock
3141 #: ../src/guestfs.pod:1602
3142 msgid ""
3143 "The callback function C<cb> will be called while the handle is being closed "
3144 "(synchronously from L</guestfs_close>)."
3145 msgstr ""
3146
3147 # type: textblock
3148 #: ../src/guestfs.pod:1605
3149 msgid ""
3150 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
3151 "handles that are open when the program exits.  This means that this callback "
3152 "might be called indirectly from L<exit(3)>, which can cause unexpected "
3153 "problems in higher-level languages (eg. if your HLL interpreter has already "
3154 "been cleaned up by the time this is called, and if your callback then jumps "
3155 "into some HLL function)."
3156 msgstr ""
3157
3158 # type: =head2
3159 #: ../src/guestfs.pod:1613
3160 msgid "guestfs_set_progress_callback"
3161 msgstr ""
3162
3163 # type: verbatim
3164 #: ../src/guestfs.pod:1615
3165 #, no-wrap
3166 msgid ""
3167 " typedef void (*guestfs_progress_cb) (guestfs_h *g, void *opaque,\n"
3168 "                                      int proc_nr, int serial,\n"
3169 "                                      uint64_t position, uint64_t total);\n"
3170 " void guestfs_set_progress_callback (guestfs_h *g,\n"
3171 "                                     guestfs_progress_cb cb,\n"
3172 "                                     void *opaque);\n"
3173 "\n"
3174 msgstr ""
3175
3176 # type: textblock
3177 #: ../src/guestfs.pod:1622
3178 msgid ""
3179 "Some long-running operations can generate progress messages.  If this "
3180 "callback is registered, then it will be called each time a progress message "
3181 "is generated (usually two seconds after the operation started, and three "
3182 "times per second thereafter until it completes, although the frequency may "
3183 "change in future versions)."
3184 msgstr ""
3185
3186 # type: textblock
3187 #: ../src/guestfs.pod:1628
3188 msgid ""
3189 "The callback receives two numbers: C<position> and C<total>.  The units of "
3190 "C<total> are not defined, although for some operations C<total> may relate "
3191 "in some way to the amount of data to be transferred (eg. in bytes or "
3192 "megabytes), and C<position> may be the portion which has been transferred."
3193 msgstr ""
3194
3195 # type: textblock
3196 #: ../src/guestfs.pod:1634
3197 msgid "The only defined and stable parts of the API are:"
3198 msgstr ""
3199
3200 # type: textblock
3201 #: ../src/guestfs.pod:1640
3202 msgid ""
3203 "The callback can display to the user some type of progress bar or indicator "
3204 "which shows the ratio of C<position>:C<total>."
3205 msgstr ""
3206
3207 # type: textblock
3208 #: ../src/guestfs.pod:1645
3209 msgid "0 E<lt>= C<position> E<lt>= C<total>"
3210 msgstr ""
3211
3212 # type: textblock
3213 #: ../src/guestfs.pod:1649
3214 msgid ""
3215 "If any progress notification is sent during a call, then a final progress "
3216 "notification is always sent when C<position> = C<total>."
3217 msgstr ""
3218
3219 # type: textblock
3220 #: ../src/guestfs.pod:1652
3221 msgid ""
3222 "This is to simplify caller code, so callers can easily set the progress "
3223 "indicator to \"100%\" at the end of the operation, without requiring special "
3224 "code to detect this case."
3225 msgstr ""
3226
3227 # type: textblock
3228 #: ../src/guestfs.pod:1658
3229 msgid ""
3230 "The callback also receives the procedure number and serial number of the "
3231 "call.  These are only useful for debugging protocol issues, and the callback "
3232 "can normally ignore them.  The callback may want to print these numbers in "
3233 "error messages or debugging messages."
3234 msgstr ""
3235
3236 # type: =head1
3237 #: ../src/guestfs.pod:1663
3238 msgid "PRIVATE DATA AREA"
3239 msgstr ""
3240
3241 # type: textblock
3242 #: ../src/guestfs.pod:1665
3243 msgid ""
3244 "You can attach named pieces of private data to the libguestfs handle, and "
3245 "fetch them by name for the lifetime of the handle.  This is called the "
3246 "private data area and is only available from the C API."
3247 msgstr ""
3248
3249 # type: textblock
3250 #: ../src/guestfs.pod:1669
3251 msgid "To attach a named piece of data, use the following call:"
3252 msgstr ""
3253
3254 # type: verbatim
3255 #: ../src/guestfs.pod:1671
3256 #, no-wrap
3257 msgid ""
3258 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
3259 "\n"
3260 msgstr ""
3261
3262 # type: textblock
3263 #: ../src/guestfs.pod:1673
3264 msgid ""
3265 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
3266 "pointer (which can be C<NULL>).  Any previous item with the same name is "
3267 "overwritten."
3268 msgstr ""
3269
3270 # type: textblock
3271 #: ../src/guestfs.pod:1677
3272 msgid ""
3273 "You can use any C<key> you want, but names beginning with an underscore "
3274 "character are reserved for internal libguestfs purposes (for implementing "
3275 "language bindings).  It is recommended to prefix the name with some unique "
3276 "string to avoid collisions with other users."
3277 msgstr ""
3278
3279 # type: textblock
3280 #: ../src/guestfs.pod:1682
3281 msgid "To retrieve the pointer, use:"
3282 msgstr ""
3283
3284 # type: verbatim
3285 #: ../src/guestfs.pod:1684
3286 #, no-wrap
3287 msgid ""
3288 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
3289 "\n"
3290 msgstr ""
3291
3292 # type: textblock
3293 #: ../src/guestfs.pod:1686
3294 msgid ""
3295 "This function returns C<NULL> if either no data is found associated with "
3296 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
3297 "C<NULL>."
3298 msgstr ""
3299
3300 # type: textblock
3301 #: ../src/guestfs.pod:1690
3302 msgid ""
3303 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
3304 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
3305 "all.  In particular, libguestfs does I<not> try to free the data when the "
3306 "handle is closed.  If the data must be freed, then the caller must either "
3307 "free it before calling L</guestfs_close> or must set up a close callback to "
3308 "do it (see L</guestfs_set_close_callback>, and note that only one callback "
3309 "can be registered for a handle)."
3310 msgstr ""
3311
3312 # type: textblock
3313 #: ../src/guestfs.pod:1698
3314 msgid ""
3315 "The private data area is implemented using a hash table, and should be "
3316 "reasonably efficient for moderate numbers of keys."
3317 msgstr ""
3318
3319 # type: =end
3320 #: ../src/guestfs.pod:1701 ../src/guestfs.pod:1706
3321 msgid "html"
3322 msgstr ""
3323
3324 # type: textblock
3325 #: ../src/guestfs.pod:1703
3326 msgid ""
3327 "<!-- old anchor for the next section --> <a "
3328 "name=\"state_machine_and_low_level_event_api\"/>"
3329 msgstr ""
3330
3331 # type: =head1
3332 #: ../src/guestfs.pod:1708
3333 msgid "ARCHITECTURE"
3334 msgstr ""
3335
3336 # type: textblock
3337 #: ../src/guestfs.pod:1710
3338 msgid ""
3339 "Internally, libguestfs is implemented by running an appliance (a special "
3340 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
3341 "process of the main program."
3342 msgstr ""
3343
3344 # type: verbatim
3345 #: ../src/guestfs.pod:1714
3346 #, no-wrap
3347 msgid ""
3348 "  ___________________\n"
3349 " /                   \\\n"
3350 " | main program      |\n"
3351 " |                   |\n"
3352 " |                   |           child process / appliance\n"
3353 " |                   |           __________________________\n"
3354 " |                   |          / qemu                     \\\n"
3355 " +-------------------+   RPC    |      +-----------------+ |\n"
3356 " | libguestfs     <--------------------> guestfsd        | |\n"
3357 " |                   |          |      +-----------------+ |\n"
3358 " \\___________________/          |      | Linux kernel    | |\n"
3359 "                                |      +--^--------------+ |\n"
3360 "                                \\_________|________________/\n"
3361 "                                          |\n"
3362 "                                   _______v______\n"
3363 "                                  /              \\\n"
3364 "                                  | Device or    |\n"
3365 "                                  | disk image   |\n"
3366 "                                  \\______________/\n"
3367 "\n"
3368 msgstr ""
3369
3370 # type: textblock
3371 #: ../src/guestfs.pod:1734
3372 msgid ""
3373 "The library, linked to the main program, creates the child process and hence "
3374 "the appliance in the L</guestfs_launch> function."
3375 msgstr ""
3376
3377 # type: textblock
3378 #: ../src/guestfs.pod:1737
3379 msgid ""
3380 "Inside the appliance is a Linux kernel and a complete stack of userspace "
3381 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
3382 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
3383 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
3384 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
3385 "attached to the qemu process which translates device access by the "
3386 "appliance's Linux kernel into accesses to the image."
3387 msgstr ""
3388
3389 # type: textblock
3390 #: ../src/guestfs.pod:1746
3391 msgid ""
3392 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
3393 "Although the disk image you are attached to might also be used by some "
3394 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
3395 "care if both libguestfs's qemu process and your virtual machine are trying "
3396 "to update the disk image at the same time, since these usually results in "
3397 "massive disk corruption)."
3398 msgstr ""
3399
3400 # type: =head1
3401 #: ../src/guestfs.pod:1753
3402 msgid "STATE MACHINE"
3403 msgstr ""
3404
3405 # type: textblock
3406 #: ../src/guestfs.pod:1755
3407 msgid "libguestfs uses a state machine to model the child process:"
3408 msgstr ""
3409
3410 # type: verbatim
3411 #: ../src/guestfs.pod:1757
3412 #, no-wrap
3413 msgid ""
3414 "                         |\n"
3415 "                    guestfs_create\n"
3416 "                         |\n"
3417 "                         |\n"
3418 "                     ____V_____\n"
3419 "                    /          \\\n"
3420 "                    |  CONFIG  |\n"
3421 "                    \\__________/\n"
3422 "                     ^ ^   ^  \\\n"
3423 "                    /  |    \\  \\ guestfs_launch\n"
3424 "                   /   |    _\\__V______\n"
3425 "                  /    |   /           \\\n"
3426 "                 /     |   | LAUNCHING |\n"
3427 "                /      |   \\___________/\n"
3428 "               /       |       /\n"
3429 "              /        |  guestfs_launch\n"
3430 "             /         |     /\n"
3431 "    ______  /        __|____V\n"
3432 "   /      \\ ------> /        \\\n"
3433 "   | BUSY |         | READY  |\n"
3434 "   \\______/ <------ \\________/\n"
3435 "\n"
3436 msgstr ""
3437
3438 # type: textblock
3439 #: ../src/guestfs.pod:1779
3440 msgid ""
3441 "The normal transitions are (1) CONFIG (when the handle is created, but there "
3442 "is no child process), (2) LAUNCHING (when the child process is booting up), "
3443 "(3) alternating between READY and BUSY as commands are issued to, and "
3444 "carried out by, the child process."
3445 msgstr ""
3446
3447 # type: textblock
3448 #: ../src/guestfs.pod:1784
3449 msgid ""
3450 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
3451 "asynchronously at any time (eg. due to some internal error), and that causes "
3452 "the state to transition back to CONFIG."
3453 msgstr ""
3454
3455 # type: textblock
3456 #: ../src/guestfs.pod:1788
3457 msgid ""
3458 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
3459 "issued when in the CONFIG state."
3460 msgstr ""
3461
3462 # type: textblock
3463 #: ../src/guestfs.pod:1791
3464 msgid ""
3465 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
3466 "L</guestfs_launch> blocks until the child process is READY to accept "
3467 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
3468 "moves the state from CONFIG to LAUNCHING while it is running."
3469 msgstr ""
3470
3471 # type: textblock
3472 #: ../src/guestfs.pod:1797
3473 msgid ""
3474 "API actions such as L</guestfs_mount> can only be issued when in the READY "
3475 "state.  These API calls block waiting for the command to be carried out "
3476 "(ie. the state to transition to BUSY and then back to READY).  There are no "
3477 "non-blocking versions, and no way to issue more than one command per handle "
3478 "at the same time."
3479 msgstr ""
3480
3481 # type: textblock
3482 #: ../src/guestfs.pod:1803
3483 msgid ""
3484 "Finally, the child process sends asynchronous messages back to the main "
3485 "program, such as kernel log messages.  You can register a callback to "
3486 "receive these messages."
3487 msgstr ""
3488
3489 # type: =head1
3490 #: ../src/guestfs.pod:1807
3491 msgid "INTERNALS"
3492 msgstr ""
3493
3494 # type: =head2
3495 #: ../src/guestfs.pod:1809
3496 msgid "COMMUNICATION PROTOCOL"
3497 msgstr ""
3498
3499 # type: textblock
3500 #: ../src/guestfs.pod:1811
3501 msgid ""
3502 "Don't rely on using this protocol directly.  This section documents how it "
3503 "currently works, but it may change at any time."
3504 msgstr ""
3505
3506 # type: textblock
3507 #: ../src/guestfs.pod:1814
3508 msgid ""
3509 "The protocol used to talk between the library and the daemon running inside "
3510 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
3511 "1014, RFC 1832, RFC 4506)."
3512 msgstr ""
3513
3514 # type: textblock
3515 #: ../src/guestfs.pod:1818
3516 msgid ""
3517 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
3518 "this file is automatically generated)."
3519 msgstr ""
3520
3521 # type: textblock
3522 #: ../src/guestfs.pod:1821
3523 msgid ""
3524 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
3525 "and C<FileOut> parameters, which are handled with very simple request/reply "
3526 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
3527 "parameters, which use the same request and reply messages, but they may also "
3528 "be followed by files sent using a chunked encoding."
3529 msgstr ""
3530
3531 # type: =head3
3532 #: ../src/guestfs.pod:1828
3533 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
3534 msgstr ""
3535
3536 # type: textblock
3537 #: ../src/guestfs.pod:1830
3538 msgid "For ordinary functions, the request message is:"
3539 msgstr ""
3540
3541 # type: verbatim
3542 #: ../src/guestfs.pod:1832
3543 #, no-wrap
3544 msgid ""
3545 " total length (header + arguments,\n"
3546 "      but not including the length word itself)\n"
3547 " struct guestfs_message_header (encoded as XDR)\n"
3548 " struct guestfs_<foo>_args (encoded as XDR)\n"
3549 "\n"
3550 msgstr ""
3551
3552 # type: textblock
3553 #: ../src/guestfs.pod:1837
3554 msgid ""
3555 "The total length field allows the daemon to allocate a fixed size buffer "
3556 "into which it slurps the rest of the message.  As a result, the total length "
3557 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
3558 "effective size of any request is limited to somewhere under this size."
3559 msgstr ""
3560
3561 # type: textblock
3562 #: ../src/guestfs.pod:1843
3563 msgid ""
3564 "Note also that many functions don't take any arguments, in which case the "
3565 "C<guestfs_I<foo>_args> is completely omitted."
3566 msgstr ""
3567
3568 # type: textblock
3569 #: ../src/guestfs.pod:1846
3570 msgid ""
3571 "The header contains the procedure number (C<guestfs_proc>) which is how the "
3572 "receiver knows what type of args structure to expect, or none at all."
3573 msgstr ""
3574
3575 # type: textblock
3576 #: ../src/guestfs.pod:1850
3577 msgid "The reply message for ordinary functions is:"
3578 msgstr ""
3579
3580 # type: verbatim
3581 #: ../src/guestfs.pod:1852
3582 #, no-wrap
3583 msgid ""
3584 " total length (header + ret,\n"
3585 "      but not including the length word itself)\n"
3586 " struct guestfs_message_header (encoded as XDR)\n"
3587 " struct guestfs_<foo>_ret (encoded as XDR)\n"
3588 "\n"
3589 msgstr ""
3590
3591 # type: textblock
3592 #: ../src/guestfs.pod:1857
3593 msgid ""
3594 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
3595 "functions that return no formal return values."
3596 msgstr ""
3597
3598 # type: textblock
3599 #: ../src/guestfs.pod:1860
3600 msgid "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
3601 msgstr ""
3602
3603 # type: textblock
3604 #: ../src/guestfs.pod:1863
3605 msgid ""
3606 "In the case of an error, a flag is set in the header, and the reply message "
3607 "is slightly changed:"
3608 msgstr ""
3609
3610 # type: verbatim
3611 #: ../src/guestfs.pod:1866
3612 #, no-wrap
3613 msgid ""
3614 " total length (header + error,\n"
3615 "      but not including the length word itself)\n"
3616 " struct guestfs_message_header (encoded as XDR)\n"
3617 " struct guestfs_message_error (encoded as XDR)\n"
3618 "\n"
3619 msgstr ""
3620
3621 # type: textblock
3622 #: ../src/guestfs.pod:1871
3623 msgid ""
3624 "The C<guestfs_message_error> structure contains the error message as a "
3625 "string."
3626 msgstr ""
3627
3628 # type: =head3
3629 #: ../src/guestfs.pod:1874
3630 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
3631 msgstr ""
3632
3633 # type: textblock
3634 #: ../src/guestfs.pod:1876
3635 msgid ""
3636 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
3637 "The normal request message is sent (see above).  However this is followed by "
3638 "a sequence of file chunks."
3639 msgstr ""
3640
3641 # type: verbatim
3642 #: ../src/guestfs.pod:1880
3643 #, no-wrap
3644 msgid ""
3645 " total length (header + arguments,\n"
3646 "      but not including the length word itself,\n"
3647 "      and not including the chunks)\n"
3648 " struct guestfs_message_header (encoded as XDR)\n"
3649 " struct guestfs_<foo>_args (encoded as XDR)\n"
3650 " sequence of chunks for FileIn param #0\n"
3651 " sequence of chunks for FileIn param #1 etc.\n"
3652 "\n"
3653 msgstr ""
3654
3655 # type: textblock
3656 #: ../src/guestfs.pod:1888
3657 msgid "The \"sequence of chunks\" is:"
3658 msgstr ""
3659
3660 # type: verbatim
3661 #: ../src/guestfs.pod:1890
3662 #, no-wrap
3663 msgid ""
3664 " length of chunk (not including length word itself)\n"
3665 " struct guestfs_chunk (encoded as XDR)\n"
3666 " length of chunk\n"
3667 " struct guestfs_chunk (encoded as XDR)\n"
3668 "   ...\n"
3669 " length of chunk\n"
3670 " struct guestfs_chunk (with data.data_len == 0)\n"
3671 "\n"
3672 msgstr ""
3673
3674 # type: textblock
3675 #: ../src/guestfs.pod:1898
3676 msgid ""
3677 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
3678 "is set in the final chunk to indicate either successful completion or early "
3679 "cancellation."
3680 msgstr ""
3681
3682 # type: textblock
3683 #: ../src/guestfs.pod:1902
3684 msgid ""
3685 "At time of writing there are no functions that have more than one FileIn "
3686 "parameter.  However this is (theoretically) supported, by sending the "
3687 "sequence of chunks for each FileIn parameter one after another (from left to "
3688 "right)."
3689 msgstr ""
3690
3691 # type: textblock
3692 #: ../src/guestfs.pod:1907
3693 msgid ""
3694 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
3695 "transfer.  The library does this by sending a chunk with a special flag set "
3696 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
3697 "RPC, does I<not> send any reply, and goes back to reading the next request."
3698 msgstr ""
3699
3700 # type: textblock
3701 #: ../src/guestfs.pod:1913
3702 msgid ""
3703 "The daemon may also cancel.  It does this by writing a special word "
3704 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
3705 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
3706 "cancel chunk).  The special word is chosen so that even if cancellation "
3707 "happens right at the end of the transfer (after the library has finished "
3708 "writing and has started listening for the reply), the \"spurious\" cancel "
3709 "flag will not be confused with the reply message."
3710 msgstr ""
3711
3712 # type: textblock
3713 #: ../src/guestfs.pod:1922
3714 msgid ""
3715 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
3716 "limit), and also files where the size is not known in advance (eg. from "
3717 "pipes or sockets).  However the chunks are rather small "
3718 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
3719 "to keep much in memory."
3720 msgstr ""
3721
3722 # type: =head3
3723 #: ../src/guestfs.pod:1928
3724 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
3725 msgstr ""
3726
3727 # type: textblock
3728 #: ../src/guestfs.pod:1930
3729 msgid ""
3730 "The protocol for FileOut parameters is exactly the same as for FileIn "
3731 "parameters, but with the roles of daemon and library reversed."
3732 msgstr ""
3733
3734 # type: verbatim
3735 #: ../src/guestfs.pod:1933
3736 #, no-wrap
3737 msgid ""
3738 " total length (header + ret,\n"
3739 "      but not including the length word itself,\n"
3740 "      and not including the chunks)\n"
3741 " struct guestfs_message_header (encoded as XDR)\n"
3742 " struct guestfs_<foo>_ret (encoded as XDR)\n"
3743 " sequence of chunks for FileOut param #0\n"
3744 " sequence of chunks for FileOut param #1 etc.\n"
3745 "\n"
3746 msgstr ""
3747
3748 # type: =head3
3749 #: ../src/guestfs.pod:1941
3750 msgid "INITIAL MESSAGE"
3751 msgstr ""
3752
3753 # type: textblock
3754 #: ../src/guestfs.pod:1943
3755 msgid ""
3756 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
3757 "which indicates that the guest and daemon is alive.  This is what "
3758 "L</guestfs_launch> waits for."
3759 msgstr ""
3760
3761 # type: =head3
3762 #: ../src/guestfs.pod:1947
3763 msgid "PROGRESS NOTIFICATION MESSAGES"
3764 msgstr ""
3765
3766 # type: textblock
3767 #: ../src/guestfs.pod:1949
3768 msgid ""
3769 "The daemon may send progress notification messages at any time.  These are "
3770 "distinguished by the normal length word being replaced by "
3771 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
3772 msgstr ""
3773
3774 # type: textblock
3775 #: ../src/guestfs.pod:1953
3776 msgid ""
3777 "The library turns them into progress callbacks (see "
3778 "C<guestfs_set_progress_callback>) if there is a callback registered, or "
3779 "discards them if not."
3780 msgstr ""
3781
3782 # type: textblock
3783 #: ../src/guestfs.pod:1957
3784 msgid ""
3785 "The daemon self-limits the frequency of progress messages it sends (see "
3786 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
3787 "messages."
3788 msgstr ""
3789
3790 # type: =head1
3791 #: ../src/guestfs.pod:1961
3792 msgid "LIBGUESTFS VERSION NUMBERS"
3793 msgstr ""
3794
3795 # type: textblock
3796 #: ../src/guestfs.pod:1963
3797 msgid ""
3798 "Since April 2010, libguestfs has started to make separate development and "
3799 "stable releases, along with corresponding branches in our git repository.  "
3800 "These separate releases can be identified by version number:"
3801 msgstr ""
3802
3803 # type: verbatim
3804 #: ../src/guestfs.pod:1968
3805 #, no-wrap
3806 msgid ""
3807 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
3808 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
3809 "       |\n"
3810 "       v\n"
3811 " 1  .  3  .  5\n"
3812 " ^           ^\n"
3813 " |           |\n"
3814 " |           `-------- sub-version\n"
3815 " |\n"
3816 " `------ always '1' because we don't change the ABI\n"
3817 "\n"
3818 msgstr ""
3819
3820 # type: textblock
3821 #: ../src/guestfs.pod:1979
3822 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
3823 msgstr ""
3824
3825 # type: textblock
3826 #: ../src/guestfs.pod:1981
3827 msgid ""
3828 "As time passes we cherry pick fixes from the development branch and backport "
3829 "those into the stable branch, the effect being that the stable branch should "
3830 "get more stable and less buggy over time.  So the stable releases are ideal "
3831 "for people who don't need new features but would just like the software to "
3832 "work."
3833 msgstr ""
3834
3835 # type: textblock
3836 #: ../src/guestfs.pod:1987
3837 msgid "Our criteria for backporting changes are:"
3838 msgstr ""
3839
3840 # type: textblock
3841 #: ../src/guestfs.pod:1993
3842 msgid ""
3843 "Documentation changes which don't affect any code are backported unless the "
3844 "documentation refers to a future feature which is not in stable."
3845 msgstr ""
3846
3847 # type: textblock
3848 #: ../src/guestfs.pod:1999
3849 msgid ""
3850 "Bug fixes which are not controversial, fix obvious problems, and have been "
3851 "well tested are backported."
3852 msgstr ""
3853
3854 # type: textblock
3855 #: ../src/guestfs.pod:2004
3856 msgid ""
3857 "Simple rearrangements of code which shouldn't affect how it works get "
3858 "backported.  This is so that the code in the two branches doesn't get too "
3859 "far out of step, allowing us to backport future fixes more easily."
3860 msgstr ""
3861
3862 # type: textblock
3863 #: ../src/guestfs.pod:2010
3864 msgid ""
3865 "We I<don't> backport new features, new APIs, new tools etc, except in one "
3866 "exceptional case: the new feature is required in order to implement an "
3867 "important bug fix."
3868 msgstr ""
3869
3870 # type: textblock
3871 #: ../src/guestfs.pod:2016
3872 msgid ""
3873 "A new stable branch starts when we think the new features in development are "
3874 "substantial and compelling enough over the current stable branch to warrant "
3875 "it.  When that happens we create new stable and development versions 1.N.0 "
3876 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
3877 "stable at this point, but by backporting fixes from development, that branch "
3878 "will stabilize over time."
3879 msgstr ""
3880
3881 # type: =head1
3882 #: ../src/guestfs.pod:2024 ../fish/guestfish.pod:914 ../test-tool/libguestfs-test-tool.pod:104 ../tools/virt-edit.pl:330 ../tools/virt-rescue.pl:255
3883 msgid "ENVIRONMENT VARIABLES"
3884 msgstr ""
3885
3886 # type: =item
3887 #: ../src/guestfs.pod:2028 ../fish/guestfish.pod:940
3888 msgid "LIBGUESTFS_APPEND"
3889 msgstr ""
3890
3891 # type: textblock
3892 #: ../src/guestfs.pod:2030 ../fish/guestfish.pod:942
3893 msgid "Pass additional options to the guest kernel."
3894 msgstr ""
3895
3896 # type: =item
3897 #: ../src/guestfs.pod:2032 ../fish/guestfish.pod:944
3898 msgid "LIBGUESTFS_DEBUG"
3899 msgstr ""
3900
3901 # type: textblock
3902 #: ../src/guestfs.pod:2034
3903 msgid ""
3904 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
3905 "effect as calling C<guestfs_set_verbose (g, 1)>."
3906 msgstr ""
3907
3908 # type: =item
3909 #: ../src/guestfs.pod:2037 ../fish/guestfish.pod:949
3910 msgid "LIBGUESTFS_MEMSIZE"
3911 msgstr ""
3912
3913 # type: textblock
3914 #: ../src/guestfs.pod:2039 ../fish/guestfish.pod:951
3915 msgid "Set the memory allocated to the qemu process, in megabytes.  For example:"
3916 msgstr ""
3917
3918 # type: verbatim
3919 #: ../src/guestfs.pod:2042 ../fish/guestfish.pod:954
3920 #, no-wrap
3921 msgid ""
3922 " LIBGUESTFS_MEMSIZE=700\n"
3923 "\n"
3924 msgstr ""
3925
3926 # type: =item
3927 #: ../src/guestfs.pod:2044 ../fish/guestfish.pod:956
3928 msgid "LIBGUESTFS_PATH"
3929 msgstr ""
3930
3931 # type: textblock
3932 #: ../src/guestfs.pod:2046
3933 msgid ""
3934 "Set the path that libguestfs uses to search for kernel and initrd.img.  See "
3935 "the discussion of paths in section PATH above."
3936 msgstr ""
3937
3938 # type: =item
3939 #: ../src/guestfs.pod:2049 ../fish/guestfish.pod:961
3940 msgid "LIBGUESTFS_QEMU"
3941 msgstr ""
3942
3943 # type: textblock
3944 #: ../src/guestfs.pod:2051 ../fish/guestfish.pod:963
3945 msgid ""
3946 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
3947 "which was found at compile time by the configure script is used."
3948 msgstr ""
3949
3950 # type: textblock
3951 #: ../src/guestfs.pod:2055
3952 msgid "See also L</QEMU WRAPPERS> above."
3953 msgstr ""
3954
3955 # type: =item
3956 #: ../src/guestfs.pod:2057 ../fish/guestfish.pod:967
3957 msgid "LIBGUESTFS_TRACE"
3958 msgstr ""
3959
3960 # type: textblock
3961 #: ../src/guestfs.pod:2059
3962 msgid ""
3963 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
3964 "effect as calling C<guestfs_set_trace (g, 1)>."
3965 msgstr ""
3966
3967 # type: =item
3968 #: ../src/guestfs.pod:2062 ../fish/guestfish.pod:976
3969 msgid "TMPDIR"
3970 msgstr ""
3971
3972 # type: textblock
3973 #: ../src/guestfs.pod:2064 ../fish/guestfish.pod:978
3974 msgid "Location of temporary directory, defaults to C</tmp>."
3975 msgstr ""
3976
3977 # type: textblock
3978 #: ../src/guestfs.pod:2066 ../fish/guestfish.pod:980
3979 msgid ""
3980 "If libguestfs was compiled to use the supermin appliance then the real "
3981 "appliance is cached in this directory, shared between all handles belonging "
3982 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
3983 "use in case C</tmp> is not large enough."
3984 msgstr ""
3985
3986 # type: =head1
3987 #: ../src/guestfs.pod:2074 ../fish/guestfish.pod:1038 ../test-tool/libguestfs-test-tool.pod:109 ../fuse/guestmount.pod:233 ../inspector/virt-inspector.pl:536 ../tools/virt-edit.pl:350 ../tools/virt-win-reg.pl:484 ../tools/virt-df.pl:640 ../tools/virt-ls.pl:232 ../tools/virt-resize.pl:1486 ../tools/virt-list-filesystems.pl:186 ../tools/virt-tar.pl:281 ../tools/virt-rescue.pl:267 ../tools/virt-make-fs.pl:534 ../tools/virt-list-partitions.pl:254
3988 msgid "SEE ALSO"
3989 msgstr ""
3990
3991 # type: textblock
3992 #: ../src/guestfs.pod:2076
3993 msgid ""
3994 "L<guestfish(1)>, L<guestmount(1)>, L<virt-cat(1)>, L<virt-df(1)>, "
3995 "L<virt-edit(1)>, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, "
3996 "L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, "
3997 "L<virt-rescue(1)>, L<virt-tar(1)>, L<virt-win-reg(1)>, L<qemu(1)>, "
3998 "L<febootstrap(1)>, L<hivex(3)>, L<http://libguestfs.org/>."
3999 msgstr ""
4000
4001 # type: textblock
4002 #: ../src/guestfs.pod:2094
4003 msgid ""
4004 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, "
4005 "L<lvm(8)>, L<disktype(1)>."
4006 msgstr ""
4007
4008 # type: =head1
4009 #: ../src/guestfs.pod:2101 ../tools/virt-win-reg.pl:499 ../tools/virt-make-fs.pl:548
4010 msgid "BUGS"
4011 msgstr ""
4012
4013 # type: textblock
4014 #: ../src/guestfs.pod:2103
4015 msgid "To get a list of bugs against libguestfs use this link:"
4016 msgstr ""
4017
4018 # type: textblock
4019 #: ../src/guestfs.pod:2105
4020 msgid "L<https://bugzilla.redhat.com/buglist.cgi?component=libguestfs&product=Virtualization+Tools>"
4021 msgstr ""
4022
4023 # type: textblock
4024 #: ../src/guestfs.pod:2107
4025 msgid "To report a new bug against libguestfs use this link:"
4026 msgstr ""
4027
4028 # type: textblock
4029 #: ../src/guestfs.pod:2109
4030 msgid "L<https://bugzilla.redhat.com/enter_bug.cgi?component=libguestfs&product=Virtualization+Tools>"
4031 msgstr ""
4032
4033 # type: textblock
4034 #: ../src/guestfs.pod:2111
4035 msgid "When reporting a bug, please check:"
4036 msgstr ""
4037
4038 # type: textblock
4039 #: ../src/guestfs.pod:2117
4040 msgid "That the bug hasn't been reported already."
4041 msgstr ""
4042
4043 # type: textblock
4044 #: ../src/guestfs.pod:2121
4045 msgid "That you are testing a recent version."
4046 msgstr ""
4047
4048 # type: textblock
4049 #: ../src/guestfs.pod:2125
4050 msgid "Describe the bug accurately, and give a way to reproduce it."
4051 msgstr ""
4052
4053 # type: textblock
4054 #: ../src/guestfs.pod:2129
4055 msgid ""
4056 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
4057 "bug report."
4058 msgstr ""
4059
4060 # type: =head1
4061 #: ../src/guestfs.pod:2134 ../fish/guestfish.pod:1055 ../test-tool/libguestfs-test-tool.pod:115 ../fuse/guestmount.pod:244 ../inspector/virt-inspector.pl:546
4062 msgid "AUTHORS"
4063 msgstr ""
4064
4065 # type: textblock
4066 #: ../src/guestfs.pod:2136 ../fish/guestfish.pod:1057 ../test-tool/libguestfs-test-tool.pod:117 ../fuse/guestmount.pod:246
4067 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
4068 msgstr ""
4069
4070 # type: =head1
4071 #: ../src/guestfs.pod:2138 ../fish/guestfish.pod:1059 ../test-tool/libguestfs-test-tool.pod:119 ../fuse/guestmount.pod:248 ../inspector/virt-inspector.pl:560 ../tools/virt-edit.pl:366 ../tools/virt-win-reg.pl:514 ../tools/virt-df.pl:653 ../tools/virt-ls.pl:247 ../tools/virt-resize.pl:1512 ../tools/virt-list-filesystems.pl:202 ../tools/virt-tar.pl:296 ../tools/virt-rescue.pl:281 ../tools/virt-make-fs.pl:563 ../tools/virt-list-partitions.pl:269
4072 msgid "COPYRIGHT"
4073 msgstr ""
4074
4075 # type: textblock
4076 #: ../src/guestfs.pod:2140 ../fish/guestfish.pod:1061 ../fuse/guestmount.pod:250
4077 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
4078 msgstr ""
4079
4080 # type: textblock
4081 #: ../src/guestfs.pod:2143
4082 msgid ""
4083 "This library is free software; you can redistribute it and/or modify it "
4084 "under the terms of the GNU Lesser General Public License as published by the "
4085 "Free Software Foundation; either version 2 of the License, or (at your "
4086 "option) any later version."
4087 msgstr ""
4088
4089 # type: textblock
4090 #: ../src/guestfs.pod:2148
4091 msgid ""
4092 "This library is distributed in the hope that it will be useful, but WITHOUT "
4093 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
4094 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License "
4095 "for more details."
4096 msgstr ""
4097
4098 # type: textblock
4099 #: ../src/guestfs.pod:2153
4100 msgid ""
4101 "You should have received a copy of the GNU Lesser General Public License "
4102 "along with this library; if not, write to the Free Software Foundation, "
4103 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
4104 msgstr ""
4105
4106 # type: =head2
4107 #: ../src/guestfs-actions.pod:1
4108 msgid "guestfs_add_cdrom"
4109 msgstr ""
4110
4111 # type: verbatim
4112 #: ../src/guestfs-actions.pod:3
4113 #, no-wrap
4114 msgid ""
4115 " int\n"
4116 " guestfs_add_cdrom (guestfs_h *g,\n"
4117 "                    const char *filename);\n"
4118 "\n"
4119 msgstr ""
4120
4121 # type: textblock
4122 #: ../src/guestfs-actions.pod:7 ../fish/guestfish-actions.pod:5
4123 msgid "This function adds a virtual CD-ROM disk image to the guest."
4124 msgstr ""
4125
4126 # type: textblock
4127 #: ../src/guestfs-actions.pod:9 ../fish/guestfish-actions.pod:7
4128 msgid "This is equivalent to the qemu parameter C<-cdrom filename>."
4129 msgstr ""
4130
4131 # type: textblock
4132 #: ../src/guestfs-actions.pod:17
4133 msgid ""
4134 "This call checks for the existence of C<filename>.  This stops you from "
4135 "specifying other types of drive which are supported by qemu such as C<nbd:> "
4136 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
4137 "instead."
4138 msgstr ""
4139
4140 # type: textblock
4141 #: ../src/guestfs-actions.pod:24
4142 msgid ""
4143 "If you just want to add an ISO file (often you use this as an efficient way "
4144 "to transfer large files into the guest), then you should probably use "
4145 "C<guestfs_add_drive_ro> instead."
4146 msgstr ""
4147
4148 # type: textblock
4149 #: ../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:3049 ../src/guestfs-actions.pod:3064 ../src/guestfs-actions.pod:3084 ../src/guestfs-actions.pod:3209 ../src/guestfs-actions.pod:3223 ../src/guestfs-actions.pod:3236 ../src/guestfs-actions.pod:3250 ../src/guestfs-actions.pod:3265 ../src/guestfs-actions.pod:3301 ../src/guestfs-actions.pod:3373 ../src/guestfs-actions.pod:3393 ../src/guestfs-actions.pod:3410 ../src/guestfs-actions.pod:3433 ../src/guestfs-actions.pod:3456 ../src/guestfs-actions.pod:3488 ../src/guestfs-actions.pod:3507 ../src/guestfs-actions.pod:3526 ../src/guestfs-actions.pod:3561 ../src/guestfs-actions.pod:3573 ../src/guestfs-actions.pod:3609 ../src/guestfs-actions.pod:3625 ../src/guestfs-actions.pod:3638 ../src/guestfs-actions.pod:3653 ../src/guestfs-actions.pod:3670 ../src/guestfs-actions.pod:3763 ../src/guestfs-actions.pod:3783 ../src/guestfs-actions.pod:3796 ../src/guestfs-actions.pod:3847 ../src/guestfs-actions.pod:3865 ../src/guestfs-actions.pod:3883 ../src/guestfs-actions.pod:3899 ../src/guestfs-actions.pod:3913 ../src/guestfs-actions.pod:3927 ../src/guestfs-actions.pod:3944 ../src/guestfs-actions.pod:3959 ../src/guestfs-actions.pod:3979 ../src/guestfs-actions.pod:4028 ../src/guestfs-actions.pod:4059 ../src/guestfs-actions.pod:4078 ../src/guestfs-actions.pod:4097 ../src/guestfs-actions.pod:4109 ../src/guestfs-actions.pod:4126 ../src/guestfs-actions.pod:4139 ../src/guestfs-actions.pod:4154 ../src/guestfs-actions.pod:4169 ../src/guestfs-actions.pod:4204 ../src/guestfs-actions.pod:4219 ../src/guestfs-actions.pod:4239 ../src/guestfs-actions.pod:4253 ../src/guestfs-actions.pod:4270 ../src/guestfs-actions.pod:4319 ../src/guestfs-actions.pod:4356 ../src/guestfs-actions.pod:4370 ../src/guestfs-actions.pod:4398 ../src/guestfs-actions.pod:4415 ../src/guestfs-actions.pod:4433 ../src/guestfs-actions.pod:4567 ../src/guestfs-actions.pod:4624 ../src/guestfs-actions.pod:4646 ../src/guestfs-actions.pod:4664 ../src/guestfs-actions.pod:4696 ../src/guestfs-actions.pod:4762 ../src/guestfs-actions.pod:4779 ../src/guestfs-actions.pod:4792 ../src/guestfs-actions.pod:4806 ../src/guestfs-actions.pod:5095 ../src/guestfs-actions.pod:5114 ../src/guestfs-actions.pod:5128 ../src/guestfs-actions.pod:5140 ../src/guestfs-actions.pod:5154 ../src/guestfs-actions.pod:5166 ../src/guestfs-actions.pod:5180 ../src/guestfs-actions.pod:5196 ../src/guestfs-actions.pod:5217 ../src/guestfs-actions.pod:5236 ../src/guestfs-actions.pod:5255 ../src/guestfs-actions.pod:5273 ../src/guestfs-actions.pod:5296 ../src/guestfs-actions.pod:5314 ../src/guestfs-actions.pod:5333 ../src/guestfs-actions.pod:5354 ../src/guestfs-actions.pod:5373 ../src/guestfs-actions.pod:5390 ../src/guestfs-actions.pod:5418 ../src/guestfs-actions.pod:5442 ../src/guestfs-actions.pod:5461 ../src/guestfs-actions.pod:5485 ../src/guestfs-actions.pod:5500 ../src/guestfs-actions.pod:5515 ../src/guestfs-actions.pod:5534 ../src/guestfs-actions.pod:5571 ../src/guestfs-actions.pod:5594 ../src/guestfs-actions.pod:5620 ../src/guestfs-actions.pod:5728 ../src/guestfs-actions.pod:5849 ../src/guestfs-actions.pod:5861 ../src/guestfs-actions.pod:5874 ../src/guestfs-actions.pod:5887 ../src/guestfs-actions.pod:5909 ../src/guestfs-actions.pod:5922 ../src/guestfs-actions.pod:5935 ../src/guestfs-actions.pod:5948 ../src/guestfs-actions.pod:5963 ../src/guestfs-actions.pod:6022 ../src/guestfs-actions.pod:6039 ../src/guestfs-actions.pod:6055 ../src/guestfs-actions.pod:6071 ../src/guestfs-actions.pod:6088 ../src/guestfs-actions.pod:6101 ../src/guestfs-actions.pod:6121 ../src/guestfs-actions.pod:6157 ../src/guestfs-actions.pod:6171 ../src/guestfs-actions.pod:6212 ../src/guestfs-actions.pod:6225 ../src/guestfs-actions.pod:6243 ../src/guestfs-actions.pod:6272 ../src/guestfs-actions.pod:6303 ../src/guestfs-actions.pod:6422 ../src/guestfs-actions.pod:6440 ../src/guestfs-actions.pod:6454 ../src/guestfs-actions.pod:6509 ../src/guestfs-actions.pod:6522 ../src/guestfs-actions.pod:6567 ../src/guestfs-actions.pod:6600 ../src/guestfs-actions.pod:6654 ../src/guestfs-actions.pod:6680 ../src/guestfs-actions.pod:6746 ../src/guestfs-actions.pod:6765 ../src/guestfs-actions.pod:6794
4150 msgid "This function returns 0 on success or -1 on error."
4151 msgstr ""
4152
4153 # type: textblock
4154 #: ../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
4155 msgid ""
4156 "This function is deprecated.  In new code, use the C<add_drive_opts> call "
4157 "instead."
4158 msgstr ""
4159
4160 # type: textblock
4161 #: ../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:6688 ../src/guestfs-actions.pod:6857 ../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:4427 ../fish/guestfish-actions.pod:4524
4162 msgid ""
4163 "Deprecated functions will not be removed from the API, but the fact that "
4164 "they are deprecated indicates that there are problems with correct use of "
4165 "these functions."
4166 msgstr ""
4167
4168 # type: textblock
4169 #: ../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:3051 ../src/guestfs-actions.pod:3066 ../src/guestfs-actions.pod:4206 ../src/guestfs-actions.pod:5275 ../src/guestfs-actions.pod:5392 ../src/guestfs-actions.pod:5502 ../src/guestfs-actions.pod:5965 ../src/guestfs-actions.pod:6090 ../src/guestfs-actions.pod:6602
4170 msgid "(Added in 0.3)"
4171 msgstr ""
4172
4173 # type: =head2
4174 #: ../src/guestfs-actions.pod:41
4175 msgid "guestfs_add_domain"
4176 msgstr ""
4177
4178 # type: verbatim
4179 #: ../src/guestfs-actions.pod:43
4180 #, no-wrap
4181 msgid ""
4182 " int\n"
4183 " guestfs_add_domain (guestfs_h *g,\n"
4184 "                     const char *dom,\n"
4185 "                     ...);\n"
4186 "\n"
4187 msgstr ""
4188
4189 # type: textblock
4190 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:137
4191 msgid ""
4192 "You may supply a list of optional arguments to this call.  Use zero or more "
4193 "of the following pairs of parameters, and terminate the list with C<-1> on "
4194 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
4195 msgstr ""
4196
4197 # type: verbatim
4198 #: ../src/guestfs-actions.pod:53
4199 #, no-wrap
4200 msgid ""
4201 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
4202 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
4203 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
4204 "\n"
4205 msgstr ""
4206
4207 # type: textblock
4208 #: ../src/guestfs-actions.pod:57
4209 msgid ""
4210 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
4211 "It works by connecting to libvirt, requesting the domain and domain XML from "
4212 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
4213 "one."
4214 msgstr ""
4215
4216 # type: textblock
4217 #: ../src/guestfs-actions.pod:62 ../fish/guestfish-actions.pod:46
4218 msgid ""
4219 "The number of disks added is returned.  This operation is atomic: if an "
4220 "error is returned, then no disks are added."
4221 msgstr ""
4222
4223 # type: textblock
4224 #: ../src/guestfs-actions.pod:65 ../fish/guestfish-actions.pod:49
4225 msgid ""
4226 "This function does some minimal checks to make sure the libvirt domain is "
4227 "not running (unless C<readonly> is true).  In a future version we will try "
4228 "to acquire the libvirt lock on each disk."
4229 msgstr ""
4230
4231 # type: textblock
4232 #: ../src/guestfs-actions.pod:69 ../fish/guestfish-actions.pod:53
4233 msgid ""
4234 "Disks must be accessible locally.  This often means that adding disks from a "
4235 "remote libvirt connection (see L<http://libvirt.org/remote.html>)  will fail "
4236 "unless those disks are accessible via the same device path locally too."
4237 msgstr ""
4238
4239 # type: textblock
4240 #: ../src/guestfs-actions.pod:74
4241 msgid ""
4242 "The optional C<libvirturi> parameter sets the libvirt URI (see "
4243 "L<http://libvirt.org/uri.html>).  If this is not set then we connect to the "
4244 "default libvirt URI (or one set through an environment variable, see the "
4245 "libvirt documentation for full details).  If you are using the C API "
4246 "directly then it is more flexible to create the libvirt connection object "
4247 "yourself, get the domain object, and call C<guestfs_add_libvirt_dom>."
4248 msgstr ""
4249
4250 # type: textblock
4251 #: ../src/guestfs-actions.pod:82
4252 msgid ""
4253 "The other optional parameters are passed directly through to "
4254 "C<guestfs_add_drive_opts>."
4255 msgstr ""
4256
4257 # type: textblock
4258 #: ../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:2602 ../src/guestfs-actions.pod:2623 ../src/guestfs-actions.pod:4342 ../src/guestfs-actions.pod:4470 ../src/guestfs-actions.pod:4876 ../src/guestfs-actions.pod:4902 ../src/guestfs-actions.pod:6198 ../src/guestfs-actions.pod:6613 ../src/guestfs-actions.pod:6626 ../src/guestfs-actions.pod:6639
4259 msgid "On error this function returns -1."
4260 msgstr ""
4261
4262 # type: =head2
4263 #: ../src/guestfs-actions.pod:87
4264 msgid "guestfs_add_domain_va"
4265 msgstr ""
4266
4267 # type: verbatim
4268 #: ../src/guestfs-actions.pod:89
4269 #, no-wrap
4270 msgid ""
4271 " int\n"
4272 " guestfs_add_domain_va (guestfs_h *g,\n"
4273 "                        const char *dom,\n"
4274 "                        va_list args);\n"
4275 "\n"
4276 msgstr ""
4277
4278 # type: textblock
4279 #: ../src/guestfs-actions.pod:94
4280 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
4281 msgstr ""
4282
4283 # type: textblock
4284 #: ../src/guestfs-actions.pod:96 ../src/guestfs-actions.pod:107 ../src/guestfs-actions.pod:200 ../src/guestfs-actions.pod:211
4285 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
4286 msgstr ""
4287
4288 # type: =head2
4289 #: ../src/guestfs-actions.pod:98
4290 msgid "guestfs_add_domain_argv"
4291 msgstr ""
4292
4293 # type: verbatim
4294 #: ../src/guestfs-actions.pod:100
4295 #, no-wrap
4296 msgid ""
4297 " int\n"
4298 " guestfs_add_domain_argv (guestfs_h *g,\n"
4299 "                          const char *dom,\n"
4300 "                          const struct guestfs_add_domain_argv *optargs);\n"
4301 "\n"
4302 msgstr ""
4303
4304 # type: textblock
4305 #: ../src/guestfs-actions.pod:105
4306 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
4307 msgstr ""
4308
4309 # type: =head2
4310 #: ../src/guestfs-actions.pod:109
4311 msgid "guestfs_add_drive"
4312 msgstr ""
4313
4314 # type: verbatim
4315 #: ../src/guestfs-actions.pod:111
4316 #, no-wrap
4317 msgid ""
4318 " int\n"
4319 " guestfs_add_drive (guestfs_h *g,\n"
4320 "                    const char *filename);\n"
4321 "\n"
4322 msgstr ""
4323
4324 # type: textblock
4325 #: ../src/guestfs-actions.pod:115
4326 msgid ""
4327 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
4328 "optional parameters, so the disk is added writable, with the format being "
4329 "detected automatically."
4330 msgstr ""
4331
4332 # type: textblock
4333 #: ../src/guestfs-actions.pod:119
4334 msgid ""
4335 "Automatic detection of the format opens you up to a potential security hole "
4336 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
4337 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
4338 "you should think about replacing calls to this function with calls to "
4339 "C<guestfs_add_drive_opts>, and specifying the format."
4340 msgstr ""
4341
4342 # type: =head2
4343 #: ../src/guestfs-actions.pod:130
4344 msgid "guestfs_add_drive_opts"
4345 msgstr ""
4346
4347 # type: verbatim
4348 #: ../src/guestfs-actions.pod:132
4349 #, no-wrap
4350 msgid ""
4351 " int\n"
4352 " guestfs_add_drive_opts (guestfs_h *g,\n"
4353 "                         const char *filename,\n"
4354 "                         ...);\n"
4355 "\n"
4356 msgstr ""
4357
4358 # type: verbatim
4359 #: ../src/guestfs-actions.pod:142
4360 #, no-wrap
4361 msgid ""
4362 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
4363 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
4364 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
4365 "\n"
4366 msgstr ""
4367
4368 # type: textblock
4369 #: ../src/guestfs-actions.pod:146 ../fish/guestfish-actions.pod:92
4370 msgid ""
4371 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
4372 "The first time you call this function, the disk appears as C</dev/sda>, the "
4373 "second time as C</dev/sdb>, and so on."
4374 msgstr ""
4375
4376 # type: textblock
4377 #: ../src/guestfs-actions.pod:151 ../fish/guestfish-actions.pod:97
4378 msgid ""
4379 "You don't necessarily need to be root when using libguestfs.  However you "
4380 "obviously do need sufficient permissions to access the filename for whatever "
4381 "operations you want to perform (ie. read access if you just want to read the "
4382 "image or write access if you want to modify the image)."
4383 msgstr ""
4384
4385 # type: textblock
4386 #: ../src/guestfs-actions.pod:157 ../fish/guestfish-actions.pod:103
4387 msgid "This call checks that C<filename> exists."
4388 msgstr ""
4389
4390 # type: textblock
4391 #: ../src/guestfs-actions.pod:159 ../fish/guestfish-actions.pod:105
4392 msgid "The optional arguments are:"
4393 msgstr ""
4394
4395 # type: =item
4396 #: ../src/guestfs-actions.pod:163 ../fish/guestfish-actions.pod:109
4397 msgid "C<readonly>"
4398 msgstr ""
4399
4400 # type: textblock
4401 #: ../src/guestfs-actions.pod:165 ../fish/guestfish-actions.pod:111
4402 msgid ""
4403 "If true then the image is treated as read-only.  Writes are still allowed, "
4404 "but they are stored in a temporary snapshot overlay which is discarded at "
4405 "the end.  The disk that you add is not modified."
4406 msgstr ""
4407
4408 # type: =item
4409 #: ../src/guestfs-actions.pod:169 ../fish/guestfish-actions.pod:115
4410 msgid "C<format>"
4411 msgstr ""
4412
4413 # type: textblock
4414 #: ../src/guestfs-actions.pod:171
4415 msgid ""
4416 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
4417 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
4418 "Possible formats include C<raw> and C<qcow2>."
4419 msgstr ""
4420
4421 # type: textblock
4422 #: ../src/guestfs-actions.pod:175 ../fish/guestfish-actions.pod:121
4423 msgid ""
4424 "Automatic detection of the format opens you up to a potential security hole "
4425 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
4426 "RHBZ#642934.  Specifying the format closes this security hole."
4427 msgstr ""
4428
4429 # type: =item
4430 #: ../src/guestfs-actions.pod:180 ../fish/guestfish-actions.pod:126
4431 msgid "C<iface>"
4432 msgstr ""
4433
4434 # type: textblock
4435 #: ../src/guestfs-actions.pod:182
4436 msgid ""
4437 "This rarely-used option lets you emulate the behaviour of the deprecated "
4438 "C<guestfs_add_drive_with_if> call (q.v.)"
4439 msgstr ""
4440
4441 # type: textblock
4442 #: ../src/guestfs-actions.pod:189
4443 msgid "(Added in 1.5.23)"
4444 msgstr ""
4445
4446 # type: =head2
4447 #: ../src/guestfs-actions.pod:191
4448 msgid "guestfs_add_drive_opts_va"
4449 msgstr ""
4450
4451 # type: verbatim
4452 #: ../src/guestfs-actions.pod:193
4453 #, no-wrap
4454 msgid ""
4455 " int\n"
4456 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
4457 "                            const char *filename,\n"
4458 "                            va_list args);\n"
4459 "\n"
4460 msgstr ""
4461
4462 # type: textblock
4463 #: ../src/guestfs-actions.pod:198
4464 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
4465 msgstr ""
4466
4467 # type: =head2
4468 #: ../src/guestfs-actions.pod:202
4469 msgid "guestfs_add_drive_opts_argv"
4470 msgstr ""
4471
4472 # type: verbatim
4473 #: ../src/guestfs-actions.pod:204
4474 #, no-wrap
4475 msgid ""
4476 " int\n"
4477 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
4478 "                              const char *filename,\n"
4479 "                              const struct guestfs_add_drive_opts_argv "
4480 "*optargs);\n"
4481 "\n"
4482 msgstr ""
4483
4484 # type: textblock
4485 #: ../src/guestfs-actions.pod:209
4486 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
4487 msgstr ""
4488
4489 # type: =head2
4490 #: ../src/guestfs-actions.pod:213
4491 msgid "guestfs_add_drive_ro"
4492 msgstr ""
4493
4494 # type: verbatim
4495 #: ../src/guestfs-actions.pod:215
4496 #, no-wrap
4497 msgid ""
4498 " int\n"
4499 " guestfs_add_drive_ro (guestfs_h *g,\n"
4500 "                       const char *filename);\n"
4501 "\n"
4502 msgstr ""
4503
4504 # type: textblock
4505 #: ../src/guestfs-actions.pod:219
4506 msgid ""
4507 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
4508 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
4509 "disk is added read-only, with the format being detected automatically."
4510 msgstr ""
4511
4512 # type: textblock
4513 #: ../src/guestfs-actions.pod:226
4514 msgid "(Added in 1.0.38)"
4515 msgstr ""
4516
4517 # type: =head2
4518 #: ../src/guestfs-actions.pod:228
4519 msgid "guestfs_add_drive_ro_with_if"
4520 msgstr ""
4521
4522 # type: verbatim
4523 #: ../src/guestfs-actions.pod:230
4524 #, no-wrap
4525 msgid ""
4526 " int\n"
4527 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
4528 "                               const char *filename,\n"
4529 "                               const char *iface);\n"
4530 "\n"
4531 msgstr ""
4532
4533 # type: textblock
4534 #: ../src/guestfs-actions.pod:235
4535 msgid ""
4536 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
4537 "QEMU interface emulation to use at run time."
4538 msgstr ""
4539
4540 # type: textblock
4541 #: ../src/guestfs-actions.pod:247 ../src/guestfs-actions.pod:268 ../src/guestfs-actions.pod:2303
4542 msgid "(Added in 1.0.84)"
4543 msgstr ""
4544
4545 # type: =head2
4546 #: ../src/guestfs-actions.pod:249
4547 msgid "guestfs_add_drive_with_if"
4548 msgstr ""
4549
4550 # type: verbatim
4551 #: ../src/guestfs-actions.pod:251
4552 #, no-wrap
4553 msgid ""
4554 " int\n"
4555 " guestfs_add_drive_with_if (guestfs_h *g,\n"
4556 "                            const char *filename,\n"
4557 "                            const char *iface);\n"
4558 "\n"
4559 msgstr ""
4560
4561 # type: textblock
4562 #: ../src/guestfs-actions.pod:256
4563 msgid ""
4564 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
4565 "QEMU interface emulation to use at run time."
4566 msgstr ""
4567
4568 # type: =head2
4569 #: ../src/guestfs-actions.pod:270
4570 msgid "guestfs_aug_clear"
4571 msgstr ""
4572
4573 # type: verbatim
4574 #: ../src/guestfs-actions.pod:272
4575 #, no-wrap
4576 msgid ""
4577 " int\n"
4578 " guestfs_aug_clear (guestfs_h *g,\n"
4579 "                    const char *augpath);\n"
4580 "\n"
4581 msgstr ""
4582
4583 # type: textblock
4584 #: ../src/guestfs-actions.pod:276 ../fish/guestfish-actions.pod:178
4585 msgid ""
4586 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
4587 "L<augtool(1)> C<clear> command."
4588 msgstr ""
4589
4590 # type: textblock
4591 #: ../src/guestfs-actions.pod:281 ../src/guestfs-actions.pod:2083
4592 msgid "(Added in 1.3.4)"
4593 msgstr ""
4594
4595 # type: =head2
4596 #: ../src/guestfs-actions.pod:283
4597 msgid "guestfs_aug_close"
4598 msgstr ""
4599
4600 # type: verbatim
4601 #: ../src/guestfs-actions.pod:285
4602 #, no-wrap
4603 msgid ""
4604 " int\n"
4605 " guestfs_aug_close (guestfs_h *g);\n"
4606 "\n"
4607 msgstr ""
4608
4609 # type: textblock
4610 #: ../src/guestfs-actions.pod:288
4611 msgid ""
4612 "Close the current Augeas handle and free up any resources used by it.  After "
4613 "calling this, you have to call C<guestfs_aug_init> again before you can use "
4614 "any other Augeas functions."
4615 msgstr ""
4616
4617 # type: textblock
4618 #: ../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:4953
4619 msgid "(Added in 0.7)"
4620 msgstr ""
4621
4622 # type: =head2
4623 #: ../src/guestfs-actions.pod:297
4624 msgid "guestfs_aug_defnode"
4625 msgstr ""
4626
4627 # type: verbatim
4628 #: ../src/guestfs-actions.pod:299
4629 #, no-wrap
4630 msgid ""
4631 " struct guestfs_int_bool *\n"
4632 " guestfs_aug_defnode (guestfs_h *g,\n"
4633 "                      const char *name,\n"
4634 "                      const char *expr,\n"
4635 "                      const char *val);\n"
4636 "\n"
4637 msgstr ""
4638
4639 # type: textblock
4640 #: ../src/guestfs-actions.pod:305 ../fish/guestfish-actions.pod:194
4641 msgid "Defines a variable C<name> whose value is the result of evaluating C<expr>."
4642 msgstr ""
4643
4644 # type: textblock
4645 #: ../src/guestfs-actions.pod:308
4646 msgid ""
4647 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
4648 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
4649 "containing that single node."
4650 msgstr ""
4651
4652 # type: textblock
4653 #: ../src/guestfs-actions.pod:312 ../fish/guestfish-actions.pod:201
4654 msgid ""
4655 "On success this returns a pair containing the number of nodes in the "
4656 "nodeset, and a boolean flag if a node was created."
4657 msgstr ""
4658
4659 # type: textblock
4660 #: ../src/guestfs-actions.pod:316
4661 msgid ""
4662 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
4663 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
4664 msgstr ""
4665
4666 # type: =head2
4667 #: ../src/guestfs-actions.pod:322
4668 msgid "guestfs_aug_defvar"
4669 msgstr ""
4670
4671 # type: verbatim
4672 #: ../src/guestfs-actions.pod:324
4673 #, no-wrap
4674 msgid ""
4675 " int\n"
4676 " guestfs_aug_defvar (guestfs_h *g,\n"
4677 "                     const char *name,\n"
4678 "                     const char *expr);\n"
4679 "\n"
4680 msgstr ""
4681
4682 # type: textblock
4683 #: ../src/guestfs-actions.pod:329 ../fish/guestfish-actions.pod:209
4684 msgid ""
4685 "Defines an Augeas variable C<name> whose value is the result of evaluating "
4686 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
4687 msgstr ""
4688
4689 # type: textblock
4690 #: ../src/guestfs-actions.pod:333 ../fish/guestfish-actions.pod:213
4691 msgid ""
4692 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
4693 "evaluates to something which is not a nodeset."
4694 msgstr ""
4695
4696 # type: =head2
4697 #: ../src/guestfs-actions.pod:340
4698 msgid "guestfs_aug_get"
4699 msgstr ""
4700
4701 # type: verbatim
4702 #: ../src/guestfs-actions.pod:342
4703 #, no-wrap
4704 msgid ""
4705 " char *\n"
4706 " guestfs_aug_get (guestfs_h *g,\n"
4707 "                  const char *augpath);\n"
4708 "\n"
4709 msgstr ""
4710
4711 # type: textblock
4712 #: ../src/guestfs-actions.pod:346 ../fish/guestfish-actions.pod:220
4713 msgid ""
4714 "Look up the value associated with C<path>.  If C<path> matches exactly one "
4715 "node, the C<value> is returned."
4716 msgstr ""
4717
4718 # type: textblock
4719 #: ../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:2548 ../src/guestfs-actions.pod:2684 ../src/guestfs-actions.pod:2713 ../src/guestfs-actions.pod:2735 ../src/guestfs-actions.pod:2795 ../src/guestfs-actions.pod:2818 ../src/guestfs-actions.pod:3195 ../src/guestfs-actions.pod:3545 ../src/guestfs-actions.pod:3715 ../src/guestfs-actions.pod:3825 ../src/guestfs-actions.pod:4488 ../src/guestfs-actions.pod:4681 ../src/guestfs-actions.pod:4851 ../src/guestfs-actions.pod:5029 ../src/guestfs-actions.pod:5078 ../src/guestfs-actions.pod:5641 ../src/guestfs-actions.pod:5657 ../src/guestfs-actions.pod:5674 ../src/guestfs-actions.pod:5698 ../src/guestfs-actions.pod:6362 ../src/guestfs-actions.pod:6381 ../src/guestfs-actions.pod:6399 ../src/guestfs-actions.pod:6579 ../src/guestfs-actions.pod:6851
4720 msgid ""
4721 "This function returns a string, or NULL on error.  I<The caller must free "
4722 "the returned string after use>."
4723 msgstr ""
4724
4725 # type: =head2
4726 #: ../src/guestfs-actions.pod:354
4727 msgid "guestfs_aug_init"
4728 msgstr ""
4729
4730 # type: verbatim
4731 #: ../src/guestfs-actions.pod:356
4732 #, no-wrap
4733 msgid ""
4734 " int\n"
4735 " guestfs_aug_init (guestfs_h *g,\n"
4736 "                   const char *root,\n"
4737 "                   int flags);\n"
4738 "\n"
4739 msgstr ""
4740
4741 # type: textblock
4742 #: ../src/guestfs-actions.pod:361 ../fish/guestfish-actions.pod:227
4743 msgid ""
4744 "Create a new Augeas handle for editing configuration files.  If there was "
4745 "any previous Augeas handle associated with this guestfs session, then it is "
4746 "closed."
4747 msgstr ""
4748
4749 # type: textblock
4750 #: ../src/guestfs-actions.pod:365
4751 msgid "You must call this before using any other C<guestfs_aug_*> commands."
4752 msgstr ""
4753
4754 # type: textblock
4755 #: ../src/guestfs-actions.pod:368 ../fish/guestfish-actions.pod:234
4756 msgid "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
4757 msgstr ""
4758
4759 # type: textblock
4760 #: ../src/guestfs-actions.pod:371 ../fish/guestfish-actions.pod:237
4761 msgid ""
4762 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
4763 "logical I<or> of the following integers:"
4764 msgstr ""
4765
4766 # type: =item
4767 #: ../src/guestfs-actions.pod:377 ../fish/guestfish-actions.pod:243
4768 msgid "C<AUG_SAVE_BACKUP> = 1"
4769 msgstr ""
4770
4771 # type: textblock
4772 #: ../src/guestfs-actions.pod:379 ../fish/guestfish-actions.pod:245
4773 msgid "Keep the original file with a C<.augsave> extension."
4774 msgstr ""
4775
4776 # type: =item
4777 #: ../src/guestfs-actions.pod:381 ../fish/guestfish-actions.pod:247
4778 msgid "C<AUG_SAVE_NEWFILE> = 2"
4779 msgstr ""
4780
4781 # type: textblock
4782 #: ../src/guestfs-actions.pod:383 ../fish/guestfish-actions.pod:249
4783 msgid ""
4784 "Save changes into a file with extension C<.augnew>, and do not overwrite "
4785 "original.  Overrides C<AUG_SAVE_BACKUP>."
4786 msgstr ""
4787
4788 # type: =item
4789 #: ../src/guestfs-actions.pod:386 ../fish/guestfish-actions.pod:252
4790 msgid "C<AUG_TYPE_CHECK> = 4"
4791 msgstr ""
4792
4793 # type: textblock
4794 #: ../src/guestfs-actions.pod:388 ../fish/guestfish-actions.pod:254
4795 msgid "Typecheck lenses (can be expensive)."
4796 msgstr ""
4797
4798 # type: =item
4799 #: ../src/guestfs-actions.pod:390 ../fish/guestfish-actions.pod:256
4800 msgid "C<AUG_NO_STDINC> = 8"
4801 msgstr ""
4802
4803 # type: textblock
4804 #: ../src/guestfs-actions.pod:392 ../fish/guestfish-actions.pod:258
4805 msgid "Do not use standard load path for modules."
4806 msgstr ""
4807
4808 # type: =item
4809 #: ../src/guestfs-actions.pod:394 ../fish/guestfish-actions.pod:260
4810 msgid "C<AUG_SAVE_NOOP> = 16"
4811 msgstr ""
4812
4813 # type: textblock
4814 #: ../src/guestfs-actions.pod:396 ../fish/guestfish-actions.pod:262
4815 msgid "Make save a no-op, just record what would have been changed."
4816 msgstr ""
4817
4818 # type: =item
4819 #: ../src/guestfs-actions.pod:398 ../fish/guestfish-actions.pod:264
4820 msgid "C<AUG_NO_LOAD> = 32"
4821 msgstr ""
4822
4823 # type: textblock
4824 #: ../src/guestfs-actions.pod:400
4825 msgid "Do not load the tree in C<guestfs_aug_init>."
4826 msgstr ""
4827
4828 # type: textblock
4829 #: ../src/guestfs-actions.pod:404
4830 msgid "To close the handle, you can call C<guestfs_aug_close>."
4831 msgstr ""
4832
4833 # type: textblock
4834 #: ../src/guestfs-actions.pod:406 ../fish/guestfish-actions.pod:272
4835 msgid "To find out more about Augeas, see L<http://augeas.net/>."
4836 msgstr ""
4837
4838 # type: =head2
4839 #: ../src/guestfs-actions.pod:412
4840 msgid "guestfs_aug_insert"
4841 msgstr ""
4842
4843 # type: verbatim
4844 #: ../src/guestfs-actions.pod:414
4845 #, no-wrap
4846 msgid ""
4847 " int\n"
4848 " guestfs_aug_insert (guestfs_h *g,\n"
4849 "                     const char *augpath,\n"
4850 "                     const char *label,\n"
4851 "                     int before);\n"
4852 "\n"
4853 msgstr ""
4854
4855 # type: textblock
4856 #: ../src/guestfs-actions.pod:420 ../fish/guestfish-actions.pod:278
4857 msgid ""
4858 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
4859 "or after C<path> (depending on the boolean flag C<before>)."
4860 msgstr ""
4861
4862 # type: textblock
4863 #: ../src/guestfs-actions.pod:424 ../fish/guestfish-actions.pod:282
4864 msgid ""
4865 "C<path> must match exactly one existing node in the tree, and C<label> must "
4866 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
4867 msgstr ""
4868
4869 # type: =head2
4870 #: ../src/guestfs-actions.pod:432
4871 msgid "guestfs_aug_load"
4872 msgstr ""
4873
4874 # type: verbatim
4875 #: ../src/guestfs-actions.pod:434
4876 #, no-wrap
4877 msgid ""
4878 " int\n"
4879 " guestfs_aug_load (guestfs_h *g);\n"
4880 "\n"
4881 msgstr ""
4882
4883 # type: textblock
4884 #: ../src/guestfs-actions.pod:437 ../fish/guestfish-actions.pod:290
4885 msgid "Load files into the tree."
4886 msgstr ""
4887
4888 # type: textblock
4889 #: ../src/guestfs-actions.pod:439 ../fish/guestfish-actions.pod:292
4890 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
4891 msgstr ""
4892
4893 # type: =head2
4894 #: ../src/guestfs-actions.pod:446
4895 msgid "guestfs_aug_ls"
4896 msgstr ""
4897
4898 # type: verbatim
4899 #: ../src/guestfs-actions.pod:448
4900 #, no-wrap
4901 msgid ""
4902 " char **\n"
4903 " guestfs_aug_ls (guestfs_h *g,\n"
4904 "                 const char *augpath);\n"
4905 "\n"
4906 msgstr ""
4907
4908 # type: textblock
4909 #: ../src/guestfs-actions.pod:452
4910 msgid ""
4911 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
4912 "sorting the resulting nodes into alphabetical order."
4913 msgstr ""
4914
4915 # type: textblock
4916 #: ../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:2573 ../src/guestfs-actions.pod:2754 ../src/guestfs-actions.pod:2860 ../src/guestfs-actions.pod:3115 ../src/guestfs-actions.pod:3177 ../src/guestfs-actions.pod:3282 ../src/guestfs-actions.pod:3687 ../src/guestfs-actions.pod:4303 ../src/guestfs-actions.pod:4823 ../src/guestfs-actions.pod:4949 ../src/guestfs-actions.pod:5063 ../src/guestfs-actions.pod:5714 ../src/guestfs-actions.pod:5775 ../src/guestfs-actions.pod:5830 ../src/guestfs-actions.pod:5976 ../src/guestfs-actions.pod:6000 ../src/guestfs-actions.pod:6472 ../src/guestfs-actions.pod:6492 ../src/guestfs-actions.pod:6539 ../src/guestfs-actions.pod:6704 ../src/guestfs-actions.pod:6723 ../src/guestfs-actions.pod:6808 ../src/guestfs-actions.pod:6827 ../src/guestfs-actions.pod:6873 ../src/guestfs-actions.pod:6892
4917 msgid ""
4918 "This function returns a NULL-terminated array of strings (like "
4919 "L<environ(3)>), or NULL if there was an error.  I<The caller must free the "
4920 "strings and the array after use>."
4921 msgstr ""
4922
4923 # type: textblock
4924 #: ../src/guestfs-actions.pod:459 ../src/guestfs-actions.pod:990 ../src/guestfs-actions.pod:1008 ../src/guestfs-actions.pod:1413 ../src/guestfs-actions.pod:2938 ../src/guestfs-actions.pod:2969 ../src/guestfs-actions.pod:3528 ../src/guestfs-actions.pod:3578 ../src/guestfs-actions.pod:3765 ../src/guestfs-actions.pod:3798 ../src/guestfs-actions.pod:3961 ../src/guestfs-actions.pod:4307 ../src/guestfs-actions.pod:4764 ../src/guestfs-actions.pod:5142 ../src/guestfs-actions.pod:5156 ../src/guestfs-actions.pod:5168 ../src/guestfs-actions.pod:5576 ../src/guestfs-actions.pod:6214 ../src/guestfs-actions.pod:6227 ../src/guestfs-actions.pod:6456 ../src/guestfs-actions.pod:6659 ../src/guestfs-actions.pod:6692
4925 msgid "(Added in 0.8)"
4926 msgstr ""
4927
4928 # type: =head2
4929 #: ../src/guestfs-actions.pod:461
4930 msgid "guestfs_aug_match"
4931 msgstr ""
4932
4933 # type: verbatim
4934 #: ../src/guestfs-actions.pod:463
4935 #, no-wrap
4936 msgid ""
4937 " char **\n"
4938 " guestfs_aug_match (guestfs_h *g,\n"
4939 "                    const char *augpath);\n"
4940 "\n"
4941 msgstr ""
4942
4943 # type: textblock
4944 #: ../src/guestfs-actions.pod:467 ../fish/guestfish-actions.pod:306
4945 msgid ""
4946 "Returns a list of paths which match the path expression C<path>.  The "
4947 "returned paths are sufficiently qualified so that they match exactly one "
4948 "node in the current tree."
4949 msgstr ""
4950
4951 # type: =head2
4952 #: ../src/guestfs-actions.pod:477
4953 msgid "guestfs_aug_mv"
4954 msgstr ""
4955
4956 # type: verbatim
4957 #: ../src/guestfs-actions.pod:479
4958 #, no-wrap
4959 msgid ""
4960 " int\n"
4961 " guestfs_aug_mv (guestfs_h *g,\n"
4962 "                 const char *src,\n"
4963 "                 const char *dest);\n"
4964 "\n"
4965 msgstr ""
4966
4967 # type: textblock
4968 #: ../src/guestfs-actions.pod:484 ../fish/guestfish-actions.pod:314
4969 msgid ""
4970 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
4971 "C<dest> is overwritten if it exists."
4972 msgstr ""
4973
4974 # type: =head2
4975 #: ../src/guestfs-actions.pod:491
4976 msgid "guestfs_aug_rm"
4977 msgstr ""
4978
4979 # type: verbatim
4980 #: ../src/guestfs-actions.pod:493
4981 #, no-wrap
4982 msgid ""
4983 " int\n"
4984 " guestfs_aug_rm (guestfs_h *g,\n"
4985 "                 const char *augpath);\n"
4986 "\n"
4987 msgstr ""
4988
4989 # type: textblock
4990 #: ../src/guestfs-actions.pod:497 ../fish/guestfish-actions.pod:321
4991 msgid "Remove C<path> and all of its children."
4992 msgstr ""
4993
4994 # type: textblock
4995 #: ../src/guestfs-actions.pod:499 ../fish/guestfish-actions.pod:323
4996 msgid "On success this returns the number of entries which were removed."
4997 msgstr ""
4998
4999 # type: =head2
5000 #: ../src/guestfs-actions.pod:505
5001 msgid "guestfs_aug_save"
5002 msgstr ""
5003
5004 # type: verbatim
5005 #: ../src/guestfs-actions.pod:507
5006 #, no-wrap
5007 msgid ""
5008 " int\n"
5009 " guestfs_aug_save (guestfs_h *g);\n"
5010 "\n"
5011 msgstr ""
5012
5013 # type: textblock
5014 #: ../src/guestfs-actions.pod:510 ../fish/guestfish-actions.pod:329
5015 msgid "This writes all pending changes to disk."
5016 msgstr ""
5017
5018 # type: textblock
5019 #: ../src/guestfs-actions.pod:512
5020 msgid ""
5021 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
5022 "are saved."
5023 msgstr ""
5024
5025 # type: =head2
5026 #: ../src/guestfs-actions.pod:519
5027 msgid "guestfs_aug_set"
5028 msgstr ""
5029
5030 # type: verbatim
5031 #: ../src/guestfs-actions.pod:521
5032 #, no-wrap
5033 msgid ""
5034 " int\n"
5035 " guestfs_aug_set (guestfs_h *g,\n"
5036 "                  const char *augpath,\n"
5037 "                  const char *val);\n"
5038 "\n"
5039 msgstr ""
5040
5041 # type: textblock
5042 #: ../src/guestfs-actions.pod:526 ../fish/guestfish-actions.pod:338
5043 msgid "Set the value associated with C<path> to C<val>."
5044 msgstr ""
5045
5046 # type: textblock
5047 #: ../src/guestfs-actions.pod:528
5048 msgid ""
5049 "In the Augeas API, it is possible to clear a node by setting the value to "
5050 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
5051 "this call.  Instead you must use the C<guestfs_aug_clear> call."
5052 msgstr ""
5053
5054 # type: =head2
5055 #: ../src/guestfs-actions.pod:537
5056 msgid "guestfs_available"
5057 msgstr ""
5058
5059 # type: verbatim
5060 #: ../src/guestfs-actions.pod:539
5061 #, no-wrap
5062 msgid ""
5063 " int\n"
5064 " guestfs_available (guestfs_h *g,\n"
5065 "                    char *const *groups);\n"
5066 "\n"
5067 msgstr ""
5068
5069 # type: textblock
5070 #: ../src/guestfs-actions.pod:543 ../fish/guestfish-actions.pod:349
5071 msgid ""
5072 "This command is used to check the availability of some groups of "
5073 "functionality in the appliance, which not all builds of the libguestfs "
5074 "appliance will be able to provide."
5075 msgstr ""
5076
5077 # type: textblock
5078 #: ../src/guestfs-actions.pod:547
5079 msgid ""
5080 "The libguestfs groups, and the functions that those groups correspond to, "
5081 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
5082 "runtime by calling C<guestfs_available_all_groups>."
5083 msgstr ""
5084
5085 # type: textblock
5086 #: ../src/guestfs-actions.pod:552 ../fish/guestfish-actions.pod:358
5087 msgid ""
5088 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", "
5089 "\"augeas\"]> would check for the availability of the Linux inotify functions "
5090 "and Augeas (configuration file editing) functions."
5091 msgstr ""
5092
5093 # type: textblock
5094 #: ../src/guestfs-actions.pod:557 ../fish/guestfish-actions.pod:363
5095 msgid "The command returns no error if I<all> requested groups are available."
5096 msgstr ""
5097
5098 # type: textblock
5099 #: ../src/guestfs-actions.pod:559 ../fish/guestfish-actions.pod:365
5100 msgid ""
5101 "It fails with an error if one or more of the requested groups is unavailable "
5102 "in the appliance."
5103 msgstr ""
5104
5105 # type: textblock
5106 #: ../src/guestfs-actions.pod:562 ../fish/guestfish-actions.pod:368
5107 msgid ""
5108 "If an unknown group name is included in the list of groups then an error is "
5109 "always returned."
5110 msgstr ""
5111
5112 # type: textblock
5113 #: ../src/guestfs-actions.pod:565 ../fish/guestfish-actions.pod:371
5114 msgid "I<Notes:>"
5115 msgstr ""
5116
5117 # type: textblock
5118 #: ../src/guestfs-actions.pod:571
5119 msgid "You must call C<guestfs_launch> before calling this function."
5120 msgstr ""
5121
5122 # type: textblock
5123 #: ../src/guestfs-actions.pod:573 ../fish/guestfish-actions.pod:379
5124 msgid ""
5125 "The reason is because we don't know what groups are supported by the "
5126 "appliance/daemon until it is running and can be queried."
5127 msgstr ""
5128
5129 # type: textblock
5130 #: ../src/guestfs-actions.pod:579 ../fish/guestfish-actions.pod:385
5131 msgid ""
5132 "If a group of functions is available, this does not necessarily mean that "
5133 "they will work.  You still have to check for errors when calling individual "
5134 "API functions even if they are available."
5135 msgstr ""
5136
5137 # type: textblock
5138 #: ../src/guestfs-actions.pod:586 ../fish/guestfish-actions.pod:392
5139 msgid ""
5140 "It is usually the job of distro packagers to build complete functionality "
5141 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
5142 "with all requirements satisfied, will support everything."
5143 msgstr ""
5144
5145 # type: textblock
5146 #: ../src/guestfs-actions.pod:593
5147 msgid ""
5148 "This call was added in version C<1.0.80>.  In previous versions of "
5149 "libguestfs all you could do would be to speculatively execute a command to "
5150 "find out if the daemon implemented it.  See also C<guestfs_version>."
5151 msgstr ""
5152
5153 # type: textblock
5154 #: ../src/guestfs-actions.pod:602 ../src/guestfs-actions.pod:1163
5155 msgid "(Added in 1.0.80)"
5156 msgstr ""
5157
5158 # type: =head2
5159 #: ../src/guestfs-actions.pod:604
5160 msgid "guestfs_available_all_groups"
5161 msgstr ""
5162
5163 # type: verbatim
5164 #: ../src/guestfs-actions.pod:606
5165 #, no-wrap
5166 msgid ""
5167 " char **\n"
5168 " guestfs_available_all_groups (guestfs_h *g);\n"
5169 "\n"
5170 msgstr ""
5171
5172 # type: textblock
5173 #: ../src/guestfs-actions.pod:609
5174 msgid ""
5175 "This command returns a list of all optional groups that this daemon knows "
5176 "about.  Note this returns both supported and unsupported groups.  To find "
5177 "out which ones the daemon can actually support you have to call "
5178 "C<guestfs_available> on each member of the returned list."
5179 msgstr ""
5180
5181 # type: textblock
5182 #: ../src/guestfs-actions.pod:615
5183 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
5184 msgstr ""
5185
5186 # type: textblock
5187 #: ../src/guestfs-actions.pod:621
5188 msgid "(Added in 1.3.15)"
5189 msgstr ""
5190
5191 # type: =head2
5192 #: ../src/guestfs-actions.pod:623
5193 msgid "guestfs_base64_in"
5194 msgstr ""
5195
5196 # type: verbatim
5197 #: ../src/guestfs-actions.pod:625
5198 #, no-wrap
5199 msgid ""
5200 " int\n"
5201 " guestfs_base64_in (guestfs_h *g,\n"
5202 "                    const char *base64file,\n"
5203 "                    const char *filename);\n"
5204 "\n"
5205 msgstr ""
5206
5207 # type: textblock
5208 #: ../src/guestfs-actions.pod:630 ../fish/guestfish-actions.pod:422
5209 msgid "This command uploads base64-encoded data from C<base64file> to C<filename>."
5210 msgstr ""
5211
5212 # type: textblock
5213 #: ../src/guestfs-actions.pod:635 ../src/guestfs-actions.pod:649
5214 msgid "(Added in 1.3.5)"
5215 msgstr ""
5216
5217 # type: =head2
5218 #: ../src/guestfs-actions.pod:637
5219 msgid "guestfs_base64_out"
5220 msgstr ""
5221
5222 # type: verbatim
5223 #: ../src/guestfs-actions.pod:639
5224 #, no-wrap
5225 msgid ""
5226 " int\n"
5227 " guestfs_base64_out (guestfs_h *g,\n"
5228 "                     const char *filename,\n"
5229 "                     const char *base64file);\n"
5230 "\n"
5231 msgstr ""
5232
5233 # type: textblock
5234 #: ../src/guestfs-actions.pod:644 ../fish/guestfish-actions.pod:431
5235 msgid ""
5236 "This command downloads the contents of C<filename>, writing it out to local "
5237 "file C<base64file> encoded as base64."
5238 msgstr ""
5239
5240 # type: =head2
5241 #: ../src/guestfs-actions.pod:651
5242 msgid "guestfs_blockdev_flushbufs"
5243 msgstr ""
5244
5245 # type: verbatim
5246 #: ../src/guestfs-actions.pod:653
5247 #, no-wrap
5248 msgid ""
5249 " int\n"
5250 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
5251 "                             const char *device);\n"
5252 "\n"
5253 msgstr ""
5254
5255 # type: textblock
5256 #: ../src/guestfs-actions.pod:657 ../fish/guestfish-actions.pod:440
5257 msgid "This tells the kernel to flush internal buffers associated with C<device>."
5258 msgstr ""
5259
5260 # type: textblock
5261 #: ../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
5262 msgid "This uses the L<blockdev(8)> command."
5263 msgstr ""
5264
5265 # type: textblock
5266 #: ../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
5267 msgid "(Added in 0.9.3)"
5268 msgstr ""
5269
5270 # type: =head2
5271 #: ../src/guestfs-actions.pod:666
5272 msgid "guestfs_blockdev_getbsz"
5273 msgstr ""
5274
5275 # type: verbatim
5276 #: ../src/guestfs-actions.pod:668
5277 #, no-wrap
5278 msgid ""
5279 " int\n"
5280 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
5281 "                          const char *device);\n"
5282 "\n"
5283 msgstr ""
5284
5285 # type: textblock
5286 #: ../src/guestfs-actions.pod:672 ../fish/guestfish-actions.pod:449
5287 msgid "This returns the block size of a device."
5288 msgstr ""
5289
5290 # type: textblock
5291 #: ../src/guestfs-actions.pod:674 ../src/guestfs-actions.pod:774 ../fish/guestfish-actions.pod:451 ../fish/guestfish-actions.pod:514
5292 msgid ""
5293 "(Note this is different from both I<size in blocks> and I<filesystem block "
5294 "size>)."
5295 msgstr ""
5296
5297 # type: =head2
5298 #: ../src/guestfs-actions.pod:683
5299 msgid "guestfs_blockdev_getro"
5300 msgstr ""
5301
5302 # type: verbatim
5303 #: ../src/guestfs-actions.pod:685
5304 #, no-wrap
5305 msgid ""
5306 " int\n"
5307 " guestfs_blockdev_getro (guestfs_h *g,\n"
5308 "                         const char *device);\n"
5309 "\n"
5310 msgstr ""
5311
5312 # type: textblock
5313 #: ../src/guestfs-actions.pod:689 ../fish/guestfish-actions.pod:460
5314 msgid ""
5315 "Returns a boolean indicating if the block device is read-only (true if "
5316 "read-only, false if not)."
5317 msgstr ""
5318
5319 # type: textblock
5320 #: ../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:2877 ../src/guestfs-actions.pod:2891 ../src/guestfs-actions.pod:2906 ../src/guestfs-actions.pod:2920 ../src/guestfs-actions.pod:2936 ../src/guestfs-actions.pod:2951 ../src/guestfs-actions.pod:2967 ../src/guestfs-actions.pod:2981 ../src/guestfs-actions.pod:2994 ../src/guestfs-actions.pod:3008 ../src/guestfs-actions.pod:3023 ../src/guestfs-actions.pod:3038 ../src/guestfs-actions.pod:4452
5321 msgid "This function returns a C truth value on success or -1 on error."
5322 msgstr ""
5323
5324 # type: =head2
5325 #: ../src/guestfs-actions.pod:698
5326 msgid "guestfs_blockdev_getsize64"
5327 msgstr ""
5328
5329 # type: verbatim
5330 #: ../src/guestfs-actions.pod:700
5331 #, no-wrap
5332 msgid ""
5333 " int64_t\n"
5334 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
5335 "                             const char *device);\n"
5336 "\n"
5337 msgstr ""
5338
5339 # type: textblock
5340 #: ../src/guestfs-actions.pod:704 ../fish/guestfish-actions.pod:469
5341 msgid "This returns the size of the device in bytes."
5342 msgstr ""
5343
5344 # type: textblock
5345 #: ../src/guestfs-actions.pod:706
5346 msgid "See also C<guestfs_blockdev_getsz>."
5347 msgstr ""
5348
5349 # type: =head2
5350 #: ../src/guestfs-actions.pod:714
5351 msgid "guestfs_blockdev_getss"
5352 msgstr ""
5353
5354 # type: verbatim
5355 #: ../src/guestfs-actions.pod:716
5356 #, no-wrap
5357 msgid ""
5358 " int\n"
5359 " guestfs_blockdev_getss (guestfs_h *g,\n"
5360 "                         const char *device);\n"
5361 "\n"
5362 msgstr ""
5363
5364 # type: textblock
5365 #: ../src/guestfs-actions.pod:720 ../fish/guestfish-actions.pod:479
5366 msgid ""
5367 "This returns the size of sectors on a block device.  Usually 512, but can be "
5368 "larger for modern devices."
5369 msgstr ""
5370
5371 # type: textblock
5372 #: ../src/guestfs-actions.pod:723
5373 msgid ""
5374 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
5375 "that)."
5376 msgstr ""
5377
5378 # type: =head2
5379 #: ../src/guestfs-actions.pod:732
5380 msgid "guestfs_blockdev_getsz"
5381 msgstr ""
5382
5383 # type: verbatim
5384 #: ../src/guestfs-actions.pod:734
5385 #, no-wrap
5386 msgid ""
5387 " int64_t\n"
5388 " guestfs_blockdev_getsz (guestfs_h *g,\n"
5389 "                         const char *device);\n"
5390 "\n"
5391 msgstr ""
5392
5393 # type: textblock
5394 #: ../src/guestfs-actions.pod:738 ../fish/guestfish-actions.pod:491
5395 msgid ""
5396 "This returns the size of the device in units of 512-byte sectors (even if "
5397 "the sectorsize isn't 512 bytes ... weird)."
5398 msgstr ""
5399
5400 # type: textblock
5401 #: ../src/guestfs-actions.pod:741
5402 msgid ""
5403 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
5404 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
5405 msgstr ""
5406
5407 # type: =head2
5408 #: ../src/guestfs-actions.pod:751
5409 msgid "guestfs_blockdev_rereadpt"
5410 msgstr ""
5411
5412 # type: verbatim
5413 #: ../src/guestfs-actions.pod:753
5414 #, no-wrap
5415 msgid ""
5416 " int\n"
5417 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
5418 "                            const char *device);\n"
5419 "\n"
5420 msgstr ""
5421
5422 # type: textblock
5423 #: ../src/guestfs-actions.pod:757 ../fish/guestfish-actions.pod:504
5424 msgid "Reread the partition table on C<device>."
5425 msgstr ""
5426
5427 # type: =head2
5428 #: ../src/guestfs-actions.pod:765
5429 msgid "guestfs_blockdev_setbsz"
5430 msgstr ""
5431
5432 # type: verbatim
5433 #: ../src/guestfs-actions.pod:767
5434 #, no-wrap
5435 msgid ""
5436 " int\n"
5437 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
5438 "                          const char *device,\n"
5439 "                          int blocksize);\n"
5440 "\n"
5441 msgstr ""
5442
5443 # type: textblock
5444 #: ../src/guestfs-actions.pod:772 ../fish/guestfish-actions.pod:512
5445 msgid "This sets the block size of a device."
5446 msgstr ""
5447
5448 # type: =head2
5449 #: ../src/guestfs-actions.pod:783
5450 msgid "guestfs_blockdev_setro"
5451 msgstr ""
5452
5453 # type: verbatim
5454 #: ../src/guestfs-actions.pod:785
5455 #, no-wrap
5456 msgid ""
5457 " int\n"
5458 " guestfs_blockdev_setro (guestfs_h *g,\n"
5459 "                         const char *device);\n"
5460 "\n"
5461 msgstr ""
5462
5463 # type: textblock
5464 #: ../src/guestfs-actions.pod:789 ../fish/guestfish-actions.pod:523
5465 msgid "Sets the block device named C<device> to read-only."
5466 msgstr ""
5467
5468 # type: =head2
5469 #: ../src/guestfs-actions.pod:797
5470 msgid "guestfs_blockdev_setrw"
5471 msgstr ""
5472
5473 # type: verbatim
5474 #: ../src/guestfs-actions.pod:799
5475 #, no-wrap
5476 msgid ""
5477 " int\n"
5478 " guestfs_blockdev_setrw (guestfs_h *g,\n"
5479 "                         const char *device);\n"
5480 "\n"
5481 msgstr ""
5482
5483 # type: textblock
5484 #: ../src/guestfs-actions.pod:803 ../fish/guestfish-actions.pod:531
5485 msgid "Sets the block device named C<device> to read-write."
5486 msgstr ""
5487
5488 # type: =head2
5489 #: ../src/guestfs-actions.pod:811
5490 msgid "guestfs_case_sensitive_path"
5491 msgstr ""
5492
5493 # type: verbatim
5494 #: ../src/guestfs-actions.pod:813
5495 #, no-wrap
5496 msgid ""
5497 " char *\n"
5498 " guestfs_case_sensitive_path (guestfs_h *g,\n"
5499 "                              const char *path);\n"
5500 "\n"
5501 msgstr ""
5502
5503 # type: textblock
5504 #: ../src/guestfs-actions.pod:817 ../fish/guestfish-actions.pod:539
5505 msgid ""
5506 "This can be used to resolve case insensitive paths on a filesystem which is "
5507 "case sensitive.  The use case is to resolve paths which you have read from "
5508 "Windows configuration files or the Windows Registry, to the true path."
5509 msgstr ""
5510
5511 # type: textblock
5512 #: ../src/guestfs-actions.pod:822 ../fish/guestfish-actions.pod:544
5513 msgid ""
5514 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
5515 "(and probably others), which is that although the underlying filesystem is "
5516 "case-insensitive, the driver exports the filesystem to Linux as "
5517 "case-sensitive."
5518 msgstr ""
5519
5520 # type: textblock
5521 #: ../src/guestfs-actions.pod:827 ../fish/guestfish-actions.pod:549
5522 msgid ""
5523 "One consequence of this is that special directories such as C<c:\\windows> "
5524 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
5525 "precise details of how they were created.  In Windows itself this would not "
5526 "be a problem."
5527 msgstr ""
5528
5529 # type: textblock
5530 #: ../src/guestfs-actions.pod:833 ../fish/guestfish-actions.pod:555
5531 msgid ""
5532 "Bug or feature? You decide: "
5533 "L<http://www.tuxera.com/community/ntfs-3g-faq/#posixfilenames1>"
5534 msgstr ""
5535
5536 # type: textblock
5537 #: ../src/guestfs-actions.pod:836 ../fish/guestfish-actions.pod:558
5538 msgid ""
5539 "This function resolves the true case of each element in the path and returns "
5540 "the case-sensitive path."
5541 msgstr ""
5542
5543 # type: textblock
5544 #: ../src/guestfs-actions.pod:839
5545 msgid ""
5546 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return "
5547 "C<\"/WINDOWS/system32\"> (the exact return value would depend on details of "
5548 "how the directories were originally created under Windows)."
5549 msgstr ""
5550
5551 # type: textblock
5552 #: ../src/guestfs-actions.pod:844 ../fish/guestfish-actions.pod:566
5553 msgid "I<Note>: This function does not handle drive names, backslashes etc."
5554 msgstr ""
5555
5556 # type: textblock
5557 #: ../src/guestfs-actions.pod:847
5558 msgid "See also C<guestfs_realpath>."
5559 msgstr ""
5560
5561 # type: textblock
5562 #: ../src/guestfs-actions.pod:852 ../src/guestfs-actions.pod:6384
5563 msgid "(Added in 1.0.75)"
5564 msgstr ""
5565
5566 # type: =head2
5567 #: ../src/guestfs-actions.pod:854
5568 msgid "guestfs_cat"
5569 msgstr ""
5570
5571 # type: verbatim
5572 #: ../src/guestfs-actions.pod:856
5573 #, no-wrap
5574 msgid ""
5575 " char *\n"
5576 " guestfs_cat (guestfs_h *g,\n"
5577 "              const char *path);\n"
5578 "\n"
5579 msgstr ""
5580
5581 # type: textblock
5582 #: ../src/guestfs-actions.pod:860 ../src/guestfs-actions.pod:4939 ../fish/guestfish-actions.pod:575 ../fish/guestfish-actions.pod:3271
5583 msgid "Return the contents of the file named C<path>."
5584 msgstr ""
5585
5586 # type: textblock
5587 #: ../src/guestfs-actions.pod:862
5588 msgid ""
5589 "Note that this function cannot correctly handle binary files (specifically, "
5590 "files containing C<\\0> character which is treated as end of string).  For "
5591 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
5592 "functions which have a more complex interface."
5593 msgstr ""
5594
5595 # type: textblock
5596 #: ../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:4721 ../src/guestfs-actions.pod:4747 ../src/guestfs-actions.pod:4878 ../src/guestfs-actions.pod:4904 ../src/guestfs-actions.pod:4928 ../src/guestfs-actions.pod:5779 ../src/guestfs-actions.pod:5834 ../src/guestfs-actions.pod:5980 ../src/guestfs-actions.pod:6004 ../src/guestfs-actions.pod:6656 ../src/guestfs-actions.pod:6682 ../src/guestfs-actions.pod:6708 ../src/guestfs-actions.pod:6727 ../src/guestfs-actions.pod:6812 ../src/guestfs-actions.pod:6831 ../src/guestfs-actions.pod:6877 ../src/guestfs-actions.pod:6896 ../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:3141 ../fish/guestfish-actions.pod:3156 ../fish/guestfish-actions.pod:3232 ../fish/guestfish-actions.pod:3249 ../fish/guestfish-actions.pod:3264 ../fish/guestfish-actions.pod:3847 ../fish/guestfish-actions.pod:3893 ../fish/guestfish-actions.pod:3978 ../fish/guestfish-actions.pod:3993 ../fish/guestfish-actions.pod:4403 ../fish/guestfish-actions.pod:4421 ../fish/guestfish-actions.pod:4438 ../fish/guestfish-actions.pod:4448 ../fish/guestfish-actions.pod:4496 ../fish/guestfish-actions.pod:4506 ../fish/guestfish-actions.pod:4535 ../fish/guestfish-actions.pod:4545
5597 msgid ""
5598 "Because of the message protocol, there is a transfer limit of somewhere "
5599 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
5600 msgstr ""
5601
5602 # type: textblock
5603 #: ../src/guestfs-actions.pod:873 ../src/guestfs-actions.pod:3119 ../src/guestfs-actions.pod:3181 ../src/guestfs-actions.pod:3198 ../src/guestfs-actions.pod:3286 ../src/guestfs-actions.pod:3691 ../src/guestfs-actions.pod:3705 ../src/guestfs-actions.pod:4827 ../src/guestfs-actions.pod:4841 ../src/guestfs-actions.pod:6543 ../src/guestfs-actions.pod:6557
5604 msgid "(Added in 0.4)"
5605 msgstr ""
5606
5607 # type: =head2
5608 #: ../src/guestfs-actions.pod:875
5609 msgid "guestfs_checksum"
5610 msgstr ""
5611
5612 # type: verbatim
5613 #: ../src/guestfs-actions.pod:877
5614 #, no-wrap
5615 msgid ""
5616 " char *\n"
5617 " guestfs_checksum (guestfs_h *g,\n"
5618 "                   const char *csumtype,\n"
5619 "                   const char *path);\n"
5620 "\n"
5621 msgstr ""
5622
5623 # type: textblock
5624 #: ../src/guestfs-actions.pod:882 ../fish/guestfish-actions.pod:589
5625 msgid "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
5626 msgstr ""
5627
5628 # type: textblock
5629 #: ../src/guestfs-actions.pod:885 ../fish/guestfish-actions.pod:592
5630 msgid ""
5631 "The type of checksum to compute is given by the C<csumtype> parameter which "
5632 "must have one of the following values:"
5633 msgstr ""
5634
5635 # type: =item
5636 #: ../src/guestfs-actions.pod:890 ../fish/guestfish-actions.pod:597
5637 msgid "C<crc>"
5638 msgstr ""
5639
5640 # type: textblock
5641 #: ../src/guestfs-actions.pod:892 ../fish/guestfish-actions.pod:599
5642 msgid ""
5643 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
5644 "C<cksum> command."
5645 msgstr ""
5646
5647 # type: =item
5648 #: ../src/guestfs-actions.pod:895 ../fish/guestfish-actions.pod:602
5649 msgid "C<md5>"
5650 msgstr ""
5651
5652 # type: textblock
5653 #: ../src/guestfs-actions.pod:897 ../fish/guestfish-actions.pod:604
5654 msgid "Compute the MD5 hash (using the C<md5sum> program)."
5655 msgstr ""
5656
5657 # type: =item
5658 #: ../src/guestfs-actions.pod:899 ../fish/guestfish-actions.pod:606
5659 msgid "C<sha1>"
5660 msgstr ""
5661
5662 # type: textblock
5663 #: ../src/guestfs-actions.pod:901 ../fish/guestfish-actions.pod:608
5664 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
5665 msgstr ""
5666
5667 # type: =item
5668 #: ../src/guestfs-actions.pod:903 ../fish/guestfish-actions.pod:610
5669 msgid "C<sha224>"
5670 msgstr ""
5671
5672 # type: textblock
5673 #: ../src/guestfs-actions.pod:905 ../fish/guestfish-actions.pod:612
5674 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
5675 msgstr ""
5676
5677 # type: =item
5678 #: ../src/guestfs-actions.pod:907 ../fish/guestfish-actions.pod:614
5679 msgid "C<sha256>"
5680 msgstr ""
5681
5682 # type: textblock
5683 #: ../src/guestfs-actions.pod:909 ../fish/guestfish-actions.pod:616
5684 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
5685 msgstr ""
5686
5687 # type: =item
5688 #: ../src/guestfs-actions.pod:911 ../fish/guestfish-actions.pod:618
5689 msgid "C<sha384>"
5690 msgstr ""
5691
5692 # type: textblock
5693 #: ../src/guestfs-actions.pod:913 ../fish/guestfish-actions.pod:620
5694 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
5695 msgstr ""
5696
5697 # type: =item
5698 #: ../src/guestfs-actions.pod:915 ../fish/guestfish-actions.pod:622
5699 msgid "C<sha512>"
5700 msgstr ""
5701
5702 # type: textblock
5703 #: ../src/guestfs-actions.pod:917 ../fish/guestfish-actions.pod:624
5704 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
5705 msgstr ""
5706
5707 # type: textblock
5708 #: ../src/guestfs-actions.pod:921 ../fish/guestfish-actions.pod:628
5709 msgid "The checksum is returned as a printable string."
5710 msgstr ""
5711
5712 # type: textblock
5713 #: ../src/guestfs-actions.pod:923
5714 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
5715 msgstr ""
5716
5717 # type: textblock
5718 #: ../src/guestfs-actions.pod:925
5719 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
5720 msgstr ""
5721
5722 # type: textblock
5723 #: ../src/guestfs-actions.pod:930 ../src/guestfs-actions.pod:1238 ../src/guestfs-actions.pod:2060 ../src/guestfs-actions.pod:2893 ../src/guestfs-actions.pod:2922 ../src/guestfs-actions.pod:2983 ../src/guestfs-actions.pod:3010 ../src/guestfs-actions.pod:6245
5724 msgid "(Added in 1.0.2)"
5725 msgstr ""
5726
5727 # type: =head2
5728 #: ../src/guestfs-actions.pod:932
5729 msgid "guestfs_checksum_device"
5730 msgstr ""
5731
5732 # type: verbatim
5733 #: ../src/guestfs-actions.pod:934
5734 #, no-wrap
5735 msgid ""
5736 " char *\n"
5737 " guestfs_checksum_device (guestfs_h *g,\n"
5738 "                          const char *csumtype,\n"
5739 "                          const char *device);\n"
5740 "\n"
5741 msgstr ""
5742
5743 # type: textblock
5744 #: ../src/guestfs-actions.pod:939
5745 msgid ""
5746 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
5747 "device named C<device>.  For the types of checksums supported see the "
5748 "C<guestfs_checksum> command."
5749 msgstr ""
5750
5751 # type: textblock
5752 #: ../src/guestfs-actions.pod:946 ../src/guestfs-actions.pod:4358 ../src/guestfs-actions.pod:4417 ../src/guestfs-actions.pod:4454 ../src/guestfs-actions.pod:4472 ../src/guestfs-actions.pod:4648 ../src/guestfs-actions.pod:6159 ../src/guestfs-actions.pod:6173 ../src/guestfs-actions.pod:6569
5753 msgid "(Added in 1.3.2)"
5754 msgstr ""
5755
5756 # type: =head2
5757 #: ../src/guestfs-actions.pod:948
5758 msgid "guestfs_checksums_out"
5759 msgstr ""
5760
5761 # type: verbatim
5762 #: ../src/guestfs-actions.pod:950
5763 #, no-wrap
5764 msgid ""
5765 " int\n"
5766 " guestfs_checksums_out (guestfs_h *g,\n"
5767 "                        const char *csumtype,\n"
5768 "                        const char *directory,\n"
5769 "                        const char *sumsfile);\n"
5770 "\n"
5771 msgstr ""
5772
5773 # type: textblock
5774 #: ../src/guestfs-actions.pod:956 ../fish/guestfish-actions.pod:646
5775 msgid ""
5776 "This command computes the checksums of all regular files in C<directory> and "
5777 "then emits a list of those checksums to the local output file C<sumsfile>."
5778 msgstr ""
5779
5780 # type: textblock
5781 #: ../src/guestfs-actions.pod:960 ../fish/guestfish-actions.pod:650
5782 msgid ""
5783 "This can be used for verifying the integrity of a virtual machine.  However "
5784 "to be properly secure you should pay attention to the output of the checksum "
5785 "command (it uses the ones from GNU coreutils).  In particular when the "
5786 "filename is not printable, coreutils uses a special backslash syntax.  For "
5787 "more information, see the GNU coreutils info file."
5788 msgstr ""
5789
5790 # type: textblock
5791 #: ../src/guestfs-actions.pod:970
5792 msgid "(Added in 1.3.7)"
5793 msgstr ""
5794
5795 # type: =head2
5796 #: ../src/guestfs-actions.pod:972
5797 msgid "guestfs_chmod"
5798 msgstr ""
5799
5800 # type: verbatim
5801 #: ../src/guestfs-actions.pod:974
5802 #, no-wrap
5803 msgid ""
5804 " int\n"
5805 " guestfs_chmod (guestfs_h *g,\n"
5806 "                int mode,\n"
5807 "                const char *path);\n"
5808 "\n"
5809 msgstr ""
5810
5811 # type: textblock
5812 #: ../src/guestfs-actions.pod:979 ../fish/guestfish-actions.pod:664
5813 msgid ""
5814 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
5815 "supported."
5816 msgstr ""
5817
5818 # type: textblock
5819 #: ../src/guestfs-actions.pod:982 ../fish/guestfish-actions.pod:667
5820 msgid ""
5821 "I<Note>: When using this command from guestfish, C<mode> by default would be "
5822 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
5823 "C<700>."
5824 msgstr ""
5825
5826 # type: textblock
5827 #: ../src/guestfs-actions.pod:986 ../src/guestfs-actions.pod:3942 ../src/guestfs-actions.pod:4057 ../src/guestfs-actions.pod:4076 ../src/guestfs-actions.pod:4095 ../fish/guestfish-actions.pod:671 ../fish/guestfish-actions.pod:2631 ../fish/guestfish-actions.pod:2716 ../fish/guestfish-actions.pod:2726 ../fish/guestfish-actions.pod:2736
5828 msgid "The mode actually set is affected by the umask."
5829 msgstr ""
5830
5831 # type: =head2
5832 #: ../src/guestfs-actions.pod:992
5833 msgid "guestfs_chown"
5834 msgstr ""
5835
5836 # type: verbatim
5837 #: ../src/guestfs-actions.pod:994
5838 #, no-wrap
5839 msgid ""
5840 " int\n"
5841 " guestfs_chown (guestfs_h *g,\n"
5842 "                int owner,\n"
5843 "                int group,\n"
5844 "                const char *path);\n"
5845 "\n"
5846 msgstr ""
5847
5848 # type: textblock
5849 #: ../src/guestfs-actions.pod:1000 ../fish/guestfish-actions.pod:677
5850 msgid "Change the file owner to C<owner> and group to C<group>."
5851 msgstr ""
5852
5853 # type: textblock
5854 #: ../src/guestfs-actions.pod:1002 ../src/guestfs-actions.pod:3080 ../fish/guestfish-actions.pod:679 ../fish/guestfish-actions.pod:2109
5855 msgid ""
5856 "Only numeric uid and gid are supported.  If you want to use names, you will "
5857 "need to locate and parse the password file yourself (Augeas support makes "
5858 "this relatively easy)."
5859 msgstr ""
5860
5861 # type: =head2
5862 #: ../src/guestfs-actions.pod:1010
5863 msgid "guestfs_command"
5864 msgstr ""
5865
5866 # type: verbatim
5867 #: ../src/guestfs-actions.pod:1012
5868 #, no-wrap
5869 msgid ""
5870 " char *\n"
5871 " guestfs_command (guestfs_h *g,\n"
5872 "                  char *const *arguments);\n"
5873 "\n"
5874 msgstr ""
5875
5876 # type: textblock
5877 #: ../src/guestfs-actions.pod:1016 ../fish/guestfish-actions.pod:687
5878 msgid ""
5879 "This call runs a command from the guest filesystem.  The filesystem must be "
5880 "mounted, and must contain a compatible operating system (ie. something "
5881 "Linux, with the same or compatible processor architecture)."
5882 msgstr ""
5883
5884 # type: textblock
5885 #: ../src/guestfs-actions.pod:1021
5886 msgid ""
5887 "The single parameter is an argv-style list of arguments.  The first element "
5888 "is the name of the program to run.  Subsequent elements are parameters.  The "
5889 "list must be non-empty (ie. must contain a program name).  Note that the "
5890 "command runs directly, and is I<not> invoked via the shell (see "
5891 "C<guestfs_sh>)."
5892 msgstr ""
5893
5894 # type: textblock
5895 #: ../src/guestfs-actions.pod:1028 ../fish/guestfish-actions.pod:699
5896 msgid "The return value is anything printed to I<stdout> by the command."
5897 msgstr ""
5898
5899 # type: textblock
5900 #: ../src/guestfs-actions.pod:1031 ../fish/guestfish-actions.pod:702
5901 msgid ""
5902 "If the command returns a non-zero exit status, then this function returns an "
5903 "error message.  The error message string is the content of I<stderr> from "
5904 "the command."
5905 msgstr ""
5906
5907 # type: textblock
5908 #: ../src/guestfs-actions.pod:1035 ../fish/guestfish-actions.pod:706
5909 msgid ""
5910 "The C<$PATH> environment variable will contain at least C</usr/bin> and "
5911 "C</bin>.  If you require a program from another location, you should provide "
5912 "the full path in the first parameter."
5913 msgstr ""
5914
5915 # type: textblock
5916 #: ../src/guestfs-actions.pod:1040 ../fish/guestfish-actions.pod:711
5917 msgid ""
5918 "Shared libraries and data files required by the program must be available on "
5919 "filesystems which are mounted in the correct places.  It is the caller's "
5920 "responsibility to ensure all filesystems that are needed are mounted at the "
5921 "right locations."
5922 msgstr ""
5923
5924 # type: textblock
5925 #: ../src/guestfs-actions.pod:1052 ../src/guestfs-actions.pod:1072 ../src/guestfs-actions.pod:1535
5926 msgid "(Added in 0.9.1)"
5927 msgstr ""
5928
5929 # type: =head2
5930 #: ../src/guestfs-actions.pod:1054
5931 msgid "guestfs_command_lines"
5932 msgstr ""
5933
5934 # type: verbatim
5935 #: ../src/guestfs-actions.pod:1056
5936 #, no-wrap
5937 msgid ""
5938 " char **\n"
5939 " guestfs_command_lines (guestfs_h *g,\n"
5940 "                        char *const *arguments);\n"
5941 "\n"
5942 msgstr ""
5943
5944 # type: textblock
5945 #: ../src/guestfs-actions.pod:1060
5946 msgid ""
5947 "This is the same as C<guestfs_command>, but splits the result into a list of "
5948 "lines."
5949 msgstr ""
5950
5951 # type: textblock
5952 #: ../src/guestfs-actions.pod:1063
5953 msgid "See also: C<guestfs_sh_lines>"
5954 msgstr ""
5955
5956 # type: =head2
5957 #: ../src/guestfs-actions.pod:1074
5958 msgid "guestfs_config"
5959 msgstr ""
5960
5961 # type: verbatim
5962 #: ../src/guestfs-actions.pod:1076
5963 #, no-wrap
5964 msgid ""
5965 " int\n"
5966 " guestfs_config (guestfs_h *g,\n"
5967 "                 const char *qemuparam,\n"
5968 "                 const char *qemuvalue);\n"
5969 "\n"
5970 msgstr ""
5971
5972 # type: textblock
5973 #: ../src/guestfs-actions.pod:1081 ../fish/guestfish-actions.pod:736
5974 msgid ""
5975 "This can be used to add arbitrary qemu command line parameters of the form "
5976 "C<-param value>.  Actually it's not quite arbitrary - we prevent you from "
5977 "setting some parameters which would interfere with parameters that we use."
5978 msgstr ""
5979
5980 # type: textblock
5981 #: ../src/guestfs-actions.pod:1086 ../fish/guestfish-actions.pod:741
5982 msgid "The first character of C<param> string must be a C<-> (dash)."
5983 msgstr ""
5984
5985 # type: textblock
5986 #: ../src/guestfs-actions.pod:1088 ../fish/guestfish-actions.pod:743
5987 msgid "C<value> can be NULL."
5988 msgstr ""
5989
5990 # type: =head2
5991 #: ../src/guestfs-actions.pod:1094
5992 msgid "guestfs_copy_size"
5993 msgstr ""
5994
5995 # type: verbatim
5996 #: ../src/guestfs-actions.pod:1096
5997 #, no-wrap
5998 msgid ""
5999 " int\n"
6000 " guestfs_copy_size (guestfs_h *g,\n"
6001 "                    const char *src,\n"
6002 "                    const char *dest,\n"
6003 "                    int64_t size);\n"
6004 "\n"
6005 msgstr ""
6006
6007 # type: textblock
6008 #: ../src/guestfs-actions.pod:1102 ../fish/guestfish-actions.pod:749
6009 msgid ""
6010 "This command copies exactly C<size> bytes from one source device or file "
6011 "C<src> to another destination device or file C<dest>."
6012 msgstr ""
6013
6014 # type: textblock
6015 #: ../src/guestfs-actions.pod:1105 ../fish/guestfish-actions.pod:752
6016 msgid ""
6017 "Note this will fail if the source is too short or if the destination is not "
6018 "large enough."
6019 msgstr ""
6020
6021 # type: textblock
6022 #: ../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:6748 ../src/guestfs-actions.pod:6767
6023 msgid ""
6024 "This long-running command can generate progress notification messages so "
6025 "that the caller can display a progress bar or indicator.  To receive these "
6026 "messages, the caller must register a progress callback.  See "
6027 "L<guestfs(3)/guestfs_set_progress_callback>."
6028 msgstr ""
6029
6030 # type: textblock
6031 #: ../src/guestfs-actions.pod:1115 ../src/guestfs-actions.pod:3718 ../src/guestfs-actions.pod:4854 ../src/guestfs-actions.pod:6476 ../src/guestfs-actions.pod:6496 ../src/guestfs-actions.pod:6582
6032 msgid "(Added in 1.0.87)"
6033 msgstr ""
6034
6035 # type: =head2
6036 #: ../src/guestfs-actions.pod:1117
6037 msgid "guestfs_cp"
6038 msgstr ""
6039
6040 # type: verbatim
6041 #: ../src/guestfs-actions.pod:1119
6042 #, no-wrap
6043 msgid ""
6044 " int\n"
6045 " guestfs_cp (guestfs_h *g,\n"
6046 "             const char *src,\n"
6047 "             const char *dest);\n"
6048 "\n"
6049 msgstr ""
6050
6051 # type: textblock
6052 #: ../src/guestfs-actions.pod:1124 ../fish/guestfish-actions.pod:759
6053 msgid ""
6054 "This copies a file from C<src> to C<dest> where C<dest> is either a "
6055 "destination filename or destination directory."
6056 msgstr ""
6057
6058 # type: textblock
6059 #: ../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:4321 ../src/guestfs-actions.pod:4698
6060 msgid "(Added in 1.0.18)"
6061 msgstr ""
6062
6063 # type: =head2
6064 #: ../src/guestfs-actions.pod:1131
6065 msgid "guestfs_cp_a"
6066 msgstr ""
6067
6068 # type: verbatim
6069 #: ../src/guestfs-actions.pod:1133
6070 #, no-wrap
6071 msgid ""
6072 " int\n"
6073 " guestfs_cp_a (guestfs_h *g,\n"
6074 "               const char *src,\n"
6075 "               const char *dest);\n"
6076 "\n"
6077 msgstr ""
6078
6079 # type: textblock
6080 #: ../src/guestfs-actions.pod:1138 ../fish/guestfish-actions.pod:766
6081 msgid ""
6082 "This copies a file or directory from C<src> to C<dest> recursively using the "
6083 "C<cp -a> command."
6084 msgstr ""
6085
6086 # type: =head2
6087 #: ../src/guestfs-actions.pod:1145
6088 msgid "guestfs_dd"
6089 msgstr ""
6090
6091 # type: verbatim
6092 #: ../src/guestfs-actions.pod:1147
6093 #, no-wrap
6094 msgid ""
6095 " int\n"
6096 " guestfs_dd (guestfs_h *g,\n"
6097 "             const char *src,\n"
6098 "             const char *dest);\n"
6099 "\n"
6100 msgstr ""
6101
6102 # type: textblock
6103 #: ../src/guestfs-actions.pod:1152 ../fish/guestfish-actions.pod:773
6104 msgid ""
6105 "This command copies from one source device or file C<src> to another "
6106 "destination device or file C<dest>.  Normally you would use this to copy to "
6107 "or from a device or partition, for example to duplicate a filesystem."
6108 msgstr ""
6109
6110 # type: textblock
6111 #: ../src/guestfs-actions.pod:1157
6112 msgid ""
6113 "If the destination is a device, it must be as large or larger than the "
6114 "source file or device, otherwise the copy will fail.  This command cannot do "
6115 "partial copies (see C<guestfs_copy_size>)."
6116 msgstr ""
6117
6118 # type: =head2
6119 #: ../src/guestfs-actions.pod:1165
6120 msgid "guestfs_df"
6121 msgstr ""
6122
6123 # type: verbatim
6124 #: ../src/guestfs-actions.pod:1167
6125 #, no-wrap
6126 msgid ""
6127 " char *\n"
6128 " guestfs_df (guestfs_h *g);\n"
6129 "\n"
6130 msgstr ""
6131
6132 # type: textblock
6133 #: ../src/guestfs-actions.pod:1170 ../fish/guestfish-actions.pod:786
6134 msgid "This command runs the C<df> command to report disk space used."
6135 msgstr ""
6136
6137 # type: textblock
6138 #: ../src/guestfs-actions.pod:1172 ../src/guestfs-actions.pod:1189 ../fish/guestfish-actions.pod:788 ../fish/guestfish-actions.pod:799
6139 msgid ""
6140 "This command is mostly useful for interactive sessions.  It is I<not> "
6141 "intended that you try to parse the output string.  Use C<statvfs> from "
6142 "programs."
6143 msgstr ""
6144
6145 # type: textblock
6146 #: ../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:3828 ../src/guestfs-actions.pod:4221 ../src/guestfs-actions.pod:5983 ../src/guestfs-actions.pod:6007 ../src/guestfs-actions.pod:6615 ../src/guestfs-actions.pod:6628 ../src/guestfs-actions.pod:6641
6147 msgid "(Added in 1.0.54)"
6148 msgstr ""
6149
6150 # type: =head2
6151 #: ../src/guestfs-actions.pod:1181
6152 msgid "guestfs_df_h"
6153 msgstr ""
6154
6155 # type: verbatim
6156 #: ../src/guestfs-actions.pod:1183
6157 #, no-wrap
6158 msgid ""
6159 " char *\n"
6160 " guestfs_df_h (guestfs_h *g);\n"
6161 "\n"
6162 msgstr ""
6163
6164 # type: textblock
6165 #: ../src/guestfs-actions.pod:1186 ../fish/guestfish-actions.pod:796
6166 msgid ""
6167 "This command runs the C<df -h> command to report disk space used in "
6168 "human-readable format."
6169 msgstr ""
6170
6171 # type: =head2
6172 #: ../src/guestfs-actions.pod:1198
6173 msgid "guestfs_dmesg"
6174 msgstr ""
6175
6176 # type: verbatim
6177 #: ../src/guestfs-actions.pod:1200
6178 #, no-wrap
6179 msgid ""
6180 " char *\n"
6181 " guestfs_dmesg (guestfs_h *g);\n"
6182 "\n"
6183 msgstr ""
6184
6185 # type: textblock
6186 #: ../src/guestfs-actions.pod:1203 ../fish/guestfish-actions.pod:807
6187 msgid ""
6188 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
6189 "This is sometimes useful for extended debugging of problems."
6190 msgstr ""
6191
6192 # type: textblock
6193 #: ../src/guestfs-actions.pod:1207
6194 msgid ""
6195 "Another way to get the same information is to enable verbose messages with "
6196 "C<guestfs_set_verbose> or by setting the environment variable "
6197 "C<LIBGUESTFS_DEBUG=1> before running the program."
6198 msgstr ""
6199
6200 # type: =head2
6201 #: ../src/guestfs-actions.pod:1217
6202 msgid "guestfs_download"
6203 msgstr ""
6204
6205 # type: verbatim
6206 #: ../src/guestfs-actions.pod:1219
6207 #, no-wrap
6208 msgid ""
6209 " int\n"
6210 " guestfs_download (guestfs_h *g,\n"
6211 "                   const char *remotefilename,\n"
6212 "                   const char *filename);\n"
6213 "\n"
6214 msgstr ""
6215
6216 # type: textblock
6217 #: ../src/guestfs-actions.pod:1224 ../src/guestfs-actions.pod:1249 ../fish/guestfish-actions.pod:820 ../fish/guestfish-actions.pod:833
6218 msgid ""
6219 "Download file C<remotefilename> and save it as C<filename> on the local "
6220 "machine."
6221 msgstr ""
6222
6223 # type: textblock
6224 #: ../src/guestfs-actions.pod:1227 ../src/guestfs-actions.pod:6239 ../fish/guestfish-actions.pod:823 ../fish/guestfish-actions.pod:4151
6225 msgid "C<filename> can also be a named pipe."
6226 msgstr ""
6227
6228 # type: textblock
6229 #: ../src/guestfs-actions.pod:1229
6230 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
6231 msgstr ""
6232
6233 # type: =head2
6234 #: ../src/guestfs-actions.pod:1240
6235 msgid "guestfs_download_offset"
6236 msgstr ""
6237
6238 # type: verbatim
6239 #: ../src/guestfs-actions.pod:1242
6240 #, no-wrap
6241 msgid ""
6242 " int\n"
6243 " guestfs_download_offset (guestfs_h *g,\n"
6244 "                          const char *remotefilename,\n"
6245 "                          const char *filename,\n"
6246 "                          int64_t offset,\n"
6247 "                          int64_t size);\n"
6248 "\n"
6249 msgstr ""
6250
6251 # type: textblock
6252 #: ../src/guestfs-actions.pod:1252 ../fish/guestfish-actions.pod:836
6253 msgid ""
6254 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
6255 "region must be within the file or device)."
6256 msgstr ""
6257
6258 # type: textblock
6259 #: ../src/guestfs-actions.pod:1255
6260 msgid ""
6261 "Note that there is no limit on the amount of data that can be downloaded "
6262 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
6263 "full amount unless an error occurs."
6264 msgstr ""
6265
6266 # type: textblock
6267 #: ../src/guestfs-actions.pod:1260
6268 msgid "See also C<guestfs_download>, C<guestfs_pread>."
6269 msgstr ""
6270
6271 # type: textblock
6272 #: ../src/guestfs-actions.pod:1269 ../src/guestfs-actions.pod:6274
6273 msgid "(Added in 1.5.17)"
6274 msgstr ""
6275
6276 # type: =head2
6277 #: ../src/guestfs-actions.pod:1271
6278 msgid "guestfs_drop_caches"
6279 msgstr ""
6280
6281 # type: verbatim
6282 #: ../src/guestfs-actions.pod:1273
6283 #, no-wrap
6284 msgid ""
6285 " int\n"
6286 " guestfs_drop_caches (guestfs_h *g,\n"
6287 "                      int whattodrop);\n"
6288 "\n"
6289 msgstr ""
6290
6291 # type: textblock
6292 #: ../src/guestfs-actions.pod:1277 ../fish/guestfish-actions.pod:852
6293 msgid ""
6294 "This instructs the guest kernel to drop its page cache, and/or dentries and "
6295 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
6296 "to drop, see L<http://linux-mm.org/Drop_Caches>"
6297 msgstr ""
6298
6299 # type: textblock
6300 #: ../src/guestfs-actions.pod:1282 ../fish/guestfish-actions.pod:857
6301 msgid "Setting C<whattodrop> to 3 should drop everything."
6302 msgstr ""
6303
6304 # type: textblock
6305 #: ../src/guestfs-actions.pod:1284 ../fish/guestfish-actions.pod:859
6306 msgid ""
6307 "This automatically calls L<sync(2)> before the operation, so that the "
6308 "maximum guest memory is freed."
6309 msgstr ""
6310
6311 # type: =head2
6312 #: ../src/guestfs-actions.pod:1291
6313 msgid "guestfs_du"
6314 msgstr ""
6315
6316 # type: verbatim
6317 #: ../src/guestfs-actions.pod:1293
6318 #, no-wrap
6319 msgid ""
6320 " int64_t\n"
6321 " guestfs_du (guestfs_h *g,\n"
6322 "             const char *path);\n"
6323 "\n"
6324 msgstr ""
6325
6326 # type: textblock
6327 #: ../src/guestfs-actions.pod:1297 ../fish/guestfish-actions.pod:866
6328 msgid ""
6329 "This command runs the C<du -s> command to estimate file space usage for "
6330 "C<path>."
6331 msgstr ""
6332
6333 # type: textblock
6334 #: ../src/guestfs-actions.pod:1300 ../fish/guestfish-actions.pod:869
6335 msgid ""
6336 "C<path> can be a file or a directory.  If C<path> is a directory then the "
6337 "estimate includes the contents of the directory and all subdirectories "
6338 "(recursively)."
6339 msgstr ""
6340
6341 # type: textblock
6342 #: ../src/guestfs-actions.pod:1304 ../fish/guestfish-actions.pod:873
6343 msgid "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
6344 msgstr ""
6345
6346 # type: =head2
6347 #: ../src/guestfs-actions.pod:1311
6348 msgid "guestfs_e2fsck_f"
6349 msgstr ""
6350
6351 # type: verbatim
6352 #: ../src/guestfs-actions.pod:1313
6353 #, no-wrap
6354 msgid ""
6355 " int\n"
6356 " guestfs_e2fsck_f (guestfs_h *g,\n"
6357 "                   const char *device);\n"
6358 "\n"
6359 msgstr ""
6360
6361 # type: textblock
6362 #: ../src/guestfs-actions.pod:1317 ../fish/guestfish-actions.pod:880
6363 msgid ""
6364 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
6365 "on C<device>, noninteractively (C<-p>), even if the filesystem appears to be "
6366 "clean (C<-f>)."
6367 msgstr ""
6368
6369 # type: textblock
6370 #: ../src/guestfs-actions.pod:1321
6371 msgid ""
6372 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
6373 "Normally you should use C<guestfs_fsck>."
6374 msgstr ""
6375
6376 # type: textblock
6377 #: ../src/guestfs-actions.pod:1326
6378 msgid "(Added in 1.0.29)"
6379 msgstr ""
6380
6381 # type: =head2
6382 #: ../src/guestfs-actions.pod:1328
6383 msgid "guestfs_echo_daemon"
6384 msgstr ""
6385
6386 # type: verbatim
6387 #: ../src/guestfs-actions.pod:1330
6388 #, no-wrap
6389 msgid ""
6390 " char *\n"
6391 " guestfs_echo_daemon (guestfs_h *g,\n"
6392 "                      char *const *words);\n"
6393 "\n"
6394 msgstr ""
6395
6396 # type: textblock
6397 #: ../src/guestfs-actions.pod:1334 ../fish/guestfish-actions.pod:891
6398 msgid ""
6399 "This command concatenates the list of C<words> passed with single spaces "
6400 "between them and returns the resulting string."
6401 msgstr ""
6402
6403 # type: textblock
6404 #: ../src/guestfs-actions.pod:1337 ../fish/guestfish-actions.pod:894
6405 msgid "You can use this command to test the connection through to the daemon."
6406 msgstr ""
6407
6408 # type: textblock
6409 #: ../src/guestfs-actions.pod:1339
6410 msgid "See also C<guestfs_ping_daemon>."
6411 msgstr ""
6412
6413 # type: textblock
6414 #: ../src/guestfs-actions.pod:1344 ../src/guestfs-actions.pod:2071 ../src/guestfs-actions.pod:5487
6415 msgid "(Added in 1.0.69)"
6416 msgstr ""
6417
6418 # type: =head2
6419 #: ../src/guestfs-actions.pod:1346
6420 msgid "guestfs_egrep"
6421 msgstr ""
6422
6423 # type: verbatim
6424 #: ../src/guestfs-actions.pod:1348
6425 #, no-wrap
6426 msgid ""
6427 " char **\n"
6428 " guestfs_egrep (guestfs_h *g,\n"
6429 "                const char *regex,\n"
6430 "                const char *path);\n"
6431 "\n"
6432 msgstr ""
6433
6434 # type: textblock
6435 #: ../src/guestfs-actions.pod:1353 ../fish/guestfish-actions.pod:902
6436 msgid "This calls the external C<egrep> program and returns the matching lines."
6437 msgstr ""
6438
6439 # type: textblock
6440 #: ../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:3211 ../src/guestfs-actions.pod:3225 ../src/guestfs-actions.pod:3238 ../src/guestfs-actions.pod:3252 ../src/guestfs-actions.pod:4156 ../src/guestfs-actions.pod:5032 ../src/guestfs-actions.pod:5081 ../src/guestfs-actions.pod:5851 ../src/guestfs-actions.pod:5863 ../src/guestfs-actions.pod:5876 ../src/guestfs-actions.pod:5889 ../src/guestfs-actions.pod:5911 ../src/guestfs-actions.pod:5924 ../src/guestfs-actions.pod:5937 ../src/guestfs-actions.pod:5950 ../src/guestfs-actions.pod:6711 ../src/guestfs-actions.pod:6730 ../src/guestfs-actions.pod:6815 ../src/guestfs-actions.pod:6834 ../src/guestfs-actions.pod:6880 ../src/guestfs-actions.pod:6899
6441 msgid "(Added in 1.0.66)"
6442 msgstr ""
6443
6444 # type: =head2
6445 #: ../src/guestfs-actions.pod:1365
6446 msgid "guestfs_egrepi"
6447 msgstr ""
6448
6449 # type: verbatim
6450 #: ../src/guestfs-actions.pod:1367
6451 #, no-wrap
6452 msgid ""
6453 " char **\n"
6454 " guestfs_egrepi (guestfs_h *g,\n"
6455 "                 const char *regex,\n"
6456 "                 const char *path);\n"
6457 "\n"
6458 msgstr ""
6459
6460 # type: textblock
6461 #: ../src/guestfs-actions.pod:1372 ../fish/guestfish-actions.pod:912
6462 msgid "This calls the external C<egrep -i> program and returns the matching lines."
6463 msgstr ""
6464
6465 # type: =head2
6466 #: ../src/guestfs-actions.pod:1384
6467 msgid "guestfs_equal"
6468 msgstr ""
6469
6470 # type: verbatim
6471 #: ../src/guestfs-actions.pod:1386
6472 #, no-wrap
6473 msgid ""
6474 " int\n"
6475 " guestfs_equal (guestfs_h *g,\n"
6476 "                const char *file1,\n"
6477 "                const char *file2);\n"
6478 "\n"
6479 msgstr ""
6480
6481 # type: textblock
6482 #: ../src/guestfs-actions.pod:1391 ../fish/guestfish-actions.pod:922
6483 msgid ""
6484 "This compares the two files C<file1> and C<file2> and returns true if their "
6485 "content is exactly equal, or false otherwise."
6486 msgstr ""
6487
6488 # type: textblock
6489 #: ../src/guestfs-actions.pod:1394 ../fish/guestfish-actions.pod:925
6490 msgid "The external L<cmp(1)> program is used for the comparison."
6491 msgstr ""
6492
6493 # type: =head2
6494 #: ../src/guestfs-actions.pod:1400
6495 msgid "guestfs_exists"
6496 msgstr ""
6497
6498 # type: verbatim
6499 #: ../src/guestfs-actions.pod:1402
6500 #, no-wrap
6501 msgid ""
6502 " int\n"
6503 " guestfs_exists (guestfs_h *g,\n"
6504 "                 const char *path);\n"
6505 "\n"
6506 msgstr ""
6507
6508 # type: textblock
6509 #: ../src/guestfs-actions.pod:1406 ../fish/guestfish-actions.pod:931
6510 msgid ""
6511 "This returns C<true> if and only if there is a file, directory (or anything) "
6512 "with the given C<path> name."
6513 msgstr ""
6514
6515 # type: textblock
6516 #: ../src/guestfs-actions.pod:1409
6517 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
6518 msgstr ""
6519
6520 # type: =head2
6521 #: ../src/guestfs-actions.pod:1415
6522 msgid "guestfs_fallocate"
6523 msgstr ""
6524
6525 # type: verbatim
6526 #: ../src/guestfs-actions.pod:1417
6527 #, no-wrap
6528 msgid ""
6529 " int\n"
6530 " guestfs_fallocate (guestfs_h *g,\n"
6531 "                    const char *path,\n"
6532 "                    int len);\n"
6533 "\n"
6534 msgstr ""
6535
6536 # type: textblock
6537 #: ../src/guestfs-actions.pod:1422 ../src/guestfs-actions.pod:1448 ../fish/guestfish-actions.pod:940 ../fish/guestfish-actions.pod:959
6538 msgid ""
6539 "This command preallocates a file (containing zero bytes) named C<path> of "
6540 "size C<len> bytes.  If the file exists already, it is overwritten."
6541 msgstr ""
6542
6543 # type: textblock
6544 #: ../src/guestfs-actions.pod:1426 ../fish/guestfish-actions.pod:944
6545 msgid ""
6546 "Do not confuse this with the guestfish-specific C<alloc> command which "
6547 "allocates a file in the host and attaches it as a device."
6548 msgstr ""
6549
6550 # type: textblock
6551 #: ../src/guestfs-actions.pod:1432 ../fish/guestfish-actions.pod:948
6552 msgid ""
6553 "This function is deprecated.  In new code, use the C<fallocate64> call "
6554 "instead."
6555 msgstr ""
6556
6557 # type: =head2
6558 #: ../src/guestfs-actions.pod:1441
6559 msgid "guestfs_fallocate64"
6560 msgstr ""
6561
6562 # type: verbatim
6563 #: ../src/guestfs-actions.pod:1443
6564 #, no-wrap
6565 msgid ""
6566 " int\n"
6567 " guestfs_fallocate64 (guestfs_h *g,\n"
6568 "                      const char *path,\n"
6569 "                      int64_t len);\n"
6570 "\n"
6571 msgstr ""
6572
6573 # type: textblock
6574 #: ../src/guestfs-actions.pod:1452
6575 msgid ""
6576 "Note that this call allocates disk blocks for the file.  To create a sparse "
6577 "file use C<guestfs_truncate_size> instead."
6578 msgstr ""
6579
6580 # type: textblock
6581 #: ../src/guestfs-actions.pod:1455
6582 msgid ""
6583 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
6584 "oversight it only allowed 30 bit lengths to be specified, effectively "
6585 "limiting the maximum size of files created through that call to 1GB."
6586 msgstr ""
6587
6588 # type: textblock
6589 #: ../src/guestfs-actions.pod:1460 ../fish/guestfish-actions.pod:971
6590 msgid ""
6591 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
6592 "commands which create a file in the host and attach it as a device."
6593 msgstr ""
6594
6595 # type: textblock
6596 #: ../src/guestfs-actions.pod:1466
6597 msgid "(Added in 1.3.17)"
6598 msgstr ""
6599
6600 # type: =head2
6601 #: ../src/guestfs-actions.pod:1468
6602 msgid "guestfs_fgrep"
6603 msgstr ""
6604
6605 # type: verbatim
6606 #: ../src/guestfs-actions.pod:1470
6607 #, no-wrap
6608 msgid ""
6609 " char **\n"
6610 " guestfs_fgrep (guestfs_h *g,\n"
6611 "                const char *pattern,\n"
6612 "                const char *path);\n"
6613 "\n"
6614 msgstr ""
6615
6616 # type: textblock
6617 #: ../src/guestfs-actions.pod:1475 ../fish/guestfish-actions.pod:979
6618 msgid "This calls the external C<fgrep> program and returns the matching lines."
6619 msgstr ""
6620
6621 # type: =head2
6622 #: ../src/guestfs-actions.pod:1487
6623 msgid "guestfs_fgrepi"
6624 msgstr ""
6625
6626 # type: verbatim
6627 #: ../src/guestfs-actions.pod:1489
6628 #, no-wrap
6629 msgid ""
6630 " char **\n"
6631 " guestfs_fgrepi (guestfs_h *g,\n"
6632 "                 const char *pattern,\n"
6633 "                 const char *path);\n"
6634 "\n"
6635 msgstr ""
6636
6637 # type: textblock
6638 #: ../src/guestfs-actions.pod:1494 ../fish/guestfish-actions.pod:989
6639 msgid "This calls the external C<fgrep -i> program and returns the matching lines."
6640 msgstr ""
6641
6642 # type: =head2
6643 #: ../src/guestfs-actions.pod:1506
6644 msgid "guestfs_file"
6645 msgstr ""
6646
6647 # type: verbatim
6648 #: ../src/guestfs-actions.pod:1508
6649 #, no-wrap
6650 msgid ""
6651 " char *\n"
6652 " guestfs_file (guestfs_h *g,\n"
6653 "               const char *path);\n"
6654 "\n"
6655 msgstr ""
6656
6657 # type: textblock
6658 #: ../src/guestfs-actions.pod:1512 ../fish/guestfish-actions.pod:999
6659 msgid ""
6660 "This call uses the standard L<file(1)> command to determine the type or "
6661 "contents of the file."
6662 msgstr ""
6663
6664 # type: textblock
6665 #: ../src/guestfs-actions.pod:1515 ../fish/guestfish-actions.pod:1002
6666 msgid ""
6667 "This call will also transparently look inside various types of compressed "
6668 "file."
6669 msgstr ""
6670
6671 # type: textblock
6672 #: ../src/guestfs-actions.pod:1518 ../fish/guestfish-actions.pod:1005
6673 msgid ""
6674 "The exact command which runs is C<file -zb path>.  Note in particular that "
6675 "the filename is not prepended to the output (the C<-b> option)."
6676 msgstr ""
6677
6678 # type: textblock
6679 #: ../src/guestfs-actions.pod:1522
6680 msgid ""
6681 "This command can also be used on C</dev/> devices (and partitions, LV "
6682 "names).  You can for example use this to determine if a device contains a "
6683 "filesystem, although it's usually better to use C<guestfs_vfs_type>."
6684 msgstr ""
6685
6686 # type: textblock
6687 #: ../src/guestfs-actions.pod:1527 ../fish/guestfish-actions.pod:1014
6688 msgid ""
6689 "If the C<path> does not begin with C</dev/> then this command only works for "
6690 "the content of regular files.  For other file types (directory, symbolic "
6691 "link etc) it will just return the string C<directory> etc."
6692 msgstr ""
6693
6694 # type: =head2
6695 #: ../src/guestfs-actions.pod:1537
6696 msgid "guestfs_file_architecture"
6697 msgstr ""
6698
6699 # type: verbatim
6700 #: ../src/guestfs-actions.pod:1539
6701 #, no-wrap
6702 msgid ""
6703 " char *\n"
6704 " guestfs_file_architecture (guestfs_h *g,\n"
6705 "                            const char *filename);\n"
6706 "\n"
6707 msgstr ""
6708
6709 # type: textblock
6710 #: ../src/guestfs-actions.pod:1543 ../fish/guestfish-actions.pod:1023
6711 msgid ""
6712 "This detects the architecture of the binary C<filename>, and returns it if "
6713 "known."
6714 msgstr ""
6715
6716 # type: textblock
6717 #: ../src/guestfs-actions.pod:1546 ../fish/guestfish-actions.pod:1026
6718 msgid "Currently defined architectures are:"
6719 msgstr ""
6720
6721 # type: =item
6722 #: ../src/guestfs-actions.pod:1550 ../fish/guestfish-actions.pod:1030
6723 msgid "\"i386\""
6724 msgstr ""
6725
6726 # type: textblock
6727 #: ../src/guestfs-actions.pod:1552 ../fish/guestfish-actions.pod:1032
6728 msgid ""
6729 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
6730 "irrespective of the precise processor requirements of the binary."
6731 msgstr ""
6732
6733 # type: =item
6734 #: ../src/guestfs-actions.pod:1555 ../fish/guestfish-actions.pod:1035
6735 msgid "\"x86_64\""
6736 msgstr ""
6737
6738 # type: textblock
6739 #: ../src/guestfs-actions.pod:1557 ../fish/guestfish-actions.pod:1037
6740 msgid "64 bit x86-64."
6741 msgstr ""
6742
6743 # type: =item
6744 #: ../src/guestfs-actions.pod:1559 ../fish/guestfish-actions.pod:1039
6745 msgid "\"sparc\""
6746 msgstr ""
6747
6748 # type: textblock
6749 #: ../src/guestfs-actions.pod:1561 ../fish/guestfish-actions.pod:1041
6750 msgid "32 bit SPARC."
6751 msgstr ""
6752
6753 # type: =item
6754 #: ../src/guestfs-actions.pod:1563 ../fish/guestfish-actions.pod:1043
6755 msgid "\"sparc64\""
6756 msgstr ""
6757
6758 # type: textblock
6759 #: ../src/guestfs-actions.pod:1565 ../fish/guestfish-actions.pod:1045
6760 msgid "64 bit SPARC V9 and above."
6761 msgstr ""
6762
6763 # type: =item
6764 #: ../src/guestfs-actions.pod:1567 ../fish/guestfish-actions.pod:1047
6765 msgid "\"ia64\""
6766 msgstr ""
6767
6768 # type: textblock
6769 #: ../src/guestfs-actions.pod:1569 ../fish/guestfish-actions.pod:1049
6770 msgid "Intel Itanium."
6771 msgstr ""
6772
6773 # type: =item
6774 #: ../src/guestfs-actions.pod:1571 ../fish/guestfish-actions.pod:1051
6775 msgid "\"ppc\""
6776 msgstr ""
6777
6778 # type: textblock
6779 #: ../src/guestfs-actions.pod:1573 ../fish/guestfish-actions.pod:1053
6780 msgid "32 bit Power PC."
6781 msgstr ""
6782
6783 # type: =item
6784 #: ../src/guestfs-actions.pod:1575 ../fish/guestfish-actions.pod:1055
6785 msgid "\"ppc64\""
6786 msgstr ""
6787
6788 # type: textblock
6789 #: ../src/guestfs-actions.pod:1577 ../fish/guestfish-actions.pod:1057
6790 msgid "64 bit Power PC."
6791 msgstr ""
6792
6793 # type: textblock
6794 #: ../src/guestfs-actions.pod:1581 ../fish/guestfish-actions.pod:1061
6795 msgid "Libguestfs may return other architecture strings in future."
6796 msgstr ""
6797
6798 # type: textblock
6799 #: ../src/guestfs-actions.pod:1583 ../fish/guestfish-actions.pod:1063
6800 msgid "The function works on at least the following types of files:"
6801 msgstr ""
6802
6803 # type: textblock
6804 #: ../src/guestfs-actions.pod:1589 ../fish/guestfish-actions.pod:1069
6805 msgid "many types of Un*x and Linux binary"
6806 msgstr ""
6807
6808 # type: textblock
6809 #: ../src/guestfs-actions.pod:1593 ../fish/guestfish-actions.pod:1073
6810 msgid "many types of Un*x and Linux shared library"
6811 msgstr ""
6812
6813 # type: textblock
6814 #: ../src/guestfs-actions.pod:1597 ../fish/guestfish-actions.pod:1077
6815 msgid "Windows Win32 and Win64 binaries"
6816 msgstr ""
6817
6818 # type: textblock
6819 #: ../src/guestfs-actions.pod:1601 ../fish/guestfish-actions.pod:1081
6820 msgid "Windows Win32 and Win64 DLLs"
6821 msgstr ""
6822
6823 # type: textblock
6824 #: ../src/guestfs-actions.pod:1603 ../fish/guestfish-actions.pod:1083
6825 msgid "Win32 binaries and DLLs return C<i386>."
6826 msgstr ""
6827
6828 # type: textblock
6829 #: ../src/guestfs-actions.pod:1605 ../fish/guestfish-actions.pod:1085
6830 msgid "Win64 binaries and DLLs return C<x86_64>."
6831 msgstr ""
6832
6833 # type: textblock
6834 #: ../src/guestfs-actions.pod:1609 ../fish/guestfish-actions.pod:1089
6835 msgid "Linux kernel modules"
6836 msgstr ""
6837
6838 # type: textblock
6839 #: ../src/guestfs-actions.pod:1613 ../fish/guestfish-actions.pod:1093
6840 msgid "Linux new-style initrd images"
6841 msgstr ""
6842
6843 # type: textblock
6844 #: ../src/guestfs-actions.pod:1617 ../fish/guestfish-actions.pod:1097
6845 msgid "some non-x86 Linux vmlinuz kernels"
6846 msgstr ""
6847
6848 # type: textblock
6849 #: ../src/guestfs-actions.pod:1621 ../fish/guestfish-actions.pod:1101
6850 msgid "What it can't do currently:"
6851 msgstr ""
6852
6853 # type: textblock
6854 #: ../src/guestfs-actions.pod:1627 ../fish/guestfish-actions.pod:1107
6855 msgid "static libraries (libfoo.a)"
6856 msgstr ""
6857
6858 # type: textblock
6859 #: ../src/guestfs-actions.pod:1631 ../fish/guestfish-actions.pod:1111
6860 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
6861 msgstr ""
6862
6863 # type: textblock
6864 #: ../src/guestfs-actions.pod:1635 ../fish/guestfish-actions.pod:1115
6865 msgid "x86 Linux vmlinuz kernels"
6866 msgstr ""
6867
6868 # type: textblock
6869 #: ../src/guestfs-actions.pod:1637 ../fish/guestfish-actions.pod:1117
6870 msgid ""
6871 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
6872 "compressed code, and are horribly hard to unpack.  If you want to find the "
6873 "architecture of a kernel, use the architecture of the associated initrd or "
6874 "kernel module(s) instead."
6875 msgstr ""
6876
6877 # type: textblock
6878 #: ../src/guestfs-actions.pod:1647 ../src/guestfs-actions.pod:1810 ../src/guestfs-actions.pod:1827 ../src/guestfs-actions.pod:2478 ../src/guestfs-actions.pod:2551 ../src/guestfs-actions.pod:2577 ../src/guestfs-actions.pod:2604 ../src/guestfs-actions.pod:2625 ../src/guestfs-actions.pod:2658 ../src/guestfs-actions.pod:2738 ../src/guestfs-actions.pod:2798 ../src/guestfs-actions.pod:2864 ../src/guestfs-actions.pod:2996
6879 msgid "(Added in 1.5.3)"
6880 msgstr ""
6881
6882 # type: =head2
6883 #: ../src/guestfs-actions.pod:1649
6884 msgid "guestfs_filesize"
6885 msgstr ""
6886
6887 # type: verbatim
6888 #: ../src/guestfs-actions.pod:1651
6889 #, no-wrap
6890 msgid ""
6891 " int64_t\n"
6892 " guestfs_filesize (guestfs_h *g,\n"
6893 "                   const char *file);\n"
6894 "\n"
6895 msgstr ""
6896
6897 # type: textblock
6898 #: ../src/guestfs-actions.pod:1655 ../fish/guestfish-actions.pod:1128
6899 msgid "This command returns the size of C<file> in bytes."
6900 msgstr ""
6901
6902 # type: textblock
6903 #: ../src/guestfs-actions.pod:1657
6904 msgid ""
6905 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
6906 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
6907 "devices, use C<guestfs_blockdev_getsize64>."
6908 msgstr ""
6909
6910 # type: textblock
6911 #: ../src/guestfs-actions.pod:1663
6912 msgid "(Added in 1.0.82)"
6913 msgstr ""
6914
6915 # type: =head2
6916 #: ../src/guestfs-actions.pod:1665
6917 msgid "guestfs_fill"
6918 msgstr ""
6919
6920 # type: verbatim
6921 #: ../src/guestfs-actions.pod:1667
6922 #, no-wrap
6923 msgid ""
6924 " int\n"
6925 " guestfs_fill (guestfs_h *g,\n"
6926 "               int c,\n"
6927 "               int len,\n"
6928 "               const char *path);\n"
6929 "\n"
6930 msgstr ""
6931
6932 # type: textblock
6933 #: ../src/guestfs-actions.pod:1673 ../fish/guestfish-actions.pod:1138
6934 msgid ""
6935 "This command creates a new file called C<path>.  The initial content of the "
6936 "file is C<len> octets of C<c>, where C<c> must be a number in the range "
6937 "C<[0..255]>."
6938 msgstr ""
6939
6940 # type: textblock
6941 #: ../src/guestfs-actions.pod:1677
6942 msgid ""
6943 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
6944 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
6945 "bytes use C<guestfs_fill_pattern>."
6946 msgstr ""
6947
6948 # type: textblock
6949 #: ../src/guestfs-actions.pod:1689
6950 msgid "(Added in 1.0.79)"
6951 msgstr ""
6952
6953 # type: =head2
6954 #: ../src/guestfs-actions.pod:1691
6955 msgid "guestfs_fill_pattern"
6956 msgstr ""
6957
6958 # type: verbatim
6959 #: ../src/guestfs-actions.pod:1693
6960 #, no-wrap
6961 msgid ""
6962 " int\n"
6963 " guestfs_fill_pattern (guestfs_h *g,\n"
6964 "                       const char *pattern,\n"
6965 "                       int len,\n"
6966 "                       const char *path);\n"
6967 "\n"
6968 msgstr ""
6969
6970 # type: textblock
6971 #: ../src/guestfs-actions.pod:1699
6972 msgid ""
6973 "This function is like C<guestfs_fill> except that it creates a new file of "
6974 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
6975 "pattern is truncated if necessary to ensure the length of the file is "
6976 "exactly C<len> bytes."
6977 msgstr ""
6978
6979 # type: textblock
6980 #: ../src/guestfs-actions.pod:1711
6981 msgid "(Added in 1.3.12)"
6982 msgstr ""
6983
6984 # type: =head2
6985 #: ../src/guestfs-actions.pod:1713
6986 msgid "guestfs_find"
6987 msgstr ""
6988
6989 # type: verbatim
6990 #: ../src/guestfs-actions.pod:1715
6991 #, no-wrap
6992 msgid ""
6993 " char **\n"
6994 " guestfs_find (guestfs_h *g,\n"
6995 "               const char *directory);\n"
6996 "\n"
6997 msgstr ""
6998
6999 # type: textblock
7000 #: ../src/guestfs-actions.pod:1719 ../fish/guestfish-actions.pod:1160
7001 msgid ""
7002 "This command lists out all files and directories, recursively, starting at "
7003 "C<directory>.  It is essentially equivalent to running the shell command "
7004 "C<find directory -print> but some post-processing happens on the output, "
7005 "described below."
7006 msgstr ""
7007
7008 # type: textblock
7009 #: ../src/guestfs-actions.pod:1724 ../fish/guestfish-actions.pod:1165
7010 msgid ""
7011 "This returns a list of strings I<without any prefix>.  Thus if the directory "
7012 "structure was:"
7013 msgstr ""
7014
7015 # type: verbatim
7016 #: ../src/guestfs-actions.pod:1727 ../fish/guestfish-actions.pod:1168
7017 #, no-wrap
7018 msgid ""
7019 " /tmp/a\n"
7020 " /tmp/b\n"
7021 " /tmp/c/d\n"
7022 "\n"
7023 msgstr ""
7024
7025 # type: textblock
7026 #: ../src/guestfs-actions.pod:1731
7027 msgid "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
7028 msgstr ""
7029
7030 # type: verbatim
7031 #: ../src/guestfs-actions.pod:1734 ../fish/guestfish-actions.pod:1175
7032 #, no-wrap
7033 msgid ""
7034 " a\n"
7035 " b\n"
7036 " c\n"
7037 " c/d\n"
7038 "\n"
7039 msgstr ""
7040
7041 # type: textblock
7042 #: ../src/guestfs-actions.pod:1739 ../fish/guestfish-actions.pod:1180
7043 msgid "If C<directory> is not a directory, then this command returns an error."
7044 msgstr ""
7045
7046 # type: textblock
7047 #: ../src/guestfs-actions.pod:1742 ../fish/guestfish-actions.pod:1183
7048 msgid "The returned list is sorted."
7049 msgstr ""
7050
7051 # type: textblock
7052 #: ../src/guestfs-actions.pod:1744
7053 msgid "See also C<guestfs_find0>."
7054 msgstr ""
7055
7056 # type: textblock
7057 #: ../src/guestfs-actions.pod:1753 ../src/guestfs-actions.pod:3655 ../src/guestfs-actions.pod:5116
7058 msgid "(Added in 1.0.27)"
7059 msgstr ""
7060
7061 # type: =head2
7062 #: ../src/guestfs-actions.pod:1755
7063 msgid "guestfs_find0"
7064 msgstr ""
7065
7066 # type: verbatim
7067 #: ../src/guestfs-actions.pod:1757
7068 #, no-wrap
7069 msgid ""
7070 " int\n"
7071 " guestfs_find0 (guestfs_h *g,\n"
7072 "                const char *directory,\n"
7073 "                const char *files);\n"
7074 "\n"
7075 msgstr ""
7076
7077 # type: textblock
7078 #: ../src/guestfs-actions.pod:1762 ../fish/guestfish-actions.pod:1194
7079 msgid ""
7080 "This command lists out all files and directories, recursively, starting at "
7081 "C<directory>, placing the resulting list in the external file called "
7082 "C<files>."
7083 msgstr ""
7084
7085 # type: textblock
7086 #: ../src/guestfs-actions.pod:1766
7087 msgid ""
7088 "This command works the same way as C<guestfs_find> with the following "
7089 "exceptions:"
7090 msgstr ""
7091
7092 # type: textblock
7093 #: ../src/guestfs-actions.pod:1773 ../fish/guestfish-actions.pod:1205
7094 msgid "The resulting list is written to an external file."
7095 msgstr ""
7096
7097 # type: textblock
7098 #: ../src/guestfs-actions.pod:1777 ../fish/guestfish-actions.pod:1209
7099 msgid ""
7100 "Items (filenames) in the result are separated by C<\\0> characters.  See "
7101 "L<find(1)> option I<-print0>."
7102 msgstr ""
7103
7104 # type: textblock
7105 #: ../src/guestfs-actions.pod:1782 ../fish/guestfish-actions.pod:1214
7106 msgid "This command is not limited in the number of names that it can return."
7107 msgstr ""
7108
7109 # type: textblock
7110 #: ../src/guestfs-actions.pod:1787 ../fish/guestfish-actions.pod:1219
7111 msgid "The result list is not sorted."
7112 msgstr ""
7113
7114 # type: textblock
7115 #: ../src/guestfs-actions.pod:1793
7116 msgid "(Added in 1.0.74)"
7117 msgstr ""
7118
7119 # type: =head2
7120 #: ../src/guestfs-actions.pod:1795
7121 msgid "guestfs_findfs_label"
7122 msgstr ""
7123
7124 # type: verbatim
7125 #: ../src/guestfs-actions.pod:1797
7126 #, no-wrap
7127 msgid ""
7128 " char *\n"
7129 " guestfs_findfs_label (guestfs_h *g,\n"
7130 "                       const char *label);\n"
7131 "\n"
7132 msgstr ""
7133
7134 # type: textblock
7135 #: ../src/guestfs-actions.pod:1801 ../fish/guestfish-actions.pod:1229
7136 msgid ""
7137 "This command searches the filesystems and returns the one which has the "
7138 "given label.  An error is returned if no such filesystem can be found."
7139 msgstr ""
7140
7141 # type: textblock
7142 #: ../src/guestfs-actions.pod:1805
7143 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
7144 msgstr ""
7145
7146 # type: =head2
7147 #: ../src/guestfs-actions.pod:1812
7148 msgid "guestfs_findfs_uuid"
7149 msgstr ""
7150
7151 # type: verbatim
7152 #: ../src/guestfs-actions.pod:1814
7153 #, no-wrap
7154 msgid ""
7155 " char *\n"
7156 " guestfs_findfs_uuid (guestfs_h *g,\n"
7157 "                      const char *uuid);\n"
7158 "\n"
7159 msgstr ""
7160
7161 # type: textblock
7162 #: ../src/guestfs-actions.pod:1818 ../fish/guestfish-actions.pod:1239
7163 msgid ""
7164 "This command searches the filesystems and returns the one which has the "
7165 "given UUID.  An error is returned if no such filesystem can be found."
7166 msgstr ""
7167
7168 # type: textblock
7169 #: ../src/guestfs-actions.pod:1822
7170 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
7171 msgstr ""
7172
7173 # type: =head2
7174 #: ../src/guestfs-actions.pod:1829
7175 msgid "guestfs_fsck"
7176 msgstr ""
7177
7178 # type: verbatim
7179 #: ../src/guestfs-actions.pod:1831
7180 #, no-wrap
7181 msgid ""
7182 " int\n"
7183 " guestfs_fsck (guestfs_h *g,\n"
7184 "               const char *fstype,\n"
7185 "               const char *device);\n"
7186 "\n"
7187 msgstr ""
7188
7189 # type: textblock
7190 #: ../src/guestfs-actions.pod:1836 ../fish/guestfish-actions.pod:1249
7191 msgid ""
7192 "This runs the filesystem checker (fsck) on C<device> which should have "
7193 "filesystem type C<fstype>."
7194 msgstr ""
7195
7196 # type: textblock
7197 #: ../src/guestfs-actions.pod:1839 ../fish/guestfish-actions.pod:1252
7198 msgid ""
7199 "The returned integer is the status.  See L<fsck(8)> for the list of status "
7200 "codes from C<fsck>."
7201 msgstr ""
7202
7203 # type: textblock
7204 #: ../src/guestfs-actions.pod:1848 ../fish/guestfish-actions.pod:1261
7205 msgid "Multiple status codes can be summed together."
7206 msgstr ""
7207
7208 # type: textblock
7209 #: ../src/guestfs-actions.pod:1852 ../fish/guestfish-actions.pod:1265
7210 msgid ""
7211 "A non-zero return code can mean \"success\", for example if errors have been "
7212 "corrected on the filesystem."
7213 msgstr ""
7214
7215 # type: textblock
7216 #: ../src/guestfs-actions.pod:1857 ../fish/guestfish-actions.pod:1270
7217 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
7218 msgstr ""
7219
7220 # type: textblock
7221 #: ../src/guestfs-actions.pod:1862 ../fish/guestfish-actions.pod:1275
7222 msgid "This command is entirely equivalent to running C<fsck -a -t fstype device>."
7223 msgstr ""
7224
7225 # type: textblock
7226 #: ../src/guestfs-actions.pod:1866 ../src/guestfs-actions.pod:6753
7227 msgid "(Added in 1.0.16)"
7228 msgstr ""
7229
7230 # type: =head2
7231 #: ../src/guestfs-actions.pod:1868
7232 msgid "guestfs_get_append"
7233 msgstr ""
7234
7235 # type: verbatim
7236 #: ../src/guestfs-actions.pod:1870
7237 #, no-wrap
7238 msgid ""
7239 " const char *\n"
7240 " guestfs_get_append (guestfs_h *g);\n"
7241 "\n"
7242 msgstr ""
7243
7244 # type: textblock
7245 #: ../src/guestfs-actions.pod:1873 ../fish/guestfish-actions.pod:1281
7246 msgid ""
7247 "Return the additional kernel options which are added to the guest kernel "
7248 "command line."
7249 msgstr ""
7250
7251 # type: textblock
7252 #: ../src/guestfs-actions.pod:1876 ../fish/guestfish-actions.pod:1284
7253 msgid "If C<NULL> then no options are added."
7254 msgstr ""
7255
7256 # type: textblock
7257 #: ../src/guestfs-actions.pod:1878
7258 msgid ""
7259 "This function returns a string which may be NULL.  There is no way to return "
7260 "an error from this function.  The string is owned by the guest handle and "
7261 "must I<not> be freed."
7262 msgstr ""
7263
7264 # type: textblock
7265 #: ../src/guestfs-actions.pod:1882 ../src/guestfs-actions.pod:4794 ../src/guestfs-actions.pod:5257 ../src/guestfs-actions.pod:5625 ../src/guestfs-actions.pod:5644 ../src/guestfs-actions.pod:5660 ../src/guestfs-actions.pod:5677 ../src/guestfs-actions.pod:6424 ../src/guestfs-actions.pod:6442 ../src/guestfs-actions.pod:6796
7266 msgid "(Added in 1.0.26)"
7267 msgstr ""
7268
7269 # type: =head2
7270 #: ../src/guestfs-actions.pod:1884
7271 msgid "guestfs_get_autosync"
7272 msgstr ""
7273
7274 # type: verbatim
7275 #: ../src/guestfs-actions.pod:1886
7276 #, no-wrap
7277 msgid ""
7278 " int\n"
7279 " guestfs_get_autosync (guestfs_h *g);\n"
7280 "\n"
7281 msgstr ""
7282
7283 # type: textblock
7284 #: ../src/guestfs-actions.pod:1889 ../fish/guestfish-actions.pod:1290
7285 msgid "Get the autosync flag."
7286 msgstr ""
7287
7288 # type: =head2
7289 #: ../src/guestfs-actions.pod:1895
7290 msgid "guestfs_get_direct"
7291 msgstr ""
7292
7293 # type: verbatim
7294 #: ../src/guestfs-actions.pod:1897
7295 #, no-wrap
7296 msgid ""
7297 " int\n"
7298 " guestfs_get_direct (guestfs_h *g);\n"
7299 "\n"
7300 msgstr ""
7301
7302 # type: textblock
7303 #: ../src/guestfs-actions.pod:1900 ../fish/guestfish-actions.pod:1296
7304 msgid "Return the direct appliance mode flag."
7305 msgstr ""
7306
7307 # type: textblock
7308 #: ../src/guestfs-actions.pod:1904 ../src/guestfs-actions.pod:5298
7309 msgid "(Added in 1.0.72)"
7310 msgstr ""
7311
7312 # type: =head2
7313 #: ../src/guestfs-actions.pod:1906
7314 msgid "guestfs_get_e2label"
7315 msgstr ""
7316
7317 # type: verbatim
7318 #: ../src/guestfs-actions.pod:1908
7319 #, no-wrap
7320 msgid ""
7321 " char *\n"
7322 " guestfs_get_e2label (guestfs_h *g,\n"
7323 "                      const char *device);\n"
7324 "\n"
7325 msgstr ""
7326
7327 # type: textblock
7328 #: ../src/guestfs-actions.pod:1912 ../fish/guestfish-actions.pod:1302
7329 msgid "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
7330 msgstr ""
7331
7332 # type: textblock
7333 #: ../src/guestfs-actions.pod:1918 ../fish/guestfish-actions.pod:1305
7334 msgid ""
7335 "This function is deprecated.  In new code, use the C<vfs_label> call "
7336 "instead."
7337 msgstr ""
7338
7339 # type: textblock
7340 #: ../src/guestfs-actions.pod:1925 ../src/guestfs-actions.pod:1946 ../src/guestfs-actions.pod:5316 ../src/guestfs-actions.pod:5335
7341 msgid "(Added in 1.0.15)"
7342 msgstr ""
7343
7344 # type: =head2
7345 #: ../src/guestfs-actions.pod:1927
7346 msgid "guestfs_get_e2uuid"
7347 msgstr ""
7348
7349 # type: verbatim
7350 #: ../src/guestfs-actions.pod:1929
7351 #, no-wrap
7352 msgid ""
7353 " char *\n"
7354 " guestfs_get_e2uuid (guestfs_h *g,\n"
7355 "                     const char *device);\n"
7356 "\n"
7357 msgstr ""
7358
7359 # type: textblock
7360 #: ../src/guestfs-actions.pod:1933 ../fish/guestfish-actions.pod:1316
7361 msgid "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
7362 msgstr ""
7363
7364 # type: textblock
7365 #: ../src/guestfs-actions.pod:1939 ../fish/guestfish-actions.pod:1319
7366 msgid "This function is deprecated.  In new code, use the C<vfs_uuid> call instead."
7367 msgstr ""
7368
7369 # type: =head2
7370 #: ../src/guestfs-actions.pod:1948
7371 msgid "guestfs_get_memsize"
7372 msgstr ""
7373
7374 # type: verbatim
7375 #: ../src/guestfs-actions.pod:1950
7376 #, no-wrap
7377 msgid ""
7378 " int\n"
7379 " guestfs_get_memsize (guestfs_h *g);\n"
7380 "\n"
7381 msgstr ""
7382
7383 # type: textblock
7384 #: ../src/guestfs-actions.pod:1953 ../fish/guestfish-actions.pod:1330
7385 msgid "This gets the memory size in megabytes allocated to the qemu subprocess."
7386 msgstr ""
7387
7388 # type: textblock
7389 #: ../src/guestfs-actions.pod:1956
7390 msgid ""
7391 "If C<guestfs_set_memsize> was not called on this handle, and if "
7392 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
7393 "value for memsize."
7394 msgstr ""
7395
7396 # type: textblock
7397 #: ../src/guestfs-actions.pod:1960 ../src/guestfs-actions.pod:2041 ../src/guestfs-actions.pod:5351 ../src/guestfs-actions.pod:5458 ../fish/guestfish-actions.pod:1337 ../fish/guestfish-actions.pod:1388 ../fish/guestfish-actions.pod:3558 ../fish/guestfish-actions.pod:3645
7398 msgid "For more information on the architecture of libguestfs, see L<guestfs(3)>."
7399 msgstr ""
7400
7401 # type: textblock
7402 #: ../src/guestfs-actions.pod:1965 ../src/guestfs-actions.pod:3946 ../src/guestfs-actions.pod:4061 ../src/guestfs-actions.pod:4080 ../src/guestfs-actions.pod:4099 ../src/guestfs-actions.pod:4111 ../src/guestfs-actions.pod:4128 ../src/guestfs-actions.pod:4141 ../src/guestfs-actions.pod:5019 ../src/guestfs-actions.pod:5356 ../src/guestfs-actions.pod:5599 ../src/guestfs-actions.pod:6200
7403 msgid "(Added in 1.0.55)"
7404 msgstr ""
7405
7406 # type: =head2
7407 #: ../src/guestfs-actions.pod:1967
7408 msgid "guestfs_get_network"
7409 msgstr ""
7410
7411 # type: verbatim
7412 #: ../src/guestfs-actions.pod:1969
7413 #, no-wrap
7414 msgid ""
7415 " int\n"
7416 " guestfs_get_network (guestfs_h *g);\n"
7417 "\n"
7418 msgstr ""
7419
7420 # type: textblock
7421 #: ../src/guestfs-actions.pod:1972 ../fish/guestfish-actions.pod:1344
7422 msgid "This returns the enable network flag."
7423 msgstr ""
7424
7425 # type: textblock
7426 #: ../src/guestfs-actions.pod:1976 ../src/guestfs-actions.pod:5375
7427 msgid "(Added in 1.5.4)"
7428 msgstr ""
7429
7430 # type: =head2
7431 #: ../src/guestfs-actions.pod:1978
7432 msgid "guestfs_get_path"
7433 msgstr ""
7434
7435 # type: verbatim
7436 #: ../src/guestfs-actions.pod:1980
7437 #, no-wrap
7438 msgid ""
7439 " const char *\n"
7440 " guestfs_get_path (guestfs_h *g);\n"
7441 "\n"
7442 msgstr ""
7443
7444 # type: textblock
7445 #: ../src/guestfs-actions.pod:1983 ../fish/guestfish-actions.pod:1350
7446 msgid "Return the current search path."
7447 msgstr ""
7448
7449 # type: textblock
7450 #: ../src/guestfs-actions.pod:1985 ../fish/guestfish-actions.pod:1352
7451 msgid ""
7452 "This is always non-NULL.  If it wasn't set already, then this will return "
7453 "the default path."
7454 msgstr ""
7455
7456 # type: textblock
7457 #: ../src/guestfs-actions.pod:1988 ../src/guestfs-actions.pod:2017
7458 msgid ""
7459 "This function returns a string, or NULL on error.  The string is owned by "
7460 "the guest handle and must I<not> be freed."
7461 msgstr ""
7462
7463 # type: =head2
7464 #: ../src/guestfs-actions.pod:1993
7465 msgid "guestfs_get_pid"
7466 msgstr ""
7467
7468 # type: verbatim
7469 #: ../src/guestfs-actions.pod:1995
7470 #, no-wrap
7471 msgid ""
7472 " int\n"
7473 " guestfs_get_pid (guestfs_h *g);\n"
7474 "\n"
7475 msgstr ""
7476
7477 # type: textblock
7478 #: ../src/guestfs-actions.pod:1998 ../fish/guestfish-actions.pod:1361
7479 msgid ""
7480 "Return the process ID of the qemu subprocess.  If there is no qemu "
7481 "subprocess, then this will return an error."
7482 msgstr ""
7483
7484 # type: textblock
7485 #: ../src/guestfs-actions.pod:2001 ../fish/guestfish-actions.pod:1364
7486 msgid "This is an internal call used for debugging and testing."
7487 msgstr ""
7488
7489 # type: textblock
7490 #: ../src/guestfs-actions.pod:2005
7491 msgid "(Added in 1.0.56)"
7492 msgstr ""
7493
7494 # type: =head2
7495 #: ../src/guestfs-actions.pod:2007
7496 msgid "guestfs_get_qemu"
7497 msgstr ""
7498
7499 # type: verbatim
7500 #: ../src/guestfs-actions.pod:2009
7501 #, no-wrap
7502 msgid ""
7503 " const char *\n"
7504 " guestfs_get_qemu (guestfs_h *g);\n"
7505 "\n"
7506 msgstr ""
7507
7508 # type: textblock
7509 #: ../src/guestfs-actions.pod:2012 ../fish/guestfish-actions.pod:1370
7510 msgid "Return the current qemu binary."
7511 msgstr ""
7512
7513 # type: textblock
7514 #: ../src/guestfs-actions.pod:2014 ../fish/guestfish-actions.pod:1372
7515 msgid ""
7516 "This is always non-NULL.  If it wasn't set already, then this will return "
7517 "the default qemu binary name."
7518 msgstr ""
7519
7520 # type: textblock
7521 #: ../src/guestfs-actions.pod:2020 ../src/guestfs-actions.pod:5420
7522 msgid "(Added in 1.0.6)"
7523 msgstr ""
7524
7525 # type: =head2
7526 #: ../src/guestfs-actions.pod:2022
7527 msgid "guestfs_get_recovery_proc"
7528 msgstr ""
7529
7530 # type: verbatim
7531 #: ../src/guestfs-actions.pod:2024
7532 #, no-wrap
7533 msgid ""
7534 " int\n"
7535 " guestfs_get_recovery_proc (guestfs_h *g);\n"
7536 "\n"
7537 msgstr ""
7538
7539 # type: textblock
7540 #: ../src/guestfs-actions.pod:2027 ../fish/guestfish-actions.pod:1379
7541 msgid "Return the recovery process enabled flag."
7542 msgstr ""
7543
7544 # type: textblock
7545 #: ../src/guestfs-actions.pod:2031 ../src/guestfs-actions.pod:3086 ../src/guestfs-actions.pod:3353 ../src/guestfs-actions.pod:3753 ../src/guestfs-actions.pod:3785 ../src/guestfs-actions.pod:4724 ../src/guestfs-actions.pod:5067 ../src/guestfs-actions.pod:5444 ../src/guestfs-actions.pod:6103 ../src/guestfs-actions.pod:6123 ../src/guestfs-actions.pod:6305
7546 msgid "(Added in 1.0.77)"
7547 msgstr ""
7548
7549 # type: =head2
7550 #: ../src/guestfs-actions.pod:2033
7551 msgid "guestfs_get_selinux"
7552 msgstr ""
7553
7554 # type: verbatim
7555 #: ../src/guestfs-actions.pod:2035
7556 #, no-wrap
7557 msgid ""
7558 " int\n"
7559 " guestfs_get_selinux (guestfs_h *g);\n"
7560 "\n"
7561 msgstr ""
7562
7563 # type: textblock
7564 #: ../src/guestfs-actions.pod:2038
7565 msgid ""
7566 "This returns the current setting of the selinux flag which is passed to the "
7567 "appliance at boot time.  See C<guestfs_set_selinux>."
7568 msgstr ""
7569
7570 # type: textblock
7571 #: ../src/guestfs-actions.pod:2046 ../src/guestfs-actions.pod:2109 ../src/guestfs-actions.pod:5463 ../src/guestfs-actions.pod:5517
7572 msgid "(Added in 1.0.67)"
7573 msgstr ""
7574
7575 # type: =head2
7576 #: ../src/guestfs-actions.pod:2048
7577 msgid "guestfs_get_state"
7578 msgstr ""
7579
7580 # type: verbatim
7581 #: ../src/guestfs-actions.pod:2050
7582 #, no-wrap
7583 msgid ""
7584 " int\n"
7585 " guestfs_get_state (guestfs_h *g);\n"
7586 "\n"
7587 msgstr ""
7588
7589 # type: textblock
7590 #: ../src/guestfs-actions.pod:2053 ../fish/guestfish-actions.pod:1395
7591 msgid ""
7592 "This returns the current state as an opaque integer.  This is only useful "
7593 "for printing debug and internal error messages."
7594 msgstr ""
7595
7596 # type: textblock
7597 #: ../src/guestfs-actions.pod:2056 ../src/guestfs-actions.pod:2889 ../src/guestfs-actions.pod:2918 ../src/guestfs-actions.pod:2979 ../src/guestfs-actions.pod:3006 ../fish/guestfish-actions.pod:1398 ../fish/guestfish-actions.pod:1991 ../fish/guestfish-actions.pod:2009 ../fish/guestfish-actions.pod:2047 ../fish/guestfish-actions.pod:2063
7598 msgid "For more information on states, see L<guestfs(3)>."
7599 msgstr ""
7600
7601 # type: =head2
7602 #: ../src/guestfs-actions.pod:2062
7603 msgid "guestfs_get_trace"
7604 msgstr ""
7605
7606 # type: verbatim
7607 #: ../src/guestfs-actions.pod:2064
7608 #, no-wrap
7609 msgid ""
7610 " int\n"
7611 " guestfs_get_trace (guestfs_h *g);\n"
7612 "\n"
7613 msgstr ""
7614
7615 # type: textblock
7616 #: ../src/guestfs-actions.pod:2067 ../fish/guestfish-actions.pod:1404
7617 msgid "Return the command trace flag."
7618 msgstr ""
7619
7620 # type: =head2
7621 #: ../src/guestfs-actions.pod:2073
7622 msgid "guestfs_get_umask"
7623 msgstr ""
7624
7625 # type: verbatim
7626 #: ../src/guestfs-actions.pod:2075
7627 #, no-wrap
7628 msgid ""
7629 " int\n"
7630 " guestfs_get_umask (guestfs_h *g);\n"
7631 "\n"
7632 msgstr ""
7633
7634 # type: textblock
7635 #: ../src/guestfs-actions.pod:2078
7636 msgid ""
7637 "Return the current umask.  By default the umask is C<022> unless it has been "
7638 "set by calling C<guestfs_umask>."
7639 msgstr ""
7640
7641 # type: =head2
7642 #: ../src/guestfs-actions.pod:2085
7643 msgid "guestfs_get_verbose"
7644 msgstr ""
7645
7646 # type: verbatim
7647 #: ../src/guestfs-actions.pod:2087
7648 #, no-wrap
7649 msgid ""
7650 " int\n"
7651 " guestfs_get_verbose (guestfs_h *g);\n"
7652 "\n"
7653 msgstr ""
7654
7655 # type: textblock
7656 #: ../src/guestfs-actions.pod:2090 ../fish/guestfish-actions.pod:1417
7657 msgid "This returns the verbose messages flag."
7658 msgstr ""
7659
7660 # type: =head2
7661 #: ../src/guestfs-actions.pod:2096
7662 msgid "guestfs_getcon"
7663 msgstr ""
7664
7665 # type: verbatim
7666 #: ../src/guestfs-actions.pod:2098
7667 #, no-wrap
7668 msgid ""
7669 " char *\n"
7670 " guestfs_getcon (guestfs_h *g);\n"
7671 "\n"
7672 msgstr ""
7673
7674 # type: textblock
7675 #: ../src/guestfs-actions.pod:2101 ../fish/guestfish-actions.pod:1423
7676 msgid "This gets the SELinux security context of the daemon."
7677 msgstr ""
7678
7679 # type: textblock
7680 #: ../src/guestfs-actions.pod:2103
7681 msgid "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
7682 msgstr ""
7683
7684 # type: =head2
7685 #: ../src/guestfs-actions.pod:2111
7686 msgid "guestfs_getxattrs"
7687 msgstr ""
7688
7689 # type: verbatim
7690 #: ../src/guestfs-actions.pod:2113
7691 #, no-wrap
7692 msgid ""
7693 " struct guestfs_xattr_list *\n"
7694 " guestfs_getxattrs (guestfs_h *g,\n"
7695 "                    const char *path);\n"
7696 "\n"
7697 msgstr ""
7698
7699 # type: textblock
7700 #: ../src/guestfs-actions.pod:2117 ../fish/guestfish-actions.pod:1432
7701 msgid "This call lists the extended attributes of the file or directory C<path>."
7702 msgstr ""
7703
7704 # type: textblock
7705 #: ../src/guestfs-actions.pod:2120 ../fish/guestfish-actions.pod:1435
7706 msgid ""
7707 "At the system call level, this is a combination of the L<listxattr(2)> and "
7708 "L<getxattr(2)> calls."
7709 msgstr ""
7710
7711 # type: textblock
7712 #: ../src/guestfs-actions.pod:2123
7713 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
7714 msgstr ""
7715
7716 # type: textblock
7717 #: ../src/guestfs-actions.pod:2125 ../src/guestfs-actions.pod:3098 ../src/guestfs-actions.pod:3749
7718 msgid ""
7719 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
7720 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
7721 msgstr ""
7722
7723 # type: textblock
7724 #: ../src/guestfs-actions.pod:2129 ../src/guestfs-actions.pod:3102 ../src/guestfs-actions.pod:3267 ../src/guestfs-actions.pod:3303 ../src/guestfs-actions.pod:5097 ../src/guestfs-actions.pod:5536 ../src/guestfs-actions.pod:6861
7725 msgid "(Added in 1.0.59)"
7726 msgstr ""
7727
7728 # type: =head2
7729 #: ../src/guestfs-actions.pod:2131
7730 msgid "guestfs_glob_expand"
7731 msgstr ""
7732
7733 # type: verbatim
7734 #: ../src/guestfs-actions.pod:2133
7735 #, no-wrap
7736 msgid ""
7737 " char **\n"
7738 " guestfs_glob_expand (guestfs_h *g,\n"
7739 "                      const char *pattern);\n"
7740 "\n"
7741 msgstr ""
7742
7743 # type: textblock
7744 #: ../src/guestfs-actions.pod:2137 ../fish/guestfish-actions.pod:1444
7745 msgid ""
7746 "This command searches for all the pathnames matching C<pattern> according to "
7747 "the wildcard expansion rules used by the shell."
7748 msgstr ""
7749
7750 # type: textblock
7751 #: ../src/guestfs-actions.pod:2141 ../fish/guestfish-actions.pod:1448
7752 msgid "If no paths match, then this returns an empty list (note: not an error)."
7753 msgstr ""
7754
7755 # type: textblock
7756 #: ../src/guestfs-actions.pod:2144 ../fish/guestfish-actions.pod:1451
7757 msgid ""
7758 "It is just a wrapper around the C L<glob(3)> function with flags "
7759 "C<GLOB_MARK|GLOB_BRACE>.  See that manual page for more details."
7760 msgstr ""
7761
7762 # type: textblock
7763 #: ../src/guestfs-actions.pod:2152 ../src/guestfs-actions.pod:5701 ../src/guestfs-actions.pod:5718
7764 msgid "(Added in 1.0.50)"
7765 msgstr ""
7766
7767 # type: =head2
7768 #: ../src/guestfs-actions.pod:2154
7769 msgid "guestfs_grep"
7770 msgstr ""
7771
7772 # type: verbatim
7773 #: ../src/guestfs-actions.pod:2156
7774 #, no-wrap
7775 msgid ""
7776 " char **\n"
7777 " guestfs_grep (guestfs_h *g,\n"
7778 "               const char *regex,\n"
7779 "               const char *path);\n"
7780 "\n"
7781 msgstr ""
7782
7783 # type: textblock
7784 #: ../src/guestfs-actions.pod:2161 ../fish/guestfish-actions.pod:1459
7785 msgid "This calls the external C<grep> program and returns the matching lines."
7786 msgstr ""
7787
7788 # type: =head2
7789 #: ../src/guestfs-actions.pod:2173
7790 msgid "guestfs_grepi"
7791 msgstr ""
7792
7793 # type: verbatim
7794 #: ../src/guestfs-actions.pod:2175
7795 #, no-wrap
7796 msgid ""
7797 " char **\n"
7798 " guestfs_grepi (guestfs_h *g,\n"
7799 "                const char *regex,\n"
7800 "                const char *path);\n"
7801 "\n"
7802 msgstr ""
7803
7804 # type: textblock
7805 #: ../src/guestfs-actions.pod:2180 ../fish/guestfish-actions.pod:1469
7806 msgid "This calls the external C<grep -i> program and returns the matching lines."
7807 msgstr ""
7808
7809 # type: =head2
7810 #: ../src/guestfs-actions.pod:2192
7811 msgid "guestfs_grub_install"
7812 msgstr ""
7813
7814 # type: verbatim
7815 #: ../src/guestfs-actions.pod:2194
7816 #, no-wrap
7817 msgid ""
7818 " int\n"
7819 " guestfs_grub_install (guestfs_h *g,\n"
7820 "                       const char *root,\n"
7821 "                       const char *device);\n"
7822 "\n"
7823 msgstr ""
7824
7825 # type: textblock
7826 #: ../src/guestfs-actions.pod:2199 ../fish/guestfish-actions.pod:1479
7827 msgid ""
7828 "This command installs GRUB (the Grand Unified Bootloader) on C<device>, with "
7829 "the root directory being C<root>."
7830 msgstr ""
7831
7832 # type: textblock
7833 #: ../src/guestfs-actions.pod:2202 ../fish/guestfish-actions.pod:1482
7834 msgid ""
7835 "Note: If grub-install reports the error \"No suitable drive was found in the "
7836 "generated device map.\" it may be that you need to create a "
7837 "C</boot/grub/device.map> file first that contains the mapping between grub "
7838 "device names and Linux device names.  It is usually sufficient to create a "
7839 "file containing:"
7840 msgstr ""
7841
7842 # type: verbatim
7843 #: ../src/guestfs-actions.pod:2209 ../fish/guestfish-actions.pod:1489
7844 #, no-wrap
7845 msgid ""
7846 " (hd0) /dev/vda\n"
7847 "\n"
7848 msgstr ""
7849
7850 # type: textblock
7851 #: ../src/guestfs-actions.pod:2211 ../fish/guestfish-actions.pod:1491
7852 msgid "replacing C</dev/vda> with the name of the installation device."
7853 msgstr ""
7854
7855 # type: textblock
7856 #: ../src/guestfs-actions.pod:2215
7857 msgid "(Added in 1.0.17)"
7858 msgstr ""
7859
7860 # type: =head2
7861 #: ../src/guestfs-actions.pod:2217
7862 msgid "guestfs_head"
7863 msgstr ""
7864
7865 # type: verbatim
7866 #: ../src/guestfs-actions.pod:2219
7867 #, no-wrap
7868 msgid ""
7869 " char **\n"
7870 " guestfs_head (guestfs_h *g,\n"
7871 "               const char *path);\n"
7872 "\n"
7873 msgstr ""
7874
7875 # type: textblock
7876 #: ../src/guestfs-actions.pod:2223 ../fish/guestfish-actions.pod:1497
7877 msgid ""
7878 "This command returns up to the first 10 lines of a file as a list of "
7879 "strings."
7880 msgstr ""
7881
7882 # type: =head2
7883 #: ../src/guestfs-actions.pod:2235
7884 msgid "guestfs_head_n"
7885 msgstr ""
7886
7887 # type: verbatim
7888 #: ../src/guestfs-actions.pod:2237
7889 #, no-wrap
7890 msgid ""
7891 " char **\n"
7892 " guestfs_head_n (guestfs_h *g,\n"
7893 "                 int nrlines,\n"
7894 "                 const char *path);\n"
7895 "\n"
7896 msgstr ""
7897
7898 # type: textblock
7899 #: ../src/guestfs-actions.pod:2242 ../fish/guestfish-actions.pod:1507
7900 msgid ""
7901 "If the parameter C<nrlines> is a positive number, this returns the first "
7902 "C<nrlines> lines of the file C<path>."
7903 msgstr ""
7904
7905 # type: textblock
7906 #: ../src/guestfs-actions.pod:2245 ../fish/guestfish-actions.pod:1510
7907 msgid ""
7908 "If the parameter C<nrlines> is a negative number, this returns lines from "
7909 "the file C<path>, excluding the last C<nrlines> lines."
7910 msgstr ""
7911
7912 # type: textblock
7913 #: ../src/guestfs-actions.pod:2248 ../src/guestfs-actions.pod:5998 ../fish/guestfish-actions.pod:1513 ../fish/guestfish-actions.pod:3991
7914 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
7915 msgstr ""
7916
7917 # type: =head2
7918 #: ../src/guestfs-actions.pod:2259
7919 msgid "guestfs_hexdump"
7920 msgstr ""
7921
7922 # type: verbatim
7923 #: ../src/guestfs-actions.pod:2261
7924 #, no-wrap
7925 msgid ""
7926 " char *\n"
7927 " guestfs_hexdump (guestfs_h *g,\n"
7928 "                  const char *path);\n"
7929 "\n"
7930 msgstr ""
7931
7932 # type: textblock
7933 #: ../src/guestfs-actions.pod:2265 ../fish/guestfish-actions.pod:1522
7934 msgid ""
7935 "This runs C<hexdump -C> on the given C<path>.  The result is the "
7936 "human-readable, canonical hex dump of the file."
7937 msgstr ""
7938
7939 # type: textblock
7940 #: ../src/guestfs-actions.pod:2274 ../src/guestfs-actions.pod:5782 ../src/guestfs-actions.pod:5837
7941 msgid "(Added in 1.0.22)"
7942 msgstr ""
7943
7944 # type: =head2
7945 #: ../src/guestfs-actions.pod:2276
7946 msgid "guestfs_initrd_cat"
7947 msgstr ""
7948
7949 # type: verbatim
7950 #: ../src/guestfs-actions.pod:2278
7951 #, no-wrap
7952 msgid ""
7953 " char *\n"
7954 " guestfs_initrd_cat (guestfs_h *g,\n"
7955 "                     const char *initrdpath,\n"
7956 "                     const char *filename,\n"
7957 "                     size_t *size_r);\n"
7958 "\n"
7959 msgstr ""
7960
7961 # type: textblock
7962 #: ../src/guestfs-actions.pod:2284 ../fish/guestfish-actions.pod:1532
7963 msgid ""
7964 "This command unpacks the file C<filename> from the initrd file called "
7965 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
7966 "character."
7967 msgstr ""
7968
7969 # type: textblock
7970 #: ../src/guestfs-actions.pod:2288 ../fish/guestfish-actions.pod:1536
7971 msgid ""
7972 "For example, in guestfish you could use the following command to examine the "
7973 "boot script (usually called C</init>)  contained in a Linux initrd or "
7974 "initramfs image:"
7975 msgstr ""
7976
7977 # type: verbatim
7978 #: ../src/guestfs-actions.pod:2292 ../fish/guestfish-actions.pod:1540
7979 #, no-wrap
7980 msgid ""
7981 " initrd-cat /boot/initrd-<version>.img init\n"
7982 "\n"
7983 msgstr ""
7984
7985 # type: textblock
7986 #: ../src/guestfs-actions.pod:2294
7987 msgid "See also C<guestfs_initrd_list>."
7988 msgstr ""
7989
7990 # type: textblock
7991 #: ../src/guestfs-actions.pod:2296 ../src/guestfs-actions.pod:4717 ../src/guestfs-actions.pod:4743 ../src/guestfs-actions.pod:4924
7992 msgid ""
7993 "This function returns a buffer, or NULL on error.  The size of the returned "
7994 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
7995 "after use>."
7996 msgstr ""
7997
7998 # type: =head2
7999 #: ../src/guestfs-actions.pod:2305
8000 msgid "guestfs_initrd_list"
8001 msgstr ""
8002
8003 # type: verbatim
8004 #: ../src/guestfs-actions.pod:2307
8005 #, no-wrap
8006 msgid ""
8007 " char **\n"
8008 " guestfs_initrd_list (guestfs_h *g,\n"
8009 "                      const char *path);\n"
8010 "\n"
8011 msgstr ""
8012
8013 # type: textblock
8014 #: ../src/guestfs-actions.pod:2311 ../fish/guestfish-actions.pod:1551
8015 msgid "This command lists out files contained in an initrd."
8016 msgstr ""
8017
8018 # type: textblock
8019 #: ../src/guestfs-actions.pod:2313 ../fish/guestfish-actions.pod:1553
8020 msgid ""
8021 "The files are listed without any initial C</> character.  The files are "
8022 "listed in the order they appear (not necessarily alphabetical).  Directory "
8023 "names are listed as separate items."
8024 msgstr ""
8025
8026 # type: textblock
8027 #: ../src/guestfs-actions.pod:2317 ../fish/guestfish-actions.pod:1557
8028 msgid ""
8029 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
8030 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
8031 "files)."
8032 msgstr ""
8033
8034 # type: =head2
8035 #: ../src/guestfs-actions.pod:2327
8036 msgid "guestfs_inotify_add_watch"
8037 msgstr ""
8038
8039 # type: verbatim
8040 #: ../src/guestfs-actions.pod:2329
8041 #, no-wrap
8042 msgid ""
8043 " int64_t\n"
8044 " guestfs_inotify_add_watch (guestfs_h *g,\n"
8045 "                            const char *path,\n"
8046 "                            int mask);\n"
8047 "\n"
8048 msgstr ""
8049
8050 # type: textblock
8051 #: ../src/guestfs-actions.pod:2334 ../fish/guestfish-actions.pod:1565
8052 msgid "Watch C<path> for the events listed in C<mask>."
8053 msgstr ""
8054
8055 # type: textblock
8056 #: ../src/guestfs-actions.pod:2336 ../fish/guestfish-actions.pod:1567
8057 msgid ""
8058 "Note that if C<path> is a directory then events within that directory are "
8059 "watched, but this does I<not> happen recursively (in subdirectories)."
8060 msgstr ""
8061
8062 # type: textblock
8063 #: ../src/guestfs-actions.pod:2340 ../fish/guestfish-actions.pod:1571
8064 msgid ""
8065 "Note for non-C or non-Linux callers: the inotify events are defined by the "
8066 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
8067 msgstr ""
8068
8069 # type: =head2
8070 #: ../src/guestfs-actions.pod:2348
8071 msgid "guestfs_inotify_close"
8072 msgstr ""
8073
8074 # type: verbatim
8075 #: ../src/guestfs-actions.pod:2350
8076 #, no-wrap
8077 msgid ""
8078 " int\n"
8079 " guestfs_inotify_close (guestfs_h *g);\n"
8080 "\n"
8081 msgstr ""
8082
8083 # type: textblock
8084 #: ../src/guestfs-actions.pod:2353 ../fish/guestfish-actions.pod:1579
8085 msgid ""
8086 "This closes the inotify handle which was previously opened by inotify_init.  "
8087 "It removes all watches, throws away any pending events, and deallocates all "
8088 "resources."
8089 msgstr ""
8090
8091 # type: =head2
8092 #: ../src/guestfs-actions.pod:2361
8093 msgid "guestfs_inotify_files"
8094 msgstr ""
8095
8096 # type: verbatim
8097 #: ../src/guestfs-actions.pod:2363
8098 #, no-wrap
8099 msgid ""
8100 " char **\n"
8101 " guestfs_inotify_files (guestfs_h *g);\n"
8102 "\n"
8103 msgstr ""
8104
8105 # type: textblock
8106 #: ../src/guestfs-actions.pod:2366
8107 msgid ""
8108 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
8109 "returns a list of pathnames of objects that were touched.  The returned "
8110 "pathnames are sorted and deduplicated."
8111 msgstr ""
8112
8113 # type: =head2
8114 #: ../src/guestfs-actions.pod:2376
8115 msgid "guestfs_inotify_init"
8116 msgstr ""
8117
8118 # type: verbatim
8119 #: ../src/guestfs-actions.pod:2378
8120 #, no-wrap
8121 msgid ""
8122 " int\n"
8123 " guestfs_inotify_init (guestfs_h *g,\n"
8124 "                       int maxevents);\n"
8125 "\n"
8126 msgstr ""
8127
8128 # type: textblock
8129 #: ../src/guestfs-actions.pod:2382 ../fish/guestfish-actions.pod:1595
8130 msgid ""
8131 "This command creates a new inotify handle.  The inotify subsystem can be "
8132 "used to notify events which happen to objects in the guest filesystem."
8133 msgstr ""
8134
8135 # type: textblock
8136 #: ../src/guestfs-actions.pod:2386
8137 msgid ""
8138 "C<maxevents> is the maximum number of events which will be queued up between "
8139 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
8140 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
8141 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
8142 "throws away events, but records the fact that it threw them away by setting "
8143 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
8144 "C<guestfs_inotify_read>)."
8145 msgstr ""
8146
8147 # type: textblock
8148 #: ../src/guestfs-actions.pod:2396
8149 msgid ""
8150 "Before any events are generated, you have to add some watches to the "
8151 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
8152 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
8153 msgstr ""
8154
8155 # type: textblock
8156 #: ../src/guestfs-actions.pod:2402
8157 msgid ""
8158 "Queued up events should be read periodically by calling "
8159 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
8160 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
8161 "often enough then you risk the internal queue overflowing."
8162 msgstr ""
8163
8164 # type: textblock
8165 #: ../src/guestfs-actions.pod:2409
8166 msgid ""
8167 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
8168 "This also removes any watches automatically."
8169 msgstr ""
8170
8171 # type: textblock
8172 #: ../src/guestfs-actions.pod:2413 ../fish/guestfish-actions.pod:1626
8173 msgid ""
8174 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
8175 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
8176 "that there is one global inotify handle per libguestfs instance."
8177 msgstr ""
8178
8179 # type: =head2
8180 #: ../src/guestfs-actions.pod:2422
8181 msgid "guestfs_inotify_read"
8182 msgstr ""
8183
8184 # type: verbatim
8185 #: ../src/guestfs-actions.pod:2424
8186 #, no-wrap
8187 msgid ""
8188 " struct guestfs_inotify_event_list *\n"
8189 " guestfs_inotify_read (guestfs_h *g);\n"
8190 "\n"
8191 msgstr ""
8192
8193 # type: textblock
8194 #: ../src/guestfs-actions.pod:2427 ../fish/guestfish-actions.pod:1635
8195 msgid ""
8196 "Return the complete queue of events that have happened since the previous "
8197 "read call."
8198 msgstr ""
8199
8200 # type: textblock
8201 #: ../src/guestfs-actions.pod:2430 ../fish/guestfish-actions.pod:1638
8202 msgid "If no events have happened, this returns an empty list."
8203 msgstr ""
8204
8205 # type: textblock
8206 #: ../src/guestfs-actions.pod:2432 ../fish/guestfish-actions.pod:1640
8207 msgid ""
8208 "I<Note>: In order to make sure that all events have been read, you must call "
8209 "this function repeatedly until it returns an empty list.  The reason is that "
8210 "the call will read events up to the maximum appliance-to-host message size "
8211 "and leave remaining events in the queue."
8212 msgstr ""
8213
8214 # type: textblock
8215 #: ../src/guestfs-actions.pod:2438
8216 msgid ""
8217 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
8218 "there was an error.  I<The caller must call "
8219 "C<guestfs_free_inotify_event_list> after use>."
8220 msgstr ""
8221
8222 # type: =head2
8223 #: ../src/guestfs-actions.pod:2444
8224 msgid "guestfs_inotify_rm_watch"
8225 msgstr ""
8226
8227 # type: verbatim
8228 #: ../src/guestfs-actions.pod:2446
8229 #, no-wrap
8230 msgid ""
8231 " int\n"
8232 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
8233 "                           int wd);\n"
8234 "\n"
8235 msgstr ""
8236
8237 # type: textblock
8238 #: ../src/guestfs-actions.pod:2450
8239 msgid ""
8240 "Remove a previously defined inotify watch.  See "
8241 "C<guestfs_inotify_add_watch>."
8242 msgstr ""
8243
8244 # type: =head2
8245 #: ../src/guestfs-actions.pod:2457
8246 msgid "guestfs_inspect_get_arch"
8247 msgstr ""
8248
8249 # type: verbatim
8250 #: ../src/guestfs-actions.pod:2459
8251 #, no-wrap
8252 msgid ""
8253 " char *\n"
8254 " guestfs_inspect_get_arch (guestfs_h *g,\n"
8255 "                           const char *root);\n"
8256 "\n"
8257 msgstr ""
8258
8259 # type: textblock
8260 #: ../src/guestfs-actions.pod:2463 ../src/guestfs-actions.pod:2486 ../src/guestfs-actions.pod:2559 ../src/guestfs-actions.pod:2585 ../src/guestfs-actions.pod:2612 ../src/guestfs-actions.pod:2633 ../src/guestfs-actions.pod:2666 ../src/guestfs-actions.pod:2693 ../src/guestfs-actions.pod:2722 ../src/guestfs-actions.pod:2764 ../src/guestfs-actions.pod:2806
8261 msgid ""
8262 "This function should only be called with a root device string as returned by "
8263 "C<guestfs_inspect_os>."
8264 msgstr ""
8265
8266 # type: textblock
8267 #: ../src/guestfs-actions.pod:2466
8268 msgid ""
8269 "This returns the architecture of the inspected operating system.  The "
8270 "possible return values are listed under C<guestfs_file_architecture>."
8271 msgstr ""
8272
8273 # type: textblock
8274 #: ../src/guestfs-actions.pod:2470 ../fish/guestfish-actions.pod:1664
8275 msgid ""
8276 "If the architecture could not be determined, then the string C<unknown> is "
8277 "returned."
8278 msgstr ""
8279
8280 # type: textblock
8281 #: ../src/guestfs-actions.pod:2473 ../src/guestfs-actions.pod:2546 ../src/guestfs-actions.pod:2600 ../src/guestfs-actions.pod:2682 ../src/guestfs-actions.pod:2711 ../src/guestfs-actions.pod:2733 ../src/guestfs-actions.pod:2752 ../src/guestfs-actions.pod:2793 ../src/guestfs-actions.pod:2816 ../src/guestfs-actions.pod:2856 ../fish/guestfish-actions.pod:1667 ../fish/guestfish-actions.pod:1733 ../fish/guestfish-actions.pod:1772 ../fish/guestfish-actions.pod:1832 ../fish/guestfish-actions.pod:1856 ../fish/guestfish-actions.pod:1873 ../fish/guestfish-actions.pod:1886 ../fish/guestfish-actions.pod:1921 ../fish/guestfish-actions.pod:1937 ../fish/guestfish-actions.pod:1971
8282 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
8283 msgstr ""
8284
8285 # type: =head2
8286 #: ../src/guestfs-actions.pod:2480
8287 msgid "guestfs_inspect_get_distro"
8288 msgstr ""
8289
8290 # type: verbatim
8291 #: ../src/guestfs-actions.pod:2482
8292 #, no-wrap
8293 msgid ""
8294 " char *\n"
8295 " guestfs_inspect_get_distro (guestfs_h *g,\n"
8296 "                             const char *root);\n"
8297 "\n"
8298 msgstr ""
8299
8300 # type: textblock
8301 #: ../src/guestfs-actions.pod:2489 ../fish/guestfish-actions.pod:1676
8302 msgid "This returns the distro (distribution) of the inspected operating system."
8303 msgstr ""
8304
8305 # type: textblock
8306 #: ../src/guestfs-actions.pod:2492 ../fish/guestfish-actions.pod:1679
8307 msgid "Currently defined distros are:"
8308 msgstr ""
8309
8310 # type: =item
8311 #: ../src/guestfs-actions.pod:2496 ../fish/guestfish-actions.pod:1683
8312 msgid "\"archlinux\""
8313 msgstr ""
8314
8315 # type: textblock
8316 #: ../src/guestfs-actions.pod:2498 ../fish/guestfish-actions.pod:1685
8317 msgid "Arch Linux."
8318 msgstr ""
8319
8320 # type: =item
8321 #: ../src/guestfs-actions.pod:2500 ../fish/guestfish-actions.pod:1687
8322 msgid "\"debian\""
8323 msgstr ""
8324
8325 # type: textblock
8326 #: ../src/guestfs-actions.pod:2502 ../fish/guestfish-actions.pod:1689
8327 msgid "Debian or a Debian-derived distro such as Ubuntu."
8328 msgstr ""
8329
8330 # type: =item
8331 #: ../src/guestfs-actions.pod:2504 ../fish/guestfish-actions.pod:1691
8332 msgid "\"fedora\""
8333 msgstr ""
8334
8335 # type: textblock
8336 #: ../src/guestfs-actions.pod:2506 ../fish/guestfish-actions.pod:1693
8337 msgid "Fedora."
8338 msgstr ""
8339
8340 # type: =item
8341 #: ../src/guestfs-actions.pod:2508 ../fish/guestfish-actions.pod:1695
8342 msgid "\"gentoo\""
8343 msgstr ""
8344
8345 # type: textblock
8346 #: ../src/guestfs-actions.pod:2510 ../fish/guestfish-actions.pod:1697
8347 msgid "Gentoo."
8348 msgstr ""
8349
8350 # type: =item
8351 #: ../src/guestfs-actions.pod:2512 ../fish/guestfish-actions.pod:1699
8352 msgid "\"meego\""
8353 msgstr ""
8354
8355 # type: textblock
8356 #: ../src/guestfs-actions.pod:2514 ../fish/guestfish-actions.pod:1701
8357 msgid "MeeGo."
8358 msgstr ""
8359
8360 # type: =item
8361 #: ../src/guestfs-actions.pod:2516 ../fish/guestfish-actions.pod:1703
8362 msgid "\"pardus\""
8363 msgstr ""
8364
8365 # type: textblock
8366 #: ../src/guestfs-actions.pod:2518 ../fish/guestfish-actions.pod:1705
8367 msgid "Pardus."
8368 msgstr ""
8369
8370 # type: =item
8371 #: ../src/guestfs-actions.pod:2520 ../fish/guestfish-actions.pod:1707
8372 msgid "\"redhat-based\""
8373 msgstr ""
8374
8375 # type: textblock
8376 #: ../src/guestfs-actions.pod:2522 ../fish/guestfish-actions.pod:1709
8377 msgid "Some Red Hat-derived distro."
8378 msgstr ""
8379
8380 # type: =item
8381 #: ../src/guestfs-actions.pod:2524 ../fish/guestfish-actions.pod:1711
8382 msgid "\"rhel\""
8383 msgstr ""
8384
8385 # type: textblock
8386 #: ../src/guestfs-actions.pod:2526 ../fish/guestfish-actions.pod:1713
8387 msgid "Red Hat Enterprise Linux and some derivatives."
8388 msgstr ""
8389
8390 # type: =item
8391 #: ../src/guestfs-actions.pod:2528 ../src/guestfs-actions.pod:2776 ../fish/guestfish-actions.pod:1715 ../fish/guestfish-actions.pod:1904
8392 msgid "\"windows\""
8393 msgstr ""
8394
8395 # type: textblock
8396 #: ../src/guestfs-actions.pod:2530 ../fish/guestfish-actions.pod:1717
8397 msgid ""
8398 "Windows does not have distributions.  This string is returned if the OS type "
8399 "is Windows."
8400 msgstr ""
8401
8402 # type: =item
8403 #: ../src/guestfs-actions.pod:2533 ../fish/guestfish-actions.pod:1720
8404 msgid "\"ubuntu\""
8405 msgstr ""
8406
8407 # type: textblock
8408 #: ../src/guestfs-actions.pod:2535 ../fish/guestfish-actions.pod:1722
8409 msgid "Ubuntu."
8410 msgstr ""
8411
8412 # type: =item
8413 #: ../src/guestfs-actions.pod:2537 ../src/guestfs-actions.pod:2784 ../fish/guestfish-actions.pod:1724 ../fish/guestfish-actions.pod:1912
8414 msgid "\"unknown\""
8415 msgstr ""
8416
8417 # type: textblock
8418 #: ../src/guestfs-actions.pod:2539 ../fish/guestfish-actions.pod:1726
8419 msgid "The distro could not be determined."
8420 msgstr ""
8421
8422 # type: textblock
8423 #: ../src/guestfs-actions.pod:2543 ../src/guestfs-actions.pod:2790 ../fish/guestfish-actions.pod:1730 ../fish/guestfish-actions.pod:1918
8424 msgid ""
8425 "Future versions of libguestfs may return other strings here.  The caller "
8426 "should be prepared to handle any string."
8427 msgstr ""
8428
8429 # type: =head2
8430 #: ../src/guestfs-actions.pod:2553
8431 msgid "guestfs_inspect_get_filesystems"
8432 msgstr ""
8433
8434 # type: verbatim
8435 #: ../src/guestfs-actions.pod:2555
8436 #, no-wrap
8437 msgid ""
8438 " char **\n"
8439 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
8440 "                                  const char *root);\n"
8441 "\n"
8442 msgstr ""
8443
8444 # type: textblock
8445 #: ../src/guestfs-actions.pod:2562 ../fish/guestfish-actions.pod:1742
8446 msgid ""
8447 "This returns a list of all the filesystems that we think are associated with "
8448 "this operating system.  This includes the root filesystem, other ordinary "
8449 "filesystems, and non-mounted devices like swap partitions."
8450 msgstr ""
8451
8452 # type: textblock
8453 #: ../src/guestfs-actions.pod:2567 ../fish/guestfish-actions.pod:1747
8454 msgid ""
8455 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
8456 "to be shared between operating systems."
8457 msgstr ""
8458
8459 # type: textblock
8460 #: ../src/guestfs-actions.pod:2570
8461 msgid ""
8462 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
8463 "C<guestfs_inspect_get_mountpoints>."
8464 msgstr ""
8465
8466 # type: =head2
8467 #: ../src/guestfs-actions.pod:2579
8468 msgid "guestfs_inspect_get_major_version"
8469 msgstr ""
8470
8471 # type: verbatim
8472 #: ../src/guestfs-actions.pod:2581
8473 #, no-wrap
8474 msgid ""
8475 " int\n"
8476 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
8477 "                                    const char *root);\n"
8478 "\n"
8479 msgstr ""
8480
8481 # type: textblock
8482 #: ../src/guestfs-actions.pod:2588 ../fish/guestfish-actions.pod:1760
8483 msgid "This returns the major version number of the inspected operating system."
8484 msgstr ""
8485
8486 # type: textblock
8487 #: ../src/guestfs-actions.pod:2591 ../fish/guestfish-actions.pod:1763
8488 msgid ""
8489 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
8490 "popular public names used by the operating system.  Notably the operating "
8491 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
8492 "1).  You can find out the real versions corresponding to releases of Windows "
8493 "by consulting Wikipedia or MSDN."
8494 msgstr ""
8495
8496 # type: textblock
8497 #: ../src/guestfs-actions.pod:2598 ../src/guestfs-actions.pod:2618 ../fish/guestfish-actions.pod:1770 ../fish/guestfish-actions.pod:1784
8498 msgid "If the version could not be determined, then C<0> is returned."
8499 msgstr ""
8500
8501 # type: =head2
8502 #: ../src/guestfs-actions.pod:2606
8503 msgid "guestfs_inspect_get_minor_version"
8504 msgstr ""
8505
8506 # type: verbatim
8507 #: ../src/guestfs-actions.pod:2608
8508 #, no-wrap
8509 msgid ""
8510 " int\n"
8511 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
8512 "                                    const char *root);\n"
8513 "\n"
8514 msgstr ""
8515
8516 # type: textblock
8517 #: ../src/guestfs-actions.pod:2615 ../fish/guestfish-actions.pod:1781
8518 msgid "This returns the minor version number of the inspected operating system."
8519 msgstr ""
8520
8521 # type: textblock
8522 #: ../src/guestfs-actions.pod:2620
8523 msgid ""
8524 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
8525 "C<guestfs_inspect_get_major_version>."
8526 msgstr ""
8527
8528 # type: =head2
8529 #: ../src/guestfs-actions.pod:2627
8530 msgid "guestfs_inspect_get_mountpoints"
8531 msgstr ""
8532
8533 # type: verbatim
8534 #: ../src/guestfs-actions.pod:2629
8535 #, no-wrap
8536 msgid ""
8537 " char **\n"
8538 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
8539 "                                  const char *root);\n"
8540 "\n"
8541 msgstr ""
8542
8543 # type: textblock
8544 #: ../src/guestfs-actions.pod:2636 ../fish/guestfish-actions.pod:1796
8545 msgid ""
8546 "This returns a hash of where we think the filesystems associated with this "
8547 "operating system should be mounted.  Callers should note that this is at "
8548 "best an educated guess made by reading configuration files such as "
8549 "C</etc/fstab>."
8550 msgstr ""
8551
8552 # type: textblock
8553 #: ../src/guestfs-actions.pod:2641 ../fish/guestfish-actions.pod:1801
8554 msgid ""
8555 "Each element in the returned hashtable has a key which is the path of the "
8556 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
8557 "mounted there (eg. C</dev/sda1>)."
8558 msgstr ""
8559
8560 # type: textblock
8561 #: ../src/guestfs-actions.pod:2646 ../fish/guestfish-actions.pod:1806
8562 msgid "Non-mounted devices such as swap devices are I<not> returned in this list."
8563 msgstr ""
8564
8565 # type: textblock
8566 #: ../src/guestfs-actions.pod:2649
8567 msgid ""
8568 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
8569 "C<guestfs_inspect_get_filesystems>."
8570 msgstr ""
8571
8572 # type: textblock
8573 #: ../src/guestfs-actions.pod:2652 ../src/guestfs-actions.pod:3155 ../src/guestfs-actions.pod:4283 ../src/guestfs-actions.pod:6139
8574 msgid ""
8575 "This function returns a NULL-terminated array of strings, or NULL if there "
8576 "was an error.  The array of strings will always have length C<2n+1>, where "
8577 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
8578 "caller must free the strings and the array after use>."
8579 msgstr ""
8580
8581 # type: =head2
8582 #: ../src/guestfs-actions.pod:2660
8583 msgid "guestfs_inspect_get_package_format"
8584 msgstr ""
8585
8586 # type: verbatim
8587 #: ../src/guestfs-actions.pod:2662
8588 #, no-wrap
8589 msgid ""
8590 " char *\n"
8591 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
8592 "                                     const char *root);\n"
8593 "\n"
8594 msgstr ""
8595
8596 # type: textblock
8597 #: ../src/guestfs-actions.pod:2669
8598 msgid ""
8599 "This function and C<guestfs_inspect_get_package_management> return the "
8600 "package format and package management tool used by the inspected operating "
8601 "system.  For example for Fedora these functions would return C<rpm> (package "
8602 "format) and C<yum> (package management)."
8603 msgstr ""
8604
8605 # type: textblock
8606 #: ../src/guestfs-actions.pod:2675 ../fish/guestfish-actions.pod:1825
8607 msgid ""
8608 "This returns the string C<unknown> if we could not determine the package "
8609 "format I<or> if the operating system does not have a real packaging system "
8610 "(eg. Windows)."
8611 msgstr ""
8612
8613 # type: textblock
8614 #: ../src/guestfs-actions.pod:2679 ../fish/guestfish-actions.pod:1829
8615 msgid ""
8616 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>.  "
8617 "Future versions of libguestfs may return other strings."
8618 msgstr ""
8619
8620 # type: =head2
8621 #: ../src/guestfs-actions.pod:2687
8622 msgid "guestfs_inspect_get_package_management"
8623 msgstr ""
8624
8625 # type: verbatim
8626 #: ../src/guestfs-actions.pod:2689
8627 #, no-wrap
8628 msgid ""
8629 " char *\n"
8630 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
8631 "                                         const char *root);\n"
8632 "\n"
8633 msgstr ""
8634
8635 # type: textblock
8636 #: ../src/guestfs-actions.pod:2696
8637 msgid ""
8638 "C<guestfs_inspect_get_package_format> and this function return the package "
8639 "format and package management tool used by the inspected operating system.  "
8640 "For example for Fedora these functions would return C<rpm> (package format) "
8641 "and C<yum> (package management)."
8642 msgstr ""
8643
8644 # type: textblock
8645 #: ../src/guestfs-actions.pod:2702 ../fish/guestfish-actions.pod:1847
8646 msgid ""
8647 "This returns the string C<unknown> if we could not determine the package "
8648 "management tool I<or> if the operating system does not have a real packaging "
8649 "system (eg. Windows)."
8650 msgstr ""
8651
8652 # type: textblock
8653 #: ../src/guestfs-actions.pod:2706 ../fish/guestfish-actions.pod:1851
8654 msgid ""
8655 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
8656 "derivatives), C<portage>, C<pisi>, C<pacman>.  Future versions of libguestfs "
8657 "may return other strings."
8658 msgstr ""
8659
8660 # type: =head2
8661 #: ../src/guestfs-actions.pod:2716
8662 msgid "guestfs_inspect_get_product_name"
8663 msgstr ""
8664
8665 # type: verbatim
8666 #: ../src/guestfs-actions.pod:2718
8667 #, no-wrap
8668 msgid ""
8669 " char *\n"
8670 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
8671 "                                   const char *root);\n"
8672 "\n"
8673 msgstr ""
8674
8675 # type: textblock
8676 #: ../src/guestfs-actions.pod:2725 ../fish/guestfish-actions.pod:1865
8677 msgid ""
8678 "This returns the product name of the inspected operating system.  The "
8679 "product name is generally some freeform string which can be displayed to the "
8680 "user, but should not be parsed by programs."
8681 msgstr ""
8682
8683 # type: textblock
8684 #: ../src/guestfs-actions.pod:2730 ../fish/guestfish-actions.pod:1870
8685 msgid ""
8686 "If the product name could not be determined, then the string C<unknown> is "
8687 "returned."
8688 msgstr ""
8689
8690 # type: =head2
8691 #: ../src/guestfs-actions.pod:2740
8692 msgid "guestfs_inspect_get_roots"
8693 msgstr ""
8694
8695 # type: verbatim
8696 #: ../src/guestfs-actions.pod:2742
8697 #, no-wrap
8698 msgid ""
8699 " char **\n"
8700 " guestfs_inspect_get_roots (guestfs_h *g);\n"
8701 "\n"
8702 msgstr ""
8703
8704 # type: textblock
8705 #: ../src/guestfs-actions.pod:2745
8706 msgid ""
8707 "This function is a convenient way to get the list of root devices, as "
8708 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
8709 "the whole inspection process."
8710 msgstr ""
8711
8712 # type: textblock
8713 #: ../src/guestfs-actions.pod:2749
8714 msgid ""
8715 "This returns an empty list if either no root devices were found or the "
8716 "caller has not called C<guestfs_inspect_os>."
8717 msgstr ""
8718
8719 # type: =head2
8720 #: ../src/guestfs-actions.pod:2758
8721 msgid "guestfs_inspect_get_type"
8722 msgstr ""
8723
8724 # type: verbatim
8725 #: ../src/guestfs-actions.pod:2760
8726 #, no-wrap
8727 msgid ""
8728 " char *\n"
8729 " guestfs_inspect_get_type (guestfs_h *g,\n"
8730 "                           const char *root);\n"
8731 "\n"
8732 msgstr ""
8733
8734 # type: textblock
8735 #: ../src/guestfs-actions.pod:2767 ../fish/guestfish-actions.pod:1895
8736 msgid ""
8737 "This returns the type of the inspected operating system.  Currently defined "
8738 "types are:"
8739 msgstr ""
8740
8741 # type: =item
8742 #: ../src/guestfs-actions.pod:2772 ../fish/guestfish-actions.pod:1900
8743 msgid "\"linux\""
8744 msgstr ""
8745
8746 # type: textblock
8747 #: ../src/guestfs-actions.pod:2774 ../fish/guestfish-actions.pod:1902
8748 msgid "Any Linux-based operating system."
8749 msgstr ""
8750
8751 # type: textblock
8752 #: ../src/guestfs-actions.pod:2778 ../fish/guestfish-actions.pod:1906
8753 msgid "Any Microsoft Windows operating system."
8754 msgstr ""
8755
8756 # type: =item
8757 #: ../src/guestfs-actions.pod:2780 ../fish/guestfish-actions.pod:1908
8758 msgid "\"freebsd\""
8759 msgstr ""
8760
8761 # type: textblock
8762 #: ../src/guestfs-actions.pod:2782 ../fish/guestfish-actions.pod:1910
8763 msgid "FreeBSD."
8764 msgstr ""
8765
8766 # type: textblock
8767 #: ../src/guestfs-actions.pod:2786 ../fish/guestfish-actions.pod:1914
8768 msgid "The operating system type could not be determined."
8769 msgstr ""
8770
8771 # type: =head2
8772 #: ../src/guestfs-actions.pod:2800
8773 msgid "guestfs_inspect_get_windows_systemroot"
8774 msgstr ""
8775
8776 # type: verbatim
8777 #: ../src/guestfs-actions.pod:2802
8778 #, no-wrap
8779 msgid ""
8780 " char *\n"
8781 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
8782 "                                         const char *root);\n"
8783 "\n"
8784 msgstr ""
8785
8786 # type: textblock
8787 #: ../src/guestfs-actions.pod:2809 ../fish/guestfish-actions.pod:1930
8788 msgid ""
8789 "This returns the Windows systemroot of the inspected guest.  The systemroot "
8790 "is a directory path such as C</WINDOWS>."
8791 msgstr ""
8792
8793 # type: textblock
8794 #: ../src/guestfs-actions.pod:2812 ../fish/guestfish-actions.pod:1933
8795 msgid ""
8796 "This call assumes that the guest is Windows and that the systemroot could be "
8797 "determined by inspection.  If this is not the case then an error is "
8798 "returned."
8799 msgstr ""
8800
8801 # type: textblock
8802 #: ../src/guestfs-actions.pod:2821
8803 msgid "(Added in 1.5.25)"
8804 msgstr ""
8805
8806 # type: =head2
8807 #: ../src/guestfs-actions.pod:2823
8808 msgid "guestfs_inspect_os"
8809 msgstr ""
8810
8811 # type: verbatim
8812 #: ../src/guestfs-actions.pod:2825
8813 #, no-wrap
8814 msgid ""
8815 " char **\n"
8816 " guestfs_inspect_os (guestfs_h *g);\n"
8817 "\n"
8818 msgstr ""
8819
8820 # type: textblock
8821 #: ../src/guestfs-actions.pod:2828 ../fish/guestfish-actions.pod:1943
8822 msgid ""
8823 "This function uses other libguestfs functions and certain heuristics to "
8824 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
8825 "for operating systems."
8826 msgstr ""
8827
8828 # type: textblock
8829 #: ../src/guestfs-actions.pod:2832 ../fish/guestfish-actions.pod:1947
8830 msgid "The list returned is empty if no operating systems were found."
8831 msgstr ""
8832
8833 # type: textblock
8834 #: ../src/guestfs-actions.pod:2834 ../fish/guestfish-actions.pod:1949
8835 msgid ""
8836 "If one operating system was found, then this returns a list with a single "
8837 "element, which is the name of the root filesystem of this operating system.  "
8838 "It is also possible for this function to return a list containing more than "
8839 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
8840 "element being the root filesystem of one of the operating systems."
8841 msgstr ""
8842
8843 # type: textblock
8844 #: ../src/guestfs-actions.pod:2841
8845 msgid ""
8846 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
8847 "functions in order to query further information about each operating system, "
8848 "such as the name and version."
8849 msgstr ""
8850
8851 # type: textblock
8852 #: ../src/guestfs-actions.pod:2846
8853 msgid ""
8854 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
8855 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
8856 "the contents.  This should be called with no disks currently mounted.  The "
8857 "function may also use Augeas, so any existing Augeas handle will be closed."
8858 msgstr ""
8859
8860 # type: textblock
8861 #: ../src/guestfs-actions.pod:2852 ../fish/guestfish-actions.pod:1967
8862 msgid ""
8863 "This function cannot decrypt encrypted disks.  The caller must do that first "
8864 "(supplying the necessary keys) if the disk is encrypted."
8865 msgstr ""
8866
8867 # type: textblock
8868 #: ../src/guestfs-actions.pod:2858 ../src/guestfs-actions.pod:3113 ../src/guestfs-actions.pod:3175
8869 msgid "See also C<guestfs_list_filesystems>."
8870 msgstr ""
8871
8872 # type: =head2
8873 #: ../src/guestfs-actions.pod:2866
8874 msgid "guestfs_is_blockdev"
8875 msgstr ""
8876
8877 # type: verbatim
8878 #: ../src/guestfs-actions.pod:2868
8879 #, no-wrap
8880 msgid ""
8881 " int\n"
8882 " guestfs_is_blockdev (guestfs_h *g,\n"
8883 "                      const char *path);\n"
8884 "\n"
8885 msgstr ""
8886
8887 # type: textblock
8888 #: ../src/guestfs-actions.pod:2872 ../fish/guestfish-actions.pod:1979
8889 msgid ""
8890 "This returns C<true> if and only if there is a block device with the given "
8891 "C<path> name."
8892 msgstr ""
8893
8894 # type: textblock
8895 #: ../src/guestfs-actions.pod:2875 ../src/guestfs-actions.pod:2904 ../src/guestfs-actions.pod:2934 ../src/guestfs-actions.pod:2949 ../src/guestfs-actions.pod:2965 ../src/guestfs-actions.pod:3021 ../src/guestfs-actions.pod:3036
8896 msgid "See also C<guestfs_stat>."
8897 msgstr ""
8898
8899 # type: textblock
8900 #: ../src/guestfs-actions.pod:2879 ../src/guestfs-actions.pod:2908 ../src/guestfs-actions.pod:2953 ../src/guestfs-actions.pod:3025 ../src/guestfs-actions.pod:3040
8901 msgid "(Added in 1.5.10)"
8902 msgstr ""
8903
8904 # type: =head2
8905 #: ../src/guestfs-actions.pod:2881
8906 msgid "guestfs_is_busy"
8907 msgstr ""
8908
8909 # type: verbatim
8910 #: ../src/guestfs-actions.pod:2883
8911 #, no-wrap
8912 msgid ""
8913 " int\n"
8914 " guestfs_is_busy (guestfs_h *g);\n"
8915 "\n"
8916 msgstr ""
8917
8918 # type: textblock
8919 #: ../src/guestfs-actions.pod:2886 ../fish/guestfish-actions.pod:1988
8920 msgid ""
8921 "This returns true iff this handle is busy processing a command (in the "
8922 "C<BUSY> state)."
8923 msgstr ""
8924
8925 # type: =head2
8926 #: ../src/guestfs-actions.pod:2895
8927 msgid "guestfs_is_chardev"
8928 msgstr ""
8929
8930 # type: verbatim
8931 #: ../src/guestfs-actions.pod:2897
8932 #, no-wrap
8933 msgid ""
8934 " int\n"
8935 " guestfs_is_chardev (guestfs_h *g,\n"
8936 "                     const char *path);\n"
8937 "\n"
8938 msgstr ""
8939
8940 # type: textblock
8941 #: ../src/guestfs-actions.pod:2901 ../fish/guestfish-actions.pod:1997
8942 msgid ""
8943 "This returns C<true> if and only if there is a character device with the "
8944 "given C<path> name."
8945 msgstr ""
8946
8947 # type: =head2
8948 #: ../src/guestfs-actions.pod:2910
8949 msgid "guestfs_is_config"
8950 msgstr ""
8951
8952 # type: verbatim
8953 #: ../src/guestfs-actions.pod:2912
8954 #, no-wrap
8955 msgid ""
8956 " int\n"
8957 " guestfs_is_config (guestfs_h *g);\n"
8958 "\n"
8959 msgstr ""
8960
8961 # type: textblock
8962 #: ../src/guestfs-actions.pod:2915 ../fish/guestfish-actions.pod:2006
8963 msgid ""
8964 "This returns true iff this handle is being configured (in the C<CONFIG> "
8965 "state)."
8966 msgstr ""
8967
8968 # type: =head2
8969 #: ../src/guestfs-actions.pod:2924
8970 msgid "guestfs_is_dir"
8971 msgstr ""
8972
8973 # type: verbatim
8974 #: ../src/guestfs-actions.pod:2926
8975 #, no-wrap
8976 msgid ""
8977 " int\n"
8978 " guestfs_is_dir (guestfs_h *g,\n"
8979 "                 const char *path);\n"
8980 "\n"
8981 msgstr ""
8982
8983 # type: textblock
8984 #: ../src/guestfs-actions.pod:2930 ../fish/guestfish-actions.pod:2015
8985 msgid ""
8986 "This returns C<true> if and only if there is a directory with the given "
8987 "C<path> name.  Note that it returns false for other objects like files."
8988 msgstr ""
8989
8990 # type: =head2
8991 #: ../src/guestfs-actions.pod:2940
8992 msgid "guestfs_is_fifo"
8993 msgstr ""
8994
8995 # type: verbatim
8996 #: ../src/guestfs-actions.pod:2942
8997 #, no-wrap
8998 msgid ""
8999 " int\n"
9000 " guestfs_is_fifo (guestfs_h *g,\n"
9001 "                  const char *path);\n"
9002 "\n"
9003 msgstr ""
9004
9005 # type: textblock
9006 #: ../src/guestfs-actions.pod:2946 ../fish/guestfish-actions.pod:2025
9007 msgid ""
9008 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
9009 "given C<path> name."
9010 msgstr ""
9011
9012 # type: =head2
9013 #: ../src/guestfs-actions.pod:2955
9014 msgid "guestfs_is_file"
9015 msgstr ""
9016
9017 # type: verbatim
9018 #: ../src/guestfs-actions.pod:2957
9019 #, no-wrap
9020 msgid ""
9021 " int\n"
9022 " guestfs_is_file (guestfs_h *g,\n"
9023 "                  const char *path);\n"
9024 "\n"
9025 msgstr ""
9026
9027 # type: textblock
9028 #: ../src/guestfs-actions.pod:2961 ../fish/guestfish-actions.pod:2034
9029 msgid ""
9030 "This returns C<true> if and only if there is a regular file with the given "
9031 "C<path> name.  Note that it returns false for other objects like "
9032 "directories."
9033 msgstr ""
9034
9035 # type: =head2
9036 #: ../src/guestfs-actions.pod:2971
9037 msgid "guestfs_is_launching"
9038 msgstr ""
9039
9040 # type: verbatim
9041 #: ../src/guestfs-actions.pod:2973
9042 #, no-wrap
9043 msgid ""
9044 " int\n"
9045 " guestfs_is_launching (guestfs_h *g);\n"
9046 "\n"
9047 msgstr ""
9048
9049 # type: textblock
9050 #: ../src/guestfs-actions.pod:2976 ../fish/guestfish-actions.pod:2044
9051 msgid ""
9052 "This returns true iff this handle is launching the subprocess (in the "
9053 "C<LAUNCHING> state)."
9054 msgstr ""
9055
9056 # type: =head2
9057 #: ../src/guestfs-actions.pod:2985
9058 msgid "guestfs_is_lv"
9059 msgstr ""
9060
9061 # type: verbatim
9062 #: ../src/guestfs-actions.pod:2987
9063 #, no-wrap
9064 msgid ""
9065 " int\n"
9066 " guestfs_is_lv (guestfs_h *g,\n"
9067 "                const char *device);\n"
9068 "\n"
9069 msgstr ""
9070
9071 # type: textblock
9072 #: ../src/guestfs-actions.pod:2991 ../fish/guestfish-actions.pod:2053
9073 msgid ""
9074 "This command tests whether C<device> is a logical volume, and returns true "
9075 "iff this is the case."
9076 msgstr ""
9077
9078 # type: =head2
9079 #: ../src/guestfs-actions.pod:2998
9080 msgid "guestfs_is_ready"
9081 msgstr ""
9082
9083 # type: verbatim
9084 #: ../src/guestfs-actions.pod:3000
9085 #, no-wrap
9086 msgid ""
9087 " int\n"
9088 " guestfs_is_ready (guestfs_h *g);\n"
9089 "\n"
9090 msgstr ""
9091
9092 # type: textblock
9093 #: ../src/guestfs-actions.pod:3003 ../fish/guestfish-actions.pod:2060
9094 msgid ""
9095 "This returns true iff this handle is ready to accept commands (in the "
9096 "C<READY> state)."
9097 msgstr ""
9098
9099 # type: =head2
9100 #: ../src/guestfs-actions.pod:3012
9101 msgid "guestfs_is_socket"
9102 msgstr ""
9103
9104 # type: verbatim
9105 #: ../src/guestfs-actions.pod:3014
9106 #, no-wrap
9107 msgid ""
9108 " int\n"
9109 " guestfs_is_socket (guestfs_h *g,\n"
9110 "                    const char *path);\n"
9111 "\n"
9112 msgstr ""
9113
9114 # type: textblock
9115 #: ../src/guestfs-actions.pod:3018 ../fish/guestfish-actions.pod:2069
9116 msgid ""
9117 "This returns C<true> if and only if there is a Unix domain socket with the "
9118 "given C<path> name."
9119 msgstr ""
9120
9121 # type: =head2
9122 #: ../src/guestfs-actions.pod:3027
9123 msgid "guestfs_is_symlink"
9124 msgstr ""
9125
9126 # type: verbatim
9127 #: ../src/guestfs-actions.pod:3029
9128 #, no-wrap
9129 msgid ""
9130 " int\n"
9131 " guestfs_is_symlink (guestfs_h *g,\n"
9132 "                     const char *path);\n"
9133 "\n"
9134 msgstr ""
9135
9136 # type: textblock
9137 #: ../src/guestfs-actions.pod:3033 ../fish/guestfish-actions.pod:2078
9138 msgid ""
9139 "This returns C<true> if and only if there is a symbolic link with the given "
9140 "C<path> name."
9141 msgstr ""
9142
9143 # type: =head2
9144 #: ../src/guestfs-actions.pod:3042
9145 msgid "guestfs_kill_subprocess"
9146 msgstr ""
9147
9148 # type: verbatim
9149 #: ../src/guestfs-actions.pod:3044
9150 #, no-wrap
9151 msgid ""
9152 " int\n"
9153 " guestfs_kill_subprocess (guestfs_h *g);\n"
9154 "\n"
9155 msgstr ""
9156
9157 # type: textblock
9158 #: ../src/guestfs-actions.pod:3047 ../fish/guestfish-actions.pod:2087
9159 msgid "This kills the qemu subprocess.  You should never need to call this."
9160 msgstr ""
9161
9162 # type: =head2
9163 #: ../src/guestfs-actions.pod:3053
9164 msgid "guestfs_launch"
9165 msgstr ""
9166
9167 # type: verbatim
9168 #: ../src/guestfs-actions.pod:3055
9169 #, no-wrap
9170 msgid ""
9171 " int\n"
9172 " guestfs_launch (guestfs_h *g);\n"
9173 "\n"
9174 msgstr ""
9175
9176 # type: textblock
9177 #: ../src/guestfs-actions.pod:3058 ../fish/guestfish-actions.pod:2095
9178 msgid ""
9179 "Internally libguestfs is implemented by running a virtual machine using "
9180 "L<qemu(1)>."
9181 msgstr ""
9182
9183 # type: textblock
9184 #: ../src/guestfs-actions.pod:3061 ../fish/guestfish-actions.pod:2098
9185 msgid ""
9186 "You should call this after configuring the handle (eg. adding drives) but "
9187 "before performing any actions."
9188 msgstr ""
9189
9190 # type: =head2
9191 #: ../src/guestfs-actions.pod:3068
9192 msgid "guestfs_lchown"
9193 msgstr ""
9194
9195 # type: verbatim
9196 #: ../src/guestfs-actions.pod:3070
9197 #, no-wrap
9198 msgid ""
9199 " int\n"
9200 " guestfs_lchown (guestfs_h *g,\n"
9201 "                 int owner,\n"
9202 "                 int group,\n"
9203 "                 const char *path);\n"
9204 "\n"
9205 msgstr ""
9206
9207 # type: textblock
9208 #: ../src/guestfs-actions.pod:3076
9209 msgid ""
9210 "Change the file owner to C<owner> and group to C<group>.  This is like "
9211 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
9212 "changed, not the target."
9213 msgstr ""
9214
9215 # type: =head2
9216 #: ../src/guestfs-actions.pod:3088
9217 msgid "guestfs_lgetxattrs"
9218 msgstr ""
9219
9220 # type: verbatim
9221 #: ../src/guestfs-actions.pod:3090
9222 #, no-wrap
9223 msgid ""
9224 " struct guestfs_xattr_list *\n"
9225 " guestfs_lgetxattrs (guestfs_h *g,\n"
9226 "                     const char *path);\n"
9227 "\n"
9228 msgstr ""
9229
9230 # type: textblock
9231 #: ../src/guestfs-actions.pod:3094
9232 msgid ""
9233 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
9234 "then it returns the extended attributes of the link itself."
9235 msgstr ""
9236
9237 # type: =head2
9238 #: ../src/guestfs-actions.pod:3104
9239 msgid "guestfs_list_devices"
9240 msgstr ""
9241
9242 # type: verbatim
9243 #: ../src/guestfs-actions.pod:3106
9244 #, no-wrap
9245 msgid ""
9246 " char **\n"
9247 " guestfs_list_devices (guestfs_h *g);\n"
9248 "\n"
9249 msgstr ""
9250
9251 # type: textblock
9252 #: ../src/guestfs-actions.pod:3109 ../fish/guestfish-actions.pod:2125
9253 msgid "List all the block devices."
9254 msgstr ""
9255
9256 # type: textblock
9257 #: ../src/guestfs-actions.pod:3111 ../fish/guestfish-actions.pod:2127
9258 msgid "The full block device names are returned, eg. C</dev/sda>."
9259 msgstr ""
9260
9261 # type: =head2
9262 #: ../src/guestfs-actions.pod:3121
9263 msgid "guestfs_list_filesystems"
9264 msgstr ""
9265
9266 # type: verbatim
9267 #: ../src/guestfs-actions.pod:3123
9268 #, no-wrap
9269 msgid ""
9270 " char **\n"
9271 " guestfs_list_filesystems (guestfs_h *g);\n"
9272 "\n"
9273 msgstr ""
9274
9275 # type: textblock
9276 #: ../src/guestfs-actions.pod:3126 ../fish/guestfish-actions.pod:2135
9277 msgid ""
9278 "This inspection command looks for filesystems on partitions, block devices "
9279 "and logical volumes, returning a list of devices containing filesystems and "
9280 "their type."
9281 msgstr ""
9282
9283 # type: textblock
9284 #: ../src/guestfs-actions.pod:3130 ../fish/guestfish-actions.pod:2139
9285 msgid ""
9286 "The return value is a hash, where the keys are the devices containing "
9287 "filesystems, and the values are the filesystem types.  For example:"
9288 msgstr ""
9289
9290 # type: verbatim
9291 #: ../src/guestfs-actions.pod:3134 ../fish/guestfish-actions.pod:2143
9292 #, no-wrap
9293 msgid ""
9294 " \"/dev/sda1\" => \"ntfs\"\n"
9295 " \"/dev/sda2\" => \"ext2\"\n"
9296 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
9297 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
9298 "\n"
9299 msgstr ""
9300
9301 # type: textblock
9302 #: ../src/guestfs-actions.pod:3139 ../fish/guestfish-actions.pod:2148
9303 msgid ""
9304 "The value can have the special value \"unknown\", meaning the content of the "
9305 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
9306 msgstr ""
9307
9308 # type: textblock
9309 #: ../src/guestfs-actions.pod:3143
9310 msgid ""
9311 "This command runs other libguestfs commands, which might include "
9312 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
9313 "soon after launch and only when nothing is mounted."
9314 msgstr ""
9315
9316 # type: textblock
9317 #: ../src/guestfs-actions.pod:3147
9318 msgid ""
9319 "Not all of the filesystems returned will be mountable.  In particular, swap "
9320 "partitions are returned in the list.  Also this command does not check that "
9321 "each filesystem found is valid and mountable, and some filesystems might be "
9322 "mountable but require special options.  Filesystems may not all belong to a "
9323 "single logical operating system (use C<guestfs_inspect_os> to look for "
9324 "OSes)."
9325 msgstr ""
9326
9327 # type: textblock
9328 #: ../src/guestfs-actions.pod:3161 ../src/guestfs-actions.pod:4684
9329 msgid "(Added in 1.5.15)"
9330 msgstr ""
9331
9332 # type: =head2
9333 #: ../src/guestfs-actions.pod:3163
9334 msgid "guestfs_list_partitions"
9335 msgstr ""
9336
9337 # type: verbatim
9338 #: ../src/guestfs-actions.pod:3165
9339 #, no-wrap
9340 msgid ""
9341 " char **\n"
9342 " guestfs_list_partitions (guestfs_h *g);\n"
9343 "\n"
9344 msgstr ""
9345
9346 # type: textblock
9347 #: ../src/guestfs-actions.pod:3168 ../fish/guestfish-actions.pod:2168
9348 msgid "List all the partitions detected on all block devices."
9349 msgstr ""
9350
9351 # type: textblock
9352 #: ../src/guestfs-actions.pod:3170 ../fish/guestfish-actions.pod:2170
9353 msgid "The full partition device names are returned, eg. C</dev/sda1>"
9354 msgstr ""
9355
9356 # type: textblock
9357 #: ../src/guestfs-actions.pod:3172
9358 msgid ""
9359 "This does not return logical volumes.  For that you will need to call "
9360 "C<guestfs_lvs>."
9361 msgstr ""
9362
9363 # type: =head2
9364 #: ../src/guestfs-actions.pod:3183
9365 msgid "guestfs_ll"
9366 msgstr ""
9367
9368 # type: verbatim
9369 #: ../src/guestfs-actions.pod:3185
9370 #, no-wrap
9371 msgid ""
9372 " char *\n"
9373 " guestfs_ll (guestfs_h *g,\n"
9374 "             const char *directory);\n"
9375 "\n"
9376 msgstr ""
9377
9378 # type: textblock
9379 #: ../src/guestfs-actions.pod:3189 ../fish/guestfish-actions.pod:2181
9380 msgid ""
9381 "List the files in C<directory> (relative to the root directory, there is no "
9382 "cwd) in the format of 'ls -la'."
9383 msgstr ""
9384
9385 # type: textblock
9386 #: ../src/guestfs-actions.pod:3192 ../fish/guestfish-actions.pod:2184
9387 msgid ""
9388 "This command is mostly useful for interactive sessions.  It is I<not> "
9389 "intended that you try to parse the output string."
9390 msgstr ""
9391
9392 # type: =head2
9393 #: ../src/guestfs-actions.pod:3200
9394 msgid "guestfs_ln"
9395 msgstr ""
9396
9397 # type: verbatim
9398 #: ../src/guestfs-actions.pod:3202
9399 #, no-wrap
9400 msgid ""
9401 " int\n"
9402 " guestfs_ln (guestfs_h *g,\n"
9403 "             const char *target,\n"
9404 "             const char *linkname);\n"
9405 "\n"
9406 msgstr ""
9407
9408 # type: textblock
9409 #: ../src/guestfs-actions.pod:3207 ../fish/guestfish-actions.pod:2191
9410 msgid "This command creates a hard link using the C<ln> command."
9411 msgstr ""
9412
9413 # type: =head2
9414 #: ../src/guestfs-actions.pod:3213
9415 msgid "guestfs_ln_f"
9416 msgstr ""
9417
9418 # type: verbatim
9419 #: ../src/guestfs-actions.pod:3215
9420 #, no-wrap
9421 msgid ""
9422 " int\n"
9423 " guestfs_ln_f (guestfs_h *g,\n"
9424 "               const char *target,\n"
9425 "               const char *linkname);\n"
9426 "\n"
9427 msgstr ""
9428
9429 # type: textblock
9430 #: ../src/guestfs-actions.pod:3220 ../fish/guestfish-actions.pod:2197
9431 msgid ""
9432 "This command creates a hard link using the C<ln -f> command.  The C<-f> "
9433 "option removes the link (C<linkname>) if it exists already."
9434 msgstr ""
9435
9436 # type: =head2
9437 #: ../src/guestfs-actions.pod:3227
9438 msgid "guestfs_ln_s"
9439 msgstr ""
9440
9441 # type: verbatim
9442 #: ../src/guestfs-actions.pod:3229
9443 #, no-wrap
9444 msgid ""
9445 " int\n"
9446 " guestfs_ln_s (guestfs_h *g,\n"
9447 "               const char *target,\n"
9448 "               const char *linkname);\n"
9449 "\n"
9450 msgstr ""
9451
9452 # type: textblock
9453 #: ../src/guestfs-actions.pod:3234 ../fish/guestfish-actions.pod:2204
9454 msgid "This command creates a symbolic link using the C<ln -s> command."
9455 msgstr ""
9456
9457 # type: =head2
9458 #: ../src/guestfs-actions.pod:3240
9459 msgid "guestfs_ln_sf"
9460 msgstr ""
9461
9462 # type: verbatim
9463 #: ../src/guestfs-actions.pod:3242
9464 #, no-wrap
9465 msgid ""
9466 " int\n"
9467 " guestfs_ln_sf (guestfs_h *g,\n"
9468 "                const char *target,\n"
9469 "                const char *linkname);\n"
9470 "\n"
9471 msgstr ""
9472
9473 # type: textblock
9474 #: ../src/guestfs-actions.pod:3247 ../fish/guestfish-actions.pod:2210
9475 msgid ""
9476 "This command creates a symbolic link using the C<ln -sf> command, The C<-f> "
9477 "option removes the link (C<linkname>) if it exists already."
9478 msgstr ""
9479
9480 # type: =head2
9481 #: ../src/guestfs-actions.pod:3254
9482 msgid "guestfs_lremovexattr"
9483 msgstr ""
9484
9485 # type: verbatim
9486 #: ../src/guestfs-actions.pod:3256
9487 #, no-wrap
9488 msgid ""
9489 " int\n"
9490 " guestfs_lremovexattr (guestfs_h *g,\n"
9491 "                       const char *xattr,\n"
9492 "                       const char *path);\n"
9493 "\n"
9494 msgstr ""
9495
9496 # type: textblock
9497 #: ../src/guestfs-actions.pod:3261
9498 msgid ""
9499 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
9500 "link, then it removes an extended attribute of the link itself."
9501 msgstr ""
9502
9503 # type: =head2
9504 #: ../src/guestfs-actions.pod:3269
9505 msgid "guestfs_ls"
9506 msgstr ""
9507
9508 # type: verbatim
9509 #: ../src/guestfs-actions.pod:3271
9510 #, no-wrap
9511 msgid ""
9512 " char **\n"
9513 " guestfs_ls (guestfs_h *g,\n"
9514 "             const char *directory);\n"
9515 "\n"
9516 msgstr ""
9517
9518 # type: textblock
9519 #: ../src/guestfs-actions.pod:3275 ../fish/guestfish-actions.pod:2225
9520 msgid ""
9521 "List the files in C<directory> (relative to the root directory, there is no "
9522 "cwd).  The '.' and '..' entries are not returned, but hidden files are "
9523 "shown."
9524 msgstr ""
9525
9526 # type: textblock
9527 #: ../src/guestfs-actions.pod:3279
9528 msgid ""
9529 "This command is mostly useful for interactive sessions.  Programs should "
9530 "probably use C<guestfs_readdir> instead."
9531 msgstr ""
9532
9533 # type: =head2
9534 #: ../src/guestfs-actions.pod:3288
9535 msgid "guestfs_lsetxattr"
9536 msgstr ""
9537
9538 # type: verbatim
9539 #: ../src/guestfs-actions.pod:3290
9540 #, no-wrap
9541 msgid ""
9542 " int\n"
9543 " guestfs_lsetxattr (guestfs_h *g,\n"
9544 "                    const char *xattr,\n"
9545 "                    const char *val,\n"
9546 "                    int vallen,\n"
9547 "                    const char *path);\n"
9548 "\n"
9549 msgstr ""
9550
9551 # type: textblock
9552 #: ../src/guestfs-actions.pod:3297
9553 msgid ""
9554 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
9555 "then it sets an extended attribute of the link itself."
9556 msgstr ""
9557
9558 # type: =head2
9559 #: ../src/guestfs-actions.pod:3305
9560 msgid "guestfs_lstat"
9561 msgstr ""
9562
9563 # type: verbatim
9564 #: ../src/guestfs-actions.pod:3307
9565 #, no-wrap
9566 msgid ""
9567 " struct guestfs_stat *\n"
9568 " guestfs_lstat (guestfs_h *g,\n"
9569 "                const char *path);\n"
9570 "\n"
9571 msgstr ""
9572
9573 # type: textblock
9574 #: ../src/guestfs-actions.pod:3311 ../src/guestfs-actions.pod:5738 ../fish/guestfish-actions.pod:2244 ../fish/guestfish-actions.pod:3826
9575 msgid "Returns file information for the given C<path>."
9576 msgstr ""
9577
9578 # type: textblock
9579 #: ../src/guestfs-actions.pod:3313
9580 msgid ""
9581 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
9582 "link, then the link is stat-ed, not the file it refers to."
9583 msgstr ""
9584
9585 # type: textblock
9586 #: ../src/guestfs-actions.pod:3317 ../fish/guestfish-actions.pod:2250
9587 msgid "This is the same as the C<lstat(2)> system call."
9588 msgstr ""
9589
9590 # type: textblock
9591 #: ../src/guestfs-actions.pod:3319 ../src/guestfs-actions.pod:5742
9592 msgid ""
9593 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
9594 "error.  I<The caller must call C<guestfs_free_stat> after use>."
9595 msgstr ""
9596
9597 # type: textblock
9598 #: ../src/guestfs-actions.pod:3323 ../src/guestfs-actions.pod:5746 ../src/guestfs-actions.pod:5764 ../src/guestfs-actions.pod:6145
9599 msgid "(Added in 0.9.2)"
9600 msgstr ""
9601
9602 # type: =head2
9603 #: ../src/guestfs-actions.pod:3325
9604 msgid "guestfs_lstatlist"
9605 msgstr ""
9606
9607 # type: verbatim
9608 #: ../src/guestfs-actions.pod:3327
9609 #, no-wrap
9610 msgid ""
9611 " struct guestfs_stat_list *\n"
9612 " guestfs_lstatlist (guestfs_h *g,\n"
9613 "                    const char *path,\n"
9614 "                    char *const *names);\n"
9615 "\n"
9616 msgstr ""
9617
9618 # type: textblock
9619 #: ../src/guestfs-actions.pod:3332
9620 msgid ""
9621 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
9622 "files, where all files are in the directory C<path>.  C<names> is the list "
9623 "of files from this directory."
9624 msgstr ""
9625
9626 # type: textblock
9627 #: ../src/guestfs-actions.pod:3336 ../fish/guestfish-actions.pod:2260
9628 msgid ""
9629 "On return you get a list of stat structs, with a one-to-one correspondence "
9630 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
9631 "then the C<ino> field of that structure is set to C<-1>."
9632 msgstr ""
9633
9634 # type: textblock
9635 #: ../src/guestfs-actions.pod:3341
9636 msgid ""
9637 "This call is intended for programs that want to efficiently list a directory "
9638 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
9639 "for a similarly efficient call for getting extended attributes.  Very long "
9640 "directory listings might cause the protocol message size to be exceeded, "
9641 "causing this call to fail.  The caller must split up such requests into "
9642 "smaller groups of names."
9643 msgstr ""
9644
9645 # type: textblock
9646 #: ../src/guestfs-actions.pod:3349
9647 msgid ""
9648 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
9649 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
9650 msgstr ""
9651
9652 # type: =head2
9653 #: ../src/guestfs-actions.pod:3355
9654 msgid "guestfs_luks_add_key"
9655 msgstr ""
9656
9657 # type: verbatim
9658 #: ../src/guestfs-actions.pod:3357
9659 #, no-wrap
9660 msgid ""
9661 " int\n"
9662 " guestfs_luks_add_key (guestfs_h *g,\n"
9663 "                       const char *device,\n"
9664 "                       const char *key,\n"
9665 "                       const char *newkey,\n"
9666 "                       int keyslot);\n"
9667 "\n"
9668 msgstr ""
9669
9670 # type: textblock
9671 #: ../src/guestfs-actions.pod:3364 ../fish/guestfish-actions.pod:2277
9672 msgid ""
9673 "This command adds a new key on LUKS device C<device>.  C<key> is any "
9674 "existing key, and is used to access the device.  C<newkey> is the new key to "
9675 "add.  C<keyslot> is the key slot that will be replaced."
9676 msgstr ""
9677
9678 # type: textblock
9679 #: ../src/guestfs-actions.pod:3369
9680 msgid ""
9681 "Note that if C<keyslot> already contains a key, then this command will "
9682 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
9683 msgstr ""
9684
9685 # type: textblock
9686 #: ../src/guestfs-actions.pod:3375 ../src/guestfs-actions.pod:3415 ../src/guestfs-actions.pod:3438 ../src/guestfs-actions.pod:3458 ../src/guestfs-actions.pod:3490 ../src/guestfs-actions.pod:3509
9687 msgid ""
9688 "This function takes a key or passphrase parameter which could contain "
9689 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
9690 "information."
9691 msgstr ""
9692
9693 # type: textblock
9694 #: ../src/guestfs-actions.pod:3379 ../src/guestfs-actions.pod:3419 ../src/guestfs-actions.pod:3442 ../src/guestfs-actions.pod:3462
9695 msgid "(Added in 1.5.2)"
9696 msgstr ""
9697
9698 # type: =head2
9699 #: ../src/guestfs-actions.pod:3381
9700 msgid "guestfs_luks_close"
9701 msgstr ""
9702
9703 # type: verbatim
9704 #: ../src/guestfs-actions.pod:3383
9705 #, no-wrap
9706 msgid ""
9707 " int\n"
9708 " guestfs_luks_close (guestfs_h *g,\n"
9709 "                     const char *device);\n"
9710 "\n"
9711 msgstr ""
9712
9713 # type: textblock
9714 #: ../src/guestfs-actions.pod:3387
9715 msgid ""
9716 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
9717 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
9718 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
9719 "underlying block device."
9720 msgstr ""
9721
9722 # type: textblock
9723 #: ../src/guestfs-actions.pod:3395 ../src/guestfs-actions.pod:3494 ../src/guestfs-actions.pod:3513 ../src/guestfs-actions.pod:3563 ../src/guestfs-actions.pod:3611
9724 msgid "(Added in 1.5.1)"
9725 msgstr ""
9726
9727 # type: =head2
9728 #: ../src/guestfs-actions.pod:3397
9729 msgid "guestfs_luks_format"
9730 msgstr ""
9731
9732 # type: verbatim
9733 #: ../src/guestfs-actions.pod:3399
9734 #, no-wrap
9735 msgid ""
9736 " int\n"
9737 " guestfs_luks_format (guestfs_h *g,\n"
9738 "                      const char *device,\n"
9739 "                      const char *key,\n"
9740 "                      int keyslot);\n"
9741 "\n"
9742 msgstr ""
9743
9744 # type: textblock
9745 #: ../src/guestfs-actions.pod:3405 ../fish/guestfish-actions.pod:2303
9746 msgid ""
9747 "This command erases existing data on C<device> and formats the device as a "
9748 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
9749 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
9750 msgstr ""
9751
9752 # type: textblock
9753 #: ../src/guestfs-actions.pod:3412 ../src/guestfs-actions.pod:3435 ../src/guestfs-actions.pod:3575 ../src/guestfs-actions.pod:4435 ../src/guestfs-actions.pod:5198 ../src/guestfs-actions.pod:5573 ../src/guestfs-actions.pod:5596 ../src/guestfs-actions.pod:5622 ../src/guestfs-actions.pod:6772 ../fish/guestfish-actions.pod:2311 ../fish/guestfish-actions.pod:2324 ../fish/guestfish-actions.pod:2408 ../fish/guestfish-actions.pod:2938 ../fish/guestfish-actions.pod:3445 ../fish/guestfish-actions.pod:3725 ../fish/guestfish-actions.pod:3741 ../fish/guestfish-actions.pod:3756 ../fish/guestfish-actions.pod:4471
9754 msgid ""
9755 "B<This command is dangerous.  Without careful use you can easily destroy all "
9756 "your data>."
9757 msgstr ""
9758
9759 # type: =head2
9760 #: ../src/guestfs-actions.pod:3421
9761 msgid "guestfs_luks_format_cipher"
9762 msgstr ""
9763
9764 # type: verbatim
9765 #: ../src/guestfs-actions.pod:3423
9766 #, no-wrap
9767 msgid ""
9768 " int\n"
9769 " guestfs_luks_format_cipher (guestfs_h *g,\n"
9770 "                             const char *device,\n"
9771 "                             const char *key,\n"
9772 "                             int keyslot,\n"
9773 "                             const char *cipher);\n"
9774 "\n"
9775 msgstr ""
9776
9777 # type: textblock
9778 #: ../src/guestfs-actions.pod:3430
9779 msgid ""
9780 "This command is the same as C<guestfs_luks_format> but it also allows you to "
9781 "set the C<cipher> used."
9782 msgstr ""
9783
9784 # type: =head2
9785 #: ../src/guestfs-actions.pod:3444
9786 msgid "guestfs_luks_kill_slot"
9787 msgstr ""
9788
9789 # type: verbatim
9790 #: ../src/guestfs-actions.pod:3446
9791 #, no-wrap
9792 msgid ""
9793 " int\n"
9794 " guestfs_luks_kill_slot (guestfs_h *g,\n"
9795 "                         const char *device,\n"
9796 "                         const char *key,\n"
9797 "                         int keyslot);\n"
9798 "\n"
9799 msgstr ""
9800
9801 # type: textblock
9802 #: ../src/guestfs-actions.pod:3452 ../fish/guestfish-actions.pod:2331
9803 msgid ""
9804 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
9805 "device C<device>.  C<key> must be one of the I<other> keys."
9806 msgstr ""
9807
9808 # type: =head2
9809 #: ../src/guestfs-actions.pod:3464
9810 msgid "guestfs_luks_open"
9811 msgstr ""
9812
9813 # type: verbatim
9814 #: ../src/guestfs-actions.pod:3466
9815 #, no-wrap
9816 msgid ""
9817 " int\n"
9818 " guestfs_luks_open (guestfs_h *g,\n"
9819 "                    const char *device,\n"
9820 "                    const char *key,\n"
9821 "                    const char *mapname);\n"
9822 "\n"
9823 msgstr ""
9824
9825 # type: textblock
9826 #: ../src/guestfs-actions.pod:3472 ../fish/guestfish-actions.pod:2342
9827 msgid ""
9828 "This command opens a block device which has been encrypted according to the "
9829 "Linux Unified Key Setup (LUKS) standard."
9830 msgstr ""
9831
9832 # type: textblock
9833 #: ../src/guestfs-actions.pod:3475 ../fish/guestfish-actions.pod:2345
9834 msgid "C<device> is the encrypted block device or partition."
9835 msgstr ""
9836
9837 # type: textblock
9838 #: ../src/guestfs-actions.pod:3477 ../fish/guestfish-actions.pod:2347
9839 msgid ""
9840 "The caller must supply one of the keys associated with the LUKS block "
9841 "device, in the C<key> parameter."
9842 msgstr ""
9843
9844 # type: textblock
9845 #: ../src/guestfs-actions.pod:3480 ../fish/guestfish-actions.pod:2350
9846 msgid ""
9847 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
9848 "writes to this block device are decrypted from and encrypted to the "
9849 "underlying C<device> respectively."
9850 msgstr ""
9851
9852 # type: textblock
9853 #: ../src/guestfs-actions.pod:3484
9854 msgid ""
9855 "If this block device contains LVM volume groups, then calling "
9856 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
9857 "visible."
9858 msgstr ""
9859
9860 # type: =head2
9861 #: ../src/guestfs-actions.pod:3496
9862 msgid "guestfs_luks_open_ro"
9863 msgstr ""
9864
9865 # type: verbatim
9866 #: ../src/guestfs-actions.pod:3498
9867 #, no-wrap
9868 msgid ""
9869 " int\n"
9870 " guestfs_luks_open_ro (guestfs_h *g,\n"
9871 "                       const char *device,\n"
9872 "                       const char *key,\n"
9873 "                       const char *mapname);\n"
9874 "\n"
9875 msgstr ""
9876
9877 # type: textblock
9878 #: ../src/guestfs-actions.pod:3504
9879 msgid ""
9880 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
9881 "created."
9882 msgstr ""
9883
9884 # type: =head2
9885 #: ../src/guestfs-actions.pod:3515
9886 msgid "guestfs_lvcreate"
9887 msgstr ""
9888
9889 # type: verbatim
9890 #: ../src/guestfs-actions.pod:3517
9891 #, no-wrap
9892 msgid ""
9893 " int\n"
9894 " guestfs_lvcreate (guestfs_h *g,\n"
9895 "                   const char *logvol,\n"
9896 "                   const char *volgroup,\n"
9897 "                   int mbytes);\n"
9898 "\n"
9899 msgstr ""
9900
9901 # type: textblock
9902 #: ../src/guestfs-actions.pod:3523 ../fish/guestfish-actions.pod:2375
9903 msgid ""
9904 "This creates an LVM logical volume called C<logvol> on the volume group "
9905 "C<volgroup>, with C<size> megabytes."
9906 msgstr ""
9907
9908 # type: =head2
9909 #: ../src/guestfs-actions.pod:3530
9910 msgid "guestfs_lvm_canonical_lv_name"
9911 msgstr ""
9912
9913 # type: verbatim
9914 #: ../src/guestfs-actions.pod:3532
9915 #, no-wrap
9916 msgid ""
9917 " char *\n"
9918 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
9919 "                                const char *lvname);\n"
9920 "\n"
9921 msgstr ""
9922
9923 # type: textblock
9924 #: ../src/guestfs-actions.pod:3536 ../fish/guestfish-actions.pod:2382
9925 msgid ""
9926 "This converts alternative naming schemes for LVs that you might find to the "
9927 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to "
9928 "C</dev/VG/LV>."
9929 msgstr ""
9930
9931 # type: textblock
9932 #: ../src/guestfs-actions.pod:3540 ../fish/guestfish-actions.pod:2386
9933 msgid ""
9934 "This command returns an error if the C<lvname> parameter does not refer to a "
9935 "logical volume."
9936 msgstr ""
9937
9938 # type: textblock
9939 #: ../src/guestfs-actions.pod:3543
9940 msgid "See also C<guestfs_is_lv>."
9941 msgstr ""
9942
9943 # type: textblock
9944 #: ../src/guestfs-actions.pod:3548
9945 msgid "(Added in 1.5.24)"
9946 msgstr ""
9947
9948 # type: =head2
9949 #: ../src/guestfs-actions.pod:3550
9950 msgid "guestfs_lvm_clear_filter"
9951 msgstr ""
9952
9953 # type: verbatim
9954 #: ../src/guestfs-actions.pod:3552
9955 #, no-wrap
9956 msgid ""
9957 " int\n"
9958 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
9959 "\n"
9960 msgstr ""
9961
9962 # type: textblock
9963 #: ../src/guestfs-actions.pod:3555
9964 msgid ""
9965 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
9966 "see every block device."
9967 msgstr ""
9968
9969 # type: textblock
9970 #: ../src/guestfs-actions.pod:3558 ../src/guestfs-actions.pod:3600 ../fish/guestfish-actions.pod:2398 ../fish/guestfish-actions.pod:2429
9971 msgid "This command also clears the LVM cache and performs a volume group scan."
9972 msgstr ""
9973
9974 # type: =head2
9975 #: ../src/guestfs-actions.pod:3565
9976 msgid "guestfs_lvm_remove_all"
9977 msgstr ""
9978
9979 # type: verbatim
9980 #: ../src/guestfs-actions.pod:3567
9981 #, no-wrap
9982 msgid ""
9983 " int\n"
9984 " guestfs_lvm_remove_all (guestfs_h *g);\n"
9985 "\n"
9986 msgstr ""
9987
9988 # type: textblock
9989 #: ../src/guestfs-actions.pod:3570 ../fish/guestfish-actions.pod:2405
9990 msgid ""
9991 "This command removes all LVM logical volumes, volume groups and physical "
9992 "volumes."
9993 msgstr ""
9994
9995 # type: =head2
9996 #: ../src/guestfs-actions.pod:3580
9997 msgid "guestfs_lvm_set_filter"
9998 msgstr ""
9999
10000 # type: verbatim
10001 #: ../src/guestfs-actions.pod:3582
10002 #, no-wrap
10003 msgid ""
10004 " int\n"
10005 " guestfs_lvm_set_filter (guestfs_h *g,\n"
10006 "                         char *const *devices);\n"
10007 "\n"
10008 msgstr ""
10009
10010 # type: textblock
10011 #: ../src/guestfs-actions.pod:3586 ../fish/guestfish-actions.pod:2415
10012 msgid ""
10013 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
10014 "block devices in the list C<devices>, and will ignore all other attached "
10015 "block devices."
10016 msgstr ""
10017
10018 # type: textblock
10019 #: ../src/guestfs-actions.pod:3590 ../fish/guestfish-actions.pod:2419
10020 msgid ""
10021 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
10022 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
10023 "there are two types of duplication possible: either cloned PVs/VGs which "
10024 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
10025 "same name.  In normal operation you cannot create this situation, but you "
10026 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
10027 "inside the LVM metadata."
10028 msgstr ""
10029
10030 # type: textblock
10031 #: ../src/guestfs-actions.pod:3603 ../fish/guestfish-actions.pod:2432
10032 msgid "You can filter whole block devices or individual partitions."
10033 msgstr ""
10034
10035 # type: textblock
10036 #: ../src/guestfs-actions.pod:3605 ../fish/guestfish-actions.pod:2434
10037 msgid ""
10038 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
10039 "filesystem), even if you are not filtering out that VG."
10040 msgstr ""
10041
10042 # type: =head2
10043 #: ../src/guestfs-actions.pod:3613
10044 msgid "guestfs_lvremove"
10045 msgstr ""
10046
10047 # type: verbatim
10048 #: ../src/guestfs-actions.pod:3615
10049 #, no-wrap
10050 msgid ""
10051 " int\n"
10052 " guestfs_lvremove (guestfs_h *g,\n"
10053 "                   const char *device);\n"
10054 "\n"
10055 msgstr ""
10056
10057 # type: textblock
10058 #: ../src/guestfs-actions.pod:3619 ../fish/guestfish-actions.pod:2442
10059 msgid ""
10060 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
10061 "LV, such as C</dev/VG/LV>."
10062 msgstr ""
10063
10064 # type: textblock
10065 #: ../src/guestfs-actions.pod:3622 ../fish/guestfish-actions.pod:2445
10066 msgid ""
10067 "You can also remove all LVs in a volume group by specifying the VG name, "
10068 "C</dev/VG>."
10069 msgstr ""
10070
10071 # type: textblock
10072 #: ../src/guestfs-actions.pod:3627 ../src/guestfs-actions.pod:4781 ../src/guestfs-actions.pod:6511
10073 msgid "(Added in 1.0.13)"
10074 msgstr ""
10075
10076 # type: =head2
10077 #: ../src/guestfs-actions.pod:3629
10078 msgid "guestfs_lvrename"
10079 msgstr ""
10080
10081 # type: verbatim
10082 #: ../src/guestfs-actions.pod:3631
10083 #, no-wrap
10084 msgid ""
10085 " int\n"
10086 " guestfs_lvrename (guestfs_h *g,\n"
10087 "                   const char *logvol,\n"
10088 "                   const char *newlogvol);\n"
10089 "\n"
10090 msgstr ""
10091
10092 # type: textblock
10093 #: ../src/guestfs-actions.pod:3636 ../fish/guestfish-actions.pod:2452
10094 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
10095 msgstr ""
10096
10097 # type: textblock
10098 #: ../src/guestfs-actions.pod:3640 ../src/guestfs-actions.pod:6524
10099 msgid "(Added in 1.0.83)"
10100 msgstr ""
10101
10102 # type: =head2
10103 #: ../src/guestfs-actions.pod:3642
10104 msgid "guestfs_lvresize"
10105 msgstr ""
10106
10107 # type: verbatim
10108 #: ../src/guestfs-actions.pod:3644
10109 #, no-wrap
10110 msgid ""
10111 " int\n"
10112 " guestfs_lvresize (guestfs_h *g,\n"
10113 "                   const char *device,\n"
10114 "                   int mbytes);\n"
10115 "\n"
10116 msgstr ""
10117
10118 # type: textblock
10119 #: ../src/guestfs-actions.pod:3649 ../fish/guestfish-actions.pod:2458
10120 msgid ""
10121 "This resizes (expands or shrinks) an existing LVM logical volume to "
10122 "C<mbytes>.  When reducing, data in the reduced part is lost."
10123 msgstr ""
10124
10125 # type: =head2
10126 #: ../src/guestfs-actions.pod:3657
10127 msgid "guestfs_lvresize_free"
10128 msgstr ""
10129
10130 # type: verbatim
10131 #: ../src/guestfs-actions.pod:3659
10132 #, no-wrap
10133 msgid ""
10134 " int\n"
10135 " guestfs_lvresize_free (guestfs_h *g,\n"
10136 "                        const char *lv,\n"
10137 "                        int percent);\n"
10138 "\n"
10139 msgstr ""
10140
10141 # type: textblock
10142 #: ../src/guestfs-actions.pod:3664 ../fish/guestfish-actions.pod:2466
10143 msgid ""
10144 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
10145 "remaining free space in the volume group.  Commonly you would call this with "
10146 "pc = 100 which expands the logical volume as much as possible, using all "
10147 "remaining free space in the volume group."
10148 msgstr ""
10149
10150 # type: textblock
10151 #: ../src/guestfs-actions.pod:3672
10152 msgid "(Added in 1.3.3)"
10153 msgstr ""
10154
10155 # type: =head2
10156 #: ../src/guestfs-actions.pod:3674
10157 msgid "guestfs_lvs"
10158 msgstr ""
10159
10160 # type: verbatim
10161 #: ../src/guestfs-actions.pod:3676
10162 #, no-wrap
10163 msgid ""
10164 " char **\n"
10165 " guestfs_lvs (guestfs_h *g);\n"
10166 "\n"
10167 msgstr ""
10168
10169 # type: textblock
10170 #: ../src/guestfs-actions.pod:3679 ../fish/guestfish-actions.pod:2476
10171 msgid ""
10172 "List all the logical volumes detected.  This is the equivalent of the "
10173 "L<lvs(8)> command."
10174 msgstr ""
10175
10176 # type: textblock
10177 #: ../src/guestfs-actions.pod:3682 ../fish/guestfish-actions.pod:2479
10178 msgid ""
10179 "This returns a list of the logical volume device names "
10180 "(eg. C</dev/VolGroup00/LogVol00>)."
10181 msgstr ""
10182
10183 # type: textblock
10184 #: ../src/guestfs-actions.pod:3685
10185 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
10186 msgstr ""
10187
10188 # type: =head2
10189 #: ../src/guestfs-actions.pod:3693
10190 msgid "guestfs_lvs_full"
10191 msgstr ""
10192
10193 # type: verbatim
10194 #: ../src/guestfs-actions.pod:3695
10195 #, no-wrap
10196 msgid ""
10197 " struct guestfs_lvm_lv_list *\n"
10198 " guestfs_lvs_full (guestfs_h *g);\n"
10199 "\n"
10200 msgstr ""
10201
10202 # type: textblock
10203 #: ../src/guestfs-actions.pod:3698 ../fish/guestfish-actions.pod:2488
10204 msgid ""
10205 "List all the logical volumes detected.  This is the equivalent of the "
10206 "L<lvs(8)> command.  The \"full\" version includes all fields."
10207 msgstr ""
10208
10209 # type: textblock
10210 #: ../src/guestfs-actions.pod:3701
10211 msgid ""
10212 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
10213 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after "
10214 "use>."
10215 msgstr ""
10216
10217 # type: =head2
10218 #: ../src/guestfs-actions.pod:3707
10219 msgid "guestfs_lvuuid"
10220 msgstr ""
10221
10222 # type: verbatim
10223 #: ../src/guestfs-actions.pod:3709
10224 #, no-wrap
10225 msgid ""
10226 " char *\n"
10227 " guestfs_lvuuid (guestfs_h *g,\n"
10228 "                 const char *device);\n"
10229 "\n"
10230 msgstr ""
10231
10232 # type: textblock
10233 #: ../src/guestfs-actions.pod:3713 ../fish/guestfish-actions.pod:2495
10234 msgid "This command returns the UUID of the LVM LV C<device>."
10235 msgstr ""
10236
10237 # type: =head2
10238 #: ../src/guestfs-actions.pod:3720
10239 msgid "guestfs_lxattrlist"
10240 msgstr ""
10241
10242 # type: verbatim
10243 #: ../src/guestfs-actions.pod:3722
10244 #, no-wrap
10245 msgid ""
10246 " struct guestfs_xattr_list *\n"
10247 " guestfs_lxattrlist (guestfs_h *g,\n"
10248 "                     const char *path,\n"
10249 "                     char *const *names);\n"
10250 "\n"
10251 msgstr ""
10252
10253 # type: textblock
10254 #: ../src/guestfs-actions.pod:3727 ../fish/guestfish-actions.pod:2501
10255 msgid ""
10256 "This call allows you to get the extended attributes of multiple files, where "
10257 "all files are in the directory C<path>.  C<names> is the list of files from "
10258 "this directory."
10259 msgstr ""
10260
10261 # type: textblock
10262 #: ../src/guestfs-actions.pod:3731 ../fish/guestfish-actions.pod:2505
10263 msgid ""
10264 "On return you get a flat list of xattr structs which must be interpreted "
10265 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
10266 "C<attrval> in this struct is zero-length to indicate there was an error "
10267 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
10268 "number (the number of following attributes for this file, which could be "
10269 "C<\"0\">).  Then after the first xattr struct are the zero or more "
10270 "attributes for the first named file.  This repeats for the second and "
10271 "subsequent files."
10272 msgstr ""
10273
10274 # type: textblock
10275 #: ../src/guestfs-actions.pod:3741
10276 msgid ""
10277 "This call is intended for programs that want to efficiently list a directory "
10278 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
10279 "a similarly efficient call for getting standard stats.  Very long directory "
10280 "listings might cause the protocol message size to be exceeded, causing this "
10281 "call to fail.  The caller must split up such requests into smaller groups of "
10282 "names."
10283 msgstr ""
10284
10285 # type: =head2
10286 #: ../src/guestfs-actions.pod:3755
10287 msgid "guestfs_mkdir"
10288 msgstr ""
10289
10290 # type: verbatim
10291 #: ../src/guestfs-actions.pod:3757
10292 #, no-wrap
10293 msgid ""
10294 " int\n"
10295 " guestfs_mkdir (guestfs_h *g,\n"
10296 "                const char *path);\n"
10297 "\n"
10298 msgstr ""
10299
10300 # type: textblock
10301 #: ../src/guestfs-actions.pod:3761 ../fish/guestfish-actions.pod:2527
10302 msgid "Create a directory named C<path>."
10303 msgstr ""
10304
10305 # type: =head2
10306 #: ../src/guestfs-actions.pod:3767
10307 msgid "guestfs_mkdir_mode"
10308 msgstr ""
10309
10310 # type: verbatim
10311 #: ../src/guestfs-actions.pod:3769
10312 #, no-wrap
10313 msgid ""
10314 " int\n"
10315 " guestfs_mkdir_mode (guestfs_h *g,\n"
10316 "                     const char *path,\n"
10317 "                     int mode);\n"
10318 "\n"
10319 msgstr ""
10320
10321 # type: textblock
10322 #: ../src/guestfs-actions.pod:3774 ../fish/guestfish-actions.pod:2533
10323 msgid ""
10324 "This command creates a directory, setting the initial permissions of the "
10325 "directory to C<mode>."
10326 msgstr ""
10327
10328 # type: textblock
10329 #: ../src/guestfs-actions.pod:3777 ../fish/guestfish-actions.pod:2536
10330 msgid ""
10331 "For common Linux filesystems, the actual mode which is set will be C<mode & "
10332 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
10333 "other ways."
10334 msgstr ""
10335
10336 # type: textblock
10337 #: ../src/guestfs-actions.pod:3781
10338 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
10339 msgstr ""
10340
10341 # type: =head2
10342 #: ../src/guestfs-actions.pod:3787
10343 msgid "guestfs_mkdir_p"
10344 msgstr ""
10345
10346 # type: verbatim
10347 #: ../src/guestfs-actions.pod:3789
10348 #, no-wrap
10349 msgid ""
10350 " int\n"
10351 " guestfs_mkdir_p (guestfs_h *g,\n"
10352 "                  const char *path);\n"
10353 "\n"
10354 msgstr ""
10355
10356 # type: textblock
10357 #: ../src/guestfs-actions.pod:3793 ../fish/guestfish-actions.pod:2546
10358 msgid ""
10359 "Create a directory named C<path>, creating any parent directories as "
10360 "necessary.  This is like the C<mkdir -p> shell command."
10361 msgstr ""
10362
10363 # type: =head2
10364 #: ../src/guestfs-actions.pod:3800
10365 msgid "guestfs_mkdtemp"
10366 msgstr ""
10367
10368 # type: verbatim
10369 #: ../src/guestfs-actions.pod:3802
10370 #, no-wrap
10371 msgid ""
10372 " char *\n"
10373 " guestfs_mkdtemp (guestfs_h *g,\n"
10374 "                  const char *template);\n"
10375 "\n"
10376 msgstr ""
10377
10378 # type: textblock
10379 #: ../src/guestfs-actions.pod:3806 ../fish/guestfish-actions.pod:2553
10380 msgid ""
10381 "This command creates a temporary directory.  The C<template> parameter "
10382 "should be a full pathname for the temporary directory name with the final "
10383 "six characters being \"XXXXXX\"."
10384 msgstr ""
10385
10386 # type: textblock
10387 #: ../src/guestfs-actions.pod:3811 ../fish/guestfish-actions.pod:2558
10388 msgid ""
10389 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
10390 "being suitable for Windows filesystems."
10391 msgstr ""
10392
10393 # type: textblock
10394 #: ../src/guestfs-actions.pod:3814 ../fish/guestfish-actions.pod:2561
10395 msgid "The name of the temporary directory that was created is returned."
10396 msgstr ""
10397
10398 # type: textblock
10399 #: ../src/guestfs-actions.pod:3817 ../fish/guestfish-actions.pod:2564
10400 msgid "The temporary directory is created with mode 0700 and is owned by root."
10401 msgstr ""
10402
10403 # type: textblock
10404 #: ../src/guestfs-actions.pod:3820 ../fish/guestfish-actions.pod:2567
10405 msgid ""
10406 "The caller is responsible for deleting the temporary directory and its "
10407 "contents after use."
10408 msgstr ""
10409
10410 # type: textblock
10411 #: ../src/guestfs-actions.pod:3823 ../fish/guestfish-actions.pod:2570
10412 msgid "See also: L<mkdtemp(3)>"
10413 msgstr ""
10414
10415 # type: =head2
10416 #: ../src/guestfs-actions.pod:3830
10417 msgid "guestfs_mke2fs_J"
10418 msgstr ""
10419
10420 # type: verbatim
10421 #: ../src/guestfs-actions.pod:3832
10422 #, no-wrap
10423 msgid ""
10424 " int\n"
10425 " guestfs_mke2fs_J (guestfs_h *g,\n"
10426 "                   const char *fstype,\n"
10427 "                   int blocksize,\n"
10428 "                   const char *device,\n"
10429 "                   const char *journal);\n"
10430 "\n"
10431 msgstr ""
10432
10433 # type: textblock
10434 #: ../src/guestfs-actions.pod:3839 ../fish/guestfish-actions.pod:2576
10435 msgid ""
10436 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
10437 "C<journal>.  It is equivalent to the command:"
10438 msgstr ""
10439
10440 # type: verbatim
10441 #: ../src/guestfs-actions.pod:3843 ../fish/guestfish-actions.pod:2580
10442 #, no-wrap
10443 msgid ""
10444 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
10445 "\n"
10446 msgstr ""
10447
10448 # type: textblock
10449 #: ../src/guestfs-actions.pod:3845
10450 msgid "See also C<guestfs_mke2journal>."
10451 msgstr ""
10452
10453 # type: textblock
10454 #: ../src/guestfs-actions.pod:3849 ../src/guestfs-actions.pod:3867 ../src/guestfs-actions.pod:3885 ../src/guestfs-actions.pod:3901 ../src/guestfs-actions.pod:3915 ../src/guestfs-actions.pod:3929 ../src/guestfs-actions.pod:3981 ../src/guestfs-actions.pod:4171
10455 msgid "(Added in 1.0.68)"
10456 msgstr ""
10457
10458 # type: =head2
10459 #: ../src/guestfs-actions.pod:3851
10460 msgid "guestfs_mke2fs_JL"
10461 msgstr ""
10462
10463 # type: verbatim
10464 #: ../src/guestfs-actions.pod:3853
10465 #, no-wrap
10466 msgid ""
10467 " int\n"
10468 " guestfs_mke2fs_JL (guestfs_h *g,\n"
10469 "                    const char *fstype,\n"
10470 "                    int blocksize,\n"
10471 "                    const char *device,\n"
10472 "                    const char *label);\n"
10473 "\n"
10474 msgstr ""
10475
10476 # type: textblock
10477 #: ../src/guestfs-actions.pod:3860 ../fish/guestfish-actions.pod:2588
10478 msgid ""
10479 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
10480 "the journal labeled C<label>."
10481 msgstr ""
10482
10483 # type: textblock
10484 #: ../src/guestfs-actions.pod:3863
10485 msgid "See also C<guestfs_mke2journal_L>."
10486 msgstr ""
10487
10488 # type: =head2
10489 #: ../src/guestfs-actions.pod:3869
10490 msgid "guestfs_mke2fs_JU"
10491 msgstr ""
10492
10493 # type: verbatim
10494 #: ../src/guestfs-actions.pod:3871
10495 #, no-wrap
10496 msgid ""
10497 " int\n"
10498 " guestfs_mke2fs_JU (guestfs_h *g,\n"
10499 "                    const char *fstype,\n"
10500 "                    int blocksize,\n"
10501 "                    const char *device,\n"
10502 "                    const char *uuid);\n"
10503 "\n"
10504 msgstr ""
10505
10506 # type: textblock
10507 #: ../src/guestfs-actions.pod:3878 ../fish/guestfish-actions.pod:2597
10508 msgid ""
10509 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
10510 "the journal with UUID C<uuid>."
10511 msgstr ""
10512
10513 # type: textblock
10514 #: ../src/guestfs-actions.pod:3881
10515 msgid "See also C<guestfs_mke2journal_U>."
10516 msgstr ""
10517
10518 # type: =head2
10519 #: ../src/guestfs-actions.pod:3887
10520 msgid "guestfs_mke2journal"
10521 msgstr ""
10522
10523 # type: verbatim
10524 #: ../src/guestfs-actions.pod:3889
10525 #, no-wrap
10526 msgid ""
10527 " int\n"
10528 " guestfs_mke2journal (guestfs_h *g,\n"
10529 "                      int blocksize,\n"
10530 "                      const char *device);\n"
10531 "\n"
10532 msgstr ""
10533
10534 # type: textblock
10535 #: ../src/guestfs-actions.pod:3894 ../fish/guestfish-actions.pod:2606
10536 msgid ""
10537 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
10538 "command:"
10539 msgstr ""
10540
10541 # type: verbatim
10542 #: ../src/guestfs-actions.pod:3897 ../fish/guestfish-actions.pod:2609
10543 #, no-wrap
10544 msgid ""
10545 " mke2fs -O journal_dev -b blocksize device\n"
10546 "\n"
10547 msgstr ""
10548
10549 # type: =head2
10550 #: ../src/guestfs-actions.pod:3903
10551 msgid "guestfs_mke2journal_L"
10552 msgstr ""
10553
10554 # type: verbatim
10555 #: ../src/guestfs-actions.pod:3905
10556 #, no-wrap
10557 msgid ""
10558 " int\n"
10559 " guestfs_mke2journal_L (guestfs_h *g,\n"
10560 "                        int blocksize,\n"
10561 "                        const char *label,\n"
10562 "                        const char *device);\n"
10563 "\n"
10564 msgstr ""
10565
10566 # type: textblock
10567 #: ../src/guestfs-actions.pod:3911 ../fish/guestfish-actions.pod:2615
10568 msgid "This creates an ext2 external journal on C<device> with label C<label>."
10569 msgstr ""
10570
10571 # type: =head2
10572 #: ../src/guestfs-actions.pod:3917
10573 msgid "guestfs_mke2journal_U"
10574 msgstr ""
10575
10576 # type: verbatim
10577 #: ../src/guestfs-actions.pod:3919
10578 #, no-wrap
10579 msgid ""
10580 " int\n"
10581 " guestfs_mke2journal_U (guestfs_h *g,\n"
10582 "                        int blocksize,\n"
10583 "                        const char *uuid,\n"
10584 "                        const char *device);\n"
10585 "\n"
10586 msgstr ""
10587
10588 # type: textblock
10589 #: ../src/guestfs-actions.pod:3925 ../fish/guestfish-actions.pod:2621
10590 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
10591 msgstr ""
10592
10593 # type: =head2
10594 #: ../src/guestfs-actions.pod:3931
10595 msgid "guestfs_mkfifo"
10596 msgstr ""
10597
10598 # type: verbatim
10599 #: ../src/guestfs-actions.pod:3933
10600 #, no-wrap
10601 msgid ""
10602 " int\n"
10603 " guestfs_mkfifo (guestfs_h *g,\n"
10604 "                 int mode,\n"
10605 "                 const char *path);\n"
10606 "\n"
10607 msgstr ""
10608
10609 # type: textblock
10610 #: ../src/guestfs-actions.pod:3938
10611 msgid ""
10612 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
10613 "is just a convenient wrapper around C<guestfs_mknod>."
10614 msgstr ""
10615
10616 # type: =head2
10617 #: ../src/guestfs-actions.pod:3948
10618 msgid "guestfs_mkfs"
10619 msgstr ""
10620
10621 # type: verbatim
10622 #: ../src/guestfs-actions.pod:3950
10623 #, no-wrap
10624 msgid ""
10625 " int\n"
10626 " guestfs_mkfs (guestfs_h *g,\n"
10627 "               const char *fstype,\n"
10628 "               const char *device);\n"
10629 "\n"
10630 msgstr ""
10631
10632 # type: textblock
10633 #: ../src/guestfs-actions.pod:3955 ../fish/guestfish-actions.pod:2637
10634 msgid ""
10635 "This creates a filesystem on C<device> (usually a partition or LVM logical "
10636 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
10637 msgstr ""
10638
10639 # type: =head2
10640 #: ../src/guestfs-actions.pod:3963
10641 msgid "guestfs_mkfs_b"
10642 msgstr ""
10643
10644 # type: verbatim
10645 #: ../src/guestfs-actions.pod:3965
10646 #, no-wrap
10647 msgid ""
10648 " int\n"
10649 " guestfs_mkfs_b (guestfs_h *g,\n"
10650 "                 const char *fstype,\n"
10651 "                 int blocksize,\n"
10652 "                 const char *device);\n"
10653 "\n"
10654 msgstr ""
10655
10656 # type: textblock
10657 #: ../src/guestfs-actions.pod:3971
10658 msgid ""
10659 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
10660 "block size of the resulting filesystem.  Supported block sizes depend on the "
10661 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
10662 msgstr ""
10663
10664 # type: textblock
10665 #: ../src/guestfs-actions.pod:3976 ../fish/guestfish-actions.pod:2650
10666 msgid ""
10667 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
10668 "cluster size."
10669 msgstr ""
10670
10671 # type: =head2
10672 #: ../src/guestfs-actions.pod:3983
10673 msgid "guestfs_mkmountpoint"
10674 msgstr ""
10675
10676 # type: verbatim
10677 #: ../src/guestfs-actions.pod:3985
10678 #, no-wrap
10679 msgid ""
10680 " int\n"
10681 " guestfs_mkmountpoint (guestfs_h *g,\n"
10682 "                       const char *exemptpath);\n"
10683 "\n"
10684 msgstr ""
10685
10686 # type: textblock
10687 #: ../src/guestfs-actions.pod:3989
10688 msgid ""
10689 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
10690 "that can be used to create extra mountpoints before mounting the first "
10691 "filesystem."
10692 msgstr ""
10693
10694 # type: textblock
10695 #: ../src/guestfs-actions.pod:3993 ../fish/guestfish-actions.pod:2661
10696 msgid ""
10697 "These calls are I<only> necessary in some very limited circumstances, mainly "
10698 "the case where you want to mount a mix of unrelated and/or read-only "
10699 "filesystems together."
10700 msgstr ""
10701
10702 # type: textblock
10703 #: ../src/guestfs-actions.pod:3997 ../fish/guestfish-actions.pod:2665
10704 msgid ""
10705 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
10706 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
10707 "inside that.  You can unpack this as follows in guestfish:"
10708 msgstr ""
10709
10710 # type: verbatim
10711 #: ../src/guestfs-actions.pod:4002 ../fish/guestfish-actions.pod:2670
10712 #, no-wrap
10713 msgid ""
10714 " add-ro Fedora-11-i686-Live.iso\n"
10715 " run\n"
10716 " mkmountpoint /cd\n"
10717 " mkmountpoint /sqsh\n"
10718 " mkmountpoint /ext3fs\n"
10719 " mount /dev/sda /cd\n"
10720 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
10721 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
10722 "\n"
10723 msgstr ""
10724
10725 # type: textblock
10726 #: ../src/guestfs-actions.pod:4011 ../fish/guestfish-actions.pod:2679
10727 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
10728 msgstr ""
10729
10730 # type: textblock
10731 #: ../src/guestfs-actions.pod:4013
10732 msgid ""
10733 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
10734 "may get unexpected errors if you try to mix these calls.  It is safest to "
10735 "manually unmount filesystems and remove mountpoints after use."
10736 msgstr ""
10737
10738 # type: textblock
10739 #: ../src/guestfs-actions.pod:4017
10740 msgid ""
10741 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
10742 "first, so for this to work for manual mountpoints, you must ensure that the "
10743 "innermost mountpoints have the longest pathnames, as in the example code "
10744 "above."
10745 msgstr ""
10746
10747 # type: textblock
10748 #: ../src/guestfs-actions.pod:4022 ../fish/guestfish-actions.pod:2690
10749 msgid "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
10750 msgstr ""
10751
10752 # type: textblock
10753 #: ../src/guestfs-actions.pod:4024
10754 msgid ""
10755 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
10756 "means that C<guestfs_umount_all> is called when the handle is closed which "
10757 "can also trigger these issues."
10758 msgstr ""
10759
10760 # type: textblock
10761 #: ../src/guestfs-actions.pod:4030 ../src/guestfs-actions.pod:4289 ../src/guestfs-actions.pod:5182
10762 msgid "(Added in 1.0.62)"
10763 msgstr ""
10764
10765 # type: =head2
10766 #: ../src/guestfs-actions.pod:4032
10767 msgid "guestfs_mknod"
10768 msgstr ""
10769
10770 # type: verbatim
10771 #: ../src/guestfs-actions.pod:4034
10772 #, no-wrap
10773 msgid ""
10774 " int\n"
10775 " guestfs_mknod (guestfs_h *g,\n"
10776 "                int mode,\n"
10777 "                int devmajor,\n"
10778 "                int devminor,\n"
10779 "                const char *path);\n"
10780 "\n"
10781 msgstr ""
10782
10783 # type: textblock
10784 #: ../src/guestfs-actions.pod:4041 ../fish/guestfish-actions.pod:2700
10785 msgid ""
10786 "This call creates block or character special devices, or named pipes "
10787 "(FIFOs)."
10788 msgstr ""
10789
10790 # type: textblock
10791 #: ../src/guestfs-actions.pod:4044 ../fish/guestfish-actions.pod:2703
10792 msgid ""
10793 "The C<mode> parameter should be the mode, using the standard constants.  "
10794 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
10795 "used when creating block and character special devices."
10796 msgstr ""
10797
10798 # type: textblock
10799 #: ../src/guestfs-actions.pod:4049
10800 msgid ""
10801 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
10802 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
10803 "regular file).  These constants are available in the standard Linux header "
10804 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
10805 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
10806 "the appropriate constant for you."
10807 msgstr ""
10808
10809 # type: =head2
10810 #: ../src/guestfs-actions.pod:4063
10811 msgid "guestfs_mknod_b"
10812 msgstr ""
10813
10814 # type: verbatim
10815 #: ../src/guestfs-actions.pod:4065
10816 #, no-wrap
10817 msgid ""
10818 " int\n"
10819 " guestfs_mknod_b (guestfs_h *g,\n"
10820 "                  int mode,\n"
10821 "                  int devmajor,\n"
10822 "                  int devminor,\n"
10823 "                  const char *path);\n"
10824 "\n"
10825 msgstr ""
10826
10827 # type: textblock
10828 #: ../src/guestfs-actions.pod:4072
10829 msgid ""
10830 "This call creates a block device node called C<path> with mode C<mode> and "
10831 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
10832 "wrapper around C<guestfs_mknod>."
10833 msgstr ""
10834
10835 # type: =head2
10836 #: ../src/guestfs-actions.pod:4082
10837 msgid "guestfs_mknod_c"
10838 msgstr ""
10839
10840 # type: verbatim
10841 #: ../src/guestfs-actions.pod:4084
10842 #, no-wrap
10843 msgid ""
10844 " int\n"
10845 " guestfs_mknod_c (guestfs_h *g,\n"
10846 "                  int mode,\n"
10847 "                  int devmajor,\n"
10848 "                  int devminor,\n"
10849 "                  const char *path);\n"
10850 "\n"
10851 msgstr ""
10852
10853 # type: textblock
10854 #: ../src/guestfs-actions.pod:4091
10855 msgid ""
10856 "This call creates a char device node called C<path> with mode C<mode> and "
10857 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
10858 "wrapper around C<guestfs_mknod>."
10859 msgstr ""
10860
10861 # type: =head2
10862 #: ../src/guestfs-actions.pod:4101
10863 msgid "guestfs_mkswap"
10864 msgstr ""
10865
10866 # type: verbatim
10867 #: ../src/guestfs-actions.pod:4103
10868 #, no-wrap
10869 msgid ""
10870 " int\n"
10871 " guestfs_mkswap (guestfs_h *g,\n"
10872 "                 const char *device);\n"
10873 "\n"
10874 msgstr ""
10875
10876 # type: textblock
10877 #: ../src/guestfs-actions.pod:4107 ../fish/guestfish-actions.pod:2742
10878 msgid "Create a swap partition on C<device>."
10879 msgstr ""
10880
10881 # type: =head2
10882 #: ../src/guestfs-actions.pod:4113
10883 msgid "guestfs_mkswap_L"
10884 msgstr ""
10885
10886 # type: verbatim
10887 #: ../src/guestfs-actions.pod:4115
10888 #, no-wrap
10889 msgid ""
10890 " int\n"
10891 " guestfs_mkswap_L (guestfs_h *g,\n"
10892 "                   const char *label,\n"
10893 "                   const char *device);\n"
10894 "\n"
10895 msgstr ""
10896
10897 # type: textblock
10898 #: ../src/guestfs-actions.pod:4120 ../fish/guestfish-actions.pod:2748
10899 msgid "Create a swap partition on C<device> with label C<label>."
10900 msgstr ""
10901
10902 # type: textblock
10903 #: ../src/guestfs-actions.pod:4122 ../fish/guestfish-actions.pod:2750
10904 msgid ""
10905 "Note that you cannot attach a swap label to a block device "
10906 "(eg. C</dev/sda>), just to a partition.  This appears to be a limitation of "
10907 "the kernel or swap tools."
10908 msgstr ""
10909
10910 # type: =head2
10911 #: ../src/guestfs-actions.pod:4130
10912 msgid "guestfs_mkswap_U"
10913 msgstr ""
10914
10915 # type: verbatim
10916 #: ../src/guestfs-actions.pod:4132
10917 #, no-wrap
10918 msgid ""
10919 " int\n"
10920 " guestfs_mkswap_U (guestfs_h *g,\n"
10921 "                   const char *uuid,\n"
10922 "                   const char *device);\n"
10923 "\n"
10924 msgstr ""
10925
10926 # type: textblock
10927 #: ../src/guestfs-actions.pod:4137 ../fish/guestfish-actions.pod:2758
10928 msgid "Create a swap partition on C<device> with UUID C<uuid>."
10929 msgstr ""
10930
10931 # type: =head2
10932 #: ../src/guestfs-actions.pod:4143
10933 msgid "guestfs_mkswap_file"
10934 msgstr ""
10935
10936 # type: verbatim
10937 #: ../src/guestfs-actions.pod:4145
10938 #, no-wrap
10939 msgid ""
10940 " int\n"
10941 " guestfs_mkswap_file (guestfs_h *g,\n"
10942 "                      const char *path);\n"
10943 "\n"
10944 msgstr ""
10945
10946 # type: textblock
10947 #: ../src/guestfs-actions.pod:4149 ../fish/guestfish-actions.pod:2764
10948 msgid "Create a swap file."
10949 msgstr ""
10950
10951 # type: textblock
10952 #: ../src/guestfs-actions.pod:4151
10953 msgid ""
10954 "This command just writes a swap file signature to an existing file.  To "
10955 "create the file itself, use something like C<guestfs_fallocate>."
10956 msgstr ""
10957
10958 # type: =head2
10959 #: ../src/guestfs-actions.pod:4158
10960 msgid "guestfs_modprobe"
10961 msgstr ""
10962
10963 # type: verbatim
10964 #: ../src/guestfs-actions.pod:4160
10965 #, no-wrap
10966 msgid ""
10967 " int\n"
10968 " guestfs_modprobe (guestfs_h *g,\n"
10969 "                   const char *modulename);\n"
10970 "\n"
10971 msgstr ""
10972
10973 # type: textblock
10974 #: ../src/guestfs-actions.pod:4164 ../fish/guestfish-actions.pod:2773
10975 msgid "This loads a kernel module in the appliance."
10976 msgstr ""
10977
10978 # type: textblock
10979 #: ../src/guestfs-actions.pod:4166 ../fish/guestfish-actions.pod:2775
10980 msgid ""
10981 "The kernel module must have been whitelisted when libguestfs was built (see "
10982 "C<appliance/kmod.whitelist.in> in the source)."
10983 msgstr ""
10984
10985 # type: =head2
10986 #: ../src/guestfs-actions.pod:4173
10987 msgid "guestfs_mount"
10988 msgstr ""
10989
10990 # type: verbatim
10991 #: ../src/guestfs-actions.pod:4175
10992 #, no-wrap
10993 msgid ""
10994 " int\n"
10995 " guestfs_mount (guestfs_h *g,\n"
10996 "                const char *device,\n"
10997 "                const char *mountpoint);\n"
10998 "\n"
10999 msgstr ""
11000
11001 # type: textblock
11002 #: ../src/guestfs-actions.pod:4180 ../fish/guestfish-actions.pod:2782
11003 msgid ""
11004 "Mount a guest disk at a position in the filesystem.  Block devices are named "
11005 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
11006 "those block devices contain partitions, they will have the usual names "
11007 "(eg. C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
11008 msgstr ""
11009
11010 # type: textblock
11011 #: ../src/guestfs-actions.pod:4186 ../fish/guestfish-actions.pod:2788
11012 msgid ""
11013 "The rules are the same as for L<mount(2)>: A filesystem must first be "
11014 "mounted on C</> before others can be mounted.  Other filesystems can only be "
11015 "mounted on directories which already exist."
11016 msgstr ""
11017
11018 # type: textblock
11019 #: ../src/guestfs-actions.pod:4191 ../fish/guestfish-actions.pod:2793
11020 msgid ""
11021 "The mounted filesystem is writable, if we have sufficient permissions on the "
11022 "underlying device."
11023 msgstr ""
11024
11025 # type: textblock
11026 #: ../src/guestfs-actions.pod:4194
11027 msgid ""
11028 "B<Important note:> When you use this call, the filesystem options C<sync> "
11029 "and C<noatime> are set implicitly.  This was originally done because we "
11030 "thought it would improve reliability, but it turns out that I<-o sync> has a "
11031 "very large negative performance impact and negligible effect on "
11032 "reliability.  Therefore we recommend that you avoid using C<guestfs_mount> "
11033 "in any code that needs performance, and instead use C<guestfs_mount_options> "
11034 "(use an empty string for the first parameter if you don't want any options)."
11035 msgstr ""
11036
11037 # type: =head2
11038 #: ../src/guestfs-actions.pod:4208
11039 msgid "guestfs_mount_loop"
11040 msgstr ""
11041
11042 # type: verbatim
11043 #: ../src/guestfs-actions.pod:4210
11044 #, no-wrap
11045 msgid ""
11046 " int\n"
11047 " guestfs_mount_loop (guestfs_h *g,\n"
11048 "                     const char *file,\n"
11049 "                     const char *mountpoint);\n"
11050 "\n"
11051 msgstr ""
11052
11053 # type: textblock
11054 #: ../src/guestfs-actions.pod:4215 ../fish/guestfish-actions.pod:2810
11055 msgid ""
11056 "This command lets you mount C<file> (a filesystem image in a file) on a "
11057 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
11058 "mountpoint>."
11059 msgstr ""
11060
11061 # type: =head2
11062 #: ../src/guestfs-actions.pod:4223
11063 msgid "guestfs_mount_options"
11064 msgstr ""
11065
11066 # type: verbatim
11067 #: ../src/guestfs-actions.pod:4225
11068 #, no-wrap
11069 msgid ""
11070 " int\n"
11071 " guestfs_mount_options (guestfs_h *g,\n"
11072 "                        const char *options,\n"
11073 "                        const char *device,\n"
11074 "                        const char *mountpoint);\n"
11075 "\n"
11076 msgstr ""
11077
11078 # type: textblock
11079 #: ../src/guestfs-actions.pod:4231
11080 msgid ""
11081 "This is the same as the C<guestfs_mount> command, but it allows you to set "
11082 "the mount options as for the L<mount(8)> I<-o> flag."
11083 msgstr ""
11084
11085 # type: textblock
11086 #: ../src/guestfs-actions.pod:4235 ../fish/guestfish-actions.pod:2822
11087 msgid ""
11088 "If the C<options> parameter is an empty string, then no options are passed "
11089 "(all options default to whatever the filesystem uses)."
11090 msgstr ""
11091
11092 # type: textblock
11093 #: ../src/guestfs-actions.pod:4241 ../src/guestfs-actions.pod:4255 ../src/guestfs-actions.pod:4272
11094 msgid "(Added in 1.0.10)"
11095 msgstr ""
11096
11097 # type: =head2
11098 #: ../src/guestfs-actions.pod:4243
11099 msgid "guestfs_mount_ro"
11100 msgstr ""
11101
11102 # type: verbatim
11103 #: ../src/guestfs-actions.pod:4245
11104 #, no-wrap
11105 msgid ""
11106 " int\n"
11107 " guestfs_mount_ro (guestfs_h *g,\n"
11108 "                   const char *device,\n"
11109 "                   const char *mountpoint);\n"
11110 "\n"
11111 msgstr ""
11112
11113 # type: textblock
11114 #: ../src/guestfs-actions.pod:4250
11115 msgid ""
11116 "This is the same as the C<guestfs_mount> command, but it mounts the "
11117 "filesystem with the read-only (I<-o ro>) flag."
11118 msgstr ""
11119
11120 # type: =head2
11121 #: ../src/guestfs-actions.pod:4257
11122 msgid "guestfs_mount_vfs"
11123 msgstr ""
11124
11125 # type: verbatim
11126 #: ../src/guestfs-actions.pod:4259
11127 #, no-wrap
11128 msgid ""
11129 " int\n"
11130 " guestfs_mount_vfs (guestfs_h *g,\n"
11131 "                    const char *options,\n"
11132 "                    const char *vfstype,\n"
11133 "                    const char *device,\n"
11134 "                    const char *mountpoint);\n"
11135 "\n"
11136 msgstr ""
11137
11138 # type: textblock
11139 #: ../src/guestfs-actions.pod:4266
11140 msgid ""
11141 "This is the same as the C<guestfs_mount> command, but it allows you to set "
11142 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and "
11143 "I<-t> flags."
11144 msgstr ""
11145
11146 # type: =head2
11147 #: ../src/guestfs-actions.pod:4274
11148 msgid "guestfs_mountpoints"
11149 msgstr ""
11150
11151 # type: verbatim
11152 #: ../src/guestfs-actions.pod:4276
11153 #, no-wrap
11154 msgid ""
11155 " char **\n"
11156 " guestfs_mountpoints (guestfs_h *g);\n"
11157 "\n"
11158 msgstr ""
11159
11160 # type: textblock
11161 #: ../src/guestfs-actions.pod:4279
11162 msgid ""
11163 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
11164 "devices.  This one returns a hash table (map) of device name to directory "
11165 "where the device is mounted."
11166 msgstr ""
11167
11168 # type: =head2
11169 #: ../src/guestfs-actions.pod:4291
11170 msgid "guestfs_mounts"
11171 msgstr ""
11172
11173 # type: verbatim
11174 #: ../src/guestfs-actions.pod:4293
11175 #, no-wrap
11176 msgid ""
11177 " char **\n"
11178 " guestfs_mounts (guestfs_h *g);\n"
11179 "\n"
11180 msgstr ""
11181
11182 # type: textblock
11183 #: ../src/guestfs-actions.pod:4296 ../fish/guestfish-actions.pod:2853
11184 msgid ""
11185 "This returns the list of currently mounted filesystems.  It returns the list "
11186 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
11187 msgstr ""
11188
11189 # type: textblock
11190 #: ../src/guestfs-actions.pod:4299 ../fish/guestfish-actions.pod:2856
11191 msgid "Some internal mounts are not shown."
11192 msgstr ""
11193
11194 # type: textblock
11195 #: ../src/guestfs-actions.pod:4301
11196 msgid "See also: C<guestfs_mountpoints>"
11197 msgstr ""
11198
11199 # type: =head2
11200 #: ../src/guestfs-actions.pod:4309
11201 msgid "guestfs_mv"
11202 msgstr ""
11203
11204 # type: verbatim
11205 #: ../src/guestfs-actions.pod:4311
11206 #, no-wrap
11207 msgid ""
11208 " int\n"
11209 " guestfs_mv (guestfs_h *g,\n"
11210 "             const char *src,\n"
11211 "             const char *dest);\n"
11212 "\n"
11213 msgstr ""
11214
11215 # type: textblock
11216 #: ../src/guestfs-actions.pod:4316 ../fish/guestfish-actions.pod:2864
11217 msgid ""
11218 "This moves a file from C<src> to C<dest> where C<dest> is either a "
11219 "destination filename or destination directory."
11220 msgstr ""
11221
11222 # type: =head2
11223 #: ../src/guestfs-actions.pod:4323
11224 msgid "guestfs_ntfs_3g_probe"
11225 msgstr ""
11226
11227 # type: verbatim
11228 #: ../src/guestfs-actions.pod:4325
11229 #, no-wrap
11230 msgid ""
11231 " int\n"
11232 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
11233 "                        int rw,\n"
11234 "                        const char *device);\n"
11235 "\n"
11236 msgstr ""
11237
11238 # type: textblock
11239 #: ../src/guestfs-actions.pod:4330 ../fish/guestfish-actions.pod:2871
11240 msgid ""
11241 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
11242 "C<device> for mountability.  (Not all NTFS volumes can be mounted "
11243 "read-write, and some cannot be mounted at all)."
11244 msgstr ""
11245
11246 # type: textblock
11247 #: ../src/guestfs-actions.pod:4334 ../fish/guestfish-actions.pod:2875
11248 msgid ""
11249 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
11250 "can be mounted read-write.  Set it to false if you want to test if the "
11251 "volume can be mounted read-only."
11252 msgstr ""
11253
11254 # type: textblock
11255 #: ../src/guestfs-actions.pod:4338 ../fish/guestfish-actions.pod:2879
11256 msgid ""
11257 "The return value is an integer which C<0> if the operation would succeed, or "
11258 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
11259 msgstr ""
11260
11261 # type: textblock
11262 #: ../src/guestfs-actions.pod:4344
11263 msgid "(Added in 1.0.43)"
11264 msgstr ""
11265
11266 # type: =head2
11267 #: ../src/guestfs-actions.pod:4346
11268 msgid "guestfs_ntfsresize"
11269 msgstr ""
11270
11271 # type: verbatim
11272 #: ../src/guestfs-actions.pod:4348
11273 #, no-wrap
11274 msgid ""
11275 " int\n"
11276 " guestfs_ntfsresize (guestfs_h *g,\n"
11277 "                     const char *device);\n"
11278 "\n"
11279 msgstr ""
11280
11281 # type: textblock
11282 #: ../src/guestfs-actions.pod:4352 ../fish/guestfish-actions.pod:2887
11283 msgid ""
11284 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
11285 "size of the underlying device.  See also L<ntfsresize(8)>."
11286 msgstr ""
11287
11288 # type: =head2
11289 #: ../src/guestfs-actions.pod:4360
11290 msgid "guestfs_ntfsresize_size"
11291 msgstr ""
11292
11293 # type: verbatim
11294 #: ../src/guestfs-actions.pod:4362
11295 #, no-wrap
11296 msgid ""
11297 " int\n"
11298 " guestfs_ntfsresize_size (guestfs_h *g,\n"
11299 "                          const char *device,\n"
11300 "                          int64_t size);\n"
11301 "\n"
11302 msgstr ""
11303
11304 # type: textblock
11305 #: ../src/guestfs-actions.pod:4367
11306 msgid ""
11307 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
11308 "to specify the new size (in bytes) explicitly."
11309 msgstr ""
11310
11311 # type: textblock
11312 #: ../src/guestfs-actions.pod:4372 ../src/guestfs-actions.pod:4808 ../src/guestfs-actions.pod:4881 ../src/guestfs-actions.pod:5130
11313 msgid "(Added in 1.3.14)"
11314 msgstr ""
11315
11316 # type: =head2
11317 #: ../src/guestfs-actions.pod:4374
11318 msgid "guestfs_part_add"
11319 msgstr ""
11320
11321 # type: verbatim
11322 #: ../src/guestfs-actions.pod:4376
11323 #, no-wrap
11324 msgid ""
11325 " int\n"
11326 " guestfs_part_add (guestfs_h *g,\n"
11327 "                   const char *device,\n"
11328 "                   const char *prlogex,\n"
11329 "                   int64_t startsect,\n"
11330 "                   int64_t endsect);\n"
11331 "\n"
11332 msgstr ""
11333
11334 # type: textblock
11335 #: ../src/guestfs-actions.pod:4383
11336 msgid ""
11337 "This command adds a partition to C<device>.  If there is no partition table "
11338 "on the device, call C<guestfs_part_init> first."
11339 msgstr ""
11340
11341 # type: textblock
11342 #: ../src/guestfs-actions.pod:4386 ../fish/guestfish-actions.pod:2905
11343 msgid ""
11344 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
11345 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
11346 "C<logical>) and C<e> (or C<extended>) partition types."
11347 msgstr ""
11348
11349 # type: textblock
11350 #: ../src/guestfs-actions.pod:4391 ../fish/guestfish-actions.pod:2910
11351 msgid ""
11352 "C<startsect> and C<endsect> are the start and end of the partition in "
11353 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
11354 "from the end of the disk (C<-1> is the last sector)."
11355 msgstr ""
11356
11357 # type: textblock
11358 #: ../src/guestfs-actions.pod:4395
11359 msgid ""
11360 "Creating a partition which covers the whole disk is not so easy.  Use "
11361 "C<guestfs_part_disk> to do that."
11362 msgstr ""
11363
11364 # type: textblock
11365 #: ../src/guestfs-actions.pod:4400 ../src/guestfs-actions.pod:4438 ../src/guestfs-actions.pod:4491 ../src/guestfs-actions.pod:4569 ../src/guestfs-actions.pod:4607 ../src/guestfs-actions.pod:4626 ../src/guestfs-actions.pod:4666
11366 msgid "(Added in 1.0.78)"
11367 msgstr ""
11368
11369 # type: =head2
11370 #: ../src/guestfs-actions.pod:4402
11371 msgid "guestfs_part_del"
11372 msgstr ""
11373
11374 # type: verbatim
11375 #: ../src/guestfs-actions.pod:4404
11376 #, no-wrap
11377 msgid ""
11378 " int\n"
11379 " guestfs_part_del (guestfs_h *g,\n"
11380 "                   const char *device,\n"
11381 "                   int partnum);\n"
11382 "\n"
11383 msgstr ""
11384
11385 # type: textblock
11386 #: ../src/guestfs-actions.pod:4409 ../fish/guestfish-actions.pod:2921
11387 msgid "This command deletes the partition numbered C<partnum> on C<device>."
11388 msgstr ""
11389
11390 # type: textblock
11391 #: ../src/guestfs-actions.pod:4411 ../fish/guestfish-actions.pod:2923
11392 msgid ""
11393 "Note that in the case of MBR partitioning, deleting an extended partition "
11394 "also deletes any logical partitions it contains."
11395 msgstr ""
11396
11397 # type: =head2
11398 #: ../src/guestfs-actions.pod:4419
11399 msgid "guestfs_part_disk"
11400 msgstr ""
11401
11402 # type: verbatim
11403 #: ../src/guestfs-actions.pod:4421
11404 #, no-wrap
11405 msgid ""
11406 " int\n"
11407 " guestfs_part_disk (guestfs_h *g,\n"
11408 "                    const char *device,\n"
11409 "                    const char *parttype);\n"
11410 "\n"
11411 msgstr ""
11412
11413 # type: textblock
11414 #: ../src/guestfs-actions.pod:4426
11415 msgid ""
11416 "This command is simply a combination of C<guestfs_part_init> followed by "
11417 "C<guestfs_part_add> to create a single primary partition covering the whole "
11418 "disk."
11419 msgstr ""
11420
11421 # type: textblock
11422 #: ../src/guestfs-actions.pod:4430
11423 msgid ""
11424 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
11425 "possible values are described in C<guestfs_part_init>."
11426 msgstr ""
11427
11428 # type: =head2
11429 #: ../src/guestfs-actions.pod:4440
11430 msgid "guestfs_part_get_bootable"
11431 msgstr ""
11432
11433 # type: verbatim
11434 #: ../src/guestfs-actions.pod:4442
11435 #, no-wrap
11436 msgid ""
11437 " int\n"
11438 " guestfs_part_get_bootable (guestfs_h *g,\n"
11439 "                            const char *device,\n"
11440 "                            int partnum);\n"
11441 "\n"
11442 msgstr ""
11443
11444 # type: textblock
11445 #: ../src/guestfs-actions.pod:4447 ../fish/guestfish-actions.pod:2945
11446 msgid ""
11447 "This command returns true if the partition C<partnum> on C<device> has the "
11448 "bootable flag set."
11449 msgstr ""
11450
11451 # type: textblock
11452 #: ../src/guestfs-actions.pod:4450
11453 msgid "See also C<guestfs_part_set_bootable>."
11454 msgstr ""
11455
11456 # type: =head2
11457 #: ../src/guestfs-actions.pod:4456
11458 msgid "guestfs_part_get_mbr_id"
11459 msgstr ""
11460
11461 # type: verbatim
11462 #: ../src/guestfs-actions.pod:4458
11463 #, no-wrap
11464 msgid ""
11465 " int\n"
11466 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
11467 "                          const char *device,\n"
11468 "                          int partnum);\n"
11469 "\n"
11470 msgstr ""
11471
11472 # type: textblock
11473 #: ../src/guestfs-actions.pod:4463 ../fish/guestfish-actions.pod:2954
11474 msgid ""
11475 "Returns the MBR type byte (also known as the ID byte) from the numbered "
11476 "partition C<partnum>."
11477 msgstr ""
11478
11479 # type: textblock
11480 #: ../src/guestfs-actions.pod:4466 ../src/guestfs-actions.pod:4642
11481 msgid ""
11482 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
11483 "undefined results for other partition table types (see "
11484 "C<guestfs_part_get_parttype>)."
11485 msgstr ""
11486
11487 # type: =head2
11488 #: ../src/guestfs-actions.pod:4474
11489 msgid "guestfs_part_get_parttype"
11490 msgstr ""
11491
11492 # type: verbatim
11493 #: ../src/guestfs-actions.pod:4476
11494 #, no-wrap
11495 msgid ""
11496 " char *\n"
11497 " guestfs_part_get_parttype (guestfs_h *g,\n"
11498 "                            const char *device);\n"
11499 "\n"
11500 msgstr ""
11501
11502 # type: textblock
11503 #: ../src/guestfs-actions.pod:4480 ../fish/guestfish-actions.pod:2965
11504 msgid ""
11505 "This command examines the partition table on C<device> and returns the "
11506 "partition table type (format) being used."
11507 msgstr ""
11508
11509 # type: textblock
11510 #: ../src/guestfs-actions.pod:4483
11511 msgid ""
11512 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
11513 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
11514 "possible, although unusual.  See C<guestfs_part_init> for a full list."
11515 msgstr ""
11516
11517 # type: =head2
11518 #: ../src/guestfs-actions.pod:4493
11519 msgid "guestfs_part_init"
11520 msgstr ""
11521
11522 # type: verbatim
11523 #: ../src/guestfs-actions.pod:4495
11524 #, no-wrap
11525 msgid ""
11526 " int\n"
11527 " guestfs_part_init (guestfs_h *g,\n"
11528 "                    const char *device,\n"
11529 "                    const char *parttype);\n"
11530 "\n"
11531 msgstr ""
11532
11533 # type: textblock
11534 #: ../src/guestfs-actions.pod:4500 ../fish/guestfish-actions.pod:2977
11535 msgid ""
11536 "This creates an empty partition table on C<device> of one of the partition "
11537 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
11538 "(for large disks)."
11539 msgstr ""
11540
11541 # type: textblock
11542 #: ../src/guestfs-actions.pod:4504
11543 msgid ""
11544 "Initially there are no partitions.  Following this, you should call "
11545 "C<guestfs_part_add> for each partition required."
11546 msgstr ""
11547
11548 # type: textblock
11549 #: ../src/guestfs-actions.pod:4507 ../fish/guestfish-actions.pod:2984
11550 msgid "Possible values for C<parttype> are:"
11551 msgstr ""
11552
11553 # type: =item
11554 #: ../src/guestfs-actions.pod:4511 ../fish/guestfish-actions.pod:2988
11555 msgid "B<efi> | B<gpt>"
11556 msgstr ""
11557
11558 # type: textblock
11559 #: ../src/guestfs-actions.pod:4513 ../fish/guestfish-actions.pod:2990
11560 msgid "Intel EFI / GPT partition table."
11561 msgstr ""
11562
11563 # type: textblock
11564 #: ../src/guestfs-actions.pod:4515 ../fish/guestfish-actions.pod:2992
11565 msgid ""
11566 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
11567 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
11568 "the C<mbr> format."
11569 msgstr ""
11570
11571 # type: =item
11572 #: ../src/guestfs-actions.pod:4519 ../fish/guestfish-actions.pod:2996
11573 msgid "B<mbr> | B<msdos>"
11574 msgstr ""
11575
11576 # type: textblock
11577 #: ../src/guestfs-actions.pod:4521 ../fish/guestfish-actions.pod:2998
11578 msgid ""
11579 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
11580 "Windows.  This partition type will B<only> work for device sizes up to 2 "
11581 "TB.  For large disks we recommend using C<gpt>."
11582 msgstr ""
11583
11584 # type: textblock
11585 #: ../src/guestfs-actions.pod:4528 ../fish/guestfish-actions.pod:3005
11586 msgid "Other partition table types that may work but are not supported include:"
11587 msgstr ""
11588
11589 # type: =item
11590 #: ../src/guestfs-actions.pod:4533 ../fish/guestfish-actions.pod:3010
11591 msgid "B<aix>"
11592 msgstr ""
11593
11594 # type: textblock
11595 #: ../src/guestfs-actions.pod:4535 ../fish/guestfish-actions.pod:3012
11596 msgid "AIX disk labels."
11597 msgstr ""
11598
11599 # type: =item
11600 #: ../src/guestfs-actions.pod:4537 ../fish/guestfish-actions.pod:3014
11601 msgid "B<amiga> | B<rdb>"
11602 msgstr ""
11603
11604 # type: textblock
11605 #: ../src/guestfs-actions.pod:4539 ../fish/guestfish-actions.pod:3016
11606 msgid "Amiga \"Rigid Disk Block\" format."
11607 msgstr ""
11608
11609 # type: =item
11610 #: ../src/guestfs-actions.pod:4541 ../fish/guestfish-actions.pod:3018
11611 msgid "B<bsd>"
11612 msgstr ""
11613
11614 # type: textblock
11615 #: ../src/guestfs-actions.pod:4543 ../fish/guestfish-actions.pod:3020
11616 msgid "BSD disk labels."
11617 msgstr ""
11618
11619 # type: =item
11620 #: ../src/guestfs-actions.pod:4545 ../fish/guestfish-actions.pod:3022
11621 msgid "B<dasd>"
11622 msgstr ""
11623
11624 # type: textblock
11625 #: ../src/guestfs-actions.pod:4547 ../fish/guestfish-actions.pod:3024
11626 msgid "DASD, used on IBM mainframes."
11627 msgstr ""
11628
11629 # type: =item
11630 #: ../src/guestfs-actions.pod:4549 ../fish/guestfish-actions.pod:3026
11631 msgid "B<dvh>"
11632 msgstr ""
11633
11634 # type: textblock
11635 #: ../src/guestfs-actions.pod:4551 ../fish/guestfish-actions.pod:3028
11636 msgid "MIPS/SGI volumes."
11637 msgstr ""
11638
11639 # type: =item
11640 #: ../src/guestfs-actions.pod:4553 ../fish/guestfish-actions.pod:3030
11641 msgid "B<mac>"
11642 msgstr ""
11643
11644 # type: textblock
11645 #: ../src/guestfs-actions.pod:4555 ../fish/guestfish-actions.pod:3032
11646 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
11647 msgstr ""
11648
11649 # type: =item
11650 #: ../src/guestfs-actions.pod:4557 ../fish/guestfish-actions.pod:3034
11651 msgid "B<pc98>"
11652 msgstr ""
11653
11654 # type: textblock
11655 #: ../src/guestfs-actions.pod:4559 ../fish/guestfish-actions.pod:3036
11656 msgid "NEC PC-98 format, common in Japan apparently."
11657 msgstr ""
11658
11659 # type: =item
11660 #: ../src/guestfs-actions.pod:4561 ../fish/guestfish-actions.pod:3038
11661 msgid "B<sun>"
11662 msgstr ""
11663
11664 # type: textblock
11665 #: ../src/guestfs-actions.pod:4563 ../fish/guestfish-actions.pod:3040
11666 msgid "Sun disk labels."
11667 msgstr ""
11668
11669 # type: =head2
11670 #: ../src/guestfs-actions.pod:4571
11671 msgid "guestfs_part_list"
11672 msgstr ""
11673
11674 # type: verbatim
11675 #: ../src/guestfs-actions.pod:4573
11676 #, no-wrap
11677 msgid ""
11678 " struct guestfs_partition_list *\n"
11679 " guestfs_part_list (guestfs_h *g,\n"
11680 "                    const char *device);\n"
11681 "\n"
11682 msgstr ""
11683
11684 # type: textblock
11685 #: ../src/guestfs-actions.pod:4577 ../fish/guestfish-actions.pod:3048
11686 msgid ""
11687 "This command parses the partition table on C<device> and returns the list of "
11688 "partitions found."
11689 msgstr ""
11690
11691 # type: textblock
11692 #: ../src/guestfs-actions.pod:4580 ../fish/guestfish-actions.pod:3051
11693 msgid "The fields in the returned structure are:"
11694 msgstr ""
11695
11696 # type: =item
11697 #: ../src/guestfs-actions.pod:4584 ../fish/guestfish-actions.pod:3055
11698 msgid "B<part_num>"
11699 msgstr ""
11700
11701 # type: textblock
11702 #: ../src/guestfs-actions.pod:4586 ../fish/guestfish-actions.pod:3057
11703 msgid "Partition number, counting from 1."
11704 msgstr ""
11705
11706 # type: =item
11707 #: ../src/guestfs-actions.pod:4588 ../fish/guestfish-actions.pod:3059
11708 msgid "B<part_start>"
11709 msgstr ""
11710
11711 # type: textblock
11712 #: ../src/guestfs-actions.pod:4590
11713 msgid ""
11714 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
11715 "the device's sector size, see C<guestfs_blockdev_getss>."
11716 msgstr ""
11717
11718 # type: =item
11719 #: ../src/guestfs-actions.pod:4593 ../fish/guestfish-actions.pod:3064
11720 msgid "B<part_end>"
11721 msgstr ""
11722
11723 # type: textblock
11724 #: ../src/guestfs-actions.pod:4595 ../fish/guestfish-actions.pod:3066
11725 msgid "End of the partition in bytes."
11726 msgstr ""
11727
11728 # type: =item
11729 #: ../src/guestfs-actions.pod:4597 ../fish/guestfish-actions.pod:3068
11730 msgid "B<part_size>"
11731 msgstr ""
11732
11733 # type: textblock
11734 #: ../src/guestfs-actions.pod:4599 ../fish/guestfish-actions.pod:3070
11735 msgid "Size of the partition in bytes."
11736 msgstr ""
11737
11738 # type: textblock
11739 #: ../src/guestfs-actions.pod:4603
11740 msgid ""
11741 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
11742 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
11743 "use>."
11744 msgstr ""
11745
11746 # type: =head2
11747 #: ../src/guestfs-actions.pod:4609
11748 msgid "guestfs_part_set_bootable"
11749 msgstr ""
11750
11751 # type: verbatim
11752 #: ../src/guestfs-actions.pod:4611
11753 #, no-wrap
11754 msgid ""
11755 " int\n"
11756 " guestfs_part_set_bootable (guestfs_h *g,\n"
11757 "                            const char *device,\n"
11758 "                            int partnum,\n"
11759 "                            int bootable);\n"
11760 "\n"
11761 msgstr ""
11762
11763 # type: textblock
11764 #: ../src/guestfs-actions.pod:4617 ../fish/guestfish-actions.pod:3078
11765 msgid ""
11766 "This sets the bootable flag on partition numbered C<partnum> on device "
11767 "C<device>.  Note that partitions are numbered from 1."
11768 msgstr ""
11769
11770 # type: textblock
11771 #: ../src/guestfs-actions.pod:4620 ../fish/guestfish-actions.pod:3081
11772 msgid ""
11773 "The bootable flag is used by some operating systems (notably Windows) to "
11774 "determine which partition to boot from.  It is by no means universally "
11775 "recognized."
11776 msgstr ""
11777
11778 # type: =head2
11779 #: ../src/guestfs-actions.pod:4628
11780 msgid "guestfs_part_set_mbr_id"
11781 msgstr ""
11782
11783 # type: verbatim
11784 #: ../src/guestfs-actions.pod:4630
11785 #, no-wrap
11786 msgid ""
11787 " int\n"
11788 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
11789 "                          const char *device,\n"
11790 "                          int partnum,\n"
11791 "                          int idbyte);\n"
11792 "\n"
11793 msgstr ""
11794
11795 # type: textblock
11796 #: ../src/guestfs-actions.pod:4636 ../fish/guestfish-actions.pod:3089
11797 msgid ""
11798 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
11799 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
11800 "documentation are in fact hexadecimal numbers, but usually documented "
11801 "without any leading \"0x\" which might be confusing."
11802 msgstr ""
11803
11804 # type: =head2
11805 #: ../src/guestfs-actions.pod:4650
11806 msgid "guestfs_part_set_name"
11807 msgstr ""
11808
11809 # type: verbatim
11810 #: ../src/guestfs-actions.pod:4652
11811 #, no-wrap
11812 msgid ""
11813 " int\n"
11814 " guestfs_part_set_name (guestfs_h *g,\n"
11815 "                        const char *device,\n"
11816 "                        int partnum,\n"
11817 "                        const char *name);\n"
11818 "\n"
11819 msgstr ""
11820
11821 # type: textblock
11822 #: ../src/guestfs-actions.pod:4658 ../fish/guestfish-actions.pod:3103
11823 msgid ""
11824 "This sets the partition name on partition numbered C<partnum> on device "
11825 "C<device>.  Note that partitions are numbered from 1."
11826 msgstr ""
11827
11828 # type: textblock
11829 #: ../src/guestfs-actions.pod:4661 ../fish/guestfish-actions.pod:3106
11830 msgid ""
11831 "The partition name can only be set on certain types of partition table.  "
11832 "This works on C<gpt> but not on C<mbr> partitions."
11833 msgstr ""
11834
11835 # type: =head2
11836 #: ../src/guestfs-actions.pod:4668
11837 msgid "guestfs_part_to_dev"
11838 msgstr ""
11839
11840 # type: verbatim
11841 #: ../src/guestfs-actions.pod:4670
11842 #, no-wrap
11843 msgid ""
11844 " char *\n"
11845 " guestfs_part_to_dev (guestfs_h *g,\n"
11846 "                      const char *partition);\n"
11847 "\n"
11848 msgstr ""
11849
11850 # type: textblock
11851 #: ../src/guestfs-actions.pod:4674 ../fish/guestfish-actions.pod:3113
11852 msgid ""
11853 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
11854 "partition number, returning the device name (eg. \"/dev/sdb\")."
11855 msgstr ""
11856
11857 # type: textblock
11858 #: ../src/guestfs-actions.pod:4678
11859 msgid ""
11860 "The named partition must exist, for example as a string returned from "
11861 "C<guestfs_list_partitions>."
11862 msgstr ""
11863
11864 # type: =head2
11865 #: ../src/guestfs-actions.pod:4686
11866 msgid "guestfs_ping_daemon"
11867 msgstr ""
11868
11869 # type: verbatim
11870 #: ../src/guestfs-actions.pod:4688
11871 #, no-wrap
11872 msgid ""
11873 " int\n"
11874 " guestfs_ping_daemon (guestfs_h *g);\n"
11875 "\n"
11876 msgstr ""
11877
11878 # type: textblock
11879 #: ../src/guestfs-actions.pod:4691 ../fish/guestfish-actions.pod:3124
11880 msgid ""
11881 "This is a test probe into the guestfs daemon running inside the qemu "
11882 "subprocess.  Calling this function checks that the daemon responds to the "
11883 "ping message, without affecting the daemon or attached block device(s) in "
11884 "any other way."
11885 msgstr ""
11886
11887 # type: =head2
11888 #: ../src/guestfs-actions.pod:4700
11889 msgid "guestfs_pread"
11890 msgstr ""
11891
11892 # type: verbatim
11893 #: ../src/guestfs-actions.pod:4702
11894 #, no-wrap
11895 msgid ""
11896 " char *\n"
11897 " guestfs_pread (guestfs_h *g,\n"
11898 "                const char *path,\n"
11899 "                int count,\n"
11900 "                int64_t offset,\n"
11901 "                size_t *size_r);\n"
11902 "\n"
11903 msgstr ""
11904
11905 # type: textblock
11906 #: ../src/guestfs-actions.pod:4709 ../fish/guestfish-actions.pod:3133
11907 msgid ""
11908 "This command lets you read part of a file.  It reads C<count> bytes of the "
11909 "file, starting at C<offset>, from file C<path>."
11910 msgstr ""
11911
11912 # type: textblock
11913 #: ../src/guestfs-actions.pod:4712 ../src/guestfs-actions.pod:4738 ../fish/guestfish-actions.pod:3136 ../fish/guestfish-actions.pod:3151
11914 msgid ""
11915 "This may read fewer bytes than requested.  For further details see the "
11916 "L<pread(2)> system call."
11917 msgstr ""
11918
11919 # type: textblock
11920 #: ../src/guestfs-actions.pod:4715
11921 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
11922 msgstr ""
11923
11924 # type: =head2
11925 #: ../src/guestfs-actions.pod:4726
11926 msgid "guestfs_pread_device"
11927 msgstr ""
11928
11929 # type: verbatim
11930 #: ../src/guestfs-actions.pod:4728
11931 #, no-wrap
11932 msgid ""
11933 " char *\n"
11934 " guestfs_pread_device (guestfs_h *g,\n"
11935 "                       const char *device,\n"
11936 "                       int count,\n"
11937 "                       int64_t offset,\n"
11938 "                       size_t *size_r);\n"
11939 "\n"
11940 msgstr ""
11941
11942 # type: textblock
11943 #: ../src/guestfs-actions.pod:4735 ../fish/guestfish-actions.pod:3148
11944 msgid ""
11945 "This command lets you read part of a file.  It reads C<count> bytes of "
11946 "C<device>, starting at C<offset>."
11947 msgstr ""
11948
11949 # type: textblock
11950 #: ../src/guestfs-actions.pod:4741
11951 msgid "See also C<guestfs_pread>."
11952 msgstr ""
11953
11954 # type: textblock
11955 #: ../src/guestfs-actions.pod:4750
11956 msgid "(Added in 1.5.21)"
11957 msgstr ""
11958
11959 # type: =head2
11960 #: ../src/guestfs-actions.pod:4752
11961 msgid "guestfs_pvcreate"
11962 msgstr ""
11963
11964 # type: verbatim
11965 #: ../src/guestfs-actions.pod:4754
11966 #, no-wrap
11967 msgid ""
11968 " int\n"
11969 " guestfs_pvcreate (guestfs_h *g,\n"
11970 "                   const char *device);\n"
11971 "\n"
11972 msgstr ""
11973
11974 # type: textblock
11975 #: ../src/guestfs-actions.pod:4758 ../fish/guestfish-actions.pod:3163
11976 msgid ""
11977 "This creates an LVM physical volume on the named C<device>, where C<device> "
11978 "should usually be a partition name such as C</dev/sda1>."
11979 msgstr ""
11980
11981 # type: =head2
11982 #: ../src/guestfs-actions.pod:4766
11983 msgid "guestfs_pvremove"
11984 msgstr ""
11985
11986 # type: verbatim
11987 #: ../src/guestfs-actions.pod:4768
11988 #, no-wrap
11989 msgid ""
11990 " int\n"
11991 " guestfs_pvremove (guestfs_h *g,\n"
11992 "                   const char *device);\n"
11993 "\n"
11994 msgstr ""
11995
11996 # type: textblock
11997 #: ../src/guestfs-actions.pod:4772 ../fish/guestfish-actions.pod:3171
11998 msgid ""
11999 "This wipes a physical volume C<device> so that LVM will no longer recognise "
12000 "it."
12001 msgstr ""
12002
12003 # type: textblock
12004 #: ../src/guestfs-actions.pod:4775 ../fish/guestfish-actions.pod:3174
12005 msgid ""
12006 "The implementation uses the C<pvremove> command which refuses to wipe "
12007 "physical volumes that contain any volume groups, so you have to remove those "
12008 "first."
12009 msgstr ""
12010
12011 # type: =head2
12012 #: ../src/guestfs-actions.pod:4783
12013 msgid "guestfs_pvresize"
12014 msgstr ""
12015
12016 # type: verbatim
12017 #: ../src/guestfs-actions.pod:4785
12018 #, no-wrap
12019 msgid ""
12020 " int\n"
12021 " guestfs_pvresize (guestfs_h *g,\n"
12022 "                   const char *device);\n"
12023 "\n"
12024 msgstr ""
12025
12026 # type: textblock
12027 #: ../src/guestfs-actions.pod:4789 ../fish/guestfish-actions.pod:3182
12028 msgid ""
12029 "This resizes (expands or shrinks) an existing LVM physical volume to match "
12030 "the new size of the underlying device."
12031 msgstr ""
12032
12033 # type: =head2
12034 #: ../src/guestfs-actions.pod:4796
12035 msgid "guestfs_pvresize_size"
12036 msgstr ""
12037
12038 # type: verbatim
12039 #: ../src/guestfs-actions.pod:4798
12040 #, no-wrap
12041 msgid ""
12042 " int\n"
12043 " guestfs_pvresize_size (guestfs_h *g,\n"
12044 "                        const char *device,\n"
12045 "                        int64_t size);\n"
12046 "\n"
12047 msgstr ""
12048
12049 # type: textblock
12050 #: ../src/guestfs-actions.pod:4803
12051 msgid ""
12052 "This command is the same as C<guestfs_pvresize> except that it allows you to "
12053 "specify the new size (in bytes) explicitly."
12054 msgstr ""
12055
12056 # type: =head2
12057 #: ../src/guestfs-actions.pod:4810
12058 msgid "guestfs_pvs"
12059 msgstr ""
12060
12061 # type: verbatim
12062 #: ../src/guestfs-actions.pod:4812
12063 #, no-wrap
12064 msgid ""
12065 " char **\n"
12066 " guestfs_pvs (guestfs_h *g);\n"
12067 "\n"
12068 msgstr ""
12069
12070 # type: textblock
12071 #: ../src/guestfs-actions.pod:4815 ../fish/guestfish-actions.pod:3196
12072 msgid ""
12073 "List all the physical volumes detected.  This is the equivalent of the "
12074 "L<pvs(8)> command."
12075 msgstr ""
12076
12077 # type: textblock
12078 #: ../src/guestfs-actions.pod:4818 ../fish/guestfish-actions.pod:3199
12079 msgid ""
12080 "This returns a list of just the device names that contain PVs "
12081 "(eg. C</dev/sda2>)."
12082 msgstr ""
12083
12084 # type: textblock
12085 #: ../src/guestfs-actions.pod:4821
12086 msgid "See also C<guestfs_pvs_full>."
12087 msgstr ""
12088
12089 # type: =head2
12090 #: ../src/guestfs-actions.pod:4829
12091 msgid "guestfs_pvs_full"
12092 msgstr ""
12093
12094 # type: verbatim
12095 #: ../src/guestfs-actions.pod:4831
12096 #, no-wrap
12097 msgid ""
12098 " struct guestfs_lvm_pv_list *\n"
12099 " guestfs_pvs_full (guestfs_h *g);\n"
12100 "\n"
12101 msgstr ""
12102
12103 # type: textblock
12104 #: ../src/guestfs-actions.pod:4834 ../fish/guestfish-actions.pod:3208
12105 msgid ""
12106 "List all the physical volumes detected.  This is the equivalent of the "
12107 "L<pvs(8)> command.  The \"full\" version includes all fields."
12108 msgstr ""
12109
12110 # type: textblock
12111 #: ../src/guestfs-actions.pod:4837
12112 msgid ""
12113 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
12114 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after "
12115 "use>."
12116 msgstr ""
12117
12118 # type: =head2
12119 #: ../src/guestfs-actions.pod:4843
12120 msgid "guestfs_pvuuid"
12121 msgstr ""
12122
12123 # type: verbatim
12124 #: ../src/guestfs-actions.pod:4845
12125 #, no-wrap
12126 msgid ""
12127 " char *\n"
12128 " guestfs_pvuuid (guestfs_h *g,\n"
12129 "                 const char *device);\n"
12130 "\n"
12131 msgstr ""
12132
12133 # type: textblock
12134 #: ../src/guestfs-actions.pod:4849 ../fish/guestfish-actions.pod:3215
12135 msgid "This command returns the UUID of the LVM PV C<device>."
12136 msgstr ""
12137
12138 # type: =head2
12139 #: ../src/guestfs-actions.pod:4856
12140 msgid "guestfs_pwrite"
12141 msgstr ""
12142
12143 # type: verbatim
12144 #: ../src/guestfs-actions.pod:4858
12145 #, no-wrap
12146 msgid ""
12147 " int\n"
12148 " guestfs_pwrite (guestfs_h *g,\n"
12149 "                 const char *path,\n"
12150 "                 const char *content,\n"
12151 "                 size_t content_size,\n"
12152 "                 int64_t offset);\n"
12153 "\n"
12154 msgstr ""
12155
12156 # type: textblock
12157 #: ../src/guestfs-actions.pod:4865 ../fish/guestfish-actions.pod:3221
12158 msgid ""
12159 "This command writes to part of a file.  It writes the data buffer C<content> "
12160 "to the file C<path> starting at offset C<offset>."
12161 msgstr ""
12162
12163 # type: textblock
12164 #: ../src/guestfs-actions.pod:4868 ../fish/guestfish-actions.pod:3224
12165 msgid ""
12166 "This command implements the L<pwrite(2)> system call, and like that system "
12167 "call it may not write the full data requested.  The return value is the "
12168 "number of bytes that were actually written to the file.  This could even be "
12169 "0, although short writes are unlikely for regular files in ordinary "
12170 "circumstances."
12171 msgstr ""
12172
12173 # type: textblock
12174 #: ../src/guestfs-actions.pod:4874
12175 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
12176 msgstr ""
12177
12178 # type: =head2
12179 #: ../src/guestfs-actions.pod:4883
12180 msgid "guestfs_pwrite_device"
12181 msgstr ""
12182
12183 # type: verbatim
12184 #: ../src/guestfs-actions.pod:4885
12185 #, no-wrap
12186 msgid ""
12187 " int\n"
12188 " guestfs_pwrite_device (guestfs_h *g,\n"
12189 "                        const char *device,\n"
12190 "                        const char *content,\n"
12191 "                        size_t content_size,\n"
12192 "                        int64_t offset);\n"
12193 "\n"
12194 msgstr ""
12195
12196 # type: textblock
12197 #: ../src/guestfs-actions.pod:4892 ../fish/guestfish-actions.pod:3239
12198 msgid ""
12199 "This command writes to part of a device.  It writes the data buffer "
12200 "C<content> to C<device> starting at offset C<offset>."
12201 msgstr ""
12202
12203 # type: textblock
12204 #: ../src/guestfs-actions.pod:4895 ../fish/guestfish-actions.pod:3242
12205 msgid ""
12206 "This command implements the L<pwrite(2)> system call, and like that system "
12207 "call it may not write the full data requested (although short writes to disk "
12208 "devices and partitions are probably impossible with standard Linux kernels)."
12209 msgstr ""
12210
12211 # type: textblock
12212 #: ../src/guestfs-actions.pod:4900
12213 msgid "See also C<guestfs_pwrite>."
12214 msgstr ""
12215
12216 # type: textblock
12217 #: ../src/guestfs-actions.pod:4907
12218 msgid "(Added in 1.5.20)"
12219 msgstr ""
12220
12221 # type: =head2
12222 #: ../src/guestfs-actions.pod:4909
12223 msgid "guestfs_read_file"
12224 msgstr ""
12225
12226 # type: verbatim
12227 #: ../src/guestfs-actions.pod:4911
12228 #, no-wrap
12229 msgid ""
12230 " char *\n"
12231 " guestfs_read_file (guestfs_h *g,\n"
12232 "                    const char *path,\n"
12233 "                    size_t *size_r);\n"
12234 "\n"
12235 msgstr ""
12236
12237 # type: textblock
12238 #: ../src/guestfs-actions.pod:4916 ../fish/guestfish-actions.pod:3256
12239 msgid "This calls returns the contents of the file C<path> as a buffer."
12240 msgstr ""
12241
12242 # type: textblock
12243 #: ../src/guestfs-actions.pod:4919
12244 msgid ""
12245 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
12246 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
12247 "function is limited in the total size of file that can be handled."
12248 msgstr ""
12249
12250 # type: textblock
12251 #: ../src/guestfs-actions.pod:4931
12252 msgid "(Added in 1.0.63)"
12253 msgstr ""
12254
12255 # type: =head2
12256 #: ../src/guestfs-actions.pod:4933
12257 msgid "guestfs_read_lines"
12258 msgstr ""
12259
12260 # type: verbatim
12261 #: ../src/guestfs-actions.pod:4935
12262 #, no-wrap
12263 msgid ""
12264 " char **\n"
12265 " guestfs_read_lines (guestfs_h *g,\n"
12266 "                     const char *path);\n"
12267 "\n"
12268 msgstr ""
12269
12270 # type: textblock
12271 #: ../src/guestfs-actions.pod:4941 ../fish/guestfish-actions.pod:3273
12272 msgid ""
12273 "The file contents are returned as a list of lines.  Trailing C<LF> and "
12274 "C<CRLF> character sequences are I<not> returned."
12275 msgstr ""
12276
12277 # type: textblock
12278 #: ../src/guestfs-actions.pod:4944
12279 msgid ""
12280 "Note that this function cannot correctly handle binary files (specifically, "
12281 "files containing C<\\0> character which is treated as end of line).  For "
12282 "those you need to use the C<guestfs_read_file> function which has a more "
12283 "complex interface."
12284 msgstr ""
12285
12286 # type: =head2
12287 #: ../src/guestfs-actions.pod:4955
12288 msgid "guestfs_readdir"
12289 msgstr ""
12290
12291 # type: verbatim
12292 #: ../src/guestfs-actions.pod:4957
12293 #, no-wrap
12294 msgid ""
12295 " struct guestfs_dirent_list *\n"
12296 " guestfs_readdir (guestfs_h *g,\n"
12297 "                  const char *dir);\n"
12298 "\n"
12299 msgstr ""
12300
12301 # type: textblock
12302 #: ../src/guestfs-actions.pod:4961 ../fish/guestfish-actions.pod:3285
12303 msgid "This returns the list of directory entries in directory C<dir>."
12304 msgstr ""
12305
12306 # type: textblock
12307 #: ../src/guestfs-actions.pod:4963 ../fish/guestfish-actions.pod:3287
12308 msgid ""
12309 "All entries in the directory are returned, including C<.> and C<..>.  The "
12310 "entries are I<not> sorted, but returned in the same order as the underlying "
12311 "filesystem."
12312 msgstr ""
12313
12314 # type: textblock
12315 #: ../src/guestfs-actions.pod:4967 ../fish/guestfish-actions.pod:3291
12316 msgid ""
12317 "Also this call returns basic file type information about each file.  The "
12318 "C<ftyp> field will contain one of the following characters:"
12319 msgstr ""
12320
12321 # type: =item
12322 #: ../src/guestfs-actions.pod:4972 ../fish/guestfish-actions.pod:3296
12323 msgid "'b'"
12324 msgstr ""
12325
12326 # type: textblock
12327 #: ../src/guestfs-actions.pod:4974 ../fish/guestfish-actions.pod:3298
12328 msgid "Block special"
12329 msgstr ""
12330
12331 # type: =item
12332 #: ../src/guestfs-actions.pod:4976 ../fish/guestfish-actions.pod:3300
12333 msgid "'c'"
12334 msgstr ""
12335
12336 # type: textblock
12337 #: ../src/guestfs-actions.pod:4978 ../fish/guestfish-actions.pod:3302
12338 msgid "Char special"
12339 msgstr ""
12340
12341 # type: =item
12342 #: ../src/guestfs-actions.pod:4980 ../fish/guestfish-actions.pod:3304
12343 msgid "'d'"
12344 msgstr ""
12345
12346 # type: textblock
12347 #: ../src/guestfs-actions.pod:4982 ../fish/guestfish-actions.pod:3306
12348 msgid "Directory"
12349 msgstr ""
12350
12351 # type: =item
12352 #: ../src/guestfs-actions.pod:4984 ../fish/guestfish-actions.pod:3308
12353 msgid "'f'"
12354 msgstr ""
12355
12356 # type: textblock
12357 #: ../src/guestfs-actions.pod:4986 ../fish/guestfish-actions.pod:3310
12358 msgid "FIFO (named pipe)"
12359 msgstr ""
12360
12361 # type: =item
12362 #: ../src/guestfs-actions.pod:4988 ../fish/guestfish-actions.pod:3312
12363 msgid "'l'"
12364 msgstr ""
12365
12366 # type: textblock
12367 #: ../src/guestfs-actions.pod:4990 ../fish/guestfish-actions.pod:3314
12368 msgid "Symbolic link"
12369 msgstr ""
12370
12371 # type: =item
12372 #: ../src/guestfs-actions.pod:4992 ../fish/guestfish-actions.pod:3316
12373 msgid "'r'"
12374 msgstr ""
12375
12376 # type: textblock
12377 #: ../src/guestfs-actions.pod:4994 ../fish/guestfish-actions.pod:3318
12378 msgid "Regular file"
12379 msgstr ""
12380
12381 # type: =item
12382 #: ../src/guestfs-actions.pod:4996 ../fish/guestfish-actions.pod:3320
12383 msgid "'s'"
12384 msgstr ""
12385
12386 # type: textblock
12387 #: ../src/guestfs-actions.pod:4998 ../fish/guestfish-actions.pod:3322
12388 msgid "Socket"
12389 msgstr ""
12390
12391 # type: =item
12392 #: ../src/guestfs-actions.pod:5000 ../fish/guestfish-actions.pod:3324
12393 msgid "'u'"
12394 msgstr ""
12395
12396 # type: textblock
12397 #: ../src/guestfs-actions.pod:5002 ../fish/guestfish-actions.pod:3326
12398 msgid "Unknown file type"
12399 msgstr ""
12400
12401 # type: =item
12402 #: ../src/guestfs-actions.pod:5004 ../fish/guestfish-actions.pod:3328
12403 msgid "'?'"
12404 msgstr ""
12405
12406 # type: textblock
12407 #: ../src/guestfs-actions.pod:5006 ../fish/guestfish-actions.pod:3330
12408 msgid "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
12409 msgstr ""
12410
12411 # type: textblock
12412 #: ../src/guestfs-actions.pod:5011
12413 msgid ""
12414 "This function is primarily intended for use by programs.  To get a simple "
12415 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
12416 "consumption, use C<guestfs_ll>."
12417 msgstr ""
12418
12419 # type: textblock
12420 #: ../src/guestfs-actions.pod:5015
12421 msgid ""
12422 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
12423 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after "
12424 "use>."
12425 msgstr ""
12426
12427 # type: =head2
12428 #: ../src/guestfs-actions.pod:5021
12429 msgid "guestfs_readlink"
12430 msgstr ""
12431
12432 # type: verbatim
12433 #: ../src/guestfs-actions.pod:5023
12434 #, no-wrap
12435 msgid ""
12436 " char *\n"
12437 " guestfs_readlink (guestfs_h *g,\n"
12438 "                   const char *path);\n"
12439 "\n"
12440 msgstr ""
12441
12442 # type: textblock
12443 #: ../src/guestfs-actions.pod:5027 ../fish/guestfish-actions.pod:3343
12444 msgid "This command reads the target of a symbolic link."
12445 msgstr ""
12446
12447 # type: =head2
12448 #: ../src/guestfs-actions.pod:5034
12449 msgid "guestfs_readlinklist"
12450 msgstr ""
12451
12452 # type: verbatim
12453 #: ../src/guestfs-actions.pod:5036
12454 #, no-wrap
12455 msgid ""
12456 " char **\n"
12457 " guestfs_readlinklist (guestfs_h *g,\n"
12458 "                       const char *path,\n"
12459 "                       char *const *names);\n"
12460 "\n"
12461 msgstr ""
12462
12463 # type: textblock
12464 #: ../src/guestfs-actions.pod:5041 ../fish/guestfish-actions.pod:3349
12465 msgid ""
12466 "This call allows you to do a C<readlink> operation on multiple files, where "
12467 "all files are in the directory C<path>.  C<names> is the list of files from "
12468 "this directory."
12469 msgstr ""
12470
12471 # type: textblock
12472 #: ../src/guestfs-actions.pod:5045 ../fish/guestfish-actions.pod:3353
12473 msgid ""
12474 "On return you get a list of strings, with a one-to-one correspondence to the "
12475 "C<names> list.  Each string is the value of the symbolic link."
12476 msgstr ""
12477
12478 # type: textblock
12479 #: ../src/guestfs-actions.pod:5049 ../fish/guestfish-actions.pod:3357
12480 msgid ""
12481 "If the C<readlink(2)> operation fails on any name, then the corresponding "
12482 "result string is the empty string C<\"\">.  However the whole operation is "
12483 "completed even if there were C<readlink(2)> errors, and so you can call this "
12484 "function with names where you don't know if they are symbolic links already "
12485 "(albeit slightly less efficient)."
12486 msgstr ""
12487
12488 # type: textblock
12489 #: ../src/guestfs-actions.pod:5056 ../fish/guestfish-actions.pod:3364
12490 msgid ""
12491 "This call is intended for programs that want to efficiently list a directory "
12492 "contents without making many round-trips.  Very long directory listings "
12493 "might cause the protocol message size to be exceeded, causing this call to "
12494 "fail.  The caller must split up such requests into smaller groups of names."
12495 msgstr ""
12496
12497 # type: =head2
12498 #: ../src/guestfs-actions.pod:5069
12499 msgid "guestfs_realpath"
12500 msgstr ""
12501
12502 # type: verbatim
12503 #: ../src/guestfs-actions.pod:5071
12504 #, no-wrap
12505 msgid ""
12506 " char *\n"
12507 " guestfs_realpath (guestfs_h *g,\n"
12508 "                   const char *path);\n"
12509 "\n"
12510 msgstr ""
12511
12512 # type: textblock
12513 #: ../src/guestfs-actions.pod:5075 ../fish/guestfish-actions.pod:3375
12514 msgid ""
12515 "Return the canonicalized absolute pathname of C<path>.  The returned path "
12516 "has no C<.>, C<..> or symbolic link path elements."
12517 msgstr ""
12518
12519 # type: =head2
12520 #: ../src/guestfs-actions.pod:5083
12521 msgid "guestfs_removexattr"
12522 msgstr ""
12523
12524 # type: verbatim
12525 #: ../src/guestfs-actions.pod:5085
12526 #, no-wrap
12527 msgid ""
12528 " int\n"
12529 " guestfs_removexattr (guestfs_h *g,\n"
12530 "                      const char *xattr,\n"
12531 "                      const char *path);\n"
12532 "\n"
12533 msgstr ""
12534
12535 # type: textblock
12536 #: ../src/guestfs-actions.pod:5090 ../fish/guestfish-actions.pod:3382
12537 msgid "This call removes the extended attribute named C<xattr> of the file C<path>."
12538 msgstr ""
12539
12540 # type: textblock
12541 #: ../src/guestfs-actions.pod:5093
12542 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
12543 msgstr ""
12544
12545 # type: =head2
12546 #: ../src/guestfs-actions.pod:5099
12547 msgid "guestfs_resize2fs"
12548 msgstr ""
12549
12550 # type: verbatim
12551 #: ../src/guestfs-actions.pod:5101
12552 #, no-wrap
12553 msgid ""
12554 " int\n"
12555 " guestfs_resize2fs (guestfs_h *g,\n"
12556 "                    const char *device);\n"
12557 "\n"
12558 msgstr ""
12559
12560 # type: textblock
12561 #: ../src/guestfs-actions.pod:5105 ../fish/guestfish-actions.pod:3391
12562 msgid ""
12563 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
12564 "underlying device."
12565 msgstr ""
12566
12567 # type: textblock
12568 #: ../src/guestfs-actions.pod:5108
12569 msgid ""
12570 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
12571 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
12572 "sometimes gives an error about this and sometimes not.  In any case, it is "
12573 "always safe to call C<guestfs_e2fsck_f> before calling this function."
12574 msgstr ""
12575
12576 # type: =head2
12577 #: ../src/guestfs-actions.pod:5118
12578 msgid "guestfs_resize2fs_size"
12579 msgstr ""
12580
12581 # type: verbatim
12582 #: ../src/guestfs-actions.pod:5120
12583 #, no-wrap
12584 msgid ""
12585 " int\n"
12586 " guestfs_resize2fs_size (guestfs_h *g,\n"
12587 "                         const char *device,\n"
12588 "                         int64_t size);\n"
12589 "\n"
12590 msgstr ""
12591
12592 # type: textblock
12593 #: ../src/guestfs-actions.pod:5125
12594 msgid ""
12595 "This command is the same as C<guestfs_resize2fs> except that it allows you "
12596 "to specify the new size (in bytes) explicitly."
12597 msgstr ""
12598
12599 # type: =head2
12600 #: ../src/guestfs-actions.pod:5132
12601 msgid "guestfs_rm"
12602 msgstr ""
12603
12604 # type: verbatim
12605 #: ../src/guestfs-actions.pod:5134
12606 #, no-wrap
12607 msgid ""
12608 " int\n"
12609 " guestfs_rm (guestfs_h *g,\n"
12610 "             const char *path);\n"
12611 "\n"
12612 msgstr ""
12613
12614 # type: textblock
12615 #: ../src/guestfs-actions.pod:5138 ../fish/guestfish-actions.pod:3411
12616 msgid "Remove the single file C<path>."
12617 msgstr ""
12618
12619 # type: =head2
12620 #: ../src/guestfs-actions.pod:5144
12621 msgid "guestfs_rm_rf"
12622 msgstr ""
12623
12624 # type: verbatim
12625 #: ../src/guestfs-actions.pod:5146
12626 #, no-wrap
12627 msgid ""
12628 " int\n"
12629 " guestfs_rm_rf (guestfs_h *g,\n"
12630 "                const char *path);\n"
12631 "\n"
12632 msgstr ""
12633
12634 # type: textblock
12635 #: ../src/guestfs-actions.pod:5150 ../fish/guestfish-actions.pod:3417
12636 msgid ""
12637 "Remove the file or directory C<path>, recursively removing the contents if "
12638 "its a directory.  This is like the C<rm -rf> shell command."
12639 msgstr ""
12640
12641 # type: =head2
12642 #: ../src/guestfs-actions.pod:5158
12643 msgid "guestfs_rmdir"
12644 msgstr ""
12645
12646 # type: verbatim
12647 #: ../src/guestfs-actions.pod:5160
12648 #, no-wrap
12649 msgid ""
12650 " int\n"
12651 " guestfs_rmdir (guestfs_h *g,\n"
12652 "                const char *path);\n"
12653 "\n"
12654 msgstr ""
12655
12656 # type: textblock
12657 #: ../src/guestfs-actions.pod:5164 ../fish/guestfish-actions.pod:3425
12658 msgid "Remove the single directory C<path>."
12659 msgstr ""
12660
12661 # type: =head2
12662 #: ../src/guestfs-actions.pod:5170
12663 msgid "guestfs_rmmountpoint"
12664 msgstr ""
12665
12666 # type: verbatim
12667 #: ../src/guestfs-actions.pod:5172
12668 #, no-wrap
12669 msgid ""
12670 " int\n"
12671 " guestfs_rmmountpoint (guestfs_h *g,\n"
12672 "                       const char *exemptpath);\n"
12673 "\n"
12674 msgstr ""
12675
12676 # type: textblock
12677 #: ../src/guestfs-actions.pod:5176
12678 msgid ""
12679 "This calls removes a mountpoint that was previously created with "
12680 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
12681 msgstr ""
12682
12683 # type: =head2
12684 #: ../src/guestfs-actions.pod:5184
12685 msgid "guestfs_scrub_device"
12686 msgstr ""
12687
12688 # type: verbatim
12689 #: ../src/guestfs-actions.pod:5186
12690 #, no-wrap
12691 msgid ""
12692 " int\n"
12693 " guestfs_scrub_device (guestfs_h *g,\n"
12694 "                       const char *device);\n"
12695 "\n"
12696 msgstr ""
12697
12698 # type: textblock
12699 #: ../src/guestfs-actions.pod:5190 ../fish/guestfish-actions.pod:3439
12700 msgid ""
12701 "This command writes patterns over C<device> to make data retrieval more "
12702 "difficult."
12703 msgstr ""
12704
12705 # type: textblock
12706 #: ../src/guestfs-actions.pod:5193 ../src/guestfs-actions.pod:5214 ../src/guestfs-actions.pod:5233 ../fish/guestfish-actions.pod:3442 ../fish/guestfish-actions.pod:3457 ../fish/guestfish-actions.pod:3470
12707 msgid ""
12708 "It is an interface to the L<scrub(1)> program.  See that manual page for "
12709 "more details."
12710 msgstr ""
12711
12712 # type: textblock
12713 #: ../src/guestfs-actions.pod:5201 ../src/guestfs-actions.pod:5219 ../src/guestfs-actions.pod:5238
12714 msgid "(Added in 1.0.52)"
12715 msgstr ""
12716
12717 # type: =head2
12718 #: ../src/guestfs-actions.pod:5203
12719 msgid "guestfs_scrub_file"
12720 msgstr ""
12721
12722 # type: verbatim
12723 #: ../src/guestfs-actions.pod:5205
12724 #, no-wrap
12725 msgid ""
12726 " int\n"
12727 " guestfs_scrub_file (guestfs_h *g,\n"
12728 "                     const char *file);\n"
12729 "\n"
12730 msgstr ""
12731
12732 # type: textblock
12733 #: ../src/guestfs-actions.pod:5209 ../fish/guestfish-actions.pod:3452
12734 msgid ""
12735 "This command writes patterns over a file to make data retrieval more "
12736 "difficult."
12737 msgstr ""
12738
12739 # type: textblock
12740 #: ../src/guestfs-actions.pod:5212 ../fish/guestfish-actions.pod:3455
12741 msgid "The file is I<removed> after scrubbing."
12742 msgstr ""
12743
12744 # type: =head2
12745 #: ../src/guestfs-actions.pod:5221
12746 msgid "guestfs_scrub_freespace"
12747 msgstr ""
12748
12749 # type: verbatim
12750 #: ../src/guestfs-actions.pod:5223
12751 #, no-wrap
12752 msgid ""
12753 " int\n"
12754 " guestfs_scrub_freespace (guestfs_h *g,\n"
12755 "                          const char *dir);\n"
12756 "\n"
12757 msgstr ""
12758
12759 # type: textblock
12760 #: ../src/guestfs-actions.pod:5227
12761 msgid ""
12762 "This command creates the directory C<dir> and then fills it with files until "
12763 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
12764 "and deletes them.  The intention is to scrub any free space on the partition "
12765 "containing C<dir>."
12766 msgstr ""
12767
12768 # type: =head2
12769 #: ../src/guestfs-actions.pod:5240
12770 msgid "guestfs_set_append"
12771 msgstr ""
12772
12773 # type: verbatim
12774 #: ../src/guestfs-actions.pod:5242
12775 #, no-wrap
12776 msgid ""
12777 " int\n"
12778 " guestfs_set_append (guestfs_h *g,\n"
12779 "                     const char *append);\n"
12780 "\n"
12781 msgstr ""
12782
12783 # type: textblock
12784 #: ../src/guestfs-actions.pod:5246 ../fish/guestfish-actions.pod:3479
12785 msgid ""
12786 "This function is used to add additional options to the guest kernel command "
12787 "line."
12788 msgstr ""
12789
12790 # type: textblock
12791 #: ../src/guestfs-actions.pod:5249 ../fish/guestfish-actions.pod:3482
12792 msgid ""
12793 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
12794 "environment variable."
12795 msgstr ""
12796
12797 # type: textblock
12798 #: ../src/guestfs-actions.pod:5252 ../fish/guestfish-actions.pod:3485
12799 msgid ""
12800 "Setting C<append> to C<NULL> means I<no> additional options are passed "
12801 "(libguestfs always adds a few of its own)."
12802 msgstr ""
12803
12804 # type: =head2
12805 #: ../src/guestfs-actions.pod:5259
12806 msgid "guestfs_set_autosync"
12807 msgstr ""
12808
12809 # type: verbatim
12810 #: ../src/guestfs-actions.pod:5261
12811 #, no-wrap
12812 msgid ""
12813 " int\n"
12814 " guestfs_set_autosync (guestfs_h *g,\n"
12815 "                       int autosync);\n"
12816 "\n"
12817 msgstr ""
12818
12819 # type: textblock
12820 #: ../src/guestfs-actions.pod:5265
12821 msgid ""
12822 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
12823 "effort attempt to run C<guestfs_umount_all> followed by C<guestfs_sync> when "
12824 "the handle is closed (also if the program exits without closing handles)."
12825 msgstr ""
12826
12827 # type: textblock
12828 #: ../src/guestfs-actions.pod:5270 ../fish/guestfish-actions.pod:3499
12829 msgid ""
12830 "This is enabled by default (since libguestfs 1.5.24, previously it was "
12831 "disabled by default)."
12832 msgstr ""
12833
12834 # type: =head2
12835 #: ../src/guestfs-actions.pod:5277
12836 msgid "guestfs_set_direct"
12837 msgstr ""
12838
12839 # type: verbatim
12840 #: ../src/guestfs-actions.pod:5279
12841 #, no-wrap
12842 msgid ""
12843 " int\n"
12844 " guestfs_set_direct (guestfs_h *g,\n"
12845 "                     int direct);\n"
12846 "\n"
12847 msgstr ""
12848
12849 # type: textblock
12850 #: ../src/guestfs-actions.pod:5283 ../fish/guestfish-actions.pod:3508
12851 msgid ""
12852 "If the direct appliance mode flag is enabled, then stdin and stdout are "
12853 "passed directly through to the appliance once it is launched."
12854 msgstr ""
12855
12856 # type: textblock
12857 #: ../src/guestfs-actions.pod:5287
12858 msgid ""
12859 "One consequence of this is that log messages aren't caught by the library "
12860 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
12861 "stdout."
12862 msgstr ""
12863
12864 # type: textblock
12865 #: ../src/guestfs-actions.pod:5291 ../fish/guestfish-actions.pod:3516
12866 msgid "You probably don't want to use this unless you know what you are doing."
12867 msgstr ""
12868
12869 # type: textblock
12870 #: ../src/guestfs-actions.pod:5294 ../fish/guestfish-actions.pod:3519
12871 msgid "The default is disabled."
12872 msgstr ""
12873
12874 # type: =head2
12875 #: ../src/guestfs-actions.pod:5300
12876 msgid "guestfs_set_e2label"
12877 msgstr ""
12878
12879 # type: verbatim
12880 #: ../src/guestfs-actions.pod:5302
12881 #, no-wrap
12882 msgid ""
12883 " int\n"
12884 " guestfs_set_e2label (guestfs_h *g,\n"
12885 "                      const char *device,\n"
12886 "                      const char *label);\n"
12887 "\n"
12888 msgstr ""
12889
12890 # type: textblock
12891 #: ../src/guestfs-actions.pod:5307 ../fish/guestfish-actions.pod:3525
12892 msgid ""
12893 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
12894 "C<label>.  Filesystem labels are limited to 16 characters."
12895 msgstr ""
12896
12897 # type: textblock
12898 #: ../src/guestfs-actions.pod:5311
12899 msgid ""
12900 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
12901 "the existing label on a filesystem."
12902 msgstr ""
12903
12904 # type: =head2
12905 #: ../src/guestfs-actions.pod:5318
12906 msgid "guestfs_set_e2uuid"
12907 msgstr ""
12908
12909 # type: verbatim
12910 #: ../src/guestfs-actions.pod:5320
12911 #, no-wrap
12912 msgid ""
12913 " int\n"
12914 " guestfs_set_e2uuid (guestfs_h *g,\n"
12915 "                     const char *device,\n"
12916 "                     const char *uuid);\n"
12917 "\n"
12918 msgstr ""
12919
12920 # type: textblock
12921 #: ../src/guestfs-actions.pod:5325 ../fish/guestfish-actions.pod:3536
12922 msgid ""
12923 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
12924 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
12925 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
12926 msgstr ""
12927
12928 # type: textblock
12929 #: ../src/guestfs-actions.pod:5330
12930 msgid ""
12931 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
12932 "the existing UUID of a filesystem."
12933 msgstr ""
12934
12935 # type: =head2
12936 #: ../src/guestfs-actions.pod:5337
12937 msgid "guestfs_set_memsize"
12938 msgstr ""
12939
12940 # type: verbatim
12941 #: ../src/guestfs-actions.pod:5339
12942 #, no-wrap
12943 msgid ""
12944 " int\n"
12945 " guestfs_set_memsize (guestfs_h *g,\n"
12946 "                      int memsize);\n"
12947 "\n"
12948 msgstr ""
12949
12950 # type: textblock
12951 #: ../src/guestfs-actions.pod:5343
12952 msgid ""
12953 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
12954 "This only has any effect if called before C<guestfs_launch>."
12955 msgstr ""
12956
12957 # type: textblock
12958 #: ../src/guestfs-actions.pod:5347 ../fish/guestfish-actions.pod:3554
12959 msgid ""
12960 "You can also change this by setting the environment variable "
12961 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
12962 msgstr ""
12963
12964 # type: =head2
12965 #: ../src/guestfs-actions.pod:5358
12966 msgid "guestfs_set_network"
12967 msgstr ""
12968
12969 # type: verbatim
12970 #: ../src/guestfs-actions.pod:5360
12971 #, no-wrap
12972 msgid ""
12973 " int\n"
12974 " guestfs_set_network (guestfs_h *g,\n"
12975 "                      int network);\n"
12976 "\n"
12977 msgstr ""
12978
12979 # type: textblock
12980 #: ../src/guestfs-actions.pod:5364 ../fish/guestfish-actions.pod:3567
12981 msgid ""
12982 "If C<network> is true, then the network is enabled in the libguestfs "
12983 "appliance.  The default is false."
12984 msgstr ""
12985
12986 # type: textblock
12987 #: ../src/guestfs-actions.pod:5367 ../fish/guestfish-actions.pod:3570
12988 msgid ""
12989 "This affects whether commands are able to access the network (see "
12990 "L<guestfs(3)/RUNNING COMMANDS>)."
12991 msgstr ""
12992
12993 # type: textblock
12994 #: ../src/guestfs-actions.pod:5370
12995 msgid ""
12996 "You must call this before calling C<guestfs_launch>, otherwise it has no "
12997 "effect."
12998 msgstr ""
12999
13000 # type: =head2
13001 #: ../src/guestfs-actions.pod:5377
13002 msgid "guestfs_set_path"
13003 msgstr ""
13004
13005 # type: verbatim
13006 #: ../src/guestfs-actions.pod:5379
13007 #, no-wrap
13008 msgid ""
13009 " int\n"
13010 " guestfs_set_path (guestfs_h *g,\n"
13011 "                   const char *searchpath);\n"
13012 "\n"
13013 msgstr ""
13014
13015 # type: textblock
13016 #: ../src/guestfs-actions.pod:5383 ../fish/guestfish-actions.pod:3582
13017 msgid "Set the path that libguestfs searches for kernel and initrd.img."
13018 msgstr ""
13019
13020 # type: textblock
13021 #: ../src/guestfs-actions.pod:5385 ../fish/guestfish-actions.pod:3584
13022 msgid ""
13023 "The default is C<$libdir/guestfs> unless overridden by setting "
13024 "C<LIBGUESTFS_PATH> environment variable."
13025 msgstr ""
13026
13027 # type: textblock
13028 #: ../src/guestfs-actions.pod:5388 ../fish/guestfish-actions.pod:3587
13029 msgid "Setting C<path> to C<NULL> restores the default path."
13030 msgstr ""
13031
13032 # type: =head2
13033 #: ../src/guestfs-actions.pod:5394
13034 msgid "guestfs_set_qemu"
13035 msgstr ""
13036
13037 # type: verbatim
13038 #: ../src/guestfs-actions.pod:5396
13039 #, no-wrap
13040 msgid ""
13041 " int\n"
13042 " guestfs_set_qemu (guestfs_h *g,\n"
13043 "                   const char *qemu);\n"
13044 "\n"
13045 msgstr ""
13046
13047 # type: textblock
13048 #: ../src/guestfs-actions.pod:5400 ../fish/guestfish-actions.pod:3595
13049 msgid "Set the qemu binary that we will use."
13050 msgstr ""
13051
13052 # type: textblock
13053 #: ../src/guestfs-actions.pod:5402 ../fish/guestfish-actions.pod:3597
13054 msgid "The default is chosen when the library was compiled by the configure script."
13055 msgstr ""
13056
13057 # type: textblock
13058 #: ../src/guestfs-actions.pod:5405 ../fish/guestfish-actions.pod:3600
13059 msgid ""
13060 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
13061 "variable."
13062 msgstr ""
13063
13064 # type: textblock
13065 #: ../src/guestfs-actions.pod:5408 ../fish/guestfish-actions.pod:3603
13066 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
13067 msgstr ""
13068
13069 # type: textblock
13070 #: ../src/guestfs-actions.pod:5410 ../fish/guestfish-actions.pod:3605
13071 msgid ""
13072 "Note that you should call this function as early as possible after creating "
13073 "the handle.  This is because some pre-launch operations depend on testing "
13074 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
13075 "don't retest features, and so you might see inconsistent results.  Using the "
13076 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
13077 "the qemu binary at the same time as the handle is created."
13078 msgstr ""
13079
13080 # type: =head2
13081 #: ../src/guestfs-actions.pod:5422
13082 msgid "guestfs_set_recovery_proc"
13083 msgstr ""
13084
13085 # type: verbatim
13086 #: ../src/guestfs-actions.pod:5424
13087 #, no-wrap
13088 msgid ""
13089 " int\n"
13090 " guestfs_set_recovery_proc (guestfs_h *g,\n"
13091 "                            int recoveryproc);\n"
13092 "\n"
13093 msgstr ""
13094
13095 # type: textblock
13096 #: ../src/guestfs-actions.pod:5428
13097 msgid ""
13098 "If this is called with the parameter C<false> then C<guestfs_launch> does "
13099 "not create a recovery process.  The purpose of the recovery process is to "
13100 "stop runaway qemu processes in the case where the main program aborts "
13101 "abruptly."
13102 msgstr ""
13103
13104 # type: textblock
13105 #: ../src/guestfs-actions.pod:5433
13106 msgid ""
13107 "This only has any effect if called before C<guestfs_launch>, and the default "
13108 "is true."
13109 msgstr ""
13110
13111 # type: textblock
13112 #: ../src/guestfs-actions.pod:5436 ../fish/guestfish-actions.pod:3627
13113 msgid ""
13114 "About the only time when you would want to disable this is if the main "
13115 "process will fork itself into the background (\"daemonize\" itself).  In "
13116 "this case the recovery process thinks that the main program has disappeared "
13117 "and so kills qemu, which is not very helpful."
13118 msgstr ""
13119
13120 # type: =head2
13121 #: ../src/guestfs-actions.pod:5446
13122 msgid "guestfs_set_selinux"
13123 msgstr ""
13124
13125 # type: verbatim
13126 #: ../src/guestfs-actions.pod:5448
13127 #, no-wrap
13128 msgid ""
13129 " int\n"
13130 " guestfs_set_selinux (guestfs_h *g,\n"
13131 "                      int selinux);\n"
13132 "\n"
13133 msgstr ""
13134
13135 # type: textblock
13136 #: ../src/guestfs-actions.pod:5452 ../fish/guestfish-actions.pod:3639
13137 msgid ""
13138 "This sets the selinux flag that is passed to the appliance at boot time.  "
13139 "The default is C<selinux=0> (disabled)."
13140 msgstr ""
13141
13142 # type: textblock
13143 #: ../src/guestfs-actions.pod:5455 ../fish/guestfish-actions.pod:3642
13144 msgid ""
13145 "Note that if SELinux is enabled, it is always in Permissive mode "
13146 "(C<enforcing=0>)."
13147 msgstr ""
13148
13149 # type: =head2
13150 #: ../src/guestfs-actions.pod:5465
13151 msgid "guestfs_set_trace"
13152 msgstr ""
13153
13154 # type: verbatim
13155 #: ../src/guestfs-actions.pod:5467
13156 #, no-wrap
13157 msgid ""
13158 " int\n"
13159 " guestfs_set_trace (guestfs_h *g,\n"
13160 "                    int trace);\n"
13161 "\n"
13162 msgstr ""
13163
13164 # type: textblock
13165 #: ../src/guestfs-actions.pod:5471 ../fish/guestfish-actions.pod:3654
13166 msgid ""
13167 "If the command trace flag is set to 1, then commands are printed on stderr "
13168 "before they are executed in a format which is very similar to the one used "
13169 "by guestfish.  In other words, you can run a program with this enabled, and "
13170 "you will get out a script which you can feed to guestfish to perform the "
13171 "same set of actions."
13172 msgstr ""
13173
13174 # type: textblock
13175 #: ../src/guestfs-actions.pod:5478 ../fish/guestfish-actions.pod:3661
13176 msgid ""
13177 "If you want to trace C API calls into libguestfs (and other libraries) then "
13178 "possibly a better way is to use the external ltrace(1) command."
13179 msgstr ""
13180
13181 # type: textblock
13182 #: ../src/guestfs-actions.pod:5482 ../fish/guestfish-actions.pod:3665
13183 msgid ""
13184 "Command traces are disabled unless the environment variable "
13185 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
13186 msgstr ""
13187
13188 # type: =head2
13189 #: ../src/guestfs-actions.pod:5489
13190 msgid "guestfs_set_verbose"
13191 msgstr ""
13192
13193 # type: verbatim
13194 #: ../src/guestfs-actions.pod:5491
13195 #, no-wrap
13196 msgid ""
13197 " int\n"
13198 " guestfs_set_verbose (guestfs_h *g,\n"
13199 "                      int verbose);\n"
13200 "\n"
13201 msgstr ""
13202
13203 # type: textblock
13204 #: ../src/guestfs-actions.pod:5495 ../fish/guestfish-actions.pod:3674
13205 msgid "If C<verbose> is true, this turns on verbose messages (to C<stderr>)."
13206 msgstr ""
13207
13208 # type: textblock
13209 #: ../src/guestfs-actions.pod:5497 ../fish/guestfish-actions.pod:3676
13210 msgid ""
13211 "Verbose messages are disabled unless the environment variable "
13212 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
13213 msgstr ""
13214
13215 # type: =head2
13216 #: ../src/guestfs-actions.pod:5504
13217 msgid "guestfs_setcon"
13218 msgstr ""
13219
13220 # type: verbatim
13221 #: ../src/guestfs-actions.pod:5506
13222 #, no-wrap
13223 msgid ""
13224 " int\n"
13225 " guestfs_setcon (guestfs_h *g,\n"
13226 "                 const char *context);\n"
13227 "\n"
13228 msgstr ""
13229
13230 # type: textblock
13231 #: ../src/guestfs-actions.pod:5510 ../fish/guestfish-actions.pod:3683
13232 msgid ""
13233 "This sets the SELinux security context of the daemon to the string "
13234 "C<context>."
13235 msgstr ""
13236
13237 # type: textblock
13238 #: ../src/guestfs-actions.pod:5513 ../fish/guestfish-actions.pod:3686
13239 msgid "See the documentation about SELINUX in L<guestfs(3)>."
13240 msgstr ""
13241
13242 # type: =head2
13243 #: ../src/guestfs-actions.pod:5519
13244 msgid "guestfs_setxattr"
13245 msgstr ""
13246
13247 # type: verbatim
13248 #: ../src/guestfs-actions.pod:5521
13249 #, no-wrap
13250 msgid ""
13251 " int\n"
13252 " guestfs_setxattr (guestfs_h *g,\n"
13253 "                   const char *xattr,\n"
13254 "                   const char *val,\n"
13255 "                   int vallen,\n"
13256 "                   const char *path);\n"
13257 "\n"
13258 msgstr ""
13259
13260 # type: textblock
13261 #: ../src/guestfs-actions.pod:5528 ../fish/guestfish-actions.pod:3692
13262 msgid ""
13263 "This call sets the extended attribute named C<xattr> of the file C<path> to "
13264 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
13265 msgstr ""
13266
13267 # type: textblock
13268 #: ../src/guestfs-actions.pod:5532
13269 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
13270 msgstr ""
13271
13272 # type: =head2
13273 #: ../src/guestfs-actions.pod:5538
13274 msgid "guestfs_sfdisk"
13275 msgstr ""
13276
13277 # type: verbatim
13278 #: ../src/guestfs-actions.pod:5540
13279 #, no-wrap
13280 msgid ""
13281 " int\n"
13282 " guestfs_sfdisk (guestfs_h *g,\n"
13283 "                 const char *device,\n"
13284 "                 int cyls,\n"
13285 "                 int heads,\n"
13286 "                 int sectors,\n"
13287 "                 char *const *lines);\n"
13288 "\n"
13289 msgstr ""
13290
13291 # type: textblock
13292 #: ../src/guestfs-actions.pod:5548 ../fish/guestfish-actions.pod:3702
13293 msgid ""
13294 "This is a direct interface to the L<sfdisk(8)> program for creating "
13295 "partitions on block devices."
13296 msgstr ""
13297
13298 # type: textblock
13299 #: ../src/guestfs-actions.pod:5551 ../fish/guestfish-actions.pod:3705
13300 msgid "C<device> should be a block device, for example C</dev/sda>."
13301 msgstr ""
13302
13303 # type: textblock
13304 #: ../src/guestfs-actions.pod:5553 ../fish/guestfish-actions.pod:3707
13305 msgid ""
13306 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
13307 "sectors on the device, which are passed directly to sfdisk as the I<-C>, "
13308 "I<-H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
13309 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
13310 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
13311 "the kernel) cannot work out the right geometry and you will need to tell it."
13312 msgstr ""
13313
13314 # type: textblock
13315 #: ../src/guestfs-actions.pod:5561 ../fish/guestfish-actions.pod:3715
13316 msgid ""
13317 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
13318 "refer to the L<sfdisk(8)> manpage."
13319 msgstr ""
13320
13321 # type: textblock
13322 #: ../src/guestfs-actions.pod:5564 ../fish/guestfish-actions.pod:3718
13323 msgid ""
13324 "To create a single partition occupying the whole disk, you would pass "
13325 "C<lines> as a single element list, when the single element being the string "
13326 "C<,> (comma)."
13327 msgstr ""
13328
13329 # type: textblock
13330 #: ../src/guestfs-actions.pod:5568
13331 msgid "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
13332 msgstr ""
13333
13334 # type: =head2
13335 #: ../src/guestfs-actions.pod:5578
13336 msgid "guestfs_sfdiskM"
13337 msgstr ""
13338
13339 # type: verbatim
13340 #: ../src/guestfs-actions.pod:5580
13341 #, no-wrap
13342 msgid ""
13343 " int\n"
13344 " guestfs_sfdiskM (guestfs_h *g,\n"
13345 "                  const char *device,\n"
13346 "                  char *const *lines);\n"
13347 "\n"
13348 msgstr ""
13349
13350 # type: textblock
13351 #: ../src/guestfs-actions.pod:5585
13352 msgid ""
13353 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
13354 "partition sizes are specified in megabytes only (rounded to the nearest "
13355 "cylinder) and you don't need to specify the cyls, heads and sectors "
13356 "parameters which were rarely if ever used anyway."
13357 msgstr ""
13358
13359 # type: textblock
13360 #: ../src/guestfs-actions.pod:5591
13361 msgid ""
13362 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
13363 "C<guestfs_part_disk>"
13364 msgstr ""
13365
13366 # type: =head2
13367 #: ../src/guestfs-actions.pod:5601
13368 msgid "guestfs_sfdisk_N"
13369 msgstr ""
13370
13371 # type: verbatim
13372 #: ../src/guestfs-actions.pod:5603
13373 #, no-wrap
13374 msgid ""
13375 " int\n"
13376 " guestfs_sfdisk_N (guestfs_h *g,\n"
13377 "                   const char *device,\n"
13378 "                   int partnum,\n"
13379 "                   int cyls,\n"
13380 "                   int heads,\n"
13381 "                   int sectors,\n"
13382 "                   const char *line);\n"
13383 "\n"
13384 msgstr ""
13385
13386 # type: textblock
13387 #: ../src/guestfs-actions.pod:5612 ../fish/guestfish-actions.pod:3748
13388 msgid ""
13389 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
13390 "(note: C<n> counts from 1)."
13391 msgstr ""
13392
13393 # type: textblock
13394 #: ../src/guestfs-actions.pod:5615
13395 msgid ""
13396 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
13397 "for the cyls/heads/sectors parameters."
13398 msgstr ""
13399
13400 # type: textblock
13401 #: ../src/guestfs-actions.pod:5618
13402 msgid "See also: C<guestfs_part_add>"
13403 msgstr ""
13404
13405 # type: =head2
13406 #: ../src/guestfs-actions.pod:5627
13407 msgid "guestfs_sfdisk_disk_geometry"
13408 msgstr ""
13409
13410 # type: verbatim
13411 #: ../src/guestfs-actions.pod:5629
13412 #, no-wrap
13413 msgid ""
13414 " char *\n"
13415 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
13416 "                               const char *device);\n"
13417 "\n"
13418 msgstr ""
13419
13420 # type: textblock
13421 #: ../src/guestfs-actions.pod:5633
13422 msgid ""
13423 "This displays the disk geometry of C<device> read from the partition table.  "
13424 "Especially in the case where the underlying block device has been resized, "
13425 "this can be different from the kernel's idea of the geometry (see "
13426 "C<guestfs_sfdisk_kernel_geometry>)."
13427 msgstr ""
13428
13429 # type: textblock
13430 #: ../src/guestfs-actions.pod:5638 ../src/guestfs-actions.pod:5654 ../fish/guestfish-actions.pod:3768 ../fish/guestfish-actions.pod:3777
13431 msgid "The result is in human-readable format, and not designed to be parsed."
13432 msgstr ""
13433
13434 # type: =head2
13435 #: ../src/guestfs-actions.pod:5646
13436 msgid "guestfs_sfdisk_kernel_geometry"
13437 msgstr ""
13438
13439 # type: verbatim
13440 #: ../src/guestfs-actions.pod:5648
13441 #, no-wrap
13442 msgid ""
13443 " char *\n"
13444 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
13445 "                                 const char *device);\n"
13446 "\n"
13447 msgstr ""
13448
13449 # type: textblock
13450 #: ../src/guestfs-actions.pod:5652 ../fish/guestfish-actions.pod:3775
13451 msgid "This displays the kernel's idea of the geometry of C<device>."
13452 msgstr ""
13453
13454 # type: =head2
13455 #: ../src/guestfs-actions.pod:5662
13456 msgid "guestfs_sfdisk_l"
13457 msgstr ""
13458
13459 # type: verbatim
13460 #: ../src/guestfs-actions.pod:5664
13461 #, no-wrap
13462 msgid ""
13463 " char *\n"
13464 " guestfs_sfdisk_l (guestfs_h *g,\n"
13465 "                   const char *device);\n"
13466 "\n"
13467 msgstr ""
13468
13469 # type: textblock
13470 #: ../src/guestfs-actions.pod:5668 ../fish/guestfish-actions.pod:3784
13471 msgid ""
13472 "This displays the partition table on C<device>, in the human-readable output "
13473 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
13474 msgstr ""
13475
13476 # type: textblock
13477 #: ../src/guestfs-actions.pod:5672
13478 msgid "See also: C<guestfs_part_list>"
13479 msgstr ""
13480
13481 # type: =head2
13482 #: ../src/guestfs-actions.pod:5679
13483 msgid "guestfs_sh"
13484 msgstr ""
13485
13486 # type: verbatim
13487 #: ../src/guestfs-actions.pod:5681
13488 #, no-wrap
13489 msgid ""
13490 " char *\n"
13491 " guestfs_sh (guestfs_h *g,\n"
13492 "             const char *command);\n"
13493 "\n"
13494 msgstr ""
13495
13496 # type: textblock
13497 #: ../src/guestfs-actions.pod:5685 ../fish/guestfish-actions.pod:3794
13498 msgid ""
13499 "This call runs a command from the guest filesystem via the guest's "
13500 "C</bin/sh>."
13501 msgstr ""
13502
13503 # type: textblock
13504 #: ../src/guestfs-actions.pod:5688
13505 msgid "This is like C<guestfs_command>, but passes the command to:"
13506 msgstr ""
13507
13508 # type: verbatim
13509 #: ../src/guestfs-actions.pod:5690 ../fish/guestfish-actions.pod:3799
13510 #, no-wrap
13511 msgid ""
13512 " /bin/sh -c \"command\"\n"
13513 "\n"
13514 msgstr ""
13515
13516 # type: textblock
13517 #: ../src/guestfs-actions.pod:5692 ../fish/guestfish-actions.pod:3801
13518 msgid ""
13519 "Depending on the guest's shell, this usually results in wildcards being "
13520 "expanded, shell expressions being interpolated and so on."
13521 msgstr ""
13522
13523 # type: textblock
13524 #: ../src/guestfs-actions.pod:5696
13525 msgid "All the provisos about C<guestfs_command> apply to this call."
13526 msgstr ""
13527
13528 # type: =head2
13529 #: ../src/guestfs-actions.pod:5703
13530 msgid "guestfs_sh_lines"
13531 msgstr ""
13532
13533 # type: verbatim
13534 #: ../src/guestfs-actions.pod:5705
13535 #, no-wrap
13536 msgid ""
13537 " char **\n"
13538 " guestfs_sh_lines (guestfs_h *g,\n"
13539 "                   const char *command);\n"
13540 "\n"
13541 msgstr ""
13542
13543 # type: textblock
13544 #: ../src/guestfs-actions.pod:5709
13545 msgid ""
13546 "This is the same as C<guestfs_sh>, but splits the result into a list of "
13547 "lines."
13548 msgstr ""
13549
13550 # type: textblock
13551 #: ../src/guestfs-actions.pod:5712
13552 msgid "See also: C<guestfs_command_lines>"
13553 msgstr ""
13554
13555 # type: =head2
13556 #: ../src/guestfs-actions.pod:5720
13557 msgid "guestfs_sleep"
13558 msgstr ""
13559
13560 # type: verbatim
13561 #: ../src/guestfs-actions.pod:5722
13562 #, no-wrap
13563 msgid ""
13564 " int\n"
13565 " guestfs_sleep (guestfs_h *g,\n"
13566 "                int secs);\n"
13567 "\n"
13568 msgstr ""
13569
13570 # type: textblock
13571 #: ../src/guestfs-actions.pod:5726 ../fish/guestfish-actions.pod:3820
13572 msgid "Sleep for C<secs> seconds."
13573 msgstr ""
13574
13575 # type: textblock
13576 #: ../src/guestfs-actions.pod:5730
13577 msgid "(Added in 1.0.41)"
13578 msgstr ""
13579
13580 # type: =head2
13581 #: ../src/guestfs-actions.pod:5732 ../src/guestfs-structs.pod:109
13582 msgid "guestfs_stat"
13583 msgstr ""
13584
13585 # type: verbatim
13586 #: ../src/guestfs-actions.pod:5734
13587 #, no-wrap
13588 msgid ""
13589 " struct guestfs_stat *\n"
13590 " guestfs_stat (guestfs_h *g,\n"
13591 "               const char *path);\n"
13592 "\n"
13593 msgstr ""
13594
13595 # type: textblock
13596 #: ../src/guestfs-actions.pod:5740 ../fish/guestfish-actions.pod:3828
13597 msgid "This is the same as the C<stat(2)> system call."
13598 msgstr ""
13599
13600 # type: =head2
13601 #: ../src/guestfs-actions.pod:5748 ../src/guestfs-structs.pod:135
13602 msgid "guestfs_statvfs"
13603 msgstr ""
13604
13605 # type: verbatim
13606 #: ../src/guestfs-actions.pod:5750
13607 #, no-wrap
13608 msgid ""
13609 " struct guestfs_statvfs *\n"
13610 " guestfs_statvfs (guestfs_h *g,\n"
13611 "                  const char *path);\n"
13612 "\n"
13613 msgstr ""
13614
13615 # type: textblock
13616 #: ../src/guestfs-actions.pod:5754 ../fish/guestfish-actions.pod:3834
13617 msgid ""
13618 "Returns file system statistics for any mounted file system.  C<path> should "
13619 "be a file or directory in the mounted file system (typically it is the mount "
13620 "point itself, but it doesn't need to be)."
13621 msgstr ""
13622
13623 # type: textblock
13624 #: ../src/guestfs-actions.pod:5758 ../fish/guestfish-actions.pod:3838
13625 msgid "This is the same as the C<statvfs(2)> system call."
13626 msgstr ""
13627
13628 # type: textblock
13629 #: ../src/guestfs-actions.pod:5760
13630 msgid ""
13631 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
13632 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
13633 msgstr ""
13634
13635 # type: =head2
13636 #: ../src/guestfs-actions.pod:5766
13637 msgid "guestfs_strings"
13638 msgstr ""
13639
13640 # type: verbatim
13641 #: ../src/guestfs-actions.pod:5768
13642 #, no-wrap
13643 msgid ""
13644 " char **\n"
13645 " guestfs_strings (guestfs_h *g,\n"
13646 "                  const char *path);\n"
13647 "\n"
13648 msgstr ""
13649
13650 # type: textblock
13651 #: ../src/guestfs-actions.pod:5772 ../fish/guestfish-actions.pod:3844
13652 msgid ""
13653 "This runs the L<strings(1)> command on a file and returns the list of "
13654 "printable strings found."
13655 msgstr ""
13656
13657 # type: =head2
13658 #: ../src/guestfs-actions.pod:5784
13659 msgid "guestfs_strings_e"
13660 msgstr ""
13661
13662 # type: verbatim
13663 #: ../src/guestfs-actions.pod:5786
13664 #, no-wrap
13665 msgid ""
13666 " char **\n"
13667 " guestfs_strings_e (guestfs_h *g,\n"
13668 "                    const char *encoding,\n"
13669 "                    const char *path);\n"
13670 "\n"
13671 msgstr ""
13672
13673 # type: textblock
13674 #: ../src/guestfs-actions.pod:5791
13675 msgid ""
13676 "This is like the C<guestfs_strings> command, but allows you to specify the "
13677 "encoding of strings that are looked for in the source file C<path>."
13678 msgstr ""
13679
13680 # type: textblock
13681 #: ../src/guestfs-actions.pod:5795 ../fish/guestfish-actions.pod:3858
13682 msgid "Allowed encodings are:"
13683 msgstr ""
13684
13685 # type: =item
13686 #: ../src/guestfs-actions.pod:5799 ../fish/guestfish-actions.pod:3862
13687 msgid "s"
13688 msgstr ""
13689
13690 # type: textblock
13691 #: ../src/guestfs-actions.pod:5801
13692 msgid ""
13693 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
13694 "ISO-8859-X (this is what C<guestfs_strings> uses)."
13695 msgstr ""
13696
13697 # type: =item
13698 #: ../src/guestfs-actions.pod:5804 ../fish/guestfish-actions.pod:3867
13699 msgid "S"
13700 msgstr ""
13701
13702 # type: textblock
13703 #: ../src/guestfs-actions.pod:5806 ../fish/guestfish-actions.pod:3869
13704 msgid "Single 8-bit-byte characters."
13705 msgstr ""
13706
13707 # type: =item
13708 #: ../src/guestfs-actions.pod:5808 ../fish/guestfish-actions.pod:3871
13709 msgid "b"
13710 msgstr ""
13711
13712 # type: textblock
13713 #: ../src/guestfs-actions.pod:5810 ../fish/guestfish-actions.pod:3873
13714 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
13715 msgstr ""
13716
13717 # type: =item
13718 #: ../src/guestfs-actions.pod:5813 ../fish/guestfish-actions.pod:3876
13719 msgid "l (lower case letter L)"
13720 msgstr ""
13721
13722 # type: textblock
13723 #: ../src/guestfs-actions.pod:5815 ../fish/guestfish-actions.pod:3878
13724 msgid ""
13725 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
13726 "examining binaries in Windows guests."
13727 msgstr ""
13728
13729 # type: =item
13730 #: ../src/guestfs-actions.pod:5818 ../fish/guestfish-actions.pod:3881
13731 msgid "B"
13732 msgstr ""
13733
13734 # type: textblock
13735 #: ../src/guestfs-actions.pod:5820 ../fish/guestfish-actions.pod:3883
13736 msgid "32-bit big endian such as UCS-4BE."
13737 msgstr ""
13738
13739 # type: =item
13740 #: ../src/guestfs-actions.pod:5822 ../fish/guestfish-actions.pod:3885
13741 msgid "L"
13742 msgstr ""
13743
13744 # type: textblock
13745 #: ../src/guestfs-actions.pod:5824 ../fish/guestfish-actions.pod:3887
13746 msgid "32-bit little endian such as UCS-4LE."
13747 msgstr ""
13748
13749 # type: textblock
13750 #: ../src/guestfs-actions.pod:5828 ../fish/guestfish-actions.pod:3891
13751 msgid "The returned strings are transcoded to UTF-8."
13752 msgstr ""
13753
13754 # type: =head2
13755 #: ../src/guestfs-actions.pod:5839
13756 msgid "guestfs_swapoff_device"
13757 msgstr ""
13758
13759 # type: verbatim
13760 #: ../src/guestfs-actions.pod:5841
13761 #, no-wrap
13762 msgid ""
13763 " int\n"
13764 " guestfs_swapoff_device (guestfs_h *g,\n"
13765 "                         const char *device);\n"
13766 "\n"
13767 msgstr ""
13768
13769 # type: textblock
13770 #: ../src/guestfs-actions.pod:5845
13771 msgid ""
13772 "This command disables the libguestfs appliance swap device or partition "
13773 "named C<device>.  See C<guestfs_swapon_device>."
13774 msgstr ""
13775
13776 # type: =head2
13777 #: ../src/guestfs-actions.pod:5853
13778 msgid "guestfs_swapoff_file"
13779 msgstr ""
13780
13781 # type: verbatim
13782 #: ../src/guestfs-actions.pod:5855
13783 #, no-wrap
13784 msgid ""
13785 " int\n"
13786 " guestfs_swapoff_file (guestfs_h *g,\n"
13787 "                       const char *file);\n"
13788 "\n"
13789 msgstr ""
13790
13791 # type: textblock
13792 #: ../src/guestfs-actions.pod:5859 ../fish/guestfish-actions.pod:3908
13793 msgid "This command disables the libguestfs appliance swap on file."
13794 msgstr ""
13795
13796 # type: =head2
13797 #: ../src/guestfs-actions.pod:5865
13798 msgid "guestfs_swapoff_label"
13799 msgstr ""
13800
13801 # type: verbatim
13802 #: ../src/guestfs-actions.pod:5867
13803 #, no-wrap
13804 msgid ""
13805 " int\n"
13806 " guestfs_swapoff_label (guestfs_h *g,\n"
13807 "                        const char *label);\n"
13808 "\n"
13809 msgstr ""
13810
13811 # type: textblock
13812 #: ../src/guestfs-actions.pod:5871 ../fish/guestfish-actions.pod:3914
13813 msgid ""
13814 "This command disables the libguestfs appliance swap on labeled swap "
13815 "partition."
13816 msgstr ""
13817
13818 # type: =head2
13819 #: ../src/guestfs-actions.pod:5878
13820 msgid "guestfs_swapoff_uuid"
13821 msgstr ""
13822
13823 # type: verbatim
13824 #: ../src/guestfs-actions.pod:5880
13825 #, no-wrap
13826 msgid ""
13827 " int\n"
13828 " guestfs_swapoff_uuid (guestfs_h *g,\n"
13829 "                       const char *uuid);\n"
13830 "\n"
13831 msgstr ""
13832
13833 # type: textblock
13834 #: ../src/guestfs-actions.pod:5884 ../fish/guestfish-actions.pod:3921
13835 msgid ""
13836 "This command disables the libguestfs appliance swap partition with the given "
13837 "UUID."
13838 msgstr ""
13839
13840 # type: =head2
13841 #: ../src/guestfs-actions.pod:5891
13842 msgid "guestfs_swapon_device"
13843 msgstr ""
13844
13845 # type: verbatim
13846 #: ../src/guestfs-actions.pod:5893
13847 #, no-wrap
13848 msgid ""
13849 " int\n"
13850 " guestfs_swapon_device (guestfs_h *g,\n"
13851 "                        const char *device);\n"
13852 "\n"
13853 msgstr ""
13854
13855 # type: textblock
13856 #: ../src/guestfs-actions.pod:5897
13857 msgid ""
13858 "This command enables the libguestfs appliance to use the swap device or "
13859 "partition named C<device>.  The increased memory is made available for all "
13860 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
13861 msgstr ""
13862
13863 # type: textblock
13864 #: ../src/guestfs-actions.pod:5902 ../fish/guestfish-actions.pod:3933
13865 msgid ""
13866 "Note that you should not swap to existing guest swap partitions unless you "
13867 "know what you are doing.  They may contain hibernation information, or other "
13868 "information that the guest doesn't want you to trash.  You also risk leaking "
13869 "information about the host to the guest this way.  Instead, attach a new "
13870 "host device to the guest and swap on that."
13871 msgstr ""
13872
13873 # type: =head2
13874 #: ../src/guestfs-actions.pod:5913
13875 msgid "guestfs_swapon_file"
13876 msgstr ""
13877
13878 # type: verbatim
13879 #: ../src/guestfs-actions.pod:5915
13880 #, no-wrap
13881 msgid ""
13882 " int\n"
13883 " guestfs_swapon_file (guestfs_h *g,\n"
13884 "                      const char *file);\n"
13885 "\n"
13886 msgstr ""
13887
13888 # type: textblock
13889 #: ../src/guestfs-actions.pod:5919
13890 msgid ""
13891 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
13892 "notes."
13893 msgstr ""
13894
13895 # type: =head2
13896 #: ../src/guestfs-actions.pod:5926
13897 msgid "guestfs_swapon_label"
13898 msgstr ""
13899
13900 # type: verbatim
13901 #: ../src/guestfs-actions.pod:5928
13902 #, no-wrap
13903 msgid ""
13904 " int\n"
13905 " guestfs_swapon_label (guestfs_h *g,\n"
13906 "                       const char *label);\n"
13907 "\n"
13908 msgstr ""
13909
13910 # type: textblock
13911 #: ../src/guestfs-actions.pod:5932
13912 msgid ""
13913 "This command enables swap to a labeled swap partition.  See "
13914 "C<guestfs_swapon_device> for other notes."
13915 msgstr ""
13916
13917 # type: =head2
13918 #: ../src/guestfs-actions.pod:5939
13919 msgid "guestfs_swapon_uuid"
13920 msgstr ""
13921
13922 # type: verbatim
13923 #: ../src/guestfs-actions.pod:5941
13924 #, no-wrap
13925 msgid ""
13926 " int\n"
13927 " guestfs_swapon_uuid (guestfs_h *g,\n"
13928 "                      const char *uuid);\n"
13929 "\n"
13930 msgstr ""
13931
13932 # type: textblock
13933 #: ../src/guestfs-actions.pod:5945
13934 msgid ""
13935 "This command enables swap to a swap partition with the given UUID.  See "
13936 "C<guestfs_swapon_device> for other notes."
13937 msgstr ""
13938
13939 # type: =head2
13940 #: ../src/guestfs-actions.pod:5952
13941 msgid "guestfs_sync"
13942 msgstr ""
13943
13944 # type: verbatim
13945 #: ../src/guestfs-actions.pod:5954
13946 #, no-wrap
13947 msgid ""
13948 " int\n"
13949 " guestfs_sync (guestfs_h *g);\n"
13950 "\n"
13951 msgstr ""
13952
13953 # type: textblock
13954 #: ../src/guestfs-actions.pod:5957 ../fish/guestfish-actions.pod:3965
13955 msgid ""
13956 "This syncs the disk, so that any writes are flushed through to the "
13957 "underlying disk image."
13958 msgstr ""
13959
13960 # type: textblock
13961 #: ../src/guestfs-actions.pod:5960 ../fish/guestfish-actions.pod:3968
13962 msgid ""
13963 "You should always call this if you have modified a disk image, before "
13964 "closing the handle."
13965 msgstr ""
13966
13967 # type: =head2
13968 #: ../src/guestfs-actions.pod:5967
13969 msgid "guestfs_tail"
13970 msgstr ""
13971
13972 # type: verbatim
13973 #: ../src/guestfs-actions.pod:5969
13974 #, no-wrap
13975 msgid ""
13976 " char **\n"
13977 " guestfs_tail (guestfs_h *g,\n"
13978 "               const char *path);\n"
13979 "\n"
13980 msgstr ""
13981
13982 # type: textblock
13983 #: ../src/guestfs-actions.pod:5973 ../fish/guestfish-actions.pod:3975
13984 msgid "This command returns up to the last 10 lines of a file as a list of strings."
13985 msgstr ""
13986
13987 # type: =head2
13988 #: ../src/guestfs-actions.pod:5985
13989 msgid "guestfs_tail_n"
13990 msgstr ""
13991
13992 # type: verbatim
13993 #: ../src/guestfs-actions.pod:5987
13994 #, no-wrap
13995 msgid ""
13996 " char **\n"
13997 " guestfs_tail_n (guestfs_h *g,\n"
13998 "                 int nrlines,\n"
13999 "                 const char *path);\n"
14000 "\n"
14001 msgstr ""
14002
14003 # type: textblock
14004 #: ../src/guestfs-actions.pod:5992 ../fish/guestfish-actions.pod:3985
14005 msgid ""
14006 "If the parameter C<nrlines> is a positive number, this returns the last "
14007 "C<nrlines> lines of the file C<path>."
14008 msgstr ""
14009
14010 # type: textblock
14011 #: ../src/guestfs-actions.pod:5995 ../fish/guestfish-actions.pod:3988
14012 msgid ""
14013 "If the parameter C<nrlines> is a negative number, this returns lines from "
14014 "the file C<path>, starting with the C<-nrlines>th line."
14015 msgstr ""
14016
14017 # type: =head2
14018 #: ../src/guestfs-actions.pod:6009
14019 msgid "guestfs_tar_in"
14020 msgstr ""
14021
14022 # type: verbatim
14023 #: ../src/guestfs-actions.pod:6011
14024 #, no-wrap
14025 msgid ""
14026 " int\n"
14027 " guestfs_tar_in (guestfs_h *g,\n"
14028 "                 const char *tarfile,\n"
14029 "                 const char *directory);\n"
14030 "\n"
14031 msgstr ""
14032
14033 # type: textblock
14034 #: ../src/guestfs-actions.pod:6016 ../fish/guestfish-actions.pod:4000
14035 msgid ""
14036 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
14037 "tar file) into C<directory>."
14038 msgstr ""
14039
14040 # type: textblock
14041 #: ../src/guestfs-actions.pod:6019
14042 msgid "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
14043 msgstr ""
14044
14045 # type: textblock
14046 #: ../src/guestfs-actions.pod:6024 ../src/guestfs-actions.pod:6041 ../src/guestfs-actions.pod:6057 ../src/guestfs-actions.pod:6073
14047 msgid "(Added in 1.0.3)"
14048 msgstr ""
14049
14050 # type: =head2
14051 #: ../src/guestfs-actions.pod:6026
14052 msgid "guestfs_tar_out"
14053 msgstr ""
14054
14055 # type: verbatim
14056 #: ../src/guestfs-actions.pod:6028
14057 #, no-wrap
14058 msgid ""
14059 " int\n"
14060 " guestfs_tar_out (guestfs_h *g,\n"
14061 "                  const char *directory,\n"
14062 "                  const char *tarfile);\n"
14063 "\n"
14064 msgstr ""
14065
14066 # type: textblock
14067 #: ../src/guestfs-actions.pod:6033 ../fish/guestfish-actions.pod:4012
14068 msgid ""
14069 "This command packs the contents of C<directory> and downloads it to local "
14070 "file C<tarfile>."
14071 msgstr ""
14072
14073 # type: textblock
14074 #: ../src/guestfs-actions.pod:6036
14075 msgid ""
14076 "To download a compressed tarball, use C<guestfs_tgz_out> or "
14077 "C<guestfs_txz_out>."
14078 msgstr ""
14079
14080 # type: =head2
14081 #: ../src/guestfs-actions.pod:6043
14082 msgid "guestfs_tgz_in"
14083 msgstr ""
14084
14085 # type: verbatim
14086 #: ../src/guestfs-actions.pod:6045
14087 #, no-wrap
14088 msgid ""
14089 " int\n"
14090 " guestfs_tgz_in (guestfs_h *g,\n"
14091 "                 const char *tarball,\n"
14092 "                 const char *directory);\n"
14093 "\n"
14094 msgstr ""
14095
14096 # type: textblock
14097 #: ../src/guestfs-actions.pod:6050 ../fish/guestfish-actions.pod:4024
14098 msgid ""
14099 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
14100 "tar file) into C<directory>."
14101 msgstr ""
14102
14103 # type: textblock
14104 #: ../src/guestfs-actions.pod:6053
14105 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
14106 msgstr ""
14107
14108 # type: =head2
14109 #: ../src/guestfs-actions.pod:6059
14110 msgid "guestfs_tgz_out"
14111 msgstr ""
14112
14113 # type: verbatim
14114 #: ../src/guestfs-actions.pod:6061
14115 #, no-wrap
14116 msgid ""
14117 " int\n"
14118 " guestfs_tgz_out (guestfs_h *g,\n"
14119 "                  const char *directory,\n"
14120 "                  const char *tarball);\n"
14121 "\n"
14122 msgstr ""
14123
14124 # type: textblock
14125 #: ../src/guestfs-actions.pod:6066 ../fish/guestfish-actions.pod:4035
14126 msgid ""
14127 "This command packs the contents of C<directory> and downloads it to local "
14128 "file C<tarball>."
14129 msgstr ""
14130
14131 # type: textblock
14132 #: ../src/guestfs-actions.pod:6069
14133 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
14134 msgstr ""
14135
14136 # type: =head2
14137 #: ../src/guestfs-actions.pod:6075
14138 msgid "guestfs_touch"
14139 msgstr ""
14140
14141 # type: verbatim
14142 #: ../src/guestfs-actions.pod:6077
14143 #, no-wrap
14144 msgid ""
14145 " int\n"
14146 " guestfs_touch (guestfs_h *g,\n"
14147 "                const char *path);\n"
14148 "\n"
14149 msgstr ""
14150
14151 # type: textblock
14152 #: ../src/guestfs-actions.pod:6081 ../fish/guestfish-actions.pod:4046
14153 msgid ""
14154 "Touch acts like the L<touch(1)> command.  It can be used to update the "
14155 "timestamps on a file, or, if the file does not exist, to create a new "
14156 "zero-length file."
14157 msgstr ""
14158
14159 # type: textblock
14160 #: ../src/guestfs-actions.pod:6085 ../fish/guestfish-actions.pod:4050
14161 msgid ""
14162 "This command only works on regular files, and will fail on other file types "
14163 "such as directories, symbolic links, block special etc."
14164 msgstr ""
14165
14166 # type: =head2
14167 #: ../src/guestfs-actions.pod:6092
14168 msgid "guestfs_truncate"
14169 msgstr ""
14170
14171 # type: verbatim
14172 #: ../src/guestfs-actions.pod:6094
14173 #, no-wrap
14174 msgid ""
14175 " int\n"
14176 " guestfs_truncate (guestfs_h *g,\n"
14177 "                   const char *path);\n"
14178 "\n"
14179 msgstr ""
14180
14181 # type: textblock
14182 #: ../src/guestfs-actions.pod:6098 ../fish/guestfish-actions.pod:4057
14183 msgid ""
14184 "This command truncates C<path> to a zero-length file.  The file must exist "
14185 "already."
14186 msgstr ""
14187
14188 # type: =head2
14189 #: ../src/guestfs-actions.pod:6105
14190 msgid "guestfs_truncate_size"
14191 msgstr ""
14192
14193 # type: verbatim
14194 #: ../src/guestfs-actions.pod:6107
14195 #, no-wrap
14196 msgid ""
14197 " int\n"
14198 " guestfs_truncate_size (guestfs_h *g,\n"
14199 "                        const char *path,\n"
14200 "                        int64_t size);\n"
14201 "\n"
14202 msgstr ""
14203
14204 # type: textblock
14205 #: ../src/guestfs-actions.pod:6112 ../fish/guestfish-actions.pod:4064
14206 msgid ""
14207 "This command truncates C<path> to size C<size> bytes.  The file must exist "
14208 "already."
14209 msgstr ""
14210
14211 # type: textblock
14212 #: ../src/guestfs-actions.pod:6115
14213 msgid ""
14214 "If the current file size is less than C<size> then the file is extended to "
14215 "the required size with zero bytes.  This creates a sparse file (ie. disk "
14216 "blocks are not allocated for the file until you write to it).  To create a "
14217 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
14218 msgstr ""
14219
14220 # type: =head2
14221 #: ../src/guestfs-actions.pod:6125
14222 msgid "guestfs_tune2fs_l"
14223 msgstr ""
14224
14225 # type: verbatim
14226 #: ../src/guestfs-actions.pod:6127
14227 #, no-wrap
14228 msgid ""
14229 " char **\n"
14230 " guestfs_tune2fs_l (guestfs_h *g,\n"
14231 "                    const char *device);\n"
14232 "\n"
14233 msgstr ""
14234
14235 # type: textblock
14236 #: ../src/guestfs-actions.pod:6131 ../fish/guestfish-actions.pod:4077
14237 msgid ""
14238 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
14239 "C<device>."
14240 msgstr ""
14241
14242 # type: textblock
14243 #: ../src/guestfs-actions.pod:6134 ../fish/guestfish-actions.pod:4080
14244 msgid ""
14245 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
14246 "for more details.  The list of fields returned isn't clearly defined, and "
14247 "depends on both the version of C<tune2fs> that libguestfs was built against, "
14248 "and the filesystem itself."
14249 msgstr ""
14250
14251 # type: =head2
14252 #: ../src/guestfs-actions.pod:6147
14253 msgid "guestfs_txz_in"
14254 msgstr ""
14255
14256 # type: verbatim
14257 #: ../src/guestfs-actions.pod:6149
14258 #, no-wrap
14259 msgid ""
14260 " int\n"
14261 " guestfs_txz_in (guestfs_h *g,\n"
14262 "                 const char *tarball,\n"
14263 "                 const char *directory);\n"
14264 "\n"
14265 msgstr ""
14266
14267 # type: textblock
14268 #: ../src/guestfs-actions.pod:6154 ../fish/guestfish-actions.pod:4089
14269 msgid ""
14270 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
14271 "tar file) into C<directory>."
14272 msgstr ""
14273
14274 # type: =head2
14275 #: ../src/guestfs-actions.pod:6161
14276 msgid "guestfs_txz_out"
14277 msgstr ""
14278
14279 # type: verbatim
14280 #: ../src/guestfs-actions.pod:6163
14281 #, no-wrap
14282 msgid ""
14283 " int\n"
14284 " guestfs_txz_out (guestfs_h *g,\n"
14285 "                  const char *directory,\n"
14286 "                  const char *tarball);\n"
14287 "\n"
14288 msgstr ""
14289
14290 # type: textblock
14291 #: ../src/guestfs-actions.pod:6168 ../fish/guestfish-actions.pod:4098
14292 msgid ""
14293 "This command packs the contents of C<directory> and downloads it to local "
14294 "file C<tarball> (as an xz compressed tar archive)."
14295 msgstr ""
14296
14297 # type: =head2
14298 #: ../src/guestfs-actions.pod:6175
14299 msgid "guestfs_umask"
14300 msgstr ""
14301
14302 # type: verbatim
14303 #: ../src/guestfs-actions.pod:6177
14304 #, no-wrap
14305 msgid ""
14306 " int\n"
14307 " guestfs_umask (guestfs_h *g,\n"
14308 "                int mask);\n"
14309 "\n"
14310 msgstr ""
14311
14312 # type: textblock
14313 #: ../src/guestfs-actions.pod:6181 ../fish/guestfish-actions.pod:4107
14314 msgid ""
14315 "This function sets the mask used for creating new files and device nodes to "
14316 "C<mask & 0777>."
14317 msgstr ""
14318
14319 # type: textblock
14320 #: ../src/guestfs-actions.pod:6184 ../fish/guestfish-actions.pod:4110
14321 msgid ""
14322 "Typical umask values would be C<022> which creates new files with "
14323 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
14324 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
14325 msgstr ""
14326
14327 # type: textblock
14328 #: ../src/guestfs-actions.pod:6189 ../fish/guestfish-actions.pod:4115
14329 msgid ""
14330 "The default umask is C<022>.  This is important because it means that "
14331 "directories and device nodes will be created with C<0644> or C<0755> mode "
14332 "even if you specify C<0777>."
14333 msgstr ""
14334
14335 # type: textblock
14336 #: ../src/guestfs-actions.pod:6193
14337 msgid ""
14338 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
14339 "C<guestfs_mkdir>."
14340 msgstr ""
14341
14342 # type: textblock
14343 #: ../src/guestfs-actions.pod:6196 ../fish/guestfish-actions.pod:4122
14344 msgid "This call returns the previous umask."
14345 msgstr ""
14346
14347 # type: =head2
14348 #: ../src/guestfs-actions.pod:6202
14349 msgid "guestfs_umount"
14350 msgstr ""
14351
14352 # type: verbatim
14353 #: ../src/guestfs-actions.pod:6204
14354 #, no-wrap
14355 msgid ""
14356 " int\n"
14357 " guestfs_umount (guestfs_h *g,\n"
14358 "                 const char *pathordevice);\n"
14359 "\n"
14360 msgstr ""
14361
14362 # type: textblock
14363 #: ../src/guestfs-actions.pod:6208 ../fish/guestfish-actions.pod:4130
14364 msgid ""
14365 "This unmounts the given filesystem.  The filesystem may be specified either "
14366 "by its mountpoint (path) or the device which contains the filesystem."
14367 msgstr ""
14368
14369 # type: =head2
14370 #: ../src/guestfs-actions.pod:6216
14371 msgid "guestfs_umount_all"
14372 msgstr ""
14373
14374 # type: verbatim
14375 #: ../src/guestfs-actions.pod:6218
14376 #, no-wrap
14377 msgid ""
14378 " int\n"
14379 " guestfs_umount_all (guestfs_h *g);\n"
14380 "\n"
14381 msgstr ""
14382
14383 # type: textblock
14384 #: ../src/guestfs-actions.pod:6221 ../fish/guestfish-actions.pod:4140
14385 msgid "This unmounts all mounted filesystems."
14386 msgstr ""
14387
14388 # type: textblock
14389 #: ../src/guestfs-actions.pod:6223 ../fish/guestfish-actions.pod:4142
14390 msgid "Some internal mounts are not unmounted by this call."
14391 msgstr ""
14392
14393 # type: =head2
14394 #: ../src/guestfs-actions.pod:6229
14395 msgid "guestfs_upload"
14396 msgstr ""
14397
14398 # type: verbatim
14399 #: ../src/guestfs-actions.pod:6231
14400 #, no-wrap
14401 msgid ""
14402 " int\n"
14403 " guestfs_upload (guestfs_h *g,\n"
14404 "                 const char *filename,\n"
14405 "                 const char *remotefilename);\n"
14406 "\n"
14407 msgstr ""
14408
14409 # type: textblock
14410 #: ../src/guestfs-actions.pod:6236 ../src/guestfs-actions.pod:6255 ../fish/guestfish-actions.pod:4148 ../fish/guestfish-actions.pod:4161
14411 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
14412 msgstr ""
14413
14414 # type: textblock
14415 #: ../src/guestfs-actions.pod:6241
14416 msgid "See also C<guestfs_download>."
14417 msgstr ""
14418
14419 # type: =head2
14420 #: ../src/guestfs-actions.pod:6247
14421 msgid "guestfs_upload_offset"
14422 msgstr ""
14423
14424 # type: verbatim
14425 #: ../src/guestfs-actions.pod:6249
14426 #, no-wrap
14427 msgid ""
14428 " int\n"
14429 " guestfs_upload_offset (guestfs_h *g,\n"
14430 "                        const char *filename,\n"
14431 "                        const char *remotefilename,\n"
14432 "                        int64_t offset);\n"
14433 "\n"
14434 msgstr ""
14435
14436 # type: textblock
14437 #: ../src/guestfs-actions.pod:6258 ../fish/guestfish-actions.pod:4164
14438 msgid ""
14439 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
14440 "The intention is to overwrite parts of existing files or devices, although "
14441 "if a non-existant file is specified then it is created with a \"hole\" "
14442 "before C<offset>.  The size of the data written is implicit in the size of "
14443 "the source C<filename>."
14444 msgstr ""
14445
14446 # type: textblock
14447 #: ../src/guestfs-actions.pod:6265
14448 msgid ""
14449 "Note that there is no limit on the amount of data that can be uploaded with "
14450 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
14451 "full amount unless an error occurs."
14452 msgstr ""
14453
14454 # type: textblock
14455 #: ../src/guestfs-actions.pod:6270
14456 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
14457 msgstr ""
14458
14459 # type: =head2
14460 #: ../src/guestfs-actions.pod:6276
14461 msgid "guestfs_utimens"
14462 msgstr ""
14463
14464 # type: verbatim
14465 #: ../src/guestfs-actions.pod:6278
14466 #, no-wrap
14467 msgid ""
14468 " int\n"
14469 " guestfs_utimens (guestfs_h *g,\n"
14470 "                  const char *path,\n"
14471 "                  int64_t atsecs,\n"
14472 "                  int64_t atnsecs,\n"
14473 "                  int64_t mtsecs,\n"
14474 "                  int64_t mtnsecs);\n"
14475 "\n"
14476 msgstr ""
14477
14478 # type: textblock
14479 #: ../src/guestfs-actions.pod:6286 ../fish/guestfish-actions.pod:4184
14480 msgid "This command sets the timestamps of a file with nanosecond precision."
14481 msgstr ""
14482
14483 # type: textblock
14484 #: ../src/guestfs-actions.pod:6289 ../fish/guestfish-actions.pod:4187
14485 msgid ""
14486 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
14487 "from the epoch."
14488 msgstr ""
14489
14490 # type: textblock
14491 #: ../src/guestfs-actions.pod:6292 ../fish/guestfish-actions.pod:4190
14492 msgid ""
14493 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
14494 "nanoseconds from the epoch."
14495 msgstr ""
14496
14497 # type: textblock
14498 #: ../src/guestfs-actions.pod:6295 ../fish/guestfish-actions.pod:4193
14499 msgid ""
14500 "If the C<*nsecs> field contains the special value C<-1> then the "
14501 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
14502 "ignored in this case)."
14503 msgstr ""
14504
14505 # type: textblock
14506 #: ../src/guestfs-actions.pod:6299 ../fish/guestfish-actions.pod:4197
14507 msgid ""
14508 "If the C<*nsecs> field contains the special value C<-2> then the "
14509 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
14510 "in this case)."
14511 msgstr ""
14512
14513 # type: =head2
14514 #: ../src/guestfs-actions.pod:6307 ../src/guestfs-structs.pod:175
14515 msgid "guestfs_version"
14516 msgstr ""
14517
14518 # type: verbatim
14519 #: ../src/guestfs-actions.pod:6309
14520 #, no-wrap
14521 msgid ""
14522 " struct guestfs_version *\n"
14523 " guestfs_version (guestfs_h *g);\n"
14524 "\n"
14525 msgstr ""
14526
14527 # type: textblock
14528 #: ../src/guestfs-actions.pod:6312 ../fish/guestfish-actions.pod:4205
14529 msgid "Return the libguestfs version number that the program is linked against."
14530 msgstr ""
14531
14532 # type: textblock
14533 #: ../src/guestfs-actions.pod:6315 ../fish/guestfish-actions.pod:4208
14534 msgid ""
14535 "Note that because of dynamic linking this is not necessarily the version of "
14536 "libguestfs that you compiled against.  You can compile the program, and then "
14537 "at runtime dynamically link against a completely different C<libguestfs.so> "
14538 "library."
14539 msgstr ""
14540
14541 # type: textblock
14542 #: ../src/guestfs-actions.pod:6320 ../fish/guestfish-actions.pod:4213
14543 msgid ""
14544 "This call was added in version C<1.0.58>.  In previous versions of "
14545 "libguestfs there was no way to get the version number.  From C code you can "
14546 "use dynamic linker functions to find out if this symbol exists (if it "
14547 "doesn't, then it's an earlier version)."
14548 msgstr ""
14549
14550 # type: textblock
14551 #: ../src/guestfs-actions.pod:6326 ../fish/guestfish-actions.pod:4219
14552 msgid ""
14553 "The call returns a structure with four elements.  The first three (C<major>, "
14554 "C<minor> and C<release>) are numbers and correspond to the usual version "
14555 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
14556 "but may be used for distro-specific information."
14557 msgstr ""
14558
14559 # type: textblock
14560 #: ../src/guestfs-actions.pod:6332 ../fish/guestfish-actions.pod:4225
14561 msgid "To construct the original version string: C<$major.$minor.$release$extra>"
14562 msgstr ""
14563
14564 # type: textblock
14565 #: ../src/guestfs-actions.pod:6335 ../fish/guestfish-actions.pod:4228
14566 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
14567 msgstr ""
14568
14569 # type: textblock
14570 #: ../src/guestfs-actions.pod:6337
14571 msgid ""
14572 "I<Note:> Don't use this call to test for availability of features.  In "
14573 "enterprise distributions we backport features from later versions into "
14574 "earlier versions, making this an unreliable way to test for features.  Use "
14575 "C<guestfs_available> instead."
14576 msgstr ""
14577
14578 # type: textblock
14579 #: ../src/guestfs-actions.pod:6343
14580 msgid ""
14581 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
14582 "error.  I<The caller must call C<guestfs_free_version> after use>."
14583 msgstr ""
14584
14585 # type: textblock
14586 #: ../src/guestfs-actions.pod:6347
14587 msgid "(Added in 1.0.58)"
14588 msgstr ""
14589
14590 # type: =head2
14591 #: ../src/guestfs-actions.pod:6349
14592 msgid "guestfs_vfs_label"
14593 msgstr ""
14594
14595 # type: verbatim
14596 #: ../src/guestfs-actions.pod:6351
14597 #, no-wrap
14598 msgid ""
14599 " char *\n"
14600 " guestfs_vfs_label (guestfs_h *g,\n"
14601 "                    const char *device);\n"
14602 "\n"
14603 msgstr ""
14604
14605 # type: textblock
14606 #: ../src/guestfs-actions.pod:6355 ../fish/guestfish-actions.pod:4240
14607 msgid "This returns the filesystem label of the filesystem on C<device>."
14608 msgstr ""
14609
14610 # type: textblock
14611 #: ../src/guestfs-actions.pod:6358 ../fish/guestfish-actions.pod:4243
14612 msgid "If the filesystem is unlabeled, this returns the empty string."
14613 msgstr ""
14614
14615 # type: textblock
14616 #: ../src/guestfs-actions.pod:6360
14617 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
14618 msgstr ""
14619
14620 # type: textblock
14621 #: ../src/guestfs-actions.pod:6365 ../src/guestfs-actions.pod:6402
14622 msgid "(Added in 1.3.18)"
14623 msgstr ""
14624
14625 # type: =head2
14626 #: ../src/guestfs-actions.pod:6367
14627 msgid "guestfs_vfs_type"
14628 msgstr ""
14629
14630 # type: verbatim
14631 #: ../src/guestfs-actions.pod:6369
14632 #, no-wrap
14633 msgid ""
14634 " char *\n"
14635 " guestfs_vfs_type (guestfs_h *g,\n"
14636 "                   const char *device);\n"
14637 "\n"
14638 msgstr ""
14639
14640 # type: textblock
14641 #: ../src/guestfs-actions.pod:6373 ../fish/guestfish-actions.pod:4251
14642 msgid ""
14643 "This command gets the filesystem type corresponding to the filesystem on "
14644 "C<device>."
14645 msgstr ""
14646
14647 # type: textblock
14648 #: ../src/guestfs-actions.pod:6376 ../fish/guestfish-actions.pod:4254
14649 msgid ""
14650 "For most filesystems, the result is the name of the Linux VFS module which "
14651 "would be used to mount this filesystem if you mounted it without specifying "
14652 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
14653 msgstr ""
14654
14655 # type: =head2
14656 #: ../src/guestfs-actions.pod:6386
14657 msgid "guestfs_vfs_uuid"
14658 msgstr ""
14659
14660 # type: verbatim
14661 #: ../src/guestfs-actions.pod:6388
14662 #, no-wrap
14663 msgid ""
14664 " char *\n"
14665 " guestfs_vfs_uuid (guestfs_h *g,\n"
14666 "                   const char *device);\n"
14667 "\n"
14668 msgstr ""
14669
14670 # type: textblock
14671 #: ../src/guestfs-actions.pod:6392 ../fish/guestfish-actions.pod:4263
14672 msgid "This returns the filesystem UUID of the filesystem on C<device>."
14673 msgstr ""
14674
14675 # type: textblock
14676 #: ../src/guestfs-actions.pod:6395 ../fish/guestfish-actions.pod:4266
14677 msgid "If the filesystem does not have a UUID, this returns the empty string."
14678 msgstr ""
14679
14680 # type: textblock
14681 #: ../src/guestfs-actions.pod:6397
14682 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
14683 msgstr ""
14684
14685 # type: =head2
14686 #: ../src/guestfs-actions.pod:6404
14687 msgid "guestfs_vg_activate"
14688 msgstr ""
14689
14690 # type: verbatim
14691 #: ../src/guestfs-actions.pod:6406
14692 #, no-wrap
14693 msgid ""
14694 " int\n"
14695 " guestfs_vg_activate (guestfs_h *g,\n"
14696 "                      int activate,\n"
14697 "                      char *const *volgroups);\n"
14698 "\n"
14699 msgstr ""
14700
14701 # type: textblock
14702 #: ../src/guestfs-actions.pod:6411 ../fish/guestfish-actions.pod:4274
14703 msgid ""
14704 "This command activates or (if C<activate> is false) deactivates all logical "
14705 "volumes in the listed volume groups C<volgroups>.  If activated, then they "
14706 "are made known to the kernel, ie. they appear as C</dev/mapper> devices.  If "
14707 "deactivated, then those devices disappear."
14708 msgstr ""
14709
14710 # type: textblock
14711 #: ../src/guestfs-actions.pod:6417 ../fish/guestfish-actions.pod:4280
14712 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
14713 msgstr ""
14714
14715 # type: textblock
14716 #: ../src/guestfs-actions.pod:6419 ../fish/guestfish-actions.pod:4282
14717 msgid ""
14718 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
14719 "activated or deactivated."
14720 msgstr ""
14721
14722 # type: =head2
14723 #: ../src/guestfs-actions.pod:6426
14724 msgid "guestfs_vg_activate_all"
14725 msgstr ""
14726
14727 # type: verbatim
14728 #: ../src/guestfs-actions.pod:6428
14729 #, no-wrap
14730 msgid ""
14731 " int\n"
14732 " guestfs_vg_activate_all (guestfs_h *g,\n"
14733 "                          int activate);\n"
14734 "\n"
14735 msgstr ""
14736
14737 # type: textblock
14738 #: ../src/guestfs-actions.pod:6432 ../fish/guestfish-actions.pod:4289
14739 msgid ""
14740 "This command activates or (if C<activate> is false) deactivates all logical "
14741 "volumes in all volume groups.  If activated, then they are made known to the "
14742 "kernel, ie. they appear as C</dev/mapper> devices.  If deactivated, then "
14743 "those devices disappear."
14744 msgstr ""
14745
14746 # type: textblock
14747 #: ../src/guestfs-actions.pod:6438 ../fish/guestfish-actions.pod:4295
14748 msgid "This command is the same as running C<vgchange -a y|n>"
14749 msgstr ""
14750
14751 # type: =head2
14752 #: ../src/guestfs-actions.pod:6444
14753 msgid "guestfs_vgcreate"
14754 msgstr ""
14755
14756 # type: verbatim
14757 #: ../src/guestfs-actions.pod:6446
14758 #, no-wrap
14759 msgid ""
14760 " int\n"
14761 " guestfs_vgcreate (guestfs_h *g,\n"
14762 "                   const char *volgroup,\n"
14763 "                   char *const *physvols);\n"
14764 "\n"
14765 msgstr ""
14766
14767 # type: textblock
14768 #: ../src/guestfs-actions.pod:6451 ../fish/guestfish-actions.pod:4301
14769 msgid ""
14770 "This creates an LVM volume group called C<volgroup> from the non-empty list "
14771 "of physical volumes C<physvols>."
14772 msgstr ""
14773
14774 # type: =head2
14775 #: ../src/guestfs-actions.pod:6458
14776 msgid "guestfs_vglvuuids"
14777 msgstr ""
14778
14779 # type: verbatim
14780 #: ../src/guestfs-actions.pod:6460
14781 #, no-wrap
14782 msgid ""
14783 " char **\n"
14784 " guestfs_vglvuuids (guestfs_h *g,\n"
14785 "                    const char *vgname);\n"
14786 "\n"
14787 msgstr ""
14788
14789 # type: textblock
14790 #: ../src/guestfs-actions.pod:6464 ../fish/guestfish-actions.pod:4308
14791 msgid ""
14792 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
14793 "volumes created in this volume group."
14794 msgstr ""
14795
14796 # type: textblock
14797 #: ../src/guestfs-actions.pod:6467
14798 msgid ""
14799 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
14800 "associate logical volumes and volume groups."
14801 msgstr ""
14802
14803 # type: textblock
14804 #: ../src/guestfs-actions.pod:6470
14805 msgid "See also C<guestfs_vgpvuuids>."
14806 msgstr ""
14807
14808 # type: =head2
14809 #: ../src/guestfs-actions.pod:6478
14810 msgid "guestfs_vgpvuuids"
14811 msgstr ""
14812
14813 # type: verbatim
14814 #: ../src/guestfs-actions.pod:6480
14815 #, no-wrap
14816 msgid ""
14817 " char **\n"
14818 " guestfs_vgpvuuids (guestfs_h *g,\n"
14819 "                    const char *vgname);\n"
14820 "\n"
14821 msgstr ""
14822
14823 # type: textblock
14824 #: ../src/guestfs-actions.pod:6484 ../fish/guestfish-actions.pod:4320
14825 msgid ""
14826 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
14827 "volumes that this volume group resides on."
14828 msgstr ""
14829
14830 # type: textblock
14831 #: ../src/guestfs-actions.pod:6487
14832 msgid ""
14833 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
14834 "associate physical volumes and volume groups."
14835 msgstr ""
14836
14837 # type: textblock
14838 #: ../src/guestfs-actions.pod:6490
14839 msgid "See also C<guestfs_vglvuuids>."
14840 msgstr ""
14841
14842 # type: =head2
14843 #: ../src/guestfs-actions.pod:6498
14844 msgid "guestfs_vgremove"
14845 msgstr ""
14846
14847 # type: verbatim
14848 #: ../src/guestfs-actions.pod:6500
14849 #, no-wrap
14850 msgid ""
14851 " int\n"
14852 " guestfs_vgremove (guestfs_h *g,\n"
14853 "                   const char *vgname);\n"
14854 "\n"
14855 msgstr ""
14856
14857 # type: textblock
14858 #: ../src/guestfs-actions.pod:6504 ../fish/guestfish-actions.pod:4332
14859 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
14860 msgstr ""
14861
14862 # type: textblock
14863 #: ../src/guestfs-actions.pod:6506 ../fish/guestfish-actions.pod:4334
14864 msgid "This also forcibly removes all logical volumes in the volume group (if any)."
14865 msgstr ""
14866
14867 # type: =head2
14868 #: ../src/guestfs-actions.pod:6513
14869 msgid "guestfs_vgrename"
14870 msgstr ""
14871
14872 # type: verbatim
14873 #: ../src/guestfs-actions.pod:6515
14874 #, no-wrap
14875 msgid ""
14876 " int\n"
14877 " guestfs_vgrename (guestfs_h *g,\n"
14878 "                   const char *volgroup,\n"
14879 "                   const char *newvolgroup);\n"
14880 "\n"
14881 msgstr ""
14882
14883 # type: textblock
14884 #: ../src/guestfs-actions.pod:6520 ../fish/guestfish-actions.pod:4341
14885 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
14886 msgstr ""
14887
14888 # type: =head2
14889 #: ../src/guestfs-actions.pod:6526
14890 msgid "guestfs_vgs"
14891 msgstr ""
14892
14893 # type: verbatim
14894 #: ../src/guestfs-actions.pod:6528
14895 #, no-wrap
14896 msgid ""
14897 " char **\n"
14898 " guestfs_vgs (guestfs_h *g);\n"
14899 "\n"
14900 msgstr ""
14901
14902 # type: textblock
14903 #: ../src/guestfs-actions.pod:6531 ../fish/guestfish-actions.pod:4347
14904 msgid ""
14905 "List all the volumes groups detected.  This is the equivalent of the "
14906 "L<vgs(8)> command."
14907 msgstr ""
14908
14909 # type: textblock
14910 #: ../src/guestfs-actions.pod:6534 ../fish/guestfish-actions.pod:4350
14911 msgid ""
14912 "This returns a list of just the volume group names that were detected "
14913 "(eg. C<VolGroup00>)."
14914 msgstr ""
14915
14916 # type: textblock
14917 #: ../src/guestfs-actions.pod:6537
14918 msgid "See also C<guestfs_vgs_full>."
14919 msgstr ""
14920
14921 # type: =head2
14922 #: ../src/guestfs-actions.pod:6545
14923 msgid "guestfs_vgs_full"
14924 msgstr ""
14925
14926 # type: verbatim
14927 #: ../src/guestfs-actions.pod:6547
14928 #, no-wrap
14929 msgid ""
14930 " struct guestfs_lvm_vg_list *\n"
14931 " guestfs_vgs_full (guestfs_h *g);\n"
14932 "\n"
14933 msgstr ""
14934
14935 # type: textblock
14936 #: ../src/guestfs-actions.pod:6550 ../fish/guestfish-actions.pod:4359
14937 msgid ""
14938 "List all the volumes groups detected.  This is the equivalent of the "
14939 "L<vgs(8)> command.  The \"full\" version includes all fields."
14940 msgstr ""
14941
14942 # type: textblock
14943 #: ../src/guestfs-actions.pod:6553
14944 msgid ""
14945 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
14946 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after "
14947 "use>."
14948 msgstr ""
14949
14950 # type: =head2
14951 #: ../src/guestfs-actions.pod:6559
14952 msgid "guestfs_vgscan"
14953 msgstr ""
14954
14955 # type: verbatim
14956 #: ../src/guestfs-actions.pod:6561
14957 #, no-wrap
14958 msgid ""
14959 " int\n"
14960 " guestfs_vgscan (guestfs_h *g);\n"
14961 "\n"
14962 msgstr ""
14963
14964 # type: textblock
14965 #: ../src/guestfs-actions.pod:6564 ../fish/guestfish-actions.pod:4366
14966 msgid ""
14967 "This rescans all block devices and rebuilds the list of LVM physical "
14968 "volumes, volume groups and logical volumes."
14969 msgstr ""
14970
14971 # type: =head2
14972 #: ../src/guestfs-actions.pod:6571
14973 msgid "guestfs_vguuid"
14974 msgstr ""
14975
14976 # type: verbatim
14977 #: ../src/guestfs-actions.pod:6573
14978 #, no-wrap
14979 msgid ""
14980 " char *\n"
14981 " guestfs_vguuid (guestfs_h *g,\n"
14982 "                 const char *vgname);\n"
14983 "\n"
14984 msgstr ""
14985
14986 # type: textblock
14987 #: ../src/guestfs-actions.pod:6577 ../fish/guestfish-actions.pod:4373
14988 msgid "This command returns the UUID of the LVM VG named C<vgname>."
14989 msgstr ""
14990
14991 # type: =head2
14992 #: ../src/guestfs-actions.pod:6584
14993 msgid "guestfs_wait_ready"
14994 msgstr ""
14995
14996 # type: verbatim
14997 #: ../src/guestfs-actions.pod:6586
14998 #, no-wrap
14999 msgid ""
15000 " int\n"
15001 " guestfs_wait_ready (guestfs_h *g);\n"
15002 "\n"
15003 msgstr ""
15004
15005 # type: textblock
15006 #: ../src/guestfs-actions.pod:6589
15007 msgid "This function is a no op."
15008 msgstr ""
15009
15010 # type: textblock
15011 #: ../src/guestfs-actions.pod:6591
15012 msgid ""
15013 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
15014 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
15015 "is no longer necessary because C<guestfs_launch> now does the waiting."
15016 msgstr ""
15017
15018 # type: textblock
15019 #: ../src/guestfs-actions.pod:6596
15020 msgid ""
15021 "If you see any calls to this function in code then you can just remove them, "
15022 "unless you want to retain compatibility with older versions of the API."
15023 msgstr ""
15024
15025 # type: =head2
15026 #: ../src/guestfs-actions.pod:6604
15027 msgid "guestfs_wc_c"
15028 msgstr ""
15029
15030 # type: verbatim
15031 #: ../src/guestfs-actions.pod:6606
15032 #, no-wrap
15033 msgid ""
15034 " int\n"
15035 " guestfs_wc_c (guestfs_h *g,\n"
15036 "               const char *path);\n"
15037 "\n"
15038 msgstr ""
15039
15040 # type: textblock
15041 #: ../src/guestfs-actions.pod:6610 ../fish/guestfish-actions.pod:4379
15042 msgid ""
15043 "This command counts the characters in a file, using the C<wc -c> external "
15044 "command."
15045 msgstr ""
15046
15047 # type: =head2
15048 #: ../src/guestfs-actions.pod:6617
15049 msgid "guestfs_wc_l"
15050 msgstr ""
15051
15052 # type: verbatim
15053 #: ../src/guestfs-actions.pod:6619
15054 #, no-wrap
15055 msgid ""
15056 " int\n"
15057 " guestfs_wc_l (guestfs_h *g,\n"
15058 "               const char *path);\n"
15059 "\n"
15060 msgstr ""
15061
15062 # type: textblock
15063 #: ../src/guestfs-actions.pod:6623 ../fish/guestfish-actions.pod:4386
15064 msgid ""
15065 "This command counts the lines in a file, using the C<wc -l> external "
15066 "command."
15067 msgstr ""
15068
15069 # type: =head2
15070 #: ../src/guestfs-actions.pod:6630
15071 msgid "guestfs_wc_w"
15072 msgstr ""
15073
15074 # type: verbatim
15075 #: ../src/guestfs-actions.pod:6632
15076 #, no-wrap
15077 msgid ""
15078 " int\n"
15079 " guestfs_wc_w (guestfs_h *g,\n"
15080 "               const char *path);\n"
15081 "\n"
15082 msgstr ""
15083
15084 # type: textblock
15085 #: ../src/guestfs-actions.pod:6636 ../fish/guestfish-actions.pod:4393
15086 msgid ""
15087 "This command counts the words in a file, using the C<wc -w> external "
15088 "command."
15089 msgstr ""
15090
15091 # type: =head2
15092 #: ../src/guestfs-actions.pod:6643
15093 msgid "guestfs_write"
15094 msgstr ""
15095
15096 # type: verbatim
15097 #: ../src/guestfs-actions.pod:6645
15098 #, no-wrap
15099 msgid ""
15100 " int\n"
15101 " guestfs_write (guestfs_h *g,\n"
15102 "                const char *path,\n"
15103 "                const char *content,\n"
15104 "                size_t content_size);\n"
15105 "\n"
15106 msgstr ""
15107
15108 # type: textblock
15109 #: ../src/guestfs-actions.pod:6651 ../fish/guestfish-actions.pod:4400
15110 msgid ""
15111 "This call creates a file called C<path>.  The content of the file is the "
15112 "string C<content> (which can contain any 8 bit data)."
15113 msgstr ""
15114
15115 # type: =head2
15116 #: ../src/guestfs-actions.pod:6661
15117 msgid "guestfs_write_file"
15118 msgstr ""
15119
15120 # type: verbatim
15121 #: ../src/guestfs-actions.pod:6663
15122 #, no-wrap
15123 msgid ""
15124 " int\n"
15125 " guestfs_write_file (guestfs_h *g,\n"
15126 "                     const char *path,\n"
15127 "                     const char *content,\n"
15128 "                     int size);\n"
15129 "\n"
15130 msgstr ""
15131
15132 # type: textblock
15133 #: ../src/guestfs-actions.pod:6669 ../fish/guestfish-actions.pod:4410
15134 msgid ""
15135 "This call creates a file called C<path>.  The contents of the file is the "
15136 "string C<content> (which can contain any 8 bit data), with length C<size>."
15137 msgstr ""
15138
15139 # type: textblock
15140 #: ../src/guestfs-actions.pod:6673 ../fish/guestfish-actions.pod:4414
15141 msgid ""
15142 "As a special case, if C<size> is C<0> then the length is calculated using "
15143 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
15144 msgstr ""
15145
15146 # type: textblock
15147 #: ../src/guestfs-actions.pod:6677 ../fish/guestfish-actions.pod:4418
15148 msgid ""
15149 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
15150 "I<not> work, even if the length is specified."
15151 msgstr ""
15152
15153 # type: textblock
15154 #: ../src/guestfs-actions.pod:6685 ../fish/guestfish-actions.pod:4424
15155 msgid "This function is deprecated.  In new code, use the C<write> call instead."
15156 msgstr ""
15157
15158 # type: =head2
15159 #: ../src/guestfs-actions.pod:6694
15160 msgid "guestfs_zegrep"
15161 msgstr ""
15162
15163 # type: verbatim
15164 #: ../src/guestfs-actions.pod:6696
15165 #, no-wrap
15166 msgid ""
15167 " char **\n"
15168 " guestfs_zegrep (guestfs_h *g,\n"
15169 "                 const char *regex,\n"
15170 "                 const char *path);\n"
15171 "\n"
15172 msgstr ""
15173
15174 # type: textblock
15175 #: ../src/guestfs-actions.pod:6701 ../fish/guestfish-actions.pod:4435
15176 msgid "This calls the external C<zegrep> program and returns the matching lines."
15177 msgstr ""
15178
15179 # type: =head2
15180 #: ../src/guestfs-actions.pod:6713
15181 msgid "guestfs_zegrepi"
15182 msgstr ""
15183
15184 # type: verbatim
15185 #: ../src/guestfs-actions.pod:6715
15186 #, no-wrap
15187 msgid ""
15188 " char **\n"
15189 " guestfs_zegrepi (guestfs_h *g,\n"
15190 "                  const char *regex,\n"
15191 "                  const char *path);\n"
15192 "\n"
15193 msgstr ""
15194
15195 # type: textblock
15196 #: ../src/guestfs-actions.pod:6720 ../fish/guestfish-actions.pod:4445
15197 msgid "This calls the external C<zegrep -i> program and returns the matching lines."
15198 msgstr ""
15199
15200 # type: =head2
15201 #: ../src/guestfs-actions.pod:6732
15202 msgid "guestfs_zero"
15203 msgstr ""
15204
15205 # type: verbatim
15206 #: ../src/guestfs-actions.pod:6734
15207 #, no-wrap
15208 msgid ""
15209 " int\n"
15210 " guestfs_zero (guestfs_h *g,\n"
15211 "               const char *device);\n"
15212 "\n"
15213 msgstr ""
15214
15215 # type: textblock
15216 #: ../src/guestfs-actions.pod:6738 ../fish/guestfish-actions.pod:4455
15217 msgid "This command writes zeroes over the first few blocks of C<device>."
15218 msgstr ""
15219
15220 # type: textblock
15221 #: ../src/guestfs-actions.pod:6740 ../fish/guestfish-actions.pod:4457
15222 msgid ""
15223 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
15224 "securely wipe the device).  It should be sufficient to remove any partition "
15225 "tables, filesystem superblocks and so on."
15226 msgstr ""
15227
15228 # type: textblock
15229 #: ../src/guestfs-actions.pod:6744
15230 msgid "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>."
15231 msgstr ""
15232
15233 # type: =head2
15234 #: ../src/guestfs-actions.pod:6755
15235 msgid "guestfs_zero_device"
15236 msgstr ""
15237
15238 # type: verbatim
15239 #: ../src/guestfs-actions.pod:6757
15240 #, no-wrap
15241 msgid ""
15242 " int\n"
15243 " guestfs_zero_device (guestfs_h *g,\n"
15244 "                      const char *device);\n"
15245 "\n"
15246 msgstr ""
15247
15248 # type: textblock
15249 #: ../src/guestfs-actions.pod:6761
15250 msgid ""
15251 "This command writes zeroes over the entire C<device>.  Compare with "
15252 "C<guestfs_zero> which just zeroes the first few blocks of a device."
15253 msgstr ""
15254
15255 # type: textblock
15256 #: ../src/guestfs-actions.pod:6775
15257 msgid "(Added in 1.3.1)"
15258 msgstr ""
15259
15260 # type: =head2
15261 #: ../src/guestfs-actions.pod:6777
15262 msgid "guestfs_zerofree"
15263 msgstr ""
15264
15265 # type: verbatim
15266 #: ../src/guestfs-actions.pod:6779
15267 #, no-wrap
15268 msgid ""
15269 " int\n"
15270 " guestfs_zerofree (guestfs_h *g,\n"
15271 "                   const char *device);\n"
15272 "\n"
15273 msgstr ""
15274
15275 # type: textblock
15276 #: ../src/guestfs-actions.pod:6783 ../fish/guestfish-actions.pod:4478
15277 msgid ""
15278 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
15279 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
15280 "possible to compress the filesystem more effectively."
15281 msgstr ""
15282
15283 # type: textblock
15284 #: ../src/guestfs-actions.pod:6788 ../fish/guestfish-actions.pod:4483
15285 msgid "You should B<not> run this program if the filesystem is mounted."
15286 msgstr ""
15287
15288 # type: textblock
15289 #: ../src/guestfs-actions.pod:6791 ../fish/guestfish-actions.pod:4486
15290 msgid ""
15291 "It is possible that using this program can damage the filesystem or data on "
15292 "the filesystem."
15293 msgstr ""
15294
15295 # type: =head2
15296 #: ../src/guestfs-actions.pod:6798
15297 msgid "guestfs_zfgrep"
15298 msgstr ""
15299
15300 # type: verbatim
15301 #: ../src/guestfs-actions.pod:6800
15302 #, no-wrap
15303 msgid ""
15304 " char **\n"
15305 " guestfs_zfgrep (guestfs_h *g,\n"
15306 "                 const char *pattern,\n"
15307 "                 const char *path);\n"
15308 "\n"
15309 msgstr ""
15310
15311 # type: textblock
15312 #: ../src/guestfs-actions.pod:6805 ../fish/guestfish-actions.pod:4493
15313 msgid "This calls the external C<zfgrep> program and returns the matching lines."
15314 msgstr ""
15315
15316 # type: =head2
15317 #: ../src/guestfs-actions.pod:6817
15318 msgid "guestfs_zfgrepi"
15319 msgstr ""
15320
15321 # type: verbatim
15322 #: ../src/guestfs-actions.pod:6819
15323 #, no-wrap
15324 msgid ""
15325 " char **\n"
15326 " guestfs_zfgrepi (guestfs_h *g,\n"
15327 "                  const char *pattern,\n"
15328 "                  const char *path);\n"
15329 "\n"
15330 msgstr ""
15331
15332 # type: textblock
15333 #: ../src/guestfs-actions.pod:6824 ../fish/guestfish-actions.pod:4503
15334 msgid "This calls the external C<zfgrep -i> program and returns the matching lines."
15335 msgstr ""
15336
15337 # type: =head2
15338 #: ../src/guestfs-actions.pod:6836
15339 msgid "guestfs_zfile"
15340 msgstr ""
15341
15342 # type: verbatim
15343 #: ../src/guestfs-actions.pod:6838
15344 #, no-wrap
15345 msgid ""
15346 " char *\n"
15347 " guestfs_zfile (guestfs_h *g,\n"
15348 "                const char *meth,\n"
15349 "                const char *path);\n"
15350 "\n"
15351 msgstr ""
15352
15353 # type: textblock
15354 #: ../src/guestfs-actions.pod:6843 ../fish/guestfish-actions.pod:4513
15355 msgid "This command runs C<file> after first decompressing C<path> using C<method>."
15356 msgstr ""
15357
15358 # type: textblock
15359 #: ../src/guestfs-actions.pod:6846 ../fish/guestfish-actions.pod:4516
15360 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
15361 msgstr ""
15362
15363 # type: textblock
15364 #: ../src/guestfs-actions.pod:6848
15365 msgid ""
15366 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
15367 "files."
15368 msgstr ""
15369
15370 # type: textblock
15371 #: ../src/guestfs-actions.pod:6854 ../fish/guestfish-actions.pod:4521
15372 msgid "This function is deprecated.  In new code, use the C<file> call instead."
15373 msgstr ""
15374
15375 # type: =head2
15376 #: ../src/guestfs-actions.pod:6863
15377 msgid "guestfs_zgrep"
15378 msgstr ""
15379
15380 # type: verbatim
15381 #: ../src/guestfs-actions.pod:6865
15382 #, no-wrap
15383 msgid ""
15384 " char **\n"
15385 " guestfs_zgrep (guestfs_h *g,\n"
15386 "                const char *regex,\n"
15387 "                const char *path);\n"
15388 "\n"
15389 msgstr ""
15390
15391 # type: textblock
15392 #: ../src/guestfs-actions.pod:6870 ../fish/guestfish-actions.pod:4532
15393 msgid "This calls the external C<zgrep> program and returns the matching lines."
15394 msgstr ""
15395
15396 # type: =head2
15397 #: ../src/guestfs-actions.pod:6882
15398 msgid "guestfs_zgrepi"
15399 msgstr ""
15400
15401 # type: verbatim
15402 #: ../src/guestfs-actions.pod:6884
15403 #, no-wrap
15404 msgid ""
15405 " char **\n"
15406 " guestfs_zgrepi (guestfs_h *g,\n"
15407 "                 const char *regex,\n"
15408 "                 const char *path);\n"
15409 "\n"
15410 msgstr ""
15411
15412 # type: textblock
15413 #: ../src/guestfs-actions.pod:6889 ../fish/guestfish-actions.pod:4542
15414 msgid "This calls the external C<zgrep -i> program and returns the matching lines."
15415 msgstr ""
15416
15417 # type: =item
15418 #: ../src/guestfs-availability.pod:3
15419 msgid "B<augeas>"
15420 msgstr ""
15421
15422 # type: textblock
15423 #: ../src/guestfs-availability.pod:5
15424 msgid ""
15425 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> "
15426 "L</guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> "
15427 "L</guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> "
15428 "L</guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> "
15429 "L</guestfs_aug_rm> L</guestfs_aug_save> L</guestfs_aug_set>"
15430 msgstr ""
15431
15432 # type: =item
15433 #: ../src/guestfs-availability.pod:21
15434 msgid "B<inotify>"
15435 msgstr ""
15436
15437 # type: textblock
15438 #: ../src/guestfs-availability.pod:23
15439 msgid ""
15440 "The following functions: L</guestfs_inotify_add_watch> "
15441 "L</guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> "
15442 "L</guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
15443 msgstr ""
15444
15445 # type: =item
15446 #: ../src/guestfs-availability.pod:31
15447 msgid "B<linuxfsuuid>"
15448 msgstr ""
15449
15450 # type: textblock
15451 #: ../src/guestfs-availability.pod:33
15452 msgid ""
15453 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> "
15454 "L</guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
15455 msgstr ""
15456
15457 # type: =item
15458 #: ../src/guestfs-availability.pod:40
15459 msgid "B<linuxmodules>"
15460 msgstr ""
15461
15462 # type: textblock
15463 #: ../src/guestfs-availability.pod:42
15464 msgid "The following functions: L</guestfs_modprobe>"
15465 msgstr ""
15466
15467 # type: =item
15468 #: ../src/guestfs-availability.pod:45
15469 msgid "B<linuxxattrs>"
15470 msgstr ""
15471
15472 # type: textblock
15473 #: ../src/guestfs-availability.pod:47
15474 msgid ""
15475 "The following functions: L</guestfs_getxattrs> L</guestfs_lgetxattrs> "
15476 "L</guestfs_lremovexattr> L</guestfs_lsetxattr> L</guestfs_lxattrlist> "
15477 "L</guestfs_removexattr> L</guestfs_setxattr>"
15478 msgstr ""
15479
15480 # type: =item
15481 #: ../src/guestfs-availability.pod:56
15482 msgid "B<luks>"
15483 msgstr ""
15484
15485 # type: textblock
15486 #: ../src/guestfs-availability.pod:58
15487 msgid ""
15488 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> "
15489 "L</guestfs_luks_format> L</guestfs_luks_format_cipher> "
15490 "L</guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
15491 msgstr ""
15492
15493 # type: =item
15494 #: ../src/guestfs-availability.pod:67
15495 msgid "B<lvm2>"
15496 msgstr ""
15497
15498 # type: textblock
15499 #: ../src/guestfs-availability.pod:69
15500 msgid ""
15501 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> "
15502 "L</guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> "
15503 "L</guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> "
15504 "L</guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> "
15505 "L</guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> "
15506 "L</guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> "
15507 "L</guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> "
15508 "L</guestfs_vgs_full>"
15509 msgstr ""
15510
15511 # type: =item
15512 #: ../src/guestfs-availability.pod:92
15513 msgid "B<mknod>"
15514 msgstr ""
15515
15516 # type: textblock
15517 #: ../src/guestfs-availability.pod:94
15518 msgid ""
15519 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> "
15520 "L</guestfs_mknod_b> L</guestfs_mknod_c>"
15521 msgstr ""
15522
15523 # type: =item
15524 #: ../src/guestfs-availability.pod:100
15525 msgid "B<ntfs3g>"
15526 msgstr ""
15527
15528 # type: textblock
15529 #: ../src/guestfs-availability.pod:102
15530 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
15531 msgstr ""
15532
15533 # type: =item
15534 #: ../src/guestfs-availability.pod:105
15535 msgid "B<ntfsprogs>"
15536 msgstr ""
15537
15538 # type: textblock
15539 #: ../src/guestfs-availability.pod:107
15540 msgid "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_size>"
15541 msgstr ""
15542
15543 # type: =item
15544 #: ../src/guestfs-availability.pod:111
15545 msgid "B<realpath>"
15546 msgstr ""
15547
15548 # type: textblock
15549 #: ../src/guestfs-availability.pod:113
15550 msgid "The following functions: L</guestfs_realpath>"
15551 msgstr ""
15552
15553 # type: =item
15554 #: ../src/guestfs-availability.pod:116
15555 msgid "B<scrub>"
15556 msgstr ""
15557
15558 # type: textblock
15559 #: ../src/guestfs-availability.pod:118
15560 msgid ""
15561 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> "
15562 "L</guestfs_scrub_freespace>"
15563 msgstr ""
15564
15565 # type: =item
15566 #: ../src/guestfs-availability.pod:123
15567 msgid "B<selinux>"
15568 msgstr ""
15569
15570 # type: textblock
15571 #: ../src/guestfs-availability.pod:125
15572 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
15573 msgstr ""
15574
15575 # type: =item
15576 #: ../src/guestfs-availability.pod:129
15577 msgid "B<xz>"
15578 msgstr ""
15579
15580 # type: textblock
15581 #: ../src/guestfs-availability.pod:131
15582 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
15583 msgstr ""
15584
15585 # type: =item
15586 #: ../src/guestfs-availability.pod:135
15587 msgid "B<zerofree>"
15588 msgstr ""
15589
15590 # type: textblock
15591 #: ../src/guestfs-availability.pod:137
15592 msgid "The following functions: L</guestfs_zerofree>"
15593 msgstr ""
15594
15595 # type: =head2
15596 #: ../src/guestfs-structs.pod:1
15597 msgid "guestfs_int_bool"
15598 msgstr ""
15599
15600 # type: verbatim
15601 #: ../src/guestfs-structs.pod:3
15602 #, no-wrap
15603 msgid ""
15604 " struct guestfs_int_bool {\n"
15605 "   int32_t i;\n"
15606 "   int32_t b;\n"
15607 " };\n"
15608 " \n"
15609 msgstr ""
15610
15611 # type: verbatim
15612 #: ../src/guestfs-structs.pod:8
15613 #, no-wrap
15614 msgid ""
15615 " struct guestfs_int_bool_list {\n"
15616 "   uint32_t len; /* Number of elements in list. */\n"
15617 "   struct guestfs_int_bool *val; /* Elements. */\n"
15618 " };\n"
15619 " \n"
15620 msgstr ""
15621
15622 # type: verbatim
15623 #: ../src/guestfs-structs.pod:13
15624 #, no-wrap
15625 msgid ""
15626 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
15627 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
15628 "\n"
15629 msgstr ""
15630
15631 # type: =head2
15632 #: ../src/guestfs-structs.pod:16
15633 msgid "guestfs_lvm_pv"
15634 msgstr ""
15635
15636 # type: verbatim
15637 #: ../src/guestfs-structs.pod:18
15638 #, no-wrap
15639 msgid ""
15640 " struct guestfs_lvm_pv {\n"
15641 "   char *pv_name;\n"
15642 "   /* The next field is NOT nul-terminated, be careful when printing it: "
15643 "*/\n"
15644 "   char pv_uuid[32];\n"
15645 "   char *pv_fmt;\n"
15646 "   uint64_t pv_size;\n"
15647 "   uint64_t dev_size;\n"
15648 "   uint64_t pv_free;\n"
15649 "   uint64_t pv_used;\n"
15650 "   char *pv_attr;\n"
15651 "   int64_t pv_pe_count;\n"
15652 "   int64_t pv_pe_alloc_count;\n"
15653 "   char *pv_tags;\n"
15654 "   uint64_t pe_start;\n"
15655 "   int64_t pv_mda_count;\n"
15656 "   uint64_t pv_mda_free;\n"
15657 " };\n"
15658 " \n"
15659 msgstr ""
15660
15661 # type: verbatim
15662 #: ../src/guestfs-structs.pod:36
15663 #, no-wrap
15664 msgid ""
15665 " struct guestfs_lvm_pv_list {\n"
15666 "   uint32_t len; /* Number of elements in list. */\n"
15667 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
15668 " };\n"
15669 " \n"
15670 msgstr ""
15671
15672 # type: verbatim
15673 #: ../src/guestfs-structs.pod:41
15674 #, no-wrap
15675 msgid ""
15676 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
15677 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
15678 "\n"
15679 msgstr ""
15680
15681 # type: =head2
15682 #: ../src/guestfs-structs.pod:44
15683 msgid "guestfs_lvm_vg"
15684 msgstr ""
15685
15686 # type: verbatim
15687 #: ../src/guestfs-structs.pod:46
15688 #, no-wrap
15689 msgid ""
15690 " struct guestfs_lvm_vg {\n"
15691 "   char *vg_name;\n"
15692 "   /* The next field is NOT nul-terminated, be careful when printing it: "
15693 "*/\n"
15694 "   char vg_uuid[32];\n"
15695 "   char *vg_fmt;\n"
15696 "   char *vg_attr;\n"
15697 "   uint64_t vg_size;\n"
15698 "   uint64_t vg_free;\n"
15699 "   char *vg_sysid;\n"
15700 "   uint64_t vg_extent_size;\n"
15701 "   int64_t vg_extent_count;\n"
15702 "   int64_t vg_free_count;\n"
15703 "   int64_t max_lv;\n"
15704 "   int64_t max_pv;\n"
15705 "   int64_t pv_count;\n"
15706 "   int64_t lv_count;\n"
15707 "   int64_t snap_count;\n"
15708 "   int64_t vg_seqno;\n"
15709 "   char *vg_tags;\n"
15710 "   int64_t vg_mda_count;\n"
15711 "   uint64_t vg_mda_free;\n"
15712 " };\n"
15713 " \n"
15714 msgstr ""
15715
15716 # type: verbatim
15717 #: ../src/guestfs-structs.pod:69
15718 #, no-wrap
15719 msgid ""
15720 " struct guestfs_lvm_vg_list {\n"
15721 "   uint32_t len; /* Number of elements in list. */\n"
15722 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
15723 " };\n"
15724 " \n"
15725 msgstr ""
15726
15727 # type: verbatim
15728 #: ../src/guestfs-structs.pod:74
15729 #, no-wrap
15730 msgid ""
15731 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
15732 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
15733 "\n"
15734 msgstr ""
15735
15736 # type: =head2
15737 #: ../src/guestfs-structs.pod:77
15738 msgid "guestfs_lvm_lv"
15739 msgstr ""
15740
15741 # type: verbatim
15742 #: ../src/guestfs-structs.pod:79
15743 #, no-wrap
15744 msgid ""
15745 " struct guestfs_lvm_lv {\n"
15746 "   char *lv_name;\n"
15747 "   /* The next field is NOT nul-terminated, be careful when printing it: "
15748 "*/\n"
15749 "   char lv_uuid[32];\n"
15750 "   char *lv_attr;\n"
15751 "   int64_t lv_major;\n"
15752 "   int64_t lv_minor;\n"
15753 "   int64_t lv_kernel_major;\n"
15754 "   int64_t lv_kernel_minor;\n"
15755 "   uint64_t lv_size;\n"
15756 "   int64_t seg_count;\n"
15757 "   char *origin;\n"
15758 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
15759 "   float snap_percent;\n"
15760 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
15761 "   float copy_percent;\n"
15762 "   char *move_pv;\n"
15763 "   char *lv_tags;\n"
15764 "   char *mirror_log;\n"
15765 "   char *modules;\n"
15766 " };\n"
15767 " \n"
15768 msgstr ""
15769
15770 # type: verbatim
15771 #: ../src/guestfs-structs.pod:101
15772 #, no-wrap
15773 msgid ""
15774 " struct guestfs_lvm_lv_list {\n"
15775 "   uint32_t len; /* Number of elements in list. */\n"
15776 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
15777 " };\n"
15778 " \n"
15779 msgstr ""
15780
15781 # type: verbatim
15782 #: ../src/guestfs-structs.pod:106
15783 #, no-wrap
15784 msgid ""
15785 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
15786 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
15787 "\n"
15788 msgstr ""
15789
15790 # type: verbatim
15791 #: ../src/guestfs-structs.pod:111
15792 #, no-wrap
15793 msgid ""
15794 " struct guestfs_stat {\n"
15795 "   int64_t dev;\n"
15796 "   int64_t ino;\n"
15797 "   int64_t mode;\n"
15798 "   int64_t nlink;\n"
15799 "   int64_t uid;\n"
15800 "   int64_t gid;\n"
15801 "   int64_t rdev;\n"
15802 "   int64_t size;\n"
15803 "   int64_t blksize;\n"
15804 "   int64_t blocks;\n"
15805 "   int64_t atime;\n"
15806 "   int64_t mtime;\n"
15807 "   int64_t ctime;\n"
15808 " };\n"
15809 " \n"
15810 msgstr ""
15811
15812 # type: verbatim
15813 #: ../src/guestfs-structs.pod:127
15814 #, no-wrap
15815 msgid ""
15816 " struct guestfs_stat_list {\n"
15817 "   uint32_t len; /* Number of elements in list. */\n"
15818 "   struct guestfs_stat *val; /* Elements. */\n"
15819 " };\n"
15820 " \n"
15821 msgstr ""
15822
15823 # type: verbatim
15824 #: ../src/guestfs-structs.pod:132
15825 #, no-wrap
15826 msgid ""
15827 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
15828 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
15829 "\n"
15830 msgstr ""
15831
15832 # type: verbatim
15833 #: ../src/guestfs-structs.pod:137
15834 #, no-wrap
15835 msgid ""
15836 " struct guestfs_statvfs {\n"
15837 "   int64_t bsize;\n"
15838 "   int64_t frsize;\n"
15839 "   int64_t blocks;\n"
15840 "   int64_t bfree;\n"
15841 "   int64_t bavail;\n"
15842 "   int64_t files;\n"
15843 "   int64_t ffree;\n"
15844 "   int64_t favail;\n"
15845 "   int64_t fsid;\n"
15846 "   int64_t flag;\n"
15847 "   int64_t namemax;\n"
15848 " };\n"
15849 " \n"
15850 msgstr ""
15851
15852 # type: verbatim
15853 #: ../src/guestfs-structs.pod:151
15854 #, no-wrap
15855 msgid ""
15856 " struct guestfs_statvfs_list {\n"
15857 "   uint32_t len; /* Number of elements in list. */\n"
15858 "   struct guestfs_statvfs *val; /* Elements. */\n"
15859 " };\n"
15860 " \n"
15861 msgstr ""
15862
15863 # type: verbatim
15864 #: ../src/guestfs-structs.pod:156
15865 #, no-wrap
15866 msgid ""
15867 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
15868 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
15869 "\n"
15870 msgstr ""
15871
15872 # type: =head2
15873 #: ../src/guestfs-structs.pod:159
15874 msgid "guestfs_dirent"
15875 msgstr ""
15876
15877 # type: verbatim
15878 #: ../src/guestfs-structs.pod:161
15879 #, no-wrap
15880 msgid ""
15881 " struct guestfs_dirent {\n"
15882 "   int64_t ino;\n"
15883 "   char ftyp;\n"
15884 "   char *name;\n"
15885 " };\n"
15886 " \n"
15887 msgstr ""
15888
15889 # type: verbatim
15890 #: ../src/guestfs-structs.pod:167
15891 #, no-wrap
15892 msgid ""
15893 " struct guestfs_dirent_list {\n"
15894 "   uint32_t len; /* Number of elements in list. */\n"
15895 "   struct guestfs_dirent *val; /* Elements. */\n"
15896 " };\n"
15897 " \n"
15898 msgstr ""
15899
15900 # type: verbatim
15901 #: ../src/guestfs-structs.pod:172
15902 #, no-wrap
15903 msgid ""
15904 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
15905 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
15906 "\n"
15907 msgstr ""
15908
15909 # type: verbatim
15910 #: ../src/guestfs-structs.pod:177
15911 #, no-wrap
15912 msgid ""
15913 " struct guestfs_version {\n"
15914 "   int64_t major;\n"
15915 "   int64_t minor;\n"
15916 "   int64_t release;\n"
15917 "   char *extra;\n"
15918 " };\n"
15919 " \n"
15920 msgstr ""
15921
15922 # type: verbatim
15923 #: ../src/guestfs-structs.pod:184
15924 #, no-wrap
15925 msgid ""
15926 " struct guestfs_version_list {\n"
15927 "   uint32_t len; /* Number of elements in list. */\n"
15928 "   struct guestfs_version *val; /* Elements. */\n"
15929 " };\n"
15930 " \n"
15931 msgstr ""
15932
15933 # type: verbatim
15934 #: ../src/guestfs-structs.pod:189
15935 #, no-wrap
15936 msgid ""
15937 " void guestfs_free_version (struct guestfs_free_version *);\n"
15938 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
15939 "\n"
15940 msgstr ""
15941
15942 # type: =head2
15943 #: ../src/guestfs-structs.pod:192
15944 msgid "guestfs_xattr"
15945 msgstr ""
15946
15947 # type: verbatim
15948 #: ../src/guestfs-structs.pod:194
15949 #, no-wrap
15950 msgid ""
15951 " struct guestfs_xattr {\n"
15952 "   char *attrname;\n"
15953 "   /* The next two fields describe a byte array. */\n"
15954 "   uint32_t attrval_len;\n"
15955 "   char *attrval;\n"
15956 " };\n"
15957 " \n"
15958 msgstr ""
15959
15960 # type: verbatim
15961 #: ../src/guestfs-structs.pod:201
15962 #, no-wrap
15963 msgid ""
15964 " struct guestfs_xattr_list {\n"
15965 "   uint32_t len; /* Number of elements in list. */\n"
15966 "   struct guestfs_xattr *val; /* Elements. */\n"
15967 " };\n"
15968 " \n"
15969 msgstr ""
15970
15971 # type: verbatim
15972 #: ../src/guestfs-structs.pod:206
15973 #, no-wrap
15974 msgid ""
15975 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
15976 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
15977 "\n"
15978 msgstr ""
15979
15980 # type: =head2
15981 #: ../src/guestfs-structs.pod:209
15982 msgid "guestfs_inotify_event"
15983 msgstr ""
15984
15985 # type: verbatim
15986 #: ../src/guestfs-structs.pod:211
15987 #, no-wrap
15988 msgid ""
15989 " struct guestfs_inotify_event {\n"
15990 "   int64_t in_wd;\n"
15991 "   uint32_t in_mask;\n"
15992 "   uint32_t in_cookie;\n"
15993 "   char *in_name;\n"
15994 " };\n"
15995 " \n"
15996 msgstr ""
15997
15998 # type: verbatim
15999 #: ../src/guestfs-structs.pod:218
16000 #, no-wrap
16001 msgid ""
16002 " struct guestfs_inotify_event_list {\n"
16003 "   uint32_t len; /* Number of elements in list. */\n"
16004 "   struct guestfs_inotify_event *val; /* Elements. */\n"
16005 " };\n"
16006 " \n"
16007 msgstr ""
16008
16009 # type: verbatim
16010 #: ../src/guestfs-structs.pod:223
16011 #, no-wrap
16012 msgid ""
16013 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
16014 " void guestfs_free_inotify_event_list (struct "
16015 "guestfs_free_inotify_event_list *);\n"
16016 "\n"
16017 msgstr ""
16018
16019 # type: =head2
16020 #: ../src/guestfs-structs.pod:226
16021 msgid "guestfs_partition"
16022 msgstr ""
16023
16024 # type: verbatim
16025 #: ../src/guestfs-structs.pod:228
16026 #, no-wrap
16027 msgid ""
16028 " struct guestfs_partition {\n"
16029 "   int32_t part_num;\n"
16030 "   uint64_t part_start;\n"
16031 "   uint64_t part_end;\n"
16032 "   uint64_t part_size;\n"
16033 " };\n"
16034 " \n"
16035 msgstr ""
16036
16037 # type: verbatim
16038 #: ../src/guestfs-structs.pod:235
16039 #, no-wrap
16040 msgid ""
16041 " struct guestfs_partition_list {\n"
16042 "   uint32_t len; /* Number of elements in list. */\n"
16043 "   struct guestfs_partition *val; /* Elements. */\n"
16044 " };\n"
16045 " \n"
16046 msgstr ""
16047
16048 # type: verbatim
16049 #: ../src/guestfs-structs.pod:240
16050 #, no-wrap
16051 msgid ""
16052 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
16053 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
16054 "\n"
16055 msgstr ""
16056
16057 # type: textblock
16058 #: ../fish/guestfish.pod:5
16059 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
16060 msgstr ""
16061
16062 # type: verbatim
16063 #: ../fish/guestfish.pod:9
16064 #, no-wrap
16065 msgid ""
16066 " guestfish [--options] [commands]\n"
16067 "\n"
16068 msgstr ""
16069
16070 # type: verbatim
16071 #: ../fish/guestfish.pod:11
16072 #, no-wrap
16073 msgid ""
16074 " guestfish\n"
16075 "\n"
16076 msgstr ""
16077
16078 # type: verbatim
16079 #: ../fish/guestfish.pod:13
16080 #, no-wrap
16081 msgid ""
16082 " guestfish [--ro|--rw] -a disk.img\n"
16083 "\n"
16084 msgstr ""
16085
16086 # type: verbatim
16087 #: ../fish/guestfish.pod:15
16088 #, no-wrap
16089 msgid ""
16090 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
16091 "\n"
16092 msgstr ""
16093
16094 # type: verbatim
16095 #: ../fish/guestfish.pod:17
16096 #, no-wrap
16097 msgid ""
16098 " guestfish -d libvirt-domain\n"
16099 "\n"
16100 msgstr ""
16101
16102 # type: verbatim
16103 #: ../fish/guestfish.pod:19
16104 #, no-wrap
16105 msgid ""
16106 " guestfish [--ro|--rw] -a disk.img -i\n"
16107 "\n"
16108 msgstr ""
16109
16110 # type: verbatim
16111 #: ../fish/guestfish.pod:21
16112 #, no-wrap
16113 msgid ""
16114 " guestfish -d libvirt-domain -i\n"
16115 "\n"
16116 msgstr ""
16117
16118 # type: =head1
16119 #: ../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
16120 msgid "WARNING"
16121 msgstr ""
16122
16123 # type: textblock
16124 #: ../fish/guestfish.pod:25
16125 msgid ""
16126 "Using guestfish in read/write mode on live virtual machines can be "
16127 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
16128 "option to use guestfish safely if the disk image or virtual machine might be "
16129 "live."
16130 msgstr ""
16131
16132 # type: textblock
16133 #: ../fish/guestfish.pod:32
16134 msgid ""
16135 "Guestfish is a shell and command-line tool for examining and modifying "
16136 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
16137 "functionality of the guestfs API, see L<guestfs(3)>."
16138 msgstr ""
16139
16140 # type: textblock
16141 #: ../fish/guestfish.pod:36
16142 msgid ""
16143 "Guestfish gives you structured access to the libguestfs API, from shell "
16144 "scripts or the command line or interactively.  If you want to rescue a "
16145 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
16146 "command."
16147 msgstr ""
16148
16149 # type: =head1
16150 #: ../fish/guestfish.pod:41 ../fish/guestfish.pod:846 ../fuse/guestmount.pod:39 ../tools/virt-edit.pl:58 ../tools/virt-resize.pl:66 ../tools/virt-tar.pl:45
16151 msgid "EXAMPLES"
16152 msgstr ""
16153
16154 # type: =head2
16155 #: ../fish/guestfish.pod:43
16156 msgid "As an interactive shell"
16157 msgstr ""
16158
16159 # type: verbatim
16160 #: ../fish/guestfish.pod:45
16161 #, no-wrap
16162 msgid ""
16163 " $ guestfish\n"
16164 " \n"
16165 msgstr ""
16166
16167 # type: verbatim
16168 #: ../fish/guestfish.pod:47
16169 #, no-wrap
16170 msgid ""
16171 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
16172 " editing virtual machine filesystems.\n"
16173 " \n"
16174 msgstr ""
16175
16176 # type: verbatim
16177 #: ../fish/guestfish.pod:50
16178 #, no-wrap
16179 msgid ""
16180 " Type: 'help' for a list of commands\n"
16181 "       'man' to read the manual\n"
16182 "       'quit' to quit the shell\n"
16183 " \n"
16184 msgstr ""
16185
16186 # type: verbatim
16187 #: ../fish/guestfish.pod:54
16188 #, no-wrap
16189 msgid ""
16190 " ><fs> add-ro disk.img\n"
16191 " ><fs> run\n"
16192 " ><fs> list-filesystems\n"
16193 " /dev/sda1: ext4\n"
16194 " /dev/vg_guest/lv_root: ext4\n"
16195 " /dev/vg_guest/lv_swap: swap\n"
16196 " ><fs> mount /dev/vg_guest/lv_root /\n"
16197 " ><fs> cat /etc/fstab\n"
16198 " # /etc/fstab\n"
16199 " # Created by anaconda\n"
16200 " [...]\n"
16201 " ><fs> exit\n"
16202 "\n"
16203 msgstr ""
16204
16205 # type: =head2
16206 #: ../fish/guestfish.pod:67
16207 msgid "From shell scripts"
16208 msgstr ""
16209
16210 # type: textblock
16211 #: ../fish/guestfish.pod:69
16212 msgid "Create a new C</etc/motd> file in a guest or disk image:"
16213 msgstr ""
16214
16215 # type: verbatim
16216 #: ../fish/guestfish.pod:71
16217 #, no-wrap
16218 msgid ""
16219 " guestfish <<_EOF_\n"
16220 " add disk.img\n"
16221 " run\n"
16222 " mount /dev/vg_guest/lv_root /\n"
16223 " write /etc/motd \"Welcome, new users\"\n"
16224 " _EOF_\n"
16225 "\n"
16226 msgstr ""
16227
16228 # type: textblock
16229 #: ../fish/guestfish.pod:78
16230 msgid "List the LVM logical volumes in a disk image:"
16231 msgstr ""
16232
16233 # type: verbatim
16234 #: ../fish/guestfish.pod:80
16235 #, no-wrap
16236 msgid ""
16237 " guestfish -a disk.img --ro <<_EOF_\n"
16238 " run\n"
16239 " lvs\n"
16240 " _EOF_\n"
16241 "\n"
16242 msgstr ""
16243
16244 # type: textblock
16245 #: ../fish/guestfish.pod:85
16246 msgid "List all the filesystems in a disk image:"
16247 msgstr ""
16248
16249 # type: verbatim
16250 #: ../fish/guestfish.pod:87
16251 #, no-wrap
16252 msgid ""
16253 " guestfish -a disk.img --ro <<_EOF_\n"
16254 " run\n"
16255 " list-filesystems\n"
16256 " _EOF_\n"
16257 "\n"
16258 msgstr ""
16259
16260 # type: =head2
16261 #: ../fish/guestfish.pod:92
16262 msgid "On one command line"
16263 msgstr ""
16264
16265 # type: textblock
16266 #: ../fish/guestfish.pod:94
16267 msgid "Update C</etc/resolv.conf> in a guest:"
16268 msgstr ""
16269
16270 # type: verbatim
16271 #: ../fish/guestfish.pod:96
16272 #, no-wrap
16273 msgid ""
16274 " guestfish \\\n"
16275 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
16276 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
16277 "\n"
16278 msgstr ""
16279
16280 # type: textblock
16281 #: ../fish/guestfish.pod:100
16282 msgid "Edit C</boot/grub/grub.conf> interactively:"
16283 msgstr ""
16284
16285 # type: verbatim
16286 #: ../fish/guestfish.pod:102
16287 #, no-wrap
16288 msgid ""
16289 " guestfish --rw --add disk.img \\\n"
16290 "   --mount /dev/vg_guest/lv_root \\\n"
16291 "   --mount /dev/sda1:/boot \\\n"
16292 "   edit /boot/grub/grub.conf\n"
16293 "\n"
16294 msgstr ""
16295
16296 # type: =head2
16297 #: ../fish/guestfish.pod:107
16298 msgid "Mount disks automatically"
16299 msgstr ""
16300
16301 # type: textblock
16302 #: ../fish/guestfish.pod:109
16303 msgid ""
16304 "Use the I<-i> option to automatically mount the disks from a virtual "
16305 "machine:"
16306 msgstr ""
16307
16308 # type: verbatim
16309 #: ../fish/guestfish.pod:112
16310 #, no-wrap
16311 msgid ""
16312 " guestfish --ro -a disk.img -i cat /etc/group\n"
16313 "\n"
16314 msgstr ""
16315
16316 # type: verbatim
16317 #: ../fish/guestfish.pod:114
16318 #, no-wrap
16319 msgid ""
16320 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
16321 "\n"
16322 msgstr ""
16323
16324 # type: textblock
16325 #: ../fish/guestfish.pod:116
16326 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
16327 msgstr ""
16328
16329 # type: verbatim
16330 #: ../fish/guestfish.pod:118
16331 #, no-wrap
16332 msgid ""
16333 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
16334 "\n"
16335 msgstr ""
16336
16337 # type: =head2
16338 #: ../fish/guestfish.pod:120
16339 msgid "As a script interpreter"
16340 msgstr ""
16341
16342 # type: textblock
16343 #: ../fish/guestfish.pod:122
16344 msgid "Create a 100MB disk containing an ext2-formatted partition:"
16345 msgstr ""
16346
16347 # type: verbatim
16348 #: ../fish/guestfish.pod:124
16349 #, no-wrap
16350 msgid ""
16351 " #!/usr/bin/guestfish -f\n"
16352 " sparse test1.img 100M\n"
16353 " run\n"
16354 " part-disk /dev/sda mbr\n"
16355 " mkfs ext2 /dev/sda1\n"
16356 "\n"
16357 msgstr ""
16358
16359 # type: =head2
16360 #: ../fish/guestfish.pod:130
16361 msgid "Start with a prepared disk"
16362 msgstr ""
16363
16364 # type: textblock
16365 #: ../fish/guestfish.pod:132
16366 msgid ""
16367 "An alternate way to create a 100MB disk called C<test1.img> containing a "
16368 "single ext2-formatted partition:"
16369 msgstr ""
16370
16371 # type: verbatim
16372 #: ../fish/guestfish.pod:135
16373 #, no-wrap
16374 msgid ""
16375 " guestfish -N fs\n"
16376 "\n"
16377 msgstr ""
16378
16379 # type: textblock
16380 #: ../fish/guestfish.pod:137
16381 msgid "To list what is available do:"
16382 msgstr ""
16383
16384 # type: verbatim
16385 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:837
16386 #, no-wrap
16387 msgid ""
16388 " guestfish -N help | less\n"
16389 "\n"
16390 msgstr ""
16391
16392 # type: =head2
16393 #: ../fish/guestfish.pod:141
16394 msgid "Remote control"
16395 msgstr ""
16396
16397 # type: verbatim
16398 #: ../fish/guestfish.pod:143
16399 #, no-wrap
16400 msgid ""
16401 " eval \"`guestfish --listen`\"\n"
16402 " guestfish --remote add-ro disk.img\n"
16403 " guestfish --remote run\n"
16404 " guestfish --remote lvs\n"
16405 "\n"
16406 msgstr ""
16407
16408 # type: =head1
16409 #: ../fish/guestfish.pod:148 ../test-tool/libguestfs-test-tool.pod:37 ../fuse/guestmount.pod:73 ../inspector/virt-inspector.pl:68 ../tools/virt-edit.pl:72 ../tools/virt-win-reg.pl:171 ../tools/virt-df.pl:71 ../tools/virt-ls.pl:78 ../tools/virt-resize.pl:257 ../tools/virt-list-filesystems.pl:50 ../tools/virt-tar.pl:98 ../tools/virt-rescue.pl:103 ../tools/virt-make-fs.pl:153 ../tools/virt-list-partitions.pl:51
16410 msgid "OPTIONS"
16411 msgstr ""
16412
16413 # type: =item
16414 #: ../fish/guestfish.pod:152 ../fuse/guestmount.pod:131 ../inspector/virt-inspector.pl:76 ../tools/virt-edit.pl:80 ../tools/virt-win-reg.pl:179 ../tools/virt-df.pl:79 ../tools/virt-ls.pl:86 ../tools/virt-resize.pl:265 ../tools/virt-list-filesystems.pl:58 ../tools/virt-tar.pl:106 ../tools/virt-rescue.pl:111 ../tools/virt-make-fs.pl:161 ../tools/virt-list-partitions.pl:59
16415 msgid "B<--help>"
16416 msgstr ""
16417
16418 # type: textblock
16419 #: ../fish/guestfish.pod:154
16420 msgid "Displays general help on options."
16421 msgstr ""
16422
16423 # type: =item
16424 #: ../fish/guestfish.pod:156
16425 msgid "B<-h> | B<--cmd-help>"
16426 msgstr ""
16427
16428 # type: textblock
16429 #: ../fish/guestfish.pod:158
16430 msgid "Lists all available guestfish commands."
16431 msgstr ""
16432
16433 # type: =item
16434 #: ../fish/guestfish.pod:160
16435 msgid "B<-h cmd> | B<--cmd-help cmd>"
16436 msgstr ""
16437
16438 # type: textblock
16439 #: ../fish/guestfish.pod:162
16440 msgid "Displays detailed help on a single command C<cmd>."
16441 msgstr ""
16442
16443 # type: =item
16444 #: ../fish/guestfish.pod:164 ../fuse/guestmount.pod:77
16445 msgid "B<-a image> | B<--add image>"
16446 msgstr ""
16447
16448 # type: textblock
16449 #: ../fish/guestfish.pod:166
16450 msgid "Add a block device or virtual machine image to the shell."
16451 msgstr ""
16452
16453 # type: textblock
16454 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:81
16455 msgid ""
16456 "The format of the disk image is auto-detected.  To override this and force a "
16457 "particular format use the I<--format=..> option."
16458 msgstr ""
16459
16460 # type: =item
16461 #: ../fish/guestfish.pod:171 ../fuse/guestmount.pod:84
16462 msgid "B<-c URI> | B<--connect URI>"
16463 msgstr ""
16464
16465 # type: textblock
16466 #: ../fish/guestfish.pod:173 ../fuse/guestmount.pod:86
16467 msgid ""
16468 "When used in conjunction with the I<-d> option, this specifies the libvirt "
16469 "URI to use.  The default is to use the default libvirt connection."
16470 msgstr ""
16471
16472 # type: =item
16473 #: ../fish/guestfish.pod:177
16474 msgid "B<--csh>"
16475 msgstr ""
16476
16477 # type: textblock
16478 #: ../fish/guestfish.pod:179
16479 msgid ""
16480 "If using the I<--listen> option and a csh-like shell, use this option.  See "
16481 "section L</REMOTE CONTROL AND CSH> below."
16482 msgstr ""
16483
16484 # type: =item
16485 #: ../fish/guestfish.pod:182 ../fuse/guestmount.pod:90
16486 msgid "B<-d libvirt-domain> | B<--domain libvirt-domain>"
16487 msgstr ""
16488
16489 # type: textblock
16490 #: ../fish/guestfish.pod:184 ../fuse/guestmount.pod:92
16491 msgid ""
16492 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
16493 "used, then any libvirt domain can be used.  However in write mode, only "
16494 "libvirt domains which are shut down can be named here."
16495 msgstr ""
16496
16497 # type: =item
16498 #: ../fish/guestfish.pod:188
16499 msgid "B<-D> | B<--no-dest-paths>"
16500 msgstr ""
16501
16502 # type: textblock
16503 #: ../fish/guestfish.pod:190
16504 msgid ""
16505 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
16506 "to hit the tab key to complete paths on the guest filesystem, but this "
16507 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
16508 "allow this feature to be disabled."
16509 msgstr ""
16510
16511 # type: =item
16512 #: ../fish/guestfish.pod:195 ../fuse/guestmount.pod:108
16513 msgid "B<--echo-keys>"
16514 msgstr ""
16515
16516 # type: textblock
16517 #: ../fish/guestfish.pod:197 ../fuse/guestmount.pod:110
16518 msgid ""
16519 "When prompting for keys and passphrases, guestfish normally turns echoing "
16520 "off so you cannot see what you are typing.  If you are not worried about "
16521 "Tempest attacks and there is no one else in the room you can specify this "
16522 "flag to see what you are typing."
16523 msgstr ""
16524
16525 # type: =item
16526 #: ../fish/guestfish.pod:202
16527 msgid "B<-f file> | B<--file file>"
16528 msgstr ""
16529
16530 # type: textblock
16531 #: ../fish/guestfish.pod:204
16532 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
16533 msgstr ""
16534
16535 # type: verbatim
16536 #: ../fish/guestfish.pod:207
16537 #, no-wrap
16538 msgid ""
16539 " #!/usr/bin/guestfish -f\n"
16540 "\n"
16541 msgstr ""
16542
16543 # type: =item
16544 #: ../fish/guestfish.pod:209 ../fuse/guestmount.pod:115
16545 msgid "B<--format=raw|qcow2|..> | B<--format>"
16546 msgstr ""
16547
16548 # type: textblock
16549 #: ../fish/guestfish.pod:211 ../fuse/guestmount.pod:117
16550 msgid ""
16551 "The default for the I<-a> option is to auto-detect the format of the disk "
16552 "image.  Using this forces the disk format for I<-a> options which follow on "
16553 "the command line.  Using I<--format> with no argument switches back to "
16554 "auto-detection for subsequent I<-a> options."
16555 msgstr ""
16556
16557 # type: textblock
16558 #: ../fish/guestfish.pod:216 ../fish/guestfish.pod:543 ../inspector/virt-inspector.pl:515
16559 msgid "For example:"
16560 msgstr ""
16561
16562 # type: verbatim
16563 #: ../fish/guestfish.pod:218
16564 #, no-wrap
16565 msgid ""
16566 " guestfish --format=raw -a disk.img\n"
16567 "\n"
16568 msgstr ""
16569
16570 # type: textblock
16571 #: ../fish/guestfish.pod:220
16572 msgid "forces raw format (no auto-detection) for C<disk.img>."
16573 msgstr ""
16574
16575 # type: verbatim
16576 #: ../fish/guestfish.pod:222
16577 #, no-wrap
16578 msgid ""
16579 " guestfish --format=raw -a disk.img --format -a another.img\n"
16580 "\n"
16581 msgstr ""
16582
16583 # type: textblock
16584 #: ../fish/guestfish.pod:224
16585 msgid ""
16586 "forces raw format (no auto-detection) for C<disk.img> and reverts to "
16587 "auto-detection for C<another.img>."
16588 msgstr ""
16589
16590 # type: textblock
16591 #: ../fish/guestfish.pod:227
16592 msgid ""
16593 "If you have untrusted raw-format guest disk images, you should use this "
16594 "option to specify the disk format.  This avoids a possible security problem "
16595 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
16596 msgstr ""
16597
16598 # type: =item
16599 #: ../fish/guestfish.pod:232 ../fuse/guestmount.pod:135
16600 msgid "B<-i> | B<--inspector>"
16601 msgstr ""
16602
16603 # type: textblock
16604 #: ../fish/guestfish.pod:234 ../fuse/guestmount.pod:137
16605 msgid ""
16606 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
16607 "system and mount filesystems as they would be mounted on the real virtual "
16608 "machine."
16609 msgstr ""
16610
16611 # type: textblock
16612 #: ../fish/guestfish.pod:238
16613 msgid "Typical usage is either:"
16614 msgstr ""
16615
16616 # type: verbatim
16617 #: ../fish/guestfish.pod:240
16618 #, no-wrap
16619 msgid ""
16620 " guestfish -d myguest -i\n"
16621 "\n"
16622 msgstr ""
16623
16624 # type: textblock
16625 #: ../fish/guestfish.pod:242
16626 msgid "(for an inactive libvirt domain called I<myguest>), or:"
16627 msgstr ""
16628
16629 # type: verbatim
16630 #: ../fish/guestfish.pod:244
16631 #, no-wrap
16632 msgid ""
16633 " guestfish --ro -d myguest -i\n"
16634 "\n"
16635 msgstr ""
16636
16637 # type: textblock
16638 #: ../fish/guestfish.pod:246
16639 msgid "(for active domains, readonly), or specify the block device directly:"
16640 msgstr ""
16641
16642 # type: verbatim
16643 #: ../fish/guestfish.pod:248
16644 #, no-wrap
16645 msgid ""
16646 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
16647 "\n"
16648 msgstr ""
16649
16650 # type: textblock
16651 #: ../fish/guestfish.pod:250
16652 msgid ""
16653 "Note that the command line syntax changed slightly over older versions of "
16654 "guestfish.  You can still use the old syntax:"
16655 msgstr ""
16656
16657 # type: verbatim
16658 #: ../fish/guestfish.pod:253
16659 #, no-wrap
16660 msgid ""
16661 " guestfish [--ro] -i disk.img\n"
16662 "\n"
16663 msgstr ""
16664
16665 # type: verbatim
16666 #: ../fish/guestfish.pod:255
16667 #, no-wrap
16668 msgid ""
16669 " guestfish [--ro] -i libvirt-domain\n"
16670 "\n"
16671 msgstr ""
16672
16673 # type: =item
16674 #: ../fish/guestfish.pod:257 ../fuse/guestmount.pod:141
16675 msgid "B<--keys-from-stdin>"
16676 msgstr ""
16677
16678 # type: textblock
16679 #: ../fish/guestfish.pod:259 ../fuse/guestmount.pod:143
16680 msgid ""
16681 "Read key or passphrase parameters from stdin.  The default is to try to read "
16682 "passphrases from the user by opening C</dev/tty>."
16683 msgstr ""
16684
16685 # type: =item
16686 #: ../fish/guestfish.pod:262
16687 msgid "B<--listen>"
16688 msgstr ""
16689
16690 # type: textblock
16691 #: ../fish/guestfish.pod:264
16692 msgid ""
16693 "Fork into the background and listen for remote commands.  See section "
16694 "L</REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
16695 msgstr ""
16696
16697 # type: =item
16698 #: ../fish/guestfish.pod:267
16699 msgid "B<-m dev[:mountpoint]> | B<--mount dev[:mountpoint]>"
16700 msgstr ""
16701
16702 # type: textblock
16703 #: ../fish/guestfish.pod:269
16704 msgid "Mount the named partition or logical volume on the given mountpoint."
16705 msgstr ""
16706
16707 # type: textblock
16708 #: ../fish/guestfish.pod:271
16709 msgid "If the mountpoint is omitted, it defaults to C</>."
16710 msgstr ""
16711
16712 # type: textblock
16713 #: ../fish/guestfish.pod:273
16714 msgid "You have to mount something on C</> before most commands will work."
16715 msgstr ""
16716
16717 # type: textblock
16718 #: ../fish/guestfish.pod:275
16719 msgid ""
16720 "If any I<-m> or I<--mount> options are given, the guest is automatically "
16721 "launched."
16722 msgstr ""
16723
16724 # type: textblock
16725 #: ../fish/guestfish.pod:278
16726 msgid ""
16727 "If you don't know what filesystems a disk image contains, you can either run "
16728 "guestfish without this option, then list the partitions and LVs available "
16729 "(see L</list-partitions> and L</lvs> commands), or you can use the "
16730 "L<virt-list-filesystems(1)> program."
16731 msgstr ""
16732
16733 # type: =item
16734 #: ../fish/guestfish.pod:283 ../fuse/guestmount.pod:154
16735 msgid "B<-n> | B<--no-sync>"
16736 msgstr ""
16737
16738 # type: textblock
16739 #: ../fish/guestfish.pod:285
16740 msgid ""
16741 "Disable autosync.  This is enabled by default.  See the discussion of "
16742 "autosync in the L<guestfs(3)> manpage."
16743 msgstr ""
16744
16745 # type: =item
16746 #: ../fish/guestfish.pod:288
16747 msgid "B<-N type> | B<--new type> | B<-N help>"
16748 msgstr ""
16749
16750 # type: textblock
16751 #: ../fish/guestfish.pod:290
16752 msgid ""
16753 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
16754 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
16755 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
16756 "IMAGES> below."
16757 msgstr ""
16758
16759 # type: =item
16760 #: ../fish/guestfish.pod:295
16761 msgid "B<--progress-bars>"
16762 msgstr ""
16763
16764 # type: textblock
16765 #: ../fish/guestfish.pod:297
16766 msgid "Enable progress bars, even when guestfish is used non-interactively."
16767 msgstr ""
16768
16769 # type: textblock
16770 #: ../fish/guestfish.pod:299
16771 msgid ""
16772 "Progress bars are enabled by default when guestfish is used as an "
16773 "interactive shell."
16774 msgstr ""
16775
16776 # type: =item
16777 #: ../fish/guestfish.pod:302
16778 msgid "B<--no-progress-bars>"
16779 msgstr ""
16780
16781 # type: textblock
16782 #: ../fish/guestfish.pod:304
16783 msgid "Disable progress bars."
16784 msgstr ""
16785
16786 # type: =item
16787 #: ../fish/guestfish.pod:306
16788 msgid "B<--remote[=pid]>"
16789 msgstr ""
16790
16791 # type: textblock
16792 #: ../fish/guestfish.pod:308
16793 msgid ""
16794 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
16795 "CONTROL GUESTFISH OVER A SOCKET> below."
16796 msgstr ""
16797
16798 # type: =item
16799 #: ../fish/guestfish.pod:311 ../fuse/guestmount.pod:196
16800 msgid "B<-r> | B<--ro>"
16801 msgstr ""
16802
16803 # type: textblock
16804 #: ../fish/guestfish.pod:313
16805 msgid ""
16806 "This changes the I<-a> and I<-m> options so that disks are added and mounts "
16807 "are done read-only (see L<guestfs(3)/guestfs_mount_ro>)."
16808 msgstr ""
16809
16810 # type: textblock
16811 #: ../fish/guestfish.pod:316 ../tools/virt-rescue.pl:187
16812 msgid ""
16813 "The option must always be used if the disk image or virtual machine might be "
16814 "running, and is generally recommended in cases where you don't need write "
16815 "access to the disk."
16816 msgstr ""
16817
16818 # type: textblock
16819 #: ../fish/guestfish.pod:320
16820 msgid ""
16821 "Note that prepared disk images created with I<-N> are not affected by the "
16822 "I<--ro> option."
16823 msgstr ""
16824
16825 # type: textblock
16826 #: ../fish/guestfish.pod:323
16827 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
16828 msgstr ""
16829
16830 # type: =item
16831 #: ../fish/guestfish.pod:325 ../fuse/guestmount.pod:208 ../tools/virt-rescue.pl:195
16832 msgid "B<--selinux>"
16833 msgstr ""
16834
16835 # type: textblock
16836 #: ../fish/guestfish.pod:327
16837 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
16838 msgstr ""
16839
16840 # type: =item
16841 #: ../fish/guestfish.pod:329 ../fuse/guestmount.pod:212
16842 msgid "B<-v> | B<--verbose>"
16843 msgstr ""
16844
16845 # type: textblock
16846 #: ../fish/guestfish.pod:331
16847 msgid ""
16848 "Enable very verbose messages.  This is particularly useful if you find a "
16849 "bug."
16850 msgstr ""
16851
16852 # type: =item
16853 #: ../fish/guestfish.pod:334 ../fuse/guestmount.pod:216
16854 msgid "B<-V> | B<--version>"
16855 msgstr ""
16856
16857 # type: textblock
16858 #: ../fish/guestfish.pod:336
16859 msgid "Display the guestfish / libguestfs version number and exit."
16860 msgstr ""
16861
16862 # type: =item
16863 #: ../fish/guestfish.pod:338 ../fuse/guestmount.pod:220
16864 msgid "B<-w> | B<--rw>"
16865 msgstr ""
16866
16867 # type: textblock
16868 #: ../fish/guestfish.pod:340
16869 msgid ""
16870 "This option does nothing at the moment.  See L</OPENING DISKS FOR READ AND "
16871 "WRITE> below."
16872 msgstr ""
16873
16874 # type: =item
16875 #: ../fish/guestfish.pod:343
16876 msgid "B<-x>"
16877 msgstr ""
16878
16879 # type: textblock
16880 #: ../fish/guestfish.pod:345
16881 msgid "Echo each command before executing it."
16882 msgstr ""
16883
16884 # type: =head1
16885 #: ../fish/guestfish.pod:349
16886 msgid "COMMANDS ON COMMAND LINE"
16887 msgstr ""
16888
16889 # type: textblock
16890 #: ../fish/guestfish.pod:351
16891 msgid "Any additional (non-option) arguments are treated as commands to execute."
16892 msgstr ""
16893
16894 # type: textblock
16895 #: ../fish/guestfish.pod:354
16896 msgid ""
16897 "Commands to execute should be separated by a colon (C<:>), where the colon "
16898 "is a separate parameter.  Thus:"
16899 msgstr ""
16900
16901 # type: verbatim
16902 #: ../fish/guestfish.pod:357
16903 #, no-wrap
16904 msgid ""
16905 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
16906 "\n"
16907 msgstr ""
16908
16909 # type: textblock
16910 #: ../fish/guestfish.pod:359
16911 msgid ""
16912 "If there are no additional arguments, then we enter a shell, either an "
16913 "interactive shell with a prompt (if the input is a terminal) or a "
16914 "non-interactive shell."
16915 msgstr ""
16916
16917 # type: textblock
16918 #: ../fish/guestfish.pod:363
16919 msgid ""
16920 "In either command line mode or non-interactive shell, the first command that "
16921 "gives an error causes the whole shell to exit.  In interactive mode (with a "
16922 "prompt) if a command fails, you can continue to enter commands."
16923 msgstr ""
16924
16925 # type: =head1
16926 #: ../fish/guestfish.pod:368
16927 msgid "USING launch (OR run)"
16928 msgstr ""
16929
16930 # type: textblock
16931 #: ../fish/guestfish.pod:370
16932 msgid ""
16933 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
16934 "then launch it, then mount any disks you need, and finally issue "
16935 "actions/commands.  So the general order of the day is:"
16936 msgstr ""
16937
16938 # type: textblock
16939 #: ../fish/guestfish.pod:378
16940 msgid "add or -a/--add"
16941 msgstr ""
16942
16943 # type: textblock
16944 #: ../fish/guestfish.pod:382
16945 msgid "launch (aka run)"
16946 msgstr ""
16947
16948 # type: textblock
16949 #: ../fish/guestfish.pod:386
16950 msgid "mount or -m/--mount"
16951 msgstr ""
16952
16953 # type: textblock
16954 #: ../fish/guestfish.pod:390
16955 msgid "any other commands"
16956 msgstr ""
16957
16958 # type: textblock
16959 #: ../fish/guestfish.pod:394
16960 msgid ""
16961 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
16962 "guest before mounting or performing any other commands."
16963 msgstr ""
16964
16965 # type: textblock
16966 #: ../fish/guestfish.pod:397
16967 msgid ""
16968 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
16969 "I<--new> options were given then C<run> is done automatically, simply "
16970 "because guestfish can't perform the action you asked for without doing this."
16971 msgstr ""
16972
16973 # type: =head1
16974 #: ../fish/guestfish.pod:402
16975 msgid "OPENING DISKS FOR READ AND WRITE"
16976 msgstr ""
16977
16978 # type: textblock
16979 #: ../fish/guestfish.pod:404
16980 msgid ""
16981 "The guestfish (and L<guestmount(1)>) options I<--ro> and I<--rw> affect "
16982 "whether the other command line options I<-a>, I<-c>, I<-d>, I<-i> and I<-m> "
16983 "open disk images read-only or for writing."
16984 msgstr ""
16985
16986 # type: textblock
16987 #: ../fish/guestfish.pod:408
16988 msgid ""
16989 "In libguestfs E<lt> 1.6.2, guestfish and guestmount defaulted to opening "
16990 "disk images supplied on the command line for write.  To open a disk image "
16991 "read-only you have to do I<-a image --ro>."
16992 msgstr ""
16993
16994 # type: textblock
16995 #: ../fish/guestfish.pod:412
16996 msgid ""
16997 "This matters: If you accidentally open a live VM disk image writable then "
16998 "you will cause irreversible disk corruption."
16999 msgstr ""
17000
17001 # type: textblock
17002 #: ../fish/guestfish.pod:415
17003 msgid ""
17004 "By libguestfs 1.8 we intend to change the default the other way.  Disk "
17005 "images will be opened read-only.  You will have to either specify "
17006 "I<guestfish --rw> or change a configuration file in order to get write "
17007 "access for disk images specified by those other command line options."
17008 msgstr ""
17009
17010 # type: textblock
17011 #: ../fish/guestfish.pod:420
17012 msgid ""
17013 "This version of guestfish has a I<--rw> option which does nothing (it is "
17014 "already the default).  However it is highly recommended that you use this "
17015 "option to indicate that guestfish needs write access, and to prepare your "
17016 "scripts for the day when this option will be required for write access."
17017 msgstr ""
17018
17019 # type: textblock
17020 #: ../fish/guestfish.pod:426
17021 msgid ""
17022 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
17023 "other libguestfs program apart from guestfish and guestmount."
17024 msgstr ""
17025
17026 # type: =head1
17027 #: ../fish/guestfish.pod:429
17028 msgid "QUOTING"
17029 msgstr ""
17030
17031 # type: textblock
17032 #: ../fish/guestfish.pod:431
17033 msgid ""
17034 "You can quote ordinary parameters using either single or double quotes.  For "
17035 "example:"
17036 msgstr ""
17037
17038 # type: verbatim
17039 #: ../fish/guestfish.pod:434
17040 #, no-wrap
17041 msgid ""
17042 " add \"file with a space.img\"\n"
17043 "\n"
17044 msgstr ""
17045
17046 # type: verbatim
17047 #: ../fish/guestfish.pod:436
17048 #, no-wrap
17049 msgid ""
17050 " rm '/file name'\n"
17051 "\n"
17052 msgstr ""
17053
17054 # type: verbatim
17055 #: ../fish/guestfish.pod:438
17056 #, no-wrap
17057 msgid ""
17058 " rm '/\"'\n"
17059 "\n"
17060 msgstr ""
17061
17062 # type: textblock
17063 #: ../fish/guestfish.pod:440
17064 msgid ""
17065 "A few commands require a list of strings to be passed.  For these, use a "
17066 "whitespace-separated list, enclosed in quotes.  Strings containing "
17067 "whitespace to be passed through must be enclosed in single quotes.  A "
17068 "literal single quote must be escaped with a backslash."
17069 msgstr ""
17070
17071 # type: verbatim
17072 #: ../fish/guestfish.pod:445
17073 #, no-wrap
17074 msgid ""
17075 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
17076 " command \"/bin/echo 'foo      bar'\"\n"
17077 " command \"/bin/echo \\'foo\\'\"\n"
17078 "\n"
17079 msgstr ""
17080
17081 # type: =head1
17082 #: ../fish/guestfish.pod:449
17083 msgid "OPTIONAL ARGUMENTS"
17084 msgstr ""
17085
17086 # type: textblock
17087 #: ../fish/guestfish.pod:451
17088 msgid ""
17089 "Some commands take optional arguments.  These arguments appear in this "
17090 "documentation as C<[argname:..]>.  You can use them as in these examples:"
17091 msgstr ""
17092
17093 # type: verbatim
17094 #: ../fish/guestfish.pod:455
17095 #, no-wrap
17096 msgid ""
17097 " add-drive-opts filename\n"
17098 "\n"
17099 msgstr ""
17100
17101 # type: verbatim
17102 #: ../fish/guestfish.pod:457
17103 #, no-wrap
17104 msgid ""
17105 " add-drive-opts filename readonly:true\n"
17106 "\n"
17107 msgstr ""
17108
17109 # type: verbatim
17110 #: ../fish/guestfish.pod:459
17111 #, no-wrap
17112 msgid ""
17113 " add-drive-opts filename format:qcow2 readonly:false\n"
17114 "\n"
17115 msgstr ""
17116
17117 # type: textblock
17118 #: ../fish/guestfish.pod:461
17119 msgid ""
17120 "Each optional argument can appear at most once.  All optional arguments must "
17121 "appear after the required ones."
17122 msgstr ""
17123
17124 # type: =head1
17125 #: ../fish/guestfish.pod:464
17126 msgid "NUMBERS"
17127 msgstr ""
17128
17129 # type: textblock
17130 #: ../fish/guestfish.pod:466
17131 msgid "This section applies to all commands which can take integers as parameters."
17132 msgstr ""
17133
17134 # type: =head2
17135 #: ../fish/guestfish.pod:469
17136 msgid "SIZE SUFFIX"
17137 msgstr ""
17138
17139 # type: textblock
17140 #: ../fish/guestfish.pod:471
17141 msgid ""
17142 "When the command takes a parameter measured in bytes, you can use one of the "
17143 "following suffixes to specify kilobytes, megabytes and larger sizes:"
17144 msgstr ""
17145
17146 # type: =item
17147 #: ../fish/guestfish.pod:477
17148 msgid "B<k> or B<K> or B<KiB>"
17149 msgstr ""
17150
17151 # type: textblock
17152 #: ../fish/guestfish.pod:479
17153 msgid "The size in kilobytes (multiplied by 1024)."
17154 msgstr ""
17155
17156 # type: =item
17157 #: ../fish/guestfish.pod:481
17158 msgid "B<KB>"
17159 msgstr ""
17160
17161 # type: textblock
17162 #: ../fish/guestfish.pod:483
17163 msgid "The size in SI 1000 byte units."
17164 msgstr ""
17165
17166 # type: =item
17167 #: ../fish/guestfish.pod:485
17168 msgid "B<M> or B<MiB>"
17169 msgstr ""
17170
17171 # type: textblock
17172 #: ../fish/guestfish.pod:487
17173 msgid "The size in megabytes (multiplied by 1048576)."
17174 msgstr ""
17175
17176 # type: =item
17177 #: ../fish/guestfish.pod:489
17178 msgid "B<MB>"
17179 msgstr ""
17180
17181 # type: textblock
17182 #: ../fish/guestfish.pod:491
17183 msgid "The size in SI 1000000 byte units."
17184 msgstr ""
17185
17186 # type: =item
17187 #: ../fish/guestfish.pod:493
17188 msgid "B<G> or B<GiB>"
17189 msgstr ""
17190
17191 # type: textblock
17192 #: ../fish/guestfish.pod:495
17193 msgid "The size in gigabytes (multiplied by 2**30)."
17194 msgstr ""
17195
17196 # type: =item
17197 #: ../fish/guestfish.pod:497
17198 msgid "B<GB>"
17199 msgstr ""
17200
17201 # type: textblock
17202 #: ../fish/guestfish.pod:499
17203 msgid "The size in SI 10**9 byte units."
17204 msgstr ""
17205
17206 # type: =item
17207 #: ../fish/guestfish.pod:501
17208 msgid "B<T> or B<TiB>"
17209 msgstr ""
17210
17211 # type: textblock
17212 #: ../fish/guestfish.pod:503
17213 msgid "The size in terabytes (multiplied by 2**40)."
17214 msgstr ""
17215
17216 # type: =item
17217 #: ../fish/guestfish.pod:505
17218 msgid "B<TB>"
17219 msgstr ""
17220
17221 # type: textblock
17222 #: ../fish/guestfish.pod:507
17223 msgid "The size in SI 10**12 byte units."
17224 msgstr ""
17225
17226 # type: =item
17227 #: ../fish/guestfish.pod:509
17228 msgid "B<P> or B<PiB>"
17229 msgstr ""
17230
17231 # type: textblock
17232 #: ../fish/guestfish.pod:511
17233 msgid "The size in petabytes (multiplied by 2**50)."
17234 msgstr ""
17235
17236 # type: =item
17237 #: ../fish/guestfish.pod:513
17238 msgid "B<PB>"
17239 msgstr ""
17240
17241 # type: textblock
17242 #: ../fish/guestfish.pod:515
17243 msgid "The size in SI 10**15 byte units."
17244 msgstr ""
17245
17246 # type: =item
17247 #: ../fish/guestfish.pod:517
17248 msgid "B<E> or B<EiB>"
17249 msgstr ""
17250
17251 # type: textblock
17252 #: ../fish/guestfish.pod:519
17253 msgid "The size in exabytes (multiplied by 2**60)."
17254 msgstr ""
17255
17256 # type: =item
17257 #: ../fish/guestfish.pod:521
17258 msgid "B<EB>"
17259 msgstr ""
17260
17261 # type: textblock
17262 #: ../fish/guestfish.pod:523
17263 msgid "The size in SI 10**18 byte units."
17264 msgstr ""
17265
17266 # type: =item
17267 #: ../fish/guestfish.pod:525
17268 msgid "B<Z> or B<ZiB>"
17269 msgstr ""
17270
17271 # type: textblock
17272 #: ../fish/guestfish.pod:527
17273 msgid "The size in zettabytes (multiplied by 2**70)."
17274 msgstr ""
17275
17276 # type: =item
17277 #: ../fish/guestfish.pod:529
17278 msgid "B<ZB>"
17279 msgstr ""
17280
17281 # type: textblock
17282 #: ../fish/guestfish.pod:531
17283 msgid "The size in SI 10**21 byte units."
17284 msgstr ""
17285
17286 # type: =item
17287 #: ../fish/guestfish.pod:533
17288 msgid "B<Y> or B<YiB>"
17289 msgstr ""
17290
17291 # type: textblock
17292 #: ../fish/guestfish.pod:535
17293 msgid "The size in yottabytes (multiplied by 2**80)."
17294 msgstr ""
17295
17296 # type: =item
17297 #: ../fish/guestfish.pod:537
17298 msgid "B<YB>"
17299 msgstr ""
17300
17301 # type: textblock
17302 #: ../fish/guestfish.pod:539
17303 msgid "The size in SI 10**24 byte units."
17304 msgstr ""
17305
17306 # type: verbatim
17307 #: ../fish/guestfish.pod:545
17308 #, no-wrap
17309 msgid ""
17310 " truncate-size /file 1G\n"
17311 "\n"
17312 msgstr ""
17313
17314 # type: textblock
17315 #: ../fish/guestfish.pod:547
17316 msgid "would truncate the file to 1 gigabyte."
17317 msgstr ""
17318
17319 # type: textblock
17320 #: ../fish/guestfish.pod:549
17321 msgid ""
17322 "Be careful because a few commands take sizes in kilobytes or megabytes "
17323 "(eg. the parameter to L</memsize> is specified in megabytes already).  "
17324 "Adding a suffix will probably not do what you expect."
17325 msgstr ""
17326
17327 # type: =head2
17328 #: ../fish/guestfish.pod:553
17329 msgid "OCTAL AND HEXADECIMAL NUMBERS"
17330 msgstr ""
17331
17332 # type: textblock
17333 #: ../fish/guestfish.pod:555
17334 msgid ""
17335 "For specifying the radix (base) use the C convention: C<0> to prefix an "
17336 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
17337 msgstr ""
17338
17339 # type: verbatim
17340 #: ../fish/guestfish.pod:558
17341 #, no-wrap
17342 msgid ""
17343 " 1234      decimal number 1234\n"
17344 " 02322     octal number, equivalent to decimal 1234\n"
17345 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
17346 "\n"
17347 msgstr ""
17348
17349 # type: textblock
17350 #: ../fish/guestfish.pod:562
17351 msgid ""
17352 "When using the C<chmod> command, you almost always want to specify an octal "
17353 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
17354 "L<chmod(1)> program):"
17355 msgstr ""
17356
17357 # type: verbatim
17358 #: ../fish/guestfish.pod:566
17359 #, no-wrap
17360 msgid ""
17361 " chmod 0777 /public  # OK\n"
17362 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
17363 "\n"
17364 msgstr ""
17365
17366 # type: textblock
17367 #: ../fish/guestfish.pod:569
17368 msgid ""
17369 "Commands that return numbers usually print them in decimal, but some "
17370 "commands print numbers in other radices (eg. C<umask> prints the mode in "
17371 "octal, preceeded by C<0>)."
17372 msgstr ""
17373
17374 # type: =head1
17375 #: ../fish/guestfish.pod:573
17376 msgid "WILDCARDS AND GLOBBING"
17377 msgstr ""
17378
17379 # type: textblock
17380 #: ../fish/guestfish.pod:575
17381 msgid ""
17382 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
17383 "(globbing) by default.  So for example the following will not do what you "
17384 "expect:"
17385 msgstr ""
17386
17387 # type: verbatim
17388 #: ../fish/guestfish.pod:579
17389 #, no-wrap
17390 msgid ""
17391 " rm-rf /home/*\n"
17392 "\n"
17393 msgstr ""
17394
17395 # type: textblock
17396 #: ../fish/guestfish.pod:581
17397 msgid ""
17398 "Assuming you don't have a directory called literally C</home/*> then the "
17399 "above command will return an error."
17400 msgstr ""
17401
17402 # type: textblock
17403 #: ../fish/guestfish.pod:584
17404 msgid "To perform wildcard expansion, use the C<glob> command."
17405 msgstr ""
17406
17407 # type: verbatim
17408 #: ../fish/guestfish.pod:586
17409 #, no-wrap
17410 msgid ""
17411 " glob rm-rf /home/*\n"
17412 "\n"
17413 msgstr ""
17414
17415 # type: textblock
17416 #: ../fish/guestfish.pod:588
17417 msgid ""
17418 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
17419 "many times), equivalent to:"
17420 msgstr ""
17421
17422 # type: verbatim
17423 #: ../fish/guestfish.pod:591
17424 #, no-wrap
17425 msgid ""
17426 " rm-rf /home/jim\n"
17427 " rm-rf /home/joe\n"
17428 " rm-rf /home/mary\n"
17429 "\n"
17430 msgstr ""
17431
17432 # type: textblock
17433 #: ../fish/guestfish.pod:595
17434 msgid "C<glob> only works on simple guest paths and not on device names."
17435 msgstr ""
17436
17437 # type: textblock
17438 #: ../fish/guestfish.pod:597
17439 msgid ""
17440 "If you have several parameters, each containing a wildcard, then glob will "
17441 "perform a Cartesian product."
17442 msgstr ""
17443
17444 # type: =head1
17445 #: ../fish/guestfish.pod:600
17446 msgid "COMMENTS"
17447 msgstr ""
17448
17449 # type: textblock
17450 #: ../fish/guestfish.pod:602
17451 msgid ""
17452 "Any line which starts with a I<#> character is treated as a comment and "
17453 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
17454 "a command.  For example:"
17455 msgstr ""
17456
17457 # type: verbatim
17458 #: ../fish/guestfish.pod:606
17459 #, no-wrap
17460 msgid ""
17461 " # this is a comment\n"
17462 "         # this is a comment\n"
17463 " foo # NOT a comment\n"
17464 "\n"
17465 msgstr ""
17466
17467 # type: textblock
17468 #: ../fish/guestfish.pod:610
17469 msgid "Blank lines are also ignored."
17470 msgstr ""
17471
17472 # type: =head1
17473 #: ../fish/guestfish.pod:612
17474 msgid "RUNNING COMMANDS LOCALLY"
17475 msgstr ""
17476
17477 # type: textblock
17478 #: ../fish/guestfish.pod:614
17479 msgid ""
17480 "Any line which starts with a I<!> character is treated as a command sent to "
17481 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
17482 msgstr ""
17483
17484 # type: verbatim
17485 #: ../fish/guestfish.pod:618
17486 #, no-wrap
17487 msgid ""
17488 " !mkdir local\n"
17489 " tgz-out /remote local/remote-data.tar.gz\n"
17490 "\n"
17491 msgstr ""
17492
17493 # type: textblock
17494 #: ../fish/guestfish.pod:621
17495 msgid ""
17496 "will create a directory C<local> on the host, and then export the contents "
17497 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
17498 "(See C<tgz-out>)."
17499 msgstr ""
17500
17501 # type: textblock
17502 #: ../fish/guestfish.pod:625
17503 msgid ""
17504 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
17505 "effect, due to the way that subprocesses work in Unix."
17506 msgstr ""
17507
17508 # type: =head1
17509 #: ../fish/guestfish.pod:628
17510 msgid "PIPES"
17511 msgstr ""
17512
17513 # type: textblock
17514 #: ../fish/guestfish.pod:630
17515 msgid ""
17516 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
17517 "command (a guestfish command) to the second command (any host command).  For "
17518 "example:"
17519 msgstr ""
17520
17521 # type: verbatim
17522 #: ../fish/guestfish.pod:634
17523 #, no-wrap
17524 msgid ""
17525 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
17526 "\n"
17527 msgstr ""
17528
17529 # type: textblock
17530 #: ../fish/guestfish.pod:636
17531 msgid ""
17532 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
17533 "program).  The above command would list all accounts in the guest filesystem "
17534 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
17535 msgstr ""
17536
17537 # type: verbatim
17538 #: ../fish/guestfish.pod:641
17539 #, no-wrap
17540 msgid ""
17541 " hexdump /bin/ls | head\n"
17542 " list-devices | tail -1\n"
17543 " tgz-out / - | tar ztf -\n"
17544 "\n"
17545 msgstr ""
17546
17547 # type: textblock
17548 #: ../fish/guestfish.pod:645
17549 msgid ""
17550 "The space before the pipe symbol is required, any space after the pipe "
17551 "symbol is optional.  Everything after the pipe symbol is just passed "
17552 "straight to the host shell, so it can contain redirections, globs and "
17553 "anything else that makes sense on the host side."
17554 msgstr ""
17555
17556 # type: textblock
17557 #: ../fish/guestfish.pod:650
17558 msgid ""
17559 "To use a literal argument which begins with a pipe symbol, you have to quote "
17560 "it, eg:"
17561 msgstr ""
17562
17563 # type: verbatim
17564 #: ../fish/guestfish.pod:653
17565 #, no-wrap
17566 msgid ""
17567 " echo \"|\"\n"
17568 "\n"
17569 msgstr ""
17570
17571 # type: =head1
17572 #: ../fish/guestfish.pod:655
17573 msgid "HOME DIRECTORIES"
17574 msgstr ""
17575
17576 # type: textblock
17577 #: ../fish/guestfish.pod:657
17578 msgid ""
17579 "If a parameter starts with the character C<~> then the tilde may be expanded "
17580 "as a home directory path (either C<~> for the current user's home directory, "
17581 "or C<~user> for another user)."
17582 msgstr ""
17583
17584 # type: textblock
17585 #: ../fish/guestfish.pod:661
17586 msgid ""
17587 "Note that home directory expansion happens for users known I<on the host>, "
17588 "not in the guest filesystem."
17589 msgstr ""
17590
17591 # type: textblock
17592 #: ../fish/guestfish.pod:664
17593 msgid ""
17594 "To use a literal argument which begins with a tilde, you have to quote it, "
17595 "eg:"
17596 msgstr ""
17597
17598 # type: verbatim
17599 #: ../fish/guestfish.pod:667
17600 #, no-wrap
17601 msgid ""
17602 " echo \"~\"\n"
17603 "\n"
17604 msgstr ""
17605
17606 # type: textblock
17607 #: ../fish/guestfish.pod:671
17608 msgid ""
17609 "Libguestfs has some support for Linux guests encrypted according to the "
17610 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
17611 "disk encryption systems used by modern Linux guests.  Currently only "
17612 "LVM-on-LUKS is supported."
17613 msgstr ""
17614
17615 # type: textblock
17616 #: ../fish/guestfish.pod:676
17617 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
17618 msgstr ""
17619
17620 # type: verbatim
17621 #: ../fish/guestfish.pod:678
17622 #, no-wrap
17623 msgid ""
17624 " ><fs> vfs-type /dev/sda2\n"
17625 " crypto_LUKS\n"
17626 "\n"
17627 msgstr ""
17628
17629 # type: textblock
17630 #: ../fish/guestfish.pod:681
17631 msgid ""
17632 "Then open those devices using L</luks-open>.  This creates a device-mapper "
17633 "device called C</dev/mapper/luksdev>."
17634 msgstr ""
17635
17636 # type: verbatim
17637 #: ../fish/guestfish.pod:684
17638 #, no-wrap
17639 msgid ""
17640 " ><fs> luks-open /dev/sda2 luksdev\n"
17641 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
17642 "\n"
17643 msgstr ""
17644
17645 # type: textblock
17646 #: ../fish/guestfish.pod:687
17647 msgid ""
17648 "Finally you have to tell LVM to scan for volume groups on the newly created "
17649 "mapper device:"
17650 msgstr ""
17651
17652 # type: verbatim
17653 #: ../fish/guestfish.pod:690
17654 #, no-wrap
17655 msgid ""
17656 " vgscan\n"
17657 " vg-activate-all true\n"
17658 "\n"
17659 msgstr ""
17660
17661 # type: textblock
17662 #: ../fish/guestfish.pod:693
17663 msgid "The logical volume(s) can now be mounted in the usual way."
17664 msgstr ""
17665
17666 # type: textblock
17667 #: ../fish/guestfish.pod:695
17668 msgid ""
17669 "Before closing a LUKS device you must unmount any logical volumes on it and "
17670 "deactivate the volume groups by calling C<vg-activate false VG> on each "
17671 "one.  Then you can close the mapper device:"
17672 msgstr ""
17673
17674 # type: verbatim
17675 #: ../fish/guestfish.pod:699
17676 #, no-wrap
17677 msgid ""
17678 " vg-activate false /dev/VG\n"
17679 " luks-close /dev/mapper/luksdev\n"
17680 "\n"
17681 msgstr ""
17682
17683 # type: =head1
17684 #: ../fish/guestfish.pod:702
17685 msgid "WINDOWS PATHS"
17686 msgstr ""
17687
17688 # type: textblock
17689 #: ../fish/guestfish.pod:704
17690 msgid ""
17691 "If a path is prefixed with C<win:> then you can use Windows-style paths "
17692 "(with some limitations).  The following commands are equivalent:"
17693 msgstr ""
17694
17695 # type: verbatim
17696 #: ../fish/guestfish.pod:707
17697 #, no-wrap
17698 msgid ""
17699 " file /WINDOWS/system32/config/system.LOG\n"
17700 "\n"
17701 msgstr ""
17702
17703 # type: verbatim
17704 #: ../fish/guestfish.pod:709
17705 #, no-wrap
17706 msgid ""
17707 " file win:/windows/system32/config/system.log\n"
17708 "\n"
17709 msgstr ""
17710
17711 # type: verbatim
17712 #: ../fish/guestfish.pod:711
17713 #, no-wrap
17714 msgid ""
17715 " file win:\\windows\\system32\\config\\system.log\n"
17716 "\n"
17717 msgstr ""
17718
17719 # type: verbatim
17720 #: ../fish/guestfish.pod:713
17721 #, no-wrap
17722 msgid ""
17723 " file WIN:C:\\Windows\\SYSTEM32\\conFIG\\SYSTEM.LOG\n"
17724 "\n"
17725 msgstr ""
17726
17727 # type: textblock
17728 #: ../fish/guestfish.pod:715
17729 msgid ""
17730 "This syntax implicitly calls C<case-sensitive-path> (q.v.) so it also "
17731 "handles case insensitivity like Windows would.  This only works in argument "
17732 "positions that expect a path."
17733 msgstr ""
17734
17735 # type: =head1
17736 #: ../fish/guestfish.pod:719
17737 msgid "UPLOADING AND DOWNLOADING FILES"
17738 msgstr ""
17739
17740 # type: textblock
17741 #: ../fish/guestfish.pod:721
17742 msgid ""
17743 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
17744 "others which upload from or download to a local file, you can use the "
17745 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
17746 msgstr ""
17747
17748 # type: verbatim
17749 #: ../fish/guestfish.pod:725
17750 #, no-wrap
17751 msgid ""
17752 " upload - /foo\n"
17753 "\n"
17754 msgstr ""
17755
17756 # type: textblock
17757 #: ../fish/guestfish.pod:727
17758 msgid "reads stdin and creates from that a file C</foo> in the disk image, and:"
17759 msgstr ""
17760
17761 # type: verbatim
17762 #: ../fish/guestfish.pod:730
17763 #, no-wrap
17764 msgid ""
17765 " tar-out /etc - | tar tf -\n"
17766 "\n"
17767 msgstr ""
17768
17769 # type: textblock
17770 #: ../fish/guestfish.pod:732
17771 msgid ""
17772 "writes the tarball to stdout and then pipes that into the external \"tar\" "
17773 "command (see L</PIPES>)."
17774 msgstr ""
17775
17776 # type: textblock
17777 #: ../fish/guestfish.pod:735
17778 msgid ""
17779 "When using C<-> to read from stdin, the input is read up to the end of "
17780 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
17781 "some arbitrary end marker:"
17782 msgstr ""
17783
17784 # type: verbatim
17785 #: ../fish/guestfish.pod:739
17786 #, no-wrap
17787 msgid ""
17788 " upload -<<END /foo\n"
17789 " input line 1\n"
17790 " input line 2\n"
17791 " input line 3\n"
17792 " END\n"
17793 "\n"
17794 msgstr ""
17795
17796 # type: textblock
17797 #: ../fish/guestfish.pod:745
17798 msgid ""
17799 "Any string of characters can be used instead of C<END>.  The end marker must "
17800 "appear on a line of its own, without any preceeding or following characters "
17801 "(not even spaces)."
17802 msgstr ""
17803
17804 # type: textblock
17805 #: ../fish/guestfish.pod:749
17806 msgid ""
17807 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
17808 "upload local files (so-called \"FileIn\" parameters in the generator)."
17809 msgstr ""
17810
17811 # type: =head1
17812 #: ../fish/guestfish.pod:752
17813 msgid "EXIT ON ERROR BEHAVIOUR"
17814 msgstr ""
17815
17816 # type: textblock
17817 #: ../fish/guestfish.pod:754
17818 msgid ""
17819 "By default, guestfish will ignore any errors when in interactive mode "
17820 "(ie. taking commands from a human over a tty), and will exit on the first "
17821 "error in non-interactive mode (scripts, commands given on the command line)."
17822 msgstr ""
17823
17824 # type: textblock
17825 #: ../fish/guestfish.pod:759
17826 msgid ""
17827 "If you prefix a command with a I<-> character, then that command will not "
17828 "cause guestfish to exit, even if that (one) command returns an error."
17829 msgstr ""
17830
17831 # type: =head1
17832 #: ../fish/guestfish.pod:763
17833 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
17834 msgstr ""
17835
17836 # type: textblock
17837 #: ../fish/guestfish.pod:765
17838 msgid ""
17839 "Guestfish can be remote-controlled over a socket.  This is useful "
17840 "particularly in shell scripts where you want to make several different "
17841 "changes to a filesystem, but you don't want the overhead of starting up a "
17842 "guestfish process each time."
17843 msgstr ""
17844
17845 # type: textblock
17846 #: ../fish/guestfish.pod:770
17847 msgid "Start a guestfish server process using:"
17848 msgstr ""
17849
17850 # type: verbatim
17851 #: ../fish/guestfish.pod:772
17852 #, no-wrap
17853 msgid ""
17854 " eval \"`guestfish --listen`\"\n"
17855 "\n"
17856 msgstr ""
17857
17858 # type: textblock
17859 #: ../fish/guestfish.pod:774
17860 msgid "and then send it commands by doing:"
17861 msgstr ""
17862
17863 # type: verbatim
17864 #: ../fish/guestfish.pod:776
17865 #, no-wrap
17866 msgid ""
17867 " guestfish --remote cmd [...]\n"
17868 "\n"
17869 msgstr ""
17870
17871 # type: textblock
17872 #: ../fish/guestfish.pod:778
17873 msgid "To cause the server to exit, send it the exit command:"
17874 msgstr ""
17875
17876 # type: verbatim
17877 #: ../fish/guestfish.pod:780
17878 #, no-wrap
17879 msgid ""
17880 " guestfish --remote exit\n"
17881 "\n"
17882 msgstr ""
17883
17884 # type: textblock
17885 #: ../fish/guestfish.pod:782
17886 msgid ""
17887 "Note that the server will normally exit if there is an error in a command.  "
17888 "You can change this in the usual way.  See section L</EXIT ON ERROR "
17889 "BEHAVIOUR>."
17890 msgstr ""
17891
17892 # type: =head2
17893 #: ../fish/guestfish.pod:786
17894 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
17895 msgstr ""
17896
17897 # type: textblock
17898 #: ../fish/guestfish.pod:788
17899 msgid ""
17900 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
17901 "is how the I<--remote> option knows where to send the commands.  You can "
17902 "have several guestfish listener processes running using:"
17903 msgstr ""
17904
17905 # type: verbatim
17906 #: ../fish/guestfish.pod:792
17907 #, no-wrap
17908 msgid ""
17909 " eval \"`guestfish --listen`\"\n"
17910 " pid1=$GUESTFISH_PID\n"
17911 " eval \"`guestfish --listen`\"\n"
17912 " pid2=$GUESTFISH_PID\n"
17913 " ...\n"
17914 " guestfish --remote=$pid1 cmd\n"
17915 " guestfish --remote=$pid2 cmd\n"
17916 "\n"
17917 msgstr ""
17918
17919 # type: =head2
17920 #: ../fish/guestfish.pod:800
17921 msgid "REMOTE CONTROL AND CSH"
17922 msgstr ""
17923
17924 # type: textblock
17925 #: ../fish/guestfish.pod:802
17926 msgid ""
17927 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
17928 "option:"
17929 msgstr ""
17930
17931 # type: verbatim
17932 #: ../fish/guestfish.pod:805
17933 #, no-wrap
17934 msgid ""
17935 " eval \"`guestfish --listen --csh`\"\n"
17936 "\n"
17937 msgstr ""
17938
17939 # type: =head2
17940 #: ../fish/guestfish.pod:807
17941 msgid "REMOTE CONTROL DETAILS"
17942 msgstr ""
17943
17944 # type: textblock
17945 #: ../fish/guestfish.pod:809
17946 msgid ""
17947 "Remote control happens over a Unix domain socket called "
17948 "C</tmp/.guestfish-$UID/socket-$PID>, where C<$UID> is the effective user ID "
17949 "of the process, and C<$PID> is the process ID of the server."
17950 msgstr ""
17951
17952 # type: textblock
17953 #: ../fish/guestfish.pod:813
17954 msgid "Guestfish client and server versions must match exactly."
17955 msgstr ""
17956
17957 # type: =head1
17958 #: ../fish/guestfish.pod:815
17959 msgid "PREPARED DISK IMAGES"
17960 msgstr ""
17961
17962 # type: textblock
17963 #: ../fish/guestfish.pod:817
17964 msgid ""
17965 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
17966 "preformatted disk images that guestfish can make for you to save typing.  "
17967 "This is particularly useful for testing purposes.  This option is used "
17968 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
17969 "can be mixed with I<-a>)."
17970 msgstr ""
17971
17972 # type: textblock
17973 #: ../fish/guestfish.pod:823
17974 msgid ""
17975 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
17976 "the second and so on.  Existing files in the current directory are "
17977 "I<overwritten>."
17978 msgstr ""
17979
17980 # type: textblock
17981 #: ../fish/guestfish.pod:827
17982 msgid ""
17983 "The type briefly describes how the disk should be sized, partitioned, how "
17984 "filesystem(s) should be created, and how content should be added.  "
17985 "Optionally the type can be followed by extra parameters, separated by C<:> "
17986 "(colon) characters.  For example, I<-N fs> creates a default 100MB, "
17987 "sparsely-allocated disk, containing a single partition, with the partition "
17988 "formatted as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem "
17989 "on a 1GB disk instead."
17990 msgstr ""
17991
17992 # type: textblock
17993 #: ../fish/guestfish.pod:835
17994 msgid "To list the available types and any extra parameters they take, run:"
17995 msgstr ""
17996
17997 # type: textblock
17998 #: ../fish/guestfish.pod:839
17999 msgid ""
18000 "Note that the prepared filesystem is not mounted.  You would usually have to "
18001 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
18002 msgstr ""
18003
18004 # type: textblock
18005 #: ../fish/guestfish.pod:843
18006 msgid ""
18007 "If any I<-N> or I<--new> options are given, the guest is automatically "
18008 "launched."
18009 msgstr ""
18010
18011 # type: textblock
18012 #: ../fish/guestfish.pod:848
18013 msgid "Create a 100MB disk with an ext4-formatted partition:"
18014 msgstr ""
18015
18016 # type: verbatim
18017 #: ../fish/guestfish.pod:850
18018 #, no-wrap
18019 msgid ""
18020 " guestfish -N fs:ext4\n"
18021 "\n"
18022 msgstr ""
18023
18024 # type: textblock
18025 #: ../fish/guestfish.pod:852
18026 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
18027 msgstr ""
18028
18029 # type: verbatim
18030 #: ../fish/guestfish.pod:854
18031 #, no-wrap
18032 msgid ""
18033 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
18034 "\n"
18035 msgstr ""
18036
18037 # type: textblock
18038 #: ../fish/guestfish.pod:856
18039 msgid "Create a blank 200MB disk:"
18040 msgstr ""
18041
18042 # type: verbatim
18043 #: ../fish/guestfish.pod:858
18044 #, no-wrap
18045 msgid ""
18046 " guestfish -N disk:200M\n"
18047 "\n"
18048 msgstr ""
18049
18050 # type: =head1
18051 #: ../fish/guestfish.pod:860
18052 msgid "PROGRESS BARS"
18053 msgstr ""
18054
18055 # type: textblock
18056 #: ../fish/guestfish.pod:862
18057 msgid ""
18058 "Some (not all) long-running commands send progress notification messages as "
18059 "they are running.  Guestfish turns these messages into progress bars."
18060 msgstr ""
18061
18062 # type: textblock
18063 #: ../fish/guestfish.pod:866
18064 msgid ""
18065 "When a command that supports progress bars takes longer than two seconds to "
18066 "run, and if progress bars are enabled, then you will see one appearing below "
18067 "the command:"
18068 msgstr ""
18069
18070 # type: verbatim
18071 #: ../fish/guestfish.pod:870
18072 #, no-wrap
18073 msgid ""
18074 " ><fs> copy-size /large-file /another-file 2048M\n"
18075 " / 10% [#####-----------------------------------------] 00:30\n"
18076 "\n"
18077 msgstr ""
18078
18079 # type: textblock
18080 #: ../fish/guestfish.pod:873
18081 msgid ""
18082 "The spinner on the left hand side moves round once for every progress "
18083 "notification received from the backend.  This is a (reasonably) golden "
18084 "assurance that the command is \"doing something\" even if the progress bar "
18085 "is not moving, because the command is able to send the progress "
18086 "notifications.  When the bar reaches 100% and the command finishes, the "
18087 "spinner disappears."
18088 msgstr ""
18089
18090 # type: textblock
18091 #: ../fish/guestfish.pod:880
18092 msgid ""
18093 "Progress bars are enabled by default when guestfish is used interactively.  "
18094 "You can enable them even for non-interactive modes using I<--progress-bars>, "
18095 "and you can disable them completely using I<--no-progress-bars>."
18096 msgstr ""
18097
18098 # type: =head1
18099 #: ../fish/guestfish.pod:885
18100 msgid "GUESTFISH COMMANDS"
18101 msgstr ""
18102
18103 # type: textblock
18104 #: ../fish/guestfish.pod:887
18105 msgid ""
18106 "The commands in this section are guestfish convenience commands, in other "
18107 "words, they are not part of the L<guestfs(3)> API."
18108 msgstr ""
18109
18110 # type: =head2
18111 #: ../fish/guestfish.pod:890
18112 msgid "help"
18113 msgstr ""
18114
18115 # type: verbatim
18116 #: ../fish/guestfish.pod:892
18117 #, no-wrap
18118 msgid ""
18119 " help\n"
18120 " help cmd\n"
18121 "\n"
18122 msgstr ""
18123
18124 # type: textblock
18125 #: ../fish/guestfish.pod:895
18126 msgid "Without any parameter, this provides general help."
18127 msgstr ""
18128
18129 # type: textblock
18130 #: ../fish/guestfish.pod:897
18131 msgid "With a C<cmd> parameter, this displays detailed help for that command."
18132 msgstr ""
18133
18134 # type: =head2
18135 #: ../fish/guestfish.pod:899
18136 msgid "quit | exit"
18137 msgstr ""
18138
18139 # type: textblock
18140 #: ../fish/guestfish.pod:901
18141 msgid "This exits guestfish.  You can also use C<^D> key."
18142 msgstr ""
18143
18144 # type: textblock
18145 #: ../fish/guestfish.pod:903
18146 msgid "@FISH_COMMANDS@"
18147 msgstr ""
18148
18149 # type: =head1
18150 #: ../fish/guestfish.pod:905
18151 msgid "COMMANDS"
18152 msgstr ""
18153
18154 # type: =head1
18155 #: ../fish/guestfish.pod:909 ../test-tool/libguestfs-test-tool.pod:83
18156 msgid "EXIT CODE"
18157 msgstr ""
18158
18159 # type: textblock
18160 #: ../fish/guestfish.pod:911
18161 msgid ""
18162 "guestfish returns 0 if the commands completed without error, or 1 if there "
18163 "was an error."
18164 msgstr ""
18165
18166 # type: =item
18167 #: ../fish/guestfish.pod:918
18168 msgid "EDITOR"
18169 msgstr ""
18170
18171 # type: textblock
18172 #: ../fish/guestfish.pod:920
18173 msgid ""
18174 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
18175 "C<vi>."
18176 msgstr ""
18177
18178 # type: =item
18179 #: ../fish/guestfish.pod:923
18180 msgid "GUESTFISH_PID"
18181 msgstr ""
18182
18183 # type: textblock
18184 #: ../fish/guestfish.pod:925
18185 msgid ""
18186 "Used with the I<--remote> option to specify the remote guestfish process to "
18187 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
18188 msgstr ""
18189
18190 # type: =item
18191 #: ../fish/guestfish.pod:929
18192 msgid "HEXEDITOR"
18193 msgstr ""
18194
18195 # type: textblock
18196 #: ../fish/guestfish.pod:931
18197 msgid ""
18198 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
18199 "not specified, the external L<hexedit(1)> program is used."
18200 msgstr ""
18201
18202 # type: =item
18203 #: ../fish/guestfish.pod:935
18204 msgid "HOME"
18205 msgstr ""
18206
18207 # type: textblock
18208 #: ../fish/guestfish.pod:937
18209 msgid ""
18210 "If compiled with GNU readline support, various files in the home directory "
18211 "can be used.  See L</FILES>."
18212 msgstr ""
18213
18214 # type: textblock
18215 #: ../fish/guestfish.pod:946
18216 msgid ""
18217 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
18218 "effect as using the B<-v> option."
18219 msgstr ""
18220
18221 # type: textblock
18222 #: ../fish/guestfish.pod:958
18223 msgid ""
18224 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
18225 "the discussion of paths in L<guestfs(3)>."
18226 msgstr ""
18227
18228 # type: textblock
18229 #: ../fish/guestfish.pod:969
18230 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
18231 msgstr ""
18232
18233 # type: =item
18234 #: ../fish/guestfish.pod:971
18235 msgid "PAGER"
18236 msgstr ""
18237
18238 # type: textblock
18239 #: ../fish/guestfish.pod:973
18240 msgid ""
18241 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
18242 "C<more>."
18243 msgstr ""
18244
18245 # type: =head1
18246 #: ../fish/guestfish.pod:988 ../test-tool/libguestfs-test-tool.pod:88
18247 msgid "FILES"
18248 msgstr ""
18249
18250 # type: =item
18251 #: ../fish/guestfish.pod:992
18252 msgid "$HOME/.guestfish"
18253 msgstr ""
18254
18255 # type: textblock
18256 #: ../fish/guestfish.pod:994
18257 msgid ""
18258 "If compiled with GNU readline support, then the command history is saved in "
18259 "this file."
18260 msgstr ""
18261
18262 # type: =item
18263 #: ../fish/guestfish.pod:997
18264 msgid "$HOME/.inputrc"
18265 msgstr ""
18266
18267 # type: =item
18268 #: ../fish/guestfish.pod:999
18269 msgid "/etc/inputrc"
18270 msgstr ""
18271
18272 # type: textblock
18273 #: ../fish/guestfish.pod:1001
18274 msgid ""
18275 "If compiled with GNU readline support, then these files can be used to "
18276 "configure readline.  For further information, please see "
18277 "L<readline(3)/INITIALIZATION FILE>."
18278 msgstr ""
18279
18280 # type: textblock
18281 #: ../fish/guestfish.pod:1005
18282 msgid "To write rules which only apply to guestfish, use:"
18283 msgstr ""
18284
18285 # type: verbatim
18286 #: ../fish/guestfish.pod:1007
18287 #, no-wrap
18288 msgid ""
18289 " $if guestfish\n"
18290 " ...\n"
18291 " $endif\n"
18292 "\n"
18293 msgstr ""
18294
18295 # type: textblock
18296 #: ../fish/guestfish.pod:1011
18297 msgid ""
18298 "Variables that you can set in inputrc that change the behaviour of guestfish "
18299 "in useful ways include:"
18300 msgstr ""
18301
18302 # type: =item
18303 #: ../fish/guestfish.pod:1016
18304 msgid "completion-ignore-case (default: on)"
18305 msgstr ""
18306
18307 # type: textblock
18308 #: ../fish/guestfish.pod:1018
18309 msgid ""
18310 "By default, guestfish will ignore case when tab-completing paths on the "
18311 "disk.  Use:"
18312 msgstr ""
18313
18314 # type: verbatim
18315 #: ../fish/guestfish.pod:1021
18316 #, no-wrap
18317 msgid ""
18318 " set completion-ignore-case off\n"
18319 "\n"
18320 msgstr ""
18321
18322 # type: textblock
18323 #: ../fish/guestfish.pod:1023
18324 msgid "to make guestfish case sensitive."
18325 msgstr ""
18326
18327 # type: =item
18328 #: ../fish/guestfish.pod:1027
18329 msgid "test1.img"
18330 msgstr ""
18331
18332 # type: =item
18333 #: ../fish/guestfish.pod:1029
18334 msgid "test2.img (etc)"
18335 msgstr ""
18336
18337 # type: textblock
18338 #: ../fish/guestfish.pod:1031
18339 msgid ""
18340 "When using the C<-N> or C<--new> option, the prepared disk or filesystem "
18341 "will be created in the file C<test1.img> in the current directory.  The "
18342 "second use of C<-N> will use C<test2.img> and so on.  Any existing file with "
18343 "the same name will be overwritten."
18344 msgstr ""
18345
18346 # type: textblock
18347 #: ../fish/guestfish.pod:1040
18348 msgid ""
18349 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-cat(1)>, L<virt-df(1)>, "
18350 "L<virt-edit(1)>, L<virt-list-filesystems(1)>, L<virt-list-partitions(1)>, "
18351 "L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-resize(1)>, "
18352 "L<virt-tar(1)>, L<virt-win-reg(1)>, L<hexedit(1)>."
18353 msgstr ""
18354
18355 # type: textblock
18356 #: ../fish/guestfish.pod:1064 ../test-tool/libguestfs-test-tool.pod:124 ../fuse/guestmount.pod:253 ../inspector/virt-inspector.pl:564 ../tools/virt-edit.pl:370 ../tools/virt-win-reg.pl:518 ../tools/virt-df.pl:657 ../tools/virt-ls.pl:251 ../tools/virt-resize.pl:1516 ../tools/virt-list-filesystems.pl:206 ../tools/virt-tar.pl:300 ../tools/virt-rescue.pl:285 ../tools/virt-make-fs.pl:567 ../tools/virt-list-partitions.pl:273
18357 msgid ""
18358 "This program is free software; you can redistribute it and/or modify it "
18359 "under the terms of the GNU General Public License as published by the Free "
18360 "Software Foundation; either version 2 of the License, or (at your option) "
18361 "any later version."
18362 msgstr ""
18363
18364 # type: textblock
18365 #: ../fish/guestfish.pod:1069 ../test-tool/libguestfs-test-tool.pod:129 ../fuse/guestmount.pod:258 ../inspector/virt-inspector.pl:569 ../tools/virt-edit.pl:375 ../tools/virt-win-reg.pl:523 ../tools/virt-df.pl:662 ../tools/virt-ls.pl:256 ../tools/virt-resize.pl:1521 ../tools/virt-list-filesystems.pl:211 ../tools/virt-tar.pl:305 ../tools/virt-rescue.pl:290 ../tools/virt-make-fs.pl:572 ../tools/virt-list-partitions.pl:278
18366 msgid ""
18367 "This program is distributed in the hope that it will be useful, but WITHOUT "
18368 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
18369 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
18370 "more details."
18371 msgstr ""
18372
18373 # type: textblock
18374 #: ../fish/guestfish.pod:1074 ../test-tool/libguestfs-test-tool.pod:134 ../fuse/guestmount.pod:263 ../inspector/virt-inspector.pl:574 ../tools/virt-edit.pl:380 ../tools/virt-win-reg.pl:528 ../tools/virt-df.pl:667 ../tools/virt-ls.pl:261 ../tools/virt-resize.pl:1526 ../tools/virt-list-filesystems.pl:216 ../tools/virt-tar.pl:310 ../tools/virt-rescue.pl:295 ../tools/virt-make-fs.pl:577 ../tools/virt-list-partitions.pl:283
18375 msgid ""
18376 "You should have received a copy of the GNU General Public License along with "
18377 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
18378 "Ave, Cambridge, MA 02139, USA."
18379 msgstr ""
18380
18381 # type: =head2
18382 #: ../fish/guestfish-actions.pod:1
18383 msgid "add-cdrom"
18384 msgstr ""
18385
18386 # type: verbatim
18387 #: ../fish/guestfish-actions.pod:3
18388 #, no-wrap
18389 msgid ""
18390 " add-cdrom filename\n"
18391 "\n"
18392 msgstr ""
18393
18394 # type: textblock
18395 #: ../fish/guestfish-actions.pod:15
18396 msgid ""
18397 "This call checks for the existence of C<filename>.  This stops you from "
18398 "specifying other types of drive which are supported by qemu such as C<nbd:> "
18399 "and C<http:> URLs.  To specify those, use the general L</config> call "
18400 "instead."
18401 msgstr ""
18402
18403 # type: textblock
18404 #: ../fish/guestfish-actions.pod:22
18405 msgid ""
18406 "If you just want to add an ISO file (often you use this as an efficient way "
18407 "to transfer large files into the guest), then you should probably use "
18408 "L</add-drive-ro> instead."
18409 msgstr ""
18410
18411 # type: =head2
18412 #: ../fish/guestfish-actions.pod:35
18413 msgid "add-domain"
18414 msgstr ""
18415
18416 # type: =head2
18417 #: ../fish/guestfish-actions.pod:37
18418 msgid "domain"
18419 msgstr ""
18420
18421 # type: verbatim
18422 #: ../fish/guestfish-actions.pod:39
18423 #, no-wrap
18424 msgid ""
18425 " add-domain dom [libvirturi:..] [readonly:..] [iface:..]\n"
18426 "\n"
18427 msgstr ""
18428
18429 # type: textblock
18430 #: ../fish/guestfish-actions.pod:41
18431 msgid ""
18432 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
18433 "It works by connecting to libvirt, requesting the domain and domain XML from "
18434 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
18435 msgstr ""
18436
18437 # type: textblock
18438 #: ../fish/guestfish-actions.pod:58
18439 msgid ""
18440 "The optional C<libvirturi> parameter sets the libvirt URI (see "
18441 "L<http://libvirt.org/uri.html>).  If this is not set then we connect to the "
18442 "default libvirt URI (or one set through an environment variable, see the "
18443 "libvirt documentation for full details).  If you are using the C API "
18444 "directly then it is more flexible to create the libvirt connection object "
18445 "yourself, get the domain object, and call L</add-libvirt-dom>."
18446 msgstr ""
18447
18448 # type: textblock
18449 #: ../fish/guestfish-actions.pod:66
18450 msgid ""
18451 "The other optional parameters are passed directly through to "
18452 "L</add-drive-opts>."
18453 msgstr ""
18454
18455 # type: textblock
18456 #: ../fish/guestfish-actions.pod:69 ../fish/guestfish-actions.pod:133
18457 msgid ""
18458 "This command has one or more optional arguments.  See L</OPTIONAL "
18459 "ARGUMENTS>."
18460 msgstr ""
18461
18462 # type: =head2
18463 #: ../fish/guestfish-actions.pod:71
18464 msgid "add-drive"
18465 msgstr ""
18466
18467 # type: verbatim
18468 #: ../fish/guestfish-actions.pod:73
18469 #, no-wrap
18470 msgid ""
18471 " add-drive filename\n"
18472 "\n"
18473 msgstr ""
18474
18475 # type: textblock
18476 #: ../fish/guestfish-actions.pod:75
18477 msgid ""
18478 "This function is the equivalent of calling L</add-drive-opts> with no "
18479 "optional parameters, so the disk is added writable, with the format being "
18480 "detected automatically."
18481 msgstr ""
18482
18483 # type: textblock
18484 #: ../fish/guestfish-actions.pod:79
18485 msgid ""
18486 "Automatic detection of the format opens you up to a potential security hole "
18487 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
18488 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
18489 "you should think about replacing calls to this function with calls to "
18490 "L</add-drive-opts>, and specifying the format."
18491 msgstr ""
18492
18493 # type: =head2
18494 #: ../fish/guestfish-actions.pod:86
18495 msgid "add-drive-opts"
18496 msgstr ""
18497
18498 # type: =head2
18499 #: ../fish/guestfish-actions.pod:88
18500 msgid "add"
18501 msgstr ""
18502
18503 # type: verbatim
18504 #: ../fish/guestfish-actions.pod:90
18505 #, no-wrap
18506 msgid ""
18507 " add-drive-opts filename [readonly:..] [format:..] [iface:..]\n"
18508 "\n"
18509 msgstr ""
18510
18511 # type: textblock
18512 #: ../fish/guestfish-actions.pod:117
18513 msgid ""
18514 "This forces the image format.  If you omit this (or use L</add-drive> or "
18515 "L</add-drive-ro>) then the format is automatically detected.  Possible "
18516 "formats include C<raw> and C<qcow2>."
18517 msgstr ""
18518
18519 # type: textblock
18520 #: ../fish/guestfish-actions.pod:128
18521 msgid ""
18522 "This rarely-used option lets you emulate the behaviour of the deprecated "
18523 "L</add-drive-with-if> call (q.v.)"
18524 msgstr ""
18525
18526 # type: =head2
18527 #: ../fish/guestfish-actions.pod:135
18528 msgid "add-drive-ro"
18529 msgstr ""
18530
18531 # type: =head2
18532 #: ../fish/guestfish-actions.pod:137
18533 msgid "add-ro"
18534 msgstr ""
18535
18536 # type: verbatim
18537 #: ../fish/guestfish-actions.pod:139
18538 #, no-wrap
18539 msgid ""
18540 " add-drive-ro filename\n"
18541 "\n"
18542 msgstr ""
18543
18544 # type: textblock
18545 #: ../fish/guestfish-actions.pod:141
18546 msgid ""
18547 "This function is the equivalent of calling L</add-drive-opts> with the "
18548 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
18549 "is added read-only, with the format being detected automatically."
18550 msgstr ""
18551
18552 # type: =head2
18553 #: ../fish/guestfish-actions.pod:146
18554 msgid "add-drive-ro-with-if"
18555 msgstr ""
18556
18557 # type: verbatim
18558 #: ../fish/guestfish-actions.pod:148
18559 #, no-wrap
18560 msgid ""
18561 " add-drive-ro-with-if filename iface\n"
18562 "\n"
18563 msgstr ""
18564
18565 # type: textblock
18566 #: ../fish/guestfish-actions.pod:150
18567 msgid ""
18568 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
18569 "interface emulation to use at run time."
18570 msgstr ""
18571
18572 # type: =head2
18573 #: ../fish/guestfish-actions.pod:160
18574 msgid "add-drive-with-if"
18575 msgstr ""
18576
18577 # type: verbatim
18578 #: ../fish/guestfish-actions.pod:162
18579 #, no-wrap
18580 msgid ""
18581 " add-drive-with-if filename iface\n"
18582 "\n"
18583 msgstr ""
18584
18585 # type: textblock
18586 #: ../fish/guestfish-actions.pod:164
18587 msgid ""
18588 "This is the same as L</add-drive> but it allows you to specify the QEMU "
18589 "interface emulation to use at run time."
18590 msgstr ""
18591
18592 # type: =head2
18593 #: ../fish/guestfish-actions.pod:174
18594 msgid "aug-clear"
18595 msgstr ""
18596
18597 # type: verbatim
18598 #: ../fish/guestfish-actions.pod:176
18599 #, no-wrap
18600 msgid ""
18601 " aug-clear augpath\n"
18602 "\n"
18603 msgstr ""
18604
18605 # type: =head2
18606 #: ../fish/guestfish-actions.pod:181
18607 msgid "aug-close"
18608 msgstr ""
18609
18610 # type: verbatim
18611 #: ../fish/guestfish-actions.pod:183
18612 #, no-wrap
18613 msgid ""
18614 " aug-close\n"
18615 "\n"
18616 msgstr ""
18617
18618 # type: textblock
18619 #: ../fish/guestfish-actions.pod:185
18620 msgid ""
18621 "Close the current Augeas handle and free up any resources used by it.  After "
18622 "calling this, you have to call L</aug-init> again before you can use any "
18623 "other Augeas functions."
18624 msgstr ""
18625
18626 # type: =head2
18627 #: ../fish/guestfish-actions.pod:190
18628 msgid "aug-defnode"
18629 msgstr ""
18630
18631 # type: verbatim
18632 #: ../fish/guestfish-actions.pod:192
18633 #, no-wrap
18634 msgid ""
18635 " aug-defnode name expr val\n"
18636 "\n"
18637 msgstr ""
18638
18639 # type: textblock
18640 #: ../fish/guestfish-actions.pod:197
18641 msgid ""
18642 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
18643 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
18644 "containing that single node."
18645 msgstr ""
18646
18647 # type: =head2
18648 #: ../fish/guestfish-actions.pod:205
18649 msgid "aug-defvar"
18650 msgstr ""
18651
18652 # type: verbatim
18653 #: ../fish/guestfish-actions.pod:207
18654 #, no-wrap
18655 msgid ""
18656 " aug-defvar name expr\n"
18657 "\n"
18658 msgstr ""
18659
18660 # type: =head2
18661 #: ../fish/guestfish-actions.pod:216
18662 msgid "aug-get"
18663 msgstr ""
18664
18665 # type: verbatim
18666 #: ../fish/guestfish-actions.pod:218
18667 #, no-wrap
18668 msgid ""
18669 " aug-get augpath\n"
18670 "\n"
18671 msgstr ""
18672
18673 # type: =head2
18674 #: ../fish/guestfish-actions.pod:223
18675 msgid "aug-init"
18676 msgstr ""
18677
18678 # type: verbatim
18679 #: ../fish/guestfish-actions.pod:225
18680 #, no-wrap
18681 msgid ""
18682 " aug-init root flags\n"
18683 "\n"
18684 msgstr ""
18685
18686 # type: textblock
18687 #: ../fish/guestfish-actions.pod:231
18688 msgid "You must call this before using any other L</aug-*> commands."
18689 msgstr ""
18690
18691 # type: textblock
18692 #: ../fish/guestfish-actions.pod:266
18693 msgid "Do not load the tree in L</aug-init>."
18694 msgstr ""
18695
18696 # type: textblock
18697 #: ../fish/guestfish-actions.pod:270
18698 msgid "To close the handle, you can call L</aug-close>."
18699 msgstr ""
18700
18701 # type: =head2
18702 #: ../fish/guestfish-actions.pod:274
18703 msgid "aug-insert"
18704 msgstr ""
18705
18706 # type: verbatim
18707 #: ../fish/guestfish-actions.pod:276
18708 #, no-wrap
18709 msgid ""
18710 " aug-insert augpath label true|false\n"
18711 "\n"
18712 msgstr ""
18713
18714 # type: =head2
18715 #: ../fish/guestfish-actions.pod:286
18716 msgid "aug-load"
18717 msgstr ""
18718
18719 # type: verbatim
18720 #: ../fish/guestfish-actions.pod:288
18721 #, no-wrap
18722 msgid ""
18723 " aug-load\n"
18724 "\n"
18725 msgstr ""
18726
18727 # type: =head2
18728 #: ../fish/guestfish-actions.pod:295
18729 msgid "aug-ls"
18730 msgstr ""
18731
18732 # type: verbatim
18733 #: ../fish/guestfish-actions.pod:297
18734 #, no-wrap
18735 msgid ""
18736 " aug-ls augpath\n"
18737 "\n"
18738 msgstr ""
18739
18740 # type: textblock
18741 #: ../fish/guestfish-actions.pod:299
18742 msgid ""
18743 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
18744 "resulting nodes into alphabetical order."
18745 msgstr ""
18746
18747 # type: =head2
18748 #: ../fish/guestfish-actions.pod:302
18749 msgid "aug-match"
18750 msgstr ""
18751
18752 # type: verbatim
18753 #: ../fish/guestfish-actions.pod:304
18754 #, no-wrap
18755 msgid ""
18756 " aug-match augpath\n"
18757 "\n"
18758 msgstr ""
18759
18760 # type: =head2
18761 #: ../fish/guestfish-actions.pod:310
18762 msgid "aug-mv"
18763 msgstr ""
18764
18765 # type: verbatim
18766 #: ../fish/guestfish-actions.pod:312
18767 #, no-wrap
18768 msgid ""
18769 " aug-mv src dest\n"
18770 "\n"
18771 msgstr ""
18772
18773 # type: =head2
18774 #: ../fish/guestfish-actions.pod:317
18775 msgid "aug-rm"
18776 msgstr ""
18777
18778 # type: verbatim
18779 #: ../fish/guestfish-actions.pod:319
18780 #, no-wrap
18781 msgid ""
18782 " aug-rm augpath\n"
18783 "\n"
18784 msgstr ""
18785
18786 # type: =head2
18787 #: ../fish/guestfish-actions.pod:325
18788 msgid "aug-save"
18789 msgstr ""
18790
18791 # type: verbatim
18792 #: ../fish/guestfish-actions.pod:327
18793 #, no-wrap
18794 msgid ""
18795 " aug-save\n"
18796 "\n"
18797 msgstr ""
18798
18799 # type: textblock
18800 #: ../fish/guestfish-actions.pod:331
18801 msgid ""
18802 "The flags which were passed to L</aug-init> affect exactly how files are "
18803 "saved."
18804 msgstr ""
18805
18806 # type: =head2
18807 #: ../fish/guestfish-actions.pod:334
18808 msgid "aug-set"
18809 msgstr ""
18810
18811 # type: verbatim
18812 #: ../fish/guestfish-actions.pod:336
18813 #, no-wrap
18814 msgid ""
18815 " aug-set augpath val\n"
18816 "\n"
18817 msgstr ""
18818
18819 # type: textblock
18820 #: ../fish/guestfish-actions.pod:340
18821 msgid ""
18822 "In the Augeas API, it is possible to clear a node by setting the value to "
18823 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
18824 "this call.  Instead you must use the L</aug-clear> call."
18825 msgstr ""
18826
18827 # type: =head2
18828 #: ../fish/guestfish-actions.pod:345
18829 msgid "available"
18830 msgstr ""
18831
18832 # type: verbatim
18833 #: ../fish/guestfish-actions.pod:347
18834 #, no-wrap
18835 msgid ""
18836 " available 'groups ...'\n"
18837 "\n"
18838 msgstr ""
18839
18840 # type: textblock
18841 #: ../fish/guestfish-actions.pod:353
18842 msgid ""
18843 "The libguestfs groups, and the functions that those groups correspond to, "
18844 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
18845 "runtime by calling L</available-all-groups>."
18846 msgstr ""
18847
18848 # type: textblock
18849 #: ../fish/guestfish-actions.pod:377
18850 msgid "You must call L</launch> before calling this function."
18851 msgstr ""
18852
18853 # type: textblock
18854 #: ../fish/guestfish-actions.pod:399
18855 msgid ""
18856 "This call was added in version C<1.0.80>.  In previous versions of "
18857 "libguestfs all you could do would be to speculatively execute a command to "
18858 "find out if the daemon implemented it.  See also L</version>."
18859 msgstr ""
18860
18861 # type: =head2
18862 #: ../fish/guestfish-actions.pod:406
18863 msgid "available-all-groups"
18864 msgstr ""
18865
18866 # type: verbatim
18867 #: ../fish/guestfish-actions.pod:408
18868 #, no-wrap
18869 msgid ""
18870 " available-all-groups\n"
18871 "\n"
18872 msgstr ""
18873
18874 # type: textblock
18875 #: ../fish/guestfish-actions.pod:410
18876 msgid ""
18877 "This command returns a list of all optional groups that this daemon knows "
18878 "about.  Note this returns both supported and unsupported groups.  To find "
18879 "out which ones the daemon can actually support you have to call "
18880 "L</available> on each member of the returned list."
18881 msgstr ""
18882
18883 # type: textblock
18884 #: ../fish/guestfish-actions.pod:416
18885 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
18886 msgstr ""
18887
18888 # type: =head2
18889 #: ../fish/guestfish-actions.pod:418
18890 msgid "base64-in"
18891 msgstr ""
18892
18893 # type: verbatim
18894 #: ../fish/guestfish-actions.pod:420
18895 #, no-wrap
18896 msgid ""
18897 " base64-in (base64file|-) filename\n"
18898 "\n"
18899 msgstr ""
18900
18901 # type: textblock
18902 #: ../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:4006 ../fish/guestfish-actions.pod:4018 ../fish/guestfish-actions.pod:4029 ../fish/guestfish-actions.pod:4040 ../fish/guestfish-actions.pod:4092 ../fish/guestfish-actions.pod:4101 ../fish/guestfish-actions.pod:4155 ../fish/guestfish-actions.pod:4178
18903 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
18904 msgstr ""
18905
18906 # type: =head2
18907 #: ../fish/guestfish-actions.pod:427
18908 msgid "base64-out"
18909 msgstr ""
18910
18911 # type: verbatim
18912 #: ../fish/guestfish-actions.pod:429
18913 #, no-wrap
18914 msgid ""
18915 " base64-out filename (base64file|-)\n"
18916 "\n"
18917 msgstr ""
18918
18919 # type: =head2
18920 #: ../fish/guestfish-actions.pod:436
18921 msgid "blockdev-flushbufs"
18922 msgstr ""
18923
18924 # type: verbatim
18925 #: ../fish/guestfish-actions.pod:438
18926 #, no-wrap
18927 msgid ""
18928 " blockdev-flushbufs device\n"
18929 "\n"
18930 msgstr ""
18931
18932 # type: =head2
18933 #: ../fish/guestfish-actions.pod:445
18934 msgid "blockdev-getbsz"
18935 msgstr ""
18936
18937 # type: verbatim
18938 #: ../fish/guestfish-actions.pod:447
18939 #, no-wrap
18940 msgid ""
18941 " blockdev-getbsz device\n"
18942 "\n"
18943 msgstr ""
18944
18945 # type: =head2
18946 #: ../fish/guestfish-actions.pod:456
18947 msgid "blockdev-getro"
18948 msgstr ""
18949
18950 # type: verbatim
18951 #: ../fish/guestfish-actions.pod:458
18952 #, no-wrap
18953 msgid ""
18954 " blockdev-getro device\n"
18955 "\n"
18956 msgstr ""
18957
18958 # type: =head2
18959 #: ../fish/guestfish-actions.pod:465
18960 msgid "blockdev-getsize64"
18961 msgstr ""
18962
18963 # type: verbatim
18964 #: ../fish/guestfish-actions.pod:467
18965 #, no-wrap
18966 msgid ""
18967 " blockdev-getsize64 device\n"
18968 "\n"
18969 msgstr ""
18970
18971 # type: textblock
18972 #: ../fish/guestfish-actions.pod:471
18973 msgid "See also L</blockdev-getsz>."
18974 msgstr ""
18975
18976 # type: =head2
18977 #: ../fish/guestfish-actions.pod:475
18978 msgid "blockdev-getss"
18979 msgstr ""
18980
18981 # type: verbatim
18982 #: ../fish/guestfish-actions.pod:477
18983 #, no-wrap
18984 msgid ""
18985 " blockdev-getss device\n"
18986 "\n"
18987 msgstr ""
18988
18989 # type: textblock
18990 #: ../fish/guestfish-actions.pod:482
18991 msgid "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
18992 msgstr ""
18993
18994 # type: =head2
18995 #: ../fish/guestfish-actions.pod:487
18996 msgid "blockdev-getsz"
18997 msgstr ""
18998
18999 # type: verbatim
19000 #: ../fish/guestfish-actions.pod:489
19001 #, no-wrap
19002 msgid ""
19003 " blockdev-getsz device\n"
19004 "\n"
19005 msgstr ""
19006
19007 # type: textblock
19008 #: ../fish/guestfish-actions.pod:494
19009 msgid ""
19010 "See also L</blockdev-getss> for the real sector size of the device, and "
19011 "L</blockdev-getsize64> for the more useful I<size in bytes>."
19012 msgstr ""
19013
19014 # type: =head2
19015 #: ../fish/guestfish-actions.pod:500
19016 msgid "blockdev-rereadpt"
19017 msgstr ""
19018
19019 # type: verbatim
19020 #: ../fish/guestfish-actions.pod:502
19021 #, no-wrap
19022 msgid ""
19023 " blockdev-rereadpt device\n"
19024 "\n"
19025 msgstr ""
19026
19027 # type: =head2
19028 #: ../fish/guestfish-actions.pod:508
19029 msgid "blockdev-setbsz"
19030 msgstr ""
19031
19032 # type: verbatim
19033 #: ../fish/guestfish-actions.pod:510
19034 #, no-wrap
19035 msgid ""
19036 " blockdev-setbsz device blocksize\n"
19037 "\n"
19038 msgstr ""
19039
19040 # type: =head2
19041 #: ../fish/guestfish-actions.pod:519
19042 msgid "blockdev-setro"
19043 msgstr ""
19044
19045 # type: verbatim
19046 #: ../fish/guestfish-actions.pod:521
19047 #, no-wrap
19048 msgid ""
19049 " blockdev-setro device\n"
19050 "\n"
19051 msgstr ""
19052
19053 # type: =head2
19054 #: ../fish/guestfish-actions.pod:527
19055 msgid "blockdev-setrw"
19056 msgstr ""
19057
19058 # type: verbatim
19059 #: ../fish/guestfish-actions.pod:529
19060 #, no-wrap
19061 msgid ""
19062 " blockdev-setrw device\n"
19063 "\n"
19064 msgstr ""
19065
19066 # type: =head2
19067 #: ../fish/guestfish-actions.pod:535
19068 msgid "case-sensitive-path"
19069 msgstr ""
19070
19071 # type: verbatim
19072 #: ../fish/guestfish-actions.pod:537
19073 #, no-wrap
19074 msgid ""
19075 " case-sensitive-path path\n"
19076 "\n"
19077 msgstr ""
19078
19079 # type: textblock
19080 #: ../fish/guestfish-actions.pod:561
19081 msgid ""
19082 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return "
19083 "C<\"/WINDOWS/system32\"> (the exact return value would depend on details of "
19084 "how the directories were originally created under Windows)."
19085 msgstr ""
19086
19087 # type: textblock
19088 #: ../fish/guestfish-actions.pod:569
19089 msgid "See also L</realpath>."
19090 msgstr ""
19091
19092 # type: =head2
19093 #: ../fish/guestfish-actions.pod:571
19094 msgid "cat"
19095 msgstr ""
19096
19097 # type: verbatim
19098 #: ../fish/guestfish-actions.pod:573
19099 #, no-wrap
19100 msgid ""
19101 " cat path\n"
19102 "\n"
19103 msgstr ""
19104
19105 # type: textblock
19106 #: ../fish/guestfish-actions.pod:577
19107 msgid ""
19108 "Note that this function cannot correctly handle binary files (specifically, "
19109 "files containing C<\\0> character which is treated as end of string).  For "
19110 "those you need to use the L</read-file> or L</download> functions which have "
19111 "a more complex interface."
19112 msgstr ""
19113
19114 # type: =head2
19115 #: ../fish/guestfish-actions.pod:585
19116 msgid "checksum"
19117 msgstr ""
19118
19119 # type: verbatim
19120 #: ../fish/guestfish-actions.pod:587
19121 #, no-wrap
19122 msgid ""
19123 " checksum csumtype path\n"
19124 "\n"
19125 msgstr ""
19126
19127 # type: textblock
19128 #: ../fish/guestfish-actions.pod:630
19129 msgid "To get the checksum for a device, use L</checksum-device>."
19130 msgstr ""
19131
19132 # type: textblock
19133 #: ../fish/guestfish-actions.pod:632
19134 msgid "To get the checksums for many files, use L</checksums-out>."
19135 msgstr ""
19136
19137 # type: =head2
19138 #: ../fish/guestfish-actions.pod:634
19139 msgid "checksum-device"
19140 msgstr ""
19141
19142 # type: verbatim
19143 #: ../fish/guestfish-actions.pod:636
19144 #, no-wrap
19145 msgid ""
19146 " checksum-device csumtype device\n"
19147 "\n"
19148 msgstr ""
19149
19150 # type: textblock
19151 #: ../fish/guestfish-actions.pod:638
19152 msgid ""
19153 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
19154 "device named C<device>.  For the types of checksums supported see the "
19155 "L</checksum> command."
19156 msgstr ""
19157
19158 # type: =head2
19159 #: ../fish/guestfish-actions.pod:642
19160 msgid "checksums-out"
19161 msgstr ""
19162
19163 # type: verbatim
19164 #: ../fish/guestfish-actions.pod:644
19165 #, no-wrap
19166 msgid ""
19167 " checksums-out csumtype directory (sumsfile|-)\n"
19168 "\n"
19169 msgstr ""
19170
19171 # type: =head2
19172 #: ../fish/guestfish-actions.pod:660
19173 msgid "chmod"
19174 msgstr ""
19175
19176 # type: verbatim
19177 #: ../fish/guestfish-actions.pod:662
19178 #, no-wrap
19179 msgid ""
19180 " chmod mode path\n"
19181 "\n"
19182 msgstr ""
19183
19184 # type: =head2
19185 #: ../fish/guestfish-actions.pod:673
19186 msgid "chown"
19187 msgstr ""
19188
19189 # type: verbatim
19190 #: ../fish/guestfish-actions.pod:675
19191 #, no-wrap
19192 msgid ""
19193 " chown owner group path\n"
19194 "\n"
19195 msgstr ""
19196
19197 # type: =head2
19198 #: ../fish/guestfish-actions.pod:683
19199 msgid "command"
19200 msgstr ""
19201
19202 # type: verbatim
19203 #: ../fish/guestfish-actions.pod:685
19204 #, no-wrap
19205 msgid ""
19206 " command 'arguments ...'\n"
19207 "\n"
19208 msgstr ""
19209
19210 # type: textblock
19211 #: ../fish/guestfish-actions.pod:692
19212 msgid ""
19213 "The single parameter is an argv-style list of arguments.  The first element "
19214 "is the name of the program to run.  Subsequent elements are parameters.  The "
19215 "list must be non-empty (ie. must contain a program name).  Note that the "
19216 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
19217 msgstr ""
19218
19219 # type: =head2
19220 #: ../fish/guestfish-actions.pod:720
19221 msgid "command-lines"
19222 msgstr ""
19223
19224 # type: verbatim
19225 #: ../fish/guestfish-actions.pod:722
19226 #, no-wrap
19227 msgid ""
19228 " command-lines 'arguments ...'\n"
19229 "\n"
19230 msgstr ""
19231
19232 # type: textblock
19233 #: ../fish/guestfish-actions.pod:724
19234 msgid "This is the same as L</command>, but splits the result into a list of lines."
19235 msgstr ""
19236
19237 # type: textblock
19238 #: ../fish/guestfish-actions.pod:727
19239 msgid "See also: L</sh-lines>"
19240 msgstr ""
19241
19242 # type: =head2
19243 #: ../fish/guestfish-actions.pod:732
19244 msgid "config"
19245 msgstr ""
19246
19247 # type: verbatim
19248 #: ../fish/guestfish-actions.pod:734
19249 #, no-wrap
19250 msgid ""
19251 " config qemuparam qemuvalue\n"
19252 "\n"
19253 msgstr ""
19254
19255 # type: =head2
19256 #: ../fish/guestfish-actions.pod:745
19257 msgid "copy-size"
19258 msgstr ""
19259
19260 # type: verbatim
19261 #: ../fish/guestfish-actions.pod:747
19262 #, no-wrap
19263 msgid ""
19264 " copy-size src dest size\n"
19265 "\n"
19266 msgstr ""
19267
19268 # type: =head2
19269 #: ../fish/guestfish-actions.pod:755
19270 msgid "cp"
19271 msgstr ""
19272
19273 # type: verbatim
19274 #: ../fish/guestfish-actions.pod:757
19275 #, no-wrap
19276 msgid ""
19277 " cp src dest\n"
19278 "\n"
19279 msgstr ""
19280
19281 # type: =head2
19282 #: ../fish/guestfish-actions.pod:762
19283 msgid "cp-a"
19284 msgstr ""
19285
19286 # type: verbatim
19287 #: ../fish/guestfish-actions.pod:764
19288 #, no-wrap
19289 msgid ""
19290 " cp-a src dest\n"
19291 "\n"
19292 msgstr ""
19293
19294 # type: =head2
19295 #: ../fish/guestfish-actions.pod:769
19296 msgid "dd"
19297 msgstr ""
19298
19299 # type: verbatim
19300 #: ../fish/guestfish-actions.pod:771
19301 #, no-wrap
19302 msgid ""
19303 " dd src dest\n"
19304 "\n"
19305 msgstr ""
19306
19307 # type: textblock
19308 #: ../fish/guestfish-actions.pod:778
19309 msgid ""
19310 "If the destination is a device, it must be as large or larger than the "
19311 "source file or device, otherwise the copy will fail.  This command cannot do "
19312 "partial copies (see L</copy-size>)."
19313 msgstr ""
19314
19315 # type: =head2
19316 #: ../fish/guestfish-actions.pod:782
19317 msgid "df"
19318 msgstr ""
19319
19320 # type: verbatim
19321 #: ../fish/guestfish-actions.pod:784
19322 #, no-wrap
19323 msgid ""
19324 " df\n"
19325 "\n"
19326 msgstr ""
19327
19328 # type: =head2
19329 #: ../fish/guestfish-actions.pod:792
19330 msgid "df-h"
19331 msgstr ""
19332
19333 # type: verbatim
19334 #: ../fish/guestfish-actions.pod:794
19335 #, no-wrap
19336 msgid ""
19337 " df-h\n"
19338 "\n"
19339 msgstr ""
19340
19341 # type: =head2
19342 #: ../fish/guestfish-actions.pod:803
19343 msgid "dmesg"
19344 msgstr ""
19345
19346 # type: verbatim
19347 #: ../fish/guestfish-actions.pod:805
19348 #, no-wrap
19349 msgid ""
19350 " dmesg\n"
19351 "\n"
19352 msgstr ""
19353
19354 # type: textblock
19355 #: ../fish/guestfish-actions.pod:811
19356 msgid ""
19357 "Another way to get the same information is to enable verbose messages with "
19358 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
19359 "before running the program."
19360 msgstr ""
19361
19362 # type: =head2
19363 #: ../fish/guestfish-actions.pod:816
19364 msgid "download"
19365 msgstr ""
19366
19367 # type: verbatim
19368 #: ../fish/guestfish-actions.pod:818
19369 #, no-wrap
19370 msgid ""
19371 " download remotefilename (filename|-)\n"
19372 "\n"
19373 msgstr ""
19374
19375 # type: textblock
19376 #: ../fish/guestfish-actions.pod:825
19377 msgid "See also L</upload>, L</cat>."
19378 msgstr ""
19379
19380 # type: =head2
19381 #: ../fish/guestfish-actions.pod:829
19382 msgid "download-offset"
19383 msgstr ""
19384
19385 # type: verbatim
19386 #: ../fish/guestfish-actions.pod:831
19387 #, no-wrap
19388 msgid ""
19389 " download-offset remotefilename (filename|-) offset size\n"
19390 "\n"
19391 msgstr ""
19392
19393 # type: textblock
19394 #: ../fish/guestfish-actions.pod:839
19395 msgid ""
19396 "Note that there is no limit on the amount of data that can be downloaded "
19397 "with this call, unlike with L</pread>, and this call always reads the full "
19398 "amount unless an error occurs."
19399 msgstr ""
19400
19401 # type: textblock
19402 #: ../fish/guestfish-actions.pod:844
19403 msgid "See also L</download>, L</pread>."
19404 msgstr ""
19405
19406 # type: =head2
19407 #: ../fish/guestfish-actions.pod:848
19408 msgid "drop-caches"
19409 msgstr ""
19410
19411 # type: verbatim
19412 #: ../fish/guestfish-actions.pod:850
19413 #, no-wrap
19414 msgid ""
19415 " drop-caches whattodrop\n"
19416 "\n"
19417 msgstr ""
19418
19419 # type: =head2
19420 #: ../fish/guestfish-actions.pod:862
19421 msgid "du"
19422 msgstr ""
19423
19424 # type: verbatim
19425 #: ../fish/guestfish-actions.pod:864
19426 #, no-wrap
19427 msgid ""
19428 " du path\n"
19429 "\n"
19430 msgstr ""
19431
19432 # type: =head2
19433 #: ../fish/guestfish-actions.pod:876
19434 msgid "e2fsck-f"
19435 msgstr ""
19436
19437 # type: verbatim
19438 #: ../fish/guestfish-actions.pod:878
19439 #, no-wrap
19440 msgid ""
19441 " e2fsck-f device\n"
19442 "\n"
19443 msgstr ""
19444
19445 # type: textblock
19446 #: ../fish/guestfish-actions.pod:884
19447 msgid ""
19448 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
19449 "should use L</fsck>."
19450 msgstr ""
19451
19452 # type: =head2
19453 #: ../fish/guestfish-actions.pod:887
19454 msgid "echo-daemon"
19455 msgstr ""
19456
19457 # type: verbatim
19458 #: ../fish/guestfish-actions.pod:889
19459 #, no-wrap
19460 msgid ""
19461 " echo-daemon 'words ...'\n"
19462 "\n"
19463 msgstr ""
19464
19465 # type: textblock
19466 #: ../fish/guestfish-actions.pod:896
19467 msgid "See also L</ping-daemon>."
19468 msgstr ""
19469
19470 # type: =head2
19471 #: ../fish/guestfish-actions.pod:898
19472 msgid "egrep"
19473 msgstr ""
19474
19475 # type: verbatim
19476 #: ../fish/guestfish-actions.pod:900
19477 #, no-wrap
19478 msgid ""
19479 " egrep regex path\n"
19480 "\n"
19481 msgstr ""
19482
19483 # type: =head2
19484 #: ../fish/guestfish-actions.pod:908
19485 msgid "egrepi"
19486 msgstr ""
19487
19488 # type: verbatim
19489 #: ../fish/guestfish-actions.pod:910
19490 #, no-wrap
19491 msgid ""
19492 " egrepi regex path\n"
19493 "\n"
19494 msgstr ""
19495
19496 # type: =head2
19497 #: ../fish/guestfish-actions.pod:918
19498 msgid "equal"
19499 msgstr ""
19500
19501 # type: verbatim
19502 #: ../fish/guestfish-actions.pod:920
19503 #, no-wrap
19504 msgid ""
19505 " equal file1 file2\n"
19506 "\n"
19507 msgstr ""
19508
19509 # type: =head2
19510 #: ../fish/guestfish-actions.pod:927
19511 msgid "exists"
19512 msgstr ""
19513
19514 # type: verbatim
19515 #: ../fish/guestfish-actions.pod:929
19516 #, no-wrap
19517 msgid ""
19518 " exists path\n"
19519 "\n"
19520 msgstr ""
19521
19522 # type: textblock
19523 #: ../fish/guestfish-actions.pod:934
19524 msgid "See also L</is-file>, L</is-dir>, L</stat>."
19525 msgstr ""
19526
19527 # type: =head2
19528 #: ../fish/guestfish-actions.pod:936
19529 msgid "fallocate"
19530 msgstr ""
19531
19532 # type: verbatim
19533 #: ../fish/guestfish-actions.pod:938
19534 #, no-wrap
19535 msgid ""
19536 " fallocate path len\n"
19537 "\n"
19538 msgstr ""
19539
19540 # type: =head2
19541 #: ../fish/guestfish-actions.pod:955
19542 msgid "fallocate64"
19543 msgstr ""
19544
19545 # type: verbatim
19546 #: ../fish/guestfish-actions.pod:957
19547 #, no-wrap
19548 msgid ""
19549 " fallocate64 path len\n"
19550 "\n"
19551 msgstr ""
19552
19553 # type: textblock
19554 #: ../fish/guestfish-actions.pod:963
19555 msgid ""
19556 "Note that this call allocates disk blocks for the file.  To create a sparse "
19557 "file use L</truncate-size> instead."
19558 msgstr ""
19559
19560 # type: textblock
19561 #: ../fish/guestfish-actions.pod:966
19562 msgid ""
19563 "The deprecated call L</fallocate> does the same, but owing to an oversight "
19564 "it only allowed 30 bit lengths to be specified, effectively limiting the "
19565 "maximum size of files created through that call to 1GB."
19566 msgstr ""
19567
19568 # type: =head2
19569 #: ../fish/guestfish-actions.pod:975
19570 msgid "fgrep"
19571 msgstr ""
19572
19573 # type: verbatim
19574 #: ../fish/guestfish-actions.pod:977
19575 #, no-wrap
19576 msgid ""
19577 " fgrep pattern path\n"
19578 "\n"
19579 msgstr ""
19580
19581 # type: =head2
19582 #: ../fish/guestfish-actions.pod:985
19583 msgid "fgrepi"
19584 msgstr ""
19585
19586 # type: verbatim
19587 #: ../fish/guestfish-actions.pod:987
19588 #, no-wrap
19589 msgid ""
19590 " fgrepi pattern path\n"
19591 "\n"
19592 msgstr ""
19593
19594 # type: =head2
19595 #: ../fish/guestfish-actions.pod:995
19596 msgid "file"
19597 msgstr ""
19598
19599 # type: verbatim
19600 #: ../fish/guestfish-actions.pod:997
19601 #, no-wrap
19602 msgid ""
19603 " file path\n"
19604 "\n"
19605 msgstr ""
19606
19607 # type: textblock
19608 #: ../fish/guestfish-actions.pod:1009
19609 msgid ""
19610 "This command can also be used on C</dev/> devices (and partitions, LV "
19611 "names).  You can for example use this to determine if a device contains a "
19612 "filesystem, although it's usually better to use L</vfs-type>."
19613 msgstr ""
19614
19615 # type: =head2
19616 #: ../fish/guestfish-actions.pod:1019
19617 msgid "file-architecture"
19618 msgstr ""
19619
19620 # type: verbatim
19621 #: ../fish/guestfish-actions.pod:1021
19622 #, no-wrap
19623 msgid ""
19624 " file-architecture filename\n"
19625 "\n"
19626 msgstr ""
19627
19628 # type: =head2
19629 #: ../fish/guestfish-actions.pod:1124
19630 msgid "filesize"
19631 msgstr ""
19632
19633 # type: verbatim
19634 #: ../fish/guestfish-actions.pod:1126
19635 #, no-wrap
19636 msgid ""
19637 " filesize file\n"
19638 "\n"
19639 msgstr ""
19640
19641 # type: textblock
19642 #: ../fish/guestfish-actions.pod:1130
19643 msgid ""
19644 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, "
19645 "L</is-file> etc.  To get the size of block devices, use "
19646 "L</blockdev-getsize64>."
19647 msgstr ""
19648
19649 # type: =head2
19650 #: ../fish/guestfish-actions.pod:1134
19651 msgid "fill"
19652 msgstr ""
19653
19654 # type: verbatim
19655 #: ../fish/guestfish-actions.pod:1136
19656 #, no-wrap
19657 msgid ""
19658 " fill c len path\n"
19659 "\n"
19660 msgstr ""
19661
19662 # type: textblock
19663 #: ../fish/guestfish-actions.pod:1142
19664 msgid ""
19665 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
19666 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
19667 "L</fill-pattern>."
19668 msgstr ""
19669
19670 # type: =head2
19671 #: ../fish/guestfish-actions.pod:1147
19672 msgid "fill-pattern"
19673 msgstr ""
19674
19675 # type: verbatim
19676 #: ../fish/guestfish-actions.pod:1149
19677 #, no-wrap
19678 msgid ""
19679 " fill-pattern pattern len path\n"
19680 "\n"
19681 msgstr ""
19682
19683 # type: textblock
19684 #: ../fish/guestfish-actions.pod:1151
19685 msgid ""
19686 "This function is like L</fill> except that it creates a new file of length "
19687 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
19688 "is truncated if necessary to ensure the length of the file is exactly C<len> "
19689 "bytes."
19690 msgstr ""
19691
19692 # type: =head2
19693 #: ../fish/guestfish-actions.pod:1156
19694 msgid "find"
19695 msgstr ""
19696
19697 # type: verbatim
19698 #: ../fish/guestfish-actions.pod:1158
19699 #, no-wrap
19700 msgid ""
19701 " find directory\n"
19702 "\n"
19703 msgstr ""
19704
19705 # type: textblock
19706 #: ../fish/guestfish-actions.pod:1172
19707 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
19708 msgstr ""
19709
19710 # type: textblock
19711 #: ../fish/guestfish-actions.pod:1185
19712 msgid "See also L</find0>."
19713 msgstr ""
19714
19715 # type: =head2
19716 #: ../fish/guestfish-actions.pod:1190
19717 msgid "find0"
19718 msgstr ""
19719
19720 # type: verbatim
19721 #: ../fish/guestfish-actions.pod:1192
19722 #, no-wrap
19723 msgid ""
19724 " find0 directory (files|-)\n"
19725 "\n"
19726 msgstr ""
19727
19728 # type: textblock
19729 #: ../fish/guestfish-actions.pod:1198
19730 msgid "This command works the same way as L</find> with the following exceptions:"
19731 msgstr ""
19732
19733 # type: =head2
19734 #: ../fish/guestfish-actions.pod:1225
19735 msgid "findfs-label"
19736 msgstr ""
19737
19738 # type: verbatim
19739 #: ../fish/guestfish-actions.pod:1227
19740 #, no-wrap
19741 msgid ""
19742 " findfs-label label\n"
19743 "\n"
19744 msgstr ""
19745
19746 # type: textblock
19747 #: ../fish/guestfish-actions.pod:1233
19748 msgid "To find the label of a filesystem, use L</vfs-label>."
19749 msgstr ""
19750
19751 # type: =head2
19752 #: ../fish/guestfish-actions.pod:1235
19753 msgid "findfs-uuid"
19754 msgstr ""
19755
19756 # type: verbatim
19757 #: ../fish/guestfish-actions.pod:1237
19758 #, no-wrap
19759 msgid ""
19760 " findfs-uuid uuid\n"
19761 "\n"
19762 msgstr ""
19763
19764 # type: textblock
19765 #: ../fish/guestfish-actions.pod:1243
19766 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
19767 msgstr ""
19768
19769 # type: =head2
19770 #: ../fish/guestfish-actions.pod:1245
19771 msgid "fsck"
19772 msgstr ""
19773
19774 # type: verbatim
19775 #: ../fish/guestfish-actions.pod:1247
19776 #, no-wrap
19777 msgid ""
19778 " fsck fstype device\n"
19779 "\n"
19780 msgstr ""
19781
19782 # type: =head2
19783 #: ../fish/guestfish-actions.pod:1277
19784 msgid "get-append"
19785 msgstr ""
19786
19787 # type: verbatim
19788 #: ../fish/guestfish-actions.pod:1279
19789 #, no-wrap
19790 msgid ""
19791 " get-append\n"
19792 "\n"
19793 msgstr ""
19794
19795 # type: =head2
19796 #: ../fish/guestfish-actions.pod:1286
19797 msgid "get-autosync"
19798 msgstr ""
19799
19800 # type: verbatim
19801 #: ../fish/guestfish-actions.pod:1288
19802 #, no-wrap
19803 msgid ""
19804 " get-autosync\n"
19805 "\n"
19806 msgstr ""
19807
19808 # type: =head2
19809 #: ../fish/guestfish-actions.pod:1292
19810 msgid "get-direct"
19811 msgstr ""
19812
19813 # type: verbatim
19814 #: ../fish/guestfish-actions.pod:1294
19815 #, no-wrap
19816 msgid ""
19817 " get-direct\n"
19818 "\n"
19819 msgstr ""
19820
19821 # type: =head2
19822 #: ../fish/guestfish-actions.pod:1298
19823 msgid "get-e2label"
19824 msgstr ""
19825
19826 # type: verbatim
19827 #: ../fish/guestfish-actions.pod:1300
19828 #, no-wrap
19829 msgid ""
19830 " get-e2label device\n"
19831 "\n"
19832 msgstr ""
19833
19834 # type: =head2
19835 #: ../fish/guestfish-actions.pod:1312
19836 msgid "get-e2uuid"
19837 msgstr ""
19838
19839 # type: verbatim
19840 #: ../fish/guestfish-actions.pod:1314
19841 #, no-wrap
19842 msgid ""
19843 " get-e2uuid device\n"
19844 "\n"
19845 msgstr ""
19846
19847 # type: =head2
19848 #: ../fish/guestfish-actions.pod:1326
19849 msgid "get-memsize"
19850 msgstr ""
19851
19852 # type: verbatim
19853 #: ../fish/guestfish-actions.pod:1328
19854 #, no-wrap
19855 msgid ""
19856 " get-memsize\n"
19857 "\n"
19858 msgstr ""
19859
19860 # type: textblock
19861 #: ../fish/guestfish-actions.pod:1333
19862 msgid ""
19863 "If L</set-memsize> was not called on this handle, and if "
19864 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
19865 "value for memsize."
19866 msgstr ""
19867
19868 # type: =head2
19869 #: ../fish/guestfish-actions.pod:1340
19870 msgid "get-network"
19871 msgstr ""
19872
19873 # type: verbatim
19874 #: ../fish/guestfish-actions.pod:1342
19875 #, no-wrap
19876 msgid ""
19877 " get-network\n"
19878 "\n"
19879 msgstr ""
19880
19881 # type: =head2
19882 #: ../fish/guestfish-actions.pod:1346
19883 msgid "get-path"
19884 msgstr ""
19885
19886 # type: verbatim
19887 #: ../fish/guestfish-actions.pod:1348
19888 #, no-wrap
19889 msgid ""
19890 " get-path\n"
19891 "\n"
19892 msgstr ""
19893
19894 # type: =head2
19895 #: ../fish/guestfish-actions.pod:1355
19896 msgid "get-pid"
19897 msgstr ""
19898
19899 # type: =head2
19900 #: ../fish/guestfish-actions.pod:1357
19901 msgid "pid"
19902 msgstr ""
19903
19904 # type: verbatim
19905 #: ../fish/guestfish-actions.pod:1359
19906 #, no-wrap
19907 msgid ""
19908 " get-pid\n"
19909 "\n"
19910 msgstr ""
19911
19912 # type: =head2
19913 #: ../fish/guestfish-actions.pod:1366
19914 msgid "get-qemu"
19915 msgstr ""
19916
19917 # type: verbatim
19918 #: ../fish/guestfish-actions.pod:1368
19919 #, no-wrap
19920 msgid ""
19921 " get-qemu\n"
19922 "\n"
19923 msgstr ""
19924
19925 # type: =head2
19926 #: ../fish/guestfish-actions.pod:1375
19927 msgid "get-recovery-proc"
19928 msgstr ""
19929
19930 # type: verbatim
19931 #: ../fish/guestfish-actions.pod:1377
19932 #, no-wrap
19933 msgid ""
19934 " get-recovery-proc\n"
19935 "\n"
19936 msgstr ""
19937
19938 # type: =head2
19939 #: ../fish/guestfish-actions.pod:1381
19940 msgid "get-selinux"
19941 msgstr ""
19942
19943 # type: verbatim
19944 #: ../fish/guestfish-actions.pod:1383
19945 #, no-wrap
19946 msgid ""
19947 " get-selinux\n"
19948 "\n"
19949 msgstr ""
19950
19951 # type: textblock
19952 #: ../fish/guestfish-actions.pod:1385
19953 msgid ""
19954 "This returns the current setting of the selinux flag which is passed to the "
19955 "appliance at boot time.  See L</set-selinux>."
19956 msgstr ""
19957
19958 # type: =head2
19959 #: ../fish/guestfish-actions.pod:1391
19960 msgid "get-state"
19961 msgstr ""
19962
19963 # type: verbatim
19964 #: ../fish/guestfish-actions.pod:1393
19965 #, no-wrap
19966 msgid ""
19967 " get-state\n"
19968 "\n"
19969 msgstr ""
19970
19971 # type: =head2
19972 #: ../fish/guestfish-actions.pod:1400
19973 msgid "get-trace"
19974 msgstr ""
19975
19976 # type: verbatim
19977 #: ../fish/guestfish-actions.pod:1402
19978 #, no-wrap
19979 msgid ""
19980 " get-trace\n"
19981 "\n"
19982 msgstr ""
19983
19984 # type: =head2
19985 #: ../fish/guestfish-actions.pod:1406
19986 msgid "get-umask"
19987 msgstr ""
19988
19989 # type: verbatim
19990 #: ../fish/guestfish-actions.pod:1408
19991 #, no-wrap
19992 msgid ""
19993 " get-umask\n"
19994 "\n"
19995 msgstr ""
19996
19997 # type: textblock
19998 #: ../fish/guestfish-actions.pod:1410
19999 msgid ""
20000 "Return the current umask.  By default the umask is C<022> unless it has been "
20001 "set by calling L</umask>."
20002 msgstr ""
20003
20004 # type: =head2
20005 #: ../fish/guestfish-actions.pod:1413
20006 msgid "get-verbose"
20007 msgstr ""
20008
20009 # type: verbatim
20010 #: ../fish/guestfish-actions.pod:1415
20011 #, no-wrap
20012 msgid ""
20013 " get-verbose\n"
20014 "\n"
20015 msgstr ""
20016
20017 # type: =head2
20018 #: ../fish/guestfish-actions.pod:1419
20019 msgid "getcon"
20020 msgstr ""
20021
20022 # type: verbatim
20023 #: ../fish/guestfish-actions.pod:1421
20024 #, no-wrap
20025 msgid ""
20026 " getcon\n"
20027 "\n"
20028 msgstr ""
20029
20030 # type: textblock
20031 #: ../fish/guestfish-actions.pod:1425
20032 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
20033 msgstr ""
20034
20035 # type: =head2
20036 #: ../fish/guestfish-actions.pod:1428
20037 msgid "getxattrs"
20038 msgstr ""
20039
20040 # type: verbatim
20041 #: ../fish/guestfish-actions.pod:1430
20042 #, no-wrap
20043 msgid ""
20044 " getxattrs path\n"
20045 "\n"
20046 msgstr ""
20047
20048 # type: textblock
20049 #: ../fish/guestfish-actions.pod:1438
20050 msgid "See also: L</lgetxattrs>, L<attr(5)>."
20051 msgstr ""
20052
20053 # type: =head2
20054 #: ../fish/guestfish-actions.pod:1440
20055 msgid "glob-expand"
20056 msgstr ""
20057
20058 # type: verbatim
20059 #: ../fish/guestfish-actions.pod:1442
20060 #, no-wrap
20061 msgid ""
20062 " glob-expand pattern\n"
20063 "\n"
20064 msgstr ""
20065
20066 # type: =head2
20067 #: ../fish/guestfish-actions.pod:1455
20068 msgid "grep"
20069 msgstr ""
20070
20071 # type: verbatim
20072 #: ../fish/guestfish-actions.pod:1457
20073 #, no-wrap
20074 msgid ""
20075 " grep regex path\n"
20076 "\n"
20077 msgstr ""
20078
20079 # type: =head2
20080 #: ../fish/guestfish-actions.pod:1465
20081 msgid "grepi"
20082 msgstr ""
20083
20084 # type: verbatim
20085 #: ../fish/guestfish-actions.pod:1467
20086 #, no-wrap
20087 msgid ""
20088 " grepi regex path\n"
20089 "\n"
20090 msgstr ""
20091
20092 # type: =head2
20093 #: ../fish/guestfish-actions.pod:1475
20094 msgid "grub-install"
20095 msgstr ""
20096
20097 # type: verbatim
20098 #: ../fish/guestfish-actions.pod:1477
20099 #, no-wrap
20100 msgid ""
20101 " grub-install root device\n"
20102 "\n"
20103 msgstr ""
20104
20105 # type: =head2
20106 #: ../fish/guestfish-actions.pod:1493
20107 msgid "head"
20108 msgstr ""
20109
20110 # type: verbatim
20111 #: ../fish/guestfish-actions.pod:1495
20112 #, no-wrap
20113 msgid ""
20114 " head path\n"
20115 "\n"
20116 msgstr ""
20117
20118 # type: =head2
20119 #: ../fish/guestfish-actions.pod:1503
20120 msgid "head-n"
20121 msgstr ""
20122
20123 # type: verbatim
20124 #: ../fish/guestfish-actions.pod:1505
20125 #, no-wrap
20126 msgid ""
20127 " head-n nrlines path\n"
20128 "\n"
20129 msgstr ""
20130
20131 # type: =head2
20132 #: ../fish/guestfish-actions.pod:1518
20133 msgid "hexdump"
20134 msgstr ""
20135
20136 # type: verbatim
20137 #: ../fish/guestfish-actions.pod:1520
20138 #, no-wrap
20139 msgid ""
20140 " hexdump path\n"
20141 "\n"
20142 msgstr ""
20143
20144 # type: =head2
20145 #: ../fish/guestfish-actions.pod:1528
20146 msgid "initrd-cat"
20147 msgstr ""
20148
20149 # type: verbatim
20150 #: ../fish/guestfish-actions.pod:1530
20151 #, no-wrap
20152 msgid ""
20153 " initrd-cat initrdpath filename\n"
20154 "\n"
20155 msgstr ""
20156
20157 # type: textblock
20158 #: ../fish/guestfish-actions.pod:1542
20159 msgid "See also L</initrd-list>."
20160 msgstr ""
20161
20162 # type: =head2
20163 #: ../fish/guestfish-actions.pod:1547
20164 msgid "initrd-list"
20165 msgstr ""
20166
20167 # type: verbatim
20168 #: ../fish/guestfish-actions.pod:1549
20169 #, no-wrap
20170 msgid ""
20171 " initrd-list path\n"
20172 "\n"
20173 msgstr ""
20174
20175 # type: =head2
20176 #: ../fish/guestfish-actions.pod:1561
20177 msgid "inotify-add-watch"
20178 msgstr ""
20179
20180 # type: verbatim
20181 #: ../fish/guestfish-actions.pod:1563
20182 #, no-wrap
20183 msgid ""
20184 " inotify-add-watch path mask\n"
20185 "\n"
20186 msgstr ""
20187
20188 # type: =head2
20189 #: ../fish/guestfish-actions.pod:1575
20190 msgid "inotify-close"
20191 msgstr ""
20192
20193 # type: verbatim
20194 #: ../fish/guestfish-actions.pod:1577
20195 #, no-wrap
20196 msgid ""
20197 " inotify-close\n"
20198 "\n"
20199 msgstr ""
20200
20201 # type: =head2
20202 #: ../fish/guestfish-actions.pod:1583
20203 msgid "inotify-files"
20204 msgstr ""
20205
20206 # type: verbatim
20207 #: ../fish/guestfish-actions.pod:1585
20208 #, no-wrap
20209 msgid ""
20210 " inotify-files\n"
20211 "\n"
20212 msgstr ""
20213
20214 # type: textblock
20215 #: ../fish/guestfish-actions.pod:1587
20216 msgid ""
20217 "This function is a helpful wrapper around L</inotify-read> which just "
20218 "returns a list of pathnames of objects that were touched.  The returned "
20219 "pathnames are sorted and deduplicated."
20220 msgstr ""
20221
20222 # type: =head2
20223 #: ../fish/guestfish-actions.pod:1591
20224 msgid "inotify-init"
20225 msgstr ""
20226
20227 # type: verbatim
20228 #: ../fish/guestfish-actions.pod:1593
20229 #, no-wrap
20230 msgid ""
20231 " inotify-init maxevents\n"
20232 "\n"
20233 msgstr ""
20234
20235 # type: textblock
20236 #: ../fish/guestfish-actions.pod:1599
20237 msgid ""
20238 "C<maxevents> is the maximum number of events which will be queued up between "
20239 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
20240 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
20241 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
20242 "but records the fact that it threw them away by setting a flag "
20243 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
20244 msgstr ""
20245
20246 # type: textblock
20247 #: ../fish/guestfish-actions.pod:1609
20248 msgid ""
20249 "Before any events are generated, you have to add some watches to the "
20250 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
20251 "L</inotify-watch-all>."
20252 msgstr ""
20253
20254 # type: textblock
20255 #: ../fish/guestfish-actions.pod:1615
20256 msgid ""
20257 "Queued up events should be read periodically by calling L</inotify-read> (or "
20258 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
20259 "If you don't read the events out often enough then you risk the internal "
20260 "queue overflowing."
20261 msgstr ""
20262
20263 # type: textblock
20264 #: ../fish/guestfish-actions.pod:1622
20265 msgid ""
20266 "The handle should be closed after use by calling L</inotify-close>.  This "
20267 "also removes any watches automatically."
20268 msgstr ""
20269
20270 # type: =head2
20271 #: ../fish/guestfish-actions.pod:1631
20272 msgid "inotify-read"
20273 msgstr ""
20274
20275 # type: verbatim
20276 #: ../fish/guestfish-actions.pod:1633
20277 #, no-wrap
20278 msgid ""
20279 " inotify-read\n"
20280 "\n"
20281 msgstr ""
20282
20283 # type: =head2
20284 #: ../fish/guestfish-actions.pod:1646
20285 msgid "inotify-rm-watch"
20286 msgstr ""
20287
20288 # type: verbatim
20289 #: ../fish/guestfish-actions.pod:1648
20290 #, no-wrap
20291 msgid ""
20292 " inotify-rm-watch wd\n"
20293 "\n"
20294 msgstr ""
20295
20296 # type: textblock
20297 #: ../fish/guestfish-actions.pod:1650
20298 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
20299 msgstr ""
20300
20301 # type: =head2
20302 #: ../fish/guestfish-actions.pod:1653
20303 msgid "inspect-get-arch"
20304 msgstr ""
20305
20306 # type: verbatim
20307 #: ../fish/guestfish-actions.pod:1655
20308 #, no-wrap
20309 msgid ""
20310 " inspect-get-arch root\n"
20311 "\n"
20312 msgstr ""
20313
20314 # type: textblock
20315 #: ../fish/guestfish-actions.pod:1657 ../fish/guestfish-actions.pod:1673 ../fish/guestfish-actions.pod:1739 ../fish/guestfish-actions.pod:1757 ../fish/guestfish-actions.pod:1778 ../fish/guestfish-actions.pod:1793 ../fish/guestfish-actions.pod:1816 ../fish/guestfish-actions.pod:1838 ../fish/guestfish-actions.pod:1862 ../fish/guestfish-actions.pod:1892 ../fish/guestfish-actions.pod:1927
20316 msgid ""
20317 "This function should only be called with a root device string as returned by "
20318 "L</inspect-os>."
20319 msgstr ""
20320
20321 # type: textblock
20322 #: ../fish/guestfish-actions.pod:1660
20323 msgid ""
20324 "This returns the architecture of the inspected operating system.  The "
20325 "possible return values are listed under L</file-architecture>."
20326 msgstr ""
20327
20328 # type: =head2
20329 #: ../fish/guestfish-actions.pod:1669
20330 msgid "inspect-get-distro"
20331 msgstr ""
20332
20333 # type: verbatim
20334 #: ../fish/guestfish-actions.pod:1671
20335 #, no-wrap
20336 msgid ""
20337 " inspect-get-distro root\n"
20338 "\n"
20339 msgstr ""
20340
20341 # type: =head2
20342 #: ../fish/guestfish-actions.pod:1735
20343 msgid "inspect-get-filesystems"
20344 msgstr ""
20345
20346 # type: verbatim
20347 #: ../fish/guestfish-actions.pod:1737
20348 #, no-wrap
20349 msgid ""
20350 " inspect-get-filesystems root\n"
20351 "\n"
20352 msgstr ""
20353
20354 # type: textblock
20355 #: ../fish/guestfish-actions.pod:1750
20356 msgid ""
20357 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
20358 "L</inspect-get-mountpoints>."
20359 msgstr ""
20360
20361 # type: =head2
20362 #: ../fish/guestfish-actions.pod:1753
20363 msgid "inspect-get-major-version"
20364 msgstr ""
20365
20366 # type: verbatim
20367 #: ../fish/guestfish-actions.pod:1755
20368 #, no-wrap
20369 msgid ""
20370 " inspect-get-major-version root\n"
20371 "\n"
20372 msgstr ""
20373
20374 # type: =head2
20375 #: ../fish/guestfish-actions.pod:1774
20376 msgid "inspect-get-minor-version"
20377 msgstr ""
20378
20379 # type: verbatim
20380 #: ../fish/guestfish-actions.pod:1776
20381 #, no-wrap
20382 msgid ""
20383 " inspect-get-minor-version root\n"
20384 "\n"
20385 msgstr ""
20386
20387 # type: textblock
20388 #: ../fish/guestfish-actions.pod:1786
20389 msgid ""
20390 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
20391 "L</inspect-get-major-version>."
20392 msgstr ""
20393
20394 # type: =head2
20395 #: ../fish/guestfish-actions.pod:1789
20396 msgid "inspect-get-mountpoints"
20397 msgstr ""
20398
20399 # type: verbatim
20400 #: ../fish/guestfish-actions.pod:1791
20401 #, no-wrap
20402 msgid ""
20403 " inspect-get-mountpoints root\n"
20404 "\n"
20405 msgstr ""
20406
20407 # type: textblock
20408 #: ../fish/guestfish-actions.pod:1809
20409 msgid ""
20410 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
20411 "L</inspect-get-filesystems>."
20412 msgstr ""
20413
20414 # type: =head2
20415 #: ../fish/guestfish-actions.pod:1812
20416 msgid "inspect-get-package-format"
20417 msgstr ""
20418
20419 # type: verbatim
20420 #: ../fish/guestfish-actions.pod:1814
20421 #, no-wrap
20422 msgid ""
20423 " inspect-get-package-format root\n"
20424 "\n"
20425 msgstr ""
20426
20427 # type: textblock
20428 #: ../fish/guestfish-actions.pod:1819
20429 msgid ""
20430 "This function and L</inspect-get-package-management> return the package "
20431 "format and package management tool used by the inspected operating system.  "
20432 "For example for Fedora these functions would return C<rpm> (package format) "
20433 "and C<yum> (package management)."
20434 msgstr ""
20435
20436 # type: =head2
20437 #: ../fish/guestfish-actions.pod:1834
20438 msgid "inspect-get-package-management"
20439 msgstr ""
20440
20441 # type: verbatim
20442 #: ../fish/guestfish-actions.pod:1836
20443 #, no-wrap
20444 msgid ""
20445 " inspect-get-package-management root\n"
20446 "\n"
20447 msgstr ""
20448
20449 # type: textblock
20450 #: ../fish/guestfish-actions.pod:1841
20451 msgid ""
20452 "L</inspect-get-package-format> and this function return the package format "
20453 "and package management tool used by the inspected operating system.  For "
20454 "example for Fedora these functions would return C<rpm> (package format) and "
20455 "C<yum> (package management)."
20456 msgstr ""
20457
20458 # type: =head2
20459 #: ../fish/guestfish-actions.pod:1858
20460 msgid "inspect-get-product-name"
20461 msgstr ""
20462
20463 # type: verbatim
20464 #: ../fish/guestfish-actions.pod:1860
20465 #, no-wrap
20466 msgid ""
20467 " inspect-get-product-name root\n"
20468 "\n"
20469 msgstr ""
20470
20471 # type: =head2
20472 #: ../fish/guestfish-actions.pod:1875
20473 msgid "inspect-get-roots"
20474 msgstr ""
20475
20476 # type: verbatim
20477 #: ../fish/guestfish-actions.pod:1877
20478 #, no-wrap
20479 msgid ""
20480 " inspect-get-roots\n"
20481 "\n"
20482 msgstr ""
20483
20484 # type: textblock
20485 #: ../fish/guestfish-actions.pod:1879
20486 msgid ""
20487 "This function is a convenient way to get the list of root devices, as "
20488 "returned from a previous call to L</inspect-os>, but without redoing the "
20489 "whole inspection process."
20490 msgstr ""
20491
20492 # type: textblock
20493 #: ../fish/guestfish-actions.pod:1883
20494 msgid ""
20495 "This returns an empty list if either no root devices were found or the "
20496 "caller has not called L</inspect-os>."
20497 msgstr ""
20498
20499 # type: =head2
20500 #: ../fish/guestfish-actions.pod:1888
20501 msgid "inspect-get-type"
20502 msgstr ""
20503
20504 # type: verbatim
20505 #: ../fish/guestfish-actions.pod:1890
20506 #, no-wrap
20507 msgid ""
20508 " inspect-get-type root\n"
20509 "\n"
20510 msgstr ""
20511
20512 # type: =head2
20513 #: ../fish/guestfish-actions.pod:1923
20514 msgid "inspect-get-windows-systemroot"
20515 msgstr ""
20516
20517 # type: verbatim
20518 #: ../fish/guestfish-actions.pod:1925
20519 #, no-wrap
20520 msgid ""
20521 " inspect-get-windows-systemroot root\n"
20522 "\n"
20523 msgstr ""
20524
20525 # type: =head2
20526 #: ../fish/guestfish-actions.pod:1939
20527 msgid "inspect-os"
20528 msgstr ""
20529
20530 # type: verbatim
20531 #: ../fish/guestfish-actions.pod:1941
20532 #, no-wrap
20533 msgid ""
20534 " inspect-os\n"
20535 "\n"
20536 msgstr ""
20537
20538 # type: textblock
20539 #: ../fish/guestfish-actions.pod:1956
20540 msgid ""
20541 "You can pass the root string(s) returned to other L</inspect-get-*> "
20542 "functions in order to query further information about each operating system, "
20543 "such as the name and version."
20544 msgstr ""
20545
20546 # type: textblock
20547 #: ../fish/guestfish-actions.pod:1961
20548 msgid ""
20549 "This function uses other libguestfs features such as L</mount-ro> and "
20550 "L</umount-all> in order to mount and unmount filesystems and look at the "
20551 "contents.  This should be called with no disks currently mounted.  The "
20552 "function may also use Augeas, so any existing Augeas handle will be closed."
20553 msgstr ""
20554
20555 # type: textblock
20556 #: ../fish/guestfish-actions.pod:1973 ../fish/guestfish-actions.pod:2129 ../fish/guestfish-actions.pod:2175
20557 msgid "See also L</list-filesystems>."
20558 msgstr ""
20559
20560 # type: =head2
20561 #: ../fish/guestfish-actions.pod:1975
20562 msgid "is-blockdev"
20563 msgstr ""
20564
20565 # type: verbatim
20566 #: ../fish/guestfish-actions.pod:1977
20567 #, no-wrap
20568 msgid ""
20569 " is-blockdev path\n"
20570 "\n"
20571 msgstr ""
20572
20573 # type: textblock
20574 #: ../fish/guestfish-actions.pod:1982 ../fish/guestfish-actions.pod:2000 ../fish/guestfish-actions.pod:2019 ../fish/guestfish-actions.pod:2028 ../fish/guestfish-actions.pod:2038 ../fish/guestfish-actions.pod:2072 ../fish/guestfish-actions.pod:2081
20575 msgid "See also L</stat>."
20576 msgstr ""
20577
20578 # type: =head2
20579 #: ../fish/guestfish-actions.pod:1984
20580 msgid "is-busy"
20581 msgstr ""
20582
20583 # type: verbatim
20584 #: ../fish/guestfish-actions.pod:1986
20585 #, no-wrap
20586 msgid ""
20587 " is-busy\n"
20588 "\n"
20589 msgstr ""
20590
20591 # type: =head2
20592 #: ../fish/guestfish-actions.pod:1993
20593 msgid "is-chardev"
20594 msgstr ""
20595
20596 # type: verbatim
20597 #: ../fish/guestfish-actions.pod:1995
20598 #, no-wrap
20599 msgid ""
20600 " is-chardev path\n"
20601 "\n"
20602 msgstr ""
20603
20604 # type: =head2
20605 #: ../fish/guestfish-actions.pod:2002
20606 msgid "is-config"
20607 msgstr ""
20608
20609 # type: verbatim
20610 #: ../fish/guestfish-actions.pod:2004
20611 #, no-wrap
20612 msgid ""
20613 " is-config\n"
20614 "\n"
20615 msgstr ""
20616
20617 # type: =head2
20618 #: ../fish/guestfish-actions.pod:2011
20619 msgid "is-dir"
20620 msgstr ""
20621
20622 # type: verbatim
20623 #: ../fish/guestfish-actions.pod:2013
20624 #, no-wrap
20625 msgid ""
20626 " is-dir path\n"
20627 "\n"
20628 msgstr ""
20629
20630 # type: =head2
20631 #: ../fish/guestfish-actions.pod:2021
20632 msgid "is-fifo"
20633 msgstr ""
20634
20635 # type: verbatim
20636 #: ../fish/guestfish-actions.pod:2023
20637 #, no-wrap
20638 msgid ""
20639 " is-fifo path\n"
20640 "\n"
20641 msgstr ""
20642
20643 # type: =head2
20644 #: ../fish/guestfish-actions.pod:2030
20645 msgid "is-file"
20646 msgstr ""
20647
20648 # type: verbatim
20649 #: ../fish/guestfish-actions.pod:2032
20650 #, no-wrap
20651 msgid ""
20652 " is-file path\n"
20653 "\n"
20654 msgstr ""
20655
20656 # type: =head2
20657 #: ../fish/guestfish-actions.pod:2040
20658 msgid "is-launching"
20659 msgstr ""
20660
20661 # type: verbatim
20662 #: ../fish/guestfish-actions.pod:2042
20663 #, no-wrap
20664 msgid ""
20665 " is-launching\n"
20666 "\n"
20667 msgstr ""
20668
20669 # type: =head2
20670 #: ../fish/guestfish-actions.pod:2049
20671 msgid "is-lv"
20672 msgstr ""
20673
20674 # type: verbatim
20675 #: ../fish/guestfish-actions.pod:2051
20676 #, no-wrap
20677 msgid ""
20678 " is-lv device\n"
20679 "\n"
20680 msgstr ""
20681
20682 # type: =head2
20683 #: ../fish/guestfish-actions.pod:2056
20684 msgid "is-ready"
20685 msgstr ""
20686
20687 # type: verbatim
20688 #: ../fish/guestfish-actions.pod:2058
20689 #, no-wrap
20690 msgid ""
20691 " is-ready\n"
20692 "\n"
20693 msgstr ""
20694
20695 # type: =head2
20696 #: ../fish/guestfish-actions.pod:2065
20697 msgid "is-socket"
20698 msgstr ""
20699
20700 # type: verbatim
20701 #: ../fish/guestfish-actions.pod:2067
20702 #, no-wrap
20703 msgid ""
20704 " is-socket path\n"
20705 "\n"
20706 msgstr ""
20707
20708 # type: =head2
20709 #: ../fish/guestfish-actions.pod:2074
20710 msgid "is-symlink"
20711 msgstr ""
20712
20713 # type: verbatim
20714 #: ../fish/guestfish-actions.pod:2076
20715 #, no-wrap
20716 msgid ""
20717 " is-symlink path\n"
20718 "\n"
20719 msgstr ""
20720
20721 # type: =head2
20722 #: ../fish/guestfish-actions.pod:2083
20723 msgid "kill-subprocess"
20724 msgstr ""
20725
20726 # type: verbatim
20727 #: ../fish/guestfish-actions.pod:2085
20728 #, no-wrap
20729 msgid ""
20730 " kill-subprocess\n"
20731 "\n"
20732 msgstr ""
20733
20734 # type: =head2
20735 #: ../fish/guestfish-actions.pod:2089
20736 msgid "launch"
20737 msgstr ""
20738
20739 # type: =head2
20740 #: ../fish/guestfish-actions.pod:2091
20741 msgid "run"
20742 msgstr ""
20743
20744 # type: verbatim
20745 #: ../fish/guestfish-actions.pod:2093
20746 #, no-wrap
20747 msgid ""
20748 " launch\n"
20749 "\n"
20750 msgstr ""
20751
20752 # type: =head2
20753 #: ../fish/guestfish-actions.pod:2101
20754 msgid "lchown"
20755 msgstr ""
20756
20757 # type: verbatim
20758 #: ../fish/guestfish-actions.pod:2103
20759 #, no-wrap
20760 msgid ""
20761 " lchown owner group path\n"
20762 "\n"
20763 msgstr ""
20764
20765 # type: textblock
20766 #: ../fish/guestfish-actions.pod:2105
20767 msgid ""
20768 "Change the file owner to C<owner> and group to C<group>.  This is like "
20769 "L</chown> but if C<path> is a symlink then the link itself is changed, not "
20770 "the target."
20771 msgstr ""
20772
20773 # type: =head2
20774 #: ../fish/guestfish-actions.pod:2113
20775 msgid "lgetxattrs"
20776 msgstr ""
20777
20778 # type: verbatim
20779 #: ../fish/guestfish-actions.pod:2115
20780 #, no-wrap
20781 msgid ""
20782 " lgetxattrs path\n"
20783 "\n"
20784 msgstr ""
20785
20786 # type: textblock
20787 #: ../fish/guestfish-actions.pod:2117
20788 msgid ""
20789 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
20790 "it returns the extended attributes of the link itself."
20791 msgstr ""
20792
20793 # type: =head2
20794 #: ../fish/guestfish-actions.pod:2121
20795 msgid "list-devices"
20796 msgstr ""
20797
20798 # type: verbatim
20799 #: ../fish/guestfish-actions.pod:2123
20800 #, no-wrap
20801 msgid ""
20802 " list-devices\n"
20803 "\n"
20804 msgstr ""
20805
20806 # type: =head2
20807 #: ../fish/guestfish-actions.pod:2131
20808 msgid "list-filesystems"
20809 msgstr ""
20810
20811 # type: verbatim
20812 #: ../fish/guestfish-actions.pod:2133
20813 #, no-wrap
20814 msgid ""
20815 " list-filesystems\n"
20816 "\n"
20817 msgstr ""
20818
20819 # type: textblock
20820 #: ../fish/guestfish-actions.pod:2152
20821 msgid ""
20822 "This command runs other libguestfs commands, which might include L</mount> "
20823 "and L</umount>, and therefore you should use this soon after launch and only "
20824 "when nothing is mounted."
20825 msgstr ""
20826
20827 # type: textblock
20828 #: ../fish/guestfish-actions.pod:2156
20829 msgid ""
20830 "Not all of the filesystems returned will be mountable.  In particular, swap "
20831 "partitions are returned in the list.  Also this command does not check that "
20832 "each filesystem found is valid and mountable, and some filesystems might be "
20833 "mountable but require special options.  Filesystems may not all belong to a "
20834 "single logical operating system (use L</inspect-os> to look for OSes)."
20835 msgstr ""
20836
20837 # type: =head2
20838 #: ../fish/guestfish-actions.pod:2164
20839 msgid "list-partitions"
20840 msgstr ""
20841
20842 # type: verbatim
20843 #: ../fish/guestfish-actions.pod:2166
20844 #, no-wrap
20845 msgid ""
20846 " list-partitions\n"
20847 "\n"
20848 msgstr ""
20849
20850 # type: textblock
20851 #: ../fish/guestfish-actions.pod:2172
20852 msgid ""
20853 "This does not return logical volumes.  For that you will need to call "
20854 "L</lvs>."
20855 msgstr ""
20856
20857 # type: =head2
20858 #: ../fish/guestfish-actions.pod:2177
20859 msgid "ll"
20860 msgstr ""
20861
20862 # type: verbatim
20863 #: ../fish/guestfish-actions.pod:2179
20864 #, no-wrap
20865 msgid ""
20866 " ll directory\n"
20867 "\n"
20868 msgstr ""
20869
20870 # type: =head2
20871 #: ../fish/guestfish-actions.pod:2187
20872 msgid "ln"
20873 msgstr ""
20874
20875 # type: verbatim
20876 #: ../fish/guestfish-actions.pod:2189
20877 #, no-wrap
20878 msgid ""
20879 " ln target linkname\n"
20880 "\n"
20881 msgstr ""
20882
20883 # type: =head2
20884 #: ../fish/guestfish-actions.pod:2193
20885 msgid "ln-f"
20886 msgstr ""
20887
20888 # type: verbatim
20889 #: ../fish/guestfish-actions.pod:2195
20890 #, no-wrap
20891 msgid ""
20892 " ln-f target linkname\n"
20893 "\n"
20894 msgstr ""
20895
20896 # type: =head2
20897 #: ../fish/guestfish-actions.pod:2200
20898 msgid "ln-s"
20899 msgstr ""
20900
20901 # type: verbatim
20902 #: ../fish/guestfish-actions.pod:2202
20903 #, no-wrap
20904 msgid ""
20905 " ln-s target linkname\n"
20906 "\n"
20907 msgstr ""
20908
20909 # type: =head2
20910 #: ../fish/guestfish-actions.pod:2206
20911 msgid "ln-sf"
20912 msgstr ""
20913
20914 # type: verbatim
20915 #: ../fish/guestfish-actions.pod:2208
20916 #, no-wrap
20917 msgid ""
20918 " ln-sf target linkname\n"
20919 "\n"
20920 msgstr ""
20921
20922 # type: =head2
20923 #: ../fish/guestfish-actions.pod:2213
20924 msgid "lremovexattr"
20925 msgstr ""
20926
20927 # type: verbatim
20928 #: ../fish/guestfish-actions.pod:2215
20929 #, no-wrap
20930 msgid ""
20931 " lremovexattr xattr path\n"
20932 "\n"
20933 msgstr ""
20934
20935 # type: textblock
20936 #: ../fish/guestfish-actions.pod:2217
20937 msgid ""
20938 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
20939 "it removes an extended attribute of the link itself."
20940 msgstr ""
20941
20942 # type: =head2
20943 #: ../fish/guestfish-actions.pod:2221
20944 msgid "ls"
20945 msgstr ""
20946
20947 # type: verbatim
20948 #: ../fish/guestfish-actions.pod:2223
20949 #, no-wrap
20950 msgid ""
20951 " ls directory\n"
20952 "\n"
20953 msgstr ""
20954
20955 # type: textblock
20956 #: ../fish/guestfish-actions.pod:2229
20957 msgid ""
20958 "This command is mostly useful for interactive sessions.  Programs should "
20959 "probably use L</readdir> instead."
20960 msgstr ""
20961
20962 # type: =head2
20963 #: ../fish/guestfish-actions.pod:2232
20964 msgid "lsetxattr"
20965 msgstr ""
20966
20967 # type: verbatim
20968 #: ../fish/guestfish-actions.pod:2234
20969 #, no-wrap
20970 msgid ""
20971 " lsetxattr xattr val vallen path\n"
20972 "\n"
20973 msgstr ""
20974
20975 # type: textblock
20976 #: ../fish/guestfish-actions.pod:2236
20977 msgid ""
20978 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
20979 "sets an extended attribute of the link itself."
20980 msgstr ""
20981
20982 # type: =head2
20983 #: ../fish/guestfish-actions.pod:2240
20984 msgid "lstat"
20985 msgstr ""
20986
20987 # type: verbatim
20988 #: ../fish/guestfish-actions.pod:2242
20989 #, no-wrap
20990 msgid ""
20991 " lstat path\n"
20992 "\n"
20993 msgstr ""
20994
20995 # type: textblock
20996 #: ../fish/guestfish-actions.pod:2246
20997 msgid ""
20998 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
20999 "the link is stat-ed, not the file it refers to."
21000 msgstr ""
21001
21002 # type: =head2
21003 #: ../fish/guestfish-actions.pod:2252
21004 msgid "lstatlist"
21005 msgstr ""
21006
21007 # type: verbatim
21008 #: ../fish/guestfish-actions.pod:2254
21009 #, no-wrap
21010 msgid ""
21011 " lstatlist path 'names ...'\n"
21012 "\n"
21013 msgstr ""
21014
21015 # type: textblock
21016 #: ../fish/guestfish-actions.pod:2256
21017 msgid ""
21018 "This call allows you to perform the L</lstat> operation on multiple files, "
21019 "where all files are in the directory C<path>.  C<names> is the list of files "
21020 "from this directory."
21021 msgstr ""
21022
21023 # type: textblock
21024 #: ../fish/guestfish-actions.pod:2265
21025 msgid ""
21026 "This call is intended for programs that want to efficiently list a directory "
21027 "contents without making many round-trips.  See also L</lxattrlist> for a "
21028 "similarly efficient call for getting extended attributes.  Very long "
21029 "directory listings might cause the protocol message size to be exceeded, "
21030 "causing this call to fail.  The caller must split up such requests into "
21031 "smaller groups of names."
21032 msgstr ""
21033
21034 # type: =head2
21035 #: ../fish/guestfish-actions.pod:2273
21036 msgid "luks-add-key"
21037 msgstr ""
21038
21039 # type: verbatim
21040 #: ../fish/guestfish-actions.pod:2275
21041 #, no-wrap
21042 msgid ""
21043 " luks-add-key device keyslot\n"
21044 "\n"
21045 msgstr ""
21046
21047 # type: textblock
21048 #: ../fish/guestfish-actions.pod:2282
21049 msgid ""
21050 "Note that if C<keyslot> already contains a key, then this command will "
21051 "fail.  You have to use L</luks-kill-slot> first to remove that key."
21052 msgstr ""
21053
21054 # type: textblock
21055 #: ../fish/guestfish-actions.pod:2286 ../fish/guestfish-actions.pod:2308 ../fish/guestfish-actions.pod:2321 ../fish/guestfish-actions.pod:2335 ../fish/guestfish-actions.pod:2358 ../fish/guestfish-actions.pod:2368
21056 msgid ""
21057 "This command has one or more key or passphrase parameters.  Guestfish will "
21058 "prompt for these separately."
21059 msgstr ""
21060
21061 # type: =head2
21062 #: ../fish/guestfish-actions.pod:2289
21063 msgid "luks-close"
21064 msgstr ""
21065
21066 # type: verbatim
21067 #: ../fish/guestfish-actions.pod:2291
21068 #, no-wrap
21069 msgid ""
21070 " luks-close device\n"
21071 "\n"
21072 msgstr ""
21073
21074 # type: textblock
21075 #: ../fish/guestfish-actions.pod:2293
21076 msgid ""
21077 "This closes a LUKS device that was created earlier by L</luks-open> or "
21078 "L</luks-open-ro>.  The C<device> parameter must be the name of the LUKS "
21079 "mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
21080 "underlying block device."
21081 msgstr ""
21082
21083 # type: =head2
21084 #: ../fish/guestfish-actions.pod:2299
21085 msgid "luks-format"
21086 msgstr ""
21087
21088 # type: verbatim
21089 #: ../fish/guestfish-actions.pod:2301
21090 #, no-wrap
21091 msgid ""
21092 " luks-format device keyslot\n"
21093 "\n"
21094 msgstr ""
21095
21096 # type: =head2
21097 #: ../fish/guestfish-actions.pod:2314
21098 msgid "luks-format-cipher"
21099 msgstr ""
21100
21101 # type: verbatim
21102 #: ../fish/guestfish-actions.pod:2316
21103 #, no-wrap
21104 msgid ""
21105 " luks-format-cipher device keyslot cipher\n"
21106 "\n"
21107 msgstr ""
21108
21109 # type: textblock
21110 #: ../fish/guestfish-actions.pod:2318
21111 msgid ""
21112 "This command is the same as L</luks-format> but it also allows you to set "
21113 "the C<cipher> used."
21114 msgstr ""
21115
21116 # type: =head2
21117 #: ../fish/guestfish-actions.pod:2327
21118 msgid "luks-kill-slot"
21119 msgstr ""
21120
21121 # type: verbatim
21122 #: ../fish/guestfish-actions.pod:2329
21123 #, no-wrap
21124 msgid ""
21125 " luks-kill-slot device keyslot\n"
21126 "\n"
21127 msgstr ""
21128
21129 # type: =head2
21130 #: ../fish/guestfish-actions.pod:2338
21131 msgid "luks-open"
21132 msgstr ""
21133
21134 # type: verbatim
21135 #: ../fish/guestfish-actions.pod:2340
21136 #, no-wrap
21137 msgid ""
21138 " luks-open device mapname\n"
21139 "\n"
21140 msgstr ""
21141
21142 # type: textblock
21143 #: ../fish/guestfish-actions.pod:2354
21144 msgid ""
21145 "If this block device contains LVM volume groups, then calling L</vgscan> "
21146 "followed by L</vg-activate-all> will make them visible."
21147 msgstr ""
21148
21149 # type: =head2
21150 #: ../fish/guestfish-actions.pod:2361
21151 msgid "luks-open-ro"
21152 msgstr ""
21153
21154 # type: verbatim
21155 #: ../fish/guestfish-actions.pod:2363
21156 #, no-wrap
21157 msgid ""
21158 " luks-open-ro device mapname\n"
21159 "\n"
21160 msgstr ""
21161
21162 # type: textblock
21163 #: ../fish/guestfish-actions.pod:2365
21164 msgid ""
21165 "This is the same as L</luks-open> except that a read-only mapping is "
21166 "created."
21167 msgstr ""
21168
21169 # type: =head2
21170 #: ../fish/guestfish-actions.pod:2371
21171 msgid "lvcreate"
21172 msgstr ""
21173
21174 # type: verbatim
21175 #: ../fish/guestfish-actions.pod:2373
21176 #, no-wrap
21177 msgid ""
21178 " lvcreate logvol volgroup mbytes\n"
21179 "\n"
21180 msgstr ""
21181
21182 # type: =head2
21183 #: ../fish/guestfish-actions.pod:2378
21184 msgid "lvm-canonical-lv-name"
21185 msgstr ""
21186
21187 # type: verbatim
21188 #: ../fish/guestfish-actions.pod:2380
21189 #, no-wrap
21190 msgid ""
21191 " lvm-canonical-lv-name lvname\n"
21192 "\n"
21193 msgstr ""
21194
21195 # type: textblock
21196 #: ../fish/guestfish-actions.pod:2389
21197 msgid "See also L</is-lv>."
21198 msgstr ""
21199
21200 # type: =head2
21201 #: ../fish/guestfish-actions.pod:2391
21202 msgid "lvm-clear-filter"
21203 msgstr ""
21204
21205 # type: verbatim
21206 #: ../fish/guestfish-actions.pod:2393
21207 #, no-wrap
21208 msgid ""
21209 " lvm-clear-filter\n"
21210 "\n"
21211 msgstr ""
21212
21213 # type: textblock
21214 #: ../fish/guestfish-actions.pod:2395
21215 msgid ""
21216 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
21217 "block device."
21218 msgstr ""
21219
21220 # type: =head2
21221 #: ../fish/guestfish-actions.pod:2401
21222 msgid "lvm-remove-all"
21223 msgstr ""
21224
21225 # type: verbatim
21226 #: ../fish/guestfish-actions.pod:2403
21227 #, no-wrap
21228 msgid ""
21229 " lvm-remove-all\n"
21230 "\n"
21231 msgstr ""
21232
21233 # type: =head2
21234 #: ../fish/guestfish-actions.pod:2411
21235 msgid "lvm-set-filter"
21236 msgstr ""
21237
21238 # type: verbatim
21239 #: ../fish/guestfish-actions.pod:2413
21240 #, no-wrap
21241 msgid ""
21242 " lvm-set-filter 'devices ...'\n"
21243 "\n"
21244 msgstr ""
21245
21246 # type: =head2
21247 #: ../fish/guestfish-actions.pod:2438
21248 msgid "lvremove"
21249 msgstr ""
21250
21251 # type: verbatim
21252 #: ../fish/guestfish-actions.pod:2440
21253 #, no-wrap
21254 msgid ""
21255 " lvremove device\n"
21256 "\n"
21257 msgstr ""
21258
21259 # type: =head2
21260 #: ../fish/guestfish-actions.pod:2448
21261 msgid "lvrename"
21262 msgstr ""
21263
21264 # type: verbatim
21265 #: ../fish/guestfish-actions.pod:2450
21266 #, no-wrap
21267 msgid ""
21268 " lvrename logvol newlogvol\n"
21269 "\n"
21270 msgstr ""
21271
21272 # type: =head2
21273 #: ../fish/guestfish-actions.pod:2454
21274 msgid "lvresize"
21275 msgstr ""
21276
21277 # type: verbatim
21278 #: ../fish/guestfish-actions.pod:2456
21279 #, no-wrap
21280 msgid ""
21281 " lvresize device mbytes\n"
21282 "\n"
21283 msgstr ""
21284
21285 # type: =head2
21286 #: ../fish/guestfish-actions.pod:2462
21287 msgid "lvresize-free"
21288 msgstr ""
21289
21290 # type: verbatim
21291 #: ../fish/guestfish-actions.pod:2464
21292 #, no-wrap
21293 msgid ""
21294 " lvresize-free lv percent\n"
21295 "\n"
21296 msgstr ""
21297
21298 # type: =head2
21299 #: ../fish/guestfish-actions.pod:2472
21300 msgid "lvs"
21301 msgstr ""
21302
21303 # type: verbatim
21304 #: ../fish/guestfish-actions.pod:2474
21305 #, no-wrap
21306 msgid ""
21307 " lvs\n"
21308 "\n"
21309 msgstr ""
21310
21311 # type: textblock
21312 #: ../fish/guestfish-actions.pod:2482
21313 msgid "See also L</lvs-full>, L</list-filesystems>."
21314 msgstr ""
21315
21316 # type: =head2
21317 #: ../fish/guestfish-actions.pod:2484
21318 msgid "lvs-full"
21319 msgstr ""
21320
21321 # type: verbatim
21322 #: ../fish/guestfish-actions.pod:2486
21323 #, no-wrap
21324 msgid ""
21325 " lvs-full\n"
21326 "\n"
21327 msgstr ""
21328
21329 # type: =head2
21330 #: ../fish/guestfish-actions.pod:2491
21331 msgid "lvuuid"
21332 msgstr ""
21333
21334 # type: verbatim
21335 #: ../fish/guestfish-actions.pod:2493
21336 #, no-wrap
21337 msgid ""
21338 " lvuuid device\n"
21339 "\n"
21340 msgstr ""
21341
21342 # type: =head2
21343 #: ../fish/guestfish-actions.pod:2497
21344 msgid "lxattrlist"
21345 msgstr ""
21346
21347 # type: verbatim
21348 #: ../fish/guestfish-actions.pod:2499
21349 #, no-wrap
21350 msgid ""
21351 " lxattrlist path 'names ...'\n"
21352 "\n"
21353 msgstr ""
21354
21355 # type: textblock
21356 #: ../fish/guestfish-actions.pod:2515
21357 msgid ""
21358 "This call is intended for programs that want to efficiently list a directory "
21359 "contents without making many round-trips.  See also L</lstatlist> for a "
21360 "similarly efficient call for getting standard stats.  Very long directory "
21361 "listings might cause the protocol message size to be exceeded, causing this "
21362 "call to fail.  The caller must split up such requests into smaller groups of "
21363 "names."
21364 msgstr ""
21365
21366 # type: =head2
21367 #: ../fish/guestfish-actions.pod:2523
21368 msgid "mkdir"
21369 msgstr ""
21370
21371 # type: verbatim
21372 #: ../fish/guestfish-actions.pod:2525
21373 #, no-wrap
21374 msgid ""
21375 " mkdir path\n"
21376 "\n"
21377 msgstr ""
21378
21379 # type: =head2
21380 #: ../fish/guestfish-actions.pod:2529
21381 msgid "mkdir-mode"
21382 msgstr ""
21383
21384 # type: verbatim
21385 #: ../fish/guestfish-actions.pod:2531
21386 #, no-wrap
21387 msgid ""
21388 " mkdir-mode path mode\n"
21389 "\n"
21390 msgstr ""
21391
21392 # type: textblock
21393 #: ../fish/guestfish-actions.pod:2540
21394 msgid "See also L</mkdir>, L</umask>"
21395 msgstr ""
21396
21397 # type: =head2
21398 #: ../fish/guestfish-actions.pod:2542
21399 msgid "mkdir-p"
21400 msgstr ""
21401
21402 # type: verbatim
21403 #: ../fish/guestfish-actions.pod:2544
21404 #, no-wrap
21405 msgid ""
21406 " mkdir-p path\n"
21407 "\n"
21408 msgstr ""
21409
21410 # type: =head2
21411 #: ../fish/guestfish-actions.pod:2549
21412 msgid "mkdtemp"
21413 msgstr ""
21414
21415 # type: verbatim
21416 #: ../fish/guestfish-actions.pod:2551
21417 #, no-wrap
21418 msgid ""
21419 " mkdtemp template\n"
21420 "\n"
21421 msgstr ""
21422
21423 # type: =head2
21424 #: ../fish/guestfish-actions.pod:2572
21425 msgid "mke2fs-J"
21426 msgstr ""
21427
21428 # type: verbatim
21429 #: ../fish/guestfish-actions.pod:2574
21430 #, no-wrap
21431 msgid ""
21432 " mke2fs-J fstype blocksize device journal\n"
21433 "\n"
21434 msgstr ""
21435
21436 # type: textblock
21437 #: ../fish/guestfish-actions.pod:2582
21438 msgid "See also L</mke2journal>."
21439 msgstr ""
21440
21441 # type: =head2
21442 #: ../fish/guestfish-actions.pod:2584
21443 msgid "mke2fs-JL"
21444 msgstr ""
21445
21446 # type: verbatim
21447 #: ../fish/guestfish-actions.pod:2586
21448 #, no-wrap
21449 msgid ""
21450 " mke2fs-JL fstype blocksize device label\n"
21451 "\n"
21452 msgstr ""
21453
21454 # type: textblock
21455 #: ../fish/guestfish-actions.pod:2591
21456 msgid "See also L</mke2journal-L>."
21457 msgstr ""
21458
21459 # type: =head2
21460 #: ../fish/guestfish-actions.pod:2593
21461 msgid "mke2fs-JU"
21462 msgstr ""
21463
21464 # type: verbatim
21465 #: ../fish/guestfish-actions.pod:2595
21466 #, no-wrap
21467 msgid ""
21468 " mke2fs-JU fstype blocksize device uuid\n"
21469 "\n"
21470 msgstr ""
21471
21472 # type: textblock
21473 #: ../fish/guestfish-actions.pod:2600
21474 msgid "See also L</mke2journal-U>."
21475 msgstr ""
21476
21477 # type: =head2
21478 #: ../fish/guestfish-actions.pod:2602
21479 msgid "mke2journal"
21480 msgstr ""
21481
21482 # type: verbatim
21483 #: ../fish/guestfish-actions.pod:2604
21484 #, no-wrap
21485 msgid ""
21486 " mke2journal blocksize device\n"
21487 "\n"
21488 msgstr ""
21489
21490 # type: =head2
21491 #: ../fish/guestfish-actions.pod:2611
21492 msgid "mke2journal-L"
21493 msgstr ""
21494
21495 # type: verbatim
21496 #: ../fish/guestfish-actions.pod:2613
21497 #, no-wrap
21498 msgid ""
21499 " mke2journal-L blocksize label device\n"
21500 "\n"
21501 msgstr ""
21502
21503 # type: =head2
21504 #: ../fish/guestfish-actions.pod:2617
21505 msgid "mke2journal-U"
21506 msgstr ""
21507
21508 # type: verbatim
21509 #: ../fish/guestfish-actions.pod:2619
21510 #, no-wrap
21511 msgid ""
21512 " mke2journal-U blocksize uuid device\n"
21513 "\n"
21514 msgstr ""
21515
21516 # type: =head2
21517 #: ../fish/guestfish-actions.pod:2623
21518 msgid "mkfifo"
21519 msgstr ""
21520
21521 # type: verbatim
21522 #: ../fish/guestfish-actions.pod:2625
21523 #, no-wrap
21524 msgid ""
21525 " mkfifo mode path\n"
21526 "\n"
21527 msgstr ""
21528
21529 # type: textblock
21530 #: ../fish/guestfish-actions.pod:2627
21531 msgid ""
21532 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
21533 "is just a convenient wrapper around L</mknod>."
21534 msgstr ""
21535
21536 # type: =head2
21537 #: ../fish/guestfish-actions.pod:2633
21538 msgid "mkfs"
21539 msgstr ""
21540
21541 # type: verbatim
21542 #: ../fish/guestfish-actions.pod:2635
21543 #, no-wrap
21544 msgid ""
21545 " mkfs fstype device\n"
21546 "\n"
21547 msgstr ""
21548
21549 # type: =head2
21550 #: ../fish/guestfish-actions.pod:2641
21551 msgid "mkfs-b"
21552 msgstr ""
21553
21554 # type: verbatim
21555 #: ../fish/guestfish-actions.pod:2643
21556 #, no-wrap
21557 msgid ""
21558 " mkfs-b fstype blocksize device\n"
21559 "\n"
21560 msgstr ""
21561
21562 # type: textblock
21563 #: ../fish/guestfish-actions.pod:2645
21564 msgid ""
21565 "This call is similar to L</mkfs>, but it allows you to control the block "
21566 "size of the resulting filesystem.  Supported block sizes depend on the "
21567 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
21568 msgstr ""
21569
21570 # type: =head2
21571 #: ../fish/guestfish-actions.pod:2653
21572 msgid "mkmountpoint"
21573 msgstr ""
21574
21575 # type: verbatim
21576 #: ../fish/guestfish-actions.pod:2655
21577 #, no-wrap
21578 msgid ""
21579 " mkmountpoint exemptpath\n"
21580 "\n"
21581 msgstr ""
21582
21583 # type: textblock
21584 #: ../fish/guestfish-actions.pod:2657
21585 msgid ""
21586 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
21587 "to create extra mountpoints before mounting the first filesystem."
21588 msgstr ""
21589
21590 # type: textblock
21591 #: ../fish/guestfish-actions.pod:2681
21592 msgid ""
21593 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
21594 "unexpected errors if you try to mix these calls.  It is safest to manually "
21595 "unmount filesystems and remove mountpoints after use."
21596 msgstr ""
21597
21598 # type: textblock
21599 #: ../fish/guestfish-actions.pod:2685
21600 msgid ""
21601 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
21602 "for this to work for manual mountpoints, you must ensure that the innermost "
21603 "mountpoints have the longest pathnames, as in the example code above."
21604 msgstr ""
21605
21606 # type: textblock
21607 #: ../fish/guestfish-actions.pod:2692
21608 msgid ""
21609 "Autosync [see L</set-autosync>, this is set by default on handles] means "
21610 "that L</umount-all> is called when the handle is closed which can also "
21611 "trigger these issues."
21612 msgstr ""
21613
21614 # type: =head2
21615 #: ../fish/guestfish-actions.pod:2696
21616 msgid "mknod"
21617 msgstr ""
21618
21619 # type: verbatim
21620 #: ../fish/guestfish-actions.pod:2698
21621 #, no-wrap
21622 msgid ""
21623 " mknod mode devmajor devminor path\n"
21624 "\n"
21625 msgstr ""
21626
21627 # type: textblock
21628 #: ../fish/guestfish-actions.pod:2708
21629 msgid ""
21630 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
21631 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
21632 "regular file).  These constants are available in the standard Linux header "
21633 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
21634 "wrappers around this command which bitwise OR in the appropriate constant "
21635 "for you."
21636 msgstr ""
21637
21638 # type: =head2
21639 #: ../fish/guestfish-actions.pod:2718
21640 msgid "mknod-b"
21641 msgstr ""
21642
21643 # type: verbatim
21644 #: ../fish/guestfish-actions.pod:2720
21645 #, no-wrap
21646 msgid ""
21647 " mknod-b mode devmajor devminor path\n"
21648 "\n"
21649 msgstr ""
21650
21651 # type: textblock
21652 #: ../fish/guestfish-actions.pod:2722
21653 msgid ""
21654 "This call creates a block device node called C<path> with mode C<mode> and "
21655 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
21656 "wrapper around L</mknod>."
21657 msgstr ""
21658
21659 # type: =head2
21660 #: ../fish/guestfish-actions.pod:2728
21661 msgid "mknod-c"
21662 msgstr ""
21663
21664 # type: verbatim
21665 #: ../fish/guestfish-actions.pod:2730
21666 #, no-wrap
21667 msgid ""
21668 " mknod-c mode devmajor devminor path\n"
21669 "\n"
21670 msgstr ""
21671
21672 # type: textblock
21673 #: ../fish/guestfish-actions.pod:2732
21674 msgid ""
21675 "This call creates a char device node called C<path> with mode C<mode> and "
21676 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
21677 "wrapper around L</mknod>."
21678 msgstr ""
21679
21680 # type: =head2
21681 #: ../fish/guestfish-actions.pod:2738
21682 msgid "mkswap"
21683 msgstr ""
21684
21685 # type: verbatim
21686 #: ../fish/guestfish-actions.pod:2740
21687 #, no-wrap
21688 msgid ""
21689 " mkswap device\n"
21690 "\n"
21691 msgstr ""
21692
21693 # type: =head2
21694 #: ../fish/guestfish-actions.pod:2744
21695 msgid "mkswap-L"
21696 msgstr ""
21697
21698 # type: verbatim
21699 #: ../fish/guestfish-actions.pod:2746
21700 #, no-wrap
21701 msgid ""
21702 " mkswap-L label device\n"
21703 "\n"
21704 msgstr ""
21705
21706 # type: =head2
21707 #: ../fish/guestfish-actions.pod:2754
21708 msgid "mkswap-U"
21709 msgstr ""
21710
21711 # type: verbatim
21712 #: ../fish/guestfish-actions.pod:2756
21713 #, no-wrap
21714 msgid ""
21715 " mkswap-U uuid device\n"
21716 "\n"
21717 msgstr ""
21718
21719 # type: =head2
21720 #: ../fish/guestfish-actions.pod:2760
21721 msgid "mkswap-file"
21722 msgstr ""
21723
21724 # type: verbatim
21725 #: ../fish/guestfish-actions.pod:2762
21726 #, no-wrap
21727 msgid ""
21728 " mkswap-file path\n"
21729 "\n"
21730 msgstr ""
21731
21732 # type: textblock
21733 #: ../fish/guestfish-actions.pod:2766
21734 msgid ""
21735 "This command just writes a swap file signature to an existing file.  To "
21736 "create the file itself, use something like L</fallocate>."
21737 msgstr ""
21738
21739 # type: =head2
21740 #: ../fish/guestfish-actions.pod:2769
21741 msgid "modprobe"
21742 msgstr ""
21743
21744 # type: verbatim
21745 #: ../fish/guestfish-actions.pod:2771
21746 #, no-wrap
21747 msgid ""
21748 " modprobe modulename\n"
21749 "\n"
21750 msgstr ""
21751
21752 # type: =head2
21753 #: ../fish/guestfish-actions.pod:2778
21754 msgid "mount"
21755 msgstr ""
21756
21757 # type: verbatim
21758 #: ../fish/guestfish-actions.pod:2780
21759 #, no-wrap
21760 msgid ""
21761 " mount device mountpoint\n"
21762 "\n"
21763 msgstr ""
21764
21765 # type: textblock
21766 #: ../fish/guestfish-actions.pod:2796
21767 msgid ""
21768 "B<Important note:> When you use this call, the filesystem options C<sync> "
21769 "and C<noatime> are set implicitly.  This was originally done because we "
21770 "thought it would improve reliability, but it turns out that I<-o sync> has a "
21771 "very large negative performance impact and negligible effect on "
21772 "reliability.  Therefore we recommend that you avoid using L</mount> in any "
21773 "code that needs performance, and instead use L</mount-options> (use an empty "
21774 "string for the first parameter if you don't want any options)."
21775 msgstr ""
21776
21777 # type: =head2
21778 #: ../fish/guestfish-actions.pod:2806
21779 msgid "mount-loop"
21780 msgstr ""
21781
21782 # type: verbatim
21783 #: ../fish/guestfish-actions.pod:2808
21784 #, no-wrap
21785 msgid ""
21786 " mount-loop file mountpoint\n"
21787 "\n"
21788 msgstr ""
21789
21790 # type: =head2
21791 #: ../fish/guestfish-actions.pod:2814
21792 msgid "mount-options"
21793 msgstr ""
21794
21795 # type: verbatim
21796 #: ../fish/guestfish-actions.pod:2816
21797 #, no-wrap
21798 msgid ""
21799 " mount-options options device mountpoint\n"
21800 "\n"
21801 msgstr ""
21802
21803 # type: textblock
21804 #: ../fish/guestfish-actions.pod:2818
21805 msgid ""
21806 "This is the same as the L</mount> command, but it allows you to set the "
21807 "mount options as for the L<mount(8)> I<-o> flag."
21808 msgstr ""
21809
21810 # type: =head2
21811 #: ../fish/guestfish-actions.pod:2826
21812 msgid "mount-ro"
21813 msgstr ""
21814
21815 # type: verbatim
21816 #: ../fish/guestfish-actions.pod:2828
21817 #, no-wrap
21818 msgid ""
21819 " mount-ro device mountpoint\n"
21820 "\n"
21821 msgstr ""
21822
21823 # type: textblock
21824 #: ../fish/guestfish-actions.pod:2830
21825 msgid ""
21826 "This is the same as the L</mount> command, but it mounts the filesystem with "
21827 "the read-only (I<-o ro>) flag."
21828 msgstr ""
21829
21830 # type: =head2
21831 #: ../fish/guestfish-actions.pod:2833
21832 msgid "mount-vfs"
21833 msgstr ""
21834
21835 # type: verbatim
21836 #: ../fish/guestfish-actions.pod:2835
21837 #, no-wrap
21838 msgid ""
21839 " mount-vfs options vfstype device mountpoint\n"
21840 "\n"
21841 msgstr ""
21842
21843 # type: textblock
21844 #: ../fish/guestfish-actions.pod:2837
21845 msgid ""
21846 "This is the same as the L</mount> command, but it allows you to set both the "
21847 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
21848 msgstr ""
21849
21850 # type: =head2
21851 #: ../fish/guestfish-actions.pod:2841
21852 msgid "mountpoints"
21853 msgstr ""
21854
21855 # type: verbatim
21856 #: ../fish/guestfish-actions.pod:2843
21857 #, no-wrap
21858 msgid ""
21859 " mountpoints\n"
21860 "\n"
21861 msgstr ""
21862
21863 # type: textblock
21864 #: ../fish/guestfish-actions.pod:2845
21865 msgid ""
21866 "This call is similar to L</mounts>.  That call returns a list of devices.  "
21867 "This one returns a hash table (map) of device name to directory where the "
21868 "device is mounted."
21869 msgstr ""
21870
21871 # type: =head2
21872 #: ../fish/guestfish-actions.pod:2849
21873 msgid "mounts"
21874 msgstr ""
21875
21876 # type: verbatim
21877 #: ../fish/guestfish-actions.pod:2851
21878 #, no-wrap
21879 msgid ""
21880 " mounts\n"
21881 "\n"
21882 msgstr ""
21883
21884 # type: textblock
21885 #: ../fish/guestfish-actions.pod:2858
21886 msgid "See also: L</mountpoints>"
21887 msgstr ""
21888
21889 # type: =head2
21890 #: ../fish/guestfish-actions.pod:2860
21891 msgid "mv"
21892 msgstr ""
21893
21894 # type: verbatim
21895 #: ../fish/guestfish-actions.pod:2862
21896 #, no-wrap
21897 msgid ""
21898 " mv src dest\n"
21899 "\n"
21900 msgstr ""
21901
21902 # type: =head2
21903 #: ../fish/guestfish-actions.pod:2867
21904 msgid "ntfs-3g-probe"
21905 msgstr ""
21906
21907 # type: verbatim
21908 #: ../fish/guestfish-actions.pod:2869
21909 #, no-wrap
21910 msgid ""
21911 " ntfs-3g-probe true|false device\n"
21912 "\n"
21913 msgstr ""
21914
21915 # type: =head2
21916 #: ../fish/guestfish-actions.pod:2883
21917 msgid "ntfsresize"
21918 msgstr ""
21919
21920 # type: verbatim
21921 #: ../fish/guestfish-actions.pod:2885
21922 #, no-wrap
21923 msgid ""
21924 " ntfsresize device\n"
21925 "\n"
21926 msgstr ""
21927
21928 # type: =head2
21929 #: ../fish/guestfish-actions.pod:2891
21930 msgid "ntfsresize-size"
21931 msgstr ""
21932
21933 # type: verbatim
21934 #: ../fish/guestfish-actions.pod:2893
21935 #, no-wrap
21936 msgid ""
21937 " ntfsresize-size device size\n"
21938 "\n"
21939 msgstr ""
21940
21941 # type: textblock
21942 #: ../fish/guestfish-actions.pod:2895
21943 msgid ""
21944 "This command is the same as L</ntfsresize> except that it allows you to "
21945 "specify the new size (in bytes) explicitly."
21946 msgstr ""
21947
21948 # type: =head2
21949 #: ../fish/guestfish-actions.pod:2898
21950 msgid "part-add"
21951 msgstr ""
21952
21953 # type: verbatim
21954 #: ../fish/guestfish-actions.pod:2900
21955 #, no-wrap
21956 msgid ""
21957 " part-add device prlogex startsect endsect\n"
21958 "\n"
21959 msgstr ""
21960
21961 # type: textblock
21962 #: ../fish/guestfish-actions.pod:2902
21963 msgid ""
21964 "This command adds a partition to C<device>.  If there is no partition table "
21965 "on the device, call L</part-init> first."
21966 msgstr ""
21967
21968 # type: textblock
21969 #: ../fish/guestfish-actions.pod:2914
21970 msgid ""
21971 "Creating a partition which covers the whole disk is not so easy.  Use "
21972 "L</part-disk> to do that."
21973 msgstr ""
21974
21975 # type: =head2
21976 #: ../fish/guestfish-actions.pod:2917
21977 msgid "part-del"
21978 msgstr ""
21979
21980 # type: verbatim
21981 #: ../fish/guestfish-actions.pod:2919
21982 #, no-wrap
21983 msgid ""
21984 " part-del device partnum\n"
21985 "\n"
21986 msgstr ""
21987
21988 # type: =head2
21989 #: ../fish/guestfish-actions.pod:2927
21990 msgid "part-disk"
21991 msgstr ""
21992
21993 # type: verbatim
21994 #: ../fish/guestfish-actions.pod:2929
21995 #, no-wrap
21996 msgid ""
21997 " part-disk device parttype\n"
21998 "\n"
21999 msgstr ""
22000
22001 # type: textblock
22002 #: ../fish/guestfish-actions.pod:2931
22003 msgid ""
22004 "This command is simply a combination of L</part-init> followed by "
22005 "L</part-add> to create a single primary partition covering the whole disk."
22006 msgstr ""
22007
22008 # type: textblock
22009 #: ../fish/guestfish-actions.pod:2935
22010 msgid ""
22011 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
22012 "possible values are described in L</part-init>."
22013 msgstr ""
22014
22015 # type: =head2
22016 #: ../fish/guestfish-actions.pod:2941
22017 msgid "part-get-bootable"
22018 msgstr ""
22019
22020 # type: verbatim
22021 #: ../fish/guestfish-actions.pod:2943
22022 #, no-wrap
22023 msgid ""
22024 " part-get-bootable device partnum\n"
22025 "\n"
22026 msgstr ""
22027
22028 # type: textblock
22029 #: ../fish/guestfish-actions.pod:2948
22030 msgid "See also L</part-set-bootable>."
22031 msgstr ""
22032
22033 # type: =head2
22034 #: ../fish/guestfish-actions.pod:2950
22035 msgid "part-get-mbr-id"
22036 msgstr ""
22037
22038 # type: verbatim
22039 #: ../fish/guestfish-actions.pod:2952
22040 #, no-wrap
22041 msgid ""
22042 " part-get-mbr-id device partnum\n"
22043 "\n"
22044 msgstr ""
22045
22046 # type: textblock
22047 #: ../fish/guestfish-actions.pod:2957 ../fish/guestfish-actions.pod:3095
22048 msgid ""
22049 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
22050 "undefined results for other partition table types (see "
22051 "L</part-get-parttype>)."
22052 msgstr ""
22053
22054 # type: =head2
22055 #: ../fish/guestfish-actions.pod:2961
22056 msgid "part-get-parttype"
22057 msgstr ""
22058
22059 # type: verbatim
22060 #: ../fish/guestfish-actions.pod:2963
22061 #, no-wrap
22062 msgid ""
22063 " part-get-parttype device\n"
22064 "\n"
22065 msgstr ""
22066
22067 # type: textblock
22068 #: ../fish/guestfish-actions.pod:2968
22069 msgid ""
22070 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
22071 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
22072 "possible, although unusual.  See L</part-init> for a full list."
22073 msgstr ""
22074
22075 # type: =head2
22076 #: ../fish/guestfish-actions.pod:2973
22077 msgid "part-init"
22078 msgstr ""
22079
22080 # type: verbatim
22081 #: ../fish/guestfish-actions.pod:2975
22082 #, no-wrap
22083 msgid ""
22084 " part-init device parttype\n"
22085 "\n"
22086 msgstr ""
22087
22088 # type: textblock
22089 #: ../fish/guestfish-actions.pod:2981
22090 msgid ""
22091 "Initially there are no partitions.  Following this, you should call "
22092 "L</part-add> for each partition required."
22093 msgstr ""
22094
22095 # type: =head2
22096 #: ../fish/guestfish-actions.pod:3044
22097 msgid "part-list"
22098 msgstr ""
22099
22100 # type: verbatim
22101 #: ../fish/guestfish-actions.pod:3046
22102 #, no-wrap
22103 msgid ""
22104 " part-list device\n"
22105 "\n"
22106 msgstr ""
22107
22108 # type: textblock
22109 #: ../fish/guestfish-actions.pod:3061
22110 msgid ""
22111 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
22112 "the device's sector size, see L</blockdev-getss>."
22113 msgstr ""
22114
22115 # type: =head2
22116 #: ../fish/guestfish-actions.pod:3074
22117 msgid "part-set-bootable"
22118 msgstr ""
22119
22120 # type: verbatim
22121 #: ../fish/guestfish-actions.pod:3076
22122 #, no-wrap
22123 msgid ""
22124 " part-set-bootable device partnum true|false\n"
22125 "\n"
22126 msgstr ""
22127
22128 # type: =head2
22129 #: ../fish/guestfish-actions.pod:3085
22130 msgid "part-set-mbr-id"
22131 msgstr ""
22132
22133 # type: verbatim
22134 #: ../fish/guestfish-actions.pod:3087
22135 #, no-wrap
22136 msgid ""
22137 " part-set-mbr-id device partnum idbyte\n"
22138 "\n"
22139 msgstr ""
22140
22141 # type: =head2
22142 #: ../fish/guestfish-actions.pod:3099
22143 msgid "part-set-name"
22144 msgstr ""
22145
22146 # type: verbatim
22147 #: ../fish/guestfish-actions.pod:3101
22148 #, no-wrap
22149 msgid ""
22150 " part-set-name device partnum name\n"
22151 "\n"
22152 msgstr ""
22153
22154 # type: =head2
22155 #: ../fish/guestfish-actions.pod:3109
22156 msgid "part-to-dev"
22157 msgstr ""
22158
22159 # type: verbatim
22160 #: ../fish/guestfish-actions.pod:3111
22161 #, no-wrap
22162 msgid ""
22163 " part-to-dev partition\n"
22164 "\n"
22165 msgstr ""
22166
22167 # type: textblock
22168 #: ../fish/guestfish-actions.pod:3117
22169 msgid ""
22170 "The named partition must exist, for example as a string returned from "
22171 "L</list-partitions>."
22172 msgstr ""
22173
22174 # type: =head2
22175 #: ../fish/guestfish-actions.pod:3120
22176 msgid "ping-daemon"
22177 msgstr ""
22178
22179 # type: verbatim
22180 #: ../fish/guestfish-actions.pod:3122
22181 #, no-wrap
22182 msgid ""
22183 " ping-daemon\n"
22184 "\n"
22185 msgstr ""
22186
22187 # type: =head2
22188 #: ../fish/guestfish-actions.pod:3129
22189 msgid "pread"
22190 msgstr ""
22191
22192 # type: verbatim
22193 #: ../fish/guestfish-actions.pod:3131
22194 #, no-wrap
22195 msgid ""
22196 " pread path count offset\n"
22197 "\n"
22198 msgstr ""
22199
22200 # type: textblock
22201 #: ../fish/guestfish-actions.pod:3139
22202 msgid "See also L</pwrite>, L</pread-device>."
22203 msgstr ""
22204
22205 # type: =head2
22206 #: ../fish/guestfish-actions.pod:3144
22207 msgid "pread-device"
22208 msgstr ""
22209
22210 # type: verbatim
22211 #: ../fish/guestfish-actions.pod:3146
22212 #, no-wrap
22213 msgid ""
22214 " pread-device device count offset\n"
22215 "\n"
22216 msgstr ""
22217
22218 # type: textblock
22219 #: ../fish/guestfish-actions.pod:3154
22220 msgid "See also L</pread>."
22221 msgstr ""
22222
22223 # type: =head2
22224 #: ../fish/guestfish-actions.pod:3159
22225 msgid "pvcreate"
22226 msgstr ""
22227
22228 # type: verbatim
22229 #: ../fish/guestfish-actions.pod:3161
22230 #, no-wrap
22231 msgid ""
22232 " pvcreate device\n"
22233 "\n"
22234 msgstr ""
22235
22236 # type: =head2
22237 #: ../fish/guestfish-actions.pod:3167
22238 msgid "pvremove"
22239 msgstr ""
22240
22241 # type: verbatim
22242 #: ../fish/guestfish-actions.pod:3169
22243 #, no-wrap
22244 msgid ""
22245 " pvremove device\n"
22246 "\n"
22247 msgstr ""
22248
22249 # type: =head2
22250 #: ../fish/guestfish-actions.pod:3178
22251 msgid "pvresize"
22252 msgstr ""
22253
22254 # type: verbatim
22255 #: ../fish/guestfish-actions.pod:3180
22256 #, no-wrap
22257 msgid ""
22258 " pvresize device\n"
22259 "\n"
22260 msgstr ""
22261
22262 # type: =head2
22263 #: ../fish/guestfish-actions.pod:3185
22264 msgid "pvresize-size"
22265 msgstr ""
22266
22267 # type: verbatim
22268 #: ../fish/guestfish-actions.pod:3187
22269 #, no-wrap
22270 msgid ""
22271 " pvresize-size device size\n"
22272 "\n"
22273 msgstr ""
22274
22275 # type: textblock
22276 #: ../fish/guestfish-actions.pod:3189
22277 msgid ""
22278 "This command is the same as L</pvresize> except that it allows you to "
22279 "specify the new size (in bytes) explicitly."
22280 msgstr ""
22281
22282 # type: =head2
22283 #: ../fish/guestfish-actions.pod:3192
22284 msgid "pvs"
22285 msgstr ""
22286
22287 # type: verbatim
22288 #: ../fish/guestfish-actions.pod:3194
22289 #, no-wrap
22290 msgid ""
22291 " pvs\n"
22292 "\n"
22293 msgstr ""
22294
22295 # type: textblock
22296 #: ../fish/guestfish-actions.pod:3202
22297 msgid "See also L</pvs-full>."
22298 msgstr ""
22299
22300 # type: =head2
22301 #: ../fish/guestfish-actions.pod:3204
22302 msgid "pvs-full"
22303 msgstr ""
22304
22305 # type: verbatim
22306 #: ../fish/guestfish-actions.pod:3206
22307 #, no-wrap
22308 msgid ""
22309 " pvs-full\n"
22310 "\n"
22311 msgstr ""
22312
22313 # type: =head2
22314 #: ../fish/guestfish-actions.pod:3211
22315 msgid "pvuuid"
22316 msgstr ""
22317
22318 # type: verbatim
22319 #: ../fish/guestfish-actions.pod:3213
22320 #, no-wrap
22321 msgid ""
22322 " pvuuid device\n"
22323 "\n"
22324 msgstr ""
22325
22326 # type: =head2
22327 #: ../fish/guestfish-actions.pod:3217
22328 msgid "pwrite"
22329 msgstr ""
22330
22331 # type: verbatim
22332 #: ../fish/guestfish-actions.pod:3219
22333 #, no-wrap
22334 msgid ""
22335 " pwrite path content offset\n"
22336 "\n"
22337 msgstr ""
22338
22339 # type: textblock
22340 #: ../fish/guestfish-actions.pod:3230
22341 msgid "See also L</pread>, L</pwrite-device>."
22342 msgstr ""
22343
22344 # type: =head2
22345 #: ../fish/guestfish-actions.pod:3235
22346 msgid "pwrite-device"
22347 msgstr ""
22348
22349 # type: verbatim
22350 #: ../fish/guestfish-actions.pod:3237
22351 #, no-wrap
22352 msgid ""
22353 " pwrite-device device content offset\n"
22354 "\n"
22355 msgstr ""
22356
22357 # type: textblock
22358 #: ../fish/guestfish-actions.pod:3247
22359 msgid "See also L</pwrite>."
22360 msgstr ""
22361
22362 # type: =head2
22363 #: ../fish/guestfish-actions.pod:3252
22364 msgid "read-file"
22365 msgstr ""
22366
22367 # type: verbatim
22368 #: ../fish/guestfish-actions.pod:3254
22369 #, no-wrap
22370 msgid ""
22371 " read-file path\n"
22372 "\n"
22373 msgstr ""
22374
22375 # type: textblock
22376 #: ../fish/guestfish-actions.pod:3259
22377 msgid ""
22378 "Unlike L</cat>, this function can correctly handle files that contain "
22379 "embedded ASCII NUL characters.  However unlike L</download>, this function "
22380 "is limited in the total size of file that can be handled."
22381 msgstr ""
22382
22383 # type: =head2
22384 #: ../fish/guestfish-actions.pod:3267
22385 msgid "read-lines"
22386 msgstr ""
22387
22388 # type: verbatim
22389 #: ../fish/guestfish-actions.pod:3269
22390 #, no-wrap
22391 msgid ""
22392 " read-lines path\n"
22393 "\n"
22394 msgstr ""
22395
22396 # type: textblock
22397 #: ../fish/guestfish-actions.pod:3276
22398 msgid ""
22399 "Note that this function cannot correctly handle binary files (specifically, "
22400 "files containing C<\\0> character which is treated as end of line).  For "
22401 "those you need to use the L</read-file> function which has a more complex "
22402 "interface."
22403 msgstr ""
22404
22405 # type: =head2
22406 #: ../fish/guestfish-actions.pod:3281
22407 msgid "readdir"
22408 msgstr ""
22409
22410 # type: verbatim
22411 #: ../fish/guestfish-actions.pod:3283
22412 #, no-wrap
22413 msgid ""
22414 " readdir dir\n"
22415 "\n"
22416 msgstr ""
22417
22418 # type: textblock
22419 #: ../fish/guestfish-actions.pod:3335
22420 msgid ""
22421 "This function is primarily intended for use by programs.  To get a simple "
22422 "list of names, use L</ls>.  To get a printable directory for human "
22423 "consumption, use L</ll>."
22424 msgstr ""
22425
22426 # type: =head2
22427 #: ../fish/guestfish-actions.pod:3339
22428 msgid "readlink"
22429 msgstr ""
22430
22431 # type: verbatim
22432 #: ../fish/guestfish-actions.pod:3341
22433 #, no-wrap
22434 msgid ""
22435 " readlink path\n"
22436 "\n"
22437 msgstr ""
22438
22439 # type: =head2
22440 #: ../fish/guestfish-actions.pod:3345
22441 msgid "readlinklist"
22442 msgstr ""
22443
22444 # type: verbatim
22445 #: ../fish/guestfish-actions.pod:3347
22446 #, no-wrap
22447 msgid ""
22448 " readlinklist path 'names ...'\n"
22449 "\n"
22450 msgstr ""
22451
22452 # type: =head2
22453 #: ../fish/guestfish-actions.pod:3371
22454 msgid "realpath"
22455 msgstr ""
22456
22457 # type: verbatim
22458 #: ../fish/guestfish-actions.pod:3373
22459 #, no-wrap
22460 msgid ""
22461 " realpath path\n"
22462 "\n"
22463 msgstr ""
22464
22465 # type: =head2
22466 #: ../fish/guestfish-actions.pod:3378
22467 msgid "removexattr"
22468 msgstr ""
22469
22470 # type: verbatim
22471 #: ../fish/guestfish-actions.pod:3380
22472 #, no-wrap
22473 msgid ""
22474 " removexattr xattr path\n"
22475 "\n"
22476 msgstr ""
22477
22478 # type: textblock
22479 #: ../fish/guestfish-actions.pod:3385
22480 msgid "See also: L</lremovexattr>, L<attr(5)>."
22481 msgstr ""
22482
22483 # type: =head2
22484 #: ../fish/guestfish-actions.pod:3387
22485 msgid "resize2fs"
22486 msgstr ""
22487
22488 # type: verbatim
22489 #: ../fish/guestfish-actions.pod:3389
22490 #, no-wrap
22491 msgid ""
22492 " resize2fs device\n"
22493 "\n"
22494 msgstr ""
22495
22496 # type: textblock
22497 #: ../fish/guestfish-actions.pod:3394
22498 msgid ""
22499 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
22500 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
22501 "gives an error about this and sometimes not.  In any case, it is always safe "
22502 "to call L</e2fsck-f> before calling this function."
22503 msgstr ""
22504
22505 # type: =head2
22506 #: ../fish/guestfish-actions.pod:3400
22507 msgid "resize2fs-size"
22508 msgstr ""
22509
22510 # type: verbatim
22511 #: ../fish/guestfish-actions.pod:3402
22512 #, no-wrap
22513 msgid ""
22514 " resize2fs-size device size\n"
22515 "\n"
22516 msgstr ""
22517
22518 # type: textblock
22519 #: ../fish/guestfish-actions.pod:3404
22520 msgid ""
22521 "This command is the same as L</resize2fs> except that it allows you to "
22522 "specify the new size (in bytes) explicitly."
22523 msgstr ""
22524
22525 # type: =head2
22526 #: ../fish/guestfish-actions.pod:3407
22527 msgid "rm"
22528 msgstr ""
22529
22530 # type: verbatim
22531 #: ../fish/guestfish-actions.pod:3409
22532 #, no-wrap
22533 msgid ""
22534 " rm path\n"
22535 "\n"
22536 msgstr ""
22537
22538 # type: =head2
22539 #: ../fish/guestfish-actions.pod:3413
22540 msgid "rm-rf"
22541 msgstr ""
22542
22543 # type: verbatim
22544 #: ../fish/guestfish-actions.pod:3415
22545 #, no-wrap
22546 msgid ""
22547 " rm-rf path\n"
22548 "\n"
22549 msgstr ""
22550
22551 # type: =head2
22552 #: ../fish/guestfish-actions.pod:3421
22553 msgid "rmdir"
22554 msgstr ""
22555
22556 # type: verbatim
22557 #: ../fish/guestfish-actions.pod:3423
22558 #, no-wrap
22559 msgid ""
22560 " rmdir path\n"
22561 "\n"
22562 msgstr ""
22563
22564 # type: =head2
22565 #: ../fish/guestfish-actions.pod:3427
22566 msgid "rmmountpoint"
22567 msgstr ""
22568
22569 # type: verbatim
22570 #: ../fish/guestfish-actions.pod:3429
22571 #, no-wrap
22572 msgid ""
22573 " rmmountpoint exemptpath\n"
22574 "\n"
22575 msgstr ""
22576
22577 # type: textblock
22578 #: ../fish/guestfish-actions.pod:3431
22579 msgid ""
22580 "This calls removes a mountpoint that was previously created with "
22581 "L</mkmountpoint>.  See L</mkmountpoint> for full details."
22582 msgstr ""
22583
22584 # type: =head2
22585 #: ../fish/guestfish-actions.pod:3435
22586 msgid "scrub-device"
22587 msgstr ""
22588
22589 # type: verbatim
22590 #: ../fish/guestfish-actions.pod:3437
22591 #, no-wrap
22592 msgid ""
22593 " scrub-device device\n"
22594 "\n"
22595 msgstr ""
22596
22597 # type: =head2
22598 #: ../fish/guestfish-actions.pod:3448
22599 msgid "scrub-file"
22600 msgstr ""
22601
22602 # type: verbatim
22603 #: ../fish/guestfish-actions.pod:3450
22604 #, no-wrap
22605 msgid ""
22606 " scrub-file file\n"
22607 "\n"
22608 msgstr ""
22609
22610 # type: =head2
22611 #: ../fish/guestfish-actions.pod:3460
22612 msgid "scrub-freespace"
22613 msgstr ""
22614
22615 # type: verbatim
22616 #: ../fish/guestfish-actions.pod:3462
22617 #, no-wrap
22618 msgid ""
22619 " scrub-freespace dir\n"
22620 "\n"
22621 msgstr ""
22622
22623 # type: textblock
22624 #: ../fish/guestfish-actions.pod:3464
22625 msgid ""
22626 "This command creates the directory C<dir> and then fills it with files until "
22627 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
22628 "deletes them.  The intention is to scrub any free space on the partition "
22629 "containing C<dir>."
22630 msgstr ""
22631
22632 # type: =head2
22633 #: ../fish/guestfish-actions.pod:3473
22634 msgid "set-append"
22635 msgstr ""
22636
22637 # type: =head2
22638 #: ../fish/guestfish-actions.pod:3475
22639 msgid "append"
22640 msgstr ""
22641
22642 # type: verbatim
22643 #: ../fish/guestfish-actions.pod:3477
22644 #, no-wrap
22645 msgid ""
22646 " set-append append\n"
22647 "\n"
22648 msgstr ""
22649
22650 # type: =head2
22651 #: ../fish/guestfish-actions.pod:3488
22652 msgid "set-autosync"
22653 msgstr ""
22654
22655 # type: =head2
22656 #: ../fish/guestfish-actions.pod:3490
22657 msgid "autosync"
22658 msgstr ""
22659
22660 # type: verbatim
22661 #: ../fish/guestfish-actions.pod:3492
22662 #, no-wrap
22663 msgid ""
22664 " set-autosync true|false\n"
22665 "\n"
22666 msgstr ""
22667
22668 # type: textblock
22669 #: ../fish/guestfish-actions.pod:3494
22670 msgid ""
22671 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
22672 "effort attempt to run L</umount-all> followed by L</sync> when the handle is "
22673 "closed (also if the program exits without closing handles)."
22674 msgstr ""
22675
22676 # type: =head2
22677 #: ../fish/guestfish-actions.pod:3502
22678 msgid "set-direct"
22679 msgstr ""
22680
22681 # type: =head2
22682 #: ../fish/guestfish-actions.pod:3504
22683 msgid "direct"
22684 msgstr ""
22685
22686 # type: verbatim
22687 #: ../fish/guestfish-actions.pod:3506
22688 #, no-wrap
22689 msgid ""
22690 " set-direct true|false\n"
22691 "\n"
22692 msgstr ""
22693
22694 # type: textblock
22695 #: ../fish/guestfish-actions.pod:3512
22696 msgid ""
22697 "One consequence of this is that log messages aren't caught by the library "
22698 "and handled by L</set-log-message-callback>, but go straight to stdout."
22699 msgstr ""
22700
22701 # type: =head2
22702 #: ../fish/guestfish-actions.pod:3521
22703 msgid "set-e2label"
22704 msgstr ""
22705
22706 # type: verbatim
22707 #: ../fish/guestfish-actions.pod:3523
22708 #, no-wrap
22709 msgid ""
22710 " set-e2label device label\n"
22711 "\n"
22712 msgstr ""
22713
22714 # type: textblock
22715 #: ../fish/guestfish-actions.pod:3529
22716 msgid ""
22717 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
22718 "label on a filesystem."
22719 msgstr ""
22720
22721 # type: =head2
22722 #: ../fish/guestfish-actions.pod:3532
22723 msgid "set-e2uuid"
22724 msgstr ""
22725
22726 # type: verbatim
22727 #: ../fish/guestfish-actions.pod:3534
22728 #, no-wrap
22729 msgid ""
22730 " set-e2uuid device uuid\n"
22731 "\n"
22732 msgstr ""
22733
22734 # type: textblock
22735 #: ../fish/guestfish-actions.pod:3541
22736 msgid ""
22737 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
22738 "UUID of a filesystem."
22739 msgstr ""
22740
22741 # type: =head2
22742 #: ../fish/guestfish-actions.pod:3544
22743 msgid "set-memsize"
22744 msgstr ""
22745
22746 # type: =head2
22747 #: ../fish/guestfish-actions.pod:3546
22748 msgid "memsize"
22749 msgstr ""
22750
22751 # type: verbatim
22752 #: ../fish/guestfish-actions.pod:3548
22753 #, no-wrap
22754 msgid ""
22755 " set-memsize memsize\n"
22756 "\n"
22757 msgstr ""
22758
22759 # type: textblock
22760 #: ../fish/guestfish-actions.pod:3550
22761 msgid ""
22762 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
22763 "This only has any effect if called before L</launch>."
22764 msgstr ""
22765
22766 # type: =head2
22767 #: ../fish/guestfish-actions.pod:3561
22768 msgid "set-network"
22769 msgstr ""
22770
22771 # type: =head2
22772 #: ../fish/guestfish-actions.pod:3563
22773 msgid "network"
22774 msgstr ""
22775
22776 # type: verbatim
22777 #: ../fish/guestfish-actions.pod:3565
22778 #, no-wrap
22779 msgid ""
22780 " set-network true|false\n"
22781 "\n"
22782 msgstr ""
22783
22784 # type: textblock
22785 #: ../fish/guestfish-actions.pod:3573
22786 msgid "You must call this before calling L</launch>, otherwise it has no effect."
22787 msgstr ""
22788
22789 # type: =head2
22790 #: ../fish/guestfish-actions.pod:3576
22791 msgid "set-path"
22792 msgstr ""
22793
22794 # type: =head2
22795 #: ../fish/guestfish-actions.pod:3578
22796 msgid "path"
22797 msgstr ""
22798
22799 # type: verbatim
22800 #: ../fish/guestfish-actions.pod:3580
22801 #, no-wrap
22802 msgid ""
22803 " set-path searchpath\n"
22804 "\n"
22805 msgstr ""
22806
22807 # type: =head2
22808 #: ../fish/guestfish-actions.pod:3589
22809 msgid "set-qemu"
22810 msgstr ""
22811
22812 # type: =head2
22813 #: ../fish/guestfish-actions.pod:3591
22814 msgid "qemu"
22815 msgstr ""
22816
22817 # type: verbatim
22818 #: ../fish/guestfish-actions.pod:3593
22819 #, no-wrap
22820 msgid ""
22821 " set-qemu qemu\n"
22822 "\n"
22823 msgstr ""
22824
22825 # type: =head2
22826 #: ../fish/guestfish-actions.pod:3613
22827 msgid "set-recovery-proc"
22828 msgstr ""
22829
22830 # type: =head2
22831 #: ../fish/guestfish-actions.pod:3615
22832 msgid "recovery-proc"
22833 msgstr ""
22834
22835 # type: verbatim
22836 #: ../fish/guestfish-actions.pod:3617
22837 #, no-wrap
22838 msgid ""
22839 " set-recovery-proc true|false\n"
22840 "\n"
22841 msgstr ""
22842
22843 # type: textblock
22844 #: ../fish/guestfish-actions.pod:3619
22845 msgid ""
22846 "If this is called with the parameter C<false> then L</launch> does not "
22847 "create a recovery process.  The purpose of the recovery process is to stop "
22848 "runaway qemu processes in the case where the main program aborts abruptly."
22849 msgstr ""
22850
22851 # type: textblock
22852 #: ../fish/guestfish-actions.pod:3624
22853 msgid ""
22854 "This only has any effect if called before L</launch>, and the default is "
22855 "true."
22856 msgstr ""
22857
22858 # type: =head2
22859 #: ../fish/guestfish-actions.pod:3633
22860 msgid "set-selinux"
22861 msgstr ""
22862
22863 # type: =head2
22864 #: ../fish/guestfish-actions.pod:3635
22865 msgid "selinux"
22866 msgstr ""
22867
22868 # type: verbatim
22869 #: ../fish/guestfish-actions.pod:3637
22870 #, no-wrap
22871 msgid ""
22872 " set-selinux true|false\n"
22873 "\n"
22874 msgstr ""
22875
22876 # type: =head2
22877 #: ../fish/guestfish-actions.pod:3648
22878 msgid "set-trace"
22879 msgstr ""
22880
22881 # type: =head2
22882 #: ../fish/guestfish-actions.pod:3650
22883 msgid "trace"
22884 msgstr ""
22885
22886 # type: verbatim
22887 #: ../fish/guestfish-actions.pod:3652
22888 #, no-wrap
22889 msgid ""
22890 " set-trace true|false\n"
22891 "\n"
22892 msgstr ""
22893
22894 # type: =head2
22895 #: ../fish/guestfish-actions.pod:3668
22896 msgid "set-verbose"
22897 msgstr ""
22898
22899 # type: =head2
22900 #: ../fish/guestfish-actions.pod:3670
22901 msgid "verbose"
22902 msgstr ""
22903
22904 # type: verbatim
22905 #: ../fish/guestfish-actions.pod:3672
22906 #, no-wrap
22907 msgid ""
22908 " set-verbose true|false\n"
22909 "\n"
22910 msgstr ""
22911
22912 # type: =head2
22913 #: ../fish/guestfish-actions.pod:3679
22914 msgid "setcon"
22915 msgstr ""
22916
22917 # type: verbatim
22918 #: ../fish/guestfish-actions.pod:3681
22919 #, no-wrap
22920 msgid ""
22921 " setcon context\n"
22922 "\n"
22923 msgstr ""
22924
22925 # type: =head2
22926 #: ../fish/guestfish-actions.pod:3688
22927 msgid "setxattr"
22928 msgstr ""
22929
22930 # type: verbatim
22931 #: ../fish/guestfish-actions.pod:3690
22932 #, no-wrap
22933 msgid ""
22934 " setxattr xattr val vallen path\n"
22935 "\n"
22936 msgstr ""
22937
22938 # type: textblock
22939 #: ../fish/guestfish-actions.pod:3696
22940 msgid "See also: L</lsetxattr>, L<attr(5)>."
22941 msgstr ""
22942
22943 # type: =head2
22944 #: ../fish/guestfish-actions.pod:3698
22945 msgid "sfdisk"
22946 msgstr ""
22947
22948 # type: verbatim
22949 #: ../fish/guestfish-actions.pod:3700
22950 #, no-wrap
22951 msgid ""
22952 " sfdisk device cyls heads sectors 'lines ...'\n"
22953 "\n"
22954 msgstr ""
22955
22956 # type: textblock
22957 #: ../fish/guestfish-actions.pod:3722
22958 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
22959 msgstr ""
22960
22961 # type: =head2
22962 #: ../fish/guestfish-actions.pod:3728
22963 msgid "sfdiskM"
22964 msgstr ""
22965
22966 # type: verbatim
22967 #: ../fish/guestfish-actions.pod:3730
22968 #, no-wrap
22969 msgid ""
22970 " sfdiskM device 'lines ...'\n"
22971 "\n"
22972 msgstr ""
22973
22974 # type: textblock
22975 #: ../fish/guestfish-actions.pod:3732
22976 msgid ""
22977 "This is a simplified interface to the L</sfdisk> command, where partition "
22978 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
22979 "you don't need to specify the cyls, heads and sectors parameters which were "
22980 "rarely if ever used anyway."
22981 msgstr ""
22982
22983 # type: textblock
22984 #: ../fish/guestfish-actions.pod:3738
22985 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
22986 msgstr ""
22987
22988 # type: =head2
22989 #: ../fish/guestfish-actions.pod:3744
22990 msgid "sfdisk-N"
22991 msgstr ""
22992
22993 # type: verbatim
22994 #: ../fish/guestfish-actions.pod:3746
22995 #, no-wrap
22996 msgid ""
22997 " sfdisk-N device partnum cyls heads sectors line\n"
22998 "\n"
22999 msgstr ""
23000
23001 # type: textblock
23002 #: ../fish/guestfish-actions.pod:3751
23003 msgid ""
23004 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
23005 "cyls/heads/sectors parameters."
23006 msgstr ""
23007
23008 # type: textblock
23009 #: ../fish/guestfish-actions.pod:3754
23010 msgid "See also: L</part-add>"
23011 msgstr ""
23012
23013 # type: =head2
23014 #: ../fish/guestfish-actions.pod:3759
23015 msgid "sfdisk-disk-geometry"
23016 msgstr ""
23017
23018 # type: verbatim
23019 #: ../fish/guestfish-actions.pod:3761
23020 #, no-wrap
23021 msgid ""
23022 " sfdisk-disk-geometry device\n"
23023 "\n"
23024 msgstr ""
23025
23026 # type: textblock
23027 #: ../fish/guestfish-actions.pod:3763
23028 msgid ""
23029 "This displays the disk geometry of C<device> read from the partition table.  "
23030 "Especially in the case where the underlying block device has been resized, "
23031 "this can be different from the kernel's idea of the geometry (see "
23032 "L</sfdisk-kernel-geometry>)."
23033 msgstr ""
23034
23035 # type: =head2
23036 #: ../fish/guestfish-actions.pod:3771
23037 msgid "sfdisk-kernel-geometry"
23038 msgstr ""
23039
23040 # type: verbatim
23041 #: ../fish/guestfish-actions.pod:3773
23042 #, no-wrap
23043 msgid ""
23044 " sfdisk-kernel-geometry device\n"
23045 "\n"
23046 msgstr ""
23047
23048 # type: =head2
23049 #: ../fish/guestfish-actions.pod:3780
23050 msgid "sfdisk-l"
23051 msgstr ""
23052
23053 # type: verbatim
23054 #: ../fish/guestfish-actions.pod:3782
23055 #, no-wrap
23056 msgid ""
23057 " sfdisk-l device\n"
23058 "\n"
23059 msgstr ""
23060
23061 # type: textblock
23062 #: ../fish/guestfish-actions.pod:3788
23063 msgid "See also: L</part-list>"
23064 msgstr ""
23065
23066 # type: =head2
23067 #: ../fish/guestfish-actions.pod:3790
23068 msgid "sh"
23069 msgstr ""
23070
23071 # type: verbatim
23072 #: ../fish/guestfish-actions.pod:3792
23073 #, no-wrap
23074 msgid ""
23075 " sh command\n"
23076 "\n"
23077 msgstr ""
23078
23079 # type: textblock
23080 #: ../fish/guestfish-actions.pod:3797
23081 msgid "This is like L</command>, but passes the command to:"
23082 msgstr ""
23083
23084 # type: textblock
23085 #: ../fish/guestfish-actions.pod:3805
23086 msgid "All the provisos about L</command> apply to this call."
23087 msgstr ""
23088
23089 # type: =head2
23090 #: ../fish/guestfish-actions.pod:3807
23091 msgid "sh-lines"
23092 msgstr ""
23093
23094 # type: verbatim
23095 #: ../fish/guestfish-actions.pod:3809
23096 #, no-wrap
23097 msgid ""
23098 " sh-lines command\n"
23099 "\n"
23100 msgstr ""
23101
23102 # type: textblock
23103 #: ../fish/guestfish-actions.pod:3811
23104 msgid "This is the same as L</sh>, but splits the result into a list of lines."
23105 msgstr ""
23106
23107 # type: textblock
23108 #: ../fish/guestfish-actions.pod:3814
23109 msgid "See also: L</command-lines>"
23110 msgstr ""
23111
23112 # type: =head2
23113 #: ../fish/guestfish-actions.pod:3816
23114 msgid "sleep"
23115 msgstr ""
23116
23117 # type: verbatim
23118 #: ../fish/guestfish-actions.pod:3818
23119 #, no-wrap
23120 msgid ""
23121 " sleep secs\n"
23122 "\n"
23123 msgstr ""
23124
23125 # type: =head2
23126 #: ../fish/guestfish-actions.pod:3822
23127 msgid "stat"
23128 msgstr ""
23129
23130 # type: verbatim
23131 #: ../fish/guestfish-actions.pod:3824
23132 #, no-wrap
23133 msgid ""
23134 " stat path\n"
23135 "\n"
23136 msgstr ""
23137
23138 # type: =head2
23139 #: ../fish/guestfish-actions.pod:3830
23140 msgid "statvfs"
23141 msgstr ""
23142
23143 # type: verbatim
23144 #: ../fish/guestfish-actions.pod:3832
23145 #, no-wrap
23146 msgid ""
23147 " statvfs path\n"
23148 "\n"
23149 msgstr ""
23150
23151 # type: =head2
23152 #: ../fish/guestfish-actions.pod:3840
23153 msgid "strings"
23154 msgstr ""
23155
23156 # type: verbatim
23157 #: ../fish/guestfish-actions.pod:3842
23158 #, no-wrap
23159 msgid ""
23160 " strings path\n"
23161 "\n"
23162 msgstr ""
23163
23164 # type: =head2
23165 #: ../fish/guestfish-actions.pod:3850
23166 msgid "strings-e"
23167 msgstr ""
23168
23169 # type: verbatim
23170 #: ../fish/guestfish-actions.pod:3852
23171 #, no-wrap
23172 msgid ""
23173 " strings-e encoding path\n"
23174 "\n"
23175 msgstr ""
23176
23177 # type: textblock
23178 #: ../fish/guestfish-actions.pod:3854
23179 msgid ""
23180 "This is like the L</strings> command, but allows you to specify the encoding "
23181 "of strings that are looked for in the source file C<path>."
23182 msgstr ""
23183
23184 # type: textblock
23185 #: ../fish/guestfish-actions.pod:3864
23186 msgid ""
23187 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
23188 "ISO-8859-X (this is what L</strings> uses)."
23189 msgstr ""
23190
23191 # type: =head2
23192 #: ../fish/guestfish-actions.pod:3896
23193 msgid "swapoff-device"
23194 msgstr ""
23195
23196 # type: verbatim
23197 #: ../fish/guestfish-actions.pod:3898
23198 #, no-wrap
23199 msgid ""
23200 " swapoff-device device\n"
23201 "\n"
23202 msgstr ""
23203
23204 # type: textblock
23205 #: ../fish/guestfish-actions.pod:3900
23206 msgid ""
23207 "This command disables the libguestfs appliance swap device or partition "
23208 "named C<device>.  See L</swapon-device>."
23209 msgstr ""
23210
23211 # type: =head2
23212 #: ../fish/guestfish-actions.pod:3904
23213 msgid "swapoff-file"
23214 msgstr ""
23215
23216 # type: verbatim
23217 #: ../fish/guestfish-actions.pod:3906
23218 #, no-wrap
23219 msgid ""
23220 " swapoff-file file\n"
23221 "\n"
23222 msgstr ""
23223
23224 # type: =head2
23225 #: ../fish/guestfish-actions.pod:3910
23226 msgid "swapoff-label"
23227 msgstr ""
23228
23229 # type: verbatim
23230 #: ../fish/guestfish-actions.pod:3912
23231 #, no-wrap
23232 msgid ""
23233 " swapoff-label label\n"
23234 "\n"
23235 msgstr ""
23236
23237 # type: =head2
23238 #: ../fish/guestfish-actions.pod:3917
23239 msgid "swapoff-uuid"
23240 msgstr ""
23241
23242 # type: verbatim
23243 #: ../fish/guestfish-actions.pod:3919
23244 #, no-wrap
23245 msgid ""
23246 " swapoff-uuid uuid\n"
23247 "\n"
23248 msgstr ""
23249
23250 # type: =head2
23251 #: ../fish/guestfish-actions.pod:3924
23252 msgid "swapon-device"
23253 msgstr ""
23254
23255 # type: verbatim
23256 #: ../fish/guestfish-actions.pod:3926
23257 #, no-wrap
23258 msgid ""
23259 " swapon-device device\n"
23260 "\n"
23261 msgstr ""
23262
23263 # type: textblock
23264 #: ../fish/guestfish-actions.pod:3928
23265 msgid ""
23266 "This command enables the libguestfs appliance to use the swap device or "
23267 "partition named C<device>.  The increased memory is made available for all "
23268 "commands, for example those run using L</command> or L</sh>."
23269 msgstr ""
23270
23271 # type: =head2
23272 #: ../fish/guestfish-actions.pod:3940
23273 msgid "swapon-file"
23274 msgstr ""
23275
23276 # type: verbatim
23277 #: ../fish/guestfish-actions.pod:3942
23278 #, no-wrap
23279 msgid ""
23280 " swapon-file file\n"
23281 "\n"
23282 msgstr ""
23283
23284 # type: textblock
23285 #: ../fish/guestfish-actions.pod:3944
23286 msgid "This command enables swap to a file.  See L</swapon-device> for other notes."
23287 msgstr ""
23288
23289 # type: =head2
23290 #: ../fish/guestfish-actions.pod:3947
23291 msgid "swapon-label"
23292 msgstr ""
23293
23294 # type: verbatim
23295 #: ../fish/guestfish-actions.pod:3949
23296 #, no-wrap
23297 msgid ""
23298 " swapon-label label\n"
23299 "\n"
23300 msgstr ""
23301
23302 # type: textblock
23303 #: ../fish/guestfish-actions.pod:3951
23304 msgid ""
23305 "This command enables swap to a labeled swap partition.  See "
23306 "L</swapon-device> for other notes."
23307 msgstr ""
23308
23309 # type: =head2
23310 #: ../fish/guestfish-actions.pod:3954
23311 msgid "swapon-uuid"
23312 msgstr ""
23313
23314 # type: verbatim
23315 #: ../fish/guestfish-actions.pod:3956
23316 #, no-wrap
23317 msgid ""
23318 " swapon-uuid uuid\n"
23319 "\n"
23320 msgstr ""
23321
23322 # type: textblock
23323 #: ../fish/guestfish-actions.pod:3958
23324 msgid ""
23325 "This command enables swap to a swap partition with the given UUID.  See "
23326 "L</swapon-device> for other notes."
23327 msgstr ""
23328
23329 # type: =head2
23330 #: ../fish/guestfish-actions.pod:3961
23331 msgid "sync"
23332 msgstr ""
23333
23334 # type: verbatim
23335 #: ../fish/guestfish-actions.pod:3963
23336 #, no-wrap
23337 msgid ""
23338 " sync\n"
23339 "\n"
23340 msgstr ""
23341
23342 # type: =head2
23343 #: ../fish/guestfish-actions.pod:3971
23344 msgid "tail"
23345 msgstr ""
23346
23347 # type: verbatim
23348 #: ../fish/guestfish-actions.pod:3973
23349 #, no-wrap
23350 msgid ""
23351 " tail path\n"
23352 "\n"
23353 msgstr ""
23354
23355 # type: =head2
23356 #: ../fish/guestfish-actions.pod:3981
23357 msgid "tail-n"
23358 msgstr ""
23359
23360 # type: verbatim
23361 #: ../fish/guestfish-actions.pod:3983
23362 #, no-wrap
23363 msgid ""
23364 " tail-n nrlines path\n"
23365 "\n"
23366 msgstr ""
23367
23368 # type: =head2
23369 #: ../fish/guestfish-actions.pod:3996
23370 msgid "tar-in"
23371 msgstr ""
23372
23373 # type: verbatim
23374 #: ../fish/guestfish-actions.pod:3998
23375 #, no-wrap
23376 msgid ""
23377 " tar-in (tarfile|-) directory\n"
23378 "\n"
23379 msgstr ""
23380
23381 # type: textblock
23382 #: ../fish/guestfish-actions.pod:4003
23383 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
23384 msgstr ""
23385
23386 # type: =head2
23387 #: ../fish/guestfish-actions.pod:4008
23388 msgid "tar-out"
23389 msgstr ""
23390
23391 # type: verbatim
23392 #: ../fish/guestfish-actions.pod:4010
23393 #, no-wrap
23394 msgid ""
23395 " tar-out directory (tarfile|-)\n"
23396 "\n"
23397 msgstr ""
23398
23399 # type: textblock
23400 #: ../fish/guestfish-actions.pod:4015
23401 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
23402 msgstr ""
23403
23404 # type: =head2
23405 #: ../fish/guestfish-actions.pod:4020
23406 msgid "tgz-in"
23407 msgstr ""
23408
23409 # type: verbatim
23410 #: ../fish/guestfish-actions.pod:4022
23411 #, no-wrap
23412 msgid ""
23413 " tgz-in (tarball|-) directory\n"
23414 "\n"
23415 msgstr ""
23416
23417 # type: textblock
23418 #: ../fish/guestfish-actions.pod:4027
23419 msgid "To upload an uncompressed tarball, use L</tar-in>."
23420 msgstr ""
23421
23422 # type: =head2
23423 #: ../fish/guestfish-actions.pod:4031
23424 msgid "tgz-out"
23425 msgstr ""
23426
23427 # type: verbatim
23428 #: ../fish/guestfish-actions.pod:4033
23429 #, no-wrap
23430 msgid ""
23431 " tgz-out directory (tarball|-)\n"
23432 "\n"
23433 msgstr ""
23434
23435 # type: textblock
23436 #: ../fish/guestfish-actions.pod:4038
23437 msgid "To download an uncompressed tarball, use L</tar-out>."
23438 msgstr ""
23439
23440 # type: =head2
23441 #: ../fish/guestfish-actions.pod:4042
23442 msgid "touch"
23443 msgstr ""
23444
23445 # type: verbatim
23446 #: ../fish/guestfish-actions.pod:4044
23447 #, no-wrap
23448 msgid ""
23449 " touch path\n"
23450 "\n"
23451 msgstr ""
23452
23453 # type: =head2
23454 #: ../fish/guestfish-actions.pod:4053
23455 msgid "truncate"
23456 msgstr ""
23457
23458 # type: verbatim
23459 #: ../fish/guestfish-actions.pod:4055
23460 #, no-wrap
23461 msgid ""
23462 " truncate path\n"
23463 "\n"
23464 msgstr ""
23465
23466 # type: =head2
23467 #: ../fish/guestfish-actions.pod:4060
23468 msgid "truncate-size"
23469 msgstr ""
23470
23471 # type: verbatim
23472 #: ../fish/guestfish-actions.pod:4062
23473 #, no-wrap
23474 msgid ""
23475 " truncate-size path size\n"
23476 "\n"
23477 msgstr ""
23478
23479 # type: textblock
23480 #: ../fish/guestfish-actions.pod:4067
23481 msgid ""
23482 "If the current file size is less than C<size> then the file is extended to "
23483 "the required size with zero bytes.  This creates a sparse file (ie. disk "
23484 "blocks are not allocated for the file until you write to it).  To create a "
23485 "non-sparse file of zeroes, use L</fallocate64> instead."
23486 msgstr ""
23487
23488 # type: =head2
23489 #: ../fish/guestfish-actions.pod:4073
23490 msgid "tune2fs-l"
23491 msgstr ""
23492
23493 # type: verbatim
23494 #: ../fish/guestfish-actions.pod:4075
23495 #, no-wrap
23496 msgid ""
23497 " tune2fs-l device\n"
23498 "\n"
23499 msgstr ""
23500
23501 # type: =head2
23502 #: ../fish/guestfish-actions.pod:4085
23503 msgid "txz-in"
23504 msgstr ""
23505
23506 # type: verbatim
23507 #: ../fish/guestfish-actions.pod:4087
23508 #, no-wrap
23509 msgid ""
23510 " txz-in (tarball|-) directory\n"
23511 "\n"
23512 msgstr ""
23513
23514 # type: =head2
23515 #: ../fish/guestfish-actions.pod:4094
23516 msgid "txz-out"
23517 msgstr ""
23518
23519 # type: verbatim
23520 #: ../fish/guestfish-actions.pod:4096
23521 #, no-wrap
23522 msgid ""
23523 " txz-out directory (tarball|-)\n"
23524 "\n"
23525 msgstr ""
23526
23527 # type: =head2
23528 #: ../fish/guestfish-actions.pod:4103
23529 msgid "umask"
23530 msgstr ""
23531
23532 # type: verbatim
23533 #: ../fish/guestfish-actions.pod:4105
23534 #, no-wrap
23535 msgid ""
23536 " umask mask\n"
23537 "\n"
23538 msgstr ""
23539
23540 # type: textblock
23541 #: ../fish/guestfish-actions.pod:4119
23542 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
23543 msgstr ""
23544
23545 # type: =head2
23546 #: ../fish/guestfish-actions.pod:4124
23547 msgid "umount"
23548 msgstr ""
23549
23550 # type: =head2
23551 #: ../fish/guestfish-actions.pod:4126
23552 msgid "unmount"
23553 msgstr ""
23554
23555 # type: verbatim
23556 #: ../fish/guestfish-actions.pod:4128
23557 #, no-wrap
23558 msgid ""
23559 " umount pathordevice\n"
23560 "\n"
23561 msgstr ""
23562
23563 # type: =head2
23564 #: ../fish/guestfish-actions.pod:4134
23565 msgid "umount-all"
23566 msgstr ""
23567
23568 # type: =head2
23569 #: ../fish/guestfish-actions.pod:4136
23570 msgid "unmount-all"
23571 msgstr ""
23572
23573 # type: verbatim
23574 #: ../fish/guestfish-actions.pod:4138
23575 #, no-wrap
23576 msgid ""
23577 " umount-all\n"
23578 "\n"
23579 msgstr ""
23580
23581 # type: =head2
23582 #: ../fish/guestfish-actions.pod:4144
23583 msgid "upload"
23584 msgstr ""
23585
23586 # type: verbatim
23587 #: ../fish/guestfish-actions.pod:4146
23588 #, no-wrap
23589 msgid ""
23590 " upload (filename|-) remotefilename\n"
23591 "\n"
23592 msgstr ""
23593
23594 # type: textblock
23595 #: ../fish/guestfish-actions.pod:4153
23596 msgid "See also L</download>."
23597 msgstr ""
23598
23599 # type: =head2
23600 #: ../fish/guestfish-actions.pod:4157
23601 msgid "upload-offset"
23602 msgstr ""
23603
23604 # type: verbatim
23605 #: ../fish/guestfish-actions.pod:4159
23606 #, no-wrap
23607 msgid ""
23608 " upload-offset (filename|-) remotefilename offset\n"
23609 "\n"
23610 msgstr ""
23611
23612 # type: textblock
23613 #: ../fish/guestfish-actions.pod:4171
23614 msgid ""
23615 "Note that there is no limit on the amount of data that can be uploaded with "
23616 "this call, unlike with L</pwrite>, and this call always writes the full "
23617 "amount unless an error occurs."
23618 msgstr ""
23619
23620 # type: textblock
23621 #: ../fish/guestfish-actions.pod:4176
23622 msgid "See also L</upload>, L</pwrite>."
23623 msgstr ""
23624
23625 # type: =head2
23626 #: ../fish/guestfish-actions.pod:4180
23627 msgid "utimens"
23628 msgstr ""
23629
23630 # type: verbatim
23631 #: ../fish/guestfish-actions.pod:4182
23632 #, no-wrap
23633 msgid ""
23634 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
23635 "\n"
23636 msgstr ""
23637
23638 # type: =head2
23639 #: ../fish/guestfish-actions.pod:4201
23640 msgid "version"
23641 msgstr ""
23642
23643 # type: verbatim
23644 #: ../fish/guestfish-actions.pod:4203
23645 #, no-wrap
23646 msgid ""
23647 " version\n"
23648 "\n"
23649 msgstr ""
23650
23651 # type: textblock
23652 #: ../fish/guestfish-actions.pod:4230
23653 msgid ""
23654 "I<Note:> Don't use this call to test for availability of features.  In "
23655 "enterprise distributions we backport features from later versions into "
23656 "earlier versions, making this an unreliable way to test for features.  Use "
23657 "L</available> instead."
23658 msgstr ""
23659
23660 # type: =head2
23661 #: ../fish/guestfish-actions.pod:4236
23662 msgid "vfs-label"
23663 msgstr ""
23664
23665 # type: verbatim
23666 #: ../fish/guestfish-actions.pod:4238
23667 #, no-wrap
23668 msgid ""
23669 " vfs-label device\n"
23670 "\n"
23671 msgstr ""
23672
23673 # type: textblock
23674 #: ../fish/guestfish-actions.pod:4245
23675 msgid "To find a filesystem from the label, use L</findfs-label>."
23676 msgstr ""
23677
23678 # type: =head2
23679 #: ../fish/guestfish-actions.pod:4247
23680 msgid "vfs-type"
23681 msgstr ""
23682
23683 # type: verbatim
23684 #: ../fish/guestfish-actions.pod:4249
23685 #, no-wrap
23686 msgid ""
23687 " vfs-type device\n"
23688 "\n"
23689 msgstr ""
23690
23691 # type: =head2
23692 #: ../fish/guestfish-actions.pod:4259
23693 msgid "vfs-uuid"
23694 msgstr ""
23695
23696 # type: verbatim
23697 #: ../fish/guestfish-actions.pod:4261
23698 #, no-wrap
23699 msgid ""
23700 " vfs-uuid device\n"
23701 "\n"
23702 msgstr ""
23703
23704 # type: textblock
23705 #: ../fish/guestfish-actions.pod:4268
23706 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
23707 msgstr ""
23708
23709 # type: =head2
23710 #: ../fish/guestfish-actions.pod:4270
23711 msgid "vg-activate"
23712 msgstr ""
23713
23714 # type: verbatim
23715 #: ../fish/guestfish-actions.pod:4272
23716 #, no-wrap
23717 msgid ""
23718 " vg-activate true|false 'volgroups ...'\n"
23719 "\n"
23720 msgstr ""
23721
23722 # type: =head2
23723 #: ../fish/guestfish-actions.pod:4285
23724 msgid "vg-activate-all"
23725 msgstr ""
23726
23727 # type: verbatim
23728 #: ../fish/guestfish-actions.pod:4287
23729 #, no-wrap
23730 msgid ""
23731 " vg-activate-all true|false\n"
23732 "\n"
23733 msgstr ""
23734
23735 # type: =head2
23736 #: ../fish/guestfish-actions.pod:4297
23737 msgid "vgcreate"
23738 msgstr ""
23739
23740 # type: verbatim
23741 #: ../fish/guestfish-actions.pod:4299
23742 #, no-wrap
23743 msgid ""
23744 " vgcreate volgroup 'physvols ...'\n"
23745 "\n"
23746 msgstr ""
23747
23748 # type: =head2
23749 #: ../fish/guestfish-actions.pod:4304
23750 msgid "vglvuuids"
23751 msgstr ""
23752
23753 # type: verbatim
23754 #: ../fish/guestfish-actions.pod:4306
23755 #, no-wrap
23756 msgid ""
23757 " vglvuuids vgname\n"
23758 "\n"
23759 msgstr ""
23760
23761 # type: textblock
23762 #: ../fish/guestfish-actions.pod:4311
23763 msgid ""
23764 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
23765 "logical volumes and volume groups."
23766 msgstr ""
23767
23768 # type: textblock
23769 #: ../fish/guestfish-actions.pod:4314
23770 msgid "See also L</vgpvuuids>."
23771 msgstr ""
23772
23773 # type: =head2
23774 #: ../fish/guestfish-actions.pod:4316
23775 msgid "vgpvuuids"
23776 msgstr ""
23777
23778 # type: verbatim
23779 #: ../fish/guestfish-actions.pod:4318
23780 #, no-wrap
23781 msgid ""
23782 " vgpvuuids vgname\n"
23783 "\n"
23784 msgstr ""
23785
23786 # type: textblock
23787 #: ../fish/guestfish-actions.pod:4323
23788 msgid ""
23789 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
23790 "physical volumes and volume groups."
23791 msgstr ""
23792
23793 # type: textblock
23794 #: ../fish/guestfish-actions.pod:4326
23795 msgid "See also L</vglvuuids>."
23796 msgstr ""
23797
23798 # type: =head2
23799 #: ../fish/guestfish-actions.pod:4328
23800 msgid "vgremove"
23801 msgstr ""
23802
23803 # type: verbatim
23804 #: ../fish/guestfish-actions.pod:4330
23805 #, no-wrap
23806 msgid ""
23807 " vgremove vgname\n"
23808 "\n"
23809 msgstr ""
23810
23811 # type: =head2
23812 #: ../fish/guestfish-actions.pod:4337
23813 msgid "vgrename"
23814 msgstr ""
23815
23816 # type: verbatim
23817 #: ../fish/guestfish-actions.pod:4339
23818 #, no-wrap
23819 msgid ""
23820 " vgrename volgroup newvolgroup\n"
23821 "\n"
23822 msgstr ""
23823
23824 # type: =head2
23825 #: ../fish/guestfish-actions.pod:4343
23826 msgid "vgs"
23827 msgstr ""
23828
23829 # type: verbatim
23830 #: ../fish/guestfish-actions.pod:4345
23831 #, no-wrap
23832 msgid ""
23833 " vgs\n"
23834 "\n"
23835 msgstr ""
23836
23837 # type: textblock
23838 #: ../fish/guestfish-actions.pod:4353
23839 msgid "See also L</vgs-full>."
23840 msgstr ""
23841
23842 # type: =head2
23843 #: ../fish/guestfish-actions.pod:4355
23844 msgid "vgs-full"
23845 msgstr ""
23846
23847 # type: verbatim
23848 #: ../fish/guestfish-actions.pod:4357
23849 #, no-wrap
23850 msgid ""
23851 " vgs-full\n"
23852 "\n"
23853 msgstr ""
23854
23855 # type: =head2
23856 #: ../fish/guestfish-actions.pod:4362
23857 msgid "vgscan"
23858 msgstr ""
23859
23860 # type: verbatim
23861 #: ../fish/guestfish-actions.pod:4364
23862 #, no-wrap
23863 msgid ""
23864 " vgscan\n"
23865 "\n"
23866 msgstr ""
23867
23868 # type: =head2
23869 #: ../fish/guestfish-actions.pod:4369
23870 msgid "vguuid"
23871 msgstr ""
23872
23873 # type: verbatim
23874 #: ../fish/guestfish-actions.pod:4371
23875 #, no-wrap
23876 msgid ""
23877 " vguuid vgname\n"
23878 "\n"
23879 msgstr ""
23880
23881 # type: =head2
23882 #: ../fish/guestfish-actions.pod:4375
23883 msgid "wc-c"
23884 msgstr ""
23885
23886 # type: verbatim
23887 #: ../fish/guestfish-actions.pod:4377
23888 #, no-wrap
23889 msgid ""
23890 " wc-c path\n"
23891 "\n"
23892 msgstr ""
23893
23894 # type: =head2
23895 #: ../fish/guestfish-actions.pod:4382
23896 msgid "wc-l"
23897 msgstr ""
23898
23899 # type: verbatim
23900 #: ../fish/guestfish-actions.pod:4384
23901 #, no-wrap
23902 msgid ""
23903 " wc-l path\n"
23904 "\n"
23905 msgstr ""
23906
23907 # type: =head2
23908 #: ../fish/guestfish-actions.pod:4389
23909 msgid "wc-w"
23910 msgstr ""
23911
23912 # type: verbatim
23913 #: ../fish/guestfish-actions.pod:4391
23914 #, no-wrap
23915 msgid ""
23916 " wc-w path\n"
23917 "\n"
23918 msgstr ""
23919
23920 # type: =head2
23921 #: ../fish/guestfish-actions.pod:4396
23922 msgid "write"
23923 msgstr ""
23924
23925 # type: verbatim
23926 #: ../fish/guestfish-actions.pod:4398
23927 #, no-wrap
23928 msgid ""
23929 " write path content\n"
23930 "\n"
23931 msgstr ""
23932
23933 # type: =head2
23934 #: ../fish/guestfish-actions.pod:4406
23935 msgid "write-file"
23936 msgstr ""
23937
23938 # type: verbatim
23939 #: ../fish/guestfish-actions.pod:4408
23940 #, no-wrap
23941 msgid ""
23942 " write-file path content size\n"
23943 "\n"
23944 msgstr ""
23945
23946 # type: =head2
23947 #: ../fish/guestfish-actions.pod:4431
23948 msgid "zegrep"
23949 msgstr ""
23950
23951 # type: verbatim
23952 #: ../fish/guestfish-actions.pod:4433
23953 #, no-wrap
23954 msgid ""
23955 " zegrep regex path\n"
23956 "\n"
23957 msgstr ""
23958
23959 # type: =head2
23960 #: ../fish/guestfish-actions.pod:4441
23961 msgid "zegrepi"
23962 msgstr ""
23963
23964 # type: verbatim
23965 #: ../fish/guestfish-actions.pod:4443
23966 #, no-wrap
23967 msgid ""
23968 " zegrepi regex path\n"
23969 "\n"
23970 msgstr ""
23971
23972 # type: =head2
23973 #: ../fish/guestfish-actions.pod:4451
23974 msgid "zero"
23975 msgstr ""
23976
23977 # type: verbatim
23978 #: ../fish/guestfish-actions.pod:4453
23979 #, no-wrap
23980 msgid ""
23981 " zero device\n"
23982 "\n"
23983 msgstr ""
23984
23985 # type: textblock
23986 #: ../fish/guestfish-actions.pod:4461
23987 msgid "See also: L</zero-device>, L</scrub-device>."
23988 msgstr ""
23989
23990 # type: =head2
23991 #: ../fish/guestfish-actions.pod:4463
23992 msgid "zero-device"
23993 msgstr ""
23994
23995 # type: verbatim
23996 #: ../fish/guestfish-actions.pod:4465
23997 #, no-wrap
23998 msgid ""
23999 " zero-device device\n"
24000 "\n"
24001 msgstr ""
24002
24003 # type: textblock
24004 #: ../fish/guestfish-actions.pod:4467
24005 msgid ""
24006 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
24007 "which just zeroes the first few blocks of a device."
24008 msgstr ""
24009
24010 # type: =head2
24011 #: ../fish/guestfish-actions.pod:4474
24012 msgid "zerofree"
24013 msgstr ""
24014
24015 # type: verbatim
24016 #: ../fish/guestfish-actions.pod:4476
24017 #, no-wrap
24018 msgid ""
24019 " zerofree device\n"
24020 "\n"
24021 msgstr ""
24022
24023 # type: =head2
24024 #: ../fish/guestfish-actions.pod:4489
24025 msgid "zfgrep"
24026 msgstr ""
24027
24028 # type: verbatim
24029 #: ../fish/guestfish-actions.pod:4491
24030 #, no-wrap
24031 msgid ""
24032 " zfgrep pattern path\n"
24033 "\n"
24034 msgstr ""
24035
24036 # type: =head2
24037 #: ../fish/guestfish-actions.pod:4499
24038 msgid "zfgrepi"
24039 msgstr ""
24040
24041 # type: verbatim
24042 #: ../fish/guestfish-actions.pod:4501
24043 #, no-wrap
24044 msgid ""
24045 " zfgrepi pattern path\n"
24046 "\n"
24047 msgstr ""
24048
24049 # type: =head2
24050 #: ../fish/guestfish-actions.pod:4509
24051 msgid "zfile"
24052 msgstr ""
24053
24054 # type: verbatim
24055 #: ../fish/guestfish-actions.pod:4511
24056 #, no-wrap
24057 msgid ""
24058 " zfile meth path\n"
24059 "\n"
24060 msgstr ""
24061
24062 # type: textblock
24063 #: ../fish/guestfish-actions.pod:4518
24064 msgid "Since 1.0.63, use L</file> instead which can now process compressed files."
24065 msgstr ""
24066
24067 # type: =head2
24068 #: ../fish/guestfish-actions.pod:4528
24069 msgid "zgrep"
24070 msgstr ""
24071
24072 # type: verbatim
24073 #: ../fish/guestfish-actions.pod:4530
24074 #, no-wrap
24075 msgid ""
24076 " zgrep regex path\n"
24077 "\n"
24078 msgstr ""
24079
24080 # type: =head2
24081 #: ../fish/guestfish-actions.pod:4538
24082 msgid "zgrepi"
24083 msgstr ""
24084
24085 # type: verbatim
24086 #: ../fish/guestfish-actions.pod:4540
24087 #, no-wrap
24088 msgid ""
24089 " zgrepi regex path\n"
24090 "\n"
24091 msgstr ""
24092
24093 # type: =head2
24094 #: ../fish/guestfish-commands.pod:1
24095 msgid "alloc"
24096 msgstr ""
24097
24098 # type: =head2
24099 #: ../fish/guestfish-commands.pod:3
24100 msgid "allocate"
24101 msgstr ""
24102
24103 # type: verbatim
24104 #: ../fish/guestfish-commands.pod:5
24105 #, no-wrap
24106 msgid ""
24107 " alloc filename size\n"
24108 "\n"
24109 msgstr ""
24110
24111 # type: textblock
24112 #: ../fish/guestfish-commands.pod:7
24113 msgid ""
24114 "This creates an empty (zeroed) file of the given size, and then adds so it "
24115 "can be further examined."
24116 msgstr ""
24117
24118 # type: textblock
24119 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:168
24120 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
24121 msgstr ""
24122
24123 # type: textblock
24124 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:170
24125 msgid "Size can be specified using standard suffixes, eg. C<1M>."
24126 msgstr ""
24127
24128 # type: textblock
24129 #: ../fish/guestfish-commands.pod:14
24130 msgid ""
24131 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
24132 "image, see L</PREPARED DISK IMAGES>."
24133 msgstr ""
24134
24135 # type: =head2
24136 #: ../fish/guestfish-commands.pod:17
24137 msgid "copy-in"
24138 msgstr ""
24139
24140 # type: verbatim
24141 #: ../fish/guestfish-commands.pod:19
24142 #, no-wrap
24143 msgid ""
24144 " copy-in local [local ...] /remotedir\n"
24145 "\n"
24146 msgstr ""
24147
24148 # type: textblock
24149 #: ../fish/guestfish-commands.pod:21
24150 msgid ""
24151 "C<copy-in> copies local files or directories recursively into the disk "
24152 "image, placing them in the directory called C</remotedir> (which must "
24153 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
24154 "other commands as necessary."
24155 msgstr ""
24156
24157 # type: textblock
24158 #: ../fish/guestfish-commands.pod:26
24159 msgid ""
24160 "Multiple local files and directories can be specified, but the last "
24161 "parameter must always be a remote directory.  Wildcards cannot be used."
24162 msgstr ""
24163
24164 # type: =head2
24165 #: ../fish/guestfish-commands.pod:30
24166 msgid "copy-out"
24167 msgstr ""
24168
24169 # type: verbatim
24170 #: ../fish/guestfish-commands.pod:32
24171 #, no-wrap
24172 msgid ""
24173 " copy-out remote [remote ...] localdir\n"
24174 "\n"
24175 msgstr ""
24176
24177 # type: textblock
24178 #: ../fish/guestfish-commands.pod:34
24179 msgid ""
24180 "C<copy-out> copies remote files or directories recursively out of the disk "
24181 "image, placing them on the host disk in a local directory called C<localdir> "
24182 "(which must exist).  This guestfish meta-command turns into a sequence of "
24183 "L</download>, L</tar-out> and other commands as necessary."
24184 msgstr ""
24185
24186 # type: textblock
24187 #: ../fish/guestfish-commands.pod:40
24188 msgid ""
24189 "Multiple remote files and directories can be specified, but the last "
24190 "parameter must always be a local directory.  To download to the current "
24191 "directory, use C<.> as in:"
24192 msgstr ""
24193
24194 # type: verbatim
24195 #: ../fish/guestfish-commands.pod:44
24196 #, no-wrap
24197 msgid ""
24198 " copy-out /home .\n"
24199 "\n"
24200 msgstr ""
24201
24202 # type: textblock
24203 #: ../fish/guestfish-commands.pod:46
24204 msgid ""
24205 "Wildcards cannot be used in the ordinary command, but you can use them with "
24206 "the help of L</glob> like this:"
24207 msgstr ""
24208
24209 # type: verbatim
24210 #: ../fish/guestfish-commands.pod:49
24211 #, no-wrap
24212 msgid ""
24213 " glob copy-out /home/* .\n"
24214 "\n"
24215 msgstr ""
24216
24217 # type: =head2
24218 #: ../fish/guestfish-commands.pod:51
24219 msgid "echo"
24220 msgstr ""
24221
24222 # type: verbatim
24223 #: ../fish/guestfish-commands.pod:53
24224 #, no-wrap
24225 msgid ""
24226 " echo [params ...]\n"
24227 "\n"
24228 msgstr ""
24229
24230 # type: textblock
24231 #: ../fish/guestfish-commands.pod:55
24232 msgid "This echos the parameters to the terminal."
24233 msgstr ""
24234
24235 # type: =head2
24236 #: ../fish/guestfish-commands.pod:57
24237 msgid "edit"
24238 msgstr ""
24239
24240 # type: =head2
24241 #: ../fish/guestfish-commands.pod:59
24242 msgid "vi"
24243 msgstr ""
24244
24245 # type: =head2
24246 #: ../fish/guestfish-commands.pod:61
24247 msgid "emacs"
24248 msgstr ""
24249
24250 # type: verbatim
24251 #: ../fish/guestfish-commands.pod:63
24252 #, no-wrap
24253 msgid ""
24254 " edit filename\n"
24255 "\n"
24256 msgstr ""
24257
24258 # type: textblock
24259 #: ../fish/guestfish-commands.pod:65
24260 msgid ""
24261 "This is used to edit a file.  It downloads the file, edits it locally using "
24262 "your editor, then uploads the result."
24263 msgstr ""
24264
24265 # type: textblock
24266 #: ../fish/guestfish-commands.pod:68
24267 msgid ""
24268 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
24269 "or C<emacs> you will get those corresponding editors."
24270 msgstr ""
24271
24272 # type: =head2
24273 #: ../fish/guestfish-commands.pod:72
24274 msgid "glob"
24275 msgstr ""
24276
24277 # type: verbatim
24278 #: ../fish/guestfish-commands.pod:74
24279 #, no-wrap
24280 msgid ""
24281 " glob command args...\n"
24282 "\n"
24283 msgstr ""
24284
24285 # type: textblock
24286 #: ../fish/guestfish-commands.pod:76
24287 msgid ""
24288 "Expand wildcards in any paths in the args list, and run C<command> "
24289 "repeatedly on each matching path."
24290 msgstr ""
24291
24292 # type: textblock
24293 #: ../fish/guestfish-commands.pod:79
24294 msgid "See L</WILDCARDS AND GLOBBING>."
24295 msgstr ""
24296
24297 # type: =head2
24298 #: ../fish/guestfish-commands.pod:81
24299 msgid "hexedit"
24300 msgstr ""
24301
24302 # type: verbatim
24303 #: ../fish/guestfish-commands.pod:83
24304 #, no-wrap
24305 msgid ""
24306 " hexedit <filename|device>\n"
24307 " hexedit <filename|device> <max>\n"
24308 " hexedit <filename|device> <start> <max>\n"
24309 "\n"
24310 msgstr ""
24311
24312 # type: textblock
24313 #: ../fish/guestfish-commands.pod:87
24314 msgid ""
24315 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
24316 "device."
24317 msgstr ""
24318
24319 # type: textblock
24320 #: ../fish/guestfish-commands.pod:90
24321 msgid ""
24322 "This command works by downloading potentially the whole file or device, "
24323 "editing it locally, then uploading it.  If the file or device is large, you "
24324 "have to specify which part you wish to edit by using C<max> and/or C<start> "
24325 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
24326 "usual modifiers allowed such as C<1M> (1 megabyte)."
24327 msgstr ""
24328
24329 # type: textblock
24330 #: ../fish/guestfish-commands.pod:97
24331 msgid "For example to edit the first few sectors of a disk you might do:"
24332 msgstr ""
24333
24334 # type: verbatim
24335 #: ../fish/guestfish-commands.pod:100
24336 #, no-wrap
24337 msgid ""
24338 " hexedit /dev/sda 1M\n"
24339 "\n"
24340 msgstr ""
24341
24342 # type: textblock
24343 #: ../fish/guestfish-commands.pod:102
24344 msgid ""
24345 "which would allow you to edit anywhere within the first megabyte of the "
24346 "disk."
24347 msgstr ""
24348
24349 # type: textblock
24350 #: ../fish/guestfish-commands.pod:105
24351 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
24352 msgstr ""
24353
24354 # type: verbatim
24355 #: ../fish/guestfish-commands.pod:107
24356 #, no-wrap
24357 msgid ""
24358 " hexedit /dev/sda1 0x400 0x400\n"
24359 "\n"
24360 msgstr ""
24361
24362 # type: textblock
24363 #: ../fish/guestfish-commands.pod:109
24364 msgid "(assuming the superblock is in the standard location)."
24365 msgstr ""
24366
24367 # type: textblock
24368 #: ../fish/guestfish-commands.pod:111
24369 msgid ""
24370 "This command requires the external L<hexedit(1)> program.  You can specify "
24371 "another program to use by setting the C<HEXEDITOR> environment variable."
24372 msgstr ""
24373
24374 # type: textblock
24375 #: ../fish/guestfish-commands.pod:115
24376 msgid "See also L</hexdump>."
24377 msgstr ""
24378
24379 # type: =head2
24380 #: ../fish/guestfish-commands.pod:117
24381 msgid "lcd"
24382 msgstr ""
24383
24384 # type: verbatim
24385 #: ../fish/guestfish-commands.pod:119
24386 #, no-wrap
24387 msgid ""
24388 " lcd directory\n"
24389 "\n"
24390 msgstr ""
24391
24392 # type: textblock
24393 #: ../fish/guestfish-commands.pod:121
24394 msgid "Change the local directory, ie. the current directory of guestfish itself."
24395 msgstr ""
24396
24397 # type: textblock
24398 #: ../fish/guestfish-commands.pod:124
24399 msgid "Note that C<!cd> won't do what you might expect."
24400 msgstr ""
24401
24402 # type: =head2
24403 #: ../fish/guestfish-commands.pod:126
24404 msgid "man"
24405 msgstr ""
24406
24407 # type: =head2
24408 #: ../fish/guestfish-commands.pod:128
24409 msgid "manual"
24410 msgstr ""
24411
24412 # type: verbatim
24413 #: ../fish/guestfish-commands.pod:130
24414 #, no-wrap
24415 msgid ""
24416 "  man\n"
24417 "\n"
24418 msgstr ""
24419
24420 # type: textblock
24421 #: ../fish/guestfish-commands.pod:132
24422 msgid "Opens the manual page for guestfish."
24423 msgstr ""
24424
24425 # type: =head2
24426 #: ../fish/guestfish-commands.pod:134
24427 msgid "more"
24428 msgstr ""
24429
24430 # type: =head2
24431 #: ../fish/guestfish-commands.pod:136
24432 msgid "less"
24433 msgstr ""
24434
24435 # type: verbatim
24436 #: ../fish/guestfish-commands.pod:138
24437 #, no-wrap
24438 msgid ""
24439 " more filename\n"
24440 "\n"
24441 msgstr ""
24442
24443 # type: verbatim
24444 #: ../fish/guestfish-commands.pod:140
24445 #, no-wrap
24446 msgid ""
24447 " less filename\n"
24448 "\n"
24449 msgstr ""
24450
24451 # type: textblock
24452 #: ../fish/guestfish-commands.pod:142
24453 msgid "This is used to view a file."
24454 msgstr ""
24455
24456 # type: textblock
24457 #: ../fish/guestfish-commands.pod:144
24458 msgid ""
24459 "The default viewer is C<$PAGER>.  However if you use the alternate command "
24460 "C<less> you will get the C<less> command specifically."
24461 msgstr ""
24462
24463 # type: =head2
24464 #: ../fish/guestfish-commands.pod:147
24465 msgid "reopen"
24466 msgstr ""
24467
24468 # type: verbatim
24469 #: ../fish/guestfish-commands.pod:149
24470 #, no-wrap
24471 msgid ""
24472 "  reopen\n"
24473 "\n"
24474 msgstr ""
24475
24476 # type: textblock
24477 #: ../fish/guestfish-commands.pod:151
24478 msgid ""
24479 "Close and reopen the libguestfs handle.  It is not necessary to use this "
24480 "normally, because the handle is closed properly when guestfish exits.  "
24481 "However this is occasionally useful for testing."
24482 msgstr ""
24483
24484 # type: =head2
24485 #: ../fish/guestfish-commands.pod:155
24486 msgid "sparse"
24487 msgstr ""
24488
24489 # type: verbatim
24490 #: ../fish/guestfish-commands.pod:157
24491 #, no-wrap
24492 msgid ""
24493 " sparse filename size\n"
24494 "\n"
24495 msgstr ""
24496
24497 # type: textblock
24498 #: ../fish/guestfish-commands.pod:159
24499 msgid ""
24500 "This creates an empty sparse file of the given size, and then adds so it can "
24501 "be further examined."
24502 msgstr ""
24503
24504 # type: textblock
24505 #: ../fish/guestfish-commands.pod:162
24506 msgid ""
24507 "In all respects it works the same as the L</alloc> command, except that the "
24508 "image file is allocated sparsely, which means that disk blocks are not "
24509 "assigned to the file until they are needed.  Sparse disk files only use "
24510 "space when written to, but they are slower and there is a danger you could "
24511 "run out of real disk space during a write operation."
24512 msgstr ""
24513
24514 # type: =head2
24515 #: ../fish/guestfish-commands.pod:172
24516 msgid "supported"
24517 msgstr ""
24518
24519 # type: verbatim
24520 #: ../fish/guestfish-commands.pod:174
24521 #, no-wrap
24522 msgid ""
24523 " supported\n"
24524 "\n"
24525 msgstr ""
24526
24527 # type: textblock
24528 #: ../fish/guestfish-commands.pod:176
24529 msgid ""
24530 "This command returns a list of the optional groups known to the daemon, and "
24531 "indicates which ones are supported by this build of the libguestfs "
24532 "appliance."
24533 msgstr ""
24534
24535 # type: textblock
24536 #: ../fish/guestfish-commands.pod:180
24537 msgid "See also L<guestfs(3)/AVAILABILITY>."
24538 msgstr ""
24539
24540 # type: =head2
24541 #: ../fish/guestfish-commands.pod:182
24542 msgid "time"
24543 msgstr ""
24544
24545 # type: verbatim
24546 #: ../fish/guestfish-commands.pod:184
24547 #, no-wrap
24548 msgid ""
24549 " time command args...\n"
24550 "\n"
24551 msgstr ""
24552
24553 # type: textblock
24554 #: ../fish/guestfish-commands.pod:186
24555 msgid ""
24556 "Run the command as usual, but print the elapsed time afterwards.  This can "
24557 "be useful for benchmarking operations."
24558 msgstr ""
24559
24560 # type: textblock
24561 #: ../test-tool/libguestfs-test-tool.pod:5
24562 msgid "libguestfs-test-tool - End user tests for libguestfs"
24563 msgstr ""
24564
24565 # type: verbatim
24566 #: ../test-tool/libguestfs-test-tool.pod:9
24567 #, no-wrap
24568 msgid ""
24569 " libguestfs-test-tool [--options]\n"
24570 "\n"
24571 msgstr ""
24572
24573 # type: textblock
24574 #: ../test-tool/libguestfs-test-tool.pod:13
24575 msgid ""
24576 "libguestfs-test-tool is a test program shipped with libguestfs to end users "
24577 "and developers, to allow them to check basic libguestfs functionality is "
24578 "working.  This is needed because libguestfs occasionally breaks for reasons "
24579 "beyond our control: usually because of changes in the underlying qemu or "
24580 "kernel packages, or the host environment."
24581 msgstr ""
24582
24583 # type: textblock
24584 #: ../test-tool/libguestfs-test-tool.pod:20
24585 msgid "If you suspect a problem in libguestfs, then just run:"
24586 msgstr ""
24587
24588 # type: verbatim
24589 #: ../test-tool/libguestfs-test-tool.pod:22
24590 #, no-wrap
24591 msgid ""
24592 " libguestfs-test-tool\n"
24593 "\n"
24594 msgstr ""
24595
24596 # type: textblock
24597 #: ../test-tool/libguestfs-test-tool.pod:24
24598 msgid "It will print lots of diagnostic messages."
24599 msgstr ""
24600
24601 # type: textblock
24602 #: ../test-tool/libguestfs-test-tool.pod:26
24603 msgid "If it runs to completion successfully, you will see this near the end:"
24604 msgstr ""
24605
24606 # type: verbatim
24607 #: ../test-tool/libguestfs-test-tool.pod:28
24608 #, no-wrap
24609 msgid ""
24610 " ===== TEST FINISHED OK =====\n"
24611 "\n"
24612 msgstr ""
24613
24614 # type: textblock
24615 #: ../test-tool/libguestfs-test-tool.pod:30
24616 msgid "and the test tool will exit with code 0."
24617 msgstr ""
24618
24619 # type: textblock
24620 #: ../test-tool/libguestfs-test-tool.pod:32
24621 msgid ""
24622 "If it fails (and/or exits with non-zero error code), please paste the "
24623 "B<complete, unedited> output of the test tool into a bug report.  More "
24624 "information about reporting bugs can be found on the "
24625 "L<http://libguestfs.org/> website."
24626 msgstr ""
24627
24628 # type: =item
24629 #: ../test-tool/libguestfs-test-tool.pod:41
24630 msgid "I<--help>"
24631 msgstr ""
24632
24633 # type: textblock
24634 #: ../test-tool/libguestfs-test-tool.pod:43
24635 msgid "Display short usage information and exit."
24636 msgstr ""
24637
24638 # type: =item
24639 #: ../test-tool/libguestfs-test-tool.pod:45
24640 msgid "I<--helper /path/to/libguestfs-test-tool-helper>"
24641 msgstr ""
24642
24643 # type: textblock
24644 #: ../test-tool/libguestfs-test-tool.pod:47
24645 msgid ""
24646 "Pass an alternate name for the helper program.  libguestfs-test-tool will "
24647 "normally look in the C<$libexec> directory that was configured when the tool "
24648 "was built."
24649 msgstr ""
24650
24651 # type: =item
24652 #: ../test-tool/libguestfs-test-tool.pod:51
24653 msgid "I<--qemu qemu_binary>"
24654 msgstr ""
24655
24656 # type: textblock
24657 #: ../test-tool/libguestfs-test-tool.pod:53
24658 msgid ""
24659 "If you have downloaded another qemu binary, point this option at the full "
24660 "path of the binary to try it."
24661 msgstr ""
24662
24663 # type: =item
24664 #: ../test-tool/libguestfs-test-tool.pod:56
24665 msgid "I<--qemudir qemu_source_dir>"
24666 msgstr ""
24667
24668 # type: textblock
24669 #: ../test-tool/libguestfs-test-tool.pod:58
24670 msgid ""
24671 "If you have compiled qemu from source, point this option at the source "
24672 "directory to try it."
24673 msgstr ""
24674
24675 # type: =item
24676 #: ../test-tool/libguestfs-test-tool.pod:61
24677 msgid "I<--timeout N>"
24678 msgstr ""
24679
24680 # type: textblock
24681 #: ../test-tool/libguestfs-test-tool.pod:63
24682 msgid ""
24683 "Set the launch timeout to C<N> seconds.  The default is 120 seconds which "
24684 "does not usually need to be adjusted unless your machine is very slow."
24685 msgstr ""
24686
24687 # type: =head1
24688 #: ../test-tool/libguestfs-test-tool.pod:69
24689 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
24690 msgstr ""
24691
24692 # type: textblock
24693 #: ../test-tool/libguestfs-test-tool.pod:71
24694 msgid ""
24695 "If you have compiled another version of qemu from source and would like to "
24696 "try that, then you can use the I<--qemudir> option to point to the qemu "
24697 "source directory."
24698 msgstr ""
24699
24700 # type: textblock
24701 #: ../test-tool/libguestfs-test-tool.pod:75
24702 msgid ""
24703 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
24704 "option to point to the binary."
24705 msgstr ""
24706
24707 # type: textblock
24708 #: ../test-tool/libguestfs-test-tool.pod:78
24709 msgid ""
24710 "When using an alternate qemu with libguestfs, usually you would need to "
24711 "write a qemu wrapper script (see section I<QEMU WRAPPERS> in "
24712 "L<guestfs(3)>).  libguestfs-test-tool writes a temporary qemu wrapper script "
24713 "when you use either of the I<--qemudir> or I<--qemu> options."
24714 msgstr ""
24715
24716 # type: textblock
24717 #: ../test-tool/libguestfs-test-tool.pod:85
24718 msgid ""
24719 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
24720 "I<1> if there was an error."
24721 msgstr ""
24722
24723 # type: =item
24724 #: ../test-tool/libguestfs-test-tool.pod:92
24725 msgid "/usr/libexec/libguestfs-test-tool-helper"
24726 msgstr ""
24727
24728 # type: textblock
24729 #: ../test-tool/libguestfs-test-tool.pod:94
24730 msgid ""
24731 "This helper program is run inside the appliance and provides additional "
24732 "tests."
24733 msgstr ""
24734
24735 # type: =item
24736 #: ../test-tool/libguestfs-test-tool.pod:97
24737 msgid "/usr/bin/mkisofs"
24738 msgstr ""
24739
24740 # type: textblock
24741 #: ../test-tool/libguestfs-test-tool.pod:99
24742 msgid ""
24743 "The C<mkisofs> command is required in order to construct a CD-ROM ISO file "
24744 "which is used as part of the tests."
24745 msgstr ""
24746
24747 # type: textblock
24748 #: ../test-tool/libguestfs-test-tool.pod:106
24749 msgid ""
24750 "For the full list of environment variables which may affect libguestfs, "
24751 "please see the L<guestfs(3)> manual page."
24752 msgstr ""
24753
24754 # type: textblock
24755 #: ../test-tool/libguestfs-test-tool.pod:111
24756 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
24757 msgstr ""
24758
24759 # type: textblock
24760 #: ../test-tool/libguestfs-test-tool.pod:121
24761 msgid "Copyright (C) 2009 Red Hat Inc.  L<http://libguestfs.org/>"
24762 msgstr ""
24763
24764 # type: textblock
24765 #: ../fuse/guestmount.pod:5
24766 msgid "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
24767 msgstr ""
24768
24769 # type: verbatim
24770 #: ../fuse/guestmount.pod:9
24771 #, no-wrap
24772 msgid ""
24773 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
24774 "\n"
24775 msgstr ""
24776
24777 # type: verbatim
24778 #: ../fuse/guestmount.pod:11
24779 #, no-wrap
24780 msgid ""
24781 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
24782 "\n"
24783 msgstr ""
24784
24785 # type: verbatim
24786 #: ../fuse/guestmount.pod:13
24787 #, no-wrap
24788 msgid ""
24789 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
24790 "\n"
24791 msgstr ""
24792
24793 # type: textblock
24794 #: ../fuse/guestmount.pod:17
24795 msgid ""
24796 "You must I<not> use C<guestmount> in read-write mode on live virtual "
24797 "machines.  If you do this, you risk disk corruption in the VM."
24798 msgstr ""
24799
24800 # type: textblock
24801 #: ../fuse/guestmount.pod:22
24802 msgid ""
24803 "The guestmount program can be used to mount virtual machine filesystems and "
24804 "other disk images on the host.  It uses libguestfs for access to the guest "
24805 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
24806 "a mountable device."
24807 msgstr ""
24808
24809 # type: textblock
24810 #: ../fuse/guestmount.pod:27
24811 msgid ""
24812 "Along with other options, you have to give at least one device (I<-a> "
24813 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
24814 "option) or use the I<-i> inspection option.  How this works is better "
24815 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
24816 "below."
24817 msgstr ""
24818
24819 # type: textblock
24820 #: ../fuse/guestmount.pod:33
24821 msgid ""
24822 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
24823 "by you, and the filesystem will not be visible to any other users unless you "
24824 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
24825 "the filesystem, use the C<fusermount -u> command."
24826 msgstr ""
24827
24828 # type: textblock
24829 #: ../fuse/guestmount.pod:41
24830 msgid ""
24831 "For a typical Windows guest which has its main filesystem on the first "
24832 "partition:"
24833 msgstr ""
24834
24835 # type: verbatim
24836 #: ../fuse/guestmount.pod:44
24837 #, no-wrap
24838 msgid ""
24839 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
24840 "\n"
24841 msgstr ""
24842
24843 # type: textblock
24844 #: ../fuse/guestmount.pod:46
24845 msgid ""
24846 "For a typical Linux guest which has a /boot filesystem on the first "
24847 "partition, and the root filesystem on a logical volume:"
24848 msgstr ""
24849
24850 # type: verbatim
24851 #: ../fuse/guestmount.pod:49
24852 #, no-wrap
24853 msgid ""
24854 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
24855 "\n"
24856 msgstr ""
24857
24858 # type: textblock
24859 #: ../fuse/guestmount.pod:51
24860 msgid "To get libguestfs to detect guest mountpoints for you:"
24861 msgstr ""
24862
24863 # type: verbatim
24864 #: ../fuse/guestmount.pod:53
24865 #, no-wrap
24866 msgid ""
24867 " guestmount -a guest.img -i --ro /mnt\n"
24868 "\n"
24869 msgstr ""
24870
24871 # type: textblock
24872 #: ../fuse/guestmount.pod:55
24873 msgid "For a libvirt guest called \"Guest\" you could do:"
24874 msgstr ""
24875
24876 # type: verbatim
24877 #: ../fuse/guestmount.pod:57
24878 #, no-wrap
24879 msgid ""
24880 " guestmount -d Guest -i --ro /mnt\n"
24881 "\n"
24882 msgstr ""
24883
24884 # type: textblock
24885 #: ../fuse/guestmount.pod:59
24886 msgid ""
24887 "If you don't know what filesystems are contained in a guest or disk image, "
24888 "use L<virt-list-filesystems(1)> first:"
24889 msgstr ""
24890
24891 # type: verbatim
24892 #: ../fuse/guestmount.pod:62
24893 #, no-wrap
24894 msgid ""
24895 " virt-list-filesystems MyGuest\n"
24896 "\n"
24897 msgstr ""
24898
24899 # type: textblock
24900 #: ../fuse/guestmount.pod:64
24901 msgid ""
24902 "If you want to trace the libguestfs calls but without excessive debugging "
24903 "information, we recommend:"
24904 msgstr ""
24905
24906 # type: verbatim
24907 #: ../fuse/guestmount.pod:67
24908 #, no-wrap
24909 msgid ""
24910 " guestmount [...] --trace /mnt\n"
24911 "\n"
24912 msgstr ""
24913
24914 # type: textblock
24915 #: ../fuse/guestmount.pod:69
24916 msgid "If you want to debug the program, we recommend:"
24917 msgstr ""
24918
24919 # type: verbatim
24920 #: ../fuse/guestmount.pod:71
24921 #, no-wrap
24922 msgid ""
24923 " guestmount [...] --trace --verbose /mnt\n"
24924 "\n"
24925 msgstr ""
24926
24927 # type: textblock
24928 #: ../fuse/guestmount.pod:79
24929 msgid "Add a block device or virtual machine image."
24930 msgstr ""
24931
24932 # type: =item
24933 #: ../fuse/guestmount.pod:96
24934 msgid "B<--dir-cache-timeout N>"
24935 msgstr ""
24936
24937 # type: textblock
24938 #: ../fuse/guestmount.pod:98
24939 msgid ""
24940 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
24941 "seconds.  The readdir cache [actually, there are several semi-independent "
24942 "caches] is populated after a readdir(2) call with the stat and extended "
24943 "attributes of the files in the directory, in anticipation that they will be "
24944 "requested soon after."
24945 msgstr ""
24946
24947 # type: textblock
24948 #: ../fuse/guestmount.pod:104
24949 msgid ""
24950 "There is also a different attribute cache implemented by FUSE (see the FUSE "
24951 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
24952 "requests, only cache existing ones."
24953 msgstr ""
24954
24955 # type: textblock
24956 #: ../fuse/guestmount.pod:122
24957 msgid ""
24958 "If you have untrusted raw-format guest disk images, you should use this "
24959 "option to specify the disk format.  This avoids a possible security problem "
24960 "with malicious guests (CVE-2010-3851).  See also "
24961 "L<guestfs(3)/guestfs_add_drive_opts>."
24962 msgstr ""
24963
24964 # type: =item
24965 #: ../fuse/guestmount.pod:127
24966 msgid "B<--fuse-help>"
24967 msgstr ""
24968
24969 # type: textblock
24970 #: ../fuse/guestmount.pod:129
24971 msgid "Display help on special FUSE options (see I<-o> below)."
24972 msgstr ""
24973
24974 # type: textblock
24975 #: ../fuse/guestmount.pod:133
24976 msgid "Display brief help and exit."
24977 msgstr ""
24978
24979 # type: =item
24980 #: ../fuse/guestmount.pod:146
24981 msgid "B<-m dev[:mnt]> | B<--mount dev[:mnt]>"
24982 msgstr ""
24983
24984 # type: textblock
24985 #: ../fuse/guestmount.pod:148
24986 msgid ""
24987 "Mount the named partition or logical volume on the given mountpoint B<in the "
24988 "guest> (this has nothing to do with mountpoints in the host)."
24989 msgstr ""
24990
24991 # type: textblock
24992 #: ../fuse/guestmount.pod:151
24993 msgid ""
24994 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
24995 "something on C</>."
24996 msgstr ""
24997
24998 # type: textblock
24999 #: ../fuse/guestmount.pod:156
25000 msgid ""
25001 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
25002 "unmounted.  If you specify this option, then we don't attempt to sync the "
25003 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
25004 msgstr ""
25005
25006 # type: =item
25007 #: ../fuse/guestmount.pod:161
25008 msgid "B<-o option> | B<--option option>"
25009 msgstr ""
25010
25011 # type: textblock
25012 #: ../fuse/guestmount.pod:163
25013 msgid "Pass extra options to FUSE."
25014 msgstr ""
25015
25016 # type: textblock
25017 #: ../fuse/guestmount.pod:165
25018 msgid ""
25019 "To get a list of all the extra options supported by FUSE, use the command "
25020 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
25021 "of them are a good idea."
25022 msgstr ""
25023
25024 # type: verbatim
25025 #: ../fuse/guestmount.pod:169
25026 #, no-wrap
25027 msgid ""
25028 " guestmount --fuse-help\n"
25029 "\n"
25030 msgstr ""
25031
25032 # type: textblock
25033 #: ../fuse/guestmount.pod:171
25034 msgid "Some potentially useful FUSE options:"
25035 msgstr ""
25036
25037 # type: =item
25038 #: ../fuse/guestmount.pod:175
25039 msgid "B<-o allow_other>"
25040 msgstr ""
25041
25042 # type: textblock
25043 #: ../fuse/guestmount.pod:177
25044 msgid "Allow other users to see the filesystem."
25045 msgstr ""
25046
25047 # type: =item
25048 #: ../fuse/guestmount.pod:179
25049 msgid "B<-o attr_timeout=N>"
25050 msgstr ""
25051
25052 # type: textblock
25053 #: ../fuse/guestmount.pod:181
25054 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
25055 msgstr ""
25056
25057 # type: =item
25058 #: ../fuse/guestmount.pod:183
25059 msgid "B<-o kernel_cache>"
25060 msgstr ""
25061
25062 # type: textblock
25063 #: ../fuse/guestmount.pod:185
25064 msgid ""
25065 "Allow the kernel to cache files (reduces the number of reads that have to go "
25066 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
25067 "afford the extra memory usage."
25068 msgstr ""
25069
25070 # type: =item
25071 #: ../fuse/guestmount.pod:189
25072 msgid "B<-o uid=N> B<-o gid=N>"
25073 msgstr ""
25074
25075 # type: textblock
25076 #: ../fuse/guestmount.pod:191
25077 msgid ""
25078 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
25079 "the chosen values."
25080 msgstr ""
25081
25082 # type: textblock
25083 #: ../fuse/guestmount.pod:198
25084 msgid ""
25085 "Add devices and mount everything read-only.  Also disallow writes and make "
25086 "the disk appear read-only to FUSE."
25087 msgstr ""
25088
25089 # type: textblock
25090 #: ../fuse/guestmount.pod:201
25091 msgid ""
25092 "This is highly recommended if you are not going to edit the guest disk.  If "
25093 "the guest is running and this option is I<not> supplied, then there is a "
25094 "strong risk of disk corruption in the guest.  We try to prevent this from "
25095 "happening, but it is not always possible."
25096 msgstr ""
25097
25098 # type: textblock
25099 #: ../fuse/guestmount.pod:206
25100 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
25101 msgstr ""
25102
25103 # type: textblock
25104 #: ../fuse/guestmount.pod:210
25105 msgid "Enable SELinux support for the guest."
25106 msgstr ""
25107
25108 # type: textblock
25109 #: ../fuse/guestmount.pod:214
25110 msgid "Enable verbose messages from underlying libguestfs."
25111 msgstr ""
25112
25113 # type: textblock
25114 #: ../fuse/guestmount.pod:218
25115 msgid "Display the program version and exit."
25116 msgstr ""
25117
25118 # type: textblock
25119 #: ../fuse/guestmount.pod:222
25120 msgid ""
25121 "This option does nothing at the moment.  See L<guestfish(1)/OPENING DISKS "
25122 "FOR READ AND WRITE>."
25123 msgstr ""
25124
25125 # type: =item
25126 #: ../fuse/guestmount.pod:225
25127 msgid "B<-x> | B<--trace>"
25128 msgstr ""
25129
25130 # type: textblock
25131 #: ../fuse/guestmount.pod:227
25132 msgid "Trace libguestfs calls."
25133 msgstr ""
25134
25135 # type: textblock
25136 #: ../fuse/guestmount.pod:229
25137 msgid "This also stops the daemon from forking into the background."
25138 msgstr ""
25139
25140 # type: textblock
25141 #: ../fuse/guestmount.pod:235
25142 msgid ""
25143 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
25144 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, "
25145 "L<http://fuse.sf.net/>."
25146 msgstr ""
25147
25148 # type: textblock
25149 #: ../inspector/virt-inspector.pl:35
25150 msgid ""
25151 "virt-inspector - Display operating system version and other information "
25152 "about a virtual machine"
25153 msgstr ""
25154
25155 # type: verbatim
25156 #: ../inspector/virt-inspector.pl:39
25157 #, no-wrap
25158 msgid ""
25159 " virt-inspector [--connect URI] domname\n"
25160 "\n"
25161 msgstr ""
25162
25163 # type: verbatim
25164 #: ../inspector/virt-inspector.pl:41
25165 #, no-wrap
25166 msgid ""
25167 " virt-inspector guest.img [guest.img ...]\n"
25168 "\n"
25169 msgstr ""
25170
25171 # type: textblock
25172 #: ../inspector/virt-inspector.pl:45
25173 msgid ""
25174 "B<virt-inspector> examines a virtual machine or disk image and tries to "
25175 "determine the version of the operating system and other information about "
25176 "the virtual machine."
25177 msgstr ""
25178
25179 # type: textblock
25180 #: ../inspector/virt-inspector.pl:49
25181 msgid "Virt-inspector produces XML output for feeding into other programs."
25182 msgstr ""
25183
25184 # type: textblock
25185 #: ../inspector/virt-inspector.pl:51
25186 msgid ""
25187 "In the normal usage, use C<virt-inspector domname> where C<domname> is the "
25188 "libvirt domain (see: C<virsh list --all>)."
25189 msgstr ""
25190
25191 # type: textblock
25192 #: ../inspector/virt-inspector.pl:54
25193 msgid ""
25194 "You can also run virt-inspector directly on disk images from a single "
25195 "virtual machine.  Use C<virt-inspector guest.img>.  In rare cases a domain "
25196 "has several block devices, in which case you should list them one after "
25197 "another, with the first corresponding to the guest's C</dev/sda>, the second "
25198 "to the guest's C</dev/sdb> and so on."
25199 msgstr ""
25200
25201 # type: textblock
25202 #: ../inspector/virt-inspector.pl:60
25203 msgid ""
25204 "Virt-inspector can only inspect and report upon I<one domain at a time>.  To "
25205 "inspect several virtual machines, you have to run virt-inspector several "
25206 "times (for example, from a shell script for-loop)."
25207 msgstr ""
25208
25209 # type: textblock
25210 #: ../inspector/virt-inspector.pl:65
25211 msgid ""
25212 "Because virt-inspector needs direct access to guest images, it won't "
25213 "normally work over remote libvirt connections."
25214 msgstr ""
25215
25216 # type: textblock
25217 #: ../inspector/virt-inspector.pl:78 ../tools/virt-edit.pl:82 ../tools/virt-win-reg.pl:181 ../tools/virt-df.pl:81 ../tools/virt-ls.pl:88 ../tools/virt-list-filesystems.pl:60 ../tools/virt-tar.pl:108 ../tools/virt-rescue.pl:113 ../tools/virt-make-fs.pl:163 ../tools/virt-list-partitions.pl:61
25218 msgid "Display brief help."
25219 msgstr ""
25220
25221 # type: =item
25222 #: ../inspector/virt-inspector.pl:84 ../tools/virt-edit.pl:88 ../tools/virt-win-reg.pl:187 ../tools/virt-df.pl:87 ../tools/virt-ls.pl:94 ../tools/virt-resize.pl:273 ../tools/virt-list-filesystems.pl:66 ../tools/virt-tar.pl:114 ../tools/virt-rescue.pl:119 ../tools/virt-make-fs.pl:169 ../tools/virt-list-partitions.pl:67
25223 msgid "B<--version>"
25224 msgstr ""
25225
25226 # type: textblock
25227 #: ../inspector/virt-inspector.pl:86 ../tools/virt-edit.pl:90 ../tools/virt-win-reg.pl:189 ../tools/virt-df.pl:89 ../tools/virt-ls.pl:96 ../tools/virt-resize.pl:275 ../tools/virt-list-filesystems.pl:68 ../tools/virt-tar.pl:116 ../tools/virt-rescue.pl:121 ../tools/virt-make-fs.pl:171 ../tools/virt-list-partitions.pl:69
25228 msgid "Display version number and exit."
25229 msgstr ""
25230
25231 # type: =item
25232 #: ../inspector/virt-inspector.pl:92 ../tools/virt-edit.pl:112 ../tools/virt-win-reg.pl:203 ../tools/virt-df.pl:95 ../tools/virt-ls.pl:102 ../tools/virt-list-filesystems.pl:74 ../tools/virt-tar.pl:122 ../tools/virt-rescue.pl:135 ../tools/virt-list-partitions.pl:75
25233 msgid "B<--connect URI> | B<-c URI>"
25234 msgstr ""
25235
25236 # type: textblock
25237 #: ../inspector/virt-inspector.pl:94 ../tools/virt-edit.pl:114 ../tools/virt-win-reg.pl:205 ../tools/virt-df.pl:97 ../tools/virt-ls.pl:104 ../tools/virt-list-filesystems.pl:76 ../tools/virt-tar.pl:124 ../tools/virt-rescue.pl:137 ../tools/virt-list-partitions.pl:77
25238 msgid ""
25239 "If using libvirt, connect to the given I<URI>.  If omitted, then we connect "
25240 "to the default libvirt hypervisor."
25241 msgstr ""
25242
25243 # type: textblock
25244 #: ../inspector/virt-inspector.pl:97
25245 msgid ""
25246 "Libvirt is only used if you specify a C<domname> on the command line.  If "
25247 "you specify guest block devices directly, then libvirt is not used at all."
25248 msgstr ""
25249
25250 # type: =item
25251 #: ../inspector/virt-inspector.pl:105 ../tools/virt-edit.pl:124 ../tools/virt-win-reg.pl:215 ../tools/virt-df.pl:117 ../tools/virt-ls.pl:114 ../tools/virt-resize.pl:523 ../tools/virt-list-filesystems.pl:86 ../tools/virt-tar.pl:134 ../tools/virt-rescue.pl:147 ../tools/virt-list-partitions.pl:87
25252 msgid "B<--format> raw"
25253 msgstr ""
25254
25255 # type: textblock
25256 #: ../inspector/virt-inspector.pl:107 ../tools/virt-edit.pl:126 ../tools/virt-win-reg.pl:217 ../tools/virt-df.pl:119 ../tools/virt-ls.pl:116 ../tools/virt-list-filesystems.pl:88 ../tools/virt-tar.pl:136 ../tools/virt-rescue.pl:149 ../tools/virt-list-partitions.pl:89
25257 msgid ""
25258 "Specify the format of disk images given on the command line.  If this is "
25259 "omitted then the format is autodetected from the content of the disk image."
25260 msgstr ""
25261
25262 # type: textblock
25263 #: ../inspector/virt-inspector.pl:111 ../tools/virt-edit.pl:130 ../tools/virt-win-reg.pl:221 ../tools/virt-df.pl:123 ../tools/virt-ls.pl:120 ../tools/virt-list-filesystems.pl:92 ../tools/virt-tar.pl:140 ../tools/virt-rescue.pl:153 ../tools/virt-list-partitions.pl:93
25264 msgid ""
25265 "If disk images are requested from libvirt, then this program asks libvirt "
25266 "for this information.  In this case, the value of the format parameter is "
25267 "ignored."
25268 msgstr ""
25269
25270 # type: textblock
25271 #: ../inspector/virt-inspector.pl:115 ../tools/virt-edit.pl:134 ../tools/virt-win-reg.pl:225 ../tools/virt-df.pl:127 ../tools/virt-ls.pl:124 ../tools/virt-resize.pl:528 ../tools/virt-resize.pl:543 ../tools/virt-list-filesystems.pl:96 ../tools/virt-tar.pl:144 ../tools/virt-rescue.pl:157 ../tools/virt-list-partitions.pl:97
25272 msgid ""
25273 "If working with untrusted raw-format guest disk images, you should ensure "
25274 "the format is always specified."
25275 msgstr ""
25276
25277 # type: =head1
25278 #: ../inspector/virt-inspector.pl:149
25279 msgid "XML FORMAT"
25280 msgstr ""
25281
25282 # type: textblock
25283 #: ../inspector/virt-inspector.pl:151
25284 msgid ""
25285 "The virt-inspector XML is described precisely in a RELAX NG schema which is "
25286 "supplied with libguestfs.  This section is just an overview."
25287 msgstr ""
25288
25289 # type: textblock
25290 #: ../inspector/virt-inspector.pl:154
25291 msgid ""
25292 "The top-level element is E<lt>operatingsystemsE<gt>, and it contains one or "
25293 "more E<lt>operatingsystemE<gt> elements.  You would only see more than one "
25294 "E<lt>operatingsystemE<gt> element if the virtual machine is multi-boot, "
25295 "which is vanishingly rare in real world VMs."
25296 msgstr ""
25297
25298 # type: =head2
25299 #: ../inspector/virt-inspector.pl:159
25300 msgid "E<lt>operatingsystemE<gt>"
25301 msgstr ""
25302
25303 # type: textblock
25304 #: ../inspector/virt-inspector.pl:161
25305 msgid ""
25306 "In the E<lt>operatingsystemE<gt> tag are various optional fields that "
25307 "describe the operating system, its architecture, the descriptive \"product "
25308 "name\" string, the type of OS and so on, as in this example:"
25309 msgstr ""
25310
25311 # type: verbatim
25312 #: ../inspector/virt-inspector.pl:165
25313 #, no-wrap
25314 msgid ""
25315 " <operatingsystems>\n"
25316 "   <operatingsystem>\n"
25317 "     <root>/dev/sda2</root>\n"
25318 "     <name>windows</name>\n"
25319 "     <arch>i386</arch>\n"
25320 "     <distro>windows</distro>\n"
25321 "     <product_name>Windows 7 Enterprise</product_name>\n"
25322 "     <major_version>6</major_version>\n"
25323 "     <minor_version>1</minor_version>\n"
25324 "     <windows_systemroot>/Windows</windows_systemroot>\n"
25325 "\n"
25326 msgstr ""
25327
25328 # type: textblock
25329 #: ../inspector/virt-inspector.pl:176
25330 msgid ""
25331 "These fields are derived from the libguestfs inspection API, and you can "
25332 "find more details in L<guestfs(3)/INSPECTION>."
25333 msgstr ""
25334
25335 # type: textblock
25336 #: ../inspector/virt-inspector.pl:179
25337 msgid ""
25338 "The E<lt>rootE<gt> element is the root filesystem device, but from the point "
25339 "of view of libguestfs (block devices may have completely different names "
25340 "inside the VM itself)."
25341 msgstr ""
25342
25343 # type: =head2
25344 #: ../inspector/virt-inspector.pl:240
25345 msgid "E<lt>mountpointsE<gt>"
25346 msgstr ""
25347
25348 # type: textblock
25349 #: ../inspector/virt-inspector.pl:242
25350 msgid ""
25351 "Un*x-like guests typically have multiple filesystems which are mounted at "
25352 "various mountpoints, and these are described in the E<lt>mountpointsE<gt> "
25353 "element which looks like this:"
25354 msgstr ""
25355
25356 # type: verbatim
25357 #: ../inspector/virt-inspector.pl:246
25358 #, no-wrap
25359 msgid ""
25360 " <operatingsystems>\n"
25361 "   <operatingsystem>\n"
25362 "     ...\n"
25363 "     <mountpoints>\n"
25364 "       <mountpoint dev=\"/dev/vg_f13x64/lv_root\">/</mountpoint>\n"
25365 "       <mountpoint dev=\"/dev/sda1\">/boot</mountpoint>\n"
25366 "     </mountpoints>\n"
25367 "\n"
25368 msgstr ""
25369
25370 # type: textblock
25371 #: ../inspector/virt-inspector.pl:254
25372 msgid ""
25373 "As with E<lt>rootE<gt>, devices are from the point of view of libguestfs, "
25374 "and may have completely different names inside the guest.  Only mountable "
25375 "filesystems appear in this list, not things like swap devices."
25376 msgstr ""
25377
25378 # type: =head2
25379 #: ../inspector/virt-inspector.pl:276
25380 msgid "E<lt>filesystemsE<gt>"
25381 msgstr ""
25382
25383 # type: textblock
25384 #: ../inspector/virt-inspector.pl:278
25385 msgid ""
25386 "E<lt>filesystemsE<gt> is like E<lt>mountpointsE<gt> but covers I<all> "
25387 "filesystems belonging to the guest, including swap and empty partitions.  "
25388 "(In the rare case of a multi-boot guest, it covers filesystems belonging to "
25389 "this OS or shared by this OS and other OSes)."
25390 msgstr ""
25391
25392 # type: textblock
25393 #: ../inspector/virt-inspector.pl:283
25394 msgid "You might see something like this:"
25395 msgstr ""
25396
25397 # type: verbatim
25398 #: ../inspector/virt-inspector.pl:285
25399 #, no-wrap
25400 msgid ""
25401 " <operatingsystems>\n"
25402 "   <operatingsystem>\n"
25403 "     ...\n"
25404 "     <filesystems>\n"
25405 "       <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
25406 "         <type>ext4</type>\n"
25407 "         <label>Fedora-13-x86_64</label>\n"
25408 "         <uuid>e6a4db1e-15c2-477b-ac2a-699181c396aa</uuid>\n"
25409 "       </filesystem>\n"
25410 "\n"
25411 msgstr ""
25412
25413 # type: textblock
25414 #: ../inspector/virt-inspector.pl:295
25415 msgid ""
25416 "The optional elements within E<lt>filesystemE<gt> are the filesystem type, "
25417 "the label, and the UUID."
25418 msgstr ""
25419
25420 # type: =head2
25421 #: ../inspector/virt-inspector.pl:337
25422 msgid "E<lt>applicationsE<gt>"
25423 msgstr ""
25424
25425 # type: textblock
25426 #: ../inspector/virt-inspector.pl:339
25427 msgid ""
25428 "The related elements E<lt>package_formatE<gt>, E<lt>package_managementE<gt> "
25429 "and E<lt>applicationsE<gt> describe applications installed in the virtual "
25430 "machine.  At the moment we are only able to list RPMs and Debian packages "
25431 "installed, but in future we will support other Linux distros and Windows."
25432 msgstr ""
25433
25434 # type: textblock
25435 #: ../inspector/virt-inspector.pl:345
25436 msgid ""
25437 "E<lt>package_formatE<gt>, if present, describes the packaging system used.  "
25438 "Typical values would be C<rpm> and C<deb>."
25439 msgstr ""
25440
25441 # type: textblock
25442 #: ../inspector/virt-inspector.pl:348
25443 msgid ""
25444 "E<lt>package_managementE<gt>, if present, describes the package manager.  "
25445 "Typical values include C<yum>, C<up2date> and C<apt>"
25446 msgstr ""
25447
25448 # type: textblock
25449 #: ../inspector/virt-inspector.pl:351
25450 msgid "E<lt>applicationsE<gt> lists the packages or applications installed."
25451 msgstr ""
25452
25453 # type: verbatim
25454 #: ../inspector/virt-inspector.pl:354
25455 #, no-wrap
25456 msgid ""
25457 " <operatingsystems>\n"
25458 "   <operatingsystem>\n"
25459 "     ...\n"
25460 "     <applications>\n"
25461 "       <application>\n"
25462 "         <name>coreutils</name>\n"
25463 "         <version>8.5</version>\n"
25464 "         <release>1</release>\n"
25465 "       </application>\n"
25466 "\n"
25467 msgstr ""
25468
25469 # type: textblock
25470 #: ../inspector/virt-inspector.pl:364
25471 msgid ""
25472 "(The version and release fields may not be available for some package "
25473 "types)."
25474 msgstr ""
25475
25476 # type: =head1
25477 #: ../inspector/virt-inspector.pl:510
25478 msgid "USING XPATH"
25479 msgstr ""
25480
25481 # type: textblock
25482 #: ../inspector/virt-inspector.pl:512
25483 msgid ""
25484 "You can use the XPath query language, and/or the xpath tool, in order to "
25485 "select parts of the XML."
25486 msgstr ""
25487
25488 # type: verbatim
25489 #: ../inspector/virt-inspector.pl:517
25490 #, no-wrap
25491 msgid ""
25492 " $ virt-inspector Guest | xpath //filesystems\n"
25493 " Found 1 nodes:\n"
25494 " -- NODE --\n"
25495 " <filesystems>\n"
25496 "      <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
25497 "        <type>ext4</type>\n"
25498 " [etc]\n"
25499 "\n"
25500 msgstr ""
25501
25502 # type: verbatim
25503 #: ../inspector/virt-inspector.pl:525
25504 #, no-wrap
25505 msgid ""
25506 " $ virt-inspector Guest | \\\n"
25507 "     xpath \"string(//filesystem[@dev='/dev/sda1']/type)\"\n"
25508 " Query didn't return a nodeset. Value: ext4\n"
25509 "\n"
25510 msgstr ""
25511
25512 # type: =head1
25513 #: ../inspector/virt-inspector.pl:529 ../tools/virt-edit.pl:343 ../tools/virt-win-reg.pl:141 ../tools/virt-win-reg.pl:477 ../tools/virt-df.pl:633 ../tools/virt-ls.pl:225 ../tools/virt-resize.pl:1479 ../tools/virt-list-filesystems.pl:179 ../tools/virt-tar.pl:274 ../tools/virt-rescue.pl:260 ../tools/virt-make-fs.pl:527 ../tools/virt-list-partitions.pl:247
25514 msgid "SHELL QUOTING"
25515 msgstr ""
25516
25517 # type: textblock
25518 #: ../inspector/virt-inspector.pl:531 ../tools/virt-edit.pl:345 ../tools/virt-win-reg.pl:479 ../tools/virt-df.pl:635 ../tools/virt-ls.pl:227 ../tools/virt-resize.pl:1481 ../tools/virt-list-filesystems.pl:181 ../tools/virt-tar.pl:276 ../tools/virt-rescue.pl:262 ../tools/virt-make-fs.pl:529 ../tools/virt-list-partitions.pl:249
25519 msgid ""
25520 "Libvirt guest names can contain arbitrary characters, some of which have "
25521 "meaning to the shell such as C<#> and space.  You may need to quote or "
25522 "escape these characters on the command line.  See the shell manual page "
25523 "L<sh(1)> for details."
25524 msgstr ""
25525
25526 # type: textblock
25527 #: ../inspector/virt-inspector.pl:538
25528 msgid ""
25529 "L<guestfs(3)>, L<guestfish(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
25530 "L<Sys::Virt(3)>, L<http://www.w3.org/TR/xpath/>, L<http://libguestfs.org/>."
25531 msgstr ""
25532
25533 # type: textblock
25534 #: ../inspector/virt-inspector.pl:552 ../tools/virt-edit.pl:364 ../tools/virt-win-reg.pl:512 ../tools/virt-df.pl:651 ../tools/virt-ls.pl:245 ../tools/virt-resize.pl:1510 ../tools/virt-list-filesystems.pl:200 ../tools/virt-tar.pl:294 ../tools/virt-rescue.pl:279 ../tools/virt-make-fs.pl:561 ../tools/virt-list-partitions.pl:267
25535 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
25536 msgstr ""
25537
25538 # type: textblock
25539 #: ../inspector/virt-inspector.pl:556
25540 msgid "Matthew Booth L<mbooth@redhat.com>"
25541 msgstr ""
25542
25543 # type: textblock
25544 #: ../inspector/virt-inspector.pl:562 ../tools/virt-win-reg.pl:516 ../tools/virt-resize.pl:1514 ../tools/virt-make-fs.pl:565
25545 msgid "Copyright (C) 2010 Red Hat Inc."
25546 msgstr ""
25547
25548 # type: textblock
25549 #: ../tools/virt-edit.pl:34
25550 msgid "virt-edit - Edit a file in a virtual machine"
25551 msgstr ""
25552
25553 # type: verbatim
25554 #: ../tools/virt-edit.pl:38
25555 #, no-wrap
25556 msgid ""
25557 " virt-edit [--options] domname file\n"
25558 "\n"
25559 msgstr ""
25560
25561 # type: verbatim
25562 #: ../tools/virt-edit.pl:40
25563 #, no-wrap
25564 msgid ""
25565 " virt-edit [--options] disk.img [disk.img ...] file\n"
25566 "\n"
25567 msgstr ""
25568
25569 # type: verbatim
25570 #: ../tools/virt-edit.pl:42
25571 #, no-wrap
25572 msgid ""
25573 " virt-edit [domname|disk.img] file -e 'expr'\n"
25574 "\n"
25575 msgstr ""
25576
25577 # type: textblock
25578 #: ../tools/virt-edit.pl:46
25579 msgid ""
25580 "You must I<not> use C<virt-edit> on live virtual machines.  If you do this, "
25581 "you risk disk corruption in the VM.  C<virt-edit> tries to stop you from "
25582 "doing this, but doesn't catch all cases."
25583 msgstr ""
25584
25585 # type: textblock
25586 #: ../tools/virt-edit.pl:52
25587 msgid ""
25588 "C<virt-edit> is a command line tool to edit C<file> where C<file> exists in "
25589 "the named virtual machine (or disk image)."
25590 msgstr ""
25591
25592 # type: textblock
25593 #: ../tools/virt-edit.pl:55
25594 msgid ""
25595 "If you want to just view a file, use L<virt-cat(1)>.  For more complex cases "
25596 "you should look at the L<guestfish(1)> tool."
25597 msgstr ""
25598
25599 # type: textblock
25600 #: ../tools/virt-edit.pl:60
25601 msgid "Edit the named files interactively:"
25602 msgstr ""
25603
25604 # type: verbatim
25605 #: ../tools/virt-edit.pl:62
25606 #, no-wrap
25607 msgid ""
25608 " virt-edit mydomain /boot/grub/grub.conf\n"
25609 "\n"
25610 msgstr ""
25611
25612 # type: verbatim
25613 #: ../tools/virt-edit.pl:64
25614 #, no-wrap
25615 msgid ""
25616 " virt-edit mydomain /etc/passwd\n"
25617 "\n"
25618 msgstr ""
25619
25620 # type: textblock
25621 #: ../tools/virt-edit.pl:66
25622 msgid ""
25623 "You can also edit files non-interactively (see L</NON-INTERACTIVE EDITING> "
25624 "below).  To change the init default level to 5:"
25625 msgstr ""
25626
25627 # type: verbatim
25628 #: ../tools/virt-edit.pl:70
25629 #, no-wrap
25630 msgid ""
25631 " virt-edit mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
25632 "\n"
25633 msgstr ""
25634
25635 # type: =item
25636 #: ../tools/virt-edit.pl:96
25637 msgid "B<--backup extension> | B<-b extension>"
25638 msgstr ""
25639
25640 # type: textblock
25641 #: ../tools/virt-edit.pl:98
25642 msgid ""
25643 "Create a backup of the original file I<in the guest disk image>.  The backup "
25644 "has the original filename with C<extension> added."
25645 msgstr ""
25646
25647 # type: textblock
25648 #: ../tools/virt-edit.pl:101
25649 msgid ""
25650 "Usually the first character of C<extension> would be a dot C<.> so you would "
25651 "write:"
25652 msgstr ""
25653
25654 # type: verbatim
25655 #: ../tools/virt-edit.pl:104
25656 #, no-wrap
25657 msgid ""
25658 " virt-edit -b .orig [etc]\n"
25659 "\n"
25660 msgstr ""
25661
25662 # type: textblock
25663 #: ../tools/virt-edit.pl:106
25664 msgid "By default, no backup file is made."
25665 msgstr ""
25666
25667 # type: textblock
25668 #: ../tools/virt-edit.pl:117 ../tools/virt-win-reg.pl:208 ../tools/virt-df.pl:100 ../tools/virt-ls.pl:107 ../tools/virt-list-filesystems.pl:79 ../tools/virt-tar.pl:127 ../tools/virt-rescue.pl:140 ../tools/virt-list-partitions.pl:80
25669 msgid ""
25670 "If you specify guest block devices directly, then libvirt is not used at "
25671 "all."
25672 msgstr ""
25673
25674 # type: =item
25675 #: ../tools/virt-edit.pl:141
25676 msgid "B<--expr EXPR> | B<-e EXPR>"
25677 msgstr ""
25678
25679 # type: textblock
25680 #: ../tools/virt-edit.pl:143
25681 msgid ""
25682 "Instead of launching the external editor, non-interactively apply the Perl "
25683 "expression C<EXPR> to each line in the file.  See L</NON-INTERACTIVE "
25684 "EDITING> below."
25685 msgstr ""
25686
25687 # type: textblock
25688 #: ../tools/virt-edit.pl:147
25689 msgid ""
25690 "Be careful to properly quote the expression to prevent it from being altered "
25691 "by the shell."
25692 msgstr ""
25693
25694 # type: =head1
25695 #: ../tools/virt-edit.pl:268
25696 msgid "NON-INTERACTIVE EDITING"
25697 msgstr ""
25698
25699 # type: textblock
25700 #: ../tools/virt-edit.pl:270
25701 msgid ""
25702 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
25703 "administrator can interactively edit the file."
25704 msgstr ""
25705
25706 # type: textblock
25707 #: ../tools/virt-edit.pl:273
25708 msgid ""
25709 "There are two ways also to use C<virt-edit> from scripts in order to make "
25710 "automated edits to files.  (Note that although you I<can> use C<virt-edit> "
25711 "like this, it's less error-prone to write scripts directly using the "
25712 "libguestfs API and Augeas for configuration file editing.)"
25713 msgstr ""
25714
25715 # type: textblock
25716 #: ../tools/virt-edit.pl:279
25717 msgid ""
25718 "The first method is to temporarily set C<$EDITOR> to any script or program "
25719 "you want to run.  The script is invoked as C<$EDITOR tmpfile> and it should "
25720 "update C<tmpfile> in place however it likes."
25721 msgstr ""
25722
25723 # type: textblock
25724 #: ../tools/virt-edit.pl:283
25725 msgid ""
25726 "The second method is to use the C<-e> parameter of C<virt-edit> to run a "
25727 "short Perl snippet in the style of L<sed(1)>.  For example to replace all "
25728 "instances of C<foo> with C<bar> in a file:"
25729 msgstr ""
25730
25731 # type: verbatim
25732 #: ../tools/virt-edit.pl:287
25733 #, no-wrap
25734 msgid ""
25735 " virt-edit domname filename -e 's/foo/bar/'\n"
25736 "\n"
25737 msgstr ""
25738
25739 # type: textblock
25740 #: ../tools/virt-edit.pl:289
25741 msgid ""
25742 "The full power of Perl regular expressions can be used (see L<perlre(1)>).  "
25743 "For example to delete root's password you could do:"
25744 msgstr ""
25745
25746 # type: verbatim
25747 #: ../tools/virt-edit.pl:292
25748 #, no-wrap
25749 msgid ""
25750 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
25751 "\n"
25752 msgstr ""
25753
25754 # type: textblock
25755 #: ../tools/virt-edit.pl:294
25756 msgid ""
25757 "What really happens is that the snippet is evaluated as a Perl expression "
25758 "for each line of the file.  The line, including the final C<\\n>, is passed "
25759 "in C<$_> and the expression should update C<$_> or leave it unchanged."
25760 msgstr ""
25761
25762 # type: textblock
25763 #: ../tools/virt-edit.pl:299
25764 msgid ""
25765 "To delete a line, set C<$_> to the empty string.  For example, to delete the "
25766 "C<apache> user account from the password file you can do:"
25767 msgstr ""
25768
25769 # type: verbatim
25770 #: ../tools/virt-edit.pl:302
25771 #, no-wrap
25772 msgid ""
25773 " virt-edit mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
25774 "\n"
25775 msgstr ""
25776
25777 # type: textblock
25778 #: ../tools/virt-edit.pl:304
25779 msgid ""
25780 "To insert a line, prepend or append it to C<$_>.  However appending lines to "
25781 "the end of the file is rather difficult this way since there is no concept "
25782 "of \"last line of the file\" - your expression just doesn't get called "
25783 "again.  You might want to use the first method (setting C<$EDITOR>) if you "
25784 "want to do this."
25785 msgstr ""
25786
25787 # type: textblock
25788 #: ../tools/virt-edit.pl:310
25789 msgid ""
25790 "The variable C<$lineno> contains the current line number.  As is "
25791 "traditional, the first line in the file is number C<1>."
25792 msgstr ""
25793
25794 # type: textblock
25795 #: ../tools/virt-edit.pl:313
25796 msgid ""
25797 "The return value from the expression is ignored, but the expression may call "
25798 "C<die> in order to abort the whole program, leaving the original file "
25799 "untouched."
25800 msgstr ""
25801
25802 # type: textblock
25803 #: ../tools/virt-edit.pl:317
25804 msgid ""
25805 "Remember when matching the end of a line that C<$_> may contain the final "
25806 "C<\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
25807 "newline then neither of these.  Thus to match or substitute some text at the "
25808 "end of a line, use this regular expression:"
25809 msgstr ""
25810
25811 # type: verbatim
25812 #: ../tools/virt-edit.pl:322
25813 #, no-wrap
25814 msgid ""
25815 " /some text(\\r?\\n)?$/\n"
25816 "\n"
25817 msgstr ""
25818
25819 # type: textblock
25820 #: ../tools/virt-edit.pl:324
25821 msgid ""
25822 "Alternately, use the perl C<chomp> function, being careful not to chomp "
25823 "C<$_> itself (since that would remove all newlines from the file):"
25824 msgstr ""
25825
25826 # type: verbatim
25827 #: ../tools/virt-edit.pl:328
25828 #, no-wrap
25829 msgid ""
25830 " my $m = $_; chomp $m; $m =~ /some text$/\n"
25831 "\n"
25832 msgstr ""
25833
25834 # type: =item
25835 #: ../tools/virt-edit.pl:334
25836 msgid "C<EDITOR>"
25837 msgstr ""
25838
25839 # type: textblock
25840 #: ../tools/virt-edit.pl:336
25841 msgid ""
25842 "If set, this string is used as the editor.  It may contain arguments, "
25843 "eg. C<\"emacs -nw\">"
25844 msgstr ""
25845
25846 # type: textblock
25847 #: ../tools/virt-edit.pl:339
25848 msgid "If not set, C<vi> is used."
25849 msgstr ""
25850
25851 # type: textblock
25852 #: ../tools/virt-edit.pl:352
25853 msgid ""
25854 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, "
25855 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>, "
25856 "L<perl(1)>, L<perlre(1)>."
25857 msgstr ""
25858
25859 # type: =head1
25860 #: ../tools/virt-edit.pl:362 ../tools/virt-win-reg.pl:510 ../tools/virt-df.pl:649 ../tools/virt-ls.pl:243 ../tools/virt-resize.pl:1508 ../tools/virt-list-filesystems.pl:198 ../tools/virt-tar.pl:292 ../tools/virt-rescue.pl:277 ../tools/virt-make-fs.pl:559 ../tools/virt-list-partitions.pl:265
25861 msgid "AUTHOR"
25862 msgstr ""
25863
25864 # type: textblock
25865 #: ../tools/virt-edit.pl:368 ../tools/virt-df.pl:655 ../tools/virt-rescue.pl:283 ../tools/virt-list-partitions.pl:271
25866 msgid "Copyright (C) 2009-2010 Red Hat Inc."
25867 msgstr ""
25868
25869 # type: textblock
25870 #: ../tools/virt-win-reg.pl:37
25871 msgid ""
25872 "virt-win-reg - Export and merge Windows Registry entries from a Windows "
25873 "guest"
25874 msgstr ""
25875
25876 # type: verbatim
25877 #: ../tools/virt-win-reg.pl:41
25878 #, no-wrap
25879 msgid ""
25880 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
25881 "\n"
25882 msgstr ""
25883
25884 # type: verbatim
25885 #: ../tools/virt-win-reg.pl:43
25886 #, no-wrap
25887 msgid ""
25888 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
25889 "\n"
25890 msgstr ""
25891
25892 # type: verbatim
25893 #: ../tools/virt-win-reg.pl:45
25894 #, no-wrap
25895 msgid ""
25896 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
25897 "\n"
25898 msgstr ""
25899
25900 # type: verbatim
25901 #: ../tools/virt-win-reg.pl:47
25902 #, no-wrap
25903 msgid ""
25904 " virt-win-reg --merge domname [input.reg ...]\n"
25905 "\n"
25906 msgstr ""
25907
25908 # type: verbatim
25909 #: ../tools/virt-win-reg.pl:49
25910 #, no-wrap
25911 msgid ""
25912 " virt-win-reg [--options] disk.img ... # instead of domname\n"
25913 "\n"
25914 msgstr ""
25915
25916 # type: textblock
25917 #: ../tools/virt-win-reg.pl:53
25918 msgid ""
25919 "You must I<not> use C<virt-win-reg> with the C<--merge> option on live "
25920 "virtual machines.  If you do this, you I<will> get irreversible disk "
25921 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
25922 "but doesn't catch all cases."
25923 msgstr ""
25924
25925 # type: textblock
25926 #: ../tools/virt-win-reg.pl:58
25927 msgid ""
25928 "Modifying the Windows Registry is an inherently risky operation.  The format "
25929 "is deliberately obscure and undocumented, and Registry changes can leave the "
25930 "system unbootable.  Therefore when using the C<--merge> option, make sure "
25931 "you have a reliable backup first."
25932 msgstr ""
25933
25934 # type: textblock
25935 #: ../tools/virt-win-reg.pl:65
25936 msgid ""
25937 "This program can export and merge Windows Registry entries from a Windows "
25938 "guest."
25939 msgstr ""
25940
25941 # type: textblock
25942 #: ../tools/virt-win-reg.pl:68
25943 msgid ""
25944 "The first parameter is the libvirt guest name or the raw disk image of a "
25945 "Windows guest."
25946 msgstr ""
25947
25948 # type: textblock
25949 #: ../tools/virt-win-reg.pl:71
25950 msgid ""
25951 "If C<--merge> is I<not> specified, then the chosen registry key is "
25952 "displayed/exported (recursively).  For example:"
25953 msgstr ""
25954
25955 # type: verbatim
25956 #: ../tools/virt-win-reg.pl:74
25957 #, no-wrap
25958 msgid ""
25959 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
25960 "\n"
25961 msgstr ""
25962
25963 # type: textblock
25964 #: ../tools/virt-win-reg.pl:76
25965 msgid "You can also display single values from within registry keys, for example:"
25966 msgstr ""
25967
25968 # type: verbatim
25969 #: ../tools/virt-win-reg.pl:79
25970 #, no-wrap
25971 msgid ""
25972 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
25973 " $ virt-win-reg Windows7 $cvkey ProductName\n"
25974 " Windows 7 Enterprise\n"
25975 "\n"
25976 msgstr ""
25977
25978 # type: textblock
25979 #: ../tools/virt-win-reg.pl:83
25980 msgid ""
25981 "With C<--merge>, you can merge a textual regedit file into the Windows "
25982 "Registry:"
25983 msgstr ""
25984
25985 # type: verbatim
25986 #: ../tools/virt-win-reg.pl:86
25987 #, no-wrap
25988 msgid ""
25989 " $ virt-win-reg --merge Windows7 changes.reg\n"
25990 "\n"
25991 msgstr ""
25992
25993 # type: =head2
25994 #: ../tools/virt-win-reg.pl:88
25995 msgid "SUPPORTED SYSTEMS"
25996 msgstr ""
25997
25998 # type: textblock
25999 #: ../tools/virt-win-reg.pl:90
26000 msgid ""
26001 "The program currently supports Windows NT-derived guests starting with "
26002 "Windows XP through to at least Windows 7."
26003 msgstr ""
26004
26005 # type: textblock
26006 #: ../tools/virt-win-reg.pl:93
26007 msgid ""
26008 "Registry support is done for C<HKEY_LOCAL_MACHINE\\SAM>, "
26009 "C<HKEY_LOCAL_MACHINE\\SECURITY>, C<HKEY_LOCAL_MACHINE\\SOFTWARE>, "
26010 "C<HKEY_LOCAL_MACHINE\\SYSTEM> and C<HKEY_USERS\\.DEFAULT>."
26011 msgstr ""
26012
26013 # type: textblock
26014 #: ../tools/virt-win-reg.pl:97
26015 msgid ""
26016 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
26017 "C<HKEY_USERS>."
26018 msgstr ""
26019
26020 # type: textblock
26021 #: ../tools/virt-win-reg.pl:100
26022 msgid ""
26023 "C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are B<not> supported at this "
26024 "time."
26025 msgstr ""
26026
26027 # type: =head2
26028 #: ../tools/virt-win-reg.pl:103
26029 msgid "NOTE"
26030 msgstr ""
26031
26032 # type: textblock
26033 #: ../tools/virt-win-reg.pl:105
26034 msgid ""
26035 "This program is only meant for simple access to the registry.  If you want "
26036 "to do complicated things with the registry, we suggest you download the "
26037 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
26038 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
26039 "L<hivexregedit(1)>."
26040 msgstr ""
26041
26042 # type: =head2
26043 #: ../tools/virt-win-reg.pl:111
26044 msgid "ENCODING"
26045 msgstr ""
26046
26047 # type: textblock
26048 #: ../tools/virt-win-reg.pl:113
26049 msgid ""
26050 "C<virt-win-reg> expects that regedit files have already been reencoded in "
26051 "the local encoding.  Usually on Linux hosts, this means UTF-8 with "
26052 "Unix-style line endings.  Since Windows regedit files are often in UTF-16LE "
26053 "with Windows-style line endings, you may need to reencode the whole file "
26054 "before or after processing."
26055 msgstr ""
26056
26057 # type: textblock
26058 #: ../tools/virt-win-reg.pl:119
26059 msgid ""
26060 "To reencode a file from Windows format to Linux (before processing it with "
26061 "the C<--merge> option), you would do something like this:"
26062 msgstr ""
26063
26064 # type: verbatim
26065 #: ../tools/virt-win-reg.pl:122
26066 #, no-wrap
26067 msgid ""
26068 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
26069 "\n"
26070 msgstr ""
26071
26072 # type: textblock
26073 #: ../tools/virt-win-reg.pl:124
26074 msgid ""
26075 "To go in the opposite direction, after exporting and before sending the file "
26076 "to a Windows user, do something like this:"
26077 msgstr ""
26078
26079 # type: verbatim
26080 #: ../tools/virt-win-reg.pl:127
26081 #, no-wrap
26082 msgid ""
26083 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
26084 "\n"
26085 msgstr ""
26086
26087 # type: textblock
26088 #: ../tools/virt-win-reg.pl:129
26089 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
26090 msgstr ""
26091
26092 # type: textblock
26093 #: ../tools/virt-win-reg.pl:131
26094 msgid ""
26095 "If you are unsure about the current encoding, use the L<file(1)> command.  "
26096 "Recent versions of Windows regedit.exe produce a UTF-16LE file with "
26097 "Windows-style (CRLF) line endings, like this:"
26098 msgstr ""
26099
26100 # type: verbatim
26101 #: ../tools/virt-win-reg.pl:135
26102 #, no-wrap
26103 msgid ""
26104 " $ file software.reg\n"
26105 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
26106 " with CRLF line terminators\n"
26107 "\n"
26108 msgstr ""
26109
26110 # type: textblock
26111 #: ../tools/virt-win-reg.pl:139
26112 msgid "This file would need conversion before you could C<--merge> it."
26113 msgstr ""
26114
26115 # type: textblock
26116 #: ../tools/virt-win-reg.pl:143
26117 msgid ""
26118 "Be careful when passing parameters containing C<\\> (backslash) in the "
26119 "shell.  Usually you will have to use 'single quotes' or double backslashes "
26120 "(but not both) to protect them from the shell."
26121 msgstr ""
26122
26123 # type: textblock
26124 #: ../tools/virt-win-reg.pl:147
26125 msgid "Paths and value names are case-insensitive."
26126 msgstr ""
26127
26128 # type: =head2
26129 #: ../tools/virt-win-reg.pl:149
26130 msgid "CurrentControlSet etc."
26131 msgstr ""
26132
26133 # type: textblock
26134 #: ../tools/virt-win-reg.pl:151
26135 msgid ""
26136 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
26137 "Registry at the level of the hive file, and therefore you cannot modify "
26138 "these."
26139 msgstr ""
26140
26141 # type: textblock
26142 #: ../tools/virt-win-reg.pl:155
26143 msgid ""
26144 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
26145 "circumstances it might refer to another control set.  The way to find out is "
26146 "to look at the C<HKLM\\SYSTEM\\Select> key:"
26147 msgstr ""
26148
26149 # type: verbatim
26150 #: ../tools/virt-win-reg.pl:159
26151 #, no-wrap
26152 msgid ""
26153 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
26154 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
26155 " \"Current\"=dword:00000001\n"
26156 " \"Default\"=dword:00000001\n"
26157 " \"Failed\"=dword:00000000\n"
26158 " \"LastKnownGood\"=dword:00000002\n"
26159 "\n"
26160 msgstr ""
26161
26162 # type: textblock
26163 #: ../tools/virt-win-reg.pl:166
26164 msgid "\"Current\" is the one which Windows will choose when it boots."
26165 msgstr ""
26166
26167 # type: textblock
26168 #: ../tools/virt-win-reg.pl:168
26169 msgid "Similarly, other C<Current...> keys in the path may need to be replaced."
26170 msgstr ""
26171
26172 # type: =item
26173 #: ../tools/virt-win-reg.pl:195 ../tools/virt-make-fs.pl:177
26174 msgid "B<--debug>"
26175 msgstr ""
26176
26177 # type: textblock
26178 #: ../tools/virt-win-reg.pl:197 ../tools/virt-resize.pl:501
26179 msgid "Enable debugging messages."
26180 msgstr ""
26181
26182 # type: =item
26183 #: ../tools/virt-win-reg.pl:232
26184 msgid "B<--merge>"
26185 msgstr ""
26186
26187 # type: textblock
26188 #: ../tools/virt-win-reg.pl:234
26189 msgid ""
26190 "In merge mode, this merges a textual regedit file into the Windows Registry "
26191 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
26192 "displays or exports Registry entries instead."
26193 msgstr ""
26194
26195 # type: textblock
26196 #: ../tools/virt-win-reg.pl:238
26197 msgid ""
26198 "Note that C<--merge> is I<unsafe> to use on live virtual machines, and will "
26199 "result in disk corruption.  However exporting (without this flag)  is always "
26200 "safe."
26201 msgstr ""
26202
26203 # type: =item
26204 #: ../tools/virt-win-reg.pl:246
26205 msgid "B<--encoding> UTF-16LE|ASCII"
26206 msgstr ""
26207
26208 # type: textblock
26209 #: ../tools/virt-win-reg.pl:248
26210 msgid ""
26211 "When merging (only), you may need to specify the encoding for strings to be "
26212 "used in the hive file.  This is explained in detail in "
26213 "L<Win::Hivex::Regedit(3)/ENCODING STRINGS>."
26214 msgstr ""
26215
26216 # type: textblock
26217 #: ../tools/virt-win-reg.pl:252
26218 msgid ""
26219 "The default is to use UTF-16LE, which should work with recent versions of "
26220 "Windows."
26221 msgstr ""
26222
26223 # type: textblock
26224 #: ../tools/virt-win-reg.pl:486
26225 msgid ""
26226 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, "
26227 "L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, "
26228 "L<Sys::Guestfs::Lib(3)>, L<Win::Hivex(3)>, L<Win::Hivex::Regedit(3)>, "
26229 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
26230 msgstr ""
26231
26232 # type: textblock
26233 #: ../tools/virt-win-reg.pl:501 ../tools/virt-make-fs.pl:550
26234 msgid ""
26235 "When reporting bugs, please enable debugging and capture the I<complete> "
26236 "output:"
26237 msgstr ""
26238
26239 # type: verbatim
26240 #: ../tools/virt-win-reg.pl:504
26241 #, no-wrap
26242 msgid ""
26243 " export LIBGUESTFS_DEBUG=1\n"
26244 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
26245 "\n"
26246 msgstr ""
26247
26248 # type: textblock
26249 #: ../tools/virt-win-reg.pl:507
26250 msgid ""
26251 "Attach /tmp/virt-win-reg.log to a new bug report at "
26252 "L<https://bugzilla.redhat.com/>"
26253 msgstr ""
26254
26255 # type: textblock
26256 #: ../tools/virt-df.pl:36
26257 msgid "virt-df - Display free space on virtual filesystems"
26258 msgstr ""
26259
26260 # type: verbatim
26261 #: ../tools/virt-df.pl:40
26262 #, no-wrap
26263 msgid ""
26264 " virt-df [--options]\n"
26265 "\n"
26266 msgstr ""
26267
26268 # type: verbatim
26269 #: ../tools/virt-df.pl:42
26270 #, no-wrap
26271 msgid ""
26272 " virt-df [--options] domname\n"
26273 "\n"
26274 msgstr ""
26275
26276 # type: verbatim
26277 #: ../tools/virt-df.pl:44
26278 #, no-wrap
26279 msgid ""
26280 " virt-df [--options] disk.img [disk.img ...]\n"
26281 "\n"
26282 msgstr ""
26283
26284 # type: textblock
26285 #: ../tools/virt-df.pl:48
26286 msgid ""
26287 "C<virt-df> is a command line tool to display free space on virtual machine "
26288 "filesystems.  Unlike other tools, it doesn't just display the amount of "
26289 "space allocated to a virtual machine, but can look inside the virtual "
26290 "machine to see how much space is really being used."
26291 msgstr ""
26292
26293 # type: textblock
26294 #: ../tools/virt-df.pl:53
26295 msgid ""
26296 "It is like the L<df(1)> command, but for virtual machines, except that it "
26297 "also works for Windows virtual machines."
26298 msgstr ""
26299
26300 # type: textblock
26301 #: ../tools/virt-df.pl:56
26302 msgid ""
26303 "If used without any arguments, C<virt-df> checks with libvirt to get a list "
26304 "of all active and inactive guests, and performs a C<df>-type operation on "
26305 "each one in turn, printing out the results."
26306 msgstr ""
26307
26308 # type: textblock
26309 #: ../tools/virt-df.pl:60
26310 msgid ""
26311 "If used with any argument(s), C<virt-df> performs a C<df>-type operation on "
26312 "either the single named libvirt domain, or on the disk image(s) listed on "
26313 "the command line (which must all belong to a single VM).  In this mode (with "
26314 "arguments), C<virt-df> will I<only work for a single guest>.  If you want to "
26315 "run on multiple guests, then you have to invoke C<virt-df> multiple times."
26316 msgstr ""
26317
26318 # type: textblock
26319 #: ../tools/virt-df.pl:67
26320 msgid ""
26321 "Use the C<--csv> option to get a format which can be easily parsed by other "
26322 "programs.  Other options are mostly similar to standard C<df> options.  See "
26323 "below for the complete list."
26324 msgstr ""
26325
26326 # type: =item
26327 #: ../tools/virt-df.pl:107
26328 msgid "B<--csv>"
26329 msgstr ""
26330
26331 # type: textblock
26332 #: ../tools/virt-df.pl:109
26333 msgid ""
26334 "Write out the results in CSV format (comma-separated values).  This format "
26335 "can be imported easily into databases and spreadsheets, but read L</NOTE "
26336 "ABOUT CSV FORMAT> below."
26337 msgstr ""
26338
26339 # type: =item
26340 #: ../tools/virt-df.pl:134
26341 msgid "B<--human-readable> | B<-h>"
26342 msgstr ""
26343
26344 # type: textblock
26345 #: ../tools/virt-df.pl:136
26346 msgid "Print sizes in human-readable format."
26347 msgstr ""
26348
26349 # type: textblock
26350 #: ../tools/virt-df.pl:138
26351 msgid "You are not allowed to use I<-h> and I<--csv> at the same time."
26352 msgstr ""
26353
26354 # type: =item
26355 #: ../tools/virt-df.pl:144
26356 msgid "B<--inodes> | B<-i>"
26357 msgstr ""
26358
26359 # type: textblock
26360 #: ../tools/virt-df.pl:146
26361 msgid "Print inodes instead of blocks."
26362 msgstr ""
26363
26364 # type: =item
26365 #: ../tools/virt-df.pl:152
26366 msgid "B<--one-per-guest>"
26367 msgstr ""
26368
26369 # type: textblock
26370 #: ../tools/virt-df.pl:154
26371 msgid ""
26372 "Run one libguestfs appliance per guest.  Normally C<virt-df> will add the "
26373 "disks from several guests to a single libguestfs appliance."
26374 msgstr ""
26375
26376 # type: textblock
26377 #: ../tools/virt-df.pl:157
26378 msgid "You might use this option in the following circumstances:"
26379 msgstr ""
26380
26381 # type: textblock
26382 #: ../tools/virt-df.pl:163
26383 msgid ""
26384 "If you think an untrusted guest might actively try to exploit the libguestfs "
26385 "appliance kernel, then this prevents one guest from interfering with the "
26386 "stats printed for another guest."
26387 msgstr ""
26388
26389 # type: textblock
26390 #: ../tools/virt-df.pl:169
26391 msgid ""
26392 "If the kernel has a bug which stops it from accessing a filesystem in one "
26393 "guest (see for example RHBZ#635373) then this allows libguestfs to continue "
26394 "and report stats for further guests."
26395 msgstr ""
26396
26397 # type: =item
26398 #: ../tools/virt-df.pl:180
26399 msgid "B<--uuid>"
26400 msgstr ""
26401
26402 # type: textblock
26403 #: ../tools/virt-df.pl:182
26404 msgid ""
26405 "Print UUIDs instead of names.  This is useful for following a guest even "
26406 "when the guest is migrated or renamed, or when two guests happen to have the "
26407 "same name."
26408 msgstr ""
26409
26410 # type: textblock
26411 #: ../tools/virt-df.pl:186
26412 msgid ""
26413 "Note that only domains that we fetch from libvirt come with UUIDs.  For disk "
26414 "images, we still print the disk image name even when this option is "
26415 "specified."
26416 msgstr ""
26417
26418 # type: =head1
26419 #: ../tools/virt-df.pl:609
26420 msgid "NOTE ABOUT CSV FORMAT"
26421 msgstr ""
26422
26423 # type: textblock
26424 #: ../tools/virt-df.pl:611
26425 msgid ""
26426 "Comma-separated values (CSV) is a deceptive format.  It I<seems> like it "
26427 "should be easy to parse, but it is definitely not easy to parse."
26428 msgstr ""
26429
26430 # type: textblock
26431 #: ../tools/virt-df.pl:614
26432 msgid ""
26433 "Myth: Just split fields at commas.  Reality: This does I<not> work "
26434 "reliably.  This example has two columns:"
26435 msgstr ""
26436
26437 # type: verbatim
26438 #: ../tools/virt-df.pl:617
26439 #, no-wrap
26440 msgid ""
26441 " \"foo,bar\",baz\n"
26442 "\n"
26443 msgstr ""
26444
26445 # type: textblock
26446 #: ../tools/virt-df.pl:619
26447 msgid ""
26448 "Myth: Read the file one line at a time.  Reality: This does I<not> work "
26449 "reliably.  This example has one row:"
26450 msgstr ""
26451
26452 # type: verbatim
26453 #: ../tools/virt-df.pl:622
26454 #, no-wrap
26455 msgid ""
26456 " \"foo\n"
26457 " bar\",baz\n"
26458 "\n"
26459 msgstr ""
26460
26461 # type: textblock
26462 #: ../tools/virt-df.pl:625
26463 msgid ""
26464 "For shell scripts, use C<csvtool> (L<http://merjis.com/developers/csv> also "
26465 "packaged in major Linux distributions)."
26466 msgstr ""
26467
26468 # type: textblock
26469 #: ../tools/virt-df.pl:628
26470 msgid ""
26471 "For other languages, use a CSV processing library (eg. C<Text::CSV> for Perl "
26472 "or Python's built-in csv library)."
26473 msgstr ""
26474
26475 # type: textblock
26476 #: ../tools/virt-df.pl:631
26477 msgid "Most spreadsheets and databases can import CSV directly."
26478 msgstr ""
26479
26480 # type: textblock
26481 #: ../tools/virt-df.pl:642
26482 msgid ""
26483 "L<guestfs(3)>, L<guestfish(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
26484 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
26485 msgstr ""
26486
26487 # type: textblock
26488 #: ../tools/virt-ls.pl:34
26489 msgid "virt-ls - List files in a virtual machine"
26490 msgstr ""
26491
26492 # type: verbatim
26493 #: ../tools/virt-ls.pl:38
26494 #, no-wrap
26495 msgid ""
26496 " virt-ls [--options] domname directory\n"
26497 "\n"
26498 msgstr ""
26499
26500 # type: verbatim
26501 #: ../tools/virt-ls.pl:40
26502 #, no-wrap
26503 msgid ""
26504 " virt-ls [--options] disk.img [disk.img ...] directory\n"
26505 "\n"
26506 msgstr ""
26507
26508 # type: textblock
26509 #: ../tools/virt-ls.pl:44
26510 msgid ""
26511 "C<virt-ls> is a command line tool to list the names of files in a directory "
26512 "inside a virtual machine or disk image."
26513 msgstr ""
26514
26515 # type: textblock
26516 #: ../tools/virt-ls.pl:47
26517 msgid ""
26518 "C<virt-ls> is just a simple wrapper around L<libguestfs(3)> functionality.  "
26519 "For more complex cases you should look at the L<guestfish(1)> tool."
26520 msgstr ""
26521
26522 # type: textblock
26523 #: ../tools/virt-ls.pl:51
26524 msgid ""
26525 "C<virt-ls> can be used in one of three modes: simple, long and recursive.  A "
26526 "simple listing is like the ordinary L<ls(1)> command:"
26527 msgstr ""
26528
26529 # type: verbatim
26530 #: ../tools/virt-ls.pl:54
26531 #, no-wrap
26532 msgid ""
26533 " $ virt-ls myguest /\n"
26534 " bin\n"
26535 " boot\n"
26536 " [etc.]\n"
26537 "\n"
26538 msgstr ""
26539
26540 # type: textblock
26541 #: ../tools/virt-ls.pl:59
26542 msgid "With the C<-l> (C<--long>) option, C<virt-ls> shows more detail:"
26543 msgstr ""
26544
26545 # type: verbatim
26546 #: ../tools/virt-ls.pl:61
26547 #, no-wrap
26548 msgid ""
26549 " $ virt-ls -l myguest /\n"
26550 " total 204\n"
26551 " dr-xr-xr-x.   2 root root   4096 2009-08-25 19:06 bin\n"
26552 " dr-xr-xr-x.   5 root root   3072 2009-08-25 19:06 boot\n"
26553 " [etc.]\n"
26554 "\n"
26555 msgstr ""
26556
26557 # type: textblock
26558 #: ../tools/virt-ls.pl:67
26559 msgid ""
26560 "With the C<-R> (C<--recursive>) option, C<virt-ls> lists the names of files "
26561 "and directories recursively:"
26562 msgstr ""
26563
26564 # type: verbatim
26565 #: ../tools/virt-ls.pl:70
26566 #, no-wrap
26567 msgid ""
26568 " $ virt-ls -R myguest /tmp\n"
26569 " foo\n"
26570 " foo/bar\n"
26571 " [etc.]\n"
26572 "\n"
26573 msgstr ""
26574
26575 # type: textblock
26576 #: ../tools/virt-ls.pl:75
26577 msgid ""
26578 "You I<cannot> combine these options.  To do more complicated things, use "
26579 "L<guestfish(1)>."
26580 msgstr ""
26581
26582 # type: =item
26583 #: ../tools/virt-ls.pl:131 ../tools/virt-list-filesystems.pl:103 ../tools/virt-list-partitions.pl:112
26584 msgid "B<-l> | B<--long>"
26585 msgstr ""
26586
26587 # type: =item
26588 #: ../tools/virt-ls.pl:133
26589 msgid "B<-R> | B<--recursive>"
26590 msgstr ""
26591
26592 # type: textblock
26593 #: ../tools/virt-ls.pl:135
26594 msgid ""
26595 "Select the mode.  With neither of these options, C<virt-ls> produces a "
26596 "simple, flat list of the files in the named directory."
26597 msgstr ""
26598
26599 # type: textblock
26600 #: ../tools/virt-ls.pl:138
26601 msgid ""
26602 "C<virt-ls -l> produces a \"long listing\", which shows more detail (just "
26603 "like the plain C<ls -l> command)."
26604 msgstr ""
26605
26606 # type: textblock
26607 #: ../tools/virt-ls.pl:141
26608 msgid ""
26609 "C<virt-ls -R> produces a recursive list of files starting at the named "
26610 "directory.  See the documentation for L<guestfs(3)/guestfs_find> for precise "
26611 "details."
26612 msgstr ""
26613
26614 # type: textblock
26615 #: ../tools/virt-ls.pl:145
26616 msgid "You cannot combine these options."
26617 msgstr ""
26618
26619 # type: textblock
26620 #: ../tools/virt-ls.pl:234
26621 msgid ""
26622 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, "
26623 "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
26624 "L<http://libguestfs.org/>."
26625 msgstr ""
26626
26627 # type: textblock
26628 #: ../tools/virt-ls.pl:249 ../tools/virt-list-filesystems.pl:204 ../tools/virt-tar.pl:298
26629 msgid "Copyright (C) 2009 Red Hat Inc."
26630 msgstr ""
26631
26632 # type: textblock
26633 #: ../tools/virt-resize.pl:42
26634 msgid "virt-resize - Resize a virtual machine disk"
26635 msgstr ""
26636
26637 # type: verbatim
26638 #: ../tools/virt-resize.pl:46
26639 #, no-wrap
26640 msgid ""
26641 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
26642 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
26643 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
26644 "\n"
26645 msgstr ""
26646
26647 # type: textblock
26648 #: ../tools/virt-resize.pl:52
26649 msgid ""
26650 "Virt-resize is a tool which can resize a virtual machine disk, making it "
26651 "larger or smaller overall, and resizing or deleting any partitions contained "
26652 "within."
26653 msgstr ""
26654
26655 # type: textblock
26656 #: ../tools/virt-resize.pl:56
26657 msgid ""
26658 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
26659 "not> be used on live virtual machines - for consistent results, shut the "
26660 "virtual machine down before resizing it."
26661 msgstr ""
26662
26663 # type: textblock
26664 #: ../tools/virt-resize.pl:60
26665 msgid ""
26666 "If you are not familiar with the associated tools: "
26667 "L<virt-list-partitions(1)>, L<virt-list-filesystems(1)> and L<virt-df(1)>, "
26668 "we recommend you go and read those manual pages first."
26669 msgstr ""
26670
26671 # type: textblock
26672 #: ../tools/virt-resize.pl:68
26673 msgid ""
26674 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
26675 "fill the extra 5GB of space."
26676 msgstr ""
26677
26678 # type: verbatim
26679 #: ../tools/virt-resize.pl:71
26680 #, no-wrap
26681 msgid ""
26682 " truncate -r olddisk newdisk; truncate -s +5G newdisk\n"
26683 " virt-list-partitions -lht olddisk\n"
26684 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
26685 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
26686 "\n"
26687 msgstr ""
26688
26689 # type: textblock
26690 #: ../tools/virt-resize.pl:76
26691 msgid ""
26692 "As above, but make the /boot partition 200MB bigger, while giving the "
26693 "remaining space to /dev/sda2:"
26694 msgstr ""
26695
26696 # type: verbatim
26697 #: ../tools/virt-resize.pl:79
26698 #, no-wrap
26699 msgid ""
26700 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 olddisk newdisk\n"
26701 "\n"
26702 msgstr ""
26703
26704 # type: textblock
26705 #: ../tools/virt-resize.pl:81
26706 msgid "As above, but the output format will be uncompressed qcow2:"
26707 msgstr ""
26708
26709 # type: verbatim
26710 #: ../tools/virt-resize.pl:83
26711 #, no-wrap
26712 msgid ""
26713 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
26714 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
26715 "\n"
26716 msgstr ""
26717
26718 # type: =head1
26719 #: ../tools/virt-resize.pl:86
26720 msgid "DETAILED USAGE"
26721 msgstr ""
26722
26723 # type: =head2
26724 #: ../tools/virt-resize.pl:88
26725 msgid "EXPANDING A VIRTUAL MACHINE DISK"
26726 msgstr ""
26727
26728 # type: =item
26729 #: ../tools/virt-resize.pl:92
26730 msgid "1. Shut down the virtual machine"
26731 msgstr ""
26732
26733 # type: =item
26734 #: ../tools/virt-resize.pl:94
26735 msgid "2. Locate input disk image"
26736 msgstr ""
26737
26738 # type: textblock
26739 #: ../tools/virt-resize.pl:96
26740 msgid ""
26741 "Locate the input disk image (ie. the file or device on the host containing "
26742 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
26743 "dumpxml> like this to find the disk image name:"
26744 msgstr ""
26745
26746 # type: verbatim
26747 #: ../tools/virt-resize.pl:100
26748 #, no-wrap
26749 msgid ""
26750 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
26751 " Found 1 nodes:\n"
26752 " -- NODE --\n"
26753 " <source dev=\"/dev/vg/lv_guest\" />\n"
26754 "\n"
26755 msgstr ""
26756
26757 # type: =item
26758 #: ../tools/virt-resize.pl:105
26759 msgid "3. Look at current sizing"
26760 msgstr ""
26761
26762 # type: textblock
26763 #: ../tools/virt-resize.pl:107
26764 msgid "Use L<virt-list-partitions(1)> to display the current partitions and sizes:"
26765 msgstr ""
26766
26767 # type: verbatim
26768 #: ../tools/virt-resize.pl:110
26769 #, no-wrap
26770 msgid ""
26771 " # virt-list-partitions -lht /dev/vg/lv_guest\n"
26772 " /dev/sda1 ext3 101.9M\n"
26773 " /dev/sda2 pv 7.9G\n"
26774 " /dev/sda device 8.0G\n"
26775 "\n"
26776 msgstr ""
26777
26778 # type: textblock
26779 #: ../tools/virt-resize.pl:115
26780 msgid ""
26781 "(This example is a virtual machine with an 8 GB disk which we would like to "
26782 "expand up to 10 GB)."
26783 msgstr ""
26784
26785 # type: =item
26786 #: ../tools/virt-resize.pl:118
26787 msgid "4. Create output disk"
26788 msgstr ""
26789
26790 # type: textblock
26791 #: ../tools/virt-resize.pl:120
26792 msgid ""
26793 "Virt-resize cannot do in-place disk modifications.  You have to have space "
26794 "to store the resized output disk."
26795 msgstr ""
26796
26797 # type: textblock
26798 #: ../tools/virt-resize.pl:123
26799 msgid "To store the resized disk image in a file, create a file of a suitable size:"
26800 msgstr ""
26801
26802 # type: verbatim
26803 #: ../tools/virt-resize.pl:126
26804 #, no-wrap
26805 msgid ""
26806 " # rm -f outdisk\n"
26807 " # truncate -s 10G outdisk\n"
26808 "\n"
26809 msgstr ""
26810
26811 # type: textblock
26812 #: ../tools/virt-resize.pl:129
26813 msgid "Or use L<lvcreate(1)> to create a logical volume:"
26814 msgstr ""
26815
26816 # type: verbatim
26817 #: ../tools/virt-resize.pl:131
26818 #, no-wrap
26819 msgid ""
26820 " # lvcreate -L 10G -n lv_name vg_name\n"
26821 "\n"
26822 msgstr ""
26823
26824 # type: textblock
26825 #: ../tools/virt-resize.pl:133
26826 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
26827 msgstr ""
26828
26829 # type: verbatim
26830 #: ../tools/virt-resize.pl:135
26831 #, no-wrap
26832 msgid ""
26833 " # virsh pool-list\n"
26834 " # virsh vol-create-as poolname newvol 10G\n"
26835 "\n"
26836 msgstr ""
26837
26838 # type: =item
26839 #: ../tools/virt-resize.pl:138
26840 msgid "5. Resize"
26841 msgstr ""
26842
26843 # type: textblock
26844 #: ../tools/virt-resize.pl:140
26845 msgid ""
26846 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
26847 "file) and the output disk.  The output disk is the one created in the "
26848 "previous step."
26849 msgstr ""
26850
26851 # type: verbatim
26852 #: ../tools/virt-resize.pl:144
26853 #, no-wrap
26854 msgid ""
26855 " # virt-resize indisk outdisk\n"
26856 "\n"
26857 msgstr ""
26858
26859 # type: textblock
26860 #: ../tools/virt-resize.pl:146
26861 msgid ""
26862 "This command just copies disk image C<indisk> to disk image C<outdisk> "
26863 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
26864 "larger, then an extra, empty partition is created at the end of the disk "
26865 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
26866 "error."
26867 msgstr ""
26868
26869 # type: textblock
26870 #: ../tools/virt-resize.pl:152
26871 msgid ""
26872 "More realistically you'd want to expand existing partitions in the disk "
26873 "image by passing extra options (for the full list see the L</OPTIONS> "
26874 "section below)."
26875 msgstr ""
26876
26877 # type: textblock
26878 #: ../tools/virt-resize.pl:156
26879 msgid ""
26880 "L</--expand> is the most useful option.  It expands the named partition "
26881 "within the disk to fill any extra space:"
26882 msgstr ""
26883
26884 # type: verbatim
26885 #: ../tools/virt-resize.pl:159
26886 #, no-wrap
26887 msgid ""
26888 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
26889 "\n"
26890 msgstr ""
26891
26892 # type: textblock
26893 #: ../tools/virt-resize.pl:161
26894 msgid ""
26895 "(In this case, an extra partition is I<not> created at the end of the disk, "
26896 "because there will be no unused space)."
26897 msgstr ""
26898
26899 # type: textblock
26900 #: ../tools/virt-resize.pl:164
26901 msgid ""
26902 "L</--resize> is the other commonly used option.  The following would "
26903 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
26904 "rest of the available space:"
26905 msgstr ""
26906
26907 # type: verbatim
26908 #: ../tools/virt-resize.pl:168
26909 #, no-wrap
26910 msgid ""
26911 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
26912 "     indisk outdisk\n"
26913 "\n"
26914 msgstr ""
26915
26916 # type: textblock
26917 #: ../tools/virt-resize.pl:171
26918 msgid ""
26919 "If the expanded partition in the image contains a filesystem or LVM PV, then "
26920 "if virt-resize knows how, it will resize the contents, the equivalent of "
26921 "calling a command such as L<pvresize(8)>, L<resize2fs(8)> or "
26922 "L<ntfsresize(8)>.  However virt-resize does not know how to resize some "
26923 "filesystems, so you would have to online resize them after booting the "
26924 "guest.  And virt-resize also does not resize anything inside an LVM PV, it "
26925 "just resizes the PV itself and leaves the user to resize any LVs inside that "
26926 "PV as desired."
26927 msgstr ""
26928
26929 # type: textblock
26930 #: ../tools/virt-resize.pl:180
26931 msgid "Other options are covered below."
26932 msgstr ""
26933
26934 # type: =item
26935 #: ../tools/virt-resize.pl:182
26936 msgid "6. Test"
26937 msgstr ""
26938
26939 # type: textblock
26940 #: ../tools/virt-resize.pl:184
26941 msgid "Thoroughly test the new disk image I<before> discarding the old one."
26942 msgstr ""
26943
26944 # type: textblock
26945 #: ../tools/virt-resize.pl:186
26946 msgid "If you are using libvirt, edit the XML to point at the new disk:"
26947 msgstr ""
26948
26949 # type: verbatim
26950 #: ../tools/virt-resize.pl:188
26951 #, no-wrap
26952 msgid ""
26953 " # virsh edit guestname\n"
26954 "\n"
26955 msgstr ""
26956
26957 # type: textblock
26958 #: ../tools/virt-resize.pl:190
26959 msgid ""
26960 "Change E<lt>source ...E<gt>, see "
26961 "L<http://libvirt.org/formatdomain.html#elementsDisks>"
26962 msgstr ""
26963
26964 # type: textblock
26965 #: ../tools/virt-resize.pl:193
26966 msgid "Then start up the domain with the new, resized disk:"
26967 msgstr ""
26968
26969 # type: verbatim
26970 #: ../tools/virt-resize.pl:195
26971 #, no-wrap
26972 msgid ""
26973 " # virsh start guestname\n"
26974 "\n"
26975 msgstr ""
26976
26977 # type: textblock
26978 #: ../tools/virt-resize.pl:197
26979 msgid ""
26980 "and check that it still works.  See also the L</NOTES> section below for "
26981 "additional information."
26982 msgstr ""
26983
26984 # type: =item
26985 #: ../tools/virt-resize.pl:200
26986 msgid "7. Resize LVs etc inside the guest"
26987 msgstr ""
26988
26989 # type: textblock
26990 #: ../tools/virt-resize.pl:202
26991 msgid "(This can also be done offline using L<guestfish(1)>)"
26992 msgstr ""
26993
26994 # type: textblock
26995 #: ../tools/virt-resize.pl:204
26996 msgid ""
26997 "Once the guest has booted you should see the new space available, at least "
26998 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
26999 "may need to resize LVs inside PVs, and also resize filesystem types that "
27000 "virt-resize does not know how to expand."
27001 msgstr ""
27002
27003 # type: =head2
27004 #: ../tools/virt-resize.pl:211
27005 msgid "SHRINKING A VIRTUAL MACHINE DISK"
27006 msgstr ""
27007
27008 # type: textblock
27009 #: ../tools/virt-resize.pl:213
27010 msgid ""
27011 "Shrinking is somewhat more complex than expanding, and only an overview is "
27012 "given here."
27013 msgstr ""
27014
27015 # type: textblock
27016 #: ../tools/virt-resize.pl:216
27017 msgid ""
27018 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
27019 "filesystems).  The user has to shrink content before passing the disk image "
27020 "to virt-resize, and virt-resize will check that the content has been shrunk "
27021 "properly."
27022 msgstr ""
27023
27024 # type: textblock
27025 #: ../tools/virt-resize.pl:221
27026 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
27027 msgstr ""
27028
27029 # type: textblock
27030 #: ../tools/virt-resize.pl:223
27031 msgid ""
27032 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
27033 "steps 3 and 4 above to allocate a new disk image."
27034 msgstr ""
27035
27036 # type: textblock
27037 #: ../tools/virt-resize.pl:226
27038 msgid "Then run virt-resize with any of the C<--shrink> and/or C<--resize> options."
27039 msgstr ""
27040
27041 # type: =head2
27042 #: ../tools/virt-resize.pl:229
27043 msgid "IGNORING OR DELETING PARTITIONS"
27044 msgstr ""
27045
27046 # type: textblock
27047 #: ../tools/virt-resize.pl:231
27048 msgid ""
27049 "virt-resize also gives a convenient way to ignore or delete partitions when "
27050 "copying from the input disk to the output disk.  Ignoring a partition speeds "
27051 "up the copy where you don't care about the existing contents of a "
27052 "partition.  Deleting a partition removes it completely, but note that it "
27053 "also renumbers any partitions after the one which is deleted, which can "
27054 "leave some guests unbootable."
27055 msgstr ""
27056
27057 # type: =head2
27058 #: ../tools/virt-resize.pl:238
27059 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
27060 msgstr ""
27061
27062 # type: textblock
27063 #: ../tools/virt-resize.pl:240
27064 msgid ""
27065 "If the input disk is in qcow2 format, then you may prefer that the output is "
27066 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
27067 "the fly.  The output format is simply determined by the format of the empty "
27068 "output container that you provide.  Thus to create qcow2 output, use:"
27069 msgstr ""
27070
27071 # type: verbatim
27072 #: ../tools/virt-resize.pl:246
27073 #, no-wrap
27074 msgid ""
27075 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
27076 "\n"
27077 msgstr ""
27078
27079 # type: textblock
27080 #: ../tools/virt-resize.pl:248
27081 msgid "instead of the truncate command (use C<-c> for a compressed disk)."
27082 msgstr ""
27083
27084 # type: textblock
27085 #: ../tools/virt-resize.pl:250
27086 msgid "Similarly, to get non-sparse raw output use:"
27087 msgstr ""
27088
27089 # type: verbatim
27090 #: ../tools/virt-resize.pl:252
27091 #, no-wrap
27092 msgid ""
27093 " fallocate -l size outdisk\n"
27094 "\n"
27095 msgstr ""
27096
27097 # type: textblock
27098 #: ../tools/virt-resize.pl:254
27099 msgid ""
27100 "(on older systems that don't have the L<fallocate(1)> command use C<dd "
27101 "if=/dev/zero of=outdisk bs=1M count=..>)"
27102 msgstr ""
27103
27104 # type: textblock
27105 #: ../tools/virt-resize.pl:267
27106 msgid "Display help."
27107 msgstr ""
27108
27109 # type: =item
27110 #: ../tools/virt-resize.pl:281
27111 msgid "B<--resize part=size>"
27112 msgstr ""
27113
27114 # type: textblock
27115 #: ../tools/virt-resize.pl:283
27116 msgid ""
27117 "Resize the named partition (expanding or shrinking it) so that it has the "
27118 "given size."
27119 msgstr ""
27120
27121 # type: textblock
27122 #: ../tools/virt-resize.pl:286
27123 msgid ""
27124 "C<size> can be expressed as an absolute number followed by b/K/M/G/T/P/E to "
27125 "mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Petabytes or "
27126 "Exabytes; or as a percentage of the current size; or as a relative number or "
27127 "percentage.  For example:"
27128 msgstr ""
27129
27130 # type: verbatim
27131 #: ../tools/virt-resize.pl:291
27132 #, no-wrap
27133 msgid ""
27134 " --resize /dev/sda2=10G\n"
27135 "\n"
27136 msgstr ""
27137
27138 # type: verbatim
27139 #: ../tools/virt-resize.pl:293
27140 #, no-wrap
27141 msgid ""
27142 " --resize /dev/sda4=90%\n"
27143 "\n"
27144 msgstr ""
27145
27146 # type: verbatim
27147 #: ../tools/virt-resize.pl:295
27148 #, no-wrap
27149 msgid ""
27150 " --resize /dev/sda2=+1G\n"
27151 "\n"
27152 msgstr ""
27153
27154 # type: verbatim
27155 #: ../tools/virt-resize.pl:297
27156 #, no-wrap
27157 msgid ""
27158 " --resize /dev/sda2=-200M\n"
27159 "\n"
27160 msgstr ""
27161
27162 # type: verbatim
27163 #: ../tools/virt-resize.pl:299
27164 #, no-wrap
27165 msgid ""
27166 " --resize /dev/sda1=+128K\n"
27167 "\n"
27168 msgstr ""
27169
27170 # type: verbatim
27171 #: ../tools/virt-resize.pl:301
27172 #, no-wrap
27173 msgid ""
27174 " --resize /dev/sda1=+10%\n"
27175 "\n"
27176 msgstr ""
27177
27178 # type: verbatim
27179 #: ../tools/virt-resize.pl:303
27180 #, no-wrap
27181 msgid ""
27182 " --resize /dev/sda1=-10%\n"
27183 "\n"
27184 msgstr ""
27185
27186 # type: textblock
27187 #: ../tools/virt-resize.pl:305
27188 msgid ""
27189 "You can increase the size of any partition.  Virt-resize will expand the "
27190 "direct content of the partition if it knows how (see C<--expand> below)."
27191 msgstr ""
27192
27193 # type: textblock
27194 #: ../tools/virt-resize.pl:309
27195 msgid ""
27196 "You can only I<decrease> the size of partitions that contain filesystems or "
27197 "PVs which have already been shrunk.  Virt-resize will check this has been "
27198 "done before proceeding, or else will print an error (see also "
27199 "C<--resize-force>)."
27200 msgstr ""
27201
27202 # type: textblock
27203 #: ../tools/virt-resize.pl:314 ../tools/virt-resize.pl:406 ../tools/virt-resize.pl:423
27204 msgid "You can give this option multiple times."
27205 msgstr ""
27206
27207 # type: =item
27208 #: ../tools/virt-resize.pl:320
27209 msgid "B<--resize-force part=size>"
27210 msgstr ""
27211
27212 # type: textblock
27213 #: ../tools/virt-resize.pl:322
27214 msgid ""
27215 "This is the same as C<--resize> except that it will let you decrease the "
27216 "size of any partition.  Generally this means you will lose any data which "
27217 "was at the end of the partition you shrink, but you may not care about that "
27218 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
27219 "as a swap partition)."
27220 msgstr ""
27221
27222 # type: textblock
27223 #: ../tools/virt-resize.pl:328
27224 msgid "See also the C<--ignore> option."
27225 msgstr ""
27226
27227 # type: =item
27228 #: ../tools/virt-resize.pl:334
27229 msgid "B<--expand part>"
27230 msgstr ""
27231
27232 # type: textblock
27233 #: ../tools/virt-resize.pl:336
27234 msgid ""
27235 "Expand the named partition so it uses up all extra space (space left over "
27236 "after any other resize changes that you request have been done)."
27237 msgstr ""
27238
27239 # type: textblock
27240 #: ../tools/virt-resize.pl:339
27241 msgid ""
27242 "If virt-resize knows how, it will expand the direct content of the "
27243 "partition.  For example, if the partition is an LVM PV, it will expand the "
27244 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
27245 "content it doesn't know about alone."
27246 msgstr ""
27247
27248 # type: textblock
27249 #: ../tools/virt-resize.pl:344
27250 msgid "Currently virt-resize can resize:"
27251 msgstr ""
27252
27253 # type: textblock
27254 #: ../tools/virt-resize.pl:350
27255 msgid ""
27256 "ext2, ext3 and ext4 filesystems when they are contained directly inside a "
27257 "partition."
27258 msgstr ""
27259
27260 # type: textblock
27261 #: ../tools/virt-resize.pl:355
27262 msgid ""
27263 "NTFS filesystems contained directly in a partition, if libguestfs was "
27264 "compiled with support for NTFS."
27265 msgstr ""
27266
27267 # type: textblock
27268 #: ../tools/virt-resize.pl:358
27269 msgid ""
27270 "The filesystem must have been shut down consistently last time it was used.  "
27271 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
27272 "consistency check, so at the first boot after resizing Windows will check "
27273 "the disk."
27274 msgstr ""
27275
27276 # type: textblock
27277 #: ../tools/virt-resize.pl:365
27278 msgid ""
27279 "LVM PVs (physical volumes).  However virt-resize does I<not> resize anything "
27280 "inside the PV.  The user will have to resize LVs as desired."
27281 msgstr ""
27282
27283 # type: textblock
27284 #: ../tools/virt-resize.pl:371 ../tools/virt-resize.pl:393
27285 msgid "Note that you cannot use C<--expand> and C<--shrink> together."
27286 msgstr ""
27287
27288 # type: =item
27289 #: ../tools/virt-resize.pl:377
27290 msgid "B<--shrink part>"
27291 msgstr ""
27292
27293 # type: textblock
27294 #: ../tools/virt-resize.pl:379
27295 msgid ""
27296 "Shrink the named partition until the overall disk image fits in the "
27297 "destination.  The named partition B<must> contain a filesystem or PV which "
27298 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
27299 "online tools).  Virt-resize will check this and give an error if it has not "
27300 "been done."
27301 msgstr ""
27302
27303 # type: textblock
27304 #: ../tools/virt-resize.pl:385
27305 msgid ""
27306 "The amount by which the overall disk must be shrunk (after carrying out all "
27307 "other operations requested by the user) is called the \"deficit\".  For "
27308 "example, a straight copy (assume no other operations)  from a 5GB disk image "
27309 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
27310 "would give an error unless the user specified a partition to shrink and that "
27311 "partition had more than a gigabyte of free space."
27312 msgstr ""
27313
27314 # type: =item
27315 #: ../tools/virt-resize.pl:399
27316 msgid "B<--ignore part>"
27317 msgstr ""
27318
27319 # type: textblock
27320 #: ../tools/virt-resize.pl:401
27321 msgid ""
27322 "Ignore the named partition.  Effectively this means the partition is "
27323 "allocated on the destination disk, but the content is not copied across from "
27324 "the source disk.  The content of the partition will be blank (all zero "
27325 "bytes)."
27326 msgstr ""
27327
27328 # type: =item
27329 #: ../tools/virt-resize.pl:412
27330 msgid "B<--delete part>"
27331 msgstr ""
27332
27333 # type: textblock
27334 #: ../tools/virt-resize.pl:414
27335 msgid ""
27336 "Delete the named partition.  It would be more accurate to describe this as "
27337 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
27338 "the original disk image is left intact."
27339 msgstr ""
27340
27341 # type: textblock
27342 #: ../tools/virt-resize.pl:418
27343 msgid ""
27344 "Note that when you delete a partition, then anything contained in the "
27345 "partition is also deleted.  Furthermore, this causes any partitions that "
27346 "come after to be I<renumbered>, which can easily make your guest unbootable."
27347 msgstr ""
27348
27349 # type: =item
27350 #: ../tools/virt-resize.pl:429
27351 msgid "B<--LV-expand logvol>"
27352 msgstr ""
27353
27354 # type: textblock
27355 #: ../tools/virt-resize.pl:431
27356 msgid ""
27357 "This takes the logical volume and, as a final step, expands it to fill all "
27358 "the space available in its volume group.  A typical usage, assuming a Linux "
27359 "guest with a single PV C</dev/sda2> and a root device called "
27360 "C</dev/vg_guest/lv_root> would be:"
27361 msgstr ""
27362
27363 # type: verbatim
27364 #: ../tools/virt-resize.pl:436
27365 #, no-wrap
27366 msgid ""
27367 " virt-resize indisk outdisk \\\n"
27368 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
27369 "\n"
27370 msgstr ""
27371
27372 # type: textblock
27373 #: ../tools/virt-resize.pl:439
27374 msgid ""
27375 "This would first expand the partition (and PV), and then expand the root "
27376 "device to fill the extra space in the PV."
27377 msgstr ""
27378
27379 # type: textblock
27380 #: ../tools/virt-resize.pl:442
27381 msgid ""
27382 "The contents of the LV are also resized if virt-resize knows how to do "
27383 "that.  You can stop virt-resize from trying to expand the content by using "
27384 "the option C<--no-expand-content>."
27385 msgstr ""
27386
27387 # type: textblock
27388 #: ../tools/virt-resize.pl:446
27389 msgid "Use L<virt-list-filesystems(1)> to list the filesystems in the guest."
27390 msgstr ""
27391
27392 # type: textblock
27393 #: ../tools/virt-resize.pl:449
27394 msgid ""
27395 "You can give this option multiple times, I<but> it doesn't make sense to do "
27396 "this unless the logical volumes you specify are all in different volume "
27397 "groups."
27398 msgstr ""
27399
27400 # type: =item
27401 #: ../tools/virt-resize.pl:457
27402 msgid "B<--no-copy-boot-loader>"
27403 msgstr ""
27404
27405 # type: textblock
27406 #: ../tools/virt-resize.pl:459
27407 msgid ""
27408 "By default, virt-resize copies over some sectors at the start of the disk "
27409 "(up to the beginning of the first partition).  Commonly these sectors "
27410 "contain the Master Boot Record (MBR) and the boot loader, and are required "
27411 "in order for the guest to boot correctly."
27412 msgstr ""
27413
27414 # type: textblock
27415 #: ../tools/virt-resize.pl:464
27416 msgid ""
27417 "If you specify this flag, then this initial copy is not done.  You may need "
27418 "to reinstall the boot loader in this case."
27419 msgstr ""
27420
27421 # type: =item
27422 #: ../tools/virt-resize.pl:472
27423 msgid "B<--no-extra-partition>"
27424 msgstr ""
27425
27426 # type: textblock
27427 #: ../tools/virt-resize.pl:474
27428 msgid ""
27429 "By default, virt-resize creates an extra partition if there is any extra, "
27430 "unused space after all resizing has happened.  Use this option to prevent "
27431 "the extra partition from being created.  If you do this then the extra space "
27432 "will be inaccessible until you run fdisk, parted, or some other partitioning "
27433 "tool in the guest."
27434 msgstr ""
27435
27436 # type: textblock
27437 #: ../tools/virt-resize.pl:480
27438 msgid ""
27439 "Note that if the surplus space is smaller than 10 MB, no extra partition "
27440 "will be created."
27441 msgstr ""
27442
27443 # type: =item
27444 #: ../tools/virt-resize.pl:487
27445 msgid "B<--no-expand-content>"
27446 msgstr ""
27447
27448 # type: textblock
27449 #: ../tools/virt-resize.pl:489
27450 msgid ""
27451 "By default, virt-resize will try to expand the direct contents of "
27452 "partitions, if it knows how (see C<--expand> option above)."
27453 msgstr ""
27454
27455 # type: textblock
27456 #: ../tools/virt-resize.pl:492
27457 msgid ""
27458 "If you give the C<--no-expand-content> option then virt-resize will not "
27459 "attempt this."
27460 msgstr ""
27461
27462 # type: =item
27463 #: ../tools/virt-resize.pl:499
27464 msgid "B<-d> | B<--debug>"
27465 msgstr ""
27466
27467 # type: =item
27468 #: ../tools/virt-resize.pl:507
27469 msgid "B<-n> | B<--dryrun>"
27470 msgstr ""
27471
27472 # type: textblock
27473 #: ../tools/virt-resize.pl:509
27474 msgid "Print a summary of what would be done, but don't do anything."
27475 msgstr ""
27476
27477 # type: =item
27478 #: ../tools/virt-resize.pl:515
27479 msgid "B<-q> | B<--quiet>"
27480 msgstr ""
27481
27482 # type: textblock
27483 #: ../tools/virt-resize.pl:517
27484 msgid "Don't print the summary."
27485 msgstr ""
27486
27487 # type: textblock
27488 #: ../tools/virt-resize.pl:525
27489 msgid ""
27490 "Specify the format of the input disk image.  If this flag is not given then "
27491 "it is auto-detected from the image itself."
27492 msgstr ""
27493
27494 # type: textblock
27495 #: ../tools/virt-resize.pl:531
27496 msgid ""
27497 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
27498 "AND NON-SPARSE RAW FORMATS>."
27499 msgstr ""
27500
27501 # type: =item
27502 #: ../tools/virt-resize.pl:538
27503 msgid "B<--output-format> raw"
27504 msgstr ""
27505
27506 # type: textblock
27507 #: ../tools/virt-resize.pl:540
27508 msgid ""
27509 "Specify the format of the output disk image.  If this flag is not given then "
27510 "it is auto-detected from the image itself."
27511 msgstr ""
27512
27513 # type: textblock
27514 #: ../tools/virt-resize.pl:546
27515 msgid ""
27516 "Note that you still need to create the output disk with the right format.  "
27517 "See L</QCOW2 AND NON-SPARSE RAW FORMATS>."
27518 msgstr ""
27519
27520 # type: =head2
27521 #: ../tools/virt-resize.pl:1422 ../tools/virt-rescue.pl:90
27522 msgid "NOTES"
27523 msgstr ""
27524
27525 # type: =head2
27526 #: ../tools/virt-resize.pl:1424
27527 msgid "\"Partition 1 does not end on cylinder boundary.\""
27528 msgstr ""
27529
27530 # type: textblock
27531 #: ../tools/virt-resize.pl:1426
27532 msgid ""
27533 "Virt-resize aligns partitions to multiples of 64 sectors.  Usually this "
27534 "means the partitions will not be aligned to the ancient CHS geometry.  "
27535 "However CHS geometry is meaningless for disks manufactured since the early "
27536 "1990s, and doubly so for virtual hard drives.  Alignment of partitions to "
27537 "cylinders is not required by any modern operating system."
27538 msgstr ""
27539
27540 # type: =head2
27541 #: ../tools/virt-resize.pl:1433
27542 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
27543 msgstr ""
27544
27545 # type: textblock
27546 #: ../tools/virt-resize.pl:1435
27547 msgid ""
27548 "In Windows Vista and later versions, Microsoft switched to using a separate "
27549 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
27550 "and C</dev/sda2> is the main (C:) drive.  We have not had any luck resizing "
27551 "the boot partition.  Doing so seems to break the guest completely.  However "
27552 "expanding the second partition (ie. C: drive) should work."
27553 msgstr ""
27554
27555 # type: textblock
27556 #: ../tools/virt-resize.pl:1442
27557 msgid ""
27558 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
27559 "NTFS partitions have been expanded.  This is just a safety check and (unless "
27560 "it find errors) is nothing to worry about."
27561 msgstr ""
27562
27563 # type: =head2
27564 #: ../tools/virt-resize.pl:1446
27565 msgid "GUEST BOOT STUCK AT \"GRUB\""
27566 msgstr ""
27567
27568 # type: textblock
27569 #: ../tools/virt-resize.pl:1448
27570 msgid ""
27571 "If a Linux guest does not boot after resizing, and the boot is stuck after "
27572 "printing C<GRUB> on the console, try reinstalling grub.  This sometimes "
27573 "happens on older (RHEL 5-era) guests, for reasons we don't fully understand, "
27574 "although we think is to do with partition alignment."
27575 msgstr ""
27576
27577 # type: verbatim
27578 #: ../tools/virt-resize.pl:1453
27579 #, no-wrap
27580 msgid ""
27581 " guestfish -i -a newdisk\n"
27582 " ><fs> cat /boot/grub/device.map\n"
27583 " # check the contents of this file are sensible or\n"
27584 " # edit the file if necessary\n"
27585 " ><fs> grub-install / /dev/vda\n"
27586 " ><fs> exit\n"
27587 "\n"
27588 msgstr ""
27589
27590 # type: textblock
27591 #: ../tools/virt-resize.pl:1460
27592 msgid ""
27593 "For more flexible guest reconfiguration, including if you need to specify "
27594 "other parameters to grub-install, use L<virt-rescue(1)>."
27595 msgstr ""
27596
27597 # type: =head1
27598 #: ../tools/virt-resize.pl:1463
27599 msgid "ALTERNATIVE TOOLS"
27600 msgstr ""
27601
27602 # type: textblock
27603 #: ../tools/virt-resize.pl:1465
27604 msgid ""
27605 "There are several proprietary tools for resizing partitions.  We won't "
27606 "mention any here."
27607 msgstr ""
27608
27609 # type: textblock
27610 #: ../tools/virt-resize.pl:1468
27611 msgid ""
27612 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
27613 "operations on disk images.  They can resize and move partitions, but I don't "
27614 "think they can do anything with the contents, and they certainly don't "
27615 "understand LVM."
27616 msgstr ""
27617
27618 # type: textblock
27619 #: ../tools/virt-resize.pl:1473
27620 msgid ""
27621 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
27622 "but at a much lower level.  You will probably end up hand-calculating sector "
27623 "offsets, which is something that virt-resize was designed to avoid.  If you "
27624 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
27625 "C<--debug> flag."
27626 msgstr ""
27627
27628 # type: textblock
27629 #: ../tools/virt-resize.pl:1488
27630 msgid ""
27631 "L<virt-list-partitions(1)>, L<virt-list-filesystems(1)>, L<virt-df(1)>, "
27632 "L<guestfs(3)>, L<guestfish(1)>, L<lvm(8)>, L<pvresize(8)>, L<lvresize(8)>, "
27633 "L<resize2fs(8)>, L<ntfsresize(8)>, L<virsh(1)>, L<parted(8)>, "
27634 "L<truncate(1)>, L<fallocate(1)>, L<grub(8)>, L<grub-install(8)>, "
27635 "L<virt-rescue(1)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
27636 msgstr ""
27637
27638 # type: textblock
27639 #: ../tools/virt-list-filesystems.pl:32
27640 msgid "virt-list-filesystems - List filesystems in a virtual machine or disk image"
27641 msgstr ""
27642
27643 # type: verbatim
27644 #: ../tools/virt-list-filesystems.pl:36
27645 #, no-wrap
27646 msgid ""
27647 " virt-list-filesystems [--options] domname\n"
27648 "\n"
27649 msgstr ""
27650
27651 # type: verbatim
27652 #: ../tools/virt-list-filesystems.pl:38
27653 #, no-wrap
27654 msgid ""
27655 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
27656 "\n"
27657 msgstr ""
27658
27659 # type: textblock
27660 #: ../tools/virt-list-filesystems.pl:42
27661 msgid ""
27662 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
27663 "are contained in a virtual machine or disk image."
27664 msgstr ""
27665
27666 # type: textblock
27667 #: ../tools/virt-list-filesystems.pl:46
27668 msgid ""
27669 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
27670 "functionality.  For more complex cases you should look at the "
27671 "L<guestfish(1)> tool."
27672 msgstr ""
27673
27674 # type: textblock
27675 #: ../tools/virt-list-filesystems.pl:105
27676 msgid ""
27677 "With this option, C<virt-list-filesystems> displays the type of each "
27678 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
27679 msgstr ""
27680
27681 # type: =item
27682 #: ../tools/virt-list-filesystems.pl:112
27683 msgid "B<-a> | B<--all>"
27684 msgstr ""
27685
27686 # type: textblock
27687 #: ../tools/virt-list-filesystems.pl:114
27688 msgid ""
27689 "Normally we only show mountable filesystems.  If this option is given then "
27690 "swap devices are shown too."
27691 msgstr ""
27692
27693 # type: textblock
27694 #: ../tools/virt-list-filesystems.pl:188
27695 msgid ""
27696 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, "
27697 "L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
27698 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
27699 msgstr ""
27700
27701 # type: textblock
27702 #: ../tools/virt-tar.pl:33
27703 msgid "virt-tar - Extract or upload files to a virtual machine"
27704 msgstr ""
27705
27706 # type: verbatim
27707 #: ../tools/virt-tar.pl:37
27708 #, no-wrap
27709 msgid ""
27710 " virt-tar [--options] -x domname directory tarball\n"
27711 "\n"
27712 msgstr ""
27713
27714 # type: verbatim
27715 #: ../tools/virt-tar.pl:39
27716 #, no-wrap
27717 msgid ""
27718 " virt-tar [--options] -u domname tarball directory\n"
27719 "\n"
27720 msgstr ""
27721
27722 # type: verbatim
27723 #: ../tools/virt-tar.pl:41
27724 #, no-wrap
27725 msgid ""
27726 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
27727 "\n"
27728 msgstr ""
27729
27730 # type: verbatim
27731 #: ../tools/virt-tar.pl:43
27732 #, no-wrap
27733 msgid ""
27734 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
27735 "\n"
27736 msgstr ""
27737
27738 # type: textblock
27739 #: ../tools/virt-tar.pl:47
27740 msgid "Download C</home> from the VM into a local tarball:"
27741 msgstr ""
27742
27743 # type: verbatim
27744 #: ../tools/virt-tar.pl:49
27745 #, no-wrap
27746 msgid ""
27747 " virt-tar -x domname /home home.tar\n"
27748 "\n"
27749 msgstr ""
27750
27751 # type: verbatim
27752 #: ../tools/virt-tar.pl:51
27753 #, no-wrap
27754 msgid ""
27755 " virt-tar -zx domname /home home.tar.gz\n"
27756 "\n"
27757 msgstr ""
27758
27759 # type: textblock
27760 #: ../tools/virt-tar.pl:53
27761 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
27762 msgstr ""
27763
27764 # type: verbatim
27765 #: ../tools/virt-tar.pl:55
27766 #, no-wrap
27767 msgid ""
27768 " virt-tar -u domname uploadstuff.tar /tmp\n"
27769 "\n"
27770 msgstr ""
27771
27772 # type: verbatim
27773 #: ../tools/virt-tar.pl:57
27774 #, no-wrap
27775 msgid ""
27776 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
27777 "\n"
27778 msgstr ""
27779
27780 # type: textblock
27781 #: ../tools/virt-tar.pl:61
27782 msgid ""
27783 "You must I<not> use C<virt-tar> with the C<-u> option (upload) on live "
27784 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
27785 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
27786 msgstr ""
27787
27788 # type: textblock
27789 #: ../tools/virt-tar.pl:66
27790 msgid ""
27791 "You can use C<-x> (extract) on live virtual machines, but you might get "
27792 "inconsistent results or errors if there is filesystem activity inside the "
27793 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
27794 "work, but the only way to guarantee consistent results is if the virtual "
27795 "machine is shut down."
27796 msgstr ""
27797
27798 # type: textblock
27799 #: ../tools/virt-tar.pl:74
27800 msgid ""
27801 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
27802 "parts of a guest filesystem.  There are many possibilities: making backups, "
27803 "uploading data files, snooping on guest activity, fixing or customizing "
27804 "guests, etc."
27805 msgstr ""
27806
27807 # type: textblock
27808 #: ../tools/virt-tar.pl:79
27809 msgid ""
27810 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
27811 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
27812 "should look at the L<guestfish(1)> tool."
27813 msgstr ""
27814
27815 # type: textblock
27816 #: ../tools/virt-tar.pl:83
27817 msgid ""
27818 "There are two modes of operation: C<-x> (eXtract) downloads a directory and "
27819 "its contents (recursively) from the virtual machine into a local tarball.  "
27820 "C<-u> uploads from a local tarball, unpacking it into a directory inside the "
27821 "virtual machine.  You cannot use these two options together."
27822 msgstr ""
27823
27824 # type: textblock
27825 #: ../tools/virt-tar.pl:89
27826 msgid ""
27827 "In addition, you may need to use the C<-z> (gZip) option to enable "
27828 "compression.  When uploading, you have to specify C<-z> if the upload file "
27829 "is compressed because virt-tar won't detect this on its own."
27830 msgstr ""
27831
27832 # type: textblock
27833 #: ../tools/virt-tar.pl:93
27834 msgid ""
27835 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
27836 "example it cannot do PKZip files or bzip2 compression.  If you want that "
27837 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
27838 "the L<libguestfs(3)> API)."
27839 msgstr ""
27840
27841 # type: =item
27842 #: ../tools/virt-tar.pl:151
27843 msgid "B<-x> | B<--extract> | B<--download>"
27844 msgstr ""
27845
27846 # type: =item
27847 #: ../tools/virt-tar.pl:153
27848 msgid "B<-u> | B<--upload>"
27849 msgstr ""
27850
27851 # type: textblock
27852 #: ../tools/virt-tar.pl:155
27853 msgid ""
27854 "Use C<-x> to extract (download) a directory from a virtual machine to a "
27855 "local tarball."
27856 msgstr ""
27857
27858 # type: textblock
27859 #: ../tools/virt-tar.pl:158
27860 msgid ""
27861 "Use C<-u> to upload and unpack from a local tarball into a virtual machine.  "
27862 "Please read the L</WARNING> section above before using this option."
27863 msgstr ""
27864
27865 # type: textblock
27866 #: ../tools/virt-tar.pl:162
27867 msgid "You must specify exactly one of these options."
27868 msgstr ""
27869
27870 # type: =item
27871 #: ../tools/virt-tar.pl:168
27872 msgid "B<-z> | B<--gzip>"
27873 msgstr ""
27874
27875 # type: textblock
27876 #: ../tools/virt-tar.pl:170
27877 msgid "Specify that the input or output tarball is gzip-compressed."
27878 msgstr ""
27879
27880 # type: textblock
27881 #: ../tools/virt-tar.pl:283
27882 msgid ""
27883 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
27884 "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
27885 "L<http://libguestfs.org/>."
27886 msgstr ""
27887
27888 # type: textblock
27889 #: ../tools/virt-rescue.pl:33
27890 msgid "virt-rescue - Run a rescue shell on a virtual machine"
27891 msgstr ""
27892
27893 # type: verbatim
27894 #: ../tools/virt-rescue.pl:37
27895 #, no-wrap
27896 msgid ""
27897 " virt-rescue [--options] domname\n"
27898 "\n"
27899 msgstr ""
27900
27901 # type: verbatim
27902 #: ../tools/virt-rescue.pl:39
27903 #, no-wrap
27904 msgid ""
27905 " virt-rescue [--options] disk.img [disk.img ...]\n"
27906 "\n"
27907 msgstr ""
27908
27909 # type: textblock
27910 #: ../tools/virt-rescue.pl:43
27911 msgid ""
27912 "You must I<not> use C<virt-rescue> on live virtual machines.  Doing so will "
27913 "probably result in disk corruption in the VM.  C<virt-rescue> tries to stop "
27914 "you from doing this, but doesn't catch all cases."
27915 msgstr ""
27916
27917 # type: textblock
27918 #: ../tools/virt-rescue.pl:47
27919 msgid ""
27920 "However if you use the I<--ro> (read only) option, then you can attach a "
27921 "shell to a live virtual machine.  The results might be strange or "
27922 "inconsistent at times but you won't get disk corruption."
27923 msgstr ""
27924
27925 # type: textblock
27926 #: ../tools/virt-rescue.pl:53
27927 msgid ""
27928 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
27929 "need for a CD.  virt-rescue gives you a rescue shell and some simple "
27930 "recovery tools which you can use to examine or rescue a virtual machine or "
27931 "disk image."
27932 msgstr ""
27933
27934 # type: textblock
27935 #: ../tools/virt-rescue.pl:58
27936 msgid ""
27937 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
27938 "on disk image(s):"
27939 msgstr ""
27940
27941 # type: verbatim
27942 #: ../tools/virt-rescue.pl:61
27943 #, no-wrap
27944 msgid ""
27945 " virt-rescue GuestName\n"
27946 "\n"
27947 msgstr ""
27948
27949 # type: verbatim
27950 #: ../tools/virt-rescue.pl:63
27951 #, no-wrap
27952 msgid ""
27953 " virt-rescue --ro /path/to/disk.img\n"
27954 "\n"
27955 msgstr ""
27956
27957 # type: verbatim
27958 #: ../tools/virt-rescue.pl:65
27959 #, no-wrap
27960 msgid ""
27961 " virt-rescue /dev/sdc\n"
27962 "\n"
27963 msgstr ""
27964
27965 # type: textblock
27966 #: ../tools/virt-rescue.pl:67
27967 msgid "For live VMs you I<must> use the --ro option."
27968 msgstr ""
27969
27970 # type: textblock
27971 #: ../tools/virt-rescue.pl:69
27972 msgid ""
27973 "When you run virt-rescue on a virtual machine or disk image, you are placed "
27974 "in an interactive bash shell where you can use many ordinary Linux "
27975 "commands.  What you see in C</> (C</bin>, C</lib> etc) is the rescue "
27976 "appliance.  You must mount the virtual machine's filesystems by hand.  There "
27977 "is an empty directory called C</sysroot> where you can mount filesystems."
27978 msgstr ""
27979
27980 # type: textblock
27981 #: ../tools/virt-rescue.pl:76
27982 msgid ""
27983 "In the example below, we list logical volumes, then choose one to mount "
27984 "under C</sysroot>:"
27985 msgstr ""
27986
27987 # type: verbatim
27988 #: ../tools/virt-rescue.pl:79
27989 #, no-wrap
27990 msgid ""
27991 " ><rescue> lvs\n"
27992 " LV      VG        Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n"
27993 " lv_root vg_f11x64 -wi-a-   8.83G\n"
27994 " lv_swap vg_f11x64 -wi-a- 992.00M\n"
27995 " ><rescue> mount /dev/vg_f11x64/lv_root /sysroot\n"
27996 " ><rescue> ls /sysroot\n"
27997 "\n"
27998 msgstr ""
27999
28000 # type: textblock
28001 #: ../tools/virt-rescue.pl:86
28002 msgid ""
28003 "If you don't know what filesystems are available on the virtual machine then "
28004 "you can use commands such as L<parted(8)> and L<lvs(8)> to find out."
28005 msgstr ""
28006
28007 # type: textblock
28008 #: ../tools/virt-rescue.pl:92
28009 msgid ""
28010 "Virt-rescue can be used on I<any> disk image file or device, not just a "
28011 "virtual machine.  For example you can use it on a blank file if you want to "
28012 "partition that file (although we would recommend using L<guestfish(1)> "
28013 "instead as it is more suitable for this purpose).  You can even use "
28014 "virt-rescue on things like SD cards."
28015 msgstr ""
28016
28017 # type: textblock
28018 #: ../tools/virt-rescue.pl:98
28019 msgid ""
28020 "This tool is just designed for quick interactive hacking on a virtual "
28021 "machine.  For more structured access to a virtual machine disk image, you "
28022 "should use L<guestfs(3)>.  To get a structured shell that you can use to "
28023 "make scripted changes to guests, use L<guestfish(1)>."
28024 msgstr ""
28025
28026 # type: =item
28027 #: ../tools/virt-rescue.pl:127
28028 msgid "B<--append kernelopts>"
28029 msgstr ""
28030
28031 # type: textblock
28032 #: ../tools/virt-rescue.pl:129
28033 msgid "Pass additional options to the rescue kernel."
28034 msgstr ""
28035
28036 # type: =item
28037 #: ../tools/virt-rescue.pl:164
28038 msgid "B<--memsize MB> | B<-m MB>"
28039 msgstr ""
28040
28041 # type: textblock
28042 #: ../tools/virt-rescue.pl:166
28043 msgid ""
28044 "Change the amount of memory allocated to the rescue system.  The default is "
28045 "set by libguestfs and is small but adequate for running system tools.  The "
28046 "occasional program might need more memory.  The parameter is specified in "
28047 "megabytes."
28048 msgstr ""
28049
28050 # type: =item
28051 #: ../tools/virt-rescue.pl:175
28052 msgid "B<--network MB>"
28053 msgstr ""
28054
28055 # type: textblock
28056 #: ../tools/virt-rescue.pl:177
28057 msgid "Enable QEMU user networking in the guest."
28058 msgstr ""
28059
28060 # type: =item
28061 #: ../tools/virt-rescue.pl:183
28062 msgid "B<--ro> | B<-r>"
28063 msgstr ""
28064
28065 # type: textblock
28066 #: ../tools/virt-rescue.pl:185
28067 msgid "Open the image read-only."
28068 msgstr ""
28069
28070 # type: textblock
28071 #: ../tools/virt-rescue.pl:197
28072 msgid ""
28073 "Enable SELinux in the rescue appliance.  You should read "
28074 "L<guestfs(3)/SELINUX> before using this option."
28075 msgstr ""
28076
28077 # type: textblock
28078 #: ../tools/virt-rescue.pl:257
28079 msgid ""
28080 "Several environment variables affect virt-rescue.  See "
28081 "L<guestfs(3)/ENVIRONMENT VARIABLES> for the complete list."
28082 msgstr ""
28083
28084 # type: textblock
28085 #: ../tools/virt-rescue.pl:269
28086 msgid ""
28087 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, "
28088 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
28089 msgstr ""
28090
28091 # type: textblock
28092 #: ../tools/virt-make-fs.pl:37
28093 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
28094 msgstr ""
28095
28096 # type: verbatim
28097 #: ../tools/virt-make-fs.pl:41
28098 #, no-wrap
28099 msgid ""
28100 " virt-make-fs [--options] input.tar output.img\n"
28101 "\n"
28102 msgstr ""
28103
28104 # type: verbatim
28105 #: ../tools/virt-make-fs.pl:43
28106 #, no-wrap
28107 msgid ""
28108 " virt-make-fs [--options] input.tar.gz output.img\n"
28109 "\n"
28110 msgstr ""
28111
28112 # type: verbatim
28113 #: ../tools/virt-make-fs.pl:45
28114 #, no-wrap
28115 msgid ""
28116 " virt-make-fs [--options] directory output.img\n"
28117 "\n"
28118 msgstr ""
28119
28120 # type: textblock
28121 #: ../tools/virt-make-fs.pl:49
28122 msgid ""
28123 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
28124 "archive or some files in a directory.  It is similar to tools like "
28125 "L<mkisofs(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, "
28126 "it can create common filesystem types like ext2/3 or NTFS, which can be "
28127 "useful if you want to attach these filesystems to existing virtual machines "
28128 "(eg. to import large amounts of read-only data to a VM)."
28129 msgstr ""
28130
28131 # type: textblock
28132 #: ../tools/virt-make-fs.pl:57
28133 msgid "Basic usage is:"
28134 msgstr ""
28135
28136 # type: verbatim
28137 #: ../tools/virt-make-fs.pl:59
28138 #, no-wrap
28139 msgid ""
28140 " virt-make-fs input output\n"
28141 "\n"
28142 msgstr ""
28143
28144 # type: textblock
28145 #: ../tools/virt-make-fs.pl:61
28146 msgid ""
28147 "where C<input> is either a directory containing files that you want to add, "
28148 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
28149 "C<output> is a disk image.  The input type is detected automatically.  The "
28150 "output disk image defaults to a raw ext2 image unless you specify extra "
28151 "flags (see L</OPTIONS> below)."
28152 msgstr ""
28153
28154 # type: =head2
28155 #: ../tools/virt-make-fs.pl:67
28156 msgid "EXTRA SPACE"
28157 msgstr ""
28158
28159 # type: textblock
28160 #: ../tools/virt-make-fs.pl:69
28161 msgid ""
28162 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
28163 "the files that it contains, but might have extra space.  Depending on how "
28164 "you are going to use the output, you might think this extra space is wasted "
28165 "and want to minimize it, or you might want to leave space so that more files "
28166 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
28167 "but you can use the C<--size> flag to leave space in the filesystem if you "
28168 "want it."
28169 msgstr ""
28170
28171 # type: textblock
28172 #: ../tools/virt-make-fs.pl:77
28173 msgid ""
28174 "An alternative way to leave extra space but not make the output image any "
28175 "bigger is to use an alternative disk image format (instead of the default "
28176 "\"raw\" format).  Using C<--format=qcow2> will use the native QEmu/KVM qcow2 "
28177 "image format (check your hypervisor supports this before using it).  This "
28178 "allows you to choose a large C<--size> but the extra space won't actually be "
28179 "allocated in the image until you try to store something in it."
28180 msgstr ""
28181
28182 # type: textblock
28183 #: ../tools/virt-make-fs.pl:85
28184 msgid ""
28185 "Don't forget that you can also use local commands including L<resize2fs(8)> "
28186 "and L<virt-resize(1)> to resize existing filesystems, or rerun "
28187 "virt-make-resize to build another image from scratch."
28188 msgstr ""
28189
28190 # type: =head3
28191 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123 ../tools/virt-make-fs.pl:142
28192 msgid "EXAMPLE"
28193 msgstr ""
28194
28195 # type: verbatim
28196 #: ../tools/virt-make-fs.pl:91
28197 #, no-wrap
28198 msgid ""
28199 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
28200 "\n"
28201 msgstr ""
28202
28203 # type: =head2
28204 #: ../tools/virt-make-fs.pl:93
28205 msgid "FILESYSTEM TYPE"
28206 msgstr ""
28207
28208 # type: textblock
28209 #: ../tools/virt-make-fs.pl:95
28210 msgid ""
28211 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
28212 "libguestfs supports can be used (but I<not> read-only formats like "
28213 "ISO9660).  Here are some of the more common choices:"
28214 msgstr ""
28215
28216 # type: =item
28217 #: ../tools/virt-make-fs.pl:101
28218 msgid "I<ext3>"
28219 msgstr ""
28220
28221 # type: textblock
28222 #: ../tools/virt-make-fs.pl:103
28223 msgid ""
28224 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
28225 "you are not going to use the filesystem in a way that requires the journal, "
28226 "then this is just wasted overhead."
28227 msgstr ""
28228
28229 # type: =item
28230 #: ../tools/virt-make-fs.pl:107
28231 msgid "I<ntfs> or I<vfat>"
28232 msgstr ""
28233
28234 # type: textblock
28235 #: ../tools/virt-make-fs.pl:109
28236 msgid "Useful if exporting data to a Windows guest."
28237 msgstr ""
28238
28239 # type: textblock
28240 #: ../tools/virt-make-fs.pl:111
28241 msgid ""
28242 "I<Note for vfat>: The tar archive or local directory must only contain files "
28243 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
28244 "program running within libguestfs is unable to change the ownership of "
28245 "non-root files, since vfat itself does not support this."
28246 msgstr ""
28247
28248 # type: =item
28249 #: ../tools/virt-make-fs.pl:116
28250 msgid "I<minix>"
28251 msgstr ""
28252
28253 # type: textblock
28254 #: ../tools/virt-make-fs.pl:118
28255 msgid ""
28256 "Lower overhead than C<ext2>, but certain limitations on filename length and "
28257 "total filesystem size."
28258 msgstr ""
28259
28260 # type: verbatim
28261 #: ../tools/virt-make-fs.pl:125
28262 #, no-wrap
28263 msgid ""
28264 " virt-make-fs --type=minix input minixfs.img\n"
28265 "\n"
28266 msgstr ""
28267
28268 # type: =head2
28269 #: ../tools/virt-make-fs.pl:127
28270 msgid "TO PARTITION OR NOT TO PARTITION"
28271 msgstr ""
28272
28273 # type: textblock
28274 #: ../tools/virt-make-fs.pl:129
28275 msgid "Optionally virt-make-fs can add a partition table to the output disk."
28276 msgstr ""
28277
28278 # type: textblock
28279 #: ../tools/virt-make-fs.pl:131
28280 msgid ""
28281 "Adding a partition can make the disk image more compatible with certain "
28282 "virtualized operating systems which don't expect to see a filesystem "
28283 "directly located on a block device (Linux doesn't care and will happily "
28284 "handle both types)."
28285 msgstr ""
28286
28287 # type: textblock
28288 #: ../tools/virt-make-fs.pl:136
28289 msgid ""
28290 "On the other hand, if you have a partition table then the output image is no "
28291 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
28292 "directly on a partitioned disk image.  (However libguestfs tools such as "
28293 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
28294 msgstr ""
28295
28296 # type: textblock
28297 #: ../tools/virt-make-fs.pl:144
28298 msgid "Add an MBR partition:"
28299 msgstr ""
28300
28301 # type: verbatim
28302 #: ../tools/virt-make-fs.pl:146
28303 #, no-wrap
28304 msgid ""
28305 " virt-make-fs --partition -- input disk.img\n"
28306 "\n"
28307 msgstr ""
28308
28309 # type: textblock
28310 #: ../tools/virt-make-fs.pl:148
28311 msgid ""
28312 "If the output disk image could be terabyte-sized or larger, it's better to "
28313 "use an EFI/GPT-compatible partition table:"
28314 msgstr ""
28315
28316 # type: verbatim
28317 #: ../tools/virt-make-fs.pl:151
28318 #, no-wrap
28319 msgid ""
28320 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
28321 "\n"
28322 msgstr ""
28323
28324 # type: textblock
28325 #: ../tools/virt-make-fs.pl:179
28326 msgid "Enable debugging information."
28327 msgstr ""
28328
28329 # type: =item
28330 #: ../tools/virt-make-fs.pl:185
28331 msgid "B<--size=E<lt>NE<gt>>"
28332 msgstr ""
28333
28334 # type: =item
28335 #: ../tools/virt-make-fs.pl:187
28336 msgid "B<--size=+E<lt>NE<gt>>"
28337 msgstr ""
28338
28339 # type: =item
28340 #: ../tools/virt-make-fs.pl:189
28341 msgid "B<-s E<lt>NE<gt>>"
28342 msgstr ""
28343
28344 # type: =item
28345 #: ../tools/virt-make-fs.pl:191
28346 msgid "B<-s +E<lt>NE<gt>>"
28347 msgstr ""
28348
28349 # type: textblock
28350 #: ../tools/virt-make-fs.pl:193
28351 msgid "Use the C<--size> (or C<-s>) option to choose the size of the output image."
28352 msgstr ""
28353
28354 # type: textblock
28355 #: ../tools/virt-make-fs.pl:196
28356 msgid ""
28357 "If this option is I<not> given, then the output image will be just large "
28358 "enough to contain all the files, with not much wasted space."
28359 msgstr ""
28360
28361 # type: textblock
28362 #: ../tools/virt-make-fs.pl:199
28363 msgid ""
28364 "To choose a fixed size output disk, specify an absolute number followed by "
28365 "b/K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
28366 "Petabytes or Exabytes.  This must be large enough to contain all the input "
28367 "files, else you will get an error."
28368 msgstr ""
28369
28370 # type: textblock
28371 #: ../tools/virt-make-fs.pl:204
28372 msgid ""
28373 "To leave extra space, specify C<+> (plus sign) and a number followed by "
28374 "b/K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
28375 "Petabytes or Exabytes.  For example: C<--size=+200M> means enough space for "
28376 "the input files, and (approximately) an extra 200 MB free space."
28377 msgstr ""
28378
28379 # type: textblock
28380 #: ../tools/virt-make-fs.pl:210
28381 msgid ""
28382 "Note that virt-make-fs estimates free space, and therefore will not produce "
28383 "filesystems containing precisely the free space requested.  (It is much more "
28384 "expensive and time-consuming to produce a filesystem which has precisely the "
28385 "desired free space)."
28386 msgstr ""
28387
28388 # type: =item
28389 #: ../tools/virt-make-fs.pl:219
28390 msgid "B<--format=E<lt>fmtE<gt>>"
28391 msgstr ""
28392
28393 # type: =item
28394 #: ../tools/virt-make-fs.pl:221
28395 msgid "B<-F E<lt>fmtE<gt>>"
28396 msgstr ""
28397
28398 # type: textblock
28399 #: ../tools/virt-make-fs.pl:223
28400 msgid "Choose the output disk image format."
28401 msgstr ""
28402
28403 # type: textblock
28404 #: ../tools/virt-make-fs.pl:225
28405 msgid "The default is C<raw> (raw disk image)."
28406 msgstr ""
28407
28408 # type: textblock
28409 #: ../tools/virt-make-fs.pl:227
28410 msgid ""
28411 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
28412 "that would really make sense here is C<qcow2>."
28413 msgstr ""
28414
28415 # type: =item
28416 #: ../tools/virt-make-fs.pl:234
28417 msgid "B<--type=E<lt>fsE<gt>>"
28418 msgstr ""
28419
28420 # type: =item
28421 #: ../tools/virt-make-fs.pl:236
28422 msgid "B<-t E<lt>fsE<gt>>"
28423 msgstr ""
28424
28425 # type: textblock
28426 #: ../tools/virt-make-fs.pl:238
28427 msgid "Choose the output filesystem type."
28428 msgstr ""
28429
28430 # type: textblock
28431 #: ../tools/virt-make-fs.pl:240
28432 msgid "The default is C<ext2>."
28433 msgstr ""
28434
28435 # type: textblock
28436 #: ../tools/virt-make-fs.pl:242
28437 msgid "Any filesystem which is supported read-write by libguestfs can be used here."
28438 msgstr ""
28439
28440 # type: =item
28441 #: ../tools/virt-make-fs.pl:249
28442 msgid "B<--partition>"
28443 msgstr ""
28444
28445 # type: =item
28446 #: ../tools/virt-make-fs.pl:251
28447 msgid "B<--partition=E<lt>parttypeE<gt>>"
28448 msgstr ""
28449
28450 # type: textblock
28451 #: ../tools/virt-make-fs.pl:253
28452 msgid ""
28453 "If specified, this flag adds an MBR partition table to the output disk "
28454 "image."
28455 msgstr ""
28456
28457 # type: textblock
28458 #: ../tools/virt-make-fs.pl:256
28459 msgid ""
28460 "You can change the partition table type, eg. C<--partition=gpt> for large "
28461 "disks."
28462 msgstr ""
28463
28464 # type: textblock
28465 #: ../tools/virt-make-fs.pl:259
28466 msgid ""
28467 "Note that if you just use a lonesome C<--partition>, the Perl option parser "
28468 "might consider the next parameter to be the partition type.  For example:"
28469 msgstr ""
28470
28471 # type: verbatim
28472 #: ../tools/virt-make-fs.pl:263
28473 #, no-wrap
28474 msgid ""
28475 " virt-make-fs --partition input.tar ...\n"
28476 "\n"
28477 msgstr ""
28478
28479 # type: textblock
28480 #: ../tools/virt-make-fs.pl:265
28481 msgid ""
28482 "would cause virt-make-fs to think you wanted to use a partition type of "
28483 "C<input.tar> which is completely wrong.  To avoid this, use C<--> (a double "
28484 "dash) between options and the input file argument:"
28485 msgstr ""
28486
28487 # type: verbatim
28488 #: ../tools/virt-make-fs.pl:269
28489 #, no-wrap
28490 msgid ""
28491 " virt-make-fs --partition -- input.tar ...\n"
28492 "\n"
28493 msgstr ""
28494
28495 # type: textblock
28496 #: ../tools/virt-make-fs.pl:536
28497 msgid ""
28498 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar(1)>, L<mkisofs(1)>, "
28499 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, "
28500 "L<guestfs(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
28501 msgstr ""
28502
28503 # type: verbatim
28504 #: ../tools/virt-make-fs.pl:553
28505 #, no-wrap
28506 msgid ""
28507 " export LIBGUESTFS_DEBUG=1\n"
28508 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
28509 "\n"
28510 msgstr ""
28511
28512 # type: textblock
28513 #: ../tools/virt-make-fs.pl:556
28514 msgid ""
28515 "Attach /tmp/virt-make-fs.log to a new bug report at "
28516 "L<https://bugzilla.redhat.com/>"
28517 msgstr ""
28518
28519 # type: textblock
28520 #: ../tools/virt-list-partitions.pl:32
28521 msgid "virt-list-partitions - List partitions in a virtual machine or disk image"
28522 msgstr ""
28523
28524 # type: verbatim
28525 #: ../tools/virt-list-partitions.pl:36
28526 #, no-wrap
28527 msgid ""
28528 " virt-list-partitions [--options] domname\n"
28529 "\n"
28530 msgstr ""
28531
28532 # type: verbatim
28533 #: ../tools/virt-list-partitions.pl:38
28534 #, no-wrap
28535 msgid ""
28536 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
28537 "\n"
28538 msgstr ""
28539
28540 # type: textblock
28541 #: ../tools/virt-list-partitions.pl:42
28542 msgid ""
28543 "C<virt-list-partitions> is a command line tool to list the partitions that "
28544 "are contained in a virtual machine or disk image.  It is mainly useful as a "
28545 "first step to using L<virt-resize(1)>."
28546 msgstr ""
28547
28548 # type: textblock
28549 #: ../tools/virt-list-partitions.pl:47
28550 msgid ""
28551 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
28552 "functionality.  For more complex cases you should look at the "
28553 "L<guestfish(1)> tool."
28554 msgstr ""
28555
28556 # type: =item
28557 #: ../tools/virt-list-partitions.pl:104
28558 msgid "B<-h> | B<--human-readable>"
28559 msgstr ""
28560
28561 # type: textblock
28562 #: ../tools/virt-list-partitions.pl:106
28563 msgid "Show sizes in human-readable form (eg. \"1G\")."
28564 msgstr ""
28565
28566 # type: textblock
28567 #: ../tools/virt-list-partitions.pl:114
28568 msgid ""
28569 "With this option, C<virt-list-partitions> displays the type and size of each "
28570 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
28571 msgstr ""
28572
28573 # type: =item
28574 #: ../tools/virt-list-partitions.pl:121
28575 msgid "B<-t> | B<--total>"
28576 msgstr ""
28577
28578 # type: textblock
28579 #: ../tools/virt-list-partitions.pl:123
28580 msgid "Display the total size of each block device (as a separate row or rows)."
28581 msgstr ""
28582
28583 # type: textblock
28584 #: ../tools/virt-list-partitions.pl:256
28585 msgid ""
28586 "L<guestfs(3)>, L<guestfish(1)>, L<virt-list-filesystems(1)>, "
28587 "L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
28588 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
28589 msgstr ""