todo: Remove obsolete items from TODO file.
[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-10-22 23:11+0200\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 #: ../inspector/virt-inspector.pl:36 ../tools/virt-edit.pl:31
23 #: ../tools/virt-win-reg.pl:34 ../tools/virt-df.pl:32 ../tools/virt-ls.pl:31
24 #: ../tools/virt-resize.pl:38 ../tools/virt-list-filesystems.pl:28
25 #: ../tools/virt-cat.pl:30 ../tools/virt-tar.pl:30 ../tools/virt-rescue.pl:29
26 #: ../tools/virt-make-fs.pl:33 ../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 #: ../inspector/virt-inspector.pl:38 ../tools/virt-edit.pl:33
34 #: ../tools/virt-win-reg.pl:36 ../tools/virt-df.pl:34 ../tools/virt-ls.pl:33
35 #: ../tools/virt-resize.pl:40 ../tools/virt-list-filesystems.pl:30
36 #: ../tools/virt-cat.pl:32 ../tools/virt-tar.pl:32 ../tools/virt-rescue.pl:31
37 #: ../tools/virt-make-fs.pl:35 ../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 #: ../inspector/virt-inspector.pl:42 ../tools/virt-edit.pl:37
50 #: ../tools/virt-win-reg.pl:40 ../tools/virt-df.pl:38 ../tools/virt-ls.pl:37
51 #: ../tools/virt-resize.pl:44 ../tools/virt-list-filesystems.pl:34
52 #: ../tools/virt-cat.pl:36 ../tools/virt-tar.pl:36 ../tools/virt-rescue.pl:35
53 #: ../tools/virt-make-fs.pl:39 ../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:16
93 #: ../inspector/virt-inspector.pl:48 ../tools/virt-edit.pl:51
94 #: ../tools/virt-win-reg.pl:64 ../tools/virt-df.pl:46 ../tools/virt-ls.pl:43
95 #: ../tools/virt-resize.pl:50 ../tools/virt-list-filesystems.pl:40
96 #: ../tools/virt-cat.pl:42 ../tools/virt-tar.pl:73 ../tools/virt-rescue.pl:51
97 #: ../tools/virt-make-fs.pl:47 ../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:1140 ../src/guestfs.pod:1145
782 #: ../src/guestfs.pod:1149 ../src/guestfs.pod:1365 ../src/guestfs.pod:1370
783 #: ../src/guestfs.pod:1374 ../src/guestfs.pod:1476 ../src/guestfs.pod:1480
784 #: ../src/guestfs.pod:1484 ../src/guestfs.pod:1489 ../src/guestfs.pod:1497
785 #: ../src/guestfs.pod:1516 ../src/guestfs.pod:1524 ../src/guestfs.pod:1754
786 #: ../src/guestfs.pod:1760 ../src/guestfs.pod:1765 ../src/guestfs.pod:1771
787 #: ../src/guestfs.pod:1878 ../src/guestfs.pod:1882 ../src/guestfs.pod:1886
788 #: ../src/guestfs.pod:1890 ../src/guestfs-actions.pod:14
789 #: ../src/guestfs-actions.pod:21 ../src/guestfs-actions.pod:438
790 #: ../src/guestfs-actions.pod:446 ../src/guestfs-actions.pod:453
791 #: ../src/guestfs-actions.pod:460 ../src/guestfs-actions.pod:1351
792 #: ../src/guestfs-actions.pod:1355 ../src/guestfs-actions.pod:1359
793 #: ../src/guestfs-actions.pod:1363 ../src/guestfs-actions.pod:1371
794 #: ../src/guestfs-actions.pod:1375 ../src/guestfs-actions.pod:1379
795 #: ../src/guestfs-actions.pod:1389 ../src/guestfs-actions.pod:1393
796 #: ../src/guestfs-actions.pod:1397 ../src/guestfs-actions.pod:1520
797 #: ../src/guestfs-actions.pod:1524 ../src/guestfs-actions.pod:1529
798 #: ../src/guestfs-actions.pod:1534 ../src/guestfs-actions.pod:1586
799 #: ../src/guestfs-actions.pod:1590 ../src/guestfs-actions.pod:1595
800 #: ../fish/guestfish.pod:364 ../fish/guestfish.pod:368
801 #: ../fish/guestfish.pod:372 ../fish/guestfish.pod:376
802 #: ../fish/guestfish-actions.pod:13 ../fish/guestfish-actions.pod:20
803 #: ../fish/guestfish-actions.pod:339 ../fish/guestfish-actions.pod:347
804 #: ../fish/guestfish-actions.pod:354 ../fish/guestfish-actions.pod:361
805 #: ../fish/guestfish-actions.pod:1056 ../fish/guestfish-actions.pod:1060
806 #: ../fish/guestfish-actions.pod:1064 ../fish/guestfish-actions.pod:1068
807 #: ../fish/guestfish-actions.pod:1076 ../fish/guestfish-actions.pod:1080
808 #: ../fish/guestfish-actions.pod:1084 ../fish/guestfish-actions.pod:1094
809 #: ../fish/guestfish-actions.pod:1098 ../fish/guestfish-actions.pod:1102
810 #: ../fish/guestfish-actions.pod:1192 ../fish/guestfish-actions.pod:1196
811 #: ../fish/guestfish-actions.pod:1201 ../fish/guestfish-actions.pod:1206
812 #: ../fish/guestfish-actions.pod:1248 ../fish/guestfish-actions.pod:1252
813 #: ../fish/guestfish-actions.pod:1257 ../tools/virt-df.pl:161
814 #: ../tools/virt-df.pl:167 ../tools/virt-resize.pl:348
815 #: ../tools/virt-resize.pl:353 ../tools/virt-resize.pl:363
816 msgid "*"
817 msgstr ""
818
819 # type: textblock
820 #: ../src/guestfs.pod:362
821 msgid ""
822 "The kernel version that the command runs under will be different from what "
823 "it expects."
824 msgstr ""
825
826 # type: textblock
827 #: ../src/guestfs.pod:367
828 msgid ""
829 "If the command needs to communicate with daemons, then most likely they "
830 "won't be running."
831 msgstr ""
832
833 # type: textblock
834 #: ../src/guestfs.pod:372
835 msgid "The command will be running in limited memory."
836 msgstr ""
837
838 # type: textblock
839 #: ../src/guestfs.pod:376
840 msgid ""
841 "The network may not be available unless you enable it (see L</"
842 "guestfs_set_network>)."
843 msgstr ""
844
845 # type: textblock
846 #: ../src/guestfs.pod:381
847 msgid "Only supports Linux guests (not Windows, BSD, etc)."
848 msgstr ""
849
850 # type: textblock
851 #: ../src/guestfs.pod:385
852 msgid ""
853 "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
854 msgstr ""
855
856 # type: textblock
857 #: ../src/guestfs.pod:390
858 msgid ""
859 "For SELinux guests, you may need to enable SELinux and load policy first.  "
860 "See L</SELINUX> in this manpage."
861 msgstr ""
862
863 # type: textblock
864 #: ../src/guestfs.pod:395
865 msgid ""
866 "The two main API calls to run commands are L</guestfs_command> and L</"
867 "guestfs_sh> (there are also variations)."
868 msgstr ""
869
870 # type: textblock
871 #: ../src/guestfs.pod:398
872 msgid ""
873 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
874 "shell globs, redirections, etc will work."
875 msgstr ""
876
877 # type: =head2
878 #: ../src/guestfs.pod:401
879 msgid "CONFIGURATION FILES"
880 msgstr ""
881
882 # type: textblock
883 #: ../src/guestfs.pod:403
884 msgid ""
885 "To read and write configuration files in Linux guest filesystems, we "
886 "strongly recommend using Augeas.  For example, Augeas understands how to "
887 "read and write, say, a Linux shadow password file or X.org configuration "
888 "file, and so avoids you having to write that code."
889 msgstr ""
890
891 # type: textblock
892 #: ../src/guestfs.pod:408
893 msgid ""
894 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't "
895 "document Augeas itself here because there is excellent documentation on the "
896 "L<http://augeas.net/> website."
897 msgstr ""
898
899 # type: textblock
900 #: ../src/guestfs.pod:412
901 msgid ""
902 "If you don't want to use Augeas (you fool!) then try calling L</"
903 "guestfs_read_lines> to get the file as a list of lines which you can iterate "
904 "over."
905 msgstr ""
906
907 # type: =head2
908 #: ../src/guestfs.pod:416
909 msgid "SELINUX"
910 msgstr ""
911
912 # type: textblock
913 #: ../src/guestfs.pod:418
914 msgid ""
915 "We support SELinux guests.  To ensure that labeling happens correctly in "
916 "SELinux guests, you need to enable SELinux and load the guest's policy:"
917 msgstr ""
918
919 # type: =item
920 #: ../src/guestfs.pod:424
921 msgid "1."
922 msgstr ""
923
924 # type: textblock
925 #: ../src/guestfs.pod:426
926 msgid "Before launching, do:"
927 msgstr ""
928
929 # type: verbatim
930 #: ../src/guestfs.pod:428
931 #, no-wrap
932 msgid ""
933 " guestfs_set_selinux (g, 1);\n"
934 "\n"
935 msgstr ""
936
937 # type: =item
938 #: ../src/guestfs.pod:430
939 msgid "2."
940 msgstr ""
941
942 # type: textblock
943 #: ../src/guestfs.pod:432
944 msgid ""
945 "After mounting the guest's filesystem(s), load the policy.  This is best "
946 "done by running the L<load_policy(8)> command in the guest itself:"
947 msgstr ""
948
949 # type: verbatim
950 #: ../src/guestfs.pod:436
951 #, no-wrap
952 msgid ""
953 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
954 "\n"
955 msgstr ""
956
957 # type: textblock
958 #: ../src/guestfs.pod:438
959 msgid ""
960 "(Older versions of C<load_policy> require you to specify the name of the "
961 "policy file)."
962 msgstr ""
963
964 # type: =item
965 #: ../src/guestfs.pod:441
966 msgid "3."
967 msgstr ""
968
969 # type: textblock
970 #: ../src/guestfs.pod:443
971 msgid ""
972 "Optionally, set the security context for the API.  The correct security "
973 "context to use can only be known by inspecting the guest.  As an example:"
974 msgstr ""
975
976 # type: verbatim
977 #: ../src/guestfs.pod:447
978 #, no-wrap
979 msgid ""
980 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
981 "\n"
982 msgstr ""
983
984 # type: textblock
985 #: ../src/guestfs.pod:451
986 msgid "This will work for running commands and editing existing files."
987 msgstr ""
988
989 # type: textblock
990 #: ../src/guestfs.pod:453
991 msgid ""
992 "When new files are created, you may need to label them explicitly, for "
993 "example by running the external command C<restorecon pathname>."
994 msgstr ""
995
996 # type: =head2
997 #: ../src/guestfs.pod:457
998 msgid "UMASK"
999 msgstr ""
1000
1001 # type: textblock
1002 #: ../src/guestfs.pod:459
1003 msgid ""
1004 "Certain calls are affected by the current file mode creation mask (the "
1005 "\"umask\").  In particular ones which create files or directories, such as "
1006 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
1007 "either the default mode that the file is created with or modifies the mode "
1008 "that you supply."
1009 msgstr ""
1010
1011 # type: textblock
1012 #: ../src/guestfs.pod:465
1013 msgid ""
1014 "The default umask is C<022>, so files are created with modes such as C<0644> "
1015 "and directories with C<0755>."
1016 msgstr ""
1017
1018 # type: textblock
1019 #: ../src/guestfs.pod:468
1020 msgid ""
1021 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
1022 "(call C<guestfs_umask (g, 0)> early after launching).  Or call L</"
1023 "guestfs_chmod> after creating each file or directory."
1024 msgstr ""
1025
1026 # type: textblock
1027 #: ../src/guestfs.pod:472
1028 msgid "For more information about umask, see L<umask(2)>."
1029 msgstr ""
1030
1031 # type: =head1
1032 #: ../src/guestfs.pod:474 ../fish/guestfish.pod:630
1033 msgid "ENCRYPTED DISKS"
1034 msgstr ""
1035
1036 # type: textblock
1037 #: ../src/guestfs.pod:476
1038 msgid ""
1039 "Libguestfs allows you to access Linux guests which have been encrypted using "
1040 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
1041 "standard.  This includes nearly all whole disk encryption systems used by "
1042 "modern Linux guests."
1043 msgstr ""
1044
1045 # type: textblock
1046 #: ../src/guestfs.pod:482
1047 msgid ""
1048 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
1049 "returns the string C<crypto_LUKS>)."
1050 msgstr ""
1051
1052 # type: textblock
1053 #: ../src/guestfs.pod:485
1054 msgid ""
1055 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
1056 "will require the passphrase!"
1057 msgstr ""
1058
1059 # type: textblock
1060 #: ../src/guestfs.pod:488
1061 msgid ""
1062 "Opening a LUKS device creates a new device mapper device called C</dev/"
1063 "mapper/mapname> (where C<mapname> is the string you supply to L</"
1064 "guestfs_luks_open>).  Reads and writes to this mapper device are decrypted "
1065 "from and encrypted to the underlying block device respectively."
1066 msgstr ""
1067
1068 # type: textblock
1069 #: ../src/guestfs.pod:494
1070 msgid ""
1071 "LVM volume groups on the device can be made visible by calling L</"
1072 "guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical volume"
1073 "(s) can now be mounted in the usual way."
1074 msgstr ""
1075
1076 # type: textblock
1077 #: ../src/guestfs.pod:498
1078 msgid ""
1079 "Use the reverse process to close a LUKS device.  Unmount any logical volumes "
1080 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
1081 "[\"/dev/VG\"])>.  Then close the mapper device by calling L</"
1082 "guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
1083 "underlying encrypted block device)."
1084 msgstr ""
1085
1086 # type: =head2
1087 #: ../src/guestfs.pod:505
1088 msgid "INSPECTION"
1089 msgstr ""
1090
1091 # type: textblock
1092 #: ../src/guestfs.pod:507
1093 msgid ""
1094 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
1095 "contains operating systems.  (These APIs used to be in a separate Perl-only "
1096 "library called L<Sys::Guestfs::Lib(3)> but since version 1.5.3 the most "
1097 "frequently used part of this library has been rewritten in C and moved into "
1098 "the core code)."
1099 msgstr ""
1100
1101 # type: textblock
1102 #: ../src/guestfs.pod:513
1103 msgid ""
1104 "Add all disks belonging to the unknown virtual machine and call L</"
1105 "guestfs_launch> in the usual way."
1106 msgstr ""
1107
1108 # type: textblock
1109 #: ../src/guestfs.pod:516
1110 msgid ""
1111 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
1112 "and certain heuristics, and returns a list of operating systems that were "
1113 "found.  An empty list means none were found.  A single element is the root "
1114 "filesystem of the operating system.  For dual- or multi-boot guests, "
1115 "multiple roots can be returned, each one corresponding to a separate "
1116 "operating system.  (Multi-boot virtual machines are extremely rare in the "
1117 "world of virtualization, but since this scenario can happen, we have built "
1118 "libguestfs to deal with it.)"
1119 msgstr ""
1120
1121 # type: textblock
1122 #: ../src/guestfs.pod:525
1123 msgid ""
1124 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
1125 "to get additional details about that operating system.  For example, call L</"
1126 "guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
1127 "Windows and Linux-based operating systems respectively."
1128 msgstr ""
1129
1130 # type: textblock
1131 #: ../src/guestfs.pod:531
1132 msgid ""
1133 "Un*x-like and Linux-based operating systems usually consist of several "
1134 "filesystems which are mounted at boot time (for example, a separate boot "
1135 "partition mounted on C</boot>).  The inspection rules are able to detect how "
1136 "filesystems correspond to mount points.  Call "
1137 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
1138 "hash table like this example:"
1139 msgstr ""
1140
1141 # type: verbatim
1142 #: ../src/guestfs.pod:538
1143 #, no-wrap
1144 msgid ""
1145 " /boot => /dev/sda1\n"
1146 " /     => /dev/vg_guest/lv_root\n"
1147 " /usr  => /dev/vg_guest/lv_usr\n"
1148 "\n"
1149 msgstr ""
1150
1151 # type: textblock
1152 #: ../src/guestfs.pod:542
1153 msgid ""
1154 "The caller can then make calls to L</guestfs_mount_options> to mount the "
1155 "filesystems as suggested."
1156 msgstr ""
1157
1158 # type: textblock
1159 #: ../src/guestfs.pod:545
1160 msgid ""
1161 "Be careful to mount filesystems in the right order (eg. C</> before C</"
1162 "usr>).  Sorting the keys of the hash by length, shortest first, should work."
1163 msgstr ""
1164
1165 # type: textblock
1166 #: ../src/guestfs.pod:549
1167 msgid ""
1168 "Inspection currently only works for some common operating systems.  "
1169 "Contributors are welcome to send patches for other operating systems that we "
1170 "currently cannot detect."
1171 msgstr ""
1172
1173 # type: textblock
1174 #: ../src/guestfs.pod:553
1175 msgid ""
1176 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
1177 "for more details.  The L</guestfs_inspect_os> function just ignores any "
1178 "encrypted devices."
1179 msgstr ""
1180
1181 # type: textblock
1182 #: ../src/guestfs.pod:557
1183 msgid ""
1184 "A note on the implementation: The call L</guestfs_inspect_os> performs "
1185 "inspection and caches the results in the guest handle.  Subsequent calls to "
1186 "C<guestfs_inspect_get_*> return this cached information, but I<do not> re-"
1187 "read the disks.  If you change the content of the guest disks, you can redo "
1188 "inspection by calling L</guestfs_inspect_os> again."
1189 msgstr ""
1190
1191 # type: =head2
1192 #: ../src/guestfs.pod:564
1193 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
1194 msgstr ""
1195
1196 # type: textblock
1197 #: ../src/guestfs.pod:566
1198 msgid ""
1199 "Libguestfs can mount NTFS partitions.  It does this using the L<http://www."
1200 "ntfs-3g.org/> driver."
1201 msgstr ""
1202
1203 # type: textblock
1204 #: ../src/guestfs.pod:569
1205 msgid ""
1206 "DOS and Windows still use drive letters, and the filesystems are always "
1207 "treated as case insensitive by Windows itself, and therefore you might find "
1208 "a Windows configuration file referring to a path like C<c:\\windows"
1209 "\\system32>.  When the filesystem is mounted in libguestfs, that directory "
1210 "might be referred to as C</WINDOWS/System32>."
1211 msgstr ""
1212
1213 # type: textblock
1214 #: ../src/guestfs.pod:575
1215 msgid ""
1216 "Drive letter mappings are outside the scope of libguestfs.  You have to use "
1217 "libguestfs to read the appropriate Windows Registry and configuration files, "
1218 "to determine yourself how drives are mapped (see also L<hivex(3)> and L<virt-"
1219 "inspector(1)>)."
1220 msgstr ""
1221
1222 # type: textblock
1223 #: ../src/guestfs.pod:580
1224 msgid ""
1225 "Replacing backslash characters with forward slash characters is also outside "
1226 "the scope of libguestfs, but something that you can easily do."
1227 msgstr ""
1228
1229 # type: textblock
1230 #: ../src/guestfs.pod:583
1231 msgid ""
1232 "Where we can help is in resolving the case insensitivity of paths.  For "
1233 "this, call L</guestfs_case_sensitive_path>."
1234 msgstr ""
1235
1236 # type: textblock
1237 #: ../src/guestfs.pod:586
1238 msgid ""
1239 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
1240 "files, through the library C<hivex> which is part of the libguestfs project "
1241 "although ships as a separate tarball.  You have to locate and download the "
1242 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
1243 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and L<virt-win-"
1244 "reg(1)> for more help on this issue."
1245 msgstr ""
1246
1247 # type: =head2
1248 #: ../src/guestfs.pod:594
1249 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
1250 msgstr ""
1251
1252 # type: textblock
1253 #: ../src/guestfs.pod:596
1254 msgid ""
1255 "Although we don't want to discourage you from using the C API, we will "
1256 "mention here that the same API is also available in other languages."
1257 msgstr ""
1258
1259 # type: textblock
1260 #: ../src/guestfs.pod:599
1261 msgid ""
1262 "The API is broadly identical in all supported languages.  This means that "
1263 "the C call C<guestfs_mount(g,path)> is C<$g-E<gt>mount($path)> in Perl, C<g."
1264 "mount(path)> in Python, and C<Guestfs.mount g path> in OCaml.  In other "
1265 "words, a straightforward, predictable isomorphism between each language."
1266 msgstr ""
1267
1268 # type: textblock
1269 #: ../src/guestfs.pod:605
1270 msgid ""
1271 "Error messages are automatically transformed into exceptions if the language "
1272 "supports it."
1273 msgstr ""
1274
1275 # type: textblock
1276 #: ../src/guestfs.pod:608
1277 msgid ""
1278 "We don't try to \"object orientify\" parts of the API in OO languages, "
1279 "although contributors are welcome to write higher level APIs above what we "
1280 "provide in their favourite languages if they wish."
1281 msgstr ""
1282
1283 # type: =item
1284 #: ../src/guestfs.pod:614
1285 msgid "B<C++>"
1286 msgstr ""
1287
1288 # type: textblock
1289 #: ../src/guestfs.pod:616
1290 msgid ""
1291 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
1292 "identical to the C API.  C++ classes and exceptions are not used."
1293 msgstr ""
1294
1295 # type: =item
1296 #: ../src/guestfs.pod:620
1297 msgid "B<C#>"
1298 msgstr ""
1299
1300 # type: textblock
1301 #: ../src/guestfs.pod:622
1302 msgid ""
1303 "The C# bindings are highly experimental.  Please read the warnings at the "
1304 "top of C<csharp/Libguestfs.cs>."
1305 msgstr ""
1306
1307 # type: =item
1308 #: ../src/guestfs.pod:625
1309 msgid "B<Haskell>"
1310 msgstr ""
1311
1312 # type: textblock
1313 #: ../src/guestfs.pod:627
1314 msgid ""
1315 "This is the only language binding that is working but incomplete.  Only "
1316 "calls which return simple integers have been bound in Haskell, and we are "
1317 "looking for help to complete this binding."
1318 msgstr ""
1319
1320 # type: =item
1321 #: ../src/guestfs.pod:631
1322 msgid "B<Java>"
1323 msgstr ""
1324
1325 # type: textblock
1326 #: ../src/guestfs.pod:633
1327 msgid ""
1328 "Full documentation is contained in the Javadoc which is distributed with "
1329 "libguestfs."
1330 msgstr ""
1331
1332 # type: =item
1333 #: ../src/guestfs.pod:636
1334 msgid "B<OCaml>"
1335 msgstr ""
1336
1337 # type: textblock
1338 #: ../src/guestfs.pod:638
1339 msgid "For documentation see the file C<guestfs.mli>."
1340 msgstr ""
1341
1342 # type: =item
1343 #: ../src/guestfs.pod:640
1344 msgid "B<Perl>"
1345 msgstr ""
1346
1347 # type: textblock
1348 #: ../src/guestfs.pod:642
1349 msgid "For documentation see L<Sys::Guestfs(3)>."
1350 msgstr ""
1351
1352 # type: =item
1353 #: ../src/guestfs.pod:644
1354 msgid "B<PHP>"
1355 msgstr ""
1356
1357 # type: textblock
1358 #: ../src/guestfs.pod:646
1359 msgid ""
1360 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
1361 "the php-libguestfs package for your distribution."
1362 msgstr ""
1363
1364 # type: textblock
1365 #: ../src/guestfs.pod:649
1366 msgid "The PHP binding only works correctly on 64 bit machines."
1367 msgstr ""
1368
1369 # type: =item
1370 #: ../src/guestfs.pod:651
1371 msgid "B<Python>"
1372 msgstr ""
1373
1374 # type: textblock
1375 #: ../src/guestfs.pod:653
1376 msgid "For documentation do:"
1377 msgstr ""
1378
1379 # type: verbatim
1380 #: ../src/guestfs.pod:655
1381 #, no-wrap
1382 msgid ""
1383 " $ python\n"
1384 " >>> import guestfs\n"
1385 " >>> help (guestfs)\n"
1386 "\n"
1387 msgstr ""
1388
1389 # type: =item
1390 #: ../src/guestfs.pod:659
1391 msgid "B<Ruby>"
1392 msgstr ""
1393
1394 # type: textblock
1395 #: ../src/guestfs.pod:661
1396 msgid ""
1397 "Use the Guestfs module.  There is no Ruby-specific documentation, but you "
1398 "can find examples written in Ruby in the libguestfs source."
1399 msgstr ""
1400
1401 # type: =item
1402 #: ../src/guestfs.pod:664
1403 msgid "B<shell scripts>"
1404 msgstr ""
1405
1406 # type: textblock
1407 #: ../src/guestfs.pod:666
1408 msgid "For documentation see L<guestfish(1)>."
1409 msgstr ""
1410
1411 # type: =head2
1412 #: ../src/guestfs.pod:670
1413 msgid "LIBGUESTFS GOTCHAS"
1414 msgstr ""
1415
1416 # type: textblock
1417 #: ../src/guestfs.pod:672
1418 msgid ""
1419 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
1420 "system [...] that works in the way it is documented but is counterintuitive "
1421 "and almost invites mistakes.\""
1422 msgstr ""
1423
1424 # type: textblock
1425 #: ../src/guestfs.pod:676
1426 msgid ""
1427 "Since we developed libguestfs and the associated tools, there are several "
1428 "things we would have designed differently, but are now stuck with for "
1429 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
1430 "release, you can expect these to change.  Beware of them."
1431 msgstr ""
1432
1433 # type: =item
1434 #: ../src/guestfs.pod:684
1435 msgid "Autosync / forgetting to sync."
1436 msgstr ""
1437
1438 # type: textblock
1439 #: ../src/guestfs.pod:686
1440 msgid ""
1441 "When modifying a filesystem from C or another language, you B<must> unmount "
1442 "all filesystems and call L</guestfs_sync> explicitly before you close the "
1443 "libguestfs handle.  You can also call:"
1444 msgstr ""
1445
1446 # type: verbatim
1447 #: ../src/guestfs.pod:690
1448 #, no-wrap
1449 msgid ""
1450 " guestfs_set_autosync (g, 1);\n"
1451 "\n"
1452 msgstr ""
1453
1454 # type: textblock
1455 #: ../src/guestfs.pod:692
1456 msgid ""
1457 "to have the unmount/sync done automatically for you when the handle 'g' is "
1458 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> q.v.)"
1459 msgstr ""
1460
1461 # type: textblock
1462 #: ../src/guestfs.pod:696
1463 msgid ""
1464 "If you forget to do this, then it is entirely possible that your changes "
1465 "won't be written out, or will be partially written, or (very rarely) that "
1466 "you'll get disk corruption."
1467 msgstr ""
1468
1469 # type: textblock
1470 #: ../src/guestfs.pod:700
1471 msgid ""
1472 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
1473 "guestfish scripts that forget to sync will work just fine, which can make "
1474 "this very puzzling if you are trying to debug a problem."
1475 msgstr ""
1476
1477 # type: =item
1478 #: ../src/guestfs.pod:704
1479 msgid "Mount option C<-o sync> should not be the default."
1480 msgstr ""
1481
1482 # type: textblock
1483 #: ../src/guestfs.pod:706
1484 msgid ""
1485 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
1486 "However C<-o sync> does not add any reliability benefit, but does have a "
1487 "very large performance impact."
1488 msgstr ""
1489
1490 # type: textblock
1491 #: ../src/guestfs.pod:710
1492 msgid ""
1493 "The work around is to use L</guestfs_mount_options> and set the mount "
1494 "options that you actually want to use."
1495 msgstr ""
1496
1497 # type: =item
1498 #: ../src/guestfs.pod:713
1499 msgid "Read-only should be the default."
1500 msgstr ""
1501
1502 # type: textblock
1503 #: ../src/guestfs.pod:715
1504 msgid ""
1505 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
1506 "specify I<--rw> if you want to make changes to the image."
1507 msgstr ""
1508
1509 # type: textblock
1510 #: ../src/guestfs.pod:718
1511 msgid "This would reduce the potential to corrupt live VM images."
1512 msgstr ""
1513
1514 # type: textblock
1515 #: ../src/guestfs.pod:720
1516 msgid ""
1517 "Note that many filesystems change the disk when you just mount and unmount, "
1518 "even if you didn't perform any writes.  You need to use L</"
1519 "guestfs_add_drive_ro> to guarantee that the disk is not changed."
1520 msgstr ""
1521
1522 # type: =item
1523 #: ../src/guestfs.pod:724
1524 msgid "guestfish command line is hard to use."
1525 msgstr ""
1526
1527 # type: textblock
1528 #: ../src/guestfs.pod:726
1529 msgid ""
1530 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
1531 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
1532 "exist, so it fails.  In earlier versions of guestfish the error message was "
1533 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
1534 "we should have used C<guestfish -c command> to run commands."
1535 msgstr ""
1536
1537 # type: =item
1538 #: ../src/guestfs.pod:733
1539 msgid "guestfish megabyte modifiers don't work right on all commands"
1540 msgstr ""
1541
1542 # type: textblock
1543 #: ../src/guestfs.pod:735
1544 msgid ""
1545 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
1546 "other modifiers).  What guestfish actually does is to multiply the number "
1547 "part by the modifier part and pass the result to the C API.  However this "
1548 "doesn't work for a few APIs which aren't expecting bytes, but are already "
1549 "expecting some other unit (eg. megabytes)."
1550 msgstr ""
1551
1552 # type: textblock
1553 #: ../src/guestfs.pod:742
1554 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
1555 msgstr ""
1556
1557 # type: verbatim
1558 #: ../src/guestfs.pod:744
1559 #, no-wrap
1560 msgid ""
1561 " lvcreate LV VG 100M\n"
1562 "\n"
1563 msgstr ""
1564
1565 # type: textblock
1566 #: ../src/guestfs.pod:746
1567 msgid ""
1568 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
1569 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
1570 "megabytes * megabytes) logical volume.  The error message you get from this "
1571 "is also a little obscure."
1572 msgstr ""
1573
1574 # type: textblock
1575 #: ../src/guestfs.pod:751
1576 msgid ""
1577 "This could be fixed in the generator by specially marking parameters and "
1578 "return values which take bytes or other units."
1579 msgstr ""
1580
1581 # type: =item
1582 #: ../src/guestfs.pod:754
1583 msgid "Library should return errno with error messages."
1584 msgstr ""
1585
1586 # type: textblock
1587 #: ../src/guestfs.pod:756
1588 msgid ""
1589 "It would be a nice-to-have to be able to get the original value of 'errno' "
1590 "from inside the appliance along error paths (where set).  Currently "
1591 "L<guestmount(1)> goes through hoops to try to reverse the error message "
1592 "string into an errno, see the function error() in fuse/guestmount.c."
1593 msgstr ""
1594
1595 # type: textblock
1596 #: ../src/guestfs.pod:762
1597 msgid ""
1598 "In libguestfs 1.5.4, the protocol was changed so that the Linux errno is "
1599 "sent back from the daemon."
1600 msgstr ""
1601
1602 # type: =item
1603 #: ../src/guestfs.pod:765
1604 msgid "Ambiguity between devices and paths"
1605 msgstr ""
1606
1607 # type: textblock
1608 #: ../src/guestfs.pod:767
1609 msgid ""
1610 "There is a subtle ambiguity in the API between a device name (eg. C</dev/"
1611 "sdb2>) and a similar pathname.  A file might just happen to be called "
1612 "C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
1613 msgstr ""
1614
1615 # type: textblock
1616 #: ../src/guestfs.pod:772
1617 msgid ""
1618 "In the current API we usually resolve this ambiguity by having two separate "
1619 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
1620 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
1621 "detecting if the path supplied begins with C</dev/>."
1622 msgstr ""
1623
1624 # type: textblock
1625 #: ../src/guestfs.pod:778
1626 msgid ""
1627 "To avoid both the ambiguity and the need to duplicate some calls, we could "
1628 "make paths/devices into structured names.  One way to do this would be to "
1629 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
1630 "aspect of grub.  Another way would be to use a structured type, equivalent "
1631 "to this OCaml type:"
1632 msgstr ""
1633
1634 # type: verbatim
1635 #: ../src/guestfs.pod:784
1636 #, no-wrap
1637 msgid ""
1638 " type path = Path of string | Device of int | Partition of int * int\n"
1639 "\n"
1640 msgstr ""
1641
1642 # type: textblock
1643 #: ../src/guestfs.pod:786
1644 msgid "which would allow you to pass arguments like:"
1645 msgstr ""
1646
1647 # type: verbatim
1648 #: ../src/guestfs.pod:788
1649 #, no-wrap
1650 msgid ""
1651 " Path \"/foo/bar\"\n"
1652 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
1653 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
1654 " Path \"/dev/sdb2\"    (* not a device *)\n"
1655 "\n"
1656 msgstr ""
1657
1658 # type: textblock
1659 #: ../src/guestfs.pod:793
1660 msgid ""
1661 "As you can see there are still problems to resolve even with this "
1662 "representation.  Also consider how it might work in guestfish."
1663 msgstr ""
1664
1665 # type: =head2
1666 #: ../src/guestfs.pod:798
1667 msgid "PROTOCOL LIMITS"
1668 msgstr ""
1669
1670 # type: textblock
1671 #: ../src/guestfs.pod:800
1672 msgid ""
1673 "Internally libguestfs uses a message-based protocol to pass API calls and "
1674 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
1675 "plenty more detail about this).  The maximum message size used by the "
1676 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
1677 "aware of this limit.  The API calls which may be affected are individually "
1678 "documented, with a link back to this section of the documentation."
1679 msgstr ""
1680
1681 # type: textblock
1682 #: ../src/guestfs.pod:808
1683 msgid ""
1684 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
1685 "a simple string.  Because this string is at some point internally encoded as "
1686 "a message, the maximum size that it can return is slightly under 4 MB.  If "
1687 "the requested file is larger than this then you will get an error."
1688 msgstr ""
1689
1690 # type: textblock
1691 #: ../src/guestfs.pod:814
1692 msgid ""
1693 "In order to transfer large files into and out of the guest filesystem, you "
1694 "need to use particular calls that support this.  The sections L</UPLOADING> "
1695 "and L</DOWNLOADING> document how to do this."
1696 msgstr ""
1697
1698 # type: textblock
1699 #: ../src/guestfs.pod:818
1700 msgid ""
1701 "You might also consider mounting the disk image using our FUSE filesystem "
1702 "support (L<guestmount(1)>)."
1703 msgstr ""
1704
1705 # type: =head2
1706 #: ../src/guestfs.pod:821
1707 msgid "KEYS AND PASSPHRASES"
1708 msgstr ""
1709
1710 # type: textblock
1711 #: ../src/guestfs.pod:823
1712 msgid ""
1713 "Certain libguestfs calls take a parameter that contains sensitive key "
1714 "material, passed in as a C string."
1715 msgstr ""
1716
1717 # type: textblock
1718 #: ../src/guestfs.pod:826
1719 msgid ""
1720 "In the future we would hope to change the libguestfs implementation so that "
1721 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
1722 "swap.  However this is I<not> done at the moment, because of the complexity "
1723 "of such an implementation."
1724 msgstr ""
1725
1726 # type: textblock
1727 #: ../src/guestfs.pod:831
1728 msgid ""
1729 "Therefore you should be aware that any key parameter you pass to libguestfs "
1730 "might end up being written out to the swap partition.  If this is a concern, "
1731 "scrub the swap partition or don't use libguestfs on encrypted devices."
1732 msgstr ""
1733
1734 # type: =head1
1735 #: ../src/guestfs.pod:836
1736 msgid "CONNECTION MANAGEMENT"
1737 msgstr ""
1738
1739 # type: =head2
1740 #: ../src/guestfs.pod:838
1741 msgid "guestfs_h *"
1742 msgstr ""
1743
1744 # type: textblock
1745 #: ../src/guestfs.pod:840
1746 msgid ""
1747 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
1748 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
1749 "handle and release all resources used."
1750 msgstr ""
1751
1752 # type: textblock
1753 #: ../src/guestfs.pod:844
1754 msgid ""
1755 "For information on using multiple handles and threads, see the section L</"
1756 "MULTIPLE HANDLES AND MULTIPLE THREADS> below."
1757 msgstr ""
1758
1759 # type: =head2
1760 #: ../src/guestfs.pod:847
1761 msgid "guestfs_create"
1762 msgstr ""
1763
1764 # type: verbatim
1765 #: ../src/guestfs.pod:849
1766 #, no-wrap
1767 msgid ""
1768 " guestfs_h *guestfs_create (void);\n"
1769 "\n"
1770 msgstr ""
1771
1772 # type: textblock
1773 #: ../src/guestfs.pod:851
1774 msgid "Create a connection handle."
1775 msgstr ""
1776
1777 # type: textblock
1778 #: ../src/guestfs.pod:853
1779 msgid ""
1780 "You have to call L</guestfs_add_drive_opts> (or one of the equivalent calls) "
1781 "on the handle at least once."
1782 msgstr ""
1783
1784 # type: textblock
1785 #: ../src/guestfs.pod:856
1786 msgid ""
1787 "This function returns a non-NULL pointer to a handle on success or NULL on "
1788 "error."
1789 msgstr ""
1790
1791 # type: textblock
1792 #: ../src/guestfs.pod:859
1793 msgid "After configuring the handle, you have to call L</guestfs_launch>."
1794 msgstr ""
1795
1796 # type: textblock
1797 #: ../src/guestfs.pod:861
1798 msgid ""
1799 "You may also want to configure error handling for the handle.  See L</ERROR "
1800 "HANDLING> section below."
1801 msgstr ""
1802
1803 # type: =head2
1804 #: ../src/guestfs.pod:864
1805 msgid "guestfs_close"
1806 msgstr ""
1807
1808 # type: verbatim
1809 #: ../src/guestfs.pod:866
1810 #, no-wrap
1811 msgid ""
1812 " void guestfs_close (guestfs_h *g);\n"
1813 "\n"
1814 msgstr ""
1815
1816 # type: textblock
1817 #: ../src/guestfs.pod:868
1818 msgid "This closes the connection handle and frees up all resources used."
1819 msgstr ""
1820
1821 # type: =head1
1822 #: ../src/guestfs.pod:870
1823 msgid "ERROR HANDLING"
1824 msgstr ""
1825
1826 # type: textblock
1827 #: ../src/guestfs.pod:872
1828 msgid ""
1829 "The convention in all functions that return C<int> is that they return C<-1> "
1830 "to indicate an error.  You can get additional information on errors by "
1831 "calling L</guestfs_last_error> and/or by setting up an error handler with L</"
1832 "guestfs_set_error_handler>."
1833 msgstr ""
1834
1835 # type: textblock
1836 #: ../src/guestfs.pod:877
1837 msgid "The default error handler prints the information string to C<stderr>."
1838 msgstr ""
1839
1840 # type: textblock
1841 #: ../src/guestfs.pod:879
1842 msgid ""
1843 "Out of memory errors are handled differently.  The default action is to call "
1844 "L<abort(3)>.  If this is undesirable, then you can set a handler using L</"
1845 "guestfs_set_out_of_memory_handler>."
1846 msgstr ""
1847
1848 # type: =head2
1849 #: ../src/guestfs.pod:883
1850 msgid "guestfs_last_error"
1851 msgstr ""
1852
1853 # type: verbatim
1854 #: ../src/guestfs.pod:885
1855 #, no-wrap
1856 msgid ""
1857 " const char *guestfs_last_error (guestfs_h *g);\n"
1858 "\n"
1859 msgstr ""
1860
1861 # type: textblock
1862 #: ../src/guestfs.pod:887
1863 msgid ""
1864 "This returns the last error message that happened on C<g>.  If there has not "
1865 "been an error since the handle was created, then this returns C<NULL>."
1866 msgstr ""
1867
1868 # type: textblock
1869 #: ../src/guestfs.pod:891
1870 msgid ""
1871 "The lifetime of the returned string is until the next error occurs, or L</"
1872 "guestfs_close> is called."
1873 msgstr ""
1874
1875 # type: textblock
1876 #: ../src/guestfs.pod:894
1877 msgid ""
1878 "The error string is not localized (ie. is always in English), because this "
1879 "makes searching for error messages in search engines give the largest number "
1880 "of results."
1881 msgstr ""
1882
1883 # type: =head2
1884 #: ../src/guestfs.pod:898
1885 msgid "guestfs_set_error_handler"
1886 msgstr ""
1887
1888 # type: verbatim
1889 #: ../src/guestfs.pod:900
1890 #, no-wrap
1891 msgid ""
1892 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
1893 "                                           void *opaque,\n"
1894 "                                           const char *msg);\n"
1895 " void guestfs_set_error_handler (guestfs_h *g,\n"
1896 "                                 guestfs_error_handler_cb cb,\n"
1897 "                                 void *opaque);\n"
1898 "\n"
1899 msgstr ""
1900
1901 # type: textblock
1902 #: ../src/guestfs.pod:907
1903 msgid ""
1904 "The callback C<cb> will be called if there is an error.  The parameters "
1905 "passed to the callback are an opaque data pointer and the error message "
1906 "string."
1907 msgstr ""
1908
1909 # type: textblock
1910 #: ../src/guestfs.pod:911
1911 msgid ""
1912 "Note that the message string C<msg> is freed as soon as the callback "
1913 "function returns, so if you want to stash it somewhere you must make your "
1914 "own copy."
1915 msgstr ""
1916
1917 # type: textblock
1918 #: ../src/guestfs.pod:915
1919 msgid "The default handler prints messages on C<stderr>."
1920 msgstr ""
1921
1922 # type: textblock
1923 #: ../src/guestfs.pod:917
1924 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
1925 msgstr ""
1926
1927 # type: =head2
1928 #: ../src/guestfs.pod:919
1929 msgid "guestfs_get_error_handler"
1930 msgstr ""
1931
1932 # type: verbatim
1933 #: ../src/guestfs.pod:921
1934 #, no-wrap
1935 msgid ""
1936 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
1937 "                                                     void **opaque_rtn);\n"
1938 "\n"
1939 msgstr ""
1940
1941 # type: textblock
1942 #: ../src/guestfs.pod:924
1943 msgid "Returns the current error handler callback."
1944 msgstr ""
1945
1946 # type: =head2
1947 #: ../src/guestfs.pod:926
1948 msgid "guestfs_set_out_of_memory_handler"
1949 msgstr ""
1950
1951 # type: verbatim
1952 #: ../src/guestfs.pod:928
1953 #, no-wrap
1954 msgid ""
1955 " typedef void (*guestfs_abort_cb) (void);\n"
1956 " int guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
1957 "                                        guestfs_abort_cb);\n"
1958 "\n"
1959 msgstr ""
1960
1961 # type: textblock
1962 #: ../src/guestfs.pod:932
1963 msgid ""
1964 "The callback C<cb> will be called if there is an out of memory situation.  "
1965 "I<Note this callback must not return>."
1966 msgstr ""
1967
1968 # type: textblock
1969 #: ../src/guestfs.pod:935
1970 msgid "The default is to call L<abort(3)>."
1971 msgstr ""
1972
1973 # type: textblock
1974 #: ../src/guestfs.pod:937
1975 msgid ""
1976 "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
1977 msgstr ""
1978
1979 # type: =head2
1980 #: ../src/guestfs.pod:940
1981 msgid "guestfs_get_out_of_memory_handler"
1982 msgstr ""
1983
1984 # type: verbatim
1985 #: ../src/guestfs.pod:942
1986 #, no-wrap
1987 msgid ""
1988 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
1989 "\n"
1990 msgstr ""
1991
1992 # type: textblock
1993 #: ../src/guestfs.pod:944
1994 msgid "This returns the current out of memory handler."
1995 msgstr ""
1996
1997 # type: =head1
1998 #: ../src/guestfs.pod:946
1999 msgid "PATH"
2000 msgstr ""
2001
2002 # type: textblock
2003 #: ../src/guestfs.pod:948
2004 msgid ""
2005 "Libguestfs needs a kernel and initrd.img, which it finds by looking along an "
2006 "internal path."
2007 msgstr ""
2008
2009 # type: textblock
2010 #: ../src/guestfs.pod:951
2011 msgid ""
2012 "By default it looks for these in the directory C<$libdir/guestfs> (eg. C</"
2013 "usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
2014 msgstr ""
2015
2016 # type: textblock
2017 #: ../src/guestfs.pod:954
2018 msgid ""
2019 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
2020 "to change the directories that libguestfs will search in.  The value is a "
2021 "colon-separated list of paths.  The current directory is I<not> searched "
2022 "unless the path contains an empty element or C<.>.  For example "
2023 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
2024 "then C</usr/lib/guestfs>."
2025 msgstr ""
2026
2027 # type: =head1
2028 #: ../src/guestfs.pod:961
2029 msgid "HIGH-LEVEL API ACTIONS"
2030 msgstr ""
2031
2032 # type: =head2
2033 #: ../src/guestfs.pod:963
2034 msgid "ABI GUARANTEE"
2035 msgstr ""
2036
2037 # type: textblock
2038 #: ../src/guestfs.pod:965
2039 msgid ""
2040 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
2041 "actions as outlined in this section.  Although we will deprecate some "
2042 "actions, for example if they get replaced by newer calls, we will keep the "
2043 "old actions forever.  This allows you the developer to program in confidence "
2044 "against the libguestfs API."
2045 msgstr ""
2046
2047 # type: textblock
2048 #: ../src/guestfs.pod:971 ../fish/guestfish.pod:860
2049 msgid "@ACTIONS@"
2050 msgstr ""
2051
2052 # type: =head1
2053 #: ../src/guestfs.pod:973
2054 msgid "STRUCTURES"
2055 msgstr ""
2056
2057 # type: textblock
2058 #: ../src/guestfs.pod:975
2059 msgid "@STRUCTS@"
2060 msgstr ""
2061
2062 # type: =head1
2063 #: ../src/guestfs.pod:977
2064 msgid "AVAILABILITY"
2065 msgstr ""
2066
2067 # type: =head2
2068 #: ../src/guestfs.pod:979
2069 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
2070 msgstr ""
2071
2072 # type: textblock
2073 #: ../src/guestfs.pod:981
2074 msgid ""
2075 "Using L</guestfs_available> you can test availability of the following "
2076 "groups of functions.  This test queries the appliance to see if the "
2077 "appliance you are currently using supports the functionality."
2078 msgstr ""
2079
2080 # type: textblock
2081 #: ../src/guestfs.pod:986
2082 msgid "@AVAILABILITY@"
2083 msgstr ""
2084
2085 # type: =head2
2086 #: ../src/guestfs.pod:988
2087 msgid "GUESTFISH supported COMMAND"
2088 msgstr ""
2089
2090 # type: textblock
2091 #: ../src/guestfs.pod:990
2092 msgid ""
2093 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
2094 "prints out the available groups and whether they are supported by this build "
2095 "of libguestfs.  Note however that you have to do C<run> first."
2096 msgstr ""
2097
2098 # type: =head2
2099 #: ../src/guestfs.pod:995
2100 msgid "SINGLE CALLS AT COMPILE TIME"
2101 msgstr ""
2102
2103 # type: textblock
2104 #: ../src/guestfs.pod:997
2105 msgid ""
2106 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
2107 "function, such as:"
2108 msgstr ""
2109
2110 # type: verbatim
2111 #: ../src/guestfs.pod:1000
2112 #, no-wrap
2113 msgid ""
2114 " #define LIBGUESTFS_HAVE_DD 1\n"
2115 "\n"
2116 msgstr ""
2117
2118 # type: textblock
2119 #: ../src/guestfs.pod:1002
2120 msgid "if L</guestfs_dd> is available."
2121 msgstr ""
2122
2123 # type: textblock
2124 #: ../src/guestfs.pod:1004
2125 msgid ""
2126 "Before version 1.5.8, if you needed to test whether a single libguestfs "
2127 "function is available at compile time, we recommended using build tools such "
2128 "as autoconf or cmake.  For example in autotools you could use:"
2129 msgstr ""
2130
2131 # type: verbatim
2132 #: ../src/guestfs.pod:1009
2133 #, no-wrap
2134 msgid ""
2135 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
2136 " AC_CHECK_FUNCS([guestfs_dd])\n"
2137 "\n"
2138 msgstr ""
2139
2140 # type: textblock
2141 #: ../src/guestfs.pod:1012
2142 msgid ""
2143 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
2144 "in your program."
2145 msgstr ""
2146
2147 # type: =head2
2148 #: ../src/guestfs.pod:1015
2149 msgid "SINGLE CALLS AT RUN TIME"
2150 msgstr ""
2151
2152 # type: textblock
2153 #: ../src/guestfs.pod:1017
2154 msgid ""
2155 "Testing at compile time doesn't guarantee that a function really exists in "
2156 "the library.  The reason is that you might be dynamically linked against a "
2157 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
2158 "This situation unfortunately results in a segmentation fault, which is a "
2159 "shortcoming of the C dynamic linking system itself."
2160 msgstr ""
2161
2162 # type: textblock
2163 #: ../src/guestfs.pod:1024
2164 msgid ""
2165 "You can use L<dlopen(3)> to test if a function is available at run time, as "
2166 "in this example program (note that you still need the compile time check as "
2167 "well):"
2168 msgstr ""
2169
2170 # type: verbatim
2171 #: ../src/guestfs.pod:1028
2172 #, no-wrap
2173 msgid ""
2174 " #include <stdio.h>\n"
2175 " #include <stdlib.h>\n"
2176 " #include <unistd.h>\n"
2177 " #include <dlfcn.h>\n"
2178 " #include <guestfs.h>\n"
2179 " \n"
2180 msgstr ""
2181
2182 # type: verbatim
2183 #: ../src/guestfs.pod:1034
2184 #, no-wrap
2185 msgid ""
2186 " main ()\n"
2187 " {\n"
2188 " #ifdef LIBGUESTFS_HAVE_DD\n"
2189 "   void *dl;\n"
2190 "   int has_function;\n"
2191 " \n"
2192 msgstr ""
2193
2194 # type: verbatim
2195 #: ../src/guestfs.pod:1040
2196 #, no-wrap
2197 msgid ""
2198 "   /* Test if the function guestfs_dd is really available. */\n"
2199 "   dl = dlopen (NULL, RTLD_LAZY);\n"
2200 "   if (!dl) {\n"
2201 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
2202 "     exit (EXIT_FAILURE);\n"
2203 "   }\n"
2204 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
2205 "   dlclose (dl);\n"
2206 " \n"
2207 msgstr ""
2208
2209 # type: verbatim
2210 #: ../src/guestfs.pod:1049
2211 #, no-wrap
2212 msgid ""
2213 "   if (!has_function)\n"
2214 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
2215 "   else {\n"
2216 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
2217 "     /* Now it's safe to call\n"
2218 "     guestfs_dd (g, \"foo\", \"bar\");\n"
2219 "     */\n"
2220 "   }\n"
2221 " #else\n"
2222 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
2223 " #endif\n"
2224 "  }\n"
2225 "\n"
2226 msgstr ""
2227
2228 # type: textblock
2229 #: ../src/guestfs.pod:1062
2230 msgid ""
2231 "You may think the above is an awful lot of hassle, and it is.  There are "
2232 "other ways outside of the C linking system to ensure that this kind of "
2233 "incompatibility never arises, such as using package versioning:"
2234 msgstr ""
2235
2236 # type: verbatim
2237 #: ../src/guestfs.pod:1067
2238 #, no-wrap
2239 msgid ""
2240 " Requires: libguestfs >= 1.0.80\n"
2241 "\n"
2242 msgstr ""
2243
2244 # type: =head1
2245 #: ../src/guestfs.pod:1069
2246 msgid "CALLS WITH OPTIONAL ARGUMENTS"
2247 msgstr ""
2248
2249 # type: textblock
2250 #: ../src/guestfs.pod:1071
2251 msgid ""
2252 "A recent feature of the API is the introduction of calls which take optional "
2253 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
2254 "takes variable arguments (ie. C<...>), as in this example:"
2255 msgstr ""
2256
2257 # type: verbatim
2258 #: ../src/guestfs.pod:1076
2259 #, no-wrap
2260 msgid ""
2261 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
2262 "\n"
2263 msgstr ""
2264
2265 # type: textblock
2266 #: ../src/guestfs.pod:1078
2267 msgid ""
2268 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
2269 "call with no optional arguments specified:"
2270 msgstr ""
2271
2272 # type: verbatim
2273 #: ../src/guestfs.pod:1081
2274 #, no-wrap
2275 msgid ""
2276 " guestfs_add_drive_opts (g, filename, -1);\n"
2277 "\n"
2278 msgstr ""
2279
2280 # type: textblock
2281 #: ../src/guestfs.pod:1083
2282 msgid "With a single optional argument:"
2283 msgstr ""
2284
2285 # type: verbatim
2286 #: ../src/guestfs.pod:1085
2287 #, no-wrap
2288 msgid ""
2289 " guestfs_add_drive_opts (g, filename,\n"
2290 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
2291 "                         -1);\n"
2292 "\n"
2293 msgstr ""
2294
2295 # type: textblock
2296 #: ../src/guestfs.pod:1089
2297 msgid "With two:"
2298 msgstr ""
2299
2300 # type: verbatim
2301 #: ../src/guestfs.pod:1091
2302 #, no-wrap
2303 msgid ""
2304 " guestfs_add_drive_opts (g, filename,\n"
2305 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
2306 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
2307 "                         -1);\n"
2308 "\n"
2309 msgstr ""
2310
2311 # type: textblock
2312 #: ../src/guestfs.pod:1096
2313 msgid ""
2314 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
2315 "happen!"
2316 msgstr ""
2317
2318 # type: =head2
2319 #: ../src/guestfs.pod:1099
2320 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
2321 msgstr ""
2322
2323 # type: textblock
2324 #: ../src/guestfs.pod:1101
2325 msgid ""
2326 "The second variant has the same name with the suffix C<_va>, which works the "
2327 "same way but takes a C<va_list>.  See the C manual for details.  For the "
2328 "example function, this is declared:"
2329 msgstr ""
2330
2331 # type: verbatim
2332 #: ../src/guestfs.pod:1105
2333 #, no-wrap
2334 msgid ""
2335 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
2336 "                                va_list args);\n"
2337 "\n"
2338 msgstr ""
2339
2340 # type: =head2
2341 #: ../src/guestfs.pod:1108
2342 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
2343 msgstr ""
2344
2345 # type: textblock
2346 #: ../src/guestfs.pod:1110
2347 msgid ""
2348 "The third variant is useful where you need to construct these calls.  You "
2349 "pass in a structure where you fill in the optional fields.  The structure "
2350 "has a bitmask as the first element which you must set to indicate which "
2351 "fields you have filled in.  For our example function the structure and call "
2352 "are declared:"
2353 msgstr ""
2354
2355 # type: verbatim
2356 #: ../src/guestfs.pod:1116
2357 #, no-wrap
2358 msgid ""
2359 " struct guestfs_add_drive_opts_argv {\n"
2360 "   uint64_t bitmask;\n"
2361 "   int readonly;\n"
2362 "   const char *format;\n"
2363 "   /* ... */\n"
2364 " };\n"
2365 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
2366 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
2367 "\n"
2368 msgstr ""
2369
2370 # type: textblock
2371 #: ../src/guestfs.pod:1125
2372 msgid "You could call it like this:"
2373 msgstr ""
2374
2375 # type: verbatim
2376 #: ../src/guestfs.pod:1127
2377 #, no-wrap
2378 msgid ""
2379 " struct guestfs_add_drive_opts_argv optargs = {\n"
2380 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
2381 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
2382 "   .readonly = 1,\n"
2383 "   .format = \"qcow2\"\n"
2384 " };\n"
2385 " \n"
2386 msgstr ""
2387
2388 # type: verbatim
2389 #: ../src/guestfs.pod:1134
2390 #, no-wrap
2391 msgid ""
2392 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
2393 "\n"
2394 msgstr ""
2395
2396 # type: textblock
2397 #: ../src/guestfs.pod:1136 ../src/guestfs-actions.pod:10
2398 #: ../src/guestfs-actions.pod:1582 ../fish/guestfish-actions.pod:9
2399 #: ../fish/guestfish-actions.pod:1244
2400 msgid "Notes:"
2401 msgstr ""
2402
2403 # type: textblock
2404 #: ../src/guestfs.pod:1142
2405 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
2406 msgstr ""
2407
2408 # type: textblock
2409 #: ../src/guestfs.pod:1147
2410 msgid "You do not need to fill in all fields of the structure."
2411 msgstr ""
2412
2413 # type: textblock
2414 #: ../src/guestfs.pod:1151
2415 msgid ""
2416 "There must be a one-to-one correspondence between fields of the structure "
2417 "that are filled in, and bits set in the bitmask."
2418 msgstr ""
2419
2420 # type: =head2
2421 #: ../src/guestfs.pod:1156
2422 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
2423 msgstr ""
2424
2425 # type: textblock
2426 #: ../src/guestfs.pod:1158
2427 msgid ""
2428 "In other languages, optional arguments are expressed in the way that is "
2429 "natural for that language.  We refer you to the language-specific "
2430 "documentation for more details on that."
2431 msgstr ""
2432
2433 # type: textblock
2434 #: ../src/guestfs.pod:1162
2435 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
2436 msgstr ""
2437
2438 # type: =end
2439 #: ../src/guestfs.pod:1164 ../src/guestfs.pod:1169
2440 msgid "html"
2441 msgstr ""
2442
2443 # type: textblock
2444 #: ../src/guestfs.pod:1166
2445 msgid ""
2446 "<!-- old anchor for the next section --> <a name="
2447 "\"state_machine_and_low_level_event_api\"/>"
2448 msgstr ""
2449
2450 # type: =head1
2451 #: ../src/guestfs.pod:1171
2452 msgid "ARCHITECTURE"
2453 msgstr ""
2454
2455 # type: textblock
2456 #: ../src/guestfs.pod:1173
2457 msgid ""
2458 "Internally, libguestfs is implemented by running an appliance (a special "
2459 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
2460 "process of the main program."
2461 msgstr ""
2462
2463 # type: verbatim
2464 #: ../src/guestfs.pod:1177
2465 #, no-wrap
2466 msgid ""
2467 "  ___________________\n"
2468 " /                   \\\n"
2469 " | main program      |\n"
2470 " |                   |\n"
2471 " |                   |           child process / appliance\n"
2472 " |                   |           __________________________\n"
2473 " |                   |          / qemu                     \\\n"
2474 " +-------------------+   RPC    |      +-----------------+ |\n"
2475 " | libguestfs     <--------------------> guestfsd        | |\n"
2476 " |                   |          |      +-----------------+ |\n"
2477 " \\___________________/          |      | Linux kernel    | |\n"
2478 "                                |      +--^--------------+ |\n"
2479 "                                \\_________|________________/\n"
2480 "                                          |\n"
2481 "                                   _______v______\n"
2482 "                                  /              \\\n"
2483 "                                  | Device or    |\n"
2484 "                                  | disk image   |\n"
2485 "                                  \\______________/\n"
2486 "\n"
2487 msgstr ""
2488
2489 # type: textblock
2490 #: ../src/guestfs.pod:1197
2491 msgid ""
2492 "The library, linked to the main program, creates the child process and hence "
2493 "the appliance in the L</guestfs_launch> function."
2494 msgstr ""
2495
2496 # type: textblock
2497 #: ../src/guestfs.pod:1200
2498 msgid ""
2499 "Inside the appliance is a Linux kernel and a complete stack of userspace "
2500 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
2501 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
2502 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
2503 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
2504 "attached to the qemu process which translates device access by the "
2505 "appliance's Linux kernel into accesses to the image."
2506 msgstr ""
2507
2508 # type: textblock
2509 #: ../src/guestfs.pod:1209
2510 msgid ""
2511 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
2512 "Although the disk image you are attached to might also be used by some "
2513 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
2514 "care if both libguestfs's qemu process and your virtual machine are trying "
2515 "to update the disk image at the same time, since these usually results in "
2516 "massive disk corruption)."
2517 msgstr ""
2518
2519 # type: =head1
2520 #: ../src/guestfs.pod:1216
2521 msgid "STATE MACHINE"
2522 msgstr ""
2523
2524 # type: textblock
2525 #: ../src/guestfs.pod:1218
2526 msgid "libguestfs uses a state machine to model the child process:"
2527 msgstr ""
2528
2529 # type: verbatim
2530 #: ../src/guestfs.pod:1220
2531 #, no-wrap
2532 msgid ""
2533 "                         |\n"
2534 "                    guestfs_create\n"
2535 "                         |\n"
2536 "                         |\n"
2537 "                     ____V_____\n"
2538 "                    /          \\\n"
2539 "                    |  CONFIG  |\n"
2540 "                    \\__________/\n"
2541 "                     ^ ^   ^  \\\n"
2542 "                    /  |    \\  \\ guestfs_launch\n"
2543 "                   /   |    _\\__V______\n"
2544 "                  /    |   /           \\\n"
2545 "                 /     |   | LAUNCHING |\n"
2546 "                /      |   \\___________/\n"
2547 "               /       |       /\n"
2548 "              /        |  guestfs_launch\n"
2549 "             /         |     /\n"
2550 "    ______  /        __|____V\n"
2551 "   /      \\ ------> /        \\\n"
2552 "   | BUSY |         | READY  |\n"
2553 "   \\______/ <------ \\________/\n"
2554 "\n"
2555 msgstr ""
2556
2557 # type: textblock
2558 #: ../src/guestfs.pod:1242
2559 msgid ""
2560 "The normal transitions are (1) CONFIG (when the handle is created, but there "
2561 "is no child process), (2) LAUNCHING (when the child process is booting up), "
2562 "(3) alternating between READY and BUSY as commands are issued to, and "
2563 "carried out by, the child process."
2564 msgstr ""
2565
2566 # type: textblock
2567 #: ../src/guestfs.pod:1247
2568 msgid ""
2569 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
2570 "asynchronously at any time (eg. due to some internal error), and that causes "
2571 "the state to transition back to CONFIG."
2572 msgstr ""
2573
2574 # type: textblock
2575 #: ../src/guestfs.pod:1251
2576 msgid ""
2577 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
2578 "issued when in the CONFIG state."
2579 msgstr ""
2580
2581 # type: textblock
2582 #: ../src/guestfs.pod:1254
2583 msgid ""
2584 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
2585 "L</guestfs_launch> blocks until the child process is READY to accept "
2586 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
2587 "moves the state from CONFIG to LAUNCHING while it is running."
2588 msgstr ""
2589
2590 # type: textblock
2591 #: ../src/guestfs.pod:1260
2592 msgid ""
2593 "API actions such as L</guestfs_mount> can only be issued when in the READY "
2594 "state.  These API calls block waiting for the command to be carried out (ie. "
2595 "the state to transition to BUSY and then back to READY).  There are no non-"
2596 "blocking versions, and no way to issue more than one command per handle at "
2597 "the same time."
2598 msgstr ""
2599
2600 # type: textblock
2601 #: ../src/guestfs.pod:1266
2602 msgid ""
2603 "Finally, the child process sends asynchronous messages back to the main "
2604 "program, such as kernel log messages.  You can register a callback to "
2605 "receive these messages."
2606 msgstr ""
2607
2608 # type: =head2
2609 #: ../src/guestfs.pod:1270
2610 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
2611 msgstr ""
2612
2613 # type: textblock
2614 #: ../src/guestfs.pod:1272
2615 msgid ""
2616 "The child process generates events in some situations.  Current events "
2617 "include: receiving a log message, the child process exits."
2618 msgstr ""
2619
2620 # type: textblock
2621 #: ../src/guestfs.pod:1275
2622 msgid ""
2623 "Use the C<guestfs_set_*_callback> functions to set a callback for different "
2624 "types of events."
2625 msgstr ""
2626
2627 # type: textblock
2628 #: ../src/guestfs.pod:1278
2629 msgid ""
2630 "Only I<one callback of each type> can be registered for each handle.  "
2631 "Calling C<guestfs_set_*_callback> again overwrites the previous callback of "
2632 "that type.  Cancel all callbacks of this type by calling this function with "
2633 "C<cb> set to C<NULL>."
2634 msgstr ""
2635
2636 # type: =head2
2637 #: ../src/guestfs.pod:1283
2638 msgid "guestfs_set_log_message_callback"
2639 msgstr ""
2640
2641 # type: verbatim
2642 #: ../src/guestfs.pod:1285
2643 #, no-wrap
2644 msgid ""
2645 " typedef void (*guestfs_log_message_cb) (guestfs_h *g, void *opaque,\n"
2646 "                                         char *buf, int len);\n"
2647 " void guestfs_set_log_message_callback (guestfs_h *g,\n"
2648 "                                        guestfs_log_message_cb cb,\n"
2649 "                                        void *opaque);\n"
2650 "\n"
2651 msgstr ""
2652
2653 # type: textblock
2654 #: ../src/guestfs.pod:1291
2655 msgid ""
2656 "The callback function C<cb> will be called whenever qemu or the guest writes "
2657 "anything to the console."
2658 msgstr ""
2659
2660 # type: textblock
2661 #: ../src/guestfs.pod:1294
2662 msgid "Use this function to capture kernel messages and similar."
2663 msgstr ""
2664
2665 # type: textblock
2666 #: ../src/guestfs.pod:1296
2667 msgid ""
2668 "Normally there is no log message handler, and log messages are just "
2669 "discarded."
2670 msgstr ""
2671
2672 # type: =head2
2673 #: ../src/guestfs.pod:1299
2674 msgid "guestfs_set_subprocess_quit_callback"
2675 msgstr ""
2676
2677 # type: verbatim
2678 #: ../src/guestfs.pod:1301
2679 #, no-wrap
2680 msgid ""
2681 " typedef void (*guestfs_subprocess_quit_cb) (guestfs_h *g, void *opaque);\n"
2682 " void guestfs_set_subprocess_quit_callback (guestfs_h *g,\n"
2683 "                                            guestfs_subprocess_quit_cb cb,\n"
2684 "                                            void *opaque);\n"
2685 "\n"
2686 msgstr ""
2687
2688 # type: textblock
2689 #: ../src/guestfs.pod:1306
2690 msgid ""
2691 "The callback function C<cb> will be called when the child process quits, "
2692 "either asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
2693 "corresponds to a transition from any state to the CONFIG state)."
2694 msgstr ""
2695
2696 # type: =head2
2697 #: ../src/guestfs.pod:1311
2698 msgid "guestfs_set_launch_done_callback"
2699 msgstr ""
2700
2701 # type: verbatim
2702 #: ../src/guestfs.pod:1313
2703 #, no-wrap
2704 msgid ""
2705 " typedef void (*guestfs_launch_done_cb) (guestfs_h *g, void *opaque);\n"
2706 " void guestfs_set_launch_done_callback (guestfs_h *g,\n"
2707 "                                        guestfs_launch_done_cb cb,\n"
2708 "                                        void *opaque);\n"
2709 "\n"
2710 msgstr ""
2711
2712 # type: textblock
2713 #: ../src/guestfs.pod:1318
2714 msgid ""
2715 "The callback function C<cb> will be called when the child process becomes "
2716 "ready first time after it has been launched.  (This corresponds to a "
2717 "transition from LAUNCHING to the READY state)."
2718 msgstr ""
2719
2720 # type: =head2
2721 #: ../src/guestfs.pod:1322
2722 msgid "guestfs_set_close_callback"
2723 msgstr ""
2724
2725 # type: verbatim
2726 #: ../src/guestfs.pod:1324
2727 #, no-wrap
2728 msgid ""
2729 " typedef void (*guestfs_close_cb) (guestfs_h *g, void *opaque);\n"
2730 " void guestfs_set_close_callback (guestfs_h *g,\n"
2731 "                                  guestfs_close_cb cb,\n"
2732 "                                  void *opaque);\n"
2733 "\n"
2734 msgstr ""
2735
2736 # type: textblock
2737 #: ../src/guestfs.pod:1329
2738 msgid ""
2739 "The callback function C<cb> will be called while the handle is being closed "
2740 "(synchronously from L</guestfs_close>)."
2741 msgstr ""
2742
2743 # type: textblock
2744 #: ../src/guestfs.pod:1332
2745 msgid ""
2746 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
2747 "handles that are open when the program exits.  This means that this callback "
2748 "might be called indirectly from L<exit(3)>, which can cause unexpected "
2749 "problems in higher-level languages (eg. if your HLL interpreter has already "
2750 "been cleaned up by the time this is called, and if your callback then jumps "
2751 "into some HLL function)."
2752 msgstr ""
2753
2754 # type: =head2
2755 #: ../src/guestfs.pod:1340
2756 msgid "guestfs_set_progress_callback"
2757 msgstr ""
2758
2759 # type: verbatim
2760 #: ../src/guestfs.pod:1342
2761 #, no-wrap
2762 msgid ""
2763 " typedef void (*guestfs_progress_cb) (guestfs_h *g, void *opaque,\n"
2764 "                                      int proc_nr, int serial,\n"
2765 "                                      uint64_t position, uint64_t total);\n"
2766 " void guestfs_set_progress_callback (guestfs_h *g,\n"
2767 "                                     guestfs_progress_cb cb,\n"
2768 "                                     void *opaque);\n"
2769 "\n"
2770 msgstr ""
2771
2772 # type: textblock
2773 #: ../src/guestfs.pod:1349
2774 msgid ""
2775 "Some long-running operations can generate progress messages.  If this "
2776 "callback is registered, then it will be called each time a progress message "
2777 "is generated (usually two seconds after the operation started, and three "
2778 "times per second thereafter until it completes, although the frequency may "
2779 "change in future versions)."
2780 msgstr ""
2781
2782 # type: textblock
2783 #: ../src/guestfs.pod:1355
2784 msgid ""
2785 "The callback receives two numbers: C<position> and C<total>.  The units of "
2786 "C<total> are not defined, although for some operations C<total> may relate "
2787 "in some way to the amount of data to be transferred (eg. in bytes or "
2788 "megabytes), and C<position> may be the portion which has been transferred."
2789 msgstr ""
2790
2791 # type: textblock
2792 #: ../src/guestfs.pod:1361
2793 msgid "The only defined and stable parts of the API are:"
2794 msgstr ""
2795
2796 # type: textblock
2797 #: ../src/guestfs.pod:1367
2798 msgid ""
2799 "The callback can display to the user some type of progress bar or indicator "
2800 "which shows the ratio of C<position>:C<total>."
2801 msgstr ""
2802
2803 # type: textblock
2804 #: ../src/guestfs.pod:1372
2805 msgid "0 E<lt>= C<position> E<lt>= C<total>"
2806 msgstr ""
2807
2808 # type: textblock
2809 #: ../src/guestfs.pod:1376
2810 msgid ""
2811 "If any progress notification is sent during a call, then a final progress "
2812 "notification is always sent when C<position> = C<total>."
2813 msgstr ""
2814
2815 # type: textblock
2816 #: ../src/guestfs.pod:1379
2817 msgid ""
2818 "This is to simplify caller code, so callers can easily set the progress "
2819 "indicator to \"100%\" at the end of the operation, without requiring special "
2820 "code to detect this case."
2821 msgstr ""
2822
2823 # type: textblock
2824 #: ../src/guestfs.pod:1385
2825 msgid ""
2826 "The callback also receives the procedure number and serial number of the "
2827 "call.  These are only useful for debugging protocol issues, and the callback "
2828 "can normally ignore them.  The callback may want to print these numbers in "
2829 "error messages or debugging messages."
2830 msgstr ""
2831
2832 # type: =head1
2833 #: ../src/guestfs.pod:1390
2834 msgid "PRIVATE DATA AREA"
2835 msgstr ""
2836
2837 # type: textblock
2838 #: ../src/guestfs.pod:1392
2839 msgid ""
2840 "You can attach named pieces of private data to the libguestfs handle, and "
2841 "fetch them by name for the lifetime of the handle.  This is called the "
2842 "private data area and is only available from the C API."
2843 msgstr ""
2844
2845 # type: textblock
2846 #: ../src/guestfs.pod:1396
2847 msgid "To attach a named piece of data, use the following call:"
2848 msgstr ""
2849
2850 # type: verbatim
2851 #: ../src/guestfs.pod:1398
2852 #, no-wrap
2853 msgid ""
2854 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
2855 "\n"
2856 msgstr ""
2857
2858 # type: textblock
2859 #: ../src/guestfs.pod:1400
2860 msgid ""
2861 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
2862 "pointer (which can be C<NULL>).  Any previous item with the same name is "
2863 "overwritten."
2864 msgstr ""
2865
2866 # type: textblock
2867 #: ../src/guestfs.pod:1404
2868 msgid ""
2869 "You can use any C<key> you want, but names beginning with an underscore "
2870 "character are reserved for internal libguestfs purposes (for implementing "
2871 "language bindings).  It is recommended to prefix the name with some unique "
2872 "string to avoid collisions with other users."
2873 msgstr ""
2874
2875 # type: textblock
2876 #: ../src/guestfs.pod:1409
2877 msgid "To retrieve the pointer, use:"
2878 msgstr ""
2879
2880 # type: verbatim
2881 #: ../src/guestfs.pod:1411
2882 #, no-wrap
2883 msgid ""
2884 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
2885 "\n"
2886 msgstr ""
2887
2888 # type: textblock
2889 #: ../src/guestfs.pod:1413
2890 msgid ""
2891 "This function returns C<NULL> if either no data is found associated with "
2892 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
2893 "C<NULL>."
2894 msgstr ""
2895
2896 # type: textblock
2897 #: ../src/guestfs.pod:1417
2898 msgid ""
2899 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
2900 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
2901 "all.  In particular, libguestfs does I<not> try to free the data when the "
2902 "handle is closed.  If the data must be freed, then the caller must either "
2903 "free it before calling L</guestfs_close> or must set up a close callback to "
2904 "do it (see L</guestfs_set_close_callback>, and note that only one callback "
2905 "can be registered for a handle)."
2906 msgstr ""
2907
2908 # type: textblock
2909 #: ../src/guestfs.pod:1425
2910 msgid ""
2911 "The private data area is implemented using a hash table, and should be "
2912 "reasonably efficient for moderate numbers of keys."
2913 msgstr ""
2914
2915 # type: =head1
2916 #: ../src/guestfs.pod:1428
2917 msgid "BLOCK DEVICE NAMING"
2918 msgstr ""
2919
2920 # type: textblock
2921 #: ../src/guestfs.pod:1430
2922 msgid ""
2923 "In the kernel there is now quite a profusion of schemata for naming block "
2924 "devices (in this context, by I<block device> I mean a physical or virtual "
2925 "hard drive).  The original Linux IDE driver used names starting with C</dev/"
2926 "hd*>.  SCSI devices have historically used a different naming scheme, C</dev/"
2927 "sd*>.  When the Linux kernel I<libata> driver became a popular replacement "
2928 "for the old IDE driver (particularly for SATA devices) those devices also "
2929 "used the C</dev/sd*> scheme.  Additionally we now have virtual machines with "
2930 "paravirtualized drivers.  This has created several different naming systems, "
2931 "such as C</dev/vd*> for virtio disks and C</dev/xvd*> for Xen PV disks."
2932 msgstr ""
2933
2934 # type: textblock
2935 #: ../src/guestfs.pod:1442
2936 msgid ""
2937 "As discussed above, libguestfs uses a qemu appliance running an embedded "
2938 "Linux kernel to access block devices.  We can run a variety of appliances "
2939 "based on a variety of Linux kernels."
2940 msgstr ""
2941
2942 # type: textblock
2943 #: ../src/guestfs.pod:1446
2944 msgid ""
2945 "This causes a problem for libguestfs because many API calls use device or "
2946 "partition names.  Working scripts and the recipe (example) scripts that we "
2947 "make available over the internet could fail if the naming scheme changes."
2948 msgstr ""
2949
2950 # type: textblock
2951 #: ../src/guestfs.pod:1451
2952 msgid ""
2953 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
2954 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
2955 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
2956 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
2957 msgstr ""
2958
2959 # type: textblock
2960 #: ../src/guestfs.pod:1457
2961 msgid ""
2962 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
2963 "L</guestfs_list_partitions> and similar calls return the true names of the "
2964 "devices and partitions as known to the appliance."
2965 msgstr ""
2966
2967 # type: =head2
2968 #: ../src/guestfs.pod:1462
2969 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
2970 msgstr ""
2971
2972 # type: textblock
2973 #: ../src/guestfs.pod:1464
2974 msgid ""
2975 "Usually this translation is transparent.  However in some (very rare)  cases "
2976 "you may need to know the exact algorithm.  Such cases include where you use "
2977 "L</guestfs_config> to add a mixture of virtio and IDE devices to the qemu-"
2978 "based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> devices."
2979 msgstr ""
2980
2981 # type: textblock
2982 #: ../src/guestfs.pod:1470
2983 msgid ""
2984 "The algorithm is applied only to I<parameters> which are known to be either "
2985 "device or partition names.  Return values from functions such as L</"
2986 "guestfs_list_devices> are never changed."
2987 msgstr ""
2988
2989 # type: textblock
2990 #: ../src/guestfs.pod:1478
2991 msgid "Is the string a parameter which is a device or partition name?"
2992 msgstr ""
2993
2994 # type: textblock
2995 #: ../src/guestfs.pod:1482
2996 msgid "Does the string begin with C</dev/sd>?"
2997 msgstr ""
2998
2999 # type: textblock
3000 #: ../src/guestfs.pod:1486
3001 msgid ""
3002 "Does the named device exist? If so, we use that device.  However if I<not> "
3003 "then we continue with this algorithm."
3004 msgstr ""
3005
3006 # type: textblock
3007 #: ../src/guestfs.pod:1491
3008 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
3009 msgstr ""
3010
3011 # type: textblock
3012 #: ../src/guestfs.pod:1493
3013 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
3014 msgstr ""
3015
3016 # type: textblock
3017 #: ../src/guestfs.pod:1495
3018 msgid "If that named device exists, use it.  If not, continue."
3019 msgstr ""
3020
3021 # type: textblock
3022 #: ../src/guestfs.pod:1499
3023 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
3024 msgstr ""
3025
3026 # type: textblock
3027 #: ../src/guestfs.pod:1501
3028 msgid "If that named device exists, use it.  If not, return an error."
3029 msgstr ""
3030
3031 # type: =head2
3032 #: ../src/guestfs.pod:1505
3033 msgid "PORTABILITY CONCERNS"
3034 msgstr ""
3035
3036 # type: textblock
3037 #: ../src/guestfs.pod:1507
3038 msgid ""
3039 "Although the standard naming scheme and automatic translation is useful for "
3040 "simple programs and guestfish scripts, for larger programs it is best not to "
3041 "rely on this mechanism."
3042 msgstr ""
3043
3044 # type: textblock
3045 #: ../src/guestfs.pod:1511
3046 msgid ""
3047 "Where possible for maximum future portability programs using libguestfs "
3048 "should use these future-proof techniques:"
3049 msgstr ""
3050
3051 # type: textblock
3052 #: ../src/guestfs.pod:1518
3053 msgid ""
3054 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
3055 "device names, and then use those names directly."
3056 msgstr ""
3057
3058 # type: textblock
3059 #: ../src/guestfs.pod:1521
3060 msgid ""
3061 "Since those device names exist by definition, they will never be translated."
3062 msgstr ""
3063
3064 # type: textblock
3065 #: ../src/guestfs.pod:1526
3066 msgid ""
3067 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
3068 "filesystem labels."
3069 msgstr ""
3070
3071 # type: =head1
3072 #: ../src/guestfs.pod:1531
3073 msgid "INTERNALS"
3074 msgstr ""
3075
3076 # type: =head2
3077 #: ../src/guestfs.pod:1533
3078 msgid "COMMUNICATION PROTOCOL"
3079 msgstr ""
3080
3081 # type: textblock
3082 #: ../src/guestfs.pod:1535
3083 msgid ""
3084 "Don't rely on using this protocol directly.  This section documents how it "
3085 "currently works, but it may change at any time."
3086 msgstr ""
3087
3088 # type: textblock
3089 #: ../src/guestfs.pod:1538
3090 msgid ""
3091 "The protocol used to talk between the library and the daemon running inside "
3092 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
3093 "1014, RFC 1832, RFC 4506)."
3094 msgstr ""
3095
3096 # type: textblock
3097 #: ../src/guestfs.pod:1542
3098 msgid ""
3099 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
3100 "this file is automatically generated)."
3101 msgstr ""
3102
3103 # type: textblock
3104 #: ../src/guestfs.pod:1545
3105 msgid ""
3106 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
3107 "and C<FileOut> parameters, which are handled with very simple request/reply "
3108 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
3109 "parameters, which use the same request and reply messages, but they may also "
3110 "be followed by files sent using a chunked encoding."
3111 msgstr ""
3112
3113 # type: =head3
3114 #: ../src/guestfs.pod:1552
3115 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
3116 msgstr ""
3117
3118 # type: textblock
3119 #: ../src/guestfs.pod:1554
3120 msgid "For ordinary functions, the request message is:"
3121 msgstr ""
3122
3123 # type: verbatim
3124 #: ../src/guestfs.pod:1556
3125 #, no-wrap
3126 msgid ""
3127 " total length (header + arguments,\n"
3128 "      but not including the length word itself)\n"
3129 " struct guestfs_message_header (encoded as XDR)\n"
3130 " struct guestfs_<foo>_args (encoded as XDR)\n"
3131 "\n"
3132 msgstr ""
3133
3134 # type: textblock
3135 #: ../src/guestfs.pod:1561
3136 msgid ""
3137 "The total length field allows the daemon to allocate a fixed size buffer "
3138 "into which it slurps the rest of the message.  As a result, the total length "
3139 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
3140 "effective size of any request is limited to somewhere under this size."
3141 msgstr ""
3142
3143 # type: textblock
3144 #: ../src/guestfs.pod:1567
3145 msgid ""
3146 "Note also that many functions don't take any arguments, in which case the "
3147 "C<guestfs_I<foo>_args> is completely omitted."
3148 msgstr ""
3149
3150 # type: textblock
3151 #: ../src/guestfs.pod:1570
3152 msgid ""
3153 "The header contains the procedure number (C<guestfs_proc>) which is how the "
3154 "receiver knows what type of args structure to expect, or none at all."
3155 msgstr ""
3156
3157 # type: textblock
3158 #: ../src/guestfs.pod:1574
3159 msgid "The reply message for ordinary functions is:"
3160 msgstr ""
3161
3162 # type: verbatim
3163 #: ../src/guestfs.pod:1576
3164 #, no-wrap
3165 msgid ""
3166 " total length (header + ret,\n"
3167 "      but not including the length word itself)\n"
3168 " struct guestfs_message_header (encoded as XDR)\n"
3169 " struct guestfs_<foo>_ret (encoded as XDR)\n"
3170 "\n"
3171 msgstr ""
3172
3173 # type: textblock
3174 #: ../src/guestfs.pod:1581
3175 msgid ""
3176 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
3177 "functions that return no formal return values."
3178 msgstr ""
3179
3180 # type: textblock
3181 #: ../src/guestfs.pod:1584
3182 msgid ""
3183 "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
3184 msgstr ""
3185
3186 # type: textblock
3187 #: ../src/guestfs.pod:1587
3188 msgid ""
3189 "In the case of an error, a flag is set in the header, and the reply message "
3190 "is slightly changed:"
3191 msgstr ""
3192
3193 # type: verbatim
3194 #: ../src/guestfs.pod:1590
3195 #, no-wrap
3196 msgid ""
3197 " total length (header + error,\n"
3198 "      but not including the length word itself)\n"
3199 " struct guestfs_message_header (encoded as XDR)\n"
3200 " struct guestfs_message_error (encoded as XDR)\n"
3201 "\n"
3202 msgstr ""
3203
3204 # type: textblock
3205 #: ../src/guestfs.pod:1595
3206 msgid ""
3207 "The C<guestfs_message_error> structure contains the error message as a "
3208 "string."
3209 msgstr ""
3210
3211 # type: =head3
3212 #: ../src/guestfs.pod:1598
3213 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
3214 msgstr ""
3215
3216 # type: textblock
3217 #: ../src/guestfs.pod:1600
3218 msgid ""
3219 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
3220 "The normal request message is sent (see above).  However this is followed by "
3221 "a sequence of file chunks."
3222 msgstr ""
3223
3224 # type: verbatim
3225 #: ../src/guestfs.pod:1604
3226 #, no-wrap
3227 msgid ""
3228 " total length (header + arguments,\n"
3229 "      but not including the length word itself,\n"
3230 "      and not including the chunks)\n"
3231 " struct guestfs_message_header (encoded as XDR)\n"
3232 " struct guestfs_<foo>_args (encoded as XDR)\n"
3233 " sequence of chunks for FileIn param #0\n"
3234 " sequence of chunks for FileIn param #1 etc.\n"
3235 "\n"
3236 msgstr ""
3237
3238 # type: textblock
3239 #: ../src/guestfs.pod:1612
3240 msgid "The \"sequence of chunks\" is:"
3241 msgstr ""
3242
3243 # type: verbatim
3244 #: ../src/guestfs.pod:1614
3245 #, no-wrap
3246 msgid ""
3247 " length of chunk (not including length word itself)\n"
3248 " struct guestfs_chunk (encoded as XDR)\n"
3249 " length of chunk\n"
3250 " struct guestfs_chunk (encoded as XDR)\n"
3251 "   ...\n"
3252 " length of chunk\n"
3253 " struct guestfs_chunk (with data.data_len == 0)\n"
3254 "\n"
3255 msgstr ""
3256
3257 # type: textblock
3258 #: ../src/guestfs.pod:1622
3259 msgid ""
3260 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
3261 "is set in the final chunk to indicate either successful completion or early "
3262 "cancellation."
3263 msgstr ""
3264
3265 # type: textblock
3266 #: ../src/guestfs.pod:1626
3267 msgid ""
3268 "At time of writing there are no functions that have more than one FileIn "
3269 "parameter.  However this is (theoretically) supported, by sending the "
3270 "sequence of chunks for each FileIn parameter one after another (from left to "
3271 "right)."
3272 msgstr ""
3273
3274 # type: textblock
3275 #: ../src/guestfs.pod:1631
3276 msgid ""
3277 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
3278 "transfer.  The library does this by sending a chunk with a special flag set "
3279 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
3280 "RPC, does I<not> send any reply, and goes back to reading the next request."
3281 msgstr ""
3282
3283 # type: textblock
3284 #: ../src/guestfs.pod:1637
3285 msgid ""
3286 "The daemon may also cancel.  It does this by writing a special word "
3287 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
3288 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
3289 "cancel chunk).  The special word is chosen so that even if cancellation "
3290 "happens right at the end of the transfer (after the library has finished "
3291 "writing and has started listening for the reply), the \"spurious\" cancel "
3292 "flag will not be confused with the reply message."
3293 msgstr ""
3294
3295 # type: textblock
3296 #: ../src/guestfs.pod:1646
3297 msgid ""
3298 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
3299 "limit), and also files where the size is not known in advance (eg. from "
3300 "pipes or sockets).  However the chunks are rather small "
3301 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
3302 "to keep much in memory."
3303 msgstr ""
3304
3305 # type: =head3
3306 #: ../src/guestfs.pod:1652
3307 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
3308 msgstr ""
3309
3310 # type: textblock
3311 #: ../src/guestfs.pod:1654
3312 msgid ""
3313 "The protocol for FileOut parameters is exactly the same as for FileIn "
3314 "parameters, but with the roles of daemon and library reversed."
3315 msgstr ""
3316
3317 # type: verbatim
3318 #: ../src/guestfs.pod:1657
3319 #, no-wrap
3320 msgid ""
3321 " total length (header + ret,\n"
3322 "      but not including the length word itself,\n"
3323 "      and not including the chunks)\n"
3324 " struct guestfs_message_header (encoded as XDR)\n"
3325 " struct guestfs_<foo>_ret (encoded as XDR)\n"
3326 " sequence of chunks for FileOut param #0\n"
3327 " sequence of chunks for FileOut param #1 etc.\n"
3328 "\n"
3329 msgstr ""
3330
3331 # type: =head3
3332 #: ../src/guestfs.pod:1665
3333 msgid "INITIAL MESSAGE"
3334 msgstr ""
3335
3336 # type: textblock
3337 #: ../src/guestfs.pod:1667
3338 msgid ""
3339 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
3340 "which indicates that the guest and daemon is alive.  This is what L</"
3341 "guestfs_launch> waits for."
3342 msgstr ""
3343
3344 # type: =head3
3345 #: ../src/guestfs.pod:1671
3346 msgid "PROGRESS NOTIFICATION MESSAGES"
3347 msgstr ""
3348
3349 # type: textblock
3350 #: ../src/guestfs.pod:1673
3351 msgid ""
3352 "The daemon may send progress notification messages at any time.  These are "
3353 "distinguished by the normal length word being replaced by "
3354 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
3355 msgstr ""
3356
3357 # type: textblock
3358 #: ../src/guestfs.pod:1677
3359 msgid ""
3360 "The library turns them into progress callbacks (see "
3361 "C<guestfs_set_progress_callback>) if there is a callback registered, or "
3362 "discards them if not."
3363 msgstr ""
3364
3365 # type: textblock
3366 #: ../src/guestfs.pod:1681
3367 msgid ""
3368 "The daemon self-limits the frequency of progress messages it sends (see "
3369 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
3370 "messages."
3371 msgstr ""
3372
3373 # type: =head1
3374 #: ../src/guestfs.pod:1685
3375 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
3376 msgstr ""
3377
3378 # type: textblock
3379 #: ../src/guestfs.pod:1687
3380 msgid ""
3381 "All high-level libguestfs actions are synchronous.  If you want to use "
3382 "libguestfs asynchronously then you must create a thread."
3383 msgstr ""
3384
3385 # type: textblock
3386 #: ../src/guestfs.pod:1690
3387 msgid ""
3388 "Only use the handle from a single thread.  Either use the handle exclusively "
3389 "from one thread, or provide your own mutex so that two threads cannot issue "
3390 "calls on the same handle at the same time."
3391 msgstr ""
3392
3393 # type: textblock
3394 #: ../src/guestfs.pod:1694
3395 msgid ""
3396 "See the graphical program guestfs-browser for one possible architecture for "
3397 "multithreaded programs using libvirt and libguestfs."
3398 msgstr ""
3399
3400 # type: =head1
3401 #: ../src/guestfs.pod:1697
3402 msgid "QEMU WRAPPERS"
3403 msgstr ""
3404
3405 # type: textblock
3406 #: ../src/guestfs.pod:1699
3407 msgid ""
3408 "If you want to compile your own qemu, run qemu from a non-standard location, "
3409 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
3410 "around qemu."
3411 msgstr ""
3412
3413 # type: textblock
3414 #: ../src/guestfs.pod:1703
3415 msgid ""
3416 "There is one important rule to remember: you I<must C<exec qemu>> as the "
3417 "last command in the shell script (so that qemu replaces the shell and "
3418 "becomes the direct child of the libguestfs-using program).  If you don't do "
3419 "this, then the qemu process won't be cleaned up correctly."
3420 msgstr ""
3421
3422 # type: textblock
3423 #: ../src/guestfs.pod:1708
3424 msgid ""
3425 "Here is an example of a wrapper, where I have built my own copy of qemu from "
3426 "source:"
3427 msgstr ""
3428
3429 # type: verbatim
3430 #: ../src/guestfs.pod:1711
3431 #, no-wrap
3432 msgid ""
3433 " #!/bin/sh -\n"
3434 " qemudir=/home/rjones/d/qemu\n"
3435 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
3436 "\n"
3437 msgstr ""
3438
3439 # type: textblock
3440 #: ../src/guestfs.pod:1715
3441 msgid ""
3442 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
3443 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
3444 "example:"
3445 msgstr ""
3446
3447 # type: verbatim
3448 #: ../src/guestfs.pod:1719
3449 #, no-wrap
3450 msgid ""
3451 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
3452 "\n"
3453 msgstr ""
3454
3455 # type: textblock
3456 #: ../src/guestfs.pod:1721
3457 msgid ""
3458 "Note that libguestfs also calls qemu with the -help and -version options in "
3459 "order to determine features."
3460 msgstr ""
3461
3462 # type: =head1
3463 #: ../src/guestfs.pod:1724
3464 msgid "LIBGUESTFS VERSION NUMBERS"
3465 msgstr ""
3466
3467 # type: textblock
3468 #: ../src/guestfs.pod:1726
3469 msgid ""
3470 "Since April 2010, libguestfs has started to make separate development and "
3471 "stable releases, along with corresponding branches in our git repository.  "
3472 "These separate releases can be identified by version number:"
3473 msgstr ""
3474
3475 # type: verbatim
3476 #: ../src/guestfs.pod:1731
3477 #, no-wrap
3478 msgid ""
3479 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
3480 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
3481 "       |\n"
3482 "       v\n"
3483 " 1  .  3  .  5\n"
3484 " ^           ^\n"
3485 " |           |\n"
3486 " |           `-------- sub-version\n"
3487 " |\n"
3488 " `------ always '1' because we don't change the ABI\n"
3489 "\n"
3490 msgstr ""
3491
3492 # type: textblock
3493 #: ../src/guestfs.pod:1742
3494 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
3495 msgstr ""
3496
3497 # type: textblock
3498 #: ../src/guestfs.pod:1744
3499 msgid ""
3500 "As time passes we cherry pick fixes from the development branch and backport "
3501 "those into the stable branch, the effect being that the stable branch should "
3502 "get more stable and less buggy over time.  So the stable releases are ideal "
3503 "for people who don't need new features but would just like the software to "
3504 "work."
3505 msgstr ""
3506
3507 # type: textblock
3508 #: ../src/guestfs.pod:1750
3509 msgid "Our criteria for backporting changes are:"
3510 msgstr ""
3511
3512 # type: textblock
3513 #: ../src/guestfs.pod:1756
3514 msgid ""
3515 "Documentation changes which don't affect any code are backported unless the "
3516 "documentation refers to a future feature which is not in stable."
3517 msgstr ""
3518
3519 # type: textblock
3520 #: ../src/guestfs.pod:1762
3521 msgid ""
3522 "Bug fixes which are not controversial, fix obvious problems, and have been "
3523 "well tested are backported."
3524 msgstr ""
3525
3526 # type: textblock
3527 #: ../src/guestfs.pod:1767
3528 msgid ""
3529 "Simple rearrangements of code which shouldn't affect how it works get "
3530 "backported.  This is so that the code in the two branches doesn't get too "
3531 "far out of step, allowing us to backport future fixes more easily."
3532 msgstr ""
3533
3534 # type: textblock
3535 #: ../src/guestfs.pod:1773
3536 msgid ""
3537 "We I<don't> backport new features, new APIs, new tools etc, except in one "
3538 "exceptional case: the new feature is required in order to implement an "
3539 "important bug fix."
3540 msgstr ""
3541
3542 # type: textblock
3543 #: ../src/guestfs.pod:1779
3544 msgid ""
3545 "A new stable branch starts when we think the new features in development are "
3546 "substantial and compelling enough over the current stable branch to warrant "
3547 "it.  When that happens we create new stable and development versions 1.N.0 "
3548 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
3549 "stable at this point, but by backporting fixes from development, that branch "
3550 "will stabilize over time."
3551 msgstr ""
3552
3553 # type: =head1
3554 #: ../src/guestfs.pod:1787 ../fish/guestfish.pod:867
3555 #: ../test-tool/libguestfs-test-tool.pod:104 ../tools/virt-edit.pl:330
3556 #: ../tools/virt-rescue.pl:245
3557 msgid "ENVIRONMENT VARIABLES"
3558 msgstr ""
3559
3560 # type: =item
3561 #: ../src/guestfs.pod:1791 ../fish/guestfish.pod:893
3562 msgid "LIBGUESTFS_APPEND"
3563 msgstr ""
3564
3565 # type: textblock
3566 #: ../src/guestfs.pod:1793 ../fish/guestfish.pod:895
3567 msgid "Pass additional options to the guest kernel."
3568 msgstr ""
3569
3570 # type: =item
3571 #: ../src/guestfs.pod:1795 ../fish/guestfish.pod:897
3572 msgid "LIBGUESTFS_DEBUG"
3573 msgstr ""
3574
3575 # type: textblock
3576 #: ../src/guestfs.pod:1797
3577 msgid ""
3578 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
3579 "effect as calling C<guestfs_set_verbose (g, 1)>."
3580 msgstr ""
3581
3582 # type: =item
3583 #: ../src/guestfs.pod:1800 ../fish/guestfish.pod:902
3584 msgid "LIBGUESTFS_MEMSIZE"
3585 msgstr ""
3586
3587 # type: textblock
3588 #: ../src/guestfs.pod:1802 ../fish/guestfish.pod:904
3589 msgid ""
3590 "Set the memory allocated to the qemu process, in megabytes.  For example:"
3591 msgstr ""
3592
3593 # type: verbatim
3594 #: ../src/guestfs.pod:1805 ../fish/guestfish.pod:907
3595 #, no-wrap
3596 msgid ""
3597 " LIBGUESTFS_MEMSIZE=700\n"
3598 "\n"
3599 msgstr ""
3600
3601 # type: =item
3602 #: ../src/guestfs.pod:1807 ../fish/guestfish.pod:909
3603 msgid "LIBGUESTFS_PATH"
3604 msgstr ""
3605
3606 # type: textblock
3607 #: ../src/guestfs.pod:1809
3608 msgid ""
3609 "Set the path that libguestfs uses to search for kernel and initrd.img.  See "
3610 "the discussion of paths in section PATH above."
3611 msgstr ""
3612
3613 # type: =item
3614 #: ../src/guestfs.pod:1812 ../fish/guestfish.pod:914
3615 msgid "LIBGUESTFS_QEMU"
3616 msgstr ""
3617
3618 # type: textblock
3619 #: ../src/guestfs.pod:1814 ../fish/guestfish.pod:916
3620 msgid ""
3621 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
3622 "which was found at compile time by the configure script is used."
3623 msgstr ""
3624
3625 # type: textblock
3626 #: ../src/guestfs.pod:1818
3627 msgid "See also L</QEMU WRAPPERS> above."
3628 msgstr ""
3629
3630 # type: =item
3631 #: ../src/guestfs.pod:1820 ../fish/guestfish.pod:920
3632 msgid "LIBGUESTFS_TRACE"
3633 msgstr ""
3634
3635 # type: textblock
3636 #: ../src/guestfs.pod:1822
3637 msgid ""
3638 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
3639 "effect as calling C<guestfs_set_trace (g, 1)>."
3640 msgstr ""
3641
3642 # type: =item
3643 #: ../src/guestfs.pod:1825 ../fish/guestfish.pod:929
3644 msgid "TMPDIR"
3645 msgstr ""
3646
3647 # type: textblock
3648 #: ../src/guestfs.pod:1827 ../fish/guestfish.pod:931
3649 msgid "Location of temporary directory, defaults to C</tmp>."
3650 msgstr ""
3651
3652 # type: textblock
3653 #: ../src/guestfs.pod:1829 ../fish/guestfish.pod:933
3654 msgid ""
3655 "If libguestfs was compiled to use the supermin appliance then the real "
3656 "appliance is cached in this directory, shared between all handles belonging "
3657 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
3658 "use in case C</tmp> is not large enough."
3659 msgstr ""
3660
3661 # type: =head1
3662 #: ../src/guestfs.pod:1837 ../fish/guestfish.pod:991
3663 #: ../test-tool/libguestfs-test-tool.pod:109 ../fuse/guestmount.pod:178
3664 #: ../inspector/virt-inspector.pl:884 ../tools/virt-edit.pl:350
3665 #: ../tools/virt-win-reg.pl:487 ../tools/virt-df.pl:614
3666 #: ../tools/virt-ls.pl:235 ../tools/virt-resize.pl:1486
3667 #: ../tools/virt-list-filesystems.pl:216 ../tools/virt-cat.pl:188
3668 #: ../tools/virt-tar.pl:283 ../tools/virt-rescue.pl:257
3669 #: ../tools/virt-make-fs.pl:534 ../tools/virt-list-partitions.pl:254
3670 msgid "SEE ALSO"
3671 msgstr ""
3672
3673 # type: textblock
3674 #: ../src/guestfs.pod:1839
3675 msgid ""
3676 "L<guestfish(1)>, L<guestmount(1)>, L<virt-cat(1)>, L<virt-df(1)>, L<virt-edit"
3677 "(1)>, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, L<virt-list-"
3678 "partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-"
3679 "tar(1)>, L<virt-win-reg(1)>, L<qemu(1)>, L<febootstrap(1)>, L<hivex(3)>, "
3680 "L<http://libguestfs.org/>."
3681 msgstr ""
3682
3683 # type: textblock
3684 #: ../src/guestfs.pod:1857
3685 msgid ""
3686 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, L<lvm"
3687 "(8)>, L<disktype(1)>."
3688 msgstr ""
3689
3690 # type: =head1
3691 #: ../src/guestfs.pod:1864 ../tools/virt-win-reg.pl:502
3692 #: ../tools/virt-make-fs.pl:548
3693 msgid "BUGS"
3694 msgstr ""
3695
3696 # type: textblock
3697 #: ../src/guestfs.pod:1866
3698 msgid "To get a list of bugs against libguestfs use this link:"
3699 msgstr ""
3700
3701 # type: textblock
3702 #: ../src/guestfs.pod:1868
3703 msgid ""
3704 "L<https://bugzilla.redhat.com/buglist.cgi?"
3705 "component=libguestfs&product=Virtualization+Tools>"
3706 msgstr ""
3707
3708 # type: textblock
3709 #: ../src/guestfs.pod:1870
3710 msgid "To report a new bug against libguestfs use this link:"
3711 msgstr ""
3712
3713 # type: textblock
3714 #: ../src/guestfs.pod:1872
3715 msgid ""
3716 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
3717 "component=libguestfs&product=Virtualization+Tools>"
3718 msgstr ""
3719
3720 # type: textblock
3721 #: ../src/guestfs.pod:1874
3722 msgid "When reporting a bug, please check:"
3723 msgstr ""
3724
3725 # type: textblock
3726 #: ../src/guestfs.pod:1880
3727 msgid "That the bug hasn't been reported already."
3728 msgstr ""
3729
3730 # type: textblock
3731 #: ../src/guestfs.pod:1884
3732 msgid "That you are testing a recent version."
3733 msgstr ""
3734
3735 # type: textblock
3736 #: ../src/guestfs.pod:1888
3737 msgid "Describe the bug accurately, and give a way to reproduce it."
3738 msgstr ""
3739
3740 # type: textblock
3741 #: ../src/guestfs.pod:1892
3742 msgid ""
3743 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
3744 "bug report."
3745 msgstr ""
3746
3747 # type: =head1
3748 #: ../src/guestfs.pod:1897 ../fish/guestfish.pod:1008
3749 #: ../test-tool/libguestfs-test-tool.pod:115 ../fuse/guestmount.pod:189
3750 #: ../inspector/virt-inspector.pl:893
3751 msgid "AUTHORS"
3752 msgstr ""
3753
3754 # type: textblock
3755 #: ../src/guestfs.pod:1899 ../fish/guestfish.pod:1010
3756 #: ../test-tool/libguestfs-test-tool.pod:117 ../fuse/guestmount.pod:191
3757 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
3758 msgstr ""
3759
3760 # type: =head1
3761 #: ../src/guestfs.pod:1901 ../fish/guestfish.pod:1012
3762 #: ../test-tool/libguestfs-test-tool.pod:119 ../fuse/guestmount.pod:193
3763 #: ../inspector/virt-inspector.pl:899 ../tools/virt-edit.pl:366
3764 #: ../tools/virt-win-reg.pl:517 ../tools/virt-df.pl:627
3765 #: ../tools/virt-ls.pl:250 ../tools/virt-resize.pl:1512
3766 #: ../tools/virt-list-filesystems.pl:232 ../tools/virt-cat.pl:202
3767 #: ../tools/virt-tar.pl:298 ../tools/virt-rescue.pl:271
3768 #: ../tools/virt-make-fs.pl:563 ../tools/virt-list-partitions.pl:269
3769 msgid "COPYRIGHT"
3770 msgstr ""
3771
3772 # type: textblock
3773 #: ../src/guestfs.pod:1903 ../fish/guestfish.pod:1014
3774 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
3775 msgstr ""
3776
3777 # type: textblock
3778 #: ../src/guestfs.pod:1906
3779 msgid ""
3780 "This library is free software; you can redistribute it and/or modify it "
3781 "under the terms of the GNU Lesser General Public License as published by the "
3782 "Free Software Foundation; either version 2 of the License, or (at your "
3783 "option) any later version."
3784 msgstr ""
3785
3786 # type: textblock
3787 #: ../src/guestfs.pod:1911
3788 msgid ""
3789 "This library is distributed in the hope that it will be useful, but WITHOUT "
3790 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
3791 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License "
3792 "for more details."
3793 msgstr ""
3794
3795 # type: textblock
3796 #: ../src/guestfs.pod:1916
3797 msgid ""
3798 "You should have received a copy of the GNU Lesser General Public License "
3799 "along with this library; if not, write to the Free Software Foundation, "
3800 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
3801 msgstr ""
3802
3803 # type: =head2
3804 #: ../src/guestfs-actions.pod:1
3805 msgid "guestfs_add_cdrom"
3806 msgstr ""
3807
3808 # type: verbatim
3809 #: ../src/guestfs-actions.pod:3
3810 #, no-wrap
3811 msgid ""
3812 " int guestfs_add_cdrom (guestfs_h *g,\n"
3813 "\t\tconst char *filename);\n"
3814 "\n"
3815 msgstr ""
3816
3817 # type: textblock
3818 #: ../src/guestfs-actions.pod:6 ../fish/guestfish-actions.pod:5
3819 msgid "This function adds a virtual CD-ROM disk image to the guest."
3820 msgstr ""
3821
3822 # type: textblock
3823 #: ../src/guestfs-actions.pod:8 ../fish/guestfish-actions.pod:7
3824 msgid "This is equivalent to the qemu parameter C<-cdrom filename>."
3825 msgstr ""
3826
3827 # type: textblock
3828 #: ../src/guestfs-actions.pod:16
3829 msgid ""
3830 "This call checks for the existence of C<filename>.  This stops you from "
3831 "specifying other types of drive which are supported by qemu such as C<nbd:> "
3832 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
3833 "instead."
3834 msgstr ""
3835
3836 # type: textblock
3837 #: ../src/guestfs-actions.pod:23
3838 msgid ""
3839 "If you just want to add an ISO file (often you use this as an efficient way "
3840 "to transfer large files into the guest), then you should probably use "
3841 "C<guestfs_add_drive_ro> instead."
3842 msgstr ""
3843
3844 # type: textblock
3845 #: ../src/guestfs-actions.pod:29 ../src/guestfs-actions.pod:54
3846 #: ../src/guestfs-actions.pod:112 ../src/guestfs-actions.pod:144
3847 #: ../src/guestfs-actions.pod:155 ../src/guestfs-actions.pod:173
3848 #: ../src/guestfs-actions.pod:190 ../src/guestfs-actions.pod:201
3849 #: ../src/guestfs-actions.pod:304 ../src/guestfs-actions.pod:321
3850 #: ../src/guestfs-actions.pod:332 ../src/guestfs-actions.pod:368
3851 #: ../src/guestfs-actions.pod:390 ../src/guestfs-actions.pod:405
3852 #: ../src/guestfs-actions.pod:469 ../src/guestfs-actions.pod:496
3853 #: ../src/guestfs-actions.pod:507 ../src/guestfs-actions.pod:519
3854 #: ../src/guestfs-actions.pod:600 ../src/guestfs-actions.pod:615
3855 #: ../src/guestfs-actions.pod:626 ../src/guestfs-actions.pod:637
3856 #: ../src/guestfs-actions.pod:783 ../src/guestfs-actions.pod:800
3857 #: ../src/guestfs-actions.pod:815 ../src/guestfs-actions.pod:890
3858 #: ../src/guestfs-actions.pod:905 ../src/guestfs-actions.pod:921
3859 #: ../src/guestfs-actions.pod:932 ../src/guestfs-actions.pod:949
3860 #: ../src/guestfs-actions.pod:982 ../src/guestfs-actions.pod:1040
3861 #: ../src/guestfs-actions.pod:1068 ../src/guestfs-actions.pod:1090
3862 #: ../src/guestfs-actions.pod:1121 ../src/guestfs-actions.pod:1209
3863 #: ../src/guestfs-actions.pod:1240 ../src/guestfs-actions.pod:1440
3864 #: ../src/guestfs-actions.pod:1459 ../src/guestfs-actions.pod:1540
3865 #: ../src/guestfs-actions.pod:1888 ../src/guestfs-actions.pod:2011
3866 #: ../src/guestfs-actions.pod:2066 ../src/guestfs-actions.pod:2096
3867 #: ../src/guestfs-actions.pod:2505 ../src/guestfs-actions.pod:2517
3868 #: ../src/guestfs-actions.pod:2534 ../src/guestfs-actions.pod:2642
3869 #: ../src/guestfs-actions.pod:2653 ../src/guestfs-actions.pod:2663
3870 #: ../src/guestfs-actions.pod:2674 ../src/guestfs-actions.pod:2686
3871 #: ../src/guestfs-actions.pod:2716 ../src/guestfs-actions.pod:2780
3872 #: ../src/guestfs-actions.pod:2797 ../src/guestfs-actions.pod:2811
3873 #: ../src/guestfs-actions.pod:2831 ../src/guestfs-actions.pod:2851
3874 #: ../src/guestfs-actions.pod:2880 ../src/guestfs-actions.pod:2896
3875 #: ../src/guestfs-actions.pod:2912 ../src/guestfs-actions.pod:2924
3876 #: ../src/guestfs-actions.pod:2933 ../src/guestfs-actions.pod:2966
3877 #: ../src/guestfs-actions.pod:2979 ../src/guestfs-actions.pod:2989
3878 #: ../src/guestfs-actions.pod:3001 ../src/guestfs-actions.pod:3015
3879 #: ../src/guestfs-actions.pod:3095 ../src/guestfs-actions.pod:3112
3880 #: ../src/guestfs-actions.pod:3122 ../src/guestfs-actions.pod:3167
3881 #: ../src/guestfs-actions.pod:3182 ../src/guestfs-actions.pod:3197
3882 #: ../src/guestfs-actions.pod:3210 ../src/guestfs-actions.pod:3221
3883 #: ../src/guestfs-actions.pod:3232 ../src/guestfs-actions.pod:3246
3884 #: ../src/guestfs-actions.pod:3258 ../src/guestfs-actions.pod:3275
3885 #: ../src/guestfs-actions.pod:3306 ../src/guestfs-actions.pod:3334
3886 #: ../src/guestfs-actions.pod:3350 ../src/guestfs-actions.pod:3366
3887 #: ../src/guestfs-actions.pod:3375 ../src/guestfs-actions.pod:3389
3888 #: ../src/guestfs-actions.pod:3399 ../src/guestfs-actions.pod:3411
3889 #: ../src/guestfs-actions.pod:3423 ../src/guestfs-actions.pod:3455
3890 #: ../src/guestfs-actions.pod:3467 ../src/guestfs-actions.pod:3484
3891 #: ../src/guestfs-actions.pod:3495 ../src/guestfs-actions.pod:3509
3892 #: ../src/guestfs-actions.pod:3549 ../src/guestfs-actions.pod:3580
3893 #: ../src/guestfs-actions.pod:3591 ../src/guestfs-actions.pod:3616
3894 #: ../src/guestfs-actions.pod:3630 ../src/guestfs-actions.pod:3645
3895 #: ../src/guestfs-actions.pod:3767 ../src/guestfs-actions.pod:3819
3896 #: ../src/guestfs-actions.pod:3838 ../src/guestfs-actions.pod:3853
3897 #: ../src/guestfs-actions.pod:3879 ../src/guestfs-actions.pod:3936
3898 #: ../src/guestfs-actions.pod:3950 ../src/guestfs-actions.pod:3960
3899 #: ../src/guestfs-actions.pod:3971 ../src/guestfs-actions.pod:4226
3900 #: ../src/guestfs-actions.pod:4242 ../src/guestfs-actions.pod:4253
3901 #: ../src/guestfs-actions.pod:4262 ../src/guestfs-actions.pod:4273
3902 #: ../src/guestfs-actions.pod:4282 ../src/guestfs-actions.pod:4293
3903 #: ../src/guestfs-actions.pod:4306 ../src/guestfs-actions.pod:4324
3904 #: ../src/guestfs-actions.pod:4340 ../src/guestfs-actions.pod:4356
3905 #: ../src/guestfs-actions.pod:4371 ../src/guestfs-actions.pod:4391
3906 #: ../src/guestfs-actions.pod:4406 ../src/guestfs-actions.pod:4422
3907 #: ../src/guestfs-actions.pod:4440 ../src/guestfs-actions.pod:4456
3908 #: ../src/guestfs-actions.pod:4470 ../src/guestfs-actions.pod:4495
3909 #: ../src/guestfs-actions.pod:4516 ../src/guestfs-actions.pod:4532
3910 #: ../src/guestfs-actions.pod:4553 ../src/guestfs-actions.pod:4565
3911 #: ../src/guestfs-actions.pod:4577 ../src/guestfs-actions.pod:4593
3912 #: ../src/guestfs-actions.pod:4627 ../src/guestfs-actions.pod:4647
3913 #: ../src/guestfs-actions.pod:4670 ../src/guestfs-actions.pod:4760
3914 #: ../src/guestfs-actions.pod:4866 ../src/guestfs-actions.pod:4875
3915 #: ../src/guestfs-actions.pod:4885 ../src/guestfs-actions.pod:4895
3916 #: ../src/guestfs-actions.pod:4914 ../src/guestfs-actions.pod:4924
3917 #: ../src/guestfs-actions.pod:4934 ../src/guestfs-actions.pod:4944
3918 #: ../src/guestfs-actions.pod:4956 ../src/guestfs-actions.pod:5006
3919 #: ../src/guestfs-actions.pod:5020 ../src/guestfs-actions.pod:5033
3920 #: ../src/guestfs-actions.pod:5046 ../src/guestfs-actions.pod:5060
3921 #: ../src/guestfs-actions.pod:5070 ../src/guestfs-actions.pod:5087
3922 #: ../src/guestfs-actions.pod:5117 ../src/guestfs-actions.pod:5128
3923 #: ../src/guestfs-actions.pod:5163 ../src/guestfs-actions.pod:5173
3924 #: ../src/guestfs-actions.pod:5188 ../src/guestfs-actions.pod:5214
3925 #: ../src/guestfs-actions.pod:5242 ../src/guestfs-actions.pod:5346
3926 #: ../src/guestfs-actions.pod:5361 ../src/guestfs-actions.pod:5372
3927 #: ../src/guestfs-actions.pod:5418 ../src/guestfs-actions.pod:5428
3928 #: ../src/guestfs-actions.pod:5465 ../src/guestfs-actions.pod:5492
3929 #: ../src/guestfs-actions.pod:5534 ../src/guestfs-actions.pod:5557
3930 #: ../src/guestfs-actions.pod:5614 ../src/guestfs-actions.pod:5630
3931 #: ../src/guestfs-actions.pod:5656
3932 msgid "This function returns 0 on success or -1 on error."
3933 msgstr ""
3934
3935 # type: textblock
3936 #: ../src/guestfs-actions.pod:31 ../src/guestfs-actions.pod:157
3937 #: ../src/guestfs-actions.pod:175 ../fish/guestfish-actions.pod:28
3938 #: ../fish/guestfish-actions.pod:117 ../fish/guestfish-actions.pod:131
3939 msgid ""
3940 "This function is deprecated.  In new code, use the C<add_drive_opts> call "
3941 "instead."
3942 msgstr ""
3943
3944 # type: textblock
3945 #: ../src/guestfs-actions.pod:34 ../src/guestfs-actions.pod:160
3946 #: ../src/guestfs-actions.pod:178 ../src/guestfs-actions.pod:1214
3947 #: ../src/guestfs-actions.pod:1649 ../src/guestfs-actions.pod:1667
3948 #: ../src/guestfs-actions.pod:5565 ../src/guestfs-actions.pod:5710
3949 #: ../fish/guestfish-actions.pod:31 ../fish/guestfish-actions.pod:120
3950 #: ../fish/guestfish-actions.pod:134 ../fish/guestfish-actions.pod:940
3951 #: ../fish/guestfish-actions.pod:1297 ../fish/guestfish-actions.pod:1311
3952 #: ../fish/guestfish-actions.pod:4289 ../fish/guestfish-actions.pod:4386
3953 msgid ""
3954 "Deprecated functions will not be removed from the API, but the fact that "
3955 "they are deprecated indicates that there are problems with correct use of "
3956 "these functions."
3957 msgstr ""
3958
3959 # type: =head2
3960 #: ../src/guestfs-actions.pod:38
3961 msgid "guestfs_add_drive"
3962 msgstr ""
3963
3964 # type: verbatim
3965 #: ../src/guestfs-actions.pod:40
3966 #, no-wrap
3967 msgid ""
3968 " int guestfs_add_drive (guestfs_h *g,\n"
3969 "\t\tconst char *filename);\n"
3970 "\n"
3971 msgstr ""
3972
3973 # type: textblock
3974 #: ../src/guestfs-actions.pod:43
3975 msgid ""
3976 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
3977 "optional parameters, so the disk is added writable, with the format being "
3978 "detected automatically."
3979 msgstr ""
3980
3981 # type: textblock
3982 #: ../src/guestfs-actions.pod:47
3983 msgid ""
3984 "Automatic detection of the format opens you up to a potential security hole "
3985 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
3986 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
3987 "you should think about replacing calls to this function with calls to "
3988 "C<guestfs_add_drive_opts>, and specifying the format."
3989 msgstr ""
3990
3991 # type: =head2
3992 #: ../src/guestfs-actions.pod:56
3993 msgid "guestfs_add_drive_opts"
3994 msgstr ""
3995
3996 # type: verbatim
3997 #: ../src/guestfs-actions.pod:58
3998 #, no-wrap
3999 msgid ""
4000 " int guestfs_add_drive_opts (guestfs_h *g,\n"
4001 "\t\tconst char *filename,\n"
4002 "\t\t...);\n"
4003 "\n"
4004 msgstr ""
4005
4006 # type: textblock
4007 #: ../src/guestfs-actions.pod:62
4008 msgid ""
4009 "You may supply a list of optional arguments to this call.  Use zero or more "
4010 "of the following pairs of parameters, and terminate the list with C<-1> on "
4011 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
4012 msgstr ""
4013
4014 # type: verbatim
4015 #: ../src/guestfs-actions.pod:67
4016 #, no-wrap
4017 msgid ""
4018 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
4019 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
4020 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
4021 "\n"
4022 msgstr ""
4023
4024 # type: textblock
4025 #: ../src/guestfs-actions.pod:71 ../fish/guestfish-actions.pod:56
4026 msgid ""
4027 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
4028 "The first time you call this function, the disk appears as C</dev/sda>, the "
4029 "second time as C</dev/sdb>, and so on."
4030 msgstr ""
4031
4032 # type: textblock
4033 #: ../src/guestfs-actions.pod:76 ../fish/guestfish-actions.pod:61
4034 msgid ""
4035 "You don't necessarily need to be root when using libguestfs.  However you "
4036 "obviously do need sufficient permissions to access the filename for whatever "
4037 "operations you want to perform (ie. read access if you just want to read the "
4038 "image or write access if you want to modify the image)."
4039 msgstr ""
4040
4041 # type: textblock
4042 #: ../src/guestfs-actions.pod:82 ../fish/guestfish-actions.pod:67
4043 msgid "This call checks that C<filename> exists."
4044 msgstr ""
4045
4046 # type: textblock
4047 #: ../src/guestfs-actions.pod:84 ../fish/guestfish-actions.pod:69
4048 msgid "The optional arguments are:"
4049 msgstr ""
4050
4051 # type: =item
4052 #: ../src/guestfs-actions.pod:88 ../fish/guestfish-actions.pod:73
4053 msgid "C<readonly>"
4054 msgstr ""
4055
4056 # type: textblock
4057 #: ../src/guestfs-actions.pod:90 ../fish/guestfish-actions.pod:75
4058 msgid ""
4059 "If true then the image is treated as read-only.  Writes are still allowed, "
4060 "but they are stored in a temporary snapshot overlay which is discarded at "
4061 "the end.  The disk that you add is not modified."
4062 msgstr ""
4063
4064 # type: =item
4065 #: ../src/guestfs-actions.pod:94 ../fish/guestfish-actions.pod:79
4066 msgid "C<format>"
4067 msgstr ""
4068
4069 # type: textblock
4070 #: ../src/guestfs-actions.pod:96
4071 msgid ""
4072 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
4073 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
4074 "Possible formats include C<raw> and C<qcow2>."
4075 msgstr ""
4076
4077 # type: textblock
4078 #: ../src/guestfs-actions.pod:100 ../fish/guestfish-actions.pod:85
4079 msgid ""
4080 "Automatic detection of the format opens you up to a potential security hole "
4081 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
4082 "RHBZ#642934.  Specifying the format closes this security hole."
4083 msgstr ""
4084
4085 # type: =item
4086 #: ../src/guestfs-actions.pod:105 ../fish/guestfish-actions.pod:90
4087 msgid "C<iface>"
4088 msgstr ""
4089
4090 # type: textblock
4091 #: ../src/guestfs-actions.pod:107
4092 msgid ""
4093 "This rarely-used option lets you emulate the behaviour of the deprecated "
4094 "C<guestfs_add_drive_with_if> call (q.v.)"
4095 msgstr ""
4096
4097 # type: =head2
4098 #: ../src/guestfs-actions.pod:114
4099 msgid "guestfs_add_drive_opts_va"
4100 msgstr ""
4101
4102 # type: verbatim
4103 #: ../src/guestfs-actions.pod:116
4104 #, no-wrap
4105 msgid ""
4106 " int guestfs_add_drive_opts_va (guestfs_h *g,\n"
4107 "\t\tconst char *filename,\n"
4108 "\t\tva_list args);\n"
4109 "\n"
4110 msgstr ""
4111
4112 # type: textblock
4113 #: ../src/guestfs-actions.pod:120
4114 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
4115 msgstr ""
4116
4117 # type: textblock
4118 #: ../src/guestfs-actions.pod:122 ../src/guestfs-actions.pod:132
4119 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
4120 msgstr ""
4121
4122 # type: =head2
4123 #: ../src/guestfs-actions.pod:124
4124 msgid "guestfs_add_drive_opts_argv"
4125 msgstr ""
4126
4127 # type: verbatim
4128 #: ../src/guestfs-actions.pod:126
4129 #, no-wrap
4130 msgid ""
4131 " int guestfs_add_drive_opts_argv (guestfs_h *g,\n"
4132 "\t\tconst char *filename,\n"
4133 "\t\tconst struct guestfs_add_drive_opts_argv *optargs);\n"
4134 "\n"
4135 msgstr ""
4136
4137 # type: textblock
4138 #: ../src/guestfs-actions.pod:130
4139 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
4140 msgstr ""
4141
4142 # type: =head2
4143 #: ../src/guestfs-actions.pod:134
4144 msgid "guestfs_add_drive_ro"
4145 msgstr ""
4146
4147 # type: verbatim
4148 #: ../src/guestfs-actions.pod:136
4149 #, no-wrap
4150 msgid ""
4151 " int guestfs_add_drive_ro (guestfs_h *g,\n"
4152 "\t\tconst char *filename);\n"
4153 "\n"
4154 msgstr ""
4155
4156 # type: textblock
4157 #: ../src/guestfs-actions.pod:139
4158 msgid ""
4159 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
4160 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
4161 "disk is added read-only, with the format being detected automatically."
4162 msgstr ""
4163
4164 # type: =head2
4165 #: ../src/guestfs-actions.pod:146
4166 msgid "guestfs_add_drive_ro_with_if"
4167 msgstr ""
4168
4169 # type: verbatim
4170 #: ../src/guestfs-actions.pod:148
4171 #, no-wrap
4172 msgid ""
4173 " int guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
4174 "\t\tconst char *filename,\n"
4175 "\t\tconst char *iface);\n"
4176 "\n"
4177 msgstr ""
4178
4179 # type: textblock
4180 #: ../src/guestfs-actions.pod:152
4181 msgid ""
4182 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
4183 "QEMU interface emulation to use at run time."
4184 msgstr ""
4185
4186 # type: =head2
4187 #: ../src/guestfs-actions.pod:164
4188 msgid "guestfs_add_drive_with_if"
4189 msgstr ""
4190
4191 # type: verbatim
4192 #: ../src/guestfs-actions.pod:166
4193 #, no-wrap
4194 msgid ""
4195 " int guestfs_add_drive_with_if (guestfs_h *g,\n"
4196 "\t\tconst char *filename,\n"
4197 "\t\tconst char *iface);\n"
4198 "\n"
4199 msgstr ""
4200
4201 # type: textblock
4202 #: ../src/guestfs-actions.pod:170
4203 msgid ""
4204 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
4205 "QEMU interface emulation to use at run time."
4206 msgstr ""
4207
4208 # type: =head2
4209 #: ../src/guestfs-actions.pod:182
4210 msgid "guestfs_aug_clear"
4211 msgstr ""
4212
4213 # type: verbatim
4214 #: ../src/guestfs-actions.pod:184
4215 #, no-wrap
4216 msgid ""
4217 " int guestfs_aug_clear (guestfs_h *g,\n"
4218 "\t\tconst char *augpath);\n"
4219 "\n"
4220 msgstr ""
4221
4222 # type: textblock
4223 #: ../src/guestfs-actions.pod:187 ../fish/guestfish-actions.pod:142
4224 msgid ""
4225 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
4226 "L<augtool(1)> C<clear> command."
4227 msgstr ""
4228
4229 # type: =head2
4230 #: ../src/guestfs-actions.pod:192
4231 msgid "guestfs_aug_close"
4232 msgstr ""
4233
4234 # type: verbatim
4235 #: ../src/guestfs-actions.pod:194
4236 #, no-wrap
4237 msgid ""
4238 " int guestfs_aug_close (guestfs_h *g);\n"
4239 "\n"
4240 msgstr ""
4241
4242 # type: textblock
4243 #: ../src/guestfs-actions.pod:196
4244 msgid ""
4245 "Close the current Augeas handle and free up any resources used by it.  After "
4246 "calling this, you have to call C<guestfs_aug_init> again before you can use "
4247 "any other Augeas functions."
4248 msgstr ""
4249
4250 # type: =head2
4251 #: ../src/guestfs-actions.pod:203
4252 msgid "guestfs_aug_defnode"
4253 msgstr ""
4254
4255 # type: verbatim
4256 #: ../src/guestfs-actions.pod:205
4257 #, no-wrap
4258 msgid ""
4259 " struct guestfs_int_bool *guestfs_aug_defnode (guestfs_h *g,\n"
4260 "\t\tconst char *name,\n"
4261 "\t\tconst char *expr,\n"
4262 "\t\tconst char *val);\n"
4263 "\n"
4264 msgstr ""
4265
4266 # type: textblock
4267 #: ../src/guestfs-actions.pod:210 ../fish/guestfish-actions.pod:158
4268 msgid ""
4269 "Defines a variable C<name> whose value is the result of evaluating C<expr>."
4270 msgstr ""
4271
4272 # type: textblock
4273 #: ../src/guestfs-actions.pod:213
4274 msgid ""
4275 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
4276 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
4277 "containing that single node."
4278 msgstr ""
4279
4280 # type: textblock
4281 #: ../src/guestfs-actions.pod:217 ../fish/guestfish-actions.pod:165
4282 msgid ""
4283 "On success this returns a pair containing the number of nodes in the "
4284 "nodeset, and a boolean flag if a node was created."
4285 msgstr ""
4286
4287 # type: textblock
4288 #: ../src/guestfs-actions.pod:221
4289 msgid ""
4290 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
4291 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
4292 msgstr ""
4293
4294 # type: =head2
4295 #: ../src/guestfs-actions.pod:225
4296 msgid "guestfs_aug_defvar"
4297 msgstr ""
4298
4299 # type: verbatim
4300 #: ../src/guestfs-actions.pod:227
4301 #, no-wrap
4302 msgid ""
4303 " int guestfs_aug_defvar (guestfs_h *g,\n"
4304 "\t\tconst char *name,\n"
4305 "\t\tconst char *expr);\n"
4306 "\n"
4307 msgstr ""
4308
4309 # type: textblock
4310 #: ../src/guestfs-actions.pod:231 ../fish/guestfish-actions.pod:173
4311 msgid ""
4312 "Defines an Augeas variable C<name> whose value is the result of evaluating "
4313 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
4314 msgstr ""
4315
4316 # type: textblock
4317 #: ../src/guestfs-actions.pod:235 ../fish/guestfish-actions.pod:177
4318 msgid ""
4319 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
4320 "evaluates to something which is not a nodeset."
4321 msgstr ""
4322
4323 # type: textblock
4324 #: ../src/guestfs-actions.pod:238 ../src/guestfs-actions.pod:379
4325 #: ../src/guestfs-actions.pod:533 ../src/guestfs-actions.pod:558
4326 #: ../src/guestfs-actions.pod:573 ../src/guestfs-actions.pod:589
4327 #: ../src/guestfs-actions.pod:1107 ../src/guestfs-actions.pod:1422
4328 #: ../src/guestfs-actions.pod:1604 ../src/guestfs-actions.pod:1685
4329 #: ../src/guestfs-actions.pod:1716 ../src/guestfs-actions.pod:1759
4330 #: ../src/guestfs-actions.pod:1776 ../src/guestfs-actions.pod:2001
4331 #: ../src/guestfs-actions.pod:2213 ../src/guestfs-actions.pod:2231
4332 #: ../src/guestfs-actions.pod:3569 ../src/guestfs-actions.pod:3676
4333 #: ../src/guestfs-actions.pod:4030 ../src/guestfs-actions.pod:4053
4334 #: ../src/guestfs-actions.pod:5152 ../src/guestfs-actions.pod:5502
4335 #: ../src/guestfs-actions.pod:5512 ../src/guestfs-actions.pod:5522
4336 msgid "On error this function returns -1."
4337 msgstr ""
4338
4339 # type: =head2
4340 #: ../src/guestfs-actions.pod:240
4341 msgid "guestfs_aug_get"
4342 msgstr ""
4343
4344 # type: verbatim
4345 #: ../src/guestfs-actions.pod:242
4346 #, no-wrap
4347 msgid ""
4348 " char *guestfs_aug_get (guestfs_h *g,\n"
4349 "\t\tconst char *augpath);\n"
4350 "\n"
4351 msgstr ""
4352
4353 # type: textblock
4354 #: ../src/guestfs-actions.pod:245 ../fish/guestfish-actions.pod:184
4355 msgid ""
4356 "Look up the value associated with C<path>.  If C<path> matches exactly one "
4357 "node, the C<value> is returned."
4358 msgstr ""
4359
4360 # type: textblock
4361 #: ../src/guestfs-actions.pod:248 ../src/guestfs-actions.pod:676
4362 #: ../src/guestfs-actions.pod:691 ../src/guestfs-actions.pod:748
4363 #: ../src/guestfs-actions.pod:761 ../src/guestfs-actions.pod:852
4364 #: ../src/guestfs-actions.pod:965 ../src/guestfs-actions.pod:994
4365 #: ../src/guestfs-actions.pod:1008 ../src/guestfs-actions.pod:1024
4366 #: ../src/guestfs-actions.pod:1135 ../src/guestfs-actions.pod:1299
4367 #: ../src/guestfs-actions.pod:1408 ../src/guestfs-actions.pod:1553
4368 #: ../src/guestfs-actions.pod:1567 ../src/guestfs-actions.pod:1643
4369 #: ../src/guestfs-actions.pod:1661 ../src/guestfs-actions.pod:1795
4370 #: ../src/guestfs-actions.pod:1934 ../src/guestfs-actions.pod:2115
4371 #: ../src/guestfs-actions.pod:2165 ../src/guestfs-actions.pod:2281
4372 #: ../src/guestfs-actions.pod:2316 ../src/guestfs-actions.pod:2631
4373 #: ../src/guestfs-actions.pod:3052 ../src/guestfs-actions.pod:3148
4374 #: ../src/guestfs-actions.pod:3691 ../src/guestfs-actions.pod:3867
4375 #: ../src/guestfs-actions.pod:4008 ../src/guestfs-actions.pod:4169
4376 #: ../src/guestfs-actions.pod:4212 ../src/guestfs-actions.pod:4688
4377 #: ../src/guestfs-actions.pod:4701 ../src/guestfs-actions.pod:4715
4378 #: ../src/guestfs-actions.pod:4736 ../src/guestfs-actions.pod:5295
4379 #: ../src/guestfs-actions.pod:5311 ../src/guestfs-actions.pod:5326
4380 #: ../src/guestfs-actions.pod:5474 ../src/guestfs-actions.pod:5704
4381 msgid ""
4382 "This function returns a string, or NULL on error.  I<The caller must free "
4383 "the returned string after use>."
4384 msgstr ""
4385
4386 # type: =head2
4387 #: ../src/guestfs-actions.pod:251
4388 msgid "guestfs_aug_init"
4389 msgstr ""
4390
4391 # type: verbatim
4392 #: ../src/guestfs-actions.pod:253
4393 #, no-wrap
4394 msgid ""
4395 " int guestfs_aug_init (guestfs_h *g,\n"
4396 "\t\tconst char *root,\n"
4397 "\t\tint flags);\n"
4398 "\n"
4399 msgstr ""
4400
4401 # type: textblock
4402 #: ../src/guestfs-actions.pod:257 ../fish/guestfish-actions.pod:191
4403 msgid ""
4404 "Create a new Augeas handle for editing configuration files.  If there was "
4405 "any previous Augeas handle associated with this guestfs session, then it is "
4406 "closed."
4407 msgstr ""
4408
4409 # type: textblock
4410 #: ../src/guestfs-actions.pod:261
4411 msgid "You must call this before using any other C<guestfs_aug_*> commands."
4412 msgstr ""
4413
4414 # type: textblock
4415 #: ../src/guestfs-actions.pod:264 ../fish/guestfish-actions.pod:198
4416 msgid ""
4417 "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
4418 msgstr ""
4419
4420 # type: textblock
4421 #: ../src/guestfs-actions.pod:267 ../fish/guestfish-actions.pod:201
4422 msgid ""
4423 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
4424 "logical I<or> of the following integers:"
4425 msgstr ""
4426
4427 # type: =item
4428 #: ../src/guestfs-actions.pod:273 ../fish/guestfish-actions.pod:207
4429 msgid "C<AUG_SAVE_BACKUP> = 1"
4430 msgstr ""
4431
4432 # type: textblock
4433 #: ../src/guestfs-actions.pod:275 ../fish/guestfish-actions.pod:209
4434 msgid "Keep the original file with a C<.augsave> extension."
4435 msgstr ""
4436
4437 # type: =item
4438 #: ../src/guestfs-actions.pod:277 ../fish/guestfish-actions.pod:211
4439 msgid "C<AUG_SAVE_NEWFILE> = 2"
4440 msgstr ""
4441
4442 # type: textblock
4443 #: ../src/guestfs-actions.pod:279 ../fish/guestfish-actions.pod:213
4444 msgid ""
4445 "Save changes into a file with extension C<.augnew>, and do not overwrite "
4446 "original.  Overrides C<AUG_SAVE_BACKUP>."
4447 msgstr ""
4448
4449 # type: =item
4450 #: ../src/guestfs-actions.pod:282 ../fish/guestfish-actions.pod:216
4451 msgid "C<AUG_TYPE_CHECK> = 4"
4452 msgstr ""
4453
4454 # type: textblock
4455 #: ../src/guestfs-actions.pod:284 ../fish/guestfish-actions.pod:218
4456 msgid "Typecheck lenses (can be expensive)."
4457 msgstr ""
4458
4459 # type: =item
4460 #: ../src/guestfs-actions.pod:286 ../fish/guestfish-actions.pod:220
4461 msgid "C<AUG_NO_STDINC> = 8"
4462 msgstr ""
4463
4464 # type: textblock
4465 #: ../src/guestfs-actions.pod:288 ../fish/guestfish-actions.pod:222
4466 msgid "Do not use standard load path for modules."
4467 msgstr ""
4468
4469 # type: =item
4470 #: ../src/guestfs-actions.pod:290 ../fish/guestfish-actions.pod:224
4471 msgid "C<AUG_SAVE_NOOP> = 16"
4472 msgstr ""
4473
4474 # type: textblock
4475 #: ../src/guestfs-actions.pod:292 ../fish/guestfish-actions.pod:226
4476 msgid "Make save a no-op, just record what would have been changed."
4477 msgstr ""
4478
4479 # type: =item
4480 #: ../src/guestfs-actions.pod:294 ../fish/guestfish-actions.pod:228
4481 msgid "C<AUG_NO_LOAD> = 32"
4482 msgstr ""
4483
4484 # type: textblock
4485 #: ../src/guestfs-actions.pod:296
4486 msgid "Do not load the tree in C<guestfs_aug_init>."
4487 msgstr ""
4488
4489 # type: textblock
4490 #: ../src/guestfs-actions.pod:300
4491 msgid "To close the handle, you can call C<guestfs_aug_close>."
4492 msgstr ""
4493
4494 # type: textblock
4495 #: ../src/guestfs-actions.pod:302 ../fish/guestfish-actions.pod:236
4496 msgid "To find out more about Augeas, see L<http://augeas.net/>."
4497 msgstr ""
4498
4499 # type: =head2
4500 #: ../src/guestfs-actions.pod:306
4501 msgid "guestfs_aug_insert"
4502 msgstr ""
4503
4504 # type: verbatim
4505 #: ../src/guestfs-actions.pod:308
4506 #, no-wrap
4507 msgid ""
4508 " int guestfs_aug_insert (guestfs_h *g,\n"
4509 "\t\tconst char *augpath,\n"
4510 "\t\tconst char *label,\n"
4511 "\t\tint before);\n"
4512 "\n"
4513 msgstr ""
4514
4515 # type: textblock
4516 #: ../src/guestfs-actions.pod:313 ../fish/guestfish-actions.pod:242
4517 msgid ""
4518 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
4519 "or after C<path> (depending on the boolean flag C<before>)."
4520 msgstr ""
4521
4522 # type: textblock
4523 #: ../src/guestfs-actions.pod:317 ../fish/guestfish-actions.pod:246
4524 msgid ""
4525 "C<path> must match exactly one existing node in the tree, and C<label> must "
4526 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
4527 msgstr ""
4528
4529 # type: =head2
4530 #: ../src/guestfs-actions.pod:323
4531 msgid "guestfs_aug_load"
4532 msgstr ""
4533
4534 # type: verbatim
4535 #: ../src/guestfs-actions.pod:325
4536 #, no-wrap
4537 msgid ""
4538 " int guestfs_aug_load (guestfs_h *g);\n"
4539 "\n"
4540 msgstr ""
4541
4542 # type: textblock
4543 #: ../src/guestfs-actions.pod:327 ../fish/guestfish-actions.pod:254
4544 msgid "Load files into the tree."
4545 msgstr ""
4546
4547 # type: textblock
4548 #: ../src/guestfs-actions.pod:329 ../fish/guestfish-actions.pod:256
4549 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
4550 msgstr ""
4551
4552 # type: =head2
4553 #: ../src/guestfs-actions.pod:334
4554 msgid "guestfs_aug_ls"
4555 msgstr ""
4556
4557 # type: verbatim
4558 #: ../src/guestfs-actions.pod:336
4559 #, no-wrap
4560 msgid ""
4561 " char **guestfs_aug_ls (guestfs_h *g,\n"
4562 "\t\tconst char *augpath);\n"
4563 "\n"
4564 msgstr ""
4565
4566 # type: textblock
4567 #: ../src/guestfs-actions.pod:339
4568 msgid ""
4569 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
4570 "sorting the resulting nodes into alphabetical order."
4571 msgstr ""
4572
4573 # type: textblock
4574 #: ../src/guestfs-actions.pod:342 ../src/guestfs-actions.pod:355
4575 #: ../src/guestfs-actions.pod:483 ../src/guestfs-actions.pod:868
4576 #: ../src/guestfs-actions.pod:1147 ../src/guestfs-actions.pod:1163
4577 #: ../src/guestfs-actions.pod:1251 ../src/guestfs-actions.pod:1267
4578 #: ../src/guestfs-actions.pod:1498 ../src/guestfs-actions.pod:1832
4579 #: ../src/guestfs-actions.pod:1845 ../src/guestfs-actions.pod:1861
4580 #: ../src/guestfs-actions.pod:1898 ../src/guestfs-actions.pod:1919
4581 #: ../src/guestfs-actions.pod:1981 ../src/guestfs-actions.pod:2021
4582 #: ../src/guestfs-actions.pod:2187 ../src/guestfs-actions.pod:2355
4583 #: ../src/guestfs-actions.pod:2560 ../src/guestfs-actions.pod:2616
4584 #: ../src/guestfs-actions.pod:2700 ../src/guestfs-actions.pod:3029
4585 #: ../src/guestfs-actions.pod:3536 ../src/guestfs-actions.pod:3985
4586 #: ../src/guestfs-actions.pod:4094 ../src/guestfs-actions.pod:4200
4587 #: ../src/guestfs-actions.pod:4749 ../src/guestfs-actions.pod:4798
4588 #: ../src/guestfs-actions.pod:4850 ../src/guestfs-actions.pod:4966
4589 #: ../src/guestfs-actions.pod:4987 ../src/guestfs-actions.pod:5387
4590 #: ../src/guestfs-actions.pod:5404 ../src/guestfs-actions.pod:5442
4591 #: ../src/guestfs-actions.pod:5578 ../src/guestfs-actions.pod:5594
4592 #: ../src/guestfs-actions.pod:5667 ../src/guestfs-actions.pod:5683
4593 #: ../src/guestfs-actions.pod:5723 ../src/guestfs-actions.pod:5739
4594 msgid ""
4595 "This function returns a NULL-terminated array of strings (like L<environ(3)"
4596 ">), or NULL if there was an error.  I<The caller must free the strings and "
4597 "the array after use>."
4598 msgstr ""
4599
4600 # type: =head2
4601 #: ../src/guestfs-actions.pod:346
4602 msgid "guestfs_aug_match"
4603 msgstr ""
4604
4605 # type: verbatim
4606 #: ../src/guestfs-actions.pod:348
4607 #, no-wrap
4608 msgid ""
4609 " char **guestfs_aug_match (guestfs_h *g,\n"
4610 "\t\tconst char *augpath);\n"
4611 "\n"
4612 msgstr ""
4613
4614 # type: textblock
4615 #: ../src/guestfs-actions.pod:351 ../fish/guestfish-actions.pod:270
4616 msgid ""
4617 "Returns a list of paths which match the path expression C<path>.  The "
4618 "returned paths are sufficiently qualified so that they match exactly one "
4619 "node in the current tree."
4620 msgstr ""
4621
4622 # type: =head2
4623 #: ../src/guestfs-actions.pod:359
4624 msgid "guestfs_aug_mv"
4625 msgstr ""
4626
4627 # type: verbatim
4628 #: ../src/guestfs-actions.pod:361
4629 #, no-wrap
4630 msgid ""
4631 " int guestfs_aug_mv (guestfs_h *g,\n"
4632 "\t\tconst char *src,\n"
4633 "\t\tconst char *dest);\n"
4634 "\n"
4635 msgstr ""
4636
4637 # type: textblock
4638 #: ../src/guestfs-actions.pod:365 ../fish/guestfish-actions.pod:278
4639 msgid ""
4640 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
4641 "C<dest> is overwritten if it exists."
4642 msgstr ""
4643
4644 # type: =head2
4645 #: ../src/guestfs-actions.pod:370
4646 msgid "guestfs_aug_rm"
4647 msgstr ""
4648
4649 # type: verbatim
4650 #: ../src/guestfs-actions.pod:372
4651 #, no-wrap
4652 msgid ""
4653 " int guestfs_aug_rm (guestfs_h *g,\n"
4654 "\t\tconst char *augpath);\n"
4655 "\n"
4656 msgstr ""
4657
4658 # type: textblock
4659 #: ../src/guestfs-actions.pod:375 ../fish/guestfish-actions.pod:285
4660 msgid "Remove C<path> and all of its children."
4661 msgstr ""
4662
4663 # type: textblock
4664 #: ../src/guestfs-actions.pod:377 ../fish/guestfish-actions.pod:287
4665 msgid "On success this returns the number of entries which were removed."
4666 msgstr ""
4667
4668 # type: =head2
4669 #: ../src/guestfs-actions.pod:381
4670 msgid "guestfs_aug_save"
4671 msgstr ""
4672
4673 # type: verbatim
4674 #: ../src/guestfs-actions.pod:383
4675 #, no-wrap
4676 msgid ""
4677 " int guestfs_aug_save (guestfs_h *g);\n"
4678 "\n"
4679 msgstr ""
4680
4681 # type: textblock
4682 #: ../src/guestfs-actions.pod:385 ../fish/guestfish-actions.pod:293
4683 msgid "This writes all pending changes to disk."
4684 msgstr ""
4685
4686 # type: textblock
4687 #: ../src/guestfs-actions.pod:387
4688 msgid ""
4689 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
4690 "are saved."
4691 msgstr ""
4692
4693 # type: =head2
4694 #: ../src/guestfs-actions.pod:392
4695 msgid "guestfs_aug_set"
4696 msgstr ""
4697
4698 # type: verbatim
4699 #: ../src/guestfs-actions.pod:394
4700 #, no-wrap
4701 msgid ""
4702 " int guestfs_aug_set (guestfs_h *g,\n"
4703 "\t\tconst char *augpath,\n"
4704 "\t\tconst char *val);\n"
4705 "\n"
4706 msgstr ""
4707
4708 # type: textblock
4709 #: ../src/guestfs-actions.pod:398 ../fish/guestfish-actions.pod:302
4710 msgid "Set the value associated with C<path> to C<val>."
4711 msgstr ""
4712
4713 # type: textblock
4714 #: ../src/guestfs-actions.pod:400
4715 msgid ""
4716 "In the Augeas API, it is possible to clear a node by setting the value to "
4717 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
4718 "this call.  Instead you must use the C<guestfs_aug_clear> call."
4719 msgstr ""
4720
4721 # type: =head2
4722 #: ../src/guestfs-actions.pod:407
4723 msgid "guestfs_available"
4724 msgstr ""
4725
4726 # type: verbatim
4727 #: ../src/guestfs-actions.pod:409
4728 #, no-wrap
4729 msgid ""
4730 " int guestfs_available (guestfs_h *g,\n"
4731 "\t\tchar *const *groups);\n"
4732 "\n"
4733 msgstr ""
4734
4735 # type: textblock
4736 #: ../src/guestfs-actions.pod:412 ../fish/guestfish-actions.pod:313
4737 msgid ""
4738 "This command is used to check the availability of some groups of "
4739 "functionality in the appliance, which not all builds of the libguestfs "
4740 "appliance will be able to provide."
4741 msgstr ""
4742
4743 # type: textblock
4744 #: ../src/guestfs-actions.pod:416
4745 msgid ""
4746 "The libguestfs groups, and the functions that those groups correspond to, "
4747 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
4748 "runtime by calling C<guestfs_available_all_groups>."
4749 msgstr ""
4750
4751 # type: textblock
4752 #: ../src/guestfs-actions.pod:421 ../fish/guestfish-actions.pod:322
4753 msgid ""
4754 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", \"augeas"
4755 "\"]> would check for the availability of the Linux inotify functions and "
4756 "Augeas (configuration file editing) functions."
4757 msgstr ""
4758
4759 # type: textblock
4760 #: ../src/guestfs-actions.pod:426 ../fish/guestfish-actions.pod:327
4761 msgid "The command returns no error if I<all> requested groups are available."
4762 msgstr ""
4763
4764 # type: textblock
4765 #: ../src/guestfs-actions.pod:428 ../fish/guestfish-actions.pod:329
4766 msgid ""
4767 "It fails with an error if one or more of the requested groups is unavailable "
4768 "in the appliance."
4769 msgstr ""
4770
4771 # type: textblock
4772 #: ../src/guestfs-actions.pod:431 ../fish/guestfish-actions.pod:332
4773 msgid ""
4774 "If an unknown group name is included in the list of groups then an error is "
4775 "always returned."
4776 msgstr ""
4777
4778 # type: textblock
4779 #: ../src/guestfs-actions.pod:434 ../fish/guestfish-actions.pod:335
4780 msgid "I<Notes:>"
4781 msgstr ""
4782
4783 # type: textblock
4784 #: ../src/guestfs-actions.pod:440
4785 msgid "You must call C<guestfs_launch> before calling this function."
4786 msgstr ""
4787
4788 # type: textblock
4789 #: ../src/guestfs-actions.pod:442 ../fish/guestfish-actions.pod:343
4790 msgid ""
4791 "The reason is because we don't know what groups are supported by the "
4792 "appliance/daemon until it is running and can be queried."
4793 msgstr ""
4794
4795 # type: textblock
4796 #: ../src/guestfs-actions.pod:448 ../fish/guestfish-actions.pod:349
4797 msgid ""
4798 "If a group of functions is available, this does not necessarily mean that "
4799 "they will work.  You still have to check for errors when calling individual "
4800 "API functions even if they are available."
4801 msgstr ""
4802
4803 # type: textblock
4804 #: ../src/guestfs-actions.pod:455 ../fish/guestfish-actions.pod:356
4805 msgid ""
4806 "It is usually the job of distro packagers to build complete functionality "
4807 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
4808 "with all requirements satisfied, will support everything."
4809 msgstr ""
4810
4811 # type: textblock
4812 #: ../src/guestfs-actions.pod:462
4813 msgid ""
4814 "This call was added in version C<1.0.80>.  In previous versions of "
4815 "libguestfs all you could do would be to speculatively execute a command to "
4816 "find out if the daemon implemented it.  See also C<guestfs_version>."
4817 msgstr ""
4818
4819 # type: =head2
4820 #: ../src/guestfs-actions.pod:471
4821 msgid "guestfs_available_all_groups"
4822 msgstr ""
4823
4824 # type: verbatim
4825 #: ../src/guestfs-actions.pod:473
4826 #, no-wrap
4827 msgid ""
4828 " char **guestfs_available_all_groups (guestfs_h *g);\n"
4829 "\n"
4830 msgstr ""
4831
4832 # type: textblock
4833 #: ../src/guestfs-actions.pod:475
4834 msgid ""
4835 "This command returns a list of all optional groups that this daemon knows "
4836 "about.  Note this returns both supported and unsupported groups.  To find "
4837 "out which ones the daemon can actually support you have to call "
4838 "C<guestfs_available> on each member of the returned list."
4839 msgstr ""
4840
4841 # type: textblock
4842 #: ../src/guestfs-actions.pod:481
4843 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
4844 msgstr ""
4845
4846 # type: =head2
4847 #: ../src/guestfs-actions.pod:487
4848 msgid "guestfs_base64_in"
4849 msgstr ""
4850
4851 # type: verbatim
4852 #: ../src/guestfs-actions.pod:489
4853 #, no-wrap
4854 msgid ""
4855 " int guestfs_base64_in (guestfs_h *g,\n"
4856 "\t\tconst char *base64file,\n"
4857 "\t\tconst char *filename);\n"
4858 "\n"
4859 msgstr ""
4860
4861 # type: textblock
4862 #: ../src/guestfs-actions.pod:493 ../fish/guestfish-actions.pod:386
4863 msgid ""
4864 "This command uploads base64-encoded data from C<base64file> to C<filename>."
4865 msgstr ""
4866
4867 # type: =head2
4868 #: ../src/guestfs-actions.pod:498
4869 msgid "guestfs_base64_out"
4870 msgstr ""
4871
4872 # type: verbatim
4873 #: ../src/guestfs-actions.pod:500
4874 #, no-wrap
4875 msgid ""
4876 " int guestfs_base64_out (guestfs_h *g,\n"
4877 "\t\tconst char *filename,\n"
4878 "\t\tconst char *base64file);\n"
4879 "\n"
4880 msgstr ""
4881
4882 # type: textblock
4883 #: ../src/guestfs-actions.pod:504 ../fish/guestfish-actions.pod:395
4884 msgid ""
4885 "This command downloads the contents of C<filename>, writing it out to local "
4886 "file C<base64file> encoded as base64."
4887 msgstr ""
4888
4889 # type: =head2
4890 #: ../src/guestfs-actions.pod:509
4891 msgid "guestfs_blockdev_flushbufs"
4892 msgstr ""
4893
4894 # type: verbatim
4895 #: ../src/guestfs-actions.pod:511
4896 #, no-wrap
4897 msgid ""
4898 " int guestfs_blockdev_flushbufs (guestfs_h *g,\n"
4899 "\t\tconst char *device);\n"
4900 "\n"
4901 msgstr ""
4902
4903 # type: textblock
4904 #: ../src/guestfs-actions.pod:514 ../fish/guestfish-actions.pod:404
4905 msgid ""
4906 "This tells the kernel to flush internal buffers associated with C<device>."
4907 msgstr ""
4908
4909 # type: textblock
4910 #: ../src/guestfs-actions.pod:517 ../src/guestfs-actions.pod:531
4911 #: ../src/guestfs-actions.pod:543 ../src/guestfs-actions.pod:556
4912 #: ../src/guestfs-actions.pod:571 ../src/guestfs-actions.pod:587
4913 #: ../src/guestfs-actions.pod:598 ../src/guestfs-actions.pod:613
4914 #: ../src/guestfs-actions.pod:624 ../src/guestfs-actions.pod:635
4915 #: ../fish/guestfish-actions.pod:407 ../fish/guestfish-actions.pod:418
4916 #: ../fish/guestfish-actions.pod:427 ../fish/guestfish-actions.pod:437
4917 #: ../fish/guestfish-actions.pod:449 ../fish/guestfish-actions.pod:462
4918 #: ../fish/guestfish-actions.pod:470 ../fish/guestfish-actions.pod:481
4919 #: ../fish/guestfish-actions.pod:489 ../fish/guestfish-actions.pod:497
4920 msgid "This uses the L<blockdev(8)> command."
4921 msgstr ""
4922
4923 # type: =head2
4924 #: ../src/guestfs-actions.pod:521
4925 msgid "guestfs_blockdev_getbsz"
4926 msgstr ""
4927
4928 # type: verbatim
4929 #: ../src/guestfs-actions.pod:523
4930 #, no-wrap
4931 msgid ""
4932 " int guestfs_blockdev_getbsz (guestfs_h *g,\n"
4933 "\t\tconst char *device);\n"
4934 "\n"
4935 msgstr ""
4936
4937 # type: textblock
4938 #: ../src/guestfs-actions.pod:526 ../fish/guestfish-actions.pod:413
4939 msgid "This returns the block size of a device."
4940 msgstr ""
4941
4942 # type: textblock
4943 #: ../src/guestfs-actions.pod:528 ../src/guestfs-actions.pod:610
4944 #: ../fish/guestfish-actions.pod:415 ../fish/guestfish-actions.pod:478
4945 msgid ""
4946 "(Note this is different from both I<size in blocks> and I<filesystem block "
4947 "size>)."
4948 msgstr ""
4949
4950 # type: =head2
4951 #: ../src/guestfs-actions.pod:535
4952 msgid "guestfs_blockdev_getro"
4953 msgstr ""
4954
4955 # type: verbatim
4956 #: ../src/guestfs-actions.pod:537
4957 #, no-wrap
4958 msgid ""
4959 " int guestfs_blockdev_getro (guestfs_h *g,\n"
4960 "\t\tconst char *device);\n"
4961 "\n"
4962 msgstr ""
4963
4964 # type: textblock
4965 #: ../src/guestfs-actions.pod:540 ../fish/guestfish-actions.pod:424
4966 msgid ""
4967 "Returns a boolean indicating if the block device is read-only (true if read-"
4968 "only, false if not)."
4969 msgstr ""
4970
4971 # type: textblock
4972 #: ../src/guestfs-actions.pod:545 ../src/guestfs-actions.pod:1181
4973 #: ../src/guestfs-actions.pod:1193 ../src/guestfs-actions.pod:1625
4974 #: ../src/guestfs-actions.pod:1633 ../src/guestfs-actions.pod:1693
4975 #: ../src/guestfs-actions.pod:1736 ../src/guestfs-actions.pod:1748
4976 #: ../src/guestfs-actions.pod:1767 ../src/guestfs-actions.pod:1784
4977 #: ../src/guestfs-actions.pod:2369 ../src/guestfs-actions.pod:2380
4978 #: ../src/guestfs-actions.pod:2392 ../src/guestfs-actions.pod:2403
4979 #: ../src/guestfs-actions.pod:2416 ../src/guestfs-actions.pod:2428
4980 #: ../src/guestfs-actions.pod:2441 ../src/guestfs-actions.pod:2452
4981 #: ../src/guestfs-actions.pod:2462 ../src/guestfs-actions.pod:2473
4982 #: ../src/guestfs-actions.pod:2485 ../src/guestfs-actions.pod:2497
4983 #: ../src/guestfs-actions.pod:3661
4984 msgid "This function returns a C truth value on success or -1 on error."
4985 msgstr ""
4986
4987 # type: =head2
4988 #: ../src/guestfs-actions.pod:547
4989 msgid "guestfs_blockdev_getsize64"
4990 msgstr ""
4991
4992 # type: verbatim
4993 #: ../src/guestfs-actions.pod:549
4994 #, no-wrap
4995 msgid ""
4996 " int64_t guestfs_blockdev_getsize64 (guestfs_h *g,\n"
4997 "\t\tconst char *device);\n"
4998 "\n"
4999 msgstr ""
5000
5001 # type: textblock
5002 #: ../src/guestfs-actions.pod:552 ../fish/guestfish-actions.pod:433
5003 msgid "This returns the size of the device in bytes."
5004 msgstr ""
5005
5006 # type: textblock
5007 #: ../src/guestfs-actions.pod:554
5008 msgid "See also C<guestfs_blockdev_getsz>."
5009 msgstr ""
5010
5011 # type: =head2
5012 #: ../src/guestfs-actions.pod:560
5013 msgid "guestfs_blockdev_getss"
5014 msgstr ""
5015
5016 # type: verbatim
5017 #: ../src/guestfs-actions.pod:562
5018 #, no-wrap
5019 msgid ""
5020 " int guestfs_blockdev_getss (guestfs_h *g,\n"
5021 "\t\tconst char *device);\n"
5022 "\n"
5023 msgstr ""
5024
5025 # type: textblock
5026 #: ../src/guestfs-actions.pod:565 ../fish/guestfish-actions.pod:443
5027 msgid ""
5028 "This returns the size of sectors on a block device.  Usually 512, but can be "
5029 "larger for modern devices."
5030 msgstr ""
5031
5032 # type: textblock
5033 #: ../src/guestfs-actions.pod:568
5034 msgid ""
5035 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
5036 "that)."
5037 msgstr ""
5038
5039 # type: =head2
5040 #: ../src/guestfs-actions.pod:575
5041 msgid "guestfs_blockdev_getsz"
5042 msgstr ""
5043
5044 # type: verbatim
5045 #: ../src/guestfs-actions.pod:577
5046 #, no-wrap
5047 msgid ""
5048 " int64_t guestfs_blockdev_getsz (guestfs_h *g,\n"
5049 "\t\tconst char *device);\n"
5050 "\n"
5051 msgstr ""
5052
5053 # type: textblock
5054 #: ../src/guestfs-actions.pod:580 ../fish/guestfish-actions.pod:455
5055 msgid ""
5056 "This returns the size of the device in units of 512-byte sectors (even if "
5057 "the sectorsize isn't 512 bytes ... weird)."
5058 msgstr ""
5059
5060 # type: textblock
5061 #: ../src/guestfs-actions.pod:583
5062 msgid ""
5063 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
5064 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
5065 msgstr ""
5066
5067 # type: =head2
5068 #: ../src/guestfs-actions.pod:591
5069 msgid "guestfs_blockdev_rereadpt"
5070 msgstr ""
5071
5072 # type: verbatim
5073 #: ../src/guestfs-actions.pod:593
5074 #, no-wrap
5075 msgid ""
5076 " int guestfs_blockdev_rereadpt (guestfs_h *g,\n"
5077 "\t\tconst char *device);\n"
5078 "\n"
5079 msgstr ""
5080
5081 # type: textblock
5082 #: ../src/guestfs-actions.pod:596 ../fish/guestfish-actions.pod:468
5083 msgid "Reread the partition table on C<device>."
5084 msgstr ""
5085
5086 # type: =head2
5087 #: ../src/guestfs-actions.pod:602
5088 msgid "guestfs_blockdev_setbsz"
5089 msgstr ""
5090
5091 # type: verbatim
5092 #: ../src/guestfs-actions.pod:604
5093 #, no-wrap
5094 msgid ""
5095 " int guestfs_blockdev_setbsz (guestfs_h *g,\n"
5096 "\t\tconst char *device,\n"
5097 "\t\tint blocksize);\n"
5098 "\n"
5099 msgstr ""
5100
5101 # type: textblock
5102 #: ../src/guestfs-actions.pod:608 ../fish/guestfish-actions.pod:476
5103 msgid "This sets the block size of a device."
5104 msgstr ""
5105
5106 # type: =head2
5107 #: ../src/guestfs-actions.pod:617
5108 msgid "guestfs_blockdev_setro"
5109 msgstr ""
5110
5111 # type: verbatim
5112 #: ../src/guestfs-actions.pod:619
5113 #, no-wrap
5114 msgid ""
5115 " int guestfs_blockdev_setro (guestfs_h *g,\n"
5116 "\t\tconst char *device);\n"
5117 "\n"
5118 msgstr ""
5119
5120 # type: textblock
5121 #: ../src/guestfs-actions.pod:622 ../fish/guestfish-actions.pod:487
5122 msgid "Sets the block device named C<device> to read-only."
5123 msgstr ""
5124
5125 # type: =head2
5126 #: ../src/guestfs-actions.pod:628
5127 msgid "guestfs_blockdev_setrw"
5128 msgstr ""
5129
5130 # type: verbatim
5131 #: ../src/guestfs-actions.pod:630
5132 #, no-wrap
5133 msgid ""
5134 " int guestfs_blockdev_setrw (guestfs_h *g,\n"
5135 "\t\tconst char *device);\n"
5136 "\n"
5137 msgstr ""
5138
5139 # type: textblock
5140 #: ../src/guestfs-actions.pod:633 ../fish/guestfish-actions.pod:495
5141 msgid "Sets the block device named C<device> to read-write."
5142 msgstr ""
5143
5144 # type: =head2
5145 #: ../src/guestfs-actions.pod:639
5146 msgid "guestfs_case_sensitive_path"
5147 msgstr ""
5148
5149 # type: verbatim
5150 #: ../src/guestfs-actions.pod:641
5151 #, no-wrap
5152 msgid ""
5153 " char *guestfs_case_sensitive_path (guestfs_h *g,\n"
5154 "\t\tconst char *path);\n"
5155 "\n"
5156 msgstr ""
5157
5158 # type: textblock
5159 #: ../src/guestfs-actions.pod:644 ../fish/guestfish-actions.pod:503
5160 msgid ""
5161 "This can be used to resolve case insensitive paths on a filesystem which is "
5162 "case sensitive.  The use case is to resolve paths which you have read from "
5163 "Windows configuration files or the Windows Registry, to the true path."
5164 msgstr ""
5165
5166 # type: textblock
5167 #: ../src/guestfs-actions.pod:649 ../fish/guestfish-actions.pod:508
5168 msgid ""
5169 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
5170 "(and probably others), which is that although the underlying filesystem is "
5171 "case-insensitive, the driver exports the filesystem to Linux as case-"
5172 "sensitive."
5173 msgstr ""
5174
5175 # type: textblock
5176 #: ../src/guestfs-actions.pod:654 ../fish/guestfish-actions.pod:513
5177 msgid ""
5178 "One consequence of this is that special directories such as C<c:\\windows> "
5179 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
5180 "precise details of how they were created.  In Windows itself this would not "
5181 "be a problem."
5182 msgstr ""
5183
5184 # type: textblock
5185 #: ../src/guestfs-actions.pod:660 ../fish/guestfish-actions.pod:519
5186 msgid ""
5187 "Bug or feature? You decide: L<http://www.tuxera.com/community/ntfs-3g-faq/"
5188 "#posixfilenames1>"
5189 msgstr ""
5190
5191 # type: textblock
5192 #: ../src/guestfs-actions.pod:663 ../fish/guestfish-actions.pod:522
5193 msgid ""
5194 "This function resolves the true case of each element in the path and returns "
5195 "the case-sensitive path."
5196 msgstr ""
5197
5198 # type: textblock
5199 #: ../src/guestfs-actions.pod:666
5200 msgid ""
5201 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return C<"
5202 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
5203 "how the directories were originally created under Windows)."
5204 msgstr ""
5205
5206 # type: textblock
5207 #: ../src/guestfs-actions.pod:671 ../fish/guestfish-actions.pod:530
5208 msgid "I<Note>: This function does not handle drive names, backslashes etc."
5209 msgstr ""
5210
5211 # type: textblock
5212 #: ../src/guestfs-actions.pod:674
5213 msgid "See also C<guestfs_realpath>."
5214 msgstr ""
5215
5216 # type: =head2
5217 #: ../src/guestfs-actions.pod:679
5218 msgid "guestfs_cat"
5219 msgstr ""
5220
5221 # type: verbatim
5222 #: ../src/guestfs-actions.pod:681
5223 #, no-wrap
5224 msgid ""
5225 " char *guestfs_cat (guestfs_h *g,\n"
5226 "\t\tconst char *path);\n"
5227 "\n"
5228 msgstr ""
5229
5230 # type: textblock
5231 #: ../src/guestfs-actions.pod:684 ../src/guestfs-actions.pod:4084
5232 #: ../fish/guestfish-actions.pod:539 ../fish/guestfish-actions.pod:3133
5233 msgid "Return the contents of the file named C<path>."
5234 msgstr ""
5235
5236 # type: textblock
5237 #: ../src/guestfs-actions.pod:686
5238 msgid ""
5239 "Note that this function cannot correctly handle binary files (specifically, "
5240 "files containing C<\\0> character which is treated as end of string).  For "
5241 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
5242 "functions which have a more complex interface."
5243 msgstr ""
5244
5245 # type: textblock
5246 #: ../src/guestfs-actions.pod:694 ../src/guestfs-actions.pod:855
5247 #: ../src/guestfs-actions.pod:872 ../src/guestfs-actions.pod:1151
5248 #: ../src/guestfs-actions.pod:1167 ../src/guestfs-actions.pod:1255
5249 #: ../src/guestfs-actions.pod:1271 ../src/guestfs-actions.pod:1502
5250 #: ../src/guestfs-actions.pod:1849 ../src/guestfs-actions.pod:1865
5251 #: ../src/guestfs-actions.pod:1902 ../src/guestfs-actions.pod:1923
5252 #: ../src/guestfs-actions.pod:1937 ../src/guestfs-actions.pod:1963
5253 #: ../src/guestfs-actions.pod:3901 ../src/guestfs-actions.pod:3924
5254 #: ../src/guestfs-actions.pod:4032 ../src/guestfs-actions.pod:4055
5255 #: ../src/guestfs-actions.pod:4076 ../src/guestfs-actions.pod:4802
5256 #: ../src/guestfs-actions.pod:4854 ../src/guestfs-actions.pod:4970
5257 #: ../src/guestfs-actions.pod:4991 ../src/guestfs-actions.pod:5536
5258 #: ../src/guestfs-actions.pod:5559 ../src/guestfs-actions.pod:5582
5259 #: ../src/guestfs-actions.pod:5598 ../src/guestfs-actions.pod:5671
5260 #: ../src/guestfs-actions.pod:5687 ../src/guestfs-actions.pod:5727
5261 #: ../src/guestfs-actions.pod:5743 ../fish/guestfish-actions.pod:546
5262 #: ../fish/guestfish-actions.pod:681 ../fish/guestfish-actions.pod:693
5263 #: ../fish/guestfish-actions.pod:894 ../fish/guestfish-actions.pod:904
5264 #: ../fish/guestfish-actions.pod:971 ../fish/guestfish-actions.pod:981
5265 #: ../fish/guestfish-actions.pod:1176 ../fish/guestfish-actions.pod:1451
5266 #: ../fish/guestfish-actions.pod:1461 ../fish/guestfish-actions.pod:1489
5267 #: ../fish/guestfish-actions.pod:1504 ../fish/guestfish-actions.pod:1514
5268 #: ../fish/guestfish-actions.pod:1533 ../fish/guestfish-actions.pod:3003
5269 #: ../fish/guestfish-actions.pod:3018 ../fish/guestfish-actions.pod:3094
5270 #: ../fish/guestfish-actions.pod:3111 ../fish/guestfish-actions.pod:3126
5271 #: ../fish/guestfish-actions.pod:3709 ../fish/guestfish-actions.pod:3755
5272 #: ../fish/guestfish-actions.pod:3840 ../fish/guestfish-actions.pod:3855
5273 #: ../fish/guestfish-actions.pod:4265 ../fish/guestfish-actions.pod:4283
5274 #: ../fish/guestfish-actions.pod:4300 ../fish/guestfish-actions.pod:4310
5275 #: ../fish/guestfish-actions.pod:4358 ../fish/guestfish-actions.pod:4368
5276 #: ../fish/guestfish-actions.pod:4397 ../fish/guestfish-actions.pod:4407
5277 msgid ""
5278 "Because of the message protocol, there is a transfer limit of somewhere "
5279 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
5280 msgstr ""
5281
5282 # type: =head2
5283 #: ../src/guestfs-actions.pod:697
5284 msgid "guestfs_checksum"
5285 msgstr ""
5286
5287 # type: verbatim
5288 #: ../src/guestfs-actions.pod:699
5289 #, no-wrap
5290 msgid ""
5291 " char *guestfs_checksum (guestfs_h *g,\n"
5292 "\t\tconst char *csumtype,\n"
5293 "\t\tconst char *path);\n"
5294 "\n"
5295 msgstr ""
5296
5297 # type: textblock
5298 #: ../src/guestfs-actions.pod:703 ../fish/guestfish-actions.pod:553
5299 msgid ""
5300 "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
5301 msgstr ""
5302
5303 # type: textblock
5304 #: ../src/guestfs-actions.pod:706 ../fish/guestfish-actions.pod:556
5305 msgid ""
5306 "The type of checksum to compute is given by the C<csumtype> parameter which "
5307 "must have one of the following values:"
5308 msgstr ""
5309
5310 # type: =item
5311 #: ../src/guestfs-actions.pod:711 ../fish/guestfish-actions.pod:561
5312 msgid "C<crc>"
5313 msgstr ""
5314
5315 # type: textblock
5316 #: ../src/guestfs-actions.pod:713 ../fish/guestfish-actions.pod:563
5317 msgid ""
5318 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
5319 "C<cksum> command."
5320 msgstr ""
5321
5322 # type: =item
5323 #: ../src/guestfs-actions.pod:716 ../fish/guestfish-actions.pod:566
5324 msgid "C<md5>"
5325 msgstr ""
5326
5327 # type: textblock
5328 #: ../src/guestfs-actions.pod:718 ../fish/guestfish-actions.pod:568
5329 msgid "Compute the MD5 hash (using the C<md5sum> program)."
5330 msgstr ""
5331
5332 # type: =item
5333 #: ../src/guestfs-actions.pod:720 ../fish/guestfish-actions.pod:570
5334 msgid "C<sha1>"
5335 msgstr ""
5336
5337 # type: textblock
5338 #: ../src/guestfs-actions.pod:722 ../fish/guestfish-actions.pod:572
5339 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
5340 msgstr ""
5341
5342 # type: =item
5343 #: ../src/guestfs-actions.pod:724 ../fish/guestfish-actions.pod:574
5344 msgid "C<sha224>"
5345 msgstr ""
5346
5347 # type: textblock
5348 #: ../src/guestfs-actions.pod:726 ../fish/guestfish-actions.pod:576
5349 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
5350 msgstr ""
5351
5352 # type: =item
5353 #: ../src/guestfs-actions.pod:728 ../fish/guestfish-actions.pod:578
5354 msgid "C<sha256>"
5355 msgstr ""
5356
5357 # type: textblock
5358 #: ../src/guestfs-actions.pod:730 ../fish/guestfish-actions.pod:580
5359 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
5360 msgstr ""
5361
5362 # type: =item
5363 #: ../src/guestfs-actions.pod:732 ../fish/guestfish-actions.pod:582
5364 msgid "C<sha384>"
5365 msgstr ""
5366
5367 # type: textblock
5368 #: ../src/guestfs-actions.pod:734 ../fish/guestfish-actions.pod:584
5369 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
5370 msgstr ""
5371
5372 # type: =item
5373 #: ../src/guestfs-actions.pod:736 ../fish/guestfish-actions.pod:586
5374 msgid "C<sha512>"
5375 msgstr ""
5376
5377 # type: textblock
5378 #: ../src/guestfs-actions.pod:738 ../fish/guestfish-actions.pod:588
5379 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
5380 msgstr ""
5381
5382 # type: textblock
5383 #: ../src/guestfs-actions.pod:742 ../fish/guestfish-actions.pod:592
5384 msgid "The checksum is returned as a printable string."
5385 msgstr ""
5386
5387 # type: textblock
5388 #: ../src/guestfs-actions.pod:744
5389 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
5390 msgstr ""
5391
5392 # type: textblock
5393 #: ../src/guestfs-actions.pod:746
5394 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
5395 msgstr ""
5396
5397 # type: =head2
5398 #: ../src/guestfs-actions.pod:751
5399 msgid "guestfs_checksum_device"
5400 msgstr ""
5401
5402 # type: verbatim
5403 #: ../src/guestfs-actions.pod:753
5404 #, no-wrap
5405 msgid ""
5406 " char *guestfs_checksum_device (guestfs_h *g,\n"
5407 "\t\tconst char *csumtype,\n"
5408 "\t\tconst char *device);\n"
5409 "\n"
5410 msgstr ""
5411
5412 # type: textblock
5413 #: ../src/guestfs-actions.pod:757
5414 msgid ""
5415 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
5416 "device named C<device>.  For the types of checksums supported see the "
5417 "C<guestfs_checksum> command."
5418 msgstr ""
5419
5420 # type: =head2
5421 #: ../src/guestfs-actions.pod:764
5422 msgid "guestfs_checksums_out"
5423 msgstr ""
5424
5425 # type: verbatim
5426 #: ../src/guestfs-actions.pod:766
5427 #, no-wrap
5428 msgid ""
5429 " int guestfs_checksums_out (guestfs_h *g,\n"
5430 "\t\tconst char *csumtype,\n"
5431 "\t\tconst char *directory,\n"
5432 "\t\tconst char *sumsfile);\n"
5433 "\n"
5434 msgstr ""
5435
5436 # type: textblock
5437 #: ../src/guestfs-actions.pod:771 ../fish/guestfish-actions.pod:610
5438 msgid ""
5439 "This command computes the checksums of all regular files in C<directory> and "
5440 "then emits a list of those checksums to the local output file C<sumsfile>."
5441 msgstr ""
5442
5443 # type: textblock
5444 #: ../src/guestfs-actions.pod:775 ../fish/guestfish-actions.pod:614
5445 msgid ""
5446 "This can be used for verifying the integrity of a virtual machine.  However "
5447 "to be properly secure you should pay attention to the output of the checksum "
5448 "command (it uses the ones from GNU coreutils).  In particular when the "
5449 "filename is not printable, coreutils uses a special backslash syntax.  For "
5450 "more information, see the GNU coreutils info file."
5451 msgstr ""
5452
5453 # type: =head2
5454 #: ../src/guestfs-actions.pod:785
5455 msgid "guestfs_chmod"
5456 msgstr ""
5457
5458 # type: verbatim
5459 #: ../src/guestfs-actions.pod:787
5460 #, no-wrap
5461 msgid ""
5462 " int guestfs_chmod (guestfs_h *g,\n"
5463 "\t\tint mode,\n"
5464 "\t\tconst char *path);\n"
5465 "\n"
5466 msgstr ""
5467
5468 # type: textblock
5469 #: ../src/guestfs-actions.pod:791 ../fish/guestfish-actions.pod:628
5470 msgid ""
5471 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
5472 "supported."
5473 msgstr ""
5474
5475 # type: textblock
5476 #: ../src/guestfs-actions.pod:794 ../fish/guestfish-actions.pod:631
5477 msgid ""
5478 "I<Note>: When using this command from guestfish, C<mode> by default would be "
5479 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
5480 "C<700>."
5481 msgstr ""
5482
5483 # type: textblock
5484 #: ../src/guestfs-actions.pod:798 ../src/guestfs-actions.pod:3244
5485 #: ../src/guestfs-actions.pod:3332 ../src/guestfs-actions.pod:3348
5486 #: ../src/guestfs-actions.pod:3364 ../fish/guestfish-actions.pod:635
5487 #: ../fish/guestfish-actions.pod:2508 ../fish/guestfish-actions.pod:2578
5488 #: ../fish/guestfish-actions.pod:2588 ../fish/guestfish-actions.pod:2598
5489 msgid "The mode actually set is affected by the umask."
5490 msgstr ""
5491
5492 # type: =head2
5493 #: ../src/guestfs-actions.pod:802
5494 msgid "guestfs_chown"
5495 msgstr ""
5496
5497 # type: verbatim
5498 #: ../src/guestfs-actions.pod:804
5499 #, no-wrap
5500 msgid ""
5501 " int guestfs_chown (guestfs_h *g,\n"
5502 "\t\tint owner,\n"
5503 "\t\tint group,\n"
5504 "\t\tconst char *path);\n"
5505 "\n"
5506 msgstr ""
5507
5508 # type: textblock
5509 #: ../src/guestfs-actions.pod:809 ../fish/guestfish-actions.pod:641
5510 msgid "Change the file owner to C<owner> and group to C<group>."
5511 msgstr ""
5512
5513 # type: textblock
5514 #: ../src/guestfs-actions.pod:811 ../src/guestfs-actions.pod:2530
5515 #: ../fish/guestfish-actions.pod:643 ../fish/guestfish-actions.pod:1999
5516 msgid ""
5517 "Only numeric uid and gid are supported.  If you want to use names, you will "
5518 "need to locate and parse the password file yourself (Augeas support makes "
5519 "this relatively easy)."
5520 msgstr ""
5521
5522 # type: =head2
5523 #: ../src/guestfs-actions.pod:817
5524 msgid "guestfs_command"
5525 msgstr ""
5526
5527 # type: verbatim
5528 #: ../src/guestfs-actions.pod:819
5529 #, no-wrap
5530 msgid ""
5531 " char *guestfs_command (guestfs_h *g,\n"
5532 "\t\tchar *const *arguments);\n"
5533 "\n"
5534 msgstr ""
5535
5536 # type: textblock
5537 #: ../src/guestfs-actions.pod:822 ../fish/guestfish-actions.pod:651
5538 msgid ""
5539 "This call runs a command from the guest filesystem.  The filesystem must be "
5540 "mounted, and must contain a compatible operating system (ie. something "
5541 "Linux, with the same or compatible processor architecture)."
5542 msgstr ""
5543
5544 # type: textblock
5545 #: ../src/guestfs-actions.pod:827
5546 msgid ""
5547 "The single parameter is an argv-style list of arguments.  The first element "
5548 "is the name of the program to run.  Subsequent elements are parameters.  The "
5549 "list must be non-empty (ie. must contain a program name).  Note that the "
5550 "command runs directly, and is I<not> invoked via the shell (see "
5551 "C<guestfs_sh>)."
5552 msgstr ""
5553
5554 # type: textblock
5555 #: ../src/guestfs-actions.pod:834 ../fish/guestfish-actions.pod:663
5556 msgid "The return value is anything printed to I<stdout> by the command."
5557 msgstr ""
5558
5559 # type: textblock
5560 #: ../src/guestfs-actions.pod:837 ../fish/guestfish-actions.pod:666
5561 msgid ""
5562 "If the command returns a non-zero exit status, then this function returns an "
5563 "error message.  The error message string is the content of I<stderr> from "
5564 "the command."
5565 msgstr ""
5566
5567 # type: textblock
5568 #: ../src/guestfs-actions.pod:841 ../fish/guestfish-actions.pod:670
5569 msgid ""
5570 "The C<$PATH> environment variable will contain at least C</usr/bin> and C</"
5571 "bin>.  If you require a program from another location, you should provide "
5572 "the full path in the first parameter."
5573 msgstr ""
5574
5575 # type: textblock
5576 #: ../src/guestfs-actions.pod:846 ../fish/guestfish-actions.pod:675
5577 msgid ""
5578 "Shared libraries and data files required by the program must be available on "
5579 "filesystems which are mounted in the correct places.  It is the caller's "
5580 "responsibility to ensure all filesystems that are needed are mounted at the "
5581 "right locations."
5582 msgstr ""
5583
5584 # type: =head2
5585 #: ../src/guestfs-actions.pod:858
5586 msgid "guestfs_command_lines"
5587 msgstr ""
5588
5589 # type: verbatim
5590 #: ../src/guestfs-actions.pod:860
5591 #, no-wrap
5592 msgid ""
5593 " char **guestfs_command_lines (guestfs_h *g,\n"
5594 "\t\tchar *const *arguments);\n"
5595 "\n"
5596 msgstr ""
5597
5598 # type: textblock
5599 #: ../src/guestfs-actions.pod:863
5600 msgid ""
5601 "This is the same as C<guestfs_command>, but splits the result into a list of "
5602 "lines."
5603 msgstr ""
5604
5605 # type: textblock
5606 #: ../src/guestfs-actions.pod:866
5607 msgid "See also: C<guestfs_sh_lines>"
5608 msgstr ""
5609
5610 # type: =head2
5611 #: ../src/guestfs-actions.pod:875
5612 msgid "guestfs_config"
5613 msgstr ""
5614
5615 # type: verbatim
5616 #: ../src/guestfs-actions.pod:877
5617 #, no-wrap
5618 msgid ""
5619 " int guestfs_config (guestfs_h *g,\n"
5620 "\t\tconst char *qemuparam,\n"
5621 "\t\tconst char *qemuvalue);\n"
5622 "\n"
5623 msgstr ""
5624
5625 # type: textblock
5626 #: ../src/guestfs-actions.pod:881 ../fish/guestfish-actions.pod:700
5627 msgid ""
5628 "This can be used to add arbitrary qemu command line parameters of the form "
5629 "C<-param value>.  Actually it's not quite arbitrary - we prevent you from "
5630 "setting some parameters which would interfere with parameters that we use."
5631 msgstr ""
5632
5633 # type: textblock
5634 #: ../src/guestfs-actions.pod:886 ../fish/guestfish-actions.pod:705
5635 msgid "The first character of C<param> string must be a C<-> (dash)."
5636 msgstr ""
5637
5638 # type: textblock
5639 #: ../src/guestfs-actions.pod:888 ../fish/guestfish-actions.pod:707
5640 msgid "C<value> can be NULL."
5641 msgstr ""
5642
5643 # type: =head2
5644 #: ../src/guestfs-actions.pod:892
5645 msgid "guestfs_copy_size"
5646 msgstr ""
5647
5648 # type: verbatim
5649 #: ../src/guestfs-actions.pod:894
5650 #, no-wrap
5651 msgid ""
5652 " int guestfs_copy_size (guestfs_h *g,\n"
5653 "\t\tconst char *src,\n"
5654 "\t\tconst char *dest,\n"
5655 "\t\tint64_t size);\n"
5656 "\n"
5657 msgstr ""
5658
5659 # type: textblock
5660 #: ../src/guestfs-actions.pod:899 ../fish/guestfish-actions.pod:713
5661 msgid ""
5662 "This command copies exactly C<size> bytes from one source device or file "
5663 "C<src> to another destination device or file C<dest>."
5664 msgstr ""
5665
5666 # type: textblock
5667 #: ../src/guestfs-actions.pod:902 ../fish/guestfish-actions.pod:716
5668 msgid ""
5669 "Note this will fail if the source is too short or if the destination is not "
5670 "large enough."
5671 msgstr ""
5672
5673 # type: textblock
5674 #: ../src/guestfs-actions.pod:907 ../src/guestfs-actions.pod:1042
5675 #: ../src/guestfs-actions.pod:1070 ../src/guestfs-actions.pod:1442
5676 #: ../src/guestfs-actions.pod:1461 ../src/guestfs-actions.pod:5616
5677 #: ../src/guestfs-actions.pod:5632
5678 msgid ""
5679 "This long-running command can generate progress notification messages so "
5680 "that the caller can display a progress bar or indicator.  To receive these "
5681 "messages, the caller must register a progress callback.  See L<guestfs(3)/"
5682 "guestfs_set_progress_callback>."
5683 msgstr ""
5684
5685 # type: =head2
5686 #: ../src/guestfs-actions.pod:912
5687 msgid "guestfs_cp"
5688 msgstr ""
5689
5690 # type: verbatim
5691 #: ../src/guestfs-actions.pod:914
5692 #, no-wrap
5693 msgid ""
5694 " int guestfs_cp (guestfs_h *g,\n"
5695 "\t\tconst char *src,\n"
5696 "\t\tconst char *dest);\n"
5697 "\n"
5698 msgstr ""
5699
5700 # type: textblock
5701 #: ../src/guestfs-actions.pod:918 ../fish/guestfish-actions.pod:723
5702 msgid ""
5703 "This copies a file from C<src> to C<dest> where C<dest> is either a "
5704 "destination filename or destination directory."
5705 msgstr ""
5706
5707 # type: =head2
5708 #: ../src/guestfs-actions.pod:923
5709 msgid "guestfs_cp_a"
5710 msgstr ""
5711
5712 # type: verbatim
5713 #: ../src/guestfs-actions.pod:925
5714 #, no-wrap
5715 msgid ""
5716 " int guestfs_cp_a (guestfs_h *g,\n"
5717 "\t\tconst char *src,\n"
5718 "\t\tconst char *dest);\n"
5719 "\n"
5720 msgstr ""
5721
5722 # type: textblock
5723 #: ../src/guestfs-actions.pod:929 ../fish/guestfish-actions.pod:730
5724 msgid ""
5725 "This copies a file or directory from C<src> to C<dest> recursively using the "
5726 "C<cp -a> command."
5727 msgstr ""
5728
5729 # type: =head2
5730 #: ../src/guestfs-actions.pod:934
5731 msgid "guestfs_dd"
5732 msgstr ""
5733
5734 # type: verbatim
5735 #: ../src/guestfs-actions.pod:936
5736 #, no-wrap
5737 msgid ""
5738 " int guestfs_dd (guestfs_h *g,\n"
5739 "\t\tconst char *src,\n"
5740 "\t\tconst char *dest);\n"
5741 "\n"
5742 msgstr ""
5743
5744 # type: textblock
5745 #: ../src/guestfs-actions.pod:940 ../fish/guestfish-actions.pod:737
5746 msgid ""
5747 "This command copies from one source device or file C<src> to another "
5748 "destination device or file C<dest>.  Normally you would use this to copy to "
5749 "or from a device or partition, for example to duplicate a filesystem."
5750 msgstr ""
5751
5752 # type: textblock
5753 #: ../src/guestfs-actions.pod:945
5754 msgid ""
5755 "If the destination is a device, it must be as large or larger than the "
5756 "source file or device, otherwise the copy will fail.  This command cannot do "
5757 "partial copies (see C<guestfs_copy_size>)."
5758 msgstr ""
5759
5760 # type: =head2
5761 #: ../src/guestfs-actions.pod:951
5762 msgid "guestfs_debug"
5763 msgstr ""
5764
5765 # type: verbatim
5766 #: ../src/guestfs-actions.pod:953
5767 #, no-wrap
5768 msgid ""
5769 " char *guestfs_debug (guestfs_h *g,\n"
5770 "\t\tconst char *subcmd,\n"
5771 "\t\tchar *const *extraargs);\n"
5772 "\n"
5773 msgstr ""
5774
5775 # type: textblock
5776 #: ../src/guestfs-actions.pod:957
5777 msgid ""
5778 "The C<guestfs_debug> command exposes some internals of C<guestfsd> (the "
5779 "guestfs daemon) that runs inside the qemu subprocess."
5780 msgstr ""
5781
5782 # type: textblock
5783 #: ../src/guestfs-actions.pod:961 ../fish/guestfish-actions.pod:754
5784 msgid ""
5785 "There is no comprehensive help for this command.  You have to look at the "
5786 "file C<daemon/debug.c> in the libguestfs source to find out what you can do."
5787 msgstr ""
5788
5789 # type: =head2
5790 #: ../src/guestfs-actions.pod:968
5791 msgid "guestfs_debug_upload"
5792 msgstr ""
5793
5794 # type: verbatim
5795 #: ../src/guestfs-actions.pod:970
5796 #, no-wrap
5797 msgid ""
5798 " int guestfs_debug_upload (guestfs_h *g,\n"
5799 "\t\tconst char *filename,\n"
5800 "\t\tconst char *tmpname,\n"
5801 "\t\tint mode);\n"
5802 "\n"
5803 msgstr ""
5804
5805 # type: textblock
5806 #: ../src/guestfs-actions.pod:975
5807 msgid ""
5808 "The C<guestfs_debug_upload> command uploads a file to the libguestfs "
5809 "appliance."
5810 msgstr ""
5811
5812 # type: textblock
5813 #: ../src/guestfs-actions.pod:978 ../fish/guestfish-actions.pod:765
5814 msgid ""
5815 "There is no comprehensive help for this command.  You have to look at the "
5816 "file C<daemon/debug.c> in the libguestfs source to find out what it is for."
5817 msgstr ""
5818
5819 # type: =head2
5820 #: ../src/guestfs-actions.pod:984
5821 msgid "guestfs_df"
5822 msgstr ""
5823
5824 # type: verbatim
5825 #: ../src/guestfs-actions.pod:986
5826 #, no-wrap
5827 msgid ""
5828 " char *guestfs_df (guestfs_h *g);\n"
5829 "\n"
5830 msgstr ""
5831
5832 # type: textblock
5833 #: ../src/guestfs-actions.pod:988 ../fish/guestfish-actions.pod:775
5834 msgid "This command runs the C<df> command to report disk space used."
5835 msgstr ""
5836
5837 # type: textblock
5838 #: ../src/guestfs-actions.pod:990 ../src/guestfs-actions.pod:1004
5839 #: ../fish/guestfish-actions.pod:777 ../fish/guestfish-actions.pod:788
5840 msgid ""
5841 "This command is mostly useful for interactive sessions.  It is I<not> "
5842 "intended that you try to parse the output string.  Use C<statvfs> from "
5843 "programs."
5844 msgstr ""
5845
5846 # type: =head2
5847 #: ../src/guestfs-actions.pod:997
5848 msgid "guestfs_df_h"
5849 msgstr ""
5850
5851 # type: verbatim
5852 #: ../src/guestfs-actions.pod:999
5853 #, no-wrap
5854 msgid ""
5855 " char *guestfs_df_h (guestfs_h *g);\n"
5856 "\n"
5857 msgstr ""
5858
5859 # type: textblock
5860 #: ../src/guestfs-actions.pod:1001 ../fish/guestfish-actions.pod:785
5861 msgid ""
5862 "This command runs the C<df -h> command to report disk space used in human-"
5863 "readable format."
5864 msgstr ""
5865
5866 # type: =head2
5867 #: ../src/guestfs-actions.pod:1011
5868 msgid "guestfs_dmesg"
5869 msgstr ""
5870
5871 # type: verbatim
5872 #: ../src/guestfs-actions.pod:1013
5873 #, no-wrap
5874 msgid ""
5875 " char *guestfs_dmesg (guestfs_h *g);\n"
5876 "\n"
5877 msgstr ""
5878
5879 # type: textblock
5880 #: ../src/guestfs-actions.pod:1015 ../fish/guestfish-actions.pod:796
5881 msgid ""
5882 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
5883 "This is sometimes useful for extended debugging of problems."
5884 msgstr ""
5885
5886 # type: textblock
5887 #: ../src/guestfs-actions.pod:1019
5888 msgid ""
5889 "Another way to get the same information is to enable verbose messages with "
5890 "C<guestfs_set_verbose> or by setting the environment variable "
5891 "C<LIBGUESTFS_DEBUG=1> before running the program."
5892 msgstr ""
5893
5894 # type: =head2
5895 #: ../src/guestfs-actions.pod:1027
5896 msgid "guestfs_download"
5897 msgstr ""
5898
5899 # type: verbatim
5900 #: ../src/guestfs-actions.pod:1029
5901 #, no-wrap
5902 msgid ""
5903 " int guestfs_download (guestfs_h *g,\n"
5904 "\t\tconst char *remotefilename,\n"
5905 "\t\tconst char *filename);\n"
5906 "\n"
5907 msgstr ""
5908
5909 # type: textblock
5910 #: ../src/guestfs-actions.pod:1033 ../src/guestfs-actions.pod:1055
5911 #: ../fish/guestfish-actions.pod:809 ../fish/guestfish-actions.pod:822
5912 msgid ""
5913 "Download file C<remotefilename> and save it as C<filename> on the local "
5914 "machine."
5915 msgstr ""
5916
5917 # type: textblock
5918 #: ../src/guestfs-actions.pod:1036 ../src/guestfs-actions.pod:5184
5919 #: ../fish/guestfish-actions.pod:812 ../fish/guestfish-actions.pod:4013
5920 msgid "C<filename> can also be a named pipe."
5921 msgstr ""
5922
5923 # type: textblock
5924 #: ../src/guestfs-actions.pod:1038
5925 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
5926 msgstr ""
5927
5928 # type: =head2
5929 #: ../src/guestfs-actions.pod:1047
5930 msgid "guestfs_download_offset"
5931 msgstr ""
5932
5933 # type: verbatim
5934 #: ../src/guestfs-actions.pod:1049
5935 #, no-wrap
5936 msgid ""
5937 " int guestfs_download_offset (guestfs_h *g,\n"
5938 "\t\tconst char *remotefilename,\n"
5939 "\t\tconst char *filename,\n"
5940 "\t\tint64_t offset,\n"
5941 "\t\tint64_t size);\n"
5942 "\n"
5943 msgstr ""
5944
5945 # type: textblock
5946 #: ../src/guestfs-actions.pod:1058 ../fish/guestfish-actions.pod:825
5947 msgid ""
5948 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
5949 "region must be within the file or device)."
5950 msgstr ""
5951
5952 # type: textblock
5953 #: ../src/guestfs-actions.pod:1061
5954 msgid ""
5955 "Note that there is no limit on the amount of data that can be downloaded "
5956 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
5957 "full amount unless an error occurs."
5958 msgstr ""
5959
5960 # type: textblock
5961 #: ../src/guestfs-actions.pod:1066
5962 msgid "See also C<guestfs_download>, C<guestfs_pread>."
5963 msgstr ""
5964
5965 # type: =head2
5966 #: ../src/guestfs-actions.pod:1075
5967 msgid "guestfs_drop_caches"
5968 msgstr ""
5969
5970 # type: verbatim
5971 #: ../src/guestfs-actions.pod:1077
5972 #, no-wrap
5973 msgid ""
5974 " int guestfs_drop_caches (guestfs_h *g,\n"
5975 "\t\tint whattodrop);\n"
5976 "\n"
5977 msgstr ""
5978
5979 # type: textblock
5980 #: ../src/guestfs-actions.pod:1080 ../fish/guestfish-actions.pod:841
5981 msgid ""
5982 "This instructs the guest kernel to drop its page cache, and/or dentries and "
5983 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
5984 "to drop, see L<http://linux-mm.org/Drop_Caches>"
5985 msgstr ""
5986
5987 # type: textblock
5988 #: ../src/guestfs-actions.pod:1085 ../fish/guestfish-actions.pod:846
5989 msgid "Setting C<whattodrop> to 3 should drop everything."
5990 msgstr ""
5991
5992 # type: textblock
5993 #: ../src/guestfs-actions.pod:1087 ../fish/guestfish-actions.pod:848
5994 msgid ""
5995 "This automatically calls L<sync(2)> before the operation, so that the "
5996 "maximum guest memory is freed."
5997 msgstr ""
5998
5999 # type: =head2
6000 #: ../src/guestfs-actions.pod:1092
6001 msgid "guestfs_du"
6002 msgstr ""
6003
6004 # type: verbatim
6005 #: ../src/guestfs-actions.pod:1094
6006 #, no-wrap
6007 msgid ""
6008 " int64_t guestfs_du (guestfs_h *g,\n"
6009 "\t\tconst char *path);\n"
6010 "\n"
6011 msgstr ""
6012
6013 # type: textblock
6014 #: ../src/guestfs-actions.pod:1097 ../fish/guestfish-actions.pod:855
6015 msgid ""
6016 "This command runs the C<du -s> command to estimate file space usage for "
6017 "C<path>."
6018 msgstr ""
6019
6020 # type: textblock
6021 #: ../src/guestfs-actions.pod:1100 ../fish/guestfish-actions.pod:858
6022 msgid ""
6023 "C<path> can be a file or a directory.  If C<path> is a directory then the "
6024 "estimate includes the contents of the directory and all subdirectories "
6025 "(recursively)."
6026 msgstr ""
6027
6028 # type: textblock
6029 #: ../src/guestfs-actions.pod:1104 ../fish/guestfish-actions.pod:862
6030 msgid ""
6031 "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
6032 msgstr ""
6033
6034 # type: =head2
6035 #: ../src/guestfs-actions.pod:1109
6036 msgid "guestfs_e2fsck_f"
6037 msgstr ""
6038
6039 # type: verbatim
6040 #: ../src/guestfs-actions.pod:1111
6041 #, no-wrap
6042 msgid ""
6043 " int guestfs_e2fsck_f (guestfs_h *g,\n"
6044 "\t\tconst char *device);\n"
6045 "\n"
6046 msgstr ""
6047
6048 # type: textblock
6049 #: ../src/guestfs-actions.pod:1114 ../fish/guestfish-actions.pod:869
6050 msgid ""
6051 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
6052 "on C<device>, noninteractively (C<-p>), even if the filesystem appears to be "
6053 "clean (C<-f>)."
6054 msgstr ""
6055
6056 # type: textblock
6057 #: ../src/guestfs-actions.pod:1118
6058 msgid ""
6059 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
6060 "Normally you should use C<guestfs_fsck>."
6061 msgstr ""
6062
6063 # type: =head2
6064 #: ../src/guestfs-actions.pod:1123
6065 msgid "guestfs_echo_daemon"
6066 msgstr ""
6067
6068 # type: verbatim
6069 #: ../src/guestfs-actions.pod:1125
6070 #, no-wrap
6071 msgid ""
6072 " char *guestfs_echo_daemon (guestfs_h *g,\n"
6073 "\t\tchar *const *words);\n"
6074 "\n"
6075 msgstr ""
6076
6077 # type: textblock
6078 #: ../src/guestfs-actions.pod:1128 ../fish/guestfish-actions.pod:880
6079 msgid ""
6080 "This command concatenates the list of C<words> passed with single spaces "
6081 "between them and returns the resulting string."
6082 msgstr ""
6083
6084 # type: textblock
6085 #: ../src/guestfs-actions.pod:1131 ../fish/guestfish-actions.pod:883
6086 msgid "You can use this command to test the connection through to the daemon."
6087 msgstr ""
6088
6089 # type: textblock
6090 #: ../src/guestfs-actions.pod:1133
6091 msgid "See also C<guestfs_ping_daemon>."
6092 msgstr ""
6093
6094 # type: =head2
6095 #: ../src/guestfs-actions.pod:1138
6096 msgid "guestfs_egrep"
6097 msgstr ""
6098
6099 # type: verbatim
6100 #: ../src/guestfs-actions.pod:1140
6101 #, no-wrap
6102 msgid ""
6103 " char **guestfs_egrep (guestfs_h *g,\n"
6104 "\t\tconst char *regex,\n"
6105 "\t\tconst char *path);\n"
6106 "\n"
6107 msgstr ""
6108
6109 # type: textblock
6110 #: ../src/guestfs-actions.pod:1144 ../fish/guestfish-actions.pod:891
6111 msgid ""
6112 "This calls the external C<egrep> program and returns the matching lines."
6113 msgstr ""
6114
6115 # type: =head2
6116 #: ../src/guestfs-actions.pod:1154
6117 msgid "guestfs_egrepi"
6118 msgstr ""
6119
6120 # type: verbatim
6121 #: ../src/guestfs-actions.pod:1156
6122 #, no-wrap
6123 msgid ""
6124 " char **guestfs_egrepi (guestfs_h *g,\n"
6125 "\t\tconst char *regex,\n"
6126 "\t\tconst char *path);\n"
6127 "\n"
6128 msgstr ""
6129
6130 # type: textblock
6131 #: ../src/guestfs-actions.pod:1160 ../fish/guestfish-actions.pod:901
6132 msgid ""
6133 "This calls the external C<egrep -i> program and returns the matching lines."
6134 msgstr ""
6135
6136 # type: =head2
6137 #: ../src/guestfs-actions.pod:1170
6138 msgid "guestfs_equal"
6139 msgstr ""
6140
6141 # type: verbatim
6142 #: ../src/guestfs-actions.pod:1172
6143 #, no-wrap
6144 msgid ""
6145 " int guestfs_equal (guestfs_h *g,\n"
6146 "\t\tconst char *file1,\n"
6147 "\t\tconst char *file2);\n"
6148 "\n"
6149 msgstr ""
6150
6151 # type: textblock
6152 #: ../src/guestfs-actions.pod:1176 ../fish/guestfish-actions.pod:911
6153 msgid ""
6154 "This compares the two files C<file1> and C<file2> and returns true if their "
6155 "content is exactly equal, or false otherwise."
6156 msgstr ""
6157
6158 # type: textblock
6159 #: ../src/guestfs-actions.pod:1179 ../fish/guestfish-actions.pod:914
6160 msgid "The external L<cmp(1)> program is used for the comparison."
6161 msgstr ""
6162
6163 # type: =head2
6164 #: ../src/guestfs-actions.pod:1183
6165 msgid "guestfs_exists"
6166 msgstr ""
6167
6168 # type: verbatim
6169 #: ../src/guestfs-actions.pod:1185
6170 #, no-wrap
6171 msgid ""
6172 " int guestfs_exists (guestfs_h *g,\n"
6173 "\t\tconst char *path);\n"
6174 "\n"
6175 msgstr ""
6176
6177 # type: textblock
6178 #: ../src/guestfs-actions.pod:1188 ../fish/guestfish-actions.pod:920
6179 msgid ""
6180 "This returns C<true> if and only if there is a file, directory (or anything) "
6181 "with the given C<path> name."
6182 msgstr ""
6183
6184 # type: textblock
6185 #: ../src/guestfs-actions.pod:1191
6186 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
6187 msgstr ""
6188
6189 # type: =head2
6190 #: ../src/guestfs-actions.pod:1195
6191 msgid "guestfs_fallocate"
6192 msgstr ""
6193
6194 # type: verbatim
6195 #: ../src/guestfs-actions.pod:1197
6196 #, no-wrap
6197 msgid ""
6198 " int guestfs_fallocate (guestfs_h *g,\n"
6199 "\t\tconst char *path,\n"
6200 "\t\tint len);\n"
6201 "\n"
6202 msgstr ""
6203
6204 # type: textblock
6205 #: ../src/guestfs-actions.pod:1201 ../src/guestfs-actions.pod:1224
6206 #: ../fish/guestfish-actions.pod:929 ../fish/guestfish-actions.pod:948
6207 msgid ""
6208 "This command preallocates a file (containing zero bytes) named C<path> of "
6209 "size C<len> bytes.  If the file exists already, it is overwritten."
6210 msgstr ""
6211
6212 # type: textblock
6213 #: ../src/guestfs-actions.pod:1205 ../fish/guestfish-actions.pod:933
6214 msgid ""
6215 "Do not confuse this with the guestfish-specific C<alloc> command which "
6216 "allocates a file in the host and attaches it as a device."
6217 msgstr ""
6218
6219 # type: textblock
6220 #: ../src/guestfs-actions.pod:1211 ../fish/guestfish-actions.pod:937
6221 msgid ""
6222 "This function is deprecated.  In new code, use the C<fallocate64> call "
6223 "instead."
6224 msgstr ""
6225
6226 # type: =head2
6227 #: ../src/guestfs-actions.pod:1218
6228 msgid "guestfs_fallocate64"
6229 msgstr ""
6230
6231 # type: verbatim
6232 #: ../src/guestfs-actions.pod:1220
6233 #, no-wrap
6234 msgid ""
6235 " int guestfs_fallocate64 (guestfs_h *g,\n"
6236 "\t\tconst char *path,\n"
6237 "\t\tint64_t len);\n"
6238 "\n"
6239 msgstr ""
6240
6241 # type: textblock
6242 #: ../src/guestfs-actions.pod:1228
6243 msgid ""
6244 "Note that this call allocates disk blocks for the file.  To create a sparse "
6245 "file use C<guestfs_truncate_size> instead."
6246 msgstr ""
6247
6248 # type: textblock
6249 #: ../src/guestfs-actions.pod:1231
6250 msgid ""
6251 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
6252 "oversight it only allowed 30 bit lengths to be specified, effectively "
6253 "limiting the maximum size of files created through that call to 1GB."
6254 msgstr ""
6255
6256 # type: textblock
6257 #: ../src/guestfs-actions.pod:1236 ../fish/guestfish-actions.pod:960
6258 msgid ""
6259 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
6260 "commands which create a file in the host and attach it as a device."
6261 msgstr ""
6262
6263 # type: =head2
6264 #: ../src/guestfs-actions.pod:1242
6265 msgid "guestfs_fgrep"
6266 msgstr ""
6267
6268 # type: verbatim
6269 #: ../src/guestfs-actions.pod:1244
6270 #, no-wrap
6271 msgid ""
6272 " char **guestfs_fgrep (guestfs_h *g,\n"
6273 "\t\tconst char *pattern,\n"
6274 "\t\tconst char *path);\n"
6275 "\n"
6276 msgstr ""
6277
6278 # type: textblock
6279 #: ../src/guestfs-actions.pod:1248 ../fish/guestfish-actions.pod:968
6280 msgid ""
6281 "This calls the external C<fgrep> program and returns the matching lines."
6282 msgstr ""
6283
6284 # type: =head2
6285 #: ../src/guestfs-actions.pod:1258
6286 msgid "guestfs_fgrepi"
6287 msgstr ""
6288
6289 # type: verbatim
6290 #: ../src/guestfs-actions.pod:1260
6291 #, no-wrap
6292 msgid ""
6293 " char **guestfs_fgrepi (guestfs_h *g,\n"
6294 "\t\tconst char *pattern,\n"
6295 "\t\tconst char *path);\n"
6296 "\n"
6297 msgstr ""
6298
6299 # type: textblock
6300 #: ../src/guestfs-actions.pod:1264 ../fish/guestfish-actions.pod:978
6301 msgid ""
6302 "This calls the external C<fgrep -i> program and returns the matching lines."
6303 msgstr ""
6304
6305 # type: =head2
6306 #: ../src/guestfs-actions.pod:1274
6307 msgid "guestfs_file"
6308 msgstr ""
6309
6310 # type: verbatim
6311 #: ../src/guestfs-actions.pod:1276
6312 #, no-wrap
6313 msgid ""
6314 " char *guestfs_file (guestfs_h *g,\n"
6315 "\t\tconst char *path);\n"
6316 "\n"
6317 msgstr ""
6318
6319 # type: textblock
6320 #: ../src/guestfs-actions.pod:1279 ../fish/guestfish-actions.pod:988
6321 msgid ""
6322 "This call uses the standard L<file(1)> command to determine the type or "
6323 "contents of the file."
6324 msgstr ""
6325
6326 # type: textblock
6327 #: ../src/guestfs-actions.pod:1282 ../fish/guestfish-actions.pod:991
6328 msgid ""
6329 "This call will also transparently look inside various types of compressed "
6330 "file."
6331 msgstr ""
6332
6333 # type: textblock
6334 #: ../src/guestfs-actions.pod:1285 ../fish/guestfish-actions.pod:994
6335 msgid ""
6336 "The exact command which runs is C<file -zb path>.  Note in particular that "
6337 "the filename is not prepended to the output (the C<-b> option)."
6338 msgstr ""
6339
6340 # type: textblock
6341 #: ../src/guestfs-actions.pod:1289
6342 msgid ""
6343 "This command can also be used on C</dev/> devices (and partitions, LV "
6344 "names).  You can for example use this to determine if a device contains a "
6345 "filesystem, although it's usually better to use C<guestfs_vfs_type>."
6346 msgstr ""
6347
6348 # type: textblock
6349 #: ../src/guestfs-actions.pod:1294 ../fish/guestfish-actions.pod:1003
6350 msgid ""
6351 "If the C<path> does not begin with C</dev/> then this command only works for "
6352 "the content of regular files.  For other file types (directory, symbolic "
6353 "link etc) it will just return the string C<directory> etc."
6354 msgstr ""
6355
6356 # type: =head2
6357 #: ../src/guestfs-actions.pod:1302
6358 msgid "guestfs_file_architecture"
6359 msgstr ""
6360
6361 # type: verbatim
6362 #: ../src/guestfs-actions.pod:1304
6363 #, no-wrap
6364 msgid ""
6365 " char *guestfs_file_architecture (guestfs_h *g,\n"
6366 "\t\tconst char *filename);\n"
6367 "\n"
6368 msgstr ""
6369
6370 # type: textblock
6371 #: ../src/guestfs-actions.pod:1307 ../fish/guestfish-actions.pod:1012
6372 msgid ""
6373 "This detects the architecture of the binary C<filename>, and returns it if "
6374 "known."
6375 msgstr ""
6376
6377 # type: textblock
6378 #: ../src/guestfs-actions.pod:1310 ../fish/guestfish-actions.pod:1015
6379 msgid "Currently defined architectures are:"
6380 msgstr ""
6381
6382 # type: =item
6383 #: ../src/guestfs-actions.pod:1314 ../fish/guestfish-actions.pod:1019
6384 msgid "\"i386\""
6385 msgstr ""
6386
6387 # type: textblock
6388 #: ../src/guestfs-actions.pod:1316 ../fish/guestfish-actions.pod:1021
6389 msgid ""
6390 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
6391 "irrespective of the precise processor requirements of the binary."
6392 msgstr ""
6393
6394 # type: =item
6395 #: ../src/guestfs-actions.pod:1319 ../fish/guestfish-actions.pod:1024
6396 msgid "\"x86_64\""
6397 msgstr ""
6398
6399 # type: textblock
6400 #: ../src/guestfs-actions.pod:1321 ../fish/guestfish-actions.pod:1026
6401 msgid "64 bit x86-64."
6402 msgstr ""
6403
6404 # type: =item
6405 #: ../src/guestfs-actions.pod:1323 ../fish/guestfish-actions.pod:1028
6406 msgid "\"sparc\""
6407 msgstr ""
6408
6409 # type: textblock
6410 #: ../src/guestfs-actions.pod:1325 ../fish/guestfish-actions.pod:1030
6411 msgid "32 bit SPARC."
6412 msgstr ""
6413
6414 # type: =item
6415 #: ../src/guestfs-actions.pod:1327 ../fish/guestfish-actions.pod:1032
6416 msgid "\"sparc64\""
6417 msgstr ""
6418
6419 # type: textblock
6420 #: ../src/guestfs-actions.pod:1329 ../fish/guestfish-actions.pod:1034
6421 msgid "64 bit SPARC V9 and above."
6422 msgstr ""
6423
6424 # type: =item
6425 #: ../src/guestfs-actions.pod:1331 ../fish/guestfish-actions.pod:1036
6426 msgid "\"ia64\""
6427 msgstr ""
6428
6429 # type: textblock
6430 #: ../src/guestfs-actions.pod:1333 ../fish/guestfish-actions.pod:1038
6431 msgid "Intel Itanium."
6432 msgstr ""
6433
6434 # type: =item
6435 #: ../src/guestfs-actions.pod:1335 ../fish/guestfish-actions.pod:1040
6436 msgid "\"ppc\""
6437 msgstr ""
6438
6439 # type: textblock
6440 #: ../src/guestfs-actions.pod:1337 ../fish/guestfish-actions.pod:1042
6441 msgid "32 bit Power PC."
6442 msgstr ""
6443
6444 # type: =item
6445 #: ../src/guestfs-actions.pod:1339 ../fish/guestfish-actions.pod:1044
6446 msgid "\"ppc64\""
6447 msgstr ""
6448
6449 # type: textblock
6450 #: ../src/guestfs-actions.pod:1341 ../fish/guestfish-actions.pod:1046
6451 msgid "64 bit Power PC."
6452 msgstr ""
6453
6454 # type: textblock
6455 #: ../src/guestfs-actions.pod:1345 ../fish/guestfish-actions.pod:1050
6456 msgid "Libguestfs may return other architecture strings in future."
6457 msgstr ""
6458
6459 # type: textblock
6460 #: ../src/guestfs-actions.pod:1347 ../fish/guestfish-actions.pod:1052
6461 msgid "The function works on at least the following types of files:"
6462 msgstr ""
6463
6464 # type: textblock
6465 #: ../src/guestfs-actions.pod:1353 ../fish/guestfish-actions.pod:1058
6466 msgid "many types of Un*x and Linux binary"
6467 msgstr ""
6468
6469 # type: textblock
6470 #: ../src/guestfs-actions.pod:1357 ../fish/guestfish-actions.pod:1062
6471 msgid "many types of Un*x and Linux shared library"
6472 msgstr ""
6473
6474 # type: textblock
6475 #: ../src/guestfs-actions.pod:1361 ../fish/guestfish-actions.pod:1066
6476 msgid "Windows Win32 and Win64 binaries"
6477 msgstr ""
6478
6479 # type: textblock
6480 #: ../src/guestfs-actions.pod:1365 ../fish/guestfish-actions.pod:1070
6481 msgid "Windows Win32 and Win64 DLLs"
6482 msgstr ""
6483
6484 # type: textblock
6485 #: ../src/guestfs-actions.pod:1367 ../fish/guestfish-actions.pod:1072
6486 msgid "Win32 binaries and DLLs return C<i386>."
6487 msgstr ""
6488
6489 # type: textblock
6490 #: ../src/guestfs-actions.pod:1369 ../fish/guestfish-actions.pod:1074
6491 msgid "Win64 binaries and DLLs return C<x86_64>."
6492 msgstr ""
6493
6494 # type: textblock
6495 #: ../src/guestfs-actions.pod:1373 ../fish/guestfish-actions.pod:1078
6496 msgid "Linux kernel modules"
6497 msgstr ""
6498
6499 # type: textblock
6500 #: ../src/guestfs-actions.pod:1377 ../fish/guestfish-actions.pod:1082
6501 msgid "Linux new-style initrd images"
6502 msgstr ""
6503
6504 # type: textblock
6505 #: ../src/guestfs-actions.pod:1381 ../fish/guestfish-actions.pod:1086
6506 msgid "some non-x86 Linux vmlinuz kernels"
6507 msgstr ""
6508
6509 # type: textblock
6510 #: ../src/guestfs-actions.pod:1385 ../fish/guestfish-actions.pod:1090
6511 msgid "What it can't do currently:"
6512 msgstr ""
6513
6514 # type: textblock
6515 #: ../src/guestfs-actions.pod:1391 ../fish/guestfish-actions.pod:1096
6516 msgid "static libraries (libfoo.a)"
6517 msgstr ""
6518
6519 # type: textblock
6520 #: ../src/guestfs-actions.pod:1395 ../fish/guestfish-actions.pod:1100
6521 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
6522 msgstr ""
6523
6524 # type: textblock
6525 #: ../src/guestfs-actions.pod:1399 ../fish/guestfish-actions.pod:1104
6526 msgid "x86 Linux vmlinuz kernels"
6527 msgstr ""
6528
6529 # type: textblock
6530 #: ../src/guestfs-actions.pod:1401 ../fish/guestfish-actions.pod:1106
6531 msgid ""
6532 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
6533 "compressed code, and are horribly hard to unpack.  If you want to find the "
6534 "architecture of a kernel, use the architecture of the associated initrd or "
6535 "kernel module(s) instead."
6536 msgstr ""
6537
6538 # type: =head2
6539 #: ../src/guestfs-actions.pod:1411
6540 msgid "guestfs_filesize"
6541 msgstr ""
6542
6543 # type: verbatim
6544 #: ../src/guestfs-actions.pod:1413
6545 #, no-wrap
6546 msgid ""
6547 " int64_t guestfs_filesize (guestfs_h *g,\n"
6548 "\t\tconst char *file);\n"
6549 "\n"
6550 msgstr ""
6551
6552 # type: textblock
6553 #: ../src/guestfs-actions.pod:1416 ../fish/guestfish-actions.pod:1117
6554 msgid "This command returns the size of C<file> in bytes."
6555 msgstr ""
6556
6557 # type: textblock
6558 #: ../src/guestfs-actions.pod:1418
6559 msgid ""
6560 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
6561 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
6562 "devices, use C<guestfs_blockdev_getsize64>."
6563 msgstr ""
6564
6565 # type: =head2
6566 #: ../src/guestfs-actions.pod:1424
6567 msgid "guestfs_fill"
6568 msgstr ""
6569
6570 # type: verbatim
6571 #: ../src/guestfs-actions.pod:1426
6572 #, no-wrap
6573 msgid ""
6574 " int guestfs_fill (guestfs_h *g,\n"
6575 "\t\tint c,\n"
6576 "\t\tint len,\n"
6577 "\t\tconst char *path);\n"
6578 "\n"
6579 msgstr ""
6580
6581 # type: textblock
6582 #: ../src/guestfs-actions.pod:1431 ../fish/guestfish-actions.pod:1127
6583 msgid ""
6584 "This command creates a new file called C<path>.  The initial content of the "
6585 "file is C<len> octets of C<c>, where C<c> must be a number in the range C<"
6586 "[0..255]>."
6587 msgstr ""
6588
6589 # type: textblock
6590 #: ../src/guestfs-actions.pod:1435
6591 msgid ""
6592 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
6593 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
6594 "bytes use C<guestfs_fill_pattern>."
6595 msgstr ""
6596
6597 # type: =head2
6598 #: ../src/guestfs-actions.pod:1447
6599 msgid "guestfs_fill_pattern"
6600 msgstr ""
6601
6602 # type: verbatim
6603 #: ../src/guestfs-actions.pod:1449
6604 #, no-wrap
6605 msgid ""
6606 " int guestfs_fill_pattern (guestfs_h *g,\n"
6607 "\t\tconst char *pattern,\n"
6608 "\t\tint len,\n"
6609 "\t\tconst char *path);\n"
6610 "\n"
6611 msgstr ""
6612
6613 # type: textblock
6614 #: ../src/guestfs-actions.pod:1454
6615 msgid ""
6616 "This function is like C<guestfs_fill> except that it creates a new file of "
6617 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
6618 "pattern is truncated if necessary to ensure the length of the file is "
6619 "exactly C<len> bytes."
6620 msgstr ""
6621
6622 # type: =head2
6623 #: ../src/guestfs-actions.pod:1466
6624 msgid "guestfs_find"
6625 msgstr ""
6626
6627 # type: verbatim
6628 #: ../src/guestfs-actions.pod:1468
6629 #, no-wrap
6630 msgid ""
6631 " char **guestfs_find (guestfs_h *g,\n"
6632 "\t\tconst char *directory);\n"
6633 "\n"
6634 msgstr ""
6635
6636 # type: textblock
6637 #: ../src/guestfs-actions.pod:1471 ../fish/guestfish-actions.pod:1149
6638 msgid ""
6639 "This command lists out all files and directories, recursively, starting at "
6640 "C<directory>.  It is essentially equivalent to running the shell command "
6641 "C<find directory -print> but some post-processing happens on the output, "
6642 "described below."
6643 msgstr ""
6644
6645 # type: textblock
6646 #: ../src/guestfs-actions.pod:1476 ../fish/guestfish-actions.pod:1154
6647 msgid ""
6648 "This returns a list of strings I<without any prefix>.  Thus if the directory "
6649 "structure was:"
6650 msgstr ""
6651
6652 # type: verbatim
6653 #: ../src/guestfs-actions.pod:1479 ../fish/guestfish-actions.pod:1157
6654 #, no-wrap
6655 msgid ""
6656 " /tmp/a\n"
6657 " /tmp/b\n"
6658 " /tmp/c/d\n"
6659 "\n"
6660 msgstr ""
6661
6662 # type: textblock
6663 #: ../src/guestfs-actions.pod:1483
6664 msgid ""
6665 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
6666 msgstr ""
6667
6668 # type: verbatim
6669 #: ../src/guestfs-actions.pod:1486 ../fish/guestfish-actions.pod:1164
6670 #, no-wrap
6671 msgid ""
6672 " a\n"
6673 " b\n"
6674 " c\n"
6675 " c/d\n"
6676 "\n"
6677 msgstr ""
6678
6679 # type: textblock
6680 #: ../src/guestfs-actions.pod:1491 ../fish/guestfish-actions.pod:1169
6681 msgid "If C<directory> is not a directory, then this command returns an error."
6682 msgstr ""
6683
6684 # type: textblock
6685 #: ../src/guestfs-actions.pod:1494 ../fish/guestfish-actions.pod:1172
6686 msgid "The returned list is sorted."
6687 msgstr ""
6688
6689 # type: textblock
6690 #: ../src/guestfs-actions.pod:1496
6691 msgid "See also C<guestfs_find0>."
6692 msgstr ""
6693
6694 # type: =head2
6695 #: ../src/guestfs-actions.pod:1505
6696 msgid "guestfs_find0"
6697 msgstr ""
6698
6699 # type: verbatim
6700 #: ../src/guestfs-actions.pod:1507
6701 #, no-wrap
6702 msgid ""
6703 " int guestfs_find0 (guestfs_h *g,\n"
6704 "\t\tconst char *directory,\n"
6705 "\t\tconst char *files);\n"
6706 "\n"
6707 msgstr ""
6708
6709 # type: textblock
6710 #: ../src/guestfs-actions.pod:1511 ../fish/guestfish-actions.pod:1183
6711 msgid ""
6712 "This command lists out all files and directories, recursively, starting at "
6713 "C<directory>, placing the resulting list in the external file called "
6714 "C<files>."
6715 msgstr ""
6716
6717 # type: textblock
6718 #: ../src/guestfs-actions.pod:1515
6719 msgid ""
6720 "This command works the same way as C<guestfs_find> with the following "
6721 "exceptions:"
6722 msgstr ""
6723
6724 # type: textblock
6725 #: ../src/guestfs-actions.pod:1522 ../fish/guestfish-actions.pod:1194
6726 msgid "The resulting list is written to an external file."
6727 msgstr ""
6728
6729 # type: textblock
6730 #: ../src/guestfs-actions.pod:1526 ../fish/guestfish-actions.pod:1198
6731 msgid ""
6732 "Items (filenames) in the result are separated by C<\\0> characters.  See "
6733 "L<find(1)> option I<-print0>."
6734 msgstr ""
6735
6736 # type: textblock
6737 #: ../src/guestfs-actions.pod:1531 ../fish/guestfish-actions.pod:1203
6738 msgid "This command is not limited in the number of names that it can return."
6739 msgstr ""
6740
6741 # type: textblock
6742 #: ../src/guestfs-actions.pod:1536 ../fish/guestfish-actions.pod:1208
6743 msgid "The result list is not sorted."
6744 msgstr ""
6745
6746 # type: =head2
6747 #: ../src/guestfs-actions.pod:1542
6748 msgid "guestfs_findfs_label"
6749 msgstr ""
6750
6751 # type: verbatim
6752 #: ../src/guestfs-actions.pod:1544
6753 #, no-wrap
6754 msgid ""
6755 " char *guestfs_findfs_label (guestfs_h *g,\n"
6756 "\t\tconst char *label);\n"
6757 "\n"
6758 msgstr ""
6759
6760 # type: textblock
6761 #: ../src/guestfs-actions.pod:1547 ../fish/guestfish-actions.pod:1218
6762 msgid ""
6763 "This command searches the filesystems and returns the one which has the "
6764 "given label.  An error is returned if no such filesystem can be found."
6765 msgstr ""
6766
6767 # type: textblock
6768 #: ../src/guestfs-actions.pod:1551
6769 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
6770 msgstr ""
6771
6772 # type: =head2
6773 #: ../src/guestfs-actions.pod:1556
6774 msgid "guestfs_findfs_uuid"
6775 msgstr ""
6776
6777 # type: verbatim
6778 #: ../src/guestfs-actions.pod:1558
6779 #, no-wrap
6780 msgid ""
6781 " char *guestfs_findfs_uuid (guestfs_h *g,\n"
6782 "\t\tconst char *uuid);\n"
6783 "\n"
6784 msgstr ""
6785
6786 # type: textblock
6787 #: ../src/guestfs-actions.pod:1561 ../fish/guestfish-actions.pod:1228
6788 msgid ""
6789 "This command searches the filesystems and returns the one which has the "
6790 "given UUID.  An error is returned if no such filesystem can be found."
6791 msgstr ""
6792
6793 # type: textblock
6794 #: ../src/guestfs-actions.pod:1565
6795 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
6796 msgstr ""
6797
6798 # type: =head2
6799 #: ../src/guestfs-actions.pod:1570
6800 msgid "guestfs_fsck"
6801 msgstr ""
6802
6803 # type: verbatim
6804 #: ../src/guestfs-actions.pod:1572
6805 #, no-wrap
6806 msgid ""
6807 " int guestfs_fsck (guestfs_h *g,\n"
6808 "\t\tconst char *fstype,\n"
6809 "\t\tconst char *device);\n"
6810 "\n"
6811 msgstr ""
6812
6813 # type: textblock
6814 #: ../src/guestfs-actions.pod:1576 ../fish/guestfish-actions.pod:1238
6815 msgid ""
6816 "This runs the filesystem checker (fsck) on C<device> which should have "
6817 "filesystem type C<fstype>."
6818 msgstr ""
6819
6820 # type: textblock
6821 #: ../src/guestfs-actions.pod:1579 ../fish/guestfish-actions.pod:1241
6822 msgid ""
6823 "The returned integer is the status.  See L<fsck(8)> for the list of status "
6824 "codes from C<fsck>."
6825 msgstr ""
6826
6827 # type: textblock
6828 #: ../src/guestfs-actions.pod:1588 ../fish/guestfish-actions.pod:1250
6829 msgid "Multiple status codes can be summed together."
6830 msgstr ""
6831
6832 # type: textblock
6833 #: ../src/guestfs-actions.pod:1592 ../fish/guestfish-actions.pod:1254
6834 msgid ""
6835 "A non-zero return code can mean \"success\", for example if errors have been "
6836 "corrected on the filesystem."
6837 msgstr ""
6838
6839 # type: textblock
6840 #: ../src/guestfs-actions.pod:1597 ../fish/guestfish-actions.pod:1259
6841 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
6842 msgstr ""
6843
6844 # type: textblock
6845 #: ../src/guestfs-actions.pod:1602 ../fish/guestfish-actions.pod:1264
6846 msgid ""
6847 "This command is entirely equivalent to running C<fsck -a -t fstype device>."
6848 msgstr ""
6849
6850 # type: =head2
6851 #: ../src/guestfs-actions.pod:1606
6852 msgid "guestfs_get_append"
6853 msgstr ""
6854
6855 # type: verbatim
6856 #: ../src/guestfs-actions.pod:1608
6857 #, no-wrap
6858 msgid ""
6859 " const char *guestfs_get_append (guestfs_h *g);\n"
6860 "\n"
6861 msgstr ""
6862
6863 # type: textblock
6864 #: ../src/guestfs-actions.pod:1610 ../fish/guestfish-actions.pod:1270
6865 msgid ""
6866 "Return the additional kernel options which are added to the guest kernel "
6867 "command line."
6868 msgstr ""
6869
6870 # type: textblock
6871 #: ../src/guestfs-actions.pod:1613 ../fish/guestfish-actions.pod:1273
6872 msgid "If C<NULL> then no options are added."
6873 msgstr ""
6874
6875 # type: textblock
6876 #: ../src/guestfs-actions.pod:1615
6877 msgid ""
6878 "This function returns a string which may be NULL.  There is no way to return "
6879 "an error from this function.  The string is owned by the guest handle and "
6880 "must I<not> be freed."
6881 msgstr ""
6882
6883 # type: =head2
6884 #: ../src/guestfs-actions.pod:1619
6885 msgid "guestfs_get_autosync"
6886 msgstr ""
6887
6888 # type: verbatim
6889 #: ../src/guestfs-actions.pod:1621
6890 #, no-wrap
6891 msgid ""
6892 " int guestfs_get_autosync (guestfs_h *g);\n"
6893 "\n"
6894 msgstr ""
6895
6896 # type: textblock
6897 #: ../src/guestfs-actions.pod:1623 ../fish/guestfish-actions.pod:1279
6898 msgid "Get the autosync flag."
6899 msgstr ""
6900
6901 # type: =head2
6902 #: ../src/guestfs-actions.pod:1627
6903 msgid "guestfs_get_direct"
6904 msgstr ""
6905
6906 # type: verbatim
6907 #: ../src/guestfs-actions.pod:1629
6908 #, no-wrap
6909 msgid ""
6910 " int guestfs_get_direct (guestfs_h *g);\n"
6911 "\n"
6912 msgstr ""
6913
6914 # type: textblock
6915 #: ../src/guestfs-actions.pod:1631 ../fish/guestfish-actions.pod:1285
6916 msgid "Return the direct appliance mode flag."
6917 msgstr ""
6918
6919 # type: =head2
6920 #: ../src/guestfs-actions.pod:1635
6921 msgid "guestfs_get_e2label"
6922 msgstr ""
6923
6924 # type: verbatim
6925 #: ../src/guestfs-actions.pod:1637
6926 #, no-wrap
6927 msgid ""
6928 " char *guestfs_get_e2label (guestfs_h *g,\n"
6929 "\t\tconst char *device);\n"
6930 "\n"
6931 msgstr ""
6932
6933 # type: textblock
6934 #: ../src/guestfs-actions.pod:1640 ../fish/guestfish-actions.pod:1291
6935 msgid ""
6936 "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
6937 msgstr ""
6938
6939 # type: textblock
6940 #: ../src/guestfs-actions.pod:1646 ../fish/guestfish-actions.pod:1294
6941 msgid ""
6942 "This function is deprecated.  In new code, use the C<vfs_label> call instead."
6943 msgstr ""
6944
6945 # type: =head2
6946 #: ../src/guestfs-actions.pod:1653
6947 msgid "guestfs_get_e2uuid"
6948 msgstr ""
6949
6950 # type: verbatim
6951 #: ../src/guestfs-actions.pod:1655
6952 #, no-wrap
6953 msgid ""
6954 " char *guestfs_get_e2uuid (guestfs_h *g,\n"
6955 "\t\tconst char *device);\n"
6956 "\n"
6957 msgstr ""
6958
6959 # type: textblock
6960 #: ../src/guestfs-actions.pod:1658 ../fish/guestfish-actions.pod:1305
6961 msgid ""
6962 "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
6963 msgstr ""
6964
6965 # type: textblock
6966 #: ../src/guestfs-actions.pod:1664 ../fish/guestfish-actions.pod:1308
6967 msgid ""
6968 "This function is deprecated.  In new code, use the C<vfs_uuid> call instead."
6969 msgstr ""
6970
6971 # type: =head2
6972 #: ../src/guestfs-actions.pod:1671
6973 msgid "guestfs_get_memsize"
6974 msgstr ""
6975
6976 # type: verbatim
6977 #: ../src/guestfs-actions.pod:1673
6978 #, no-wrap
6979 msgid ""
6980 " int guestfs_get_memsize (guestfs_h *g);\n"
6981 "\n"
6982 msgstr ""
6983
6984 # type: textblock
6985 #: ../src/guestfs-actions.pod:1675 ../fish/guestfish-actions.pod:1319
6986 msgid ""
6987 "This gets the memory size in megabytes allocated to the qemu subprocess."
6988 msgstr ""
6989
6990 # type: textblock
6991 #: ../src/guestfs-actions.pod:1678
6992 msgid ""
6993 "If C<guestfs_set_memsize> was not called on this handle, and if "
6994 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
6995 "value for memsize."
6996 msgstr ""
6997
6998 # type: textblock
6999 #: ../src/guestfs-actions.pod:1682 ../src/guestfs-actions.pod:1745
7000 #: ../src/guestfs-actions.pod:4437 ../src/guestfs-actions.pod:4529
7001 #: ../fish/guestfish-actions.pod:1326 ../fish/guestfish-actions.pod:1377
7002 #: ../fish/guestfish-actions.pod:3420 ../fish/guestfish-actions.pod:3507
7003 msgid ""
7004 "For more information on the architecture of libguestfs, see L<guestfs(3)>."
7005 msgstr ""
7006
7007 # type: =head2
7008 #: ../src/guestfs-actions.pod:1687
7009 msgid "guestfs_get_network"
7010 msgstr ""
7011
7012 # type: verbatim
7013 #: ../src/guestfs-actions.pod:1689
7014 #, no-wrap
7015 msgid ""
7016 " int guestfs_get_network (guestfs_h *g);\n"
7017 "\n"
7018 msgstr ""
7019
7020 # type: textblock
7021 #: ../src/guestfs-actions.pod:1691 ../fish/guestfish-actions.pod:1333
7022 msgid "This returns the enable network flag."
7023 msgstr ""
7024
7025 # type: =head2
7026 #: ../src/guestfs-actions.pod:1695
7027 msgid "guestfs_get_path"
7028 msgstr ""
7029
7030 # type: verbatim
7031 #: ../src/guestfs-actions.pod:1697
7032 #, no-wrap
7033 msgid ""
7034 " const char *guestfs_get_path (guestfs_h *g);\n"
7035 "\n"
7036 msgstr ""
7037
7038 # type: textblock
7039 #: ../src/guestfs-actions.pod:1699 ../fish/guestfish-actions.pod:1339
7040 msgid "Return the current search path."
7041 msgstr ""
7042
7043 # type: textblock
7044 #: ../src/guestfs-actions.pod:1701 ../fish/guestfish-actions.pod:1341
7045 msgid ""
7046 "This is always non-NULL.  If it wasn't set already, then this will return "
7047 "the default path."
7048 msgstr ""
7049
7050 # type: textblock
7051 #: ../src/guestfs-actions.pod:1704 ../src/guestfs-actions.pod:1727
7052 msgid ""
7053 "This function returns a string, or NULL on error.  The string is owned by "
7054 "the guest handle and must I<not> be freed."
7055 msgstr ""
7056
7057 # type: =head2
7058 #: ../src/guestfs-actions.pod:1707
7059 msgid "guestfs_get_pid"
7060 msgstr ""
7061
7062 # type: verbatim
7063 #: ../src/guestfs-actions.pod:1709
7064 #, no-wrap
7065 msgid ""
7066 " int guestfs_get_pid (guestfs_h *g);\n"
7067 "\n"
7068 msgstr ""
7069
7070 # type: textblock
7071 #: ../src/guestfs-actions.pod:1711 ../fish/guestfish-actions.pod:1350
7072 msgid ""
7073 "Return the process ID of the qemu subprocess.  If there is no qemu "
7074 "subprocess, then this will return an error."
7075 msgstr ""
7076
7077 # type: textblock
7078 #: ../src/guestfs-actions.pod:1714 ../fish/guestfish-actions.pod:1353
7079 msgid "This is an internal call used for debugging and testing."
7080 msgstr ""
7081
7082 # type: =head2
7083 #: ../src/guestfs-actions.pod:1718
7084 msgid "guestfs_get_qemu"
7085 msgstr ""
7086
7087 # type: verbatim
7088 #: ../src/guestfs-actions.pod:1720
7089 #, no-wrap
7090 msgid ""
7091 " const char *guestfs_get_qemu (guestfs_h *g);\n"
7092 "\n"
7093 msgstr ""
7094
7095 # type: textblock
7096 #: ../src/guestfs-actions.pod:1722 ../fish/guestfish-actions.pod:1359
7097 msgid "Return the current qemu binary."
7098 msgstr ""
7099
7100 # type: textblock
7101 #: ../src/guestfs-actions.pod:1724 ../fish/guestfish-actions.pod:1361
7102 msgid ""
7103 "This is always non-NULL.  If it wasn't set already, then this will return "
7104 "the default qemu binary name."
7105 msgstr ""
7106
7107 # type: =head2
7108 #: ../src/guestfs-actions.pod:1730
7109 msgid "guestfs_get_recovery_proc"
7110 msgstr ""
7111
7112 # type: verbatim
7113 #: ../src/guestfs-actions.pod:1732
7114 #, no-wrap
7115 msgid ""
7116 " int guestfs_get_recovery_proc (guestfs_h *g);\n"
7117 "\n"
7118 msgstr ""
7119
7120 # type: textblock
7121 #: ../src/guestfs-actions.pod:1734 ../fish/guestfish-actions.pod:1368
7122 msgid "Return the recovery process enabled flag."
7123 msgstr ""
7124
7125 # type: =head2
7126 #: ../src/guestfs-actions.pod:1738
7127 msgid "guestfs_get_selinux"
7128 msgstr ""
7129
7130 # type: verbatim
7131 #: ../src/guestfs-actions.pod:1740
7132 #, no-wrap
7133 msgid ""
7134 " int guestfs_get_selinux (guestfs_h *g);\n"
7135 "\n"
7136 msgstr ""
7137
7138 # type: textblock
7139 #: ../src/guestfs-actions.pod:1742
7140 msgid ""
7141 "This returns the current setting of the selinux flag which is passed to the "
7142 "appliance at boot time.  See C<guestfs_set_selinux>."
7143 msgstr ""
7144
7145 # type: =head2
7146 #: ../src/guestfs-actions.pod:1750
7147 msgid "guestfs_get_state"
7148 msgstr ""
7149
7150 # type: verbatim
7151 #: ../src/guestfs-actions.pod:1752
7152 #, no-wrap
7153 msgid ""
7154 " int guestfs_get_state (guestfs_h *g);\n"
7155 "\n"
7156 msgstr ""
7157
7158 # type: textblock
7159 #: ../src/guestfs-actions.pod:1754 ../fish/guestfish-actions.pod:1384
7160 msgid ""
7161 "This returns the current state as an opaque integer.  This is only useful "
7162 "for printing debug and internal error messages."
7163 msgstr ""
7164
7165 # type: textblock
7166 #: ../src/guestfs-actions.pod:1757 ../src/guestfs-actions.pod:2378
7167 #: ../src/guestfs-actions.pod:2401 ../src/guestfs-actions.pod:2450
7168 #: ../src/guestfs-actions.pod:2471 ../fish/guestfish-actions.pod:1387
7169 #: ../fish/guestfish-actions.pod:1881 ../fish/guestfish-actions.pod:1899
7170 #: ../fish/guestfish-actions.pod:1937 ../fish/guestfish-actions.pod:1953
7171 msgid "For more information on states, see L<guestfs(3)>."
7172 msgstr ""
7173
7174 # type: =head2
7175 #: ../src/guestfs-actions.pod:1761
7176 msgid "guestfs_get_trace"
7177 msgstr ""
7178
7179 # type: verbatim
7180 #: ../src/guestfs-actions.pod:1763
7181 #, no-wrap
7182 msgid ""
7183 " int guestfs_get_trace (guestfs_h *g);\n"
7184 "\n"
7185 msgstr ""
7186
7187 # type: textblock
7188 #: ../src/guestfs-actions.pod:1765 ../fish/guestfish-actions.pod:1393
7189 msgid "Return the command trace flag."
7190 msgstr ""
7191
7192 # type: =head2
7193 #: ../src/guestfs-actions.pod:1769
7194 msgid "guestfs_get_umask"
7195 msgstr ""
7196
7197 # type: verbatim
7198 #: ../src/guestfs-actions.pod:1771
7199 #, no-wrap
7200 msgid ""
7201 " int guestfs_get_umask (guestfs_h *g);\n"
7202 "\n"
7203 msgstr ""
7204
7205 # type: textblock
7206 #: ../src/guestfs-actions.pod:1773
7207 msgid ""
7208 "Return the current umask.  By default the umask is C<022> unless it has been "
7209 "set by calling C<guestfs_umask>."
7210 msgstr ""
7211
7212 # type: =head2
7213 #: ../src/guestfs-actions.pod:1778
7214 msgid "guestfs_get_verbose"
7215 msgstr ""
7216
7217 # type: verbatim
7218 #: ../src/guestfs-actions.pod:1780
7219 #, no-wrap
7220 msgid ""
7221 " int guestfs_get_verbose (guestfs_h *g);\n"
7222 "\n"
7223 msgstr ""
7224
7225 # type: textblock
7226 #: ../src/guestfs-actions.pod:1782 ../fish/guestfish-actions.pod:1406
7227 msgid "This returns the verbose messages flag."
7228 msgstr ""
7229
7230 # type: =head2
7231 #: ../src/guestfs-actions.pod:1786
7232 msgid "guestfs_getcon"
7233 msgstr ""
7234
7235 # type: verbatim
7236 #: ../src/guestfs-actions.pod:1788
7237 #, no-wrap
7238 msgid ""
7239 " char *guestfs_getcon (guestfs_h *g);\n"
7240 "\n"
7241 msgstr ""
7242
7243 # type: textblock
7244 #: ../src/guestfs-actions.pod:1790 ../fish/guestfish-actions.pod:1412
7245 msgid "This gets the SELinux security context of the daemon."
7246 msgstr ""
7247
7248 # type: textblock
7249 #: ../src/guestfs-actions.pod:1792
7250 msgid ""
7251 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
7252 msgstr ""
7253
7254 # type: =head2
7255 #: ../src/guestfs-actions.pod:1798
7256 msgid "guestfs_getxattrs"
7257 msgstr ""
7258
7259 # type: verbatim
7260 #: ../src/guestfs-actions.pod:1800
7261 #, no-wrap
7262 msgid ""
7263 " struct guestfs_xattr_list *guestfs_getxattrs (guestfs_h *g,\n"
7264 "\t\tconst char *path);\n"
7265 "\n"
7266 msgstr ""
7267
7268 # type: textblock
7269 #: ../src/guestfs-actions.pod:1803 ../fish/guestfish-actions.pod:1421
7270 msgid ""
7271 "This call lists the extended attributes of the file or directory C<path>."
7272 msgstr ""
7273
7274 # type: textblock
7275 #: ../src/guestfs-actions.pod:1806 ../fish/guestfish-actions.pod:1424
7276 msgid ""
7277 "At the system call level, this is a combination of the L<listxattr(2)> and "
7278 "L<getxattr(2)> calls."
7279 msgstr ""
7280
7281 # type: textblock
7282 #: ../src/guestfs-actions.pod:1809
7283 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
7284 msgstr ""
7285
7286 # type: textblock
7287 #: ../src/guestfs-actions.pod:1811 ../src/guestfs-actions.pod:2545
7288 #: ../src/guestfs-actions.pod:3083
7289 msgid ""
7290 "This function returns a C<struct guestfs_xattr_list *> (see E<lt>guestfs-"
7291 "structs.hE<gt>), or NULL if there was an error.  I<The caller must call "
7292 "C<guestfs_free_xattr_list> after use>."
7293 msgstr ""
7294
7295 # type: =head2
7296 #: ../src/guestfs-actions.pod:1816
7297 msgid "guestfs_glob_expand"
7298 msgstr ""
7299
7300 # type: verbatim
7301 #: ../src/guestfs-actions.pod:1818
7302 #, no-wrap
7303 msgid ""
7304 " char **guestfs_glob_expand (guestfs_h *g,\n"
7305 "\t\tconst char *pattern);\n"
7306 "\n"
7307 msgstr ""
7308
7309 # type: textblock
7310 #: ../src/guestfs-actions.pod:1821 ../fish/guestfish-actions.pod:1433
7311 msgid ""
7312 "This command searches for all the pathnames matching C<pattern> according to "
7313 "the wildcard expansion rules used by the shell."
7314 msgstr ""
7315
7316 # type: textblock
7317 #: ../src/guestfs-actions.pod:1825 ../fish/guestfish-actions.pod:1437
7318 msgid ""
7319 "If no paths match, then this returns an empty list (note: not an error)."
7320 msgstr ""
7321
7322 # type: textblock
7323 #: ../src/guestfs-actions.pod:1828 ../fish/guestfish-actions.pod:1440
7324 msgid ""
7325 "It is just a wrapper around the C L<glob(3)> function with flags C<GLOB_MARK|"
7326 "GLOB_BRACE>.  See that manual page for more details."
7327 msgstr ""
7328
7329 # type: =head2
7330 #: ../src/guestfs-actions.pod:1836
7331 msgid "guestfs_grep"
7332 msgstr ""
7333
7334 # type: verbatim
7335 #: ../src/guestfs-actions.pod:1838
7336 #, no-wrap
7337 msgid ""
7338 " char **guestfs_grep (guestfs_h *g,\n"
7339 "\t\tconst char *regex,\n"
7340 "\t\tconst char *path);\n"
7341 "\n"
7342 msgstr ""
7343
7344 # type: textblock
7345 #: ../src/guestfs-actions.pod:1842 ../fish/guestfish-actions.pod:1448
7346 msgid "This calls the external C<grep> program and returns the matching lines."
7347 msgstr ""
7348
7349 # type: =head2
7350 #: ../src/guestfs-actions.pod:1852
7351 msgid "guestfs_grepi"
7352 msgstr ""
7353
7354 # type: verbatim
7355 #: ../src/guestfs-actions.pod:1854
7356 #, no-wrap
7357 msgid ""
7358 " char **guestfs_grepi (guestfs_h *g,\n"
7359 "\t\tconst char *regex,\n"
7360 "\t\tconst char *path);\n"
7361 "\n"
7362 msgstr ""
7363
7364 # type: textblock
7365 #: ../src/guestfs-actions.pod:1858 ../fish/guestfish-actions.pod:1458
7366 msgid ""
7367 "This calls the external C<grep -i> program and returns the matching lines."
7368 msgstr ""
7369
7370 # type: =head2
7371 #: ../src/guestfs-actions.pod:1868
7372 msgid "guestfs_grub_install"
7373 msgstr ""
7374
7375 # type: verbatim
7376 #: ../src/guestfs-actions.pod:1870
7377 #, no-wrap
7378 msgid ""
7379 " int guestfs_grub_install (guestfs_h *g,\n"
7380 "\t\tconst char *root,\n"
7381 "\t\tconst char *device);\n"
7382 "\n"
7383 msgstr ""
7384
7385 # type: textblock
7386 #: ../src/guestfs-actions.pod:1874 ../fish/guestfish-actions.pod:1468
7387 msgid ""
7388 "This command installs GRUB (the Grand Unified Bootloader) on C<device>, with "
7389 "the root directory being C<root>."
7390 msgstr ""
7391
7392 # type: textblock
7393 #: ../src/guestfs-actions.pod:1877 ../fish/guestfish-actions.pod:1471
7394 msgid ""
7395 "Note: If grub-install reports the error \"No suitable drive was found in the "
7396 "generated device map.\" it may be that you need to create a C</boot/grub/"
7397 "device.map> file first that contains the mapping between grub device names "
7398 "and Linux device names.  It is usually sufficient to create a file "
7399 "containing:"
7400 msgstr ""
7401
7402 # type: verbatim
7403 #: ../src/guestfs-actions.pod:1884 ../fish/guestfish-actions.pod:1478
7404 #, no-wrap
7405 msgid ""
7406 " (hd0) /dev/vda\n"
7407 "\n"
7408 msgstr ""
7409
7410 # type: textblock
7411 #: ../src/guestfs-actions.pod:1886 ../fish/guestfish-actions.pod:1480
7412 msgid "replacing C</dev/vda> with the name of the installation device."
7413 msgstr ""
7414
7415 # type: =head2
7416 #: ../src/guestfs-actions.pod:1890
7417 msgid "guestfs_head"
7418 msgstr ""
7419
7420 # type: verbatim
7421 #: ../src/guestfs-actions.pod:1892
7422 #, no-wrap
7423 msgid ""
7424 " char **guestfs_head (guestfs_h *g,\n"
7425 "\t\tconst char *path);\n"
7426 "\n"
7427 msgstr ""
7428
7429 # type: textblock
7430 #: ../src/guestfs-actions.pod:1895 ../fish/guestfish-actions.pod:1486
7431 msgid ""
7432 "This command returns up to the first 10 lines of a file as a list of strings."
7433 msgstr ""
7434
7435 # type: =head2
7436 #: ../src/guestfs-actions.pod:1905
7437 msgid "guestfs_head_n"
7438 msgstr ""
7439
7440 # type: verbatim
7441 #: ../src/guestfs-actions.pod:1907
7442 #, no-wrap
7443 msgid ""
7444 " char **guestfs_head_n (guestfs_h *g,\n"
7445 "\t\tint nrlines,\n"
7446 "\t\tconst char *path);\n"
7447 "\n"
7448 msgstr ""
7449
7450 # type: textblock
7451 #: ../src/guestfs-actions.pod:1911 ../fish/guestfish-actions.pod:1496
7452 msgid ""
7453 "If the parameter C<nrlines> is a positive number, this returns the first "
7454 "C<nrlines> lines of the file C<path>."
7455 msgstr ""
7456
7457 # type: textblock
7458 #: ../src/guestfs-actions.pod:1914 ../fish/guestfish-actions.pod:1499
7459 msgid ""
7460 "If the parameter C<nrlines> is a negative number, this returns lines from "
7461 "the file C<path>, excluding the last C<nrlines> lines."
7462 msgstr ""
7463
7464 # type: textblock
7465 #: ../src/guestfs-actions.pod:1917 ../src/guestfs-actions.pod:4985
7466 #: ../fish/guestfish-actions.pod:1502 ../fish/guestfish-actions.pod:3853
7467 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
7468 msgstr ""
7469
7470 # type: =head2
7471 #: ../src/guestfs-actions.pod:1926
7472 msgid "guestfs_hexdump"
7473 msgstr ""
7474
7475 # type: verbatim
7476 #: ../src/guestfs-actions.pod:1928
7477 #, no-wrap
7478 msgid ""
7479 " char *guestfs_hexdump (guestfs_h *g,\n"
7480 "\t\tconst char *path);\n"
7481 "\n"
7482 msgstr ""
7483
7484 # type: textblock
7485 #: ../src/guestfs-actions.pod:1931 ../fish/guestfish-actions.pod:1511
7486 msgid ""
7487 "This runs C<hexdump -C> on the given C<path>.  The result is the human-"
7488 "readable, canonical hex dump of the file."
7489 msgstr ""
7490
7491 # type: =head2
7492 #: ../src/guestfs-actions.pod:1940
7493 msgid "guestfs_initrd_cat"
7494 msgstr ""
7495
7496 # type: verbatim
7497 #: ../src/guestfs-actions.pod:1942
7498 #, no-wrap
7499 msgid ""
7500 " char *guestfs_initrd_cat (guestfs_h *g,\n"
7501 "\t\tconst char *initrdpath,\n"
7502 "\t\tconst char *filename,\n"
7503 "\t\tsize_t *size_r);\n"
7504 "\n"
7505 msgstr ""
7506
7507 # type: textblock
7508 #: ../src/guestfs-actions.pod:1947 ../fish/guestfish-actions.pod:1521
7509 msgid ""
7510 "This command unpacks the file C<filename> from the initrd file called "
7511 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
7512 "character."
7513 msgstr ""
7514
7515 # type: textblock
7516 #: ../src/guestfs-actions.pod:1951 ../fish/guestfish-actions.pod:1525
7517 msgid ""
7518 "For example, in guestfish you could use the following command to examine the "
7519 "boot script (usually called C</init>)  contained in a Linux initrd or "
7520 "initramfs image:"
7521 msgstr ""
7522
7523 # type: verbatim
7524 #: ../src/guestfs-actions.pod:1955 ../fish/guestfish-actions.pod:1529
7525 #, no-wrap
7526 msgid ""
7527 " initrd-cat /boot/initrd-<version>.img init\n"
7528 "\n"
7529 msgstr ""
7530
7531 # type: textblock
7532 #: ../src/guestfs-actions.pod:1957
7533 msgid "See also C<guestfs_initrd_list>."
7534 msgstr ""
7535
7536 # type: textblock
7537 #: ../src/guestfs-actions.pod:1959 ../src/guestfs-actions.pod:3897
7538 #: ../src/guestfs-actions.pod:3920 ../src/guestfs-actions.pod:4072
7539 msgid ""
7540 "This function returns a buffer, or NULL on error.  The size of the returned "
7541 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
7542 "after use>."
7543 msgstr ""
7544
7545 # type: =head2
7546 #: ../src/guestfs-actions.pod:1966
7547 msgid "guestfs_initrd_list"
7548 msgstr ""
7549
7550 # type: verbatim
7551 #: ../src/guestfs-actions.pod:1968
7552 #, no-wrap
7553 msgid ""
7554 " char **guestfs_initrd_list (guestfs_h *g,\n"
7555 "\t\tconst char *path);\n"
7556 "\n"
7557 msgstr ""
7558
7559 # type: textblock
7560 #: ../src/guestfs-actions.pod:1971 ../fish/guestfish-actions.pod:1540
7561 msgid "This command lists out files contained in an initrd."
7562 msgstr ""
7563
7564 # type: textblock
7565 #: ../src/guestfs-actions.pod:1973 ../fish/guestfish-actions.pod:1542
7566 msgid ""
7567 "The files are listed without any initial C</> character.  The files are "
7568 "listed in the order they appear (not necessarily alphabetical).  Directory "
7569 "names are listed as separate items."
7570 msgstr ""
7571
7572 # type: textblock
7573 #: ../src/guestfs-actions.pod:1977 ../fish/guestfish-actions.pod:1546
7574 msgid ""
7575 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
7576 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
7577 "files)."
7578 msgstr ""
7579
7580 # type: =head2
7581 #: ../src/guestfs-actions.pod:1985
7582 msgid "guestfs_inotify_add_watch"
7583 msgstr ""
7584
7585 # type: verbatim
7586 #: ../src/guestfs-actions.pod:1987
7587 #, no-wrap
7588 msgid ""
7589 " int64_t guestfs_inotify_add_watch (guestfs_h *g,\n"
7590 "\t\tconst char *path,\n"
7591 "\t\tint mask);\n"
7592 "\n"
7593 msgstr ""
7594
7595 # type: textblock
7596 #: ../src/guestfs-actions.pod:1991 ../fish/guestfish-actions.pod:1554
7597 msgid "Watch C<path> for the events listed in C<mask>."
7598 msgstr ""
7599
7600 # type: textblock
7601 #: ../src/guestfs-actions.pod:1993 ../fish/guestfish-actions.pod:1556
7602 msgid ""
7603 "Note that if C<path> is a directory then events within that directory are "
7604 "watched, but this does I<not> happen recursively (in subdirectories)."
7605 msgstr ""
7606
7607 # type: textblock
7608 #: ../src/guestfs-actions.pod:1997 ../fish/guestfish-actions.pod:1560
7609 msgid ""
7610 "Note for non-C or non-Linux callers: the inotify events are defined by the "
7611 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
7612 msgstr ""
7613
7614 # type: =head2
7615 #: ../src/guestfs-actions.pod:2003
7616 msgid "guestfs_inotify_close"
7617 msgstr ""
7618
7619 # type: verbatim
7620 #: ../src/guestfs-actions.pod:2005
7621 #, no-wrap
7622 msgid ""
7623 " int guestfs_inotify_close (guestfs_h *g);\n"
7624 "\n"
7625 msgstr ""
7626
7627 # type: textblock
7628 #: ../src/guestfs-actions.pod:2007 ../fish/guestfish-actions.pod:1568
7629 msgid ""
7630 "This closes the inotify handle which was previously opened by inotify_init.  "
7631 "It removes all watches, throws away any pending events, and deallocates all "
7632 "resources."
7633 msgstr ""
7634
7635 # type: =head2
7636 #: ../src/guestfs-actions.pod:2013
7637 msgid "guestfs_inotify_files"
7638 msgstr ""
7639
7640 # type: verbatim
7641 #: ../src/guestfs-actions.pod:2015
7642 #, no-wrap
7643 msgid ""
7644 " char **guestfs_inotify_files (guestfs_h *g);\n"
7645 "\n"
7646 msgstr ""
7647
7648 # type: textblock
7649 #: ../src/guestfs-actions.pod:2017
7650 msgid ""
7651 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
7652 "returns a list of pathnames of objects that were touched.  The returned "
7653 "pathnames are sorted and deduplicated."
7654 msgstr ""
7655
7656 # type: =head2
7657 #: ../src/guestfs-actions.pod:2025
7658 msgid "guestfs_inotify_init"
7659 msgstr ""
7660
7661 # type: verbatim
7662 #: ../src/guestfs-actions.pod:2027
7663 #, no-wrap
7664 msgid ""
7665 " int guestfs_inotify_init (guestfs_h *g,\n"
7666 "\t\tint maxevents);\n"
7667 "\n"
7668 msgstr ""
7669
7670 # type: textblock
7671 #: ../src/guestfs-actions.pod:2030 ../fish/guestfish-actions.pod:1584
7672 msgid ""
7673 "This command creates a new inotify handle.  The inotify subsystem can be "
7674 "used to notify events which happen to objects in the guest filesystem."
7675 msgstr ""
7676
7677 # type: textblock
7678 #: ../src/guestfs-actions.pod:2034
7679 msgid ""
7680 "C<maxevents> is the maximum number of events which will be queued up between "
7681 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
7682 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
7683 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
7684 "throws away events, but records the fact that it threw them away by setting "
7685 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
7686 "C<guestfs_inotify_read>)."
7687 msgstr ""
7688
7689 # type: textblock
7690 #: ../src/guestfs-actions.pod:2044
7691 msgid ""
7692 "Before any events are generated, you have to add some watches to the "
7693 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
7694 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
7695 msgstr ""
7696
7697 # type: textblock
7698 #: ../src/guestfs-actions.pod:2050
7699 msgid ""
7700 "Queued up events should be read periodically by calling "
7701 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
7702 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
7703 "often enough then you risk the internal queue overflowing."
7704 msgstr ""
7705
7706 # type: textblock
7707 #: ../src/guestfs-actions.pod:2057
7708 msgid ""
7709 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
7710 "This also removes any watches automatically."
7711 msgstr ""
7712
7713 # type: textblock
7714 #: ../src/guestfs-actions.pod:2061 ../fish/guestfish-actions.pod:1615
7715 msgid ""
7716 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
7717 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
7718 "that there is one global inotify handle per libguestfs instance."
7719 msgstr ""
7720
7721 # type: =head2
7722 #: ../src/guestfs-actions.pod:2068
7723 msgid "guestfs_inotify_read"
7724 msgstr ""
7725
7726 # type: verbatim
7727 #: ../src/guestfs-actions.pod:2070
7728 #, no-wrap
7729 msgid ""
7730 " struct guestfs_inotify_event_list *guestfs_inotify_read (guestfs_h *g);\n"
7731 "\n"
7732 msgstr ""
7733
7734 # type: textblock
7735 #: ../src/guestfs-actions.pod:2072 ../fish/guestfish-actions.pod:1624
7736 msgid ""
7737 "Return the complete queue of events that have happened since the previous "
7738 "read call."
7739 msgstr ""
7740
7741 # type: textblock
7742 #: ../src/guestfs-actions.pod:2075 ../fish/guestfish-actions.pod:1627
7743 msgid "If no events have happened, this returns an empty list."
7744 msgstr ""
7745
7746 # type: textblock
7747 #: ../src/guestfs-actions.pod:2077 ../fish/guestfish-actions.pod:1629
7748 msgid ""
7749 "I<Note>: In order to make sure that all events have been read, you must call "
7750 "this function repeatedly until it returns an empty list.  The reason is that "
7751 "the call will read events up to the maximum appliance-to-host message size "
7752 "and leave remaining events in the queue."
7753 msgstr ""
7754
7755 # type: textblock
7756 #: ../src/guestfs-actions.pod:2083
7757 msgid ""
7758 "This function returns a C<struct guestfs_inotify_event_list *> (see "
7759 "E<lt>guestfs-structs.hE<gt>), or NULL if there was an error.  I<The caller "
7760 "must call C<guestfs_free_inotify_event_list> after use>."
7761 msgstr ""
7762
7763 # type: =head2
7764 #: ../src/guestfs-actions.pod:2088
7765 msgid "guestfs_inotify_rm_watch"
7766 msgstr ""
7767
7768 # type: verbatim
7769 #: ../src/guestfs-actions.pod:2090
7770 #, no-wrap
7771 msgid ""
7772 " int guestfs_inotify_rm_watch (guestfs_h *g,\n"
7773 "\t\tint wd);\n"
7774 "\n"
7775 msgstr ""
7776
7777 # type: textblock
7778 #: ../src/guestfs-actions.pod:2093
7779 msgid ""
7780 "Remove a previously defined inotify watch.  See C<guestfs_inotify_add_watch>."
7781 msgstr ""
7782
7783 # type: =head2
7784 #: ../src/guestfs-actions.pod:2098
7785 msgid "guestfs_inspect_get_arch"
7786 msgstr ""
7787
7788 # type: verbatim
7789 #: ../src/guestfs-actions.pod:2100
7790 #, no-wrap
7791 msgid ""
7792 " char *guestfs_inspect_get_arch (guestfs_h *g,\n"
7793 "\t\tconst char *root);\n"
7794 "\n"
7795 msgstr ""
7796
7797 # type: textblock
7798 #: ../src/guestfs-actions.pod:2103 ../src/guestfs-actions.pod:2123
7799 #: ../src/guestfs-actions.pod:2173 ../src/guestfs-actions.pod:2196
7800 #: ../src/guestfs-actions.pod:2220 ../src/guestfs-actions.pod:2238
7801 #: ../src/guestfs-actions.pod:2268 ../src/guestfs-actions.pod:2289
7802 msgid ""
7803 "This function should only be called with a root device string as returned by "
7804 "C<guestfs_inspect_os>."
7805 msgstr ""
7806
7807 # type: textblock
7808 #: ../src/guestfs-actions.pod:2106
7809 msgid ""
7810 "This returns the architecture of the inspected operating system.  The "
7811 "possible return values are listed under C<guestfs_file_architecture>."
7812 msgstr ""
7813
7814 # type: textblock
7815 #: ../src/guestfs-actions.pod:2110 ../fish/guestfish-actions.pod:1653
7816 msgid ""
7817 "If the architecture could not be determined, then the string C<unknown> is "
7818 "returned."
7819 msgstr ""
7820
7821 # type: textblock
7822 #: ../src/guestfs-actions.pod:2113 ../src/guestfs-actions.pod:2163
7823 #: ../src/guestfs-actions.pod:2211 ../src/guestfs-actions.pod:2279
7824 #: ../src/guestfs-actions.pod:2314 ../src/guestfs-actions.pod:2351
7825 #: ../fish/guestfish-actions.pod:1656 ../fish/guestfish-actions.pod:1702
7826 #: ../fish/guestfish-actions.pod:1741 ../fish/guestfish-actions.pod:1796
7827 #: ../fish/guestfish-actions.pod:1827 ../fish/guestfish-actions.pod:1861
7828 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
7829 msgstr ""
7830
7831 # type: =head2
7832 #: ../src/guestfs-actions.pod:2118
7833 msgid "guestfs_inspect_get_distro"
7834 msgstr ""
7835
7836 # type: verbatim
7837 #: ../src/guestfs-actions.pod:2120
7838 #, no-wrap
7839 msgid ""
7840 " char *guestfs_inspect_get_distro (guestfs_h *g,\n"
7841 "\t\tconst char *root);\n"
7842 "\n"
7843 msgstr ""
7844
7845 # type: textblock
7846 #: ../src/guestfs-actions.pod:2126 ../fish/guestfish-actions.pod:1665
7847 msgid ""
7848 "This returns the distro (distribution) of the inspected operating system."
7849 msgstr ""
7850
7851 # type: textblock
7852 #: ../src/guestfs-actions.pod:2129 ../fish/guestfish-actions.pod:1668
7853 msgid "Currently defined distros are:"
7854 msgstr ""
7855
7856 # type: =item
7857 #: ../src/guestfs-actions.pod:2133 ../fish/guestfish-actions.pod:1672
7858 msgid "\"debian\""
7859 msgstr ""
7860
7861 # type: textblock
7862 #: ../src/guestfs-actions.pod:2135 ../fish/guestfish-actions.pod:1674
7863 msgid "Debian or a Debian-derived distro such as Ubuntu."
7864 msgstr ""
7865
7866 # type: =item
7867 #: ../src/guestfs-actions.pod:2137 ../fish/guestfish-actions.pod:1676
7868 msgid "\"fedora\""
7869 msgstr ""
7870
7871 # type: textblock
7872 #: ../src/guestfs-actions.pod:2139 ../fish/guestfish-actions.pod:1678
7873 msgid "Fedora."
7874 msgstr ""
7875
7876 # type: =item
7877 #: ../src/guestfs-actions.pod:2141 ../fish/guestfish-actions.pod:1680
7878 msgid "\"redhat-based\""
7879 msgstr ""
7880
7881 # type: textblock
7882 #: ../src/guestfs-actions.pod:2143 ../fish/guestfish-actions.pod:1682
7883 msgid "Some Red Hat-derived distro."
7884 msgstr ""
7885
7886 # type: =item
7887 #: ../src/guestfs-actions.pod:2145 ../fish/guestfish-actions.pod:1684
7888 msgid "\"rhel\""
7889 msgstr ""
7890
7891 # type: textblock
7892 #: ../src/guestfs-actions.pod:2147 ../fish/guestfish-actions.pod:1686
7893 msgid "Red Hat Enterprise Linux and some derivatives."
7894 msgstr ""
7895
7896 # type: =item
7897 #: ../src/guestfs-actions.pod:2149 ../src/guestfs-actions.pod:2301
7898 #: ../fish/guestfish-actions.pod:1688 ../fish/guestfish-actions.pod:1814
7899 msgid "\"windows\""
7900 msgstr ""
7901
7902 # type: textblock
7903 #: ../src/guestfs-actions.pod:2151 ../fish/guestfish-actions.pod:1690
7904 msgid ""
7905 "Windows does not have distributions.  This string is returned if the OS type "
7906 "is Windows."
7907 msgstr ""
7908
7909 # type: =item
7910 #: ../src/guestfs-actions.pod:2154 ../src/guestfs-actions.pod:2305
7911 #: ../fish/guestfish-actions.pod:1693 ../fish/guestfish-actions.pod:1818
7912 msgid "\"unknown\""
7913 msgstr ""
7914
7915 # type: textblock
7916 #: ../src/guestfs-actions.pod:2156 ../fish/guestfish-actions.pod:1695
7917 msgid "The distro could not be determined."
7918 msgstr ""
7919
7920 # type: textblock
7921 #: ../src/guestfs-actions.pod:2160 ../src/guestfs-actions.pod:2311
7922 #: ../fish/guestfish-actions.pod:1699 ../fish/guestfish-actions.pod:1824
7923 msgid ""
7924 "Future versions of libguestfs may return other strings here.  The caller "
7925 "should be prepared to handle any string."
7926 msgstr ""
7927
7928 # type: =head2
7929 #: ../src/guestfs-actions.pod:2168
7930 msgid "guestfs_inspect_get_filesystems"
7931 msgstr ""
7932
7933 # type: verbatim
7934 #: ../src/guestfs-actions.pod:2170
7935 #, no-wrap
7936 msgid ""
7937 " char **guestfs_inspect_get_filesystems (guestfs_h *g,\n"
7938 "\t\tconst char *root);\n"
7939 "\n"
7940 msgstr ""
7941
7942 # type: textblock
7943 #: ../src/guestfs-actions.pod:2176 ../fish/guestfish-actions.pod:1711
7944 msgid ""
7945 "This returns a list of all the filesystems that we think are associated with "
7946 "this operating system.  This includes the root filesystem, other ordinary "
7947 "filesystems, and non-mounted devices like swap partitions."
7948 msgstr ""
7949
7950 # type: textblock
7951 #: ../src/guestfs-actions.pod:2181 ../fish/guestfish-actions.pod:1716
7952 msgid ""
7953 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
7954 "to be shared between operating systems."
7955 msgstr ""
7956
7957 # type: textblock
7958 #: ../src/guestfs-actions.pod:2184
7959 msgid ""
7960 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
7961 "C<guestfs_inspect_get_mountpoints>."
7962 msgstr ""
7963
7964 # type: =head2
7965 #: ../src/guestfs-actions.pod:2191
7966 msgid "guestfs_inspect_get_major_version"
7967 msgstr ""
7968
7969 # type: verbatim
7970 #: ../src/guestfs-actions.pod:2193
7971 #, no-wrap
7972 msgid ""
7973 " int guestfs_inspect_get_major_version (guestfs_h *g,\n"
7974 "\t\tconst char *root);\n"
7975 "\n"
7976 msgstr ""
7977
7978 # type: textblock
7979 #: ../src/guestfs-actions.pod:2199 ../fish/guestfish-actions.pod:1729
7980 msgid ""
7981 "This returns the major version number of the inspected operating system."
7982 msgstr ""
7983
7984 # type: textblock
7985 #: ../src/guestfs-actions.pod:2202 ../fish/guestfish-actions.pod:1732
7986 msgid ""
7987 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
7988 "popular public names used by the operating system.  Notably the operating "
7989 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
7990 "1).  You can find out the real versions corresponding to releases of Windows "
7991 "by consulting Wikipedia or MSDN."
7992 msgstr ""
7993
7994 # type: textblock
7995 #: ../src/guestfs-actions.pod:2209 ../src/guestfs-actions.pod:2226
7996 #: ../fish/guestfish-actions.pod:1739 ../fish/guestfish-actions.pod:1753
7997 msgid "If the version could not be determined, then C<0> is returned."
7998 msgstr ""
7999
8000 # type: =head2
8001 #: ../src/guestfs-actions.pod:2215
8002 msgid "guestfs_inspect_get_minor_version"
8003 msgstr ""
8004
8005 # type: verbatim
8006 #: ../src/guestfs-actions.pod:2217
8007 #, no-wrap
8008 msgid ""
8009 " int guestfs_inspect_get_minor_version (guestfs_h *g,\n"
8010 "\t\tconst char *root);\n"
8011 "\n"
8012 msgstr ""
8013
8014 # type: textblock
8015 #: ../src/guestfs-actions.pod:2223 ../fish/guestfish-actions.pod:1750
8016 msgid ""
8017 "This returns the minor version number of the inspected operating system."
8018 msgstr ""
8019
8020 # type: textblock
8021 #: ../src/guestfs-actions.pod:2228
8022 msgid ""
8023 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
8024 "C<guestfs_inspect_get_major_version>."
8025 msgstr ""
8026
8027 # type: =head2
8028 #: ../src/guestfs-actions.pod:2233
8029 msgid "guestfs_inspect_get_mountpoints"
8030 msgstr ""
8031
8032 # type: verbatim
8033 #: ../src/guestfs-actions.pod:2235
8034 #, no-wrap
8035 msgid ""
8036 " char **guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
8037 "\t\tconst char *root);\n"
8038 "\n"
8039 msgstr ""
8040
8041 # type: textblock
8042 #: ../src/guestfs-actions.pod:2241 ../fish/guestfish-actions.pod:1765
8043 msgid ""
8044 "This returns a hash of where we think the filesystems associated with this "
8045 "operating system should be mounted.  Callers should note that this is at "
8046 "best an educated guess made by reading configuration files such as C</etc/"
8047 "fstab>."
8048 msgstr ""
8049
8050 # type: textblock
8051 #: ../src/guestfs-actions.pod:2246 ../fish/guestfish-actions.pod:1770
8052 msgid ""
8053 "Each element in the returned hashtable has a key which is the path of the "
8054 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
8055 "mounted there (eg. C</dev/sda1>)."
8056 msgstr ""
8057
8058 # type: textblock
8059 #: ../src/guestfs-actions.pod:2251 ../fish/guestfish-actions.pod:1775
8060 msgid ""
8061 "Non-mounted devices such as swap devices are I<not> returned in this list."
8062 msgstr ""
8063
8064 # type: textblock
8065 #: ../src/guestfs-actions.pod:2254
8066 msgid ""
8067 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
8068 "C<guestfs_inspect_get_filesystems>."
8069 msgstr ""
8070
8071 # type: textblock
8072 #: ../src/guestfs-actions.pod:2257 ../src/guestfs-actions.pod:2597
8073 #: ../src/guestfs-actions.pod:3519 ../src/guestfs-actions.pod:5102
8074 msgid ""
8075 "This function returns a NULL-terminated array of strings, or NULL if there "
8076 "was an error.  The array of strings will always have length C<2n+1>, where "
8077 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
8078 "caller must free the strings and the array after use>."
8079 msgstr ""
8080
8081 # type: =head2
8082 #: ../src/guestfs-actions.pod:2263
8083 msgid "guestfs_inspect_get_product_name"
8084 msgstr ""
8085
8086 # type: verbatim
8087 #: ../src/guestfs-actions.pod:2265
8088 #, no-wrap
8089 msgid ""
8090 " char *guestfs_inspect_get_product_name (guestfs_h *g,\n"
8091 "\t\tconst char *root);\n"
8092 "\n"
8093 msgstr ""
8094
8095 # type: textblock
8096 #: ../src/guestfs-actions.pod:2271 ../fish/guestfish-actions.pod:1788
8097 msgid ""
8098 "This returns the product name of the inspected operating system.  The "
8099 "product name is generally some freeform string which can be displayed to the "
8100 "user, but should not be parsed by programs."
8101 msgstr ""
8102
8103 # type: textblock
8104 #: ../src/guestfs-actions.pod:2276 ../fish/guestfish-actions.pod:1793
8105 msgid ""
8106 "If the product name could not be determined, then the string C<unknown> is "
8107 "returned."
8108 msgstr ""
8109
8110 # type: =head2
8111 #: ../src/guestfs-actions.pod:2284
8112 msgid "guestfs_inspect_get_type"
8113 msgstr ""
8114
8115 # type: verbatim
8116 #: ../src/guestfs-actions.pod:2286
8117 #, no-wrap
8118 msgid ""
8119 " char *guestfs_inspect_get_type (guestfs_h *g,\n"
8120 "\t\tconst char *root);\n"
8121 "\n"
8122 msgstr ""
8123
8124 # type: textblock
8125 #: ../src/guestfs-actions.pod:2292 ../fish/guestfish-actions.pod:1805
8126 msgid ""
8127 "This returns the type of the inspected operating system.  Currently defined "
8128 "types are:"
8129 msgstr ""
8130
8131 # type: =item
8132 #: ../src/guestfs-actions.pod:2297 ../fish/guestfish-actions.pod:1810
8133 msgid "\"linux\""
8134 msgstr ""
8135
8136 # type: textblock
8137 #: ../src/guestfs-actions.pod:2299 ../fish/guestfish-actions.pod:1812
8138 msgid "Any Linux-based operating system."
8139 msgstr ""
8140
8141 # type: textblock
8142 #: ../src/guestfs-actions.pod:2303 ../fish/guestfish-actions.pod:1816
8143 msgid "Any Microsoft Windows operating system."
8144 msgstr ""
8145
8146 # type: textblock
8147 #: ../src/guestfs-actions.pod:2307 ../fish/guestfish-actions.pod:1820
8148 msgid "The operating system type could not be determined."
8149 msgstr ""
8150
8151 # type: =head2
8152 #: ../src/guestfs-actions.pod:2319
8153 msgid "guestfs_inspect_os"
8154 msgstr ""
8155
8156 # type: verbatim
8157 #: ../src/guestfs-actions.pod:2321
8158 #, no-wrap
8159 msgid ""
8160 " char **guestfs_inspect_os (guestfs_h *g);\n"
8161 "\n"
8162 msgstr ""
8163
8164 # type: textblock
8165 #: ../src/guestfs-actions.pod:2323 ../fish/guestfish-actions.pod:1833
8166 msgid ""
8167 "This function uses other libguestfs functions and certain heuristics to "
8168 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
8169 "for operating systems."
8170 msgstr ""
8171
8172 # type: textblock
8173 #: ../src/guestfs-actions.pod:2327 ../fish/guestfish-actions.pod:1837
8174 msgid "The list returned is empty if no operating systems were found."
8175 msgstr ""
8176
8177 # type: textblock
8178 #: ../src/guestfs-actions.pod:2329 ../fish/guestfish-actions.pod:1839
8179 msgid ""
8180 "If one operating system was found, then this returns a list with a single "
8181 "element, which is the name of the root filesystem of this operating system.  "
8182 "It is also possible for this function to return a list containing more than "
8183 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
8184 "element being the root filesystem of one of the operating systems."
8185 msgstr ""
8186
8187 # type: textblock
8188 #: ../src/guestfs-actions.pod:2336
8189 msgid ""
8190 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
8191 "functions in order to query further information about each operating system, "
8192 "such as the name and version."
8193 msgstr ""
8194
8195 # type: textblock
8196 #: ../src/guestfs-actions.pod:2341
8197 msgid ""
8198 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
8199 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
8200 "the contents.  This should be called with no disks currently mounted.  The "
8201 "function may also use Augeas, so any existing Augeas handle will be closed."
8202 msgstr ""
8203
8204 # type: textblock
8205 #: ../src/guestfs-actions.pod:2347 ../fish/guestfish-actions.pod:1857
8206 msgid ""
8207 "This function cannot decrypt encrypted disks.  The caller must do that first "
8208 "(supplying the necessary keys) if the disk is encrypted."
8209 msgstr ""
8210
8211 # type: textblock
8212 #: ../src/guestfs-actions.pod:2353 ../src/guestfs-actions.pod:2558
8213 #: ../src/guestfs-actions.pod:2614
8214 msgid "See also C<guestfs_list_filesystems>."
8215 msgstr ""
8216
8217 # type: =head2
8218 #: ../src/guestfs-actions.pod:2359
8219 msgid "guestfs_is_blockdev"
8220 msgstr ""
8221
8222 # type: verbatim
8223 #: ../src/guestfs-actions.pod:2361
8224 #, no-wrap
8225 msgid ""
8226 " int guestfs_is_blockdev (guestfs_h *g,\n"
8227 "\t\tconst char *path);\n"
8228 "\n"
8229 msgstr ""
8230
8231 # type: textblock
8232 #: ../src/guestfs-actions.pod:2364 ../fish/guestfish-actions.pod:1869
8233 msgid ""
8234 "This returns C<true> if and only if there is a block device with the given "
8235 "C<path> name."
8236 msgstr ""
8237
8238 # type: textblock
8239 #: ../src/guestfs-actions.pod:2367 ../src/guestfs-actions.pod:2390
8240 #: ../src/guestfs-actions.pod:2414 ../src/guestfs-actions.pod:2426
8241 #: ../src/guestfs-actions.pod:2439 ../src/guestfs-actions.pod:2483
8242 #: ../src/guestfs-actions.pod:2495
8243 msgid "See also C<guestfs_stat>."
8244 msgstr ""
8245
8246 # type: =head2
8247 #: ../src/guestfs-actions.pod:2371
8248 msgid "guestfs_is_busy"
8249 msgstr ""
8250
8251 # type: verbatim
8252 #: ../src/guestfs-actions.pod:2373
8253 #, no-wrap
8254 msgid ""
8255 " int guestfs_is_busy (guestfs_h *g);\n"
8256 "\n"
8257 msgstr ""
8258
8259 # type: textblock
8260 #: ../src/guestfs-actions.pod:2375 ../fish/guestfish-actions.pod:1878
8261 msgid ""
8262 "This returns true iff this handle is busy processing a command (in the "
8263 "C<BUSY> state)."
8264 msgstr ""
8265
8266 # type: =head2
8267 #: ../src/guestfs-actions.pod:2382
8268 msgid "guestfs_is_chardev"
8269 msgstr ""
8270
8271 # type: verbatim
8272 #: ../src/guestfs-actions.pod:2384
8273 #, no-wrap
8274 msgid ""
8275 " int guestfs_is_chardev (guestfs_h *g,\n"
8276 "\t\tconst char *path);\n"
8277 "\n"
8278 msgstr ""
8279
8280 # type: textblock
8281 #: ../src/guestfs-actions.pod:2387 ../fish/guestfish-actions.pod:1887
8282 msgid ""
8283 "This returns C<true> if and only if there is a character device with the "
8284 "given C<path> name."
8285 msgstr ""
8286
8287 # type: =head2
8288 #: ../src/guestfs-actions.pod:2394
8289 msgid "guestfs_is_config"
8290 msgstr ""
8291
8292 # type: verbatim
8293 #: ../src/guestfs-actions.pod:2396
8294 #, no-wrap
8295 msgid ""
8296 " int guestfs_is_config (guestfs_h *g);\n"
8297 "\n"
8298 msgstr ""
8299
8300 # type: textblock
8301 #: ../src/guestfs-actions.pod:2398 ../fish/guestfish-actions.pod:1896
8302 msgid ""
8303 "This returns true iff this handle is being configured (in the C<CONFIG> "
8304 "state)."
8305 msgstr ""
8306
8307 # type: =head2
8308 #: ../src/guestfs-actions.pod:2405
8309 msgid "guestfs_is_dir"
8310 msgstr ""
8311
8312 # type: verbatim
8313 #: ../src/guestfs-actions.pod:2407
8314 #, no-wrap
8315 msgid ""
8316 " int guestfs_is_dir (guestfs_h *g,\n"
8317 "\t\tconst char *path);\n"
8318 "\n"
8319 msgstr ""
8320
8321 # type: textblock
8322 #: ../src/guestfs-actions.pod:2410 ../fish/guestfish-actions.pod:1905
8323 msgid ""
8324 "This returns C<true> if and only if there is a directory with the given "
8325 "C<path> name.  Note that it returns false for other objects like files."
8326 msgstr ""
8327
8328 # type: =head2
8329 #: ../src/guestfs-actions.pod:2418
8330 msgid "guestfs_is_fifo"
8331 msgstr ""
8332
8333 # type: verbatim
8334 #: ../src/guestfs-actions.pod:2420
8335 #, no-wrap
8336 msgid ""
8337 " int guestfs_is_fifo (guestfs_h *g,\n"
8338 "\t\tconst char *path);\n"
8339 "\n"
8340 msgstr ""
8341
8342 # type: textblock
8343 #: ../src/guestfs-actions.pod:2423 ../fish/guestfish-actions.pod:1915
8344 msgid ""
8345 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
8346 "given C<path> name."
8347 msgstr ""
8348
8349 # type: =head2
8350 #: ../src/guestfs-actions.pod:2430
8351 msgid "guestfs_is_file"
8352 msgstr ""
8353
8354 # type: verbatim
8355 #: ../src/guestfs-actions.pod:2432
8356 #, no-wrap
8357 msgid ""
8358 " int guestfs_is_file (guestfs_h *g,\n"
8359 "\t\tconst char *path);\n"
8360 "\n"
8361 msgstr ""
8362
8363 # type: textblock
8364 #: ../src/guestfs-actions.pod:2435 ../fish/guestfish-actions.pod:1924
8365 msgid ""
8366 "This returns C<true> if and only if there is a regular file with the given "
8367 "C<path> name.  Note that it returns false for other objects like directories."
8368 msgstr ""
8369
8370 # type: =head2
8371 #: ../src/guestfs-actions.pod:2443
8372 msgid "guestfs_is_launching"
8373 msgstr ""
8374
8375 # type: verbatim
8376 #: ../src/guestfs-actions.pod:2445
8377 #, no-wrap
8378 msgid ""
8379 " int guestfs_is_launching (guestfs_h *g);\n"
8380 "\n"
8381 msgstr ""
8382
8383 # type: textblock
8384 #: ../src/guestfs-actions.pod:2447 ../fish/guestfish-actions.pod:1934
8385 msgid ""
8386 "This returns true iff this handle is launching the subprocess (in the "
8387 "C<LAUNCHING> state)."
8388 msgstr ""
8389
8390 # type: =head2
8391 #: ../src/guestfs-actions.pod:2454
8392 msgid "guestfs_is_lv"
8393 msgstr ""
8394
8395 # type: verbatim
8396 #: ../src/guestfs-actions.pod:2456
8397 #, no-wrap
8398 msgid ""
8399 " int guestfs_is_lv (guestfs_h *g,\n"
8400 "\t\tconst char *device);\n"
8401 "\n"
8402 msgstr ""
8403
8404 # type: textblock
8405 #: ../src/guestfs-actions.pod:2459 ../fish/guestfish-actions.pod:1943
8406 msgid ""
8407 "This command tests whether C<device> is a logical volume, and returns true "
8408 "iff this is the case."
8409 msgstr ""
8410
8411 # type: =head2
8412 #: ../src/guestfs-actions.pod:2464
8413 msgid "guestfs_is_ready"
8414 msgstr ""
8415
8416 # type: verbatim
8417 #: ../src/guestfs-actions.pod:2466
8418 #, no-wrap
8419 msgid ""
8420 " int guestfs_is_ready (guestfs_h *g);\n"
8421 "\n"
8422 msgstr ""
8423
8424 # type: textblock
8425 #: ../src/guestfs-actions.pod:2468 ../fish/guestfish-actions.pod:1950
8426 msgid ""
8427 "This returns true iff this handle is ready to accept commands (in the "
8428 "C<READY> state)."
8429 msgstr ""
8430
8431 # type: =head2
8432 #: ../src/guestfs-actions.pod:2475
8433 msgid "guestfs_is_socket"
8434 msgstr ""
8435
8436 # type: verbatim
8437 #: ../src/guestfs-actions.pod:2477
8438 #, no-wrap
8439 msgid ""
8440 " int guestfs_is_socket (guestfs_h *g,\n"
8441 "\t\tconst char *path);\n"
8442 "\n"
8443 msgstr ""
8444
8445 # type: textblock
8446 #: ../src/guestfs-actions.pod:2480 ../fish/guestfish-actions.pod:1959
8447 msgid ""
8448 "This returns C<true> if and only if there is a Unix domain socket with the "
8449 "given C<path> name."
8450 msgstr ""
8451
8452 # type: =head2
8453 #: ../src/guestfs-actions.pod:2487
8454 msgid "guestfs_is_symlink"
8455 msgstr ""
8456
8457 # type: verbatim
8458 #: ../src/guestfs-actions.pod:2489
8459 #, no-wrap
8460 msgid ""
8461 " int guestfs_is_symlink (guestfs_h *g,\n"
8462 "\t\tconst char *path);\n"
8463 "\n"
8464 msgstr ""
8465
8466 # type: textblock
8467 #: ../src/guestfs-actions.pod:2492 ../fish/guestfish-actions.pod:1968
8468 msgid ""
8469 "This returns C<true> if and only if there is a symbolic link with the given "
8470 "C<path> name."
8471 msgstr ""
8472
8473 # type: =head2
8474 #: ../src/guestfs-actions.pod:2499
8475 msgid "guestfs_kill_subprocess"
8476 msgstr ""
8477
8478 # type: verbatim
8479 #: ../src/guestfs-actions.pod:2501
8480 #, no-wrap
8481 msgid ""
8482 " int guestfs_kill_subprocess (guestfs_h *g);\n"
8483 "\n"
8484 msgstr ""
8485
8486 # type: textblock
8487 #: ../src/guestfs-actions.pod:2503 ../fish/guestfish-actions.pod:1977
8488 msgid "This kills the qemu subprocess.  You should never need to call this."
8489 msgstr ""
8490
8491 # type: =head2
8492 #: ../src/guestfs-actions.pod:2507
8493 msgid "guestfs_launch"
8494 msgstr ""
8495
8496 # type: verbatim
8497 #: ../src/guestfs-actions.pod:2509
8498 #, no-wrap
8499 msgid ""
8500 " int guestfs_launch (guestfs_h *g);\n"
8501 "\n"
8502 msgstr ""
8503
8504 # type: textblock
8505 #: ../src/guestfs-actions.pod:2511 ../fish/guestfish-actions.pod:1985
8506 msgid ""
8507 "Internally libguestfs is implemented by running a virtual machine using "
8508 "L<qemu(1)>."
8509 msgstr ""
8510
8511 # type: textblock
8512 #: ../src/guestfs-actions.pod:2514 ../fish/guestfish-actions.pod:1988
8513 msgid ""
8514 "You should call this after configuring the handle (eg. adding drives) but "
8515 "before performing any actions."
8516 msgstr ""
8517
8518 # type: =head2
8519 #: ../src/guestfs-actions.pod:2519
8520 msgid "guestfs_lchown"
8521 msgstr ""
8522
8523 # type: verbatim
8524 #: ../src/guestfs-actions.pod:2521
8525 #, no-wrap
8526 msgid ""
8527 " int guestfs_lchown (guestfs_h *g,\n"
8528 "\t\tint owner,\n"
8529 "\t\tint group,\n"
8530 "\t\tconst char *path);\n"
8531 "\n"
8532 msgstr ""
8533
8534 # type: textblock
8535 #: ../src/guestfs-actions.pod:2526
8536 msgid ""
8537 "Change the file owner to C<owner> and group to C<group>.  This is like "
8538 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
8539 "changed, not the target."
8540 msgstr ""
8541
8542 # type: =head2
8543 #: ../src/guestfs-actions.pod:2536
8544 msgid "guestfs_lgetxattrs"
8545 msgstr ""
8546
8547 # type: verbatim
8548 #: ../src/guestfs-actions.pod:2538
8549 #, no-wrap
8550 msgid ""
8551 " struct guestfs_xattr_list *guestfs_lgetxattrs (guestfs_h *g,\n"
8552 "\t\tconst char *path);\n"
8553 "\n"
8554 msgstr ""
8555
8556 # type: textblock
8557 #: ../src/guestfs-actions.pod:2541
8558 msgid ""
8559 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
8560 "then it returns the extended attributes of the link itself."
8561 msgstr ""
8562
8563 # type: =head2
8564 #: ../src/guestfs-actions.pod:2550
8565 msgid "guestfs_list_devices"
8566 msgstr ""
8567
8568 # type: verbatim
8569 #: ../src/guestfs-actions.pod:2552
8570 #, no-wrap
8571 msgid ""
8572 " char **guestfs_list_devices (guestfs_h *g);\n"
8573 "\n"
8574 msgstr ""
8575
8576 # type: textblock
8577 #: ../src/guestfs-actions.pod:2554 ../fish/guestfish-actions.pod:2015
8578 msgid "List all the block devices."
8579 msgstr ""
8580
8581 # type: textblock
8582 #: ../src/guestfs-actions.pod:2556 ../fish/guestfish-actions.pod:2017
8583 msgid "The full block device names are returned, eg. C</dev/sda>."
8584 msgstr ""
8585
8586 # type: =head2
8587 #: ../src/guestfs-actions.pod:2564
8588 msgid "guestfs_list_filesystems"
8589 msgstr ""
8590
8591 # type: verbatim
8592 #: ../src/guestfs-actions.pod:2566
8593 #, no-wrap
8594 msgid ""
8595 " char **guestfs_list_filesystems (guestfs_h *g);\n"
8596 "\n"
8597 msgstr ""
8598
8599 # type: textblock
8600 #: ../src/guestfs-actions.pod:2568 ../fish/guestfish-actions.pod:2025
8601 msgid ""
8602 "This inspection command looks for filesystems on partitions, block devices "
8603 "and logical volumes, returning a list of devices containing filesystems and "
8604 "their type."
8605 msgstr ""
8606
8607 # type: textblock
8608 #: ../src/guestfs-actions.pod:2572 ../fish/guestfish-actions.pod:2029
8609 msgid ""
8610 "The return value is a hash, where the keys are the devices containing "
8611 "filesystems, and the values are the filesystem types.  For example:"
8612 msgstr ""
8613
8614 # type: verbatim
8615 #: ../src/guestfs-actions.pod:2576 ../fish/guestfish-actions.pod:2033
8616 #, no-wrap
8617 msgid ""
8618 " \"/dev/sda1\" => \"ntfs\"\n"
8619 " \"/dev/sda2\" => \"ext2\"\n"
8620 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
8621 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
8622 "\n"
8623 msgstr ""
8624
8625 # type: textblock
8626 #: ../src/guestfs-actions.pod:2581 ../fish/guestfish-actions.pod:2038
8627 msgid ""
8628 "The value can have the special value \"unknown\", meaning the content of the "
8629 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
8630 msgstr ""
8631
8632 # type: textblock
8633 #: ../src/guestfs-actions.pod:2585
8634 msgid ""
8635 "This command runs other libguestfs commands, which might include "
8636 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
8637 "soon after launch and only when nothing is mounted."
8638 msgstr ""
8639
8640 # type: textblock
8641 #: ../src/guestfs-actions.pod:2589
8642 msgid ""
8643 "Not all of the filesystems returned will be mountable.  In particular, swap "
8644 "partitions are returned in the list.  Also this command does not check that "
8645 "each filesystem found is valid and mountable, and some filesystems might be "
8646 "mountable but require special options.  Filesystems may not all belong to a "
8647 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
8648 msgstr ""
8649
8650 # type: =head2
8651 #: ../src/guestfs-actions.pod:2603
8652 msgid "guestfs_list_partitions"
8653 msgstr ""
8654
8655 # type: verbatim
8656 #: ../src/guestfs-actions.pod:2605
8657 #, no-wrap
8658 msgid ""
8659 " char **guestfs_list_partitions (guestfs_h *g);\n"
8660 "\n"
8661 msgstr ""
8662
8663 # type: textblock
8664 #: ../src/guestfs-actions.pod:2607 ../fish/guestfish-actions.pod:2058
8665 msgid "List all the partitions detected on all block devices."
8666 msgstr ""
8667
8668 # type: textblock
8669 #: ../src/guestfs-actions.pod:2609 ../fish/guestfish-actions.pod:2060
8670 msgid "The full partition device names are returned, eg. C</dev/sda1>"
8671 msgstr ""
8672
8673 # type: textblock
8674 #: ../src/guestfs-actions.pod:2611
8675 msgid ""
8676 "This does not return logical volumes.  For that you will need to call "
8677 "C<guestfs_lvs>."
8678 msgstr ""
8679
8680 # type: =head2
8681 #: ../src/guestfs-actions.pod:2620
8682 msgid "guestfs_ll"
8683 msgstr ""
8684
8685 # type: verbatim
8686 #: ../src/guestfs-actions.pod:2622
8687 #, no-wrap
8688 msgid ""
8689 " char *guestfs_ll (guestfs_h *g,\n"
8690 "\t\tconst char *directory);\n"
8691 "\n"
8692 msgstr ""
8693
8694 # type: textblock
8695 #: ../src/guestfs-actions.pod:2625 ../fish/guestfish-actions.pod:2071
8696 msgid ""
8697 "List the files in C<directory> (relative to the root directory, there is no "
8698 "cwd) in the format of 'ls -la'."
8699 msgstr ""
8700
8701 # type: textblock
8702 #: ../src/guestfs-actions.pod:2628 ../fish/guestfish-actions.pod:2074
8703 msgid ""
8704 "This command is mostly useful for interactive sessions.  It is I<not> "
8705 "intended that you try to parse the output string."
8706 msgstr ""
8707
8708 # type: =head2
8709 #: ../src/guestfs-actions.pod:2634
8710 msgid "guestfs_ln"
8711 msgstr ""
8712
8713 # type: verbatim
8714 #: ../src/guestfs-actions.pod:2636
8715 #, no-wrap
8716 msgid ""
8717 " int guestfs_ln (guestfs_h *g,\n"
8718 "\t\tconst char *target,\n"
8719 "\t\tconst char *linkname);\n"
8720 "\n"
8721 msgstr ""
8722
8723 # type: textblock
8724 #: ../src/guestfs-actions.pod:2640 ../fish/guestfish-actions.pod:2081
8725 msgid "This command creates a hard link using the C<ln> command."
8726 msgstr ""
8727
8728 # type: =head2
8729 #: ../src/guestfs-actions.pod:2644
8730 msgid "guestfs_ln_f"
8731 msgstr ""
8732
8733 # type: verbatim
8734 #: ../src/guestfs-actions.pod:2646
8735 #, no-wrap
8736 msgid ""
8737 " int guestfs_ln_f (guestfs_h *g,\n"
8738 "\t\tconst char *target,\n"
8739 "\t\tconst char *linkname);\n"
8740 "\n"
8741 msgstr ""
8742
8743 # type: textblock
8744 #: ../src/guestfs-actions.pod:2650 ../fish/guestfish-actions.pod:2087
8745 msgid ""
8746 "This command creates a hard link using the C<ln -f> command.  The C<-f> "
8747 "option removes the link (C<linkname>) if it exists already."
8748 msgstr ""
8749
8750 # type: =head2
8751 #: ../src/guestfs-actions.pod:2655
8752 msgid "guestfs_ln_s"
8753 msgstr ""
8754
8755 # type: verbatim
8756 #: ../src/guestfs-actions.pod:2657
8757 #, no-wrap
8758 msgid ""
8759 " int guestfs_ln_s (guestfs_h *g,\n"
8760 "\t\tconst char *target,\n"
8761 "\t\tconst char *linkname);\n"
8762 "\n"
8763 msgstr ""
8764
8765 # type: textblock
8766 #: ../src/guestfs-actions.pod:2661 ../fish/guestfish-actions.pod:2094
8767 msgid "This command creates a symbolic link using the C<ln -s> command."
8768 msgstr ""
8769
8770 # type: =head2
8771 #: ../src/guestfs-actions.pod:2665
8772 msgid "guestfs_ln_sf"
8773 msgstr ""
8774
8775 # type: verbatim
8776 #: ../src/guestfs-actions.pod:2667
8777 #, no-wrap
8778 msgid ""
8779 " int guestfs_ln_sf (guestfs_h *g,\n"
8780 "\t\tconst char *target,\n"
8781 "\t\tconst char *linkname);\n"
8782 "\n"
8783 msgstr ""
8784
8785 # type: textblock
8786 #: ../src/guestfs-actions.pod:2671 ../fish/guestfish-actions.pod:2100
8787 msgid ""
8788 "This command creates a symbolic link using the C<ln -sf> command, The C<-f> "
8789 "option removes the link (C<linkname>) if it exists already."
8790 msgstr ""
8791
8792 # type: =head2
8793 #: ../src/guestfs-actions.pod:2676
8794 msgid "guestfs_lremovexattr"
8795 msgstr ""
8796
8797 # type: verbatim
8798 #: ../src/guestfs-actions.pod:2678
8799 #, no-wrap
8800 msgid ""
8801 " int guestfs_lremovexattr (guestfs_h *g,\n"
8802 "\t\tconst char *xattr,\n"
8803 "\t\tconst char *path);\n"
8804 "\n"
8805 msgstr ""
8806
8807 # type: textblock
8808 #: ../src/guestfs-actions.pod:2682
8809 msgid ""
8810 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
8811 "link, then it removes an extended attribute of the link itself."
8812 msgstr ""
8813
8814 # type: =head2
8815 #: ../src/guestfs-actions.pod:2688
8816 msgid "guestfs_ls"
8817 msgstr ""
8818
8819 # type: verbatim
8820 #: ../src/guestfs-actions.pod:2690
8821 #, no-wrap
8822 msgid ""
8823 " char **guestfs_ls (guestfs_h *g,\n"
8824 "\t\tconst char *directory);\n"
8825 "\n"
8826 msgstr ""
8827
8828 # type: textblock
8829 #: ../src/guestfs-actions.pod:2693 ../fish/guestfish-actions.pod:2115
8830 msgid ""
8831 "List the files in C<directory> (relative to the root directory, there is no "
8832 "cwd).  The '.' and '..' entries are not returned, but hidden files are shown."
8833 msgstr ""
8834
8835 # type: textblock
8836 #: ../src/guestfs-actions.pod:2697
8837 msgid ""
8838 "This command is mostly useful for interactive sessions.  Programs should "
8839 "probably use C<guestfs_readdir> instead."
8840 msgstr ""
8841
8842 # type: =head2
8843 #: ../src/guestfs-actions.pod:2704
8844 msgid "guestfs_lsetxattr"
8845 msgstr ""
8846
8847 # type: verbatim
8848 #: ../src/guestfs-actions.pod:2706
8849 #, no-wrap
8850 msgid ""
8851 " int guestfs_lsetxattr (guestfs_h *g,\n"
8852 "\t\tconst char *xattr,\n"
8853 "\t\tconst char *val,\n"
8854 "\t\tint vallen,\n"
8855 "\t\tconst char *path);\n"
8856 "\n"
8857 msgstr ""
8858
8859 # type: textblock
8860 #: ../src/guestfs-actions.pod:2712
8861 msgid ""
8862 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
8863 "then it sets an extended attribute of the link itself."
8864 msgstr ""
8865
8866 # type: =head2
8867 #: ../src/guestfs-actions.pod:2718
8868 msgid "guestfs_lstat"
8869 msgstr ""
8870
8871 # type: verbatim
8872 #: ../src/guestfs-actions.pod:2720
8873 #, no-wrap
8874 msgid ""
8875 " struct guestfs_stat *guestfs_lstat (guestfs_h *g,\n"
8876 "\t\tconst char *path);\n"
8877 "\n"
8878 msgstr ""
8879
8880 # type: textblock
8881 #: ../src/guestfs-actions.pod:2723 ../src/guestfs-actions.pod:4767
8882 #: ../fish/guestfish-actions.pod:2134 ../fish/guestfish-actions.pod:3688
8883 msgid "Returns file information for the given C<path>."
8884 msgstr ""
8885
8886 # type: textblock
8887 #: ../src/guestfs-actions.pod:2725
8888 msgid ""
8889 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
8890 "link, then the link is stat-ed, not the file it refers to."
8891 msgstr ""
8892
8893 # type: textblock
8894 #: ../src/guestfs-actions.pod:2729 ../fish/guestfish-actions.pod:2140
8895 msgid "This is the same as the C<lstat(2)> system call."
8896 msgstr ""
8897
8898 # type: textblock
8899 #: ../src/guestfs-actions.pod:2731 ../src/guestfs-actions.pod:4771
8900 msgid ""
8901 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
8902 "error.  I<The caller must call C<guestfs_free_stat> after use>."
8903 msgstr ""
8904
8905 # type: =head2
8906 #: ../src/guestfs-actions.pod:2735
8907 msgid "guestfs_lstatlist"
8908 msgstr ""
8909
8910 # type: verbatim
8911 #: ../src/guestfs-actions.pod:2737
8912 #, no-wrap
8913 msgid ""
8914 " struct guestfs_stat_list *guestfs_lstatlist (guestfs_h *g,\n"
8915 "\t\tconst char *path,\n"
8916 "\t\tchar *const *names);\n"
8917 "\n"
8918 msgstr ""
8919
8920 # type: textblock
8921 #: ../src/guestfs-actions.pod:2741
8922 msgid ""
8923 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
8924 "files, where all files are in the directory C<path>.  C<names> is the list "
8925 "of files from this directory."
8926 msgstr ""
8927
8928 # type: textblock
8929 #: ../src/guestfs-actions.pod:2745 ../fish/guestfish-actions.pod:2150
8930 msgid ""
8931 "On return you get a list of stat structs, with a one-to-one correspondence "
8932 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
8933 "then the C<ino> field of that structure is set to C<-1>."
8934 msgstr ""
8935
8936 # type: textblock
8937 #: ../src/guestfs-actions.pod:2750
8938 msgid ""
8939 "This call is intended for programs that want to efficiently list a directory "
8940 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
8941 "for a similarly efficient call for getting extended attributes.  Very long "
8942 "directory listings might cause the protocol message size to be exceeded, "
8943 "causing this call to fail.  The caller must split up such requests into "
8944 "smaller groups of names."
8945 msgstr ""
8946
8947 # type: textblock
8948 #: ../src/guestfs-actions.pod:2758
8949 msgid ""
8950 "This function returns a C<struct guestfs_stat_list *> (see E<lt>guestfs-"
8951 "structs.hE<gt>), or NULL if there was an error.  I<The caller must call "
8952 "C<guestfs_free_stat_list> after use>."
8953 msgstr ""
8954
8955 # type: =head2
8956 #: ../src/guestfs-actions.pod:2763
8957 msgid "guestfs_luks_add_key"
8958 msgstr ""
8959
8960 # type: verbatim
8961 #: ../src/guestfs-actions.pod:2765
8962 #, no-wrap
8963 msgid ""
8964 " int guestfs_luks_add_key (guestfs_h *g,\n"
8965 "\t\tconst char *device,\n"
8966 "\t\tconst char *key,\n"
8967 "\t\tconst char *newkey,\n"
8968 "\t\tint keyslot);\n"
8969 "\n"
8970 msgstr ""
8971
8972 # type: textblock
8973 #: ../src/guestfs-actions.pod:2771 ../fish/guestfish-actions.pod:2167
8974 msgid ""
8975 "This command adds a new key on LUKS device C<device>.  C<key> is any "
8976 "existing key, and is used to access the device.  C<newkey> is the new key to "
8977 "add.  C<keyslot> is the key slot that will be replaced."
8978 msgstr ""
8979
8980 # type: textblock
8981 #: ../src/guestfs-actions.pod:2776
8982 msgid ""
8983 "Note that if C<keyslot> already contains a key, then this command will "
8984 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
8985 msgstr ""
8986
8987 # type: textblock
8988 #: ../src/guestfs-actions.pod:2782 ../src/guestfs-actions.pod:2816
8989 #: ../src/guestfs-actions.pod:2836 ../src/guestfs-actions.pod:2853
8990 #: ../src/guestfs-actions.pod:2882 ../src/guestfs-actions.pod:2898
8991 msgid ""
8992 "This function takes a key or passphrase parameter which could contain "
8993 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
8994 "information."
8995 msgstr ""
8996
8997 # type: =head2
8998 #: ../src/guestfs-actions.pod:2786
8999 msgid "guestfs_luks_close"
9000 msgstr ""
9001
9002 # type: verbatim
9003 #: ../src/guestfs-actions.pod:2788
9004 #, no-wrap
9005 msgid ""
9006 " int guestfs_luks_close (guestfs_h *g,\n"
9007 "\t\tconst char *device);\n"
9008 "\n"
9009 msgstr ""
9010
9011 # type: textblock
9012 #: ../src/guestfs-actions.pod:2791
9013 msgid ""
9014 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
9015 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
9016 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
9017 "underlying block device."
9018 msgstr ""
9019
9020 # type: =head2
9021 #: ../src/guestfs-actions.pod:2799
9022 msgid "guestfs_luks_format"
9023 msgstr ""
9024
9025 # type: verbatim
9026 #: ../src/guestfs-actions.pod:2801
9027 #, no-wrap
9028 msgid ""
9029 " int guestfs_luks_format (guestfs_h *g,\n"
9030 "\t\tconst char *device,\n"
9031 "\t\tconst char *key,\n"
9032 "\t\tint keyslot);\n"
9033 "\n"
9034 msgstr ""
9035
9036 # type: textblock
9037 #: ../src/guestfs-actions.pod:2806 ../fish/guestfish-actions.pod:2193
9038 msgid ""
9039 "This command erases existing data on C<device> and formats the device as a "
9040 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
9041 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
9042 msgstr ""
9043
9044 # type: textblock
9045 #: ../src/guestfs-actions.pod:2813 ../src/guestfs-actions.pod:2833
9046 #: ../src/guestfs-actions.pod:2935 ../src/guestfs-actions.pod:3647
9047 #: ../src/guestfs-actions.pod:4308 ../src/guestfs-actions.pod:4629
9048 #: ../src/guestfs-actions.pod:4649 ../src/guestfs-actions.pod:4672
9049 #: ../src/guestfs-actions.pod:5637 ../fish/guestfish-actions.pod:2201
9050 #: ../fish/guestfish-actions.pod:2214 ../fish/guestfish-actions.pod:2285
9051 #: ../fish/guestfish-actions.pod:2800 ../fish/guestfish-actions.pod:3307
9052 #: ../fish/guestfish-actions.pod:3587 ../fish/guestfish-actions.pod:3603
9053 #: ../fish/guestfish-actions.pod:3618 ../fish/guestfish-actions.pod:4333
9054 msgid ""
9055 "B<This command is dangerous.  Without careful use you can easily destroy all "
9056 "your data>."
9057 msgstr ""
9058
9059 # type: =head2
9060 #: ../src/guestfs-actions.pod:2820
9061 msgid "guestfs_luks_format_cipher"
9062 msgstr ""
9063
9064 # type: verbatim
9065 #: ../src/guestfs-actions.pod:2822
9066 #, no-wrap
9067 msgid ""
9068 " int guestfs_luks_format_cipher (guestfs_h *g,\n"
9069 "\t\tconst char *device,\n"
9070 "\t\tconst char *key,\n"
9071 "\t\tint keyslot,\n"
9072 "\t\tconst char *cipher);\n"
9073 "\n"
9074 msgstr ""
9075
9076 # type: textblock
9077 #: ../src/guestfs-actions.pod:2828
9078 msgid ""
9079 "This command is the same as C<guestfs_luks_format> but it also allows you to "
9080 "set the C<cipher> used."
9081 msgstr ""
9082
9083 # type: =head2
9084 #: ../src/guestfs-actions.pod:2840
9085 msgid "guestfs_luks_kill_slot"
9086 msgstr ""
9087
9088 # type: verbatim
9089 #: ../src/guestfs-actions.pod:2842
9090 #, no-wrap
9091 msgid ""
9092 " int guestfs_luks_kill_slot (guestfs_h *g,\n"
9093 "\t\tconst char *device,\n"
9094 "\t\tconst char *key,\n"
9095 "\t\tint keyslot);\n"
9096 "\n"
9097 msgstr ""
9098
9099 # type: textblock
9100 #: ../src/guestfs-actions.pod:2847 ../fish/guestfish-actions.pod:2221
9101 msgid ""
9102 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
9103 "device C<device>.  C<key> must be one of the I<other> keys."
9104 msgstr ""
9105
9106 # type: =head2
9107 #: ../src/guestfs-actions.pod:2857
9108 msgid "guestfs_luks_open"
9109 msgstr ""
9110
9111 # type: verbatim
9112 #: ../src/guestfs-actions.pod:2859
9113 #, no-wrap
9114 msgid ""
9115 " int guestfs_luks_open (guestfs_h *g,\n"
9116 "\t\tconst char *device,\n"
9117 "\t\tconst char *key,\n"
9118 "\t\tconst char *mapname);\n"
9119 "\n"
9120 msgstr ""
9121
9122 # type: textblock
9123 #: ../src/guestfs-actions.pod:2864 ../fish/guestfish-actions.pod:2232
9124 msgid ""
9125 "This command opens a block device which has been encrypted according to the "
9126 "Linux Unified Key Setup (LUKS) standard."
9127 msgstr ""
9128
9129 # type: textblock
9130 #: ../src/guestfs-actions.pod:2867 ../fish/guestfish-actions.pod:2235
9131 msgid "C<device> is the encrypted block device or partition."
9132 msgstr ""
9133
9134 # type: textblock
9135 #: ../src/guestfs-actions.pod:2869 ../fish/guestfish-actions.pod:2237
9136 msgid ""
9137 "The caller must supply one of the keys associated with the LUKS block "
9138 "device, in the C<key> parameter."
9139 msgstr ""
9140
9141 # type: textblock
9142 #: ../src/guestfs-actions.pod:2872 ../fish/guestfish-actions.pod:2240
9143 msgid ""
9144 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
9145 "writes to this block device are decrypted from and encrypted to the "
9146 "underlying C<device> respectively."
9147 msgstr ""
9148
9149 # type: textblock
9150 #: ../src/guestfs-actions.pod:2876
9151 msgid ""
9152 "If this block device contains LVM volume groups, then calling "
9153 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
9154 "visible."
9155 msgstr ""
9156
9157 # type: =head2
9158 #: ../src/guestfs-actions.pod:2886
9159 msgid "guestfs_luks_open_ro"
9160 msgstr ""
9161
9162 # type: verbatim
9163 #: ../src/guestfs-actions.pod:2888
9164 #, no-wrap
9165 msgid ""
9166 " int guestfs_luks_open_ro (guestfs_h *g,\n"
9167 "\t\tconst char *device,\n"
9168 "\t\tconst char *key,\n"
9169 "\t\tconst char *mapname);\n"
9170 "\n"
9171 msgstr ""
9172
9173 # type: textblock
9174 #: ../src/guestfs-actions.pod:2893
9175 msgid ""
9176 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
9177 "created."
9178 msgstr ""
9179
9180 # type: =head2
9181 #: ../src/guestfs-actions.pod:2902
9182 msgid "guestfs_lvcreate"
9183 msgstr ""
9184
9185 # type: verbatim
9186 #: ../src/guestfs-actions.pod:2904
9187 #, no-wrap
9188 msgid ""
9189 " int guestfs_lvcreate (guestfs_h *g,\n"
9190 "\t\tconst char *logvol,\n"
9191 "\t\tconst char *volgroup,\n"
9192 "\t\tint mbytes);\n"
9193 "\n"
9194 msgstr ""
9195
9196 # type: textblock
9197 #: ../src/guestfs-actions.pod:2909 ../fish/guestfish-actions.pod:2265
9198 msgid ""
9199 "This creates an LVM logical volume called C<logvol> on the volume group "
9200 "C<volgroup>, with C<size> megabytes."
9201 msgstr ""
9202
9203 # type: =head2
9204 #: ../src/guestfs-actions.pod:2914
9205 msgid "guestfs_lvm_clear_filter"
9206 msgstr ""
9207
9208 # type: verbatim
9209 #: ../src/guestfs-actions.pod:2916
9210 #, no-wrap
9211 msgid ""
9212 " int guestfs_lvm_clear_filter (guestfs_h *g);\n"
9213 "\n"
9214 msgstr ""
9215
9216 # type: textblock
9217 #: ../src/guestfs-actions.pod:2918
9218 msgid ""
9219 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
9220 "see every block device."
9221 msgstr ""
9222
9223 # type: textblock
9224 #: ../src/guestfs-actions.pod:2921 ../src/guestfs-actions.pod:2957
9225 #: ../fish/guestfish-actions.pod:2275 ../fish/guestfish-actions.pod:2306
9226 msgid ""
9227 "This command also clears the LVM cache and performs a volume group scan."
9228 msgstr ""
9229
9230 # type: =head2
9231 #: ../src/guestfs-actions.pod:2926
9232 msgid "guestfs_lvm_remove_all"
9233 msgstr ""
9234
9235 # type: verbatim
9236 #: ../src/guestfs-actions.pod:2928
9237 #, no-wrap
9238 msgid ""
9239 " int guestfs_lvm_remove_all (guestfs_h *g);\n"
9240 "\n"
9241 msgstr ""
9242
9243 # type: textblock
9244 #: ../src/guestfs-actions.pod:2930 ../fish/guestfish-actions.pod:2282
9245 msgid ""
9246 "This command removes all LVM logical volumes, volume groups and physical "
9247 "volumes."
9248 msgstr ""
9249
9250 # type: =head2
9251 #: ../src/guestfs-actions.pod:2938
9252 msgid "guestfs_lvm_set_filter"
9253 msgstr ""
9254
9255 # type: verbatim
9256 #: ../src/guestfs-actions.pod:2940
9257 #, no-wrap
9258 msgid ""
9259 " int guestfs_lvm_set_filter (guestfs_h *g,\n"
9260 "\t\tchar *const *devices);\n"
9261 "\n"
9262 msgstr ""
9263
9264 # type: textblock
9265 #: ../src/guestfs-actions.pod:2943 ../fish/guestfish-actions.pod:2292
9266 msgid ""
9267 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
9268 "block devices in the list C<devices>, and will ignore all other attached "
9269 "block devices."
9270 msgstr ""
9271
9272 # type: textblock
9273 #: ../src/guestfs-actions.pod:2947 ../fish/guestfish-actions.pod:2296
9274 msgid ""
9275 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
9276 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
9277 "there are two types of duplication possible: either cloned PVs/VGs which "
9278 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
9279 "same name.  In normal operation you cannot create this situation, but you "
9280 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
9281 "inside the LVM metadata."
9282 msgstr ""
9283
9284 # type: textblock
9285 #: ../src/guestfs-actions.pod:2960 ../fish/guestfish-actions.pod:2309
9286 msgid "You can filter whole block devices or individual partitions."
9287 msgstr ""
9288
9289 # type: textblock
9290 #: ../src/guestfs-actions.pod:2962 ../fish/guestfish-actions.pod:2311
9291 msgid ""
9292 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
9293 "filesystem), even if you are not filtering out that VG."
9294 msgstr ""
9295
9296 # type: =head2
9297 #: ../src/guestfs-actions.pod:2968
9298 msgid "guestfs_lvremove"
9299 msgstr ""
9300
9301 # type: verbatim
9302 #: ../src/guestfs-actions.pod:2970
9303 #, no-wrap
9304 msgid ""
9305 " int guestfs_lvremove (guestfs_h *g,\n"
9306 "\t\tconst char *device);\n"
9307 "\n"
9308 msgstr ""
9309
9310 # type: textblock
9311 #: ../src/guestfs-actions.pod:2973 ../fish/guestfish-actions.pod:2319
9312 msgid ""
9313 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
9314 "LV, such as C</dev/VG/LV>."
9315 msgstr ""
9316
9317 # type: textblock
9318 #: ../src/guestfs-actions.pod:2976 ../fish/guestfish-actions.pod:2322
9319 msgid ""
9320 "You can also remove all LVs in a volume group by specifying the VG name, C</"
9321 "dev/VG>."
9322 msgstr ""
9323
9324 # type: =head2
9325 #: ../src/guestfs-actions.pod:2981
9326 msgid "guestfs_lvrename"
9327 msgstr ""
9328
9329 # type: verbatim
9330 #: ../src/guestfs-actions.pod:2983
9331 #, no-wrap
9332 msgid ""
9333 " int guestfs_lvrename (guestfs_h *g,\n"
9334 "\t\tconst char *logvol,\n"
9335 "\t\tconst char *newlogvol);\n"
9336 "\n"
9337 msgstr ""
9338
9339 # type: textblock
9340 #: ../src/guestfs-actions.pod:2987 ../fish/guestfish-actions.pod:2329
9341 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
9342 msgstr ""
9343
9344 # type: =head2
9345 #: ../src/guestfs-actions.pod:2991
9346 msgid "guestfs_lvresize"
9347 msgstr ""
9348
9349 # type: verbatim
9350 #: ../src/guestfs-actions.pod:2993
9351 #, no-wrap
9352 msgid ""
9353 " int guestfs_lvresize (guestfs_h *g,\n"
9354 "\t\tconst char *device,\n"
9355 "\t\tint mbytes);\n"
9356 "\n"
9357 msgstr ""
9358
9359 # type: textblock
9360 #: ../src/guestfs-actions.pod:2997 ../fish/guestfish-actions.pod:2335
9361 msgid ""
9362 "This resizes (expands or shrinks) an existing LVM logical volume to "
9363 "C<mbytes>.  When reducing, data in the reduced part is lost."
9364 msgstr ""
9365
9366 # type: =head2
9367 #: ../src/guestfs-actions.pod:3003
9368 msgid "guestfs_lvresize_free"
9369 msgstr ""
9370
9371 # type: verbatim
9372 #: ../src/guestfs-actions.pod:3005
9373 #, no-wrap
9374 msgid ""
9375 " int guestfs_lvresize_free (guestfs_h *g,\n"
9376 "\t\tconst char *lv,\n"
9377 "\t\tint percent);\n"
9378 "\n"
9379 msgstr ""
9380
9381 # type: textblock
9382 #: ../src/guestfs-actions.pod:3009 ../fish/guestfish-actions.pod:2343
9383 msgid ""
9384 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
9385 "remaining free space in the volume group.  Commonly you would call this with "
9386 "pc = 100 which expands the logical volume as much as possible, using all "
9387 "remaining free space in the volume group."
9388 msgstr ""
9389
9390 # type: =head2
9391 #: ../src/guestfs-actions.pod:3017
9392 msgid "guestfs_lvs"
9393 msgstr ""
9394
9395 # type: verbatim
9396 #: ../src/guestfs-actions.pod:3019
9397 #, no-wrap
9398 msgid ""
9399 " char **guestfs_lvs (guestfs_h *g);\n"
9400 "\n"
9401 msgstr ""
9402
9403 # type: textblock
9404 #: ../src/guestfs-actions.pod:3021 ../fish/guestfish-actions.pod:2353
9405 msgid ""
9406 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
9407 "(8)> command."
9408 msgstr ""
9409
9410 # type: textblock
9411 #: ../src/guestfs-actions.pod:3024 ../fish/guestfish-actions.pod:2356
9412 msgid ""
9413 "This returns a list of the logical volume device names (eg. C</dev/"
9414 "VolGroup00/LogVol00>)."
9415 msgstr ""
9416
9417 # type: textblock
9418 #: ../src/guestfs-actions.pod:3027
9419 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
9420 msgstr ""
9421
9422 # type: =head2
9423 #: ../src/guestfs-actions.pod:3033
9424 msgid "guestfs_lvs_full"
9425 msgstr ""
9426
9427 # type: verbatim
9428 #: ../src/guestfs-actions.pod:3035
9429 #, no-wrap
9430 msgid ""
9431 " struct guestfs_lvm_lv_list *guestfs_lvs_full (guestfs_h *g);\n"
9432 "\n"
9433 msgstr ""
9434
9435 # type: textblock
9436 #: ../src/guestfs-actions.pod:3037 ../fish/guestfish-actions.pod:2365
9437 msgid ""
9438 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
9439 "(8)> command.  The \"full\" version includes all fields."
9440 msgstr ""
9441
9442 # type: textblock
9443 #: ../src/guestfs-actions.pod:3040
9444 msgid ""
9445 "This function returns a C<struct guestfs_lvm_lv_list *> (see E<lt>guestfs-"
9446 "structs.hE<gt>), or NULL if there was an error.  I<The caller must call "
9447 "C<guestfs_free_lvm_lv_list> after use>."
9448 msgstr ""
9449
9450 # type: =head2
9451 #: ../src/guestfs-actions.pod:3045
9452 msgid "guestfs_lvuuid"
9453 msgstr ""
9454
9455 # type: verbatim
9456 #: ../src/guestfs-actions.pod:3047
9457 #, no-wrap
9458 msgid ""
9459 " char *guestfs_lvuuid (guestfs_h *g,\n"
9460 "\t\tconst char *device);\n"
9461 "\n"
9462 msgstr ""
9463
9464 # type: textblock
9465 #: ../src/guestfs-actions.pod:3050 ../fish/guestfish-actions.pod:2372
9466 msgid "This command returns the UUID of the LVM LV C<device>."
9467 msgstr ""
9468
9469 # type: =head2
9470 #: ../src/guestfs-actions.pod:3055
9471 msgid "guestfs_lxattrlist"
9472 msgstr ""
9473
9474 # type: verbatim
9475 #: ../src/guestfs-actions.pod:3057
9476 #, no-wrap
9477 msgid ""
9478 " struct guestfs_xattr_list *guestfs_lxattrlist (guestfs_h *g,\n"
9479 "\t\tconst char *path,\n"
9480 "\t\tchar *const *names);\n"
9481 "\n"
9482 msgstr ""
9483
9484 # type: textblock
9485 #: ../src/guestfs-actions.pod:3061 ../fish/guestfish-actions.pod:2378
9486 msgid ""
9487 "This call allows you to get the extended attributes of multiple files, where "
9488 "all files are in the directory C<path>.  C<names> is the list of files from "
9489 "this directory."
9490 msgstr ""
9491
9492 # type: textblock
9493 #: ../src/guestfs-actions.pod:3065 ../fish/guestfish-actions.pod:2382
9494 msgid ""
9495 "On return you get a flat list of xattr structs which must be interpreted "
9496 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
9497 "C<attrval> in this struct is zero-length to indicate there was an error "
9498 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
9499 "number (the number of following attributes for this file, which could be C<"
9500 "\"0\">).  Then after the first xattr struct are the zero or more attributes "
9501 "for the first named file.  This repeats for the second and subsequent files."
9502 msgstr ""
9503
9504 # type: textblock
9505 #: ../src/guestfs-actions.pod:3075
9506 msgid ""
9507 "This call is intended for programs that want to efficiently list a directory "
9508 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
9509 "a similarly efficient call for getting standard stats.  Very long directory "
9510 "listings might cause the protocol message size to be exceeded, causing this "
9511 "call to fail.  The caller must split up such requests into smaller groups of "
9512 "names."
9513 msgstr ""
9514
9515 # type: =head2
9516 #: ../src/guestfs-actions.pod:3088
9517 msgid "guestfs_mkdir"
9518 msgstr ""
9519
9520 # type: verbatim
9521 #: ../src/guestfs-actions.pod:3090
9522 #, no-wrap
9523 msgid ""
9524 " int guestfs_mkdir (guestfs_h *g,\n"
9525 "\t\tconst char *path);\n"
9526 "\n"
9527 msgstr ""
9528
9529 # type: textblock
9530 #: ../src/guestfs-actions.pod:3093 ../fish/guestfish-actions.pod:2404
9531 msgid "Create a directory named C<path>."
9532 msgstr ""
9533
9534 # type: =head2
9535 #: ../src/guestfs-actions.pod:3097
9536 msgid "guestfs_mkdir_mode"
9537 msgstr ""
9538
9539 # type: verbatim
9540 #: ../src/guestfs-actions.pod:3099
9541 #, no-wrap
9542 msgid ""
9543 " int guestfs_mkdir_mode (guestfs_h *g,\n"
9544 "\t\tconst char *path,\n"
9545 "\t\tint mode);\n"
9546 "\n"
9547 msgstr ""
9548
9549 # type: textblock
9550 #: ../src/guestfs-actions.pod:3103 ../fish/guestfish-actions.pod:2410
9551 msgid ""
9552 "This command creates a directory, setting the initial permissions of the "
9553 "directory to C<mode>."
9554 msgstr ""
9555
9556 # type: textblock
9557 #: ../src/guestfs-actions.pod:3106 ../fish/guestfish-actions.pod:2413
9558 msgid ""
9559 "For common Linux filesystems, the actual mode which is set will be C<mode & "
9560 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
9561 "other ways."
9562 msgstr ""
9563
9564 # type: textblock
9565 #: ../src/guestfs-actions.pod:3110
9566 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
9567 msgstr ""
9568
9569 # type: =head2
9570 #: ../src/guestfs-actions.pod:3114
9571 msgid "guestfs_mkdir_p"
9572 msgstr ""
9573
9574 # type: verbatim
9575 #: ../src/guestfs-actions.pod:3116
9576 #, no-wrap
9577 msgid ""
9578 " int guestfs_mkdir_p (guestfs_h *g,\n"
9579 "\t\tconst char *path);\n"
9580 "\n"
9581 msgstr ""
9582
9583 # type: textblock
9584 #: ../src/guestfs-actions.pod:3119 ../fish/guestfish-actions.pod:2423
9585 msgid ""
9586 "Create a directory named C<path>, creating any parent directories as "
9587 "necessary.  This is like the C<mkdir -p> shell command."
9588 msgstr ""
9589
9590 # type: =head2
9591 #: ../src/guestfs-actions.pod:3124
9592 msgid "guestfs_mkdtemp"
9593 msgstr ""
9594
9595 # type: verbatim
9596 #: ../src/guestfs-actions.pod:3126
9597 #, no-wrap
9598 msgid ""
9599 " char *guestfs_mkdtemp (guestfs_h *g,\n"
9600 "\t\tconst char *template);\n"
9601 "\n"
9602 msgstr ""
9603
9604 # type: textblock
9605 #: ../src/guestfs-actions.pod:3129 ../fish/guestfish-actions.pod:2430
9606 msgid ""
9607 "This command creates a temporary directory.  The C<template> parameter "
9608 "should be a full pathname for the temporary directory name with the final "
9609 "six characters being \"XXXXXX\"."
9610 msgstr ""
9611
9612 # type: textblock
9613 #: ../src/guestfs-actions.pod:3134 ../fish/guestfish-actions.pod:2435
9614 msgid ""
9615 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
9616 "being suitable for Windows filesystems."
9617 msgstr ""
9618
9619 # type: textblock
9620 #: ../src/guestfs-actions.pod:3137 ../fish/guestfish-actions.pod:2438
9621 msgid "The name of the temporary directory that was created is returned."
9622 msgstr ""
9623
9624 # type: textblock
9625 #: ../src/guestfs-actions.pod:3140 ../fish/guestfish-actions.pod:2441
9626 msgid "The temporary directory is created with mode 0700 and is owned by root."
9627 msgstr ""
9628
9629 # type: textblock
9630 #: ../src/guestfs-actions.pod:3143 ../fish/guestfish-actions.pod:2444
9631 msgid ""
9632 "The caller is responsible for deleting the temporary directory and its "
9633 "contents after use."
9634 msgstr ""
9635
9636 # type: textblock
9637 #: ../src/guestfs-actions.pod:3146 ../fish/guestfish-actions.pod:2447
9638 msgid "See also: L<mkdtemp(3)>"
9639 msgstr ""
9640
9641 # type: =head2
9642 #: ../src/guestfs-actions.pod:3151
9643 msgid "guestfs_mke2fs_J"
9644 msgstr ""
9645
9646 # type: verbatim
9647 #: ../src/guestfs-actions.pod:3153
9648 #, no-wrap
9649 msgid ""
9650 " int guestfs_mke2fs_J (guestfs_h *g,\n"
9651 "\t\tconst char *fstype,\n"
9652 "\t\tint blocksize,\n"
9653 "\t\tconst char *device,\n"
9654 "\t\tconst char *journal);\n"
9655 "\n"
9656 msgstr ""
9657
9658 # type: textblock
9659 #: ../src/guestfs-actions.pod:3159 ../fish/guestfish-actions.pod:2453
9660 msgid ""
9661 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
9662 "C<journal>.  It is equivalent to the command:"
9663 msgstr ""
9664
9665 # type: verbatim
9666 #: ../src/guestfs-actions.pod:3163 ../fish/guestfish-actions.pod:2457
9667 #, no-wrap
9668 msgid ""
9669 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
9670 "\n"
9671 msgstr ""
9672
9673 # type: textblock
9674 #: ../src/guestfs-actions.pod:3165
9675 msgid "See also C<guestfs_mke2journal>."
9676 msgstr ""
9677
9678 # type: =head2
9679 #: ../src/guestfs-actions.pod:3169
9680 msgid "guestfs_mke2fs_JL"
9681 msgstr ""
9682
9683 # type: verbatim
9684 #: ../src/guestfs-actions.pod:3171
9685 #, no-wrap
9686 msgid ""
9687 " int guestfs_mke2fs_JL (guestfs_h *g,\n"
9688 "\t\tconst char *fstype,\n"
9689 "\t\tint blocksize,\n"
9690 "\t\tconst char *device,\n"
9691 "\t\tconst char *label);\n"
9692 "\n"
9693 msgstr ""
9694
9695 # type: textblock
9696 #: ../src/guestfs-actions.pod:3177 ../fish/guestfish-actions.pod:2465
9697 msgid ""
9698 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
9699 "the journal labeled C<label>."
9700 msgstr ""
9701
9702 # type: textblock
9703 #: ../src/guestfs-actions.pod:3180
9704 msgid "See also C<guestfs_mke2journal_L>."
9705 msgstr ""
9706
9707 # type: =head2
9708 #: ../src/guestfs-actions.pod:3184
9709 msgid "guestfs_mke2fs_JU"
9710 msgstr ""
9711
9712 # type: verbatim
9713 #: ../src/guestfs-actions.pod:3186
9714 #, no-wrap
9715 msgid ""
9716 " int guestfs_mke2fs_JU (guestfs_h *g,\n"
9717 "\t\tconst char *fstype,\n"
9718 "\t\tint blocksize,\n"
9719 "\t\tconst char *device,\n"
9720 "\t\tconst char *uuid);\n"
9721 "\n"
9722 msgstr ""
9723
9724 # type: textblock
9725 #: ../src/guestfs-actions.pod:3192 ../fish/guestfish-actions.pod:2474
9726 msgid ""
9727 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
9728 "the journal with UUID C<uuid>."
9729 msgstr ""
9730
9731 # type: textblock
9732 #: ../src/guestfs-actions.pod:3195
9733 msgid "See also C<guestfs_mke2journal_U>."
9734 msgstr ""
9735
9736 # type: =head2
9737 #: ../src/guestfs-actions.pod:3199
9738 msgid "guestfs_mke2journal"
9739 msgstr ""
9740
9741 # type: verbatim
9742 #: ../src/guestfs-actions.pod:3201
9743 #, no-wrap
9744 msgid ""
9745 " int guestfs_mke2journal (guestfs_h *g,\n"
9746 "\t\tint blocksize,\n"
9747 "\t\tconst char *device);\n"
9748 "\n"
9749 msgstr ""
9750
9751 # type: textblock
9752 #: ../src/guestfs-actions.pod:3205 ../fish/guestfish-actions.pod:2483
9753 msgid ""
9754 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
9755 "command:"
9756 msgstr ""
9757
9758 # type: verbatim
9759 #: ../src/guestfs-actions.pod:3208 ../fish/guestfish-actions.pod:2486
9760 #, no-wrap
9761 msgid ""
9762 " mke2fs -O journal_dev -b blocksize device\n"
9763 "\n"
9764 msgstr ""
9765
9766 # type: =head2
9767 #: ../src/guestfs-actions.pod:3212
9768 msgid "guestfs_mke2journal_L"
9769 msgstr ""
9770
9771 # type: verbatim
9772 #: ../src/guestfs-actions.pod:3214
9773 #, no-wrap
9774 msgid ""
9775 " int guestfs_mke2journal_L (guestfs_h *g,\n"
9776 "\t\tint blocksize,\n"
9777 "\t\tconst char *label,\n"
9778 "\t\tconst char *device);\n"
9779 "\n"
9780 msgstr ""
9781
9782 # type: textblock
9783 #: ../src/guestfs-actions.pod:3219 ../fish/guestfish-actions.pod:2492
9784 msgid "This creates an ext2 external journal on C<device> with label C<label>."
9785 msgstr ""
9786
9787 # type: =head2
9788 #: ../src/guestfs-actions.pod:3223
9789 msgid "guestfs_mke2journal_U"
9790 msgstr ""
9791
9792 # type: verbatim
9793 #: ../src/guestfs-actions.pod:3225
9794 #, no-wrap
9795 msgid ""
9796 " int guestfs_mke2journal_U (guestfs_h *g,\n"
9797 "\t\tint blocksize,\n"
9798 "\t\tconst char *uuid,\n"
9799 "\t\tconst char *device);\n"
9800 "\n"
9801 msgstr ""
9802
9803 # type: textblock
9804 #: ../src/guestfs-actions.pod:3230 ../fish/guestfish-actions.pod:2498
9805 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
9806 msgstr ""
9807
9808 # type: =head2
9809 #: ../src/guestfs-actions.pod:3234
9810 msgid "guestfs_mkfifo"
9811 msgstr ""
9812
9813 # type: verbatim
9814 #: ../src/guestfs-actions.pod:3236
9815 #, no-wrap
9816 msgid ""
9817 " int guestfs_mkfifo (guestfs_h *g,\n"
9818 "\t\tint mode,\n"
9819 "\t\tconst char *path);\n"
9820 "\n"
9821 msgstr ""
9822
9823 # type: textblock
9824 #: ../src/guestfs-actions.pod:3240
9825 msgid ""
9826 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
9827 "is just a convenient wrapper around C<guestfs_mknod>."
9828 msgstr ""
9829
9830 # type: =head2
9831 #: ../src/guestfs-actions.pod:3248
9832 msgid "guestfs_mkfs"
9833 msgstr ""
9834
9835 # type: verbatim
9836 #: ../src/guestfs-actions.pod:3250
9837 #, no-wrap
9838 msgid ""
9839 " int guestfs_mkfs (guestfs_h *g,\n"
9840 "\t\tconst char *fstype,\n"
9841 "\t\tconst char *device);\n"
9842 "\n"
9843 msgstr ""
9844
9845 # type: textblock
9846 #: ../src/guestfs-actions.pod:3254 ../fish/guestfish-actions.pod:2514
9847 msgid ""
9848 "This creates a filesystem on C<device> (usually a partition or LVM logical "
9849 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
9850 msgstr ""
9851
9852 # type: =head2
9853 #: ../src/guestfs-actions.pod:3260
9854 msgid "guestfs_mkfs_b"
9855 msgstr ""
9856
9857 # type: verbatim
9858 #: ../src/guestfs-actions.pod:3262
9859 #, no-wrap
9860 msgid ""
9861 " int guestfs_mkfs_b (guestfs_h *g,\n"
9862 "\t\tconst char *fstype,\n"
9863 "\t\tint blocksize,\n"
9864 "\t\tconst char *device);\n"
9865 "\n"
9866 msgstr ""
9867
9868 # type: textblock
9869 #: ../src/guestfs-actions.pod:3267
9870 msgid ""
9871 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
9872 "block size of the resulting filesystem.  Supported block sizes depend on the "
9873 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
9874 msgstr ""
9875
9876 # type: textblock
9877 #: ../src/guestfs-actions.pod:3272 ../fish/guestfish-actions.pod:2527
9878 msgid ""
9879 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
9880 "cluster size."
9881 msgstr ""
9882
9883 # type: =head2
9884 #: ../src/guestfs-actions.pod:3277
9885 msgid "guestfs_mkmountpoint"
9886 msgstr ""
9887
9888 # type: verbatim
9889 #: ../src/guestfs-actions.pod:3279
9890 #, no-wrap
9891 msgid ""
9892 " int guestfs_mkmountpoint (guestfs_h *g,\n"
9893 "\t\tconst char *exemptpath);\n"
9894 "\n"
9895 msgstr ""
9896
9897 # type: textblock
9898 #: ../src/guestfs-actions.pod:3282
9899 msgid ""
9900 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
9901 "that can be used to create extra mountpoints before mounting the first "
9902 "filesystem."
9903 msgstr ""
9904
9905 # type: textblock
9906 #: ../src/guestfs-actions.pod:3286 ../fish/guestfish-actions.pod:2538
9907 msgid ""
9908 "These calls are I<only> necessary in some very limited circumstances, mainly "
9909 "the case where you want to mount a mix of unrelated and/or read-only "
9910 "filesystems together."
9911 msgstr ""
9912
9913 # type: textblock
9914 #: ../src/guestfs-actions.pod:3290 ../fish/guestfish-actions.pod:2542
9915 msgid ""
9916 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
9917 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
9918 "inside that.  You can unpack this as follows in guestfish:"
9919 msgstr ""
9920
9921 # type: verbatim
9922 #: ../src/guestfs-actions.pod:3295 ../fish/guestfish-actions.pod:2547
9923 #, no-wrap
9924 msgid ""
9925 " add-ro Fedora-11-i686-Live.iso\n"
9926 " run\n"
9927 " mkmountpoint /cd\n"
9928 " mkmountpoint /squash\n"
9929 " mkmountpoint /ext3\n"
9930 " mount /dev/sda /cd\n"
9931 " mount-loop /cd/LiveOS/squashfs.img /squash\n"
9932 " mount-loop /squash/LiveOS/ext3fs.img /ext3\n"
9933 "\n"
9934 msgstr ""
9935
9936 # type: textblock
9937 #: ../src/guestfs-actions.pod:3304 ../fish/guestfish-actions.pod:2556
9938 msgid "The inner filesystem is now unpacked under the /ext3 mountpoint."
9939 msgstr ""
9940
9941 # type: =head2
9942 #: ../src/guestfs-actions.pod:3308
9943 msgid "guestfs_mknod"
9944 msgstr ""
9945
9946 # type: verbatim
9947 #: ../src/guestfs-actions.pod:3310
9948 #, no-wrap
9949 msgid ""
9950 " int guestfs_mknod (guestfs_h *g,\n"
9951 "\t\tint mode,\n"
9952 "\t\tint devmajor,\n"
9953 "\t\tint devminor,\n"
9954 "\t\tconst char *path);\n"
9955 "\n"
9956 msgstr ""
9957
9958 # type: textblock
9959 #: ../src/guestfs-actions.pod:3316 ../fish/guestfish-actions.pod:2562
9960 msgid ""
9961 "This call creates block or character special devices, or named pipes (FIFOs)."
9962 msgstr ""
9963
9964 # type: textblock
9965 #: ../src/guestfs-actions.pod:3319 ../fish/guestfish-actions.pod:2565
9966 msgid ""
9967 "The C<mode> parameter should be the mode, using the standard constants.  "
9968 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
9969 "used when creating block and character special devices."
9970 msgstr ""
9971
9972 # type: textblock
9973 #: ../src/guestfs-actions.pod:3324
9974 msgid ""
9975 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
9976 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
9977 "regular file).  These constants are available in the standard Linux header "
9978 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
9979 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
9980 "the appropriate constant for you."
9981 msgstr ""
9982
9983 # type: =head2
9984 #: ../src/guestfs-actions.pod:3336
9985 msgid "guestfs_mknod_b"
9986 msgstr ""
9987
9988 # type: verbatim
9989 #: ../src/guestfs-actions.pod:3338
9990 #, no-wrap
9991 msgid ""
9992 " int guestfs_mknod_b (guestfs_h *g,\n"
9993 "\t\tint mode,\n"
9994 "\t\tint devmajor,\n"
9995 "\t\tint devminor,\n"
9996 "\t\tconst char *path);\n"
9997 "\n"
9998 msgstr ""
9999
10000 # type: textblock
10001 #: ../src/guestfs-actions.pod:3344
10002 msgid ""
10003 "This call creates a block device node called C<path> with mode C<mode> and "
10004 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
10005 "wrapper around C<guestfs_mknod>."
10006 msgstr ""
10007
10008 # type: =head2
10009 #: ../src/guestfs-actions.pod:3352
10010 msgid "guestfs_mknod_c"
10011 msgstr ""
10012
10013 # type: verbatim
10014 #: ../src/guestfs-actions.pod:3354
10015 #, no-wrap
10016 msgid ""
10017 " int guestfs_mknod_c (guestfs_h *g,\n"
10018 "\t\tint mode,\n"
10019 "\t\tint devmajor,\n"
10020 "\t\tint devminor,\n"
10021 "\t\tconst char *path);\n"
10022 "\n"
10023 msgstr ""
10024
10025 # type: textblock
10026 #: ../src/guestfs-actions.pod:3360
10027 msgid ""
10028 "This call creates a char device node called C<path> with mode C<mode> and "
10029 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
10030 "wrapper around C<guestfs_mknod>."
10031 msgstr ""
10032
10033 # type: =head2
10034 #: ../src/guestfs-actions.pod:3368
10035 msgid "guestfs_mkswap"
10036 msgstr ""
10037
10038 # type: verbatim
10039 #: ../src/guestfs-actions.pod:3370
10040 #, no-wrap
10041 msgid ""
10042 " int guestfs_mkswap (guestfs_h *g,\n"
10043 "\t\tconst char *device);\n"
10044 "\n"
10045 msgstr ""
10046
10047 # type: textblock
10048 #: ../src/guestfs-actions.pod:3373 ../fish/guestfish-actions.pod:2604
10049 msgid "Create a swap partition on C<device>."
10050 msgstr ""
10051
10052 # type: =head2
10053 #: ../src/guestfs-actions.pod:3377
10054 msgid "guestfs_mkswap_L"
10055 msgstr ""
10056
10057 # type: verbatim
10058 #: ../src/guestfs-actions.pod:3379
10059 #, no-wrap
10060 msgid ""
10061 " int guestfs_mkswap_L (guestfs_h *g,\n"
10062 "\t\tconst char *label,\n"
10063 "\t\tconst char *device);\n"
10064 "\n"
10065 msgstr ""
10066
10067 # type: textblock
10068 #: ../src/guestfs-actions.pod:3383 ../fish/guestfish-actions.pod:2610
10069 msgid "Create a swap partition on C<device> with label C<label>."
10070 msgstr ""
10071
10072 # type: textblock
10073 #: ../src/guestfs-actions.pod:3385 ../fish/guestfish-actions.pod:2612
10074 msgid ""
10075 "Note that you cannot attach a swap label to a block device (eg. C</dev/"
10076 "sda>), just to a partition.  This appears to be a limitation of the kernel "
10077 "or swap tools."
10078 msgstr ""
10079
10080 # type: =head2
10081 #: ../src/guestfs-actions.pod:3391
10082 msgid "guestfs_mkswap_U"
10083 msgstr ""
10084
10085 # type: verbatim
10086 #: ../src/guestfs-actions.pod:3393
10087 #, no-wrap
10088 msgid ""
10089 " int guestfs_mkswap_U (guestfs_h *g,\n"
10090 "\t\tconst char *uuid,\n"
10091 "\t\tconst char *device);\n"
10092 "\n"
10093 msgstr ""
10094
10095 # type: textblock
10096 #: ../src/guestfs-actions.pod:3397 ../fish/guestfish-actions.pod:2620
10097 msgid "Create a swap partition on C<device> with UUID C<uuid>."
10098 msgstr ""
10099
10100 # type: =head2
10101 #: ../src/guestfs-actions.pod:3401
10102 msgid "guestfs_mkswap_file"
10103 msgstr ""
10104
10105 # type: verbatim
10106 #: ../src/guestfs-actions.pod:3403
10107 #, no-wrap
10108 msgid ""
10109 " int guestfs_mkswap_file (guestfs_h *g,\n"
10110 "\t\tconst char *path);\n"
10111 "\n"
10112 msgstr ""
10113
10114 # type: textblock
10115 #: ../src/guestfs-actions.pod:3406 ../fish/guestfish-actions.pod:2626
10116 msgid "Create a swap file."
10117 msgstr ""
10118
10119 # type: textblock
10120 #: ../src/guestfs-actions.pod:3408
10121 msgid ""
10122 "This command just writes a swap file signature to an existing file.  To "
10123 "create the file itself, use something like C<guestfs_fallocate>."
10124 msgstr ""
10125
10126 # type: =head2
10127 #: ../src/guestfs-actions.pod:3413
10128 msgid "guestfs_modprobe"
10129 msgstr ""
10130
10131 # type: verbatim
10132 #: ../src/guestfs-actions.pod:3415
10133 #, no-wrap
10134 msgid ""
10135 " int guestfs_modprobe (guestfs_h *g,\n"
10136 "\t\tconst char *modulename);\n"
10137 "\n"
10138 msgstr ""
10139
10140 # type: textblock
10141 #: ../src/guestfs-actions.pod:3418 ../fish/guestfish-actions.pod:2635
10142 msgid "This loads a kernel module in the appliance."
10143 msgstr ""
10144
10145 # type: textblock
10146 #: ../src/guestfs-actions.pod:3420 ../fish/guestfish-actions.pod:2637
10147 msgid ""
10148 "The kernel module must have been whitelisted when libguestfs was built (see "
10149 "C<appliance/kmod.whitelist.in> in the source)."
10150 msgstr ""
10151
10152 # type: =head2
10153 #: ../src/guestfs-actions.pod:3425
10154 msgid "guestfs_mount"
10155 msgstr ""
10156
10157 # type: verbatim
10158 #: ../src/guestfs-actions.pod:3427
10159 #, no-wrap
10160 msgid ""
10161 " int guestfs_mount (guestfs_h *g,\n"
10162 "\t\tconst char *device,\n"
10163 "\t\tconst char *mountpoint);\n"
10164 "\n"
10165 msgstr ""
10166
10167 # type: textblock
10168 #: ../src/guestfs-actions.pod:3431 ../fish/guestfish-actions.pod:2644
10169 msgid ""
10170 "Mount a guest disk at a position in the filesystem.  Block devices are named "
10171 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
10172 "those block devices contain partitions, they will have the usual names (eg. "
10173 "C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
10174 msgstr ""
10175
10176 # type: textblock
10177 #: ../src/guestfs-actions.pod:3437 ../fish/guestfish-actions.pod:2650
10178 msgid ""
10179 "The rules are the same as for L<mount(2)>: A filesystem must first be "
10180 "mounted on C</> before others can be mounted.  Other filesystems can only be "
10181 "mounted on directories which already exist."
10182 msgstr ""
10183
10184 # type: textblock
10185 #: ../src/guestfs-actions.pod:3442 ../fish/guestfish-actions.pod:2655
10186 msgid ""
10187 "The mounted filesystem is writable, if we have sufficient permissions on the "
10188 "underlying device."
10189 msgstr ""
10190
10191 # type: textblock
10192 #: ../src/guestfs-actions.pod:3445
10193 msgid ""
10194 "B<Important note:> When you use this call, the filesystem options C<sync> "
10195 "and C<noatime> are set implicitly.  This was originally done because we "
10196 "thought it would improve reliability, but it turns out that I<-o sync> has a "
10197 "very large negative performance impact and negligible effect on "
10198 "reliability.  Therefore we recommend that you avoid using C<guestfs_mount> "
10199 "in any code that needs performance, and instead use C<guestfs_mount_options> "
10200 "(use an empty string for the first parameter if you don't want any options)."
10201 msgstr ""
10202
10203 # type: =head2
10204 #: ../src/guestfs-actions.pod:3457
10205 msgid "guestfs_mount_loop"
10206 msgstr ""
10207
10208 # type: verbatim
10209 #: ../src/guestfs-actions.pod:3459
10210 #, no-wrap
10211 msgid ""
10212 " int guestfs_mount_loop (guestfs_h *g,\n"
10213 "\t\tconst char *file,\n"
10214 "\t\tconst char *mountpoint);\n"
10215 "\n"
10216 msgstr ""
10217
10218 # type: textblock
10219 #: ../src/guestfs-actions.pod:3463 ../fish/guestfish-actions.pod:2672
10220 msgid ""
10221 "This command lets you mount C<file> (a filesystem image in a file) on a "
10222 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
10223 "mountpoint>."
10224 msgstr ""
10225
10226 # type: =head2
10227 #: ../src/guestfs-actions.pod:3469
10228 msgid "guestfs_mount_options"
10229 msgstr ""
10230
10231 # type: verbatim
10232 #: ../src/guestfs-actions.pod:3471
10233 #, no-wrap
10234 msgid ""
10235 " int guestfs_mount_options (guestfs_h *g,\n"
10236 "\t\tconst char *options,\n"
10237 "\t\tconst char *device,\n"
10238 "\t\tconst char *mountpoint);\n"
10239 "\n"
10240 msgstr ""
10241
10242 # type: textblock
10243 #: ../src/guestfs-actions.pod:3476
10244 msgid ""
10245 "This is the same as the C<guestfs_mount> command, but it allows you to set "
10246 "the mount options as for the L<mount(8)> I<-o> flag."
10247 msgstr ""
10248
10249 # type: textblock
10250 #: ../src/guestfs-actions.pod:3480 ../fish/guestfish-actions.pod:2684
10251 msgid ""
10252 "If the C<options> parameter is an empty string, then no options are passed "
10253 "(all options default to whatever the filesystem uses)."
10254 msgstr ""
10255
10256 # type: =head2
10257 #: ../src/guestfs-actions.pod:3486
10258 msgid "guestfs_mount_ro"
10259 msgstr ""
10260
10261 # type: verbatim
10262 #: ../src/guestfs-actions.pod:3488
10263 #, no-wrap
10264 msgid ""
10265 " int guestfs_mount_ro (guestfs_h *g,\n"
10266 "\t\tconst char *device,\n"
10267 "\t\tconst char *mountpoint);\n"
10268 "\n"
10269 msgstr ""
10270
10271 # type: textblock
10272 #: ../src/guestfs-actions.pod:3492
10273 msgid ""
10274 "This is the same as the C<guestfs_mount> command, but it mounts the "
10275 "filesystem with the read-only (I<-o ro>) flag."
10276 msgstr ""
10277
10278 # type: =head2
10279 #: ../src/guestfs-actions.pod:3497
10280 msgid "guestfs_mount_vfs"
10281 msgstr ""
10282
10283 # type: verbatim
10284 #: ../src/guestfs-actions.pod:3499
10285 #, no-wrap
10286 msgid ""
10287 " int guestfs_mount_vfs (guestfs_h *g,\n"
10288 "\t\tconst char *options,\n"
10289 "\t\tconst char *vfstype,\n"
10290 "\t\tconst char *device,\n"
10291 "\t\tconst char *mountpoint);\n"
10292 "\n"
10293 msgstr ""
10294
10295 # type: textblock
10296 #: ../src/guestfs-actions.pod:3505
10297 msgid ""
10298 "This is the same as the C<guestfs_mount> command, but it allows you to set "
10299 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
10300 "t> flags."
10301 msgstr ""
10302
10303 # type: =head2
10304 #: ../src/guestfs-actions.pod:3511
10305 msgid "guestfs_mountpoints"
10306 msgstr ""
10307
10308 # type: verbatim
10309 #: ../src/guestfs-actions.pod:3513
10310 #, no-wrap
10311 msgid ""
10312 " char **guestfs_mountpoints (guestfs_h *g);\n"
10313 "\n"
10314 msgstr ""
10315
10316 # type: textblock
10317 #: ../src/guestfs-actions.pod:3515
10318 msgid ""
10319 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
10320 "devices.  This one returns a hash table (map) of device name to directory "
10321 "where the device is mounted."
10322 msgstr ""
10323
10324 # type: =head2
10325 #: ../src/guestfs-actions.pod:3525
10326 msgid "guestfs_mounts"
10327 msgstr ""
10328
10329 # type: verbatim
10330 #: ../src/guestfs-actions.pod:3527
10331 #, no-wrap
10332 msgid ""
10333 " char **guestfs_mounts (guestfs_h *g);\n"
10334 "\n"
10335 msgstr ""
10336
10337 # type: textblock
10338 #: ../src/guestfs-actions.pod:3529 ../fish/guestfish-actions.pod:2715
10339 msgid ""
10340 "This returns the list of currently mounted filesystems.  It returns the list "
10341 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
10342 msgstr ""
10343
10344 # type: textblock
10345 #: ../src/guestfs-actions.pod:3532 ../fish/guestfish-actions.pod:2718
10346 msgid "Some internal mounts are not shown."
10347 msgstr ""
10348
10349 # type: textblock
10350 #: ../src/guestfs-actions.pod:3534
10351 msgid "See also: C<guestfs_mountpoints>"
10352 msgstr ""
10353
10354 # type: =head2
10355 #: ../src/guestfs-actions.pod:3540
10356 msgid "guestfs_mv"
10357 msgstr ""
10358
10359 # type: verbatim
10360 #: ../src/guestfs-actions.pod:3542
10361 #, no-wrap
10362 msgid ""
10363 " int guestfs_mv (guestfs_h *g,\n"
10364 "\t\tconst char *src,\n"
10365 "\t\tconst char *dest);\n"
10366 "\n"
10367 msgstr ""
10368
10369 # type: textblock
10370 #: ../src/guestfs-actions.pod:3546 ../fish/guestfish-actions.pod:2726
10371 msgid ""
10372 "This moves a file from C<src> to C<dest> where C<dest> is either a "
10373 "destination filename or destination directory."
10374 msgstr ""
10375
10376 # type: =head2
10377 #: ../src/guestfs-actions.pod:3551
10378 msgid "guestfs_ntfs_3g_probe"
10379 msgstr ""
10380
10381 # type: verbatim
10382 #: ../src/guestfs-actions.pod:3553
10383 #, no-wrap
10384 msgid ""
10385 " int guestfs_ntfs_3g_probe (guestfs_h *g,\n"
10386 "\t\tint rw,\n"
10387 "\t\tconst char *device);\n"
10388 "\n"
10389 msgstr ""
10390
10391 # type: textblock
10392 #: ../src/guestfs-actions.pod:3557 ../fish/guestfish-actions.pod:2733
10393 msgid ""
10394 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
10395 "C<device> for mountability.  (Not all NTFS volumes can be mounted read-"
10396 "write, and some cannot be mounted at all)."
10397 msgstr ""
10398
10399 # type: textblock
10400 #: ../src/guestfs-actions.pod:3561 ../fish/guestfish-actions.pod:2737
10401 msgid ""
10402 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
10403 "can be mounted read-write.  Set it to false if you want to test if the "
10404 "volume can be mounted read-only."
10405 msgstr ""
10406
10407 # type: textblock
10408 #: ../src/guestfs-actions.pod:3565 ../fish/guestfish-actions.pod:2741
10409 msgid ""
10410 "The return value is an integer which C<0> if the operation would succeed, or "
10411 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
10412 msgstr ""
10413
10414 # type: =head2
10415 #: ../src/guestfs-actions.pod:3571
10416 msgid "guestfs_ntfsresize"
10417 msgstr ""
10418
10419 # type: verbatim
10420 #: ../src/guestfs-actions.pod:3573
10421 #, no-wrap
10422 msgid ""
10423 " int guestfs_ntfsresize (guestfs_h *g,\n"
10424 "\t\tconst char *device);\n"
10425 "\n"
10426 msgstr ""
10427
10428 # type: textblock
10429 #: ../src/guestfs-actions.pod:3576 ../fish/guestfish-actions.pod:2749
10430 msgid ""
10431 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
10432 "size of the underlying device.  See also L<ntfsresize(8)>."
10433 msgstr ""
10434
10435 # type: =head2
10436 #: ../src/guestfs-actions.pod:3582
10437 msgid "guestfs_ntfsresize_size"
10438 msgstr ""
10439
10440 # type: verbatim
10441 #: ../src/guestfs-actions.pod:3584
10442 #, no-wrap
10443 msgid ""
10444 " int guestfs_ntfsresize_size (guestfs_h *g,\n"
10445 "\t\tconst char *device,\n"
10446 "\t\tint64_t size);\n"
10447 "\n"
10448 msgstr ""
10449
10450 # type: textblock
10451 #: ../src/guestfs-actions.pod:3588
10452 msgid ""
10453 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
10454 "to specify the new size (in bytes) explicitly."
10455 msgstr ""
10456
10457 # type: =head2
10458 #: ../src/guestfs-actions.pod:3593
10459 msgid "guestfs_part_add"
10460 msgstr ""
10461
10462 # type: verbatim
10463 #: ../src/guestfs-actions.pod:3595
10464 #, no-wrap
10465 msgid ""
10466 " int guestfs_part_add (guestfs_h *g,\n"
10467 "\t\tconst char *device,\n"
10468 "\t\tconst char *prlogex,\n"
10469 "\t\tint64_t startsect,\n"
10470 "\t\tint64_t endsect);\n"
10471 "\n"
10472 msgstr ""
10473
10474 # type: textblock
10475 #: ../src/guestfs-actions.pod:3601
10476 msgid ""
10477 "This command adds a partition to C<device>.  If there is no partition table "
10478 "on the device, call C<guestfs_part_init> first."
10479 msgstr ""
10480
10481 # type: textblock
10482 #: ../src/guestfs-actions.pod:3604 ../fish/guestfish-actions.pod:2767
10483 msgid ""
10484 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
10485 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
10486 "C<logical>) and C<e> (or C<extended>) partition types."
10487 msgstr ""
10488
10489 # type: textblock
10490 #: ../src/guestfs-actions.pod:3609 ../fish/guestfish-actions.pod:2772
10491 msgid ""
10492 "C<startsect> and C<endsect> are the start and end of the partition in "
10493 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
10494 "from the end of the disk (C<-1> is the last sector)."
10495 msgstr ""
10496
10497 # type: textblock
10498 #: ../src/guestfs-actions.pod:3613
10499 msgid ""
10500 "Creating a partition which covers the whole disk is not so easy.  Use "
10501 "C<guestfs_part_disk> to do that."
10502 msgstr ""
10503
10504 # type: =head2
10505 #: ../src/guestfs-actions.pod:3618
10506 msgid "guestfs_part_del"
10507 msgstr ""
10508
10509 # type: verbatim
10510 #: ../src/guestfs-actions.pod:3620
10511 #, no-wrap
10512 msgid ""
10513 " int guestfs_part_del (guestfs_h *g,\n"
10514 "\t\tconst char *device,\n"
10515 "\t\tint partnum);\n"
10516 "\n"
10517 msgstr ""
10518
10519 # type: textblock
10520 #: ../src/guestfs-actions.pod:3624 ../fish/guestfish-actions.pod:2783
10521 msgid "This command deletes the partition numbered C<partnum> on C<device>."
10522 msgstr ""
10523
10524 # type: textblock
10525 #: ../src/guestfs-actions.pod:3626 ../fish/guestfish-actions.pod:2785
10526 msgid ""
10527 "Note that in the case of MBR partitioning, deleting an extended partition "
10528 "also deletes any logical partitions it contains."
10529 msgstr ""
10530
10531 # type: =head2
10532 #: ../src/guestfs-actions.pod:3632
10533 msgid "guestfs_part_disk"
10534 msgstr ""
10535
10536 # type: verbatim
10537 #: ../src/guestfs-actions.pod:3634
10538 #, no-wrap
10539 msgid ""
10540 " int guestfs_part_disk (guestfs_h *g,\n"
10541 "\t\tconst char *device,\n"
10542 "\t\tconst char *parttype);\n"
10543 "\n"
10544 msgstr ""
10545
10546 # type: textblock
10547 #: ../src/guestfs-actions.pod:3638
10548 msgid ""
10549 "This command is simply a combination of C<guestfs_part_init> followed by "
10550 "C<guestfs_part_add> to create a single primary partition covering the whole "
10551 "disk."
10552 msgstr ""
10553
10554 # type: textblock
10555 #: ../src/guestfs-actions.pod:3642
10556 msgid ""
10557 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
10558 "possible values are described in C<guestfs_part_init>."
10559 msgstr ""
10560
10561 # type: =head2
10562 #: ../src/guestfs-actions.pod:3650
10563 msgid "guestfs_part_get_bootable"
10564 msgstr ""
10565
10566 # type: verbatim
10567 #: ../src/guestfs-actions.pod:3652
10568 #, no-wrap
10569 msgid ""
10570 " int guestfs_part_get_bootable (guestfs_h *g,\n"
10571 "\t\tconst char *device,\n"
10572 "\t\tint partnum);\n"
10573 "\n"
10574 msgstr ""
10575
10576 # type: textblock
10577 #: ../src/guestfs-actions.pod:3656 ../fish/guestfish-actions.pod:2807
10578 msgid ""
10579 "This command returns true if the partition C<partnum> on C<device> has the "
10580 "bootable flag set."
10581 msgstr ""
10582
10583 # type: textblock
10584 #: ../src/guestfs-actions.pod:3659
10585 msgid "See also C<guestfs_part_set_bootable>."
10586 msgstr ""
10587
10588 # type: =head2
10589 #: ../src/guestfs-actions.pod:3663
10590 msgid "guestfs_part_get_mbr_id"
10591 msgstr ""
10592
10593 # type: verbatim
10594 #: ../src/guestfs-actions.pod:3665
10595 #, no-wrap
10596 msgid ""
10597 " int guestfs_part_get_mbr_id (guestfs_h *g,\n"
10598 "\t\tconst char *device,\n"
10599 "\t\tint partnum);\n"
10600 "\n"
10601 msgstr ""
10602
10603 # type: textblock
10604 #: ../src/guestfs-actions.pod:3669 ../fish/guestfish-actions.pod:2816
10605 msgid ""
10606 "Returns the MBR type byte (also known as the ID byte) from the numbered "
10607 "partition C<partnum>."
10608 msgstr ""
10609
10610 # type: textblock
10611 #: ../src/guestfs-actions.pod:3672 ../src/guestfs-actions.pod:3834
10612 msgid ""
10613 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
10614 "undefined results for other partition table types (see "
10615 "C<guestfs_part_get_parttype>)."
10616 msgstr ""
10617
10618 # type: =head2
10619 #: ../src/guestfs-actions.pod:3678
10620 msgid "guestfs_part_get_parttype"
10621 msgstr ""
10622
10623 # type: verbatim
10624 #: ../src/guestfs-actions.pod:3680
10625 #, no-wrap
10626 msgid ""
10627 " char *guestfs_part_get_parttype (guestfs_h *g,\n"
10628 "\t\tconst char *device);\n"
10629 "\n"
10630 msgstr ""
10631
10632 # type: textblock
10633 #: ../src/guestfs-actions.pod:3683 ../fish/guestfish-actions.pod:2827
10634 msgid ""
10635 "This command examines the partition table on C<device> and returns the "
10636 "partition table type (format) being used."
10637 msgstr ""
10638
10639 # type: textblock
10640 #: ../src/guestfs-actions.pod:3686
10641 msgid ""
10642 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
10643 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
10644 "possible, although unusual.  See C<guestfs_part_init> for a full list."
10645 msgstr ""
10646
10647 # type: =head2
10648 #: ../src/guestfs-actions.pod:3694
10649 msgid "guestfs_part_init"
10650 msgstr ""
10651
10652 # type: verbatim
10653 #: ../src/guestfs-actions.pod:3696
10654 #, no-wrap
10655 msgid ""
10656 " int guestfs_part_init (guestfs_h *g,\n"
10657 "\t\tconst char *device,\n"
10658 "\t\tconst char *parttype);\n"
10659 "\n"
10660 msgstr ""
10661
10662 # type: textblock
10663 #: ../src/guestfs-actions.pod:3700 ../fish/guestfish-actions.pod:2839
10664 msgid ""
10665 "This creates an empty partition table on C<device> of one of the partition "
10666 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
10667 "(for large disks)."
10668 msgstr ""
10669
10670 # type: textblock
10671 #: ../src/guestfs-actions.pod:3704
10672 msgid ""
10673 "Initially there are no partitions.  Following this, you should call "
10674 "C<guestfs_part_add> for each partition required."
10675 msgstr ""
10676
10677 # type: textblock
10678 #: ../src/guestfs-actions.pod:3707 ../fish/guestfish-actions.pod:2846
10679 msgid "Possible values for C<parttype> are:"
10680 msgstr ""
10681
10682 # type: =item
10683 #: ../src/guestfs-actions.pod:3711 ../fish/guestfish-actions.pod:2850
10684 msgid "B<efi> | B<gpt>"
10685 msgstr ""
10686
10687 # type: textblock
10688 #: ../src/guestfs-actions.pod:3713 ../fish/guestfish-actions.pod:2852
10689 msgid "Intel EFI / GPT partition table."
10690 msgstr ""
10691
10692 # type: textblock
10693 #: ../src/guestfs-actions.pod:3715 ../fish/guestfish-actions.pod:2854
10694 msgid ""
10695 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
10696 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
10697 "the C<mbr> format."
10698 msgstr ""
10699
10700 # type: =item
10701 #: ../src/guestfs-actions.pod:3719 ../fish/guestfish-actions.pod:2858
10702 msgid "B<mbr> | B<msdos>"
10703 msgstr ""
10704
10705 # type: textblock
10706 #: ../src/guestfs-actions.pod:3721 ../fish/guestfish-actions.pod:2860
10707 msgid ""
10708 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
10709 "Windows.  This partition type will B<only> work for device sizes up to 2 "
10710 "TB.  For large disks we recommend using C<gpt>."
10711 msgstr ""
10712
10713 # type: textblock
10714 #: ../src/guestfs-actions.pod:3728 ../fish/guestfish-actions.pod:2867
10715 msgid ""
10716 "Other partition table types that may work but are not supported include:"
10717 msgstr ""
10718
10719 # type: =item
10720 #: ../src/guestfs-actions.pod:3733 ../fish/guestfish-actions.pod:2872
10721 msgid "B<aix>"
10722 msgstr ""
10723
10724 # type: textblock
10725 #: ../src/guestfs-actions.pod:3735 ../fish/guestfish-actions.pod:2874
10726 msgid "AIX disk labels."
10727 msgstr ""
10728
10729 # type: =item
10730 #: ../src/guestfs-actions.pod:3737 ../fish/guestfish-actions.pod:2876
10731 msgid "B<amiga> | B<rdb>"
10732 msgstr ""
10733
10734 # type: textblock
10735 #: ../src/guestfs-actions.pod:3739 ../fish/guestfish-actions.pod:2878
10736 msgid "Amiga \"Rigid Disk Block\" format."
10737 msgstr ""
10738
10739 # type: =item
10740 #: ../src/guestfs-actions.pod:3741 ../fish/guestfish-actions.pod:2880
10741 msgid "B<bsd>"
10742 msgstr ""
10743
10744 # type: textblock
10745 #: ../src/guestfs-actions.pod:3743 ../fish/guestfish-actions.pod:2882
10746 msgid "BSD disk labels."
10747 msgstr ""
10748
10749 # type: =item
10750 #: ../src/guestfs-actions.pod:3745 ../fish/guestfish-actions.pod:2884
10751 msgid "B<dasd>"
10752 msgstr ""
10753
10754 # type: textblock
10755 #: ../src/guestfs-actions.pod:3747 ../fish/guestfish-actions.pod:2886
10756 msgid "DASD, used on IBM mainframes."
10757 msgstr ""
10758
10759 # type: =item
10760 #: ../src/guestfs-actions.pod:3749 ../fish/guestfish-actions.pod:2888
10761 msgid "B<dvh>"
10762 msgstr ""
10763
10764 # type: textblock
10765 #: ../src/guestfs-actions.pod:3751 ../fish/guestfish-actions.pod:2890
10766 msgid "MIPS/SGI volumes."
10767 msgstr ""
10768
10769 # type: =item
10770 #: ../src/guestfs-actions.pod:3753 ../fish/guestfish-actions.pod:2892
10771 msgid "B<mac>"
10772 msgstr ""
10773
10774 # type: textblock
10775 #: ../src/guestfs-actions.pod:3755 ../fish/guestfish-actions.pod:2894
10776 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
10777 msgstr ""
10778
10779 # type: =item
10780 #: ../src/guestfs-actions.pod:3757 ../fish/guestfish-actions.pod:2896
10781 msgid "B<pc98>"
10782 msgstr ""
10783
10784 # type: textblock
10785 #: ../src/guestfs-actions.pod:3759 ../fish/guestfish-actions.pod:2898
10786 msgid "NEC PC-98 format, common in Japan apparently."
10787 msgstr ""
10788
10789 # type: =item
10790 #: ../src/guestfs-actions.pod:3761 ../fish/guestfish-actions.pod:2900
10791 msgid "B<sun>"
10792 msgstr ""
10793
10794 # type: textblock
10795 #: ../src/guestfs-actions.pod:3763 ../fish/guestfish-actions.pod:2902
10796 msgid "Sun disk labels."
10797 msgstr ""
10798
10799 # type: =head2
10800 #: ../src/guestfs-actions.pod:3769
10801 msgid "guestfs_part_list"
10802 msgstr ""
10803
10804 # type: verbatim
10805 #: ../src/guestfs-actions.pod:3771
10806 #, no-wrap
10807 msgid ""
10808 " struct guestfs_partition_list *guestfs_part_list (guestfs_h *g,\n"
10809 "\t\tconst char *device);\n"
10810 "\n"
10811 msgstr ""
10812
10813 # type: textblock
10814 #: ../src/guestfs-actions.pod:3774 ../fish/guestfish-actions.pod:2910
10815 msgid ""
10816 "This command parses the partition table on C<device> and returns the list of "
10817 "partitions found."
10818 msgstr ""
10819
10820 # type: textblock
10821 #: ../src/guestfs-actions.pod:3777 ../fish/guestfish-actions.pod:2913
10822 msgid "The fields in the returned structure are:"
10823 msgstr ""
10824
10825 # type: =item
10826 #: ../src/guestfs-actions.pod:3781 ../fish/guestfish-actions.pod:2917
10827 msgid "B<part_num>"
10828 msgstr ""
10829
10830 # type: textblock
10831 #: ../src/guestfs-actions.pod:3783 ../fish/guestfish-actions.pod:2919
10832 msgid "Partition number, counting from 1."
10833 msgstr ""
10834
10835 # type: =item
10836 #: ../src/guestfs-actions.pod:3785 ../fish/guestfish-actions.pod:2921
10837 msgid "B<part_start>"
10838 msgstr ""
10839
10840 # type: textblock
10841 #: ../src/guestfs-actions.pod:3787
10842 msgid ""
10843 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
10844 "the device's sector size, see C<guestfs_blockdev_getss>."
10845 msgstr ""
10846
10847 # type: =item
10848 #: ../src/guestfs-actions.pod:3790 ../fish/guestfish-actions.pod:2926
10849 msgid "B<part_end>"
10850 msgstr ""
10851
10852 # type: textblock
10853 #: ../src/guestfs-actions.pod:3792 ../fish/guestfish-actions.pod:2928
10854 msgid "End of the partition in bytes."
10855 msgstr ""
10856
10857 # type: =item
10858 #: ../src/guestfs-actions.pod:3794 ../fish/guestfish-actions.pod:2930
10859 msgid "B<part_size>"
10860 msgstr ""
10861
10862 # type: textblock
10863 #: ../src/guestfs-actions.pod:3796 ../fish/guestfish-actions.pod:2932
10864 msgid "Size of the partition in bytes."
10865 msgstr ""
10866
10867 # type: textblock
10868 #: ../src/guestfs-actions.pod:3800
10869 msgid ""
10870 "This function returns a C<struct guestfs_partition_list *> (see E<lt>guestfs-"
10871 "structs.hE<gt>), or NULL if there was an error.  I<The caller must call "
10872 "C<guestfs_free_partition_list> after use>."
10873 msgstr ""
10874
10875 # type: =head2
10876 #: ../src/guestfs-actions.pod:3805
10877 msgid "guestfs_part_set_bootable"
10878 msgstr ""
10879
10880 # type: verbatim
10881 #: ../src/guestfs-actions.pod:3807
10882 #, no-wrap
10883 msgid ""
10884 " int guestfs_part_set_bootable (guestfs_h *g,\n"
10885 "\t\tconst char *device,\n"
10886 "\t\tint partnum,\n"
10887 "\t\tint bootable);\n"
10888 "\n"
10889 msgstr ""
10890
10891 # type: textblock
10892 #: ../src/guestfs-actions.pod:3812 ../fish/guestfish-actions.pod:2940
10893 msgid ""
10894 "This sets the bootable flag on partition numbered C<partnum> on device "
10895 "C<device>.  Note that partitions are numbered from 1."
10896 msgstr ""
10897
10898 # type: textblock
10899 #: ../src/guestfs-actions.pod:3815 ../fish/guestfish-actions.pod:2943
10900 msgid ""
10901 "The bootable flag is used by some operating systems (notably Windows) to "
10902 "determine which partition to boot from.  It is by no means universally "
10903 "recognized."
10904 msgstr ""
10905
10906 # type: =head2
10907 #: ../src/guestfs-actions.pod:3821
10908 msgid "guestfs_part_set_mbr_id"
10909 msgstr ""
10910
10911 # type: verbatim
10912 #: ../src/guestfs-actions.pod:3823
10913 #, no-wrap
10914 msgid ""
10915 " int guestfs_part_set_mbr_id (guestfs_h *g,\n"
10916 "\t\tconst char *device,\n"
10917 "\t\tint partnum,\n"
10918 "\t\tint idbyte);\n"
10919 "\n"
10920 msgstr ""
10921
10922 # type: textblock
10923 #: ../src/guestfs-actions.pod:3828 ../fish/guestfish-actions.pod:2951
10924 msgid ""
10925 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
10926 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
10927 "documentation are in fact hexadecimal numbers, but usually documented "
10928 "without any leading \"0x\" which might be confusing."
10929 msgstr ""
10930
10931 # type: =head2
10932 #: ../src/guestfs-actions.pod:3840
10933 msgid "guestfs_part_set_name"
10934 msgstr ""
10935
10936 # type: verbatim
10937 #: ../src/guestfs-actions.pod:3842
10938 #, no-wrap
10939 msgid ""
10940 " int guestfs_part_set_name (guestfs_h *g,\n"
10941 "\t\tconst char *device,\n"
10942 "\t\tint partnum,\n"
10943 "\t\tconst char *name);\n"
10944 "\n"
10945 msgstr ""
10946
10947 # type: textblock
10948 #: ../src/guestfs-actions.pod:3847 ../fish/guestfish-actions.pod:2965
10949 msgid ""
10950 "This sets the partition name on partition numbered C<partnum> on device "
10951 "C<device>.  Note that partitions are numbered from 1."
10952 msgstr ""
10953
10954 # type: textblock
10955 #: ../src/guestfs-actions.pod:3850 ../fish/guestfish-actions.pod:2968
10956 msgid ""
10957 "The partition name can only be set on certain types of partition table.  "
10958 "This works on C<gpt> but not on C<mbr> partitions."
10959 msgstr ""
10960
10961 # type: =head2
10962 #: ../src/guestfs-actions.pod:3855
10963 msgid "guestfs_part_to_dev"
10964 msgstr ""
10965
10966 # type: verbatim
10967 #: ../src/guestfs-actions.pod:3857
10968 #, no-wrap
10969 msgid ""
10970 " char *guestfs_part_to_dev (guestfs_h *g,\n"
10971 "\t\tconst char *partition);\n"
10972 "\n"
10973 msgstr ""
10974
10975 # type: textblock
10976 #: ../src/guestfs-actions.pod:3860 ../fish/guestfish-actions.pod:2975
10977 msgid ""
10978 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
10979 "partition number, returning the device name (eg. \"/dev/sdb\")."
10980 msgstr ""
10981
10982 # type: textblock
10983 #: ../src/guestfs-actions.pod:3864
10984 msgid ""
10985 "The named partition must exist, for example as a string returned from "
10986 "C<guestfs_list_partitions>."
10987 msgstr ""
10988
10989 # type: =head2
10990 #: ../src/guestfs-actions.pod:3870
10991 msgid "guestfs_ping_daemon"
10992 msgstr ""
10993
10994 # type: verbatim
10995 #: ../src/guestfs-actions.pod:3872
10996 #, no-wrap
10997 msgid ""
10998 " int guestfs_ping_daemon (guestfs_h *g);\n"
10999 "\n"
11000 msgstr ""
11001
11002 # type: textblock
11003 #: ../src/guestfs-actions.pod:3874 ../fish/guestfish-actions.pod:2986
11004 msgid ""
11005 "This is a test probe into the guestfs daemon running inside the qemu "
11006 "subprocess.  Calling this function checks that the daemon responds to the "
11007 "ping message, without affecting the daemon or attached block device(s) in "
11008 "any other way."
11009 msgstr ""
11010
11011 # type: =head2
11012 #: ../src/guestfs-actions.pod:3881
11013 msgid "guestfs_pread"
11014 msgstr ""
11015
11016 # type: verbatim
11017 #: ../src/guestfs-actions.pod:3883
11018 #, no-wrap
11019 msgid ""
11020 " char *guestfs_pread (guestfs_h *g,\n"
11021 "\t\tconst char *path,\n"
11022 "\t\tint count,\n"
11023 "\t\tint64_t offset,\n"
11024 "\t\tsize_t *size_r);\n"
11025 "\n"
11026 msgstr ""
11027
11028 # type: textblock
11029 #: ../src/guestfs-actions.pod:3889 ../fish/guestfish-actions.pod:2995
11030 msgid ""
11031 "This command lets you read part of a file.  It reads C<count> bytes of the "
11032 "file, starting at C<offset>, from file C<path>."
11033 msgstr ""
11034
11035 # type: textblock
11036 #: ../src/guestfs-actions.pod:3892 ../src/guestfs-actions.pod:3915
11037 #: ../fish/guestfish-actions.pod:2998 ../fish/guestfish-actions.pod:3013
11038 msgid ""
11039 "This may read fewer bytes than requested.  For further details see the "
11040 "L<pread(2)> system call."
11041 msgstr ""
11042
11043 # type: textblock
11044 #: ../src/guestfs-actions.pod:3895
11045 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
11046 msgstr ""
11047
11048 # type: =head2
11049 #: ../src/guestfs-actions.pod:3904
11050 msgid "guestfs_pread_device"
11051 msgstr ""
11052
11053 # type: verbatim
11054 #: ../src/guestfs-actions.pod:3906
11055 #, no-wrap
11056 msgid ""
11057 " char *guestfs_pread_device (guestfs_h *g,\n"
11058 "\t\tconst char *device,\n"
11059 "\t\tint count,\n"
11060 "\t\tint64_t offset,\n"
11061 "\t\tsize_t *size_r);\n"
11062 "\n"
11063 msgstr ""
11064
11065 # type: textblock
11066 #: ../src/guestfs-actions.pod:3912 ../fish/guestfish-actions.pod:3010
11067 msgid ""
11068 "This command lets you read part of a file.  It reads C<count> bytes of "
11069 "C<device>, starting at C<offset>."
11070 msgstr ""
11071
11072 # type: textblock
11073 #: ../src/guestfs-actions.pod:3918
11074 msgid "See also C<guestfs_pread>."
11075 msgstr ""
11076
11077 # type: =head2
11078 #: ../src/guestfs-actions.pod:3927
11079 msgid "guestfs_pvcreate"
11080 msgstr ""
11081
11082 # type: verbatim
11083 #: ../src/guestfs-actions.pod:3929
11084 #, no-wrap
11085 msgid ""
11086 " int guestfs_pvcreate (guestfs_h *g,\n"
11087 "\t\tconst char *device);\n"
11088 "\n"
11089 msgstr ""
11090
11091 # type: textblock
11092 #: ../src/guestfs-actions.pod:3932 ../fish/guestfish-actions.pod:3025
11093 msgid ""
11094 "This creates an LVM physical volume on the named C<device>, where C<device> "
11095 "should usually be a partition name such as C</dev/sda1>."
11096 msgstr ""
11097
11098 # type: =head2
11099 #: ../src/guestfs-actions.pod:3938
11100 msgid "guestfs_pvremove"
11101 msgstr ""
11102
11103 # type: verbatim
11104 #: ../src/guestfs-actions.pod:3940
11105 #, no-wrap
11106 msgid ""
11107 " int guestfs_pvremove (guestfs_h *g,\n"
11108 "\t\tconst char *device);\n"
11109 "\n"
11110 msgstr ""
11111
11112 # type: textblock
11113 #: ../src/guestfs-actions.pod:3943 ../fish/guestfish-actions.pod:3033
11114 msgid ""
11115 "This wipes a physical volume C<device> so that LVM will no longer recognise "
11116 "it."
11117 msgstr ""
11118
11119 # type: textblock
11120 #: ../src/guestfs-actions.pod:3946 ../fish/guestfish-actions.pod:3036
11121 msgid ""
11122 "The implementation uses the C<pvremove> command which refuses to wipe "
11123 "physical volumes that contain any volume groups, so you have to remove those "
11124 "first."
11125 msgstr ""
11126
11127 # type: =head2
11128 #: ../src/guestfs-actions.pod:3952
11129 msgid "guestfs_pvresize"
11130 msgstr ""
11131
11132 # type: verbatim
11133 #: ../src/guestfs-actions.pod:3954
11134 #, no-wrap
11135 msgid ""
11136 " int guestfs_pvresize (guestfs_h *g,\n"
11137 "\t\tconst char *device);\n"
11138 "\n"
11139 msgstr ""
11140
11141 # type: textblock
11142 #: ../src/guestfs-actions.pod:3957 ../fish/guestfish-actions.pod:3044
11143 msgid ""
11144 "This resizes (expands or shrinks) an existing LVM physical volume to match "
11145 "the new size of the underlying device."
11146 msgstr ""
11147
11148 # type: =head2
11149 #: ../src/guestfs-actions.pod:3962
11150 msgid "guestfs_pvresize_size"
11151 msgstr ""
11152
11153 # type: verbatim
11154 #: ../src/guestfs-actions.pod:3964
11155 #, no-wrap
11156 msgid ""
11157 " int guestfs_pvresize_size (guestfs_h *g,\n"
11158 "\t\tconst char *device,\n"
11159 "\t\tint64_t size);\n"
11160 "\n"
11161 msgstr ""
11162
11163 # type: textblock
11164 #: ../src/guestfs-actions.pod:3968
11165 msgid ""
11166 "This command is the same as C<guestfs_pvresize> except that it allows you to "
11167 "specify the new size (in bytes) explicitly."
11168 msgstr ""
11169
11170 # type: =head2
11171 #: ../src/guestfs-actions.pod:3973
11172 msgid "guestfs_pvs"
11173 msgstr ""
11174
11175 # type: verbatim
11176 #: ../src/guestfs-actions.pod:3975
11177 #, no-wrap
11178 msgid ""
11179 " char **guestfs_pvs (guestfs_h *g);\n"
11180 "\n"
11181 msgstr ""
11182
11183 # type: textblock
11184 #: ../src/guestfs-actions.pod:3977 ../fish/guestfish-actions.pod:3058
11185 msgid ""
11186 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
11187 "(8)> command."
11188 msgstr ""
11189
11190 # type: textblock
11191 #: ../src/guestfs-actions.pod:3980 ../fish/guestfish-actions.pod:3061
11192 msgid ""
11193 "This returns a list of just the device names that contain PVs (eg. C</dev/"
11194 "sda2>)."
11195 msgstr ""
11196
11197 # type: textblock
11198 #: ../src/guestfs-actions.pod:3983
11199 msgid "See also C<guestfs_pvs_full>."
11200 msgstr ""
11201
11202 # type: =head2
11203 #: ../src/guestfs-actions.pod:3989
11204 msgid "guestfs_pvs_full"
11205 msgstr ""
11206
11207 # type: verbatim
11208 #: ../src/guestfs-actions.pod:3991
11209 #, no-wrap
11210 msgid ""
11211 " struct guestfs_lvm_pv_list *guestfs_pvs_full (guestfs_h *g);\n"
11212 "\n"
11213 msgstr ""
11214
11215 # type: textblock
11216 #: ../src/guestfs-actions.pod:3993 ../fish/guestfish-actions.pod:3070
11217 msgid ""
11218 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
11219 "(8)> command.  The \"full\" version includes all fields."
11220 msgstr ""
11221
11222 # type: textblock
11223 #: ../src/guestfs-actions.pod:3996
11224 msgid ""
11225 "This function returns a C<struct guestfs_lvm_pv_list *> (see E<lt>guestfs-"
11226 "structs.hE<gt>), or NULL if there was an error.  I<The caller must call "
11227 "C<guestfs_free_lvm_pv_list> after use>."
11228 msgstr ""
11229
11230 # type: =head2
11231 #: ../src/guestfs-actions.pod:4001
11232 msgid "guestfs_pvuuid"
11233 msgstr ""
11234
11235 # type: verbatim
11236 #: ../src/guestfs-actions.pod:4003
11237 #, no-wrap
11238 msgid ""
11239 " char *guestfs_pvuuid (guestfs_h *g,\n"
11240 "\t\tconst char *device);\n"
11241 "\n"
11242 msgstr ""
11243
11244 # type: textblock
11245 #: ../src/guestfs-actions.pod:4006 ../fish/guestfish-actions.pod:3077
11246 msgid "This command returns the UUID of the LVM PV C<device>."
11247 msgstr ""
11248
11249 # type: =head2
11250 #: ../src/guestfs-actions.pod:4011
11251 msgid "guestfs_pwrite"
11252 msgstr ""
11253
11254 # type: verbatim
11255 #: ../src/guestfs-actions.pod:4013
11256 #, no-wrap
11257 msgid ""
11258 " int guestfs_pwrite (guestfs_h *g,\n"
11259 "\t\tconst char *path,\n"
11260 "\t\tconst char *content,\n"
11261 "\t\tsize_t content_size,\n"
11262 "\t\tint64_t offset);\n"
11263 "\n"
11264 msgstr ""
11265
11266 # type: textblock
11267 #: ../src/guestfs-actions.pod:4019 ../fish/guestfish-actions.pod:3083
11268 msgid ""
11269 "This command writes to part of a file.  It writes the data buffer C<content> "
11270 "to the file C<path> starting at offset C<offset>."
11271 msgstr ""
11272
11273 # type: textblock
11274 #: ../src/guestfs-actions.pod:4022 ../fish/guestfish-actions.pod:3086
11275 msgid ""
11276 "This command implements the L<pwrite(2)> system call, and like that system "
11277 "call it may not write the full data requested.  The return value is the "
11278 "number of bytes that were actually written to the file.  This could even be "
11279 "0, although short writes are unlikely for regular files in ordinary "
11280 "circumstances."
11281 msgstr ""
11282
11283 # type: textblock
11284 #: ../src/guestfs-actions.pod:4028
11285 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
11286 msgstr ""
11287
11288 # type: =head2
11289 #: ../src/guestfs-actions.pod:4035
11290 msgid "guestfs_pwrite_device"
11291 msgstr ""
11292
11293 # type: verbatim
11294 #: ../src/guestfs-actions.pod:4037
11295 #, no-wrap
11296 msgid ""
11297 " int guestfs_pwrite_device (guestfs_h *g,\n"
11298 "\t\tconst char *device,\n"
11299 "\t\tconst char *content,\n"
11300 "\t\tsize_t content_size,\n"
11301 "\t\tint64_t offset);\n"
11302 "\n"
11303 msgstr ""
11304
11305 # type: textblock
11306 #: ../src/guestfs-actions.pod:4043 ../fish/guestfish-actions.pod:3101
11307 msgid ""
11308 "This command writes to part of a device.  It writes the data buffer "
11309 "C<content> to C<device> starting at offset C<offset>."
11310 msgstr ""
11311
11312 # type: textblock
11313 #: ../src/guestfs-actions.pod:4046 ../fish/guestfish-actions.pod:3104
11314 msgid ""
11315 "This command implements the L<pwrite(2)> system call, and like that system "
11316 "call it may not write the full data requested (although short writes to disk "
11317 "devices and partitions are probably impossible with standard Linux kernels)."
11318 msgstr ""
11319
11320 # type: textblock
11321 #: ../src/guestfs-actions.pod:4051
11322 msgid "See also C<guestfs_pwrite>."
11323 msgstr ""
11324
11325 # type: =head2
11326 #: ../src/guestfs-actions.pod:4058
11327 msgid "guestfs_read_file"
11328 msgstr ""
11329
11330 # type: verbatim
11331 #: ../src/guestfs-actions.pod:4060
11332 #, no-wrap
11333 msgid ""
11334 " char *guestfs_read_file (guestfs_h *g,\n"
11335 "\t\tconst char *path,\n"
11336 "\t\tsize_t *size_r);\n"
11337 "\n"
11338 msgstr ""
11339
11340 # type: textblock
11341 #: ../src/guestfs-actions.pod:4064 ../fish/guestfish-actions.pod:3118
11342 msgid "This calls returns the contents of the file C<path> as a buffer."
11343 msgstr ""
11344
11345 # type: textblock
11346 #: ../src/guestfs-actions.pod:4067
11347 msgid ""
11348 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
11349 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
11350 "function is limited in the total size of file that can be handled."
11351 msgstr ""
11352
11353 # type: =head2
11354 #: ../src/guestfs-actions.pod:4079
11355 msgid "guestfs_read_lines"
11356 msgstr ""
11357
11358 # type: verbatim
11359 #: ../src/guestfs-actions.pod:4081
11360 #, no-wrap
11361 msgid ""
11362 " char **guestfs_read_lines (guestfs_h *g,\n"
11363 "\t\tconst char *path);\n"
11364 "\n"
11365 msgstr ""
11366
11367 # type: textblock
11368 #: ../src/guestfs-actions.pod:4086 ../fish/guestfish-actions.pod:3135
11369 msgid ""
11370 "The file contents are returned as a list of lines.  Trailing C<LF> and "
11371 "C<CRLF> character sequences are I<not> returned."
11372 msgstr ""
11373
11374 # type: textblock
11375 #: ../src/guestfs-actions.pod:4089
11376 msgid ""
11377 "Note that this function cannot correctly handle binary files (specifically, "
11378 "files containing C<\\0> character which is treated as end of line).  For "
11379 "those you need to use the C<guestfs_read_file> function which has a more "
11380 "complex interface."
11381 msgstr ""
11382
11383 # type: =head2
11384 #: ../src/guestfs-actions.pod:4098
11385 msgid "guestfs_readdir"
11386 msgstr ""
11387
11388 # type: verbatim
11389 #: ../src/guestfs-actions.pod:4100
11390 #, no-wrap
11391 msgid ""
11392 " struct guestfs_dirent_list *guestfs_readdir (guestfs_h *g,\n"
11393 "\t\tconst char *dir);\n"
11394 "\n"
11395 msgstr ""
11396
11397 # type: textblock
11398 #: ../src/guestfs-actions.pod:4103 ../fish/guestfish-actions.pod:3147
11399 msgid "This returns the list of directory entries in directory C<dir>."
11400 msgstr ""
11401
11402 # type: textblock
11403 #: ../src/guestfs-actions.pod:4105 ../fish/guestfish-actions.pod:3149
11404 msgid ""
11405 "All entries in the directory are returned, including C<.> and C<..>.  The "
11406 "entries are I<not> sorted, but returned in the same order as the underlying "
11407 "filesystem."
11408 msgstr ""
11409
11410 # type: textblock
11411 #: ../src/guestfs-actions.pod:4109 ../fish/guestfish-actions.pod:3153
11412 msgid ""
11413 "Also this call returns basic file type information about each file.  The "
11414 "C<ftyp> field will contain one of the following characters:"
11415 msgstr ""
11416
11417 # type: =item
11418 #: ../src/guestfs-actions.pod:4114 ../fish/guestfish-actions.pod:3158
11419 msgid "'b'"
11420 msgstr ""
11421
11422 # type: textblock
11423 #: ../src/guestfs-actions.pod:4116 ../fish/guestfish-actions.pod:3160
11424 msgid "Block special"
11425 msgstr ""
11426
11427 # type: =item
11428 #: ../src/guestfs-actions.pod:4118 ../fish/guestfish-actions.pod:3162
11429 msgid "'c'"
11430 msgstr ""
11431
11432 # type: textblock
11433 #: ../src/guestfs-actions.pod:4120 ../fish/guestfish-actions.pod:3164
11434 msgid "Char special"
11435 msgstr ""
11436
11437 # type: =item
11438 #: ../src/guestfs-actions.pod:4122 ../fish/guestfish-actions.pod:3166
11439 msgid "'d'"
11440 msgstr ""
11441
11442 # type: textblock
11443 #: ../src/guestfs-actions.pod:4124 ../fish/guestfish-actions.pod:3168
11444 msgid "Directory"
11445 msgstr ""
11446
11447 # type: =item
11448 #: ../src/guestfs-actions.pod:4126 ../fish/guestfish-actions.pod:3170
11449 msgid "'f'"
11450 msgstr ""
11451
11452 # type: textblock
11453 #: ../src/guestfs-actions.pod:4128 ../fish/guestfish-actions.pod:3172
11454 msgid "FIFO (named pipe)"
11455 msgstr ""
11456
11457 # type: =item
11458 #: ../src/guestfs-actions.pod:4130 ../fish/guestfish-actions.pod:3174
11459 msgid "'l'"
11460 msgstr ""
11461
11462 # type: textblock
11463 #: ../src/guestfs-actions.pod:4132 ../fish/guestfish-actions.pod:3176
11464 msgid "Symbolic link"
11465 msgstr ""
11466
11467 # type: =item
11468 #: ../src/guestfs-actions.pod:4134 ../fish/guestfish-actions.pod:3178
11469 msgid "'r'"
11470 msgstr ""
11471
11472 # type: textblock
11473 #: ../src/guestfs-actions.pod:4136 ../fish/guestfish-actions.pod:3180
11474 msgid "Regular file"
11475 msgstr ""
11476
11477 # type: =item
11478 #: ../src/guestfs-actions.pod:4138 ../fish/guestfish-actions.pod:3182
11479 msgid "'s'"
11480 msgstr ""
11481
11482 # type: textblock
11483 #: ../src/guestfs-actions.pod:4140 ../fish/guestfish-actions.pod:3184
11484 msgid "Socket"
11485 msgstr ""
11486
11487 # type: =item
11488 #: ../src/guestfs-actions.pod:4142 ../fish/guestfish-actions.pod:3186
11489 msgid "'u'"
11490 msgstr ""
11491
11492 # type: textblock
11493 #: ../src/guestfs-actions.pod:4144 ../fish/guestfish-actions.pod:3188
11494 msgid "Unknown file type"
11495 msgstr ""
11496
11497 # type: =item
11498 #: ../src/guestfs-actions.pod:4146 ../fish/guestfish-actions.pod:3190
11499 msgid "'?'"
11500 msgstr ""
11501
11502 # type: textblock
11503 #: ../src/guestfs-actions.pod:4148 ../fish/guestfish-actions.pod:3192
11504 msgid ""
11505 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
11506 msgstr ""
11507
11508 # type: textblock
11509 #: ../src/guestfs-actions.pod:4153
11510 msgid ""
11511 "This function is primarily intended for use by programs.  To get a simple "
11512 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
11513 "consumption, use C<guestfs_ll>."
11514 msgstr ""
11515
11516 # type: textblock
11517 #: ../src/guestfs-actions.pod:4157
11518 msgid ""
11519 "This function returns a C<struct guestfs_dirent_list *> (see E<lt>guestfs-"
11520 "structs.hE<gt>), or NULL if there was an error.  I<The caller must call "
11521 "C<guestfs_free_dirent_list> after use>."
11522 msgstr ""
11523
11524 # type: =head2
11525 #: ../src/guestfs-actions.pod:4162
11526 msgid "guestfs_readlink"
11527 msgstr ""
11528
11529 # type: verbatim
11530 #: ../src/guestfs-actions.pod:4164
11531 #, no-wrap
11532 msgid ""
11533 " char *guestfs_readlink (guestfs_h *g,\n"
11534 "\t\tconst char *path);\n"
11535 "\n"
11536 msgstr ""
11537
11538 # type: textblock
11539 #: ../src/guestfs-actions.pod:4167 ../fish/guestfish-actions.pod:3205
11540 msgid "This command reads the target of a symbolic link."
11541 msgstr ""
11542
11543 # type: =head2
11544 #: ../src/guestfs-actions.pod:4172
11545 msgid "guestfs_readlinklist"
11546 msgstr ""
11547
11548 # type: verbatim
11549 #: ../src/guestfs-actions.pod:4174
11550 #, no-wrap
11551 msgid ""
11552 " char **guestfs_readlinklist (guestfs_h *g,\n"
11553 "\t\tconst char *path,\n"
11554 "\t\tchar *const *names);\n"
11555 "\n"
11556 msgstr ""
11557
11558 # type: textblock
11559 #: ../src/guestfs-actions.pod:4178 ../fish/guestfish-actions.pod:3211
11560 msgid ""
11561 "This call allows you to do a C<readlink> operation on multiple files, where "
11562 "all files are in the directory C<path>.  C<names> is the list of files from "
11563 "this directory."
11564 msgstr ""
11565
11566 # type: textblock
11567 #: ../src/guestfs-actions.pod:4182 ../fish/guestfish-actions.pod:3215
11568 msgid ""
11569 "On return you get a list of strings, with a one-to-one correspondence to the "
11570 "C<names> list.  Each string is the value of the symbolic link."
11571 msgstr ""
11572
11573 # type: textblock
11574 #: ../src/guestfs-actions.pod:4186 ../fish/guestfish-actions.pod:3219
11575 msgid ""
11576 "If the C<readlink(2)> operation fails on any name, then the corresponding "
11577 "result string is the empty string C<\"\">.  However the whole operation is "
11578 "completed even if there were C<readlink(2)> errors, and so you can call this "
11579 "function with names where you don't know if they are symbolic links already "
11580 "(albeit slightly less efficient)."
11581 msgstr ""
11582
11583 # type: textblock
11584 #: ../src/guestfs-actions.pod:4193 ../fish/guestfish-actions.pod:3226
11585 msgid ""
11586 "This call is intended for programs that want to efficiently list a directory "
11587 "contents without making many round-trips.  Very long directory listings "
11588 "might cause the protocol message size to be exceeded, causing this call to "
11589 "fail.  The caller must split up such requests into smaller groups of names."
11590 msgstr ""
11591
11592 # type: =head2
11593 #: ../src/guestfs-actions.pod:4204
11594 msgid "guestfs_realpath"
11595 msgstr ""
11596
11597 # type: verbatim
11598 #: ../src/guestfs-actions.pod:4206
11599 #, no-wrap
11600 msgid ""
11601 " char *guestfs_realpath (guestfs_h *g,\n"
11602 "\t\tconst char *path);\n"
11603 "\n"
11604 msgstr ""
11605
11606 # type: textblock
11607 #: ../src/guestfs-actions.pod:4209 ../fish/guestfish-actions.pod:3237
11608 msgid ""
11609 "Return the canonicalized absolute pathname of C<path>.  The returned path "
11610 "has no C<.>, C<..> or symbolic link path elements."
11611 msgstr ""
11612
11613 # type: =head2
11614 #: ../src/guestfs-actions.pod:4215
11615 msgid "guestfs_removexattr"
11616 msgstr ""
11617
11618 # type: verbatim
11619 #: ../src/guestfs-actions.pod:4217
11620 #, no-wrap
11621 msgid ""
11622 " int guestfs_removexattr (guestfs_h *g,\n"
11623 "\t\tconst char *xattr,\n"
11624 "\t\tconst char *path);\n"
11625 "\n"
11626 msgstr ""
11627
11628 # type: textblock
11629 #: ../src/guestfs-actions.pod:4221 ../fish/guestfish-actions.pod:3244
11630 msgid ""
11631 "This call removes the extended attribute named C<xattr> of the file C<path>."
11632 msgstr ""
11633
11634 # type: textblock
11635 #: ../src/guestfs-actions.pod:4224
11636 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
11637 msgstr ""
11638
11639 # type: =head2
11640 #: ../src/guestfs-actions.pod:4228
11641 msgid "guestfs_resize2fs"
11642 msgstr ""
11643
11644 # type: verbatim
11645 #: ../src/guestfs-actions.pod:4230
11646 #, no-wrap
11647 msgid ""
11648 " int guestfs_resize2fs (guestfs_h *g,\n"
11649 "\t\tconst char *device);\n"
11650 "\n"
11651 msgstr ""
11652
11653 # type: textblock
11654 #: ../src/guestfs-actions.pod:4233 ../fish/guestfish-actions.pod:3253
11655 msgid ""
11656 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
11657 "underlying device."
11658 msgstr ""
11659
11660 # type: textblock
11661 #: ../src/guestfs-actions.pod:4236
11662 msgid ""
11663 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
11664 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
11665 "sometimes gives an error about this and sometimes not.  In any case, it is "
11666 "always safe to call C<guestfs_e2fsck_f> before calling this function."
11667 msgstr ""
11668
11669 # type: =head2
11670 #: ../src/guestfs-actions.pod:4244
11671 msgid "guestfs_resize2fs_size"
11672 msgstr ""
11673
11674 # type: verbatim
11675 #: ../src/guestfs-actions.pod:4246
11676 #, no-wrap
11677 msgid ""
11678 " int guestfs_resize2fs_size (guestfs_h *g,\n"
11679 "\t\tconst char *device,\n"
11680 "\t\tint64_t size);\n"
11681 "\n"
11682 msgstr ""
11683
11684 # type: textblock
11685 #: ../src/guestfs-actions.pod:4250
11686 msgid ""
11687 "This command is the same as C<guestfs_resize2fs> except that it allows you "
11688 "to specify the new size (in bytes) explicitly."
11689 msgstr ""
11690
11691 # type: =head2
11692 #: ../src/guestfs-actions.pod:4255
11693 msgid "guestfs_rm"
11694 msgstr ""
11695
11696 # type: verbatim
11697 #: ../src/guestfs-actions.pod:4257
11698 #, no-wrap
11699 msgid ""
11700 " int guestfs_rm (guestfs_h *g,\n"
11701 "\t\tconst char *path);\n"
11702 "\n"
11703 msgstr ""
11704
11705 # type: textblock
11706 #: ../src/guestfs-actions.pod:4260 ../fish/guestfish-actions.pod:3273
11707 msgid "Remove the single file C<path>."
11708 msgstr ""
11709
11710 # type: =head2
11711 #: ../src/guestfs-actions.pod:4264
11712 msgid "guestfs_rm_rf"
11713 msgstr ""
11714
11715 # type: verbatim
11716 #: ../src/guestfs-actions.pod:4266
11717 #, no-wrap
11718 msgid ""
11719 " int guestfs_rm_rf (guestfs_h *g,\n"
11720 "\t\tconst char *path);\n"
11721 "\n"
11722 msgstr ""
11723
11724 # type: textblock
11725 #: ../src/guestfs-actions.pod:4269 ../fish/guestfish-actions.pod:3279
11726 msgid ""
11727 "Remove the file or directory C<path>, recursively removing the contents if "
11728 "its a directory.  This is like the C<rm -rf> shell command."
11729 msgstr ""
11730
11731 # type: =head2
11732 #: ../src/guestfs-actions.pod:4275
11733 msgid "guestfs_rmdir"
11734 msgstr ""
11735
11736 # type: verbatim
11737 #: ../src/guestfs-actions.pod:4277
11738 #, no-wrap
11739 msgid ""
11740 " int guestfs_rmdir (guestfs_h *g,\n"
11741 "\t\tconst char *path);\n"
11742 "\n"
11743 msgstr ""
11744
11745 # type: textblock
11746 #: ../src/guestfs-actions.pod:4280 ../fish/guestfish-actions.pod:3287
11747 msgid "Remove the single directory C<path>."
11748 msgstr ""
11749
11750 # type: =head2
11751 #: ../src/guestfs-actions.pod:4284
11752 msgid "guestfs_rmmountpoint"
11753 msgstr ""
11754
11755 # type: verbatim
11756 #: ../src/guestfs-actions.pod:4286
11757 #, no-wrap
11758 msgid ""
11759 " int guestfs_rmmountpoint (guestfs_h *g,\n"
11760 "\t\tconst char *exemptpath);\n"
11761 "\n"
11762 msgstr ""
11763
11764 # type: textblock
11765 #: ../src/guestfs-actions.pod:4289
11766 msgid ""
11767 "This calls removes a mountpoint that was previously created with "
11768 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
11769 msgstr ""
11770
11771 # type: =head2
11772 #: ../src/guestfs-actions.pod:4295
11773 msgid "guestfs_scrub_device"
11774 msgstr ""
11775
11776 # type: verbatim
11777 #: ../src/guestfs-actions.pod:4297
11778 #, no-wrap
11779 msgid ""
11780 " int guestfs_scrub_device (guestfs_h *g,\n"
11781 "\t\tconst char *device);\n"
11782 "\n"
11783 msgstr ""
11784
11785 # type: textblock
11786 #: ../src/guestfs-actions.pod:4300 ../fish/guestfish-actions.pod:3301
11787 msgid ""
11788 "This command writes patterns over C<device> to make data retrieval more "
11789 "difficult."
11790 msgstr ""
11791
11792 # type: textblock
11793 #: ../src/guestfs-actions.pod:4303 ../src/guestfs-actions.pod:4321
11794 #: ../src/guestfs-actions.pod:4337 ../fish/guestfish-actions.pod:3304
11795 #: ../fish/guestfish-actions.pod:3319 ../fish/guestfish-actions.pod:3332
11796 msgid ""
11797 "It is an interface to the L<scrub(1)> program.  See that manual page for "
11798 "more details."
11799 msgstr ""
11800
11801 # type: =head2
11802 #: ../src/guestfs-actions.pod:4311
11803 msgid "guestfs_scrub_file"
11804 msgstr ""
11805
11806 # type: verbatim
11807 #: ../src/guestfs-actions.pod:4313
11808 #, no-wrap
11809 msgid ""
11810 " int guestfs_scrub_file (guestfs_h *g,\n"
11811 "\t\tconst char *file);\n"
11812 "\n"
11813 msgstr ""
11814
11815 # type: textblock
11816 #: ../src/guestfs-actions.pod:4316 ../fish/guestfish-actions.pod:3314
11817 msgid ""
11818 "This command writes patterns over a file to make data retrieval more "
11819 "difficult."
11820 msgstr ""
11821
11822 # type: textblock
11823 #: ../src/guestfs-actions.pod:4319 ../fish/guestfish-actions.pod:3317
11824 msgid "The file is I<removed> after scrubbing."
11825 msgstr ""
11826
11827 # type: =head2
11828 #: ../src/guestfs-actions.pod:4326
11829 msgid "guestfs_scrub_freespace"
11830 msgstr ""
11831
11832 # type: verbatim
11833 #: ../src/guestfs-actions.pod:4328
11834 #, no-wrap
11835 msgid ""
11836 " int guestfs_scrub_freespace (guestfs_h *g,\n"
11837 "\t\tconst char *dir);\n"
11838 "\n"
11839 msgstr ""
11840
11841 # type: textblock
11842 #: ../src/guestfs-actions.pod:4331
11843 msgid ""
11844 "This command creates the directory C<dir> and then fills it with files until "
11845 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
11846 "and deletes them.  The intention is to scrub any free space on the partition "
11847 "containing C<dir>."
11848 msgstr ""
11849
11850 # type: =head2
11851 #: ../src/guestfs-actions.pod:4342
11852 msgid "guestfs_set_append"
11853 msgstr ""
11854
11855 # type: verbatim
11856 #: ../src/guestfs-actions.pod:4344
11857 #, no-wrap
11858 msgid ""
11859 " int guestfs_set_append (guestfs_h *g,\n"
11860 "\t\tconst char *append);\n"
11861 "\n"
11862 msgstr ""
11863
11864 # type: textblock
11865 #: ../src/guestfs-actions.pod:4347 ../fish/guestfish-actions.pod:3341
11866 msgid ""
11867 "This function is used to add additional options to the guest kernel command "
11868 "line."
11869 msgstr ""
11870
11871 # type: textblock
11872 #: ../src/guestfs-actions.pod:4350 ../fish/guestfish-actions.pod:3344
11873 msgid ""
11874 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
11875 "environment variable."
11876 msgstr ""
11877
11878 # type: textblock
11879 #: ../src/guestfs-actions.pod:4353 ../fish/guestfish-actions.pod:3347
11880 msgid ""
11881 "Setting C<append> to C<NULL> means I<no> additional options are passed "
11882 "(libguestfs always adds a few of its own)."
11883 msgstr ""
11884
11885 # type: =head2
11886 #: ../src/guestfs-actions.pod:4358
11887 msgid "guestfs_set_autosync"
11888 msgstr ""
11889
11890 # type: verbatim
11891 #: ../src/guestfs-actions.pod:4360
11892 #, no-wrap
11893 msgid ""
11894 " int guestfs_set_autosync (guestfs_h *g,\n"
11895 "\t\tint autosync);\n"
11896 "\n"
11897 msgstr ""
11898
11899 # type: textblock
11900 #: ../src/guestfs-actions.pod:4363
11901 msgid ""
11902 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
11903 "effort attempt to run C<guestfs_umount_all> followed by C<guestfs_sync> when "
11904 "the handle is closed (also if the program exits without closing handles)."
11905 msgstr ""
11906
11907 # type: textblock
11908 #: ../src/guestfs-actions.pod:4368 ../fish/guestfish-actions.pod:3361
11909 msgid ""
11910 "This is disabled by default (except in guestfish where it is enabled by "
11911 "default)."
11912 msgstr ""
11913
11914 # type: =head2
11915 #: ../src/guestfs-actions.pod:4373
11916 msgid "guestfs_set_direct"
11917 msgstr ""
11918
11919 # type: verbatim
11920 #: ../src/guestfs-actions.pod:4375
11921 #, no-wrap
11922 msgid ""
11923 " int guestfs_set_direct (guestfs_h *g,\n"
11924 "\t\tint direct);\n"
11925 "\n"
11926 msgstr ""
11927
11928 # type: textblock
11929 #: ../src/guestfs-actions.pod:4378 ../fish/guestfish-actions.pod:3370
11930 msgid ""
11931 "If the direct appliance mode flag is enabled, then stdin and stdout are "
11932 "passed directly through to the appliance once it is launched."
11933 msgstr ""
11934
11935 # type: textblock
11936 #: ../src/guestfs-actions.pod:4382
11937 msgid ""
11938 "One consequence of this is that log messages aren't caught by the library "
11939 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
11940 "stdout."
11941 msgstr ""
11942
11943 # type: textblock
11944 #: ../src/guestfs-actions.pod:4386 ../fish/guestfish-actions.pod:3378
11945 msgid "You probably don't want to use this unless you know what you are doing."
11946 msgstr ""
11947
11948 # type: textblock
11949 #: ../src/guestfs-actions.pod:4389 ../fish/guestfish-actions.pod:3381
11950 msgid "The default is disabled."
11951 msgstr ""
11952
11953 # type: =head2
11954 #: ../src/guestfs-actions.pod:4393
11955 msgid "guestfs_set_e2label"
11956 msgstr ""
11957
11958 # type: verbatim
11959 #: ../src/guestfs-actions.pod:4395
11960 #, no-wrap
11961 msgid ""
11962 " int guestfs_set_e2label (guestfs_h *g,\n"
11963 "\t\tconst char *device,\n"
11964 "\t\tconst char *label);\n"
11965 "\n"
11966 msgstr ""
11967
11968 # type: textblock
11969 #: ../src/guestfs-actions.pod:4399 ../fish/guestfish-actions.pod:3387
11970 msgid ""
11971 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
11972 "C<label>.  Filesystem labels are limited to 16 characters."
11973 msgstr ""
11974
11975 # type: textblock
11976 #: ../src/guestfs-actions.pod:4403
11977 msgid ""
11978 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
11979 "the existing label on a filesystem."
11980 msgstr ""
11981
11982 # type: =head2
11983 #: ../src/guestfs-actions.pod:4408
11984 msgid "guestfs_set_e2uuid"
11985 msgstr ""
11986
11987 # type: verbatim
11988 #: ../src/guestfs-actions.pod:4410
11989 #, no-wrap
11990 msgid ""
11991 " int guestfs_set_e2uuid (guestfs_h *g,\n"
11992 "\t\tconst char *device,\n"
11993 "\t\tconst char *uuid);\n"
11994 "\n"
11995 msgstr ""
11996
11997 # type: textblock
11998 #: ../src/guestfs-actions.pod:4414 ../fish/guestfish-actions.pod:3398
11999 msgid ""
12000 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
12001 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
12002 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
12003 msgstr ""
12004
12005 # type: textblock
12006 #: ../src/guestfs-actions.pod:4419
12007 msgid ""
12008 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
12009 "the existing UUID of a filesystem."
12010 msgstr ""
12011
12012 # type: =head2
12013 #: ../src/guestfs-actions.pod:4424
12014 msgid "guestfs_set_memsize"
12015 msgstr ""
12016
12017 # type: verbatim
12018 #: ../src/guestfs-actions.pod:4426
12019 #, no-wrap
12020 msgid ""
12021 " int guestfs_set_memsize (guestfs_h *g,\n"
12022 "\t\tint memsize);\n"
12023 "\n"
12024 msgstr ""
12025
12026 # type: textblock
12027 #: ../src/guestfs-actions.pod:4429
12028 msgid ""
12029 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
12030 "This only has any effect if called before C<guestfs_launch>."
12031 msgstr ""
12032
12033 # type: textblock
12034 #: ../src/guestfs-actions.pod:4433 ../fish/guestfish-actions.pod:3416
12035 msgid ""
12036 "You can also change this by setting the environment variable "
12037 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
12038 msgstr ""
12039
12040 # type: =head2
12041 #: ../src/guestfs-actions.pod:4442
12042 msgid "guestfs_set_network"
12043 msgstr ""
12044
12045 # type: verbatim
12046 #: ../src/guestfs-actions.pod:4444
12047 #, no-wrap
12048 msgid ""
12049 " int guestfs_set_network (guestfs_h *g,\n"
12050 "\t\tint network);\n"
12051 "\n"
12052 msgstr ""
12053
12054 # type: textblock
12055 #: ../src/guestfs-actions.pod:4447 ../fish/guestfish-actions.pod:3429
12056 msgid ""
12057 "If C<network> is true, then the network is enabled in the libguestfs "
12058 "appliance.  The default is false."
12059 msgstr ""
12060
12061 # type: textblock
12062 #: ../src/guestfs-actions.pod:4450 ../fish/guestfish-actions.pod:3432
12063 msgid ""
12064 "This affects whether commands are able to access the network (see L<guestfs"
12065 "(3)/RUNNING COMMANDS>)."
12066 msgstr ""
12067
12068 # type: textblock
12069 #: ../src/guestfs-actions.pod:4453
12070 msgid ""
12071 "You must call this before calling C<guestfs_launch>, otherwise it has no "
12072 "effect."
12073 msgstr ""
12074
12075 # type: =head2
12076 #: ../src/guestfs-actions.pod:4458
12077 msgid "guestfs_set_path"
12078 msgstr ""
12079
12080 # type: verbatim
12081 #: ../src/guestfs-actions.pod:4460
12082 #, no-wrap
12083 msgid ""
12084 " int guestfs_set_path (guestfs_h *g,\n"
12085 "\t\tconst char *searchpath);\n"
12086 "\n"
12087 msgstr ""
12088
12089 # type: textblock
12090 #: ../src/guestfs-actions.pod:4463 ../fish/guestfish-actions.pod:3444
12091 msgid "Set the path that libguestfs searches for kernel and initrd.img."
12092 msgstr ""
12093
12094 # type: textblock
12095 #: ../src/guestfs-actions.pod:4465 ../fish/guestfish-actions.pod:3446
12096 msgid ""
12097 "The default is C<$libdir/guestfs> unless overridden by setting "
12098 "C<LIBGUESTFS_PATH> environment variable."
12099 msgstr ""
12100
12101 # type: textblock
12102 #: ../src/guestfs-actions.pod:4468 ../fish/guestfish-actions.pod:3449
12103 msgid "Setting C<path> to C<NULL> restores the default path."
12104 msgstr ""
12105
12106 # type: =head2
12107 #: ../src/guestfs-actions.pod:4472
12108 msgid "guestfs_set_qemu"
12109 msgstr ""
12110
12111 # type: verbatim
12112 #: ../src/guestfs-actions.pod:4474
12113 #, no-wrap
12114 msgid ""
12115 " int guestfs_set_qemu (guestfs_h *g,\n"
12116 "\t\tconst char *qemu);\n"
12117 "\n"
12118 msgstr ""
12119
12120 # type: textblock
12121 #: ../src/guestfs-actions.pod:4477 ../fish/guestfish-actions.pod:3457
12122 msgid "Set the qemu binary that we will use."
12123 msgstr ""
12124
12125 # type: textblock
12126 #: ../src/guestfs-actions.pod:4479 ../fish/guestfish-actions.pod:3459
12127 msgid ""
12128 "The default is chosen when the library was compiled by the configure script."
12129 msgstr ""
12130
12131 # type: textblock
12132 #: ../src/guestfs-actions.pod:4482 ../fish/guestfish-actions.pod:3462
12133 msgid ""
12134 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
12135 "variable."
12136 msgstr ""
12137
12138 # type: textblock
12139 #: ../src/guestfs-actions.pod:4485 ../fish/guestfish-actions.pod:3465
12140 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
12141 msgstr ""
12142
12143 # type: textblock
12144 #: ../src/guestfs-actions.pod:4487 ../fish/guestfish-actions.pod:3467
12145 msgid ""
12146 "Note that you should call this function as early as possible after creating "
12147 "the handle.  This is because some pre-launch operations depend on testing "
12148 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
12149 "don't retest features, and so you might see inconsistent results.  Using the "
12150 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
12151 "the qemu binary at the same time as the handle is created."
12152 msgstr ""
12153
12154 # type: =head2
12155 #: ../src/guestfs-actions.pod:4497
12156 msgid "guestfs_set_recovery_proc"
12157 msgstr ""
12158
12159 # type: verbatim
12160 #: ../src/guestfs-actions.pod:4499
12161 #, no-wrap
12162 msgid ""
12163 " int guestfs_set_recovery_proc (guestfs_h *g,\n"
12164 "\t\tint recoveryproc);\n"
12165 "\n"
12166 msgstr ""
12167
12168 # type: textblock
12169 #: ../src/guestfs-actions.pod:4502
12170 msgid ""
12171 "If this is called with the parameter C<false> then C<guestfs_launch> does "
12172 "not create a recovery process.  The purpose of the recovery process is to "
12173 "stop runaway qemu processes in the case where the main program aborts "
12174 "abruptly."
12175 msgstr ""
12176
12177 # type: textblock
12178 #: ../src/guestfs-actions.pod:4507
12179 msgid ""
12180 "This only has any effect if called before C<guestfs_launch>, and the default "
12181 "is true."
12182 msgstr ""
12183
12184 # type: textblock
12185 #: ../src/guestfs-actions.pod:4510 ../fish/guestfish-actions.pod:3489
12186 msgid ""
12187 "About the only time when you would want to disable this is if the main "
12188 "process will fork itself into the background (\"daemonize\" itself).  In "
12189 "this case the recovery process thinks that the main program has disappeared "
12190 "and so kills qemu, which is not very helpful."
12191 msgstr ""
12192
12193 # type: =head2
12194 #: ../src/guestfs-actions.pod:4518
12195 msgid "guestfs_set_selinux"
12196 msgstr ""
12197
12198 # type: verbatim
12199 #: ../src/guestfs-actions.pod:4520
12200 #, no-wrap
12201 msgid ""
12202 " int guestfs_set_selinux (guestfs_h *g,\n"
12203 "\t\tint selinux);\n"
12204 "\n"
12205 msgstr ""
12206
12207 # type: textblock
12208 #: ../src/guestfs-actions.pod:4523 ../fish/guestfish-actions.pod:3501
12209 msgid ""
12210 "This sets the selinux flag that is passed to the appliance at boot time.  "
12211 "The default is C<selinux=0> (disabled)."
12212 msgstr ""
12213
12214 # type: textblock
12215 #: ../src/guestfs-actions.pod:4526 ../fish/guestfish-actions.pod:3504
12216 msgid ""
12217 "Note that if SELinux is enabled, it is always in Permissive mode "
12218 "(C<enforcing=0>)."
12219 msgstr ""
12220
12221 # type: =head2
12222 #: ../src/guestfs-actions.pod:4534
12223 msgid "guestfs_set_trace"
12224 msgstr ""
12225
12226 # type: verbatim
12227 #: ../src/guestfs-actions.pod:4536
12228 #, no-wrap
12229 msgid ""
12230 " int guestfs_set_trace (guestfs_h *g,\n"
12231 "\t\tint trace);\n"
12232 "\n"
12233 msgstr ""
12234
12235 # type: textblock
12236 #: ../src/guestfs-actions.pod:4539 ../fish/guestfish-actions.pod:3516
12237 msgid ""
12238 "If the command trace flag is set to 1, then commands are printed on stderr "
12239 "before they are executed in a format which is very similar to the one used "
12240 "by guestfish.  In other words, you can run a program with this enabled, and "
12241 "you will get out a script which you can feed to guestfish to perform the "
12242 "same set of actions."
12243 msgstr ""
12244
12245 # type: textblock
12246 #: ../src/guestfs-actions.pod:4546 ../fish/guestfish-actions.pod:3523
12247 msgid ""
12248 "If you want to trace C API calls into libguestfs (and other libraries) then "
12249 "possibly a better way is to use the external ltrace(1) command."
12250 msgstr ""
12251
12252 # type: textblock
12253 #: ../src/guestfs-actions.pod:4550 ../fish/guestfish-actions.pod:3527
12254 msgid ""
12255 "Command traces are disabled unless the environment variable "
12256 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
12257 msgstr ""
12258
12259 # type: =head2
12260 #: ../src/guestfs-actions.pod:4555
12261 msgid "guestfs_set_verbose"
12262 msgstr ""
12263
12264 # type: verbatim
12265 #: ../src/guestfs-actions.pod:4557
12266 #, no-wrap
12267 msgid ""
12268 " int guestfs_set_verbose (guestfs_h *g,\n"
12269 "\t\tint verbose);\n"
12270 "\n"
12271 msgstr ""
12272
12273 # type: textblock
12274 #: ../src/guestfs-actions.pod:4560 ../fish/guestfish-actions.pod:3536
12275 msgid "If C<verbose> is true, this turns on verbose messages (to C<stderr>)."
12276 msgstr ""
12277
12278 # type: textblock
12279 #: ../src/guestfs-actions.pod:4562 ../fish/guestfish-actions.pod:3538
12280 msgid ""
12281 "Verbose messages are disabled unless the environment variable "
12282 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
12283 msgstr ""
12284
12285 # type: =head2
12286 #: ../src/guestfs-actions.pod:4567
12287 msgid "guestfs_setcon"
12288 msgstr ""
12289
12290 # type: verbatim
12291 #: ../src/guestfs-actions.pod:4569
12292 #, no-wrap
12293 msgid ""
12294 " int guestfs_setcon (guestfs_h *g,\n"
12295 "\t\tconst char *context);\n"
12296 "\n"
12297 msgstr ""
12298
12299 # type: textblock
12300 #: ../src/guestfs-actions.pod:4572 ../fish/guestfish-actions.pod:3545
12301 msgid ""
12302 "This sets the SELinux security context of the daemon to the string "
12303 "C<context>."
12304 msgstr ""
12305
12306 # type: textblock
12307 #: ../src/guestfs-actions.pod:4575 ../fish/guestfish-actions.pod:3548
12308 msgid "See the documentation about SELINUX in L<guestfs(3)>."
12309 msgstr ""
12310
12311 # type: =head2
12312 #: ../src/guestfs-actions.pod:4579
12313 msgid "guestfs_setxattr"
12314 msgstr ""
12315
12316 # type: verbatim
12317 #: ../src/guestfs-actions.pod:4581
12318 #, no-wrap
12319 msgid ""
12320 " int guestfs_setxattr (guestfs_h *g,\n"
12321 "\t\tconst char *xattr,\n"
12322 "\t\tconst char *val,\n"
12323 "\t\tint vallen,\n"
12324 "\t\tconst char *path);\n"
12325 "\n"
12326 msgstr ""
12327
12328 # type: textblock
12329 #: ../src/guestfs-actions.pod:4587 ../fish/guestfish-actions.pod:3554
12330 msgid ""
12331 "This call sets the extended attribute named C<xattr> of the file C<path> to "
12332 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
12333 msgstr ""
12334
12335 # type: textblock
12336 #: ../src/guestfs-actions.pod:4591
12337 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
12338 msgstr ""
12339
12340 # type: =head2
12341 #: ../src/guestfs-actions.pod:4595
12342 msgid "guestfs_sfdisk"
12343 msgstr ""
12344
12345 # type: verbatim
12346 #: ../src/guestfs-actions.pod:4597
12347 #, no-wrap
12348 msgid ""
12349 " int guestfs_sfdisk (guestfs_h *g,\n"
12350 "\t\tconst char *device,\n"
12351 "\t\tint cyls,\n"
12352 "\t\tint heads,\n"
12353 "\t\tint sectors,\n"
12354 "\t\tchar *const *lines);\n"
12355 "\n"
12356 msgstr ""
12357
12358 # type: textblock
12359 #: ../src/guestfs-actions.pod:4604 ../fish/guestfish-actions.pod:3564
12360 msgid ""
12361 "This is a direct interface to the L<sfdisk(8)> program for creating "
12362 "partitions on block devices."
12363 msgstr ""
12364
12365 # type: textblock
12366 #: ../src/guestfs-actions.pod:4607 ../fish/guestfish-actions.pod:3567
12367 msgid "C<device> should be a block device, for example C</dev/sda>."
12368 msgstr ""
12369
12370 # type: textblock
12371 #: ../src/guestfs-actions.pod:4609 ../fish/guestfish-actions.pod:3569
12372 msgid ""
12373 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
12374 "sectors on the device, which are passed directly to sfdisk as the I<-C>, I<-"
12375 "H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
12376 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
12377 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
12378 "the kernel) cannot work out the right geometry and you will need to tell it."
12379 msgstr ""
12380
12381 # type: textblock
12382 #: ../src/guestfs-actions.pod:4617 ../fish/guestfish-actions.pod:3577
12383 msgid ""
12384 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
12385 "refer to the L<sfdisk(8)> manpage."
12386 msgstr ""
12387
12388 # type: textblock
12389 #: ../src/guestfs-actions.pod:4620 ../fish/guestfish-actions.pod:3580
12390 msgid ""
12391 "To create a single partition occupying the whole disk, you would pass "
12392 "C<lines> as a single element list, when the single element being the string "
12393 "C<,> (comma)."
12394 msgstr ""
12395
12396 # type: textblock
12397 #: ../src/guestfs-actions.pod:4624
12398 msgid ""
12399 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
12400 msgstr ""
12401
12402 # type: =head2
12403 #: ../src/guestfs-actions.pod:4632
12404 msgid "guestfs_sfdiskM"
12405 msgstr ""
12406
12407 # type: verbatim
12408 #: ../src/guestfs-actions.pod:4634
12409 #, no-wrap
12410 msgid ""
12411 " int guestfs_sfdiskM (guestfs_h *g,\n"
12412 "\t\tconst char *device,\n"
12413 "\t\tchar *const *lines);\n"
12414 "\n"
12415 msgstr ""
12416
12417 # type: textblock
12418 #: ../src/guestfs-actions.pod:4638
12419 msgid ""
12420 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
12421 "partition sizes are specified in megabytes only (rounded to the nearest "
12422 "cylinder) and you don't need to specify the cyls, heads and sectors "
12423 "parameters which were rarely if ever used anyway."
12424 msgstr ""
12425
12426 # type: textblock
12427 #: ../src/guestfs-actions.pod:4644
12428 msgid ""
12429 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
12430 "C<guestfs_part_disk>"
12431 msgstr ""
12432
12433 # type: =head2
12434 #: ../src/guestfs-actions.pod:4652
12435 msgid "guestfs_sfdisk_N"
12436 msgstr ""
12437
12438 # type: verbatim
12439 #: ../src/guestfs-actions.pod:4654
12440 #, no-wrap
12441 msgid ""
12442 " int guestfs_sfdisk_N (guestfs_h *g,\n"
12443 "\t\tconst char *device,\n"
12444 "\t\tint partnum,\n"
12445 "\t\tint cyls,\n"
12446 "\t\tint heads,\n"
12447 "\t\tint sectors,\n"
12448 "\t\tconst char *line);\n"
12449 "\n"
12450 msgstr ""
12451
12452 # type: textblock
12453 #: ../src/guestfs-actions.pod:4662 ../fish/guestfish-actions.pod:3610
12454 msgid ""
12455 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
12456 "(note: C<n> counts from 1)."
12457 msgstr ""
12458
12459 # type: textblock
12460 #: ../src/guestfs-actions.pod:4665
12461 msgid ""
12462 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
12463 "for the cyls/heads/sectors parameters."
12464 msgstr ""
12465
12466 # type: textblock
12467 #: ../src/guestfs-actions.pod:4668
12468 msgid "See also: C<guestfs_part_add>"
12469 msgstr ""
12470
12471 # type: =head2
12472 #: ../src/guestfs-actions.pod:4675
12473 msgid "guestfs_sfdisk_disk_geometry"
12474 msgstr ""
12475
12476 # type: verbatim
12477 #: ../src/guestfs-actions.pod:4677
12478 #, no-wrap
12479 msgid ""
12480 " char *guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
12481 "\t\tconst char *device);\n"
12482 "\n"
12483 msgstr ""
12484
12485 # type: textblock
12486 #: ../src/guestfs-actions.pod:4680
12487 msgid ""
12488 "This displays the disk geometry of C<device> read from the partition table.  "
12489 "Especially in the case where the underlying block device has been resized, "
12490 "this can be different from the kernel's idea of the geometry (see "
12491 "C<guestfs_sfdisk_kernel_geometry>)."
12492 msgstr ""
12493
12494 # type: textblock
12495 #: ../src/guestfs-actions.pod:4685 ../src/guestfs-actions.pod:4698
12496 #: ../fish/guestfish-actions.pod:3630 ../fish/guestfish-actions.pod:3639
12497 msgid "The result is in human-readable format, and not designed to be parsed."
12498 msgstr ""
12499
12500 # type: =head2
12501 #: ../src/guestfs-actions.pod:4691
12502 msgid "guestfs_sfdisk_kernel_geometry"
12503 msgstr ""
12504
12505 # type: verbatim
12506 #: ../src/guestfs-actions.pod:4693
12507 #, no-wrap
12508 msgid ""
12509 " char *guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
12510 "\t\tconst char *device);\n"
12511 "\n"
12512 msgstr ""
12513
12514 # type: textblock
12515 #: ../src/guestfs-actions.pod:4696 ../fish/guestfish-actions.pod:3637
12516 msgid "This displays the kernel's idea of the geometry of C<device>."
12517 msgstr ""
12518
12519 # type: =head2
12520 #: ../src/guestfs-actions.pod:4704
12521 msgid "guestfs_sfdisk_l"
12522 msgstr ""
12523
12524 # type: verbatim
12525 #: ../src/guestfs-actions.pod:4706
12526 #, no-wrap
12527 msgid ""
12528 " char *guestfs_sfdisk_l (guestfs_h *g,\n"
12529 "\t\tconst char *device);\n"
12530 "\n"
12531 msgstr ""
12532
12533 # type: textblock
12534 #: ../src/guestfs-actions.pod:4709 ../fish/guestfish-actions.pod:3646
12535 msgid ""
12536 "This displays the partition table on C<device>, in the human-readable output "
12537 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
12538 msgstr ""
12539
12540 # type: textblock
12541 #: ../src/guestfs-actions.pod:4713
12542 msgid "See also: C<guestfs_part_list>"
12543 msgstr ""
12544
12545 # type: =head2
12546 #: ../src/guestfs-actions.pod:4718
12547 msgid "guestfs_sh"
12548 msgstr ""
12549
12550 # type: verbatim
12551 #: ../src/guestfs-actions.pod:4720
12552 #, no-wrap
12553 msgid ""
12554 " char *guestfs_sh (guestfs_h *g,\n"
12555 "\t\tconst char *command);\n"
12556 "\n"
12557 msgstr ""
12558
12559 # type: textblock
12560 #: ../src/guestfs-actions.pod:4723 ../fish/guestfish-actions.pod:3656
12561 msgid ""
12562 "This call runs a command from the guest filesystem via the guest's C</bin/"
12563 "sh>."
12564 msgstr ""
12565
12566 # type: textblock
12567 #: ../src/guestfs-actions.pod:4726
12568 msgid "This is like C<guestfs_command>, but passes the command to:"
12569 msgstr ""
12570
12571 # type: verbatim
12572 #: ../src/guestfs-actions.pod:4728 ../fish/guestfish-actions.pod:3661
12573 #, no-wrap
12574 msgid ""
12575 " /bin/sh -c \"command\"\n"
12576 "\n"
12577 msgstr ""
12578
12579 # type: textblock
12580 #: ../src/guestfs-actions.pod:4730 ../fish/guestfish-actions.pod:3663
12581 msgid ""
12582 "Depending on the guest's shell, this usually results in wildcards being "
12583 "expanded, shell expressions being interpolated and so on."
12584 msgstr ""
12585
12586 # type: textblock
12587 #: ../src/guestfs-actions.pod:4734
12588 msgid "All the provisos about C<guestfs_command> apply to this call."
12589 msgstr ""
12590
12591 # type: =head2
12592 #: ../src/guestfs-actions.pod:4739
12593 msgid "guestfs_sh_lines"
12594 msgstr ""
12595
12596 # type: verbatim
12597 #: ../src/guestfs-actions.pod:4741
12598 #, no-wrap
12599 msgid ""
12600 " char **guestfs_sh_lines (guestfs_h *g,\n"
12601 "\t\tconst char *command);\n"
12602 "\n"
12603 msgstr ""
12604
12605 # type: textblock
12606 #: ../src/guestfs-actions.pod:4744
12607 msgid ""
12608 "This is the same as C<guestfs_sh>, but splits the result into a list of "
12609 "lines."
12610 msgstr ""
12611
12612 # type: textblock
12613 #: ../src/guestfs-actions.pod:4747
12614 msgid "See also: C<guestfs_command_lines>"
12615 msgstr ""
12616
12617 # type: =head2
12618 #: ../src/guestfs-actions.pod:4753
12619 msgid "guestfs_sleep"
12620 msgstr ""
12621
12622 # type: verbatim
12623 #: ../src/guestfs-actions.pod:4755
12624 #, no-wrap
12625 msgid ""
12626 " int guestfs_sleep (guestfs_h *g,\n"
12627 "\t\tint secs);\n"
12628 "\n"
12629 msgstr ""
12630
12631 # type: textblock
12632 #: ../src/guestfs-actions.pod:4758 ../fish/guestfish-actions.pod:3682
12633 msgid "Sleep for C<secs> seconds."
12634 msgstr ""
12635
12636 # type: =head2
12637 #: ../src/guestfs-actions.pod:4762 ../src/guestfs-structs.pod:109
12638 msgid "guestfs_stat"
12639 msgstr ""
12640
12641 # type: verbatim
12642 #: ../src/guestfs-actions.pod:4764
12643 #, no-wrap
12644 msgid ""
12645 " struct guestfs_stat *guestfs_stat (guestfs_h *g,\n"
12646 "\t\tconst char *path);\n"
12647 "\n"
12648 msgstr ""
12649
12650 # type: textblock
12651 #: ../src/guestfs-actions.pod:4769 ../fish/guestfish-actions.pod:3690
12652 msgid "This is the same as the C<stat(2)> system call."
12653 msgstr ""
12654
12655 # type: =head2
12656 #: ../src/guestfs-actions.pod:4775 ../src/guestfs-structs.pod:135
12657 msgid "guestfs_statvfs"
12658 msgstr ""
12659
12660 # type: verbatim
12661 #: ../src/guestfs-actions.pod:4777
12662 #, no-wrap
12663 msgid ""
12664 " struct guestfs_statvfs *guestfs_statvfs (guestfs_h *g,\n"
12665 "\t\tconst char *path);\n"
12666 "\n"
12667 msgstr ""
12668
12669 # type: textblock
12670 #: ../src/guestfs-actions.pod:4780 ../fish/guestfish-actions.pod:3696
12671 msgid ""
12672 "Returns file system statistics for any mounted file system.  C<path> should "
12673 "be a file or directory in the mounted file system (typically it is the mount "
12674 "point itself, but it doesn't need to be)."
12675 msgstr ""
12676
12677 # type: textblock
12678 #: ../src/guestfs-actions.pod:4784 ../fish/guestfish-actions.pod:3700
12679 msgid "This is the same as the C<statvfs(2)> system call."
12680 msgstr ""
12681
12682 # type: textblock
12683 #: ../src/guestfs-actions.pod:4786
12684 msgid ""
12685 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
12686 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
12687 msgstr ""
12688
12689 # type: =head2
12690 #: ../src/guestfs-actions.pod:4790
12691 msgid "guestfs_strings"
12692 msgstr ""
12693
12694 # type: verbatim
12695 #: ../src/guestfs-actions.pod:4792
12696 #, no-wrap
12697 msgid ""
12698 " char **guestfs_strings (guestfs_h *g,\n"
12699 "\t\tconst char *path);\n"
12700 "\n"
12701 msgstr ""
12702
12703 # type: textblock
12704 #: ../src/guestfs-actions.pod:4795 ../fish/guestfish-actions.pod:3706
12705 msgid ""
12706 "This runs the L<strings(1)> command on a file and returns the list of "
12707 "printable strings found."
12708 msgstr ""
12709
12710 # type: =head2
12711 #: ../src/guestfs-actions.pod:4805
12712 msgid "guestfs_strings_e"
12713 msgstr ""
12714
12715 # type: verbatim
12716 #: ../src/guestfs-actions.pod:4807
12717 #, no-wrap
12718 msgid ""
12719 " char **guestfs_strings_e (guestfs_h *g,\n"
12720 "\t\tconst char *encoding,\n"
12721 "\t\tconst char *path);\n"
12722 "\n"
12723 msgstr ""
12724
12725 # type: textblock
12726 #: ../src/guestfs-actions.pod:4811
12727 msgid ""
12728 "This is like the C<guestfs_strings> command, but allows you to specify the "
12729 "encoding of strings that are looked for in the source file C<path>."
12730 msgstr ""
12731
12732 # type: textblock
12733 #: ../src/guestfs-actions.pod:4815 ../fish/guestfish-actions.pod:3720
12734 msgid "Allowed encodings are:"
12735 msgstr ""
12736
12737 # type: =item
12738 #: ../src/guestfs-actions.pod:4819 ../fish/guestfish-actions.pod:3724
12739 msgid "s"
12740 msgstr ""
12741
12742 # type: textblock
12743 #: ../src/guestfs-actions.pod:4821
12744 msgid ""
12745 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
12746 "ISO-8859-X (this is what C<guestfs_strings> uses)."
12747 msgstr ""
12748
12749 # type: =item
12750 #: ../src/guestfs-actions.pod:4824 ../fish/guestfish-actions.pod:3729
12751 msgid "S"
12752 msgstr ""
12753
12754 # type: textblock
12755 #: ../src/guestfs-actions.pod:4826 ../fish/guestfish-actions.pod:3731
12756 msgid "Single 8-bit-byte characters."
12757 msgstr ""
12758
12759 # type: =item
12760 #: ../src/guestfs-actions.pod:4828 ../fish/guestfish-actions.pod:3733
12761 msgid "b"
12762 msgstr ""
12763
12764 # type: textblock
12765 #: ../src/guestfs-actions.pod:4830 ../fish/guestfish-actions.pod:3735
12766 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
12767 msgstr ""
12768
12769 # type: =item
12770 #: ../src/guestfs-actions.pod:4833 ../fish/guestfish-actions.pod:3738
12771 msgid "l (lower case letter L)"
12772 msgstr ""
12773
12774 # type: textblock
12775 #: ../src/guestfs-actions.pod:4835 ../fish/guestfish-actions.pod:3740
12776 msgid ""
12777 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
12778 "examining binaries in Windows guests."
12779 msgstr ""
12780
12781 # type: =item
12782 #: ../src/guestfs-actions.pod:4838 ../fish/guestfish-actions.pod:3743
12783 msgid "B"
12784 msgstr ""
12785
12786 # type: textblock
12787 #: ../src/guestfs-actions.pod:4840 ../fish/guestfish-actions.pod:3745
12788 msgid "32-bit big endian such as UCS-4BE."
12789 msgstr ""
12790
12791 # type: =item
12792 #: ../src/guestfs-actions.pod:4842 ../fish/guestfish-actions.pod:3747
12793 msgid "L"
12794 msgstr ""
12795
12796 # type: textblock
12797 #: ../src/guestfs-actions.pod:4844 ../fish/guestfish-actions.pod:3749
12798 msgid "32-bit little endian such as UCS-4LE."
12799 msgstr ""
12800
12801 # type: textblock
12802 #: ../src/guestfs-actions.pod:4848 ../fish/guestfish-actions.pod:3753
12803 msgid "The returned strings are transcoded to UTF-8."
12804 msgstr ""
12805
12806 # type: =head2
12807 #: ../src/guestfs-actions.pod:4857
12808 msgid "guestfs_swapoff_device"
12809 msgstr ""
12810
12811 # type: verbatim
12812 #: ../src/guestfs-actions.pod:4859
12813 #, no-wrap
12814 msgid ""
12815 " int guestfs_swapoff_device (guestfs_h *g,\n"
12816 "\t\tconst char *device);\n"
12817 "\n"
12818 msgstr ""
12819
12820 # type: textblock
12821 #: ../src/guestfs-actions.pod:4862
12822 msgid ""
12823 "This command disables the libguestfs appliance swap device or partition "
12824 "named C<device>.  See C<guestfs_swapon_device>."
12825 msgstr ""
12826
12827 # type: =head2
12828 #: ../src/guestfs-actions.pod:4868
12829 msgid "guestfs_swapoff_file"
12830 msgstr ""
12831
12832 # type: verbatim
12833 #: ../src/guestfs-actions.pod:4870
12834 #, no-wrap
12835 msgid ""
12836 " int guestfs_swapoff_file (guestfs_h *g,\n"
12837 "\t\tconst char *file);\n"
12838 "\n"
12839 msgstr ""
12840
12841 # type: textblock
12842 #: ../src/guestfs-actions.pod:4873 ../fish/guestfish-actions.pod:3770
12843 msgid "This command disables the libguestfs appliance swap on file."
12844 msgstr ""
12845
12846 # type: =head2
12847 #: ../src/guestfs-actions.pod:4877
12848 msgid "guestfs_swapoff_label"
12849 msgstr ""
12850
12851 # type: verbatim
12852 #: ../src/guestfs-actions.pod:4879
12853 #, no-wrap
12854 msgid ""
12855 " int guestfs_swapoff_label (guestfs_h *g,\n"
12856 "\t\tconst char *label);\n"
12857 "\n"
12858 msgstr ""
12859
12860 # type: textblock
12861 #: ../src/guestfs-actions.pod:4882 ../fish/guestfish-actions.pod:3776
12862 msgid ""
12863 "This command disables the libguestfs appliance swap on labeled swap "
12864 "partition."
12865 msgstr ""
12866
12867 # type: =head2
12868 #: ../src/guestfs-actions.pod:4887
12869 msgid "guestfs_swapoff_uuid"
12870 msgstr ""
12871
12872 # type: verbatim
12873 #: ../src/guestfs-actions.pod:4889
12874 #, no-wrap
12875 msgid ""
12876 " int guestfs_swapoff_uuid (guestfs_h *g,\n"
12877 "\t\tconst char *uuid);\n"
12878 "\n"
12879 msgstr ""
12880
12881 # type: textblock
12882 #: ../src/guestfs-actions.pod:4892 ../fish/guestfish-actions.pod:3783
12883 msgid ""
12884 "This command disables the libguestfs appliance swap partition with the given "
12885 "UUID."
12886 msgstr ""
12887
12888 # type: =head2
12889 #: ../src/guestfs-actions.pod:4897
12890 msgid "guestfs_swapon_device"
12891 msgstr ""
12892
12893 # type: verbatim
12894 #: ../src/guestfs-actions.pod:4899
12895 #, no-wrap
12896 msgid ""
12897 " int guestfs_swapon_device (guestfs_h *g,\n"
12898 "\t\tconst char *device);\n"
12899 "\n"
12900 msgstr ""
12901
12902 # type: textblock
12903 #: ../src/guestfs-actions.pod:4902
12904 msgid ""
12905 "This command enables the libguestfs appliance to use the swap device or "
12906 "partition named C<device>.  The increased memory is made available for all "
12907 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
12908 msgstr ""
12909
12910 # type: textblock
12911 #: ../src/guestfs-actions.pod:4907 ../fish/guestfish-actions.pod:3795
12912 msgid ""
12913 "Note that you should not swap to existing guest swap partitions unless you "
12914 "know what you are doing.  They may contain hibernation information, or other "
12915 "information that the guest doesn't want you to trash.  You also risk leaking "
12916 "information about the host to the guest this way.  Instead, attach a new "
12917 "host device to the guest and swap on that."
12918 msgstr ""
12919
12920 # type: =head2
12921 #: ../src/guestfs-actions.pod:4916
12922 msgid "guestfs_swapon_file"
12923 msgstr ""
12924
12925 # type: verbatim
12926 #: ../src/guestfs-actions.pod:4918
12927 #, no-wrap
12928 msgid ""
12929 " int guestfs_swapon_file (guestfs_h *g,\n"
12930 "\t\tconst char *file);\n"
12931 "\n"
12932 msgstr ""
12933
12934 # type: textblock
12935 #: ../src/guestfs-actions.pod:4921
12936 msgid ""
12937 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
12938 "notes."
12939 msgstr ""
12940
12941 # type: =head2
12942 #: ../src/guestfs-actions.pod:4926
12943 msgid "guestfs_swapon_label"
12944 msgstr ""
12945
12946 # type: verbatim
12947 #: ../src/guestfs-actions.pod:4928
12948 #, no-wrap
12949 msgid ""
12950 " int guestfs_swapon_label (guestfs_h *g,\n"
12951 "\t\tconst char *label);\n"
12952 "\n"
12953 msgstr ""
12954
12955 # type: textblock
12956 #: ../src/guestfs-actions.pod:4931
12957 msgid ""
12958 "This command enables swap to a labeled swap partition.  See "
12959 "C<guestfs_swapon_device> for other notes."
12960 msgstr ""
12961
12962 # type: =head2
12963 #: ../src/guestfs-actions.pod:4936
12964 msgid "guestfs_swapon_uuid"
12965 msgstr ""
12966
12967 # type: verbatim
12968 #: ../src/guestfs-actions.pod:4938
12969 #, no-wrap
12970 msgid ""
12971 " int guestfs_swapon_uuid (guestfs_h *g,\n"
12972 "\t\tconst char *uuid);\n"
12973 "\n"
12974 msgstr ""
12975
12976 # type: textblock
12977 #: ../src/guestfs-actions.pod:4941
12978 msgid ""
12979 "This command enables swap to a swap partition with the given UUID.  See "
12980 "C<guestfs_swapon_device> for other notes."
12981 msgstr ""
12982
12983 # type: =head2
12984 #: ../src/guestfs-actions.pod:4946
12985 msgid "guestfs_sync"
12986 msgstr ""
12987
12988 # type: verbatim
12989 #: ../src/guestfs-actions.pod:4948
12990 #, no-wrap
12991 msgid ""
12992 " int guestfs_sync (guestfs_h *g);\n"
12993 "\n"
12994 msgstr ""
12995
12996 # type: textblock
12997 #: ../src/guestfs-actions.pod:4950 ../fish/guestfish-actions.pod:3827
12998 msgid ""
12999 "This syncs the disk, so that any writes are flushed through to the "
13000 "underlying disk image."
13001 msgstr ""
13002
13003 # type: textblock
13004 #: ../src/guestfs-actions.pod:4953 ../fish/guestfish-actions.pod:3830
13005 msgid ""
13006 "You should always call this if you have modified a disk image, before "
13007 "closing the handle."
13008 msgstr ""
13009
13010 # type: =head2
13011 #: ../src/guestfs-actions.pod:4958
13012 msgid "guestfs_tail"
13013 msgstr ""
13014
13015 # type: verbatim
13016 #: ../src/guestfs-actions.pod:4960
13017 #, no-wrap
13018 msgid ""
13019 " char **guestfs_tail (guestfs_h *g,\n"
13020 "\t\tconst char *path);\n"
13021 "\n"
13022 msgstr ""
13023
13024 # type: textblock
13025 #: ../src/guestfs-actions.pod:4963 ../fish/guestfish-actions.pod:3837
13026 msgid ""
13027 "This command returns up to the last 10 lines of a file as a list of strings."
13028 msgstr ""
13029
13030 # type: =head2
13031 #: ../src/guestfs-actions.pod:4973
13032 msgid "guestfs_tail_n"
13033 msgstr ""
13034
13035 # type: verbatim
13036 #: ../src/guestfs-actions.pod:4975
13037 #, no-wrap
13038 msgid ""
13039 " char **guestfs_tail_n (guestfs_h *g,\n"
13040 "\t\tint nrlines,\n"
13041 "\t\tconst char *path);\n"
13042 "\n"
13043 msgstr ""
13044
13045 # type: textblock
13046 #: ../src/guestfs-actions.pod:4979 ../fish/guestfish-actions.pod:3847
13047 msgid ""
13048 "If the parameter C<nrlines> is a positive number, this returns the last "
13049 "C<nrlines> lines of the file C<path>."
13050 msgstr ""
13051
13052 # type: textblock
13053 #: ../src/guestfs-actions.pod:4982 ../fish/guestfish-actions.pod:3850
13054 msgid ""
13055 "If the parameter C<nrlines> is a negative number, this returns lines from "
13056 "the file C<path>, starting with the C<-nrlines>th line."
13057 msgstr ""
13058
13059 # type: =head2
13060 #: ../src/guestfs-actions.pod:4994
13061 msgid "guestfs_tar_in"
13062 msgstr ""
13063
13064 # type: verbatim
13065 #: ../src/guestfs-actions.pod:4996
13066 #, no-wrap
13067 msgid ""
13068 " int guestfs_tar_in (guestfs_h *g,\n"
13069 "\t\tconst char *tarfile,\n"
13070 "\t\tconst char *directory);\n"
13071 "\n"
13072 msgstr ""
13073
13074 # type: textblock
13075 #: ../src/guestfs-actions.pod:5000 ../fish/guestfish-actions.pod:3862
13076 msgid ""
13077 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
13078 "tar file) into C<directory>."
13079 msgstr ""
13080
13081 # type: textblock
13082 #: ../src/guestfs-actions.pod:5003
13083 msgid ""
13084 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
13085 msgstr ""
13086
13087 # type: =head2
13088 #: ../src/guestfs-actions.pod:5008
13089 msgid "guestfs_tar_out"
13090 msgstr ""
13091
13092 # type: verbatim
13093 #: ../src/guestfs-actions.pod:5010
13094 #, no-wrap
13095 msgid ""
13096 " int guestfs_tar_out (guestfs_h *g,\n"
13097 "\t\tconst char *directory,\n"
13098 "\t\tconst char *tarfile);\n"
13099 "\n"
13100 msgstr ""
13101
13102 # type: textblock
13103 #: ../src/guestfs-actions.pod:5014 ../fish/guestfish-actions.pod:3874
13104 msgid ""
13105 "This command packs the contents of C<directory> and downloads it to local "
13106 "file C<tarfile>."
13107 msgstr ""
13108
13109 # type: textblock
13110 #: ../src/guestfs-actions.pod:5017
13111 msgid ""
13112 "To download a compressed tarball, use C<guestfs_tgz_out> or "
13113 "C<guestfs_txz_out>."
13114 msgstr ""
13115
13116 # type: =head2
13117 #: ../src/guestfs-actions.pod:5022
13118 msgid "guestfs_tgz_in"
13119 msgstr ""
13120
13121 # type: verbatim
13122 #: ../src/guestfs-actions.pod:5024
13123 #, no-wrap
13124 msgid ""
13125 " int guestfs_tgz_in (guestfs_h *g,\n"
13126 "\t\tconst char *tarball,\n"
13127 "\t\tconst char *directory);\n"
13128 "\n"
13129 msgstr ""
13130
13131 # type: textblock
13132 #: ../src/guestfs-actions.pod:5028 ../fish/guestfish-actions.pod:3886
13133 msgid ""
13134 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
13135 "tar file) into C<directory>."
13136 msgstr ""
13137
13138 # type: textblock
13139 #: ../src/guestfs-actions.pod:5031
13140 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
13141 msgstr ""
13142
13143 # type: =head2
13144 #: ../src/guestfs-actions.pod:5035
13145 msgid "guestfs_tgz_out"
13146 msgstr ""
13147
13148 # type: verbatim
13149 #: ../src/guestfs-actions.pod:5037
13150 #, no-wrap
13151 msgid ""
13152 " int guestfs_tgz_out (guestfs_h *g,\n"
13153 "\t\tconst char *directory,\n"
13154 "\t\tconst char *tarball);\n"
13155 "\n"
13156 msgstr ""
13157
13158 # type: textblock
13159 #: ../src/guestfs-actions.pod:5041 ../fish/guestfish-actions.pod:3897
13160 msgid ""
13161 "This command packs the contents of C<directory> and downloads it to local "
13162 "file C<tarball>."
13163 msgstr ""
13164
13165 # type: textblock
13166 #: ../src/guestfs-actions.pod:5044
13167 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
13168 msgstr ""
13169
13170 # type: =head2
13171 #: ../src/guestfs-actions.pod:5048
13172 msgid "guestfs_touch"
13173 msgstr ""
13174
13175 # type: verbatim
13176 #: ../src/guestfs-actions.pod:5050
13177 #, no-wrap
13178 msgid ""
13179 " int guestfs_touch (guestfs_h *g,\n"
13180 "\t\tconst char *path);\n"
13181 "\n"
13182 msgstr ""
13183
13184 # type: textblock
13185 #: ../src/guestfs-actions.pod:5053 ../fish/guestfish-actions.pod:3908
13186 msgid ""
13187 "Touch acts like the L<touch(1)> command.  It can be used to update the "
13188 "timestamps on a file, or, if the file does not exist, to create a new zero-"
13189 "length file."
13190 msgstr ""
13191
13192 # type: textblock
13193 #: ../src/guestfs-actions.pod:5057 ../fish/guestfish-actions.pod:3912
13194 msgid ""
13195 "This command only works on regular files, and will fail on other file types "
13196 "such as directories, symbolic links, block special etc."
13197 msgstr ""
13198
13199 # type: =head2
13200 #: ../src/guestfs-actions.pod:5062
13201 msgid "guestfs_truncate"
13202 msgstr ""
13203
13204 # type: verbatim
13205 #: ../src/guestfs-actions.pod:5064
13206 #, no-wrap
13207 msgid ""
13208 " int guestfs_truncate (guestfs_h *g,\n"
13209 "\t\tconst char *path);\n"
13210 "\n"
13211 msgstr ""
13212
13213 # type: textblock
13214 #: ../src/guestfs-actions.pod:5067 ../fish/guestfish-actions.pod:3919
13215 msgid ""
13216 "This command truncates C<path> to a zero-length file.  The file must exist "
13217 "already."
13218 msgstr ""
13219
13220 # type: =head2
13221 #: ../src/guestfs-actions.pod:5072
13222 msgid "guestfs_truncate_size"
13223 msgstr ""
13224
13225 # type: verbatim
13226 #: ../src/guestfs-actions.pod:5074
13227 #, no-wrap
13228 msgid ""
13229 " int guestfs_truncate_size (guestfs_h *g,\n"
13230 "\t\tconst char *path,\n"
13231 "\t\tint64_t size);\n"
13232 "\n"
13233 msgstr ""
13234
13235 # type: textblock
13236 #: ../src/guestfs-actions.pod:5078 ../fish/guestfish-actions.pod:3926
13237 msgid ""
13238 "This command truncates C<path> to size C<size> bytes.  The file must exist "
13239 "already."
13240 msgstr ""
13241
13242 # type: textblock
13243 #: ../src/guestfs-actions.pod:5081
13244 msgid ""
13245 "If the current file size is less than C<size> then the file is extended to "
13246 "the required size with zero bytes.  This creates a sparse file (ie. disk "
13247 "blocks are not allocated for the file until you write to it).  To create a "
13248 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
13249 msgstr ""
13250
13251 # type: =head2
13252 #: ../src/guestfs-actions.pod:5089
13253 msgid "guestfs_tune2fs_l"
13254 msgstr ""
13255
13256 # type: verbatim
13257 #: ../src/guestfs-actions.pod:5091
13258 #, no-wrap
13259 msgid ""
13260 " char **guestfs_tune2fs_l (guestfs_h *g,\n"
13261 "\t\tconst char *device);\n"
13262 "\n"
13263 msgstr ""
13264
13265 # type: textblock
13266 #: ../src/guestfs-actions.pod:5094 ../fish/guestfish-actions.pod:3939
13267 msgid ""
13268 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
13269 "C<device>."
13270 msgstr ""
13271
13272 # type: textblock
13273 #: ../src/guestfs-actions.pod:5097 ../fish/guestfish-actions.pod:3942
13274 msgid ""
13275 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
13276 "for more details.  The list of fields returned isn't clearly defined, and "
13277 "depends on both the version of C<tune2fs> that libguestfs was built against, "
13278 "and the filesystem itself."
13279 msgstr ""
13280
13281 # type: =head2
13282 #: ../src/guestfs-actions.pod:5108
13283 msgid "guestfs_txz_in"
13284 msgstr ""
13285
13286 # type: verbatim
13287 #: ../src/guestfs-actions.pod:5110
13288 #, no-wrap
13289 msgid ""
13290 " int guestfs_txz_in (guestfs_h *g,\n"
13291 "\t\tconst char *tarball,\n"
13292 "\t\tconst char *directory);\n"
13293 "\n"
13294 msgstr ""
13295
13296 # type: textblock
13297 #: ../src/guestfs-actions.pod:5114 ../fish/guestfish-actions.pod:3951
13298 msgid ""
13299 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
13300 "tar file) into C<directory>."
13301 msgstr ""
13302
13303 # type: =head2
13304 #: ../src/guestfs-actions.pod:5119
13305 msgid "guestfs_txz_out"
13306 msgstr ""
13307
13308 # type: verbatim
13309 #: ../src/guestfs-actions.pod:5121
13310 #, no-wrap
13311 msgid ""
13312 " int guestfs_txz_out (guestfs_h *g,\n"
13313 "\t\tconst char *directory,\n"
13314 "\t\tconst char *tarball);\n"
13315 "\n"
13316 msgstr ""
13317
13318 # type: textblock
13319 #: ../src/guestfs-actions.pod:5125 ../fish/guestfish-actions.pod:3960
13320 msgid ""
13321 "This command packs the contents of C<directory> and downloads it to local "
13322 "file C<tarball> (as an xz compressed tar archive)."
13323 msgstr ""
13324
13325 # type: =head2
13326 #: ../src/guestfs-actions.pod:5130
13327 msgid "guestfs_umask"
13328 msgstr ""
13329
13330 # type: verbatim
13331 #: ../src/guestfs-actions.pod:5132
13332 #, no-wrap
13333 msgid ""
13334 " int guestfs_umask (guestfs_h *g,\n"
13335 "\t\tint mask);\n"
13336 "\n"
13337 msgstr ""
13338
13339 # type: textblock
13340 #: ../src/guestfs-actions.pod:5135 ../fish/guestfish-actions.pod:3969
13341 msgid ""
13342 "This function sets the mask used for creating new files and device nodes to "
13343 "C<mask & 0777>."
13344 msgstr ""
13345
13346 # type: textblock
13347 #: ../src/guestfs-actions.pod:5138 ../fish/guestfish-actions.pod:3972
13348 msgid ""
13349 "Typical umask values would be C<022> which creates new files with "
13350 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
13351 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
13352 msgstr ""
13353
13354 # type: textblock
13355 #: ../src/guestfs-actions.pod:5143 ../fish/guestfish-actions.pod:3977
13356 msgid ""
13357 "The default umask is C<022>.  This is important because it means that "
13358 "directories and device nodes will be created with C<0644> or C<0755> mode "
13359 "even if you specify C<0777>."
13360 msgstr ""
13361
13362 # type: textblock
13363 #: ../src/guestfs-actions.pod:5147
13364 msgid ""
13365 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
13366 "C<guestfs_mkdir>."
13367 msgstr ""
13368
13369 # type: textblock
13370 #: ../src/guestfs-actions.pod:5150 ../fish/guestfish-actions.pod:3984
13371 msgid "This call returns the previous umask."
13372 msgstr ""
13373
13374 # type: =head2
13375 #: ../src/guestfs-actions.pod:5154
13376 msgid "guestfs_umount"
13377 msgstr ""
13378
13379 # type: verbatim
13380 #: ../src/guestfs-actions.pod:5156
13381 #, no-wrap
13382 msgid ""
13383 " int guestfs_umount (guestfs_h *g,\n"
13384 "\t\tconst char *pathordevice);\n"
13385 "\n"
13386 msgstr ""
13387
13388 # type: textblock
13389 #: ../src/guestfs-actions.pod:5159 ../fish/guestfish-actions.pod:3992
13390 msgid ""
13391 "This unmounts the given filesystem.  The filesystem may be specified either "
13392 "by its mountpoint (path) or the device which contains the filesystem."
13393 msgstr ""
13394
13395 # type: =head2
13396 #: ../src/guestfs-actions.pod:5165
13397 msgid "guestfs_umount_all"
13398 msgstr ""
13399
13400 # type: verbatim
13401 #: ../src/guestfs-actions.pod:5167
13402 #, no-wrap
13403 msgid ""
13404 " int guestfs_umount_all (guestfs_h *g);\n"
13405 "\n"
13406 msgstr ""
13407
13408 # type: textblock
13409 #: ../src/guestfs-actions.pod:5169 ../fish/guestfish-actions.pod:4002
13410 msgid "This unmounts all mounted filesystems."
13411 msgstr ""
13412
13413 # type: textblock
13414 #: ../src/guestfs-actions.pod:5171 ../fish/guestfish-actions.pod:4004
13415 msgid "Some internal mounts are not unmounted by this call."
13416 msgstr ""
13417
13418 # type: =head2
13419 #: ../src/guestfs-actions.pod:5175
13420 msgid "guestfs_upload"
13421 msgstr ""
13422
13423 # type: verbatim
13424 #: ../src/guestfs-actions.pod:5177
13425 #, no-wrap
13426 msgid ""
13427 " int guestfs_upload (guestfs_h *g,\n"
13428 "\t\tconst char *filename,\n"
13429 "\t\tconst char *remotefilename);\n"
13430 "\n"
13431 msgstr ""
13432
13433 # type: textblock
13434 #: ../src/guestfs-actions.pod:5181 ../src/guestfs-actions.pod:5197
13435 #: ../fish/guestfish-actions.pod:4010 ../fish/guestfish-actions.pod:4023
13436 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
13437 msgstr ""
13438
13439 # type: textblock
13440 #: ../src/guestfs-actions.pod:5186
13441 msgid "See also C<guestfs_download>."
13442 msgstr ""
13443
13444 # type: =head2
13445 #: ../src/guestfs-actions.pod:5190
13446 msgid "guestfs_upload_offset"
13447 msgstr ""
13448
13449 # type: verbatim
13450 #: ../src/guestfs-actions.pod:5192
13451 #, no-wrap
13452 msgid ""
13453 " int guestfs_upload_offset (guestfs_h *g,\n"
13454 "\t\tconst char *filename,\n"
13455 "\t\tconst char *remotefilename,\n"
13456 "\t\tint64_t offset);\n"
13457 "\n"
13458 msgstr ""
13459
13460 # type: textblock
13461 #: ../src/guestfs-actions.pod:5200 ../fish/guestfish-actions.pod:4026
13462 msgid ""
13463 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
13464 "The intention is to overwrite parts of existing files or devices, although "
13465 "if a non-existant file is specified then it is created with a \"hole\" "
13466 "before C<offset>.  The size of the data written is implicit in the size of "
13467 "the source C<filename>."
13468 msgstr ""
13469
13470 # type: textblock
13471 #: ../src/guestfs-actions.pod:5207
13472 msgid ""
13473 "Note that there is no limit on the amount of data that can be uploaded with "
13474 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
13475 "full amount unless an error occurs."
13476 msgstr ""
13477
13478 # type: textblock
13479 #: ../src/guestfs-actions.pod:5212
13480 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
13481 msgstr ""
13482
13483 # type: =head2
13484 #: ../src/guestfs-actions.pod:5216
13485 msgid "guestfs_utimens"
13486 msgstr ""
13487
13488 # type: verbatim
13489 #: ../src/guestfs-actions.pod:5218
13490 #, no-wrap
13491 msgid ""
13492 " int guestfs_utimens (guestfs_h *g,\n"
13493 "\t\tconst char *path,\n"
13494 "\t\tint64_t atsecs,\n"
13495 "\t\tint64_t atnsecs,\n"
13496 "\t\tint64_t mtsecs,\n"
13497 "\t\tint64_t mtnsecs);\n"
13498 "\n"
13499 msgstr ""
13500
13501 # type: textblock
13502 #: ../src/guestfs-actions.pod:5225 ../fish/guestfish-actions.pod:4046
13503 msgid "This command sets the timestamps of a file with nanosecond precision."
13504 msgstr ""
13505
13506 # type: textblock
13507 #: ../src/guestfs-actions.pod:5228 ../fish/guestfish-actions.pod:4049
13508 msgid ""
13509 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
13510 "from the epoch."
13511 msgstr ""
13512
13513 # type: textblock
13514 #: ../src/guestfs-actions.pod:5231 ../fish/guestfish-actions.pod:4052
13515 msgid ""
13516 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
13517 "nanoseconds from the epoch."
13518 msgstr ""
13519
13520 # type: textblock
13521 #: ../src/guestfs-actions.pod:5234 ../fish/guestfish-actions.pod:4055
13522 msgid ""
13523 "If the C<*nsecs> field contains the special value C<-1> then the "
13524 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
13525 "ignored in this case)."
13526 msgstr ""
13527
13528 # type: textblock
13529 #: ../src/guestfs-actions.pod:5238 ../fish/guestfish-actions.pod:4059
13530 msgid ""
13531 "If the C<*nsecs> field contains the special value C<-2> then the "
13532 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
13533 "in this case)."
13534 msgstr ""
13535
13536 # type: =head2
13537 #: ../src/guestfs-actions.pod:5244 ../src/guestfs-structs.pod:175
13538 msgid "guestfs_version"
13539 msgstr ""
13540
13541 # type: verbatim
13542 #: ../src/guestfs-actions.pod:5246
13543 #, no-wrap
13544 msgid ""
13545 " struct guestfs_version *guestfs_version (guestfs_h *g);\n"
13546 "\n"
13547 msgstr ""
13548
13549 # type: textblock
13550 #: ../src/guestfs-actions.pod:5248 ../fish/guestfish-actions.pod:4067
13551 msgid ""
13552 "Return the libguestfs version number that the program is linked against."
13553 msgstr ""
13554
13555 # type: textblock
13556 #: ../src/guestfs-actions.pod:5251 ../fish/guestfish-actions.pod:4070
13557 msgid ""
13558 "Note that because of dynamic linking this is not necessarily the version of "
13559 "libguestfs that you compiled against.  You can compile the program, and then "
13560 "at runtime dynamically link against a completely different C<libguestfs.so> "
13561 "library."
13562 msgstr ""
13563
13564 # type: textblock
13565 #: ../src/guestfs-actions.pod:5256 ../fish/guestfish-actions.pod:4075
13566 msgid ""
13567 "This call was added in version C<1.0.58>.  In previous versions of "
13568 "libguestfs there was no way to get the version number.  From C code you can "
13569 "use dynamic linker functions to find out if this symbol exists (if it "
13570 "doesn't, then it's an earlier version)."
13571 msgstr ""
13572
13573 # type: textblock
13574 #: ../src/guestfs-actions.pod:5262 ../fish/guestfish-actions.pod:4081
13575 msgid ""
13576 "The call returns a structure with four elements.  The first three (C<major>, "
13577 "C<minor> and C<release>) are numbers and correspond to the usual version "
13578 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
13579 "but may be used for distro-specific information."
13580 msgstr ""
13581
13582 # type: textblock
13583 #: ../src/guestfs-actions.pod:5268 ../fish/guestfish-actions.pod:4087
13584 msgid ""
13585 "To construct the original version string: C<$major.$minor.$release$extra>"
13586 msgstr ""
13587
13588 # type: textblock
13589 #: ../src/guestfs-actions.pod:5271 ../fish/guestfish-actions.pod:4090
13590 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
13591 msgstr ""
13592
13593 # type: textblock
13594 #: ../src/guestfs-actions.pod:5273
13595 msgid ""
13596 "I<Note:> Don't use this call to test for availability of features.  In "
13597 "enterprise distributions we backport features from later versions into "
13598 "earlier versions, making this an unreliable way to test for features.  Use "
13599 "C<guestfs_available> instead."
13600 msgstr ""
13601
13602 # type: textblock
13603 #: ../src/guestfs-actions.pod:5279
13604 msgid ""
13605 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
13606 "error.  I<The caller must call C<guestfs_free_version> after use>."
13607 msgstr ""
13608
13609 # type: =head2
13610 #: ../src/guestfs-actions.pod:5283
13611 msgid "guestfs_vfs_label"
13612 msgstr ""
13613
13614 # type: verbatim
13615 #: ../src/guestfs-actions.pod:5285
13616 #, no-wrap
13617 msgid ""
13618 " char *guestfs_vfs_label (guestfs_h *g,\n"
13619 "\t\tconst char *device);\n"
13620 "\n"
13621 msgstr ""
13622
13623 # type: textblock
13624 #: ../src/guestfs-actions.pod:5288 ../fish/guestfish-actions.pod:4102
13625 msgid "This returns the filesystem label of the filesystem on C<device>."
13626 msgstr ""
13627
13628 # type: textblock
13629 #: ../src/guestfs-actions.pod:5291 ../fish/guestfish-actions.pod:4105
13630 msgid "If the filesystem is unlabeled, this returns the empty string."
13631 msgstr ""
13632
13633 # type: textblock
13634 #: ../src/guestfs-actions.pod:5293
13635 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
13636 msgstr ""
13637
13638 # type: =head2
13639 #: ../src/guestfs-actions.pod:5298
13640 msgid "guestfs_vfs_type"
13641 msgstr ""
13642
13643 # type: verbatim
13644 #: ../src/guestfs-actions.pod:5300
13645 #, no-wrap
13646 msgid ""
13647 " char *guestfs_vfs_type (guestfs_h *g,\n"
13648 "\t\tconst char *device);\n"
13649 "\n"
13650 msgstr ""
13651
13652 # type: textblock
13653 #: ../src/guestfs-actions.pod:5303 ../fish/guestfish-actions.pod:4113
13654 msgid ""
13655 "This command gets the filesystem type corresponding to the filesystem on "
13656 "C<device>."
13657 msgstr ""
13658
13659 # type: textblock
13660 #: ../src/guestfs-actions.pod:5306 ../fish/guestfish-actions.pod:4116
13661 msgid ""
13662 "For most filesystems, the result is the name of the Linux VFS module which "
13663 "would be used to mount this filesystem if you mounted it without specifying "
13664 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
13665 msgstr ""
13666
13667 # type: =head2
13668 #: ../src/guestfs-actions.pod:5314
13669 msgid "guestfs_vfs_uuid"
13670 msgstr ""
13671
13672 # type: verbatim
13673 #: ../src/guestfs-actions.pod:5316
13674 #, no-wrap
13675 msgid ""
13676 " char *guestfs_vfs_uuid (guestfs_h *g,\n"
13677 "\t\tconst char *device);\n"
13678 "\n"
13679 msgstr ""
13680
13681 # type: textblock
13682 #: ../src/guestfs-actions.pod:5319 ../fish/guestfish-actions.pod:4125
13683 msgid "This returns the filesystem UUID of the filesystem on C<device>."
13684 msgstr ""
13685
13686 # type: textblock
13687 #: ../src/guestfs-actions.pod:5322 ../fish/guestfish-actions.pod:4128
13688 msgid "If the filesystem does not have a UUID, this returns the empty string."
13689 msgstr ""
13690
13691 # type: textblock
13692 #: ../src/guestfs-actions.pod:5324
13693 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
13694 msgstr ""
13695
13696 # type: =head2
13697 #: ../src/guestfs-actions.pod:5329
13698 msgid "guestfs_vg_activate"
13699 msgstr ""
13700
13701 # type: verbatim
13702 #: ../src/guestfs-actions.pod:5331
13703 #, no-wrap
13704 msgid ""
13705 " int guestfs_vg_activate (guestfs_h *g,\n"
13706 "\t\tint activate,\n"
13707 "\t\tchar *const *volgroups);\n"
13708 "\n"
13709 msgstr ""
13710
13711 # type: textblock
13712 #: ../src/guestfs-actions.pod:5335 ../fish/guestfish-actions.pod:4136
13713 msgid ""
13714 "This command activates or (if C<activate> is false) deactivates all logical "
13715 "volumes in the listed volume groups C<volgroups>.  If activated, then they "
13716 "are made known to the kernel, ie. they appear as C</dev/mapper> devices.  If "
13717 "deactivated, then those devices disappear."
13718 msgstr ""
13719
13720 # type: textblock
13721 #: ../src/guestfs-actions.pod:5341 ../fish/guestfish-actions.pod:4142
13722 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
13723 msgstr ""
13724
13725 # type: textblock
13726 #: ../src/guestfs-actions.pod:5343 ../fish/guestfish-actions.pod:4144
13727 msgid ""
13728 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
13729 "activated or deactivated."
13730 msgstr ""
13731
13732 # type: =head2
13733 #: ../src/guestfs-actions.pod:5348
13734 msgid "guestfs_vg_activate_all"
13735 msgstr ""
13736
13737 # type: verbatim
13738 #: ../src/guestfs-actions.pod:5350
13739 #, no-wrap
13740 msgid ""
13741 " int guestfs_vg_activate_all (guestfs_h *g,\n"
13742 "\t\tint activate);\n"
13743 "\n"
13744 msgstr ""
13745
13746 # type: textblock
13747 #: ../src/guestfs-actions.pod:5353 ../fish/guestfish-actions.pod:4151
13748 msgid ""
13749 "This command activates or (if C<activate> is false) deactivates all logical "
13750 "volumes in all volume groups.  If activated, then they are made known to the "
13751 "kernel, ie. they appear as C</dev/mapper> devices.  If deactivated, then "
13752 "those devices disappear."
13753 msgstr ""
13754
13755 # type: textblock
13756 #: ../src/guestfs-actions.pod:5359 ../fish/guestfish-actions.pod:4157
13757 msgid "This command is the same as running C<vgchange -a y|n>"
13758 msgstr ""
13759
13760 # type: =head2
13761 #: ../src/guestfs-actions.pod:5363
13762 msgid "guestfs_vgcreate"
13763 msgstr ""
13764
13765 # type: verbatim
13766 #: ../src/guestfs-actions.pod:5365
13767 #, no-wrap
13768 msgid ""
13769 " int guestfs_vgcreate (guestfs_h *g,\n"
13770 "\t\tconst char *volgroup,\n"
13771 "\t\tchar *const *physvols);\n"
13772 "\n"
13773 msgstr ""
13774
13775 # type: textblock
13776 #: ../src/guestfs-actions.pod:5369 ../fish/guestfish-actions.pod:4163
13777 msgid ""
13778 "This creates an LVM volume group called C<volgroup> from the non-empty list "
13779 "of physical volumes C<physvols>."
13780 msgstr ""
13781
13782 # type: =head2
13783 #: ../src/guestfs-actions.pod:5374
13784 msgid "guestfs_vglvuuids"
13785 msgstr ""
13786
13787 # type: verbatim
13788 #: ../src/guestfs-actions.pod:5376
13789 #, no-wrap
13790 msgid ""
13791 " char **guestfs_vglvuuids (guestfs_h *g,\n"
13792 "\t\tconst char *vgname);\n"
13793 "\n"
13794 msgstr ""
13795
13796 # type: textblock
13797 #: ../src/guestfs-actions.pod:5379 ../fish/guestfish-actions.pod:4170
13798 msgid ""
13799 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
13800 "volumes created in this volume group."
13801 msgstr ""
13802
13803 # type: textblock
13804 #: ../src/guestfs-actions.pod:5382
13805 msgid ""
13806 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
13807 "associate logical volumes and volume groups."
13808 msgstr ""
13809
13810 # type: textblock
13811 #: ../src/guestfs-actions.pod:5385
13812 msgid "See also C<guestfs_vgpvuuids>."
13813 msgstr ""
13814
13815 # type: =head2
13816 #: ../src/guestfs-actions.pod:5391
13817 msgid "guestfs_vgpvuuids"
13818 msgstr ""
13819
13820 # type: verbatim
13821 #: ../src/guestfs-actions.pod:5393
13822 #, no-wrap
13823 msgid ""
13824 " char **guestfs_vgpvuuids (guestfs_h *g,\n"
13825 "\t\tconst char *vgname);\n"
13826 "\n"
13827 msgstr ""
13828
13829 # type: textblock
13830 #: ../src/guestfs-actions.pod:5396 ../fish/guestfish-actions.pod:4182
13831 msgid ""
13832 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
13833 "volumes that this volume group resides on."
13834 msgstr ""
13835
13836 # type: textblock
13837 #: ../src/guestfs-actions.pod:5399
13838 msgid ""
13839 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
13840 "associate physical volumes and volume groups."
13841 msgstr ""
13842
13843 # type: textblock
13844 #: ../src/guestfs-actions.pod:5402
13845 msgid "See also C<guestfs_vglvuuids>."
13846 msgstr ""
13847
13848 # type: =head2
13849 #: ../src/guestfs-actions.pod:5408
13850 msgid "guestfs_vgremove"
13851 msgstr ""
13852
13853 # type: verbatim
13854 #: ../src/guestfs-actions.pod:5410
13855 #, no-wrap
13856 msgid ""
13857 " int guestfs_vgremove (guestfs_h *g,\n"
13858 "\t\tconst char *vgname);\n"
13859 "\n"
13860 msgstr ""
13861
13862 # type: textblock
13863 #: ../src/guestfs-actions.pod:5413 ../fish/guestfish-actions.pod:4194
13864 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
13865 msgstr ""
13866
13867 # type: textblock
13868 #: ../src/guestfs-actions.pod:5415 ../fish/guestfish-actions.pod:4196
13869 msgid ""
13870 "This also forcibly removes all logical volumes in the volume group (if any)."
13871 msgstr ""
13872
13873 # type: =head2
13874 #: ../src/guestfs-actions.pod:5420
13875 msgid "guestfs_vgrename"
13876 msgstr ""
13877
13878 # type: verbatim
13879 #: ../src/guestfs-actions.pod:5422
13880 #, no-wrap
13881 msgid ""
13882 " int guestfs_vgrename (guestfs_h *g,\n"
13883 "\t\tconst char *volgroup,\n"
13884 "\t\tconst char *newvolgroup);\n"
13885 "\n"
13886 msgstr ""
13887
13888 # type: textblock
13889 #: ../src/guestfs-actions.pod:5426 ../fish/guestfish-actions.pod:4203
13890 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
13891 msgstr ""
13892
13893 # type: =head2
13894 #: ../src/guestfs-actions.pod:5430
13895 msgid "guestfs_vgs"
13896 msgstr ""
13897
13898 # type: verbatim
13899 #: ../src/guestfs-actions.pod:5432
13900 #, no-wrap
13901 msgid ""
13902 " char **guestfs_vgs (guestfs_h *g);\n"
13903 "\n"
13904 msgstr ""
13905
13906 # type: textblock
13907 #: ../src/guestfs-actions.pod:5434 ../fish/guestfish-actions.pod:4209
13908 msgid ""
13909 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
13910 "> command."
13911 msgstr ""
13912
13913 # type: textblock
13914 #: ../src/guestfs-actions.pod:5437 ../fish/guestfish-actions.pod:4212
13915 msgid ""
13916 "This returns a list of just the volume group names that were detected (eg. "
13917 "C<VolGroup00>)."
13918 msgstr ""
13919
13920 # type: textblock
13921 #: ../src/guestfs-actions.pod:5440
13922 msgid "See also C<guestfs_vgs_full>."
13923 msgstr ""
13924
13925 # type: =head2
13926 #: ../src/guestfs-actions.pod:5446
13927 msgid "guestfs_vgs_full"
13928 msgstr ""
13929
13930 # type: verbatim
13931 #: ../src/guestfs-actions.pod:5448
13932 #, no-wrap
13933 msgid ""
13934 " struct guestfs_lvm_vg_list *guestfs_vgs_full (guestfs_h *g);\n"
13935 "\n"
13936 msgstr ""
13937
13938 # type: textblock
13939 #: ../src/guestfs-actions.pod:5450 ../fish/guestfish-actions.pod:4221
13940 msgid ""
13941 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
13942 "> command.  The \"full\" version includes all fields."
13943 msgstr ""
13944
13945 # type: textblock
13946 #: ../src/guestfs-actions.pod:5453
13947 msgid ""
13948 "This function returns a C<struct guestfs_lvm_vg_list *> (see E<lt>guestfs-"
13949 "structs.hE<gt>), or NULL if there was an error.  I<The caller must call "
13950 "C<guestfs_free_lvm_vg_list> after use>."
13951 msgstr ""
13952
13953 # type: =head2
13954 #: ../src/guestfs-actions.pod:5458
13955 msgid "guestfs_vgscan"
13956 msgstr ""
13957
13958 # type: verbatim
13959 #: ../src/guestfs-actions.pod:5460
13960 #, no-wrap
13961 msgid ""
13962 " int guestfs_vgscan (guestfs_h *g);\n"
13963 "\n"
13964 msgstr ""
13965
13966 # type: textblock
13967 #: ../src/guestfs-actions.pod:5462 ../fish/guestfish-actions.pod:4228
13968 msgid ""
13969 "This rescans all block devices and rebuilds the list of LVM physical "
13970 "volumes, volume groups and logical volumes."
13971 msgstr ""
13972
13973 # type: =head2
13974 #: ../src/guestfs-actions.pod:5467
13975 msgid "guestfs_vguuid"
13976 msgstr ""
13977
13978 # type: verbatim
13979 #: ../src/guestfs-actions.pod:5469
13980 #, no-wrap
13981 msgid ""
13982 " char *guestfs_vguuid (guestfs_h *g,\n"
13983 "\t\tconst char *vgname);\n"
13984 "\n"
13985 msgstr ""
13986
13987 # type: textblock
13988 #: ../src/guestfs-actions.pod:5472 ../fish/guestfish-actions.pod:4235
13989 msgid "This command returns the UUID of the LVM VG named C<vgname>."
13990 msgstr ""
13991
13992 # type: =head2
13993 #: ../src/guestfs-actions.pod:5477
13994 msgid "guestfs_wait_ready"
13995 msgstr ""
13996
13997 # type: verbatim
13998 #: ../src/guestfs-actions.pod:5479
13999 #, no-wrap
14000 msgid ""
14001 " int guestfs_wait_ready (guestfs_h *g);\n"
14002 "\n"
14003 msgstr ""
14004
14005 # type: textblock
14006 #: ../src/guestfs-actions.pod:5481
14007 msgid "This function is a no op."
14008 msgstr ""
14009
14010 # type: textblock
14011 #: ../src/guestfs-actions.pod:5483
14012 msgid ""
14013 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
14014 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
14015 "is no longer necessary because C<guestfs_launch> now does the waiting."
14016 msgstr ""
14017
14018 # type: textblock
14019 #: ../src/guestfs-actions.pod:5488
14020 msgid ""
14021 "If you see any calls to this function in code then you can just remove them, "
14022 "unless you want to retain compatibility with older versions of the API."
14023 msgstr ""
14024
14025 # type: =head2
14026 #: ../src/guestfs-actions.pod:5494
14027 msgid "guestfs_wc_c"
14028 msgstr ""
14029
14030 # type: verbatim
14031 #: ../src/guestfs-actions.pod:5496
14032 #, no-wrap
14033 msgid ""
14034 " int guestfs_wc_c (guestfs_h *g,\n"
14035 "\t\tconst char *path);\n"
14036 "\n"
14037 msgstr ""
14038
14039 # type: textblock
14040 #: ../src/guestfs-actions.pod:5499 ../fish/guestfish-actions.pod:4241
14041 msgid ""
14042 "This command counts the characters in a file, using the C<wc -c> external "
14043 "command."
14044 msgstr ""
14045
14046 # type: =head2
14047 #: ../src/guestfs-actions.pod:5504
14048 msgid "guestfs_wc_l"
14049 msgstr ""
14050
14051 # type: verbatim
14052 #: ../src/guestfs-actions.pod:5506
14053 #, no-wrap
14054 msgid ""
14055 " int guestfs_wc_l (guestfs_h *g,\n"
14056 "\t\tconst char *path);\n"
14057 "\n"
14058 msgstr ""
14059
14060 # type: textblock
14061 #: ../src/guestfs-actions.pod:5509 ../fish/guestfish-actions.pod:4248
14062 msgid ""
14063 "This command counts the lines in a file, using the C<wc -l> external command."
14064 msgstr ""
14065
14066 # type: =head2
14067 #: ../src/guestfs-actions.pod:5514
14068 msgid "guestfs_wc_w"
14069 msgstr ""
14070
14071 # type: verbatim
14072 #: ../src/guestfs-actions.pod:5516
14073 #, no-wrap
14074 msgid ""
14075 " int guestfs_wc_w (guestfs_h *g,\n"
14076 "\t\tconst char *path);\n"
14077 "\n"
14078 msgstr ""
14079
14080 # type: textblock
14081 #: ../src/guestfs-actions.pod:5519 ../fish/guestfish-actions.pod:4255
14082 msgid ""
14083 "This command counts the words in a file, using the C<wc -w> external command."
14084 msgstr ""
14085
14086 # type: =head2
14087 #: ../src/guestfs-actions.pod:5524
14088 msgid "guestfs_write"
14089 msgstr ""
14090
14091 # type: verbatim
14092 #: ../src/guestfs-actions.pod:5526
14093 #, no-wrap
14094 msgid ""
14095 " int guestfs_write (guestfs_h *g,\n"
14096 "\t\tconst char *path,\n"
14097 "\t\tconst char *content,\n"
14098 "\t\tsize_t content_size);\n"
14099 "\n"
14100 msgstr ""
14101
14102 # type: textblock
14103 #: ../src/guestfs-actions.pod:5531 ../fish/guestfish-actions.pod:4262
14104 msgid ""
14105 "This call creates a file called C<path>.  The content of the file is the "
14106 "string C<content> (which can contain any 8 bit data)."
14107 msgstr ""
14108
14109 # type: =head2
14110 #: ../src/guestfs-actions.pod:5539
14111 msgid "guestfs_write_file"
14112 msgstr ""
14113
14114 # type: verbatim
14115 #: ../src/guestfs-actions.pod:5541
14116 #, no-wrap
14117 msgid ""
14118 " int guestfs_write_file (guestfs_h *g,\n"
14119 "\t\tconst char *path,\n"
14120 "\t\tconst char *content,\n"
14121 "\t\tint size);\n"
14122 "\n"
14123 msgstr ""
14124
14125 # type: textblock
14126 #: ../src/guestfs-actions.pod:5546 ../fish/guestfish-actions.pod:4272
14127 msgid ""
14128 "This call creates a file called C<path>.  The contents of the file is the "
14129 "string C<content> (which can contain any 8 bit data), with length C<size>."
14130 msgstr ""
14131
14132 # type: textblock
14133 #: ../src/guestfs-actions.pod:5550 ../fish/guestfish-actions.pod:4276
14134 msgid ""
14135 "As a special case, if C<size> is C<0> then the length is calculated using "
14136 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
14137 msgstr ""
14138
14139 # type: textblock
14140 #: ../src/guestfs-actions.pod:5554 ../fish/guestfish-actions.pod:4280
14141 msgid ""
14142 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
14143 "I<not> work, even if the length is specified."
14144 msgstr ""
14145
14146 # type: textblock
14147 #: ../src/guestfs-actions.pod:5562 ../fish/guestfish-actions.pod:4286
14148 msgid ""
14149 "This function is deprecated.  In new code, use the C<write> call instead."
14150 msgstr ""
14151
14152 # type: =head2
14153 #: ../src/guestfs-actions.pod:5569
14154 msgid "guestfs_zegrep"
14155 msgstr ""
14156
14157 # type: verbatim
14158 #: ../src/guestfs-actions.pod:5571
14159 #, no-wrap
14160 msgid ""
14161 " char **guestfs_zegrep (guestfs_h *g,\n"
14162 "\t\tconst char *regex,\n"
14163 "\t\tconst char *path);\n"
14164 "\n"
14165 msgstr ""
14166
14167 # type: textblock
14168 #: ../src/guestfs-actions.pod:5575 ../fish/guestfish-actions.pod:4297
14169 msgid ""
14170 "This calls the external C<zegrep> program and returns the matching lines."
14171 msgstr ""
14172
14173 # type: =head2
14174 #: ../src/guestfs-actions.pod:5585
14175 msgid "guestfs_zegrepi"
14176 msgstr ""
14177
14178 # type: verbatim
14179 #: ../src/guestfs-actions.pod:5587
14180 #, no-wrap
14181 msgid ""
14182 " char **guestfs_zegrepi (guestfs_h *g,\n"
14183 "\t\tconst char *regex,\n"
14184 "\t\tconst char *path);\n"
14185 "\n"
14186 msgstr ""
14187
14188 # type: textblock
14189 #: ../src/guestfs-actions.pod:5591 ../fish/guestfish-actions.pod:4307
14190 msgid ""
14191 "This calls the external C<zegrep -i> program and returns the matching lines."
14192 msgstr ""
14193
14194 # type: =head2
14195 #: ../src/guestfs-actions.pod:5601
14196 msgid "guestfs_zero"
14197 msgstr ""
14198
14199 # type: verbatim
14200 #: ../src/guestfs-actions.pod:5603
14201 #, no-wrap
14202 msgid ""
14203 " int guestfs_zero (guestfs_h *g,\n"
14204 "\t\tconst char *device);\n"
14205 "\n"
14206 msgstr ""
14207
14208 # type: textblock
14209 #: ../src/guestfs-actions.pod:5606 ../fish/guestfish-actions.pod:4317
14210 msgid "This command writes zeroes over the first few blocks of C<device>."
14211 msgstr ""
14212
14213 # type: textblock
14214 #: ../src/guestfs-actions.pod:5608 ../fish/guestfish-actions.pod:4319
14215 msgid ""
14216 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
14217 "securely wipe the device).  It should be sufficient to remove any partition "
14218 "tables, filesystem superblocks and so on."
14219 msgstr ""
14220
14221 # type: textblock
14222 #: ../src/guestfs-actions.pod:5612
14223 msgid "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>."
14224 msgstr ""
14225
14226 # type: =head2
14227 #: ../src/guestfs-actions.pod:5621
14228 msgid "guestfs_zero_device"
14229 msgstr ""
14230
14231 # type: verbatim
14232 #: ../src/guestfs-actions.pod:5623
14233 #, no-wrap
14234 msgid ""
14235 " int guestfs_zero_device (guestfs_h *g,\n"
14236 "\t\tconst char *device);\n"
14237 "\n"
14238 msgstr ""
14239
14240 # type: textblock
14241 #: ../src/guestfs-actions.pod:5626
14242 msgid ""
14243 "This command writes zeroes over the entire C<device>.  Compare with "
14244 "C<guestfs_zero> which just zeroes the first few blocks of a device."
14245 msgstr ""
14246
14247 # type: =head2
14248 #: ../src/guestfs-actions.pod:5640
14249 msgid "guestfs_zerofree"
14250 msgstr ""
14251
14252 # type: verbatim
14253 #: ../src/guestfs-actions.pod:5642
14254 #, no-wrap
14255 msgid ""
14256 " int guestfs_zerofree (guestfs_h *g,\n"
14257 "\t\tconst char *device);\n"
14258 "\n"
14259 msgstr ""
14260
14261 # type: textblock
14262 #: ../src/guestfs-actions.pod:5645 ../fish/guestfish-actions.pod:4340
14263 msgid ""
14264 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
14265 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
14266 "possible to compress the filesystem more effectively."
14267 msgstr ""
14268
14269 # type: textblock
14270 #: ../src/guestfs-actions.pod:5650 ../fish/guestfish-actions.pod:4345
14271 msgid "You should B<not> run this program if the filesystem is mounted."
14272 msgstr ""
14273
14274 # type: textblock
14275 #: ../src/guestfs-actions.pod:5653 ../fish/guestfish-actions.pod:4348
14276 msgid ""
14277 "It is possible that using this program can damage the filesystem or data on "
14278 "the filesystem."
14279 msgstr ""
14280
14281 # type: =head2
14282 #: ../src/guestfs-actions.pod:5658
14283 msgid "guestfs_zfgrep"
14284 msgstr ""
14285
14286 # type: verbatim
14287 #: ../src/guestfs-actions.pod:5660
14288 #, no-wrap
14289 msgid ""
14290 " char **guestfs_zfgrep (guestfs_h *g,\n"
14291 "\t\tconst char *pattern,\n"
14292 "\t\tconst char *path);\n"
14293 "\n"
14294 msgstr ""
14295
14296 # type: textblock
14297 #: ../src/guestfs-actions.pod:5664 ../fish/guestfish-actions.pod:4355
14298 msgid ""
14299 "This calls the external C<zfgrep> program and returns the matching lines."
14300 msgstr ""
14301
14302 # type: =head2
14303 #: ../src/guestfs-actions.pod:5674
14304 msgid "guestfs_zfgrepi"
14305 msgstr ""
14306
14307 # type: verbatim
14308 #: ../src/guestfs-actions.pod:5676
14309 #, no-wrap
14310 msgid ""
14311 " char **guestfs_zfgrepi (guestfs_h *g,\n"
14312 "\t\tconst char *pattern,\n"
14313 "\t\tconst char *path);\n"
14314 "\n"
14315 msgstr ""
14316
14317 # type: textblock
14318 #: ../src/guestfs-actions.pod:5680 ../fish/guestfish-actions.pod:4365
14319 msgid ""
14320 "This calls the external C<zfgrep -i> program and returns the matching lines."
14321 msgstr ""
14322
14323 # type: =head2
14324 #: ../src/guestfs-actions.pod:5690
14325 msgid "guestfs_zfile"
14326 msgstr ""
14327
14328 # type: verbatim
14329 #: ../src/guestfs-actions.pod:5692
14330 #, no-wrap
14331 msgid ""
14332 " char *guestfs_zfile (guestfs_h *g,\n"
14333 "\t\tconst char *meth,\n"
14334 "\t\tconst char *path);\n"
14335 "\n"
14336 msgstr ""
14337
14338 # type: textblock
14339 #: ../src/guestfs-actions.pod:5696 ../fish/guestfish-actions.pod:4375
14340 msgid ""
14341 "This command runs C<file> after first decompressing C<path> using C<method>."
14342 msgstr ""
14343
14344 # type: textblock
14345 #: ../src/guestfs-actions.pod:5699 ../fish/guestfish-actions.pod:4378
14346 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
14347 msgstr ""
14348
14349 # type: textblock
14350 #: ../src/guestfs-actions.pod:5701
14351 msgid ""
14352 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
14353 "files."
14354 msgstr ""
14355
14356 # type: textblock
14357 #: ../src/guestfs-actions.pod:5707 ../fish/guestfish-actions.pod:4383
14358 msgid ""
14359 "This function is deprecated.  In new code, use the C<file> call instead."
14360 msgstr ""
14361
14362 # type: =head2
14363 #: ../src/guestfs-actions.pod:5714
14364 msgid "guestfs_zgrep"
14365 msgstr ""
14366
14367 # type: verbatim
14368 #: ../src/guestfs-actions.pod:5716
14369 #, no-wrap
14370 msgid ""
14371 " char **guestfs_zgrep (guestfs_h *g,\n"
14372 "\t\tconst char *regex,\n"
14373 "\t\tconst char *path);\n"
14374 "\n"
14375 msgstr ""
14376
14377 # type: textblock
14378 #: ../src/guestfs-actions.pod:5720 ../fish/guestfish-actions.pod:4394
14379 msgid ""
14380 "This calls the external C<zgrep> program and returns the matching lines."
14381 msgstr ""
14382
14383 # type: =head2
14384 #: ../src/guestfs-actions.pod:5730
14385 msgid "guestfs_zgrepi"
14386 msgstr ""
14387
14388 # type: verbatim
14389 #: ../src/guestfs-actions.pod:5732
14390 #, no-wrap
14391 msgid ""
14392 " char **guestfs_zgrepi (guestfs_h *g,\n"
14393 "\t\tconst char *regex,\n"
14394 "\t\tconst char *path);\n"
14395 "\n"
14396 msgstr ""
14397
14398 # type: textblock
14399 #: ../src/guestfs-actions.pod:5736 ../fish/guestfish-actions.pod:4404
14400 msgid ""
14401 "This calls the external C<zgrep -i> program and returns the matching lines."
14402 msgstr ""
14403
14404 # type: =item
14405 #: ../src/guestfs-availability.pod:3
14406 msgid "B<augeas>"
14407 msgstr ""
14408
14409 # type: textblock
14410 #: ../src/guestfs-availability.pod:5
14411 msgid ""
14412 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
14413 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
14414 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
14415 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
14416 "L</guestfs_aug_save> L</guestfs_aug_set>"
14417 msgstr ""
14418
14419 # type: =item
14420 #: ../src/guestfs-availability.pod:21
14421 msgid "B<inotify>"
14422 msgstr ""
14423
14424 # type: textblock
14425 #: ../src/guestfs-availability.pod:23
14426 msgid ""
14427 "The following functions: L</guestfs_inotify_add_watch> L</"
14428 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
14429 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
14430 msgstr ""
14431
14432 # type: =item
14433 #: ../src/guestfs-availability.pod:31
14434 msgid "B<linuxfsuuid>"
14435 msgstr ""
14436
14437 # type: textblock
14438 #: ../src/guestfs-availability.pod:33
14439 msgid ""
14440 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
14441 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
14442 msgstr ""
14443
14444 # type: =item
14445 #: ../src/guestfs-availability.pod:40
14446 msgid "B<linuxmodules>"
14447 msgstr ""
14448
14449 # type: textblock
14450 #: ../src/guestfs-availability.pod:42
14451 msgid "The following functions: L</guestfs_modprobe>"
14452 msgstr ""
14453
14454 # type: =item
14455 #: ../src/guestfs-availability.pod:45
14456 msgid "B<linuxxattrs>"
14457 msgstr ""
14458
14459 # type: textblock
14460 #: ../src/guestfs-availability.pod:47
14461 msgid ""
14462 "The following functions: L</guestfs_getxattrs> L</guestfs_lgetxattrs> L</"
14463 "guestfs_lremovexattr> L</guestfs_lsetxattr> L</guestfs_lxattrlist> L</"
14464 "guestfs_removexattr> L</guestfs_setxattr>"
14465 msgstr ""
14466
14467 # type: =item
14468 #: ../src/guestfs-availability.pod:56
14469 msgid "B<luks>"
14470 msgstr ""
14471
14472 # type: textblock
14473 #: ../src/guestfs-availability.pod:58
14474 msgid ""
14475 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
14476 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
14477 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
14478 msgstr ""
14479
14480 # type: =item
14481 #: ../src/guestfs-availability.pod:67
14482 msgid "B<lvm2>"
14483 msgstr ""
14484
14485 # type: textblock
14486 #: ../src/guestfs-availability.pod:69
14487 msgid ""
14488 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
14489 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
14490 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
14491 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
14492 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
14493 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
14494 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
14495 msgstr ""
14496
14497 # type: =item
14498 #: ../src/guestfs-availability.pod:92
14499 msgid "B<mknod>"
14500 msgstr ""
14501
14502 # type: textblock
14503 #: ../src/guestfs-availability.pod:94
14504 msgid ""
14505 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
14506 "guestfs_mknod_b> L</guestfs_mknod_c>"
14507 msgstr ""
14508
14509 # type: =item
14510 #: ../src/guestfs-availability.pod:100
14511 msgid "B<ntfs3g>"
14512 msgstr ""
14513
14514 # type: textblock
14515 #: ../src/guestfs-availability.pod:102
14516 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
14517 msgstr ""
14518
14519 # type: =item
14520 #: ../src/guestfs-availability.pod:105
14521 msgid "B<ntfsprogs>"
14522 msgstr ""
14523
14524 # type: textblock
14525 #: ../src/guestfs-availability.pod:107
14526 msgid ""
14527 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_size>"
14528 msgstr ""
14529
14530 # type: =item
14531 #: ../src/guestfs-availability.pod:111
14532 msgid "B<realpath>"
14533 msgstr ""
14534
14535 # type: textblock
14536 #: ../src/guestfs-availability.pod:113
14537 msgid "The following functions: L</guestfs_realpath>"
14538 msgstr ""
14539
14540 # type: =item
14541 #: ../src/guestfs-availability.pod:116
14542 msgid "B<scrub>"
14543 msgstr ""
14544
14545 # type: textblock
14546 #: ../src/guestfs-availability.pod:118
14547 msgid ""
14548 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
14549 "guestfs_scrub_freespace>"
14550 msgstr ""
14551
14552 # type: =item
14553 #: ../src/guestfs-availability.pod:123
14554 msgid "B<selinux>"
14555 msgstr ""
14556
14557 # type: textblock
14558 #: ../src/guestfs-availability.pod:125
14559 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
14560 msgstr ""
14561
14562 # type: =item
14563 #: ../src/guestfs-availability.pod:129
14564 msgid "B<xz>"
14565 msgstr ""
14566
14567 # type: textblock
14568 #: ../src/guestfs-availability.pod:131
14569 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
14570 msgstr ""
14571
14572 # type: =item
14573 #: ../src/guestfs-availability.pod:135
14574 msgid "B<zerofree>"
14575 msgstr ""
14576
14577 # type: textblock
14578 #: ../src/guestfs-availability.pod:137
14579 msgid "The following functions: L</guestfs_zerofree>"
14580 msgstr ""
14581
14582 # type: =head2
14583 #: ../src/guestfs-structs.pod:1
14584 msgid "guestfs_int_bool"
14585 msgstr ""
14586
14587 # type: verbatim
14588 #: ../src/guestfs-structs.pod:3
14589 #, no-wrap
14590 msgid ""
14591 " struct guestfs_int_bool {\n"
14592 "   int32_t i;\n"
14593 "   int32_t b;\n"
14594 " };\n"
14595 " \n"
14596 msgstr ""
14597
14598 # type: verbatim
14599 #: ../src/guestfs-structs.pod:8
14600 #, no-wrap
14601 msgid ""
14602 " struct guestfs_int_bool_list {\n"
14603 "   uint32_t len; /* Number of elements in list. */\n"
14604 "   struct guestfs_int_bool *val; /* Elements. */\n"
14605 " };\n"
14606 " \n"
14607 msgstr ""
14608
14609 # type: verbatim
14610 #: ../src/guestfs-structs.pod:13
14611 #, no-wrap
14612 msgid ""
14613 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
14614 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
14615 "\n"
14616 msgstr ""
14617
14618 # type: =head2
14619 #: ../src/guestfs-structs.pod:16
14620 msgid "guestfs_lvm_pv"
14621 msgstr ""
14622
14623 # type: verbatim
14624 #: ../src/guestfs-structs.pod:18
14625 #, no-wrap
14626 msgid ""
14627 " struct guestfs_lvm_pv {\n"
14628 "   char *pv_name;\n"
14629 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
14630 "   char pv_uuid[32];\n"
14631 "   char *pv_fmt;\n"
14632 "   uint64_t pv_size;\n"
14633 "   uint64_t dev_size;\n"
14634 "   uint64_t pv_free;\n"
14635 "   uint64_t pv_used;\n"
14636 "   char *pv_attr;\n"
14637 "   int64_t pv_pe_count;\n"
14638 "   int64_t pv_pe_alloc_count;\n"
14639 "   char *pv_tags;\n"
14640 "   uint64_t pe_start;\n"
14641 "   int64_t pv_mda_count;\n"
14642 "   uint64_t pv_mda_free;\n"
14643 " };\n"
14644 " \n"
14645 msgstr ""
14646
14647 # type: verbatim
14648 #: ../src/guestfs-structs.pod:36
14649 #, no-wrap
14650 msgid ""
14651 " struct guestfs_lvm_pv_list {\n"
14652 "   uint32_t len; /* Number of elements in list. */\n"
14653 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
14654 " };\n"
14655 " \n"
14656 msgstr ""
14657
14658 # type: verbatim
14659 #: ../src/guestfs-structs.pod:41
14660 #, no-wrap
14661 msgid ""
14662 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
14663 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
14664 "\n"
14665 msgstr ""
14666
14667 # type: =head2
14668 #: ../src/guestfs-structs.pod:44
14669 msgid "guestfs_lvm_vg"
14670 msgstr ""
14671
14672 # type: verbatim
14673 #: ../src/guestfs-structs.pod:46
14674 #, no-wrap
14675 msgid ""
14676 " struct guestfs_lvm_vg {\n"
14677 "   char *vg_name;\n"
14678 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
14679 "   char vg_uuid[32];\n"
14680 "   char *vg_fmt;\n"
14681 "   char *vg_attr;\n"
14682 "   uint64_t vg_size;\n"
14683 "   uint64_t vg_free;\n"
14684 "   char *vg_sysid;\n"
14685 "   uint64_t vg_extent_size;\n"
14686 "   int64_t vg_extent_count;\n"
14687 "   int64_t vg_free_count;\n"
14688 "   int64_t max_lv;\n"
14689 "   int64_t max_pv;\n"
14690 "   int64_t pv_count;\n"
14691 "   int64_t lv_count;\n"
14692 "   int64_t snap_count;\n"
14693 "   int64_t vg_seqno;\n"
14694 "   char *vg_tags;\n"
14695 "   int64_t vg_mda_count;\n"
14696 "   uint64_t vg_mda_free;\n"
14697 " };\n"
14698 " \n"
14699 msgstr ""
14700
14701 # type: verbatim
14702 #: ../src/guestfs-structs.pod:69
14703 #, no-wrap
14704 msgid ""
14705 " struct guestfs_lvm_vg_list {\n"
14706 "   uint32_t len; /* Number of elements in list. */\n"
14707 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
14708 " };\n"
14709 " \n"
14710 msgstr ""
14711
14712 # type: verbatim
14713 #: ../src/guestfs-structs.pod:74
14714 #, no-wrap
14715 msgid ""
14716 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
14717 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
14718 "\n"
14719 msgstr ""
14720
14721 # type: =head2
14722 #: ../src/guestfs-structs.pod:77
14723 msgid "guestfs_lvm_lv"
14724 msgstr ""
14725
14726 # type: verbatim
14727 #: ../src/guestfs-structs.pod:79
14728 #, no-wrap
14729 msgid ""
14730 " struct guestfs_lvm_lv {\n"
14731 "   char *lv_name;\n"
14732 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
14733 "   char lv_uuid[32];\n"
14734 "   char *lv_attr;\n"
14735 "   int64_t lv_major;\n"
14736 "   int64_t lv_minor;\n"
14737 "   int64_t lv_kernel_major;\n"
14738 "   int64_t lv_kernel_minor;\n"
14739 "   uint64_t lv_size;\n"
14740 "   int64_t seg_count;\n"
14741 "   char *origin;\n"
14742 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
14743 "   float snap_percent;\n"
14744 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
14745 "   float copy_percent;\n"
14746 "   char *move_pv;\n"
14747 "   char *lv_tags;\n"
14748 "   char *mirror_log;\n"
14749 "   char *modules;\n"
14750 " };\n"
14751 " \n"
14752 msgstr ""
14753
14754 # type: verbatim
14755 #: ../src/guestfs-structs.pod:101
14756 #, no-wrap
14757 msgid ""
14758 " struct guestfs_lvm_lv_list {\n"
14759 "   uint32_t len; /* Number of elements in list. */\n"
14760 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
14761 " };\n"
14762 " \n"
14763 msgstr ""
14764
14765 # type: verbatim
14766 #: ../src/guestfs-structs.pod:106
14767 #, no-wrap
14768 msgid ""
14769 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
14770 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
14771 "\n"
14772 msgstr ""
14773
14774 # type: verbatim
14775 #: ../src/guestfs-structs.pod:111
14776 #, no-wrap
14777 msgid ""
14778 " struct guestfs_stat {\n"
14779 "   int64_t dev;\n"
14780 "   int64_t ino;\n"
14781 "   int64_t mode;\n"
14782 "   int64_t nlink;\n"
14783 "   int64_t uid;\n"
14784 "   int64_t gid;\n"
14785 "   int64_t rdev;\n"
14786 "   int64_t size;\n"
14787 "   int64_t blksize;\n"
14788 "   int64_t blocks;\n"
14789 "   int64_t atime;\n"
14790 "   int64_t mtime;\n"
14791 "   int64_t ctime;\n"
14792 " };\n"
14793 " \n"
14794 msgstr ""
14795
14796 # type: verbatim
14797 #: ../src/guestfs-structs.pod:127
14798 #, no-wrap
14799 msgid ""
14800 " struct guestfs_stat_list {\n"
14801 "   uint32_t len; /* Number of elements in list. */\n"
14802 "   struct guestfs_stat *val; /* Elements. */\n"
14803 " };\n"
14804 " \n"
14805 msgstr ""
14806
14807 # type: verbatim
14808 #: ../src/guestfs-structs.pod:132
14809 #, no-wrap
14810 msgid ""
14811 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
14812 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
14813 "\n"
14814 msgstr ""
14815
14816 # type: verbatim
14817 #: ../src/guestfs-structs.pod:137
14818 #, no-wrap
14819 msgid ""
14820 " struct guestfs_statvfs {\n"
14821 "   int64_t bsize;\n"
14822 "   int64_t frsize;\n"
14823 "   int64_t blocks;\n"
14824 "   int64_t bfree;\n"
14825 "   int64_t bavail;\n"
14826 "   int64_t files;\n"
14827 "   int64_t ffree;\n"
14828 "   int64_t favail;\n"
14829 "   int64_t fsid;\n"
14830 "   int64_t flag;\n"
14831 "   int64_t namemax;\n"
14832 " };\n"
14833 " \n"
14834 msgstr ""
14835
14836 # type: verbatim
14837 #: ../src/guestfs-structs.pod:151
14838 #, no-wrap
14839 msgid ""
14840 " struct guestfs_statvfs_list {\n"
14841 "   uint32_t len; /* Number of elements in list. */\n"
14842 "   struct guestfs_statvfs *val; /* Elements. */\n"
14843 " };\n"
14844 " \n"
14845 msgstr ""
14846
14847 # type: verbatim
14848 #: ../src/guestfs-structs.pod:156
14849 #, no-wrap
14850 msgid ""
14851 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
14852 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
14853 "\n"
14854 msgstr ""
14855
14856 # type: =head2
14857 #: ../src/guestfs-structs.pod:159
14858 msgid "guestfs_dirent"
14859 msgstr ""
14860
14861 # type: verbatim
14862 #: ../src/guestfs-structs.pod:161
14863 #, no-wrap
14864 msgid ""
14865 " struct guestfs_dirent {\n"
14866 "   int64_t ino;\n"
14867 "   char ftyp;\n"
14868 "   char *name;\n"
14869 " };\n"
14870 " \n"
14871 msgstr ""
14872
14873 # type: verbatim
14874 #: ../src/guestfs-structs.pod:167
14875 #, no-wrap
14876 msgid ""
14877 " struct guestfs_dirent_list {\n"
14878 "   uint32_t len; /* Number of elements in list. */\n"
14879 "   struct guestfs_dirent *val; /* Elements. */\n"
14880 " };\n"
14881 " \n"
14882 msgstr ""
14883
14884 # type: verbatim
14885 #: ../src/guestfs-structs.pod:172
14886 #, no-wrap
14887 msgid ""
14888 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
14889 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
14890 "\n"
14891 msgstr ""
14892
14893 # type: verbatim
14894 #: ../src/guestfs-structs.pod:177
14895 #, no-wrap
14896 msgid ""
14897 " struct guestfs_version {\n"
14898 "   int64_t major;\n"
14899 "   int64_t minor;\n"
14900 "   int64_t release;\n"
14901 "   char *extra;\n"
14902 " };\n"
14903 " \n"
14904 msgstr ""
14905
14906 # type: verbatim
14907 #: ../src/guestfs-structs.pod:184
14908 #, no-wrap
14909 msgid ""
14910 " struct guestfs_version_list {\n"
14911 "   uint32_t len; /* Number of elements in list. */\n"
14912 "   struct guestfs_version *val; /* Elements. */\n"
14913 " };\n"
14914 " \n"
14915 msgstr ""
14916
14917 # type: verbatim
14918 #: ../src/guestfs-structs.pod:189
14919 #, no-wrap
14920 msgid ""
14921 " void guestfs_free_version (struct guestfs_free_version *);\n"
14922 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
14923 "\n"
14924 msgstr ""
14925
14926 # type: =head2
14927 #: ../src/guestfs-structs.pod:192
14928 msgid "guestfs_xattr"
14929 msgstr ""
14930
14931 # type: verbatim
14932 #: ../src/guestfs-structs.pod:194
14933 #, no-wrap
14934 msgid ""
14935 " struct guestfs_xattr {\n"
14936 "   char *attrname;\n"
14937 "   /* The next two fields describe a byte array. */\n"
14938 "   uint32_t attrval_len;\n"
14939 "   char *attrval;\n"
14940 " };\n"
14941 " \n"
14942 msgstr ""
14943
14944 # type: verbatim
14945 #: ../src/guestfs-structs.pod:201
14946 #, no-wrap
14947 msgid ""
14948 " struct guestfs_xattr_list {\n"
14949 "   uint32_t len; /* Number of elements in list. */\n"
14950 "   struct guestfs_xattr *val; /* Elements. */\n"
14951 " };\n"
14952 " \n"
14953 msgstr ""
14954
14955 # type: verbatim
14956 #: ../src/guestfs-structs.pod:206
14957 #, no-wrap
14958 msgid ""
14959 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
14960 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
14961 "\n"
14962 msgstr ""
14963
14964 # type: =head2
14965 #: ../src/guestfs-structs.pod:209
14966 msgid "guestfs_inotify_event"
14967 msgstr ""
14968
14969 # type: verbatim
14970 #: ../src/guestfs-structs.pod:211
14971 #, no-wrap
14972 msgid ""
14973 " struct guestfs_inotify_event {\n"
14974 "   int64_t in_wd;\n"
14975 "   uint32_t in_mask;\n"
14976 "   uint32_t in_cookie;\n"
14977 "   char *in_name;\n"
14978 " };\n"
14979 " \n"
14980 msgstr ""
14981
14982 # type: verbatim
14983 #: ../src/guestfs-structs.pod:218
14984 #, no-wrap
14985 msgid ""
14986 " struct guestfs_inotify_event_list {\n"
14987 "   uint32_t len; /* Number of elements in list. */\n"
14988 "   struct guestfs_inotify_event *val; /* Elements. */\n"
14989 " };\n"
14990 " \n"
14991 msgstr ""
14992
14993 # type: verbatim
14994 #: ../src/guestfs-structs.pod:223
14995 #, no-wrap
14996 msgid ""
14997 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
14998 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
14999 "\n"
15000 msgstr ""
15001
15002 # type: =head2
15003 #: ../src/guestfs-structs.pod:226
15004 msgid "guestfs_partition"
15005 msgstr ""
15006
15007 # type: verbatim
15008 #: ../src/guestfs-structs.pod:228
15009 #, no-wrap
15010 msgid ""
15011 " struct guestfs_partition {\n"
15012 "   int32_t part_num;\n"
15013 "   uint64_t part_start;\n"
15014 "   uint64_t part_end;\n"
15015 "   uint64_t part_size;\n"
15016 " };\n"
15017 " \n"
15018 msgstr ""
15019
15020 # type: verbatim
15021 #: ../src/guestfs-structs.pod:235
15022 #, no-wrap
15023 msgid ""
15024 " struct guestfs_partition_list {\n"
15025 "   uint32_t len; /* Number of elements in list. */\n"
15026 "   struct guestfs_partition *val; /* Elements. */\n"
15027 " };\n"
15028 " \n"
15029 msgstr ""
15030
15031 # type: verbatim
15032 #: ../src/guestfs-structs.pod:240
15033 #, no-wrap
15034 msgid ""
15035 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
15036 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
15037 "\n"
15038 msgstr ""
15039
15040 # type: textblock
15041 #: ../fish/guestfish.pod:5
15042 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
15043 msgstr ""
15044
15045 # type: verbatim
15046 #: ../fish/guestfish.pod:9
15047 #, no-wrap
15048 msgid ""
15049 " guestfish [--options] [commands]\n"
15050 "\n"
15051 msgstr ""
15052
15053 # type: verbatim
15054 #: ../fish/guestfish.pod:11
15055 #, no-wrap
15056 msgid ""
15057 " guestfish\n"
15058 "\n"
15059 msgstr ""
15060
15061 # type: verbatim
15062 #: ../fish/guestfish.pod:13
15063 #, no-wrap
15064 msgid ""
15065 " guestfish -a disk.img\n"
15066 "\n"
15067 msgstr ""
15068
15069 # type: verbatim
15070 #: ../fish/guestfish.pod:15
15071 #, no-wrap
15072 msgid ""
15073 " guestfish -a disk.img -m dev[:mountpoint]\n"
15074 "\n"
15075 msgstr ""
15076
15077 # type: verbatim
15078 #: ../fish/guestfish.pod:17
15079 #, no-wrap
15080 msgid ""
15081 " guestfish -d libvirt-domain\n"
15082 "\n"
15083 msgstr ""
15084
15085 # type: verbatim
15086 #: ../fish/guestfish.pod:19
15087 #, no-wrap
15088 msgid ""
15089 " guestfish -a disk.img -i\n"
15090 "\n"
15091 msgstr ""
15092
15093 # type: verbatim
15094 #: ../fish/guestfish.pod:21
15095 #, no-wrap
15096 msgid ""
15097 " guestfish -d libvirt-domain -i\n"
15098 "\n"
15099 msgstr ""
15100
15101 # type: =head1
15102 #: ../fish/guestfish.pod:23 ../fuse/guestmount.pod:11 ../tools/virt-edit.pl:45
15103 #: ../tools/virt-win-reg.pl:52 ../tools/virt-tar.pl:60
15104 #: ../tools/virt-rescue.pl:41
15105 msgid "WARNING"
15106 msgstr ""
15107
15108 # type: textblock
15109 #: ../fish/guestfish.pod:25
15110 msgid ""
15111 "Using guestfish in read/write mode on live virtual machines can be "
15112 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
15113 "option to use guestfish safely if the disk image or virtual machine might be "
15114 "live."
15115 msgstr ""
15116
15117 # type: textblock
15118 #: ../fish/guestfish.pod:32
15119 msgid ""
15120 "Guestfish is a shell and command-line tool for examining and modifying "
15121 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
15122 "functionality of the guestfs API, see L<guestfs(3)>."
15123 msgstr ""
15124
15125 # type: textblock
15126 #: ../fish/guestfish.pod:36
15127 msgid ""
15128 "Guestfish gives you structured access to the libguestfs API, from shell "
15129 "scripts or the command line or interactively.  If you want to rescue a "
15130 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
15131 "command."
15132 msgstr ""
15133
15134 # type: =head1
15135 #: ../fish/guestfish.pod:41 ../fish/guestfish.pod:800
15136 #: ../fuse/guestmount.pod:35 ../tools/virt-edit.pl:59
15137 #: ../tools/virt-resize.pl:66 ../tools/virt-cat.pl:51 ../tools/virt-tar.pl:46
15138 msgid "EXAMPLES"
15139 msgstr ""
15140
15141 # type: =head2
15142 #: ../fish/guestfish.pod:43
15143 msgid "As an interactive shell"
15144 msgstr ""
15145
15146 # type: verbatim
15147 #: ../fish/guestfish.pod:45
15148 #, no-wrap
15149 msgid ""
15150 " $ guestfish\n"
15151 " \n"
15152 msgstr ""
15153
15154 # type: verbatim
15155 #: ../fish/guestfish.pod:47
15156 #, no-wrap
15157 msgid ""
15158 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
15159 " editing virtual machine filesystems.\n"
15160 " \n"
15161 msgstr ""
15162
15163 # type: verbatim
15164 #: ../fish/guestfish.pod:50
15165 #, no-wrap
15166 msgid ""
15167 " Type: 'help' for a list of commands\n"
15168 "       'man' to read the manual\n"
15169 "       'quit' to quit the shell\n"
15170 " \n"
15171 msgstr ""
15172
15173 # type: verbatim
15174 #: ../fish/guestfish.pod:54
15175 #, no-wrap
15176 msgid ""
15177 " ><fs> add-ro disk.img\n"
15178 " ><fs> run\n"
15179 " ><fs> list-filesystems\n"
15180 " /dev/sda1: ext4\n"
15181 " /dev/vg_guest/lv_root: ext4\n"
15182 " /dev/vg_guest/lv_swap: swap\n"
15183 " ><fs> mount /dev/vg_guest/lv_root /\n"
15184 " ><fs> cat /etc/fstab\n"
15185 " # /etc/fstab\n"
15186 " # Created by anaconda\n"
15187 " [...]\n"
15188 " ><fs> exit\n"
15189 "\n"
15190 msgstr ""
15191
15192 # type: =head2
15193 #: ../fish/guestfish.pod:67
15194 msgid "From shell scripts"
15195 msgstr ""
15196
15197 # type: textblock
15198 #: ../fish/guestfish.pod:69
15199 msgid "Create a new C</etc/motd> file in a guest or disk image:"
15200 msgstr ""
15201
15202 # type: verbatim
15203 #: ../fish/guestfish.pod:71
15204 #, no-wrap
15205 msgid ""
15206 " guestfish <<_EOF_\n"
15207 " add disk.img\n"
15208 " run\n"
15209 " mount /dev/vg_guest/lv_root /\n"
15210 " write /etc/motd \"Welcome, new users\"\n"
15211 " _EOF_\n"
15212 "\n"
15213 msgstr ""
15214
15215 # type: textblock
15216 #: ../fish/guestfish.pod:78
15217 msgid "List the LVM logical volumes in a disk image:"
15218 msgstr ""
15219
15220 # type: verbatim
15221 #: ../fish/guestfish.pod:80
15222 #, no-wrap
15223 msgid ""
15224 " guestfish -a disk.img --ro <<_EOF_\n"
15225 " run\n"
15226 " lvs\n"
15227 " _EOF_\n"
15228 "\n"
15229 msgstr ""
15230
15231 # type: textblock
15232 #: ../fish/guestfish.pod:85
15233 msgid "List all the filesystems in a disk image:"
15234 msgstr ""
15235
15236 # type: verbatim
15237 #: ../fish/guestfish.pod:87
15238 #, no-wrap
15239 msgid ""
15240 " guestfish -a disk.img --ro <<_EOF_\n"
15241 " run\n"
15242 " list-filesystems\n"
15243 " _EOF_\n"
15244 "\n"
15245 msgstr ""
15246
15247 # type: =head2
15248 #: ../fish/guestfish.pod:92
15249 msgid "On one command line"
15250 msgstr ""
15251
15252 # type: textblock
15253 #: ../fish/guestfish.pod:94
15254 msgid "Update C</etc/resolv.conf> in a guest:"
15255 msgstr ""
15256
15257 # type: verbatim
15258 #: ../fish/guestfish.pod:96
15259 #, no-wrap
15260 msgid ""
15261 " guestfish \\\n"
15262 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
15263 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
15264 "\n"
15265 msgstr ""
15266
15267 # type: textblock
15268 #: ../fish/guestfish.pod:100
15269 msgid "Edit C</boot/grub/grub.conf> interactively:"
15270 msgstr ""
15271
15272 # type: verbatim
15273 #: ../fish/guestfish.pod:102
15274 #, no-wrap
15275 msgid ""
15276 " guestfish --add disk.img \\\n"
15277 "   --mount /dev/vg_guest/lv_root \\\n"
15278 "   --mount /dev/sda1:/boot \\\n"
15279 "   edit /boot/grub/grub.conf\n"
15280 "\n"
15281 msgstr ""
15282
15283 # type: =head2
15284 #: ../fish/guestfish.pod:107
15285 msgid "Mount disks automatically"
15286 msgstr ""
15287
15288 # type: textblock
15289 #: ../fish/guestfish.pod:109
15290 msgid ""
15291 "Use the I<-i> option to automatically mount the disks from a virtual machine:"
15292 msgstr ""
15293
15294 # type: verbatim
15295 #: ../fish/guestfish.pod:112
15296 #, no-wrap
15297 msgid ""
15298 " guestfish --ro -a disk.img -i cat /etc/group\n"
15299 "\n"
15300 msgstr ""
15301
15302 # type: verbatim
15303 #: ../fish/guestfish.pod:114
15304 #, no-wrap
15305 msgid ""
15306 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
15307 "\n"
15308 msgstr ""
15309
15310 # type: textblock
15311 #: ../fish/guestfish.pod:116
15312 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
15313 msgstr ""
15314
15315 # type: verbatim
15316 #: ../fish/guestfish.pod:118
15317 #, no-wrap
15318 msgid ""
15319 " guestfish -a disk.img -i edit /boot/grub/grub.conf\n"
15320 "\n"
15321 msgstr ""
15322
15323 # type: =head2
15324 #: ../fish/guestfish.pod:120
15325 msgid "As a script interpreter"
15326 msgstr ""
15327
15328 # type: textblock
15329 #: ../fish/guestfish.pod:122
15330 msgid "Create a 100MB disk containing an ext2-formatted partition:"
15331 msgstr ""
15332
15333 # type: verbatim
15334 #: ../fish/guestfish.pod:124
15335 #, no-wrap
15336 msgid ""
15337 " #!/usr/bin/guestfish -f\n"
15338 " sparse test1.img 100M\n"
15339 " run\n"
15340 " part-disk /dev/sda mbr\n"
15341 " mkfs ext2 /dev/sda1\n"
15342 "\n"
15343 msgstr ""
15344
15345 # type: =head2
15346 #: ../fish/guestfish.pod:130
15347 msgid "Start with a prepared disk"
15348 msgstr ""
15349
15350 # type: textblock
15351 #: ../fish/guestfish.pod:132
15352 msgid ""
15353 "An alternate way to create a 100MB disk called C<test1.img> containing a "
15354 "single ext2-formatted partition:"
15355 msgstr ""
15356
15357 # type: verbatim
15358 #: ../fish/guestfish.pod:135
15359 #, no-wrap
15360 msgid ""
15361 " guestfish -N fs\n"
15362 "\n"
15363 msgstr ""
15364
15365 # type: textblock
15366 #: ../fish/guestfish.pod:137
15367 msgid "To list what is available do:"
15368 msgstr ""
15369
15370 # type: verbatim
15371 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:791
15372 #, no-wrap
15373 msgid ""
15374 " guestfish -N help | less\n"
15375 "\n"
15376 msgstr ""
15377
15378 # type: =head2
15379 #: ../fish/guestfish.pod:141
15380 msgid "Remote control"
15381 msgstr ""
15382
15383 # type: verbatim
15384 #: ../fish/guestfish.pod:143
15385 #, no-wrap
15386 msgid ""
15387 " eval `guestfish --listen`\n"
15388 " guestfish --remote add-ro disk.img\n"
15389 " guestfish --remote run\n"
15390 " guestfish --remote lvs\n"
15391 "\n"
15392 msgstr ""
15393
15394 # type: =head1
15395 #: ../fish/guestfish.pod:148 ../test-tool/libguestfs-test-tool.pod:37
15396 #: ../fuse/guestmount.pod:70 ../inspector/virt-inspector.pl:75
15397 #: ../tools/virt-edit.pl:73 ../tools/virt-win-reg.pl:172
15398 #: ../tools/virt-df.pl:71 ../tools/virt-ls.pl:79 ../tools/virt-resize.pl:257
15399 #: ../tools/virt-list-filesystems.pl:50 ../tools/virt-cat.pl:80
15400 #: ../tools/virt-tar.pl:99 ../tools/virt-rescue.pl:103
15401 #: ../tools/virt-make-fs.pl:153 ../tools/virt-list-partitions.pl:51
15402 msgid "OPTIONS"
15403 msgstr ""
15404
15405 # type: =item
15406 #: ../fish/guestfish.pod:152 ../fuse/guestmount.pod:94
15407 #: ../inspector/virt-inspector.pl:83 ../tools/virt-edit.pl:81
15408 #: ../tools/virt-win-reg.pl:180 ../tools/virt-df.pl:79 ../tools/virt-ls.pl:87
15409 #: ../tools/virt-resize.pl:265 ../tools/virt-list-filesystems.pl:58
15410 #: ../tools/virt-cat.pl:88 ../tools/virt-tar.pl:107
15411 #: ../tools/virt-rescue.pl:111 ../tools/virt-make-fs.pl:161
15412 #: ../tools/virt-list-partitions.pl:59
15413 msgid "B<--help>"
15414 msgstr ""
15415
15416 # type: textblock
15417 #: ../fish/guestfish.pod:154
15418 msgid "Displays general help on options."
15419 msgstr ""
15420
15421 # type: =item
15422 #: ../fish/guestfish.pod:156
15423 msgid "B<-h> | B<--cmd-help>"
15424 msgstr ""
15425
15426 # type: textblock
15427 #: ../fish/guestfish.pod:158
15428 msgid "Lists all available guestfish commands."
15429 msgstr ""
15430
15431 # type: =item
15432 #: ../fish/guestfish.pod:160
15433 msgid "B<-h cmd> | B<--cmd-help cmd>"
15434 msgstr ""
15435
15436 # type: textblock
15437 #: ../fish/guestfish.pod:162
15438 msgid "Displays detailed help on a single command C<cmd>."
15439 msgstr ""
15440
15441 # type: =item
15442 #: ../fish/guestfish.pod:164 ../fuse/guestmount.pod:74
15443 msgid "B<-a image> | B<--add image>"
15444 msgstr ""
15445
15446 # type: textblock
15447 #: ../fish/guestfish.pod:166
15448 msgid "Add a block device or virtual machine image to the shell."
15449 msgstr ""
15450
15451 # type: textblock
15452 #: ../fish/guestfish.pod:168
15453 msgid ""
15454 "The format of the disk image is auto-detected.  To override this and force a "
15455 "particular format use the I<--format=..> option."
15456 msgstr ""
15457
15458 # type: =item
15459 #: ../fish/guestfish.pod:171
15460 msgid "B<-c URI> | B<--connect URI>"
15461 msgstr ""
15462
15463 # type: textblock
15464 #: ../fish/guestfish.pod:173
15465 msgid ""
15466 "When used in conjunction with the I<-d> option, this specifies the libvirt "
15467 "URI to use.  The default is to use the default libvirt connection."
15468 msgstr ""
15469
15470 # type: =item
15471 #: ../fish/guestfish.pod:177
15472 msgid "B<-d libvirt-domain> | B<--domain libvirt-domain>"
15473 msgstr ""
15474
15475 # type: textblock
15476 #: ../fish/guestfish.pod:179
15477 msgid ""
15478 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
15479 "used, then any libvirt domain can be used.  However in write mode, only "
15480 "libvirt domains which are shut down can be named here."
15481 msgstr ""
15482
15483 # type: =item
15484 #: ../fish/guestfish.pod:183
15485 msgid "B<-D> | B<--no-dest-paths>"
15486 msgstr ""
15487
15488 # type: textblock
15489 #: ../fish/guestfish.pod:185
15490 msgid ""
15491 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
15492 "to hit the tab key to complete paths on the guest filesystem, but this "
15493 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
15494 "allow this feature to be disabled."
15495 msgstr ""
15496
15497 # type: =item
15498 #: ../fish/guestfish.pod:190
15499 msgid "B<--echo-keys>"
15500 msgstr ""
15501
15502 # type: textblock
15503 #: ../fish/guestfish.pod:192
15504 msgid ""
15505 "When prompting for keys and passphrases, guestfish normally turns echoing "
15506 "off so you cannot see what you are typing.  If you are not worried about "
15507 "Tempest attacks and there is no one else in the room you can specify this "
15508 "flag to see what you are typing."
15509 msgstr ""
15510
15511 # type: =item
15512 #: ../fish/guestfish.pod:197
15513 msgid "B<-f file> | B<--file file>"
15514 msgstr ""
15515
15516 # type: textblock
15517 #: ../fish/guestfish.pod:199
15518 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
15519 msgstr ""
15520
15521 # type: verbatim
15522 #: ../fish/guestfish.pod:202
15523 #, no-wrap
15524 msgid ""
15525 " #!/usr/bin/guestfish -f\n"
15526 "\n"
15527 msgstr ""
15528
15529 # type: =item
15530 #: ../fish/guestfish.pod:204
15531 msgid "B<--format=raw|qcow2|..> | B<--format>"
15532 msgstr ""
15533
15534 # type: textblock
15535 #: ../fish/guestfish.pod:206
15536 msgid ""
15537 "The default for the I<-a> option is to auto-detect the format of the disk "
15538 "image.  Using this forces the disk format for I<-a> options which follow on "
15539 "the command line.  Using I<--format> with no argument switches back to auto-"
15540 "detection for subsequent I<-a> options."
15541 msgstr ""
15542
15543 # type: textblock
15544 #: ../fish/guestfish.pod:211 ../fish/guestfish.pod:504
15545 msgid "For example:"
15546 msgstr ""
15547
15548 # type: verbatim
15549 #: ../fish/guestfish.pod:213
15550 #, no-wrap
15551 msgid ""
15552 " guestfish --format=raw -a disk.img\n"
15553 "\n"
15554 msgstr ""
15555
15556 # type: textblock
15557 #: ../fish/guestfish.pod:215
15558 msgid "forces raw format (no auto-detection) for C<disk.img>."
15559 msgstr ""
15560
15561 # type: verbatim
15562 #: ../fish/guestfish.pod:217
15563 #, no-wrap
15564 msgid ""
15565 " guestfish --format=raw -a disk.img --format -a another.img\n"
15566 "\n"
15567 msgstr ""
15568
15569 # type: textblock
15570 #: ../fish/guestfish.pod:219
15571 msgid ""
15572 "forces raw format (no auto-detection) for C<disk.img> and reverts to auto-"
15573 "detection for C<another.img>."
15574 msgstr ""
15575
15576 # type: textblock
15577 #: ../fish/guestfish.pod:222
15578 msgid ""
15579 "If you have untrusted raw-format guest disk images, you should use this "
15580 "option to specify the disk format.  This avoids a possible security problem "
15581 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
15582 msgstr ""
15583
15584 # type: =item
15585 #: ../fish/guestfish.pod:227
15586 msgid "B<-i> | B<--inspector>"
15587 msgstr ""
15588
15589 # type: textblock
15590 #: ../fish/guestfish.pod:229
15591 msgid ""
15592 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
15593 "system and mount filesystems as they would be mounted on the real virtual "
15594 "machine."
15595 msgstr ""
15596
15597 # type: textblock
15598 #: ../fish/guestfish.pod:233
15599 msgid "Typical usage is either:"
15600 msgstr ""
15601
15602 # type: verbatim
15603 #: ../fish/guestfish.pod:235
15604 #, no-wrap
15605 msgid ""
15606 " guestfish -d myguest -i\n"
15607 "\n"
15608 msgstr ""
15609
15610 # type: textblock
15611 #: ../fish/guestfish.pod:237
15612 msgid "(for an inactive libvirt domain called I<myguest>), or:"
15613 msgstr ""
15614
15615 # type: verbatim
15616 #: ../fish/guestfish.pod:239
15617 #, no-wrap
15618 msgid ""
15619 " guestfish --ro -d myguest -i\n"
15620 "\n"
15621 msgstr ""
15622
15623 # type: textblock
15624 #: ../fish/guestfish.pod:241
15625 msgid "(for active domains, readonly), or specify the block device directly:"
15626 msgstr ""
15627
15628 # type: verbatim
15629 #: ../fish/guestfish.pod:243
15630 #, no-wrap
15631 msgid ""
15632 " guestfish -a /dev/Guests/MyGuest -i\n"
15633 "\n"
15634 msgstr ""
15635
15636 # type: textblock
15637 #: ../fish/guestfish.pod:245
15638 msgid ""
15639 "Note that the command line syntax changed slightly over older versions of "
15640 "guestfish.  You can still use the old syntax:"
15641 msgstr ""
15642
15643 # type: verbatim
15644 #: ../fish/guestfish.pod:248
15645 #, no-wrap
15646 msgid ""
15647 " guestfish [--ro] -i disk.img\n"
15648 "\n"
15649 msgstr ""
15650
15651 # type: verbatim
15652 #: ../fish/guestfish.pod:250
15653 #, no-wrap
15654 msgid ""
15655 " guestfish [--ro] -i libvirt-domain\n"
15656 "\n"
15657 msgstr ""
15658
15659 # type: =item
15660 #: ../fish/guestfish.pod:252
15661 msgid "B<--keys-from-stdin>"
15662 msgstr ""
15663
15664 # type: textblock
15665 #: ../fish/guestfish.pod:254
15666 msgid ""
15667 "Read key or passphrase parameters from stdin.  The default is to try to read "
15668 "passphrases from the user by opening C</dev/tty>."
15669 msgstr ""
15670
15671 # type: =item
15672 #: ../fish/guestfish.pod:257
15673 msgid "B<--listen>"
15674 msgstr ""
15675
15676 # type: textblock
15677 #: ../fish/guestfish.pod:259
15678 msgid ""
15679 "Fork into the background and listen for remote commands.  See section L</"
15680 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
15681 msgstr ""
15682
15683 # type: =item
15684 #: ../fish/guestfish.pod:262
15685 msgid "B<-m dev[:mountpoint]> | B<--mount dev[:mountpoint]>"
15686 msgstr ""
15687
15688 # type: textblock
15689 #: ../fish/guestfish.pod:264
15690 msgid "Mount the named partition or logical volume on the given mountpoint."
15691 msgstr ""
15692
15693 # type: textblock
15694 #: ../fish/guestfish.pod:266
15695 msgid "If the mountpoint is omitted, it defaults to C</>."
15696 msgstr ""
15697
15698 # type: textblock
15699 #: ../fish/guestfish.pod:268
15700 msgid "You have to mount something on C</> before most commands will work."
15701 msgstr ""
15702
15703 # type: textblock
15704 #: ../fish/guestfish.pod:270
15705 msgid ""
15706 "If any I<-m> or I<--mount> options are given, the guest is automatically "
15707 "launched."
15708 msgstr ""
15709
15710 # type: textblock
15711 #: ../fish/guestfish.pod:273
15712 msgid ""
15713 "If you don't know what filesystems a disk image contains, you can either run "
15714 "guestfish without this option, then list the partitions and LVs available "
15715 "(see L</list-partitions> and L</lvs> commands), or you can use the L<virt-"
15716 "list-filesystems(1)> program."
15717 msgstr ""
15718
15719 # type: =item
15720 #: ../fish/guestfish.pod:278 ../fuse/guestmount.pod:106
15721 msgid "B<-n> | B<--no-sync>"
15722 msgstr ""
15723
15724 # type: textblock
15725 #: ../fish/guestfish.pod:280
15726 msgid ""
15727 "Disable autosync.  This is enabled by default.  See the discussion of "
15728 "autosync in the L<guestfs(3)> manpage."
15729 msgstr ""
15730
15731 # type: =item
15732 #: ../fish/guestfish.pod:283
15733 msgid "B<-N type> | B<--new type> | B<-N help>"
15734 msgstr ""
15735
15736 # type: textblock
15737 #: ../fish/guestfish.pod:285
15738 msgid ""
15739 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
15740 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
15741 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
15742 "IMAGES> below."
15743 msgstr ""
15744
15745 # type: =item
15746 #: ../fish/guestfish.pod:290
15747 msgid "B<--progress-bars>"
15748 msgstr ""
15749
15750 # type: textblock
15751 #: ../fish/guestfish.pod:292
15752 msgid "Enable progress bars, even when guestfish is used non-interactively."
15753 msgstr ""
15754
15755 # type: textblock
15756 #: ../fish/guestfish.pod:294
15757 msgid ""
15758 "Progress bars are enabled by default when guestfish is used as an "
15759 "interactive shell."
15760 msgstr ""
15761
15762 # type: =item
15763 #: ../fish/guestfish.pod:297
15764 msgid "B<--no-progress-bars>"
15765 msgstr ""
15766
15767 # type: textblock
15768 #: ../fish/guestfish.pod:299
15769 msgid "Disable progress bars."
15770 msgstr ""
15771
15772 # type: =item
15773 #: ../fish/guestfish.pod:301
15774 msgid "B<--remote[=pid]>"
15775 msgstr ""
15776
15777 # type: textblock
15778 #: ../fish/guestfish.pod:303
15779 msgid ""
15780 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
15781 "CONTROL GUESTFISH OVER A SOCKET> below."
15782 msgstr ""
15783
15784 # type: =item
15785 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:148
15786 msgid "B<-r> | B<--ro>"
15787 msgstr ""
15788
15789 # type: textblock
15790 #: ../fish/guestfish.pod:308
15791 msgid ""
15792 "This changes the I<-a> and I<-m> options so that disks are added and mounts "
15793 "are done read-only (see L<guestfs(3)/guestfs_mount_ro>)."
15794 msgstr ""
15795
15796 # type: textblock
15797 #: ../fish/guestfish.pod:311 ../tools/virt-rescue.pl:179
15798 msgid ""
15799 "The option must always be used if the disk image or virtual machine might be "
15800 "running, and is generally recommended in cases where you don't need write "
15801 "access to the disk."
15802 msgstr ""
15803
15804 # type: textblock
15805 #: ../fish/guestfish.pod:315
15806 msgid ""
15807 "Note that prepared disk images created with I<-N> are not affected by the "
15808 "I<--ro> option."
15809 msgstr ""
15810
15811 # type: =item
15812 #: ../fish/guestfish.pod:318 ../fuse/guestmount.pod:158
15813 #: ../tools/virt-rescue.pl:187
15814 msgid "B<--selinux>"
15815 msgstr ""
15816
15817 # type: textblock
15818 #: ../fish/guestfish.pod:320
15819 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
15820 msgstr ""
15821
15822 # type: =item
15823 #: ../fish/guestfish.pod:322 ../fuse/guestmount.pod:168
15824 msgid "B<-v> | B<--verbose>"
15825 msgstr ""
15826
15827 # type: textblock
15828 #: ../fish/guestfish.pod:324
15829 msgid ""
15830 "Enable very verbose messages.  This is particularly useful if you find a bug."
15831 msgstr ""
15832
15833 # type: =item
15834 #: ../fish/guestfish.pod:327 ../fuse/guestmount.pod:172
15835 msgid "B<-V> | B<--version>"
15836 msgstr ""
15837
15838 # type: textblock
15839 #: ../fish/guestfish.pod:329
15840 msgid "Display the guestfish / libguestfs version number and exit."
15841 msgstr ""
15842
15843 # type: =item
15844 #: ../fish/guestfish.pod:331
15845 msgid "B<-x>"
15846 msgstr ""
15847
15848 # type: textblock
15849 #: ../fish/guestfish.pod:333
15850 msgid "Echo each command before executing it."
15851 msgstr ""
15852
15853 # type: =head1
15854 #: ../fish/guestfish.pod:337
15855 msgid "COMMANDS ON COMMAND LINE"
15856 msgstr ""
15857
15858 # type: textblock
15859 #: ../fish/guestfish.pod:339
15860 msgid ""
15861 "Any additional (non-option) arguments are treated as commands to execute."
15862 msgstr ""
15863
15864 # type: textblock
15865 #: ../fish/guestfish.pod:342
15866 msgid ""
15867 "Commands to execute should be separated by a colon (C<:>), where the colon "
15868 "is a separate parameter.  Thus:"
15869 msgstr ""
15870
15871 # type: verbatim
15872 #: ../fish/guestfish.pod:345
15873 #, no-wrap
15874 msgid ""
15875 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
15876 "\n"
15877 msgstr ""
15878
15879 # type: textblock
15880 #: ../fish/guestfish.pod:347
15881 msgid ""
15882 "If there are no additional arguments, then we enter a shell, either an "
15883 "interactive shell with a prompt (if the input is a terminal) or a non-"
15884 "interactive shell."
15885 msgstr ""
15886
15887 # type: textblock
15888 #: ../fish/guestfish.pod:351
15889 msgid ""
15890 "In either command line mode or non-interactive shell, the first command that "
15891 "gives an error causes the whole shell to exit.  In interactive mode (with a "
15892 "prompt) if a command fails, you can continue to enter commands."
15893 msgstr ""
15894
15895 # type: =head1
15896 #: ../fish/guestfish.pod:356
15897 msgid "USING launch (OR run)"
15898 msgstr ""
15899
15900 # type: textblock
15901 #: ../fish/guestfish.pod:358
15902 msgid ""
15903 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
15904 "then launch it, then mount any disks you need, and finally issue actions/"
15905 "commands.  So the general order of the day is:"
15906 msgstr ""
15907
15908 # type: textblock
15909 #: ../fish/guestfish.pod:366
15910 msgid "add or -a/--add"
15911 msgstr ""
15912
15913 # type: textblock
15914 #: ../fish/guestfish.pod:370
15915 msgid "launch (aka run)"
15916 msgstr ""
15917
15918 # type: textblock
15919 #: ../fish/guestfish.pod:374
15920 msgid "mount or -m/--mount"
15921 msgstr ""
15922
15923 # type: textblock
15924 #: ../fish/guestfish.pod:378
15925 msgid "any other commands"
15926 msgstr ""
15927
15928 # type: textblock
15929 #: ../fish/guestfish.pod:382
15930 msgid ""
15931 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
15932 "guest before mounting or performing any other commands."
15933 msgstr ""
15934
15935 # type: textblock
15936 #: ../fish/guestfish.pod:385
15937 msgid ""
15938 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
15939 "I<--new> options were given then C<run> is done automatically, simply "
15940 "because guestfish can't perform the action you asked for without doing this."
15941 msgstr ""
15942
15943 # type: =head1
15944 #: ../fish/guestfish.pod:390
15945 msgid "QUOTING"
15946 msgstr ""
15947
15948 # type: textblock
15949 #: ../fish/guestfish.pod:392
15950 msgid ""
15951 "You can quote ordinary parameters using either single or double quotes.  For "
15952 "example:"
15953 msgstr ""
15954
15955 # type: verbatim
15956 #: ../fish/guestfish.pod:395
15957 #, no-wrap
15958 msgid ""
15959 " add \"file with a space.img\"\n"
15960 "\n"
15961 msgstr ""
15962
15963 # type: verbatim
15964 #: ../fish/guestfish.pod:397
15965 #, no-wrap
15966 msgid ""
15967 " rm '/file name'\n"
15968 "\n"
15969 msgstr ""
15970
15971 # type: verbatim
15972 #: ../fish/guestfish.pod:399
15973 #, no-wrap
15974 msgid ""
15975 " rm '/\"'\n"
15976 "\n"
15977 msgstr ""
15978
15979 # type: textblock
15980 #: ../fish/guestfish.pod:401
15981 msgid ""
15982 "A few commands require a list of strings to be passed.  For these, use a "
15983 "whitespace-separated list, enclosed in quotes.  Strings containing "
15984 "whitespace to be passed through must be enclosed in single quotes.  A "
15985 "literal single quote must be escaped with a backslash."
15986 msgstr ""
15987
15988 # type: verbatim
15989 #: ../fish/guestfish.pod:406
15990 #, no-wrap
15991 msgid ""
15992 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
15993 " command \"/bin/echo 'foo      bar'\"\n"
15994 " command \"/bin/echo \\'foo\\'\"\n"
15995 "\n"
15996 msgstr ""
15997
15998 # type: =head1
15999 #: ../fish/guestfish.pod:410
16000 msgid "OPTIONAL ARGUMENTS"
16001 msgstr ""
16002
16003 # type: textblock
16004 #: ../fish/guestfish.pod:412
16005 msgid ""
16006 "Some commands take optional arguments.  These arguments appear in this "
16007 "documentation as C<[argname:..]>.  You can use them as in these examples:"
16008 msgstr ""
16009
16010 # type: verbatim
16011 #: ../fish/guestfish.pod:416
16012 #, no-wrap
16013 msgid ""
16014 " add-drive-opts filename\n"
16015 "\n"
16016 msgstr ""
16017
16018 # type: verbatim
16019 #: ../fish/guestfish.pod:418
16020 #, no-wrap
16021 msgid ""
16022 " add-drive-opts filename readonly:true\n"
16023 "\n"
16024 msgstr ""
16025
16026 # type: verbatim
16027 #: ../fish/guestfish.pod:420
16028 #, no-wrap
16029 msgid ""
16030 " add-drive-opts filename format:qcow2 readonly:false\n"
16031 "\n"
16032 msgstr ""
16033
16034 # type: textblock
16035 #: ../fish/guestfish.pod:422
16036 msgid ""
16037 "Each optional argument can appear at most once.  All optional arguments must "
16038 "appear after the required ones."
16039 msgstr ""
16040
16041 # type: =head1
16042 #: ../fish/guestfish.pod:425
16043 msgid "NUMBERS"
16044 msgstr ""
16045
16046 # type: textblock
16047 #: ../fish/guestfish.pod:427
16048 msgid ""
16049 "This section applies to all commands which can take integers as parameters."
16050 msgstr ""
16051
16052 # type: =head2
16053 #: ../fish/guestfish.pod:430
16054 msgid "SIZE SUFFIX"
16055 msgstr ""
16056
16057 # type: textblock
16058 #: ../fish/guestfish.pod:432
16059 msgid ""
16060 "When the command takes a parameter measured in bytes, you can use one of the "
16061 "following suffixes to specify kilobytes, megabytes and larger sizes:"
16062 msgstr ""
16063
16064 # type: =item
16065 #: ../fish/guestfish.pod:438
16066 msgid "B<k> or B<K> or B<KiB>"
16067 msgstr ""
16068
16069 # type: textblock
16070 #: ../fish/guestfish.pod:440
16071 msgid "The size in kilobytes (multiplied by 1024)."
16072 msgstr ""
16073
16074 # type: =item
16075 #: ../fish/guestfish.pod:442
16076 msgid "B<KB>"
16077 msgstr ""
16078
16079 # type: textblock
16080 #: ../fish/guestfish.pod:444
16081 msgid "The size in SI 1000 byte units."
16082 msgstr ""
16083
16084 # type: =item
16085 #: ../fish/guestfish.pod:446
16086 msgid "B<M> or B<MiB>"
16087 msgstr ""
16088
16089 # type: textblock
16090 #: ../fish/guestfish.pod:448
16091 msgid "The size in megabytes (multiplied by 1048576)."
16092 msgstr ""
16093
16094 # type: =item
16095 #: ../fish/guestfish.pod:450
16096 msgid "B<MB>"
16097 msgstr ""
16098
16099 # type: textblock
16100 #: ../fish/guestfish.pod:452
16101 msgid "The size in SI 1000000 byte units."
16102 msgstr ""
16103
16104 # type: =item
16105 #: ../fish/guestfish.pod:454
16106 msgid "B<G> or B<GiB>"
16107 msgstr ""
16108
16109 # type: textblock
16110 #: ../fish/guestfish.pod:456
16111 msgid "The size in gigabytes (multiplied by 2**30)."
16112 msgstr ""
16113
16114 # type: =item
16115 #: ../fish/guestfish.pod:458
16116 msgid "B<GB>"
16117 msgstr ""
16118
16119 # type: textblock
16120 #: ../fish/guestfish.pod:460
16121 msgid "The size in SI 10**9 byte units."
16122 msgstr ""
16123
16124 # type: =item
16125 #: ../fish/guestfish.pod:462
16126 msgid "B<T> or B<TiB>"
16127 msgstr ""
16128
16129 # type: textblock
16130 #: ../fish/guestfish.pod:464
16131 msgid "The size in terabytes (multiplied by 2**40)."
16132 msgstr ""
16133
16134 # type: =item
16135 #: ../fish/guestfish.pod:466
16136 msgid "B<TB>"
16137 msgstr ""
16138
16139 # type: textblock
16140 #: ../fish/guestfish.pod:468
16141 msgid "The size in SI 10**12 byte units."
16142 msgstr ""
16143
16144 # type: =item
16145 #: ../fish/guestfish.pod:470
16146 msgid "B<P> or B<PiB>"
16147 msgstr ""
16148
16149 # type: textblock
16150 #: ../fish/guestfish.pod:472
16151 msgid "The size in petabytes (multiplied by 2**50)."
16152 msgstr ""
16153
16154 # type: =item
16155 #: ../fish/guestfish.pod:474
16156 msgid "B<PB>"
16157 msgstr ""
16158
16159 # type: textblock
16160 #: ../fish/guestfish.pod:476
16161 msgid "The size in SI 10**15 byte units."
16162 msgstr ""
16163
16164 # type: =item
16165 #: ../fish/guestfish.pod:478
16166 msgid "B<E> or B<EiB>"
16167 msgstr ""
16168
16169 # type: textblock
16170 #: ../fish/guestfish.pod:480
16171 msgid "The size in exabytes (multiplied by 2**60)."
16172 msgstr ""
16173
16174 # type: =item
16175 #: ../fish/guestfish.pod:482
16176 msgid "B<EB>"
16177 msgstr ""
16178
16179 # type: textblock
16180 #: ../fish/guestfish.pod:484
16181 msgid "The size in SI 10**18 byte units."
16182 msgstr ""
16183
16184 # type: =item
16185 #: ../fish/guestfish.pod:486
16186 msgid "B<Z> or B<ZiB>"
16187 msgstr ""
16188
16189 # type: textblock
16190 #: ../fish/guestfish.pod:488
16191 msgid "The size in zettabytes (multiplied by 2**70)."
16192 msgstr ""
16193
16194 # type: =item
16195 #: ../fish/guestfish.pod:490
16196 msgid "B<ZB>"
16197 msgstr ""
16198
16199 # type: textblock
16200 #: ../fish/guestfish.pod:492
16201 msgid "The size in SI 10**21 byte units."
16202 msgstr ""
16203
16204 # type: =item
16205 #: ../fish/guestfish.pod:494
16206 msgid "B<Y> or B<YiB>"
16207 msgstr ""
16208
16209 # type: textblock
16210 #: ../fish/guestfish.pod:496
16211 msgid "The size in yottabytes (multiplied by 2**80)."
16212 msgstr ""
16213
16214 # type: =item
16215 #: ../fish/guestfish.pod:498
16216 msgid "B<YB>"
16217 msgstr ""
16218
16219 # type: textblock
16220 #: ../fish/guestfish.pod:500
16221 msgid "The size in SI 10**24 byte units."
16222 msgstr ""
16223
16224 # type: verbatim
16225 #: ../fish/guestfish.pod:506
16226 #, no-wrap
16227 msgid ""
16228 " truncate-size /file 1G\n"
16229 "\n"
16230 msgstr ""
16231
16232 # type: textblock
16233 #: ../fish/guestfish.pod:508
16234 msgid "would truncate the file to 1 gigabyte."
16235 msgstr ""
16236
16237 # type: textblock
16238 #: ../fish/guestfish.pod:510
16239 msgid ""
16240 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
16241 "the parameter to L</memsize> is specified in megabytes already).  Adding a "
16242 "suffix will probably not do what you expect."
16243 msgstr ""
16244
16245 # type: =head2
16246 #: ../fish/guestfish.pod:514
16247 msgid "OCTAL AND HEXADECIMAL NUMBERS"
16248 msgstr ""
16249
16250 # type: textblock
16251 #: ../fish/guestfish.pod:516
16252 msgid ""
16253 "For specifying the radix (base) use the C convention: C<0> to prefix an "
16254 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
16255 msgstr ""
16256
16257 # type: verbatim
16258 #: ../fish/guestfish.pod:519
16259 #, no-wrap
16260 msgid ""
16261 " 1234      decimal number 1234\n"
16262 " 02322     octal number, equivalent to decimal 1234\n"
16263 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
16264 "\n"
16265 msgstr ""
16266
16267 # type: textblock
16268 #: ../fish/guestfish.pod:523
16269 msgid ""
16270 "When using the C<chmod> command, you almost always want to specify an octal "
16271 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
16272 "L<chmod(1)> program):"
16273 msgstr ""
16274
16275 # type: verbatim
16276 #: ../fish/guestfish.pod:527
16277 #, no-wrap
16278 msgid ""
16279 " chmod 0777 /public  # OK\n"
16280 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
16281 "\n"
16282 msgstr ""
16283
16284 # type: textblock
16285 #: ../fish/guestfish.pod:530
16286 msgid ""
16287 "Commands that return numbers usually print them in decimal, but some "
16288 "commands print numbers in other radices (eg. C<umask> prints the mode in "
16289 "octal, preceeded by C<0>)."
16290 msgstr ""
16291
16292 # type: =head1
16293 #: ../fish/guestfish.pod:534
16294 msgid "WILDCARDS AND GLOBBING"
16295 msgstr ""
16296
16297 # type: textblock
16298 #: ../fish/guestfish.pod:536
16299 msgid ""
16300 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
16301 "(globbing) by default.  So for example the following will not do what you "
16302 "expect:"
16303 msgstr ""
16304
16305 # type: verbatim
16306 #: ../fish/guestfish.pod:540
16307 #, no-wrap
16308 msgid ""
16309 " rm-rf /home/*\n"
16310 "\n"
16311 msgstr ""
16312
16313 # type: textblock
16314 #: ../fish/guestfish.pod:542
16315 msgid ""
16316 "Assuming you don't have a directory called literally C</home/*> then the "
16317 "above command will return an error."
16318 msgstr ""
16319
16320 # type: textblock
16321 #: ../fish/guestfish.pod:545
16322 msgid "To perform wildcard expansion, use the C<glob> command."
16323 msgstr ""
16324
16325 # type: verbatim
16326 #: ../fish/guestfish.pod:547
16327 #, no-wrap
16328 msgid ""
16329 " glob rm-rf /home/*\n"
16330 "\n"
16331 msgstr ""
16332
16333 # type: textblock
16334 #: ../fish/guestfish.pod:549
16335 msgid ""
16336 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
16337 "many times), equivalent to:"
16338 msgstr ""
16339
16340 # type: verbatim
16341 #: ../fish/guestfish.pod:552
16342 #, no-wrap
16343 msgid ""
16344 " rm-rf /home/jim\n"
16345 " rm-rf /home/joe\n"
16346 " rm-rf /home/mary\n"
16347 "\n"
16348 msgstr ""
16349
16350 # type: textblock
16351 #: ../fish/guestfish.pod:556
16352 msgid "C<glob> only works on simple guest paths and not on device names."
16353 msgstr ""
16354
16355 # type: textblock
16356 #: ../fish/guestfish.pod:558
16357 msgid ""
16358 "If you have several parameters, each containing a wildcard, then glob will "
16359 "perform a Cartesian product."
16360 msgstr ""
16361
16362 # type: =head1
16363 #: ../fish/guestfish.pod:561
16364 msgid "COMMENTS"
16365 msgstr ""
16366
16367 # type: textblock
16368 #: ../fish/guestfish.pod:563
16369 msgid ""
16370 "Any line which starts with a I<#> character is treated as a comment and "
16371 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
16372 "a command.  For example:"
16373 msgstr ""
16374
16375 # type: verbatim
16376 #: ../fish/guestfish.pod:567
16377 #, no-wrap
16378 msgid ""
16379 " # this is a comment\n"
16380 "         # this is a comment\n"
16381 " foo # NOT a comment\n"
16382 "\n"
16383 msgstr ""
16384
16385 # type: textblock
16386 #: ../fish/guestfish.pod:571
16387 msgid "Blank lines are also ignored."
16388 msgstr ""
16389
16390 # type: =head1
16391 #: ../fish/guestfish.pod:573
16392 msgid "RUNNING COMMANDS LOCALLY"
16393 msgstr ""
16394
16395 # type: textblock
16396 #: ../fish/guestfish.pod:575
16397 msgid ""
16398 "Any line which starts with a I<!> character is treated as a command sent to "
16399 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
16400 msgstr ""
16401
16402 # type: verbatim
16403 #: ../fish/guestfish.pod:579
16404 #, no-wrap
16405 msgid ""
16406 " !mkdir local\n"
16407 " tgz-out /remote local/remote-data.tar.gz\n"
16408 "\n"
16409 msgstr ""
16410
16411 # type: textblock
16412 #: ../fish/guestfish.pod:582
16413 msgid ""
16414 "will create a directory C<local> on the host, and then export the contents "
16415 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
16416 "(See C<tgz-out>)."
16417 msgstr ""
16418
16419 # type: textblock
16420 #: ../fish/guestfish.pod:586
16421 msgid ""
16422 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
16423 "effect, due to the way that subprocesses work in Unix."
16424 msgstr ""
16425
16426 # type: =head1
16427 #: ../fish/guestfish.pod:589
16428 msgid "PIPES"
16429 msgstr ""
16430
16431 # type: textblock
16432 #: ../fish/guestfish.pod:591
16433 msgid ""
16434 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
16435 "command (a guestfish command) to the second command (any host command).  For "
16436 "example:"
16437 msgstr ""
16438
16439 # type: verbatim
16440 #: ../fish/guestfish.pod:595
16441 #, no-wrap
16442 msgid ""
16443 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
16444 "\n"
16445 msgstr ""
16446
16447 # type: textblock
16448 #: ../fish/guestfish.pod:597
16449 msgid ""
16450 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
16451 "program).  The above command would list all accounts in the guest filesystem "
16452 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
16453 msgstr ""
16454
16455 # type: verbatim
16456 #: ../fish/guestfish.pod:602
16457 #, no-wrap
16458 msgid ""
16459 " hexdump /bin/ls | head\n"
16460 " list-devices | tail -1\n"
16461 " tgz-out / - | tar ztf -\n"
16462 "\n"
16463 msgstr ""
16464
16465 # type: textblock
16466 #: ../fish/guestfish.pod:606
16467 msgid ""
16468 "The space before the pipe symbol is required, any space after the pipe "
16469 "symbol is optional.  Everything after the pipe symbol is just passed "
16470 "straight to the host shell, so it can contain redirections, globs and "
16471 "anything else that makes sense on the host side."
16472 msgstr ""
16473
16474 # type: textblock
16475 #: ../fish/guestfish.pod:611
16476 msgid ""
16477 "To use a literal argument which begins with a pipe symbol, you have to quote "
16478 "it, eg:"
16479 msgstr ""
16480
16481 # type: verbatim
16482 #: ../fish/guestfish.pod:614
16483 #, no-wrap
16484 msgid ""
16485 " echo \"|\"\n"
16486 "\n"
16487 msgstr ""
16488
16489 # type: =head1
16490 #: ../fish/guestfish.pod:616
16491 msgid "HOME DIRECTORIES"
16492 msgstr ""
16493
16494 # type: textblock
16495 #: ../fish/guestfish.pod:618
16496 msgid ""
16497 "If a parameter starts with the character C<~> then the tilde may be expanded "
16498 "as a home directory path (either C<~> for the current user's home directory, "
16499 "or C<~user> for another user)."
16500 msgstr ""
16501
16502 # type: textblock
16503 #: ../fish/guestfish.pod:622
16504 msgid ""
16505 "Note that home directory expansion happens for users known I<on the host>, "
16506 "not in the guest filesystem."
16507 msgstr ""
16508
16509 # type: textblock
16510 #: ../fish/guestfish.pod:625
16511 msgid ""
16512 "To use a literal argument which begins with a tilde, you have to quote it, "
16513 "eg:"
16514 msgstr ""
16515
16516 # type: verbatim
16517 #: ../fish/guestfish.pod:628
16518 #, no-wrap
16519 msgid ""
16520 " echo \"~\"\n"
16521 "\n"
16522 msgstr ""
16523
16524 # type: textblock
16525 #: ../fish/guestfish.pod:632
16526 msgid ""
16527 "Libguestfs has some support for Linux guests encrypted according to the "
16528 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
16529 "disk encryption systems used by modern Linux guests.  Currently only LVM-on-"
16530 "LUKS is supported."
16531 msgstr ""
16532
16533 # type: textblock
16534 #: ../fish/guestfish.pod:637
16535 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
16536 msgstr ""
16537
16538 # type: verbatim
16539 #: ../fish/guestfish.pod:639
16540 #, no-wrap
16541 msgid ""
16542 " ><fs> vfs-type /dev/sda2\n"
16543 " crypto_LUKS\n"
16544 "\n"
16545 msgstr ""
16546
16547 # type: textblock
16548 #: ../fish/guestfish.pod:642
16549 msgid ""
16550 "Then open those devices using L</luks-open>.  This creates a device-mapper "
16551 "device called C</dev/mapper/luksdev>."
16552 msgstr ""
16553
16554 # type: verbatim
16555 #: ../fish/guestfish.pod:645
16556 #, no-wrap
16557 msgid ""
16558 " ><fs> luks-open /dev/sda2 luksdev\n"
16559 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
16560 "\n"
16561 msgstr ""
16562
16563 # type: textblock
16564 #: ../fish/guestfish.pod:648
16565 msgid ""
16566 "Finally you have to tell LVM to scan for volume groups on the newly created "
16567 "mapper device:"
16568 msgstr ""
16569
16570 # type: verbatim
16571 #: ../fish/guestfish.pod:651
16572 #, no-wrap
16573 msgid ""
16574 " vgscan\n"
16575 " vg-activate-all true\n"
16576 "\n"
16577 msgstr ""
16578
16579 # type: textblock
16580 #: ../fish/guestfish.pod:654
16581 msgid "The logical volume(s) can now be mounted in the usual way."
16582 msgstr ""
16583
16584 # type: textblock
16585 #: ../fish/guestfish.pod:656
16586 msgid ""
16587 "Before closing a LUKS device you must unmount any logical volumes on it and "
16588 "deactivate the volume groups by calling C<vg-activate false VG> on each "
16589 "one.  Then you can close the mapper device:"
16590 msgstr ""
16591
16592 # type: verbatim
16593 #: ../fish/guestfish.pod:660
16594 #, no-wrap
16595 msgid ""
16596 " vg-activate false /dev/VG\n"
16597 " luks-close /dev/mapper/luksdev\n"
16598 "\n"
16599 msgstr ""
16600
16601 # type: =head1
16602 #: ../fish/guestfish.pod:663
16603 msgid "WINDOWS PATHS"
16604 msgstr ""
16605
16606 # type: textblock
16607 #: ../fish/guestfish.pod:665
16608 msgid ""
16609 "If a path is prefixed with C<win:> then you can use Windows-style paths "
16610 "(with some limitations).  The following commands are equivalent:"
16611 msgstr ""
16612
16613 # type: verbatim
16614 #: ../fish/guestfish.pod:668
16615 #, no-wrap
16616 msgid ""
16617 " file /WINDOWS/system32/config/system.LOG\n"
16618 "\n"
16619 msgstr ""
16620
16621 # type: verbatim
16622 #: ../fish/guestfish.pod:670
16623 #, no-wrap
16624 msgid ""
16625 " file win:/windows/system32/config/system.log\n"
16626 "\n"
16627 msgstr ""
16628
16629 # type: verbatim
16630 #: ../fish/guestfish.pod:672
16631 #, no-wrap
16632 msgid ""
16633 " file win:\\windows\\system32\\config\\system.log\n"
16634 "\n"
16635 msgstr ""
16636
16637 # type: verbatim
16638 #: ../fish/guestfish.pod:674
16639 #, no-wrap
16640 msgid ""
16641 " file WIN:C:\\Windows\\SYSTEM32\\conFIG\\SYSTEM.LOG\n"
16642 "\n"
16643 msgstr ""
16644
16645 # type: textblock
16646 #: ../fish/guestfish.pod:676
16647 msgid ""
16648 "This syntax implicitly calls C<case-sensitive-path> (q.v.) so it also "
16649 "handles case insensitivity like Windows would.  This only works in argument "
16650 "positions that expect a path."
16651 msgstr ""
16652
16653 # type: =head1
16654 #: ../fish/guestfish.pod:680
16655 msgid "UPLOADING AND DOWNLOADING FILES"
16656 msgstr ""
16657
16658 # type: textblock
16659 #: ../fish/guestfish.pod:682
16660 msgid ""
16661 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
16662 "others which upload from or download to a local file, you can use the "
16663 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
16664 msgstr ""
16665
16666 # type: verbatim
16667 #: ../fish/guestfish.pod:686
16668 #, no-wrap
16669 msgid ""
16670 " upload - /foo\n"
16671 "\n"
16672 msgstr ""
16673
16674 # type: textblock
16675 #: ../fish/guestfish.pod:688
16676 msgid ""
16677 "reads stdin and creates from that a file C</foo> in the disk image, and:"
16678 msgstr ""
16679
16680 # type: verbatim
16681 #: ../fish/guestfish.pod:691
16682 #, no-wrap
16683 msgid ""
16684 " tar-out /etc - | tar tf -\n"
16685 "\n"
16686 msgstr ""
16687
16688 # type: textblock
16689 #: ../fish/guestfish.pod:693
16690 msgid ""
16691 "writes the tarball to stdout and then pipes that into the external \"tar\" "
16692 "command (see L</PIPES>)."
16693 msgstr ""
16694
16695 # type: textblock
16696 #: ../fish/guestfish.pod:696
16697 msgid ""
16698 "When using C<-> to read from stdin, the input is read up to the end of "
16699 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
16700 "some arbitrary end marker:"
16701 msgstr ""
16702
16703 # type: verbatim
16704 #: ../fish/guestfish.pod:700
16705 #, no-wrap
16706 msgid ""
16707 " upload -<<END /foo\n"
16708 " input line 1\n"
16709 " input line 2\n"
16710 " input line 3\n"
16711 " END\n"
16712 "\n"
16713 msgstr ""
16714
16715 # type: textblock
16716 #: ../fish/guestfish.pod:706
16717 msgid ""
16718 "Any string of characters can be used instead of C<END>.  The end marker must "
16719 "appear on a line of its own, without any preceeding or following characters "
16720 "(not even spaces)."
16721 msgstr ""
16722
16723 # type: textblock
16724 #: ../fish/guestfish.pod:710
16725 msgid ""
16726 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
16727 "upload local files (so-called \"FileIn\" parameters in the generator)."
16728 msgstr ""
16729
16730 # type: =head1
16731 #: ../fish/guestfish.pod:713
16732 msgid "EXIT ON ERROR BEHAVIOUR"
16733 msgstr ""
16734
16735 # type: textblock
16736 #: ../fish/guestfish.pod:715
16737 msgid ""
16738 "By default, guestfish will ignore any errors when in interactive mode (ie. "
16739 "taking commands from a human over a tty), and will exit on the first error "
16740 "in non-interactive mode (scripts, commands given on the command line)."
16741 msgstr ""
16742
16743 # type: textblock
16744 #: ../fish/guestfish.pod:720
16745 msgid ""
16746 "If you prefix a command with a I<-> character, then that command will not "
16747 "cause guestfish to exit, even if that (one) command returns an error."
16748 msgstr ""
16749
16750 # type: =head1
16751 #: ../fish/guestfish.pod:724
16752 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
16753 msgstr ""
16754
16755 # type: textblock
16756 #: ../fish/guestfish.pod:726
16757 msgid ""
16758 "Guestfish can be remote-controlled over a socket.  This is useful "
16759 "particularly in shell scripts where you want to make several different "
16760 "changes to a filesystem, but you don't want the overhead of starting up a "
16761 "guestfish process each time."
16762 msgstr ""
16763
16764 # type: textblock
16765 #: ../fish/guestfish.pod:731
16766 msgid "Start a guestfish server process using:"
16767 msgstr ""
16768
16769 # type: verbatim
16770 #: ../fish/guestfish.pod:733
16771 #, no-wrap
16772 msgid ""
16773 " eval `guestfish --listen`\n"
16774 "\n"
16775 msgstr ""
16776
16777 # type: textblock
16778 #: ../fish/guestfish.pod:735
16779 msgid "and then send it commands by doing:"
16780 msgstr ""
16781
16782 # type: verbatim
16783 #: ../fish/guestfish.pod:737
16784 #, no-wrap
16785 msgid ""
16786 " guestfish --remote cmd [...]\n"
16787 "\n"
16788 msgstr ""
16789
16790 # type: textblock
16791 #: ../fish/guestfish.pod:739
16792 msgid "To cause the server to exit, send it the exit command:"
16793 msgstr ""
16794
16795 # type: verbatim
16796 #: ../fish/guestfish.pod:741
16797 #, no-wrap
16798 msgid ""
16799 " guestfish --remote exit\n"
16800 "\n"
16801 msgstr ""
16802
16803 # type: textblock
16804 #: ../fish/guestfish.pod:743
16805 msgid ""
16806 "Note that the server will normally exit if there is an error in a command.  "
16807 "You can change this in the usual way.  See section L</EXIT ON ERROR "
16808 "BEHAVIOUR>."
16809 msgstr ""
16810
16811 # type: =head2
16812 #: ../fish/guestfish.pod:747
16813 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
16814 msgstr ""
16815
16816 # type: textblock
16817 #: ../fish/guestfish.pod:749
16818 msgid ""
16819 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
16820 "is how the I<--remote> option knows where to send the commands.  You can "
16821 "have several guestfish listener processes running using:"
16822 msgstr ""
16823
16824 # type: verbatim
16825 #: ../fish/guestfish.pod:753
16826 #, no-wrap
16827 msgid ""
16828 " eval `guestfish --listen`\n"
16829 " pid1=$GUESTFISH_PID\n"
16830 " eval `guestfish --listen`\n"
16831 " pid2=$GUESTFISH_PID\n"
16832 " ...\n"
16833 " guestfish --remote=$pid1 cmd\n"
16834 " guestfish --remote=$pid2 cmd\n"
16835 "\n"
16836 msgstr ""
16837
16838 # type: =head2
16839 #: ../fish/guestfish.pod:761
16840 msgid "REMOTE CONTROL DETAILS"
16841 msgstr ""
16842
16843 # type: textblock
16844 #: ../fish/guestfish.pod:763
16845 msgid ""
16846 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
16847 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
16848 "and C<$PID> is the process ID of the server."
16849 msgstr ""
16850
16851 # type: textblock
16852 #: ../fish/guestfish.pod:767
16853 msgid "Guestfish client and server versions must match exactly."
16854 msgstr ""
16855
16856 # type: =head1
16857 #: ../fish/guestfish.pod:769
16858 msgid "PREPARED DISK IMAGES"
16859 msgstr ""
16860
16861 # type: textblock
16862 #: ../fish/guestfish.pod:771
16863 msgid ""
16864 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
16865 "preformatted disk images that guestfish can make for you to save typing.  "
16866 "This is particularly useful for testing purposes.  This option is used "
16867 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
16868 "can be mixed with I<-a>)."
16869 msgstr ""
16870
16871 # type: textblock
16872 #: ../fish/guestfish.pod:777
16873 msgid ""
16874 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
16875 "the second and so on.  Existing files in the current directory are "
16876 "I<overwritten>."
16877 msgstr ""
16878
16879 # type: textblock
16880 #: ../fish/guestfish.pod:781
16881 msgid ""
16882 "The type briefly describes how the disk should be sized, partitioned, how "
16883 "filesystem(s) should be created, and how content should be added.  "
16884 "Optionally the type can be followed by extra parameters, separated by C<:> "
16885 "(colon) characters.  For example, I<-N fs> creates a default 100MB, sparsely-"
16886 "allocated disk, containing a single partition, with the partition formatted "
16887 "as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
16888 "disk instead."
16889 msgstr ""
16890
16891 # type: textblock
16892 #: ../fish/guestfish.pod:789
16893 msgid "To list the available types and any extra parameters they take, run:"
16894 msgstr ""
16895
16896 # type: textblock
16897 #: ../fish/guestfish.pod:793
16898 msgid ""
16899 "Note that the prepared filesystem is not mounted.  You would usually have to "
16900 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
16901 msgstr ""
16902
16903 # type: textblock
16904 #: ../fish/guestfish.pod:797
16905 msgid ""
16906 "If any I<-N> or I<--new> options are given, the guest is automatically "
16907 "launched."
16908 msgstr ""
16909
16910 # type: textblock
16911 #: ../fish/guestfish.pod:802
16912 msgid "Create a 100MB disk with an ext4-formatted partition:"
16913 msgstr ""
16914
16915 # type: verbatim
16916 #: ../fish/guestfish.pod:804
16917 #, no-wrap
16918 msgid ""
16919 " guestfish -N fs:ext4\n"
16920 "\n"
16921 msgstr ""
16922
16923 # type: textblock
16924 #: ../fish/guestfish.pod:806
16925 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
16926 msgstr ""
16927
16928 # type: verbatim
16929 #: ../fish/guestfish.pod:808
16930 #, no-wrap
16931 msgid ""
16932 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
16933 "\n"
16934 msgstr ""
16935
16936 # type: textblock
16937 #: ../fish/guestfish.pod:810
16938 msgid "Create a blank 200MB disk:"
16939 msgstr ""
16940
16941 # type: verbatim
16942 #: ../fish/guestfish.pod:812
16943 #, no-wrap
16944 msgid ""
16945 " guestfish -N disk:200M\n"
16946 "\n"
16947 msgstr ""
16948
16949 # type: =head1
16950 #: ../fish/guestfish.pod:814
16951 msgid "PROGRESS BARS"
16952 msgstr ""
16953
16954 # type: textblock
16955 #: ../fish/guestfish.pod:816
16956 msgid ""
16957 "Some (not all) long-running commands send progress notification messages as "
16958 "they are running.  Guestfish turns these messages into progress bars."
16959 msgstr ""
16960
16961 # type: textblock
16962 #: ../fish/guestfish.pod:820
16963 msgid ""
16964 "When a command that supports progress bars takes longer than two seconds to "
16965 "run, and if progress bars are enabled, then you will see one appearing below "
16966 "the command:"
16967 msgstr ""
16968
16969 # type: verbatim
16970 #: ../fish/guestfish.pod:824
16971 #, no-wrap
16972 msgid ""
16973 " ><fs> copy-size /large-file /another-file 2048M\n"
16974 " / 10% [#####-----------------------------------------] 00:30\n"
16975 "\n"
16976 msgstr ""
16977
16978 # type: textblock
16979 #: ../fish/guestfish.pod:827
16980 msgid ""
16981 "The spinner on the left hand side moves round once for every progress "
16982 "notification received from the backend.  This is a (reasonably) golden "
16983 "assurance that the command is \"doing something\" even if the progress bar "
16984 "is not moving, because the command is able to send the progress "
16985 "notifications.  When the bar reaches 100% and the command finishes, the "
16986 "spinner disappears."
16987 msgstr ""
16988
16989 # type: textblock
16990 #: ../fish/guestfish.pod:834
16991 msgid ""
16992 "Progress bars are enabled by default when guestfish is used interactively.  "
16993 "You can enable them even for non-interactive modes using I<--progress-bars>, "
16994 "and you can disable them completely using I<--no-progress-bars>."
16995 msgstr ""
16996
16997 # type: =head1
16998 #: ../fish/guestfish.pod:839
16999 msgid "GUESTFISH COMMANDS"
17000 msgstr ""
17001
17002 # type: textblock
17003 #: ../fish/guestfish.pod:841
17004 msgid ""
17005 "The commands in this section are guestfish convenience commands, in other "
17006 "words, they are not part of the L<guestfs(3)> API."
17007 msgstr ""
17008
17009 # type: =head2
17010 #: ../fish/guestfish.pod:844
17011 msgid "help"
17012 msgstr ""
17013
17014 # type: verbatim
17015 #: ../fish/guestfish.pod:846
17016 #, no-wrap
17017 msgid ""
17018 " help\n"
17019 " help cmd\n"
17020 "\n"
17021 msgstr ""
17022
17023 # type: textblock
17024 #: ../fish/guestfish.pod:849
17025 msgid ""
17026 "Without any parameter, this lists all commands.  With a C<cmd> parameter, "
17027 "this displays detailed help for a command."
17028 msgstr ""
17029
17030 # type: =head2
17031 #: ../fish/guestfish.pod:852
17032 msgid "quit | exit"
17033 msgstr ""
17034
17035 # type: textblock
17036 #: ../fish/guestfish.pod:854
17037 msgid "This exits guestfish.  You can also use C<^D> key."
17038 msgstr ""
17039
17040 # type: textblock
17041 #: ../fish/guestfish.pod:856
17042 msgid "@FISH_COMMANDS@"
17043 msgstr ""
17044
17045 # type: =head1
17046 #: ../fish/guestfish.pod:858
17047 msgid "COMMANDS"
17048 msgstr ""
17049
17050 # type: =head1
17051 #: ../fish/guestfish.pod:862 ../test-tool/libguestfs-test-tool.pod:83
17052 msgid "EXIT CODE"
17053 msgstr ""
17054
17055 # type: textblock
17056 #: ../fish/guestfish.pod:864
17057 msgid ""
17058 "guestfish returns 0 if the commands completed without error, or 1 if there "
17059 "was an error."
17060 msgstr ""
17061
17062 # type: =item
17063 #: ../fish/guestfish.pod:871
17064 msgid "EDITOR"
17065 msgstr ""
17066
17067 # type: textblock
17068 #: ../fish/guestfish.pod:873
17069 msgid ""
17070 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
17071 "C<vi>."
17072 msgstr ""
17073
17074 # type: =item
17075 #: ../fish/guestfish.pod:876
17076 msgid "GUESTFISH_PID"
17077 msgstr ""
17078
17079 # type: textblock
17080 #: ../fish/guestfish.pod:878
17081 msgid ""
17082 "Used with the I<--remote> option to specify the remote guestfish process to "
17083 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
17084 msgstr ""
17085
17086 # type: =item
17087 #: ../fish/guestfish.pod:882
17088 msgid "HEXEDITOR"
17089 msgstr ""
17090
17091 # type: textblock
17092 #: ../fish/guestfish.pod:884
17093 msgid ""
17094 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
17095 "not specified, the external L<hexedit(1)> program is used."
17096 msgstr ""
17097
17098 # type: =item
17099 #: ../fish/guestfish.pod:888
17100 msgid "HOME"
17101 msgstr ""
17102
17103 # type: textblock
17104 #: ../fish/guestfish.pod:890
17105 msgid ""
17106 "If compiled with GNU readline support, various files in the home directory "
17107 "can be used.  See L</FILES>."
17108 msgstr ""
17109
17110 # type: textblock
17111 #: ../fish/guestfish.pod:899
17112 msgid ""
17113 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
17114 "effect as using the B<-v> option."
17115 msgstr ""
17116
17117 # type: textblock
17118 #: ../fish/guestfish.pod:911
17119 msgid ""
17120 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
17121 "the discussion of paths in L<guestfs(3)>."
17122 msgstr ""
17123
17124 # type: textblock
17125 #: ../fish/guestfish.pod:922
17126 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
17127 msgstr ""
17128
17129 # type: =item
17130 #: ../fish/guestfish.pod:924
17131 msgid "PAGER"
17132 msgstr ""
17133
17134 # type: textblock
17135 #: ../fish/guestfish.pod:926
17136 msgid ""
17137 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
17138 "C<more>."
17139 msgstr ""
17140
17141 # type: =head1
17142 #: ../fish/guestfish.pod:941 ../test-tool/libguestfs-test-tool.pod:88
17143 msgid "FILES"
17144 msgstr ""
17145
17146 # type: =item
17147 #: ../fish/guestfish.pod:945
17148 msgid "$HOME/.guestfish"
17149 msgstr ""
17150
17151 # type: textblock
17152 #: ../fish/guestfish.pod:947
17153 msgid ""
17154 "If compiled with GNU readline support, then the command history is saved in "
17155 "this file."
17156 msgstr ""
17157
17158 # type: =item
17159 #: ../fish/guestfish.pod:950
17160 msgid "$HOME/.inputrc"
17161 msgstr ""
17162
17163 # type: =item
17164 #: ../fish/guestfish.pod:952
17165 msgid "/etc/inputrc"
17166 msgstr ""
17167
17168 # type: textblock
17169 #: ../fish/guestfish.pod:954
17170 msgid ""
17171 "If compiled with GNU readline support, then these files can be used to "
17172 "configure readline.  For further information, please see L<readline(3)/"
17173 "INITIALIZATION FILE>."
17174 msgstr ""
17175
17176 # type: textblock
17177 #: ../fish/guestfish.pod:958
17178 msgid "To write rules which only apply to guestfish, use:"
17179 msgstr ""
17180
17181 # type: verbatim
17182 #: ../fish/guestfish.pod:960
17183 #, no-wrap
17184 msgid ""
17185 " $if guestfish\n"
17186 " ...\n"
17187 " $endif\n"
17188 "\n"
17189 msgstr ""
17190
17191 # type: textblock
17192 #: ../fish/guestfish.pod:964
17193 msgid ""
17194 "Variables that you can set in inputrc that change the behaviour of guestfish "
17195 "in useful ways include:"
17196 msgstr ""
17197
17198 # type: =item
17199 #: ../fish/guestfish.pod:969
17200 msgid "completion-ignore-case (default: on)"
17201 msgstr ""
17202
17203 # type: textblock
17204 #: ../fish/guestfish.pod:971
17205 msgid ""
17206 "By default, guestfish will ignore case when tab-completing paths on the "
17207 "disk.  Use:"
17208 msgstr ""
17209
17210 # type: verbatim
17211 #: ../fish/guestfish.pod:974
17212 #, no-wrap
17213 msgid ""
17214 " set completion-ignore-case off\n"
17215 "\n"
17216 msgstr ""
17217
17218 # type: textblock
17219 #: ../fish/guestfish.pod:976
17220 msgid "to make guestfish case sensitive."
17221 msgstr ""
17222
17223 # type: =item
17224 #: ../fish/guestfish.pod:980
17225 msgid "test1.img"
17226 msgstr ""
17227
17228 # type: =item
17229 #: ../fish/guestfish.pod:982
17230 msgid "test2.img (etc)"
17231 msgstr ""
17232
17233 # type: textblock
17234 #: ../fish/guestfish.pod:984
17235 msgid ""
17236 "When using the C<-N> or C<--new> option, the prepared disk or filesystem "
17237 "will be created in the file C<test1.img> in the current directory.  The "
17238 "second use of C<-N> will use C<test2.img> and so on.  Any existing file with "
17239 "the same name will be overwritten."
17240 msgstr ""
17241
17242 # type: textblock
17243 #: ../fish/guestfish.pod:993
17244 msgid ""
17245 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-cat(1)>, L<virt-df(1)>, "
17246 "L<virt-edit(1)>, L<virt-list-filesystems(1)>, L<virt-list-partitions(1)>, "
17247 "L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-resize(1)>, "
17248 "L<virt-tar(1)>, L<virt-win-reg(1)>, L<hexedit(1)>."
17249 msgstr ""
17250
17251 # type: textblock
17252 #: ../fish/guestfish.pod:1017 ../test-tool/libguestfs-test-tool.pod:124
17253 #: ../fuse/guestmount.pod:198 ../inspector/virt-inspector.pl:903
17254 #: ../tools/virt-edit.pl:370 ../tools/virt-win-reg.pl:521
17255 #: ../tools/virt-df.pl:631 ../tools/virt-ls.pl:254
17256 #: ../tools/virt-resize.pl:1516 ../tools/virt-list-filesystems.pl:236
17257 #: ../tools/virt-cat.pl:206 ../tools/virt-tar.pl:302
17258 #: ../tools/virt-rescue.pl:275 ../tools/virt-make-fs.pl:567
17259 #: ../tools/virt-list-partitions.pl:273
17260 msgid ""
17261 "This program is free software; you can redistribute it and/or modify it "
17262 "under the terms of the GNU General Public License as published by the Free "
17263 "Software Foundation; either version 2 of the License, or (at your option) "
17264 "any later version."
17265 msgstr ""
17266
17267 # type: textblock
17268 #: ../fish/guestfish.pod:1022 ../test-tool/libguestfs-test-tool.pod:129
17269 #: ../fuse/guestmount.pod:203 ../inspector/virt-inspector.pl:908
17270 #: ../tools/virt-edit.pl:375 ../tools/virt-win-reg.pl:526
17271 #: ../tools/virt-df.pl:636 ../tools/virt-ls.pl:259
17272 #: ../tools/virt-resize.pl:1521 ../tools/virt-list-filesystems.pl:241
17273 #: ../tools/virt-cat.pl:211 ../tools/virt-tar.pl:307
17274 #: ../tools/virt-rescue.pl:280 ../tools/virt-make-fs.pl:572
17275 #: ../tools/virt-list-partitions.pl:278
17276 msgid ""
17277 "This program is distributed in the hope that it will be useful, but WITHOUT "
17278 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
17279 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
17280 "more details."
17281 msgstr ""
17282
17283 # type: textblock
17284 #: ../fish/guestfish.pod:1027 ../test-tool/libguestfs-test-tool.pod:134
17285 #: ../fuse/guestmount.pod:208 ../inspector/virt-inspector.pl:913
17286 #: ../tools/virt-edit.pl:380 ../tools/virt-win-reg.pl:531
17287 #: ../tools/virt-df.pl:641 ../tools/virt-ls.pl:264
17288 #: ../tools/virt-resize.pl:1526 ../tools/virt-list-filesystems.pl:246
17289 #: ../tools/virt-cat.pl:216 ../tools/virt-tar.pl:312
17290 #: ../tools/virt-rescue.pl:285 ../tools/virt-make-fs.pl:577
17291 #: ../tools/virt-list-partitions.pl:283
17292 msgid ""
17293 "You should have received a copy of the GNU General Public License along with "
17294 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
17295 "Ave, Cambridge, MA 02139, USA."
17296 msgstr ""
17297
17298 # type: =head2
17299 #: ../fish/guestfish-actions.pod:1
17300 msgid "add-cdrom"
17301 msgstr ""
17302
17303 # type: verbatim
17304 #: ../fish/guestfish-actions.pod:3
17305 #, no-wrap
17306 msgid ""
17307 " add-cdrom filename\n"
17308 "\n"
17309 msgstr ""
17310
17311 # type: textblock
17312 #: ../fish/guestfish-actions.pod:15
17313 msgid ""
17314 "This call checks for the existence of C<filename>.  This stops you from "
17315 "specifying other types of drive which are supported by qemu such as C<nbd:> "
17316 "and C<http:> URLs.  To specify those, use the general L</config> call "
17317 "instead."
17318 msgstr ""
17319
17320 # type: textblock
17321 #: ../fish/guestfish-actions.pod:22
17322 msgid ""
17323 "If you just want to add an ISO file (often you use this as an efficient way "
17324 "to transfer large files into the guest), then you should probably use L</add-"
17325 "drive-ro> instead."
17326 msgstr ""
17327
17328 # type: =head2
17329 #: ../fish/guestfish-actions.pod:35
17330 msgid "add-drive"
17331 msgstr ""
17332
17333 # type: verbatim
17334 #: ../fish/guestfish-actions.pod:37
17335 #, no-wrap
17336 msgid ""
17337 " add-drive filename\n"
17338 "\n"
17339 msgstr ""
17340
17341 # type: textblock
17342 #: ../fish/guestfish-actions.pod:39
17343 msgid ""
17344 "This function is the equivalent of calling L</add-drive-opts> with no "
17345 "optional parameters, so the disk is added writable, with the format being "
17346 "detected automatically."
17347 msgstr ""
17348
17349 # type: textblock
17350 #: ../fish/guestfish-actions.pod:43
17351 msgid ""
17352 "Automatic detection of the format opens you up to a potential security hole "
17353 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
17354 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
17355 "you should think about replacing calls to this function with calls to L</add-"
17356 "drive-opts>, and specifying the format."
17357 msgstr ""
17358
17359 # type: =head2
17360 #: ../fish/guestfish-actions.pod:50
17361 msgid "add-drive-opts"
17362 msgstr ""
17363
17364 # type: =head2
17365 #: ../fish/guestfish-actions.pod:52
17366 msgid "add"
17367 msgstr ""
17368
17369 # type: verbatim
17370 #: ../fish/guestfish-actions.pod:54
17371 #, no-wrap
17372 msgid ""
17373 " add-drive-opts filename [readonly:..] [format:..] [iface:..]\n"
17374 "\n"
17375 msgstr ""
17376
17377 # type: textblock
17378 #: ../fish/guestfish-actions.pod:81
17379 msgid ""
17380 "This forces the image format.  If you omit this (or use L</add-drive> or L</"
17381 "add-drive-ro>) then the format is automatically detected.  Possible formats "
17382 "include C<raw> and C<qcow2>."
17383 msgstr ""
17384
17385 # type: textblock
17386 #: ../fish/guestfish-actions.pod:92
17387 msgid ""
17388 "This rarely-used option lets you emulate the behaviour of the deprecated L</"
17389 "add-drive-with-if> call (q.v.)"
17390 msgstr ""
17391
17392 # type: textblock
17393 #: ../fish/guestfish-actions.pod:97
17394 msgid ""
17395 "This command has one or more optional arguments.  See L</OPTIONAL ARGUMENTS>."
17396 msgstr ""
17397
17398 # type: =head2
17399 #: ../fish/guestfish-actions.pod:99
17400 msgid "add-drive-ro"
17401 msgstr ""
17402
17403 # type: =head2
17404 #: ../fish/guestfish-actions.pod:101
17405 msgid "add-ro"
17406 msgstr ""
17407
17408 # type: verbatim
17409 #: ../fish/guestfish-actions.pod:103
17410 #, no-wrap
17411 msgid ""
17412 " add-drive-ro filename\n"
17413 "\n"
17414 msgstr ""
17415
17416 # type: textblock
17417 #: ../fish/guestfish-actions.pod:105
17418 msgid ""
17419 "This function is the equivalent of calling L</add-drive-opts> with the "
17420 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
17421 "is added read-only, with the format being detected automatically."
17422 msgstr ""
17423
17424 # type: =head2
17425 #: ../fish/guestfish-actions.pod:110
17426 msgid "add-drive-ro-with-if"
17427 msgstr ""
17428
17429 # type: verbatim
17430 #: ../fish/guestfish-actions.pod:112
17431 #, no-wrap
17432 msgid ""
17433 " add-drive-ro-with-if filename iface\n"
17434 "\n"
17435 msgstr ""
17436
17437 # type: textblock
17438 #: ../fish/guestfish-actions.pod:114
17439 msgid ""
17440 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
17441 "interface emulation to use at run time."
17442 msgstr ""
17443
17444 # type: =head2
17445 #: ../fish/guestfish-actions.pod:124
17446 msgid "add-drive-with-if"
17447 msgstr ""
17448
17449 # type: verbatim
17450 #: ../fish/guestfish-actions.pod:126
17451 #, no-wrap
17452 msgid ""
17453 " add-drive-with-if filename iface\n"
17454 "\n"
17455 msgstr ""
17456
17457 # type: textblock
17458 #: ../fish/guestfish-actions.pod:128
17459 msgid ""
17460 "This is the same as L</add-drive> but it allows you to specify the QEMU "
17461 "interface emulation to use at run time."
17462 msgstr ""
17463
17464 # type: =head2
17465 #: ../fish/guestfish-actions.pod:138
17466 msgid "aug-clear"
17467 msgstr ""
17468
17469 # type: verbatim
17470 #: ../fish/guestfish-actions.pod:140
17471 #, no-wrap
17472 msgid ""
17473 " aug-clear augpath\n"
17474 "\n"
17475 msgstr ""
17476
17477 # type: =head2
17478 #: ../fish/guestfish-actions.pod:145
17479 msgid "aug-close"
17480 msgstr ""
17481
17482 # type: verbatim
17483 #: ../fish/guestfish-actions.pod:147
17484 #, no-wrap
17485 msgid ""
17486 " aug-close\n"
17487 "\n"
17488 msgstr ""
17489
17490 # type: textblock
17491 #: ../fish/guestfish-actions.pod:149
17492 msgid ""
17493 "Close the current Augeas handle and free up any resources used by it.  After "
17494 "calling this, you have to call L</aug-init> again before you can use any "
17495 "other Augeas functions."
17496 msgstr ""
17497
17498 # type: =head2
17499 #: ../fish/guestfish-actions.pod:154
17500 msgid "aug-defnode"
17501 msgstr ""
17502
17503 # type: verbatim
17504 #: ../fish/guestfish-actions.pod:156
17505 #, no-wrap
17506 msgid ""
17507 " aug-defnode name expr val\n"
17508 "\n"
17509 msgstr ""
17510
17511 # type: textblock
17512 #: ../fish/guestfish-actions.pod:161
17513 msgid ""
17514 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
17515 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
17516 "containing that single node."
17517 msgstr ""
17518
17519 # type: =head2
17520 #: ../fish/guestfish-actions.pod:169
17521 msgid "aug-defvar"
17522 msgstr ""
17523
17524 # type: verbatim
17525 #: ../fish/guestfish-actions.pod:171
17526 #, no-wrap
17527 msgid ""
17528 " aug-defvar name expr\n"
17529 "\n"
17530 msgstr ""
17531
17532 # type: =head2
17533 #: ../fish/guestfish-actions.pod:180
17534 msgid "aug-get"
17535 msgstr ""
17536
17537 # type: verbatim
17538 #: ../fish/guestfish-actions.pod:182
17539 #, no-wrap
17540 msgid ""
17541 " aug-get augpath\n"
17542 "\n"
17543 msgstr ""
17544
17545 # type: =head2
17546 #: ../fish/guestfish-actions.pod:187
17547 msgid "aug-init"
17548 msgstr ""
17549
17550 # type: verbatim
17551 #: ../fish/guestfish-actions.pod:189
17552 #, no-wrap
17553 msgid ""
17554 " aug-init root flags\n"
17555 "\n"
17556 msgstr ""
17557
17558 # type: textblock
17559 #: ../fish/guestfish-actions.pod:195
17560 msgid "You must call this before using any other L</aug-*> commands."
17561 msgstr ""
17562
17563 # type: textblock
17564 #: ../fish/guestfish-actions.pod:230
17565 msgid "Do not load the tree in L</aug-init>."
17566 msgstr ""
17567
17568 # type: textblock
17569 #: ../fish/guestfish-actions.pod:234
17570 msgid "To close the handle, you can call L</aug-close>."
17571 msgstr ""
17572
17573 # type: =head2
17574 #: ../fish/guestfish-actions.pod:238
17575 msgid "aug-insert"
17576 msgstr ""
17577
17578 # type: verbatim
17579 #: ../fish/guestfish-actions.pod:240
17580 #, no-wrap
17581 msgid ""
17582 " aug-insert augpath label true|false\n"
17583 "\n"
17584 msgstr ""
17585
17586 # type: =head2
17587 #: ../fish/guestfish-actions.pod:250
17588 msgid "aug-load"
17589 msgstr ""
17590
17591 # type: verbatim
17592 #: ../fish/guestfish-actions.pod:252
17593 #, no-wrap
17594 msgid ""
17595 " aug-load\n"
17596 "\n"
17597 msgstr ""
17598
17599 # type: =head2
17600 #: ../fish/guestfish-actions.pod:259
17601 msgid "aug-ls"
17602 msgstr ""
17603
17604 # type: verbatim
17605 #: ../fish/guestfish-actions.pod:261
17606 #, no-wrap
17607 msgid ""
17608 " aug-ls augpath\n"
17609 "\n"
17610 msgstr ""
17611
17612 # type: textblock
17613 #: ../fish/guestfish-actions.pod:263
17614 msgid ""
17615 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
17616 "resulting nodes into alphabetical order."
17617 msgstr ""
17618
17619 # type: =head2
17620 #: ../fish/guestfish-actions.pod:266
17621 msgid "aug-match"
17622 msgstr ""
17623
17624 # type: verbatim
17625 #: ../fish/guestfish-actions.pod:268
17626 #, no-wrap
17627 msgid ""
17628 " aug-match augpath\n"
17629 "\n"
17630 msgstr ""
17631
17632 # type: =head2
17633 #: ../fish/guestfish-actions.pod:274
17634 msgid "aug-mv"
17635 msgstr ""
17636
17637 # type: verbatim
17638 #: ../fish/guestfish-actions.pod:276
17639 #, no-wrap
17640 msgid ""
17641 " aug-mv src dest\n"
17642 "\n"
17643 msgstr ""
17644
17645 # type: =head2
17646 #: ../fish/guestfish-actions.pod:281
17647 msgid "aug-rm"
17648 msgstr ""
17649
17650 # type: verbatim
17651 #: ../fish/guestfish-actions.pod:283
17652 #, no-wrap
17653 msgid ""
17654 " aug-rm augpath\n"
17655 "\n"
17656 msgstr ""
17657
17658 # type: =head2
17659 #: ../fish/guestfish-actions.pod:289
17660 msgid "aug-save"
17661 msgstr ""
17662
17663 # type: verbatim
17664 #: ../fish/guestfish-actions.pod:291
17665 #, no-wrap
17666 msgid ""
17667 " aug-save\n"
17668 "\n"
17669 msgstr ""
17670
17671 # type: textblock
17672 #: ../fish/guestfish-actions.pod:295
17673 msgid ""
17674 "The flags which were passed to L</aug-init> affect exactly how files are "
17675 "saved."
17676 msgstr ""
17677
17678 # type: =head2
17679 #: ../fish/guestfish-actions.pod:298
17680 msgid "aug-set"
17681 msgstr ""
17682
17683 # type: verbatim
17684 #: ../fish/guestfish-actions.pod:300
17685 #, no-wrap
17686 msgid ""
17687 " aug-set augpath val\n"
17688 "\n"
17689 msgstr ""
17690
17691 # type: textblock
17692 #: ../fish/guestfish-actions.pod:304
17693 msgid ""
17694 "In the Augeas API, it is possible to clear a node by setting the value to "
17695 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
17696 "this call.  Instead you must use the L</aug-clear> call."
17697 msgstr ""
17698
17699 # type: =head2
17700 #: ../fish/guestfish-actions.pod:309
17701 msgid "available"
17702 msgstr ""
17703
17704 # type: verbatim
17705 #: ../fish/guestfish-actions.pod:311
17706 #, no-wrap
17707 msgid ""
17708 " available 'groups ...'\n"
17709 "\n"
17710 msgstr ""
17711
17712 # type: textblock
17713 #: ../fish/guestfish-actions.pod:317
17714 msgid ""
17715 "The libguestfs groups, and the functions that those groups correspond to, "
17716 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
17717 "runtime by calling L</available-all-groups>."
17718 msgstr ""
17719
17720 # type: textblock
17721 #: ../fish/guestfish-actions.pod:341
17722 msgid "You must call L</launch> before calling this function."
17723 msgstr ""
17724
17725 # type: textblock
17726 #: ../fish/guestfish-actions.pod:363
17727 msgid ""
17728 "This call was added in version C<1.0.80>.  In previous versions of "
17729 "libguestfs all you could do would be to speculatively execute a command to "
17730 "find out if the daemon implemented it.  See also L</version>."
17731 msgstr ""
17732
17733 # type: =head2
17734 #: ../fish/guestfish-actions.pod:370
17735 msgid "available-all-groups"
17736 msgstr ""
17737
17738 # type: verbatim
17739 #: ../fish/guestfish-actions.pod:372
17740 #, no-wrap
17741 msgid ""
17742 " available-all-groups\n"
17743 "\n"
17744 msgstr ""
17745
17746 # type: textblock
17747 #: ../fish/guestfish-actions.pod:374
17748 msgid ""
17749 "This command returns a list of all optional groups that this daemon knows "
17750 "about.  Note this returns both supported and unsupported groups.  To find "
17751 "out which ones the daemon can actually support you have to call L</"
17752 "available> on each member of the returned list."
17753 msgstr ""
17754
17755 # type: textblock
17756 #: ../fish/guestfish-actions.pod:380
17757 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
17758 msgstr ""
17759
17760 # type: =head2
17761 #: ../fish/guestfish-actions.pod:382
17762 msgid "base64-in"
17763 msgstr ""
17764
17765 # type: verbatim
17766 #: ../fish/guestfish-actions.pod:384
17767 #, no-wrap
17768 msgid ""
17769 " base64-in (base64file|-) filename\n"
17770 "\n"
17771 msgstr ""
17772
17773 # type: textblock
17774 #: ../fish/guestfish-actions.pod:389 ../fish/guestfish-actions.pod:398
17775 #: ../fish/guestfish-actions.pod:622 ../fish/guestfish-actions.pod:769
17776 #: ../fish/guestfish-actions.pod:816 ../fish/guestfish-actions.pod:835
17777 #: ../fish/guestfish-actions.pod:1212 ../fish/guestfish-actions.pod:3868
17778 #: ../fish/guestfish-actions.pod:3880 ../fish/guestfish-actions.pod:3891
17779 #: ../fish/guestfish-actions.pod:3902 ../fish/guestfish-actions.pod:3954
17780 #: ../fish/guestfish-actions.pod:3963 ../fish/guestfish-actions.pod:4017
17781 #: ../fish/guestfish-actions.pod:4040
17782 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
17783 msgstr ""
17784
17785 # type: =head2
17786 #: ../fish/guestfish-actions.pod:391
17787 msgid "base64-out"
17788 msgstr ""
17789
17790 # type: verbatim
17791 #: ../fish/guestfish-actions.pod:393
17792 #, no-wrap
17793 msgid ""
17794 " base64-out filename (base64file|-)\n"
17795 "\n"
17796 msgstr ""
17797
17798 # type: =head2
17799 #: ../fish/guestfish-actions.pod:400
17800 msgid "blockdev-flushbufs"
17801 msgstr ""
17802
17803 # type: verbatim
17804 #: ../fish/guestfish-actions.pod:402
17805 #, no-wrap
17806 msgid ""
17807 " blockdev-flushbufs device\n"
17808 "\n"
17809 msgstr ""
17810
17811 # type: =head2
17812 #: ../fish/guestfish-actions.pod:409
17813 msgid "blockdev-getbsz"
17814 msgstr ""
17815
17816 # type: verbatim
17817 #: ../fish/guestfish-actions.pod:411
17818 #, no-wrap
17819 msgid ""
17820 " blockdev-getbsz device\n"
17821 "\n"
17822 msgstr ""
17823
17824 # type: =head2
17825 #: ../fish/guestfish-actions.pod:420
17826 msgid "blockdev-getro"
17827 msgstr ""
17828
17829 # type: verbatim
17830 #: ../fish/guestfish-actions.pod:422
17831 #, no-wrap
17832 msgid ""
17833 " blockdev-getro device\n"
17834 "\n"
17835 msgstr ""
17836
17837 # type: =head2
17838 #: ../fish/guestfish-actions.pod:429
17839 msgid "blockdev-getsize64"
17840 msgstr ""
17841
17842 # type: verbatim
17843 #: ../fish/guestfish-actions.pod:431
17844 #, no-wrap
17845 msgid ""
17846 " blockdev-getsize64 device\n"
17847 "\n"
17848 msgstr ""
17849
17850 # type: textblock
17851 #: ../fish/guestfish-actions.pod:435
17852 msgid "See also L</blockdev-getsz>."
17853 msgstr ""
17854
17855 # type: =head2
17856 #: ../fish/guestfish-actions.pod:439
17857 msgid "blockdev-getss"
17858 msgstr ""
17859
17860 # type: verbatim
17861 #: ../fish/guestfish-actions.pod:441
17862 #, no-wrap
17863 msgid ""
17864 " blockdev-getss device\n"
17865 "\n"
17866 msgstr ""
17867
17868 # type: textblock
17869 #: ../fish/guestfish-actions.pod:446
17870 msgid ""
17871 "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
17872 msgstr ""
17873
17874 # type: =head2
17875 #: ../fish/guestfish-actions.pod:451
17876 msgid "blockdev-getsz"
17877 msgstr ""
17878
17879 # type: verbatim
17880 #: ../fish/guestfish-actions.pod:453
17881 #, no-wrap
17882 msgid ""
17883 " blockdev-getsz device\n"
17884 "\n"
17885 msgstr ""
17886
17887 # type: textblock
17888 #: ../fish/guestfish-actions.pod:458
17889 msgid ""
17890 "See also L</blockdev-getss> for the real sector size of the device, and L</"
17891 "blockdev-getsize64> for the more useful I<size in bytes>."
17892 msgstr ""
17893
17894 # type: =head2
17895 #: ../fish/guestfish-actions.pod:464
17896 msgid "blockdev-rereadpt"
17897 msgstr ""
17898
17899 # type: verbatim
17900 #: ../fish/guestfish-actions.pod:466
17901 #, no-wrap
17902 msgid ""
17903 " blockdev-rereadpt device\n"
17904 "\n"
17905 msgstr ""
17906
17907 # type: =head2
17908 #: ../fish/guestfish-actions.pod:472
17909 msgid "blockdev-setbsz"
17910 msgstr ""
17911
17912 # type: verbatim
17913 #: ../fish/guestfish-actions.pod:474
17914 #, no-wrap
17915 msgid ""
17916 " blockdev-setbsz device blocksize\n"
17917 "\n"
17918 msgstr ""
17919
17920 # type: =head2
17921 #: ../fish/guestfish-actions.pod:483
17922 msgid "blockdev-setro"
17923 msgstr ""
17924
17925 # type: verbatim
17926 #: ../fish/guestfish-actions.pod:485
17927 #, no-wrap
17928 msgid ""
17929 " blockdev-setro device\n"
17930 "\n"
17931 msgstr ""
17932
17933 # type: =head2
17934 #: ../fish/guestfish-actions.pod:491
17935 msgid "blockdev-setrw"
17936 msgstr ""
17937
17938 # type: verbatim
17939 #: ../fish/guestfish-actions.pod:493
17940 #, no-wrap
17941 msgid ""
17942 " blockdev-setrw device\n"
17943 "\n"
17944 msgstr ""
17945
17946 # type: =head2
17947 #: ../fish/guestfish-actions.pod:499
17948 msgid "case-sensitive-path"
17949 msgstr ""
17950
17951 # type: verbatim
17952 #: ../fish/guestfish-actions.pod:501
17953 #, no-wrap
17954 msgid ""
17955 " case-sensitive-path path\n"
17956 "\n"
17957 msgstr ""
17958
17959 # type: textblock
17960 #: ../fish/guestfish-actions.pod:525
17961 msgid ""
17962 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return C<\"/"
17963 "WINDOWS/system32\"> (the exact return value would depend on details of how "
17964 "the directories were originally created under Windows)."
17965 msgstr ""
17966
17967 # type: textblock
17968 #: ../fish/guestfish-actions.pod:533
17969 msgid "See also L</realpath>."
17970 msgstr ""
17971
17972 # type: =head2
17973 #: ../fish/guestfish-actions.pod:535
17974 msgid "cat"
17975 msgstr ""
17976
17977 # type: verbatim
17978 #: ../fish/guestfish-actions.pod:537
17979 #, no-wrap
17980 msgid ""
17981 " cat path\n"
17982 "\n"
17983 msgstr ""
17984
17985 # type: textblock
17986 #: ../fish/guestfish-actions.pod:541
17987 msgid ""
17988 "Note that this function cannot correctly handle binary files (specifically, "
17989 "files containing C<\\0> character which is treated as end of string).  For "
17990 "those you need to use the L</read-file> or L</download> functions which have "
17991 "a more complex interface."
17992 msgstr ""
17993
17994 # type: =head2
17995 #: ../fish/guestfish-actions.pod:549
17996 msgid "checksum"
17997 msgstr ""
17998
17999 # type: verbatim
18000 #: ../fish/guestfish-actions.pod:551
18001 #, no-wrap
18002 msgid ""
18003 " checksum csumtype path\n"
18004 "\n"
18005 msgstr ""
18006
18007 # type: textblock
18008 #: ../fish/guestfish-actions.pod:594
18009 msgid "To get the checksum for a device, use L</checksum-device>."
18010 msgstr ""
18011
18012 # type: textblock
18013 #: ../fish/guestfish-actions.pod:596
18014 msgid "To get the checksums for many files, use L</checksums-out>."
18015 msgstr ""
18016
18017 # type: =head2
18018 #: ../fish/guestfish-actions.pod:598
18019 msgid "checksum-device"
18020 msgstr ""
18021
18022 # type: verbatim
18023 #: ../fish/guestfish-actions.pod:600
18024 #, no-wrap
18025 msgid ""
18026 " checksum-device csumtype device\n"
18027 "\n"
18028 msgstr ""
18029
18030 # type: textblock
18031 #: ../fish/guestfish-actions.pod:602
18032 msgid ""
18033 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
18034 "device named C<device>.  For the types of checksums supported see the L</"
18035 "checksum> command."
18036 msgstr ""
18037
18038 # type: =head2
18039 #: ../fish/guestfish-actions.pod:606
18040 msgid "checksums-out"
18041 msgstr ""
18042
18043 # type: verbatim
18044 #: ../fish/guestfish-actions.pod:608
18045 #, no-wrap
18046 msgid ""
18047 " checksums-out csumtype directory (sumsfile|-)\n"
18048 "\n"
18049 msgstr ""
18050
18051 # type: =head2
18052 #: ../fish/guestfish-actions.pod:624
18053 msgid "chmod"
18054 msgstr ""
18055
18056 # type: verbatim
18057 #: ../fish/guestfish-actions.pod:626
18058 #, no-wrap
18059 msgid ""
18060 " chmod mode path\n"
18061 "\n"
18062 msgstr ""
18063
18064 # type: =head2
18065 #: ../fish/guestfish-actions.pod:637
18066 msgid "chown"
18067 msgstr ""
18068
18069 # type: verbatim
18070 #: ../fish/guestfish-actions.pod:639
18071 #, no-wrap
18072 msgid ""
18073 " chown owner group path\n"
18074 "\n"
18075 msgstr ""
18076
18077 # type: =head2
18078 #: ../fish/guestfish-actions.pod:647
18079 msgid "command"
18080 msgstr ""
18081
18082 # type: verbatim
18083 #: ../fish/guestfish-actions.pod:649
18084 #, no-wrap
18085 msgid ""
18086 " command 'arguments ...'\n"
18087 "\n"
18088 msgstr ""
18089
18090 # type: textblock
18091 #: ../fish/guestfish-actions.pod:656
18092 msgid ""
18093 "The single parameter is an argv-style list of arguments.  The first element "
18094 "is the name of the program to run.  Subsequent elements are parameters.  The "
18095 "list must be non-empty (ie. must contain a program name).  Note that the "
18096 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
18097 msgstr ""
18098
18099 # type: =head2
18100 #: ../fish/guestfish-actions.pod:684
18101 msgid "command-lines"
18102 msgstr ""
18103
18104 # type: verbatim
18105 #: ../fish/guestfish-actions.pod:686
18106 #, no-wrap
18107 msgid ""
18108 " command-lines 'arguments ...'\n"
18109 "\n"
18110 msgstr ""
18111
18112 # type: textblock
18113 #: ../fish/guestfish-actions.pod:688
18114 msgid ""
18115 "This is the same as L</command>, but splits the result into a list of lines."
18116 msgstr ""
18117
18118 # type: textblock
18119 #: ../fish/guestfish-actions.pod:691
18120 msgid "See also: L</sh-lines>"
18121 msgstr ""
18122
18123 # type: =head2
18124 #: ../fish/guestfish-actions.pod:696
18125 msgid "config"
18126 msgstr ""
18127
18128 # type: verbatim
18129 #: ../fish/guestfish-actions.pod:698
18130 #, no-wrap
18131 msgid ""
18132 " config qemuparam qemuvalue\n"
18133 "\n"
18134 msgstr ""
18135
18136 # type: =head2
18137 #: ../fish/guestfish-actions.pod:709
18138 msgid "copy-size"
18139 msgstr ""
18140
18141 # type: verbatim
18142 #: ../fish/guestfish-actions.pod:711
18143 #, no-wrap
18144 msgid ""
18145 " copy-size src dest size\n"
18146 "\n"
18147 msgstr ""
18148
18149 # type: =head2
18150 #: ../fish/guestfish-actions.pod:719
18151 msgid "cp"
18152 msgstr ""
18153
18154 # type: verbatim
18155 #: ../fish/guestfish-actions.pod:721
18156 #, no-wrap
18157 msgid ""
18158 " cp src dest\n"
18159 "\n"
18160 msgstr ""
18161
18162 # type: =head2
18163 #: ../fish/guestfish-actions.pod:726
18164 msgid "cp-a"
18165 msgstr ""
18166
18167 # type: verbatim
18168 #: ../fish/guestfish-actions.pod:728
18169 #, no-wrap
18170 msgid ""
18171 " cp-a src dest\n"
18172 "\n"
18173 msgstr ""
18174
18175 # type: =head2
18176 #: ../fish/guestfish-actions.pod:733
18177 msgid "dd"
18178 msgstr ""
18179
18180 # type: verbatim
18181 #: ../fish/guestfish-actions.pod:735
18182 #, no-wrap
18183 msgid ""
18184 " dd src dest\n"
18185 "\n"
18186 msgstr ""
18187
18188 # type: textblock
18189 #: ../fish/guestfish-actions.pod:742
18190 msgid ""
18191 "If the destination is a device, it must be as large or larger than the "
18192 "source file or device, otherwise the copy will fail.  This command cannot do "
18193 "partial copies (see L</copy-size>)."
18194 msgstr ""
18195
18196 # type: =head2
18197 #: ../fish/guestfish-actions.pod:746
18198 msgid "debug"
18199 msgstr ""
18200
18201 # type: verbatim
18202 #: ../fish/guestfish-actions.pod:748
18203 #, no-wrap
18204 msgid ""
18205 " debug subcmd 'extraargs ...'\n"
18206 "\n"
18207 msgstr ""
18208
18209 # type: textblock
18210 #: ../fish/guestfish-actions.pod:750
18211 msgid ""
18212 "The L</debug> command exposes some internals of C<guestfsd> (the guestfs "
18213 "daemon) that runs inside the qemu subprocess."
18214 msgstr ""
18215
18216 # type: =head2
18217 #: ../fish/guestfish-actions.pod:758
18218 msgid "debug-upload"
18219 msgstr ""
18220
18221 # type: verbatim
18222 #: ../fish/guestfish-actions.pod:760
18223 #, no-wrap
18224 msgid ""
18225 " debug-upload (filename|-) tmpname mode\n"
18226 "\n"
18227 msgstr ""
18228
18229 # type: textblock
18230 #: ../fish/guestfish-actions.pod:762
18231 msgid ""
18232 "The L</debug-upload> command uploads a file to the libguestfs appliance."
18233 msgstr ""
18234
18235 # type: =head2
18236 #: ../fish/guestfish-actions.pod:771
18237 msgid "df"
18238 msgstr ""
18239
18240 # type: verbatim
18241 #: ../fish/guestfish-actions.pod:773
18242 #, no-wrap
18243 msgid ""
18244 " df\n"
18245 "\n"
18246 msgstr ""
18247
18248 # type: =head2
18249 #: ../fish/guestfish-actions.pod:781
18250 msgid "df-h"
18251 msgstr ""
18252
18253 # type: verbatim
18254 #: ../fish/guestfish-actions.pod:783
18255 #, no-wrap
18256 msgid ""
18257 " df-h\n"
18258 "\n"
18259 msgstr ""
18260
18261 # type: =head2
18262 #: ../fish/guestfish-actions.pod:792
18263 msgid "dmesg"
18264 msgstr ""
18265
18266 # type: verbatim
18267 #: ../fish/guestfish-actions.pod:794
18268 #, no-wrap
18269 msgid ""
18270 " dmesg\n"
18271 "\n"
18272 msgstr ""
18273
18274 # type: textblock
18275 #: ../fish/guestfish-actions.pod:800
18276 msgid ""
18277 "Another way to get the same information is to enable verbose messages with "
18278 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
18279 "before running the program."
18280 msgstr ""
18281
18282 # type: =head2
18283 #: ../fish/guestfish-actions.pod:805
18284 msgid "download"
18285 msgstr ""
18286
18287 # type: verbatim
18288 #: ../fish/guestfish-actions.pod:807
18289 #, no-wrap
18290 msgid ""
18291 " download remotefilename (filename|-)\n"
18292 "\n"
18293 msgstr ""
18294
18295 # type: textblock
18296 #: ../fish/guestfish-actions.pod:814
18297 msgid "See also L</upload>, L</cat>."
18298 msgstr ""
18299
18300 # type: =head2
18301 #: ../fish/guestfish-actions.pod:818
18302 msgid "download-offset"
18303 msgstr ""
18304
18305 # type: verbatim
18306 #: ../fish/guestfish-actions.pod:820
18307 #, no-wrap
18308 msgid ""
18309 " download-offset remotefilename (filename|-) offset size\n"
18310 "\n"
18311 msgstr ""
18312
18313 # type: textblock
18314 #: ../fish/guestfish-actions.pod:828
18315 msgid ""
18316 "Note that there is no limit on the amount of data that can be downloaded "
18317 "with this call, unlike with L</pread>, and this call always reads the full "
18318 "amount unless an error occurs."
18319 msgstr ""
18320
18321 # type: textblock
18322 #: ../fish/guestfish-actions.pod:833
18323 msgid "See also L</download>, L</pread>."
18324 msgstr ""
18325
18326 # type: =head2
18327 #: ../fish/guestfish-actions.pod:837
18328 msgid "drop-caches"
18329 msgstr ""
18330
18331 # type: verbatim
18332 #: ../fish/guestfish-actions.pod:839
18333 #, no-wrap
18334 msgid ""
18335 " drop-caches whattodrop\n"
18336 "\n"
18337 msgstr ""
18338
18339 # type: =head2
18340 #: ../fish/guestfish-actions.pod:851
18341 msgid "du"
18342 msgstr ""
18343
18344 # type: verbatim
18345 #: ../fish/guestfish-actions.pod:853
18346 #, no-wrap
18347 msgid ""
18348 " du path\n"
18349 "\n"
18350 msgstr ""
18351
18352 # type: =head2
18353 #: ../fish/guestfish-actions.pod:865
18354 msgid "e2fsck-f"
18355 msgstr ""
18356
18357 # type: verbatim
18358 #: ../fish/guestfish-actions.pod:867
18359 #, no-wrap
18360 msgid ""
18361 " e2fsck-f device\n"
18362 "\n"
18363 msgstr ""
18364
18365 # type: textblock
18366 #: ../fish/guestfish-actions.pod:873
18367 msgid ""
18368 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
18369 "should use L</fsck>."
18370 msgstr ""
18371
18372 # type: =head2
18373 #: ../fish/guestfish-actions.pod:876
18374 msgid "echo-daemon"
18375 msgstr ""
18376
18377 # type: verbatim
18378 #: ../fish/guestfish-actions.pod:878
18379 #, no-wrap
18380 msgid ""
18381 " echo-daemon 'words ...'\n"
18382 "\n"
18383 msgstr ""
18384
18385 # type: textblock
18386 #: ../fish/guestfish-actions.pod:885
18387 msgid "See also L</ping-daemon>."
18388 msgstr ""
18389
18390 # type: =head2
18391 #: ../fish/guestfish-actions.pod:887
18392 msgid "egrep"
18393 msgstr ""
18394
18395 # type: verbatim
18396 #: ../fish/guestfish-actions.pod:889
18397 #, no-wrap
18398 msgid ""
18399 " egrep regex path\n"
18400 "\n"
18401 msgstr ""
18402
18403 # type: =head2
18404 #: ../fish/guestfish-actions.pod:897
18405 msgid "egrepi"
18406 msgstr ""
18407
18408 # type: verbatim
18409 #: ../fish/guestfish-actions.pod:899
18410 #, no-wrap
18411 msgid ""
18412 " egrepi regex path\n"
18413 "\n"
18414 msgstr ""
18415
18416 # type: =head2
18417 #: ../fish/guestfish-actions.pod:907
18418 msgid "equal"
18419 msgstr ""
18420
18421 # type: verbatim
18422 #: ../fish/guestfish-actions.pod:909
18423 #, no-wrap
18424 msgid ""
18425 " equal file1 file2\n"
18426 "\n"
18427 msgstr ""
18428
18429 # type: =head2
18430 #: ../fish/guestfish-actions.pod:916
18431 msgid "exists"
18432 msgstr ""
18433
18434 # type: verbatim
18435 #: ../fish/guestfish-actions.pod:918
18436 #, no-wrap
18437 msgid ""
18438 " exists path\n"
18439 "\n"
18440 msgstr ""
18441
18442 # type: textblock
18443 #: ../fish/guestfish-actions.pod:923
18444 msgid "See also L</is-file>, L</is-dir>, L</stat>."
18445 msgstr ""
18446
18447 # type: =head2
18448 #: ../fish/guestfish-actions.pod:925
18449 msgid "fallocate"
18450 msgstr ""
18451
18452 # type: verbatim
18453 #: ../fish/guestfish-actions.pod:927
18454 #, no-wrap
18455 msgid ""
18456 " fallocate path len\n"
18457 "\n"
18458 msgstr ""
18459
18460 # type: =head2
18461 #: ../fish/guestfish-actions.pod:944
18462 msgid "fallocate64"
18463 msgstr ""
18464
18465 # type: verbatim
18466 #: ../fish/guestfish-actions.pod:946
18467 #, no-wrap
18468 msgid ""
18469 " fallocate64 path len\n"
18470 "\n"
18471 msgstr ""
18472
18473 # type: textblock
18474 #: ../fish/guestfish-actions.pod:952
18475 msgid ""
18476 "Note that this call allocates disk blocks for the file.  To create a sparse "
18477 "file use L</truncate-size> instead."
18478 msgstr ""
18479
18480 # type: textblock
18481 #: ../fish/guestfish-actions.pod:955
18482 msgid ""
18483 "The deprecated call L</fallocate> does the same, but owing to an oversight "
18484 "it only allowed 30 bit lengths to be specified, effectively limiting the "
18485 "maximum size of files created through that call to 1GB."
18486 msgstr ""
18487
18488 # type: =head2
18489 #: ../fish/guestfish-actions.pod:964
18490 msgid "fgrep"
18491 msgstr ""
18492
18493 # type: verbatim
18494 #: ../fish/guestfish-actions.pod:966
18495 #, no-wrap
18496 msgid ""
18497 " fgrep pattern path\n"
18498 "\n"
18499 msgstr ""
18500
18501 # type: =head2
18502 #: ../fish/guestfish-actions.pod:974
18503 msgid "fgrepi"
18504 msgstr ""
18505
18506 # type: verbatim
18507 #: ../fish/guestfish-actions.pod:976
18508 #, no-wrap
18509 msgid ""
18510 " fgrepi pattern path\n"
18511 "\n"
18512 msgstr ""
18513
18514 # type: =head2
18515 #: ../fish/guestfish-actions.pod:984
18516 msgid "file"
18517 msgstr ""
18518
18519 # type: verbatim
18520 #: ../fish/guestfish-actions.pod:986
18521 #, no-wrap
18522 msgid ""
18523 " file path\n"
18524 "\n"
18525 msgstr ""
18526
18527 # type: textblock
18528 #: ../fish/guestfish-actions.pod:998
18529 msgid ""
18530 "This command can also be used on C</dev/> devices (and partitions, LV "
18531 "names).  You can for example use this to determine if a device contains a "
18532 "filesystem, although it's usually better to use L</vfs-type>."
18533 msgstr ""
18534
18535 # type: =head2
18536 #: ../fish/guestfish-actions.pod:1008
18537 msgid "file-architecture"
18538 msgstr ""
18539
18540 # type: verbatim
18541 #: ../fish/guestfish-actions.pod:1010
18542 #, no-wrap
18543 msgid ""
18544 " file-architecture filename\n"
18545 "\n"
18546 msgstr ""
18547
18548 # type: =head2
18549 #: ../fish/guestfish-actions.pod:1113
18550 msgid "filesize"
18551 msgstr ""
18552
18553 # type: verbatim
18554 #: ../fish/guestfish-actions.pod:1115
18555 #, no-wrap
18556 msgid ""
18557 " filesize file\n"
18558 "\n"
18559 msgstr ""
18560
18561 # type: textblock
18562 #: ../fish/guestfish-actions.pod:1119
18563 msgid ""
18564 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, L</is-"
18565 "file> etc.  To get the size of block devices, use L</blockdev-getsize64>."
18566 msgstr ""
18567
18568 # type: =head2
18569 #: ../fish/guestfish-actions.pod:1123
18570 msgid "fill"
18571 msgstr ""
18572
18573 # type: verbatim
18574 #: ../fish/guestfish-actions.pod:1125
18575 #, no-wrap
18576 msgid ""
18577 " fill c len path\n"
18578 "\n"
18579 msgstr ""
18580
18581 # type: textblock
18582 #: ../fish/guestfish-actions.pod:1131
18583 msgid ""
18584 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
18585 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
18586 "L</fill-pattern>."
18587 msgstr ""
18588
18589 # type: =head2
18590 #: ../fish/guestfish-actions.pod:1136
18591 msgid "fill-pattern"
18592 msgstr ""
18593
18594 # type: verbatim
18595 #: ../fish/guestfish-actions.pod:1138
18596 #, no-wrap
18597 msgid ""
18598 " fill-pattern pattern len path\n"
18599 "\n"
18600 msgstr ""
18601
18602 # type: textblock
18603 #: ../fish/guestfish-actions.pod:1140
18604 msgid ""
18605 "This function is like L</fill> except that it creates a new file of length "
18606 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
18607 "is truncated if necessary to ensure the length of the file is exactly C<len> "
18608 "bytes."
18609 msgstr ""
18610
18611 # type: =head2
18612 #: ../fish/guestfish-actions.pod:1145
18613 msgid "find"
18614 msgstr ""
18615
18616 # type: verbatim
18617 #: ../fish/guestfish-actions.pod:1147
18618 #, no-wrap
18619 msgid ""
18620 " find directory\n"
18621 "\n"
18622 msgstr ""
18623
18624 # type: textblock
18625 #: ../fish/guestfish-actions.pod:1161
18626 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
18627 msgstr ""
18628
18629 # type: textblock
18630 #: ../fish/guestfish-actions.pod:1174
18631 msgid "See also L</find0>."
18632 msgstr ""
18633
18634 # type: =head2
18635 #: ../fish/guestfish-actions.pod:1179
18636 msgid "find0"
18637 msgstr ""
18638
18639 # type: verbatim
18640 #: ../fish/guestfish-actions.pod:1181
18641 #, no-wrap
18642 msgid ""
18643 " find0 directory (files|-)\n"
18644 "\n"
18645 msgstr ""
18646
18647 # type: textblock
18648 #: ../fish/guestfish-actions.pod:1187
18649 msgid ""
18650 "This command works the same way as L</find> with the following exceptions:"
18651 msgstr ""
18652
18653 # type: =head2
18654 #: ../fish/guestfish-actions.pod:1214
18655 msgid "findfs-label"
18656 msgstr ""
18657
18658 # type: verbatim
18659 #: ../fish/guestfish-actions.pod:1216
18660 #, no-wrap
18661 msgid ""
18662 " findfs-label label\n"
18663 "\n"
18664 msgstr ""
18665
18666 # type: textblock
18667 #: ../fish/guestfish-actions.pod:1222
18668 msgid "To find the label of a filesystem, use L</vfs-label>."
18669 msgstr ""
18670
18671 # type: =head2
18672 #: ../fish/guestfish-actions.pod:1224
18673 msgid "findfs-uuid"
18674 msgstr ""
18675
18676 # type: verbatim
18677 #: ../fish/guestfish-actions.pod:1226
18678 #, no-wrap
18679 msgid ""
18680 " findfs-uuid uuid\n"
18681 "\n"
18682 msgstr ""
18683
18684 # type: textblock
18685 #: ../fish/guestfish-actions.pod:1232
18686 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
18687 msgstr ""
18688
18689 # type: =head2
18690 #: ../fish/guestfish-actions.pod:1234
18691 msgid "fsck"
18692 msgstr ""
18693
18694 # type: verbatim
18695 #: ../fish/guestfish-actions.pod:1236
18696 #, no-wrap
18697 msgid ""
18698 " fsck fstype device\n"
18699 "\n"
18700 msgstr ""
18701
18702 # type: =head2
18703 #: ../fish/guestfish-actions.pod:1266
18704 msgid "get-append"
18705 msgstr ""
18706
18707 # type: verbatim
18708 #: ../fish/guestfish-actions.pod:1268
18709 #, no-wrap
18710 msgid ""
18711 " get-append\n"
18712 "\n"
18713 msgstr ""
18714
18715 # type: =head2
18716 #: ../fish/guestfish-actions.pod:1275
18717 msgid "get-autosync"
18718 msgstr ""
18719
18720 # type: verbatim
18721 #: ../fish/guestfish-actions.pod:1277
18722 #, no-wrap
18723 msgid ""
18724 " get-autosync\n"
18725 "\n"
18726 msgstr ""
18727
18728 # type: =head2
18729 #: ../fish/guestfish-actions.pod:1281
18730 msgid "get-direct"
18731 msgstr ""
18732
18733 # type: verbatim
18734 #: ../fish/guestfish-actions.pod:1283
18735 #, no-wrap
18736 msgid ""
18737 " get-direct\n"
18738 "\n"
18739 msgstr ""
18740
18741 # type: =head2
18742 #: ../fish/guestfish-actions.pod:1287
18743 msgid "get-e2label"
18744 msgstr ""
18745
18746 # type: verbatim
18747 #: ../fish/guestfish-actions.pod:1289
18748 #, no-wrap
18749 msgid ""
18750 " get-e2label device\n"
18751 "\n"
18752 msgstr ""
18753
18754 # type: =head2
18755 #: ../fish/guestfish-actions.pod:1301
18756 msgid "get-e2uuid"
18757 msgstr ""
18758
18759 # type: verbatim
18760 #: ../fish/guestfish-actions.pod:1303
18761 #, no-wrap
18762 msgid ""
18763 " get-e2uuid device\n"
18764 "\n"
18765 msgstr ""
18766
18767 # type: =head2
18768 #: ../fish/guestfish-actions.pod:1315
18769 msgid "get-memsize"
18770 msgstr ""
18771
18772 # type: verbatim
18773 #: ../fish/guestfish-actions.pod:1317
18774 #, no-wrap
18775 msgid ""
18776 " get-memsize\n"
18777 "\n"
18778 msgstr ""
18779
18780 # type: textblock
18781 #: ../fish/guestfish-actions.pod:1322
18782 msgid ""
18783 "If L</set-memsize> was not called on this handle, and if "
18784 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
18785 "value for memsize."
18786 msgstr ""
18787
18788 # type: =head2
18789 #: ../fish/guestfish-actions.pod:1329
18790 msgid "get-network"
18791 msgstr ""
18792
18793 # type: verbatim
18794 #: ../fish/guestfish-actions.pod:1331
18795 #, no-wrap
18796 msgid ""
18797 " get-network\n"
18798 "\n"
18799 msgstr ""
18800
18801 # type: =head2
18802 #: ../fish/guestfish-actions.pod:1335
18803 msgid "get-path"
18804 msgstr ""
18805
18806 # type: verbatim
18807 #: ../fish/guestfish-actions.pod:1337
18808 #, no-wrap
18809 msgid ""
18810 " get-path\n"
18811 "\n"
18812 msgstr ""
18813
18814 # type: =head2
18815 #: ../fish/guestfish-actions.pod:1344
18816 msgid "get-pid"
18817 msgstr ""
18818
18819 # type: =head2
18820 #: ../fish/guestfish-actions.pod:1346
18821 msgid "pid"
18822 msgstr ""
18823
18824 # type: verbatim
18825 #: ../fish/guestfish-actions.pod:1348
18826 #, no-wrap
18827 msgid ""
18828 " get-pid\n"
18829 "\n"
18830 msgstr ""
18831
18832 # type: =head2
18833 #: ../fish/guestfish-actions.pod:1355
18834 msgid "get-qemu"
18835 msgstr ""
18836
18837 # type: verbatim
18838 #: ../fish/guestfish-actions.pod:1357
18839 #, no-wrap
18840 msgid ""
18841 " get-qemu\n"
18842 "\n"
18843 msgstr ""
18844
18845 # type: =head2
18846 #: ../fish/guestfish-actions.pod:1364
18847 msgid "get-recovery-proc"
18848 msgstr ""
18849
18850 # type: verbatim
18851 #: ../fish/guestfish-actions.pod:1366
18852 #, no-wrap
18853 msgid ""
18854 " get-recovery-proc\n"
18855 "\n"
18856 msgstr ""
18857
18858 # type: =head2
18859 #: ../fish/guestfish-actions.pod:1370
18860 msgid "get-selinux"
18861 msgstr ""
18862
18863 # type: verbatim
18864 #: ../fish/guestfish-actions.pod:1372
18865 #, no-wrap
18866 msgid ""
18867 " get-selinux\n"
18868 "\n"
18869 msgstr ""
18870
18871 # type: textblock
18872 #: ../fish/guestfish-actions.pod:1374
18873 msgid ""
18874 "This returns the current setting of the selinux flag which is passed to the "
18875 "appliance at boot time.  See L</set-selinux>."
18876 msgstr ""
18877
18878 # type: =head2
18879 #: ../fish/guestfish-actions.pod:1380
18880 msgid "get-state"
18881 msgstr ""
18882
18883 # type: verbatim
18884 #: ../fish/guestfish-actions.pod:1382
18885 #, no-wrap
18886 msgid ""
18887 " get-state\n"
18888 "\n"
18889 msgstr ""
18890
18891 # type: =head2
18892 #: ../fish/guestfish-actions.pod:1389
18893 msgid "get-trace"
18894 msgstr ""
18895
18896 # type: verbatim
18897 #: ../fish/guestfish-actions.pod:1391
18898 #, no-wrap
18899 msgid ""
18900 " get-trace\n"
18901 "\n"
18902 msgstr ""
18903
18904 # type: =head2
18905 #: ../fish/guestfish-actions.pod:1395
18906 msgid "get-umask"
18907 msgstr ""
18908
18909 # type: verbatim
18910 #: ../fish/guestfish-actions.pod:1397
18911 #, no-wrap
18912 msgid ""
18913 " get-umask\n"
18914 "\n"
18915 msgstr ""
18916
18917 # type: textblock
18918 #: ../fish/guestfish-actions.pod:1399
18919 msgid ""
18920 "Return the current umask.  By default the umask is C<022> unless it has been "
18921 "set by calling L</umask>."
18922 msgstr ""
18923
18924 # type: =head2
18925 #: ../fish/guestfish-actions.pod:1402
18926 msgid "get-verbose"
18927 msgstr ""
18928
18929 # type: verbatim
18930 #: ../fish/guestfish-actions.pod:1404
18931 #, no-wrap
18932 msgid ""
18933 " get-verbose\n"
18934 "\n"
18935 msgstr ""
18936
18937 # type: =head2
18938 #: ../fish/guestfish-actions.pod:1408
18939 msgid "getcon"
18940 msgstr ""
18941
18942 # type: verbatim
18943 #: ../fish/guestfish-actions.pod:1410
18944 #, no-wrap
18945 msgid ""
18946 " getcon\n"
18947 "\n"
18948 msgstr ""
18949
18950 # type: textblock
18951 #: ../fish/guestfish-actions.pod:1414
18952 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
18953 msgstr ""
18954
18955 # type: =head2
18956 #: ../fish/guestfish-actions.pod:1417
18957 msgid "getxattrs"
18958 msgstr ""
18959
18960 # type: verbatim
18961 #: ../fish/guestfish-actions.pod:1419
18962 #, no-wrap
18963 msgid ""
18964 " getxattrs path\n"
18965 "\n"
18966 msgstr ""
18967
18968 # type: textblock
18969 #: ../fish/guestfish-actions.pod:1427
18970 msgid "See also: L</lgetxattrs>, L<attr(5)>."
18971 msgstr ""
18972
18973 # type: =head2
18974 #: ../fish/guestfish-actions.pod:1429
18975 msgid "glob-expand"
18976 msgstr ""
18977
18978 # type: verbatim
18979 #: ../fish/guestfish-actions.pod:1431
18980 #, no-wrap
18981 msgid ""
18982 " glob-expand pattern\n"
18983 "\n"
18984 msgstr ""
18985
18986 # type: =head2
18987 #: ../fish/guestfish-actions.pod:1444
18988 msgid "grep"
18989 msgstr ""
18990
18991 # type: verbatim
18992 #: ../fish/guestfish-actions.pod:1446
18993 #, no-wrap
18994 msgid ""
18995 " grep regex path\n"
18996 "\n"
18997 msgstr ""
18998
18999 # type: =head2
19000 #: ../fish/guestfish-actions.pod:1454
19001 msgid "grepi"
19002 msgstr ""
19003
19004 # type: verbatim
19005 #: ../fish/guestfish-actions.pod:1456
19006 #, no-wrap
19007 msgid ""
19008 " grepi regex path\n"
19009 "\n"
19010 msgstr ""
19011
19012 # type: =head2
19013 #: ../fish/guestfish-actions.pod:1464
19014 msgid "grub-install"
19015 msgstr ""
19016
19017 # type: verbatim
19018 #: ../fish/guestfish-actions.pod:1466
19019 #, no-wrap
19020 msgid ""
19021 " grub-install root device\n"
19022 "\n"
19023 msgstr ""
19024
19025 # type: =head2
19026 #: ../fish/guestfish-actions.pod:1482
19027 msgid "head"
19028 msgstr ""
19029
19030 # type: verbatim
19031 #: ../fish/guestfish-actions.pod:1484
19032 #, no-wrap
19033 msgid ""
19034 " head path\n"
19035 "\n"
19036 msgstr ""
19037
19038 # type: =head2
19039 #: ../fish/guestfish-actions.pod:1492
19040 msgid "head-n"
19041 msgstr ""
19042
19043 # type: verbatim
19044 #: ../fish/guestfish-actions.pod:1494
19045 #, no-wrap
19046 msgid ""
19047 " head-n nrlines path\n"
19048 "\n"
19049 msgstr ""
19050
19051 # type: =head2
19052 #: ../fish/guestfish-actions.pod:1507
19053 msgid "hexdump"
19054 msgstr ""
19055
19056 # type: verbatim
19057 #: ../fish/guestfish-actions.pod:1509
19058 #, no-wrap
19059 msgid ""
19060 " hexdump path\n"
19061 "\n"
19062 msgstr ""
19063
19064 # type: =head2
19065 #: ../fish/guestfish-actions.pod:1517
19066 msgid "initrd-cat"
19067 msgstr ""
19068
19069 # type: verbatim
19070 #: ../fish/guestfish-actions.pod:1519
19071 #, no-wrap
19072 msgid ""
19073 " initrd-cat initrdpath filename\n"
19074 "\n"
19075 msgstr ""
19076
19077 # type: textblock
19078 #: ../fish/guestfish-actions.pod:1531
19079 msgid "See also L</initrd-list>."
19080 msgstr ""
19081
19082 # type: =head2
19083 #: ../fish/guestfish-actions.pod:1536
19084 msgid "initrd-list"
19085 msgstr ""
19086
19087 # type: verbatim
19088 #: ../fish/guestfish-actions.pod:1538
19089 #, no-wrap
19090 msgid ""
19091 " initrd-list path\n"
19092 "\n"
19093 msgstr ""
19094
19095 # type: =head2
19096 #: ../fish/guestfish-actions.pod:1550
19097 msgid "inotify-add-watch"
19098 msgstr ""
19099
19100 # type: verbatim
19101 #: ../fish/guestfish-actions.pod:1552
19102 #, no-wrap
19103 msgid ""
19104 " inotify-add-watch path mask\n"
19105 "\n"
19106 msgstr ""
19107
19108 # type: =head2
19109 #: ../fish/guestfish-actions.pod:1564
19110 msgid "inotify-close"
19111 msgstr ""
19112
19113 # type: verbatim
19114 #: ../fish/guestfish-actions.pod:1566
19115 #, no-wrap
19116 msgid ""
19117 " inotify-close\n"
19118 "\n"
19119 msgstr ""
19120
19121 # type: =head2
19122 #: ../fish/guestfish-actions.pod:1572
19123 msgid "inotify-files"
19124 msgstr ""
19125
19126 # type: verbatim
19127 #: ../fish/guestfish-actions.pod:1574
19128 #, no-wrap
19129 msgid ""
19130 " inotify-files\n"
19131 "\n"
19132 msgstr ""
19133
19134 # type: textblock
19135 #: ../fish/guestfish-actions.pod:1576
19136 msgid ""
19137 "This function is a helpful wrapper around L</inotify-read> which just "
19138 "returns a list of pathnames of objects that were touched.  The returned "
19139 "pathnames are sorted and deduplicated."
19140 msgstr ""
19141
19142 # type: =head2
19143 #: ../fish/guestfish-actions.pod:1580
19144 msgid "inotify-init"
19145 msgstr ""
19146
19147 # type: verbatim
19148 #: ../fish/guestfish-actions.pod:1582
19149 #, no-wrap
19150 msgid ""
19151 " inotify-init maxevents\n"
19152 "\n"
19153 msgstr ""
19154
19155 # type: textblock
19156 #: ../fish/guestfish-actions.pod:1588
19157 msgid ""
19158 "C<maxevents> is the maximum number of events which will be queued up between "
19159 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
19160 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
19161 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
19162 "but records the fact that it threw them away by setting a flag "
19163 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
19164 msgstr ""
19165
19166 # type: textblock
19167 #: ../fish/guestfish-actions.pod:1598
19168 msgid ""
19169 "Before any events are generated, you have to add some watches to the "
19170 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
19171 "L</inotify-watch-all>."
19172 msgstr ""
19173
19174 # type: textblock
19175 #: ../fish/guestfish-actions.pod:1604
19176 msgid ""
19177 "Queued up events should be read periodically by calling L</inotify-read> (or "
19178 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
19179 "If you don't read the events out often enough then you risk the internal "
19180 "queue overflowing."
19181 msgstr ""
19182
19183 # type: textblock
19184 #: ../fish/guestfish-actions.pod:1611
19185 msgid ""
19186 "The handle should be closed after use by calling L</inotify-close>.  This "
19187 "also removes any watches automatically."
19188 msgstr ""
19189
19190 # type: =head2
19191 #: ../fish/guestfish-actions.pod:1620
19192 msgid "inotify-read"
19193 msgstr ""
19194
19195 # type: verbatim
19196 #: ../fish/guestfish-actions.pod:1622
19197 #, no-wrap
19198 msgid ""
19199 " inotify-read\n"
19200 "\n"
19201 msgstr ""
19202
19203 # type: =head2
19204 #: ../fish/guestfish-actions.pod:1635
19205 msgid "inotify-rm-watch"
19206 msgstr ""
19207
19208 # type: verbatim
19209 #: ../fish/guestfish-actions.pod:1637
19210 #, no-wrap
19211 msgid ""
19212 " inotify-rm-watch wd\n"
19213 "\n"
19214 msgstr ""
19215
19216 # type: textblock
19217 #: ../fish/guestfish-actions.pod:1639
19218 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
19219 msgstr ""
19220
19221 # type: =head2
19222 #: ../fish/guestfish-actions.pod:1642
19223 msgid "inspect-get-arch"
19224 msgstr ""
19225
19226 # type: verbatim
19227 #: ../fish/guestfish-actions.pod:1644
19228 #, no-wrap
19229 msgid ""
19230 " inspect-get-arch root\n"
19231 "\n"
19232 msgstr ""
19233
19234 # type: textblock
19235 #: ../fish/guestfish-actions.pod:1646 ../fish/guestfish-actions.pod:1662
19236 #: ../fish/guestfish-actions.pod:1708 ../fish/guestfish-actions.pod:1726
19237 #: ../fish/guestfish-actions.pod:1747 ../fish/guestfish-actions.pod:1762
19238 #: ../fish/guestfish-actions.pod:1785 ../fish/guestfish-actions.pod:1802
19239 msgid ""
19240 "This function should only be called with a root device string as returned by "
19241 "L</inspect-os>."
19242 msgstr ""
19243
19244 # type: textblock
19245 #: ../fish/guestfish-actions.pod:1649
19246 msgid ""
19247 "This returns the architecture of the inspected operating system.  The "
19248 "possible return values are listed under L</file-architecture>."
19249 msgstr ""
19250
19251 # type: =head2
19252 #: ../fish/guestfish-actions.pod:1658
19253 msgid "inspect-get-distro"
19254 msgstr ""
19255
19256 # type: verbatim
19257 #: ../fish/guestfish-actions.pod:1660
19258 #, no-wrap
19259 msgid ""
19260 " inspect-get-distro root\n"
19261 "\n"
19262 msgstr ""
19263
19264 # type: =head2
19265 #: ../fish/guestfish-actions.pod:1704
19266 msgid "inspect-get-filesystems"
19267 msgstr ""
19268
19269 # type: verbatim
19270 #: ../fish/guestfish-actions.pod:1706
19271 #, no-wrap
19272 msgid ""
19273 " inspect-get-filesystems root\n"
19274 "\n"
19275 msgstr ""
19276
19277 # type: textblock
19278 #: ../fish/guestfish-actions.pod:1719
19279 msgid ""
19280 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
19281 "get-mountpoints>."
19282 msgstr ""
19283
19284 # type: =head2
19285 #: ../fish/guestfish-actions.pod:1722
19286 msgid "inspect-get-major-version"
19287 msgstr ""
19288
19289 # type: verbatim
19290 #: ../fish/guestfish-actions.pod:1724
19291 #, no-wrap
19292 msgid ""
19293 " inspect-get-major-version root\n"
19294 "\n"
19295 msgstr ""
19296
19297 # type: =head2
19298 #: ../fish/guestfish-actions.pod:1743
19299 msgid "inspect-get-minor-version"
19300 msgstr ""
19301
19302 # type: verbatim
19303 #: ../fish/guestfish-actions.pod:1745
19304 #, no-wrap
19305 msgid ""
19306 " inspect-get-minor-version root\n"
19307 "\n"
19308 msgstr ""
19309
19310 # type: textblock
19311 #: ../fish/guestfish-actions.pod:1755
19312 msgid ""
19313 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
19314 "get-major-version>."
19315 msgstr ""
19316
19317 # type: =head2
19318 #: ../fish/guestfish-actions.pod:1758
19319 msgid "inspect-get-mountpoints"
19320 msgstr ""
19321
19322 # type: verbatim
19323 #: ../fish/guestfish-actions.pod:1760
19324 #, no-wrap
19325 msgid ""
19326 " inspect-get-mountpoints root\n"
19327 "\n"
19328 msgstr ""
19329
19330 # type: textblock
19331 #: ../fish/guestfish-actions.pod:1778
19332 msgid ""
19333 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
19334 "get-filesystems>."
19335 msgstr ""
19336
19337 # type: =head2
19338 #: ../fish/guestfish-actions.pod:1781
19339 msgid "inspect-get-product-name"
19340 msgstr ""
19341
19342 # type: verbatim
19343 #: ../fish/guestfish-actions.pod:1783
19344 #, no-wrap
19345 msgid ""
19346 " inspect-get-product-name root\n"
19347 "\n"
19348 msgstr ""
19349
19350 # type: =head2
19351 #: ../fish/guestfish-actions.pod:1798
19352 msgid "inspect-get-type"
19353 msgstr ""
19354
19355 # type: verbatim
19356 #: ../fish/guestfish-actions.pod:1800
19357 #, no-wrap
19358 msgid ""
19359 " inspect-get-type root\n"
19360 "\n"
19361 msgstr ""
19362
19363 # type: =head2
19364 #: ../fish/guestfish-actions.pod:1829
19365 msgid "inspect-os"
19366 msgstr ""
19367
19368 # type: verbatim
19369 #: ../fish/guestfish-actions.pod:1831
19370 #, no-wrap
19371 msgid ""
19372 " inspect-os\n"
19373 "\n"
19374 msgstr ""
19375
19376 # type: textblock
19377 #: ../fish/guestfish-actions.pod:1846
19378 msgid ""
19379 "You can pass the root string(s) returned to other L</inspect-get-*> "
19380 "functions in order to query further information about each operating system, "
19381 "such as the name and version."
19382 msgstr ""
19383
19384 # type: textblock
19385 #: ../fish/guestfish-actions.pod:1851
19386 msgid ""
19387 "This function uses other libguestfs features such as L</mount-ro> and L</"
19388 "umount-all> in order to mount and unmount filesystems and look at the "
19389 "contents.  This should be called with no disks currently mounted.  The "
19390 "function may also use Augeas, so any existing Augeas handle will be closed."
19391 msgstr ""
19392
19393 # type: textblock
19394 #: ../fish/guestfish-actions.pod:1863 ../fish/guestfish-actions.pod:2019
19395 #: ../fish/guestfish-actions.pod:2065
19396 msgid "See also L</list-filesystems>."
19397 msgstr ""
19398
19399 # type: =head2
19400 #: ../fish/guestfish-actions.pod:1865
19401 msgid "is-blockdev"
19402 msgstr ""
19403
19404 # type: verbatim
19405 #: ../fish/guestfish-actions.pod:1867
19406 #, no-wrap
19407 msgid ""
19408 " is-blockdev path\n"
19409 "\n"
19410 msgstr ""
19411
19412 # type: textblock
19413 #: ../fish/guestfish-actions.pod:1872 ../fish/guestfish-actions.pod:1890
19414 #: ../fish/guestfish-actions.pod:1909 ../fish/guestfish-actions.pod:1918
19415 #: ../fish/guestfish-actions.pod:1928 ../fish/guestfish-actions.pod:1962
19416 #: ../fish/guestfish-actions.pod:1971
19417 msgid "See also L</stat>."
19418 msgstr ""
19419
19420 # type: =head2
19421 #: ../fish/guestfish-actions.pod:1874
19422 msgid "is-busy"
19423 msgstr ""
19424
19425 # type: verbatim
19426 #: ../fish/guestfish-actions.pod:1876
19427 #, no-wrap
19428 msgid ""
19429 " is-busy\n"
19430 "\n"
19431 msgstr ""
19432
19433 # type: =head2
19434 #: ../fish/guestfish-actions.pod:1883
19435 msgid "is-chardev"
19436 msgstr ""
19437
19438 # type: verbatim
19439 #: ../fish/guestfish-actions.pod:1885
19440 #, no-wrap
19441 msgid ""
19442 " is-chardev path\n"
19443 "\n"
19444 msgstr ""
19445
19446 # type: =head2
19447 #: ../fish/guestfish-actions.pod:1892
19448 msgid "is-config"
19449 msgstr ""
19450
19451 # type: verbatim
19452 #: ../fish/guestfish-actions.pod:1894
19453 #, no-wrap
19454 msgid ""
19455 " is-config\n"
19456 "\n"
19457 msgstr ""
19458
19459 # type: =head2
19460 #: ../fish/guestfish-actions.pod:1901
19461 msgid "is-dir"
19462 msgstr ""
19463
19464 # type: verbatim
19465 #: ../fish/guestfish-actions.pod:1903
19466 #, no-wrap
19467 msgid ""
19468 " is-dir path\n"
19469 "\n"
19470 msgstr ""
19471
19472 # type: =head2
19473 #: ../fish/guestfish-actions.pod:1911
19474 msgid "is-fifo"
19475 msgstr ""
19476
19477 # type: verbatim
19478 #: ../fish/guestfish-actions.pod:1913
19479 #, no-wrap
19480 msgid ""
19481 " is-fifo path\n"
19482 "\n"
19483 msgstr ""
19484
19485 # type: =head2
19486 #: ../fish/guestfish-actions.pod:1920
19487 msgid "is-file"
19488 msgstr ""
19489
19490 # type: verbatim
19491 #: ../fish/guestfish-actions.pod:1922
19492 #, no-wrap
19493 msgid ""
19494 " is-file path\n"
19495 "\n"
19496 msgstr ""
19497
19498 # type: =head2
19499 #: ../fish/guestfish-actions.pod:1930
19500 msgid "is-launching"
19501 msgstr ""
19502
19503 # type: verbatim
19504 #: ../fish/guestfish-actions.pod:1932
19505 #, no-wrap
19506 msgid ""
19507 " is-launching\n"
19508 "\n"
19509 msgstr ""
19510
19511 # type: =head2
19512 #: ../fish/guestfish-actions.pod:1939
19513 msgid "is-lv"
19514 msgstr ""
19515
19516 # type: verbatim
19517 #: ../fish/guestfish-actions.pod:1941
19518 #, no-wrap
19519 msgid ""
19520 " is-lv device\n"
19521 "\n"
19522 msgstr ""
19523
19524 # type: =head2
19525 #: ../fish/guestfish-actions.pod:1946
19526 msgid "is-ready"
19527 msgstr ""
19528
19529 # type: verbatim
19530 #: ../fish/guestfish-actions.pod:1948
19531 #, no-wrap
19532 msgid ""
19533 " is-ready\n"
19534 "\n"
19535 msgstr ""
19536
19537 # type: =head2
19538 #: ../fish/guestfish-actions.pod:1955
19539 msgid "is-socket"
19540 msgstr ""
19541
19542 # type: verbatim
19543 #: ../fish/guestfish-actions.pod:1957
19544 #, no-wrap
19545 msgid ""
19546 " is-socket path\n"
19547 "\n"
19548 msgstr ""
19549
19550 # type: =head2
19551 #: ../fish/guestfish-actions.pod:1964
19552 msgid "is-symlink"
19553 msgstr ""
19554
19555 # type: verbatim
19556 #: ../fish/guestfish-actions.pod:1966
19557 #, no-wrap
19558 msgid ""
19559 " is-symlink path\n"
19560 "\n"
19561 msgstr ""
19562
19563 # type: =head2
19564 #: ../fish/guestfish-actions.pod:1973
19565 msgid "kill-subprocess"
19566 msgstr ""
19567
19568 # type: verbatim
19569 #: ../fish/guestfish-actions.pod:1975
19570 #, no-wrap
19571 msgid ""
19572 " kill-subprocess\n"
19573 "\n"
19574 msgstr ""
19575
19576 # type: =head2
19577 #: ../fish/guestfish-actions.pod:1979
19578 msgid "launch"
19579 msgstr ""
19580
19581 # type: =head2
19582 #: ../fish/guestfish-actions.pod:1981
19583 msgid "run"
19584 msgstr ""
19585
19586 # type: verbatim
19587 #: ../fish/guestfish-actions.pod:1983
19588 #, no-wrap
19589 msgid ""
19590 " launch\n"
19591 "\n"
19592 msgstr ""
19593
19594 # type: =head2
19595 #: ../fish/guestfish-actions.pod:1991
19596 msgid "lchown"
19597 msgstr ""
19598
19599 # type: verbatim
19600 #: ../fish/guestfish-actions.pod:1993
19601 #, no-wrap
19602 msgid ""
19603 " lchown owner group path\n"
19604 "\n"
19605 msgstr ""
19606
19607 # type: textblock
19608 #: ../fish/guestfish-actions.pod:1995
19609 msgid ""
19610 "Change the file owner to C<owner> and group to C<group>.  This is like L</"
19611 "chown> but if C<path> is a symlink then the link itself is changed, not the "
19612 "target."
19613 msgstr ""
19614
19615 # type: =head2
19616 #: ../fish/guestfish-actions.pod:2003
19617 msgid "lgetxattrs"
19618 msgstr ""
19619
19620 # type: verbatim
19621 #: ../fish/guestfish-actions.pod:2005
19622 #, no-wrap
19623 msgid ""
19624 " lgetxattrs path\n"
19625 "\n"
19626 msgstr ""
19627
19628 # type: textblock
19629 #: ../fish/guestfish-actions.pod:2007
19630 msgid ""
19631 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
19632 "it returns the extended attributes of the link itself."
19633 msgstr ""
19634
19635 # type: =head2
19636 #: ../fish/guestfish-actions.pod:2011
19637 msgid "list-devices"
19638 msgstr ""
19639
19640 # type: verbatim
19641 #: ../fish/guestfish-actions.pod:2013
19642 #, no-wrap
19643 msgid ""
19644 " list-devices\n"
19645 "\n"
19646 msgstr ""
19647
19648 # type: =head2
19649 #: ../fish/guestfish-actions.pod:2021
19650 msgid "list-filesystems"
19651 msgstr ""
19652
19653 # type: verbatim
19654 #: ../fish/guestfish-actions.pod:2023
19655 #, no-wrap
19656 msgid ""
19657 " list-filesystems\n"
19658 "\n"
19659 msgstr ""
19660
19661 # type: textblock
19662 #: ../fish/guestfish-actions.pod:2042
19663 msgid ""
19664 "This command runs other libguestfs commands, which might include L</mount> "
19665 "and L</umount>, and therefore you should use this soon after launch and only "
19666 "when nothing is mounted."
19667 msgstr ""
19668
19669 # type: textblock
19670 #: ../fish/guestfish-actions.pod:2046
19671 msgid ""
19672 "Not all of the filesystems returned will be mountable.  In particular, swap "
19673 "partitions are returned in the list.  Also this command does not check that "
19674 "each filesystem found is valid and mountable, and some filesystems might be "
19675 "mountable but require special options.  Filesystems may not all belong to a "
19676 "single logical operating system (use L</inspect-os> to look for OSes)."
19677 msgstr ""
19678
19679 # type: =head2
19680 #: ../fish/guestfish-actions.pod:2054
19681 msgid "list-partitions"
19682 msgstr ""
19683
19684 # type: verbatim
19685 #: ../fish/guestfish-actions.pod:2056
19686 #, no-wrap
19687 msgid ""
19688 " list-partitions\n"
19689 "\n"
19690 msgstr ""
19691
19692 # type: textblock
19693 #: ../fish/guestfish-actions.pod:2062
19694 msgid ""
19695 "This does not return logical volumes.  For that you will need to call L</"
19696 "lvs>."
19697 msgstr ""
19698
19699 # type: =head2
19700 #: ../fish/guestfish-actions.pod:2067
19701 msgid "ll"
19702 msgstr ""
19703
19704 # type: verbatim
19705 #: ../fish/guestfish-actions.pod:2069
19706 #, no-wrap
19707 msgid ""
19708 " ll directory\n"
19709 "\n"
19710 msgstr ""
19711
19712 # type: =head2
19713 #: ../fish/guestfish-actions.pod:2077
19714 msgid "ln"
19715 msgstr ""
19716
19717 # type: verbatim
19718 #: ../fish/guestfish-actions.pod:2079
19719 #, no-wrap
19720 msgid ""
19721 " ln target linkname\n"
19722 "\n"
19723 msgstr ""
19724
19725 # type: =head2
19726 #: ../fish/guestfish-actions.pod:2083
19727 msgid "ln-f"
19728 msgstr ""
19729
19730 # type: verbatim
19731 #: ../fish/guestfish-actions.pod:2085
19732 #, no-wrap
19733 msgid ""
19734 " ln-f target linkname\n"
19735 "\n"
19736 msgstr ""
19737
19738 # type: =head2
19739 #: ../fish/guestfish-actions.pod:2090
19740 msgid "ln-s"
19741 msgstr ""
19742
19743 # type: verbatim
19744 #: ../fish/guestfish-actions.pod:2092
19745 #, no-wrap
19746 msgid ""
19747 " ln-s target linkname\n"
19748 "\n"
19749 msgstr ""
19750
19751 # type: =head2
19752 #: ../fish/guestfish-actions.pod:2096
19753 msgid "ln-sf"
19754 msgstr ""
19755
19756 # type: verbatim
19757 #: ../fish/guestfish-actions.pod:2098
19758 #, no-wrap
19759 msgid ""
19760 " ln-sf target linkname\n"
19761 "\n"
19762 msgstr ""
19763
19764 # type: =head2
19765 #: ../fish/guestfish-actions.pod:2103
19766 msgid "lremovexattr"
19767 msgstr ""
19768
19769 # type: verbatim
19770 #: ../fish/guestfish-actions.pod:2105
19771 #, no-wrap
19772 msgid ""
19773 " lremovexattr xattr path\n"
19774 "\n"
19775 msgstr ""
19776
19777 # type: textblock
19778 #: ../fish/guestfish-actions.pod:2107
19779 msgid ""
19780 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
19781 "it removes an extended attribute of the link itself."
19782 msgstr ""
19783
19784 # type: =head2
19785 #: ../fish/guestfish-actions.pod:2111
19786 msgid "ls"
19787 msgstr ""
19788
19789 # type: verbatim
19790 #: ../fish/guestfish-actions.pod:2113
19791 #, no-wrap
19792 msgid ""
19793 " ls directory\n"
19794 "\n"
19795 msgstr ""
19796
19797 # type: textblock
19798 #: ../fish/guestfish-actions.pod:2119
19799 msgid ""
19800 "This command is mostly useful for interactive sessions.  Programs should "
19801 "probably use L</readdir> instead."
19802 msgstr ""
19803
19804 # type: =head2
19805 #: ../fish/guestfish-actions.pod:2122
19806 msgid "lsetxattr"
19807 msgstr ""
19808
19809 # type: verbatim
19810 #: ../fish/guestfish-actions.pod:2124
19811 #, no-wrap
19812 msgid ""
19813 " lsetxattr xattr val vallen path\n"
19814 "\n"
19815 msgstr ""
19816
19817 # type: textblock
19818 #: ../fish/guestfish-actions.pod:2126
19819 msgid ""
19820 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
19821 "sets an extended attribute of the link itself."
19822 msgstr ""
19823
19824 # type: =head2
19825 #: ../fish/guestfish-actions.pod:2130
19826 msgid "lstat"
19827 msgstr ""
19828
19829 # type: verbatim
19830 #: ../fish/guestfish-actions.pod:2132
19831 #, no-wrap
19832 msgid ""
19833 " lstat path\n"
19834 "\n"
19835 msgstr ""
19836
19837 # type: textblock
19838 #: ../fish/guestfish-actions.pod:2136
19839 msgid ""
19840 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
19841 "the link is stat-ed, not the file it refers to."
19842 msgstr ""
19843
19844 # type: =head2
19845 #: ../fish/guestfish-actions.pod:2142
19846 msgid "lstatlist"
19847 msgstr ""
19848
19849 # type: verbatim
19850 #: ../fish/guestfish-actions.pod:2144
19851 #, no-wrap
19852 msgid ""
19853 " lstatlist path 'names ...'\n"
19854 "\n"
19855 msgstr ""
19856
19857 # type: textblock
19858 #: ../fish/guestfish-actions.pod:2146
19859 msgid ""
19860 "This call allows you to perform the L</lstat> operation on multiple files, "
19861 "where all files are in the directory C<path>.  C<names> is the list of files "
19862 "from this directory."
19863 msgstr ""
19864
19865 # type: textblock
19866 #: ../fish/guestfish-actions.pod:2155
19867 msgid ""
19868 "This call is intended for programs that want to efficiently list a directory "
19869 "contents without making many round-trips.  See also L</lxattrlist> for a "
19870 "similarly efficient call for getting extended attributes.  Very long "
19871 "directory listings might cause the protocol message size to be exceeded, "
19872 "causing this call to fail.  The caller must split up such requests into "
19873 "smaller groups of names."
19874 msgstr ""
19875
19876 # type: =head2
19877 #: ../fish/guestfish-actions.pod:2163
19878 msgid "luks-add-key"
19879 msgstr ""
19880
19881 # type: verbatim
19882 #: ../fish/guestfish-actions.pod:2165
19883 #, no-wrap
19884 msgid ""
19885 " luks-add-key device keyslot\n"
19886 "\n"
19887 msgstr ""
19888
19889 # type: textblock
19890 #: ../fish/guestfish-actions.pod:2172
19891 msgid ""
19892 "Note that if C<keyslot> already contains a key, then this command will "
19893 "fail.  You have to use L</luks-kill-slot> first to remove that key."
19894 msgstr ""
19895
19896 # type: textblock
19897 #: ../fish/guestfish-actions.pod:2176 ../fish/guestfish-actions.pod:2198
19898 #: ../fish/guestfish-actions.pod:2211 ../fish/guestfish-actions.pod:2225
19899 #: ../fish/guestfish-actions.pod:2248 ../fish/guestfish-actions.pod:2258
19900 msgid ""
19901 "This command has one or more key or passphrase parameters.  Guestfish will "
19902 "prompt for these separately."
19903 msgstr ""
19904
19905 # type: =head2
19906 #: ../fish/guestfish-actions.pod:2179
19907 msgid "luks-close"
19908 msgstr ""
19909
19910 # type: verbatim
19911 #: ../fish/guestfish-actions.pod:2181
19912 #, no-wrap
19913 msgid ""
19914 " luks-close device\n"
19915 "\n"
19916 msgstr ""
19917
19918 # type: textblock
19919 #: ../fish/guestfish-actions.pod:2183
19920 msgid ""
19921 "This closes a LUKS device that was created earlier by L</luks-open> or L</"
19922 "luks-open-ro>.  The C<device> parameter must be the name of the LUKS mapping "
19923 "device (ie. C</dev/mapper/mapname>) and I<not> the name of the underlying "
19924 "block device."
19925 msgstr ""
19926
19927 # type: =head2
19928 #: ../fish/guestfish-actions.pod:2189
19929 msgid "luks-format"
19930 msgstr ""
19931
19932 # type: verbatim
19933 #: ../fish/guestfish-actions.pod:2191
19934 #, no-wrap
19935 msgid ""
19936 " luks-format device keyslot\n"
19937 "\n"
19938 msgstr ""
19939
19940 # type: =head2
19941 #: ../fish/guestfish-actions.pod:2204
19942 msgid "luks-format-cipher"
19943 msgstr ""
19944
19945 # type: verbatim
19946 #: ../fish/guestfish-actions.pod:2206
19947 #, no-wrap
19948 msgid ""
19949 " luks-format-cipher device keyslot cipher\n"
19950 "\n"
19951 msgstr ""
19952
19953 # type: textblock
19954 #: ../fish/guestfish-actions.pod:2208
19955 msgid ""
19956 "This command is the same as L</luks-format> but it also allows you to set "
19957 "the C<cipher> used."
19958 msgstr ""
19959
19960 # type: =head2
19961 #: ../fish/guestfish-actions.pod:2217
19962 msgid "luks-kill-slot"
19963 msgstr ""
19964
19965 # type: verbatim
19966 #: ../fish/guestfish-actions.pod:2219
19967 #, no-wrap
19968 msgid ""
19969 " luks-kill-slot device keyslot\n"
19970 "\n"
19971 msgstr ""
19972
19973 # type: =head2
19974 #: ../fish/guestfish-actions.pod:2228
19975 msgid "luks-open"
19976 msgstr ""
19977
19978 # type: verbatim
19979 #: ../fish/guestfish-actions.pod:2230
19980 #, no-wrap
19981 msgid ""
19982 " luks-open device mapname\n"
19983 "\n"
19984 msgstr ""
19985
19986 # type: textblock
19987 #: ../fish/guestfish-actions.pod:2244
19988 msgid ""
19989 "If this block device contains LVM volume groups, then calling L</vgscan> "
19990 "followed by L</vg-activate-all> will make them visible."
19991 msgstr ""
19992
19993 # type: =head2
19994 #: ../fish/guestfish-actions.pod:2251
19995 msgid "luks-open-ro"
19996 msgstr ""
19997
19998 # type: verbatim
19999 #: ../fish/guestfish-actions.pod:2253
20000 #, no-wrap
20001 msgid ""
20002 " luks-open-ro device mapname\n"
20003 "\n"
20004 msgstr ""
20005
20006 # type: textblock
20007 #: ../fish/guestfish-actions.pod:2255
20008 msgid ""
20009 "This is the same as L</luks-open> except that a read-only mapping is created."
20010 msgstr ""
20011
20012 # type: =head2
20013 #: ../fish/guestfish-actions.pod:2261
20014 msgid "lvcreate"
20015 msgstr ""
20016
20017 # type: verbatim
20018 #: ../fish/guestfish-actions.pod:2263
20019 #, no-wrap
20020 msgid ""
20021 " lvcreate logvol volgroup mbytes\n"
20022 "\n"
20023 msgstr ""
20024
20025 # type: =head2
20026 #: ../fish/guestfish-actions.pod:2268
20027 msgid "lvm-clear-filter"
20028 msgstr ""
20029
20030 # type: verbatim
20031 #: ../fish/guestfish-actions.pod:2270
20032 #, no-wrap
20033 msgid ""
20034 " lvm-clear-filter\n"
20035 "\n"
20036 msgstr ""
20037
20038 # type: textblock
20039 #: ../fish/guestfish-actions.pod:2272
20040 msgid ""
20041 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
20042 "block device."
20043 msgstr ""
20044
20045 # type: =head2
20046 #: ../fish/guestfish-actions.pod:2278
20047 msgid "lvm-remove-all"
20048 msgstr ""
20049
20050 # type: verbatim
20051 #: ../fish/guestfish-actions.pod:2280
20052 #, no-wrap
20053 msgid ""
20054 " lvm-remove-all\n"
20055 "\n"
20056 msgstr ""
20057
20058 # type: =head2
20059 #: ../fish/guestfish-actions.pod:2288
20060 msgid "lvm-set-filter"
20061 msgstr ""
20062
20063 # type: verbatim
20064 #: ../fish/guestfish-actions.pod:2290
20065 #, no-wrap
20066 msgid ""
20067 " lvm-set-filter 'devices ...'\n"
20068 "\n"
20069 msgstr ""
20070
20071 # type: =head2
20072 #: ../fish/guestfish-actions.pod:2315
20073 msgid "lvremove"
20074 msgstr ""
20075
20076 # type: verbatim
20077 #: ../fish/guestfish-actions.pod:2317
20078 #, no-wrap
20079 msgid ""
20080 " lvremove device\n"
20081 "\n"
20082 msgstr ""
20083
20084 # type: =head2
20085 #: ../fish/guestfish-actions.pod:2325
20086 msgid "lvrename"
20087 msgstr ""
20088
20089 # type: verbatim
20090 #: ../fish/guestfish-actions.pod:2327
20091 #, no-wrap
20092 msgid ""
20093 " lvrename logvol newlogvol\n"
20094 "\n"
20095 msgstr ""
20096
20097 # type: =head2
20098 #: ../fish/guestfish-actions.pod:2331
20099 msgid "lvresize"
20100 msgstr ""
20101
20102 # type: verbatim
20103 #: ../fish/guestfish-actions.pod:2333
20104 #, no-wrap
20105 msgid ""
20106 " lvresize device mbytes\n"
20107 "\n"
20108 msgstr ""
20109
20110 # type: =head2
20111 #: ../fish/guestfish-actions.pod:2339
20112 msgid "lvresize-free"
20113 msgstr ""
20114
20115 # type: verbatim
20116 #: ../fish/guestfish-actions.pod:2341
20117 #, no-wrap
20118 msgid ""
20119 " lvresize-free lv percent\n"
20120 "\n"
20121 msgstr ""
20122
20123 # type: =head2
20124 #: ../fish/guestfish-actions.pod:2349
20125 msgid "lvs"
20126 msgstr ""
20127
20128 # type: verbatim
20129 #: ../fish/guestfish-actions.pod:2351
20130 #, no-wrap
20131 msgid ""
20132 " lvs\n"
20133 "\n"
20134 msgstr ""
20135
20136 # type: textblock
20137 #: ../fish/guestfish-actions.pod:2359
20138 msgid "See also L</lvs-full>, L</list-filesystems>."
20139 msgstr ""
20140
20141 # type: =head2
20142 #: ../fish/guestfish-actions.pod:2361
20143 msgid "lvs-full"
20144 msgstr ""
20145
20146 # type: verbatim
20147 #: ../fish/guestfish-actions.pod:2363
20148 #, no-wrap
20149 msgid ""
20150 " lvs-full\n"
20151 "\n"
20152 msgstr ""
20153
20154 # type: =head2
20155 #: ../fish/guestfish-actions.pod:2368
20156 msgid "lvuuid"
20157 msgstr ""
20158
20159 # type: verbatim
20160 #: ../fish/guestfish-actions.pod:2370
20161 #, no-wrap
20162 msgid ""
20163 " lvuuid device\n"
20164 "\n"
20165 msgstr ""
20166
20167 # type: =head2
20168 #: ../fish/guestfish-actions.pod:2374
20169 msgid "lxattrlist"
20170 msgstr ""
20171
20172 # type: verbatim
20173 #: ../fish/guestfish-actions.pod:2376
20174 #, no-wrap
20175 msgid ""
20176 " lxattrlist path 'names ...'\n"
20177 "\n"
20178 msgstr ""
20179
20180 # type: textblock
20181 #: ../fish/guestfish-actions.pod:2392
20182 msgid ""
20183 "This call is intended for programs that want to efficiently list a directory "
20184 "contents without making many round-trips.  See also L</lstatlist> for a "
20185 "similarly efficient call for getting standard stats.  Very long directory "
20186 "listings might cause the protocol message size to be exceeded, causing this "
20187 "call to fail.  The caller must split up such requests into smaller groups of "
20188 "names."
20189 msgstr ""
20190
20191 # type: =head2
20192 #: ../fish/guestfish-actions.pod:2400
20193 msgid "mkdir"
20194 msgstr ""
20195
20196 # type: verbatim
20197 #: ../fish/guestfish-actions.pod:2402
20198 #, no-wrap
20199 msgid ""
20200 " mkdir path\n"
20201 "\n"
20202 msgstr ""
20203
20204 # type: =head2
20205 #: ../fish/guestfish-actions.pod:2406
20206 msgid "mkdir-mode"
20207 msgstr ""
20208
20209 # type: verbatim
20210 #: ../fish/guestfish-actions.pod:2408
20211 #, no-wrap
20212 msgid ""
20213 " mkdir-mode path mode\n"
20214 "\n"
20215 msgstr ""
20216
20217 # type: textblock
20218 #: ../fish/guestfish-actions.pod:2417
20219 msgid "See also L</mkdir>, L</umask>"
20220 msgstr ""
20221
20222 # type: =head2
20223 #: ../fish/guestfish-actions.pod:2419
20224 msgid "mkdir-p"
20225 msgstr ""
20226
20227 # type: verbatim
20228 #: ../fish/guestfish-actions.pod:2421
20229 #, no-wrap
20230 msgid ""
20231 " mkdir-p path\n"
20232 "\n"
20233 msgstr ""
20234
20235 # type: =head2
20236 #: ../fish/guestfish-actions.pod:2426
20237 msgid "mkdtemp"
20238 msgstr ""
20239
20240 # type: verbatim
20241 #: ../fish/guestfish-actions.pod:2428
20242 #, no-wrap
20243 msgid ""
20244 " mkdtemp template\n"
20245 "\n"
20246 msgstr ""
20247
20248 # type: =head2
20249 #: ../fish/guestfish-actions.pod:2449
20250 msgid "mke2fs-J"
20251 msgstr ""
20252
20253 # type: verbatim
20254 #: ../fish/guestfish-actions.pod:2451
20255 #, no-wrap
20256 msgid ""
20257 " mke2fs-J fstype blocksize device journal\n"
20258 "\n"
20259 msgstr ""
20260
20261 # type: textblock
20262 #: ../fish/guestfish-actions.pod:2459
20263 msgid "See also L</mke2journal>."
20264 msgstr ""
20265
20266 # type: =head2
20267 #: ../fish/guestfish-actions.pod:2461
20268 msgid "mke2fs-JL"
20269 msgstr ""
20270
20271 # type: verbatim
20272 #: ../fish/guestfish-actions.pod:2463
20273 #, no-wrap
20274 msgid ""
20275 " mke2fs-JL fstype blocksize device label\n"
20276 "\n"
20277 msgstr ""
20278
20279 # type: textblock
20280 #: ../fish/guestfish-actions.pod:2468
20281 msgid "See also L</mke2journal-L>."
20282 msgstr ""
20283
20284 # type: =head2
20285 #: ../fish/guestfish-actions.pod:2470
20286 msgid "mke2fs-JU"
20287 msgstr ""
20288
20289 # type: verbatim
20290 #: ../fish/guestfish-actions.pod:2472
20291 #, no-wrap
20292 msgid ""
20293 " mke2fs-JU fstype blocksize device uuid\n"
20294 "\n"
20295 msgstr ""
20296
20297 # type: textblock
20298 #: ../fish/guestfish-actions.pod:2477
20299 msgid "See also L</mke2journal-U>."
20300 msgstr ""
20301
20302 # type: =head2
20303 #: ../fish/guestfish-actions.pod:2479
20304 msgid "mke2journal"
20305 msgstr ""
20306
20307 # type: verbatim
20308 #: ../fish/guestfish-actions.pod:2481
20309 #, no-wrap
20310 msgid ""
20311 " mke2journal blocksize device\n"
20312 "\n"
20313 msgstr ""
20314
20315 # type: =head2
20316 #: ../fish/guestfish-actions.pod:2488
20317 msgid "mke2journal-L"
20318 msgstr ""
20319
20320 # type: verbatim
20321 #: ../fish/guestfish-actions.pod:2490
20322 #, no-wrap
20323 msgid ""
20324 " mke2journal-L blocksize label device\n"
20325 "\n"
20326 msgstr ""
20327
20328 # type: =head2
20329 #: ../fish/guestfish-actions.pod:2494
20330 msgid "mke2journal-U"
20331 msgstr ""
20332
20333 # type: verbatim
20334 #: ../fish/guestfish-actions.pod:2496
20335 #, no-wrap
20336 msgid ""
20337 " mke2journal-U blocksize uuid device\n"
20338 "\n"
20339 msgstr ""
20340
20341 # type: =head2
20342 #: ../fish/guestfish-actions.pod:2500
20343 msgid "mkfifo"
20344 msgstr ""
20345
20346 # type: verbatim
20347 #: ../fish/guestfish-actions.pod:2502
20348 #, no-wrap
20349 msgid ""
20350 " mkfifo mode path\n"
20351 "\n"
20352 msgstr ""
20353
20354 # type: textblock
20355 #: ../fish/guestfish-actions.pod:2504
20356 msgid ""
20357 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
20358 "is just a convenient wrapper around L</mknod>."
20359 msgstr ""
20360
20361 # type: =head2
20362 #: ../fish/guestfish-actions.pod:2510
20363 msgid "mkfs"
20364 msgstr ""
20365
20366 # type: verbatim
20367 #: ../fish/guestfish-actions.pod:2512
20368 #, no-wrap
20369 msgid ""
20370 " mkfs fstype device\n"
20371 "\n"
20372 msgstr ""
20373
20374 # type: =head2
20375 #: ../fish/guestfish-actions.pod:2518
20376 msgid "mkfs-b"
20377 msgstr ""
20378
20379 # type: verbatim
20380 #: ../fish/guestfish-actions.pod:2520
20381 #, no-wrap
20382 msgid ""
20383 " mkfs-b fstype blocksize device\n"
20384 "\n"
20385 msgstr ""
20386
20387 # type: textblock
20388 #: ../fish/guestfish-actions.pod:2522
20389 msgid ""
20390 "This call is similar to L</mkfs>, but it allows you to control the block "
20391 "size of the resulting filesystem.  Supported block sizes depend on the "
20392 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
20393 msgstr ""
20394
20395 # type: =head2
20396 #: ../fish/guestfish-actions.pod:2530
20397 msgid "mkmountpoint"
20398 msgstr ""
20399
20400 # type: verbatim
20401 #: ../fish/guestfish-actions.pod:2532
20402 #, no-wrap
20403 msgid ""
20404 " mkmountpoint exemptpath\n"
20405 "\n"
20406 msgstr ""
20407
20408 # type: textblock
20409 #: ../fish/guestfish-actions.pod:2534
20410 msgid ""
20411 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
20412 "to create extra mountpoints before mounting the first filesystem."
20413 msgstr ""
20414
20415 # type: =head2
20416 #: ../fish/guestfish-actions.pod:2558
20417 msgid "mknod"
20418 msgstr ""
20419
20420 # type: verbatim
20421 #: ../fish/guestfish-actions.pod:2560
20422 #, no-wrap
20423 msgid ""
20424 " mknod mode devmajor devminor path\n"
20425 "\n"
20426 msgstr ""
20427
20428 # type: textblock
20429 #: ../fish/guestfish-actions.pod:2570
20430 msgid ""
20431 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
20432 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
20433 "regular file).  These constants are available in the standard Linux header "
20434 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
20435 "wrappers around this command which bitwise OR in the appropriate constant "
20436 "for you."
20437 msgstr ""
20438
20439 # type: =head2
20440 #: ../fish/guestfish-actions.pod:2580
20441 msgid "mknod-b"
20442 msgstr ""
20443
20444 # type: verbatim
20445 #: ../fish/guestfish-actions.pod:2582
20446 #, no-wrap
20447 msgid ""
20448 " mknod-b mode devmajor devminor path\n"
20449 "\n"
20450 msgstr ""
20451
20452 # type: textblock
20453 #: ../fish/guestfish-actions.pod:2584
20454 msgid ""
20455 "This call creates a block device node called C<path> with mode C<mode> and "
20456 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
20457 "wrapper around L</mknod>."
20458 msgstr ""
20459
20460 # type: =head2
20461 #: ../fish/guestfish-actions.pod:2590
20462 msgid "mknod-c"
20463 msgstr ""
20464
20465 # type: verbatim
20466 #: ../fish/guestfish-actions.pod:2592
20467 #, no-wrap
20468 msgid ""
20469 " mknod-c mode devmajor devminor path\n"
20470 "\n"
20471 msgstr ""
20472
20473 # type: textblock
20474 #: ../fish/guestfish-actions.pod:2594
20475 msgid ""
20476 "This call creates a char device node called C<path> with mode C<mode> and "
20477 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
20478 "wrapper around L</mknod>."
20479 msgstr ""
20480
20481 # type: =head2
20482 #: ../fish/guestfish-actions.pod:2600
20483 msgid "mkswap"
20484 msgstr ""
20485
20486 # type: verbatim
20487 #: ../fish/guestfish-actions.pod:2602
20488 #, no-wrap
20489 msgid ""
20490 " mkswap device\n"
20491 "\n"
20492 msgstr ""
20493
20494 # type: =head2
20495 #: ../fish/guestfish-actions.pod:2606
20496 msgid "mkswap-L"
20497 msgstr ""
20498
20499 # type: verbatim
20500 #: ../fish/guestfish-actions.pod:2608
20501 #, no-wrap
20502 msgid ""
20503 " mkswap-L label device\n"
20504 "\n"
20505 msgstr ""
20506
20507 # type: =head2
20508 #: ../fish/guestfish-actions.pod:2616
20509 msgid "mkswap-U"
20510 msgstr ""
20511
20512 # type: verbatim
20513 #: ../fish/guestfish-actions.pod:2618
20514 #, no-wrap
20515 msgid ""
20516 " mkswap-U uuid device\n"
20517 "\n"
20518 msgstr ""
20519
20520 # type: =head2
20521 #: ../fish/guestfish-actions.pod:2622
20522 msgid "mkswap-file"
20523 msgstr ""
20524
20525 # type: verbatim
20526 #: ../fish/guestfish-actions.pod:2624
20527 #, no-wrap
20528 msgid ""
20529 " mkswap-file path\n"
20530 "\n"
20531 msgstr ""
20532
20533 # type: textblock
20534 #: ../fish/guestfish-actions.pod:2628
20535 msgid ""
20536 "This command just writes a swap file signature to an existing file.  To "
20537 "create the file itself, use something like L</fallocate>."
20538 msgstr ""
20539
20540 # type: =head2
20541 #: ../fish/guestfish-actions.pod:2631
20542 msgid "modprobe"
20543 msgstr ""
20544
20545 # type: verbatim
20546 #: ../fish/guestfish-actions.pod:2633
20547 #, no-wrap
20548 msgid ""
20549 " modprobe modulename\n"
20550 "\n"
20551 msgstr ""
20552
20553 # type: =head2
20554 #: ../fish/guestfish-actions.pod:2640
20555 msgid "mount"
20556 msgstr ""
20557
20558 # type: verbatim
20559 #: ../fish/guestfish-actions.pod:2642
20560 #, no-wrap
20561 msgid ""
20562 " mount device mountpoint\n"
20563 "\n"
20564 msgstr ""
20565
20566 # type: textblock
20567 #: ../fish/guestfish-actions.pod:2658
20568 msgid ""
20569 "B<Important note:> When you use this call, the filesystem options C<sync> "
20570 "and C<noatime> are set implicitly.  This was originally done because we "
20571 "thought it would improve reliability, but it turns out that I<-o sync> has a "
20572 "very large negative performance impact and negligible effect on "
20573 "reliability.  Therefore we recommend that you avoid using L</mount> in any "
20574 "code that needs performance, and instead use L</mount-options> (use an empty "
20575 "string for the first parameter if you don't want any options)."
20576 msgstr ""
20577
20578 # type: =head2
20579 #: ../fish/guestfish-actions.pod:2668
20580 msgid "mount-loop"
20581 msgstr ""
20582
20583 # type: verbatim
20584 #: ../fish/guestfish-actions.pod:2670
20585 #, no-wrap
20586 msgid ""
20587 " mount-loop file mountpoint\n"
20588 "\n"
20589 msgstr ""
20590
20591 # type: =head2
20592 #: ../fish/guestfish-actions.pod:2676
20593 msgid "mount-options"
20594 msgstr ""
20595
20596 # type: verbatim
20597 #: ../fish/guestfish-actions.pod:2678
20598 #, no-wrap
20599 msgid ""
20600 " mount-options options device mountpoint\n"
20601 "\n"
20602 msgstr ""
20603
20604 # type: textblock
20605 #: ../fish/guestfish-actions.pod:2680
20606 msgid ""
20607 "This is the same as the L</mount> command, but it allows you to set the "
20608 "mount options as for the L<mount(8)> I<-o> flag."
20609 msgstr ""
20610
20611 # type: =head2
20612 #: ../fish/guestfish-actions.pod:2688
20613 msgid "mount-ro"
20614 msgstr ""
20615
20616 # type: verbatim
20617 #: ../fish/guestfish-actions.pod:2690
20618 #, no-wrap
20619 msgid ""
20620 " mount-ro device mountpoint\n"
20621 "\n"
20622 msgstr ""
20623
20624 # type: textblock
20625 #: ../fish/guestfish-actions.pod:2692
20626 msgid ""
20627 "This is the same as the L</mount> command, but it mounts the filesystem with "
20628 "the read-only (I<-o ro>) flag."
20629 msgstr ""
20630
20631 # type: =head2
20632 #: ../fish/guestfish-actions.pod:2695
20633 msgid "mount-vfs"
20634 msgstr ""
20635
20636 # type: verbatim
20637 #: ../fish/guestfish-actions.pod:2697
20638 #, no-wrap
20639 msgid ""
20640 " mount-vfs options vfstype device mountpoint\n"
20641 "\n"
20642 msgstr ""
20643
20644 # type: textblock
20645 #: ../fish/guestfish-actions.pod:2699
20646 msgid ""
20647 "This is the same as the L</mount> command, but it allows you to set both the "
20648 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
20649 msgstr ""
20650
20651 # type: =head2
20652 #: ../fish/guestfish-actions.pod:2703
20653 msgid "mountpoints"
20654 msgstr ""
20655
20656 # type: verbatim
20657 #: ../fish/guestfish-actions.pod:2705
20658 #, no-wrap
20659 msgid ""
20660 " mountpoints\n"
20661 "\n"
20662 msgstr ""
20663
20664 # type: textblock
20665 #: ../fish/guestfish-actions.pod:2707
20666 msgid ""
20667 "This call is similar to L</mounts>.  That call returns a list of devices.  "
20668 "This one returns a hash table (map) of device name to directory where the "
20669 "device is mounted."
20670 msgstr ""
20671
20672 # type: =head2
20673 #: ../fish/guestfish-actions.pod:2711
20674 msgid "mounts"
20675 msgstr ""
20676
20677 # type: verbatim
20678 #: ../fish/guestfish-actions.pod:2713
20679 #, no-wrap
20680 msgid ""
20681 " mounts\n"
20682 "\n"
20683 msgstr ""
20684
20685 # type: textblock
20686 #: ../fish/guestfish-actions.pod:2720
20687 msgid "See also: L</mountpoints>"
20688 msgstr ""
20689
20690 # type: =head2
20691 #: ../fish/guestfish-actions.pod:2722
20692 msgid "mv"
20693 msgstr ""
20694
20695 # type: verbatim
20696 #: ../fish/guestfish-actions.pod:2724
20697 #, no-wrap
20698 msgid ""
20699 " mv src dest\n"
20700 "\n"
20701 msgstr ""
20702
20703 # type: =head2
20704 #: ../fish/guestfish-actions.pod:2729
20705 msgid "ntfs-3g-probe"
20706 msgstr ""
20707
20708 # type: verbatim
20709 #: ../fish/guestfish-actions.pod:2731
20710 #, no-wrap
20711 msgid ""
20712 " ntfs-3g-probe true|false device\n"
20713 "\n"
20714 msgstr ""
20715
20716 # type: =head2
20717 #: ../fish/guestfish-actions.pod:2745
20718 msgid "ntfsresize"
20719 msgstr ""
20720
20721 # type: verbatim
20722 #: ../fish/guestfish-actions.pod:2747
20723 #, no-wrap
20724 msgid ""
20725 " ntfsresize device\n"
20726 "\n"
20727 msgstr ""
20728
20729 # type: =head2
20730 #: ../fish/guestfish-actions.pod:2753
20731 msgid "ntfsresize-size"
20732 msgstr ""
20733
20734 # type: verbatim
20735 #: ../fish/guestfish-actions.pod:2755
20736 #, no-wrap
20737 msgid ""
20738 " ntfsresize-size device size\n"
20739 "\n"
20740 msgstr ""
20741
20742 # type: textblock
20743 #: ../fish/guestfish-actions.pod:2757
20744 msgid ""
20745 "This command is the same as L</ntfsresize> except that it allows you to "
20746 "specify the new size (in bytes) explicitly."
20747 msgstr ""
20748
20749 # type: =head2
20750 #: ../fish/guestfish-actions.pod:2760
20751 msgid "part-add"
20752 msgstr ""
20753
20754 # type: verbatim
20755 #: ../fish/guestfish-actions.pod:2762
20756 #, no-wrap
20757 msgid ""
20758 " part-add device prlogex startsect endsect\n"
20759 "\n"
20760 msgstr ""
20761
20762 # type: textblock
20763 #: ../fish/guestfish-actions.pod:2764
20764 msgid ""
20765 "This command adds a partition to C<device>.  If there is no partition table "
20766 "on the device, call L</part-init> first."
20767 msgstr ""
20768
20769 # type: textblock
20770 #: ../fish/guestfish-actions.pod:2776
20771 msgid ""
20772 "Creating a partition which covers the whole disk is not so easy.  Use L</"
20773 "part-disk> to do that."
20774 msgstr ""
20775
20776 # type: =head2
20777 #: ../fish/guestfish-actions.pod:2779
20778 msgid "part-del"
20779 msgstr ""
20780
20781 # type: verbatim
20782 #: ../fish/guestfish-actions.pod:2781
20783 #, no-wrap
20784 msgid ""
20785 " part-del device partnum\n"
20786 "\n"
20787 msgstr ""
20788
20789 # type: =head2
20790 #: ../fish/guestfish-actions.pod:2789
20791 msgid "part-disk"
20792 msgstr ""
20793
20794 # type: verbatim
20795 #: ../fish/guestfish-actions.pod:2791
20796 #, no-wrap
20797 msgid ""
20798 " part-disk device parttype\n"
20799 "\n"
20800 msgstr ""
20801
20802 # type: textblock
20803 #: ../fish/guestfish-actions.pod:2793
20804 msgid ""
20805 "This command is simply a combination of L</part-init> followed by L</part-"
20806 "add> to create a single primary partition covering the whole disk."
20807 msgstr ""
20808
20809 # type: textblock
20810 #: ../fish/guestfish-actions.pod:2797
20811 msgid ""
20812 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
20813 "possible values are described in L</part-init>."
20814 msgstr ""
20815
20816 # type: =head2
20817 #: ../fish/guestfish-actions.pod:2803
20818 msgid "part-get-bootable"
20819 msgstr ""
20820
20821 # type: verbatim
20822 #: ../fish/guestfish-actions.pod:2805
20823 #, no-wrap
20824 msgid ""
20825 " part-get-bootable device partnum\n"
20826 "\n"
20827 msgstr ""
20828
20829 # type: textblock
20830 #: ../fish/guestfish-actions.pod:2810
20831 msgid "See also L</part-set-bootable>."
20832 msgstr ""
20833
20834 # type: =head2
20835 #: ../fish/guestfish-actions.pod:2812
20836 msgid "part-get-mbr-id"
20837 msgstr ""
20838
20839 # type: verbatim
20840 #: ../fish/guestfish-actions.pod:2814
20841 #, no-wrap
20842 msgid ""
20843 " part-get-mbr-id device partnum\n"
20844 "\n"
20845 msgstr ""
20846
20847 # type: textblock
20848 #: ../fish/guestfish-actions.pod:2819 ../fish/guestfish-actions.pod:2957
20849 msgid ""
20850 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
20851 "undefined results for other partition table types (see L</part-get-"
20852 "parttype>)."
20853 msgstr ""
20854
20855 # type: =head2
20856 #: ../fish/guestfish-actions.pod:2823
20857 msgid "part-get-parttype"
20858 msgstr ""
20859
20860 # type: verbatim
20861 #: ../fish/guestfish-actions.pod:2825
20862 #, no-wrap
20863 msgid ""
20864 " part-get-parttype device\n"
20865 "\n"
20866 msgstr ""
20867
20868 # type: textblock
20869 #: ../fish/guestfish-actions.pod:2830
20870 msgid ""
20871 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
20872 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
20873 "possible, although unusual.  See L</part-init> for a full list."
20874 msgstr ""
20875
20876 # type: =head2
20877 #: ../fish/guestfish-actions.pod:2835
20878 msgid "part-init"
20879 msgstr ""
20880
20881 # type: verbatim
20882 #: ../fish/guestfish-actions.pod:2837
20883 #, no-wrap
20884 msgid ""
20885 " part-init device parttype\n"
20886 "\n"
20887 msgstr ""
20888
20889 # type: textblock
20890 #: ../fish/guestfish-actions.pod:2843
20891 msgid ""
20892 "Initially there are no partitions.  Following this, you should call L</part-"
20893 "add> for each partition required."
20894 msgstr ""
20895
20896 # type: =head2
20897 #: ../fish/guestfish-actions.pod:2906
20898 msgid "part-list"
20899 msgstr ""
20900
20901 # type: verbatim
20902 #: ../fish/guestfish-actions.pod:2908
20903 #, no-wrap
20904 msgid ""
20905 " part-list device\n"
20906 "\n"
20907 msgstr ""
20908
20909 # type: textblock
20910 #: ../fish/guestfish-actions.pod:2923
20911 msgid ""
20912 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
20913 "the device's sector size, see L</blockdev-getss>."
20914 msgstr ""
20915
20916 # type: =head2
20917 #: ../fish/guestfish-actions.pod:2936
20918 msgid "part-set-bootable"
20919 msgstr ""
20920
20921 # type: verbatim
20922 #: ../fish/guestfish-actions.pod:2938
20923 #, no-wrap
20924 msgid ""
20925 " part-set-bootable device partnum true|false\n"
20926 "\n"
20927 msgstr ""
20928
20929 # type: =head2
20930 #: ../fish/guestfish-actions.pod:2947
20931 msgid "part-set-mbr-id"
20932 msgstr ""
20933
20934 # type: verbatim
20935 #: ../fish/guestfish-actions.pod:2949
20936 #, no-wrap
20937 msgid ""
20938 " part-set-mbr-id device partnum idbyte\n"
20939 "\n"
20940 msgstr ""
20941
20942 # type: =head2
20943 #: ../fish/guestfish-actions.pod:2961
20944 msgid "part-set-name"
20945 msgstr ""
20946
20947 # type: verbatim
20948 #: ../fish/guestfish-actions.pod:2963
20949 #, no-wrap
20950 msgid ""
20951 " part-set-name device partnum name\n"
20952 "\n"
20953 msgstr ""
20954
20955 # type: =head2
20956 #: ../fish/guestfish-actions.pod:2971
20957 msgid "part-to-dev"
20958 msgstr ""
20959
20960 # type: verbatim
20961 #: ../fish/guestfish-actions.pod:2973
20962 #, no-wrap
20963 msgid ""
20964 " part-to-dev partition\n"
20965 "\n"
20966 msgstr ""
20967
20968 # type: textblock
20969 #: ../fish/guestfish-actions.pod:2979
20970 msgid ""
20971 "The named partition must exist, for example as a string returned from L</"
20972 "list-partitions>."
20973 msgstr ""
20974
20975 # type: =head2
20976 #: ../fish/guestfish-actions.pod:2982
20977 msgid "ping-daemon"
20978 msgstr ""
20979
20980 # type: verbatim
20981 #: ../fish/guestfish-actions.pod:2984
20982 #, no-wrap
20983 msgid ""
20984 " ping-daemon\n"
20985 "\n"
20986 msgstr ""
20987
20988 # type: =head2
20989 #: ../fish/guestfish-actions.pod:2991
20990 msgid "pread"
20991 msgstr ""
20992
20993 # type: verbatim
20994 #: ../fish/guestfish-actions.pod:2993
20995 #, no-wrap
20996 msgid ""
20997 " pread path count offset\n"
20998 "\n"
20999 msgstr ""
21000
21001 # type: textblock
21002 #: ../fish/guestfish-actions.pod:3001
21003 msgid "See also L</pwrite>, L</pread-device>."
21004 msgstr ""
21005
21006 # type: =head2
21007 #: ../fish/guestfish-actions.pod:3006
21008 msgid "pread-device"
21009 msgstr ""
21010
21011 # type: verbatim
21012 #: ../fish/guestfish-actions.pod:3008
21013 #, no-wrap
21014 msgid ""
21015 " pread-device device count offset\n"
21016 "\n"
21017 msgstr ""
21018
21019 # type: textblock
21020 #: ../fish/guestfish-actions.pod:3016
21021 msgid "See also L</pread>."
21022 msgstr ""
21023
21024 # type: =head2
21025 #: ../fish/guestfish-actions.pod:3021
21026 msgid "pvcreate"
21027 msgstr ""
21028
21029 # type: verbatim
21030 #: ../fish/guestfish-actions.pod:3023
21031 #, no-wrap
21032 msgid ""
21033 " pvcreate device\n"
21034 "\n"
21035 msgstr ""
21036
21037 # type: =head2
21038 #: ../fish/guestfish-actions.pod:3029
21039 msgid "pvremove"
21040 msgstr ""
21041
21042 # type: verbatim
21043 #: ../fish/guestfish-actions.pod:3031
21044 #, no-wrap
21045 msgid ""
21046 " pvremove device\n"
21047 "\n"
21048 msgstr ""
21049
21050 # type: =head2
21051 #: ../fish/guestfish-actions.pod:3040
21052 msgid "pvresize"
21053 msgstr ""
21054
21055 # type: verbatim
21056 #: ../fish/guestfish-actions.pod:3042
21057 #, no-wrap
21058 msgid ""
21059 " pvresize device\n"
21060 "\n"
21061 msgstr ""
21062
21063 # type: =head2
21064 #: ../fish/guestfish-actions.pod:3047
21065 msgid "pvresize-size"
21066 msgstr ""
21067
21068 # type: verbatim
21069 #: ../fish/guestfish-actions.pod:3049
21070 #, no-wrap
21071 msgid ""
21072 " pvresize-size device size\n"
21073 "\n"
21074 msgstr ""
21075
21076 # type: textblock
21077 #: ../fish/guestfish-actions.pod:3051
21078 msgid ""
21079 "This command is the same as L</pvresize> except that it allows you to "
21080 "specify the new size (in bytes) explicitly."
21081 msgstr ""
21082
21083 # type: =head2
21084 #: ../fish/guestfish-actions.pod:3054
21085 msgid "pvs"
21086 msgstr ""
21087
21088 # type: verbatim
21089 #: ../fish/guestfish-actions.pod:3056
21090 #, no-wrap
21091 msgid ""
21092 " pvs\n"
21093 "\n"
21094 msgstr ""
21095
21096 # type: textblock
21097 #: ../fish/guestfish-actions.pod:3064
21098 msgid "See also L</pvs-full>."
21099 msgstr ""
21100
21101 # type: =head2
21102 #: ../fish/guestfish-actions.pod:3066
21103 msgid "pvs-full"
21104 msgstr ""
21105
21106 # type: verbatim
21107 #: ../fish/guestfish-actions.pod:3068
21108 #, no-wrap
21109 msgid ""
21110 " pvs-full\n"
21111 "\n"
21112 msgstr ""
21113
21114 # type: =head2
21115 #: ../fish/guestfish-actions.pod:3073
21116 msgid "pvuuid"
21117 msgstr ""
21118
21119 # type: verbatim
21120 #: ../fish/guestfish-actions.pod:3075
21121 #, no-wrap
21122 msgid ""
21123 " pvuuid device\n"
21124 "\n"
21125 msgstr ""
21126
21127 # type: =head2
21128 #: ../fish/guestfish-actions.pod:3079
21129 msgid "pwrite"
21130 msgstr ""
21131
21132 # type: verbatim
21133 #: ../fish/guestfish-actions.pod:3081
21134 #, no-wrap
21135 msgid ""
21136 " pwrite path content offset\n"
21137 "\n"
21138 msgstr ""
21139
21140 # type: textblock
21141 #: ../fish/guestfish-actions.pod:3092
21142 msgid "See also L</pread>, L</pwrite-device>."
21143 msgstr ""
21144
21145 # type: =head2
21146 #: ../fish/guestfish-actions.pod:3097
21147 msgid "pwrite-device"
21148 msgstr ""
21149
21150 # type: verbatim
21151 #: ../fish/guestfish-actions.pod:3099
21152 #, no-wrap
21153 msgid ""
21154 " pwrite-device device content offset\n"
21155 "\n"
21156 msgstr ""
21157
21158 # type: textblock
21159 #: ../fish/guestfish-actions.pod:3109
21160 msgid "See also L</pwrite>."
21161 msgstr ""
21162
21163 # type: =head2
21164 #: ../fish/guestfish-actions.pod:3114
21165 msgid "read-file"
21166 msgstr ""
21167
21168 # type: verbatim
21169 #: ../fish/guestfish-actions.pod:3116
21170 #, no-wrap
21171 msgid ""
21172 " read-file path\n"
21173 "\n"
21174 msgstr ""
21175
21176 # type: textblock
21177 #: ../fish/guestfish-actions.pod:3121
21178 msgid ""
21179 "Unlike L</cat>, this function can correctly handle files that contain "
21180 "embedded ASCII NUL characters.  However unlike L</download>, this function "
21181 "is limited in the total size of file that can be handled."
21182 msgstr ""
21183
21184 # type: =head2
21185 #: ../fish/guestfish-actions.pod:3129
21186 msgid "read-lines"
21187 msgstr ""
21188
21189 # type: verbatim
21190 #: ../fish/guestfish-actions.pod:3131
21191 #, no-wrap
21192 msgid ""
21193 " read-lines path\n"
21194 "\n"
21195 msgstr ""
21196
21197 # type: textblock
21198 #: ../fish/guestfish-actions.pod:3138
21199 msgid ""
21200 "Note that this function cannot correctly handle binary files (specifically, "
21201 "files containing C<\\0> character which is treated as end of line).  For "
21202 "those you need to use the L</read-file> function which has a more complex "
21203 "interface."
21204 msgstr ""
21205
21206 # type: =head2
21207 #: ../fish/guestfish-actions.pod:3143
21208 msgid "readdir"
21209 msgstr ""
21210
21211 # type: verbatim
21212 #: ../fish/guestfish-actions.pod:3145
21213 #, no-wrap
21214 msgid ""
21215 " readdir dir\n"
21216 "\n"
21217 msgstr ""
21218
21219 # type: textblock
21220 #: ../fish/guestfish-actions.pod:3197
21221 msgid ""
21222 "This function is primarily intended for use by programs.  To get a simple "
21223 "list of names, use L</ls>.  To get a printable directory for human "
21224 "consumption, use L</ll>."
21225 msgstr ""
21226
21227 # type: =head2
21228 #: ../fish/guestfish-actions.pod:3201
21229 msgid "readlink"
21230 msgstr ""
21231
21232 # type: verbatim
21233 #: ../fish/guestfish-actions.pod:3203
21234 #, no-wrap
21235 msgid ""
21236 " readlink path\n"
21237 "\n"
21238 msgstr ""
21239
21240 # type: =head2
21241 #: ../fish/guestfish-actions.pod:3207
21242 msgid "readlinklist"
21243 msgstr ""
21244
21245 # type: verbatim
21246 #: ../fish/guestfish-actions.pod:3209
21247 #, no-wrap
21248 msgid ""
21249 " readlinklist path 'names ...'\n"
21250 "\n"
21251 msgstr ""
21252
21253 # type: =head2
21254 #: ../fish/guestfish-actions.pod:3233
21255 msgid "realpath"
21256 msgstr ""
21257
21258 # type: verbatim
21259 #: ../fish/guestfish-actions.pod:3235
21260 #, no-wrap
21261 msgid ""
21262 " realpath path\n"
21263 "\n"
21264 msgstr ""
21265
21266 # type: =head2
21267 #: ../fish/guestfish-actions.pod:3240
21268 msgid "removexattr"
21269 msgstr ""
21270
21271 # type: verbatim
21272 #: ../fish/guestfish-actions.pod:3242
21273 #, no-wrap
21274 msgid ""
21275 " removexattr xattr path\n"
21276 "\n"
21277 msgstr ""
21278
21279 # type: textblock
21280 #: ../fish/guestfish-actions.pod:3247
21281 msgid "See also: L</lremovexattr>, L<attr(5)>."
21282 msgstr ""
21283
21284 # type: =head2
21285 #: ../fish/guestfish-actions.pod:3249
21286 msgid "resize2fs"
21287 msgstr ""
21288
21289 # type: verbatim
21290 #: ../fish/guestfish-actions.pod:3251
21291 #, no-wrap
21292 msgid ""
21293 " resize2fs device\n"
21294 "\n"
21295 msgstr ""
21296
21297 # type: textblock
21298 #: ../fish/guestfish-actions.pod:3256
21299 msgid ""
21300 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
21301 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
21302 "gives an error about this and sometimes not.  In any case, it is always safe "
21303 "to call L</e2fsck-f> before calling this function."
21304 msgstr ""
21305
21306 # type: =head2
21307 #: ../fish/guestfish-actions.pod:3262
21308 msgid "resize2fs-size"
21309 msgstr ""
21310
21311 # type: verbatim
21312 #: ../fish/guestfish-actions.pod:3264
21313 #, no-wrap
21314 msgid ""
21315 " resize2fs-size device size\n"
21316 "\n"
21317 msgstr ""
21318
21319 # type: textblock
21320 #: ../fish/guestfish-actions.pod:3266
21321 msgid ""
21322 "This command is the same as L</resize2fs> except that it allows you to "
21323 "specify the new size (in bytes) explicitly."
21324 msgstr ""
21325
21326 # type: =head2
21327 #: ../fish/guestfish-actions.pod:3269
21328 msgid "rm"
21329 msgstr ""
21330
21331 # type: verbatim
21332 #: ../fish/guestfish-actions.pod:3271
21333 #, no-wrap
21334 msgid ""
21335 " rm path\n"
21336 "\n"
21337 msgstr ""
21338
21339 # type: =head2
21340 #: ../fish/guestfish-actions.pod:3275
21341 msgid "rm-rf"
21342 msgstr ""
21343
21344 # type: verbatim
21345 #: ../fish/guestfish-actions.pod:3277
21346 #, no-wrap
21347 msgid ""
21348 " rm-rf path\n"
21349 "\n"
21350 msgstr ""
21351
21352 # type: =head2
21353 #: ../fish/guestfish-actions.pod:3283
21354 msgid "rmdir"
21355 msgstr ""
21356
21357 # type: verbatim
21358 #: ../fish/guestfish-actions.pod:3285
21359 #, no-wrap
21360 msgid ""
21361 " rmdir path\n"
21362 "\n"
21363 msgstr ""
21364
21365 # type: =head2
21366 #: ../fish/guestfish-actions.pod:3289
21367 msgid "rmmountpoint"
21368 msgstr ""
21369
21370 # type: verbatim
21371 #: ../fish/guestfish-actions.pod:3291
21372 #, no-wrap
21373 msgid ""
21374 " rmmountpoint exemptpath\n"
21375 "\n"
21376 msgstr ""
21377
21378 # type: textblock
21379 #: ../fish/guestfish-actions.pod:3293
21380 msgid ""
21381 "This calls removes a mountpoint that was previously created with L</"
21382 "mkmountpoint>.  See L</mkmountpoint> for full details."
21383 msgstr ""
21384
21385 # type: =head2
21386 #: ../fish/guestfish-actions.pod:3297
21387 msgid "scrub-device"
21388 msgstr ""
21389
21390 # type: verbatim
21391 #: ../fish/guestfish-actions.pod:3299
21392 #, no-wrap
21393 msgid ""
21394 " scrub-device device\n"
21395 "\n"
21396 msgstr ""
21397
21398 # type: =head2
21399 #: ../fish/guestfish-actions.pod:3310
21400 msgid "scrub-file"
21401 msgstr ""
21402
21403 # type: verbatim
21404 #: ../fish/guestfish-actions.pod:3312
21405 #, no-wrap
21406 msgid ""
21407 " scrub-file file\n"
21408 "\n"
21409 msgstr ""
21410
21411 # type: =head2
21412 #: ../fish/guestfish-actions.pod:3322
21413 msgid "scrub-freespace"
21414 msgstr ""
21415
21416 # type: verbatim
21417 #: ../fish/guestfish-actions.pod:3324
21418 #, no-wrap
21419 msgid ""
21420 " scrub-freespace dir\n"
21421 "\n"
21422 msgstr ""
21423
21424 # type: textblock
21425 #: ../fish/guestfish-actions.pod:3326
21426 msgid ""
21427 "This command creates the directory C<dir> and then fills it with files until "
21428 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
21429 "deletes them.  The intention is to scrub any free space on the partition "
21430 "containing C<dir>."
21431 msgstr ""
21432
21433 # type: =head2
21434 #: ../fish/guestfish-actions.pod:3335
21435 msgid "set-append"
21436 msgstr ""
21437
21438 # type: =head2
21439 #: ../fish/guestfish-actions.pod:3337
21440 msgid "append"
21441 msgstr ""
21442
21443 # type: verbatim
21444 #: ../fish/guestfish-actions.pod:3339
21445 #, no-wrap
21446 msgid ""
21447 " set-append append\n"
21448 "\n"
21449 msgstr ""
21450
21451 # type: =head2
21452 #: ../fish/guestfish-actions.pod:3350
21453 msgid "set-autosync"
21454 msgstr ""
21455
21456 # type: =head2
21457 #: ../fish/guestfish-actions.pod:3352
21458 msgid "autosync"
21459 msgstr ""
21460
21461 # type: verbatim
21462 #: ../fish/guestfish-actions.pod:3354
21463 #, no-wrap
21464 msgid ""
21465 " set-autosync true|false\n"
21466 "\n"
21467 msgstr ""
21468
21469 # type: textblock
21470 #: ../fish/guestfish-actions.pod:3356
21471 msgid ""
21472 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
21473 "effort attempt to run L</umount-all> followed by L</sync> when the handle is "
21474 "closed (also if the program exits without closing handles)."
21475 msgstr ""
21476
21477 # type: =head2
21478 #: ../fish/guestfish-actions.pod:3364
21479 msgid "set-direct"
21480 msgstr ""
21481
21482 # type: =head2
21483 #: ../fish/guestfish-actions.pod:3366
21484 msgid "direct"
21485 msgstr ""
21486
21487 # type: verbatim
21488 #: ../fish/guestfish-actions.pod:3368
21489 #, no-wrap
21490 msgid ""
21491 " set-direct true|false\n"
21492 "\n"
21493 msgstr ""
21494
21495 # type: textblock
21496 #: ../fish/guestfish-actions.pod:3374
21497 msgid ""
21498 "One consequence of this is that log messages aren't caught by the library "
21499 "and handled by L</set-log-message-callback>, but go straight to stdout."
21500 msgstr ""
21501
21502 # type: =head2
21503 #: ../fish/guestfish-actions.pod:3383
21504 msgid "set-e2label"
21505 msgstr ""
21506
21507 # type: verbatim
21508 #: ../fish/guestfish-actions.pod:3385
21509 #, no-wrap
21510 msgid ""
21511 " set-e2label device label\n"
21512 "\n"
21513 msgstr ""
21514
21515 # type: textblock
21516 #: ../fish/guestfish-actions.pod:3391
21517 msgid ""
21518 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
21519 "label on a filesystem."
21520 msgstr ""
21521
21522 # type: =head2
21523 #: ../fish/guestfish-actions.pod:3394
21524 msgid "set-e2uuid"
21525 msgstr ""
21526
21527 # type: verbatim
21528 #: ../fish/guestfish-actions.pod:3396
21529 #, no-wrap
21530 msgid ""
21531 " set-e2uuid device uuid\n"
21532 "\n"
21533 msgstr ""
21534
21535 # type: textblock
21536 #: ../fish/guestfish-actions.pod:3403
21537 msgid ""
21538 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
21539 "UUID of a filesystem."
21540 msgstr ""
21541
21542 # type: =head2
21543 #: ../fish/guestfish-actions.pod:3406
21544 msgid "set-memsize"
21545 msgstr ""
21546
21547 # type: =head2
21548 #: ../fish/guestfish-actions.pod:3408
21549 msgid "memsize"
21550 msgstr ""
21551
21552 # type: verbatim
21553 #: ../fish/guestfish-actions.pod:3410
21554 #, no-wrap
21555 msgid ""
21556 " set-memsize memsize\n"
21557 "\n"
21558 msgstr ""
21559
21560 # type: textblock
21561 #: ../fish/guestfish-actions.pod:3412
21562 msgid ""
21563 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
21564 "This only has any effect if called before L</launch>."
21565 msgstr ""
21566
21567 # type: =head2
21568 #: ../fish/guestfish-actions.pod:3423
21569 msgid "set-network"
21570 msgstr ""
21571
21572 # type: =head2
21573 #: ../fish/guestfish-actions.pod:3425
21574 msgid "network"
21575 msgstr ""
21576
21577 # type: verbatim
21578 #: ../fish/guestfish-actions.pod:3427
21579 #, no-wrap
21580 msgid ""
21581 " set-network true|false\n"
21582 "\n"
21583 msgstr ""
21584
21585 # type: textblock
21586 #: ../fish/guestfish-actions.pod:3435
21587 msgid ""
21588 "You must call this before calling L</launch>, otherwise it has no effect."
21589 msgstr ""
21590
21591 # type: =head2
21592 #: ../fish/guestfish-actions.pod:3438
21593 msgid "set-path"
21594 msgstr ""
21595
21596 # type: =head2
21597 #: ../fish/guestfish-actions.pod:3440
21598 msgid "path"
21599 msgstr ""
21600
21601 # type: verbatim
21602 #: ../fish/guestfish-actions.pod:3442
21603 #, no-wrap
21604 msgid ""
21605 " set-path searchpath\n"
21606 "\n"
21607 msgstr ""
21608
21609 # type: =head2
21610 #: ../fish/guestfish-actions.pod:3451
21611 msgid "set-qemu"
21612 msgstr ""
21613
21614 # type: =head2
21615 #: ../fish/guestfish-actions.pod:3453
21616 msgid "qemu"
21617 msgstr ""
21618
21619 # type: verbatim
21620 #: ../fish/guestfish-actions.pod:3455
21621 #, no-wrap
21622 msgid ""
21623 " set-qemu qemu\n"
21624 "\n"
21625 msgstr ""
21626
21627 # type: =head2
21628 #: ../fish/guestfish-actions.pod:3475
21629 msgid "set-recovery-proc"
21630 msgstr ""
21631
21632 # type: =head2
21633 #: ../fish/guestfish-actions.pod:3477
21634 msgid "recovery-proc"
21635 msgstr ""
21636
21637 # type: verbatim
21638 #: ../fish/guestfish-actions.pod:3479
21639 #, no-wrap
21640 msgid ""
21641 " set-recovery-proc true|false\n"
21642 "\n"
21643 msgstr ""
21644
21645 # type: textblock
21646 #: ../fish/guestfish-actions.pod:3481
21647 msgid ""
21648 "If this is called with the parameter C<false> then L</launch> does not "
21649 "create a recovery process.  The purpose of the recovery process is to stop "
21650 "runaway qemu processes in the case where the main program aborts abruptly."
21651 msgstr ""
21652
21653 # type: textblock
21654 #: ../fish/guestfish-actions.pod:3486
21655 msgid ""
21656 "This only has any effect if called before L</launch>, and the default is "
21657 "true."
21658 msgstr ""
21659
21660 # type: =head2
21661 #: ../fish/guestfish-actions.pod:3495
21662 msgid "set-selinux"
21663 msgstr ""
21664
21665 # type: =head2
21666 #: ../fish/guestfish-actions.pod:3497
21667 msgid "selinux"
21668 msgstr ""
21669
21670 # type: verbatim
21671 #: ../fish/guestfish-actions.pod:3499
21672 #, no-wrap
21673 msgid ""
21674 " set-selinux true|false\n"
21675 "\n"
21676 msgstr ""
21677
21678 # type: =head2
21679 #: ../fish/guestfish-actions.pod:3510
21680 msgid "set-trace"
21681 msgstr ""
21682
21683 # type: =head2
21684 #: ../fish/guestfish-actions.pod:3512
21685 msgid "trace"
21686 msgstr ""
21687
21688 # type: verbatim
21689 #: ../fish/guestfish-actions.pod:3514
21690 #, no-wrap
21691 msgid ""
21692 " set-trace true|false\n"
21693 "\n"
21694 msgstr ""
21695
21696 # type: =head2
21697 #: ../fish/guestfish-actions.pod:3530
21698 msgid "set-verbose"
21699 msgstr ""
21700
21701 # type: =head2
21702 #: ../fish/guestfish-actions.pod:3532
21703 msgid "verbose"
21704 msgstr ""
21705
21706 # type: verbatim
21707 #: ../fish/guestfish-actions.pod:3534
21708 #, no-wrap
21709 msgid ""
21710 " set-verbose true|false\n"
21711 "\n"
21712 msgstr ""
21713
21714 # type: =head2
21715 #: ../fish/guestfish-actions.pod:3541
21716 msgid "setcon"
21717 msgstr ""
21718
21719 # type: verbatim
21720 #: ../fish/guestfish-actions.pod:3543
21721 #, no-wrap
21722 msgid ""
21723 " setcon context\n"
21724 "\n"
21725 msgstr ""
21726
21727 # type: =head2
21728 #: ../fish/guestfish-actions.pod:3550
21729 msgid "setxattr"
21730 msgstr ""
21731
21732 # type: verbatim
21733 #: ../fish/guestfish-actions.pod:3552
21734 #, no-wrap
21735 msgid ""
21736 " setxattr xattr val vallen path\n"
21737 "\n"
21738 msgstr ""
21739
21740 # type: textblock
21741 #: ../fish/guestfish-actions.pod:3558
21742 msgid "See also: L</lsetxattr>, L<attr(5)>."
21743 msgstr ""
21744
21745 # type: =head2
21746 #: ../fish/guestfish-actions.pod:3560
21747 msgid "sfdisk"
21748 msgstr ""
21749
21750 # type: verbatim
21751 #: ../fish/guestfish-actions.pod:3562
21752 #, no-wrap
21753 msgid ""
21754 " sfdisk device cyls heads sectors 'lines ...'\n"
21755 "\n"
21756 msgstr ""
21757
21758 # type: textblock
21759 #: ../fish/guestfish-actions.pod:3584
21760 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
21761 msgstr ""
21762
21763 # type: =head2
21764 #: ../fish/guestfish-actions.pod:3590
21765 msgid "sfdiskM"
21766 msgstr ""
21767
21768 # type: verbatim
21769 #: ../fish/guestfish-actions.pod:3592
21770 #, no-wrap
21771 msgid ""
21772 " sfdiskM device 'lines ...'\n"
21773 "\n"
21774 msgstr ""
21775
21776 # type: textblock
21777 #: ../fish/guestfish-actions.pod:3594
21778 msgid ""
21779 "This is a simplified interface to the L</sfdisk> command, where partition "
21780 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
21781 "you don't need to specify the cyls, heads and sectors parameters which were "
21782 "rarely if ever used anyway."
21783 msgstr ""
21784
21785 # type: textblock
21786 #: ../fish/guestfish-actions.pod:3600
21787 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
21788 msgstr ""
21789
21790 # type: =head2
21791 #: ../fish/guestfish-actions.pod:3606
21792 msgid "sfdisk-N"
21793 msgstr ""
21794
21795 # type: verbatim
21796 #: ../fish/guestfish-actions.pod:3608
21797 #, no-wrap
21798 msgid ""
21799 " sfdisk-N device partnum cyls heads sectors line\n"
21800 "\n"
21801 msgstr ""
21802
21803 # type: textblock
21804 #: ../fish/guestfish-actions.pod:3613
21805 msgid ""
21806 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
21807 "cyls/heads/sectors parameters."
21808 msgstr ""
21809
21810 # type: textblock
21811 #: ../fish/guestfish-actions.pod:3616
21812 msgid "See also: L</part-add>"
21813 msgstr ""
21814
21815 # type: =head2
21816 #: ../fish/guestfish-actions.pod:3621
21817 msgid "sfdisk-disk-geometry"
21818 msgstr ""
21819
21820 # type: verbatim
21821 #: ../fish/guestfish-actions.pod:3623
21822 #, no-wrap
21823 msgid ""
21824 " sfdisk-disk-geometry device\n"
21825 "\n"
21826 msgstr ""
21827
21828 # type: textblock
21829 #: ../fish/guestfish-actions.pod:3625
21830 msgid ""
21831 "This displays the disk geometry of C<device> read from the partition table.  "
21832 "Especially in the case where the underlying block device has been resized, "
21833 "this can be different from the kernel's idea of the geometry (see L</sfdisk-"
21834 "kernel-geometry>)."
21835 msgstr ""
21836
21837 # type: =head2
21838 #: ../fish/guestfish-actions.pod:3633
21839 msgid "sfdisk-kernel-geometry"
21840 msgstr ""
21841
21842 # type: verbatim
21843 #: ../fish/guestfish-actions.pod:3635
21844 #, no-wrap
21845 msgid ""
21846 " sfdisk-kernel-geometry device\n"
21847 "\n"
21848 msgstr ""
21849
21850 # type: =head2
21851 #: ../fish/guestfish-actions.pod:3642
21852 msgid "sfdisk-l"
21853 msgstr ""
21854
21855 # type: verbatim
21856 #: ../fish/guestfish-actions.pod:3644
21857 #, no-wrap
21858 msgid ""
21859 " sfdisk-l device\n"
21860 "\n"
21861 msgstr ""
21862
21863 # type: textblock
21864 #: ../fish/guestfish-actions.pod:3650
21865 msgid "See also: L</part-list>"
21866 msgstr ""
21867
21868 # type: =head2
21869 #: ../fish/guestfish-actions.pod:3652
21870 msgid "sh"
21871 msgstr ""
21872
21873 # type: verbatim
21874 #: ../fish/guestfish-actions.pod:3654
21875 #, no-wrap
21876 msgid ""
21877 " sh command\n"
21878 "\n"
21879 msgstr ""
21880
21881 # type: textblock
21882 #: ../fish/guestfish-actions.pod:3659
21883 msgid "This is like L</command>, but passes the command to:"
21884 msgstr ""
21885
21886 # type: textblock
21887 #: ../fish/guestfish-actions.pod:3667
21888 msgid "All the provisos about L</command> apply to this call."
21889 msgstr ""
21890
21891 # type: =head2
21892 #: ../fish/guestfish-actions.pod:3669
21893 msgid "sh-lines"
21894 msgstr ""
21895
21896 # type: verbatim
21897 #: ../fish/guestfish-actions.pod:3671
21898 #, no-wrap
21899 msgid ""
21900 " sh-lines command\n"
21901 "\n"
21902 msgstr ""
21903
21904 # type: textblock
21905 #: ../fish/guestfish-actions.pod:3673
21906 msgid "This is the same as L</sh>, but splits the result into a list of lines."
21907 msgstr ""
21908
21909 # type: textblock
21910 #: ../fish/guestfish-actions.pod:3676
21911 msgid "See also: L</command-lines>"
21912 msgstr ""
21913
21914 # type: =head2
21915 #: ../fish/guestfish-actions.pod:3678
21916 msgid "sleep"
21917 msgstr ""
21918
21919 # type: verbatim
21920 #: ../fish/guestfish-actions.pod:3680
21921 #, no-wrap
21922 msgid ""
21923 " sleep secs\n"
21924 "\n"
21925 msgstr ""
21926
21927 # type: =head2
21928 #: ../fish/guestfish-actions.pod:3684
21929 msgid "stat"
21930 msgstr ""
21931
21932 # type: verbatim
21933 #: ../fish/guestfish-actions.pod:3686
21934 #, no-wrap
21935 msgid ""
21936 " stat path\n"
21937 "\n"
21938 msgstr ""
21939
21940 # type: =head2
21941 #: ../fish/guestfish-actions.pod:3692
21942 msgid "statvfs"
21943 msgstr ""
21944
21945 # type: verbatim
21946 #: ../fish/guestfish-actions.pod:3694
21947 #, no-wrap
21948 msgid ""
21949 " statvfs path\n"
21950 "\n"
21951 msgstr ""
21952
21953 # type: =head2
21954 #: ../fish/guestfish-actions.pod:3702
21955 msgid "strings"
21956 msgstr ""
21957
21958 # type: verbatim
21959 #: ../fish/guestfish-actions.pod:3704
21960 #, no-wrap
21961 msgid ""
21962 " strings path\n"
21963 "\n"
21964 msgstr ""
21965
21966 # type: =head2
21967 #: ../fish/guestfish-actions.pod:3712
21968 msgid "strings-e"
21969 msgstr ""
21970
21971 # type: verbatim
21972 #: ../fish/guestfish-actions.pod:3714
21973 #, no-wrap
21974 msgid ""
21975 " strings-e encoding path\n"
21976 "\n"
21977 msgstr ""
21978
21979 # type: textblock
21980 #: ../fish/guestfish-actions.pod:3716
21981 msgid ""
21982 "This is like the L</strings> command, but allows you to specify the encoding "
21983 "of strings that are looked for in the source file C<path>."
21984 msgstr ""
21985
21986 # type: textblock
21987 #: ../fish/guestfish-actions.pod:3726
21988 msgid ""
21989 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
21990 "ISO-8859-X (this is what L</strings> uses)."
21991 msgstr ""
21992
21993 # type: =head2
21994 #: ../fish/guestfish-actions.pod:3758
21995 msgid "swapoff-device"
21996 msgstr ""
21997
21998 # type: verbatim
21999 #: ../fish/guestfish-actions.pod:3760
22000 #, no-wrap
22001 msgid ""
22002 " swapoff-device device\n"
22003 "\n"
22004 msgstr ""
22005
22006 # type: textblock
22007 #: ../fish/guestfish-actions.pod:3762
22008 msgid ""
22009 "This command disables the libguestfs appliance swap device or partition "
22010 "named C<device>.  See L</swapon-device>."
22011 msgstr ""
22012
22013 # type: =head2
22014 #: ../fish/guestfish-actions.pod:3766
22015 msgid "swapoff-file"
22016 msgstr ""
22017
22018 # type: verbatim
22019 #: ../fish/guestfish-actions.pod:3768
22020 #, no-wrap
22021 msgid ""
22022 " swapoff-file file\n"
22023 "\n"
22024 msgstr ""
22025
22026 # type: =head2
22027 #: ../fish/guestfish-actions.pod:3772
22028 msgid "swapoff-label"
22029 msgstr ""
22030
22031 # type: verbatim
22032 #: ../fish/guestfish-actions.pod:3774
22033 #, no-wrap
22034 msgid ""
22035 " swapoff-label label\n"
22036 "\n"
22037 msgstr ""
22038
22039 # type: =head2
22040 #: ../fish/guestfish-actions.pod:3779
22041 msgid "swapoff-uuid"
22042 msgstr ""
22043
22044 # type: verbatim
22045 #: ../fish/guestfish-actions.pod:3781
22046 #, no-wrap
22047 msgid ""
22048 " swapoff-uuid uuid\n"
22049 "\n"
22050 msgstr ""
22051
22052 # type: =head2
22053 #: ../fish/guestfish-actions.pod:3786
22054 msgid "swapon-device"
22055 msgstr ""
22056
22057 # type: verbatim
22058 #: ../fish/guestfish-actions.pod:3788
22059 #, no-wrap
22060 msgid ""
22061 " swapon-device device\n"
22062 "\n"
22063 msgstr ""
22064
22065 # type: textblock
22066 #: ../fish/guestfish-actions.pod:3790
22067 msgid ""
22068 "This command enables the libguestfs appliance to use the swap device or "
22069 "partition named C<device>.  The increased memory is made available for all "
22070 "commands, for example those run using L</command> or L</sh>."
22071 msgstr ""
22072
22073 # type: =head2
22074 #: ../fish/guestfish-actions.pod:3802
22075 msgid "swapon-file"
22076 msgstr ""
22077
22078 # type: verbatim
22079 #: ../fish/guestfish-actions.pod:3804
22080 #, no-wrap
22081 msgid ""
22082 " swapon-file file\n"
22083 "\n"
22084 msgstr ""
22085
22086 # type: textblock
22087 #: ../fish/guestfish-actions.pod:3806
22088 msgid ""
22089 "This command enables swap to a file.  See L</swapon-device> for other notes."
22090 msgstr ""
22091
22092 # type: =head2
22093 #: ../fish/guestfish-actions.pod:3809
22094 msgid "swapon-label"
22095 msgstr ""
22096
22097 # type: verbatim
22098 #: ../fish/guestfish-actions.pod:3811
22099 #, no-wrap
22100 msgid ""
22101 " swapon-label label\n"
22102 "\n"
22103 msgstr ""
22104
22105 # type: textblock
22106 #: ../fish/guestfish-actions.pod:3813
22107 msgid ""
22108 "This command enables swap to a labeled swap partition.  See L</swapon-"
22109 "device> for other notes."
22110 msgstr ""
22111
22112 # type: =head2
22113 #: ../fish/guestfish-actions.pod:3816
22114 msgid "swapon-uuid"
22115 msgstr ""
22116
22117 # type: verbatim
22118 #: ../fish/guestfish-actions.pod:3818
22119 #, no-wrap
22120 msgid ""
22121 " swapon-uuid uuid\n"
22122 "\n"
22123 msgstr ""
22124
22125 # type: textblock
22126 #: ../fish/guestfish-actions.pod:3820
22127 msgid ""
22128 "This command enables swap to a swap partition with the given UUID.  See L</"
22129 "swapon-device> for other notes."
22130 msgstr ""
22131
22132 # type: =head2
22133 #: ../fish/guestfish-actions.pod:3823
22134 msgid "sync"
22135 msgstr ""
22136
22137 # type: verbatim
22138 #: ../fish/guestfish-actions.pod:3825
22139 #, no-wrap
22140 msgid ""
22141 " sync\n"
22142 "\n"
22143 msgstr ""
22144
22145 # type: =head2
22146 #: ../fish/guestfish-actions.pod:3833
22147 msgid "tail"
22148 msgstr ""
22149
22150 # type: verbatim
22151 #: ../fish/guestfish-actions.pod:3835
22152 #, no-wrap
22153 msgid ""
22154 " tail path\n"
22155 "\n"
22156 msgstr ""
22157
22158 # type: =head2
22159 #: ../fish/guestfish-actions.pod:3843
22160 msgid "tail-n"
22161 msgstr ""
22162
22163 # type: verbatim
22164 #: ../fish/guestfish-actions.pod:3845
22165 #, no-wrap
22166 msgid ""
22167 " tail-n nrlines path\n"
22168 "\n"
22169 msgstr ""
22170
22171 # type: =head2
22172 #: ../fish/guestfish-actions.pod:3858
22173 msgid "tar-in"
22174 msgstr ""
22175
22176 # type: verbatim
22177 #: ../fish/guestfish-actions.pod:3860
22178 #, no-wrap
22179 msgid ""
22180 " tar-in (tarfile|-) directory\n"
22181 "\n"
22182 msgstr ""
22183
22184 # type: textblock
22185 #: ../fish/guestfish-actions.pod:3865
22186 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
22187 msgstr ""
22188
22189 # type: =head2
22190 #: ../fish/guestfish-actions.pod:3870
22191 msgid "tar-out"
22192 msgstr ""
22193
22194 # type: verbatim
22195 #: ../fish/guestfish-actions.pod:3872
22196 #, no-wrap
22197 msgid ""
22198 " tar-out directory (tarfile|-)\n"
22199 "\n"
22200 msgstr ""
22201
22202 # type: textblock
22203 #: ../fish/guestfish-actions.pod:3877
22204 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
22205 msgstr ""
22206
22207 # type: =head2
22208 #: ../fish/guestfish-actions.pod:3882
22209 msgid "tgz-in"
22210 msgstr ""
22211
22212 # type: verbatim
22213 #: ../fish/guestfish-actions.pod:3884
22214 #, no-wrap
22215 msgid ""
22216 " tgz-in (tarball|-) directory\n"
22217 "\n"
22218 msgstr ""
22219
22220 # type: textblock
22221 #: ../fish/guestfish-actions.pod:3889
22222 msgid "To upload an uncompressed tarball, use L</tar-in>."
22223 msgstr ""
22224
22225 # type: =head2
22226 #: ../fish/guestfish-actions.pod:3893
22227 msgid "tgz-out"
22228 msgstr ""
22229
22230 # type: verbatim
22231 #: ../fish/guestfish-actions.pod:3895
22232 #, no-wrap
22233 msgid ""
22234 " tgz-out directory (tarball|-)\n"
22235 "\n"
22236 msgstr ""
22237
22238 # type: textblock
22239 #: ../fish/guestfish-actions.pod:3900
22240 msgid "To download an uncompressed tarball, use L</tar-out>."
22241 msgstr ""
22242
22243 # type: =head2
22244 #: ../fish/guestfish-actions.pod:3904
22245 msgid "touch"
22246 msgstr ""
22247
22248 # type: verbatim
22249 #: ../fish/guestfish-actions.pod:3906
22250 #, no-wrap
22251 msgid ""
22252 " touch path\n"
22253 "\n"
22254 msgstr ""
22255
22256 # type: =head2
22257 #: ../fish/guestfish-actions.pod:3915
22258 msgid "truncate"
22259 msgstr ""
22260
22261 # type: verbatim
22262 #: ../fish/guestfish-actions.pod:3917
22263 #, no-wrap
22264 msgid ""
22265 " truncate path\n"
22266 "\n"
22267 msgstr ""
22268
22269 # type: =head2
22270 #: ../fish/guestfish-actions.pod:3922
22271 msgid "truncate-size"
22272 msgstr ""
22273
22274 # type: verbatim
22275 #: ../fish/guestfish-actions.pod:3924
22276 #, no-wrap
22277 msgid ""
22278 " truncate-size path size\n"
22279 "\n"
22280 msgstr ""
22281
22282 # type: textblock
22283 #: ../fish/guestfish-actions.pod:3929
22284 msgid ""
22285 "If the current file size is less than C<size> then the file is extended to "
22286 "the required size with zero bytes.  This creates a sparse file (ie. disk "
22287 "blocks are not allocated for the file until you write to it).  To create a "
22288 "non-sparse file of zeroes, use L</fallocate64> instead."
22289 msgstr ""
22290
22291 # type: =head2
22292 #: ../fish/guestfish-actions.pod:3935
22293 msgid "tune2fs-l"
22294 msgstr ""
22295
22296 # type: verbatim
22297 #: ../fish/guestfish-actions.pod:3937
22298 #, no-wrap
22299 msgid ""
22300 " tune2fs-l device\n"
22301 "\n"
22302 msgstr ""
22303
22304 # type: =head2
22305 #: ../fish/guestfish-actions.pod:3947
22306 msgid "txz-in"
22307 msgstr ""
22308
22309 # type: verbatim
22310 #: ../fish/guestfish-actions.pod:3949
22311 #, no-wrap
22312 msgid ""
22313 " txz-in (tarball|-) directory\n"
22314 "\n"
22315 msgstr ""
22316
22317 # type: =head2
22318 #: ../fish/guestfish-actions.pod:3956
22319 msgid "txz-out"
22320 msgstr ""
22321
22322 # type: verbatim
22323 #: ../fish/guestfish-actions.pod:3958
22324 #, no-wrap
22325 msgid ""
22326 " txz-out directory (tarball|-)\n"
22327 "\n"
22328 msgstr ""
22329
22330 # type: =head2
22331 #: ../fish/guestfish-actions.pod:3965
22332 msgid "umask"
22333 msgstr ""
22334
22335 # type: verbatim
22336 #: ../fish/guestfish-actions.pod:3967
22337 #, no-wrap
22338 msgid ""
22339 " umask mask\n"
22340 "\n"
22341 msgstr ""
22342
22343 # type: textblock
22344 #: ../fish/guestfish-actions.pod:3981
22345 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
22346 msgstr ""
22347
22348 # type: =head2
22349 #: ../fish/guestfish-actions.pod:3986
22350 msgid "umount"
22351 msgstr ""
22352
22353 # type: =head2
22354 #: ../fish/guestfish-actions.pod:3988
22355 msgid "unmount"
22356 msgstr ""
22357
22358 # type: verbatim
22359 #: ../fish/guestfish-actions.pod:3990
22360 #, no-wrap
22361 msgid ""
22362 " umount pathordevice\n"
22363 "\n"
22364 msgstr ""
22365
22366 # type: =head2
22367 #: ../fish/guestfish-actions.pod:3996
22368 msgid "umount-all"
22369 msgstr ""
22370
22371 # type: =head2
22372 #: ../fish/guestfish-actions.pod:3998
22373 msgid "unmount-all"
22374 msgstr ""
22375
22376 # type: verbatim
22377 #: ../fish/guestfish-actions.pod:4000
22378 #, no-wrap
22379 msgid ""
22380 " umount-all\n"
22381 "\n"
22382 msgstr ""
22383
22384 # type: =head2
22385 #: ../fish/guestfish-actions.pod:4006
22386 msgid "upload"
22387 msgstr ""
22388
22389 # type: verbatim
22390 #: ../fish/guestfish-actions.pod:4008
22391 #, no-wrap
22392 msgid ""
22393 " upload (filename|-) remotefilename\n"
22394 "\n"
22395 msgstr ""
22396
22397 # type: textblock
22398 #: ../fish/guestfish-actions.pod:4015
22399 msgid "See also L</download>."
22400 msgstr ""
22401
22402 # type: =head2
22403 #: ../fish/guestfish-actions.pod:4019
22404 msgid "upload-offset"
22405 msgstr ""
22406
22407 # type: verbatim
22408 #: ../fish/guestfish-actions.pod:4021
22409 #, no-wrap
22410 msgid ""
22411 " upload-offset (filename|-) remotefilename offset\n"
22412 "\n"
22413 msgstr ""
22414
22415 # type: textblock
22416 #: ../fish/guestfish-actions.pod:4033
22417 msgid ""
22418 "Note that there is no limit on the amount of data that can be uploaded with "
22419 "this call, unlike with L</pwrite>, and this call always writes the full "
22420 "amount unless an error occurs."
22421 msgstr ""
22422
22423 # type: textblock
22424 #: ../fish/guestfish-actions.pod:4038
22425 msgid "See also L</upload>, L</pwrite>."
22426 msgstr ""
22427
22428 # type: =head2
22429 #: ../fish/guestfish-actions.pod:4042
22430 msgid "utimens"
22431 msgstr ""
22432
22433 # type: verbatim
22434 #: ../fish/guestfish-actions.pod:4044
22435 #, no-wrap
22436 msgid ""
22437 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
22438 "\n"
22439 msgstr ""
22440
22441 # type: =head2
22442 #: ../fish/guestfish-actions.pod:4063
22443 msgid "version"
22444 msgstr ""
22445
22446 # type: verbatim
22447 #: ../fish/guestfish-actions.pod:4065
22448 #, no-wrap
22449 msgid ""
22450 " version\n"
22451 "\n"
22452 msgstr ""
22453
22454 # type: textblock
22455 #: ../fish/guestfish-actions.pod:4092
22456 msgid ""
22457 "I<Note:> Don't use this call to test for availability of features.  In "
22458 "enterprise distributions we backport features from later versions into "
22459 "earlier versions, making this an unreliable way to test for features.  Use "
22460 "L</available> instead."
22461 msgstr ""
22462
22463 # type: =head2
22464 #: ../fish/guestfish-actions.pod:4098
22465 msgid "vfs-label"
22466 msgstr ""
22467
22468 # type: verbatim
22469 #: ../fish/guestfish-actions.pod:4100
22470 #, no-wrap
22471 msgid ""
22472 " vfs-label device\n"
22473 "\n"
22474 msgstr ""
22475
22476 # type: textblock
22477 #: ../fish/guestfish-actions.pod:4107
22478 msgid "To find a filesystem from the label, use L</findfs-label>."
22479 msgstr ""
22480
22481 # type: =head2
22482 #: ../fish/guestfish-actions.pod:4109
22483 msgid "vfs-type"
22484 msgstr ""
22485
22486 # type: verbatim
22487 #: ../fish/guestfish-actions.pod:4111
22488 #, no-wrap
22489 msgid ""
22490 " vfs-type device\n"
22491 "\n"
22492 msgstr ""
22493
22494 # type: =head2
22495 #: ../fish/guestfish-actions.pod:4121
22496 msgid "vfs-uuid"
22497 msgstr ""
22498
22499 # type: verbatim
22500 #: ../fish/guestfish-actions.pod:4123
22501 #, no-wrap
22502 msgid ""
22503 " vfs-uuid device\n"
22504 "\n"
22505 msgstr ""
22506
22507 # type: textblock
22508 #: ../fish/guestfish-actions.pod:4130
22509 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
22510 msgstr ""
22511
22512 # type: =head2
22513 #: ../fish/guestfish-actions.pod:4132
22514 msgid "vg-activate"
22515 msgstr ""
22516
22517 # type: verbatim
22518 #: ../fish/guestfish-actions.pod:4134
22519 #, no-wrap
22520 msgid ""
22521 " vg-activate true|false 'volgroups ...'\n"
22522 "\n"
22523 msgstr ""
22524
22525 # type: =head2
22526 #: ../fish/guestfish-actions.pod:4147
22527 msgid "vg-activate-all"
22528 msgstr ""
22529
22530 # type: verbatim
22531 #: ../fish/guestfish-actions.pod:4149
22532 #, no-wrap
22533 msgid ""
22534 " vg-activate-all true|false\n"
22535 "\n"
22536 msgstr ""
22537
22538 # type: =head2
22539 #: ../fish/guestfish-actions.pod:4159
22540 msgid "vgcreate"
22541 msgstr ""
22542
22543 # type: verbatim
22544 #: ../fish/guestfish-actions.pod:4161
22545 #, no-wrap
22546 msgid ""
22547 " vgcreate volgroup 'physvols ...'\n"
22548 "\n"
22549 msgstr ""
22550
22551 # type: =head2
22552 #: ../fish/guestfish-actions.pod:4166
22553 msgid "vglvuuids"
22554 msgstr ""
22555
22556 # type: verbatim
22557 #: ../fish/guestfish-actions.pod:4168
22558 #, no-wrap
22559 msgid ""
22560 " vglvuuids vgname\n"
22561 "\n"
22562 msgstr ""
22563
22564 # type: textblock
22565 #: ../fish/guestfish-actions.pod:4173
22566 msgid ""
22567 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
22568 "logical volumes and volume groups."
22569 msgstr ""
22570
22571 # type: textblock
22572 #: ../fish/guestfish-actions.pod:4176
22573 msgid "See also L</vgpvuuids>."
22574 msgstr ""
22575
22576 # type: =head2
22577 #: ../fish/guestfish-actions.pod:4178
22578 msgid "vgpvuuids"
22579 msgstr ""
22580
22581 # type: verbatim
22582 #: ../fish/guestfish-actions.pod:4180
22583 #, no-wrap
22584 msgid ""
22585 " vgpvuuids vgname\n"
22586 "\n"
22587 msgstr ""
22588
22589 # type: textblock
22590 #: ../fish/guestfish-actions.pod:4185
22591 msgid ""
22592 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
22593 "physical volumes and volume groups."
22594 msgstr ""
22595
22596 # type: textblock
22597 #: ../fish/guestfish-actions.pod:4188
22598 msgid "See also L</vglvuuids>."
22599 msgstr ""
22600
22601 # type: =head2
22602 #: ../fish/guestfish-actions.pod:4190
22603 msgid "vgremove"
22604 msgstr ""
22605
22606 # type: verbatim
22607 #: ../fish/guestfish-actions.pod:4192
22608 #, no-wrap
22609 msgid ""
22610 " vgremove vgname\n"
22611 "\n"
22612 msgstr ""
22613
22614 # type: =head2
22615 #: ../fish/guestfish-actions.pod:4199
22616 msgid "vgrename"
22617 msgstr ""
22618
22619 # type: verbatim
22620 #: ../fish/guestfish-actions.pod:4201
22621 #, no-wrap
22622 msgid ""
22623 " vgrename volgroup newvolgroup\n"
22624 "\n"
22625 msgstr ""
22626
22627 # type: =head2
22628 #: ../fish/guestfish-actions.pod:4205
22629 msgid "vgs"
22630 msgstr ""
22631
22632 # type: verbatim
22633 #: ../fish/guestfish-actions.pod:4207
22634 #, no-wrap
22635 msgid ""
22636 " vgs\n"
22637 "\n"
22638 msgstr ""
22639
22640 # type: textblock
22641 #: ../fish/guestfish-actions.pod:4215
22642 msgid "See also L</vgs-full>."
22643 msgstr ""
22644
22645 # type: =head2
22646 #: ../fish/guestfish-actions.pod:4217
22647 msgid "vgs-full"
22648 msgstr ""
22649
22650 # type: verbatim
22651 #: ../fish/guestfish-actions.pod:4219
22652 #, no-wrap
22653 msgid ""
22654 " vgs-full\n"
22655 "\n"
22656 msgstr ""
22657
22658 # type: =head2
22659 #: ../fish/guestfish-actions.pod:4224
22660 msgid "vgscan"
22661 msgstr ""
22662
22663 # type: verbatim
22664 #: ../fish/guestfish-actions.pod:4226
22665 #, no-wrap
22666 msgid ""
22667 " vgscan\n"
22668 "\n"
22669 msgstr ""
22670
22671 # type: =head2
22672 #: ../fish/guestfish-actions.pod:4231
22673 msgid "vguuid"
22674 msgstr ""
22675
22676 # type: verbatim
22677 #: ../fish/guestfish-actions.pod:4233
22678 #, no-wrap
22679 msgid ""
22680 " vguuid vgname\n"
22681 "\n"
22682 msgstr ""
22683
22684 # type: =head2
22685 #: ../fish/guestfish-actions.pod:4237
22686 msgid "wc-c"
22687 msgstr ""
22688
22689 # type: verbatim
22690 #: ../fish/guestfish-actions.pod:4239
22691 #, no-wrap
22692 msgid ""
22693 " wc-c path\n"
22694 "\n"
22695 msgstr ""
22696
22697 # type: =head2
22698 #: ../fish/guestfish-actions.pod:4244
22699 msgid "wc-l"
22700 msgstr ""
22701
22702 # type: verbatim
22703 #: ../fish/guestfish-actions.pod:4246
22704 #, no-wrap
22705 msgid ""
22706 " wc-l path\n"
22707 "\n"
22708 msgstr ""
22709
22710 # type: =head2
22711 #: ../fish/guestfish-actions.pod:4251
22712 msgid "wc-w"
22713 msgstr ""
22714
22715 # type: verbatim
22716 #: ../fish/guestfish-actions.pod:4253
22717 #, no-wrap
22718 msgid ""
22719 " wc-w path\n"
22720 "\n"
22721 msgstr ""
22722
22723 # type: =head2
22724 #: ../fish/guestfish-actions.pod:4258
22725 msgid "write"
22726 msgstr ""
22727
22728 # type: verbatim
22729 #: ../fish/guestfish-actions.pod:4260
22730 #, no-wrap
22731 msgid ""
22732 " write path content\n"
22733 "\n"
22734 msgstr ""
22735
22736 # type: =head2
22737 #: ../fish/guestfish-actions.pod:4268
22738 msgid "write-file"
22739 msgstr ""
22740
22741 # type: verbatim
22742 #: ../fish/guestfish-actions.pod:4270
22743 #, no-wrap
22744 msgid ""
22745 " write-file path content size\n"
22746 "\n"
22747 msgstr ""
22748
22749 # type: =head2
22750 #: ../fish/guestfish-actions.pod:4293
22751 msgid "zegrep"
22752 msgstr ""
22753
22754 # type: verbatim
22755 #: ../fish/guestfish-actions.pod:4295
22756 #, no-wrap
22757 msgid ""
22758 " zegrep regex path\n"
22759 "\n"
22760 msgstr ""
22761
22762 # type: =head2
22763 #: ../fish/guestfish-actions.pod:4303
22764 msgid "zegrepi"
22765 msgstr ""
22766
22767 # type: verbatim
22768 #: ../fish/guestfish-actions.pod:4305
22769 #, no-wrap
22770 msgid ""
22771 " zegrepi regex path\n"
22772 "\n"
22773 msgstr ""
22774
22775 # type: =head2
22776 #: ../fish/guestfish-actions.pod:4313
22777 msgid "zero"
22778 msgstr ""
22779
22780 # type: verbatim
22781 #: ../fish/guestfish-actions.pod:4315
22782 #, no-wrap
22783 msgid ""
22784 " zero device\n"
22785 "\n"
22786 msgstr ""
22787
22788 # type: textblock
22789 #: ../fish/guestfish-actions.pod:4323
22790 msgid "See also: L</zero-device>, L</scrub-device>."
22791 msgstr ""
22792
22793 # type: =head2
22794 #: ../fish/guestfish-actions.pod:4325
22795 msgid "zero-device"
22796 msgstr ""
22797
22798 # type: verbatim
22799 #: ../fish/guestfish-actions.pod:4327
22800 #, no-wrap
22801 msgid ""
22802 " zero-device device\n"
22803 "\n"
22804 msgstr ""
22805
22806 # type: textblock
22807 #: ../fish/guestfish-actions.pod:4329
22808 msgid ""
22809 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
22810 "which just zeroes the first few blocks of a device."
22811 msgstr ""
22812
22813 # type: =head2
22814 #: ../fish/guestfish-actions.pod:4336
22815 msgid "zerofree"
22816 msgstr ""
22817
22818 # type: verbatim
22819 #: ../fish/guestfish-actions.pod:4338
22820 #, no-wrap
22821 msgid ""
22822 " zerofree device\n"
22823 "\n"
22824 msgstr ""
22825
22826 # type: =head2
22827 #: ../fish/guestfish-actions.pod:4351
22828 msgid "zfgrep"
22829 msgstr ""
22830
22831 # type: verbatim
22832 #: ../fish/guestfish-actions.pod:4353
22833 #, no-wrap
22834 msgid ""
22835 " zfgrep pattern path\n"
22836 "\n"
22837 msgstr ""
22838
22839 # type: =head2
22840 #: ../fish/guestfish-actions.pod:4361
22841 msgid "zfgrepi"
22842 msgstr ""
22843
22844 # type: verbatim
22845 #: ../fish/guestfish-actions.pod:4363
22846 #, no-wrap
22847 msgid ""
22848 " zfgrepi pattern path\n"
22849 "\n"
22850 msgstr ""
22851
22852 # type: =head2
22853 #: ../fish/guestfish-actions.pod:4371
22854 msgid "zfile"
22855 msgstr ""
22856
22857 # type: verbatim
22858 #: ../fish/guestfish-actions.pod:4373
22859 #, no-wrap
22860 msgid ""
22861 " zfile meth path\n"
22862 "\n"
22863 msgstr ""
22864
22865 # type: textblock
22866 #: ../fish/guestfish-actions.pod:4380
22867 msgid ""
22868 "Since 1.0.63, use L</file> instead which can now process compressed files."
22869 msgstr ""
22870
22871 # type: =head2
22872 #: ../fish/guestfish-actions.pod:4390
22873 msgid "zgrep"
22874 msgstr ""
22875
22876 # type: verbatim
22877 #: ../fish/guestfish-actions.pod:4392
22878 #, no-wrap
22879 msgid ""
22880 " zgrep regex path\n"
22881 "\n"
22882 msgstr ""
22883
22884 # type: =head2
22885 #: ../fish/guestfish-actions.pod:4400
22886 msgid "zgrepi"
22887 msgstr ""
22888
22889 # type: verbatim
22890 #: ../fish/guestfish-actions.pod:4402
22891 #, no-wrap
22892 msgid ""
22893 " zgrepi regex path\n"
22894 "\n"
22895 msgstr ""
22896
22897 # type: =head2
22898 #: ../fish/guestfish-commands.pod:1
22899 msgid "alloc"
22900 msgstr ""
22901
22902 # type: =head2
22903 #: ../fish/guestfish-commands.pod:3
22904 msgid "allocate"
22905 msgstr ""
22906
22907 # type: verbatim
22908 #: ../fish/guestfish-commands.pod:5
22909 #, no-wrap
22910 msgid ""
22911 " alloc filename size\n"
22912 "\n"
22913 msgstr ""
22914
22915 # type: textblock
22916 #: ../fish/guestfish-commands.pod:7
22917 msgid ""
22918 "This creates an empty (zeroed) file of the given size, and then adds so it "
22919 "can be further examined."
22920 msgstr ""
22921
22922 # type: textblock
22923 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:168
22924 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
22925 msgstr ""
22926
22927 # type: textblock
22928 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:170
22929 msgid "Size can be specified using standard suffixes, eg. C<1M>."
22930 msgstr ""
22931
22932 # type: textblock
22933 #: ../fish/guestfish-commands.pod:14
22934 msgid ""
22935 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
22936 "image, see L</PREPARED DISK IMAGES>."
22937 msgstr ""
22938
22939 # type: =head2
22940 #: ../fish/guestfish-commands.pod:17
22941 msgid "copy-in"
22942 msgstr ""
22943
22944 # type: verbatim
22945 #: ../fish/guestfish-commands.pod:19
22946 #, no-wrap
22947 msgid ""
22948 " copy-in local [local ...] /remotedir\n"
22949 "\n"
22950 msgstr ""
22951
22952 # type: textblock
22953 #: ../fish/guestfish-commands.pod:21
22954 msgid ""
22955 "C<copy-in> copies local files or directories recursively into the disk "
22956 "image, placing them in the directory called C</remotedir> (which must "
22957 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
22958 "other commands as necessary."
22959 msgstr ""
22960
22961 # type: textblock
22962 #: ../fish/guestfish-commands.pod:26
22963 msgid ""
22964 "Multiple local files and directories can be specified, but the last "
22965 "parameter must always be a remote directory.  Wildcards cannot be used."
22966 msgstr ""
22967
22968 # type: =head2
22969 #: ../fish/guestfish-commands.pod:30
22970 msgid "copy-out"
22971 msgstr ""
22972
22973 # type: verbatim
22974 #: ../fish/guestfish-commands.pod:32
22975 #, no-wrap
22976 msgid ""
22977 " copy-out remote [remote ...] localdir\n"
22978 "\n"
22979 msgstr ""
22980
22981 # type: textblock
22982 #: ../fish/guestfish-commands.pod:34
22983 msgid ""
22984 "C<copy-out> copies remote files or directories recursively out of the disk "
22985 "image, placing them on the host disk in a local directory called C<localdir> "
22986 "(which must exist).  This guestfish meta-command turns into a sequence of L</"
22987 "download>, L</tar-out> and other commands as necessary."
22988 msgstr ""
22989
22990 # type: textblock
22991 #: ../fish/guestfish-commands.pod:40
22992 msgid ""
22993 "Multiple remote files and directories can be specified, but the last "
22994 "parameter must always be a local directory.  To download to the current "
22995 "directory, use C<.> as in:"
22996 msgstr ""
22997
22998 # type: verbatim
22999 #: ../fish/guestfish-commands.pod:44
23000 #, no-wrap
23001 msgid ""
23002 " copy-out /home .\n"
23003 "\n"
23004 msgstr ""
23005
23006 # type: textblock
23007 #: ../fish/guestfish-commands.pod:46
23008 msgid ""
23009 "Wildcards cannot be used in the ordinary command, but you can use them with "
23010 "the help of L</glob> like this:"
23011 msgstr ""
23012
23013 # type: verbatim
23014 #: ../fish/guestfish-commands.pod:49
23015 #, no-wrap
23016 msgid ""
23017 " glob copy-out /home/* .\n"
23018 "\n"
23019 msgstr ""
23020
23021 # type: =head2
23022 #: ../fish/guestfish-commands.pod:51
23023 msgid "echo"
23024 msgstr ""
23025
23026 # type: verbatim
23027 #: ../fish/guestfish-commands.pod:53
23028 #, no-wrap
23029 msgid ""
23030 " echo [params ...]\n"
23031 "\n"
23032 msgstr ""
23033
23034 # type: textblock
23035 #: ../fish/guestfish-commands.pod:55
23036 msgid "This echos the parameters to the terminal."
23037 msgstr ""
23038
23039 # type: =head2
23040 #: ../fish/guestfish-commands.pod:57
23041 msgid "edit"
23042 msgstr ""
23043
23044 # type: =head2
23045 #: ../fish/guestfish-commands.pod:59
23046 msgid "vi"
23047 msgstr ""
23048
23049 # type: =head2
23050 #: ../fish/guestfish-commands.pod:61
23051 msgid "emacs"
23052 msgstr ""
23053
23054 # type: verbatim
23055 #: ../fish/guestfish-commands.pod:63
23056 #, no-wrap
23057 msgid ""
23058 " edit filename\n"
23059 "\n"
23060 msgstr ""
23061
23062 # type: textblock
23063 #: ../fish/guestfish-commands.pod:65
23064 msgid ""
23065 "This is used to edit a file.  It downloads the file, edits it locally using "
23066 "your editor, then uploads the result."
23067 msgstr ""
23068
23069 # type: textblock
23070 #: ../fish/guestfish-commands.pod:68
23071 msgid ""
23072 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
23073 "or C<emacs> you will get those corresponding editors."
23074 msgstr ""
23075
23076 # type: =head2
23077 #: ../fish/guestfish-commands.pod:72
23078 msgid "glob"
23079 msgstr ""
23080
23081 # type: verbatim
23082 #: ../fish/guestfish-commands.pod:74
23083 #, no-wrap
23084 msgid ""
23085 " glob command args...\n"
23086 "\n"
23087 msgstr ""
23088
23089 # type: textblock
23090 #: ../fish/guestfish-commands.pod:76
23091 msgid ""
23092 "Expand wildcards in any paths in the args list, and run C<command> "
23093 "repeatedly on each matching path."
23094 msgstr ""
23095
23096 # type: textblock
23097 #: ../fish/guestfish-commands.pod:79
23098 msgid "See L</WILDCARDS AND GLOBBING>."
23099 msgstr ""
23100
23101 # type: =head2
23102 #: ../fish/guestfish-commands.pod:81
23103 msgid "hexedit"
23104 msgstr ""
23105
23106 # type: verbatim
23107 #: ../fish/guestfish-commands.pod:83
23108 #, no-wrap
23109 msgid ""
23110 " hexedit <filename|device>\n"
23111 " hexedit <filename|device> <max>\n"
23112 " hexedit <filename|device> <start> <max>\n"
23113 "\n"
23114 msgstr ""
23115
23116 # type: textblock
23117 #: ../fish/guestfish-commands.pod:87
23118 msgid ""
23119 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
23120 "device."
23121 msgstr ""
23122
23123 # type: textblock
23124 #: ../fish/guestfish-commands.pod:90
23125 msgid ""
23126 "This command works by downloading potentially the whole file or device, "
23127 "editing it locally, then uploading it.  If the file or device is large, you "
23128 "have to specify which part you wish to edit by using C<max> and/or C<start> "
23129 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
23130 "usual modifiers allowed such as C<1M> (1 megabyte)."
23131 msgstr ""
23132
23133 # type: textblock
23134 #: ../fish/guestfish-commands.pod:97
23135 msgid "For example to edit the first few sectors of a disk you might do:"
23136 msgstr ""
23137
23138 # type: verbatim
23139 #: ../fish/guestfish-commands.pod:100
23140 #, no-wrap
23141 msgid ""
23142 " hexedit /dev/sda 1M\n"
23143 "\n"
23144 msgstr ""
23145
23146 # type: textblock
23147 #: ../fish/guestfish-commands.pod:102
23148 msgid ""
23149 "which would allow you to edit anywhere within the first megabyte of the disk."
23150 msgstr ""
23151
23152 # type: textblock
23153 #: ../fish/guestfish-commands.pod:105
23154 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
23155 msgstr ""
23156
23157 # type: verbatim
23158 #: ../fish/guestfish-commands.pod:107
23159 #, no-wrap
23160 msgid ""
23161 " hexedit /dev/sda1 0x400 0x400\n"
23162 "\n"
23163 msgstr ""
23164
23165 # type: textblock
23166 #: ../fish/guestfish-commands.pod:109
23167 msgid "(assuming the superblock is in the standard location)."
23168 msgstr ""
23169
23170 # type: textblock
23171 #: ../fish/guestfish-commands.pod:111
23172 msgid ""
23173 "This command requires the external L<hexedit(1)> program.  You can specify "
23174 "another program to use by setting the C<HEXEDITOR> environment variable."
23175 msgstr ""
23176
23177 # type: textblock
23178 #: ../fish/guestfish-commands.pod:115
23179 msgid "See also L</hexdump>."
23180 msgstr ""
23181
23182 # type: =head2
23183 #: ../fish/guestfish-commands.pod:117
23184 msgid "lcd"
23185 msgstr ""
23186
23187 # type: verbatim
23188 #: ../fish/guestfish-commands.pod:119
23189 #, no-wrap
23190 msgid ""
23191 " lcd directory\n"
23192 "\n"
23193 msgstr ""
23194
23195 # type: textblock
23196 #: ../fish/guestfish-commands.pod:121
23197 msgid ""
23198 "Change the local directory, ie. the current directory of guestfish itself."
23199 msgstr ""
23200
23201 # type: textblock
23202 #: ../fish/guestfish-commands.pod:124
23203 msgid "Note that C<!cd> won't do what you might expect."
23204 msgstr ""
23205
23206 # type: =head2
23207 #: ../fish/guestfish-commands.pod:126
23208 msgid "man"
23209 msgstr ""
23210
23211 # type: =head2
23212 #: ../fish/guestfish-commands.pod:128
23213 msgid "manual"
23214 msgstr ""
23215
23216 # type: verbatim
23217 #: ../fish/guestfish-commands.pod:130
23218 #, no-wrap
23219 msgid ""
23220 "  man\n"
23221 "\n"
23222 msgstr ""
23223
23224 # type: textblock
23225 #: ../fish/guestfish-commands.pod:132
23226 msgid "Opens the manual page for guestfish."
23227 msgstr ""
23228
23229 # type: =head2
23230 #: ../fish/guestfish-commands.pod:134
23231 msgid "more"
23232 msgstr ""
23233
23234 # type: =head2
23235 #: ../fish/guestfish-commands.pod:136
23236 msgid "less"
23237 msgstr ""
23238
23239 # type: verbatim
23240 #: ../fish/guestfish-commands.pod:138
23241 #, no-wrap
23242 msgid ""
23243 " more filename\n"
23244 "\n"
23245 msgstr ""
23246
23247 # type: verbatim
23248 #: ../fish/guestfish-commands.pod:140
23249 #, no-wrap
23250 msgid ""
23251 " less filename\n"
23252 "\n"
23253 msgstr ""
23254
23255 # type: textblock
23256 #: ../fish/guestfish-commands.pod:142
23257 msgid "This is used to view a file."
23258 msgstr ""
23259
23260 # type: textblock
23261 #: ../fish/guestfish-commands.pod:144
23262 msgid ""
23263 "The default viewer is C<$PAGER>.  However if you use the alternate command "
23264 "C<less> you will get the C<less> command specifically."
23265 msgstr ""
23266
23267 # type: =head2
23268 #: ../fish/guestfish-commands.pod:147
23269 msgid "reopen"
23270 msgstr ""
23271
23272 # type: verbatim
23273 #: ../fish/guestfish-commands.pod:149
23274 #, no-wrap
23275 msgid ""
23276 "  reopen\n"
23277 "\n"
23278 msgstr ""
23279
23280 # type: textblock
23281 #: ../fish/guestfish-commands.pod:151
23282 msgid ""
23283 "Close and reopen the libguestfs handle.  It is not necessary to use this "
23284 "normally, because the handle is closed properly when guestfish exits.  "
23285 "However this is occasionally useful for testing."
23286 msgstr ""
23287
23288 # type: =head2
23289 #: ../fish/guestfish-commands.pod:155
23290 msgid "sparse"
23291 msgstr ""
23292
23293 # type: verbatim
23294 #: ../fish/guestfish-commands.pod:157
23295 #, no-wrap
23296 msgid ""
23297 " sparse filename size\n"
23298 "\n"
23299 msgstr ""
23300
23301 # type: textblock
23302 #: ../fish/guestfish-commands.pod:159
23303 msgid ""
23304 "This creates an empty sparse file of the given size, and then adds so it can "
23305 "be further examined."
23306 msgstr ""
23307
23308 # type: textblock
23309 #: ../fish/guestfish-commands.pod:162
23310 msgid ""
23311 "In all respects it works the same as the L</alloc> command, except that the "
23312 "image file is allocated sparsely, which means that disk blocks are not "
23313 "assigned to the file until they are needed.  Sparse disk files only use "
23314 "space when written to, but they are slower and there is a danger you could "
23315 "run out of real disk space during a write operation."
23316 msgstr ""
23317
23318 # type: =head2
23319 #: ../fish/guestfish-commands.pod:172
23320 msgid "supported"
23321 msgstr ""
23322
23323 # type: verbatim
23324 #: ../fish/guestfish-commands.pod:174
23325 #, no-wrap
23326 msgid ""
23327 " supported\n"
23328 "\n"
23329 msgstr ""
23330
23331 # type: textblock
23332 #: ../fish/guestfish-commands.pod:176
23333 msgid ""
23334 "This command returns a list of the optional groups known to the daemon, and "
23335 "indicates which ones are supported by this build of the libguestfs appliance."
23336 msgstr ""
23337
23338 # type: textblock
23339 #: ../fish/guestfish-commands.pod:180
23340 msgid "See also L<guestfs(3)/AVAILABILITY>."
23341 msgstr ""
23342
23343 # type: =head2
23344 #: ../fish/guestfish-commands.pod:182
23345 msgid "time"
23346 msgstr ""
23347
23348 # type: verbatim
23349 #: ../fish/guestfish-commands.pod:184
23350 #, no-wrap
23351 msgid ""
23352 " time command args...\n"
23353 "\n"
23354 msgstr ""
23355
23356 # type: textblock
23357 #: ../fish/guestfish-commands.pod:186
23358 msgid ""
23359 "Run the command as usual, but print the elapsed time afterwards.  This can "
23360 "be useful for benchmarking operations."
23361 msgstr ""
23362
23363 # type: textblock
23364 #: ../test-tool/libguestfs-test-tool.pod:5
23365 msgid "libguestfs-test-tool - End user tests for libguestfs"
23366 msgstr ""
23367
23368 # type: verbatim
23369 #: ../test-tool/libguestfs-test-tool.pod:9
23370 #, no-wrap
23371 msgid ""
23372 " libguestfs-test-tool [--options]\n"
23373 "\n"
23374 msgstr ""
23375
23376 # type: textblock
23377 #: ../test-tool/libguestfs-test-tool.pod:13
23378 msgid ""
23379 "libguestfs-test-tool is a test program shipped with libguestfs to end users "
23380 "and developers, to allow them to check basic libguestfs functionality is "
23381 "working.  This is needed because libguestfs occasionally breaks for reasons "
23382 "beyond our control: usually because of changes in the underlying qemu or "
23383 "kernel packages, or the host environment."
23384 msgstr ""
23385
23386 # type: textblock
23387 #: ../test-tool/libguestfs-test-tool.pod:20
23388 msgid "If you suspect a problem in libguestfs, then just run:"
23389 msgstr ""
23390
23391 # type: verbatim
23392 #: ../test-tool/libguestfs-test-tool.pod:22
23393 #, no-wrap
23394 msgid ""
23395 " libguestfs-test-tool\n"
23396 "\n"
23397 msgstr ""
23398
23399 # type: textblock
23400 #: ../test-tool/libguestfs-test-tool.pod:24
23401 msgid "It will print lots of diagnostic messages."
23402 msgstr ""
23403
23404 # type: textblock
23405 #: ../test-tool/libguestfs-test-tool.pod:26
23406 msgid "If it runs to completion successfully, you will see this near the end:"
23407 msgstr ""
23408
23409 # type: verbatim
23410 #: ../test-tool/libguestfs-test-tool.pod:28
23411 #, no-wrap
23412 msgid ""
23413 " ===== TEST FINISHED OK =====\n"
23414 "\n"
23415 msgstr ""
23416
23417 # type: textblock
23418 #: ../test-tool/libguestfs-test-tool.pod:30
23419 msgid "and the test tool will exit with code 0."
23420 msgstr ""
23421
23422 # type: textblock
23423 #: ../test-tool/libguestfs-test-tool.pod:32
23424 msgid ""
23425 "If it fails (and/or exits with non-zero error code), please paste the "
23426 "B<complete, unedited> output of the test tool into a bug report.  More "
23427 "information about reporting bugs can be found on the L<http://libguestfs.org/"
23428 "> website."
23429 msgstr ""
23430
23431 # type: =item
23432 #: ../test-tool/libguestfs-test-tool.pod:41
23433 msgid "I<--help>"
23434 msgstr ""
23435
23436 # type: textblock
23437 #: ../test-tool/libguestfs-test-tool.pod:43
23438 msgid "Display short usage information and exit."
23439 msgstr ""
23440
23441 # type: =item
23442 #: ../test-tool/libguestfs-test-tool.pod:45
23443 msgid "I<--helper /path/to/libguestfs-test-tool-helper>"
23444 msgstr ""
23445
23446 # type: textblock
23447 #: ../test-tool/libguestfs-test-tool.pod:47
23448 msgid ""
23449 "Pass an alternate name for the helper program.  libguestfs-test-tool will "
23450 "normally look in the C<$libexec> directory that was configured when the tool "
23451 "was built."
23452 msgstr ""
23453
23454 # type: =item
23455 #: ../test-tool/libguestfs-test-tool.pod:51
23456 msgid "I<--qemu qemu_binary>"
23457 msgstr ""
23458
23459 # type: textblock
23460 #: ../test-tool/libguestfs-test-tool.pod:53
23461 msgid ""
23462 "If you have downloaded another qemu binary, point this option at the full "
23463 "path of the binary to try it."
23464 msgstr ""
23465
23466 # type: =item
23467 #: ../test-tool/libguestfs-test-tool.pod:56
23468 msgid "I<--qemudir qemu_source_dir>"
23469 msgstr ""
23470
23471 # type: textblock
23472 #: ../test-tool/libguestfs-test-tool.pod:58
23473 msgid ""
23474 "If you have compiled qemu from source, point this option at the source "
23475 "directory to try it."
23476 msgstr ""
23477
23478 # type: =item
23479 #: ../test-tool/libguestfs-test-tool.pod:61
23480 msgid "I<--timeout N>"
23481 msgstr ""
23482
23483 # type: textblock
23484 #: ../test-tool/libguestfs-test-tool.pod:63
23485 msgid ""
23486 "Set the launch timeout to C<N> seconds.  The default is 120 seconds which "
23487 "does not usually need to be adjusted unless your machine is very slow."
23488 msgstr ""
23489
23490 # type: =head1
23491 #: ../test-tool/libguestfs-test-tool.pod:69
23492 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
23493 msgstr ""
23494
23495 # type: textblock
23496 #: ../test-tool/libguestfs-test-tool.pod:71
23497 msgid ""
23498 "If you have compiled another version of qemu from source and would like to "
23499 "try that, then you can use the I<--qemudir> option to point to the qemu "
23500 "source directory."
23501 msgstr ""
23502
23503 # type: textblock
23504 #: ../test-tool/libguestfs-test-tool.pod:75
23505 msgid ""
23506 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
23507 "option to point to the binary."
23508 msgstr ""
23509
23510 # type: textblock
23511 #: ../test-tool/libguestfs-test-tool.pod:78
23512 msgid ""
23513 "When using an alternate qemu with libguestfs, usually you would need to "
23514 "write a qemu wrapper script (see section I<QEMU WRAPPERS> in L<guestfs(3)"
23515 ">).  libguestfs-test-tool writes a temporary qemu wrapper script when you "
23516 "use either of the I<--qemudir> or I<--qemu> options."
23517 msgstr ""
23518
23519 # type: textblock
23520 #: ../test-tool/libguestfs-test-tool.pod:85
23521 msgid ""
23522 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
23523 "I<1> if there was an error."
23524 msgstr ""
23525
23526 # type: =item
23527 #: ../test-tool/libguestfs-test-tool.pod:92
23528 msgid "/usr/libexec/libguestfs-test-tool-helper"
23529 msgstr ""
23530
23531 # type: textblock
23532 #: ../test-tool/libguestfs-test-tool.pod:94
23533 msgid ""
23534 "This helper program is run inside the appliance and provides additional "
23535 "tests."
23536 msgstr ""
23537
23538 # type: =item
23539 #: ../test-tool/libguestfs-test-tool.pod:97
23540 msgid "/usr/bin/mkisofs"
23541 msgstr ""
23542
23543 # type: textblock
23544 #: ../test-tool/libguestfs-test-tool.pod:99
23545 msgid ""
23546 "The C<mkisofs> command is required in order to construct a CD-ROM ISO file "
23547 "which is used as part of the tests."
23548 msgstr ""
23549
23550 # type: textblock
23551 #: ../test-tool/libguestfs-test-tool.pod:106
23552 msgid ""
23553 "For the full list of environment variables which may affect libguestfs, "
23554 "please see the L<guestfs(3)> manual page."
23555 msgstr ""
23556
23557 # type: textblock
23558 #: ../test-tool/libguestfs-test-tool.pod:111
23559 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
23560 msgstr ""
23561
23562 # type: textblock
23563 #: ../test-tool/libguestfs-test-tool.pod:121 ../fuse/guestmount.pod:195
23564 msgid "Copyright (C) 2009 Red Hat Inc.  L<http://libguestfs.org/>"
23565 msgstr ""
23566
23567 # type: textblock
23568 #: ../fuse/guestmount.pod:5
23569 msgid ""
23570 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
23571 msgstr ""
23572
23573 # type: verbatim
23574 #: ../fuse/guestmount.pod:9
23575 #, no-wrap
23576 msgid ""
23577 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
23578 "\n"
23579 msgstr ""
23580
23581 # type: textblock
23582 #: ../fuse/guestmount.pod:13
23583 msgid ""
23584 "You must I<not> use C<guestmount> in read-write mode on live virtual "
23585 "machines.  If you do this, you risk disk corruption in the VM."
23586 msgstr ""
23587
23588 # type: textblock
23589 #: ../fuse/guestmount.pod:18
23590 msgid ""
23591 "The guestmount program can be used to mount virtual machine filesystems and "
23592 "other disk images on the host.  It uses libguestfs for access to the guest "
23593 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
23594 "a mountable device."
23595 msgstr ""
23596
23597 # type: textblock
23598 #: ../fuse/guestmount.pod:23
23599 msgid ""
23600 "Along with other options, you have to give at least one device (I<-a> "
23601 "option) and at least one mountpoint (I<-m> option).  How this works is "
23602 "better explained in the L<guestfish(1)> manual page, or you can use L<virt-"
23603 "inspector(1)> and/or the wrapper script C<guestmount-wrapper> to help you."
23604 msgstr ""
23605
23606 # type: textblock
23607 #: ../fuse/guestmount.pod:29
23608 msgid ""
23609 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
23610 "by you, and the filesystem will not be visible to any other users unless you "
23611 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
23612 "the filesystem, use the C<fusermount -u> command."
23613 msgstr ""
23614
23615 # type: textblock
23616 #: ../fuse/guestmount.pod:37
23617 msgid ""
23618 "For a typical Windows guest which has its main filesystem on the first "
23619 "partition:"
23620 msgstr ""
23621
23622 # type: verbatim
23623 #: ../fuse/guestmount.pod:40
23624 #, no-wrap
23625 msgid ""
23626 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
23627 "\n"
23628 msgstr ""
23629
23630 # type: textblock
23631 #: ../fuse/guestmount.pod:42
23632 msgid ""
23633 "For a typical Linux guest which has a /boot filesystem on the first "
23634 "partition, and the root filesystem on a logical volume:"
23635 msgstr ""
23636
23637 # type: verbatim
23638 #: ../fuse/guestmount.pod:45
23639 #, no-wrap
23640 msgid ""
23641 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
23642 "\n"
23643 msgstr ""
23644
23645 # type: textblock
23646 #: ../fuse/guestmount.pod:47
23647 msgid ""
23648 "To get L<virt-inspector(1)> to do the hard work of detecting guest "
23649 "mountpoints for you:"
23650 msgstr ""
23651
23652 # type: verbatim
23653 #: ../fuse/guestmount.pod:50
23654 #, no-wrap
23655 msgid ""
23656 " guestmount $(virt-inspector --ro-fish MyGuest) /mnt\n"
23657 "\n"
23658 msgstr ""
23659
23660 # type: textblock
23661 #: ../fuse/guestmount.pod:52
23662 msgid ""
23663 "(or use --fish if you don't want it to be a read only mount).  The option is "
23664 "called I<--ro-fish> or I<--fish> because these parameters are compatible "
23665 "with L<guestfish(1)>."
23666 msgstr ""
23667
23668 # type: textblock
23669 #: ../fuse/guestmount.pod:56
23670 msgid ""
23671 "If you don't know what filesystems are contained in a guest or disk image, "
23672 "use L<virt-list-filesystems(1)> first:"
23673 msgstr ""
23674
23675 # type: verbatim
23676 #: ../fuse/guestmount.pod:59
23677 #, no-wrap
23678 msgid ""
23679 " virt-list-filesystems MyGuest\n"
23680 "\n"
23681 msgstr ""
23682
23683 # type: textblock
23684 #: ../fuse/guestmount.pod:61
23685 msgid ""
23686 "If you want to trace the libguestfs calls but without excessive debugging, "
23687 "we recommend:"
23688 msgstr ""
23689
23690 # type: verbatim
23691 #: ../fuse/guestmount.pod:64
23692 #, no-wrap
23693 msgid ""
23694 " guestmount [-a ... -m ...] --trace /mnt\n"
23695 "\n"
23696 msgstr ""
23697
23698 # type: textblock
23699 #: ../fuse/guestmount.pod:66
23700 msgid "If you want to debug the program, we recommend:"
23701 msgstr ""
23702
23703 # type: verbatim
23704 #: ../fuse/guestmount.pod:68
23705 #, no-wrap
23706 msgid ""
23707 " guestmount [-a ... -m ...] --trace --verbose /mnt\n"
23708 "\n"
23709 msgstr ""
23710
23711 # type: textblock
23712 #: ../fuse/guestmount.pod:76
23713 msgid "Add a block device or virtual machine image."
23714 msgstr ""
23715
23716 # type: =item
23717 #: ../fuse/guestmount.pod:78
23718 msgid "B<--dir-cache-timeout N>"
23719 msgstr ""
23720
23721 # type: textblock
23722 #: ../fuse/guestmount.pod:80
23723 msgid ""
23724 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
23725 "seconds.  The readdir cache [actually, there are several semi-independent "
23726 "caches] is populated after a readdir(2) call with the stat and extended "
23727 "attributes of the files in the directory, in anticipation that they will be "
23728 "requested soon after."
23729 msgstr ""
23730
23731 # type: textblock
23732 #: ../fuse/guestmount.pod:86
23733 msgid ""
23734 "There is also a different attribute cache implemented by FUSE (see the FUSE "
23735 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
23736 "requests, only cache existing ones."
23737 msgstr ""
23738
23739 # type: =item
23740 #: ../fuse/guestmount.pod:90
23741 msgid "B<--fuse-help>"
23742 msgstr ""
23743
23744 # type: textblock
23745 #: ../fuse/guestmount.pod:92
23746 msgid "Display help on special FUSE options (see I<-o> below)."
23747 msgstr ""
23748
23749 # type: textblock
23750 #: ../fuse/guestmount.pod:96
23751 msgid "Display brief help and exit."
23752 msgstr ""
23753
23754 # type: =item
23755 #: ../fuse/guestmount.pod:98
23756 msgid "B<-m dev[:mnt]> | B<--mount dev[:mnt]>"
23757 msgstr ""
23758
23759 # type: textblock
23760 #: ../fuse/guestmount.pod:100
23761 msgid ""
23762 "Mount the named partition or logical volume on the given mountpoint B<in the "
23763 "guest> (this has nothing to do with mountpoints in the host)."
23764 msgstr ""
23765
23766 # type: textblock
23767 #: ../fuse/guestmount.pod:103
23768 msgid ""
23769 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
23770 "something on C</>."
23771 msgstr ""
23772
23773 # type: textblock
23774 #: ../fuse/guestmount.pod:108
23775 msgid ""
23776 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
23777 "unmounted.  If you specify this option, then we don't attempt to sync the "
23778 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
23779 msgstr ""
23780
23781 # type: =item
23782 #: ../fuse/guestmount.pod:113
23783 msgid "B<-o option> | B<--option option>"
23784 msgstr ""
23785
23786 # type: textblock
23787 #: ../fuse/guestmount.pod:115
23788 msgid "Pass extra options to FUSE."
23789 msgstr ""
23790
23791 # type: textblock
23792 #: ../fuse/guestmount.pod:117
23793 msgid ""
23794 "To get a list of all the extra options supported by FUSE, use the command "
23795 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
23796 "of them are a good idea."
23797 msgstr ""
23798
23799 # type: verbatim
23800 #: ../fuse/guestmount.pod:121
23801 #, no-wrap
23802 msgid ""
23803 " guestmount --fuse-help\n"
23804 "\n"
23805 msgstr ""
23806
23807 # type: textblock
23808 #: ../fuse/guestmount.pod:123
23809 msgid "Some potentially useful FUSE options:"
23810 msgstr ""
23811
23812 # type: =item
23813 #: ../fuse/guestmount.pod:127
23814 msgid "B<-o allow_other>"
23815 msgstr ""
23816
23817 # type: textblock
23818 #: ../fuse/guestmount.pod:129
23819 msgid "Allow other users to see the filesystem."
23820 msgstr ""
23821
23822 # type: =item
23823 #: ../fuse/guestmount.pod:131
23824 msgid "B<-o attr_timeout=N>"
23825 msgstr ""
23826
23827 # type: textblock
23828 #: ../fuse/guestmount.pod:133
23829 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
23830 msgstr ""
23831
23832 # type: =item
23833 #: ../fuse/guestmount.pod:135
23834 msgid "B<-o kernel_cache>"
23835 msgstr ""
23836
23837 # type: textblock
23838 #: ../fuse/guestmount.pod:137
23839 msgid ""
23840 "Allow the kernel to cache files (reduces the number of reads that have to go "
23841 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
23842 "afford the extra memory usage."
23843 msgstr ""
23844
23845 # type: =item
23846 #: ../fuse/guestmount.pod:141
23847 msgid "B<-o uid=N> B<-o gid=N>"
23848 msgstr ""
23849
23850 # type: textblock
23851 #: ../fuse/guestmount.pod:143
23852 msgid ""
23853 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
23854 "the chosen values."
23855 msgstr ""
23856
23857 # type: textblock
23858 #: ../fuse/guestmount.pod:150
23859 msgid ""
23860 "Add devices and mount everything read-only.  Also disallow writes and make "
23861 "the disk appear read-only to FUSE."
23862 msgstr ""
23863
23864 # type: textblock
23865 #: ../fuse/guestmount.pod:153
23866 msgid ""
23867 "This is highly recommended if you are not going to edit the guest disk.  If "
23868 "the guest is running and this option is I<not> supplied, then there is a "
23869 "strong risk of disk corruption in the guest.  We try to prevent this from "
23870 "happening, but it is not always possible."
23871 msgstr ""
23872
23873 # type: textblock
23874 #: ../fuse/guestmount.pod:160
23875 msgid "Enable SELinux support for the guest."
23876 msgstr ""
23877
23878 # type: =item
23879 #: ../fuse/guestmount.pod:162
23880 msgid "B<--trace>"
23881 msgstr ""
23882
23883 # type: textblock
23884 #: ../fuse/guestmount.pod:164
23885 msgid "Trace libguestfs calls (to stderr)."
23886 msgstr ""
23887
23888 # type: textblock
23889 #: ../fuse/guestmount.pod:166
23890 msgid "This also stops the daemon from forking into the background."
23891 msgstr ""
23892
23893 # type: textblock
23894 #: ../fuse/guestmount.pod:170
23895 msgid "Enable verbose messages from underlying libguestfs."
23896 msgstr ""
23897
23898 # type: textblock
23899 #: ../fuse/guestmount.pod:174
23900 msgid "Display the program version and exit."
23901 msgstr ""
23902
23903 # type: textblock
23904 #: ../fuse/guestmount.pod:180
23905 msgid ""
23906 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
23907 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
23908 "net/>."
23909 msgstr ""
23910
23911 # type: textblock
23912 #: ../inspector/virt-inspector.pl:40
23913 msgid ""
23914 "virt-inspector - Display OS version, kernel, drivers, mount points, "
23915 "applications, etc. in a virtual machine"
23916 msgstr ""
23917
23918 # type: verbatim
23919 #: ../inspector/virt-inspector.pl:44
23920 #, no-wrap
23921 msgid ""
23922 " virt-inspector [--connect URI] domname\n"
23923 "\n"
23924 msgstr ""
23925
23926 # type: verbatim
23927 #: ../inspector/virt-inspector.pl:46
23928 #, no-wrap
23929 msgid ""
23930 " virt-inspector guest.img [guest.img ...]\n"
23931 "\n"
23932 msgstr ""
23933
23934 # type: textblock
23935 #: ../inspector/virt-inspector.pl:50
23936 msgid ""
23937 "B<virt-inspector> examines a virtual machine and tries to determine the "
23938 "version of the OS, the kernel version, what drivers are installed, whether "
23939 "the virtual machine is fully virtualized (FV) or para-virtualized (PV), what "
23940 "applications are installed and more."
23941 msgstr ""
23942
23943 # type: textblock
23944 #: ../inspector/virt-inspector.pl:55
23945 msgid ""
23946 "Virt-inspector can produce output in several formats, including a readable "
23947 "text report, and XML for feeding into other programs."
23948 msgstr ""
23949
23950 # type: textblock
23951 #: ../inspector/virt-inspector.pl:58
23952 msgid ""
23953 "In the normal usage, use C<virt-inspector domname> where C<domname> is the "
23954 "libvirt domain (see: C<virsh list --all>)."
23955 msgstr ""
23956
23957 # type: textblock
23958 #: ../inspector/virt-inspector.pl:61
23959 msgid ""
23960 "You can also run virt-inspector directly on disk images from a single "
23961 "virtual machine.  Use C<virt-inspector guest.img>.  In rare cases a domain "
23962 "has several block devices, in which case you should list them one after "
23963 "another, with the first corresponding to the guest's C</dev/sda>, the second "
23964 "to the guest's C</dev/sdb> and so on."
23965 msgstr ""
23966
23967 # type: textblock
23968 #: ../inspector/virt-inspector.pl:67
23969 msgid ""
23970 "Virt-inspector can only inspect and report upon I<one domain at a time>.  To "
23971 "inspect several virtual machines, you have to run virt-inspector several "
23972 "times (for example, from a shell script for-loop)."
23973 msgstr ""
23974
23975 # type: textblock
23976 #: ../inspector/virt-inspector.pl:72
23977 msgid ""
23978 "Because virt-inspector needs direct access to guest images, it won't "
23979 "normally work over remote libvirt connections."
23980 msgstr ""
23981
23982 # type: textblock
23983 #: ../inspector/virt-inspector.pl:85 ../tools/virt-edit.pl:83
23984 #: ../tools/virt-win-reg.pl:182 ../tools/virt-df.pl:81 ../tools/virt-ls.pl:89
23985 #: ../tools/virt-list-filesystems.pl:60 ../tools/virt-cat.pl:90
23986 #: ../tools/virt-tar.pl:109 ../tools/virt-rescue.pl:113
23987 #: ../tools/virt-make-fs.pl:163 ../tools/virt-list-partitions.pl:61
23988 msgid "Display brief help."
23989 msgstr ""
23990
23991 # type: =item
23992 #: ../inspector/virt-inspector.pl:91 ../tools/virt-edit.pl:89
23993 #: ../tools/virt-win-reg.pl:188 ../tools/virt-df.pl:87 ../tools/virt-ls.pl:95
23994 #: ../tools/virt-resize.pl:273 ../tools/virt-list-filesystems.pl:66
23995 #: ../tools/virt-cat.pl:96 ../tools/virt-tar.pl:115
23996 #: ../tools/virt-rescue.pl:119 ../tools/virt-make-fs.pl:169
23997 #: ../tools/virt-list-partitions.pl:67
23998 msgid "B<--version>"
23999 msgstr ""
24000
24001 # type: textblock
24002 #: ../inspector/virt-inspector.pl:93 ../tools/virt-edit.pl:91
24003 #: ../tools/virt-win-reg.pl:190 ../tools/virt-df.pl:89 ../tools/virt-ls.pl:97
24004 #: ../tools/virt-resize.pl:275 ../tools/virt-list-filesystems.pl:68
24005 #: ../tools/virt-cat.pl:98 ../tools/virt-tar.pl:117
24006 #: ../tools/virt-rescue.pl:121 ../tools/virt-make-fs.pl:171
24007 #: ../tools/virt-list-partitions.pl:69
24008 msgid "Display version number and exit."
24009 msgstr ""
24010
24011 # type: =item
24012 #: ../inspector/virt-inspector.pl:99 ../tools/virt-edit.pl:113
24013 #: ../tools/virt-win-reg.pl:204 ../tools/virt-df.pl:95 ../tools/virt-ls.pl:103
24014 #: ../tools/virt-list-filesystems.pl:74 ../tools/virt-cat.pl:104
24015 #: ../tools/virt-tar.pl:123 ../tools/virt-rescue.pl:135
24016 #: ../tools/virt-list-partitions.pl:75
24017 msgid "B<--connect URI> | B<-c URI>"
24018 msgstr ""
24019
24020 # type: textblock
24021 #: ../inspector/virt-inspector.pl:101 ../tools/virt-edit.pl:115
24022 #: ../tools/virt-win-reg.pl:206 ../tools/virt-df.pl:97 ../tools/virt-ls.pl:105
24023 #: ../tools/virt-list-filesystems.pl:76 ../tools/virt-cat.pl:106
24024 #: ../tools/virt-tar.pl:125 ../tools/virt-rescue.pl:137
24025 #: ../tools/virt-list-partitions.pl:77
24026 msgid ""
24027 "If using libvirt, connect to the given I<URI>.  If omitted, then we connect "
24028 "to the default libvirt hypervisor."
24029 msgstr ""
24030
24031 # type: textblock
24032 #: ../inspector/virt-inspector.pl:104
24033 msgid ""
24034 "Libvirt is only used if you specify a C<domname> on the command line.  If "
24035 "you specify guest block devices directly, then libvirt is not used at all."
24036 msgstr ""
24037
24038 # type: =item
24039 #: ../inspector/virt-inspector.pl:112 ../tools/virt-edit.pl:125
24040 #: ../tools/virt-win-reg.pl:216 ../tools/virt-df.pl:117
24041 #: ../tools/virt-ls.pl:115 ../tools/virt-resize.pl:523
24042 #: ../tools/virt-list-filesystems.pl:86 ../tools/virt-cat.pl:116
24043 #: ../tools/virt-tar.pl:135 ../tools/virt-rescue.pl:147
24044 #: ../tools/virt-list-partitions.pl:87
24045 msgid "B<--format> raw"
24046 msgstr ""
24047
24048 # type: textblock
24049 #: ../inspector/virt-inspector.pl:114 ../tools/virt-edit.pl:127
24050 #: ../tools/virt-win-reg.pl:218 ../tools/virt-df.pl:119
24051 #: ../tools/virt-ls.pl:117 ../tools/virt-list-filesystems.pl:88
24052 #: ../tools/virt-cat.pl:118 ../tools/virt-tar.pl:137
24053 #: ../tools/virt-rescue.pl:149 ../tools/virt-list-partitions.pl:89
24054 msgid ""
24055 "Specify the format of disk images given on the command line.  If this is "
24056 "omitted then the format is autodetected from the content of the disk image."
24057 msgstr ""
24058
24059 # type: textblock
24060 #: ../inspector/virt-inspector.pl:118 ../tools/virt-edit.pl:131
24061 #: ../tools/virt-win-reg.pl:222 ../tools/virt-df.pl:123
24062 #: ../tools/virt-ls.pl:121 ../tools/virt-list-filesystems.pl:92
24063 #: ../tools/virt-cat.pl:122 ../tools/virt-tar.pl:141
24064 #: ../tools/virt-rescue.pl:153 ../tools/virt-list-partitions.pl:93
24065 msgid ""
24066 "If disk images are requested from libvirt, then this program asks libvirt "
24067 "for this information.  In this case, the value of the format parameter is "
24068 "ignored."
24069 msgstr ""
24070
24071 # type: textblock
24072 #: ../inspector/virt-inspector.pl:122 ../tools/virt-edit.pl:135
24073 #: ../tools/virt-win-reg.pl:226 ../tools/virt-df.pl:127
24074 #: ../tools/virt-ls.pl:125 ../tools/virt-resize.pl:528
24075 #: ../tools/virt-resize.pl:543 ../tools/virt-list-filesystems.pl:96
24076 #: ../tools/virt-cat.pl:126 ../tools/virt-tar.pl:145
24077 #: ../tools/virt-rescue.pl:157 ../tools/virt-list-partitions.pl:97
24078 msgid ""
24079 "If working with untrusted raw-format guest disk images, you should ensure "
24080 "the format is always specified."
24081 msgstr ""
24082
24083 # type: textblock
24084 #: ../inspector/virt-inspector.pl:131
24085 msgid ""
24086 "The following options select the output format.  Use only one of them.  The "
24087 "default is a readable text report."
24088 msgstr ""
24089
24090 # type: =item
24091 #: ../inspector/virt-inspector.pl:136
24092 msgid "B<--text> (default)"
24093 msgstr ""
24094
24095 # type: textblock
24096 #: ../inspector/virt-inspector.pl:138
24097 msgid "Plain text report."
24098 msgstr ""
24099
24100 # type: =item
24101 #: ../inspector/virt-inspector.pl:140
24102 msgid "B<--none>"
24103 msgstr ""
24104
24105 # type: textblock
24106 #: ../inspector/virt-inspector.pl:142
24107 msgid "Produce no output at all."
24108 msgstr ""
24109
24110 # type: =item
24111 #: ../inspector/virt-inspector.pl:144
24112 msgid "B<--xml>"
24113 msgstr ""
24114
24115 # type: textblock
24116 #: ../inspector/virt-inspector.pl:146
24117 msgid ""
24118 "If you select I<--xml> then you get XML output which can be fed to other "
24119 "programs."
24120 msgstr ""
24121
24122 # type: =item
24123 #: ../inspector/virt-inspector.pl:149
24124 msgid "B<--yaml>"
24125 msgstr ""
24126
24127 # type: textblock
24128 #: ../inspector/virt-inspector.pl:151
24129 msgid ""
24130 "If you select I<--yaml> then you get YAML output which can be fed to other "
24131 "programs."
24132 msgstr ""
24133
24134 # type: =item
24135 #: ../inspector/virt-inspector.pl:154
24136 msgid "B<--perl>"
24137 msgstr ""
24138
24139 # type: textblock
24140 #: ../inspector/virt-inspector.pl:156
24141 msgid ""
24142 "If you select I<--perl> then you get Perl structures output which can be "
24143 "used directly in another Perl program."
24144 msgstr ""
24145
24146 # type: =item
24147 #: ../inspector/virt-inspector.pl:159
24148 msgid "B<--fish>"
24149 msgstr ""
24150
24151 # type: =item
24152 #: ../inspector/virt-inspector.pl:161
24153 msgid "B<--ro-fish>"
24154 msgstr ""
24155
24156 # type: textblock
24157 #: ../inspector/virt-inspector.pl:163
24158 msgid ""
24159 "If you select I<--fish> then we print a L<guestfish(1)> command line which "
24160 "will automatically mount up the filesystems on the correct mount points.  "
24161 "Try this for example:"
24162 msgstr ""
24163
24164 # type: verbatim
24165 #: ../inspector/virt-inspector.pl:167
24166 #, no-wrap
24167 msgid ""
24168 " guestfish $(virt-inspector --fish guest.img)\n"
24169 "\n"
24170 msgstr ""
24171
24172 # type: textblock
24173 #: ../inspector/virt-inspector.pl:169
24174 msgid ""
24175 "I<--ro-fish> is the same, but the I<--ro> option is passed to guestfish so "
24176 "that the filesystems are mounted read-only."
24177 msgstr ""
24178
24179 # type: =item
24180 #: ../inspector/virt-inspector.pl:172
24181 msgid "B<--query>"
24182 msgstr ""
24183
24184 # type: textblock
24185 #: ../inspector/virt-inspector.pl:174
24186 msgid ""
24187 "In \"query mode\" we answer common questions about the guest, such as "
24188 "whether it is fullvirt or needs a Xen hypervisor to run."
24189 msgstr ""
24190
24191 # type: textblock
24192 #: ../inspector/virt-inspector.pl:177
24193 msgid "See section I<QUERY MODE> below."
24194 msgstr ""
24195
24196 # type: =item
24197 #: ../inspector/virt-inspector.pl:183
24198 msgid "B<--windows-registry>"
24199 msgstr ""
24200
24201 # type: textblock
24202 #: ../inspector/virt-inspector.pl:185
24203 msgid ""
24204 "This flag is ignored for compatibility with earlier releases of the software."
24205 msgstr ""
24206
24207 # type: textblock
24208 #: ../inspector/virt-inspector.pl:188
24209 msgid ""
24210 "In this version, if L<Win::Hivex(3)> is available, then we attempt to parse "
24211 "information out of the Registry for any Windows guest."
24212 msgstr ""
24213
24214 # type: =head1
24215 #: ../inspector/virt-inspector.pl:244
24216 msgid "OUTPUT FORMAT"
24217 msgstr ""
24218
24219 # type: verbatim
24220 #: ../inspector/virt-inspector.pl:246
24221 #, no-wrap
24222 msgid ""
24223 " Operating system(s)\n"
24224 " -------------------\n"
24225 " Linux (distro + version)\n"
24226 " Windows (version)\n"
24227 "    |\n"
24228 "    |\n"
24229 "    +--- Filesystems ---------- Installed apps --- Kernel & drivers\n"
24230 "         -----------            --------------     ----------------\n"
24231 "         mount point => device  List of apps       Extra information\n"
24232 "         mount point => device  and versions       about kernel(s)\n"
24233 "              ...                                  and drivers\n"
24234 "         swap => swap device\n"
24235 "         (plus lots of extra information\n"
24236 "         about each filesystem)\n"
24237 "\n"
24238 msgstr ""
24239
24240 # type: textblock
24241 #: ../inspector/virt-inspector.pl:261
24242 msgid "The output of virt-inspector is a complex two-level data structure."
24243 msgstr ""
24244
24245 # type: textblock
24246 #: ../inspector/virt-inspector.pl:263
24247 msgid ""
24248 "At the top level is a list of the operating systems installed on the guest.  "
24249 "(For the vast majority of guests, only a single OS is installed.)  The data "
24250 "returned for the OS includes the name (Linux, Windows), the distribution and "
24251 "version."
24252 msgstr ""
24253
24254 # type: textblock
24255 #: ../inspector/virt-inspector.pl:268
24256 msgid "The diagram above shows what we return for each OS."
24257 msgstr ""
24258
24259 # type: textblock
24260 #: ../inspector/virt-inspector.pl:270
24261 msgid ""
24262 "With the I<--xml> option the output is mapped into an XML document.  There "
24263 "is a RELAX-NG schema for this XML in the file I<virt-inspector.rng> which "
24264 "normally ships with virt-inspector, or can be found in the source."
24265 msgstr ""
24266
24267 # type: textblock
24268 #: ../inspector/virt-inspector.pl:275
24269 msgid ""
24270 "With the I<--fish> or I<--ro-fish> option the mount points are mapped to "
24271 "L<guestfish(1)> command line parameters, so that you can go in afterwards "
24272 "and inspect the guest with everything mounted in the right place.  For "
24273 "example:"
24274 msgstr ""
24275
24276 # type: verbatim
24277 #: ../inspector/virt-inspector.pl:280
24278 #, no-wrap
24279 msgid ""
24280 " guestfish $(virt-inspector --ro-fish guest.img)\n"
24281 " ==> guestfish --ro -a guest.img -m /dev/VG/LV:/ -m /dev/sda1:/boot\n"
24282 "\n"
24283 msgstr ""
24284
24285 # type: =head1
24286 #: ../inspector/virt-inspector.pl:620
24287 msgid "QUERY MODE"
24288 msgstr ""
24289
24290 # type: textblock
24291 #: ../inspector/virt-inspector.pl:622
24292 msgid ""
24293 "When you use C<virt-inspector --query>, the output is a series of lines of "
24294 "the form:"
24295 msgstr ""
24296
24297 # type: verbatim
24298 #: ../inspector/virt-inspector.pl:625
24299 #, no-wrap
24300 msgid ""
24301 " windows=no\n"
24302 " linux=yes\n"
24303 " fullvirt=yes\n"
24304 " xen_pv_drivers=no\n"
24305 "\n"
24306 msgstr ""
24307
24308 # type: textblock
24309 #: ../inspector/virt-inspector.pl:630
24310 msgid ""
24311 "(each answer is usually C<yes> or C<no>, or the line is completely missing "
24312 "if we could not determine the answer at all)."
24313 msgstr ""
24314
24315 # type: textblock
24316 #: ../inspector/virt-inspector.pl:633
24317 msgid ""
24318 "If the guest is multiboot, you can get apparently conflicting answers (eg. "
24319 "C<windows=yes> and C<linux=yes>, or a guest which is both fullvirt and has a "
24320 "Xen PV kernel).  This is normal, and just means that the guest can do both "
24321 "things, although it might require operator intervention such as selecting a "
24322 "boot option when the guest is booting."
24323 msgstr ""
24324
24325 # type: textblock
24326 #: ../inspector/virt-inspector.pl:640
24327 msgid "This section describes the full range of answers possible."
24328 msgstr ""
24329
24330 # type: =item
24331 #: ../inspector/virt-inspector.pl:661
24332 msgid "windows=(yes|no)"
24333 msgstr ""
24334
24335 # type: textblock
24336 #: ../inspector/virt-inspector.pl:663
24337 msgid "Answer C<yes> if Microsoft Windows is installed in the guest."
24338 msgstr ""
24339
24340 # type: =item
24341 #: ../inspector/virt-inspector.pl:676
24342 msgid "linux=(yes|no)"
24343 msgstr ""
24344
24345 # type: textblock
24346 #: ../inspector/virt-inspector.pl:678
24347 msgid "Answer C<yes> if a Linux kernel is installed in the guest."
24348 msgstr ""
24349
24350 # type: =item
24351 #: ../inspector/virt-inspector.pl:691
24352 msgid "rhel=(yes|no)"
24353 msgstr ""
24354
24355 # type: textblock
24356 #: ../inspector/virt-inspector.pl:693
24357 msgid "Answer C<yes> if the guest contains Red Hat Enterprise Linux."
24358 msgstr ""
24359
24360 # type: =item
24361 #: ../inspector/virt-inspector.pl:707
24362 msgid "fedora=(yes|no)"
24363 msgstr ""
24364
24365 # type: textblock
24366 #: ../inspector/virt-inspector.pl:709
24367 msgid "Answer C<yes> if the guest contains the Fedora Linux distribution."
24368 msgstr ""
24369
24370 # type: =item
24371 #: ../inspector/virt-inspector.pl:722
24372 msgid "debian=(yes|no)"
24373 msgstr ""
24374
24375 # type: textblock
24376 #: ../inspector/virt-inspector.pl:724
24377 msgid "Answer C<yes> if the guest contains the Debian Linux distribution."
24378 msgstr ""
24379
24380 # type: =item
24381 #: ../inspector/virt-inspector.pl:737
24382 msgid "fullvirt=(yes|no)"
24383 msgstr ""
24384
24385 # type: textblock
24386 #: ../inspector/virt-inspector.pl:739
24387 msgid ""
24388 "Answer C<yes> if there is at least one operating system kernel installed in "
24389 "the guest which runs fully virtualized.  Such a guest would require a "
24390 "hypervisor which supports full system virtualization."
24391 msgstr ""
24392
24393 # type: =item
24394 #: ../inspector/virt-inspector.pl:762
24395 msgid "xen_domU_kernel=(yes|no)"
24396 msgstr ""
24397
24398 # type: textblock
24399 #: ../inspector/virt-inspector.pl:764
24400 msgid ""
24401 "Answer C<yes> if there is at least one Linux kernel installed in the guest "
24402 "which is compiled as a Xen DomU (a Xen paravirtualized guest)."
24403 msgstr ""
24404
24405 # type: =item
24406 #: ../inspector/virt-inspector.pl:784
24407 msgid "xen_pv_drivers=(yes|no)"
24408 msgstr ""
24409
24410 # type: textblock
24411 #: ../inspector/virt-inspector.pl:786
24412 msgid ""
24413 "Answer C<yes> if the guest has Xen paravirtualized drivers installed "
24414 "(usually the kernel itself will be fully virtualized, but the PV drivers "
24415 "have been installed by the administrator for performance reasons)."
24416 msgstr ""
24417
24418 # type: =item
24419 #: ../inspector/virt-inspector.pl:808
24420 msgid "virtio_drivers=(yes|no)"
24421 msgstr ""
24422
24423 # type: textblock
24424 #: ../inspector/virt-inspector.pl:810
24425 msgid ""
24426 "Answer C<yes> if the guest has virtio paravirtualized drivers installed.  "
24427 "Virtio drivers are commonly used to improve the performance of KVM."
24428 msgstr ""
24429
24430 # type: =item
24431 #: ../inspector/virt-inspector.pl:831
24432 msgid "userspace_arch=(x86_64|...)"
24433 msgstr ""
24434
24435 # type: textblock
24436 #: ../inspector/virt-inspector.pl:833
24437 msgid "Print the architecture of userspace."
24438 msgstr ""
24439
24440 # type: textblock
24441 #: ../inspector/virt-inspector.pl:835 ../inspector/virt-inspector.pl:856
24442 msgid "NB. For multi-boot VMs this can print several lines."
24443 msgstr ""
24444
24445 # type: =item
24446 #: ../inspector/virt-inspector.pl:852
24447 msgid "kernel_arch=(x86_64|...)"
24448 msgstr ""
24449
24450 # type: textblock
24451 #: ../inspector/virt-inspector.pl:854
24452 msgid "Print the architecture of the kernel."
24453 msgstr ""
24454
24455 # type: =head2
24456 #: ../inspector/virt-inspector.pl:877 ../tools/virt-edit.pl:343
24457 #: ../tools/virt-win-reg.pl:142 ../tools/virt-win-reg.pl:480
24458 #: ../tools/virt-df.pl:607 ../tools/virt-ls.pl:228
24459 #: ../tools/virt-resize.pl:1479 ../tools/virt-list-filesystems.pl:209
24460 #: ../tools/virt-cat.pl:181 ../tools/virt-tar.pl:276
24461 #: ../tools/virt-rescue.pl:250 ../tools/virt-make-fs.pl:527
24462 #: ../tools/virt-list-partitions.pl:247
24463 msgid "SHELL QUOTING"
24464 msgstr ""
24465
24466 # type: textblock
24467 #: ../inspector/virt-inspector.pl:879 ../tools/virt-edit.pl:345
24468 #: ../tools/virt-win-reg.pl:482 ../tools/virt-df.pl:609
24469 #: ../tools/virt-ls.pl:230 ../tools/virt-resize.pl:1481
24470 #: ../tools/virt-list-filesystems.pl:211 ../tools/virt-cat.pl:183
24471 #: ../tools/virt-tar.pl:278 ../tools/virt-rescue.pl:252
24472 #: ../tools/virt-make-fs.pl:529 ../tools/virt-list-partitions.pl:249
24473 msgid ""
24474 "Libvirt guest names can contain arbitrary characters, some of which have "
24475 "meaning to the shell such as C<#> and space.  You may need to quote or "
24476 "escape these characters on the command line.  See the shell manual page L<sh"
24477 "(1)> for details."
24478 msgstr ""
24479
24480 # type: textblock
24481 #: ../inspector/virt-inspector.pl:886 ../tools/virt-df.pl:616
24482 msgid ""
24483 "L<guestfs(3)>, L<guestfish(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
24484 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
24485 msgstr ""
24486
24487 # type: textblock
24488 #: ../inspector/virt-inspector.pl:895 ../tools/virt-edit.pl:364
24489 #: ../tools/virt-win-reg.pl:515 ../tools/virt-df.pl:625
24490 #: ../tools/virt-ls.pl:248 ../tools/virt-resize.pl:1510
24491 #: ../tools/virt-list-filesystems.pl:230 ../tools/virt-cat.pl:200
24492 #: ../tools/virt-tar.pl:296 ../tools/virt-rescue.pl:269
24493 #: ../tools/virt-make-fs.pl:561 ../tools/virt-list-partitions.pl:267
24494 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
24495 msgstr ""
24496
24497 # type: textblock
24498 #: ../inspector/virt-inspector.pl:897
24499 msgid "Matthew Booth L<mbooth@redhat.com>"
24500 msgstr ""
24501
24502 # type: textblock
24503 #: ../inspector/virt-inspector.pl:901 ../tools/virt-ls.pl:252
24504 #: ../tools/virt-list-filesystems.pl:234 ../tools/virt-cat.pl:204
24505 #: ../tools/virt-tar.pl:300
24506 msgid "Copyright (C) 2009 Red Hat Inc."
24507 msgstr ""
24508
24509 # type: textblock
24510 #: ../tools/virt-edit.pl:35
24511 msgid "virt-edit - Edit a file in a virtual machine"
24512 msgstr ""
24513
24514 # type: verbatim
24515 #: ../tools/virt-edit.pl:39
24516 #, no-wrap
24517 msgid ""
24518 " virt-edit [--options] domname file\n"
24519 "\n"
24520 msgstr ""
24521
24522 # type: verbatim
24523 #: ../tools/virt-edit.pl:41
24524 #, no-wrap
24525 msgid ""
24526 " virt-edit [--options] disk.img [disk.img ...] file\n"
24527 "\n"
24528 msgstr ""
24529
24530 # type: verbatim
24531 #: ../tools/virt-edit.pl:43
24532 #, no-wrap
24533 msgid ""
24534 " virt-edit [domname|disk.img] file -e 'expr'\n"
24535 "\n"
24536 msgstr ""
24537
24538 # type: textblock
24539 #: ../tools/virt-edit.pl:47
24540 msgid ""
24541 "You must I<not> use C<virt-edit> on live virtual machines.  If you do this, "
24542 "you risk disk corruption in the VM.  C<virt-edit> tries to stop you from "
24543 "doing this, but doesn't catch all cases."
24544 msgstr ""
24545
24546 # type: textblock
24547 #: ../tools/virt-edit.pl:53
24548 msgid ""
24549 "C<virt-edit> is a command line tool to edit C<file> where C<file> exists in "
24550 "the named virtual machine (or disk image)."
24551 msgstr ""
24552
24553 # type: textblock
24554 #: ../tools/virt-edit.pl:56
24555 msgid ""
24556 "If you want to just view a file, use L<virt-cat(1)>.  For more complex cases "
24557 "you should look at the L<guestfish(1)> tool."
24558 msgstr ""
24559
24560 # type: textblock
24561 #: ../tools/virt-edit.pl:61
24562 msgid "Edit the named files interactively:"
24563 msgstr ""
24564
24565 # type: verbatim
24566 #: ../tools/virt-edit.pl:63
24567 #, no-wrap
24568 msgid ""
24569 " virt-edit mydomain /boot/grub/grub.conf\n"
24570 "\n"
24571 msgstr ""
24572
24573 # type: verbatim
24574 #: ../tools/virt-edit.pl:65
24575 #, no-wrap
24576 msgid ""
24577 " virt-edit mydomain /etc/passwd\n"
24578 "\n"
24579 msgstr ""
24580
24581 # type: textblock
24582 #: ../tools/virt-edit.pl:67
24583 msgid ""
24584 "You can also edit files non-interactively (see L</NON-INTERACTIVE EDITING> "
24585 "below).  To change the init default level to 5:"
24586 msgstr ""
24587
24588 # type: verbatim
24589 #: ../tools/virt-edit.pl:71
24590 #, no-wrap
24591 msgid ""
24592 " virt-edit mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
24593 "\n"
24594 msgstr ""
24595
24596 # type: =item
24597 #: ../tools/virt-edit.pl:97
24598 msgid "B<--backup extension> | B<-b extension>"
24599 msgstr ""
24600
24601 # type: textblock
24602 #: ../tools/virt-edit.pl:99
24603 msgid ""
24604 "Create a backup of the original file I<in the guest disk image>.  The backup "
24605 "has the original filename with C<extension> added."
24606 msgstr ""
24607
24608 # type: textblock
24609 #: ../tools/virt-edit.pl:102
24610 msgid ""
24611 "Usually the first character of C<extension> would be a dot C<.> so you would "
24612 "write:"
24613 msgstr ""
24614
24615 # type: verbatim
24616 #: ../tools/virt-edit.pl:105
24617 #, no-wrap
24618 msgid ""
24619 " virt-edit -b .orig [etc]\n"
24620 "\n"
24621 msgstr ""
24622
24623 # type: textblock
24624 #: ../tools/virt-edit.pl:107
24625 msgid "By default, no backup file is made."
24626 msgstr ""
24627
24628 # type: textblock
24629 #: ../tools/virt-edit.pl:118 ../tools/virt-win-reg.pl:209
24630 #: ../tools/virt-df.pl:100 ../tools/virt-ls.pl:108
24631 #: ../tools/virt-list-filesystems.pl:79 ../tools/virt-cat.pl:109
24632 #: ../tools/virt-tar.pl:128 ../tools/virt-rescue.pl:140
24633 #: ../tools/virt-list-partitions.pl:80
24634 msgid ""
24635 "If you specify guest block devices directly, then libvirt is not used at all."
24636 msgstr ""
24637
24638 # type: =item
24639 #: ../tools/virt-edit.pl:142
24640 msgid "B<--expr EXPR> | B<-e EXPR>"
24641 msgstr ""
24642
24643 # type: textblock
24644 #: ../tools/virt-edit.pl:144
24645 msgid ""
24646 "Instead of launching the external editor, non-interactively apply the Perl "
24647 "expression C<EXPR> to each line in the file.  See L</NON-INTERACTIVE "
24648 "EDITING> below."
24649 msgstr ""
24650
24651 # type: textblock
24652 #: ../tools/virt-edit.pl:148
24653 msgid ""
24654 "Be careful to properly quote the expression to prevent it from being altered "
24655 "by the shell."
24656 msgstr ""
24657
24658 # type: =head1
24659 #: ../tools/virt-edit.pl:268
24660 msgid "NON-INTERACTIVE EDITING"
24661 msgstr ""
24662
24663 # type: textblock
24664 #: ../tools/virt-edit.pl:270
24665 msgid ""
24666 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
24667 "administrator can interactively edit the file."
24668 msgstr ""
24669
24670 # type: textblock
24671 #: ../tools/virt-edit.pl:273
24672 msgid ""
24673 "There are two ways also to use C<virt-edit> from scripts in order to make "
24674 "automated edits to files.  (Note that although you I<can> use C<virt-edit> "
24675 "like this, it's less error-prone to write scripts directly using the "
24676 "libguestfs API and Augeas for configuration file editing.)"
24677 msgstr ""
24678
24679 # type: textblock
24680 #: ../tools/virt-edit.pl:279
24681 msgid ""
24682 "The first method is to temporarily set C<$EDITOR> to any script or program "
24683 "you want to run.  The script is invoked as C<$EDITOR tmpfile> and it should "
24684 "update C<tmpfile> in place however it likes."
24685 msgstr ""
24686
24687 # type: textblock
24688 #: ../tools/virt-edit.pl:283
24689 msgid ""
24690 "The second method is to use the C<-e> parameter of C<virt-edit> to run a "
24691 "short Perl snippet in the style of L<sed(1)>.  For example to replace all "
24692 "instances of C<foo> with C<bar> in a file:"
24693 msgstr ""
24694
24695 # type: verbatim
24696 #: ../tools/virt-edit.pl:287
24697 #, no-wrap
24698 msgid ""
24699 " virt-edit domname filename -e 's/foo/bar/'\n"
24700 "\n"
24701 msgstr ""
24702
24703 # type: textblock
24704 #: ../tools/virt-edit.pl:289
24705 msgid ""
24706 "The full power of Perl regular expressions can be used (see L<perlre(1)>).  "
24707 "For example to delete root's password you could do:"
24708 msgstr ""
24709
24710 # type: verbatim
24711 #: ../tools/virt-edit.pl:292
24712 #, no-wrap
24713 msgid ""
24714 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
24715 "\n"
24716 msgstr ""
24717
24718 # type: textblock
24719 #: ../tools/virt-edit.pl:294
24720 msgid ""
24721 "What really happens is that the snippet is evaluated as a Perl expression "
24722 "for each line of the file.  The line, including the final C<\\n>, is passed "
24723 "in C<$_> and the expression should update C<$_> or leave it unchanged."
24724 msgstr ""
24725
24726 # type: textblock
24727 #: ../tools/virt-edit.pl:299
24728 msgid ""
24729 "To delete a line, set C<$_> to the empty string.  For example, to delete the "
24730 "C<apache> user account from the password file you can do:"
24731 msgstr ""
24732
24733 # type: verbatim
24734 #: ../tools/virt-edit.pl:302
24735 #, no-wrap
24736 msgid ""
24737 " virt-edit mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
24738 "\n"
24739 msgstr ""
24740
24741 # type: textblock
24742 #: ../tools/virt-edit.pl:304
24743 msgid ""
24744 "To insert a line, prepend or append it to C<$_>.  However appending lines to "
24745 "the end of the file is rather difficult this way since there is no concept "
24746 "of \"last line of the file\" - your expression just doesn't get called "
24747 "again.  You might want to use the first method (setting C<$EDITOR>) if you "
24748 "want to do this."
24749 msgstr ""
24750
24751 # type: textblock
24752 #: ../tools/virt-edit.pl:310
24753 msgid ""
24754 "The variable C<$lineno> contains the current line number.  As is "
24755 "traditional, the first line in the file is number C<1>."
24756 msgstr ""
24757
24758 # type: textblock
24759 #: ../tools/virt-edit.pl:313
24760 msgid ""
24761 "The return value from the expression is ignored, but the expression may call "
24762 "C<die> in order to abort the whole program, leaving the original file "
24763 "untouched."
24764 msgstr ""
24765
24766 # type: textblock
24767 #: ../tools/virt-edit.pl:317
24768 msgid ""
24769 "Remember when matching the end of a line that C<$_> may contain the final C<"
24770 "\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
24771 "newline then neither of these.  Thus to match or substitute some text at the "
24772 "end of a line, use this regular expression:"
24773 msgstr ""
24774
24775 # type: verbatim
24776 #: ../tools/virt-edit.pl:322
24777 #, no-wrap
24778 msgid ""
24779 " /some text(\\r?\\n)?$/\n"
24780 "\n"
24781 msgstr ""
24782
24783 # type: textblock
24784 #: ../tools/virt-edit.pl:324
24785 msgid ""
24786 "Alternately, use the perl C<chomp> function, being careful not to chomp C<"
24787 "$_> itself (since that would remove all newlines from the file):"
24788 msgstr ""
24789
24790 # type: verbatim
24791 #: ../tools/virt-edit.pl:328
24792 #, no-wrap
24793 msgid ""
24794 " my $m = $_; chomp $m; $m =~ /some text$/\n"
24795 "\n"
24796 msgstr ""
24797
24798 # type: =item
24799 #: ../tools/virt-edit.pl:334
24800 msgid "C<EDITOR>"
24801 msgstr ""
24802
24803 # type: textblock
24804 #: ../tools/virt-edit.pl:336
24805 msgid ""
24806 "If set, this string is used as the editor.  It may contain arguments, eg. C<"
24807 "\"emacs -nw\">"
24808 msgstr ""
24809
24810 # type: textblock
24811 #: ../tools/virt-edit.pl:339
24812 msgid "If not set, C<vi> is used."
24813 msgstr ""
24814
24815 # type: textblock
24816 #: ../tools/virt-edit.pl:352
24817 msgid ""
24818 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::"
24819 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>, L<perl(1)>, "
24820 "L<perlre(1)>."
24821 msgstr ""
24822
24823 # type: =head1
24824 #: ../tools/virt-edit.pl:362 ../tools/virt-win-reg.pl:513
24825 #: ../tools/virt-df.pl:623 ../tools/virt-ls.pl:246
24826 #: ../tools/virt-resize.pl:1508 ../tools/virt-list-filesystems.pl:228
24827 #: ../tools/virt-cat.pl:198 ../tools/virt-tar.pl:294
24828 #: ../tools/virt-rescue.pl:267 ../tools/virt-make-fs.pl:559
24829 #: ../tools/virt-list-partitions.pl:265
24830 msgid "AUTHOR"
24831 msgstr ""
24832
24833 # type: textblock
24834 #: ../tools/virt-edit.pl:368 ../tools/virt-df.pl:629
24835 #: ../tools/virt-rescue.pl:273 ../tools/virt-list-partitions.pl:271
24836 msgid "Copyright (C) 2009-2010 Red Hat Inc."
24837 msgstr ""
24838
24839 # type: textblock
24840 #: ../tools/virt-win-reg.pl:38
24841 msgid ""
24842 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
24843 msgstr ""
24844
24845 # type: verbatim
24846 #: ../tools/virt-win-reg.pl:42
24847 #, no-wrap
24848 msgid ""
24849 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
24850 "\n"
24851 msgstr ""
24852
24853 # type: verbatim
24854 #: ../tools/virt-win-reg.pl:44
24855 #, no-wrap
24856 msgid ""
24857 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
24858 "\n"
24859 msgstr ""
24860
24861 # type: verbatim
24862 #: ../tools/virt-win-reg.pl:46
24863 #, no-wrap
24864 msgid ""
24865 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
24866 "\n"
24867 msgstr ""
24868
24869 # type: verbatim
24870 #: ../tools/virt-win-reg.pl:48
24871 #, no-wrap
24872 msgid ""
24873 " virt-win-reg --merge domname [input.reg ...]\n"
24874 "\n"
24875 msgstr ""
24876
24877 # type: verbatim
24878 #: ../tools/virt-win-reg.pl:50
24879 #, no-wrap
24880 msgid ""
24881 " virt-win-reg [--options] disk.img ... # instead of domname\n"
24882 "\n"
24883 msgstr ""
24884
24885 # type: textblock
24886 #: ../tools/virt-win-reg.pl:54
24887 msgid ""
24888 "You must I<not> use C<virt-win-reg> with the C<--merge> option on live "
24889 "virtual machines.  If you do this, you I<will> get irreversible disk "
24890 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
24891 "but doesn't catch all cases."
24892 msgstr ""
24893
24894 # type: textblock
24895 #: ../tools/virt-win-reg.pl:59
24896 msgid ""
24897 "Modifying the Windows Registry is an inherently risky operation.  The format "
24898 "is deliberately obscure and undocumented, and Registry changes can leave the "
24899 "system unbootable.  Therefore when using the C<--merge> option, make sure "
24900 "you have a reliable backup first."
24901 msgstr ""
24902
24903 # type: textblock
24904 #: ../tools/virt-win-reg.pl:66
24905 msgid ""
24906 "This program can export and merge Windows Registry entries from a Windows "
24907 "guest."
24908 msgstr ""
24909
24910 # type: textblock
24911 #: ../tools/virt-win-reg.pl:69
24912 msgid ""
24913 "The first parameter is the libvirt guest name or the raw disk image of a "
24914 "Windows guest."
24915 msgstr ""
24916
24917 # type: textblock
24918 #: ../tools/virt-win-reg.pl:72
24919 msgid ""
24920 "If C<--merge> is I<not> specified, then the chosen registry key is displayed/"
24921 "exported (recursively).  For example:"
24922 msgstr ""
24923
24924 # type: verbatim
24925 #: ../tools/virt-win-reg.pl:75
24926 #, no-wrap
24927 msgid ""
24928 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
24929 "\n"
24930 msgstr ""
24931
24932 # type: textblock
24933 #: ../tools/virt-win-reg.pl:77
24934 msgid ""
24935 "You can also display single values from within registry keys, for example:"
24936 msgstr ""
24937
24938 # type: verbatim
24939 #: ../tools/virt-win-reg.pl:80
24940 #, no-wrap
24941 msgid ""
24942 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
24943 " $ virt-win-reg Windows7 $cvkey ProductName\n"
24944 " Windows 7 Enterprise\n"
24945 "\n"
24946 msgstr ""
24947
24948 # type: textblock
24949 #: ../tools/virt-win-reg.pl:84
24950 msgid ""
24951 "With C<--merge>, you can merge a textual regedit file into the Windows "
24952 "Registry:"
24953 msgstr ""
24954
24955 # type: verbatim
24956 #: ../tools/virt-win-reg.pl:87
24957 #, no-wrap
24958 msgid ""
24959 " $ virt-win-reg --merge Windows7 changes.reg\n"
24960 "\n"
24961 msgstr ""
24962
24963 # type: =head2
24964 #: ../tools/virt-win-reg.pl:89
24965 msgid "SUPPORTED SYSTEMS"
24966 msgstr ""
24967
24968 # type: textblock
24969 #: ../tools/virt-win-reg.pl:91
24970 msgid ""
24971 "The program currently supports Windows NT-derived guests starting with "
24972 "Windows XP through to at least Windows 7."
24973 msgstr ""
24974
24975 # type: textblock
24976 #: ../tools/virt-win-reg.pl:94
24977 msgid ""
24978 "Registry support is done for C<HKEY_LOCAL_MACHINE\\SAM>, C<HKEY_LOCAL_MACHINE"
24979 "\\SECURITY>, C<HKEY_LOCAL_MACHINE\\SOFTWARE>, C<HKEY_LOCAL_MACHINE\\SYSTEM> "
24980 "and C<HKEY_USERS\\.DEFAULT>."
24981 msgstr ""
24982
24983 # type: textblock
24984 #: ../tools/virt-win-reg.pl:98
24985 msgid ""
24986 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
24987 "C<HKEY_USERS>."
24988 msgstr ""
24989
24990 # type: textblock
24991 #: ../tools/virt-win-reg.pl:101
24992 msgid ""
24993 "C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are B<not> supported at this "
24994 "time."
24995 msgstr ""
24996
24997 # type: =head2
24998 #: ../tools/virt-win-reg.pl:104
24999 msgid "NOTE"
25000 msgstr ""
25001
25002 # type: textblock
25003 #: ../tools/virt-win-reg.pl:106
25004 msgid ""
25005 "This program is only meant for simple access to the registry.  If you want "
25006 "to do complicated things with the registry, we suggest you download the "
25007 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
25008 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
25009 "L<hivexregedit(1)>."
25010 msgstr ""
25011
25012 # type: =head2
25013 #: ../tools/virt-win-reg.pl:112
25014 msgid "ENCODING"
25015 msgstr ""
25016
25017 # type: textblock
25018 #: ../tools/virt-win-reg.pl:114
25019 msgid ""
25020 "C<virt-win-reg> expects that regedit files have already been reencoded in "
25021 "the local encoding.  Usually on Linux hosts, this means UTF-8 with Unix-"
25022 "style line endings.  Since Windows regedit files are often in UTF-16LE with "
25023 "Windows-style line endings, you may need to reencode the whole file before "
25024 "or after processing."
25025 msgstr ""
25026
25027 # type: textblock
25028 #: ../tools/virt-win-reg.pl:120
25029 msgid ""
25030 "To reencode a file from Windows format to Linux (before processing it with "
25031 "the C<--merge> option), you would do something like this:"
25032 msgstr ""
25033
25034 # type: verbatim
25035 #: ../tools/virt-win-reg.pl:123
25036 #, no-wrap
25037 msgid ""
25038 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
25039 "\n"
25040 msgstr ""
25041
25042 # type: textblock
25043 #: ../tools/virt-win-reg.pl:125
25044 msgid ""
25045 "To go in the opposite direction, after exporting and before sending the file "
25046 "to a Windows user, do something like this:"
25047 msgstr ""
25048
25049 # type: verbatim
25050 #: ../tools/virt-win-reg.pl:128
25051 #, no-wrap
25052 msgid ""
25053 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
25054 "\n"
25055 msgstr ""
25056
25057 # type: textblock
25058 #: ../tools/virt-win-reg.pl:130
25059 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
25060 msgstr ""
25061
25062 # type: textblock
25063 #: ../tools/virt-win-reg.pl:132
25064 msgid ""
25065 "If you are unsure about the current encoding, use the L<file(1)> command.  "
25066 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
25067 "style (CRLF) line endings, like this:"
25068 msgstr ""
25069
25070 # type: verbatim
25071 #: ../tools/virt-win-reg.pl:136
25072 #, no-wrap
25073 msgid ""
25074 " $ file software.reg\n"
25075 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
25076 " with CRLF line terminators\n"
25077 "\n"
25078 msgstr ""
25079
25080 # type: textblock
25081 #: ../tools/virt-win-reg.pl:140
25082 msgid "This file would need conversion before you could C<--merge> it."
25083 msgstr ""
25084
25085 # type: textblock
25086 #: ../tools/virt-win-reg.pl:144
25087 msgid ""
25088 "Be careful when passing parameters containing C<\\> (backslash) in the "
25089 "shell.  Usually you will have to use 'single quotes' or double backslashes "
25090 "(but not both) to protect them from the shell."
25091 msgstr ""
25092
25093 # type: textblock
25094 #: ../tools/virt-win-reg.pl:148
25095 msgid "Paths and value names are case-insensitive."
25096 msgstr ""
25097
25098 # type: =head2
25099 #: ../tools/virt-win-reg.pl:150
25100 msgid "CurrentControlSet etc."
25101 msgstr ""
25102
25103 # type: textblock
25104 #: ../tools/virt-win-reg.pl:152
25105 msgid ""
25106 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
25107 "Registry at the level of the hive file, and therefore you cannot modify "
25108 "these."
25109 msgstr ""
25110
25111 # type: textblock
25112 #: ../tools/virt-win-reg.pl:156
25113 msgid ""
25114 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
25115 "circumstances it might refer to another control set.  The way to find out is "
25116 "to look at the C<HKLM\\SYSTEM\\Select> key:"
25117 msgstr ""
25118
25119 # type: verbatim
25120 #: ../tools/virt-win-reg.pl:160
25121 #, no-wrap
25122 msgid ""
25123 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
25124 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
25125 " \"Current\"=dword:00000001\n"
25126 " \"Default\"=dword:00000001\n"
25127 " \"Failed\"=dword:00000000\n"
25128 " \"LastKnownGood\"=dword:00000002\n"
25129 "\n"
25130 msgstr ""
25131
25132 # type: textblock
25133 #: ../tools/virt-win-reg.pl:167
25134 msgid "\"Default\" is the one which Windows will choose when it boots."
25135 msgstr ""
25136
25137 # type: textblock
25138 #: ../tools/virt-win-reg.pl:169
25139 msgid ""
25140 "Similarly, other C<Current...> keys in the path may need to be replaced."
25141 msgstr ""
25142
25143 # type: =item
25144 #: ../tools/virt-win-reg.pl:196 ../tools/virt-make-fs.pl:177
25145 msgid "B<--debug>"
25146 msgstr ""
25147
25148 # type: textblock
25149 #: ../tools/virt-win-reg.pl:198 ../tools/virt-resize.pl:501
25150 msgid "Enable debugging messages."
25151 msgstr ""
25152
25153 # type: =item
25154 #: ../tools/virt-win-reg.pl:233
25155 msgid "B<--merge>"
25156 msgstr ""
25157
25158 # type: textblock
25159 #: ../tools/virt-win-reg.pl:235
25160 msgid ""
25161 "In merge mode, this merges a textual regedit file into the Windows Registry "
25162 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
25163 "displays or exports Registry entries instead."
25164 msgstr ""
25165
25166 # type: textblock
25167 #: ../tools/virt-win-reg.pl:239
25168 msgid ""
25169 "Note that C<--merge> is I<unsafe> to use on live virtual machines, and will "
25170 "result in disk corruption.  However exporting (without this flag)  is always "
25171 "safe."
25172 msgstr ""
25173
25174 # type: =item
25175 #: ../tools/virt-win-reg.pl:247
25176 msgid "B<--encoding> UTF-16LE|ASCII"
25177 msgstr ""
25178
25179 # type: textblock
25180 #: ../tools/virt-win-reg.pl:249
25181 msgid ""
25182 "When merging (only), you may need to specify the encoding for strings to be "
25183 "used in the hive file.  This is explained in detail in L<Win::Hivex::Regedit"
25184 "(3)/ENCODING STRINGS>."
25185 msgstr ""
25186
25187 # type: textblock
25188 #: ../tools/virt-win-reg.pl:253
25189 msgid ""
25190 "The default is to use UTF-16LE, which should work with recent versions of "
25191 "Windows."
25192 msgstr ""
25193
25194 # type: textblock
25195 #: ../tools/virt-win-reg.pl:489
25196 msgid ""
25197 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
25198 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
25199 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
25200 msgstr ""
25201
25202 # type: textblock
25203 #: ../tools/virt-win-reg.pl:504 ../tools/virt-make-fs.pl:550
25204 msgid ""
25205 "When reporting bugs, please enable debugging and capture the I<complete> "
25206 "output:"
25207 msgstr ""
25208
25209 # type: verbatim
25210 #: ../tools/virt-win-reg.pl:507
25211 #, no-wrap
25212 msgid ""
25213 " export LIBGUESTFS_DEBUG=1\n"
25214 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
25215 "\n"
25216 msgstr ""
25217
25218 # type: textblock
25219 #: ../tools/virt-win-reg.pl:510
25220 msgid ""
25221 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."
25222 "redhat.com/>"
25223 msgstr ""
25224
25225 # type: textblock
25226 #: ../tools/virt-win-reg.pl:519 ../tools/virt-resize.pl:1514
25227 #: ../tools/virt-make-fs.pl:565
25228 msgid "Copyright (C) 2010 Red Hat Inc."
25229 msgstr ""
25230
25231 # type: textblock
25232 #: ../tools/virt-df.pl:36
25233 msgid "virt-df - Display free space on virtual filesystems"
25234 msgstr ""
25235
25236 # type: verbatim
25237 #: ../tools/virt-df.pl:40
25238 #, no-wrap
25239 msgid ""
25240 " virt-df [--options]\n"
25241 "\n"
25242 msgstr ""
25243
25244 # type: verbatim
25245 #: ../tools/virt-df.pl:42
25246 #, no-wrap
25247 msgid ""
25248 " virt-df [--options] domname\n"
25249 "\n"
25250 msgstr ""
25251
25252 # type: verbatim
25253 #: ../tools/virt-df.pl:44
25254 #, no-wrap
25255 msgid ""
25256 " virt-df [--options] disk.img [disk.img ...]\n"
25257 "\n"
25258 msgstr ""
25259
25260 # type: textblock
25261 #: ../tools/virt-df.pl:48
25262 msgid ""
25263 "C<virt-df> is a command line tool to display free space on virtual machine "
25264 "filesystems.  Unlike other tools, it doesn't just display the amount of "
25265 "space allocated to a virtual machine, but can look inside the virtual "
25266 "machine to see how much space is really being used."
25267 msgstr ""
25268
25269 # type: textblock
25270 #: ../tools/virt-df.pl:53
25271 msgid ""
25272 "It is like the L<df(1)> command, but for virtual machines, except that it "
25273 "also works for Windows virtual machines."
25274 msgstr ""
25275
25276 # type: textblock
25277 #: ../tools/virt-df.pl:56
25278 msgid ""
25279 "If used without any arguments, C<virt-df> checks with libvirt to get a list "
25280 "of all active and inactive guests, and performs a C<df>-type operation on "
25281 "each one in turn, printing out the results."
25282 msgstr ""
25283
25284 # type: textblock
25285 #: ../tools/virt-df.pl:60
25286 msgid ""
25287 "If used with any argument(s), C<virt-df> performs a C<df>-type operation on "
25288 "either the single named libvirt domain, or on the disk image(s) listed on "
25289 "the command line (which must all belong to a single VM).  In this mode (with "
25290 "arguments), C<virt-df> will I<only work for a single guest>.  If you want to "
25291 "run on multiple guests, then you have to invoke C<virt-df> multiple times."
25292 msgstr ""
25293
25294 # type: textblock
25295 #: ../tools/virt-df.pl:67
25296 msgid ""
25297 "Use the C<--csv> option to get a format which can be easily parsed by other "
25298 "programs.  Other options are mostly similar to standard C<df> options.  See "
25299 "below for the complete list."
25300 msgstr ""
25301
25302 # type: =item
25303 #: ../tools/virt-df.pl:107
25304 msgid "B<--csv>"
25305 msgstr ""
25306
25307 # type: textblock
25308 #: ../tools/virt-df.pl:109
25309 msgid ""
25310 "Write out the results in CSV format (comma-separated values).  This format "
25311 "can be imported easily into databases and spreadsheets, but read L</NOTE "
25312 "ABOUT CSV FORMAT> below."
25313 msgstr ""
25314
25315 # type: =item
25316 #: ../tools/virt-df.pl:134
25317 msgid "B<--human-readable> | B<-h>"
25318 msgstr ""
25319
25320 # type: textblock
25321 #: ../tools/virt-df.pl:136
25322 msgid "Print sizes in human-readable format."
25323 msgstr ""
25324
25325 # type: textblock
25326 #: ../tools/virt-df.pl:138
25327 msgid "You are not allowed to use I<-h> and I<--csv> at the same time."
25328 msgstr ""
25329
25330 # type: =item
25331 #: ../tools/virt-df.pl:144
25332 msgid "B<--inodes> | B<-i>"
25333 msgstr ""
25334
25335 # type: textblock
25336 #: ../tools/virt-df.pl:146
25337 msgid "Print inodes instead of blocks."
25338 msgstr ""
25339
25340 # type: =item
25341 #: ../tools/virt-df.pl:152
25342 msgid "B<--one-per-guest>"
25343 msgstr ""
25344
25345 # type: textblock
25346 #: ../tools/virt-df.pl:154
25347 msgid ""
25348 "Run one libguestfs appliance per guest.  Normally C<virt-df> will add the "
25349 "disks from several guests to a single libguestfs appliance."
25350 msgstr ""
25351
25352 # type: textblock
25353 #: ../tools/virt-df.pl:157
25354 msgid "You might use this option in the following circumstances:"
25355 msgstr ""
25356
25357 # type: textblock
25358 #: ../tools/virt-df.pl:163
25359 msgid ""
25360 "If you think an untrusted guest might actively try to exploit the libguestfs "
25361 "appliance kernel, then this prevents one guest from interfering with the "
25362 "stats printed for another guest."
25363 msgstr ""
25364
25365 # type: textblock
25366 #: ../tools/virt-df.pl:169
25367 msgid ""
25368 "If the kernel has a bug which stops it from accessing a filesystem in one "
25369 "guest (see for example RHBZ#635373) then this allows libguestfs to continue "
25370 "and report stats for further guests."
25371 msgstr ""
25372
25373 # type: =head1
25374 #: ../tools/virt-df.pl:583
25375 msgid "NOTE ABOUT CSV FORMAT"
25376 msgstr ""
25377
25378 # type: textblock
25379 #: ../tools/virt-df.pl:585
25380 msgid ""
25381 "Comma-separated values (CSV) is a deceptive format.  It I<seems> like it "
25382 "should be easy to parse, but it is definitely not easy to parse."
25383 msgstr ""
25384
25385 # type: textblock
25386 #: ../tools/virt-df.pl:588
25387 msgid ""
25388 "Myth: Just split fields at commas.  Reality: This does I<not> work "
25389 "reliably.  This example has two columns:"
25390 msgstr ""
25391
25392 # type: verbatim
25393 #: ../tools/virt-df.pl:591
25394 #, no-wrap
25395 msgid ""
25396 " \"foo,bar\",baz\n"
25397 "\n"
25398 msgstr ""
25399
25400 # type: textblock
25401 #: ../tools/virt-df.pl:593
25402 msgid ""
25403 "Myth: Read the file one line at a time.  Reality: This does I<not> work "
25404 "reliably.  This example has one row:"
25405 msgstr ""
25406
25407 # type: verbatim
25408 #: ../tools/virt-df.pl:596
25409 #, no-wrap
25410 msgid ""
25411 " \"foo\n"
25412 " bar\",baz\n"
25413 "\n"
25414 msgstr ""
25415
25416 # type: textblock
25417 #: ../tools/virt-df.pl:599
25418 msgid ""
25419 "For shell scripts, use C<csvtool> (L<http://merjis.com/developers/csv> also "
25420 "packaged in major Linux distributions)."
25421 msgstr ""
25422
25423 # type: textblock
25424 #: ../tools/virt-df.pl:602
25425 msgid ""
25426 "For other languages, use a CSV processing library (eg. C<Text::CSV> for Perl "
25427 "or Python's built-in csv library)."
25428 msgstr ""
25429
25430 # type: textblock
25431 #: ../tools/virt-df.pl:605
25432 msgid "Most spreadsheets and databases can import CSV directly."
25433 msgstr ""
25434
25435 # type: textblock
25436 #: ../tools/virt-ls.pl:35
25437 msgid "virt-ls - List files in a virtual machine"
25438 msgstr ""
25439
25440 # type: verbatim
25441 #: ../tools/virt-ls.pl:39
25442 #, no-wrap
25443 msgid ""
25444 " virt-ls [--options] domname directory\n"
25445 "\n"
25446 msgstr ""
25447
25448 # type: verbatim
25449 #: ../tools/virt-ls.pl:41
25450 #, no-wrap
25451 msgid ""
25452 " virt-ls [--options] disk.img [disk.img ...] directory\n"
25453 "\n"
25454 msgstr ""
25455
25456 # type: textblock
25457 #: ../tools/virt-ls.pl:45
25458 msgid ""
25459 "C<virt-ls> is a command line tool to list the names of files in a directory "
25460 "inside a virtual machine or disk image."
25461 msgstr ""
25462
25463 # type: textblock
25464 #: ../tools/virt-ls.pl:48
25465 msgid ""
25466 "C<virt-ls> is just a simple wrapper around L<libguestfs(3)> functionality.  "
25467 "For more complex cases you should look at the L<guestfish(1)> tool."
25468 msgstr ""
25469
25470 # type: textblock
25471 #: ../tools/virt-ls.pl:52
25472 msgid ""
25473 "C<virt-ls> can be used in one of three modes: simple, long and recursive.  A "
25474 "simple listing is like the ordinary L<ls(1)> command:"
25475 msgstr ""
25476
25477 # type: verbatim
25478 #: ../tools/virt-ls.pl:55
25479 #, no-wrap
25480 msgid ""
25481 " $ virt-ls myguest /\n"
25482 " bin\n"
25483 " boot\n"
25484 " [etc.]\n"
25485 "\n"
25486 msgstr ""
25487
25488 # type: textblock
25489 #: ../tools/virt-ls.pl:60
25490 msgid "With the C<-l> (C<--long>) option, C<virt-ls> shows more detail:"
25491 msgstr ""
25492
25493 # type: verbatim
25494 #: ../tools/virt-ls.pl:62
25495 #, no-wrap
25496 msgid ""
25497 " $ virt-ls -l myguest /\n"
25498 " total 204\n"
25499 " dr-xr-xr-x.   2 root root   4096 2009-08-25 19:06 bin\n"
25500 " dr-xr-xr-x.   5 root root   3072 2009-08-25 19:06 boot\n"
25501 " [etc.]\n"
25502 "\n"
25503 msgstr ""
25504
25505 # type: textblock
25506 #: ../tools/virt-ls.pl:68
25507 msgid ""
25508 "With the C<-R> (C<--recursive>) option, C<virt-ls> lists the names of files "
25509 "and directories recursively:"
25510 msgstr ""
25511
25512 # type: verbatim
25513 #: ../tools/virt-ls.pl:71
25514 #, no-wrap
25515 msgid ""
25516 " $ virt-ls -R myguest /tmp\n"
25517 " foo\n"
25518 " foo/bar\n"
25519 " [etc.]\n"
25520 "\n"
25521 msgstr ""
25522
25523 # type: textblock
25524 #: ../tools/virt-ls.pl:76
25525 msgid ""
25526 "You I<cannot> combine these options.  To do more complicated things, use "
25527 "L<guestfish(1)>."
25528 msgstr ""
25529
25530 # type: =item
25531 #: ../tools/virt-ls.pl:132 ../tools/virt-list-filesystems.pl:103
25532 #: ../tools/virt-list-partitions.pl:112
25533 msgid "B<-l> | B<--long>"
25534 msgstr ""
25535
25536 # type: =item
25537 #: ../tools/virt-ls.pl:134
25538 msgid "B<-R> | B<--recursive>"
25539 msgstr ""
25540
25541 # type: textblock
25542 #: ../tools/virt-ls.pl:136
25543 msgid ""
25544 "Select the mode.  With neither of these options, C<virt-ls> produces a "
25545 "simple, flat list of the files in the named directory."
25546 msgstr ""
25547
25548 # type: textblock
25549 #: ../tools/virt-ls.pl:139
25550 msgid ""
25551 "C<virt-ls -l> produces a \"long listing\", which shows more detail (just "
25552 "like the plain C<ls -l> command)."
25553 msgstr ""
25554
25555 # type: textblock
25556 #: ../tools/virt-ls.pl:142
25557 msgid ""
25558 "C<virt-ls -R> produces a recursive list of files starting at the named "
25559 "directory.  See the documentation for the C<guestfs_find> command L<guestfs"
25560 "(3)> for precise details."
25561 msgstr ""
25562
25563 # type: textblock
25564 #: ../tools/virt-ls.pl:146
25565 msgid "You cannot combine these options."
25566 msgstr ""
25567
25568 # type: textblock
25569 #: ../tools/virt-ls.pl:237
25570 msgid ""
25571 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<Sys::"
25572 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
25573 "org/>."
25574 msgstr ""
25575
25576 # type: textblock
25577 #: ../tools/virt-resize.pl:42
25578 msgid "virt-resize - Resize a virtual machine disk"
25579 msgstr ""
25580
25581 # type: verbatim
25582 #: ../tools/virt-resize.pl:46
25583 #, no-wrap
25584 msgid ""
25585 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
25586 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
25587 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
25588 "\n"
25589 msgstr ""
25590
25591 # type: textblock
25592 #: ../tools/virt-resize.pl:52
25593 msgid ""
25594 "Virt-resize is a tool which can resize a virtual machine disk, making it "
25595 "larger or smaller overall, and resizing or deleting any partitions contained "
25596 "within."
25597 msgstr ""
25598
25599 # type: textblock
25600 #: ../tools/virt-resize.pl:56
25601 msgid ""
25602 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
25603 "not> be used on live virtual machines - for consistent results, shut the "
25604 "virtual machine down before resizing it."
25605 msgstr ""
25606
25607 # type: textblock
25608 #: ../tools/virt-resize.pl:60
25609 msgid ""
25610 "If you are not familiar with the associated tools: L<virt-list-partitions(1)"
25611 ">, L<virt-list-filesystems(1)> and L<virt-df(1)>, we recommend you go and "
25612 "read those manual pages first."
25613 msgstr ""
25614
25615 # type: textblock
25616 #: ../tools/virt-resize.pl:68
25617 msgid ""
25618 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
25619 "fill the extra 5GB of space."
25620 msgstr ""
25621
25622 # type: verbatim
25623 #: ../tools/virt-resize.pl:71
25624 #, no-wrap
25625 msgid ""
25626 " truncate -r olddisk newdisk; truncate -s +5G newdisk\n"
25627 " virt-list-partitions -lht olddisk\n"
25628 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
25629 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
25630 "\n"
25631 msgstr ""
25632
25633 # type: textblock
25634 #: ../tools/virt-resize.pl:76
25635 msgid ""
25636 "As above, but make the /boot partition 200MB bigger, while giving the "
25637 "remaining space to /dev/sda2:"
25638 msgstr ""
25639
25640 # type: verbatim
25641 #: ../tools/virt-resize.pl:79
25642 #, no-wrap
25643 msgid ""
25644 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 olddisk newdisk\n"
25645 "\n"
25646 msgstr ""
25647
25648 # type: textblock
25649 #: ../tools/virt-resize.pl:81
25650 msgid "As above, but the output format will be uncompressed qcow2:"
25651 msgstr ""
25652
25653 # type: verbatim
25654 #: ../tools/virt-resize.pl:83
25655 #, no-wrap
25656 msgid ""
25657 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
25658 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
25659 "\n"
25660 msgstr ""
25661
25662 # type: =head1
25663 #: ../tools/virt-resize.pl:86
25664 msgid "DETAILED USAGE"
25665 msgstr ""
25666
25667 # type: =head2
25668 #: ../tools/virt-resize.pl:88
25669 msgid "EXPANDING A VIRTUAL MACHINE DISK"
25670 msgstr ""
25671
25672 # type: =item
25673 #: ../tools/virt-resize.pl:92
25674 msgid "1. Shut down the virtual machine"
25675 msgstr ""
25676
25677 # type: =item
25678 #: ../tools/virt-resize.pl:94
25679 msgid "2. Locate input disk image"
25680 msgstr ""
25681
25682 # type: textblock
25683 #: ../tools/virt-resize.pl:96
25684 msgid ""
25685 "Locate the input disk image (ie. the file or device on the host containing "
25686 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
25687 "dumpxml> like this to find the disk image name:"
25688 msgstr ""
25689
25690 # type: verbatim
25691 #: ../tools/virt-resize.pl:100
25692 #, no-wrap
25693 msgid ""
25694 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
25695 " Found 1 nodes:\n"
25696 " -- NODE --\n"
25697 " <source dev=\"/dev/vg/lv_guest\" />\n"
25698 "\n"
25699 msgstr ""
25700
25701 # type: =item
25702 #: ../tools/virt-resize.pl:105
25703 msgid "3. Look at current sizing"
25704 msgstr ""
25705
25706 # type: textblock
25707 #: ../tools/virt-resize.pl:107
25708 msgid ""
25709 "Use L<virt-list-partitions(1)> to display the current partitions and sizes:"
25710 msgstr ""
25711
25712 # type: verbatim
25713 #: ../tools/virt-resize.pl:110
25714 #, no-wrap
25715 msgid ""
25716 " # virt-list-partitions -lht /dev/vg/lv_guest\n"
25717 " /dev/sda1 ext3 101.9M\n"
25718 " /dev/sda2 pv 7.9G\n"
25719 " /dev/sda device 8.0G\n"
25720 "\n"
25721 msgstr ""
25722
25723 # type: textblock
25724 #: ../tools/virt-resize.pl:115
25725 msgid ""
25726 "(This example is a virtual machine with an 8 GB disk which we would like to "
25727 "expand up to 10 GB)."
25728 msgstr ""
25729
25730 # type: =item
25731 #: ../tools/virt-resize.pl:118
25732 msgid "4. Create output disk"
25733 msgstr ""
25734
25735 # type: textblock
25736 #: ../tools/virt-resize.pl:120
25737 msgid ""
25738 "Virt-resize cannot do in-place disk modifications.  You have to have space "
25739 "to store the resized output disk."
25740 msgstr ""
25741
25742 # type: textblock
25743 #: ../tools/virt-resize.pl:123
25744 msgid ""
25745 "To store the resized disk image in a file, create a file of a suitable size:"
25746 msgstr ""
25747
25748 # type: verbatim
25749 #: ../tools/virt-resize.pl:126
25750 #, no-wrap
25751 msgid ""
25752 " # rm -f outdisk\n"
25753 " # truncate -s 10G outdisk\n"
25754 "\n"
25755 msgstr ""
25756
25757 # type: textblock
25758 #: ../tools/virt-resize.pl:129
25759 msgid "Or use L<lvcreate(1)> to create a logical volume:"
25760 msgstr ""
25761
25762 # type: verbatim
25763 #: ../tools/virt-resize.pl:131
25764 #, no-wrap
25765 msgid ""
25766 " # lvcreate -L 10G -n lv_name vg_name\n"
25767 "\n"
25768 msgstr ""
25769
25770 # type: textblock
25771 #: ../tools/virt-resize.pl:133
25772 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
25773 msgstr ""
25774
25775 # type: verbatim
25776 #: ../tools/virt-resize.pl:135
25777 #, no-wrap
25778 msgid ""
25779 " # virsh pool-list\n"
25780 " # virsh vol-create-as poolname newvol 10G\n"
25781 "\n"
25782 msgstr ""
25783
25784 # type: =item
25785 #: ../tools/virt-resize.pl:138
25786 msgid "5. Resize"
25787 msgstr ""
25788
25789 # type: textblock
25790 #: ../tools/virt-resize.pl:140
25791 msgid ""
25792 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
25793 "file) and the output disk.  The output disk is the one created in the "
25794 "previous step."
25795 msgstr ""
25796
25797 # type: verbatim
25798 #: ../tools/virt-resize.pl:144
25799 #, no-wrap
25800 msgid ""
25801 " # virt-resize indisk outdisk\n"
25802 "\n"
25803 msgstr ""
25804
25805 # type: textblock
25806 #: ../tools/virt-resize.pl:146
25807 msgid ""
25808 "This command just copies disk image C<indisk> to disk image C<outdisk> "
25809 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
25810 "larger, then an extra, empty partition is created at the end of the disk "
25811 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
25812 "error."
25813 msgstr ""
25814
25815 # type: textblock
25816 #: ../tools/virt-resize.pl:152
25817 msgid ""
25818 "More realistically you'd want to expand existing partitions in the disk "
25819 "image by passing extra options (for the full list see the L</OPTIONS> "
25820 "section below)."
25821 msgstr ""
25822
25823 # type: textblock
25824 #: ../tools/virt-resize.pl:156
25825 msgid ""
25826 "L</--expand> is the most useful option.  It expands the named partition "
25827 "within the disk to fill any extra space:"
25828 msgstr ""
25829
25830 # type: verbatim
25831 #: ../tools/virt-resize.pl:159
25832 #, no-wrap
25833 msgid ""
25834 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
25835 "\n"
25836 msgstr ""
25837
25838 # type: textblock
25839 #: ../tools/virt-resize.pl:161
25840 msgid ""
25841 "(In this case, an extra partition is I<not> created at the end of the disk, "
25842 "because there will be no unused space)."
25843 msgstr ""
25844
25845 # type: textblock
25846 #: ../tools/virt-resize.pl:164
25847 msgid ""
25848 "L</--resize> is the other commonly used option.  The following would "
25849 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
25850 "rest of the available space:"
25851 msgstr ""
25852
25853 # type: verbatim
25854 #: ../tools/virt-resize.pl:168
25855 #, no-wrap
25856 msgid ""
25857 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
25858 "     indisk outdisk\n"
25859 "\n"
25860 msgstr ""
25861
25862 # type: textblock
25863 #: ../tools/virt-resize.pl:171
25864 msgid ""
25865 "If the expanded partition in the image contains a filesystem or LVM PV, then "
25866 "if virt-resize knows how, it will resize the contents, the equivalent of "
25867 "calling a command such as L<pvresize(8)>, L<resize2fs(8)> or L<ntfsresize(8)"
25868 ">.  However virt-resize does not know how to resize some filesystems, so you "
25869 "would have to online resize them after booting the guest.  And virt-resize "
25870 "also does not resize anything inside an LVM PV, it just resizes the PV "
25871 "itself and leaves the user to resize any LVs inside that PV as desired."
25872 msgstr ""
25873
25874 # type: textblock
25875 #: ../tools/virt-resize.pl:180
25876 msgid "Other options are covered below."
25877 msgstr ""
25878
25879 # type: =item
25880 #: ../tools/virt-resize.pl:182
25881 msgid "6. Test"
25882 msgstr ""
25883
25884 # type: textblock
25885 #: ../tools/virt-resize.pl:184
25886 msgid "Thoroughly test the new disk image I<before> discarding the old one."
25887 msgstr ""
25888
25889 # type: textblock
25890 #: ../tools/virt-resize.pl:186
25891 msgid "If you are using libvirt, edit the XML to point at the new disk:"
25892 msgstr ""
25893
25894 # type: verbatim
25895 #: ../tools/virt-resize.pl:188
25896 #, no-wrap
25897 msgid ""
25898 " # virsh edit guestname\n"
25899 "\n"
25900 msgstr ""
25901
25902 # type: textblock
25903 #: ../tools/virt-resize.pl:190
25904 msgid ""
25905 "Change E<lt>source ...E<gt>, see L<http://libvirt.org/formatdomain."
25906 "html#elementsDisks>"
25907 msgstr ""
25908
25909 # type: textblock
25910 #: ../tools/virt-resize.pl:193
25911 msgid "Then start up the domain with the new, resized disk:"
25912 msgstr ""
25913
25914 # type: verbatim
25915 #: ../tools/virt-resize.pl:195
25916 #, no-wrap
25917 msgid ""
25918 " # virsh start guestname\n"
25919 "\n"
25920 msgstr ""
25921
25922 # type: textblock
25923 #: ../tools/virt-resize.pl:197
25924 msgid ""
25925 "and check that it still works.  See also the L</NOTES> section below for "
25926 "additional information."
25927 msgstr ""
25928
25929 # type: =item
25930 #: ../tools/virt-resize.pl:200
25931 msgid "7. Resize LVs etc inside the guest"
25932 msgstr ""
25933
25934 # type: textblock
25935 #: ../tools/virt-resize.pl:202
25936 msgid "(This can also be done offline using L<guestfish(1)>)"
25937 msgstr ""
25938
25939 # type: textblock
25940 #: ../tools/virt-resize.pl:204
25941 msgid ""
25942 "Once the guest has booted you should see the new space available, at least "
25943 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
25944 "may need to resize LVs inside PVs, and also resize filesystem types that "
25945 "virt-resize does not know how to expand."
25946 msgstr ""
25947
25948 # type: =head2
25949 #: ../tools/virt-resize.pl:211
25950 msgid "SHRINKING A VIRTUAL MACHINE DISK"
25951 msgstr ""
25952
25953 # type: textblock
25954 #: ../tools/virt-resize.pl:213
25955 msgid ""
25956 "Shrinking is somewhat more complex than expanding, and only an overview is "
25957 "given here."
25958 msgstr ""
25959
25960 # type: textblock
25961 #: ../tools/virt-resize.pl:216
25962 msgid ""
25963 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
25964 "filesystems).  The user has to shrink content before passing the disk image "
25965 "to virt-resize, and virt-resize will check that the content has been shrunk "
25966 "properly."
25967 msgstr ""
25968
25969 # type: textblock
25970 #: ../tools/virt-resize.pl:221
25971 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
25972 msgstr ""
25973
25974 # type: textblock
25975 #: ../tools/virt-resize.pl:223
25976 msgid ""
25977 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
25978 "steps 3 and 4 above to allocate a new disk image."
25979 msgstr ""
25980
25981 # type: textblock
25982 #: ../tools/virt-resize.pl:226
25983 msgid ""
25984 "Then run virt-resize with any of the C<--shrink> and/or C<--resize> options."
25985 msgstr ""
25986
25987 # type: =head2
25988 #: ../tools/virt-resize.pl:229
25989 msgid "IGNORING OR DELETING PARTITIONS"
25990 msgstr ""
25991
25992 # type: textblock
25993 #: ../tools/virt-resize.pl:231
25994 msgid ""
25995 "virt-resize also gives a convenient way to ignore or delete partitions when "
25996 "copying from the input disk to the output disk.  Ignoring a partition speeds "
25997 "up the copy where you don't care about the existing contents of a "
25998 "partition.  Deleting a partition removes it completely, but note that it "
25999 "also renumbers any partitions after the one which is deleted, which can "
26000 "leave some guests unbootable."
26001 msgstr ""
26002
26003 # type: =head2
26004 #: ../tools/virt-resize.pl:238
26005 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
26006 msgstr ""
26007
26008 # type: textblock
26009 #: ../tools/virt-resize.pl:240
26010 msgid ""
26011 "If the input disk is in qcow2 format, then you may prefer that the output is "
26012 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
26013 "the fly.  The output format is simply determined by the format of the empty "
26014 "output container that you provide.  Thus to create qcow2 output, use:"
26015 msgstr ""
26016
26017 # type: verbatim
26018 #: ../tools/virt-resize.pl:246
26019 #, no-wrap
26020 msgid ""
26021 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
26022 "\n"
26023 msgstr ""
26024
26025 # type: textblock
26026 #: ../tools/virt-resize.pl:248
26027 msgid "instead of the truncate command (use C<-c> for a compressed disk)."
26028 msgstr ""
26029
26030 # type: textblock
26031 #: ../tools/virt-resize.pl:250
26032 msgid "Similarly, to get non-sparse raw output use:"
26033 msgstr ""
26034
26035 # type: verbatim
26036 #: ../tools/virt-resize.pl:252
26037 #, no-wrap
26038 msgid ""
26039 " fallocate -l size outdisk\n"
26040 "\n"
26041 msgstr ""
26042
26043 # type: textblock
26044 #: ../tools/virt-resize.pl:254
26045 msgid ""
26046 "(on older systems that don't have the L<fallocate(1)> command use C<dd if=/"
26047 "dev/zero of=outdisk bs=1M count=..>)"
26048 msgstr ""
26049
26050 # type: textblock
26051 #: ../tools/virt-resize.pl:267
26052 msgid "Display help."
26053 msgstr ""
26054
26055 # type: =item
26056 #: ../tools/virt-resize.pl:281
26057 msgid "B<--resize part=size>"
26058 msgstr ""
26059
26060 # type: textblock
26061 #: ../tools/virt-resize.pl:283
26062 msgid ""
26063 "Resize the named partition (expanding or shrinking it) so that it has the "
26064 "given size."
26065 msgstr ""
26066
26067 # type: textblock
26068 #: ../tools/virt-resize.pl:286
26069 msgid ""
26070 "C<size> can be expressed as an absolute number followed by b/K/M/G/T/P/E to "
26071 "mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Petabytes or "
26072 "Exabytes; or as a percentage of the current size; or as a relative number or "
26073 "percentage.  For example:"
26074 msgstr ""
26075
26076 # type: verbatim
26077 #: ../tools/virt-resize.pl:291
26078 #, no-wrap
26079 msgid ""
26080 " --resize /dev/sda2=10G\n"
26081 "\n"
26082 msgstr ""
26083
26084 # type: verbatim
26085 #: ../tools/virt-resize.pl:293
26086 #, no-wrap
26087 msgid ""
26088 " --resize /dev/sda4=90%\n"
26089 "\n"
26090 msgstr ""
26091
26092 # type: verbatim
26093 #: ../tools/virt-resize.pl:295
26094 #, no-wrap
26095 msgid ""
26096 " --resize /dev/sda2=+1G\n"
26097 "\n"
26098 msgstr ""
26099
26100 # type: verbatim
26101 #: ../tools/virt-resize.pl:297
26102 #, no-wrap
26103 msgid ""
26104 " --resize /dev/sda2=-200M\n"
26105 "\n"
26106 msgstr ""
26107
26108 # type: verbatim
26109 #: ../tools/virt-resize.pl:299
26110 #, no-wrap
26111 msgid ""
26112 " --resize /dev/sda1=+128K\n"
26113 "\n"
26114 msgstr ""
26115
26116 # type: verbatim
26117 #: ../tools/virt-resize.pl:301
26118 #, no-wrap
26119 msgid ""
26120 " --resize /dev/sda1=+10%\n"
26121 "\n"
26122 msgstr ""
26123
26124 # type: verbatim
26125 #: ../tools/virt-resize.pl:303
26126 #, no-wrap
26127 msgid ""
26128 " --resize /dev/sda1=-10%\n"
26129 "\n"
26130 msgstr ""
26131
26132 # type: textblock
26133 #: ../tools/virt-resize.pl:305
26134 msgid ""
26135 "You can increase the size of any partition.  Virt-resize will expand the "
26136 "direct content of the partition if it knows how (see C<--expand> below)."
26137 msgstr ""
26138
26139 # type: textblock
26140 #: ../tools/virt-resize.pl:309
26141 msgid ""
26142 "You can only I<decrease> the size of partitions that contain filesystems or "
26143 "PVs which have already been shrunk.  Virt-resize will check this has been "
26144 "done before proceeding, or else will print an error (see also C<--resize-"
26145 "force>)."
26146 msgstr ""
26147
26148 # type: textblock
26149 #: ../tools/virt-resize.pl:314 ../tools/virt-resize.pl:406
26150 #: ../tools/virt-resize.pl:423
26151 msgid "You can give this option multiple times."
26152 msgstr ""
26153
26154 # type: =item
26155 #: ../tools/virt-resize.pl:320
26156 msgid "B<--resize-force part=size>"
26157 msgstr ""
26158
26159 # type: textblock
26160 #: ../tools/virt-resize.pl:322
26161 msgid ""
26162 "This is the same as C<--resize> except that it will let you decrease the "
26163 "size of any partition.  Generally this means you will lose any data which "
26164 "was at the end of the partition you shrink, but you may not care about that "
26165 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
26166 "as a swap partition)."
26167 msgstr ""
26168
26169 # type: textblock
26170 #: ../tools/virt-resize.pl:328
26171 msgid "See also the C<--ignore> option."
26172 msgstr ""
26173
26174 # type: =item
26175 #: ../tools/virt-resize.pl:334
26176 msgid "B<--expand part>"
26177 msgstr ""
26178
26179 # type: textblock
26180 #: ../tools/virt-resize.pl:336
26181 msgid ""
26182 "Expand the named partition so it uses up all extra space (space left over "
26183 "after any other resize changes that you request have been done)."
26184 msgstr ""
26185
26186 # type: textblock
26187 #: ../tools/virt-resize.pl:339
26188 msgid ""
26189 "If virt-resize knows how, it will expand the direct content of the "
26190 "partition.  For example, if the partition is an LVM PV, it will expand the "
26191 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
26192 "content it doesn't know about alone."
26193 msgstr ""
26194
26195 # type: textblock
26196 #: ../tools/virt-resize.pl:344
26197 msgid "Currently virt-resize can resize:"
26198 msgstr ""
26199
26200 # type: textblock
26201 #: ../tools/virt-resize.pl:350
26202 msgid ""
26203 "ext2, ext3 and ext4 filesystems when they are contained directly inside a "
26204 "partition."
26205 msgstr ""
26206
26207 # type: textblock
26208 #: ../tools/virt-resize.pl:355
26209 msgid ""
26210 "NTFS filesystems contained directly in a partition, if libguestfs was "
26211 "compiled with support for NTFS."
26212 msgstr ""
26213
26214 # type: textblock
26215 #: ../tools/virt-resize.pl:358
26216 msgid ""
26217 "The filesystem must have been shut down consistently last time it was used.  "
26218 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
26219 "consistency check, so at the first boot after resizing Windows will check "
26220 "the disk."
26221 msgstr ""
26222
26223 # type: textblock
26224 #: ../tools/virt-resize.pl:365
26225 msgid ""
26226 "LVM PVs (physical volumes).  However virt-resize does I<not> resize anything "
26227 "inside the PV.  The user will have to resize LVs as desired."
26228 msgstr ""
26229
26230 # type: textblock
26231 #: ../tools/virt-resize.pl:371 ../tools/virt-resize.pl:393
26232 msgid "Note that you cannot use C<--expand> and C<--shrink> together."
26233 msgstr ""
26234
26235 # type: =item
26236 #: ../tools/virt-resize.pl:377
26237 msgid "B<--shrink part>"
26238 msgstr ""
26239
26240 # type: textblock
26241 #: ../tools/virt-resize.pl:379
26242 msgid ""
26243 "Shrink the named partition until the overall disk image fits in the "
26244 "destination.  The named partition B<must> contain a filesystem or PV which "
26245 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
26246 "online tools).  Virt-resize will check this and give an error if it has not "
26247 "been done."
26248 msgstr ""
26249
26250 # type: textblock
26251 #: ../tools/virt-resize.pl:385
26252 msgid ""
26253 "The amount by which the overall disk must be shrunk (after carrying out all "
26254 "other operations requested by the user) is called the \"deficit\".  For "
26255 "example, a straight copy (assume no other operations)  from a 5GB disk image "
26256 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
26257 "would give an error unless the user specified a partition to shrink and that "
26258 "partition had more than a gigabyte of free space."
26259 msgstr ""
26260
26261 # type: =item
26262 #: ../tools/virt-resize.pl:399
26263 msgid "B<--ignore part>"
26264 msgstr ""
26265
26266 # type: textblock
26267 #: ../tools/virt-resize.pl:401
26268 msgid ""
26269 "Ignore the named partition.  Effectively this means the partition is "
26270 "allocated on the destination disk, but the content is not copied across from "
26271 "the source disk.  The content of the partition will be blank (all zero "
26272 "bytes)."
26273 msgstr ""
26274
26275 # type: =item
26276 #: ../tools/virt-resize.pl:412
26277 msgid "B<--delete part>"
26278 msgstr ""
26279
26280 # type: textblock
26281 #: ../tools/virt-resize.pl:414
26282 msgid ""
26283 "Delete the named partition.  It would be more accurate to describe this as "
26284 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
26285 "the original disk image is left intact."
26286 msgstr ""
26287
26288 # type: textblock
26289 #: ../tools/virt-resize.pl:418
26290 msgid ""
26291 "Note that when you delete a partition, then anything contained in the "
26292 "partition is also deleted.  Furthermore, this causes any partitions that "
26293 "come after to be I<renumbered>, which can easily make your guest unbootable."
26294 msgstr ""
26295
26296 # type: =item
26297 #: ../tools/virt-resize.pl:429
26298 msgid "B<--LV-expand logvol>"
26299 msgstr ""
26300
26301 # type: textblock
26302 #: ../tools/virt-resize.pl:431
26303 msgid ""
26304 "This takes the logical volume and, as a final step, expands it to fill all "
26305 "the space available in its volume group.  A typical usage, assuming a Linux "
26306 "guest with a single PV C</dev/sda2> and a root device called C</dev/vg_guest/"
26307 "lv_root> would be:"
26308 msgstr ""
26309
26310 # type: verbatim
26311 #: ../tools/virt-resize.pl:436
26312 #, no-wrap
26313 msgid ""
26314 " virt-resize indisk outdisk \\\n"
26315 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
26316 "\n"
26317 msgstr ""
26318
26319 # type: textblock
26320 #: ../tools/virt-resize.pl:439
26321 msgid ""
26322 "This would first expand the partition (and PV), and then expand the root "
26323 "device to fill the extra space in the PV."
26324 msgstr ""
26325
26326 # type: textblock
26327 #: ../tools/virt-resize.pl:442
26328 msgid ""
26329 "The contents of the LV are also resized if virt-resize knows how to do "
26330 "that.  You can stop virt-resize from trying to expand the content by using "
26331 "the option C<--no-expand-content>."
26332 msgstr ""
26333
26334 # type: textblock
26335 #: ../tools/virt-resize.pl:446
26336 msgid "Use L<virt-list-filesystems(1)> to list the filesystems in the guest."
26337 msgstr ""
26338
26339 # type: textblock
26340 #: ../tools/virt-resize.pl:449
26341 msgid ""
26342 "You can give this option multiple times, I<but> it doesn't make sense to do "
26343 "this unless the logical volumes you specify are all in different volume "
26344 "groups."
26345 msgstr ""
26346
26347 # type: =item
26348 #: ../tools/virt-resize.pl:457
26349 msgid "B<--no-copy-boot-loader>"
26350 msgstr ""
26351
26352 # type: textblock
26353 #: ../tools/virt-resize.pl:459
26354 msgid ""
26355 "By default, virt-resize copies over some sectors at the start of the disk "
26356 "(up to the beginning of the first partition).  Commonly these sectors "
26357 "contain the Master Boot Record (MBR) and the boot loader, and are required "
26358 "in order for the guest to boot correctly."
26359 msgstr ""
26360
26361 # type: textblock
26362 #: ../tools/virt-resize.pl:464
26363 msgid ""
26364 "If you specify this flag, then this initial copy is not done.  You may need "
26365 "to reinstall the boot loader in this case."
26366 msgstr ""
26367
26368 # type: =item
26369 #: ../tools/virt-resize.pl:472
26370 msgid "B<--no-extra-partition>"
26371 msgstr ""
26372
26373 # type: textblock
26374 #: ../tools/virt-resize.pl:474
26375 msgid ""
26376 "By default, virt-resize creates an extra partition if there is any extra, "
26377 "unused space after all resizing has happened.  Use this option to prevent "
26378 "the extra partition from being created.  If you do this then the extra space "
26379 "will be inaccessible until you run fdisk, parted, or some other partitioning "
26380 "tool in the guest."
26381 msgstr ""
26382
26383 # type: textblock
26384 #: ../tools/virt-resize.pl:480
26385 msgid ""
26386 "Note that if the surplus space is smaller than 10 MB, no extra partition "
26387 "will be created."
26388 msgstr ""
26389
26390 # type: =item
26391 #: ../tools/virt-resize.pl:487
26392 msgid "B<--no-expand-content>"
26393 msgstr ""
26394
26395 # type: textblock
26396 #: ../tools/virt-resize.pl:489
26397 msgid ""
26398 "By default, virt-resize will try to expand the direct contents of "
26399 "partitions, if it knows how (see C<--expand> option above)."
26400 msgstr ""
26401
26402 # type: textblock
26403 #: ../tools/virt-resize.pl:492
26404 msgid ""
26405 "If you give the C<--no-expand-content> option then virt-resize will not "
26406 "attempt this."
26407 msgstr ""
26408
26409 # type: =item
26410 #: ../tools/virt-resize.pl:499
26411 msgid "B<-d> | B<--debug>"
26412 msgstr ""
26413
26414 # type: =item
26415 #: ../tools/virt-resize.pl:507
26416 msgid "B<-n> | B<--dryrun>"
26417 msgstr ""
26418
26419 # type: textblock
26420 #: ../tools/virt-resize.pl:509
26421 msgid "Print a summary of what would be done, but don't do anything."
26422 msgstr ""
26423
26424 # type: =item
26425 #: ../tools/virt-resize.pl:515
26426 msgid "B<-q> | B<--quiet>"
26427 msgstr ""
26428
26429 # type: textblock
26430 #: ../tools/virt-resize.pl:517
26431 msgid "Don't print the summary."
26432 msgstr ""
26433
26434 # type: textblock
26435 #: ../tools/virt-resize.pl:525
26436 msgid ""
26437 "Specify the format of the input disk image.  If this flag is not given then "
26438 "it is auto-detected from the image itself."
26439 msgstr ""
26440
26441 # type: textblock
26442 #: ../tools/virt-resize.pl:531
26443 msgid ""
26444 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
26445 "AND NON-SPARSE RAW FORMATS>."
26446 msgstr ""
26447
26448 # type: =item
26449 #: ../tools/virt-resize.pl:538
26450 msgid "B<--output-format> raw"
26451 msgstr ""
26452
26453 # type: textblock
26454 #: ../tools/virt-resize.pl:540
26455 msgid ""
26456 "Specify the format of the output disk image.  If this flag is not given then "
26457 "it is auto-detected from the image itself."
26458 msgstr ""
26459
26460 # type: textblock
26461 #: ../tools/virt-resize.pl:546
26462 msgid ""
26463 "Note that you still need to create the output disk with the right format.  "
26464 "See L</QCOW2 AND NON-SPARSE RAW FORMATS>."
26465 msgstr ""
26466
26467 # type: =head1
26468 #: ../tools/virt-resize.pl:1422 ../tools/virt-rescue.pl:90
26469 msgid "NOTES"
26470 msgstr ""
26471
26472 # type: =head2
26473 #: ../tools/virt-resize.pl:1424
26474 msgid "\"Partition 1 does not end on cylinder boundary.\""
26475 msgstr ""
26476
26477 # type: textblock
26478 #: ../tools/virt-resize.pl:1426
26479 msgid ""
26480 "Virt-resize aligns partitions to multiples of 64 sectors.  Usually this "
26481 "means the partitions will not be aligned to the ancient CHS geometry.  "
26482 "However CHS geometry is meaningless for disks manufactured since the early "
26483 "1990s, and doubly so for virtual hard drives.  Alignment of partitions to "
26484 "cylinders is not required by any modern operating system."
26485 msgstr ""
26486
26487 # type: =head2
26488 #: ../tools/virt-resize.pl:1433
26489 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
26490 msgstr ""
26491
26492 # type: textblock
26493 #: ../tools/virt-resize.pl:1435
26494 msgid ""
26495 "In Windows Vista and later versions, Microsoft switched to using a separate "
26496 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
26497 "and C</dev/sda2> is the main (C:) drive.  We have not had any luck resizing "
26498 "the boot partition.  Doing so seems to break the guest completely.  However "
26499 "expanding the second partition (ie. C: drive) should work."
26500 msgstr ""
26501
26502 # type: textblock
26503 #: ../tools/virt-resize.pl:1442
26504 msgid ""
26505 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
26506 "NTFS partitions have been expanded.  This is just a safety check and (unless "
26507 "it find errors) is nothing to worry about."
26508 msgstr ""
26509
26510 # type: =head2
26511 #: ../tools/virt-resize.pl:1446
26512 msgid "GUEST BOOT STUCK AT \"GRUB\""
26513 msgstr ""
26514
26515 # type: textblock
26516 #: ../tools/virt-resize.pl:1448
26517 msgid ""
26518 "If a Linux guest does not boot after resizing, and the boot is stuck after "
26519 "printing C<GRUB> on the console, try reinstalling grub.  This sometimes "
26520 "happens on older (RHEL 5-era) guests, for reasons we don't fully understand, "
26521 "although we think is to do with partition alignment."
26522 msgstr ""
26523
26524 # type: verbatim
26525 #: ../tools/virt-resize.pl:1453
26526 #, no-wrap
26527 msgid ""
26528 " guestfish -i -a newdisk\n"
26529 " ><fs> cat /boot/grub/device.map\n"
26530 " # check the contents of this file are sensible or\n"
26531 " # edit the file if necessary\n"
26532 " ><fs> grub-install / /dev/vda\n"
26533 " ><fs> exit\n"
26534 "\n"
26535 msgstr ""
26536
26537 # type: textblock
26538 #: ../tools/virt-resize.pl:1460
26539 msgid ""
26540 "For more flexible guest reconfiguration, including if you need to specify "
26541 "other parameters to grub-install, use L<virt-rescue(1)>."
26542 msgstr ""
26543
26544 # type: =head1
26545 #: ../tools/virt-resize.pl:1463
26546 msgid "ALTERNATIVE TOOLS"
26547 msgstr ""
26548
26549 # type: textblock
26550 #: ../tools/virt-resize.pl:1465
26551 msgid ""
26552 "There are several proprietary tools for resizing partitions.  We won't "
26553 "mention any here."
26554 msgstr ""
26555
26556 # type: textblock
26557 #: ../tools/virt-resize.pl:1468
26558 msgid ""
26559 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
26560 "operations on disk images.  They can resize and move partitions, but I don't "
26561 "think they can do anything with the contents, and they certainly don't "
26562 "understand LVM."
26563 msgstr ""
26564
26565 # type: textblock
26566 #: ../tools/virt-resize.pl:1473
26567 msgid ""
26568 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
26569 "but at a much lower level.  You will probably end up hand-calculating sector "
26570 "offsets, which is something that virt-resize was designed to avoid.  If you "
26571 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
26572 "C<--debug> flag."
26573 msgstr ""
26574
26575 # type: textblock
26576 #: ../tools/virt-resize.pl:1488
26577 msgid ""
26578 "L<virt-list-partitions(1)>, L<virt-list-filesystems(1)>, L<virt-df(1)>, "
26579 "L<guestfs(3)>, L<guestfish(1)>, L<lvm(8)>, L<pvresize(8)>, L<lvresize(8)>, "
26580 "L<resize2fs(8)>, L<ntfsresize(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)"
26581 ">, L<fallocate(1)>, L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, "
26582 "L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
26583 msgstr ""
26584
26585 # type: textblock
26586 #: ../tools/virt-list-filesystems.pl:32
26587 msgid ""
26588 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
26589 msgstr ""
26590
26591 # type: verbatim
26592 #: ../tools/virt-list-filesystems.pl:36
26593 #, no-wrap
26594 msgid ""
26595 " virt-list-filesystems [--options] domname\n"
26596 "\n"
26597 msgstr ""
26598
26599 # type: verbatim
26600 #: ../tools/virt-list-filesystems.pl:38
26601 #, no-wrap
26602 msgid ""
26603 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
26604 "\n"
26605 msgstr ""
26606
26607 # type: textblock
26608 #: ../tools/virt-list-filesystems.pl:42
26609 msgid ""
26610 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
26611 "are contained in a virtual machine or disk image."
26612 msgstr ""
26613
26614 # type: textblock
26615 #: ../tools/virt-list-filesystems.pl:46
26616 msgid ""
26617 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
26618 "functionality.  For more complex cases you should look at the L<guestfish(1)"
26619 "> tool."
26620 msgstr ""
26621
26622 # type: textblock
26623 #: ../tools/virt-list-filesystems.pl:105
26624 msgid ""
26625 "With this option, C<virt-list-filesystems> displays the type of each "
26626 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
26627 msgstr ""
26628
26629 # type: =item
26630 #: ../tools/virt-list-filesystems.pl:112
26631 msgid "B<-a> | B<--all>"
26632 msgstr ""
26633
26634 # type: textblock
26635 #: ../tools/virt-list-filesystems.pl:114
26636 msgid ""
26637 "Normally we only show mountable filesystems.  If this option is given then "
26638 "swap devices are shown too."
26639 msgstr ""
26640
26641 # type: textblock
26642 #: ../tools/virt-list-filesystems.pl:218
26643 msgid ""
26644 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-list-"
26645 "partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)"
26646 ">, L<http://libguestfs.org/>."
26647 msgstr ""
26648
26649 # type: textblock
26650 #: ../tools/virt-cat.pl:34
26651 msgid "virt-cat - Display a file in a virtual machine"
26652 msgstr ""
26653
26654 # type: verbatim
26655 #: ../tools/virt-cat.pl:38
26656 #, no-wrap
26657 msgid ""
26658 " virt-cat [--options] domname file\n"
26659 "\n"
26660 msgstr ""
26661
26662 # type: verbatim
26663 #: ../tools/virt-cat.pl:40
26664 #, no-wrap
26665 msgid ""
26666 " virt-cat [--options] disk.img [disk.img ...] file\n"
26667 "\n"
26668 msgstr ""
26669
26670 # type: textblock
26671 #: ../tools/virt-cat.pl:44
26672 msgid ""
26673 "C<virt-cat> is a command line tool to display the contents of C<file> where "
26674 "C<file> exists in the named virtual machine (or disk image)."
26675 msgstr ""
26676
26677 # type: textblock
26678 #: ../tools/virt-cat.pl:47
26679 msgid ""
26680 "C<virt-cat> can be used to quickly view a single file.  To edit a file, use "
26681 "C<virt-edit>.  For more complex cases you should look at the L<guestfish(1)> "
26682 "tool."
26683 msgstr ""
26684
26685 # type: textblock
26686 #: ../tools/virt-cat.pl:53
26687 msgid ""
26688 "Display C</etc/fstab> file from inside the libvirt VM called C<mydomain>:"
26689 msgstr ""
26690
26691 # type: verbatim
26692 #: ../tools/virt-cat.pl:56
26693 #, no-wrap
26694 msgid ""
26695 " virt-cat mydomain /etc/fstab\n"
26696 "\n"
26697 msgstr ""
26698
26699 # type: textblock
26700 #: ../tools/virt-cat.pl:58
26701 msgid "List syslog messages from a VM:"
26702 msgstr ""
26703
26704 # type: verbatim
26705 #: ../tools/virt-cat.pl:60
26706 #, no-wrap
26707 msgid ""
26708 " virt-cat mydomain /var/log/messages | tail\n"
26709 "\n"
26710 msgstr ""
26711
26712 # type: textblock
26713 #: ../tools/virt-cat.pl:62
26714 msgid "Find out what DHCP IP address a VM acquired:"
26715 msgstr ""
26716
26717 # type: verbatim
26718 #: ../tools/virt-cat.pl:64
26719 #, no-wrap
26720 msgid ""
26721 " virt-cat mydomain /var/log/messages | grep 'dhclient: bound to' | tail\n"
26722 "\n"
26723 msgstr ""
26724
26725 # type: textblock
26726 #: ../tools/virt-cat.pl:66
26727 msgid "Find out what packages were recently installed:"
26728 msgstr ""
26729
26730 # type: verbatim
26731 #: ../tools/virt-cat.pl:68
26732 #, no-wrap
26733 msgid ""
26734 " virt-cat mydomain /var/log/yum.log | tail\n"
26735 "\n"
26736 msgstr ""
26737
26738 # type: textblock
26739 #: ../tools/virt-cat.pl:70
26740 msgid "Find out who is logged on inside a virtual machine:"
26741 msgstr ""
26742
26743 # type: verbatim
26744 #: ../tools/virt-cat.pl:72
26745 #, no-wrap
26746 msgid ""
26747 " virt-cat mydomain /var/run/utmp > /tmp/utmp\n"
26748 " who /tmp/utmp\n"
26749 "\n"
26750 msgstr ""
26751
26752 # type: textblock
26753 #: ../tools/virt-cat.pl:75
26754 msgid "or who was logged on:"
26755 msgstr ""
26756
26757 # type: verbatim
26758 #: ../tools/virt-cat.pl:77
26759 #, no-wrap
26760 msgid ""
26761 " virt-cat mydomain /var/log/wtmp > /tmp/wtmp\n"
26762 " last -f /tmp/wtmp\n"
26763 "\n"
26764 msgstr ""
26765
26766 # type: textblock
26767 #: ../tools/virt-cat.pl:190
26768 msgid ""
26769 "L<guestfs(3)>, L<guestfish(1)>, L<virt-edit(1)>, L<Sys::Guestfs(3)>, L<Sys::"
26770 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
26771 msgstr ""
26772
26773 # type: textblock
26774 #: ../tools/virt-tar.pl:34
26775 msgid "virt-tar - Extract or upload files to a virtual machine"
26776 msgstr ""
26777
26778 # type: verbatim
26779 #: ../tools/virt-tar.pl:38
26780 #, no-wrap
26781 msgid ""
26782 " virt-tar [--options] -x domname directory tarball\n"
26783 "\n"
26784 msgstr ""
26785
26786 # type: verbatim
26787 #: ../tools/virt-tar.pl:40
26788 #, no-wrap
26789 msgid ""
26790 " virt-tar [--options] -u domname tarball directory\n"
26791 "\n"
26792 msgstr ""
26793
26794 # type: verbatim
26795 #: ../tools/virt-tar.pl:42
26796 #, no-wrap
26797 msgid ""
26798 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
26799 "\n"
26800 msgstr ""
26801
26802 # type: verbatim
26803 #: ../tools/virt-tar.pl:44
26804 #, no-wrap
26805 msgid ""
26806 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
26807 "\n"
26808 msgstr ""
26809
26810 # type: textblock
26811 #: ../tools/virt-tar.pl:48
26812 msgid "Download C</home> from the VM into a local tarball:"
26813 msgstr ""
26814
26815 # type: verbatim
26816 #: ../tools/virt-tar.pl:50
26817 #, no-wrap
26818 msgid ""
26819 " virt-tar -x domname /home home.tar\n"
26820 "\n"
26821 msgstr ""
26822
26823 # type: verbatim
26824 #: ../tools/virt-tar.pl:52
26825 #, no-wrap
26826 msgid ""
26827 " virt-tar -zx domname /home home.tar.gz\n"
26828 "\n"
26829 msgstr ""
26830
26831 # type: textblock
26832 #: ../tools/virt-tar.pl:54
26833 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
26834 msgstr ""
26835
26836 # type: verbatim
26837 #: ../tools/virt-tar.pl:56
26838 #, no-wrap
26839 msgid ""
26840 " virt-tar -u domname uploadstuff.tar /tmp\n"
26841 "\n"
26842 msgstr ""
26843
26844 # type: verbatim
26845 #: ../tools/virt-tar.pl:58
26846 #, no-wrap
26847 msgid ""
26848 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
26849 "\n"
26850 msgstr ""
26851
26852 # type: textblock
26853 #: ../tools/virt-tar.pl:62
26854 msgid ""
26855 "You must I<not> use C<virt-tar> with the C<-u> option (upload) on live "
26856 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
26857 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
26858 msgstr ""
26859
26860 # type: textblock
26861 #: ../tools/virt-tar.pl:67
26862 msgid ""
26863 "You can use C<-x> (extract) on live virtual machines, but you might get "
26864 "inconsistent results or errors if there is filesystem activity inside the "
26865 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
26866 "work, but the only way to guarantee consistent results is if the virtual "
26867 "machine is shut down."
26868 msgstr ""
26869
26870 # type: textblock
26871 #: ../tools/virt-tar.pl:75
26872 msgid ""
26873 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
26874 "parts of a guest filesystem.  There are many possibilities: making backups, "
26875 "uploading data files, snooping on guest activity, fixing or customizing "
26876 "guests, etc."
26877 msgstr ""
26878
26879 # type: textblock
26880 #: ../tools/virt-tar.pl:80
26881 msgid ""
26882 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
26883 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
26884 "should look at the L<guestfish(1)> tool."
26885 msgstr ""
26886
26887 # type: textblock
26888 #: ../tools/virt-tar.pl:84
26889 msgid ""
26890 "There are two modes of operation: C<-x> (eXtract) downloads a directory and "
26891 "its contents (recursively) from the virtual machine into a local tarball.  "
26892 "C<-u> uploads from a local tarball, unpacking it into a directory inside the "
26893 "virtual machine.  You cannot use these two options together."
26894 msgstr ""
26895
26896 # type: textblock
26897 #: ../tools/virt-tar.pl:90
26898 msgid ""
26899 "In addition, you may need to use the C<-z> (gZip) option to enable "
26900 "compression.  When uploading, you have to specify C<-z> if the upload file "
26901 "is compressed because virt-tar won't detect this on its own."
26902 msgstr ""
26903
26904 # type: textblock
26905 #: ../tools/virt-tar.pl:94
26906 msgid ""
26907 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
26908 "example it cannot do PKZip files or bzip2 compression.  If you want that "
26909 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
26910 "the L<libguestfs(3)> API)."
26911 msgstr ""
26912
26913 # type: =item
26914 #: ../tools/virt-tar.pl:152
26915 msgid "B<-x> | B<--extract> | B<--download>"
26916 msgstr ""
26917
26918 # type: =item
26919 #: ../tools/virt-tar.pl:154
26920 msgid "B<-u> | B<--upload>"
26921 msgstr ""
26922
26923 # type: textblock
26924 #: ../tools/virt-tar.pl:156
26925 msgid ""
26926 "Use C<-x> to extract (download) a directory from a virtual machine to a "
26927 "local tarball."
26928 msgstr ""
26929
26930 # type: textblock
26931 #: ../tools/virt-tar.pl:159
26932 msgid ""
26933 "Use C<-u> to upload and unpack from a local tarball into a virtual machine.  "
26934 "Please read the L</WARNING> section above before using this option."
26935 msgstr ""
26936
26937 # type: textblock
26938 #: ../tools/virt-tar.pl:163
26939 msgid "You must specify exactly one of these options."
26940 msgstr ""
26941
26942 # type: =item
26943 #: ../tools/virt-tar.pl:169
26944 msgid "B<-z> | B<--gzip>"
26945 msgstr ""
26946
26947 # type: textblock
26948 #: ../tools/virt-tar.pl:171
26949 msgid "Specify that the input or output tarball is gzip-compressed."
26950 msgstr ""
26951
26952 # type: textblock
26953 #: ../tools/virt-tar.pl:285
26954 msgid ""
26955 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<Sys::"
26956 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
26957 "org/>."
26958 msgstr ""
26959
26960 # type: textblock
26961 #: ../tools/virt-rescue.pl:33
26962 msgid "virt-rescue - Run a rescue shell on a virtual machine"
26963 msgstr ""
26964
26965 # type: verbatim
26966 #: ../tools/virt-rescue.pl:37
26967 #, no-wrap
26968 msgid ""
26969 " virt-rescue [--options] domname\n"
26970 "\n"
26971 msgstr ""
26972
26973 # type: verbatim
26974 #: ../tools/virt-rescue.pl:39
26975 #, no-wrap
26976 msgid ""
26977 " virt-rescue [--options] disk.img [disk.img ...]\n"
26978 "\n"
26979 msgstr ""
26980
26981 # type: textblock
26982 #: ../tools/virt-rescue.pl:43
26983 msgid ""
26984 "You must I<not> use C<virt-rescue> on live virtual machines.  Doing so will "
26985 "probably result in disk corruption in the VM.  C<virt-rescue> tries to stop "
26986 "you from doing this, but doesn't catch all cases."
26987 msgstr ""
26988
26989 # type: textblock
26990 #: ../tools/virt-rescue.pl:47
26991 msgid ""
26992 "However if you use the I<--ro> (read only) option, then you can attach a "
26993 "shell to a live virtual machine.  The results might be strange or "
26994 "inconsistent at times but you won't get disk corruption."
26995 msgstr ""
26996
26997 # type: textblock
26998 #: ../tools/virt-rescue.pl:53
26999 msgid ""
27000 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
27001 "need for a CD.  virt-rescue gives you a rescue shell and some simple "
27002 "recovery tools which you can use to examine or rescue a virtual machine or "
27003 "disk image."
27004 msgstr ""
27005
27006 # type: textblock
27007 #: ../tools/virt-rescue.pl:58
27008 msgid ""
27009 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
27010 "on disk image(s):"
27011 msgstr ""
27012
27013 # type: verbatim
27014 #: ../tools/virt-rescue.pl:61
27015 #, no-wrap
27016 msgid ""
27017 " virt-rescue GuestName\n"
27018 "\n"
27019 msgstr ""
27020
27021 # type: verbatim
27022 #: ../tools/virt-rescue.pl:63
27023 #, no-wrap
27024 msgid ""
27025 " virt-rescue --ro /path/to/disk.img\n"
27026 "\n"
27027 msgstr ""
27028
27029 # type: verbatim
27030 #: ../tools/virt-rescue.pl:65
27031 #, no-wrap
27032 msgid ""
27033 " virt-rescue /dev/sdc\n"
27034 "\n"
27035 msgstr ""
27036
27037 # type: textblock
27038 #: ../tools/virt-rescue.pl:67
27039 msgid "For live VMs you I<must> use the --ro option."
27040 msgstr ""
27041
27042 # type: textblock
27043 #: ../tools/virt-rescue.pl:69
27044 msgid ""
27045 "When you run virt-rescue on a virtual machine or disk image, you are placed "
27046 "in an interactive bash shell where you can use many ordinary Linux "
27047 "commands.  What you see in C</> (C</bin>, C</lib> etc) is the rescue "
27048 "appliance.  You must mount the virtual machine's filesystems by hand.  There "
27049 "is an empty directory called C</sysroot> where you can mount filesystems."
27050 msgstr ""
27051
27052 # type: textblock
27053 #: ../tools/virt-rescue.pl:76
27054 msgid ""
27055 "In the example below, we list logical volumes, then choose one to mount "
27056 "under C</sysroot>:"
27057 msgstr ""
27058
27059 # type: verbatim
27060 #: ../tools/virt-rescue.pl:79
27061 #, no-wrap
27062 msgid ""
27063 " ><rescue> lvs\n"
27064 " LV      VG        Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n"
27065 " lv_root vg_f11x64 -wi-a-   8.83G\n"
27066 " lv_swap vg_f11x64 -wi-a- 992.00M\n"
27067 " ><rescue> mount /dev/vg_f11x64/lv_root /sysroot\n"
27068 " ><rescue> ls /sysroot\n"
27069 "\n"
27070 msgstr ""
27071
27072 # type: textblock
27073 #: ../tools/virt-rescue.pl:86
27074 msgid ""
27075 "If you don't know what filesystems are available on the virtual machine then "
27076 "you can use commands such as L<parted(8)> and L<lvs(8)> to find out."
27077 msgstr ""
27078
27079 # type: textblock
27080 #: ../tools/virt-rescue.pl:92
27081 msgid ""
27082 "Virt-rescue can be used on I<any> disk image file or device, not just a "
27083 "virtual machine.  For example you can use it on a blank file if you want to "
27084 "partition that file (although we would recommend using L<guestfish(1)> "
27085 "instead as it is more suitable for this purpose).  You can even use virt-"
27086 "rescue on things like SD cards."
27087 msgstr ""
27088
27089 # type: textblock
27090 #: ../tools/virt-rescue.pl:98
27091 msgid ""
27092 "This tool is just designed for quick interactive hacking on a virtual "
27093 "machine.  For more structured access to a virtual machine disk image, you "
27094 "should use L<guestfs(3)>.  To get a structured shell that you can use to "
27095 "make scripted changes to guests, use L<guestfish(1)>."
27096 msgstr ""
27097
27098 # type: =item
27099 #: ../tools/virt-rescue.pl:127
27100 msgid "B<--append kernelopts>"
27101 msgstr ""
27102
27103 # type: textblock
27104 #: ../tools/virt-rescue.pl:129
27105 msgid "Pass additional options to the rescue kernel."
27106 msgstr ""
27107
27108 # type: =item
27109 #: ../tools/virt-rescue.pl:164
27110 msgid "B<--memsize MB> | B<-m MB>"
27111 msgstr ""
27112
27113 # type: textblock
27114 #: ../tools/virt-rescue.pl:166
27115 msgid ""
27116 "Change the amount of memory allocated to the rescue system.  The default is "
27117 "set by libguestfs and is small but adequate for running system tools.  The "
27118 "occasional program might need more memory.  The parameter is specified in "
27119 "megabytes."
27120 msgstr ""
27121
27122 # type: =item
27123 #: ../tools/virt-rescue.pl:175
27124 msgid "B<--ro> | B<-r>"
27125 msgstr ""
27126
27127 # type: textblock
27128 #: ../tools/virt-rescue.pl:177
27129 msgid "Open the image read-only."
27130 msgstr ""
27131
27132 # type: textblock
27133 #: ../tools/virt-rescue.pl:189
27134 msgid ""
27135 "Enable SELinux in the rescue appliance.  You should read L<guestfs(3)/"
27136 "SELINUX> before using this option."
27137 msgstr ""
27138
27139 # type: textblock
27140 #: ../tools/virt-rescue.pl:247
27141 msgid ""
27142 "Several environment variables affect virt-rescue.  See L<guestfs(3)/"
27143 "ENVIRONMENT VARIABLES> for the complete list."
27144 msgstr ""
27145
27146 # type: textblock
27147 #: ../tools/virt-rescue.pl:259
27148 msgid ""
27149 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::"
27150 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
27151 msgstr ""
27152
27153 # type: textblock
27154 #: ../tools/virt-make-fs.pl:37
27155 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
27156 msgstr ""
27157
27158 # type: verbatim
27159 #: ../tools/virt-make-fs.pl:41
27160 #, no-wrap
27161 msgid ""
27162 " virt-make-fs [--options] input.tar output.img\n"
27163 "\n"
27164 msgstr ""
27165
27166 # type: verbatim
27167 #: ../tools/virt-make-fs.pl:43
27168 #, no-wrap
27169 msgid ""
27170 " virt-make-fs [--options] input.tar.gz output.img\n"
27171 "\n"
27172 msgstr ""
27173
27174 # type: verbatim
27175 #: ../tools/virt-make-fs.pl:45
27176 #, no-wrap
27177 msgid ""
27178 " virt-make-fs [--options] directory output.img\n"
27179 "\n"
27180 msgstr ""
27181
27182 # type: textblock
27183 #: ../tools/virt-make-fs.pl:49
27184 msgid ""
27185 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
27186 "archive or some files in a directory.  It is similar to tools like L<mkisofs"
27187 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, it can "
27188 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
27189 "you want to attach these filesystems to existing virtual machines (eg. to "
27190 "import large amounts of read-only data to a VM)."
27191 msgstr ""
27192
27193 # type: textblock
27194 #: ../tools/virt-make-fs.pl:57
27195 msgid "Basic usage is:"
27196 msgstr ""
27197
27198 # type: verbatim
27199 #: ../tools/virt-make-fs.pl:59
27200 #, no-wrap
27201 msgid ""
27202 " virt-make-fs input output\n"
27203 "\n"
27204 msgstr ""
27205
27206 # type: textblock
27207 #: ../tools/virt-make-fs.pl:61
27208 msgid ""
27209 "where C<input> is either a directory containing files that you want to add, "
27210 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
27211 "C<output> is a disk image.  The input type is detected automatically.  The "
27212 "output disk image defaults to a raw ext2 image unless you specify extra "
27213 "flags (see L</OPTIONS> below)."
27214 msgstr ""
27215
27216 # type: =head2
27217 #: ../tools/virt-make-fs.pl:67
27218 msgid "EXTRA SPACE"
27219 msgstr ""
27220
27221 # type: textblock
27222 #: ../tools/virt-make-fs.pl:69
27223 msgid ""
27224 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
27225 "the files that it contains, but might have extra space.  Depending on how "
27226 "you are going to use the output, you might think this extra space is wasted "
27227 "and want to minimize it, or you might want to leave space so that more files "
27228 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
27229 "but you can use the C<--size> flag to leave space in the filesystem if you "
27230 "want it."
27231 msgstr ""
27232
27233 # type: textblock
27234 #: ../tools/virt-make-fs.pl:77
27235 msgid ""
27236 "An alternative way to leave extra space but not make the output image any "
27237 "bigger is to use an alternative disk image format (instead of the default "
27238 "\"raw\" format).  Using C<--format=qcow2> will use the native QEmu/KVM qcow2 "
27239 "image format (check your hypervisor supports this before using it).  This "
27240 "allows you to choose a large C<--size> but the extra space won't actually be "
27241 "allocated in the image until you try to store something in it."
27242 msgstr ""
27243
27244 # type: textblock
27245 #: ../tools/virt-make-fs.pl:85
27246 msgid ""
27247 "Don't forget that you can also use local commands including L<resize2fs(8)> "
27248 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-"
27249 "resize to build another image from scratch."
27250 msgstr ""
27251
27252 # type: =head3
27253 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123
27254 #: ../tools/virt-make-fs.pl:142
27255 msgid "EXAMPLE"
27256 msgstr ""
27257
27258 # type: verbatim
27259 #: ../tools/virt-make-fs.pl:91
27260 #, no-wrap
27261 msgid ""
27262 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
27263 "\n"
27264 msgstr ""
27265
27266 # type: =head2
27267 #: ../tools/virt-make-fs.pl:93
27268 msgid "FILESYSTEM TYPE"
27269 msgstr ""
27270
27271 # type: textblock
27272 #: ../tools/virt-make-fs.pl:95
27273 msgid ""
27274 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
27275 "libguestfs supports can be used (but I<not> read-only formats like "
27276 "ISO9660).  Here are some of the more common choices:"
27277 msgstr ""
27278
27279 # type: =item
27280 #: ../tools/virt-make-fs.pl:101
27281 msgid "I<ext3>"
27282 msgstr ""
27283
27284 # type: textblock
27285 #: ../tools/virt-make-fs.pl:103
27286 msgid ""
27287 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
27288 "you are not going to use the filesystem in a way that requires the journal, "
27289 "then this is just wasted overhead."
27290 msgstr ""
27291
27292 # type: =item
27293 #: ../tools/virt-make-fs.pl:107
27294 msgid "I<ntfs> or I<vfat>"
27295 msgstr ""
27296
27297 # type: textblock
27298 #: ../tools/virt-make-fs.pl:109
27299 msgid "Useful if exporting data to a Windows guest."
27300 msgstr ""
27301
27302 # type: textblock
27303 #: ../tools/virt-make-fs.pl:111
27304 msgid ""
27305 "I<Note for vfat>: The tar archive or local directory must only contain files "
27306 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
27307 "program running within libguestfs is unable to change the ownership of non-"
27308 "root files, since vfat itself does not support this."
27309 msgstr ""
27310
27311 # type: =item
27312 #: ../tools/virt-make-fs.pl:116
27313 msgid "I<minix>"
27314 msgstr ""
27315
27316 # type: textblock
27317 #: ../tools/virt-make-fs.pl:118
27318 msgid ""
27319 "Lower overhead than C<ext2>, but certain limitations on filename length and "
27320 "total filesystem size."
27321 msgstr ""
27322
27323 # type: verbatim
27324 #: ../tools/virt-make-fs.pl:125
27325 #, no-wrap
27326 msgid ""
27327 " virt-make-fs --type=minix input minixfs.img\n"
27328 "\n"
27329 msgstr ""
27330
27331 # type: =head2
27332 #: ../tools/virt-make-fs.pl:127
27333 msgid "TO PARTITION OR NOT TO PARTITION"
27334 msgstr ""
27335
27336 # type: textblock
27337 #: ../tools/virt-make-fs.pl:129
27338 msgid "Optionally virt-make-fs can add a partition table to the output disk."
27339 msgstr ""
27340
27341 # type: textblock
27342 #: ../tools/virt-make-fs.pl:131
27343 msgid ""
27344 "Adding a partition can make the disk image more compatible with certain "
27345 "virtualized operating systems which don't expect to see a filesystem "
27346 "directly located on a block device (Linux doesn't care and will happily "
27347 "handle both types)."
27348 msgstr ""
27349
27350 # type: textblock
27351 #: ../tools/virt-make-fs.pl:136
27352 msgid ""
27353 "On the other hand, if you have a partition table then the output image is no "
27354 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
27355 "directly on a partitioned disk image.  (However libguestfs tools such as "
27356 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
27357 msgstr ""
27358
27359 # type: textblock
27360 #: ../tools/virt-make-fs.pl:144
27361 msgid "Add an MBR partition:"
27362 msgstr ""
27363
27364 # type: verbatim
27365 #: ../tools/virt-make-fs.pl:146
27366 #, no-wrap
27367 msgid ""
27368 " virt-make-fs --partition -- input disk.img\n"
27369 "\n"
27370 msgstr ""
27371
27372 # type: textblock
27373 #: ../tools/virt-make-fs.pl:148
27374 msgid ""
27375 "If the output disk image could be terabyte-sized or larger, it's better to "
27376 "use an EFI/GPT-compatible partition table:"
27377 msgstr ""
27378
27379 # type: verbatim
27380 #: ../tools/virt-make-fs.pl:151
27381 #, no-wrap
27382 msgid ""
27383 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
27384 "\n"
27385 msgstr ""
27386
27387 # type: textblock
27388 #: ../tools/virt-make-fs.pl:179
27389 msgid "Enable debugging information."
27390 msgstr ""
27391
27392 # type: =item
27393 #: ../tools/virt-make-fs.pl:185
27394 msgid "B<--size=E<lt>NE<gt>>"
27395 msgstr ""
27396
27397 # type: =item
27398 #: ../tools/virt-make-fs.pl:187
27399 msgid "B<--size=+E<lt>NE<gt>>"
27400 msgstr ""
27401
27402 # type: =item
27403 #: ../tools/virt-make-fs.pl:189
27404 msgid "B<-s E<lt>NE<gt>>"
27405 msgstr ""
27406
27407 # type: =item
27408 #: ../tools/virt-make-fs.pl:191
27409 msgid "B<-s +E<lt>NE<gt>>"
27410 msgstr ""
27411
27412 # type: textblock
27413 #: ../tools/virt-make-fs.pl:193
27414 msgid ""
27415 "Use the C<--size> (or C<-s>) option to choose the size of the output image."
27416 msgstr ""
27417
27418 # type: textblock
27419 #: ../tools/virt-make-fs.pl:196
27420 msgid ""
27421 "If this option is I<not> given, then the output image will be just large "
27422 "enough to contain all the files, with not much wasted space."
27423 msgstr ""
27424
27425 # type: textblock
27426 #: ../tools/virt-make-fs.pl:199
27427 msgid ""
27428 "To choose a fixed size output disk, specify an absolute number followed by b/"
27429 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
27430 "Petabytes or Exabytes.  This must be large enough to contain all the input "
27431 "files, else you will get an error."
27432 msgstr ""
27433
27434 # type: textblock
27435 #: ../tools/virt-make-fs.pl:204
27436 msgid ""
27437 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
27438 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
27439 "Petabytes or Exabytes.  For example: C<--size=+200M> means enough space for "
27440 "the input files, and (approximately) an extra 200 MB free space."
27441 msgstr ""
27442
27443 # type: textblock
27444 #: ../tools/virt-make-fs.pl:210
27445 msgid ""
27446 "Note that virt-make-fs estimates free space, and therefore will not produce "
27447 "filesystems containing precisely the free space requested.  (It is much more "
27448 "expensive and time-consuming to produce a filesystem which has precisely the "
27449 "desired free space)."
27450 msgstr ""
27451
27452 # type: =item
27453 #: ../tools/virt-make-fs.pl:219
27454 msgid "B<--format=E<lt>fmtE<gt>>"
27455 msgstr ""
27456
27457 # type: =item
27458 #: ../tools/virt-make-fs.pl:221
27459 msgid "B<-F E<lt>fmtE<gt>>"
27460 msgstr ""
27461
27462 # type: textblock
27463 #: ../tools/virt-make-fs.pl:223
27464 msgid "Choose the output disk image format."
27465 msgstr ""
27466
27467 # type: textblock
27468 #: ../tools/virt-make-fs.pl:225
27469 msgid "The default is C<raw> (raw disk image)."
27470 msgstr ""
27471
27472 # type: textblock
27473 #: ../tools/virt-make-fs.pl:227
27474 msgid ""
27475 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
27476 "that would really make sense here is C<qcow2>."
27477 msgstr ""
27478
27479 # type: =item
27480 #: ../tools/virt-make-fs.pl:234
27481 msgid "B<--type=E<lt>fsE<gt>>"
27482 msgstr ""
27483
27484 # type: =item
27485 #: ../tools/virt-make-fs.pl:236
27486 msgid "B<-t E<lt>fsE<gt>>"
27487 msgstr ""
27488
27489 # type: textblock
27490 #: ../tools/virt-make-fs.pl:238
27491 msgid "Choose the output filesystem type."
27492 msgstr ""
27493
27494 # type: textblock
27495 #: ../tools/virt-make-fs.pl:240
27496 msgid "The default is C<ext2>."
27497 msgstr ""
27498
27499 # type: textblock
27500 #: ../tools/virt-make-fs.pl:242
27501 msgid ""
27502 "Any filesystem which is supported read-write by libguestfs can be used here."
27503 msgstr ""
27504
27505 # type: =item
27506 #: ../tools/virt-make-fs.pl:249
27507 msgid "B<--partition>"
27508 msgstr ""
27509
27510 # type: =item
27511 #: ../tools/virt-make-fs.pl:251
27512 msgid "B<--partition=E<lt>parttypeE<gt>>"
27513 msgstr ""
27514
27515 # type: textblock
27516 #: ../tools/virt-make-fs.pl:253
27517 msgid ""
27518 "If specified, this flag adds an MBR partition table to the output disk image."
27519 msgstr ""
27520
27521 # type: textblock
27522 #: ../tools/virt-make-fs.pl:256
27523 msgid ""
27524 "You can change the partition table type, eg. C<--partition=gpt> for large "
27525 "disks."
27526 msgstr ""
27527
27528 # type: textblock
27529 #: ../tools/virt-make-fs.pl:259
27530 msgid ""
27531 "Note that if you just use a lonesome C<--partition>, the Perl option parser "
27532 "might consider the next parameter to be the partition type.  For example:"
27533 msgstr ""
27534
27535 # type: verbatim
27536 #: ../tools/virt-make-fs.pl:263
27537 #, no-wrap
27538 msgid ""
27539 " virt-make-fs --partition input.tar ...\n"
27540 "\n"
27541 msgstr ""
27542
27543 # type: textblock
27544 #: ../tools/virt-make-fs.pl:265
27545 msgid ""
27546 "would cause virt-make-fs to think you wanted to use a partition type of "
27547 "C<input.tar> which is completely wrong.  To avoid this, use C<--> (a double "
27548 "dash) between options and the input file argument:"
27549 msgstr ""
27550
27551 # type: verbatim
27552 #: ../tools/virt-make-fs.pl:269
27553 #, no-wrap
27554 msgid ""
27555 " virt-make-fs --partition -- input.tar ...\n"
27556 "\n"
27557 msgstr ""
27558
27559 # type: textblock
27560 #: ../tools/virt-make-fs.pl:536
27561 msgid ""
27562 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar(1)>, L<mkisofs(1)>, "
27563 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
27564 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
27565 msgstr ""
27566
27567 # type: verbatim
27568 #: ../tools/virt-make-fs.pl:553
27569 #, no-wrap
27570 msgid ""
27571 " export LIBGUESTFS_DEBUG=1\n"
27572 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
27573 "\n"
27574 msgstr ""
27575
27576 # type: textblock
27577 #: ../tools/virt-make-fs.pl:556
27578 msgid ""
27579 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
27580 "redhat.com/>"
27581 msgstr ""
27582
27583 # type: textblock
27584 #: ../tools/virt-list-partitions.pl:32
27585 msgid ""
27586 "virt-list-partitions - List partitions in a virtual machine or disk image"
27587 msgstr ""
27588
27589 # type: verbatim
27590 #: ../tools/virt-list-partitions.pl:36
27591 #, no-wrap
27592 msgid ""
27593 " virt-list-partitions [--options] domname\n"
27594 "\n"
27595 msgstr ""
27596
27597 # type: verbatim
27598 #: ../tools/virt-list-partitions.pl:38
27599 #, no-wrap
27600 msgid ""
27601 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
27602 "\n"
27603 msgstr ""
27604
27605 # type: textblock
27606 #: ../tools/virt-list-partitions.pl:42
27607 msgid ""
27608 "C<virt-list-partitions> is a command line tool to list the partitions that "
27609 "are contained in a virtual machine or disk image.  It is mainly useful as a "
27610 "first step to using L<virt-resize(1)>."
27611 msgstr ""
27612
27613 # type: textblock
27614 #: ../tools/virt-list-partitions.pl:47
27615 msgid ""
27616 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
27617 "functionality.  For more complex cases you should look at the L<guestfish(1)"
27618 "> tool."
27619 msgstr ""
27620
27621 # type: =item
27622 #: ../tools/virt-list-partitions.pl:104
27623 msgid "B<-h> | B<--human-readable>"
27624 msgstr ""
27625
27626 # type: textblock
27627 #: ../tools/virt-list-partitions.pl:106
27628 msgid "Show sizes in human-readable form (eg. \"1G\")."
27629 msgstr ""
27630
27631 # type: textblock
27632 #: ../tools/virt-list-partitions.pl:114
27633 msgid ""
27634 "With this option, C<virt-list-partitions> displays the type and size of each "
27635 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
27636 msgstr ""
27637
27638 # type: =item
27639 #: ../tools/virt-list-partitions.pl:121
27640 msgid "B<-t> | B<--total>"
27641 msgstr ""
27642
27643 # type: textblock
27644 #: ../tools/virt-list-partitions.pl:123
27645 msgid ""
27646 "Display the total size of each block device (as a separate row or rows)."
27647 msgstr ""
27648
27649 # type: textblock
27650 #: ../tools/virt-list-partitions.pl:256
27651 msgid ""
27652 "L<guestfs(3)>, L<guestfish(1)>, L<virt-list-filesystems(1)>, L<virt-resize(1)"
27653 ">, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
27654 "libguestfs.org/>."
27655 msgstr ""