f1f9c3c674c073ed95b8cb80bf2b3a4972633f53
[libguestfs.git] / po-docs / ja.po
1 # SOME DESCRIPTIVE TITLE.
2 # Copyright (C) YEAR Free Software Foundation, Inc.
3 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
4 #
5 #, fuzzy
6 msgid ""
7 msgstr ""
8 "Project-Id-Version: PACKAGE VERSION\n"
9 "Report-Msgid-Bugs-To: libguestfs@redhat.com\n"
10 "POT-Creation-Date: 2010-11-19 22:30+0000\n"
11 "PO-Revision-Date: 2010-09-02 14:46+0100\n"
12 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13 "Language-Team: LANGUAGE <LL@li.org>\n"
14 "Language: \n"
15 "MIME-Version: 1.0\n"
16 "Content-Type: text/plain; charset=UTF-8\n"
17 "Content-Transfer-Encoding: 8bit\n"
18
19 # type: =encoding
20 #: ../src/guestfs.pod:1 ../fish/guestfish.pod:1
21 #: ../test-tool/libguestfs-test-tool.pod:1 ../fuse/guestmount.pod:1
22 #: ../tools/virt-edit.pl:30 ../tools/virt-win-reg.pl:33 ../tools/virt-df.pl:32
23 #: ../tools/virt-ls.pl:30 ../tools/virt-resize.pl:38
24 #: ../tools/virt-list-filesystems.pl:28 ../tools/virt-tar.pl:29
25 #: ../tools/virt-rescue.pl:29 ../tools/virt-make-fs.pl:33
26 #: ../tools/virt-list-partitions.pl:28
27 msgid "utf8"
28 msgstr ""
29
30 # type: =head1
31 #: ../src/guestfs.pod:3 ../fish/guestfish.pod:3
32 #: ../test-tool/libguestfs-test-tool.pod:3 ../fuse/guestmount.pod:3
33 #: ../tools/virt-edit.pl:32 ../tools/virt-win-reg.pl:35 ../tools/virt-df.pl:34
34 #: ../tools/virt-ls.pl:32 ../tools/virt-resize.pl:40
35 #: ../tools/virt-list-filesystems.pl:30 ../tools/virt-tar.pl:31
36 #: ../tools/virt-rescue.pl:31 ../tools/virt-make-fs.pl:35
37 #: ../tools/virt-list-partitions.pl:30
38 msgid "NAME"
39 msgstr "名前"
40
41 # type: textblock
42 #: ../src/guestfs.pod:5
43 msgid "guestfs - Library for accessing and modifying virtual machine images"
44 msgstr ""
45
46 # type: =head1
47 #: ../src/guestfs.pod:7 ../fish/guestfish.pod:7
48 #: ../test-tool/libguestfs-test-tool.pod:7 ../fuse/guestmount.pod:7
49 #: ../tools/virt-edit.pl:36 ../tools/virt-win-reg.pl:39 ../tools/virt-df.pl:38
50 #: ../tools/virt-ls.pl:36 ../tools/virt-resize.pl:44
51 #: ../tools/virt-list-filesystems.pl:34 ../tools/virt-tar.pl:35
52 #: ../tools/virt-rescue.pl:35 ../tools/virt-make-fs.pl:39
53 #: ../tools/virt-list-partitions.pl:34
54 msgid "SYNOPSIS"
55 msgstr ""
56
57 # type: verbatim
58 #: ../src/guestfs.pod:9
59 #, no-wrap
60 msgid ""
61 " #include <guestfs.h>\n"
62 " \n"
63 msgstr ""
64
65 # type: verbatim
66 #: ../src/guestfs.pod:11
67 #, no-wrap
68 msgid ""
69 " guestfs_h *g = guestfs_create ();\n"
70 " guestfs_add_drive (g, \"guest.img\");\n"
71 " guestfs_launch (g);\n"
72 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
73 " guestfs_touch (g, \"/hello\");\n"
74 " guestfs_umount (g, \"/\");\n"
75 " guestfs_sync (g);\n"
76 " guestfs_close (g);\n"
77 "\n"
78 msgstr ""
79
80 # type: verbatim
81 #: ../src/guestfs.pod:20
82 #, no-wrap
83 msgid ""
84 " cc prog.c -o prog -lguestfs\n"
85 "or:\n"
86 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
87 "\n"
88 msgstr ""
89
90 # type: =head1
91 #: ../src/guestfs.pod:24 ../fish/guestfish.pod:30
92 #: ../test-tool/libguestfs-test-tool.pod:11 ../fuse/guestmount.pod:20
93 #: ../tools/virt-edit.pl:50 ../tools/virt-win-reg.pl:63 ../tools/virt-df.pl:46
94 #: ../tools/virt-ls.pl:42 ../tools/virt-resize.pl:50
95 #: ../tools/virt-list-filesystems.pl:40 ../tools/virt-tar.pl:72
96 #: ../tools/virt-rescue.pl:51 ../tools/virt-make-fs.pl:47
97 #: ../tools/virt-list-partitions.pl:40
98 msgid "DESCRIPTION"
99 msgstr ""
100
101 # type: textblock
102 #: ../src/guestfs.pod:26
103 msgid ""
104 "Libguestfs is a library for accessing and modifying guest disk images.  "
105 "Amongst the things this is good for: making batch configuration changes to "
106 "guests, getting disk used/free statistics (see also: virt-df), migrating "
107 "between virtualization systems (see also: virt-p2v), performing partial "
108 "backups, performing partial guest clones, cloning guests and changing "
109 "registry/UUID/hostname info, and much else besides."
110 msgstr ""
111
112 # type: textblock
113 #: ../src/guestfs.pod:34
114 msgid ""
115 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
116 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
117 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
118 "qcow2, vmdk."
119 msgstr ""
120
121 # type: textblock
122 #: ../src/guestfs.pod:39
123 msgid ""
124 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
125 "what filesystem is in each LV, etc.).  It can also run commands in the "
126 "context of the guest.  Also you can access filesystems over FUSE."
127 msgstr ""
128
129 # type: textblock
130 #: ../src/guestfs.pod:44
131 msgid ""
132 "Libguestfs is a library that can be linked with C and C++ management "
133 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
134 "PHP, Haskell or C#).  You can also use it from shell scripts or the command "
135 "line."
136 msgstr ""
137
138 # type: textblock
139 #: ../src/guestfs.pod:49
140 msgid ""
141 "You don't need to be root to use libguestfs, although obviously you do need "
142 "enough permissions to access the disk images."
143 msgstr ""
144
145 # type: textblock
146 #: ../src/guestfs.pod:52
147 msgid ""
148 "Libguestfs is a large API because it can do many things.  For a gentle "
149 "introduction, please read the L</API OVERVIEW> section next."
150 msgstr ""
151
152 # type: =head1
153 #: ../src/guestfs.pod:55
154 msgid "API OVERVIEW"
155 msgstr ""
156
157 # type: textblock
158 #: ../src/guestfs.pod:57
159 msgid ""
160 "This section provides a gentler overview of the libguestfs API.  We also try "
161 "to group API calls together, where that may not be obvious from reading "
162 "about the individual calls in the main section of this manual."
163 msgstr ""
164
165 # type: =head2
166 #: ../src/guestfs.pod:62
167 msgid "HANDLES"
168 msgstr ""
169
170 # type: textblock
171 #: ../src/guestfs.pod:64
172 msgid ""
173 "Before you can use libguestfs calls, you have to create a handle.  Then you "
174 "must add at least one disk image to the handle, followed by launching the "
175 "handle, then performing whatever operations you want, and finally closing "
176 "the handle.  By convention we use the single letter C<g> for the name of the "
177 "handle variable, although of course you can use any name you want."
178 msgstr ""
179
180 # type: textblock
181 #: ../src/guestfs.pod:71
182 msgid "The general structure of all libguestfs-using programs looks like this:"
183 msgstr ""
184
185 # type: verbatim
186 #: ../src/guestfs.pod:74
187 #, no-wrap
188 msgid ""
189 " guestfs_h *g = guestfs_create ();\n"
190 " \n"
191 msgstr ""
192
193 # type: verbatim
194 #: ../src/guestfs.pod:76
195 #, no-wrap
196 msgid ""
197 " /* Call guestfs_add_drive additional times if there are\n"
198 "  * multiple disk images.\n"
199 "  */\n"
200 " guestfs_add_drive (g, \"guest.img\");\n"
201 " \n"
202 msgstr ""
203
204 # type: verbatim
205 #: ../src/guestfs.pod:81
206 #, no-wrap
207 msgid ""
208 " /* Most manipulation calls won't work until you've launched\n"
209 "  * the handle 'g'.  You have to do this _after_ adding drives\n"
210 "  * and _before_ other commands.\n"
211 "  */\n"
212 " guestfs_launch (g);\n"
213 " \n"
214 msgstr ""
215
216 # type: verbatim
217 #: ../src/guestfs.pod:87
218 #, no-wrap
219 msgid ""
220 " /* Now you can examine what partitions, LVs etc are available.\n"
221 "  */\n"
222 " char **partitions = guestfs_list_partitions (g);\n"
223 " char **logvols = guestfs_lvs (g);\n"
224 " \n"
225 msgstr ""
226
227 # type: verbatim
228 #: ../src/guestfs.pod:92
229 #, no-wrap
230 msgid ""
231 " /* To access a filesystem in the image, you must mount it.\n"
232 "  */\n"
233 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
234 " \n"
235 msgstr ""
236
237 # type: verbatim
238 #: ../src/guestfs.pod:96
239 #, no-wrap
240 msgid ""
241 " /* Now you can perform filesystem actions on the guest\n"
242 "  * disk image.\n"
243 "  */\n"
244 " guestfs_touch (g, \"/hello\");\n"
245 " \n"
246 msgstr ""
247
248 # type: verbatim
249 #: ../src/guestfs.pod:101
250 #, no-wrap
251 msgid ""
252 " /* You only need to call guestfs_sync if you have made\n"
253 "  * changes to the guest image.  (But if you've made changes\n"
254 "  * then you *must* sync).  See also: guestfs_umount and\n"
255 "  * guestfs_umount_all calls.\n"
256 "  */\n"
257 " guestfs_sync (g);\n"
258 " \n"
259 msgstr ""
260
261 # type: verbatim
262 #: ../src/guestfs.pod:108
263 #, no-wrap
264 msgid ""
265 " /* Close the handle 'g'. */\n"
266 " guestfs_close (g);\n"
267 "\n"
268 msgstr ""
269
270 # type: textblock
271 #: ../src/guestfs.pod:111
272 msgid ""
273 "The code above doesn't include any error checking.  In real code you should "
274 "check return values carefully for errors.  In general all functions that "
275 "return integers return C<-1> on error, and all functions that return "
276 "pointers return C<NULL> on error.  See section L</ERROR HANDLING> below for "
277 "how to handle errors, and consult the documentation for each function call "
278 "below to see precisely how they return error indications."
279 msgstr ""
280
281 # type: =head2
282 #: ../src/guestfs.pod:119
283 msgid "DISK IMAGES"
284 msgstr ""
285
286 # type: textblock
287 #: ../src/guestfs.pod:121
288 msgid ""
289 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
290 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
291 "actual block device, or simply an empty file of zeroes that you have created "
292 "through L<posix_fallocate(3)>.  Libguestfs lets you do useful things to all "
293 "of these."
294 msgstr ""
295
296 # type: textblock
297 #: ../src/guestfs.pod:127
298 msgid ""
299 "The call you should use in modern code for adding drives is L</"
300 "guestfs_add_drive_opts>.  To add a disk image, allowing writes, and "
301 "specifying that the format is raw, do:"
302 msgstr ""
303
304 # type: verbatim
305 #: ../src/guestfs.pod:131
306 #, no-wrap
307 msgid ""
308 " guestfs_add_drive_opts (g, filename,\n"
309 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
310 "                         -1);\n"
311 "\n"
312 msgstr ""
313
314 # type: textblock
315 #: ../src/guestfs.pod:135
316 msgid "You can add a disk read-only using:"
317 msgstr ""
318
319 # type: verbatim
320 #: ../src/guestfs.pod:137
321 #, no-wrap
322 msgid ""
323 " guestfs_add_drive_opts (g, filename,\n"
324 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
325 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
326 "                         -1);\n"
327 "\n"
328 msgstr ""
329
330 # type: textblock
331 #: ../src/guestfs.pod:142
332 msgid ""
333 "or by calling the older function L</guestfs_add_drive_ro>.  In either case "
334 "libguestfs won't modify the file."
335 msgstr ""
336
337 # type: textblock
338 #: ../src/guestfs.pod:145
339 msgid ""
340 "Be extremely cautious if the disk image is in use, eg. if it is being used "
341 "by a virtual machine.  Adding it read-write will almost certainly cause disk "
342 "corruption, but adding it read-only is safe."
343 msgstr ""
344
345 # type: textblock
346 #: ../src/guestfs.pod:149
347 msgid ""
348 "You must add at least one disk image, and you may add multiple disk images.  "
349 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
350 "first one you added), C</dev/sdb> (for the second one you added), etc."
351 msgstr ""
352
353 # type: textblock
354 #: ../src/guestfs.pod:154
355 msgid ""
356 "Once L</guestfs_launch> has been called you cannot add any more images.  You "
357 "can call L</guestfs_list_devices> to get a list of the device names, in the "
358 "order that you added them.  See also L</BLOCK DEVICE NAMING> below."
359 msgstr ""
360
361 # type: =head2
362 #: ../src/guestfs.pod:159
363 msgid "MOUNTING"
364 msgstr ""
365
366 # type: textblock
367 #: ../src/guestfs.pod:161
368 msgid ""
369 "Before you can read or write files, create directories and so on in a disk "
370 "image that contains filesystems, you have to mount those filesystems using "
371 "L</guestfs_mount>.  If you already know that a disk image contains (for "
372 "example) one partition with a filesystem on that partition, then you can "
373 "mount it directly:"
374 msgstr ""
375
376 # type: verbatim
377 #: ../src/guestfs.pod:167
378 #, no-wrap
379 msgid ""
380 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
381 "\n"
382 msgstr ""
383
384 # type: textblock
385 #: ../src/guestfs.pod:169
386 msgid ""
387 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
388 "disk image that we added (C</dev/sda>).  If the disk contains Linux LVM2 "
389 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>)."
390 msgstr ""
391
392 # type: textblock
393 #: ../src/guestfs.pod:173
394 msgid ""
395 "If you are given a disk image and you don't know what it contains then you "
396 "have to find out.  Libguestfs can do that too: use L</"
397 "guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions and "
398 "LVs, and either try mounting each to see what is mountable, or else examine "
399 "them with L</guestfs_vfs_type> or L</guestfs_file>.  Libguestfs also has a "
400 "set of APIs for inspection of disk images (see L</INSPECTION> below).  But "
401 "you might find it easier to look at higher level programs built on top of "
402 "libguestfs, in particular L<virt-inspector(1)>."
403 msgstr ""
404
405 # type: textblock
406 #: ../src/guestfs.pod:183
407 msgid ""
408 "To mount a disk image read-only, use L</guestfs_mount_ro>.  There are "
409 "several other variations of the C<guestfs_mount_*> call."
410 msgstr ""
411
412 # type: =head2
413 #: ../src/guestfs.pod:186
414 msgid "FILESYSTEM ACCESS AND MODIFICATION"
415 msgstr ""
416
417 # type: textblock
418 #: ../src/guestfs.pod:188
419 msgid ""
420 "The majority of the libguestfs API consists of fairly low-level calls for "
421 "accessing and modifying the files, directories, symlinks etc on mounted "
422 "filesystems.  There are over a hundred such calls which you can find listed "
423 "in detail below in this man page, and we don't even pretend to cover them "
424 "all in this overview."
425 msgstr ""
426
427 # type: textblock
428 #: ../src/guestfs.pod:194
429 msgid ""
430 "Specify filenames as full paths, starting with C<\"/\"> and including the "
431 "mount point."
432 msgstr ""
433
434 # type: textblock
435 #: ../src/guestfs.pod:197
436 msgid ""
437 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
438 "the file called C<\"etc/passwd\"> then you could do:"
439 msgstr ""
440
441 # type: verbatim
442 #: ../src/guestfs.pod:200
443 #, no-wrap
444 msgid ""
445 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
446 "\n"
447 msgstr ""
448
449 # type: textblock
450 #: ../src/guestfs.pod:202
451 msgid ""
452 "This would return C<data> as a newly allocated buffer containing the full "
453 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
454 "or C<NULL> if there was an error."
455 msgstr ""
456
457 # type: textblock
458 #: ../src/guestfs.pod:206
459 msgid ""
460 "As another example, to create a top-level directory on that filesystem "
461 "called C<\"var\"> you would do:"
462 msgstr ""
463
464 # type: verbatim
465 #: ../src/guestfs.pod:209
466 #, no-wrap
467 msgid ""
468 " guestfs_mkdir (g, \"/var\");\n"
469 "\n"
470 msgstr ""
471
472 # type: textblock
473 #: ../src/guestfs.pod:211
474 msgid "To create a symlink you could do:"
475 msgstr ""
476
477 # type: verbatim
478 #: ../src/guestfs.pod:213
479 #, no-wrap
480 msgid ""
481 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
482 "               \"/etc/rc3.d/S30portmap\");\n"
483 "\n"
484 msgstr ""
485
486 # type: textblock
487 #: ../src/guestfs.pod:216
488 msgid ""
489 "Libguestfs will reject attempts to use relative paths and there is no "
490 "concept of a current working directory."
491 msgstr ""
492
493 # type: textblock
494 #: ../src/guestfs.pod:219
495 msgid ""
496 "Libguestfs can return errors in many situations: for example if the "
497 "filesystem isn't writable, or if a file or directory that you requested "
498 "doesn't exist.  If you are using the C API (documented here)  you have to "
499 "check for those error conditions after each call.  (Other language bindings "
500 "turn these errors into exceptions)."
501 msgstr ""
502
503 # type: textblock
504 #: ../src/guestfs.pod:225
505 msgid ""
506 "File writes are affected by the per-handle umask, set by calling L</"
507 "guestfs_umask> and defaulting to 022.  See L</UMASK>."
508 msgstr ""
509
510 # type: =head2
511 #: ../src/guestfs.pod:228
512 msgid "PARTITIONING"
513 msgstr ""
514
515 # type: textblock
516 #: ../src/guestfs.pod:230
517 msgid ""
518 "Libguestfs contains API calls to read, create and modify partition tables on "
519 "disk images."
520 msgstr ""
521
522 # type: textblock
523 #: ../src/guestfs.pod:233
524 msgid ""
525 "In the common case where you want to create a single partition covering the "
526 "whole disk, you should use the L</guestfs_part_disk> call:"
527 msgstr ""
528
529 # type: verbatim
530 #: ../src/guestfs.pod:237
531 #, no-wrap
532 msgid ""
533 " const char *parttype = \"mbr\";\n"
534 " if (disk_is_larger_than_2TB)\n"
535 "   parttype = \"gpt\";\n"
536 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
537 "\n"
538 msgstr ""
539
540 # type: textblock
541 #: ../src/guestfs.pod:242
542 msgid ""
543 "Obviously this effectively wipes anything that was on that disk image before."
544 msgstr ""
545
546 # type: =head2
547 #: ../src/guestfs.pod:245
548 msgid "LVM2"
549 msgstr ""
550
551 # type: textblock
552 #: ../src/guestfs.pod:247
553 msgid ""
554 "Libguestfs provides access to a large part of the LVM2 API, such as L</"
555 "guestfs_lvcreate> and L</guestfs_vgremove>.  It won't make much sense unless "
556 "you familiarize yourself with the concepts of physical volumes, volume "
557 "groups and logical volumes."
558 msgstr ""
559
560 # type: textblock
561 #: ../src/guestfs.pod:252
562 msgid ""
563 "This author strongly recommends reading the LVM HOWTO, online at L<http://"
564 "tldp.org/HOWTO/LVM-HOWTO/>."
565 msgstr ""
566
567 # type: =head2
568 #: ../src/guestfs.pod:255
569 msgid "DOWNLOADING"
570 msgstr ""
571
572 # type: textblock
573 #: ../src/guestfs.pod:257
574 msgid ""
575 "Use L</guestfs_cat> to download small, text only files.  This call is "
576 "limited to files which are less than 2 MB and which cannot contain any ASCII "
577 "NUL (C<\\0>) characters.  However it has a very simple to use API."
578 msgstr ""
579
580 # type: textblock
581 #: ../src/guestfs.pod:262
582 msgid ""
583 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
584 "bit data, since it returns a (pointer, size) pair.  However it is still "
585 "limited to \"small\" files, less than 2 MB."
586 msgstr ""
587
588 # type: textblock
589 #: ../src/guestfs.pod:266
590 msgid ""
591 "L</guestfs_download> can be used to download any file, with no limits on "
592 "content or size (even files larger than 4 GB)."
593 msgstr ""
594
595 # type: textblock
596 #: ../src/guestfs.pod:269
597 msgid ""
598 "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
599 msgstr ""
600
601 # type: =head2
602 #: ../src/guestfs.pod:272
603 msgid "UPLOADING"
604 msgstr ""
605
606 # type: textblock
607 #: ../src/guestfs.pod:274
608 msgid ""
609 "It's often the case that you want to write a file or files to the disk image."
610 msgstr ""
611
612 # type: textblock
613 #: ../src/guestfs.pod:277
614 msgid ""
615 "To write a small file with fixed content, use L</guestfs_write>.  To create "
616 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or L</"
617 "guestfs_fallocate64> (with all disk blocks allocated).  There are a variety "
618 "of other functions for creating test files, for example L</guestfs_fill> and "
619 "L</guestfs_fill_pattern>."
620 msgstr ""
621
622 # type: textblock
623 #: ../src/guestfs.pod:283
624 msgid ""
625 "To upload a single file, use L</guestfs_upload>.  This call has no limits on "
626 "file content or size (even files larger than 4 GB)."
627 msgstr ""
628
629 # type: textblock
630 #: ../src/guestfs.pod:286
631 msgid ""
632 "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
633 msgstr ""
634
635 # type: textblock
636 #: ../src/guestfs.pod:288
637 msgid ""
638 "However the fastest way to upload I<large numbers of arbitrary files> is to "
639 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and L<mkisofs(8)"
640 ">), then attach this using L</guestfs_add_drive_ro>.  If you add the drive "
641 "in a predictable way (eg. adding it last after all other drives) then you "
642 "can get the device name from L</guestfs_list_devices> and mount it directly "
643 "using L</guestfs_mount_ro>.  Note that squashfs images are sometimes non-"
644 "portable between kernel versions, and they don't support labels or UUIDs.  "
645 "If you want to pre-build an image or you need to mount it using a label or "
646 "UUID, use an ISO image instead."
647 msgstr ""
648
649 # type: =head2
650 #: ../src/guestfs.pod:299
651 msgid "COPYING"
652 msgstr ""
653
654 # type: textblock
655 #: ../src/guestfs.pod:301
656 msgid ""
657 "There are various different commands for copying between files and devices "
658 "and in and out of the guest filesystem.  These are summarised in the table "
659 "below."
660 msgstr ""
661
662 # type: =item
663 #: ../src/guestfs.pod:307
664 msgid "B<file> to B<file>"
665 msgstr ""
666
667 # type: textblock
668 #: ../src/guestfs.pod:309
669 msgid ""
670 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
671 "directories recursively."
672 msgstr ""
673
674 # type: =item
675 #: ../src/guestfs.pod:312
676 msgid "B<file or device> to B<file or device>"
677 msgstr ""
678
679 # type: textblock
680 #: ../src/guestfs.pod:314
681 msgid ""
682 "Use L</guestfs_dd> which efficiently uses L<dd(1)> to copy between files and "
683 "devices in the guest."
684 msgstr ""
685
686 # type: textblock
687 #: ../src/guestfs.pod:317
688 msgid "Example: duplicate the contents of an LV:"
689 msgstr ""
690
691 # type: verbatim
692 #: ../src/guestfs.pod:319
693 #, no-wrap
694 msgid ""
695 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
696 "\n"
697 msgstr ""
698
699 # type: textblock
700 #: ../src/guestfs.pod:321
701 msgid ""
702 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
703 "(C</dev/VG/Original>).  To copy less than the whole source device, use L</"
704 "guestfs_copy_size>."
705 msgstr ""
706
707 # type: =item
708 #: ../src/guestfs.pod:325
709 msgid "B<file on the host> to B<file or device>"
710 msgstr ""
711
712 # type: textblock
713 #: ../src/guestfs.pod:327
714 msgid "Use L</guestfs_upload>.  See L</UPLOADING> above."
715 msgstr ""
716
717 # type: =item
718 #: ../src/guestfs.pod:329
719 msgid "B<file or device> to B<file on the host>"
720 msgstr ""
721
722 # type: textblock
723 #: ../src/guestfs.pod:331
724 msgid "Use L</guestfs_download>.  See L</DOWNLOADING> above."
725 msgstr ""
726
727 # type: =head2
728 #: ../src/guestfs.pod:335
729 msgid "LISTING FILES"
730 msgstr ""
731
732 # type: textblock
733 #: ../src/guestfs.pod:337
734 msgid ""
735 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
736 "L<guestfish(1)>-equivalent command C<ll>)."
737 msgstr ""
738
739 # type: textblock
740 #: ../src/guestfs.pod:340
741 msgid ""
742 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
743 "programs, as a flat list of strings."
744 msgstr ""
745
746 # type: textblock
747 #: ../src/guestfs.pod:343
748 msgid ""
749 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
750 "directory, plus additional information about each one.  It is more "
751 "equivalent to using the L<readdir(3)> call on a local filesystem."
752 msgstr ""
753
754 # type: textblock
755 #: ../src/guestfs.pod:347
756 msgid ""
757 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list files."
758 msgstr ""
759
760 # type: =head2
761 #: ../src/guestfs.pod:350
762 msgid "RUNNING COMMANDS"
763 msgstr ""
764
765 # type: textblock
766 #: ../src/guestfs.pod:352
767 msgid ""
768 "Although libguestfs is primarily an API for manipulating files inside guest "
769 "images, we also provide some limited facilities for running commands inside "
770 "guests."
771 msgstr ""
772
773 # type: textblock
774 #: ../src/guestfs.pod:356
775 msgid "There are many limitations to this:"
776 msgstr ""
777
778 # type: =item
779 #: ../src/guestfs.pod:360 ../src/guestfs.pod:365 ../src/guestfs.pod:370
780 #: ../src/guestfs.pod:374 ../src/guestfs.pod:379 ../src/guestfs.pod:383
781 #: ../src/guestfs.pod:388 ../src/guestfs.pod:393 ../src/guestfs.pod:957
782 #: ../src/guestfs.pod:961 ../src/guestfs.pod:965 ../src/guestfs.pod:970
783 #: ../src/guestfs.pod:978 ../src/guestfs.pod:997 ../src/guestfs.pod:1005
784 #: ../src/guestfs.pod:1027 ../src/guestfs.pod:1031 ../src/guestfs.pod:1035
785 #: ../src/guestfs.pod:1039 ../src/guestfs.pod:1043 ../src/guestfs.pod:1047
786 #: ../src/guestfs.pod:1529 ../src/guestfs.pod:1534 ../src/guestfs.pod:1538
787 #: ../src/guestfs.pod:1648 ../src/guestfs.pod:1653 ../src/guestfs.pod:1657
788 #: ../src/guestfs.pod:2001 ../src/guestfs.pod:2007 ../src/guestfs.pod:2012
789 #: ../src/guestfs.pod:2018 ../src/guestfs.pod:2125 ../src/guestfs.pod:2129
790 #: ../src/guestfs.pod:2133 ../src/guestfs.pod:2137
791 #: ../src/guestfs-actions.pod:15 ../src/guestfs-actions.pod:22
792 #: ../src/guestfs-actions.pod:569 ../src/guestfs-actions.pod:577
793 #: ../src/guestfs-actions.pod:584 ../src/guestfs-actions.pod:591
794 #: ../src/guestfs-actions.pod:1587 ../src/guestfs-actions.pod:1591
795 #: ../src/guestfs-actions.pod:1595 ../src/guestfs-actions.pod:1599
796 #: ../src/guestfs-actions.pod:1607 ../src/guestfs-actions.pod:1611
797 #: ../src/guestfs-actions.pod:1615 ../src/guestfs-actions.pod:1625
798 #: ../src/guestfs-actions.pod:1629 ../src/guestfs-actions.pod:1633
799 #: ../src/guestfs-actions.pod:1771 ../src/guestfs-actions.pod:1775
800 #: ../src/guestfs-actions.pod:1780 ../src/guestfs-actions.pod:1785
801 #: ../src/guestfs-actions.pod:1846 ../src/guestfs-actions.pod:1850
802 #: ../src/guestfs-actions.pod:1855 ../fish/guestfish.pod:376
803 #: ../fish/guestfish.pod:380 ../fish/guestfish.pod:384
804 #: ../fish/guestfish.pod:388 ../fish/guestfish-actions.pod:13
805 #: ../fish/guestfish-actions.pod:20 ../fish/guestfish-actions.pod:375
806 #: ../fish/guestfish-actions.pod:383 ../fish/guestfish-actions.pod:390
807 #: ../fish/guestfish-actions.pod:397 ../fish/guestfish-actions.pod:1067
808 #: ../fish/guestfish-actions.pod:1071 ../fish/guestfish-actions.pod:1075
809 #: ../fish/guestfish-actions.pod:1079 ../fish/guestfish-actions.pod:1087
810 #: ../fish/guestfish-actions.pod:1091 ../fish/guestfish-actions.pod:1095
811 #: ../fish/guestfish-actions.pod:1105 ../fish/guestfish-actions.pod:1109
812 #: ../fish/guestfish-actions.pod:1113 ../fish/guestfish-actions.pod:1203
813 #: ../fish/guestfish-actions.pod:1207 ../fish/guestfish-actions.pod:1212
814 #: ../fish/guestfish-actions.pod:1217 ../fish/guestfish-actions.pod:1259
815 #: ../fish/guestfish-actions.pod:1263 ../fish/guestfish-actions.pod:1268
816 #: ../tools/virt-df.pl:161 ../tools/virt-df.pl:167 ../tools/virt-resize.pl:348
817 #: ../tools/virt-resize.pl:353 ../tools/virt-resize.pl:363
818 msgid "*"
819 msgstr ""
820
821 # type: textblock
822 #: ../src/guestfs.pod:362
823 msgid ""
824 "The kernel version that the command runs under will be different from what "
825 "it expects."
826 msgstr ""
827
828 # type: textblock
829 #: ../src/guestfs.pod:367
830 msgid ""
831 "If the command needs to communicate with daemons, then most likely they "
832 "won't be running."
833 msgstr ""
834
835 # type: textblock
836 #: ../src/guestfs.pod:372
837 msgid "The command will be running in limited memory."
838 msgstr ""
839
840 # type: textblock
841 #: ../src/guestfs.pod:376
842 msgid ""
843 "The network may not be available unless you enable it (see L</"
844 "guestfs_set_network>)."
845 msgstr ""
846
847 # type: textblock
848 #: ../src/guestfs.pod:381
849 msgid "Only supports Linux guests (not Windows, BSD, etc)."
850 msgstr ""
851
852 # type: textblock
853 #: ../src/guestfs.pod:385
854 msgid ""
855 "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
856 msgstr ""
857
858 # type: textblock
859 #: ../src/guestfs.pod:390
860 msgid ""
861 "For SELinux guests, you may need to enable SELinux and load policy first.  "
862 "See L</SELINUX> in this manpage."
863 msgstr ""
864
865 # type: textblock
866 #: ../src/guestfs.pod:395
867 msgid ""
868 "I<Security:> It is not safe to run commands from untrusted, possibly "
869 "malicious guests.  These commands may attempt to exploit your program by "
870 "sending unexpected output.  They could also try to exploit the Linux kernel "
871 "or qemu provided by the libguestfs appliance.  They could use the network "
872 "provided by the libguestfs appliance to bypass ordinary network partitions "
873 "and firewalls.  They could use the elevated privileges or different SELinux "
874 "context of your program to their advantage."
875 msgstr ""
876
877 # type: textblock
878 #: ../src/guestfs.pod:404
879 msgid ""
880 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
881 "(a script which runs when the guest next boots normally), and to have this "
882 "script run the commands you want in the normal context of the running guest, "
883 "network security and so on.  For information about other security issues, "
884 "see L</SECURITY>."
885 msgstr ""
886
887 # type: textblock
888 #: ../src/guestfs.pod:412
889 msgid ""
890 "The two main API calls to run commands are L</guestfs_command> and L</"
891 "guestfs_sh> (there are also variations)."
892 msgstr ""
893
894 # type: textblock
895 #: ../src/guestfs.pod:415
896 msgid ""
897 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
898 "shell globs, redirections, etc will work."
899 msgstr ""
900
901 # type: =head2
902 #: ../src/guestfs.pod:418
903 msgid "CONFIGURATION FILES"
904 msgstr ""
905
906 # type: textblock
907 #: ../src/guestfs.pod:420
908 msgid ""
909 "To read and write configuration files in Linux guest filesystems, we "
910 "strongly recommend using Augeas.  For example, Augeas understands how to "
911 "read and write, say, a Linux shadow password file or X.org configuration "
912 "file, and so avoids you having to write that code."
913 msgstr ""
914
915 # type: textblock
916 #: ../src/guestfs.pod:425
917 msgid ""
918 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't "
919 "document Augeas itself here because there is excellent documentation on the "
920 "L<http://augeas.net/> website."
921 msgstr ""
922
923 # type: textblock
924 #: ../src/guestfs.pod:429
925 msgid ""
926 "If you don't want to use Augeas (you fool!) then try calling L</"
927 "guestfs_read_lines> to get the file as a list of lines which you can iterate "
928 "over."
929 msgstr ""
930
931 # type: =head2
932 #: ../src/guestfs.pod:433
933 msgid "SELINUX"
934 msgstr ""
935
936 # type: textblock
937 #: ../src/guestfs.pod:435
938 msgid ""
939 "We support SELinux guests.  To ensure that labeling happens correctly in "
940 "SELinux guests, you need to enable SELinux and load the guest's policy:"
941 msgstr ""
942
943 # type: =item
944 #: ../src/guestfs.pod:441 ../src/guestfs.pod:1150 ../src/guestfs.pod:1281
945 msgid "1."
946 msgstr ""
947
948 # type: textblock
949 #: ../src/guestfs.pod:443
950 msgid "Before launching, do:"
951 msgstr ""
952
953 # type: verbatim
954 #: ../src/guestfs.pod:445
955 #, no-wrap
956 msgid ""
957 " guestfs_set_selinux (g, 1);\n"
958 "\n"
959 msgstr ""
960
961 # type: =item
962 #: ../src/guestfs.pod:447 ../src/guestfs.pod:1154 ../src/guestfs.pod:1285
963 msgid "2."
964 msgstr ""
965
966 # type: textblock
967 #: ../src/guestfs.pod:449
968 msgid ""
969 "After mounting the guest's filesystem(s), load the policy.  This is best "
970 "done by running the L<load_policy(8)> command in the guest itself:"
971 msgstr ""
972
973 # type: verbatim
974 #: ../src/guestfs.pod:453
975 #, no-wrap
976 msgid ""
977 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
978 "\n"
979 msgstr ""
980
981 # type: textblock
982 #: ../src/guestfs.pod:455
983 msgid ""
984 "(Older versions of C<load_policy> require you to specify the name of the "
985 "policy file)."
986 msgstr ""
987
988 # type: =item
989 #: ../src/guestfs.pod:458 ../src/guestfs.pod:1291
990 msgid "3."
991 msgstr ""
992
993 # type: textblock
994 #: ../src/guestfs.pod:460
995 msgid ""
996 "Optionally, set the security context for the API.  The correct security "
997 "context to use can only be known by inspecting the guest.  As an example:"
998 msgstr ""
999
1000 # type: verbatim
1001 #: ../src/guestfs.pod:464
1002 #, no-wrap
1003 msgid ""
1004 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
1005 "\n"
1006 msgstr ""
1007
1008 # type: textblock
1009 #: ../src/guestfs.pod:468
1010 msgid "This will work for running commands and editing existing files."
1011 msgstr ""
1012
1013 # type: textblock
1014 #: ../src/guestfs.pod:470
1015 msgid ""
1016 "When new files are created, you may need to label them explicitly, for "
1017 "example by running the external command C<restorecon pathname>."
1018 msgstr ""
1019
1020 # type: =head2
1021 #: ../src/guestfs.pod:474
1022 msgid "UMASK"
1023 msgstr ""
1024
1025 # type: textblock
1026 #: ../src/guestfs.pod:476
1027 msgid ""
1028 "Certain calls are affected by the current file mode creation mask (the "
1029 "\"umask\").  In particular ones which create files or directories, such as "
1030 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
1031 "either the default mode that the file is created with or modifies the mode "
1032 "that you supply."
1033 msgstr ""
1034
1035 # type: textblock
1036 #: ../src/guestfs.pod:482
1037 msgid ""
1038 "The default umask is C<022>, so files are created with modes such as C<0644> "
1039 "and directories with C<0755>."
1040 msgstr ""
1041
1042 # type: textblock
1043 #: ../src/guestfs.pod:485
1044 msgid ""
1045 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
1046 "(call C<guestfs_umask (g, 0)> early after launching).  Or call L</"
1047 "guestfs_chmod> after creating each file or directory."
1048 msgstr ""
1049
1050 # type: textblock
1051 #: ../src/guestfs.pod:489
1052 msgid "For more information about umask, see L<umask(2)>."
1053 msgstr ""
1054
1055 # type: =head1
1056 #: ../src/guestfs.pod:491 ../fish/guestfish.pod:669
1057 msgid "ENCRYPTED DISKS"
1058 msgstr ""
1059
1060 # type: textblock
1061 #: ../src/guestfs.pod:493
1062 msgid ""
1063 "Libguestfs allows you to access Linux guests which have been encrypted using "
1064 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
1065 "standard.  This includes nearly all whole disk encryption systems used by "
1066 "modern Linux guests."
1067 msgstr ""
1068
1069 # type: textblock
1070 #: ../src/guestfs.pod:499
1071 msgid ""
1072 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
1073 "returns the string C<crypto_LUKS>)."
1074 msgstr ""
1075
1076 # type: textblock
1077 #: ../src/guestfs.pod:502
1078 msgid ""
1079 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
1080 "will require the passphrase!"
1081 msgstr ""
1082
1083 # type: textblock
1084 #: ../src/guestfs.pod:505
1085 msgid ""
1086 "Opening a LUKS device creates a new device mapper device called C</dev/"
1087 "mapper/mapname> (where C<mapname> is the string you supply to L</"
1088 "guestfs_luks_open>).  Reads and writes to this mapper device are decrypted "
1089 "from and encrypted to the underlying block device respectively."
1090 msgstr ""
1091
1092 # type: textblock
1093 #: ../src/guestfs.pod:511
1094 msgid ""
1095 "LVM volume groups on the device can be made visible by calling L</"
1096 "guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical volume"
1097 "(s) can now be mounted in the usual way."
1098 msgstr ""
1099
1100 # type: textblock
1101 #: ../src/guestfs.pod:515
1102 msgid ""
1103 "Use the reverse process to close a LUKS device.  Unmount any logical volumes "
1104 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
1105 "[\"/dev/VG\"])>.  Then close the mapper device by calling L</"
1106 "guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
1107 "underlying encrypted block device)."
1108 msgstr ""
1109
1110 # type: =head2
1111 #: ../src/guestfs.pod:522
1112 msgid "INSPECTION"
1113 msgstr ""
1114
1115 # type: textblock
1116 #: ../src/guestfs.pod:524
1117 msgid ""
1118 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
1119 "contains operating systems.  (These APIs used to be in a separate Perl-only "
1120 "library called L<Sys::Guestfs::Lib(3)> but since version 1.5.3 the most "
1121 "frequently used part of this library has been rewritten in C and moved into "
1122 "the core code)."
1123 msgstr ""
1124
1125 # type: textblock
1126 #: ../src/guestfs.pod:530
1127 msgid ""
1128 "Add all disks belonging to the unknown virtual machine and call L</"
1129 "guestfs_launch> in the usual way."
1130 msgstr ""
1131
1132 # type: textblock
1133 #: ../src/guestfs.pod:533
1134 msgid ""
1135 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
1136 "and certain heuristics, and returns a list of operating systems that were "
1137 "found.  An empty list means none were found.  A single element is the root "
1138 "filesystem of the operating system.  For dual- or multi-boot guests, "
1139 "multiple roots can be returned, each one corresponding to a separate "
1140 "operating system.  (Multi-boot virtual machines are extremely rare in the "
1141 "world of virtualization, but since this scenario can happen, we have built "
1142 "libguestfs to deal with it.)"
1143 msgstr ""
1144
1145 # type: textblock
1146 #: ../src/guestfs.pod:542
1147 msgid ""
1148 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
1149 "to get additional details about that operating system.  For example, call L</"
1150 "guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
1151 "Windows and Linux-based operating systems respectively."
1152 msgstr ""
1153
1154 # type: textblock
1155 #: ../src/guestfs.pod:548
1156 msgid ""
1157 "Un*x-like and Linux-based operating systems usually consist of several "
1158 "filesystems which are mounted at boot time (for example, a separate boot "
1159 "partition mounted on C</boot>).  The inspection rules are able to detect how "
1160 "filesystems correspond to mount points.  Call "
1161 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
1162 "hash table like this example:"
1163 msgstr ""
1164
1165 # type: verbatim
1166 #: ../src/guestfs.pod:555
1167 #, no-wrap
1168 msgid ""
1169 " /boot => /dev/sda1\n"
1170 " /     => /dev/vg_guest/lv_root\n"
1171 " /usr  => /dev/vg_guest/lv_usr\n"
1172 "\n"
1173 msgstr ""
1174
1175 # type: textblock
1176 #: ../src/guestfs.pod:559
1177 msgid ""
1178 "The caller can then make calls to L</guestfs_mount_options> to mount the "
1179 "filesystems as suggested."
1180 msgstr ""
1181
1182 # type: textblock
1183 #: ../src/guestfs.pod:562
1184 msgid ""
1185 "Be careful to mount filesystems in the right order (eg. C</> before C</"
1186 "usr>).  Sorting the keys of the hash by length, shortest first, should work."
1187 msgstr ""
1188
1189 # type: textblock
1190 #: ../src/guestfs.pod:566
1191 msgid ""
1192 "Inspection currently only works for some common operating systems.  "
1193 "Contributors are welcome to send patches for other operating systems that we "
1194 "currently cannot detect."
1195 msgstr ""
1196
1197 # type: textblock
1198 #: ../src/guestfs.pod:570
1199 msgid ""
1200 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
1201 "for more details.  The L</guestfs_inspect_os> function just ignores any "
1202 "encrypted devices."
1203 msgstr ""
1204
1205 # type: textblock
1206 #: ../src/guestfs.pod:574
1207 msgid ""
1208 "A note on the implementation: The call L</guestfs_inspect_os> performs "
1209 "inspection and caches the results in the guest handle.  Subsequent calls to "
1210 "C<guestfs_inspect_get_*> return this cached information, but I<do not> re-"
1211 "read the disks.  If you change the content of the guest disks, you can redo "
1212 "inspection by calling L</guestfs_inspect_os> again.  (L</"
1213 "guestfs_inspect_list_applications> works a little differently from the other "
1214 "calls and does read the disks.  See documentation for that function for "
1215 "details)."
1216 msgstr ""
1217
1218 # type: =head2
1219 #: ../src/guestfs.pod:583
1220 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
1221 msgstr ""
1222
1223 # type: textblock
1224 #: ../src/guestfs.pod:585
1225 msgid ""
1226 "Libguestfs can mount NTFS partitions.  It does this using the L<http://www."
1227 "ntfs-3g.org/> driver."
1228 msgstr ""
1229
1230 # type: textblock
1231 #: ../src/guestfs.pod:588
1232 msgid ""
1233 "DOS and Windows still use drive letters, and the filesystems are always "
1234 "treated as case insensitive by Windows itself, and therefore you might find "
1235 "a Windows configuration file referring to a path like C<c:\\windows"
1236 "\\system32>.  When the filesystem is mounted in libguestfs, that directory "
1237 "might be referred to as C</WINDOWS/System32>."
1238 msgstr ""
1239
1240 # type: textblock
1241 #: ../src/guestfs.pod:594
1242 msgid ""
1243 "Drive letter mappings are outside the scope of libguestfs.  You have to use "
1244 "libguestfs to read the appropriate Windows Registry and configuration files, "
1245 "to determine yourself how drives are mapped (see also L<hivex(3)> and L<virt-"
1246 "inspector(1)>)."
1247 msgstr ""
1248
1249 # type: textblock
1250 #: ../src/guestfs.pod:599
1251 msgid ""
1252 "Replacing backslash characters with forward slash characters is also outside "
1253 "the scope of libguestfs, but something that you can easily do."
1254 msgstr ""
1255
1256 # type: textblock
1257 #: ../src/guestfs.pod:602
1258 msgid ""
1259 "Where we can help is in resolving the case insensitivity of paths.  For "
1260 "this, call L</guestfs_case_sensitive_path>."
1261 msgstr ""
1262
1263 # type: textblock
1264 #: ../src/guestfs.pod:605
1265 msgid ""
1266 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
1267 "files, through the library C<hivex> which is part of the libguestfs project "
1268 "although ships as a separate tarball.  You have to locate and download the "
1269 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
1270 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and L<virt-win-"
1271 "reg(1)> for more help on this issue."
1272 msgstr ""
1273
1274 # type: =head2
1275 #: ../src/guestfs.pod:613
1276 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
1277 msgstr ""
1278
1279 # type: textblock
1280 #: ../src/guestfs.pod:615
1281 msgid ""
1282 "Although we don't want to discourage you from using the C API, we will "
1283 "mention here that the same API is also available in other languages."
1284 msgstr ""
1285
1286 # type: textblock
1287 #: ../src/guestfs.pod:618
1288 msgid ""
1289 "The API is broadly identical in all supported languages.  This means that "
1290 "the C call C<guestfs_mount(g,path)> is C<$g-E<gt>mount($path)> in Perl, C<g."
1291 "mount(path)> in Python, and C<Guestfs.mount g path> in OCaml.  In other "
1292 "words, a straightforward, predictable isomorphism between each language."
1293 msgstr ""
1294
1295 # type: textblock
1296 #: ../src/guestfs.pod:624
1297 msgid ""
1298 "Error messages are automatically transformed into exceptions if the language "
1299 "supports it."
1300 msgstr ""
1301
1302 # type: textblock
1303 #: ../src/guestfs.pod:627
1304 msgid ""
1305 "We don't try to \"object orientify\" parts of the API in OO languages, "
1306 "although contributors are welcome to write higher level APIs above what we "
1307 "provide in their favourite languages if they wish."
1308 msgstr ""
1309
1310 # type: =item
1311 #: ../src/guestfs.pod:633
1312 msgid "B<C++>"
1313 msgstr ""
1314
1315 # type: textblock
1316 #: ../src/guestfs.pod:635
1317 msgid ""
1318 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
1319 "identical to the C API.  C++ classes and exceptions are not used."
1320 msgstr ""
1321
1322 # type: =item
1323 #: ../src/guestfs.pod:639
1324 msgid "B<C#>"
1325 msgstr ""
1326
1327 # type: textblock
1328 #: ../src/guestfs.pod:641
1329 msgid ""
1330 "The C# bindings are highly experimental.  Please read the warnings at the "
1331 "top of C<csharp/Libguestfs.cs>."
1332 msgstr ""
1333
1334 # type: =item
1335 #: ../src/guestfs.pod:644
1336 msgid "B<Haskell>"
1337 msgstr ""
1338
1339 # type: textblock
1340 #: ../src/guestfs.pod:646
1341 msgid ""
1342 "This is the only language binding that is working but incomplete.  Only "
1343 "calls which return simple integers have been bound in Haskell, and we are "
1344 "looking for help to complete this binding."
1345 msgstr ""
1346
1347 # type: =item
1348 #: ../src/guestfs.pod:650
1349 msgid "B<Java>"
1350 msgstr ""
1351
1352 # type: textblock
1353 #: ../src/guestfs.pod:652
1354 msgid ""
1355 "Full documentation is contained in the Javadoc which is distributed with "
1356 "libguestfs."
1357 msgstr ""
1358
1359 # type: =item
1360 #: ../src/guestfs.pod:655
1361 msgid "B<OCaml>"
1362 msgstr ""
1363
1364 # type: textblock
1365 #: ../src/guestfs.pod:657
1366 msgid "For documentation see the file C<guestfs.mli>."
1367 msgstr ""
1368
1369 # type: =item
1370 #: ../src/guestfs.pod:659
1371 msgid "B<Perl>"
1372 msgstr ""
1373
1374 # type: textblock
1375 #: ../src/guestfs.pod:661
1376 msgid "For documentation see L<Sys::Guestfs(3)>."
1377 msgstr ""
1378
1379 # type: =item
1380 #: ../src/guestfs.pod:663
1381 msgid "B<PHP>"
1382 msgstr ""
1383
1384 # type: textblock
1385 #: ../src/guestfs.pod:665
1386 msgid ""
1387 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
1388 "the php-libguestfs package for your distribution."
1389 msgstr ""
1390
1391 # type: textblock
1392 #: ../src/guestfs.pod:668
1393 msgid "The PHP binding only works correctly on 64 bit machines."
1394 msgstr ""
1395
1396 # type: =item
1397 #: ../src/guestfs.pod:670
1398 msgid "B<Python>"
1399 msgstr ""
1400
1401 # type: textblock
1402 #: ../src/guestfs.pod:672
1403 msgid "For documentation do:"
1404 msgstr ""
1405
1406 # type: verbatim
1407 #: ../src/guestfs.pod:674
1408 #, no-wrap
1409 msgid ""
1410 " $ python\n"
1411 " >>> import guestfs\n"
1412 " >>> help (guestfs)\n"
1413 "\n"
1414 msgstr ""
1415
1416 # type: =item
1417 #: ../src/guestfs.pod:678
1418 msgid "B<Ruby>"
1419 msgstr ""
1420
1421 # type: textblock
1422 #: ../src/guestfs.pod:680
1423 msgid ""
1424 "Use the Guestfs module.  There is no Ruby-specific documentation, but you "
1425 "can find examples written in Ruby in the libguestfs source."
1426 msgstr ""
1427
1428 # type: =item
1429 #: ../src/guestfs.pod:683
1430 msgid "B<shell scripts>"
1431 msgstr ""
1432
1433 # type: textblock
1434 #: ../src/guestfs.pod:685
1435 msgid "For documentation see L<guestfish(1)>."
1436 msgstr ""
1437
1438 # type: =head2
1439 #: ../src/guestfs.pod:689
1440 msgid "LIBGUESTFS GOTCHAS"
1441 msgstr ""
1442
1443 # type: textblock
1444 #: ../src/guestfs.pod:691
1445 msgid ""
1446 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
1447 "system [...] that works in the way it is documented but is counterintuitive "
1448 "and almost invites mistakes.\""
1449 msgstr ""
1450
1451 # type: textblock
1452 #: ../src/guestfs.pod:695
1453 msgid ""
1454 "Since we developed libguestfs and the associated tools, there are several "
1455 "things we would have designed differently, but are now stuck with for "
1456 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
1457 "release, you can expect these to change.  Beware of them."
1458 msgstr ""
1459
1460 # type: =item
1461 #: ../src/guestfs.pod:703
1462 msgid "Autosync / forgetting to sync."
1463 msgstr ""
1464
1465 # type: textblock
1466 #: ../src/guestfs.pod:705
1467 msgid ""
1468 "When modifying a filesystem from C or another language, you B<must> unmount "
1469 "all filesystems and call L</guestfs_sync> explicitly before you close the "
1470 "libguestfs handle.  You can also call:"
1471 msgstr ""
1472
1473 # type: verbatim
1474 #: ../src/guestfs.pod:709
1475 #, no-wrap
1476 msgid ""
1477 " guestfs_set_autosync (g, 1);\n"
1478 "\n"
1479 msgstr ""
1480
1481 # type: textblock
1482 #: ../src/guestfs.pod:711
1483 msgid ""
1484 "to have the unmount/sync done automatically for you when the handle 'g' is "
1485 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> q.v.)"
1486 msgstr ""
1487
1488 # type: textblock
1489 #: ../src/guestfs.pod:715
1490 msgid ""
1491 "If you forget to do this, then it is entirely possible that your changes "
1492 "won't be written out, or will be partially written, or (very rarely) that "
1493 "you'll get disk corruption."
1494 msgstr ""
1495
1496 # type: textblock
1497 #: ../src/guestfs.pod:719
1498 msgid ""
1499 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
1500 "guestfish scripts that forget to sync will work just fine, which can make "
1501 "this very puzzling if you are trying to debug a problem."
1502 msgstr ""
1503
1504 # type: textblock
1505 #: ../src/guestfs.pod:723
1506 msgid ""
1507 "Update: Autosync is enabled by default for all API users starting from "
1508 "libguestfs 1.5.24."
1509 msgstr ""
1510
1511 # type: =item
1512 #: ../src/guestfs.pod:726
1513 msgid "Mount option C<-o sync> should not be the default."
1514 msgstr ""
1515
1516 # type: textblock
1517 #: ../src/guestfs.pod:728
1518 msgid ""
1519 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
1520 "However C<-o sync> does not add any reliability benefit, but does have a "
1521 "very large performance impact."
1522 msgstr ""
1523
1524 # type: textblock
1525 #: ../src/guestfs.pod:732
1526 msgid ""
1527 "The work around is to use L</guestfs_mount_options> and set the mount "
1528 "options that you actually want to use."
1529 msgstr ""
1530
1531 # type: =item
1532 #: ../src/guestfs.pod:735
1533 msgid "Read-only should be the default."
1534 msgstr ""
1535
1536 # type: textblock
1537 #: ../src/guestfs.pod:737
1538 msgid ""
1539 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
1540 "specify I<--rw> if you want to make changes to the image."
1541 msgstr ""
1542
1543 # type: textblock
1544 #: ../src/guestfs.pod:740
1545 msgid "This would reduce the potential to corrupt live VM images."
1546 msgstr ""
1547
1548 # type: textblock
1549 #: ../src/guestfs.pod:742
1550 msgid ""
1551 "Note that many filesystems change the disk when you just mount and unmount, "
1552 "even if you didn't perform any writes.  You need to use L</"
1553 "guestfs_add_drive_ro> to guarantee that the disk is not changed."
1554 msgstr ""
1555
1556 # type: =item
1557 #: ../src/guestfs.pod:746
1558 msgid "guestfish command line is hard to use."
1559 msgstr ""
1560
1561 # type: textblock
1562 #: ../src/guestfs.pod:748
1563 msgid ""
1564 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
1565 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
1566 "exist, so it fails.  In earlier versions of guestfish the error message was "
1567 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
1568 "we should have used C<guestfish -c command> to run commands."
1569 msgstr ""
1570
1571 # type: =item
1572 #: ../src/guestfs.pod:755
1573 msgid "guestfish megabyte modifiers don't work right on all commands"
1574 msgstr ""
1575
1576 # type: textblock
1577 #: ../src/guestfs.pod:757
1578 msgid ""
1579 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
1580 "other modifiers).  What guestfish actually does is to multiply the number "
1581 "part by the modifier part and pass the result to the C API.  However this "
1582 "doesn't work for a few APIs which aren't expecting bytes, but are already "
1583 "expecting some other unit (eg. megabytes)."
1584 msgstr ""
1585
1586 # type: textblock
1587 #: ../src/guestfs.pod:764
1588 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
1589 msgstr ""
1590
1591 # type: verbatim
1592 #: ../src/guestfs.pod:766
1593 #, no-wrap
1594 msgid ""
1595 " lvcreate LV VG 100M\n"
1596 "\n"
1597 msgstr ""
1598
1599 # type: textblock
1600 #: ../src/guestfs.pod:768
1601 msgid ""
1602 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
1603 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
1604 "megabytes * megabytes) logical volume.  The error message you get from this "
1605 "is also a little obscure."
1606 msgstr ""
1607
1608 # type: textblock
1609 #: ../src/guestfs.pod:773
1610 msgid ""
1611 "This could be fixed in the generator by specially marking parameters and "
1612 "return values which take bytes or other units."
1613 msgstr ""
1614
1615 # type: =item
1616 #: ../src/guestfs.pod:776
1617 msgid "Ambiguity between devices and paths"
1618 msgstr ""
1619
1620 # type: textblock
1621 #: ../src/guestfs.pod:778
1622 msgid ""
1623 "There is a subtle ambiguity in the API between a device name (eg. C</dev/"
1624 "sdb2>) and a similar pathname.  A file might just happen to be called "
1625 "C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
1626 msgstr ""
1627
1628 # type: textblock
1629 #: ../src/guestfs.pod:783
1630 msgid ""
1631 "In the current API we usually resolve this ambiguity by having two separate "
1632 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
1633 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
1634 "detecting if the path supplied begins with C</dev/>."
1635 msgstr ""
1636
1637 # type: textblock
1638 #: ../src/guestfs.pod:789
1639 msgid ""
1640 "To avoid both the ambiguity and the need to duplicate some calls, we could "
1641 "make paths/devices into structured names.  One way to do this would be to "
1642 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
1643 "aspect of grub.  Another way would be to use a structured type, equivalent "
1644 "to this OCaml type:"
1645 msgstr ""
1646
1647 # type: verbatim
1648 #: ../src/guestfs.pod:795
1649 #, no-wrap
1650 msgid ""
1651 " type path = Path of string | Device of int | Partition of int * int\n"
1652 "\n"
1653 msgstr ""
1654
1655 # type: textblock
1656 #: ../src/guestfs.pod:797
1657 msgid "which would allow you to pass arguments like:"
1658 msgstr ""
1659
1660 # type: verbatim
1661 #: ../src/guestfs.pod:799
1662 #, no-wrap
1663 msgid ""
1664 " Path \"/foo/bar\"\n"
1665 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
1666 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
1667 " Path \"/dev/sdb2\"    (* not a device *)\n"
1668 "\n"
1669 msgstr ""
1670
1671 # type: textblock
1672 #: ../src/guestfs.pod:804
1673 msgid ""
1674 "As you can see there are still problems to resolve even with this "
1675 "representation.  Also consider how it might work in guestfish."
1676 msgstr ""
1677
1678 # type: =head2
1679 #: ../src/guestfs.pod:809
1680 msgid "PROTOCOL LIMITS"
1681 msgstr ""
1682
1683 # type: textblock
1684 #: ../src/guestfs.pod:811
1685 msgid ""
1686 "Internally libguestfs uses a message-based protocol to pass API calls and "
1687 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
1688 "plenty more detail about this).  The maximum message size used by the "
1689 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
1690 "aware of this limit.  The API calls which may be affected are individually "
1691 "documented, with a link back to this section of the documentation."
1692 msgstr ""
1693
1694 # type: textblock
1695 #: ../src/guestfs.pod:819
1696 msgid ""
1697 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
1698 "a simple string.  Because this string is at some point internally encoded as "
1699 "a message, the maximum size that it can return is slightly under 4 MB.  If "
1700 "the requested file is larger than this then you will get an error."
1701 msgstr ""
1702
1703 # type: textblock
1704 #: ../src/guestfs.pod:825
1705 msgid ""
1706 "In order to transfer large files into and out of the guest filesystem, you "
1707 "need to use particular calls that support this.  The sections L</UPLOADING> "
1708 "and L</DOWNLOADING> document how to do this."
1709 msgstr ""
1710
1711 # type: textblock
1712 #: ../src/guestfs.pod:829
1713 msgid ""
1714 "You might also consider mounting the disk image using our FUSE filesystem "
1715 "support (L<guestmount(1)>)."
1716 msgstr ""
1717
1718 # type: =head2
1719 #: ../src/guestfs.pod:832
1720 msgid "KEYS AND PASSPHRASES"
1721 msgstr ""
1722
1723 # type: textblock
1724 #: ../src/guestfs.pod:834
1725 msgid ""
1726 "Certain libguestfs calls take a parameter that contains sensitive key "
1727 "material, passed in as a C string."
1728 msgstr ""
1729
1730 # type: textblock
1731 #: ../src/guestfs.pod:837
1732 msgid ""
1733 "In the future we would hope to change the libguestfs implementation so that "
1734 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
1735 "swap.  However this is I<not> done at the moment, because of the complexity "
1736 "of such an implementation."
1737 msgstr ""
1738
1739 # type: textblock
1740 #: ../src/guestfs.pod:842
1741 msgid ""
1742 "Therefore you should be aware that any key parameter you pass to libguestfs "
1743 "might end up being written out to the swap partition.  If this is a concern, "
1744 "scrub the swap partition or don't use libguestfs on encrypted devices."
1745 msgstr ""
1746
1747 # type: =head1
1748 #: ../src/guestfs.pod:847
1749 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
1750 msgstr ""
1751
1752 # type: textblock
1753 #: ../src/guestfs.pod:849
1754 msgid ""
1755 "All high-level libguestfs actions are synchronous.  If you want to use "
1756 "libguestfs asynchronously then you must create a thread."
1757 msgstr ""
1758
1759 # type: textblock
1760 #: ../src/guestfs.pod:852
1761 msgid ""
1762 "Only use the handle from a single thread.  Either use the handle exclusively "
1763 "from one thread, or provide your own mutex so that two threads cannot issue "
1764 "calls on the same handle at the same time."
1765 msgstr ""
1766
1767 # type: textblock
1768 #: ../src/guestfs.pod:856
1769 msgid ""
1770 "See the graphical program guestfs-browser for one possible architecture for "
1771 "multithreaded programs using libvirt and libguestfs."
1772 msgstr ""
1773
1774 # type: =head1
1775 #: ../src/guestfs.pod:859
1776 msgid "PATH"
1777 msgstr ""
1778
1779 # type: textblock
1780 #: ../src/guestfs.pod:861
1781 msgid ""
1782 "Libguestfs needs a kernel and initrd.img, which it finds by looking along an "
1783 "internal path."
1784 msgstr ""
1785
1786 # type: textblock
1787 #: ../src/guestfs.pod:864
1788 msgid ""
1789 "By default it looks for these in the directory C<$libdir/guestfs> (eg. C</"
1790 "usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
1791 msgstr ""
1792
1793 # type: textblock
1794 #: ../src/guestfs.pod:867
1795 msgid ""
1796 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
1797 "to change the directories that libguestfs will search in.  The value is a "
1798 "colon-separated list of paths.  The current directory is I<not> searched "
1799 "unless the path contains an empty element or C<.>.  For example "
1800 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
1801 "then C</usr/lib/guestfs>."
1802 msgstr ""
1803
1804 # type: =head1
1805 #: ../src/guestfs.pod:874
1806 msgid "QEMU WRAPPERS"
1807 msgstr ""
1808
1809 # type: textblock
1810 #: ../src/guestfs.pod:876
1811 msgid ""
1812 "If you want to compile your own qemu, run qemu from a non-standard location, "
1813 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
1814 "around qemu."
1815 msgstr ""
1816
1817 # type: textblock
1818 #: ../src/guestfs.pod:880
1819 msgid ""
1820 "There is one important rule to remember: you I<must C<exec qemu>> as the "
1821 "last command in the shell script (so that qemu replaces the shell and "
1822 "becomes the direct child of the libguestfs-using program).  If you don't do "
1823 "this, then the qemu process won't be cleaned up correctly."
1824 msgstr ""
1825
1826 # type: textblock
1827 #: ../src/guestfs.pod:885
1828 msgid ""
1829 "Here is an example of a wrapper, where I have built my own copy of qemu from "
1830 "source:"
1831 msgstr ""
1832
1833 # type: verbatim
1834 #: ../src/guestfs.pod:888
1835 #, no-wrap
1836 msgid ""
1837 " #!/bin/sh -\n"
1838 " qemudir=/home/rjones/d/qemu\n"
1839 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
1840 "\n"
1841 msgstr ""
1842
1843 # type: textblock
1844 #: ../src/guestfs.pod:892
1845 msgid ""
1846 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
1847 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
1848 "example:"
1849 msgstr ""
1850
1851 # type: verbatim
1852 #: ../src/guestfs.pod:896
1853 #, no-wrap
1854 msgid ""
1855 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
1856 "\n"
1857 msgstr ""
1858
1859 # type: textblock
1860 #: ../src/guestfs.pod:898
1861 msgid ""
1862 "Note that libguestfs also calls qemu with the -help and -version options in "
1863 "order to determine features."
1864 msgstr ""
1865
1866 # type: =head2
1867 #: ../src/guestfs.pod:901
1868 msgid "ABI GUARANTEE"
1869 msgstr ""
1870
1871 # type: textblock
1872 #: ../src/guestfs.pod:903
1873 msgid ""
1874 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
1875 "actions as outlined in this section.  Although we will deprecate some "
1876 "actions, for example if they get replaced by newer calls, we will keep the "
1877 "old actions forever.  This allows you the developer to program in confidence "
1878 "against the libguestfs API."
1879 msgstr ""
1880
1881 # type: =head1
1882 #: ../src/guestfs.pod:909
1883 msgid "BLOCK DEVICE NAMING"
1884 msgstr ""
1885
1886 # type: textblock
1887 #: ../src/guestfs.pod:911
1888 msgid ""
1889 "In the kernel there is now quite a profusion of schemata for naming block "
1890 "devices (in this context, by I<block device> I mean a physical or virtual "
1891 "hard drive).  The original Linux IDE driver used names starting with C</dev/"
1892 "hd*>.  SCSI devices have historically used a different naming scheme, C</dev/"
1893 "sd*>.  When the Linux kernel I<libata> driver became a popular replacement "
1894 "for the old IDE driver (particularly for SATA devices) those devices also "
1895 "used the C</dev/sd*> scheme.  Additionally we now have virtual machines with "
1896 "paravirtualized drivers.  This has created several different naming systems, "
1897 "such as C</dev/vd*> for virtio disks and C</dev/xvd*> for Xen PV disks."
1898 msgstr ""
1899
1900 # type: textblock
1901 #: ../src/guestfs.pod:923
1902 msgid ""
1903 "As discussed above, libguestfs uses a qemu appliance running an embedded "
1904 "Linux kernel to access block devices.  We can run a variety of appliances "
1905 "based on a variety of Linux kernels."
1906 msgstr ""
1907
1908 # type: textblock
1909 #: ../src/guestfs.pod:927
1910 msgid ""
1911 "This causes a problem for libguestfs because many API calls use device or "
1912 "partition names.  Working scripts and the recipe (example) scripts that we "
1913 "make available over the internet could fail if the naming scheme changes."
1914 msgstr ""
1915
1916 # type: textblock
1917 #: ../src/guestfs.pod:932
1918 msgid ""
1919 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
1920 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
1921 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
1922 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
1923 msgstr ""
1924
1925 # type: textblock
1926 #: ../src/guestfs.pod:938
1927 msgid ""
1928 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
1929 "L</guestfs_list_partitions> and similar calls return the true names of the "
1930 "devices and partitions as known to the appliance."
1931 msgstr ""
1932
1933 # type: =head2
1934 #: ../src/guestfs.pod:943
1935 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
1936 msgstr ""
1937
1938 # type: textblock
1939 #: ../src/guestfs.pod:945
1940 msgid ""
1941 "Usually this translation is transparent.  However in some (very rare)  cases "
1942 "you may need to know the exact algorithm.  Such cases include where you use "
1943 "L</guestfs_config> to add a mixture of virtio and IDE devices to the qemu-"
1944 "based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> devices."
1945 msgstr ""
1946
1947 # type: textblock
1948 #: ../src/guestfs.pod:951
1949 msgid ""
1950 "The algorithm is applied only to I<parameters> which are known to be either "
1951 "device or partition names.  Return values from functions such as L</"
1952 "guestfs_list_devices> are never changed."
1953 msgstr ""
1954
1955 # type: textblock
1956 #: ../src/guestfs.pod:959
1957 msgid "Is the string a parameter which is a device or partition name?"
1958 msgstr ""
1959
1960 # type: textblock
1961 #: ../src/guestfs.pod:963
1962 msgid "Does the string begin with C</dev/sd>?"
1963 msgstr ""
1964
1965 # type: textblock
1966 #: ../src/guestfs.pod:967
1967 msgid ""
1968 "Does the named device exist? If so, we use that device.  However if I<not> "
1969 "then we continue with this algorithm."
1970 msgstr ""
1971
1972 # type: textblock
1973 #: ../src/guestfs.pod:972
1974 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
1975 msgstr ""
1976
1977 # type: textblock
1978 #: ../src/guestfs.pod:974
1979 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
1980 msgstr ""
1981
1982 # type: textblock
1983 #: ../src/guestfs.pod:976
1984 msgid "If that named device exists, use it.  If not, continue."
1985 msgstr ""
1986
1987 # type: textblock
1988 #: ../src/guestfs.pod:980
1989 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
1990 msgstr ""
1991
1992 # type: textblock
1993 #: ../src/guestfs.pod:982
1994 msgid "If that named device exists, use it.  If not, return an error."
1995 msgstr ""
1996
1997 # type: =head3
1998 #: ../src/guestfs.pod:986
1999 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
2000 msgstr ""
2001
2002 # type: textblock
2003 #: ../src/guestfs.pod:988
2004 msgid ""
2005 "Although the standard naming scheme and automatic translation is useful for "
2006 "simple programs and guestfish scripts, for larger programs it is best not to "
2007 "rely on this mechanism."
2008 msgstr ""
2009
2010 # type: textblock
2011 #: ../src/guestfs.pod:992
2012 msgid ""
2013 "Where possible for maximum future portability programs using libguestfs "
2014 "should use these future-proof techniques:"
2015 msgstr ""
2016
2017 # type: textblock
2018 #: ../src/guestfs.pod:999
2019 msgid ""
2020 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
2021 "device names, and then use those names directly."
2022 msgstr ""
2023
2024 # type: textblock
2025 #: ../src/guestfs.pod:1002
2026 msgid ""
2027 "Since those device names exist by definition, they will never be translated."
2028 msgstr ""
2029
2030 # type: textblock
2031 #: ../src/guestfs.pod:1007
2032 msgid ""
2033 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
2034 "filesystem labels."
2035 msgstr ""
2036
2037 # type: =head1
2038 #: ../src/guestfs.pod:1012
2039 msgid "SECURITY"
2040 msgstr ""
2041
2042 # type: textblock
2043 #: ../src/guestfs.pod:1014
2044 msgid ""
2045 "This section discusses security implications of using libguestfs, "
2046 "particularly with untrusted or malicious guests or disk images."
2047 msgstr ""
2048
2049 # type: =head2
2050 #: ../src/guestfs.pod:1017
2051 msgid "GENERAL SECURITY CONSIDERATIONS"
2052 msgstr ""
2053
2054 # type: textblock
2055 #: ../src/guestfs.pod:1019
2056 msgid ""
2057 "Be careful with any files or data that you download from a guest (by "
2058 "\"download\" we mean not just the L</guestfs_download> command but any "
2059 "command that reads files, filenames, directories or anything else from a "
2060 "disk image).  An attacker could manipulate the data to fool your program "
2061 "into doing the wrong thing.  Consider cases such as:"
2062 msgstr ""
2063
2064 # type: textblock
2065 #: ../src/guestfs.pod:1029
2066 msgid "the data (file etc) not being present"
2067 msgstr ""
2068
2069 # type: textblock
2070 #: ../src/guestfs.pod:1033
2071 msgid "being present but empty"
2072 msgstr ""
2073
2074 # type: textblock
2075 #: ../src/guestfs.pod:1037
2076 msgid "being much larger than normal"
2077 msgstr ""
2078
2079 # type: textblock
2080 #: ../src/guestfs.pod:1041
2081 msgid "containing arbitrary 8 bit data"
2082 msgstr ""
2083
2084 # type: textblock
2085 #: ../src/guestfs.pod:1045
2086 msgid "being in an unexpected character encoding"
2087 msgstr ""
2088
2089 # type: textblock
2090 #: ../src/guestfs.pod:1049
2091 msgid "containing homoglyphs."
2092 msgstr ""
2093
2094 # type: =head2
2095 #: ../src/guestfs.pod:1053
2096 msgid "SECURITY OF MOUNTING FILESYSTEMS"
2097 msgstr ""
2098
2099 # type: textblock
2100 #: ../src/guestfs.pod:1055
2101 msgid ""
2102 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
2103 "(VFS) module can sometimes be escalated into exploits by deliberately "
2104 "creating a malicious, malformed filesystem.  These exploits are very severe "
2105 "for two reasons.  Firstly there are very many filesystem drivers in the "
2106 "kernel, and many of them are infrequently used and not much developer "
2107 "attention has been paid to the code.  Linux userspace helps potential "
2108 "crackers by detecting the filesystem type and automatically choosing the "
2109 "right VFS driver, even if that filesystem type is obscure or unexpected for "
2110 "the administrator.  Secondly, a kernel-level exploit is like a local root "
2111 "exploit (worse in some ways), giving immediate and total access to the "
2112 "system right down to the hardware level."
2113 msgstr ""
2114
2115 # type: textblock
2116 #: ../src/guestfs.pod:1068
2117 msgid ""
2118 "That explains why you should never mount a filesystem from an untrusted "
2119 "guest on your host kernel.  How about libguestfs? We run a Linux kernel "
2120 "inside a qemu virtual machine, usually running as a non-root user.  The "
2121 "attacker would need to write a filesystem which first exploited the kernel, "
2122 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
2123 "the libguestfs protocol, and finally to be as serious as the host kernel "
2124 "exploit it would need to escalate its privileges to root.  This multi-step "
2125 "escalation, performed by a static piece of data, is thought to be extremely "
2126 "hard to do, although we never say 'never' about security issues."
2127 msgstr ""
2128
2129 # type: textblock
2130 #: ../src/guestfs.pod:1079
2131 msgid ""
2132 "In any case callers can reduce the attack surface by forcing the filesystem "
2133 "type when mounting (use L</guestfs_mount_vfs>)."
2134 msgstr ""
2135
2136 # type: =head2
2137 #: ../src/guestfs.pod:1082
2138 msgid "PROTOCOL SECURITY"
2139 msgstr ""
2140
2141 # type: textblock
2142 #: ../src/guestfs.pod:1084
2143 msgid ""
2144 "The protocol is designed to be secure, being based on RFC 4506 (XDR)  with a "
2145 "defined upper message size.  However a program that uses libguestfs must "
2146 "also take care - for example you can write a program that downloads a binary "
2147 "from a disk image and executes it locally, and no amount of protocol "
2148 "security will save you from the consequences."
2149 msgstr ""
2150
2151 # type: =head2
2152 #: ../src/guestfs.pod:1090
2153 msgid "INSPECTION SECURITY"
2154 msgstr ""
2155
2156 # type: textblock
2157 #: ../src/guestfs.pod:1092
2158 msgid ""
2159 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
2160 "directly from the guest, and these could contain any 8 bit data.  Callers "
2161 "should be careful to escape these before printing them to a structured file "
2162 "(for example, use HTML escaping if creating a web page)."
2163 msgstr ""
2164
2165 # type: textblock
2166 #: ../src/guestfs.pod:1098
2167 msgid ""
2168 "Guest configuration may be altered in unusual ways by the administrator of "
2169 "the virtual machine, and may not reflect reality (particularly for untrusted "
2170 "or actively malicious guests).  For example we parse the hostname from "
2171 "configuration files like C</etc/sysconfig/network> that we find in the "
2172 "guest, but the guest administrator can easily manipulate these files to "
2173 "provide the wrong hostname."
2174 msgstr ""
2175
2176 # type: textblock
2177 #: ../src/guestfs.pod:1106
2178 msgid ""
2179 "The inspection API parses guest configuration using two external libraries: "
2180 "Augeas (Linux configuration) and hivex (Windows Registry).  Both are "
2181 "designed to be robust in the face of malicious data, although denial of "
2182 "service attacks are still possible, for example with oversized configuration "
2183 "files."
2184 msgstr ""
2185
2186 # type: =head2
2187 #: ../src/guestfs.pod:1112
2188 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
2189 msgstr ""
2190
2191 # type: textblock
2192 #: ../src/guestfs.pod:1114
2193 msgid ""
2194 "Be very cautious about running commands from the guest.  By running a "
2195 "command in the guest, you are giving CPU time to a binary that you do not "
2196 "control, under the same user account as the library, albeit wrapped in qemu "
2197 "virtualization.  More information and alternatives can be found in the "
2198 "section L</RUNNING COMMANDS>."
2199 msgstr ""
2200
2201 # type: =head2
2202 #: ../src/guestfs.pod:1120
2203 msgid "CVE-2010-3851"
2204 msgstr ""
2205
2206 # type: textblock
2207 #: ../src/guestfs.pod:1122
2208 msgid "https://bugzilla.redhat.com/642934"
2209 msgstr ""
2210
2211 # type: textblock
2212 #: ../src/guestfs.pod:1124
2213 msgid ""
2214 "This security bug concerns the automatic disk format detection that qemu "
2215 "does on disk images."
2216 msgstr ""
2217
2218 # type: textblock
2219 #: ../src/guestfs.pod:1127
2220 msgid ""
2221 "A raw disk image is just the raw bytes, there is no header.  Other disk "
2222 "images like qcow2 contain a special header.  Qemu deals with this by looking "
2223 "for one of the known headers, and if none is found then assuming the disk "
2224 "image must be raw."
2225 msgstr ""
2226
2227 # type: textblock
2228 #: ../src/guestfs.pod:1132
2229 msgid ""
2230 "This allows a guest which has been given a raw disk image to write some "
2231 "other header.  At next boot (or when the disk image is accessed by "
2232 "libguestfs) qemu would do autodetection and think the disk image format was, "
2233 "say, qcow2 based on the header written by the guest."
2234 msgstr ""
2235
2236 # type: textblock
2237 #: ../src/guestfs.pod:1137
2238 msgid ""
2239 "This in itself would not be a problem, but qcow2 offers many features, one "
2240 "of which is to allow a disk image to refer to another image (called the "
2241 "\"backing disk\").  It does this by placing the path to the backing disk "
2242 "into the qcow2 header.  This path is not validated and could point to any "
2243 "host file (eg. \"/etc/passwd\").  The backing disk is then exposed through "
2244 "\"holes\" in the qcow2 disk image, which of course is completely under the "
2245 "control of the attacker."
2246 msgstr ""
2247
2248 # type: textblock
2249 #: ../src/guestfs.pod:1145
2250 msgid ""
2251 "In libguestfs this is rather hard to exploit except under two circumstances:"
2252 msgstr ""
2253
2254 # type: textblock
2255 #: ../src/guestfs.pod:1152
2256 msgid "You have enabled the network or have opened the disk in write mode."
2257 msgstr ""
2258
2259 # type: textblock
2260 #: ../src/guestfs.pod:1156
2261 msgid ""
2262 "You are also running untrusted code from the guest (see L</RUNNING "
2263 "COMMANDS>)."
2264 msgstr ""
2265
2266 # type: textblock
2267 #: ../src/guestfs.pod:1161
2268 msgid ""
2269 "The way to avoid this is to specify the expected disk format when adding "
2270 "disks (the optional C<format> option to L</guestfs_add_drive_opts>).  You "
2271 "should always do this if the disk is raw format, and it's a good idea for "
2272 "other cases too."
2273 msgstr ""
2274
2275 # type: textblock
2276 #: ../src/guestfs.pod:1166
2277 msgid ""
2278 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
2279 "format is fetched from libvirt and passed through."
2280 msgstr ""
2281
2282 # type: textblock
2283 #: ../src/guestfs.pod:1169
2284 msgid ""
2285 "For libguestfs tools, use the I<--format> command line parameter as "
2286 "appropriate."
2287 msgstr ""
2288
2289 # type: =head1
2290 #: ../src/guestfs.pod:1172
2291 msgid "CONNECTION MANAGEMENT"
2292 msgstr ""
2293
2294 # type: =head2
2295 #: ../src/guestfs.pod:1174
2296 msgid "guestfs_h *"
2297 msgstr ""
2298
2299 # type: textblock
2300 #: ../src/guestfs.pod:1176
2301 msgid ""
2302 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
2303 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
2304 "handle and release all resources used."
2305 msgstr ""
2306
2307 # type: textblock
2308 #: ../src/guestfs.pod:1180
2309 msgid ""
2310 "For information on using multiple handles and threads, see the section L</"
2311 "MULTIPLE HANDLES AND MULTIPLE THREADS> below."
2312 msgstr ""
2313
2314 # type: =head2
2315 #: ../src/guestfs.pod:1183
2316 msgid "guestfs_create"
2317 msgstr ""
2318
2319 # type: verbatim
2320 #: ../src/guestfs.pod:1185
2321 #, no-wrap
2322 msgid ""
2323 " guestfs_h *guestfs_create (void);\n"
2324 "\n"
2325 msgstr ""
2326
2327 # type: textblock
2328 #: ../src/guestfs.pod:1187
2329 msgid "Create a connection handle."
2330 msgstr ""
2331
2332 # type: textblock
2333 #: ../src/guestfs.pod:1189
2334 msgid ""
2335 "You have to call L</guestfs_add_drive_opts> (or one of the equivalent calls) "
2336 "on the handle at least once."
2337 msgstr ""
2338
2339 # type: textblock
2340 #: ../src/guestfs.pod:1192
2341 msgid ""
2342 "This function returns a non-NULL pointer to a handle on success or NULL on "
2343 "error."
2344 msgstr ""
2345
2346 # type: textblock
2347 #: ../src/guestfs.pod:1195
2348 msgid "After configuring the handle, you have to call L</guestfs_launch>."
2349 msgstr ""
2350
2351 # type: textblock
2352 #: ../src/guestfs.pod:1197
2353 msgid ""
2354 "You may also want to configure error handling for the handle.  See L</ERROR "
2355 "HANDLING> section below."
2356 msgstr ""
2357
2358 # type: =head2
2359 #: ../src/guestfs.pod:1200
2360 msgid "guestfs_close"
2361 msgstr ""
2362
2363 # type: verbatim
2364 #: ../src/guestfs.pod:1202
2365 #, no-wrap
2366 msgid ""
2367 " void guestfs_close (guestfs_h *g);\n"
2368 "\n"
2369 msgstr ""
2370
2371 # type: textblock
2372 #: ../src/guestfs.pod:1204
2373 msgid "This closes the connection handle and frees up all resources used."
2374 msgstr ""
2375
2376 # type: =head1
2377 #: ../src/guestfs.pod:1206
2378 msgid "ERROR HANDLING"
2379 msgstr ""
2380
2381 # type: textblock
2382 #: ../src/guestfs.pod:1208
2383 msgid ""
2384 "API functions can return errors.  For example, almost all functions that "
2385 "return C<int> will return C<-1> to indicate an error."
2386 msgstr ""
2387
2388 # type: textblock
2389 #: ../src/guestfs.pod:1211
2390 msgid ""
2391 "Additional information is available for errors: an error message string and "
2392 "optionally an error number (errno) if the thing that failed was a system "
2393 "call."
2394 msgstr ""
2395
2396 # type: textblock
2397 #: ../src/guestfs.pod:1215
2398 msgid ""
2399 "You can get at the additional information about the last error on the handle "
2400 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
2401 "up an error handler with L</guestfs_set_error_handler>."
2402 msgstr ""
2403
2404 # type: textblock
2405 #: ../src/guestfs.pod:1220
2406 msgid ""
2407 "When the handle is created, a default error handler is installed which "
2408 "prints the error message string to C<stderr>.  For small short-running "
2409 "command line programs it is sufficient to do:"
2410 msgstr ""
2411
2412 # type: verbatim
2413 #: ../src/guestfs.pod:1224
2414 #, no-wrap
2415 msgid ""
2416 " if (guestfs_launch (g) == -1)\n"
2417 "   exit (EXIT_FAILURE);\n"
2418 "\n"
2419 msgstr ""
2420
2421 # type: textblock
2422 #: ../src/guestfs.pod:1227
2423 msgid ""
2424 "since the default error handler will ensure that an error message has been "
2425 "printed to C<stderr> before the program exits."
2426 msgstr ""
2427
2428 # type: textblock
2429 #: ../src/guestfs.pod:1230
2430 msgid ""
2431 "For other programs the caller will almost certainly want to install an "
2432 "alternate error handler or do error handling in-line like this:"
2433 msgstr ""
2434
2435 # type: verbatim
2436 #: ../src/guestfs.pod:1233
2437 #, no-wrap
2438 msgid ""
2439 " g = guestfs_create ();\n"
2440 " \n"
2441 msgstr ""
2442
2443 # type: verbatim
2444 #: ../src/guestfs.pod:1235
2445 #, no-wrap
2446 msgid ""
2447 " /* This disables the default behaviour of printing errors\n"
2448 "    on stderr. */\n"
2449 " guestfs_set_error_handler (g, NULL, NULL);\n"
2450 " \n"
2451 msgstr ""
2452
2453 # type: verbatim
2454 #: ../src/guestfs.pod:1239
2455 #, no-wrap
2456 msgid ""
2457 " if (guestfs_launch (g) == -1) {\n"
2458 "   /* Examine the error message and print it etc. */\n"
2459 "   char *msg = guestfs_last_error (g);\n"
2460 "   int errnum = guestfs_last_errno (g);\n"
2461 "   fprintf (stderr, \"%s\\n\", msg);\n"
2462 "   /* ... */\n"
2463 "  }\n"
2464 "\n"
2465 msgstr ""
2466
2467 # type: textblock
2468 #: ../src/guestfs.pod:1247
2469 msgid ""
2470 "Out of memory errors are handled differently.  The default action is to call "
2471 "L<abort(3)>.  If this is undesirable, then you can set a handler using L</"
2472 "guestfs_set_out_of_memory_handler>."
2473 msgstr ""
2474
2475 # type: textblock
2476 #: ../src/guestfs.pod:1251
2477 msgid ""
2478 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
2479 "because there is no handle if this happens there is no way to get additional "
2480 "error information.  However L</guestfs_create> is supposed to be a "
2481 "lightweight operation which can only fail because of insufficient memory (it "
2482 "returns NULL in this case)."
2483 msgstr ""
2484
2485 # type: =head2
2486 #: ../src/guestfs.pod:1257
2487 msgid "guestfs_last_error"
2488 msgstr ""
2489
2490 # type: verbatim
2491 #: ../src/guestfs.pod:1259
2492 #, no-wrap
2493 msgid ""
2494 " const char *guestfs_last_error (guestfs_h *g);\n"
2495 "\n"
2496 msgstr ""
2497
2498 # type: textblock
2499 #: ../src/guestfs.pod:1261
2500 msgid ""
2501 "This returns the last error message that happened on C<g>.  If there has not "
2502 "been an error since the handle was created, then this returns C<NULL>."
2503 msgstr ""
2504
2505 # type: textblock
2506 #: ../src/guestfs.pod:1265
2507 msgid ""
2508 "The lifetime of the returned string is until the next error occurs, or L</"
2509 "guestfs_close> is called."
2510 msgstr ""
2511
2512 # type: =head2
2513 #: ../src/guestfs.pod:1268
2514 msgid "guestfs_last_errno"
2515 msgstr ""
2516
2517 # type: verbatim
2518 #: ../src/guestfs.pod:1270
2519 #, no-wrap
2520 msgid ""
2521 " int guestfs_last_errno (guestfs_h *g);\n"
2522 "\n"
2523 msgstr ""
2524
2525 # type: textblock
2526 #: ../src/guestfs.pod:1272
2527 msgid "This returns the last error number (errno) that happened on C<g>."
2528 msgstr ""
2529
2530 # type: textblock
2531 #: ../src/guestfs.pod:1274
2532 msgid "If successful, an errno integer not equal to zero is returned."
2533 msgstr ""
2534
2535 # type: textblock
2536 #: ../src/guestfs.pod:1276
2537 msgid ""
2538 "If no error, this returns 0.  This call can return 0 in three situations:"
2539 msgstr ""
2540
2541 # type: textblock
2542 #: ../src/guestfs.pod:1283
2543 msgid "There has not been any error on the handle."
2544 msgstr ""
2545
2546 # type: textblock
2547 #: ../src/guestfs.pod:1287
2548 msgid ""
2549 "There has been an error but the errno was meaningless.  This corresponds to "
2550 "the case where the error did not come from a failed system call, but for "
2551 "some other reason."
2552 msgstr ""
2553
2554 # type: textblock
2555 #: ../src/guestfs.pod:1293
2556 msgid ""
2557 "There was an error from a failed system call, but for some reason the errno "
2558 "was not captured and returned.  This usually indicates a bug in libguestfs."
2559 msgstr ""
2560
2561 # type: textblock
2562 #: ../src/guestfs.pod:1299
2563 msgid ""
2564 "Libguestfs tries to convert the errno from inside the applicance into a "
2565 "corresponding errno for the caller (not entirely trivial: the appliance "
2566 "might be running a completely different operating system from the library "
2567 "and error numbers are not standardized across Un*xen).  If this could not be "
2568 "done, then the error is translated to C<EINVAL>.  In practice this should "
2569 "only happen in very rare circumstances."
2570 msgstr ""
2571
2572 # type: =head2
2573 #: ../src/guestfs.pod:1307
2574 msgid "guestfs_set_error_handler"
2575 msgstr ""
2576
2577 # type: verbatim
2578 #: ../src/guestfs.pod:1309
2579 #, no-wrap
2580 msgid ""
2581 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
2582 "                                           void *opaque,\n"
2583 "                                           const char *msg);\n"
2584 " void guestfs_set_error_handler (guestfs_h *g,\n"
2585 "                                 guestfs_error_handler_cb cb,\n"
2586 "                                 void *opaque);\n"
2587 "\n"
2588 msgstr ""
2589
2590 # type: textblock
2591 #: ../src/guestfs.pod:1316
2592 msgid ""
2593 "The callback C<cb> will be called if there is an error.  The parameters "
2594 "passed to the callback are an opaque data pointer and the error message "
2595 "string."
2596 msgstr ""
2597
2598 # type: textblock
2599 #: ../src/guestfs.pod:1320
2600 msgid ""
2601 "C<errno> is not passed to the callback.  To get that the callback must call "
2602 "L</guestfs_last_errno>."
2603 msgstr ""
2604
2605 # type: textblock
2606 #: ../src/guestfs.pod:1323
2607 msgid ""
2608 "Note that the message string C<msg> is freed as soon as the callback "
2609 "function returns, so if you want to stash it somewhere you must make your "
2610 "own copy."
2611 msgstr ""
2612
2613 # type: textblock
2614 #: ../src/guestfs.pod:1327
2615 msgid "The default handler prints messages on C<stderr>."
2616 msgstr ""
2617
2618 # type: textblock
2619 #: ../src/guestfs.pod:1329
2620 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
2621 msgstr ""
2622
2623 # type: =head2
2624 #: ../src/guestfs.pod:1331
2625 msgid "guestfs_get_error_handler"
2626 msgstr ""
2627
2628 # type: verbatim
2629 #: ../src/guestfs.pod:1333
2630 #, no-wrap
2631 msgid ""
2632 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
2633 "                                                     void **opaque_rtn);\n"
2634 "\n"
2635 msgstr ""
2636
2637 # type: textblock
2638 #: ../src/guestfs.pod:1336
2639 msgid "Returns the current error handler callback."
2640 msgstr ""
2641
2642 # type: =head2
2643 #: ../src/guestfs.pod:1338
2644 msgid "guestfs_set_out_of_memory_handler"
2645 msgstr ""
2646
2647 # type: verbatim
2648 #: ../src/guestfs.pod:1340
2649 #, no-wrap
2650 msgid ""
2651 " typedef void (*guestfs_abort_cb) (void);\n"
2652 " int guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
2653 "                                        guestfs_abort_cb);\n"
2654 "\n"
2655 msgstr ""
2656
2657 # type: textblock
2658 #: ../src/guestfs.pod:1344
2659 msgid ""
2660 "The callback C<cb> will be called if there is an out of memory situation.  "
2661 "I<Note this callback must not return>."
2662 msgstr ""
2663
2664 # type: textblock
2665 #: ../src/guestfs.pod:1347
2666 msgid "The default is to call L<abort(3)>."
2667 msgstr ""
2668
2669 # type: textblock
2670 #: ../src/guestfs.pod:1349
2671 msgid ""
2672 "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
2673 msgstr ""
2674
2675 # type: =head2
2676 #: ../src/guestfs.pod:1352
2677 msgid "guestfs_get_out_of_memory_handler"
2678 msgstr ""
2679
2680 # type: verbatim
2681 #: ../src/guestfs.pod:1354
2682 #, no-wrap
2683 msgid ""
2684 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
2685 "\n"
2686 msgstr ""
2687
2688 # type: textblock
2689 #: ../src/guestfs.pod:1356
2690 msgid "This returns the current out of memory handler."
2691 msgstr ""
2692
2693 # type: =head1
2694 #: ../src/guestfs.pod:1358
2695 msgid "API CALLS"
2696 msgstr ""
2697
2698 # type: textblock
2699 #: ../src/guestfs.pod:1360 ../fish/guestfish.pod:907
2700 msgid "@ACTIONS@"
2701 msgstr ""
2702
2703 # type: =head1
2704 #: ../src/guestfs.pod:1362
2705 msgid "STRUCTURES"
2706 msgstr ""
2707
2708 # type: textblock
2709 #: ../src/guestfs.pod:1364
2710 msgid "@STRUCTS@"
2711 msgstr ""
2712
2713 # type: =head1
2714 #: ../src/guestfs.pod:1366
2715 msgid "AVAILABILITY"
2716 msgstr ""
2717
2718 # type: =head2
2719 #: ../src/guestfs.pod:1368
2720 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
2721 msgstr ""
2722
2723 # type: textblock
2724 #: ../src/guestfs.pod:1370
2725 msgid ""
2726 "Using L</guestfs_available> you can test availability of the following "
2727 "groups of functions.  This test queries the appliance to see if the "
2728 "appliance you are currently using supports the functionality."
2729 msgstr ""
2730
2731 # type: textblock
2732 #: ../src/guestfs.pod:1375
2733 msgid "@AVAILABILITY@"
2734 msgstr ""
2735
2736 # type: =head2
2737 #: ../src/guestfs.pod:1377
2738 msgid "GUESTFISH supported COMMAND"
2739 msgstr ""
2740
2741 # type: textblock
2742 #: ../src/guestfs.pod:1379
2743 msgid ""
2744 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
2745 "prints out the available groups and whether they are supported by this build "
2746 "of libguestfs.  Note however that you have to do C<run> first."
2747 msgstr ""
2748
2749 # type: =head2
2750 #: ../src/guestfs.pod:1384
2751 msgid "SINGLE CALLS AT COMPILE TIME"
2752 msgstr ""
2753
2754 # type: textblock
2755 #: ../src/guestfs.pod:1386
2756 msgid ""
2757 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
2758 "function, such as:"
2759 msgstr ""
2760
2761 # type: verbatim
2762 #: ../src/guestfs.pod:1389
2763 #, no-wrap
2764 msgid ""
2765 " #define LIBGUESTFS_HAVE_DD 1\n"
2766 "\n"
2767 msgstr ""
2768
2769 # type: textblock
2770 #: ../src/guestfs.pod:1391
2771 msgid "if L</guestfs_dd> is available."
2772 msgstr ""
2773
2774 # type: textblock
2775 #: ../src/guestfs.pod:1393
2776 msgid ""
2777 "Before version 1.5.8, if you needed to test whether a single libguestfs "
2778 "function is available at compile time, we recommended using build tools such "
2779 "as autoconf or cmake.  For example in autotools you could use:"
2780 msgstr ""
2781
2782 # type: verbatim
2783 #: ../src/guestfs.pod:1398
2784 #, no-wrap
2785 msgid ""
2786 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
2787 " AC_CHECK_FUNCS([guestfs_dd])\n"
2788 "\n"
2789 msgstr ""
2790
2791 # type: textblock
2792 #: ../src/guestfs.pod:1401
2793 msgid ""
2794 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
2795 "in your program."
2796 msgstr ""
2797
2798 # type: =head2
2799 #: ../src/guestfs.pod:1404
2800 msgid "SINGLE CALLS AT RUN TIME"
2801 msgstr ""
2802
2803 # type: textblock
2804 #: ../src/guestfs.pod:1406
2805 msgid ""
2806 "Testing at compile time doesn't guarantee that a function really exists in "
2807 "the library.  The reason is that you might be dynamically linked against a "
2808 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
2809 "This situation unfortunately results in a segmentation fault, which is a "
2810 "shortcoming of the C dynamic linking system itself."
2811 msgstr ""
2812
2813 # type: textblock
2814 #: ../src/guestfs.pod:1413
2815 msgid ""
2816 "You can use L<dlopen(3)> to test if a function is available at run time, as "
2817 "in this example program (note that you still need the compile time check as "
2818 "well):"
2819 msgstr ""
2820
2821 # type: verbatim
2822 #: ../src/guestfs.pod:1417
2823 #, no-wrap
2824 msgid ""
2825 " #include <stdio.h>\n"
2826 " #include <stdlib.h>\n"
2827 " #include <unistd.h>\n"
2828 " #include <dlfcn.h>\n"
2829 " #include <guestfs.h>\n"
2830 " \n"
2831 msgstr ""
2832
2833 # type: verbatim
2834 #: ../src/guestfs.pod:1423
2835 #, no-wrap
2836 msgid ""
2837 " main ()\n"
2838 " {\n"
2839 " #ifdef LIBGUESTFS_HAVE_DD\n"
2840 "   void *dl;\n"
2841 "   int has_function;\n"
2842 " \n"
2843 msgstr ""
2844
2845 # type: verbatim
2846 #: ../src/guestfs.pod:1429
2847 #, no-wrap
2848 msgid ""
2849 "   /* Test if the function guestfs_dd is really available. */\n"
2850 "   dl = dlopen (NULL, RTLD_LAZY);\n"
2851 "   if (!dl) {\n"
2852 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
2853 "     exit (EXIT_FAILURE);\n"
2854 "   }\n"
2855 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
2856 "   dlclose (dl);\n"
2857 " \n"
2858 msgstr ""
2859
2860 # type: verbatim
2861 #: ../src/guestfs.pod:1438
2862 #, no-wrap
2863 msgid ""
2864 "   if (!has_function)\n"
2865 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
2866 "   else {\n"
2867 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
2868 "     /* Now it's safe to call\n"
2869 "     guestfs_dd (g, \"foo\", \"bar\");\n"
2870 "     */\n"
2871 "   }\n"
2872 " #else\n"
2873 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
2874 " #endif\n"
2875 "  }\n"
2876 "\n"
2877 msgstr ""
2878
2879 # type: textblock
2880 #: ../src/guestfs.pod:1451
2881 msgid ""
2882 "You may think the above is an awful lot of hassle, and it is.  There are "
2883 "other ways outside of the C linking system to ensure that this kind of "
2884 "incompatibility never arises, such as using package versioning:"
2885 msgstr ""
2886
2887 # type: verbatim
2888 #: ../src/guestfs.pod:1456
2889 #, no-wrap
2890 msgid ""
2891 " Requires: libguestfs >= 1.0.80\n"
2892 "\n"
2893 msgstr ""
2894
2895 # type: =head1
2896 #: ../src/guestfs.pod:1458
2897 msgid "CALLS WITH OPTIONAL ARGUMENTS"
2898 msgstr ""
2899
2900 # type: textblock
2901 #: ../src/guestfs.pod:1460
2902 msgid ""
2903 "A recent feature of the API is the introduction of calls which take optional "
2904 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
2905 "takes variable arguments (ie. C<...>), as in this example:"
2906 msgstr ""
2907
2908 # type: verbatim
2909 #: ../src/guestfs.pod:1465
2910 #, no-wrap
2911 msgid ""
2912 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
2913 "\n"
2914 msgstr ""
2915
2916 # type: textblock
2917 #: ../src/guestfs.pod:1467
2918 msgid ""
2919 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
2920 "call with no optional arguments specified:"
2921 msgstr ""
2922
2923 # type: verbatim
2924 #: ../src/guestfs.pod:1470
2925 #, no-wrap
2926 msgid ""
2927 " guestfs_add_drive_opts (g, filename, -1);\n"
2928 "\n"
2929 msgstr ""
2930
2931 # type: textblock
2932 #: ../src/guestfs.pod:1472
2933 msgid "With a single optional argument:"
2934 msgstr ""
2935
2936 # type: verbatim
2937 #: ../src/guestfs.pod:1474
2938 #, no-wrap
2939 msgid ""
2940 " guestfs_add_drive_opts (g, filename,\n"
2941 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
2942 "                         -1);\n"
2943 "\n"
2944 msgstr ""
2945
2946 # type: textblock
2947 #: ../src/guestfs.pod:1478
2948 msgid "With two:"
2949 msgstr ""
2950
2951 # type: verbatim
2952 #: ../src/guestfs.pod:1480
2953 #, no-wrap
2954 msgid ""
2955 " guestfs_add_drive_opts (g, filename,\n"
2956 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
2957 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
2958 "                         -1);\n"
2959 "\n"
2960 msgstr ""
2961
2962 # type: textblock
2963 #: ../src/guestfs.pod:1485
2964 msgid ""
2965 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
2966 "happen!"
2967 msgstr ""
2968
2969 # type: =head2
2970 #: ../src/guestfs.pod:1488
2971 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
2972 msgstr ""
2973
2974 # type: textblock
2975 #: ../src/guestfs.pod:1490
2976 msgid ""
2977 "The second variant has the same name with the suffix C<_va>, which works the "
2978 "same way but takes a C<va_list>.  See the C manual for details.  For the "
2979 "example function, this is declared:"
2980 msgstr ""
2981
2982 # type: verbatim
2983 #: ../src/guestfs.pod:1494
2984 #, no-wrap
2985 msgid ""
2986 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
2987 "                                va_list args);\n"
2988 "\n"
2989 msgstr ""
2990
2991 # type: =head2
2992 #: ../src/guestfs.pod:1497
2993 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
2994 msgstr ""
2995
2996 # type: textblock
2997 #: ../src/guestfs.pod:1499
2998 msgid ""
2999 "The third variant is useful where you need to construct these calls.  You "
3000 "pass in a structure where you fill in the optional fields.  The structure "
3001 "has a bitmask as the first element which you must set to indicate which "
3002 "fields you have filled in.  For our example function the structure and call "
3003 "are declared:"
3004 msgstr ""
3005
3006 # type: verbatim
3007 #: ../src/guestfs.pod:1505
3008 #, no-wrap
3009 msgid ""
3010 " struct guestfs_add_drive_opts_argv {\n"
3011 "   uint64_t bitmask;\n"
3012 "   int readonly;\n"
3013 "   const char *format;\n"
3014 "   /* ... */\n"
3015 " };\n"
3016 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
3017 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
3018 "\n"
3019 msgstr ""
3020
3021 # type: textblock
3022 #: ../src/guestfs.pod:1514
3023 msgid "You could call it like this:"
3024 msgstr ""
3025
3026 # type: verbatim
3027 #: ../src/guestfs.pod:1516
3028 #, no-wrap
3029 msgid ""
3030 " struct guestfs_add_drive_opts_argv optargs = {\n"
3031 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
3032 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
3033 "   .readonly = 1,\n"
3034 "   .format = \"qcow2\"\n"
3035 " };\n"
3036 " \n"
3037 msgstr ""
3038
3039 # type: verbatim
3040 #: ../src/guestfs.pod:1523
3041 #, no-wrap
3042 msgid ""
3043 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
3044 "\n"
3045 msgstr ""
3046
3047 # type: textblock
3048 #: ../src/guestfs.pod:1525 ../src/guestfs-actions.pod:11
3049 #: ../src/guestfs-actions.pod:1842 ../fish/guestfish-actions.pod:9
3050 #: ../fish/guestfish-actions.pod:1255
3051 msgid "Notes:"
3052 msgstr ""
3053
3054 # type: textblock
3055 #: ../src/guestfs.pod:1531
3056 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
3057 msgstr ""
3058
3059 # type: textblock
3060 #: ../src/guestfs.pod:1536
3061 msgid "You do not need to fill in all fields of the structure."
3062 msgstr ""
3063
3064 # type: textblock
3065 #: ../src/guestfs.pod:1540
3066 msgid ""
3067 "There must be a one-to-one correspondence between fields of the structure "
3068 "that are filled in, and bits set in the bitmask."
3069 msgstr ""
3070
3071 # type: =head2
3072 #: ../src/guestfs.pod:1545
3073 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
3074 msgstr ""
3075
3076 # type: textblock
3077 #: ../src/guestfs.pod:1547
3078 msgid ""
3079 "In other languages, optional arguments are expressed in the way that is "
3080 "natural for that language.  We refer you to the language-specific "
3081 "documentation for more details on that."
3082 msgstr ""
3083
3084 # type: textblock
3085 #: ../src/guestfs.pod:1551
3086 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
3087 msgstr ""
3088
3089 # type: =head2
3090 #: ../src/guestfs.pod:1553
3091 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
3092 msgstr ""
3093
3094 # type: textblock
3095 #: ../src/guestfs.pod:1555
3096 msgid ""
3097 "The child process generates events in some situations.  Current events "
3098 "include: receiving a log message, the child process exits."
3099 msgstr ""
3100
3101 # type: textblock
3102 #: ../src/guestfs.pod:1558
3103 msgid ""
3104 "Use the C<guestfs_set_*_callback> functions to set a callback for different "
3105 "types of events."
3106 msgstr ""
3107
3108 # type: textblock
3109 #: ../src/guestfs.pod:1561
3110 msgid ""
3111 "Only I<one callback of each type> can be registered for each handle.  "
3112 "Calling C<guestfs_set_*_callback> again overwrites the previous callback of "
3113 "that type.  Cancel all callbacks of this type by calling this function with "
3114 "C<cb> set to C<NULL>."
3115 msgstr ""
3116
3117 # type: =head2
3118 #: ../src/guestfs.pod:1566
3119 msgid "guestfs_set_log_message_callback"
3120 msgstr ""
3121
3122 # type: verbatim
3123 #: ../src/guestfs.pod:1568
3124 #, no-wrap
3125 msgid ""
3126 " typedef void (*guestfs_log_message_cb) (guestfs_h *g, void *opaque,\n"
3127 "                                         char *buf, int len);\n"
3128 " void guestfs_set_log_message_callback (guestfs_h *g,\n"
3129 "                                        guestfs_log_message_cb cb,\n"
3130 "                                        void *opaque);\n"
3131 "\n"
3132 msgstr ""
3133
3134 # type: textblock
3135 #: ../src/guestfs.pod:1574
3136 msgid ""
3137 "The callback function C<cb> will be called whenever qemu or the guest writes "
3138 "anything to the console."
3139 msgstr ""
3140
3141 # type: textblock
3142 #: ../src/guestfs.pod:1577
3143 msgid "Use this function to capture kernel messages and similar."
3144 msgstr ""
3145
3146 # type: textblock
3147 #: ../src/guestfs.pod:1579
3148 msgid ""
3149 "Normally there is no log message handler, and log messages are just "
3150 "discarded."
3151 msgstr ""
3152
3153 # type: =head2
3154 #: ../src/guestfs.pod:1582
3155 msgid "guestfs_set_subprocess_quit_callback"
3156 msgstr ""
3157
3158 # type: verbatim
3159 #: ../src/guestfs.pod:1584
3160 #, no-wrap
3161 msgid ""
3162 " typedef void (*guestfs_subprocess_quit_cb) (guestfs_h *g, void *opaque);\n"
3163 " void guestfs_set_subprocess_quit_callback (guestfs_h *g,\n"
3164 "                                            guestfs_subprocess_quit_cb cb,\n"
3165 "                                            void *opaque);\n"
3166 "\n"
3167 msgstr ""
3168
3169 # type: textblock
3170 #: ../src/guestfs.pod:1589
3171 msgid ""
3172 "The callback function C<cb> will be called when the child process quits, "
3173 "either asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
3174 "corresponds to a transition from any state to the CONFIG state)."
3175 msgstr ""
3176
3177 # type: =head2
3178 #: ../src/guestfs.pod:1594
3179 msgid "guestfs_set_launch_done_callback"
3180 msgstr ""
3181
3182 # type: verbatim
3183 #: ../src/guestfs.pod:1596
3184 #, no-wrap
3185 msgid ""
3186 " typedef void (*guestfs_launch_done_cb) (guestfs_h *g, void *opaque);\n"
3187 " void guestfs_set_launch_done_callback (guestfs_h *g,\n"
3188 "                                        guestfs_launch_done_cb cb,\n"
3189 "                                        void *opaque);\n"
3190 "\n"
3191 msgstr ""
3192
3193 # type: textblock
3194 #: ../src/guestfs.pod:1601
3195 msgid ""
3196 "The callback function C<cb> will be called when the child process becomes "
3197 "ready first time after it has been launched.  (This corresponds to a "
3198 "transition from LAUNCHING to the READY state)."
3199 msgstr ""
3200
3201 # type: =head2
3202 #: ../src/guestfs.pod:1605
3203 msgid "guestfs_set_close_callback"
3204 msgstr ""
3205
3206 # type: verbatim
3207 #: ../src/guestfs.pod:1607
3208 #, no-wrap
3209 msgid ""
3210 " typedef void (*guestfs_close_cb) (guestfs_h *g, void *opaque);\n"
3211 " void guestfs_set_close_callback (guestfs_h *g,\n"
3212 "                                  guestfs_close_cb cb,\n"
3213 "                                  void *opaque);\n"
3214 "\n"
3215 msgstr ""
3216
3217 # type: textblock
3218 #: ../src/guestfs.pod:1612
3219 msgid ""
3220 "The callback function C<cb> will be called while the handle is being closed "
3221 "(synchronously from L</guestfs_close>)."
3222 msgstr ""
3223
3224 # type: textblock
3225 #: ../src/guestfs.pod:1615
3226 msgid ""
3227 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
3228 "handles that are open when the program exits.  This means that this callback "
3229 "might be called indirectly from L<exit(3)>, which can cause unexpected "
3230 "problems in higher-level languages (eg. if your HLL interpreter has already "
3231 "been cleaned up by the time this is called, and if your callback then jumps "
3232 "into some HLL function)."
3233 msgstr ""
3234
3235 # type: =head2
3236 #: ../src/guestfs.pod:1623
3237 msgid "guestfs_set_progress_callback"
3238 msgstr ""
3239
3240 # type: verbatim
3241 #: ../src/guestfs.pod:1625
3242 #, no-wrap
3243 msgid ""
3244 " typedef void (*guestfs_progress_cb) (guestfs_h *g, void *opaque,\n"
3245 "                                      int proc_nr, int serial,\n"
3246 "                                      uint64_t position, uint64_t total);\n"
3247 " void guestfs_set_progress_callback (guestfs_h *g,\n"
3248 "                                     guestfs_progress_cb cb,\n"
3249 "                                     void *opaque);\n"
3250 "\n"
3251 msgstr ""
3252
3253 # type: textblock
3254 #: ../src/guestfs.pod:1632
3255 msgid ""
3256 "Some long-running operations can generate progress messages.  If this "
3257 "callback is registered, then it will be called each time a progress message "
3258 "is generated (usually two seconds after the operation started, and three "
3259 "times per second thereafter until it completes, although the frequency may "
3260 "change in future versions)."
3261 msgstr ""
3262
3263 # type: textblock
3264 #: ../src/guestfs.pod:1638
3265 msgid ""
3266 "The callback receives two numbers: C<position> and C<total>.  The units of "
3267 "C<total> are not defined, although for some operations C<total> may relate "
3268 "in some way to the amount of data to be transferred (eg. in bytes or "
3269 "megabytes), and C<position> may be the portion which has been transferred."
3270 msgstr ""
3271
3272 # type: textblock
3273 #: ../src/guestfs.pod:1644
3274 msgid "The only defined and stable parts of the API are:"
3275 msgstr ""
3276
3277 # type: textblock
3278 #: ../src/guestfs.pod:1650
3279 msgid ""
3280 "The callback can display to the user some type of progress bar or indicator "
3281 "which shows the ratio of C<position>:C<total>."
3282 msgstr ""
3283
3284 # type: textblock
3285 #: ../src/guestfs.pod:1655
3286 msgid "0 E<lt>= C<position> E<lt>= C<total>"
3287 msgstr ""
3288
3289 # type: textblock
3290 #: ../src/guestfs.pod:1659
3291 msgid ""
3292 "If any progress notification is sent during a call, then a final progress "
3293 "notification is always sent when C<position> = C<total>."
3294 msgstr ""
3295
3296 # type: textblock
3297 #: ../src/guestfs.pod:1662
3298 msgid ""
3299 "This is to simplify caller code, so callers can easily set the progress "
3300 "indicator to \"100%\" at the end of the operation, without requiring special "
3301 "code to detect this case."
3302 msgstr ""
3303
3304 # type: textblock
3305 #: ../src/guestfs.pod:1668
3306 msgid ""
3307 "The callback also receives the procedure number and serial number of the "
3308 "call.  These are only useful for debugging protocol issues, and the callback "
3309 "can normally ignore them.  The callback may want to print these numbers in "
3310 "error messages or debugging messages."
3311 msgstr ""
3312
3313 # type: =head1
3314 #: ../src/guestfs.pod:1673
3315 msgid "PRIVATE DATA AREA"
3316 msgstr ""
3317
3318 # type: textblock
3319 #: ../src/guestfs.pod:1675
3320 msgid ""
3321 "You can attach named pieces of private data to the libguestfs handle, and "
3322 "fetch them by name for the lifetime of the handle.  This is called the "
3323 "private data area and is only available from the C API."
3324 msgstr ""
3325
3326 # type: textblock
3327 #: ../src/guestfs.pod:1679
3328 msgid "To attach a named piece of data, use the following call:"
3329 msgstr ""
3330
3331 # type: verbatim
3332 #: ../src/guestfs.pod:1681
3333 #, no-wrap
3334 msgid ""
3335 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
3336 "\n"
3337 msgstr ""
3338
3339 # type: textblock
3340 #: ../src/guestfs.pod:1683
3341 msgid ""
3342 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
3343 "pointer (which can be C<NULL>).  Any previous item with the same name is "
3344 "overwritten."
3345 msgstr ""
3346
3347 # type: textblock
3348 #: ../src/guestfs.pod:1687
3349 msgid ""
3350 "You can use any C<key> you want, but names beginning with an underscore "
3351 "character are reserved for internal libguestfs purposes (for implementing "
3352 "language bindings).  It is recommended to prefix the name with some unique "
3353 "string to avoid collisions with other users."
3354 msgstr ""
3355
3356 # type: textblock
3357 #: ../src/guestfs.pod:1692
3358 msgid "To retrieve the pointer, use:"
3359 msgstr ""
3360
3361 # type: verbatim
3362 #: ../src/guestfs.pod:1694
3363 #, no-wrap
3364 msgid ""
3365 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
3366 "\n"
3367 msgstr ""
3368
3369 # type: textblock
3370 #: ../src/guestfs.pod:1696
3371 msgid ""
3372 "This function returns C<NULL> if either no data is found associated with "
3373 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
3374 "C<NULL>."
3375 msgstr ""
3376
3377 # type: textblock
3378 #: ../src/guestfs.pod:1700
3379 msgid ""
3380 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
3381 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
3382 "all.  In particular, libguestfs does I<not> try to free the data when the "
3383 "handle is closed.  If the data must be freed, then the caller must either "
3384 "free it before calling L</guestfs_close> or must set up a close callback to "
3385 "do it (see L</guestfs_set_close_callback>, and note that only one callback "
3386 "can be registered for a handle)."
3387 msgstr ""
3388
3389 # type: textblock
3390 #: ../src/guestfs.pod:1708
3391 msgid ""
3392 "The private data area is implemented using a hash table, and should be "
3393 "reasonably efficient for moderate numbers of keys."
3394 msgstr ""
3395
3396 # type: =end
3397 #: ../src/guestfs.pod:1711 ../src/guestfs.pod:1716
3398 msgid "html"
3399 msgstr ""
3400
3401 # type: textblock
3402 #: ../src/guestfs.pod:1713
3403 msgid ""
3404 "<!-- old anchor for the next section --> <a name="
3405 "\"state_machine_and_low_level_event_api\"/>"
3406 msgstr ""
3407
3408 # type: =head1
3409 #: ../src/guestfs.pod:1718
3410 msgid "ARCHITECTURE"
3411 msgstr ""
3412
3413 # type: textblock
3414 #: ../src/guestfs.pod:1720
3415 msgid ""
3416 "Internally, libguestfs is implemented by running an appliance (a special "
3417 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
3418 "process of the main program."
3419 msgstr ""
3420
3421 # type: verbatim
3422 #: ../src/guestfs.pod:1724
3423 #, no-wrap
3424 msgid ""
3425 "  ___________________\n"
3426 " /                   \\\n"
3427 " | main program      |\n"
3428 " |                   |\n"
3429 " |                   |           child process / appliance\n"
3430 " |                   |           __________________________\n"
3431 " |                   |          / qemu                     \\\n"
3432 " +-------------------+   RPC    |      +-----------------+ |\n"
3433 " | libguestfs     <--------------------> guestfsd        | |\n"
3434 " |                   |          |      +-----------------+ |\n"
3435 " \\___________________/          |      | Linux kernel    | |\n"
3436 "                                |      +--^--------------+ |\n"
3437 "                                \\_________|________________/\n"
3438 "                                          |\n"
3439 "                                   _______v______\n"
3440 "                                  /              \\\n"
3441 "                                  | Device or    |\n"
3442 "                                  | disk image   |\n"
3443 "                                  \\______________/\n"
3444 "\n"
3445 msgstr ""
3446
3447 # type: textblock
3448 #: ../src/guestfs.pod:1744
3449 msgid ""
3450 "The library, linked to the main program, creates the child process and hence "
3451 "the appliance in the L</guestfs_launch> function."
3452 msgstr ""
3453
3454 # type: textblock
3455 #: ../src/guestfs.pod:1747
3456 msgid ""
3457 "Inside the appliance is a Linux kernel and a complete stack of userspace "
3458 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
3459 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
3460 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
3461 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
3462 "attached to the qemu process which translates device access by the "
3463 "appliance's Linux kernel into accesses to the image."
3464 msgstr ""
3465
3466 # type: textblock
3467 #: ../src/guestfs.pod:1756
3468 msgid ""
3469 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
3470 "Although the disk image you are attached to might also be used by some "
3471 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
3472 "care if both libguestfs's qemu process and your virtual machine are trying "
3473 "to update the disk image at the same time, since these usually results in "
3474 "massive disk corruption)."
3475 msgstr ""
3476
3477 # type: =head1
3478 #: ../src/guestfs.pod:1763
3479 msgid "STATE MACHINE"
3480 msgstr ""
3481
3482 # type: textblock
3483 #: ../src/guestfs.pod:1765
3484 msgid "libguestfs uses a state machine to model the child process:"
3485 msgstr ""
3486
3487 # type: verbatim
3488 #: ../src/guestfs.pod:1767
3489 #, no-wrap
3490 msgid ""
3491 "                         |\n"
3492 "                    guestfs_create\n"
3493 "                         |\n"
3494 "                         |\n"
3495 "                     ____V_____\n"
3496 "                    /          \\\n"
3497 "                    |  CONFIG  |\n"
3498 "                    \\__________/\n"
3499 "                     ^ ^   ^  \\\n"
3500 "                    /  |    \\  \\ guestfs_launch\n"
3501 "                   /   |    _\\__V______\n"
3502 "                  /    |   /           \\\n"
3503 "                 /     |   | LAUNCHING |\n"
3504 "                /      |   \\___________/\n"
3505 "               /       |       /\n"
3506 "              /        |  guestfs_launch\n"
3507 "             /         |     /\n"
3508 "    ______  /        __|____V\n"
3509 "   /      \\ ------> /        \\\n"
3510 "   | BUSY |         | READY  |\n"
3511 "   \\______/ <------ \\________/\n"
3512 "\n"
3513 msgstr ""
3514
3515 # type: textblock
3516 #: ../src/guestfs.pod:1789
3517 msgid ""
3518 "The normal transitions are (1) CONFIG (when the handle is created, but there "
3519 "is no child process), (2) LAUNCHING (when the child process is booting up), "
3520 "(3) alternating between READY and BUSY as commands are issued to, and "
3521 "carried out by, the child process."
3522 msgstr ""
3523
3524 # type: textblock
3525 #: ../src/guestfs.pod:1794
3526 msgid ""
3527 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
3528 "asynchronously at any time (eg. due to some internal error), and that causes "
3529 "the state to transition back to CONFIG."
3530 msgstr ""
3531
3532 # type: textblock
3533 #: ../src/guestfs.pod:1798
3534 msgid ""
3535 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
3536 "issued when in the CONFIG state."
3537 msgstr ""
3538
3539 # type: textblock
3540 #: ../src/guestfs.pod:1801
3541 msgid ""
3542 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
3543 "L</guestfs_launch> blocks until the child process is READY to accept "
3544 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
3545 "moves the state from CONFIG to LAUNCHING while it is running."
3546 msgstr ""
3547
3548 # type: textblock
3549 #: ../src/guestfs.pod:1807
3550 msgid ""
3551 "API actions such as L</guestfs_mount> can only be issued when in the READY "
3552 "state.  These API calls block waiting for the command to be carried out (ie. "
3553 "the state to transition to BUSY and then back to READY).  There are no non-"
3554 "blocking versions, and no way to issue more than one command per handle at "
3555 "the same time."
3556 msgstr ""
3557
3558 # type: textblock
3559 #: ../src/guestfs.pod:1813
3560 msgid ""
3561 "Finally, the child process sends asynchronous messages back to the main "
3562 "program, such as kernel log messages.  You can register a callback to "
3563 "receive these messages."
3564 msgstr ""
3565
3566 # type: =head1
3567 #: ../src/guestfs.pod:1817
3568 msgid "INTERNALS"
3569 msgstr ""
3570
3571 # type: =head2
3572 #: ../src/guestfs.pod:1819
3573 msgid "COMMUNICATION PROTOCOL"
3574 msgstr ""
3575
3576 # type: textblock
3577 #: ../src/guestfs.pod:1821
3578 msgid ""
3579 "Don't rely on using this protocol directly.  This section documents how it "
3580 "currently works, but it may change at any time."
3581 msgstr ""
3582
3583 # type: textblock
3584 #: ../src/guestfs.pod:1824
3585 msgid ""
3586 "The protocol used to talk between the library and the daemon running inside "
3587 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
3588 "1014, RFC 1832, RFC 4506)."
3589 msgstr ""
3590
3591 # type: textblock
3592 #: ../src/guestfs.pod:1828
3593 msgid ""
3594 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
3595 "this file is automatically generated)."
3596 msgstr ""
3597
3598 # type: textblock
3599 #: ../src/guestfs.pod:1831
3600 msgid ""
3601 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
3602 "and C<FileOut> parameters, which are handled with very simple request/reply "
3603 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
3604 "parameters, which use the same request and reply messages, but they may also "
3605 "be followed by files sent using a chunked encoding."
3606 msgstr ""
3607
3608 # type: =head3
3609 #: ../src/guestfs.pod:1838
3610 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
3611 msgstr ""
3612
3613 # type: textblock
3614 #: ../src/guestfs.pod:1840
3615 msgid "For ordinary functions, the request message is:"
3616 msgstr ""
3617
3618 # type: verbatim
3619 #: ../src/guestfs.pod:1842
3620 #, no-wrap
3621 msgid ""
3622 " total length (header + arguments,\n"
3623 "      but not including the length word itself)\n"
3624 " struct guestfs_message_header (encoded as XDR)\n"
3625 " struct guestfs_<foo>_args (encoded as XDR)\n"
3626 "\n"
3627 msgstr ""
3628
3629 # type: textblock
3630 #: ../src/guestfs.pod:1847
3631 msgid ""
3632 "The total length field allows the daemon to allocate a fixed size buffer "
3633 "into which it slurps the rest of the message.  As a result, the total length "
3634 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
3635 "effective size of any request is limited to somewhere under this size."
3636 msgstr ""
3637
3638 # type: textblock
3639 #: ../src/guestfs.pod:1853
3640 msgid ""
3641 "Note also that many functions don't take any arguments, in which case the "
3642 "C<guestfs_I<foo>_args> is completely omitted."
3643 msgstr ""
3644
3645 # type: textblock
3646 #: ../src/guestfs.pod:1856
3647 msgid ""
3648 "The header contains the procedure number (C<guestfs_proc>) which is how the "
3649 "receiver knows what type of args structure to expect, or none at all."
3650 msgstr ""
3651
3652 # type: textblock
3653 #: ../src/guestfs.pod:1860
3654 msgid "The reply message for ordinary functions is:"
3655 msgstr ""
3656
3657 # type: verbatim
3658 #: ../src/guestfs.pod:1862
3659 #, no-wrap
3660 msgid ""
3661 " total length (header + ret,\n"
3662 "      but not including the length word itself)\n"
3663 " struct guestfs_message_header (encoded as XDR)\n"
3664 " struct guestfs_<foo>_ret (encoded as XDR)\n"
3665 "\n"
3666 msgstr ""
3667
3668 # type: textblock
3669 #: ../src/guestfs.pod:1867
3670 msgid ""
3671 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
3672 "functions that return no formal return values."
3673 msgstr ""
3674
3675 # type: textblock
3676 #: ../src/guestfs.pod:1870
3677 msgid ""
3678 "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
3679 msgstr ""
3680
3681 # type: textblock
3682 #: ../src/guestfs.pod:1873
3683 msgid ""
3684 "In the case of an error, a flag is set in the header, and the reply message "
3685 "is slightly changed:"
3686 msgstr ""
3687
3688 # type: verbatim
3689 #: ../src/guestfs.pod:1876
3690 #, no-wrap
3691 msgid ""
3692 " total length (header + error,\n"
3693 "      but not including the length word itself)\n"
3694 " struct guestfs_message_header (encoded as XDR)\n"
3695 " struct guestfs_message_error (encoded as XDR)\n"
3696 "\n"
3697 msgstr ""
3698
3699 # type: textblock
3700 #: ../src/guestfs.pod:1881
3701 msgid ""
3702 "The C<guestfs_message_error> structure contains the error message as a "
3703 "string."
3704 msgstr ""
3705
3706 # type: =head3
3707 #: ../src/guestfs.pod:1884
3708 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
3709 msgstr ""
3710
3711 # type: textblock
3712 #: ../src/guestfs.pod:1886
3713 msgid ""
3714 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
3715 "The normal request message is sent (see above).  However this is followed by "
3716 "a sequence of file chunks."
3717 msgstr ""
3718
3719 # type: verbatim
3720 #: ../src/guestfs.pod:1890
3721 #, no-wrap
3722 msgid ""
3723 " total length (header + arguments,\n"
3724 "      but not including the length word itself,\n"
3725 "      and not including the chunks)\n"
3726 " struct guestfs_message_header (encoded as XDR)\n"
3727 " struct guestfs_<foo>_args (encoded as XDR)\n"
3728 " sequence of chunks for FileIn param #0\n"
3729 " sequence of chunks for FileIn param #1 etc.\n"
3730 "\n"
3731 msgstr ""
3732
3733 # type: textblock
3734 #: ../src/guestfs.pod:1898
3735 msgid "The \"sequence of chunks\" is:"
3736 msgstr ""
3737
3738 # type: verbatim
3739 #: ../src/guestfs.pod:1900
3740 #, no-wrap
3741 msgid ""
3742 " length of chunk (not including length word itself)\n"
3743 " struct guestfs_chunk (encoded as XDR)\n"
3744 " length of chunk\n"
3745 " struct guestfs_chunk (encoded as XDR)\n"
3746 "   ...\n"
3747 " length of chunk\n"
3748 " struct guestfs_chunk (with data.data_len == 0)\n"
3749 "\n"
3750 msgstr ""
3751
3752 # type: textblock
3753 #: ../src/guestfs.pod:1908
3754 msgid ""
3755 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
3756 "is set in the final chunk to indicate either successful completion or early "
3757 "cancellation."
3758 msgstr ""
3759
3760 # type: textblock
3761 #: ../src/guestfs.pod:1912
3762 msgid ""
3763 "At time of writing there are no functions that have more than one FileIn "
3764 "parameter.  However this is (theoretically) supported, by sending the "
3765 "sequence of chunks for each FileIn parameter one after another (from left to "
3766 "right)."
3767 msgstr ""
3768
3769 # type: textblock
3770 #: ../src/guestfs.pod:1917
3771 msgid ""
3772 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
3773 "transfer.  The library does this by sending a chunk with a special flag set "
3774 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
3775 "RPC, does I<not> send any reply, and goes back to reading the next request."
3776 msgstr ""
3777
3778 # type: textblock
3779 #: ../src/guestfs.pod:1923
3780 msgid ""
3781 "The daemon may also cancel.  It does this by writing a special word "
3782 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
3783 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
3784 "cancel chunk).  The special word is chosen so that even if cancellation "
3785 "happens right at the end of the transfer (after the library has finished "
3786 "writing and has started listening for the reply), the \"spurious\" cancel "
3787 "flag will not be confused with the reply message."
3788 msgstr ""
3789
3790 # type: textblock
3791 #: ../src/guestfs.pod:1932
3792 msgid ""
3793 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
3794 "limit), and also files where the size is not known in advance (eg. from "
3795 "pipes or sockets).  However the chunks are rather small "
3796 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
3797 "to keep much in memory."
3798 msgstr ""
3799
3800 # type: =head3
3801 #: ../src/guestfs.pod:1938
3802 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
3803 msgstr ""
3804
3805 # type: textblock
3806 #: ../src/guestfs.pod:1940
3807 msgid ""
3808 "The protocol for FileOut parameters is exactly the same as for FileIn "
3809 "parameters, but with the roles of daemon and library reversed."
3810 msgstr ""
3811
3812 # type: verbatim
3813 #: ../src/guestfs.pod:1943
3814 #, no-wrap
3815 msgid ""
3816 " total length (header + ret,\n"
3817 "      but not including the length word itself,\n"
3818 "      and not including the chunks)\n"
3819 " struct guestfs_message_header (encoded as XDR)\n"
3820 " struct guestfs_<foo>_ret (encoded as XDR)\n"
3821 " sequence of chunks for FileOut param #0\n"
3822 " sequence of chunks for FileOut param #1 etc.\n"
3823 "\n"
3824 msgstr ""
3825
3826 # type: =head3
3827 #: ../src/guestfs.pod:1951
3828 msgid "INITIAL MESSAGE"
3829 msgstr ""
3830
3831 # type: textblock
3832 #: ../src/guestfs.pod:1953
3833 msgid ""
3834 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
3835 "which indicates that the guest and daemon is alive.  This is what L</"
3836 "guestfs_launch> waits for."
3837 msgstr ""
3838
3839 # type: =head3
3840 #: ../src/guestfs.pod:1957
3841 msgid "PROGRESS NOTIFICATION MESSAGES"
3842 msgstr ""
3843
3844 # type: textblock
3845 #: ../src/guestfs.pod:1959
3846 msgid ""
3847 "The daemon may send progress notification messages at any time.  These are "
3848 "distinguished by the normal length word being replaced by "
3849 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
3850 msgstr ""
3851
3852 # type: textblock
3853 #: ../src/guestfs.pod:1963
3854 msgid ""
3855 "The library turns them into progress callbacks (see "
3856 "C<guestfs_set_progress_callback>) if there is a callback registered, or "
3857 "discards them if not."
3858 msgstr ""
3859
3860 # type: textblock
3861 #: ../src/guestfs.pod:1967
3862 msgid ""
3863 "The daemon self-limits the frequency of progress messages it sends (see "
3864 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
3865 "messages."
3866 msgstr ""
3867
3868 # type: =head1
3869 #: ../src/guestfs.pod:1971
3870 msgid "LIBGUESTFS VERSION NUMBERS"
3871 msgstr ""
3872
3873 # type: textblock
3874 #: ../src/guestfs.pod:1973
3875 msgid ""
3876 "Since April 2010, libguestfs has started to make separate development and "
3877 "stable releases, along with corresponding branches in our git repository.  "
3878 "These separate releases can be identified by version number:"
3879 msgstr ""
3880
3881 # type: verbatim
3882 #: ../src/guestfs.pod:1978
3883 #, no-wrap
3884 msgid ""
3885 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
3886 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
3887 "       |\n"
3888 "       v\n"
3889 " 1  .  3  .  5\n"
3890 " ^           ^\n"
3891 " |           |\n"
3892 " |           `-------- sub-version\n"
3893 " |\n"
3894 " `------ always '1' because we don't change the ABI\n"
3895 "\n"
3896 msgstr ""
3897
3898 # type: textblock
3899 #: ../src/guestfs.pod:1989
3900 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
3901 msgstr ""
3902
3903 # type: textblock
3904 #: ../src/guestfs.pod:1991
3905 msgid ""
3906 "As time passes we cherry pick fixes from the development branch and backport "
3907 "those into the stable branch, the effect being that the stable branch should "
3908 "get more stable and less buggy over time.  So the stable releases are ideal "
3909 "for people who don't need new features but would just like the software to "
3910 "work."
3911 msgstr ""
3912
3913 # type: textblock
3914 #: ../src/guestfs.pod:1997
3915 msgid "Our criteria for backporting changes are:"
3916 msgstr ""
3917
3918 # type: textblock
3919 #: ../src/guestfs.pod:2003
3920 msgid ""
3921 "Documentation changes which don't affect any code are backported unless the "
3922 "documentation refers to a future feature which is not in stable."
3923 msgstr ""
3924
3925 # type: textblock
3926 #: ../src/guestfs.pod:2009
3927 msgid ""
3928 "Bug fixes which are not controversial, fix obvious problems, and have been "
3929 "well tested are backported."
3930 msgstr ""
3931
3932 # type: textblock
3933 #: ../src/guestfs.pod:2014
3934 msgid ""
3935 "Simple rearrangements of code which shouldn't affect how it works get "
3936 "backported.  This is so that the code in the two branches doesn't get too "
3937 "far out of step, allowing us to backport future fixes more easily."
3938 msgstr ""
3939
3940 # type: textblock
3941 #: ../src/guestfs.pod:2020
3942 msgid ""
3943 "We I<don't> backport new features, new APIs, new tools etc, except in one "
3944 "exceptional case: the new feature is required in order to implement an "
3945 "important bug fix."
3946 msgstr ""
3947
3948 # type: textblock
3949 #: ../src/guestfs.pod:2026
3950 msgid ""
3951 "A new stable branch starts when we think the new features in development are "
3952 "substantial and compelling enough over the current stable branch to warrant "
3953 "it.  When that happens we create new stable and development versions 1.N.0 "
3954 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
3955 "stable at this point, but by backporting fixes from development, that branch "
3956 "will stabilize over time."
3957 msgstr ""
3958
3959 # type: =head1
3960 #: ../src/guestfs.pod:2034 ../fish/guestfish.pod:914
3961 #: ../test-tool/libguestfs-test-tool.pod:104 ../tools/virt-edit.pl:330
3962 #: ../tools/virt-rescue.pl:255
3963 msgid "ENVIRONMENT VARIABLES"
3964 msgstr ""
3965
3966 # type: =item
3967 #: ../src/guestfs.pod:2038 ../fish/guestfish.pod:940
3968 msgid "LIBGUESTFS_APPEND"
3969 msgstr ""
3970
3971 # type: textblock
3972 #: ../src/guestfs.pod:2040 ../fish/guestfish.pod:942
3973 msgid "Pass additional options to the guest kernel."
3974 msgstr ""
3975
3976 # type: =item
3977 #: ../src/guestfs.pod:2042 ../fish/guestfish.pod:944
3978 msgid "LIBGUESTFS_DEBUG"
3979 msgstr ""
3980
3981 # type: textblock
3982 #: ../src/guestfs.pod:2044
3983 msgid ""
3984 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
3985 "effect as calling C<guestfs_set_verbose (g, 1)>."
3986 msgstr ""
3987
3988 # type: =item
3989 #: ../src/guestfs.pod:2047 ../fish/guestfish.pod:949
3990 msgid "LIBGUESTFS_MEMSIZE"
3991 msgstr ""
3992
3993 # type: textblock
3994 #: ../src/guestfs.pod:2049 ../fish/guestfish.pod:951
3995 msgid ""
3996 "Set the memory allocated to the qemu process, in megabytes.  For example:"
3997 msgstr ""
3998
3999 # type: verbatim
4000 #: ../src/guestfs.pod:2052 ../fish/guestfish.pod:954
4001 #, no-wrap
4002 msgid ""
4003 " LIBGUESTFS_MEMSIZE=700\n"
4004 "\n"
4005 msgstr ""
4006
4007 # type: =item
4008 #: ../src/guestfs.pod:2054 ../fish/guestfish.pod:956
4009 msgid "LIBGUESTFS_PATH"
4010 msgstr ""
4011
4012 # type: textblock
4013 #: ../src/guestfs.pod:2056
4014 msgid ""
4015 "Set the path that libguestfs uses to search for kernel and initrd.img.  See "
4016 "the discussion of paths in section PATH above."
4017 msgstr ""
4018
4019 # type: =item
4020 #: ../src/guestfs.pod:2059 ../fish/guestfish.pod:961
4021 msgid "LIBGUESTFS_QEMU"
4022 msgstr ""
4023
4024 # type: textblock
4025 #: ../src/guestfs.pod:2061 ../fish/guestfish.pod:963
4026 msgid ""
4027 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
4028 "which was found at compile time by the configure script is used."
4029 msgstr ""
4030
4031 # type: textblock
4032 #: ../src/guestfs.pod:2065
4033 msgid "See also L</QEMU WRAPPERS> above."
4034 msgstr ""
4035
4036 # type: =item
4037 #: ../src/guestfs.pod:2067 ../fish/guestfish.pod:967
4038 msgid "LIBGUESTFS_TRACE"
4039 msgstr ""
4040
4041 # type: textblock
4042 #: ../src/guestfs.pod:2069
4043 msgid ""
4044 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
4045 "effect as calling C<guestfs_set_trace (g, 1)>."
4046 msgstr ""
4047
4048 # type: =item
4049 #: ../src/guestfs.pod:2072 ../fish/guestfish.pod:976
4050 msgid "TMPDIR"
4051 msgstr ""
4052
4053 # type: textblock
4054 #: ../src/guestfs.pod:2074 ../fish/guestfish.pod:978
4055 msgid "Location of temporary directory, defaults to C</tmp>."
4056 msgstr ""
4057
4058 # type: textblock
4059 #: ../src/guestfs.pod:2076 ../fish/guestfish.pod:980
4060 msgid ""
4061 "If libguestfs was compiled to use the supermin appliance then the real "
4062 "appliance is cached in this directory, shared between all handles belonging "
4063 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
4064 "use in case C</tmp> is not large enough."
4065 msgstr ""
4066
4067 # type: =head1
4068 #: ../src/guestfs.pod:2084 ../fish/guestfish.pod:1038
4069 #: ../test-tool/libguestfs-test-tool.pod:109 ../fuse/guestmount.pod:233
4070 #: ../tools/virt-edit.pl:350 ../tools/virt-win-reg.pl:484
4071 #: ../tools/virt-df.pl:640 ../tools/virt-ls.pl:232
4072 #: ../tools/virt-resize.pl:1486 ../tools/virt-list-filesystems.pl:186
4073 #: ../tools/virt-tar.pl:281 ../tools/virt-rescue.pl:267
4074 #: ../tools/virt-make-fs.pl:534 ../tools/virt-list-partitions.pl:254
4075 msgid "SEE ALSO"
4076 msgstr ""
4077
4078 # type: textblock
4079 #: ../src/guestfs.pod:2086
4080 msgid ""
4081 "L<guestfish(1)>, L<guestmount(1)>, L<virt-cat(1)>, L<virt-df(1)>, L<virt-edit"
4082 "(1)>, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, L<virt-list-"
4083 "partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-"
4084 "tar(1)>, L<virt-win-reg(1)>, L<qemu(1)>, L<febootstrap(1)>, L<hivex(3)>, "
4085 "L<http://libguestfs.org/>."
4086 msgstr ""
4087
4088 # type: textblock
4089 #: ../src/guestfs.pod:2104
4090 msgid ""
4091 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, L<lvm"
4092 "(8)>, L<disktype(1)>."
4093 msgstr ""
4094
4095 # type: =head1
4096 #: ../src/guestfs.pod:2111 ../tools/virt-win-reg.pl:499
4097 #: ../tools/virt-make-fs.pl:548
4098 msgid "BUGS"
4099 msgstr ""
4100
4101 # type: textblock
4102 #: ../src/guestfs.pod:2113
4103 msgid "To get a list of bugs against libguestfs use this link:"
4104 msgstr ""
4105
4106 # type: textblock
4107 #: ../src/guestfs.pod:2115
4108 msgid ""
4109 "L<https://bugzilla.redhat.com/buglist.cgi?"
4110 "component=libguestfs&product=Virtualization+Tools>"
4111 msgstr ""
4112
4113 # type: textblock
4114 #: ../src/guestfs.pod:2117
4115 msgid "To report a new bug against libguestfs use this link:"
4116 msgstr ""
4117
4118 # type: textblock
4119 #: ../src/guestfs.pod:2119
4120 msgid ""
4121 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
4122 "component=libguestfs&product=Virtualization+Tools>"
4123 msgstr ""
4124
4125 # type: textblock
4126 #: ../src/guestfs.pod:2121
4127 msgid "When reporting a bug, please check:"
4128 msgstr ""
4129
4130 # type: textblock
4131 #: ../src/guestfs.pod:2127
4132 msgid "That the bug hasn't been reported already."
4133 msgstr ""
4134
4135 # type: textblock
4136 #: ../src/guestfs.pod:2131
4137 msgid "That you are testing a recent version."
4138 msgstr ""
4139
4140 # type: textblock
4141 #: ../src/guestfs.pod:2135
4142 msgid "Describe the bug accurately, and give a way to reproduce it."
4143 msgstr ""
4144
4145 # type: textblock
4146 #: ../src/guestfs.pod:2139
4147 msgid ""
4148 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
4149 "bug report."
4150 msgstr ""
4151
4152 # type: =head1
4153 #: ../src/guestfs.pod:2144 ../fish/guestfish.pod:1055
4154 #: ../test-tool/libguestfs-test-tool.pod:115 ../fuse/guestmount.pod:244
4155 msgid "AUTHORS"
4156 msgstr ""
4157
4158 # type: textblock
4159 #: ../src/guestfs.pod:2146 ../fish/guestfish.pod:1057
4160 #: ../test-tool/libguestfs-test-tool.pod:117 ../fuse/guestmount.pod:246
4161 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
4162 msgstr ""
4163
4164 # type: =head1
4165 #: ../src/guestfs.pod:2148 ../fish/guestfish.pod:1059
4166 #: ../test-tool/libguestfs-test-tool.pod:119 ../fuse/guestmount.pod:248
4167 #: ../tools/virt-edit.pl:366 ../tools/virt-win-reg.pl:514
4168 #: ../tools/virt-df.pl:653 ../tools/virt-ls.pl:247
4169 #: ../tools/virt-resize.pl:1512 ../tools/virt-list-filesystems.pl:202
4170 #: ../tools/virt-tar.pl:296 ../tools/virt-rescue.pl:281
4171 #: ../tools/virt-make-fs.pl:563 ../tools/virt-list-partitions.pl:269
4172 msgid "COPYRIGHT"
4173 msgstr ""
4174
4175 # type: textblock
4176 #: ../src/guestfs.pod:2150 ../fish/guestfish.pod:1061
4177 #: ../fuse/guestmount.pod:250
4178 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
4179 msgstr ""
4180
4181 # type: textblock
4182 #: ../src/guestfs.pod:2153
4183 msgid ""
4184 "This library is free software; you can redistribute it and/or modify it "
4185 "under the terms of the GNU Lesser General Public License as published by the "
4186 "Free Software Foundation; either version 2 of the License, or (at your "
4187 "option) any later version."
4188 msgstr ""
4189
4190 # type: textblock
4191 #: ../src/guestfs.pod:2158
4192 msgid ""
4193 "This library is distributed in the hope that it will be useful, but WITHOUT "
4194 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
4195 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License "
4196 "for more details."
4197 msgstr ""
4198
4199 # type: textblock
4200 #: ../src/guestfs.pod:2163
4201 msgid ""
4202 "You should have received a copy of the GNU Lesser General Public License "
4203 "along with this library; if not, write to the Free Software Foundation, "
4204 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
4205 msgstr ""
4206
4207 # type: =head2
4208 #: ../src/guestfs-actions.pod:1
4209 msgid "guestfs_add_cdrom"
4210 msgstr ""
4211
4212 # type: verbatim
4213 #: ../src/guestfs-actions.pod:3
4214 #, no-wrap
4215 msgid ""
4216 " int\n"
4217 " guestfs_add_cdrom (guestfs_h *g,\n"
4218 "                    const char *filename);\n"
4219 "\n"
4220 msgstr ""
4221
4222 # type: textblock
4223 #: ../src/guestfs-actions.pod:7 ../fish/guestfish-actions.pod:5
4224 msgid "This function adds a virtual CD-ROM disk image to the guest."
4225 msgstr ""
4226
4227 # type: textblock
4228 #: ../src/guestfs-actions.pod:9 ../fish/guestfish-actions.pod:7
4229 msgid "This is equivalent to the qemu parameter C<-cdrom filename>."
4230 msgstr ""
4231
4232 # type: textblock
4233 #: ../src/guestfs-actions.pod:17
4234 msgid ""
4235 "This call checks for the existence of C<filename>.  This stops you from "
4236 "specifying other types of drive which are supported by qemu such as C<nbd:> "
4237 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
4238 "instead."
4239 msgstr ""
4240
4241 # type: textblock
4242 #: ../src/guestfs-actions.pod:24
4243 msgid ""
4244 "If you just want to add an ISO file (often you use this as an efficient way "
4245 "to transfer large files into the guest), then you should probably use "
4246 "C<guestfs_add_drive_ro> instead."
4247 msgstr ""
4248
4249 # type: textblock
4250 #: ../src/guestfs-actions.pod:30 ../src/guestfs-actions.pod:126
4251 #: ../src/guestfs-actions.pod:187 ../src/guestfs-actions.pod:224
4252 #: ../src/guestfs-actions.pod:238 ../src/guestfs-actions.pod:259
4253 #: ../src/guestfs-actions.pod:279 ../src/guestfs-actions.pod:293
4254 #: ../src/guestfs-actions.pod:408 ../src/guestfs-actions.pod:428
4255 #: ../src/guestfs-actions.pod:442 ../src/guestfs-actions.pod:487
4256 #: ../src/guestfs-actions.pod:515 ../src/guestfs-actions.pod:533
4257 #: ../src/guestfs-actions.pod:600 ../src/guestfs-actions.pod:633
4258 #: ../src/guestfs-actions.pod:647 ../src/guestfs-actions.pod:662
4259 #: ../src/guestfs-actions.pod:761 ../src/guestfs-actions.pod:779
4260 #: ../src/guestfs-actions.pod:793 ../src/guestfs-actions.pod:807
4261 #: ../src/guestfs-actions.pod:968 ../src/guestfs-actions.pod:988
4262 #: ../src/guestfs-actions.pod:1006 ../src/guestfs-actions.pod:1090
4263 #: ../src/guestfs-actions.pod:1108 ../src/guestfs-actions.pod:1127
4264 #: ../src/guestfs-actions.pod:1141 ../src/guestfs-actions.pod:1161
4265 #: ../src/guestfs-actions.pod:1231 ../src/guestfs-actions.pod:1262
4266 #: ../src/guestfs-actions.pod:1287 ../src/guestfs-actions.pod:1324
4267 #: ../src/guestfs-actions.pod:1430 ../src/guestfs-actions.pod:1464
4268 #: ../src/guestfs-actions.pod:1682 ../src/guestfs-actions.pod:1704
4269 #: ../src/guestfs-actions.pod:1791 ../src/guestfs-actions.pod:2213
4270 #: ../src/guestfs-actions.pod:2357 ../src/guestfs-actions.pod:2418
4271 #: ../src/guestfs-actions.pod:2453 ../src/guestfs-actions.pod:3182
4272 #: ../src/guestfs-actions.pod:3197 ../src/guestfs-actions.pod:3217
4273 #: ../src/guestfs-actions.pod:3342 ../src/guestfs-actions.pod:3356
4274 #: ../src/guestfs-actions.pod:3369 ../src/guestfs-actions.pod:3383
4275 #: ../src/guestfs-actions.pod:3398 ../src/guestfs-actions.pod:3434
4276 #: ../src/guestfs-actions.pod:3506 ../src/guestfs-actions.pod:3526
4277 #: ../src/guestfs-actions.pod:3543 ../src/guestfs-actions.pod:3566
4278 #: ../src/guestfs-actions.pod:3589 ../src/guestfs-actions.pod:3621
4279 #: ../src/guestfs-actions.pod:3640 ../src/guestfs-actions.pod:3659
4280 #: ../src/guestfs-actions.pod:3694 ../src/guestfs-actions.pod:3706
4281 #: ../src/guestfs-actions.pod:3742 ../src/guestfs-actions.pod:3758
4282 #: ../src/guestfs-actions.pod:3771 ../src/guestfs-actions.pod:3786
4283 #: ../src/guestfs-actions.pod:3803 ../src/guestfs-actions.pod:3896
4284 #: ../src/guestfs-actions.pod:3916 ../src/guestfs-actions.pod:3929
4285 #: ../src/guestfs-actions.pod:3980 ../src/guestfs-actions.pod:3998
4286 #: ../src/guestfs-actions.pod:4016 ../src/guestfs-actions.pod:4032
4287 #: ../src/guestfs-actions.pod:4046 ../src/guestfs-actions.pod:4060
4288 #: ../src/guestfs-actions.pod:4077 ../src/guestfs-actions.pod:4092
4289 #: ../src/guestfs-actions.pod:4112 ../src/guestfs-actions.pod:4161
4290 #: ../src/guestfs-actions.pod:4192 ../src/guestfs-actions.pod:4211
4291 #: ../src/guestfs-actions.pod:4230 ../src/guestfs-actions.pod:4242
4292 #: ../src/guestfs-actions.pod:4259 ../src/guestfs-actions.pod:4272
4293 #: ../src/guestfs-actions.pod:4287 ../src/guestfs-actions.pod:4302
4294 #: ../src/guestfs-actions.pod:4337 ../src/guestfs-actions.pod:4352
4295 #: ../src/guestfs-actions.pod:4372 ../src/guestfs-actions.pod:4386
4296 #: ../src/guestfs-actions.pod:4403 ../src/guestfs-actions.pod:4452
4297 #: ../src/guestfs-actions.pod:4489 ../src/guestfs-actions.pod:4503
4298 #: ../src/guestfs-actions.pod:4531 ../src/guestfs-actions.pod:4548
4299 #: ../src/guestfs-actions.pod:4566 ../src/guestfs-actions.pod:4700
4300 #: ../src/guestfs-actions.pod:4757 ../src/guestfs-actions.pod:4779
4301 #: ../src/guestfs-actions.pod:4797 ../src/guestfs-actions.pod:4829
4302 #: ../src/guestfs-actions.pod:4895 ../src/guestfs-actions.pod:4912
4303 #: ../src/guestfs-actions.pod:4925 ../src/guestfs-actions.pod:4939
4304 #: ../src/guestfs-actions.pod:5228 ../src/guestfs-actions.pod:5247
4305 #: ../src/guestfs-actions.pod:5261 ../src/guestfs-actions.pod:5273
4306 #: ../src/guestfs-actions.pod:5287 ../src/guestfs-actions.pod:5299
4307 #: ../src/guestfs-actions.pod:5313 ../src/guestfs-actions.pod:5329
4308 #: ../src/guestfs-actions.pod:5350 ../src/guestfs-actions.pod:5369
4309 #: ../src/guestfs-actions.pod:5388 ../src/guestfs-actions.pod:5406
4310 #: ../src/guestfs-actions.pod:5429 ../src/guestfs-actions.pod:5447
4311 #: ../src/guestfs-actions.pod:5466 ../src/guestfs-actions.pod:5487
4312 #: ../src/guestfs-actions.pod:5506 ../src/guestfs-actions.pod:5523
4313 #: ../src/guestfs-actions.pod:5551 ../src/guestfs-actions.pod:5575
4314 #: ../src/guestfs-actions.pod:5594 ../src/guestfs-actions.pod:5618
4315 #: ../src/guestfs-actions.pod:5633 ../src/guestfs-actions.pod:5648
4316 #: ../src/guestfs-actions.pod:5667 ../src/guestfs-actions.pod:5704
4317 #: ../src/guestfs-actions.pod:5727 ../src/guestfs-actions.pod:5753
4318 #: ../src/guestfs-actions.pod:5861 ../src/guestfs-actions.pod:5982
4319 #: ../src/guestfs-actions.pod:5994 ../src/guestfs-actions.pod:6007
4320 #: ../src/guestfs-actions.pod:6020 ../src/guestfs-actions.pod:6042
4321 #: ../src/guestfs-actions.pod:6055 ../src/guestfs-actions.pod:6068
4322 #: ../src/guestfs-actions.pod:6081 ../src/guestfs-actions.pod:6096
4323 #: ../src/guestfs-actions.pod:6155 ../src/guestfs-actions.pod:6172
4324 #: ../src/guestfs-actions.pod:6188 ../src/guestfs-actions.pod:6204
4325 #: ../src/guestfs-actions.pod:6221 ../src/guestfs-actions.pod:6234
4326 #: ../src/guestfs-actions.pod:6254 ../src/guestfs-actions.pod:6290
4327 #: ../src/guestfs-actions.pod:6304 ../src/guestfs-actions.pod:6345
4328 #: ../src/guestfs-actions.pod:6358 ../src/guestfs-actions.pod:6376
4329 #: ../src/guestfs-actions.pod:6405 ../src/guestfs-actions.pod:6436
4330 #: ../src/guestfs-actions.pod:6555 ../src/guestfs-actions.pod:6573
4331 #: ../src/guestfs-actions.pod:6587 ../src/guestfs-actions.pod:6642
4332 #: ../src/guestfs-actions.pod:6655 ../src/guestfs-actions.pod:6700
4333 #: ../src/guestfs-actions.pod:6733 ../src/guestfs-actions.pod:6787
4334 #: ../src/guestfs-actions.pod:6813 ../src/guestfs-actions.pod:6879
4335 #: ../src/guestfs-actions.pod:6898 ../src/guestfs-actions.pod:6927
4336 msgid "This function returns 0 on success or -1 on error."
4337 msgstr ""
4338
4339 # type: textblock
4340 #: ../src/guestfs-actions.pod:32 ../src/guestfs-actions.pod:240
4341 #: ../src/guestfs-actions.pod:261 ../fish/guestfish-actions.pod:28
4342 #: ../fish/guestfish-actions.pod:153 ../fish/guestfish-actions.pod:167
4343 msgid ""
4344 "This function is deprecated.  In new code, use the C<add_drive_opts> call "
4345 "instead."
4346 msgstr ""
4347
4348 # type: textblock
4349 #: ../src/guestfs-actions.pod:35 ../src/guestfs-actions.pod:243
4350 #: ../src/guestfs-actions.pod:264 ../src/guestfs-actions.pod:1435
4351 #: ../src/guestfs-actions.pod:1921 ../src/guestfs-actions.pod:1942
4352 #: ../src/guestfs-actions.pod:6821 ../src/guestfs-actions.pod:6990
4353 #: ../fish/guestfish-actions.pod:31 ../fish/guestfish-actions.pod:156
4354 #: ../fish/guestfish-actions.pod:170 ../fish/guestfish-actions.pod:951
4355 #: ../fish/guestfish-actions.pod:1308 ../fish/guestfish-actions.pod:1322
4356 #: ../fish/guestfish-actions.pod:4549 ../fish/guestfish-actions.pod:4646
4357 msgid ""
4358 "Deprecated functions will not be removed from the API, but the fact that "
4359 "they are deprecated indicates that there are problems with correct use of "
4360 "these functions."
4361 msgstr ""
4362
4363 # type: textblock
4364 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:128
4365 #: ../src/guestfs-actions.pod:1092 ../src/guestfs-actions.pod:1893
4366 #: ../src/guestfs-actions.pod:1991 ../src/guestfs-actions.pod:2094
4367 #: ../src/guestfs-actions.pod:3184 ../src/guestfs-actions.pod:3199
4368 #: ../src/guestfs-actions.pod:4339 ../src/guestfs-actions.pod:5408
4369 #: ../src/guestfs-actions.pod:5525 ../src/guestfs-actions.pod:5635
4370 #: ../src/guestfs-actions.pod:6098 ../src/guestfs-actions.pod:6223
4371 #: ../src/guestfs-actions.pod:6735
4372 msgid "(Added in 0.3)"
4373 msgstr ""
4374
4375 # type: =head2
4376 #: ../src/guestfs-actions.pod:41
4377 msgid "guestfs_add_domain"
4378 msgstr ""
4379
4380 # type: verbatim
4381 #: ../src/guestfs-actions.pod:43
4382 #, no-wrap
4383 msgid ""
4384 " int\n"
4385 " guestfs_add_domain (guestfs_h *g,\n"
4386 "                     const char *dom,\n"
4387 "                     ...);\n"
4388 "\n"
4389 msgstr ""
4390
4391 # type: textblock
4392 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:137
4393 msgid ""
4394 "You may supply a list of optional arguments to this call.  Use zero or more "
4395 "of the following pairs of parameters, and terminate the list with C<-1> on "
4396 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
4397 msgstr ""
4398
4399 # type: verbatim
4400 #: ../src/guestfs-actions.pod:53
4401 #, no-wrap
4402 msgid ""
4403 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
4404 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
4405 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
4406 "\n"
4407 msgstr ""
4408
4409 # type: textblock
4410 #: ../src/guestfs-actions.pod:57
4411 msgid ""
4412 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
4413 "It works by connecting to libvirt, requesting the domain and domain XML from "
4414 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
4415 "one."
4416 msgstr ""
4417
4418 # type: textblock
4419 #: ../src/guestfs-actions.pod:62 ../fish/guestfish-actions.pod:46
4420 msgid ""
4421 "The number of disks added is returned.  This operation is atomic: if an "
4422 "error is returned, then no disks are added."
4423 msgstr ""
4424
4425 # type: textblock
4426 #: ../src/guestfs-actions.pod:65 ../fish/guestfish-actions.pod:49
4427 msgid ""
4428 "This function does some minimal checks to make sure the libvirt domain is "
4429 "not running (unless C<readonly> is true).  In a future version we will try "
4430 "to acquire the libvirt lock on each disk."
4431 msgstr ""
4432
4433 # type: textblock
4434 #: ../src/guestfs-actions.pod:69 ../fish/guestfish-actions.pod:53
4435 msgid ""
4436 "Disks must be accessible locally.  This often means that adding disks from a "
4437 "remote libvirt connection (see L<http://libvirt.org/remote.html>)  will fail "
4438 "unless those disks are accessible via the same device path locally too."
4439 msgstr ""
4440
4441 # type: textblock
4442 #: ../src/guestfs-actions.pod:74
4443 msgid ""
4444 "The optional C<libvirturi> parameter sets the libvirt URI (see L<http://"
4445 "libvirt.org/uri.html>).  If this is not set then we connect to the default "
4446 "libvirt URI (or one set through an environment variable, see the libvirt "
4447 "documentation for full details).  If you are using the C API directly then "
4448 "it is more flexible to create the libvirt connection object yourself, get "
4449 "the domain object, and call C<guestfs_add_libvirt_dom>."
4450 msgstr ""
4451
4452 # type: textblock
4453 #: ../src/guestfs-actions.pod:82
4454 msgid ""
4455 "The other optional parameters are passed directly through to "
4456 "C<guestfs_add_drive_opts>."
4457 msgstr ""
4458
4459 # type: textblock
4460 #: ../src/guestfs-actions.pod:85 ../src/guestfs-actions.pod:336
4461 #: ../src/guestfs-actions.pod:501 ../src/guestfs-actions.pod:679
4462 #: ../src/guestfs-actions.pod:710 ../src/guestfs-actions.pod:728
4463 #: ../src/guestfs-actions.pod:747 ../src/guestfs-actions.pod:1307
4464 #: ../src/guestfs-actions.pod:1661 ../src/guestfs-actions.pod:1864
4465 #: ../src/guestfs-actions.pod:1963 ../src/guestfs-actions.pod:2003
4466 #: ../src/guestfs-actions.pod:2058 ../src/guestfs-actions.pod:2081
4467 #: ../src/guestfs-actions.pod:2344 ../src/guestfs-actions.pod:2630
4468 #: ../src/guestfs-actions.pod:2651 ../src/guestfs-actions.pod:4475
4469 #: ../src/guestfs-actions.pod:4603 ../src/guestfs-actions.pod:5009
4470 #: ../src/guestfs-actions.pod:5035 ../src/guestfs-actions.pod:6331
4471 #: ../src/guestfs-actions.pod:6746 ../src/guestfs-actions.pod:6759
4472 #: ../src/guestfs-actions.pod:6772
4473 msgid "On error this function returns -1."
4474 msgstr ""
4475
4476 # type: =head2
4477 #: ../src/guestfs-actions.pod:87
4478 msgid "guestfs_add_domain_va"
4479 msgstr ""
4480
4481 # type: verbatim
4482 #: ../src/guestfs-actions.pod:89
4483 #, no-wrap
4484 msgid ""
4485 " int\n"
4486 " guestfs_add_domain_va (guestfs_h *g,\n"
4487 "                        const char *dom,\n"
4488 "                        va_list args);\n"
4489 "\n"
4490 msgstr ""
4491
4492 # type: textblock
4493 #: ../src/guestfs-actions.pod:94
4494 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
4495 msgstr ""
4496
4497 # type: textblock
4498 #: ../src/guestfs-actions.pod:96 ../src/guestfs-actions.pod:107
4499 #: ../src/guestfs-actions.pod:200 ../src/guestfs-actions.pod:211
4500 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
4501 msgstr ""
4502
4503 # type: =head2
4504 #: ../src/guestfs-actions.pod:98
4505 msgid "guestfs_add_domain_argv"
4506 msgstr ""
4507
4508 # type: verbatim
4509 #: ../src/guestfs-actions.pod:100
4510 #, no-wrap
4511 msgid ""
4512 " int\n"
4513 " guestfs_add_domain_argv (guestfs_h *g,\n"
4514 "                          const char *dom,\n"
4515 "                          const struct guestfs_add_domain_argv *optargs);\n"
4516 "\n"
4517 msgstr ""
4518
4519 # type: textblock
4520 #: ../src/guestfs-actions.pod:105
4521 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
4522 msgstr ""
4523
4524 # type: =head2
4525 #: ../src/guestfs-actions.pod:109
4526 msgid "guestfs_add_drive"
4527 msgstr ""
4528
4529 # type: verbatim
4530 #: ../src/guestfs-actions.pod:111
4531 #, no-wrap
4532 msgid ""
4533 " int\n"
4534 " guestfs_add_drive (guestfs_h *g,\n"
4535 "                    const char *filename);\n"
4536 "\n"
4537 msgstr ""
4538
4539 # type: textblock
4540 #: ../src/guestfs-actions.pod:115
4541 msgid ""
4542 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
4543 "optional parameters, so the disk is added writable, with the format being "
4544 "detected automatically."
4545 msgstr ""
4546
4547 # type: textblock
4548 #: ../src/guestfs-actions.pod:119
4549 msgid ""
4550 "Automatic detection of the format opens you up to a potential security hole "
4551 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
4552 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
4553 "you should think about replacing calls to this function with calls to "
4554 "C<guestfs_add_drive_opts>, and specifying the format."
4555 msgstr ""
4556
4557 # type: =head2
4558 #: ../src/guestfs-actions.pod:130
4559 msgid "guestfs_add_drive_opts"
4560 msgstr ""
4561
4562 # type: verbatim
4563 #: ../src/guestfs-actions.pod:132
4564 #, no-wrap
4565 msgid ""
4566 " int\n"
4567 " guestfs_add_drive_opts (guestfs_h *g,\n"
4568 "                         const char *filename,\n"
4569 "                         ...);\n"
4570 "\n"
4571 msgstr ""
4572
4573 # type: verbatim
4574 #: ../src/guestfs-actions.pod:142
4575 #, no-wrap
4576 msgid ""
4577 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
4578 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
4579 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
4580 "\n"
4581 msgstr ""
4582
4583 # type: textblock
4584 #: ../src/guestfs-actions.pod:146 ../fish/guestfish-actions.pod:92
4585 msgid ""
4586 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
4587 "The first time you call this function, the disk appears as C</dev/sda>, the "
4588 "second time as C</dev/sdb>, and so on."
4589 msgstr ""
4590
4591 # type: textblock
4592 #: ../src/guestfs-actions.pod:151 ../fish/guestfish-actions.pod:97
4593 msgid ""
4594 "You don't necessarily need to be root when using libguestfs.  However you "
4595 "obviously do need sufficient permissions to access the filename for whatever "
4596 "operations you want to perform (ie. read access if you just want to read the "
4597 "image or write access if you want to modify the image)."
4598 msgstr ""
4599
4600 # type: textblock
4601 #: ../src/guestfs-actions.pod:157 ../fish/guestfish-actions.pod:103
4602 msgid "This call checks that C<filename> exists."
4603 msgstr ""
4604
4605 # type: textblock
4606 #: ../src/guestfs-actions.pod:159 ../fish/guestfish-actions.pod:105
4607 msgid "The optional arguments are:"
4608 msgstr ""
4609
4610 # type: =item
4611 #: ../src/guestfs-actions.pod:163 ../fish/guestfish-actions.pod:109
4612 msgid "C<readonly>"
4613 msgstr ""
4614
4615 # type: textblock
4616 #: ../src/guestfs-actions.pod:165 ../fish/guestfish-actions.pod:111
4617 msgid ""
4618 "If true then the image is treated as read-only.  Writes are still allowed, "
4619 "but they are stored in a temporary snapshot overlay which is discarded at "
4620 "the end.  The disk that you add is not modified."
4621 msgstr ""
4622
4623 # type: =item
4624 #: ../src/guestfs-actions.pod:169 ../fish/guestfish-actions.pod:115
4625 msgid "C<format>"
4626 msgstr ""
4627
4628 # type: textblock
4629 #: ../src/guestfs-actions.pod:171
4630 msgid ""
4631 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
4632 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
4633 "Possible formats include C<raw> and C<qcow2>."
4634 msgstr ""
4635
4636 # type: textblock
4637 #: ../src/guestfs-actions.pod:175 ../fish/guestfish-actions.pod:121
4638 msgid ""
4639 "Automatic detection of the format opens you up to a potential security hole "
4640 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
4641 "RHBZ#642934.  Specifying the format closes this security hole."
4642 msgstr ""
4643
4644 # type: =item
4645 #: ../src/guestfs-actions.pod:180 ../fish/guestfish-actions.pod:126
4646 msgid "C<iface>"
4647 msgstr ""
4648
4649 # type: textblock
4650 #: ../src/guestfs-actions.pod:182
4651 msgid ""
4652 "This rarely-used option lets you emulate the behaviour of the deprecated "
4653 "C<guestfs_add_drive_with_if> call (q.v.)"
4654 msgstr ""
4655
4656 # type: textblock
4657 #: ../src/guestfs-actions.pod:189
4658 msgid "(Added in 1.5.23)"
4659 msgstr ""
4660
4661 # type: =head2
4662 #: ../src/guestfs-actions.pod:191
4663 msgid "guestfs_add_drive_opts_va"
4664 msgstr ""
4665
4666 # type: verbatim
4667 #: ../src/guestfs-actions.pod:193
4668 #, no-wrap
4669 msgid ""
4670 " int\n"
4671 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
4672 "                            const char *filename,\n"
4673 "                            va_list args);\n"
4674 "\n"
4675 msgstr ""
4676
4677 # type: textblock
4678 #: ../src/guestfs-actions.pod:198
4679 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
4680 msgstr ""
4681
4682 # type: =head2
4683 #: ../src/guestfs-actions.pod:202
4684 msgid "guestfs_add_drive_opts_argv"
4685 msgstr ""
4686
4687 # type: verbatim
4688 #: ../src/guestfs-actions.pod:204
4689 #, no-wrap
4690 msgid ""
4691 " int\n"
4692 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
4693 "                              const char *filename,\n"
4694 "                              const struct guestfs_add_drive_opts_argv *optargs);\n"
4695 "\n"
4696 msgstr ""
4697
4698 # type: textblock
4699 #: ../src/guestfs-actions.pod:209
4700 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
4701 msgstr ""
4702
4703 # type: =head2
4704 #: ../src/guestfs-actions.pod:213
4705 msgid "guestfs_add_drive_ro"
4706 msgstr ""
4707
4708 # type: verbatim
4709 #: ../src/guestfs-actions.pod:215
4710 #, no-wrap
4711 msgid ""
4712 " int\n"
4713 " guestfs_add_drive_ro (guestfs_h *g,\n"
4714 "                       const char *filename);\n"
4715 "\n"
4716 msgstr ""
4717
4718 # type: textblock
4719 #: ../src/guestfs-actions.pod:219
4720 msgid ""
4721 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
4722 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
4723 "disk is added read-only, with the format being detected automatically."
4724 msgstr ""
4725
4726 # type: textblock
4727 #: ../src/guestfs-actions.pod:226
4728 msgid "(Added in 1.0.38)"
4729 msgstr ""
4730
4731 # type: =head2
4732 #: ../src/guestfs-actions.pod:228
4733 msgid "guestfs_add_drive_ro_with_if"
4734 msgstr ""
4735
4736 # type: verbatim
4737 #: ../src/guestfs-actions.pod:230
4738 #, no-wrap
4739 msgid ""
4740 " int\n"
4741 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
4742 "                               const char *filename,\n"
4743 "                               const char *iface);\n"
4744 "\n"
4745 msgstr ""
4746
4747 # type: textblock
4748 #: ../src/guestfs-actions.pod:235
4749 msgid ""
4750 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
4751 "QEMU interface emulation to use at run time."
4752 msgstr ""
4753
4754 # type: textblock
4755 #: ../src/guestfs-actions.pod:247 ../src/guestfs-actions.pod:268
4756 #: ../src/guestfs-actions.pod:2303
4757 msgid "(Added in 1.0.84)"
4758 msgstr ""
4759
4760 # type: =head2
4761 #: ../src/guestfs-actions.pod:249
4762 msgid "guestfs_add_drive_with_if"
4763 msgstr ""
4764
4765 # type: verbatim
4766 #: ../src/guestfs-actions.pod:251
4767 #, no-wrap
4768 msgid ""
4769 " int\n"
4770 " guestfs_add_drive_with_if (guestfs_h *g,\n"
4771 "                            const char *filename,\n"
4772 "                            const char *iface);\n"
4773 "\n"
4774 msgstr ""
4775
4776 # type: textblock
4777 #: ../src/guestfs-actions.pod:256
4778 msgid ""
4779 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
4780 "QEMU interface emulation to use at run time."
4781 msgstr ""
4782
4783 # type: =head2
4784 #: ../src/guestfs-actions.pod:270
4785 msgid "guestfs_aug_clear"
4786 msgstr ""
4787
4788 # type: verbatim
4789 #: ../src/guestfs-actions.pod:272
4790 #, no-wrap
4791 msgid ""
4792 " int\n"
4793 " guestfs_aug_clear (guestfs_h *g,\n"
4794 "                    const char *augpath);\n"
4795 "\n"
4796 msgstr ""
4797
4798 # type: textblock
4799 #: ../src/guestfs-actions.pod:276 ../fish/guestfish-actions.pod:178
4800 msgid ""
4801 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
4802 "L<augtool(1)> C<clear> command."
4803 msgstr ""
4804
4805 # type: textblock
4806 #: ../src/guestfs-actions.pod:281 ../src/guestfs-actions.pod:2083
4807 msgid "(Added in 1.3.4)"
4808 msgstr ""
4809
4810 # type: =head2
4811 #: ../src/guestfs-actions.pod:283
4812 msgid "guestfs_aug_close"
4813 msgstr ""
4814
4815 # type: verbatim
4816 #: ../src/guestfs-actions.pod:285
4817 #, no-wrap
4818 msgid ""
4819 " int\n"
4820 " guestfs_aug_close (guestfs_h *g);\n"
4821 "\n"
4822 msgstr ""
4823
4824 # type: textblock
4825 #: ../src/guestfs-actions.pod:288
4826 msgid ""
4827 "Close the current Augeas handle and free up any resources used by it.  After "
4828 "calling this, you have to call C<guestfs_aug_init> again before you can use "
4829 "any other Augeas functions."
4830 msgstr ""
4831
4832 # type: textblock
4833 #: ../src/guestfs-actions.pod:295 ../src/guestfs-actions.pod:320
4834 #: ../src/guestfs-actions.pod:338 ../src/guestfs-actions.pod:352
4835 #: ../src/guestfs-actions.pod:410 ../src/guestfs-actions.pod:430
4836 #: ../src/guestfs-actions.pod:444 ../src/guestfs-actions.pod:475
4837 #: ../src/guestfs-actions.pod:489 ../src/guestfs-actions.pod:503
4838 #: ../src/guestfs-actions.pod:517 ../src/guestfs-actions.pod:535
4839 #: ../src/guestfs-actions.pod:5086
4840 msgid "(Added in 0.7)"
4841 msgstr ""
4842
4843 # type: =head2
4844 #: ../src/guestfs-actions.pod:297
4845 msgid "guestfs_aug_defnode"
4846 msgstr ""
4847
4848 # type: verbatim
4849 #: ../src/guestfs-actions.pod:299
4850 #, no-wrap
4851 msgid ""
4852 " struct guestfs_int_bool *\n"
4853 " guestfs_aug_defnode (guestfs_h *g,\n"
4854 "                      const char *name,\n"
4855 "                      const char *expr,\n"
4856 "                      const char *val);\n"
4857 "\n"
4858 msgstr ""
4859
4860 # type: textblock
4861 #: ../src/guestfs-actions.pod:305 ../fish/guestfish-actions.pod:194
4862 msgid ""
4863 "Defines a variable C<name> whose value is the result of evaluating C<expr>."
4864 msgstr ""
4865
4866 # type: textblock
4867 #: ../src/guestfs-actions.pod:308
4868 msgid ""
4869 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
4870 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
4871 "containing that single node."
4872 msgstr ""
4873
4874 # type: textblock
4875 #: ../src/guestfs-actions.pod:312 ../fish/guestfish-actions.pod:201
4876 msgid ""
4877 "On success this returns a pair containing the number of nodes in the "
4878 "nodeset, and a boolean flag if a node was created."
4879 msgstr ""
4880
4881 # type: textblock
4882 #: ../src/guestfs-actions.pod:316
4883 msgid ""
4884 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
4885 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
4886 msgstr ""
4887
4888 # type: =head2
4889 #: ../src/guestfs-actions.pod:322
4890 msgid "guestfs_aug_defvar"
4891 msgstr ""
4892
4893 # type: verbatim
4894 #: ../src/guestfs-actions.pod:324
4895 #, no-wrap
4896 msgid ""
4897 " int\n"
4898 " guestfs_aug_defvar (guestfs_h *g,\n"
4899 "                     const char *name,\n"
4900 "                     const char *expr);\n"
4901 "\n"
4902 msgstr ""
4903
4904 # type: textblock
4905 #: ../src/guestfs-actions.pod:329 ../fish/guestfish-actions.pod:209
4906 msgid ""
4907 "Defines an Augeas variable C<name> whose value is the result of evaluating "
4908 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
4909 msgstr ""
4910
4911 # type: textblock
4912 #: ../src/guestfs-actions.pod:333 ../fish/guestfish-actions.pod:213
4913 msgid ""
4914 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
4915 "evaluates to something which is not a nodeset."
4916 msgstr ""
4917
4918 # type: =head2
4919 #: ../src/guestfs-actions.pod:340
4920 msgid "guestfs_aug_get"
4921 msgstr ""
4922
4923 # type: verbatim
4924 #: ../src/guestfs-actions.pod:342
4925 #, no-wrap
4926 msgid ""
4927 " char *\n"
4928 " guestfs_aug_get (guestfs_h *g,\n"
4929 "                  const char *augpath);\n"
4930 "\n"
4931 msgstr ""
4932
4933 # type: textblock
4934 #: ../src/guestfs-actions.pod:346 ../fish/guestfish-actions.pod:220
4935 msgid ""
4936 "Look up the value associated with C<path>.  If C<path> matches exactly one "
4937 "node, the C<value> is returned."
4938 msgstr ""
4939
4940 # type: textblock
4941 #: ../src/guestfs-actions.pod:349 ../src/guestfs-actions.pod:849
4942 #: ../src/guestfs-actions.pod:867 ../src/guestfs-actions.pod:927
4943 #: ../src/guestfs-actions.pod:943 ../src/guestfs-actions.pod:1046
4944 #: ../src/guestfs-actions.pod:1176 ../src/guestfs-actions.pod:1193
4945 #: ../src/guestfs-actions.pod:1212 ../src/guestfs-actions.pod:1341
4946 #: ../src/guestfs-actions.pod:1532 ../src/guestfs-actions.pod:1644
4947 #: ../src/guestfs-actions.pod:1807 ../src/guestfs-actions.pod:1824
4948 #: ../src/guestfs-actions.pod:1915 ../src/guestfs-actions.pod:1936
4949 #: ../src/guestfs-actions.pod:2106 ../src/guestfs-actions.pod:2268
4950 #: ../src/guestfs-actions.pod:2475 ../src/guestfs-actions.pod:2556
4951 #: ../src/guestfs-actions.pod:2604 ../src/guestfs-actions.pod:2712
4952 #: ../src/guestfs-actions.pod:2741 ../src/guestfs-actions.pod:2763
4953 #: ../src/guestfs-actions.pod:2823 ../src/guestfs-actions.pod:2846
4954 #: ../src/guestfs-actions.pod:3328 ../src/guestfs-actions.pod:3678
4955 #: ../src/guestfs-actions.pod:3848 ../src/guestfs-actions.pod:3958
4956 #: ../src/guestfs-actions.pod:4621 ../src/guestfs-actions.pod:4814
4957 #: ../src/guestfs-actions.pod:4984 ../src/guestfs-actions.pod:5162
4958 #: ../src/guestfs-actions.pod:5211 ../src/guestfs-actions.pod:5774
4959 #: ../src/guestfs-actions.pod:5790 ../src/guestfs-actions.pod:5807
4960 #: ../src/guestfs-actions.pod:5831 ../src/guestfs-actions.pod:6495
4961 #: ../src/guestfs-actions.pod:6514 ../src/guestfs-actions.pod:6532
4962 #: ../src/guestfs-actions.pod:6712 ../src/guestfs-actions.pod:6984
4963 msgid ""
4964 "This function returns a string, or NULL on error.  I<The caller must free "
4965 "the returned string after use>."
4966 msgstr ""
4967
4968 # type: =head2
4969 #: ../src/guestfs-actions.pod:354
4970 msgid "guestfs_aug_init"
4971 msgstr ""
4972
4973 # type: verbatim
4974 #: ../src/guestfs-actions.pod:356
4975 #, no-wrap
4976 msgid ""
4977 " int\n"
4978 " guestfs_aug_init (guestfs_h *g,\n"
4979 "                   const char *root,\n"
4980 "                   int flags);\n"
4981 "\n"
4982 msgstr ""
4983
4984 # type: textblock
4985 #: ../src/guestfs-actions.pod:361 ../fish/guestfish-actions.pod:227
4986 msgid ""
4987 "Create a new Augeas handle for editing configuration files.  If there was "
4988 "any previous Augeas handle associated with this guestfs session, then it is "
4989 "closed."
4990 msgstr ""
4991
4992 # type: textblock
4993 #: ../src/guestfs-actions.pod:365
4994 msgid "You must call this before using any other C<guestfs_aug_*> commands."
4995 msgstr ""
4996
4997 # type: textblock
4998 #: ../src/guestfs-actions.pod:368 ../fish/guestfish-actions.pod:234
4999 msgid ""
5000 "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
5001 msgstr ""
5002
5003 # type: textblock
5004 #: ../src/guestfs-actions.pod:371 ../fish/guestfish-actions.pod:237
5005 msgid ""
5006 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
5007 "logical I<or> of the following integers:"
5008 msgstr ""
5009
5010 # type: =item
5011 #: ../src/guestfs-actions.pod:377 ../fish/guestfish-actions.pod:243
5012 msgid "C<AUG_SAVE_BACKUP> = 1"
5013 msgstr ""
5014
5015 # type: textblock
5016 #: ../src/guestfs-actions.pod:379 ../fish/guestfish-actions.pod:245
5017 msgid "Keep the original file with a C<.augsave> extension."
5018 msgstr ""
5019
5020 # type: =item
5021 #: ../src/guestfs-actions.pod:381 ../fish/guestfish-actions.pod:247
5022 msgid "C<AUG_SAVE_NEWFILE> = 2"
5023 msgstr ""
5024
5025 # type: textblock
5026 #: ../src/guestfs-actions.pod:383 ../fish/guestfish-actions.pod:249
5027 msgid ""
5028 "Save changes into a file with extension C<.augnew>, and do not overwrite "
5029 "original.  Overrides C<AUG_SAVE_BACKUP>."
5030 msgstr ""
5031
5032 # type: =item
5033 #: ../src/guestfs-actions.pod:386 ../fish/guestfish-actions.pod:252
5034 msgid "C<AUG_TYPE_CHECK> = 4"
5035 msgstr ""
5036
5037 # type: textblock
5038 #: ../src/guestfs-actions.pod:388 ../fish/guestfish-actions.pod:254
5039 msgid "Typecheck lenses (can be expensive)."
5040 msgstr ""
5041
5042 # type: =item
5043 #: ../src/guestfs-actions.pod:390 ../fish/guestfish-actions.pod:256
5044 msgid "C<AUG_NO_STDINC> = 8"
5045 msgstr ""
5046
5047 # type: textblock
5048 #: ../src/guestfs-actions.pod:392 ../fish/guestfish-actions.pod:258
5049 msgid "Do not use standard load path for modules."
5050 msgstr ""
5051
5052 # type: =item
5053 #: ../src/guestfs-actions.pod:394 ../fish/guestfish-actions.pod:260
5054 msgid "C<AUG_SAVE_NOOP> = 16"
5055 msgstr ""
5056
5057 # type: textblock
5058 #: ../src/guestfs-actions.pod:396 ../fish/guestfish-actions.pod:262
5059 msgid "Make save a no-op, just record what would have been changed."
5060 msgstr ""
5061
5062 # type: =item
5063 #: ../src/guestfs-actions.pod:398 ../fish/guestfish-actions.pod:264
5064 msgid "C<AUG_NO_LOAD> = 32"
5065 msgstr ""
5066
5067 # type: textblock
5068 #: ../src/guestfs-actions.pod:400
5069 msgid "Do not load the tree in C<guestfs_aug_init>."
5070 msgstr ""
5071
5072 # type: textblock
5073 #: ../src/guestfs-actions.pod:404
5074 msgid "To close the handle, you can call C<guestfs_aug_close>."
5075 msgstr ""
5076
5077 # type: textblock
5078 #: ../src/guestfs-actions.pod:406 ../fish/guestfish-actions.pod:272
5079 msgid "To find out more about Augeas, see L<http://augeas.net/>."
5080 msgstr ""
5081
5082 # type: =head2
5083 #: ../src/guestfs-actions.pod:412
5084 msgid "guestfs_aug_insert"
5085 msgstr ""
5086
5087 # type: verbatim
5088 #: ../src/guestfs-actions.pod:414
5089 #, no-wrap
5090 msgid ""
5091 " int\n"
5092 " guestfs_aug_insert (guestfs_h *g,\n"
5093 "                     const char *augpath,\n"
5094 "                     const char *label,\n"
5095 "                     int before);\n"
5096 "\n"
5097 msgstr ""
5098
5099 # type: textblock
5100 #: ../src/guestfs-actions.pod:420 ../fish/guestfish-actions.pod:278
5101 msgid ""
5102 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
5103 "or after C<path> (depending on the boolean flag C<before>)."
5104 msgstr ""
5105
5106 # type: textblock
5107 #: ../src/guestfs-actions.pod:424 ../fish/guestfish-actions.pod:282
5108 msgid ""
5109 "C<path> must match exactly one existing node in the tree, and C<label> must "
5110 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
5111 msgstr ""
5112
5113 # type: =head2
5114 #: ../src/guestfs-actions.pod:432
5115 msgid "guestfs_aug_load"
5116 msgstr ""
5117
5118 # type: verbatim
5119 #: ../src/guestfs-actions.pod:434
5120 #, no-wrap
5121 msgid ""
5122 " int\n"
5123 " guestfs_aug_load (guestfs_h *g);\n"
5124 "\n"
5125 msgstr ""
5126
5127 # type: textblock
5128 #: ../src/guestfs-actions.pod:437 ../fish/guestfish-actions.pod:290
5129 msgid "Load files into the tree."
5130 msgstr ""
5131
5132 # type: textblock
5133 #: ../src/guestfs-actions.pod:439 ../fish/guestfish-actions.pod:292
5134 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
5135 msgstr ""
5136
5137 # type: =head2
5138 #: ../src/guestfs-actions.pod:446
5139 msgid "guestfs_aug_ls"
5140 msgstr ""
5141
5142 # type: verbatim
5143 #: ../src/guestfs-actions.pod:448
5144 #, no-wrap
5145 msgid ""
5146 " char **\n"
5147 " guestfs_aug_ls (guestfs_h *g,\n"
5148 "                 const char *augpath);\n"
5149 "\n"
5150 msgstr ""
5151
5152 # type: textblock
5153 #: ../src/guestfs-actions.pod:452
5154 msgid ""
5155 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
5156 "sorting the resulting nodes into alphabetical order."
5157 msgstr ""
5158
5159 # type: textblock
5160 #: ../src/guestfs-actions.pod:455 ../src/guestfs-actions.pod:471
5161 #: ../src/guestfs-actions.pod:617 ../src/guestfs-actions.pod:1065
5162 #: ../src/guestfs-actions.pod:1356 ../src/guestfs-actions.pod:1375
5163 #: ../src/guestfs-actions.pod:1478 ../src/guestfs-actions.pod:1497
5164 #: ../src/guestfs-actions.pod:1746 ../src/guestfs-actions.pod:2148
5165 #: ../src/guestfs-actions.pod:2164 ../src/guestfs-actions.pod:2183
5166 #: ../src/guestfs-actions.pod:2226 ../src/guestfs-actions.pod:2250
5167 #: ../src/guestfs-actions.pod:2321 ../src/guestfs-actions.pod:2370
5168 #: ../src/guestfs-actions.pod:2581 ../src/guestfs-actions.pod:2782
5169 #: ../src/guestfs-actions.pod:2993 ../src/guestfs-actions.pod:3248
5170 #: ../src/guestfs-actions.pod:3310 ../src/guestfs-actions.pod:3415
5171 #: ../src/guestfs-actions.pod:3820 ../src/guestfs-actions.pod:4436
5172 #: ../src/guestfs-actions.pod:4956 ../src/guestfs-actions.pod:5082
5173 #: ../src/guestfs-actions.pod:5196 ../src/guestfs-actions.pod:5847
5174 #: ../src/guestfs-actions.pod:5908 ../src/guestfs-actions.pod:5963
5175 #: ../src/guestfs-actions.pod:6109 ../src/guestfs-actions.pod:6133
5176 #: ../src/guestfs-actions.pod:6605 ../src/guestfs-actions.pod:6625
5177 #: ../src/guestfs-actions.pod:6672 ../src/guestfs-actions.pod:6837
5178 #: ../src/guestfs-actions.pod:6856 ../src/guestfs-actions.pod:6941
5179 #: ../src/guestfs-actions.pod:6960 ../src/guestfs-actions.pod:7006
5180 #: ../src/guestfs-actions.pod:7025
5181 msgid ""
5182 "This function returns a NULL-terminated array of strings (like L<environ(3)"
5183 ">), or NULL if there was an error.  I<The caller must free the strings and "
5184 "the array after use>."
5185 msgstr ""
5186
5187 # type: textblock
5188 #: ../src/guestfs-actions.pod:459 ../src/guestfs-actions.pod:990
5189 #: ../src/guestfs-actions.pod:1008 ../src/guestfs-actions.pod:1413
5190 #: ../src/guestfs-actions.pod:3071 ../src/guestfs-actions.pod:3102
5191 #: ../src/guestfs-actions.pod:3661 ../src/guestfs-actions.pod:3711
5192 #: ../src/guestfs-actions.pod:3898 ../src/guestfs-actions.pod:3931
5193 #: ../src/guestfs-actions.pod:4094 ../src/guestfs-actions.pod:4440
5194 #: ../src/guestfs-actions.pod:4897 ../src/guestfs-actions.pod:5275
5195 #: ../src/guestfs-actions.pod:5289 ../src/guestfs-actions.pod:5301
5196 #: ../src/guestfs-actions.pod:5709 ../src/guestfs-actions.pod:6347
5197 #: ../src/guestfs-actions.pod:6360 ../src/guestfs-actions.pod:6589
5198 #: ../src/guestfs-actions.pod:6792 ../src/guestfs-actions.pod:6825
5199 msgid "(Added in 0.8)"
5200 msgstr ""
5201
5202 # type: =head2
5203 #: ../src/guestfs-actions.pod:461
5204 msgid "guestfs_aug_match"
5205 msgstr ""
5206
5207 # type: verbatim
5208 #: ../src/guestfs-actions.pod:463
5209 #, no-wrap
5210 msgid ""
5211 " char **\n"
5212 " guestfs_aug_match (guestfs_h *g,\n"
5213 "                    const char *augpath);\n"
5214 "\n"
5215 msgstr ""
5216
5217 # type: textblock
5218 #: ../src/guestfs-actions.pod:467 ../fish/guestfish-actions.pod:306
5219 msgid ""
5220 "Returns a list of paths which match the path expression C<path>.  The "
5221 "returned paths are sufficiently qualified so that they match exactly one "
5222 "node in the current tree."
5223 msgstr ""
5224
5225 # type: =head2
5226 #: ../src/guestfs-actions.pod:477
5227 msgid "guestfs_aug_mv"
5228 msgstr ""
5229
5230 # type: verbatim
5231 #: ../src/guestfs-actions.pod:479
5232 #, no-wrap
5233 msgid ""
5234 " int\n"
5235 " guestfs_aug_mv (guestfs_h *g,\n"
5236 "                 const char *src,\n"
5237 "                 const char *dest);\n"
5238 "\n"
5239 msgstr ""
5240
5241 # type: textblock
5242 #: ../src/guestfs-actions.pod:484 ../fish/guestfish-actions.pod:314
5243 msgid ""
5244 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
5245 "C<dest> is overwritten if it exists."
5246 msgstr ""
5247
5248 # type: =head2
5249 #: ../src/guestfs-actions.pod:491
5250 msgid "guestfs_aug_rm"
5251 msgstr ""
5252
5253 # type: verbatim
5254 #: ../src/guestfs-actions.pod:493
5255 #, no-wrap
5256 msgid ""
5257 " int\n"
5258 " guestfs_aug_rm (guestfs_h *g,\n"
5259 "                 const char *augpath);\n"
5260 "\n"
5261 msgstr ""
5262
5263 # type: textblock
5264 #: ../src/guestfs-actions.pod:497 ../fish/guestfish-actions.pod:321
5265 msgid "Remove C<path> and all of its children."
5266 msgstr ""
5267
5268 # type: textblock
5269 #: ../src/guestfs-actions.pod:499 ../fish/guestfish-actions.pod:323
5270 msgid "On success this returns the number of entries which were removed."
5271 msgstr ""
5272
5273 # type: =head2
5274 #: ../src/guestfs-actions.pod:505
5275 msgid "guestfs_aug_save"
5276 msgstr ""
5277
5278 # type: verbatim
5279 #: ../src/guestfs-actions.pod:507
5280 #, no-wrap
5281 msgid ""
5282 " int\n"
5283 " guestfs_aug_save (guestfs_h *g);\n"
5284 "\n"
5285 msgstr ""
5286
5287 # type: textblock
5288 #: ../src/guestfs-actions.pod:510 ../fish/guestfish-actions.pod:329
5289 msgid "This writes all pending changes to disk."
5290 msgstr ""
5291
5292 # type: textblock
5293 #: ../src/guestfs-actions.pod:512
5294 msgid ""
5295 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
5296 "are saved."
5297 msgstr ""
5298
5299 # type: =head2
5300 #: ../src/guestfs-actions.pod:519
5301 msgid "guestfs_aug_set"
5302 msgstr ""
5303
5304 # type: verbatim
5305 #: ../src/guestfs-actions.pod:521
5306 #, no-wrap
5307 msgid ""
5308 " int\n"
5309 " guestfs_aug_set (guestfs_h *g,\n"
5310 "                  const char *augpath,\n"
5311 "                  const char *val);\n"
5312 "\n"
5313 msgstr ""
5314
5315 # type: textblock
5316 #: ../src/guestfs-actions.pod:526 ../fish/guestfish-actions.pod:338
5317 msgid "Set the value associated with C<path> to C<val>."
5318 msgstr ""
5319
5320 # type: textblock
5321 #: ../src/guestfs-actions.pod:528
5322 msgid ""
5323 "In the Augeas API, it is possible to clear a node by setting the value to "
5324 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
5325 "this call.  Instead you must use the C<guestfs_aug_clear> call."
5326 msgstr ""
5327
5328 # type: =head2
5329 #: ../src/guestfs-actions.pod:537
5330 msgid "guestfs_available"
5331 msgstr ""
5332
5333 # type: verbatim
5334 #: ../src/guestfs-actions.pod:539
5335 #, no-wrap
5336 msgid ""
5337 " int\n"
5338 " guestfs_available (guestfs_h *g,\n"
5339 "                    char *const *groups);\n"
5340 "\n"
5341 msgstr ""
5342
5343 # type: textblock
5344 #: ../src/guestfs-actions.pod:543 ../fish/guestfish-actions.pod:349
5345 msgid ""
5346 "This command is used to check the availability of some groups of "
5347 "functionality in the appliance, which not all builds of the libguestfs "
5348 "appliance will be able to provide."
5349 msgstr ""
5350
5351 # type: textblock
5352 #: ../src/guestfs-actions.pod:547
5353 msgid ""
5354 "The libguestfs groups, and the functions that those groups correspond to, "
5355 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
5356 "runtime by calling C<guestfs_available_all_groups>."
5357 msgstr ""
5358
5359 # type: textblock
5360 #: ../src/guestfs-actions.pod:552 ../fish/guestfish-actions.pod:358
5361 msgid ""
5362 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", \"augeas"
5363 "\"]> would check for the availability of the Linux inotify functions and "
5364 "Augeas (configuration file editing) functions."
5365 msgstr ""
5366
5367 # type: textblock
5368 #: ../src/guestfs-actions.pod:557 ../fish/guestfish-actions.pod:363
5369 msgid "The command returns no error if I<all> requested groups are available."
5370 msgstr ""
5371
5372 # type: textblock
5373 #: ../src/guestfs-actions.pod:559 ../fish/guestfish-actions.pod:365
5374 msgid ""
5375 "It fails with an error if one or more of the requested groups is unavailable "
5376 "in the appliance."
5377 msgstr ""
5378
5379 # type: textblock
5380 #: ../src/guestfs-actions.pod:562 ../fish/guestfish-actions.pod:368
5381 msgid ""
5382 "If an unknown group name is included in the list of groups then an error is "
5383 "always returned."
5384 msgstr ""
5385
5386 # type: textblock
5387 #: ../src/guestfs-actions.pod:565 ../fish/guestfish-actions.pod:371
5388 msgid "I<Notes:>"
5389 msgstr ""
5390
5391 # type: textblock
5392 #: ../src/guestfs-actions.pod:571
5393 msgid "You must call C<guestfs_launch> before calling this function."
5394 msgstr ""
5395
5396 # type: textblock
5397 #: ../src/guestfs-actions.pod:573 ../fish/guestfish-actions.pod:379
5398 msgid ""
5399 "The reason is because we don't know what groups are supported by the "
5400 "appliance/daemon until it is running and can be queried."
5401 msgstr ""
5402
5403 # type: textblock
5404 #: ../src/guestfs-actions.pod:579 ../fish/guestfish-actions.pod:385
5405 msgid ""
5406 "If a group of functions is available, this does not necessarily mean that "
5407 "they will work.  You still have to check for errors when calling individual "
5408 "API functions even if they are available."
5409 msgstr ""
5410
5411 # type: textblock
5412 #: ../src/guestfs-actions.pod:586 ../fish/guestfish-actions.pod:392
5413 msgid ""
5414 "It is usually the job of distro packagers to build complete functionality "
5415 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
5416 "with all requirements satisfied, will support everything."
5417 msgstr ""
5418
5419 # type: textblock
5420 #: ../src/guestfs-actions.pod:593
5421 msgid ""
5422 "This call was added in version C<1.0.80>.  In previous versions of "
5423 "libguestfs all you could do would be to speculatively execute a command to "
5424 "find out if the daemon implemented it.  See also C<guestfs_version>."
5425 msgstr ""
5426
5427 # type: textblock
5428 #: ../src/guestfs-actions.pod:602 ../src/guestfs-actions.pod:1163
5429 msgid "(Added in 1.0.80)"
5430 msgstr ""
5431
5432 # type: =head2
5433 #: ../src/guestfs-actions.pod:604
5434 msgid "guestfs_available_all_groups"
5435 msgstr ""
5436
5437 # type: verbatim
5438 #: ../src/guestfs-actions.pod:606
5439 #, no-wrap
5440 msgid ""
5441 " char **\n"
5442 " guestfs_available_all_groups (guestfs_h *g);\n"
5443 "\n"
5444 msgstr ""
5445
5446 # type: textblock
5447 #: ../src/guestfs-actions.pod:609
5448 msgid ""
5449 "This command returns a list of all optional groups that this daemon knows "
5450 "about.  Note this returns both supported and unsupported groups.  To find "
5451 "out which ones the daemon can actually support you have to call "
5452 "C<guestfs_available> on each member of the returned list."
5453 msgstr ""
5454
5455 # type: textblock
5456 #: ../src/guestfs-actions.pod:615
5457 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
5458 msgstr ""
5459
5460 # type: textblock
5461 #: ../src/guestfs-actions.pod:621
5462 msgid "(Added in 1.3.15)"
5463 msgstr ""
5464
5465 # type: =head2
5466 #: ../src/guestfs-actions.pod:623
5467 msgid "guestfs_base64_in"
5468 msgstr ""
5469
5470 # type: verbatim
5471 #: ../src/guestfs-actions.pod:625
5472 #, no-wrap
5473 msgid ""
5474 " int\n"
5475 " guestfs_base64_in (guestfs_h *g,\n"
5476 "                    const char *base64file,\n"
5477 "                    const char *filename);\n"
5478 "\n"
5479 msgstr ""
5480
5481 # type: textblock
5482 #: ../src/guestfs-actions.pod:630 ../fish/guestfish-actions.pod:422
5483 msgid ""
5484 "This command uploads base64-encoded data from C<base64file> to C<filename>."
5485 msgstr ""
5486
5487 # type: textblock
5488 #: ../src/guestfs-actions.pod:635 ../src/guestfs-actions.pod:649
5489 msgid "(Added in 1.3.5)"
5490 msgstr ""
5491
5492 # type: =head2
5493 #: ../src/guestfs-actions.pod:637
5494 msgid "guestfs_base64_out"
5495 msgstr ""
5496
5497 # type: verbatim
5498 #: ../src/guestfs-actions.pod:639
5499 #, no-wrap
5500 msgid ""
5501 " int\n"
5502 " guestfs_base64_out (guestfs_h *g,\n"
5503 "                     const char *filename,\n"
5504 "                     const char *base64file);\n"
5505 "\n"
5506 msgstr ""
5507
5508 # type: textblock
5509 #: ../src/guestfs-actions.pod:644 ../fish/guestfish-actions.pod:431
5510 msgid ""
5511 "This command downloads the contents of C<filename>, writing it out to local "
5512 "file C<base64file> encoded as base64."
5513 msgstr ""
5514
5515 # type: =head2
5516 #: ../src/guestfs-actions.pod:651
5517 msgid "guestfs_blockdev_flushbufs"
5518 msgstr ""
5519
5520 # type: verbatim
5521 #: ../src/guestfs-actions.pod:653
5522 #, no-wrap
5523 msgid ""
5524 " int\n"
5525 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
5526 "                             const char *device);\n"
5527 "\n"
5528 msgstr ""
5529
5530 # type: textblock
5531 #: ../src/guestfs-actions.pod:657 ../fish/guestfish-actions.pod:440
5532 msgid ""
5533 "This tells the kernel to flush internal buffers associated with C<device>."
5534 msgstr ""
5535
5536 # type: textblock
5537 #: ../src/guestfs-actions.pod:660 ../src/guestfs-actions.pod:677
5538 #: ../src/guestfs-actions.pod:692 ../src/guestfs-actions.pod:708
5539 #: ../src/guestfs-actions.pod:726 ../src/guestfs-actions.pod:745
5540 #: ../src/guestfs-actions.pod:759 ../src/guestfs-actions.pod:777
5541 #: ../src/guestfs-actions.pod:791 ../src/guestfs-actions.pod:805
5542 #: ../fish/guestfish-actions.pod:443 ../fish/guestfish-actions.pod:454
5543 #: ../fish/guestfish-actions.pod:463 ../fish/guestfish-actions.pod:473
5544 #: ../fish/guestfish-actions.pod:485 ../fish/guestfish-actions.pod:498
5545 #: ../fish/guestfish-actions.pod:506 ../fish/guestfish-actions.pod:517
5546 #: ../fish/guestfish-actions.pod:525 ../fish/guestfish-actions.pod:533
5547 msgid "This uses the L<blockdev(8)> command."
5548 msgstr ""
5549
5550 # type: textblock
5551 #: ../src/guestfs-actions.pod:664 ../src/guestfs-actions.pod:681
5552 #: ../src/guestfs-actions.pod:696 ../src/guestfs-actions.pod:712
5553 #: ../src/guestfs-actions.pod:730 ../src/guestfs-actions.pod:749
5554 #: ../src/guestfs-actions.pod:763 ../src/guestfs-actions.pod:781
5555 #: ../src/guestfs-actions.pod:795 ../src/guestfs-actions.pod:809
5556 msgid "(Added in 0.9.3)"
5557 msgstr ""
5558
5559 # type: =head2
5560 #: ../src/guestfs-actions.pod:666
5561 msgid "guestfs_blockdev_getbsz"
5562 msgstr ""
5563
5564 # type: verbatim
5565 #: ../src/guestfs-actions.pod:668
5566 #, no-wrap
5567 msgid ""
5568 " int\n"
5569 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
5570 "                          const char *device);\n"
5571 "\n"
5572 msgstr ""
5573
5574 # type: textblock
5575 #: ../src/guestfs-actions.pod:672 ../fish/guestfish-actions.pod:449
5576 msgid "This returns the block size of a device."
5577 msgstr ""
5578
5579 # type: textblock
5580 #: ../src/guestfs-actions.pod:674 ../src/guestfs-actions.pod:774
5581 #: ../fish/guestfish-actions.pod:451 ../fish/guestfish-actions.pod:514
5582 msgid ""
5583 "(Note this is different from both I<size in blocks> and I<filesystem block "
5584 "size>)."
5585 msgstr ""
5586
5587 # type: =head2
5588 #: ../src/guestfs-actions.pod:683
5589 msgid "guestfs_blockdev_getro"
5590 msgstr ""
5591
5592 # type: verbatim
5593 #: ../src/guestfs-actions.pod:685
5594 #, no-wrap
5595 msgid ""
5596 " int\n"
5597 " guestfs_blockdev_getro (guestfs_h *g,\n"
5598 "                         const char *device);\n"
5599 "\n"
5600 msgstr ""
5601
5602 # type: textblock
5603 #: ../src/guestfs-actions.pod:689 ../fish/guestfish-actions.pod:460
5604 msgid ""
5605 "Returns a boolean indicating if the block device is read-only (true if read-"
5606 "only, false if not)."
5607 msgstr ""
5608
5609 # type: textblock
5610 #: ../src/guestfs-actions.pod:694 ../src/guestfs-actions.pod:1396
5611 #: ../src/guestfs-actions.pod:1411 ../src/guestfs-actions.pod:1891
5612 #: ../src/guestfs-actions.pod:1902 ../src/guestfs-actions.pod:1974
5613 #: ../src/guestfs-actions.pod:2029 ../src/guestfs-actions.pod:2044
5614 #: ../src/guestfs-actions.pod:2069 ../src/guestfs-actions.pod:2092
5615 #: ../src/guestfs-actions.pod:3010 ../src/guestfs-actions.pod:3024
5616 #: ../src/guestfs-actions.pod:3039 ../src/guestfs-actions.pod:3053
5617 #: ../src/guestfs-actions.pod:3069 ../src/guestfs-actions.pod:3084
5618 #: ../src/guestfs-actions.pod:3100 ../src/guestfs-actions.pod:3114
5619 #: ../src/guestfs-actions.pod:3127 ../src/guestfs-actions.pod:3141
5620 #: ../src/guestfs-actions.pod:3156 ../src/guestfs-actions.pod:3171
5621 #: ../src/guestfs-actions.pod:4585
5622 msgid "This function returns a C truth value on success or -1 on error."
5623 msgstr ""
5624
5625 # type: =head2
5626 #: ../src/guestfs-actions.pod:698
5627 msgid "guestfs_blockdev_getsize64"
5628 msgstr ""
5629
5630 # type: verbatim
5631 #: ../src/guestfs-actions.pod:700
5632 #, no-wrap
5633 msgid ""
5634 " int64_t\n"
5635 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
5636 "                             const char *device);\n"
5637 "\n"
5638 msgstr ""
5639
5640 # type: textblock
5641 #: ../src/guestfs-actions.pod:704 ../fish/guestfish-actions.pod:469
5642 msgid "This returns the size of the device in bytes."
5643 msgstr ""
5644
5645 # type: textblock
5646 #: ../src/guestfs-actions.pod:706
5647 msgid "See also C<guestfs_blockdev_getsz>."
5648 msgstr ""
5649
5650 # type: =head2
5651 #: ../src/guestfs-actions.pod:714
5652 msgid "guestfs_blockdev_getss"
5653 msgstr ""
5654
5655 # type: verbatim
5656 #: ../src/guestfs-actions.pod:716
5657 #, no-wrap
5658 msgid ""
5659 " int\n"
5660 " guestfs_blockdev_getss (guestfs_h *g,\n"
5661 "                         const char *device);\n"
5662 "\n"
5663 msgstr ""
5664
5665 # type: textblock
5666 #: ../src/guestfs-actions.pod:720 ../fish/guestfish-actions.pod:479
5667 msgid ""
5668 "This returns the size of sectors on a block device.  Usually 512, but can be "
5669 "larger for modern devices."
5670 msgstr ""
5671
5672 # type: textblock
5673 #: ../src/guestfs-actions.pod:723
5674 msgid ""
5675 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
5676 "that)."
5677 msgstr ""
5678
5679 # type: =head2
5680 #: ../src/guestfs-actions.pod:732
5681 msgid "guestfs_blockdev_getsz"
5682 msgstr ""
5683
5684 # type: verbatim
5685 #: ../src/guestfs-actions.pod:734
5686 #, no-wrap
5687 msgid ""
5688 " int64_t\n"
5689 " guestfs_blockdev_getsz (guestfs_h *g,\n"
5690 "                         const char *device);\n"
5691 "\n"
5692 msgstr ""
5693
5694 # type: textblock
5695 #: ../src/guestfs-actions.pod:738 ../fish/guestfish-actions.pod:491
5696 msgid ""
5697 "This returns the size of the device in units of 512-byte sectors (even if "
5698 "the sectorsize isn't 512 bytes ... weird)."
5699 msgstr ""
5700
5701 # type: textblock
5702 #: ../src/guestfs-actions.pod:741
5703 msgid ""
5704 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
5705 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
5706 msgstr ""
5707
5708 # type: =head2
5709 #: ../src/guestfs-actions.pod:751
5710 msgid "guestfs_blockdev_rereadpt"
5711 msgstr ""
5712
5713 # type: verbatim
5714 #: ../src/guestfs-actions.pod:753
5715 #, no-wrap
5716 msgid ""
5717 " int\n"
5718 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
5719 "                            const char *device);\n"
5720 "\n"
5721 msgstr ""
5722
5723 # type: textblock
5724 #: ../src/guestfs-actions.pod:757 ../fish/guestfish-actions.pod:504
5725 msgid "Reread the partition table on C<device>."
5726 msgstr ""
5727
5728 # type: =head2
5729 #: ../src/guestfs-actions.pod:765
5730 msgid "guestfs_blockdev_setbsz"
5731 msgstr ""
5732
5733 # type: verbatim
5734 #: ../src/guestfs-actions.pod:767
5735 #, no-wrap
5736 msgid ""
5737 " int\n"
5738 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
5739 "                          const char *device,\n"
5740 "                          int blocksize);\n"
5741 "\n"
5742 msgstr ""
5743
5744 # type: textblock
5745 #: ../src/guestfs-actions.pod:772 ../fish/guestfish-actions.pod:512
5746 msgid "This sets the block size of a device."
5747 msgstr ""
5748
5749 # type: =head2
5750 #: ../src/guestfs-actions.pod:783
5751 msgid "guestfs_blockdev_setro"
5752 msgstr ""
5753
5754 # type: verbatim
5755 #: ../src/guestfs-actions.pod:785
5756 #, no-wrap
5757 msgid ""
5758 " int\n"
5759 " guestfs_blockdev_setro (guestfs_h *g,\n"
5760 "                         const char *device);\n"
5761 "\n"
5762 msgstr ""
5763
5764 # type: textblock
5765 #: ../src/guestfs-actions.pod:789 ../fish/guestfish-actions.pod:523
5766 msgid "Sets the block device named C<device> to read-only."
5767 msgstr ""
5768
5769 # type: =head2
5770 #: ../src/guestfs-actions.pod:797
5771 msgid "guestfs_blockdev_setrw"
5772 msgstr ""
5773
5774 # type: verbatim
5775 #: ../src/guestfs-actions.pod:799
5776 #, no-wrap
5777 msgid ""
5778 " int\n"
5779 " guestfs_blockdev_setrw (guestfs_h *g,\n"
5780 "                         const char *device);\n"
5781 "\n"
5782 msgstr ""
5783
5784 # type: textblock
5785 #: ../src/guestfs-actions.pod:803 ../fish/guestfish-actions.pod:531
5786 msgid "Sets the block device named C<device> to read-write."
5787 msgstr ""
5788
5789 # type: =head2
5790 #: ../src/guestfs-actions.pod:811
5791 msgid "guestfs_case_sensitive_path"
5792 msgstr ""
5793
5794 # type: verbatim
5795 #: ../src/guestfs-actions.pod:813
5796 #, no-wrap
5797 msgid ""
5798 " char *\n"
5799 " guestfs_case_sensitive_path (guestfs_h *g,\n"
5800 "                              const char *path);\n"
5801 "\n"
5802 msgstr ""
5803
5804 # type: textblock
5805 #: ../src/guestfs-actions.pod:817 ../fish/guestfish-actions.pod:539
5806 msgid ""
5807 "This can be used to resolve case insensitive paths on a filesystem which is "
5808 "case sensitive.  The use case is to resolve paths which you have read from "
5809 "Windows configuration files or the Windows Registry, to the true path."
5810 msgstr ""
5811
5812 # type: textblock
5813 #: ../src/guestfs-actions.pod:822 ../fish/guestfish-actions.pod:544
5814 msgid ""
5815 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
5816 "(and probably others), which is that although the underlying filesystem is "
5817 "case-insensitive, the driver exports the filesystem to Linux as case-"
5818 "sensitive."
5819 msgstr ""
5820
5821 # type: textblock
5822 #: ../src/guestfs-actions.pod:827 ../fish/guestfish-actions.pod:549
5823 msgid ""
5824 "One consequence of this is that special directories such as C<c:\\windows> "
5825 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
5826 "precise details of how they were created.  In Windows itself this would not "
5827 "be a problem."
5828 msgstr ""
5829
5830 # type: textblock
5831 #: ../src/guestfs-actions.pod:833 ../fish/guestfish-actions.pod:555
5832 msgid ""
5833 "Bug or feature? You decide: L<http://www.tuxera.com/community/ntfs-3g-faq/"
5834 "#posixfilenames1>"
5835 msgstr ""
5836
5837 # type: textblock
5838 #: ../src/guestfs-actions.pod:836 ../fish/guestfish-actions.pod:558
5839 msgid ""
5840 "This function resolves the true case of each element in the path and returns "
5841 "the case-sensitive path."
5842 msgstr ""
5843
5844 # type: textblock
5845 #: ../src/guestfs-actions.pod:839
5846 msgid ""
5847 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return C<"
5848 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
5849 "how the directories were originally created under Windows)."
5850 msgstr ""
5851
5852 # type: textblock
5853 #: ../src/guestfs-actions.pod:844 ../fish/guestfish-actions.pod:566
5854 msgid "I<Note>: This function does not handle drive names, backslashes etc."
5855 msgstr ""
5856
5857 # type: textblock
5858 #: ../src/guestfs-actions.pod:847
5859 msgid "See also C<guestfs_realpath>."
5860 msgstr ""
5861
5862 # type: textblock
5863 #: ../src/guestfs-actions.pod:852 ../src/guestfs-actions.pod:6517
5864 msgid "(Added in 1.0.75)"
5865 msgstr ""
5866
5867 # type: =head2
5868 #: ../src/guestfs-actions.pod:854
5869 msgid "guestfs_cat"
5870 msgstr ""
5871
5872 # type: verbatim
5873 #: ../src/guestfs-actions.pod:856
5874 #, no-wrap
5875 msgid ""
5876 " char *\n"
5877 " guestfs_cat (guestfs_h *g,\n"
5878 "              const char *path);\n"
5879 "\n"
5880 msgstr ""
5881
5882 # type: textblock
5883 #: ../src/guestfs-actions.pod:860 ../src/guestfs-actions.pod:5072
5884 #: ../fish/guestfish-actions.pod:575 ../fish/guestfish-actions.pod:3393
5885 msgid "Return the contents of the file named C<path>."
5886 msgstr ""
5887
5888 # type: textblock
5889 #: ../src/guestfs-actions.pod:862
5890 msgid ""
5891 "Note that this function cannot correctly handle binary files (specifically, "
5892 "files containing C<\\0> character which is treated as end of string).  For "
5893 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
5894 "functions which have a more complex interface."
5895 msgstr ""
5896
5897 # type: textblock
5898 #: ../src/guestfs-actions.pod:870 ../src/guestfs-actions.pod:1049
5899 #: ../src/guestfs-actions.pod:1069 ../src/guestfs-actions.pod:1360
5900 #: ../src/guestfs-actions.pod:1379 ../src/guestfs-actions.pod:1482
5901 #: ../src/guestfs-actions.pod:1501 ../src/guestfs-actions.pod:1750
5902 #: ../src/guestfs-actions.pod:2168 ../src/guestfs-actions.pod:2187
5903 #: ../src/guestfs-actions.pod:2230 ../src/guestfs-actions.pod:2254
5904 #: ../src/guestfs-actions.pod:2271 ../src/guestfs-actions.pod:2300
5905 #: ../src/guestfs-actions.pod:4854 ../src/guestfs-actions.pod:4880
5906 #: ../src/guestfs-actions.pod:5011 ../src/guestfs-actions.pod:5037
5907 #: ../src/guestfs-actions.pod:5061 ../src/guestfs-actions.pod:5912
5908 #: ../src/guestfs-actions.pod:5967 ../src/guestfs-actions.pod:6113
5909 #: ../src/guestfs-actions.pod:6137 ../src/guestfs-actions.pod:6789
5910 #: ../src/guestfs-actions.pod:6815 ../src/guestfs-actions.pod:6841
5911 #: ../src/guestfs-actions.pod:6860 ../src/guestfs-actions.pod:6945
5912 #: ../src/guestfs-actions.pod:6964 ../src/guestfs-actions.pod:7010
5913 #: ../src/guestfs-actions.pod:7029 ../fish/guestfish-actions.pod:582
5914 #: ../fish/guestfish-actions.pod:717 ../fish/guestfish-actions.pod:729
5915 #: ../fish/guestfish-actions.pod:905 ../fish/guestfish-actions.pod:915
5916 #: ../fish/guestfish-actions.pod:982 ../fish/guestfish-actions.pod:992
5917 #: ../fish/guestfish-actions.pod:1187 ../fish/guestfish-actions.pod:1462
5918 #: ../fish/guestfish-actions.pod:1472 ../fish/guestfish-actions.pod:1500
5919 #: ../fish/guestfish-actions.pod:1515 ../fish/guestfish-actions.pod:1525
5920 #: ../fish/guestfish-actions.pod:1544 ../fish/guestfish-actions.pod:3263
5921 #: ../fish/guestfish-actions.pod:3278 ../fish/guestfish-actions.pod:3354
5922 #: ../fish/guestfish-actions.pod:3371 ../fish/guestfish-actions.pod:3386
5923 #: ../fish/guestfish-actions.pod:3969 ../fish/guestfish-actions.pod:4015
5924 #: ../fish/guestfish-actions.pod:4100 ../fish/guestfish-actions.pod:4115
5925 #: ../fish/guestfish-actions.pod:4525 ../fish/guestfish-actions.pod:4543
5926 #: ../fish/guestfish-actions.pod:4560 ../fish/guestfish-actions.pod:4570
5927 #: ../fish/guestfish-actions.pod:4618 ../fish/guestfish-actions.pod:4628
5928 #: ../fish/guestfish-actions.pod:4657 ../fish/guestfish-actions.pod:4667
5929 msgid ""
5930 "Because of the message protocol, there is a transfer limit of somewhere "
5931 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
5932 msgstr ""
5933
5934 # type: textblock
5935 #: ../src/guestfs-actions.pod:873 ../src/guestfs-actions.pod:3252
5936 #: ../src/guestfs-actions.pod:3314 ../src/guestfs-actions.pod:3331
5937 #: ../src/guestfs-actions.pod:3419 ../src/guestfs-actions.pod:3824
5938 #: ../src/guestfs-actions.pod:3838 ../src/guestfs-actions.pod:4960
5939 #: ../src/guestfs-actions.pod:4974 ../src/guestfs-actions.pod:6676
5940 #: ../src/guestfs-actions.pod:6690
5941 msgid "(Added in 0.4)"
5942 msgstr ""
5943
5944 # type: =head2
5945 #: ../src/guestfs-actions.pod:875
5946 msgid "guestfs_checksum"
5947 msgstr ""
5948
5949 # type: verbatim
5950 #: ../src/guestfs-actions.pod:877
5951 #, no-wrap
5952 msgid ""
5953 " char *\n"
5954 " guestfs_checksum (guestfs_h *g,\n"
5955 "                   const char *csumtype,\n"
5956 "                   const char *path);\n"
5957 "\n"
5958 msgstr ""
5959
5960 # type: textblock
5961 #: ../src/guestfs-actions.pod:882 ../fish/guestfish-actions.pod:589
5962 msgid ""
5963 "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
5964 msgstr ""
5965
5966 # type: textblock
5967 #: ../src/guestfs-actions.pod:885 ../fish/guestfish-actions.pod:592
5968 msgid ""
5969 "The type of checksum to compute is given by the C<csumtype> parameter which "
5970 "must have one of the following values:"
5971 msgstr ""
5972
5973 # type: =item
5974 #: ../src/guestfs-actions.pod:890 ../fish/guestfish-actions.pod:597
5975 msgid "C<crc>"
5976 msgstr ""
5977
5978 # type: textblock
5979 #: ../src/guestfs-actions.pod:892 ../fish/guestfish-actions.pod:599
5980 msgid ""
5981 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
5982 "C<cksum> command."
5983 msgstr ""
5984
5985 # type: =item
5986 #: ../src/guestfs-actions.pod:895 ../fish/guestfish-actions.pod:602
5987 msgid "C<md5>"
5988 msgstr ""
5989
5990 # type: textblock
5991 #: ../src/guestfs-actions.pod:897 ../fish/guestfish-actions.pod:604
5992 msgid "Compute the MD5 hash (using the C<md5sum> program)."
5993 msgstr ""
5994
5995 # type: =item
5996 #: ../src/guestfs-actions.pod:899 ../fish/guestfish-actions.pod:606
5997 msgid "C<sha1>"
5998 msgstr ""
5999
6000 # type: textblock
6001 #: ../src/guestfs-actions.pod:901 ../fish/guestfish-actions.pod:608
6002 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
6003 msgstr ""
6004
6005 # type: =item
6006 #: ../src/guestfs-actions.pod:903 ../fish/guestfish-actions.pod:610
6007 msgid "C<sha224>"
6008 msgstr ""
6009
6010 # type: textblock
6011 #: ../src/guestfs-actions.pod:905 ../fish/guestfish-actions.pod:612
6012 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
6013 msgstr ""
6014
6015 # type: =item
6016 #: ../src/guestfs-actions.pod:907 ../fish/guestfish-actions.pod:614
6017 msgid "C<sha256>"
6018 msgstr ""
6019
6020 # type: textblock
6021 #: ../src/guestfs-actions.pod:909 ../fish/guestfish-actions.pod:616
6022 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
6023 msgstr ""
6024
6025 # type: =item
6026 #: ../src/guestfs-actions.pod:911 ../fish/guestfish-actions.pod:618
6027 msgid "C<sha384>"
6028 msgstr ""
6029
6030 # type: textblock
6031 #: ../src/guestfs-actions.pod:913 ../fish/guestfish-actions.pod:620
6032 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
6033 msgstr ""
6034
6035 # type: =item
6036 #: ../src/guestfs-actions.pod:915 ../fish/guestfish-actions.pod:622
6037 msgid "C<sha512>"
6038 msgstr ""
6039
6040 # type: textblock
6041 #: ../src/guestfs-actions.pod:917 ../fish/guestfish-actions.pod:624
6042 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
6043 msgstr ""
6044
6045 # type: textblock
6046 #: ../src/guestfs-actions.pod:921 ../fish/guestfish-actions.pod:628
6047 msgid "The checksum is returned as a printable string."
6048 msgstr ""
6049
6050 # type: textblock
6051 #: ../src/guestfs-actions.pod:923
6052 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
6053 msgstr ""
6054
6055 # type: textblock
6056 #: ../src/guestfs-actions.pod:925
6057 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
6058 msgstr ""
6059
6060 # type: textblock
6061 #: ../src/guestfs-actions.pod:930 ../src/guestfs-actions.pod:1238
6062 #: ../src/guestfs-actions.pod:2060 ../src/guestfs-actions.pod:3026
6063 #: ../src/guestfs-actions.pod:3055 ../src/guestfs-actions.pod:3116
6064 #: ../src/guestfs-actions.pod:3143 ../src/guestfs-actions.pod:6378
6065 msgid "(Added in 1.0.2)"
6066 msgstr ""
6067
6068 # type: =head2
6069 #: ../src/guestfs-actions.pod:932
6070 msgid "guestfs_checksum_device"
6071 msgstr ""
6072
6073 # type: verbatim
6074 #: ../src/guestfs-actions.pod:934
6075 #, no-wrap
6076 msgid ""
6077 " char *\n"
6078 " guestfs_checksum_device (guestfs_h *g,\n"
6079 "                          const char *csumtype,\n"
6080 "                          const char *device);\n"
6081 "\n"
6082 msgstr ""
6083
6084 # type: textblock
6085 #: ../src/guestfs-actions.pod:939
6086 msgid ""
6087 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
6088 "device named C<device>.  For the types of checksums supported see the "
6089 "C<guestfs_checksum> command."
6090 msgstr ""
6091
6092 # type: textblock
6093 #: ../src/guestfs-actions.pod:946 ../src/guestfs-actions.pod:4491
6094 #: ../src/guestfs-actions.pod:4550 ../src/guestfs-actions.pod:4587
6095 #: ../src/guestfs-actions.pod:4605 ../src/guestfs-actions.pod:4781
6096 #: ../src/guestfs-actions.pod:6292 ../src/guestfs-actions.pod:6306
6097 #: ../src/guestfs-actions.pod:6702
6098 msgid "(Added in 1.3.2)"
6099 msgstr ""
6100
6101 # type: =head2
6102 #: ../src/guestfs-actions.pod:948
6103 msgid "guestfs_checksums_out"
6104 msgstr ""
6105
6106 # type: verbatim
6107 #: ../src/guestfs-actions.pod:950
6108 #, no-wrap
6109 msgid ""
6110 " int\n"
6111 " guestfs_checksums_out (guestfs_h *g,\n"
6112 "                        const char *csumtype,\n"
6113 "                        const char *directory,\n"
6114 "                        const char *sumsfile);\n"
6115 "\n"
6116 msgstr ""
6117
6118 # type: textblock
6119 #: ../src/guestfs-actions.pod:956 ../fish/guestfish-actions.pod:646
6120 msgid ""
6121 "This command computes the checksums of all regular files in C<directory> and "
6122 "then emits a list of those checksums to the local output file C<sumsfile>."
6123 msgstr ""
6124
6125 # type: textblock
6126 #: ../src/guestfs-actions.pod:960 ../fish/guestfish-actions.pod:650
6127 msgid ""
6128 "This can be used for verifying the integrity of a virtual machine.  However "
6129 "to be properly secure you should pay attention to the output of the checksum "
6130 "command (it uses the ones from GNU coreutils).  In particular when the "
6131 "filename is not printable, coreutils uses a special backslash syntax.  For "
6132 "more information, see the GNU coreutils info file."
6133 msgstr ""
6134
6135 # type: textblock
6136 #: ../src/guestfs-actions.pod:970
6137 msgid "(Added in 1.3.7)"
6138 msgstr ""
6139
6140 # type: =head2
6141 #: ../src/guestfs-actions.pod:972
6142 msgid "guestfs_chmod"
6143 msgstr ""
6144
6145 # type: verbatim
6146 #: ../src/guestfs-actions.pod:974
6147 #, no-wrap
6148 msgid ""
6149 " int\n"
6150 " guestfs_chmod (guestfs_h *g,\n"
6151 "                int mode,\n"
6152 "                const char *path);\n"
6153 "\n"
6154 msgstr ""
6155
6156 # type: textblock
6157 #: ../src/guestfs-actions.pod:979 ../fish/guestfish-actions.pod:664
6158 msgid ""
6159 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
6160 "supported."
6161 msgstr ""
6162
6163 # type: textblock
6164 #: ../src/guestfs-actions.pod:982 ../fish/guestfish-actions.pod:667
6165 msgid ""
6166 "I<Note>: When using this command from guestfish, C<mode> by default would be "
6167 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
6168 "C<700>."
6169 msgstr ""
6170
6171 # type: textblock
6172 #: ../src/guestfs-actions.pod:986 ../src/guestfs-actions.pod:4075
6173 #: ../src/guestfs-actions.pod:4190 ../src/guestfs-actions.pod:4209
6174 #: ../src/guestfs-actions.pod:4228 ../fish/guestfish-actions.pod:671
6175 #: ../fish/guestfish-actions.pod:2753 ../fish/guestfish-actions.pod:2838
6176 #: ../fish/guestfish-actions.pod:2848 ../fish/guestfish-actions.pod:2858
6177 msgid "The mode actually set is affected by the umask."
6178 msgstr ""
6179
6180 # type: =head2
6181 #: ../src/guestfs-actions.pod:992
6182 msgid "guestfs_chown"
6183 msgstr ""
6184
6185 # type: verbatim
6186 #: ../src/guestfs-actions.pod:994
6187 #, no-wrap
6188 msgid ""
6189 " int\n"
6190 " guestfs_chown (guestfs_h *g,\n"
6191 "                int owner,\n"
6192 "                int group,\n"
6193 "                const char *path);\n"
6194 "\n"
6195 msgstr ""
6196
6197 # type: textblock
6198 #: ../src/guestfs-actions.pod:1000 ../fish/guestfish-actions.pod:677
6199 msgid "Change the file owner to C<owner> and group to C<group>."
6200 msgstr ""
6201
6202 # type: textblock
6203 #: ../src/guestfs-actions.pod:1002 ../src/guestfs-actions.pod:3213
6204 #: ../fish/guestfish-actions.pod:679 ../fish/guestfish-actions.pod:2231
6205 msgid ""
6206 "Only numeric uid and gid are supported.  If you want to use names, you will "
6207 "need to locate and parse the password file yourself (Augeas support makes "
6208 "this relatively easy)."
6209 msgstr ""
6210
6211 # type: =head2
6212 #: ../src/guestfs-actions.pod:1010
6213 msgid "guestfs_command"
6214 msgstr ""
6215
6216 # type: verbatim
6217 #: ../src/guestfs-actions.pod:1012
6218 #, no-wrap
6219 msgid ""
6220 " char *\n"
6221 " guestfs_command (guestfs_h *g,\n"
6222 "                  char *const *arguments);\n"
6223 "\n"
6224 msgstr ""
6225
6226 # type: textblock
6227 #: ../src/guestfs-actions.pod:1016 ../fish/guestfish-actions.pod:687
6228 msgid ""
6229 "This call runs a command from the guest filesystem.  The filesystem must be "
6230 "mounted, and must contain a compatible operating system (ie. something "
6231 "Linux, with the same or compatible processor architecture)."
6232 msgstr ""
6233
6234 # type: textblock
6235 #: ../src/guestfs-actions.pod:1021
6236 msgid ""
6237 "The single parameter is an argv-style list of arguments.  The first element "
6238 "is the name of the program to run.  Subsequent elements are parameters.  The "
6239 "list must be non-empty (ie. must contain a program name).  Note that the "
6240 "command runs directly, and is I<not> invoked via the shell (see "
6241 "C<guestfs_sh>)."
6242 msgstr ""
6243
6244 # type: textblock
6245 #: ../src/guestfs-actions.pod:1028 ../fish/guestfish-actions.pod:699
6246 msgid "The return value is anything printed to I<stdout> by the command."
6247 msgstr ""
6248
6249 # type: textblock
6250 #: ../src/guestfs-actions.pod:1031 ../fish/guestfish-actions.pod:702
6251 msgid ""
6252 "If the command returns a non-zero exit status, then this function returns an "
6253 "error message.  The error message string is the content of I<stderr> from "
6254 "the command."
6255 msgstr ""
6256
6257 # type: textblock
6258 #: ../src/guestfs-actions.pod:1035 ../fish/guestfish-actions.pod:706
6259 msgid ""
6260 "The C<$PATH> environment variable will contain at least C</usr/bin> and C</"
6261 "bin>.  If you require a program from another location, you should provide "
6262 "the full path in the first parameter."
6263 msgstr ""
6264
6265 # type: textblock
6266 #: ../src/guestfs-actions.pod:1040 ../fish/guestfish-actions.pod:711
6267 msgid ""
6268 "Shared libraries and data files required by the program must be available on "
6269 "filesystems which are mounted in the correct places.  It is the caller's "
6270 "responsibility to ensure all filesystems that are needed are mounted at the "
6271 "right locations."
6272 msgstr ""
6273
6274 # type: textblock
6275 #: ../src/guestfs-actions.pod:1052 ../src/guestfs-actions.pod:1072
6276 #: ../src/guestfs-actions.pod:1535
6277 msgid "(Added in 0.9.1)"
6278 msgstr ""
6279
6280 # type: =head2
6281 #: ../src/guestfs-actions.pod:1054
6282 msgid "guestfs_command_lines"
6283 msgstr ""
6284
6285 # type: verbatim
6286 #: ../src/guestfs-actions.pod:1056
6287 #, no-wrap
6288 msgid ""
6289 " char **\n"
6290 " guestfs_command_lines (guestfs_h *g,\n"
6291 "                        char *const *arguments);\n"
6292 "\n"
6293 msgstr ""
6294
6295 # type: textblock
6296 #: ../src/guestfs-actions.pod:1060
6297 msgid ""
6298 "This is the same as C<guestfs_command>, but splits the result into a list of "
6299 "lines."
6300 msgstr ""
6301
6302 # type: textblock
6303 #: ../src/guestfs-actions.pod:1063
6304 msgid "See also: C<guestfs_sh_lines>"
6305 msgstr ""
6306
6307 # type: =head2
6308 #: ../src/guestfs-actions.pod:1074
6309 msgid "guestfs_config"
6310 msgstr ""
6311
6312 # type: verbatim
6313 #: ../src/guestfs-actions.pod:1076
6314 #, no-wrap
6315 msgid ""
6316 " int\n"
6317 " guestfs_config (guestfs_h *g,\n"
6318 "                 const char *qemuparam,\n"
6319 "                 const char *qemuvalue);\n"
6320 "\n"
6321 msgstr ""
6322
6323 # type: textblock
6324 #: ../src/guestfs-actions.pod:1081 ../fish/guestfish-actions.pod:736
6325 msgid ""
6326 "This can be used to add arbitrary qemu command line parameters of the form "
6327 "C<-param value>.  Actually it's not quite arbitrary - we prevent you from "
6328 "setting some parameters which would interfere with parameters that we use."
6329 msgstr ""
6330
6331 # type: textblock
6332 #: ../src/guestfs-actions.pod:1086 ../fish/guestfish-actions.pod:741
6333 msgid "The first character of C<param> string must be a C<-> (dash)."
6334 msgstr ""
6335
6336 # type: textblock
6337 #: ../src/guestfs-actions.pod:1088 ../fish/guestfish-actions.pod:743
6338 msgid "C<value> can be NULL."
6339 msgstr ""
6340
6341 # type: =head2
6342 #: ../src/guestfs-actions.pod:1094
6343 msgid "guestfs_copy_size"
6344 msgstr ""
6345
6346 # type: verbatim
6347 #: ../src/guestfs-actions.pod:1096
6348 #, no-wrap
6349 msgid ""
6350 " int\n"
6351 " guestfs_copy_size (guestfs_h *g,\n"
6352 "                    const char *src,\n"
6353 "                    const char *dest,\n"
6354 "                    int64_t size);\n"
6355 "\n"
6356 msgstr ""
6357
6358 # type: textblock
6359 #: ../src/guestfs-actions.pod:1102 ../fish/guestfish-actions.pod:749
6360 msgid ""
6361 "This command copies exactly C<size> bytes from one source device or file "
6362 "C<src> to another destination device or file C<dest>."
6363 msgstr ""
6364
6365 # type: textblock
6366 #: ../src/guestfs-actions.pod:1105 ../fish/guestfish-actions.pod:752
6367 msgid ""
6368 "Note this will fail if the source is too short or if the destination is not "
6369 "large enough."
6370 msgstr ""
6371
6372 # type: textblock
6373 #: ../src/guestfs-actions.pod:1110 ../src/guestfs-actions.pod:1233
6374 #: ../src/guestfs-actions.pod:1264 ../src/guestfs-actions.pod:1684
6375 #: ../src/guestfs-actions.pod:1706 ../src/guestfs-actions.pod:6881
6376 #: ../src/guestfs-actions.pod:6900
6377 msgid ""
6378 "This long-running command can generate progress notification messages so "
6379 "that the caller can display a progress bar or indicator.  To receive these "
6380 "messages, the caller must register a progress callback.  See L<guestfs(3)/"
6381 "guestfs_set_progress_callback>."
6382 msgstr ""
6383
6384 # type: textblock
6385 #: ../src/guestfs-actions.pod:1115 ../src/guestfs-actions.pod:3851
6386 #: ../src/guestfs-actions.pod:4987 ../src/guestfs-actions.pod:6609
6387 #: ../src/guestfs-actions.pod:6629 ../src/guestfs-actions.pod:6715
6388 msgid "(Added in 1.0.87)"
6389 msgstr ""
6390
6391 # type: =head2
6392 #: ../src/guestfs-actions.pod:1117
6393 msgid "guestfs_cp"
6394 msgstr ""
6395
6396 # type: verbatim
6397 #: ../src/guestfs-actions.pod:1119
6398 #, no-wrap
6399 msgid ""
6400 " int\n"
6401 " guestfs_cp (guestfs_h *g,\n"
6402 "             const char *src,\n"
6403 "             const char *dest);\n"
6404 "\n"
6405 msgstr ""
6406
6407 # type: textblock
6408 #: ../src/guestfs-actions.pod:1124 ../fish/guestfish-actions.pod:759
6409 msgid ""
6410 "This copies a file from C<src> to C<dest> where C<dest> is either a "
6411 "destination filename or destination directory."
6412 msgstr ""
6413
6414 # type: textblock
6415 #: ../src/guestfs-actions.pod:1129 ../src/guestfs-actions.pod:1143
6416 #: ../src/guestfs-actions.pod:1215 ../src/guestfs-actions.pod:1289
6417 #: ../src/guestfs-actions.pod:1398 ../src/guestfs-actions.pod:4454
6418 #: ../src/guestfs-actions.pod:4831
6419 msgid "(Added in 1.0.18)"
6420 msgstr ""
6421
6422 # type: =head2
6423 #: ../src/guestfs-actions.pod:1131
6424 msgid "guestfs_cp_a"
6425 msgstr ""
6426
6427 # type: verbatim
6428 #: ../src/guestfs-actions.pod:1133
6429 #, no-wrap
6430 msgid ""
6431 " int\n"
6432 " guestfs_cp_a (guestfs_h *g,\n"
6433 "               const char *src,\n"
6434 "               const char *dest);\n"
6435 "\n"
6436 msgstr ""
6437
6438 # type: textblock
6439 #: ../src/guestfs-actions.pod:1138 ../fish/guestfish-actions.pod:766
6440 msgid ""
6441 "This copies a file or directory from C<src> to C<dest> recursively using the "
6442 "C<cp -a> command."
6443 msgstr ""
6444
6445 # type: =head2
6446 #: ../src/guestfs-actions.pod:1145
6447 msgid "guestfs_dd"
6448 msgstr ""
6449
6450 # type: verbatim
6451 #: ../src/guestfs-actions.pod:1147
6452 #, no-wrap
6453 msgid ""
6454 " int\n"
6455 " guestfs_dd (guestfs_h *g,\n"
6456 "             const char *src,\n"
6457 "             const char *dest);\n"
6458 "\n"
6459 msgstr ""
6460
6461 # type: textblock
6462 #: ../src/guestfs-actions.pod:1152 ../fish/guestfish-actions.pod:773
6463 msgid ""
6464 "This command copies from one source device or file C<src> to another "
6465 "destination device or file C<dest>.  Normally you would use this to copy to "
6466 "or from a device or partition, for example to duplicate a filesystem."
6467 msgstr ""
6468
6469 # type: textblock
6470 #: ../src/guestfs-actions.pod:1157
6471 msgid ""
6472 "If the destination is a device, it must be as large or larger than the "
6473 "source file or device, otherwise the copy will fail.  This command cannot do "
6474 "partial copies (see C<guestfs_copy_size>)."
6475 msgstr ""
6476
6477 # type: =head2
6478 #: ../src/guestfs-actions.pod:1165
6479 msgid "guestfs_df"
6480 msgstr ""
6481
6482 # type: verbatim
6483 #: ../src/guestfs-actions.pod:1167
6484 #, no-wrap
6485 msgid ""
6486 " char *\n"
6487 " guestfs_df (guestfs_h *g);\n"
6488 "\n"
6489 msgstr ""
6490
6491 # type: textblock
6492 #: ../src/guestfs-actions.pod:1170 ../fish/guestfish-actions.pod:786
6493 msgid "This command runs the C<df> command to report disk space used."
6494 msgstr ""
6495
6496 # type: textblock
6497 #: ../src/guestfs-actions.pod:1172 ../src/guestfs-actions.pod:1189
6498 #: ../fish/guestfish-actions.pod:788 ../fish/guestfish-actions.pod:799
6499 msgid ""
6500 "This command is mostly useful for interactive sessions.  It is I<not> "
6501 "intended that you try to parse the output string.  Use C<statvfs> from "
6502 "programs."
6503 msgstr ""
6504
6505 # type: textblock
6506 #: ../src/guestfs-actions.pod:1179 ../src/guestfs-actions.pod:1196
6507 #: ../src/guestfs-actions.pod:1309 ../src/guestfs-actions.pod:2233
6508 #: ../src/guestfs-actions.pod:2257 ../src/guestfs-actions.pod:2325
6509 #: ../src/guestfs-actions.pod:3961 ../src/guestfs-actions.pod:4354
6510 #: ../src/guestfs-actions.pod:6116 ../src/guestfs-actions.pod:6140
6511 #: ../src/guestfs-actions.pod:6748 ../src/guestfs-actions.pod:6761
6512 #: ../src/guestfs-actions.pod:6774
6513 msgid "(Added in 1.0.54)"
6514 msgstr ""
6515
6516 # type: =head2
6517 #: ../src/guestfs-actions.pod:1181
6518 msgid "guestfs_df_h"
6519 msgstr ""
6520
6521 # type: verbatim
6522 #: ../src/guestfs-actions.pod:1183
6523 #, no-wrap
6524 msgid ""
6525 " char *\n"
6526 " guestfs_df_h (guestfs_h *g);\n"
6527 "\n"
6528 msgstr ""
6529
6530 # type: textblock
6531 #: ../src/guestfs-actions.pod:1186 ../fish/guestfish-actions.pod:796
6532 msgid ""
6533 "This command runs the C<df -h> command to report disk space used in human-"
6534 "readable format."
6535 msgstr ""
6536
6537 # type: =head2
6538 #: ../src/guestfs-actions.pod:1198
6539 msgid "guestfs_dmesg"
6540 msgstr ""
6541
6542 # type: verbatim
6543 #: ../src/guestfs-actions.pod:1200
6544 #, no-wrap
6545 msgid ""
6546 " char *\n"
6547 " guestfs_dmesg (guestfs_h *g);\n"
6548 "\n"
6549 msgstr ""
6550
6551 # type: textblock
6552 #: ../src/guestfs-actions.pod:1203 ../fish/guestfish-actions.pod:807
6553 msgid ""
6554 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
6555 "This is sometimes useful for extended debugging of problems."
6556 msgstr ""
6557
6558 # type: textblock
6559 #: ../src/guestfs-actions.pod:1207
6560 msgid ""
6561 "Another way to get the same information is to enable verbose messages with "
6562 "C<guestfs_set_verbose> or by setting the environment variable "
6563 "C<LIBGUESTFS_DEBUG=1> before running the program."
6564 msgstr ""
6565
6566 # type: =head2
6567 #: ../src/guestfs-actions.pod:1217
6568 msgid "guestfs_download"
6569 msgstr ""
6570
6571 # type: verbatim
6572 #: ../src/guestfs-actions.pod:1219
6573 #, no-wrap
6574 msgid ""
6575 " int\n"
6576 " guestfs_download (guestfs_h *g,\n"
6577 "                   const char *remotefilename,\n"
6578 "                   const char *filename);\n"
6579 "\n"
6580 msgstr ""
6581
6582 # type: textblock
6583 #: ../src/guestfs-actions.pod:1224 ../src/guestfs-actions.pod:1249
6584 #: ../fish/guestfish-actions.pod:820 ../fish/guestfish-actions.pod:833
6585 msgid ""
6586 "Download file C<remotefilename> and save it as C<filename> on the local "
6587 "machine."
6588 msgstr ""
6589
6590 # type: textblock
6591 #: ../src/guestfs-actions.pod:1227 ../src/guestfs-actions.pod:6372
6592 #: ../fish/guestfish-actions.pod:823 ../fish/guestfish-actions.pod:4273
6593 msgid "C<filename> can also be a named pipe."
6594 msgstr ""
6595
6596 # type: textblock
6597 #: ../src/guestfs-actions.pod:1229
6598 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
6599 msgstr ""
6600
6601 # type: =head2
6602 #: ../src/guestfs-actions.pod:1240
6603 msgid "guestfs_download_offset"
6604 msgstr ""
6605
6606 # type: verbatim
6607 #: ../src/guestfs-actions.pod:1242
6608 #, no-wrap
6609 msgid ""
6610 " int\n"
6611 " guestfs_download_offset (guestfs_h *g,\n"
6612 "                          const char *remotefilename,\n"
6613 "                          const char *filename,\n"
6614 "                          int64_t offset,\n"
6615 "                          int64_t size);\n"
6616 "\n"
6617 msgstr ""
6618
6619 # type: textblock
6620 #: ../src/guestfs-actions.pod:1252 ../fish/guestfish-actions.pod:836
6621 msgid ""
6622 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
6623 "region must be within the file or device)."
6624 msgstr ""
6625
6626 # type: textblock
6627 #: ../src/guestfs-actions.pod:1255
6628 msgid ""
6629 "Note that there is no limit on the amount of data that can be downloaded "
6630 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
6631 "full amount unless an error occurs."
6632 msgstr ""
6633
6634 # type: textblock
6635 #: ../src/guestfs-actions.pod:1260
6636 msgid "See also C<guestfs_download>, C<guestfs_pread>."
6637 msgstr ""
6638
6639 # type: textblock
6640 #: ../src/guestfs-actions.pod:1269 ../src/guestfs-actions.pod:6407
6641 msgid "(Added in 1.5.17)"
6642 msgstr ""
6643
6644 # type: =head2
6645 #: ../src/guestfs-actions.pod:1271
6646 msgid "guestfs_drop_caches"
6647 msgstr ""
6648
6649 # type: verbatim
6650 #: ../src/guestfs-actions.pod:1273
6651 #, no-wrap
6652 msgid ""
6653 " int\n"
6654 " guestfs_drop_caches (guestfs_h *g,\n"
6655 "                      int whattodrop);\n"
6656 "\n"
6657 msgstr ""
6658
6659 # type: textblock
6660 #: ../src/guestfs-actions.pod:1277 ../fish/guestfish-actions.pod:852
6661 msgid ""
6662 "This instructs the guest kernel to drop its page cache, and/or dentries and "
6663 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
6664 "to drop, see L<http://linux-mm.org/Drop_Caches>"
6665 msgstr ""
6666
6667 # type: textblock
6668 #: ../src/guestfs-actions.pod:1282 ../fish/guestfish-actions.pod:857
6669 msgid "Setting C<whattodrop> to 3 should drop everything."
6670 msgstr ""
6671
6672 # type: textblock
6673 #: ../src/guestfs-actions.pod:1284 ../fish/guestfish-actions.pod:859
6674 msgid ""
6675 "This automatically calls L<sync(2)> before the operation, so that the "
6676 "maximum guest memory is freed."
6677 msgstr ""
6678
6679 # type: =head2
6680 #: ../src/guestfs-actions.pod:1291
6681 msgid "guestfs_du"
6682 msgstr ""
6683
6684 # type: verbatim
6685 #: ../src/guestfs-actions.pod:1293
6686 #, no-wrap
6687 msgid ""
6688 " int64_t\n"
6689 " guestfs_du (guestfs_h *g,\n"
6690 "             const char *path);\n"
6691 "\n"
6692 msgstr ""
6693
6694 # type: textblock
6695 #: ../src/guestfs-actions.pod:1297 ../fish/guestfish-actions.pod:866
6696 msgid ""
6697 "This command runs the C<du -s> command to estimate file space usage for "
6698 "C<path>."
6699 msgstr ""
6700
6701 # type: textblock
6702 #: ../src/guestfs-actions.pod:1300 ../fish/guestfish-actions.pod:869
6703 msgid ""
6704 "C<path> can be a file or a directory.  If C<path> is a directory then the "
6705 "estimate includes the contents of the directory and all subdirectories "
6706 "(recursively)."
6707 msgstr ""
6708
6709 # type: textblock
6710 #: ../src/guestfs-actions.pod:1304 ../fish/guestfish-actions.pod:873
6711 msgid ""
6712 "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
6713 msgstr ""
6714
6715 # type: =head2
6716 #: ../src/guestfs-actions.pod:1311
6717 msgid "guestfs_e2fsck_f"
6718 msgstr ""
6719
6720 # type: verbatim
6721 #: ../src/guestfs-actions.pod:1313
6722 #, no-wrap
6723 msgid ""
6724 " int\n"
6725 " guestfs_e2fsck_f (guestfs_h *g,\n"
6726 "                   const char *device);\n"
6727 "\n"
6728 msgstr ""
6729
6730 # type: textblock
6731 #: ../src/guestfs-actions.pod:1317 ../fish/guestfish-actions.pod:880
6732 msgid ""
6733 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
6734 "on C<device>, noninteractively (C<-p>), even if the filesystem appears to be "
6735 "clean (C<-f>)."
6736 msgstr ""
6737
6738 # type: textblock
6739 #: ../src/guestfs-actions.pod:1321
6740 msgid ""
6741 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
6742 "Normally you should use C<guestfs_fsck>."
6743 msgstr ""
6744
6745 # type: textblock
6746 #: ../src/guestfs-actions.pod:1326
6747 msgid "(Added in 1.0.29)"
6748 msgstr ""
6749
6750 # type: =head2
6751 #: ../src/guestfs-actions.pod:1328
6752 msgid "guestfs_echo_daemon"
6753 msgstr ""
6754
6755 # type: verbatim
6756 #: ../src/guestfs-actions.pod:1330
6757 #, no-wrap
6758 msgid ""
6759 " char *\n"
6760 " guestfs_echo_daemon (guestfs_h *g,\n"
6761 "                      char *const *words);\n"
6762 "\n"
6763 msgstr ""
6764
6765 # type: textblock
6766 #: ../src/guestfs-actions.pod:1334 ../fish/guestfish-actions.pod:891
6767 msgid ""
6768 "This command concatenates the list of C<words> passed with single spaces "
6769 "between them and returns the resulting string."
6770 msgstr ""
6771
6772 # type: textblock
6773 #: ../src/guestfs-actions.pod:1337 ../fish/guestfish-actions.pod:894
6774 msgid "You can use this command to test the connection through to the daemon."
6775 msgstr ""
6776
6777 # type: textblock
6778 #: ../src/guestfs-actions.pod:1339
6779 msgid "See also C<guestfs_ping_daemon>."
6780 msgstr ""
6781
6782 # type: textblock
6783 #: ../src/guestfs-actions.pod:1344 ../src/guestfs-actions.pod:2071
6784 #: ../src/guestfs-actions.pod:5620
6785 msgid "(Added in 1.0.69)"
6786 msgstr ""
6787
6788 # type: =head2
6789 #: ../src/guestfs-actions.pod:1346
6790 msgid "guestfs_egrep"
6791 msgstr ""
6792
6793 # type: verbatim
6794 #: ../src/guestfs-actions.pod:1348
6795 #, no-wrap
6796 msgid ""
6797 " char **\n"
6798 " guestfs_egrep (guestfs_h *g,\n"
6799 "                const char *regex,\n"
6800 "                const char *path);\n"
6801 "\n"
6802 msgstr ""
6803
6804 # type: textblock
6805 #: ../src/guestfs-actions.pod:1353 ../fish/guestfish-actions.pod:902
6806 msgid ""
6807 "This calls the external C<egrep> program and returns the matching lines."
6808 msgstr ""
6809
6810 # type: textblock
6811 #: ../src/guestfs-actions.pod:1363 ../src/guestfs-actions.pod:1382
6812 #: ../src/guestfs-actions.pod:1439 ../src/guestfs-actions.pod:1485
6813 #: ../src/guestfs-actions.pod:1504 ../src/guestfs-actions.pod:2171
6814 #: ../src/guestfs-actions.pod:2190 ../src/guestfs-actions.pod:2346
6815 #: ../src/guestfs-actions.pod:2359 ../src/guestfs-actions.pod:2374
6816 #: ../src/guestfs-actions.pod:2420 ../src/guestfs-actions.pod:2442
6817 #: ../src/guestfs-actions.pod:2455 ../src/guestfs-actions.pod:3344
6818 #: ../src/guestfs-actions.pod:3358 ../src/guestfs-actions.pod:3371
6819 #: ../src/guestfs-actions.pod:3385 ../src/guestfs-actions.pod:4289
6820 #: ../src/guestfs-actions.pod:5165 ../src/guestfs-actions.pod:5214
6821 #: ../src/guestfs-actions.pod:5984 ../src/guestfs-actions.pod:5996
6822 #: ../src/guestfs-actions.pod:6009 ../src/guestfs-actions.pod:6022
6823 #: ../src/guestfs-actions.pod:6044 ../src/guestfs-actions.pod:6057
6824 #: ../src/guestfs-actions.pod:6070 ../src/guestfs-actions.pod:6083
6825 #: ../src/guestfs-actions.pod:6844 ../src/guestfs-actions.pod:6863
6826 #: ../src/guestfs-actions.pod:6948 ../src/guestfs-actions.pod:6967
6827 #: ../src/guestfs-actions.pod:7013 ../src/guestfs-actions.pod:7032
6828 msgid "(Added in 1.0.66)"
6829 msgstr ""
6830
6831 # type: =head2
6832 #: ../src/guestfs-actions.pod:1365
6833 msgid "guestfs_egrepi"
6834 msgstr ""
6835
6836 # type: verbatim
6837 #: ../src/guestfs-actions.pod:1367
6838 #, no-wrap
6839 msgid ""
6840 " char **\n"
6841 " guestfs_egrepi (guestfs_h *g,\n"
6842 "                 const char *regex,\n"
6843 "                 const char *path);\n"
6844 "\n"
6845 msgstr ""
6846
6847 # type: textblock
6848 #: ../src/guestfs-actions.pod:1372 ../fish/guestfish-actions.pod:912
6849 msgid ""
6850 "This calls the external C<egrep -i> program and returns the matching lines."
6851 msgstr ""
6852
6853 # type: =head2
6854 #: ../src/guestfs-actions.pod:1384
6855 msgid "guestfs_equal"
6856 msgstr ""
6857
6858 # type: verbatim
6859 #: ../src/guestfs-actions.pod:1386
6860 #, no-wrap
6861 msgid ""
6862 " int\n"
6863 " guestfs_equal (guestfs_h *g,\n"
6864 "                const char *file1,\n"
6865 "                const char *file2);\n"
6866 "\n"
6867 msgstr ""
6868
6869 # type: textblock
6870 #: ../src/guestfs-actions.pod:1391 ../fish/guestfish-actions.pod:922
6871 msgid ""
6872 "This compares the two files C<file1> and C<file2> and returns true if their "
6873 "content is exactly equal, or false otherwise."
6874 msgstr ""
6875
6876 # type: textblock
6877 #: ../src/guestfs-actions.pod:1394 ../fish/guestfish-actions.pod:925
6878 msgid "The external L<cmp(1)> program is used for the comparison."
6879 msgstr ""
6880
6881 # type: =head2
6882 #: ../src/guestfs-actions.pod:1400
6883 msgid "guestfs_exists"
6884 msgstr ""
6885
6886 # type: verbatim
6887 #: ../src/guestfs-actions.pod:1402
6888 #, no-wrap
6889 msgid ""
6890 " int\n"
6891 " guestfs_exists (guestfs_h *g,\n"
6892 "                 const char *path);\n"
6893 "\n"
6894 msgstr ""
6895
6896 # type: textblock
6897 #: ../src/guestfs-actions.pod:1406 ../fish/guestfish-actions.pod:931
6898 msgid ""
6899 "This returns C<true> if and only if there is a file, directory (or anything) "
6900 "with the given C<path> name."
6901 msgstr ""
6902
6903 # type: textblock
6904 #: ../src/guestfs-actions.pod:1409
6905 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
6906 msgstr ""
6907
6908 # type: =head2
6909 #: ../src/guestfs-actions.pod:1415
6910 msgid "guestfs_fallocate"
6911 msgstr ""
6912
6913 # type: verbatim
6914 #: ../src/guestfs-actions.pod:1417
6915 #, no-wrap
6916 msgid ""
6917 " int\n"
6918 " guestfs_fallocate (guestfs_h *g,\n"
6919 "                    const char *path,\n"
6920 "                    int len);\n"
6921 "\n"
6922 msgstr ""
6923
6924 # type: textblock
6925 #: ../src/guestfs-actions.pod:1422 ../src/guestfs-actions.pod:1448
6926 #: ../fish/guestfish-actions.pod:940 ../fish/guestfish-actions.pod:959
6927 msgid ""
6928 "This command preallocates a file (containing zero bytes) named C<path> of "
6929 "size C<len> bytes.  If the file exists already, it is overwritten."
6930 msgstr ""
6931
6932 # type: textblock
6933 #: ../src/guestfs-actions.pod:1426 ../fish/guestfish-actions.pod:944
6934 msgid ""
6935 "Do not confuse this with the guestfish-specific C<alloc> command which "
6936 "allocates a file in the host and attaches it as a device."
6937 msgstr ""
6938
6939 # type: textblock
6940 #: ../src/guestfs-actions.pod:1432 ../fish/guestfish-actions.pod:948
6941 msgid ""
6942 "This function is deprecated.  In new code, use the C<fallocate64> call "
6943 "instead."
6944 msgstr ""
6945
6946 # type: =head2
6947 #: ../src/guestfs-actions.pod:1441
6948 msgid "guestfs_fallocate64"
6949 msgstr ""
6950
6951 # type: verbatim
6952 #: ../src/guestfs-actions.pod:1443
6953 #, no-wrap
6954 msgid ""
6955 " int\n"
6956 " guestfs_fallocate64 (guestfs_h *g,\n"
6957 "                      const char *path,\n"
6958 "                      int64_t len);\n"
6959 "\n"
6960 msgstr ""
6961
6962 # type: textblock
6963 #: ../src/guestfs-actions.pod:1452
6964 msgid ""
6965 "Note that this call allocates disk blocks for the file.  To create a sparse "
6966 "file use C<guestfs_truncate_size> instead."
6967 msgstr ""
6968
6969 # type: textblock
6970 #: ../src/guestfs-actions.pod:1455
6971 msgid ""
6972 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
6973 "oversight it only allowed 30 bit lengths to be specified, effectively "
6974 "limiting the maximum size of files created through that call to 1GB."
6975 msgstr ""
6976
6977 # type: textblock
6978 #: ../src/guestfs-actions.pod:1460 ../fish/guestfish-actions.pod:971
6979 msgid ""
6980 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
6981 "commands which create a file in the host and attach it as a device."
6982 msgstr ""
6983
6984 # type: textblock
6985 #: ../src/guestfs-actions.pod:1466
6986 msgid "(Added in 1.3.17)"
6987 msgstr ""
6988
6989 # type: =head2
6990 #: ../src/guestfs-actions.pod:1468
6991 msgid "guestfs_fgrep"
6992 msgstr ""
6993
6994 # type: verbatim
6995 #: ../src/guestfs-actions.pod:1470
6996 #, no-wrap
6997 msgid ""
6998 " char **\n"
6999 " guestfs_fgrep (guestfs_h *g,\n"
7000 "                const char *pattern,\n"
7001 "                const char *path);\n"
7002 "\n"
7003 msgstr ""
7004
7005 # type: textblock
7006 #: ../src/guestfs-actions.pod:1475 ../fish/guestfish-actions.pod:979
7007 msgid ""
7008 "This calls the external C<fgrep> program and returns the matching lines."
7009 msgstr ""
7010
7011 # type: =head2
7012 #: ../src/guestfs-actions.pod:1487
7013 msgid "guestfs_fgrepi"
7014 msgstr ""
7015
7016 # type: verbatim
7017 #: ../src/guestfs-actions.pod:1489
7018 #, no-wrap
7019 msgid ""
7020 " char **\n"
7021 " guestfs_fgrepi (guestfs_h *g,\n"
7022 "                 const char *pattern,\n"
7023 "                 const char *path);\n"
7024 "\n"
7025 msgstr ""
7026
7027 # type: textblock
7028 #: ../src/guestfs-actions.pod:1494 ../fish/guestfish-actions.pod:989
7029 msgid ""
7030 "This calls the external C<fgrep -i> program and returns the matching lines."
7031 msgstr ""
7032
7033 # type: =head2
7034 #: ../src/guestfs-actions.pod:1506
7035 msgid "guestfs_file"
7036 msgstr ""
7037
7038 # type: verbatim
7039 #: ../src/guestfs-actions.pod:1508
7040 #, no-wrap
7041 msgid ""
7042 " char *\n"
7043 " guestfs_file (guestfs_h *g,\n"
7044 "               const char *path);\n"
7045 "\n"
7046 msgstr ""
7047
7048 # type: textblock
7049 #: ../src/guestfs-actions.pod:1512 ../fish/guestfish-actions.pod:999
7050 msgid ""
7051 "This call uses the standard L<file(1)> command to determine the type or "
7052 "contents of the file."
7053 msgstr ""
7054
7055 # type: textblock
7056 #: ../src/guestfs-actions.pod:1515 ../fish/guestfish-actions.pod:1002
7057 msgid ""
7058 "This call will also transparently look inside various types of compressed "
7059 "file."
7060 msgstr ""
7061
7062 # type: textblock
7063 #: ../src/guestfs-actions.pod:1518 ../fish/guestfish-actions.pod:1005
7064 msgid ""
7065 "The exact command which runs is C<file -zb path>.  Note in particular that "
7066 "the filename is not prepended to the output (the C<-b> option)."
7067 msgstr ""
7068
7069 # type: textblock
7070 #: ../src/guestfs-actions.pod:1522
7071 msgid ""
7072 "This command can also be used on C</dev/> devices (and partitions, LV "
7073 "names).  You can for example use this to determine if a device contains a "
7074 "filesystem, although it's usually better to use C<guestfs_vfs_type>."
7075 msgstr ""
7076
7077 # type: textblock
7078 #: ../src/guestfs-actions.pod:1527 ../fish/guestfish-actions.pod:1014
7079 msgid ""
7080 "If the C<path> does not begin with C</dev/> then this command only works for "
7081 "the content of regular files.  For other file types (directory, symbolic "
7082 "link etc) it will just return the string C<directory> etc."
7083 msgstr ""
7084
7085 # type: =head2
7086 #: ../src/guestfs-actions.pod:1537
7087 msgid "guestfs_file_architecture"
7088 msgstr ""
7089
7090 # type: verbatim
7091 #: ../src/guestfs-actions.pod:1539
7092 #, no-wrap
7093 msgid ""
7094 " char *\n"
7095 " guestfs_file_architecture (guestfs_h *g,\n"
7096 "                            const char *filename);\n"
7097 "\n"
7098 msgstr ""
7099
7100 # type: textblock
7101 #: ../src/guestfs-actions.pod:1543 ../fish/guestfish-actions.pod:1023
7102 msgid ""
7103 "This detects the architecture of the binary C<filename>, and returns it if "
7104 "known."
7105 msgstr ""
7106
7107 # type: textblock
7108 #: ../src/guestfs-actions.pod:1546 ../fish/guestfish-actions.pod:1026
7109 msgid "Currently defined architectures are:"
7110 msgstr ""
7111
7112 # type: =item
7113 #: ../src/guestfs-actions.pod:1550 ../fish/guestfish-actions.pod:1030
7114 msgid "\"i386\""
7115 msgstr ""
7116
7117 # type: textblock
7118 #: ../src/guestfs-actions.pod:1552 ../fish/guestfish-actions.pod:1032
7119 msgid ""
7120 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
7121 "irrespective of the precise processor requirements of the binary."
7122 msgstr ""
7123
7124 # type: =item
7125 #: ../src/guestfs-actions.pod:1555 ../fish/guestfish-actions.pod:1035
7126 msgid "\"x86_64\""
7127 msgstr ""
7128
7129 # type: textblock
7130 #: ../src/guestfs-actions.pod:1557 ../fish/guestfish-actions.pod:1037
7131 msgid "64 bit x86-64."
7132 msgstr ""
7133
7134 # type: =item
7135 #: ../src/guestfs-actions.pod:1559 ../fish/guestfish-actions.pod:1039
7136 msgid "\"sparc\""
7137 msgstr ""
7138
7139 # type: textblock
7140 #: ../src/guestfs-actions.pod:1561 ../fish/guestfish-actions.pod:1041
7141 msgid "32 bit SPARC."
7142 msgstr ""
7143
7144 # type: =item
7145 #: ../src/guestfs-actions.pod:1563 ../fish/guestfish-actions.pod:1043
7146 msgid "\"sparc64\""
7147 msgstr ""
7148
7149 # type: textblock
7150 #: ../src/guestfs-actions.pod:1565 ../fish/guestfish-actions.pod:1045
7151 msgid "64 bit SPARC V9 and above."
7152 msgstr ""
7153
7154 # type: =item
7155 #: ../src/guestfs-actions.pod:1567 ../fish/guestfish-actions.pod:1047
7156 msgid "\"ia64\""
7157 msgstr ""
7158
7159 # type: textblock
7160 #: ../src/guestfs-actions.pod:1569 ../fish/guestfish-actions.pod:1049
7161 msgid "Intel Itanium."
7162 msgstr ""
7163
7164 # type: =item
7165 #: ../src/guestfs-actions.pod:1571 ../fish/guestfish-actions.pod:1051
7166 msgid "\"ppc\""
7167 msgstr ""
7168
7169 # type: textblock
7170 #: ../src/guestfs-actions.pod:1573 ../fish/guestfish-actions.pod:1053
7171 msgid "32 bit Power PC."
7172 msgstr ""
7173
7174 # type: =item
7175 #: ../src/guestfs-actions.pod:1575 ../fish/guestfish-actions.pod:1055
7176 msgid "\"ppc64\""
7177 msgstr ""
7178
7179 # type: textblock
7180 #: ../src/guestfs-actions.pod:1577 ../fish/guestfish-actions.pod:1057
7181 msgid "64 bit Power PC."
7182 msgstr ""
7183
7184 # type: textblock
7185 #: ../src/guestfs-actions.pod:1581 ../fish/guestfish-actions.pod:1061
7186 msgid "Libguestfs may return other architecture strings in future."
7187 msgstr ""
7188
7189 # type: textblock
7190 #: ../src/guestfs-actions.pod:1583 ../fish/guestfish-actions.pod:1063
7191 msgid "The function works on at least the following types of files:"
7192 msgstr ""
7193
7194 # type: textblock
7195 #: ../src/guestfs-actions.pod:1589 ../fish/guestfish-actions.pod:1069
7196 msgid "many types of Un*x and Linux binary"
7197 msgstr ""
7198
7199 # type: textblock
7200 #: ../src/guestfs-actions.pod:1593 ../fish/guestfish-actions.pod:1073
7201 msgid "many types of Un*x and Linux shared library"
7202 msgstr ""
7203
7204 # type: textblock
7205 #: ../src/guestfs-actions.pod:1597 ../fish/guestfish-actions.pod:1077
7206 msgid "Windows Win32 and Win64 binaries"
7207 msgstr ""
7208
7209 # type: textblock
7210 #: ../src/guestfs-actions.pod:1601 ../fish/guestfish-actions.pod:1081
7211 msgid "Windows Win32 and Win64 DLLs"
7212 msgstr ""
7213
7214 # type: textblock
7215 #: ../src/guestfs-actions.pod:1603 ../fish/guestfish-actions.pod:1083
7216 msgid "Win32 binaries and DLLs return C<i386>."
7217 msgstr ""
7218
7219 # type: textblock
7220 #: ../src/guestfs-actions.pod:1605 ../fish/guestfish-actions.pod:1085
7221 msgid "Win64 binaries and DLLs return C<x86_64>."
7222 msgstr ""
7223
7224 # type: textblock
7225 #: ../src/guestfs-actions.pod:1609 ../fish/guestfish-actions.pod:1089
7226 msgid "Linux kernel modules"
7227 msgstr ""
7228
7229 # type: textblock
7230 #: ../src/guestfs-actions.pod:1613 ../fish/guestfish-actions.pod:1093
7231 msgid "Linux new-style initrd images"
7232 msgstr ""
7233
7234 # type: textblock
7235 #: ../src/guestfs-actions.pod:1617 ../fish/guestfish-actions.pod:1097
7236 msgid "some non-x86 Linux vmlinuz kernels"
7237 msgstr ""
7238
7239 # type: textblock
7240 #: ../src/guestfs-actions.pod:1621 ../fish/guestfish-actions.pod:1101
7241 msgid "What it can't do currently:"
7242 msgstr ""
7243
7244 # type: textblock
7245 #: ../src/guestfs-actions.pod:1627 ../fish/guestfish-actions.pod:1107
7246 msgid "static libraries (libfoo.a)"
7247 msgstr ""
7248
7249 # type: textblock
7250 #: ../src/guestfs-actions.pod:1631 ../fish/guestfish-actions.pod:1111
7251 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
7252 msgstr ""
7253
7254 # type: textblock
7255 #: ../src/guestfs-actions.pod:1635 ../fish/guestfish-actions.pod:1115
7256 msgid "x86 Linux vmlinuz kernels"
7257 msgstr ""
7258
7259 # type: textblock
7260 #: ../src/guestfs-actions.pod:1637 ../fish/guestfish-actions.pod:1117
7261 msgid ""
7262 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
7263 "compressed code, and are horribly hard to unpack.  If you want to find the "
7264 "architecture of a kernel, use the architecture of the associated initrd or "
7265 "kernel module(s) instead."
7266 msgstr ""
7267
7268 # type: textblock
7269 #: ../src/guestfs-actions.pod:1647 ../src/guestfs-actions.pod:1810
7270 #: ../src/guestfs-actions.pod:1827 ../src/guestfs-actions.pod:2478
7271 #: ../src/guestfs-actions.pod:2559 ../src/guestfs-actions.pod:2585
7272 #: ../src/guestfs-actions.pod:2632 ../src/guestfs-actions.pod:2653
7273 #: ../src/guestfs-actions.pod:2686 ../src/guestfs-actions.pod:2766
7274 #: ../src/guestfs-actions.pod:2826 ../src/guestfs-actions.pod:2997
7275 #: ../src/guestfs-actions.pod:3129
7276 msgid "(Added in 1.5.3)"
7277 msgstr ""
7278
7279 # type: =head2
7280 #: ../src/guestfs-actions.pod:1649
7281 msgid "guestfs_filesize"
7282 msgstr ""
7283
7284 # type: verbatim
7285 #: ../src/guestfs-actions.pod:1651
7286 #, no-wrap
7287 msgid ""
7288 " int64_t\n"
7289 " guestfs_filesize (guestfs_h *g,\n"
7290 "                   const char *file);\n"
7291 "\n"
7292 msgstr ""
7293
7294 # type: textblock
7295 #: ../src/guestfs-actions.pod:1655 ../fish/guestfish-actions.pod:1128
7296 msgid "This command returns the size of C<file> in bytes."
7297 msgstr ""
7298
7299 # type: textblock
7300 #: ../src/guestfs-actions.pod:1657
7301 msgid ""
7302 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
7303 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
7304 "devices, use C<guestfs_blockdev_getsize64>."
7305 msgstr ""
7306
7307 # type: textblock
7308 #: ../src/guestfs-actions.pod:1663
7309 msgid "(Added in 1.0.82)"
7310 msgstr ""
7311
7312 # type: =head2
7313 #: ../src/guestfs-actions.pod:1665
7314 msgid "guestfs_fill"
7315 msgstr ""
7316
7317 # type: verbatim
7318 #: ../src/guestfs-actions.pod:1667
7319 #, no-wrap
7320 msgid ""
7321 " int\n"
7322 " guestfs_fill (guestfs_h *g,\n"
7323 "               int c,\n"
7324 "               int len,\n"
7325 "               const char *path);\n"
7326 "\n"
7327 msgstr ""
7328
7329 # type: textblock
7330 #: ../src/guestfs-actions.pod:1673 ../fish/guestfish-actions.pod:1138
7331 msgid ""
7332 "This command creates a new file called C<path>.  The initial content of the "
7333 "file is C<len> octets of C<c>, where C<c> must be a number in the range C<"
7334 "[0..255]>."
7335 msgstr ""
7336
7337 # type: textblock
7338 #: ../src/guestfs-actions.pod:1677
7339 msgid ""
7340 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
7341 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
7342 "bytes use C<guestfs_fill_pattern>."
7343 msgstr ""
7344
7345 # type: textblock
7346 #: ../src/guestfs-actions.pod:1689
7347 msgid "(Added in 1.0.79)"
7348 msgstr ""
7349
7350 # type: =head2
7351 #: ../src/guestfs-actions.pod:1691
7352 msgid "guestfs_fill_pattern"
7353 msgstr ""
7354
7355 # type: verbatim
7356 #: ../src/guestfs-actions.pod:1693
7357 #, no-wrap
7358 msgid ""
7359 " int\n"
7360 " guestfs_fill_pattern (guestfs_h *g,\n"
7361 "                       const char *pattern,\n"
7362 "                       int len,\n"
7363 "                       const char *path);\n"
7364 "\n"
7365 msgstr ""
7366
7367 # type: textblock
7368 #: ../src/guestfs-actions.pod:1699
7369 msgid ""
7370 "This function is like C<guestfs_fill> except that it creates a new file of "
7371 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
7372 "pattern is truncated if necessary to ensure the length of the file is "
7373 "exactly C<len> bytes."
7374 msgstr ""
7375
7376 # type: textblock
7377 #: ../src/guestfs-actions.pod:1711
7378 msgid "(Added in 1.3.12)"
7379 msgstr ""
7380
7381 # type: =head2
7382 #: ../src/guestfs-actions.pod:1713
7383 msgid "guestfs_find"
7384 msgstr ""
7385
7386 # type: verbatim
7387 #: ../src/guestfs-actions.pod:1715
7388 #, no-wrap
7389 msgid ""
7390 " char **\n"
7391 " guestfs_find (guestfs_h *g,\n"
7392 "               const char *directory);\n"
7393 "\n"
7394 msgstr ""
7395
7396 # type: textblock
7397 #: ../src/guestfs-actions.pod:1719 ../fish/guestfish-actions.pod:1160
7398 msgid ""
7399 "This command lists out all files and directories, recursively, starting at "
7400 "C<directory>.  It is essentially equivalent to running the shell command "
7401 "C<find directory -print> but some post-processing happens on the output, "
7402 "described below."
7403 msgstr ""
7404
7405 # type: textblock
7406 #: ../src/guestfs-actions.pod:1724 ../fish/guestfish-actions.pod:1165
7407 msgid ""
7408 "This returns a list of strings I<without any prefix>.  Thus if the directory "
7409 "structure was:"
7410 msgstr ""
7411
7412 # type: verbatim
7413 #: ../src/guestfs-actions.pod:1727 ../fish/guestfish-actions.pod:1168
7414 #, no-wrap
7415 msgid ""
7416 " /tmp/a\n"
7417 " /tmp/b\n"
7418 " /tmp/c/d\n"
7419 "\n"
7420 msgstr ""
7421
7422 # type: textblock
7423 #: ../src/guestfs-actions.pod:1731
7424 msgid ""
7425 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
7426 msgstr ""
7427
7428 # type: verbatim
7429 #: ../src/guestfs-actions.pod:1734 ../fish/guestfish-actions.pod:1175
7430 #, no-wrap
7431 msgid ""
7432 " a\n"
7433 " b\n"
7434 " c\n"
7435 " c/d\n"
7436 "\n"
7437 msgstr ""
7438
7439 # type: textblock
7440 #: ../src/guestfs-actions.pod:1739 ../fish/guestfish-actions.pod:1180
7441 msgid "If C<directory> is not a directory, then this command returns an error."
7442 msgstr ""
7443
7444 # type: textblock
7445 #: ../src/guestfs-actions.pod:1742 ../fish/guestfish-actions.pod:1183
7446 msgid "The returned list is sorted."
7447 msgstr ""
7448
7449 # type: textblock
7450 #: ../src/guestfs-actions.pod:1744
7451 msgid "See also C<guestfs_find0>."
7452 msgstr ""
7453
7454 # type: textblock
7455 #: ../src/guestfs-actions.pod:1753 ../src/guestfs-actions.pod:3788
7456 #: ../src/guestfs-actions.pod:5249
7457 msgid "(Added in 1.0.27)"
7458 msgstr ""
7459
7460 # type: =head2
7461 #: ../src/guestfs-actions.pod:1755
7462 msgid "guestfs_find0"
7463 msgstr ""
7464
7465 # type: verbatim
7466 #: ../src/guestfs-actions.pod:1757
7467 #, no-wrap
7468 msgid ""
7469 " int\n"
7470 " guestfs_find0 (guestfs_h *g,\n"
7471 "                const char *directory,\n"
7472 "                const char *files);\n"
7473 "\n"
7474 msgstr ""
7475
7476 # type: textblock
7477 #: ../src/guestfs-actions.pod:1762 ../fish/guestfish-actions.pod:1194
7478 msgid ""
7479 "This command lists out all files and directories, recursively, starting at "
7480 "C<directory>, placing the resulting list in the external file called "
7481 "C<files>."
7482 msgstr ""
7483
7484 # type: textblock
7485 #: ../src/guestfs-actions.pod:1766
7486 msgid ""
7487 "This command works the same way as C<guestfs_find> with the following "
7488 "exceptions:"
7489 msgstr ""
7490
7491 # type: textblock
7492 #: ../src/guestfs-actions.pod:1773 ../fish/guestfish-actions.pod:1205
7493 msgid "The resulting list is written to an external file."
7494 msgstr ""
7495
7496 # type: textblock
7497 #: ../src/guestfs-actions.pod:1777 ../fish/guestfish-actions.pod:1209
7498 msgid ""
7499 "Items (filenames) in the result are separated by C<\\0> characters.  See "
7500 "L<find(1)> option I<-print0>."
7501 msgstr ""
7502
7503 # type: textblock
7504 #: ../src/guestfs-actions.pod:1782 ../fish/guestfish-actions.pod:1214
7505 msgid "This command is not limited in the number of names that it can return."
7506 msgstr ""
7507
7508 # type: textblock
7509 #: ../src/guestfs-actions.pod:1787 ../fish/guestfish-actions.pod:1219
7510 msgid "The result list is not sorted."
7511 msgstr ""
7512
7513 # type: textblock
7514 #: ../src/guestfs-actions.pod:1793
7515 msgid "(Added in 1.0.74)"
7516 msgstr ""
7517
7518 # type: =head2
7519 #: ../src/guestfs-actions.pod:1795
7520 msgid "guestfs_findfs_label"
7521 msgstr ""
7522
7523 # type: verbatim
7524 #: ../src/guestfs-actions.pod:1797
7525 #, no-wrap
7526 msgid ""
7527 " char *\n"
7528 " guestfs_findfs_label (guestfs_h *g,\n"
7529 "                       const char *label);\n"
7530 "\n"
7531 msgstr ""
7532
7533 # type: textblock
7534 #: ../src/guestfs-actions.pod:1801 ../fish/guestfish-actions.pod:1229
7535 msgid ""
7536 "This command searches the filesystems and returns the one which has the "
7537 "given label.  An error is returned if no such filesystem can be found."
7538 msgstr ""
7539
7540 # type: textblock
7541 #: ../src/guestfs-actions.pod:1805
7542 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
7543 msgstr ""
7544
7545 # type: =head2
7546 #: ../src/guestfs-actions.pod:1812
7547 msgid "guestfs_findfs_uuid"
7548 msgstr ""
7549
7550 # type: verbatim
7551 #: ../src/guestfs-actions.pod:1814
7552 #, no-wrap
7553 msgid ""
7554 " char *\n"
7555 " guestfs_findfs_uuid (guestfs_h *g,\n"
7556 "                      const char *uuid);\n"
7557 "\n"
7558 msgstr ""
7559
7560 # type: textblock
7561 #: ../src/guestfs-actions.pod:1818 ../fish/guestfish-actions.pod:1239
7562 msgid ""
7563 "This command searches the filesystems and returns the one which has the "
7564 "given UUID.  An error is returned if no such filesystem can be found."
7565 msgstr ""
7566
7567 # type: textblock
7568 #: ../src/guestfs-actions.pod:1822
7569 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
7570 msgstr ""
7571
7572 # type: =head2
7573 #: ../src/guestfs-actions.pod:1829
7574 msgid "guestfs_fsck"
7575 msgstr ""
7576
7577 # type: verbatim
7578 #: ../src/guestfs-actions.pod:1831
7579 #, no-wrap
7580 msgid ""
7581 " int\n"
7582 " guestfs_fsck (guestfs_h *g,\n"
7583 "               const char *fstype,\n"
7584 "               const char *device);\n"
7585 "\n"
7586 msgstr ""
7587
7588 # type: textblock
7589 #: ../src/guestfs-actions.pod:1836 ../fish/guestfish-actions.pod:1249
7590 msgid ""
7591 "This runs the filesystem checker (fsck) on C<device> which should have "
7592 "filesystem type C<fstype>."
7593 msgstr ""
7594
7595 # type: textblock
7596 #: ../src/guestfs-actions.pod:1839 ../fish/guestfish-actions.pod:1252
7597 msgid ""
7598 "The returned integer is the status.  See L<fsck(8)> for the list of status "
7599 "codes from C<fsck>."
7600 msgstr ""
7601
7602 # type: textblock
7603 #: ../src/guestfs-actions.pod:1848 ../fish/guestfish-actions.pod:1261
7604 msgid "Multiple status codes can be summed together."
7605 msgstr ""
7606
7607 # type: textblock
7608 #: ../src/guestfs-actions.pod:1852 ../fish/guestfish-actions.pod:1265
7609 msgid ""
7610 "A non-zero return code can mean \"success\", for example if errors have been "
7611 "corrected on the filesystem."
7612 msgstr ""
7613
7614 # type: textblock
7615 #: ../src/guestfs-actions.pod:1857 ../fish/guestfish-actions.pod:1270
7616 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
7617 msgstr ""
7618
7619 # type: textblock
7620 #: ../src/guestfs-actions.pod:1862 ../fish/guestfish-actions.pod:1275
7621 msgid ""
7622 "This command is entirely equivalent to running C<fsck -a -t fstype device>."
7623 msgstr ""
7624
7625 # type: textblock
7626 #: ../src/guestfs-actions.pod:1866 ../src/guestfs-actions.pod:6886
7627 msgid "(Added in 1.0.16)"
7628 msgstr ""
7629
7630 # type: =head2
7631 #: ../src/guestfs-actions.pod:1868
7632 msgid "guestfs_get_append"
7633 msgstr ""
7634
7635 # type: verbatim
7636 #: ../src/guestfs-actions.pod:1870
7637 #, no-wrap
7638 msgid ""
7639 " const char *\n"
7640 " guestfs_get_append (guestfs_h *g);\n"
7641 "\n"
7642 msgstr ""
7643
7644 # type: textblock
7645 #: ../src/guestfs-actions.pod:1873 ../fish/guestfish-actions.pod:1281
7646 msgid ""
7647 "Return the additional kernel options which are added to the guest kernel "
7648 "command line."
7649 msgstr ""
7650
7651 # type: textblock
7652 #: ../src/guestfs-actions.pod:1876 ../fish/guestfish-actions.pod:1284
7653 msgid "If C<NULL> then no options are added."
7654 msgstr ""
7655
7656 # type: textblock
7657 #: ../src/guestfs-actions.pod:1878
7658 msgid ""
7659 "This function returns a string which may be NULL.  There is no way to return "
7660 "an error from this function.  The string is owned by the guest handle and "
7661 "must I<not> be freed."
7662 msgstr ""
7663
7664 # type: textblock
7665 #: ../src/guestfs-actions.pod:1882 ../src/guestfs-actions.pod:4927
7666 #: ../src/guestfs-actions.pod:5390 ../src/guestfs-actions.pod:5758
7667 #: ../src/guestfs-actions.pod:5777 ../src/guestfs-actions.pod:5793
7668 #: ../src/guestfs-actions.pod:5810 ../src/guestfs-actions.pod:6557
7669 #: ../src/guestfs-actions.pod:6575 ../src/guestfs-actions.pod:6929
7670 msgid "(Added in 1.0.26)"
7671 msgstr ""
7672
7673 # type: =head2
7674 #: ../src/guestfs-actions.pod:1884
7675 msgid "guestfs_get_autosync"
7676 msgstr ""
7677
7678 # type: verbatim
7679 #: ../src/guestfs-actions.pod:1886
7680 #, no-wrap
7681 msgid ""
7682 " int\n"
7683 " guestfs_get_autosync (guestfs_h *g);\n"
7684 "\n"
7685 msgstr ""
7686
7687 # type: textblock
7688 #: ../src/guestfs-actions.pod:1889 ../fish/guestfish-actions.pod:1290
7689 msgid "Get the autosync flag."
7690 msgstr ""
7691
7692 # type: =head2
7693 #: ../src/guestfs-actions.pod:1895
7694 msgid "guestfs_get_direct"
7695 msgstr ""
7696
7697 # type: verbatim
7698 #: ../src/guestfs-actions.pod:1897
7699 #, no-wrap
7700 msgid ""
7701 " int\n"
7702 " guestfs_get_direct (guestfs_h *g);\n"
7703 "\n"
7704 msgstr ""
7705
7706 # type: textblock
7707 #: ../src/guestfs-actions.pod:1900 ../fish/guestfish-actions.pod:1296
7708 msgid "Return the direct appliance mode flag."
7709 msgstr ""
7710
7711 # type: textblock
7712 #: ../src/guestfs-actions.pod:1904 ../src/guestfs-actions.pod:5431
7713 msgid "(Added in 1.0.72)"
7714 msgstr ""
7715
7716 # type: =head2
7717 #: ../src/guestfs-actions.pod:1906
7718 msgid "guestfs_get_e2label"
7719 msgstr ""
7720
7721 # type: verbatim
7722 #: ../src/guestfs-actions.pod:1908
7723 #, no-wrap
7724 msgid ""
7725 " char *\n"
7726 " guestfs_get_e2label (guestfs_h *g,\n"
7727 "                      const char *device);\n"
7728 "\n"
7729 msgstr ""
7730
7731 # type: textblock
7732 #: ../src/guestfs-actions.pod:1912 ../fish/guestfish-actions.pod:1302
7733 msgid ""
7734 "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
7735 msgstr ""
7736
7737 # type: textblock
7738 #: ../src/guestfs-actions.pod:1918 ../fish/guestfish-actions.pod:1305
7739 msgid ""
7740 "This function is deprecated.  In new code, use the C<vfs_label> call instead."
7741 msgstr ""
7742
7743 # type: textblock
7744 #: ../src/guestfs-actions.pod:1925 ../src/guestfs-actions.pod:1946
7745 #: ../src/guestfs-actions.pod:5449 ../src/guestfs-actions.pod:5468
7746 msgid "(Added in 1.0.15)"
7747 msgstr ""
7748
7749 # type: =head2
7750 #: ../src/guestfs-actions.pod:1927
7751 msgid "guestfs_get_e2uuid"
7752 msgstr ""
7753
7754 # type: verbatim
7755 #: ../src/guestfs-actions.pod:1929
7756 #, no-wrap
7757 msgid ""
7758 " char *\n"
7759 " guestfs_get_e2uuid (guestfs_h *g,\n"
7760 "                     const char *device);\n"
7761 "\n"
7762 msgstr ""
7763
7764 # type: textblock
7765 #: ../src/guestfs-actions.pod:1933 ../fish/guestfish-actions.pod:1316
7766 msgid ""
7767 "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
7768 msgstr ""
7769
7770 # type: textblock
7771 #: ../src/guestfs-actions.pod:1939 ../fish/guestfish-actions.pod:1319
7772 msgid ""
7773 "This function is deprecated.  In new code, use the C<vfs_uuid> call instead."
7774 msgstr ""
7775
7776 # type: =head2
7777 #: ../src/guestfs-actions.pod:1948
7778 msgid "guestfs_get_memsize"
7779 msgstr ""
7780
7781 # type: verbatim
7782 #: ../src/guestfs-actions.pod:1950
7783 #, no-wrap
7784 msgid ""
7785 " int\n"
7786 " guestfs_get_memsize (guestfs_h *g);\n"
7787 "\n"
7788 msgstr ""
7789
7790 # type: textblock
7791 #: ../src/guestfs-actions.pod:1953 ../fish/guestfish-actions.pod:1330
7792 msgid ""
7793 "This gets the memory size in megabytes allocated to the qemu subprocess."
7794 msgstr ""
7795
7796 # type: textblock
7797 #: ../src/guestfs-actions.pod:1956
7798 msgid ""
7799 "If C<guestfs_set_memsize> was not called on this handle, and if "
7800 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
7801 "value for memsize."
7802 msgstr ""
7803
7804 # type: textblock
7805 #: ../src/guestfs-actions.pod:1960 ../src/guestfs-actions.pod:2041
7806 #: ../src/guestfs-actions.pod:5484 ../src/guestfs-actions.pod:5591
7807 #: ../fish/guestfish-actions.pod:1337 ../fish/guestfish-actions.pod:1388
7808 #: ../fish/guestfish-actions.pod:3680 ../fish/guestfish-actions.pod:3767
7809 msgid ""
7810 "For more information on the architecture of libguestfs, see L<guestfs(3)>."
7811 msgstr ""
7812
7813 # type: textblock
7814 #: ../src/guestfs-actions.pod:1965 ../src/guestfs-actions.pod:4079
7815 #: ../src/guestfs-actions.pod:4194 ../src/guestfs-actions.pod:4213
7816 #: ../src/guestfs-actions.pod:4232 ../src/guestfs-actions.pod:4244
7817 #: ../src/guestfs-actions.pod:4261 ../src/guestfs-actions.pod:4274
7818 #: ../src/guestfs-actions.pod:5152 ../src/guestfs-actions.pod:5489
7819 #: ../src/guestfs-actions.pod:5732 ../src/guestfs-actions.pod:6333
7820 msgid "(Added in 1.0.55)"
7821 msgstr ""
7822
7823 # type: =head2
7824 #: ../src/guestfs-actions.pod:1967
7825 msgid "guestfs_get_network"
7826 msgstr ""
7827
7828 # type: verbatim
7829 #: ../src/guestfs-actions.pod:1969
7830 #, no-wrap
7831 msgid ""
7832 " int\n"
7833 " guestfs_get_network (guestfs_h *g);\n"
7834 "\n"
7835 msgstr ""
7836
7837 # type: textblock
7838 #: ../src/guestfs-actions.pod:1972 ../fish/guestfish-actions.pod:1344
7839 msgid "This returns the enable network flag."
7840 msgstr ""
7841
7842 # type: textblock
7843 #: ../src/guestfs-actions.pod:1976 ../src/guestfs-actions.pod:5508
7844 msgid "(Added in 1.5.4)"
7845 msgstr ""
7846
7847 # type: =head2
7848 #: ../src/guestfs-actions.pod:1978
7849 msgid "guestfs_get_path"
7850 msgstr ""
7851
7852 # type: verbatim
7853 #: ../src/guestfs-actions.pod:1980
7854 #, no-wrap
7855 msgid ""
7856 " const char *\n"
7857 " guestfs_get_path (guestfs_h *g);\n"
7858 "\n"
7859 msgstr ""
7860
7861 # type: textblock
7862 #: ../src/guestfs-actions.pod:1983 ../fish/guestfish-actions.pod:1350
7863 msgid "Return the current search path."
7864 msgstr ""
7865
7866 # type: textblock
7867 #: ../src/guestfs-actions.pod:1985 ../fish/guestfish-actions.pod:1352
7868 msgid ""
7869 "This is always non-NULL.  If it wasn't set already, then this will return "
7870 "the default path."
7871 msgstr ""
7872
7873 # type: textblock
7874 #: ../src/guestfs-actions.pod:1988 ../src/guestfs-actions.pod:2017
7875 msgid ""
7876 "This function returns a string, or NULL on error.  The string is owned by "
7877 "the guest handle and must I<not> be freed."
7878 msgstr ""
7879
7880 # type: =head2
7881 #: ../src/guestfs-actions.pod:1993
7882 msgid "guestfs_get_pid"
7883 msgstr ""
7884
7885 # type: verbatim
7886 #: ../src/guestfs-actions.pod:1995
7887 #, no-wrap
7888 msgid ""
7889 " int\n"
7890 " guestfs_get_pid (guestfs_h *g);\n"
7891 "\n"
7892 msgstr ""
7893
7894 # type: textblock
7895 #: ../src/guestfs-actions.pod:1998 ../fish/guestfish-actions.pod:1361
7896 msgid ""
7897 "Return the process ID of the qemu subprocess.  If there is no qemu "
7898 "subprocess, then this will return an error."
7899 msgstr ""
7900
7901 # type: textblock
7902 #: ../src/guestfs-actions.pod:2001 ../fish/guestfish-actions.pod:1364
7903 msgid "This is an internal call used for debugging and testing."
7904 msgstr ""
7905
7906 # type: textblock
7907 #: ../src/guestfs-actions.pod:2005
7908 msgid "(Added in 1.0.56)"
7909 msgstr ""
7910
7911 # type: =head2
7912 #: ../src/guestfs-actions.pod:2007
7913 msgid "guestfs_get_qemu"
7914 msgstr ""
7915
7916 # type: verbatim
7917 #: ../src/guestfs-actions.pod:2009
7918 #, no-wrap
7919 msgid ""
7920 " const char *\n"
7921 " guestfs_get_qemu (guestfs_h *g);\n"
7922 "\n"
7923 msgstr ""
7924
7925 # type: textblock
7926 #: ../src/guestfs-actions.pod:2012 ../fish/guestfish-actions.pod:1370
7927 msgid "Return the current qemu binary."
7928 msgstr ""
7929
7930 # type: textblock
7931 #: ../src/guestfs-actions.pod:2014 ../fish/guestfish-actions.pod:1372
7932 msgid ""
7933 "This is always non-NULL.  If it wasn't set already, then this will return "
7934 "the default qemu binary name."
7935 msgstr ""
7936
7937 # type: textblock
7938 #: ../src/guestfs-actions.pod:2020 ../src/guestfs-actions.pod:5553
7939 msgid "(Added in 1.0.6)"
7940 msgstr ""
7941
7942 # type: =head2
7943 #: ../src/guestfs-actions.pod:2022
7944 msgid "guestfs_get_recovery_proc"
7945 msgstr ""
7946
7947 # type: verbatim
7948 #: ../src/guestfs-actions.pod:2024
7949 #, no-wrap
7950 msgid ""
7951 " int\n"
7952 " guestfs_get_recovery_proc (guestfs_h *g);\n"
7953 "\n"
7954 msgstr ""
7955
7956 # type: textblock
7957 #: ../src/guestfs-actions.pod:2027 ../fish/guestfish-actions.pod:1379
7958 msgid "Return the recovery process enabled flag."
7959 msgstr ""
7960
7961 # type: textblock
7962 #: ../src/guestfs-actions.pod:2031 ../src/guestfs-actions.pod:3219
7963 #: ../src/guestfs-actions.pod:3486 ../src/guestfs-actions.pod:3886
7964 #: ../src/guestfs-actions.pod:3918 ../src/guestfs-actions.pod:4857
7965 #: ../src/guestfs-actions.pod:5200 ../src/guestfs-actions.pod:5577
7966 #: ../src/guestfs-actions.pod:6236 ../src/guestfs-actions.pod:6256
7967 #: ../src/guestfs-actions.pod:6438
7968 msgid "(Added in 1.0.77)"
7969 msgstr ""
7970
7971 # type: =head2
7972 #: ../src/guestfs-actions.pod:2033
7973 msgid "guestfs_get_selinux"
7974 msgstr ""
7975
7976 # type: verbatim
7977 #: ../src/guestfs-actions.pod:2035
7978 #, no-wrap
7979 msgid ""
7980 " int\n"
7981 " guestfs_get_selinux (guestfs_h *g);\n"
7982 "\n"
7983 msgstr ""
7984
7985 # type: textblock
7986 #: ../src/guestfs-actions.pod:2038
7987 msgid ""
7988 "This returns the current setting of the selinux flag which is passed to the "
7989 "appliance at boot time.  See C<guestfs_set_selinux>."
7990 msgstr ""
7991
7992 # type: textblock
7993 #: ../src/guestfs-actions.pod:2046 ../src/guestfs-actions.pod:2109
7994 #: ../src/guestfs-actions.pod:5596 ../src/guestfs-actions.pod:5650
7995 msgid "(Added in 1.0.67)"
7996 msgstr ""
7997
7998 # type: =head2
7999 #: ../src/guestfs-actions.pod:2048
8000 msgid "guestfs_get_state"
8001 msgstr ""
8002
8003 # type: verbatim
8004 #: ../src/guestfs-actions.pod:2050
8005 #, no-wrap
8006 msgid ""
8007 " int\n"
8008 " guestfs_get_state (guestfs_h *g);\n"
8009 "\n"
8010 msgstr ""
8011
8012 # type: textblock
8013 #: ../src/guestfs-actions.pod:2053 ../fish/guestfish-actions.pod:1395
8014 msgid ""
8015 "This returns the current state as an opaque integer.  This is only useful "
8016 "for printing debug and internal error messages."
8017 msgstr ""
8018
8019 # type: textblock
8020 #: ../src/guestfs-actions.pod:2056 ../src/guestfs-actions.pod:3022
8021 #: ../src/guestfs-actions.pod:3051 ../src/guestfs-actions.pod:3112
8022 #: ../src/guestfs-actions.pod:3139 ../fish/guestfish-actions.pod:1398
8023 #: ../fish/guestfish-actions.pod:2113 ../fish/guestfish-actions.pod:2131
8024 #: ../fish/guestfish-actions.pod:2169 ../fish/guestfish-actions.pod:2185
8025 msgid "For more information on states, see L<guestfs(3)>."
8026 msgstr ""
8027
8028 # type: =head2
8029 #: ../src/guestfs-actions.pod:2062
8030 msgid "guestfs_get_trace"
8031 msgstr ""
8032
8033 # type: verbatim
8034 #: ../src/guestfs-actions.pod:2064
8035 #, no-wrap
8036 msgid ""
8037 " int\n"
8038 " guestfs_get_trace (guestfs_h *g);\n"
8039 "\n"
8040 msgstr ""
8041
8042 # type: textblock
8043 #: ../src/guestfs-actions.pod:2067 ../fish/guestfish-actions.pod:1404
8044 msgid "Return the command trace flag."
8045 msgstr ""
8046
8047 # type: =head2
8048 #: ../src/guestfs-actions.pod:2073
8049 msgid "guestfs_get_umask"
8050 msgstr ""
8051
8052 # type: verbatim
8053 #: ../src/guestfs-actions.pod:2075
8054 #, no-wrap
8055 msgid ""
8056 " int\n"
8057 " guestfs_get_umask (guestfs_h *g);\n"
8058 "\n"
8059 msgstr ""
8060
8061 # type: textblock
8062 #: ../src/guestfs-actions.pod:2078
8063 msgid ""
8064 "Return the current umask.  By default the umask is C<022> unless it has been "
8065 "set by calling C<guestfs_umask>."
8066 msgstr ""
8067
8068 # type: =head2
8069 #: ../src/guestfs-actions.pod:2085
8070 msgid "guestfs_get_verbose"
8071 msgstr ""
8072
8073 # type: verbatim
8074 #: ../src/guestfs-actions.pod:2087
8075 #, no-wrap
8076 msgid ""
8077 " int\n"
8078 " guestfs_get_verbose (guestfs_h *g);\n"
8079 "\n"
8080 msgstr ""
8081
8082 # type: textblock
8083 #: ../src/guestfs-actions.pod:2090 ../fish/guestfish-actions.pod:1417
8084 msgid "This returns the verbose messages flag."
8085 msgstr ""
8086
8087 # type: =head2
8088 #: ../src/guestfs-actions.pod:2096
8089 msgid "guestfs_getcon"
8090 msgstr ""
8091
8092 # type: verbatim
8093 #: ../src/guestfs-actions.pod:2098
8094 #, no-wrap
8095 msgid ""
8096 " char *\n"
8097 " guestfs_getcon (guestfs_h *g);\n"
8098 "\n"
8099 msgstr ""
8100
8101 # type: textblock
8102 #: ../src/guestfs-actions.pod:2101 ../fish/guestfish-actions.pod:1423
8103 msgid "This gets the SELinux security context of the daemon."
8104 msgstr ""
8105
8106 # type: textblock
8107 #: ../src/guestfs-actions.pod:2103
8108 msgid ""
8109 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
8110 msgstr ""
8111
8112 # type: =head2
8113 #: ../src/guestfs-actions.pod:2111
8114 msgid "guestfs_getxattrs"
8115 msgstr ""
8116
8117 # type: verbatim
8118 #: ../src/guestfs-actions.pod:2113
8119 #, no-wrap
8120 msgid ""
8121 " struct guestfs_xattr_list *\n"
8122 " guestfs_getxattrs (guestfs_h *g,\n"
8123 "                    const char *path);\n"
8124 "\n"
8125 msgstr ""
8126
8127 # type: textblock
8128 #: ../src/guestfs-actions.pod:2117 ../fish/guestfish-actions.pod:1432
8129 msgid ""
8130 "This call lists the extended attributes of the file or directory C<path>."
8131 msgstr ""
8132
8133 # type: textblock
8134 #: ../src/guestfs-actions.pod:2120 ../fish/guestfish-actions.pod:1435
8135 msgid ""
8136 "At the system call level, this is a combination of the L<listxattr(2)> and "
8137 "L<getxattr(2)> calls."
8138 msgstr ""
8139
8140 # type: textblock
8141 #: ../src/guestfs-actions.pod:2123
8142 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
8143 msgstr ""
8144
8145 # type: textblock
8146 #: ../src/guestfs-actions.pod:2125 ../src/guestfs-actions.pod:3231
8147 #: ../src/guestfs-actions.pod:3882
8148 msgid ""
8149 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
8150 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
8151 msgstr ""
8152
8153 # type: textblock
8154 #: ../src/guestfs-actions.pod:2129 ../src/guestfs-actions.pod:3235
8155 #: ../src/guestfs-actions.pod:3400 ../src/guestfs-actions.pod:3436
8156 #: ../src/guestfs-actions.pod:5230 ../src/guestfs-actions.pod:5669
8157 #: ../src/guestfs-actions.pod:6994
8158 msgid "(Added in 1.0.59)"
8159 msgstr ""
8160
8161 # type: =head2
8162 #: ../src/guestfs-actions.pod:2131
8163 msgid "guestfs_glob_expand"
8164 msgstr ""
8165
8166 # type: verbatim
8167 #: ../src/guestfs-actions.pod:2133
8168 #, no-wrap
8169 msgid ""
8170 " char **\n"
8171 " guestfs_glob_expand (guestfs_h *g,\n"
8172 "                      const char *pattern);\n"
8173 "\n"
8174 msgstr ""
8175
8176 # type: textblock
8177 #: ../src/guestfs-actions.pod:2137 ../fish/guestfish-actions.pod:1444
8178 msgid ""
8179 "This command searches for all the pathnames matching C<pattern> according to "
8180 "the wildcard expansion rules used by the shell."
8181 msgstr ""
8182
8183 # type: textblock
8184 #: ../src/guestfs-actions.pod:2141 ../fish/guestfish-actions.pod:1448
8185 msgid ""
8186 "If no paths match, then this returns an empty list (note: not an error)."
8187 msgstr ""
8188
8189 # type: textblock
8190 #: ../src/guestfs-actions.pod:2144 ../fish/guestfish-actions.pod:1451
8191 msgid ""
8192 "It is just a wrapper around the C L<glob(3)> function with flags C<GLOB_MARK|"
8193 "GLOB_BRACE>.  See that manual page for more details."
8194 msgstr ""
8195
8196 # type: textblock
8197 #: ../src/guestfs-actions.pod:2152 ../src/guestfs-actions.pod:5834
8198 #: ../src/guestfs-actions.pod:5851
8199 msgid "(Added in 1.0.50)"
8200 msgstr ""
8201
8202 # type: =head2
8203 #: ../src/guestfs-actions.pod:2154
8204 msgid "guestfs_grep"
8205 msgstr ""
8206
8207 # type: verbatim
8208 #: ../src/guestfs-actions.pod:2156
8209 #, no-wrap
8210 msgid ""
8211 " char **\n"
8212 " guestfs_grep (guestfs_h *g,\n"
8213 "               const char *regex,\n"
8214 "               const char *path);\n"
8215 "\n"
8216 msgstr ""
8217
8218 # type: textblock
8219 #: ../src/guestfs-actions.pod:2161 ../fish/guestfish-actions.pod:1459
8220 msgid "This calls the external C<grep> program and returns the matching lines."
8221 msgstr ""
8222
8223 # type: =head2
8224 #: ../src/guestfs-actions.pod:2173
8225 msgid "guestfs_grepi"
8226 msgstr ""
8227
8228 # type: verbatim
8229 #: ../src/guestfs-actions.pod:2175
8230 #, no-wrap
8231 msgid ""
8232 " char **\n"
8233 " guestfs_grepi (guestfs_h *g,\n"
8234 "                const char *regex,\n"
8235 "                const char *path);\n"
8236 "\n"
8237 msgstr ""
8238
8239 # type: textblock
8240 #: ../src/guestfs-actions.pod:2180 ../fish/guestfish-actions.pod:1469
8241 msgid ""
8242 "This calls the external C<grep -i> program and returns the matching lines."
8243 msgstr ""
8244
8245 # type: =head2
8246 #: ../src/guestfs-actions.pod:2192
8247 msgid "guestfs_grub_install"
8248 msgstr ""
8249
8250 # type: verbatim
8251 #: ../src/guestfs-actions.pod:2194
8252 #, no-wrap
8253 msgid ""
8254 " int\n"
8255 " guestfs_grub_install (guestfs_h *g,\n"
8256 "                       const char *root,\n"
8257 "                       const char *device);\n"
8258 "\n"
8259 msgstr ""
8260
8261 # type: textblock
8262 #: ../src/guestfs-actions.pod:2199 ../fish/guestfish-actions.pod:1479
8263 msgid ""
8264 "This command installs GRUB (the Grand Unified Bootloader) on C<device>, with "
8265 "the root directory being C<root>."
8266 msgstr ""
8267
8268 # type: textblock
8269 #: ../src/guestfs-actions.pod:2202 ../fish/guestfish-actions.pod:1482
8270 msgid ""
8271 "Note: If grub-install reports the error \"No suitable drive was found in the "
8272 "generated device map.\" it may be that you need to create a C</boot/grub/"
8273 "device.map> file first that contains the mapping between grub device names "
8274 "and Linux device names.  It is usually sufficient to create a file "
8275 "containing:"
8276 msgstr ""
8277
8278 # type: verbatim
8279 #: ../src/guestfs-actions.pod:2209 ../fish/guestfish-actions.pod:1489
8280 #, no-wrap
8281 msgid ""
8282 " (hd0) /dev/vda\n"
8283 "\n"
8284 msgstr ""
8285
8286 # type: textblock
8287 #: ../src/guestfs-actions.pod:2211 ../fish/guestfish-actions.pod:1491
8288 msgid "replacing C</dev/vda> with the name of the installation device."
8289 msgstr ""
8290
8291 # type: textblock
8292 #: ../src/guestfs-actions.pod:2215
8293 msgid "(Added in 1.0.17)"
8294 msgstr ""
8295
8296 # type: =head2
8297 #: ../src/guestfs-actions.pod:2217
8298 msgid "guestfs_head"
8299 msgstr ""
8300
8301 # type: verbatim
8302 #: ../src/guestfs-actions.pod:2219
8303 #, no-wrap
8304 msgid ""
8305 " char **\n"
8306 " guestfs_head (guestfs_h *g,\n"
8307 "               const char *path);\n"
8308 "\n"
8309 msgstr ""
8310
8311 # type: textblock
8312 #: ../src/guestfs-actions.pod:2223 ../fish/guestfish-actions.pod:1497
8313 msgid ""
8314 "This command returns up to the first 10 lines of a file as a list of strings."
8315 msgstr ""
8316
8317 # type: =head2
8318 #: ../src/guestfs-actions.pod:2235
8319 msgid "guestfs_head_n"
8320 msgstr ""
8321
8322 # type: verbatim
8323 #: ../src/guestfs-actions.pod:2237
8324 #, no-wrap
8325 msgid ""
8326 " char **\n"
8327 " guestfs_head_n (guestfs_h *g,\n"
8328 "                 int nrlines,\n"
8329 "                 const char *path);\n"
8330 "\n"
8331 msgstr ""
8332
8333 # type: textblock
8334 #: ../src/guestfs-actions.pod:2242 ../fish/guestfish-actions.pod:1507
8335 msgid ""
8336 "If the parameter C<nrlines> is a positive number, this returns the first "
8337 "C<nrlines> lines of the file C<path>."
8338 msgstr ""
8339
8340 # type: textblock
8341 #: ../src/guestfs-actions.pod:2245 ../fish/guestfish-actions.pod:1510
8342 msgid ""
8343 "If the parameter C<nrlines> is a negative number, this returns lines from "
8344 "the file C<path>, excluding the last C<nrlines> lines."
8345 msgstr ""
8346
8347 # type: textblock
8348 #: ../src/guestfs-actions.pod:2248 ../src/guestfs-actions.pod:6131
8349 #: ../fish/guestfish-actions.pod:1513 ../fish/guestfish-actions.pod:4113
8350 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
8351 msgstr ""
8352
8353 # type: =head2
8354 #: ../src/guestfs-actions.pod:2259
8355 msgid "guestfs_hexdump"
8356 msgstr ""
8357
8358 # type: verbatim
8359 #: ../src/guestfs-actions.pod:2261
8360 #, no-wrap
8361 msgid ""
8362 " char *\n"
8363 " guestfs_hexdump (guestfs_h *g,\n"
8364 "                  const char *path);\n"
8365 "\n"
8366 msgstr ""
8367
8368 # type: textblock
8369 #: ../src/guestfs-actions.pod:2265 ../fish/guestfish-actions.pod:1522
8370 msgid ""
8371 "This runs C<hexdump -C> on the given C<path>.  The result is the human-"
8372 "readable, canonical hex dump of the file."
8373 msgstr ""
8374
8375 # type: textblock
8376 #: ../src/guestfs-actions.pod:2274 ../src/guestfs-actions.pod:5915
8377 #: ../src/guestfs-actions.pod:5970
8378 msgid "(Added in 1.0.22)"
8379 msgstr ""
8380
8381 # type: =head2
8382 #: ../src/guestfs-actions.pod:2276
8383 msgid "guestfs_initrd_cat"
8384 msgstr ""
8385
8386 # type: verbatim
8387 #: ../src/guestfs-actions.pod:2278
8388 #, no-wrap
8389 msgid ""
8390 " char *\n"
8391 " guestfs_initrd_cat (guestfs_h *g,\n"
8392 "                     const char *initrdpath,\n"
8393 "                     const char *filename,\n"
8394 "                     size_t *size_r);\n"
8395 "\n"
8396 msgstr ""
8397
8398 # type: textblock
8399 #: ../src/guestfs-actions.pod:2284 ../fish/guestfish-actions.pod:1532
8400 msgid ""
8401 "This command unpacks the file C<filename> from the initrd file called "
8402 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
8403 "character."
8404 msgstr ""
8405
8406 # type: textblock
8407 #: ../src/guestfs-actions.pod:2288 ../fish/guestfish-actions.pod:1536
8408 msgid ""
8409 "For example, in guestfish you could use the following command to examine the "
8410 "boot script (usually called C</init>)  contained in a Linux initrd or "
8411 "initramfs image:"
8412 msgstr ""
8413
8414 # type: verbatim
8415 #: ../src/guestfs-actions.pod:2292 ../fish/guestfish-actions.pod:1540
8416 #, no-wrap
8417 msgid ""
8418 " initrd-cat /boot/initrd-<version>.img init\n"
8419 "\n"
8420 msgstr ""
8421
8422 # type: textblock
8423 #: ../src/guestfs-actions.pod:2294
8424 msgid "See also C<guestfs_initrd_list>."
8425 msgstr ""
8426
8427 # type: textblock
8428 #: ../src/guestfs-actions.pod:2296 ../src/guestfs-actions.pod:4850
8429 #: ../src/guestfs-actions.pod:4876 ../src/guestfs-actions.pod:5057
8430 msgid ""
8431 "This function returns a buffer, or NULL on error.  The size of the returned "
8432 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
8433 "after use>."
8434 msgstr ""
8435
8436 # type: =head2
8437 #: ../src/guestfs-actions.pod:2305
8438 msgid "guestfs_initrd_list"
8439 msgstr ""
8440
8441 # type: verbatim
8442 #: ../src/guestfs-actions.pod:2307
8443 #, no-wrap
8444 msgid ""
8445 " char **\n"
8446 " guestfs_initrd_list (guestfs_h *g,\n"
8447 "                      const char *path);\n"
8448 "\n"
8449 msgstr ""
8450
8451 # type: textblock
8452 #: ../src/guestfs-actions.pod:2311 ../fish/guestfish-actions.pod:1551
8453 msgid "This command lists out files contained in an initrd."
8454 msgstr ""
8455
8456 # type: textblock
8457 #: ../src/guestfs-actions.pod:2313 ../fish/guestfish-actions.pod:1553
8458 msgid ""
8459 "The files are listed without any initial C</> character.  The files are "
8460 "listed in the order they appear (not necessarily alphabetical).  Directory "
8461 "names are listed as separate items."
8462 msgstr ""
8463
8464 # type: textblock
8465 #: ../src/guestfs-actions.pod:2317 ../fish/guestfish-actions.pod:1557
8466 msgid ""
8467 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
8468 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
8469 "files)."
8470 msgstr ""
8471
8472 # type: =head2
8473 #: ../src/guestfs-actions.pod:2327
8474 msgid "guestfs_inotify_add_watch"
8475 msgstr ""
8476
8477 # type: verbatim
8478 #: ../src/guestfs-actions.pod:2329
8479 #, no-wrap
8480 msgid ""
8481 " int64_t\n"
8482 " guestfs_inotify_add_watch (guestfs_h *g,\n"
8483 "                            const char *path,\n"
8484 "                            int mask);\n"
8485 "\n"
8486 msgstr ""
8487
8488 # type: textblock
8489 #: ../src/guestfs-actions.pod:2334 ../fish/guestfish-actions.pod:1565
8490 msgid "Watch C<path> for the events listed in C<mask>."
8491 msgstr ""
8492
8493 # type: textblock
8494 #: ../src/guestfs-actions.pod:2336 ../fish/guestfish-actions.pod:1567
8495 msgid ""
8496 "Note that if C<path> is a directory then events within that directory are "
8497 "watched, but this does I<not> happen recursively (in subdirectories)."
8498 msgstr ""
8499
8500 # type: textblock
8501 #: ../src/guestfs-actions.pod:2340 ../fish/guestfish-actions.pod:1571
8502 msgid ""
8503 "Note for non-C or non-Linux callers: the inotify events are defined by the "
8504 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
8505 msgstr ""
8506
8507 # type: =head2
8508 #: ../src/guestfs-actions.pod:2348
8509 msgid "guestfs_inotify_close"
8510 msgstr ""
8511
8512 # type: verbatim
8513 #: ../src/guestfs-actions.pod:2350
8514 #, no-wrap
8515 msgid ""
8516 " int\n"
8517 " guestfs_inotify_close (guestfs_h *g);\n"
8518 "\n"
8519 msgstr ""
8520
8521 # type: textblock
8522 #: ../src/guestfs-actions.pod:2353 ../fish/guestfish-actions.pod:1579
8523 msgid ""
8524 "This closes the inotify handle which was previously opened by inotify_init.  "
8525 "It removes all watches, throws away any pending events, and deallocates all "
8526 "resources."
8527 msgstr ""
8528
8529 # type: =head2
8530 #: ../src/guestfs-actions.pod:2361
8531 msgid "guestfs_inotify_files"
8532 msgstr ""
8533
8534 # type: verbatim
8535 #: ../src/guestfs-actions.pod:2363
8536 #, no-wrap
8537 msgid ""
8538 " char **\n"
8539 " guestfs_inotify_files (guestfs_h *g);\n"
8540 "\n"
8541 msgstr ""
8542
8543 # type: textblock
8544 #: ../src/guestfs-actions.pod:2366
8545 msgid ""
8546 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
8547 "returns a list of pathnames of objects that were touched.  The returned "
8548 "pathnames are sorted and deduplicated."
8549 msgstr ""
8550
8551 # type: =head2
8552 #: ../src/guestfs-actions.pod:2376
8553 msgid "guestfs_inotify_init"
8554 msgstr ""
8555
8556 # type: verbatim
8557 #: ../src/guestfs-actions.pod:2378
8558 #, no-wrap
8559 msgid ""
8560 " int\n"
8561 " guestfs_inotify_init (guestfs_h *g,\n"
8562 "                       int maxevents);\n"
8563 "\n"
8564 msgstr ""
8565
8566 # type: textblock
8567 #: ../src/guestfs-actions.pod:2382 ../fish/guestfish-actions.pod:1595
8568 msgid ""
8569 "This command creates a new inotify handle.  The inotify subsystem can be "
8570 "used to notify events which happen to objects in the guest filesystem."
8571 msgstr ""
8572
8573 # type: textblock
8574 #: ../src/guestfs-actions.pod:2386
8575 msgid ""
8576 "C<maxevents> is the maximum number of events which will be queued up between "
8577 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
8578 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
8579 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
8580 "throws away events, but records the fact that it threw them away by setting "
8581 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
8582 "C<guestfs_inotify_read>)."
8583 msgstr ""
8584
8585 # type: textblock
8586 #: ../src/guestfs-actions.pod:2396
8587 msgid ""
8588 "Before any events are generated, you have to add some watches to the "
8589 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
8590 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
8591 msgstr ""
8592
8593 # type: textblock
8594 #: ../src/guestfs-actions.pod:2402
8595 msgid ""
8596 "Queued up events should be read periodically by calling "
8597 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
8598 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
8599 "often enough then you risk the internal queue overflowing."
8600 msgstr ""
8601
8602 # type: textblock
8603 #: ../src/guestfs-actions.pod:2409
8604 msgid ""
8605 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
8606 "This also removes any watches automatically."
8607 msgstr ""
8608
8609 # type: textblock
8610 #: ../src/guestfs-actions.pod:2413 ../fish/guestfish-actions.pod:1626
8611 msgid ""
8612 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
8613 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
8614 "that there is one global inotify handle per libguestfs instance."
8615 msgstr ""
8616
8617 # type: =head2
8618 #: ../src/guestfs-actions.pod:2422
8619 msgid "guestfs_inotify_read"
8620 msgstr ""
8621
8622 # type: verbatim
8623 #: ../src/guestfs-actions.pod:2424
8624 #, no-wrap
8625 msgid ""
8626 " struct guestfs_inotify_event_list *\n"
8627 " guestfs_inotify_read (guestfs_h *g);\n"
8628 "\n"
8629 msgstr ""
8630
8631 # type: textblock
8632 #: ../src/guestfs-actions.pod:2427 ../fish/guestfish-actions.pod:1635
8633 msgid ""
8634 "Return the complete queue of events that have happened since the previous "
8635 "read call."
8636 msgstr ""
8637
8638 # type: textblock
8639 #: ../src/guestfs-actions.pod:2430 ../fish/guestfish-actions.pod:1638
8640 msgid "If no events have happened, this returns an empty list."
8641 msgstr ""
8642
8643 # type: textblock
8644 #: ../src/guestfs-actions.pod:2432 ../fish/guestfish-actions.pod:1640
8645 msgid ""
8646 "I<Note>: In order to make sure that all events have been read, you must call "
8647 "this function repeatedly until it returns an empty list.  The reason is that "
8648 "the call will read events up to the maximum appliance-to-host message size "
8649 "and leave remaining events in the queue."
8650 msgstr ""
8651
8652 # type: textblock
8653 #: ../src/guestfs-actions.pod:2438
8654 msgid ""
8655 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
8656 "there was an error.  I<The caller must call "
8657 "C<guestfs_free_inotify_event_list> after use>."
8658 msgstr ""
8659
8660 # type: =head2
8661 #: ../src/guestfs-actions.pod:2444
8662 msgid "guestfs_inotify_rm_watch"
8663 msgstr ""
8664
8665 # type: verbatim
8666 #: ../src/guestfs-actions.pod:2446
8667 #, no-wrap
8668 msgid ""
8669 " int\n"
8670 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
8671 "                           int wd);\n"
8672 "\n"
8673 msgstr ""
8674
8675 # type: textblock
8676 #: ../src/guestfs-actions.pod:2450
8677 msgid ""
8678 "Remove a previously defined inotify watch.  See C<guestfs_inotify_add_watch>."
8679 msgstr ""
8680
8681 # type: =head2
8682 #: ../src/guestfs-actions.pod:2457
8683 msgid "guestfs_inspect_get_arch"
8684 msgstr ""
8685
8686 # type: verbatim
8687 #: ../src/guestfs-actions.pod:2459
8688 #, no-wrap
8689 msgid ""
8690 " char *\n"
8691 " guestfs_inspect_get_arch (guestfs_h *g,\n"
8692 "                           const char *root);\n"
8693 "\n"
8694 msgstr ""
8695
8696 # type: textblock
8697 #: ../src/guestfs-actions.pod:2463 ../src/guestfs-actions.pod:2486
8698 #: ../src/guestfs-actions.pod:2567 ../src/guestfs-actions.pod:2593
8699 #: ../src/guestfs-actions.pod:2613 ../src/guestfs-actions.pod:2640
8700 #: ../src/guestfs-actions.pod:2661 ../src/guestfs-actions.pod:2694
8701 #: ../src/guestfs-actions.pod:2721 ../src/guestfs-actions.pod:2750
8702 #: ../src/guestfs-actions.pod:2792 ../src/guestfs-actions.pod:2834
8703 #: ../src/guestfs-actions.pod:2857
8704 msgid ""
8705 "This function should only be called with a root device string as returned by "
8706 "C<guestfs_inspect_os>."
8707 msgstr ""
8708
8709 # type: textblock
8710 #: ../src/guestfs-actions.pod:2466
8711 msgid ""
8712 "This returns the architecture of the inspected operating system.  The "
8713 "possible return values are listed under C<guestfs_file_architecture>."
8714 msgstr ""
8715
8716 # type: textblock
8717 #: ../src/guestfs-actions.pod:2470 ../fish/guestfish-actions.pod:1664
8718 msgid ""
8719 "If the architecture could not be determined, then the string C<unknown> is "
8720 "returned."
8721 msgstr ""
8722
8723 # type: textblock
8724 #: ../src/guestfs-actions.pod:2473 ../src/guestfs-actions.pod:2554
8725 #: ../src/guestfs-actions.pod:2602 ../src/guestfs-actions.pod:2628
8726 #: ../src/guestfs-actions.pod:2710 ../src/guestfs-actions.pod:2739
8727 #: ../src/guestfs-actions.pod:2761 ../src/guestfs-actions.pod:2780
8728 #: ../src/guestfs-actions.pod:2821 ../src/guestfs-actions.pod:2844
8729 #: ../src/guestfs-actions.pod:2950 ../src/guestfs-actions.pod:2989
8730 #: ../fish/guestfish-actions.pod:1667 ../fish/guestfish-actions.pod:1741
8731 #: ../fish/guestfish-actions.pod:1774 ../fish/guestfish-actions.pod:1795
8732 #: ../fish/guestfish-actions.pod:1855 ../fish/guestfish-actions.pod:1879
8733 #: ../fish/guestfish-actions.pod:1896 ../fish/guestfish-actions.pod:1909
8734 #: ../fish/guestfish-actions.pod:1944 ../fish/guestfish-actions.pod:1960
8735 #: ../fish/guestfish-actions.pod:2059 ../fish/guestfish-actions.pod:2093
8736 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
8737 msgstr ""
8738
8739 # type: =head2
8740 #: ../src/guestfs-actions.pod:2480
8741 msgid "guestfs_inspect_get_distro"
8742 msgstr ""
8743
8744 # type: verbatim
8745 #: ../src/guestfs-actions.pod:2482
8746 #, no-wrap
8747 msgid ""
8748 " char *\n"
8749 " guestfs_inspect_get_distro (guestfs_h *g,\n"
8750 "                             const char *root);\n"
8751 "\n"
8752 msgstr ""
8753
8754 # type: textblock
8755 #: ../src/guestfs-actions.pod:2489 ../fish/guestfish-actions.pod:1676
8756 msgid ""
8757 "This returns the distro (distribution) of the inspected operating system."
8758 msgstr ""
8759
8760 # type: textblock
8761 #: ../src/guestfs-actions.pod:2492 ../fish/guestfish-actions.pod:1679
8762 msgid "Currently defined distros are:"
8763 msgstr ""
8764
8765 # type: =item
8766 #: ../src/guestfs-actions.pod:2496 ../fish/guestfish-actions.pod:1683
8767 msgid "\"archlinux\""
8768 msgstr ""
8769
8770 # type: textblock
8771 #: ../src/guestfs-actions.pod:2498 ../fish/guestfish-actions.pod:1685
8772 msgid "Arch Linux."
8773 msgstr ""
8774
8775 # type: =item
8776 #: ../src/guestfs-actions.pod:2500 ../fish/guestfish-actions.pod:1687
8777 msgid "\"debian\""
8778 msgstr ""
8779
8780 # type: textblock
8781 #: ../src/guestfs-actions.pod:2502 ../fish/guestfish-actions.pod:1689
8782 msgid "Debian."
8783 msgstr ""
8784
8785 # type: =item
8786 #: ../src/guestfs-actions.pod:2504 ../fish/guestfish-actions.pod:1691
8787 msgid "\"fedora\""
8788 msgstr ""
8789
8790 # type: textblock
8791 #: ../src/guestfs-actions.pod:2506 ../fish/guestfish-actions.pod:1693
8792 msgid "Fedora."
8793 msgstr ""
8794
8795 # type: =item
8796 #: ../src/guestfs-actions.pod:2508 ../fish/guestfish-actions.pod:1695
8797 msgid "\"gentoo\""
8798 msgstr ""
8799
8800 # type: textblock
8801 #: ../src/guestfs-actions.pod:2510 ../fish/guestfish-actions.pod:1697
8802 msgid "Gentoo."
8803 msgstr ""
8804
8805 # type: =item
8806 #: ../src/guestfs-actions.pod:2512 ../fish/guestfish-actions.pod:1699
8807 msgid "\"linuxmint\""
8808 msgstr ""
8809
8810 # type: textblock
8811 #: ../src/guestfs-actions.pod:2514 ../fish/guestfish-actions.pod:1701
8812 msgid "Linux Mint."
8813 msgstr ""
8814
8815 # type: =item
8816 #: ../src/guestfs-actions.pod:2516 ../fish/guestfish-actions.pod:1703
8817 msgid "\"mandriva\""
8818 msgstr ""
8819
8820 # type: textblock
8821 #: ../src/guestfs-actions.pod:2518 ../fish/guestfish-actions.pod:1705
8822 msgid "Mandriva."
8823 msgstr ""
8824
8825 # type: =item
8826 #: ../src/guestfs-actions.pod:2520 ../fish/guestfish-actions.pod:1707
8827 msgid "\"meego\""
8828 msgstr ""
8829
8830 # type: textblock
8831 #: ../src/guestfs-actions.pod:2522 ../fish/guestfish-actions.pod:1709
8832 msgid "MeeGo."
8833 msgstr ""
8834
8835 # type: =item
8836 #: ../src/guestfs-actions.pod:2524 ../fish/guestfish-actions.pod:1711
8837 msgid "\"pardus\""
8838 msgstr ""
8839
8840 # type: textblock
8841 #: ../src/guestfs-actions.pod:2526 ../fish/guestfish-actions.pod:1713
8842 msgid "Pardus."
8843 msgstr ""
8844
8845 # type: =item
8846 #: ../src/guestfs-actions.pod:2528 ../fish/guestfish-actions.pod:1715
8847 msgid "\"redhat-based\""
8848 msgstr ""
8849
8850 # type: textblock
8851 #: ../src/guestfs-actions.pod:2530 ../fish/guestfish-actions.pod:1717
8852 msgid "Some Red Hat-derived distro."
8853 msgstr ""
8854
8855 # type: =item
8856 #: ../src/guestfs-actions.pod:2532 ../fish/guestfish-actions.pod:1719
8857 msgid "\"rhel\""
8858 msgstr ""
8859
8860 # type: textblock
8861 #: ../src/guestfs-actions.pod:2534 ../fish/guestfish-actions.pod:1721
8862 msgid "Red Hat Enterprise Linux and some derivatives."
8863 msgstr ""
8864
8865 # type: =item
8866 #: ../src/guestfs-actions.pod:2536 ../fish/guestfish-actions.pod:1723
8867 msgid "\"ubuntu\""
8868 msgstr ""
8869
8870 # type: textblock
8871 #: ../src/guestfs-actions.pod:2538 ../fish/guestfish-actions.pod:1725
8872 msgid "Ubuntu."
8873 msgstr ""
8874
8875 # type: =item
8876 #: ../src/guestfs-actions.pod:2540 ../src/guestfs-actions.pod:2812
8877 #: ../fish/guestfish-actions.pod:1727 ../fish/guestfish-actions.pod:1935
8878 msgid "\"unknown\""
8879 msgstr ""
8880
8881 # type: textblock
8882 #: ../src/guestfs-actions.pod:2542 ../fish/guestfish-actions.pod:1729
8883 msgid "The distro could not be determined."
8884 msgstr ""
8885
8886 # type: =item
8887 #: ../src/guestfs-actions.pod:2544 ../src/guestfs-actions.pod:2804
8888 #: ../fish/guestfish-actions.pod:1731 ../fish/guestfish-actions.pod:1927
8889 msgid "\"windows\""
8890 msgstr ""
8891
8892 # type: textblock
8893 #: ../src/guestfs-actions.pod:2546 ../fish/guestfish-actions.pod:1733
8894 msgid ""
8895 "Windows does not have distributions.  This string is returned if the OS type "
8896 "is Windows."
8897 msgstr ""
8898
8899 # type: textblock
8900 #: ../src/guestfs-actions.pod:2551 ../src/guestfs-actions.pod:2818
8901 #: ../fish/guestfish-actions.pod:1738 ../fish/guestfish-actions.pod:1941
8902 msgid ""
8903 "Future versions of libguestfs may return other strings here.  The caller "
8904 "should be prepared to handle any string."
8905 msgstr ""
8906
8907 # type: =head2
8908 #: ../src/guestfs-actions.pod:2561
8909 msgid "guestfs_inspect_get_filesystems"
8910 msgstr ""
8911
8912 # type: verbatim
8913 #: ../src/guestfs-actions.pod:2563
8914 #, no-wrap
8915 msgid ""
8916 " char **\n"
8917 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
8918 "                                  const char *root);\n"
8919 "\n"
8920 msgstr ""
8921
8922 # type: textblock
8923 #: ../src/guestfs-actions.pod:2570 ../fish/guestfish-actions.pod:1750
8924 msgid ""
8925 "This returns a list of all the filesystems that we think are associated with "
8926 "this operating system.  This includes the root filesystem, other ordinary "
8927 "filesystems, and non-mounted devices like swap partitions."
8928 msgstr ""
8929
8930 # type: textblock
8931 #: ../src/guestfs-actions.pod:2575 ../fish/guestfish-actions.pod:1755
8932 msgid ""
8933 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
8934 "to be shared between operating systems."
8935 msgstr ""
8936
8937 # type: textblock
8938 #: ../src/guestfs-actions.pod:2578
8939 msgid ""
8940 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
8941 "C<guestfs_inspect_get_mountpoints>."
8942 msgstr ""
8943
8944 # type: =head2
8945 #: ../src/guestfs-actions.pod:2587
8946 msgid "guestfs_inspect_get_hostname"
8947 msgstr ""
8948
8949 # type: verbatim
8950 #: ../src/guestfs-actions.pod:2589
8951 #, no-wrap
8952 msgid ""
8953 " char *\n"
8954 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
8955 "                               const char *root);\n"
8956 "\n"
8957 msgstr ""
8958
8959 # type: textblock
8960 #: ../src/guestfs-actions.pod:2596 ../fish/guestfish-actions.pod:1768
8961 msgid ""
8962 "This function returns the hostname of the operating system as found by "
8963 "inspection of the guest's configuration files."
8964 msgstr ""
8965
8966 # type: textblock
8967 #: ../src/guestfs-actions.pod:2599 ../fish/guestfish-actions.pod:1771
8968 msgid ""
8969 "If the hostname could not be determined, then the string C<unknown> is "
8970 "returned."
8971 msgstr ""
8972
8973 # type: =head2
8974 #: ../src/guestfs-actions.pod:2607
8975 msgid "guestfs_inspect_get_major_version"
8976 msgstr ""
8977
8978 # type: verbatim
8979 #: ../src/guestfs-actions.pod:2609
8980 #, no-wrap
8981 msgid ""
8982 " int\n"
8983 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
8984 "                                    const char *root);\n"
8985 "\n"
8986 msgstr ""
8987
8988 # type: textblock
8989 #: ../src/guestfs-actions.pod:2616 ../fish/guestfish-actions.pod:1783
8990 msgid ""
8991 "This returns the major version number of the inspected operating system."
8992 msgstr ""
8993
8994 # type: textblock
8995 #: ../src/guestfs-actions.pod:2619 ../fish/guestfish-actions.pod:1786
8996 msgid ""
8997 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
8998 "popular public names used by the operating system.  Notably the operating "
8999 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
9000 "1).  You can find out the real versions corresponding to releases of Windows "
9001 "by consulting Wikipedia or MSDN."
9002 msgstr ""
9003
9004 # type: textblock
9005 #: ../src/guestfs-actions.pod:2626 ../src/guestfs-actions.pod:2646
9006 #: ../fish/guestfish-actions.pod:1793 ../fish/guestfish-actions.pod:1807
9007 msgid "If the version could not be determined, then C<0> is returned."
9008 msgstr ""
9009
9010 # type: =head2
9011 #: ../src/guestfs-actions.pod:2634
9012 msgid "guestfs_inspect_get_minor_version"
9013 msgstr ""
9014
9015 # type: verbatim
9016 #: ../src/guestfs-actions.pod:2636
9017 #, no-wrap
9018 msgid ""
9019 " int\n"
9020 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
9021 "                                    const char *root);\n"
9022 "\n"
9023 msgstr ""
9024
9025 # type: textblock
9026 #: ../src/guestfs-actions.pod:2643 ../fish/guestfish-actions.pod:1804
9027 msgid ""
9028 "This returns the minor version number of the inspected operating system."
9029 msgstr ""
9030
9031 # type: textblock
9032 #: ../src/guestfs-actions.pod:2648
9033 msgid ""
9034 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
9035 "C<guestfs_inspect_get_major_version>."
9036 msgstr ""
9037
9038 # type: =head2
9039 #: ../src/guestfs-actions.pod:2655
9040 msgid "guestfs_inspect_get_mountpoints"
9041 msgstr ""
9042
9043 # type: verbatim
9044 #: ../src/guestfs-actions.pod:2657
9045 #, no-wrap
9046 msgid ""
9047 " char **\n"
9048 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
9049 "                                  const char *root);\n"
9050 "\n"
9051 msgstr ""
9052
9053 # type: textblock
9054 #: ../src/guestfs-actions.pod:2664 ../fish/guestfish-actions.pod:1819
9055 msgid ""
9056 "This returns a hash of where we think the filesystems associated with this "
9057 "operating system should be mounted.  Callers should note that this is at "
9058 "best an educated guess made by reading configuration files such as C</etc/"
9059 "fstab>."
9060 msgstr ""
9061
9062 # type: textblock
9063 #: ../src/guestfs-actions.pod:2669 ../fish/guestfish-actions.pod:1824
9064 msgid ""
9065 "Each element in the returned hashtable has a key which is the path of the "
9066 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
9067 "mounted there (eg. C</dev/sda1>)."
9068 msgstr ""
9069
9070 # type: textblock
9071 #: ../src/guestfs-actions.pod:2674 ../fish/guestfish-actions.pod:1829
9072 msgid ""
9073 "Non-mounted devices such as swap devices are I<not> returned in this list."
9074 msgstr ""
9075
9076 # type: textblock
9077 #: ../src/guestfs-actions.pod:2677
9078 msgid ""
9079 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
9080 "C<guestfs_inspect_get_filesystems>."
9081 msgstr ""
9082
9083 # type: textblock
9084 #: ../src/guestfs-actions.pod:2680 ../src/guestfs-actions.pod:3288
9085 #: ../src/guestfs-actions.pod:4416 ../src/guestfs-actions.pod:6272
9086 msgid ""
9087 "This function returns a NULL-terminated array of strings, or NULL if there "
9088 "was an error.  The array of strings will always have length C<2n+1>, where "
9089 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
9090 "caller must free the strings and the array after use>."
9091 msgstr ""
9092
9093 # type: =head2
9094 #: ../src/guestfs-actions.pod:2688
9095 msgid "guestfs_inspect_get_package_format"
9096 msgstr ""
9097
9098 # type: verbatim
9099 #: ../src/guestfs-actions.pod:2690
9100 #, no-wrap
9101 msgid ""
9102 " char *\n"
9103 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
9104 "                                     const char *root);\n"
9105 "\n"
9106 msgstr ""
9107
9108 # type: textblock
9109 #: ../src/guestfs-actions.pod:2697
9110 msgid ""
9111 "This function and C<guestfs_inspect_get_package_management> return the "
9112 "package format and package management tool used by the inspected operating "
9113 "system.  For example for Fedora these functions would return C<rpm> (package "
9114 "format) and C<yum> (package management)."
9115 msgstr ""
9116
9117 # type: textblock
9118 #: ../src/guestfs-actions.pod:2703 ../fish/guestfish-actions.pod:1848
9119 msgid ""
9120 "This returns the string C<unknown> if we could not determine the package "
9121 "format I<or> if the operating system does not have a real packaging system "
9122 "(eg. Windows)."
9123 msgstr ""
9124
9125 # type: textblock
9126 #: ../src/guestfs-actions.pod:2707 ../fish/guestfish-actions.pod:1852
9127 msgid ""
9128 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>.  "
9129 "Future versions of libguestfs may return other strings."
9130 msgstr ""
9131
9132 # type: =head2
9133 #: ../src/guestfs-actions.pod:2715
9134 msgid "guestfs_inspect_get_package_management"
9135 msgstr ""
9136
9137 # type: verbatim
9138 #: ../src/guestfs-actions.pod:2717
9139 #, no-wrap
9140 msgid ""
9141 " char *\n"
9142 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
9143 "                                         const char *root);\n"
9144 "\n"
9145 msgstr ""
9146
9147 # type: textblock
9148 #: ../src/guestfs-actions.pod:2724
9149 msgid ""
9150 "C<guestfs_inspect_get_package_format> and this function return the package "
9151 "format and package management tool used by the inspected operating system.  "
9152 "For example for Fedora these functions would return C<rpm> (package format) "
9153 "and C<yum> (package management)."
9154 msgstr ""
9155
9156 # type: textblock
9157 #: ../src/guestfs-actions.pod:2730 ../fish/guestfish-actions.pod:1870
9158 msgid ""
9159 "This returns the string C<unknown> if we could not determine the package "
9160 "management tool I<or> if the operating system does not have a real packaging "
9161 "system (eg. Windows)."
9162 msgstr ""
9163
9164 # type: textblock
9165 #: ../src/guestfs-actions.pod:2734 ../fish/guestfish-actions.pod:1874
9166 msgid ""
9167 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
9168 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>.  Future versions of "
9169 "libguestfs may return other strings."
9170 msgstr ""
9171
9172 # type: =head2
9173 #: ../src/guestfs-actions.pod:2744
9174 msgid "guestfs_inspect_get_product_name"
9175 msgstr ""
9176
9177 # type: verbatim
9178 #: ../src/guestfs-actions.pod:2746
9179 #, no-wrap
9180 msgid ""
9181 " char *\n"
9182 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
9183 "                                   const char *root);\n"
9184 "\n"
9185 msgstr ""
9186
9187 # type: textblock
9188 #: ../src/guestfs-actions.pod:2753 ../fish/guestfish-actions.pod:1888
9189 msgid ""
9190 "This returns the product name of the inspected operating system.  The "
9191 "product name is generally some freeform string which can be displayed to the "
9192 "user, but should not be parsed by programs."
9193 msgstr ""
9194
9195 # type: textblock
9196 #: ../src/guestfs-actions.pod:2758 ../fish/guestfish-actions.pod:1893
9197 msgid ""
9198 "If the product name could not be determined, then the string C<unknown> is "
9199 "returned."
9200 msgstr ""
9201
9202 # type: =head2
9203 #: ../src/guestfs-actions.pod:2768
9204 msgid "guestfs_inspect_get_roots"
9205 msgstr ""
9206
9207 # type: verbatim
9208 #: ../src/guestfs-actions.pod:2770
9209 #, no-wrap
9210 msgid ""
9211 " char **\n"
9212 " guestfs_inspect_get_roots (guestfs_h *g);\n"
9213 "\n"
9214 msgstr ""
9215
9216 # type: textblock
9217 #: ../src/guestfs-actions.pod:2773
9218 msgid ""
9219 "This function is a convenient way to get the list of root devices, as "
9220 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
9221 "the whole inspection process."
9222 msgstr ""
9223
9224 # type: textblock
9225 #: ../src/guestfs-actions.pod:2777
9226 msgid ""
9227 "This returns an empty list if either no root devices were found or the "
9228 "caller has not called C<guestfs_inspect_os>."
9229 msgstr ""
9230
9231 # type: =head2
9232 #: ../src/guestfs-actions.pod:2786
9233 msgid "guestfs_inspect_get_type"
9234 msgstr ""
9235
9236 # type: verbatim
9237 #: ../src/guestfs-actions.pod:2788
9238 #, no-wrap
9239 msgid ""
9240 " char *\n"
9241 " guestfs_inspect_get_type (guestfs_h *g,\n"
9242 "                           const char *root);\n"
9243 "\n"
9244 msgstr ""
9245
9246 # type: textblock
9247 #: ../src/guestfs-actions.pod:2795 ../fish/guestfish-actions.pod:1918
9248 msgid ""
9249 "This returns the type of the inspected operating system.  Currently defined "
9250 "types are:"
9251 msgstr ""
9252
9253 # type: =item
9254 #: ../src/guestfs-actions.pod:2800 ../fish/guestfish-actions.pod:1923
9255 msgid "\"linux\""
9256 msgstr ""
9257
9258 # type: textblock
9259 #: ../src/guestfs-actions.pod:2802 ../fish/guestfish-actions.pod:1925
9260 msgid "Any Linux-based operating system."
9261 msgstr ""
9262
9263 # type: textblock
9264 #: ../src/guestfs-actions.pod:2806 ../fish/guestfish-actions.pod:1929
9265 msgid "Any Microsoft Windows operating system."
9266 msgstr ""
9267
9268 # type: =item
9269 #: ../src/guestfs-actions.pod:2808 ../fish/guestfish-actions.pod:1931
9270 msgid "\"freebsd\""
9271 msgstr ""
9272
9273 # type: textblock
9274 #: ../src/guestfs-actions.pod:2810 ../fish/guestfish-actions.pod:1933
9275 msgid "FreeBSD."
9276 msgstr ""
9277
9278 # type: textblock
9279 #: ../src/guestfs-actions.pod:2814 ../fish/guestfish-actions.pod:1937
9280 msgid "The operating system type could not be determined."
9281 msgstr ""
9282
9283 # type: =head2
9284 #: ../src/guestfs-actions.pod:2828
9285 msgid "guestfs_inspect_get_windows_systemroot"
9286 msgstr ""
9287
9288 # type: verbatim
9289 #: ../src/guestfs-actions.pod:2830
9290 #, no-wrap
9291 msgid ""
9292 " char *\n"
9293 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
9294 "                                         const char *root);\n"
9295 "\n"
9296 msgstr ""
9297
9298 # type: textblock
9299 #: ../src/guestfs-actions.pod:2837 ../fish/guestfish-actions.pod:1953
9300 msgid ""
9301 "This returns the Windows systemroot of the inspected guest.  The systemroot "
9302 "is a directory path such as C</WINDOWS>."
9303 msgstr ""
9304
9305 # type: textblock
9306 #: ../src/guestfs-actions.pod:2840 ../fish/guestfish-actions.pod:1956
9307 msgid ""
9308 "This call assumes that the guest is Windows and that the systemroot could be "
9309 "determined by inspection.  If this is not the case then an error is returned."
9310 msgstr ""
9311
9312 # type: textblock
9313 #: ../src/guestfs-actions.pod:2849
9314 msgid "(Added in 1.5.25)"
9315 msgstr ""
9316
9317 # type: =head2
9318 #: ../src/guestfs-actions.pod:2851
9319 msgid "guestfs_inspect_list_applications"
9320 msgstr ""
9321
9322 # type: verbatim
9323 #: ../src/guestfs-actions.pod:2853
9324 #, no-wrap
9325 msgid ""
9326 " struct guestfs_application_list *\n"
9327 " guestfs_inspect_list_applications (guestfs_h *g,\n"
9328 "                                    const char *root);\n"
9329 "\n"
9330 msgstr ""
9331
9332 # type: textblock
9333 #: ../src/guestfs-actions.pod:2860 ../fish/guestfish-actions.pod:1969
9334 msgid "Return the list of applications installed in the operating system."
9335 msgstr ""
9336
9337 # type: textblock
9338 #: ../src/guestfs-actions.pod:2862
9339 msgid ""
9340 "I<Note:> This call works differently from other parts of the inspection "
9341 "API.  You have to call C<guestfs_inspect_os>, then "
9342 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
9343 "this.  Listing applications is a significantly more difficult operation "
9344 "which requires access to the full filesystem.  Also note that unlike the "
9345 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
9346 "the libguestfs handle, this call actually reads parts of the mounted "
9347 "filesystems during the call."
9348 msgstr ""
9349
9350 # type: textblock
9351 #: ../src/guestfs-actions.pod:2872 ../fish/guestfish-actions.pod:1981
9352 msgid ""
9353 "This returns an empty list if the inspection code was not able to determine "
9354 "the list of applications."
9355 msgstr ""
9356
9357 # type: textblock
9358 #: ../src/guestfs-actions.pod:2875 ../fish/guestfish-actions.pod:1984
9359 msgid "The application structure contains the following fields:"
9360 msgstr ""
9361
9362 # type: =item
9363 #: ../src/guestfs-actions.pod:2879 ../fish/guestfish-actions.pod:1988
9364 msgid "C<app_name>"
9365 msgstr ""
9366
9367 # type: textblock
9368 #: ../src/guestfs-actions.pod:2881 ../fish/guestfish-actions.pod:1990
9369 msgid ""
9370 "The name of the application.  For Red Hat-derived and Debian-derived Linux "
9371 "guests, this is the package name."
9372 msgstr ""
9373
9374 # type: =item
9375 #: ../src/guestfs-actions.pod:2884 ../fish/guestfish-actions.pod:1993
9376 msgid "C<app_display_name>"
9377 msgstr ""
9378
9379 # type: textblock
9380 #: ../src/guestfs-actions.pod:2886 ../fish/guestfish-actions.pod:1995
9381 msgid ""
9382 "The display name of the application, sometimes localized to the install "
9383 "language of the guest operating system."
9384 msgstr ""
9385
9386 # type: textblock
9387 #: ../src/guestfs-actions.pod:2889 ../fish/guestfish-actions.pod:1998
9388 msgid ""
9389 "If unavailable this is returned as an empty string C<\"\">.  Callers needing "
9390 "to display something can use C<app_name> instead."
9391 msgstr ""
9392
9393 # type: =item
9394 #: ../src/guestfs-actions.pod:2892 ../fish/guestfish-actions.pod:2001
9395 msgid "C<app_epoch>"
9396 msgstr ""
9397
9398 # type: textblock
9399 #: ../src/guestfs-actions.pod:2894 ../fish/guestfish-actions.pod:2003
9400 msgid ""
9401 "For package managers which use epochs, this contains the epoch of the "
9402 "package (an integer).  If unavailable, this is returned as C<0>."
9403 msgstr ""
9404
9405 # type: =item
9406 #: ../src/guestfs-actions.pod:2897 ../fish/guestfish-actions.pod:2006
9407 msgid "C<app_version>"
9408 msgstr ""
9409
9410 # type: textblock
9411 #: ../src/guestfs-actions.pod:2899 ../fish/guestfish-actions.pod:2008
9412 msgid ""
9413 "The version string of the application or package.  If unavailable this is "
9414 "returned as an empty string C<\"\">."
9415 msgstr ""
9416
9417 # type: =item
9418 #: ../src/guestfs-actions.pod:2902 ../fish/guestfish-actions.pod:2011
9419 msgid "C<app_release>"
9420 msgstr ""
9421
9422 # type: textblock
9423 #: ../src/guestfs-actions.pod:2904 ../fish/guestfish-actions.pod:2013
9424 msgid ""
9425 "The release string of the application or package, for package managers that "
9426 "use this.  If unavailable this is returned as an empty string C<\"\">."
9427 msgstr ""
9428
9429 # type: =item
9430 #: ../src/guestfs-actions.pod:2908 ../fish/guestfish-actions.pod:2017
9431 msgid "C<app_install_path>"
9432 msgstr ""
9433
9434 # type: textblock
9435 #: ../src/guestfs-actions.pod:2910 ../fish/guestfish-actions.pod:2019
9436 msgid ""
9437 "The installation path of the application (on operating systems such as "
9438 "Windows which use installation paths).  This path is in the format used by "
9439 "the guest operating system, it is not a libguestfs path."
9440 msgstr ""
9441
9442 # type: textblock
9443 #: ../src/guestfs-actions.pod:2915 ../fish/guestfish-actions.pod:2024
9444 msgid "If unavailable this is returned as an empty string C<\"\">."
9445 msgstr ""
9446
9447 # type: =item
9448 #: ../src/guestfs-actions.pod:2917 ../fish/guestfish-actions.pod:2026
9449 msgid "C<app_trans_path>"
9450 msgstr ""
9451
9452 # type: textblock
9453 #: ../src/guestfs-actions.pod:2919 ../fish/guestfish-actions.pod:2028
9454 msgid ""
9455 "The install path translated into a libguestfs path.  If unavailable this is "
9456 "returned as an empty string C<\"\">."
9457 msgstr ""
9458
9459 # type: =item
9460 #: ../src/guestfs-actions.pod:2922 ../fish/guestfish-actions.pod:2031
9461 msgid "C<app_publisher>"
9462 msgstr ""
9463
9464 # type: textblock
9465 #: ../src/guestfs-actions.pod:2924 ../fish/guestfish-actions.pod:2033
9466 msgid ""
9467 "The name of the publisher of the application, for package managers that use "
9468 "this.  If unavailable this is returned as an empty string C<\"\">."
9469 msgstr ""
9470
9471 # type: =item
9472 #: ../src/guestfs-actions.pod:2928 ../fish/guestfish-actions.pod:2037
9473 msgid "C<app_url>"
9474 msgstr ""
9475
9476 # type: textblock
9477 #: ../src/guestfs-actions.pod:2930 ../fish/guestfish-actions.pod:2039
9478 msgid ""
9479 "The URL (eg. upstream URL) of the application.  If unavailable this is "
9480 "returned as an empty string C<\"\">."
9481 msgstr ""
9482
9483 # type: =item
9484 #: ../src/guestfs-actions.pod:2933 ../fish/guestfish-actions.pod:2042
9485 msgid "C<app_source_package>"
9486 msgstr ""
9487
9488 # type: textblock
9489 #: ../src/guestfs-actions.pod:2935 ../fish/guestfish-actions.pod:2044
9490 msgid ""
9491 "For packaging systems which support this, the name of the source package.  "
9492 "If unavailable this is returned as an empty string C<\"\">."
9493 msgstr ""
9494
9495 # type: =item
9496 #: ../src/guestfs-actions.pod:2938 ../fish/guestfish-actions.pod:2047
9497 msgid "C<app_summary>"
9498 msgstr ""
9499
9500 # type: textblock
9501 #: ../src/guestfs-actions.pod:2940 ../fish/guestfish-actions.pod:2049
9502 msgid ""
9503 "A short (usually one line) description of the application or package.  If "
9504 "unavailable this is returned as an empty string C<\"\">."
9505 msgstr ""
9506
9507 # type: =item
9508 #: ../src/guestfs-actions.pod:2943 ../fish/guestfish-actions.pod:2052
9509 msgid "C<app_description>"
9510 msgstr ""
9511
9512 # type: textblock
9513 #: ../src/guestfs-actions.pod:2945 ../fish/guestfish-actions.pod:2054
9514 msgid ""
9515 "A longer description of the application or package.  If unavailable this is "
9516 "returned as an empty string C<\"\">."
9517 msgstr ""
9518
9519 # type: textblock
9520 #: ../src/guestfs-actions.pod:2952
9521 msgid ""
9522 "This function returns a C<struct guestfs_application_list *>, or NULL if "
9523 "there was an error.  I<The caller must call C<guestfs_free_application_list> "
9524 "after use>."
9525 msgstr ""
9526
9527 # type: =head2
9528 #: ../src/guestfs-actions.pod:2956
9529 msgid "guestfs_inspect_os"
9530 msgstr ""
9531
9532 # type: verbatim
9533 #: ../src/guestfs-actions.pod:2958
9534 #, no-wrap
9535 msgid ""
9536 " char **\n"
9537 " guestfs_inspect_os (guestfs_h *g);\n"
9538 "\n"
9539 msgstr ""
9540
9541 # type: textblock
9542 #: ../src/guestfs-actions.pod:2961 ../fish/guestfish-actions.pod:2065
9543 msgid ""
9544 "This function uses other libguestfs functions and certain heuristics to "
9545 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
9546 "for operating systems."
9547 msgstr ""
9548
9549 # type: textblock
9550 #: ../src/guestfs-actions.pod:2965 ../fish/guestfish-actions.pod:2069
9551 msgid "The list returned is empty if no operating systems were found."
9552 msgstr ""
9553
9554 # type: textblock
9555 #: ../src/guestfs-actions.pod:2967 ../fish/guestfish-actions.pod:2071
9556 msgid ""
9557 "If one operating system was found, then this returns a list with a single "
9558 "element, which is the name of the root filesystem of this operating system.  "
9559 "It is also possible for this function to return a list containing more than "
9560 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
9561 "element being the root filesystem of one of the operating systems."
9562 msgstr ""
9563
9564 # type: textblock
9565 #: ../src/guestfs-actions.pod:2974
9566 msgid ""
9567 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
9568 "functions in order to query further information about each operating system, "
9569 "such as the name and version."
9570 msgstr ""
9571
9572 # type: textblock
9573 #: ../src/guestfs-actions.pod:2979
9574 msgid ""
9575 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
9576 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
9577 "the contents.  This should be called with no disks currently mounted.  The "
9578 "function may also use Augeas, so any existing Augeas handle will be closed."
9579 msgstr ""
9580
9581 # type: textblock
9582 #: ../src/guestfs-actions.pod:2985 ../fish/guestfish-actions.pod:2089
9583 msgid ""
9584 "This function cannot decrypt encrypted disks.  The caller must do that first "
9585 "(supplying the necessary keys) if the disk is encrypted."
9586 msgstr ""
9587
9588 # type: textblock
9589 #: ../src/guestfs-actions.pod:2991 ../src/guestfs-actions.pod:3246
9590 #: ../src/guestfs-actions.pod:3308
9591 msgid "See also C<guestfs_list_filesystems>."
9592 msgstr ""
9593
9594 # type: =head2
9595 #: ../src/guestfs-actions.pod:2999
9596 msgid "guestfs_is_blockdev"
9597 msgstr ""
9598
9599 # type: verbatim
9600 #: ../src/guestfs-actions.pod:3001
9601 #, no-wrap
9602 msgid ""
9603 " int\n"
9604 " guestfs_is_blockdev (guestfs_h *g,\n"
9605 "                      const char *path);\n"
9606 "\n"
9607 msgstr ""
9608
9609 # type: textblock
9610 #: ../src/guestfs-actions.pod:3005 ../fish/guestfish-actions.pod:2101
9611 msgid ""
9612 "This returns C<true> if and only if there is a block device with the given "
9613 "C<path> name."
9614 msgstr ""
9615
9616 # type: textblock
9617 #: ../src/guestfs-actions.pod:3008 ../src/guestfs-actions.pod:3037
9618 #: ../src/guestfs-actions.pod:3067 ../src/guestfs-actions.pod:3082
9619 #: ../src/guestfs-actions.pod:3098 ../src/guestfs-actions.pod:3154
9620 #: ../src/guestfs-actions.pod:3169
9621 msgid "See also C<guestfs_stat>."
9622 msgstr ""
9623
9624 # type: textblock
9625 #: ../src/guestfs-actions.pod:3012 ../src/guestfs-actions.pod:3041
9626 #: ../src/guestfs-actions.pod:3086 ../src/guestfs-actions.pod:3158
9627 #: ../src/guestfs-actions.pod:3173
9628 msgid "(Added in 1.5.10)"
9629 msgstr ""
9630
9631 # type: =head2
9632 #: ../src/guestfs-actions.pod:3014
9633 msgid "guestfs_is_busy"
9634 msgstr ""
9635
9636 # type: verbatim
9637 #: ../src/guestfs-actions.pod:3016
9638 #, no-wrap
9639 msgid ""
9640 " int\n"
9641 " guestfs_is_busy (guestfs_h *g);\n"
9642 "\n"
9643 msgstr ""
9644
9645 # type: textblock
9646 #: ../src/guestfs-actions.pod:3019 ../fish/guestfish-actions.pod:2110
9647 msgid ""
9648 "This returns true iff this handle is busy processing a command (in the "
9649 "C<BUSY> state)."
9650 msgstr ""
9651
9652 # type: =head2
9653 #: ../src/guestfs-actions.pod:3028
9654 msgid "guestfs_is_chardev"
9655 msgstr ""
9656
9657 # type: verbatim
9658 #: ../src/guestfs-actions.pod:3030
9659 #, no-wrap
9660 msgid ""
9661 " int\n"
9662 " guestfs_is_chardev (guestfs_h *g,\n"
9663 "                     const char *path);\n"
9664 "\n"
9665 msgstr ""
9666
9667 # type: textblock
9668 #: ../src/guestfs-actions.pod:3034 ../fish/guestfish-actions.pod:2119
9669 msgid ""
9670 "This returns C<true> if and only if there is a character device with the "
9671 "given C<path> name."
9672 msgstr ""
9673
9674 # type: =head2
9675 #: ../src/guestfs-actions.pod:3043
9676 msgid "guestfs_is_config"
9677 msgstr ""
9678
9679 # type: verbatim
9680 #: ../src/guestfs-actions.pod:3045
9681 #, no-wrap
9682 msgid ""
9683 " int\n"
9684 " guestfs_is_config (guestfs_h *g);\n"
9685 "\n"
9686 msgstr ""
9687
9688 # type: textblock
9689 #: ../src/guestfs-actions.pod:3048 ../fish/guestfish-actions.pod:2128
9690 msgid ""
9691 "This returns true iff this handle is being configured (in the C<CONFIG> "
9692 "state)."
9693 msgstr ""
9694
9695 # type: =head2
9696 #: ../src/guestfs-actions.pod:3057
9697 msgid "guestfs_is_dir"
9698 msgstr ""
9699
9700 # type: verbatim
9701 #: ../src/guestfs-actions.pod:3059
9702 #, no-wrap
9703 msgid ""
9704 " int\n"
9705 " guestfs_is_dir (guestfs_h *g,\n"
9706 "                 const char *path);\n"
9707 "\n"
9708 msgstr ""
9709
9710 # type: textblock
9711 #: ../src/guestfs-actions.pod:3063 ../fish/guestfish-actions.pod:2137
9712 msgid ""
9713 "This returns C<true> if and only if there is a directory with the given "
9714 "C<path> name.  Note that it returns false for other objects like files."
9715 msgstr ""
9716
9717 # type: =head2
9718 #: ../src/guestfs-actions.pod:3073
9719 msgid "guestfs_is_fifo"
9720 msgstr ""
9721
9722 # type: verbatim
9723 #: ../src/guestfs-actions.pod:3075
9724 #, no-wrap
9725 msgid ""
9726 " int\n"
9727 " guestfs_is_fifo (guestfs_h *g,\n"
9728 "                  const char *path);\n"
9729 "\n"
9730 msgstr ""
9731
9732 # type: textblock
9733 #: ../src/guestfs-actions.pod:3079 ../fish/guestfish-actions.pod:2147
9734 msgid ""
9735 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
9736 "given C<path> name."
9737 msgstr ""
9738
9739 # type: =head2
9740 #: ../src/guestfs-actions.pod:3088
9741 msgid "guestfs_is_file"
9742 msgstr ""
9743
9744 # type: verbatim
9745 #: ../src/guestfs-actions.pod:3090
9746 #, no-wrap
9747 msgid ""
9748 " int\n"
9749 " guestfs_is_file (guestfs_h *g,\n"
9750 "                  const char *path);\n"
9751 "\n"
9752 msgstr ""
9753
9754 # type: textblock
9755 #: ../src/guestfs-actions.pod:3094 ../fish/guestfish-actions.pod:2156
9756 msgid ""
9757 "This returns C<true> if and only if there is a regular file with the given "
9758 "C<path> name.  Note that it returns false for other objects like directories."
9759 msgstr ""
9760
9761 # type: =head2
9762 #: ../src/guestfs-actions.pod:3104
9763 msgid "guestfs_is_launching"
9764 msgstr ""
9765
9766 # type: verbatim
9767 #: ../src/guestfs-actions.pod:3106
9768 #, no-wrap
9769 msgid ""
9770 " int\n"
9771 " guestfs_is_launching (guestfs_h *g);\n"
9772 "\n"
9773 msgstr ""
9774
9775 # type: textblock
9776 #: ../src/guestfs-actions.pod:3109 ../fish/guestfish-actions.pod:2166
9777 msgid ""
9778 "This returns true iff this handle is launching the subprocess (in the "
9779 "C<LAUNCHING> state)."
9780 msgstr ""
9781
9782 # type: =head2
9783 #: ../src/guestfs-actions.pod:3118
9784 msgid "guestfs_is_lv"
9785 msgstr ""
9786
9787 # type: verbatim
9788 #: ../src/guestfs-actions.pod:3120
9789 #, no-wrap
9790 msgid ""
9791 " int\n"
9792 " guestfs_is_lv (guestfs_h *g,\n"
9793 "                const char *device);\n"
9794 "\n"
9795 msgstr ""
9796
9797 # type: textblock
9798 #: ../src/guestfs-actions.pod:3124 ../fish/guestfish-actions.pod:2175
9799 msgid ""
9800 "This command tests whether C<device> is a logical volume, and returns true "
9801 "iff this is the case."
9802 msgstr ""
9803
9804 # type: =head2
9805 #: ../src/guestfs-actions.pod:3131
9806 msgid "guestfs_is_ready"
9807 msgstr ""
9808
9809 # type: verbatim
9810 #: ../src/guestfs-actions.pod:3133
9811 #, no-wrap
9812 msgid ""
9813 " int\n"
9814 " guestfs_is_ready (guestfs_h *g);\n"
9815 "\n"
9816 msgstr ""
9817
9818 # type: textblock
9819 #: ../src/guestfs-actions.pod:3136 ../fish/guestfish-actions.pod:2182
9820 msgid ""
9821 "This returns true iff this handle is ready to accept commands (in the "
9822 "C<READY> state)."
9823 msgstr ""
9824
9825 # type: =head2
9826 #: ../src/guestfs-actions.pod:3145
9827 msgid "guestfs_is_socket"
9828 msgstr ""
9829
9830 # type: verbatim
9831 #: ../src/guestfs-actions.pod:3147
9832 #, no-wrap
9833 msgid ""
9834 " int\n"
9835 " guestfs_is_socket (guestfs_h *g,\n"
9836 "                    const char *path);\n"
9837 "\n"
9838 msgstr ""
9839
9840 # type: textblock
9841 #: ../src/guestfs-actions.pod:3151 ../fish/guestfish-actions.pod:2191
9842 msgid ""
9843 "This returns C<true> if and only if there is a Unix domain socket with the "
9844 "given C<path> name."
9845 msgstr ""
9846
9847 # type: =head2
9848 #: ../src/guestfs-actions.pod:3160
9849 msgid "guestfs_is_symlink"
9850 msgstr ""
9851
9852 # type: verbatim
9853 #: ../src/guestfs-actions.pod:3162
9854 #, no-wrap
9855 msgid ""
9856 " int\n"
9857 " guestfs_is_symlink (guestfs_h *g,\n"
9858 "                     const char *path);\n"
9859 "\n"
9860 msgstr ""
9861
9862 # type: textblock
9863 #: ../src/guestfs-actions.pod:3166 ../fish/guestfish-actions.pod:2200
9864 msgid ""
9865 "This returns C<true> if and only if there is a symbolic link with the given "
9866 "C<path> name."
9867 msgstr ""
9868
9869 # type: =head2
9870 #: ../src/guestfs-actions.pod:3175
9871 msgid "guestfs_kill_subprocess"
9872 msgstr ""
9873
9874 # type: verbatim
9875 #: ../src/guestfs-actions.pod:3177
9876 #, no-wrap
9877 msgid ""
9878 " int\n"
9879 " guestfs_kill_subprocess (guestfs_h *g);\n"
9880 "\n"
9881 msgstr ""
9882
9883 # type: textblock
9884 #: ../src/guestfs-actions.pod:3180 ../fish/guestfish-actions.pod:2209
9885 msgid "This kills the qemu subprocess.  You should never need to call this."
9886 msgstr ""
9887
9888 # type: =head2
9889 #: ../src/guestfs-actions.pod:3186
9890 msgid "guestfs_launch"
9891 msgstr ""
9892
9893 # type: verbatim
9894 #: ../src/guestfs-actions.pod:3188
9895 #, no-wrap
9896 msgid ""
9897 " int\n"
9898 " guestfs_launch (guestfs_h *g);\n"
9899 "\n"
9900 msgstr ""
9901
9902 # type: textblock
9903 #: ../src/guestfs-actions.pod:3191 ../fish/guestfish-actions.pod:2217
9904 msgid ""
9905 "Internally libguestfs is implemented by running a virtual machine using "
9906 "L<qemu(1)>."
9907 msgstr ""
9908
9909 # type: textblock
9910 #: ../src/guestfs-actions.pod:3194 ../fish/guestfish-actions.pod:2220
9911 msgid ""
9912 "You should call this after configuring the handle (eg. adding drives) but "
9913 "before performing any actions."
9914 msgstr ""
9915
9916 # type: =head2
9917 #: ../src/guestfs-actions.pod:3201
9918 msgid "guestfs_lchown"
9919 msgstr ""
9920
9921 # type: verbatim
9922 #: ../src/guestfs-actions.pod:3203
9923 #, no-wrap
9924 msgid ""
9925 " int\n"
9926 " guestfs_lchown (guestfs_h *g,\n"
9927 "                 int owner,\n"
9928 "                 int group,\n"
9929 "                 const char *path);\n"
9930 "\n"
9931 msgstr ""
9932
9933 # type: textblock
9934 #: ../src/guestfs-actions.pod:3209
9935 msgid ""
9936 "Change the file owner to C<owner> and group to C<group>.  This is like "
9937 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
9938 "changed, not the target."
9939 msgstr ""
9940
9941 # type: =head2
9942 #: ../src/guestfs-actions.pod:3221
9943 msgid "guestfs_lgetxattrs"
9944 msgstr ""
9945
9946 # type: verbatim
9947 #: ../src/guestfs-actions.pod:3223
9948 #, no-wrap
9949 msgid ""
9950 " struct guestfs_xattr_list *\n"
9951 " guestfs_lgetxattrs (guestfs_h *g,\n"
9952 "                     const char *path);\n"
9953 "\n"
9954 msgstr ""
9955
9956 # type: textblock
9957 #: ../src/guestfs-actions.pod:3227
9958 msgid ""
9959 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
9960 "then it returns the extended attributes of the link itself."
9961 msgstr ""
9962
9963 # type: =head2
9964 #: ../src/guestfs-actions.pod:3237
9965 msgid "guestfs_list_devices"
9966 msgstr ""
9967
9968 # type: verbatim
9969 #: ../src/guestfs-actions.pod:3239
9970 #, no-wrap
9971 msgid ""
9972 " char **\n"
9973 " guestfs_list_devices (guestfs_h *g);\n"
9974 "\n"
9975 msgstr ""
9976
9977 # type: textblock
9978 #: ../src/guestfs-actions.pod:3242 ../fish/guestfish-actions.pod:2247
9979 msgid "List all the block devices."
9980 msgstr ""
9981
9982 # type: textblock
9983 #: ../src/guestfs-actions.pod:3244 ../fish/guestfish-actions.pod:2249
9984 msgid "The full block device names are returned, eg. C</dev/sda>."
9985 msgstr ""
9986
9987 # type: =head2
9988 #: ../src/guestfs-actions.pod:3254
9989 msgid "guestfs_list_filesystems"
9990 msgstr ""
9991
9992 # type: verbatim
9993 #: ../src/guestfs-actions.pod:3256
9994 #, no-wrap
9995 msgid ""
9996 " char **\n"
9997 " guestfs_list_filesystems (guestfs_h *g);\n"
9998 "\n"
9999 msgstr ""
10000
10001 # type: textblock
10002 #: ../src/guestfs-actions.pod:3259 ../fish/guestfish-actions.pod:2257
10003 msgid ""
10004 "This inspection command looks for filesystems on partitions, block devices "
10005 "and logical volumes, returning a list of devices containing filesystems and "
10006 "their type."
10007 msgstr ""
10008
10009 # type: textblock
10010 #: ../src/guestfs-actions.pod:3263 ../fish/guestfish-actions.pod:2261
10011 msgid ""
10012 "The return value is a hash, where the keys are the devices containing "
10013 "filesystems, and the values are the filesystem types.  For example:"
10014 msgstr ""
10015
10016 # type: verbatim
10017 #: ../src/guestfs-actions.pod:3267 ../fish/guestfish-actions.pod:2265
10018 #, no-wrap
10019 msgid ""
10020 " \"/dev/sda1\" => \"ntfs\"\n"
10021 " \"/dev/sda2\" => \"ext2\"\n"
10022 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
10023 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
10024 "\n"
10025 msgstr ""
10026
10027 # type: textblock
10028 #: ../src/guestfs-actions.pod:3272 ../fish/guestfish-actions.pod:2270
10029 msgid ""
10030 "The value can have the special value \"unknown\", meaning the content of the "
10031 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
10032 msgstr ""
10033
10034 # type: textblock
10035 #: ../src/guestfs-actions.pod:3276
10036 msgid ""
10037 "This command runs other libguestfs commands, which might include "
10038 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
10039 "soon after launch and only when nothing is mounted."
10040 msgstr ""
10041
10042 # type: textblock
10043 #: ../src/guestfs-actions.pod:3280
10044 msgid ""
10045 "Not all of the filesystems returned will be mountable.  In particular, swap "
10046 "partitions are returned in the list.  Also this command does not check that "
10047 "each filesystem found is valid and mountable, and some filesystems might be "
10048 "mountable but require special options.  Filesystems may not all belong to a "
10049 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
10050 msgstr ""
10051
10052 # type: textblock
10053 #: ../src/guestfs-actions.pod:3294 ../src/guestfs-actions.pod:4817
10054 msgid "(Added in 1.5.15)"
10055 msgstr ""
10056
10057 # type: =head2
10058 #: ../src/guestfs-actions.pod:3296
10059 msgid "guestfs_list_partitions"
10060 msgstr ""
10061
10062 # type: verbatim
10063 #: ../src/guestfs-actions.pod:3298
10064 #, no-wrap
10065 msgid ""
10066 " char **\n"
10067 " guestfs_list_partitions (guestfs_h *g);\n"
10068 "\n"
10069 msgstr ""
10070
10071 # type: textblock
10072 #: ../src/guestfs-actions.pod:3301 ../fish/guestfish-actions.pod:2290
10073 msgid "List all the partitions detected on all block devices."
10074 msgstr ""
10075
10076 # type: textblock
10077 #: ../src/guestfs-actions.pod:3303 ../fish/guestfish-actions.pod:2292
10078 msgid "The full partition device names are returned, eg. C</dev/sda1>"
10079 msgstr ""
10080
10081 # type: textblock
10082 #: ../src/guestfs-actions.pod:3305
10083 msgid ""
10084 "This does not return logical volumes.  For that you will need to call "
10085 "C<guestfs_lvs>."
10086 msgstr ""
10087
10088 # type: =head2
10089 #: ../src/guestfs-actions.pod:3316
10090 msgid "guestfs_ll"
10091 msgstr ""
10092
10093 # type: verbatim
10094 #: ../src/guestfs-actions.pod:3318
10095 #, no-wrap
10096 msgid ""
10097 " char *\n"
10098 " guestfs_ll (guestfs_h *g,\n"
10099 "             const char *directory);\n"
10100 "\n"
10101 msgstr ""
10102
10103 # type: textblock
10104 #: ../src/guestfs-actions.pod:3322 ../fish/guestfish-actions.pod:2303
10105 msgid ""
10106 "List the files in C<directory> (relative to the root directory, there is no "
10107 "cwd) in the format of 'ls -la'."
10108 msgstr ""
10109
10110 # type: textblock
10111 #: ../src/guestfs-actions.pod:3325 ../fish/guestfish-actions.pod:2306
10112 msgid ""
10113 "This command is mostly useful for interactive sessions.  It is I<not> "
10114 "intended that you try to parse the output string."
10115 msgstr ""
10116
10117 # type: =head2
10118 #: ../src/guestfs-actions.pod:3333
10119 msgid "guestfs_ln"
10120 msgstr ""
10121
10122 # type: verbatim
10123 #: ../src/guestfs-actions.pod:3335
10124 #, no-wrap
10125 msgid ""
10126 " int\n"
10127 " guestfs_ln (guestfs_h *g,\n"
10128 "             const char *target,\n"
10129 "             const char *linkname);\n"
10130 "\n"
10131 msgstr ""
10132
10133 # type: textblock
10134 #: ../src/guestfs-actions.pod:3340 ../fish/guestfish-actions.pod:2313
10135 msgid "This command creates a hard link using the C<ln> command."
10136 msgstr ""
10137
10138 # type: =head2
10139 #: ../src/guestfs-actions.pod:3346
10140 msgid "guestfs_ln_f"
10141 msgstr ""
10142
10143 # type: verbatim
10144 #: ../src/guestfs-actions.pod:3348
10145 #, no-wrap
10146 msgid ""
10147 " int\n"
10148 " guestfs_ln_f (guestfs_h *g,\n"
10149 "               const char *target,\n"
10150 "               const char *linkname);\n"
10151 "\n"
10152 msgstr ""
10153
10154 # type: textblock
10155 #: ../src/guestfs-actions.pod:3353 ../fish/guestfish-actions.pod:2319
10156 msgid ""
10157 "This command creates a hard link using the C<ln -f> command.  The C<-f> "
10158 "option removes the link (C<linkname>) if it exists already."
10159 msgstr ""
10160
10161 # type: =head2
10162 #: ../src/guestfs-actions.pod:3360
10163 msgid "guestfs_ln_s"
10164 msgstr ""
10165
10166 # type: verbatim
10167 #: ../src/guestfs-actions.pod:3362
10168 #, no-wrap
10169 msgid ""
10170 " int\n"
10171 " guestfs_ln_s (guestfs_h *g,\n"
10172 "               const char *target,\n"
10173 "               const char *linkname);\n"
10174 "\n"
10175 msgstr ""
10176
10177 # type: textblock
10178 #: ../src/guestfs-actions.pod:3367 ../fish/guestfish-actions.pod:2326
10179 msgid "This command creates a symbolic link using the C<ln -s> command."
10180 msgstr ""
10181
10182 # type: =head2
10183 #: ../src/guestfs-actions.pod:3373
10184 msgid "guestfs_ln_sf"
10185 msgstr ""
10186
10187 # type: verbatim
10188 #: ../src/guestfs-actions.pod:3375
10189 #, no-wrap
10190 msgid ""
10191 " int\n"
10192 " guestfs_ln_sf (guestfs_h *g,\n"
10193 "                const char *target,\n"
10194 "                const char *linkname);\n"
10195 "\n"
10196 msgstr ""
10197
10198 # type: textblock
10199 #: ../src/guestfs-actions.pod:3380 ../fish/guestfish-actions.pod:2332
10200 msgid ""
10201 "This command creates a symbolic link using the C<ln -sf> command, The C<-f> "
10202 "option removes the link (C<linkname>) if it exists already."
10203 msgstr ""
10204
10205 # type: =head2
10206 #: ../src/guestfs-actions.pod:3387
10207 msgid "guestfs_lremovexattr"
10208 msgstr ""
10209
10210 # type: verbatim
10211 #: ../src/guestfs-actions.pod:3389
10212 #, no-wrap
10213 msgid ""
10214 " int\n"
10215 " guestfs_lremovexattr (guestfs_h *g,\n"
10216 "                       const char *xattr,\n"
10217 "                       const char *path);\n"
10218 "\n"
10219 msgstr ""
10220
10221 # type: textblock
10222 #: ../src/guestfs-actions.pod:3394
10223 msgid ""
10224 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
10225 "link, then it removes an extended attribute of the link itself."
10226 msgstr ""
10227
10228 # type: =head2
10229 #: ../src/guestfs-actions.pod:3402
10230 msgid "guestfs_ls"
10231 msgstr ""
10232
10233 # type: verbatim
10234 #: ../src/guestfs-actions.pod:3404
10235 #, no-wrap
10236 msgid ""
10237 " char **\n"
10238 " guestfs_ls (guestfs_h *g,\n"
10239 "             const char *directory);\n"
10240 "\n"
10241 msgstr ""
10242
10243 # type: textblock
10244 #: ../src/guestfs-actions.pod:3408 ../fish/guestfish-actions.pod:2347
10245 msgid ""
10246 "List the files in C<directory> (relative to the root directory, there is no "
10247 "cwd).  The '.' and '..' entries are not returned, but hidden files are shown."
10248 msgstr ""
10249
10250 # type: textblock
10251 #: ../src/guestfs-actions.pod:3412
10252 msgid ""
10253 "This command is mostly useful for interactive sessions.  Programs should "
10254 "probably use C<guestfs_readdir> instead."
10255 msgstr ""
10256
10257 # type: =head2
10258 #: ../src/guestfs-actions.pod:3421
10259 msgid "guestfs_lsetxattr"
10260 msgstr ""
10261
10262 # type: verbatim
10263 #: ../src/guestfs-actions.pod:3423
10264 #, no-wrap
10265 msgid ""
10266 " int\n"
10267 " guestfs_lsetxattr (guestfs_h *g,\n"
10268 "                    const char *xattr,\n"
10269 "                    const char *val,\n"
10270 "                    int vallen,\n"
10271 "                    const char *path);\n"
10272 "\n"
10273 msgstr ""
10274
10275 # type: textblock
10276 #: ../src/guestfs-actions.pod:3430
10277 msgid ""
10278 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
10279 "then it sets an extended attribute of the link itself."
10280 msgstr ""
10281
10282 # type: =head2
10283 #: ../src/guestfs-actions.pod:3438
10284 msgid "guestfs_lstat"
10285 msgstr ""
10286
10287 # type: verbatim
10288 #: ../src/guestfs-actions.pod:3440
10289 #, no-wrap
10290 msgid ""
10291 " struct guestfs_stat *\n"
10292 " guestfs_lstat (guestfs_h *g,\n"
10293 "                const char *path);\n"
10294 "\n"
10295 msgstr ""
10296
10297 # type: textblock
10298 #: ../src/guestfs-actions.pod:3444 ../src/guestfs-actions.pod:5871
10299 #: ../fish/guestfish-actions.pod:2366 ../fish/guestfish-actions.pod:3948
10300 msgid "Returns file information for the given C<path>."
10301 msgstr ""
10302
10303 # type: textblock
10304 #: ../src/guestfs-actions.pod:3446
10305 msgid ""
10306 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
10307 "link, then the link is stat-ed, not the file it refers to."
10308 msgstr ""
10309
10310 # type: textblock
10311 #: ../src/guestfs-actions.pod:3450 ../fish/guestfish-actions.pod:2372
10312 msgid "This is the same as the C<lstat(2)> system call."
10313 msgstr ""
10314
10315 # type: textblock
10316 #: ../src/guestfs-actions.pod:3452 ../src/guestfs-actions.pod:5875
10317 msgid ""
10318 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
10319 "error.  I<The caller must call C<guestfs_free_stat> after use>."
10320 msgstr ""
10321
10322 # type: textblock
10323 #: ../src/guestfs-actions.pod:3456 ../src/guestfs-actions.pod:5879
10324 #: ../src/guestfs-actions.pod:5897 ../src/guestfs-actions.pod:6278
10325 msgid "(Added in 0.9.2)"
10326 msgstr ""
10327
10328 # type: =head2
10329 #: ../src/guestfs-actions.pod:3458
10330 msgid "guestfs_lstatlist"
10331 msgstr ""
10332
10333 # type: verbatim
10334 #: ../src/guestfs-actions.pod:3460
10335 #, no-wrap
10336 msgid ""
10337 " struct guestfs_stat_list *\n"
10338 " guestfs_lstatlist (guestfs_h *g,\n"
10339 "                    const char *path,\n"
10340 "                    char *const *names);\n"
10341 "\n"
10342 msgstr ""
10343
10344 # type: textblock
10345 #: ../src/guestfs-actions.pod:3465
10346 msgid ""
10347 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
10348 "files, where all files are in the directory C<path>.  C<names> is the list "
10349 "of files from this directory."
10350 msgstr ""
10351
10352 # type: textblock
10353 #: ../src/guestfs-actions.pod:3469 ../fish/guestfish-actions.pod:2382
10354 msgid ""
10355 "On return you get a list of stat structs, with a one-to-one correspondence "
10356 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
10357 "then the C<ino> field of that structure is set to C<-1>."
10358 msgstr ""
10359
10360 # type: textblock
10361 #: ../src/guestfs-actions.pod:3474
10362 msgid ""
10363 "This call is intended for programs that want to efficiently list a directory "
10364 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
10365 "for a similarly efficient call for getting extended attributes.  Very long "
10366 "directory listings might cause the protocol message size to be exceeded, "
10367 "causing this call to fail.  The caller must split up such requests into "
10368 "smaller groups of names."
10369 msgstr ""
10370
10371 # type: textblock
10372 #: ../src/guestfs-actions.pod:3482
10373 msgid ""
10374 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
10375 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
10376 msgstr ""
10377
10378 # type: =head2
10379 #: ../src/guestfs-actions.pod:3488
10380 msgid "guestfs_luks_add_key"
10381 msgstr ""
10382
10383 # type: verbatim
10384 #: ../src/guestfs-actions.pod:3490
10385 #, no-wrap
10386 msgid ""
10387 " int\n"
10388 " guestfs_luks_add_key (guestfs_h *g,\n"
10389 "                       const char *device,\n"
10390 "                       const char *key,\n"
10391 "                       const char *newkey,\n"
10392 "                       int keyslot);\n"
10393 "\n"
10394 msgstr ""
10395
10396 # type: textblock
10397 #: ../src/guestfs-actions.pod:3497 ../fish/guestfish-actions.pod:2399
10398 msgid ""
10399 "This command adds a new key on LUKS device C<device>.  C<key> is any "
10400 "existing key, and is used to access the device.  C<newkey> is the new key to "
10401 "add.  C<keyslot> is the key slot that will be replaced."
10402 msgstr ""
10403
10404 # type: textblock
10405 #: ../src/guestfs-actions.pod:3502
10406 msgid ""
10407 "Note that if C<keyslot> already contains a key, then this command will "
10408 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
10409 msgstr ""
10410
10411 # type: textblock
10412 #: ../src/guestfs-actions.pod:3508 ../src/guestfs-actions.pod:3548
10413 #: ../src/guestfs-actions.pod:3571 ../src/guestfs-actions.pod:3591
10414 #: ../src/guestfs-actions.pod:3623 ../src/guestfs-actions.pod:3642
10415 msgid ""
10416 "This function takes a key or passphrase parameter which could contain "
10417 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
10418 "information."
10419 msgstr ""
10420
10421 # type: textblock
10422 #: ../src/guestfs-actions.pod:3512 ../src/guestfs-actions.pod:3552
10423 #: ../src/guestfs-actions.pod:3575 ../src/guestfs-actions.pod:3595
10424 msgid "(Added in 1.5.2)"
10425 msgstr ""
10426
10427 # type: =head2
10428 #: ../src/guestfs-actions.pod:3514
10429 msgid "guestfs_luks_close"
10430 msgstr ""
10431
10432 # type: verbatim
10433 #: ../src/guestfs-actions.pod:3516
10434 #, no-wrap
10435 msgid ""
10436 " int\n"
10437 " guestfs_luks_close (guestfs_h *g,\n"
10438 "                     const char *device);\n"
10439 "\n"
10440 msgstr ""
10441
10442 # type: textblock
10443 #: ../src/guestfs-actions.pod:3520
10444 msgid ""
10445 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
10446 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
10447 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
10448 "underlying block device."
10449 msgstr ""
10450
10451 # type: textblock
10452 #: ../src/guestfs-actions.pod:3528 ../src/guestfs-actions.pod:3627
10453 #: ../src/guestfs-actions.pod:3646 ../src/guestfs-actions.pod:3696
10454 #: ../src/guestfs-actions.pod:3744
10455 msgid "(Added in 1.5.1)"
10456 msgstr ""
10457
10458 # type: =head2
10459 #: ../src/guestfs-actions.pod:3530
10460 msgid "guestfs_luks_format"
10461 msgstr ""
10462
10463 # type: verbatim
10464 #: ../src/guestfs-actions.pod:3532
10465 #, no-wrap
10466 msgid ""
10467 " int\n"
10468 " guestfs_luks_format (guestfs_h *g,\n"
10469 "                      const char *device,\n"
10470 "                      const char *key,\n"
10471 "                      int keyslot);\n"
10472 "\n"
10473 msgstr ""
10474
10475 # type: textblock
10476 #: ../src/guestfs-actions.pod:3538 ../fish/guestfish-actions.pod:2425
10477 msgid ""
10478 "This command erases existing data on C<device> and formats the device as a "
10479 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
10480 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
10481 msgstr ""
10482
10483 # type: textblock
10484 #: ../src/guestfs-actions.pod:3545 ../src/guestfs-actions.pod:3568
10485 #: ../src/guestfs-actions.pod:3708 ../src/guestfs-actions.pod:4568
10486 #: ../src/guestfs-actions.pod:5331 ../src/guestfs-actions.pod:5706
10487 #: ../src/guestfs-actions.pod:5729 ../src/guestfs-actions.pod:5755
10488 #: ../src/guestfs-actions.pod:6905 ../fish/guestfish-actions.pod:2433
10489 #: ../fish/guestfish-actions.pod:2446 ../fish/guestfish-actions.pod:2530
10490 #: ../fish/guestfish-actions.pod:3060 ../fish/guestfish-actions.pod:3567
10491 #: ../fish/guestfish-actions.pod:3847 ../fish/guestfish-actions.pod:3863
10492 #: ../fish/guestfish-actions.pod:3878 ../fish/guestfish-actions.pod:4593
10493 msgid ""
10494 "B<This command is dangerous.  Without careful use you can easily destroy all "
10495 "your data>."
10496 msgstr ""
10497
10498 # type: =head2
10499 #: ../src/guestfs-actions.pod:3554
10500 msgid "guestfs_luks_format_cipher"
10501 msgstr ""
10502
10503 # type: verbatim
10504 #: ../src/guestfs-actions.pod:3556
10505 #, no-wrap
10506 msgid ""
10507 " int\n"
10508 " guestfs_luks_format_cipher (guestfs_h *g,\n"
10509 "                             const char *device,\n"
10510 "                             const char *key,\n"
10511 "                             int keyslot,\n"
10512 "                             const char *cipher);\n"
10513 "\n"
10514 msgstr ""
10515
10516 # type: textblock
10517 #: ../src/guestfs-actions.pod:3563
10518 msgid ""
10519 "This command is the same as C<guestfs_luks_format> but it also allows you to "
10520 "set the C<cipher> used."
10521 msgstr ""
10522
10523 # type: =head2
10524 #: ../src/guestfs-actions.pod:3577
10525 msgid "guestfs_luks_kill_slot"
10526 msgstr ""
10527
10528 # type: verbatim
10529 #: ../src/guestfs-actions.pod:3579
10530 #, no-wrap
10531 msgid ""
10532 " int\n"
10533 " guestfs_luks_kill_slot (guestfs_h *g,\n"
10534 "                         const char *device,\n"
10535 "                         const char *key,\n"
10536 "                         int keyslot);\n"
10537 "\n"
10538 msgstr ""
10539
10540 # type: textblock
10541 #: ../src/guestfs-actions.pod:3585 ../fish/guestfish-actions.pod:2453
10542 msgid ""
10543 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
10544 "device C<device>.  C<key> must be one of the I<other> keys."
10545 msgstr ""
10546
10547 # type: =head2
10548 #: ../src/guestfs-actions.pod:3597
10549 msgid "guestfs_luks_open"
10550 msgstr ""
10551
10552 # type: verbatim
10553 #: ../src/guestfs-actions.pod:3599
10554 #, no-wrap
10555 msgid ""
10556 " int\n"
10557 " guestfs_luks_open (guestfs_h *g,\n"
10558 "                    const char *device,\n"
10559 "                    const char *key,\n"
10560 "                    const char *mapname);\n"
10561 "\n"
10562 msgstr ""
10563
10564 # type: textblock
10565 #: ../src/guestfs-actions.pod:3605 ../fish/guestfish-actions.pod:2464
10566 msgid ""
10567 "This command opens a block device which has been encrypted according to the "
10568 "Linux Unified Key Setup (LUKS) standard."
10569 msgstr ""
10570
10571 # type: textblock
10572 #: ../src/guestfs-actions.pod:3608 ../fish/guestfish-actions.pod:2467
10573 msgid "C<device> is the encrypted block device or partition."
10574 msgstr ""
10575
10576 # type: textblock
10577 #: ../src/guestfs-actions.pod:3610 ../fish/guestfish-actions.pod:2469
10578 msgid ""
10579 "The caller must supply one of the keys associated with the LUKS block "
10580 "device, in the C<key> parameter."
10581 msgstr ""
10582
10583 # type: textblock
10584 #: ../src/guestfs-actions.pod:3613 ../fish/guestfish-actions.pod:2472
10585 msgid ""
10586 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
10587 "writes to this block device are decrypted from and encrypted to the "
10588 "underlying C<device> respectively."
10589 msgstr ""
10590
10591 # type: textblock
10592 #: ../src/guestfs-actions.pod:3617
10593 msgid ""
10594 "If this block device contains LVM volume groups, then calling "
10595 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
10596 "visible."
10597 msgstr ""
10598
10599 # type: =head2
10600 #: ../src/guestfs-actions.pod:3629
10601 msgid "guestfs_luks_open_ro"
10602 msgstr ""
10603
10604 # type: verbatim
10605 #: ../src/guestfs-actions.pod:3631
10606 #, no-wrap
10607 msgid ""
10608 " int\n"
10609 " guestfs_luks_open_ro (guestfs_h *g,\n"
10610 "                       const char *device,\n"
10611 "                       const char *key,\n"
10612 "                       const char *mapname);\n"
10613 "\n"
10614 msgstr ""
10615
10616 # type: textblock
10617 #: ../src/guestfs-actions.pod:3637
10618 msgid ""
10619 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
10620 "created."
10621 msgstr ""
10622
10623 # type: =head2
10624 #: ../src/guestfs-actions.pod:3648
10625 msgid "guestfs_lvcreate"
10626 msgstr ""
10627
10628 # type: verbatim
10629 #: ../src/guestfs-actions.pod:3650
10630 #, no-wrap
10631 msgid ""
10632 " int\n"
10633 " guestfs_lvcreate (guestfs_h *g,\n"
10634 "                   const char *logvol,\n"
10635 "                   const char *volgroup,\n"
10636 "                   int mbytes);\n"
10637 "\n"
10638 msgstr ""
10639
10640 # type: textblock
10641 #: ../src/guestfs-actions.pod:3656 ../fish/guestfish-actions.pod:2497
10642 msgid ""
10643 "This creates an LVM logical volume called C<logvol> on the volume group "
10644 "C<volgroup>, with C<size> megabytes."
10645 msgstr ""
10646
10647 # type: =head2
10648 #: ../src/guestfs-actions.pod:3663
10649 msgid "guestfs_lvm_canonical_lv_name"
10650 msgstr ""
10651
10652 # type: verbatim
10653 #: ../src/guestfs-actions.pod:3665
10654 #, no-wrap
10655 msgid ""
10656 " char *\n"
10657 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
10658 "                                const char *lvname);\n"
10659 "\n"
10660 msgstr ""
10661
10662 # type: textblock
10663 #: ../src/guestfs-actions.pod:3669 ../fish/guestfish-actions.pod:2504
10664 msgid ""
10665 "This converts alternative naming schemes for LVs that you might find to the "
10666 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to C</dev/VG/"
10667 "LV>."
10668 msgstr ""
10669
10670 # type: textblock
10671 #: ../src/guestfs-actions.pod:3673 ../fish/guestfish-actions.pod:2508
10672 msgid ""
10673 "This command returns an error if the C<lvname> parameter does not refer to a "
10674 "logical volume."
10675 msgstr ""
10676
10677 # type: textblock
10678 #: ../src/guestfs-actions.pod:3676
10679 msgid "See also C<guestfs_is_lv>."
10680 msgstr ""
10681
10682 # type: textblock
10683 #: ../src/guestfs-actions.pod:3681
10684 msgid "(Added in 1.5.24)"
10685 msgstr ""
10686
10687 # type: =head2
10688 #: ../src/guestfs-actions.pod:3683
10689 msgid "guestfs_lvm_clear_filter"
10690 msgstr ""
10691
10692 # type: verbatim
10693 #: ../src/guestfs-actions.pod:3685
10694 #, no-wrap
10695 msgid ""
10696 " int\n"
10697 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
10698 "\n"
10699 msgstr ""
10700
10701 # type: textblock
10702 #: ../src/guestfs-actions.pod:3688
10703 msgid ""
10704 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
10705 "see every block device."
10706 msgstr ""
10707
10708 # type: textblock
10709 #: ../src/guestfs-actions.pod:3691 ../src/guestfs-actions.pod:3733
10710 #: ../fish/guestfish-actions.pod:2520 ../fish/guestfish-actions.pod:2551
10711 msgid ""
10712 "This command also clears the LVM cache and performs a volume group scan."
10713 msgstr ""
10714
10715 # type: =head2
10716 #: ../src/guestfs-actions.pod:3698
10717 msgid "guestfs_lvm_remove_all"
10718 msgstr ""
10719
10720 # type: verbatim
10721 #: ../src/guestfs-actions.pod:3700
10722 #, no-wrap
10723 msgid ""
10724 " int\n"
10725 " guestfs_lvm_remove_all (guestfs_h *g);\n"
10726 "\n"
10727 msgstr ""
10728
10729 # type: textblock
10730 #: ../src/guestfs-actions.pod:3703 ../fish/guestfish-actions.pod:2527
10731 msgid ""
10732 "This command removes all LVM logical volumes, volume groups and physical "
10733 "volumes."
10734 msgstr ""
10735
10736 # type: =head2
10737 #: ../src/guestfs-actions.pod:3713
10738 msgid "guestfs_lvm_set_filter"
10739 msgstr ""
10740
10741 # type: verbatim
10742 #: ../src/guestfs-actions.pod:3715
10743 #, no-wrap
10744 msgid ""
10745 " int\n"
10746 " guestfs_lvm_set_filter (guestfs_h *g,\n"
10747 "                         char *const *devices);\n"
10748 "\n"
10749 msgstr ""
10750
10751 # type: textblock
10752 #: ../src/guestfs-actions.pod:3719 ../fish/guestfish-actions.pod:2537
10753 msgid ""
10754 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
10755 "block devices in the list C<devices>, and will ignore all other attached "
10756 "block devices."
10757 msgstr ""
10758
10759 # type: textblock
10760 #: ../src/guestfs-actions.pod:3723 ../fish/guestfish-actions.pod:2541
10761 msgid ""
10762 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
10763 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
10764 "there are two types of duplication possible: either cloned PVs/VGs which "
10765 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
10766 "same name.  In normal operation you cannot create this situation, but you "
10767 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
10768 "inside the LVM metadata."
10769 msgstr ""
10770
10771 # type: textblock
10772 #: ../src/guestfs-actions.pod:3736 ../fish/guestfish-actions.pod:2554
10773 msgid "You can filter whole block devices or individual partitions."
10774 msgstr ""
10775
10776 # type: textblock
10777 #: ../src/guestfs-actions.pod:3738 ../fish/guestfish-actions.pod:2556
10778 msgid ""
10779 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
10780 "filesystem), even if you are not filtering out that VG."
10781 msgstr ""
10782
10783 # type: =head2
10784 #: ../src/guestfs-actions.pod:3746
10785 msgid "guestfs_lvremove"
10786 msgstr ""
10787
10788 # type: verbatim
10789 #: ../src/guestfs-actions.pod:3748
10790 #, no-wrap
10791 msgid ""
10792 " int\n"
10793 " guestfs_lvremove (guestfs_h *g,\n"
10794 "                   const char *device);\n"
10795 "\n"
10796 msgstr ""
10797
10798 # type: textblock
10799 #: ../src/guestfs-actions.pod:3752 ../fish/guestfish-actions.pod:2564
10800 msgid ""
10801 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
10802 "LV, such as C</dev/VG/LV>."
10803 msgstr ""
10804
10805 # type: textblock
10806 #: ../src/guestfs-actions.pod:3755 ../fish/guestfish-actions.pod:2567
10807 msgid ""
10808 "You can also remove all LVs in a volume group by specifying the VG name, C</"
10809 "dev/VG>."
10810 msgstr ""
10811
10812 # type: textblock
10813 #: ../src/guestfs-actions.pod:3760 ../src/guestfs-actions.pod:4914
10814 #: ../src/guestfs-actions.pod:6644
10815 msgid "(Added in 1.0.13)"
10816 msgstr ""
10817
10818 # type: =head2
10819 #: ../src/guestfs-actions.pod:3762
10820 msgid "guestfs_lvrename"
10821 msgstr ""
10822
10823 # type: verbatim
10824 #: ../src/guestfs-actions.pod:3764
10825 #, no-wrap
10826 msgid ""
10827 " int\n"
10828 " guestfs_lvrename (guestfs_h *g,\n"
10829 "                   const char *logvol,\n"
10830 "                   const char *newlogvol);\n"
10831 "\n"
10832 msgstr ""
10833
10834 # type: textblock
10835 #: ../src/guestfs-actions.pod:3769 ../fish/guestfish-actions.pod:2574
10836 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
10837 msgstr ""
10838
10839 # type: textblock
10840 #: ../src/guestfs-actions.pod:3773 ../src/guestfs-actions.pod:6657
10841 msgid "(Added in 1.0.83)"
10842 msgstr ""
10843
10844 # type: =head2
10845 #: ../src/guestfs-actions.pod:3775
10846 msgid "guestfs_lvresize"
10847 msgstr ""
10848
10849 # type: verbatim
10850 #: ../src/guestfs-actions.pod:3777
10851 #, no-wrap
10852 msgid ""
10853 " int\n"
10854 " guestfs_lvresize (guestfs_h *g,\n"
10855 "                   const char *device,\n"
10856 "                   int mbytes);\n"
10857 "\n"
10858 msgstr ""
10859
10860 # type: textblock
10861 #: ../src/guestfs-actions.pod:3782 ../fish/guestfish-actions.pod:2580
10862 msgid ""
10863 "This resizes (expands or shrinks) an existing LVM logical volume to "
10864 "C<mbytes>.  When reducing, data in the reduced part is lost."
10865 msgstr ""
10866
10867 # type: =head2
10868 #: ../src/guestfs-actions.pod:3790
10869 msgid "guestfs_lvresize_free"
10870 msgstr ""
10871
10872 # type: verbatim
10873 #: ../src/guestfs-actions.pod:3792
10874 #, no-wrap
10875 msgid ""
10876 " int\n"
10877 " guestfs_lvresize_free (guestfs_h *g,\n"
10878 "                        const char *lv,\n"
10879 "                        int percent);\n"
10880 "\n"
10881 msgstr ""
10882
10883 # type: textblock
10884 #: ../src/guestfs-actions.pod:3797 ../fish/guestfish-actions.pod:2588
10885 msgid ""
10886 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
10887 "remaining free space in the volume group.  Commonly you would call this with "
10888 "pc = 100 which expands the logical volume as much as possible, using all "
10889 "remaining free space in the volume group."
10890 msgstr ""
10891
10892 # type: textblock
10893 #: ../src/guestfs-actions.pod:3805
10894 msgid "(Added in 1.3.3)"
10895 msgstr ""
10896
10897 # type: =head2
10898 #: ../src/guestfs-actions.pod:3807
10899 msgid "guestfs_lvs"
10900 msgstr ""
10901
10902 # type: verbatim
10903 #: ../src/guestfs-actions.pod:3809
10904 #, no-wrap
10905 msgid ""
10906 " char **\n"
10907 " guestfs_lvs (guestfs_h *g);\n"
10908 "\n"
10909 msgstr ""
10910
10911 # type: textblock
10912 #: ../src/guestfs-actions.pod:3812 ../fish/guestfish-actions.pod:2598
10913 msgid ""
10914 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
10915 "(8)> command."
10916 msgstr ""
10917
10918 # type: textblock
10919 #: ../src/guestfs-actions.pod:3815 ../fish/guestfish-actions.pod:2601
10920 msgid ""
10921 "This returns a list of the logical volume device names (eg. C</dev/"
10922 "VolGroup00/LogVol00>)."
10923 msgstr ""
10924
10925 # type: textblock
10926 #: ../src/guestfs-actions.pod:3818
10927 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
10928 msgstr ""
10929
10930 # type: =head2
10931 #: ../src/guestfs-actions.pod:3826
10932 msgid "guestfs_lvs_full"
10933 msgstr ""
10934
10935 # type: verbatim
10936 #: ../src/guestfs-actions.pod:3828
10937 #, no-wrap
10938 msgid ""
10939 " struct guestfs_lvm_lv_list *\n"
10940 " guestfs_lvs_full (guestfs_h *g);\n"
10941 "\n"
10942 msgstr ""
10943
10944 # type: textblock
10945 #: ../src/guestfs-actions.pod:3831 ../fish/guestfish-actions.pod:2610
10946 msgid ""
10947 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
10948 "(8)> command.  The \"full\" version includes all fields."
10949 msgstr ""
10950
10951 # type: textblock
10952 #: ../src/guestfs-actions.pod:3834
10953 msgid ""
10954 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
10955 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after use>."
10956 msgstr ""
10957
10958 # type: =head2
10959 #: ../src/guestfs-actions.pod:3840
10960 msgid "guestfs_lvuuid"
10961 msgstr ""
10962
10963 # type: verbatim
10964 #: ../src/guestfs-actions.pod:3842
10965 #, no-wrap
10966 msgid ""
10967 " char *\n"
10968 " guestfs_lvuuid (guestfs_h *g,\n"
10969 "                 const char *device);\n"
10970 "\n"
10971 msgstr ""
10972
10973 # type: textblock
10974 #: ../src/guestfs-actions.pod:3846 ../fish/guestfish-actions.pod:2617
10975 msgid "This command returns the UUID of the LVM LV C<device>."
10976 msgstr ""
10977
10978 # type: =head2
10979 #: ../src/guestfs-actions.pod:3853
10980 msgid "guestfs_lxattrlist"
10981 msgstr ""
10982
10983 # type: verbatim
10984 #: ../src/guestfs-actions.pod:3855
10985 #, no-wrap
10986 msgid ""
10987 " struct guestfs_xattr_list *\n"
10988 " guestfs_lxattrlist (guestfs_h *g,\n"
10989 "                     const char *path,\n"
10990 "                     char *const *names);\n"
10991 "\n"
10992 msgstr ""
10993
10994 # type: textblock
10995 #: ../src/guestfs-actions.pod:3860 ../fish/guestfish-actions.pod:2623
10996 msgid ""
10997 "This call allows you to get the extended attributes of multiple files, where "
10998 "all files are in the directory C<path>.  C<names> is the list of files from "
10999 "this directory."
11000 msgstr ""
11001
11002 # type: textblock
11003 #: ../src/guestfs-actions.pod:3864 ../fish/guestfish-actions.pod:2627
11004 msgid ""
11005 "On return you get a flat list of xattr structs which must be interpreted "
11006 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
11007 "C<attrval> in this struct is zero-length to indicate there was an error "
11008 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
11009 "number (the number of following attributes for this file, which could be C<"
11010 "\"0\">).  Then after the first xattr struct are the zero or more attributes "
11011 "for the first named file.  This repeats for the second and subsequent files."
11012 msgstr ""
11013
11014 # type: textblock
11015 #: ../src/guestfs-actions.pod:3874
11016 msgid ""
11017 "This call is intended for programs that want to efficiently list a directory "
11018 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
11019 "a similarly efficient call for getting standard stats.  Very long directory "
11020 "listings might cause the protocol message size to be exceeded, causing this "
11021 "call to fail.  The caller must split up such requests into smaller groups of "
11022 "names."
11023 msgstr ""
11024
11025 # type: =head2
11026 #: ../src/guestfs-actions.pod:3888
11027 msgid "guestfs_mkdir"
11028 msgstr ""
11029
11030 # type: verbatim
11031 #: ../src/guestfs-actions.pod:3890
11032 #, no-wrap
11033 msgid ""
11034 " int\n"
11035 " guestfs_mkdir (guestfs_h *g,\n"
11036 "                const char *path);\n"
11037 "\n"
11038 msgstr ""
11039
11040 # type: textblock
11041 #: ../src/guestfs-actions.pod:3894 ../fish/guestfish-actions.pod:2649
11042 msgid "Create a directory named C<path>."
11043 msgstr ""
11044
11045 # type: =head2
11046 #: ../src/guestfs-actions.pod:3900
11047 msgid "guestfs_mkdir_mode"
11048 msgstr ""
11049
11050 # type: verbatim
11051 #: ../src/guestfs-actions.pod:3902
11052 #, no-wrap
11053 msgid ""
11054 " int\n"
11055 " guestfs_mkdir_mode (guestfs_h *g,\n"
11056 "                     const char *path,\n"
11057 "                     int mode);\n"
11058 "\n"
11059 msgstr ""
11060
11061 # type: textblock
11062 #: ../src/guestfs-actions.pod:3907 ../fish/guestfish-actions.pod:2655
11063 msgid ""
11064 "This command creates a directory, setting the initial permissions of the "
11065 "directory to C<mode>."
11066 msgstr ""
11067
11068 # type: textblock
11069 #: ../src/guestfs-actions.pod:3910 ../fish/guestfish-actions.pod:2658
11070 msgid ""
11071 "For common Linux filesystems, the actual mode which is set will be C<mode & "
11072 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
11073 "other ways."
11074 msgstr ""
11075
11076 # type: textblock
11077 #: ../src/guestfs-actions.pod:3914
11078 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
11079 msgstr ""
11080
11081 # type: =head2
11082 #: ../src/guestfs-actions.pod:3920
11083 msgid "guestfs_mkdir_p"
11084 msgstr ""
11085
11086 # type: verbatim
11087 #: ../src/guestfs-actions.pod:3922
11088 #, no-wrap
11089 msgid ""
11090 " int\n"
11091 " guestfs_mkdir_p (guestfs_h *g,\n"
11092 "                  const char *path);\n"
11093 "\n"
11094 msgstr ""
11095
11096 # type: textblock
11097 #: ../src/guestfs-actions.pod:3926 ../fish/guestfish-actions.pod:2668
11098 msgid ""
11099 "Create a directory named C<path>, creating any parent directories as "
11100 "necessary.  This is like the C<mkdir -p> shell command."
11101 msgstr ""
11102
11103 # type: =head2
11104 #: ../src/guestfs-actions.pod:3933
11105 msgid "guestfs_mkdtemp"
11106 msgstr ""
11107
11108 # type: verbatim
11109 #: ../src/guestfs-actions.pod:3935
11110 #, no-wrap
11111 msgid ""
11112 " char *\n"
11113 " guestfs_mkdtemp (guestfs_h *g,\n"
11114 "                  const char *template);\n"
11115 "\n"
11116 msgstr ""
11117
11118 # type: textblock
11119 #: ../src/guestfs-actions.pod:3939 ../fish/guestfish-actions.pod:2675
11120 msgid ""
11121 "This command creates a temporary directory.  The C<template> parameter "
11122 "should be a full pathname for the temporary directory name with the final "
11123 "six characters being \"XXXXXX\"."
11124 msgstr ""
11125
11126 # type: textblock
11127 #: ../src/guestfs-actions.pod:3944 ../fish/guestfish-actions.pod:2680
11128 msgid ""
11129 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
11130 "being suitable for Windows filesystems."
11131 msgstr ""
11132
11133 # type: textblock
11134 #: ../src/guestfs-actions.pod:3947 ../fish/guestfish-actions.pod:2683
11135 msgid "The name of the temporary directory that was created is returned."
11136 msgstr ""
11137
11138 # type: textblock
11139 #: ../src/guestfs-actions.pod:3950 ../fish/guestfish-actions.pod:2686
11140 msgid "The temporary directory is created with mode 0700 and is owned by root."
11141 msgstr ""
11142
11143 # type: textblock
11144 #: ../src/guestfs-actions.pod:3953 ../fish/guestfish-actions.pod:2689
11145 msgid ""
11146 "The caller is responsible for deleting the temporary directory and its "
11147 "contents after use."
11148 msgstr ""
11149
11150 # type: textblock
11151 #: ../src/guestfs-actions.pod:3956 ../fish/guestfish-actions.pod:2692
11152 msgid "See also: L<mkdtemp(3)>"
11153 msgstr ""
11154
11155 # type: =head2
11156 #: ../src/guestfs-actions.pod:3963
11157 msgid "guestfs_mke2fs_J"
11158 msgstr ""
11159
11160 # type: verbatim
11161 #: ../src/guestfs-actions.pod:3965
11162 #, no-wrap
11163 msgid ""
11164 " int\n"
11165 " guestfs_mke2fs_J (guestfs_h *g,\n"
11166 "                   const char *fstype,\n"
11167 "                   int blocksize,\n"
11168 "                   const char *device,\n"
11169 "                   const char *journal);\n"
11170 "\n"
11171 msgstr ""
11172
11173 # type: textblock
11174 #: ../src/guestfs-actions.pod:3972 ../fish/guestfish-actions.pod:2698
11175 msgid ""
11176 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11177 "C<journal>.  It is equivalent to the command:"
11178 msgstr ""
11179
11180 # type: verbatim
11181 #: ../src/guestfs-actions.pod:3976 ../fish/guestfish-actions.pod:2702
11182 #, no-wrap
11183 msgid ""
11184 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
11185 "\n"
11186 msgstr ""
11187
11188 # type: textblock
11189 #: ../src/guestfs-actions.pod:3978
11190 msgid "See also C<guestfs_mke2journal>."
11191 msgstr ""
11192
11193 # type: textblock
11194 #: ../src/guestfs-actions.pod:3982 ../src/guestfs-actions.pod:4000
11195 #: ../src/guestfs-actions.pod:4018 ../src/guestfs-actions.pod:4034
11196 #: ../src/guestfs-actions.pod:4048 ../src/guestfs-actions.pod:4062
11197 #: ../src/guestfs-actions.pod:4114 ../src/guestfs-actions.pod:4304
11198 msgid "(Added in 1.0.68)"
11199 msgstr ""
11200
11201 # type: =head2
11202 #: ../src/guestfs-actions.pod:3984
11203 msgid "guestfs_mke2fs_JL"
11204 msgstr ""
11205
11206 # type: verbatim
11207 #: ../src/guestfs-actions.pod:3986
11208 #, no-wrap
11209 msgid ""
11210 " int\n"
11211 " guestfs_mke2fs_JL (guestfs_h *g,\n"
11212 "                    const char *fstype,\n"
11213 "                    int blocksize,\n"
11214 "                    const char *device,\n"
11215 "                    const char *label);\n"
11216 "\n"
11217 msgstr ""
11218
11219 # type: textblock
11220 #: ../src/guestfs-actions.pod:3993 ../fish/guestfish-actions.pod:2710
11221 msgid ""
11222 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11223 "the journal labeled C<label>."
11224 msgstr ""
11225
11226 # type: textblock
11227 #: ../src/guestfs-actions.pod:3996
11228 msgid "See also C<guestfs_mke2journal_L>."
11229 msgstr ""
11230
11231 # type: =head2
11232 #: ../src/guestfs-actions.pod:4002
11233 msgid "guestfs_mke2fs_JU"
11234 msgstr ""
11235
11236 # type: verbatim
11237 #: ../src/guestfs-actions.pod:4004
11238 #, no-wrap
11239 msgid ""
11240 " int\n"
11241 " guestfs_mke2fs_JU (guestfs_h *g,\n"
11242 "                    const char *fstype,\n"
11243 "                    int blocksize,\n"
11244 "                    const char *device,\n"
11245 "                    const char *uuid);\n"
11246 "\n"
11247 msgstr ""
11248
11249 # type: textblock
11250 #: ../src/guestfs-actions.pod:4011 ../fish/guestfish-actions.pod:2719
11251 msgid ""
11252 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11253 "the journal with UUID C<uuid>."
11254 msgstr ""
11255
11256 # type: textblock
11257 #: ../src/guestfs-actions.pod:4014
11258 msgid "See also C<guestfs_mke2journal_U>."
11259 msgstr ""
11260
11261 # type: =head2
11262 #: ../src/guestfs-actions.pod:4020
11263 msgid "guestfs_mke2journal"
11264 msgstr ""
11265
11266 # type: verbatim
11267 #: ../src/guestfs-actions.pod:4022
11268 #, no-wrap
11269 msgid ""
11270 " int\n"
11271 " guestfs_mke2journal (guestfs_h *g,\n"
11272 "                      int blocksize,\n"
11273 "                      const char *device);\n"
11274 "\n"
11275 msgstr ""
11276
11277 # type: textblock
11278 #: ../src/guestfs-actions.pod:4027 ../fish/guestfish-actions.pod:2728
11279 msgid ""
11280 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
11281 "command:"
11282 msgstr ""
11283
11284 # type: verbatim
11285 #: ../src/guestfs-actions.pod:4030 ../fish/guestfish-actions.pod:2731
11286 #, no-wrap
11287 msgid ""
11288 " mke2fs -O journal_dev -b blocksize device\n"
11289 "\n"
11290 msgstr ""
11291
11292 # type: =head2
11293 #: ../src/guestfs-actions.pod:4036
11294 msgid "guestfs_mke2journal_L"
11295 msgstr ""
11296
11297 # type: verbatim
11298 #: ../src/guestfs-actions.pod:4038
11299 #, no-wrap
11300 msgid ""
11301 " int\n"
11302 " guestfs_mke2journal_L (guestfs_h *g,\n"
11303 "                        int blocksize,\n"
11304 "                        const char *label,\n"
11305 "                        const char *device);\n"
11306 "\n"
11307 msgstr ""
11308
11309 # type: textblock
11310 #: ../src/guestfs-actions.pod:4044 ../fish/guestfish-actions.pod:2737
11311 msgid "This creates an ext2 external journal on C<device> with label C<label>."
11312 msgstr ""
11313
11314 # type: =head2
11315 #: ../src/guestfs-actions.pod:4050
11316 msgid "guestfs_mke2journal_U"
11317 msgstr ""
11318
11319 # type: verbatim
11320 #: ../src/guestfs-actions.pod:4052
11321 #, no-wrap
11322 msgid ""
11323 " int\n"
11324 " guestfs_mke2journal_U (guestfs_h *g,\n"
11325 "                        int blocksize,\n"
11326 "                        const char *uuid,\n"
11327 "                        const char *device);\n"
11328 "\n"
11329 msgstr ""
11330
11331 # type: textblock
11332 #: ../src/guestfs-actions.pod:4058 ../fish/guestfish-actions.pod:2743
11333 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
11334 msgstr ""
11335
11336 # type: =head2
11337 #: ../src/guestfs-actions.pod:4064
11338 msgid "guestfs_mkfifo"
11339 msgstr ""
11340
11341 # type: verbatim
11342 #: ../src/guestfs-actions.pod:4066
11343 #, no-wrap
11344 msgid ""
11345 " int\n"
11346 " guestfs_mkfifo (guestfs_h *g,\n"
11347 "                 int mode,\n"
11348 "                 const char *path);\n"
11349 "\n"
11350 msgstr ""
11351
11352 # type: textblock
11353 #: ../src/guestfs-actions.pod:4071
11354 msgid ""
11355 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
11356 "is just a convenient wrapper around C<guestfs_mknod>."
11357 msgstr ""
11358
11359 # type: =head2
11360 #: ../src/guestfs-actions.pod:4081
11361 msgid "guestfs_mkfs"
11362 msgstr ""
11363
11364 # type: verbatim
11365 #: ../src/guestfs-actions.pod:4083
11366 #, no-wrap
11367 msgid ""
11368 " int\n"
11369 " guestfs_mkfs (guestfs_h *g,\n"
11370 "               const char *fstype,\n"
11371 "               const char *device);\n"
11372 "\n"
11373 msgstr ""
11374
11375 # type: textblock
11376 #: ../src/guestfs-actions.pod:4088 ../fish/guestfish-actions.pod:2759
11377 msgid ""
11378 "This creates a filesystem on C<device> (usually a partition or LVM logical "
11379 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
11380 msgstr ""
11381
11382 # type: =head2
11383 #: ../src/guestfs-actions.pod:4096
11384 msgid "guestfs_mkfs_b"
11385 msgstr ""
11386
11387 # type: verbatim
11388 #: ../src/guestfs-actions.pod:4098
11389 #, no-wrap
11390 msgid ""
11391 " int\n"
11392 " guestfs_mkfs_b (guestfs_h *g,\n"
11393 "                 const char *fstype,\n"
11394 "                 int blocksize,\n"
11395 "                 const char *device);\n"
11396 "\n"
11397 msgstr ""
11398
11399 # type: textblock
11400 #: ../src/guestfs-actions.pod:4104
11401 msgid ""
11402 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
11403 "block size of the resulting filesystem.  Supported block sizes depend on the "
11404 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
11405 msgstr ""
11406
11407 # type: textblock
11408 #: ../src/guestfs-actions.pod:4109 ../fish/guestfish-actions.pod:2772
11409 msgid ""
11410 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
11411 "cluster size."
11412 msgstr ""
11413
11414 # type: =head2
11415 #: ../src/guestfs-actions.pod:4116
11416 msgid "guestfs_mkmountpoint"
11417 msgstr ""
11418
11419 # type: verbatim
11420 #: ../src/guestfs-actions.pod:4118
11421 #, no-wrap
11422 msgid ""
11423 " int\n"
11424 " guestfs_mkmountpoint (guestfs_h *g,\n"
11425 "                       const char *exemptpath);\n"
11426 "\n"
11427 msgstr ""
11428
11429 # type: textblock
11430 #: ../src/guestfs-actions.pod:4122
11431 msgid ""
11432 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
11433 "that can be used to create extra mountpoints before mounting the first "
11434 "filesystem."
11435 msgstr ""
11436
11437 # type: textblock
11438 #: ../src/guestfs-actions.pod:4126 ../fish/guestfish-actions.pod:2783
11439 msgid ""
11440 "These calls are I<only> necessary in some very limited circumstances, mainly "
11441 "the case where you want to mount a mix of unrelated and/or read-only "
11442 "filesystems together."
11443 msgstr ""
11444
11445 # type: textblock
11446 #: ../src/guestfs-actions.pod:4130 ../fish/guestfish-actions.pod:2787
11447 msgid ""
11448 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
11449 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
11450 "inside that.  You can unpack this as follows in guestfish:"
11451 msgstr ""
11452
11453 # type: verbatim
11454 #: ../src/guestfs-actions.pod:4135 ../fish/guestfish-actions.pod:2792
11455 #, no-wrap
11456 msgid ""
11457 " add-ro Fedora-11-i686-Live.iso\n"
11458 " run\n"
11459 " mkmountpoint /cd\n"
11460 " mkmountpoint /sqsh\n"
11461 " mkmountpoint /ext3fs\n"
11462 " mount /dev/sda /cd\n"
11463 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
11464 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
11465 "\n"
11466 msgstr ""
11467
11468 # type: textblock
11469 #: ../src/guestfs-actions.pod:4144 ../fish/guestfish-actions.pod:2801
11470 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
11471 msgstr ""
11472
11473 # type: textblock
11474 #: ../src/guestfs-actions.pod:4146
11475 msgid ""
11476 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
11477 "may get unexpected errors if you try to mix these calls.  It is safest to "
11478 "manually unmount filesystems and remove mountpoints after use."
11479 msgstr ""
11480
11481 # type: textblock
11482 #: ../src/guestfs-actions.pod:4150
11483 msgid ""
11484 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
11485 "first, so for this to work for manual mountpoints, you must ensure that the "
11486 "innermost mountpoints have the longest pathnames, as in the example code "
11487 "above."
11488 msgstr ""
11489
11490 # type: textblock
11491 #: ../src/guestfs-actions.pod:4155 ../fish/guestfish-actions.pod:2812
11492 msgid ""
11493 "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
11494 msgstr ""
11495
11496 # type: textblock
11497 #: ../src/guestfs-actions.pod:4157
11498 msgid ""
11499 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
11500 "means that C<guestfs_umount_all> is called when the handle is closed which "
11501 "can also trigger these issues."
11502 msgstr ""
11503
11504 # type: textblock
11505 #: ../src/guestfs-actions.pod:4163 ../src/guestfs-actions.pod:4422
11506 #: ../src/guestfs-actions.pod:5315
11507 msgid "(Added in 1.0.62)"
11508 msgstr ""
11509
11510 # type: =head2
11511 #: ../src/guestfs-actions.pod:4165
11512 msgid "guestfs_mknod"
11513 msgstr ""
11514
11515 # type: verbatim
11516 #: ../src/guestfs-actions.pod:4167
11517 #, no-wrap
11518 msgid ""
11519 " int\n"
11520 " guestfs_mknod (guestfs_h *g,\n"
11521 "                int mode,\n"
11522 "                int devmajor,\n"
11523 "                int devminor,\n"
11524 "                const char *path);\n"
11525 "\n"
11526 msgstr ""
11527
11528 # type: textblock
11529 #: ../src/guestfs-actions.pod:4174 ../fish/guestfish-actions.pod:2822
11530 msgid ""
11531 "This call creates block or character special devices, or named pipes (FIFOs)."
11532 msgstr ""
11533
11534 # type: textblock
11535 #: ../src/guestfs-actions.pod:4177 ../fish/guestfish-actions.pod:2825
11536 msgid ""
11537 "The C<mode> parameter should be the mode, using the standard constants.  "
11538 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
11539 "used when creating block and character special devices."
11540 msgstr ""
11541
11542 # type: textblock
11543 #: ../src/guestfs-actions.pod:4182
11544 msgid ""
11545 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
11546 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
11547 "regular file).  These constants are available in the standard Linux header "
11548 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
11549 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
11550 "the appropriate constant for you."
11551 msgstr ""
11552
11553 # type: =head2
11554 #: ../src/guestfs-actions.pod:4196
11555 msgid "guestfs_mknod_b"
11556 msgstr ""
11557
11558 # type: verbatim
11559 #: ../src/guestfs-actions.pod:4198
11560 #, no-wrap
11561 msgid ""
11562 " int\n"
11563 " guestfs_mknod_b (guestfs_h *g,\n"
11564 "                  int mode,\n"
11565 "                  int devmajor,\n"
11566 "                  int devminor,\n"
11567 "                  const char *path);\n"
11568 "\n"
11569 msgstr ""
11570
11571 # type: textblock
11572 #: ../src/guestfs-actions.pod:4205
11573 msgid ""
11574 "This call creates a block device node called C<path> with mode C<mode> and "
11575 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
11576 "wrapper around C<guestfs_mknod>."
11577 msgstr ""
11578
11579 # type: =head2
11580 #: ../src/guestfs-actions.pod:4215
11581 msgid "guestfs_mknod_c"
11582 msgstr ""
11583
11584 # type: verbatim
11585 #: ../src/guestfs-actions.pod:4217
11586 #, no-wrap
11587 msgid ""
11588 " int\n"
11589 " guestfs_mknod_c (guestfs_h *g,\n"
11590 "                  int mode,\n"
11591 "                  int devmajor,\n"
11592 "                  int devminor,\n"
11593 "                  const char *path);\n"
11594 "\n"
11595 msgstr ""
11596
11597 # type: textblock
11598 #: ../src/guestfs-actions.pod:4224
11599 msgid ""
11600 "This call creates a char device node called C<path> with mode C<mode> and "
11601 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
11602 "wrapper around C<guestfs_mknod>."
11603 msgstr ""
11604
11605 # type: =head2
11606 #: ../src/guestfs-actions.pod:4234
11607 msgid "guestfs_mkswap"
11608 msgstr ""
11609
11610 # type: verbatim
11611 #: ../src/guestfs-actions.pod:4236
11612 #, no-wrap
11613 msgid ""
11614 " int\n"
11615 " guestfs_mkswap (guestfs_h *g,\n"
11616 "                 const char *device);\n"
11617 "\n"
11618 msgstr ""
11619
11620 # type: textblock
11621 #: ../src/guestfs-actions.pod:4240 ../fish/guestfish-actions.pod:2864
11622 msgid "Create a swap partition on C<device>."
11623 msgstr ""
11624
11625 # type: =head2
11626 #: ../src/guestfs-actions.pod:4246
11627 msgid "guestfs_mkswap_L"
11628 msgstr ""
11629
11630 # type: verbatim
11631 #: ../src/guestfs-actions.pod:4248
11632 #, no-wrap
11633 msgid ""
11634 " int\n"
11635 " guestfs_mkswap_L (guestfs_h *g,\n"
11636 "                   const char *label,\n"
11637 "                   const char *device);\n"
11638 "\n"
11639 msgstr ""
11640
11641 # type: textblock
11642 #: ../src/guestfs-actions.pod:4253 ../fish/guestfish-actions.pod:2870
11643 msgid "Create a swap partition on C<device> with label C<label>."
11644 msgstr ""
11645
11646 # type: textblock
11647 #: ../src/guestfs-actions.pod:4255 ../fish/guestfish-actions.pod:2872
11648 msgid ""
11649 "Note that you cannot attach a swap label to a block device (eg. C</dev/"
11650 "sda>), just to a partition.  This appears to be a limitation of the kernel "
11651 "or swap tools."
11652 msgstr ""
11653
11654 # type: =head2
11655 #: ../src/guestfs-actions.pod:4263
11656 msgid "guestfs_mkswap_U"
11657 msgstr ""
11658
11659 # type: verbatim
11660 #: ../src/guestfs-actions.pod:4265
11661 #, no-wrap
11662 msgid ""
11663 " int\n"
11664 " guestfs_mkswap_U (guestfs_h *g,\n"
11665 "                   const char *uuid,\n"
11666 "                   const char *device);\n"
11667 "\n"
11668 msgstr ""
11669
11670 # type: textblock
11671 #: ../src/guestfs-actions.pod:4270 ../fish/guestfish-actions.pod:2880
11672 msgid "Create a swap partition on C<device> with UUID C<uuid>."
11673 msgstr ""
11674
11675 # type: =head2
11676 #: ../src/guestfs-actions.pod:4276
11677 msgid "guestfs_mkswap_file"
11678 msgstr ""
11679
11680 # type: verbatim
11681 #: ../src/guestfs-actions.pod:4278
11682 #, no-wrap
11683 msgid ""
11684 " int\n"
11685 " guestfs_mkswap_file (guestfs_h *g,\n"
11686 "                      const char *path);\n"
11687 "\n"
11688 msgstr ""
11689
11690 # type: textblock
11691 #: ../src/guestfs-actions.pod:4282 ../fish/guestfish-actions.pod:2886
11692 msgid "Create a swap file."
11693 msgstr ""
11694
11695 # type: textblock
11696 #: ../src/guestfs-actions.pod:4284
11697 msgid ""
11698 "This command just writes a swap file signature to an existing file.  To "
11699 "create the file itself, use something like C<guestfs_fallocate>."
11700 msgstr ""
11701
11702 # type: =head2
11703 #: ../src/guestfs-actions.pod:4291
11704 msgid "guestfs_modprobe"
11705 msgstr ""
11706
11707 # type: verbatim
11708 #: ../src/guestfs-actions.pod:4293
11709 #, no-wrap
11710 msgid ""
11711 " int\n"
11712 " guestfs_modprobe (guestfs_h *g,\n"
11713 "                   const char *modulename);\n"
11714 "\n"
11715 msgstr ""
11716
11717 # type: textblock
11718 #: ../src/guestfs-actions.pod:4297 ../fish/guestfish-actions.pod:2895
11719 msgid "This loads a kernel module in the appliance."
11720 msgstr ""
11721
11722 # type: textblock
11723 #: ../src/guestfs-actions.pod:4299 ../fish/guestfish-actions.pod:2897
11724 msgid ""
11725 "The kernel module must have been whitelisted when libguestfs was built (see "
11726 "C<appliance/kmod.whitelist.in> in the source)."
11727 msgstr ""
11728
11729 # type: =head2
11730 #: ../src/guestfs-actions.pod:4306
11731 msgid "guestfs_mount"
11732 msgstr ""
11733
11734 # type: verbatim
11735 #: ../src/guestfs-actions.pod:4308
11736 #, no-wrap
11737 msgid ""
11738 " int\n"
11739 " guestfs_mount (guestfs_h *g,\n"
11740 "                const char *device,\n"
11741 "                const char *mountpoint);\n"
11742 "\n"
11743 msgstr ""
11744
11745 # type: textblock
11746 #: ../src/guestfs-actions.pod:4313 ../fish/guestfish-actions.pod:2904
11747 msgid ""
11748 "Mount a guest disk at a position in the filesystem.  Block devices are named "
11749 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
11750 "those block devices contain partitions, they will have the usual names (eg. "
11751 "C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
11752 msgstr ""
11753
11754 # type: textblock
11755 #: ../src/guestfs-actions.pod:4319 ../fish/guestfish-actions.pod:2910
11756 msgid ""
11757 "The rules are the same as for L<mount(2)>: A filesystem must first be "
11758 "mounted on C</> before others can be mounted.  Other filesystems can only be "
11759 "mounted on directories which already exist."
11760 msgstr ""
11761
11762 # type: textblock
11763 #: ../src/guestfs-actions.pod:4324 ../fish/guestfish-actions.pod:2915
11764 msgid ""
11765 "The mounted filesystem is writable, if we have sufficient permissions on the "
11766 "underlying device."
11767 msgstr ""
11768
11769 # type: textblock
11770 #: ../src/guestfs-actions.pod:4327
11771 msgid ""
11772 "B<Important note:> When you use this call, the filesystem options C<sync> "
11773 "and C<noatime> are set implicitly.  This was originally done because we "
11774 "thought it would improve reliability, but it turns out that I<-o sync> has a "
11775 "very large negative performance impact and negligible effect on "
11776 "reliability.  Therefore we recommend that you avoid using C<guestfs_mount> "
11777 "in any code that needs performance, and instead use C<guestfs_mount_options> "
11778 "(use an empty string for the first parameter if you don't want any options)."
11779 msgstr ""
11780
11781 # type: =head2
11782 #: ../src/guestfs-actions.pod:4341
11783 msgid "guestfs_mount_loop"
11784 msgstr ""
11785
11786 # type: verbatim
11787 #: ../src/guestfs-actions.pod:4343
11788 #, no-wrap
11789 msgid ""
11790 " int\n"
11791 " guestfs_mount_loop (guestfs_h *g,\n"
11792 "                     const char *file,\n"
11793 "                     const char *mountpoint);\n"
11794 "\n"
11795 msgstr ""
11796
11797 # type: textblock
11798 #: ../src/guestfs-actions.pod:4348 ../fish/guestfish-actions.pod:2932
11799 msgid ""
11800 "This command lets you mount C<file> (a filesystem image in a file) on a "
11801 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
11802 "mountpoint>."
11803 msgstr ""
11804
11805 # type: =head2
11806 #: ../src/guestfs-actions.pod:4356
11807 msgid "guestfs_mount_options"
11808 msgstr ""
11809
11810 # type: verbatim
11811 #: ../src/guestfs-actions.pod:4358
11812 #, no-wrap
11813 msgid ""
11814 " int\n"
11815 " guestfs_mount_options (guestfs_h *g,\n"
11816 "                        const char *options,\n"
11817 "                        const char *device,\n"
11818 "                        const char *mountpoint);\n"
11819 "\n"
11820 msgstr ""
11821
11822 # type: textblock
11823 #: ../src/guestfs-actions.pod:4364
11824 msgid ""
11825 "This is the same as the C<guestfs_mount> command, but it allows you to set "
11826 "the mount options as for the L<mount(8)> I<-o> flag."
11827 msgstr ""
11828
11829 # type: textblock
11830 #: ../src/guestfs-actions.pod:4368 ../fish/guestfish-actions.pod:2944
11831 msgid ""
11832 "If the C<options> parameter is an empty string, then no options are passed "
11833 "(all options default to whatever the filesystem uses)."
11834 msgstr ""
11835
11836 # type: textblock
11837 #: ../src/guestfs-actions.pod:4374 ../src/guestfs-actions.pod:4388
11838 #: ../src/guestfs-actions.pod:4405
11839 msgid "(Added in 1.0.10)"
11840 msgstr ""
11841
11842 # type: =head2
11843 #: ../src/guestfs-actions.pod:4376
11844 msgid "guestfs_mount_ro"
11845 msgstr ""
11846
11847 # type: verbatim
11848 #: ../src/guestfs-actions.pod:4378
11849 #, no-wrap
11850 msgid ""
11851 " int\n"
11852 " guestfs_mount_ro (guestfs_h *g,\n"
11853 "                   const char *device,\n"
11854 "                   const char *mountpoint);\n"
11855 "\n"
11856 msgstr ""
11857
11858 # type: textblock
11859 #: ../src/guestfs-actions.pod:4383
11860 msgid ""
11861 "This is the same as the C<guestfs_mount> command, but it mounts the "
11862 "filesystem with the read-only (I<-o ro>) flag."
11863 msgstr ""
11864
11865 # type: =head2
11866 #: ../src/guestfs-actions.pod:4390
11867 msgid "guestfs_mount_vfs"
11868 msgstr ""
11869
11870 # type: verbatim
11871 #: ../src/guestfs-actions.pod:4392
11872 #, no-wrap
11873 msgid ""
11874 " int\n"
11875 " guestfs_mount_vfs (guestfs_h *g,\n"
11876 "                    const char *options,\n"
11877 "                    const char *vfstype,\n"
11878 "                    const char *device,\n"
11879 "                    const char *mountpoint);\n"
11880 "\n"
11881 msgstr ""
11882
11883 # type: textblock
11884 #: ../src/guestfs-actions.pod:4399
11885 msgid ""
11886 "This is the same as the C<guestfs_mount> command, but it allows you to set "
11887 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
11888 "t> flags."
11889 msgstr ""
11890
11891 # type: =head2
11892 #: ../src/guestfs-actions.pod:4407
11893 msgid "guestfs_mountpoints"
11894 msgstr ""
11895
11896 # type: verbatim
11897 #: ../src/guestfs-actions.pod:4409
11898 #, no-wrap
11899 msgid ""
11900 " char **\n"
11901 " guestfs_mountpoints (guestfs_h *g);\n"
11902 "\n"
11903 msgstr ""
11904
11905 # type: textblock
11906 #: ../src/guestfs-actions.pod:4412
11907 msgid ""
11908 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
11909 "devices.  This one returns a hash table (map) of device name to directory "
11910 "where the device is mounted."
11911 msgstr ""
11912
11913 # type: =head2
11914 #: ../src/guestfs-actions.pod:4424
11915 msgid "guestfs_mounts"
11916 msgstr ""
11917
11918 # type: verbatim
11919 #: ../src/guestfs-actions.pod:4426
11920 #, no-wrap
11921 msgid ""
11922 " char **\n"
11923 " guestfs_mounts (guestfs_h *g);\n"
11924 "\n"
11925 msgstr ""
11926
11927 # type: textblock
11928 #: ../src/guestfs-actions.pod:4429 ../fish/guestfish-actions.pod:2975
11929 msgid ""
11930 "This returns the list of currently mounted filesystems.  It returns the list "
11931 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
11932 msgstr ""
11933
11934 # type: textblock
11935 #: ../src/guestfs-actions.pod:4432 ../fish/guestfish-actions.pod:2978
11936 msgid "Some internal mounts are not shown."
11937 msgstr ""
11938
11939 # type: textblock
11940 #: ../src/guestfs-actions.pod:4434
11941 msgid "See also: C<guestfs_mountpoints>"
11942 msgstr ""
11943
11944 # type: =head2
11945 #: ../src/guestfs-actions.pod:4442
11946 msgid "guestfs_mv"
11947 msgstr ""
11948
11949 # type: verbatim
11950 #: ../src/guestfs-actions.pod:4444
11951 #, no-wrap
11952 msgid ""
11953 " int\n"
11954 " guestfs_mv (guestfs_h *g,\n"
11955 "             const char *src,\n"
11956 "             const char *dest);\n"
11957 "\n"
11958 msgstr ""
11959
11960 # type: textblock
11961 #: ../src/guestfs-actions.pod:4449 ../fish/guestfish-actions.pod:2986
11962 msgid ""
11963 "This moves a file from C<src> to C<dest> where C<dest> is either a "
11964 "destination filename or destination directory."
11965 msgstr ""
11966
11967 # type: =head2
11968 #: ../src/guestfs-actions.pod:4456
11969 msgid "guestfs_ntfs_3g_probe"
11970 msgstr ""
11971
11972 # type: verbatim
11973 #: ../src/guestfs-actions.pod:4458
11974 #, no-wrap
11975 msgid ""
11976 " int\n"
11977 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
11978 "                        int rw,\n"
11979 "                        const char *device);\n"
11980 "\n"
11981 msgstr ""
11982
11983 # type: textblock
11984 #: ../src/guestfs-actions.pod:4463 ../fish/guestfish-actions.pod:2993
11985 msgid ""
11986 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
11987 "C<device> for mountability.  (Not all NTFS volumes can be mounted read-"
11988 "write, and some cannot be mounted at all)."
11989 msgstr ""
11990
11991 # type: textblock
11992 #: ../src/guestfs-actions.pod:4467 ../fish/guestfish-actions.pod:2997
11993 msgid ""
11994 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
11995 "can be mounted read-write.  Set it to false if you want to test if the "
11996 "volume can be mounted read-only."
11997 msgstr ""
11998
11999 # type: textblock
12000 #: ../src/guestfs-actions.pod:4471 ../fish/guestfish-actions.pod:3001
12001 msgid ""
12002 "The return value is an integer which C<0> if the operation would succeed, or "
12003 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
12004 msgstr ""
12005
12006 # type: textblock
12007 #: ../src/guestfs-actions.pod:4477
12008 msgid "(Added in 1.0.43)"
12009 msgstr ""
12010
12011 # type: =head2
12012 #: ../src/guestfs-actions.pod:4479
12013 msgid "guestfs_ntfsresize"
12014 msgstr ""
12015
12016 # type: verbatim
12017 #: ../src/guestfs-actions.pod:4481
12018 #, no-wrap
12019 msgid ""
12020 " int\n"
12021 " guestfs_ntfsresize (guestfs_h *g,\n"
12022 "                     const char *device);\n"
12023 "\n"
12024 msgstr ""
12025
12026 # type: textblock
12027 #: ../src/guestfs-actions.pod:4485 ../fish/guestfish-actions.pod:3009
12028 msgid ""
12029 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
12030 "size of the underlying device.  See also L<ntfsresize(8)>."
12031 msgstr ""
12032
12033 # type: =head2
12034 #: ../src/guestfs-actions.pod:4493
12035 msgid "guestfs_ntfsresize_size"
12036 msgstr ""
12037
12038 # type: verbatim
12039 #: ../src/guestfs-actions.pod:4495
12040 #, no-wrap
12041 msgid ""
12042 " int\n"
12043 " guestfs_ntfsresize_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:4500
12051 msgid ""
12052 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
12053 "to specify the new size (in bytes) explicitly."
12054 msgstr ""
12055
12056 # type: textblock
12057 #: ../src/guestfs-actions.pod:4505 ../src/guestfs-actions.pod:4941
12058 #: ../src/guestfs-actions.pod:5014 ../src/guestfs-actions.pod:5263
12059 msgid "(Added in 1.3.14)"
12060 msgstr ""
12061
12062 # type: =head2
12063 #: ../src/guestfs-actions.pod:4507
12064 msgid "guestfs_part_add"
12065 msgstr ""
12066
12067 # type: verbatim
12068 #: ../src/guestfs-actions.pod:4509
12069 #, no-wrap
12070 msgid ""
12071 " int\n"
12072 " guestfs_part_add (guestfs_h *g,\n"
12073 "                   const char *device,\n"
12074 "                   const char *prlogex,\n"
12075 "                   int64_t startsect,\n"
12076 "                   int64_t endsect);\n"
12077 "\n"
12078 msgstr ""
12079
12080 # type: textblock
12081 #: ../src/guestfs-actions.pod:4516
12082 msgid ""
12083 "This command adds a partition to C<device>.  If there is no partition table "
12084 "on the device, call C<guestfs_part_init> first."
12085 msgstr ""
12086
12087 # type: textblock
12088 #: ../src/guestfs-actions.pod:4519 ../fish/guestfish-actions.pod:3027
12089 msgid ""
12090 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
12091 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
12092 "C<logical>) and C<e> (or C<extended>) partition types."
12093 msgstr ""
12094
12095 # type: textblock
12096 #: ../src/guestfs-actions.pod:4524 ../fish/guestfish-actions.pod:3032
12097 msgid ""
12098 "C<startsect> and C<endsect> are the start and end of the partition in "
12099 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
12100 "from the end of the disk (C<-1> is the last sector)."
12101 msgstr ""
12102
12103 # type: textblock
12104 #: ../src/guestfs-actions.pod:4528
12105 msgid ""
12106 "Creating a partition which covers the whole disk is not so easy.  Use "
12107 "C<guestfs_part_disk> to do that."
12108 msgstr ""
12109
12110 # type: textblock
12111 #: ../src/guestfs-actions.pod:4533 ../src/guestfs-actions.pod:4571
12112 #: ../src/guestfs-actions.pod:4624 ../src/guestfs-actions.pod:4702
12113 #: ../src/guestfs-actions.pod:4740 ../src/guestfs-actions.pod:4759
12114 #: ../src/guestfs-actions.pod:4799
12115 msgid "(Added in 1.0.78)"
12116 msgstr ""
12117
12118 # type: =head2
12119 #: ../src/guestfs-actions.pod:4535
12120 msgid "guestfs_part_del"
12121 msgstr ""
12122
12123 # type: verbatim
12124 #: ../src/guestfs-actions.pod:4537
12125 #, no-wrap
12126 msgid ""
12127 " int\n"
12128 " guestfs_part_del (guestfs_h *g,\n"
12129 "                   const char *device,\n"
12130 "                   int partnum);\n"
12131 "\n"
12132 msgstr ""
12133
12134 # type: textblock
12135 #: ../src/guestfs-actions.pod:4542 ../fish/guestfish-actions.pod:3043
12136 msgid "This command deletes the partition numbered C<partnum> on C<device>."
12137 msgstr ""
12138
12139 # type: textblock
12140 #: ../src/guestfs-actions.pod:4544 ../fish/guestfish-actions.pod:3045
12141 msgid ""
12142 "Note that in the case of MBR partitioning, deleting an extended partition "
12143 "also deletes any logical partitions it contains."
12144 msgstr ""
12145
12146 # type: =head2
12147 #: ../src/guestfs-actions.pod:4552
12148 msgid "guestfs_part_disk"
12149 msgstr ""
12150
12151 # type: verbatim
12152 #: ../src/guestfs-actions.pod:4554
12153 #, no-wrap
12154 msgid ""
12155 " int\n"
12156 " guestfs_part_disk (guestfs_h *g,\n"
12157 "                    const char *device,\n"
12158 "                    const char *parttype);\n"
12159 "\n"
12160 msgstr ""
12161
12162 # type: textblock
12163 #: ../src/guestfs-actions.pod:4559
12164 msgid ""
12165 "This command is simply a combination of C<guestfs_part_init> followed by "
12166 "C<guestfs_part_add> to create a single primary partition covering the whole "
12167 "disk."
12168 msgstr ""
12169
12170 # type: textblock
12171 #: ../src/guestfs-actions.pod:4563
12172 msgid ""
12173 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
12174 "possible values are described in C<guestfs_part_init>."
12175 msgstr ""
12176
12177 # type: =head2
12178 #: ../src/guestfs-actions.pod:4573
12179 msgid "guestfs_part_get_bootable"
12180 msgstr ""
12181
12182 # type: verbatim
12183 #: ../src/guestfs-actions.pod:4575
12184 #, no-wrap
12185 msgid ""
12186 " int\n"
12187 " guestfs_part_get_bootable (guestfs_h *g,\n"
12188 "                            const char *device,\n"
12189 "                            int partnum);\n"
12190 "\n"
12191 msgstr ""
12192
12193 # type: textblock
12194 #: ../src/guestfs-actions.pod:4580 ../fish/guestfish-actions.pod:3067
12195 msgid ""
12196 "This command returns true if the partition C<partnum> on C<device> has the "
12197 "bootable flag set."
12198 msgstr ""
12199
12200 # type: textblock
12201 #: ../src/guestfs-actions.pod:4583
12202 msgid "See also C<guestfs_part_set_bootable>."
12203 msgstr ""
12204
12205 # type: =head2
12206 #: ../src/guestfs-actions.pod:4589
12207 msgid "guestfs_part_get_mbr_id"
12208 msgstr ""
12209
12210 # type: verbatim
12211 #: ../src/guestfs-actions.pod:4591
12212 #, no-wrap
12213 msgid ""
12214 " int\n"
12215 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
12216 "                          const char *device,\n"
12217 "                          int partnum);\n"
12218 "\n"
12219 msgstr ""
12220
12221 # type: textblock
12222 #: ../src/guestfs-actions.pod:4596 ../fish/guestfish-actions.pod:3076
12223 msgid ""
12224 "Returns the MBR type byte (also known as the ID byte) from the numbered "
12225 "partition C<partnum>."
12226 msgstr ""
12227
12228 # type: textblock
12229 #: ../src/guestfs-actions.pod:4599 ../src/guestfs-actions.pod:4775
12230 msgid ""
12231 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
12232 "undefined results for other partition table types (see "
12233 "C<guestfs_part_get_parttype>)."
12234 msgstr ""
12235
12236 # type: =head2
12237 #: ../src/guestfs-actions.pod:4607
12238 msgid "guestfs_part_get_parttype"
12239 msgstr ""
12240
12241 # type: verbatim
12242 #: ../src/guestfs-actions.pod:4609
12243 #, no-wrap
12244 msgid ""
12245 " char *\n"
12246 " guestfs_part_get_parttype (guestfs_h *g,\n"
12247 "                            const char *device);\n"
12248 "\n"
12249 msgstr ""
12250
12251 # type: textblock
12252 #: ../src/guestfs-actions.pod:4613 ../fish/guestfish-actions.pod:3087
12253 msgid ""
12254 "This command examines the partition table on C<device> and returns the "
12255 "partition table type (format) being used."
12256 msgstr ""
12257
12258 # type: textblock
12259 #: ../src/guestfs-actions.pod:4616
12260 msgid ""
12261 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
12262 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
12263 "possible, although unusual.  See C<guestfs_part_init> for a full list."
12264 msgstr ""
12265
12266 # type: =head2
12267 #: ../src/guestfs-actions.pod:4626
12268 msgid "guestfs_part_init"
12269 msgstr ""
12270
12271 # type: verbatim
12272 #: ../src/guestfs-actions.pod:4628
12273 #, no-wrap
12274 msgid ""
12275 " int\n"
12276 " guestfs_part_init (guestfs_h *g,\n"
12277 "                    const char *device,\n"
12278 "                    const char *parttype);\n"
12279 "\n"
12280 msgstr ""
12281
12282 # type: textblock
12283 #: ../src/guestfs-actions.pod:4633 ../fish/guestfish-actions.pod:3099
12284 msgid ""
12285 "This creates an empty partition table on C<device> of one of the partition "
12286 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
12287 "(for large disks)."
12288 msgstr ""
12289
12290 # type: textblock
12291 #: ../src/guestfs-actions.pod:4637
12292 msgid ""
12293 "Initially there are no partitions.  Following this, you should call "
12294 "C<guestfs_part_add> for each partition required."
12295 msgstr ""
12296
12297 # type: textblock
12298 #: ../src/guestfs-actions.pod:4640 ../fish/guestfish-actions.pod:3106
12299 msgid "Possible values for C<parttype> are:"
12300 msgstr ""
12301
12302 # type: =item
12303 #: ../src/guestfs-actions.pod:4644 ../fish/guestfish-actions.pod:3110
12304 msgid "B<efi> | B<gpt>"
12305 msgstr ""
12306
12307 # type: textblock
12308 #: ../src/guestfs-actions.pod:4646 ../fish/guestfish-actions.pod:3112
12309 msgid "Intel EFI / GPT partition table."
12310 msgstr ""
12311
12312 # type: textblock
12313 #: ../src/guestfs-actions.pod:4648 ../fish/guestfish-actions.pod:3114
12314 msgid ""
12315 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
12316 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
12317 "the C<mbr> format."
12318 msgstr ""
12319
12320 # type: =item
12321 #: ../src/guestfs-actions.pod:4652 ../fish/guestfish-actions.pod:3118
12322 msgid "B<mbr> | B<msdos>"
12323 msgstr ""
12324
12325 # type: textblock
12326 #: ../src/guestfs-actions.pod:4654 ../fish/guestfish-actions.pod:3120
12327 msgid ""
12328 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
12329 "Windows.  This partition type will B<only> work for device sizes up to 2 "
12330 "TB.  For large disks we recommend using C<gpt>."
12331 msgstr ""
12332
12333 # type: textblock
12334 #: ../src/guestfs-actions.pod:4661 ../fish/guestfish-actions.pod:3127
12335 msgid ""
12336 "Other partition table types that may work but are not supported include:"
12337 msgstr ""
12338
12339 # type: =item
12340 #: ../src/guestfs-actions.pod:4666 ../fish/guestfish-actions.pod:3132
12341 msgid "B<aix>"
12342 msgstr ""
12343
12344 # type: textblock
12345 #: ../src/guestfs-actions.pod:4668 ../fish/guestfish-actions.pod:3134
12346 msgid "AIX disk labels."
12347 msgstr ""
12348
12349 # type: =item
12350 #: ../src/guestfs-actions.pod:4670 ../fish/guestfish-actions.pod:3136
12351 msgid "B<amiga> | B<rdb>"
12352 msgstr ""
12353
12354 # type: textblock
12355 #: ../src/guestfs-actions.pod:4672 ../fish/guestfish-actions.pod:3138
12356 msgid "Amiga \"Rigid Disk Block\" format."
12357 msgstr ""
12358
12359 # type: =item
12360 #: ../src/guestfs-actions.pod:4674 ../fish/guestfish-actions.pod:3140
12361 msgid "B<bsd>"
12362 msgstr ""
12363
12364 # type: textblock
12365 #: ../src/guestfs-actions.pod:4676 ../fish/guestfish-actions.pod:3142
12366 msgid "BSD disk labels."
12367 msgstr ""
12368
12369 # type: =item
12370 #: ../src/guestfs-actions.pod:4678 ../fish/guestfish-actions.pod:3144
12371 msgid "B<dasd>"
12372 msgstr ""
12373
12374 # type: textblock
12375 #: ../src/guestfs-actions.pod:4680 ../fish/guestfish-actions.pod:3146
12376 msgid "DASD, used on IBM mainframes."
12377 msgstr ""
12378
12379 # type: =item
12380 #: ../src/guestfs-actions.pod:4682 ../fish/guestfish-actions.pod:3148
12381 msgid "B<dvh>"
12382 msgstr ""
12383
12384 # type: textblock
12385 #: ../src/guestfs-actions.pod:4684 ../fish/guestfish-actions.pod:3150
12386 msgid "MIPS/SGI volumes."
12387 msgstr ""
12388
12389 # type: =item
12390 #: ../src/guestfs-actions.pod:4686 ../fish/guestfish-actions.pod:3152
12391 msgid "B<mac>"
12392 msgstr ""
12393
12394 # type: textblock
12395 #: ../src/guestfs-actions.pod:4688 ../fish/guestfish-actions.pod:3154
12396 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
12397 msgstr ""
12398
12399 # type: =item
12400 #: ../src/guestfs-actions.pod:4690 ../fish/guestfish-actions.pod:3156
12401 msgid "B<pc98>"
12402 msgstr ""
12403
12404 # type: textblock
12405 #: ../src/guestfs-actions.pod:4692 ../fish/guestfish-actions.pod:3158
12406 msgid "NEC PC-98 format, common in Japan apparently."
12407 msgstr ""
12408
12409 # type: =item
12410 #: ../src/guestfs-actions.pod:4694 ../fish/guestfish-actions.pod:3160
12411 msgid "B<sun>"
12412 msgstr ""
12413
12414 # type: textblock
12415 #: ../src/guestfs-actions.pod:4696 ../fish/guestfish-actions.pod:3162
12416 msgid "Sun disk labels."
12417 msgstr ""
12418
12419 # type: =head2
12420 #: ../src/guestfs-actions.pod:4704
12421 msgid "guestfs_part_list"
12422 msgstr ""
12423
12424 # type: verbatim
12425 #: ../src/guestfs-actions.pod:4706
12426 #, no-wrap
12427 msgid ""
12428 " struct guestfs_partition_list *\n"
12429 " guestfs_part_list (guestfs_h *g,\n"
12430 "                    const char *device);\n"
12431 "\n"
12432 msgstr ""
12433
12434 # type: textblock
12435 #: ../src/guestfs-actions.pod:4710 ../fish/guestfish-actions.pod:3170
12436 msgid ""
12437 "This command parses the partition table on C<device> and returns the list of "
12438 "partitions found."
12439 msgstr ""
12440
12441 # type: textblock
12442 #: ../src/guestfs-actions.pod:4713 ../fish/guestfish-actions.pod:3173
12443 msgid "The fields in the returned structure are:"
12444 msgstr ""
12445
12446 # type: =item
12447 #: ../src/guestfs-actions.pod:4717 ../fish/guestfish-actions.pod:3177
12448 msgid "B<part_num>"
12449 msgstr ""
12450
12451 # type: textblock
12452 #: ../src/guestfs-actions.pod:4719 ../fish/guestfish-actions.pod:3179
12453 msgid "Partition number, counting from 1."
12454 msgstr ""
12455
12456 # type: =item
12457 #: ../src/guestfs-actions.pod:4721 ../fish/guestfish-actions.pod:3181
12458 msgid "B<part_start>"
12459 msgstr ""
12460
12461 # type: textblock
12462 #: ../src/guestfs-actions.pod:4723
12463 msgid ""
12464 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
12465 "the device's sector size, see C<guestfs_blockdev_getss>."
12466 msgstr ""
12467
12468 # type: =item
12469 #: ../src/guestfs-actions.pod:4726 ../fish/guestfish-actions.pod:3186
12470 msgid "B<part_end>"
12471 msgstr ""
12472
12473 # type: textblock
12474 #: ../src/guestfs-actions.pod:4728 ../fish/guestfish-actions.pod:3188
12475 msgid "End of the partition in bytes."
12476 msgstr ""
12477
12478 # type: =item
12479 #: ../src/guestfs-actions.pod:4730 ../fish/guestfish-actions.pod:3190
12480 msgid "B<part_size>"
12481 msgstr ""
12482
12483 # type: textblock
12484 #: ../src/guestfs-actions.pod:4732 ../fish/guestfish-actions.pod:3192
12485 msgid "Size of the partition in bytes."
12486 msgstr ""
12487
12488 # type: textblock
12489 #: ../src/guestfs-actions.pod:4736
12490 msgid ""
12491 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
12492 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
12493 "use>."
12494 msgstr ""
12495
12496 # type: =head2
12497 #: ../src/guestfs-actions.pod:4742
12498 msgid "guestfs_part_set_bootable"
12499 msgstr ""
12500
12501 # type: verbatim
12502 #: ../src/guestfs-actions.pod:4744
12503 #, no-wrap
12504 msgid ""
12505 " int\n"
12506 " guestfs_part_set_bootable (guestfs_h *g,\n"
12507 "                            const char *device,\n"
12508 "                            int partnum,\n"
12509 "                            int bootable);\n"
12510 "\n"
12511 msgstr ""
12512
12513 # type: textblock
12514 #: ../src/guestfs-actions.pod:4750 ../fish/guestfish-actions.pod:3200
12515 msgid ""
12516 "This sets the bootable flag on partition numbered C<partnum> on device "
12517 "C<device>.  Note that partitions are numbered from 1."
12518 msgstr ""
12519
12520 # type: textblock
12521 #: ../src/guestfs-actions.pod:4753 ../fish/guestfish-actions.pod:3203
12522 msgid ""
12523 "The bootable flag is used by some operating systems (notably Windows) to "
12524 "determine which partition to boot from.  It is by no means universally "
12525 "recognized."
12526 msgstr ""
12527
12528 # type: =head2
12529 #: ../src/guestfs-actions.pod:4761
12530 msgid "guestfs_part_set_mbr_id"
12531 msgstr ""
12532
12533 # type: verbatim
12534 #: ../src/guestfs-actions.pod:4763
12535 #, no-wrap
12536 msgid ""
12537 " int\n"
12538 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
12539 "                          const char *device,\n"
12540 "                          int partnum,\n"
12541 "                          int idbyte);\n"
12542 "\n"
12543 msgstr ""
12544
12545 # type: textblock
12546 #: ../src/guestfs-actions.pod:4769 ../fish/guestfish-actions.pod:3211
12547 msgid ""
12548 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
12549 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
12550 "documentation are in fact hexadecimal numbers, but usually documented "
12551 "without any leading \"0x\" which might be confusing."
12552 msgstr ""
12553
12554 # type: =head2
12555 #: ../src/guestfs-actions.pod:4783
12556 msgid "guestfs_part_set_name"
12557 msgstr ""
12558
12559 # type: verbatim
12560 #: ../src/guestfs-actions.pod:4785
12561 #, no-wrap
12562 msgid ""
12563 " int\n"
12564 " guestfs_part_set_name (guestfs_h *g,\n"
12565 "                        const char *device,\n"
12566 "                        int partnum,\n"
12567 "                        const char *name);\n"
12568 "\n"
12569 msgstr ""
12570
12571 # type: textblock
12572 #: ../src/guestfs-actions.pod:4791 ../fish/guestfish-actions.pod:3225
12573 msgid ""
12574 "This sets the partition name on partition numbered C<partnum> on device "
12575 "C<device>.  Note that partitions are numbered from 1."
12576 msgstr ""
12577
12578 # type: textblock
12579 #: ../src/guestfs-actions.pod:4794 ../fish/guestfish-actions.pod:3228
12580 msgid ""
12581 "The partition name can only be set on certain types of partition table.  "
12582 "This works on C<gpt> but not on C<mbr> partitions."
12583 msgstr ""
12584
12585 # type: =head2
12586 #: ../src/guestfs-actions.pod:4801
12587 msgid "guestfs_part_to_dev"
12588 msgstr ""
12589
12590 # type: verbatim
12591 #: ../src/guestfs-actions.pod:4803
12592 #, no-wrap
12593 msgid ""
12594 " char *\n"
12595 " guestfs_part_to_dev (guestfs_h *g,\n"
12596 "                      const char *partition);\n"
12597 "\n"
12598 msgstr ""
12599
12600 # type: textblock
12601 #: ../src/guestfs-actions.pod:4807 ../fish/guestfish-actions.pod:3235
12602 msgid ""
12603 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
12604 "partition number, returning the device name (eg. \"/dev/sdb\")."
12605 msgstr ""
12606
12607 # type: textblock
12608 #: ../src/guestfs-actions.pod:4811
12609 msgid ""
12610 "The named partition must exist, for example as a string returned from "
12611 "C<guestfs_list_partitions>."
12612 msgstr ""
12613
12614 # type: =head2
12615 #: ../src/guestfs-actions.pod:4819
12616 msgid "guestfs_ping_daemon"
12617 msgstr ""
12618
12619 # type: verbatim
12620 #: ../src/guestfs-actions.pod:4821
12621 #, no-wrap
12622 msgid ""
12623 " int\n"
12624 " guestfs_ping_daemon (guestfs_h *g);\n"
12625 "\n"
12626 msgstr ""
12627
12628 # type: textblock
12629 #: ../src/guestfs-actions.pod:4824 ../fish/guestfish-actions.pod:3246
12630 msgid ""
12631 "This is a test probe into the guestfs daemon running inside the qemu "
12632 "subprocess.  Calling this function checks that the daemon responds to the "
12633 "ping message, without affecting the daemon or attached block device(s) in "
12634 "any other way."
12635 msgstr ""
12636
12637 # type: =head2
12638 #: ../src/guestfs-actions.pod:4833
12639 msgid "guestfs_pread"
12640 msgstr ""
12641
12642 # type: verbatim
12643 #: ../src/guestfs-actions.pod:4835
12644 #, no-wrap
12645 msgid ""
12646 " char *\n"
12647 " guestfs_pread (guestfs_h *g,\n"
12648 "                const char *path,\n"
12649 "                int count,\n"
12650 "                int64_t offset,\n"
12651 "                size_t *size_r);\n"
12652 "\n"
12653 msgstr ""
12654
12655 # type: textblock
12656 #: ../src/guestfs-actions.pod:4842 ../fish/guestfish-actions.pod:3255
12657 msgid ""
12658 "This command lets you read part of a file.  It reads C<count> bytes of the "
12659 "file, starting at C<offset>, from file C<path>."
12660 msgstr ""
12661
12662 # type: textblock
12663 #: ../src/guestfs-actions.pod:4845 ../src/guestfs-actions.pod:4871
12664 #: ../fish/guestfish-actions.pod:3258 ../fish/guestfish-actions.pod:3273
12665 msgid ""
12666 "This may read fewer bytes than requested.  For further details see the "
12667 "L<pread(2)> system call."
12668 msgstr ""
12669
12670 # type: textblock
12671 #: ../src/guestfs-actions.pod:4848
12672 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
12673 msgstr ""
12674
12675 # type: =head2
12676 #: ../src/guestfs-actions.pod:4859
12677 msgid "guestfs_pread_device"
12678 msgstr ""
12679
12680 # type: verbatim
12681 #: ../src/guestfs-actions.pod:4861
12682 #, no-wrap
12683 msgid ""
12684 " char *\n"
12685 " guestfs_pread_device (guestfs_h *g,\n"
12686 "                       const char *device,\n"
12687 "                       int count,\n"
12688 "                       int64_t offset,\n"
12689 "                       size_t *size_r);\n"
12690 "\n"
12691 msgstr ""
12692
12693 # type: textblock
12694 #: ../src/guestfs-actions.pod:4868 ../fish/guestfish-actions.pod:3270
12695 msgid ""
12696 "This command lets you read part of a file.  It reads C<count> bytes of "
12697 "C<device>, starting at C<offset>."
12698 msgstr ""
12699
12700 # type: textblock
12701 #: ../src/guestfs-actions.pod:4874
12702 msgid "See also C<guestfs_pread>."
12703 msgstr ""
12704
12705 # type: textblock
12706 #: ../src/guestfs-actions.pod:4883
12707 msgid "(Added in 1.5.21)"
12708 msgstr ""
12709
12710 # type: =head2
12711 #: ../src/guestfs-actions.pod:4885
12712 msgid "guestfs_pvcreate"
12713 msgstr ""
12714
12715 # type: verbatim
12716 #: ../src/guestfs-actions.pod:4887
12717 #, no-wrap
12718 msgid ""
12719 " int\n"
12720 " guestfs_pvcreate (guestfs_h *g,\n"
12721 "                   const char *device);\n"
12722 "\n"
12723 msgstr ""
12724
12725 # type: textblock
12726 #: ../src/guestfs-actions.pod:4891 ../fish/guestfish-actions.pod:3285
12727 msgid ""
12728 "This creates an LVM physical volume on the named C<device>, where C<device> "
12729 "should usually be a partition name such as C</dev/sda1>."
12730 msgstr ""
12731
12732 # type: =head2
12733 #: ../src/guestfs-actions.pod:4899
12734 msgid "guestfs_pvremove"
12735 msgstr ""
12736
12737 # type: verbatim
12738 #: ../src/guestfs-actions.pod:4901
12739 #, no-wrap
12740 msgid ""
12741 " int\n"
12742 " guestfs_pvremove (guestfs_h *g,\n"
12743 "                   const char *device);\n"
12744 "\n"
12745 msgstr ""
12746
12747 # type: textblock
12748 #: ../src/guestfs-actions.pod:4905 ../fish/guestfish-actions.pod:3293
12749 msgid ""
12750 "This wipes a physical volume C<device> so that LVM will no longer recognise "
12751 "it."
12752 msgstr ""
12753
12754 # type: textblock
12755 #: ../src/guestfs-actions.pod:4908 ../fish/guestfish-actions.pod:3296
12756 msgid ""
12757 "The implementation uses the C<pvremove> command which refuses to wipe "
12758 "physical volumes that contain any volume groups, so you have to remove those "
12759 "first."
12760 msgstr ""
12761
12762 # type: =head2
12763 #: ../src/guestfs-actions.pod:4916
12764 msgid "guestfs_pvresize"
12765 msgstr ""
12766
12767 # type: verbatim
12768 #: ../src/guestfs-actions.pod:4918
12769 #, no-wrap
12770 msgid ""
12771 " int\n"
12772 " guestfs_pvresize (guestfs_h *g,\n"
12773 "                   const char *device);\n"
12774 "\n"
12775 msgstr ""
12776
12777 # type: textblock
12778 #: ../src/guestfs-actions.pod:4922 ../fish/guestfish-actions.pod:3304
12779 msgid ""
12780 "This resizes (expands or shrinks) an existing LVM physical volume to match "
12781 "the new size of the underlying device."
12782 msgstr ""
12783
12784 # type: =head2
12785 #: ../src/guestfs-actions.pod:4929
12786 msgid "guestfs_pvresize_size"
12787 msgstr ""
12788
12789 # type: verbatim
12790 #: ../src/guestfs-actions.pod:4931
12791 #, no-wrap
12792 msgid ""
12793 " int\n"
12794 " guestfs_pvresize_size (guestfs_h *g,\n"
12795 "                        const char *device,\n"
12796 "                        int64_t size);\n"
12797 "\n"
12798 msgstr ""
12799
12800 # type: textblock
12801 #: ../src/guestfs-actions.pod:4936
12802 msgid ""
12803 "This command is the same as C<guestfs_pvresize> except that it allows you to "
12804 "specify the new size (in bytes) explicitly."
12805 msgstr ""
12806
12807 # type: =head2
12808 #: ../src/guestfs-actions.pod:4943
12809 msgid "guestfs_pvs"
12810 msgstr ""
12811
12812 # type: verbatim
12813 #: ../src/guestfs-actions.pod:4945
12814 #, no-wrap
12815 msgid ""
12816 " char **\n"
12817 " guestfs_pvs (guestfs_h *g);\n"
12818 "\n"
12819 msgstr ""
12820
12821 # type: textblock
12822 #: ../src/guestfs-actions.pod:4948 ../fish/guestfish-actions.pod:3318
12823 msgid ""
12824 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
12825 "(8)> command."
12826 msgstr ""
12827
12828 # type: textblock
12829 #: ../src/guestfs-actions.pod:4951 ../fish/guestfish-actions.pod:3321
12830 msgid ""
12831 "This returns a list of just the device names that contain PVs (eg. C</dev/"
12832 "sda2>)."
12833 msgstr ""
12834
12835 # type: textblock
12836 #: ../src/guestfs-actions.pod:4954
12837 msgid "See also C<guestfs_pvs_full>."
12838 msgstr ""
12839
12840 # type: =head2
12841 #: ../src/guestfs-actions.pod:4962
12842 msgid "guestfs_pvs_full"
12843 msgstr ""
12844
12845 # type: verbatim
12846 #: ../src/guestfs-actions.pod:4964
12847 #, no-wrap
12848 msgid ""
12849 " struct guestfs_lvm_pv_list *\n"
12850 " guestfs_pvs_full (guestfs_h *g);\n"
12851 "\n"
12852 msgstr ""
12853
12854 # type: textblock
12855 #: ../src/guestfs-actions.pod:4967 ../fish/guestfish-actions.pod:3330
12856 msgid ""
12857 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
12858 "(8)> command.  The \"full\" version includes all fields."
12859 msgstr ""
12860
12861 # type: textblock
12862 #: ../src/guestfs-actions.pod:4970
12863 msgid ""
12864 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
12865 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after use>."
12866 msgstr ""
12867
12868 # type: =head2
12869 #: ../src/guestfs-actions.pod:4976
12870 msgid "guestfs_pvuuid"
12871 msgstr ""
12872
12873 # type: verbatim
12874 #: ../src/guestfs-actions.pod:4978
12875 #, no-wrap
12876 msgid ""
12877 " char *\n"
12878 " guestfs_pvuuid (guestfs_h *g,\n"
12879 "                 const char *device);\n"
12880 "\n"
12881 msgstr ""
12882
12883 # type: textblock
12884 #: ../src/guestfs-actions.pod:4982 ../fish/guestfish-actions.pod:3337
12885 msgid "This command returns the UUID of the LVM PV C<device>."
12886 msgstr ""
12887
12888 # type: =head2
12889 #: ../src/guestfs-actions.pod:4989
12890 msgid "guestfs_pwrite"
12891 msgstr ""
12892
12893 # type: verbatim
12894 #: ../src/guestfs-actions.pod:4991
12895 #, no-wrap
12896 msgid ""
12897 " int\n"
12898 " guestfs_pwrite (guestfs_h *g,\n"
12899 "                 const char *path,\n"
12900 "                 const char *content,\n"
12901 "                 size_t content_size,\n"
12902 "                 int64_t offset);\n"
12903 "\n"
12904 msgstr ""
12905
12906 # type: textblock
12907 #: ../src/guestfs-actions.pod:4998 ../fish/guestfish-actions.pod:3343
12908 msgid ""
12909 "This command writes to part of a file.  It writes the data buffer C<content> "
12910 "to the file C<path> starting at offset C<offset>."
12911 msgstr ""
12912
12913 # type: textblock
12914 #: ../src/guestfs-actions.pod:5001 ../fish/guestfish-actions.pod:3346
12915 msgid ""
12916 "This command implements the L<pwrite(2)> system call, and like that system "
12917 "call it may not write the full data requested.  The return value is the "
12918 "number of bytes that were actually written to the file.  This could even be "
12919 "0, although short writes are unlikely for regular files in ordinary "
12920 "circumstances."
12921 msgstr ""
12922
12923 # type: textblock
12924 #: ../src/guestfs-actions.pod:5007
12925 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
12926 msgstr ""
12927
12928 # type: =head2
12929 #: ../src/guestfs-actions.pod:5016
12930 msgid "guestfs_pwrite_device"
12931 msgstr ""
12932
12933 # type: verbatim
12934 #: ../src/guestfs-actions.pod:5018
12935 #, no-wrap
12936 msgid ""
12937 " int\n"
12938 " guestfs_pwrite_device (guestfs_h *g,\n"
12939 "                        const char *device,\n"
12940 "                        const char *content,\n"
12941 "                        size_t content_size,\n"
12942 "                        int64_t offset);\n"
12943 "\n"
12944 msgstr ""
12945
12946 # type: textblock
12947 #: ../src/guestfs-actions.pod:5025 ../fish/guestfish-actions.pod:3361
12948 msgid ""
12949 "This command writes to part of a device.  It writes the data buffer "
12950 "C<content> to C<device> starting at offset C<offset>."
12951 msgstr ""
12952
12953 # type: textblock
12954 #: ../src/guestfs-actions.pod:5028 ../fish/guestfish-actions.pod:3364
12955 msgid ""
12956 "This command implements the L<pwrite(2)> system call, and like that system "
12957 "call it may not write the full data requested (although short writes to disk "
12958 "devices and partitions are probably impossible with standard Linux kernels)."
12959 msgstr ""
12960
12961 # type: textblock
12962 #: ../src/guestfs-actions.pod:5033
12963 msgid "See also C<guestfs_pwrite>."
12964 msgstr ""
12965
12966 # type: textblock
12967 #: ../src/guestfs-actions.pod:5040
12968 msgid "(Added in 1.5.20)"
12969 msgstr ""
12970
12971 # type: =head2
12972 #: ../src/guestfs-actions.pod:5042
12973 msgid "guestfs_read_file"
12974 msgstr ""
12975
12976 # type: verbatim
12977 #: ../src/guestfs-actions.pod:5044
12978 #, no-wrap
12979 msgid ""
12980 " char *\n"
12981 " guestfs_read_file (guestfs_h *g,\n"
12982 "                    const char *path,\n"
12983 "                    size_t *size_r);\n"
12984 "\n"
12985 msgstr ""
12986
12987 # type: textblock
12988 #: ../src/guestfs-actions.pod:5049 ../fish/guestfish-actions.pod:3378
12989 msgid "This calls returns the contents of the file C<path> as a buffer."
12990 msgstr ""
12991
12992 # type: textblock
12993 #: ../src/guestfs-actions.pod:5052
12994 msgid ""
12995 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
12996 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
12997 "function is limited in the total size of file that can be handled."
12998 msgstr ""
12999
13000 # type: textblock
13001 #: ../src/guestfs-actions.pod:5064
13002 msgid "(Added in 1.0.63)"
13003 msgstr ""
13004
13005 # type: =head2
13006 #: ../src/guestfs-actions.pod:5066
13007 msgid "guestfs_read_lines"
13008 msgstr ""
13009
13010 # type: verbatim
13011 #: ../src/guestfs-actions.pod:5068
13012 #, no-wrap
13013 msgid ""
13014 " char **\n"
13015 " guestfs_read_lines (guestfs_h *g,\n"
13016 "                     const char *path);\n"
13017 "\n"
13018 msgstr ""
13019
13020 # type: textblock
13021 #: ../src/guestfs-actions.pod:5074 ../fish/guestfish-actions.pod:3395
13022 msgid ""
13023 "The file contents are returned as a list of lines.  Trailing C<LF> and "
13024 "C<CRLF> character sequences are I<not> returned."
13025 msgstr ""
13026
13027 # type: textblock
13028 #: ../src/guestfs-actions.pod:5077
13029 msgid ""
13030 "Note that this function cannot correctly handle binary files (specifically, "
13031 "files containing C<\\0> character which is treated as end of line).  For "
13032 "those you need to use the C<guestfs_read_file> function which has a more "
13033 "complex interface."
13034 msgstr ""
13035
13036 # type: =head2
13037 #: ../src/guestfs-actions.pod:5088
13038 msgid "guestfs_readdir"
13039 msgstr ""
13040
13041 # type: verbatim
13042 #: ../src/guestfs-actions.pod:5090
13043 #, no-wrap
13044 msgid ""
13045 " struct guestfs_dirent_list *\n"
13046 " guestfs_readdir (guestfs_h *g,\n"
13047 "                  const char *dir);\n"
13048 "\n"
13049 msgstr ""
13050
13051 # type: textblock
13052 #: ../src/guestfs-actions.pod:5094 ../fish/guestfish-actions.pod:3407
13053 msgid "This returns the list of directory entries in directory C<dir>."
13054 msgstr ""
13055
13056 # type: textblock
13057 #: ../src/guestfs-actions.pod:5096 ../fish/guestfish-actions.pod:3409
13058 msgid ""
13059 "All entries in the directory are returned, including C<.> and C<..>.  The "
13060 "entries are I<not> sorted, but returned in the same order as the underlying "
13061 "filesystem."
13062 msgstr ""
13063
13064 # type: textblock
13065 #: ../src/guestfs-actions.pod:5100 ../fish/guestfish-actions.pod:3413
13066 msgid ""
13067 "Also this call returns basic file type information about each file.  The "
13068 "C<ftyp> field will contain one of the following characters:"
13069 msgstr ""
13070
13071 # type: =item
13072 #: ../src/guestfs-actions.pod:5105 ../fish/guestfish-actions.pod:3418
13073 msgid "'b'"
13074 msgstr ""
13075
13076 # type: textblock
13077 #: ../src/guestfs-actions.pod:5107 ../fish/guestfish-actions.pod:3420
13078 msgid "Block special"
13079 msgstr ""
13080
13081 # type: =item
13082 #: ../src/guestfs-actions.pod:5109 ../fish/guestfish-actions.pod:3422
13083 msgid "'c'"
13084 msgstr ""
13085
13086 # type: textblock
13087 #: ../src/guestfs-actions.pod:5111 ../fish/guestfish-actions.pod:3424
13088 msgid "Char special"
13089 msgstr ""
13090
13091 # type: =item
13092 #: ../src/guestfs-actions.pod:5113 ../fish/guestfish-actions.pod:3426
13093 msgid "'d'"
13094 msgstr ""
13095
13096 # type: textblock
13097 #: ../src/guestfs-actions.pod:5115 ../fish/guestfish-actions.pod:3428
13098 msgid "Directory"
13099 msgstr ""
13100
13101 # type: =item
13102 #: ../src/guestfs-actions.pod:5117 ../fish/guestfish-actions.pod:3430
13103 msgid "'f'"
13104 msgstr ""
13105
13106 # type: textblock
13107 #: ../src/guestfs-actions.pod:5119 ../fish/guestfish-actions.pod:3432
13108 msgid "FIFO (named pipe)"
13109 msgstr ""
13110
13111 # type: =item
13112 #: ../src/guestfs-actions.pod:5121 ../fish/guestfish-actions.pod:3434
13113 msgid "'l'"
13114 msgstr ""
13115
13116 # type: textblock
13117 #: ../src/guestfs-actions.pod:5123 ../fish/guestfish-actions.pod:3436
13118 msgid "Symbolic link"
13119 msgstr ""
13120
13121 # type: =item
13122 #: ../src/guestfs-actions.pod:5125 ../fish/guestfish-actions.pod:3438
13123 msgid "'r'"
13124 msgstr ""
13125
13126 # type: textblock
13127 #: ../src/guestfs-actions.pod:5127 ../fish/guestfish-actions.pod:3440
13128 msgid "Regular file"
13129 msgstr ""
13130
13131 # type: =item
13132 #: ../src/guestfs-actions.pod:5129 ../fish/guestfish-actions.pod:3442
13133 msgid "'s'"
13134 msgstr ""
13135
13136 # type: textblock
13137 #: ../src/guestfs-actions.pod:5131 ../fish/guestfish-actions.pod:3444
13138 msgid "Socket"
13139 msgstr ""
13140
13141 # type: =item
13142 #: ../src/guestfs-actions.pod:5133 ../fish/guestfish-actions.pod:3446
13143 msgid "'u'"
13144 msgstr ""
13145
13146 # type: textblock
13147 #: ../src/guestfs-actions.pod:5135 ../fish/guestfish-actions.pod:3448
13148 msgid "Unknown file type"
13149 msgstr ""
13150
13151 # type: =item
13152 #: ../src/guestfs-actions.pod:5137 ../fish/guestfish-actions.pod:3450
13153 msgid "'?'"
13154 msgstr ""
13155
13156 # type: textblock
13157 #: ../src/guestfs-actions.pod:5139 ../fish/guestfish-actions.pod:3452
13158 msgid ""
13159 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
13160 msgstr ""
13161
13162 # type: textblock
13163 #: ../src/guestfs-actions.pod:5144
13164 msgid ""
13165 "This function is primarily intended for use by programs.  To get a simple "
13166 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
13167 "consumption, use C<guestfs_ll>."
13168 msgstr ""
13169
13170 # type: textblock
13171 #: ../src/guestfs-actions.pod:5148
13172 msgid ""
13173 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
13174 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after use>."
13175 msgstr ""
13176
13177 # type: =head2
13178 #: ../src/guestfs-actions.pod:5154
13179 msgid "guestfs_readlink"
13180 msgstr ""
13181
13182 # type: verbatim
13183 #: ../src/guestfs-actions.pod:5156
13184 #, no-wrap
13185 msgid ""
13186 " char *\n"
13187 " guestfs_readlink (guestfs_h *g,\n"
13188 "                   const char *path);\n"
13189 "\n"
13190 msgstr ""
13191
13192 # type: textblock
13193 #: ../src/guestfs-actions.pod:5160 ../fish/guestfish-actions.pod:3465
13194 msgid "This command reads the target of a symbolic link."
13195 msgstr ""
13196
13197 # type: =head2
13198 #: ../src/guestfs-actions.pod:5167
13199 msgid "guestfs_readlinklist"
13200 msgstr ""
13201
13202 # type: verbatim
13203 #: ../src/guestfs-actions.pod:5169
13204 #, no-wrap
13205 msgid ""
13206 " char **\n"
13207 " guestfs_readlinklist (guestfs_h *g,\n"
13208 "                       const char *path,\n"
13209 "                       char *const *names);\n"
13210 "\n"
13211 msgstr ""
13212
13213 # type: textblock
13214 #: ../src/guestfs-actions.pod:5174 ../fish/guestfish-actions.pod:3471
13215 msgid ""
13216 "This call allows you to do a C<readlink> operation on multiple files, where "
13217 "all files are in the directory C<path>.  C<names> is the list of files from "
13218 "this directory."
13219 msgstr ""
13220
13221 # type: textblock
13222 #: ../src/guestfs-actions.pod:5178 ../fish/guestfish-actions.pod:3475
13223 msgid ""
13224 "On return you get a list of strings, with a one-to-one correspondence to the "
13225 "C<names> list.  Each string is the value of the symbolic link."
13226 msgstr ""
13227
13228 # type: textblock
13229 #: ../src/guestfs-actions.pod:5182 ../fish/guestfish-actions.pod:3479
13230 msgid ""
13231 "If the C<readlink(2)> operation fails on any name, then the corresponding "
13232 "result string is the empty string C<\"\">.  However the whole operation is "
13233 "completed even if there were C<readlink(2)> errors, and so you can call this "
13234 "function with names where you don't know if they are symbolic links already "
13235 "(albeit slightly less efficient)."
13236 msgstr ""
13237
13238 # type: textblock
13239 #: ../src/guestfs-actions.pod:5189 ../fish/guestfish-actions.pod:3486
13240 msgid ""
13241 "This call is intended for programs that want to efficiently list a directory "
13242 "contents without making many round-trips.  Very long directory listings "
13243 "might cause the protocol message size to be exceeded, causing this call to "
13244 "fail.  The caller must split up such requests into smaller groups of names."
13245 msgstr ""
13246
13247 # type: =head2
13248 #: ../src/guestfs-actions.pod:5202
13249 msgid "guestfs_realpath"
13250 msgstr ""
13251
13252 # type: verbatim
13253 #: ../src/guestfs-actions.pod:5204
13254 #, no-wrap
13255 msgid ""
13256 " char *\n"
13257 " guestfs_realpath (guestfs_h *g,\n"
13258 "                   const char *path);\n"
13259 "\n"
13260 msgstr ""
13261
13262 # type: textblock
13263 #: ../src/guestfs-actions.pod:5208 ../fish/guestfish-actions.pod:3497
13264 msgid ""
13265 "Return the canonicalized absolute pathname of C<path>.  The returned path "
13266 "has no C<.>, C<..> or symbolic link path elements."
13267 msgstr ""
13268
13269 # type: =head2
13270 #: ../src/guestfs-actions.pod:5216
13271 msgid "guestfs_removexattr"
13272 msgstr ""
13273
13274 # type: verbatim
13275 #: ../src/guestfs-actions.pod:5218
13276 #, no-wrap
13277 msgid ""
13278 " int\n"
13279 " guestfs_removexattr (guestfs_h *g,\n"
13280 "                      const char *xattr,\n"
13281 "                      const char *path);\n"
13282 "\n"
13283 msgstr ""
13284
13285 # type: textblock
13286 #: ../src/guestfs-actions.pod:5223 ../fish/guestfish-actions.pod:3504
13287 msgid ""
13288 "This call removes the extended attribute named C<xattr> of the file C<path>."
13289 msgstr ""
13290
13291 # type: textblock
13292 #: ../src/guestfs-actions.pod:5226
13293 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
13294 msgstr ""
13295
13296 # type: =head2
13297 #: ../src/guestfs-actions.pod:5232
13298 msgid "guestfs_resize2fs"
13299 msgstr ""
13300
13301 # type: verbatim
13302 #: ../src/guestfs-actions.pod:5234
13303 #, no-wrap
13304 msgid ""
13305 " int\n"
13306 " guestfs_resize2fs (guestfs_h *g,\n"
13307 "                    const char *device);\n"
13308 "\n"
13309 msgstr ""
13310
13311 # type: textblock
13312 #: ../src/guestfs-actions.pod:5238 ../fish/guestfish-actions.pod:3513
13313 msgid ""
13314 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
13315 "underlying device."
13316 msgstr ""
13317
13318 # type: textblock
13319 #: ../src/guestfs-actions.pod:5241
13320 msgid ""
13321 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
13322 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
13323 "sometimes gives an error about this and sometimes not.  In any case, it is "
13324 "always safe to call C<guestfs_e2fsck_f> before calling this function."
13325 msgstr ""
13326
13327 # type: =head2
13328 #: ../src/guestfs-actions.pod:5251
13329 msgid "guestfs_resize2fs_size"
13330 msgstr ""
13331
13332 # type: verbatim
13333 #: ../src/guestfs-actions.pod:5253
13334 #, no-wrap
13335 msgid ""
13336 " int\n"
13337 " guestfs_resize2fs_size (guestfs_h *g,\n"
13338 "                         const char *device,\n"
13339 "                         int64_t size);\n"
13340 "\n"
13341 msgstr ""
13342
13343 # type: textblock
13344 #: ../src/guestfs-actions.pod:5258
13345 msgid ""
13346 "This command is the same as C<guestfs_resize2fs> except that it allows you "
13347 "to specify the new size (in bytes) explicitly."
13348 msgstr ""
13349
13350 # type: =head2
13351 #: ../src/guestfs-actions.pod:5265
13352 msgid "guestfs_rm"
13353 msgstr ""
13354
13355 # type: verbatim
13356 #: ../src/guestfs-actions.pod:5267
13357 #, no-wrap
13358 msgid ""
13359 " int\n"
13360 " guestfs_rm (guestfs_h *g,\n"
13361 "             const char *path);\n"
13362 "\n"
13363 msgstr ""
13364
13365 # type: textblock
13366 #: ../src/guestfs-actions.pod:5271 ../fish/guestfish-actions.pod:3533
13367 msgid "Remove the single file C<path>."
13368 msgstr ""
13369
13370 # type: =head2
13371 #: ../src/guestfs-actions.pod:5277
13372 msgid "guestfs_rm_rf"
13373 msgstr ""
13374
13375 # type: verbatim
13376 #: ../src/guestfs-actions.pod:5279
13377 #, no-wrap
13378 msgid ""
13379 " int\n"
13380 " guestfs_rm_rf (guestfs_h *g,\n"
13381 "                const char *path);\n"
13382 "\n"
13383 msgstr ""
13384
13385 # type: textblock
13386 #: ../src/guestfs-actions.pod:5283 ../fish/guestfish-actions.pod:3539
13387 msgid ""
13388 "Remove the file or directory C<path>, recursively removing the contents if "
13389 "its a directory.  This is like the C<rm -rf> shell command."
13390 msgstr ""
13391
13392 # type: =head2
13393 #: ../src/guestfs-actions.pod:5291
13394 msgid "guestfs_rmdir"
13395 msgstr ""
13396
13397 # type: verbatim
13398 #: ../src/guestfs-actions.pod:5293
13399 #, no-wrap
13400 msgid ""
13401 " int\n"
13402 " guestfs_rmdir (guestfs_h *g,\n"
13403 "                const char *path);\n"
13404 "\n"
13405 msgstr ""
13406
13407 # type: textblock
13408 #: ../src/guestfs-actions.pod:5297 ../fish/guestfish-actions.pod:3547
13409 msgid "Remove the single directory C<path>."
13410 msgstr ""
13411
13412 # type: =head2
13413 #: ../src/guestfs-actions.pod:5303
13414 msgid "guestfs_rmmountpoint"
13415 msgstr ""
13416
13417 # type: verbatim
13418 #: ../src/guestfs-actions.pod:5305
13419 #, no-wrap
13420 msgid ""
13421 " int\n"
13422 " guestfs_rmmountpoint (guestfs_h *g,\n"
13423 "                       const char *exemptpath);\n"
13424 "\n"
13425 msgstr ""
13426
13427 # type: textblock
13428 #: ../src/guestfs-actions.pod:5309
13429 msgid ""
13430 "This calls removes a mountpoint that was previously created with "
13431 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
13432 msgstr ""
13433
13434 # type: =head2
13435 #: ../src/guestfs-actions.pod:5317
13436 msgid "guestfs_scrub_device"
13437 msgstr ""
13438
13439 # type: verbatim
13440 #: ../src/guestfs-actions.pod:5319
13441 #, no-wrap
13442 msgid ""
13443 " int\n"
13444 " guestfs_scrub_device (guestfs_h *g,\n"
13445 "                       const char *device);\n"
13446 "\n"
13447 msgstr ""
13448
13449 # type: textblock
13450 #: ../src/guestfs-actions.pod:5323 ../fish/guestfish-actions.pod:3561
13451 msgid ""
13452 "This command writes patterns over C<device> to make data retrieval more "
13453 "difficult."
13454 msgstr ""
13455
13456 # type: textblock
13457 #: ../src/guestfs-actions.pod:5326 ../src/guestfs-actions.pod:5347
13458 #: ../src/guestfs-actions.pod:5366 ../fish/guestfish-actions.pod:3564
13459 #: ../fish/guestfish-actions.pod:3579 ../fish/guestfish-actions.pod:3592
13460 msgid ""
13461 "It is an interface to the L<scrub(1)> program.  See that manual page for "
13462 "more details."
13463 msgstr ""
13464
13465 # type: textblock
13466 #: ../src/guestfs-actions.pod:5334 ../src/guestfs-actions.pod:5352
13467 #: ../src/guestfs-actions.pod:5371
13468 msgid "(Added in 1.0.52)"
13469 msgstr ""
13470
13471 # type: =head2
13472 #: ../src/guestfs-actions.pod:5336
13473 msgid "guestfs_scrub_file"
13474 msgstr ""
13475
13476 # type: verbatim
13477 #: ../src/guestfs-actions.pod:5338
13478 #, no-wrap
13479 msgid ""
13480 " int\n"
13481 " guestfs_scrub_file (guestfs_h *g,\n"
13482 "                     const char *file);\n"
13483 "\n"
13484 msgstr ""
13485
13486 # type: textblock
13487 #: ../src/guestfs-actions.pod:5342 ../fish/guestfish-actions.pod:3574
13488 msgid ""
13489 "This command writes patterns over a file to make data retrieval more "
13490 "difficult."
13491 msgstr ""
13492
13493 # type: textblock
13494 #: ../src/guestfs-actions.pod:5345 ../fish/guestfish-actions.pod:3577
13495 msgid "The file is I<removed> after scrubbing."
13496 msgstr ""
13497
13498 # type: =head2
13499 #: ../src/guestfs-actions.pod:5354
13500 msgid "guestfs_scrub_freespace"
13501 msgstr ""
13502
13503 # type: verbatim
13504 #: ../src/guestfs-actions.pod:5356
13505 #, no-wrap
13506 msgid ""
13507 " int\n"
13508 " guestfs_scrub_freespace (guestfs_h *g,\n"
13509 "                          const char *dir);\n"
13510 "\n"
13511 msgstr ""
13512
13513 # type: textblock
13514 #: ../src/guestfs-actions.pod:5360
13515 msgid ""
13516 "This command creates the directory C<dir> and then fills it with files until "
13517 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
13518 "and deletes them.  The intention is to scrub any free space on the partition "
13519 "containing C<dir>."
13520 msgstr ""
13521
13522 # type: =head2
13523 #: ../src/guestfs-actions.pod:5373
13524 msgid "guestfs_set_append"
13525 msgstr ""
13526
13527 # type: verbatim
13528 #: ../src/guestfs-actions.pod:5375
13529 #, no-wrap
13530 msgid ""
13531 " int\n"
13532 " guestfs_set_append (guestfs_h *g,\n"
13533 "                     const char *append);\n"
13534 "\n"
13535 msgstr ""
13536
13537 # type: textblock
13538 #: ../src/guestfs-actions.pod:5379 ../fish/guestfish-actions.pod:3601
13539 msgid ""
13540 "This function is used to add additional options to the guest kernel command "
13541 "line."
13542 msgstr ""
13543
13544 # type: textblock
13545 #: ../src/guestfs-actions.pod:5382 ../fish/guestfish-actions.pod:3604
13546 msgid ""
13547 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
13548 "environment variable."
13549 msgstr ""
13550
13551 # type: textblock
13552 #: ../src/guestfs-actions.pod:5385 ../fish/guestfish-actions.pod:3607
13553 msgid ""
13554 "Setting C<append> to C<NULL> means I<no> additional options are passed "
13555 "(libguestfs always adds a few of its own)."
13556 msgstr ""
13557
13558 # type: =head2
13559 #: ../src/guestfs-actions.pod:5392
13560 msgid "guestfs_set_autosync"
13561 msgstr ""
13562
13563 # type: verbatim
13564 #: ../src/guestfs-actions.pod:5394
13565 #, no-wrap
13566 msgid ""
13567 " int\n"
13568 " guestfs_set_autosync (guestfs_h *g,\n"
13569 "                       int autosync);\n"
13570 "\n"
13571 msgstr ""
13572
13573 # type: textblock
13574 #: ../src/guestfs-actions.pod:5398
13575 msgid ""
13576 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
13577 "effort attempt to run C<guestfs_umount_all> followed by C<guestfs_sync> when "
13578 "the handle is closed (also if the program exits without closing handles)."
13579 msgstr ""
13580
13581 # type: textblock
13582 #: ../src/guestfs-actions.pod:5403 ../fish/guestfish-actions.pod:3621
13583 msgid ""
13584 "This is enabled by default (since libguestfs 1.5.24, previously it was "
13585 "disabled by default)."
13586 msgstr ""
13587
13588 # type: =head2
13589 #: ../src/guestfs-actions.pod:5410
13590 msgid "guestfs_set_direct"
13591 msgstr ""
13592
13593 # type: verbatim
13594 #: ../src/guestfs-actions.pod:5412
13595 #, no-wrap
13596 msgid ""
13597 " int\n"
13598 " guestfs_set_direct (guestfs_h *g,\n"
13599 "                     int direct);\n"
13600 "\n"
13601 msgstr ""
13602
13603 # type: textblock
13604 #: ../src/guestfs-actions.pod:5416 ../fish/guestfish-actions.pod:3630
13605 msgid ""
13606 "If the direct appliance mode flag is enabled, then stdin and stdout are "
13607 "passed directly through to the appliance once it is launched."
13608 msgstr ""
13609
13610 # type: textblock
13611 #: ../src/guestfs-actions.pod:5420
13612 msgid ""
13613 "One consequence of this is that log messages aren't caught by the library "
13614 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
13615 "stdout."
13616 msgstr ""
13617
13618 # type: textblock
13619 #: ../src/guestfs-actions.pod:5424 ../fish/guestfish-actions.pod:3638
13620 msgid "You probably don't want to use this unless you know what you are doing."
13621 msgstr ""
13622
13623 # type: textblock
13624 #: ../src/guestfs-actions.pod:5427 ../fish/guestfish-actions.pod:3641
13625 msgid "The default is disabled."
13626 msgstr ""
13627
13628 # type: =head2
13629 #: ../src/guestfs-actions.pod:5433
13630 msgid "guestfs_set_e2label"
13631 msgstr ""
13632
13633 # type: verbatim
13634 #: ../src/guestfs-actions.pod:5435
13635 #, no-wrap
13636 msgid ""
13637 " int\n"
13638 " guestfs_set_e2label (guestfs_h *g,\n"
13639 "                      const char *device,\n"
13640 "                      const char *label);\n"
13641 "\n"
13642 msgstr ""
13643
13644 # type: textblock
13645 #: ../src/guestfs-actions.pod:5440 ../fish/guestfish-actions.pod:3647
13646 msgid ""
13647 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
13648 "C<label>.  Filesystem labels are limited to 16 characters."
13649 msgstr ""
13650
13651 # type: textblock
13652 #: ../src/guestfs-actions.pod:5444
13653 msgid ""
13654 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
13655 "the existing label on a filesystem."
13656 msgstr ""
13657
13658 # type: =head2
13659 #: ../src/guestfs-actions.pod:5451
13660 msgid "guestfs_set_e2uuid"
13661 msgstr ""
13662
13663 # type: verbatim
13664 #: ../src/guestfs-actions.pod:5453
13665 #, no-wrap
13666 msgid ""
13667 " int\n"
13668 " guestfs_set_e2uuid (guestfs_h *g,\n"
13669 "                     const char *device,\n"
13670 "                     const char *uuid);\n"
13671 "\n"
13672 msgstr ""
13673
13674 # type: textblock
13675 #: ../src/guestfs-actions.pod:5458 ../fish/guestfish-actions.pod:3658
13676 msgid ""
13677 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
13678 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
13679 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
13680 msgstr ""
13681
13682 # type: textblock
13683 #: ../src/guestfs-actions.pod:5463
13684 msgid ""
13685 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
13686 "the existing UUID of a filesystem."
13687 msgstr ""
13688
13689 # type: =head2
13690 #: ../src/guestfs-actions.pod:5470
13691 msgid "guestfs_set_memsize"
13692 msgstr ""
13693
13694 # type: verbatim
13695 #: ../src/guestfs-actions.pod:5472
13696 #, no-wrap
13697 msgid ""
13698 " int\n"
13699 " guestfs_set_memsize (guestfs_h *g,\n"
13700 "                      int memsize);\n"
13701 "\n"
13702 msgstr ""
13703
13704 # type: textblock
13705 #: ../src/guestfs-actions.pod:5476
13706 msgid ""
13707 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
13708 "This only has any effect if called before C<guestfs_launch>."
13709 msgstr ""
13710
13711 # type: textblock
13712 #: ../src/guestfs-actions.pod:5480 ../fish/guestfish-actions.pod:3676
13713 msgid ""
13714 "You can also change this by setting the environment variable "
13715 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
13716 msgstr ""
13717
13718 # type: =head2
13719 #: ../src/guestfs-actions.pod:5491
13720 msgid "guestfs_set_network"
13721 msgstr ""
13722
13723 # type: verbatim
13724 #: ../src/guestfs-actions.pod:5493
13725 #, no-wrap
13726 msgid ""
13727 " int\n"
13728 " guestfs_set_network (guestfs_h *g,\n"
13729 "                      int network);\n"
13730 "\n"
13731 msgstr ""
13732
13733 # type: textblock
13734 #: ../src/guestfs-actions.pod:5497 ../fish/guestfish-actions.pod:3689
13735 msgid ""
13736 "If C<network> is true, then the network is enabled in the libguestfs "
13737 "appliance.  The default is false."
13738 msgstr ""
13739
13740 # type: textblock
13741 #: ../src/guestfs-actions.pod:5500 ../fish/guestfish-actions.pod:3692
13742 msgid ""
13743 "This affects whether commands are able to access the network (see L<guestfs"
13744 "(3)/RUNNING COMMANDS>)."
13745 msgstr ""
13746
13747 # type: textblock
13748 #: ../src/guestfs-actions.pod:5503
13749 msgid ""
13750 "You must call this before calling C<guestfs_launch>, otherwise it has no "
13751 "effect."
13752 msgstr ""
13753
13754 # type: =head2
13755 #: ../src/guestfs-actions.pod:5510
13756 msgid "guestfs_set_path"
13757 msgstr ""
13758
13759 # type: verbatim
13760 #: ../src/guestfs-actions.pod:5512
13761 #, no-wrap
13762 msgid ""
13763 " int\n"
13764 " guestfs_set_path (guestfs_h *g,\n"
13765 "                   const char *searchpath);\n"
13766 "\n"
13767 msgstr ""
13768
13769 # type: textblock
13770 #: ../src/guestfs-actions.pod:5516 ../fish/guestfish-actions.pod:3704
13771 msgid "Set the path that libguestfs searches for kernel and initrd.img."
13772 msgstr ""
13773
13774 # type: textblock
13775 #: ../src/guestfs-actions.pod:5518 ../fish/guestfish-actions.pod:3706
13776 msgid ""
13777 "The default is C<$libdir/guestfs> unless overridden by setting "
13778 "C<LIBGUESTFS_PATH> environment variable."
13779 msgstr ""
13780
13781 # type: textblock
13782 #: ../src/guestfs-actions.pod:5521 ../fish/guestfish-actions.pod:3709
13783 msgid "Setting C<path> to C<NULL> restores the default path."
13784 msgstr ""
13785
13786 # type: =head2
13787 #: ../src/guestfs-actions.pod:5527
13788 msgid "guestfs_set_qemu"
13789 msgstr ""
13790
13791 # type: verbatim
13792 #: ../src/guestfs-actions.pod:5529
13793 #, no-wrap
13794 msgid ""
13795 " int\n"
13796 " guestfs_set_qemu (guestfs_h *g,\n"
13797 "                   const char *qemu);\n"
13798 "\n"
13799 msgstr ""
13800
13801 # type: textblock
13802 #: ../src/guestfs-actions.pod:5533 ../fish/guestfish-actions.pod:3717
13803 msgid "Set the qemu binary that we will use."
13804 msgstr ""
13805
13806 # type: textblock
13807 #: ../src/guestfs-actions.pod:5535 ../fish/guestfish-actions.pod:3719
13808 msgid ""
13809 "The default is chosen when the library was compiled by the configure script."
13810 msgstr ""
13811
13812 # type: textblock
13813 #: ../src/guestfs-actions.pod:5538 ../fish/guestfish-actions.pod:3722
13814 msgid ""
13815 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
13816 "variable."
13817 msgstr ""
13818
13819 # type: textblock
13820 #: ../src/guestfs-actions.pod:5541 ../fish/guestfish-actions.pod:3725
13821 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
13822 msgstr ""
13823
13824 # type: textblock
13825 #: ../src/guestfs-actions.pod:5543 ../fish/guestfish-actions.pod:3727
13826 msgid ""
13827 "Note that you should call this function as early as possible after creating "
13828 "the handle.  This is because some pre-launch operations depend on testing "
13829 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
13830 "don't retest features, and so you might see inconsistent results.  Using the "
13831 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
13832 "the qemu binary at the same time as the handle is created."
13833 msgstr ""
13834
13835 # type: =head2
13836 #: ../src/guestfs-actions.pod:5555
13837 msgid "guestfs_set_recovery_proc"
13838 msgstr ""
13839
13840 # type: verbatim
13841 #: ../src/guestfs-actions.pod:5557
13842 #, no-wrap
13843 msgid ""
13844 " int\n"
13845 " guestfs_set_recovery_proc (guestfs_h *g,\n"
13846 "                            int recoveryproc);\n"
13847 "\n"
13848 msgstr ""
13849
13850 # type: textblock
13851 #: ../src/guestfs-actions.pod:5561
13852 msgid ""
13853 "If this is called with the parameter C<false> then C<guestfs_launch> does "
13854 "not create a recovery process.  The purpose of the recovery process is to "
13855 "stop runaway qemu processes in the case where the main program aborts "
13856 "abruptly."
13857 msgstr ""
13858
13859 # type: textblock
13860 #: ../src/guestfs-actions.pod:5566
13861 msgid ""
13862 "This only has any effect if called before C<guestfs_launch>, and the default "
13863 "is true."
13864 msgstr ""
13865
13866 # type: textblock
13867 #: ../src/guestfs-actions.pod:5569 ../fish/guestfish-actions.pod:3749
13868 msgid ""
13869 "About the only time when you would want to disable this is if the main "
13870 "process will fork itself into the background (\"daemonize\" itself).  In "
13871 "this case the recovery process thinks that the main program has disappeared "
13872 "and so kills qemu, which is not very helpful."
13873 msgstr ""
13874
13875 # type: =head2
13876 #: ../src/guestfs-actions.pod:5579
13877 msgid "guestfs_set_selinux"
13878 msgstr ""
13879
13880 # type: verbatim
13881 #: ../src/guestfs-actions.pod:5581
13882 #, no-wrap
13883 msgid ""
13884 " int\n"
13885 " guestfs_set_selinux (guestfs_h *g,\n"
13886 "                      int selinux);\n"
13887 "\n"
13888 msgstr ""
13889
13890 # type: textblock
13891 #: ../src/guestfs-actions.pod:5585 ../fish/guestfish-actions.pod:3761
13892 msgid ""
13893 "This sets the selinux flag that is passed to the appliance at boot time.  "
13894 "The default is C<selinux=0> (disabled)."
13895 msgstr ""
13896
13897 # type: textblock
13898 #: ../src/guestfs-actions.pod:5588 ../fish/guestfish-actions.pod:3764
13899 msgid ""
13900 "Note that if SELinux is enabled, it is always in Permissive mode "
13901 "(C<enforcing=0>)."
13902 msgstr ""
13903
13904 # type: =head2
13905 #: ../src/guestfs-actions.pod:5598
13906 msgid "guestfs_set_trace"
13907 msgstr ""
13908
13909 # type: verbatim
13910 #: ../src/guestfs-actions.pod:5600
13911 #, no-wrap
13912 msgid ""
13913 " int\n"
13914 " guestfs_set_trace (guestfs_h *g,\n"
13915 "                    int trace);\n"
13916 "\n"
13917 msgstr ""
13918
13919 # type: textblock
13920 #: ../src/guestfs-actions.pod:5604 ../fish/guestfish-actions.pod:3776
13921 msgid ""
13922 "If the command trace flag is set to 1, then commands are printed on stderr "
13923 "before they are executed in a format which is very similar to the one used "
13924 "by guestfish.  In other words, you can run a program with this enabled, and "
13925 "you will get out a script which you can feed to guestfish to perform the "
13926 "same set of actions."
13927 msgstr ""
13928
13929 # type: textblock
13930 #: ../src/guestfs-actions.pod:5611 ../fish/guestfish-actions.pod:3783
13931 msgid ""
13932 "If you want to trace C API calls into libguestfs (and other libraries) then "
13933 "possibly a better way is to use the external ltrace(1) command."
13934 msgstr ""
13935
13936 # type: textblock
13937 #: ../src/guestfs-actions.pod:5615 ../fish/guestfish-actions.pod:3787
13938 msgid ""
13939 "Command traces are disabled unless the environment variable "
13940 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
13941 msgstr ""
13942
13943 # type: =head2
13944 #: ../src/guestfs-actions.pod:5622
13945 msgid "guestfs_set_verbose"
13946 msgstr ""
13947
13948 # type: verbatim
13949 #: ../src/guestfs-actions.pod:5624
13950 #, no-wrap
13951 msgid ""
13952 " int\n"
13953 " guestfs_set_verbose (guestfs_h *g,\n"
13954 "                      int verbose);\n"
13955 "\n"
13956 msgstr ""
13957
13958 # type: textblock
13959 #: ../src/guestfs-actions.pod:5628 ../fish/guestfish-actions.pod:3796
13960 msgid "If C<verbose> is true, this turns on verbose messages (to C<stderr>)."
13961 msgstr ""
13962
13963 # type: textblock
13964 #: ../src/guestfs-actions.pod:5630 ../fish/guestfish-actions.pod:3798
13965 msgid ""
13966 "Verbose messages are disabled unless the environment variable "
13967 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
13968 msgstr ""
13969
13970 # type: =head2
13971 #: ../src/guestfs-actions.pod:5637
13972 msgid "guestfs_setcon"
13973 msgstr ""
13974
13975 # type: verbatim
13976 #: ../src/guestfs-actions.pod:5639
13977 #, no-wrap
13978 msgid ""
13979 " int\n"
13980 " guestfs_setcon (guestfs_h *g,\n"
13981 "                 const char *context);\n"
13982 "\n"
13983 msgstr ""
13984
13985 # type: textblock
13986 #: ../src/guestfs-actions.pod:5643 ../fish/guestfish-actions.pod:3805
13987 msgid ""
13988 "This sets the SELinux security context of the daemon to the string "
13989 "C<context>."
13990 msgstr ""
13991
13992 # type: textblock
13993 #: ../src/guestfs-actions.pod:5646 ../fish/guestfish-actions.pod:3808
13994 msgid "See the documentation about SELINUX in L<guestfs(3)>."
13995 msgstr ""
13996
13997 # type: =head2
13998 #: ../src/guestfs-actions.pod:5652
13999 msgid "guestfs_setxattr"
14000 msgstr ""
14001
14002 # type: verbatim
14003 #: ../src/guestfs-actions.pod:5654
14004 #, no-wrap
14005 msgid ""
14006 " int\n"
14007 " guestfs_setxattr (guestfs_h *g,\n"
14008 "                   const char *xattr,\n"
14009 "                   const char *val,\n"
14010 "                   int vallen,\n"
14011 "                   const char *path);\n"
14012 "\n"
14013 msgstr ""
14014
14015 # type: textblock
14016 #: ../src/guestfs-actions.pod:5661 ../fish/guestfish-actions.pod:3814
14017 msgid ""
14018 "This call sets the extended attribute named C<xattr> of the file C<path> to "
14019 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
14020 msgstr ""
14021
14022 # type: textblock
14023 #: ../src/guestfs-actions.pod:5665
14024 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
14025 msgstr ""
14026
14027 # type: =head2
14028 #: ../src/guestfs-actions.pod:5671
14029 msgid "guestfs_sfdisk"
14030 msgstr ""
14031
14032 # type: verbatim
14033 #: ../src/guestfs-actions.pod:5673
14034 #, no-wrap
14035 msgid ""
14036 " int\n"
14037 " guestfs_sfdisk (guestfs_h *g,\n"
14038 "                 const char *device,\n"
14039 "                 int cyls,\n"
14040 "                 int heads,\n"
14041 "                 int sectors,\n"
14042 "                 char *const *lines);\n"
14043 "\n"
14044 msgstr ""
14045
14046 # type: textblock
14047 #: ../src/guestfs-actions.pod:5681 ../fish/guestfish-actions.pod:3824
14048 msgid ""
14049 "This is a direct interface to the L<sfdisk(8)> program for creating "
14050 "partitions on block devices."
14051 msgstr ""
14052
14053 # type: textblock
14054 #: ../src/guestfs-actions.pod:5684 ../fish/guestfish-actions.pod:3827
14055 msgid "C<device> should be a block device, for example C</dev/sda>."
14056 msgstr ""
14057
14058 # type: textblock
14059 #: ../src/guestfs-actions.pod:5686 ../fish/guestfish-actions.pod:3829
14060 msgid ""
14061 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
14062 "sectors on the device, which are passed directly to sfdisk as the I<-C>, I<-"
14063 "H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
14064 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
14065 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
14066 "the kernel) cannot work out the right geometry and you will need to tell it."
14067 msgstr ""
14068
14069 # type: textblock
14070 #: ../src/guestfs-actions.pod:5694 ../fish/guestfish-actions.pod:3837
14071 msgid ""
14072 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
14073 "refer to the L<sfdisk(8)> manpage."
14074 msgstr ""
14075
14076 # type: textblock
14077 #: ../src/guestfs-actions.pod:5697 ../fish/guestfish-actions.pod:3840
14078 msgid ""
14079 "To create a single partition occupying the whole disk, you would pass "
14080 "C<lines> as a single element list, when the single element being the string "
14081 "C<,> (comma)."
14082 msgstr ""
14083
14084 # type: textblock
14085 #: ../src/guestfs-actions.pod:5701
14086 msgid ""
14087 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
14088 msgstr ""
14089
14090 # type: =head2
14091 #: ../src/guestfs-actions.pod:5711
14092 msgid "guestfs_sfdiskM"
14093 msgstr ""
14094
14095 # type: verbatim
14096 #: ../src/guestfs-actions.pod:5713
14097 #, no-wrap
14098 msgid ""
14099 " int\n"
14100 " guestfs_sfdiskM (guestfs_h *g,\n"
14101 "                  const char *device,\n"
14102 "                  char *const *lines);\n"
14103 "\n"
14104 msgstr ""
14105
14106 # type: textblock
14107 #: ../src/guestfs-actions.pod:5718
14108 msgid ""
14109 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
14110 "partition sizes are specified in megabytes only (rounded to the nearest "
14111 "cylinder) and you don't need to specify the cyls, heads and sectors "
14112 "parameters which were rarely if ever used anyway."
14113 msgstr ""
14114
14115 # type: textblock
14116 #: ../src/guestfs-actions.pod:5724
14117 msgid ""
14118 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
14119 "C<guestfs_part_disk>"
14120 msgstr ""
14121
14122 # type: =head2
14123 #: ../src/guestfs-actions.pod:5734
14124 msgid "guestfs_sfdisk_N"
14125 msgstr ""
14126
14127 # type: verbatim
14128 #: ../src/guestfs-actions.pod:5736
14129 #, no-wrap
14130 msgid ""
14131 " int\n"
14132 " guestfs_sfdisk_N (guestfs_h *g,\n"
14133 "                   const char *device,\n"
14134 "                   int partnum,\n"
14135 "                   int cyls,\n"
14136 "                   int heads,\n"
14137 "                   int sectors,\n"
14138 "                   const char *line);\n"
14139 "\n"
14140 msgstr ""
14141
14142 # type: textblock
14143 #: ../src/guestfs-actions.pod:5745 ../fish/guestfish-actions.pod:3870
14144 msgid ""
14145 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
14146 "(note: C<n> counts from 1)."
14147 msgstr ""
14148
14149 # type: textblock
14150 #: ../src/guestfs-actions.pod:5748
14151 msgid ""
14152 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
14153 "for the cyls/heads/sectors parameters."
14154 msgstr ""
14155
14156 # type: textblock
14157 #: ../src/guestfs-actions.pod:5751
14158 msgid "See also: C<guestfs_part_add>"
14159 msgstr ""
14160
14161 # type: =head2
14162 #: ../src/guestfs-actions.pod:5760
14163 msgid "guestfs_sfdisk_disk_geometry"
14164 msgstr ""
14165
14166 # type: verbatim
14167 #: ../src/guestfs-actions.pod:5762
14168 #, no-wrap
14169 msgid ""
14170 " char *\n"
14171 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
14172 "                               const char *device);\n"
14173 "\n"
14174 msgstr ""
14175
14176 # type: textblock
14177 #: ../src/guestfs-actions.pod:5766
14178 msgid ""
14179 "This displays the disk geometry of C<device> read from the partition table.  "
14180 "Especially in the case where the underlying block device has been resized, "
14181 "this can be different from the kernel's idea of the geometry (see "
14182 "C<guestfs_sfdisk_kernel_geometry>)."
14183 msgstr ""
14184
14185 # type: textblock
14186 #: ../src/guestfs-actions.pod:5771 ../src/guestfs-actions.pod:5787
14187 #: ../fish/guestfish-actions.pod:3890 ../fish/guestfish-actions.pod:3899
14188 msgid "The result is in human-readable format, and not designed to be parsed."
14189 msgstr ""
14190
14191 # type: =head2
14192 #: ../src/guestfs-actions.pod:5779
14193 msgid "guestfs_sfdisk_kernel_geometry"
14194 msgstr ""
14195
14196 # type: verbatim
14197 #: ../src/guestfs-actions.pod:5781
14198 #, no-wrap
14199 msgid ""
14200 " char *\n"
14201 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
14202 "                                 const char *device);\n"
14203 "\n"
14204 msgstr ""
14205
14206 # type: textblock
14207 #: ../src/guestfs-actions.pod:5785 ../fish/guestfish-actions.pod:3897
14208 msgid "This displays the kernel's idea of the geometry of C<device>."
14209 msgstr ""
14210
14211 # type: =head2
14212 #: ../src/guestfs-actions.pod:5795
14213 msgid "guestfs_sfdisk_l"
14214 msgstr ""
14215
14216 # type: verbatim
14217 #: ../src/guestfs-actions.pod:5797
14218 #, no-wrap
14219 msgid ""
14220 " char *\n"
14221 " guestfs_sfdisk_l (guestfs_h *g,\n"
14222 "                   const char *device);\n"
14223 "\n"
14224 msgstr ""
14225
14226 # type: textblock
14227 #: ../src/guestfs-actions.pod:5801 ../fish/guestfish-actions.pod:3906
14228 msgid ""
14229 "This displays the partition table on C<device>, in the human-readable output "
14230 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
14231 msgstr ""
14232
14233 # type: textblock
14234 #: ../src/guestfs-actions.pod:5805
14235 msgid "See also: C<guestfs_part_list>"
14236 msgstr ""
14237
14238 # type: =head2
14239 #: ../src/guestfs-actions.pod:5812
14240 msgid "guestfs_sh"
14241 msgstr ""
14242
14243 # type: verbatim
14244 #: ../src/guestfs-actions.pod:5814
14245 #, no-wrap
14246 msgid ""
14247 " char *\n"
14248 " guestfs_sh (guestfs_h *g,\n"
14249 "             const char *command);\n"
14250 "\n"
14251 msgstr ""
14252
14253 # type: textblock
14254 #: ../src/guestfs-actions.pod:5818 ../fish/guestfish-actions.pod:3916
14255 msgid ""
14256 "This call runs a command from the guest filesystem via the guest's C</bin/"
14257 "sh>."
14258 msgstr ""
14259
14260 # type: textblock
14261 #: ../src/guestfs-actions.pod:5821
14262 msgid "This is like C<guestfs_command>, but passes the command to:"
14263 msgstr ""
14264
14265 # type: verbatim
14266 #: ../src/guestfs-actions.pod:5823 ../fish/guestfish-actions.pod:3921
14267 #, no-wrap
14268 msgid ""
14269 " /bin/sh -c \"command\"\n"
14270 "\n"
14271 msgstr ""
14272
14273 # type: textblock
14274 #: ../src/guestfs-actions.pod:5825 ../fish/guestfish-actions.pod:3923
14275 msgid ""
14276 "Depending on the guest's shell, this usually results in wildcards being "
14277 "expanded, shell expressions being interpolated and so on."
14278 msgstr ""
14279
14280 # type: textblock
14281 #: ../src/guestfs-actions.pod:5829
14282 msgid "All the provisos about C<guestfs_command> apply to this call."
14283 msgstr ""
14284
14285 # type: =head2
14286 #: ../src/guestfs-actions.pod:5836
14287 msgid "guestfs_sh_lines"
14288 msgstr ""
14289
14290 # type: verbatim
14291 #: ../src/guestfs-actions.pod:5838
14292 #, no-wrap
14293 msgid ""
14294 " char **\n"
14295 " guestfs_sh_lines (guestfs_h *g,\n"
14296 "                   const char *command);\n"
14297 "\n"
14298 msgstr ""
14299
14300 # type: textblock
14301 #: ../src/guestfs-actions.pod:5842
14302 msgid ""
14303 "This is the same as C<guestfs_sh>, but splits the result into a list of "
14304 "lines."
14305 msgstr ""
14306
14307 # type: textblock
14308 #: ../src/guestfs-actions.pod:5845
14309 msgid "See also: C<guestfs_command_lines>"
14310 msgstr ""
14311
14312 # type: =head2
14313 #: ../src/guestfs-actions.pod:5853
14314 msgid "guestfs_sleep"
14315 msgstr ""
14316
14317 # type: verbatim
14318 #: ../src/guestfs-actions.pod:5855
14319 #, no-wrap
14320 msgid ""
14321 " int\n"
14322 " guestfs_sleep (guestfs_h *g,\n"
14323 "                int secs);\n"
14324 "\n"
14325 msgstr ""
14326
14327 # type: textblock
14328 #: ../src/guestfs-actions.pod:5859 ../fish/guestfish-actions.pod:3942
14329 msgid "Sleep for C<secs> seconds."
14330 msgstr ""
14331
14332 # type: textblock
14333 #: ../src/guestfs-actions.pod:5863
14334 msgid "(Added in 1.0.41)"
14335 msgstr ""
14336
14337 # type: =head2
14338 #: ../src/guestfs-actions.pod:5865 ../src/guestfs-structs.pod:109
14339 msgid "guestfs_stat"
14340 msgstr ""
14341
14342 # type: verbatim
14343 #: ../src/guestfs-actions.pod:5867
14344 #, no-wrap
14345 msgid ""
14346 " struct guestfs_stat *\n"
14347 " guestfs_stat (guestfs_h *g,\n"
14348 "               const char *path);\n"
14349 "\n"
14350 msgstr ""
14351
14352 # type: textblock
14353 #: ../src/guestfs-actions.pod:5873 ../fish/guestfish-actions.pod:3950
14354 msgid "This is the same as the C<stat(2)> system call."
14355 msgstr ""
14356
14357 # type: =head2
14358 #: ../src/guestfs-actions.pod:5881 ../src/guestfs-structs.pod:135
14359 msgid "guestfs_statvfs"
14360 msgstr ""
14361
14362 # type: verbatim
14363 #: ../src/guestfs-actions.pod:5883
14364 #, no-wrap
14365 msgid ""
14366 " struct guestfs_statvfs *\n"
14367 " guestfs_statvfs (guestfs_h *g,\n"
14368 "                  const char *path);\n"
14369 "\n"
14370 msgstr ""
14371
14372 # type: textblock
14373 #: ../src/guestfs-actions.pod:5887 ../fish/guestfish-actions.pod:3956
14374 msgid ""
14375 "Returns file system statistics for any mounted file system.  C<path> should "
14376 "be a file or directory in the mounted file system (typically it is the mount "
14377 "point itself, but it doesn't need to be)."
14378 msgstr ""
14379
14380 # type: textblock
14381 #: ../src/guestfs-actions.pod:5891 ../fish/guestfish-actions.pod:3960
14382 msgid "This is the same as the C<statvfs(2)> system call."
14383 msgstr ""
14384
14385 # type: textblock
14386 #: ../src/guestfs-actions.pod:5893
14387 msgid ""
14388 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
14389 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
14390 msgstr ""
14391
14392 # type: =head2
14393 #: ../src/guestfs-actions.pod:5899
14394 msgid "guestfs_strings"
14395 msgstr ""
14396
14397 # type: verbatim
14398 #: ../src/guestfs-actions.pod:5901
14399 #, no-wrap
14400 msgid ""
14401 " char **\n"
14402 " guestfs_strings (guestfs_h *g,\n"
14403 "                  const char *path);\n"
14404 "\n"
14405 msgstr ""
14406
14407 # type: textblock
14408 #: ../src/guestfs-actions.pod:5905 ../fish/guestfish-actions.pod:3966
14409 msgid ""
14410 "This runs the L<strings(1)> command on a file and returns the list of "
14411 "printable strings found."
14412 msgstr ""
14413
14414 # type: =head2
14415 #: ../src/guestfs-actions.pod:5917
14416 msgid "guestfs_strings_e"
14417 msgstr ""
14418
14419 # type: verbatim
14420 #: ../src/guestfs-actions.pod:5919
14421 #, no-wrap
14422 msgid ""
14423 " char **\n"
14424 " guestfs_strings_e (guestfs_h *g,\n"
14425 "                    const char *encoding,\n"
14426 "                    const char *path);\n"
14427 "\n"
14428 msgstr ""
14429
14430 # type: textblock
14431 #: ../src/guestfs-actions.pod:5924
14432 msgid ""
14433 "This is like the C<guestfs_strings> command, but allows you to specify the "
14434 "encoding of strings that are looked for in the source file C<path>."
14435 msgstr ""
14436
14437 # type: textblock
14438 #: ../src/guestfs-actions.pod:5928 ../fish/guestfish-actions.pod:3980
14439 msgid "Allowed encodings are:"
14440 msgstr ""
14441
14442 # type: =item
14443 #: ../src/guestfs-actions.pod:5932 ../fish/guestfish-actions.pod:3984
14444 msgid "s"
14445 msgstr ""
14446
14447 # type: textblock
14448 #: ../src/guestfs-actions.pod:5934
14449 msgid ""
14450 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
14451 "ISO-8859-X (this is what C<guestfs_strings> uses)."
14452 msgstr ""
14453
14454 # type: =item
14455 #: ../src/guestfs-actions.pod:5937 ../fish/guestfish-actions.pod:3989
14456 msgid "S"
14457 msgstr ""
14458
14459 # type: textblock
14460 #: ../src/guestfs-actions.pod:5939 ../fish/guestfish-actions.pod:3991
14461 msgid "Single 8-bit-byte characters."
14462 msgstr ""
14463
14464 # type: =item
14465 #: ../src/guestfs-actions.pod:5941 ../fish/guestfish-actions.pod:3993
14466 msgid "b"
14467 msgstr ""
14468
14469 # type: textblock
14470 #: ../src/guestfs-actions.pod:5943 ../fish/guestfish-actions.pod:3995
14471 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
14472 msgstr ""
14473
14474 # type: =item
14475 #: ../src/guestfs-actions.pod:5946 ../fish/guestfish-actions.pod:3998
14476 msgid "l (lower case letter L)"
14477 msgstr ""
14478
14479 # type: textblock
14480 #: ../src/guestfs-actions.pod:5948 ../fish/guestfish-actions.pod:4000
14481 msgid ""
14482 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
14483 "examining binaries in Windows guests."
14484 msgstr ""
14485
14486 # type: =item
14487 #: ../src/guestfs-actions.pod:5951 ../fish/guestfish-actions.pod:4003
14488 msgid "B"
14489 msgstr ""
14490
14491 # type: textblock
14492 #: ../src/guestfs-actions.pod:5953 ../fish/guestfish-actions.pod:4005
14493 msgid "32-bit big endian such as UCS-4BE."
14494 msgstr ""
14495
14496 # type: =item
14497 #: ../src/guestfs-actions.pod:5955 ../fish/guestfish-actions.pod:4007
14498 msgid "L"
14499 msgstr ""
14500
14501 # type: textblock
14502 #: ../src/guestfs-actions.pod:5957 ../fish/guestfish-actions.pod:4009
14503 msgid "32-bit little endian such as UCS-4LE."
14504 msgstr ""
14505
14506 # type: textblock
14507 #: ../src/guestfs-actions.pod:5961 ../fish/guestfish-actions.pod:4013
14508 msgid "The returned strings are transcoded to UTF-8."
14509 msgstr ""
14510
14511 # type: =head2
14512 #: ../src/guestfs-actions.pod:5972
14513 msgid "guestfs_swapoff_device"
14514 msgstr ""
14515
14516 # type: verbatim
14517 #: ../src/guestfs-actions.pod:5974
14518 #, no-wrap
14519 msgid ""
14520 " int\n"
14521 " guestfs_swapoff_device (guestfs_h *g,\n"
14522 "                         const char *device);\n"
14523 "\n"
14524 msgstr ""
14525
14526 # type: textblock
14527 #: ../src/guestfs-actions.pod:5978
14528 msgid ""
14529 "This command disables the libguestfs appliance swap device or partition "
14530 "named C<device>.  See C<guestfs_swapon_device>."
14531 msgstr ""
14532
14533 # type: =head2
14534 #: ../src/guestfs-actions.pod:5986
14535 msgid "guestfs_swapoff_file"
14536 msgstr ""
14537
14538 # type: verbatim
14539 #: ../src/guestfs-actions.pod:5988
14540 #, no-wrap
14541 msgid ""
14542 " int\n"
14543 " guestfs_swapoff_file (guestfs_h *g,\n"
14544 "                       const char *file);\n"
14545 "\n"
14546 msgstr ""
14547
14548 # type: textblock
14549 #: ../src/guestfs-actions.pod:5992 ../fish/guestfish-actions.pod:4030
14550 msgid "This command disables the libguestfs appliance swap on file."
14551 msgstr ""
14552
14553 # type: =head2
14554 #: ../src/guestfs-actions.pod:5998
14555 msgid "guestfs_swapoff_label"
14556 msgstr ""
14557
14558 # type: verbatim
14559 #: ../src/guestfs-actions.pod:6000
14560 #, no-wrap
14561 msgid ""
14562 " int\n"
14563 " guestfs_swapoff_label (guestfs_h *g,\n"
14564 "                        const char *label);\n"
14565 "\n"
14566 msgstr ""
14567
14568 # type: textblock
14569 #: ../src/guestfs-actions.pod:6004 ../fish/guestfish-actions.pod:4036
14570 msgid ""
14571 "This command disables the libguestfs appliance swap on labeled swap "
14572 "partition."
14573 msgstr ""
14574
14575 # type: =head2
14576 #: ../src/guestfs-actions.pod:6011
14577 msgid "guestfs_swapoff_uuid"
14578 msgstr ""
14579
14580 # type: verbatim
14581 #: ../src/guestfs-actions.pod:6013
14582 #, no-wrap
14583 msgid ""
14584 " int\n"
14585 " guestfs_swapoff_uuid (guestfs_h *g,\n"
14586 "                       const char *uuid);\n"
14587 "\n"
14588 msgstr ""
14589
14590 # type: textblock
14591 #: ../src/guestfs-actions.pod:6017 ../fish/guestfish-actions.pod:4043
14592 msgid ""
14593 "This command disables the libguestfs appliance swap partition with the given "
14594 "UUID."
14595 msgstr ""
14596
14597 # type: =head2
14598 #: ../src/guestfs-actions.pod:6024
14599 msgid "guestfs_swapon_device"
14600 msgstr ""
14601
14602 # type: verbatim
14603 #: ../src/guestfs-actions.pod:6026
14604 #, no-wrap
14605 msgid ""
14606 " int\n"
14607 " guestfs_swapon_device (guestfs_h *g,\n"
14608 "                        const char *device);\n"
14609 "\n"
14610 msgstr ""
14611
14612 # type: textblock
14613 #: ../src/guestfs-actions.pod:6030
14614 msgid ""
14615 "This command enables the libguestfs appliance to use the swap device or "
14616 "partition named C<device>.  The increased memory is made available for all "
14617 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
14618 msgstr ""
14619
14620 # type: textblock
14621 #: ../src/guestfs-actions.pod:6035 ../fish/guestfish-actions.pod:4055
14622 msgid ""
14623 "Note that you should not swap to existing guest swap partitions unless you "
14624 "know what you are doing.  They may contain hibernation information, or other "
14625 "information that the guest doesn't want you to trash.  You also risk leaking "
14626 "information about the host to the guest this way.  Instead, attach a new "
14627 "host device to the guest and swap on that."
14628 msgstr ""
14629
14630 # type: =head2
14631 #: ../src/guestfs-actions.pod:6046
14632 msgid "guestfs_swapon_file"
14633 msgstr ""
14634
14635 # type: verbatim
14636 #: ../src/guestfs-actions.pod:6048
14637 #, no-wrap
14638 msgid ""
14639 " int\n"
14640 " guestfs_swapon_file (guestfs_h *g,\n"
14641 "                      const char *file);\n"
14642 "\n"
14643 msgstr ""
14644
14645 # type: textblock
14646 #: ../src/guestfs-actions.pod:6052
14647 msgid ""
14648 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
14649 "notes."
14650 msgstr ""
14651
14652 # type: =head2
14653 #: ../src/guestfs-actions.pod:6059
14654 msgid "guestfs_swapon_label"
14655 msgstr ""
14656
14657 # type: verbatim
14658 #: ../src/guestfs-actions.pod:6061
14659 #, no-wrap
14660 msgid ""
14661 " int\n"
14662 " guestfs_swapon_label (guestfs_h *g,\n"
14663 "                       const char *label);\n"
14664 "\n"
14665 msgstr ""
14666
14667 # type: textblock
14668 #: ../src/guestfs-actions.pod:6065
14669 msgid ""
14670 "This command enables swap to a labeled swap partition.  See "
14671 "C<guestfs_swapon_device> for other notes."
14672 msgstr ""
14673
14674 # type: =head2
14675 #: ../src/guestfs-actions.pod:6072
14676 msgid "guestfs_swapon_uuid"
14677 msgstr ""
14678
14679 # type: verbatim
14680 #: ../src/guestfs-actions.pod:6074
14681 #, no-wrap
14682 msgid ""
14683 " int\n"
14684 " guestfs_swapon_uuid (guestfs_h *g,\n"
14685 "                      const char *uuid);\n"
14686 "\n"
14687 msgstr ""
14688
14689 # type: textblock
14690 #: ../src/guestfs-actions.pod:6078
14691 msgid ""
14692 "This command enables swap to a swap partition with the given UUID.  See "
14693 "C<guestfs_swapon_device> for other notes."
14694 msgstr ""
14695
14696 # type: =head2
14697 #: ../src/guestfs-actions.pod:6085
14698 msgid "guestfs_sync"
14699 msgstr ""
14700
14701 # type: verbatim
14702 #: ../src/guestfs-actions.pod:6087
14703 #, no-wrap
14704 msgid ""
14705 " int\n"
14706 " guestfs_sync (guestfs_h *g);\n"
14707 "\n"
14708 msgstr ""
14709
14710 # type: textblock
14711 #: ../src/guestfs-actions.pod:6090 ../fish/guestfish-actions.pod:4087
14712 msgid ""
14713 "This syncs the disk, so that any writes are flushed through to the "
14714 "underlying disk image."
14715 msgstr ""
14716
14717 # type: textblock
14718 #: ../src/guestfs-actions.pod:6093 ../fish/guestfish-actions.pod:4090
14719 msgid ""
14720 "You should always call this if you have modified a disk image, before "
14721 "closing the handle."
14722 msgstr ""
14723
14724 # type: =head2
14725 #: ../src/guestfs-actions.pod:6100
14726 msgid "guestfs_tail"
14727 msgstr ""
14728
14729 # type: verbatim
14730 #: ../src/guestfs-actions.pod:6102
14731 #, no-wrap
14732 msgid ""
14733 " char **\n"
14734 " guestfs_tail (guestfs_h *g,\n"
14735 "               const char *path);\n"
14736 "\n"
14737 msgstr ""
14738
14739 # type: textblock
14740 #: ../src/guestfs-actions.pod:6106 ../fish/guestfish-actions.pod:4097
14741 msgid ""
14742 "This command returns up to the last 10 lines of a file as a list of strings."
14743 msgstr ""
14744
14745 # type: =head2
14746 #: ../src/guestfs-actions.pod:6118
14747 msgid "guestfs_tail_n"
14748 msgstr ""
14749
14750 # type: verbatim
14751 #: ../src/guestfs-actions.pod:6120
14752 #, no-wrap
14753 msgid ""
14754 " char **\n"
14755 " guestfs_tail_n (guestfs_h *g,\n"
14756 "                 int nrlines,\n"
14757 "                 const char *path);\n"
14758 "\n"
14759 msgstr ""
14760
14761 # type: textblock
14762 #: ../src/guestfs-actions.pod:6125 ../fish/guestfish-actions.pod:4107
14763 msgid ""
14764 "If the parameter C<nrlines> is a positive number, this returns the last "
14765 "C<nrlines> lines of the file C<path>."
14766 msgstr ""
14767
14768 # type: textblock
14769 #: ../src/guestfs-actions.pod:6128 ../fish/guestfish-actions.pod:4110
14770 msgid ""
14771 "If the parameter C<nrlines> is a negative number, this returns lines from "
14772 "the file C<path>, starting with the C<-nrlines>th line."
14773 msgstr ""
14774
14775 # type: =head2
14776 #: ../src/guestfs-actions.pod:6142
14777 msgid "guestfs_tar_in"
14778 msgstr ""
14779
14780 # type: verbatim
14781 #: ../src/guestfs-actions.pod:6144
14782 #, no-wrap
14783 msgid ""
14784 " int\n"
14785 " guestfs_tar_in (guestfs_h *g,\n"
14786 "                 const char *tarfile,\n"
14787 "                 const char *directory);\n"
14788 "\n"
14789 msgstr ""
14790
14791 # type: textblock
14792 #: ../src/guestfs-actions.pod:6149 ../fish/guestfish-actions.pod:4122
14793 msgid ""
14794 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
14795 "tar file) into C<directory>."
14796 msgstr ""
14797
14798 # type: textblock
14799 #: ../src/guestfs-actions.pod:6152
14800 msgid ""
14801 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
14802 msgstr ""
14803
14804 # type: textblock
14805 #: ../src/guestfs-actions.pod:6157 ../src/guestfs-actions.pod:6174
14806 #: ../src/guestfs-actions.pod:6190 ../src/guestfs-actions.pod:6206
14807 msgid "(Added in 1.0.3)"
14808 msgstr ""
14809
14810 # type: =head2
14811 #: ../src/guestfs-actions.pod:6159
14812 msgid "guestfs_tar_out"
14813 msgstr ""
14814
14815 # type: verbatim
14816 #: ../src/guestfs-actions.pod:6161
14817 #, no-wrap
14818 msgid ""
14819 " int\n"
14820 " guestfs_tar_out (guestfs_h *g,\n"
14821 "                  const char *directory,\n"
14822 "                  const char *tarfile);\n"
14823 "\n"
14824 msgstr ""
14825
14826 # type: textblock
14827 #: ../src/guestfs-actions.pod:6166 ../fish/guestfish-actions.pod:4134
14828 msgid ""
14829 "This command packs the contents of C<directory> and downloads it to local "
14830 "file C<tarfile>."
14831 msgstr ""
14832
14833 # type: textblock
14834 #: ../src/guestfs-actions.pod:6169
14835 msgid ""
14836 "To download a compressed tarball, use C<guestfs_tgz_out> or "
14837 "C<guestfs_txz_out>."
14838 msgstr ""
14839
14840 # type: =head2
14841 #: ../src/guestfs-actions.pod:6176
14842 msgid "guestfs_tgz_in"
14843 msgstr ""
14844
14845 # type: verbatim
14846 #: ../src/guestfs-actions.pod:6178
14847 #, no-wrap
14848 msgid ""
14849 " int\n"
14850 " guestfs_tgz_in (guestfs_h *g,\n"
14851 "                 const char *tarball,\n"
14852 "                 const char *directory);\n"
14853 "\n"
14854 msgstr ""
14855
14856 # type: textblock
14857 #: ../src/guestfs-actions.pod:6183 ../fish/guestfish-actions.pod:4146
14858 msgid ""
14859 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
14860 "tar file) into C<directory>."
14861 msgstr ""
14862
14863 # type: textblock
14864 #: ../src/guestfs-actions.pod:6186
14865 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
14866 msgstr ""
14867
14868 # type: =head2
14869 #: ../src/guestfs-actions.pod:6192
14870 msgid "guestfs_tgz_out"
14871 msgstr ""
14872
14873 # type: verbatim
14874 #: ../src/guestfs-actions.pod:6194
14875 #, no-wrap
14876 msgid ""
14877 " int\n"
14878 " guestfs_tgz_out (guestfs_h *g,\n"
14879 "                  const char *directory,\n"
14880 "                  const char *tarball);\n"
14881 "\n"
14882 msgstr ""
14883
14884 # type: textblock
14885 #: ../src/guestfs-actions.pod:6199 ../fish/guestfish-actions.pod:4157
14886 msgid ""
14887 "This command packs the contents of C<directory> and downloads it to local "
14888 "file C<tarball>."
14889 msgstr ""
14890
14891 # type: textblock
14892 #: ../src/guestfs-actions.pod:6202
14893 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
14894 msgstr ""
14895
14896 # type: =head2
14897 #: ../src/guestfs-actions.pod:6208
14898 msgid "guestfs_touch"
14899 msgstr ""
14900
14901 # type: verbatim
14902 #: ../src/guestfs-actions.pod:6210
14903 #, no-wrap
14904 msgid ""
14905 " int\n"
14906 " guestfs_touch (guestfs_h *g,\n"
14907 "                const char *path);\n"
14908 "\n"
14909 msgstr ""
14910
14911 # type: textblock
14912 #: ../src/guestfs-actions.pod:6214 ../fish/guestfish-actions.pod:4168
14913 msgid ""
14914 "Touch acts like the L<touch(1)> command.  It can be used to update the "
14915 "timestamps on a file, or, if the file does not exist, to create a new zero-"
14916 "length file."
14917 msgstr ""
14918
14919 # type: textblock
14920 #: ../src/guestfs-actions.pod:6218 ../fish/guestfish-actions.pod:4172
14921 msgid ""
14922 "This command only works on regular files, and will fail on other file types "
14923 "such as directories, symbolic links, block special etc."
14924 msgstr ""
14925
14926 # type: =head2
14927 #: ../src/guestfs-actions.pod:6225
14928 msgid "guestfs_truncate"
14929 msgstr ""
14930
14931 # type: verbatim
14932 #: ../src/guestfs-actions.pod:6227
14933 #, no-wrap
14934 msgid ""
14935 " int\n"
14936 " guestfs_truncate (guestfs_h *g,\n"
14937 "                   const char *path);\n"
14938 "\n"
14939 msgstr ""
14940
14941 # type: textblock
14942 #: ../src/guestfs-actions.pod:6231 ../fish/guestfish-actions.pod:4179
14943 msgid ""
14944 "This command truncates C<path> to a zero-length file.  The file must exist "
14945 "already."
14946 msgstr ""
14947
14948 # type: =head2
14949 #: ../src/guestfs-actions.pod:6238
14950 msgid "guestfs_truncate_size"
14951 msgstr ""
14952
14953 # type: verbatim
14954 #: ../src/guestfs-actions.pod:6240
14955 #, no-wrap
14956 msgid ""
14957 " int\n"
14958 " guestfs_truncate_size (guestfs_h *g,\n"
14959 "                        const char *path,\n"
14960 "                        int64_t size);\n"
14961 "\n"
14962 msgstr ""
14963
14964 # type: textblock
14965 #: ../src/guestfs-actions.pod:6245 ../fish/guestfish-actions.pod:4186
14966 msgid ""
14967 "This command truncates C<path> to size C<size> bytes.  The file must exist "
14968 "already."
14969 msgstr ""
14970
14971 # type: textblock
14972 #: ../src/guestfs-actions.pod:6248
14973 msgid ""
14974 "If the current file size is less than C<size> then the file is extended to "
14975 "the required size with zero bytes.  This creates a sparse file (ie. disk "
14976 "blocks are not allocated for the file until you write to it).  To create a "
14977 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
14978 msgstr ""
14979
14980 # type: =head2
14981 #: ../src/guestfs-actions.pod:6258
14982 msgid "guestfs_tune2fs_l"
14983 msgstr ""
14984
14985 # type: verbatim
14986 #: ../src/guestfs-actions.pod:6260
14987 #, no-wrap
14988 msgid ""
14989 " char **\n"
14990 " guestfs_tune2fs_l (guestfs_h *g,\n"
14991 "                    const char *device);\n"
14992 "\n"
14993 msgstr ""
14994
14995 # type: textblock
14996 #: ../src/guestfs-actions.pod:6264 ../fish/guestfish-actions.pod:4199
14997 msgid ""
14998 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
14999 "C<device>."
15000 msgstr ""
15001
15002 # type: textblock
15003 #: ../src/guestfs-actions.pod:6267 ../fish/guestfish-actions.pod:4202
15004 msgid ""
15005 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
15006 "for more details.  The list of fields returned isn't clearly defined, and "
15007 "depends on both the version of C<tune2fs> that libguestfs was built against, "
15008 "and the filesystem itself."
15009 msgstr ""
15010
15011 # type: =head2
15012 #: ../src/guestfs-actions.pod:6280
15013 msgid "guestfs_txz_in"
15014 msgstr ""
15015
15016 # type: verbatim
15017 #: ../src/guestfs-actions.pod:6282
15018 #, no-wrap
15019 msgid ""
15020 " int\n"
15021 " guestfs_txz_in (guestfs_h *g,\n"
15022 "                 const char *tarball,\n"
15023 "                 const char *directory);\n"
15024 "\n"
15025 msgstr ""
15026
15027 # type: textblock
15028 #: ../src/guestfs-actions.pod:6287 ../fish/guestfish-actions.pod:4211
15029 msgid ""
15030 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
15031 "tar file) into C<directory>."
15032 msgstr ""
15033
15034 # type: =head2
15035 #: ../src/guestfs-actions.pod:6294
15036 msgid "guestfs_txz_out"
15037 msgstr ""
15038
15039 # type: verbatim
15040 #: ../src/guestfs-actions.pod:6296
15041 #, no-wrap
15042 msgid ""
15043 " int\n"
15044 " guestfs_txz_out (guestfs_h *g,\n"
15045 "                  const char *directory,\n"
15046 "                  const char *tarball);\n"
15047 "\n"
15048 msgstr ""
15049
15050 # type: textblock
15051 #: ../src/guestfs-actions.pod:6301 ../fish/guestfish-actions.pod:4220
15052 msgid ""
15053 "This command packs the contents of C<directory> and downloads it to local "
15054 "file C<tarball> (as an xz compressed tar archive)."
15055 msgstr ""
15056
15057 # type: =head2
15058 #: ../src/guestfs-actions.pod:6308
15059 msgid "guestfs_umask"
15060 msgstr ""
15061
15062 # type: verbatim
15063 #: ../src/guestfs-actions.pod:6310
15064 #, no-wrap
15065 msgid ""
15066 " int\n"
15067 " guestfs_umask (guestfs_h *g,\n"
15068 "                int mask);\n"
15069 "\n"
15070 msgstr ""
15071
15072 # type: textblock
15073 #: ../src/guestfs-actions.pod:6314 ../fish/guestfish-actions.pod:4229
15074 msgid ""
15075 "This function sets the mask used for creating new files and device nodes to "
15076 "C<mask & 0777>."
15077 msgstr ""
15078
15079 # type: textblock
15080 #: ../src/guestfs-actions.pod:6317 ../fish/guestfish-actions.pod:4232
15081 msgid ""
15082 "Typical umask values would be C<022> which creates new files with "
15083 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
15084 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
15085 msgstr ""
15086
15087 # type: textblock
15088 #: ../src/guestfs-actions.pod:6322 ../fish/guestfish-actions.pod:4237
15089 msgid ""
15090 "The default umask is C<022>.  This is important because it means that "
15091 "directories and device nodes will be created with C<0644> or C<0755> mode "
15092 "even if you specify C<0777>."
15093 msgstr ""
15094
15095 # type: textblock
15096 #: ../src/guestfs-actions.pod:6326
15097 msgid ""
15098 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
15099 "C<guestfs_mkdir>."
15100 msgstr ""
15101
15102 # type: textblock
15103 #: ../src/guestfs-actions.pod:6329 ../fish/guestfish-actions.pod:4244
15104 msgid "This call returns the previous umask."
15105 msgstr ""
15106
15107 # type: =head2
15108 #: ../src/guestfs-actions.pod:6335
15109 msgid "guestfs_umount"
15110 msgstr ""
15111
15112 # type: verbatim
15113 #: ../src/guestfs-actions.pod:6337
15114 #, no-wrap
15115 msgid ""
15116 " int\n"
15117 " guestfs_umount (guestfs_h *g,\n"
15118 "                 const char *pathordevice);\n"
15119 "\n"
15120 msgstr ""
15121
15122 # type: textblock
15123 #: ../src/guestfs-actions.pod:6341 ../fish/guestfish-actions.pod:4252
15124 msgid ""
15125 "This unmounts the given filesystem.  The filesystem may be specified either "
15126 "by its mountpoint (path) or the device which contains the filesystem."
15127 msgstr ""
15128
15129 # type: =head2
15130 #: ../src/guestfs-actions.pod:6349
15131 msgid "guestfs_umount_all"
15132 msgstr ""
15133
15134 # type: verbatim
15135 #: ../src/guestfs-actions.pod:6351
15136 #, no-wrap
15137 msgid ""
15138 " int\n"
15139 " guestfs_umount_all (guestfs_h *g);\n"
15140 "\n"
15141 msgstr ""
15142
15143 # type: textblock
15144 #: ../src/guestfs-actions.pod:6354 ../fish/guestfish-actions.pod:4262
15145 msgid "This unmounts all mounted filesystems."
15146 msgstr ""
15147
15148 # type: textblock
15149 #: ../src/guestfs-actions.pod:6356 ../fish/guestfish-actions.pod:4264
15150 msgid "Some internal mounts are not unmounted by this call."
15151 msgstr ""
15152
15153 # type: =head2
15154 #: ../src/guestfs-actions.pod:6362
15155 msgid "guestfs_upload"
15156 msgstr ""
15157
15158 # type: verbatim
15159 #: ../src/guestfs-actions.pod:6364
15160 #, no-wrap
15161 msgid ""
15162 " int\n"
15163 " guestfs_upload (guestfs_h *g,\n"
15164 "                 const char *filename,\n"
15165 "                 const char *remotefilename);\n"
15166 "\n"
15167 msgstr ""
15168
15169 # type: textblock
15170 #: ../src/guestfs-actions.pod:6369 ../src/guestfs-actions.pod:6388
15171 #: ../fish/guestfish-actions.pod:4270 ../fish/guestfish-actions.pod:4283
15172 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
15173 msgstr ""
15174
15175 # type: textblock
15176 #: ../src/guestfs-actions.pod:6374
15177 msgid "See also C<guestfs_download>."
15178 msgstr ""
15179
15180 # type: =head2
15181 #: ../src/guestfs-actions.pod:6380
15182 msgid "guestfs_upload_offset"
15183 msgstr ""
15184
15185 # type: verbatim
15186 #: ../src/guestfs-actions.pod:6382
15187 #, no-wrap
15188 msgid ""
15189 " int\n"
15190 " guestfs_upload_offset (guestfs_h *g,\n"
15191 "                        const char *filename,\n"
15192 "                        const char *remotefilename,\n"
15193 "                        int64_t offset);\n"
15194 "\n"
15195 msgstr ""
15196
15197 # type: textblock
15198 #: ../src/guestfs-actions.pod:6391 ../fish/guestfish-actions.pod:4286
15199 msgid ""
15200 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
15201 "The intention is to overwrite parts of existing files or devices, although "
15202 "if a non-existant file is specified then it is created with a \"hole\" "
15203 "before C<offset>.  The size of the data written is implicit in the size of "
15204 "the source C<filename>."
15205 msgstr ""
15206
15207 # type: textblock
15208 #: ../src/guestfs-actions.pod:6398
15209 msgid ""
15210 "Note that there is no limit on the amount of data that can be uploaded with "
15211 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
15212 "full amount unless an error occurs."
15213 msgstr ""
15214
15215 # type: textblock
15216 #: ../src/guestfs-actions.pod:6403
15217 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
15218 msgstr ""
15219
15220 # type: =head2
15221 #: ../src/guestfs-actions.pod:6409
15222 msgid "guestfs_utimens"
15223 msgstr ""
15224
15225 # type: verbatim
15226 #: ../src/guestfs-actions.pod:6411
15227 #, no-wrap
15228 msgid ""
15229 " int\n"
15230 " guestfs_utimens (guestfs_h *g,\n"
15231 "                  const char *path,\n"
15232 "                  int64_t atsecs,\n"
15233 "                  int64_t atnsecs,\n"
15234 "                  int64_t mtsecs,\n"
15235 "                  int64_t mtnsecs);\n"
15236 "\n"
15237 msgstr ""
15238
15239 # type: textblock
15240 #: ../src/guestfs-actions.pod:6419 ../fish/guestfish-actions.pod:4306
15241 msgid "This command sets the timestamps of a file with nanosecond precision."
15242 msgstr ""
15243
15244 # type: textblock
15245 #: ../src/guestfs-actions.pod:6422 ../fish/guestfish-actions.pod:4309
15246 msgid ""
15247 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
15248 "from the epoch."
15249 msgstr ""
15250
15251 # type: textblock
15252 #: ../src/guestfs-actions.pod:6425 ../fish/guestfish-actions.pod:4312
15253 msgid ""
15254 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
15255 "nanoseconds from the epoch."
15256 msgstr ""
15257
15258 # type: textblock
15259 #: ../src/guestfs-actions.pod:6428 ../fish/guestfish-actions.pod:4315
15260 msgid ""
15261 "If the C<*nsecs> field contains the special value C<-1> then the "
15262 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
15263 "ignored in this case)."
15264 msgstr ""
15265
15266 # type: textblock
15267 #: ../src/guestfs-actions.pod:6432 ../fish/guestfish-actions.pod:4319
15268 msgid ""
15269 "If the C<*nsecs> field contains the special value C<-2> then the "
15270 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
15271 "in this case)."
15272 msgstr ""
15273
15274 # type: =head2
15275 #: ../src/guestfs-actions.pod:6440 ../src/guestfs-structs.pod:175
15276 msgid "guestfs_version"
15277 msgstr ""
15278
15279 # type: verbatim
15280 #: ../src/guestfs-actions.pod:6442
15281 #, no-wrap
15282 msgid ""
15283 " struct guestfs_version *\n"
15284 " guestfs_version (guestfs_h *g);\n"
15285 "\n"
15286 msgstr ""
15287
15288 # type: textblock
15289 #: ../src/guestfs-actions.pod:6445 ../fish/guestfish-actions.pod:4327
15290 msgid ""
15291 "Return the libguestfs version number that the program is linked against."
15292 msgstr ""
15293
15294 # type: textblock
15295 #: ../src/guestfs-actions.pod:6448 ../fish/guestfish-actions.pod:4330
15296 msgid ""
15297 "Note that because of dynamic linking this is not necessarily the version of "
15298 "libguestfs that you compiled against.  You can compile the program, and then "
15299 "at runtime dynamically link against a completely different C<libguestfs.so> "
15300 "library."
15301 msgstr ""
15302
15303 # type: textblock
15304 #: ../src/guestfs-actions.pod:6453 ../fish/guestfish-actions.pod:4335
15305 msgid ""
15306 "This call was added in version C<1.0.58>.  In previous versions of "
15307 "libguestfs there was no way to get the version number.  From C code you can "
15308 "use dynamic linker functions to find out if this symbol exists (if it "
15309 "doesn't, then it's an earlier version)."
15310 msgstr ""
15311
15312 # type: textblock
15313 #: ../src/guestfs-actions.pod:6459 ../fish/guestfish-actions.pod:4341
15314 msgid ""
15315 "The call returns a structure with four elements.  The first three (C<major>, "
15316 "C<minor> and C<release>) are numbers and correspond to the usual version "
15317 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
15318 "but may be used for distro-specific information."
15319 msgstr ""
15320
15321 # type: textblock
15322 #: ../src/guestfs-actions.pod:6465 ../fish/guestfish-actions.pod:4347
15323 msgid ""
15324 "To construct the original version string: C<$major.$minor.$release$extra>"
15325 msgstr ""
15326
15327 # type: textblock
15328 #: ../src/guestfs-actions.pod:6468 ../fish/guestfish-actions.pod:4350
15329 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
15330 msgstr ""
15331
15332 # type: textblock
15333 #: ../src/guestfs-actions.pod:6470
15334 msgid ""
15335 "I<Note:> Don't use this call to test for availability of features.  In "
15336 "enterprise distributions we backport features from later versions into "
15337 "earlier versions, making this an unreliable way to test for features.  Use "
15338 "C<guestfs_available> instead."
15339 msgstr ""
15340
15341 # type: textblock
15342 #: ../src/guestfs-actions.pod:6476
15343 msgid ""
15344 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
15345 "error.  I<The caller must call C<guestfs_free_version> after use>."
15346 msgstr ""
15347
15348 # type: textblock
15349 #: ../src/guestfs-actions.pod:6480
15350 msgid "(Added in 1.0.58)"
15351 msgstr ""
15352
15353 # type: =head2
15354 #: ../src/guestfs-actions.pod:6482
15355 msgid "guestfs_vfs_label"
15356 msgstr ""
15357
15358 # type: verbatim
15359 #: ../src/guestfs-actions.pod:6484
15360 #, no-wrap
15361 msgid ""
15362 " char *\n"
15363 " guestfs_vfs_label (guestfs_h *g,\n"
15364 "                    const char *device);\n"
15365 "\n"
15366 msgstr ""
15367
15368 # type: textblock
15369 #: ../src/guestfs-actions.pod:6488 ../fish/guestfish-actions.pod:4362
15370 msgid "This returns the filesystem label of the filesystem on C<device>."
15371 msgstr ""
15372
15373 # type: textblock
15374 #: ../src/guestfs-actions.pod:6491 ../fish/guestfish-actions.pod:4365
15375 msgid "If the filesystem is unlabeled, this returns the empty string."
15376 msgstr ""
15377
15378 # type: textblock
15379 #: ../src/guestfs-actions.pod:6493
15380 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
15381 msgstr ""
15382
15383 # type: textblock
15384 #: ../src/guestfs-actions.pod:6498 ../src/guestfs-actions.pod:6535
15385 msgid "(Added in 1.3.18)"
15386 msgstr ""
15387
15388 # type: =head2
15389 #: ../src/guestfs-actions.pod:6500
15390 msgid "guestfs_vfs_type"
15391 msgstr ""
15392
15393 # type: verbatim
15394 #: ../src/guestfs-actions.pod:6502
15395 #, no-wrap
15396 msgid ""
15397 " char *\n"
15398 " guestfs_vfs_type (guestfs_h *g,\n"
15399 "                   const char *device);\n"
15400 "\n"
15401 msgstr ""
15402
15403 # type: textblock
15404 #: ../src/guestfs-actions.pod:6506 ../fish/guestfish-actions.pod:4373
15405 msgid ""
15406 "This command gets the filesystem type corresponding to the filesystem on "
15407 "C<device>."
15408 msgstr ""
15409
15410 # type: textblock
15411 #: ../src/guestfs-actions.pod:6509 ../fish/guestfish-actions.pod:4376
15412 msgid ""
15413 "For most filesystems, the result is the name of the Linux VFS module which "
15414 "would be used to mount this filesystem if you mounted it without specifying "
15415 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
15416 msgstr ""
15417
15418 # type: =head2
15419 #: ../src/guestfs-actions.pod:6519
15420 msgid "guestfs_vfs_uuid"
15421 msgstr ""
15422
15423 # type: verbatim
15424 #: ../src/guestfs-actions.pod:6521
15425 #, no-wrap
15426 msgid ""
15427 " char *\n"
15428 " guestfs_vfs_uuid (guestfs_h *g,\n"
15429 "                   const char *device);\n"
15430 "\n"
15431 msgstr ""
15432
15433 # type: textblock
15434 #: ../src/guestfs-actions.pod:6525 ../fish/guestfish-actions.pod:4385
15435 msgid "This returns the filesystem UUID of the filesystem on C<device>."
15436 msgstr ""
15437
15438 # type: textblock
15439 #: ../src/guestfs-actions.pod:6528 ../fish/guestfish-actions.pod:4388
15440 msgid "If the filesystem does not have a UUID, this returns the empty string."
15441 msgstr ""
15442
15443 # type: textblock
15444 #: ../src/guestfs-actions.pod:6530
15445 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
15446 msgstr ""
15447
15448 # type: =head2
15449 #: ../src/guestfs-actions.pod:6537
15450 msgid "guestfs_vg_activate"
15451 msgstr ""
15452
15453 # type: verbatim
15454 #: ../src/guestfs-actions.pod:6539
15455 #, no-wrap
15456 msgid ""
15457 " int\n"
15458 " guestfs_vg_activate (guestfs_h *g,\n"
15459 "                      int activate,\n"
15460 "                      char *const *volgroups);\n"
15461 "\n"
15462 msgstr ""
15463
15464 # type: textblock
15465 #: ../src/guestfs-actions.pod:6544 ../fish/guestfish-actions.pod:4396
15466 msgid ""
15467 "This command activates or (if C<activate> is false) deactivates all logical "
15468 "volumes in the listed volume groups C<volgroups>.  If activated, then they "
15469 "are made known to the kernel, ie. they appear as C</dev/mapper> devices.  If "
15470 "deactivated, then those devices disappear."
15471 msgstr ""
15472
15473 # type: textblock
15474 #: ../src/guestfs-actions.pod:6550 ../fish/guestfish-actions.pod:4402
15475 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
15476 msgstr ""
15477
15478 # type: textblock
15479 #: ../src/guestfs-actions.pod:6552 ../fish/guestfish-actions.pod:4404
15480 msgid ""
15481 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
15482 "activated or deactivated."
15483 msgstr ""
15484
15485 # type: =head2
15486 #: ../src/guestfs-actions.pod:6559
15487 msgid "guestfs_vg_activate_all"
15488 msgstr ""
15489
15490 # type: verbatim
15491 #: ../src/guestfs-actions.pod:6561
15492 #, no-wrap
15493 msgid ""
15494 " int\n"
15495 " guestfs_vg_activate_all (guestfs_h *g,\n"
15496 "                          int activate);\n"
15497 "\n"
15498 msgstr ""
15499
15500 # type: textblock
15501 #: ../src/guestfs-actions.pod:6565 ../fish/guestfish-actions.pod:4411
15502 msgid ""
15503 "This command activates or (if C<activate> is false) deactivates all logical "
15504 "volumes in all volume groups.  If activated, then they are made known to the "
15505 "kernel, ie. they appear as C</dev/mapper> devices.  If deactivated, then "
15506 "those devices disappear."
15507 msgstr ""
15508
15509 # type: textblock
15510 #: ../src/guestfs-actions.pod:6571 ../fish/guestfish-actions.pod:4417
15511 msgid "This command is the same as running C<vgchange -a y|n>"
15512 msgstr ""
15513
15514 # type: =head2
15515 #: ../src/guestfs-actions.pod:6577
15516 msgid "guestfs_vgcreate"
15517 msgstr ""
15518
15519 # type: verbatim
15520 #: ../src/guestfs-actions.pod:6579
15521 #, no-wrap
15522 msgid ""
15523 " int\n"
15524 " guestfs_vgcreate (guestfs_h *g,\n"
15525 "                   const char *volgroup,\n"
15526 "                   char *const *physvols);\n"
15527 "\n"
15528 msgstr ""
15529
15530 # type: textblock
15531 #: ../src/guestfs-actions.pod:6584 ../fish/guestfish-actions.pod:4423
15532 msgid ""
15533 "This creates an LVM volume group called C<volgroup> from the non-empty list "
15534 "of physical volumes C<physvols>."
15535 msgstr ""
15536
15537 # type: =head2
15538 #: ../src/guestfs-actions.pod:6591
15539 msgid "guestfs_vglvuuids"
15540 msgstr ""
15541
15542 # type: verbatim
15543 #: ../src/guestfs-actions.pod:6593
15544 #, no-wrap
15545 msgid ""
15546 " char **\n"
15547 " guestfs_vglvuuids (guestfs_h *g,\n"
15548 "                    const char *vgname);\n"
15549 "\n"
15550 msgstr ""
15551
15552 # type: textblock
15553 #: ../src/guestfs-actions.pod:6597 ../fish/guestfish-actions.pod:4430
15554 msgid ""
15555 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
15556 "volumes created in this volume group."
15557 msgstr ""
15558
15559 # type: textblock
15560 #: ../src/guestfs-actions.pod:6600
15561 msgid ""
15562 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
15563 "associate logical volumes and volume groups."
15564 msgstr ""
15565
15566 # type: textblock
15567 #: ../src/guestfs-actions.pod:6603
15568 msgid "See also C<guestfs_vgpvuuids>."
15569 msgstr ""
15570
15571 # type: =head2
15572 #: ../src/guestfs-actions.pod:6611
15573 msgid "guestfs_vgpvuuids"
15574 msgstr ""
15575
15576 # type: verbatim
15577 #: ../src/guestfs-actions.pod:6613
15578 #, no-wrap
15579 msgid ""
15580 " char **\n"
15581 " guestfs_vgpvuuids (guestfs_h *g,\n"
15582 "                    const char *vgname);\n"
15583 "\n"
15584 msgstr ""
15585
15586 # type: textblock
15587 #: ../src/guestfs-actions.pod:6617 ../fish/guestfish-actions.pod:4442
15588 msgid ""
15589 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
15590 "volumes that this volume group resides on."
15591 msgstr ""
15592
15593 # type: textblock
15594 #: ../src/guestfs-actions.pod:6620
15595 msgid ""
15596 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
15597 "associate physical volumes and volume groups."
15598 msgstr ""
15599
15600 # type: textblock
15601 #: ../src/guestfs-actions.pod:6623
15602 msgid "See also C<guestfs_vglvuuids>."
15603 msgstr ""
15604
15605 # type: =head2
15606 #: ../src/guestfs-actions.pod:6631
15607 msgid "guestfs_vgremove"
15608 msgstr ""
15609
15610 # type: verbatim
15611 #: ../src/guestfs-actions.pod:6633
15612 #, no-wrap
15613 msgid ""
15614 " int\n"
15615 " guestfs_vgremove (guestfs_h *g,\n"
15616 "                   const char *vgname);\n"
15617 "\n"
15618 msgstr ""
15619
15620 # type: textblock
15621 #: ../src/guestfs-actions.pod:6637 ../fish/guestfish-actions.pod:4454
15622 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
15623 msgstr ""
15624
15625 # type: textblock
15626 #: ../src/guestfs-actions.pod:6639 ../fish/guestfish-actions.pod:4456
15627 msgid ""
15628 "This also forcibly removes all logical volumes in the volume group (if any)."
15629 msgstr ""
15630
15631 # type: =head2
15632 #: ../src/guestfs-actions.pod:6646
15633 msgid "guestfs_vgrename"
15634 msgstr ""
15635
15636 # type: verbatim
15637 #: ../src/guestfs-actions.pod:6648
15638 #, no-wrap
15639 msgid ""
15640 " int\n"
15641 " guestfs_vgrename (guestfs_h *g,\n"
15642 "                   const char *volgroup,\n"
15643 "                   const char *newvolgroup);\n"
15644 "\n"
15645 msgstr ""
15646
15647 # type: textblock
15648 #: ../src/guestfs-actions.pod:6653 ../fish/guestfish-actions.pod:4463
15649 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
15650 msgstr ""
15651
15652 # type: =head2
15653 #: ../src/guestfs-actions.pod:6659
15654 msgid "guestfs_vgs"
15655 msgstr ""
15656
15657 # type: verbatim
15658 #: ../src/guestfs-actions.pod:6661
15659 #, no-wrap
15660 msgid ""
15661 " char **\n"
15662 " guestfs_vgs (guestfs_h *g);\n"
15663 "\n"
15664 msgstr ""
15665
15666 # type: textblock
15667 #: ../src/guestfs-actions.pod:6664 ../fish/guestfish-actions.pod:4469
15668 msgid ""
15669 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
15670 "> command."
15671 msgstr ""
15672
15673 # type: textblock
15674 #: ../src/guestfs-actions.pod:6667 ../fish/guestfish-actions.pod:4472
15675 msgid ""
15676 "This returns a list of just the volume group names that were detected (eg. "
15677 "C<VolGroup00>)."
15678 msgstr ""
15679
15680 # type: textblock
15681 #: ../src/guestfs-actions.pod:6670
15682 msgid "See also C<guestfs_vgs_full>."
15683 msgstr ""
15684
15685 # type: =head2
15686 #: ../src/guestfs-actions.pod:6678
15687 msgid "guestfs_vgs_full"
15688 msgstr ""
15689
15690 # type: verbatim
15691 #: ../src/guestfs-actions.pod:6680
15692 #, no-wrap
15693 msgid ""
15694 " struct guestfs_lvm_vg_list *\n"
15695 " guestfs_vgs_full (guestfs_h *g);\n"
15696 "\n"
15697 msgstr ""
15698
15699 # type: textblock
15700 #: ../src/guestfs-actions.pod:6683 ../fish/guestfish-actions.pod:4481
15701 msgid ""
15702 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
15703 "> command.  The \"full\" version includes all fields."
15704 msgstr ""
15705
15706 # type: textblock
15707 #: ../src/guestfs-actions.pod:6686
15708 msgid ""
15709 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
15710 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after use>."
15711 msgstr ""
15712
15713 # type: =head2
15714 #: ../src/guestfs-actions.pod:6692
15715 msgid "guestfs_vgscan"
15716 msgstr ""
15717
15718 # type: verbatim
15719 #: ../src/guestfs-actions.pod:6694
15720 #, no-wrap
15721 msgid ""
15722 " int\n"
15723 " guestfs_vgscan (guestfs_h *g);\n"
15724 "\n"
15725 msgstr ""
15726
15727 # type: textblock
15728 #: ../src/guestfs-actions.pod:6697 ../fish/guestfish-actions.pod:4488
15729 msgid ""
15730 "This rescans all block devices and rebuilds the list of LVM physical "
15731 "volumes, volume groups and logical volumes."
15732 msgstr ""
15733
15734 # type: =head2
15735 #: ../src/guestfs-actions.pod:6704
15736 msgid "guestfs_vguuid"
15737 msgstr ""
15738
15739 # type: verbatim
15740 #: ../src/guestfs-actions.pod:6706
15741 #, no-wrap
15742 msgid ""
15743 " char *\n"
15744 " guestfs_vguuid (guestfs_h *g,\n"
15745 "                 const char *vgname);\n"
15746 "\n"
15747 msgstr ""
15748
15749 # type: textblock
15750 #: ../src/guestfs-actions.pod:6710 ../fish/guestfish-actions.pod:4495
15751 msgid "This command returns the UUID of the LVM VG named C<vgname>."
15752 msgstr ""
15753
15754 # type: =head2
15755 #: ../src/guestfs-actions.pod:6717
15756 msgid "guestfs_wait_ready"
15757 msgstr ""
15758
15759 # type: verbatim
15760 #: ../src/guestfs-actions.pod:6719
15761 #, no-wrap
15762 msgid ""
15763 " int\n"
15764 " guestfs_wait_ready (guestfs_h *g);\n"
15765 "\n"
15766 msgstr ""
15767
15768 # type: textblock
15769 #: ../src/guestfs-actions.pod:6722
15770 msgid "This function is a no op."
15771 msgstr ""
15772
15773 # type: textblock
15774 #: ../src/guestfs-actions.pod:6724
15775 msgid ""
15776 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
15777 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
15778 "is no longer necessary because C<guestfs_launch> now does the waiting."
15779 msgstr ""
15780
15781 # type: textblock
15782 #: ../src/guestfs-actions.pod:6729
15783 msgid ""
15784 "If you see any calls to this function in code then you can just remove them, "
15785 "unless you want to retain compatibility with older versions of the API."
15786 msgstr ""
15787
15788 # type: =head2
15789 #: ../src/guestfs-actions.pod:6737
15790 msgid "guestfs_wc_c"
15791 msgstr ""
15792
15793 # type: verbatim
15794 #: ../src/guestfs-actions.pod:6739
15795 #, no-wrap
15796 msgid ""
15797 " int\n"
15798 " guestfs_wc_c (guestfs_h *g,\n"
15799 "               const char *path);\n"
15800 "\n"
15801 msgstr ""
15802
15803 # type: textblock
15804 #: ../src/guestfs-actions.pod:6743 ../fish/guestfish-actions.pod:4501
15805 msgid ""
15806 "This command counts the characters in a file, using the C<wc -c> external "
15807 "command."
15808 msgstr ""
15809
15810 # type: =head2
15811 #: ../src/guestfs-actions.pod:6750
15812 msgid "guestfs_wc_l"
15813 msgstr ""
15814
15815 # type: verbatim
15816 #: ../src/guestfs-actions.pod:6752
15817 #, no-wrap
15818 msgid ""
15819 " int\n"
15820 " guestfs_wc_l (guestfs_h *g,\n"
15821 "               const char *path);\n"
15822 "\n"
15823 msgstr ""
15824
15825 # type: textblock
15826 #: ../src/guestfs-actions.pod:6756 ../fish/guestfish-actions.pod:4508
15827 msgid ""
15828 "This command counts the lines in a file, using the C<wc -l> external command."
15829 msgstr ""
15830
15831 # type: =head2
15832 #: ../src/guestfs-actions.pod:6763
15833 msgid "guestfs_wc_w"
15834 msgstr ""
15835
15836 # type: verbatim
15837 #: ../src/guestfs-actions.pod:6765
15838 #, no-wrap
15839 msgid ""
15840 " int\n"
15841 " guestfs_wc_w (guestfs_h *g,\n"
15842 "               const char *path);\n"
15843 "\n"
15844 msgstr ""
15845
15846 # type: textblock
15847 #: ../src/guestfs-actions.pod:6769 ../fish/guestfish-actions.pod:4515
15848 msgid ""
15849 "This command counts the words in a file, using the C<wc -w> external command."
15850 msgstr ""
15851
15852 # type: =head2
15853 #: ../src/guestfs-actions.pod:6776
15854 msgid "guestfs_write"
15855 msgstr ""
15856
15857 # type: verbatim
15858 #: ../src/guestfs-actions.pod:6778
15859 #, no-wrap
15860 msgid ""
15861 " int\n"
15862 " guestfs_write (guestfs_h *g,\n"
15863 "                const char *path,\n"
15864 "                const char *content,\n"
15865 "                size_t content_size);\n"
15866 "\n"
15867 msgstr ""
15868
15869 # type: textblock
15870 #: ../src/guestfs-actions.pod:6784 ../fish/guestfish-actions.pod:4522
15871 msgid ""
15872 "This call creates a file called C<path>.  The content of the file is the "
15873 "string C<content> (which can contain any 8 bit data)."
15874 msgstr ""
15875
15876 # type: =head2
15877 #: ../src/guestfs-actions.pod:6794
15878 msgid "guestfs_write_file"
15879 msgstr ""
15880
15881 # type: verbatim
15882 #: ../src/guestfs-actions.pod:6796
15883 #, no-wrap
15884 msgid ""
15885 " int\n"
15886 " guestfs_write_file (guestfs_h *g,\n"
15887 "                     const char *path,\n"
15888 "                     const char *content,\n"
15889 "                     int size);\n"
15890 "\n"
15891 msgstr ""
15892
15893 # type: textblock
15894 #: ../src/guestfs-actions.pod:6802 ../fish/guestfish-actions.pod:4532
15895 msgid ""
15896 "This call creates a file called C<path>.  The contents of the file is the "
15897 "string C<content> (which can contain any 8 bit data), with length C<size>."
15898 msgstr ""
15899
15900 # type: textblock
15901 #: ../src/guestfs-actions.pod:6806 ../fish/guestfish-actions.pod:4536
15902 msgid ""
15903 "As a special case, if C<size> is C<0> then the length is calculated using "
15904 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
15905 msgstr ""
15906
15907 # type: textblock
15908 #: ../src/guestfs-actions.pod:6810 ../fish/guestfish-actions.pod:4540
15909 msgid ""
15910 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
15911 "I<not> work, even if the length is specified."
15912 msgstr ""
15913
15914 # type: textblock
15915 #: ../src/guestfs-actions.pod:6818 ../fish/guestfish-actions.pod:4546
15916 msgid ""
15917 "This function is deprecated.  In new code, use the C<write> call instead."
15918 msgstr ""
15919
15920 # type: =head2
15921 #: ../src/guestfs-actions.pod:6827
15922 msgid "guestfs_zegrep"
15923 msgstr ""
15924
15925 # type: verbatim
15926 #: ../src/guestfs-actions.pod:6829
15927 #, no-wrap
15928 msgid ""
15929 " char **\n"
15930 " guestfs_zegrep (guestfs_h *g,\n"
15931 "                 const char *regex,\n"
15932 "                 const char *path);\n"
15933 "\n"
15934 msgstr ""
15935
15936 # type: textblock
15937 #: ../src/guestfs-actions.pod:6834 ../fish/guestfish-actions.pod:4557
15938 msgid ""
15939 "This calls the external C<zegrep> program and returns the matching lines."
15940 msgstr ""
15941
15942 # type: =head2
15943 #: ../src/guestfs-actions.pod:6846
15944 msgid "guestfs_zegrepi"
15945 msgstr ""
15946
15947 # type: verbatim
15948 #: ../src/guestfs-actions.pod:6848
15949 #, no-wrap
15950 msgid ""
15951 " char **\n"
15952 " guestfs_zegrepi (guestfs_h *g,\n"
15953 "                  const char *regex,\n"
15954 "                  const char *path);\n"
15955 "\n"
15956 msgstr ""
15957
15958 # type: textblock
15959 #: ../src/guestfs-actions.pod:6853 ../fish/guestfish-actions.pod:4567
15960 msgid ""
15961 "This calls the external C<zegrep -i> program and returns the matching lines."
15962 msgstr ""
15963
15964 # type: =head2
15965 #: ../src/guestfs-actions.pod:6865
15966 msgid "guestfs_zero"
15967 msgstr ""
15968
15969 # type: verbatim
15970 #: ../src/guestfs-actions.pod:6867
15971 #, no-wrap
15972 msgid ""
15973 " int\n"
15974 " guestfs_zero (guestfs_h *g,\n"
15975 "               const char *device);\n"
15976 "\n"
15977 msgstr ""
15978
15979 # type: textblock
15980 #: ../src/guestfs-actions.pod:6871 ../fish/guestfish-actions.pod:4577
15981 msgid "This command writes zeroes over the first few blocks of C<device>."
15982 msgstr ""
15983
15984 # type: textblock
15985 #: ../src/guestfs-actions.pod:6873 ../fish/guestfish-actions.pod:4579
15986 msgid ""
15987 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
15988 "securely wipe the device).  It should be sufficient to remove any partition "
15989 "tables, filesystem superblocks and so on."
15990 msgstr ""
15991
15992 # type: textblock
15993 #: ../src/guestfs-actions.pod:6877
15994 msgid "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>."
15995 msgstr ""
15996
15997 # type: =head2
15998 #: ../src/guestfs-actions.pod:6888
15999 msgid "guestfs_zero_device"
16000 msgstr ""
16001
16002 # type: verbatim
16003 #: ../src/guestfs-actions.pod:6890
16004 #, no-wrap
16005 msgid ""
16006 " int\n"
16007 " guestfs_zero_device (guestfs_h *g,\n"
16008 "                      const char *device);\n"
16009 "\n"
16010 msgstr ""
16011
16012 # type: textblock
16013 #: ../src/guestfs-actions.pod:6894
16014 msgid ""
16015 "This command writes zeroes over the entire C<device>.  Compare with "
16016 "C<guestfs_zero> which just zeroes the first few blocks of a device."
16017 msgstr ""
16018
16019 # type: textblock
16020 #: ../src/guestfs-actions.pod:6908
16021 msgid "(Added in 1.3.1)"
16022 msgstr ""
16023
16024 # type: =head2
16025 #: ../src/guestfs-actions.pod:6910
16026 msgid "guestfs_zerofree"
16027 msgstr ""
16028
16029 # type: verbatim
16030 #: ../src/guestfs-actions.pod:6912
16031 #, no-wrap
16032 msgid ""
16033 " int\n"
16034 " guestfs_zerofree (guestfs_h *g,\n"
16035 "                   const char *device);\n"
16036 "\n"
16037 msgstr ""
16038
16039 # type: textblock
16040 #: ../src/guestfs-actions.pod:6916 ../fish/guestfish-actions.pod:4600
16041 msgid ""
16042 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
16043 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
16044 "possible to compress the filesystem more effectively."
16045 msgstr ""
16046
16047 # type: textblock
16048 #: ../src/guestfs-actions.pod:6921 ../fish/guestfish-actions.pod:4605
16049 msgid "You should B<not> run this program if the filesystem is mounted."
16050 msgstr ""
16051
16052 # type: textblock
16053 #: ../src/guestfs-actions.pod:6924 ../fish/guestfish-actions.pod:4608
16054 msgid ""
16055 "It is possible that using this program can damage the filesystem or data on "
16056 "the filesystem."
16057 msgstr ""
16058
16059 # type: =head2
16060 #: ../src/guestfs-actions.pod:6931
16061 msgid "guestfs_zfgrep"
16062 msgstr ""
16063
16064 # type: verbatim
16065 #: ../src/guestfs-actions.pod:6933
16066 #, no-wrap
16067 msgid ""
16068 " char **\n"
16069 " guestfs_zfgrep (guestfs_h *g,\n"
16070 "                 const char *pattern,\n"
16071 "                 const char *path);\n"
16072 "\n"
16073 msgstr ""
16074
16075 # type: textblock
16076 #: ../src/guestfs-actions.pod:6938 ../fish/guestfish-actions.pod:4615
16077 msgid ""
16078 "This calls the external C<zfgrep> program and returns the matching lines."
16079 msgstr ""
16080
16081 # type: =head2
16082 #: ../src/guestfs-actions.pod:6950
16083 msgid "guestfs_zfgrepi"
16084 msgstr ""
16085
16086 # type: verbatim
16087 #: ../src/guestfs-actions.pod:6952
16088 #, no-wrap
16089 msgid ""
16090 " char **\n"
16091 " guestfs_zfgrepi (guestfs_h *g,\n"
16092 "                  const char *pattern,\n"
16093 "                  const char *path);\n"
16094 "\n"
16095 msgstr ""
16096
16097 # type: textblock
16098 #: ../src/guestfs-actions.pod:6957 ../fish/guestfish-actions.pod:4625
16099 msgid ""
16100 "This calls the external C<zfgrep -i> program and returns the matching lines."
16101 msgstr ""
16102
16103 # type: =head2
16104 #: ../src/guestfs-actions.pod:6969
16105 msgid "guestfs_zfile"
16106 msgstr ""
16107
16108 # type: verbatim
16109 #: ../src/guestfs-actions.pod:6971
16110 #, no-wrap
16111 msgid ""
16112 " char *\n"
16113 " guestfs_zfile (guestfs_h *g,\n"
16114 "                const char *meth,\n"
16115 "                const char *path);\n"
16116 "\n"
16117 msgstr ""
16118
16119 # type: textblock
16120 #: ../src/guestfs-actions.pod:6976 ../fish/guestfish-actions.pod:4635
16121 msgid ""
16122 "This command runs C<file> after first decompressing C<path> using C<method>."
16123 msgstr ""
16124
16125 # type: textblock
16126 #: ../src/guestfs-actions.pod:6979 ../fish/guestfish-actions.pod:4638
16127 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
16128 msgstr ""
16129
16130 # type: textblock
16131 #: ../src/guestfs-actions.pod:6981
16132 msgid ""
16133 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
16134 "files."
16135 msgstr ""
16136
16137 # type: textblock
16138 #: ../src/guestfs-actions.pod:6987 ../fish/guestfish-actions.pod:4643
16139 msgid ""
16140 "This function is deprecated.  In new code, use the C<file> call instead."
16141 msgstr ""
16142
16143 # type: =head2
16144 #: ../src/guestfs-actions.pod:6996
16145 msgid "guestfs_zgrep"
16146 msgstr ""
16147
16148 # type: verbatim
16149 #: ../src/guestfs-actions.pod:6998
16150 #, no-wrap
16151 msgid ""
16152 " char **\n"
16153 " guestfs_zgrep (guestfs_h *g,\n"
16154 "                const char *regex,\n"
16155 "                const char *path);\n"
16156 "\n"
16157 msgstr ""
16158
16159 # type: textblock
16160 #: ../src/guestfs-actions.pod:7003 ../fish/guestfish-actions.pod:4654
16161 msgid ""
16162 "This calls the external C<zgrep> program and returns the matching lines."
16163 msgstr ""
16164
16165 # type: =head2
16166 #: ../src/guestfs-actions.pod:7015
16167 msgid "guestfs_zgrepi"
16168 msgstr ""
16169
16170 # type: verbatim
16171 #: ../src/guestfs-actions.pod:7017
16172 #, no-wrap
16173 msgid ""
16174 " char **\n"
16175 " guestfs_zgrepi (guestfs_h *g,\n"
16176 "                 const char *regex,\n"
16177 "                 const char *path);\n"
16178 "\n"
16179 msgstr ""
16180
16181 # type: textblock
16182 #: ../src/guestfs-actions.pod:7022 ../fish/guestfish-actions.pod:4664
16183 msgid ""
16184 "This calls the external C<zgrep -i> program and returns the matching lines."
16185 msgstr ""
16186
16187 # type: =item
16188 #: ../src/guestfs-availability.pod:3
16189 msgid "B<augeas>"
16190 msgstr ""
16191
16192 # type: textblock
16193 #: ../src/guestfs-availability.pod:5
16194 msgid ""
16195 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
16196 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
16197 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
16198 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
16199 "L</guestfs_aug_save> L</guestfs_aug_set>"
16200 msgstr ""
16201
16202 # type: =item
16203 #: ../src/guestfs-availability.pod:21
16204 msgid "B<inotify>"
16205 msgstr ""
16206
16207 # type: textblock
16208 #: ../src/guestfs-availability.pod:23
16209 msgid ""
16210 "The following functions: L</guestfs_inotify_add_watch> L</"
16211 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
16212 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
16213 msgstr ""
16214
16215 # type: =item
16216 #: ../src/guestfs-availability.pod:31
16217 msgid "B<linuxfsuuid>"
16218 msgstr ""
16219
16220 # type: textblock
16221 #: ../src/guestfs-availability.pod:33
16222 msgid ""
16223 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
16224 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
16225 msgstr ""
16226
16227 # type: =item
16228 #: ../src/guestfs-availability.pod:40
16229 msgid "B<linuxmodules>"
16230 msgstr ""
16231
16232 # type: textblock
16233 #: ../src/guestfs-availability.pod:42
16234 msgid "The following functions: L</guestfs_modprobe>"
16235 msgstr ""
16236
16237 # type: =item
16238 #: ../src/guestfs-availability.pod:45
16239 msgid "B<linuxxattrs>"
16240 msgstr ""
16241
16242 # type: textblock
16243 #: ../src/guestfs-availability.pod:47
16244 msgid ""
16245 "The following functions: L</guestfs_getxattrs> L</guestfs_lgetxattrs> L</"
16246 "guestfs_lremovexattr> L</guestfs_lsetxattr> L</guestfs_lxattrlist> L</"
16247 "guestfs_removexattr> L</guestfs_setxattr>"
16248 msgstr ""
16249
16250 # type: =item
16251 #: ../src/guestfs-availability.pod:56
16252 msgid "B<luks>"
16253 msgstr ""
16254
16255 # type: textblock
16256 #: ../src/guestfs-availability.pod:58
16257 msgid ""
16258 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
16259 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
16260 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
16261 msgstr ""
16262
16263 # type: =item
16264 #: ../src/guestfs-availability.pod:67
16265 msgid "B<lvm2>"
16266 msgstr ""
16267
16268 # type: textblock
16269 #: ../src/guestfs-availability.pod:69
16270 msgid ""
16271 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
16272 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
16273 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
16274 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
16275 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
16276 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
16277 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
16278 msgstr ""
16279
16280 # type: =item
16281 #: ../src/guestfs-availability.pod:92
16282 msgid "B<mknod>"
16283 msgstr ""
16284
16285 # type: textblock
16286 #: ../src/guestfs-availability.pod:94
16287 msgid ""
16288 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
16289 "guestfs_mknod_b> L</guestfs_mknod_c>"
16290 msgstr ""
16291
16292 # type: =item
16293 #: ../src/guestfs-availability.pod:100
16294 msgid "B<ntfs3g>"
16295 msgstr ""
16296
16297 # type: textblock
16298 #: ../src/guestfs-availability.pod:102
16299 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
16300 msgstr ""
16301
16302 # type: =item
16303 #: ../src/guestfs-availability.pod:105
16304 msgid "B<ntfsprogs>"
16305 msgstr ""
16306
16307 # type: textblock
16308 #: ../src/guestfs-availability.pod:107
16309 msgid ""
16310 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_size>"
16311 msgstr ""
16312
16313 # type: =item
16314 #: ../src/guestfs-availability.pod:111
16315 msgid "B<realpath>"
16316 msgstr ""
16317
16318 # type: textblock
16319 #: ../src/guestfs-availability.pod:113
16320 msgid "The following functions: L</guestfs_realpath>"
16321 msgstr ""
16322
16323 # type: =item
16324 #: ../src/guestfs-availability.pod:116
16325 msgid "B<scrub>"
16326 msgstr ""
16327
16328 # type: textblock
16329 #: ../src/guestfs-availability.pod:118
16330 msgid ""
16331 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
16332 "guestfs_scrub_freespace>"
16333 msgstr ""
16334
16335 # type: =item
16336 #: ../src/guestfs-availability.pod:123
16337 msgid "B<selinux>"
16338 msgstr ""
16339
16340 # type: textblock
16341 #: ../src/guestfs-availability.pod:125
16342 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
16343 msgstr ""
16344
16345 # type: =item
16346 #: ../src/guestfs-availability.pod:129
16347 msgid "B<xz>"
16348 msgstr ""
16349
16350 # type: textblock
16351 #: ../src/guestfs-availability.pod:131
16352 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
16353 msgstr ""
16354
16355 # type: =item
16356 #: ../src/guestfs-availability.pod:135
16357 msgid "B<zerofree>"
16358 msgstr ""
16359
16360 # type: textblock
16361 #: ../src/guestfs-availability.pod:137
16362 msgid "The following functions: L</guestfs_zerofree>"
16363 msgstr ""
16364
16365 # type: =head2
16366 #: ../src/guestfs-structs.pod:1
16367 msgid "guestfs_int_bool"
16368 msgstr ""
16369
16370 # type: verbatim
16371 #: ../src/guestfs-structs.pod:3
16372 #, no-wrap
16373 msgid ""
16374 " struct guestfs_int_bool {\n"
16375 "   int32_t i;\n"
16376 "   int32_t b;\n"
16377 " };\n"
16378 " \n"
16379 msgstr ""
16380
16381 # type: verbatim
16382 #: ../src/guestfs-structs.pod:8
16383 #, no-wrap
16384 msgid ""
16385 " struct guestfs_int_bool_list {\n"
16386 "   uint32_t len; /* Number of elements in list. */\n"
16387 "   struct guestfs_int_bool *val; /* Elements. */\n"
16388 " };\n"
16389 " \n"
16390 msgstr ""
16391
16392 # type: verbatim
16393 #: ../src/guestfs-structs.pod:13
16394 #, no-wrap
16395 msgid ""
16396 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
16397 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
16398 "\n"
16399 msgstr ""
16400
16401 # type: =head2
16402 #: ../src/guestfs-structs.pod:16
16403 msgid "guestfs_lvm_pv"
16404 msgstr ""
16405
16406 # type: verbatim
16407 #: ../src/guestfs-structs.pod:18
16408 #, no-wrap
16409 msgid ""
16410 " struct guestfs_lvm_pv {\n"
16411 "   char *pv_name;\n"
16412 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
16413 "   char pv_uuid[32];\n"
16414 "   char *pv_fmt;\n"
16415 "   uint64_t pv_size;\n"
16416 "   uint64_t dev_size;\n"
16417 "   uint64_t pv_free;\n"
16418 "   uint64_t pv_used;\n"
16419 "   char *pv_attr;\n"
16420 "   int64_t pv_pe_count;\n"
16421 "   int64_t pv_pe_alloc_count;\n"
16422 "   char *pv_tags;\n"
16423 "   uint64_t pe_start;\n"
16424 "   int64_t pv_mda_count;\n"
16425 "   uint64_t pv_mda_free;\n"
16426 " };\n"
16427 " \n"
16428 msgstr ""
16429
16430 # type: verbatim
16431 #: ../src/guestfs-structs.pod:36
16432 #, no-wrap
16433 msgid ""
16434 " struct guestfs_lvm_pv_list {\n"
16435 "   uint32_t len; /* Number of elements in list. */\n"
16436 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
16437 " };\n"
16438 " \n"
16439 msgstr ""
16440
16441 # type: verbatim
16442 #: ../src/guestfs-structs.pod:41
16443 #, no-wrap
16444 msgid ""
16445 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
16446 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
16447 "\n"
16448 msgstr ""
16449
16450 # type: =head2
16451 #: ../src/guestfs-structs.pod:44
16452 msgid "guestfs_lvm_vg"
16453 msgstr ""
16454
16455 # type: verbatim
16456 #: ../src/guestfs-structs.pod:46
16457 #, no-wrap
16458 msgid ""
16459 " struct guestfs_lvm_vg {\n"
16460 "   char *vg_name;\n"
16461 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
16462 "   char vg_uuid[32];\n"
16463 "   char *vg_fmt;\n"
16464 "   char *vg_attr;\n"
16465 "   uint64_t vg_size;\n"
16466 "   uint64_t vg_free;\n"
16467 "   char *vg_sysid;\n"
16468 "   uint64_t vg_extent_size;\n"
16469 "   int64_t vg_extent_count;\n"
16470 "   int64_t vg_free_count;\n"
16471 "   int64_t max_lv;\n"
16472 "   int64_t max_pv;\n"
16473 "   int64_t pv_count;\n"
16474 "   int64_t lv_count;\n"
16475 "   int64_t snap_count;\n"
16476 "   int64_t vg_seqno;\n"
16477 "   char *vg_tags;\n"
16478 "   int64_t vg_mda_count;\n"
16479 "   uint64_t vg_mda_free;\n"
16480 " };\n"
16481 " \n"
16482 msgstr ""
16483
16484 # type: verbatim
16485 #: ../src/guestfs-structs.pod:69
16486 #, no-wrap
16487 msgid ""
16488 " struct guestfs_lvm_vg_list {\n"
16489 "   uint32_t len; /* Number of elements in list. */\n"
16490 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
16491 " };\n"
16492 " \n"
16493 msgstr ""
16494
16495 # type: verbatim
16496 #: ../src/guestfs-structs.pod:74
16497 #, no-wrap
16498 msgid ""
16499 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
16500 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
16501 "\n"
16502 msgstr ""
16503
16504 # type: =head2
16505 #: ../src/guestfs-structs.pod:77
16506 msgid "guestfs_lvm_lv"
16507 msgstr ""
16508
16509 # type: verbatim
16510 #: ../src/guestfs-structs.pod:79
16511 #, no-wrap
16512 msgid ""
16513 " struct guestfs_lvm_lv {\n"
16514 "   char *lv_name;\n"
16515 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
16516 "   char lv_uuid[32];\n"
16517 "   char *lv_attr;\n"
16518 "   int64_t lv_major;\n"
16519 "   int64_t lv_minor;\n"
16520 "   int64_t lv_kernel_major;\n"
16521 "   int64_t lv_kernel_minor;\n"
16522 "   uint64_t lv_size;\n"
16523 "   int64_t seg_count;\n"
16524 "   char *origin;\n"
16525 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
16526 "   float snap_percent;\n"
16527 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
16528 "   float copy_percent;\n"
16529 "   char *move_pv;\n"
16530 "   char *lv_tags;\n"
16531 "   char *mirror_log;\n"
16532 "   char *modules;\n"
16533 " };\n"
16534 " \n"
16535 msgstr ""
16536
16537 # type: verbatim
16538 #: ../src/guestfs-structs.pod:101
16539 #, no-wrap
16540 msgid ""
16541 " struct guestfs_lvm_lv_list {\n"
16542 "   uint32_t len; /* Number of elements in list. */\n"
16543 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
16544 " };\n"
16545 " \n"
16546 msgstr ""
16547
16548 # type: verbatim
16549 #: ../src/guestfs-structs.pod:106
16550 #, no-wrap
16551 msgid ""
16552 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
16553 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
16554 "\n"
16555 msgstr ""
16556
16557 # type: verbatim
16558 #: ../src/guestfs-structs.pod:111
16559 #, no-wrap
16560 msgid ""
16561 " struct guestfs_stat {\n"
16562 "   int64_t dev;\n"
16563 "   int64_t ino;\n"
16564 "   int64_t mode;\n"
16565 "   int64_t nlink;\n"
16566 "   int64_t uid;\n"
16567 "   int64_t gid;\n"
16568 "   int64_t rdev;\n"
16569 "   int64_t size;\n"
16570 "   int64_t blksize;\n"
16571 "   int64_t blocks;\n"
16572 "   int64_t atime;\n"
16573 "   int64_t mtime;\n"
16574 "   int64_t ctime;\n"
16575 " };\n"
16576 " \n"
16577 msgstr ""
16578
16579 # type: verbatim
16580 #: ../src/guestfs-structs.pod:127
16581 #, no-wrap
16582 msgid ""
16583 " struct guestfs_stat_list {\n"
16584 "   uint32_t len; /* Number of elements in list. */\n"
16585 "   struct guestfs_stat *val; /* Elements. */\n"
16586 " };\n"
16587 " \n"
16588 msgstr ""
16589
16590 # type: verbatim
16591 #: ../src/guestfs-structs.pod:132
16592 #, no-wrap
16593 msgid ""
16594 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
16595 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
16596 "\n"
16597 msgstr ""
16598
16599 # type: verbatim
16600 #: ../src/guestfs-structs.pod:137
16601 #, no-wrap
16602 msgid ""
16603 " struct guestfs_statvfs {\n"
16604 "   int64_t bsize;\n"
16605 "   int64_t frsize;\n"
16606 "   int64_t blocks;\n"
16607 "   int64_t bfree;\n"
16608 "   int64_t bavail;\n"
16609 "   int64_t files;\n"
16610 "   int64_t ffree;\n"
16611 "   int64_t favail;\n"
16612 "   int64_t fsid;\n"
16613 "   int64_t flag;\n"
16614 "   int64_t namemax;\n"
16615 " };\n"
16616 " \n"
16617 msgstr ""
16618
16619 # type: verbatim
16620 #: ../src/guestfs-structs.pod:151
16621 #, no-wrap
16622 msgid ""
16623 " struct guestfs_statvfs_list {\n"
16624 "   uint32_t len; /* Number of elements in list. */\n"
16625 "   struct guestfs_statvfs *val; /* Elements. */\n"
16626 " };\n"
16627 " \n"
16628 msgstr ""
16629
16630 # type: verbatim
16631 #: ../src/guestfs-structs.pod:156
16632 #, no-wrap
16633 msgid ""
16634 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
16635 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
16636 "\n"
16637 msgstr ""
16638
16639 # type: =head2
16640 #: ../src/guestfs-structs.pod:159
16641 msgid "guestfs_dirent"
16642 msgstr ""
16643
16644 # type: verbatim
16645 #: ../src/guestfs-structs.pod:161
16646 #, no-wrap
16647 msgid ""
16648 " struct guestfs_dirent {\n"
16649 "   int64_t ino;\n"
16650 "   char ftyp;\n"
16651 "   char *name;\n"
16652 " };\n"
16653 " \n"
16654 msgstr ""
16655
16656 # type: verbatim
16657 #: ../src/guestfs-structs.pod:167
16658 #, no-wrap
16659 msgid ""
16660 " struct guestfs_dirent_list {\n"
16661 "   uint32_t len; /* Number of elements in list. */\n"
16662 "   struct guestfs_dirent *val; /* Elements. */\n"
16663 " };\n"
16664 " \n"
16665 msgstr ""
16666
16667 # type: verbatim
16668 #: ../src/guestfs-structs.pod:172
16669 #, no-wrap
16670 msgid ""
16671 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
16672 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
16673 "\n"
16674 msgstr ""
16675
16676 # type: verbatim
16677 #: ../src/guestfs-structs.pod:177
16678 #, no-wrap
16679 msgid ""
16680 " struct guestfs_version {\n"
16681 "   int64_t major;\n"
16682 "   int64_t minor;\n"
16683 "   int64_t release;\n"
16684 "   char *extra;\n"
16685 " };\n"
16686 " \n"
16687 msgstr ""
16688
16689 # type: verbatim
16690 #: ../src/guestfs-structs.pod:184
16691 #, no-wrap
16692 msgid ""
16693 " struct guestfs_version_list {\n"
16694 "   uint32_t len; /* Number of elements in list. */\n"
16695 "   struct guestfs_version *val; /* Elements. */\n"
16696 " };\n"
16697 " \n"
16698 msgstr ""
16699
16700 # type: verbatim
16701 #: ../src/guestfs-structs.pod:189
16702 #, no-wrap
16703 msgid ""
16704 " void guestfs_free_version (struct guestfs_free_version *);\n"
16705 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
16706 "\n"
16707 msgstr ""
16708
16709 # type: =head2
16710 #: ../src/guestfs-structs.pod:192
16711 msgid "guestfs_xattr"
16712 msgstr ""
16713
16714 # type: verbatim
16715 #: ../src/guestfs-structs.pod:194
16716 #, no-wrap
16717 msgid ""
16718 " struct guestfs_xattr {\n"
16719 "   char *attrname;\n"
16720 "   /* The next two fields describe a byte array. */\n"
16721 "   uint32_t attrval_len;\n"
16722 "   char *attrval;\n"
16723 " };\n"
16724 " \n"
16725 msgstr ""
16726
16727 # type: verbatim
16728 #: ../src/guestfs-structs.pod:201
16729 #, no-wrap
16730 msgid ""
16731 " struct guestfs_xattr_list {\n"
16732 "   uint32_t len; /* Number of elements in list. */\n"
16733 "   struct guestfs_xattr *val; /* Elements. */\n"
16734 " };\n"
16735 " \n"
16736 msgstr ""
16737
16738 # type: verbatim
16739 #: ../src/guestfs-structs.pod:206
16740 #, no-wrap
16741 msgid ""
16742 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
16743 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
16744 "\n"
16745 msgstr ""
16746
16747 # type: =head2
16748 #: ../src/guestfs-structs.pod:209
16749 msgid "guestfs_inotify_event"
16750 msgstr ""
16751
16752 # type: verbatim
16753 #: ../src/guestfs-structs.pod:211
16754 #, no-wrap
16755 msgid ""
16756 " struct guestfs_inotify_event {\n"
16757 "   int64_t in_wd;\n"
16758 "   uint32_t in_mask;\n"
16759 "   uint32_t in_cookie;\n"
16760 "   char *in_name;\n"
16761 " };\n"
16762 " \n"
16763 msgstr ""
16764
16765 # type: verbatim
16766 #: ../src/guestfs-structs.pod:218
16767 #, no-wrap
16768 msgid ""
16769 " struct guestfs_inotify_event_list {\n"
16770 "   uint32_t len; /* Number of elements in list. */\n"
16771 "   struct guestfs_inotify_event *val; /* Elements. */\n"
16772 " };\n"
16773 " \n"
16774 msgstr ""
16775
16776 # type: verbatim
16777 #: ../src/guestfs-structs.pod:223
16778 #, no-wrap
16779 msgid ""
16780 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
16781 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
16782 "\n"
16783 msgstr ""
16784
16785 # type: =head2
16786 #: ../src/guestfs-structs.pod:226
16787 msgid "guestfs_partition"
16788 msgstr ""
16789
16790 # type: verbatim
16791 #: ../src/guestfs-structs.pod:228
16792 #, no-wrap
16793 msgid ""
16794 " struct guestfs_partition {\n"
16795 "   int32_t part_num;\n"
16796 "   uint64_t part_start;\n"
16797 "   uint64_t part_end;\n"
16798 "   uint64_t part_size;\n"
16799 " };\n"
16800 " \n"
16801 msgstr ""
16802
16803 # type: verbatim
16804 #: ../src/guestfs-structs.pod:235
16805 #, no-wrap
16806 msgid ""
16807 " struct guestfs_partition_list {\n"
16808 "   uint32_t len; /* Number of elements in list. */\n"
16809 "   struct guestfs_partition *val; /* Elements. */\n"
16810 " };\n"
16811 " \n"
16812 msgstr ""
16813
16814 # type: verbatim
16815 #: ../src/guestfs-structs.pod:240
16816 #, no-wrap
16817 msgid ""
16818 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
16819 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
16820 "\n"
16821 msgstr ""
16822
16823 # type: =head2
16824 #: ../src/guestfs-structs.pod:243
16825 msgid "guestfs_application"
16826 msgstr ""
16827
16828 # type: verbatim
16829 #: ../src/guestfs-structs.pod:245
16830 #, no-wrap
16831 msgid ""
16832 " struct guestfs_application {\n"
16833 "   char *app_name;\n"
16834 "   char *app_display_name;\n"
16835 "   int32_t app_epoch;\n"
16836 "   char *app_version;\n"
16837 "   char *app_release;\n"
16838 "   char *app_install_path;\n"
16839 "   char *app_trans_path;\n"
16840 "   char *app_publisher;\n"
16841 "   char *app_url;\n"
16842 "   char *app_source_package;\n"
16843 "   char *app_summary;\n"
16844 "   char *app_description;\n"
16845 " };\n"
16846 " \n"
16847 msgstr ""
16848
16849 # type: verbatim
16850 #: ../src/guestfs-structs.pod:260
16851 #, no-wrap
16852 msgid ""
16853 " struct guestfs_application_list {\n"
16854 "   uint32_t len; /* Number of elements in list. */\n"
16855 "   struct guestfs_application *val; /* Elements. */\n"
16856 " };\n"
16857 " \n"
16858 msgstr ""
16859
16860 # type: verbatim
16861 #: ../src/guestfs-structs.pod:265
16862 #, no-wrap
16863 msgid ""
16864 " void guestfs_free_application (struct guestfs_free_application *);\n"
16865 " void guestfs_free_application_list (struct guestfs_free_application_list *);\n"
16866 "\n"
16867 msgstr ""
16868
16869 # type: textblock
16870 #: ../fish/guestfish.pod:5
16871 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
16872 msgstr ""
16873
16874 # type: verbatim
16875 #: ../fish/guestfish.pod:9
16876 #, no-wrap
16877 msgid ""
16878 " guestfish [--options] [commands]\n"
16879 "\n"
16880 msgstr ""
16881
16882 # type: verbatim
16883 #: ../fish/guestfish.pod:11
16884 #, no-wrap
16885 msgid ""
16886 " guestfish\n"
16887 "\n"
16888 msgstr ""
16889
16890 # type: verbatim
16891 #: ../fish/guestfish.pod:13
16892 #, no-wrap
16893 msgid ""
16894 " guestfish [--ro|--rw] -a disk.img\n"
16895 "\n"
16896 msgstr ""
16897
16898 # type: verbatim
16899 #: ../fish/guestfish.pod:15
16900 #, no-wrap
16901 msgid ""
16902 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
16903 "\n"
16904 msgstr ""
16905
16906 # type: verbatim
16907 #: ../fish/guestfish.pod:17
16908 #, no-wrap
16909 msgid ""
16910 " guestfish -d libvirt-domain\n"
16911 "\n"
16912 msgstr ""
16913
16914 # type: verbatim
16915 #: ../fish/guestfish.pod:19
16916 #, no-wrap
16917 msgid ""
16918 " guestfish [--ro|--rw] -a disk.img -i\n"
16919 "\n"
16920 msgstr ""
16921
16922 # type: verbatim
16923 #: ../fish/guestfish.pod:21
16924 #, no-wrap
16925 msgid ""
16926 " guestfish -d libvirt-domain -i\n"
16927 "\n"
16928 msgstr ""
16929
16930 # type: =head1
16931 #: ../fish/guestfish.pod:23 ../fuse/guestmount.pod:15 ../tools/virt-edit.pl:44
16932 #: ../tools/virt-win-reg.pl:51 ../tools/virt-tar.pl:59
16933 #: ../tools/virt-rescue.pl:41
16934 msgid "WARNING"
16935 msgstr ""
16936
16937 # type: textblock
16938 #: ../fish/guestfish.pod:25
16939 msgid ""
16940 "Using guestfish in read/write mode on live virtual machines can be "
16941 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
16942 "option to use guestfish safely if the disk image or virtual machine might be "
16943 "live."
16944 msgstr ""
16945
16946 # type: textblock
16947 #: ../fish/guestfish.pod:32
16948 msgid ""
16949 "Guestfish is a shell and command-line tool for examining and modifying "
16950 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
16951 "functionality of the guestfs API, see L<guestfs(3)>."
16952 msgstr ""
16953
16954 # type: textblock
16955 #: ../fish/guestfish.pod:36
16956 msgid ""
16957 "Guestfish gives you structured access to the libguestfs API, from shell "
16958 "scripts or the command line or interactively.  If you want to rescue a "
16959 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
16960 "command."
16961 msgstr ""
16962
16963 # type: =head1
16964 #: ../fish/guestfish.pod:41 ../fish/guestfish.pod:846
16965 #: ../fuse/guestmount.pod:39 ../tools/virt-edit.pl:58
16966 #: ../tools/virt-resize.pl:66 ../tools/virt-tar.pl:45
16967 msgid "EXAMPLES"
16968 msgstr ""
16969
16970 # type: =head2
16971 #: ../fish/guestfish.pod:43
16972 msgid "As an interactive shell"
16973 msgstr ""
16974
16975 # type: verbatim
16976 #: ../fish/guestfish.pod:45
16977 #, no-wrap
16978 msgid ""
16979 " $ guestfish\n"
16980 " \n"
16981 msgstr ""
16982
16983 # type: verbatim
16984 #: ../fish/guestfish.pod:47
16985 #, no-wrap
16986 msgid ""
16987 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
16988 " editing virtual machine filesystems.\n"
16989 " \n"
16990 msgstr ""
16991
16992 # type: verbatim
16993 #: ../fish/guestfish.pod:50
16994 #, no-wrap
16995 msgid ""
16996 " Type: 'help' for a list of commands\n"
16997 "       'man' to read the manual\n"
16998 "       'quit' to quit the shell\n"
16999 " \n"
17000 msgstr ""
17001
17002 # type: verbatim
17003 #: ../fish/guestfish.pod:54
17004 #, no-wrap
17005 msgid ""
17006 " ><fs> add-ro disk.img\n"
17007 " ><fs> run\n"
17008 " ><fs> list-filesystems\n"
17009 " /dev/sda1: ext4\n"
17010 " /dev/vg_guest/lv_root: ext4\n"
17011 " /dev/vg_guest/lv_swap: swap\n"
17012 " ><fs> mount /dev/vg_guest/lv_root /\n"
17013 " ><fs> cat /etc/fstab\n"
17014 " # /etc/fstab\n"
17015 " # Created by anaconda\n"
17016 " [...]\n"
17017 " ><fs> exit\n"
17018 "\n"
17019 msgstr ""
17020
17021 # type: =head2
17022 #: ../fish/guestfish.pod:67
17023 msgid "From shell scripts"
17024 msgstr ""
17025
17026 # type: textblock
17027 #: ../fish/guestfish.pod:69
17028 msgid "Create a new C</etc/motd> file in a guest or disk image:"
17029 msgstr ""
17030
17031 # type: verbatim
17032 #: ../fish/guestfish.pod:71
17033 #, no-wrap
17034 msgid ""
17035 " guestfish <<_EOF_\n"
17036 " add disk.img\n"
17037 " run\n"
17038 " mount /dev/vg_guest/lv_root /\n"
17039 " write /etc/motd \"Welcome, new users\"\n"
17040 " _EOF_\n"
17041 "\n"
17042 msgstr ""
17043
17044 # type: textblock
17045 #: ../fish/guestfish.pod:78
17046 msgid "List the LVM logical volumes in a disk image:"
17047 msgstr ""
17048
17049 # type: verbatim
17050 #: ../fish/guestfish.pod:80
17051 #, no-wrap
17052 msgid ""
17053 " guestfish -a disk.img --ro <<_EOF_\n"
17054 " run\n"
17055 " lvs\n"
17056 " _EOF_\n"
17057 "\n"
17058 msgstr ""
17059
17060 # type: textblock
17061 #: ../fish/guestfish.pod:85
17062 msgid "List all the filesystems in a disk image:"
17063 msgstr ""
17064
17065 # type: verbatim
17066 #: ../fish/guestfish.pod:87
17067 #, no-wrap
17068 msgid ""
17069 " guestfish -a disk.img --ro <<_EOF_\n"
17070 " run\n"
17071 " list-filesystems\n"
17072 " _EOF_\n"
17073 "\n"
17074 msgstr ""
17075
17076 # type: =head2
17077 #: ../fish/guestfish.pod:92
17078 msgid "On one command line"
17079 msgstr ""
17080
17081 # type: textblock
17082 #: ../fish/guestfish.pod:94
17083 msgid "Update C</etc/resolv.conf> in a guest:"
17084 msgstr ""
17085
17086 # type: verbatim
17087 #: ../fish/guestfish.pod:96
17088 #, no-wrap
17089 msgid ""
17090 " guestfish \\\n"
17091 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
17092 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
17093 "\n"
17094 msgstr ""
17095
17096 # type: textblock
17097 #: ../fish/guestfish.pod:100
17098 msgid "Edit C</boot/grub/grub.conf> interactively:"
17099 msgstr ""
17100
17101 # type: verbatim
17102 #: ../fish/guestfish.pod:102
17103 #, no-wrap
17104 msgid ""
17105 " guestfish --rw --add disk.img \\\n"
17106 "   --mount /dev/vg_guest/lv_root \\\n"
17107 "   --mount /dev/sda1:/boot \\\n"
17108 "   edit /boot/grub/grub.conf\n"
17109 "\n"
17110 msgstr ""
17111
17112 # type: =head2
17113 #: ../fish/guestfish.pod:107
17114 msgid "Mount disks automatically"
17115 msgstr ""
17116
17117 # type: textblock
17118 #: ../fish/guestfish.pod:109
17119 msgid ""
17120 "Use the I<-i> option to automatically mount the disks from a virtual machine:"
17121 msgstr ""
17122
17123 # type: verbatim
17124 #: ../fish/guestfish.pod:112
17125 #, no-wrap
17126 msgid ""
17127 " guestfish --ro -a disk.img -i cat /etc/group\n"
17128 "\n"
17129 msgstr ""
17130
17131 # type: verbatim
17132 #: ../fish/guestfish.pod:114
17133 #, no-wrap
17134 msgid ""
17135 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
17136 "\n"
17137 msgstr ""
17138
17139 # type: textblock
17140 #: ../fish/guestfish.pod:116
17141 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
17142 msgstr ""
17143
17144 # type: verbatim
17145 #: ../fish/guestfish.pod:118
17146 #, no-wrap
17147 msgid ""
17148 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
17149 "\n"
17150 msgstr ""
17151
17152 # type: =head2
17153 #: ../fish/guestfish.pod:120
17154 msgid "As a script interpreter"
17155 msgstr ""
17156
17157 # type: textblock
17158 #: ../fish/guestfish.pod:122
17159 msgid "Create a 100MB disk containing an ext2-formatted partition:"
17160 msgstr ""
17161
17162 # type: verbatim
17163 #: ../fish/guestfish.pod:124
17164 #, no-wrap
17165 msgid ""
17166 " #!/usr/bin/guestfish -f\n"
17167 " sparse test1.img 100M\n"
17168 " run\n"
17169 " part-disk /dev/sda mbr\n"
17170 " mkfs ext2 /dev/sda1\n"
17171 "\n"
17172 msgstr ""
17173
17174 # type: =head2
17175 #: ../fish/guestfish.pod:130
17176 msgid "Start with a prepared disk"
17177 msgstr ""
17178
17179 # type: textblock
17180 #: ../fish/guestfish.pod:132
17181 msgid ""
17182 "An alternate way to create a 100MB disk called C<test1.img> containing a "
17183 "single ext2-formatted partition:"
17184 msgstr ""
17185
17186 # type: verbatim
17187 #: ../fish/guestfish.pod:135
17188 #, no-wrap
17189 msgid ""
17190 " guestfish -N fs\n"
17191 "\n"
17192 msgstr ""
17193
17194 # type: textblock
17195 #: ../fish/guestfish.pod:137
17196 msgid "To list what is available do:"
17197 msgstr ""
17198
17199 # type: verbatim
17200 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:837
17201 #, no-wrap
17202 msgid ""
17203 " guestfish -N help | less\n"
17204 "\n"
17205 msgstr ""
17206
17207 # type: =head2
17208 #: ../fish/guestfish.pod:141
17209 msgid "Remote control"
17210 msgstr ""
17211
17212 # type: verbatim
17213 #: ../fish/guestfish.pod:143
17214 #, no-wrap
17215 msgid ""
17216 " eval \"`guestfish --listen`\"\n"
17217 " guestfish --remote add-ro disk.img\n"
17218 " guestfish --remote run\n"
17219 " guestfish --remote lvs\n"
17220 "\n"
17221 msgstr ""
17222
17223 # type: =head1
17224 #: ../fish/guestfish.pod:148 ../test-tool/libguestfs-test-tool.pod:37
17225 #: ../fuse/guestmount.pod:73 ../tools/virt-edit.pl:72
17226 #: ../tools/virt-win-reg.pl:171 ../tools/virt-df.pl:71 ../tools/virt-ls.pl:78
17227 #: ../tools/virt-resize.pl:257 ../tools/virt-list-filesystems.pl:50
17228 #: ../tools/virt-tar.pl:98 ../tools/virt-rescue.pl:103
17229 #: ../tools/virt-make-fs.pl:153 ../tools/virt-list-partitions.pl:51
17230 msgid "OPTIONS"
17231 msgstr ""
17232
17233 # type: =item
17234 #: ../fish/guestfish.pod:152 ../fuse/guestmount.pod:131
17235 #: ../tools/virt-edit.pl:80 ../tools/virt-win-reg.pl:179
17236 #: ../tools/virt-df.pl:79 ../tools/virt-ls.pl:86 ../tools/virt-resize.pl:265
17237 #: ../tools/virt-list-filesystems.pl:58 ../tools/virt-tar.pl:106
17238 #: ../tools/virt-rescue.pl:111 ../tools/virt-make-fs.pl:161
17239 #: ../tools/virt-list-partitions.pl:59
17240 msgid "B<--help>"
17241 msgstr ""
17242
17243 # type: textblock
17244 #: ../fish/guestfish.pod:154
17245 msgid "Displays general help on options."
17246 msgstr ""
17247
17248 # type: =item
17249 #: ../fish/guestfish.pod:156
17250 msgid "B<-h> | B<--cmd-help>"
17251 msgstr ""
17252
17253 # type: textblock
17254 #: ../fish/guestfish.pod:158
17255 msgid "Lists all available guestfish commands."
17256 msgstr ""
17257
17258 # type: =item
17259 #: ../fish/guestfish.pod:160
17260 msgid "B<-h cmd> | B<--cmd-help cmd>"
17261 msgstr ""
17262
17263 # type: textblock
17264 #: ../fish/guestfish.pod:162
17265 msgid "Displays detailed help on a single command C<cmd>."
17266 msgstr ""
17267
17268 # type: =item
17269 #: ../fish/guestfish.pod:164 ../fuse/guestmount.pod:77
17270 msgid "B<-a image> | B<--add image>"
17271 msgstr ""
17272
17273 # type: textblock
17274 #: ../fish/guestfish.pod:166
17275 msgid "Add a block device or virtual machine image to the shell."
17276 msgstr ""
17277
17278 # type: textblock
17279 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:81
17280 msgid ""
17281 "The format of the disk image is auto-detected.  To override this and force a "
17282 "particular format use the I<--format=..> option."
17283 msgstr ""
17284
17285 # type: =item
17286 #: ../fish/guestfish.pod:171 ../fuse/guestmount.pod:84
17287 msgid "B<-c URI> | B<--connect URI>"
17288 msgstr ""
17289
17290 # type: textblock
17291 #: ../fish/guestfish.pod:173 ../fuse/guestmount.pod:86
17292 msgid ""
17293 "When used in conjunction with the I<-d> option, this specifies the libvirt "
17294 "URI to use.  The default is to use the default libvirt connection."
17295 msgstr ""
17296
17297 # type: =item
17298 #: ../fish/guestfish.pod:177
17299 msgid "B<--csh>"
17300 msgstr ""
17301
17302 # type: textblock
17303 #: ../fish/guestfish.pod:179
17304 msgid ""
17305 "If using the I<--listen> option and a csh-like shell, use this option.  See "
17306 "section L</REMOTE CONTROL AND CSH> below."
17307 msgstr ""
17308
17309 # type: =item
17310 #: ../fish/guestfish.pod:182 ../fuse/guestmount.pod:90
17311 msgid "B<-d libvirt-domain> | B<--domain libvirt-domain>"
17312 msgstr ""
17313
17314 # type: textblock
17315 #: ../fish/guestfish.pod:184 ../fuse/guestmount.pod:92
17316 msgid ""
17317 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
17318 "used, then any libvirt domain can be used.  However in write mode, only "
17319 "libvirt domains which are shut down can be named here."
17320 msgstr ""
17321
17322 # type: =item
17323 #: ../fish/guestfish.pod:188
17324 msgid "B<-D> | B<--no-dest-paths>"
17325 msgstr ""
17326
17327 # type: textblock
17328 #: ../fish/guestfish.pod:190
17329 msgid ""
17330 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
17331 "to hit the tab key to complete paths on the guest filesystem, but this "
17332 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
17333 "allow this feature to be disabled."
17334 msgstr ""
17335
17336 # type: =item
17337 #: ../fish/guestfish.pod:195 ../fuse/guestmount.pod:108
17338 msgid "B<--echo-keys>"
17339 msgstr ""
17340
17341 # type: textblock
17342 #: ../fish/guestfish.pod:197 ../fuse/guestmount.pod:110
17343 msgid ""
17344 "When prompting for keys and passphrases, guestfish normally turns echoing "
17345 "off so you cannot see what you are typing.  If you are not worried about "
17346 "Tempest attacks and there is no one else in the room you can specify this "
17347 "flag to see what you are typing."
17348 msgstr ""
17349
17350 # type: =item
17351 #: ../fish/guestfish.pod:202
17352 msgid "B<-f file> | B<--file file>"
17353 msgstr ""
17354
17355 # type: textblock
17356 #: ../fish/guestfish.pod:204
17357 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
17358 msgstr ""
17359
17360 # type: verbatim
17361 #: ../fish/guestfish.pod:207
17362 #, no-wrap
17363 msgid ""
17364 " #!/usr/bin/guestfish -f\n"
17365 "\n"
17366 msgstr ""
17367
17368 # type: =item
17369 #: ../fish/guestfish.pod:209 ../fuse/guestmount.pod:115
17370 msgid "B<--format=raw|qcow2|..> | B<--format>"
17371 msgstr ""
17372
17373 # type: textblock
17374 #: ../fish/guestfish.pod:211 ../fuse/guestmount.pod:117
17375 msgid ""
17376 "The default for the I<-a> option is to auto-detect the format of the disk "
17377 "image.  Using this forces the disk format for I<-a> options which follow on "
17378 "the command line.  Using I<--format> with no argument switches back to auto-"
17379 "detection for subsequent I<-a> options."
17380 msgstr ""
17381
17382 # type: textblock
17383 #: ../fish/guestfish.pod:216 ../fish/guestfish.pod:543
17384 msgid "For example:"
17385 msgstr ""
17386
17387 # type: verbatim
17388 #: ../fish/guestfish.pod:218
17389 #, no-wrap
17390 msgid ""
17391 " guestfish --format=raw -a disk.img\n"
17392 "\n"
17393 msgstr ""
17394
17395 # type: textblock
17396 #: ../fish/guestfish.pod:220
17397 msgid "forces raw format (no auto-detection) for C<disk.img>."
17398 msgstr ""
17399
17400 # type: verbatim
17401 #: ../fish/guestfish.pod:222
17402 #, no-wrap
17403 msgid ""
17404 " guestfish --format=raw -a disk.img --format -a another.img\n"
17405 "\n"
17406 msgstr ""
17407
17408 # type: textblock
17409 #: ../fish/guestfish.pod:224
17410 msgid ""
17411 "forces raw format (no auto-detection) for C<disk.img> and reverts to auto-"
17412 "detection for C<another.img>."
17413 msgstr ""
17414
17415 # type: textblock
17416 #: ../fish/guestfish.pod:227
17417 msgid ""
17418 "If you have untrusted raw-format guest disk images, you should use this "
17419 "option to specify the disk format.  This avoids a possible security problem "
17420 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
17421 msgstr ""
17422
17423 # type: =item
17424 #: ../fish/guestfish.pod:232 ../fuse/guestmount.pod:135
17425 msgid "B<-i> | B<--inspector>"
17426 msgstr ""
17427
17428 # type: textblock
17429 #: ../fish/guestfish.pod:234 ../fuse/guestmount.pod:137
17430 msgid ""
17431 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
17432 "system and mount filesystems as they would be mounted on the real virtual "
17433 "machine."
17434 msgstr ""
17435
17436 # type: textblock
17437 #: ../fish/guestfish.pod:238
17438 msgid "Typical usage is either:"
17439 msgstr ""
17440
17441 # type: verbatim
17442 #: ../fish/guestfish.pod:240
17443 #, no-wrap
17444 msgid ""
17445 " guestfish -d myguest -i\n"
17446 "\n"
17447 msgstr ""
17448
17449 # type: textblock
17450 #: ../fish/guestfish.pod:242
17451 msgid "(for an inactive libvirt domain called I<myguest>), or:"
17452 msgstr ""
17453
17454 # type: verbatim
17455 #: ../fish/guestfish.pod:244
17456 #, no-wrap
17457 msgid ""
17458 " guestfish --ro -d myguest -i\n"
17459 "\n"
17460 msgstr ""
17461
17462 # type: textblock
17463 #: ../fish/guestfish.pod:246
17464 msgid "(for active domains, readonly), or specify the block device directly:"
17465 msgstr ""
17466
17467 # type: verbatim
17468 #: ../fish/guestfish.pod:248
17469 #, no-wrap
17470 msgid ""
17471 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
17472 "\n"
17473 msgstr ""
17474
17475 # type: textblock
17476 #: ../fish/guestfish.pod:250
17477 msgid ""
17478 "Note that the command line syntax changed slightly over older versions of "
17479 "guestfish.  You can still use the old syntax:"
17480 msgstr ""
17481
17482 # type: verbatim
17483 #: ../fish/guestfish.pod:253
17484 #, no-wrap
17485 msgid ""
17486 " guestfish [--ro] -i disk.img\n"
17487 "\n"
17488 msgstr ""
17489
17490 # type: verbatim
17491 #: ../fish/guestfish.pod:255
17492 #, no-wrap
17493 msgid ""
17494 " guestfish [--ro] -i libvirt-domain\n"
17495 "\n"
17496 msgstr ""
17497
17498 # type: =item
17499 #: ../fish/guestfish.pod:257 ../fuse/guestmount.pod:141
17500 msgid "B<--keys-from-stdin>"
17501 msgstr ""
17502
17503 # type: textblock
17504 #: ../fish/guestfish.pod:259 ../fuse/guestmount.pod:143
17505 msgid ""
17506 "Read key or passphrase parameters from stdin.  The default is to try to read "
17507 "passphrases from the user by opening C</dev/tty>."
17508 msgstr ""
17509
17510 # type: =item
17511 #: ../fish/guestfish.pod:262
17512 msgid "B<--listen>"
17513 msgstr ""
17514
17515 # type: textblock
17516 #: ../fish/guestfish.pod:264
17517 msgid ""
17518 "Fork into the background and listen for remote commands.  See section L</"
17519 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
17520 msgstr ""
17521
17522 # type: =item
17523 #: ../fish/guestfish.pod:267
17524 msgid "B<-m dev[:mountpoint]> | B<--mount dev[:mountpoint]>"
17525 msgstr ""
17526
17527 # type: textblock
17528 #: ../fish/guestfish.pod:269
17529 msgid "Mount the named partition or logical volume on the given mountpoint."
17530 msgstr ""
17531
17532 # type: textblock
17533 #: ../fish/guestfish.pod:271
17534 msgid "If the mountpoint is omitted, it defaults to C</>."
17535 msgstr ""
17536
17537 # type: textblock
17538 #: ../fish/guestfish.pod:273
17539 msgid "You have to mount something on C</> before most commands will work."
17540 msgstr ""
17541
17542 # type: textblock
17543 #: ../fish/guestfish.pod:275
17544 msgid ""
17545 "If any I<-m> or I<--mount> options are given, the guest is automatically "
17546 "launched."
17547 msgstr ""
17548
17549 # type: textblock
17550 #: ../fish/guestfish.pod:278
17551 msgid ""
17552 "If you don't know what filesystems a disk image contains, you can either run "
17553 "guestfish without this option, then list the partitions and LVs available "
17554 "(see L</list-partitions> and L</lvs> commands), or you can use the L<virt-"
17555 "list-filesystems(1)> program."
17556 msgstr ""
17557
17558 # type: =item
17559 #: ../fish/guestfish.pod:283 ../fuse/guestmount.pod:154
17560 msgid "B<-n> | B<--no-sync>"
17561 msgstr ""
17562
17563 # type: textblock
17564 #: ../fish/guestfish.pod:285
17565 msgid ""
17566 "Disable autosync.  This is enabled by default.  See the discussion of "
17567 "autosync in the L<guestfs(3)> manpage."
17568 msgstr ""
17569
17570 # type: =item
17571 #: ../fish/guestfish.pod:288
17572 msgid "B<-N type> | B<--new type> | B<-N help>"
17573 msgstr ""
17574
17575 # type: textblock
17576 #: ../fish/guestfish.pod:290
17577 msgid ""
17578 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
17579 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
17580 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
17581 "IMAGES> below."
17582 msgstr ""
17583
17584 # type: =item
17585 #: ../fish/guestfish.pod:295
17586 msgid "B<--progress-bars>"
17587 msgstr ""
17588
17589 # type: textblock
17590 #: ../fish/guestfish.pod:297
17591 msgid "Enable progress bars, even when guestfish is used non-interactively."
17592 msgstr ""
17593
17594 # type: textblock
17595 #: ../fish/guestfish.pod:299
17596 msgid ""
17597 "Progress bars are enabled by default when guestfish is used as an "
17598 "interactive shell."
17599 msgstr ""
17600
17601 # type: =item
17602 #: ../fish/guestfish.pod:302
17603 msgid "B<--no-progress-bars>"
17604 msgstr ""
17605
17606 # type: textblock
17607 #: ../fish/guestfish.pod:304
17608 msgid "Disable progress bars."
17609 msgstr ""
17610
17611 # type: =item
17612 #: ../fish/guestfish.pod:306
17613 msgid "B<--remote[=pid]>"
17614 msgstr ""
17615
17616 # type: textblock
17617 #: ../fish/guestfish.pod:308
17618 msgid ""
17619 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
17620 "CONTROL GUESTFISH OVER A SOCKET> below."
17621 msgstr ""
17622
17623 # type: =item
17624 #: ../fish/guestfish.pod:311 ../fuse/guestmount.pod:196
17625 msgid "B<-r> | B<--ro>"
17626 msgstr ""
17627
17628 # type: textblock
17629 #: ../fish/guestfish.pod:313
17630 msgid ""
17631 "This changes the I<-a> and I<-m> options so that disks are added and mounts "
17632 "are done read-only (see L<guestfs(3)/guestfs_mount_ro>)."
17633 msgstr ""
17634
17635 # type: textblock
17636 #: ../fish/guestfish.pod:316 ../tools/virt-rescue.pl:187
17637 msgid ""
17638 "The option must always be used if the disk image or virtual machine might be "
17639 "running, and is generally recommended in cases where you don't need write "
17640 "access to the disk."
17641 msgstr ""
17642
17643 # type: textblock
17644 #: ../fish/guestfish.pod:320
17645 msgid ""
17646 "Note that prepared disk images created with I<-N> are not affected by the "
17647 "I<--ro> option."
17648 msgstr ""
17649
17650 # type: textblock
17651 #: ../fish/guestfish.pod:323
17652 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
17653 msgstr ""
17654
17655 # type: =item
17656 #: ../fish/guestfish.pod:325 ../fuse/guestmount.pod:208
17657 #: ../tools/virt-rescue.pl:195
17658 msgid "B<--selinux>"
17659 msgstr ""
17660
17661 # type: textblock
17662 #: ../fish/guestfish.pod:327
17663 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
17664 msgstr ""
17665
17666 # type: =item
17667 #: ../fish/guestfish.pod:329 ../fuse/guestmount.pod:212
17668 msgid "B<-v> | B<--verbose>"
17669 msgstr ""
17670
17671 # type: textblock
17672 #: ../fish/guestfish.pod:331
17673 msgid ""
17674 "Enable very verbose messages.  This is particularly useful if you find a bug."
17675 msgstr ""
17676
17677 # type: =item
17678 #: ../fish/guestfish.pod:334 ../fuse/guestmount.pod:216
17679 msgid "B<-V> | B<--version>"
17680 msgstr ""
17681
17682 # type: textblock
17683 #: ../fish/guestfish.pod:336
17684 msgid "Display the guestfish / libguestfs version number and exit."
17685 msgstr ""
17686
17687 # type: =item
17688 #: ../fish/guestfish.pod:338 ../fuse/guestmount.pod:220
17689 msgid "B<-w> | B<--rw>"
17690 msgstr ""
17691
17692 # type: textblock
17693 #: ../fish/guestfish.pod:340
17694 msgid ""
17695 "This option does nothing at the moment.  See L</OPENING DISKS FOR READ AND "
17696 "WRITE> below."
17697 msgstr ""
17698
17699 # type: =item
17700 #: ../fish/guestfish.pod:343
17701 msgid "B<-x>"
17702 msgstr ""
17703
17704 # type: textblock
17705 #: ../fish/guestfish.pod:345
17706 msgid "Echo each command before executing it."
17707 msgstr ""
17708
17709 # type: =head1
17710 #: ../fish/guestfish.pod:349
17711 msgid "COMMANDS ON COMMAND LINE"
17712 msgstr ""
17713
17714 # type: textblock
17715 #: ../fish/guestfish.pod:351
17716 msgid ""
17717 "Any additional (non-option) arguments are treated as commands to execute."
17718 msgstr ""
17719
17720 # type: textblock
17721 #: ../fish/guestfish.pod:354
17722 msgid ""
17723 "Commands to execute should be separated by a colon (C<:>), where the colon "
17724 "is a separate parameter.  Thus:"
17725 msgstr ""
17726
17727 # type: verbatim
17728 #: ../fish/guestfish.pod:357
17729 #, no-wrap
17730 msgid ""
17731 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
17732 "\n"
17733 msgstr ""
17734
17735 # type: textblock
17736 #: ../fish/guestfish.pod:359
17737 msgid ""
17738 "If there are no additional arguments, then we enter a shell, either an "
17739 "interactive shell with a prompt (if the input is a terminal) or a non-"
17740 "interactive shell."
17741 msgstr ""
17742
17743 # type: textblock
17744 #: ../fish/guestfish.pod:363
17745 msgid ""
17746 "In either command line mode or non-interactive shell, the first command that "
17747 "gives an error causes the whole shell to exit.  In interactive mode (with a "
17748 "prompt) if a command fails, you can continue to enter commands."
17749 msgstr ""
17750
17751 # type: =head1
17752 #: ../fish/guestfish.pod:368
17753 msgid "USING launch (OR run)"
17754 msgstr ""
17755
17756 # type: textblock
17757 #: ../fish/guestfish.pod:370
17758 msgid ""
17759 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
17760 "then launch it, then mount any disks you need, and finally issue actions/"
17761 "commands.  So the general order of the day is:"
17762 msgstr ""
17763
17764 # type: textblock
17765 #: ../fish/guestfish.pod:378
17766 msgid "add or -a/--add"
17767 msgstr ""
17768
17769 # type: textblock
17770 #: ../fish/guestfish.pod:382
17771 msgid "launch (aka run)"
17772 msgstr ""
17773
17774 # type: textblock
17775 #: ../fish/guestfish.pod:386
17776 msgid "mount or -m/--mount"
17777 msgstr ""
17778
17779 # type: textblock
17780 #: ../fish/guestfish.pod:390
17781 msgid "any other commands"
17782 msgstr ""
17783
17784 # type: textblock
17785 #: ../fish/guestfish.pod:394
17786 msgid ""
17787 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
17788 "guest before mounting or performing any other commands."
17789 msgstr ""
17790
17791 # type: textblock
17792 #: ../fish/guestfish.pod:397
17793 msgid ""
17794 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
17795 "I<--new> options were given then C<run> is done automatically, simply "
17796 "because guestfish can't perform the action you asked for without doing this."
17797 msgstr ""
17798
17799 # type: =head1
17800 #: ../fish/guestfish.pod:402
17801 msgid "OPENING DISKS FOR READ AND WRITE"
17802 msgstr ""
17803
17804 # type: textblock
17805 #: ../fish/guestfish.pod:404
17806 msgid ""
17807 "The guestfish (and L<guestmount(1)>) options I<--ro> and I<--rw> affect "
17808 "whether the other command line options I<-a>, I<-c>, I<-d>, I<-i> and I<-m> "
17809 "open disk images read-only or for writing."
17810 msgstr ""
17811
17812 # type: textblock
17813 #: ../fish/guestfish.pod:408
17814 msgid ""
17815 "In libguestfs E<lt> 1.6.2, guestfish and guestmount defaulted to opening "
17816 "disk images supplied on the command line for write.  To open a disk image "
17817 "read-only you have to do I<-a image --ro>."
17818 msgstr ""
17819
17820 # type: textblock
17821 #: ../fish/guestfish.pod:412
17822 msgid ""
17823 "This matters: If you accidentally open a live VM disk image writable then "
17824 "you will cause irreversible disk corruption."
17825 msgstr ""
17826
17827 # type: textblock
17828 #: ../fish/guestfish.pod:415
17829 msgid ""
17830 "By libguestfs 1.8 we intend to change the default the other way.  Disk "
17831 "images will be opened read-only.  You will have to either specify "
17832 "I<guestfish --rw> or change a configuration file in order to get write "
17833 "access for disk images specified by those other command line options."
17834 msgstr ""
17835
17836 # type: textblock
17837 #: ../fish/guestfish.pod:420
17838 msgid ""
17839 "This version of guestfish has a I<--rw> option which does nothing (it is "
17840 "already the default).  However it is highly recommended that you use this "
17841 "option to indicate that guestfish needs write access, and to prepare your "
17842 "scripts for the day when this option will be required for write access."
17843 msgstr ""
17844
17845 # type: textblock
17846 #: ../fish/guestfish.pod:426
17847 msgid ""
17848 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
17849 "other libguestfs program apart from guestfish and guestmount."
17850 msgstr ""
17851
17852 # type: =head1
17853 #: ../fish/guestfish.pod:429
17854 msgid "QUOTING"
17855 msgstr ""
17856
17857 # type: textblock
17858 #: ../fish/guestfish.pod:431
17859 msgid ""
17860 "You can quote ordinary parameters using either single or double quotes.  For "
17861 "example:"
17862 msgstr ""
17863
17864 # type: verbatim
17865 #: ../fish/guestfish.pod:434
17866 #, no-wrap
17867 msgid ""
17868 " add \"file with a space.img\"\n"
17869 "\n"
17870 msgstr ""
17871
17872 # type: verbatim
17873 #: ../fish/guestfish.pod:436
17874 #, no-wrap
17875 msgid ""
17876 " rm '/file name'\n"
17877 "\n"
17878 msgstr ""
17879
17880 # type: verbatim
17881 #: ../fish/guestfish.pod:438
17882 #, no-wrap
17883 msgid ""
17884 " rm '/\"'\n"
17885 "\n"
17886 msgstr ""
17887
17888 # type: textblock
17889 #: ../fish/guestfish.pod:440
17890 msgid ""
17891 "A few commands require a list of strings to be passed.  For these, use a "
17892 "whitespace-separated list, enclosed in quotes.  Strings containing "
17893 "whitespace to be passed through must be enclosed in single quotes.  A "
17894 "literal single quote must be escaped with a backslash."
17895 msgstr ""
17896
17897 # type: verbatim
17898 #: ../fish/guestfish.pod:445
17899 #, no-wrap
17900 msgid ""
17901 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
17902 " command \"/bin/echo 'foo      bar'\"\n"
17903 " command \"/bin/echo \\'foo\\'\"\n"
17904 "\n"
17905 msgstr ""
17906
17907 # type: =head1
17908 #: ../fish/guestfish.pod:449
17909 msgid "OPTIONAL ARGUMENTS"
17910 msgstr ""
17911
17912 # type: textblock
17913 #: ../fish/guestfish.pod:451
17914 msgid ""
17915 "Some commands take optional arguments.  These arguments appear in this "
17916 "documentation as C<[argname:..]>.  You can use them as in these examples:"
17917 msgstr ""
17918
17919 # type: verbatim
17920 #: ../fish/guestfish.pod:455
17921 #, no-wrap
17922 msgid ""
17923 " add-drive-opts filename\n"
17924 "\n"
17925 msgstr ""
17926
17927 # type: verbatim
17928 #: ../fish/guestfish.pod:457
17929 #, no-wrap
17930 msgid ""
17931 " add-drive-opts filename readonly:true\n"
17932 "\n"
17933 msgstr ""
17934
17935 # type: verbatim
17936 #: ../fish/guestfish.pod:459
17937 #, no-wrap
17938 msgid ""
17939 " add-drive-opts filename format:qcow2 readonly:false\n"
17940 "\n"
17941 msgstr ""
17942
17943 # type: textblock
17944 #: ../fish/guestfish.pod:461
17945 msgid ""
17946 "Each optional argument can appear at most once.  All optional arguments must "
17947 "appear after the required ones."
17948 msgstr ""
17949
17950 # type: =head1
17951 #: ../fish/guestfish.pod:464
17952 msgid "NUMBERS"
17953 msgstr ""
17954
17955 # type: textblock
17956 #: ../fish/guestfish.pod:466
17957 msgid ""
17958 "This section applies to all commands which can take integers as parameters."
17959 msgstr ""
17960
17961 # type: =head2
17962 #: ../fish/guestfish.pod:469
17963 msgid "SIZE SUFFIX"
17964 msgstr ""
17965
17966 # type: textblock
17967 #: ../fish/guestfish.pod:471
17968 msgid ""
17969 "When the command takes a parameter measured in bytes, you can use one of the "
17970 "following suffixes to specify kilobytes, megabytes and larger sizes:"
17971 msgstr ""
17972
17973 # type: =item
17974 #: ../fish/guestfish.pod:477
17975 msgid "B<k> or B<K> or B<KiB>"
17976 msgstr ""
17977
17978 # type: textblock
17979 #: ../fish/guestfish.pod:479
17980 msgid "The size in kilobytes (multiplied by 1024)."
17981 msgstr ""
17982
17983 # type: =item
17984 #: ../fish/guestfish.pod:481
17985 msgid "B<KB>"
17986 msgstr ""
17987
17988 # type: textblock
17989 #: ../fish/guestfish.pod:483
17990 msgid "The size in SI 1000 byte units."
17991 msgstr ""
17992
17993 # type: =item
17994 #: ../fish/guestfish.pod:485
17995 msgid "B<M> or B<MiB>"
17996 msgstr ""
17997
17998 # type: textblock
17999 #: ../fish/guestfish.pod:487
18000 msgid "The size in megabytes (multiplied by 1048576)."
18001 msgstr ""
18002
18003 # type: =item
18004 #: ../fish/guestfish.pod:489
18005 msgid "B<MB>"
18006 msgstr ""
18007
18008 # type: textblock
18009 #: ../fish/guestfish.pod:491
18010 msgid "The size in SI 1000000 byte units."
18011 msgstr ""
18012
18013 # type: =item
18014 #: ../fish/guestfish.pod:493
18015 msgid "B<G> or B<GiB>"
18016 msgstr ""
18017
18018 # type: textblock
18019 #: ../fish/guestfish.pod:495
18020 msgid "The size in gigabytes (multiplied by 2**30)."
18021 msgstr ""
18022
18023 # type: =item
18024 #: ../fish/guestfish.pod:497
18025 msgid "B<GB>"
18026 msgstr ""
18027
18028 # type: textblock
18029 #: ../fish/guestfish.pod:499
18030 msgid "The size in SI 10**9 byte units."
18031 msgstr ""
18032
18033 # type: =item
18034 #: ../fish/guestfish.pod:501
18035 msgid "B<T> or B<TiB>"
18036 msgstr ""
18037
18038 # type: textblock
18039 #: ../fish/guestfish.pod:503
18040 msgid "The size in terabytes (multiplied by 2**40)."
18041 msgstr ""
18042
18043 # type: =item
18044 #: ../fish/guestfish.pod:505
18045 msgid "B<TB>"
18046 msgstr ""
18047
18048 # type: textblock
18049 #: ../fish/guestfish.pod:507
18050 msgid "The size in SI 10**12 byte units."
18051 msgstr ""
18052
18053 # type: =item
18054 #: ../fish/guestfish.pod:509
18055 msgid "B<P> or B<PiB>"
18056 msgstr ""
18057
18058 # type: textblock
18059 #: ../fish/guestfish.pod:511
18060 msgid "The size in petabytes (multiplied by 2**50)."
18061 msgstr ""
18062
18063 # type: =item
18064 #: ../fish/guestfish.pod:513
18065 msgid "B<PB>"
18066 msgstr ""
18067
18068 # type: textblock
18069 #: ../fish/guestfish.pod:515
18070 msgid "The size in SI 10**15 byte units."
18071 msgstr ""
18072
18073 # type: =item
18074 #: ../fish/guestfish.pod:517
18075 msgid "B<E> or B<EiB>"
18076 msgstr ""
18077
18078 # type: textblock
18079 #: ../fish/guestfish.pod:519
18080 msgid "The size in exabytes (multiplied by 2**60)."
18081 msgstr ""
18082
18083 # type: =item
18084 #: ../fish/guestfish.pod:521
18085 msgid "B<EB>"
18086 msgstr ""
18087
18088 # type: textblock
18089 #: ../fish/guestfish.pod:523
18090 msgid "The size in SI 10**18 byte units."
18091 msgstr ""
18092
18093 # type: =item
18094 #: ../fish/guestfish.pod:525
18095 msgid "B<Z> or B<ZiB>"
18096 msgstr ""
18097
18098 # type: textblock
18099 #: ../fish/guestfish.pod:527
18100 msgid "The size in zettabytes (multiplied by 2**70)."
18101 msgstr ""
18102
18103 # type: =item
18104 #: ../fish/guestfish.pod:529
18105 msgid "B<ZB>"
18106 msgstr ""
18107
18108 # type: textblock
18109 #: ../fish/guestfish.pod:531
18110 msgid "The size in SI 10**21 byte units."
18111 msgstr ""
18112
18113 # type: =item
18114 #: ../fish/guestfish.pod:533
18115 msgid "B<Y> or B<YiB>"
18116 msgstr ""
18117
18118 # type: textblock
18119 #: ../fish/guestfish.pod:535
18120 msgid "The size in yottabytes (multiplied by 2**80)."
18121 msgstr ""
18122
18123 # type: =item
18124 #: ../fish/guestfish.pod:537
18125 msgid "B<YB>"
18126 msgstr ""
18127
18128 # type: textblock
18129 #: ../fish/guestfish.pod:539
18130 msgid "The size in SI 10**24 byte units."
18131 msgstr ""
18132
18133 # type: verbatim
18134 #: ../fish/guestfish.pod:545
18135 #, no-wrap
18136 msgid ""
18137 " truncate-size /file 1G\n"
18138 "\n"
18139 msgstr ""
18140
18141 # type: textblock
18142 #: ../fish/guestfish.pod:547
18143 msgid "would truncate the file to 1 gigabyte."
18144 msgstr ""
18145
18146 # type: textblock
18147 #: ../fish/guestfish.pod:549
18148 msgid ""
18149 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
18150 "the parameter to L</memsize> is specified in megabytes already).  Adding a "
18151 "suffix will probably not do what you expect."
18152 msgstr ""
18153
18154 # type: =head2
18155 #: ../fish/guestfish.pod:553
18156 msgid "OCTAL AND HEXADECIMAL NUMBERS"
18157 msgstr ""
18158
18159 # type: textblock
18160 #: ../fish/guestfish.pod:555
18161 msgid ""
18162 "For specifying the radix (base) use the C convention: C<0> to prefix an "
18163 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
18164 msgstr ""
18165
18166 # type: verbatim
18167 #: ../fish/guestfish.pod:558
18168 #, no-wrap
18169 msgid ""
18170 " 1234      decimal number 1234\n"
18171 " 02322     octal number, equivalent to decimal 1234\n"
18172 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
18173 "\n"
18174 msgstr ""
18175
18176 # type: textblock
18177 #: ../fish/guestfish.pod:562
18178 msgid ""
18179 "When using the C<chmod> command, you almost always want to specify an octal "
18180 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
18181 "L<chmod(1)> program):"
18182 msgstr ""
18183
18184 # type: verbatim
18185 #: ../fish/guestfish.pod:566
18186 #, no-wrap
18187 msgid ""
18188 " chmod 0777 /public  # OK\n"
18189 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
18190 "\n"
18191 msgstr ""
18192
18193 # type: textblock
18194 #: ../fish/guestfish.pod:569
18195 msgid ""
18196 "Commands that return numbers usually print them in decimal, but some "
18197 "commands print numbers in other radices (eg. C<umask> prints the mode in "
18198 "octal, preceeded by C<0>)."
18199 msgstr ""
18200
18201 # type: =head1
18202 #: ../fish/guestfish.pod:573
18203 msgid "WILDCARDS AND GLOBBING"
18204 msgstr ""
18205
18206 # type: textblock
18207 #: ../fish/guestfish.pod:575
18208 msgid ""
18209 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
18210 "(globbing) by default.  So for example the following will not do what you "
18211 "expect:"
18212 msgstr ""
18213
18214 # type: verbatim
18215 #: ../fish/guestfish.pod:579
18216 #, no-wrap
18217 msgid ""
18218 " rm-rf /home/*\n"
18219 "\n"
18220 msgstr ""
18221
18222 # type: textblock
18223 #: ../fish/guestfish.pod:581
18224 msgid ""
18225 "Assuming you don't have a directory called literally C</home/*> then the "
18226 "above command will return an error."
18227 msgstr ""
18228
18229 # type: textblock
18230 #: ../fish/guestfish.pod:584
18231 msgid "To perform wildcard expansion, use the C<glob> command."
18232 msgstr ""
18233
18234 # type: verbatim
18235 #: ../fish/guestfish.pod:586
18236 #, no-wrap
18237 msgid ""
18238 " glob rm-rf /home/*\n"
18239 "\n"
18240 msgstr ""
18241
18242 # type: textblock
18243 #: ../fish/guestfish.pod:588
18244 msgid ""
18245 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
18246 "many times), equivalent to:"
18247 msgstr ""
18248
18249 # type: verbatim
18250 #: ../fish/guestfish.pod:591
18251 #, no-wrap
18252 msgid ""
18253 " rm-rf /home/jim\n"
18254 " rm-rf /home/joe\n"
18255 " rm-rf /home/mary\n"
18256 "\n"
18257 msgstr ""
18258
18259 # type: textblock
18260 #: ../fish/guestfish.pod:595
18261 msgid "C<glob> only works on simple guest paths and not on device names."
18262 msgstr ""
18263
18264 # type: textblock
18265 #: ../fish/guestfish.pod:597
18266 msgid ""
18267 "If you have several parameters, each containing a wildcard, then glob will "
18268 "perform a Cartesian product."
18269 msgstr ""
18270
18271 # type: =head1
18272 #: ../fish/guestfish.pod:600
18273 msgid "COMMENTS"
18274 msgstr ""
18275
18276 # type: textblock
18277 #: ../fish/guestfish.pod:602
18278 msgid ""
18279 "Any line which starts with a I<#> character is treated as a comment and "
18280 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
18281 "a command.  For example:"
18282 msgstr ""
18283
18284 # type: verbatim
18285 #: ../fish/guestfish.pod:606
18286 #, no-wrap
18287 msgid ""
18288 " # this is a comment\n"
18289 "         # this is a comment\n"
18290 " foo # NOT a comment\n"
18291 "\n"
18292 msgstr ""
18293
18294 # type: textblock
18295 #: ../fish/guestfish.pod:610
18296 msgid "Blank lines are also ignored."
18297 msgstr ""
18298
18299 # type: =head1
18300 #: ../fish/guestfish.pod:612
18301 msgid "RUNNING COMMANDS LOCALLY"
18302 msgstr ""
18303
18304 # type: textblock
18305 #: ../fish/guestfish.pod:614
18306 msgid ""
18307 "Any line which starts with a I<!> character is treated as a command sent to "
18308 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
18309 msgstr ""
18310
18311 # type: verbatim
18312 #: ../fish/guestfish.pod:618
18313 #, no-wrap
18314 msgid ""
18315 " !mkdir local\n"
18316 " tgz-out /remote local/remote-data.tar.gz\n"
18317 "\n"
18318 msgstr ""
18319
18320 # type: textblock
18321 #: ../fish/guestfish.pod:621
18322 msgid ""
18323 "will create a directory C<local> on the host, and then export the contents "
18324 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
18325 "(See C<tgz-out>)."
18326 msgstr ""
18327
18328 # type: textblock
18329 #: ../fish/guestfish.pod:625
18330 msgid ""
18331 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
18332 "effect, due to the way that subprocesses work in Unix."
18333 msgstr ""
18334
18335 # type: =head1
18336 #: ../fish/guestfish.pod:628
18337 msgid "PIPES"
18338 msgstr ""
18339
18340 # type: textblock
18341 #: ../fish/guestfish.pod:630
18342 msgid ""
18343 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
18344 "command (a guestfish command) to the second command (any host command).  For "
18345 "example:"
18346 msgstr ""
18347
18348 # type: verbatim
18349 #: ../fish/guestfish.pod:634
18350 #, no-wrap
18351 msgid ""
18352 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
18353 "\n"
18354 msgstr ""
18355
18356 # type: textblock
18357 #: ../fish/guestfish.pod:636
18358 msgid ""
18359 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
18360 "program).  The above command would list all accounts in the guest filesystem "
18361 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
18362 msgstr ""
18363
18364 # type: verbatim
18365 #: ../fish/guestfish.pod:641
18366 #, no-wrap
18367 msgid ""
18368 " hexdump /bin/ls | head\n"
18369 " list-devices | tail -1\n"
18370 " tgz-out / - | tar ztf -\n"
18371 "\n"
18372 msgstr ""
18373
18374 # type: textblock
18375 #: ../fish/guestfish.pod:645
18376 msgid ""
18377 "The space before the pipe symbol is required, any space after the pipe "
18378 "symbol is optional.  Everything after the pipe symbol is just passed "
18379 "straight to the host shell, so it can contain redirections, globs and "
18380 "anything else that makes sense on the host side."
18381 msgstr ""
18382
18383 # type: textblock
18384 #: ../fish/guestfish.pod:650
18385 msgid ""
18386 "To use a literal argument which begins with a pipe symbol, you have to quote "
18387 "it, eg:"
18388 msgstr ""
18389
18390 # type: verbatim
18391 #: ../fish/guestfish.pod:653
18392 #, no-wrap
18393 msgid ""
18394 " echo \"|\"\n"
18395 "\n"
18396 msgstr ""
18397
18398 # type: =head1
18399 #: ../fish/guestfish.pod:655
18400 msgid "HOME DIRECTORIES"
18401 msgstr ""
18402
18403 # type: textblock
18404 #: ../fish/guestfish.pod:657
18405 msgid ""
18406 "If a parameter starts with the character C<~> then the tilde may be expanded "
18407 "as a home directory path (either C<~> for the current user's home directory, "
18408 "or C<~user> for another user)."
18409 msgstr ""
18410
18411 # type: textblock
18412 #: ../fish/guestfish.pod:661
18413 msgid ""
18414 "Note that home directory expansion happens for users known I<on the host>, "
18415 "not in the guest filesystem."
18416 msgstr ""
18417
18418 # type: textblock
18419 #: ../fish/guestfish.pod:664
18420 msgid ""
18421 "To use a literal argument which begins with a tilde, you have to quote it, "
18422 "eg:"
18423 msgstr ""
18424
18425 # type: verbatim
18426 #: ../fish/guestfish.pod:667
18427 #, no-wrap
18428 msgid ""
18429 " echo \"~\"\n"
18430 "\n"
18431 msgstr ""
18432
18433 # type: textblock
18434 #: ../fish/guestfish.pod:671
18435 msgid ""
18436 "Libguestfs has some support for Linux guests encrypted according to the "
18437 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
18438 "disk encryption systems used by modern Linux guests.  Currently only LVM-on-"
18439 "LUKS is supported."
18440 msgstr ""
18441
18442 # type: textblock
18443 #: ../fish/guestfish.pod:676
18444 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
18445 msgstr ""
18446
18447 # type: verbatim
18448 #: ../fish/guestfish.pod:678
18449 #, no-wrap
18450 msgid ""
18451 " ><fs> vfs-type /dev/sda2\n"
18452 " crypto_LUKS\n"
18453 "\n"
18454 msgstr ""
18455
18456 # type: textblock
18457 #: ../fish/guestfish.pod:681
18458 msgid ""
18459 "Then open those devices using L</luks-open>.  This creates a device-mapper "
18460 "device called C</dev/mapper/luksdev>."
18461 msgstr ""
18462
18463 # type: verbatim
18464 #: ../fish/guestfish.pod:684
18465 #, no-wrap
18466 msgid ""
18467 " ><fs> luks-open /dev/sda2 luksdev\n"
18468 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
18469 "\n"
18470 msgstr ""
18471
18472 # type: textblock
18473 #: ../fish/guestfish.pod:687
18474 msgid ""
18475 "Finally you have to tell LVM to scan for volume groups on the newly created "
18476 "mapper device:"
18477 msgstr ""
18478
18479 # type: verbatim
18480 #: ../fish/guestfish.pod:690
18481 #, no-wrap
18482 msgid ""
18483 " vgscan\n"
18484 " vg-activate-all true\n"
18485 "\n"
18486 msgstr ""
18487
18488 # type: textblock
18489 #: ../fish/guestfish.pod:693
18490 msgid "The logical volume(s) can now be mounted in the usual way."
18491 msgstr ""
18492
18493 # type: textblock
18494 #: ../fish/guestfish.pod:695
18495 msgid ""
18496 "Before closing a LUKS device you must unmount any logical volumes on it and "
18497 "deactivate the volume groups by calling C<vg-activate false VG> on each "
18498 "one.  Then you can close the mapper device:"
18499 msgstr ""
18500
18501 # type: verbatim
18502 #: ../fish/guestfish.pod:699
18503 #, no-wrap
18504 msgid ""
18505 " vg-activate false /dev/VG\n"
18506 " luks-close /dev/mapper/luksdev\n"
18507 "\n"
18508 msgstr ""
18509
18510 # type: =head1
18511 #: ../fish/guestfish.pod:702
18512 msgid "WINDOWS PATHS"
18513 msgstr ""
18514
18515 # type: textblock
18516 #: ../fish/guestfish.pod:704
18517 msgid ""
18518 "If a path is prefixed with C<win:> then you can use Windows-style paths "
18519 "(with some limitations).  The following commands are equivalent:"
18520 msgstr ""
18521
18522 # type: verbatim
18523 #: ../fish/guestfish.pod:707
18524 #, no-wrap
18525 msgid ""
18526 " file /WINDOWS/system32/config/system.LOG\n"
18527 "\n"
18528 msgstr ""
18529
18530 # type: verbatim
18531 #: ../fish/guestfish.pod:709
18532 #, no-wrap
18533 msgid ""
18534 " file win:/windows/system32/config/system.log\n"
18535 "\n"
18536 msgstr ""
18537
18538 # type: verbatim
18539 #: ../fish/guestfish.pod:711
18540 #, no-wrap
18541 msgid ""
18542 " file win:\\windows\\system32\\config\\system.log\n"
18543 "\n"
18544 msgstr ""
18545
18546 # type: verbatim
18547 #: ../fish/guestfish.pod:713
18548 #, no-wrap
18549 msgid ""
18550 " file WIN:C:\\Windows\\SYSTEM32\\conFIG\\SYSTEM.LOG\n"
18551 "\n"
18552 msgstr ""
18553
18554 # type: textblock
18555 #: ../fish/guestfish.pod:715
18556 msgid ""
18557 "This syntax implicitly calls C<case-sensitive-path> (q.v.) so it also "
18558 "handles case insensitivity like Windows would.  This only works in argument "
18559 "positions that expect a path."
18560 msgstr ""
18561
18562 # type: =head1
18563 #: ../fish/guestfish.pod:719
18564 msgid "UPLOADING AND DOWNLOADING FILES"
18565 msgstr ""
18566
18567 # type: textblock
18568 #: ../fish/guestfish.pod:721
18569 msgid ""
18570 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
18571 "others which upload from or download to a local file, you can use the "
18572 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
18573 msgstr ""
18574
18575 # type: verbatim
18576 #: ../fish/guestfish.pod:725
18577 #, no-wrap
18578 msgid ""
18579 " upload - /foo\n"
18580 "\n"
18581 msgstr ""
18582
18583 # type: textblock
18584 #: ../fish/guestfish.pod:727
18585 msgid ""
18586 "reads stdin and creates from that a file C</foo> in the disk image, and:"
18587 msgstr ""
18588
18589 # type: verbatim
18590 #: ../fish/guestfish.pod:730
18591 #, no-wrap
18592 msgid ""
18593 " tar-out /etc - | tar tf -\n"
18594 "\n"
18595 msgstr ""
18596
18597 # type: textblock
18598 #: ../fish/guestfish.pod:732
18599 msgid ""
18600 "writes the tarball to stdout and then pipes that into the external \"tar\" "
18601 "command (see L</PIPES>)."
18602 msgstr ""
18603
18604 # type: textblock
18605 #: ../fish/guestfish.pod:735
18606 msgid ""
18607 "When using C<-> to read from stdin, the input is read up to the end of "
18608 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
18609 "some arbitrary end marker:"
18610 msgstr ""
18611
18612 # type: verbatim
18613 #: ../fish/guestfish.pod:739
18614 #, no-wrap
18615 msgid ""
18616 " upload -<<END /foo\n"
18617 " input line 1\n"
18618 " input line 2\n"
18619 " input line 3\n"
18620 " END\n"
18621 "\n"
18622 msgstr ""
18623
18624 # type: textblock
18625 #: ../fish/guestfish.pod:745
18626 msgid ""
18627 "Any string of characters can be used instead of C<END>.  The end marker must "
18628 "appear on a line of its own, without any preceeding or following characters "
18629 "(not even spaces)."
18630 msgstr ""
18631
18632 # type: textblock
18633 #: ../fish/guestfish.pod:749
18634 msgid ""
18635 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
18636 "upload local files (so-called \"FileIn\" parameters in the generator)."
18637 msgstr ""
18638
18639 # type: =head1
18640 #: ../fish/guestfish.pod:752
18641 msgid "EXIT ON ERROR BEHAVIOUR"
18642 msgstr ""
18643
18644 # type: textblock
18645 #: ../fish/guestfish.pod:754
18646 msgid ""
18647 "By default, guestfish will ignore any errors when in interactive mode (ie. "
18648 "taking commands from a human over a tty), and will exit on the first error "
18649 "in non-interactive mode (scripts, commands given on the command line)."
18650 msgstr ""
18651
18652 # type: textblock
18653 #: ../fish/guestfish.pod:759
18654 msgid ""
18655 "If you prefix a command with a I<-> character, then that command will not "
18656 "cause guestfish to exit, even if that (one) command returns an error."
18657 msgstr ""
18658
18659 # type: =head1
18660 #: ../fish/guestfish.pod:763
18661 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
18662 msgstr ""
18663
18664 # type: textblock
18665 #: ../fish/guestfish.pod:765
18666 msgid ""
18667 "Guestfish can be remote-controlled over a socket.  This is useful "
18668 "particularly in shell scripts where you want to make several different "
18669 "changes to a filesystem, but you don't want the overhead of starting up a "
18670 "guestfish process each time."
18671 msgstr ""
18672
18673 # type: textblock
18674 #: ../fish/guestfish.pod:770
18675 msgid "Start a guestfish server process using:"
18676 msgstr ""
18677
18678 # type: verbatim
18679 #: ../fish/guestfish.pod:772
18680 #, no-wrap
18681 msgid ""
18682 " eval \"`guestfish --listen`\"\n"
18683 "\n"
18684 msgstr ""
18685
18686 # type: textblock
18687 #: ../fish/guestfish.pod:774
18688 msgid "and then send it commands by doing:"
18689 msgstr ""
18690
18691 # type: verbatim
18692 #: ../fish/guestfish.pod:776
18693 #, no-wrap
18694 msgid ""
18695 " guestfish --remote cmd [...]\n"
18696 "\n"
18697 msgstr ""
18698
18699 # type: textblock
18700 #: ../fish/guestfish.pod:778
18701 msgid "To cause the server to exit, send it the exit command:"
18702 msgstr ""
18703
18704 # type: verbatim
18705 #: ../fish/guestfish.pod:780
18706 #, no-wrap
18707 msgid ""
18708 " guestfish --remote exit\n"
18709 "\n"
18710 msgstr ""
18711
18712 # type: textblock
18713 #: ../fish/guestfish.pod:782
18714 msgid ""
18715 "Note that the server will normally exit if there is an error in a command.  "
18716 "You can change this in the usual way.  See section L</EXIT ON ERROR "
18717 "BEHAVIOUR>."
18718 msgstr ""
18719
18720 # type: =head2
18721 #: ../fish/guestfish.pod:786
18722 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
18723 msgstr ""
18724
18725 # type: textblock
18726 #: ../fish/guestfish.pod:788
18727 msgid ""
18728 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
18729 "is how the I<--remote> option knows where to send the commands.  You can "
18730 "have several guestfish listener processes running using:"
18731 msgstr ""
18732
18733 # type: verbatim
18734 #: ../fish/guestfish.pod:792
18735 #, no-wrap
18736 msgid ""
18737 " eval \"`guestfish --listen`\"\n"
18738 " pid1=$GUESTFISH_PID\n"
18739 " eval \"`guestfish --listen`\"\n"
18740 " pid2=$GUESTFISH_PID\n"
18741 " ...\n"
18742 " guestfish --remote=$pid1 cmd\n"
18743 " guestfish --remote=$pid2 cmd\n"
18744 "\n"
18745 msgstr ""
18746
18747 # type: =head2
18748 #: ../fish/guestfish.pod:800
18749 msgid "REMOTE CONTROL AND CSH"
18750 msgstr ""
18751
18752 # type: textblock
18753 #: ../fish/guestfish.pod:802
18754 msgid ""
18755 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
18756 "option:"
18757 msgstr ""
18758
18759 # type: verbatim
18760 #: ../fish/guestfish.pod:805
18761 #, no-wrap
18762 msgid ""
18763 " eval \"`guestfish --listen --csh`\"\n"
18764 "\n"
18765 msgstr ""
18766
18767 # type: =head2
18768 #: ../fish/guestfish.pod:807
18769 msgid "REMOTE CONTROL DETAILS"
18770 msgstr ""
18771
18772 # type: textblock
18773 #: ../fish/guestfish.pod:809
18774 msgid ""
18775 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
18776 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
18777 "and C<$PID> is the process ID of the server."
18778 msgstr ""
18779
18780 # type: textblock
18781 #: ../fish/guestfish.pod:813
18782 msgid "Guestfish client and server versions must match exactly."
18783 msgstr ""
18784
18785 # type: =head1
18786 #: ../fish/guestfish.pod:815
18787 msgid "PREPARED DISK IMAGES"
18788 msgstr ""
18789
18790 # type: textblock
18791 #: ../fish/guestfish.pod:817
18792 msgid ""
18793 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
18794 "preformatted disk images that guestfish can make for you to save typing.  "
18795 "This is particularly useful for testing purposes.  This option is used "
18796 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
18797 "can be mixed with I<-a>)."
18798 msgstr ""
18799
18800 # type: textblock
18801 #: ../fish/guestfish.pod:823
18802 msgid ""
18803 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
18804 "the second and so on.  Existing files in the current directory are "
18805 "I<overwritten>."
18806 msgstr ""
18807
18808 # type: textblock
18809 #: ../fish/guestfish.pod:827
18810 msgid ""
18811 "The type briefly describes how the disk should be sized, partitioned, how "
18812 "filesystem(s) should be created, and how content should be added.  "
18813 "Optionally the type can be followed by extra parameters, separated by C<:> "
18814 "(colon) characters.  For example, I<-N fs> creates a default 100MB, sparsely-"
18815 "allocated disk, containing a single partition, with the partition formatted "
18816 "as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
18817 "disk instead."
18818 msgstr ""
18819
18820 # type: textblock
18821 #: ../fish/guestfish.pod:835
18822 msgid "To list the available types and any extra parameters they take, run:"
18823 msgstr ""
18824
18825 # type: textblock
18826 #: ../fish/guestfish.pod:839
18827 msgid ""
18828 "Note that the prepared filesystem is not mounted.  You would usually have to "
18829 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
18830 msgstr ""
18831
18832 # type: textblock
18833 #: ../fish/guestfish.pod:843
18834 msgid ""
18835 "If any I<-N> or I<--new> options are given, the guest is automatically "
18836 "launched."
18837 msgstr ""
18838
18839 # type: textblock
18840 #: ../fish/guestfish.pod:848
18841 msgid "Create a 100MB disk with an ext4-formatted partition:"
18842 msgstr ""
18843
18844 # type: verbatim
18845 #: ../fish/guestfish.pod:850
18846 #, no-wrap
18847 msgid ""
18848 " guestfish -N fs:ext4\n"
18849 "\n"
18850 msgstr ""
18851
18852 # type: textblock
18853 #: ../fish/guestfish.pod:852
18854 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
18855 msgstr ""
18856
18857 # type: verbatim
18858 #: ../fish/guestfish.pod:854
18859 #, no-wrap
18860 msgid ""
18861 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
18862 "\n"
18863 msgstr ""
18864
18865 # type: textblock
18866 #: ../fish/guestfish.pod:856
18867 msgid "Create a blank 200MB disk:"
18868 msgstr ""
18869
18870 # type: verbatim
18871 #: ../fish/guestfish.pod:858
18872 #, no-wrap
18873 msgid ""
18874 " guestfish -N disk:200M\n"
18875 "\n"
18876 msgstr ""
18877
18878 # type: =head1
18879 #: ../fish/guestfish.pod:860
18880 msgid "PROGRESS BARS"
18881 msgstr ""
18882
18883 # type: textblock
18884 #: ../fish/guestfish.pod:862
18885 msgid ""
18886 "Some (not all) long-running commands send progress notification messages as "
18887 "they are running.  Guestfish turns these messages into progress bars."
18888 msgstr ""
18889
18890 # type: textblock
18891 #: ../fish/guestfish.pod:866
18892 msgid ""
18893 "When a command that supports progress bars takes longer than two seconds to "
18894 "run, and if progress bars are enabled, then you will see one appearing below "
18895 "the command:"
18896 msgstr ""
18897
18898 # type: verbatim
18899 #: ../fish/guestfish.pod:870
18900 #, no-wrap
18901 msgid ""
18902 " ><fs> copy-size /large-file /another-file 2048M\n"
18903 " / 10% [#####-----------------------------------------] 00:30\n"
18904 "\n"
18905 msgstr ""
18906
18907 # type: textblock
18908 #: ../fish/guestfish.pod:873
18909 msgid ""
18910 "The spinner on the left hand side moves round once for every progress "
18911 "notification received from the backend.  This is a (reasonably) golden "
18912 "assurance that the command is \"doing something\" even if the progress bar "
18913 "is not moving, because the command is able to send the progress "
18914 "notifications.  When the bar reaches 100% and the command finishes, the "
18915 "spinner disappears."
18916 msgstr ""
18917
18918 # type: textblock
18919 #: ../fish/guestfish.pod:880
18920 msgid ""
18921 "Progress bars are enabled by default when guestfish is used interactively.  "
18922 "You can enable them even for non-interactive modes using I<--progress-bars>, "
18923 "and you can disable them completely using I<--no-progress-bars>."
18924 msgstr ""
18925
18926 # type: =head1
18927 #: ../fish/guestfish.pod:885
18928 msgid "GUESTFISH COMMANDS"
18929 msgstr ""
18930
18931 # type: textblock
18932 #: ../fish/guestfish.pod:887
18933 msgid ""
18934 "The commands in this section are guestfish convenience commands, in other "
18935 "words, they are not part of the L<guestfs(3)> API."
18936 msgstr ""
18937
18938 # type: =head2
18939 #: ../fish/guestfish.pod:890
18940 msgid "help"
18941 msgstr ""
18942
18943 # type: verbatim
18944 #: ../fish/guestfish.pod:892
18945 #, no-wrap
18946 msgid ""
18947 " help\n"
18948 " help cmd\n"
18949 "\n"
18950 msgstr ""
18951
18952 # type: textblock
18953 #: ../fish/guestfish.pod:895
18954 msgid "Without any parameter, this provides general help."
18955 msgstr ""
18956
18957 # type: textblock
18958 #: ../fish/guestfish.pod:897
18959 msgid "With a C<cmd> parameter, this displays detailed help for that command."
18960 msgstr ""
18961
18962 # type: =head2
18963 #: ../fish/guestfish.pod:899
18964 msgid "quit | exit"
18965 msgstr ""
18966
18967 # type: textblock
18968 #: ../fish/guestfish.pod:901
18969 msgid "This exits guestfish.  You can also use C<^D> key."
18970 msgstr ""
18971
18972 # type: textblock
18973 #: ../fish/guestfish.pod:903
18974 msgid "@FISH_COMMANDS@"
18975 msgstr ""
18976
18977 # type: =head1
18978 #: ../fish/guestfish.pod:905
18979 msgid "COMMANDS"
18980 msgstr ""
18981
18982 # type: =head1
18983 #: ../fish/guestfish.pod:909 ../test-tool/libguestfs-test-tool.pod:83
18984 msgid "EXIT CODE"
18985 msgstr ""
18986
18987 # type: textblock
18988 #: ../fish/guestfish.pod:911
18989 msgid ""
18990 "guestfish returns 0 if the commands completed without error, or 1 if there "
18991 "was an error."
18992 msgstr ""
18993
18994 # type: =item
18995 #: ../fish/guestfish.pod:918
18996 msgid "EDITOR"
18997 msgstr ""
18998
18999 # type: textblock
19000 #: ../fish/guestfish.pod:920
19001 msgid ""
19002 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
19003 "C<vi>."
19004 msgstr ""
19005
19006 # type: =item
19007 #: ../fish/guestfish.pod:923
19008 msgid "GUESTFISH_PID"
19009 msgstr ""
19010
19011 # type: textblock
19012 #: ../fish/guestfish.pod:925
19013 msgid ""
19014 "Used with the I<--remote> option to specify the remote guestfish process to "
19015 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
19016 msgstr ""
19017
19018 # type: =item
19019 #: ../fish/guestfish.pod:929
19020 msgid "HEXEDITOR"
19021 msgstr ""
19022
19023 # type: textblock
19024 #: ../fish/guestfish.pod:931
19025 msgid ""
19026 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
19027 "not specified, the external L<hexedit(1)> program is used."
19028 msgstr ""
19029
19030 # type: =item
19031 #: ../fish/guestfish.pod:935
19032 msgid "HOME"
19033 msgstr ""
19034
19035 # type: textblock
19036 #: ../fish/guestfish.pod:937
19037 msgid ""
19038 "If compiled with GNU readline support, various files in the home directory "
19039 "can be used.  See L</FILES>."
19040 msgstr ""
19041
19042 # type: textblock
19043 #: ../fish/guestfish.pod:946
19044 msgid ""
19045 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
19046 "effect as using the B<-v> option."
19047 msgstr ""
19048
19049 # type: textblock
19050 #: ../fish/guestfish.pod:958
19051 msgid ""
19052 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
19053 "the discussion of paths in L<guestfs(3)>."
19054 msgstr ""
19055
19056 # type: textblock
19057 #: ../fish/guestfish.pod:969
19058 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
19059 msgstr ""
19060
19061 # type: =item
19062 #: ../fish/guestfish.pod:971
19063 msgid "PAGER"
19064 msgstr ""
19065
19066 # type: textblock
19067 #: ../fish/guestfish.pod:973
19068 msgid ""
19069 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
19070 "C<more>."
19071 msgstr ""
19072
19073 # type: =head1
19074 #: ../fish/guestfish.pod:988 ../test-tool/libguestfs-test-tool.pod:88
19075 msgid "FILES"
19076 msgstr ""
19077
19078 # type: =item
19079 #: ../fish/guestfish.pod:992
19080 msgid "$HOME/.guestfish"
19081 msgstr ""
19082
19083 # type: textblock
19084 #: ../fish/guestfish.pod:994
19085 msgid ""
19086 "If compiled with GNU readline support, then the command history is saved in "
19087 "this file."
19088 msgstr ""
19089
19090 # type: =item
19091 #: ../fish/guestfish.pod:997
19092 msgid "$HOME/.inputrc"
19093 msgstr ""
19094
19095 # type: =item
19096 #: ../fish/guestfish.pod:999
19097 msgid "/etc/inputrc"
19098 msgstr ""
19099
19100 # type: textblock
19101 #: ../fish/guestfish.pod:1001
19102 msgid ""
19103 "If compiled with GNU readline support, then these files can be used to "
19104 "configure readline.  For further information, please see L<readline(3)/"
19105 "INITIALIZATION FILE>."
19106 msgstr ""
19107
19108 # type: textblock
19109 #: ../fish/guestfish.pod:1005
19110 msgid "To write rules which only apply to guestfish, use:"
19111 msgstr ""
19112
19113 # type: verbatim
19114 #: ../fish/guestfish.pod:1007
19115 #, no-wrap
19116 msgid ""
19117 " $if guestfish\n"
19118 " ...\n"
19119 " $endif\n"
19120 "\n"
19121 msgstr ""
19122
19123 # type: textblock
19124 #: ../fish/guestfish.pod:1011
19125 msgid ""
19126 "Variables that you can set in inputrc that change the behaviour of guestfish "
19127 "in useful ways include:"
19128 msgstr ""
19129
19130 # type: =item
19131 #: ../fish/guestfish.pod:1016
19132 msgid "completion-ignore-case (default: on)"
19133 msgstr ""
19134
19135 # type: textblock
19136 #: ../fish/guestfish.pod:1018
19137 msgid ""
19138 "By default, guestfish will ignore case when tab-completing paths on the "
19139 "disk.  Use:"
19140 msgstr ""
19141
19142 # type: verbatim
19143 #: ../fish/guestfish.pod:1021
19144 #, no-wrap
19145 msgid ""
19146 " set completion-ignore-case off\n"
19147 "\n"
19148 msgstr ""
19149
19150 # type: textblock
19151 #: ../fish/guestfish.pod:1023
19152 msgid "to make guestfish case sensitive."
19153 msgstr ""
19154
19155 # type: =item
19156 #: ../fish/guestfish.pod:1027
19157 msgid "test1.img"
19158 msgstr ""
19159
19160 # type: =item
19161 #: ../fish/guestfish.pod:1029
19162 msgid "test2.img (etc)"
19163 msgstr ""
19164
19165 # type: textblock
19166 #: ../fish/guestfish.pod:1031
19167 msgid ""
19168 "When using the C<-N> or C<--new> option, the prepared disk or filesystem "
19169 "will be created in the file C<test1.img> in the current directory.  The "
19170 "second use of C<-N> will use C<test2.img> and so on.  Any existing file with "
19171 "the same name will be overwritten."
19172 msgstr ""
19173
19174 # type: textblock
19175 #: ../fish/guestfish.pod:1040
19176 msgid ""
19177 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-cat(1)>, L<virt-df(1)>, "
19178 "L<virt-edit(1)>, L<virt-list-filesystems(1)>, L<virt-list-partitions(1)>, "
19179 "L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-resize(1)>, "
19180 "L<virt-tar(1)>, L<virt-win-reg(1)>, L<hexedit(1)>."
19181 msgstr ""
19182
19183 # type: textblock
19184 #: ../fish/guestfish.pod:1064 ../test-tool/libguestfs-test-tool.pod:124
19185 #: ../fuse/guestmount.pod:253 ../tools/virt-edit.pl:370
19186 #: ../tools/virt-win-reg.pl:518 ../tools/virt-df.pl:657
19187 #: ../tools/virt-ls.pl:251 ../tools/virt-resize.pl:1516
19188 #: ../tools/virt-list-filesystems.pl:206 ../tools/virt-tar.pl:300
19189 #: ../tools/virt-rescue.pl:285 ../tools/virt-make-fs.pl:567
19190 #: ../tools/virt-list-partitions.pl:273
19191 msgid ""
19192 "This program is free software; you can redistribute it and/or modify it "
19193 "under the terms of the GNU General Public License as published by the Free "
19194 "Software Foundation; either version 2 of the License, or (at your option) "
19195 "any later version."
19196 msgstr ""
19197
19198 # type: textblock
19199 #: ../fish/guestfish.pod:1069 ../test-tool/libguestfs-test-tool.pod:129
19200 #: ../fuse/guestmount.pod:258 ../tools/virt-edit.pl:375
19201 #: ../tools/virt-win-reg.pl:523 ../tools/virt-df.pl:662
19202 #: ../tools/virt-ls.pl:256 ../tools/virt-resize.pl:1521
19203 #: ../tools/virt-list-filesystems.pl:211 ../tools/virt-tar.pl:305
19204 #: ../tools/virt-rescue.pl:290 ../tools/virt-make-fs.pl:572
19205 #: ../tools/virt-list-partitions.pl:278
19206 msgid ""
19207 "This program is distributed in the hope that it will be useful, but WITHOUT "
19208 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
19209 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
19210 "more details."
19211 msgstr ""
19212
19213 # type: textblock
19214 #: ../fish/guestfish.pod:1074 ../test-tool/libguestfs-test-tool.pod:134
19215 #: ../fuse/guestmount.pod:263 ../tools/virt-edit.pl:380
19216 #: ../tools/virt-win-reg.pl:528 ../tools/virt-df.pl:667
19217 #: ../tools/virt-ls.pl:261 ../tools/virt-resize.pl:1526
19218 #: ../tools/virt-list-filesystems.pl:216 ../tools/virt-tar.pl:310
19219 #: ../tools/virt-rescue.pl:295 ../tools/virt-make-fs.pl:577
19220 #: ../tools/virt-list-partitions.pl:283
19221 msgid ""
19222 "You should have received a copy of the GNU General Public License along with "
19223 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
19224 "Ave, Cambridge, MA 02139, USA."
19225 msgstr ""
19226
19227 # type: =head2
19228 #: ../fish/guestfish-actions.pod:1
19229 msgid "add-cdrom"
19230 msgstr ""
19231
19232 # type: verbatim
19233 #: ../fish/guestfish-actions.pod:3
19234 #, no-wrap
19235 msgid ""
19236 " add-cdrom filename\n"
19237 "\n"
19238 msgstr ""
19239
19240 # type: textblock
19241 #: ../fish/guestfish-actions.pod:15
19242 msgid ""
19243 "This call checks for the existence of C<filename>.  This stops you from "
19244 "specifying other types of drive which are supported by qemu such as C<nbd:> "
19245 "and C<http:> URLs.  To specify those, use the general L</config> call "
19246 "instead."
19247 msgstr ""
19248
19249 # type: textblock
19250 #: ../fish/guestfish-actions.pod:22
19251 msgid ""
19252 "If you just want to add an ISO file (often you use this as an efficient way "
19253 "to transfer large files into the guest), then you should probably use L</add-"
19254 "drive-ro> instead."
19255 msgstr ""
19256
19257 # type: =head2
19258 #: ../fish/guestfish-actions.pod:35
19259 msgid "add-domain"
19260 msgstr ""
19261
19262 # type: =head2
19263 #: ../fish/guestfish-actions.pod:37
19264 msgid "domain"
19265 msgstr ""
19266
19267 # type: verbatim
19268 #: ../fish/guestfish-actions.pod:39
19269 #, no-wrap
19270 msgid ""
19271 " add-domain dom [libvirturi:..] [readonly:..] [iface:..]\n"
19272 "\n"
19273 msgstr ""
19274
19275 # type: textblock
19276 #: ../fish/guestfish-actions.pod:41
19277 msgid ""
19278 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
19279 "It works by connecting to libvirt, requesting the domain and domain XML from "
19280 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
19281 msgstr ""
19282
19283 # type: textblock
19284 #: ../fish/guestfish-actions.pod:58
19285 msgid ""
19286 "The optional C<libvirturi> parameter sets the libvirt URI (see L<http://"
19287 "libvirt.org/uri.html>).  If this is not set then we connect to the default "
19288 "libvirt URI (or one set through an environment variable, see the libvirt "
19289 "documentation for full details).  If you are using the C API directly then "
19290 "it is more flexible to create the libvirt connection object yourself, get "
19291 "the domain object, and call L</add-libvirt-dom>."
19292 msgstr ""
19293
19294 # type: textblock
19295 #: ../fish/guestfish-actions.pod:66
19296 msgid ""
19297 "The other optional parameters are passed directly through to L</add-drive-"
19298 "opts>."
19299 msgstr ""
19300
19301 # type: textblock
19302 #: ../fish/guestfish-actions.pod:69 ../fish/guestfish-actions.pod:133
19303 msgid ""
19304 "This command has one or more optional arguments.  See L</OPTIONAL ARGUMENTS>."
19305 msgstr ""
19306
19307 # type: =head2
19308 #: ../fish/guestfish-actions.pod:71
19309 msgid "add-drive"
19310 msgstr ""
19311
19312 # type: verbatim
19313 #: ../fish/guestfish-actions.pod:73
19314 #, no-wrap
19315 msgid ""
19316 " add-drive filename\n"
19317 "\n"
19318 msgstr ""
19319
19320 # type: textblock
19321 #: ../fish/guestfish-actions.pod:75
19322 msgid ""
19323 "This function is the equivalent of calling L</add-drive-opts> with no "
19324 "optional parameters, so the disk is added writable, with the format being "
19325 "detected automatically."
19326 msgstr ""
19327
19328 # type: textblock
19329 #: ../fish/guestfish-actions.pod:79
19330 msgid ""
19331 "Automatic detection of the format opens you up to a potential security hole "
19332 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
19333 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
19334 "you should think about replacing calls to this function with calls to L</add-"
19335 "drive-opts>, and specifying the format."
19336 msgstr ""
19337
19338 # type: =head2
19339 #: ../fish/guestfish-actions.pod:86
19340 msgid "add-drive-opts"
19341 msgstr ""
19342
19343 # type: =head2
19344 #: ../fish/guestfish-actions.pod:88
19345 msgid "add"
19346 msgstr ""
19347
19348 # type: verbatim
19349 #: ../fish/guestfish-actions.pod:90
19350 #, no-wrap
19351 msgid ""
19352 " add-drive-opts filename [readonly:..] [format:..] [iface:..]\n"
19353 "\n"
19354 msgstr ""
19355
19356 # type: textblock
19357 #: ../fish/guestfish-actions.pod:117
19358 msgid ""
19359 "This forces the image format.  If you omit this (or use L</add-drive> or L</"
19360 "add-drive-ro>) then the format is automatically detected.  Possible formats "
19361 "include C<raw> and C<qcow2>."
19362 msgstr ""
19363
19364 # type: textblock
19365 #: ../fish/guestfish-actions.pod:128
19366 msgid ""
19367 "This rarely-used option lets you emulate the behaviour of the deprecated L</"
19368 "add-drive-with-if> call (q.v.)"
19369 msgstr ""
19370
19371 # type: =head2
19372 #: ../fish/guestfish-actions.pod:135
19373 msgid "add-drive-ro"
19374 msgstr ""
19375
19376 # type: =head2
19377 #: ../fish/guestfish-actions.pod:137
19378 msgid "add-ro"
19379 msgstr ""
19380
19381 # type: verbatim
19382 #: ../fish/guestfish-actions.pod:139
19383 #, no-wrap
19384 msgid ""
19385 " add-drive-ro filename\n"
19386 "\n"
19387 msgstr ""
19388
19389 # type: textblock
19390 #: ../fish/guestfish-actions.pod:141
19391 msgid ""
19392 "This function is the equivalent of calling L</add-drive-opts> with the "
19393 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
19394 "is added read-only, with the format being detected automatically."
19395 msgstr ""
19396
19397 # type: =head2
19398 #: ../fish/guestfish-actions.pod:146
19399 msgid "add-drive-ro-with-if"
19400 msgstr ""
19401
19402 # type: verbatim
19403 #: ../fish/guestfish-actions.pod:148
19404 #, no-wrap
19405 msgid ""
19406 " add-drive-ro-with-if filename iface\n"
19407 "\n"
19408 msgstr ""
19409
19410 # type: textblock
19411 #: ../fish/guestfish-actions.pod:150
19412 msgid ""
19413 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
19414 "interface emulation to use at run time."
19415 msgstr ""
19416
19417 # type: =head2
19418 #: ../fish/guestfish-actions.pod:160
19419 msgid "add-drive-with-if"
19420 msgstr ""
19421
19422 # type: verbatim
19423 #: ../fish/guestfish-actions.pod:162
19424 #, no-wrap
19425 msgid ""
19426 " add-drive-with-if filename iface\n"
19427 "\n"
19428 msgstr ""
19429
19430 # type: textblock
19431 #: ../fish/guestfish-actions.pod:164
19432 msgid ""
19433 "This is the same as L</add-drive> but it allows you to specify the QEMU "
19434 "interface emulation to use at run time."
19435 msgstr ""
19436
19437 # type: =head2
19438 #: ../fish/guestfish-actions.pod:174
19439 msgid "aug-clear"
19440 msgstr ""
19441
19442 # type: verbatim
19443 #: ../fish/guestfish-actions.pod:176
19444 #, no-wrap
19445 msgid ""
19446 " aug-clear augpath\n"
19447 "\n"
19448 msgstr ""
19449
19450 # type: =head2
19451 #: ../fish/guestfish-actions.pod:181
19452 msgid "aug-close"
19453 msgstr ""
19454
19455 # type: verbatim
19456 #: ../fish/guestfish-actions.pod:183
19457 #, no-wrap
19458 msgid ""
19459 " aug-close\n"
19460 "\n"
19461 msgstr ""
19462
19463 # type: textblock
19464 #: ../fish/guestfish-actions.pod:185
19465 msgid ""
19466 "Close the current Augeas handle and free up any resources used by it.  After "
19467 "calling this, you have to call L</aug-init> again before you can use any "
19468 "other Augeas functions."
19469 msgstr ""
19470
19471 # type: =head2
19472 #: ../fish/guestfish-actions.pod:190
19473 msgid "aug-defnode"
19474 msgstr ""
19475
19476 # type: verbatim
19477 #: ../fish/guestfish-actions.pod:192
19478 #, no-wrap
19479 msgid ""
19480 " aug-defnode name expr val\n"
19481 "\n"
19482 msgstr ""
19483
19484 # type: textblock
19485 #: ../fish/guestfish-actions.pod:197
19486 msgid ""
19487 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
19488 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
19489 "containing that single node."
19490 msgstr ""
19491
19492 # type: =head2
19493 #: ../fish/guestfish-actions.pod:205
19494 msgid "aug-defvar"
19495 msgstr ""
19496
19497 # type: verbatim
19498 #: ../fish/guestfish-actions.pod:207
19499 #, no-wrap
19500 msgid ""
19501 " aug-defvar name expr\n"
19502 "\n"
19503 msgstr ""
19504
19505 # type: =head2
19506 #: ../fish/guestfish-actions.pod:216
19507 msgid "aug-get"
19508 msgstr ""
19509
19510 # type: verbatim
19511 #: ../fish/guestfish-actions.pod:218
19512 #, no-wrap
19513 msgid ""
19514 " aug-get augpath\n"
19515 "\n"
19516 msgstr ""
19517
19518 # type: =head2
19519 #: ../fish/guestfish-actions.pod:223
19520 msgid "aug-init"
19521 msgstr ""
19522
19523 # type: verbatim
19524 #: ../fish/guestfish-actions.pod:225
19525 #, no-wrap
19526 msgid ""
19527 " aug-init root flags\n"
19528 "\n"
19529 msgstr ""
19530
19531 # type: textblock
19532 #: ../fish/guestfish-actions.pod:231
19533 msgid "You must call this before using any other L</aug-*> commands."
19534 msgstr ""
19535
19536 # type: textblock
19537 #: ../fish/guestfish-actions.pod:266
19538 msgid "Do not load the tree in L</aug-init>."
19539 msgstr ""
19540
19541 # type: textblock
19542 #: ../fish/guestfish-actions.pod:270
19543 msgid "To close the handle, you can call L</aug-close>."
19544 msgstr ""
19545
19546 # type: =head2
19547 #: ../fish/guestfish-actions.pod:274
19548 msgid "aug-insert"
19549 msgstr ""
19550
19551 # type: verbatim
19552 #: ../fish/guestfish-actions.pod:276
19553 #, no-wrap
19554 msgid ""
19555 " aug-insert augpath label true|false\n"
19556 "\n"
19557 msgstr ""
19558
19559 # type: =head2
19560 #: ../fish/guestfish-actions.pod:286
19561 msgid "aug-load"
19562 msgstr ""
19563
19564 # type: verbatim
19565 #: ../fish/guestfish-actions.pod:288
19566 #, no-wrap
19567 msgid ""
19568 " aug-load\n"
19569 "\n"
19570 msgstr ""
19571
19572 # type: =head2
19573 #: ../fish/guestfish-actions.pod:295
19574 msgid "aug-ls"
19575 msgstr ""
19576
19577 # type: verbatim
19578 #: ../fish/guestfish-actions.pod:297
19579 #, no-wrap
19580 msgid ""
19581 " aug-ls augpath\n"
19582 "\n"
19583 msgstr ""
19584
19585 # type: textblock
19586 #: ../fish/guestfish-actions.pod:299
19587 msgid ""
19588 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
19589 "resulting nodes into alphabetical order."
19590 msgstr ""
19591
19592 # type: =head2
19593 #: ../fish/guestfish-actions.pod:302
19594 msgid "aug-match"
19595 msgstr ""
19596
19597 # type: verbatim
19598 #: ../fish/guestfish-actions.pod:304
19599 #, no-wrap
19600 msgid ""
19601 " aug-match augpath\n"
19602 "\n"
19603 msgstr ""
19604
19605 # type: =head2
19606 #: ../fish/guestfish-actions.pod:310
19607 msgid "aug-mv"
19608 msgstr ""
19609
19610 # type: verbatim
19611 #: ../fish/guestfish-actions.pod:312
19612 #, no-wrap
19613 msgid ""
19614 " aug-mv src dest\n"
19615 "\n"
19616 msgstr ""
19617
19618 # type: =head2
19619 #: ../fish/guestfish-actions.pod:317
19620 msgid "aug-rm"
19621 msgstr ""
19622
19623 # type: verbatim
19624 #: ../fish/guestfish-actions.pod:319
19625 #, no-wrap
19626 msgid ""
19627 " aug-rm augpath\n"
19628 "\n"
19629 msgstr ""
19630
19631 # type: =head2
19632 #: ../fish/guestfish-actions.pod:325
19633 msgid "aug-save"
19634 msgstr ""
19635
19636 # type: verbatim
19637 #: ../fish/guestfish-actions.pod:327
19638 #, no-wrap
19639 msgid ""
19640 " aug-save\n"
19641 "\n"
19642 msgstr ""
19643
19644 # type: textblock
19645 #: ../fish/guestfish-actions.pod:331
19646 msgid ""
19647 "The flags which were passed to L</aug-init> affect exactly how files are "
19648 "saved."
19649 msgstr ""
19650
19651 # type: =head2
19652 #: ../fish/guestfish-actions.pod:334
19653 msgid "aug-set"
19654 msgstr ""
19655
19656 # type: verbatim
19657 #: ../fish/guestfish-actions.pod:336
19658 #, no-wrap
19659 msgid ""
19660 " aug-set augpath val\n"
19661 "\n"
19662 msgstr ""
19663
19664 # type: textblock
19665 #: ../fish/guestfish-actions.pod:340
19666 msgid ""
19667 "In the Augeas API, it is possible to clear a node by setting the value to "
19668 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
19669 "this call.  Instead you must use the L</aug-clear> call."
19670 msgstr ""
19671
19672 # type: =head2
19673 #: ../fish/guestfish-actions.pod:345
19674 msgid "available"
19675 msgstr ""
19676
19677 # type: verbatim
19678 #: ../fish/guestfish-actions.pod:347
19679 #, no-wrap
19680 msgid ""
19681 " available 'groups ...'\n"
19682 "\n"
19683 msgstr ""
19684
19685 # type: textblock
19686 #: ../fish/guestfish-actions.pod:353
19687 msgid ""
19688 "The libguestfs groups, and the functions that those groups correspond to, "
19689 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
19690 "runtime by calling L</available-all-groups>."
19691 msgstr ""
19692
19693 # type: textblock
19694 #: ../fish/guestfish-actions.pod:377
19695 msgid "You must call L</launch> before calling this function."
19696 msgstr ""
19697
19698 # type: textblock
19699 #: ../fish/guestfish-actions.pod:399
19700 msgid ""
19701 "This call was added in version C<1.0.80>.  In previous versions of "
19702 "libguestfs all you could do would be to speculatively execute a command to "
19703 "find out if the daemon implemented it.  See also L</version>."
19704 msgstr ""
19705
19706 # type: =head2
19707 #: ../fish/guestfish-actions.pod:406
19708 msgid "available-all-groups"
19709 msgstr ""
19710
19711 # type: verbatim
19712 #: ../fish/guestfish-actions.pod:408
19713 #, no-wrap
19714 msgid ""
19715 " available-all-groups\n"
19716 "\n"
19717 msgstr ""
19718
19719 # type: textblock
19720 #: ../fish/guestfish-actions.pod:410
19721 msgid ""
19722 "This command returns a list of all optional groups that this daemon knows "
19723 "about.  Note this returns both supported and unsupported groups.  To find "
19724 "out which ones the daemon can actually support you have to call L</"
19725 "available> on each member of the returned list."
19726 msgstr ""
19727
19728 # type: textblock
19729 #: ../fish/guestfish-actions.pod:416
19730 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
19731 msgstr ""
19732
19733 # type: =head2
19734 #: ../fish/guestfish-actions.pod:418
19735 msgid "base64-in"
19736 msgstr ""
19737
19738 # type: verbatim
19739 #: ../fish/guestfish-actions.pod:420
19740 #, no-wrap
19741 msgid ""
19742 " base64-in (base64file|-) filename\n"
19743 "\n"
19744 msgstr ""
19745
19746 # type: textblock
19747 #: ../fish/guestfish-actions.pod:425 ../fish/guestfish-actions.pod:434
19748 #: ../fish/guestfish-actions.pod:658 ../fish/guestfish-actions.pod:827
19749 #: ../fish/guestfish-actions.pod:846 ../fish/guestfish-actions.pod:1223
19750 #: ../fish/guestfish-actions.pod:4128 ../fish/guestfish-actions.pod:4140
19751 #: ../fish/guestfish-actions.pod:4151 ../fish/guestfish-actions.pod:4162
19752 #: ../fish/guestfish-actions.pod:4214 ../fish/guestfish-actions.pod:4223
19753 #: ../fish/guestfish-actions.pod:4277 ../fish/guestfish-actions.pod:4300
19754 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
19755 msgstr ""
19756
19757 # type: =head2
19758 #: ../fish/guestfish-actions.pod:427
19759 msgid "base64-out"
19760 msgstr ""
19761
19762 # type: verbatim
19763 #: ../fish/guestfish-actions.pod:429
19764 #, no-wrap
19765 msgid ""
19766 " base64-out filename (base64file|-)\n"
19767 "\n"
19768 msgstr ""
19769
19770 # type: =head2
19771 #: ../fish/guestfish-actions.pod:436
19772 msgid "blockdev-flushbufs"
19773 msgstr ""
19774
19775 # type: verbatim
19776 #: ../fish/guestfish-actions.pod:438
19777 #, no-wrap
19778 msgid ""
19779 " blockdev-flushbufs device\n"
19780 "\n"
19781 msgstr ""
19782
19783 # type: =head2
19784 #: ../fish/guestfish-actions.pod:445
19785 msgid "blockdev-getbsz"
19786 msgstr ""
19787
19788 # type: verbatim
19789 #: ../fish/guestfish-actions.pod:447
19790 #, no-wrap
19791 msgid ""
19792 " blockdev-getbsz device\n"
19793 "\n"
19794 msgstr ""
19795
19796 # type: =head2
19797 #: ../fish/guestfish-actions.pod:456
19798 msgid "blockdev-getro"
19799 msgstr ""
19800
19801 # type: verbatim
19802 #: ../fish/guestfish-actions.pod:458
19803 #, no-wrap
19804 msgid ""
19805 " blockdev-getro device\n"
19806 "\n"
19807 msgstr ""
19808
19809 # type: =head2
19810 #: ../fish/guestfish-actions.pod:465
19811 msgid "blockdev-getsize64"
19812 msgstr ""
19813
19814 # type: verbatim
19815 #: ../fish/guestfish-actions.pod:467
19816 #, no-wrap
19817 msgid ""
19818 " blockdev-getsize64 device\n"
19819 "\n"
19820 msgstr ""
19821
19822 # type: textblock
19823 #: ../fish/guestfish-actions.pod:471
19824 msgid "See also L</blockdev-getsz>."
19825 msgstr ""
19826
19827 # type: =head2
19828 #: ../fish/guestfish-actions.pod:475
19829 msgid "blockdev-getss"
19830 msgstr ""
19831
19832 # type: verbatim
19833 #: ../fish/guestfish-actions.pod:477
19834 #, no-wrap
19835 msgid ""
19836 " blockdev-getss device\n"
19837 "\n"
19838 msgstr ""
19839
19840 # type: textblock
19841 #: ../fish/guestfish-actions.pod:482
19842 msgid ""
19843 "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
19844 msgstr ""
19845
19846 # type: =head2
19847 #: ../fish/guestfish-actions.pod:487
19848 msgid "blockdev-getsz"
19849 msgstr ""
19850
19851 # type: verbatim
19852 #: ../fish/guestfish-actions.pod:489
19853 #, no-wrap
19854 msgid ""
19855 " blockdev-getsz device\n"
19856 "\n"
19857 msgstr ""
19858
19859 # type: textblock
19860 #: ../fish/guestfish-actions.pod:494
19861 msgid ""
19862 "See also L</blockdev-getss> for the real sector size of the device, and L</"
19863 "blockdev-getsize64> for the more useful I<size in bytes>."
19864 msgstr ""
19865
19866 # type: =head2
19867 #: ../fish/guestfish-actions.pod:500
19868 msgid "blockdev-rereadpt"
19869 msgstr ""
19870
19871 # type: verbatim
19872 #: ../fish/guestfish-actions.pod:502
19873 #, no-wrap
19874 msgid ""
19875 " blockdev-rereadpt device\n"
19876 "\n"
19877 msgstr ""
19878
19879 # type: =head2
19880 #: ../fish/guestfish-actions.pod:508
19881 msgid "blockdev-setbsz"
19882 msgstr ""
19883
19884 # type: verbatim
19885 #: ../fish/guestfish-actions.pod:510
19886 #, no-wrap
19887 msgid ""
19888 " blockdev-setbsz device blocksize\n"
19889 "\n"
19890 msgstr ""
19891
19892 # type: =head2
19893 #: ../fish/guestfish-actions.pod:519
19894 msgid "blockdev-setro"
19895 msgstr ""
19896
19897 # type: verbatim
19898 #: ../fish/guestfish-actions.pod:521
19899 #, no-wrap
19900 msgid ""
19901 " blockdev-setro device\n"
19902 "\n"
19903 msgstr ""
19904
19905 # type: =head2
19906 #: ../fish/guestfish-actions.pod:527
19907 msgid "blockdev-setrw"
19908 msgstr ""
19909
19910 # type: verbatim
19911 #: ../fish/guestfish-actions.pod:529
19912 #, no-wrap
19913 msgid ""
19914 " blockdev-setrw device\n"
19915 "\n"
19916 msgstr ""
19917
19918 # type: =head2
19919 #: ../fish/guestfish-actions.pod:535
19920 msgid "case-sensitive-path"
19921 msgstr ""
19922
19923 # type: verbatim
19924 #: ../fish/guestfish-actions.pod:537
19925 #, no-wrap
19926 msgid ""
19927 " case-sensitive-path path\n"
19928 "\n"
19929 msgstr ""
19930
19931 # type: textblock
19932 #: ../fish/guestfish-actions.pod:561
19933 msgid ""
19934 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return C<\"/"
19935 "WINDOWS/system32\"> (the exact return value would depend on details of how "
19936 "the directories were originally created under Windows)."
19937 msgstr ""
19938
19939 # type: textblock
19940 #: ../fish/guestfish-actions.pod:569
19941 msgid "See also L</realpath>."
19942 msgstr ""
19943
19944 # type: =head2
19945 #: ../fish/guestfish-actions.pod:571
19946 msgid "cat"
19947 msgstr ""
19948
19949 # type: verbatim
19950 #: ../fish/guestfish-actions.pod:573
19951 #, no-wrap
19952 msgid ""
19953 " cat path\n"
19954 "\n"
19955 msgstr ""
19956
19957 # type: textblock
19958 #: ../fish/guestfish-actions.pod:577
19959 msgid ""
19960 "Note that this function cannot correctly handle binary files (specifically, "
19961 "files containing C<\\0> character which is treated as end of string).  For "
19962 "those you need to use the L</read-file> or L</download> functions which have "
19963 "a more complex interface."
19964 msgstr ""
19965
19966 # type: =head2
19967 #: ../fish/guestfish-actions.pod:585
19968 msgid "checksum"
19969 msgstr ""
19970
19971 # type: verbatim
19972 #: ../fish/guestfish-actions.pod:587
19973 #, no-wrap
19974 msgid ""
19975 " checksum csumtype path\n"
19976 "\n"
19977 msgstr ""
19978
19979 # type: textblock
19980 #: ../fish/guestfish-actions.pod:630
19981 msgid "To get the checksum for a device, use L</checksum-device>."
19982 msgstr ""
19983
19984 # type: textblock
19985 #: ../fish/guestfish-actions.pod:632
19986 msgid "To get the checksums for many files, use L</checksums-out>."
19987 msgstr ""
19988
19989 # type: =head2
19990 #: ../fish/guestfish-actions.pod:634
19991 msgid "checksum-device"
19992 msgstr ""
19993
19994 # type: verbatim
19995 #: ../fish/guestfish-actions.pod:636
19996 #, no-wrap
19997 msgid ""
19998 " checksum-device csumtype device\n"
19999 "\n"
20000 msgstr ""
20001
20002 # type: textblock
20003 #: ../fish/guestfish-actions.pod:638
20004 msgid ""
20005 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
20006 "device named C<device>.  For the types of checksums supported see the L</"
20007 "checksum> command."
20008 msgstr ""
20009
20010 # type: =head2
20011 #: ../fish/guestfish-actions.pod:642
20012 msgid "checksums-out"
20013 msgstr ""
20014
20015 # type: verbatim
20016 #: ../fish/guestfish-actions.pod:644
20017 #, no-wrap
20018 msgid ""
20019 " checksums-out csumtype directory (sumsfile|-)\n"
20020 "\n"
20021 msgstr ""
20022
20023 # type: =head2
20024 #: ../fish/guestfish-actions.pod:660
20025 msgid "chmod"
20026 msgstr ""
20027
20028 # type: verbatim
20029 #: ../fish/guestfish-actions.pod:662
20030 #, no-wrap
20031 msgid ""
20032 " chmod mode path\n"
20033 "\n"
20034 msgstr ""
20035
20036 # type: =head2
20037 #: ../fish/guestfish-actions.pod:673
20038 msgid "chown"
20039 msgstr ""
20040
20041 # type: verbatim
20042 #: ../fish/guestfish-actions.pod:675
20043 #, no-wrap
20044 msgid ""
20045 " chown owner group path\n"
20046 "\n"
20047 msgstr ""
20048
20049 # type: =head2
20050 #: ../fish/guestfish-actions.pod:683
20051 msgid "command"
20052 msgstr ""
20053
20054 # type: verbatim
20055 #: ../fish/guestfish-actions.pod:685
20056 #, no-wrap
20057 msgid ""
20058 " command 'arguments ...'\n"
20059 "\n"
20060 msgstr ""
20061
20062 # type: textblock
20063 #: ../fish/guestfish-actions.pod:692
20064 msgid ""
20065 "The single parameter is an argv-style list of arguments.  The first element "
20066 "is the name of the program to run.  Subsequent elements are parameters.  The "
20067 "list must be non-empty (ie. must contain a program name).  Note that the "
20068 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
20069 msgstr ""
20070
20071 # type: =head2
20072 #: ../fish/guestfish-actions.pod:720
20073 msgid "command-lines"
20074 msgstr ""
20075
20076 # type: verbatim
20077 #: ../fish/guestfish-actions.pod:722
20078 #, no-wrap
20079 msgid ""
20080 " command-lines 'arguments ...'\n"
20081 "\n"
20082 msgstr ""
20083
20084 # type: textblock
20085 #: ../fish/guestfish-actions.pod:724
20086 msgid ""
20087 "This is the same as L</command>, but splits the result into a list of lines."
20088 msgstr ""
20089
20090 # type: textblock
20091 #: ../fish/guestfish-actions.pod:727
20092 msgid "See also: L</sh-lines>"
20093 msgstr ""
20094
20095 # type: =head2
20096 #: ../fish/guestfish-actions.pod:732
20097 msgid "config"
20098 msgstr ""
20099
20100 # type: verbatim
20101 #: ../fish/guestfish-actions.pod:734
20102 #, no-wrap
20103 msgid ""
20104 " config qemuparam qemuvalue\n"
20105 "\n"
20106 msgstr ""
20107
20108 # type: =head2
20109 #: ../fish/guestfish-actions.pod:745
20110 msgid "copy-size"
20111 msgstr ""
20112
20113 # type: verbatim
20114 #: ../fish/guestfish-actions.pod:747
20115 #, no-wrap
20116 msgid ""
20117 " copy-size src dest size\n"
20118 "\n"
20119 msgstr ""
20120
20121 # type: =head2
20122 #: ../fish/guestfish-actions.pod:755
20123 msgid "cp"
20124 msgstr ""
20125
20126 # type: verbatim
20127 #: ../fish/guestfish-actions.pod:757
20128 #, no-wrap
20129 msgid ""
20130 " cp src dest\n"
20131 "\n"
20132 msgstr ""
20133
20134 # type: =head2
20135 #: ../fish/guestfish-actions.pod:762
20136 msgid "cp-a"
20137 msgstr ""
20138
20139 # type: verbatim
20140 #: ../fish/guestfish-actions.pod:764
20141 #, no-wrap
20142 msgid ""
20143 " cp-a src dest\n"
20144 "\n"
20145 msgstr ""
20146
20147 # type: =head2
20148 #: ../fish/guestfish-actions.pod:769
20149 msgid "dd"
20150 msgstr ""
20151
20152 # type: verbatim
20153 #: ../fish/guestfish-actions.pod:771
20154 #, no-wrap
20155 msgid ""
20156 " dd src dest\n"
20157 "\n"
20158 msgstr ""
20159
20160 # type: textblock
20161 #: ../fish/guestfish-actions.pod:778
20162 msgid ""
20163 "If the destination is a device, it must be as large or larger than the "
20164 "source file or device, otherwise the copy will fail.  This command cannot do "
20165 "partial copies (see L</copy-size>)."
20166 msgstr ""
20167
20168 # type: =head2
20169 #: ../fish/guestfish-actions.pod:782
20170 msgid "df"
20171 msgstr ""
20172
20173 # type: verbatim
20174 #: ../fish/guestfish-actions.pod:784
20175 #, no-wrap
20176 msgid ""
20177 " df\n"
20178 "\n"
20179 msgstr ""
20180
20181 # type: =head2
20182 #: ../fish/guestfish-actions.pod:792
20183 msgid "df-h"
20184 msgstr ""
20185
20186 # type: verbatim
20187 #: ../fish/guestfish-actions.pod:794
20188 #, no-wrap
20189 msgid ""
20190 " df-h\n"
20191 "\n"
20192 msgstr ""
20193
20194 # type: =head2
20195 #: ../fish/guestfish-actions.pod:803
20196 msgid "dmesg"
20197 msgstr ""
20198
20199 # type: verbatim
20200 #: ../fish/guestfish-actions.pod:805
20201 #, no-wrap
20202 msgid ""
20203 " dmesg\n"
20204 "\n"
20205 msgstr ""
20206
20207 # type: textblock
20208 #: ../fish/guestfish-actions.pod:811
20209 msgid ""
20210 "Another way to get the same information is to enable verbose messages with "
20211 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
20212 "before running the program."
20213 msgstr ""
20214
20215 # type: =head2
20216 #: ../fish/guestfish-actions.pod:816
20217 msgid "download"
20218 msgstr ""
20219
20220 # type: verbatim
20221 #: ../fish/guestfish-actions.pod:818
20222 #, no-wrap
20223 msgid ""
20224 " download remotefilename (filename|-)\n"
20225 "\n"
20226 msgstr ""
20227
20228 # type: textblock
20229 #: ../fish/guestfish-actions.pod:825
20230 msgid "See also L</upload>, L</cat>."
20231 msgstr ""
20232
20233 # type: =head2
20234 #: ../fish/guestfish-actions.pod:829
20235 msgid "download-offset"
20236 msgstr ""
20237
20238 # type: verbatim
20239 #: ../fish/guestfish-actions.pod:831
20240 #, no-wrap
20241 msgid ""
20242 " download-offset remotefilename (filename|-) offset size\n"
20243 "\n"
20244 msgstr ""
20245
20246 # type: textblock
20247 #: ../fish/guestfish-actions.pod:839
20248 msgid ""
20249 "Note that there is no limit on the amount of data that can be downloaded "
20250 "with this call, unlike with L</pread>, and this call always reads the full "
20251 "amount unless an error occurs."
20252 msgstr ""
20253
20254 # type: textblock
20255 #: ../fish/guestfish-actions.pod:844
20256 msgid "See also L</download>, L</pread>."
20257 msgstr ""
20258
20259 # type: =head2
20260 #: ../fish/guestfish-actions.pod:848
20261 msgid "drop-caches"
20262 msgstr ""
20263
20264 # type: verbatim
20265 #: ../fish/guestfish-actions.pod:850
20266 #, no-wrap
20267 msgid ""
20268 " drop-caches whattodrop\n"
20269 "\n"
20270 msgstr ""
20271
20272 # type: =head2
20273 #: ../fish/guestfish-actions.pod:862
20274 msgid "du"
20275 msgstr ""
20276
20277 # type: verbatim
20278 #: ../fish/guestfish-actions.pod:864
20279 #, no-wrap
20280 msgid ""
20281 " du path\n"
20282 "\n"
20283 msgstr ""
20284
20285 # type: =head2
20286 #: ../fish/guestfish-actions.pod:876
20287 msgid "e2fsck-f"
20288 msgstr ""
20289
20290 # type: verbatim
20291 #: ../fish/guestfish-actions.pod:878
20292 #, no-wrap
20293 msgid ""
20294 " e2fsck-f device\n"
20295 "\n"
20296 msgstr ""
20297
20298 # type: textblock
20299 #: ../fish/guestfish-actions.pod:884
20300 msgid ""
20301 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
20302 "should use L</fsck>."
20303 msgstr ""
20304
20305 # type: =head2
20306 #: ../fish/guestfish-actions.pod:887
20307 msgid "echo-daemon"
20308 msgstr ""
20309
20310 # type: verbatim
20311 #: ../fish/guestfish-actions.pod:889
20312 #, no-wrap
20313 msgid ""
20314 " echo-daemon 'words ...'\n"
20315 "\n"
20316 msgstr ""
20317
20318 # type: textblock
20319 #: ../fish/guestfish-actions.pod:896
20320 msgid "See also L</ping-daemon>."
20321 msgstr ""
20322
20323 # type: =head2
20324 #: ../fish/guestfish-actions.pod:898
20325 msgid "egrep"
20326 msgstr ""
20327
20328 # type: verbatim
20329 #: ../fish/guestfish-actions.pod:900
20330 #, no-wrap
20331 msgid ""
20332 " egrep regex path\n"
20333 "\n"
20334 msgstr ""
20335
20336 # type: =head2
20337 #: ../fish/guestfish-actions.pod:908
20338 msgid "egrepi"
20339 msgstr ""
20340
20341 # type: verbatim
20342 #: ../fish/guestfish-actions.pod:910
20343 #, no-wrap
20344 msgid ""
20345 " egrepi regex path\n"
20346 "\n"
20347 msgstr ""
20348
20349 # type: =head2
20350 #: ../fish/guestfish-actions.pod:918
20351 msgid "equal"
20352 msgstr ""
20353
20354 # type: verbatim
20355 #: ../fish/guestfish-actions.pod:920
20356 #, no-wrap
20357 msgid ""
20358 " equal file1 file2\n"
20359 "\n"
20360 msgstr ""
20361
20362 # type: =head2
20363 #: ../fish/guestfish-actions.pod:927
20364 msgid "exists"
20365 msgstr ""
20366
20367 # type: verbatim
20368 #: ../fish/guestfish-actions.pod:929
20369 #, no-wrap
20370 msgid ""
20371 " exists path\n"
20372 "\n"
20373 msgstr ""
20374
20375 # type: textblock
20376 #: ../fish/guestfish-actions.pod:934
20377 msgid "See also L</is-file>, L</is-dir>, L</stat>."
20378 msgstr ""
20379
20380 # type: =head2
20381 #: ../fish/guestfish-actions.pod:936
20382 msgid "fallocate"
20383 msgstr ""
20384
20385 # type: verbatim
20386 #: ../fish/guestfish-actions.pod:938
20387 #, no-wrap
20388 msgid ""
20389 " fallocate path len\n"
20390 "\n"
20391 msgstr ""
20392
20393 # type: =head2
20394 #: ../fish/guestfish-actions.pod:955
20395 msgid "fallocate64"
20396 msgstr ""
20397
20398 # type: verbatim
20399 #: ../fish/guestfish-actions.pod:957
20400 #, no-wrap
20401 msgid ""
20402 " fallocate64 path len\n"
20403 "\n"
20404 msgstr ""
20405
20406 # type: textblock
20407 #: ../fish/guestfish-actions.pod:963
20408 msgid ""
20409 "Note that this call allocates disk blocks for the file.  To create a sparse "
20410 "file use L</truncate-size> instead."
20411 msgstr ""
20412
20413 # type: textblock
20414 #: ../fish/guestfish-actions.pod:966
20415 msgid ""
20416 "The deprecated call L</fallocate> does the same, but owing to an oversight "
20417 "it only allowed 30 bit lengths to be specified, effectively limiting the "
20418 "maximum size of files created through that call to 1GB."
20419 msgstr ""
20420
20421 # type: =head2
20422 #: ../fish/guestfish-actions.pod:975
20423 msgid "fgrep"
20424 msgstr ""
20425
20426 # type: verbatim
20427 #: ../fish/guestfish-actions.pod:977
20428 #, no-wrap
20429 msgid ""
20430 " fgrep pattern path\n"
20431 "\n"
20432 msgstr ""
20433
20434 # type: =head2
20435 #: ../fish/guestfish-actions.pod:985
20436 msgid "fgrepi"
20437 msgstr ""
20438
20439 # type: verbatim
20440 #: ../fish/guestfish-actions.pod:987
20441 #, no-wrap
20442 msgid ""
20443 " fgrepi pattern path\n"
20444 "\n"
20445 msgstr ""
20446
20447 # type: =head2
20448 #: ../fish/guestfish-actions.pod:995
20449 msgid "file"
20450 msgstr ""
20451
20452 # type: verbatim
20453 #: ../fish/guestfish-actions.pod:997
20454 #, no-wrap
20455 msgid ""
20456 " file path\n"
20457 "\n"
20458 msgstr ""
20459
20460 # type: textblock
20461 #: ../fish/guestfish-actions.pod:1009
20462 msgid ""
20463 "This command can also be used on C</dev/> devices (and partitions, LV "
20464 "names).  You can for example use this to determine if a device contains a "
20465 "filesystem, although it's usually better to use L</vfs-type>."
20466 msgstr ""
20467
20468 # type: =head2
20469 #: ../fish/guestfish-actions.pod:1019
20470 msgid "file-architecture"
20471 msgstr ""
20472
20473 # type: verbatim
20474 #: ../fish/guestfish-actions.pod:1021
20475 #, no-wrap
20476 msgid ""
20477 " file-architecture filename\n"
20478 "\n"
20479 msgstr ""
20480
20481 # type: =head2
20482 #: ../fish/guestfish-actions.pod:1124
20483 msgid "filesize"
20484 msgstr ""
20485
20486 # type: verbatim
20487 #: ../fish/guestfish-actions.pod:1126
20488 #, no-wrap
20489 msgid ""
20490 " filesize file\n"
20491 "\n"
20492 msgstr ""
20493
20494 # type: textblock
20495 #: ../fish/guestfish-actions.pod:1130
20496 msgid ""
20497 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, L</is-"
20498 "file> etc.  To get the size of block devices, use L</blockdev-getsize64>."
20499 msgstr ""
20500
20501 # type: =head2
20502 #: ../fish/guestfish-actions.pod:1134
20503 msgid "fill"
20504 msgstr ""
20505
20506 # type: verbatim
20507 #: ../fish/guestfish-actions.pod:1136
20508 #, no-wrap
20509 msgid ""
20510 " fill c len path\n"
20511 "\n"
20512 msgstr ""
20513
20514 # type: textblock
20515 #: ../fish/guestfish-actions.pod:1142
20516 msgid ""
20517 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
20518 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
20519 "L</fill-pattern>."
20520 msgstr ""
20521
20522 # type: =head2
20523 #: ../fish/guestfish-actions.pod:1147
20524 msgid "fill-pattern"
20525 msgstr ""
20526
20527 # type: verbatim
20528 #: ../fish/guestfish-actions.pod:1149
20529 #, no-wrap
20530 msgid ""
20531 " fill-pattern pattern len path\n"
20532 "\n"
20533 msgstr ""
20534
20535 # type: textblock
20536 #: ../fish/guestfish-actions.pod:1151
20537 msgid ""
20538 "This function is like L</fill> except that it creates a new file of length "
20539 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
20540 "is truncated if necessary to ensure the length of the file is exactly C<len> "
20541 "bytes."
20542 msgstr ""
20543
20544 # type: =head2
20545 #: ../fish/guestfish-actions.pod:1156
20546 msgid "find"
20547 msgstr ""
20548
20549 # type: verbatim
20550 #: ../fish/guestfish-actions.pod:1158
20551 #, no-wrap
20552 msgid ""
20553 " find directory\n"
20554 "\n"
20555 msgstr ""
20556
20557 # type: textblock
20558 #: ../fish/guestfish-actions.pod:1172
20559 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
20560 msgstr ""
20561
20562 # type: textblock
20563 #: ../fish/guestfish-actions.pod:1185
20564 msgid "See also L</find0>."
20565 msgstr ""
20566
20567 # type: =head2
20568 #: ../fish/guestfish-actions.pod:1190
20569 msgid "find0"
20570 msgstr ""
20571
20572 # type: verbatim
20573 #: ../fish/guestfish-actions.pod:1192
20574 #, no-wrap
20575 msgid ""
20576 " find0 directory (files|-)\n"
20577 "\n"
20578 msgstr ""
20579
20580 # type: textblock
20581 #: ../fish/guestfish-actions.pod:1198
20582 msgid ""
20583 "This command works the same way as L</find> with the following exceptions:"
20584 msgstr ""
20585
20586 # type: =head2
20587 #: ../fish/guestfish-actions.pod:1225
20588 msgid "findfs-label"
20589 msgstr ""
20590
20591 # type: verbatim
20592 #: ../fish/guestfish-actions.pod:1227
20593 #, no-wrap
20594 msgid ""
20595 " findfs-label label\n"
20596 "\n"
20597 msgstr ""
20598
20599 # type: textblock
20600 #: ../fish/guestfish-actions.pod:1233
20601 msgid "To find the label of a filesystem, use L</vfs-label>."
20602 msgstr ""
20603
20604 # type: =head2
20605 #: ../fish/guestfish-actions.pod:1235
20606 msgid "findfs-uuid"
20607 msgstr ""
20608
20609 # type: verbatim
20610 #: ../fish/guestfish-actions.pod:1237
20611 #, no-wrap
20612 msgid ""
20613 " findfs-uuid uuid\n"
20614 "\n"
20615 msgstr ""
20616
20617 # type: textblock
20618 #: ../fish/guestfish-actions.pod:1243
20619 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
20620 msgstr ""
20621
20622 # type: =head2
20623 #: ../fish/guestfish-actions.pod:1245
20624 msgid "fsck"
20625 msgstr ""
20626
20627 # type: verbatim
20628 #: ../fish/guestfish-actions.pod:1247
20629 #, no-wrap
20630 msgid ""
20631 " fsck fstype device\n"
20632 "\n"
20633 msgstr ""
20634
20635 # type: =head2
20636 #: ../fish/guestfish-actions.pod:1277
20637 msgid "get-append"
20638 msgstr ""
20639
20640 # type: verbatim
20641 #: ../fish/guestfish-actions.pod:1279
20642 #, no-wrap
20643 msgid ""
20644 " get-append\n"
20645 "\n"
20646 msgstr ""
20647
20648 # type: =head2
20649 #: ../fish/guestfish-actions.pod:1286
20650 msgid "get-autosync"
20651 msgstr ""
20652
20653 # type: verbatim
20654 #: ../fish/guestfish-actions.pod:1288
20655 #, no-wrap
20656 msgid ""
20657 " get-autosync\n"
20658 "\n"
20659 msgstr ""
20660
20661 # type: =head2
20662 #: ../fish/guestfish-actions.pod:1292
20663 msgid "get-direct"
20664 msgstr ""
20665
20666 # type: verbatim
20667 #: ../fish/guestfish-actions.pod:1294
20668 #, no-wrap
20669 msgid ""
20670 " get-direct\n"
20671 "\n"
20672 msgstr ""
20673
20674 # type: =head2
20675 #: ../fish/guestfish-actions.pod:1298
20676 msgid "get-e2label"
20677 msgstr ""
20678
20679 # type: verbatim
20680 #: ../fish/guestfish-actions.pod:1300
20681 #, no-wrap
20682 msgid ""
20683 " get-e2label device\n"
20684 "\n"
20685 msgstr ""
20686
20687 # type: =head2
20688 #: ../fish/guestfish-actions.pod:1312
20689 msgid "get-e2uuid"
20690 msgstr ""
20691
20692 # type: verbatim
20693 #: ../fish/guestfish-actions.pod:1314
20694 #, no-wrap
20695 msgid ""
20696 " get-e2uuid device\n"
20697 "\n"
20698 msgstr ""
20699
20700 # type: =head2
20701 #: ../fish/guestfish-actions.pod:1326
20702 msgid "get-memsize"
20703 msgstr ""
20704
20705 # type: verbatim
20706 #: ../fish/guestfish-actions.pod:1328
20707 #, no-wrap
20708 msgid ""
20709 " get-memsize\n"
20710 "\n"
20711 msgstr ""
20712
20713 # type: textblock
20714 #: ../fish/guestfish-actions.pod:1333
20715 msgid ""
20716 "If L</set-memsize> was not called on this handle, and if "
20717 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
20718 "value for memsize."
20719 msgstr ""
20720
20721 # type: =head2
20722 #: ../fish/guestfish-actions.pod:1340
20723 msgid "get-network"
20724 msgstr ""
20725
20726 # type: verbatim
20727 #: ../fish/guestfish-actions.pod:1342
20728 #, no-wrap
20729 msgid ""
20730 " get-network\n"
20731 "\n"
20732 msgstr ""
20733
20734 # type: =head2
20735 #: ../fish/guestfish-actions.pod:1346
20736 msgid "get-path"
20737 msgstr ""
20738
20739 # type: verbatim
20740 #: ../fish/guestfish-actions.pod:1348
20741 #, no-wrap
20742 msgid ""
20743 " get-path\n"
20744 "\n"
20745 msgstr ""
20746
20747 # type: =head2
20748 #: ../fish/guestfish-actions.pod:1355
20749 msgid "get-pid"
20750 msgstr ""
20751
20752 # type: =head2
20753 #: ../fish/guestfish-actions.pod:1357
20754 msgid "pid"
20755 msgstr ""
20756
20757 # type: verbatim
20758 #: ../fish/guestfish-actions.pod:1359
20759 #, no-wrap
20760 msgid ""
20761 " get-pid\n"
20762 "\n"
20763 msgstr ""
20764
20765 # type: =head2
20766 #: ../fish/guestfish-actions.pod:1366
20767 msgid "get-qemu"
20768 msgstr ""
20769
20770 # type: verbatim
20771 #: ../fish/guestfish-actions.pod:1368
20772 #, no-wrap
20773 msgid ""
20774 " get-qemu\n"
20775 "\n"
20776 msgstr ""
20777
20778 # type: =head2
20779 #: ../fish/guestfish-actions.pod:1375
20780 msgid "get-recovery-proc"
20781 msgstr ""
20782
20783 # type: verbatim
20784 #: ../fish/guestfish-actions.pod:1377
20785 #, no-wrap
20786 msgid ""
20787 " get-recovery-proc\n"
20788 "\n"
20789 msgstr ""
20790
20791 # type: =head2
20792 #: ../fish/guestfish-actions.pod:1381
20793 msgid "get-selinux"
20794 msgstr ""
20795
20796 # type: verbatim
20797 #: ../fish/guestfish-actions.pod:1383
20798 #, no-wrap
20799 msgid ""
20800 " get-selinux\n"
20801 "\n"
20802 msgstr ""
20803
20804 # type: textblock
20805 #: ../fish/guestfish-actions.pod:1385
20806 msgid ""
20807 "This returns the current setting of the selinux flag which is passed to the "
20808 "appliance at boot time.  See L</set-selinux>."
20809 msgstr ""
20810
20811 # type: =head2
20812 #: ../fish/guestfish-actions.pod:1391
20813 msgid "get-state"
20814 msgstr ""
20815
20816 # type: verbatim
20817 #: ../fish/guestfish-actions.pod:1393
20818 #, no-wrap
20819 msgid ""
20820 " get-state\n"
20821 "\n"
20822 msgstr ""
20823
20824 # type: =head2
20825 #: ../fish/guestfish-actions.pod:1400
20826 msgid "get-trace"
20827 msgstr ""
20828
20829 # type: verbatim
20830 #: ../fish/guestfish-actions.pod:1402
20831 #, no-wrap
20832 msgid ""
20833 " get-trace\n"
20834 "\n"
20835 msgstr ""
20836
20837 # type: =head2
20838 #: ../fish/guestfish-actions.pod:1406
20839 msgid "get-umask"
20840 msgstr ""
20841
20842 # type: verbatim
20843 #: ../fish/guestfish-actions.pod:1408
20844 #, no-wrap
20845 msgid ""
20846 " get-umask\n"
20847 "\n"
20848 msgstr ""
20849
20850 # type: textblock
20851 #: ../fish/guestfish-actions.pod:1410
20852 msgid ""
20853 "Return the current umask.  By default the umask is C<022> unless it has been "
20854 "set by calling L</umask>."
20855 msgstr ""
20856
20857 # type: =head2
20858 #: ../fish/guestfish-actions.pod:1413
20859 msgid "get-verbose"
20860 msgstr ""
20861
20862 # type: verbatim
20863 #: ../fish/guestfish-actions.pod:1415
20864 #, no-wrap
20865 msgid ""
20866 " get-verbose\n"
20867 "\n"
20868 msgstr ""
20869
20870 # type: =head2
20871 #: ../fish/guestfish-actions.pod:1419
20872 msgid "getcon"
20873 msgstr ""
20874
20875 # type: verbatim
20876 #: ../fish/guestfish-actions.pod:1421
20877 #, no-wrap
20878 msgid ""
20879 " getcon\n"
20880 "\n"
20881 msgstr ""
20882
20883 # type: textblock
20884 #: ../fish/guestfish-actions.pod:1425
20885 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
20886 msgstr ""
20887
20888 # type: =head2
20889 #: ../fish/guestfish-actions.pod:1428
20890 msgid "getxattrs"
20891 msgstr ""
20892
20893 # type: verbatim
20894 #: ../fish/guestfish-actions.pod:1430
20895 #, no-wrap
20896 msgid ""
20897 " getxattrs path\n"
20898 "\n"
20899 msgstr ""
20900
20901 # type: textblock
20902 #: ../fish/guestfish-actions.pod:1438
20903 msgid "See also: L</lgetxattrs>, L<attr(5)>."
20904 msgstr ""
20905
20906 # type: =head2
20907 #: ../fish/guestfish-actions.pod:1440
20908 msgid "glob-expand"
20909 msgstr ""
20910
20911 # type: verbatim
20912 #: ../fish/guestfish-actions.pod:1442
20913 #, no-wrap
20914 msgid ""
20915 " glob-expand pattern\n"
20916 "\n"
20917 msgstr ""
20918
20919 # type: =head2
20920 #: ../fish/guestfish-actions.pod:1455
20921 msgid "grep"
20922 msgstr ""
20923
20924 # type: verbatim
20925 #: ../fish/guestfish-actions.pod:1457
20926 #, no-wrap
20927 msgid ""
20928 " grep regex path\n"
20929 "\n"
20930 msgstr ""
20931
20932 # type: =head2
20933 #: ../fish/guestfish-actions.pod:1465
20934 msgid "grepi"
20935 msgstr ""
20936
20937 # type: verbatim
20938 #: ../fish/guestfish-actions.pod:1467
20939 #, no-wrap
20940 msgid ""
20941 " grepi regex path\n"
20942 "\n"
20943 msgstr ""
20944
20945 # type: =head2
20946 #: ../fish/guestfish-actions.pod:1475
20947 msgid "grub-install"
20948 msgstr ""
20949
20950 # type: verbatim
20951 #: ../fish/guestfish-actions.pod:1477
20952 #, no-wrap
20953 msgid ""
20954 " grub-install root device\n"
20955 "\n"
20956 msgstr ""
20957
20958 # type: =head2
20959 #: ../fish/guestfish-actions.pod:1493
20960 msgid "head"
20961 msgstr ""
20962
20963 # type: verbatim
20964 #: ../fish/guestfish-actions.pod:1495
20965 #, no-wrap
20966 msgid ""
20967 " head path\n"
20968 "\n"
20969 msgstr ""
20970
20971 # type: =head2
20972 #: ../fish/guestfish-actions.pod:1503
20973 msgid "head-n"
20974 msgstr ""
20975
20976 # type: verbatim
20977 #: ../fish/guestfish-actions.pod:1505
20978 #, no-wrap
20979 msgid ""
20980 " head-n nrlines path\n"
20981 "\n"
20982 msgstr ""
20983
20984 # type: =head2
20985 #: ../fish/guestfish-actions.pod:1518
20986 msgid "hexdump"
20987 msgstr ""
20988
20989 # type: verbatim
20990 #: ../fish/guestfish-actions.pod:1520
20991 #, no-wrap
20992 msgid ""
20993 " hexdump path\n"
20994 "\n"
20995 msgstr ""
20996
20997 # type: =head2
20998 #: ../fish/guestfish-actions.pod:1528
20999 msgid "initrd-cat"
21000 msgstr ""
21001
21002 # type: verbatim
21003 #: ../fish/guestfish-actions.pod:1530
21004 #, no-wrap
21005 msgid ""
21006 " initrd-cat initrdpath filename\n"
21007 "\n"
21008 msgstr ""
21009
21010 # type: textblock
21011 #: ../fish/guestfish-actions.pod:1542
21012 msgid "See also L</initrd-list>."
21013 msgstr ""
21014
21015 # type: =head2
21016 #: ../fish/guestfish-actions.pod:1547
21017 msgid "initrd-list"
21018 msgstr ""
21019
21020 # type: verbatim
21021 #: ../fish/guestfish-actions.pod:1549
21022 #, no-wrap
21023 msgid ""
21024 " initrd-list path\n"
21025 "\n"
21026 msgstr ""
21027
21028 # type: =head2
21029 #: ../fish/guestfish-actions.pod:1561
21030 msgid "inotify-add-watch"
21031 msgstr ""
21032
21033 # type: verbatim
21034 #: ../fish/guestfish-actions.pod:1563
21035 #, no-wrap
21036 msgid ""
21037 " inotify-add-watch path mask\n"
21038 "\n"
21039 msgstr ""
21040
21041 # type: =head2
21042 #: ../fish/guestfish-actions.pod:1575
21043 msgid "inotify-close"
21044 msgstr ""
21045
21046 # type: verbatim
21047 #: ../fish/guestfish-actions.pod:1577
21048 #, no-wrap
21049 msgid ""
21050 " inotify-close\n"
21051 "\n"
21052 msgstr ""
21053
21054 # type: =head2
21055 #: ../fish/guestfish-actions.pod:1583
21056 msgid "inotify-files"
21057 msgstr ""
21058
21059 # type: verbatim
21060 #: ../fish/guestfish-actions.pod:1585
21061 #, no-wrap
21062 msgid ""
21063 " inotify-files\n"
21064 "\n"
21065 msgstr ""
21066
21067 # type: textblock
21068 #: ../fish/guestfish-actions.pod:1587
21069 msgid ""
21070 "This function is a helpful wrapper around L</inotify-read> which just "
21071 "returns a list of pathnames of objects that were touched.  The returned "
21072 "pathnames are sorted and deduplicated."
21073 msgstr ""
21074
21075 # type: =head2
21076 #: ../fish/guestfish-actions.pod:1591
21077 msgid "inotify-init"
21078 msgstr ""
21079
21080 # type: verbatim
21081 #: ../fish/guestfish-actions.pod:1593
21082 #, no-wrap
21083 msgid ""
21084 " inotify-init maxevents\n"
21085 "\n"
21086 msgstr ""
21087
21088 # type: textblock
21089 #: ../fish/guestfish-actions.pod:1599
21090 msgid ""
21091 "C<maxevents> is the maximum number of events which will be queued up between "
21092 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
21093 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
21094 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
21095 "but records the fact that it threw them away by setting a flag "
21096 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
21097 msgstr ""
21098
21099 # type: textblock
21100 #: ../fish/guestfish-actions.pod:1609
21101 msgid ""
21102 "Before any events are generated, you have to add some watches to the "
21103 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
21104 "L</inotify-watch-all>."
21105 msgstr ""
21106
21107 # type: textblock
21108 #: ../fish/guestfish-actions.pod:1615
21109 msgid ""
21110 "Queued up events should be read periodically by calling L</inotify-read> (or "
21111 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
21112 "If you don't read the events out often enough then you risk the internal "
21113 "queue overflowing."
21114 msgstr ""
21115
21116 # type: textblock
21117 #: ../fish/guestfish-actions.pod:1622
21118 msgid ""
21119 "The handle should be closed after use by calling L</inotify-close>.  This "
21120 "also removes any watches automatically."
21121 msgstr ""
21122
21123 # type: =head2
21124 #: ../fish/guestfish-actions.pod:1631
21125 msgid "inotify-read"
21126 msgstr ""
21127
21128 # type: verbatim
21129 #: ../fish/guestfish-actions.pod:1633
21130 #, no-wrap
21131 msgid ""
21132 " inotify-read\n"
21133 "\n"
21134 msgstr ""
21135
21136 # type: =head2
21137 #: ../fish/guestfish-actions.pod:1646
21138 msgid "inotify-rm-watch"
21139 msgstr ""
21140
21141 # type: verbatim
21142 #: ../fish/guestfish-actions.pod:1648
21143 #, no-wrap
21144 msgid ""
21145 " inotify-rm-watch wd\n"
21146 "\n"
21147 msgstr ""
21148
21149 # type: textblock
21150 #: ../fish/guestfish-actions.pod:1650
21151 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
21152 msgstr ""
21153
21154 # type: =head2
21155 #: ../fish/guestfish-actions.pod:1653
21156 msgid "inspect-get-arch"
21157 msgstr ""
21158
21159 # type: verbatim
21160 #: ../fish/guestfish-actions.pod:1655
21161 #, no-wrap
21162 msgid ""
21163 " inspect-get-arch root\n"
21164 "\n"
21165 msgstr ""
21166
21167 # type: textblock
21168 #: ../fish/guestfish-actions.pod:1657 ../fish/guestfish-actions.pod:1673
21169 #: ../fish/guestfish-actions.pod:1747 ../fish/guestfish-actions.pod:1765
21170 #: ../fish/guestfish-actions.pod:1780 ../fish/guestfish-actions.pod:1801
21171 #: ../fish/guestfish-actions.pod:1816 ../fish/guestfish-actions.pod:1839
21172 #: ../fish/guestfish-actions.pod:1861 ../fish/guestfish-actions.pod:1885
21173 #: ../fish/guestfish-actions.pod:1915 ../fish/guestfish-actions.pod:1950
21174 #: ../fish/guestfish-actions.pod:1966
21175 msgid ""
21176 "This function should only be called with a root device string as returned by "
21177 "L</inspect-os>."
21178 msgstr ""
21179
21180 # type: textblock
21181 #: ../fish/guestfish-actions.pod:1660
21182 msgid ""
21183 "This returns the architecture of the inspected operating system.  The "
21184 "possible return values are listed under L</file-architecture>."
21185 msgstr ""
21186
21187 # type: =head2
21188 #: ../fish/guestfish-actions.pod:1669
21189 msgid "inspect-get-distro"
21190 msgstr ""
21191
21192 # type: verbatim
21193 #: ../fish/guestfish-actions.pod:1671
21194 #, no-wrap
21195 msgid ""
21196 " inspect-get-distro root\n"
21197 "\n"
21198 msgstr ""
21199
21200 # type: =head2
21201 #: ../fish/guestfish-actions.pod:1743
21202 msgid "inspect-get-filesystems"
21203 msgstr ""
21204
21205 # type: verbatim
21206 #: ../fish/guestfish-actions.pod:1745
21207 #, no-wrap
21208 msgid ""
21209 " inspect-get-filesystems root\n"
21210 "\n"
21211 msgstr ""
21212
21213 # type: textblock
21214 #: ../fish/guestfish-actions.pod:1758
21215 msgid ""
21216 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
21217 "get-mountpoints>."
21218 msgstr ""
21219
21220 # type: =head2
21221 #: ../fish/guestfish-actions.pod:1761
21222 msgid "inspect-get-hostname"
21223 msgstr ""
21224
21225 # type: verbatim
21226 #: ../fish/guestfish-actions.pod:1763
21227 #, no-wrap
21228 msgid ""
21229 " inspect-get-hostname root\n"
21230 "\n"
21231 msgstr ""
21232
21233 # type: =head2
21234 #: ../fish/guestfish-actions.pod:1776
21235 msgid "inspect-get-major-version"
21236 msgstr ""
21237
21238 # type: verbatim
21239 #: ../fish/guestfish-actions.pod:1778
21240 #, no-wrap
21241 msgid ""
21242 " inspect-get-major-version root\n"
21243 "\n"
21244 msgstr ""
21245
21246 # type: =head2
21247 #: ../fish/guestfish-actions.pod:1797
21248 msgid "inspect-get-minor-version"
21249 msgstr ""
21250
21251 # type: verbatim
21252 #: ../fish/guestfish-actions.pod:1799
21253 #, no-wrap
21254 msgid ""
21255 " inspect-get-minor-version root\n"
21256 "\n"
21257 msgstr ""
21258
21259 # type: textblock
21260 #: ../fish/guestfish-actions.pod:1809
21261 msgid ""
21262 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
21263 "get-major-version>."
21264 msgstr ""
21265
21266 # type: =head2
21267 #: ../fish/guestfish-actions.pod:1812
21268 msgid "inspect-get-mountpoints"
21269 msgstr ""
21270
21271 # type: verbatim
21272 #: ../fish/guestfish-actions.pod:1814
21273 #, no-wrap
21274 msgid ""
21275 " inspect-get-mountpoints root\n"
21276 "\n"
21277 msgstr ""
21278
21279 # type: textblock
21280 #: ../fish/guestfish-actions.pod:1832
21281 msgid ""
21282 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
21283 "get-filesystems>."
21284 msgstr ""
21285
21286 # type: =head2
21287 #: ../fish/guestfish-actions.pod:1835
21288 msgid "inspect-get-package-format"
21289 msgstr ""
21290
21291 # type: verbatim
21292 #: ../fish/guestfish-actions.pod:1837
21293 #, no-wrap
21294 msgid ""
21295 " inspect-get-package-format root\n"
21296 "\n"
21297 msgstr ""
21298
21299 # type: textblock
21300 #: ../fish/guestfish-actions.pod:1842
21301 msgid ""
21302 "This function and L</inspect-get-package-management> return the package "
21303 "format and package management tool used by the inspected operating system.  "
21304 "For example for Fedora these functions would return C<rpm> (package format) "
21305 "and C<yum> (package management)."
21306 msgstr ""
21307
21308 # type: =head2
21309 #: ../fish/guestfish-actions.pod:1857
21310 msgid "inspect-get-package-management"
21311 msgstr ""
21312
21313 # type: verbatim
21314 #: ../fish/guestfish-actions.pod:1859
21315 #, no-wrap
21316 msgid ""
21317 " inspect-get-package-management root\n"
21318 "\n"
21319 msgstr ""
21320
21321 # type: textblock
21322 #: ../fish/guestfish-actions.pod:1864
21323 msgid ""
21324 "L</inspect-get-package-format> and this function return the package format "
21325 "and package management tool used by the inspected operating system.  For "
21326 "example for Fedora these functions would return C<rpm> (package format) and "
21327 "C<yum> (package management)."
21328 msgstr ""
21329
21330 # type: =head2
21331 #: ../fish/guestfish-actions.pod:1881
21332 msgid "inspect-get-product-name"
21333 msgstr ""
21334
21335 # type: verbatim
21336 #: ../fish/guestfish-actions.pod:1883
21337 #, no-wrap
21338 msgid ""
21339 " inspect-get-product-name root\n"
21340 "\n"
21341 msgstr ""
21342
21343 # type: =head2
21344 #: ../fish/guestfish-actions.pod:1898
21345 msgid "inspect-get-roots"
21346 msgstr ""
21347
21348 # type: verbatim
21349 #: ../fish/guestfish-actions.pod:1900
21350 #, no-wrap
21351 msgid ""
21352 " inspect-get-roots\n"
21353 "\n"
21354 msgstr ""
21355
21356 # type: textblock
21357 #: ../fish/guestfish-actions.pod:1902
21358 msgid ""
21359 "This function is a convenient way to get the list of root devices, as "
21360 "returned from a previous call to L</inspect-os>, but without redoing the "
21361 "whole inspection process."
21362 msgstr ""
21363
21364 # type: textblock
21365 #: ../fish/guestfish-actions.pod:1906
21366 msgid ""
21367 "This returns an empty list if either no root devices were found or the "
21368 "caller has not called L</inspect-os>."
21369 msgstr ""
21370
21371 # type: =head2
21372 #: ../fish/guestfish-actions.pod:1911
21373 msgid "inspect-get-type"
21374 msgstr ""
21375
21376 # type: verbatim
21377 #: ../fish/guestfish-actions.pod:1913
21378 #, no-wrap
21379 msgid ""
21380 " inspect-get-type root\n"
21381 "\n"
21382 msgstr ""
21383
21384 # type: =head2
21385 #: ../fish/guestfish-actions.pod:1946
21386 msgid "inspect-get-windows-systemroot"
21387 msgstr ""
21388
21389 # type: verbatim
21390 #: ../fish/guestfish-actions.pod:1948
21391 #, no-wrap
21392 msgid ""
21393 " inspect-get-windows-systemroot root\n"
21394 "\n"
21395 msgstr ""
21396
21397 # type: =head2
21398 #: ../fish/guestfish-actions.pod:1962
21399 msgid "inspect-list-applications"
21400 msgstr ""
21401
21402 # type: verbatim
21403 #: ../fish/guestfish-actions.pod:1964
21404 #, no-wrap
21405 msgid ""
21406 " inspect-list-applications root\n"
21407 "\n"
21408 msgstr ""
21409
21410 # type: textblock
21411 #: ../fish/guestfish-actions.pod:1971
21412 msgid ""
21413 "I<Note:> This call works differently from other parts of the inspection "
21414 "API.  You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
21415 "then mount up the disks, before calling this.  Listing applications is a "
21416 "significantly more difficult operation which requires access to the full "
21417 "filesystem.  Also note that unlike the other L</inspect-get-*> calls which "
21418 "are just returning data cached in the libguestfs handle, this call actually "
21419 "reads parts of the mounted filesystems during the call."
21420 msgstr ""
21421
21422 # type: =head2
21423 #: ../fish/guestfish-actions.pod:2061
21424 msgid "inspect-os"
21425 msgstr ""
21426
21427 # type: verbatim
21428 #: ../fish/guestfish-actions.pod:2063
21429 #, no-wrap
21430 msgid ""
21431 " inspect-os\n"
21432 "\n"
21433 msgstr ""
21434
21435 # type: textblock
21436 #: ../fish/guestfish-actions.pod:2078
21437 msgid ""
21438 "You can pass the root string(s) returned to other L</inspect-get-*> "
21439 "functions in order to query further information about each operating system, "
21440 "such as the name and version."
21441 msgstr ""
21442
21443 # type: textblock
21444 #: ../fish/guestfish-actions.pod:2083
21445 msgid ""
21446 "This function uses other libguestfs features such as L</mount-ro> and L</"
21447 "umount-all> in order to mount and unmount filesystems and look at the "
21448 "contents.  This should be called with no disks currently mounted.  The "
21449 "function may also use Augeas, so any existing Augeas handle will be closed."
21450 msgstr ""
21451
21452 # type: textblock
21453 #: ../fish/guestfish-actions.pod:2095 ../fish/guestfish-actions.pod:2251
21454 #: ../fish/guestfish-actions.pod:2297
21455 msgid "See also L</list-filesystems>."
21456 msgstr ""
21457
21458 # type: =head2
21459 #: ../fish/guestfish-actions.pod:2097
21460 msgid "is-blockdev"
21461 msgstr ""
21462
21463 # type: verbatim
21464 #: ../fish/guestfish-actions.pod:2099
21465 #, no-wrap
21466 msgid ""
21467 " is-blockdev path\n"
21468 "\n"
21469 msgstr ""
21470
21471 # type: textblock
21472 #: ../fish/guestfish-actions.pod:2104 ../fish/guestfish-actions.pod:2122
21473 #: ../fish/guestfish-actions.pod:2141 ../fish/guestfish-actions.pod:2150
21474 #: ../fish/guestfish-actions.pod:2160 ../fish/guestfish-actions.pod:2194
21475 #: ../fish/guestfish-actions.pod:2203
21476 msgid "See also L</stat>."
21477 msgstr ""
21478
21479 # type: =head2
21480 #: ../fish/guestfish-actions.pod:2106
21481 msgid "is-busy"
21482 msgstr ""
21483
21484 # type: verbatim
21485 #: ../fish/guestfish-actions.pod:2108
21486 #, no-wrap
21487 msgid ""
21488 " is-busy\n"
21489 "\n"
21490 msgstr ""
21491
21492 # type: =head2
21493 #: ../fish/guestfish-actions.pod:2115
21494 msgid "is-chardev"
21495 msgstr ""
21496
21497 # type: verbatim
21498 #: ../fish/guestfish-actions.pod:2117
21499 #, no-wrap
21500 msgid ""
21501 " is-chardev path\n"
21502 "\n"
21503 msgstr ""
21504
21505 # type: =head2
21506 #: ../fish/guestfish-actions.pod:2124
21507 msgid "is-config"
21508 msgstr ""
21509
21510 # type: verbatim
21511 #: ../fish/guestfish-actions.pod:2126
21512 #, no-wrap
21513 msgid ""
21514 " is-config\n"
21515 "\n"
21516 msgstr ""
21517
21518 # type: =head2
21519 #: ../fish/guestfish-actions.pod:2133
21520 msgid "is-dir"
21521 msgstr ""
21522
21523 # type: verbatim
21524 #: ../fish/guestfish-actions.pod:2135
21525 #, no-wrap
21526 msgid ""
21527 " is-dir path\n"
21528 "\n"
21529 msgstr ""
21530
21531 # type: =head2
21532 #: ../fish/guestfish-actions.pod:2143
21533 msgid "is-fifo"
21534 msgstr ""
21535
21536 # type: verbatim
21537 #: ../fish/guestfish-actions.pod:2145
21538 #, no-wrap
21539 msgid ""
21540 " is-fifo path\n"
21541 "\n"
21542 msgstr ""
21543
21544 # type: =head2
21545 #: ../fish/guestfish-actions.pod:2152
21546 msgid "is-file"
21547 msgstr ""
21548
21549 # type: verbatim
21550 #: ../fish/guestfish-actions.pod:2154
21551 #, no-wrap
21552 msgid ""
21553 " is-file path\n"
21554 "\n"
21555 msgstr ""
21556
21557 # type: =head2
21558 #: ../fish/guestfish-actions.pod:2162
21559 msgid "is-launching"
21560 msgstr ""
21561
21562 # type: verbatim
21563 #: ../fish/guestfish-actions.pod:2164
21564 #, no-wrap
21565 msgid ""
21566 " is-launching\n"
21567 "\n"
21568 msgstr ""
21569
21570 # type: =head2
21571 #: ../fish/guestfish-actions.pod:2171
21572 msgid "is-lv"
21573 msgstr ""
21574
21575 # type: verbatim
21576 #: ../fish/guestfish-actions.pod:2173
21577 #, no-wrap
21578 msgid ""
21579 " is-lv device\n"
21580 "\n"
21581 msgstr ""
21582
21583 # type: =head2
21584 #: ../fish/guestfish-actions.pod:2178
21585 msgid "is-ready"
21586 msgstr ""
21587
21588 # type: verbatim
21589 #: ../fish/guestfish-actions.pod:2180
21590 #, no-wrap
21591 msgid ""
21592 " is-ready\n"
21593 "\n"
21594 msgstr ""
21595
21596 # type: =head2
21597 #: ../fish/guestfish-actions.pod:2187
21598 msgid "is-socket"
21599 msgstr ""
21600
21601 # type: verbatim
21602 #: ../fish/guestfish-actions.pod:2189
21603 #, no-wrap
21604 msgid ""
21605 " is-socket path\n"
21606 "\n"
21607 msgstr ""
21608
21609 # type: =head2
21610 #: ../fish/guestfish-actions.pod:2196
21611 msgid "is-symlink"
21612 msgstr ""
21613
21614 # type: verbatim
21615 #: ../fish/guestfish-actions.pod:2198
21616 #, no-wrap
21617 msgid ""
21618 " is-symlink path\n"
21619 "\n"
21620 msgstr ""
21621
21622 # type: =head2
21623 #: ../fish/guestfish-actions.pod:2205
21624 msgid "kill-subprocess"
21625 msgstr ""
21626
21627 # type: verbatim
21628 #: ../fish/guestfish-actions.pod:2207
21629 #, no-wrap
21630 msgid ""
21631 " kill-subprocess\n"
21632 "\n"
21633 msgstr ""
21634
21635 # type: =head2
21636 #: ../fish/guestfish-actions.pod:2211
21637 msgid "launch"
21638 msgstr ""
21639
21640 # type: =head2
21641 #: ../fish/guestfish-actions.pod:2213
21642 msgid "run"
21643 msgstr ""
21644
21645 # type: verbatim
21646 #: ../fish/guestfish-actions.pod:2215
21647 #, no-wrap
21648 msgid ""
21649 " launch\n"
21650 "\n"
21651 msgstr ""
21652
21653 # type: =head2
21654 #: ../fish/guestfish-actions.pod:2223
21655 msgid "lchown"
21656 msgstr ""
21657
21658 # type: verbatim
21659 #: ../fish/guestfish-actions.pod:2225
21660 #, no-wrap
21661 msgid ""
21662 " lchown owner group path\n"
21663 "\n"
21664 msgstr ""
21665
21666 # type: textblock
21667 #: ../fish/guestfish-actions.pod:2227
21668 msgid ""
21669 "Change the file owner to C<owner> and group to C<group>.  This is like L</"
21670 "chown> but if C<path> is a symlink then the link itself is changed, not the "
21671 "target."
21672 msgstr ""
21673
21674 # type: =head2
21675 #: ../fish/guestfish-actions.pod:2235
21676 msgid "lgetxattrs"
21677 msgstr ""
21678
21679 # type: verbatim
21680 #: ../fish/guestfish-actions.pod:2237
21681 #, no-wrap
21682 msgid ""
21683 " lgetxattrs path\n"
21684 "\n"
21685 msgstr ""
21686
21687 # type: textblock
21688 #: ../fish/guestfish-actions.pod:2239
21689 msgid ""
21690 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
21691 "it returns the extended attributes of the link itself."
21692 msgstr ""
21693
21694 # type: =head2
21695 #: ../fish/guestfish-actions.pod:2243
21696 msgid "list-devices"
21697 msgstr ""
21698
21699 # type: verbatim
21700 #: ../fish/guestfish-actions.pod:2245
21701 #, no-wrap
21702 msgid ""
21703 " list-devices\n"
21704 "\n"
21705 msgstr ""
21706
21707 # type: =head2
21708 #: ../fish/guestfish-actions.pod:2253
21709 msgid "list-filesystems"
21710 msgstr ""
21711
21712 # type: verbatim
21713 #: ../fish/guestfish-actions.pod:2255
21714 #, no-wrap
21715 msgid ""
21716 " list-filesystems\n"
21717 "\n"
21718 msgstr ""
21719
21720 # type: textblock
21721 #: ../fish/guestfish-actions.pod:2274
21722 msgid ""
21723 "This command runs other libguestfs commands, which might include L</mount> "
21724 "and L</umount>, and therefore you should use this soon after launch and only "
21725 "when nothing is mounted."
21726 msgstr ""
21727
21728 # type: textblock
21729 #: ../fish/guestfish-actions.pod:2278
21730 msgid ""
21731 "Not all of the filesystems returned will be mountable.  In particular, swap "
21732 "partitions are returned in the list.  Also this command does not check that "
21733 "each filesystem found is valid and mountable, and some filesystems might be "
21734 "mountable but require special options.  Filesystems may not all belong to a "
21735 "single logical operating system (use L</inspect-os> to look for OSes)."
21736 msgstr ""
21737
21738 # type: =head2
21739 #: ../fish/guestfish-actions.pod:2286
21740 msgid "list-partitions"
21741 msgstr ""
21742
21743 # type: verbatim
21744 #: ../fish/guestfish-actions.pod:2288
21745 #, no-wrap
21746 msgid ""
21747 " list-partitions\n"
21748 "\n"
21749 msgstr ""
21750
21751 # type: textblock
21752 #: ../fish/guestfish-actions.pod:2294
21753 msgid ""
21754 "This does not return logical volumes.  For that you will need to call L</"
21755 "lvs>."
21756 msgstr ""
21757
21758 # type: =head2
21759 #: ../fish/guestfish-actions.pod:2299
21760 msgid "ll"
21761 msgstr ""
21762
21763 # type: verbatim
21764 #: ../fish/guestfish-actions.pod:2301
21765 #, no-wrap
21766 msgid ""
21767 " ll directory\n"
21768 "\n"
21769 msgstr ""
21770
21771 # type: =head2
21772 #: ../fish/guestfish-actions.pod:2309
21773 msgid "ln"
21774 msgstr ""
21775
21776 # type: verbatim
21777 #: ../fish/guestfish-actions.pod:2311
21778 #, no-wrap
21779 msgid ""
21780 " ln target linkname\n"
21781 "\n"
21782 msgstr ""
21783
21784 # type: =head2
21785 #: ../fish/guestfish-actions.pod:2315
21786 msgid "ln-f"
21787 msgstr ""
21788
21789 # type: verbatim
21790 #: ../fish/guestfish-actions.pod:2317
21791 #, no-wrap
21792 msgid ""
21793 " ln-f target linkname\n"
21794 "\n"
21795 msgstr ""
21796
21797 # type: =head2
21798 #: ../fish/guestfish-actions.pod:2322
21799 msgid "ln-s"
21800 msgstr ""
21801
21802 # type: verbatim
21803 #: ../fish/guestfish-actions.pod:2324
21804 #, no-wrap
21805 msgid ""
21806 " ln-s target linkname\n"
21807 "\n"
21808 msgstr ""
21809
21810 # type: =head2
21811 #: ../fish/guestfish-actions.pod:2328
21812 msgid "ln-sf"
21813 msgstr ""
21814
21815 # type: verbatim
21816 #: ../fish/guestfish-actions.pod:2330
21817 #, no-wrap
21818 msgid ""
21819 " ln-sf target linkname\n"
21820 "\n"
21821 msgstr ""
21822
21823 # type: =head2
21824 #: ../fish/guestfish-actions.pod:2335
21825 msgid "lremovexattr"
21826 msgstr ""
21827
21828 # type: verbatim
21829 #: ../fish/guestfish-actions.pod:2337
21830 #, no-wrap
21831 msgid ""
21832 " lremovexattr xattr path\n"
21833 "\n"
21834 msgstr ""
21835
21836 # type: textblock
21837 #: ../fish/guestfish-actions.pod:2339
21838 msgid ""
21839 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
21840 "it removes an extended attribute of the link itself."
21841 msgstr ""
21842
21843 # type: =head2
21844 #: ../fish/guestfish-actions.pod:2343
21845 msgid "ls"
21846 msgstr ""
21847
21848 # type: verbatim
21849 #: ../fish/guestfish-actions.pod:2345
21850 #, no-wrap
21851 msgid ""
21852 " ls directory\n"
21853 "\n"
21854 msgstr ""
21855
21856 # type: textblock
21857 #: ../fish/guestfish-actions.pod:2351
21858 msgid ""
21859 "This command is mostly useful for interactive sessions.  Programs should "
21860 "probably use L</readdir> instead."
21861 msgstr ""
21862
21863 # type: =head2
21864 #: ../fish/guestfish-actions.pod:2354
21865 msgid "lsetxattr"
21866 msgstr ""
21867
21868 # type: verbatim
21869 #: ../fish/guestfish-actions.pod:2356
21870 #, no-wrap
21871 msgid ""
21872 " lsetxattr xattr val vallen path\n"
21873 "\n"
21874 msgstr ""
21875
21876 # type: textblock
21877 #: ../fish/guestfish-actions.pod:2358
21878 msgid ""
21879 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
21880 "sets an extended attribute of the link itself."
21881 msgstr ""
21882
21883 # type: =head2
21884 #: ../fish/guestfish-actions.pod:2362
21885 msgid "lstat"
21886 msgstr ""
21887
21888 # type: verbatim
21889 #: ../fish/guestfish-actions.pod:2364
21890 #, no-wrap
21891 msgid ""
21892 " lstat path\n"
21893 "\n"
21894 msgstr ""
21895
21896 # type: textblock
21897 #: ../fish/guestfish-actions.pod:2368
21898 msgid ""
21899 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
21900 "the link is stat-ed, not the file it refers to."
21901 msgstr ""
21902
21903 # type: =head2
21904 #: ../fish/guestfish-actions.pod:2374
21905 msgid "lstatlist"
21906 msgstr ""
21907
21908 # type: verbatim
21909 #: ../fish/guestfish-actions.pod:2376
21910 #, no-wrap
21911 msgid ""
21912 " lstatlist path 'names ...'\n"
21913 "\n"
21914 msgstr ""
21915
21916 # type: textblock
21917 #: ../fish/guestfish-actions.pod:2378
21918 msgid ""
21919 "This call allows you to perform the L</lstat> operation on multiple files, "
21920 "where all files are in the directory C<path>.  C<names> is the list of files "
21921 "from this directory."
21922 msgstr ""
21923
21924 # type: textblock
21925 #: ../fish/guestfish-actions.pod:2387
21926 msgid ""
21927 "This call is intended for programs that want to efficiently list a directory "
21928 "contents without making many round-trips.  See also L</lxattrlist> for a "
21929 "similarly efficient call for getting extended attributes.  Very long "
21930 "directory listings might cause the protocol message size to be exceeded, "
21931 "causing this call to fail.  The caller must split up such requests into "
21932 "smaller groups of names."
21933 msgstr ""
21934
21935 # type: =head2
21936 #: ../fish/guestfish-actions.pod:2395
21937 msgid "luks-add-key"
21938 msgstr ""
21939
21940 # type: verbatim
21941 #: ../fish/guestfish-actions.pod:2397
21942 #, no-wrap
21943 msgid ""
21944 " luks-add-key device keyslot\n"
21945 "\n"
21946 msgstr ""
21947
21948 # type: textblock
21949 #: ../fish/guestfish-actions.pod:2404
21950 msgid ""
21951 "Note that if C<keyslot> already contains a key, then this command will "
21952 "fail.  You have to use L</luks-kill-slot> first to remove that key."
21953 msgstr ""
21954
21955 # type: textblock
21956 #: ../fish/guestfish-actions.pod:2408 ../fish/guestfish-actions.pod:2430
21957 #: ../fish/guestfish-actions.pod:2443 ../fish/guestfish-actions.pod:2457
21958 #: ../fish/guestfish-actions.pod:2480 ../fish/guestfish-actions.pod:2490
21959 msgid ""
21960 "This command has one or more key or passphrase parameters.  Guestfish will "
21961 "prompt for these separately."
21962 msgstr ""
21963
21964 # type: =head2
21965 #: ../fish/guestfish-actions.pod:2411
21966 msgid "luks-close"
21967 msgstr ""
21968
21969 # type: verbatim
21970 #: ../fish/guestfish-actions.pod:2413
21971 #, no-wrap
21972 msgid ""
21973 " luks-close device\n"
21974 "\n"
21975 msgstr ""
21976
21977 # type: textblock
21978 #: ../fish/guestfish-actions.pod:2415
21979 msgid ""
21980 "This closes a LUKS device that was created earlier by L</luks-open> or L</"
21981 "luks-open-ro>.  The C<device> parameter must be the name of the LUKS mapping "
21982 "device (ie. C</dev/mapper/mapname>) and I<not> the name of the underlying "
21983 "block device."
21984 msgstr ""
21985
21986 # type: =head2
21987 #: ../fish/guestfish-actions.pod:2421
21988 msgid "luks-format"
21989 msgstr ""
21990
21991 # type: verbatim
21992 #: ../fish/guestfish-actions.pod:2423
21993 #, no-wrap
21994 msgid ""
21995 " luks-format device keyslot\n"
21996 "\n"
21997 msgstr ""
21998
21999 # type: =head2
22000 #: ../fish/guestfish-actions.pod:2436
22001 msgid "luks-format-cipher"
22002 msgstr ""
22003
22004 # type: verbatim
22005 #: ../fish/guestfish-actions.pod:2438
22006 #, no-wrap
22007 msgid ""
22008 " luks-format-cipher device keyslot cipher\n"
22009 "\n"
22010 msgstr ""
22011
22012 # type: textblock
22013 #: ../fish/guestfish-actions.pod:2440
22014 msgid ""
22015 "This command is the same as L</luks-format> but it also allows you to set "
22016 "the C<cipher> used."
22017 msgstr ""
22018
22019 # type: =head2
22020 #: ../fish/guestfish-actions.pod:2449
22021 msgid "luks-kill-slot"
22022 msgstr ""
22023
22024 # type: verbatim
22025 #: ../fish/guestfish-actions.pod:2451
22026 #, no-wrap
22027 msgid ""
22028 " luks-kill-slot device keyslot\n"
22029 "\n"
22030 msgstr ""
22031
22032 # type: =head2
22033 #: ../fish/guestfish-actions.pod:2460
22034 msgid "luks-open"
22035 msgstr ""
22036
22037 # type: verbatim
22038 #: ../fish/guestfish-actions.pod:2462
22039 #, no-wrap
22040 msgid ""
22041 " luks-open device mapname\n"
22042 "\n"
22043 msgstr ""
22044
22045 # type: textblock
22046 #: ../fish/guestfish-actions.pod:2476
22047 msgid ""
22048 "If this block device contains LVM volume groups, then calling L</vgscan> "
22049 "followed by L</vg-activate-all> will make them visible."
22050 msgstr ""
22051
22052 # type: =head2
22053 #: ../fish/guestfish-actions.pod:2483
22054 msgid "luks-open-ro"
22055 msgstr ""
22056
22057 # type: verbatim
22058 #: ../fish/guestfish-actions.pod:2485
22059 #, no-wrap
22060 msgid ""
22061 " luks-open-ro device mapname\n"
22062 "\n"
22063 msgstr ""
22064
22065 # type: textblock
22066 #: ../fish/guestfish-actions.pod:2487
22067 msgid ""
22068 "This is the same as L</luks-open> except that a read-only mapping is created."
22069 msgstr ""
22070
22071 # type: =head2
22072 #: ../fish/guestfish-actions.pod:2493
22073 msgid "lvcreate"
22074 msgstr ""
22075
22076 # type: verbatim
22077 #: ../fish/guestfish-actions.pod:2495
22078 #, no-wrap
22079 msgid ""
22080 " lvcreate logvol volgroup mbytes\n"
22081 "\n"
22082 msgstr ""
22083
22084 # type: =head2
22085 #: ../fish/guestfish-actions.pod:2500
22086 msgid "lvm-canonical-lv-name"
22087 msgstr ""
22088
22089 # type: verbatim
22090 #: ../fish/guestfish-actions.pod:2502
22091 #, no-wrap
22092 msgid ""
22093 " lvm-canonical-lv-name lvname\n"
22094 "\n"
22095 msgstr ""
22096
22097 # type: textblock
22098 #: ../fish/guestfish-actions.pod:2511
22099 msgid "See also L</is-lv>."
22100 msgstr ""
22101
22102 # type: =head2
22103 #: ../fish/guestfish-actions.pod:2513
22104 msgid "lvm-clear-filter"
22105 msgstr ""
22106
22107 # type: verbatim
22108 #: ../fish/guestfish-actions.pod:2515
22109 #, no-wrap
22110 msgid ""
22111 " lvm-clear-filter\n"
22112 "\n"
22113 msgstr ""
22114
22115 # type: textblock
22116 #: ../fish/guestfish-actions.pod:2517
22117 msgid ""
22118 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
22119 "block device."
22120 msgstr ""
22121
22122 # type: =head2
22123 #: ../fish/guestfish-actions.pod:2523
22124 msgid "lvm-remove-all"
22125 msgstr ""
22126
22127 # type: verbatim
22128 #: ../fish/guestfish-actions.pod:2525
22129 #, no-wrap
22130 msgid ""
22131 " lvm-remove-all\n"
22132 "\n"
22133 msgstr ""
22134
22135 # type: =head2
22136 #: ../fish/guestfish-actions.pod:2533
22137 msgid "lvm-set-filter"
22138 msgstr ""
22139
22140 # type: verbatim
22141 #: ../fish/guestfish-actions.pod:2535
22142 #, no-wrap
22143 msgid ""
22144 " lvm-set-filter 'devices ...'\n"
22145 "\n"
22146 msgstr ""
22147
22148 # type: =head2
22149 #: ../fish/guestfish-actions.pod:2560
22150 msgid "lvremove"
22151 msgstr ""
22152
22153 # type: verbatim
22154 #: ../fish/guestfish-actions.pod:2562
22155 #, no-wrap
22156 msgid ""
22157 " lvremove device\n"
22158 "\n"
22159 msgstr ""
22160
22161 # type: =head2
22162 #: ../fish/guestfish-actions.pod:2570
22163 msgid "lvrename"
22164 msgstr ""
22165
22166 # type: verbatim
22167 #: ../fish/guestfish-actions.pod:2572
22168 #, no-wrap
22169 msgid ""
22170 " lvrename logvol newlogvol\n"
22171 "\n"
22172 msgstr ""
22173
22174 # type: =head2
22175 #: ../fish/guestfish-actions.pod:2576
22176 msgid "lvresize"
22177 msgstr ""
22178
22179 # type: verbatim
22180 #: ../fish/guestfish-actions.pod:2578
22181 #, no-wrap
22182 msgid ""
22183 " lvresize device mbytes\n"
22184 "\n"
22185 msgstr ""
22186
22187 # type: =head2
22188 #: ../fish/guestfish-actions.pod:2584
22189 msgid "lvresize-free"
22190 msgstr ""
22191
22192 # type: verbatim
22193 #: ../fish/guestfish-actions.pod:2586
22194 #, no-wrap
22195 msgid ""
22196 " lvresize-free lv percent\n"
22197 "\n"
22198 msgstr ""
22199
22200 # type: =head2
22201 #: ../fish/guestfish-actions.pod:2594
22202 msgid "lvs"
22203 msgstr ""
22204
22205 # type: verbatim
22206 #: ../fish/guestfish-actions.pod:2596
22207 #, no-wrap
22208 msgid ""
22209 " lvs\n"
22210 "\n"
22211 msgstr ""
22212
22213 # type: textblock
22214 #: ../fish/guestfish-actions.pod:2604
22215 msgid "See also L</lvs-full>, L</list-filesystems>."
22216 msgstr ""
22217
22218 # type: =head2
22219 #: ../fish/guestfish-actions.pod:2606
22220 msgid "lvs-full"
22221 msgstr ""
22222
22223 # type: verbatim
22224 #: ../fish/guestfish-actions.pod:2608
22225 #, no-wrap
22226 msgid ""
22227 " lvs-full\n"
22228 "\n"
22229 msgstr ""
22230
22231 # type: =head2
22232 #: ../fish/guestfish-actions.pod:2613
22233 msgid "lvuuid"
22234 msgstr ""
22235
22236 # type: verbatim
22237 #: ../fish/guestfish-actions.pod:2615
22238 #, no-wrap
22239 msgid ""
22240 " lvuuid device\n"
22241 "\n"
22242 msgstr ""
22243
22244 # type: =head2
22245 #: ../fish/guestfish-actions.pod:2619
22246 msgid "lxattrlist"
22247 msgstr ""
22248
22249 # type: verbatim
22250 #: ../fish/guestfish-actions.pod:2621
22251 #, no-wrap
22252 msgid ""
22253 " lxattrlist path 'names ...'\n"
22254 "\n"
22255 msgstr ""
22256
22257 # type: textblock
22258 #: ../fish/guestfish-actions.pod:2637
22259 msgid ""
22260 "This call is intended for programs that want to efficiently list a directory "
22261 "contents without making many round-trips.  See also L</lstatlist> for a "
22262 "similarly efficient call for getting standard stats.  Very long directory "
22263 "listings might cause the protocol message size to be exceeded, causing this "
22264 "call to fail.  The caller must split up such requests into smaller groups of "
22265 "names."
22266 msgstr ""
22267
22268 # type: =head2
22269 #: ../fish/guestfish-actions.pod:2645
22270 msgid "mkdir"
22271 msgstr ""
22272
22273 # type: verbatim
22274 #: ../fish/guestfish-actions.pod:2647
22275 #, no-wrap
22276 msgid ""
22277 " mkdir path\n"
22278 "\n"
22279 msgstr ""
22280
22281 # type: =head2
22282 #: ../fish/guestfish-actions.pod:2651
22283 msgid "mkdir-mode"
22284 msgstr ""
22285
22286 # type: verbatim
22287 #: ../fish/guestfish-actions.pod:2653
22288 #, no-wrap
22289 msgid ""
22290 " mkdir-mode path mode\n"
22291 "\n"
22292 msgstr ""
22293
22294 # type: textblock
22295 #: ../fish/guestfish-actions.pod:2662
22296 msgid "See also L</mkdir>, L</umask>"
22297 msgstr ""
22298
22299 # type: =head2
22300 #: ../fish/guestfish-actions.pod:2664
22301 msgid "mkdir-p"
22302 msgstr ""
22303
22304 # type: verbatim
22305 #: ../fish/guestfish-actions.pod:2666
22306 #, no-wrap
22307 msgid ""
22308 " mkdir-p path\n"
22309 "\n"
22310 msgstr ""
22311
22312 # type: =head2
22313 #: ../fish/guestfish-actions.pod:2671
22314 msgid "mkdtemp"
22315 msgstr ""
22316
22317 # type: verbatim
22318 #: ../fish/guestfish-actions.pod:2673
22319 #, no-wrap
22320 msgid ""
22321 " mkdtemp template\n"
22322 "\n"
22323 msgstr ""
22324
22325 # type: =head2
22326 #: ../fish/guestfish-actions.pod:2694
22327 msgid "mke2fs-J"
22328 msgstr ""
22329
22330 # type: verbatim
22331 #: ../fish/guestfish-actions.pod:2696
22332 #, no-wrap
22333 msgid ""
22334 " mke2fs-J fstype blocksize device journal\n"
22335 "\n"
22336 msgstr ""
22337
22338 # type: textblock
22339 #: ../fish/guestfish-actions.pod:2704
22340 msgid "See also L</mke2journal>."
22341 msgstr ""
22342
22343 # type: =head2
22344 #: ../fish/guestfish-actions.pod:2706
22345 msgid "mke2fs-JL"
22346 msgstr ""
22347
22348 # type: verbatim
22349 #: ../fish/guestfish-actions.pod:2708
22350 #, no-wrap
22351 msgid ""
22352 " mke2fs-JL fstype blocksize device label\n"
22353 "\n"
22354 msgstr ""
22355
22356 # type: textblock
22357 #: ../fish/guestfish-actions.pod:2713
22358 msgid "See also L</mke2journal-L>."
22359 msgstr ""
22360
22361 # type: =head2
22362 #: ../fish/guestfish-actions.pod:2715
22363 msgid "mke2fs-JU"
22364 msgstr ""
22365
22366 # type: verbatim
22367 #: ../fish/guestfish-actions.pod:2717
22368 #, no-wrap
22369 msgid ""
22370 " mke2fs-JU fstype blocksize device uuid\n"
22371 "\n"
22372 msgstr ""
22373
22374 # type: textblock
22375 #: ../fish/guestfish-actions.pod:2722
22376 msgid "See also L</mke2journal-U>."
22377 msgstr ""
22378
22379 # type: =head2
22380 #: ../fish/guestfish-actions.pod:2724
22381 msgid "mke2journal"
22382 msgstr ""
22383
22384 # type: verbatim
22385 #: ../fish/guestfish-actions.pod:2726
22386 #, no-wrap
22387 msgid ""
22388 " mke2journal blocksize device\n"
22389 "\n"
22390 msgstr ""
22391
22392 # type: =head2
22393 #: ../fish/guestfish-actions.pod:2733
22394 msgid "mke2journal-L"
22395 msgstr ""
22396
22397 # type: verbatim
22398 #: ../fish/guestfish-actions.pod:2735
22399 #, no-wrap
22400 msgid ""
22401 " mke2journal-L blocksize label device\n"
22402 "\n"
22403 msgstr ""
22404
22405 # type: =head2
22406 #: ../fish/guestfish-actions.pod:2739
22407 msgid "mke2journal-U"
22408 msgstr ""
22409
22410 # type: verbatim
22411 #: ../fish/guestfish-actions.pod:2741
22412 #, no-wrap
22413 msgid ""
22414 " mke2journal-U blocksize uuid device\n"
22415 "\n"
22416 msgstr ""
22417
22418 # type: =head2
22419 #: ../fish/guestfish-actions.pod:2745
22420 msgid "mkfifo"
22421 msgstr ""
22422
22423 # type: verbatim
22424 #: ../fish/guestfish-actions.pod:2747
22425 #, no-wrap
22426 msgid ""
22427 " mkfifo mode path\n"
22428 "\n"
22429 msgstr ""
22430
22431 # type: textblock
22432 #: ../fish/guestfish-actions.pod:2749
22433 msgid ""
22434 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
22435 "is just a convenient wrapper around L</mknod>."
22436 msgstr ""
22437
22438 # type: =head2
22439 #: ../fish/guestfish-actions.pod:2755
22440 msgid "mkfs"
22441 msgstr ""
22442
22443 # type: verbatim
22444 #: ../fish/guestfish-actions.pod:2757
22445 #, no-wrap
22446 msgid ""
22447 " mkfs fstype device\n"
22448 "\n"
22449 msgstr ""
22450
22451 # type: =head2
22452 #: ../fish/guestfish-actions.pod:2763
22453 msgid "mkfs-b"
22454 msgstr ""
22455
22456 # type: verbatim
22457 #: ../fish/guestfish-actions.pod:2765
22458 #, no-wrap
22459 msgid ""
22460 " mkfs-b fstype blocksize device\n"
22461 "\n"
22462 msgstr ""
22463
22464 # type: textblock
22465 #: ../fish/guestfish-actions.pod:2767
22466 msgid ""
22467 "This call is similar to L</mkfs>, but it allows you to control the block "
22468 "size of the resulting filesystem.  Supported block sizes depend on the "
22469 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
22470 msgstr ""
22471
22472 # type: =head2
22473 #: ../fish/guestfish-actions.pod:2775
22474 msgid "mkmountpoint"
22475 msgstr ""
22476
22477 # type: verbatim
22478 #: ../fish/guestfish-actions.pod:2777
22479 #, no-wrap
22480 msgid ""
22481 " mkmountpoint exemptpath\n"
22482 "\n"
22483 msgstr ""
22484
22485 # type: textblock
22486 #: ../fish/guestfish-actions.pod:2779
22487 msgid ""
22488 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
22489 "to create extra mountpoints before mounting the first filesystem."
22490 msgstr ""
22491
22492 # type: textblock
22493 #: ../fish/guestfish-actions.pod:2803
22494 msgid ""
22495 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
22496 "unexpected errors if you try to mix these calls.  It is safest to manually "
22497 "unmount filesystems and remove mountpoints after use."
22498 msgstr ""
22499
22500 # type: textblock
22501 #: ../fish/guestfish-actions.pod:2807
22502 msgid ""
22503 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
22504 "for this to work for manual mountpoints, you must ensure that the innermost "
22505 "mountpoints have the longest pathnames, as in the example code above."
22506 msgstr ""
22507
22508 # type: textblock
22509 #: ../fish/guestfish-actions.pod:2814
22510 msgid ""
22511 "Autosync [see L</set-autosync>, this is set by default on handles] means "
22512 "that L</umount-all> is called when the handle is closed which can also "
22513 "trigger these issues."
22514 msgstr ""
22515
22516 # type: =head2
22517 #: ../fish/guestfish-actions.pod:2818
22518 msgid "mknod"
22519 msgstr ""
22520
22521 # type: verbatim
22522 #: ../fish/guestfish-actions.pod:2820
22523 #, no-wrap
22524 msgid ""
22525 " mknod mode devmajor devminor path\n"
22526 "\n"
22527 msgstr ""
22528
22529 # type: textblock
22530 #: ../fish/guestfish-actions.pod:2830
22531 msgid ""
22532 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
22533 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
22534 "regular file).  These constants are available in the standard Linux header "
22535 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
22536 "wrappers around this command which bitwise OR in the appropriate constant "
22537 "for you."
22538 msgstr ""
22539
22540 # type: =head2
22541 #: ../fish/guestfish-actions.pod:2840
22542 msgid "mknod-b"
22543 msgstr ""
22544
22545 # type: verbatim
22546 #: ../fish/guestfish-actions.pod:2842
22547 #, no-wrap
22548 msgid ""
22549 " mknod-b mode devmajor devminor path\n"
22550 "\n"
22551 msgstr ""
22552
22553 # type: textblock
22554 #: ../fish/guestfish-actions.pod:2844
22555 msgid ""
22556 "This call creates a block device node called C<path> with mode C<mode> and "
22557 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
22558 "wrapper around L</mknod>."
22559 msgstr ""
22560
22561 # type: =head2
22562 #: ../fish/guestfish-actions.pod:2850
22563 msgid "mknod-c"
22564 msgstr ""
22565
22566 # type: verbatim
22567 #: ../fish/guestfish-actions.pod:2852
22568 #, no-wrap
22569 msgid ""
22570 " mknod-c mode devmajor devminor path\n"
22571 "\n"
22572 msgstr ""
22573
22574 # type: textblock
22575 #: ../fish/guestfish-actions.pod:2854
22576 msgid ""
22577 "This call creates a char device node called C<path> with mode C<mode> and "
22578 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
22579 "wrapper around L</mknod>."
22580 msgstr ""
22581
22582 # type: =head2
22583 #: ../fish/guestfish-actions.pod:2860
22584 msgid "mkswap"
22585 msgstr ""
22586
22587 # type: verbatim
22588 #: ../fish/guestfish-actions.pod:2862
22589 #, no-wrap
22590 msgid ""
22591 " mkswap device\n"
22592 "\n"
22593 msgstr ""
22594
22595 # type: =head2
22596 #: ../fish/guestfish-actions.pod:2866
22597 msgid "mkswap-L"
22598 msgstr ""
22599
22600 # type: verbatim
22601 #: ../fish/guestfish-actions.pod:2868
22602 #, no-wrap
22603 msgid ""
22604 " mkswap-L label device\n"
22605 "\n"
22606 msgstr ""
22607
22608 # type: =head2
22609 #: ../fish/guestfish-actions.pod:2876
22610 msgid "mkswap-U"
22611 msgstr ""
22612
22613 # type: verbatim
22614 #: ../fish/guestfish-actions.pod:2878
22615 #, no-wrap
22616 msgid ""
22617 " mkswap-U uuid device\n"
22618 "\n"
22619 msgstr ""
22620
22621 # type: =head2
22622 #: ../fish/guestfish-actions.pod:2882
22623 msgid "mkswap-file"
22624 msgstr ""
22625
22626 # type: verbatim
22627 #: ../fish/guestfish-actions.pod:2884
22628 #, no-wrap
22629 msgid ""
22630 " mkswap-file path\n"
22631 "\n"
22632 msgstr ""
22633
22634 # type: textblock
22635 #: ../fish/guestfish-actions.pod:2888
22636 msgid ""
22637 "This command just writes a swap file signature to an existing file.  To "
22638 "create the file itself, use something like L</fallocate>."
22639 msgstr ""
22640
22641 # type: =head2
22642 #: ../fish/guestfish-actions.pod:2891
22643 msgid "modprobe"
22644 msgstr ""
22645
22646 # type: verbatim
22647 #: ../fish/guestfish-actions.pod:2893
22648 #, no-wrap
22649 msgid ""
22650 " modprobe modulename\n"
22651 "\n"
22652 msgstr ""
22653
22654 # type: =head2
22655 #: ../fish/guestfish-actions.pod:2900
22656 msgid "mount"
22657 msgstr ""
22658
22659 # type: verbatim
22660 #: ../fish/guestfish-actions.pod:2902
22661 #, no-wrap
22662 msgid ""
22663 " mount device mountpoint\n"
22664 "\n"
22665 msgstr ""
22666
22667 # type: textblock
22668 #: ../fish/guestfish-actions.pod:2918
22669 msgid ""
22670 "B<Important note:> When you use this call, the filesystem options C<sync> "
22671 "and C<noatime> are set implicitly.  This was originally done because we "
22672 "thought it would improve reliability, but it turns out that I<-o sync> has a "
22673 "very large negative performance impact and negligible effect on "
22674 "reliability.  Therefore we recommend that you avoid using L</mount> in any "
22675 "code that needs performance, and instead use L</mount-options> (use an empty "
22676 "string for the first parameter if you don't want any options)."
22677 msgstr ""
22678
22679 # type: =head2
22680 #: ../fish/guestfish-actions.pod:2928
22681 msgid "mount-loop"
22682 msgstr ""
22683
22684 # type: verbatim
22685 #: ../fish/guestfish-actions.pod:2930
22686 #, no-wrap
22687 msgid ""
22688 " mount-loop file mountpoint\n"
22689 "\n"
22690 msgstr ""
22691
22692 # type: =head2
22693 #: ../fish/guestfish-actions.pod:2936
22694 msgid "mount-options"
22695 msgstr ""
22696
22697 # type: verbatim
22698 #: ../fish/guestfish-actions.pod:2938
22699 #, no-wrap
22700 msgid ""
22701 " mount-options options device mountpoint\n"
22702 "\n"
22703 msgstr ""
22704
22705 # type: textblock
22706 #: ../fish/guestfish-actions.pod:2940
22707 msgid ""
22708 "This is the same as the L</mount> command, but it allows you to set the "
22709 "mount options as for the L<mount(8)> I<-o> flag."
22710 msgstr ""
22711
22712 # type: =head2
22713 #: ../fish/guestfish-actions.pod:2948
22714 msgid "mount-ro"
22715 msgstr ""
22716
22717 # type: verbatim
22718 #: ../fish/guestfish-actions.pod:2950
22719 #, no-wrap
22720 msgid ""
22721 " mount-ro device mountpoint\n"
22722 "\n"
22723 msgstr ""
22724
22725 # type: textblock
22726 #: ../fish/guestfish-actions.pod:2952
22727 msgid ""
22728 "This is the same as the L</mount> command, but it mounts the filesystem with "
22729 "the read-only (I<-o ro>) flag."
22730 msgstr ""
22731
22732 # type: =head2
22733 #: ../fish/guestfish-actions.pod:2955
22734 msgid "mount-vfs"
22735 msgstr ""
22736
22737 # type: verbatim
22738 #: ../fish/guestfish-actions.pod:2957
22739 #, no-wrap
22740 msgid ""
22741 " mount-vfs options vfstype device mountpoint\n"
22742 "\n"
22743 msgstr ""
22744
22745 # type: textblock
22746 #: ../fish/guestfish-actions.pod:2959
22747 msgid ""
22748 "This is the same as the L</mount> command, but it allows you to set both the "
22749 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
22750 msgstr ""
22751
22752 # type: =head2
22753 #: ../fish/guestfish-actions.pod:2963
22754 msgid "mountpoints"
22755 msgstr ""
22756
22757 # type: verbatim
22758 #: ../fish/guestfish-actions.pod:2965
22759 #, no-wrap
22760 msgid ""
22761 " mountpoints\n"
22762 "\n"
22763 msgstr ""
22764
22765 # type: textblock
22766 #: ../fish/guestfish-actions.pod:2967
22767 msgid ""
22768 "This call is similar to L</mounts>.  That call returns a list of devices.  "
22769 "This one returns a hash table (map) of device name to directory where the "
22770 "device is mounted."
22771 msgstr ""
22772
22773 # type: =head2
22774 #: ../fish/guestfish-actions.pod:2971
22775 msgid "mounts"
22776 msgstr ""
22777
22778 # type: verbatim
22779 #: ../fish/guestfish-actions.pod:2973
22780 #, no-wrap
22781 msgid ""
22782 " mounts\n"
22783 "\n"
22784 msgstr ""
22785
22786 # type: textblock
22787 #: ../fish/guestfish-actions.pod:2980
22788 msgid "See also: L</mountpoints>"
22789 msgstr ""
22790
22791 # type: =head2
22792 #: ../fish/guestfish-actions.pod:2982
22793 msgid "mv"
22794 msgstr ""
22795
22796 # type: verbatim
22797 #: ../fish/guestfish-actions.pod:2984
22798 #, no-wrap
22799 msgid ""
22800 " mv src dest\n"
22801 "\n"
22802 msgstr ""
22803
22804 # type: =head2
22805 #: ../fish/guestfish-actions.pod:2989
22806 msgid "ntfs-3g-probe"
22807 msgstr ""
22808
22809 # type: verbatim
22810 #: ../fish/guestfish-actions.pod:2991
22811 #, no-wrap
22812 msgid ""
22813 " ntfs-3g-probe true|false device\n"
22814 "\n"
22815 msgstr ""
22816
22817 # type: =head2
22818 #: ../fish/guestfish-actions.pod:3005
22819 msgid "ntfsresize"
22820 msgstr ""
22821
22822 # type: verbatim
22823 #: ../fish/guestfish-actions.pod:3007
22824 #, no-wrap
22825 msgid ""
22826 " ntfsresize device\n"
22827 "\n"
22828 msgstr ""
22829
22830 # type: =head2
22831 #: ../fish/guestfish-actions.pod:3013
22832 msgid "ntfsresize-size"
22833 msgstr ""
22834
22835 # type: verbatim
22836 #: ../fish/guestfish-actions.pod:3015
22837 #, no-wrap
22838 msgid ""
22839 " ntfsresize-size device size\n"
22840 "\n"
22841 msgstr ""
22842
22843 # type: textblock
22844 #: ../fish/guestfish-actions.pod:3017
22845 msgid ""
22846 "This command is the same as L</ntfsresize> except that it allows you to "
22847 "specify the new size (in bytes) explicitly."
22848 msgstr ""
22849
22850 # type: =head2
22851 #: ../fish/guestfish-actions.pod:3020
22852 msgid "part-add"
22853 msgstr ""
22854
22855 # type: verbatim
22856 #: ../fish/guestfish-actions.pod:3022
22857 #, no-wrap
22858 msgid ""
22859 " part-add device prlogex startsect endsect\n"
22860 "\n"
22861 msgstr ""
22862
22863 # type: textblock
22864 #: ../fish/guestfish-actions.pod:3024
22865 msgid ""
22866 "This command adds a partition to C<device>.  If there is no partition table "
22867 "on the device, call L</part-init> first."
22868 msgstr ""
22869
22870 # type: textblock
22871 #: ../fish/guestfish-actions.pod:3036
22872 msgid ""
22873 "Creating a partition which covers the whole disk is not so easy.  Use L</"
22874 "part-disk> to do that."
22875 msgstr ""
22876
22877 # type: =head2
22878 #: ../fish/guestfish-actions.pod:3039
22879 msgid "part-del"
22880 msgstr ""
22881
22882 # type: verbatim
22883 #: ../fish/guestfish-actions.pod:3041
22884 #, no-wrap
22885 msgid ""
22886 " part-del device partnum\n"
22887 "\n"
22888 msgstr ""
22889
22890 # type: =head2
22891 #: ../fish/guestfish-actions.pod:3049
22892 msgid "part-disk"
22893 msgstr ""
22894
22895 # type: verbatim
22896 #: ../fish/guestfish-actions.pod:3051
22897 #, no-wrap
22898 msgid ""
22899 " part-disk device parttype\n"
22900 "\n"
22901 msgstr ""
22902
22903 # type: textblock
22904 #: ../fish/guestfish-actions.pod:3053
22905 msgid ""
22906 "This command is simply a combination of L</part-init> followed by L</part-"
22907 "add> to create a single primary partition covering the whole disk."
22908 msgstr ""
22909
22910 # type: textblock
22911 #: ../fish/guestfish-actions.pod:3057
22912 msgid ""
22913 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
22914 "possible values are described in L</part-init>."
22915 msgstr ""
22916
22917 # type: =head2
22918 #: ../fish/guestfish-actions.pod:3063
22919 msgid "part-get-bootable"
22920 msgstr ""
22921
22922 # type: verbatim
22923 #: ../fish/guestfish-actions.pod:3065
22924 #, no-wrap
22925 msgid ""
22926 " part-get-bootable device partnum\n"
22927 "\n"
22928 msgstr ""
22929
22930 # type: textblock
22931 #: ../fish/guestfish-actions.pod:3070
22932 msgid "See also L</part-set-bootable>."
22933 msgstr ""
22934
22935 # type: =head2
22936 #: ../fish/guestfish-actions.pod:3072
22937 msgid "part-get-mbr-id"
22938 msgstr ""
22939
22940 # type: verbatim
22941 #: ../fish/guestfish-actions.pod:3074
22942 #, no-wrap
22943 msgid ""
22944 " part-get-mbr-id device partnum\n"
22945 "\n"
22946 msgstr ""
22947
22948 # type: textblock
22949 #: ../fish/guestfish-actions.pod:3079 ../fish/guestfish-actions.pod:3217
22950 msgid ""
22951 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
22952 "undefined results for other partition table types (see L</part-get-"
22953 "parttype>)."
22954 msgstr ""
22955
22956 # type: =head2
22957 #: ../fish/guestfish-actions.pod:3083
22958 msgid "part-get-parttype"
22959 msgstr ""
22960
22961 # type: verbatim
22962 #: ../fish/guestfish-actions.pod:3085
22963 #, no-wrap
22964 msgid ""
22965 " part-get-parttype device\n"
22966 "\n"
22967 msgstr ""
22968
22969 # type: textblock
22970 #: ../fish/guestfish-actions.pod:3090
22971 msgid ""
22972 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
22973 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
22974 "possible, although unusual.  See L</part-init> for a full list."
22975 msgstr ""
22976
22977 # type: =head2
22978 #: ../fish/guestfish-actions.pod:3095
22979 msgid "part-init"
22980 msgstr ""
22981
22982 # type: verbatim
22983 #: ../fish/guestfish-actions.pod:3097
22984 #, no-wrap
22985 msgid ""
22986 " part-init device parttype\n"
22987 "\n"
22988 msgstr ""
22989
22990 # type: textblock
22991 #: ../fish/guestfish-actions.pod:3103
22992 msgid ""
22993 "Initially there are no partitions.  Following this, you should call L</part-"
22994 "add> for each partition required."
22995 msgstr ""
22996
22997 # type: =head2
22998 #: ../fish/guestfish-actions.pod:3166
22999 msgid "part-list"
23000 msgstr ""
23001
23002 # type: verbatim
23003 #: ../fish/guestfish-actions.pod:3168
23004 #, no-wrap
23005 msgid ""
23006 " part-list device\n"
23007 "\n"
23008 msgstr ""
23009
23010 # type: textblock
23011 #: ../fish/guestfish-actions.pod:3183
23012 msgid ""
23013 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
23014 "the device's sector size, see L</blockdev-getss>."
23015 msgstr ""
23016
23017 # type: =head2
23018 #: ../fish/guestfish-actions.pod:3196
23019 msgid "part-set-bootable"
23020 msgstr ""
23021
23022 # type: verbatim
23023 #: ../fish/guestfish-actions.pod:3198
23024 #, no-wrap
23025 msgid ""
23026 " part-set-bootable device partnum true|false\n"
23027 "\n"
23028 msgstr ""
23029
23030 # type: =head2
23031 #: ../fish/guestfish-actions.pod:3207
23032 msgid "part-set-mbr-id"
23033 msgstr ""
23034
23035 # type: verbatim
23036 #: ../fish/guestfish-actions.pod:3209
23037 #, no-wrap
23038 msgid ""
23039 " part-set-mbr-id device partnum idbyte\n"
23040 "\n"
23041 msgstr ""
23042
23043 # type: =head2
23044 #: ../fish/guestfish-actions.pod:3221
23045 msgid "part-set-name"
23046 msgstr ""
23047
23048 # type: verbatim
23049 #: ../fish/guestfish-actions.pod:3223
23050 #, no-wrap
23051 msgid ""
23052 " part-set-name device partnum name\n"
23053 "\n"
23054 msgstr ""
23055
23056 # type: =head2
23057 #: ../fish/guestfish-actions.pod:3231
23058 msgid "part-to-dev"
23059 msgstr ""
23060
23061 # type: verbatim
23062 #: ../fish/guestfish-actions.pod:3233
23063 #, no-wrap
23064 msgid ""
23065 " part-to-dev partition\n"
23066 "\n"
23067 msgstr ""
23068
23069 # type: textblock
23070 #: ../fish/guestfish-actions.pod:3239
23071 msgid ""
23072 "The named partition must exist, for example as a string returned from L</"
23073 "list-partitions>."
23074 msgstr ""
23075
23076 # type: =head2
23077 #: ../fish/guestfish-actions.pod:3242
23078 msgid "ping-daemon"
23079 msgstr ""
23080
23081 # type: verbatim
23082 #: ../fish/guestfish-actions.pod:3244
23083 #, no-wrap
23084 msgid ""
23085 " ping-daemon\n"
23086 "\n"
23087 msgstr ""
23088
23089 # type: =head2
23090 #: ../fish/guestfish-actions.pod:3251
23091 msgid "pread"
23092 msgstr ""
23093
23094 # type: verbatim
23095 #: ../fish/guestfish-actions.pod:3253
23096 #, no-wrap
23097 msgid ""
23098 " pread path count offset\n"
23099 "\n"
23100 msgstr ""
23101
23102 # type: textblock
23103 #: ../fish/guestfish-actions.pod:3261
23104 msgid "See also L</pwrite>, L</pread-device>."
23105 msgstr ""
23106
23107 # type: =head2
23108 #: ../fish/guestfish-actions.pod:3266
23109 msgid "pread-device"
23110 msgstr ""
23111
23112 # type: verbatim
23113 #: ../fish/guestfish-actions.pod:3268
23114 #, no-wrap
23115 msgid ""
23116 " pread-device device count offset\n"
23117 "\n"
23118 msgstr ""
23119
23120 # type: textblock
23121 #: ../fish/guestfish-actions.pod:3276
23122 msgid "See also L</pread>."
23123 msgstr ""
23124
23125 # type: =head2
23126 #: ../fish/guestfish-actions.pod:3281
23127 msgid "pvcreate"
23128 msgstr ""
23129
23130 # type: verbatim
23131 #: ../fish/guestfish-actions.pod:3283
23132 #, no-wrap
23133 msgid ""
23134 " pvcreate device\n"
23135 "\n"
23136 msgstr ""
23137
23138 # type: =head2
23139 #: ../fish/guestfish-actions.pod:3289
23140 msgid "pvremove"
23141 msgstr ""
23142
23143 # type: verbatim
23144 #: ../fish/guestfish-actions.pod:3291
23145 #, no-wrap
23146 msgid ""
23147 " pvremove device\n"
23148 "\n"
23149 msgstr ""
23150
23151 # type: =head2
23152 #: ../fish/guestfish-actions.pod:3300
23153 msgid "pvresize"
23154 msgstr ""
23155
23156 # type: verbatim
23157 #: ../fish/guestfish-actions.pod:3302
23158 #, no-wrap
23159 msgid ""
23160 " pvresize device\n"
23161 "\n"
23162 msgstr ""
23163
23164 # type: =head2
23165 #: ../fish/guestfish-actions.pod:3307
23166 msgid "pvresize-size"
23167 msgstr ""
23168
23169 # type: verbatim
23170 #: ../fish/guestfish-actions.pod:3309
23171 #, no-wrap
23172 msgid ""
23173 " pvresize-size device size\n"
23174 "\n"
23175 msgstr ""
23176
23177 # type: textblock
23178 #: ../fish/guestfish-actions.pod:3311
23179 msgid ""
23180 "This command is the same as L</pvresize> except that it allows you to "
23181 "specify the new size (in bytes) explicitly."
23182 msgstr ""
23183
23184 # type: =head2
23185 #: ../fish/guestfish-actions.pod:3314
23186 msgid "pvs"
23187 msgstr ""
23188
23189 # type: verbatim
23190 #: ../fish/guestfish-actions.pod:3316
23191 #, no-wrap
23192 msgid ""
23193 " pvs\n"
23194 "\n"
23195 msgstr ""
23196
23197 # type: textblock
23198 #: ../fish/guestfish-actions.pod:3324
23199 msgid "See also L</pvs-full>."
23200 msgstr ""
23201
23202 # type: =head2
23203 #: ../fish/guestfish-actions.pod:3326
23204 msgid "pvs-full"
23205 msgstr ""
23206
23207 # type: verbatim
23208 #: ../fish/guestfish-actions.pod:3328
23209 #, no-wrap
23210 msgid ""
23211 " pvs-full\n"
23212 "\n"
23213 msgstr ""
23214
23215 # type: =head2
23216 #: ../fish/guestfish-actions.pod:3333
23217 msgid "pvuuid"
23218 msgstr ""
23219
23220 # type: verbatim
23221 #: ../fish/guestfish-actions.pod:3335
23222 #, no-wrap
23223 msgid ""
23224 " pvuuid device\n"
23225 "\n"
23226 msgstr ""
23227
23228 # type: =head2
23229 #: ../fish/guestfish-actions.pod:3339
23230 msgid "pwrite"
23231 msgstr ""
23232
23233 # type: verbatim
23234 #: ../fish/guestfish-actions.pod:3341
23235 #, no-wrap
23236 msgid ""
23237 " pwrite path content offset\n"
23238 "\n"
23239 msgstr ""
23240
23241 # type: textblock
23242 #: ../fish/guestfish-actions.pod:3352
23243 msgid "See also L</pread>, L</pwrite-device>."
23244 msgstr ""
23245
23246 # type: =head2
23247 #: ../fish/guestfish-actions.pod:3357
23248 msgid "pwrite-device"
23249 msgstr ""
23250
23251 # type: verbatim
23252 #: ../fish/guestfish-actions.pod:3359
23253 #, no-wrap
23254 msgid ""
23255 " pwrite-device device content offset\n"
23256 "\n"
23257 msgstr ""
23258
23259 # type: textblock
23260 #: ../fish/guestfish-actions.pod:3369
23261 msgid "See also L</pwrite>."
23262 msgstr ""
23263
23264 # type: =head2
23265 #: ../fish/guestfish-actions.pod:3374
23266 msgid "read-file"
23267 msgstr ""
23268
23269 # type: verbatim
23270 #: ../fish/guestfish-actions.pod:3376
23271 #, no-wrap
23272 msgid ""
23273 " read-file path\n"
23274 "\n"
23275 msgstr ""
23276
23277 # type: textblock
23278 #: ../fish/guestfish-actions.pod:3381
23279 msgid ""
23280 "Unlike L</cat>, this function can correctly handle files that contain "
23281 "embedded ASCII NUL characters.  However unlike L</download>, this function "
23282 "is limited in the total size of file that can be handled."
23283 msgstr ""
23284
23285 # type: =head2
23286 #: ../fish/guestfish-actions.pod:3389
23287 msgid "read-lines"
23288 msgstr ""
23289
23290 # type: verbatim
23291 #: ../fish/guestfish-actions.pod:3391
23292 #, no-wrap
23293 msgid ""
23294 " read-lines path\n"
23295 "\n"
23296 msgstr ""
23297
23298 # type: textblock
23299 #: ../fish/guestfish-actions.pod:3398
23300 msgid ""
23301 "Note that this function cannot correctly handle binary files (specifically, "
23302 "files containing C<\\0> character which is treated as end of line).  For "
23303 "those you need to use the L</read-file> function which has a more complex "
23304 "interface."
23305 msgstr ""
23306
23307 # type: =head2
23308 #: ../fish/guestfish-actions.pod:3403
23309 msgid "readdir"
23310 msgstr ""
23311
23312 # type: verbatim
23313 #: ../fish/guestfish-actions.pod:3405
23314 #, no-wrap
23315 msgid ""
23316 " readdir dir\n"
23317 "\n"
23318 msgstr ""
23319
23320 # type: textblock
23321 #: ../fish/guestfish-actions.pod:3457
23322 msgid ""
23323 "This function is primarily intended for use by programs.  To get a simple "
23324 "list of names, use L</ls>.  To get a printable directory for human "
23325 "consumption, use L</ll>."
23326 msgstr ""
23327
23328 # type: =head2
23329 #: ../fish/guestfish-actions.pod:3461
23330 msgid "readlink"
23331 msgstr ""
23332
23333 # type: verbatim
23334 #: ../fish/guestfish-actions.pod:3463
23335 #, no-wrap
23336 msgid ""
23337 " readlink path\n"
23338 "\n"
23339 msgstr ""
23340
23341 # type: =head2
23342 #: ../fish/guestfish-actions.pod:3467
23343 msgid "readlinklist"
23344 msgstr ""
23345
23346 # type: verbatim
23347 #: ../fish/guestfish-actions.pod:3469
23348 #, no-wrap
23349 msgid ""
23350 " readlinklist path 'names ...'\n"
23351 "\n"
23352 msgstr ""
23353
23354 # type: =head2
23355 #: ../fish/guestfish-actions.pod:3493
23356 msgid "realpath"
23357 msgstr ""
23358
23359 # type: verbatim
23360 #: ../fish/guestfish-actions.pod:3495
23361 #, no-wrap
23362 msgid ""
23363 " realpath path\n"
23364 "\n"
23365 msgstr ""
23366
23367 # type: =head2
23368 #: ../fish/guestfish-actions.pod:3500
23369 msgid "removexattr"
23370 msgstr ""
23371
23372 # type: verbatim
23373 #: ../fish/guestfish-actions.pod:3502
23374 #, no-wrap
23375 msgid ""
23376 " removexattr xattr path\n"
23377 "\n"
23378 msgstr ""
23379
23380 # type: textblock
23381 #: ../fish/guestfish-actions.pod:3507
23382 msgid "See also: L</lremovexattr>, L<attr(5)>."
23383 msgstr ""
23384
23385 # type: =head2
23386 #: ../fish/guestfish-actions.pod:3509
23387 msgid "resize2fs"
23388 msgstr ""
23389
23390 # type: verbatim
23391 #: ../fish/guestfish-actions.pod:3511
23392 #, no-wrap
23393 msgid ""
23394 " resize2fs device\n"
23395 "\n"
23396 msgstr ""
23397
23398 # type: textblock
23399 #: ../fish/guestfish-actions.pod:3516
23400 msgid ""
23401 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
23402 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
23403 "gives an error about this and sometimes not.  In any case, it is always safe "
23404 "to call L</e2fsck-f> before calling this function."
23405 msgstr ""
23406
23407 # type: =head2
23408 #: ../fish/guestfish-actions.pod:3522
23409 msgid "resize2fs-size"
23410 msgstr ""
23411
23412 # type: verbatim
23413 #: ../fish/guestfish-actions.pod:3524
23414 #, no-wrap
23415 msgid ""
23416 " resize2fs-size device size\n"
23417 "\n"
23418 msgstr ""
23419
23420 # type: textblock
23421 #: ../fish/guestfish-actions.pod:3526
23422 msgid ""
23423 "This command is the same as L</resize2fs> except that it allows you to "
23424 "specify the new size (in bytes) explicitly."
23425 msgstr ""
23426
23427 # type: =head2
23428 #: ../fish/guestfish-actions.pod:3529
23429 msgid "rm"
23430 msgstr ""
23431
23432 # type: verbatim
23433 #: ../fish/guestfish-actions.pod:3531
23434 #, no-wrap
23435 msgid ""
23436 " rm path\n"
23437 "\n"
23438 msgstr ""
23439
23440 # type: =head2
23441 #: ../fish/guestfish-actions.pod:3535
23442 msgid "rm-rf"
23443 msgstr ""
23444
23445 # type: verbatim
23446 #: ../fish/guestfish-actions.pod:3537
23447 #, no-wrap
23448 msgid ""
23449 " rm-rf path\n"
23450 "\n"
23451 msgstr ""
23452
23453 # type: =head2
23454 #: ../fish/guestfish-actions.pod:3543
23455 msgid "rmdir"
23456 msgstr ""
23457
23458 # type: verbatim
23459 #: ../fish/guestfish-actions.pod:3545
23460 #, no-wrap
23461 msgid ""
23462 " rmdir path\n"
23463 "\n"
23464 msgstr ""
23465
23466 # type: =head2
23467 #: ../fish/guestfish-actions.pod:3549
23468 msgid "rmmountpoint"
23469 msgstr ""
23470
23471 # type: verbatim
23472 #: ../fish/guestfish-actions.pod:3551
23473 #, no-wrap
23474 msgid ""
23475 " rmmountpoint exemptpath\n"
23476 "\n"
23477 msgstr ""
23478
23479 # type: textblock
23480 #: ../fish/guestfish-actions.pod:3553
23481 msgid ""
23482 "This calls removes a mountpoint that was previously created with L</"
23483 "mkmountpoint>.  See L</mkmountpoint> for full details."
23484 msgstr ""
23485
23486 # type: =head2
23487 #: ../fish/guestfish-actions.pod:3557
23488 msgid "scrub-device"
23489 msgstr ""
23490
23491 # type: verbatim
23492 #: ../fish/guestfish-actions.pod:3559
23493 #, no-wrap
23494 msgid ""
23495 " scrub-device device\n"
23496 "\n"
23497 msgstr ""
23498
23499 # type: =head2
23500 #: ../fish/guestfish-actions.pod:3570
23501 msgid "scrub-file"
23502 msgstr ""
23503
23504 # type: verbatim
23505 #: ../fish/guestfish-actions.pod:3572
23506 #, no-wrap
23507 msgid ""
23508 " scrub-file file\n"
23509 "\n"
23510 msgstr ""
23511
23512 # type: =head2
23513 #: ../fish/guestfish-actions.pod:3582
23514 msgid "scrub-freespace"
23515 msgstr ""
23516
23517 # type: verbatim
23518 #: ../fish/guestfish-actions.pod:3584
23519 #, no-wrap
23520 msgid ""
23521 " scrub-freespace dir\n"
23522 "\n"
23523 msgstr ""
23524
23525 # type: textblock
23526 #: ../fish/guestfish-actions.pod:3586
23527 msgid ""
23528 "This command creates the directory C<dir> and then fills it with files until "
23529 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
23530 "deletes them.  The intention is to scrub any free space on the partition "
23531 "containing C<dir>."
23532 msgstr ""
23533
23534 # type: =head2
23535 #: ../fish/guestfish-actions.pod:3595
23536 msgid "set-append"
23537 msgstr ""
23538
23539 # type: =head2
23540 #: ../fish/guestfish-actions.pod:3597
23541 msgid "append"
23542 msgstr ""
23543
23544 # type: verbatim
23545 #: ../fish/guestfish-actions.pod:3599
23546 #, no-wrap
23547 msgid ""
23548 " set-append append\n"
23549 "\n"
23550 msgstr ""
23551
23552 # type: =head2
23553 #: ../fish/guestfish-actions.pod:3610
23554 msgid "set-autosync"
23555 msgstr ""
23556
23557 # type: =head2
23558 #: ../fish/guestfish-actions.pod:3612
23559 msgid "autosync"
23560 msgstr ""
23561
23562 # type: verbatim
23563 #: ../fish/guestfish-actions.pod:3614
23564 #, no-wrap
23565 msgid ""
23566 " set-autosync true|false\n"
23567 "\n"
23568 msgstr ""
23569
23570 # type: textblock
23571 #: ../fish/guestfish-actions.pod:3616
23572 msgid ""
23573 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
23574 "effort attempt to run L</umount-all> followed by L</sync> when the handle is "
23575 "closed (also if the program exits without closing handles)."
23576 msgstr ""
23577
23578 # type: =head2
23579 #: ../fish/guestfish-actions.pod:3624
23580 msgid "set-direct"
23581 msgstr ""
23582
23583 # type: =head2
23584 #: ../fish/guestfish-actions.pod:3626
23585 msgid "direct"
23586 msgstr ""
23587
23588 # type: verbatim
23589 #: ../fish/guestfish-actions.pod:3628
23590 #, no-wrap
23591 msgid ""
23592 " set-direct true|false\n"
23593 "\n"
23594 msgstr ""
23595
23596 # type: textblock
23597 #: ../fish/guestfish-actions.pod:3634
23598 msgid ""
23599 "One consequence of this is that log messages aren't caught by the library "
23600 "and handled by L</set-log-message-callback>, but go straight to stdout."
23601 msgstr ""
23602
23603 # type: =head2
23604 #: ../fish/guestfish-actions.pod:3643
23605 msgid "set-e2label"
23606 msgstr ""
23607
23608 # type: verbatim
23609 #: ../fish/guestfish-actions.pod:3645
23610 #, no-wrap
23611 msgid ""
23612 " set-e2label device label\n"
23613 "\n"
23614 msgstr ""
23615
23616 # type: textblock
23617 #: ../fish/guestfish-actions.pod:3651
23618 msgid ""
23619 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
23620 "label on a filesystem."
23621 msgstr ""
23622
23623 # type: =head2
23624 #: ../fish/guestfish-actions.pod:3654
23625 msgid "set-e2uuid"
23626 msgstr ""
23627
23628 # type: verbatim
23629 #: ../fish/guestfish-actions.pod:3656
23630 #, no-wrap
23631 msgid ""
23632 " set-e2uuid device uuid\n"
23633 "\n"
23634 msgstr ""
23635
23636 # type: textblock
23637 #: ../fish/guestfish-actions.pod:3663
23638 msgid ""
23639 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
23640 "UUID of a filesystem."
23641 msgstr ""
23642
23643 # type: =head2
23644 #: ../fish/guestfish-actions.pod:3666
23645 msgid "set-memsize"
23646 msgstr ""
23647
23648 # type: =head2
23649 #: ../fish/guestfish-actions.pod:3668
23650 msgid "memsize"
23651 msgstr ""
23652
23653 # type: verbatim
23654 #: ../fish/guestfish-actions.pod:3670
23655 #, no-wrap
23656 msgid ""
23657 " set-memsize memsize\n"
23658 "\n"
23659 msgstr ""
23660
23661 # type: textblock
23662 #: ../fish/guestfish-actions.pod:3672
23663 msgid ""
23664 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
23665 "This only has any effect if called before L</launch>."
23666 msgstr ""
23667
23668 # type: =head2
23669 #: ../fish/guestfish-actions.pod:3683
23670 msgid "set-network"
23671 msgstr ""
23672
23673 # type: =head2
23674 #: ../fish/guestfish-actions.pod:3685
23675 msgid "network"
23676 msgstr ""
23677
23678 # type: verbatim
23679 #: ../fish/guestfish-actions.pod:3687
23680 #, no-wrap
23681 msgid ""
23682 " set-network true|false\n"
23683 "\n"
23684 msgstr ""
23685
23686 # type: textblock
23687 #: ../fish/guestfish-actions.pod:3695
23688 msgid ""
23689 "You must call this before calling L</launch>, otherwise it has no effect."
23690 msgstr ""
23691
23692 # type: =head2
23693 #: ../fish/guestfish-actions.pod:3698
23694 msgid "set-path"
23695 msgstr ""
23696
23697 # type: =head2
23698 #: ../fish/guestfish-actions.pod:3700
23699 msgid "path"
23700 msgstr ""
23701
23702 # type: verbatim
23703 #: ../fish/guestfish-actions.pod:3702
23704 #, no-wrap
23705 msgid ""
23706 " set-path searchpath\n"
23707 "\n"
23708 msgstr ""
23709
23710 # type: =head2
23711 #: ../fish/guestfish-actions.pod:3711
23712 msgid "set-qemu"
23713 msgstr ""
23714
23715 # type: =head2
23716 #: ../fish/guestfish-actions.pod:3713
23717 msgid "qemu"
23718 msgstr ""
23719
23720 # type: verbatim
23721 #: ../fish/guestfish-actions.pod:3715
23722 #, no-wrap
23723 msgid ""
23724 " set-qemu qemu\n"
23725 "\n"
23726 msgstr ""
23727
23728 # type: =head2
23729 #: ../fish/guestfish-actions.pod:3735
23730 msgid "set-recovery-proc"
23731 msgstr ""
23732
23733 # type: =head2
23734 #: ../fish/guestfish-actions.pod:3737
23735 msgid "recovery-proc"
23736 msgstr ""
23737
23738 # type: verbatim
23739 #: ../fish/guestfish-actions.pod:3739
23740 #, no-wrap
23741 msgid ""
23742 " set-recovery-proc true|false\n"
23743 "\n"
23744 msgstr ""
23745
23746 # type: textblock
23747 #: ../fish/guestfish-actions.pod:3741
23748 msgid ""
23749 "If this is called with the parameter C<false> then L</launch> does not "
23750 "create a recovery process.  The purpose of the recovery process is to stop "
23751 "runaway qemu processes in the case where the main program aborts abruptly."
23752 msgstr ""
23753
23754 # type: textblock
23755 #: ../fish/guestfish-actions.pod:3746
23756 msgid ""
23757 "This only has any effect if called before L</launch>, and the default is "
23758 "true."
23759 msgstr ""
23760
23761 # type: =head2
23762 #: ../fish/guestfish-actions.pod:3755
23763 msgid "set-selinux"
23764 msgstr ""
23765
23766 # type: =head2
23767 #: ../fish/guestfish-actions.pod:3757
23768 msgid "selinux"
23769 msgstr ""
23770
23771 # type: verbatim
23772 #: ../fish/guestfish-actions.pod:3759
23773 #, no-wrap
23774 msgid ""
23775 " set-selinux true|false\n"
23776 "\n"
23777 msgstr ""
23778
23779 # type: =head2
23780 #: ../fish/guestfish-actions.pod:3770
23781 msgid "set-trace"
23782 msgstr ""
23783
23784 # type: =head2
23785 #: ../fish/guestfish-actions.pod:3772
23786 msgid "trace"
23787 msgstr ""
23788
23789 # type: verbatim
23790 #: ../fish/guestfish-actions.pod:3774
23791 #, no-wrap
23792 msgid ""
23793 " set-trace true|false\n"
23794 "\n"
23795 msgstr ""
23796
23797 # type: =head2
23798 #: ../fish/guestfish-actions.pod:3790
23799 msgid "set-verbose"
23800 msgstr ""
23801
23802 # type: =head2
23803 #: ../fish/guestfish-actions.pod:3792
23804 msgid "verbose"
23805 msgstr ""
23806
23807 # type: verbatim
23808 #: ../fish/guestfish-actions.pod:3794
23809 #, no-wrap
23810 msgid ""
23811 " set-verbose true|false\n"
23812 "\n"
23813 msgstr ""
23814
23815 # type: =head2
23816 #: ../fish/guestfish-actions.pod:3801
23817 msgid "setcon"
23818 msgstr ""
23819
23820 # type: verbatim
23821 #: ../fish/guestfish-actions.pod:3803
23822 #, no-wrap
23823 msgid ""
23824 " setcon context\n"
23825 "\n"
23826 msgstr ""
23827
23828 # type: =head2
23829 #: ../fish/guestfish-actions.pod:3810
23830 msgid "setxattr"
23831 msgstr ""
23832
23833 # type: verbatim
23834 #: ../fish/guestfish-actions.pod:3812
23835 #, no-wrap
23836 msgid ""
23837 " setxattr xattr val vallen path\n"
23838 "\n"
23839 msgstr ""
23840
23841 # type: textblock
23842 #: ../fish/guestfish-actions.pod:3818
23843 msgid "See also: L</lsetxattr>, L<attr(5)>."
23844 msgstr ""
23845
23846 # type: =head2
23847 #: ../fish/guestfish-actions.pod:3820
23848 msgid "sfdisk"
23849 msgstr ""
23850
23851 # type: verbatim
23852 #: ../fish/guestfish-actions.pod:3822
23853 #, no-wrap
23854 msgid ""
23855 " sfdisk device cyls heads sectors 'lines ...'\n"
23856 "\n"
23857 msgstr ""
23858
23859 # type: textblock
23860 #: ../fish/guestfish-actions.pod:3844
23861 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
23862 msgstr ""
23863
23864 # type: =head2
23865 #: ../fish/guestfish-actions.pod:3850
23866 msgid "sfdiskM"
23867 msgstr ""
23868
23869 # type: verbatim
23870 #: ../fish/guestfish-actions.pod:3852
23871 #, no-wrap
23872 msgid ""
23873 " sfdiskM device 'lines ...'\n"
23874 "\n"
23875 msgstr ""
23876
23877 # type: textblock
23878 #: ../fish/guestfish-actions.pod:3854
23879 msgid ""
23880 "This is a simplified interface to the L</sfdisk> command, where partition "
23881 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
23882 "you don't need to specify the cyls, heads and sectors parameters which were "
23883 "rarely if ever used anyway."
23884 msgstr ""
23885
23886 # type: textblock
23887 #: ../fish/guestfish-actions.pod:3860
23888 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
23889 msgstr ""
23890
23891 # type: =head2
23892 #: ../fish/guestfish-actions.pod:3866
23893 msgid "sfdisk-N"
23894 msgstr ""
23895
23896 # type: verbatim
23897 #: ../fish/guestfish-actions.pod:3868
23898 #, no-wrap
23899 msgid ""
23900 " sfdisk-N device partnum cyls heads sectors line\n"
23901 "\n"
23902 msgstr ""
23903
23904 # type: textblock
23905 #: ../fish/guestfish-actions.pod:3873
23906 msgid ""
23907 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
23908 "cyls/heads/sectors parameters."
23909 msgstr ""
23910
23911 # type: textblock
23912 #: ../fish/guestfish-actions.pod:3876
23913 msgid "See also: L</part-add>"
23914 msgstr ""
23915
23916 # type: =head2
23917 #: ../fish/guestfish-actions.pod:3881
23918 msgid "sfdisk-disk-geometry"
23919 msgstr ""
23920
23921 # type: verbatim
23922 #: ../fish/guestfish-actions.pod:3883
23923 #, no-wrap
23924 msgid ""
23925 " sfdisk-disk-geometry device\n"
23926 "\n"
23927 msgstr ""
23928
23929 # type: textblock
23930 #: ../fish/guestfish-actions.pod:3885
23931 msgid ""
23932 "This displays the disk geometry of C<device> read from the partition table.  "
23933 "Especially in the case where the underlying block device has been resized, "
23934 "this can be different from the kernel's idea of the geometry (see L</sfdisk-"
23935 "kernel-geometry>)."
23936 msgstr ""
23937
23938 # type: =head2
23939 #: ../fish/guestfish-actions.pod:3893
23940 msgid "sfdisk-kernel-geometry"
23941 msgstr ""
23942
23943 # type: verbatim
23944 #: ../fish/guestfish-actions.pod:3895
23945 #, no-wrap
23946 msgid ""
23947 " sfdisk-kernel-geometry device\n"
23948 "\n"
23949 msgstr ""
23950
23951 # type: =head2
23952 #: ../fish/guestfish-actions.pod:3902
23953 msgid "sfdisk-l"
23954 msgstr ""
23955
23956 # type: verbatim
23957 #: ../fish/guestfish-actions.pod:3904
23958 #, no-wrap
23959 msgid ""
23960 " sfdisk-l device\n"
23961 "\n"
23962 msgstr ""
23963
23964 # type: textblock
23965 #: ../fish/guestfish-actions.pod:3910
23966 msgid "See also: L</part-list>"
23967 msgstr ""
23968
23969 # type: =head2
23970 #: ../fish/guestfish-actions.pod:3912
23971 msgid "sh"
23972 msgstr ""
23973
23974 # type: verbatim
23975 #: ../fish/guestfish-actions.pod:3914
23976 #, no-wrap
23977 msgid ""
23978 " sh command\n"
23979 "\n"
23980 msgstr ""
23981
23982 # type: textblock
23983 #: ../fish/guestfish-actions.pod:3919
23984 msgid "This is like L</command>, but passes the command to:"
23985 msgstr ""
23986
23987 # type: textblock
23988 #: ../fish/guestfish-actions.pod:3927
23989 msgid "All the provisos about L</command> apply to this call."
23990 msgstr ""
23991
23992 # type: =head2
23993 #: ../fish/guestfish-actions.pod:3929
23994 msgid "sh-lines"
23995 msgstr ""
23996
23997 # type: verbatim
23998 #: ../fish/guestfish-actions.pod:3931
23999 #, no-wrap
24000 msgid ""
24001 " sh-lines command\n"
24002 "\n"
24003 msgstr ""
24004
24005 # type: textblock
24006 #: ../fish/guestfish-actions.pod:3933
24007 msgid "This is the same as L</sh>, but splits the result into a list of lines."
24008 msgstr ""
24009
24010 # type: textblock
24011 #: ../fish/guestfish-actions.pod:3936
24012 msgid "See also: L</command-lines>"
24013 msgstr ""
24014
24015 # type: =head2
24016 #: ../fish/guestfish-actions.pod:3938
24017 msgid "sleep"
24018 msgstr ""
24019
24020 # type: verbatim
24021 #: ../fish/guestfish-actions.pod:3940
24022 #, no-wrap
24023 msgid ""
24024 " sleep secs\n"
24025 "\n"
24026 msgstr ""
24027
24028 # type: =head2
24029 #: ../fish/guestfish-actions.pod:3944
24030 msgid "stat"
24031 msgstr ""
24032
24033 # type: verbatim
24034 #: ../fish/guestfish-actions.pod:3946
24035 #, no-wrap
24036 msgid ""
24037 " stat path\n"
24038 "\n"
24039 msgstr ""
24040
24041 # type: =head2
24042 #: ../fish/guestfish-actions.pod:3952
24043 msgid "statvfs"
24044 msgstr ""
24045
24046 # type: verbatim
24047 #: ../fish/guestfish-actions.pod:3954
24048 #, no-wrap
24049 msgid ""
24050 " statvfs path\n"
24051 "\n"
24052 msgstr ""
24053
24054 # type: =head2
24055 #: ../fish/guestfish-actions.pod:3962
24056 msgid "strings"
24057 msgstr ""
24058
24059 # type: verbatim
24060 #: ../fish/guestfish-actions.pod:3964
24061 #, no-wrap
24062 msgid ""
24063 " strings path\n"
24064 "\n"
24065 msgstr ""
24066
24067 # type: =head2
24068 #: ../fish/guestfish-actions.pod:3972
24069 msgid "strings-e"
24070 msgstr ""
24071
24072 # type: verbatim
24073 #: ../fish/guestfish-actions.pod:3974
24074 #, no-wrap
24075 msgid ""
24076 " strings-e encoding path\n"
24077 "\n"
24078 msgstr ""
24079
24080 # type: textblock
24081 #: ../fish/guestfish-actions.pod:3976
24082 msgid ""
24083 "This is like the L</strings> command, but allows you to specify the encoding "
24084 "of strings that are looked for in the source file C<path>."
24085 msgstr ""
24086
24087 # type: textblock
24088 #: ../fish/guestfish-actions.pod:3986
24089 msgid ""
24090 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
24091 "ISO-8859-X (this is what L</strings> uses)."
24092 msgstr ""
24093
24094 # type: =head2
24095 #: ../fish/guestfish-actions.pod:4018
24096 msgid "swapoff-device"
24097 msgstr ""
24098
24099 # type: verbatim
24100 #: ../fish/guestfish-actions.pod:4020
24101 #, no-wrap
24102 msgid ""
24103 " swapoff-device device\n"
24104 "\n"
24105 msgstr ""
24106
24107 # type: textblock
24108 #: ../fish/guestfish-actions.pod:4022
24109 msgid ""
24110 "This command disables the libguestfs appliance swap device or partition "
24111 "named C<device>.  See L</swapon-device>."
24112 msgstr ""
24113
24114 # type: =head2
24115 #: ../fish/guestfish-actions.pod:4026
24116 msgid "swapoff-file"
24117 msgstr ""
24118
24119 # type: verbatim
24120 #: ../fish/guestfish-actions.pod:4028
24121 #, no-wrap
24122 msgid ""
24123 " swapoff-file file\n"
24124 "\n"
24125 msgstr ""
24126
24127 # type: =head2
24128 #: ../fish/guestfish-actions.pod:4032
24129 msgid "swapoff-label"
24130 msgstr ""
24131
24132 # type: verbatim
24133 #: ../fish/guestfish-actions.pod:4034
24134 #, no-wrap
24135 msgid ""
24136 " swapoff-label label\n"
24137 "\n"
24138 msgstr ""
24139
24140 # type: =head2
24141 #: ../fish/guestfish-actions.pod:4039
24142 msgid "swapoff-uuid"
24143 msgstr ""
24144
24145 # type: verbatim
24146 #: ../fish/guestfish-actions.pod:4041
24147 #, no-wrap
24148 msgid ""
24149 " swapoff-uuid uuid\n"
24150 "\n"
24151 msgstr ""
24152
24153 # type: =head2
24154 #: ../fish/guestfish-actions.pod:4046
24155 msgid "swapon-device"
24156 msgstr ""
24157
24158 # type: verbatim
24159 #: ../fish/guestfish-actions.pod:4048
24160 #, no-wrap
24161 msgid ""
24162 " swapon-device device\n"
24163 "\n"
24164 msgstr ""
24165
24166 # type: textblock
24167 #: ../fish/guestfish-actions.pod:4050
24168 msgid ""
24169 "This command enables the libguestfs appliance to use the swap device or "
24170 "partition named C<device>.  The increased memory is made available for all "
24171 "commands, for example those run using L</command> or L</sh>."
24172 msgstr ""
24173
24174 # type: =head2
24175 #: ../fish/guestfish-actions.pod:4062
24176 msgid "swapon-file"
24177 msgstr ""
24178
24179 # type: verbatim
24180 #: ../fish/guestfish-actions.pod:4064
24181 #, no-wrap
24182 msgid ""
24183 " swapon-file file\n"
24184 "\n"
24185 msgstr ""
24186
24187 # type: textblock
24188 #: ../fish/guestfish-actions.pod:4066
24189 msgid ""
24190 "This command enables swap to a file.  See L</swapon-device> for other notes."
24191 msgstr ""
24192
24193 # type: =head2
24194 #: ../fish/guestfish-actions.pod:4069
24195 msgid "swapon-label"
24196 msgstr ""
24197
24198 # type: verbatim
24199 #: ../fish/guestfish-actions.pod:4071
24200 #, no-wrap
24201 msgid ""
24202 " swapon-label label\n"
24203 "\n"
24204 msgstr ""
24205
24206 # type: textblock
24207 #: ../fish/guestfish-actions.pod:4073
24208 msgid ""
24209 "This command enables swap to a labeled swap partition.  See L</swapon-"
24210 "device> for other notes."
24211 msgstr ""
24212
24213 # type: =head2
24214 #: ../fish/guestfish-actions.pod:4076
24215 msgid "swapon-uuid"
24216 msgstr ""
24217
24218 # type: verbatim
24219 #: ../fish/guestfish-actions.pod:4078
24220 #, no-wrap
24221 msgid ""
24222 " swapon-uuid uuid\n"
24223 "\n"
24224 msgstr ""
24225
24226 # type: textblock
24227 #: ../fish/guestfish-actions.pod:4080
24228 msgid ""
24229 "This command enables swap to a swap partition with the given UUID.  See L</"
24230 "swapon-device> for other notes."
24231 msgstr ""
24232
24233 # type: =head2
24234 #: ../fish/guestfish-actions.pod:4083
24235 msgid "sync"
24236 msgstr ""
24237
24238 # type: verbatim
24239 #: ../fish/guestfish-actions.pod:4085
24240 #, no-wrap
24241 msgid ""
24242 " sync\n"
24243 "\n"
24244 msgstr ""
24245
24246 # type: =head2
24247 #: ../fish/guestfish-actions.pod:4093
24248 msgid "tail"
24249 msgstr ""
24250
24251 # type: verbatim
24252 #: ../fish/guestfish-actions.pod:4095
24253 #, no-wrap
24254 msgid ""
24255 " tail path\n"
24256 "\n"
24257 msgstr ""
24258
24259 # type: =head2
24260 #: ../fish/guestfish-actions.pod:4103
24261 msgid "tail-n"
24262 msgstr ""
24263
24264 # type: verbatim
24265 #: ../fish/guestfish-actions.pod:4105
24266 #, no-wrap
24267 msgid ""
24268 " tail-n nrlines path\n"
24269 "\n"
24270 msgstr ""
24271
24272 # type: =head2
24273 #: ../fish/guestfish-actions.pod:4118
24274 msgid "tar-in"
24275 msgstr ""
24276
24277 # type: verbatim
24278 #: ../fish/guestfish-actions.pod:4120
24279 #, no-wrap
24280 msgid ""
24281 " tar-in (tarfile|-) directory\n"
24282 "\n"
24283 msgstr ""
24284
24285 # type: textblock
24286 #: ../fish/guestfish-actions.pod:4125
24287 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
24288 msgstr ""
24289
24290 # type: =head2
24291 #: ../fish/guestfish-actions.pod:4130
24292 msgid "tar-out"
24293 msgstr ""
24294
24295 # type: verbatim
24296 #: ../fish/guestfish-actions.pod:4132
24297 #, no-wrap
24298 msgid ""
24299 " tar-out directory (tarfile|-)\n"
24300 "\n"
24301 msgstr ""
24302
24303 # type: textblock
24304 #: ../fish/guestfish-actions.pod:4137
24305 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
24306 msgstr ""
24307
24308 # type: =head2
24309 #: ../fish/guestfish-actions.pod:4142
24310 msgid "tgz-in"
24311 msgstr ""
24312
24313 # type: verbatim
24314 #: ../fish/guestfish-actions.pod:4144
24315 #, no-wrap
24316 msgid ""
24317 " tgz-in (tarball|-) directory\n"
24318 "\n"
24319 msgstr ""
24320
24321 # type: textblock
24322 #: ../fish/guestfish-actions.pod:4149
24323 msgid "To upload an uncompressed tarball, use L</tar-in>."
24324 msgstr ""
24325
24326 # type: =head2
24327 #: ../fish/guestfish-actions.pod:4153
24328 msgid "tgz-out"
24329 msgstr ""
24330
24331 # type: verbatim
24332 #: ../fish/guestfish-actions.pod:4155
24333 #, no-wrap
24334 msgid ""
24335 " tgz-out directory (tarball|-)\n"
24336 "\n"
24337 msgstr ""
24338
24339 # type: textblock
24340 #: ../fish/guestfish-actions.pod:4160
24341 msgid "To download an uncompressed tarball, use L</tar-out>."
24342 msgstr ""
24343
24344 # type: =head2
24345 #: ../fish/guestfish-actions.pod:4164
24346 msgid "touch"
24347 msgstr ""
24348
24349 # type: verbatim
24350 #: ../fish/guestfish-actions.pod:4166
24351 #, no-wrap
24352 msgid ""
24353 " touch path\n"
24354 "\n"
24355 msgstr ""
24356
24357 # type: =head2
24358 #: ../fish/guestfish-actions.pod:4175
24359 msgid "truncate"
24360 msgstr ""
24361
24362 # type: verbatim
24363 #: ../fish/guestfish-actions.pod:4177
24364 #, no-wrap
24365 msgid ""
24366 " truncate path\n"
24367 "\n"
24368 msgstr ""
24369
24370 # type: =head2
24371 #: ../fish/guestfish-actions.pod:4182
24372 msgid "truncate-size"
24373 msgstr ""
24374
24375 # type: verbatim
24376 #: ../fish/guestfish-actions.pod:4184
24377 #, no-wrap
24378 msgid ""
24379 " truncate-size path size\n"
24380 "\n"
24381 msgstr ""
24382
24383 # type: textblock
24384 #: ../fish/guestfish-actions.pod:4189
24385 msgid ""
24386 "If the current file size is less than C<size> then the file is extended to "
24387 "the required size with zero bytes.  This creates a sparse file (ie. disk "
24388 "blocks are not allocated for the file until you write to it).  To create a "
24389 "non-sparse file of zeroes, use L</fallocate64> instead."
24390 msgstr ""
24391
24392 # type: =head2
24393 #: ../fish/guestfish-actions.pod:4195
24394 msgid "tune2fs-l"
24395 msgstr ""
24396
24397 # type: verbatim
24398 #: ../fish/guestfish-actions.pod:4197
24399 #, no-wrap
24400 msgid ""
24401 " tune2fs-l device\n"
24402 "\n"
24403 msgstr ""
24404
24405 # type: =head2
24406 #: ../fish/guestfish-actions.pod:4207
24407 msgid "txz-in"
24408 msgstr ""
24409
24410 # type: verbatim
24411 #: ../fish/guestfish-actions.pod:4209
24412 #, no-wrap
24413 msgid ""
24414 " txz-in (tarball|-) directory\n"
24415 "\n"
24416 msgstr ""
24417
24418 # type: =head2
24419 #: ../fish/guestfish-actions.pod:4216
24420 msgid "txz-out"
24421 msgstr ""
24422
24423 # type: verbatim
24424 #: ../fish/guestfish-actions.pod:4218
24425 #, no-wrap
24426 msgid ""
24427 " txz-out directory (tarball|-)\n"
24428 "\n"
24429 msgstr ""
24430
24431 # type: =head2
24432 #: ../fish/guestfish-actions.pod:4225
24433 msgid "umask"
24434 msgstr ""
24435
24436 # type: verbatim
24437 #: ../fish/guestfish-actions.pod:4227
24438 #, no-wrap
24439 msgid ""
24440 " umask mask\n"
24441 "\n"
24442 msgstr ""
24443
24444 # type: textblock
24445 #: ../fish/guestfish-actions.pod:4241
24446 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
24447 msgstr ""
24448
24449 # type: =head2
24450 #: ../fish/guestfish-actions.pod:4246
24451 msgid "umount"
24452 msgstr ""
24453
24454 # type: =head2
24455 #: ../fish/guestfish-actions.pod:4248
24456 msgid "unmount"
24457 msgstr ""
24458
24459 # type: verbatim
24460 #: ../fish/guestfish-actions.pod:4250
24461 #, no-wrap
24462 msgid ""
24463 " umount pathordevice\n"
24464 "\n"
24465 msgstr ""
24466
24467 # type: =head2
24468 #: ../fish/guestfish-actions.pod:4256
24469 msgid "umount-all"
24470 msgstr ""
24471
24472 # type: =head2
24473 #: ../fish/guestfish-actions.pod:4258
24474 msgid "unmount-all"
24475 msgstr ""
24476
24477 # type: verbatim
24478 #: ../fish/guestfish-actions.pod:4260
24479 #, no-wrap
24480 msgid ""
24481 " umount-all\n"
24482 "\n"
24483 msgstr ""
24484
24485 # type: =head2
24486 #: ../fish/guestfish-actions.pod:4266
24487 msgid "upload"
24488 msgstr ""
24489
24490 # type: verbatim
24491 #: ../fish/guestfish-actions.pod:4268
24492 #, no-wrap
24493 msgid ""
24494 " upload (filename|-) remotefilename\n"
24495 "\n"
24496 msgstr ""
24497
24498 # type: textblock
24499 #: ../fish/guestfish-actions.pod:4275
24500 msgid "See also L</download>."
24501 msgstr ""
24502
24503 # type: =head2
24504 #: ../fish/guestfish-actions.pod:4279
24505 msgid "upload-offset"
24506 msgstr ""
24507
24508 # type: verbatim
24509 #: ../fish/guestfish-actions.pod:4281
24510 #, no-wrap
24511 msgid ""
24512 " upload-offset (filename|-) remotefilename offset\n"
24513 "\n"
24514 msgstr ""
24515
24516 # type: textblock
24517 #: ../fish/guestfish-actions.pod:4293
24518 msgid ""
24519 "Note that there is no limit on the amount of data that can be uploaded with "
24520 "this call, unlike with L</pwrite>, and this call always writes the full "
24521 "amount unless an error occurs."
24522 msgstr ""
24523
24524 # type: textblock
24525 #: ../fish/guestfish-actions.pod:4298
24526 msgid "See also L</upload>, L</pwrite>."
24527 msgstr ""
24528
24529 # type: =head2
24530 #: ../fish/guestfish-actions.pod:4302
24531 msgid "utimens"
24532 msgstr ""
24533
24534 # type: verbatim
24535 #: ../fish/guestfish-actions.pod:4304
24536 #, no-wrap
24537 msgid ""
24538 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
24539 "\n"
24540 msgstr ""
24541
24542 # type: =head2
24543 #: ../fish/guestfish-actions.pod:4323
24544 msgid "version"
24545 msgstr ""
24546
24547 # type: verbatim
24548 #: ../fish/guestfish-actions.pod:4325
24549 #, no-wrap
24550 msgid ""
24551 " version\n"
24552 "\n"
24553 msgstr ""
24554
24555 # type: textblock
24556 #: ../fish/guestfish-actions.pod:4352
24557 msgid ""
24558 "I<Note:> Don't use this call to test for availability of features.  In "
24559 "enterprise distributions we backport features from later versions into "
24560 "earlier versions, making this an unreliable way to test for features.  Use "
24561 "L</available> instead."
24562 msgstr ""
24563
24564 # type: =head2
24565 #: ../fish/guestfish-actions.pod:4358
24566 msgid "vfs-label"
24567 msgstr ""
24568
24569 # type: verbatim
24570 #: ../fish/guestfish-actions.pod:4360
24571 #, no-wrap
24572 msgid ""
24573 " vfs-label device\n"
24574 "\n"
24575 msgstr ""
24576
24577 # type: textblock
24578 #: ../fish/guestfish-actions.pod:4367
24579 msgid "To find a filesystem from the label, use L</findfs-label>."
24580 msgstr ""
24581
24582 # type: =head2
24583 #: ../fish/guestfish-actions.pod:4369
24584 msgid "vfs-type"
24585 msgstr ""
24586
24587 # type: verbatim
24588 #: ../fish/guestfish-actions.pod:4371
24589 #, no-wrap
24590 msgid ""
24591 " vfs-type device\n"
24592 "\n"
24593 msgstr ""
24594
24595 # type: =head2
24596 #: ../fish/guestfish-actions.pod:4381
24597 msgid "vfs-uuid"
24598 msgstr ""
24599
24600 # type: verbatim
24601 #: ../fish/guestfish-actions.pod:4383
24602 #, no-wrap
24603 msgid ""
24604 " vfs-uuid device\n"
24605 "\n"
24606 msgstr ""
24607
24608 # type: textblock
24609 #: ../fish/guestfish-actions.pod:4390
24610 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
24611 msgstr ""
24612
24613 # type: =head2
24614 #: ../fish/guestfish-actions.pod:4392
24615 msgid "vg-activate"
24616 msgstr ""
24617
24618 # type: verbatim
24619 #: ../fish/guestfish-actions.pod:4394
24620 #, no-wrap
24621 msgid ""
24622 " vg-activate true|false 'volgroups ...'\n"
24623 "\n"
24624 msgstr ""
24625
24626 # type: =head2
24627 #: ../fish/guestfish-actions.pod:4407
24628 msgid "vg-activate-all"
24629 msgstr ""
24630
24631 # type: verbatim
24632 #: ../fish/guestfish-actions.pod:4409
24633 #, no-wrap
24634 msgid ""
24635 " vg-activate-all true|false\n"
24636 "\n"
24637 msgstr ""
24638
24639 # type: =head2
24640 #: ../fish/guestfish-actions.pod:4419
24641 msgid "vgcreate"
24642 msgstr ""
24643
24644 # type: verbatim
24645 #: ../fish/guestfish-actions.pod:4421
24646 #, no-wrap
24647 msgid ""
24648 " vgcreate volgroup 'physvols ...'\n"
24649 "\n"
24650 msgstr ""
24651
24652 # type: =head2
24653 #: ../fish/guestfish-actions.pod:4426
24654 msgid "vglvuuids"
24655 msgstr ""
24656
24657 # type: verbatim
24658 #: ../fish/guestfish-actions.pod:4428
24659 #, no-wrap
24660 msgid ""
24661 " vglvuuids vgname\n"
24662 "\n"
24663 msgstr ""
24664
24665 # type: textblock
24666 #: ../fish/guestfish-actions.pod:4433
24667 msgid ""
24668 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
24669 "logical volumes and volume groups."
24670 msgstr ""
24671
24672 # type: textblock
24673 #: ../fish/guestfish-actions.pod:4436
24674 msgid "See also L</vgpvuuids>."
24675 msgstr ""
24676
24677 # type: =head2
24678 #: ../fish/guestfish-actions.pod:4438
24679 msgid "vgpvuuids"
24680 msgstr ""
24681
24682 # type: verbatim
24683 #: ../fish/guestfish-actions.pod:4440
24684 #, no-wrap
24685 msgid ""
24686 " vgpvuuids vgname\n"
24687 "\n"
24688 msgstr ""
24689
24690 # type: textblock
24691 #: ../fish/guestfish-actions.pod:4445
24692 msgid ""
24693 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
24694 "physical volumes and volume groups."
24695 msgstr ""
24696
24697 # type: textblock
24698 #: ../fish/guestfish-actions.pod:4448
24699 msgid "See also L</vglvuuids>."
24700 msgstr ""
24701
24702 # type: =head2
24703 #: ../fish/guestfish-actions.pod:4450
24704 msgid "vgremove"
24705 msgstr ""
24706
24707 # type: verbatim
24708 #: ../fish/guestfish-actions.pod:4452
24709 #, no-wrap
24710 msgid ""
24711 " vgremove vgname\n"
24712 "\n"
24713 msgstr ""
24714
24715 # type: =head2
24716 #: ../fish/guestfish-actions.pod:4459
24717 msgid "vgrename"
24718 msgstr ""
24719
24720 # type: verbatim
24721 #: ../fish/guestfish-actions.pod:4461
24722 #, no-wrap
24723 msgid ""
24724 " vgrename volgroup newvolgroup\n"
24725 "\n"
24726 msgstr ""
24727
24728 # type: =head2
24729 #: ../fish/guestfish-actions.pod:4465
24730 msgid "vgs"
24731 msgstr ""
24732
24733 # type: verbatim
24734 #: ../fish/guestfish-actions.pod:4467
24735 #, no-wrap
24736 msgid ""
24737 " vgs\n"
24738 "\n"
24739 msgstr ""
24740
24741 # type: textblock
24742 #: ../fish/guestfish-actions.pod:4475
24743 msgid "See also L</vgs-full>."
24744 msgstr ""
24745
24746 # type: =head2
24747 #: ../fish/guestfish-actions.pod:4477
24748 msgid "vgs-full"
24749 msgstr ""
24750
24751 # type: verbatim
24752 #: ../fish/guestfish-actions.pod:4479
24753 #, no-wrap
24754 msgid ""
24755 " vgs-full\n"
24756 "\n"
24757 msgstr ""
24758
24759 # type: =head2
24760 #: ../fish/guestfish-actions.pod:4484
24761 msgid "vgscan"
24762 msgstr ""
24763
24764 # type: verbatim
24765 #: ../fish/guestfish-actions.pod:4486
24766 #, no-wrap
24767 msgid ""
24768 " vgscan\n"
24769 "\n"
24770 msgstr ""
24771
24772 # type: =head2
24773 #: ../fish/guestfish-actions.pod:4491
24774 msgid "vguuid"
24775 msgstr ""
24776
24777 # type: verbatim
24778 #: ../fish/guestfish-actions.pod:4493
24779 #, no-wrap
24780 msgid ""
24781 " vguuid vgname\n"
24782 "\n"
24783 msgstr ""
24784
24785 # type: =head2
24786 #: ../fish/guestfish-actions.pod:4497
24787 msgid "wc-c"
24788 msgstr ""
24789
24790 # type: verbatim
24791 #: ../fish/guestfish-actions.pod:4499
24792 #, no-wrap
24793 msgid ""
24794 " wc-c path\n"
24795 "\n"
24796 msgstr ""
24797
24798 # type: =head2
24799 #: ../fish/guestfish-actions.pod:4504
24800 msgid "wc-l"
24801 msgstr ""
24802
24803 # type: verbatim
24804 #: ../fish/guestfish-actions.pod:4506
24805 #, no-wrap
24806 msgid ""
24807 " wc-l path\n"
24808 "\n"
24809 msgstr ""
24810
24811 # type: =head2
24812 #: ../fish/guestfish-actions.pod:4511
24813 msgid "wc-w"
24814 msgstr ""
24815
24816 # type: verbatim
24817 #: ../fish/guestfish-actions.pod:4513
24818 #, no-wrap
24819 msgid ""
24820 " wc-w path\n"
24821 "\n"
24822 msgstr ""
24823
24824 # type: =head2
24825 #: ../fish/guestfish-actions.pod:4518
24826 msgid "write"
24827 msgstr ""
24828
24829 # type: verbatim
24830 #: ../fish/guestfish-actions.pod:4520
24831 #, no-wrap
24832 msgid ""
24833 " write path content\n"
24834 "\n"
24835 msgstr ""
24836
24837 # type: =head2
24838 #: ../fish/guestfish-actions.pod:4528
24839 msgid "write-file"
24840 msgstr ""
24841
24842 # type: verbatim
24843 #: ../fish/guestfish-actions.pod:4530
24844 #, no-wrap
24845 msgid ""
24846 " write-file path content size\n"
24847 "\n"
24848 msgstr ""
24849
24850 # type: =head2
24851 #: ../fish/guestfish-actions.pod:4553
24852 msgid "zegrep"
24853 msgstr ""
24854
24855 # type: verbatim
24856 #: ../fish/guestfish-actions.pod:4555
24857 #, no-wrap
24858 msgid ""
24859 " zegrep regex path\n"
24860 "\n"
24861 msgstr ""
24862
24863 # type: =head2
24864 #: ../fish/guestfish-actions.pod:4563
24865 msgid "zegrepi"
24866 msgstr ""
24867
24868 # type: verbatim
24869 #: ../fish/guestfish-actions.pod:4565
24870 #, no-wrap
24871 msgid ""
24872 " zegrepi regex path\n"
24873 "\n"
24874 msgstr ""
24875
24876 # type: =head2
24877 #: ../fish/guestfish-actions.pod:4573
24878 msgid "zero"
24879 msgstr ""
24880
24881 # type: verbatim
24882 #: ../fish/guestfish-actions.pod:4575
24883 #, no-wrap
24884 msgid ""
24885 " zero device\n"
24886 "\n"
24887 msgstr ""
24888
24889 # type: textblock
24890 #: ../fish/guestfish-actions.pod:4583
24891 msgid "See also: L</zero-device>, L</scrub-device>."
24892 msgstr ""
24893
24894 # type: =head2
24895 #: ../fish/guestfish-actions.pod:4585
24896 msgid "zero-device"
24897 msgstr ""
24898
24899 # type: verbatim
24900 #: ../fish/guestfish-actions.pod:4587
24901 #, no-wrap
24902 msgid ""
24903 " zero-device device\n"
24904 "\n"
24905 msgstr ""
24906
24907 # type: textblock
24908 #: ../fish/guestfish-actions.pod:4589
24909 msgid ""
24910 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
24911 "which just zeroes the first few blocks of a device."
24912 msgstr ""
24913
24914 # type: =head2
24915 #: ../fish/guestfish-actions.pod:4596
24916 msgid "zerofree"
24917 msgstr ""
24918
24919 # type: verbatim
24920 #: ../fish/guestfish-actions.pod:4598
24921 #, no-wrap
24922 msgid ""
24923 " zerofree device\n"
24924 "\n"
24925 msgstr ""
24926
24927 # type: =head2
24928 #: ../fish/guestfish-actions.pod:4611
24929 msgid "zfgrep"
24930 msgstr ""
24931
24932 # type: verbatim
24933 #: ../fish/guestfish-actions.pod:4613
24934 #, no-wrap
24935 msgid ""
24936 " zfgrep pattern path\n"
24937 "\n"
24938 msgstr ""
24939
24940 # type: =head2
24941 #: ../fish/guestfish-actions.pod:4621
24942 msgid "zfgrepi"
24943 msgstr ""
24944
24945 # type: verbatim
24946 #: ../fish/guestfish-actions.pod:4623
24947 #, no-wrap
24948 msgid ""
24949 " zfgrepi pattern path\n"
24950 "\n"
24951 msgstr ""
24952
24953 # type: =head2
24954 #: ../fish/guestfish-actions.pod:4631
24955 msgid "zfile"
24956 msgstr ""
24957
24958 # type: verbatim
24959 #: ../fish/guestfish-actions.pod:4633
24960 #, no-wrap
24961 msgid ""
24962 " zfile meth path\n"
24963 "\n"
24964 msgstr ""
24965
24966 # type: textblock
24967 #: ../fish/guestfish-actions.pod:4640
24968 msgid ""
24969 "Since 1.0.63, use L</file> instead which can now process compressed files."
24970 msgstr ""
24971
24972 # type: =head2
24973 #: ../fish/guestfish-actions.pod:4650
24974 msgid "zgrep"
24975 msgstr ""
24976
24977 # type: verbatim
24978 #: ../fish/guestfish-actions.pod:4652
24979 #, no-wrap
24980 msgid ""
24981 " zgrep regex path\n"
24982 "\n"
24983 msgstr ""
24984
24985 # type: =head2
24986 #: ../fish/guestfish-actions.pod:4660
24987 msgid "zgrepi"
24988 msgstr ""
24989
24990 # type: verbatim
24991 #: ../fish/guestfish-actions.pod:4662
24992 #, no-wrap
24993 msgid ""
24994 " zgrepi regex path\n"
24995 "\n"
24996 msgstr ""
24997
24998 # type: =head2
24999 #: ../fish/guestfish-commands.pod:1
25000 msgid "alloc"
25001 msgstr ""
25002
25003 # type: =head2
25004 #: ../fish/guestfish-commands.pod:3
25005 msgid "allocate"
25006 msgstr ""
25007
25008 # type: verbatim
25009 #: ../fish/guestfish-commands.pod:5
25010 #, no-wrap
25011 msgid ""
25012 " alloc filename size\n"
25013 "\n"
25014 msgstr ""
25015
25016 # type: textblock
25017 #: ../fish/guestfish-commands.pod:7
25018 msgid ""
25019 "This creates an empty (zeroed) file of the given size, and then adds so it "
25020 "can be further examined."
25021 msgstr ""
25022
25023 # type: textblock
25024 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:168
25025 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
25026 msgstr ""
25027
25028 # type: textblock
25029 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:170
25030 msgid "Size can be specified using standard suffixes, eg. C<1M>."
25031 msgstr ""
25032
25033 # type: textblock
25034 #: ../fish/guestfish-commands.pod:14
25035 msgid ""
25036 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
25037 "image, see L</PREPARED DISK IMAGES>."
25038 msgstr ""
25039
25040 # type: =head2
25041 #: ../fish/guestfish-commands.pod:17
25042 msgid "copy-in"
25043 msgstr ""
25044
25045 # type: verbatim
25046 #: ../fish/guestfish-commands.pod:19
25047 #, no-wrap
25048 msgid ""
25049 " copy-in local [local ...] /remotedir\n"
25050 "\n"
25051 msgstr ""
25052
25053 # type: textblock
25054 #: ../fish/guestfish-commands.pod:21
25055 msgid ""
25056 "C<copy-in> copies local files or directories recursively into the disk "
25057 "image, placing them in the directory called C</remotedir> (which must "
25058 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
25059 "other commands as necessary."
25060 msgstr ""
25061
25062 # type: textblock
25063 #: ../fish/guestfish-commands.pod:26
25064 msgid ""
25065 "Multiple local files and directories can be specified, but the last "
25066 "parameter must always be a remote directory.  Wildcards cannot be used."
25067 msgstr ""
25068
25069 # type: =head2
25070 #: ../fish/guestfish-commands.pod:30
25071 msgid "copy-out"
25072 msgstr ""
25073
25074 # type: verbatim
25075 #: ../fish/guestfish-commands.pod:32
25076 #, no-wrap
25077 msgid ""
25078 " copy-out remote [remote ...] localdir\n"
25079 "\n"
25080 msgstr ""
25081
25082 # type: textblock
25083 #: ../fish/guestfish-commands.pod:34
25084 msgid ""
25085 "C<copy-out> copies remote files or directories recursively out of the disk "
25086 "image, placing them on the host disk in a local directory called C<localdir> "
25087 "(which must exist).  This guestfish meta-command turns into a sequence of L</"
25088 "download>, L</tar-out> and other commands as necessary."
25089 msgstr ""
25090
25091 # type: textblock
25092 #: ../fish/guestfish-commands.pod:40
25093 msgid ""
25094 "Multiple remote files and directories can be specified, but the last "
25095 "parameter must always be a local directory.  To download to the current "
25096 "directory, use C<.> as in:"
25097 msgstr ""
25098
25099 # type: verbatim
25100 #: ../fish/guestfish-commands.pod:44
25101 #, no-wrap
25102 msgid ""
25103 " copy-out /home .\n"
25104 "\n"
25105 msgstr ""
25106
25107 # type: textblock
25108 #: ../fish/guestfish-commands.pod:46
25109 msgid ""
25110 "Wildcards cannot be used in the ordinary command, but you can use them with "
25111 "the help of L</glob> like this:"
25112 msgstr ""
25113
25114 # type: verbatim
25115 #: ../fish/guestfish-commands.pod:49
25116 #, no-wrap
25117 msgid ""
25118 " glob copy-out /home/* .\n"
25119 "\n"
25120 msgstr ""
25121
25122 # type: =head2
25123 #: ../fish/guestfish-commands.pod:51
25124 msgid "echo"
25125 msgstr ""
25126
25127 # type: verbatim
25128 #: ../fish/guestfish-commands.pod:53
25129 #, no-wrap
25130 msgid ""
25131 " echo [params ...]\n"
25132 "\n"
25133 msgstr ""
25134
25135 # type: textblock
25136 #: ../fish/guestfish-commands.pod:55
25137 msgid "This echos the parameters to the terminal."
25138 msgstr ""
25139
25140 # type: =head2
25141 #: ../fish/guestfish-commands.pod:57
25142 msgid "edit"
25143 msgstr ""
25144
25145 # type: =head2
25146 #: ../fish/guestfish-commands.pod:59
25147 msgid "vi"
25148 msgstr ""
25149
25150 # type: =head2
25151 #: ../fish/guestfish-commands.pod:61
25152 msgid "emacs"
25153 msgstr ""
25154
25155 # type: verbatim
25156 #: ../fish/guestfish-commands.pod:63
25157 #, no-wrap
25158 msgid ""
25159 " edit filename\n"
25160 "\n"
25161 msgstr ""
25162
25163 # type: textblock
25164 #: ../fish/guestfish-commands.pod:65
25165 msgid ""
25166 "This is used to edit a file.  It downloads the file, edits it locally using "
25167 "your editor, then uploads the result."
25168 msgstr ""
25169
25170 # type: textblock
25171 #: ../fish/guestfish-commands.pod:68
25172 msgid ""
25173 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
25174 "or C<emacs> you will get those corresponding editors."
25175 msgstr ""
25176
25177 # type: =head2
25178 #: ../fish/guestfish-commands.pod:72
25179 msgid "glob"
25180 msgstr ""
25181
25182 # type: verbatim
25183 #: ../fish/guestfish-commands.pod:74
25184 #, no-wrap
25185 msgid ""
25186 " glob command args...\n"
25187 "\n"
25188 msgstr ""
25189
25190 # type: textblock
25191 #: ../fish/guestfish-commands.pod:76
25192 msgid ""
25193 "Expand wildcards in any paths in the args list, and run C<command> "
25194 "repeatedly on each matching path."
25195 msgstr ""
25196
25197 # type: textblock
25198 #: ../fish/guestfish-commands.pod:79
25199 msgid "See L</WILDCARDS AND GLOBBING>."
25200 msgstr ""
25201
25202 # type: =head2
25203 #: ../fish/guestfish-commands.pod:81
25204 msgid "hexedit"
25205 msgstr ""
25206
25207 # type: verbatim
25208 #: ../fish/guestfish-commands.pod:83
25209 #, no-wrap
25210 msgid ""
25211 " hexedit <filename|device>\n"
25212 " hexedit <filename|device> <max>\n"
25213 " hexedit <filename|device> <start> <max>\n"
25214 "\n"
25215 msgstr ""
25216
25217 # type: textblock
25218 #: ../fish/guestfish-commands.pod:87
25219 msgid ""
25220 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
25221 "device."
25222 msgstr ""
25223
25224 # type: textblock
25225 #: ../fish/guestfish-commands.pod:90
25226 msgid ""
25227 "This command works by downloading potentially the whole file or device, "
25228 "editing it locally, then uploading it.  If the file or device is large, you "
25229 "have to specify which part you wish to edit by using C<max> and/or C<start> "
25230 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
25231 "usual modifiers allowed such as C<1M> (1 megabyte)."
25232 msgstr ""
25233
25234 # type: textblock
25235 #: ../fish/guestfish-commands.pod:97
25236 msgid "For example to edit the first few sectors of a disk you might do:"
25237 msgstr ""
25238
25239 # type: verbatim
25240 #: ../fish/guestfish-commands.pod:100
25241 #, no-wrap
25242 msgid ""
25243 " hexedit /dev/sda 1M\n"
25244 "\n"
25245 msgstr ""
25246
25247 # type: textblock
25248 #: ../fish/guestfish-commands.pod:102
25249 msgid ""
25250 "which would allow you to edit anywhere within the first megabyte of the disk."
25251 msgstr ""
25252
25253 # type: textblock
25254 #: ../fish/guestfish-commands.pod:105
25255 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
25256 msgstr ""
25257
25258 # type: verbatim
25259 #: ../fish/guestfish-commands.pod:107
25260 #, no-wrap
25261 msgid ""
25262 " hexedit /dev/sda1 0x400 0x400\n"
25263 "\n"
25264 msgstr ""
25265
25266 # type: textblock
25267 #: ../fish/guestfish-commands.pod:109
25268 msgid "(assuming the superblock is in the standard location)."
25269 msgstr ""
25270
25271 # type: textblock
25272 #: ../fish/guestfish-commands.pod:111
25273 msgid ""
25274 "This command requires the external L<hexedit(1)> program.  You can specify "
25275 "another program to use by setting the C<HEXEDITOR> environment variable."
25276 msgstr ""
25277
25278 # type: textblock
25279 #: ../fish/guestfish-commands.pod:115
25280 msgid "See also L</hexdump>."
25281 msgstr ""
25282
25283 # type: =head2
25284 #: ../fish/guestfish-commands.pod:117
25285 msgid "lcd"
25286 msgstr ""
25287
25288 # type: verbatim
25289 #: ../fish/guestfish-commands.pod:119
25290 #, no-wrap
25291 msgid ""
25292 " lcd directory\n"
25293 "\n"
25294 msgstr ""
25295
25296 # type: textblock
25297 #: ../fish/guestfish-commands.pod:121
25298 msgid ""
25299 "Change the local directory, ie. the current directory of guestfish itself."
25300 msgstr ""
25301
25302 # type: textblock
25303 #: ../fish/guestfish-commands.pod:124
25304 msgid "Note that C<!cd> won't do what you might expect."
25305 msgstr ""
25306
25307 # type: =head2
25308 #: ../fish/guestfish-commands.pod:126
25309 msgid "man"
25310 msgstr ""
25311
25312 # type: =head2
25313 #: ../fish/guestfish-commands.pod:128
25314 msgid "manual"
25315 msgstr ""
25316
25317 # type: verbatim
25318 #: ../fish/guestfish-commands.pod:130
25319 #, no-wrap
25320 msgid ""
25321 "  man\n"
25322 "\n"
25323 msgstr ""
25324
25325 # type: textblock
25326 #: ../fish/guestfish-commands.pod:132
25327 msgid "Opens the manual page for guestfish."
25328 msgstr ""
25329
25330 # type: =head2
25331 #: ../fish/guestfish-commands.pod:134
25332 msgid "more"
25333 msgstr ""
25334
25335 # type: =head2
25336 #: ../fish/guestfish-commands.pod:136
25337 msgid "less"
25338 msgstr ""
25339
25340 # type: verbatim
25341 #: ../fish/guestfish-commands.pod:138
25342 #, no-wrap
25343 msgid ""
25344 " more filename\n"
25345 "\n"
25346 msgstr ""
25347
25348 # type: verbatim
25349 #: ../fish/guestfish-commands.pod:140
25350 #, no-wrap
25351 msgid ""
25352 " less filename\n"
25353 "\n"
25354 msgstr ""
25355
25356 # type: textblock
25357 #: ../fish/guestfish-commands.pod:142
25358 msgid "This is used to view a file."
25359 msgstr ""
25360
25361 # type: textblock
25362 #: ../fish/guestfish-commands.pod:144
25363 msgid ""
25364 "The default viewer is C<$PAGER>.  However if you use the alternate command "
25365 "C<less> you will get the C<less> command specifically."
25366 msgstr ""
25367
25368 # type: =head2
25369 #: ../fish/guestfish-commands.pod:147
25370 msgid "reopen"
25371 msgstr ""
25372
25373 # type: verbatim
25374 #: ../fish/guestfish-commands.pod:149
25375 #, no-wrap
25376 msgid ""
25377 "  reopen\n"
25378 "\n"
25379 msgstr ""
25380
25381 # type: textblock
25382 #: ../fish/guestfish-commands.pod:151
25383 msgid ""
25384 "Close and reopen the libguestfs handle.  It is not necessary to use this "
25385 "normally, because the handle is closed properly when guestfish exits.  "
25386 "However this is occasionally useful for testing."
25387 msgstr ""
25388
25389 # type: =head2
25390 #: ../fish/guestfish-commands.pod:155
25391 msgid "sparse"
25392 msgstr ""
25393
25394 # type: verbatim
25395 #: ../fish/guestfish-commands.pod:157
25396 #, no-wrap
25397 msgid ""
25398 " sparse filename size\n"
25399 "\n"
25400 msgstr ""
25401
25402 # type: textblock
25403 #: ../fish/guestfish-commands.pod:159
25404 msgid ""
25405 "This creates an empty sparse file of the given size, and then adds so it can "
25406 "be further examined."
25407 msgstr ""
25408
25409 # type: textblock
25410 #: ../fish/guestfish-commands.pod:162
25411 msgid ""
25412 "In all respects it works the same as the L</alloc> command, except that the "
25413 "image file is allocated sparsely, which means that disk blocks are not "
25414 "assigned to the file until they are needed.  Sparse disk files only use "
25415 "space when written to, but they are slower and there is a danger you could "
25416 "run out of real disk space during a write operation."
25417 msgstr ""
25418
25419 # type: =head2
25420 #: ../fish/guestfish-commands.pod:172
25421 msgid "supported"
25422 msgstr ""
25423
25424 # type: verbatim
25425 #: ../fish/guestfish-commands.pod:174
25426 #, no-wrap
25427 msgid ""
25428 " supported\n"
25429 "\n"
25430 msgstr ""
25431
25432 # type: textblock
25433 #: ../fish/guestfish-commands.pod:176
25434 msgid ""
25435 "This command returns a list of the optional groups known to the daemon, and "
25436 "indicates which ones are supported by this build of the libguestfs appliance."
25437 msgstr ""
25438
25439 # type: textblock
25440 #: ../fish/guestfish-commands.pod:180
25441 msgid "See also L<guestfs(3)/AVAILABILITY>."
25442 msgstr ""
25443
25444 # type: =head2
25445 #: ../fish/guestfish-commands.pod:182
25446 msgid "time"
25447 msgstr ""
25448
25449 # type: verbatim
25450 #: ../fish/guestfish-commands.pod:184
25451 #, no-wrap
25452 msgid ""
25453 " time command args...\n"
25454 "\n"
25455 msgstr ""
25456
25457 # type: textblock
25458 #: ../fish/guestfish-commands.pod:186
25459 msgid ""
25460 "Run the command as usual, but print the elapsed time afterwards.  This can "
25461 "be useful for benchmarking operations."
25462 msgstr ""
25463
25464 # type: textblock
25465 #: ../test-tool/libguestfs-test-tool.pod:5
25466 msgid "libguestfs-test-tool - End user tests for libguestfs"
25467 msgstr ""
25468
25469 # type: verbatim
25470 #: ../test-tool/libguestfs-test-tool.pod:9
25471 #, no-wrap
25472 msgid ""
25473 " libguestfs-test-tool [--options]\n"
25474 "\n"
25475 msgstr ""
25476
25477 # type: textblock
25478 #: ../test-tool/libguestfs-test-tool.pod:13
25479 msgid ""
25480 "libguestfs-test-tool is a test program shipped with libguestfs to end users "
25481 "and developers, to allow them to check basic libguestfs functionality is "
25482 "working.  This is needed because libguestfs occasionally breaks for reasons "
25483 "beyond our control: usually because of changes in the underlying qemu or "
25484 "kernel packages, or the host environment."
25485 msgstr ""
25486
25487 # type: textblock
25488 #: ../test-tool/libguestfs-test-tool.pod:20
25489 msgid "If you suspect a problem in libguestfs, then just run:"
25490 msgstr ""
25491
25492 # type: verbatim
25493 #: ../test-tool/libguestfs-test-tool.pod:22
25494 #, no-wrap
25495 msgid ""
25496 " libguestfs-test-tool\n"
25497 "\n"
25498 msgstr ""
25499
25500 # type: textblock
25501 #: ../test-tool/libguestfs-test-tool.pod:24
25502 msgid "It will print lots of diagnostic messages."
25503 msgstr ""
25504
25505 # type: textblock
25506 #: ../test-tool/libguestfs-test-tool.pod:26
25507 msgid "If it runs to completion successfully, you will see this near the end:"
25508 msgstr ""
25509
25510 # type: verbatim
25511 #: ../test-tool/libguestfs-test-tool.pod:28
25512 #, no-wrap
25513 msgid ""
25514 " ===== TEST FINISHED OK =====\n"
25515 "\n"
25516 msgstr ""
25517
25518 # type: textblock
25519 #: ../test-tool/libguestfs-test-tool.pod:30
25520 msgid "and the test tool will exit with code 0."
25521 msgstr ""
25522
25523 # type: textblock
25524 #: ../test-tool/libguestfs-test-tool.pod:32
25525 msgid ""
25526 "If it fails (and/or exits with non-zero error code), please paste the "
25527 "B<complete, unedited> output of the test tool into a bug report.  More "
25528 "information about reporting bugs can be found on the L<http://libguestfs.org/"
25529 "> website."
25530 msgstr ""
25531
25532 # type: =item
25533 #: ../test-tool/libguestfs-test-tool.pod:41
25534 msgid "I<--help>"
25535 msgstr ""
25536
25537 # type: textblock
25538 #: ../test-tool/libguestfs-test-tool.pod:43
25539 msgid "Display short usage information and exit."
25540 msgstr ""
25541
25542 # type: =item
25543 #: ../test-tool/libguestfs-test-tool.pod:45
25544 msgid "I<--helper /path/to/libguestfs-test-tool-helper>"
25545 msgstr ""
25546
25547 # type: textblock
25548 #: ../test-tool/libguestfs-test-tool.pod:47
25549 msgid ""
25550 "Pass an alternate name for the helper program.  libguestfs-test-tool will "
25551 "normally look in the C<$libexec> directory that was configured when the tool "
25552 "was built."
25553 msgstr ""
25554
25555 # type: =item
25556 #: ../test-tool/libguestfs-test-tool.pod:51
25557 msgid "I<--qemu qemu_binary>"
25558 msgstr ""
25559
25560 # type: textblock
25561 #: ../test-tool/libguestfs-test-tool.pod:53
25562 msgid ""
25563 "If you have downloaded another qemu binary, point this option at the full "
25564 "path of the binary to try it."
25565 msgstr ""
25566
25567 # type: =item
25568 #: ../test-tool/libguestfs-test-tool.pod:56
25569 msgid "I<--qemudir qemu_source_dir>"
25570 msgstr ""
25571
25572 # type: textblock
25573 #: ../test-tool/libguestfs-test-tool.pod:58
25574 msgid ""
25575 "If you have compiled qemu from source, point this option at the source "
25576 "directory to try it."
25577 msgstr ""
25578
25579 # type: =item
25580 #: ../test-tool/libguestfs-test-tool.pod:61
25581 msgid "I<--timeout N>"
25582 msgstr ""
25583
25584 # type: textblock
25585 #: ../test-tool/libguestfs-test-tool.pod:63
25586 msgid ""
25587 "Set the launch timeout to C<N> seconds.  The default is 120 seconds which "
25588 "does not usually need to be adjusted unless your machine is very slow."
25589 msgstr ""
25590
25591 # type: =head1
25592 #: ../test-tool/libguestfs-test-tool.pod:69
25593 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
25594 msgstr ""
25595
25596 # type: textblock
25597 #: ../test-tool/libguestfs-test-tool.pod:71
25598 msgid ""
25599 "If you have compiled another version of qemu from source and would like to "
25600 "try that, then you can use the I<--qemudir> option to point to the qemu "
25601 "source directory."
25602 msgstr ""
25603
25604 # type: textblock
25605 #: ../test-tool/libguestfs-test-tool.pod:75
25606 msgid ""
25607 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
25608 "option to point to the binary."
25609 msgstr ""
25610
25611 # type: textblock
25612 #: ../test-tool/libguestfs-test-tool.pod:78
25613 msgid ""
25614 "When using an alternate qemu with libguestfs, usually you would need to "
25615 "write a qemu wrapper script (see section I<QEMU WRAPPERS> in L<guestfs(3)"
25616 ">).  libguestfs-test-tool writes a temporary qemu wrapper script when you "
25617 "use either of the I<--qemudir> or I<--qemu> options."
25618 msgstr ""
25619
25620 # type: textblock
25621 #: ../test-tool/libguestfs-test-tool.pod:85
25622 msgid ""
25623 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
25624 "I<1> if there was an error."
25625 msgstr ""
25626
25627 # type: =item
25628 #: ../test-tool/libguestfs-test-tool.pod:92
25629 msgid "/usr/libexec/libguestfs-test-tool-helper"
25630 msgstr ""
25631
25632 # type: textblock
25633 #: ../test-tool/libguestfs-test-tool.pod:94
25634 msgid ""
25635 "This helper program is run inside the appliance and provides additional "
25636 "tests."
25637 msgstr ""
25638
25639 # type: =item
25640 #: ../test-tool/libguestfs-test-tool.pod:97
25641 msgid "/usr/bin/mkisofs"
25642 msgstr ""
25643
25644 # type: textblock
25645 #: ../test-tool/libguestfs-test-tool.pod:99
25646 msgid ""
25647 "The C<mkisofs> command is required in order to construct a CD-ROM ISO file "
25648 "which is used as part of the tests."
25649 msgstr ""
25650
25651 # type: textblock
25652 #: ../test-tool/libguestfs-test-tool.pod:106
25653 msgid ""
25654 "For the full list of environment variables which may affect libguestfs, "
25655 "please see the L<guestfs(3)> manual page."
25656 msgstr ""
25657
25658 # type: textblock
25659 #: ../test-tool/libguestfs-test-tool.pod:111
25660 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
25661 msgstr ""
25662
25663 # type: textblock
25664 #: ../test-tool/libguestfs-test-tool.pod:121
25665 msgid "Copyright (C) 2009 Red Hat Inc.  L<http://libguestfs.org/>"
25666 msgstr ""
25667
25668 # type: textblock
25669 #: ../fuse/guestmount.pod:5
25670 msgid ""
25671 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
25672 msgstr ""
25673
25674 # type: verbatim
25675 #: ../fuse/guestmount.pod:9
25676 #, no-wrap
25677 msgid ""
25678 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
25679 "\n"
25680 msgstr ""
25681
25682 # type: verbatim
25683 #: ../fuse/guestmount.pod:11
25684 #, no-wrap
25685 msgid ""
25686 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
25687 "\n"
25688 msgstr ""
25689
25690 # type: verbatim
25691 #: ../fuse/guestmount.pod:13
25692 #, no-wrap
25693 msgid ""
25694 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
25695 "\n"
25696 msgstr ""
25697
25698 # type: textblock
25699 #: ../fuse/guestmount.pod:17
25700 msgid ""
25701 "You must I<not> use C<guestmount> in read-write mode on live virtual "
25702 "machines.  If you do this, you risk disk corruption in the VM."
25703 msgstr ""
25704
25705 # type: textblock
25706 #: ../fuse/guestmount.pod:22
25707 msgid ""
25708 "The guestmount program can be used to mount virtual machine filesystems and "
25709 "other disk images on the host.  It uses libguestfs for access to the guest "
25710 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
25711 "a mountable device."
25712 msgstr ""
25713
25714 # type: textblock
25715 #: ../fuse/guestmount.pod:27
25716 msgid ""
25717 "Along with other options, you have to give at least one device (I<-a> "
25718 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
25719 "option) or use the I<-i> inspection option.  How this works is better "
25720 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
25721 "below."
25722 msgstr ""
25723
25724 # type: textblock
25725 #: ../fuse/guestmount.pod:33
25726 msgid ""
25727 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
25728 "by you, and the filesystem will not be visible to any other users unless you "
25729 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
25730 "the filesystem, use the C<fusermount -u> command."
25731 msgstr ""
25732
25733 # type: textblock
25734 #: ../fuse/guestmount.pod:41
25735 msgid ""
25736 "For a typical Windows guest which has its main filesystem on the first "
25737 "partition:"
25738 msgstr ""
25739
25740 # type: verbatim
25741 #: ../fuse/guestmount.pod:44
25742 #, no-wrap
25743 msgid ""
25744 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
25745 "\n"
25746 msgstr ""
25747
25748 # type: textblock
25749 #: ../fuse/guestmount.pod:46
25750 msgid ""
25751 "For a typical Linux guest which has a /boot filesystem on the first "
25752 "partition, and the root filesystem on a logical volume:"
25753 msgstr ""
25754
25755 # type: verbatim
25756 #: ../fuse/guestmount.pod:49
25757 #, no-wrap
25758 msgid ""
25759 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
25760 "\n"
25761 msgstr ""
25762
25763 # type: textblock
25764 #: ../fuse/guestmount.pod:51
25765 msgid "To get libguestfs to detect guest mountpoints for you:"
25766 msgstr ""
25767
25768 # type: verbatim
25769 #: ../fuse/guestmount.pod:53
25770 #, no-wrap
25771 msgid ""
25772 " guestmount -a guest.img -i --ro /mnt\n"
25773 "\n"
25774 msgstr ""
25775
25776 # type: textblock
25777 #: ../fuse/guestmount.pod:55
25778 msgid "For a libvirt guest called \"Guest\" you could do:"
25779 msgstr ""
25780
25781 # type: verbatim
25782 #: ../fuse/guestmount.pod:57
25783 #, no-wrap
25784 msgid ""
25785 " guestmount -d Guest -i --ro /mnt\n"
25786 "\n"
25787 msgstr ""
25788
25789 # type: textblock
25790 #: ../fuse/guestmount.pod:59
25791 msgid ""
25792 "If you don't know what filesystems are contained in a guest or disk image, "
25793 "use L<virt-list-filesystems(1)> first:"
25794 msgstr ""
25795
25796 # type: verbatim
25797 #: ../fuse/guestmount.pod:62
25798 #, no-wrap
25799 msgid ""
25800 " virt-list-filesystems MyGuest\n"
25801 "\n"
25802 msgstr ""
25803
25804 # type: textblock
25805 #: ../fuse/guestmount.pod:64
25806 msgid ""
25807 "If you want to trace the libguestfs calls but without excessive debugging "
25808 "information, we recommend:"
25809 msgstr ""
25810
25811 # type: verbatim
25812 #: ../fuse/guestmount.pod:67
25813 #, no-wrap
25814 msgid ""
25815 " guestmount [...] --trace /mnt\n"
25816 "\n"
25817 msgstr ""
25818
25819 # type: textblock
25820 #: ../fuse/guestmount.pod:69
25821 msgid "If you want to debug the program, we recommend:"
25822 msgstr ""
25823
25824 # type: verbatim
25825 #: ../fuse/guestmount.pod:71
25826 #, no-wrap
25827 msgid ""
25828 " guestmount [...] --trace --verbose /mnt\n"
25829 "\n"
25830 msgstr ""
25831
25832 # type: textblock
25833 #: ../fuse/guestmount.pod:79
25834 msgid "Add a block device or virtual machine image."
25835 msgstr ""
25836
25837 # type: =item
25838 #: ../fuse/guestmount.pod:96
25839 msgid "B<--dir-cache-timeout N>"
25840 msgstr ""
25841
25842 # type: textblock
25843 #: ../fuse/guestmount.pod:98
25844 msgid ""
25845 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
25846 "seconds.  The readdir cache [actually, there are several semi-independent "
25847 "caches] is populated after a readdir(2) call with the stat and extended "
25848 "attributes of the files in the directory, in anticipation that they will be "
25849 "requested soon after."
25850 msgstr ""
25851
25852 # type: textblock
25853 #: ../fuse/guestmount.pod:104
25854 msgid ""
25855 "There is also a different attribute cache implemented by FUSE (see the FUSE "
25856 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
25857 "requests, only cache existing ones."
25858 msgstr ""
25859
25860 # type: textblock
25861 #: ../fuse/guestmount.pod:122
25862 msgid ""
25863 "If you have untrusted raw-format guest disk images, you should use this "
25864 "option to specify the disk format.  This avoids a possible security problem "
25865 "with malicious guests (CVE-2010-3851).  See also L<guestfs(3)/"
25866 "guestfs_add_drive_opts>."
25867 msgstr ""
25868
25869 # type: =item
25870 #: ../fuse/guestmount.pod:127
25871 msgid "B<--fuse-help>"
25872 msgstr ""
25873
25874 # type: textblock
25875 #: ../fuse/guestmount.pod:129
25876 msgid "Display help on special FUSE options (see I<-o> below)."
25877 msgstr ""
25878
25879 # type: textblock
25880 #: ../fuse/guestmount.pod:133
25881 msgid "Display brief help and exit."
25882 msgstr ""
25883
25884 # type: =item
25885 #: ../fuse/guestmount.pod:146
25886 msgid "B<-m dev[:mnt]> | B<--mount dev[:mnt]>"
25887 msgstr ""
25888
25889 # type: textblock
25890 #: ../fuse/guestmount.pod:148
25891 msgid ""
25892 "Mount the named partition or logical volume on the given mountpoint B<in the "
25893 "guest> (this has nothing to do with mountpoints in the host)."
25894 msgstr ""
25895
25896 # type: textblock
25897 #: ../fuse/guestmount.pod:151
25898 msgid ""
25899 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
25900 "something on C</>."
25901 msgstr ""
25902
25903 # type: textblock
25904 #: ../fuse/guestmount.pod:156
25905 msgid ""
25906 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
25907 "unmounted.  If you specify this option, then we don't attempt to sync the "
25908 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
25909 msgstr ""
25910
25911 # type: =item
25912 #: ../fuse/guestmount.pod:161
25913 msgid "B<-o option> | B<--option option>"
25914 msgstr ""
25915
25916 # type: textblock
25917 #: ../fuse/guestmount.pod:163
25918 msgid "Pass extra options to FUSE."
25919 msgstr ""
25920
25921 # type: textblock
25922 #: ../fuse/guestmount.pod:165
25923 msgid ""
25924 "To get a list of all the extra options supported by FUSE, use the command "
25925 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
25926 "of them are a good idea."
25927 msgstr ""
25928
25929 # type: verbatim
25930 #: ../fuse/guestmount.pod:169
25931 #, no-wrap
25932 msgid ""
25933 " guestmount --fuse-help\n"
25934 "\n"
25935 msgstr ""
25936
25937 # type: textblock
25938 #: ../fuse/guestmount.pod:171
25939 msgid "Some potentially useful FUSE options:"
25940 msgstr ""
25941
25942 # type: =item
25943 #: ../fuse/guestmount.pod:175
25944 msgid "B<-o allow_other>"
25945 msgstr ""
25946
25947 # type: textblock
25948 #: ../fuse/guestmount.pod:177
25949 msgid "Allow other users to see the filesystem."
25950 msgstr ""
25951
25952 # type: =item
25953 #: ../fuse/guestmount.pod:179
25954 msgid "B<-o attr_timeout=N>"
25955 msgstr ""
25956
25957 # type: textblock
25958 #: ../fuse/guestmount.pod:181
25959 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
25960 msgstr ""
25961
25962 # type: =item
25963 #: ../fuse/guestmount.pod:183
25964 msgid "B<-o kernel_cache>"
25965 msgstr ""
25966
25967 # type: textblock
25968 #: ../fuse/guestmount.pod:185
25969 msgid ""
25970 "Allow the kernel to cache files (reduces the number of reads that have to go "
25971 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
25972 "afford the extra memory usage."
25973 msgstr ""
25974
25975 # type: =item
25976 #: ../fuse/guestmount.pod:189
25977 msgid "B<-o uid=N> B<-o gid=N>"
25978 msgstr ""
25979
25980 # type: textblock
25981 #: ../fuse/guestmount.pod:191
25982 msgid ""
25983 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
25984 "the chosen values."
25985 msgstr ""
25986
25987 # type: textblock
25988 #: ../fuse/guestmount.pod:198
25989 msgid ""
25990 "Add devices and mount everything read-only.  Also disallow writes and make "
25991 "the disk appear read-only to FUSE."
25992 msgstr ""
25993
25994 # type: textblock
25995 #: ../fuse/guestmount.pod:201
25996 msgid ""
25997 "This is highly recommended if you are not going to edit the guest disk.  If "
25998 "the guest is running and this option is I<not> supplied, then there is a "
25999 "strong risk of disk corruption in the guest.  We try to prevent this from "
26000 "happening, but it is not always possible."
26001 msgstr ""
26002
26003 # type: textblock
26004 #: ../fuse/guestmount.pod:206
26005 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
26006 msgstr ""
26007
26008 # type: textblock
26009 #: ../fuse/guestmount.pod:210
26010 msgid "Enable SELinux support for the guest."
26011 msgstr ""
26012
26013 # type: textblock
26014 #: ../fuse/guestmount.pod:214
26015 msgid "Enable verbose messages from underlying libguestfs."
26016 msgstr ""
26017
26018 # type: textblock
26019 #: ../fuse/guestmount.pod:218
26020 msgid "Display the program version and exit."
26021 msgstr ""
26022
26023 # type: textblock
26024 #: ../fuse/guestmount.pod:222
26025 msgid ""
26026 "This option does nothing at the moment.  See L<guestfish(1)/OPENING DISKS "
26027 "FOR READ AND WRITE>."
26028 msgstr ""
26029
26030 # type: =item
26031 #: ../fuse/guestmount.pod:225
26032 msgid "B<-x> | B<--trace>"
26033 msgstr ""
26034
26035 # type: textblock
26036 #: ../fuse/guestmount.pod:227
26037 msgid "Trace libguestfs calls."
26038 msgstr ""
26039
26040 # type: textblock
26041 #: ../fuse/guestmount.pod:229
26042 msgid "This also stops the daemon from forking into the background."
26043 msgstr ""
26044
26045 # type: textblock
26046 #: ../fuse/guestmount.pod:235
26047 msgid ""
26048 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
26049 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
26050 "net/>."
26051 msgstr ""
26052
26053 # type: textblock
26054 #: ../tools/virt-edit.pl:34
26055 msgid "virt-edit - Edit a file in a virtual machine"
26056 msgstr ""
26057
26058 # type: verbatim
26059 #: ../tools/virt-edit.pl:38
26060 #, no-wrap
26061 msgid ""
26062 " virt-edit [--options] domname file\n"
26063 "\n"
26064 msgstr ""
26065
26066 # type: verbatim
26067 #: ../tools/virt-edit.pl:40
26068 #, no-wrap
26069 msgid ""
26070 " virt-edit [--options] disk.img [disk.img ...] file\n"
26071 "\n"
26072 msgstr ""
26073
26074 # type: verbatim
26075 #: ../tools/virt-edit.pl:42
26076 #, no-wrap
26077 msgid ""
26078 " virt-edit [domname|disk.img] file -e 'expr'\n"
26079 "\n"
26080 msgstr ""
26081
26082 # type: textblock
26083 #: ../tools/virt-edit.pl:46
26084 msgid ""
26085 "You must I<not> use C<virt-edit> on live virtual machines.  If you do this, "
26086 "you risk disk corruption in the VM.  C<virt-edit> tries to stop you from "
26087 "doing this, but doesn't catch all cases."
26088 msgstr ""
26089
26090 # type: textblock
26091 #: ../tools/virt-edit.pl:52
26092 msgid ""
26093 "C<virt-edit> is a command line tool to edit C<file> where C<file> exists in "
26094 "the named virtual machine (or disk image)."
26095 msgstr ""
26096
26097 # type: textblock
26098 #: ../tools/virt-edit.pl:55
26099 msgid ""
26100 "If you want to just view a file, use L<virt-cat(1)>.  For more complex cases "
26101 "you should look at the L<guestfish(1)> tool."
26102 msgstr ""
26103
26104 # type: textblock
26105 #: ../tools/virt-edit.pl:60
26106 msgid "Edit the named files interactively:"
26107 msgstr ""
26108
26109 # type: verbatim
26110 #: ../tools/virt-edit.pl:62
26111 #, no-wrap
26112 msgid ""
26113 " virt-edit mydomain /boot/grub/grub.conf\n"
26114 "\n"
26115 msgstr ""
26116
26117 # type: verbatim
26118 #: ../tools/virt-edit.pl:64
26119 #, no-wrap
26120 msgid ""
26121 " virt-edit mydomain /etc/passwd\n"
26122 "\n"
26123 msgstr ""
26124
26125 # type: textblock
26126 #: ../tools/virt-edit.pl:66
26127 msgid ""
26128 "You can also edit files non-interactively (see L</NON-INTERACTIVE EDITING> "
26129 "below).  To change the init default level to 5:"
26130 msgstr ""
26131
26132 # type: verbatim
26133 #: ../tools/virt-edit.pl:70
26134 #, no-wrap
26135 msgid ""
26136 " virt-edit mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
26137 "\n"
26138 msgstr ""
26139
26140 # type: textblock
26141 #: ../tools/virt-edit.pl:82 ../tools/virt-win-reg.pl:181
26142 #: ../tools/virt-df.pl:81 ../tools/virt-ls.pl:88
26143 #: ../tools/virt-list-filesystems.pl:60 ../tools/virt-tar.pl:108
26144 #: ../tools/virt-rescue.pl:113 ../tools/virt-make-fs.pl:163
26145 #: ../tools/virt-list-partitions.pl:61
26146 msgid "Display brief help."
26147 msgstr ""
26148
26149 # type: =item
26150 #: ../tools/virt-edit.pl:88 ../tools/virt-win-reg.pl:187
26151 #: ../tools/virt-df.pl:87 ../tools/virt-ls.pl:94 ../tools/virt-resize.pl:273
26152 #: ../tools/virt-list-filesystems.pl:66 ../tools/virt-tar.pl:114
26153 #: ../tools/virt-rescue.pl:119 ../tools/virt-make-fs.pl:169
26154 #: ../tools/virt-list-partitions.pl:67
26155 msgid "B<--version>"
26156 msgstr ""
26157
26158 # type: textblock
26159 #: ../tools/virt-edit.pl:90 ../tools/virt-win-reg.pl:189
26160 #: ../tools/virt-df.pl:89 ../tools/virt-ls.pl:96 ../tools/virt-resize.pl:275
26161 #: ../tools/virt-list-filesystems.pl:68 ../tools/virt-tar.pl:116
26162 #: ../tools/virt-rescue.pl:121 ../tools/virt-make-fs.pl:171
26163 #: ../tools/virt-list-partitions.pl:69
26164 msgid "Display version number and exit."
26165 msgstr ""
26166
26167 # type: =item
26168 #: ../tools/virt-edit.pl:96
26169 msgid "B<--backup extension> | B<-b extension>"
26170 msgstr ""
26171
26172 # type: textblock
26173 #: ../tools/virt-edit.pl:98
26174 msgid ""
26175 "Create a backup of the original file I<in the guest disk image>.  The backup "
26176 "has the original filename with C<extension> added."
26177 msgstr ""
26178
26179 # type: textblock
26180 #: ../tools/virt-edit.pl:101
26181 msgid ""
26182 "Usually the first character of C<extension> would be a dot C<.> so you would "
26183 "write:"
26184 msgstr ""
26185
26186 # type: verbatim
26187 #: ../tools/virt-edit.pl:104
26188 #, no-wrap
26189 msgid ""
26190 " virt-edit -b .orig [etc]\n"
26191 "\n"
26192 msgstr ""
26193
26194 # type: textblock
26195 #: ../tools/virt-edit.pl:106
26196 msgid "By default, no backup file is made."
26197 msgstr ""
26198
26199 # type: =item
26200 #: ../tools/virt-edit.pl:112 ../tools/virt-win-reg.pl:203
26201 #: ../tools/virt-df.pl:95 ../tools/virt-ls.pl:102
26202 #: ../tools/virt-list-filesystems.pl:74 ../tools/virt-tar.pl:122
26203 #: ../tools/virt-rescue.pl:135 ../tools/virt-list-partitions.pl:75
26204 msgid "B<--connect URI> | B<-c URI>"
26205 msgstr ""
26206
26207 # type: textblock
26208 #: ../tools/virt-edit.pl:114 ../tools/virt-win-reg.pl:205
26209 #: ../tools/virt-df.pl:97 ../tools/virt-ls.pl:104
26210 #: ../tools/virt-list-filesystems.pl:76 ../tools/virt-tar.pl:124
26211 #: ../tools/virt-rescue.pl:137 ../tools/virt-list-partitions.pl:77
26212 msgid ""
26213 "If using libvirt, connect to the given I<URI>.  If omitted, then we connect "
26214 "to the default libvirt hypervisor."
26215 msgstr ""
26216
26217 # type: textblock
26218 #: ../tools/virt-edit.pl:117 ../tools/virt-win-reg.pl:208
26219 #: ../tools/virt-df.pl:100 ../tools/virt-ls.pl:107
26220 #: ../tools/virt-list-filesystems.pl:79 ../tools/virt-tar.pl:127
26221 #: ../tools/virt-rescue.pl:140 ../tools/virt-list-partitions.pl:80
26222 msgid ""
26223 "If you specify guest block devices directly, then libvirt is not used at all."
26224 msgstr ""
26225
26226 # type: =item
26227 #: ../tools/virt-edit.pl:124 ../tools/virt-win-reg.pl:215
26228 #: ../tools/virt-df.pl:117 ../tools/virt-ls.pl:114 ../tools/virt-resize.pl:523
26229 #: ../tools/virt-list-filesystems.pl:86 ../tools/virt-tar.pl:134
26230 #: ../tools/virt-rescue.pl:147 ../tools/virt-list-partitions.pl:87
26231 msgid "B<--format> raw"
26232 msgstr ""
26233
26234 # type: textblock
26235 #: ../tools/virt-edit.pl:126 ../tools/virt-win-reg.pl:217
26236 #: ../tools/virt-df.pl:119 ../tools/virt-ls.pl:116
26237 #: ../tools/virt-list-filesystems.pl:88 ../tools/virt-tar.pl:136
26238 #: ../tools/virt-rescue.pl:149 ../tools/virt-list-partitions.pl:89
26239 msgid ""
26240 "Specify the format of disk images given on the command line.  If this is "
26241 "omitted then the format is autodetected from the content of the disk image."
26242 msgstr ""
26243
26244 # type: textblock
26245 #: ../tools/virt-edit.pl:130 ../tools/virt-win-reg.pl:221
26246 #: ../tools/virt-df.pl:123 ../tools/virt-ls.pl:120
26247 #: ../tools/virt-list-filesystems.pl:92 ../tools/virt-tar.pl:140
26248 #: ../tools/virt-rescue.pl:153 ../tools/virt-list-partitions.pl:93
26249 msgid ""
26250 "If disk images are requested from libvirt, then this program asks libvirt "
26251 "for this information.  In this case, the value of the format parameter is "
26252 "ignored."
26253 msgstr ""
26254
26255 # type: textblock
26256 #: ../tools/virt-edit.pl:134 ../tools/virt-win-reg.pl:225
26257 #: ../tools/virt-df.pl:127 ../tools/virt-ls.pl:124 ../tools/virt-resize.pl:528
26258 #: ../tools/virt-resize.pl:543 ../tools/virt-list-filesystems.pl:96
26259 #: ../tools/virt-tar.pl:144 ../tools/virt-rescue.pl:157
26260 #: ../tools/virt-list-partitions.pl:97
26261 msgid ""
26262 "If working with untrusted raw-format guest disk images, you should ensure "
26263 "the format is always specified."
26264 msgstr ""
26265
26266 # type: =item
26267 #: ../tools/virt-edit.pl:141
26268 msgid "B<--expr EXPR> | B<-e EXPR>"
26269 msgstr ""
26270
26271 # type: textblock
26272 #: ../tools/virt-edit.pl:143
26273 msgid ""
26274 "Instead of launching the external editor, non-interactively apply the Perl "
26275 "expression C<EXPR> to each line in the file.  See L</NON-INTERACTIVE "
26276 "EDITING> below."
26277 msgstr ""
26278
26279 # type: textblock
26280 #: ../tools/virt-edit.pl:147
26281 msgid ""
26282 "Be careful to properly quote the expression to prevent it from being altered "
26283 "by the shell."
26284 msgstr ""
26285
26286 # type: =head1
26287 #: ../tools/virt-edit.pl:268
26288 msgid "NON-INTERACTIVE EDITING"
26289 msgstr ""
26290
26291 # type: textblock
26292 #: ../tools/virt-edit.pl:270
26293 msgid ""
26294 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
26295 "administrator can interactively edit the file."
26296 msgstr ""
26297
26298 # type: textblock
26299 #: ../tools/virt-edit.pl:273
26300 msgid ""
26301 "There are two ways also to use C<virt-edit> from scripts in order to make "
26302 "automated edits to files.  (Note that although you I<can> use C<virt-edit> "
26303 "like this, it's less error-prone to write scripts directly using the "
26304 "libguestfs API and Augeas for configuration file editing.)"
26305 msgstr ""
26306
26307 # type: textblock
26308 #: ../tools/virt-edit.pl:279
26309 msgid ""
26310 "The first method is to temporarily set C<$EDITOR> to any script or program "
26311 "you want to run.  The script is invoked as C<$EDITOR tmpfile> and it should "
26312 "update C<tmpfile> in place however it likes."
26313 msgstr ""
26314
26315 # type: textblock
26316 #: ../tools/virt-edit.pl:283
26317 msgid ""
26318 "The second method is to use the C<-e> parameter of C<virt-edit> to run a "
26319 "short Perl snippet in the style of L<sed(1)>.  For example to replace all "
26320 "instances of C<foo> with C<bar> in a file:"
26321 msgstr ""
26322
26323 # type: verbatim
26324 #: ../tools/virt-edit.pl:287
26325 #, no-wrap
26326 msgid ""
26327 " virt-edit domname filename -e 's/foo/bar/'\n"
26328 "\n"
26329 msgstr ""
26330
26331 # type: textblock
26332 #: ../tools/virt-edit.pl:289
26333 msgid ""
26334 "The full power of Perl regular expressions can be used (see L<perlre(1)>).  "
26335 "For example to delete root's password you could do:"
26336 msgstr ""
26337
26338 # type: verbatim
26339 #: ../tools/virt-edit.pl:292
26340 #, no-wrap
26341 msgid ""
26342 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
26343 "\n"
26344 msgstr ""
26345
26346 # type: textblock
26347 #: ../tools/virt-edit.pl:294
26348 msgid ""
26349 "What really happens is that the snippet is evaluated as a Perl expression "
26350 "for each line of the file.  The line, including the final C<\\n>, is passed "
26351 "in C<$_> and the expression should update C<$_> or leave it unchanged."
26352 msgstr ""
26353
26354 # type: textblock
26355 #: ../tools/virt-edit.pl:299
26356 msgid ""
26357 "To delete a line, set C<$_> to the empty string.  For example, to delete the "
26358 "C<apache> user account from the password file you can do:"
26359 msgstr ""
26360
26361 # type: verbatim
26362 #: ../tools/virt-edit.pl:302
26363 #, no-wrap
26364 msgid ""
26365 " virt-edit mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
26366 "\n"
26367 msgstr ""
26368
26369 # type: textblock
26370 #: ../tools/virt-edit.pl:304
26371 msgid ""
26372 "To insert a line, prepend or append it to C<$_>.  However appending lines to "
26373 "the end of the file is rather difficult this way since there is no concept "
26374 "of \"last line of the file\" - your expression just doesn't get called "
26375 "again.  You might want to use the first method (setting C<$EDITOR>) if you "
26376 "want to do this."
26377 msgstr ""
26378
26379 # type: textblock
26380 #: ../tools/virt-edit.pl:310
26381 msgid ""
26382 "The variable C<$lineno> contains the current line number.  As is "
26383 "traditional, the first line in the file is number C<1>."
26384 msgstr ""
26385
26386 # type: textblock
26387 #: ../tools/virt-edit.pl:313
26388 msgid ""
26389 "The return value from the expression is ignored, but the expression may call "
26390 "C<die> in order to abort the whole program, leaving the original file "
26391 "untouched."
26392 msgstr ""
26393
26394 # type: textblock
26395 #: ../tools/virt-edit.pl:317
26396 msgid ""
26397 "Remember when matching the end of a line that C<$_> may contain the final C<"
26398 "\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
26399 "newline then neither of these.  Thus to match or substitute some text at the "
26400 "end of a line, use this regular expression:"
26401 msgstr ""
26402
26403 # type: verbatim
26404 #: ../tools/virt-edit.pl:322
26405 #, no-wrap
26406 msgid ""
26407 " /some text(\\r?\\n)?$/\n"
26408 "\n"
26409 msgstr ""
26410
26411 # type: textblock
26412 #: ../tools/virt-edit.pl:324
26413 msgid ""
26414 "Alternately, use the perl C<chomp> function, being careful not to chomp C<"
26415 "$_> itself (since that would remove all newlines from the file):"
26416 msgstr ""
26417
26418 # type: verbatim
26419 #: ../tools/virt-edit.pl:328
26420 #, no-wrap
26421 msgid ""
26422 " my $m = $_; chomp $m; $m =~ /some text$/\n"
26423 "\n"
26424 msgstr ""
26425
26426 # type: =item
26427 #: ../tools/virt-edit.pl:334
26428 msgid "C<EDITOR>"
26429 msgstr ""
26430
26431 # type: textblock
26432 #: ../tools/virt-edit.pl:336
26433 msgid ""
26434 "If set, this string is used as the editor.  It may contain arguments, eg. C<"
26435 "\"emacs -nw\">"
26436 msgstr ""
26437
26438 # type: textblock
26439 #: ../tools/virt-edit.pl:339
26440 msgid "If not set, C<vi> is used."
26441 msgstr ""
26442
26443 # type: =head2
26444 #: ../tools/virt-edit.pl:343 ../tools/virt-win-reg.pl:141
26445 #: ../tools/virt-win-reg.pl:477 ../tools/virt-df.pl:633
26446 #: ../tools/virt-ls.pl:225 ../tools/virt-resize.pl:1479
26447 #: ../tools/virt-list-filesystems.pl:179 ../tools/virt-tar.pl:274
26448 #: ../tools/virt-rescue.pl:260 ../tools/virt-make-fs.pl:527
26449 #: ../tools/virt-list-partitions.pl:247
26450 msgid "SHELL QUOTING"
26451 msgstr ""
26452
26453 # type: textblock
26454 #: ../tools/virt-edit.pl:345 ../tools/virt-win-reg.pl:479
26455 #: ../tools/virt-df.pl:635 ../tools/virt-ls.pl:227
26456 #: ../tools/virt-resize.pl:1481 ../tools/virt-list-filesystems.pl:181
26457 #: ../tools/virt-tar.pl:276 ../tools/virt-rescue.pl:262
26458 #: ../tools/virt-make-fs.pl:529 ../tools/virt-list-partitions.pl:249
26459 msgid ""
26460 "Libvirt guest names can contain arbitrary characters, some of which have "
26461 "meaning to the shell such as C<#> and space.  You may need to quote or "
26462 "escape these characters on the command line.  See the shell manual page L<sh"
26463 "(1)> for details."
26464 msgstr ""
26465
26466 # type: textblock
26467 #: ../tools/virt-edit.pl:352
26468 msgid ""
26469 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::"
26470 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>, L<perl(1)>, "
26471 "L<perlre(1)>."
26472 msgstr ""
26473
26474 # type: =head1
26475 #: ../tools/virt-edit.pl:362 ../tools/virt-win-reg.pl:510
26476 #: ../tools/virt-df.pl:649 ../tools/virt-ls.pl:243
26477 #: ../tools/virt-resize.pl:1508 ../tools/virt-list-filesystems.pl:198
26478 #: ../tools/virt-tar.pl:292 ../tools/virt-rescue.pl:277
26479 #: ../tools/virt-make-fs.pl:559 ../tools/virt-list-partitions.pl:265
26480 msgid "AUTHOR"
26481 msgstr ""
26482
26483 # type: textblock
26484 #: ../tools/virt-edit.pl:364 ../tools/virt-win-reg.pl:512
26485 #: ../tools/virt-df.pl:651 ../tools/virt-ls.pl:245
26486 #: ../tools/virt-resize.pl:1510 ../tools/virt-list-filesystems.pl:200
26487 #: ../tools/virt-tar.pl:294 ../tools/virt-rescue.pl:279
26488 #: ../tools/virt-make-fs.pl:561 ../tools/virt-list-partitions.pl:267
26489 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
26490 msgstr ""
26491
26492 # type: textblock
26493 #: ../tools/virt-edit.pl:368 ../tools/virt-df.pl:655
26494 #: ../tools/virt-rescue.pl:283 ../tools/virt-list-partitions.pl:271
26495 msgid "Copyright (C) 2009-2010 Red Hat Inc."
26496 msgstr ""
26497
26498 # type: textblock
26499 #: ../tools/virt-win-reg.pl:37
26500 msgid ""
26501 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
26502 msgstr ""
26503
26504 # type: verbatim
26505 #: ../tools/virt-win-reg.pl:41
26506 #, no-wrap
26507 msgid ""
26508 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
26509 "\n"
26510 msgstr ""
26511
26512 # type: verbatim
26513 #: ../tools/virt-win-reg.pl:43
26514 #, no-wrap
26515 msgid ""
26516 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
26517 "\n"
26518 msgstr ""
26519
26520 # type: verbatim
26521 #: ../tools/virt-win-reg.pl:45
26522 #, no-wrap
26523 msgid ""
26524 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
26525 "\n"
26526 msgstr ""
26527
26528 # type: verbatim
26529 #: ../tools/virt-win-reg.pl:47
26530 #, no-wrap
26531 msgid ""
26532 " virt-win-reg --merge domname [input.reg ...]\n"
26533 "\n"
26534 msgstr ""
26535
26536 # type: verbatim
26537 #: ../tools/virt-win-reg.pl:49
26538 #, no-wrap
26539 msgid ""
26540 " virt-win-reg [--options] disk.img ... # instead of domname\n"
26541 "\n"
26542 msgstr ""
26543
26544 # type: textblock
26545 #: ../tools/virt-win-reg.pl:53
26546 msgid ""
26547 "You must I<not> use C<virt-win-reg> with the C<--merge> option on live "
26548 "virtual machines.  If you do this, you I<will> get irreversible disk "
26549 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
26550 "but doesn't catch all cases."
26551 msgstr ""
26552
26553 # type: textblock
26554 #: ../tools/virt-win-reg.pl:58
26555 msgid ""
26556 "Modifying the Windows Registry is an inherently risky operation.  The format "
26557 "is deliberately obscure and undocumented, and Registry changes can leave the "
26558 "system unbootable.  Therefore when using the C<--merge> option, make sure "
26559 "you have a reliable backup first."
26560 msgstr ""
26561
26562 # type: textblock
26563 #: ../tools/virt-win-reg.pl:65
26564 msgid ""
26565 "This program can export and merge Windows Registry entries from a Windows "
26566 "guest."
26567 msgstr ""
26568
26569 # type: textblock
26570 #: ../tools/virt-win-reg.pl:68
26571 msgid ""
26572 "The first parameter is the libvirt guest name or the raw disk image of a "
26573 "Windows guest."
26574 msgstr ""
26575
26576 # type: textblock
26577 #: ../tools/virt-win-reg.pl:71
26578 msgid ""
26579 "If C<--merge> is I<not> specified, then the chosen registry key is displayed/"
26580 "exported (recursively).  For example:"
26581 msgstr ""
26582
26583 # type: verbatim
26584 #: ../tools/virt-win-reg.pl:74
26585 #, no-wrap
26586 msgid ""
26587 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
26588 "\n"
26589 msgstr ""
26590
26591 # type: textblock
26592 #: ../tools/virt-win-reg.pl:76
26593 msgid ""
26594 "You can also display single values from within registry keys, for example:"
26595 msgstr ""
26596
26597 # type: verbatim
26598 #: ../tools/virt-win-reg.pl:79
26599 #, no-wrap
26600 msgid ""
26601 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
26602 " $ virt-win-reg Windows7 $cvkey ProductName\n"
26603 " Windows 7 Enterprise\n"
26604 "\n"
26605 msgstr ""
26606
26607 # type: textblock
26608 #: ../tools/virt-win-reg.pl:83
26609 msgid ""
26610 "With C<--merge>, you can merge a textual regedit file into the Windows "
26611 "Registry:"
26612 msgstr ""
26613
26614 # type: verbatim
26615 #: ../tools/virt-win-reg.pl:86
26616 #, no-wrap
26617 msgid ""
26618 " $ virt-win-reg --merge Windows7 changes.reg\n"
26619 "\n"
26620 msgstr ""
26621
26622 # type: =head2
26623 #: ../tools/virt-win-reg.pl:88
26624 msgid "SUPPORTED SYSTEMS"
26625 msgstr ""
26626
26627 # type: textblock
26628 #: ../tools/virt-win-reg.pl:90
26629 msgid ""
26630 "The program currently supports Windows NT-derived guests starting with "
26631 "Windows XP through to at least Windows 7."
26632 msgstr ""
26633
26634 # type: textblock
26635 #: ../tools/virt-win-reg.pl:93
26636 msgid ""
26637 "Registry support is done for C<HKEY_LOCAL_MACHINE\\SAM>, C<HKEY_LOCAL_MACHINE"
26638 "\\SECURITY>, C<HKEY_LOCAL_MACHINE\\SOFTWARE>, C<HKEY_LOCAL_MACHINE\\SYSTEM> "
26639 "and C<HKEY_USERS\\.DEFAULT>."
26640 msgstr ""
26641
26642 # type: textblock
26643 #: ../tools/virt-win-reg.pl:97
26644 msgid ""
26645 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
26646 "C<HKEY_USERS>."
26647 msgstr ""
26648
26649 # type: textblock
26650 #: ../tools/virt-win-reg.pl:100
26651 msgid ""
26652 "C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are B<not> supported at this "
26653 "time."
26654 msgstr ""
26655
26656 # type: =head2
26657 #: ../tools/virt-win-reg.pl:103
26658 msgid "NOTE"
26659 msgstr ""
26660
26661 # type: textblock
26662 #: ../tools/virt-win-reg.pl:105
26663 msgid ""
26664 "This program is only meant for simple access to the registry.  If you want "
26665 "to do complicated things with the registry, we suggest you download the "
26666 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
26667 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
26668 "L<hivexregedit(1)>."
26669 msgstr ""
26670
26671 # type: =head2
26672 #: ../tools/virt-win-reg.pl:111
26673 msgid "ENCODING"
26674 msgstr ""
26675
26676 # type: textblock
26677 #: ../tools/virt-win-reg.pl:113
26678 msgid ""
26679 "C<virt-win-reg> expects that regedit files have already been reencoded in "
26680 "the local encoding.  Usually on Linux hosts, this means UTF-8 with Unix-"
26681 "style line endings.  Since Windows regedit files are often in UTF-16LE with "
26682 "Windows-style line endings, you may need to reencode the whole file before "
26683 "or after processing."
26684 msgstr ""
26685
26686 # type: textblock
26687 #: ../tools/virt-win-reg.pl:119
26688 msgid ""
26689 "To reencode a file from Windows format to Linux (before processing it with "
26690 "the C<--merge> option), you would do something like this:"
26691 msgstr ""
26692
26693 # type: verbatim
26694 #: ../tools/virt-win-reg.pl:122
26695 #, no-wrap
26696 msgid ""
26697 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
26698 "\n"
26699 msgstr ""
26700
26701 # type: textblock
26702 #: ../tools/virt-win-reg.pl:124
26703 msgid ""
26704 "To go in the opposite direction, after exporting and before sending the file "
26705 "to a Windows user, do something like this:"
26706 msgstr ""
26707
26708 # type: verbatim
26709 #: ../tools/virt-win-reg.pl:127
26710 #, no-wrap
26711 msgid ""
26712 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
26713 "\n"
26714 msgstr ""
26715
26716 # type: textblock
26717 #: ../tools/virt-win-reg.pl:129
26718 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
26719 msgstr ""
26720
26721 # type: textblock
26722 #: ../tools/virt-win-reg.pl:131
26723 msgid ""
26724 "If you are unsure about the current encoding, use the L<file(1)> command.  "
26725 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
26726 "style (CRLF) line endings, like this:"
26727 msgstr ""
26728
26729 # type: verbatim
26730 #: ../tools/virt-win-reg.pl:135
26731 #, no-wrap
26732 msgid ""
26733 " $ file software.reg\n"
26734 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
26735 " with CRLF line terminators\n"
26736 "\n"
26737 msgstr ""
26738
26739 # type: textblock
26740 #: ../tools/virt-win-reg.pl:139
26741 msgid "This file would need conversion before you could C<--merge> it."
26742 msgstr ""
26743
26744 # type: textblock
26745 #: ../tools/virt-win-reg.pl:143
26746 msgid ""
26747 "Be careful when passing parameters containing C<\\> (backslash) in the "
26748 "shell.  Usually you will have to use 'single quotes' or double backslashes "
26749 "(but not both) to protect them from the shell."
26750 msgstr ""
26751
26752 # type: textblock
26753 #: ../tools/virt-win-reg.pl:147
26754 msgid "Paths and value names are case-insensitive."
26755 msgstr ""
26756
26757 # type: =head2
26758 #: ../tools/virt-win-reg.pl:149
26759 msgid "CurrentControlSet etc."
26760 msgstr ""
26761
26762 # type: textblock
26763 #: ../tools/virt-win-reg.pl:151
26764 msgid ""
26765 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
26766 "Registry at the level of the hive file, and therefore you cannot modify "
26767 "these."
26768 msgstr ""
26769
26770 # type: textblock
26771 #: ../tools/virt-win-reg.pl:155
26772 msgid ""
26773 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
26774 "circumstances it might refer to another control set.  The way to find out is "
26775 "to look at the C<HKLM\\SYSTEM\\Select> key:"
26776 msgstr ""
26777
26778 # type: verbatim
26779 #: ../tools/virt-win-reg.pl:159
26780 #, no-wrap
26781 msgid ""
26782 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
26783 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
26784 " \"Current\"=dword:00000001\n"
26785 " \"Default\"=dword:00000001\n"
26786 " \"Failed\"=dword:00000000\n"
26787 " \"LastKnownGood\"=dword:00000002\n"
26788 "\n"
26789 msgstr ""
26790
26791 # type: textblock
26792 #: ../tools/virt-win-reg.pl:166
26793 msgid "\"Current\" is the one which Windows will choose when it boots."
26794 msgstr ""
26795
26796 # type: textblock
26797 #: ../tools/virt-win-reg.pl:168
26798 msgid ""
26799 "Similarly, other C<Current...> keys in the path may need to be replaced."
26800 msgstr ""
26801
26802 # type: =item
26803 #: ../tools/virt-win-reg.pl:195 ../tools/virt-make-fs.pl:177
26804 msgid "B<--debug>"
26805 msgstr ""
26806
26807 # type: textblock
26808 #: ../tools/virt-win-reg.pl:197 ../tools/virt-resize.pl:501
26809 msgid "Enable debugging messages."
26810 msgstr ""
26811
26812 # type: =item
26813 #: ../tools/virt-win-reg.pl:232
26814 msgid "B<--merge>"
26815 msgstr ""
26816
26817 # type: textblock
26818 #: ../tools/virt-win-reg.pl:234
26819 msgid ""
26820 "In merge mode, this merges a textual regedit file into the Windows Registry "
26821 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
26822 "displays or exports Registry entries instead."
26823 msgstr ""
26824
26825 # type: textblock
26826 #: ../tools/virt-win-reg.pl:238
26827 msgid ""
26828 "Note that C<--merge> is I<unsafe> to use on live virtual machines, and will "
26829 "result in disk corruption.  However exporting (without this flag)  is always "
26830 "safe."
26831 msgstr ""
26832
26833 # type: =item
26834 #: ../tools/virt-win-reg.pl:246
26835 msgid "B<--encoding> UTF-16LE|ASCII"
26836 msgstr ""
26837
26838 # type: textblock
26839 #: ../tools/virt-win-reg.pl:248
26840 msgid ""
26841 "When merging (only), you may need to specify the encoding for strings to be "
26842 "used in the hive file.  This is explained in detail in L<Win::Hivex::Regedit"
26843 "(3)/ENCODING STRINGS>."
26844 msgstr ""
26845
26846 # type: textblock
26847 #: ../tools/virt-win-reg.pl:252
26848 msgid ""
26849 "The default is to use UTF-16LE, which should work with recent versions of "
26850 "Windows."
26851 msgstr ""
26852
26853 # type: textblock
26854 #: ../tools/virt-win-reg.pl:486
26855 msgid ""
26856 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
26857 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
26858 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
26859 msgstr ""
26860
26861 # type: textblock
26862 #: ../tools/virt-win-reg.pl:501 ../tools/virt-make-fs.pl:550
26863 msgid ""
26864 "When reporting bugs, please enable debugging and capture the I<complete> "
26865 "output:"
26866 msgstr ""
26867
26868 # type: verbatim
26869 #: ../tools/virt-win-reg.pl:504
26870 #, no-wrap
26871 msgid ""
26872 " export LIBGUESTFS_DEBUG=1\n"
26873 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
26874 "\n"
26875 msgstr ""
26876
26877 # type: textblock
26878 #: ../tools/virt-win-reg.pl:507
26879 msgid ""
26880 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."
26881 "redhat.com/>"
26882 msgstr ""
26883
26884 # type: textblock
26885 #: ../tools/virt-win-reg.pl:516 ../tools/virt-resize.pl:1514
26886 #: ../tools/virt-make-fs.pl:565
26887 msgid "Copyright (C) 2010 Red Hat Inc."
26888 msgstr ""
26889
26890 # type: textblock
26891 #: ../tools/virt-df.pl:36
26892 msgid "virt-df - Display free space on virtual filesystems"
26893 msgstr ""
26894
26895 # type: verbatim
26896 #: ../tools/virt-df.pl:40
26897 #, no-wrap
26898 msgid ""
26899 " virt-df [--options]\n"
26900 "\n"
26901 msgstr ""
26902
26903 # type: verbatim
26904 #: ../tools/virt-df.pl:42
26905 #, no-wrap
26906 msgid ""
26907 " virt-df [--options] domname\n"
26908 "\n"
26909 msgstr ""
26910
26911 # type: verbatim
26912 #: ../tools/virt-df.pl:44
26913 #, no-wrap
26914 msgid ""
26915 " virt-df [--options] disk.img [disk.img ...]\n"
26916 "\n"
26917 msgstr ""
26918
26919 # type: textblock
26920 #: ../tools/virt-df.pl:48
26921 msgid ""
26922 "C<virt-df> is a command line tool to display free space on virtual machine "
26923 "filesystems.  Unlike other tools, it doesn't just display the amount of "
26924 "space allocated to a virtual machine, but can look inside the virtual "
26925 "machine to see how much space is really being used."
26926 msgstr ""
26927
26928 # type: textblock
26929 #: ../tools/virt-df.pl:53
26930 msgid ""
26931 "It is like the L<df(1)> command, but for virtual machines, except that it "
26932 "also works for Windows virtual machines."
26933 msgstr ""
26934
26935 # type: textblock
26936 #: ../tools/virt-df.pl:56
26937 msgid ""
26938 "If used without any arguments, C<virt-df> checks with libvirt to get a list "
26939 "of all active and inactive guests, and performs a C<df>-type operation on "
26940 "each one in turn, printing out the results."
26941 msgstr ""
26942
26943 # type: textblock
26944 #: ../tools/virt-df.pl:60
26945 msgid ""
26946 "If used with any argument(s), C<virt-df> performs a C<df>-type operation on "
26947 "either the single named libvirt domain, or on the disk image(s) listed on "
26948 "the command line (which must all belong to a single VM).  In this mode (with "
26949 "arguments), C<virt-df> will I<only work for a single guest>.  If you want to "
26950 "run on multiple guests, then you have to invoke C<virt-df> multiple times."
26951 msgstr ""
26952
26953 # type: textblock
26954 #: ../tools/virt-df.pl:67
26955 msgid ""
26956 "Use the C<--csv> option to get a format which can be easily parsed by other "
26957 "programs.  Other options are mostly similar to standard C<df> options.  See "
26958 "below for the complete list."
26959 msgstr ""
26960
26961 # type: =item
26962 #: ../tools/virt-df.pl:107
26963 msgid "B<--csv>"
26964 msgstr ""
26965
26966 # type: textblock
26967 #: ../tools/virt-df.pl:109
26968 msgid ""
26969 "Write out the results in CSV format (comma-separated values).  This format "
26970 "can be imported easily into databases and spreadsheets, but read L</NOTE "
26971 "ABOUT CSV FORMAT> below."
26972 msgstr ""
26973
26974 # type: =item
26975 #: ../tools/virt-df.pl:134
26976 msgid "B<--human-readable> | B<-h>"
26977 msgstr ""
26978
26979 # type: textblock
26980 #: ../tools/virt-df.pl:136
26981 msgid "Print sizes in human-readable format."
26982 msgstr ""
26983
26984 # type: textblock
26985 #: ../tools/virt-df.pl:138
26986 msgid "You are not allowed to use I<-h> and I<--csv> at the same time."
26987 msgstr ""
26988
26989 # type: =item
26990 #: ../tools/virt-df.pl:144
26991 msgid "B<--inodes> | B<-i>"
26992 msgstr ""
26993
26994 # type: textblock
26995 #: ../tools/virt-df.pl:146
26996 msgid "Print inodes instead of blocks."
26997 msgstr ""
26998
26999 # type: =item
27000 #: ../tools/virt-df.pl:152
27001 msgid "B<--one-per-guest>"
27002 msgstr ""
27003
27004 # type: textblock
27005 #: ../tools/virt-df.pl:154
27006 msgid ""
27007 "Run one libguestfs appliance per guest.  Normally C<virt-df> will add the "
27008 "disks from several guests to a single libguestfs appliance."
27009 msgstr ""
27010
27011 # type: textblock
27012 #: ../tools/virt-df.pl:157
27013 msgid "You might use this option in the following circumstances:"
27014 msgstr ""
27015
27016 # type: textblock
27017 #: ../tools/virt-df.pl:163
27018 msgid ""
27019 "If you think an untrusted guest might actively try to exploit the libguestfs "
27020 "appliance kernel, then this prevents one guest from interfering with the "
27021 "stats printed for another guest."
27022 msgstr ""
27023
27024 # type: textblock
27025 #: ../tools/virt-df.pl:169
27026 msgid ""
27027 "If the kernel has a bug which stops it from accessing a filesystem in one "
27028 "guest (see for example RHBZ#635373) then this allows libguestfs to continue "
27029 "and report stats for further guests."
27030 msgstr ""
27031
27032 # type: =item
27033 #: ../tools/virt-df.pl:180
27034 msgid "B<--uuid>"
27035 msgstr ""
27036
27037 # type: textblock
27038 #: ../tools/virt-df.pl:182
27039 msgid ""
27040 "Print UUIDs instead of names.  This is useful for following a guest even "
27041 "when the guest is migrated or renamed, or when two guests happen to have the "
27042 "same name."
27043 msgstr ""
27044
27045 # type: textblock
27046 #: ../tools/virt-df.pl:186
27047 msgid ""
27048 "Note that only domains that we fetch from libvirt come with UUIDs.  For disk "
27049 "images, we still print the disk image name even when this option is "
27050 "specified."
27051 msgstr ""
27052
27053 # type: =head1
27054 #: ../tools/virt-df.pl:609
27055 msgid "NOTE ABOUT CSV FORMAT"
27056 msgstr ""
27057
27058 # type: textblock
27059 #: ../tools/virt-df.pl:611
27060 msgid ""
27061 "Comma-separated values (CSV) is a deceptive format.  It I<seems> like it "
27062 "should be easy to parse, but it is definitely not easy to parse."
27063 msgstr ""
27064
27065 # type: textblock
27066 #: ../tools/virt-df.pl:614
27067 msgid ""
27068 "Myth: Just split fields at commas.  Reality: This does I<not> work "
27069 "reliably.  This example has two columns:"
27070 msgstr ""
27071
27072 # type: verbatim
27073 #: ../tools/virt-df.pl:617
27074 #, no-wrap
27075 msgid ""
27076 " \"foo,bar\",baz\n"
27077 "\n"
27078 msgstr ""
27079
27080 # type: textblock
27081 #: ../tools/virt-df.pl:619
27082 msgid ""
27083 "Myth: Read the file one line at a time.  Reality: This does I<not> work "
27084 "reliably.  This example has one row:"
27085 msgstr ""
27086
27087 # type: verbatim
27088 #: ../tools/virt-df.pl:622
27089 #, no-wrap
27090 msgid ""
27091 " \"foo\n"
27092 " bar\",baz\n"
27093 "\n"
27094 msgstr ""
27095
27096 # type: textblock
27097 #: ../tools/virt-df.pl:625
27098 msgid ""
27099 "For shell scripts, use C<csvtool> (L<http://merjis.com/developers/csv> also "
27100 "packaged in major Linux distributions)."
27101 msgstr ""
27102
27103 # type: textblock
27104 #: ../tools/virt-df.pl:628
27105 msgid ""
27106 "For other languages, use a CSV processing library (eg. C<Text::CSV> for Perl "
27107 "or Python's built-in csv library)."
27108 msgstr ""
27109
27110 # type: textblock
27111 #: ../tools/virt-df.pl:631
27112 msgid "Most spreadsheets and databases can import CSV directly."
27113 msgstr ""
27114
27115 # type: textblock
27116 #: ../tools/virt-df.pl:642
27117 msgid ""
27118 "L<guestfs(3)>, L<guestfish(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
27119 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
27120 msgstr ""
27121
27122 # type: textblock
27123 #: ../tools/virt-ls.pl:34
27124 msgid "virt-ls - List files in a virtual machine"
27125 msgstr ""
27126
27127 # type: verbatim
27128 #: ../tools/virt-ls.pl:38
27129 #, no-wrap
27130 msgid ""
27131 " virt-ls [--options] domname directory\n"
27132 "\n"
27133 msgstr ""
27134
27135 # type: verbatim
27136 #: ../tools/virt-ls.pl:40
27137 #, no-wrap
27138 msgid ""
27139 " virt-ls [--options] disk.img [disk.img ...] directory\n"
27140 "\n"
27141 msgstr ""
27142
27143 # type: textblock
27144 #: ../tools/virt-ls.pl:44
27145 msgid ""
27146 "C<virt-ls> is a command line tool to list the names of files in a directory "
27147 "inside a virtual machine or disk image."
27148 msgstr ""
27149
27150 # type: textblock
27151 #: ../tools/virt-ls.pl:47
27152 msgid ""
27153 "C<virt-ls> is just a simple wrapper around L<libguestfs(3)> functionality.  "
27154 "For more complex cases you should look at the L<guestfish(1)> tool."
27155 msgstr ""
27156
27157 # type: textblock
27158 #: ../tools/virt-ls.pl:51
27159 msgid ""
27160 "C<virt-ls> can be used in one of three modes: simple, long and recursive.  A "
27161 "simple listing is like the ordinary L<ls(1)> command:"
27162 msgstr ""
27163
27164 # type: verbatim
27165 #: ../tools/virt-ls.pl:54
27166 #, no-wrap
27167 msgid ""
27168 " $ virt-ls myguest /\n"
27169 " bin\n"
27170 " boot\n"
27171 " [etc.]\n"
27172 "\n"
27173 msgstr ""
27174
27175 # type: textblock
27176 #: ../tools/virt-ls.pl:59
27177 msgid "With the C<-l> (C<--long>) option, C<virt-ls> shows more detail:"
27178 msgstr ""
27179
27180 # type: verbatim
27181 #: ../tools/virt-ls.pl:61
27182 #, no-wrap
27183 msgid ""
27184 " $ virt-ls -l myguest /\n"
27185 " total 204\n"
27186 " dr-xr-xr-x.   2 root root   4096 2009-08-25 19:06 bin\n"
27187 " dr-xr-xr-x.   5 root root   3072 2009-08-25 19:06 boot\n"
27188 " [etc.]\n"
27189 "\n"
27190 msgstr ""
27191
27192 # type: textblock
27193 #: ../tools/virt-ls.pl:67
27194 msgid ""
27195 "With the C<-R> (C<--recursive>) option, C<virt-ls> lists the names of files "
27196 "and directories recursively:"
27197 msgstr ""
27198
27199 # type: verbatim
27200 #: ../tools/virt-ls.pl:70
27201 #, no-wrap
27202 msgid ""
27203 " $ virt-ls -R myguest /tmp\n"
27204 " foo\n"
27205 " foo/bar\n"
27206 " [etc.]\n"
27207 "\n"
27208 msgstr ""
27209
27210 # type: textblock
27211 #: ../tools/virt-ls.pl:75
27212 msgid ""
27213 "You I<cannot> combine these options.  To do more complicated things, use "
27214 "L<guestfish(1)>."
27215 msgstr ""
27216
27217 # type: =item
27218 #: ../tools/virt-ls.pl:131 ../tools/virt-list-filesystems.pl:103
27219 #: ../tools/virt-list-partitions.pl:112
27220 msgid "B<-l> | B<--long>"
27221 msgstr ""
27222
27223 # type: =item
27224 #: ../tools/virt-ls.pl:133
27225 msgid "B<-R> | B<--recursive>"
27226 msgstr ""
27227
27228 # type: textblock
27229 #: ../tools/virt-ls.pl:135
27230 msgid ""
27231 "Select the mode.  With neither of these options, C<virt-ls> produces a "
27232 "simple, flat list of the files in the named directory."
27233 msgstr ""
27234
27235 # type: textblock
27236 #: ../tools/virt-ls.pl:138
27237 msgid ""
27238 "C<virt-ls -l> produces a \"long listing\", which shows more detail (just "
27239 "like the plain C<ls -l> command)."
27240 msgstr ""
27241
27242 # type: textblock
27243 #: ../tools/virt-ls.pl:141
27244 msgid ""
27245 "C<virt-ls -R> produces a recursive list of files starting at the named "
27246 "directory.  See the documentation for L<guestfs(3)/guestfs_find> for precise "
27247 "details."
27248 msgstr ""
27249
27250 # type: textblock
27251 #: ../tools/virt-ls.pl:145
27252 msgid "You cannot combine these options."
27253 msgstr ""
27254
27255 # type: textblock
27256 #: ../tools/virt-ls.pl:234
27257 msgid ""
27258 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<Sys::"
27259 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
27260 "org/>."
27261 msgstr ""
27262
27263 # type: textblock
27264 #: ../tools/virt-ls.pl:249 ../tools/virt-list-filesystems.pl:204
27265 #: ../tools/virt-tar.pl:298
27266 msgid "Copyright (C) 2009 Red Hat Inc."
27267 msgstr ""
27268
27269 # type: textblock
27270 #: ../tools/virt-resize.pl:42
27271 msgid "virt-resize - Resize a virtual machine disk"
27272 msgstr ""
27273
27274 # type: verbatim
27275 #: ../tools/virt-resize.pl:46
27276 #, no-wrap
27277 msgid ""
27278 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
27279 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
27280 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
27281 "\n"
27282 msgstr ""
27283
27284 # type: textblock
27285 #: ../tools/virt-resize.pl:52
27286 msgid ""
27287 "Virt-resize is a tool which can resize a virtual machine disk, making it "
27288 "larger or smaller overall, and resizing or deleting any partitions contained "
27289 "within."
27290 msgstr ""
27291
27292 # type: textblock
27293 #: ../tools/virt-resize.pl:56
27294 msgid ""
27295 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
27296 "not> be used on live virtual machines - for consistent results, shut the "
27297 "virtual machine down before resizing it."
27298 msgstr ""
27299
27300 # type: textblock
27301 #: ../tools/virt-resize.pl:60
27302 msgid ""
27303 "If you are not familiar with the associated tools: L<virt-list-partitions(1)"
27304 ">, L<virt-list-filesystems(1)> and L<virt-df(1)>, we recommend you go and "
27305 "read those manual pages first."
27306 msgstr ""
27307
27308 # type: textblock
27309 #: ../tools/virt-resize.pl:68
27310 msgid ""
27311 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
27312 "fill the extra 5GB of space."
27313 msgstr ""
27314
27315 # type: verbatim
27316 #: ../tools/virt-resize.pl:71
27317 #, no-wrap
27318 msgid ""
27319 " truncate -r olddisk newdisk; truncate -s +5G newdisk\n"
27320 " virt-list-partitions -lht olddisk\n"
27321 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
27322 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
27323 "\n"
27324 msgstr ""
27325
27326 # type: textblock
27327 #: ../tools/virt-resize.pl:76
27328 msgid ""
27329 "As above, but make the /boot partition 200MB bigger, while giving the "
27330 "remaining space to /dev/sda2:"
27331 msgstr ""
27332
27333 # type: verbatim
27334 #: ../tools/virt-resize.pl:79
27335 #, no-wrap
27336 msgid ""
27337 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 olddisk newdisk\n"
27338 "\n"
27339 msgstr ""
27340
27341 # type: textblock
27342 #: ../tools/virt-resize.pl:81
27343 msgid "As above, but the output format will be uncompressed qcow2:"
27344 msgstr ""
27345
27346 # type: verbatim
27347 #: ../tools/virt-resize.pl:83
27348 #, no-wrap
27349 msgid ""
27350 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
27351 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
27352 "\n"
27353 msgstr ""
27354
27355 # type: =head1
27356 #: ../tools/virt-resize.pl:86
27357 msgid "DETAILED USAGE"
27358 msgstr ""
27359
27360 # type: =head2
27361 #: ../tools/virt-resize.pl:88
27362 msgid "EXPANDING A VIRTUAL MACHINE DISK"
27363 msgstr ""
27364
27365 # type: =item
27366 #: ../tools/virt-resize.pl:92
27367 msgid "1. Shut down the virtual machine"
27368 msgstr ""
27369
27370 # type: =item
27371 #: ../tools/virt-resize.pl:94
27372 msgid "2. Locate input disk image"
27373 msgstr ""
27374
27375 # type: textblock
27376 #: ../tools/virt-resize.pl:96
27377 msgid ""
27378 "Locate the input disk image (ie. the file or device on the host containing "
27379 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
27380 "dumpxml> like this to find the disk image name:"
27381 msgstr ""
27382
27383 # type: verbatim
27384 #: ../tools/virt-resize.pl:100
27385 #, no-wrap
27386 msgid ""
27387 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
27388 " Found 1 nodes:\n"
27389 " -- NODE --\n"
27390 " <source dev=\"/dev/vg/lv_guest\" />\n"
27391 "\n"
27392 msgstr ""
27393
27394 # type: =item
27395 #: ../tools/virt-resize.pl:105
27396 msgid "3. Look at current sizing"
27397 msgstr ""
27398
27399 # type: textblock
27400 #: ../tools/virt-resize.pl:107
27401 msgid ""
27402 "Use L<virt-list-partitions(1)> to display the current partitions and sizes:"
27403 msgstr ""
27404
27405 # type: verbatim
27406 #: ../tools/virt-resize.pl:110
27407 #, no-wrap
27408 msgid ""
27409 " # virt-list-partitions -lht /dev/vg/lv_guest\n"
27410 " /dev/sda1 ext3 101.9M\n"
27411 " /dev/sda2 pv 7.9G\n"
27412 " /dev/sda device 8.0G\n"
27413 "\n"
27414 msgstr ""
27415
27416 # type: textblock
27417 #: ../tools/virt-resize.pl:115
27418 msgid ""
27419 "(This example is a virtual machine with an 8 GB disk which we would like to "
27420 "expand up to 10 GB)."
27421 msgstr ""
27422
27423 # type: =item
27424 #: ../tools/virt-resize.pl:118
27425 msgid "4. Create output disk"
27426 msgstr ""
27427
27428 # type: textblock
27429 #: ../tools/virt-resize.pl:120
27430 msgid ""
27431 "Virt-resize cannot do in-place disk modifications.  You have to have space "
27432 "to store the resized output disk."
27433 msgstr ""
27434
27435 # type: textblock
27436 #: ../tools/virt-resize.pl:123
27437 msgid ""
27438 "To store the resized disk image in a file, create a file of a suitable size:"
27439 msgstr ""
27440
27441 # type: verbatim
27442 #: ../tools/virt-resize.pl:126
27443 #, no-wrap
27444 msgid ""
27445 " # rm -f outdisk\n"
27446 " # truncate -s 10G outdisk\n"
27447 "\n"
27448 msgstr ""
27449
27450 # type: textblock
27451 #: ../tools/virt-resize.pl:129
27452 msgid "Or use L<lvcreate(1)> to create a logical volume:"
27453 msgstr ""
27454
27455 # type: verbatim
27456 #: ../tools/virt-resize.pl:131
27457 #, no-wrap
27458 msgid ""
27459 " # lvcreate -L 10G -n lv_name vg_name\n"
27460 "\n"
27461 msgstr ""
27462
27463 # type: textblock
27464 #: ../tools/virt-resize.pl:133
27465 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
27466 msgstr ""
27467
27468 # type: verbatim
27469 #: ../tools/virt-resize.pl:135
27470 #, no-wrap
27471 msgid ""
27472 " # virsh pool-list\n"
27473 " # virsh vol-create-as poolname newvol 10G\n"
27474 "\n"
27475 msgstr ""
27476
27477 # type: =item
27478 #: ../tools/virt-resize.pl:138
27479 msgid "5. Resize"
27480 msgstr ""
27481
27482 # type: textblock
27483 #: ../tools/virt-resize.pl:140
27484 msgid ""
27485 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
27486 "file) and the output disk.  The output disk is the one created in the "
27487 "previous step."
27488 msgstr ""
27489
27490 # type: verbatim
27491 #: ../tools/virt-resize.pl:144
27492 #, no-wrap
27493 msgid ""
27494 " # virt-resize indisk outdisk\n"
27495 "\n"
27496 msgstr ""
27497
27498 # type: textblock
27499 #: ../tools/virt-resize.pl:146
27500 msgid ""
27501 "This command just copies disk image C<indisk> to disk image C<outdisk> "
27502 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
27503 "larger, then an extra, empty partition is created at the end of the disk "
27504 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
27505 "error."
27506 msgstr ""
27507
27508 # type: textblock
27509 #: ../tools/virt-resize.pl:152
27510 msgid ""
27511 "More realistically you'd want to expand existing partitions in the disk "
27512 "image by passing extra options (for the full list see the L</OPTIONS> "
27513 "section below)."
27514 msgstr ""
27515
27516 # type: textblock
27517 #: ../tools/virt-resize.pl:156
27518 msgid ""
27519 "L</--expand> is the most useful option.  It expands the named partition "
27520 "within the disk to fill any extra space:"
27521 msgstr ""
27522
27523 # type: verbatim
27524 #: ../tools/virt-resize.pl:159
27525 #, no-wrap
27526 msgid ""
27527 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
27528 "\n"
27529 msgstr ""
27530
27531 # type: textblock
27532 #: ../tools/virt-resize.pl:161
27533 msgid ""
27534 "(In this case, an extra partition is I<not> created at the end of the disk, "
27535 "because there will be no unused space)."
27536 msgstr ""
27537
27538 # type: textblock
27539 #: ../tools/virt-resize.pl:164
27540 msgid ""
27541 "L</--resize> is the other commonly used option.  The following would "
27542 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
27543 "rest of the available space:"
27544 msgstr ""
27545
27546 # type: verbatim
27547 #: ../tools/virt-resize.pl:168
27548 #, no-wrap
27549 msgid ""
27550 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
27551 "     indisk outdisk\n"
27552 "\n"
27553 msgstr ""
27554
27555 # type: textblock
27556 #: ../tools/virt-resize.pl:171
27557 msgid ""
27558 "If the expanded partition in the image contains a filesystem or LVM PV, then "
27559 "if virt-resize knows how, it will resize the contents, the equivalent of "
27560 "calling a command such as L<pvresize(8)>, L<resize2fs(8)> or L<ntfsresize(8)"
27561 ">.  However virt-resize does not know how to resize some filesystems, so you "
27562 "would have to online resize them after booting the guest.  And virt-resize "
27563 "also does not resize anything inside an LVM PV, it just resizes the PV "
27564 "itself and leaves the user to resize any LVs inside that PV as desired."
27565 msgstr ""
27566
27567 # type: textblock
27568 #: ../tools/virt-resize.pl:180
27569 msgid "Other options are covered below."
27570 msgstr ""
27571
27572 # type: =item
27573 #: ../tools/virt-resize.pl:182
27574 msgid "6. Test"
27575 msgstr ""
27576
27577 # type: textblock
27578 #: ../tools/virt-resize.pl:184
27579 msgid "Thoroughly test the new disk image I<before> discarding the old one."
27580 msgstr ""
27581
27582 # type: textblock
27583 #: ../tools/virt-resize.pl:186
27584 msgid "If you are using libvirt, edit the XML to point at the new disk:"
27585 msgstr ""
27586
27587 # type: verbatim
27588 #: ../tools/virt-resize.pl:188
27589 #, no-wrap
27590 msgid ""
27591 " # virsh edit guestname\n"
27592 "\n"
27593 msgstr ""
27594
27595 # type: textblock
27596 #: ../tools/virt-resize.pl:190
27597 msgid ""
27598 "Change E<lt>source ...E<gt>, see L<http://libvirt.org/formatdomain."
27599 "html#elementsDisks>"
27600 msgstr ""
27601
27602 # type: textblock
27603 #: ../tools/virt-resize.pl:193
27604 msgid "Then start up the domain with the new, resized disk:"
27605 msgstr ""
27606
27607 # type: verbatim
27608 #: ../tools/virt-resize.pl:195
27609 #, no-wrap
27610 msgid ""
27611 " # virsh start guestname\n"
27612 "\n"
27613 msgstr ""
27614
27615 # type: textblock
27616 #: ../tools/virt-resize.pl:197
27617 msgid ""
27618 "and check that it still works.  See also the L</NOTES> section below for "
27619 "additional information."
27620 msgstr ""
27621
27622 # type: =item
27623 #: ../tools/virt-resize.pl:200
27624 msgid "7. Resize LVs etc inside the guest"
27625 msgstr ""
27626
27627 # type: textblock
27628 #: ../tools/virt-resize.pl:202
27629 msgid "(This can also be done offline using L<guestfish(1)>)"
27630 msgstr ""
27631
27632 # type: textblock
27633 #: ../tools/virt-resize.pl:204
27634 msgid ""
27635 "Once the guest has booted you should see the new space available, at least "
27636 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
27637 "may need to resize LVs inside PVs, and also resize filesystem types that "
27638 "virt-resize does not know how to expand."
27639 msgstr ""
27640
27641 # type: =head2
27642 #: ../tools/virt-resize.pl:211
27643 msgid "SHRINKING A VIRTUAL MACHINE DISK"
27644 msgstr ""
27645
27646 # type: textblock
27647 #: ../tools/virt-resize.pl:213
27648 msgid ""
27649 "Shrinking is somewhat more complex than expanding, and only an overview is "
27650 "given here."
27651 msgstr ""
27652
27653 # type: textblock
27654 #: ../tools/virt-resize.pl:216
27655 msgid ""
27656 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
27657 "filesystems).  The user has to shrink content before passing the disk image "
27658 "to virt-resize, and virt-resize will check that the content has been shrunk "
27659 "properly."
27660 msgstr ""
27661
27662 # type: textblock
27663 #: ../tools/virt-resize.pl:221
27664 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
27665 msgstr ""
27666
27667 # type: textblock
27668 #: ../tools/virt-resize.pl:223
27669 msgid ""
27670 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
27671 "steps 3 and 4 above to allocate a new disk image."
27672 msgstr ""
27673
27674 # type: textblock
27675 #: ../tools/virt-resize.pl:226
27676 msgid ""
27677 "Then run virt-resize with any of the C<--shrink> and/or C<--resize> options."
27678 msgstr ""
27679
27680 # type: =head2
27681 #: ../tools/virt-resize.pl:229
27682 msgid "IGNORING OR DELETING PARTITIONS"
27683 msgstr ""
27684
27685 # type: textblock
27686 #: ../tools/virt-resize.pl:231
27687 msgid ""
27688 "virt-resize also gives a convenient way to ignore or delete partitions when "
27689 "copying from the input disk to the output disk.  Ignoring a partition speeds "
27690 "up the copy where you don't care about the existing contents of a "
27691 "partition.  Deleting a partition removes it completely, but note that it "
27692 "also renumbers any partitions after the one which is deleted, which can "
27693 "leave some guests unbootable."
27694 msgstr ""
27695
27696 # type: =head2
27697 #: ../tools/virt-resize.pl:238
27698 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
27699 msgstr ""
27700
27701 # type: textblock
27702 #: ../tools/virt-resize.pl:240
27703 msgid ""
27704 "If the input disk is in qcow2 format, then you may prefer that the output is "
27705 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
27706 "the fly.  The output format is simply determined by the format of the empty "
27707 "output container that you provide.  Thus to create qcow2 output, use:"
27708 msgstr ""
27709
27710 # type: verbatim
27711 #: ../tools/virt-resize.pl:246
27712 #, no-wrap
27713 msgid ""
27714 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
27715 "\n"
27716 msgstr ""
27717
27718 # type: textblock
27719 #: ../tools/virt-resize.pl:248
27720 msgid "instead of the truncate command (use C<-c> for a compressed disk)."
27721 msgstr ""
27722
27723 # type: textblock
27724 #: ../tools/virt-resize.pl:250
27725 msgid "Similarly, to get non-sparse raw output use:"
27726 msgstr ""
27727
27728 # type: verbatim
27729 #: ../tools/virt-resize.pl:252
27730 #, no-wrap
27731 msgid ""
27732 " fallocate -l size outdisk\n"
27733 "\n"
27734 msgstr ""
27735
27736 # type: textblock
27737 #: ../tools/virt-resize.pl:254
27738 msgid ""
27739 "(on older systems that don't have the L<fallocate(1)> command use C<dd if=/"
27740 "dev/zero of=outdisk bs=1M count=..>)"
27741 msgstr ""
27742
27743 # type: textblock
27744 #: ../tools/virt-resize.pl:267
27745 msgid "Display help."
27746 msgstr ""
27747
27748 # type: =item
27749 #: ../tools/virt-resize.pl:281
27750 msgid "B<--resize part=size>"
27751 msgstr ""
27752
27753 # type: textblock
27754 #: ../tools/virt-resize.pl:283
27755 msgid ""
27756 "Resize the named partition (expanding or shrinking it) so that it has the "
27757 "given size."
27758 msgstr ""
27759
27760 # type: textblock
27761 #: ../tools/virt-resize.pl:286
27762 msgid ""
27763 "C<size> can be expressed as an absolute number followed by b/K/M/G/T/P/E to "
27764 "mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Petabytes or "
27765 "Exabytes; or as a percentage of the current size; or as a relative number or "
27766 "percentage.  For example:"
27767 msgstr ""
27768
27769 # type: verbatim
27770 #: ../tools/virt-resize.pl:291
27771 #, no-wrap
27772 msgid ""
27773 " --resize /dev/sda2=10G\n"
27774 "\n"
27775 msgstr ""
27776
27777 # type: verbatim
27778 #: ../tools/virt-resize.pl:293
27779 #, no-wrap
27780 msgid ""
27781 " --resize /dev/sda4=90%\n"
27782 "\n"
27783 msgstr ""
27784
27785 # type: verbatim
27786 #: ../tools/virt-resize.pl:295
27787 #, no-wrap
27788 msgid ""
27789 " --resize /dev/sda2=+1G\n"
27790 "\n"
27791 msgstr ""
27792
27793 # type: verbatim
27794 #: ../tools/virt-resize.pl:297
27795 #, no-wrap
27796 msgid ""
27797 " --resize /dev/sda2=-200M\n"
27798 "\n"
27799 msgstr ""
27800
27801 # type: verbatim
27802 #: ../tools/virt-resize.pl:299
27803 #, no-wrap
27804 msgid ""
27805 " --resize /dev/sda1=+128K\n"
27806 "\n"
27807 msgstr ""
27808
27809 # type: verbatim
27810 #: ../tools/virt-resize.pl:301
27811 #, no-wrap
27812 msgid ""
27813 " --resize /dev/sda1=+10%\n"
27814 "\n"
27815 msgstr ""
27816
27817 # type: verbatim
27818 #: ../tools/virt-resize.pl:303
27819 #, no-wrap
27820 msgid ""
27821 " --resize /dev/sda1=-10%\n"
27822 "\n"
27823 msgstr ""
27824
27825 # type: textblock
27826 #: ../tools/virt-resize.pl:305
27827 msgid ""
27828 "You can increase the size of any partition.  Virt-resize will expand the "
27829 "direct content of the partition if it knows how (see C<--expand> below)."
27830 msgstr ""
27831
27832 # type: textblock
27833 #: ../tools/virt-resize.pl:309
27834 msgid ""
27835 "You can only I<decrease> the size of partitions that contain filesystems or "
27836 "PVs which have already been shrunk.  Virt-resize will check this has been "
27837 "done before proceeding, or else will print an error (see also C<--resize-"
27838 "force>)."
27839 msgstr ""
27840
27841 # type: textblock
27842 #: ../tools/virt-resize.pl:314 ../tools/virt-resize.pl:406
27843 #: ../tools/virt-resize.pl:423
27844 msgid "You can give this option multiple times."
27845 msgstr ""
27846
27847 # type: =item
27848 #: ../tools/virt-resize.pl:320
27849 msgid "B<--resize-force part=size>"
27850 msgstr ""
27851
27852 # type: textblock
27853 #: ../tools/virt-resize.pl:322
27854 msgid ""
27855 "This is the same as C<--resize> except that it will let you decrease the "
27856 "size of any partition.  Generally this means you will lose any data which "
27857 "was at the end of the partition you shrink, but you may not care about that "
27858 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
27859 "as a swap partition)."
27860 msgstr ""
27861
27862 # type: textblock
27863 #: ../tools/virt-resize.pl:328
27864 msgid "See also the C<--ignore> option."
27865 msgstr ""
27866
27867 # type: =item
27868 #: ../tools/virt-resize.pl:334
27869 msgid "B<--expand part>"
27870 msgstr ""
27871
27872 # type: textblock
27873 #: ../tools/virt-resize.pl:336
27874 msgid ""
27875 "Expand the named partition so it uses up all extra space (space left over "
27876 "after any other resize changes that you request have been done)."
27877 msgstr ""
27878
27879 # type: textblock
27880 #: ../tools/virt-resize.pl:339
27881 msgid ""
27882 "If virt-resize knows how, it will expand the direct content of the "
27883 "partition.  For example, if the partition is an LVM PV, it will expand the "
27884 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
27885 "content it doesn't know about alone."
27886 msgstr ""
27887
27888 # type: textblock
27889 #: ../tools/virt-resize.pl:344
27890 msgid "Currently virt-resize can resize:"
27891 msgstr ""
27892
27893 # type: textblock
27894 #: ../tools/virt-resize.pl:350
27895 msgid ""
27896 "ext2, ext3 and ext4 filesystems when they are contained directly inside a "
27897 "partition."
27898 msgstr ""
27899
27900 # type: textblock
27901 #: ../tools/virt-resize.pl:355
27902 msgid ""
27903 "NTFS filesystems contained directly in a partition, if libguestfs was "
27904 "compiled with support for NTFS."
27905 msgstr ""
27906
27907 # type: textblock
27908 #: ../tools/virt-resize.pl:358
27909 msgid ""
27910 "The filesystem must have been shut down consistently last time it was used.  "
27911 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
27912 "consistency check, so at the first boot after resizing Windows will check "
27913 "the disk."
27914 msgstr ""
27915
27916 # type: textblock
27917 #: ../tools/virt-resize.pl:365
27918 msgid ""
27919 "LVM PVs (physical volumes).  However virt-resize does I<not> resize anything "
27920 "inside the PV.  The user will have to resize LVs as desired."
27921 msgstr ""
27922
27923 # type: textblock
27924 #: ../tools/virt-resize.pl:371 ../tools/virt-resize.pl:393
27925 msgid "Note that you cannot use C<--expand> and C<--shrink> together."
27926 msgstr ""
27927
27928 # type: =item
27929 #: ../tools/virt-resize.pl:377
27930 msgid "B<--shrink part>"
27931 msgstr ""
27932
27933 # type: textblock
27934 #: ../tools/virt-resize.pl:379
27935 msgid ""
27936 "Shrink the named partition until the overall disk image fits in the "
27937 "destination.  The named partition B<must> contain a filesystem or PV which "
27938 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
27939 "online tools).  Virt-resize will check this and give an error if it has not "
27940 "been done."
27941 msgstr ""
27942
27943 # type: textblock
27944 #: ../tools/virt-resize.pl:385
27945 msgid ""
27946 "The amount by which the overall disk must be shrunk (after carrying out all "
27947 "other operations requested by the user) is called the \"deficit\".  For "
27948 "example, a straight copy (assume no other operations)  from a 5GB disk image "
27949 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
27950 "would give an error unless the user specified a partition to shrink and that "
27951 "partition had more than a gigabyte of free space."
27952 msgstr ""
27953
27954 # type: =item
27955 #: ../tools/virt-resize.pl:399
27956 msgid "B<--ignore part>"
27957 msgstr ""
27958
27959 # type: textblock
27960 #: ../tools/virt-resize.pl:401
27961 msgid ""
27962 "Ignore the named partition.  Effectively this means the partition is "
27963 "allocated on the destination disk, but the content is not copied across from "
27964 "the source disk.  The content of the partition will be blank (all zero "
27965 "bytes)."
27966 msgstr ""
27967
27968 # type: =item
27969 #: ../tools/virt-resize.pl:412
27970 msgid "B<--delete part>"
27971 msgstr ""
27972
27973 # type: textblock
27974 #: ../tools/virt-resize.pl:414
27975 msgid ""
27976 "Delete the named partition.  It would be more accurate to describe this as "
27977 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
27978 "the original disk image is left intact."
27979 msgstr ""
27980
27981 # type: textblock
27982 #: ../tools/virt-resize.pl:418
27983 msgid ""
27984 "Note that when you delete a partition, then anything contained in the "
27985 "partition is also deleted.  Furthermore, this causes any partitions that "
27986 "come after to be I<renumbered>, which can easily make your guest unbootable."
27987 msgstr ""
27988
27989 # type: =item
27990 #: ../tools/virt-resize.pl:429
27991 msgid "B<--LV-expand logvol>"
27992 msgstr ""
27993
27994 # type: textblock
27995 #: ../tools/virt-resize.pl:431
27996 msgid ""
27997 "This takes the logical volume and, as a final step, expands it to fill all "
27998 "the space available in its volume group.  A typical usage, assuming a Linux "
27999 "guest with a single PV C</dev/sda2> and a root device called C</dev/vg_guest/"
28000 "lv_root> would be:"
28001 msgstr ""
28002
28003 # type: verbatim
28004 #: ../tools/virt-resize.pl:436
28005 #, no-wrap
28006 msgid ""
28007 " virt-resize indisk outdisk \\\n"
28008 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
28009 "\n"
28010 msgstr ""
28011
28012 # type: textblock
28013 #: ../tools/virt-resize.pl:439
28014 msgid ""
28015 "This would first expand the partition (and PV), and then expand the root "
28016 "device to fill the extra space in the PV."
28017 msgstr ""
28018
28019 # type: textblock
28020 #: ../tools/virt-resize.pl:442
28021 msgid ""
28022 "The contents of the LV are also resized if virt-resize knows how to do "
28023 "that.  You can stop virt-resize from trying to expand the content by using "
28024 "the option C<--no-expand-content>."
28025 msgstr ""
28026
28027 # type: textblock
28028 #: ../tools/virt-resize.pl:446
28029 msgid "Use L<virt-list-filesystems(1)> to list the filesystems in the guest."
28030 msgstr ""
28031
28032 # type: textblock
28033 #: ../tools/virt-resize.pl:449
28034 msgid ""
28035 "You can give this option multiple times, I<but> it doesn't make sense to do "
28036 "this unless the logical volumes you specify are all in different volume "
28037 "groups."
28038 msgstr ""
28039
28040 # type: =item
28041 #: ../tools/virt-resize.pl:457
28042 msgid "B<--no-copy-boot-loader>"
28043 msgstr ""
28044
28045 # type: textblock
28046 #: ../tools/virt-resize.pl:459
28047 msgid ""
28048 "By default, virt-resize copies over some sectors at the start of the disk "
28049 "(up to the beginning of the first partition).  Commonly these sectors "
28050 "contain the Master Boot Record (MBR) and the boot loader, and are required "
28051 "in order for the guest to boot correctly."
28052 msgstr ""
28053
28054 # type: textblock
28055 #: ../tools/virt-resize.pl:464
28056 msgid ""
28057 "If you specify this flag, then this initial copy is not done.  You may need "
28058 "to reinstall the boot loader in this case."
28059 msgstr ""
28060
28061 # type: =item
28062 #: ../tools/virt-resize.pl:472
28063 msgid "B<--no-extra-partition>"
28064 msgstr ""
28065
28066 # type: textblock
28067 #: ../tools/virt-resize.pl:474
28068 msgid ""
28069 "By default, virt-resize creates an extra partition if there is any extra, "
28070 "unused space after all resizing has happened.  Use this option to prevent "
28071 "the extra partition from being created.  If you do this then the extra space "
28072 "will be inaccessible until you run fdisk, parted, or some other partitioning "
28073 "tool in the guest."
28074 msgstr ""
28075
28076 # type: textblock
28077 #: ../tools/virt-resize.pl:480
28078 msgid ""
28079 "Note that if the surplus space is smaller than 10 MB, no extra partition "
28080 "will be created."
28081 msgstr ""
28082
28083 # type: =item
28084 #: ../tools/virt-resize.pl:487
28085 msgid "B<--no-expand-content>"
28086 msgstr ""
28087
28088 # type: textblock
28089 #: ../tools/virt-resize.pl:489
28090 msgid ""
28091 "By default, virt-resize will try to expand the direct contents of "
28092 "partitions, if it knows how (see C<--expand> option above)."
28093 msgstr ""
28094
28095 # type: textblock
28096 #: ../tools/virt-resize.pl:492
28097 msgid ""
28098 "If you give the C<--no-expand-content> option then virt-resize will not "
28099 "attempt this."
28100 msgstr ""
28101
28102 # type: =item
28103 #: ../tools/virt-resize.pl:499
28104 msgid "B<-d> | B<--debug>"
28105 msgstr ""
28106
28107 # type: =item
28108 #: ../tools/virt-resize.pl:507
28109 msgid "B<-n> | B<--dryrun>"
28110 msgstr ""
28111
28112 # type: textblock
28113 #: ../tools/virt-resize.pl:509
28114 msgid "Print a summary of what would be done, but don't do anything."
28115 msgstr ""
28116
28117 # type: =item
28118 #: ../tools/virt-resize.pl:515
28119 msgid "B<-q> | B<--quiet>"
28120 msgstr ""
28121
28122 # type: textblock
28123 #: ../tools/virt-resize.pl:517
28124 msgid "Don't print the summary."
28125 msgstr ""
28126
28127 # type: textblock
28128 #: ../tools/virt-resize.pl:525
28129 msgid ""
28130 "Specify the format of the input disk image.  If this flag is not given then "
28131 "it is auto-detected from the image itself."
28132 msgstr ""
28133
28134 # type: textblock
28135 #: ../tools/virt-resize.pl:531
28136 msgid ""
28137 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
28138 "AND NON-SPARSE RAW FORMATS>."
28139 msgstr ""
28140
28141 # type: =item
28142 #: ../tools/virt-resize.pl:538
28143 msgid "B<--output-format> raw"
28144 msgstr ""
28145
28146 # type: textblock
28147 #: ../tools/virt-resize.pl:540
28148 msgid ""
28149 "Specify the format of the output disk image.  If this flag is not given then "
28150 "it is auto-detected from the image itself."
28151 msgstr ""
28152
28153 # type: textblock
28154 #: ../tools/virt-resize.pl:546
28155 msgid ""
28156 "Note that you still need to create the output disk with the right format.  "
28157 "See L</QCOW2 AND NON-SPARSE RAW FORMATS>."
28158 msgstr ""
28159
28160 # type: =head1
28161 #: ../tools/virt-resize.pl:1422 ../tools/virt-rescue.pl:90
28162 msgid "NOTES"
28163 msgstr ""
28164
28165 # type: =head2
28166 #: ../tools/virt-resize.pl:1424
28167 msgid "\"Partition 1 does not end on cylinder boundary.\""
28168 msgstr ""
28169
28170 # type: textblock
28171 #: ../tools/virt-resize.pl:1426
28172 msgid ""
28173 "Virt-resize aligns partitions to multiples of 64 sectors.  Usually this "
28174 "means the partitions will not be aligned to the ancient CHS geometry.  "
28175 "However CHS geometry is meaningless for disks manufactured since the early "
28176 "1990s, and doubly so for virtual hard drives.  Alignment of partitions to "
28177 "cylinders is not required by any modern operating system."
28178 msgstr ""
28179
28180 # type: =head2
28181 #: ../tools/virt-resize.pl:1433
28182 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
28183 msgstr ""
28184
28185 # type: textblock
28186 #: ../tools/virt-resize.pl:1435
28187 msgid ""
28188 "In Windows Vista and later versions, Microsoft switched to using a separate "
28189 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
28190 "and C</dev/sda2> is the main (C:) drive.  We have not had any luck resizing "
28191 "the boot partition.  Doing so seems to break the guest completely.  However "
28192 "expanding the second partition (ie. C: drive) should work."
28193 msgstr ""
28194
28195 # type: textblock
28196 #: ../tools/virt-resize.pl:1442
28197 msgid ""
28198 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
28199 "NTFS partitions have been expanded.  This is just a safety check and (unless "
28200 "it find errors) is nothing to worry about."
28201 msgstr ""
28202
28203 # type: =head2
28204 #: ../tools/virt-resize.pl:1446
28205 msgid "GUEST BOOT STUCK AT \"GRUB\""
28206 msgstr ""
28207
28208 # type: textblock
28209 #: ../tools/virt-resize.pl:1448
28210 msgid ""
28211 "If a Linux guest does not boot after resizing, and the boot is stuck after "
28212 "printing C<GRUB> on the console, try reinstalling grub.  This sometimes "
28213 "happens on older (RHEL 5-era) guests, for reasons we don't fully understand, "
28214 "although we think is to do with partition alignment."
28215 msgstr ""
28216
28217 # type: verbatim
28218 #: ../tools/virt-resize.pl:1453
28219 #, no-wrap
28220 msgid ""
28221 " guestfish -i -a newdisk\n"
28222 " ><fs> cat /boot/grub/device.map\n"
28223 " # check the contents of this file are sensible or\n"
28224 " # edit the file if necessary\n"
28225 " ><fs> grub-install / /dev/vda\n"
28226 " ><fs> exit\n"
28227 "\n"
28228 msgstr ""
28229
28230 # type: textblock
28231 #: ../tools/virt-resize.pl:1460
28232 msgid ""
28233 "For more flexible guest reconfiguration, including if you need to specify "
28234 "other parameters to grub-install, use L<virt-rescue(1)>."
28235 msgstr ""
28236
28237 # type: =head1
28238 #: ../tools/virt-resize.pl:1463
28239 msgid "ALTERNATIVE TOOLS"
28240 msgstr ""
28241
28242 # type: textblock
28243 #: ../tools/virt-resize.pl:1465
28244 msgid ""
28245 "There are several proprietary tools for resizing partitions.  We won't "
28246 "mention any here."
28247 msgstr ""
28248
28249 # type: textblock
28250 #: ../tools/virt-resize.pl:1468
28251 msgid ""
28252 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
28253 "operations on disk images.  They can resize and move partitions, but I don't "
28254 "think they can do anything with the contents, and they certainly don't "
28255 "understand LVM."
28256 msgstr ""
28257
28258 # type: textblock
28259 #: ../tools/virt-resize.pl:1473
28260 msgid ""
28261 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
28262 "but at a much lower level.  You will probably end up hand-calculating sector "
28263 "offsets, which is something that virt-resize was designed to avoid.  If you "
28264 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
28265 "C<--debug> flag."
28266 msgstr ""
28267
28268 # type: textblock
28269 #: ../tools/virt-resize.pl:1488
28270 msgid ""
28271 "L<virt-list-partitions(1)>, L<virt-list-filesystems(1)>, L<virt-df(1)>, "
28272 "L<guestfs(3)>, L<guestfish(1)>, L<lvm(8)>, L<pvresize(8)>, L<lvresize(8)>, "
28273 "L<resize2fs(8)>, L<ntfsresize(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)"
28274 ">, L<fallocate(1)>, L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, "
28275 "L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
28276 msgstr ""
28277
28278 # type: textblock
28279 #: ../tools/virt-list-filesystems.pl:32
28280 msgid ""
28281 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
28282 msgstr ""
28283
28284 # type: verbatim
28285 #: ../tools/virt-list-filesystems.pl:36
28286 #, no-wrap
28287 msgid ""
28288 " virt-list-filesystems [--options] domname\n"
28289 "\n"
28290 msgstr ""
28291
28292 # type: verbatim
28293 #: ../tools/virt-list-filesystems.pl:38
28294 #, no-wrap
28295 msgid ""
28296 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
28297 "\n"
28298 msgstr ""
28299
28300 # type: textblock
28301 #: ../tools/virt-list-filesystems.pl:42
28302 msgid ""
28303 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
28304 "are contained in a virtual machine or disk image."
28305 msgstr ""
28306
28307 # type: textblock
28308 #: ../tools/virt-list-filesystems.pl:46
28309 msgid ""
28310 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
28311 "functionality.  For more complex cases you should look at the L<guestfish(1)"
28312 "> tool."
28313 msgstr ""
28314
28315 # type: textblock
28316 #: ../tools/virt-list-filesystems.pl:105
28317 msgid ""
28318 "With this option, C<virt-list-filesystems> displays the type of each "
28319 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
28320 msgstr ""
28321
28322 # type: =item
28323 #: ../tools/virt-list-filesystems.pl:112
28324 msgid "B<-a> | B<--all>"
28325 msgstr ""
28326
28327 # type: textblock
28328 #: ../tools/virt-list-filesystems.pl:114
28329 msgid ""
28330 "Normally we only show mountable filesystems.  If this option is given then "
28331 "swap devices are shown too."
28332 msgstr ""
28333
28334 # type: textblock
28335 #: ../tools/virt-list-filesystems.pl:188
28336 msgid ""
28337 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-list-"
28338 "partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)"
28339 ">, L<http://libguestfs.org/>."
28340 msgstr ""
28341
28342 # type: textblock
28343 #: ../tools/virt-tar.pl:33
28344 msgid "virt-tar - Extract or upload files to a virtual machine"
28345 msgstr ""
28346
28347 # type: verbatim
28348 #: ../tools/virt-tar.pl:37
28349 #, no-wrap
28350 msgid ""
28351 " virt-tar [--options] -x domname directory tarball\n"
28352 "\n"
28353 msgstr ""
28354
28355 # type: verbatim
28356 #: ../tools/virt-tar.pl:39
28357 #, no-wrap
28358 msgid ""
28359 " virt-tar [--options] -u domname tarball directory\n"
28360 "\n"
28361 msgstr ""
28362
28363 # type: verbatim
28364 #: ../tools/virt-tar.pl:41
28365 #, no-wrap
28366 msgid ""
28367 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
28368 "\n"
28369 msgstr ""
28370
28371 # type: verbatim
28372 #: ../tools/virt-tar.pl:43
28373 #, no-wrap
28374 msgid ""
28375 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
28376 "\n"
28377 msgstr ""
28378
28379 # type: textblock
28380 #: ../tools/virt-tar.pl:47
28381 msgid "Download C</home> from the VM into a local tarball:"
28382 msgstr ""
28383
28384 # type: verbatim
28385 #: ../tools/virt-tar.pl:49
28386 #, no-wrap
28387 msgid ""
28388 " virt-tar -x domname /home home.tar\n"
28389 "\n"
28390 msgstr ""
28391
28392 # type: verbatim
28393 #: ../tools/virt-tar.pl:51
28394 #, no-wrap
28395 msgid ""
28396 " virt-tar -zx domname /home home.tar.gz\n"
28397 "\n"
28398 msgstr ""
28399
28400 # type: textblock
28401 #: ../tools/virt-tar.pl:53
28402 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
28403 msgstr ""
28404
28405 # type: verbatim
28406 #: ../tools/virt-tar.pl:55
28407 #, no-wrap
28408 msgid ""
28409 " virt-tar -u domname uploadstuff.tar /tmp\n"
28410 "\n"
28411 msgstr ""
28412
28413 # type: verbatim
28414 #: ../tools/virt-tar.pl:57
28415 #, no-wrap
28416 msgid ""
28417 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
28418 "\n"
28419 msgstr ""
28420
28421 # type: textblock
28422 #: ../tools/virt-tar.pl:61
28423 msgid ""
28424 "You must I<not> use C<virt-tar> with the C<-u> option (upload) on live "
28425 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
28426 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
28427 msgstr ""
28428
28429 # type: textblock
28430 #: ../tools/virt-tar.pl:66
28431 msgid ""
28432 "You can use C<-x> (extract) on live virtual machines, but you might get "
28433 "inconsistent results or errors if there is filesystem activity inside the "
28434 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
28435 "work, but the only way to guarantee consistent results is if the virtual "
28436 "machine is shut down."
28437 msgstr ""
28438
28439 # type: textblock
28440 #: ../tools/virt-tar.pl:74
28441 msgid ""
28442 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
28443 "parts of a guest filesystem.  There are many possibilities: making backups, "
28444 "uploading data files, snooping on guest activity, fixing or customizing "
28445 "guests, etc."
28446 msgstr ""
28447
28448 # type: textblock
28449 #: ../tools/virt-tar.pl:79
28450 msgid ""
28451 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
28452 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
28453 "should look at the L<guestfish(1)> tool."
28454 msgstr ""
28455
28456 # type: textblock
28457 #: ../tools/virt-tar.pl:83
28458 msgid ""
28459 "There are two modes of operation: C<-x> (eXtract) downloads a directory and "
28460 "its contents (recursively) from the virtual machine into a local tarball.  "
28461 "C<-u> uploads from a local tarball, unpacking it into a directory inside the "
28462 "virtual machine.  You cannot use these two options together."
28463 msgstr ""
28464
28465 # type: textblock
28466 #: ../tools/virt-tar.pl:89
28467 msgid ""
28468 "In addition, you may need to use the C<-z> (gZip) option to enable "
28469 "compression.  When uploading, you have to specify C<-z> if the upload file "
28470 "is compressed because virt-tar won't detect this on its own."
28471 msgstr ""
28472
28473 # type: textblock
28474 #: ../tools/virt-tar.pl:93
28475 msgid ""
28476 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
28477 "example it cannot do PKZip files or bzip2 compression.  If you want that "
28478 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
28479 "the L<libguestfs(3)> API)."
28480 msgstr ""
28481
28482 # type: =item
28483 #: ../tools/virt-tar.pl:151
28484 msgid "B<-x> | B<--extract> | B<--download>"
28485 msgstr ""
28486
28487 # type: =item
28488 #: ../tools/virt-tar.pl:153
28489 msgid "B<-u> | B<--upload>"
28490 msgstr ""
28491
28492 # type: textblock
28493 #: ../tools/virt-tar.pl:155
28494 msgid ""
28495 "Use C<-x> to extract (download) a directory from a virtual machine to a "
28496 "local tarball."
28497 msgstr ""
28498
28499 # type: textblock
28500 #: ../tools/virt-tar.pl:158
28501 msgid ""
28502 "Use C<-u> to upload and unpack from a local tarball into a virtual machine.  "
28503 "Please read the L</WARNING> section above before using this option."
28504 msgstr ""
28505
28506 # type: textblock
28507 #: ../tools/virt-tar.pl:162
28508 msgid "You must specify exactly one of these options."
28509 msgstr ""
28510
28511 # type: =item
28512 #: ../tools/virt-tar.pl:168
28513 msgid "B<-z> | B<--gzip>"
28514 msgstr ""
28515
28516 # type: textblock
28517 #: ../tools/virt-tar.pl:170
28518 msgid "Specify that the input or output tarball is gzip-compressed."
28519 msgstr ""
28520
28521 # type: textblock
28522 #: ../tools/virt-tar.pl:283
28523 msgid ""
28524 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<Sys::"
28525 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
28526 "org/>."
28527 msgstr ""
28528
28529 # type: textblock
28530 #: ../tools/virt-rescue.pl:33
28531 msgid "virt-rescue - Run a rescue shell on a virtual machine"
28532 msgstr ""
28533
28534 # type: verbatim
28535 #: ../tools/virt-rescue.pl:37
28536 #, no-wrap
28537 msgid ""
28538 " virt-rescue [--options] domname\n"
28539 "\n"
28540 msgstr ""
28541
28542 # type: verbatim
28543 #: ../tools/virt-rescue.pl:39
28544 #, no-wrap
28545 msgid ""
28546 " virt-rescue [--options] disk.img [disk.img ...]\n"
28547 "\n"
28548 msgstr ""
28549
28550 # type: textblock
28551 #: ../tools/virt-rescue.pl:43
28552 msgid ""
28553 "You must I<not> use C<virt-rescue> on live virtual machines.  Doing so will "
28554 "probably result in disk corruption in the VM.  C<virt-rescue> tries to stop "
28555 "you from doing this, but doesn't catch all cases."
28556 msgstr ""
28557
28558 # type: textblock
28559 #: ../tools/virt-rescue.pl:47
28560 msgid ""
28561 "However if you use the I<--ro> (read only) option, then you can attach a "
28562 "shell to a live virtual machine.  The results might be strange or "
28563 "inconsistent at times but you won't get disk corruption."
28564 msgstr ""
28565
28566 # type: textblock
28567 #: ../tools/virt-rescue.pl:53
28568 msgid ""
28569 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
28570 "need for a CD.  virt-rescue gives you a rescue shell and some simple "
28571 "recovery tools which you can use to examine or rescue a virtual machine or "
28572 "disk image."
28573 msgstr ""
28574
28575 # type: textblock
28576 #: ../tools/virt-rescue.pl:58
28577 msgid ""
28578 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
28579 "on disk image(s):"
28580 msgstr ""
28581
28582 # type: verbatim
28583 #: ../tools/virt-rescue.pl:61
28584 #, no-wrap
28585 msgid ""
28586 " virt-rescue GuestName\n"
28587 "\n"
28588 msgstr ""
28589
28590 # type: verbatim
28591 #: ../tools/virt-rescue.pl:63
28592 #, no-wrap
28593 msgid ""
28594 " virt-rescue --ro /path/to/disk.img\n"
28595 "\n"
28596 msgstr ""
28597
28598 # type: verbatim
28599 #: ../tools/virt-rescue.pl:65
28600 #, no-wrap
28601 msgid ""
28602 " virt-rescue /dev/sdc\n"
28603 "\n"
28604 msgstr ""
28605
28606 # type: textblock
28607 #: ../tools/virt-rescue.pl:67
28608 msgid "For live VMs you I<must> use the --ro option."
28609 msgstr ""
28610
28611 # type: textblock
28612 #: ../tools/virt-rescue.pl:69
28613 msgid ""
28614 "When you run virt-rescue on a virtual machine or disk image, you are placed "
28615 "in an interactive bash shell where you can use many ordinary Linux "
28616 "commands.  What you see in C</> (C</bin>, C</lib> etc) is the rescue "
28617 "appliance.  You must mount the virtual machine's filesystems by hand.  There "
28618 "is an empty directory called C</sysroot> where you can mount filesystems."
28619 msgstr ""
28620
28621 # type: textblock
28622 #: ../tools/virt-rescue.pl:76
28623 msgid ""
28624 "In the example below, we list logical volumes, then choose one to mount "
28625 "under C</sysroot>:"
28626 msgstr ""
28627
28628 # type: verbatim
28629 #: ../tools/virt-rescue.pl:79
28630 #, no-wrap
28631 msgid ""
28632 " ><rescue> lvs\n"
28633 " LV      VG        Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n"
28634 " lv_root vg_f11x64 -wi-a-   8.83G\n"
28635 " lv_swap vg_f11x64 -wi-a- 992.00M\n"
28636 " ><rescue> mount /dev/vg_f11x64/lv_root /sysroot\n"
28637 " ><rescue> ls /sysroot\n"
28638 "\n"
28639 msgstr ""
28640
28641 # type: textblock
28642 #: ../tools/virt-rescue.pl:86
28643 msgid ""
28644 "If you don't know what filesystems are available on the virtual machine then "
28645 "you can use commands such as L<parted(8)> and L<lvs(8)> to find out."
28646 msgstr ""
28647
28648 # type: textblock
28649 #: ../tools/virt-rescue.pl:92
28650 msgid ""
28651 "Virt-rescue can be used on I<any> disk image file or device, not just a "
28652 "virtual machine.  For example you can use it on a blank file if you want to "
28653 "partition that file (although we would recommend using L<guestfish(1)> "
28654 "instead as it is more suitable for this purpose).  You can even use virt-"
28655 "rescue on things like SD cards."
28656 msgstr ""
28657
28658 # type: textblock
28659 #: ../tools/virt-rescue.pl:98
28660 msgid ""
28661 "This tool is just designed for quick interactive hacking on a virtual "
28662 "machine.  For more structured access to a virtual machine disk image, you "
28663 "should use L<guestfs(3)>.  To get a structured shell that you can use to "
28664 "make scripted changes to guests, use L<guestfish(1)>."
28665 msgstr ""
28666
28667 # type: =item
28668 #: ../tools/virt-rescue.pl:127
28669 msgid "B<--append kernelopts>"
28670 msgstr ""
28671
28672 # type: textblock
28673 #: ../tools/virt-rescue.pl:129
28674 msgid "Pass additional options to the rescue kernel."
28675 msgstr ""
28676
28677 # type: =item
28678 #: ../tools/virt-rescue.pl:164
28679 msgid "B<--memsize MB> | B<-m MB>"
28680 msgstr ""
28681
28682 # type: textblock
28683 #: ../tools/virt-rescue.pl:166
28684 msgid ""
28685 "Change the amount of memory allocated to the rescue system.  The default is "
28686 "set by libguestfs and is small but adequate for running system tools.  The "
28687 "occasional program might need more memory.  The parameter is specified in "
28688 "megabytes."
28689 msgstr ""
28690
28691 # type: =item
28692 #: ../tools/virt-rescue.pl:175
28693 msgid "B<--network>"
28694 msgstr ""
28695
28696 # type: textblock
28697 #: ../tools/virt-rescue.pl:177
28698 msgid "Enable QEMU user networking in the guest."
28699 msgstr ""
28700
28701 # type: =item
28702 #: ../tools/virt-rescue.pl:183
28703 msgid "B<--ro> | B<-r>"
28704 msgstr ""
28705
28706 # type: textblock
28707 #: ../tools/virt-rescue.pl:185
28708 msgid "Open the image read-only."
28709 msgstr ""
28710
28711 # type: textblock
28712 #: ../tools/virt-rescue.pl:197
28713 msgid ""
28714 "Enable SELinux in the rescue appliance.  You should read L<guestfs(3)/"
28715 "SELINUX> before using this option."
28716 msgstr ""
28717
28718 # type: textblock
28719 #: ../tools/virt-rescue.pl:257
28720 msgid ""
28721 "Several environment variables affect virt-rescue.  See L<guestfs(3)/"
28722 "ENVIRONMENT VARIABLES> for the complete list."
28723 msgstr ""
28724
28725 # type: textblock
28726 #: ../tools/virt-rescue.pl:269
28727 msgid ""
28728 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::"
28729 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
28730 msgstr ""
28731
28732 # type: textblock
28733 #: ../tools/virt-make-fs.pl:37
28734 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
28735 msgstr ""
28736
28737 # type: verbatim
28738 #: ../tools/virt-make-fs.pl:41
28739 #, no-wrap
28740 msgid ""
28741 " virt-make-fs [--options] input.tar output.img\n"
28742 "\n"
28743 msgstr ""
28744
28745 # type: verbatim
28746 #: ../tools/virt-make-fs.pl:43
28747 #, no-wrap
28748 msgid ""
28749 " virt-make-fs [--options] input.tar.gz output.img\n"
28750 "\n"
28751 msgstr ""
28752
28753 # type: verbatim
28754 #: ../tools/virt-make-fs.pl:45
28755 #, no-wrap
28756 msgid ""
28757 " virt-make-fs [--options] directory output.img\n"
28758 "\n"
28759 msgstr ""
28760
28761 # type: textblock
28762 #: ../tools/virt-make-fs.pl:49
28763 msgid ""
28764 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
28765 "archive or some files in a directory.  It is similar to tools like L<mkisofs"
28766 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, it can "
28767 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
28768 "you want to attach these filesystems to existing virtual machines (eg. to "
28769 "import large amounts of read-only data to a VM)."
28770 msgstr ""
28771
28772 # type: textblock
28773 #: ../tools/virt-make-fs.pl:57
28774 msgid "Basic usage is:"
28775 msgstr ""
28776
28777 # type: verbatim
28778 #: ../tools/virt-make-fs.pl:59
28779 #, no-wrap
28780 msgid ""
28781 " virt-make-fs input output\n"
28782 "\n"
28783 msgstr ""
28784
28785 # type: textblock
28786 #: ../tools/virt-make-fs.pl:61
28787 msgid ""
28788 "where C<input> is either a directory containing files that you want to add, "
28789 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
28790 "C<output> is a disk image.  The input type is detected automatically.  The "
28791 "output disk image defaults to a raw ext2 image unless you specify extra "
28792 "flags (see L</OPTIONS> below)."
28793 msgstr ""
28794
28795 # type: =head2
28796 #: ../tools/virt-make-fs.pl:67
28797 msgid "EXTRA SPACE"
28798 msgstr ""
28799
28800 # type: textblock
28801 #: ../tools/virt-make-fs.pl:69
28802 msgid ""
28803 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
28804 "the files that it contains, but might have extra space.  Depending on how "
28805 "you are going to use the output, you might think this extra space is wasted "
28806 "and want to minimize it, or you might want to leave space so that more files "
28807 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
28808 "but you can use the C<--size> flag to leave space in the filesystem if you "
28809 "want it."
28810 msgstr ""
28811
28812 # type: textblock
28813 #: ../tools/virt-make-fs.pl:77
28814 msgid ""
28815 "An alternative way to leave extra space but not make the output image any "
28816 "bigger is to use an alternative disk image format (instead of the default "
28817 "\"raw\" format).  Using C<--format=qcow2> will use the native QEmu/KVM qcow2 "
28818 "image format (check your hypervisor supports this before using it).  This "
28819 "allows you to choose a large C<--size> but the extra space won't actually be "
28820 "allocated in the image until you try to store something in it."
28821 msgstr ""
28822
28823 # type: textblock
28824 #: ../tools/virt-make-fs.pl:85
28825 msgid ""
28826 "Don't forget that you can also use local commands including L<resize2fs(8)> "
28827 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-"
28828 "resize to build another image from scratch."
28829 msgstr ""
28830
28831 # type: =head3
28832 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123
28833 #: ../tools/virt-make-fs.pl:142
28834 msgid "EXAMPLE"
28835 msgstr ""
28836
28837 # type: verbatim
28838 #: ../tools/virt-make-fs.pl:91
28839 #, no-wrap
28840 msgid ""
28841 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
28842 "\n"
28843 msgstr ""
28844
28845 # type: =head2
28846 #: ../tools/virt-make-fs.pl:93
28847 msgid "FILESYSTEM TYPE"
28848 msgstr ""
28849
28850 # type: textblock
28851 #: ../tools/virt-make-fs.pl:95
28852 msgid ""
28853 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
28854 "libguestfs supports can be used (but I<not> read-only formats like "
28855 "ISO9660).  Here are some of the more common choices:"
28856 msgstr ""
28857
28858 # type: =item
28859 #: ../tools/virt-make-fs.pl:101
28860 msgid "I<ext3>"
28861 msgstr ""
28862
28863 # type: textblock
28864 #: ../tools/virt-make-fs.pl:103
28865 msgid ""
28866 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
28867 "you are not going to use the filesystem in a way that requires the journal, "
28868 "then this is just wasted overhead."
28869 msgstr ""
28870
28871 # type: =item
28872 #: ../tools/virt-make-fs.pl:107
28873 msgid "I<ntfs> or I<vfat>"
28874 msgstr ""
28875
28876 # type: textblock
28877 #: ../tools/virt-make-fs.pl:109
28878 msgid "Useful if exporting data to a Windows guest."
28879 msgstr ""
28880
28881 # type: textblock
28882 #: ../tools/virt-make-fs.pl:111
28883 msgid ""
28884 "I<Note for vfat>: The tar archive or local directory must only contain files "
28885 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
28886 "program running within libguestfs is unable to change the ownership of non-"
28887 "root files, since vfat itself does not support this."
28888 msgstr ""
28889
28890 # type: =item
28891 #: ../tools/virt-make-fs.pl:116
28892 msgid "I<minix>"
28893 msgstr ""
28894
28895 # type: textblock
28896 #: ../tools/virt-make-fs.pl:118
28897 msgid ""
28898 "Lower overhead than C<ext2>, but certain limitations on filename length and "
28899 "total filesystem size."
28900 msgstr ""
28901
28902 # type: verbatim
28903 #: ../tools/virt-make-fs.pl:125
28904 #, no-wrap
28905 msgid ""
28906 " virt-make-fs --type=minix input minixfs.img\n"
28907 "\n"
28908 msgstr ""
28909
28910 # type: =head2
28911 #: ../tools/virt-make-fs.pl:127
28912 msgid "TO PARTITION OR NOT TO PARTITION"
28913 msgstr ""
28914
28915 # type: textblock
28916 #: ../tools/virt-make-fs.pl:129
28917 msgid "Optionally virt-make-fs can add a partition table to the output disk."
28918 msgstr ""
28919
28920 # type: textblock
28921 #: ../tools/virt-make-fs.pl:131
28922 msgid ""
28923 "Adding a partition can make the disk image more compatible with certain "
28924 "virtualized operating systems which don't expect to see a filesystem "
28925 "directly located on a block device (Linux doesn't care and will happily "
28926 "handle both types)."
28927 msgstr ""
28928
28929 # type: textblock
28930 #: ../tools/virt-make-fs.pl:136
28931 msgid ""
28932 "On the other hand, if you have a partition table then the output image is no "
28933 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
28934 "directly on a partitioned disk image.  (However libguestfs tools such as "
28935 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
28936 msgstr ""
28937
28938 # type: textblock
28939 #: ../tools/virt-make-fs.pl:144
28940 msgid "Add an MBR partition:"
28941 msgstr ""
28942
28943 # type: verbatim
28944 #: ../tools/virt-make-fs.pl:146
28945 #, no-wrap
28946 msgid ""
28947 " virt-make-fs --partition -- input disk.img\n"
28948 "\n"
28949 msgstr ""
28950
28951 # type: textblock
28952 #: ../tools/virt-make-fs.pl:148
28953 msgid ""
28954 "If the output disk image could be terabyte-sized or larger, it's better to "
28955 "use an EFI/GPT-compatible partition table:"
28956 msgstr ""
28957
28958 # type: verbatim
28959 #: ../tools/virt-make-fs.pl:151
28960 #, no-wrap
28961 msgid ""
28962 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
28963 "\n"
28964 msgstr ""
28965
28966 # type: textblock
28967 #: ../tools/virt-make-fs.pl:179
28968 msgid "Enable debugging information."
28969 msgstr ""
28970
28971 # type: =item
28972 #: ../tools/virt-make-fs.pl:185
28973 msgid "B<--size=E<lt>NE<gt>>"
28974 msgstr ""
28975
28976 # type: =item
28977 #: ../tools/virt-make-fs.pl:187
28978 msgid "B<--size=+E<lt>NE<gt>>"
28979 msgstr ""
28980
28981 # type: =item
28982 #: ../tools/virt-make-fs.pl:189
28983 msgid "B<-s E<lt>NE<gt>>"
28984 msgstr ""
28985
28986 # type: =item
28987 #: ../tools/virt-make-fs.pl:191
28988 msgid "B<-s +E<lt>NE<gt>>"
28989 msgstr ""
28990
28991 # type: textblock
28992 #: ../tools/virt-make-fs.pl:193
28993 msgid ""
28994 "Use the C<--size> (or C<-s>) option to choose the size of the output image."
28995 msgstr ""
28996
28997 # type: textblock
28998 #: ../tools/virt-make-fs.pl:196
28999 msgid ""
29000 "If this option is I<not> given, then the output image will be just large "
29001 "enough to contain all the files, with not much wasted space."
29002 msgstr ""
29003
29004 # type: textblock
29005 #: ../tools/virt-make-fs.pl:199
29006 msgid ""
29007 "To choose a fixed size output disk, specify an absolute number followed by b/"
29008 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
29009 "Petabytes or Exabytes.  This must be large enough to contain all the input "
29010 "files, else you will get an error."
29011 msgstr ""
29012
29013 # type: textblock
29014 #: ../tools/virt-make-fs.pl:204
29015 msgid ""
29016 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
29017 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
29018 "Petabytes or Exabytes.  For example: C<--size=+200M> means enough space for "
29019 "the input files, and (approximately) an extra 200 MB free space."
29020 msgstr ""
29021
29022 # type: textblock
29023 #: ../tools/virt-make-fs.pl:210
29024 msgid ""
29025 "Note that virt-make-fs estimates free space, and therefore will not produce "
29026 "filesystems containing precisely the free space requested.  (It is much more "
29027 "expensive and time-consuming to produce a filesystem which has precisely the "
29028 "desired free space)."
29029 msgstr ""
29030
29031 # type: =item
29032 #: ../tools/virt-make-fs.pl:219
29033 msgid "B<--format=E<lt>fmtE<gt>>"
29034 msgstr ""
29035
29036 # type: =item
29037 #: ../tools/virt-make-fs.pl:221
29038 msgid "B<-F E<lt>fmtE<gt>>"
29039 msgstr ""
29040
29041 # type: textblock
29042 #: ../tools/virt-make-fs.pl:223
29043 msgid "Choose the output disk image format."
29044 msgstr ""
29045
29046 # type: textblock
29047 #: ../tools/virt-make-fs.pl:225
29048 msgid "The default is C<raw> (raw disk image)."
29049 msgstr ""
29050
29051 # type: textblock
29052 #: ../tools/virt-make-fs.pl:227
29053 msgid ""
29054 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
29055 "that would really make sense here is C<qcow2>."
29056 msgstr ""
29057
29058 # type: =item
29059 #: ../tools/virt-make-fs.pl:234
29060 msgid "B<--type=E<lt>fsE<gt>>"
29061 msgstr ""
29062
29063 # type: =item
29064 #: ../tools/virt-make-fs.pl:236
29065 msgid "B<-t E<lt>fsE<gt>>"
29066 msgstr ""
29067
29068 # type: textblock
29069 #: ../tools/virt-make-fs.pl:238
29070 msgid "Choose the output filesystem type."
29071 msgstr ""
29072
29073 # type: textblock
29074 #: ../tools/virt-make-fs.pl:240
29075 msgid "The default is C<ext2>."
29076 msgstr ""
29077
29078 # type: textblock
29079 #: ../tools/virt-make-fs.pl:242
29080 msgid ""
29081 "Any filesystem which is supported read-write by libguestfs can be used here."
29082 msgstr ""
29083
29084 # type: =item
29085 #: ../tools/virt-make-fs.pl:249
29086 msgid "B<--partition>"
29087 msgstr ""
29088
29089 # type: =item
29090 #: ../tools/virt-make-fs.pl:251
29091 msgid "B<--partition=E<lt>parttypeE<gt>>"
29092 msgstr ""
29093
29094 # type: textblock
29095 #: ../tools/virt-make-fs.pl:253
29096 msgid ""
29097 "If specified, this flag adds an MBR partition table to the output disk image."
29098 msgstr ""
29099
29100 # type: textblock
29101 #: ../tools/virt-make-fs.pl:256
29102 msgid ""
29103 "You can change the partition table type, eg. C<--partition=gpt> for large "
29104 "disks."
29105 msgstr ""
29106
29107 # type: textblock
29108 #: ../tools/virt-make-fs.pl:259
29109 msgid ""
29110 "Note that if you just use a lonesome C<--partition>, the Perl option parser "
29111 "might consider the next parameter to be the partition type.  For example:"
29112 msgstr ""
29113
29114 # type: verbatim
29115 #: ../tools/virt-make-fs.pl:263
29116 #, no-wrap
29117 msgid ""
29118 " virt-make-fs --partition input.tar ...\n"
29119 "\n"
29120 msgstr ""
29121
29122 # type: textblock
29123 #: ../tools/virt-make-fs.pl:265
29124 msgid ""
29125 "would cause virt-make-fs to think you wanted to use a partition type of "
29126 "C<input.tar> which is completely wrong.  To avoid this, use C<--> (a double "
29127 "dash) between options and the input file argument:"
29128 msgstr ""
29129
29130 # type: verbatim
29131 #: ../tools/virt-make-fs.pl:269
29132 #, no-wrap
29133 msgid ""
29134 " virt-make-fs --partition -- input.tar ...\n"
29135 "\n"
29136 msgstr ""
29137
29138 # type: textblock
29139 #: ../tools/virt-make-fs.pl:536
29140 msgid ""
29141 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar(1)>, L<mkisofs(1)>, "
29142 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
29143 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
29144 msgstr ""
29145
29146 # type: verbatim
29147 #: ../tools/virt-make-fs.pl:553
29148 #, no-wrap
29149 msgid ""
29150 " export LIBGUESTFS_DEBUG=1\n"
29151 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
29152 "\n"
29153 msgstr ""
29154
29155 # type: textblock
29156 #: ../tools/virt-make-fs.pl:556
29157 msgid ""
29158 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
29159 "redhat.com/>"
29160 msgstr ""
29161
29162 # type: textblock
29163 #: ../tools/virt-list-partitions.pl:32
29164 msgid ""
29165 "virt-list-partitions - List partitions in a virtual machine or disk image"
29166 msgstr ""
29167
29168 # type: verbatim
29169 #: ../tools/virt-list-partitions.pl:36
29170 #, no-wrap
29171 msgid ""
29172 " virt-list-partitions [--options] domname\n"
29173 "\n"
29174 msgstr ""
29175
29176 # type: verbatim
29177 #: ../tools/virt-list-partitions.pl:38
29178 #, no-wrap
29179 msgid ""
29180 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
29181 "\n"
29182 msgstr ""
29183
29184 # type: textblock
29185 #: ../tools/virt-list-partitions.pl:42
29186 msgid ""
29187 "C<virt-list-partitions> is a command line tool to list the partitions that "
29188 "are contained in a virtual machine or disk image.  It is mainly useful as a "
29189 "first step to using L<virt-resize(1)>."
29190 msgstr ""
29191
29192 # type: textblock
29193 #: ../tools/virt-list-partitions.pl:47
29194 msgid ""
29195 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
29196 "functionality.  For more complex cases you should look at the L<guestfish(1)"
29197 "> tool."
29198 msgstr ""
29199
29200 # type: =item
29201 #: ../tools/virt-list-partitions.pl:104
29202 msgid "B<-h> | B<--human-readable>"
29203 msgstr ""
29204
29205 # type: textblock
29206 #: ../tools/virt-list-partitions.pl:106
29207 msgid "Show sizes in human-readable form (eg. \"1G\")."
29208 msgstr ""
29209
29210 # type: textblock
29211 #: ../tools/virt-list-partitions.pl:114
29212 msgid ""
29213 "With this option, C<virt-list-partitions> displays the type and size of each "
29214 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
29215 msgstr ""
29216
29217 # type: =item
29218 #: ../tools/virt-list-partitions.pl:121
29219 msgid "B<-t> | B<--total>"
29220 msgstr ""
29221
29222 # type: textblock
29223 #: ../tools/virt-list-partitions.pl:123
29224 msgid ""
29225 "Display the total size of each block device (as a separate row or rows)."
29226 msgstr ""
29227
29228 # type: textblock
29229 #: ../tools/virt-list-partitions.pl:256
29230 msgid ""
29231 "L<guestfs(3)>, L<guestfish(1)>, L<virt-list-filesystems(1)>, L<virt-resize(1)"
29232 ">, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
29233 "libguestfs.org/>."
29234 msgstr ""