Version 1.5.16.
[libguestfs.git] / po-docs / libguestfs-docs.pot
1 # SOME DESCRIPTIVE TITLE
2 # Copyright (C) YEAR Red Hat Inc.
3 # This file is distributed under the same license as the libguestfs package.
4 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5 #
6 #, fuzzy
7 msgid ""
8 msgstr ""
9 "Project-Id-Version: libguestfs 1.5.16\n"
10 "Report-Msgid-Bugs-To: libguestfs@redhat.com\n"
11 "POT-Creation-Date: 2010-09-15 22:12+0200\n"
12 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
13 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14 "Language-Team: LANGUAGE <LL@li.org>\n"
15 "MIME-Version: 1.0\n"
16 "Content-Type: text/plain; charset=utf-8\n"
17 "Content-Transfer-Encoding: ENCODING"
18
19 # type: =encoding
20 #: ../src/guestfs.pod:1 ../fish/guestfish.pod:1 ../test-tool/libguestfs-test-tool.pod:1 ../fuse/guestmount.pod:1 ../inspector/virt-inspector.pl:36 ../tools/virt-cat.pl:30 ../tools/virt-df.pl:32 ../tools/virt-edit.pl:31 ../tools/virt-list-filesystems.pl:28 ../tools/virt-list-partitions.pl:28 ../tools/virt-ls.pl:31 ../tools/virt-make-fs.pl:33 ../tools/virt-rescue.pl:29 ../tools/virt-resize.pl:38 ../tools/virt-tar.pl:30 ../tools/virt-win-reg.pl:34
21 msgid "utf8"
22 msgstr ""
23
24 # type: =head1
25 #: ../src/guestfs.pod:3 ../fish/guestfish.pod:3 ../test-tool/libguestfs-test-tool.pod:3 ../fuse/guestmount.pod:3 ../inspector/virt-inspector.pl:38 ../tools/virt-cat.pl:32 ../tools/virt-df.pl:34 ../tools/virt-edit.pl:33 ../tools/virt-list-filesystems.pl:30 ../tools/virt-list-partitions.pl:30 ../tools/virt-ls.pl:33 ../tools/virt-make-fs.pl:35 ../tools/virt-rescue.pl:31 ../tools/virt-resize.pl:40 ../tools/virt-tar.pl:32 ../tools/virt-win-reg.pl:36
26 msgid "NAME"
27 msgstr ""
28
29 # type: textblock
30 #: ../src/guestfs.pod:5
31 msgid "guestfs - Library for accessing and modifying virtual machine images"
32 msgstr ""
33
34 # type: =head1
35 #: ../src/guestfs.pod:7 ../fish/guestfish.pod:7 ../test-tool/libguestfs-test-tool.pod:7 ../fuse/guestmount.pod:7 ../inspector/virt-inspector.pl:42 ../tools/virt-cat.pl:36 ../tools/virt-df.pl:38 ../tools/virt-edit.pl:37 ../tools/virt-list-filesystems.pl:34 ../tools/virt-list-partitions.pl:34 ../tools/virt-ls.pl:37 ../tools/virt-make-fs.pl:39 ../tools/virt-rescue.pl:35 ../tools/virt-resize.pl:44 ../tools/virt-tar.pl:36 ../tools/virt-win-reg.pl:40
36 msgid "SYNOPSIS"
37 msgstr ""
38
39 # type: verbatim
40 #: ../src/guestfs.pod:9
41 #, no-wrap
42 msgid ""
43 " #include <guestfs.h>\n"
44 " \n"
45 msgstr ""
46
47 # type: verbatim
48 #: ../src/guestfs.pod:11
49 #, no-wrap
50 msgid ""
51 " guestfs_h *g = guestfs_create ();\n"
52 " guestfs_add_drive (g, \"guest.img\");\n"
53 " guestfs_launch (g);\n"
54 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
55 " guestfs_touch (g, \"/hello\");\n"
56 " guestfs_umount (g, \"/\");\n"
57 " guestfs_sync (g);\n"
58 " guestfs_close (g);\n"
59 "\n"
60 msgstr ""
61
62 # type: verbatim
63 #: ../src/guestfs.pod:20
64 #, no-wrap
65 msgid ""
66 " cc prog.c -o prog -lguestfs\n"
67 "or:\n"
68 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
69 "\n"
70 msgstr ""
71
72 # type: =head1
73 #: ../src/guestfs.pod:24 ../fish/guestfish.pod:115 ../test-tool/libguestfs-test-tool.pod:11 ../fuse/guestmount.pod:16 ../inspector/virt-inspector.pl:48 ../tools/virt-cat.pl:42 ../tools/virt-df.pl:46 ../tools/virt-edit.pl:51 ../tools/virt-list-filesystems.pl:40 ../tools/virt-list-partitions.pl:40 ../tools/virt-ls.pl:43 ../tools/virt-make-fs.pl:47 ../tools/virt-rescue.pl:51 ../tools/virt-resize.pl:50 ../tools/virt-tar.pl:73 ../tools/virt-win-reg.pl:64
74 msgid "DESCRIPTION"
75 msgstr ""
76
77 # type: textblock
78 #: ../src/guestfs.pod:26
79 msgid ""
80 "Libguestfs is a library for accessing and modifying guest disk images.  "
81 "Amongst the things this is good for: making batch configuration changes to "
82 "guests, getting disk used/free statistics (see also: virt-df), migrating "
83 "between virtualization systems (see also: virt-p2v), performing partial "
84 "backups, performing partial guest clones, cloning guests and changing "
85 "registry/UUID/hostname info, and much else besides."
86 msgstr ""
87
88 # type: textblock
89 #: ../src/guestfs.pod:34
90 msgid ""
91 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
92 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
93 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
94 "qcow2, vmdk."
95 msgstr ""
96
97 # type: textblock
98 #: ../src/guestfs.pod:39
99 msgid ""
100 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
101 "what filesystem is in each LV, etc.).  It can also run commands in the "
102 "context of the guest.  Also you can access filesystems over FUSE."
103 msgstr ""
104
105 # type: textblock
106 #: ../src/guestfs.pod:44
107 msgid ""
108 "Libguestfs is a library that can be linked with C and C++ management "
109 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
110 "PHP, Haskell or C#).  You can also use it from shell scripts or the command "
111 "line."
112 msgstr ""
113
114 # type: textblock
115 #: ../src/guestfs.pod:49
116 msgid ""
117 "You don't need to be root to use libguestfs, although obviously you do need "
118 "enough permissions to access the disk images."
119 msgstr ""
120
121 # type: textblock
122 #: ../src/guestfs.pod:52
123 msgid ""
124 "Libguestfs is a large API because it can do many things.  For a gentle "
125 "introduction, please read the L</API OVERVIEW> section next."
126 msgstr ""
127
128 # type: =head1
129 #: ../src/guestfs.pod:55
130 msgid "API OVERVIEW"
131 msgstr ""
132
133 # type: textblock
134 #: ../src/guestfs.pod:57
135 msgid ""
136 "This section provides a gentler overview of the libguestfs API.  We also try "
137 "to group API calls together, where that may not be obvious from reading "
138 "about the individual calls in the main section of this manual."
139 msgstr ""
140
141 # type: =head2
142 #: ../src/guestfs.pod:62
143 msgid "HANDLES"
144 msgstr ""
145
146 # type: textblock
147 #: ../src/guestfs.pod:64
148 msgid ""
149 "Before you can use libguestfs calls, you have to create a handle.  Then you "
150 "must add at least one disk image to the handle, followed by launching the "
151 "handle, then performing whatever operations you want, and finally closing "
152 "the handle.  By convention we use the single letter C<g> for the name of the "
153 "handle variable, although of course you can use any name you want."
154 msgstr ""
155
156 # type: textblock
157 #: ../src/guestfs.pod:71
158 msgid "The general structure of all libguestfs-using programs looks like this:"
159 msgstr ""
160
161 # type: verbatim
162 #: ../src/guestfs.pod:74
163 #, no-wrap
164 msgid ""
165 " guestfs_h *g = guestfs_create ();\n"
166 " \n"
167 msgstr ""
168
169 # type: verbatim
170 #: ../src/guestfs.pod:76
171 #, no-wrap
172 msgid ""
173 " /* Call guestfs_add_drive additional times if there are\n"
174 "  * multiple disk images.\n"
175 "  */\n"
176 " guestfs_add_drive (g, \"guest.img\");\n"
177 " \n"
178 msgstr ""
179
180 # type: verbatim
181 #: ../src/guestfs.pod:81
182 #, no-wrap
183 msgid ""
184 " /* Most manipulation calls won't work until you've launched\n"
185 "  * the handle 'g'.  You have to do this _after_ adding drives\n"
186 "  * and _before_ other commands.\n"
187 "  */\n"
188 " guestfs_launch (g);\n"
189 " \n"
190 msgstr ""
191
192 # type: verbatim
193 #: ../src/guestfs.pod:87
194 #, no-wrap
195 msgid ""
196 " /* Now you can examine what partitions, LVs etc are available.\n"
197 "  */\n"
198 " char **partitions = guestfs_list_partitions (g);\n"
199 " char **logvols = guestfs_lvs (g);\n"
200 " \n"
201 msgstr ""
202
203 # type: verbatim
204 #: ../src/guestfs.pod:92
205 #, no-wrap
206 msgid ""
207 " /* To access a filesystem in the image, you must mount it.\n"
208 "  */\n"
209 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
210 " \n"
211 msgstr ""
212
213 # type: verbatim
214 #: ../src/guestfs.pod:96
215 #, no-wrap
216 msgid ""
217 " /* Now you can perform filesystem actions on the guest\n"
218 "  * disk image.\n"
219 "  */\n"
220 " guestfs_touch (g, \"/hello\");\n"
221 " \n"
222 msgstr ""
223
224 # type: verbatim
225 #: ../src/guestfs.pod:101
226 #, no-wrap
227 msgid ""
228 " /* You only need to call guestfs_sync if you have made\n"
229 "  * changes to the guest image.  (But if you've made changes\n"
230 "  * then you *must* sync).  See also: guestfs_umount and\n"
231 "  * guestfs_umount_all calls.\n"
232 "  */\n"
233 " guestfs_sync (g);\n"
234 " \n"
235 msgstr ""
236
237 # type: verbatim
238 #: ../src/guestfs.pod:108
239 #, no-wrap
240 msgid ""
241 " /* Close the handle 'g'. */\n"
242 " guestfs_close (g);\n"
243 "\n"
244 msgstr ""
245
246 # type: textblock
247 #: ../src/guestfs.pod:111
248 msgid ""
249 "The code above doesn't include any error checking.  In real code you should "
250 "check return values carefully for errors.  In general all functions that "
251 "return integers return C<-1> on error, and all functions that return "
252 "pointers return C<NULL> on error.  See section L</ERROR HANDLING> below for "
253 "how to handle errors, and consult the documentation for each function call "
254 "below to see precisely how they return error indications."
255 msgstr ""
256
257 # type: =head2
258 #: ../src/guestfs.pod:119
259 msgid "DISK IMAGES"
260 msgstr ""
261
262 # type: textblock
263 #: ../src/guestfs.pod:121
264 msgid ""
265 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
266 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
267 "actual block device, or simply an empty file of zeroes that you have created "
268 "through L<posix_fallocate(3)>.  Libguestfs lets you do useful things to all "
269 "of these."
270 msgstr ""
271
272 # type: textblock
273 #: ../src/guestfs.pod:127
274 msgid ""
275 "You can add a disk read-only using L</guestfs_add_drive_ro>, in which case "
276 "libguestfs won't modify the file."
277 msgstr ""
278
279 # type: textblock
280 #: ../src/guestfs.pod:130
281 msgid ""
282 "Be extremely cautious if the disk image is in use, eg. if it is being used "
283 "by a virtual machine.  Adding it read-write will almost certainly cause disk "
284 "corruption, but adding it read-only is safe."
285 msgstr ""
286
287 # type: textblock
288 #: ../src/guestfs.pod:134
289 msgid ""
290 "You must add at least one disk image, and you may add multiple disk images.  "
291 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
292 "first one you added), C</dev/sdb> (for the second one you added), etc."
293 msgstr ""
294
295 # type: textblock
296 #: ../src/guestfs.pod:139
297 msgid ""
298 "Once L</guestfs_launch> has been called you cannot add any more images.  You "
299 "can call L</guestfs_list_devices> to get a list of the device names, in the "
300 "order that you added them.  See also L</BLOCK DEVICE NAMING> below."
301 msgstr ""
302
303 # type: =head2
304 #: ../src/guestfs.pod:144
305 msgid "MOUNTING"
306 msgstr ""
307
308 # type: textblock
309 #: ../src/guestfs.pod:146
310 msgid ""
311 "Before you can read or write files, create directories and so on in a disk "
312 "image that contains filesystems, you have to mount those filesystems using "
313 "L</guestfs_mount>.  If you already know that a disk image contains (for "
314 "example) one partition with a filesystem on that partition, then you can "
315 "mount it directly:"
316 msgstr ""
317
318 # type: verbatim
319 #: ../src/guestfs.pod:152
320 #, no-wrap
321 msgid ""
322 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
323 "\n"
324 msgstr ""
325
326 # type: textblock
327 #: ../src/guestfs.pod:154
328 msgid ""
329 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
330 "disk image that we added (C</dev/sda>).  If the disk contains Linux LVM2 "
331 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>)."
332 msgstr ""
333
334 # type: textblock
335 #: ../src/guestfs.pod:158
336 msgid ""
337 "If you are given a disk image and you don't know what it contains then you "
338 "have to find out.  Libguestfs can do that too: use "
339 "L</guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions "
340 "and LVs, and either try mounting each to see what is mountable, or else "
341 "examine them with L</guestfs_vfs_type> or L</guestfs_file>.  Libguestfs also "
342 "has a set of APIs for inspection of disk images (see L</INSPECTION> below).  "
343 "But you might find it easier to look at higher level programs built on top "
344 "of libguestfs, in particular L<virt-inspector(1)>."
345 msgstr ""
346
347 # type: textblock
348 #: ../src/guestfs.pod:168
349 msgid ""
350 "To mount a disk image read-only, use L</guestfs_mount_ro>.  There are "
351 "several other variations of the C<guestfs_mount_*> call."
352 msgstr ""
353
354 # type: =head2
355 #: ../src/guestfs.pod:171
356 msgid "FILESYSTEM ACCESS AND MODIFICATION"
357 msgstr ""
358
359 # type: textblock
360 #: ../src/guestfs.pod:173
361 msgid ""
362 "The majority of the libguestfs API consists of fairly low-level calls for "
363 "accessing and modifying the files, directories, symlinks etc on mounted "
364 "filesystems.  There are over a hundred such calls which you can find listed "
365 "in detail below in this man page, and we don't even pretend to cover them "
366 "all in this overview."
367 msgstr ""
368
369 # type: textblock
370 #: ../src/guestfs.pod:179
371 msgid ""
372 "Specify filenames as full paths, starting with C<\"/\"> and including the "
373 "mount point."
374 msgstr ""
375
376 # type: textblock
377 #: ../src/guestfs.pod:182
378 msgid ""
379 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
380 "the file called C<\"etc/passwd\"> then you could do:"
381 msgstr ""
382
383 # type: verbatim
384 #: ../src/guestfs.pod:185
385 #, no-wrap
386 msgid ""
387 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
388 "\n"
389 msgstr ""
390
391 # type: textblock
392 #: ../src/guestfs.pod:187
393 msgid ""
394 "This would return C<data> as a newly allocated buffer containing the full "
395 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
396 "or C<NULL> if there was an error."
397 msgstr ""
398
399 # type: textblock
400 #: ../src/guestfs.pod:191
401 msgid ""
402 "As another example, to create a top-level directory on that filesystem "
403 "called C<\"var\"> you would do:"
404 msgstr ""
405
406 # type: verbatim
407 #: ../src/guestfs.pod:194
408 #, no-wrap
409 msgid ""
410 " guestfs_mkdir (g, \"/var\");\n"
411 "\n"
412 msgstr ""
413
414 # type: textblock
415 #: ../src/guestfs.pod:196
416 msgid "To create a symlink you could do:"
417 msgstr ""
418
419 # type: verbatim
420 #: ../src/guestfs.pod:198
421 #, no-wrap
422 msgid ""
423 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
424 "               \"/etc/rc3.d/S30portmap\");\n"
425 "\n"
426 msgstr ""
427
428 # type: textblock
429 #: ../src/guestfs.pod:201
430 msgid ""
431 "Libguestfs will reject attempts to use relative paths and there is no "
432 "concept of a current working directory."
433 msgstr ""
434
435 # type: textblock
436 #: ../src/guestfs.pod:204
437 msgid ""
438 "Libguestfs can return errors in many situations: for example if the "
439 "filesystem isn't writable, or if a file or directory that you requested "
440 "doesn't exist.  If you are using the C API (documented here)  you have to "
441 "check for those error conditions after each call.  (Other language bindings "
442 "turn these errors into exceptions)."
443 msgstr ""
444
445 # type: textblock
446 #: ../src/guestfs.pod:210
447 msgid ""
448 "File writes are affected by the per-handle umask, set by calling "
449 "L</guestfs_umask> and defaulting to 022.  See L</UMASK>."
450 msgstr ""
451
452 # type: =head2
453 #: ../src/guestfs.pod:213
454 msgid "PARTITIONING"
455 msgstr ""
456
457 # type: textblock
458 #: ../src/guestfs.pod:215
459 msgid ""
460 "Libguestfs contains API calls to read, create and modify partition tables on "
461 "disk images."
462 msgstr ""
463
464 # type: textblock
465 #: ../src/guestfs.pod:218
466 msgid ""
467 "In the common case where you want to create a single partition covering the "
468 "whole disk, you should use the L</guestfs_part_disk> call:"
469 msgstr ""
470
471 # type: verbatim
472 #: ../src/guestfs.pod:222
473 #, no-wrap
474 msgid ""
475 " const char *parttype = \"mbr\";\n"
476 " if (disk_is_larger_than_2TB)\n"
477 "   parttype = \"gpt\";\n"
478 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
479 "\n"
480 msgstr ""
481
482 # type: textblock
483 #: ../src/guestfs.pod:227
484 msgid ""
485 "Obviously this effectively wipes anything that was on that disk image "
486 "before."
487 msgstr ""
488
489 # type: =head2
490 #: ../src/guestfs.pod:230
491 msgid "LVM2"
492 msgstr ""
493
494 # type: textblock
495 #: ../src/guestfs.pod:232
496 msgid ""
497 "Libguestfs provides access to a large part of the LVM2 API, such as "
498 "L</guestfs_lvcreate> and L</guestfs_vgremove>.  It won't make much sense "
499 "unless you familiarize yourself with the concepts of physical volumes, "
500 "volume groups and logical volumes."
501 msgstr ""
502
503 # type: textblock
504 #: ../src/guestfs.pod:237
505 msgid ""
506 "This author strongly recommends reading the LVM HOWTO, online at "
507 "L<http://tldp.org/HOWTO/LVM-HOWTO/>."
508 msgstr ""
509
510 # type: =head2
511 #: ../src/guestfs.pod:240
512 msgid "DOWNLOADING"
513 msgstr ""
514
515 # type: textblock
516 #: ../src/guestfs.pod:242
517 msgid ""
518 "Use L</guestfs_cat> to download small, text only files.  This call is "
519 "limited to files which are less than 2 MB and which cannot contain any ASCII "
520 "NUL (C<\\0>) characters.  However it has a very simple to use API."
521 msgstr ""
522
523 # type: textblock
524 #: ../src/guestfs.pod:247
525 msgid ""
526 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
527 "bit data, since it returns a (pointer, size) pair.  However it is still "
528 "limited to \"small\" files, less than 2 MB."
529 msgstr ""
530
531 # type: textblock
532 #: ../src/guestfs.pod:251
533 msgid ""
534 "L</guestfs_download> can be used to download any file, with no limits on "
535 "content or size (even files larger than 4 GB)."
536 msgstr ""
537
538 # type: textblock
539 #: ../src/guestfs.pod:254
540 msgid "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
541 msgstr ""
542
543 # type: =head2
544 #: ../src/guestfs.pod:257
545 msgid "UPLOADING"
546 msgstr ""
547
548 # type: textblock
549 #: ../src/guestfs.pod:259
550 msgid ""
551 "It's often the case that you want to write a file or files to the disk "
552 "image."
553 msgstr ""
554
555 # type: textblock
556 #: ../src/guestfs.pod:262
557 msgid ""
558 "To write a small file with fixed content, use L</guestfs_write>.  To create "
559 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or "
560 "L</guestfs_fallocate64> (with all disk blocks allocated).  There are a "
561 "variety of other functions for creating test files, for example "
562 "L</guestfs_fill> and L</guestfs_fill_pattern>."
563 msgstr ""
564
565 # type: textblock
566 #: ../src/guestfs.pod:268
567 msgid ""
568 "To upload a single file, use L</guestfs_upload>.  This call has no limits on "
569 "file content or size (even files larger than 4 GB)."
570 msgstr ""
571
572 # type: textblock
573 #: ../src/guestfs.pod:271
574 msgid "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
575 msgstr ""
576
577 # type: textblock
578 #: ../src/guestfs.pod:273
579 msgid ""
580 "However the fastest way to upload I<large numbers of arbitrary files> is to "
581 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and "
582 "L<mkisofs(8)>), then attach this using L</guestfs_add_drive_ro>.  If you add "
583 "the drive in a predictable way (eg. adding it last after all other drives) "
584 "then you can get the device name from L</guestfs_list_devices> and mount it "
585 "directly using L</guestfs_mount_ro>.  Note that squashfs images are "
586 "sometimes non-portable between kernel versions, and they don't support "
587 "labels or UUIDs.  If you want to pre-build an image or you need to mount it "
588 "using a label or UUID, use an ISO image instead."
589 msgstr ""
590
591 # type: =head2
592 #: ../src/guestfs.pod:284
593 msgid "COPYING"
594 msgstr ""
595
596 # type: textblock
597 #: ../src/guestfs.pod:286
598 msgid ""
599 "There are various different commands for copying between files and devices "
600 "and in and out of the guest filesystem.  These are summarised in the table "
601 "below."
602 msgstr ""
603
604 # type: =item
605 #: ../src/guestfs.pod:292
606 msgid "B<file> to B<file>"
607 msgstr ""
608
609 # type: textblock
610 #: ../src/guestfs.pod:294
611 msgid ""
612 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
613 "directories recursively."
614 msgstr ""
615
616 # type: =item
617 #: ../src/guestfs.pod:297
618 msgid "B<file or device> to B<file or device>"
619 msgstr ""
620
621 # type: textblock
622 #: ../src/guestfs.pod:299
623 msgid ""
624 "Use L</guestfs_dd> which efficiently uses L<dd(1)> to copy between files and "
625 "devices in the guest."
626 msgstr ""
627
628 # type: textblock
629 #: ../src/guestfs.pod:302
630 msgid "Example: duplicate the contents of an LV:"
631 msgstr ""
632
633 # type: verbatim
634 #: ../src/guestfs.pod:304
635 #, no-wrap
636 msgid ""
637 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
638 "\n"
639 msgstr ""
640
641 # type: textblock
642 #: ../src/guestfs.pod:306
643 msgid ""
644 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
645 "(C</dev/VG/Original>).  To copy less than the whole source device, use "
646 "L</guestfs_copy_size>."
647 msgstr ""
648
649 # type: =item
650 #: ../src/guestfs.pod:310
651 msgid "B<file on the host> to B<file or device>"
652 msgstr ""
653
654 # type: textblock
655 #: ../src/guestfs.pod:312
656 msgid "Use L</guestfs_upload>.  See L</UPLOADING> above."
657 msgstr ""
658
659 # type: =item
660 #: ../src/guestfs.pod:314
661 msgid "B<file or device> to B<file on the host>"
662 msgstr ""
663
664 # type: textblock
665 #: ../src/guestfs.pod:316
666 msgid "Use L</guestfs_download>.  See L</DOWNLOADING> above."
667 msgstr ""
668
669 # type: =head2
670 #: ../src/guestfs.pod:320
671 msgid "LISTING FILES"
672 msgstr ""
673
674 # type: textblock
675 #: ../src/guestfs.pod:322
676 msgid ""
677 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
678 "L<guestfish(1)>-equivalent command C<ll>)."
679 msgstr ""
680
681 # type: textblock
682 #: ../src/guestfs.pod:325
683 msgid ""
684 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
685 "programs, as a flat list of strings."
686 msgstr ""
687
688 # type: textblock
689 #: ../src/guestfs.pod:328
690 msgid ""
691 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
692 "directory, plus additional information about each one.  It is more "
693 "equivalent to using the L<readdir(3)> call on a local filesystem."
694 msgstr ""
695
696 # type: textblock
697 #: ../src/guestfs.pod:332
698 msgid ""
699 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list "
700 "files."
701 msgstr ""
702
703 # type: =head2
704 #: ../src/guestfs.pod:335
705 msgid "RUNNING COMMANDS"
706 msgstr ""
707
708 # type: textblock
709 #: ../src/guestfs.pod:337
710 msgid ""
711 "Although libguestfs is primarily an API for manipulating files inside guest "
712 "images, we also provide some limited facilities for running commands inside "
713 "guests."
714 msgstr ""
715
716 # type: textblock
717 #: ../src/guestfs.pod:341
718 msgid "There are many limitations to this:"
719 msgstr ""
720
721 # type: =item
722 #: ../src/guestfs.pod:345 ../src/guestfs.pod:350 ../src/guestfs.pod:355 ../src/guestfs.pod:359 ../src/guestfs.pod:364 ../src/guestfs.pod:368 ../src/guestfs.pod:373 ../src/guestfs.pod:1223 ../src/guestfs.pod:1228 ../src/guestfs.pod:1232 ../src/guestfs.pod:1334 ../src/guestfs.pod:1338 ../src/guestfs.pod:1342 ../src/guestfs.pod:1347 ../src/guestfs.pod:1355 ../src/guestfs.pod:1374 ../src/guestfs.pod:1382 ../src/guestfs.pod:1612 ../src/guestfs.pod:1618 ../src/guestfs.pod:1623 ../src/guestfs.pod:1629 ../src/guestfs.pod:1736 ../src/guestfs.pod:1740 ../src/guestfs.pod:1744 ../src/guestfs.pod:1748 ../src/guestfs-actions.pod:14 ../src/guestfs-actions.pod:21 ../src/guestfs-actions.pod:372 ../src/guestfs-actions.pod:380 ../src/guestfs-actions.pod:387 ../src/guestfs-actions.pod:394 ../src/guestfs-actions.pod:1257 ../src/guestfs-actions.pod:1261 ../src/guestfs-actions.pod:1265 ../src/guestfs-actions.pod:1269 ../src/guestfs-actions.pod:1277 ../src/guestfs-actions.pod:1281 ../src/guestfs-actions.pod:1285 ../src/guestfs-actions.pod:1295 ../src/guestfs-actions.pod:1299 ../src/guestfs-actions.pod:1303 ../src/guestfs-actions.pod:1426 ../src/guestfs-actions.pod:1430 ../src/guestfs-actions.pod:1435 ../src/guestfs-actions.pod:1440 ../src/guestfs-actions.pod:1492 ../src/guestfs-actions.pod:1496 ../src/guestfs-actions.pod:1501 ../fish/guestfish.pod:309 ../fish/guestfish.pod:313 ../fish/guestfish.pod:317 ../fish/guestfish.pod:321 ../fish/guestfish-actions.pod:13 ../fish/guestfish-actions.pod:20 ../fish/guestfish-actions.pod:300 ../fish/guestfish-actions.pod:308 ../fish/guestfish-actions.pod:315 ../fish/guestfish-actions.pod:322 ../fish/guestfish-actions.pod:998 ../fish/guestfish-actions.pod:1002 ../fish/guestfish-actions.pod:1006 ../fish/guestfish-actions.pod:1010 ../fish/guestfish-actions.pod:1018 ../fish/guestfish-actions.pod:1022 ../fish/guestfish-actions.pod:1026 ../fish/guestfish-actions.pod:1036 ../fish/guestfish-actions.pod:1040 ../fish/guestfish-actions.pod:1044 ../fish/guestfish-actions.pod:1134 ../fish/guestfish-actions.pod:1138 ../fish/guestfish-actions.pod:1143 ../fish/guestfish-actions.pod:1148 ../fish/guestfish-actions.pod:1190 ../fish/guestfish-actions.pod:1194 ../fish/guestfish-actions.pod:1199 ../tools/virt-resize.pl:324 ../tools/virt-resize.pl:329 ../tools/virt-resize.pl:339
723 msgid "*"
724 msgstr ""
725
726 # type: textblock
727 #: ../src/guestfs.pod:347
728 msgid ""
729 "The kernel version that the command runs under will be different from what "
730 "it expects."
731 msgstr ""
732
733 # type: textblock
734 #: ../src/guestfs.pod:352
735 msgid ""
736 "If the command needs to communicate with daemons, then most likely they "
737 "won't be running."
738 msgstr ""
739
740 # type: textblock
741 #: ../src/guestfs.pod:357
742 msgid "The command will be running in limited memory."
743 msgstr ""
744
745 # type: textblock
746 #: ../src/guestfs.pod:361
747 msgid ""
748 "The network may not be available unless you enable it (see "
749 "L</guestfs_set_network>)."
750 msgstr ""
751
752 # type: textblock
753 #: ../src/guestfs.pod:366
754 msgid "Only supports Linux guests (not Windows, BSD, etc)."
755 msgstr ""
756
757 # type: textblock
758 #: ../src/guestfs.pod:370
759 msgid "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
760 msgstr ""
761
762 # type: textblock
763 #: ../src/guestfs.pod:375
764 msgid ""
765 "For SELinux guests, you may need to enable SELinux and load policy first.  "
766 "See L</SELINUX> in this manpage."
767 msgstr ""
768
769 # type: textblock
770 #: ../src/guestfs.pod:380
771 msgid ""
772 "The two main API calls to run commands are L</guestfs_command> and "
773 "L</guestfs_sh> (there are also variations)."
774 msgstr ""
775
776 # type: textblock
777 #: ../src/guestfs.pod:383
778 msgid ""
779 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
780 "shell globs, redirections, etc will work."
781 msgstr ""
782
783 # type: =head2
784 #: ../src/guestfs.pod:386
785 msgid "CONFIGURATION FILES"
786 msgstr ""
787
788 # type: textblock
789 #: ../src/guestfs.pod:388
790 msgid ""
791 "To read and write configuration files in Linux guest filesystems, we "
792 "strongly recommend using Augeas.  For example, Augeas understands how to "
793 "read and write, say, a Linux shadow password file or X.org configuration "
794 "file, and so avoids you having to write that code."
795 msgstr ""
796
797 # type: textblock
798 #: ../src/guestfs.pod:393
799 msgid ""
800 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't "
801 "document Augeas itself here because there is excellent documentation on the "
802 "L<http://augeas.net/> website."
803 msgstr ""
804
805 # type: textblock
806 #: ../src/guestfs.pod:397
807 msgid ""
808 "If you don't want to use Augeas (you fool!) then try calling "
809 "L</guestfs_read_lines> to get the file as a list of lines which you can "
810 "iterate over."
811 msgstr ""
812
813 # type: =head2
814 #: ../src/guestfs.pod:401
815 msgid "SELINUX"
816 msgstr ""
817
818 # type: textblock
819 #: ../src/guestfs.pod:403
820 msgid ""
821 "We support SELinux guests.  To ensure that labeling happens correctly in "
822 "SELinux guests, you need to enable SELinux and load the guest's policy:"
823 msgstr ""
824
825 # type: =item
826 #: ../src/guestfs.pod:409
827 msgid "1."
828 msgstr ""
829
830 # type: textblock
831 #: ../src/guestfs.pod:411
832 msgid "Before launching, do:"
833 msgstr ""
834
835 # type: verbatim
836 #: ../src/guestfs.pod:413
837 #, no-wrap
838 msgid ""
839 " guestfs_set_selinux (g, 1);\n"
840 "\n"
841 msgstr ""
842
843 # type: =item
844 #: ../src/guestfs.pod:415
845 msgid "2."
846 msgstr ""
847
848 # type: textblock
849 #: ../src/guestfs.pod:417
850 msgid ""
851 "After mounting the guest's filesystem(s), load the policy.  This is best "
852 "done by running the L<load_policy(8)> command in the guest itself:"
853 msgstr ""
854
855 # type: verbatim
856 #: ../src/guestfs.pod:421
857 #, no-wrap
858 msgid ""
859 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
860 "\n"
861 msgstr ""
862
863 # type: textblock
864 #: ../src/guestfs.pod:423
865 msgid ""
866 "(Older versions of C<load_policy> require you to specify the name of the "
867 "policy file)."
868 msgstr ""
869
870 # type: =item
871 #: ../src/guestfs.pod:426
872 msgid "3."
873 msgstr ""
874
875 # type: textblock
876 #: ../src/guestfs.pod:428
877 msgid ""
878 "Optionally, set the security context for the API.  The correct security "
879 "context to use can only be known by inspecting the guest.  As an example:"
880 msgstr ""
881
882 # type: verbatim
883 #: ../src/guestfs.pod:432
884 #, no-wrap
885 msgid ""
886 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
887 "\n"
888 msgstr ""
889
890 # type: textblock
891 #: ../src/guestfs.pod:436
892 msgid "This will work for running commands and editing existing files."
893 msgstr ""
894
895 # type: textblock
896 #: ../src/guestfs.pod:438
897 msgid ""
898 "When new files are created, you may need to label them explicitly, for "
899 "example by running the external command C<restorecon pathname>."
900 msgstr ""
901
902 # type: =head2
903 #: ../src/guestfs.pod:442
904 msgid "UMASK"
905 msgstr ""
906
907 # type: textblock
908 #: ../src/guestfs.pod:444
909 msgid ""
910 "Certain calls are affected by the current file mode creation mask (the "
911 "\"umask\").  In particular ones which create files or directories, such as "
912 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
913 "either the default mode that the file is created with or modifies the mode "
914 "that you supply."
915 msgstr ""
916
917 # type: textblock
918 #: ../src/guestfs.pod:450
919 msgid ""
920 "The default umask is C<022>, so files are created with modes such as C<0644> "
921 "and directories with C<0755>."
922 msgstr ""
923
924 # type: textblock
925 #: ../src/guestfs.pod:453
926 msgid ""
927 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
928 "(call C<guestfs_umask (g, 0)> early after launching).  Or call "
929 "L</guestfs_chmod> after creating each file or directory."
930 msgstr ""
931
932 # type: textblock
933 #: ../src/guestfs.pod:457
934 msgid "For more information about umask, see L<umask(2)>."
935 msgstr ""
936
937 # type: =head1
938 #: ../src/guestfs.pod:459 ../fish/guestfish.pod:559
939 msgid "ENCRYPTED DISKS"
940 msgstr ""
941
942 # type: textblock
943 #: ../src/guestfs.pod:461
944 msgid ""
945 "Libguestfs allows you to access Linux guests which have been encrypted using "
946 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
947 "standard.  This includes nearly all whole disk encryption systems used by "
948 "modern Linux guests."
949 msgstr ""
950
951 # type: textblock
952 #: ../src/guestfs.pod:467
953 msgid ""
954 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
955 "returns the string C<crypto_LUKS>)."
956 msgstr ""
957
958 # type: textblock
959 #: ../src/guestfs.pod:470
960 msgid ""
961 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
962 "will require the passphrase!"
963 msgstr ""
964
965 # type: textblock
966 #: ../src/guestfs.pod:473
967 msgid ""
968 "Opening a LUKS device creates a new device mapper device called "
969 "C</dev/mapper/mapname> (where C<mapname> is the string you supply to "
970 "L</guestfs_luks_open>).  Reads and writes to this mapper device are "
971 "decrypted from and encrypted to the underlying block device respectively."
972 msgstr ""
973
974 # type: textblock
975 #: ../src/guestfs.pod:479
976 msgid ""
977 "LVM volume groups on the device can be made visible by calling "
978 "L</guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical "
979 "volume(s) can now be mounted in the usual way."
980 msgstr ""
981
982 # type: textblock
983 #: ../src/guestfs.pod:483
984 msgid ""
985 "Use the reverse process to close a LUKS device.  Unmount any logical volumes "
986 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
987 "[\"/dev/VG\"])>.  Then close the mapper device by calling "
988 "L</guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
989 "underlying encrypted block device)."
990 msgstr ""
991
992 # type: =head2
993 #: ../src/guestfs.pod:490
994 msgid "INSPECTION"
995 msgstr ""
996
997 # type: textblock
998 #: ../src/guestfs.pod:492
999 msgid ""
1000 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
1001 "contains operating systems.  (These APIs used to be in a separate Perl-only "
1002 "library called L<Sys::Guestfs::Lib(3)> but since version 1.5.3 the most "
1003 "frequently used part of this library has been rewritten in C and moved into "
1004 "the core code)."
1005 msgstr ""
1006
1007 # type: textblock
1008 #: ../src/guestfs.pod:498
1009 msgid ""
1010 "Add all disks belonging to the unknown virtual machine and call "
1011 "L</guestfs_launch> in the usual way."
1012 msgstr ""
1013
1014 # type: textblock
1015 #: ../src/guestfs.pod:501
1016 msgid ""
1017 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
1018 "and certain heuristics, and returns a list of operating systems that were "
1019 "found.  An empty list means none were found.  A single element is the root "
1020 "filesystem of the operating system.  For dual- or multi-boot guests, "
1021 "multiple roots can be returned, each one corresponding to a separate "
1022 "operating system.  (Multi-boot virtual machines are extremely rare in the "
1023 "world of virtualization, but since this scenario can happen, we have built "
1024 "libguestfs to deal with it.)"
1025 msgstr ""
1026
1027 # type: textblock
1028 #: ../src/guestfs.pod:510
1029 msgid ""
1030 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
1031 "to get additional details about that operating system.  For example, call "
1032 "L</guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
1033 "Windows and Linux-based operating systems respectively."
1034 msgstr ""
1035
1036 # type: textblock
1037 #: ../src/guestfs.pod:516
1038 msgid ""
1039 "Un*x-like and Linux-based operating systems usually consist of several "
1040 "filesystems which are mounted at boot time (for example, a separate boot "
1041 "partition mounted on C</boot>).  The inspection rules are able to detect how "
1042 "filesystems correspond to mount points.  Call "
1043 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
1044 "hash table like this example:"
1045 msgstr ""
1046
1047 # type: verbatim
1048 #: ../src/guestfs.pod:523
1049 #, no-wrap
1050 msgid ""
1051 " /boot => /dev/sda1\n"
1052 " /     => /dev/vg_guest/lv_root\n"
1053 " /usr  => /dev/vg_guest/lv_usr\n"
1054 "\n"
1055 msgstr ""
1056
1057 # type: textblock
1058 #: ../src/guestfs.pod:527
1059 msgid ""
1060 "The caller can then make calls to L</guestfs_mount_options> to mount the "
1061 "filesystems as suggested."
1062 msgstr ""
1063
1064 # type: textblock
1065 #: ../src/guestfs.pod:530
1066 msgid ""
1067 "Be careful to mount filesystems in the right order (eg. C</> before "
1068 "C</usr>).  Sorting the keys of the hash by length, shortest first, should "
1069 "work."
1070 msgstr ""
1071
1072 # type: textblock
1073 #: ../src/guestfs.pod:534
1074 msgid ""
1075 "Inspection currently only works for some common operating systems.  "
1076 "Contributors are welcome to send patches for other operating systems that we "
1077 "currently cannot detect."
1078 msgstr ""
1079
1080 # type: textblock
1081 #: ../src/guestfs.pod:538
1082 msgid ""
1083 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
1084 "for more details.  The L</guestfs_inspect_os> function just ignores any "
1085 "encrypted devices."
1086 msgstr ""
1087
1088 # type: textblock
1089 #: ../src/guestfs.pod:542
1090 msgid ""
1091 "A note on the implementation: The call L</guestfs_inspect_os> performs "
1092 "inspection and caches the results in the guest handle.  Subsequent calls to "
1093 "C<guestfs_inspect_get_*> return this cached information, but I<do not> "
1094 "re-read the disks.  If you change the content of the guest disks, you can "
1095 "redo inspection by calling L</guestfs_inspect_os> again."
1096 msgstr ""
1097
1098 # type: =head2
1099 #: ../src/guestfs.pod:549
1100 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
1101 msgstr ""
1102
1103 # type: textblock
1104 #: ../src/guestfs.pod:551
1105 msgid ""
1106 "Libguestfs can mount NTFS partitions.  It does this using the "
1107 "L<http://www.ntfs-3g.org/> driver."
1108 msgstr ""
1109
1110 # type: textblock
1111 #: ../src/guestfs.pod:554
1112 msgid ""
1113 "DOS and Windows still use drive letters, and the filesystems are always "
1114 "treated as case insensitive by Windows itself, and therefore you might find "
1115 "a Windows configuration file referring to a path like "
1116 "C<c:\\windows\\system32>.  When the filesystem is mounted in libguestfs, "
1117 "that directory might be referred to as C</WINDOWS/System32>."
1118 msgstr ""
1119
1120 # type: textblock
1121 #: ../src/guestfs.pod:560
1122 msgid ""
1123 "Drive letter mappings are outside the scope of libguestfs.  You have to use "
1124 "libguestfs to read the appropriate Windows Registry and configuration files, "
1125 "to determine yourself how drives are mapped (see also L<hivex(3)> and "
1126 "L<virt-inspector(1)>)."
1127 msgstr ""
1128
1129 # type: textblock
1130 #: ../src/guestfs.pod:565
1131 msgid ""
1132 "Replacing backslash characters with forward slash characters is also outside "
1133 "the scope of libguestfs, but something that you can easily do."
1134 msgstr ""
1135
1136 # type: textblock
1137 #: ../src/guestfs.pod:568
1138 msgid ""
1139 "Where we can help is in resolving the case insensitivity of paths.  For "
1140 "this, call L</guestfs_case_sensitive_path>."
1141 msgstr ""
1142
1143 # type: textblock
1144 #: ../src/guestfs.pod:571
1145 msgid ""
1146 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
1147 "files, through the library C<hivex> which is part of the libguestfs project "
1148 "although ships as a separate tarball.  You have to locate and download the "
1149 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
1150 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and "
1151 "L<virt-win-reg(1)> for more help on this issue."
1152 msgstr ""
1153
1154 # type: =head2
1155 #: ../src/guestfs.pod:579
1156 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
1157 msgstr ""
1158
1159 # type: textblock
1160 #: ../src/guestfs.pod:581
1161 msgid ""
1162 "Although we don't want to discourage you from using the C API, we will "
1163 "mention here that the same API is also available in other languages."
1164 msgstr ""
1165
1166 # type: textblock
1167 #: ../src/guestfs.pod:584
1168 msgid ""
1169 "The API is broadly identical in all supported languages.  This means that "
1170 "the C call C<guestfs_mount(g,path)> is C<$g-E<gt>mount($path)> in Perl, "
1171 "C<g.mount(path)> in Python, and C<Guestfs.mount g path> in OCaml.  In other "
1172 "words, a straightforward, predictable isomorphism between each language."
1173 msgstr ""
1174
1175 # type: textblock
1176 #: ../src/guestfs.pod:590
1177 msgid ""
1178 "Error messages are automatically transformed into exceptions if the language "
1179 "supports it."
1180 msgstr ""
1181
1182 # type: textblock
1183 #: ../src/guestfs.pod:593
1184 msgid ""
1185 "We don't try to \"object orientify\" parts of the API in OO languages, "
1186 "although contributors are welcome to write higher level APIs above what we "
1187 "provide in their favourite languages if they wish."
1188 msgstr ""
1189
1190 # type: =item
1191 #: ../src/guestfs.pod:599
1192 msgid "B<C++>"
1193 msgstr ""
1194
1195 # type: textblock
1196 #: ../src/guestfs.pod:601
1197 msgid ""
1198 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
1199 "identical to the C API.  C++ classes and exceptions are not used."
1200 msgstr ""
1201
1202 # type: =item
1203 #: ../src/guestfs.pod:605
1204 msgid "B<C#>"
1205 msgstr ""
1206
1207 # type: textblock
1208 #: ../src/guestfs.pod:607
1209 msgid ""
1210 "The C# bindings are highly experimental.  Please read the warnings at the "
1211 "top of C<csharp/Libguestfs.cs>."
1212 msgstr ""
1213
1214 # type: =item
1215 #: ../src/guestfs.pod:610
1216 msgid "B<Haskell>"
1217 msgstr ""
1218
1219 # type: textblock
1220 #: ../src/guestfs.pod:612
1221 msgid ""
1222 "This is the only language binding that is working but incomplete.  Only "
1223 "calls which return simple integers have been bound in Haskell, and we are "
1224 "looking for help to complete this binding."
1225 msgstr ""
1226
1227 # type: =item
1228 #: ../src/guestfs.pod:616
1229 msgid "B<Java>"
1230 msgstr ""
1231
1232 # type: textblock
1233 #: ../src/guestfs.pod:618
1234 msgid ""
1235 "Full documentation is contained in the Javadoc which is distributed with "
1236 "libguestfs."
1237 msgstr ""
1238
1239 # type: =item
1240 #: ../src/guestfs.pod:621
1241 msgid "B<OCaml>"
1242 msgstr ""
1243
1244 # type: textblock
1245 #: ../src/guestfs.pod:623
1246 msgid "For documentation see the file C<guestfs.mli>."
1247 msgstr ""
1248
1249 # type: =item
1250 #: ../src/guestfs.pod:625
1251 msgid "B<Perl>"
1252 msgstr ""
1253
1254 # type: textblock
1255 #: ../src/guestfs.pod:627
1256 msgid "For documentation see L<Sys::Guestfs(3)>."
1257 msgstr ""
1258
1259 # type: =item
1260 #: ../src/guestfs.pod:629
1261 msgid "B<PHP>"
1262 msgstr ""
1263
1264 # type: textblock
1265 #: ../src/guestfs.pod:631
1266 msgid ""
1267 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
1268 "the php-libguestfs package for your distribution."
1269 msgstr ""
1270
1271 # type: textblock
1272 #: ../src/guestfs.pod:634
1273 msgid "The PHP binding only works correctly on 64 bit machines."
1274 msgstr ""
1275
1276 # type: =item
1277 #: ../src/guestfs.pod:636
1278 msgid "B<Python>"
1279 msgstr ""
1280
1281 # type: textblock
1282 #: ../src/guestfs.pod:638
1283 msgid "For documentation do:"
1284 msgstr ""
1285
1286 # type: verbatim
1287 #: ../src/guestfs.pod:640
1288 #, no-wrap
1289 msgid ""
1290 " $ python\n"
1291 " >>> import guestfs\n"
1292 " >>> help (guestfs)\n"
1293 "\n"
1294 msgstr ""
1295
1296 # type: =item
1297 #: ../src/guestfs.pod:644
1298 msgid "B<Ruby>"
1299 msgstr ""
1300
1301 # type: textblock
1302 #: ../src/guestfs.pod:646
1303 msgid ""
1304 "Use the Guestfs module.  There is no Ruby-specific documentation, but you "
1305 "can find examples written in Ruby in the libguestfs source."
1306 msgstr ""
1307
1308 # type: =item
1309 #: ../src/guestfs.pod:649
1310 msgid "B<shell scripts>"
1311 msgstr ""
1312
1313 # type: textblock
1314 #: ../src/guestfs.pod:651
1315 msgid "For documentation see L<guestfish(1)>."
1316 msgstr ""
1317
1318 # type: =head2
1319 #: ../src/guestfs.pod:655
1320 msgid "LIBGUESTFS GOTCHAS"
1321 msgstr ""
1322
1323 # type: textblock
1324 #: ../src/guestfs.pod:657
1325 msgid ""
1326 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
1327 "system [...] that works in the way it is documented but is counterintuitive "
1328 "and almost invites mistakes.\""
1329 msgstr ""
1330
1331 # type: textblock
1332 #: ../src/guestfs.pod:661
1333 msgid ""
1334 "Since we developed libguestfs and the associated tools, there are several "
1335 "things we would have designed differently, but are now stuck with for "
1336 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
1337 "release, you can expect these to change.  Beware of them."
1338 msgstr ""
1339
1340 # type: =item
1341 #: ../src/guestfs.pod:669
1342 msgid "Autosync / forgetting to sync."
1343 msgstr ""
1344
1345 # type: textblock
1346 #: ../src/guestfs.pod:671
1347 msgid ""
1348 "When modifying a filesystem from C or another language, you B<must> unmount "
1349 "all filesystems and call L</guestfs_sync> explicitly before you close the "
1350 "libguestfs handle.  You can also call:"
1351 msgstr ""
1352
1353 # type: verbatim
1354 #: ../src/guestfs.pod:675
1355 #, no-wrap
1356 msgid ""
1357 " guestfs_set_autosync (g, 1);\n"
1358 "\n"
1359 msgstr ""
1360
1361 # type: textblock
1362 #: ../src/guestfs.pod:677
1363 msgid ""
1364 "to have the unmount/sync done automatically for you when the handle 'g' is "
1365 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> "
1366 "q.v.)"
1367 msgstr ""
1368
1369 # type: textblock
1370 #: ../src/guestfs.pod:681
1371 msgid ""
1372 "If you forget to do this, then it is entirely possible that your changes "
1373 "won't be written out, or will be partially written, or (very rarely) that "
1374 "you'll get disk corruption."
1375 msgstr ""
1376
1377 # type: textblock
1378 #: ../src/guestfs.pod:685
1379 msgid ""
1380 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
1381 "guestfish scripts that forget to sync will work just fine, which can make "
1382 "this very puzzling if you are trying to debug a problem."
1383 msgstr ""
1384
1385 # type: =item
1386 #: ../src/guestfs.pod:689
1387 msgid "Mount option C<-o sync> should not be the default."
1388 msgstr ""
1389
1390 # type: textblock
1391 #: ../src/guestfs.pod:691
1392 msgid ""
1393 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
1394 "However C<-o sync> does not add any reliability benefit, but does have a "
1395 "very large performance impact."
1396 msgstr ""
1397
1398 # type: textblock
1399 #: ../src/guestfs.pod:695
1400 msgid ""
1401 "The work around is to use L</guestfs_mount_options> and set the mount "
1402 "options that you actually want to use."
1403 msgstr ""
1404
1405 # type: =item
1406 #: ../src/guestfs.pod:698
1407 msgid "Read-only should be the default."
1408 msgstr ""
1409
1410 # type: textblock
1411 #: ../src/guestfs.pod:700
1412 msgid ""
1413 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
1414 "specify I<--rw> if you want to make changes to the image."
1415 msgstr ""
1416
1417 # type: textblock
1418 #: ../src/guestfs.pod:703
1419 msgid "This would reduce the potential to corrupt live VM images."
1420 msgstr ""
1421
1422 # type: textblock
1423 #: ../src/guestfs.pod:705
1424 msgid ""
1425 "Note that many filesystems change the disk when you just mount and unmount, "
1426 "even if you didn't perform any writes.  You need to use "
1427 "L</guestfs_add_drive_ro> to guarantee that the disk is not changed."
1428 msgstr ""
1429
1430 # type: =item
1431 #: ../src/guestfs.pod:709
1432 msgid "guestfish command line is hard to use."
1433 msgstr ""
1434
1435 # type: textblock
1436 #: ../src/guestfs.pod:711
1437 msgid ""
1438 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
1439 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
1440 "exist, so it fails.  In earlier versions of guestfish the error message was "
1441 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
1442 "we should have used C<guestfish -c command> to run commands."
1443 msgstr ""
1444
1445 # type: =item
1446 #: ../src/guestfs.pod:718
1447 msgid "guestfish megabyte modifiers don't work right on all commands"
1448 msgstr ""
1449
1450 # type: textblock
1451 #: ../src/guestfs.pod:720
1452 msgid ""
1453 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
1454 "other modifiers).  What guestfish actually does is to multiply the number "
1455 "part by the modifier part and pass the result to the C API.  However this "
1456 "doesn't work for a few APIs which aren't expecting bytes, but are already "
1457 "expecting some other unit (eg. megabytes)."
1458 msgstr ""
1459
1460 # type: textblock
1461 #: ../src/guestfs.pod:727
1462 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
1463 msgstr ""
1464
1465 # type: verbatim
1466 #: ../src/guestfs.pod:729
1467 #, no-wrap
1468 msgid ""
1469 " lvcreate LV VG 100M\n"
1470 "\n"
1471 msgstr ""
1472
1473 # type: textblock
1474 #: ../src/guestfs.pod:731
1475 msgid ""
1476 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
1477 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
1478 "megabytes * megabytes) logical volume.  The error message you get from this "
1479 "is also a little obscure."
1480 msgstr ""
1481
1482 # type: textblock
1483 #: ../src/guestfs.pod:736
1484 msgid ""
1485 "This could be fixed in the generator by specially marking parameters and "
1486 "return values which take bytes or other units."
1487 msgstr ""
1488
1489 # type: =item
1490 #: ../src/guestfs.pod:739
1491 msgid "Library should return errno with error messages."
1492 msgstr ""
1493
1494 # type: textblock
1495 #: ../src/guestfs.pod:741
1496 msgid ""
1497 "It would be a nice-to-have to be able to get the original value of 'errno' "
1498 "from inside the appliance along error paths (where set).  Currently "
1499 "L<guestmount(1)> goes through hoops to try to reverse the error message "
1500 "string into an errno, see the function error() in fuse/guestmount.c."
1501 msgstr ""
1502
1503 # type: textblock
1504 #: ../src/guestfs.pod:747
1505 msgid ""
1506 "In libguestfs 1.5.4, the protocol was changed so that the Linux errno is "
1507 "sent back from the daemon."
1508 msgstr ""
1509
1510 # type: =head2
1511 #: ../src/guestfs.pod:752
1512 msgid "PROTOCOL LIMITS"
1513 msgstr ""
1514
1515 # type: textblock
1516 #: ../src/guestfs.pod:754
1517 msgid ""
1518 "Internally libguestfs uses a message-based protocol to pass API calls and "
1519 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
1520 "plenty more detail about this).  The maximum message size used by the "
1521 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
1522 "aware of this limit.  The API calls which may be affected are individually "
1523 "documented, with a link back to this section of the documentation."
1524 msgstr ""
1525
1526 # type: textblock
1527 #: ../src/guestfs.pod:762
1528 msgid ""
1529 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
1530 "a simple string.  Because this string is at some point internally encoded as "
1531 "a message, the maximum size that it can return is slightly under 4 MB.  If "
1532 "the requested file is larger than this then you will get an error."
1533 msgstr ""
1534
1535 # type: textblock
1536 #: ../src/guestfs.pod:768
1537 msgid ""
1538 "In order to transfer large files into and out of the guest filesystem, you "
1539 "need to use particular calls that support this.  The sections L</UPLOADING> "
1540 "and L</DOWNLOADING> document how to do this."
1541 msgstr ""
1542
1543 # type: textblock
1544 #: ../src/guestfs.pod:772
1545 msgid ""
1546 "You might also consider mounting the disk image using our FUSE filesystem "
1547 "support (L<guestmount(1)>)."
1548 msgstr ""
1549
1550 # type: =head2
1551 #: ../src/guestfs.pod:775
1552 msgid "KEYS AND PASSPHRASES"
1553 msgstr ""
1554
1555 # type: textblock
1556 #: ../src/guestfs.pod:777
1557 msgid ""
1558 "Certain libguestfs calls take a parameter that contains sensitive key "
1559 "material, passed in as a C string."
1560 msgstr ""
1561
1562 # type: textblock
1563 #: ../src/guestfs.pod:780
1564 msgid ""
1565 "In the future we would hope to change the libguestfs implementation so that "
1566 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
1567 "swap.  However this is I<not> done at the moment, because of the complexity "
1568 "of such an implementation."
1569 msgstr ""
1570
1571 # type: textblock
1572 #: ../src/guestfs.pod:785
1573 msgid ""
1574 "Therefore you should be aware that any key parameter you pass to libguestfs "
1575 "might end up being written out to the swap partition.  If this is a concern, "
1576 "scrub the swap partition or don't use libguestfs on encrypted devices."
1577 msgstr ""
1578
1579 # type: =head1
1580 #: ../src/guestfs.pod:790
1581 msgid "CONNECTION MANAGEMENT"
1582 msgstr ""
1583
1584 # type: =head2
1585 #: ../src/guestfs.pod:792
1586 msgid "guestfs_h *"
1587 msgstr ""
1588
1589 # type: textblock
1590 #: ../src/guestfs.pod:794
1591 msgid ""
1592 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
1593 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
1594 "handle and release all resources used."
1595 msgstr ""
1596
1597 # type: textblock
1598 #: ../src/guestfs.pod:798
1599 msgid ""
1600 "For information on using multiple handles and threads, see the section "
1601 "L</MULTIPLE HANDLES AND MULTIPLE THREADS> below."
1602 msgstr ""
1603
1604 # type: =head2
1605 #: ../src/guestfs.pod:801
1606 msgid "guestfs_create"
1607 msgstr ""
1608
1609 # type: verbatim
1610 #: ../src/guestfs.pod:803
1611 #, no-wrap
1612 msgid ""
1613 " guestfs_h *guestfs_create (void);\n"
1614 "\n"
1615 msgstr ""
1616
1617 # type: textblock
1618 #: ../src/guestfs.pod:805
1619 msgid "Create a connection handle."
1620 msgstr ""
1621
1622 # type: textblock
1623 #: ../src/guestfs.pod:807
1624 msgid "You have to call L</guestfs_add_drive> on the handle at least once."
1625 msgstr ""
1626
1627 # type: textblock
1628 #: ../src/guestfs.pod:809
1629 msgid ""
1630 "This function returns a non-NULL pointer to a handle on success or NULL on "
1631 "error."
1632 msgstr ""
1633
1634 # type: textblock
1635 #: ../src/guestfs.pod:812
1636 msgid "After configuring the handle, you have to call L</guestfs_launch>."
1637 msgstr ""
1638
1639 # type: textblock
1640 #: ../src/guestfs.pod:814
1641 msgid ""
1642 "You may also want to configure error handling for the handle.  See L</ERROR "
1643 "HANDLING> section below."
1644 msgstr ""
1645
1646 # type: =head2
1647 #: ../src/guestfs.pod:817
1648 msgid "guestfs_close"
1649 msgstr ""
1650
1651 # type: verbatim
1652 #: ../src/guestfs.pod:819
1653 #, no-wrap
1654 msgid ""
1655 " void guestfs_close (guestfs_h *g);\n"
1656 "\n"
1657 msgstr ""
1658
1659 # type: textblock
1660 #: ../src/guestfs.pod:821
1661 msgid "This closes the connection handle and frees up all resources used."
1662 msgstr ""
1663
1664 # type: =head1
1665 #: ../src/guestfs.pod:823
1666 msgid "ERROR HANDLING"
1667 msgstr ""
1668
1669 # type: textblock
1670 #: ../src/guestfs.pod:825
1671 msgid ""
1672 "The convention in all functions that return C<int> is that they return C<-1> "
1673 "to indicate an error.  You can get additional information on errors by "
1674 "calling L</guestfs_last_error> and/or by setting up an error handler with "
1675 "L</guestfs_set_error_handler>."
1676 msgstr ""
1677
1678 # type: textblock
1679 #: ../src/guestfs.pod:830
1680 msgid "The default error handler prints the information string to C<stderr>."
1681 msgstr ""
1682
1683 # type: textblock
1684 #: ../src/guestfs.pod:832
1685 msgid ""
1686 "Out of memory errors are handled differently.  The default action is to call "
1687 "L<abort(3)>.  If this is undesirable, then you can set a handler using "
1688 "L</guestfs_set_out_of_memory_handler>."
1689 msgstr ""
1690
1691 # type: =head2
1692 #: ../src/guestfs.pod:836
1693 msgid "guestfs_last_error"
1694 msgstr ""
1695
1696 # type: verbatim
1697 #: ../src/guestfs.pod:838
1698 #, no-wrap
1699 msgid ""
1700 " const char *guestfs_last_error (guestfs_h *g);\n"
1701 "\n"
1702 msgstr ""
1703
1704 # type: textblock
1705 #: ../src/guestfs.pod:840
1706 msgid ""
1707 "This returns the last error message that happened on C<g>.  If there has not "
1708 "been an error since the handle was created, then this returns C<NULL>."
1709 msgstr ""
1710
1711 # type: textblock
1712 #: ../src/guestfs.pod:844
1713 msgid ""
1714 "The lifetime of the returned string is until the next error occurs, or "
1715 "L</guestfs_close> is called."
1716 msgstr ""
1717
1718 # type: textblock
1719 #: ../src/guestfs.pod:847
1720 msgid ""
1721 "The error string is not localized (ie. is always in English), because this "
1722 "makes searching for error messages in search engines give the largest number "
1723 "of results."
1724 msgstr ""
1725
1726 # type: =head2
1727 #: ../src/guestfs.pod:851
1728 msgid "guestfs_set_error_handler"
1729 msgstr ""
1730
1731 # type: verbatim
1732 #: ../src/guestfs.pod:853
1733 #, no-wrap
1734 msgid ""
1735 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
1736 "                                           void *opaque,\n"
1737 "                                           const char *msg);\n"
1738 " void guestfs_set_error_handler (guestfs_h *g,\n"
1739 "                                 guestfs_error_handler_cb cb,\n"
1740 "                                 void *opaque);\n"
1741 "\n"
1742 msgstr ""
1743
1744 # type: textblock
1745 #: ../src/guestfs.pod:860
1746 msgid ""
1747 "The callback C<cb> will be called if there is an error.  The parameters "
1748 "passed to the callback are an opaque data pointer and the error message "
1749 "string."
1750 msgstr ""
1751
1752 # type: textblock
1753 #: ../src/guestfs.pod:864
1754 msgid ""
1755 "Note that the message string C<msg> is freed as soon as the callback "
1756 "function returns, so if you want to stash it somewhere you must make your "
1757 "own copy."
1758 msgstr ""
1759
1760 # type: textblock
1761 #: ../src/guestfs.pod:868
1762 msgid "The default handler prints messages on C<stderr>."
1763 msgstr ""
1764
1765 # type: textblock
1766 #: ../src/guestfs.pod:870
1767 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
1768 msgstr ""
1769
1770 # type: =head2
1771 #: ../src/guestfs.pod:872
1772 msgid "guestfs_get_error_handler"
1773 msgstr ""
1774
1775 # type: verbatim
1776 #: ../src/guestfs.pod:874
1777 #, no-wrap
1778 msgid ""
1779 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
1780 "                                                     void **opaque_rtn);\n"
1781 "\n"
1782 msgstr ""
1783
1784 # type: textblock
1785 #: ../src/guestfs.pod:877
1786 msgid "Returns the current error handler callback."
1787 msgstr ""
1788
1789 # type: =head2
1790 #: ../src/guestfs.pod:879
1791 msgid "guestfs_set_out_of_memory_handler"
1792 msgstr ""
1793
1794 # type: verbatim
1795 #: ../src/guestfs.pod:881
1796 #, no-wrap
1797 msgid ""
1798 " typedef void (*guestfs_abort_cb) (void);\n"
1799 " int guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
1800 "                                        guestfs_abort_cb);\n"
1801 "\n"
1802 msgstr ""
1803
1804 # type: textblock
1805 #: ../src/guestfs.pod:885
1806 msgid ""
1807 "The callback C<cb> will be called if there is an out of memory situation.  "
1808 "I<Note this callback must not return>."
1809 msgstr ""
1810
1811 # type: textblock
1812 #: ../src/guestfs.pod:888
1813 msgid "The default is to call L<abort(3)>."
1814 msgstr ""
1815
1816 # type: textblock
1817 #: ../src/guestfs.pod:890
1818 msgid "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
1819 msgstr ""
1820
1821 # type: =head2
1822 #: ../src/guestfs.pod:893
1823 msgid "guestfs_get_out_of_memory_handler"
1824 msgstr ""
1825
1826 # type: verbatim
1827 #: ../src/guestfs.pod:895
1828 #, no-wrap
1829 msgid ""
1830 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
1831 "\n"
1832 msgstr ""
1833
1834 # type: textblock
1835 #: ../src/guestfs.pod:897
1836 msgid "This returns the current out of memory handler."
1837 msgstr ""
1838
1839 # type: =head1
1840 #: ../src/guestfs.pod:899
1841 msgid "PATH"
1842 msgstr ""
1843
1844 # type: textblock
1845 #: ../src/guestfs.pod:901
1846 msgid ""
1847 "Libguestfs needs a kernel and initrd.img, which it finds by looking along an "
1848 "internal path."
1849 msgstr ""
1850
1851 # type: textblock
1852 #: ../src/guestfs.pod:904
1853 msgid ""
1854 "By default it looks for these in the directory C<$libdir/guestfs> "
1855 "(eg. C</usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
1856 msgstr ""
1857
1858 # type: textblock
1859 #: ../src/guestfs.pod:907
1860 msgid ""
1861 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
1862 "to change the directories that libguestfs will search in.  The value is a "
1863 "colon-separated list of paths.  The current directory is I<not> searched "
1864 "unless the path contains an empty element or C<.>.  For example "
1865 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
1866 "then C</usr/lib/guestfs>."
1867 msgstr ""
1868
1869 # type: =head1
1870 #: ../src/guestfs.pod:914
1871 msgid "HIGH-LEVEL API ACTIONS"
1872 msgstr ""
1873
1874 # type: =head2
1875 #: ../src/guestfs.pod:916
1876 msgid "ABI GUARANTEE"
1877 msgstr ""
1878
1879 # type: textblock
1880 #: ../src/guestfs.pod:918
1881 msgid ""
1882 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
1883 "actions as outlined in this section.  Although we will deprecate some "
1884 "actions, for example if they get replaced by newer calls, we will keep the "
1885 "old actions forever.  This allows you the developer to program in confidence "
1886 "against the libguestfs API."
1887 msgstr ""
1888
1889 # type: textblock
1890 #: ../src/guestfs.pod:924 ../fish/guestfish.pod:926
1891 msgid "@ACTIONS@"
1892 msgstr ""
1893
1894 # type: =head1
1895 #: ../src/guestfs.pod:926
1896 msgid "STRUCTURES"
1897 msgstr ""
1898
1899 # type: textblock
1900 #: ../src/guestfs.pod:928
1901 msgid "@STRUCTS@"
1902 msgstr ""
1903
1904 # type: =head1
1905 #: ../src/guestfs.pod:930
1906 msgid "AVAILABILITY"
1907 msgstr ""
1908
1909 # type: =head2
1910 #: ../src/guestfs.pod:932
1911 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
1912 msgstr ""
1913
1914 # type: textblock
1915 #: ../src/guestfs.pod:934
1916 msgid ""
1917 "Using L</guestfs_available> you can test availability of the following "
1918 "groups of functions.  This test queries the appliance to see if the "
1919 "appliance you are currently using supports the functionality."
1920 msgstr ""
1921
1922 # type: textblock
1923 #: ../src/guestfs.pod:939
1924 msgid "@AVAILABILITY@"
1925 msgstr ""
1926
1927 # type: =head2
1928 #: ../src/guestfs.pod:941
1929 msgid "GUESTFISH supported COMMAND"
1930 msgstr ""
1931
1932 # type: textblock
1933 #: ../src/guestfs.pod:943
1934 msgid ""
1935 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
1936 "prints out the available groups and whether they are supported by this build "
1937 "of libguestfs.  Note however that you have to do C<run> first."
1938 msgstr ""
1939
1940 # type: =head2
1941 #: ../src/guestfs.pod:948
1942 msgid "SINGLE CALLS AT COMPILE TIME"
1943 msgstr ""
1944
1945 # type: textblock
1946 #: ../src/guestfs.pod:950
1947 msgid ""
1948 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
1949 "function, such as:"
1950 msgstr ""
1951
1952 # type: verbatim
1953 #: ../src/guestfs.pod:953
1954 #, no-wrap
1955 msgid ""
1956 " #define LIBGUESTFS_HAVE_DD 1\n"
1957 "\n"
1958 msgstr ""
1959
1960 # type: textblock
1961 #: ../src/guestfs.pod:955
1962 msgid "if L</guestfs_dd> is available."
1963 msgstr ""
1964
1965 # type: textblock
1966 #: ../src/guestfs.pod:957
1967 msgid ""
1968 "Before version 1.5.8, if you needed to test whether a single libguestfs "
1969 "function is available at compile time, we recommended using build tools such "
1970 "as autoconf or cmake.  For example in autotools you could use:"
1971 msgstr ""
1972
1973 # type: verbatim
1974 #: ../src/guestfs.pod:962
1975 #, no-wrap
1976 msgid ""
1977 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
1978 " AC_CHECK_FUNCS([guestfs_dd])\n"
1979 "\n"
1980 msgstr ""
1981
1982 # type: textblock
1983 #: ../src/guestfs.pod:965
1984 msgid ""
1985 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
1986 "in your program."
1987 msgstr ""
1988
1989 # type: =head2
1990 #: ../src/guestfs.pod:968
1991 msgid "SINGLE CALLS AT RUN TIME"
1992 msgstr ""
1993
1994 # type: textblock
1995 #: ../src/guestfs.pod:970
1996 msgid ""
1997 "Testing at compile time doesn't guarantee that a function really exists in "
1998 "the library.  The reason is that you might be dynamically linked against a "
1999 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
2000 "This situation unfortunately results in a segmentation fault, which is a "
2001 "shortcoming of the C dynamic linking system itself."
2002 msgstr ""
2003
2004 # type: textblock
2005 #: ../src/guestfs.pod:977
2006 msgid ""
2007 "You can use L<dlopen(3)> to test if a function is available at run time, as "
2008 "in this example program (note that you still need the compile time check as "
2009 "well):"
2010 msgstr ""
2011
2012 # type: verbatim
2013 #: ../src/guestfs.pod:981
2014 #, no-wrap
2015 msgid ""
2016 " #include <stdio.h>\n"
2017 " #include <stdlib.h>\n"
2018 " #include <unistd.h>\n"
2019 " #include <dlfcn.h>\n"
2020 " #include <guestfs.h>\n"
2021 " \n"
2022 msgstr ""
2023
2024 # type: verbatim
2025 #: ../src/guestfs.pod:987
2026 #, no-wrap
2027 msgid ""
2028 " main ()\n"
2029 " {\n"
2030 " #ifdef LIBGUESTFS_HAVE_DD\n"
2031 "   void *dl;\n"
2032 "   int has_function;\n"
2033 " \n"
2034 msgstr ""
2035
2036 # type: verbatim
2037 #: ../src/guestfs.pod:993
2038 #, no-wrap
2039 msgid ""
2040 "   /* Test if the function guestfs_dd is really available. */\n"
2041 "   dl = dlopen (NULL, RTLD_LAZY);\n"
2042 "   if (!dl) {\n"
2043 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
2044 "     exit (EXIT_FAILURE);\n"
2045 "   }\n"
2046 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
2047 "   dlclose (dl);\n"
2048 " \n"
2049 msgstr ""
2050
2051 # type: verbatim
2052 #: ../src/guestfs.pod:1002
2053 #, no-wrap
2054 msgid ""
2055 "   if (!has_function)\n"
2056 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
2057 "   else {\n"
2058 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
2059 "     /* Now it's safe to call\n"
2060 "     guestfs_dd (g, \"foo\", \"bar\");\n"
2061 "     */\n"
2062 "   }\n"
2063 " #else\n"
2064 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
2065 " #endif\n"
2066 "  }\n"
2067 "\n"
2068 msgstr ""
2069
2070 # type: textblock
2071 #: ../src/guestfs.pod:1015
2072 msgid ""
2073 "You may think the above is an awful lot of hassle, and it is.  There are "
2074 "other ways outside of the C linking system to ensure that this kind of "
2075 "incompatibility never arises, such as using package versioning:"
2076 msgstr ""
2077
2078 # type: verbatim
2079 #: ../src/guestfs.pod:1020
2080 #, no-wrap
2081 msgid ""
2082 " Requires: libguestfs >= 1.0.80\n"
2083 "\n"
2084 msgstr ""
2085
2086 # type: =end
2087 #: ../src/guestfs.pod:1022 ../src/guestfs.pod:1027
2088 msgid "html"
2089 msgstr ""
2090
2091 # type: textblock
2092 #: ../src/guestfs.pod:1024
2093 msgid ""
2094 "<!-- old anchor for the next section --> <a "
2095 "name=\"state_machine_and_low_level_event_api\"/>"
2096 msgstr ""
2097
2098 # type: =head1
2099 #: ../src/guestfs.pod:1029
2100 msgid "ARCHITECTURE"
2101 msgstr ""
2102
2103 # type: textblock
2104 #: ../src/guestfs.pod:1031
2105 msgid ""
2106 "Internally, libguestfs is implemented by running an appliance (a special "
2107 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
2108 "process of the main program."
2109 msgstr ""
2110
2111 # type: verbatim
2112 #: ../src/guestfs.pod:1035
2113 #, no-wrap
2114 msgid ""
2115 "  ___________________\n"
2116 " /                   \\\n"
2117 " | main program      |\n"
2118 " |                   |\n"
2119 " |                   |           child process / appliance\n"
2120 " |                   |           __________________________\n"
2121 " |                   |          / qemu                     \\\n"
2122 " +-------------------+   RPC    |      +-----------------+ |\n"
2123 " | libguestfs     <--------------------> guestfsd        | |\n"
2124 " |                   |          |      +-----------------+ |\n"
2125 " \\___________________/          |      | Linux kernel    | |\n"
2126 "                                |      +--^--------------+ |\n"
2127 "                                \\_________|________________/\n"
2128 "                                          |\n"
2129 "                                   _______v______\n"
2130 "                                  /              \\\n"
2131 "                                  | Device or    |\n"
2132 "                                  | disk image   |\n"
2133 "                                  \\______________/\n"
2134 "\n"
2135 msgstr ""
2136
2137 # type: textblock
2138 #: ../src/guestfs.pod:1055
2139 msgid ""
2140 "The library, linked to the main program, creates the child process and hence "
2141 "the appliance in the L</guestfs_launch> function."
2142 msgstr ""
2143
2144 # type: textblock
2145 #: ../src/guestfs.pod:1058
2146 msgid ""
2147 "Inside the appliance is a Linux kernel and a complete stack of userspace "
2148 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
2149 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
2150 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
2151 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
2152 "attached to the qemu process which translates device access by the "
2153 "appliance's Linux kernel into accesses to the image."
2154 msgstr ""
2155
2156 # type: textblock
2157 #: ../src/guestfs.pod:1067
2158 msgid ""
2159 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
2160 "Although the disk image you are attached to might also be used by some "
2161 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
2162 "care if both libguestfs's qemu process and your virtual machine are trying "
2163 "to update the disk image at the same time, since these usually results in "
2164 "massive disk corruption)."
2165 msgstr ""
2166
2167 # type: =head1
2168 #: ../src/guestfs.pod:1074
2169 msgid "STATE MACHINE"
2170 msgstr ""
2171
2172 # type: textblock
2173 #: ../src/guestfs.pod:1076
2174 msgid "libguestfs uses a state machine to model the child process:"
2175 msgstr ""
2176
2177 # type: verbatim
2178 #: ../src/guestfs.pod:1078
2179 #, no-wrap
2180 msgid ""
2181 "                         |\n"
2182 "                    guestfs_create\n"
2183 "                         |\n"
2184 "                         |\n"
2185 "                     ____V_____\n"
2186 "                    /          \\\n"
2187 "                    |  CONFIG  |\n"
2188 "                    \\__________/\n"
2189 "                     ^ ^   ^  \\\n"
2190 "                    /  |    \\  \\ guestfs_launch\n"
2191 "                   /   |    _\\__V______\n"
2192 "                  /    |   /           \\\n"
2193 "                 /     |   | LAUNCHING |\n"
2194 "                /      |   \\___________/\n"
2195 "               /       |       /\n"
2196 "              /        |  guestfs_launch\n"
2197 "             /         |     /\n"
2198 "    ______  /        __|____V\n"
2199 "   /      \\ ------> /        \\\n"
2200 "   | BUSY |         | READY  |\n"
2201 "   \\______/ <------ \\________/\n"
2202 "\n"
2203 msgstr ""
2204
2205 # type: textblock
2206 #: ../src/guestfs.pod:1100
2207 msgid ""
2208 "The normal transitions are (1) CONFIG (when the handle is created, but there "
2209 "is no child process), (2) LAUNCHING (when the child process is booting up), "
2210 "(3) alternating between READY and BUSY as commands are issued to, and "
2211 "carried out by, the child process."
2212 msgstr ""
2213
2214 # type: textblock
2215 #: ../src/guestfs.pod:1105
2216 msgid ""
2217 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
2218 "asynchronously at any time (eg. due to some internal error), and that causes "
2219 "the state to transition back to CONFIG."
2220 msgstr ""
2221
2222 # type: textblock
2223 #: ../src/guestfs.pod:1109
2224 msgid ""
2225 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
2226 "issued when in the CONFIG state."
2227 msgstr ""
2228
2229 # type: textblock
2230 #: ../src/guestfs.pod:1112
2231 msgid ""
2232 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
2233 "L</guestfs_launch> blocks until the child process is READY to accept "
2234 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
2235 "moves the state from CONFIG to LAUNCHING while it is running."
2236 msgstr ""
2237
2238 # type: textblock
2239 #: ../src/guestfs.pod:1118
2240 msgid ""
2241 "API actions such as L</guestfs_mount> can only be issued when in the READY "
2242 "state.  These API calls block waiting for the command to be carried out "
2243 "(ie. the state to transition to BUSY and then back to READY).  There are no "
2244 "non-blocking versions, and no way to issue more than one command per handle "
2245 "at the same time."
2246 msgstr ""
2247
2248 # type: textblock
2249 #: ../src/guestfs.pod:1124
2250 msgid ""
2251 "Finally, the child process sends asynchronous messages back to the main "
2252 "program, such as kernel log messages.  You can register a callback to "
2253 "receive these messages."
2254 msgstr ""
2255
2256 # type: =head2
2257 #: ../src/guestfs.pod:1128
2258 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
2259 msgstr ""
2260
2261 # type: textblock
2262 #: ../src/guestfs.pod:1130
2263 msgid ""
2264 "The child process generates events in some situations.  Current events "
2265 "include: receiving a log message, the child process exits."
2266 msgstr ""
2267
2268 # type: textblock
2269 #: ../src/guestfs.pod:1133
2270 msgid ""
2271 "Use the C<guestfs_set_*_callback> functions to set a callback for different "
2272 "types of events."
2273 msgstr ""
2274
2275 # type: textblock
2276 #: ../src/guestfs.pod:1136
2277 msgid ""
2278 "Only I<one callback of each type> can be registered for each handle.  "
2279 "Calling C<guestfs_set_*_callback> again overwrites the previous callback of "
2280 "that type.  Cancel all callbacks of this type by calling this function with "
2281 "C<cb> set to C<NULL>."
2282 msgstr ""
2283
2284 # type: =head2
2285 #: ../src/guestfs.pod:1141
2286 msgid "guestfs_set_log_message_callback"
2287 msgstr ""
2288
2289 # type: verbatim
2290 #: ../src/guestfs.pod:1143
2291 #, no-wrap
2292 msgid ""
2293 " typedef void (*guestfs_log_message_cb) (guestfs_h *g, void *opaque,\n"
2294 "                                         char *buf, int len);\n"
2295 " void guestfs_set_log_message_callback (guestfs_h *g,\n"
2296 "                                        guestfs_log_message_cb cb,\n"
2297 "                                        void *opaque);\n"
2298 "\n"
2299 msgstr ""
2300
2301 # type: textblock
2302 #: ../src/guestfs.pod:1149
2303 msgid ""
2304 "The callback function C<cb> will be called whenever qemu or the guest writes "
2305 "anything to the console."
2306 msgstr ""
2307
2308 # type: textblock
2309 #: ../src/guestfs.pod:1152
2310 msgid "Use this function to capture kernel messages and similar."
2311 msgstr ""
2312
2313 # type: textblock
2314 #: ../src/guestfs.pod:1154
2315 msgid ""
2316 "Normally there is no log message handler, and log messages are just "
2317 "discarded."
2318 msgstr ""
2319
2320 # type: =head2
2321 #: ../src/guestfs.pod:1157
2322 msgid "guestfs_set_subprocess_quit_callback"
2323 msgstr ""
2324
2325 # type: verbatim
2326 #: ../src/guestfs.pod:1159
2327 #, no-wrap
2328 msgid ""
2329 " typedef void (*guestfs_subprocess_quit_cb) (guestfs_h *g, void *opaque);\n"
2330 " void guestfs_set_subprocess_quit_callback (guestfs_h *g,\n"
2331 "                                            guestfs_subprocess_quit_cb cb,\n"
2332 "                                            void *opaque);\n"
2333 "\n"
2334 msgstr ""
2335
2336 # type: textblock
2337 #: ../src/guestfs.pod:1164
2338 msgid ""
2339 "The callback function C<cb> will be called when the child process quits, "
2340 "either asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
2341 "corresponds to a transition from any state to the CONFIG state)."
2342 msgstr ""
2343
2344 # type: =head2
2345 #: ../src/guestfs.pod:1169
2346 msgid "guestfs_set_launch_done_callback"
2347 msgstr ""
2348
2349 # type: verbatim
2350 #: ../src/guestfs.pod:1171
2351 #, no-wrap
2352 msgid ""
2353 " typedef void (*guestfs_launch_done_cb) (guestfs_h *g, void *opaque);\n"
2354 " void guestfs_set_launch_done_callback (guestfs_h *g,\n"
2355 "                                        guestfs_launch_done_cb cb,\n"
2356 "                                        void *opaque);\n"
2357 "\n"
2358 msgstr ""
2359
2360 # type: textblock
2361 #: ../src/guestfs.pod:1176
2362 msgid ""
2363 "The callback function C<cb> will be called when the child process becomes "
2364 "ready first time after it has been launched.  (This corresponds to a "
2365 "transition from LAUNCHING to the READY state)."
2366 msgstr ""
2367
2368 # type: =head2
2369 #: ../src/guestfs.pod:1180
2370 msgid "guestfs_set_close_callback"
2371 msgstr ""
2372
2373 # type: verbatim
2374 #: ../src/guestfs.pod:1182
2375 #, no-wrap
2376 msgid ""
2377 " typedef void (*guestfs_close_cb) (guestfs_h *g, void *opaque);\n"
2378 " void guestfs_set_close_callback (guestfs_h *g,\n"
2379 "                                  guestfs_close_cb cb,\n"
2380 "                                  void *opaque);\n"
2381 "\n"
2382 msgstr ""
2383
2384 # type: textblock
2385 #: ../src/guestfs.pod:1187
2386 msgid ""
2387 "The callback function C<cb> will be called while the handle is being closed "
2388 "(synchronously from L</guestfs_close>)."
2389 msgstr ""
2390
2391 # type: textblock
2392 #: ../src/guestfs.pod:1190
2393 msgid ""
2394 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
2395 "handles that are open when the program exits.  This means that this callback "
2396 "might be called indirectly from L<exit(3)>, which can cause unexpected "
2397 "problems in higher-level languages (eg. if your HLL interpreter has already "
2398 "been cleaned up by the time this is called, and if your callback then jumps "
2399 "into some HLL function)."
2400 msgstr ""
2401
2402 # type: =head2
2403 #: ../src/guestfs.pod:1198
2404 msgid "guestfs_set_progress_callback"
2405 msgstr ""
2406
2407 # type: verbatim
2408 #: ../src/guestfs.pod:1200
2409 #, no-wrap
2410 msgid ""
2411 " typedef void (*guestfs_progress_cb) (guestfs_h *g, void *opaque,\n"
2412 "                                      int proc_nr, int serial,\n"
2413 "                                      uint64_t position, uint64_t total);\n"
2414 " void guestfs_set_progress_callback (guestfs_h *g,\n"
2415 "                                     guestfs_progress_cb cb,\n"
2416 "                                     void *opaque);\n"
2417 "\n"
2418 msgstr ""
2419
2420 # type: textblock
2421 #: ../src/guestfs.pod:1207
2422 msgid ""
2423 "Some long-running operations can generate progress messages.  If this "
2424 "callback is registered, then it will be called each time a progress message "
2425 "is generated (usually two seconds after the operation started, and three "
2426 "times per second thereafter until it completes, although the frequency may "
2427 "change in future versions)."
2428 msgstr ""
2429
2430 # type: textblock
2431 #: ../src/guestfs.pod:1213
2432 msgid ""
2433 "The callback receives two numbers: C<position> and C<total>.  The units of "
2434 "C<total> are not defined, although for some operations C<total> may relate "
2435 "in some way to the amount of data to be transferred (eg. in bytes or "
2436 "megabytes), and C<position> may be the portion which has been transferred."
2437 msgstr ""
2438
2439 # type: textblock
2440 #: ../src/guestfs.pod:1219
2441 msgid "The only defined and stable parts of the API are:"
2442 msgstr ""
2443
2444 # type: textblock
2445 #: ../src/guestfs.pod:1225
2446 msgid ""
2447 "The callback can display to the user some type of progress bar or indicator "
2448 "which shows the ratio of C<position>:C<total>."
2449 msgstr ""
2450
2451 # type: textblock
2452 #: ../src/guestfs.pod:1230
2453 msgid "0 E<lt>= C<position> E<lt>= C<total>"
2454 msgstr ""
2455
2456 # type: textblock
2457 #: ../src/guestfs.pod:1234
2458 msgid ""
2459 "If any progress notification is sent during a call, then a final progress "
2460 "notification is always sent when C<position> = C<total>."
2461 msgstr ""
2462
2463 # type: textblock
2464 #: ../src/guestfs.pod:1237
2465 msgid ""
2466 "This is to simplify caller code, so callers can easily set the progress "
2467 "indicator to \"100%\" at the end of the operation, without requiring special "
2468 "code to detect this case."
2469 msgstr ""
2470
2471 # type: textblock
2472 #: ../src/guestfs.pod:1243
2473 msgid ""
2474 "The callback also receives the procedure number and serial number of the "
2475 "call.  These are only useful for debugging protocol issues, and the callback "
2476 "can normally ignore them.  The callback may want to print these numbers in "
2477 "error messages or debugging messages."
2478 msgstr ""
2479
2480 # type: =head1
2481 #: ../src/guestfs.pod:1248
2482 msgid "PRIVATE DATA AREA"
2483 msgstr ""
2484
2485 # type: textblock
2486 #: ../src/guestfs.pod:1250
2487 msgid ""
2488 "You can attach named pieces of private data to the libguestfs handle, and "
2489 "fetch them by name for the lifetime of the handle.  This is called the "
2490 "private data area and is only available from the C API."
2491 msgstr ""
2492
2493 # type: textblock
2494 #: ../src/guestfs.pod:1254
2495 msgid "To attach a named piece of data, use the following call:"
2496 msgstr ""
2497
2498 # type: verbatim
2499 #: ../src/guestfs.pod:1256
2500 #, no-wrap
2501 msgid ""
2502 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
2503 "\n"
2504 msgstr ""
2505
2506 # type: textblock
2507 #: ../src/guestfs.pod:1258
2508 msgid ""
2509 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
2510 "pointer (which can be C<NULL>).  Any previous item with the same name is "
2511 "overwritten."
2512 msgstr ""
2513
2514 # type: textblock
2515 #: ../src/guestfs.pod:1262
2516 msgid ""
2517 "You can use any C<key> you want, but names beginning with an underscore "
2518 "character are reserved for internal libguestfs purposes (for implementing "
2519 "language bindings).  It is recommended to prefix the name with some unique "
2520 "string to avoid collisions with other users."
2521 msgstr ""
2522
2523 # type: textblock
2524 #: ../src/guestfs.pod:1267
2525 msgid "To retrieve the pointer, use:"
2526 msgstr ""
2527
2528 # type: verbatim
2529 #: ../src/guestfs.pod:1269
2530 #, no-wrap
2531 msgid ""
2532 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
2533 "\n"
2534 msgstr ""
2535
2536 # type: textblock
2537 #: ../src/guestfs.pod:1271
2538 msgid ""
2539 "This function returns C<NULL> if either no data is found associated with "
2540 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
2541 "C<NULL>."
2542 msgstr ""
2543
2544 # type: textblock
2545 #: ../src/guestfs.pod:1275
2546 msgid ""
2547 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
2548 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
2549 "all.  In particular, libguestfs does I<not> try to free the data when the "
2550 "handle is closed.  If the data must be freed, then the caller must either "
2551 "free it before calling L</guestfs_close> or must set up a close callback to "
2552 "do it (see L</guestfs_set_close_callback>, and note that only one callback "
2553 "can be registered for a handle)."
2554 msgstr ""
2555
2556 # type: textblock
2557 #: ../src/guestfs.pod:1283
2558 msgid ""
2559 "The private data area is implemented using a hash table, and should be "
2560 "reasonably efficient for moderate numbers of keys."
2561 msgstr ""
2562
2563 # type: =head1
2564 #: ../src/guestfs.pod:1286
2565 msgid "BLOCK DEVICE NAMING"
2566 msgstr ""
2567
2568 # type: textblock
2569 #: ../src/guestfs.pod:1288
2570 msgid ""
2571 "In the kernel there is now quite a profusion of schemata for naming block "
2572 "devices (in this context, by I<block device> I mean a physical or virtual "
2573 "hard drive).  The original Linux IDE driver used names starting with "
2574 "C</dev/hd*>.  SCSI devices have historically used a different naming scheme, "
2575 "C</dev/sd*>.  When the Linux kernel I<libata> driver became a popular "
2576 "replacement for the old IDE driver (particularly for SATA devices) those "
2577 "devices also used the C</dev/sd*> scheme.  Additionally we now have virtual "
2578 "machines with paravirtualized drivers.  This has created several different "
2579 "naming systems, such as C</dev/vd*> for virtio disks and C</dev/xvd*> for "
2580 "Xen PV disks."
2581 msgstr ""
2582
2583 # type: textblock
2584 #: ../src/guestfs.pod:1300
2585 msgid ""
2586 "As discussed above, libguestfs uses a qemu appliance running an embedded "
2587 "Linux kernel to access block devices.  We can run a variety of appliances "
2588 "based on a variety of Linux kernels."
2589 msgstr ""
2590
2591 # type: textblock
2592 #: ../src/guestfs.pod:1304
2593 msgid ""
2594 "This causes a problem for libguestfs because many API calls use device or "
2595 "partition names.  Working scripts and the recipe (example) scripts that we "
2596 "make available over the internet could fail if the naming scheme changes."
2597 msgstr ""
2598
2599 # type: textblock
2600 #: ../src/guestfs.pod:1309
2601 msgid ""
2602 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
2603 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
2604 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
2605 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
2606 msgstr ""
2607
2608 # type: textblock
2609 #: ../src/guestfs.pod:1315
2610 msgid ""
2611 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
2612 "L</guestfs_list_partitions> and similar calls return the true names of the "
2613 "devices and partitions as known to the appliance."
2614 msgstr ""
2615
2616 # type: =head2
2617 #: ../src/guestfs.pod:1320
2618 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
2619 msgstr ""
2620
2621 # type: textblock
2622 #: ../src/guestfs.pod:1322
2623 msgid ""
2624 "Usually this translation is transparent.  However in some (very rare)  cases "
2625 "you may need to know the exact algorithm.  Such cases include where you use "
2626 "L</guestfs_config> to add a mixture of virtio and IDE devices to the "
2627 "qemu-based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> "
2628 "devices."
2629 msgstr ""
2630
2631 # type: textblock
2632 #: ../src/guestfs.pod:1328
2633 msgid ""
2634 "The algorithm is applied only to I<parameters> which are known to be either "
2635 "device or partition names.  Return values from functions such as "
2636 "L</guestfs_list_devices> are never changed."
2637 msgstr ""
2638
2639 # type: textblock
2640 #: ../src/guestfs.pod:1336
2641 msgid "Is the string a parameter which is a device or partition name?"
2642 msgstr ""
2643
2644 # type: textblock
2645 #: ../src/guestfs.pod:1340
2646 msgid "Does the string begin with C</dev/sd>?"
2647 msgstr ""
2648
2649 # type: textblock
2650 #: ../src/guestfs.pod:1344
2651 msgid ""
2652 "Does the named device exist? If so, we use that device.  However if I<not> "
2653 "then we continue with this algorithm."
2654 msgstr ""
2655
2656 # type: textblock
2657 #: ../src/guestfs.pod:1349
2658 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
2659 msgstr ""
2660
2661 # type: textblock
2662 #: ../src/guestfs.pod:1351
2663 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
2664 msgstr ""
2665
2666 # type: textblock
2667 #: ../src/guestfs.pod:1353
2668 msgid "If that named device exists, use it.  If not, continue."
2669 msgstr ""
2670
2671 # type: textblock
2672 #: ../src/guestfs.pod:1357
2673 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
2674 msgstr ""
2675
2676 # type: textblock
2677 #: ../src/guestfs.pod:1359
2678 msgid "If that named device exists, use it.  If not, return an error."
2679 msgstr ""
2680
2681 # type: =head2
2682 #: ../src/guestfs.pod:1363
2683 msgid "PORTABILITY CONCERNS"
2684 msgstr ""
2685
2686 # type: textblock
2687 #: ../src/guestfs.pod:1365
2688 msgid ""
2689 "Although the standard naming scheme and automatic translation is useful for "
2690 "simple programs and guestfish scripts, for larger programs it is best not to "
2691 "rely on this mechanism."
2692 msgstr ""
2693
2694 # type: textblock
2695 #: ../src/guestfs.pod:1369
2696 msgid ""
2697 "Where possible for maximum future portability programs using libguestfs "
2698 "should use these future-proof techniques:"
2699 msgstr ""
2700
2701 # type: textblock
2702 #: ../src/guestfs.pod:1376
2703 msgid ""
2704 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
2705 "device names, and then use those names directly."
2706 msgstr ""
2707
2708 # type: textblock
2709 #: ../src/guestfs.pod:1379
2710 msgid "Since those device names exist by definition, they will never be translated."
2711 msgstr ""
2712
2713 # type: textblock
2714 #: ../src/guestfs.pod:1384
2715 msgid ""
2716 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
2717 "filesystem labels."
2718 msgstr ""
2719
2720 # type: =head1
2721 #: ../src/guestfs.pod:1389
2722 msgid "INTERNALS"
2723 msgstr ""
2724
2725 # type: =head2
2726 #: ../src/guestfs.pod:1391
2727 msgid "COMMUNICATION PROTOCOL"
2728 msgstr ""
2729
2730 # type: textblock
2731 #: ../src/guestfs.pod:1393
2732 msgid ""
2733 "Don't rely on using this protocol directly.  This section documents how it "
2734 "currently works, but it may change at any time."
2735 msgstr ""
2736
2737 # type: textblock
2738 #: ../src/guestfs.pod:1396
2739 msgid ""
2740 "The protocol used to talk between the library and the daemon running inside "
2741 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
2742 "1014, RFC 1832, RFC 4506)."
2743 msgstr ""
2744
2745 # type: textblock
2746 #: ../src/guestfs.pod:1400
2747 msgid ""
2748 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
2749 "this file is automatically generated)."
2750 msgstr ""
2751
2752 # type: textblock
2753 #: ../src/guestfs.pod:1403
2754 msgid ""
2755 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
2756 "and C<FileOut> parameters, which are handled with very simple request/reply "
2757 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
2758 "parameters, which use the same request and reply messages, but they may also "
2759 "be followed by files sent using a chunked encoding."
2760 msgstr ""
2761
2762 # type: =head3
2763 #: ../src/guestfs.pod:1410
2764 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
2765 msgstr ""
2766
2767 # type: textblock
2768 #: ../src/guestfs.pod:1412
2769 msgid "For ordinary functions, the request message is:"
2770 msgstr ""
2771
2772 # type: verbatim
2773 #: ../src/guestfs.pod:1414
2774 #, no-wrap
2775 msgid ""
2776 " total length (header + arguments,\n"
2777 "      but not including the length word itself)\n"
2778 " struct guestfs_message_header (encoded as XDR)\n"
2779 " struct guestfs_<foo>_args (encoded as XDR)\n"
2780 "\n"
2781 msgstr ""
2782
2783 # type: textblock
2784 #: ../src/guestfs.pod:1419
2785 msgid ""
2786 "The total length field allows the daemon to allocate a fixed size buffer "
2787 "into which it slurps the rest of the message.  As a result, the total length "
2788 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
2789 "effective size of any request is limited to somewhere under this size."
2790 msgstr ""
2791
2792 # type: textblock
2793 #: ../src/guestfs.pod:1425
2794 msgid ""
2795 "Note also that many functions don't take any arguments, in which case the "
2796 "C<guestfs_I<foo>_args> is completely omitted."
2797 msgstr ""
2798
2799 # type: textblock
2800 #: ../src/guestfs.pod:1428
2801 msgid ""
2802 "The header contains the procedure number (C<guestfs_proc>) which is how the "
2803 "receiver knows what type of args structure to expect, or none at all."
2804 msgstr ""
2805
2806 # type: textblock
2807 #: ../src/guestfs.pod:1432
2808 msgid "The reply message for ordinary functions is:"
2809 msgstr ""
2810
2811 # type: verbatim
2812 #: ../src/guestfs.pod:1434
2813 #, no-wrap
2814 msgid ""
2815 " total length (header + ret,\n"
2816 "      but not including the length word itself)\n"
2817 " struct guestfs_message_header (encoded as XDR)\n"
2818 " struct guestfs_<foo>_ret (encoded as XDR)\n"
2819 "\n"
2820 msgstr ""
2821
2822 # type: textblock
2823 #: ../src/guestfs.pod:1439
2824 msgid ""
2825 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
2826 "functions that return no formal return values."
2827 msgstr ""
2828
2829 # type: textblock
2830 #: ../src/guestfs.pod:1442
2831 msgid "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
2832 msgstr ""
2833
2834 # type: textblock
2835 #: ../src/guestfs.pod:1445
2836 msgid ""
2837 "In the case of an error, a flag is set in the header, and the reply message "
2838 "is slightly changed:"
2839 msgstr ""
2840
2841 # type: verbatim
2842 #: ../src/guestfs.pod:1448
2843 #, no-wrap
2844 msgid ""
2845 " total length (header + error,\n"
2846 "      but not including the length word itself)\n"
2847 " struct guestfs_message_header (encoded as XDR)\n"
2848 " struct guestfs_message_error (encoded as XDR)\n"
2849 "\n"
2850 msgstr ""
2851
2852 # type: textblock
2853 #: ../src/guestfs.pod:1453
2854 msgid ""
2855 "The C<guestfs_message_error> structure contains the error message as a "
2856 "string."
2857 msgstr ""
2858
2859 # type: =head3
2860 #: ../src/guestfs.pod:1456
2861 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
2862 msgstr ""
2863
2864 # type: textblock
2865 #: ../src/guestfs.pod:1458
2866 msgid ""
2867 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
2868 "The normal request message is sent (see above).  However this is followed by "
2869 "a sequence of file chunks."
2870 msgstr ""
2871
2872 # type: verbatim
2873 #: ../src/guestfs.pod:1462
2874 #, no-wrap
2875 msgid ""
2876 " total length (header + arguments,\n"
2877 "      but not including the length word itself,\n"
2878 "      and not including the chunks)\n"
2879 " struct guestfs_message_header (encoded as XDR)\n"
2880 " struct guestfs_<foo>_args (encoded as XDR)\n"
2881 " sequence of chunks for FileIn param #0\n"
2882 " sequence of chunks for FileIn param #1 etc.\n"
2883 "\n"
2884 msgstr ""
2885
2886 # type: textblock
2887 #: ../src/guestfs.pod:1470
2888 msgid "The \"sequence of chunks\" is:"
2889 msgstr ""
2890
2891 # type: verbatim
2892 #: ../src/guestfs.pod:1472
2893 #, no-wrap
2894 msgid ""
2895 " length of chunk (not including length word itself)\n"
2896 " struct guestfs_chunk (encoded as XDR)\n"
2897 " length of chunk\n"
2898 " struct guestfs_chunk (encoded as XDR)\n"
2899 "   ...\n"
2900 " length of chunk\n"
2901 " struct guestfs_chunk (with data.data_len == 0)\n"
2902 "\n"
2903 msgstr ""
2904
2905 # type: textblock
2906 #: ../src/guestfs.pod:1480
2907 msgid ""
2908 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
2909 "is set in the final chunk to indicate either successful completion or early "
2910 "cancellation."
2911 msgstr ""
2912
2913 # type: textblock
2914 #: ../src/guestfs.pod:1484
2915 msgid ""
2916 "At time of writing there are no functions that have more than one FileIn "
2917 "parameter.  However this is (theoretically) supported, by sending the "
2918 "sequence of chunks for each FileIn parameter one after another (from left to "
2919 "right)."
2920 msgstr ""
2921
2922 # type: textblock
2923 #: ../src/guestfs.pod:1489
2924 msgid ""
2925 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
2926 "transfer.  The library does this by sending a chunk with a special flag set "
2927 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
2928 "RPC, does I<not> send any reply, and goes back to reading the next request."
2929 msgstr ""
2930
2931 # type: textblock
2932 #: ../src/guestfs.pod:1495
2933 msgid ""
2934 "The daemon may also cancel.  It does this by writing a special word "
2935 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
2936 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
2937 "cancel chunk).  The special word is chosen so that even if cancellation "
2938 "happens right at the end of the transfer (after the library has finished "
2939 "writing and has started listening for the reply), the \"spurious\" cancel "
2940 "flag will not be confused with the reply message."
2941 msgstr ""
2942
2943 # type: textblock
2944 #: ../src/guestfs.pod:1504
2945 msgid ""
2946 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
2947 "limit), and also files where the size is not known in advance (eg. from "
2948 "pipes or sockets).  However the chunks are rather small "
2949 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
2950 "to keep much in memory."
2951 msgstr ""
2952
2953 # type: =head3
2954 #: ../src/guestfs.pod:1510
2955 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
2956 msgstr ""
2957
2958 # type: textblock
2959 #: ../src/guestfs.pod:1512
2960 msgid ""
2961 "The protocol for FileOut parameters is exactly the same as for FileIn "
2962 "parameters, but with the roles of daemon and library reversed."
2963 msgstr ""
2964
2965 # type: verbatim
2966 #: ../src/guestfs.pod:1515
2967 #, no-wrap
2968 msgid ""
2969 " total length (header + ret,\n"
2970 "      but not including the length word itself,\n"
2971 "      and not including the chunks)\n"
2972 " struct guestfs_message_header (encoded as XDR)\n"
2973 " struct guestfs_<foo>_ret (encoded as XDR)\n"
2974 " sequence of chunks for FileOut param #0\n"
2975 " sequence of chunks for FileOut param #1 etc.\n"
2976 "\n"
2977 msgstr ""
2978
2979 # type: =head3
2980 #: ../src/guestfs.pod:1523
2981 msgid "INITIAL MESSAGE"
2982 msgstr ""
2983
2984 # type: textblock
2985 #: ../src/guestfs.pod:1525
2986 msgid ""
2987 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
2988 "which indicates that the guest and daemon is alive.  This is what "
2989 "L</guestfs_launch> waits for."
2990 msgstr ""
2991
2992 # type: =head3
2993 #: ../src/guestfs.pod:1529
2994 msgid "PROGRESS NOTIFICATION MESSAGES"
2995 msgstr ""
2996
2997 # type: textblock
2998 #: ../src/guestfs.pod:1531
2999 msgid ""
3000 "The daemon may send progress notification messages at any time.  These are "
3001 "distinguished by the normal length word being replaced by "
3002 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
3003 msgstr ""
3004
3005 # type: textblock
3006 #: ../src/guestfs.pod:1535
3007 msgid ""
3008 "The library turns them into progress callbacks (see "
3009 "C<guestfs_set_progress_callback>) if there is a callback registered, or "
3010 "discards them if not."
3011 msgstr ""
3012
3013 # type: textblock
3014 #: ../src/guestfs.pod:1539
3015 msgid ""
3016 "The daemon self-limits the frequency of progress messages it sends (see "
3017 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
3018 "messages."
3019 msgstr ""
3020
3021 # type: =head1
3022 #: ../src/guestfs.pod:1543
3023 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
3024 msgstr ""
3025
3026 # type: textblock
3027 #: ../src/guestfs.pod:1545
3028 msgid ""
3029 "All high-level libguestfs actions are synchronous.  If you want to use "
3030 "libguestfs asynchronously then you must create a thread."
3031 msgstr ""
3032
3033 # type: textblock
3034 #: ../src/guestfs.pod:1548
3035 msgid ""
3036 "Only use the handle from a single thread.  Either use the handle exclusively "
3037 "from one thread, or provide your own mutex so that two threads cannot issue "
3038 "calls on the same handle at the same time."
3039 msgstr ""
3040
3041 # type: textblock
3042 #: ../src/guestfs.pod:1552
3043 msgid ""
3044 "See the graphical program guestfs-browser for one possible architecture for "
3045 "multithreaded programs using libvirt and libguestfs."
3046 msgstr ""
3047
3048 # type: =head1
3049 #: ../src/guestfs.pod:1555
3050 msgid "QEMU WRAPPERS"
3051 msgstr ""
3052
3053 # type: textblock
3054 #: ../src/guestfs.pod:1557
3055 msgid ""
3056 "If you want to compile your own qemu, run qemu from a non-standard location, "
3057 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
3058 "around qemu."
3059 msgstr ""
3060
3061 # type: textblock
3062 #: ../src/guestfs.pod:1561
3063 msgid ""
3064 "There is one important rule to remember: you I<must C<exec qemu>> as the "
3065 "last command in the shell script (so that qemu replaces the shell and "
3066 "becomes the direct child of the libguestfs-using program).  If you don't do "
3067 "this, then the qemu process won't be cleaned up correctly."
3068 msgstr ""
3069
3070 # type: textblock
3071 #: ../src/guestfs.pod:1566
3072 msgid ""
3073 "Here is an example of a wrapper, where I have built my own copy of qemu from "
3074 "source:"
3075 msgstr ""
3076
3077 # type: verbatim
3078 #: ../src/guestfs.pod:1569
3079 #, no-wrap
3080 msgid ""
3081 " #!/bin/sh -\n"
3082 " qemudir=/home/rjones/d/qemu\n"
3083 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios "
3084 "\"$@\"\n"
3085 "\n"
3086 msgstr ""
3087
3088 # type: textblock
3089 #: ../src/guestfs.pod:1573
3090 msgid ""
3091 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
3092 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
3093 "example:"
3094 msgstr ""
3095
3096 # type: verbatim
3097 #: ../src/guestfs.pod:1577
3098 #, no-wrap
3099 msgid ""
3100 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
3101 "\n"
3102 msgstr ""
3103
3104 # type: textblock
3105 #: ../src/guestfs.pod:1579
3106 msgid ""
3107 "Note that libguestfs also calls qemu with the -help and -version options in "
3108 "order to determine features."
3109 msgstr ""
3110
3111 # type: =head1
3112 #: ../src/guestfs.pod:1582
3113 msgid "LIBGUESTFS VERSION NUMBERS"
3114 msgstr ""
3115
3116 # type: textblock
3117 #: ../src/guestfs.pod:1584
3118 msgid ""
3119 "Since April 2010, libguestfs has started to make separate development and "
3120 "stable releases, along with corresponding branches in our git repository.  "
3121 "These separate releases can be identified by version number:"
3122 msgstr ""
3123
3124 # type: verbatim
3125 #: ../src/guestfs.pod:1589
3126 #, no-wrap
3127 msgid ""
3128 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
3129 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
3130 "       |\n"
3131 "       v\n"
3132 " 1  .  3  .  5\n"
3133 " ^           ^\n"
3134 " |           |\n"
3135 " |           `-------- sub-version\n"
3136 " |\n"
3137 " `------ always '1' because we don't change the ABI\n"
3138 "\n"
3139 msgstr ""
3140
3141 # type: textblock
3142 #: ../src/guestfs.pod:1600
3143 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
3144 msgstr ""
3145
3146 # type: textblock
3147 #: ../src/guestfs.pod:1602
3148 msgid ""
3149 "As time passes we cherry pick fixes from the development branch and backport "
3150 "those into the stable branch, the effect being that the stable branch should "
3151 "get more stable and less buggy over time.  So the stable releases are ideal "
3152 "for people who don't need new features but would just like the software to "
3153 "work."
3154 msgstr ""
3155
3156 # type: textblock
3157 #: ../src/guestfs.pod:1608
3158 msgid "Our criteria for backporting changes are:"
3159 msgstr ""
3160
3161 # type: textblock
3162 #: ../src/guestfs.pod:1614
3163 msgid ""
3164 "Documentation changes which don't affect any code are backported unless the "
3165 "documentation refers to a future feature which is not in stable."
3166 msgstr ""
3167
3168 # type: textblock
3169 #: ../src/guestfs.pod:1620
3170 msgid ""
3171 "Bug fixes which are not controversial, fix obvious problems, and have been "
3172 "well tested are backported."
3173 msgstr ""
3174
3175 # type: textblock
3176 #: ../src/guestfs.pod:1625
3177 msgid ""
3178 "Simple rearrangements of code which shouldn't affect how it works get "
3179 "backported.  This is so that the code in the two branches doesn't get too "
3180 "far out of step, allowing us to backport future fixes more easily."
3181 msgstr ""
3182
3183 # type: textblock
3184 #: ../src/guestfs.pod:1631
3185 msgid ""
3186 "We I<don't> backport new features, new APIs, new tools etc, except in one "
3187 "exceptional case: the new feature is required in order to implement an "
3188 "important bug fix."
3189 msgstr ""
3190
3191 # type: textblock
3192 #: ../src/guestfs.pod:1637
3193 msgid ""
3194 "A new stable branch starts when we think the new features in development are "
3195 "substantial and compelling enough over the current stable branch to warrant "
3196 "it.  When that happens we create new stable and development versions 1.N.0 "
3197 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
3198 "stable at this point, but by backporting fixes from development, that branch "
3199 "will stabilize over time."
3200 msgstr ""
3201
3202 # type: =head1
3203 #: ../src/guestfs.pod:1645 ../fish/guestfish.pod:933 ../test-tool/libguestfs-test-tool.pod:104 ../tools/virt-edit.pl:312 ../tools/virt-rescue.pl:226
3204 msgid "ENVIRONMENT VARIABLES"
3205 msgstr ""
3206
3207 # type: =item
3208 #: ../src/guestfs.pod:1649 ../fish/guestfish.pod:953
3209 msgid "LIBGUESTFS_APPEND"
3210 msgstr ""
3211
3212 # type: textblock
3213 #: ../src/guestfs.pod:1651 ../fish/guestfish.pod:955
3214 msgid "Pass additional options to the guest kernel."
3215 msgstr ""
3216
3217 # type: =item
3218 #: ../src/guestfs.pod:1653 ../fish/guestfish.pod:957
3219 msgid "LIBGUESTFS_DEBUG"
3220 msgstr ""
3221
3222 # type: textblock
3223 #: ../src/guestfs.pod:1655
3224 msgid ""
3225 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
3226 "effect as calling C<guestfs_set_verbose (g, 1)>."
3227 msgstr ""
3228
3229 # type: =item
3230 #: ../src/guestfs.pod:1658 ../fish/guestfish.pod:962
3231 msgid "LIBGUESTFS_MEMSIZE"
3232 msgstr ""
3233
3234 # type: textblock
3235 #: ../src/guestfs.pod:1660 ../fish/guestfish.pod:964
3236 msgid "Set the memory allocated to the qemu process, in megabytes.  For example:"
3237 msgstr ""
3238
3239 # type: verbatim
3240 #: ../src/guestfs.pod:1663 ../fish/guestfish.pod:967
3241 #, no-wrap
3242 msgid ""
3243 " LIBGUESTFS_MEMSIZE=700\n"
3244 "\n"
3245 msgstr ""
3246
3247 # type: =item
3248 #: ../src/guestfs.pod:1665 ../fish/guestfish.pod:969
3249 msgid "LIBGUESTFS_PATH"
3250 msgstr ""
3251
3252 # type: textblock
3253 #: ../src/guestfs.pod:1667
3254 msgid ""
3255 "Set the path that libguestfs uses to search for kernel and initrd.img.  See "
3256 "the discussion of paths in section PATH above."
3257 msgstr ""
3258
3259 # type: =item
3260 #: ../src/guestfs.pod:1670 ../fish/guestfish.pod:974
3261 msgid "LIBGUESTFS_QEMU"
3262 msgstr ""
3263
3264 # type: textblock
3265 #: ../src/guestfs.pod:1672 ../fish/guestfish.pod:976
3266 msgid ""
3267 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
3268 "which was found at compile time by the configure script is used."
3269 msgstr ""
3270
3271 # type: textblock
3272 #: ../src/guestfs.pod:1676
3273 msgid "See also L</QEMU WRAPPERS> above."
3274 msgstr ""
3275
3276 # type: =item
3277 #: ../src/guestfs.pod:1678 ../fish/guestfish.pod:980
3278 msgid "LIBGUESTFS_TRACE"
3279 msgstr ""
3280
3281 # type: textblock
3282 #: ../src/guestfs.pod:1680
3283 msgid ""
3284 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
3285 "effect as calling C<guestfs_set_trace (g, 1)>."
3286 msgstr ""
3287
3288 # type: =item
3289 #: ../src/guestfs.pod:1683 ../fish/guestfish.pod:989
3290 msgid "TMPDIR"
3291 msgstr ""
3292
3293 # type: textblock
3294 #: ../src/guestfs.pod:1685 ../fish/guestfish.pod:991
3295 msgid "Location of temporary directory, defaults to C</tmp>."
3296 msgstr ""
3297
3298 # type: textblock
3299 #: ../src/guestfs.pod:1687 ../fish/guestfish.pod:993
3300 msgid ""
3301 "If libguestfs was compiled to use the supermin appliance then each handle "
3302 "will require rather a large amount of space in this directory for short "
3303 "periods of time (~ 80 MB).  You can use C<$TMPDIR> to configure another "
3304 "directory to use in case C</tmp> is not large enough."
3305 msgstr ""
3306
3307 # type: =head1
3308 #: ../src/guestfs.pod:1695 ../fish/guestfish.pod:1051 ../test-tool/libguestfs-test-tool.pod:109 ../fuse/guestmount.pod:178 ../inspector/virt-inspector.pl:846 ../tools/virt-cat.pl:163 ../tools/virt-df.pl:482 ../tools/virt-edit.pl:325 ../tools/virt-list-filesystems.pl:191 ../tools/virt-list-partitions.pl:229 ../tools/virt-ls.pl:210 ../tools/virt-make-fs.pl:527 ../tools/virt-rescue.pl:231 ../tools/virt-resize.pl:1390 ../tools/virt-tar.pl:257 ../tools/virt-win-reg.pl:461
3309 msgid "SEE ALSO"
3310 msgstr ""
3311
3312 # type: textblock
3313 #: ../src/guestfs.pod:1697
3314 msgid ""
3315 "L<guestfish(1)>, L<guestmount(1)>, L<virt-cat(1)>, L<virt-df(1)>, "
3316 "L<virt-edit(1)>, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, "
3317 "L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, "
3318 "L<virt-rescue(1)>, L<virt-tar(1)>, L<virt-win-reg(1)>, L<qemu(1)>, "
3319 "L<febootstrap(1)>, L<hivex(3)>, L<http://libguestfs.org/>."
3320 msgstr ""
3321
3322 # type: textblock
3323 #: ../src/guestfs.pod:1715
3324 msgid ""
3325 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, "
3326 "L<lvm(8)>, L<disktype(1)>."
3327 msgstr ""
3328
3329 # type: =head1
3330 #: ../src/guestfs.pod:1722 ../tools/virt-make-fs.pl:541 ../tools/virt-win-reg.pl:476
3331 msgid "BUGS"
3332 msgstr ""
3333
3334 # type: textblock
3335 #: ../src/guestfs.pod:1724
3336 msgid "To get a list of bugs against libguestfs use this link:"
3337 msgstr ""
3338
3339 # type: textblock
3340 #: ../src/guestfs.pod:1726
3341 msgid "L<https://bugzilla.redhat.com/buglist.cgi?component=libguestfs&product=Virtualization+Tools>"
3342 msgstr ""
3343
3344 # type: textblock
3345 #: ../src/guestfs.pod:1728
3346 msgid "To report a new bug against libguestfs use this link:"
3347 msgstr ""
3348
3349 # type: textblock
3350 #: ../src/guestfs.pod:1730
3351 msgid "L<https://bugzilla.redhat.com/enter_bug.cgi?component=libguestfs&product=Virtualization+Tools>"
3352 msgstr ""
3353
3354 # type: textblock
3355 #: ../src/guestfs.pod:1732
3356 msgid "When reporting a bug, please check:"
3357 msgstr ""
3358
3359 # type: textblock
3360 #: ../src/guestfs.pod:1738
3361 msgid "That the bug hasn't been reported already."
3362 msgstr ""
3363
3364 # type: textblock
3365 #: ../src/guestfs.pod:1742
3366 msgid "That you are testing a recent version."
3367 msgstr ""
3368
3369 # type: textblock
3370 #: ../src/guestfs.pod:1746
3371 msgid "Describe the bug accurately, and give a way to reproduce it."
3372 msgstr ""
3373
3374 # type: textblock
3375 #: ../src/guestfs.pod:1750
3376 msgid ""
3377 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
3378 "bug report."
3379 msgstr ""
3380
3381 # type: =head1
3382 #: ../src/guestfs.pod:1755 ../fish/guestfish.pod:1067 ../test-tool/libguestfs-test-tool.pod:115 ../fuse/guestmount.pod:189 ../inspector/virt-inspector.pl:855
3383 msgid "AUTHORS"
3384 msgstr ""
3385
3386 # type: textblock
3387 #: ../src/guestfs.pod:1757 ../fish/guestfish.pod:1069 ../test-tool/libguestfs-test-tool.pod:117 ../fuse/guestmount.pod:191
3388 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
3389 msgstr ""
3390
3391 # type: =head1
3392 #: ../src/guestfs.pod:1759 ../fish/guestfish.pod:1071 ../test-tool/libguestfs-test-tool.pod:119 ../fuse/guestmount.pod:193 ../inspector/virt-inspector.pl:861 ../tools/virt-cat.pl:177 ../tools/virt-df.pl:495 ../tools/virt-edit.pl:341 ../tools/virt-list-filesystems.pl:207 ../tools/virt-list-partitions.pl:244 ../tools/virt-ls.pl:225 ../tools/virt-make-fs.pl:556 ../tools/virt-rescue.pl:245 ../tools/virt-resize.pl:1411 ../tools/virt-tar.pl:272 ../tools/virt-win-reg.pl:491
3393 msgid "COPYRIGHT"
3394 msgstr ""
3395
3396 # type: textblock
3397 #: ../src/guestfs.pod:1761 ../fish/guestfish.pod:1073
3398 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
3399 msgstr ""
3400
3401 # type: textblock
3402 #: ../src/guestfs.pod:1764
3403 msgid ""
3404 "This library is free software; you can redistribute it and/or modify it "
3405 "under the terms of the GNU Lesser General Public License as published by the "
3406 "Free Software Foundation; either version 2 of the License, or (at your "
3407 "option) any later version."
3408 msgstr ""
3409
3410 # type: textblock
3411 #: ../src/guestfs.pod:1769
3412 msgid ""
3413 "This library is distributed in the hope that it will be useful, but WITHOUT "
3414 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
3415 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License "
3416 "for more details."
3417 msgstr ""
3418
3419 # type: textblock
3420 #: ../src/guestfs.pod:1774
3421 msgid ""
3422 "You should have received a copy of the GNU Lesser General Public License "
3423 "along with this library; if not, write to the Free Software Foundation, "
3424 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
3425 msgstr ""
3426
3427 # type: =head2
3428 #: ../src/guestfs-actions.pod:1
3429 msgid "guestfs_add_cdrom"
3430 msgstr ""
3431
3432 # type: verbatim
3433 #: ../src/guestfs-actions.pod:3
3434 #, no-wrap
3435 msgid ""
3436 " int guestfs_add_cdrom (guestfs_h *g,\n"
3437 "\t\tconst char *filename);\n"
3438 "\n"
3439 msgstr ""
3440
3441 # type: textblock
3442 #: ../src/guestfs-actions.pod:6 ../fish/guestfish-actions.pod:5
3443 msgid "This function adds a virtual CD-ROM disk image to the guest."
3444 msgstr ""
3445
3446 # type: textblock
3447 #: ../src/guestfs-actions.pod:8 ../fish/guestfish-actions.pod:7
3448 msgid "This is equivalent to the qemu parameter C<-cdrom filename>."
3449 msgstr ""
3450
3451 # type: textblock
3452 #: ../src/guestfs-actions.pod:10 ../src/guestfs-actions.pod:1488 ../fish/guestfish-actions.pod:9 ../fish/guestfish-actions.pod:1186
3453 msgid "Notes:"
3454 msgstr ""
3455
3456 # type: textblock
3457 #: ../src/guestfs-actions.pod:16
3458 msgid ""
3459 "This call checks for the existence of C<filename>.  This stops you from "
3460 "specifying other types of drive which are supported by qemu such as C<nbd:> "
3461 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
3462 "instead."
3463 msgstr ""
3464
3465 # type: textblock
3466 #: ../src/guestfs-actions.pod:23
3467 msgid ""
3468 "If you just want to add an ISO file (often you use this as an efficient way "
3469 "to transfer large files into the guest), then you should probably use "
3470 "C<guestfs_add_drive_ro> instead."
3471 msgstr ""
3472
3473 # type: textblock
3474 #: ../src/guestfs-actions.pod:29 ../src/guestfs-actions.pod:63 ../src/guestfs-actions.pod:92 ../src/guestfs-actions.pod:103 ../src/guestfs-actions.pod:114 ../src/guestfs-actions.pod:124 ../src/guestfs-actions.pod:135 ../src/guestfs-actions.pod:238 ../src/guestfs-actions.pod:255 ../src/guestfs-actions.pod:266 ../src/guestfs-actions.pod:302 ../src/guestfs-actions.pod:324 ../src/guestfs-actions.pod:339 ../src/guestfs-actions.pod:403 ../src/guestfs-actions.pod:430 ../src/guestfs-actions.pod:441 ../src/guestfs-actions.pod:453 ../src/guestfs-actions.pod:534 ../src/guestfs-actions.pod:549 ../src/guestfs-actions.pod:560 ../src/guestfs-actions.pod:571 ../src/guestfs-actions.pod:717 ../src/guestfs-actions.pod:734 ../src/guestfs-actions.pod:749 ../src/guestfs-actions.pod:824 ../src/guestfs-actions.pod:839 ../src/guestfs-actions.pod:855 ../src/guestfs-actions.pod:866 ../src/guestfs-actions.pod:883 ../src/guestfs-actions.pod:916 ../src/guestfs-actions.pod:974 ../src/guestfs-actions.pod:996 ../src/guestfs-actions.pod:1027 ../src/guestfs-actions.pod:1115 ../src/guestfs-actions.pod:1146 ../src/guestfs-actions.pod:1346 ../src/guestfs-actions.pod:1365 ../src/guestfs-actions.pod:1446 ../src/guestfs-actions.pod:1794 ../src/guestfs-actions.pod:1917 ../src/guestfs-actions.pod:1972 ../src/guestfs-actions.pod:2002 ../src/guestfs-actions.pod:2411 ../src/guestfs-actions.pod:2423 ../src/guestfs-actions.pod:2440 ../src/guestfs-actions.pod:2548 ../src/guestfs-actions.pod:2559 ../src/guestfs-actions.pod:2569 ../src/guestfs-actions.pod:2580 ../src/guestfs-actions.pod:2592 ../src/guestfs-actions.pod:2622 ../src/guestfs-actions.pod:2686 ../src/guestfs-actions.pod:2703 ../src/guestfs-actions.pod:2717 ../src/guestfs-actions.pod:2737 ../src/guestfs-actions.pod:2757 ../src/guestfs-actions.pod:2786 ../src/guestfs-actions.pod:2802 ../src/guestfs-actions.pod:2818 ../src/guestfs-actions.pod:2830 ../src/guestfs-actions.pod:2839 ../src/guestfs-actions.pod:2872 ../src/guestfs-actions.pod:2885 ../src/guestfs-actions.pod:2895 ../src/guestfs-actions.pod:2907 ../src/guestfs-actions.pod:2921 ../src/guestfs-actions.pod:3001 ../src/guestfs-actions.pod:3018 ../src/guestfs-actions.pod:3028 ../src/guestfs-actions.pod:3073 ../src/guestfs-actions.pod:3088 ../src/guestfs-actions.pod:3103 ../src/guestfs-actions.pod:3116 ../src/guestfs-actions.pod:3127 ../src/guestfs-actions.pod:3138 ../src/guestfs-actions.pod:3152 ../src/guestfs-actions.pod:3164 ../src/guestfs-actions.pod:3181 ../src/guestfs-actions.pod:3212 ../src/guestfs-actions.pod:3240 ../src/guestfs-actions.pod:3256 ../src/guestfs-actions.pod:3272 ../src/guestfs-actions.pod:3281 ../src/guestfs-actions.pod:3295 ../src/guestfs-actions.pod:3305 ../src/guestfs-actions.pod:3317 ../src/guestfs-actions.pod:3329 ../src/guestfs-actions.pod:3361 ../src/guestfs-actions.pod:3373 ../src/guestfs-actions.pod:3390 ../src/guestfs-actions.pod:3401 ../src/guestfs-actions.pod:3415 ../src/guestfs-actions.pod:3455 ../src/guestfs-actions.pod:3486 ../src/guestfs-actions.pod:3497 ../src/guestfs-actions.pod:3522 ../src/guestfs-actions.pod:3536 ../src/guestfs-actions.pod:3551 ../src/guestfs-actions.pod:3673 ../src/guestfs-actions.pod:3725 ../src/guestfs-actions.pod:3744 ../src/guestfs-actions.pod:3759 ../src/guestfs-actions.pod:3785 ../src/guestfs-actions.pod:3819 ../src/guestfs-actions.pod:3833 ../src/guestfs-actions.pod:3843 ../src/guestfs-actions.pod:3854 ../src/guestfs-actions.pod:4086 ../src/guestfs-actions.pod:4102 ../src/guestfs-actions.pod:4113 ../src/guestfs-actions.pod:4122 ../src/guestfs-actions.pod:4133 ../src/guestfs-actions.pod:4142 ../src/guestfs-actions.pod:4153 ../src/guestfs-actions.pod:4166 ../src/guestfs-actions.pod:4184 ../src/guestfs-actions.pod:4200 ../src/guestfs-actions.pod:4216 ../src/guestfs-actions.pod:4231 ../src/guestfs-actions.pod:4251 ../src/guestfs-actions.pod:4266 ../src/guestfs-actions.pod:4282 ../src/guestfs-actions.pod:4300 ../src/guestfs-actions.pod:4316 ../src/guestfs-actions.pod:4330 ../src/guestfs-actions.pod:4355 ../src/guestfs-actions.pod:4376 ../src/guestfs-actions.pod:4392 ../src/guestfs-actions.pod:4413 ../src/guestfs-actions.pod:4425 ../src/guestfs-actions.pod:4437 ../src/guestfs-actions.pod:4453 ../src/guestfs-actions.pod:4487 ../src/guestfs-actions.pod:4507 ../src/guestfs-actions.pod:4530 ../src/guestfs-actions.pod:4620 ../src/guestfs-actions.pod:4726 ../src/guestfs-actions.pod:4735 ../src/guestfs-actions.pod:4745 ../src/guestfs-actions.pod:4755 ../src/guestfs-actions.pod:4774 ../src/guestfs-actions.pod:4784 ../src/guestfs-actions.pod:4794 ../src/guestfs-actions.pod:4804 ../src/guestfs-actions.pod:4816 ../src/guestfs-actions.pod:4866 ../src/guestfs-actions.pod:4880 ../src/guestfs-actions.pod:4893 ../src/guestfs-actions.pod:4906 ../src/guestfs-actions.pod:4920 ../src/guestfs-actions.pod:4930 ../src/guestfs-actions.pod:4947 ../src/guestfs-actions.pod:4977 ../src/guestfs-actions.pod:4988 ../src/guestfs-actions.pod:5023 ../src/guestfs-actions.pod:5033 ../src/guestfs-actions.pod:5048 ../src/guestfs-actions.pod:5076 ../src/guestfs-actions.pod:5180 ../src/guestfs-actions.pod:5195 ../src/guestfs-actions.pod:5206 ../src/guestfs-actions.pod:5252 ../src/guestfs-actions.pod:5262 ../src/guestfs-actions.pod:5299 ../src/guestfs-actions.pod:5326 ../src/guestfs-actions.pod:5368 ../src/guestfs-actions.pod:5391 ../src/guestfs-actions.pod:5448 ../src/guestfs-actions.pod:5464 ../src/guestfs-actions.pod:5490
3475 msgid "This function returns 0 on success or -1 on error."
3476 msgstr ""
3477
3478 # type: =head2
3479 #: ../src/guestfs-actions.pod:31
3480 msgid "guestfs_add_drive"
3481 msgstr ""
3482
3483 # type: verbatim
3484 #: ../src/guestfs-actions.pod:33
3485 #, no-wrap
3486 msgid ""
3487 " int guestfs_add_drive (guestfs_h *g,\n"
3488 "\t\tconst char *filename);\n"
3489 "\n"
3490 msgstr ""
3491
3492 # type: textblock
3493 #: ../src/guestfs-actions.pod:36 ../fish/guestfish-actions.pod:32
3494 msgid ""
3495 "This function adds a virtual machine disk image C<filename> to the guest.  "
3496 "The first time you call this function, the disk appears as IDE disk 0 "
3497 "(C</dev/sda>) in the guest, the second time as C</dev/sdb>, and so on."
3498 msgstr ""
3499
3500 # type: textblock
3501 #: ../src/guestfs-actions.pod:41 ../fish/guestfish-actions.pod:37
3502 msgid ""
3503 "You don't necessarily need to be root when using libguestfs.  However you "
3504 "obviously do need sufficient permissions to access the filename for whatever "
3505 "operations you want to perform (ie. read access if you just want to read the "
3506 "image or write access if you want to modify the image)."
3507 msgstr ""
3508
3509 # type: textblock
3510 #: ../src/guestfs-actions.pod:47 ../fish/guestfish-actions.pod:43
3511 msgid ""
3512 "This is equivalent to the qemu parameter C<-drive "
3513 "file=filename,cache=off,if=...>."
3514 msgstr ""
3515
3516 # type: textblock
3517 #: ../src/guestfs-actions.pod:50 ../fish/guestfish-actions.pod:46
3518 msgid ""
3519 "C<cache=off> is omitted in cases where it is not supported by the underlying "
3520 "filesystem."
3521 msgstr ""
3522
3523 # type: textblock
3524 #: ../src/guestfs-actions.pod:53 ../src/guestfs-actions.pod:82
3525 msgid ""
3526 "C<if=...> is set at compile time by the configuration option C<./configure "
3527 "--with-drive-if=...>.  In the rare case where you might need to change this "
3528 "at run time, use C<guestfs_add_drive_with_if> or "
3529 "C<guestfs_add_drive_ro_with_if>."
3530 msgstr ""
3531
3532 # type: textblock
3533 #: ../src/guestfs-actions.pod:58 ../src/guestfs-actions.pod:87
3534 msgid ""
3535 "Note that this call checks for the existence of C<filename>.  This stops you "
3536 "from specifying other types of drive which are supported by qemu such as "
3537 "C<nbd:> and C<http:> URLs.  To specify those, use the general "
3538 "C<guestfs_config> call instead."
3539 msgstr ""
3540
3541 # type: =head2
3542 #: ../src/guestfs-actions.pod:65
3543 msgid "guestfs_add_drive_ro"
3544 msgstr ""
3545
3546 # type: verbatim
3547 #: ../src/guestfs-actions.pod:67
3548 #, no-wrap
3549 msgid ""
3550 " int guestfs_add_drive_ro (guestfs_h *g,\n"
3551 "\t\tconst char *filename);\n"
3552 "\n"
3553 msgstr ""
3554
3555 # type: textblock
3556 #: ../src/guestfs-actions.pod:70 ../fish/guestfish-actions.pod:63
3557 msgid "This adds a drive in snapshot mode, making it effectively read-only."
3558 msgstr ""
3559
3560 # type: textblock
3561 #: ../src/guestfs-actions.pod:73 ../fish/guestfish-actions.pod:66
3562 msgid ""
3563 "Note that writes to the device are allowed, and will be seen for the "
3564 "duration of the guestfs handle, but they are written to a temporary file "
3565 "which is discarded as soon as the guestfs handle is closed.  We don't "
3566 "currently have any method to enable changes to be committed, although qemu "
3567 "can support this."
3568 msgstr ""
3569
3570 # type: textblock
3571 #: ../src/guestfs-actions.pod:79 ../fish/guestfish-actions.pod:72
3572 msgid ""
3573 "This is equivalent to the qemu parameter C<-drive "
3574 "file=filename,snapshot=on,if=...>."
3575 msgstr ""
3576
3577 # type: =head2
3578 #: ../src/guestfs-actions.pod:94
3579 msgid "guestfs_add_drive_ro_with_if"
3580 msgstr ""
3581
3582 # type: verbatim
3583 #: ../src/guestfs-actions.pod:96
3584 #, no-wrap
3585 msgid ""
3586 " int guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
3587 "\t\tconst char *filename,\n"
3588 "\t\tconst char *iface);\n"
3589 "\n"
3590 msgstr ""
3591
3592 # type: textblock
3593 #: ../src/guestfs-actions.pod:100
3594 msgid ""
3595 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
3596 "QEMU interface emulation to use at run time."
3597 msgstr ""
3598
3599 # type: =head2
3600 #: ../src/guestfs-actions.pod:105
3601 msgid "guestfs_add_drive_with_if"
3602 msgstr ""
3603
3604 # type: verbatim
3605 #: ../src/guestfs-actions.pod:107
3606 #, no-wrap
3607 msgid ""
3608 " int guestfs_add_drive_with_if (guestfs_h *g,\n"
3609 "\t\tconst char *filename,\n"
3610 "\t\tconst char *iface);\n"
3611 "\n"
3612 msgstr ""
3613
3614 # type: textblock
3615 #: ../src/guestfs-actions.pod:111
3616 msgid ""
3617 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
3618 "QEMU interface emulation to use at run time."
3619 msgstr ""
3620
3621 # type: =head2
3622 #: ../src/guestfs-actions.pod:116
3623 msgid "guestfs_aug_clear"
3624 msgstr ""
3625
3626 # type: verbatim
3627 #: ../src/guestfs-actions.pod:118
3628 #, no-wrap
3629 msgid ""
3630 " int guestfs_aug_clear (guestfs_h *g,\n"
3631 "\t\tconst char *augpath);\n"
3632 "\n"
3633 msgstr ""
3634
3635 # type: textblock
3636 #: ../src/guestfs-actions.pod:121 ../fish/guestfish-actions.pod:103
3637 msgid ""
3638 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
3639 "L<augtool(1)> C<clear> command."
3640 msgstr ""
3641
3642 # type: =head2
3643 #: ../src/guestfs-actions.pod:126
3644 msgid "guestfs_aug_close"
3645 msgstr ""
3646
3647 # type: verbatim
3648 #: ../src/guestfs-actions.pod:128
3649 #, no-wrap
3650 msgid ""
3651 " int guestfs_aug_close (guestfs_h *g);\n"
3652 "\n"
3653 msgstr ""
3654
3655 # type: textblock
3656 #: ../src/guestfs-actions.pod:130
3657 msgid ""
3658 "Close the current Augeas handle and free up any resources used by it.  After "
3659 "calling this, you have to call C<guestfs_aug_init> again before you can use "
3660 "any other Augeas functions."
3661 msgstr ""
3662
3663 # type: =head2
3664 #: ../src/guestfs-actions.pod:137
3665 msgid "guestfs_aug_defnode"
3666 msgstr ""
3667
3668 # type: verbatim
3669 #: ../src/guestfs-actions.pod:139
3670 #, no-wrap
3671 msgid ""
3672 " struct guestfs_int_bool *guestfs_aug_defnode (guestfs_h *g,\n"
3673 "\t\tconst char *name,\n"
3674 "\t\tconst char *expr,\n"
3675 "\t\tconst char *val);\n"
3676 "\n"
3677 msgstr ""
3678
3679 # type: textblock
3680 #: ../src/guestfs-actions.pod:144 ../fish/guestfish-actions.pod:119
3681 msgid "Defines a variable C<name> whose value is the result of evaluating C<expr>."
3682 msgstr ""
3683
3684 # type: textblock
3685 #: ../src/guestfs-actions.pod:147
3686 msgid ""
3687 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
3688 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
3689 "containing that single node."
3690 msgstr ""
3691
3692 # type: textblock
3693 #: ../src/guestfs-actions.pod:151 ../fish/guestfish-actions.pod:126
3694 msgid ""
3695 "On success this returns a pair containing the number of nodes in the "
3696 "nodeset, and a boolean flag if a node was created."
3697 msgstr ""
3698
3699 # type: textblock
3700 #: ../src/guestfs-actions.pod:155
3701 msgid ""
3702 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
3703 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
3704 msgstr ""
3705
3706 # type: =head2
3707 #: ../src/guestfs-actions.pod:159
3708 msgid "guestfs_aug_defvar"
3709 msgstr ""
3710
3711 # type: verbatim
3712 #: ../src/guestfs-actions.pod:161
3713 #, no-wrap
3714 msgid ""
3715 " int guestfs_aug_defvar (guestfs_h *g,\n"
3716 "\t\tconst char *name,\n"
3717 "\t\tconst char *expr);\n"
3718 "\n"
3719 msgstr ""
3720
3721 # type: textblock
3722 #: ../src/guestfs-actions.pod:165 ../fish/guestfish-actions.pod:134
3723 msgid ""
3724 "Defines an Augeas variable C<name> whose value is the result of evaluating "
3725 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
3726 msgstr ""
3727
3728 # type: textblock
3729 #: ../src/guestfs-actions.pod:169 ../fish/guestfish-actions.pod:138
3730 msgid ""
3731 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
3732 "evaluates to something which is not a nodeset."
3733 msgstr ""
3734
3735 # type: textblock
3736 #: ../src/guestfs-actions.pod:172 ../src/guestfs-actions.pod:313 ../src/guestfs-actions.pod:467 ../src/guestfs-actions.pod:492 ../src/guestfs-actions.pod:507 ../src/guestfs-actions.pod:523 ../src/guestfs-actions.pod:1013 ../src/guestfs-actions.pod:1328 ../src/guestfs-actions.pod:1510 ../src/guestfs-actions.pod:1591 ../src/guestfs-actions.pod:1622 ../src/guestfs-actions.pod:1665 ../src/guestfs-actions.pod:1682 ../src/guestfs-actions.pod:1907 ../src/guestfs-actions.pod:2119 ../src/guestfs-actions.pod:2137 ../src/guestfs-actions.pod:3475 ../src/guestfs-actions.pod:3582 ../src/guestfs-actions.pod:3913 ../src/guestfs-actions.pod:5012 ../src/guestfs-actions.pod:5336 ../src/guestfs-actions.pod:5346 ../src/guestfs-actions.pod:5356
3737 msgid "On error this function returns -1."
3738 msgstr ""
3739
3740 # type: =head2
3741 #: ../src/guestfs-actions.pod:174
3742 msgid "guestfs_aug_get"
3743 msgstr ""
3744
3745 # type: verbatim
3746 #: ../src/guestfs-actions.pod:176
3747 #, no-wrap
3748 msgid ""
3749 " char *guestfs_aug_get (guestfs_h *g,\n"
3750 "\t\tconst char *augpath);\n"
3751 "\n"
3752 msgstr ""
3753
3754 # type: textblock
3755 #: ../src/guestfs-actions.pod:179 ../fish/guestfish-actions.pod:145
3756 msgid ""
3757 "Look up the value associated with C<path>.  If C<path> matches exactly one "
3758 "node, the C<value> is returned."
3759 msgstr ""
3760
3761 # type: textblock
3762 #: ../src/guestfs-actions.pod:182 ../src/guestfs-actions.pod:610 ../src/guestfs-actions.pod:625 ../src/guestfs-actions.pod:682 ../src/guestfs-actions.pod:695 ../src/guestfs-actions.pod:786 ../src/guestfs-actions.pod:899 ../src/guestfs-actions.pod:928 ../src/guestfs-actions.pod:942 ../src/guestfs-actions.pod:958 ../src/guestfs-actions.pod:1041 ../src/guestfs-actions.pod:1205 ../src/guestfs-actions.pod:1314 ../src/guestfs-actions.pod:1459 ../src/guestfs-actions.pod:1473 ../src/guestfs-actions.pod:1549 ../src/guestfs-actions.pod:1567 ../src/guestfs-actions.pod:1701 ../src/guestfs-actions.pod:1840 ../src/guestfs-actions.pod:2021 ../src/guestfs-actions.pod:2071 ../src/guestfs-actions.pod:2187 ../src/guestfs-actions.pod:2222 ../src/guestfs-actions.pod:2537 ../src/guestfs-actions.pod:2958 ../src/guestfs-actions.pod:3054 ../src/guestfs-actions.pod:3597 ../src/guestfs-actions.pod:3773 ../src/guestfs-actions.pod:3891 ../src/guestfs-actions.pod:4029 ../src/guestfs-actions.pod:4072 ../src/guestfs-actions.pod:4548 ../src/guestfs-actions.pod:4561 ../src/guestfs-actions.pod:4575 ../src/guestfs-actions.pod:4596 ../src/guestfs-actions.pod:5129 ../src/guestfs-actions.pod:5145 ../src/guestfs-actions.pod:5160 ../src/guestfs-actions.pod:5308 ../src/guestfs-actions.pod:5538
3763 msgid ""
3764 "This function returns a string, or NULL on error.  I<The caller must free "
3765 "the returned string after use>."
3766 msgstr ""
3767
3768 # type: =head2
3769 #: ../src/guestfs-actions.pod:185
3770 msgid "guestfs_aug_init"
3771 msgstr ""
3772
3773 # type: verbatim
3774 #: ../src/guestfs-actions.pod:187
3775 #, no-wrap
3776 msgid ""
3777 " int guestfs_aug_init (guestfs_h *g,\n"
3778 "\t\tconst char *root,\n"
3779 "\t\tint flags);\n"
3780 "\n"
3781 msgstr ""
3782
3783 # type: textblock
3784 #: ../src/guestfs-actions.pod:191 ../fish/guestfish-actions.pod:152
3785 msgid ""
3786 "Create a new Augeas handle for editing configuration files.  If there was "
3787 "any previous Augeas handle associated with this guestfs session, then it is "
3788 "closed."
3789 msgstr ""
3790
3791 # type: textblock
3792 #: ../src/guestfs-actions.pod:195
3793 msgid "You must call this before using any other C<guestfs_aug_*> commands."
3794 msgstr ""
3795
3796 # type: textblock
3797 #: ../src/guestfs-actions.pod:198 ../fish/guestfish-actions.pod:159
3798 msgid "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
3799 msgstr ""
3800
3801 # type: textblock
3802 #: ../src/guestfs-actions.pod:201 ../fish/guestfish-actions.pod:162
3803 msgid ""
3804 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
3805 "logical I<or> of the following integers:"
3806 msgstr ""
3807
3808 # type: =item
3809 #: ../src/guestfs-actions.pod:207 ../fish/guestfish-actions.pod:168
3810 msgid "C<AUG_SAVE_BACKUP> = 1"
3811 msgstr ""
3812
3813 # type: textblock
3814 #: ../src/guestfs-actions.pod:209 ../fish/guestfish-actions.pod:170
3815 msgid "Keep the original file with a C<.augsave> extension."
3816 msgstr ""
3817
3818 # type: =item
3819 #: ../src/guestfs-actions.pod:211 ../fish/guestfish-actions.pod:172
3820 msgid "C<AUG_SAVE_NEWFILE> = 2"
3821 msgstr ""
3822
3823 # type: textblock
3824 #: ../src/guestfs-actions.pod:213 ../fish/guestfish-actions.pod:174
3825 msgid ""
3826 "Save changes into a file with extension C<.augnew>, and do not overwrite "
3827 "original.  Overrides C<AUG_SAVE_BACKUP>."
3828 msgstr ""
3829
3830 # type: =item
3831 #: ../src/guestfs-actions.pod:216 ../fish/guestfish-actions.pod:177
3832 msgid "C<AUG_TYPE_CHECK> = 4"
3833 msgstr ""
3834
3835 # type: textblock
3836 #: ../src/guestfs-actions.pod:218 ../fish/guestfish-actions.pod:179
3837 msgid "Typecheck lenses (can be expensive)."
3838 msgstr ""
3839
3840 # type: =item
3841 #: ../src/guestfs-actions.pod:220 ../fish/guestfish-actions.pod:181
3842 msgid "C<AUG_NO_STDINC> = 8"
3843 msgstr ""
3844
3845 # type: textblock
3846 #: ../src/guestfs-actions.pod:222 ../fish/guestfish-actions.pod:183
3847 msgid "Do not use standard load path for modules."
3848 msgstr ""
3849
3850 # type: =item
3851 #: ../src/guestfs-actions.pod:224 ../fish/guestfish-actions.pod:185
3852 msgid "C<AUG_SAVE_NOOP> = 16"
3853 msgstr ""
3854
3855 # type: textblock
3856 #: ../src/guestfs-actions.pod:226 ../fish/guestfish-actions.pod:187
3857 msgid "Make save a no-op, just record what would have been changed."
3858 msgstr ""
3859
3860 # type: =item
3861 #: ../src/guestfs-actions.pod:228 ../fish/guestfish-actions.pod:189
3862 msgid "C<AUG_NO_LOAD> = 32"
3863 msgstr ""
3864
3865 # type: textblock
3866 #: ../src/guestfs-actions.pod:230
3867 msgid "Do not load the tree in C<guestfs_aug_init>."
3868 msgstr ""
3869
3870 # type: textblock
3871 #: ../src/guestfs-actions.pod:234
3872 msgid "To close the handle, you can call C<guestfs_aug_close>."
3873 msgstr ""
3874
3875 # type: textblock
3876 #: ../src/guestfs-actions.pod:236 ../fish/guestfish-actions.pod:197
3877 msgid "To find out more about Augeas, see L<http://augeas.net/>."
3878 msgstr ""
3879
3880 # type: =head2
3881 #: ../src/guestfs-actions.pod:240
3882 msgid "guestfs_aug_insert"
3883 msgstr ""
3884
3885 # type: verbatim
3886 #: ../src/guestfs-actions.pod:242
3887 #, no-wrap
3888 msgid ""
3889 " int guestfs_aug_insert (guestfs_h *g,\n"
3890 "\t\tconst char *augpath,\n"
3891 "\t\tconst char *label,\n"
3892 "\t\tint before);\n"
3893 "\n"
3894 msgstr ""
3895
3896 # type: textblock
3897 #: ../src/guestfs-actions.pod:247 ../fish/guestfish-actions.pod:203
3898 msgid ""
3899 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
3900 "or after C<path> (depending on the boolean flag C<before>)."
3901 msgstr ""
3902
3903 # type: textblock
3904 #: ../src/guestfs-actions.pod:251 ../fish/guestfish-actions.pod:207
3905 msgid ""
3906 "C<path> must match exactly one existing node in the tree, and C<label> must "
3907 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
3908 msgstr ""
3909
3910 # type: =head2
3911 #: ../src/guestfs-actions.pod:257
3912 msgid "guestfs_aug_load"
3913 msgstr ""
3914
3915 # type: verbatim
3916 #: ../src/guestfs-actions.pod:259
3917 #, no-wrap
3918 msgid ""
3919 " int guestfs_aug_load (guestfs_h *g);\n"
3920 "\n"
3921 msgstr ""
3922
3923 # type: textblock
3924 #: ../src/guestfs-actions.pod:261 ../fish/guestfish-actions.pod:215
3925 msgid "Load files into the tree."
3926 msgstr ""
3927
3928 # type: textblock
3929 #: ../src/guestfs-actions.pod:263 ../fish/guestfish-actions.pod:217
3930 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
3931 msgstr ""
3932
3933 # type: =head2
3934 #: ../src/guestfs-actions.pod:268
3935 msgid "guestfs_aug_ls"
3936 msgstr ""
3937
3938 # type: verbatim
3939 #: ../src/guestfs-actions.pod:270
3940 #, no-wrap
3941 msgid ""
3942 " char **guestfs_aug_ls (guestfs_h *g,\n"
3943 "\t\tconst char *augpath);\n"
3944 "\n"
3945 msgstr ""
3946
3947 # type: textblock
3948 #: ../src/guestfs-actions.pod:273
3949 msgid ""
3950 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
3951 "sorting the resulting nodes into alphabetical order."
3952 msgstr ""
3953
3954 # type: textblock
3955 #: ../src/guestfs-actions.pod:276 ../src/guestfs-actions.pod:289 ../src/guestfs-actions.pod:417 ../src/guestfs-actions.pod:802 ../src/guestfs-actions.pod:1053 ../src/guestfs-actions.pod:1069 ../src/guestfs-actions.pod:1157 ../src/guestfs-actions.pod:1173 ../src/guestfs-actions.pod:1404 ../src/guestfs-actions.pod:1738 ../src/guestfs-actions.pod:1751 ../src/guestfs-actions.pod:1767 ../src/guestfs-actions.pod:1804 ../src/guestfs-actions.pod:1825 ../src/guestfs-actions.pod:1887 ../src/guestfs-actions.pod:1927 ../src/guestfs-actions.pod:2093 ../src/guestfs-actions.pod:2261 ../src/guestfs-actions.pod:2466 ../src/guestfs-actions.pod:2522 ../src/guestfs-actions.pod:2606 ../src/guestfs-actions.pod:2935 ../src/guestfs-actions.pod:3442 ../src/guestfs-actions.pod:3868 ../src/guestfs-actions.pod:3954 ../src/guestfs-actions.pod:4060 ../src/guestfs-actions.pod:4609 ../src/guestfs-actions.pod:4658 ../src/guestfs-actions.pod:4710 ../src/guestfs-actions.pod:4826 ../src/guestfs-actions.pod:4847 ../src/guestfs-actions.pod:5221 ../src/guestfs-actions.pod:5238 ../src/guestfs-actions.pod:5276 ../src/guestfs-actions.pod:5412 ../src/guestfs-actions.pod:5428 ../src/guestfs-actions.pod:5501 ../src/guestfs-actions.pod:5517 ../src/guestfs-actions.pod:5557 ../src/guestfs-actions.pod:5573
3956 msgid ""
3957 "This function returns a NULL-terminated array of strings (like "
3958 "L<environ(3)>), or NULL if there was an error.  I<The caller must free the "
3959 "strings and the array after use>."
3960 msgstr ""
3961
3962 # type: =head2
3963 #: ../src/guestfs-actions.pod:280
3964 msgid "guestfs_aug_match"
3965 msgstr ""
3966
3967 # type: verbatim
3968 #: ../src/guestfs-actions.pod:282
3969 #, no-wrap
3970 msgid ""
3971 " char **guestfs_aug_match (guestfs_h *g,\n"
3972 "\t\tconst char *augpath);\n"
3973 "\n"
3974 msgstr ""
3975
3976 # type: textblock
3977 #: ../src/guestfs-actions.pod:285 ../fish/guestfish-actions.pod:231
3978 msgid ""
3979 "Returns a list of paths which match the path expression C<path>.  The "
3980 "returned paths are sufficiently qualified so that they match exactly one "
3981 "node in the current tree."
3982 msgstr ""
3983
3984 # type: =head2
3985 #: ../src/guestfs-actions.pod:293
3986 msgid "guestfs_aug_mv"
3987 msgstr ""
3988
3989 # type: verbatim
3990 #: ../src/guestfs-actions.pod:295
3991 #, no-wrap
3992 msgid ""
3993 " int guestfs_aug_mv (guestfs_h *g,\n"
3994 "\t\tconst char *src,\n"
3995 "\t\tconst char *dest);\n"
3996 "\n"
3997 msgstr ""
3998
3999 # type: textblock
4000 #: ../src/guestfs-actions.pod:299 ../fish/guestfish-actions.pod:239
4001 msgid ""
4002 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
4003 "C<dest> is overwritten if it exists."
4004 msgstr ""
4005
4006 # type: =head2
4007 #: ../src/guestfs-actions.pod:304
4008 msgid "guestfs_aug_rm"
4009 msgstr ""
4010
4011 # type: verbatim
4012 #: ../src/guestfs-actions.pod:306
4013 #, no-wrap
4014 msgid ""
4015 " int guestfs_aug_rm (guestfs_h *g,\n"
4016 "\t\tconst char *augpath);\n"
4017 "\n"
4018 msgstr ""
4019
4020 # type: textblock
4021 #: ../src/guestfs-actions.pod:309 ../fish/guestfish-actions.pod:246
4022 msgid "Remove C<path> and all of its children."
4023 msgstr ""
4024
4025 # type: textblock
4026 #: ../src/guestfs-actions.pod:311 ../fish/guestfish-actions.pod:248
4027 msgid "On success this returns the number of entries which were removed."
4028 msgstr ""
4029
4030 # type: =head2
4031 #: ../src/guestfs-actions.pod:315
4032 msgid "guestfs_aug_save"
4033 msgstr ""
4034
4035 # type: verbatim
4036 #: ../src/guestfs-actions.pod:317
4037 #, no-wrap
4038 msgid ""
4039 " int guestfs_aug_save (guestfs_h *g);\n"
4040 "\n"
4041 msgstr ""
4042
4043 # type: textblock
4044 #: ../src/guestfs-actions.pod:319 ../fish/guestfish-actions.pod:254
4045 msgid "This writes all pending changes to disk."
4046 msgstr ""
4047
4048 # type: textblock
4049 #: ../src/guestfs-actions.pod:321
4050 msgid ""
4051 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
4052 "are saved."
4053 msgstr ""
4054
4055 # type: =head2
4056 #: ../src/guestfs-actions.pod:326
4057 msgid "guestfs_aug_set"
4058 msgstr ""
4059
4060 # type: verbatim
4061 #: ../src/guestfs-actions.pod:328
4062 #, no-wrap
4063 msgid ""
4064 " int guestfs_aug_set (guestfs_h *g,\n"
4065 "\t\tconst char *augpath,\n"
4066 "\t\tconst char *val);\n"
4067 "\n"
4068 msgstr ""
4069
4070 # type: textblock
4071 #: ../src/guestfs-actions.pod:332 ../fish/guestfish-actions.pod:263
4072 msgid "Set the value associated with C<path> to C<val>."
4073 msgstr ""
4074
4075 # type: textblock
4076 #: ../src/guestfs-actions.pod:334
4077 msgid ""
4078 "In the Augeas API, it is possible to clear a node by setting the value to "
4079 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
4080 "this call.  Instead you must use the C<guestfs_aug_clear> call."
4081 msgstr ""
4082
4083 # type: =head2
4084 #: ../src/guestfs-actions.pod:341
4085 msgid "guestfs_available"
4086 msgstr ""
4087
4088 # type: verbatim
4089 #: ../src/guestfs-actions.pod:343
4090 #, no-wrap
4091 msgid ""
4092 " int guestfs_available (guestfs_h *g,\n"
4093 "\t\tchar *const *groups);\n"
4094 "\n"
4095 msgstr ""
4096
4097 # type: textblock
4098 #: ../src/guestfs-actions.pod:346 ../fish/guestfish-actions.pod:274
4099 msgid ""
4100 "This command is used to check the availability of some groups of "
4101 "functionality in the appliance, which not all builds of the libguestfs "
4102 "appliance will be able to provide."
4103 msgstr ""
4104
4105 # type: textblock
4106 #: ../src/guestfs-actions.pod:350
4107 msgid ""
4108 "The libguestfs groups, and the functions that those groups correspond to, "
4109 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
4110 "runtime by calling C<guestfs_available_all_groups>."
4111 msgstr ""
4112
4113 # type: textblock
4114 #: ../src/guestfs-actions.pod:355 ../fish/guestfish-actions.pod:283
4115 msgid ""
4116 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", "
4117 "\"augeas\"]> would check for the availability of the Linux inotify functions "
4118 "and Augeas (configuration file editing) functions."
4119 msgstr ""
4120
4121 # type: textblock
4122 #: ../src/guestfs-actions.pod:360 ../fish/guestfish-actions.pod:288
4123 msgid "The command returns no error if I<all> requested groups are available."
4124 msgstr ""
4125
4126 # type: textblock
4127 #: ../src/guestfs-actions.pod:362 ../fish/guestfish-actions.pod:290
4128 msgid ""
4129 "It fails with an error if one or more of the requested groups is unavailable "
4130 "in the appliance."
4131 msgstr ""
4132
4133 # type: textblock
4134 #: ../src/guestfs-actions.pod:365 ../fish/guestfish-actions.pod:293
4135 msgid ""
4136 "If an unknown group name is included in the list of groups then an error is "
4137 "always returned."
4138 msgstr ""
4139
4140 # type: textblock
4141 #: ../src/guestfs-actions.pod:368 ../fish/guestfish-actions.pod:296
4142 msgid "I<Notes:>"
4143 msgstr ""
4144
4145 # type: textblock
4146 #: ../src/guestfs-actions.pod:374
4147 msgid "You must call C<guestfs_launch> before calling this function."
4148 msgstr ""
4149
4150 # type: textblock
4151 #: ../src/guestfs-actions.pod:376 ../fish/guestfish-actions.pod:304
4152 msgid ""
4153 "The reason is because we don't know what groups are supported by the "
4154 "appliance/daemon until it is running and can be queried."
4155 msgstr ""
4156
4157 # type: textblock
4158 #: ../src/guestfs-actions.pod:382 ../fish/guestfish-actions.pod:310
4159 msgid ""
4160 "If a group of functions is available, this does not necessarily mean that "
4161 "they will work.  You still have to check for errors when calling individual "
4162 "API functions even if they are available."
4163 msgstr ""
4164
4165 # type: textblock
4166 #: ../src/guestfs-actions.pod:389 ../fish/guestfish-actions.pod:317
4167 msgid ""
4168 "It is usually the job of distro packagers to build complete functionality "
4169 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
4170 "with all requirements satisfied, will support everything."
4171 msgstr ""
4172
4173 # type: textblock
4174 #: ../src/guestfs-actions.pod:396
4175 msgid ""
4176 "This call was added in version C<1.0.80>.  In previous versions of "
4177 "libguestfs all you could do would be to speculatively execute a command to "
4178 "find out if the daemon implemented it.  See also C<guestfs_version>."
4179 msgstr ""
4180
4181 # type: =head2
4182 #: ../src/guestfs-actions.pod:405
4183 msgid "guestfs_available_all_groups"
4184 msgstr ""
4185
4186 # type: verbatim
4187 #: ../src/guestfs-actions.pod:407
4188 #, no-wrap
4189 msgid ""
4190 " char **guestfs_available_all_groups (guestfs_h *g);\n"
4191 "\n"
4192 msgstr ""
4193
4194 # type: textblock
4195 #: ../src/guestfs-actions.pod:409
4196 msgid ""
4197 "This command returns a list of all optional groups that this daemon knows "
4198 "about.  Note this returns both supported and unsupported groups.  To find "
4199 "out which ones the daemon can actually support you have to call "
4200 "C<guestfs_available> on each member of the returned list."
4201 msgstr ""
4202
4203 # type: textblock
4204 #: ../src/guestfs-actions.pod:415
4205 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
4206 msgstr ""
4207
4208 # type: =head2
4209 #: ../src/guestfs-actions.pod:421
4210 msgid "guestfs_base64_in"
4211 msgstr ""
4212
4213 # type: verbatim
4214 #: ../src/guestfs-actions.pod:423
4215 #, no-wrap
4216 msgid ""
4217 " int guestfs_base64_in (guestfs_h *g,\n"
4218 "\t\tconst char *base64file,\n"
4219 "\t\tconst char *filename);\n"
4220 "\n"
4221 msgstr ""
4222
4223 # type: textblock
4224 #: ../src/guestfs-actions.pod:427 ../fish/guestfish-actions.pod:347
4225 msgid "This command uploads base64-encoded data from C<base64file> to C<filename>."
4226 msgstr ""
4227
4228 # type: =head2
4229 #: ../src/guestfs-actions.pod:432
4230 msgid "guestfs_base64_out"
4231 msgstr ""
4232
4233 # type: verbatim
4234 #: ../src/guestfs-actions.pod:434
4235 #, no-wrap
4236 msgid ""
4237 " int guestfs_base64_out (guestfs_h *g,\n"
4238 "\t\tconst char *filename,\n"
4239 "\t\tconst char *base64file);\n"
4240 "\n"
4241 msgstr ""
4242
4243 # type: textblock
4244 #: ../src/guestfs-actions.pod:438 ../fish/guestfish-actions.pod:356
4245 msgid ""
4246 "This command downloads the contents of C<filename>, writing it out to local "
4247 "file C<base64file> encoded as base64."
4248 msgstr ""
4249
4250 # type: =head2
4251 #: ../src/guestfs-actions.pod:443
4252 msgid "guestfs_blockdev_flushbufs"
4253 msgstr ""
4254
4255 # type: verbatim
4256 #: ../src/guestfs-actions.pod:445
4257 #, no-wrap
4258 msgid ""
4259 " int guestfs_blockdev_flushbufs (guestfs_h *g,\n"
4260 "\t\tconst char *device);\n"
4261 "\n"
4262 msgstr ""
4263
4264 # type: textblock
4265 #: ../src/guestfs-actions.pod:448 ../fish/guestfish-actions.pod:365
4266 msgid "This tells the kernel to flush internal buffers associated with C<device>."
4267 msgstr ""
4268
4269 # type: textblock
4270 #: ../src/guestfs-actions.pod:451 ../src/guestfs-actions.pod:465 ../src/guestfs-actions.pod:477 ../src/guestfs-actions.pod:490 ../src/guestfs-actions.pod:505 ../src/guestfs-actions.pod:521 ../src/guestfs-actions.pod:532 ../src/guestfs-actions.pod:547 ../src/guestfs-actions.pod:558 ../src/guestfs-actions.pod:569 ../fish/guestfish-actions.pod:368 ../fish/guestfish-actions.pod:379 ../fish/guestfish-actions.pod:388 ../fish/guestfish-actions.pod:398 ../fish/guestfish-actions.pod:410 ../fish/guestfish-actions.pod:423 ../fish/guestfish-actions.pod:431 ../fish/guestfish-actions.pod:442 ../fish/guestfish-actions.pod:450 ../fish/guestfish-actions.pod:458
4271 msgid "This uses the L<blockdev(8)> command."
4272 msgstr ""
4273
4274 # type: =head2
4275 #: ../src/guestfs-actions.pod:455
4276 msgid "guestfs_blockdev_getbsz"
4277 msgstr ""
4278
4279 # type: verbatim
4280 #: ../src/guestfs-actions.pod:457
4281 #, no-wrap
4282 msgid ""
4283 " int guestfs_blockdev_getbsz (guestfs_h *g,\n"
4284 "\t\tconst char *device);\n"
4285 "\n"
4286 msgstr ""
4287
4288 # type: textblock
4289 #: ../src/guestfs-actions.pod:460 ../fish/guestfish-actions.pod:374
4290 msgid "This returns the block size of a device."
4291 msgstr ""
4292
4293 # type: textblock
4294 #: ../src/guestfs-actions.pod:462 ../src/guestfs-actions.pod:544 ../fish/guestfish-actions.pod:376 ../fish/guestfish-actions.pod:439
4295 msgid ""
4296 "(Note this is different from both I<size in blocks> and I<filesystem block "
4297 "size>)."
4298 msgstr ""
4299
4300 # type: =head2
4301 #: ../src/guestfs-actions.pod:469
4302 msgid "guestfs_blockdev_getro"
4303 msgstr ""
4304
4305 # type: verbatim
4306 #: ../src/guestfs-actions.pod:471
4307 #, no-wrap
4308 msgid ""
4309 " int guestfs_blockdev_getro (guestfs_h *g,\n"
4310 "\t\tconst char *device);\n"
4311 "\n"
4312 msgstr ""
4313
4314 # type: textblock
4315 #: ../src/guestfs-actions.pod:474 ../fish/guestfish-actions.pod:385
4316 msgid ""
4317 "Returns a boolean indicating if the block device is read-only (true if "
4318 "read-only, false if not)."
4319 msgstr ""
4320
4321 # type: textblock
4322 #: ../src/guestfs-actions.pod:479 ../src/guestfs-actions.pod:1087 ../src/guestfs-actions.pod:1099 ../src/guestfs-actions.pod:1531 ../src/guestfs-actions.pod:1539 ../src/guestfs-actions.pod:1599 ../src/guestfs-actions.pod:1642 ../src/guestfs-actions.pod:1654 ../src/guestfs-actions.pod:1673 ../src/guestfs-actions.pod:1690 ../src/guestfs-actions.pod:2275 ../src/guestfs-actions.pod:2286 ../src/guestfs-actions.pod:2298 ../src/guestfs-actions.pod:2309 ../src/guestfs-actions.pod:2322 ../src/guestfs-actions.pod:2334 ../src/guestfs-actions.pod:2347 ../src/guestfs-actions.pod:2358 ../src/guestfs-actions.pod:2368 ../src/guestfs-actions.pod:2379 ../src/guestfs-actions.pod:2391 ../src/guestfs-actions.pod:2403 ../src/guestfs-actions.pod:3567
4323 msgid "This function returns a C truth value on success or -1 on error."
4324 msgstr ""
4325
4326 # type: =head2
4327 #: ../src/guestfs-actions.pod:481
4328 msgid "guestfs_blockdev_getsize64"
4329 msgstr ""
4330
4331 # type: verbatim
4332 #: ../src/guestfs-actions.pod:483
4333 #, no-wrap
4334 msgid ""
4335 " int64_t guestfs_blockdev_getsize64 (guestfs_h *g,\n"
4336 "\t\tconst char *device);\n"
4337 "\n"
4338 msgstr ""
4339
4340 # type: textblock
4341 #: ../src/guestfs-actions.pod:486 ../fish/guestfish-actions.pod:394
4342 msgid "This returns the size of the device in bytes."
4343 msgstr ""
4344
4345 # type: textblock
4346 #: ../src/guestfs-actions.pod:488
4347 msgid "See also C<guestfs_blockdev_getsz>."
4348 msgstr ""
4349
4350 # type: =head2
4351 #: ../src/guestfs-actions.pod:494
4352 msgid "guestfs_blockdev_getss"
4353 msgstr ""
4354
4355 # type: verbatim
4356 #: ../src/guestfs-actions.pod:496
4357 #, no-wrap
4358 msgid ""
4359 " int guestfs_blockdev_getss (guestfs_h *g,\n"
4360 "\t\tconst char *device);\n"
4361 "\n"
4362 msgstr ""
4363
4364 # type: textblock
4365 #: ../src/guestfs-actions.pod:499 ../fish/guestfish-actions.pod:404
4366 msgid ""
4367 "This returns the size of sectors on a block device.  Usually 512, but can be "
4368 "larger for modern devices."
4369 msgstr ""
4370
4371 # type: textblock
4372 #: ../src/guestfs-actions.pod:502
4373 msgid ""
4374 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
4375 "that)."
4376 msgstr ""
4377
4378 # type: =head2
4379 #: ../src/guestfs-actions.pod:509
4380 msgid "guestfs_blockdev_getsz"
4381 msgstr ""
4382
4383 # type: verbatim
4384 #: ../src/guestfs-actions.pod:511
4385 #, no-wrap
4386 msgid ""
4387 " int64_t guestfs_blockdev_getsz (guestfs_h *g,\n"
4388 "\t\tconst char *device);\n"
4389 "\n"
4390 msgstr ""
4391
4392 # type: textblock
4393 #: ../src/guestfs-actions.pod:514 ../fish/guestfish-actions.pod:416
4394 msgid ""
4395 "This returns the size of the device in units of 512-byte sectors (even if "
4396 "the sectorsize isn't 512 bytes ... weird)."
4397 msgstr ""
4398
4399 # type: textblock
4400 #: ../src/guestfs-actions.pod:517
4401 msgid ""
4402 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
4403 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
4404 msgstr ""
4405
4406 # type: =head2
4407 #: ../src/guestfs-actions.pod:525
4408 msgid "guestfs_blockdev_rereadpt"
4409 msgstr ""
4410
4411 # type: verbatim
4412 #: ../src/guestfs-actions.pod:527
4413 #, no-wrap
4414 msgid ""
4415 " int guestfs_blockdev_rereadpt (guestfs_h *g,\n"
4416 "\t\tconst char *device);\n"
4417 "\n"
4418 msgstr ""
4419
4420 # type: textblock
4421 #: ../src/guestfs-actions.pod:530 ../fish/guestfish-actions.pod:429
4422 msgid "Reread the partition table on C<device>."
4423 msgstr ""
4424
4425 # type: =head2
4426 #: ../src/guestfs-actions.pod:536
4427 msgid "guestfs_blockdev_setbsz"
4428 msgstr ""
4429
4430 # type: verbatim
4431 #: ../src/guestfs-actions.pod:538
4432 #, no-wrap
4433 msgid ""
4434 " int guestfs_blockdev_setbsz (guestfs_h *g,\n"
4435 "\t\tconst char *device,\n"
4436 "\t\tint blocksize);\n"
4437 "\n"
4438 msgstr ""
4439
4440 # type: textblock
4441 #: ../src/guestfs-actions.pod:542 ../fish/guestfish-actions.pod:437
4442 msgid "This sets the block size of a device."
4443 msgstr ""
4444
4445 # type: =head2
4446 #: ../src/guestfs-actions.pod:551
4447 msgid "guestfs_blockdev_setro"
4448 msgstr ""
4449
4450 # type: verbatim
4451 #: ../src/guestfs-actions.pod:553
4452 #, no-wrap
4453 msgid ""
4454 " int guestfs_blockdev_setro (guestfs_h *g,\n"
4455 "\t\tconst char *device);\n"
4456 "\n"
4457 msgstr ""
4458
4459 # type: textblock
4460 #: ../src/guestfs-actions.pod:556 ../fish/guestfish-actions.pod:448
4461 msgid "Sets the block device named C<device> to read-only."
4462 msgstr ""
4463
4464 # type: =head2
4465 #: ../src/guestfs-actions.pod:562
4466 msgid "guestfs_blockdev_setrw"
4467 msgstr ""
4468
4469 # type: verbatim
4470 #: ../src/guestfs-actions.pod:564
4471 #, no-wrap
4472 msgid ""
4473 " int guestfs_blockdev_setrw (guestfs_h *g,\n"
4474 "\t\tconst char *device);\n"
4475 "\n"
4476 msgstr ""
4477
4478 # type: textblock
4479 #: ../src/guestfs-actions.pod:567 ../fish/guestfish-actions.pod:456
4480 msgid "Sets the block device named C<device> to read-write."
4481 msgstr ""
4482
4483 # type: =head2
4484 #: ../src/guestfs-actions.pod:573
4485 msgid "guestfs_case_sensitive_path"
4486 msgstr ""
4487
4488 # type: verbatim
4489 #: ../src/guestfs-actions.pod:575
4490 #, no-wrap
4491 msgid ""
4492 " char *guestfs_case_sensitive_path (guestfs_h *g,\n"
4493 "\t\tconst char *path);\n"
4494 "\n"
4495 msgstr ""
4496
4497 # type: textblock
4498 #: ../src/guestfs-actions.pod:578 ../fish/guestfish-actions.pod:464
4499 msgid ""
4500 "This can be used to resolve case insensitive paths on a filesystem which is "
4501 "case sensitive.  The use case is to resolve paths which you have read from "
4502 "Windows configuration files or the Windows Registry, to the true path."
4503 msgstr ""
4504
4505 # type: textblock
4506 #: ../src/guestfs-actions.pod:583 ../fish/guestfish-actions.pod:469
4507 msgid ""
4508 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
4509 "(and probably others), which is that although the underlying filesystem is "
4510 "case-insensitive, the driver exports the filesystem to Linux as "
4511 "case-sensitive."
4512 msgstr ""
4513
4514 # type: textblock
4515 #: ../src/guestfs-actions.pod:588 ../fish/guestfish-actions.pod:474
4516 msgid ""
4517 "One consequence of this is that special directories such as C<c:\\windows> "
4518 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
4519 "precise details of how they were created.  In Windows itself this would not "
4520 "be a problem."
4521 msgstr ""
4522
4523 # type: textblock
4524 #: ../src/guestfs-actions.pod:594 ../fish/guestfish-actions.pod:480
4525 msgid ""
4526 "Bug or feature? You decide: "
4527 "L<http://www.tuxera.com/community/ntfs-3g-faq/#posixfilenames1>"
4528 msgstr ""
4529
4530 # type: textblock
4531 #: ../src/guestfs-actions.pod:597 ../fish/guestfish-actions.pod:483
4532 msgid ""
4533 "This function resolves the true case of each element in the path and returns "
4534 "the case-sensitive path."
4535 msgstr ""
4536
4537 # type: textblock
4538 #: ../src/guestfs-actions.pod:600
4539 msgid ""
4540 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return "
4541 "C<\"/WINDOWS/system32\"> (the exact return value would depend on details of "
4542 "how the directories were originally created under Windows)."
4543 msgstr ""
4544
4545 # type: textblock
4546 #: ../src/guestfs-actions.pod:605 ../fish/guestfish-actions.pod:491
4547 msgid "I<Note>: This function does not handle drive names, backslashes etc."
4548 msgstr ""
4549
4550 # type: textblock
4551 #: ../src/guestfs-actions.pod:608
4552 msgid "See also C<guestfs_realpath>."
4553 msgstr ""
4554
4555 # type: =head2
4556 #: ../src/guestfs-actions.pod:613
4557 msgid "guestfs_cat"
4558 msgstr ""
4559
4560 # type: verbatim
4561 #: ../src/guestfs-actions.pod:615
4562 #, no-wrap
4563 msgid ""
4564 " char *guestfs_cat (guestfs_h *g,\n"
4565 "\t\tconst char *path);\n"
4566 "\n"
4567 msgstr ""
4568
4569 # type: textblock
4570 #: ../src/guestfs-actions.pod:618 ../src/guestfs-actions.pod:3944 ../fish/guestfish-actions.pod:500 ../fish/guestfish-actions.pod:3039
4571 msgid "Return the contents of the file named C<path>."
4572 msgstr ""
4573
4574 # type: textblock
4575 #: ../src/guestfs-actions.pod:620
4576 msgid ""
4577 "Note that this function cannot correctly handle binary files (specifically, "
4578 "files containing C<\\0> character which is treated as end of string).  For "
4579 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
4580 "functions which have a more complex interface."
4581 msgstr ""
4582
4583 # type: textblock
4584 #: ../src/guestfs-actions.pod:628 ../src/guestfs-actions.pod:789 ../src/guestfs-actions.pod:806 ../src/guestfs-actions.pod:1057 ../src/guestfs-actions.pod:1073 ../src/guestfs-actions.pod:1161 ../src/guestfs-actions.pod:1177 ../src/guestfs-actions.pod:1408 ../src/guestfs-actions.pod:1755 ../src/guestfs-actions.pod:1771 ../src/guestfs-actions.pod:1808 ../src/guestfs-actions.pod:1829 ../src/guestfs-actions.pod:1843 ../src/guestfs-actions.pod:1869 ../src/guestfs-actions.pod:3807 ../src/guestfs-actions.pod:3915 ../src/guestfs-actions.pod:3936 ../src/guestfs-actions.pod:4662 ../src/guestfs-actions.pod:4714 ../src/guestfs-actions.pod:4830 ../src/guestfs-actions.pod:4851 ../src/guestfs-actions.pod:5370 ../src/guestfs-actions.pod:5393 ../src/guestfs-actions.pod:5416 ../src/guestfs-actions.pod:5432 ../src/guestfs-actions.pod:5505 ../src/guestfs-actions.pod:5521 ../src/guestfs-actions.pod:5561 ../src/guestfs-actions.pod:5577 ../fish/guestfish-actions.pod:507 ../fish/guestfish-actions.pod:642 ../fish/guestfish-actions.pod:654 ../fish/guestfish-actions.pod:836 ../fish/guestfish-actions.pod:846 ../fish/guestfish-actions.pod:913 ../fish/guestfish-actions.pod:923 ../fish/guestfish-actions.pod:1118 ../fish/guestfish-actions.pod:1391 ../fish/guestfish-actions.pod:1401 ../fish/guestfish-actions.pod:1429 ../fish/guestfish-actions.pod:1444 ../fish/guestfish-actions.pod:1454 ../fish/guestfish-actions.pod:1473 ../fish/guestfish-actions.pod:2941 ../fish/guestfish-actions.pod:3017 ../fish/guestfish-actions.pod:3032 ../fish/guestfish-actions.pod:3593 ../fish/guestfish-actions.pod:3639 ../fish/guestfish-actions.pod:3724 ../fish/guestfish-actions.pod:3739 ../fish/guestfish-actions.pod:4122 ../fish/guestfish-actions.pod:4140 ../fish/guestfish-actions.pod:4157 ../fish/guestfish-actions.pod:4167 ../fish/guestfish-actions.pod:4215 ../fish/guestfish-actions.pod:4225 ../fish/guestfish-actions.pod:4254 ../fish/guestfish-actions.pod:4264
4585 msgid ""
4586 "Because of the message protocol, there is a transfer limit of somewhere "
4587 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
4588 msgstr ""
4589
4590 # type: =head2
4591 #: ../src/guestfs-actions.pod:631
4592 msgid "guestfs_checksum"
4593 msgstr ""
4594
4595 # type: verbatim
4596 #: ../src/guestfs-actions.pod:633
4597 #, no-wrap
4598 msgid ""
4599 " char *guestfs_checksum (guestfs_h *g,\n"
4600 "\t\tconst char *csumtype,\n"
4601 "\t\tconst char *path);\n"
4602 "\n"
4603 msgstr ""
4604
4605 # type: textblock
4606 #: ../src/guestfs-actions.pod:637 ../fish/guestfish-actions.pod:514
4607 msgid "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
4608 msgstr ""
4609
4610 # type: textblock
4611 #: ../src/guestfs-actions.pod:640 ../fish/guestfish-actions.pod:517
4612 msgid ""
4613 "The type of checksum to compute is given by the C<csumtype> parameter which "
4614 "must have one of the following values:"
4615 msgstr ""
4616
4617 # type: =item
4618 #: ../src/guestfs-actions.pod:645 ../fish/guestfish-actions.pod:522
4619 msgid "C<crc>"
4620 msgstr ""
4621
4622 # type: textblock
4623 #: ../src/guestfs-actions.pod:647 ../fish/guestfish-actions.pod:524
4624 msgid ""
4625 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
4626 "C<cksum> command."
4627 msgstr ""
4628
4629 # type: =item
4630 #: ../src/guestfs-actions.pod:650 ../fish/guestfish-actions.pod:527
4631 msgid "C<md5>"
4632 msgstr ""
4633
4634 # type: textblock
4635 #: ../src/guestfs-actions.pod:652 ../fish/guestfish-actions.pod:529
4636 msgid "Compute the MD5 hash (using the C<md5sum> program)."
4637 msgstr ""
4638
4639 # type: =item
4640 #: ../src/guestfs-actions.pod:654 ../fish/guestfish-actions.pod:531
4641 msgid "C<sha1>"
4642 msgstr ""
4643
4644 # type: textblock
4645 #: ../src/guestfs-actions.pod:656 ../fish/guestfish-actions.pod:533
4646 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
4647 msgstr ""
4648
4649 # type: =item
4650 #: ../src/guestfs-actions.pod:658 ../fish/guestfish-actions.pod:535
4651 msgid "C<sha224>"
4652 msgstr ""
4653
4654 # type: textblock
4655 #: ../src/guestfs-actions.pod:660 ../fish/guestfish-actions.pod:537
4656 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
4657 msgstr ""
4658
4659 # type: =item
4660 #: ../src/guestfs-actions.pod:662 ../fish/guestfish-actions.pod:539
4661 msgid "C<sha256>"
4662 msgstr ""
4663
4664 # type: textblock
4665 #: ../src/guestfs-actions.pod:664 ../fish/guestfish-actions.pod:541
4666 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
4667 msgstr ""
4668
4669 # type: =item
4670 #: ../src/guestfs-actions.pod:666 ../fish/guestfish-actions.pod:543
4671 msgid "C<sha384>"
4672 msgstr ""
4673
4674 # type: textblock
4675 #: ../src/guestfs-actions.pod:668 ../fish/guestfish-actions.pod:545
4676 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
4677 msgstr ""
4678
4679 # type: =item
4680 #: ../src/guestfs-actions.pod:670 ../fish/guestfish-actions.pod:547
4681 msgid "C<sha512>"
4682 msgstr ""
4683
4684 # type: textblock
4685 #: ../src/guestfs-actions.pod:672 ../fish/guestfish-actions.pod:549
4686 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
4687 msgstr ""
4688
4689 # type: textblock
4690 #: ../src/guestfs-actions.pod:676 ../fish/guestfish-actions.pod:553
4691 msgid "The checksum is returned as a printable string."
4692 msgstr ""
4693
4694 # type: textblock
4695 #: ../src/guestfs-actions.pod:678
4696 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
4697 msgstr ""
4698
4699 # type: textblock
4700 #: ../src/guestfs-actions.pod:680
4701 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
4702 msgstr ""
4703
4704 # type: =head2
4705 #: ../src/guestfs-actions.pod:685
4706 msgid "guestfs_checksum_device"
4707 msgstr ""
4708
4709 # type: verbatim
4710 #: ../src/guestfs-actions.pod:687
4711 #, no-wrap
4712 msgid ""
4713 " char *guestfs_checksum_device (guestfs_h *g,\n"
4714 "\t\tconst char *csumtype,\n"
4715 "\t\tconst char *device);\n"
4716 "\n"
4717 msgstr ""
4718
4719 # type: textblock
4720 #: ../src/guestfs-actions.pod:691
4721 msgid ""
4722 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
4723 "device named C<device>.  For the types of checksums supported see the "
4724 "C<guestfs_checksum> command."
4725 msgstr ""
4726
4727 # type: =head2
4728 #: ../src/guestfs-actions.pod:698
4729 msgid "guestfs_checksums_out"
4730 msgstr ""
4731
4732 # type: verbatim
4733 #: ../src/guestfs-actions.pod:700
4734 #, no-wrap
4735 msgid ""
4736 " int guestfs_checksums_out (guestfs_h *g,\n"
4737 "\t\tconst char *csumtype,\n"
4738 "\t\tconst char *directory,\n"
4739 "\t\tconst char *sumsfile);\n"
4740 "\n"
4741 msgstr ""
4742
4743 # type: textblock
4744 #: ../src/guestfs-actions.pod:705 ../fish/guestfish-actions.pod:571
4745 msgid ""
4746 "This command computes the checksums of all regular files in C<directory> and "
4747 "then emits a list of those checksums to the local output file C<sumsfile>."
4748 msgstr ""
4749
4750 # type: textblock
4751 #: ../src/guestfs-actions.pod:709 ../fish/guestfish-actions.pod:575
4752 msgid ""
4753 "This can be used for verifying the integrity of a virtual machine.  However "
4754 "to be properly secure you should pay attention to the output of the checksum "
4755 "command (it uses the ones from GNU coreutils).  In particular when the "
4756 "filename is not printable, coreutils uses a special backslash syntax.  For "
4757 "more information, see the GNU coreutils info file."
4758 msgstr ""
4759
4760 # type: =head2
4761 #: ../src/guestfs-actions.pod:719
4762 msgid "guestfs_chmod"
4763 msgstr ""
4764
4765 # type: verbatim
4766 #: ../src/guestfs-actions.pod:721
4767 #, no-wrap
4768 msgid ""
4769 " int guestfs_chmod (guestfs_h *g,\n"
4770 "\t\tint mode,\n"
4771 "\t\tconst char *path);\n"
4772 "\n"
4773 msgstr ""
4774
4775 # type: textblock
4776 #: ../src/guestfs-actions.pod:725 ../fish/guestfish-actions.pod:589
4777 msgid ""
4778 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
4779 "supported."
4780 msgstr ""
4781
4782 # type: textblock
4783 #: ../src/guestfs-actions.pod:728 ../fish/guestfish-actions.pod:592
4784 msgid ""
4785 "I<Note>: When using this command from guestfish, C<mode> by default would be "
4786 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
4787 "C<700>."
4788 msgstr ""
4789
4790 # type: textblock
4791 #: ../src/guestfs-actions.pod:732 ../src/guestfs-actions.pod:3150 ../src/guestfs-actions.pod:3238 ../src/guestfs-actions.pod:3254 ../src/guestfs-actions.pod:3270 ../fish/guestfish-actions.pod:596 ../fish/guestfish-actions.pod:2446 ../fish/guestfish-actions.pod:2516 ../fish/guestfish-actions.pod:2526 ../fish/guestfish-actions.pod:2536
4792 msgid "The mode actually set is affected by the umask."
4793 msgstr ""
4794
4795 # type: =head2
4796 #: ../src/guestfs-actions.pod:736
4797 msgid "guestfs_chown"
4798 msgstr ""
4799
4800 # type: verbatim
4801 #: ../src/guestfs-actions.pod:738
4802 #, no-wrap
4803 msgid ""
4804 " int guestfs_chown (guestfs_h *g,\n"
4805 "\t\tint owner,\n"
4806 "\t\tint group,\n"
4807 "\t\tconst char *path);\n"
4808 "\n"
4809 msgstr ""
4810
4811 # type: textblock
4812 #: ../src/guestfs-actions.pod:743 ../fish/guestfish-actions.pod:602
4813 msgid "Change the file owner to C<owner> and group to C<group>."
4814 msgstr ""
4815
4816 # type: textblock
4817 #: ../src/guestfs-actions.pod:745 ../src/guestfs-actions.pod:2436 ../fish/guestfish-actions.pod:604 ../fish/guestfish-actions.pod:1937
4818 msgid ""
4819 "Only numeric uid and gid are supported.  If you want to use names, you will "
4820 "need to locate and parse the password file yourself (Augeas support makes "
4821 "this relatively easy)."
4822 msgstr ""
4823
4824 # type: =head2
4825 #: ../src/guestfs-actions.pod:751
4826 msgid "guestfs_command"
4827 msgstr ""
4828
4829 # type: verbatim
4830 #: ../src/guestfs-actions.pod:753
4831 #, no-wrap
4832 msgid ""
4833 " char *guestfs_command (guestfs_h *g,\n"
4834 "\t\tchar *const *arguments);\n"
4835 "\n"
4836 msgstr ""
4837
4838 # type: textblock
4839 #: ../src/guestfs-actions.pod:756 ../fish/guestfish-actions.pod:612
4840 msgid ""
4841 "This call runs a command from the guest filesystem.  The filesystem must be "
4842 "mounted, and must contain a compatible operating system (ie. something "
4843 "Linux, with the same or compatible processor architecture)."
4844 msgstr ""
4845
4846 # type: textblock
4847 #: ../src/guestfs-actions.pod:761
4848 msgid ""
4849 "The single parameter is an argv-style list of arguments.  The first element "
4850 "is the name of the program to run.  Subsequent elements are parameters.  The "
4851 "list must be non-empty (ie. must contain a program name).  Note that the "
4852 "command runs directly, and is I<not> invoked via the shell (see "
4853 "C<guestfs_sh>)."
4854 msgstr ""
4855
4856 # type: textblock
4857 #: ../src/guestfs-actions.pod:768 ../fish/guestfish-actions.pod:624
4858 msgid "The return value is anything printed to I<stdout> by the command."
4859 msgstr ""
4860
4861 # type: textblock
4862 #: ../src/guestfs-actions.pod:771 ../fish/guestfish-actions.pod:627
4863 msgid ""
4864 "If the command returns a non-zero exit status, then this function returns an "
4865 "error message.  The error message string is the content of I<stderr> from "
4866 "the command."
4867 msgstr ""
4868
4869 # type: textblock
4870 #: ../src/guestfs-actions.pod:775 ../fish/guestfish-actions.pod:631
4871 msgid ""
4872 "The C<$PATH> environment variable will contain at least C</usr/bin> and "
4873 "C</bin>.  If you require a program from another location, you should provide "
4874 "the full path in the first parameter."
4875 msgstr ""
4876
4877 # type: textblock
4878 #: ../src/guestfs-actions.pod:780 ../fish/guestfish-actions.pod:636
4879 msgid ""
4880 "Shared libraries and data files required by the program must be available on "
4881 "filesystems which are mounted in the correct places.  It is the caller's "
4882 "responsibility to ensure all filesystems that are needed are mounted at the "
4883 "right locations."
4884 msgstr ""
4885
4886 # type: =head2
4887 #: ../src/guestfs-actions.pod:792
4888 msgid "guestfs_command_lines"
4889 msgstr ""
4890
4891 # type: verbatim
4892 #: ../src/guestfs-actions.pod:794
4893 #, no-wrap
4894 msgid ""
4895 " char **guestfs_command_lines (guestfs_h *g,\n"
4896 "\t\tchar *const *arguments);\n"
4897 "\n"
4898 msgstr ""
4899
4900 # type: textblock
4901 #: ../src/guestfs-actions.pod:797
4902 msgid ""
4903 "This is the same as C<guestfs_command>, but splits the result into a list of "
4904 "lines."
4905 msgstr ""
4906
4907 # type: textblock
4908 #: ../src/guestfs-actions.pod:800
4909 msgid "See also: C<guestfs_sh_lines>"
4910 msgstr ""
4911
4912 # type: =head2
4913 #: ../src/guestfs-actions.pod:809
4914 msgid "guestfs_config"
4915 msgstr ""
4916
4917 # type: verbatim
4918 #: ../src/guestfs-actions.pod:811
4919 #, no-wrap
4920 msgid ""
4921 " int guestfs_config (guestfs_h *g,\n"
4922 "\t\tconst char *qemuparam,\n"
4923 "\t\tconst char *qemuvalue);\n"
4924 "\n"
4925 msgstr ""
4926
4927 # type: textblock
4928 #: ../src/guestfs-actions.pod:815 ../fish/guestfish-actions.pod:661
4929 msgid ""
4930 "This can be used to add arbitrary qemu command line parameters of the form "
4931 "C<-param value>.  Actually it's not quite arbitrary - we prevent you from "
4932 "setting some parameters which would interfere with parameters that we use."
4933 msgstr ""
4934
4935 # type: textblock
4936 #: ../src/guestfs-actions.pod:820 ../fish/guestfish-actions.pod:666
4937 msgid "The first character of C<param> string must be a C<-> (dash)."
4938 msgstr ""
4939
4940 # type: textblock
4941 #: ../src/guestfs-actions.pod:822 ../fish/guestfish-actions.pod:668
4942 msgid "C<value> can be NULL."
4943 msgstr ""
4944
4945 # type: =head2
4946 #: ../src/guestfs-actions.pod:826
4947 msgid "guestfs_copy_size"
4948 msgstr ""
4949
4950 # type: verbatim
4951 #: ../src/guestfs-actions.pod:828
4952 #, no-wrap
4953 msgid ""
4954 " int guestfs_copy_size (guestfs_h *g,\n"
4955 "\t\tconst char *src,\n"
4956 "\t\tconst char *dest,\n"
4957 "\t\tint64_t size);\n"
4958 "\n"
4959 msgstr ""
4960
4961 # type: textblock
4962 #: ../src/guestfs-actions.pod:833 ../fish/guestfish-actions.pod:674
4963 msgid ""
4964 "This command copies exactly C<size> bytes from one source device or file "
4965 "C<src> to another destination device or file C<dest>."
4966 msgstr ""
4967
4968 # type: textblock
4969 #: ../src/guestfs-actions.pod:836 ../fish/guestfish-actions.pod:677
4970 msgid ""
4971 "Note this will fail if the source is too short or if the destination is not "
4972 "large enough."
4973 msgstr ""
4974
4975 # type: textblock
4976 #: ../src/guestfs-actions.pod:841 ../src/guestfs-actions.pod:976 ../src/guestfs-actions.pod:1348 ../src/guestfs-actions.pod:1367 ../src/guestfs-actions.pod:5450 ../src/guestfs-actions.pod:5466
4977 msgid ""
4978 "This long-running command can generate progress notification messages so "
4979 "that the caller can display a progress bar or indicator.  To receive these "
4980 "messages, the caller must register a progress callback.  See "
4981 "L<guestfs(3)/guestfs_set_progress_callback>."
4982 msgstr ""
4983
4984 # type: =head2
4985 #: ../src/guestfs-actions.pod:846
4986 msgid "guestfs_cp"
4987 msgstr ""
4988
4989 # type: verbatim
4990 #: ../src/guestfs-actions.pod:848
4991 #, no-wrap
4992 msgid ""
4993 " int guestfs_cp (guestfs_h *g,\n"
4994 "\t\tconst char *src,\n"
4995 "\t\tconst char *dest);\n"
4996 "\n"
4997 msgstr ""
4998
4999 # type: textblock
5000 #: ../src/guestfs-actions.pod:852 ../fish/guestfish-actions.pod:684
5001 msgid ""
5002 "This copies a file from C<src> to C<dest> where C<dest> is either a "
5003 "destination filename or destination directory."
5004 msgstr ""
5005
5006 # type: =head2
5007 #: ../src/guestfs-actions.pod:857
5008 msgid "guestfs_cp_a"
5009 msgstr ""
5010
5011 # type: verbatim
5012 #: ../src/guestfs-actions.pod:859
5013 #, no-wrap
5014 msgid ""
5015 " int guestfs_cp_a (guestfs_h *g,\n"
5016 "\t\tconst char *src,\n"
5017 "\t\tconst char *dest);\n"
5018 "\n"
5019 msgstr ""
5020
5021 # type: textblock
5022 #: ../src/guestfs-actions.pod:863 ../fish/guestfish-actions.pod:691
5023 msgid ""
5024 "This copies a file or directory from C<src> to C<dest> recursively using the "
5025 "C<cp -a> command."
5026 msgstr ""
5027
5028 # type: =head2
5029 #: ../src/guestfs-actions.pod:868
5030 msgid "guestfs_dd"
5031 msgstr ""
5032
5033 # type: verbatim
5034 #: ../src/guestfs-actions.pod:870
5035 #, no-wrap
5036 msgid ""
5037 " int guestfs_dd (guestfs_h *g,\n"
5038 "\t\tconst char *src,\n"
5039 "\t\tconst char *dest);\n"
5040 "\n"
5041 msgstr ""
5042
5043 # type: textblock
5044 #: ../src/guestfs-actions.pod:874 ../fish/guestfish-actions.pod:698
5045 msgid ""
5046 "This command copies from one source device or file C<src> to another "
5047 "destination device or file C<dest>.  Normally you would use this to copy to "
5048 "or from a device or partition, for example to duplicate a filesystem."
5049 msgstr ""
5050
5051 # type: textblock
5052 #: ../src/guestfs-actions.pod:879
5053 msgid ""
5054 "If the destination is a device, it must be as large or larger than the "
5055 "source file or device, otherwise the copy will fail.  This command cannot do "
5056 "partial copies (see C<guestfs_copy_size>)."
5057 msgstr ""
5058
5059 # type: =head2
5060 #: ../src/guestfs-actions.pod:885
5061 msgid "guestfs_debug"
5062 msgstr ""
5063
5064 # type: verbatim
5065 #: ../src/guestfs-actions.pod:887
5066 #, no-wrap
5067 msgid ""
5068 " char *guestfs_debug (guestfs_h *g,\n"
5069 "\t\tconst char *subcmd,\n"
5070 "\t\tchar *const *extraargs);\n"
5071 "\n"
5072 msgstr ""
5073
5074 # type: textblock
5075 #: ../src/guestfs-actions.pod:891
5076 msgid ""
5077 "The C<guestfs_debug> command exposes some internals of C<guestfsd> (the "
5078 "guestfs daemon) that runs inside the qemu subprocess."
5079 msgstr ""
5080
5081 # type: textblock
5082 #: ../src/guestfs-actions.pod:895 ../fish/guestfish-actions.pod:715
5083 msgid ""
5084 "There is no comprehensive help for this command.  You have to look at the "
5085 "file C<daemon/debug.c> in the libguestfs source to find out what you can do."
5086 msgstr ""
5087
5088 # type: =head2
5089 #: ../src/guestfs-actions.pod:902
5090 msgid "guestfs_debug_upload"
5091 msgstr ""
5092
5093 # type: verbatim
5094 #: ../src/guestfs-actions.pod:904
5095 #, no-wrap
5096 msgid ""
5097 " int guestfs_debug_upload (guestfs_h *g,\n"
5098 "\t\tconst char *filename,\n"
5099 "\t\tconst char *tmpname,\n"
5100 "\t\tint mode);\n"
5101 "\n"
5102 msgstr ""
5103
5104 # type: textblock
5105 #: ../src/guestfs-actions.pod:909
5106 msgid ""
5107 "The C<guestfs_debug_upload> command uploads a file to the libguestfs "
5108 "appliance."
5109 msgstr ""
5110
5111 # type: textblock
5112 #: ../src/guestfs-actions.pod:912 ../fish/guestfish-actions.pod:726
5113 msgid ""
5114 "There is no comprehensive help for this command.  You have to look at the "
5115 "file C<daemon/debug.c> in the libguestfs source to find out what it is for."
5116 msgstr ""
5117
5118 # type: =head2
5119 #: ../src/guestfs-actions.pod:918
5120 msgid "guestfs_df"
5121 msgstr ""
5122
5123 # type: verbatim
5124 #: ../src/guestfs-actions.pod:920
5125 #, no-wrap
5126 msgid ""
5127 " char *guestfs_df (guestfs_h *g);\n"
5128 "\n"
5129 msgstr ""
5130
5131 # type: textblock
5132 #: ../src/guestfs-actions.pod:922 ../fish/guestfish-actions.pod:736
5133 msgid "This command runs the C<df> command to report disk space used."
5134 msgstr ""
5135
5136 # type: textblock
5137 #: ../src/guestfs-actions.pod:924 ../src/guestfs-actions.pod:938 ../fish/guestfish-actions.pod:738 ../fish/guestfish-actions.pod:749
5138 msgid ""
5139 "This command is mostly useful for interactive sessions.  It is I<not> "
5140 "intended that you try to parse the output string.  Use C<statvfs> from "
5141 "programs."
5142 msgstr ""
5143
5144 # type: =head2
5145 #: ../src/guestfs-actions.pod:931
5146 msgid "guestfs_df_h"
5147 msgstr ""
5148
5149 # type: verbatim
5150 #: ../src/guestfs-actions.pod:933
5151 #, no-wrap
5152 msgid ""
5153 " char *guestfs_df_h (guestfs_h *g);\n"
5154 "\n"
5155 msgstr ""
5156
5157 # type: textblock
5158 #: ../src/guestfs-actions.pod:935 ../fish/guestfish-actions.pod:746
5159 msgid ""
5160 "This command runs the C<df -h> command to report disk space used in "
5161 "human-readable format."
5162 msgstr ""
5163
5164 # type: =head2
5165 #: ../src/guestfs-actions.pod:945
5166 msgid "guestfs_dmesg"
5167 msgstr ""
5168
5169 # type: verbatim
5170 #: ../src/guestfs-actions.pod:947
5171 #, no-wrap
5172 msgid ""
5173 " char *guestfs_dmesg (guestfs_h *g);\n"
5174 "\n"
5175 msgstr ""
5176
5177 # type: textblock
5178 #: ../src/guestfs-actions.pod:949 ../fish/guestfish-actions.pod:757
5179 msgid ""
5180 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
5181 "This is sometimes useful for extended debugging of problems."
5182 msgstr ""
5183
5184 # type: textblock
5185 #: ../src/guestfs-actions.pod:953
5186 msgid ""
5187 "Another way to get the same information is to enable verbose messages with "
5188 "C<guestfs_set_verbose> or by setting the environment variable "
5189 "C<LIBGUESTFS_DEBUG=1> before running the program."
5190 msgstr ""
5191
5192 # type: =head2
5193 #: ../src/guestfs-actions.pod:961
5194 msgid "guestfs_download"
5195 msgstr ""
5196
5197 # type: verbatim
5198 #: ../src/guestfs-actions.pod:963
5199 #, no-wrap
5200 msgid ""
5201 " int guestfs_download (guestfs_h *g,\n"
5202 "\t\tconst char *remotefilename,\n"
5203 "\t\tconst char *filename);\n"
5204 "\n"
5205 msgstr ""
5206
5207 # type: textblock
5208 #: ../src/guestfs-actions.pod:967 ../fish/guestfish-actions.pod:770
5209 msgid ""
5210 "Download file C<remotefilename> and save it as C<filename> on the local "
5211 "machine."
5212 msgstr ""
5213
5214 # type: textblock
5215 #: ../src/guestfs-actions.pod:970 ../src/guestfs-actions.pod:5044 ../fish/guestfish-actions.pod:773 ../fish/guestfish-actions.pod:3893
5216 msgid "C<filename> can also be a named pipe."
5217 msgstr ""
5218
5219 # type: textblock
5220 #: ../src/guestfs-actions.pod:972
5221 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
5222 msgstr ""
5223
5224 # type: =head2
5225 #: ../src/guestfs-actions.pod:981
5226 msgid "guestfs_drop_caches"
5227 msgstr ""
5228
5229 # type: verbatim
5230 #: ../src/guestfs-actions.pod:983
5231 #, no-wrap
5232 msgid ""
5233 " int guestfs_drop_caches (guestfs_h *g,\n"
5234 "\t\tint whattodrop);\n"
5235 "\n"
5236 msgstr ""
5237
5238 # type: textblock
5239 #: ../src/guestfs-actions.pod:986 ../fish/guestfish-actions.pod:783
5240 msgid ""
5241 "This instructs the guest kernel to drop its page cache, and/or dentries and "
5242 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
5243 "to drop, see L<http://linux-mm.org/Drop_Caches>"
5244 msgstr ""
5245
5246 # type: textblock
5247 #: ../src/guestfs-actions.pod:991 ../fish/guestfish-actions.pod:788
5248 msgid "Setting C<whattodrop> to 3 should drop everything."
5249 msgstr ""
5250
5251 # type: textblock
5252 #: ../src/guestfs-actions.pod:993 ../fish/guestfish-actions.pod:790
5253 msgid ""
5254 "This automatically calls L<sync(2)> before the operation, so that the "
5255 "maximum guest memory is freed."
5256 msgstr ""
5257
5258 # type: =head2
5259 #: ../src/guestfs-actions.pod:998
5260 msgid "guestfs_du"
5261 msgstr ""
5262
5263 # type: verbatim
5264 #: ../src/guestfs-actions.pod:1000
5265 #, no-wrap
5266 msgid ""
5267 " int64_t guestfs_du (guestfs_h *g,\n"
5268 "\t\tconst char *path);\n"
5269 "\n"
5270 msgstr ""
5271
5272 # type: textblock
5273 #: ../src/guestfs-actions.pod:1003 ../fish/guestfish-actions.pod:797
5274 msgid ""
5275 "This command runs the C<du -s> command to estimate file space usage for "
5276 "C<path>."
5277 msgstr ""
5278
5279 # type: textblock
5280 #: ../src/guestfs-actions.pod:1006 ../fish/guestfish-actions.pod:800
5281 msgid ""
5282 "C<path> can be a file or a directory.  If C<path> is a directory then the "
5283 "estimate includes the contents of the directory and all subdirectories "
5284 "(recursively)."
5285 msgstr ""
5286
5287 # type: textblock
5288 #: ../src/guestfs-actions.pod:1010 ../fish/guestfish-actions.pod:804
5289 msgid "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
5290 msgstr ""
5291
5292 # type: =head2
5293 #: ../src/guestfs-actions.pod:1015
5294 msgid "guestfs_e2fsck_f"
5295 msgstr ""
5296
5297 # type: verbatim
5298 #: ../src/guestfs-actions.pod:1017
5299 #, no-wrap
5300 msgid ""
5301 " int guestfs_e2fsck_f (guestfs_h *g,\n"
5302 "\t\tconst char *device);\n"
5303 "\n"
5304 msgstr ""
5305
5306 # type: textblock
5307 #: ../src/guestfs-actions.pod:1020 ../fish/guestfish-actions.pod:811
5308 msgid ""
5309 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
5310 "on C<device>, noninteractively (C<-p>), even if the filesystem appears to be "
5311 "clean (C<-f>)."
5312 msgstr ""
5313
5314 # type: textblock
5315 #: ../src/guestfs-actions.pod:1024
5316 msgid ""
5317 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
5318 "Normally you should use C<guestfs_fsck>."
5319 msgstr ""
5320
5321 # type: =head2
5322 #: ../src/guestfs-actions.pod:1029
5323 msgid "guestfs_echo_daemon"
5324 msgstr ""
5325
5326 # type: verbatim
5327 #: ../src/guestfs-actions.pod:1031
5328 #, no-wrap
5329 msgid ""
5330 " char *guestfs_echo_daemon (guestfs_h *g,\n"
5331 "\t\tchar *const *words);\n"
5332 "\n"
5333 msgstr ""
5334
5335 # type: textblock
5336 #: ../src/guestfs-actions.pod:1034 ../fish/guestfish-actions.pod:822
5337 msgid ""
5338 "This command concatenates the list of C<words> passed with single spaces "
5339 "between them and returns the resulting string."
5340 msgstr ""
5341
5342 # type: textblock
5343 #: ../src/guestfs-actions.pod:1037 ../fish/guestfish-actions.pod:825
5344 msgid "You can use this command to test the connection through to the daemon."
5345 msgstr ""
5346
5347 # type: textblock
5348 #: ../src/guestfs-actions.pod:1039
5349 msgid "See also C<guestfs_ping_daemon>."
5350 msgstr ""
5351
5352 # type: =head2
5353 #: ../src/guestfs-actions.pod:1044
5354 msgid "guestfs_egrep"
5355 msgstr ""
5356
5357 # type: verbatim
5358 #: ../src/guestfs-actions.pod:1046
5359 #, no-wrap
5360 msgid ""
5361 " char **guestfs_egrep (guestfs_h *g,\n"
5362 "\t\tconst char *regex,\n"
5363 "\t\tconst char *path);\n"
5364 "\n"
5365 msgstr ""
5366
5367 # type: textblock
5368 #: ../src/guestfs-actions.pod:1050 ../fish/guestfish-actions.pod:833
5369 msgid "This calls the external C<egrep> program and returns the matching lines."
5370 msgstr ""
5371
5372 # type: =head2
5373 #: ../src/guestfs-actions.pod:1060
5374 msgid "guestfs_egrepi"
5375 msgstr ""
5376
5377 # type: verbatim
5378 #: ../src/guestfs-actions.pod:1062
5379 #, no-wrap
5380 msgid ""
5381 " char **guestfs_egrepi (guestfs_h *g,\n"
5382 "\t\tconst char *regex,\n"
5383 "\t\tconst char *path);\n"
5384 "\n"
5385 msgstr ""
5386
5387 # type: textblock
5388 #: ../src/guestfs-actions.pod:1066 ../fish/guestfish-actions.pod:843
5389 msgid "This calls the external C<egrep -i> program and returns the matching lines."
5390 msgstr ""
5391
5392 # type: =head2
5393 #: ../src/guestfs-actions.pod:1076
5394 msgid "guestfs_equal"
5395 msgstr ""
5396
5397 # type: verbatim
5398 #: ../src/guestfs-actions.pod:1078
5399 #, no-wrap
5400 msgid ""
5401 " int guestfs_equal (guestfs_h *g,\n"
5402 "\t\tconst char *file1,\n"
5403 "\t\tconst char *file2);\n"
5404 "\n"
5405 msgstr ""
5406
5407 # type: textblock
5408 #: ../src/guestfs-actions.pod:1082 ../fish/guestfish-actions.pod:853
5409 msgid ""
5410 "This compares the two files C<file1> and C<file2> and returns true if their "
5411 "content is exactly equal, or false otherwise."
5412 msgstr ""
5413
5414 # type: textblock
5415 #: ../src/guestfs-actions.pod:1085 ../fish/guestfish-actions.pod:856
5416 msgid "The external L<cmp(1)> program is used for the comparison."
5417 msgstr ""
5418
5419 # type: =head2
5420 #: ../src/guestfs-actions.pod:1089
5421 msgid "guestfs_exists"
5422 msgstr ""
5423
5424 # type: verbatim
5425 #: ../src/guestfs-actions.pod:1091
5426 #, no-wrap
5427 msgid ""
5428 " int guestfs_exists (guestfs_h *g,\n"
5429 "\t\tconst char *path);\n"
5430 "\n"
5431 msgstr ""
5432
5433 # type: textblock
5434 #: ../src/guestfs-actions.pod:1094 ../fish/guestfish-actions.pod:862
5435 msgid ""
5436 "This returns C<true> if and only if there is a file, directory (or anything) "
5437 "with the given C<path> name."
5438 msgstr ""
5439
5440 # type: textblock
5441 #: ../src/guestfs-actions.pod:1097
5442 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
5443 msgstr ""
5444
5445 # type: =head2
5446 #: ../src/guestfs-actions.pod:1101
5447 msgid "guestfs_fallocate"
5448 msgstr ""
5449
5450 # type: verbatim
5451 #: ../src/guestfs-actions.pod:1103
5452 #, no-wrap
5453 msgid ""
5454 " int guestfs_fallocate (guestfs_h *g,\n"
5455 "\t\tconst char *path,\n"
5456 "\t\tint len);\n"
5457 "\n"
5458 msgstr ""
5459
5460 # type: textblock
5461 #: ../src/guestfs-actions.pod:1107 ../src/guestfs-actions.pod:1130 ../fish/guestfish-actions.pod:871 ../fish/guestfish-actions.pod:890
5462 msgid ""
5463 "This command preallocates a file (containing zero bytes) named C<path> of "
5464 "size C<len> bytes.  If the file exists already, it is overwritten."
5465 msgstr ""
5466
5467 # type: textblock
5468 #: ../src/guestfs-actions.pod:1111 ../fish/guestfish-actions.pod:875
5469 msgid ""
5470 "Do not confuse this with the guestfish-specific C<alloc> command which "
5471 "allocates a file in the host and attaches it as a device."
5472 msgstr ""
5473
5474 # type: textblock
5475 #: ../src/guestfs-actions.pod:1117 ../fish/guestfish-actions.pod:879
5476 msgid ""
5477 "This function is deprecated.  In new code, use the C<fallocate64> call "
5478 "instead."
5479 msgstr ""
5480
5481 # type: textblock
5482 #: ../src/guestfs-actions.pod:1120 ../src/guestfs-actions.pod:1555 ../src/guestfs-actions.pod:1573 ../src/guestfs-actions.pod:5399 ../src/guestfs-actions.pod:5544 ../fish/guestfish-actions.pod:882 ../fish/guestfish-actions.pod:1239 ../fish/guestfish-actions.pod:1253 ../fish/guestfish-actions.pod:4146 ../fish/guestfish-actions.pod:4243
5483 msgid ""
5484 "Deprecated functions will not be removed from the API, but the fact that "
5485 "they are deprecated indicates that there are problems with correct use of "
5486 "these functions."
5487 msgstr ""
5488
5489 # type: =head2
5490 #: ../src/guestfs-actions.pod:1124
5491 msgid "guestfs_fallocate64"
5492 msgstr ""
5493
5494 # type: verbatim
5495 #: ../src/guestfs-actions.pod:1126
5496 #, no-wrap
5497 msgid ""
5498 " int guestfs_fallocate64 (guestfs_h *g,\n"
5499 "\t\tconst char *path,\n"
5500 "\t\tint64_t len);\n"
5501 "\n"
5502 msgstr ""
5503
5504 # type: textblock
5505 #: ../src/guestfs-actions.pod:1134
5506 msgid ""
5507 "Note that this call allocates disk blocks for the file.  To create a sparse "
5508 "file use C<guestfs_truncate_size> instead."
5509 msgstr ""
5510
5511 # type: textblock
5512 #: ../src/guestfs-actions.pod:1137
5513 msgid ""
5514 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
5515 "oversight it only allowed 30 bit lengths to be specified, effectively "
5516 "limiting the maximum size of files created through that call to 1GB."
5517 msgstr ""
5518
5519 # type: textblock
5520 #: ../src/guestfs-actions.pod:1142 ../fish/guestfish-actions.pod:902
5521 msgid ""
5522 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
5523 "commands which create a file in the host and attach it as a device."
5524 msgstr ""
5525
5526 # type: =head2
5527 #: ../src/guestfs-actions.pod:1148
5528 msgid "guestfs_fgrep"
5529 msgstr ""
5530
5531 # type: verbatim
5532 #: ../src/guestfs-actions.pod:1150
5533 #, no-wrap
5534 msgid ""
5535 " char **guestfs_fgrep (guestfs_h *g,\n"
5536 "\t\tconst char *pattern,\n"
5537 "\t\tconst char *path);\n"
5538 "\n"
5539 msgstr ""
5540
5541 # type: textblock
5542 #: ../src/guestfs-actions.pod:1154 ../fish/guestfish-actions.pod:910
5543 msgid "This calls the external C<fgrep> program and returns the matching lines."
5544 msgstr ""
5545
5546 # type: =head2
5547 #: ../src/guestfs-actions.pod:1164
5548 msgid "guestfs_fgrepi"
5549 msgstr ""
5550
5551 # type: verbatim
5552 #: ../src/guestfs-actions.pod:1166
5553 #, no-wrap
5554 msgid ""
5555 " char **guestfs_fgrepi (guestfs_h *g,\n"
5556 "\t\tconst char *pattern,\n"
5557 "\t\tconst char *path);\n"
5558 "\n"
5559 msgstr ""
5560
5561 # type: textblock
5562 #: ../src/guestfs-actions.pod:1170 ../fish/guestfish-actions.pod:920
5563 msgid "This calls the external C<fgrep -i> program and returns the matching lines."
5564 msgstr ""
5565
5566 # type: =head2
5567 #: ../src/guestfs-actions.pod:1180
5568 msgid "guestfs_file"
5569 msgstr ""
5570
5571 # type: verbatim
5572 #: ../src/guestfs-actions.pod:1182
5573 #, no-wrap
5574 msgid ""
5575 " char *guestfs_file (guestfs_h *g,\n"
5576 "\t\tconst char *path);\n"
5577 "\n"
5578 msgstr ""
5579
5580 # type: textblock
5581 #: ../src/guestfs-actions.pod:1185 ../fish/guestfish-actions.pod:930
5582 msgid ""
5583 "This call uses the standard L<file(1)> command to determine the type or "
5584 "contents of the file."
5585 msgstr ""
5586
5587 # type: textblock
5588 #: ../src/guestfs-actions.pod:1188 ../fish/guestfish-actions.pod:933
5589 msgid ""
5590 "This call will also transparently look inside various types of compressed "
5591 "file."
5592 msgstr ""
5593
5594 # type: textblock
5595 #: ../src/guestfs-actions.pod:1191 ../fish/guestfish-actions.pod:936
5596 msgid ""
5597 "The exact command which runs is C<file -zb path>.  Note in particular that "
5598 "the filename is not prepended to the output (the C<-b> option)."
5599 msgstr ""
5600
5601 # type: textblock
5602 #: ../src/guestfs-actions.pod:1195
5603 msgid ""
5604 "This command can also be used on C</dev/> devices (and partitions, LV "
5605 "names).  You can for example use this to determine if a device contains a "
5606 "filesystem, although it's usually better to use C<guestfs_vfs_type>."
5607 msgstr ""
5608
5609 # type: textblock
5610 #: ../src/guestfs-actions.pod:1200 ../fish/guestfish-actions.pod:945
5611 msgid ""
5612 "If the C<path> does not begin with C</dev/> then this command only works for "
5613 "the content of regular files.  For other file types (directory, symbolic "
5614 "link etc) it will just return the string C<directory> etc."
5615 msgstr ""
5616
5617 # type: =head2
5618 #: ../src/guestfs-actions.pod:1208
5619 msgid "guestfs_file_architecture"
5620 msgstr ""
5621
5622 # type: verbatim
5623 #: ../src/guestfs-actions.pod:1210
5624 #, no-wrap
5625 msgid ""
5626 " char *guestfs_file_architecture (guestfs_h *g,\n"
5627 "\t\tconst char *filename);\n"
5628 "\n"
5629 msgstr ""
5630
5631 # type: textblock
5632 #: ../src/guestfs-actions.pod:1213 ../fish/guestfish-actions.pod:954
5633 msgid ""
5634 "This detects the architecture of the binary C<filename>, and returns it if "
5635 "known."
5636 msgstr ""
5637
5638 # type: textblock
5639 #: ../src/guestfs-actions.pod:1216 ../fish/guestfish-actions.pod:957
5640 msgid "Currently defined architectures are:"
5641 msgstr ""
5642
5643 # type: =item
5644 #: ../src/guestfs-actions.pod:1220 ../fish/guestfish-actions.pod:961
5645 msgid "\"i386\""
5646 msgstr ""
5647
5648 # type: textblock
5649 #: ../src/guestfs-actions.pod:1222 ../fish/guestfish-actions.pod:963
5650 msgid ""
5651 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
5652 "irrespective of the precise processor requirements of the binary."
5653 msgstr ""
5654
5655 # type: =item
5656 #: ../src/guestfs-actions.pod:1225 ../fish/guestfish-actions.pod:966
5657 msgid "\"x86_64\""
5658 msgstr ""
5659
5660 # type: textblock
5661 #: ../src/guestfs-actions.pod:1227 ../fish/guestfish-actions.pod:968
5662 msgid "64 bit x86-64."
5663 msgstr ""
5664
5665 # type: =item
5666 #: ../src/guestfs-actions.pod:1229 ../fish/guestfish-actions.pod:970
5667 msgid "\"sparc\""
5668 msgstr ""
5669
5670 # type: textblock
5671 #: ../src/guestfs-actions.pod:1231 ../fish/guestfish-actions.pod:972
5672 msgid "32 bit SPARC."
5673 msgstr ""
5674
5675 # type: =item
5676 #: ../src/guestfs-actions.pod:1233 ../fish/guestfish-actions.pod:974
5677 msgid "\"sparc64\""
5678 msgstr ""
5679
5680 # type: textblock
5681 #: ../src/guestfs-actions.pod:1235 ../fish/guestfish-actions.pod:976
5682 msgid "64 bit SPARC V9 and above."
5683 msgstr ""
5684
5685 # type: =item
5686 #: ../src/guestfs-actions.pod:1237 ../fish/guestfish-actions.pod:978
5687 msgid "\"ia64\""
5688 msgstr ""
5689
5690 # type: textblock
5691 #: ../src/guestfs-actions.pod:1239 ../fish/guestfish-actions.pod:980
5692 msgid "Intel Itanium."
5693 msgstr ""
5694
5695 # type: =item
5696 #: ../src/guestfs-actions.pod:1241 ../fish/guestfish-actions.pod:982
5697 msgid "\"ppc\""
5698 msgstr ""
5699
5700 # type: textblock
5701 #: ../src/guestfs-actions.pod:1243 ../fish/guestfish-actions.pod:984
5702 msgid "32 bit Power PC."
5703 msgstr ""
5704
5705 # type: =item
5706 #: ../src/guestfs-actions.pod:1245 ../fish/guestfish-actions.pod:986
5707 msgid "\"ppc64\""
5708 msgstr ""
5709
5710 # type: textblock
5711 #: ../src/guestfs-actions.pod:1247 ../fish/guestfish-actions.pod:988
5712 msgid "64 bit Power PC."
5713 msgstr ""
5714
5715 # type: textblock
5716 #: ../src/guestfs-actions.pod:1251 ../fish/guestfish-actions.pod:992
5717 msgid "Libguestfs may return other architecture strings in future."
5718 msgstr ""
5719
5720 # type: textblock
5721 #: ../src/guestfs-actions.pod:1253 ../fish/guestfish-actions.pod:994
5722 msgid "The function works on at least the following types of files:"
5723 msgstr ""
5724
5725 # type: textblock
5726 #: ../src/guestfs-actions.pod:1259 ../fish/guestfish-actions.pod:1000
5727 msgid "many types of Un*x and Linux binary"
5728 msgstr ""
5729
5730 # type: textblock
5731 #: ../src/guestfs-actions.pod:1263 ../fish/guestfish-actions.pod:1004
5732 msgid "many types of Un*x and Linux shared library"
5733 msgstr ""
5734
5735 # type: textblock
5736 #: ../src/guestfs-actions.pod:1267 ../fish/guestfish-actions.pod:1008
5737 msgid "Windows Win32 and Win64 binaries"
5738 msgstr ""
5739
5740 # type: textblock
5741 #: ../src/guestfs-actions.pod:1271 ../fish/guestfish-actions.pod:1012
5742 msgid "Windows Win32 and Win64 DLLs"
5743 msgstr ""
5744
5745 # type: textblock
5746 #: ../src/guestfs-actions.pod:1273 ../fish/guestfish-actions.pod:1014
5747 msgid "Win32 binaries and DLLs return C<i386>."
5748 msgstr ""
5749
5750 # type: textblock
5751 #: ../src/guestfs-actions.pod:1275 ../fish/guestfish-actions.pod:1016
5752 msgid "Win64 binaries and DLLs return C<x86_64>."
5753 msgstr ""
5754
5755 # type: textblock
5756 #: ../src/guestfs-actions.pod:1279 ../fish/guestfish-actions.pod:1020
5757 msgid "Linux kernel modules"
5758 msgstr ""
5759
5760 # type: textblock
5761 #: ../src/guestfs-actions.pod:1283 ../fish/guestfish-actions.pod:1024
5762 msgid "Linux new-style initrd images"
5763 msgstr ""
5764
5765 # type: textblock
5766 #: ../src/guestfs-actions.pod:1287 ../fish/guestfish-actions.pod:1028
5767 msgid "some non-x86 Linux vmlinuz kernels"
5768 msgstr ""
5769
5770 # type: textblock
5771 #: ../src/guestfs-actions.pod:1291 ../fish/guestfish-actions.pod:1032
5772 msgid "What it can't do currently:"
5773 msgstr ""
5774
5775 # type: textblock
5776 #: ../src/guestfs-actions.pod:1297 ../fish/guestfish-actions.pod:1038
5777 msgid "static libraries (libfoo.a)"
5778 msgstr ""
5779
5780 # type: textblock
5781 #: ../src/guestfs-actions.pod:1301 ../fish/guestfish-actions.pod:1042
5782 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
5783 msgstr ""
5784
5785 # type: textblock
5786 #: ../src/guestfs-actions.pod:1305 ../fish/guestfish-actions.pod:1046
5787 msgid "x86 Linux vmlinuz kernels"
5788 msgstr ""
5789
5790 # type: textblock
5791 #: ../src/guestfs-actions.pod:1307 ../fish/guestfish-actions.pod:1048
5792 msgid ""
5793 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
5794 "compressed code, and are horribly hard to unpack.  If you want to find the "
5795 "architecture of a kernel, use the architecture of the associated initrd or "
5796 "kernel module(s) instead."
5797 msgstr ""
5798
5799 # type: =head2
5800 #: ../src/guestfs-actions.pod:1317
5801 msgid "guestfs_filesize"
5802 msgstr ""
5803
5804 # type: verbatim
5805 #: ../src/guestfs-actions.pod:1319
5806 #, no-wrap
5807 msgid ""
5808 " int64_t guestfs_filesize (guestfs_h *g,\n"
5809 "\t\tconst char *file);\n"
5810 "\n"
5811 msgstr ""
5812
5813 # type: textblock
5814 #: ../src/guestfs-actions.pod:1322 ../fish/guestfish-actions.pod:1059
5815 msgid "This command returns the size of C<file> in bytes."
5816 msgstr ""
5817
5818 # type: textblock
5819 #: ../src/guestfs-actions.pod:1324
5820 msgid ""
5821 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
5822 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
5823 "devices, use C<guestfs_blockdev_getsize64>."
5824 msgstr ""
5825
5826 # type: =head2
5827 #: ../src/guestfs-actions.pod:1330
5828 msgid "guestfs_fill"
5829 msgstr ""
5830
5831 # type: verbatim
5832 #: ../src/guestfs-actions.pod:1332
5833 #, no-wrap
5834 msgid ""
5835 " int guestfs_fill (guestfs_h *g,\n"
5836 "\t\tint c,\n"
5837 "\t\tint len,\n"
5838 "\t\tconst char *path);\n"
5839 "\n"
5840 msgstr ""
5841
5842 # type: textblock
5843 #: ../src/guestfs-actions.pod:1337 ../fish/guestfish-actions.pod:1069
5844 msgid ""
5845 "This command creates a new file called C<path>.  The initial content of the "
5846 "file is C<len> octets of C<c>, where C<c> must be a number in the range "
5847 "C<[0..255]>."
5848 msgstr ""
5849
5850 # type: textblock
5851 #: ../src/guestfs-actions.pod:1341
5852 msgid ""
5853 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
5854 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
5855 "bytes use C<guestfs_fill_pattern>."
5856 msgstr ""
5857
5858 # type: =head2
5859 #: ../src/guestfs-actions.pod:1353
5860 msgid "guestfs_fill_pattern"
5861 msgstr ""
5862
5863 # type: verbatim
5864 #: ../src/guestfs-actions.pod:1355
5865 #, no-wrap
5866 msgid ""
5867 " int guestfs_fill_pattern (guestfs_h *g,\n"
5868 "\t\tconst char *pattern,\n"
5869 "\t\tint len,\n"
5870 "\t\tconst char *path);\n"
5871 "\n"
5872 msgstr ""
5873
5874 # type: textblock
5875 #: ../src/guestfs-actions.pod:1360
5876 msgid ""
5877 "This function is like C<guestfs_fill> except that it creates a new file of "
5878 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
5879 "pattern is truncated if necessary to ensure the length of the file is "
5880 "exactly C<len> bytes."
5881 msgstr ""
5882
5883 # type: =head2
5884 #: ../src/guestfs-actions.pod:1372
5885 msgid "guestfs_find"
5886 msgstr ""
5887
5888 # type: verbatim
5889 #: ../src/guestfs-actions.pod:1374
5890 #, no-wrap
5891 msgid ""
5892 " char **guestfs_find (guestfs_h *g,\n"
5893 "\t\tconst char *directory);\n"
5894 "\n"
5895 msgstr ""
5896
5897 # type: textblock
5898 #: ../src/guestfs-actions.pod:1377 ../fish/guestfish-actions.pod:1091
5899 msgid ""
5900 "This command lists out all files and directories, recursively, starting at "
5901 "C<directory>.  It is essentially equivalent to running the shell command "
5902 "C<find directory -print> but some post-processing happens on the output, "
5903 "described below."
5904 msgstr ""
5905
5906 # type: textblock
5907 #: ../src/guestfs-actions.pod:1382 ../fish/guestfish-actions.pod:1096
5908 msgid ""
5909 "This returns a list of strings I<without any prefix>.  Thus if the directory "
5910 "structure was:"
5911 msgstr ""
5912
5913 # type: verbatim
5914 #: ../src/guestfs-actions.pod:1385 ../fish/guestfish-actions.pod:1099
5915 #, no-wrap
5916 msgid ""
5917 " /tmp/a\n"
5918 " /tmp/b\n"
5919 " /tmp/c/d\n"
5920 "\n"
5921 msgstr ""
5922
5923 # type: textblock
5924 #: ../src/guestfs-actions.pod:1389
5925 msgid "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
5926 msgstr ""
5927
5928 # type: verbatim
5929 #: ../src/guestfs-actions.pod:1392 ../fish/guestfish-actions.pod:1106
5930 #, no-wrap
5931 msgid ""
5932 " a\n"
5933 " b\n"
5934 " c\n"
5935 " c/d\n"
5936 "\n"
5937 msgstr ""
5938
5939 # type: textblock
5940 #: ../src/guestfs-actions.pod:1397 ../fish/guestfish-actions.pod:1111
5941 msgid "If C<directory> is not a directory, then this command returns an error."
5942 msgstr ""
5943
5944 # type: textblock
5945 #: ../src/guestfs-actions.pod:1400 ../fish/guestfish-actions.pod:1114
5946 msgid "The returned list is sorted."
5947 msgstr ""
5948
5949 # type: textblock
5950 #: ../src/guestfs-actions.pod:1402
5951 msgid "See also C<guestfs_find0>."
5952 msgstr ""
5953
5954 # type: =head2
5955 #: ../src/guestfs-actions.pod:1411
5956 msgid "guestfs_find0"
5957 msgstr ""
5958
5959 # type: verbatim
5960 #: ../src/guestfs-actions.pod:1413
5961 #, no-wrap
5962 msgid ""
5963 " int guestfs_find0 (guestfs_h *g,\n"
5964 "\t\tconst char *directory,\n"
5965 "\t\tconst char *files);\n"
5966 "\n"
5967 msgstr ""
5968
5969 # type: textblock
5970 #: ../src/guestfs-actions.pod:1417 ../fish/guestfish-actions.pod:1125
5971 msgid ""
5972 "This command lists out all files and directories, recursively, starting at "
5973 "C<directory>, placing the resulting list in the external file called "
5974 "C<files>."
5975 msgstr ""
5976
5977 # type: textblock
5978 #: ../src/guestfs-actions.pod:1421
5979 msgid ""
5980 "This command works the same way as C<guestfs_find> with the following "
5981 "exceptions:"
5982 msgstr ""
5983
5984 # type: textblock
5985 #: ../src/guestfs-actions.pod:1428 ../fish/guestfish-actions.pod:1136
5986 msgid "The resulting list is written to an external file."
5987 msgstr ""
5988
5989 # type: textblock
5990 #: ../src/guestfs-actions.pod:1432 ../fish/guestfish-actions.pod:1140
5991 msgid ""
5992 "Items (filenames) in the result are separated by C<\\0> characters.  See "
5993 "L<find(1)> option I<-print0>."
5994 msgstr ""
5995
5996 # type: textblock
5997 #: ../src/guestfs-actions.pod:1437 ../fish/guestfish-actions.pod:1145
5998 msgid "This command is not limited in the number of names that it can return."
5999 msgstr ""
6000
6001 # type: textblock
6002 #: ../src/guestfs-actions.pod:1442 ../fish/guestfish-actions.pod:1150
6003 msgid "The result list is not sorted."
6004 msgstr ""
6005
6006 # type: =head2
6007 #: ../src/guestfs-actions.pod:1448
6008 msgid "guestfs_findfs_label"
6009 msgstr ""
6010
6011 # type: verbatim
6012 #: ../src/guestfs-actions.pod:1450
6013 #, no-wrap
6014 msgid ""
6015 " char *guestfs_findfs_label (guestfs_h *g,\n"
6016 "\t\tconst char *label);\n"
6017 "\n"
6018 msgstr ""
6019
6020 # type: textblock
6021 #: ../src/guestfs-actions.pod:1453 ../fish/guestfish-actions.pod:1160
6022 msgid ""
6023 "This command searches the filesystems and returns the one which has the "
6024 "given label.  An error is returned if no such filesystem can be found."
6025 msgstr ""
6026
6027 # type: textblock
6028 #: ../src/guestfs-actions.pod:1457
6029 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
6030 msgstr ""
6031
6032 # type: =head2
6033 #: ../src/guestfs-actions.pod:1462
6034 msgid "guestfs_findfs_uuid"
6035 msgstr ""
6036
6037 # type: verbatim
6038 #: ../src/guestfs-actions.pod:1464
6039 #, no-wrap
6040 msgid ""
6041 " char *guestfs_findfs_uuid (guestfs_h *g,\n"
6042 "\t\tconst char *uuid);\n"
6043 "\n"
6044 msgstr ""
6045
6046 # type: textblock
6047 #: ../src/guestfs-actions.pod:1467 ../fish/guestfish-actions.pod:1170
6048 msgid ""
6049 "This command searches the filesystems and returns the one which has the "
6050 "given UUID.  An error is returned if no such filesystem can be found."
6051 msgstr ""
6052
6053 # type: textblock
6054 #: ../src/guestfs-actions.pod:1471
6055 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
6056 msgstr ""
6057
6058 # type: =head2
6059 #: ../src/guestfs-actions.pod:1476
6060 msgid "guestfs_fsck"
6061 msgstr ""
6062
6063 # type: verbatim
6064 #: ../src/guestfs-actions.pod:1478
6065 #, no-wrap
6066 msgid ""
6067 " int guestfs_fsck (guestfs_h *g,\n"
6068 "\t\tconst char *fstype,\n"
6069 "\t\tconst char *device);\n"
6070 "\n"
6071 msgstr ""
6072
6073 # type: textblock
6074 #: ../src/guestfs-actions.pod:1482 ../fish/guestfish-actions.pod:1180
6075 msgid ""
6076 "This runs the filesystem checker (fsck) on C<device> which should have "
6077 "filesystem type C<fstype>."
6078 msgstr ""
6079
6080 # type: textblock
6081 #: ../src/guestfs-actions.pod:1485 ../fish/guestfish-actions.pod:1183
6082 msgid ""
6083 "The returned integer is the status.  See L<fsck(8)> for the list of status "
6084 "codes from C<fsck>."
6085 msgstr ""
6086
6087 # type: textblock
6088 #: ../src/guestfs-actions.pod:1494 ../fish/guestfish-actions.pod:1192
6089 msgid "Multiple status codes can be summed together."
6090 msgstr ""
6091
6092 # type: textblock
6093 #: ../src/guestfs-actions.pod:1498 ../fish/guestfish-actions.pod:1196
6094 msgid ""
6095 "A non-zero return code can mean \"success\", for example if errors have been "
6096 "corrected on the filesystem."
6097 msgstr ""
6098
6099 # type: textblock
6100 #: ../src/guestfs-actions.pod:1503 ../fish/guestfish-actions.pod:1201
6101 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
6102 msgstr ""
6103
6104 # type: textblock
6105 #: ../src/guestfs-actions.pod:1508 ../fish/guestfish-actions.pod:1206
6106 msgid "This command is entirely equivalent to running C<fsck -a -t fstype device>."
6107 msgstr ""
6108
6109 # type: =head2
6110 #: ../src/guestfs-actions.pod:1512
6111 msgid "guestfs_get_append"
6112 msgstr ""
6113
6114 # type: verbatim
6115 #: ../src/guestfs-actions.pod:1514
6116 #, no-wrap
6117 msgid ""
6118 " const char *guestfs_get_append (guestfs_h *g);\n"
6119 "\n"
6120 msgstr ""
6121
6122 # type: textblock
6123 #: ../src/guestfs-actions.pod:1516 ../fish/guestfish-actions.pod:1212
6124 msgid ""
6125 "Return the additional kernel options which are added to the guest kernel "
6126 "command line."
6127 msgstr ""
6128
6129 # type: textblock
6130 #: ../src/guestfs-actions.pod:1519 ../fish/guestfish-actions.pod:1215
6131 msgid "If C<NULL> then no options are added."
6132 msgstr ""
6133
6134 # type: textblock
6135 #: ../src/guestfs-actions.pod:1521
6136 msgid ""
6137 "This function returns a string which may be NULL.  There is no way to return "
6138 "an error from this function.  The string is owned by the guest handle and "
6139 "must I<not> be freed."
6140 msgstr ""
6141
6142 # type: =head2
6143 #: ../src/guestfs-actions.pod:1525
6144 msgid "guestfs_get_autosync"
6145 msgstr ""
6146
6147 # type: verbatim
6148 #: ../src/guestfs-actions.pod:1527
6149 #, no-wrap
6150 msgid ""
6151 " int guestfs_get_autosync (guestfs_h *g);\n"
6152 "\n"
6153 msgstr ""
6154
6155 # type: textblock
6156 #: ../src/guestfs-actions.pod:1529 ../fish/guestfish-actions.pod:1221
6157 msgid "Get the autosync flag."
6158 msgstr ""
6159
6160 # type: =head2
6161 #: ../src/guestfs-actions.pod:1533
6162 msgid "guestfs_get_direct"
6163 msgstr ""
6164
6165 # type: verbatim
6166 #: ../src/guestfs-actions.pod:1535
6167 #, no-wrap
6168 msgid ""
6169 " int guestfs_get_direct (guestfs_h *g);\n"
6170 "\n"
6171 msgstr ""
6172
6173 # type: textblock
6174 #: ../src/guestfs-actions.pod:1537 ../fish/guestfish-actions.pod:1227
6175 msgid "Return the direct appliance mode flag."
6176 msgstr ""
6177
6178 # type: =head2
6179 #: ../src/guestfs-actions.pod:1541
6180 msgid "guestfs_get_e2label"
6181 msgstr ""
6182
6183 # type: verbatim
6184 #: ../src/guestfs-actions.pod:1543
6185 #, no-wrap
6186 msgid ""
6187 " char *guestfs_get_e2label (guestfs_h *g,\n"
6188 "\t\tconst char *device);\n"
6189 "\n"
6190 msgstr ""
6191
6192 # type: textblock
6193 #: ../src/guestfs-actions.pod:1546 ../fish/guestfish-actions.pod:1233
6194 msgid "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
6195 msgstr ""
6196
6197 # type: textblock
6198 #: ../src/guestfs-actions.pod:1552 ../fish/guestfish-actions.pod:1236
6199 msgid ""
6200 "This function is deprecated.  In new code, use the C<vfs_label> call "
6201 "instead."
6202 msgstr ""
6203
6204 # type: =head2
6205 #: ../src/guestfs-actions.pod:1559
6206 msgid "guestfs_get_e2uuid"
6207 msgstr ""
6208
6209 # type: verbatim
6210 #: ../src/guestfs-actions.pod:1561
6211 #, no-wrap
6212 msgid ""
6213 " char *guestfs_get_e2uuid (guestfs_h *g,\n"
6214 "\t\tconst char *device);\n"
6215 "\n"
6216 msgstr ""
6217
6218 # type: textblock
6219 #: ../src/guestfs-actions.pod:1564 ../fish/guestfish-actions.pod:1247
6220 msgid "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
6221 msgstr ""
6222
6223 # type: textblock
6224 #: ../src/guestfs-actions.pod:1570 ../fish/guestfish-actions.pod:1250
6225 msgid "This function is deprecated.  In new code, use the C<vfs_uuid> call instead."
6226 msgstr ""
6227
6228 # type: =head2
6229 #: ../src/guestfs-actions.pod:1577
6230 msgid "guestfs_get_memsize"
6231 msgstr ""
6232
6233 # type: verbatim
6234 #: ../src/guestfs-actions.pod:1579
6235 #, no-wrap
6236 msgid ""
6237 " int guestfs_get_memsize (guestfs_h *g);\n"
6238 "\n"
6239 msgstr ""
6240
6241 # type: textblock
6242 #: ../src/guestfs-actions.pod:1581 ../fish/guestfish-actions.pod:1261
6243 msgid "This gets the memory size in megabytes allocated to the qemu subprocess."
6244 msgstr ""
6245
6246 # type: textblock
6247 #: ../src/guestfs-actions.pod:1584
6248 msgid ""
6249 "If C<guestfs_set_memsize> was not called on this handle, and if "
6250 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
6251 "value for memsize."
6252 msgstr ""
6253
6254 # type: textblock
6255 #: ../src/guestfs-actions.pod:1588 ../src/guestfs-actions.pod:1651 ../src/guestfs-actions.pod:4297 ../src/guestfs-actions.pod:4389 ../fish/guestfish-actions.pod:1268 ../fish/guestfish-actions.pod:1317 ../fish/guestfish-actions.pod:3318 ../fish/guestfish-actions.pod:3395
6256 msgid "For more information on the architecture of libguestfs, see L<guestfs(3)>."
6257 msgstr ""
6258
6259 # type: =head2
6260 #: ../src/guestfs-actions.pod:1593
6261 msgid "guestfs_get_network"
6262 msgstr ""
6263
6264 # type: verbatim
6265 #: ../src/guestfs-actions.pod:1595
6266 #, no-wrap
6267 msgid ""
6268 " int guestfs_get_network (guestfs_h *g);\n"
6269 "\n"
6270 msgstr ""
6271
6272 # type: textblock
6273 #: ../src/guestfs-actions.pod:1597 ../fish/guestfish-actions.pod:1275
6274 msgid "This returns the enable network flag."
6275 msgstr ""
6276
6277 # type: =head2
6278 #: ../src/guestfs-actions.pod:1601
6279 msgid "guestfs_get_path"
6280 msgstr ""
6281
6282 # type: verbatim
6283 #: ../src/guestfs-actions.pod:1603
6284 #, no-wrap
6285 msgid ""
6286 " const char *guestfs_get_path (guestfs_h *g);\n"
6287 "\n"
6288 msgstr ""
6289
6290 # type: textblock
6291 #: ../src/guestfs-actions.pod:1605 ../fish/guestfish-actions.pod:1281
6292 msgid "Return the current search path."
6293 msgstr ""
6294
6295 # type: textblock
6296 #: ../src/guestfs-actions.pod:1607 ../fish/guestfish-actions.pod:1283
6297 msgid ""
6298 "This is always non-NULL.  If it wasn't set already, then this will return "
6299 "the default path."
6300 msgstr ""
6301
6302 # type: textblock
6303 #: ../src/guestfs-actions.pod:1610 ../src/guestfs-actions.pod:1633
6304 msgid ""
6305 "This function returns a string, or NULL on error.  The string is owned by "
6306 "the guest handle and must I<not> be freed."
6307 msgstr ""
6308
6309 # type: =head2
6310 #: ../src/guestfs-actions.pod:1613
6311 msgid "guestfs_get_pid"
6312 msgstr ""
6313
6314 # type: verbatim
6315 #: ../src/guestfs-actions.pod:1615
6316 #, no-wrap
6317 msgid ""
6318 " int guestfs_get_pid (guestfs_h *g);\n"
6319 "\n"
6320 msgstr ""
6321
6322 # type: textblock
6323 #: ../src/guestfs-actions.pod:1617 ../fish/guestfish-actions.pod:1290
6324 msgid ""
6325 "Return the process ID of the qemu subprocess.  If there is no qemu "
6326 "subprocess, then this will return an error."
6327 msgstr ""
6328
6329 # type: textblock
6330 #: ../src/guestfs-actions.pod:1620 ../fish/guestfish-actions.pod:1293
6331 msgid "This is an internal call used for debugging and testing."
6332 msgstr ""
6333
6334 # type: =head2
6335 #: ../src/guestfs-actions.pod:1624
6336 msgid "guestfs_get_qemu"
6337 msgstr ""
6338
6339 # type: verbatim
6340 #: ../src/guestfs-actions.pod:1626
6341 #, no-wrap
6342 msgid ""
6343 " const char *guestfs_get_qemu (guestfs_h *g);\n"
6344 "\n"
6345 msgstr ""
6346
6347 # type: textblock
6348 #: ../src/guestfs-actions.pod:1628 ../fish/guestfish-actions.pod:1299
6349 msgid "Return the current qemu binary."
6350 msgstr ""
6351
6352 # type: textblock
6353 #: ../src/guestfs-actions.pod:1630 ../fish/guestfish-actions.pod:1301
6354 msgid ""
6355 "This is always non-NULL.  If it wasn't set already, then this will return "
6356 "the default qemu binary name."
6357 msgstr ""
6358
6359 # type: =head2
6360 #: ../src/guestfs-actions.pod:1636
6361 msgid "guestfs_get_recovery_proc"
6362 msgstr ""
6363
6364 # type: verbatim
6365 #: ../src/guestfs-actions.pod:1638
6366 #, no-wrap
6367 msgid ""
6368 " int guestfs_get_recovery_proc (guestfs_h *g);\n"
6369 "\n"
6370 msgstr ""
6371
6372 # type: textblock
6373 #: ../src/guestfs-actions.pod:1640 ../fish/guestfish-actions.pod:1308
6374 msgid "Return the recovery process enabled flag."
6375 msgstr ""
6376
6377 # type: =head2
6378 #: ../src/guestfs-actions.pod:1644
6379 msgid "guestfs_get_selinux"
6380 msgstr ""
6381
6382 # type: verbatim
6383 #: ../src/guestfs-actions.pod:1646
6384 #, no-wrap
6385 msgid ""
6386 " int guestfs_get_selinux (guestfs_h *g);\n"
6387 "\n"
6388 msgstr ""
6389
6390 # type: textblock
6391 #: ../src/guestfs-actions.pod:1648
6392 msgid ""
6393 "This returns the current setting of the selinux flag which is passed to the "
6394 "appliance at boot time.  See C<guestfs_set_selinux>."
6395 msgstr ""
6396
6397 # type: =head2
6398 #: ../src/guestfs-actions.pod:1656
6399 msgid "guestfs_get_state"
6400 msgstr ""
6401
6402 # type: verbatim
6403 #: ../src/guestfs-actions.pod:1658
6404 #, no-wrap
6405 msgid ""
6406 " int guestfs_get_state (guestfs_h *g);\n"
6407 "\n"
6408 msgstr ""
6409
6410 # type: textblock
6411 #: ../src/guestfs-actions.pod:1660 ../fish/guestfish-actions.pod:1324
6412 msgid ""
6413 "This returns the current state as an opaque integer.  This is only useful "
6414 "for printing debug and internal error messages."
6415 msgstr ""
6416
6417 # type: textblock
6418 #: ../src/guestfs-actions.pod:1663 ../src/guestfs-actions.pod:2284 ../src/guestfs-actions.pod:2307 ../src/guestfs-actions.pod:2356 ../src/guestfs-actions.pod:2377 ../fish/guestfish-actions.pod:1327 ../fish/guestfish-actions.pod:1821 ../fish/guestfish-actions.pod:1839 ../fish/guestfish-actions.pod:1877 ../fish/guestfish-actions.pod:1893
6419 msgid "For more information on states, see L<guestfs(3)>."
6420 msgstr ""
6421
6422 # type: =head2
6423 #: ../src/guestfs-actions.pod:1667
6424 msgid "guestfs_get_trace"
6425 msgstr ""
6426
6427 # type: verbatim
6428 #: ../src/guestfs-actions.pod:1669
6429 #, no-wrap
6430 msgid ""
6431 " int guestfs_get_trace (guestfs_h *g);\n"
6432 "\n"
6433 msgstr ""
6434
6435 # type: textblock
6436 #: ../src/guestfs-actions.pod:1671 ../fish/guestfish-actions.pod:1333
6437 msgid "Return the command trace flag."
6438 msgstr ""
6439
6440 # type: =head2
6441 #: ../src/guestfs-actions.pod:1675
6442 msgid "guestfs_get_umask"
6443 msgstr ""
6444
6445 # type: verbatim
6446 #: ../src/guestfs-actions.pod:1677
6447 #, no-wrap
6448 msgid ""
6449 " int guestfs_get_umask (guestfs_h *g);\n"
6450 "\n"
6451 msgstr ""
6452
6453 # type: textblock
6454 #: ../src/guestfs-actions.pod:1679
6455 msgid ""
6456 "Return the current umask.  By default the umask is C<022> unless it has been "
6457 "set by calling C<guestfs_umask>."
6458 msgstr ""
6459
6460 # type: =head2
6461 #: ../src/guestfs-actions.pod:1684
6462 msgid "guestfs_get_verbose"
6463 msgstr ""
6464
6465 # type: verbatim
6466 #: ../src/guestfs-actions.pod:1686
6467 #, no-wrap
6468 msgid ""
6469 " int guestfs_get_verbose (guestfs_h *g);\n"
6470 "\n"
6471 msgstr ""
6472
6473 # type: textblock
6474 #: ../src/guestfs-actions.pod:1688 ../fish/guestfish-actions.pod:1346
6475 msgid "This returns the verbose messages flag."
6476 msgstr ""
6477
6478 # type: =head2
6479 #: ../src/guestfs-actions.pod:1692
6480 msgid "guestfs_getcon"
6481 msgstr ""
6482
6483 # type: verbatim
6484 #: ../src/guestfs-actions.pod:1694
6485 #, no-wrap
6486 msgid ""
6487 " char *guestfs_getcon (guestfs_h *g);\n"
6488 "\n"
6489 msgstr ""
6490
6491 # type: textblock
6492 #: ../src/guestfs-actions.pod:1696 ../fish/guestfish-actions.pod:1352
6493 msgid "This gets the SELinux security context of the daemon."
6494 msgstr ""
6495
6496 # type: textblock
6497 #: ../src/guestfs-actions.pod:1698
6498 msgid "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
6499 msgstr ""
6500
6501 # type: =head2
6502 #: ../src/guestfs-actions.pod:1704
6503 msgid "guestfs_getxattrs"
6504 msgstr ""
6505
6506 # type: verbatim
6507 #: ../src/guestfs-actions.pod:1706
6508 #, no-wrap
6509 msgid ""
6510 " struct guestfs_xattr_list *guestfs_getxattrs (guestfs_h *g,\n"
6511 "\t\tconst char *path);\n"
6512 "\n"
6513 msgstr ""
6514
6515 # type: textblock
6516 #: ../src/guestfs-actions.pod:1709 ../fish/guestfish-actions.pod:1361
6517 msgid "This call lists the extended attributes of the file or directory C<path>."
6518 msgstr ""
6519
6520 # type: textblock
6521 #: ../src/guestfs-actions.pod:1712 ../fish/guestfish-actions.pod:1364
6522 msgid ""
6523 "At the system call level, this is a combination of the L<listxattr(2)> and "
6524 "L<getxattr(2)> calls."
6525 msgstr ""
6526
6527 # type: textblock
6528 #: ../src/guestfs-actions.pod:1715
6529 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
6530 msgstr ""
6531
6532 # type: textblock
6533 #: ../src/guestfs-actions.pod:1717 ../src/guestfs-actions.pod:2451 ../src/guestfs-actions.pod:2989
6534 msgid ""
6535 "This function returns a C<struct guestfs_xattr_list *> (see "
6536 "E<lt>guestfs-structs.hE<gt>), or NULL if there was an error.  I<The caller "
6537 "must call C<guestfs_free_xattr_list> after use>."
6538 msgstr ""
6539
6540 # type: =head2
6541 #: ../src/guestfs-actions.pod:1722
6542 msgid "guestfs_glob_expand"
6543 msgstr ""
6544
6545 # type: verbatim
6546 #: ../src/guestfs-actions.pod:1724
6547 #, no-wrap
6548 msgid ""
6549 " char **guestfs_glob_expand (guestfs_h *g,\n"
6550 "\t\tconst char *pattern);\n"
6551 "\n"
6552 msgstr ""
6553
6554 # type: textblock
6555 #: ../src/guestfs-actions.pod:1727 ../fish/guestfish-actions.pod:1373
6556 msgid ""
6557 "This command searches for all the pathnames matching C<pattern> according to "
6558 "the wildcard expansion rules used by the shell."
6559 msgstr ""
6560
6561 # type: textblock
6562 #: ../src/guestfs-actions.pod:1731 ../fish/guestfish-actions.pod:1377
6563 msgid "If no paths match, then this returns an empty list (note: not an error)."
6564 msgstr ""
6565
6566 # type: textblock
6567 #: ../src/guestfs-actions.pod:1734 ../fish/guestfish-actions.pod:1380
6568 msgid ""
6569 "It is just a wrapper around the C L<glob(3)> function with flags "
6570 "C<GLOB_MARK|GLOB_BRACE>.  See that manual page for more details."
6571 msgstr ""
6572
6573 # type: =head2
6574 #: ../src/guestfs-actions.pod:1742
6575 msgid "guestfs_grep"
6576 msgstr ""
6577
6578 # type: verbatim
6579 #: ../src/guestfs-actions.pod:1744
6580 #, no-wrap
6581 msgid ""
6582 " char **guestfs_grep (guestfs_h *g,\n"
6583 "\t\tconst char *regex,\n"
6584 "\t\tconst char *path);\n"
6585 "\n"
6586 msgstr ""
6587
6588 # type: textblock
6589 #: ../src/guestfs-actions.pod:1748 ../fish/guestfish-actions.pod:1388
6590 msgid "This calls the external C<grep> program and returns the matching lines."
6591 msgstr ""
6592
6593 # type: =head2
6594 #: ../src/guestfs-actions.pod:1758
6595 msgid "guestfs_grepi"
6596 msgstr ""
6597
6598 # type: verbatim
6599 #: ../src/guestfs-actions.pod:1760
6600 #, no-wrap
6601 msgid ""
6602 " char **guestfs_grepi (guestfs_h *g,\n"
6603 "\t\tconst char *regex,\n"
6604 "\t\tconst char *path);\n"
6605 "\n"
6606 msgstr ""
6607
6608 # type: textblock
6609 #: ../src/guestfs-actions.pod:1764 ../fish/guestfish-actions.pod:1398
6610 msgid "This calls the external C<grep -i> program and returns the matching lines."
6611 msgstr ""
6612
6613 # type: =head2
6614 #: ../src/guestfs-actions.pod:1774
6615 msgid "guestfs_grub_install"
6616 msgstr ""
6617
6618 # type: verbatim
6619 #: ../src/guestfs-actions.pod:1776
6620 #, no-wrap
6621 msgid ""
6622 " int guestfs_grub_install (guestfs_h *g,\n"
6623 "\t\tconst char *root,\n"
6624 "\t\tconst char *device);\n"
6625 "\n"
6626 msgstr ""
6627
6628 # type: textblock
6629 #: ../src/guestfs-actions.pod:1780 ../fish/guestfish-actions.pod:1408
6630 msgid ""
6631 "This command installs GRUB (the Grand Unified Bootloader) on C<device>, with "
6632 "the root directory being C<root>."
6633 msgstr ""
6634
6635 # type: textblock
6636 #: ../src/guestfs-actions.pod:1783 ../fish/guestfish-actions.pod:1411
6637 msgid ""
6638 "Note: If grub-install reports the error \"No suitable drive was found in the "
6639 "generated device map.\" it may be that you need to create a "
6640 "C</boot/grub/device.map> file first that contains the mapping between grub "
6641 "device names and Linux device names.  It is usually sufficient to create a "
6642 "file containing:"
6643 msgstr ""
6644
6645 # type: verbatim
6646 #: ../src/guestfs-actions.pod:1790 ../fish/guestfish-actions.pod:1418
6647 #, no-wrap
6648 msgid ""
6649 " (hd0) /dev/vda\n"
6650 "\n"
6651 msgstr ""
6652
6653 # type: textblock
6654 #: ../src/guestfs-actions.pod:1792 ../fish/guestfish-actions.pod:1420
6655 msgid "replacing C</dev/vda> with the name of the installation device."
6656 msgstr ""
6657
6658 # type: =head2
6659 #: ../src/guestfs-actions.pod:1796
6660 msgid "guestfs_head"
6661 msgstr ""
6662
6663 # type: verbatim
6664 #: ../src/guestfs-actions.pod:1798
6665 #, no-wrap
6666 msgid ""
6667 " char **guestfs_head (guestfs_h *g,\n"
6668 "\t\tconst char *path);\n"
6669 "\n"
6670 msgstr ""
6671
6672 # type: textblock
6673 #: ../src/guestfs-actions.pod:1801 ../fish/guestfish-actions.pod:1426
6674 msgid ""
6675 "This command returns up to the first 10 lines of a file as a list of "
6676 "strings."
6677 msgstr ""
6678
6679 # type: =head2
6680 #: ../src/guestfs-actions.pod:1811
6681 msgid "guestfs_head_n"
6682 msgstr ""
6683
6684 # type: verbatim
6685 #: ../src/guestfs-actions.pod:1813
6686 #, no-wrap
6687 msgid ""
6688 " char **guestfs_head_n (guestfs_h *g,\n"
6689 "\t\tint nrlines,\n"
6690 "\t\tconst char *path);\n"
6691 "\n"
6692 msgstr ""
6693
6694 # type: textblock
6695 #: ../src/guestfs-actions.pod:1817 ../fish/guestfish-actions.pod:1436
6696 msgid ""
6697 "If the parameter C<nrlines> is a positive number, this returns the first "
6698 "C<nrlines> lines of the file C<path>."
6699 msgstr ""
6700
6701 # type: textblock
6702 #: ../src/guestfs-actions.pod:1820 ../fish/guestfish-actions.pod:1439
6703 msgid ""
6704 "If the parameter C<nrlines> is a negative number, this returns lines from "
6705 "the file C<path>, excluding the last C<nrlines> lines."
6706 msgstr ""
6707
6708 # type: textblock
6709 #: ../src/guestfs-actions.pod:1823 ../src/guestfs-actions.pod:4845 ../fish/guestfish-actions.pod:1442 ../fish/guestfish-actions.pod:3737
6710 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
6711 msgstr ""
6712
6713 # type: =head2
6714 #: ../src/guestfs-actions.pod:1832
6715 msgid "guestfs_hexdump"
6716 msgstr ""
6717
6718 # type: verbatim
6719 #: ../src/guestfs-actions.pod:1834
6720 #, no-wrap
6721 msgid ""
6722 " char *guestfs_hexdump (guestfs_h *g,\n"
6723 "\t\tconst char *path);\n"
6724 "\n"
6725 msgstr ""
6726
6727 # type: textblock
6728 #: ../src/guestfs-actions.pod:1837 ../fish/guestfish-actions.pod:1451
6729 msgid ""
6730 "This runs C<hexdump -C> on the given C<path>.  The result is the "
6731 "human-readable, canonical hex dump of the file."
6732 msgstr ""
6733
6734 # type: =head2
6735 #: ../src/guestfs-actions.pod:1846
6736 msgid "guestfs_initrd_cat"
6737 msgstr ""
6738
6739 # type: verbatim
6740 #: ../src/guestfs-actions.pod:1848
6741 #, no-wrap
6742 msgid ""
6743 " char *guestfs_initrd_cat (guestfs_h *g,\n"
6744 "\t\tconst char *initrdpath,\n"
6745 "\t\tconst char *filename,\n"
6746 "\t\tsize_t *size_r);\n"
6747 "\n"
6748 msgstr ""
6749
6750 # type: textblock
6751 #: ../src/guestfs-actions.pod:1853 ../fish/guestfish-actions.pod:1461
6752 msgid ""
6753 "This command unpacks the file C<filename> from the initrd file called "
6754 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
6755 "character."
6756 msgstr ""
6757
6758 # type: textblock
6759 #: ../src/guestfs-actions.pod:1857 ../fish/guestfish-actions.pod:1465
6760 msgid ""
6761 "For example, in guestfish you could use the following command to examine the "
6762 "boot script (usually called C</init>)  contained in a Linux initrd or "
6763 "initramfs image:"
6764 msgstr ""
6765
6766 # type: verbatim
6767 #: ../src/guestfs-actions.pod:1861 ../fish/guestfish-actions.pod:1469
6768 #, no-wrap
6769 msgid ""
6770 " initrd-cat /boot/initrd-<version>.img init\n"
6771 "\n"
6772 msgstr ""
6773
6774 # type: textblock
6775 #: ../src/guestfs-actions.pod:1863
6776 msgid "See also C<guestfs_initrd_list>."
6777 msgstr ""
6778
6779 # type: textblock
6780 #: ../src/guestfs-actions.pod:1865 ../src/guestfs-actions.pod:3803 ../src/guestfs-actions.pod:3932
6781 msgid ""
6782 "This function returns a buffer, or NULL on error.  The size of the returned "
6783 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
6784 "after use>."
6785 msgstr ""
6786
6787 # type: =head2
6788 #: ../src/guestfs-actions.pod:1872
6789 msgid "guestfs_initrd_list"
6790 msgstr ""
6791
6792 # type: verbatim
6793 #: ../src/guestfs-actions.pod:1874
6794 #, no-wrap
6795 msgid ""
6796 " char **guestfs_initrd_list (guestfs_h *g,\n"
6797 "\t\tconst char *path);\n"
6798 "\n"
6799 msgstr ""
6800
6801 # type: textblock
6802 #: ../src/guestfs-actions.pod:1877 ../fish/guestfish-actions.pod:1480
6803 msgid "This command lists out files contained in an initrd."
6804 msgstr ""
6805
6806 # type: textblock
6807 #: ../src/guestfs-actions.pod:1879 ../fish/guestfish-actions.pod:1482
6808 msgid ""
6809 "The files are listed without any initial C</> character.  The files are "
6810 "listed in the order they appear (not necessarily alphabetical).  Directory "
6811 "names are listed as separate items."
6812 msgstr ""
6813
6814 # type: textblock
6815 #: ../src/guestfs-actions.pod:1883 ../fish/guestfish-actions.pod:1486
6816 msgid ""
6817 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
6818 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
6819 "files)."
6820 msgstr ""
6821
6822 # type: =head2
6823 #: ../src/guestfs-actions.pod:1891
6824 msgid "guestfs_inotify_add_watch"
6825 msgstr ""
6826
6827 # type: verbatim
6828 #: ../src/guestfs-actions.pod:1893
6829 #, no-wrap
6830 msgid ""
6831 " int64_t guestfs_inotify_add_watch (guestfs_h *g,\n"
6832 "\t\tconst char *path,\n"
6833 "\t\tint mask);\n"
6834 "\n"
6835 msgstr ""
6836
6837 # type: textblock
6838 #: ../src/guestfs-actions.pod:1897 ../fish/guestfish-actions.pod:1494
6839 msgid "Watch C<path> for the events listed in C<mask>."
6840 msgstr ""
6841
6842 # type: textblock
6843 #: ../src/guestfs-actions.pod:1899 ../fish/guestfish-actions.pod:1496
6844 msgid ""
6845 "Note that if C<path> is a directory then events within that directory are "
6846 "watched, but this does I<not> happen recursively (in subdirectories)."
6847 msgstr ""
6848
6849 # type: textblock
6850 #: ../src/guestfs-actions.pod:1903 ../fish/guestfish-actions.pod:1500
6851 msgid ""
6852 "Note for non-C or non-Linux callers: the inotify events are defined by the "
6853 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
6854 msgstr ""
6855
6856 # type: =head2
6857 #: ../src/guestfs-actions.pod:1909
6858 msgid "guestfs_inotify_close"
6859 msgstr ""
6860
6861 # type: verbatim
6862 #: ../src/guestfs-actions.pod:1911
6863 #, no-wrap
6864 msgid ""
6865 " int guestfs_inotify_close (guestfs_h *g);\n"
6866 "\n"
6867 msgstr ""
6868
6869 # type: textblock
6870 #: ../src/guestfs-actions.pod:1913 ../fish/guestfish-actions.pod:1508
6871 msgid ""
6872 "This closes the inotify handle which was previously opened by inotify_init.  "
6873 "It removes all watches, throws away any pending events, and deallocates all "
6874 "resources."
6875 msgstr ""
6876
6877 # type: =head2
6878 #: ../src/guestfs-actions.pod:1919
6879 msgid "guestfs_inotify_files"
6880 msgstr ""
6881
6882 # type: verbatim
6883 #: ../src/guestfs-actions.pod:1921
6884 #, no-wrap
6885 msgid ""
6886 " char **guestfs_inotify_files (guestfs_h *g);\n"
6887 "\n"
6888 msgstr ""
6889
6890 # type: textblock
6891 #: ../src/guestfs-actions.pod:1923
6892 msgid ""
6893 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
6894 "returns a list of pathnames of objects that were touched.  The returned "
6895 "pathnames are sorted and deduplicated."
6896 msgstr ""
6897
6898 # type: =head2
6899 #: ../src/guestfs-actions.pod:1931
6900 msgid "guestfs_inotify_init"
6901 msgstr ""
6902
6903 # type: verbatim
6904 #: ../src/guestfs-actions.pod:1933
6905 #, no-wrap
6906 msgid ""
6907 " int guestfs_inotify_init (guestfs_h *g,\n"
6908 "\t\tint maxevents);\n"
6909 "\n"
6910 msgstr ""
6911
6912 # type: textblock
6913 #: ../src/guestfs-actions.pod:1936 ../fish/guestfish-actions.pod:1524
6914 msgid ""
6915 "This command creates a new inotify handle.  The inotify subsystem can be "
6916 "used to notify events which happen to objects in the guest filesystem."
6917 msgstr ""
6918
6919 # type: textblock
6920 #: ../src/guestfs-actions.pod:1940
6921 msgid ""
6922 "C<maxevents> is the maximum number of events which will be queued up between "
6923 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
6924 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
6925 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
6926 "throws away events, but records the fact that it threw them away by setting "
6927 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
6928 "C<guestfs_inotify_read>)."
6929 msgstr ""
6930
6931 # type: textblock
6932 #: ../src/guestfs-actions.pod:1950
6933 msgid ""
6934 "Before any events are generated, you have to add some watches to the "
6935 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
6936 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
6937 msgstr ""
6938
6939 # type: textblock
6940 #: ../src/guestfs-actions.pod:1956
6941 msgid ""
6942 "Queued up events should be read periodically by calling "
6943 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
6944 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
6945 "often enough then you risk the internal queue overflowing."
6946 msgstr ""
6947
6948 # type: textblock
6949 #: ../src/guestfs-actions.pod:1963
6950 msgid ""
6951 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
6952 "This also removes any watches automatically."
6953 msgstr ""
6954
6955 # type: textblock
6956 #: ../src/guestfs-actions.pod:1967 ../fish/guestfish-actions.pod:1555
6957 msgid ""
6958 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
6959 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
6960 "that there is one global inotify handle per libguestfs instance."
6961 msgstr ""
6962
6963 # type: =head2
6964 #: ../src/guestfs-actions.pod:1974
6965 msgid "guestfs_inotify_read"
6966 msgstr ""
6967
6968 # type: verbatim
6969 #: ../src/guestfs-actions.pod:1976
6970 #, no-wrap
6971 msgid ""
6972 " struct guestfs_inotify_event_list *guestfs_inotify_read (guestfs_h *g);\n"
6973 "\n"
6974 msgstr ""
6975
6976 # type: textblock
6977 #: ../src/guestfs-actions.pod:1978 ../fish/guestfish-actions.pod:1564
6978 msgid ""
6979 "Return the complete queue of events that have happened since the previous "
6980 "read call."
6981 msgstr ""
6982
6983 # type: textblock
6984 #: ../src/guestfs-actions.pod:1981 ../fish/guestfish-actions.pod:1567
6985 msgid "If no events have happened, this returns an empty list."
6986 msgstr ""
6987
6988 # type: textblock
6989 #: ../src/guestfs-actions.pod:1983 ../fish/guestfish-actions.pod:1569
6990 msgid ""
6991 "I<Note>: In order to make sure that all events have been read, you must call "
6992 "this function repeatedly until it returns an empty list.  The reason is that "
6993 "the call will read events up to the maximum appliance-to-host message size "
6994 "and leave remaining events in the queue."
6995 msgstr ""
6996
6997 # type: textblock
6998 #: ../src/guestfs-actions.pod:1989
6999 msgid ""
7000 "This function returns a C<struct guestfs_inotify_event_list *> (see "
7001 "E<lt>guestfs-structs.hE<gt>), or NULL if there was an error.  I<The caller "
7002 "must call C<guestfs_free_inotify_event_list> after use>."
7003 msgstr ""
7004
7005 # type: =head2
7006 #: ../src/guestfs-actions.pod:1994
7007 msgid "guestfs_inotify_rm_watch"
7008 msgstr ""
7009
7010 # type: verbatim
7011 #: ../src/guestfs-actions.pod:1996
7012 #, no-wrap
7013 msgid ""
7014 " int guestfs_inotify_rm_watch (guestfs_h *g,\n"
7015 "\t\tint wd);\n"
7016 "\n"
7017 msgstr ""
7018
7019 # type: textblock
7020 #: ../src/guestfs-actions.pod:1999
7021 msgid ""
7022 "Remove a previously defined inotify watch.  See "
7023 "C<guestfs_inotify_add_watch>."
7024 msgstr ""
7025
7026 # type: =head2
7027 #: ../src/guestfs-actions.pod:2004
7028 msgid "guestfs_inspect_get_arch"
7029 msgstr ""
7030
7031 # type: verbatim
7032 #: ../src/guestfs-actions.pod:2006
7033 #, no-wrap
7034 msgid ""
7035 " char *guestfs_inspect_get_arch (guestfs_h *g,\n"
7036 "\t\tconst char *root);\n"
7037 "\n"
7038 msgstr ""
7039
7040 # type: textblock
7041 #: ../src/guestfs-actions.pod:2009 ../src/guestfs-actions.pod:2029 ../src/guestfs-actions.pod:2079 ../src/guestfs-actions.pod:2102 ../src/guestfs-actions.pod:2126 ../src/guestfs-actions.pod:2144 ../src/guestfs-actions.pod:2174 ../src/guestfs-actions.pod:2195
7042 msgid ""
7043 "This function should only be called with a root device string as returned by "
7044 "C<guestfs_inspect_os>."
7045 msgstr ""
7046
7047 # type: textblock
7048 #: ../src/guestfs-actions.pod:2012
7049 msgid ""
7050 "This returns the architecture of the inspected operating system.  The "
7051 "possible return values are listed under C<guestfs_file_architecture>."
7052 msgstr ""
7053
7054 # type: textblock
7055 #: ../src/guestfs-actions.pod:2016 ../fish/guestfish-actions.pod:1593
7056 msgid ""
7057 "If the architecture could not be determined, then the string C<unknown> is "
7058 "returned."
7059 msgstr ""
7060
7061 # type: textblock
7062 #: ../src/guestfs-actions.pod:2019 ../src/guestfs-actions.pod:2069 ../src/guestfs-actions.pod:2117 ../src/guestfs-actions.pod:2185 ../src/guestfs-actions.pod:2220 ../src/guestfs-actions.pod:2257 ../fish/guestfish-actions.pod:1596 ../fish/guestfish-actions.pod:1642 ../fish/guestfish-actions.pod:1681 ../fish/guestfish-actions.pod:1736 ../fish/guestfish-actions.pod:1767 ../fish/guestfish-actions.pod:1801
7063 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
7064 msgstr ""
7065
7066 # type: =head2
7067 #: ../src/guestfs-actions.pod:2024
7068 msgid "guestfs_inspect_get_distro"
7069 msgstr ""
7070
7071 # type: verbatim
7072 #: ../src/guestfs-actions.pod:2026
7073 #, no-wrap
7074 msgid ""
7075 " char *guestfs_inspect_get_distro (guestfs_h *g,\n"
7076 "\t\tconst char *root);\n"
7077 "\n"
7078 msgstr ""
7079
7080 # type: textblock
7081 #: ../src/guestfs-actions.pod:2032 ../fish/guestfish-actions.pod:1605
7082 msgid "This returns the distro (distribution) of the inspected operating system."
7083 msgstr ""
7084
7085 # type: textblock
7086 #: ../src/guestfs-actions.pod:2035 ../fish/guestfish-actions.pod:1608
7087 msgid "Currently defined distros are:"
7088 msgstr ""
7089
7090 # type: =item
7091 #: ../src/guestfs-actions.pod:2039 ../fish/guestfish-actions.pod:1612
7092 msgid "\"debian\""
7093 msgstr ""
7094
7095 # type: textblock
7096 #: ../src/guestfs-actions.pod:2041 ../fish/guestfish-actions.pod:1614
7097 msgid "Debian or a Debian-derived distro such as Ubuntu."
7098 msgstr ""
7099
7100 # type: =item
7101 #: ../src/guestfs-actions.pod:2043 ../fish/guestfish-actions.pod:1616
7102 msgid "\"fedora\""
7103 msgstr ""
7104
7105 # type: textblock
7106 #: ../src/guestfs-actions.pod:2045 ../fish/guestfish-actions.pod:1618
7107 msgid "Fedora."
7108 msgstr ""
7109
7110 # type: =item
7111 #: ../src/guestfs-actions.pod:2047 ../fish/guestfish-actions.pod:1620
7112 msgid "\"redhat-based\""
7113 msgstr ""
7114
7115 # type: textblock
7116 #: ../src/guestfs-actions.pod:2049 ../fish/guestfish-actions.pod:1622
7117 msgid "Some Red Hat-derived distro."
7118 msgstr ""
7119
7120 # type: =item
7121 #: ../src/guestfs-actions.pod:2051 ../fish/guestfish-actions.pod:1624
7122 msgid "\"rhel\""
7123 msgstr ""
7124
7125 # type: textblock
7126 #: ../src/guestfs-actions.pod:2053 ../fish/guestfish-actions.pod:1626
7127 msgid "Red Hat Enterprise Linux and some derivatives."
7128 msgstr ""
7129
7130 # type: =item
7131 #: ../src/guestfs-actions.pod:2055 ../src/guestfs-actions.pod:2207 ../fish/guestfish-actions.pod:1628 ../fish/guestfish-actions.pod:1754
7132 msgid "\"windows\""
7133 msgstr ""
7134
7135 # type: textblock
7136 #: ../src/guestfs-actions.pod:2057 ../fish/guestfish-actions.pod:1630
7137 msgid ""
7138 "Windows does not have distributions.  This string is returned if the OS type "
7139 "is Windows."
7140 msgstr ""
7141
7142 # type: =item
7143 #: ../src/guestfs-actions.pod:2060 ../src/guestfs-actions.pod:2211 ../fish/guestfish-actions.pod:1633 ../fish/guestfish-actions.pod:1758
7144 msgid "\"unknown\""
7145 msgstr ""
7146
7147 # type: textblock
7148 #: ../src/guestfs-actions.pod:2062 ../fish/guestfish-actions.pod:1635
7149 msgid "The distro could not be determined."
7150 msgstr ""
7151
7152 # type: textblock
7153 #: ../src/guestfs-actions.pod:2066 ../src/guestfs-actions.pod:2217 ../fish/guestfish-actions.pod:1639 ../fish/guestfish-actions.pod:1764
7154 msgid ""
7155 "Future versions of libguestfs may return other strings here.  The caller "
7156 "should be prepared to handle any string."
7157 msgstr ""
7158
7159 # type: =head2
7160 #: ../src/guestfs-actions.pod:2074
7161 msgid "guestfs_inspect_get_filesystems"
7162 msgstr ""
7163
7164 # type: verbatim
7165 #: ../src/guestfs-actions.pod:2076
7166 #, no-wrap
7167 msgid ""
7168 " char **guestfs_inspect_get_filesystems (guestfs_h *g,\n"
7169 "\t\tconst char *root);\n"
7170 "\n"
7171 msgstr ""
7172
7173 # type: textblock
7174 #: ../src/guestfs-actions.pod:2082 ../fish/guestfish-actions.pod:1651
7175 msgid ""
7176 "This returns a list of all the filesystems that we think are associated with "
7177 "this operating system.  This includes the root filesystem, other ordinary "
7178 "filesystems, and non-mounted devices like swap partitions."
7179 msgstr ""
7180
7181 # type: textblock
7182 #: ../src/guestfs-actions.pod:2087 ../fish/guestfish-actions.pod:1656
7183 msgid ""
7184 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
7185 "to be shared between operating systems."
7186 msgstr ""
7187
7188 # type: textblock
7189 #: ../src/guestfs-actions.pod:2090
7190 msgid ""
7191 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
7192 "C<guestfs_inspect_get_mountpoints>."
7193 msgstr ""
7194
7195 # type: =head2
7196 #: ../src/guestfs-actions.pod:2097
7197 msgid "guestfs_inspect_get_major_version"
7198 msgstr ""
7199
7200 # type: verbatim
7201 #: ../src/guestfs-actions.pod:2099
7202 #, no-wrap
7203 msgid ""
7204 " int guestfs_inspect_get_major_version (guestfs_h *g,\n"
7205 "\t\tconst char *root);\n"
7206 "\n"
7207 msgstr ""
7208
7209 # type: textblock
7210 #: ../src/guestfs-actions.pod:2105 ../fish/guestfish-actions.pod:1669
7211 msgid "This returns the major version number of the inspected operating system."
7212 msgstr ""
7213
7214 # type: textblock
7215 #: ../src/guestfs-actions.pod:2108 ../fish/guestfish-actions.pod:1672
7216 msgid ""
7217 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
7218 "popular public names used by the operating system.  Notably the operating "
7219 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
7220 "1).  You can find out the real versions corresponding to releases of Windows "
7221 "by consulting Wikipedia or MSDN."
7222 msgstr ""
7223
7224 # type: textblock
7225 #: ../src/guestfs-actions.pod:2115 ../src/guestfs-actions.pod:2132 ../fish/guestfish-actions.pod:1679 ../fish/guestfish-actions.pod:1693
7226 msgid "If the version could not be determined, then C<0> is returned."
7227 msgstr ""
7228
7229 # type: =head2
7230 #: ../src/guestfs-actions.pod:2121
7231 msgid "guestfs_inspect_get_minor_version"
7232 msgstr ""
7233
7234 # type: verbatim
7235 #: ../src/guestfs-actions.pod:2123
7236 #, no-wrap
7237 msgid ""
7238 " int guestfs_inspect_get_minor_version (guestfs_h *g,\n"
7239 "\t\tconst char *root);\n"
7240 "\n"
7241 msgstr ""
7242
7243 # type: textblock
7244 #: ../src/guestfs-actions.pod:2129 ../fish/guestfish-actions.pod:1690
7245 msgid "This returns the minor version number of the inspected operating system."
7246 msgstr ""
7247
7248 # type: textblock
7249 #: ../src/guestfs-actions.pod:2134
7250 msgid ""
7251 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
7252 "C<guestfs_inspect_get_major_version>."
7253 msgstr ""
7254
7255 # type: =head2
7256 #: ../src/guestfs-actions.pod:2139
7257 msgid "guestfs_inspect_get_mountpoints"
7258 msgstr ""
7259
7260 # type: verbatim
7261 #: ../src/guestfs-actions.pod:2141
7262 #, no-wrap
7263 msgid ""
7264 " char **guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
7265 "\t\tconst char *root);\n"
7266 "\n"
7267 msgstr ""
7268
7269 # type: textblock
7270 #: ../src/guestfs-actions.pod:2147 ../fish/guestfish-actions.pod:1705
7271 msgid ""
7272 "This returns a hash of where we think the filesystems associated with this "
7273 "operating system should be mounted.  Callers should note that this is at "
7274 "best an educated guess made by reading configuration files such as "
7275 "C</etc/fstab>."
7276 msgstr ""
7277
7278 # type: textblock
7279 #: ../src/guestfs-actions.pod:2152 ../fish/guestfish-actions.pod:1710
7280 msgid ""
7281 "Each element in the returned hashtable has a key which is the path of the "
7282 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
7283 "mounted there (eg. C</dev/sda1>)."
7284 msgstr ""
7285
7286 # type: textblock
7287 #: ../src/guestfs-actions.pod:2157 ../fish/guestfish-actions.pod:1715
7288 msgid "Non-mounted devices such as swap devices are I<not> returned in this list."
7289 msgstr ""
7290
7291 # type: textblock
7292 #: ../src/guestfs-actions.pod:2160
7293 msgid ""
7294 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
7295 "C<guestfs_inspect_get_filesystems>."
7296 msgstr ""
7297
7298 # type: textblock
7299 #: ../src/guestfs-actions.pod:2163 ../src/guestfs-actions.pod:2503 ../src/guestfs-actions.pod:3425 ../src/guestfs-actions.pod:4962
7300 msgid ""
7301 "This function returns a NULL-terminated array of strings, or NULL if there "
7302 "was an error.  The array of strings will always have length C<2n+1>, where "
7303 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
7304 "caller must free the strings and the array after use>."
7305 msgstr ""
7306
7307 # type: =head2
7308 #: ../src/guestfs-actions.pod:2169
7309 msgid "guestfs_inspect_get_product_name"
7310 msgstr ""
7311
7312 # type: verbatim
7313 #: ../src/guestfs-actions.pod:2171
7314 #, no-wrap
7315 msgid ""
7316 " char *guestfs_inspect_get_product_name (guestfs_h *g,\n"
7317 "\t\tconst char *root);\n"
7318 "\n"
7319 msgstr ""
7320
7321 # type: textblock
7322 #: ../src/guestfs-actions.pod:2177 ../fish/guestfish-actions.pod:1728
7323 msgid ""
7324 "This returns the product name of the inspected operating system.  The "
7325 "product name is generally some freeform string which can be displayed to the "
7326 "user, but should not be parsed by programs."
7327 msgstr ""
7328
7329 # type: textblock
7330 #: ../src/guestfs-actions.pod:2182 ../fish/guestfish-actions.pod:1733
7331 msgid ""
7332 "If the product name could not be determined, then the string C<unknown> is "
7333 "returned."
7334 msgstr ""
7335
7336 # type: =head2
7337 #: ../src/guestfs-actions.pod:2190
7338 msgid "guestfs_inspect_get_type"
7339 msgstr ""
7340
7341 # type: verbatim
7342 #: ../src/guestfs-actions.pod:2192
7343 #, no-wrap
7344 msgid ""
7345 " char *guestfs_inspect_get_type (guestfs_h *g,\n"
7346 "\t\tconst char *root);\n"
7347 "\n"
7348 msgstr ""
7349
7350 # type: textblock
7351 #: ../src/guestfs-actions.pod:2198 ../fish/guestfish-actions.pod:1745
7352 msgid ""
7353 "This returns the type of the inspected operating system.  Currently defined "
7354 "types are:"
7355 msgstr ""
7356
7357 # type: =item
7358 #: ../src/guestfs-actions.pod:2203 ../fish/guestfish-actions.pod:1750
7359 msgid "\"linux\""
7360 msgstr ""
7361
7362 # type: textblock
7363 #: ../src/guestfs-actions.pod:2205 ../fish/guestfish-actions.pod:1752
7364 msgid "Any Linux-based operating system."
7365 msgstr ""
7366
7367 # type: textblock
7368 #: ../src/guestfs-actions.pod:2209 ../fish/guestfish-actions.pod:1756
7369 msgid "Any Microsoft Windows operating system."
7370 msgstr ""
7371
7372 # type: textblock
7373 #: ../src/guestfs-actions.pod:2213 ../fish/guestfish-actions.pod:1760
7374 msgid "The operating system type could not be determined."
7375 msgstr ""
7376
7377 # type: =head2
7378 #: ../src/guestfs-actions.pod:2225
7379 msgid "guestfs_inspect_os"
7380 msgstr ""
7381
7382 # type: verbatim
7383 #: ../src/guestfs-actions.pod:2227
7384 #, no-wrap
7385 msgid ""
7386 " char **guestfs_inspect_os (guestfs_h *g);\n"
7387 "\n"
7388 msgstr ""
7389
7390 # type: textblock
7391 #: ../src/guestfs-actions.pod:2229 ../fish/guestfish-actions.pod:1773
7392 msgid ""
7393 "This function uses other libguestfs functions and certain heuristics to "
7394 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
7395 "for operating systems."
7396 msgstr ""
7397
7398 # type: textblock
7399 #: ../src/guestfs-actions.pod:2233 ../fish/guestfish-actions.pod:1777
7400 msgid "The list returned is empty if no operating systems were found."
7401 msgstr ""
7402
7403 # type: textblock
7404 #: ../src/guestfs-actions.pod:2235 ../fish/guestfish-actions.pod:1779
7405 msgid ""
7406 "If one operating system was found, then this returns a list with a single "
7407 "element, which is the name of the root filesystem of this operating system.  "
7408 "It is also possible for this function to return a list containing more than "
7409 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
7410 "element being the root filesystem of one of the operating systems."
7411 msgstr ""
7412
7413 # type: textblock
7414 #: ../src/guestfs-actions.pod:2242
7415 msgid ""
7416 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
7417 "functions in order to query further information about each operating system, "
7418 "such as the name and version."
7419 msgstr ""
7420
7421 # type: textblock
7422 #: ../src/guestfs-actions.pod:2247
7423 msgid ""
7424 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
7425 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
7426 "the contents.  This should be called with no disks currently mounted.  The "
7427 "function may also use Augeas, so any existing Augeas handle will be closed."
7428 msgstr ""
7429
7430 # type: textblock
7431 #: ../src/guestfs-actions.pod:2253 ../fish/guestfish-actions.pod:1797
7432 msgid ""
7433 "This function cannot decrypt encrypted disks.  The caller must do that first "
7434 "(supplying the necessary keys) if the disk is encrypted."
7435 msgstr ""
7436
7437 # type: textblock
7438 #: ../src/guestfs-actions.pod:2259 ../src/guestfs-actions.pod:2464 ../src/guestfs-actions.pod:2520
7439 msgid "See also C<guestfs_list_filesystems>."
7440 msgstr ""
7441
7442 # type: =head2
7443 #: ../src/guestfs-actions.pod:2265
7444 msgid "guestfs_is_blockdev"
7445 msgstr ""
7446
7447 # type: verbatim
7448 #: ../src/guestfs-actions.pod:2267
7449 #, no-wrap
7450 msgid ""
7451 " int guestfs_is_blockdev (guestfs_h *g,\n"
7452 "\t\tconst char *path);\n"
7453 "\n"
7454 msgstr ""
7455
7456 # type: textblock
7457 #: ../src/guestfs-actions.pod:2270 ../fish/guestfish-actions.pod:1809
7458 msgid ""
7459 "This returns C<true> if and only if there is a block device with the given "
7460 "C<path> name."
7461 msgstr ""
7462
7463 # type: textblock
7464 #: ../src/guestfs-actions.pod:2273 ../src/guestfs-actions.pod:2296 ../src/guestfs-actions.pod:2320 ../src/guestfs-actions.pod:2332 ../src/guestfs-actions.pod:2345 ../src/guestfs-actions.pod:2389 ../src/guestfs-actions.pod:2401
7465 msgid "See also C<guestfs_stat>."
7466 msgstr ""
7467
7468 # type: =head2
7469 #: ../src/guestfs-actions.pod:2277
7470 msgid "guestfs_is_busy"
7471 msgstr ""
7472
7473 # type: verbatim
7474 #: ../src/guestfs-actions.pod:2279
7475 #, no-wrap
7476 msgid ""
7477 " int guestfs_is_busy (guestfs_h *g);\n"
7478 "\n"
7479 msgstr ""
7480
7481 # type: textblock
7482 #: ../src/guestfs-actions.pod:2281 ../fish/guestfish-actions.pod:1818
7483 msgid ""
7484 "This returns true iff this handle is busy processing a command (in the "
7485 "C<BUSY> state)."
7486 msgstr ""
7487
7488 # type: =head2
7489 #: ../src/guestfs-actions.pod:2288
7490 msgid "guestfs_is_chardev"
7491 msgstr ""
7492
7493 # type: verbatim
7494 #: ../src/guestfs-actions.pod:2290
7495 #, no-wrap
7496 msgid ""
7497 " int guestfs_is_chardev (guestfs_h *g,\n"
7498 "\t\tconst char *path);\n"
7499 "\n"
7500 msgstr ""
7501
7502 # type: textblock
7503 #: ../src/guestfs-actions.pod:2293 ../fish/guestfish-actions.pod:1827
7504 msgid ""
7505 "This returns C<true> if and only if there is a character device with the "
7506 "given C<path> name."
7507 msgstr ""
7508
7509 # type: =head2
7510 #: ../src/guestfs-actions.pod:2300
7511 msgid "guestfs_is_config"
7512 msgstr ""
7513
7514 # type: verbatim
7515 #: ../src/guestfs-actions.pod:2302
7516 #, no-wrap
7517 msgid ""
7518 " int guestfs_is_config (guestfs_h *g);\n"
7519 "\n"
7520 msgstr ""
7521
7522 # type: textblock
7523 #: ../src/guestfs-actions.pod:2304 ../fish/guestfish-actions.pod:1836
7524 msgid ""
7525 "This returns true iff this handle is being configured (in the C<CONFIG> "
7526 "state)."
7527 msgstr ""
7528
7529 # type: =head2
7530 #: ../src/guestfs-actions.pod:2311
7531 msgid "guestfs_is_dir"
7532 msgstr ""
7533
7534 # type: verbatim
7535 #: ../src/guestfs-actions.pod:2313
7536 #, no-wrap
7537 msgid ""
7538 " int guestfs_is_dir (guestfs_h *g,\n"
7539 "\t\tconst char *path);\n"
7540 "\n"
7541 msgstr ""
7542
7543 # type: textblock
7544 #: ../src/guestfs-actions.pod:2316 ../fish/guestfish-actions.pod:1845
7545 msgid ""
7546 "This returns C<true> if and only if there is a directory with the given "
7547 "C<path> name.  Note that it returns false for other objects like files."
7548 msgstr ""
7549
7550 # type: =head2
7551 #: ../src/guestfs-actions.pod:2324
7552 msgid "guestfs_is_fifo"
7553 msgstr ""
7554
7555 # type: verbatim
7556 #: ../src/guestfs-actions.pod:2326
7557 #, no-wrap
7558 msgid ""
7559 " int guestfs_is_fifo (guestfs_h *g,\n"
7560 "\t\tconst char *path);\n"
7561 "\n"
7562 msgstr ""
7563
7564 # type: textblock
7565 #: ../src/guestfs-actions.pod:2329 ../fish/guestfish-actions.pod:1855
7566 msgid ""
7567 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
7568 "given C<path> name."
7569 msgstr ""
7570
7571 # type: =head2
7572 #: ../src/guestfs-actions.pod:2336
7573 msgid "guestfs_is_file"
7574 msgstr ""
7575
7576 # type: verbatim
7577 #: ../src/guestfs-actions.pod:2338
7578 #, no-wrap
7579 msgid ""
7580 " int guestfs_is_file (guestfs_h *g,\n"
7581 "\t\tconst char *path);\n"
7582 "\n"
7583 msgstr ""
7584
7585 # type: textblock
7586 #: ../src/guestfs-actions.pod:2341 ../fish/guestfish-actions.pod:1864
7587 msgid ""
7588 "This returns C<true> if and only if there is a regular file with the given "
7589 "C<path> name.  Note that it returns false for other objects like "
7590 "directories."
7591 msgstr ""
7592
7593 # type: =head2
7594 #: ../src/guestfs-actions.pod:2349
7595 msgid "guestfs_is_launching"
7596 msgstr ""
7597
7598 # type: verbatim
7599 #: ../src/guestfs-actions.pod:2351
7600 #, no-wrap
7601 msgid ""
7602 " int guestfs_is_launching (guestfs_h *g);\n"
7603 "\n"
7604 msgstr ""
7605
7606 # type: textblock
7607 #: ../src/guestfs-actions.pod:2353 ../fish/guestfish-actions.pod:1874
7608 msgid ""
7609 "This returns true iff this handle is launching the subprocess (in the "
7610 "C<LAUNCHING> state)."
7611 msgstr ""
7612
7613 # type: =head2
7614 #: ../src/guestfs-actions.pod:2360
7615 msgid "guestfs_is_lv"
7616 msgstr ""
7617
7618 # type: verbatim
7619 #: ../src/guestfs-actions.pod:2362
7620 #, no-wrap
7621 msgid ""
7622 " int guestfs_is_lv (guestfs_h *g,\n"
7623 "\t\tconst char *device);\n"
7624 "\n"
7625 msgstr ""
7626
7627 # type: textblock
7628 #: ../src/guestfs-actions.pod:2365 ../fish/guestfish-actions.pod:1883
7629 msgid ""
7630 "This command tests whether C<device> is a logical volume, and returns true "
7631 "iff this is the case."
7632 msgstr ""
7633
7634 # type: =head2
7635 #: ../src/guestfs-actions.pod:2370
7636 msgid "guestfs_is_ready"
7637 msgstr ""
7638
7639 # type: verbatim
7640 #: ../src/guestfs-actions.pod:2372
7641 #, no-wrap
7642 msgid ""
7643 " int guestfs_is_ready (guestfs_h *g);\n"
7644 "\n"
7645 msgstr ""
7646
7647 # type: textblock
7648 #: ../src/guestfs-actions.pod:2374 ../fish/guestfish-actions.pod:1890
7649 msgid ""
7650 "This returns true iff this handle is ready to accept commands (in the "
7651 "C<READY> state)."
7652 msgstr ""
7653
7654 # type: =head2
7655 #: ../src/guestfs-actions.pod:2381
7656 msgid "guestfs_is_socket"
7657 msgstr ""
7658
7659 # type: verbatim
7660 #: ../src/guestfs-actions.pod:2383
7661 #, no-wrap
7662 msgid ""
7663 " int guestfs_is_socket (guestfs_h *g,\n"
7664 "\t\tconst char *path);\n"
7665 "\n"
7666 msgstr ""
7667
7668 # type: textblock
7669 #: ../src/guestfs-actions.pod:2386 ../fish/guestfish-actions.pod:1899
7670 msgid ""
7671 "This returns C<true> if and only if there is a Unix domain socket with the "
7672 "given C<path> name."
7673 msgstr ""
7674
7675 # type: =head2
7676 #: ../src/guestfs-actions.pod:2393
7677 msgid "guestfs_is_symlink"
7678 msgstr ""
7679
7680 # type: verbatim
7681 #: ../src/guestfs-actions.pod:2395
7682 #, no-wrap
7683 msgid ""
7684 " int guestfs_is_symlink (guestfs_h *g,\n"
7685 "\t\tconst char *path);\n"
7686 "\n"
7687 msgstr ""
7688
7689 # type: textblock
7690 #: ../src/guestfs-actions.pod:2398 ../fish/guestfish-actions.pod:1908
7691 msgid ""
7692 "This returns C<true> if and only if there is a symbolic link with the given "
7693 "C<path> name."
7694 msgstr ""
7695
7696 # type: =head2
7697 #: ../src/guestfs-actions.pod:2405
7698 msgid "guestfs_kill_subprocess"
7699 msgstr ""
7700
7701 # type: verbatim
7702 #: ../src/guestfs-actions.pod:2407
7703 #, no-wrap
7704 msgid ""
7705 " int guestfs_kill_subprocess (guestfs_h *g);\n"
7706 "\n"
7707 msgstr ""
7708
7709 # type: textblock
7710 #: ../src/guestfs-actions.pod:2409 ../fish/guestfish-actions.pod:1917
7711 msgid "This kills the qemu subprocess.  You should never need to call this."
7712 msgstr ""
7713
7714 # type: =head2
7715 #: ../src/guestfs-actions.pod:2413
7716 msgid "guestfs_launch"
7717 msgstr ""
7718
7719 # type: verbatim
7720 #: ../src/guestfs-actions.pod:2415
7721 #, no-wrap
7722 msgid ""
7723 " int guestfs_launch (guestfs_h *g);\n"
7724 "\n"
7725 msgstr ""
7726
7727 # type: textblock
7728 #: ../src/guestfs-actions.pod:2417 ../fish/guestfish-actions.pod:1923
7729 msgid ""
7730 "Internally libguestfs is implemented by running a virtual machine using "
7731 "L<qemu(1)>."
7732 msgstr ""
7733
7734 # type: textblock
7735 #: ../src/guestfs-actions.pod:2420 ../fish/guestfish-actions.pod:1926
7736 msgid ""
7737 "You should call this after configuring the handle (eg. adding drives) but "
7738 "before performing any actions."
7739 msgstr ""
7740
7741 # type: =head2
7742 #: ../src/guestfs-actions.pod:2425
7743 msgid "guestfs_lchown"
7744 msgstr ""
7745
7746 # type: verbatim
7747 #: ../src/guestfs-actions.pod:2427
7748 #, no-wrap
7749 msgid ""
7750 " int guestfs_lchown (guestfs_h *g,\n"
7751 "\t\tint owner,\n"
7752 "\t\tint group,\n"
7753 "\t\tconst char *path);\n"
7754 "\n"
7755 msgstr ""
7756
7757 # type: textblock
7758 #: ../src/guestfs-actions.pod:2432
7759 msgid ""
7760 "Change the file owner to C<owner> and group to C<group>.  This is like "
7761 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
7762 "changed, not the target."
7763 msgstr ""
7764
7765 # type: =head2
7766 #: ../src/guestfs-actions.pod:2442
7767 msgid "guestfs_lgetxattrs"
7768 msgstr ""
7769
7770 # type: verbatim
7771 #: ../src/guestfs-actions.pod:2444
7772 #, no-wrap
7773 msgid ""
7774 " struct guestfs_xattr_list *guestfs_lgetxattrs (guestfs_h *g,\n"
7775 "\t\tconst char *path);\n"
7776 "\n"
7777 msgstr ""
7778
7779 # type: textblock
7780 #: ../src/guestfs-actions.pod:2447
7781 msgid ""
7782 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
7783 "then it returns the extended attributes of the link itself."
7784 msgstr ""
7785
7786 # type: =head2
7787 #: ../src/guestfs-actions.pod:2456
7788 msgid "guestfs_list_devices"
7789 msgstr ""
7790
7791 # type: verbatim
7792 #: ../src/guestfs-actions.pod:2458
7793 #, no-wrap
7794 msgid ""
7795 " char **guestfs_list_devices (guestfs_h *g);\n"
7796 "\n"
7797 msgstr ""
7798
7799 # type: textblock
7800 #: ../src/guestfs-actions.pod:2460 ../fish/guestfish-actions.pod:1953
7801 msgid "List all the block devices."
7802 msgstr ""
7803
7804 # type: textblock
7805 #: ../src/guestfs-actions.pod:2462 ../fish/guestfish-actions.pod:1955
7806 msgid "The full block device names are returned, eg. C</dev/sda>."
7807 msgstr ""
7808
7809 # type: =head2
7810 #: ../src/guestfs-actions.pod:2470
7811 msgid "guestfs_list_filesystems"
7812 msgstr ""
7813
7814 # type: verbatim
7815 #: ../src/guestfs-actions.pod:2472
7816 #, no-wrap
7817 msgid ""
7818 " char **guestfs_list_filesystems (guestfs_h *g);\n"
7819 "\n"
7820 msgstr ""
7821
7822 # type: textblock
7823 #: ../src/guestfs-actions.pod:2474 ../fish/guestfish-actions.pod:1963
7824 msgid ""
7825 "This inspection command looks for filesystems on partitions, block devices "
7826 "and logical volumes, returning a list of devices containing filesystems and "
7827 "their type."
7828 msgstr ""
7829
7830 # type: textblock
7831 #: ../src/guestfs-actions.pod:2478 ../fish/guestfish-actions.pod:1967
7832 msgid ""
7833 "The return value is a hash, where the keys are the devices containing "
7834 "filesystems, and the values are the filesystem types.  For example:"
7835 msgstr ""
7836
7837 # type: verbatim
7838 #: ../src/guestfs-actions.pod:2482 ../fish/guestfish-actions.pod:1971
7839 #, no-wrap
7840 msgid ""
7841 " \"/dev/sda1\" => \"ntfs\"\n"
7842 " \"/dev/sda2\" => \"ext2\"\n"
7843 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
7844 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
7845 "\n"
7846 msgstr ""
7847
7848 # type: textblock
7849 #: ../src/guestfs-actions.pod:2487 ../fish/guestfish-actions.pod:1976
7850 msgid ""
7851 "The value can have the special value \"unknown\", meaning the content of the "
7852 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
7853 msgstr ""
7854
7855 # type: textblock
7856 #: ../src/guestfs-actions.pod:2491
7857 msgid ""
7858 "This command runs other libguestfs commands, which might include "
7859 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
7860 "soon after launch and only when nothing is mounted."
7861 msgstr ""
7862
7863 # type: textblock
7864 #: ../src/guestfs-actions.pod:2495
7865 msgid ""
7866 "Not all of the filesystems returned will be mountable.  In particular, swap "
7867 "partitions are returned in the list.  Also this command does not check that "
7868 "each filesystem found is valid and mountable, and some filesystems might be "
7869 "mountable but require special options.  Filesystems may not all belong to a "
7870 "single logical operating system (use C<guestfs_inspect_os> to look for "
7871 "OSes)."
7872 msgstr ""
7873
7874 # type: =head2
7875 #: ../src/guestfs-actions.pod:2509
7876 msgid "guestfs_list_partitions"
7877 msgstr ""
7878
7879 # type: verbatim
7880 #: ../src/guestfs-actions.pod:2511
7881 #, no-wrap
7882 msgid ""
7883 " char **guestfs_list_partitions (guestfs_h *g);\n"
7884 "\n"
7885 msgstr ""
7886
7887 # type: textblock
7888 #: ../src/guestfs-actions.pod:2513 ../fish/guestfish-actions.pod:1996
7889 msgid "List all the partitions detected on all block devices."
7890 msgstr ""
7891
7892 # type: textblock
7893 #: ../src/guestfs-actions.pod:2515 ../fish/guestfish-actions.pod:1998
7894 msgid "The full partition device names are returned, eg. C</dev/sda1>"
7895 msgstr ""
7896
7897 # type: textblock
7898 #: ../src/guestfs-actions.pod:2517
7899 msgid ""
7900 "This does not return logical volumes.  For that you will need to call "
7901 "C<guestfs_lvs>."
7902 msgstr ""
7903
7904 # type: =head2
7905 #: ../src/guestfs-actions.pod:2526
7906 msgid "guestfs_ll"
7907 msgstr ""
7908
7909 # type: verbatim
7910 #: ../src/guestfs-actions.pod:2528
7911 #, no-wrap
7912 msgid ""
7913 " char *guestfs_ll (guestfs_h *g,\n"
7914 "\t\tconst char *directory);\n"
7915 "\n"
7916 msgstr ""
7917
7918 # type: textblock
7919 #: ../src/guestfs-actions.pod:2531 ../fish/guestfish-actions.pod:2009
7920 msgid ""
7921 "List the files in C<directory> (relative to the root directory, there is no "
7922 "cwd) in the format of 'ls -la'."
7923 msgstr ""
7924
7925 # type: textblock
7926 #: ../src/guestfs-actions.pod:2534 ../fish/guestfish-actions.pod:2012
7927 msgid ""
7928 "This command is mostly useful for interactive sessions.  It is I<not> "
7929 "intended that you try to parse the output string."
7930 msgstr ""
7931
7932 # type: =head2
7933 #: ../src/guestfs-actions.pod:2540
7934 msgid "guestfs_ln"
7935 msgstr ""
7936
7937 # type: verbatim
7938 #: ../src/guestfs-actions.pod:2542
7939 #, no-wrap
7940 msgid ""
7941 " int guestfs_ln (guestfs_h *g,\n"
7942 "\t\tconst char *target,\n"
7943 "\t\tconst char *linkname);\n"
7944 "\n"
7945 msgstr ""
7946
7947 # type: textblock
7948 #: ../src/guestfs-actions.pod:2546 ../fish/guestfish-actions.pod:2019
7949 msgid "This command creates a hard link using the C<ln> command."
7950 msgstr ""
7951
7952 # type: =head2
7953 #: ../src/guestfs-actions.pod:2550
7954 msgid "guestfs_ln_f"
7955 msgstr ""
7956
7957 # type: verbatim
7958 #: ../src/guestfs-actions.pod:2552
7959 #, no-wrap
7960 msgid ""
7961 " int guestfs_ln_f (guestfs_h *g,\n"
7962 "\t\tconst char *target,\n"
7963 "\t\tconst char *linkname);\n"
7964 "\n"
7965 msgstr ""
7966
7967 # type: textblock
7968 #: ../src/guestfs-actions.pod:2556 ../fish/guestfish-actions.pod:2025
7969 msgid ""
7970 "This command creates a hard link using the C<ln -f> command.  The C<-f> "
7971 "option removes the link (C<linkname>) if it exists already."
7972 msgstr ""
7973
7974 # type: =head2
7975 #: ../src/guestfs-actions.pod:2561
7976 msgid "guestfs_ln_s"
7977 msgstr ""
7978
7979 # type: verbatim
7980 #: ../src/guestfs-actions.pod:2563
7981 #, no-wrap
7982 msgid ""
7983 " int guestfs_ln_s (guestfs_h *g,\n"
7984 "\t\tconst char *target,\n"
7985 "\t\tconst char *linkname);\n"
7986 "\n"
7987 msgstr ""
7988
7989 # type: textblock
7990 #: ../src/guestfs-actions.pod:2567 ../fish/guestfish-actions.pod:2032
7991 msgid "This command creates a symbolic link using the C<ln -s> command."
7992 msgstr ""
7993
7994 # type: =head2
7995 #: ../src/guestfs-actions.pod:2571
7996 msgid "guestfs_ln_sf"
7997 msgstr ""
7998
7999 # type: verbatim
8000 #: ../src/guestfs-actions.pod:2573
8001 #, no-wrap
8002 msgid ""
8003 " int guestfs_ln_sf (guestfs_h *g,\n"
8004 "\t\tconst char *target,\n"
8005 "\t\tconst char *linkname);\n"
8006 "\n"
8007 msgstr ""
8008
8009 # type: textblock
8010 #: ../src/guestfs-actions.pod:2577 ../fish/guestfish-actions.pod:2038
8011 msgid ""
8012 "This command creates a symbolic link using the C<ln -sf> command, The C<-f> "
8013 "option removes the link (C<linkname>) if it exists already."
8014 msgstr ""
8015
8016 # type: =head2
8017 #: ../src/guestfs-actions.pod:2582
8018 msgid "guestfs_lremovexattr"
8019 msgstr ""
8020
8021 # type: verbatim
8022 #: ../src/guestfs-actions.pod:2584
8023 #, no-wrap
8024 msgid ""
8025 " int guestfs_lremovexattr (guestfs_h *g,\n"
8026 "\t\tconst char *xattr,\n"
8027 "\t\tconst char *path);\n"
8028 "\n"
8029 msgstr ""
8030
8031 # type: textblock
8032 #: ../src/guestfs-actions.pod:2588
8033 msgid ""
8034 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
8035 "link, then it removes an extended attribute of the link itself."
8036 msgstr ""
8037
8038 # type: =head2
8039 #: ../src/guestfs-actions.pod:2594
8040 msgid "guestfs_ls"
8041 msgstr ""
8042
8043 # type: verbatim
8044 #: ../src/guestfs-actions.pod:2596
8045 #, no-wrap
8046 msgid ""
8047 " char **guestfs_ls (guestfs_h *g,\n"
8048 "\t\tconst char *directory);\n"
8049 "\n"
8050 msgstr ""
8051
8052 # type: textblock
8053 #: ../src/guestfs-actions.pod:2599 ../fish/guestfish-actions.pod:2053
8054 msgid ""
8055 "List the files in C<directory> (relative to the root directory, there is no "
8056 "cwd).  The '.' and '..' entries are not returned, but hidden files are "
8057 "shown."
8058 msgstr ""
8059
8060 # type: textblock
8061 #: ../src/guestfs-actions.pod:2603
8062 msgid ""
8063 "This command is mostly useful for interactive sessions.  Programs should "
8064 "probably use C<guestfs_readdir> instead."
8065 msgstr ""
8066
8067 # type: =head2
8068 #: ../src/guestfs-actions.pod:2610
8069 msgid "guestfs_lsetxattr"
8070 msgstr ""
8071
8072 # type: verbatim
8073 #: ../src/guestfs-actions.pod:2612
8074 #, no-wrap
8075 msgid ""
8076 " int guestfs_lsetxattr (guestfs_h *g,\n"
8077 "\t\tconst char *xattr,\n"
8078 "\t\tconst char *val,\n"
8079 "\t\tint vallen,\n"
8080 "\t\tconst char *path);\n"
8081 "\n"
8082 msgstr ""
8083
8084 # type: textblock
8085 #: ../src/guestfs-actions.pod:2618
8086 msgid ""
8087 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
8088 "then it sets an extended attribute of the link itself."
8089 msgstr ""
8090
8091 # type: =head2
8092 #: ../src/guestfs-actions.pod:2624
8093 msgid "guestfs_lstat"
8094 msgstr ""
8095
8096 # type: verbatim
8097 #: ../src/guestfs-actions.pod:2626
8098 #, no-wrap
8099 msgid ""
8100 " struct guestfs_stat *guestfs_lstat (guestfs_h *g,\n"
8101 "\t\tconst char *path);\n"
8102 "\n"
8103 msgstr ""
8104
8105 # type: textblock
8106 #: ../src/guestfs-actions.pod:2629 ../src/guestfs-actions.pod:4627 ../fish/guestfish-actions.pod:2072 ../fish/guestfish-actions.pod:3572
8107 msgid "Returns file information for the given C<path>."
8108 msgstr ""
8109
8110 # type: textblock
8111 #: ../src/guestfs-actions.pod:2631
8112 msgid ""
8113 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
8114 "link, then the link is stat-ed, not the file it refers to."
8115 msgstr ""
8116
8117 # type: textblock
8118 #: ../src/guestfs-actions.pod:2635 ../fish/guestfish-actions.pod:2078
8119 msgid "This is the same as the C<lstat(2)> system call."
8120 msgstr ""
8121
8122 # type: textblock
8123 #: ../src/guestfs-actions.pod:2637 ../src/guestfs-actions.pod:4631
8124 msgid ""
8125 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
8126 "error.  I<The caller must call C<guestfs_free_stat> after use>."
8127 msgstr ""
8128
8129 # type: =head2
8130 #: ../src/guestfs-actions.pod:2641
8131 msgid "guestfs_lstatlist"
8132 msgstr ""
8133
8134 # type: verbatim
8135 #: ../src/guestfs-actions.pod:2643
8136 #, no-wrap
8137 msgid ""
8138 " struct guestfs_stat_list *guestfs_lstatlist (guestfs_h *g,\n"
8139 "\t\tconst char *path,\n"
8140 "\t\tchar *const *names);\n"
8141 "\n"
8142 msgstr ""
8143
8144 # type: textblock
8145 #: ../src/guestfs-actions.pod:2647
8146 msgid ""
8147 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
8148 "files, where all files are in the directory C<path>.  C<names> is the list "
8149 "of files from this directory."
8150 msgstr ""
8151
8152 # type: textblock
8153 #: ../src/guestfs-actions.pod:2651 ../fish/guestfish-actions.pod:2088
8154 msgid ""
8155 "On return you get a list of stat structs, with a one-to-one correspondence "
8156 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
8157 "then the C<ino> field of that structure is set to C<-1>."
8158 msgstr ""
8159
8160 # type: textblock
8161 #: ../src/guestfs-actions.pod:2656
8162 msgid ""
8163 "This call is intended for programs that want to efficiently list a directory "
8164 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
8165 "for a similarly efficient call for getting extended attributes.  Very long "
8166 "directory listings might cause the protocol message size to be exceeded, "
8167 "causing this call to fail.  The caller must split up such requests into "
8168 "smaller groups of names."
8169 msgstr ""
8170
8171 # type: textblock
8172 #: ../src/guestfs-actions.pod:2664
8173 msgid ""
8174 "This function returns a C<struct guestfs_stat_list *> (see "
8175 "E<lt>guestfs-structs.hE<gt>), or NULL if there was an error.  I<The caller "
8176 "must call C<guestfs_free_stat_list> after use>."
8177 msgstr ""
8178
8179 # type: =head2
8180 #: ../src/guestfs-actions.pod:2669
8181 msgid "guestfs_luks_add_key"
8182 msgstr ""
8183
8184 # type: verbatim
8185 #: ../src/guestfs-actions.pod:2671
8186 #, no-wrap
8187 msgid ""
8188 " int guestfs_luks_add_key (guestfs_h *g,\n"
8189 "\t\tconst char *device,\n"
8190 "\t\tconst char *key,\n"
8191 "\t\tconst char *newkey,\n"
8192 "\t\tint keyslot);\n"
8193 "\n"
8194 msgstr ""
8195
8196 # type: textblock
8197 #: ../src/guestfs-actions.pod:2677 ../fish/guestfish-actions.pod:2105
8198 msgid ""
8199 "This command adds a new key on LUKS device C<device>.  C<key> is any "
8200 "existing key, and is used to access the device.  C<newkey> is the new key to "
8201 "add.  C<keyslot> is the key slot that will be replaced."
8202 msgstr ""
8203
8204 # type: textblock
8205 #: ../src/guestfs-actions.pod:2682
8206 msgid ""
8207 "Note that if C<keyslot> already contains a key, then this command will "
8208 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
8209 msgstr ""
8210
8211 # type: textblock
8212 #: ../src/guestfs-actions.pod:2688 ../src/guestfs-actions.pod:2722 ../src/guestfs-actions.pod:2742 ../src/guestfs-actions.pod:2759 ../src/guestfs-actions.pod:2788 ../src/guestfs-actions.pod:2804
8213 msgid ""
8214 "This function takes a key or passphrase parameter which could contain "
8215 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
8216 "information."
8217 msgstr ""
8218
8219 # type: =head2
8220 #: ../src/guestfs-actions.pod:2692
8221 msgid "guestfs_luks_close"
8222 msgstr ""
8223
8224 # type: verbatim
8225 #: ../src/guestfs-actions.pod:2694
8226 #, no-wrap
8227 msgid ""
8228 " int guestfs_luks_close (guestfs_h *g,\n"
8229 "\t\tconst char *device);\n"
8230 "\n"
8231 msgstr ""
8232
8233 # type: textblock
8234 #: ../src/guestfs-actions.pod:2697
8235 msgid ""
8236 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
8237 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
8238 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
8239 "underlying block device."
8240 msgstr ""
8241
8242 # type: =head2
8243 #: ../src/guestfs-actions.pod:2705
8244 msgid "guestfs_luks_format"
8245 msgstr ""
8246
8247 # type: verbatim
8248 #: ../src/guestfs-actions.pod:2707
8249 #, no-wrap
8250 msgid ""
8251 " int guestfs_luks_format (guestfs_h *g,\n"
8252 "\t\tconst char *device,\n"
8253 "\t\tconst char *key,\n"
8254 "\t\tint keyslot);\n"
8255 "\n"
8256 msgstr ""
8257
8258 # type: textblock
8259 #: ../src/guestfs-actions.pod:2712 ../fish/guestfish-actions.pod:2131
8260 msgid ""
8261 "This command erases existing data on C<device> and formats the device as a "
8262 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
8263 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
8264 msgstr ""
8265
8266 # type: textblock
8267 #: ../src/guestfs-actions.pod:2719 ../src/guestfs-actions.pod:2739 ../src/guestfs-actions.pod:2841 ../src/guestfs-actions.pod:3553 ../src/guestfs-actions.pod:4168 ../src/guestfs-actions.pod:4489 ../src/guestfs-actions.pod:4509 ../src/guestfs-actions.pod:4532 ../src/guestfs-actions.pod:5471 ../fish/guestfish-actions.pod:2139 ../fish/guestfish-actions.pod:2152 ../fish/guestfish-actions.pod:2223 ../fish/guestfish-actions.pod:2738 ../fish/guestfish-actions.pod:3213 ../fish/guestfish-actions.pod:3471 ../fish/guestfish-actions.pod:3487 ../fish/guestfish-actions.pod:3502 ../fish/guestfish-actions.pod:4190
8268 msgid ""
8269 "B<This command is dangerous.  Without careful use you can easily destroy all "
8270 "your data>."
8271 msgstr ""
8272
8273 # type: =head2
8274 #: ../src/guestfs-actions.pod:2726
8275 msgid "guestfs_luks_format_cipher"
8276 msgstr ""
8277
8278 # type: verbatim
8279 #: ../src/guestfs-actions.pod:2728
8280 #, no-wrap
8281 msgid ""
8282 " int guestfs_luks_format_cipher (guestfs_h *g,\n"
8283 "\t\tconst char *device,\n"
8284 "\t\tconst char *key,\n"
8285 "\t\tint keyslot,\n"
8286 "\t\tconst char *cipher);\n"
8287 "\n"
8288 msgstr ""
8289
8290 # type: textblock
8291 #: ../src/guestfs-actions.pod:2734
8292 msgid ""
8293 "This command is the same as C<guestfs_luks_format> but it also allows you to "
8294 "set the C<cipher> used."
8295 msgstr ""
8296
8297 # type: =head2
8298 #: ../src/guestfs-actions.pod:2746
8299 msgid "guestfs_luks_kill_slot"
8300 msgstr ""
8301
8302 # type: verbatim
8303 #: ../src/guestfs-actions.pod:2748
8304 #, no-wrap
8305 msgid ""
8306 " int guestfs_luks_kill_slot (guestfs_h *g,\n"
8307 "\t\tconst char *device,\n"
8308 "\t\tconst char *key,\n"
8309 "\t\tint keyslot);\n"
8310 "\n"
8311 msgstr ""
8312
8313 # type: textblock
8314 #: ../src/guestfs-actions.pod:2753 ../fish/guestfish-actions.pod:2159
8315 msgid ""
8316 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
8317 "device C<device>.  C<key> must be one of the I<other> keys."
8318 msgstr ""
8319
8320 # type: =head2
8321 #: ../src/guestfs-actions.pod:2763
8322 msgid "guestfs_luks_open"
8323 msgstr ""
8324
8325 # type: verbatim
8326 #: ../src/guestfs-actions.pod:2765
8327 #, no-wrap
8328 msgid ""
8329 " int guestfs_luks_open (guestfs_h *g,\n"
8330 "\t\tconst char *device,\n"
8331 "\t\tconst char *key,\n"
8332 "\t\tconst char *mapname);\n"
8333 "\n"
8334 msgstr ""
8335
8336 # type: textblock
8337 #: ../src/guestfs-actions.pod:2770 ../fish/guestfish-actions.pod:2170
8338 msgid ""
8339 "This command opens a block device which has been encrypted according to the "
8340 "Linux Unified Key Setup (LUKS) standard."
8341 msgstr ""
8342
8343 # type: textblock
8344 #: ../src/guestfs-actions.pod:2773 ../fish/guestfish-actions.pod:2173
8345 msgid "C<device> is the encrypted block device or partition."
8346 msgstr ""
8347
8348 # type: textblock
8349 #: ../src/guestfs-actions.pod:2775 ../fish/guestfish-actions.pod:2175
8350 msgid ""
8351 "The caller must supply one of the keys associated with the LUKS block "
8352 "device, in the C<key> parameter."
8353 msgstr ""
8354
8355 # type: textblock
8356 #: ../src/guestfs-actions.pod:2778 ../fish/guestfish-actions.pod:2178
8357 msgid ""
8358 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
8359 "writes to this block device are decrypted from and encrypted to the "
8360 "underlying C<device> respectively."
8361 msgstr ""
8362
8363 # type: textblock
8364 #: ../src/guestfs-actions.pod:2782
8365 msgid ""
8366 "If this block device contains LVM volume groups, then calling "
8367 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
8368 "visible."
8369 msgstr ""
8370
8371 # type: =head2
8372 #: ../src/guestfs-actions.pod:2792
8373 msgid "guestfs_luks_open_ro"
8374 msgstr ""
8375
8376 # type: verbatim
8377 #: ../src/guestfs-actions.pod:2794
8378 #, no-wrap
8379 msgid ""
8380 " int guestfs_luks_open_ro (guestfs_h *g,\n"
8381 "\t\tconst char *device,\n"
8382 "\t\tconst char *key,\n"
8383 "\t\tconst char *mapname);\n"
8384 "\n"
8385 msgstr ""
8386
8387 # type: textblock
8388 #: ../src/guestfs-actions.pod:2799
8389 msgid ""
8390 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
8391 "created."
8392 msgstr ""
8393
8394 # type: =head2
8395 #: ../src/guestfs-actions.pod:2808
8396 msgid "guestfs_lvcreate"
8397 msgstr ""
8398
8399 # type: verbatim
8400 #: ../src/guestfs-actions.pod:2810
8401 #, no-wrap
8402 msgid ""
8403 " int guestfs_lvcreate (guestfs_h *g,\n"
8404 "\t\tconst char *logvol,\n"
8405 "\t\tconst char *volgroup,\n"
8406 "\t\tint mbytes);\n"
8407 "\n"
8408 msgstr ""
8409
8410 # type: textblock
8411 #: ../src/guestfs-actions.pod:2815 ../fish/guestfish-actions.pod:2203
8412 msgid ""
8413 "This creates an LVM logical volume called C<logvol> on the volume group "
8414 "C<volgroup>, with C<size> megabytes."
8415 msgstr ""
8416
8417 # type: =head2
8418 #: ../src/guestfs-actions.pod:2820
8419 msgid "guestfs_lvm_clear_filter"
8420 msgstr ""
8421
8422 # type: verbatim
8423 #: ../src/guestfs-actions.pod:2822
8424 #, no-wrap
8425 msgid ""
8426 " int guestfs_lvm_clear_filter (guestfs_h *g);\n"
8427 "\n"
8428 msgstr ""
8429
8430 # type: textblock
8431 #: ../src/guestfs-actions.pod:2824
8432 msgid ""
8433 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
8434 "see every block device."
8435 msgstr ""
8436
8437 # type: textblock
8438 #: ../src/guestfs-actions.pod:2827 ../src/guestfs-actions.pod:2863 ../fish/guestfish-actions.pod:2213 ../fish/guestfish-actions.pod:2244
8439 msgid "This command also clears the LVM cache and performs a volume group scan."
8440 msgstr ""
8441
8442 # type: =head2
8443 #: ../src/guestfs-actions.pod:2832
8444 msgid "guestfs_lvm_remove_all"
8445 msgstr ""
8446
8447 # type: verbatim
8448 #: ../src/guestfs-actions.pod:2834
8449 #, no-wrap
8450 msgid ""
8451 " int guestfs_lvm_remove_all (guestfs_h *g);\n"
8452 "\n"
8453 msgstr ""
8454
8455 # type: textblock
8456 #: ../src/guestfs-actions.pod:2836 ../fish/guestfish-actions.pod:2220
8457 msgid ""
8458 "This command removes all LVM logical volumes, volume groups and physical "
8459 "volumes."
8460 msgstr ""
8461
8462 # type: =head2
8463 #: ../src/guestfs-actions.pod:2844
8464 msgid "guestfs_lvm_set_filter"
8465 msgstr ""
8466
8467 # type: verbatim
8468 #: ../src/guestfs-actions.pod:2846
8469 #, no-wrap
8470 msgid ""
8471 " int guestfs_lvm_set_filter (guestfs_h *g,\n"
8472 "\t\tchar *const *devices);\n"
8473 "\n"
8474 msgstr ""
8475
8476 # type: textblock
8477 #: ../src/guestfs-actions.pod:2849 ../fish/guestfish-actions.pod:2230
8478 msgid ""
8479 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
8480 "block devices in the list C<devices>, and will ignore all other attached "
8481 "block devices."
8482 msgstr ""
8483
8484 # type: textblock
8485 #: ../src/guestfs-actions.pod:2853 ../fish/guestfish-actions.pod:2234
8486 msgid ""
8487 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
8488 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
8489 "there are two types of duplication possible: either cloned PVs/VGs which "
8490 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
8491 "same name.  In normal operation you cannot create this situation, but you "
8492 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
8493 "inside the LVM metadata."
8494 msgstr ""
8495
8496 # type: textblock
8497 #: ../src/guestfs-actions.pod:2866 ../fish/guestfish-actions.pod:2247
8498 msgid "You can filter whole block devices or individual partitions."
8499 msgstr ""
8500
8501 # type: textblock
8502 #: ../src/guestfs-actions.pod:2868 ../fish/guestfish-actions.pod:2249
8503 msgid ""
8504 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
8505 "filesystem), even if you are not filtering out that VG."
8506 msgstr ""
8507
8508 # type: =head2
8509 #: ../src/guestfs-actions.pod:2874
8510 msgid "guestfs_lvremove"
8511 msgstr ""
8512
8513 # type: verbatim
8514 #: ../src/guestfs-actions.pod:2876
8515 #, no-wrap
8516 msgid ""
8517 " int guestfs_lvremove (guestfs_h *g,\n"
8518 "\t\tconst char *device);\n"
8519 "\n"
8520 msgstr ""
8521
8522 # type: textblock
8523 #: ../src/guestfs-actions.pod:2879 ../fish/guestfish-actions.pod:2257
8524 msgid ""
8525 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
8526 "LV, such as C</dev/VG/LV>."
8527 msgstr ""
8528
8529 # type: textblock
8530 #: ../src/guestfs-actions.pod:2882 ../fish/guestfish-actions.pod:2260
8531 msgid ""
8532 "You can also remove all LVs in a volume group by specifying the VG name, "
8533 "C</dev/VG>."
8534 msgstr ""
8535
8536 # type: =head2
8537 #: ../src/guestfs-actions.pod:2887
8538 msgid "guestfs_lvrename"
8539 msgstr ""
8540
8541 # type: verbatim
8542 #: ../src/guestfs-actions.pod:2889
8543 #, no-wrap
8544 msgid ""
8545 " int guestfs_lvrename (guestfs_h *g,\n"
8546 "\t\tconst char *logvol,\n"
8547 "\t\tconst char *newlogvol);\n"
8548 "\n"
8549 msgstr ""
8550
8551 # type: textblock
8552 #: ../src/guestfs-actions.pod:2893 ../fish/guestfish-actions.pod:2267
8553 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
8554 msgstr ""
8555
8556 # type: =head2
8557 #: ../src/guestfs-actions.pod:2897
8558 msgid "guestfs_lvresize"
8559 msgstr ""
8560
8561 # type: verbatim
8562 #: ../src/guestfs-actions.pod:2899
8563 #, no-wrap
8564 msgid ""
8565 " int guestfs_lvresize (guestfs_h *g,\n"
8566 "\t\tconst char *device,\n"
8567 "\t\tint mbytes);\n"
8568 "\n"
8569 msgstr ""
8570
8571 # type: textblock
8572 #: ../src/guestfs-actions.pod:2903 ../fish/guestfish-actions.pod:2273
8573 msgid ""
8574 "This resizes (expands or shrinks) an existing LVM logical volume to "
8575 "C<mbytes>.  When reducing, data in the reduced part is lost."
8576 msgstr ""
8577
8578 # type: =head2
8579 #: ../src/guestfs-actions.pod:2909
8580 msgid "guestfs_lvresize_free"
8581 msgstr ""
8582
8583 # type: verbatim
8584 #: ../src/guestfs-actions.pod:2911
8585 #, no-wrap
8586 msgid ""
8587 " int guestfs_lvresize_free (guestfs_h *g,\n"
8588 "\t\tconst char *lv,\n"
8589 "\t\tint percent);\n"
8590 "\n"
8591 msgstr ""
8592
8593 # type: textblock
8594 #: ../src/guestfs-actions.pod:2915 ../fish/guestfish-actions.pod:2281
8595 msgid ""
8596 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
8597 "remaining free space in the volume group.  Commonly you would call this with "
8598 "pc = 100 which expands the logical volume as much as possible, using all "
8599 "remaining free space in the volume group."
8600 msgstr ""
8601
8602 # type: =head2
8603 #: ../src/guestfs-actions.pod:2923
8604 msgid "guestfs_lvs"
8605 msgstr ""
8606
8607 # type: verbatim
8608 #: ../src/guestfs-actions.pod:2925
8609 #, no-wrap
8610 msgid ""
8611 " char **guestfs_lvs (guestfs_h *g);\n"
8612 "\n"
8613 msgstr ""
8614
8615 # type: textblock
8616 #: ../src/guestfs-actions.pod:2927 ../fish/guestfish-actions.pod:2291
8617 msgid ""
8618 "List all the logical volumes detected.  This is the equivalent of the "
8619 "L<lvs(8)> command."
8620 msgstr ""
8621
8622 # type: textblock
8623 #: ../src/guestfs-actions.pod:2930 ../fish/guestfish-actions.pod:2294
8624 msgid ""
8625 "This returns a list of the logical volume device names "
8626 "(eg. C</dev/VolGroup00/LogVol00>)."
8627 msgstr ""
8628
8629 # type: textblock
8630 #: ../src/guestfs-actions.pod:2933
8631 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
8632 msgstr ""
8633
8634 # type: =head2
8635 #: ../src/guestfs-actions.pod:2939
8636 msgid "guestfs_lvs_full"
8637 msgstr ""
8638
8639 # type: verbatim
8640 #: ../src/guestfs-actions.pod:2941
8641 #, no-wrap
8642 msgid ""
8643 " struct guestfs_lvm_lv_list *guestfs_lvs_full (guestfs_h *g);\n"
8644 "\n"
8645 msgstr ""
8646
8647 # type: textblock
8648 #: ../src/guestfs-actions.pod:2943 ../fish/guestfish-actions.pod:2303
8649 msgid ""
8650 "List all the logical volumes detected.  This is the equivalent of the "
8651 "L<lvs(8)> command.  The \"full\" version includes all fields."
8652 msgstr ""
8653
8654 # type: textblock
8655 #: ../src/guestfs-actions.pod:2946
8656 msgid ""
8657 "This function returns a C<struct guestfs_lvm_lv_list *> (see "
8658 "E<lt>guestfs-structs.hE<gt>), or NULL if there was an error.  I<The caller "
8659 "must call C<guestfs_free_lvm_lv_list> after use>."
8660 msgstr ""
8661
8662 # type: =head2
8663 #: ../src/guestfs-actions.pod:2951
8664 msgid "guestfs_lvuuid"
8665 msgstr ""
8666
8667 # type: verbatim
8668 #: ../src/guestfs-actions.pod:2953
8669 #, no-wrap
8670 msgid ""
8671 " char *guestfs_lvuuid (guestfs_h *g,\n"
8672 "\t\tconst char *device);\n"
8673 "\n"
8674 msgstr ""
8675
8676 # type: textblock
8677 #: ../src/guestfs-actions.pod:2956 ../fish/guestfish-actions.pod:2310
8678 msgid "This command returns the UUID of the LVM LV C<device>."
8679 msgstr ""
8680
8681 # type: =head2
8682 #: ../src/guestfs-actions.pod:2961
8683 msgid "guestfs_lxattrlist"
8684 msgstr ""
8685
8686 # type: verbatim
8687 #: ../src/guestfs-actions.pod:2963
8688 #, no-wrap
8689 msgid ""
8690 " struct guestfs_xattr_list *guestfs_lxattrlist (guestfs_h *g,\n"
8691 "\t\tconst char *path,\n"
8692 "\t\tchar *const *names);\n"
8693 "\n"
8694 msgstr ""
8695
8696 # type: textblock
8697 #: ../src/guestfs-actions.pod:2967 ../fish/guestfish-actions.pod:2316
8698 msgid ""
8699 "This call allows you to get the extended attributes of multiple files, where "
8700 "all files are in the directory C<path>.  C<names> is the list of files from "
8701 "this directory."
8702 msgstr ""
8703
8704 # type: textblock
8705 #: ../src/guestfs-actions.pod:2971 ../fish/guestfish-actions.pod:2320
8706 msgid ""
8707 "On return you get a flat list of xattr structs which must be interpreted "
8708 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
8709 "C<attrval> in this struct is zero-length to indicate there was an error "
8710 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
8711 "number (the number of following attributes for this file, which could be "
8712 "C<\"0\">).  Then after the first xattr struct are the zero or more "
8713 "attributes for the first named file.  This repeats for the second and "
8714 "subsequent files."
8715 msgstr ""
8716
8717 # type: textblock
8718 #: ../src/guestfs-actions.pod:2981
8719 msgid ""
8720 "This call is intended for programs that want to efficiently list a directory "
8721 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
8722 "a similarly efficient call for getting standard stats.  Very long directory "
8723 "listings might cause the protocol message size to be exceeded, causing this "
8724 "call to fail.  The caller must split up such requests into smaller groups of "
8725 "names."
8726 msgstr ""
8727
8728 # type: =head2
8729 #: ../src/guestfs-actions.pod:2994
8730 msgid "guestfs_mkdir"
8731 msgstr ""
8732
8733 # type: verbatim
8734 #: ../src/guestfs-actions.pod:2996
8735 #, no-wrap
8736 msgid ""
8737 " int guestfs_mkdir (guestfs_h *g,\n"
8738 "\t\tconst char *path);\n"
8739 "\n"
8740 msgstr ""
8741
8742 # type: textblock
8743 #: ../src/guestfs-actions.pod:2999 ../fish/guestfish-actions.pod:2342
8744 msgid "Create a directory named C<path>."
8745 msgstr ""
8746
8747 # type: =head2
8748 #: ../src/guestfs-actions.pod:3003
8749 msgid "guestfs_mkdir_mode"
8750 msgstr ""
8751
8752 # type: verbatim
8753 #: ../src/guestfs-actions.pod:3005
8754 #, no-wrap
8755 msgid ""
8756 " int guestfs_mkdir_mode (guestfs_h *g,\n"
8757 "\t\tconst char *path,\n"
8758 "\t\tint mode);\n"
8759 "\n"
8760 msgstr ""
8761
8762 # type: textblock
8763 #: ../src/guestfs-actions.pod:3009 ../fish/guestfish-actions.pod:2348
8764 msgid ""
8765 "This command creates a directory, setting the initial permissions of the "
8766 "directory to C<mode>."
8767 msgstr ""
8768
8769 # type: textblock
8770 #: ../src/guestfs-actions.pod:3012 ../fish/guestfish-actions.pod:2351
8771 msgid ""
8772 "For common Linux filesystems, the actual mode which is set will be C<mode & "
8773 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
8774 "other ways."
8775 msgstr ""
8776
8777 # type: textblock
8778 #: ../src/guestfs-actions.pod:3016
8779 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
8780 msgstr ""
8781
8782 # type: =head2
8783 #: ../src/guestfs-actions.pod:3020
8784 msgid "guestfs_mkdir_p"
8785 msgstr ""
8786
8787 # type: verbatim
8788 #: ../src/guestfs-actions.pod:3022
8789 #, no-wrap
8790 msgid ""
8791 " int guestfs_mkdir_p (guestfs_h *g,\n"
8792 "\t\tconst char *path);\n"
8793 "\n"
8794 msgstr ""
8795
8796 # type: textblock
8797 #: ../src/guestfs-actions.pod:3025 ../fish/guestfish-actions.pod:2361
8798 msgid ""
8799 "Create a directory named C<path>, creating any parent directories as "
8800 "necessary.  This is like the C<mkdir -p> shell command."
8801 msgstr ""
8802
8803 # type: =head2
8804 #: ../src/guestfs-actions.pod:3030
8805 msgid "guestfs_mkdtemp"
8806 msgstr ""
8807
8808 # type: verbatim
8809 #: ../src/guestfs-actions.pod:3032
8810 #, no-wrap
8811 msgid ""
8812 " char *guestfs_mkdtemp (guestfs_h *g,\n"
8813 "\t\tconst char *template);\n"
8814 "\n"
8815 msgstr ""
8816
8817 # type: textblock
8818 #: ../src/guestfs-actions.pod:3035 ../fish/guestfish-actions.pod:2368
8819 msgid ""
8820 "This command creates a temporary directory.  The C<template> parameter "
8821 "should be a full pathname for the temporary directory name with the final "
8822 "six characters being \"XXXXXX\"."
8823 msgstr ""
8824
8825 # type: textblock
8826 #: ../src/guestfs-actions.pod:3040 ../fish/guestfish-actions.pod:2373
8827 msgid ""
8828 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
8829 "being suitable for Windows filesystems."
8830 msgstr ""
8831
8832 # type: textblock
8833 #: ../src/guestfs-actions.pod:3043 ../fish/guestfish-actions.pod:2376
8834 msgid "The name of the temporary directory that was created is returned."
8835 msgstr ""
8836
8837 # type: textblock
8838 #: ../src/guestfs-actions.pod:3046 ../fish/guestfish-actions.pod:2379
8839 msgid "The temporary directory is created with mode 0700 and is owned by root."
8840 msgstr ""
8841
8842 # type: textblock
8843 #: ../src/guestfs-actions.pod:3049 ../fish/guestfish-actions.pod:2382
8844 msgid ""
8845 "The caller is responsible for deleting the temporary directory and its "
8846 "contents after use."
8847 msgstr ""
8848
8849 # type: textblock
8850 #: ../src/guestfs-actions.pod:3052 ../fish/guestfish-actions.pod:2385
8851 msgid "See also: L<mkdtemp(3)>"
8852 msgstr ""
8853
8854 # type: =head2
8855 #: ../src/guestfs-actions.pod:3057
8856 msgid "guestfs_mke2fs_J"
8857 msgstr ""
8858
8859 # type: verbatim
8860 #: ../src/guestfs-actions.pod:3059
8861 #, no-wrap
8862 msgid ""
8863 " int guestfs_mke2fs_J (guestfs_h *g,\n"
8864 "\t\tconst char *fstype,\n"
8865 "\t\tint blocksize,\n"
8866 "\t\tconst char *device,\n"
8867 "\t\tconst char *journal);\n"
8868 "\n"
8869 msgstr ""
8870
8871 # type: textblock
8872 #: ../src/guestfs-actions.pod:3065 ../fish/guestfish-actions.pod:2391
8873 msgid ""
8874 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
8875 "C<journal>.  It is equivalent to the command:"
8876 msgstr ""
8877
8878 # type: verbatim
8879 #: ../src/guestfs-actions.pod:3069 ../fish/guestfish-actions.pod:2395
8880 #, no-wrap
8881 msgid ""
8882 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
8883 "\n"
8884 msgstr ""
8885
8886 # type: textblock
8887 #: ../src/guestfs-actions.pod:3071
8888 msgid "See also C<guestfs_mke2journal>."
8889 msgstr ""
8890
8891 # type: =head2
8892 #: ../src/guestfs-actions.pod:3075
8893 msgid "guestfs_mke2fs_JL"
8894 msgstr ""
8895
8896 # type: verbatim
8897 #: ../src/guestfs-actions.pod:3077
8898 #, no-wrap
8899 msgid ""
8900 " int guestfs_mke2fs_JL (guestfs_h *g,\n"
8901 "\t\tconst char *fstype,\n"
8902 "\t\tint blocksize,\n"
8903 "\t\tconst char *device,\n"
8904 "\t\tconst char *label);\n"
8905 "\n"
8906 msgstr ""
8907
8908 # type: textblock
8909 #: ../src/guestfs-actions.pod:3083 ../fish/guestfish-actions.pod:2403
8910 msgid ""
8911 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
8912 "the journal labeled C<label>."
8913 msgstr ""
8914
8915 # type: textblock
8916 #: ../src/guestfs-actions.pod:3086
8917 msgid "See also C<guestfs_mke2journal_L>."
8918 msgstr ""
8919
8920 # type: =head2
8921 #: ../src/guestfs-actions.pod:3090
8922 msgid "guestfs_mke2fs_JU"
8923 msgstr ""
8924
8925 # type: verbatim
8926 #: ../src/guestfs-actions.pod:3092
8927 #, no-wrap
8928 msgid ""
8929 " int guestfs_mke2fs_JU (guestfs_h *g,\n"
8930 "\t\tconst char *fstype,\n"
8931 "\t\tint blocksize,\n"
8932 "\t\tconst char *device,\n"
8933 "\t\tconst char *uuid);\n"
8934 "\n"
8935 msgstr ""
8936
8937 # type: textblock
8938 #: ../src/guestfs-actions.pod:3098 ../fish/guestfish-actions.pod:2412
8939 msgid ""
8940 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
8941 "the journal with UUID C<uuid>."
8942 msgstr ""
8943
8944 # type: textblock
8945 #: ../src/guestfs-actions.pod:3101
8946 msgid "See also C<guestfs_mke2journal_U>."
8947 msgstr ""
8948
8949 # type: =head2
8950 #: ../src/guestfs-actions.pod:3105
8951 msgid "guestfs_mke2journal"
8952 msgstr ""
8953
8954 # type: verbatim
8955 #: ../src/guestfs-actions.pod:3107
8956 #, no-wrap
8957 msgid ""
8958 " int guestfs_mke2journal (guestfs_h *g,\n"
8959 "\t\tint blocksize,\n"
8960 "\t\tconst char *device);\n"
8961 "\n"
8962 msgstr ""
8963
8964 # type: textblock
8965 #: ../src/guestfs-actions.pod:3111 ../fish/guestfish-actions.pod:2421
8966 msgid ""
8967 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
8968 "command:"
8969 msgstr ""
8970
8971 # type: verbatim
8972 #: ../src/guestfs-actions.pod:3114 ../fish/guestfish-actions.pod:2424
8973 #, no-wrap
8974 msgid ""
8975 " mke2fs -O journal_dev -b blocksize device\n"
8976 "\n"
8977 msgstr ""
8978
8979 # type: =head2
8980 #: ../src/guestfs-actions.pod:3118
8981 msgid "guestfs_mke2journal_L"
8982 msgstr ""
8983
8984 # type: verbatim
8985 #: ../src/guestfs-actions.pod:3120
8986 #, no-wrap
8987 msgid ""
8988 " int guestfs_mke2journal_L (guestfs_h *g,\n"
8989 "\t\tint blocksize,\n"
8990 "\t\tconst char *label,\n"
8991 "\t\tconst char *device);\n"
8992 "\n"
8993 msgstr ""
8994
8995 # type: textblock
8996 #: ../src/guestfs-actions.pod:3125 ../fish/guestfish-actions.pod:2430
8997 msgid "This creates an ext2 external journal on C<device> with label C<label>."
8998 msgstr ""
8999
9000 # type: =head2
9001 #: ../src/guestfs-actions.pod:3129
9002 msgid "guestfs_mke2journal_U"
9003 msgstr ""
9004
9005 # type: verbatim
9006 #: ../src/guestfs-actions.pod:3131
9007 #, no-wrap
9008 msgid ""
9009 " int guestfs_mke2journal_U (guestfs_h *g,\n"
9010 "\t\tint blocksize,\n"
9011 "\t\tconst char *uuid,\n"
9012 "\t\tconst char *device);\n"
9013 "\n"
9014 msgstr ""
9015
9016 # type: textblock
9017 #: ../src/guestfs-actions.pod:3136 ../fish/guestfish-actions.pod:2436
9018 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
9019 msgstr ""
9020
9021 # type: =head2
9022 #: ../src/guestfs-actions.pod:3140
9023 msgid "guestfs_mkfifo"
9024 msgstr ""
9025
9026 # type: verbatim
9027 #: ../src/guestfs-actions.pod:3142
9028 #, no-wrap
9029 msgid ""
9030 " int guestfs_mkfifo (guestfs_h *g,\n"
9031 "\t\tint mode,\n"
9032 "\t\tconst char *path);\n"
9033 "\n"
9034 msgstr ""
9035
9036 # type: textblock
9037 #: ../src/guestfs-actions.pod:3146
9038 msgid ""
9039 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
9040 "is just a convenient wrapper around C<guestfs_mknod>."
9041 msgstr ""
9042
9043 # type: =head2
9044 #: ../src/guestfs-actions.pod:3154
9045 msgid "guestfs_mkfs"
9046 msgstr ""
9047
9048 # type: verbatim
9049 #: ../src/guestfs-actions.pod:3156
9050 #, no-wrap
9051 msgid ""
9052 " int guestfs_mkfs (guestfs_h *g,\n"
9053 "\t\tconst char *fstype,\n"
9054 "\t\tconst char *device);\n"
9055 "\n"
9056 msgstr ""
9057
9058 # type: textblock
9059 #: ../src/guestfs-actions.pod:3160 ../fish/guestfish-actions.pod:2452
9060 msgid ""
9061 "This creates a filesystem on C<device> (usually a partition or LVM logical "
9062 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
9063 msgstr ""
9064
9065 # type: =head2
9066 #: ../src/guestfs-actions.pod:3166
9067 msgid "guestfs_mkfs_b"
9068 msgstr ""
9069
9070 # type: verbatim
9071 #: ../src/guestfs-actions.pod:3168
9072 #, no-wrap
9073 msgid ""
9074 " int guestfs_mkfs_b (guestfs_h *g,\n"
9075 "\t\tconst char *fstype,\n"
9076 "\t\tint blocksize,\n"
9077 "\t\tconst char *device);\n"
9078 "\n"
9079 msgstr ""
9080
9081 # type: textblock
9082 #: ../src/guestfs-actions.pod:3173
9083 msgid ""
9084 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
9085 "block size of the resulting filesystem.  Supported block sizes depend on the "
9086 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
9087 msgstr ""
9088
9089 # type: textblock
9090 #: ../src/guestfs-actions.pod:3178 ../fish/guestfish-actions.pod:2465
9091 msgid ""
9092 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
9093 "cluster size."
9094 msgstr ""
9095
9096 # type: =head2
9097 #: ../src/guestfs-actions.pod:3183
9098 msgid "guestfs_mkmountpoint"
9099 msgstr ""
9100
9101 # type: verbatim
9102 #: ../src/guestfs-actions.pod:3185
9103 #, no-wrap
9104 msgid ""
9105 " int guestfs_mkmountpoint (guestfs_h *g,\n"
9106 "\t\tconst char *exemptpath);\n"
9107 "\n"
9108 msgstr ""
9109
9110 # type: textblock
9111 #: ../src/guestfs-actions.pod:3188
9112 msgid ""
9113 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
9114 "that can be used to create extra mountpoints before mounting the first "
9115 "filesystem."
9116 msgstr ""
9117
9118 # type: textblock
9119 #: ../src/guestfs-actions.pod:3192 ../fish/guestfish-actions.pod:2476
9120 msgid ""
9121 "These calls are I<only> necessary in some very limited circumstances, mainly "
9122 "the case where you want to mount a mix of unrelated and/or read-only "
9123 "filesystems together."
9124 msgstr ""
9125
9126 # type: textblock
9127 #: ../src/guestfs-actions.pod:3196 ../fish/guestfish-actions.pod:2480
9128 msgid ""
9129 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
9130 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
9131 "inside that.  You can unpack this as follows in guestfish:"
9132 msgstr ""
9133
9134 # type: verbatim
9135 #: ../src/guestfs-actions.pod:3201 ../fish/guestfish-actions.pod:2485
9136 #, no-wrap
9137 msgid ""
9138 " add-ro Fedora-11-i686-Live.iso\n"
9139 " run\n"
9140 " mkmountpoint /cd\n"
9141 " mkmountpoint /squash\n"
9142 " mkmountpoint /ext3\n"
9143 " mount /dev/sda /cd\n"
9144 " mount-loop /cd/LiveOS/squashfs.img /squash\n"
9145 " mount-loop /squash/LiveOS/ext3fs.img /ext3\n"
9146 "\n"
9147 msgstr ""
9148
9149 # type: textblock
9150 #: ../src/guestfs-actions.pod:3210 ../fish/guestfish-actions.pod:2494
9151 msgid "The inner filesystem is now unpacked under the /ext3 mountpoint."
9152 msgstr ""
9153
9154 # type: =head2
9155 #: ../src/guestfs-actions.pod:3214
9156 msgid "guestfs_mknod"
9157 msgstr ""
9158
9159 # type: verbatim
9160 #: ../src/guestfs-actions.pod:3216
9161 #, no-wrap
9162 msgid ""
9163 " int guestfs_mknod (guestfs_h *g,\n"
9164 "\t\tint mode,\n"
9165 "\t\tint devmajor,\n"
9166 "\t\tint devminor,\n"
9167 "\t\tconst char *path);\n"
9168 "\n"
9169 msgstr ""
9170
9171 # type: textblock
9172 #: ../src/guestfs-actions.pod:3222 ../fish/guestfish-actions.pod:2500
9173 msgid ""
9174 "This call creates block or character special devices, or named pipes "
9175 "(FIFOs)."
9176 msgstr ""
9177
9178 # type: textblock
9179 #: ../src/guestfs-actions.pod:3225 ../fish/guestfish-actions.pod:2503
9180 msgid ""
9181 "The C<mode> parameter should be the mode, using the standard constants.  "
9182 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
9183 "used when creating block and character special devices."
9184 msgstr ""
9185
9186 # type: textblock
9187 #: ../src/guestfs-actions.pod:3230
9188 msgid ""
9189 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
9190 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
9191 "regular file).  These constants are available in the standard Linux header "
9192 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
9193 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
9194 "the appropriate constant for you."
9195 msgstr ""
9196
9197 # type: =head2
9198 #: ../src/guestfs-actions.pod:3242
9199 msgid "guestfs_mknod_b"
9200 msgstr ""
9201
9202 # type: verbatim
9203 #: ../src/guestfs-actions.pod:3244
9204 #, no-wrap
9205 msgid ""
9206 " int guestfs_mknod_b (guestfs_h *g,\n"
9207 "\t\tint mode,\n"
9208 "\t\tint devmajor,\n"
9209 "\t\tint devminor,\n"
9210 "\t\tconst char *path);\n"
9211 "\n"
9212 msgstr ""
9213
9214 # type: textblock
9215 #: ../src/guestfs-actions.pod:3250
9216 msgid ""
9217 "This call creates a block device node called C<path> with mode C<mode> and "
9218 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
9219 "wrapper around C<guestfs_mknod>."
9220 msgstr ""
9221
9222 # type: =head2
9223 #: ../src/guestfs-actions.pod:3258
9224 msgid "guestfs_mknod_c"
9225 msgstr ""
9226
9227 # type: verbatim
9228 #: ../src/guestfs-actions.pod:3260
9229 #, no-wrap
9230 msgid ""
9231 " int guestfs_mknod_c (guestfs_h *g,\n"
9232 "\t\tint mode,\n"
9233 "\t\tint devmajor,\n"
9234 "\t\tint devminor,\n"
9235 "\t\tconst char *path);\n"
9236 "\n"
9237 msgstr ""
9238
9239 # type: textblock
9240 #: ../src/guestfs-actions.pod:3266
9241 msgid ""
9242 "This call creates a char device node called C<path> with mode C<mode> and "
9243 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
9244 "wrapper around C<guestfs_mknod>."
9245 msgstr ""
9246
9247 # type: =head2
9248 #: ../src/guestfs-actions.pod:3274
9249 msgid "guestfs_mkswap"
9250 msgstr ""
9251
9252 # type: verbatim
9253 #: ../src/guestfs-actions.pod:3276
9254 #, no-wrap
9255 msgid ""
9256 " int guestfs_mkswap (guestfs_h *g,\n"
9257 "\t\tconst char *device);\n"
9258 "\n"
9259 msgstr ""
9260
9261 # type: textblock
9262 #: ../src/guestfs-actions.pod:3279 ../fish/guestfish-actions.pod:2542
9263 msgid "Create a swap partition on C<device>."
9264 msgstr ""
9265
9266 # type: =head2
9267 #: ../src/guestfs-actions.pod:3283
9268 msgid "guestfs_mkswap_L"
9269 msgstr ""
9270
9271 # type: verbatim
9272 #: ../src/guestfs-actions.pod:3285
9273 #, no-wrap
9274 msgid ""
9275 " int guestfs_mkswap_L (guestfs_h *g,\n"
9276 "\t\tconst char *label,\n"
9277 "\t\tconst char *device);\n"
9278 "\n"
9279 msgstr ""
9280
9281 # type: textblock
9282 #: ../src/guestfs-actions.pod:3289 ../fish/guestfish-actions.pod:2548
9283 msgid "Create a swap partition on C<device> with label C<label>."
9284 msgstr ""
9285
9286 # type: textblock
9287 #: ../src/guestfs-actions.pod:3291 ../fish/guestfish-actions.pod:2550
9288 msgid ""
9289 "Note that you cannot attach a swap label to a block device "
9290 "(eg. C</dev/sda>), just to a partition.  This appears to be a limitation of "
9291 "the kernel or swap tools."
9292 msgstr ""
9293
9294 # type: =head2
9295 #: ../src/guestfs-actions.pod:3297
9296 msgid "guestfs_mkswap_U"
9297 msgstr ""
9298
9299 # type: verbatim
9300 #: ../src/guestfs-actions.pod:3299
9301 #, no-wrap
9302 msgid ""
9303 " int guestfs_mkswap_U (guestfs_h *g,\n"
9304 "\t\tconst char *uuid,\n"
9305 "\t\tconst char *device);\n"
9306 "\n"
9307 msgstr ""
9308
9309 # type: textblock
9310 #: ../src/guestfs-actions.pod:3303 ../fish/guestfish-actions.pod:2558
9311 msgid "Create a swap partition on C<device> with UUID C<uuid>."
9312 msgstr ""
9313
9314 # type: =head2
9315 #: ../src/guestfs-actions.pod:3307
9316 msgid "guestfs_mkswap_file"
9317 msgstr ""
9318
9319 # type: verbatim
9320 #: ../src/guestfs-actions.pod:3309
9321 #, no-wrap
9322 msgid ""
9323 " int guestfs_mkswap_file (guestfs_h *g,\n"
9324 "\t\tconst char *path);\n"
9325 "\n"
9326 msgstr ""
9327
9328 # type: textblock
9329 #: ../src/guestfs-actions.pod:3312 ../fish/guestfish-actions.pod:2564
9330 msgid "Create a swap file."
9331 msgstr ""
9332
9333 # type: textblock
9334 #: ../src/guestfs-actions.pod:3314
9335 msgid ""
9336 "This command just writes a swap file signature to an existing file.  To "
9337 "create the file itself, use something like C<guestfs_fallocate>."
9338 msgstr ""
9339
9340 # type: =head2
9341 #: ../src/guestfs-actions.pod:3319
9342 msgid "guestfs_modprobe"
9343 msgstr ""
9344
9345 # type: verbatim
9346 #: ../src/guestfs-actions.pod:3321
9347 #, no-wrap
9348 msgid ""
9349 " int guestfs_modprobe (guestfs_h *g,\n"
9350 "\t\tconst char *modulename);\n"
9351 "\n"
9352 msgstr ""
9353
9354 # type: textblock
9355 #: ../src/guestfs-actions.pod:3324 ../fish/guestfish-actions.pod:2573
9356 msgid "This loads a kernel module in the appliance."
9357 msgstr ""
9358
9359 # type: textblock
9360 #: ../src/guestfs-actions.pod:3326 ../fish/guestfish-actions.pod:2575
9361 msgid ""
9362 "The kernel module must have been whitelisted when libguestfs was built (see "
9363 "C<appliance/kmod.whitelist.in> in the source)."
9364 msgstr ""
9365
9366 # type: =head2
9367 #: ../src/guestfs-actions.pod:3331
9368 msgid "guestfs_mount"
9369 msgstr ""
9370
9371 # type: verbatim
9372 #: ../src/guestfs-actions.pod:3333
9373 #, no-wrap
9374 msgid ""
9375 " int guestfs_mount (guestfs_h *g,\n"
9376 "\t\tconst char *device,\n"
9377 "\t\tconst char *mountpoint);\n"
9378 "\n"
9379 msgstr ""
9380
9381 # type: textblock
9382 #: ../src/guestfs-actions.pod:3337 ../fish/guestfish-actions.pod:2582
9383 msgid ""
9384 "Mount a guest disk at a position in the filesystem.  Block devices are named "
9385 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
9386 "those block devices contain partitions, they will have the usual names "
9387 "(eg. C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
9388 msgstr ""
9389
9390 # type: textblock
9391 #: ../src/guestfs-actions.pod:3343 ../fish/guestfish-actions.pod:2588
9392 msgid ""
9393 "The rules are the same as for L<mount(2)>: A filesystem must first be "
9394 "mounted on C</> before others can be mounted.  Other filesystems can only be "
9395 "mounted on directories which already exist."
9396 msgstr ""
9397
9398 # type: textblock
9399 #: ../src/guestfs-actions.pod:3348 ../fish/guestfish-actions.pod:2593
9400 msgid ""
9401 "The mounted filesystem is writable, if we have sufficient permissions on the "
9402 "underlying device."
9403 msgstr ""
9404
9405 # type: textblock
9406 #: ../src/guestfs-actions.pod:3351
9407 msgid ""
9408 "B<Important note:> When you use this call, the filesystem options C<sync> "
9409 "and C<noatime> are set implicitly.  This was originally done because we "
9410 "thought it would improve reliability, but it turns out that I<-o sync> has a "
9411 "very large negative performance impact and negligible effect on "
9412 "reliability.  Therefore we recommend that you avoid using C<guestfs_mount> "
9413 "in any code that needs performance, and instead use C<guestfs_mount_options> "
9414 "(use an empty string for the first parameter if you don't want any options)."
9415 msgstr ""
9416
9417 # type: =head2
9418 #: ../src/guestfs-actions.pod:3363
9419 msgid "guestfs_mount_loop"
9420 msgstr ""
9421
9422 # type: verbatim
9423 #: ../src/guestfs-actions.pod:3365
9424 #, no-wrap
9425 msgid ""
9426 " int guestfs_mount_loop (guestfs_h *g,\n"
9427 "\t\tconst char *file,\n"
9428 "\t\tconst char *mountpoint);\n"
9429 "\n"
9430 msgstr ""
9431
9432 # type: textblock
9433 #: ../src/guestfs-actions.pod:3369 ../fish/guestfish-actions.pod:2610
9434 msgid ""
9435 "This command lets you mount C<file> (a filesystem image in a file) on a "
9436 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
9437 "mountpoint>."
9438 msgstr ""
9439
9440 # type: =head2
9441 #: ../src/guestfs-actions.pod:3375
9442 msgid "guestfs_mount_options"
9443 msgstr ""
9444
9445 # type: verbatim
9446 #: ../src/guestfs-actions.pod:3377
9447 #, no-wrap
9448 msgid ""
9449 " int guestfs_mount_options (guestfs_h *g,\n"
9450 "\t\tconst char *options,\n"
9451 "\t\tconst char *device,\n"
9452 "\t\tconst char *mountpoint);\n"
9453 "\n"
9454 msgstr ""
9455
9456 # type: textblock
9457 #: ../src/guestfs-actions.pod:3382
9458 msgid ""
9459 "This is the same as the C<guestfs_mount> command, but it allows you to set "
9460 "the mount options as for the L<mount(8)> I<-o> flag."
9461 msgstr ""
9462
9463 # type: textblock
9464 #: ../src/guestfs-actions.pod:3386 ../fish/guestfish-actions.pod:2622
9465 msgid ""
9466 "If the C<options> parameter is an empty string, then no options are passed "
9467 "(all options default to whatever the filesystem uses)."
9468 msgstr ""
9469
9470 # type: =head2
9471 #: ../src/guestfs-actions.pod:3392
9472 msgid "guestfs_mount_ro"
9473 msgstr ""
9474
9475 # type: verbatim
9476 #: ../src/guestfs-actions.pod:3394
9477 #, no-wrap
9478 msgid ""
9479 " int guestfs_mount_ro (guestfs_h *g,\n"
9480 "\t\tconst char *device,\n"
9481 "\t\tconst char *mountpoint);\n"
9482 "\n"
9483 msgstr ""
9484
9485 # type: textblock
9486 #: ../src/guestfs-actions.pod:3398
9487 msgid ""
9488 "This is the same as the C<guestfs_mount> command, but it mounts the "
9489 "filesystem with the read-only (I<-o ro>) flag."
9490 msgstr ""
9491
9492 # type: =head2
9493 #: ../src/guestfs-actions.pod:3403
9494 msgid "guestfs_mount_vfs"
9495 msgstr ""
9496
9497 # type: verbatim
9498 #: ../src/guestfs-actions.pod:3405
9499 #, no-wrap
9500 msgid ""
9501 " int guestfs_mount_vfs (guestfs_h *g,\n"
9502 "\t\tconst char *options,\n"
9503 "\t\tconst char *vfstype,\n"
9504 "\t\tconst char *device,\n"
9505 "\t\tconst char *mountpoint);\n"
9506 "\n"
9507 msgstr ""
9508
9509 # type: textblock
9510 #: ../src/guestfs-actions.pod:3411
9511 msgid ""
9512 "This is the same as the C<guestfs_mount> command, but it allows you to set "
9513 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and "
9514 "I<-t> flags."
9515 msgstr ""
9516
9517 # type: =head2
9518 #: ../src/guestfs-actions.pod:3417
9519 msgid "guestfs_mountpoints"
9520 msgstr ""
9521
9522 # type: verbatim
9523 #: ../src/guestfs-actions.pod:3419
9524 #, no-wrap
9525 msgid ""
9526 " char **guestfs_mountpoints (guestfs_h *g);\n"
9527 "\n"
9528 msgstr ""
9529
9530 # type: textblock
9531 #: ../src/guestfs-actions.pod:3421
9532 msgid ""
9533 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
9534 "devices.  This one returns a hash table (map) of device name to directory "
9535 "where the device is mounted."
9536 msgstr ""
9537
9538 # type: =head2
9539 #: ../src/guestfs-actions.pod:3431
9540 msgid "guestfs_mounts"
9541 msgstr ""
9542
9543 # type: verbatim
9544 #: ../src/guestfs-actions.pod:3433
9545 #, no-wrap
9546 msgid ""
9547 " char **guestfs_mounts (guestfs_h *g);\n"
9548 "\n"
9549 msgstr ""
9550
9551 # type: textblock
9552 #: ../src/guestfs-actions.pod:3435 ../fish/guestfish-actions.pod:2653
9553 msgid ""
9554 "This returns the list of currently mounted filesystems.  It returns the list "
9555 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
9556 msgstr ""
9557
9558 # type: textblock
9559 #: ../src/guestfs-actions.pod:3438 ../fish/guestfish-actions.pod:2656
9560 msgid "Some internal mounts are not shown."
9561 msgstr ""
9562
9563 # type: textblock
9564 #: ../src/guestfs-actions.pod:3440
9565 msgid "See also: C<guestfs_mountpoints>"
9566 msgstr ""
9567
9568 # type: =head2
9569 #: ../src/guestfs-actions.pod:3446
9570 msgid "guestfs_mv"
9571 msgstr ""
9572
9573 # type: verbatim
9574 #: ../src/guestfs-actions.pod:3448
9575 #, no-wrap
9576 msgid ""
9577 " int guestfs_mv (guestfs_h *g,\n"
9578 "\t\tconst char *src,\n"
9579 "\t\tconst char *dest);\n"
9580 "\n"
9581 msgstr ""
9582
9583 # type: textblock
9584 #: ../src/guestfs-actions.pod:3452 ../fish/guestfish-actions.pod:2664
9585 msgid ""
9586 "This moves a file from C<src> to C<dest> where C<dest> is either a "
9587 "destination filename or destination directory."
9588 msgstr ""
9589
9590 # type: =head2
9591 #: ../src/guestfs-actions.pod:3457
9592 msgid "guestfs_ntfs_3g_probe"
9593 msgstr ""
9594
9595 # type: verbatim
9596 #: ../src/guestfs-actions.pod:3459
9597 #, no-wrap
9598 msgid ""
9599 " int guestfs_ntfs_3g_probe (guestfs_h *g,\n"
9600 "\t\tint rw,\n"
9601 "\t\tconst char *device);\n"
9602 "\n"
9603 msgstr ""
9604
9605 # type: textblock
9606 #: ../src/guestfs-actions.pod:3463 ../fish/guestfish-actions.pod:2671
9607 msgid ""
9608 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
9609 "C<device> for mountability.  (Not all NTFS volumes can be mounted "
9610 "read-write, and some cannot be mounted at all)."
9611 msgstr ""
9612
9613 # type: textblock
9614 #: ../src/guestfs-actions.pod:3467 ../fish/guestfish-actions.pod:2675
9615 msgid ""
9616 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
9617 "can be mounted read-write.  Set it to false if you want to test if the "
9618 "volume can be mounted read-only."
9619 msgstr ""
9620
9621 # type: textblock
9622 #: ../src/guestfs-actions.pod:3471 ../fish/guestfish-actions.pod:2679
9623 msgid ""
9624 "The return value is an integer which C<0> if the operation would succeed, or "
9625 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
9626 msgstr ""
9627
9628 # type: =head2
9629 #: ../src/guestfs-actions.pod:3477
9630 msgid "guestfs_ntfsresize"
9631 msgstr ""
9632
9633 # type: verbatim
9634 #: ../src/guestfs-actions.pod:3479
9635 #, no-wrap
9636 msgid ""
9637 " int guestfs_ntfsresize (guestfs_h *g,\n"
9638 "\t\tconst char *device);\n"
9639 "\n"
9640 msgstr ""
9641
9642 # type: textblock
9643 #: ../src/guestfs-actions.pod:3482 ../fish/guestfish-actions.pod:2687
9644 msgid ""
9645 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
9646 "size of the underlying device.  See also L<ntfsresize(8)>."
9647 msgstr ""
9648
9649 # type: =head2
9650 #: ../src/guestfs-actions.pod:3488
9651 msgid "guestfs_ntfsresize_size"
9652 msgstr ""
9653
9654 # type: verbatim
9655 #: ../src/guestfs-actions.pod:3490
9656 #, no-wrap
9657 msgid ""
9658 " int guestfs_ntfsresize_size (guestfs_h *g,\n"
9659 "\t\tconst char *device,\n"
9660 "\t\tint64_t size);\n"
9661 "\n"
9662 msgstr ""
9663
9664 # type: textblock
9665 #: ../src/guestfs-actions.pod:3494
9666 msgid ""
9667 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
9668 "to specify the new size (in bytes) explicitly."
9669 msgstr ""
9670
9671 # type: =head2
9672 #: ../src/guestfs-actions.pod:3499
9673 msgid "guestfs_part_add"
9674 msgstr ""
9675
9676 # type: verbatim
9677 #: ../src/guestfs-actions.pod:3501
9678 #, no-wrap
9679 msgid ""
9680 " int guestfs_part_add (guestfs_h *g,\n"
9681 "\t\tconst char *device,\n"
9682 "\t\tconst char *prlogex,\n"
9683 "\t\tint64_t startsect,\n"
9684 "\t\tint64_t endsect);\n"
9685 "\n"
9686 msgstr ""
9687
9688 # type: textblock
9689 #: ../src/guestfs-actions.pod:3507
9690 msgid ""
9691 "This command adds a partition to C<device>.  If there is no partition table "
9692 "on the device, call C<guestfs_part_init> first."
9693 msgstr ""
9694
9695 # type: textblock
9696 #: ../src/guestfs-actions.pod:3510 ../fish/guestfish-actions.pod:2705
9697 msgid ""
9698 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
9699 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
9700 "C<logical>) and C<e> (or C<extended>) partition types."
9701 msgstr ""
9702
9703 # type: textblock
9704 #: ../src/guestfs-actions.pod:3515 ../fish/guestfish-actions.pod:2710
9705 msgid ""
9706 "C<startsect> and C<endsect> are the start and end of the partition in "
9707 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
9708 "from the end of the disk (C<-1> is the last sector)."
9709 msgstr ""
9710
9711 # type: textblock
9712 #: ../src/guestfs-actions.pod:3519
9713 msgid ""
9714 "Creating a partition which covers the whole disk is not so easy.  Use "
9715 "C<guestfs_part_disk> to do that."
9716 msgstr ""
9717
9718 # type: =head2
9719 #: ../src/guestfs-actions.pod:3524
9720 msgid "guestfs_part_del"
9721 msgstr ""
9722
9723 # type: verbatim
9724 #: ../src/guestfs-actions.pod:3526
9725 #, no-wrap
9726 msgid ""
9727 " int guestfs_part_del (guestfs_h *g,\n"
9728 "\t\tconst char *device,\n"
9729 "\t\tint partnum);\n"
9730 "\n"
9731 msgstr ""
9732
9733 # type: textblock
9734 #: ../src/guestfs-actions.pod:3530 ../fish/guestfish-actions.pod:2721
9735 msgid "This command deletes the partition numbered C<partnum> on C<device>."
9736 msgstr ""
9737
9738 # type: textblock
9739 #: ../src/guestfs-actions.pod:3532 ../fish/guestfish-actions.pod:2723
9740 msgid ""
9741 "Note that in the case of MBR partitioning, deleting an extended partition "
9742 "also deletes any logical partitions it contains."
9743 msgstr ""
9744
9745 # type: =head2
9746 #: ../src/guestfs-actions.pod:3538
9747 msgid "guestfs_part_disk"
9748 msgstr ""
9749
9750 # type: verbatim
9751 #: ../src/guestfs-actions.pod:3540
9752 #, no-wrap
9753 msgid ""
9754 " int guestfs_part_disk (guestfs_h *g,\n"
9755 "\t\tconst char *device,\n"
9756 "\t\tconst char *parttype);\n"
9757 "\n"
9758 msgstr ""
9759
9760 # type: textblock
9761 #: ../src/guestfs-actions.pod:3544
9762 msgid ""
9763 "This command is simply a combination of C<guestfs_part_init> followed by "
9764 "C<guestfs_part_add> to create a single primary partition covering the whole "
9765 "disk."
9766 msgstr ""
9767
9768 # type: textblock
9769 #: ../src/guestfs-actions.pod:3548
9770 msgid ""
9771 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
9772 "possible values are described in C<guestfs_part_init>."
9773 msgstr ""
9774
9775 # type: =head2
9776 #: ../src/guestfs-actions.pod:3556
9777 msgid "guestfs_part_get_bootable"
9778 msgstr ""
9779
9780 # type: verbatim
9781 #: ../src/guestfs-actions.pod:3558
9782 #, no-wrap
9783 msgid ""
9784 " int guestfs_part_get_bootable (guestfs_h *g,\n"
9785 "\t\tconst char *device,\n"
9786 "\t\tint partnum);\n"
9787 "\n"
9788 msgstr ""
9789
9790 # type: textblock
9791 #: ../src/guestfs-actions.pod:3562 ../fish/guestfish-actions.pod:2745
9792 msgid ""
9793 "This command returns true if the partition C<partnum> on C<device> has the "
9794 "bootable flag set."
9795 msgstr ""
9796
9797 # type: textblock
9798 #: ../src/guestfs-actions.pod:3565
9799 msgid "See also C<guestfs_part_set_bootable>."
9800 msgstr ""
9801
9802 # type: =head2
9803 #: ../src/guestfs-actions.pod:3569
9804 msgid "guestfs_part_get_mbr_id"
9805 msgstr ""
9806
9807 # type: verbatim
9808 #: ../src/guestfs-actions.pod:3571
9809 #, no-wrap
9810 msgid ""
9811 " int guestfs_part_get_mbr_id (guestfs_h *g,\n"
9812 "\t\tconst char *device,\n"
9813 "\t\tint partnum);\n"
9814 "\n"
9815 msgstr ""
9816
9817 # type: textblock
9818 #: ../src/guestfs-actions.pod:3575 ../fish/guestfish-actions.pod:2754
9819 msgid ""
9820 "Returns the MBR type byte (also known as the ID byte) from the numbered "
9821 "partition C<partnum>."
9822 msgstr ""
9823
9824 # type: textblock
9825 #: ../src/guestfs-actions.pod:3578 ../src/guestfs-actions.pod:3740
9826 msgid ""
9827 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
9828 "undefined results for other partition table types (see "
9829 "C<guestfs_part_get_parttype>)."
9830 msgstr ""
9831
9832 # type: =head2
9833 #: ../src/guestfs-actions.pod:3584
9834 msgid "guestfs_part_get_parttype"
9835 msgstr ""
9836
9837 # type: verbatim
9838 #: ../src/guestfs-actions.pod:3586
9839 #, no-wrap
9840 msgid ""
9841 " char *guestfs_part_get_parttype (guestfs_h *g,\n"
9842 "\t\tconst char *device);\n"
9843 "\n"
9844 msgstr ""
9845
9846 # type: textblock
9847 #: ../src/guestfs-actions.pod:3589 ../fish/guestfish-actions.pod:2765
9848 msgid ""
9849 "This command examines the partition table on C<device> and returns the "
9850 "partition table type (format) being used."
9851 msgstr ""
9852
9853 # type: textblock
9854 #: ../src/guestfs-actions.pod:3592
9855 msgid ""
9856 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
9857 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
9858 "possible, although unusual.  See C<guestfs_part_init> for a full list."
9859 msgstr ""
9860
9861 # type: =head2
9862 #: ../src/guestfs-actions.pod:3600
9863 msgid "guestfs_part_init"
9864 msgstr ""
9865
9866 # type: verbatim
9867 #: ../src/guestfs-actions.pod:3602
9868 #, no-wrap
9869 msgid ""
9870 " int guestfs_part_init (guestfs_h *g,\n"
9871 "\t\tconst char *device,\n"
9872 "\t\tconst char *parttype);\n"
9873 "\n"
9874 msgstr ""
9875
9876 # type: textblock
9877 #: ../src/guestfs-actions.pod:3606 ../fish/guestfish-actions.pod:2777
9878 msgid ""
9879 "This creates an empty partition table on C<device> of one of the partition "
9880 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
9881 "(for large disks)."
9882 msgstr ""
9883
9884 # type: textblock
9885 #: ../src/guestfs-actions.pod:3610
9886 msgid ""
9887 "Initially there are no partitions.  Following this, you should call "
9888 "C<guestfs_part_add> for each partition required."
9889 msgstr ""
9890
9891 # type: textblock
9892 #: ../src/guestfs-actions.pod:3613 ../fish/guestfish-actions.pod:2784
9893 msgid "Possible values for C<parttype> are:"
9894 msgstr ""
9895
9896 # type: =item
9897 #: ../src/guestfs-actions.pod:3617 ../fish/guestfish-actions.pod:2788
9898 msgid "B<efi> | B<gpt>"
9899 msgstr ""
9900
9901 # type: textblock
9902 #: ../src/guestfs-actions.pod:3619 ../fish/guestfish-actions.pod:2790
9903 msgid "Intel EFI / GPT partition table."
9904 msgstr ""
9905
9906 # type: textblock
9907 #: ../src/guestfs-actions.pod:3621 ../fish/guestfish-actions.pod:2792
9908 msgid ""
9909 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
9910 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
9911 "the C<mbr> format."
9912 msgstr ""
9913
9914 # type: =item
9915 #: ../src/guestfs-actions.pod:3625 ../fish/guestfish-actions.pod:2796
9916 msgid "B<mbr> | B<msdos>"
9917 msgstr ""
9918
9919 # type: textblock
9920 #: ../src/guestfs-actions.pod:3627 ../fish/guestfish-actions.pod:2798
9921 msgid ""
9922 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
9923 "Windows.  This partition type will B<only> work for device sizes up to 2 "
9924 "TB.  For large disks we recommend using C<gpt>."
9925 msgstr ""
9926
9927 # type: textblock
9928 #: ../src/guestfs-actions.pod:3634 ../fish/guestfish-actions.pod:2805
9929 msgid "Other partition table types that may work but are not supported include:"
9930 msgstr ""
9931
9932 # type: =item
9933 #: ../src/guestfs-actions.pod:3639 ../fish/guestfish-actions.pod:2810
9934 msgid "B<aix>"
9935 msgstr ""
9936
9937 # type: textblock
9938 #: ../src/guestfs-actions.pod:3641 ../fish/guestfish-actions.pod:2812
9939 msgid "AIX disk labels."
9940 msgstr ""
9941
9942 # type: =item
9943 #: ../src/guestfs-actions.pod:3643 ../fish/guestfish-actions.pod:2814
9944 msgid "B<amiga> | B<rdb>"
9945 msgstr ""
9946
9947 # type: textblock
9948 #: ../src/guestfs-actions.pod:3645 ../fish/guestfish-actions.pod:2816
9949 msgid "Amiga \"Rigid Disk Block\" format."
9950 msgstr ""
9951
9952 # type: =item
9953 #: ../src/guestfs-actions.pod:3647 ../fish/guestfish-actions.pod:2818
9954 msgid "B<bsd>"
9955 msgstr ""
9956
9957 # type: textblock
9958 #: ../src/guestfs-actions.pod:3649 ../fish/guestfish-actions.pod:2820
9959 msgid "BSD disk labels."
9960 msgstr ""
9961
9962 # type: =item
9963 #: ../src/guestfs-actions.pod:3651 ../fish/guestfish-actions.pod:2822
9964 msgid "B<dasd>"
9965 msgstr ""
9966
9967 # type: textblock
9968 #: ../src/guestfs-actions.pod:3653 ../fish/guestfish-actions.pod:2824
9969 msgid "DASD, used on IBM mainframes."
9970 msgstr ""
9971
9972 # type: =item
9973 #: ../src/guestfs-actions.pod:3655 ../fish/guestfish-actions.pod:2826
9974 msgid "B<dvh>"
9975 msgstr ""
9976
9977 # type: textblock
9978 #: ../src/guestfs-actions.pod:3657 ../fish/guestfish-actions.pod:2828
9979 msgid "MIPS/SGI volumes."
9980 msgstr ""
9981
9982 # type: =item
9983 #: ../src/guestfs-actions.pod:3659 ../fish/guestfish-actions.pod:2830
9984 msgid "B<mac>"
9985 msgstr ""
9986
9987 # type: textblock
9988 #: ../src/guestfs-actions.pod:3661 ../fish/guestfish-actions.pod:2832
9989 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
9990 msgstr ""
9991
9992 # type: =item
9993 #: ../src/guestfs-actions.pod:3663 ../fish/guestfish-actions.pod:2834
9994 msgid "B<pc98>"
9995 msgstr ""
9996
9997 # type: textblock
9998 #: ../src/guestfs-actions.pod:3665 ../fish/guestfish-actions.pod:2836
9999 msgid "NEC PC-98 format, common in Japan apparently."
10000 msgstr ""
10001
10002 # type: =item
10003 #: ../src/guestfs-actions.pod:3667 ../fish/guestfish-actions.pod:2838
10004 msgid "B<sun>"
10005 msgstr ""
10006
10007 # type: textblock
10008 #: ../src/guestfs-actions.pod:3669 ../fish/guestfish-actions.pod:2840
10009 msgid "Sun disk labels."
10010 msgstr ""
10011
10012 # type: =head2
10013 #: ../src/guestfs-actions.pod:3675
10014 msgid "guestfs_part_list"
10015 msgstr ""
10016
10017 # type: verbatim
10018 #: ../src/guestfs-actions.pod:3677
10019 #, no-wrap
10020 msgid ""
10021 " struct guestfs_partition_list *guestfs_part_list (guestfs_h *g,\n"
10022 "\t\tconst char *device);\n"
10023 "\n"
10024 msgstr ""
10025
10026 # type: textblock
10027 #: ../src/guestfs-actions.pod:3680 ../fish/guestfish-actions.pod:2848
10028 msgid ""
10029 "This command parses the partition table on C<device> and returns the list of "
10030 "partitions found."
10031 msgstr ""
10032
10033 # type: textblock
10034 #: ../src/guestfs-actions.pod:3683 ../fish/guestfish-actions.pod:2851
10035 msgid "The fields in the returned structure are:"
10036 msgstr ""
10037
10038 # type: =item
10039 #: ../src/guestfs-actions.pod:3687 ../fish/guestfish-actions.pod:2855
10040 msgid "B<part_num>"
10041 msgstr ""
10042
10043 # type: textblock
10044 #: ../src/guestfs-actions.pod:3689 ../fish/guestfish-actions.pod:2857
10045 msgid "Partition number, counting from 1."
10046 msgstr ""
10047
10048 # type: =item
10049 #: ../src/guestfs-actions.pod:3691 ../fish/guestfish-actions.pod:2859
10050 msgid "B<part_start>"
10051 msgstr ""
10052
10053 # type: textblock
10054 #: ../src/guestfs-actions.pod:3693
10055 msgid ""
10056 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
10057 "the device's sector size, see C<guestfs_blockdev_getss>."
10058 msgstr ""
10059
10060 # type: =item
10061 #: ../src/guestfs-actions.pod:3696 ../fish/guestfish-actions.pod:2864
10062 msgid "B<part_end>"
10063 msgstr ""
10064
10065 # type: textblock
10066 #: ../src/guestfs-actions.pod:3698 ../fish/guestfish-actions.pod:2866
10067 msgid "End of the partition in bytes."
10068 msgstr ""
10069
10070 # type: =item
10071 #: ../src/guestfs-actions.pod:3700 ../fish/guestfish-actions.pod:2868
10072 msgid "B<part_size>"
10073 msgstr ""
10074
10075 # type: textblock
10076 #: ../src/guestfs-actions.pod:3702 ../fish/guestfish-actions.pod:2870
10077 msgid "Size of the partition in bytes."
10078 msgstr ""
10079
10080 # type: textblock
10081 #: ../src/guestfs-actions.pod:3706
10082 msgid ""
10083 "This function returns a C<struct guestfs_partition_list *> (see "
10084 "E<lt>guestfs-structs.hE<gt>), or NULL if there was an error.  I<The caller "
10085 "must call C<guestfs_free_partition_list> after use>."
10086 msgstr ""
10087
10088 # type: =head2
10089 #: ../src/guestfs-actions.pod:3711
10090 msgid "guestfs_part_set_bootable"
10091 msgstr ""
10092
10093 # type: verbatim
10094 #: ../src/guestfs-actions.pod:3713
10095 #, no-wrap
10096 msgid ""
10097 " int guestfs_part_set_bootable (guestfs_h *g,\n"
10098 "\t\tconst char *device,\n"
10099 "\t\tint partnum,\n"
10100 "\t\tint bootable);\n"
10101 "\n"
10102 msgstr ""
10103
10104 # type: textblock
10105 #: ../src/guestfs-actions.pod:3718 ../fish/guestfish-actions.pod:2878
10106 msgid ""
10107 "This sets the bootable flag on partition numbered C<partnum> on device "
10108 "C<device>.  Note that partitions are numbered from 1."
10109 msgstr ""
10110
10111 # type: textblock
10112 #: ../src/guestfs-actions.pod:3721 ../fish/guestfish-actions.pod:2881
10113 msgid ""
10114 "The bootable flag is used by some operating systems (notably Windows) to "
10115 "determine which partition to boot from.  It is by no means universally "
10116 "recognized."
10117 msgstr ""
10118
10119 # type: =head2
10120 #: ../src/guestfs-actions.pod:3727
10121 msgid "guestfs_part_set_mbr_id"
10122 msgstr ""
10123
10124 # type: verbatim
10125 #: ../src/guestfs-actions.pod:3729
10126 #, no-wrap
10127 msgid ""
10128 " int guestfs_part_set_mbr_id (guestfs_h *g,\n"
10129 "\t\tconst char *device,\n"
10130 "\t\tint partnum,\n"
10131 "\t\tint idbyte);\n"
10132 "\n"
10133 msgstr ""
10134
10135 # type: textblock
10136 #: ../src/guestfs-actions.pod:3734 ../fish/guestfish-actions.pod:2889
10137 msgid ""
10138 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
10139 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
10140 "documentation are in fact hexadecimal numbers, but usually documented "
10141 "without any leading \"0x\" which might be confusing."
10142 msgstr ""
10143
10144 # type: =head2
10145 #: ../src/guestfs-actions.pod:3746
10146 msgid "guestfs_part_set_name"
10147 msgstr ""
10148
10149 # type: verbatim
10150 #: ../src/guestfs-actions.pod:3748
10151 #, no-wrap
10152 msgid ""
10153 " int guestfs_part_set_name (guestfs_h *g,\n"
10154 "\t\tconst char *device,\n"
10155 "\t\tint partnum,\n"
10156 "\t\tconst char *name);\n"
10157 "\n"
10158 msgstr ""
10159
10160 # type: textblock
10161 #: ../src/guestfs-actions.pod:3753 ../fish/guestfish-actions.pod:2903
10162 msgid ""
10163 "This sets the partition name on partition numbered C<partnum> on device "
10164 "C<device>.  Note that partitions are numbered from 1."
10165 msgstr ""
10166
10167 # type: textblock
10168 #: ../src/guestfs-actions.pod:3756 ../fish/guestfish-actions.pod:2906
10169 msgid ""
10170 "The partition name can only be set on certain types of partition table.  "
10171 "This works on C<gpt> but not on C<mbr> partitions."
10172 msgstr ""
10173
10174 # type: =head2
10175 #: ../src/guestfs-actions.pod:3761
10176 msgid "guestfs_part_to_dev"
10177 msgstr ""
10178
10179 # type: verbatim
10180 #: ../src/guestfs-actions.pod:3763
10181 #, no-wrap
10182 msgid ""
10183 " char *guestfs_part_to_dev (guestfs_h *g,\n"
10184 "\t\tconst char *partition);\n"
10185 "\n"
10186 msgstr ""
10187
10188 # type: textblock
10189 #: ../src/guestfs-actions.pod:3766 ../fish/guestfish-actions.pod:2913
10190 msgid ""
10191 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
10192 "partition number, returning the device name (eg. \"/dev/sdb\")."
10193 msgstr ""
10194
10195 # type: textblock
10196 #: ../src/guestfs-actions.pod:3770
10197 msgid ""
10198 "The named partition must exist, for example as a string returned from "
10199 "C<guestfs_list_partitions>."
10200 msgstr ""
10201
10202 # type: =head2
10203 #: ../src/guestfs-actions.pod:3776
10204 msgid "guestfs_ping_daemon"
10205 msgstr ""
10206
10207 # type: verbatim
10208 #: ../src/guestfs-actions.pod:3778
10209 #, no-wrap
10210 msgid ""
10211 " int guestfs_ping_daemon (guestfs_h *g);\n"
10212 "\n"
10213 msgstr ""
10214
10215 # type: textblock
10216 #: ../src/guestfs-actions.pod:3780 ../fish/guestfish-actions.pod:2924
10217 msgid ""
10218 "This is a test probe into the guestfs daemon running inside the qemu "
10219 "subprocess.  Calling this function checks that the daemon responds to the "
10220 "ping message, without affecting the daemon or attached block device(s) in "
10221 "any other way."
10222 msgstr ""
10223
10224 # type: =head2
10225 #: ../src/guestfs-actions.pod:3787
10226 msgid "guestfs_pread"
10227 msgstr ""
10228
10229 # type: verbatim
10230 #: ../src/guestfs-actions.pod:3789
10231 #, no-wrap
10232 msgid ""
10233 " char *guestfs_pread (guestfs_h *g,\n"
10234 "\t\tconst char *path,\n"
10235 "\t\tint count,\n"
10236 "\t\tint64_t offset,\n"
10237 "\t\tsize_t *size_r);\n"
10238 "\n"
10239 msgstr ""
10240
10241 # type: textblock
10242 #: ../src/guestfs-actions.pod:3795 ../fish/guestfish-actions.pod:2933
10243 msgid ""
10244 "This command lets you read part of a file.  It reads C<count> bytes of the "
10245 "file, starting at C<offset>, from file C<path>."
10246 msgstr ""
10247
10248 # type: textblock
10249 #: ../src/guestfs-actions.pod:3798 ../fish/guestfish-actions.pod:2936
10250 msgid ""
10251 "This may read fewer bytes than requested.  For further details see the "
10252 "L<pread(2)> system call."
10253 msgstr ""
10254
10255 # type: textblock
10256 #: ../src/guestfs-actions.pod:3801
10257 msgid "See also C<guestfs_pwrite>."
10258 msgstr ""
10259
10260 # type: =head2
10261 #: ../src/guestfs-actions.pod:3810
10262 msgid "guestfs_pvcreate"
10263 msgstr ""
10264
10265 # type: verbatim
10266 #: ../src/guestfs-actions.pod:3812
10267 #, no-wrap
10268 msgid ""
10269 " int guestfs_pvcreate (guestfs_h *g,\n"
10270 "\t\tconst char *device);\n"
10271 "\n"
10272 msgstr ""
10273
10274 # type: textblock
10275 #: ../src/guestfs-actions.pod:3815 ../fish/guestfish-actions.pod:2948
10276 msgid ""
10277 "This creates an LVM physical volume on the named C<device>, where C<device> "
10278 "should usually be a partition name such as C</dev/sda1>."
10279 msgstr ""
10280
10281 # type: =head2
10282 #: ../src/guestfs-actions.pod:3821
10283 msgid "guestfs_pvremove"
10284 msgstr ""
10285
10286 # type: verbatim
10287 #: ../src/guestfs-actions.pod:3823
10288 #, no-wrap
10289 msgid ""
10290 " int guestfs_pvremove (guestfs_h *g,\n"
10291 "\t\tconst char *device);\n"
10292 "\n"
10293 msgstr ""
10294
10295 # type: textblock
10296 #: ../src/guestfs-actions.pod:3826 ../fish/guestfish-actions.pod:2956
10297 msgid ""
10298 "This wipes a physical volume C<device> so that LVM will no longer recognise "
10299 "it."
10300 msgstr ""
10301
10302 # type: textblock
10303 #: ../src/guestfs-actions.pod:3829 ../fish/guestfish-actions.pod:2959
10304 msgid ""
10305 "The implementation uses the C<pvremove> command which refuses to wipe "
10306 "physical volumes that contain any volume groups, so you have to remove those "
10307 "first."
10308 msgstr ""
10309
10310 # type: =head2
10311 #: ../src/guestfs-actions.pod:3835
10312 msgid "guestfs_pvresize"
10313 msgstr ""
10314
10315 # type: verbatim
10316 #: ../src/guestfs-actions.pod:3837
10317 #, no-wrap
10318 msgid ""
10319 " int guestfs_pvresize (guestfs_h *g,\n"
10320 "\t\tconst char *device);\n"
10321 "\n"
10322 msgstr ""
10323
10324 # type: textblock
10325 #: ../src/guestfs-actions.pod:3840 ../fish/guestfish-actions.pod:2967
10326 msgid ""
10327 "This resizes (expands or shrinks) an existing LVM physical volume to match "
10328 "the new size of the underlying device."
10329 msgstr ""
10330
10331 # type: =head2
10332 #: ../src/guestfs-actions.pod:3845
10333 msgid "guestfs_pvresize_size"
10334 msgstr ""
10335
10336 # type: verbatim
10337 #: ../src/guestfs-actions.pod:3847
10338 #, no-wrap
10339 msgid ""
10340 " int guestfs_pvresize_size (guestfs_h *g,\n"
10341 "\t\tconst char *device,\n"
10342 "\t\tint64_t size);\n"
10343 "\n"
10344 msgstr ""
10345
10346 # type: textblock
10347 #: ../src/guestfs-actions.pod:3851
10348 msgid ""
10349 "This command is the same as C<guestfs_pvresize> except that it allows you to "
10350 "specify the new size (in bytes) explicitly."
10351 msgstr ""
10352
10353 # type: =head2
10354 #: ../src/guestfs-actions.pod:3856
10355 msgid "guestfs_pvs"
10356 msgstr ""
10357
10358 # type: verbatim
10359 #: ../src/guestfs-actions.pod:3858
10360 #, no-wrap
10361 msgid ""
10362 " char **guestfs_pvs (guestfs_h *g);\n"
10363 "\n"
10364 msgstr ""
10365
10366 # type: textblock
10367 #: ../src/guestfs-actions.pod:3860 ../fish/guestfish-actions.pod:2981
10368 msgid ""
10369 "List all the physical volumes detected.  This is the equivalent of the "
10370 "L<pvs(8)> command."
10371 msgstr ""
10372
10373 # type: textblock
10374 #: ../src/guestfs-actions.pod:3863 ../fish/guestfish-actions.pod:2984
10375 msgid ""
10376 "This returns a list of just the device names that contain PVs "
10377 "(eg. C</dev/sda2>)."
10378 msgstr ""
10379
10380 # type: textblock
10381 #: ../src/guestfs-actions.pod:3866
10382 msgid "See also C<guestfs_pvs_full>."
10383 msgstr ""
10384
10385 # type: =head2
10386 #: ../src/guestfs-actions.pod:3872
10387 msgid "guestfs_pvs_full"
10388 msgstr ""
10389
10390 # type: verbatim
10391 #: ../src/guestfs-actions.pod:3874
10392 #, no-wrap
10393 msgid ""
10394 " struct guestfs_lvm_pv_list *guestfs_pvs_full (guestfs_h *g);\n"
10395 "\n"
10396 msgstr ""
10397
10398 # type: textblock
10399 #: ../src/guestfs-actions.pod:3876 ../fish/guestfish-actions.pod:2993
10400 msgid ""
10401 "List all the physical volumes detected.  This is the equivalent of the "
10402 "L<pvs(8)> command.  The \"full\" version includes all fields."
10403 msgstr ""
10404
10405 # type: textblock
10406 #: ../src/guestfs-actions.pod:3879
10407 msgid ""
10408 "This function returns a C<struct guestfs_lvm_pv_list *> (see "
10409 "E<lt>guestfs-structs.hE<gt>), or NULL if there was an error.  I<The caller "
10410 "must call C<guestfs_free_lvm_pv_list> after use>."
10411 msgstr ""
10412
10413 # type: =head2
10414 #: ../src/guestfs-actions.pod:3884
10415 msgid "guestfs_pvuuid"
10416 msgstr ""
10417
10418 # type: verbatim
10419 #: ../src/guestfs-actions.pod:3886
10420 #, no-wrap
10421 msgid ""
10422 " char *guestfs_pvuuid (guestfs_h *g,\n"
10423 "\t\tconst char *device);\n"
10424 "\n"
10425 msgstr ""
10426
10427 # type: textblock
10428 #: ../src/guestfs-actions.pod:3889 ../fish/guestfish-actions.pod:3000
10429 msgid "This command returns the UUID of the LVM PV C<device>."
10430 msgstr ""
10431
10432 # type: =head2
10433 #: ../src/guestfs-actions.pod:3894
10434 msgid "guestfs_pwrite"
10435 msgstr ""
10436
10437 # type: verbatim
10438 #: ../src/guestfs-actions.pod:3896
10439 #, no-wrap
10440 msgid ""
10441 " int guestfs_pwrite (guestfs_h *g,\n"
10442 "\t\tconst char *path,\n"
10443 "\t\tconst char *content,\n"
10444 "\t\tsize_t content_size,\n"
10445 "\t\tint64_t offset);\n"
10446 "\n"
10447 msgstr ""
10448
10449 # type: textblock
10450 #: ../src/guestfs-actions.pod:3902 ../fish/guestfish-actions.pod:3006
10451 msgid ""
10452 "This command writes to part of a file.  It writes the data buffer C<content> "
10453 "to the file C<path> starting at offset C<offset>."
10454 msgstr ""
10455
10456 # type: textblock
10457 #: ../src/guestfs-actions.pod:3905 ../fish/guestfish-actions.pod:3009
10458 msgid ""
10459 "This command implements the L<pwrite(2)> system call, and like that system "
10460 "call it may not write the full data requested.  The return value is the "
10461 "number of bytes that were actually written to the file.  This could even be "
10462 "0, although short writes are unlikely for regular files in ordinary "
10463 "circumstances."
10464 msgstr ""
10465
10466 # type: textblock
10467 #: ../src/guestfs-actions.pod:3911
10468 msgid "See also C<guestfs_pread>."
10469 msgstr ""
10470
10471 # type: =head2
10472 #: ../src/guestfs-actions.pod:3918
10473 msgid "guestfs_read_file"
10474 msgstr ""
10475
10476 # type: verbatim
10477 #: ../src/guestfs-actions.pod:3920
10478 #, no-wrap
10479 msgid ""
10480 " char *guestfs_read_file (guestfs_h *g,\n"
10481 "\t\tconst char *path,\n"
10482 "\t\tsize_t *size_r);\n"
10483 "\n"
10484 msgstr ""
10485
10486 # type: textblock
10487 #: ../src/guestfs-actions.pod:3924 ../fish/guestfish-actions.pod:3024
10488 msgid "This calls returns the contents of the file C<path> as a buffer."
10489 msgstr ""
10490
10491 # type: textblock
10492 #: ../src/guestfs-actions.pod:3927
10493 msgid ""
10494 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
10495 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
10496 "function is limited in the total size of file that can be handled."
10497 msgstr ""
10498
10499 # type: =head2
10500 #: ../src/guestfs-actions.pod:3939
10501 msgid "guestfs_read_lines"
10502 msgstr ""
10503
10504 # type: verbatim
10505 #: ../src/guestfs-actions.pod:3941
10506 #, no-wrap
10507 msgid ""
10508 " char **guestfs_read_lines (guestfs_h *g,\n"
10509 "\t\tconst char *path);\n"
10510 "\n"
10511 msgstr ""
10512
10513 # type: textblock
10514 #: ../src/guestfs-actions.pod:3946 ../fish/guestfish-actions.pod:3041
10515 msgid ""
10516 "The file contents are returned as a list of lines.  Trailing C<LF> and "
10517 "C<CRLF> character sequences are I<not> returned."
10518 msgstr ""
10519
10520 # type: textblock
10521 #: ../src/guestfs-actions.pod:3949
10522 msgid ""
10523 "Note that this function cannot correctly handle binary files (specifically, "
10524 "files containing C<\\0> character which is treated as end of line).  For "
10525 "those you need to use the C<guestfs_read_file> function which has a more "
10526 "complex interface."
10527 msgstr ""
10528
10529 # type: =head2
10530 #: ../src/guestfs-actions.pod:3958
10531 msgid "guestfs_readdir"
10532 msgstr ""
10533
10534 # type: verbatim
10535 #: ../src/guestfs-actions.pod:3960
10536 #, no-wrap
10537 msgid ""
10538 " struct guestfs_dirent_list *guestfs_readdir (guestfs_h *g,\n"
10539 "\t\tconst char *dir);\n"
10540 "\n"
10541 msgstr ""
10542
10543 # type: textblock
10544 #: ../src/guestfs-actions.pod:3963 ../fish/guestfish-actions.pod:3053
10545 msgid "This returns the list of directory entries in directory C<dir>."
10546 msgstr ""
10547
10548 # type: textblock
10549 #: ../src/guestfs-actions.pod:3965 ../fish/guestfish-actions.pod:3055
10550 msgid ""
10551 "All entries in the directory are returned, including C<.> and C<..>.  The "
10552 "entries are I<not> sorted, but returned in the same order as the underlying "
10553 "filesystem."
10554 msgstr ""
10555
10556 # type: textblock
10557 #: ../src/guestfs-actions.pod:3969 ../fish/guestfish-actions.pod:3059
10558 msgid ""
10559 "Also this call returns basic file type information about each file.  The "
10560 "C<ftyp> field will contain one of the following characters:"
10561 msgstr ""
10562
10563 # type: =item
10564 #: ../src/guestfs-actions.pod:3974 ../fish/guestfish-actions.pod:3064
10565 msgid "'b'"
10566 msgstr ""
10567
10568 # type: textblock
10569 #: ../src/guestfs-actions.pod:3976 ../fish/guestfish-actions.pod:3066
10570 msgid "Block special"
10571 msgstr ""
10572
10573 # type: =item
10574 #: ../src/guestfs-actions.pod:3978 ../fish/guestfish-actions.pod:3068
10575 msgid "'c'"
10576 msgstr ""
10577
10578 # type: textblock
10579 #: ../src/guestfs-actions.pod:3980 ../fish/guestfish-actions.pod:3070
10580 msgid "Char special"
10581 msgstr ""
10582
10583 # type: =item
10584 #: ../src/guestfs-actions.pod:3982 ../fish/guestfish-actions.pod:3072
10585 msgid "'d'"
10586 msgstr ""
10587
10588 # type: textblock
10589 #: ../src/guestfs-actions.pod:3984 ../fish/guestfish-actions.pod:3074
10590 msgid "Directory"
10591 msgstr ""
10592
10593 # type: =item
10594 #: ../src/guestfs-actions.pod:3986 ../fish/guestfish-actions.pod:3076
10595 msgid "'f'"
10596 msgstr ""
10597
10598 # type: textblock
10599 #: ../src/guestfs-actions.pod:3988 ../fish/guestfish-actions.pod:3078
10600 msgid "FIFO (named pipe)"
10601 msgstr ""
10602
10603 # type: =item
10604 #: ../src/guestfs-actions.pod:3990 ../fish/guestfish-actions.pod:3080
10605 msgid "'l'"
10606 msgstr ""
10607
10608 # type: textblock
10609 #: ../src/guestfs-actions.pod:3992 ../fish/guestfish-actions.pod:3082
10610 msgid "Symbolic link"
10611 msgstr ""
10612
10613 # type: =item
10614 #: ../src/guestfs-actions.pod:3994 ../fish/guestfish-actions.pod:3084
10615 msgid "'r'"
10616 msgstr ""
10617
10618 # type: textblock
10619 #: ../src/guestfs-actions.pod:3996 ../fish/guestfish-actions.pod:3086
10620 msgid "Regular file"
10621 msgstr ""
10622
10623 # type: =item
10624 #: ../src/guestfs-actions.pod:3998 ../fish/guestfish-actions.pod:3088
10625 msgid "'s'"
10626 msgstr ""
10627
10628 # type: textblock
10629 #: ../src/guestfs-actions.pod:4000 ../fish/guestfish-actions.pod:3090
10630 msgid "Socket"
10631 msgstr ""
10632
10633 # type: =item
10634 #: ../src/guestfs-actions.pod:4002 ../fish/guestfish-actions.pod:3092
10635 msgid "'u'"
10636 msgstr ""
10637
10638 # type: textblock
10639 #: ../src/guestfs-actions.pod:4004 ../fish/guestfish-actions.pod:3094
10640 msgid "Unknown file type"
10641 msgstr ""
10642
10643 # type: =item
10644 #: ../src/guestfs-actions.pod:4006 ../fish/guestfish-actions.pod:3096
10645 msgid "'?'"
10646 msgstr ""
10647
10648 # type: textblock
10649 #: ../src/guestfs-actions.pod:4008 ../fish/guestfish-actions.pod:3098
10650 msgid "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
10651 msgstr ""
10652
10653 # type: textblock
10654 #: ../src/guestfs-actions.pod:4013
10655 msgid ""
10656 "This function is primarily intended for use by programs.  To get a simple "
10657 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
10658 "consumption, use C<guestfs_ll>."
10659 msgstr ""
10660
10661 # type: textblock
10662 #: ../src/guestfs-actions.pod:4017
10663 msgid ""
10664 "This function returns a C<struct guestfs_dirent_list *> (see "
10665 "E<lt>guestfs-structs.hE<gt>), or NULL if there was an error.  I<The caller "
10666 "must call C<guestfs_free_dirent_list> after use>."
10667 msgstr ""
10668
10669 # type: =head2
10670 #: ../src/guestfs-actions.pod:4022
10671 msgid "guestfs_readlink"
10672 msgstr ""
10673
10674 # type: verbatim
10675 #: ../src/guestfs-actions.pod:4024
10676 #, no-wrap
10677 msgid ""
10678 " char *guestfs_readlink (guestfs_h *g,\n"
10679 "\t\tconst char *path);\n"
10680 "\n"
10681 msgstr ""
10682
10683 # type: textblock
10684 #: ../src/guestfs-actions.pod:4027 ../fish/guestfish-actions.pod:3111
10685 msgid "This command reads the target of a symbolic link."
10686 msgstr ""
10687
10688 # type: =head2
10689 #: ../src/guestfs-actions.pod:4032
10690 msgid "guestfs_readlinklist"
10691 msgstr ""
10692
10693 # type: verbatim
10694 #: ../src/guestfs-actions.pod:4034
10695 #, no-wrap
10696 msgid ""
10697 " char **guestfs_readlinklist (guestfs_h *g,\n"
10698 "\t\tconst char *path,\n"
10699 "\t\tchar *const *names);\n"
10700 "\n"
10701 msgstr ""
10702
10703 # type: textblock
10704 #: ../src/guestfs-actions.pod:4038 ../fish/guestfish-actions.pod:3117
10705 msgid ""
10706 "This call allows you to do a C<readlink> operation on multiple files, where "
10707 "all files are in the directory C<path>.  C<names> is the list of files from "
10708 "this directory."
10709 msgstr ""
10710
10711 # type: textblock
10712 #: ../src/guestfs-actions.pod:4042 ../fish/guestfish-actions.pod:3121
10713 msgid ""
10714 "On return you get a list of strings, with a one-to-one correspondence to the "
10715 "C<names> list.  Each string is the value of the symbolic link."
10716 msgstr ""
10717
10718 # type: textblock
10719 #: ../src/guestfs-actions.pod:4046 ../fish/guestfish-actions.pod:3125
10720 msgid ""
10721 "If the C<readlink(2)> operation fails on any name, then the corresponding "
10722 "result string is the empty string C<\"\">.  However the whole operation is "
10723 "completed even if there were C<readlink(2)> errors, and so you can call this "
10724 "function with names where you don't know if they are symbolic links already "
10725 "(albeit slightly less efficient)."
10726 msgstr ""
10727
10728 # type: textblock
10729 #: ../src/guestfs-actions.pod:4053 ../fish/guestfish-actions.pod:3132
10730 msgid ""
10731 "This call is intended for programs that want to efficiently list a directory "
10732 "contents without making many round-trips.  Very long directory listings "
10733 "might cause the protocol message size to be exceeded, causing this call to "
10734 "fail.  The caller must split up such requests into smaller groups of names."
10735 msgstr ""
10736
10737 # type: =head2
10738 #: ../src/guestfs-actions.pod:4064
10739 msgid "guestfs_realpath"
10740 msgstr ""
10741
10742 # type: verbatim
10743 #: ../src/guestfs-actions.pod:4066
10744 #, no-wrap
10745 msgid ""
10746 " char *guestfs_realpath (guestfs_h *g,\n"
10747 "\t\tconst char *path);\n"
10748 "\n"
10749 msgstr ""
10750
10751 # type: textblock
10752 #: ../src/guestfs-actions.pod:4069 ../fish/guestfish-actions.pod:3143
10753 msgid ""
10754 "Return the canonicalized absolute pathname of C<path>.  The returned path "
10755 "has no C<.>, C<..> or symbolic link path elements."
10756 msgstr ""
10757
10758 # type: =head2
10759 #: ../src/guestfs-actions.pod:4075
10760 msgid "guestfs_removexattr"
10761 msgstr ""
10762
10763 # type: verbatim
10764 #: ../src/guestfs-actions.pod:4077
10765 #, no-wrap
10766 msgid ""
10767 " int guestfs_removexattr (guestfs_h *g,\n"
10768 "\t\tconst char *xattr,\n"
10769 "\t\tconst char *path);\n"
10770 "\n"
10771 msgstr ""
10772
10773 # type: textblock
10774 #: ../src/guestfs-actions.pod:4081 ../fish/guestfish-actions.pod:3150
10775 msgid "This call removes the extended attribute named C<xattr> of the file C<path>."
10776 msgstr ""
10777
10778 # type: textblock
10779 #: ../src/guestfs-actions.pod:4084
10780 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
10781 msgstr ""
10782
10783 # type: =head2
10784 #: ../src/guestfs-actions.pod:4088
10785 msgid "guestfs_resize2fs"
10786 msgstr ""
10787
10788 # type: verbatim
10789 #: ../src/guestfs-actions.pod:4090
10790 #, no-wrap
10791 msgid ""
10792 " int guestfs_resize2fs (guestfs_h *g,\n"
10793 "\t\tconst char *device);\n"
10794 "\n"
10795 msgstr ""
10796
10797 # type: textblock
10798 #: ../src/guestfs-actions.pod:4093 ../fish/guestfish-actions.pod:3159
10799 msgid ""
10800 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
10801 "underlying device."
10802 msgstr ""
10803
10804 # type: textblock
10805 #: ../src/guestfs-actions.pod:4096
10806 msgid ""
10807 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
10808 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
10809 "sometimes gives an error about this and sometimes not.  In any case, it is "
10810 "always safe to call C<guestfs_e2fsck_f> before calling this function."
10811 msgstr ""
10812
10813 # type: =head2
10814 #: ../src/guestfs-actions.pod:4104
10815 msgid "guestfs_resize2fs_size"
10816 msgstr ""
10817
10818 # type: verbatim
10819 #: ../src/guestfs-actions.pod:4106
10820 #, no-wrap
10821 msgid ""
10822 " int guestfs_resize2fs_size (guestfs_h *g,\n"
10823 "\t\tconst char *device,\n"
10824 "\t\tint64_t size);\n"
10825 "\n"
10826 msgstr ""
10827
10828 # type: textblock
10829 #: ../src/guestfs-actions.pod:4110
10830 msgid ""
10831 "This command is the same as C<guestfs_resize2fs> except that it allows you "
10832 "to specify the new size (in bytes) explicitly."
10833 msgstr ""
10834
10835 # type: =head2
10836 #: ../src/guestfs-actions.pod:4115
10837 msgid "guestfs_rm"
10838 msgstr ""
10839
10840 # type: verbatim
10841 #: ../src/guestfs-actions.pod:4117
10842 #, no-wrap
10843 msgid ""
10844 " int guestfs_rm (guestfs_h *g,\n"
10845 "\t\tconst char *path);\n"
10846 "\n"
10847 msgstr ""
10848
10849 # type: textblock
10850 #: ../src/guestfs-actions.pod:4120 ../fish/guestfish-actions.pod:3179
10851 msgid "Remove the single file C<path>."
10852 msgstr ""
10853
10854 # type: =head2
10855 #: ../src/guestfs-actions.pod:4124
10856 msgid "guestfs_rm_rf"
10857 msgstr ""
10858
10859 # type: verbatim
10860 #: ../src/guestfs-actions.pod:4126
10861 #, no-wrap
10862 msgid ""
10863 " int guestfs_rm_rf (guestfs_h *g,\n"
10864 "\t\tconst char *path);\n"
10865 "\n"
10866 msgstr ""
10867
10868 # type: textblock
10869 #: ../src/guestfs-actions.pod:4129 ../fish/guestfish-actions.pod:3185
10870 msgid ""
10871 "Remove the file or directory C<path>, recursively removing the contents if "
10872 "its a directory.  This is like the C<rm -rf> shell command."
10873 msgstr ""
10874
10875 # type: =head2
10876 #: ../src/guestfs-actions.pod:4135
10877 msgid "guestfs_rmdir"
10878 msgstr ""
10879
10880 # type: verbatim
10881 #: ../src/guestfs-actions.pod:4137
10882 #, no-wrap
10883 msgid ""
10884 " int guestfs_rmdir (guestfs_h *g,\n"
10885 "\t\tconst char *path);\n"
10886 "\n"
10887 msgstr ""
10888
10889 # type: textblock
10890 #: ../src/guestfs-actions.pod:4140 ../fish/guestfish-actions.pod:3193
10891 msgid "Remove the single directory C<path>."
10892 msgstr ""
10893
10894 # type: =head2
10895 #: ../src/guestfs-actions.pod:4144
10896 msgid "guestfs_rmmountpoint"
10897 msgstr ""
10898
10899 # type: verbatim
10900 #: ../src/guestfs-actions.pod:4146
10901 #, no-wrap
10902 msgid ""
10903 " int guestfs_rmmountpoint (guestfs_h *g,\n"
10904 "\t\tconst char *exemptpath);\n"
10905 "\n"
10906 msgstr ""
10907
10908 # type: textblock
10909 #: ../src/guestfs-actions.pod:4149
10910 msgid ""
10911 "This calls removes a mountpoint that was previously created with "
10912 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
10913 msgstr ""
10914
10915 # type: =head2
10916 #: ../src/guestfs-actions.pod:4155
10917 msgid "guestfs_scrub_device"
10918 msgstr ""
10919
10920 # type: verbatim
10921 #: ../src/guestfs-actions.pod:4157
10922 #, no-wrap
10923 msgid ""
10924 " int guestfs_scrub_device (guestfs_h *g,\n"
10925 "\t\tconst char *device);\n"
10926 "\n"
10927 msgstr ""
10928
10929 # type: textblock
10930 #: ../src/guestfs-actions.pod:4160 ../fish/guestfish-actions.pod:3207
10931 msgid ""
10932 "This command writes patterns over C<device> to make data retrieval more "
10933 "difficult."
10934 msgstr ""
10935
10936 # type: textblock
10937 #: ../src/guestfs-actions.pod:4163 ../src/guestfs-actions.pod:4181 ../src/guestfs-actions.pod:4197 ../fish/guestfish-actions.pod:3210 ../fish/guestfish-actions.pod:3225 ../fish/guestfish-actions.pod:3238
10938 msgid ""
10939 "It is an interface to the L<scrub(1)> program.  See that manual page for "
10940 "more details."
10941 msgstr ""
10942
10943 # type: =head2
10944 #: ../src/guestfs-actions.pod:4171
10945 msgid "guestfs_scrub_file"
10946 msgstr ""
10947
10948 # type: verbatim
10949 #: ../src/guestfs-actions.pod:4173
10950 #, no-wrap
10951 msgid ""
10952 " int guestfs_scrub_file (guestfs_h *g,\n"
10953 "\t\tconst char *file);\n"
10954 "\n"
10955 msgstr ""
10956
10957 # type: textblock
10958 #: ../src/guestfs-actions.pod:4176 ../fish/guestfish-actions.pod:3220
10959 msgid ""
10960 "This command writes patterns over a file to make data retrieval more "
10961 "difficult."
10962 msgstr ""
10963
10964 # type: textblock
10965 #: ../src/guestfs-actions.pod:4179 ../fish/guestfish-actions.pod:3223
10966 msgid "The file is I<removed> after scrubbing."
10967 msgstr ""
10968
10969 # type: =head2
10970 #: ../src/guestfs-actions.pod:4186
10971 msgid "guestfs_scrub_freespace"
10972 msgstr ""
10973
10974 # type: verbatim
10975 #: ../src/guestfs-actions.pod:4188
10976 #, no-wrap
10977 msgid ""
10978 " int guestfs_scrub_freespace (guestfs_h *g,\n"
10979 "\t\tconst char *dir);\n"
10980 "\n"
10981 msgstr ""
10982
10983 # type: textblock
10984 #: ../src/guestfs-actions.pod:4191
10985 msgid ""
10986 "This command creates the directory C<dir> and then fills it with files until "
10987 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
10988 "and deletes them.  The intention is to scrub any free space on the partition "
10989 "containing C<dir>."
10990 msgstr ""
10991
10992 # type: =head2
10993 #: ../src/guestfs-actions.pod:4202
10994 msgid "guestfs_set_append"
10995 msgstr ""
10996
10997 # type: verbatim
10998 #: ../src/guestfs-actions.pod:4204
10999 #, no-wrap
11000 msgid ""
11001 " int guestfs_set_append (guestfs_h *g,\n"
11002 "\t\tconst char *append);\n"
11003 "\n"
11004 msgstr ""
11005
11006 # type: textblock
11007 #: ../src/guestfs-actions.pod:4207 ../fish/guestfish-actions.pod:3245
11008 msgid ""
11009 "This function is used to add additional options to the guest kernel command "
11010 "line."
11011 msgstr ""
11012
11013 # type: textblock
11014 #: ../src/guestfs-actions.pod:4210 ../fish/guestfish-actions.pod:3248
11015 msgid ""
11016 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
11017 "environment variable."
11018 msgstr ""
11019
11020 # type: textblock
11021 #: ../src/guestfs-actions.pod:4213 ../fish/guestfish-actions.pod:3251
11022 msgid ""
11023 "Setting C<append> to C<NULL> means I<no> additional options are passed "
11024 "(libguestfs always adds a few of its own)."
11025 msgstr ""
11026
11027 # type: =head2
11028 #: ../src/guestfs-actions.pod:4218
11029 msgid "guestfs_set_autosync"
11030 msgstr ""
11031
11032 # type: verbatim
11033 #: ../src/guestfs-actions.pod:4220
11034 #, no-wrap
11035 msgid ""
11036 " int guestfs_set_autosync (guestfs_h *g,\n"
11037 "\t\tint autosync);\n"
11038 "\n"
11039 msgstr ""
11040
11041 # type: textblock
11042 #: ../src/guestfs-actions.pod:4223
11043 msgid ""
11044 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
11045 "effort attempt to run C<guestfs_umount_all> followed by C<guestfs_sync> when "
11046 "the handle is closed (also if the program exits without closing handles)."
11047 msgstr ""
11048
11049 # type: textblock
11050 #: ../src/guestfs-actions.pod:4228 ../fish/guestfish-actions.pod:3263
11051 msgid ""
11052 "This is disabled by default (except in guestfish where it is enabled by "
11053 "default)."
11054 msgstr ""
11055
11056 # type: =head2
11057 #: ../src/guestfs-actions.pod:4233
11058 msgid "guestfs_set_direct"
11059 msgstr ""
11060
11061 # type: verbatim
11062 #: ../src/guestfs-actions.pod:4235
11063 #, no-wrap
11064 msgid ""
11065 " int guestfs_set_direct (guestfs_h *g,\n"
11066 "\t\tint direct);\n"
11067 "\n"
11068 msgstr ""
11069
11070 # type: textblock
11071 #: ../src/guestfs-actions.pod:4238 ../fish/guestfish-actions.pod:3270
11072 msgid ""
11073 "If the direct appliance mode flag is enabled, then stdin and stdout are "
11074 "passed directly through to the appliance once it is launched."
11075 msgstr ""
11076
11077 # type: textblock
11078 #: ../src/guestfs-actions.pod:4242
11079 msgid ""
11080 "One consequence of this is that log messages aren't caught by the library "
11081 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
11082 "stdout."
11083 msgstr ""
11084
11085 # type: textblock
11086 #: ../src/guestfs-actions.pod:4246 ../fish/guestfish-actions.pod:3278
11087 msgid "You probably don't want to use this unless you know what you are doing."
11088 msgstr ""
11089
11090 # type: textblock
11091 #: ../src/guestfs-actions.pod:4249 ../fish/guestfish-actions.pod:3281
11092 msgid "The default is disabled."
11093 msgstr ""
11094
11095 # type: =head2
11096 #: ../src/guestfs-actions.pod:4253
11097 msgid "guestfs_set_e2label"
11098 msgstr ""
11099
11100 # type: verbatim
11101 #: ../src/guestfs-actions.pod:4255
11102 #, no-wrap
11103 msgid ""
11104 " int guestfs_set_e2label (guestfs_h *g,\n"
11105 "\t\tconst char *device,\n"
11106 "\t\tconst char *label);\n"
11107 "\n"
11108 msgstr ""
11109
11110 # type: textblock
11111 #: ../src/guestfs-actions.pod:4259 ../fish/guestfish-actions.pod:3287
11112 msgid ""
11113 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
11114 "C<label>.  Filesystem labels are limited to 16 characters."
11115 msgstr ""
11116
11117 # type: textblock
11118 #: ../src/guestfs-actions.pod:4263
11119 msgid ""
11120 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
11121 "the existing label on a filesystem."
11122 msgstr ""
11123
11124 # type: =head2
11125 #: ../src/guestfs-actions.pod:4268
11126 msgid "guestfs_set_e2uuid"
11127 msgstr ""
11128
11129 # type: verbatim
11130 #: ../src/guestfs-actions.pod:4270
11131 #, no-wrap
11132 msgid ""
11133 " int guestfs_set_e2uuid (guestfs_h *g,\n"
11134 "\t\tconst char *device,\n"
11135 "\t\tconst char *uuid);\n"
11136 "\n"
11137 msgstr ""
11138
11139 # type: textblock
11140 #: ../src/guestfs-actions.pod:4274 ../fish/guestfish-actions.pod:3298
11141 msgid ""
11142 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
11143 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
11144 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
11145 msgstr ""
11146
11147 # type: textblock
11148 #: ../src/guestfs-actions.pod:4279
11149 msgid ""
11150 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
11151 "the existing UUID of a filesystem."
11152 msgstr ""
11153
11154 # type: =head2
11155 #: ../src/guestfs-actions.pod:4284
11156 msgid "guestfs_set_memsize"
11157 msgstr ""
11158
11159 # type: verbatim
11160 #: ../src/guestfs-actions.pod:4286
11161 #, no-wrap
11162 msgid ""
11163 " int guestfs_set_memsize (guestfs_h *g,\n"
11164 "\t\tint memsize);\n"
11165 "\n"
11166 msgstr ""
11167
11168 # type: textblock
11169 #: ../src/guestfs-actions.pod:4289
11170 msgid ""
11171 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
11172 "This only has any effect if called before C<guestfs_launch>."
11173 msgstr ""
11174
11175 # type: textblock
11176 #: ../src/guestfs-actions.pod:4293 ../fish/guestfish-actions.pod:3314
11177 msgid ""
11178 "You can also change this by setting the environment variable "
11179 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
11180 msgstr ""
11181
11182 # type: =head2
11183 #: ../src/guestfs-actions.pod:4302
11184 msgid "guestfs_set_network"
11185 msgstr ""
11186
11187 # type: verbatim
11188 #: ../src/guestfs-actions.pod:4304
11189 #, no-wrap
11190 msgid ""
11191 " int guestfs_set_network (guestfs_h *g,\n"
11192 "\t\tint network);\n"
11193 "\n"
11194 msgstr ""
11195
11196 # type: textblock
11197 #: ../src/guestfs-actions.pod:4307 ../fish/guestfish-actions.pod:3325
11198 msgid ""
11199 "If C<network> is true, then the network is enabled in the libguestfs "
11200 "appliance.  The default is false."
11201 msgstr ""
11202
11203 # type: textblock
11204 #: ../src/guestfs-actions.pod:4310 ../fish/guestfish-actions.pod:3328
11205 msgid ""
11206 "This affects whether commands are able to access the network (see "
11207 "L<guestfs(3)/RUNNING COMMANDS>)."
11208 msgstr ""
11209
11210 # type: textblock
11211 #: ../src/guestfs-actions.pod:4313
11212 msgid ""
11213 "You must call this before calling C<guestfs_launch>, otherwise it has no "
11214 "effect."
11215 msgstr ""
11216
11217 # type: =head2
11218 #: ../src/guestfs-actions.pod:4318
11219 msgid "guestfs_set_path"
11220 msgstr ""
11221
11222 # type: verbatim
11223 #: ../src/guestfs-actions.pod:4320
11224 #, no-wrap
11225 msgid ""
11226 " int guestfs_set_path (guestfs_h *g,\n"
11227 "\t\tconst char *searchpath);\n"
11228 "\n"
11229 msgstr ""
11230
11231 # type: textblock
11232 #: ../src/guestfs-actions.pod:4323 ../fish/guestfish-actions.pod:3338
11233 msgid "Set the path that libguestfs searches for kernel and initrd.img."
11234 msgstr ""
11235
11236 # type: textblock
11237 #: ../src/guestfs-actions.pod:4325 ../fish/guestfish-actions.pod:3340
11238 msgid ""
11239 "The default is C<$libdir/guestfs> unless overridden by setting "
11240 "C<LIBGUESTFS_PATH> environment variable."
11241 msgstr ""
11242
11243 # type: textblock
11244 #: ../src/guestfs-actions.pod:4328 ../fish/guestfish-actions.pod:3343
11245 msgid "Setting C<path> to C<NULL> restores the default path."
11246 msgstr ""
11247
11248 # type: =head2
11249 #: ../src/guestfs-actions.pod:4332
11250 msgid "guestfs_set_qemu"
11251 msgstr ""
11252
11253 # type: verbatim
11254 #: ../src/guestfs-actions.pod:4334
11255 #, no-wrap
11256 msgid ""
11257 " int guestfs_set_qemu (guestfs_h *g,\n"
11258 "\t\tconst char *qemu);\n"
11259 "\n"
11260 msgstr ""
11261
11262 # type: textblock
11263 #: ../src/guestfs-actions.pod:4337 ../fish/guestfish-actions.pod:3349
11264 msgid "Set the qemu binary that we will use."
11265 msgstr ""
11266
11267 # type: textblock
11268 #: ../src/guestfs-actions.pod:4339 ../fish/guestfish-actions.pod:3351
11269 msgid "The default is chosen when the library was compiled by the configure script."
11270 msgstr ""
11271
11272 # type: textblock
11273 #: ../src/guestfs-actions.pod:4342 ../fish/guestfish-actions.pod:3354
11274 msgid ""
11275 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
11276 "variable."
11277 msgstr ""
11278
11279 # type: textblock
11280 #: ../src/guestfs-actions.pod:4345 ../fish/guestfish-actions.pod:3357
11281 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
11282 msgstr ""
11283
11284 # type: textblock
11285 #: ../src/guestfs-actions.pod:4347 ../fish/guestfish-actions.pod:3359
11286 msgid ""
11287 "Note that you should call this function as early as possible after creating "
11288 "the handle.  This is because some pre-launch operations depend on testing "
11289 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
11290 "don't retest features, and so you might see inconsistent results.  Using the "
11291 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
11292 "the qemu binary at the same time as the handle is created."
11293 msgstr ""
11294
11295 # type: =head2
11296 #: ../src/guestfs-actions.pod:4357
11297 msgid "guestfs_set_recovery_proc"
11298 msgstr ""
11299
11300 # type: verbatim
11301 #: ../src/guestfs-actions.pod:4359
11302 #, no-wrap
11303 msgid ""
11304 " int guestfs_set_recovery_proc (guestfs_h *g,\n"
11305 "\t\tint recoveryproc);\n"
11306 "\n"
11307 msgstr ""
11308
11309 # type: textblock
11310 #: ../src/guestfs-actions.pod:4362
11311 msgid ""
11312 "If this is called with the parameter C<false> then C<guestfs_launch> does "
11313 "not create a recovery process.  The purpose of the recovery process is to "
11314 "stop runaway qemu processes in the case where the main program aborts "
11315 "abruptly."
11316 msgstr ""
11317
11318 # type: textblock
11319 #: ../src/guestfs-actions.pod:4367
11320 msgid ""
11321 "This only has any effect if called before C<guestfs_launch>, and the default "
11322 "is true."
11323 msgstr ""
11324
11325 # type: textblock
11326 #: ../src/guestfs-actions.pod:4370 ../fish/guestfish-actions.pod:3379
11327 msgid ""
11328 "About the only time when you would want to disable this is if the main "
11329 "process will fork itself into the background (\"daemonize\" itself).  In "
11330 "this case the recovery process thinks that the main program has disappeared "
11331 "and so kills qemu, which is not very helpful."
11332 msgstr ""
11333
11334 # type: =head2
11335 #: ../src/guestfs-actions.pod:4378
11336 msgid "guestfs_set_selinux"
11337 msgstr ""
11338
11339 # type: verbatim
11340 #: ../src/guestfs-actions.pod:4380
11341 #, no-wrap
11342 msgid ""
11343 " int guestfs_set_selinux (guestfs_h *g,\n"
11344 "\t\tint selinux);\n"
11345 "\n"
11346 msgstr ""
11347
11348 # type: textblock
11349 #: ../src/guestfs-actions.pod:4383 ../fish/guestfish-actions.pod:3389
11350 msgid ""
11351 "This sets the selinux flag that is passed to the appliance at boot time.  "
11352 "The default is C<selinux=0> (disabled)."
11353 msgstr ""
11354
11355 # type: textblock
11356 #: ../src/guestfs-actions.pod:4386 ../fish/guestfish-actions.pod:3392
11357 msgid ""
11358 "Note that if SELinux is enabled, it is always in Permissive mode "
11359 "(C<enforcing=0>)."
11360 msgstr ""
11361
11362 # type: =head2
11363 #: ../src/guestfs-actions.pod:4394
11364 msgid "guestfs_set_trace"
11365 msgstr ""
11366
11367 # type: verbatim
11368 #: ../src/guestfs-actions.pod:4396
11369 #, no-wrap
11370 msgid ""
11371 " int guestfs_set_trace (guestfs_h *g,\n"
11372 "\t\tint trace);\n"
11373 "\n"
11374 msgstr ""
11375
11376 # type: textblock
11377 #: ../src/guestfs-actions.pod:4399 ../fish/guestfish-actions.pod:3402
11378 msgid ""
11379 "If the command trace flag is set to 1, then commands are printed on stderr "
11380 "before they are executed in a format which is very similar to the one used "
11381 "by guestfish.  In other words, you can run a program with this enabled, and "
11382 "you will get out a script which you can feed to guestfish to perform the "
11383 "same set of actions."
11384 msgstr ""
11385
11386 # type: textblock
11387 #: ../src/guestfs-actions.pod:4406 ../fish/guestfish-actions.pod:3409
11388 msgid ""
11389 "If you want to trace C API calls into libguestfs (and other libraries) then "
11390 "possibly a better way is to use the external ltrace(1) command."
11391 msgstr ""
11392
11393 # type: textblock
11394 #: ../src/guestfs-actions.pod:4410 ../fish/guestfish-actions.pod:3413
11395 msgid ""
11396 "Command traces are disabled unless the environment variable "
11397 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
11398 msgstr ""
11399
11400 # type: =head2
11401 #: ../src/guestfs-actions.pod:4415
11402 msgid "guestfs_set_verbose"
11403 msgstr ""
11404
11405 # type: verbatim
11406 #: ../src/guestfs-actions.pod:4417
11407 #, no-wrap
11408 msgid ""
11409 " int guestfs_set_verbose (guestfs_h *g,\n"
11410 "\t\tint verbose);\n"
11411 "\n"
11412 msgstr ""
11413
11414 # type: textblock
11415 #: ../src/guestfs-actions.pod:4420 ../fish/guestfish-actions.pod:3420
11416 msgid "If C<verbose> is true, this turns on verbose messages (to C<stderr>)."
11417 msgstr ""
11418
11419 # type: textblock
11420 #: ../src/guestfs-actions.pod:4422 ../fish/guestfish-actions.pod:3422
11421 msgid ""
11422 "Verbose messages are disabled unless the environment variable "
11423 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
11424 msgstr ""
11425
11426 # type: =head2
11427 #: ../src/guestfs-actions.pod:4427
11428 msgid "guestfs_setcon"
11429 msgstr ""
11430
11431 # type: verbatim
11432 #: ../src/guestfs-actions.pod:4429
11433 #, no-wrap
11434 msgid ""
11435 " int guestfs_setcon (guestfs_h *g,\n"
11436 "\t\tconst char *context);\n"
11437 "\n"
11438 msgstr ""
11439
11440 # type: textblock
11441 #: ../src/guestfs-actions.pod:4432 ../fish/guestfish-actions.pod:3429
11442 msgid ""
11443 "This sets the SELinux security context of the daemon to the string "
11444 "C<context>."
11445 msgstr ""
11446
11447 # type: textblock
11448 #: ../src/guestfs-actions.pod:4435 ../fish/guestfish-actions.pod:3432
11449 msgid "See the documentation about SELINUX in L<guestfs(3)>."
11450 msgstr ""
11451
11452 # type: =head2
11453 #: ../src/guestfs-actions.pod:4439
11454 msgid "guestfs_setxattr"
11455 msgstr ""
11456
11457 # type: verbatim
11458 #: ../src/guestfs-actions.pod:4441
11459 #, no-wrap
11460 msgid ""
11461 " int guestfs_setxattr (guestfs_h *g,\n"
11462 "\t\tconst char *xattr,\n"
11463 "\t\tconst char *val,\n"
11464 "\t\tint vallen,\n"
11465 "\t\tconst char *path);\n"
11466 "\n"
11467 msgstr ""
11468
11469 # type: textblock
11470 #: ../src/guestfs-actions.pod:4447 ../fish/guestfish-actions.pod:3438
11471 msgid ""
11472 "This call sets the extended attribute named C<xattr> of the file C<path> to "
11473 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
11474 msgstr ""
11475
11476 # type: textblock
11477 #: ../src/guestfs-actions.pod:4451
11478 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
11479 msgstr ""
11480
11481 # type: =head2
11482 #: ../src/guestfs-actions.pod:4455
11483 msgid "guestfs_sfdisk"
11484 msgstr ""
11485
11486 # type: verbatim
11487 #: ../src/guestfs-actions.pod:4457
11488 #, no-wrap
11489 msgid ""
11490 " int guestfs_sfdisk (guestfs_h *g,\n"
11491 "\t\tconst char *device,\n"
11492 "\t\tint cyls,\n"
11493 "\t\tint heads,\n"
11494 "\t\tint sectors,\n"
11495 "\t\tchar *const *lines);\n"
11496 "\n"
11497 msgstr ""
11498
11499 # type: textblock
11500 #: ../src/guestfs-actions.pod:4464 ../fish/guestfish-actions.pod:3448
11501 msgid ""
11502 "This is a direct interface to the L<sfdisk(8)> program for creating "
11503 "partitions on block devices."
11504 msgstr ""
11505
11506 # type: textblock
11507 #: ../src/guestfs-actions.pod:4467 ../fish/guestfish-actions.pod:3451
11508 msgid "C<device> should be a block device, for example C</dev/sda>."
11509 msgstr ""
11510
11511 # type: textblock
11512 #: ../src/guestfs-actions.pod:4469 ../fish/guestfish-actions.pod:3453
11513 msgid ""
11514 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
11515 "sectors on the device, which are passed directly to sfdisk as the I<-C>, "
11516 "I<-H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
11517 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
11518 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
11519 "the kernel) cannot work out the right geometry and you will need to tell it."
11520 msgstr ""
11521
11522 # type: textblock
11523 #: ../src/guestfs-actions.pod:4477 ../fish/guestfish-actions.pod:3461
11524 msgid ""
11525 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
11526 "refer to the L<sfdisk(8)> manpage."
11527 msgstr ""
11528
11529 # type: textblock
11530 #: ../src/guestfs-actions.pod:4480 ../fish/guestfish-actions.pod:3464
11531 msgid ""
11532 "To create a single partition occupying the whole disk, you would pass "
11533 "C<lines> as a single element list, when the single element being the string "
11534 "C<,> (comma)."
11535 msgstr ""
11536
11537 # type: textblock
11538 #: ../src/guestfs-actions.pod:4484
11539 msgid "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
11540 msgstr ""
11541
11542 # type: =head2
11543 #: ../src/guestfs-actions.pod:4492
11544 msgid "guestfs_sfdiskM"
11545 msgstr ""
11546
11547 # type: verbatim
11548 #: ../src/guestfs-actions.pod:4494
11549 #, no-wrap
11550 msgid ""
11551 " int guestfs_sfdiskM (guestfs_h *g,\n"
11552 "\t\tconst char *device,\n"
11553 "\t\tchar *const *lines);\n"
11554 "\n"
11555 msgstr ""
11556
11557 # type: textblock
11558 #: ../src/guestfs-actions.pod:4498
11559 msgid ""
11560 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
11561 "partition sizes are specified in megabytes only (rounded to the nearest "
11562 "cylinder) and you don't need to specify the cyls, heads and sectors "
11563 "parameters which were rarely if ever used anyway."
11564 msgstr ""
11565
11566 # type: textblock
11567 #: ../src/guestfs-actions.pod:4504
11568 msgid ""
11569 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
11570 "C<guestfs_part_disk>"
11571 msgstr ""
11572
11573 # type: =head2
11574 #: ../src/guestfs-actions.pod:4512
11575 msgid "guestfs_sfdisk_N"
11576 msgstr ""
11577
11578 # type: verbatim
11579 #: ../src/guestfs-actions.pod:4514
11580 #, no-wrap
11581 msgid ""
11582 " int guestfs_sfdisk_N (guestfs_h *g,\n"
11583 "\t\tconst char *device,\n"
11584 "\t\tint partnum,\n"
11585 "\t\tint cyls,\n"
11586 "\t\tint heads,\n"
11587 "\t\tint sectors,\n"
11588 "\t\tconst char *line);\n"
11589 "\n"
11590 msgstr ""
11591
11592 # type: textblock
11593 #: ../src/guestfs-actions.pod:4522 ../fish/guestfish-actions.pod:3494
11594 msgid ""
11595 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
11596 "(note: C<n> counts from 1)."
11597 msgstr ""
11598
11599 # type: textblock
11600 #: ../src/guestfs-actions.pod:4525
11601 msgid ""
11602 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
11603 "for the cyls/heads/sectors parameters."
11604 msgstr ""
11605
11606 # type: textblock
11607 #: ../src/guestfs-actions.pod:4528
11608 msgid "See also: C<guestfs_part_add>"
11609 msgstr ""
11610
11611 # type: =head2
11612 #: ../src/guestfs-actions.pod:4535
11613 msgid "guestfs_sfdisk_disk_geometry"
11614 msgstr ""
11615
11616 # type: verbatim
11617 #: ../src/guestfs-actions.pod:4537
11618 #, no-wrap
11619 msgid ""
11620 " char *guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
11621 "\t\tconst char *device);\n"
11622 "\n"
11623 msgstr ""
11624
11625 # type: textblock
11626 #: ../src/guestfs-actions.pod:4540
11627 msgid ""
11628 "This displays the disk geometry of C<device> read from the partition table.  "
11629 "Especially in the case where the underlying block device has been resized, "
11630 "this can be different from the kernel's idea of the geometry (see "
11631 "C<guestfs_sfdisk_kernel_geometry>)."
11632 msgstr ""
11633
11634 # type: textblock
11635 #: ../src/guestfs-actions.pod:4545 ../src/guestfs-actions.pod:4558 ../fish/guestfish-actions.pod:3514 ../fish/guestfish-actions.pod:3523
11636 msgid "The result is in human-readable format, and not designed to be parsed."
11637 msgstr ""
11638
11639 # type: =head2
11640 #: ../src/guestfs-actions.pod:4551
11641 msgid "guestfs_sfdisk_kernel_geometry"
11642 msgstr ""
11643
11644 # type: verbatim
11645 #: ../src/guestfs-actions.pod:4553
11646 #, no-wrap
11647 msgid ""
11648 " char *guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
11649 "\t\tconst char *device);\n"
11650 "\n"
11651 msgstr ""
11652
11653 # type: textblock
11654 #: ../src/guestfs-actions.pod:4556 ../fish/guestfish-actions.pod:3521
11655 msgid "This displays the kernel's idea of the geometry of C<device>."
11656 msgstr ""
11657
11658 # type: =head2
11659 #: ../src/guestfs-actions.pod:4564
11660 msgid "guestfs_sfdisk_l"
11661 msgstr ""
11662
11663 # type: verbatim
11664 #: ../src/guestfs-actions.pod:4566
11665 #, no-wrap
11666 msgid ""
11667 " char *guestfs_sfdisk_l (guestfs_h *g,\n"
11668 "\t\tconst char *device);\n"
11669 "\n"
11670 msgstr ""
11671
11672 # type: textblock
11673 #: ../src/guestfs-actions.pod:4569 ../fish/guestfish-actions.pod:3530
11674 msgid ""
11675 "This displays the partition table on C<device>, in the human-readable output "
11676 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
11677 msgstr ""
11678
11679 # type: textblock
11680 #: ../src/guestfs-actions.pod:4573
11681 msgid "See also: C<guestfs_part_list>"
11682 msgstr ""
11683
11684 # type: =head2
11685 #: ../src/guestfs-actions.pod:4578
11686 msgid "guestfs_sh"
11687 msgstr ""
11688
11689 # type: verbatim
11690 #: ../src/guestfs-actions.pod:4580
11691 #, no-wrap
11692 msgid ""
11693 " char *guestfs_sh (guestfs_h *g,\n"
11694 "\t\tconst char *command);\n"
11695 "\n"
11696 msgstr ""
11697
11698 # type: textblock
11699 #: ../src/guestfs-actions.pod:4583 ../fish/guestfish-actions.pod:3540
11700 msgid ""
11701 "This call runs a command from the guest filesystem via the guest's "
11702 "C</bin/sh>."
11703 msgstr ""
11704
11705 # type: textblock
11706 #: ../src/guestfs-actions.pod:4586
11707 msgid "This is like C<guestfs_command>, but passes the command to:"
11708 msgstr ""
11709
11710 # type: verbatim
11711 #: ../src/guestfs-actions.pod:4588 ../fish/guestfish-actions.pod:3545
11712 #, no-wrap
11713 msgid ""
11714 " /bin/sh -c \"command\"\n"
11715 "\n"
11716 msgstr ""
11717
11718 # type: textblock
11719 #: ../src/guestfs-actions.pod:4590 ../fish/guestfish-actions.pod:3547
11720 msgid ""
11721 "Depending on the guest's shell, this usually results in wildcards being "
11722 "expanded, shell expressions being interpolated and so on."
11723 msgstr ""
11724
11725 # type: textblock
11726 #: ../src/guestfs-actions.pod:4594
11727 msgid "All the provisos about C<guestfs_command> apply to this call."
11728 msgstr ""
11729
11730 # type: =head2
11731 #: ../src/guestfs-actions.pod:4599
11732 msgid "guestfs_sh_lines"
11733 msgstr ""
11734
11735 # type: verbatim
11736 #: ../src/guestfs-actions.pod:4601
11737 #, no-wrap
11738 msgid ""
11739 " char **guestfs_sh_lines (guestfs_h *g,\n"
11740 "\t\tconst char *command);\n"
11741 "\n"
11742 msgstr ""
11743
11744 # type: textblock
11745 #: ../src/guestfs-actions.pod:4604
11746 msgid ""
11747 "This is the same as C<guestfs_sh>, but splits the result into a list of "
11748 "lines."
11749 msgstr ""
11750
11751 # type: textblock
11752 #: ../src/guestfs-actions.pod:4607
11753 msgid "See also: C<guestfs_command_lines>"
11754 msgstr ""
11755
11756 # type: =head2
11757 #: ../src/guestfs-actions.pod:4613
11758 msgid "guestfs_sleep"
11759 msgstr ""
11760
11761 # type: verbatim
11762 #: ../src/guestfs-actions.pod:4615
11763 #, no-wrap
11764 msgid ""
11765 " int guestfs_sleep (guestfs_h *g,\n"
11766 "\t\tint secs);\n"
11767 "\n"
11768 msgstr ""
11769
11770 # type: textblock
11771 #: ../src/guestfs-actions.pod:4618 ../fish/guestfish-actions.pod:3566
11772 msgid "Sleep for C<secs> seconds."
11773 msgstr ""
11774
11775 # type: =head2
11776 #: ../src/guestfs-actions.pod:4622 ../src/guestfs-structs.pod:109
11777 msgid "guestfs_stat"
11778 msgstr ""
11779
11780 # type: verbatim
11781 #: ../src/guestfs-actions.pod:4624
11782 #, no-wrap
11783 msgid ""
11784 " struct guestfs_stat *guestfs_stat (guestfs_h *g,\n"
11785 "\t\tconst char *path);\n"
11786 "\n"
11787 msgstr ""
11788
11789 # type: textblock
11790 #: ../src/guestfs-actions.pod:4629 ../fish/guestfish-actions.pod:3574
11791 msgid "This is the same as the C<stat(2)> system call."
11792 msgstr ""
11793
11794 # type: =head2
11795 #: ../src/guestfs-actions.pod:4635 ../src/guestfs-structs.pod:135
11796 msgid "guestfs_statvfs"
11797 msgstr ""
11798
11799 # type: verbatim
11800 #: ../src/guestfs-actions.pod:4637
11801 #, no-wrap
11802 msgid ""
11803 " struct guestfs_statvfs *guestfs_statvfs (guestfs_h *g,\n"
11804 "\t\tconst char *path);\n"
11805 "\n"
11806 msgstr ""
11807
11808 # type: textblock
11809 #: ../src/guestfs-actions.pod:4640 ../fish/guestfish-actions.pod:3580
11810 msgid ""
11811 "Returns file system statistics for any mounted file system.  C<path> should "
11812 "be a file or directory in the mounted file system (typically it is the mount "
11813 "point itself, but it doesn't need to be)."
11814 msgstr ""
11815
11816 # type: textblock
11817 #: ../src/guestfs-actions.pod:4644 ../fish/guestfish-actions.pod:3584
11818 msgid "This is the same as the C<statvfs(2)> system call."
11819 msgstr ""
11820
11821 # type: textblock
11822 #: ../src/guestfs-actions.pod:4646
11823 msgid ""
11824 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
11825 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
11826 msgstr ""
11827
11828 # type: =head2
11829 #: ../src/guestfs-actions.pod:4650
11830 msgid "guestfs_strings"
11831 msgstr ""
11832
11833 # type: verbatim
11834 #: ../src/guestfs-actions.pod:4652
11835 #, no-wrap
11836 msgid ""
11837 " char **guestfs_strings (guestfs_h *g,\n"
11838 "\t\tconst char *path);\n"
11839 "\n"
11840 msgstr ""
11841
11842 # type: textblock
11843 #: ../src/guestfs-actions.pod:4655 ../fish/guestfish-actions.pod:3590
11844 msgid ""
11845 "This runs the L<strings(1)> command on a file and returns the list of "
11846 "printable strings found."
11847 msgstr ""
11848
11849 # type: =head2
11850 #: ../src/guestfs-actions.pod:4665
11851 msgid "guestfs_strings_e"
11852 msgstr ""
11853
11854 # type: verbatim
11855 #: ../src/guestfs-actions.pod:4667
11856 #, no-wrap
11857 msgid ""
11858 " char **guestfs_strings_e (guestfs_h *g,\n"
11859 "\t\tconst char *encoding,\n"
11860 "\t\tconst char *path);\n"
11861 "\n"
11862 msgstr ""
11863
11864 # type: textblock
11865 #: ../src/guestfs-actions.pod:4671
11866 msgid ""
11867 "This is like the C<guestfs_strings> command, but allows you to specify the "
11868 "encoding of strings that are looked for in the source file C<path>."
11869 msgstr ""
11870
11871 # type: textblock
11872 #: ../src/guestfs-actions.pod:4675 ../fish/guestfish-actions.pod:3604
11873 msgid "Allowed encodings are:"
11874 msgstr ""
11875
11876 # type: =item
11877 #: ../src/guestfs-actions.pod:4679 ../fish/guestfish-actions.pod:3608
11878 msgid "s"
11879 msgstr ""
11880
11881 # type: textblock
11882 #: ../src/guestfs-actions.pod:4681
11883 msgid ""
11884 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
11885 "ISO-8859-X (this is what C<guestfs_strings> uses)."
11886 msgstr ""
11887
11888 # type: =item
11889 #: ../src/guestfs-actions.pod:4684 ../fish/guestfish-actions.pod:3613
11890 msgid "S"
11891 msgstr ""
11892
11893 # type: textblock
11894 #: ../src/guestfs-actions.pod:4686 ../fish/guestfish-actions.pod:3615
11895 msgid "Single 8-bit-byte characters."
11896 msgstr ""
11897
11898 # type: =item
11899 #: ../src/guestfs-actions.pod:4688 ../fish/guestfish-actions.pod:3617
11900 msgid "b"
11901 msgstr ""
11902
11903 # type: textblock
11904 #: ../src/guestfs-actions.pod:4690 ../fish/guestfish-actions.pod:3619
11905 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
11906 msgstr ""
11907
11908 # type: =item
11909 #: ../src/guestfs-actions.pod:4693 ../fish/guestfish-actions.pod:3622
11910 msgid "l (lower case letter L)"
11911 msgstr ""
11912
11913 # type: textblock
11914 #: ../src/guestfs-actions.pod:4695 ../fish/guestfish-actions.pod:3624
11915 msgid ""
11916 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
11917 "examining binaries in Windows guests."
11918 msgstr ""
11919
11920 # type: =item
11921 #: ../src/guestfs-actions.pod:4698 ../fish/guestfish-actions.pod:3627
11922 msgid "B"
11923 msgstr ""
11924
11925 # type: textblock
11926 #: ../src/guestfs-actions.pod:4700 ../fish/guestfish-actions.pod:3629
11927 msgid "32-bit big endian such as UCS-4BE."
11928 msgstr ""
11929
11930 # type: =item
11931 #: ../src/guestfs-actions.pod:4702 ../fish/guestfish-actions.pod:3631
11932 msgid "L"
11933 msgstr ""
11934
11935 # type: textblock
11936 #: ../src/guestfs-actions.pod:4704 ../fish/guestfish-actions.pod:3633
11937 msgid "32-bit little endian such as UCS-4LE."
11938 msgstr ""
11939
11940 # type: textblock
11941 #: ../src/guestfs-actions.pod:4708 ../fish/guestfish-actions.pod:3637
11942 msgid "The returned strings are transcoded to UTF-8."
11943 msgstr ""
11944
11945 # type: =head2
11946 #: ../src/guestfs-actions.pod:4717
11947 msgid "guestfs_swapoff_device"
11948 msgstr ""
11949
11950 # type: verbatim
11951 #: ../src/guestfs-actions.pod:4719
11952 #, no-wrap
11953 msgid ""
11954 " int guestfs_swapoff_device (guestfs_h *g,\n"
11955 "\t\tconst char *device);\n"
11956 "\n"
11957 msgstr ""
11958
11959 # type: textblock
11960 #: ../src/guestfs-actions.pod:4722
11961 msgid ""
11962 "This command disables the libguestfs appliance swap device or partition "
11963 "named C<device>.  See C<guestfs_swapon_device>."
11964 msgstr ""
11965
11966 # type: =head2
11967 #: ../src/guestfs-actions.pod:4728
11968 msgid "guestfs_swapoff_file"
11969 msgstr ""
11970
11971 # type: verbatim
11972 #: ../src/guestfs-actions.pod:4730
11973 #, no-wrap
11974 msgid ""
11975 " int guestfs_swapoff_file (guestfs_h *g,\n"
11976 "\t\tconst char *file);\n"
11977 "\n"
11978 msgstr ""
11979
11980 # type: textblock
11981 #: ../src/guestfs-actions.pod:4733 ../fish/guestfish-actions.pod:3654
11982 msgid "This command disables the libguestfs appliance swap on file."
11983 msgstr ""
11984
11985 # type: =head2
11986 #: ../src/guestfs-actions.pod:4737
11987 msgid "guestfs_swapoff_label"
11988 msgstr ""
11989
11990 # type: verbatim
11991 #: ../src/guestfs-actions.pod:4739
11992 #, no-wrap
11993 msgid ""
11994 " int guestfs_swapoff_label (guestfs_h *g,\n"
11995 "\t\tconst char *label);\n"
11996 "\n"
11997 msgstr ""
11998
11999 # type: textblock
12000 #: ../src/guestfs-actions.pod:4742 ../fish/guestfish-actions.pod:3660
12001 msgid ""
12002 "This command disables the libguestfs appliance swap on labeled swap "
12003 "partition."
12004 msgstr ""
12005
12006 # type: =head2
12007 #: ../src/guestfs-actions.pod:4747
12008 msgid "guestfs_swapoff_uuid"
12009 msgstr ""
12010
12011 # type: verbatim
12012 #: ../src/guestfs-actions.pod:4749
12013 #, no-wrap
12014 msgid ""
12015 " int guestfs_swapoff_uuid (guestfs_h *g,\n"
12016 "\t\tconst char *uuid);\n"
12017 "\n"
12018 msgstr ""
12019
12020 # type: textblock
12021 #: ../src/guestfs-actions.pod:4752 ../fish/guestfish-actions.pod:3667
12022 msgid ""
12023 "This command disables the libguestfs appliance swap partition with the given "
12024 "UUID."
12025 msgstr ""
12026
12027 # type: =head2
12028 #: ../src/guestfs-actions.pod:4757
12029 msgid "guestfs_swapon_device"
12030 msgstr ""
12031
12032 # type: verbatim
12033 #: ../src/guestfs-actions.pod:4759
12034 #, no-wrap
12035 msgid ""
12036 " int guestfs_swapon_device (guestfs_h *g,\n"
12037 "\t\tconst char *device);\n"
12038 "\n"
12039 msgstr ""
12040
12041 # type: textblock
12042 #: ../src/guestfs-actions.pod:4762
12043 msgid ""
12044 "This command enables the libguestfs appliance to use the swap device or "
12045 "partition named C<device>.  The increased memory is made available for all "
12046 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
12047 msgstr ""
12048
12049 # type: textblock
12050 #: ../src/guestfs-actions.pod:4767 ../fish/guestfish-actions.pod:3679
12051 msgid ""
12052 "Note that you should not swap to existing guest swap partitions unless you "
12053 "know what you are doing.  They may contain hibernation information, or other "
12054 "information that the guest doesn't want you to trash.  You also risk leaking "
12055 "information about the host to the guest this way.  Instead, attach a new "
12056 "host device to the guest and swap on that."
12057 msgstr ""
12058
12059 # type: =head2
12060 #: ../src/guestfs-actions.pod:4776
12061 msgid "guestfs_swapon_file"
12062 msgstr ""
12063
12064 # type: verbatim
12065 #: ../src/guestfs-actions.pod:4778
12066 #, no-wrap
12067 msgid ""
12068 " int guestfs_swapon_file (guestfs_h *g,\n"
12069 "\t\tconst char *file);\n"
12070 "\n"
12071 msgstr ""
12072
12073 # type: textblock
12074 #: ../src/guestfs-actions.pod:4781
12075 msgid ""
12076 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
12077 "notes."
12078 msgstr ""
12079
12080 # type: =head2
12081 #: ../src/guestfs-actions.pod:4786
12082 msgid "guestfs_swapon_label"
12083 msgstr ""
12084
12085 # type: verbatim
12086 #: ../src/guestfs-actions.pod:4788
12087 #, no-wrap
12088 msgid ""
12089 " int guestfs_swapon_label (guestfs_h *g,\n"
12090 "\t\tconst char *label);\n"
12091 "\n"
12092 msgstr ""
12093
12094 # type: textblock
12095 #: ../src/guestfs-actions.pod:4791
12096 msgid ""
12097 "This command enables swap to a labeled swap partition.  See "
12098 "C<guestfs_swapon_device> for other notes."
12099 msgstr ""
12100
12101 # type: =head2
12102 #: ../src/guestfs-actions.pod:4796
12103 msgid "guestfs_swapon_uuid"
12104 msgstr ""
12105
12106 # type: verbatim
12107 #: ../src/guestfs-actions.pod:4798
12108 #, no-wrap
12109 msgid ""
12110 " int guestfs_swapon_uuid (guestfs_h *g,\n"
12111 "\t\tconst char *uuid);\n"
12112 "\n"
12113 msgstr ""
12114
12115 # type: textblock
12116 #: ../src/guestfs-actions.pod:4801
12117 msgid ""
12118 "This command enables swap to a swap partition with the given UUID.  See "
12119 "C<guestfs_swapon_device> for other notes."
12120 msgstr ""
12121
12122 # type: =head2
12123 #: ../src/guestfs-actions.pod:4806
12124 msgid "guestfs_sync"
12125 msgstr ""
12126
12127 # type: verbatim
12128 #: ../src/guestfs-actions.pod:4808
12129 #, no-wrap
12130 msgid ""
12131 " int guestfs_sync (guestfs_h *g);\n"
12132 "\n"
12133 msgstr ""
12134
12135 # type: textblock
12136 #: ../src/guestfs-actions.pod:4810 ../fish/guestfish-actions.pod:3711
12137 msgid ""
12138 "This syncs the disk, so that any writes are flushed through to the "
12139 "underlying disk image."
12140 msgstr ""
12141
12142 # type: textblock
12143 #: ../src/guestfs-actions.pod:4813 ../fish/guestfish-actions.pod:3714
12144 msgid ""
12145 "You should always call this if you have modified a disk image, before "
12146 "closing the handle."
12147 msgstr ""
12148
12149 # type: =head2
12150 #: ../src/guestfs-actions.pod:4818
12151 msgid "guestfs_tail"
12152 msgstr ""
12153
12154 # type: verbatim
12155 #: ../src/guestfs-actions.pod:4820
12156 #, no-wrap
12157 msgid ""
12158 " char **guestfs_tail (guestfs_h *g,\n"
12159 "\t\tconst char *path);\n"
12160 "\n"
12161 msgstr ""
12162
12163 # type: textblock
12164 #: ../src/guestfs-actions.pod:4823 ../fish/guestfish-actions.pod:3721
12165 msgid "This command returns up to the last 10 lines of a file as a list of strings."
12166 msgstr ""
12167
12168 # type: =head2
12169 #: ../src/guestfs-actions.pod:4833
12170 msgid "guestfs_tail_n"
12171 msgstr ""
12172
12173 # type: verbatim
12174 #: ../src/guestfs-actions.pod:4835
12175 #, no-wrap
12176 msgid ""
12177 " char **guestfs_tail_n (guestfs_h *g,\n"
12178 "\t\tint nrlines,\n"
12179 "\t\tconst char *path);\n"
12180 "\n"
12181 msgstr ""
12182
12183 # type: textblock
12184 #: ../src/guestfs-actions.pod:4839 ../fish/guestfish-actions.pod:3731
12185 msgid ""
12186 "If the parameter C<nrlines> is a positive number, this returns the last "
12187 "C<nrlines> lines of the file C<path>."
12188 msgstr ""
12189
12190 # type: textblock
12191 #: ../src/guestfs-actions.pod:4842 ../fish/guestfish-actions.pod:3734
12192 msgid ""
12193 "If the parameter C<nrlines> is a negative number, this returns lines from "
12194 "the file C<path>, starting with the C<-nrlines>th line."
12195 msgstr ""
12196
12197 # type: =head2
12198 #: ../src/guestfs-actions.pod:4854
12199 msgid "guestfs_tar_in"
12200 msgstr ""
12201
12202 # type: verbatim
12203 #: ../src/guestfs-actions.pod:4856
12204 #, no-wrap
12205 msgid ""
12206 " int guestfs_tar_in (guestfs_h *g,\n"
12207 "\t\tconst char *tarfile,\n"
12208 "\t\tconst char *directory);\n"
12209 "\n"
12210 msgstr ""
12211
12212 # type: textblock
12213 #: ../src/guestfs-actions.pod:4860 ../fish/guestfish-actions.pod:3746
12214 msgid ""
12215 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
12216 "tar file) into C<directory>."
12217 msgstr ""
12218
12219 # type: textblock
12220 #: ../src/guestfs-actions.pod:4863
12221 msgid "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
12222 msgstr ""
12223
12224 # type: =head2
12225 #: ../src/guestfs-actions.pod:4868
12226 msgid "guestfs_tar_out"
12227 msgstr ""
12228
12229 # type: verbatim
12230 #: ../src/guestfs-actions.pod:4870
12231 #, no-wrap
12232 msgid ""
12233 " int guestfs_tar_out (guestfs_h *g,\n"
12234 "\t\tconst char *directory,\n"
12235 "\t\tconst char *tarfile);\n"
12236 "\n"
12237 msgstr ""
12238
12239 # type: textblock
12240 #: ../src/guestfs-actions.pod:4874 ../fish/guestfish-actions.pod:3758
12241 msgid ""
12242 "This command packs the contents of C<directory> and downloads it to local "
12243 "file C<tarfile>."
12244 msgstr ""
12245
12246 # type: textblock
12247 #: ../src/guestfs-actions.pod:4877
12248 msgid ""
12249 "To download a compressed tarball, use C<guestfs_tgz_out> or "
12250 "C<guestfs_txz_out>."
12251 msgstr ""
12252
12253 # type: =head2
12254 #: ../src/guestfs-actions.pod:4882
12255 msgid "guestfs_tgz_in"
12256 msgstr ""
12257
12258 # type: verbatim
12259 #: ../src/guestfs-actions.pod:4884
12260 #, no-wrap
12261 msgid ""
12262 " int guestfs_tgz_in (guestfs_h *g,\n"
12263 "\t\tconst char *tarball,\n"
12264 "\t\tconst char *directory);\n"
12265 "\n"
12266 msgstr ""
12267
12268 # type: textblock
12269 #: ../src/guestfs-actions.pod:4888 ../fish/guestfish-actions.pod:3770
12270 msgid ""
12271 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
12272 "tar file) into C<directory>."
12273 msgstr ""
12274
12275 # type: textblock
12276 #: ../src/guestfs-actions.pod:4891
12277 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
12278 msgstr ""
12279
12280 # type: =head2
12281 #: ../src/guestfs-actions.pod:4895
12282 msgid "guestfs_tgz_out"
12283 msgstr ""
12284
12285 # type: verbatim
12286 #: ../src/guestfs-actions.pod:4897
12287 #, no-wrap
12288 msgid ""
12289 " int guestfs_tgz_out (guestfs_h *g,\n"
12290 "\t\tconst char *directory,\n"
12291 "\t\tconst char *tarball);\n"
12292 "\n"
12293 msgstr ""
12294
12295 # type: textblock
12296 #: ../src/guestfs-actions.pod:4901 ../fish/guestfish-actions.pod:3781
12297 msgid ""
12298 "This command packs the contents of C<directory> and downloads it to local "
12299 "file C<tarball>."
12300 msgstr ""
12301
12302 # type: textblock
12303 #: ../src/guestfs-actions.pod:4904
12304 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
12305 msgstr ""
12306
12307 # type: =head2
12308 #: ../src/guestfs-actions.pod:4908
12309 msgid "guestfs_touch"
12310 msgstr ""
12311
12312 # type: verbatim
12313 #: ../src/guestfs-actions.pod:4910
12314 #, no-wrap
12315 msgid ""
12316 " int guestfs_touch (guestfs_h *g,\n"
12317 "\t\tconst char *path);\n"
12318 "\n"
12319 msgstr ""
12320
12321 # type: textblock
12322 #: ../src/guestfs-actions.pod:4913 ../fish/guestfish-actions.pod:3792
12323 msgid ""
12324 "Touch acts like the L<touch(1)> command.  It can be used to update the "
12325 "timestamps on a file, or, if the file does not exist, to create a new "
12326 "zero-length file."
12327 msgstr ""
12328
12329 # type: textblock
12330 #: ../src/guestfs-actions.pod:4917 ../fish/guestfish-actions.pod:3796
12331 msgid ""
12332 "This command only works on regular files, and will fail on other file types "
12333 "such as directories, symbolic links, block special etc."
12334 msgstr ""
12335
12336 # type: =head2
12337 #: ../src/guestfs-actions.pod:4922
12338 msgid "guestfs_truncate"
12339 msgstr ""
12340
12341 # type: verbatim
12342 #: ../src/guestfs-actions.pod:4924
12343 #, no-wrap
12344 msgid ""
12345 " int guestfs_truncate (guestfs_h *g,\n"
12346 "\t\tconst char *path);\n"
12347 "\n"
12348 msgstr ""
12349
12350 # type: textblock
12351 #: ../src/guestfs-actions.pod:4927 ../fish/guestfish-actions.pod:3803
12352 msgid ""
12353 "This command truncates C<path> to a zero-length file.  The file must exist "
12354 "already."
12355 msgstr ""
12356
12357 # type: =head2
12358 #: ../src/guestfs-actions.pod:4932
12359 msgid "guestfs_truncate_size"
12360 msgstr ""
12361
12362 # type: verbatim
12363 #: ../src/guestfs-actions.pod:4934
12364 #, no-wrap
12365 msgid ""
12366 " int guestfs_truncate_size (guestfs_h *g,\n"
12367 "\t\tconst char *path,\n"
12368 "\t\tint64_t size);\n"
12369 "\n"
12370 msgstr ""
12371
12372 # type: textblock
12373 #: ../src/guestfs-actions.pod:4938 ../fish/guestfish-actions.pod:3810
12374 msgid ""
12375 "This command truncates C<path> to size C<size> bytes.  The file must exist "
12376 "already."
12377 msgstr ""
12378
12379 # type: textblock
12380 #: ../src/guestfs-actions.pod:4941
12381 msgid ""
12382 "If the current file size is less than C<size> then the file is extended to "
12383 "the required size with zero bytes.  This creates a sparse file (ie. disk "
12384 "blocks are not allocated for the file until you write to it).  To create a "
12385 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
12386 msgstr ""
12387
12388 # type: =head2
12389 #: ../src/guestfs-actions.pod:4949
12390 msgid "guestfs_tune2fs_l"
12391 msgstr ""
12392
12393 # type: verbatim
12394 #: ../src/guestfs-actions.pod:4951
12395 #, no-wrap
12396 msgid ""
12397 " char **guestfs_tune2fs_l (guestfs_h *g,\n"
12398 "\t\tconst char *device);\n"
12399 "\n"
12400 msgstr ""
12401
12402 # type: textblock
12403 #: ../src/guestfs-actions.pod:4954 ../fish/guestfish-actions.pod:3823
12404 msgid ""
12405 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
12406 "C<device>."
12407 msgstr ""
12408
12409 # type: textblock
12410 #: ../src/guestfs-actions.pod:4957 ../fish/guestfish-actions.pod:3826
12411 msgid ""
12412 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
12413 "for more details.  The list of fields returned isn't clearly defined, and "
12414 "depends on both the version of C<tune2fs> that libguestfs was built against, "
12415 "and the filesystem itself."
12416 msgstr ""
12417
12418 # type: =head2
12419 #: ../src/guestfs-actions.pod:4968
12420 msgid "guestfs_txz_in"
12421 msgstr ""
12422
12423 # type: verbatim
12424 #: ../src/guestfs-actions.pod:4970
12425 #, no-wrap
12426 msgid ""
12427 " int guestfs_txz_in (guestfs_h *g,\n"
12428 "\t\tconst char *tarball,\n"
12429 "\t\tconst char *directory);\n"
12430 "\n"
12431 msgstr ""
12432
12433 # type: textblock
12434 #: ../src/guestfs-actions.pod:4974 ../fish/guestfish-actions.pod:3835
12435 msgid ""
12436 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
12437 "tar file) into C<directory>."
12438 msgstr ""
12439
12440 # type: =head2
12441 #: ../src/guestfs-actions.pod:4979
12442 msgid "guestfs_txz_out"
12443 msgstr ""
12444
12445 # type: verbatim
12446 #: ../src/guestfs-actions.pod:4981
12447 #, no-wrap
12448 msgid ""
12449 " int guestfs_txz_out (guestfs_h *g,\n"
12450 "\t\tconst char *directory,\n"
12451 "\t\tconst char *tarball);\n"
12452 "\n"
12453 msgstr ""
12454
12455 # type: textblock
12456 #: ../src/guestfs-actions.pod:4985 ../fish/guestfish-actions.pod:3844
12457 msgid ""
12458 "This command packs the contents of C<directory> and downloads it to local "
12459 "file C<tarball> (as an xz compressed tar archive)."
12460 msgstr ""
12461
12462 # type: =head2
12463 #: ../src/guestfs-actions.pod:4990
12464 msgid "guestfs_umask"
12465 msgstr ""
12466
12467 # type: verbatim
12468 #: ../src/guestfs-actions.pod:4992
12469 #, no-wrap
12470 msgid ""
12471 " int guestfs_umask (guestfs_h *g,\n"
12472 "\t\tint mask);\n"
12473 "\n"
12474 msgstr ""
12475
12476 # type: textblock
12477 #: ../src/guestfs-actions.pod:4995 ../fish/guestfish-actions.pod:3853
12478 msgid ""
12479 "This function sets the mask used for creating new files and device nodes to "
12480 "C<mask & 0777>."
12481 msgstr ""
12482
12483 # type: textblock
12484 #: ../src/guestfs-actions.pod:4998 ../fish/guestfish-actions.pod:3856
12485 msgid ""
12486 "Typical umask values would be C<022> which creates new files with "
12487 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
12488 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
12489 msgstr ""
12490
12491 # type: textblock
12492 #: ../src/guestfs-actions.pod:5003 ../fish/guestfish-actions.pod:3861
12493 msgid ""
12494 "The default umask is C<022>.  This is important because it means that "
12495 "directories and device nodes will be created with C<0644> or C<0755> mode "
12496 "even if you specify C<0777>."
12497 msgstr ""
12498
12499 # type: textblock
12500 #: ../src/guestfs-actions.pod:5007
12501 msgid ""
12502 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
12503 "C<guestfs_mkdir>."
12504 msgstr ""
12505
12506 # type: textblock
12507 #: ../src/guestfs-actions.pod:5010 ../fish/guestfish-actions.pod:3868
12508 msgid "This call returns the previous umask."
12509 msgstr ""
12510
12511 # type: =head2
12512 #: ../src/guestfs-actions.pod:5014
12513 msgid "guestfs_umount"
12514 msgstr ""
12515
12516 # type: verbatim
12517 #: ../src/guestfs-actions.pod:5016
12518 #, no-wrap
12519 msgid ""
12520 " int guestfs_umount (guestfs_h *g,\n"
12521 "\t\tconst char *pathordevice);\n"
12522 "\n"
12523 msgstr ""
12524
12525 # type: textblock
12526 #: ../src/guestfs-actions.pod:5019 ../fish/guestfish-actions.pod:3874
12527 msgid ""
12528 "This unmounts the given filesystem.  The filesystem may be specified either "
12529 "by its mountpoint (path) or the device which contains the filesystem."
12530 msgstr ""
12531
12532 # type: =head2
12533 #: ../src/guestfs-actions.pod:5025
12534 msgid "guestfs_umount_all"
12535 msgstr ""
12536
12537 # type: verbatim
12538 #: ../src/guestfs-actions.pod:5027
12539 #, no-wrap
12540 msgid ""
12541 " int guestfs_umount_all (guestfs_h *g);\n"
12542 "\n"
12543 msgstr ""
12544
12545 # type: textblock
12546 #: ../src/guestfs-actions.pod:5029 ../fish/guestfish-actions.pod:3882
12547 msgid "This unmounts all mounted filesystems."
12548 msgstr ""
12549
12550 # type: textblock
12551 #: ../src/guestfs-actions.pod:5031 ../fish/guestfish-actions.pod:3884
12552 msgid "Some internal mounts are not unmounted by this call."
12553 msgstr ""
12554
12555 # type: =head2
12556 #: ../src/guestfs-actions.pod:5035
12557 msgid "guestfs_upload"
12558 msgstr ""
12559
12560 # type: verbatim
12561 #: ../src/guestfs-actions.pod:5037
12562 #, no-wrap
12563 msgid ""
12564 " int guestfs_upload (guestfs_h *g,\n"
12565 "\t\tconst char *filename,\n"
12566 "\t\tconst char *remotefilename);\n"
12567 "\n"
12568 msgstr ""
12569
12570 # type: textblock
12571 #: ../src/guestfs-actions.pod:5041 ../fish/guestfish-actions.pod:3890
12572 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
12573 msgstr ""
12574
12575 # type: textblock
12576 #: ../src/guestfs-actions.pod:5046
12577 msgid "See also C<guestfs_download>."
12578 msgstr ""
12579
12580 # type: =head2
12581 #: ../src/guestfs-actions.pod:5050
12582 msgid "guestfs_utimens"
12583 msgstr ""
12584
12585 # type: verbatim
12586 #: ../src/guestfs-actions.pod:5052
12587 #, no-wrap
12588 msgid ""
12589 " int guestfs_utimens (guestfs_h *g,\n"
12590 "\t\tconst char *path,\n"
12591 "\t\tint64_t atsecs,\n"
12592 "\t\tint64_t atnsecs,\n"
12593 "\t\tint64_t mtsecs,\n"
12594 "\t\tint64_t mtnsecs);\n"
12595 "\n"
12596 msgstr ""
12597
12598 # type: textblock
12599 #: ../src/guestfs-actions.pod:5059 ../fish/guestfish-actions.pod:3903
12600 msgid "This command sets the timestamps of a file with nanosecond precision."
12601 msgstr ""
12602
12603 # type: textblock
12604 #: ../src/guestfs-actions.pod:5062 ../fish/guestfish-actions.pod:3906
12605 msgid ""
12606 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
12607 "from the epoch."
12608 msgstr ""
12609
12610 # type: textblock
12611 #: ../src/guestfs-actions.pod:5065 ../fish/guestfish-actions.pod:3909
12612 msgid ""
12613 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
12614 "nanoseconds from the epoch."
12615 msgstr ""
12616
12617 # type: textblock
12618 #: ../src/guestfs-actions.pod:5068 ../fish/guestfish-actions.pod:3912
12619 msgid ""
12620 "If the C<*nsecs> field contains the special value C<-1> then the "
12621 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
12622 "ignored in this case)."
12623 msgstr ""
12624
12625 # type: textblock
12626 #: ../src/guestfs-actions.pod:5072 ../fish/guestfish-actions.pod:3916
12627 msgid ""
12628 "If the C<*nsecs> field contains the special value C<-2> then the "
12629 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
12630 "in this case)."
12631 msgstr ""
12632
12633 # type: =head2
12634 #: ../src/guestfs-actions.pod:5078 ../src/guestfs-structs.pod:175
12635 msgid "guestfs_version"
12636 msgstr ""
12637
12638 # type: verbatim
12639 #: ../src/guestfs-actions.pod:5080
12640 #, no-wrap
12641 msgid ""
12642 " struct guestfs_version *guestfs_version (guestfs_h *g);\n"
12643 "\n"
12644 msgstr ""
12645
12646 # type: textblock
12647 #: ../src/guestfs-actions.pod:5082 ../fish/guestfish-actions.pod:3924
12648 msgid "Return the libguestfs version number that the program is linked against."
12649 msgstr ""
12650
12651 # type: textblock
12652 #: ../src/guestfs-actions.pod:5085 ../fish/guestfish-actions.pod:3927
12653 msgid ""
12654 "Note that because of dynamic linking this is not necessarily the version of "
12655 "libguestfs that you compiled against.  You can compile the program, and then "
12656 "at runtime dynamically link against a completely different C<libguestfs.so> "
12657 "library."
12658 msgstr ""
12659
12660 # type: textblock
12661 #: ../src/guestfs-actions.pod:5090 ../fish/guestfish-actions.pod:3932
12662 msgid ""
12663 "This call was added in version C<1.0.58>.  In previous versions of "
12664 "libguestfs there was no way to get the version number.  From C code you can "
12665 "use dynamic linker functions to find out if this symbol exists (if it "
12666 "doesn't, then it's an earlier version)."
12667 msgstr ""
12668
12669 # type: textblock
12670 #: ../src/guestfs-actions.pod:5096 ../fish/guestfish-actions.pod:3938
12671 msgid ""
12672 "The call returns a structure with four elements.  The first three (C<major>, "
12673 "C<minor> and C<release>) are numbers and correspond to the usual version "
12674 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
12675 "but may be used for distro-specific information."
12676 msgstr ""
12677
12678 # type: textblock
12679 #: ../src/guestfs-actions.pod:5102 ../fish/guestfish-actions.pod:3944
12680 msgid "To construct the original version string: C<$major.$minor.$release$extra>"
12681 msgstr ""
12682
12683 # type: textblock
12684 #: ../src/guestfs-actions.pod:5105 ../fish/guestfish-actions.pod:3947
12685 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
12686 msgstr ""
12687
12688 # type: textblock
12689 #: ../src/guestfs-actions.pod:5107
12690 msgid ""
12691 "I<Note:> Don't use this call to test for availability of features.  In "
12692 "enterprise distributions we backport features from later versions into "
12693 "earlier versions, making this an unreliable way to test for features.  Use "
12694 "C<guestfs_available> instead."
12695 msgstr ""
12696
12697 # type: textblock
12698 #: ../src/guestfs-actions.pod:5113
12699 msgid ""
12700 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
12701 "error.  I<The caller must call C<guestfs_free_version> after use>."
12702 msgstr ""
12703
12704 # type: =head2
12705 #: ../src/guestfs-actions.pod:5117
12706 msgid "guestfs_vfs_label"
12707 msgstr ""
12708
12709 # type: verbatim
12710 #: ../src/guestfs-actions.pod:5119
12711 #, no-wrap
12712 msgid ""
12713 " char *guestfs_vfs_label (guestfs_h *g,\n"
12714 "\t\tconst char *device);\n"
12715 "\n"
12716 msgstr ""
12717
12718 # type: textblock
12719 #: ../src/guestfs-actions.pod:5122 ../fish/guestfish-actions.pod:3959
12720 msgid "This returns the filesystem label of the filesystem on C<device>."
12721 msgstr ""
12722
12723 # type: textblock
12724 #: ../src/guestfs-actions.pod:5125 ../fish/guestfish-actions.pod:3962
12725 msgid "If the filesystem is unlabeled, this returns the empty string."
12726 msgstr ""
12727
12728 # type: textblock
12729 #: ../src/guestfs-actions.pod:5127
12730 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
12731 msgstr ""
12732
12733 # type: =head2
12734 #: ../src/guestfs-actions.pod:5132
12735 msgid "guestfs_vfs_type"
12736 msgstr ""
12737
12738 # type: verbatim
12739 #: ../src/guestfs-actions.pod:5134
12740 #, no-wrap
12741 msgid ""
12742 " char *guestfs_vfs_type (guestfs_h *g,\n"
12743 "\t\tconst char *device);\n"
12744 "\n"
12745 msgstr ""
12746
12747 # type: textblock
12748 #: ../src/guestfs-actions.pod:5137 ../fish/guestfish-actions.pod:3970
12749 msgid ""
12750 "This command gets the filesystem type corresponding to the filesystem on "
12751 "C<device>."
12752 msgstr ""
12753
12754 # type: textblock
12755 #: ../src/guestfs-actions.pod:5140 ../fish/guestfish-actions.pod:3973
12756 msgid ""
12757 "For most filesystems, the result is the name of the Linux VFS module which "
12758 "would be used to mount this filesystem if you mounted it without specifying "
12759 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
12760 msgstr ""
12761
12762 # type: =head2
12763 #: ../src/guestfs-actions.pod:5148
12764 msgid "guestfs_vfs_uuid"
12765 msgstr ""
12766
12767 # type: verbatim
12768 #: ../src/guestfs-actions.pod:5150
12769 #, no-wrap
12770 msgid ""
12771 " char *guestfs_vfs_uuid (guestfs_h *g,\n"
12772 "\t\tconst char *device);\n"
12773 "\n"
12774 msgstr ""
12775
12776 # type: textblock
12777 #: ../src/guestfs-actions.pod:5153 ../fish/guestfish-actions.pod:3982
12778 msgid "This returns the filesystem UUID of the filesystem on C<device>."
12779 msgstr ""
12780
12781 # type: textblock
12782 #: ../src/guestfs-actions.pod:5156 ../fish/guestfish-actions.pod:3985
12783 msgid "If the filesystem does not have a UUID, this returns the empty string."
12784 msgstr ""
12785
12786 # type: textblock
12787 #: ../src/guestfs-actions.pod:5158
12788 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
12789 msgstr ""
12790
12791 # type: =head2
12792 #: ../src/guestfs-actions.pod:5163
12793 msgid "guestfs_vg_activate"
12794 msgstr ""
12795
12796 # type: verbatim
12797 #: ../src/guestfs-actions.pod:5165
12798 #, no-wrap
12799 msgid ""
12800 " int guestfs_vg_activate (guestfs_h *g,\n"
12801 "\t\tint activate,\n"
12802 "\t\tchar *const *volgroups);\n"
12803 "\n"
12804 msgstr ""
12805
12806 # type: textblock
12807 #: ../src/guestfs-actions.pod:5169 ../fish/guestfish-actions.pod:3993
12808 msgid ""
12809 "This command activates or (if C<activate> is false) deactivates all logical "
12810 "volumes in the listed volume groups C<volgroups>.  If activated, then they "
12811 "are made known to the kernel, ie. they appear as C</dev/mapper> devices.  If "
12812 "deactivated, then those devices disappear."
12813 msgstr ""
12814
12815 # type: textblock
12816 #: ../src/guestfs-actions.pod:5175 ../fish/guestfish-actions.pod:3999
12817 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
12818 msgstr ""
12819
12820 # type: textblock
12821 #: ../src/guestfs-actions.pod:5177 ../fish/guestfish-actions.pod:4001
12822 msgid ""
12823 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
12824 "activated or deactivated."
12825 msgstr ""
12826
12827 # type: =head2
12828 #: ../src/guestfs-actions.pod:5182
12829 msgid "guestfs_vg_activate_all"
12830 msgstr ""
12831
12832 # type: verbatim
12833 #: ../src/guestfs-actions.pod:5184
12834 #, no-wrap
12835 msgid ""
12836 " int guestfs_vg_activate_all (guestfs_h *g,\n"
12837 "\t\tint activate);\n"
12838 "\n"
12839 msgstr ""
12840
12841 # type: textblock
12842 #: ../src/guestfs-actions.pod:5187 ../fish/guestfish-actions.pod:4008
12843 msgid ""
12844 "This command activates or (if C<activate> is false) deactivates all logical "
12845 "volumes in all volume groups.  If activated, then they are made known to the "
12846 "kernel, ie. they appear as C</dev/mapper> devices.  If deactivated, then "
12847 "those devices disappear."
12848 msgstr ""
12849
12850 # type: textblock
12851 #: ../src/guestfs-actions.pod:5193 ../fish/guestfish-actions.pod:4014
12852 msgid "This command is the same as running C<vgchange -a y|n>"
12853 msgstr ""
12854
12855 # type: =head2
12856 #: ../src/guestfs-actions.pod:5197
12857 msgid "guestfs_vgcreate"
12858 msgstr ""
12859
12860 # type: verbatim
12861 #: ../src/guestfs-actions.pod:5199
12862 #, no-wrap
12863 msgid ""
12864 " int guestfs_vgcreate (guestfs_h *g,\n"
12865 "\t\tconst char *volgroup,\n"
12866 "\t\tchar *const *physvols);\n"
12867 "\n"
12868 msgstr ""
12869
12870 # type: textblock
12871 #: ../src/guestfs-actions.pod:5203 ../fish/guestfish-actions.pod:4020
12872 msgid ""
12873 "This creates an LVM volume group called C<volgroup> from the non-empty list "
12874 "of physical volumes C<physvols>."
12875 msgstr ""
12876
12877 # type: =head2
12878 #: ../src/guestfs-actions.pod:5208
12879 msgid "guestfs_vglvuuids"
12880 msgstr ""
12881
12882 # type: verbatim
12883 #: ../src/guestfs-actions.pod:5210
12884 #, no-wrap
12885 msgid ""
12886 " char **guestfs_vglvuuids (guestfs_h *g,\n"
12887 "\t\tconst char *vgname);\n"
12888 "\n"
12889 msgstr ""
12890
12891 # type: textblock
12892 #: ../src/guestfs-actions.pod:5213 ../fish/guestfish-actions.pod:4027
12893 msgid ""
12894 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
12895 "volumes created in this volume group."
12896 msgstr ""
12897
12898 # type: textblock
12899 #: ../src/guestfs-actions.pod:5216
12900 msgid ""
12901 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
12902 "associate logical volumes and volume groups."
12903 msgstr ""
12904
12905 # type: textblock
12906 #: ../src/guestfs-actions.pod:5219
12907 msgid "See also C<guestfs_vgpvuuids>."
12908 msgstr ""
12909
12910 # type: =head2
12911 #: ../src/guestfs-actions.pod:5225
12912 msgid "guestfs_vgpvuuids"
12913 msgstr ""
12914
12915 # type: verbatim
12916 #: ../src/guestfs-actions.pod:5227
12917 #, no-wrap
12918 msgid ""
12919 " char **guestfs_vgpvuuids (guestfs_h *g,\n"
12920 "\t\tconst char *vgname);\n"
12921 "\n"
12922 msgstr ""
12923
12924 # type: textblock
12925 #: ../src/guestfs-actions.pod:5230 ../fish/guestfish-actions.pod:4039
12926 msgid ""
12927 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
12928 "volumes that this volume group resides on."
12929 msgstr ""
12930
12931 # type: textblock
12932 #: ../src/guestfs-actions.pod:5233
12933 msgid ""
12934 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
12935 "associate physical volumes and volume groups."
12936 msgstr ""
12937
12938 # type: textblock
12939 #: ../src/guestfs-actions.pod:5236
12940 msgid "See also C<guestfs_vglvuuids>."
12941 msgstr ""
12942
12943 # type: =head2
12944 #: ../src/guestfs-actions.pod:5242
12945 msgid "guestfs_vgremove"
12946 msgstr ""
12947
12948 # type: verbatim
12949 #: ../src/guestfs-actions.pod:5244
12950 #, no-wrap
12951 msgid ""
12952 " int guestfs_vgremove (guestfs_h *g,\n"
12953 "\t\tconst char *vgname);\n"
12954 "\n"
12955 msgstr ""
12956
12957 # type: textblock
12958 #: ../src/guestfs-actions.pod:5247 ../fish/guestfish-actions.pod:4051
12959 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
12960 msgstr ""
12961
12962 # type: textblock
12963 #: ../src/guestfs-actions.pod:5249 ../fish/guestfish-actions.pod:4053
12964 msgid "This also forcibly removes all logical volumes in the volume group (if any)."
12965 msgstr ""
12966
12967 # type: =head2
12968 #: ../src/guestfs-actions.pod:5254
12969 msgid "guestfs_vgrename"
12970 msgstr ""
12971
12972 # type: verbatim
12973 #: ../src/guestfs-actions.pod:5256
12974 #, no-wrap
12975 msgid ""
12976 " int guestfs_vgrename (guestfs_h *g,\n"
12977 "\t\tconst char *volgroup,\n"
12978 "\t\tconst char *newvolgroup);\n"
12979 "\n"
12980 msgstr ""
12981
12982 # type: textblock
12983 #: ../src/guestfs-actions.pod:5260 ../fish/guestfish-actions.pod:4060
12984 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
12985 msgstr ""
12986
12987 # type: =head2
12988 #: ../src/guestfs-actions.pod:5264
12989 msgid "guestfs_vgs"
12990 msgstr ""
12991
12992 # type: verbatim
12993 #: ../src/guestfs-actions.pod:5266
12994 #, no-wrap
12995 msgid ""
12996 " char **guestfs_vgs (guestfs_h *g);\n"
12997 "\n"
12998 msgstr ""
12999
13000 # type: textblock
13001 #: ../src/guestfs-actions.pod:5268 ../fish/guestfish-actions.pod:4066
13002 msgid ""
13003 "List all the volumes groups detected.  This is the equivalent of the "
13004 "L<vgs(8)> command."
13005 msgstr ""
13006
13007 # type: textblock
13008 #: ../src/guestfs-actions.pod:5271 ../fish/guestfish-actions.pod:4069
13009 msgid ""
13010 "This returns a list of just the volume group names that were detected "
13011 "(eg. C<VolGroup00>)."
13012 msgstr ""
13013
13014 # type: textblock
13015 #: ../src/guestfs-actions.pod:5274
13016 msgid "See also C<guestfs_vgs_full>."
13017 msgstr ""
13018
13019 # type: =head2
13020 #: ../src/guestfs-actions.pod:5280
13021 msgid "guestfs_vgs_full"
13022 msgstr ""
13023
13024 # type: verbatim
13025 #: ../src/guestfs-actions.pod:5282
13026 #, no-wrap
13027 msgid ""
13028 " struct guestfs_lvm_vg_list *guestfs_vgs_full (guestfs_h *g);\n"
13029 "\n"
13030 msgstr ""
13031
13032 # type: textblock
13033 #: ../src/guestfs-actions.pod:5284 ../fish/guestfish-actions.pod:4078
13034 msgid ""
13035 "List all the volumes groups detected.  This is the equivalent of the "
13036 "L<vgs(8)> command.  The \"full\" version includes all fields."
13037 msgstr ""
13038
13039 # type: textblock
13040 #: ../src/guestfs-actions.pod:5287
13041 msgid ""
13042 "This function returns a C<struct guestfs_lvm_vg_list *> (see "
13043 "E<lt>guestfs-structs.hE<gt>), or NULL if there was an error.  I<The caller "
13044 "must call C<guestfs_free_lvm_vg_list> after use>."
13045 msgstr ""
13046
13047 # type: =head2
13048 #: ../src/guestfs-actions.pod:5292
13049 msgid "guestfs_vgscan"
13050 msgstr ""
13051
13052 # type: verbatim
13053 #: ../src/guestfs-actions.pod:5294
13054 #, no-wrap
13055 msgid ""
13056 " int guestfs_vgscan (guestfs_h *g);\n"
13057 "\n"
13058 msgstr ""
13059
13060 # type: textblock
13061 #: ../src/guestfs-actions.pod:5296 ../fish/guestfish-actions.pod:4085
13062 msgid ""
13063 "This rescans all block devices and rebuilds the list of LVM physical "
13064 "volumes, volume groups and logical volumes."
13065 msgstr ""
13066
13067 # type: =head2
13068 #: ../src/guestfs-actions.pod:5301
13069 msgid "guestfs_vguuid"
13070 msgstr ""
13071
13072 # type: verbatim
13073 #: ../src/guestfs-actions.pod:5303
13074 #, no-wrap
13075 msgid ""
13076 " char *guestfs_vguuid (guestfs_h *g,\n"
13077 "\t\tconst char *vgname);\n"
13078 "\n"
13079 msgstr ""
13080
13081 # type: textblock
13082 #: ../src/guestfs-actions.pod:5306 ../fish/guestfish-actions.pod:4092
13083 msgid "This command returns the UUID of the LVM VG named C<vgname>."
13084 msgstr ""
13085
13086 # type: =head2
13087 #: ../src/guestfs-actions.pod:5311
13088 msgid "guestfs_wait_ready"
13089 msgstr ""
13090
13091 # type: verbatim
13092 #: ../src/guestfs-actions.pod:5313
13093 #, no-wrap
13094 msgid ""
13095 " int guestfs_wait_ready (guestfs_h *g);\n"
13096 "\n"
13097 msgstr ""
13098
13099 # type: textblock
13100 #: ../src/guestfs-actions.pod:5315
13101 msgid "This function is a no op."
13102 msgstr ""
13103
13104 # type: textblock
13105 #: ../src/guestfs-actions.pod:5317
13106 msgid ""
13107 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
13108 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
13109 "is no longer necessary because C<guestfs_launch> now does the waiting."
13110 msgstr ""
13111
13112 # type: textblock
13113 #: ../src/guestfs-actions.pod:5322
13114 msgid ""
13115 "If you see any calls to this function in code then you can just remove them, "
13116 "unless you want to retain compatibility with older versions of the API."
13117 msgstr ""
13118
13119 # type: =head2
13120 #: ../src/guestfs-actions.pod:5328
13121 msgid "guestfs_wc_c"
13122 msgstr ""
13123
13124 # type: verbatim
13125 #: ../src/guestfs-actions.pod:5330
13126 #, no-wrap
13127 msgid ""
13128 " int guestfs_wc_c (guestfs_h *g,\n"
13129 "\t\tconst char *path);\n"
13130 "\n"
13131 msgstr ""
13132
13133 # type: textblock
13134 #: ../src/guestfs-actions.pod:5333 ../fish/guestfish-actions.pod:4098
13135 msgid ""
13136 "This command counts the characters in a file, using the C<wc -c> external "
13137 "command."
13138 msgstr ""
13139
13140 # type: =head2
13141 #: ../src/guestfs-actions.pod:5338
13142 msgid "guestfs_wc_l"
13143 msgstr ""
13144
13145 # type: verbatim
13146 #: ../src/guestfs-actions.pod:5340
13147 #, no-wrap
13148 msgid ""
13149 " int guestfs_wc_l (guestfs_h *g,\n"
13150 "\t\tconst char *path);\n"
13151 "\n"
13152 msgstr ""
13153
13154 # type: textblock
13155 #: ../src/guestfs-actions.pod:5343 ../fish/guestfish-actions.pod:4105
13156 msgid ""
13157 "This command counts the lines in a file, using the C<wc -l> external "
13158 "command."
13159 msgstr ""
13160
13161 # type: =head2
13162 #: ../src/guestfs-actions.pod:5348
13163 msgid "guestfs_wc_w"
13164 msgstr ""
13165
13166 # type: verbatim
13167 #: ../src/guestfs-actions.pod:5350
13168 #, no-wrap
13169 msgid ""
13170 " int guestfs_wc_w (guestfs_h *g,\n"
13171 "\t\tconst char *path);\n"
13172 "\n"
13173 msgstr ""
13174
13175 # type: textblock
13176 #: ../src/guestfs-actions.pod:5353 ../fish/guestfish-actions.pod:4112
13177 msgid ""
13178 "This command counts the words in a file, using the C<wc -w> external "
13179 "command."
13180 msgstr ""
13181
13182 # type: =head2
13183 #: ../src/guestfs-actions.pod:5358
13184 msgid "guestfs_write"
13185 msgstr ""
13186
13187 # type: verbatim
13188 #: ../src/guestfs-actions.pod:5360
13189 #, no-wrap
13190 msgid ""
13191 " int guestfs_write (guestfs_h *g,\n"
13192 "\t\tconst char *path,\n"
13193 "\t\tconst char *content,\n"
13194 "\t\tsize_t content_size);\n"
13195 "\n"
13196 msgstr ""
13197
13198 # type: textblock
13199 #: ../src/guestfs-actions.pod:5365 ../fish/guestfish-actions.pod:4119
13200 msgid ""
13201 "This call creates a file called C<path>.  The content of the file is the "
13202 "string C<content> (which can contain any 8 bit data)."
13203 msgstr ""
13204
13205 # type: =head2
13206 #: ../src/guestfs-actions.pod:5373
13207 msgid "guestfs_write_file"
13208 msgstr ""
13209
13210 # type: verbatim
13211 #: ../src/guestfs-actions.pod:5375
13212 #, no-wrap
13213 msgid ""
13214 " int guestfs_write_file (guestfs_h *g,\n"
13215 "\t\tconst char *path,\n"
13216 "\t\tconst char *content,\n"
13217 "\t\tint size);\n"
13218 "\n"
13219 msgstr ""
13220
13221 # type: textblock
13222 #: ../src/guestfs-actions.pod:5380 ../fish/guestfish-actions.pod:4129
13223 msgid ""
13224 "This call creates a file called C<path>.  The contents of the file is the "
13225 "string C<content> (which can contain any 8 bit data), with length C<size>."
13226 msgstr ""
13227
13228 # type: textblock
13229 #: ../src/guestfs-actions.pod:5384 ../fish/guestfish-actions.pod:4133
13230 msgid ""
13231 "As a special case, if C<size> is C<0> then the length is calculated using "
13232 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
13233 msgstr ""
13234
13235 # type: textblock
13236 #: ../src/guestfs-actions.pod:5388 ../fish/guestfish-actions.pod:4137
13237 msgid ""
13238 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
13239 "I<not> work, even if the length is specified."
13240 msgstr ""
13241
13242 # type: textblock
13243 #: ../src/guestfs-actions.pod:5396 ../fish/guestfish-actions.pod:4143
13244 msgid "This function is deprecated.  In new code, use the C<write> call instead."
13245 msgstr ""
13246
13247 # type: =head2
13248 #: ../src/guestfs-actions.pod:5403
13249 msgid "guestfs_zegrep"
13250 msgstr ""
13251
13252 # type: verbatim
13253 #: ../src/guestfs-actions.pod:5405
13254 #, no-wrap
13255 msgid ""
13256 " char **guestfs_zegrep (guestfs_h *g,\n"
13257 "\t\tconst char *regex,\n"
13258 "\t\tconst char *path);\n"
13259 "\n"
13260 msgstr ""
13261
13262 # type: textblock
13263 #: ../src/guestfs-actions.pod:5409 ../fish/guestfish-actions.pod:4154
13264 msgid "This calls the external C<zegrep> program and returns the matching lines."
13265 msgstr ""
13266
13267 # type: =head2
13268 #: ../src/guestfs-actions.pod:5419
13269 msgid "guestfs_zegrepi"
13270 msgstr ""
13271
13272 # type: verbatim
13273 #: ../src/guestfs-actions.pod:5421
13274 #, no-wrap
13275 msgid ""
13276 " char **guestfs_zegrepi (guestfs_h *g,\n"
13277 "\t\tconst char *regex,\n"
13278 "\t\tconst char *path);\n"
13279 "\n"
13280 msgstr ""
13281
13282 # type: textblock
13283 #: ../src/guestfs-actions.pod:5425 ../fish/guestfish-actions.pod:4164
13284 msgid "This calls the external C<zegrep -i> program and returns the matching lines."
13285 msgstr ""
13286
13287 # type: =head2
13288 #: ../src/guestfs-actions.pod:5435
13289 msgid "guestfs_zero"
13290 msgstr ""
13291
13292 # type: verbatim
13293 #: ../src/guestfs-actions.pod:5437
13294 #, no-wrap
13295 msgid ""
13296 " int guestfs_zero (guestfs_h *g,\n"
13297 "\t\tconst char *device);\n"
13298 "\n"
13299 msgstr ""
13300
13301 # type: textblock
13302 #: ../src/guestfs-actions.pod:5440 ../fish/guestfish-actions.pod:4174
13303 msgid "This command writes zeroes over the first few blocks of C<device>."
13304 msgstr ""
13305
13306 # type: textblock
13307 #: ../src/guestfs-actions.pod:5442 ../fish/guestfish-actions.pod:4176
13308 msgid ""
13309 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
13310 "securely wipe the device).  It should be sufficient to remove any partition "
13311 "tables, filesystem superblocks and so on."
13312 msgstr ""
13313
13314 # type: textblock
13315 #: ../src/guestfs-actions.pod:5446
13316 msgid "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>."
13317 msgstr ""
13318
13319 # type: =head2
13320 #: ../src/guestfs-actions.pod:5455
13321 msgid "guestfs_zero_device"
13322 msgstr ""
13323
13324 # type: verbatim
13325 #: ../src/guestfs-actions.pod:5457
13326 #, no-wrap
13327 msgid ""
13328 " int guestfs_zero_device (guestfs_h *g,\n"
13329 "\t\tconst char *device);\n"
13330 "\n"
13331 msgstr ""
13332
13333 # type: textblock
13334 #: ../src/guestfs-actions.pod:5460
13335 msgid ""
13336 "This command writes zeroes over the entire C<device>.  Compare with "
13337 "C<guestfs_zero> which just zeroes the first few blocks of a device."
13338 msgstr ""
13339
13340 # type: =head2
13341 #: ../src/guestfs-actions.pod:5474
13342 msgid "guestfs_zerofree"
13343 msgstr ""
13344
13345 # type: verbatim
13346 #: ../src/guestfs-actions.pod:5476
13347 #, no-wrap
13348 msgid ""
13349 " int guestfs_zerofree (guestfs_h *g,\n"
13350 "\t\tconst char *device);\n"
13351 "\n"
13352 msgstr ""
13353
13354 # type: textblock
13355 #: ../src/guestfs-actions.pod:5479 ../fish/guestfish-actions.pod:4197
13356 msgid ""
13357 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
13358 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
13359 "possible to compress the filesystem more effectively."
13360 msgstr ""
13361
13362 # type: textblock
13363 #: ../src/guestfs-actions.pod:5484 ../fish/guestfish-actions.pod:4202
13364 msgid "You should B<not> run this program if the filesystem is mounted."
13365 msgstr ""
13366
13367 # type: textblock
13368 #: ../src/guestfs-actions.pod:5487 ../fish/guestfish-actions.pod:4205
13369 msgid ""
13370 "It is possible that using this program can damage the filesystem or data on "
13371 "the filesystem."
13372 msgstr ""
13373
13374 # type: =head2
13375 #: ../src/guestfs-actions.pod:5492
13376 msgid "guestfs_zfgrep"
13377 msgstr ""
13378
13379 # type: verbatim
13380 #: ../src/guestfs-actions.pod:5494
13381 #, no-wrap
13382 msgid ""
13383 " char **guestfs_zfgrep (guestfs_h *g,\n"
13384 "\t\tconst char *pattern,\n"
13385 "\t\tconst char *path);\n"
13386 "\n"
13387 msgstr ""
13388
13389 # type: textblock
13390 #: ../src/guestfs-actions.pod:5498 ../fish/guestfish-actions.pod:4212
13391 msgid "This calls the external C<zfgrep> program and returns the matching lines."
13392 msgstr ""
13393
13394 # type: =head2
13395 #: ../src/guestfs-actions.pod:5508
13396 msgid "guestfs_zfgrepi"
13397 msgstr ""
13398
13399 # type: verbatim
13400 #: ../src/guestfs-actions.pod:5510
13401 #, no-wrap
13402 msgid ""
13403 " char **guestfs_zfgrepi (guestfs_h *g,\n"
13404 "\t\tconst char *pattern,\n"
13405 "\t\tconst char *path);\n"
13406 "\n"
13407 msgstr ""
13408
13409 # type: textblock
13410 #: ../src/guestfs-actions.pod:5514 ../fish/guestfish-actions.pod:4222
13411 msgid "This calls the external C<zfgrep -i> program and returns the matching lines."
13412 msgstr ""
13413
13414 # type: =head2
13415 #: ../src/guestfs-actions.pod:5524
13416 msgid "guestfs_zfile"
13417 msgstr ""
13418
13419 # type: verbatim
13420 #: ../src/guestfs-actions.pod:5526
13421 #, no-wrap
13422 msgid ""
13423 " char *guestfs_zfile (guestfs_h *g,\n"
13424 "\t\tconst char *meth,\n"
13425 "\t\tconst char *path);\n"
13426 "\n"
13427 msgstr ""
13428
13429 # type: textblock
13430 #: ../src/guestfs-actions.pod:5530 ../fish/guestfish-actions.pod:4232
13431 msgid "This command runs C<file> after first decompressing C<path> using C<method>."
13432 msgstr ""
13433
13434 # type: textblock
13435 #: ../src/guestfs-actions.pod:5533 ../fish/guestfish-actions.pod:4235
13436 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
13437 msgstr ""
13438
13439 # type: textblock
13440 #: ../src/guestfs-actions.pod:5535
13441 msgid ""
13442 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
13443 "files."
13444 msgstr ""
13445
13446 # type: textblock
13447 #: ../src/guestfs-actions.pod:5541 ../fish/guestfish-actions.pod:4240
13448 msgid "This function is deprecated.  In new code, use the C<file> call instead."
13449 msgstr ""
13450
13451 # type: =head2
13452 #: ../src/guestfs-actions.pod:5548
13453 msgid "guestfs_zgrep"
13454 msgstr ""
13455
13456 # type: verbatim
13457 #: ../src/guestfs-actions.pod:5550
13458 #, no-wrap
13459 msgid ""
13460 " char **guestfs_zgrep (guestfs_h *g,\n"
13461 "\t\tconst char *regex,\n"
13462 "\t\tconst char *path);\n"
13463 "\n"
13464 msgstr ""
13465
13466 # type: textblock
13467 #: ../src/guestfs-actions.pod:5554 ../fish/guestfish-actions.pod:4251
13468 msgid "This calls the external C<zgrep> program and returns the matching lines."
13469 msgstr ""
13470
13471 # type: =head2
13472 #: ../src/guestfs-actions.pod:5564
13473 msgid "guestfs_zgrepi"
13474 msgstr ""
13475
13476 # type: verbatim
13477 #: ../src/guestfs-actions.pod:5566
13478 #, no-wrap
13479 msgid ""
13480 " char **guestfs_zgrepi (guestfs_h *g,\n"
13481 "\t\tconst char *regex,\n"
13482 "\t\tconst char *path);\n"
13483 "\n"
13484 msgstr ""
13485
13486 # type: textblock
13487 #: ../src/guestfs-actions.pod:5570 ../fish/guestfish-actions.pod:4261
13488 msgid "This calls the external C<zgrep -i> program and returns the matching lines."
13489 msgstr ""
13490
13491 # type: =item
13492 #: ../src/guestfs-availability.pod:3
13493 msgid "B<augeas>"
13494 msgstr ""
13495
13496 # type: textblock
13497 #: ../src/guestfs-availability.pod:5
13498 msgid ""
13499 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> "
13500 "L</guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> "
13501 "L</guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> "
13502 "L</guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> "
13503 "L</guestfs_aug_rm> L</guestfs_aug_save> L</guestfs_aug_set>"
13504 msgstr ""
13505
13506 # type: =item
13507 #: ../src/guestfs-availability.pod:21
13508 msgid "B<inotify>"
13509 msgstr ""
13510
13511 # type: textblock
13512 #: ../src/guestfs-availability.pod:23
13513 msgid ""
13514 "The following functions: L</guestfs_inotify_add_watch> "
13515 "L</guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> "
13516 "L</guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
13517 msgstr ""
13518
13519 # type: =item
13520 #: ../src/guestfs-availability.pod:31
13521 msgid "B<linuxfsuuid>"
13522 msgstr ""
13523
13524 # type: textblock
13525 #: ../src/guestfs-availability.pod:33
13526 msgid ""
13527 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> "
13528 "L</guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
13529 msgstr ""
13530
13531 # type: =item
13532 #: ../src/guestfs-availability.pod:40
13533 msgid "B<linuxmodules>"
13534 msgstr ""
13535
13536 # type: textblock
13537 #: ../src/guestfs-availability.pod:42
13538 msgid "The following functions: L</guestfs_modprobe>"
13539 msgstr ""
13540
13541 # type: =item
13542 #: ../src/guestfs-availability.pod:45
13543 msgid "B<linuxxattrs>"
13544 msgstr ""
13545
13546 # type: textblock
13547 #: ../src/guestfs-availability.pod:47
13548 msgid ""
13549 "The following functions: L</guestfs_getxattrs> L</guestfs_lgetxattrs> "
13550 "L</guestfs_lremovexattr> L</guestfs_lsetxattr> L</guestfs_lxattrlist> "
13551 "L</guestfs_removexattr> L</guestfs_setxattr>"
13552 msgstr ""
13553
13554 # type: =item
13555 #: ../src/guestfs-availability.pod:56
13556 msgid "B<luks>"
13557 msgstr ""
13558
13559 # type: textblock
13560 #: ../src/guestfs-availability.pod:58
13561 msgid ""
13562 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> "
13563 "L</guestfs_luks_format> L</guestfs_luks_format_cipher> "
13564 "L</guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
13565 msgstr ""
13566
13567 # type: =item
13568 #: ../src/guestfs-availability.pod:67
13569 msgid "B<lvm2>"
13570 msgstr ""
13571
13572 # type: textblock
13573 #: ../src/guestfs-availability.pod:69
13574 msgid ""
13575 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> "
13576 "L</guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> "
13577 "L</guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> "
13578 "L</guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> "
13579 "L</guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> "
13580 "L</guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> "
13581 "L</guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> "
13582 "L</guestfs_vgs_full>"
13583 msgstr ""
13584
13585 # type: =item
13586 #: ../src/guestfs-availability.pod:92
13587 msgid "B<mknod>"
13588 msgstr ""
13589
13590 # type: textblock
13591 #: ../src/guestfs-availability.pod:94
13592 msgid ""
13593 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> "
13594 "L</guestfs_mknod_b> L</guestfs_mknod_c>"
13595 msgstr ""
13596
13597 # type: =item
13598 #: ../src/guestfs-availability.pod:100
13599 msgid "B<ntfs3g>"
13600 msgstr ""
13601
13602 # type: textblock
13603 #: ../src/guestfs-availability.pod:102
13604 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
13605 msgstr ""
13606
13607 # type: =item
13608 #: ../src/guestfs-availability.pod:105
13609 msgid "B<ntfsprogs>"
13610 msgstr ""
13611
13612 # type: textblock
13613 #: ../src/guestfs-availability.pod:107
13614 msgid "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_size>"
13615 msgstr ""
13616
13617 # type: =item
13618 #: ../src/guestfs-availability.pod:111
13619 msgid "B<realpath>"
13620 msgstr ""
13621
13622 # type: textblock
13623 #: ../src/guestfs-availability.pod:113
13624 msgid "The following functions: L</guestfs_realpath>"
13625 msgstr ""
13626
13627 # type: =item
13628 #: ../src/guestfs-availability.pod:116
13629 msgid "B<scrub>"
13630 msgstr ""
13631
13632 # type: textblock
13633 #: ../src/guestfs-availability.pod:118
13634 msgid ""
13635 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> "
13636 "L</guestfs_scrub_freespace>"
13637 msgstr ""
13638
13639 # type: =item
13640 #: ../src/guestfs-availability.pod:123
13641 msgid "B<selinux>"
13642 msgstr ""
13643
13644 # type: textblock
13645 #: ../src/guestfs-availability.pod:125
13646 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
13647 msgstr ""
13648
13649 # type: =item
13650 #: ../src/guestfs-availability.pod:129
13651 msgid "B<xz>"
13652 msgstr ""
13653
13654 # type: textblock
13655 #: ../src/guestfs-availability.pod:131
13656 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
13657 msgstr ""
13658
13659 # type: =item
13660 #: ../src/guestfs-availability.pod:135
13661 msgid "B<zerofree>"
13662 msgstr ""
13663
13664 # type: textblock
13665 #: ../src/guestfs-availability.pod:137
13666 msgid "The following functions: L</guestfs_zerofree>"
13667 msgstr ""
13668
13669 # type: =head2
13670 #: ../src/guestfs-structs.pod:1
13671 msgid "guestfs_int_bool"
13672 msgstr ""
13673
13674 # type: verbatim
13675 #: ../src/guestfs-structs.pod:3
13676 #, no-wrap
13677 msgid ""
13678 " struct guestfs_int_bool {\n"
13679 "   int32_t i;\n"
13680 "   int32_t b;\n"
13681 " };\n"
13682 " \n"
13683 msgstr ""
13684
13685 # type: verbatim
13686 #: ../src/guestfs-structs.pod:8
13687 #, no-wrap
13688 msgid ""
13689 " struct guestfs_int_bool_list {\n"
13690 "   uint32_t len; /* Number of elements in list. */\n"
13691 "   struct guestfs_int_bool *val; /* Elements. */\n"
13692 " };\n"
13693 " \n"
13694 msgstr ""
13695
13696 # type: verbatim
13697 #: ../src/guestfs-structs.pod:13
13698 #, no-wrap
13699 msgid ""
13700 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
13701 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
13702 "\n"
13703 msgstr ""
13704
13705 # type: =head2
13706 #: ../src/guestfs-structs.pod:16
13707 msgid "guestfs_lvm_pv"
13708 msgstr ""
13709
13710 # type: verbatim
13711 #: ../src/guestfs-structs.pod:18
13712 #, no-wrap
13713 msgid ""
13714 " struct guestfs_lvm_pv {\n"
13715 "   char *pv_name;\n"
13716 "   /* The next field is NOT nul-terminated, be careful when printing it: "
13717 "*/\n"
13718 "   char pv_uuid[32];\n"
13719 "   char *pv_fmt;\n"
13720 "   uint64_t pv_size;\n"
13721 "   uint64_t dev_size;\n"
13722 "   uint64_t pv_free;\n"
13723 "   uint64_t pv_used;\n"
13724 "   char *pv_attr;\n"
13725 "   int64_t pv_pe_count;\n"
13726 "   int64_t pv_pe_alloc_count;\n"
13727 "   char *pv_tags;\n"
13728 "   uint64_t pe_start;\n"
13729 "   int64_t pv_mda_count;\n"
13730 "   uint64_t pv_mda_free;\n"
13731 " };\n"
13732 " \n"
13733 msgstr ""
13734
13735 # type: verbatim
13736 #: ../src/guestfs-structs.pod:36
13737 #, no-wrap
13738 msgid ""
13739 " struct guestfs_lvm_pv_list {\n"
13740 "   uint32_t len; /* Number of elements in list. */\n"
13741 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
13742 " };\n"
13743 " \n"
13744 msgstr ""
13745
13746 # type: verbatim
13747 #: ../src/guestfs-structs.pod:41
13748 #, no-wrap
13749 msgid ""
13750 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
13751 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
13752 "\n"
13753 msgstr ""
13754
13755 # type: =head2
13756 #: ../src/guestfs-structs.pod:44
13757 msgid "guestfs_lvm_vg"
13758 msgstr ""
13759
13760 # type: verbatim
13761 #: ../src/guestfs-structs.pod:46
13762 #, no-wrap
13763 msgid ""
13764 " struct guestfs_lvm_vg {\n"
13765 "   char *vg_name;\n"
13766 "   /* The next field is NOT nul-terminated, be careful when printing it: "
13767 "*/\n"
13768 "   char vg_uuid[32];\n"
13769 "   char *vg_fmt;\n"
13770 "   char *vg_attr;\n"
13771 "   uint64_t vg_size;\n"
13772 "   uint64_t vg_free;\n"
13773 "   char *vg_sysid;\n"
13774 "   uint64_t vg_extent_size;\n"
13775 "   int64_t vg_extent_count;\n"
13776 "   int64_t vg_free_count;\n"
13777 "   int64_t max_lv;\n"
13778 "   int64_t max_pv;\n"
13779 "   int64_t pv_count;\n"
13780 "   int64_t lv_count;\n"
13781 "   int64_t snap_count;\n"
13782 "   int64_t vg_seqno;\n"
13783 "   char *vg_tags;\n"
13784 "   int64_t vg_mda_count;\n"
13785 "   uint64_t vg_mda_free;\n"
13786 " };\n"
13787 " \n"
13788 msgstr ""
13789
13790 # type: verbatim
13791 #: ../src/guestfs-structs.pod:69
13792 #, no-wrap
13793 msgid ""
13794 " struct guestfs_lvm_vg_list {\n"
13795 "   uint32_t len; /* Number of elements in list. */\n"
13796 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
13797 " };\n"
13798 " \n"
13799 msgstr ""
13800
13801 # type: verbatim
13802 #: ../src/guestfs-structs.pod:74
13803 #, no-wrap
13804 msgid ""
13805 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
13806 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
13807 "\n"
13808 msgstr ""
13809
13810 # type: =head2
13811 #: ../src/guestfs-structs.pod:77
13812 msgid "guestfs_lvm_lv"
13813 msgstr ""
13814
13815 # type: verbatim
13816 #: ../src/guestfs-structs.pod:79
13817 #, no-wrap
13818 msgid ""
13819 " struct guestfs_lvm_lv {\n"
13820 "   char *lv_name;\n"
13821 "   /* The next field is NOT nul-terminated, be careful when printing it: "
13822 "*/\n"
13823 "   char lv_uuid[32];\n"
13824 "   char *lv_attr;\n"
13825 "   int64_t lv_major;\n"
13826 "   int64_t lv_minor;\n"
13827 "   int64_t lv_kernel_major;\n"
13828 "   int64_t lv_kernel_minor;\n"
13829 "   uint64_t lv_size;\n"
13830 "   int64_t seg_count;\n"
13831 "   char *origin;\n"
13832 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
13833 "   float snap_percent;\n"
13834 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
13835 "   float copy_percent;\n"
13836 "   char *move_pv;\n"
13837 "   char *lv_tags;\n"
13838 "   char *mirror_log;\n"
13839 "   char *modules;\n"
13840 " };\n"
13841 " \n"
13842 msgstr ""
13843
13844 # type: verbatim
13845 #: ../src/guestfs-structs.pod:101
13846 #, no-wrap
13847 msgid ""
13848 " struct guestfs_lvm_lv_list {\n"
13849 "   uint32_t len; /* Number of elements in list. */\n"
13850 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
13851 " };\n"
13852 " \n"
13853 msgstr ""
13854
13855 # type: verbatim
13856 #: ../src/guestfs-structs.pod:106
13857 #, no-wrap
13858 msgid ""
13859 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
13860 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
13861 "\n"
13862 msgstr ""
13863
13864 # type: verbatim
13865 #: ../src/guestfs-structs.pod:111
13866 #, no-wrap
13867 msgid ""
13868 " struct guestfs_stat {\n"
13869 "   int64_t dev;\n"
13870 "   int64_t ino;\n"
13871 "   int64_t mode;\n"
13872 "   int64_t nlink;\n"
13873 "   int64_t uid;\n"
13874 "   int64_t gid;\n"
13875 "   int64_t rdev;\n"
13876 "   int64_t size;\n"
13877 "   int64_t blksize;\n"
13878 "   int64_t blocks;\n"
13879 "   int64_t atime;\n"
13880 "   int64_t mtime;\n"
13881 "   int64_t ctime;\n"
13882 " };\n"
13883 " \n"
13884 msgstr ""
13885
13886 # type: verbatim
13887 #: ../src/guestfs-structs.pod:127
13888 #, no-wrap
13889 msgid ""
13890 " struct guestfs_stat_list {\n"
13891 "   uint32_t len; /* Number of elements in list. */\n"
13892 "   struct guestfs_stat *val; /* Elements. */\n"
13893 " };\n"
13894 " \n"
13895 msgstr ""
13896
13897 # type: verbatim
13898 #: ../src/guestfs-structs.pod:132
13899 #, no-wrap
13900 msgid ""
13901 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
13902 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
13903 "\n"
13904 msgstr ""
13905
13906 # type: verbatim
13907 #: ../src/guestfs-structs.pod:137
13908 #, no-wrap
13909 msgid ""
13910 " struct guestfs_statvfs {\n"
13911 "   int64_t bsize;\n"
13912 "   int64_t frsize;\n"
13913 "   int64_t blocks;\n"
13914 "   int64_t bfree;\n"
13915 "   int64_t bavail;\n"
13916 "   int64_t files;\n"
13917 "   int64_t ffree;\n"
13918 "   int64_t favail;\n"
13919 "   int64_t fsid;\n"
13920 "   int64_t flag;\n"
13921 "   int64_t namemax;\n"
13922 " };\n"
13923 " \n"
13924 msgstr ""
13925
13926 # type: verbatim
13927 #: ../src/guestfs-structs.pod:151
13928 #, no-wrap
13929 msgid ""
13930 " struct guestfs_statvfs_list {\n"
13931 "   uint32_t len; /* Number of elements in list. */\n"
13932 "   struct guestfs_statvfs *val; /* Elements. */\n"
13933 " };\n"
13934 " \n"
13935 msgstr ""
13936
13937 # type: verbatim
13938 #: ../src/guestfs-structs.pod:156
13939 #, no-wrap
13940 msgid ""
13941 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
13942 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
13943 "\n"
13944 msgstr ""
13945
13946 # type: =head2
13947 #: ../src/guestfs-structs.pod:159
13948 msgid "guestfs_dirent"
13949 msgstr ""
13950
13951 # type: verbatim
13952 #: ../src/guestfs-structs.pod:161
13953 #, no-wrap
13954 msgid ""
13955 " struct guestfs_dirent {\n"
13956 "   int64_t ino;\n"
13957 "   char ftyp;\n"
13958 "   char *name;\n"
13959 " };\n"
13960 " \n"
13961 msgstr ""
13962
13963 # type: verbatim
13964 #: ../src/guestfs-structs.pod:167
13965 #, no-wrap
13966 msgid ""
13967 " struct guestfs_dirent_list {\n"
13968 "   uint32_t len; /* Number of elements in list. */\n"
13969 "   struct guestfs_dirent *val; /* Elements. */\n"
13970 " };\n"
13971 " \n"
13972 msgstr ""
13973
13974 # type: verbatim
13975 #: ../src/guestfs-structs.pod:172
13976 #, no-wrap
13977 msgid ""
13978 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
13979 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
13980 "\n"
13981 msgstr ""
13982
13983 # type: verbatim
13984 #: ../src/guestfs-structs.pod:177
13985 #, no-wrap
13986 msgid ""
13987 " struct guestfs_version {\n"
13988 "   int64_t major;\n"
13989 "   int64_t minor;\n"
13990 "   int64_t release;\n"
13991 "   char *extra;\n"
13992 " };\n"
13993 " \n"
13994 msgstr ""
13995
13996 # type: verbatim
13997 #: ../src/guestfs-structs.pod:184
13998 #, no-wrap
13999 msgid ""
14000 " struct guestfs_version_list {\n"
14001 "   uint32_t len; /* Number of elements in list. */\n"
14002 "   struct guestfs_version *val; /* Elements. */\n"
14003 " };\n"
14004 " \n"
14005 msgstr ""
14006
14007 # type: verbatim
14008 #: ../src/guestfs-structs.pod:189
14009 #, no-wrap
14010 msgid ""
14011 " void guestfs_free_version (struct guestfs_free_version *);\n"
14012 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
14013 "\n"
14014 msgstr ""
14015
14016 # type: =head2
14017 #: ../src/guestfs-structs.pod:192
14018 msgid "guestfs_xattr"
14019 msgstr ""
14020
14021 # type: verbatim
14022 #: ../src/guestfs-structs.pod:194
14023 #, no-wrap
14024 msgid ""
14025 " struct guestfs_xattr {\n"
14026 "   char *attrname;\n"
14027 "   /* The next two fields describe a byte array. */\n"
14028 "   uint32_t attrval_len;\n"
14029 "   char *attrval;\n"
14030 " };\n"
14031 " \n"
14032 msgstr ""
14033
14034 # type: verbatim
14035 #: ../src/guestfs-structs.pod:201
14036 #, no-wrap
14037 msgid ""
14038 " struct guestfs_xattr_list {\n"
14039 "   uint32_t len; /* Number of elements in list. */\n"
14040 "   struct guestfs_xattr *val; /* Elements. */\n"
14041 " };\n"
14042 " \n"
14043 msgstr ""
14044
14045 # type: verbatim
14046 #: ../src/guestfs-structs.pod:206
14047 #, no-wrap
14048 msgid ""
14049 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
14050 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
14051 "\n"
14052 msgstr ""
14053
14054 # type: =head2
14055 #: ../src/guestfs-structs.pod:209
14056 msgid "guestfs_inotify_event"
14057 msgstr ""
14058
14059 # type: verbatim
14060 #: ../src/guestfs-structs.pod:211
14061 #, no-wrap
14062 msgid ""
14063 " struct guestfs_inotify_event {\n"
14064 "   int64_t in_wd;\n"
14065 "   uint32_t in_mask;\n"
14066 "   uint32_t in_cookie;\n"
14067 "   char *in_name;\n"
14068 " };\n"
14069 " \n"
14070 msgstr ""
14071
14072 # type: verbatim
14073 #: ../src/guestfs-structs.pod:218
14074 #, no-wrap
14075 msgid ""
14076 " struct guestfs_inotify_event_list {\n"
14077 "   uint32_t len; /* Number of elements in list. */\n"
14078 "   struct guestfs_inotify_event *val; /* Elements. */\n"
14079 " };\n"
14080 " \n"
14081 msgstr ""
14082
14083 # type: verbatim
14084 #: ../src/guestfs-structs.pod:223
14085 #, no-wrap
14086 msgid ""
14087 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
14088 " void guestfs_free_inotify_event_list (struct "
14089 "guestfs_free_inotify_event_list *);\n"
14090 "\n"
14091 msgstr ""
14092
14093 # type: =head2
14094 #: ../src/guestfs-structs.pod:226
14095 msgid "guestfs_partition"
14096 msgstr ""
14097
14098 # type: verbatim
14099 #: ../src/guestfs-structs.pod:228
14100 #, no-wrap
14101 msgid ""
14102 " struct guestfs_partition {\n"
14103 "   int32_t part_num;\n"
14104 "   uint64_t part_start;\n"
14105 "   uint64_t part_end;\n"
14106 "   uint64_t part_size;\n"
14107 " };\n"
14108 " \n"
14109 msgstr ""
14110
14111 # type: verbatim
14112 #: ../src/guestfs-structs.pod:235
14113 #, no-wrap
14114 msgid ""
14115 " struct guestfs_partition_list {\n"
14116 "   uint32_t len; /* Number of elements in list. */\n"
14117 "   struct guestfs_partition *val; /* Elements. */\n"
14118 " };\n"
14119 " \n"
14120 msgstr ""
14121
14122 # type: verbatim
14123 #: ../src/guestfs-structs.pod:240
14124 #, no-wrap
14125 msgid ""
14126 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
14127 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
14128 "\n"
14129 msgstr ""
14130
14131 # type: textblock
14132 #: ../fish/guestfish.pod:5
14133 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
14134 msgstr ""
14135
14136 # type: verbatim
14137 #: ../fish/guestfish.pod:9
14138 #, no-wrap
14139 msgid ""
14140 " guestfish [--options] [commands]\n"
14141 "\n"
14142 msgstr ""
14143
14144 # type: verbatim
14145 #: ../fish/guestfish.pod:11
14146 #, no-wrap
14147 msgid ""
14148 " guestfish\n"
14149 "\n"
14150 msgstr ""
14151
14152 # type: verbatim
14153 #: ../fish/guestfish.pod:13
14154 #, no-wrap
14155 msgid ""
14156 " guestfish -a disk.img\n"
14157 "\n"
14158 msgstr ""
14159
14160 # type: verbatim
14161 #: ../fish/guestfish.pod:15
14162 #, no-wrap
14163 msgid ""
14164 " guestfish -a disk.img -m dev[:mountpoint]\n"
14165 "\n"
14166 msgstr ""
14167
14168 # type: verbatim
14169 #: ../fish/guestfish.pod:17
14170 #, no-wrap
14171 msgid ""
14172 " guestfish -d libvirt-domain\n"
14173 "\n"
14174 msgstr ""
14175
14176 # type: verbatim
14177 #: ../fish/guestfish.pod:19
14178 #, no-wrap
14179 msgid ""
14180 " guestfish -a disk.img -i\n"
14181 "\n"
14182 msgstr ""
14183
14184 # type: verbatim
14185 #: ../fish/guestfish.pod:21
14186 #, no-wrap
14187 msgid ""
14188 " guestfish -d libvirt-domain -i\n"
14189 "\n"
14190 msgstr ""
14191
14192 # type: =head1
14193 #: ../fish/guestfish.pod:23 ../fuse/guestmount.pod:11 ../tools/virt-edit.pl:45 ../tools/virt-rescue.pl:41 ../tools/virt-tar.pl:60 ../tools/virt-win-reg.pl:52
14194 msgid "WARNING"
14195 msgstr ""
14196
14197 # type: textblock
14198 #: ../fish/guestfish.pod:25
14199 msgid ""
14200 "Using guestfish in read/write mode on live virtual machines can be "
14201 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
14202 "option to use guestfish safely if the disk image or virtual machine might be "
14203 "live."
14204 msgstr ""
14205
14206 # type: =head1
14207 #: ../fish/guestfish.pod:30 ../fish/guestfish.pod:729 ../fuse/guestmount.pod:35 ../tools/virt-cat.pl:51 ../tools/virt-edit.pl:59 ../tools/virt-resize.pl:66 ../tools/virt-tar.pl:46
14208 msgid "EXAMPLES"
14209 msgstr ""
14210
14211 # type: =head2
14212 #: ../fish/guestfish.pod:32
14213 msgid "As an interactive shell"
14214 msgstr ""
14215
14216 # type: verbatim
14217 #: ../fish/guestfish.pod:34
14218 #, no-wrap
14219 msgid ""
14220 " $ guestfish\n"
14221 " \n"
14222 msgstr ""
14223
14224 # type: verbatim
14225 #: ../fish/guestfish.pod:36
14226 #, no-wrap
14227 msgid ""
14228 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
14229 " editing virtual machine filesystems.\n"
14230 " \n"
14231 msgstr ""
14232
14233 # type: verbatim
14234 #: ../fish/guestfish.pod:39
14235 #, no-wrap
14236 msgid ""
14237 " Type: 'help' for a list of commands\n"
14238 "       'man' to read the manual\n"
14239 "       'quit' to quit the shell\n"
14240 " \n"
14241 msgstr ""
14242
14243 # type: verbatim
14244 #: ../fish/guestfish.pod:43
14245 #, no-wrap
14246 msgid ""
14247 " ><fs> man\n"
14248 "\n"
14249 msgstr ""
14250
14251 # type: =head2
14252 #: ../fish/guestfish.pod:45
14253 msgid "From shell scripts"
14254 msgstr ""
14255
14256 # type: textblock
14257 #: ../fish/guestfish.pod:47
14258 msgid "Create a new C</etc/motd> file in a guest:"
14259 msgstr ""
14260
14261 # type: verbatim
14262 #: ../fish/guestfish.pod:49
14263 #, no-wrap
14264 msgid ""
14265 " guestfish <<_EOF_\n"
14266 " add disk.img\n"
14267 " run\n"
14268 " mount /dev/vg_guest/lv_root /\n"
14269 " write /etc/motd \"Welcome, new users\"\n"
14270 " _EOF_\n"
14271 "\n"
14272 msgstr ""
14273
14274 # type: textblock
14275 #: ../fish/guestfish.pod:56
14276 msgid "List the LVM logical volumes in a guest:"
14277 msgstr ""
14278
14279 # type: verbatim
14280 #: ../fish/guestfish.pod:58
14281 #, no-wrap
14282 msgid ""
14283 " guestfish -a disk.img --ro <<_EOF_\n"
14284 " run\n"
14285 " lvs\n"
14286 " _EOF_\n"
14287 "\n"
14288 msgstr ""
14289
14290 # type: =head2
14291 #: ../fish/guestfish.pod:63
14292 msgid "On one command line"
14293 msgstr ""
14294
14295 # type: textblock
14296 #: ../fish/guestfish.pod:65
14297 msgid "Update C</etc/resolv.conf> in a guest:"
14298 msgstr ""
14299
14300 # type: verbatim
14301 #: ../fish/guestfish.pod:67
14302 #, no-wrap
14303 msgid ""
14304 " guestfish \\\n"
14305 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
14306 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
14307 "\n"
14308 msgstr ""
14309
14310 # type: textblock
14311 #: ../fish/guestfish.pod:71
14312 msgid "Edit C</boot/grub/grub.conf> interactively:"
14313 msgstr ""
14314
14315 # type: verbatim
14316 #: ../fish/guestfish.pod:73
14317 #, no-wrap
14318 msgid ""
14319 " guestfish --add disk.img \\\n"
14320 "   --mount /dev/vg_guest/lv_root \\\n"
14321 "   --mount /dev/sda1:/boot \\\n"
14322 "   edit /boot/grub/grub.conf\n"
14323 "\n"
14324 msgstr ""
14325
14326 # type: =head2
14327 #: ../fish/guestfish.pod:78
14328 msgid "Mount disks automatically"
14329 msgstr ""
14330
14331 # type: textblock
14332 #: ../fish/guestfish.pod:80
14333 msgid ""
14334 "Use the I<-i> option to automatically mount the disks from a virtual "
14335 "machine:"
14336 msgstr ""
14337
14338 # type: verbatim
14339 #: ../fish/guestfish.pod:83
14340 #, no-wrap
14341 msgid ""
14342 " guestfish --ro -a disk.img -i cat /etc/group\n"
14343 "\n"
14344 msgstr ""
14345
14346 # type: verbatim
14347 #: ../fish/guestfish.pod:85
14348 #, no-wrap
14349 msgid ""
14350 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
14351 "\n"
14352 msgstr ""
14353
14354 # type: =head2
14355 #: ../fish/guestfish.pod:87
14356 msgid "As a script interpreter"
14357 msgstr ""
14358
14359 # type: textblock
14360 #: ../fish/guestfish.pod:89
14361 msgid "Create a 100MB disk containing an ext2-formatted partition:"
14362 msgstr ""
14363
14364 # type: verbatim
14365 #: ../fish/guestfish.pod:91
14366 #, no-wrap
14367 msgid ""
14368 " #!/usr/bin/guestfish -f\n"
14369 " sparse test1.img 100M\n"
14370 " run\n"
14371 " part-disk /dev/sda mbr\n"
14372 " mkfs ext2 /dev/sda1\n"
14373 "\n"
14374 msgstr ""
14375
14376 # type: =head2
14377 #: ../fish/guestfish.pod:97
14378 msgid "Start with a prepared disk"
14379 msgstr ""
14380
14381 # type: textblock
14382 #: ../fish/guestfish.pod:99
14383 msgid ""
14384 "An alternate way to create a 100MB disk called C<test1.img> containing a "
14385 "single ext2-formatted partition:"
14386 msgstr ""
14387
14388 # type: verbatim
14389 #: ../fish/guestfish.pod:102
14390 #, no-wrap
14391 msgid ""
14392 " guestfish -N fs\n"
14393 "\n"
14394 msgstr ""
14395
14396 # type: textblock
14397 #: ../fish/guestfish.pod:104
14398 msgid "To list what is available do:"
14399 msgstr ""
14400
14401 # type: verbatim
14402 #: ../fish/guestfish.pod:106 ../fish/guestfish.pod:720
14403 #, no-wrap
14404 msgid ""
14405 " guestfish -N help | less\n"
14406 "\n"
14407 msgstr ""
14408
14409 # type: =head2
14410 #: ../fish/guestfish.pod:108
14411 msgid "Remote control"
14412 msgstr ""
14413
14414 # type: verbatim
14415 #: ../fish/guestfish.pod:110
14416 #, no-wrap
14417 msgid ""
14418 " eval `guestfish --listen --ro`\n"
14419 " guestfish --remote add disk.img\n"
14420 " guestfish --remote run\n"
14421 " guestfish --remote lvs\n"
14422 "\n"
14423 msgstr ""
14424
14425 # type: textblock
14426 #: ../fish/guestfish.pod:117
14427 msgid ""
14428 "Guestfish is a shell and command-line tool for examining and modifying "
14429 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
14430 "functionality of the guestfs API, see L<guestfs(3)>."
14431 msgstr ""
14432
14433 # type: textblock
14434 #: ../fish/guestfish.pod:121
14435 msgid ""
14436 "Guestfish gives you structured access to the libguestfs API, from shell "
14437 "scripts or the command line or interactively.  If you want to rescue a "
14438 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
14439 "command."
14440 msgstr ""
14441
14442 # type: =head1
14443 #: ../fish/guestfish.pod:126 ../test-tool/libguestfs-test-tool.pod:37 ../fuse/guestmount.pod:70 ../inspector/virt-inspector.pl:75 ../tools/virt-cat.pl:80 ../tools/virt-df.pl:71 ../tools/virt-edit.pl:73 ../tools/virt-list-filesystems.pl:50 ../tools/virt-list-partitions.pl:51 ../tools/virt-ls.pl:79 ../tools/virt-make-fs.pl:153 ../tools/virt-rescue.pl:103 ../tools/virt-resize.pl:233 ../tools/virt-tar.pl:99 ../tools/virt-win-reg.pl:172
14444 msgid "OPTIONS"
14445 msgstr ""
14446
14447 # type: =item
14448 #: ../fish/guestfish.pod:130 ../fuse/guestmount.pod:94 ../inspector/virt-inspector.pl:83 ../tools/virt-cat.pl:88 ../tools/virt-df.pl:79 ../tools/virt-edit.pl:81 ../tools/virt-list-filesystems.pl:58 ../tools/virt-list-partitions.pl:59 ../tools/virt-ls.pl:87 ../tools/virt-make-fs.pl:161 ../tools/virt-rescue.pl:111 ../tools/virt-resize.pl:241 ../tools/virt-tar.pl:107 ../tools/virt-win-reg.pl:180
14449 msgid "B<--help>"
14450 msgstr ""
14451
14452 # type: textblock
14453 #: ../fish/guestfish.pod:132
14454 msgid "Displays general help on options."
14455 msgstr ""
14456
14457 # type: =item
14458 #: ../fish/guestfish.pod:134
14459 msgid "B<-h> | B<--cmd-help>"
14460 msgstr ""
14461
14462 # type: textblock
14463 #: ../fish/guestfish.pod:136
14464 msgid "Lists all available guestfish commands."
14465 msgstr ""
14466
14467 # type: =item
14468 #: ../fish/guestfish.pod:138
14469 msgid "B<-h cmd> | B<--cmd-help cmd>"
14470 msgstr ""
14471
14472 # type: textblock
14473 #: ../fish/guestfish.pod:140
14474 msgid "Displays detailed help on a single command C<cmd>."
14475 msgstr ""
14476
14477 # type: =item
14478 #: ../fish/guestfish.pod:142 ../fuse/guestmount.pod:74
14479 msgid "B<-a image> | B<--add image>"
14480 msgstr ""
14481
14482 # type: textblock
14483 #: ../fish/guestfish.pod:144
14484 msgid "Add a block device or virtual machine image to the shell."
14485 msgstr ""
14486
14487 # type: =item
14488 #: ../fish/guestfish.pod:146
14489 msgid "B<-c URI> | B<--connect URI>"
14490 msgstr ""
14491
14492 # type: textblock
14493 #: ../fish/guestfish.pod:148
14494 msgid ""
14495 "When used in conjunction with the I<-d> option, this specifies the libvirt "
14496 "URI to use.  The default is to use the default libvirt connection."
14497 msgstr ""
14498
14499 # type: =item
14500 #: ../fish/guestfish.pod:152
14501 msgid "B<-d libvirt-domain> | B<--domain libvirt-domain>"
14502 msgstr ""
14503
14504 # type: textblock
14505 #: ../fish/guestfish.pod:154
14506 msgid ""
14507 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
14508 "used, then any libvirt domain can be used.  However in write mode, only "
14509 "libvirt domains which are shut down can be named here."
14510 msgstr ""
14511
14512 # type: =item
14513 #: ../fish/guestfish.pod:158
14514 msgid "B<-D> | B<--no-dest-paths>"
14515 msgstr ""
14516
14517 # type: textblock
14518 #: ../fish/guestfish.pod:160
14519 msgid ""
14520 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
14521 "to hit the tab key to complete paths on the guest filesystem, but this "
14522 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
14523 "allow this feature to be disabled."
14524 msgstr ""
14525
14526 # type: =item
14527 #: ../fish/guestfish.pod:165
14528 msgid "B<-f file> | B<--file file>"
14529 msgstr ""
14530
14531 # type: textblock
14532 #: ../fish/guestfish.pod:167
14533 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
14534 msgstr ""
14535
14536 # type: verbatim
14537 #: ../fish/guestfish.pod:170
14538 #, no-wrap
14539 msgid ""
14540 " #!/usr/bin/guestfish -f\n"
14541 "\n"
14542 msgstr ""
14543
14544 # type: =item
14545 #: ../fish/guestfish.pod:172
14546 msgid "B<-i> | B<--inspector>"
14547 msgstr ""
14548
14549 # type: textblock
14550 #: ../fish/guestfish.pod:174
14551 msgid ""
14552 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
14553 "system and mount filesystems as they would be mounted on the real virtual "
14554 "machine."
14555 msgstr ""
14556
14557 # type: textblock
14558 #: ../fish/guestfish.pod:178
14559 msgid "Typical usage is either:"
14560 msgstr ""
14561
14562 # type: verbatim
14563 #: ../fish/guestfish.pod:180
14564 #, no-wrap
14565 msgid ""
14566 " guestfish -d myguest -i\n"
14567 "\n"
14568 msgstr ""
14569
14570 # type: textblock
14571 #: ../fish/guestfish.pod:182
14572 msgid "(for an inactive libvirt domain called I<myguest>), or:"
14573 msgstr ""
14574
14575 # type: verbatim
14576 #: ../fish/guestfish.pod:184
14577 #, no-wrap
14578 msgid ""
14579 " guestfish --ro -d myguest -i\n"
14580 "\n"
14581 msgstr ""
14582
14583 # type: textblock
14584 #: ../fish/guestfish.pod:186
14585 msgid "(for active domains, readonly), or specify the block device directly:"
14586 msgstr ""
14587
14588 # type: verbatim
14589 #: ../fish/guestfish.pod:188
14590 #, no-wrap
14591 msgid ""
14592 " guestfish -a /dev/Guests/MyGuest -i\n"
14593 "\n"
14594 msgstr ""
14595
14596 # type: textblock
14597 #: ../fish/guestfish.pod:190
14598 msgid ""
14599 "Note that the command line syntax changed slightly over older versions of "
14600 "guestfish.  You can still use the old syntax:"
14601 msgstr ""
14602
14603 # type: verbatim
14604 #: ../fish/guestfish.pod:193
14605 #, no-wrap
14606 msgid ""
14607 " guestfish [--ro] -i disk.img\n"
14608 "\n"
14609 msgstr ""
14610
14611 # type: verbatim
14612 #: ../fish/guestfish.pod:195
14613 #, no-wrap
14614 msgid ""
14615 " guestfish [--ro] -i libvirt-domain\n"
14616 "\n"
14617 msgstr ""
14618
14619 # type: =item
14620 #: ../fish/guestfish.pod:197
14621 msgid "B<--keys-from-stdin>"
14622 msgstr ""
14623
14624 # type: textblock
14625 #: ../fish/guestfish.pod:199
14626 msgid ""
14627 "Read key or passphrase parameters from stdin.  The default is to try to read "
14628 "passphrases from the user by opening C</dev/tty>."
14629 msgstr ""
14630
14631 # type: =item
14632 #: ../fish/guestfish.pod:202
14633 msgid "B<--listen>"
14634 msgstr ""
14635
14636 # type: textblock
14637 #: ../fish/guestfish.pod:204
14638 msgid ""
14639 "Fork into the background and listen for remote commands.  See section "
14640 "L</REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
14641 msgstr ""
14642
14643 # type: =item
14644 #: ../fish/guestfish.pod:207
14645 msgid "B<-m dev[:mountpoint]> | B<--mount dev[:mountpoint]>"
14646 msgstr ""
14647
14648 # type: textblock
14649 #: ../fish/guestfish.pod:209
14650 msgid "Mount the named partition or logical volume on the given mountpoint."
14651 msgstr ""
14652
14653 # type: textblock
14654 #: ../fish/guestfish.pod:211
14655 msgid "If the mountpoint is omitted, it defaults to C</>."
14656 msgstr ""
14657
14658 # type: textblock
14659 #: ../fish/guestfish.pod:213
14660 msgid "You have to mount something on C</> before most commands will work."
14661 msgstr ""
14662
14663 # type: textblock
14664 #: ../fish/guestfish.pod:215
14665 msgid ""
14666 "If any I<-m> or I<--mount> options are given, the guest is automatically "
14667 "launched."
14668 msgstr ""
14669
14670 # type: textblock
14671 #: ../fish/guestfish.pod:218
14672 msgid ""
14673 "If you don't know what filesystems a disk image contains, you can either run "
14674 "guestfish without this option, then list the partitions and LVs available "
14675 "(see L</list-partitions> and L</lvs> commands), or you can use the "
14676 "L<virt-list-filesystems(1)> program."
14677 msgstr ""
14678
14679 # type: =item
14680 #: ../fish/guestfish.pod:223 ../fuse/guestmount.pod:106
14681 msgid "B<-n> | B<--no-sync>"
14682 msgstr ""
14683
14684 # type: textblock
14685 #: ../fish/guestfish.pod:225
14686 msgid ""
14687 "Disable autosync.  This is enabled by default.  See the discussion of "
14688 "autosync in the L<guestfs(3)> manpage."
14689 msgstr ""
14690
14691 # type: =item
14692 #: ../fish/guestfish.pod:228
14693 msgid "B<-N type> | B<--new type> | B<-N help>"
14694 msgstr ""
14695
14696 # type: textblock
14697 #: ../fish/guestfish.pod:230
14698 msgid ""
14699 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
14700 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
14701 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
14702 "IMAGES> below."
14703 msgstr ""
14704
14705 # type: =item
14706 #: ../fish/guestfish.pod:235
14707 msgid "B<--progress-bars>"
14708 msgstr ""
14709
14710 # type: textblock
14711 #: ../fish/guestfish.pod:237
14712 msgid "Enable progress bars, even when guestfish is used non-interactively."
14713 msgstr ""
14714
14715 # type: textblock
14716 #: ../fish/guestfish.pod:239
14717 msgid ""
14718 "Progress bars are enabled by default when guestfish is used as an "
14719 "interactive shell."
14720 msgstr ""
14721
14722 # type: =item
14723 #: ../fish/guestfish.pod:242
14724 msgid "B<--no-progress-bars>"
14725 msgstr ""
14726
14727 # type: textblock
14728 #: ../fish/guestfish.pod:244
14729 msgid "Disable progress bars."
14730 msgstr ""
14731
14732 # type: =item
14733 #: ../fish/guestfish.pod:246
14734 msgid "B<--remote[=pid]>"
14735 msgstr ""
14736
14737 # type: textblock
14738 #: ../fish/guestfish.pod:248
14739 msgid ""
14740 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
14741 "CONTROL GUESTFISH OVER A SOCKET> below."
14742 msgstr ""
14743
14744 # type: =item
14745 #: ../fish/guestfish.pod:251 ../fuse/guestmount.pod:148
14746 msgid "B<-r> | B<--ro>"
14747 msgstr ""
14748
14749 # type: textblock
14750 #: ../fish/guestfish.pod:253
14751 msgid ""
14752 "This changes the I<-a> and I<-m> options so that disks are added and mounts "
14753 "are done read-only (see L<guestfs(3)/guestfs_mount_ro>)."
14754 msgstr ""
14755
14756 # type: textblock
14757 #: ../fish/guestfish.pod:256 ../tools/virt-rescue.pl:162
14758 msgid ""
14759 "The option must always be used if the disk image or virtual machine might be "
14760 "running, and is generally recommended in cases where you don't need write "
14761 "access to the disk."
14762 msgstr ""
14763
14764 # type: textblock
14765 #: ../fish/guestfish.pod:260
14766 msgid ""
14767 "Note that prepared disk images created with I<-N> are not affected by the "
14768 "I<--ro> option."
14769 msgstr ""
14770
14771 # type: =item
14772 #: ../fish/guestfish.pod:263 ../fuse/guestmount.pod:158 ../tools/virt-rescue.pl:170
14773 msgid "B<--selinux>"
14774 msgstr ""
14775
14776 # type: textblock
14777 #: ../fish/guestfish.pod:265
14778 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
14779 msgstr ""
14780
14781 # type: =item
14782 #: ../fish/guestfish.pod:267 ../fuse/guestmount.pod:168
14783 msgid "B<-v> | B<--verbose>"
14784 msgstr ""
14785
14786 # type: textblock
14787 #: ../fish/guestfish.pod:269
14788 msgid ""
14789 "Enable very verbose messages.  This is particularly useful if you find a "
14790 "bug."
14791 msgstr ""
14792
14793 # type: =item
14794 #: ../fish/guestfish.pod:272 ../fuse/guestmount.pod:172
14795 msgid "B<-V> | B<--version>"
14796 msgstr ""
14797
14798 # type: textblock
14799 #: ../fish/guestfish.pod:274
14800 msgid "Display the guestfish / libguestfs version number and exit."
14801 msgstr ""
14802
14803 # type: =item
14804 #: ../fish/guestfish.pod:276
14805 msgid "B<-x>"
14806 msgstr ""
14807
14808 # type: textblock
14809 #: ../fish/guestfish.pod:278
14810 msgid "Echo each command before executing it."
14811 msgstr ""
14812
14813 # type: =head1
14814 #: ../fish/guestfish.pod:282
14815 msgid "COMMANDS ON COMMAND LINE"
14816 msgstr ""
14817
14818 # type: textblock
14819 #: ../fish/guestfish.pod:284
14820 msgid "Any additional (non-option) arguments are treated as commands to execute."
14821 msgstr ""
14822
14823 # type: textblock
14824 #: ../fish/guestfish.pod:287
14825 msgid ""
14826 "Commands to execute should be separated by a colon (C<:>), where the colon "
14827 "is a separate parameter.  Thus:"
14828 msgstr ""
14829
14830 # type: verbatim
14831 #: ../fish/guestfish.pod:290
14832 #, no-wrap
14833 msgid ""
14834 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
14835 "\n"
14836 msgstr ""
14837
14838 # type: textblock
14839 #: ../fish/guestfish.pod:292
14840 msgid ""
14841 "If there are no additional arguments, then we enter a shell, either an "
14842 "interactive shell with a prompt (if the input is a terminal) or a "
14843 "non-interactive shell."
14844 msgstr ""
14845
14846 # type: textblock
14847 #: ../fish/guestfish.pod:296
14848 msgid ""
14849 "In either command line mode or non-interactive shell, the first command that "
14850 "gives an error causes the whole shell to exit.  In interactive mode (with a "
14851 "prompt) if a command fails, you can continue to enter commands."
14852 msgstr ""
14853
14854 # type: =head1
14855 #: ../fish/guestfish.pod:301
14856 msgid "USING launch (OR run)"
14857 msgstr ""
14858
14859 # type: textblock
14860 #: ../fish/guestfish.pod:303
14861 msgid ""
14862 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
14863 "then launch it, then mount any disks you need, and finally issue "
14864 "actions/commands.  So the general order of the day is:"
14865 msgstr ""
14866
14867 # type: textblock
14868 #: ../fish/guestfish.pod:311
14869 msgid "add or -a/--add"
14870 msgstr ""
14871
14872 # type: textblock
14873 #: ../fish/guestfish.pod:315
14874 msgid "launch (aka run)"
14875 msgstr ""
14876
14877 # type: textblock
14878 #: ../fish/guestfish.pod:319
14879 msgid "mount or -m/--mount"
14880 msgstr ""
14881
14882 # type: textblock
14883 #: ../fish/guestfish.pod:323
14884 msgid "any other commands"
14885 msgstr ""
14886
14887 # type: textblock
14888 #: ../fish/guestfish.pod:327
14889 msgid ""
14890 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
14891 "guest before mounting or performing any other commands."
14892 msgstr ""
14893
14894 # type: textblock
14895 #: ../fish/guestfish.pod:330
14896 msgid ""
14897 "The only exception is that if the I<-m> or I<--mount> option was given, the "
14898 "guest is automatically run for you (simply because guestfish can't mount the "
14899 "disks you asked for without doing this)."
14900 msgstr ""
14901
14902 # type: =head1
14903 #: ../fish/guestfish.pod:334
14904 msgid "QUOTING"
14905 msgstr ""
14906
14907 # type: textblock
14908 #: ../fish/guestfish.pod:336
14909 msgid ""
14910 "You can quote ordinary parameters using either single or double quotes.  For "
14911 "example:"
14912 msgstr ""
14913
14914 # type: verbatim
14915 #: ../fish/guestfish.pod:339
14916 #, no-wrap
14917 msgid ""
14918 " add \"file with a space.img\"\n"
14919 "\n"
14920 msgstr ""
14921
14922 # type: verbatim
14923 #: ../fish/guestfish.pod:341
14924 #, no-wrap
14925 msgid ""
14926 " rm '/file name'\n"
14927 "\n"
14928 msgstr ""
14929
14930 # type: verbatim
14931 #: ../fish/guestfish.pod:343
14932 #, no-wrap
14933 msgid ""
14934 " rm '/\"'\n"
14935 "\n"
14936 msgstr ""
14937
14938 # type: textblock
14939 #: ../fish/guestfish.pod:345
14940 msgid ""
14941 "A few commands require a list of strings to be passed.  For these, use a "
14942 "whitespace-separated list, enclosed in quotes.  Strings containing "
14943 "whitespace to be passed through must be enclosed in single quotes.  A "
14944 "literal single quote must be escaped with a backslash."
14945 msgstr ""
14946
14947 # type: verbatim
14948 #: ../fish/guestfish.pod:350
14949 #, no-wrap
14950 msgid ""
14951 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
14952 " command \"/bin/echo 'foo      bar'\"\n"
14953 " command \"/bin/echo \\'foo\\'\"\n"
14954 "\n"
14955 msgstr ""
14956
14957 # type: =head1
14958 #: ../fish/guestfish.pod:354
14959 msgid "NUMBERS"
14960 msgstr ""
14961
14962 # type: textblock
14963 #: ../fish/guestfish.pod:356
14964 msgid "This section applies to all commands which can take integers as parameters."
14965 msgstr ""
14966
14967 # type: =head2
14968 #: ../fish/guestfish.pod:359
14969 msgid "SIZE SUFFIX"
14970 msgstr ""
14971
14972 # type: textblock
14973 #: ../fish/guestfish.pod:361
14974 msgid ""
14975 "When the command takes a parameter measured in bytes, you can use one of the "
14976 "following suffixes to specify kilobytes, megabytes and larger sizes:"
14977 msgstr ""
14978
14979 # type: =item
14980 #: ../fish/guestfish.pod:367
14981 msgid "B<k> or B<K> or B<KiB>"
14982 msgstr ""
14983
14984 # type: textblock
14985 #: ../fish/guestfish.pod:369
14986 msgid "The size in kilobytes (multiplied by 1024)."
14987 msgstr ""
14988
14989 # type: =item
14990 #: ../fish/guestfish.pod:371
14991 msgid "B<KB>"
14992 msgstr ""
14993
14994 # type: textblock
14995 #: ../fish/guestfish.pod:373
14996 msgid "The size in SI 1000 byte units."
14997 msgstr ""
14998
14999 # type: =item
15000 #: ../fish/guestfish.pod:375
15001 msgid "B<M> or B<MiB>"
15002 msgstr ""
15003
15004 # type: textblock
15005 #: ../fish/guestfish.pod:377
15006 msgid "The size in megabytes (multiplied by 1048576)."
15007 msgstr ""
15008
15009 # type: =item
15010 #: ../fish/guestfish.pod:379
15011 msgid "B<MB>"
15012 msgstr ""
15013
15014 # type: textblock
15015 #: ../fish/guestfish.pod:381
15016 msgid "The size in SI 1000000 byte units."
15017 msgstr ""
15018
15019 # type: =item
15020 #: ../fish/guestfish.pod:383
15021 msgid "B<G> or B<GiB>"
15022 msgstr ""
15023
15024 # type: textblock
15025 #: ../fish/guestfish.pod:385
15026 msgid "The size in gigabytes (multiplied by 2**30)."
15027 msgstr ""
15028
15029 # type: =item
15030 #: ../fish/guestfish.pod:387
15031 msgid "B<GB>"
15032 msgstr ""
15033
15034 # type: textblock
15035 #: ../fish/guestfish.pod:389
15036 msgid "The size in SI 10**9 byte units."
15037 msgstr ""
15038
15039 # type: =item
15040 #: ../fish/guestfish.pod:391
15041 msgid "B<T> or B<TiB>"
15042 msgstr ""
15043
15044 # type: textblock
15045 #: ../fish/guestfish.pod:393
15046 msgid "The size in terabytes (multiplied by 2**40)."
15047 msgstr ""
15048
15049 # type: =item
15050 #: ../fish/guestfish.pod:395
15051 msgid "B<TB>"
15052 msgstr ""
15053
15054 # type: textblock
15055 #: ../fish/guestfish.pod:397
15056 msgid "The size in SI 10**12 byte units."
15057 msgstr ""
15058
15059 # type: =item
15060 #: ../fish/guestfish.pod:399
15061 msgid "B<P> or B<PiB>"
15062 msgstr ""
15063
15064 # type: textblock
15065 #: ../fish/guestfish.pod:401
15066 msgid "The size in petabytes (multiplied by 2**50)."
15067 msgstr ""
15068
15069 # type: =item
15070 #: ../fish/guestfish.pod:403
15071 msgid "B<PB>"
15072 msgstr ""
15073
15074 # type: textblock
15075 #: ../fish/guestfish.pod:405
15076 msgid "The size in SI 10**15 byte units."
15077 msgstr ""
15078
15079 # type: =item
15080 #: ../fish/guestfish.pod:407
15081 msgid "B<E> or B<EiB>"
15082 msgstr ""
15083
15084 # type: textblock
15085 #: ../fish/guestfish.pod:409
15086 msgid "The size in exabytes (multiplied by 2**60)."
15087 msgstr ""
15088
15089 # type: =item
15090 #: ../fish/guestfish.pod:411
15091 msgid "B<EB>"
15092 msgstr ""
15093
15094 # type: textblock
15095 #: ../fish/guestfish.pod:413
15096 msgid "The size in SI 10**18 byte units."
15097 msgstr ""
15098
15099 # type: =item
15100 #: ../fish/guestfish.pod:415
15101 msgid "B<Z> or B<ZiB>"
15102 msgstr ""
15103
15104 # type: textblock
15105 #: ../fish/guestfish.pod:417
15106 msgid "The size in zettabytes (multiplied by 2**70)."
15107 msgstr ""
15108
15109 # type: =item
15110 #: ../fish/guestfish.pod:419
15111 msgid "B<ZB>"
15112 msgstr ""
15113
15114 # type: textblock
15115 #: ../fish/guestfish.pod:421
15116 msgid "The size in SI 10**21 byte units."
15117 msgstr ""
15118
15119 # type: =item
15120 #: ../fish/guestfish.pod:423
15121 msgid "B<Y> or B<YiB>"
15122 msgstr ""
15123
15124 # type: textblock
15125 #: ../fish/guestfish.pod:425
15126 msgid "The size in yottabytes (multiplied by 2**80)."
15127 msgstr ""
15128
15129 # type: =item
15130 #: ../fish/guestfish.pod:427
15131 msgid "B<YB>"
15132 msgstr ""
15133
15134 # type: textblock
15135 #: ../fish/guestfish.pod:429
15136 msgid "The size in SI 10**24 byte units."
15137 msgstr ""
15138
15139 # type: textblock
15140 #: ../fish/guestfish.pod:433
15141 msgid "For example:"
15142 msgstr ""
15143
15144 # type: verbatim
15145 #: ../fish/guestfish.pod:435
15146 #, no-wrap
15147 msgid ""
15148 " truncate-size /file 1G\n"
15149 "\n"
15150 msgstr ""
15151
15152 # type: textblock
15153 #: ../fish/guestfish.pod:437
15154 msgid "would truncate the file to 1 gigabyte."
15155 msgstr ""
15156
15157 # type: textblock
15158 #: ../fish/guestfish.pod:439
15159 msgid ""
15160 "Be careful because a few commands take sizes in kilobytes or megabytes "
15161 "(eg. the parameter to L</memsize> is specified in megabytes already).  "
15162 "Adding a suffix will probably not do what you expect."
15163 msgstr ""
15164
15165 # type: =head2
15166 #: ../fish/guestfish.pod:443
15167 msgid "OCTAL AND HEXADECIMAL NUMBERS"
15168 msgstr ""
15169
15170 # type: textblock
15171 #: ../fish/guestfish.pod:445
15172 msgid ""
15173 "For specifying the radix (base) use the C convention: C<0> to prefix an "
15174 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
15175 msgstr ""
15176
15177 # type: verbatim
15178 #: ../fish/guestfish.pod:448
15179 #, no-wrap
15180 msgid ""
15181 " 1234      decimal number 1234\n"
15182 " 02322     octal number, equivalent to decimal 1234\n"
15183 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
15184 "\n"
15185 msgstr ""
15186
15187 # type: textblock
15188 #: ../fish/guestfish.pod:452
15189 msgid ""
15190 "When using the C<chmod> command, you almost always want to specify an octal "
15191 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
15192 "L<chmod(1)> program):"
15193 msgstr ""
15194
15195 # type: verbatim
15196 #: ../fish/guestfish.pod:456
15197 #, no-wrap
15198 msgid ""
15199 " chmod 0777 /public  # OK\n"
15200 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
15201 "\n"
15202 msgstr ""
15203
15204 # type: textblock
15205 #: ../fish/guestfish.pod:459
15206 msgid ""
15207 "Commands that return numbers usually print them in decimal, but some "
15208 "commands print numbers in other radices (eg. C<umask> prints the mode in "
15209 "octal, preceeded by C<0>)."
15210 msgstr ""
15211
15212 # type: =head1
15213 #: ../fish/guestfish.pod:463
15214 msgid "WILDCARDS AND GLOBBING"
15215 msgstr ""
15216
15217 # type: textblock
15218 #: ../fish/guestfish.pod:465
15219 msgid ""
15220 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
15221 "(globbing) by default.  So for example the following will not do what you "
15222 "expect:"
15223 msgstr ""
15224
15225 # type: verbatim
15226 #: ../fish/guestfish.pod:469
15227 #, no-wrap
15228 msgid ""
15229 " rm-rf /home/*\n"
15230 "\n"
15231 msgstr ""
15232
15233 # type: textblock
15234 #: ../fish/guestfish.pod:471
15235 msgid ""
15236 "Assuming you don't have a directory literally called C</home/*> then the "
15237 "above command will return an error."
15238 msgstr ""
15239
15240 # type: textblock
15241 #: ../fish/guestfish.pod:474
15242 msgid "To perform wildcard expansion, use the C<glob> command."
15243 msgstr ""
15244
15245 # type: verbatim
15246 #: ../fish/guestfish.pod:476
15247 #, no-wrap
15248 msgid ""
15249 " glob rm-rf /home/*\n"
15250 "\n"
15251 msgstr ""
15252
15253 # type: textblock
15254 #: ../fish/guestfish.pod:478
15255 msgid ""
15256 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
15257 "many times), equivalent to:"
15258 msgstr ""
15259
15260 # type: verbatim
15261 #: ../fish/guestfish.pod:481
15262 #, no-wrap
15263 msgid ""
15264 " rm-rf /home/jim\n"
15265 " rm-rf /home/joe\n"
15266 " rm-rf /home/mary\n"
15267 "\n"
15268 msgstr ""
15269
15270 # type: textblock
15271 #: ../fish/guestfish.pod:485
15272 msgid "C<glob> only works on simple guest paths and not on device names."
15273 msgstr ""
15274
15275 # type: textblock
15276 #: ../fish/guestfish.pod:487
15277 msgid ""
15278 "If you have several parameters, each containing a wildcard, then glob will "
15279 "perform a cartesian product."
15280 msgstr ""
15281
15282 # type: =head1
15283 #: ../fish/guestfish.pod:490
15284 msgid "COMMENTS"
15285 msgstr ""
15286
15287 # type: textblock
15288 #: ../fish/guestfish.pod:492
15289 msgid ""
15290 "Any line which starts with a I<#> character is treated as a comment and "
15291 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
15292 "a command.  For example:"
15293 msgstr ""
15294
15295 # type: verbatim
15296 #: ../fish/guestfish.pod:496
15297 #, no-wrap
15298 msgid ""
15299 " # this is a comment\n"
15300 "         # this is a comment\n"
15301 " foo # NOT a comment\n"
15302 "\n"
15303 msgstr ""
15304
15305 # type: textblock
15306 #: ../fish/guestfish.pod:500
15307 msgid "Blank lines are also ignored."
15308 msgstr ""
15309
15310 # type: =head1
15311 #: ../fish/guestfish.pod:502
15312 msgid "RUNNING COMMANDS LOCALLY"
15313 msgstr ""
15314
15315 # type: textblock
15316 #: ../fish/guestfish.pod:504
15317 msgid ""
15318 "Any line which starts with a I<!> character is treated as a command sent to "
15319 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
15320 msgstr ""
15321
15322 # type: verbatim
15323 #: ../fish/guestfish.pod:508
15324 #, no-wrap
15325 msgid ""
15326 " !mkdir local\n"
15327 " tgz-out /remote local/remote-data.tar.gz\n"
15328 "\n"
15329 msgstr ""
15330
15331 # type: textblock
15332 #: ../fish/guestfish.pod:511
15333 msgid ""
15334 "will create a directory C<local> on the host, and then export the contents "
15335 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
15336 "(See C<tgz-out>)."
15337 msgstr ""
15338
15339 # type: textblock
15340 #: ../fish/guestfish.pod:515
15341 msgid ""
15342 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
15343 "effect, due to the way that subprocesses work in Unix."
15344 msgstr ""
15345
15346 # type: =head1
15347 #: ../fish/guestfish.pod:518
15348 msgid "PIPES"
15349 msgstr ""
15350
15351 # type: textblock
15352 #: ../fish/guestfish.pod:520
15353 msgid ""
15354 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
15355 "command (a guestfish command) to the second command (any host command).  For "
15356 "example:"
15357 msgstr ""
15358
15359 # type: verbatim
15360 #: ../fish/guestfish.pod:524
15361 #, no-wrap
15362 msgid ""
15363 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
15364 "\n"
15365 msgstr ""
15366
15367 # type: textblock
15368 #: ../fish/guestfish.pod:526
15369 msgid ""
15370 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
15371 "program).  The above command would list all accounts in the guest filesystem "
15372 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
15373 msgstr ""
15374
15375 # type: verbatim
15376 #: ../fish/guestfish.pod:531
15377 #, no-wrap
15378 msgid ""
15379 " hexdump /bin/ls | head\n"
15380 " list-devices | tail -1\n"
15381 " tgz-out / - | tar ztf -\n"
15382 "\n"
15383 msgstr ""
15384
15385 # type: textblock
15386 #: ../fish/guestfish.pod:535
15387 msgid ""
15388 "The space before the pipe symbol is required, any space after the pipe "
15389 "symbol is optional.  Everything after the pipe symbol is just passed "
15390 "straight to the host shell, so it can contain redirections, globs and "
15391 "anything else that makes sense on the host side."
15392 msgstr ""
15393
15394 # type: textblock
15395 #: ../fish/guestfish.pod:540
15396 msgid ""
15397 "To use a literal argument which begins with a pipe symbol, you have to quote "
15398 "it, eg:"
15399 msgstr ""
15400
15401 # type: verbatim
15402 #: ../fish/guestfish.pod:543
15403 #, no-wrap
15404 msgid ""
15405 " echo \"|\"\n"
15406 "\n"
15407 msgstr ""
15408
15409 # type: =head1
15410 #: ../fish/guestfish.pod:545
15411 msgid "HOME DIRECTORIES"
15412 msgstr ""
15413
15414 # type: textblock
15415 #: ../fish/guestfish.pod:547
15416 msgid ""
15417 "If a parameter starts with the character C<~> then the tilde may be expanded "
15418 "as a home directory path (either C<~> for the current user's home directory, "
15419 "or C<~user> for another user)."
15420 msgstr ""
15421
15422 # type: textblock
15423 #: ../fish/guestfish.pod:551
15424 msgid ""
15425 "Note that home directory expansion happens for users known I<on the host>, "
15426 "not in the guest filesystem."
15427 msgstr ""
15428
15429 # type: textblock
15430 #: ../fish/guestfish.pod:554
15431 msgid ""
15432 "To use a literal argument which begins with a tilde, you have to quote it, "
15433 "eg:"
15434 msgstr ""
15435
15436 # type: verbatim
15437 #: ../fish/guestfish.pod:557
15438 #, no-wrap
15439 msgid ""
15440 " echo \"~\"\n"
15441 "\n"
15442 msgstr ""
15443
15444 # type: textblock
15445 #: ../fish/guestfish.pod:561
15446 msgid ""
15447 "Libguestfs has some support for Linux guests encrypted according to the "
15448 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
15449 "disk encryption systems used by modern Linux guests.  Currently only "
15450 "LVM-on-LUKS is supported."
15451 msgstr ""
15452
15453 # type: textblock
15454 #: ../fish/guestfish.pod:566
15455 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
15456 msgstr ""
15457
15458 # type: verbatim
15459 #: ../fish/guestfish.pod:568
15460 #, no-wrap
15461 msgid ""
15462 " ><fs> vfs-type /dev/sda2\n"
15463 " crypto_LUKS\n"
15464 "\n"
15465 msgstr ""
15466
15467 # type: textblock
15468 #: ../fish/guestfish.pod:571
15469 msgid ""
15470 "Then open those devices using L</luks-open>.  This creates a device-mapper "
15471 "device called C</dev/mapper/luksdev>."
15472 msgstr ""
15473
15474 # type: verbatim
15475 #: ../fish/guestfish.pod:574
15476 #, no-wrap
15477 msgid ""
15478 " ><fs> luks-open /dev/sda2 luksdev\n"
15479 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
15480 "\n"
15481 msgstr ""
15482
15483 # type: textblock
15484 #: ../fish/guestfish.pod:577
15485 msgid ""
15486 "Finally you have to tell LVM to scan for volume groups on the newly created "
15487 "mapper device:"
15488 msgstr ""
15489
15490 # type: verbatim
15491 #: ../fish/guestfish.pod:580
15492 #, no-wrap
15493 msgid ""
15494 " ><fs> vgscan\n"
15495 " ><fs> vg-activate-all true\n"
15496 "\n"
15497 msgstr ""
15498
15499 # type: textblock
15500 #: ../fish/guestfish.pod:583
15501 msgid "The logical volume(s) can now be mounted in the usual way."
15502 msgstr ""
15503
15504 # type: textblock
15505 #: ../fish/guestfish.pod:585
15506 msgid ""
15507 "Before closing a LUKS device you must unmount any logical volumes on it and "
15508 "deactivate the volume groups by calling C<vg-activate false VG> on each "
15509 "one.  Then you can close the mapper device:"
15510 msgstr ""
15511
15512 # type: verbatim
15513 #: ../fish/guestfish.pod:589
15514 #, no-wrap
15515 msgid ""
15516 " ><fs> vg-activate false /dev/VG\n"
15517 " ><fs> luks-close /dev/mapper/luksdev\n"
15518 "\n"
15519 msgstr ""
15520
15521 # type: =head1
15522 #: ../fish/guestfish.pod:592
15523 msgid "WINDOWS PATHS"
15524 msgstr ""
15525
15526 # type: textblock
15527 #: ../fish/guestfish.pod:594
15528 msgid ""
15529 "If a path is prefixed with C<win:> then you can use Windows-style paths "
15530 "(with some limitations).  The following commands are equivalent:"
15531 msgstr ""
15532
15533 # type: verbatim
15534 #: ../fish/guestfish.pod:597
15535 #, no-wrap
15536 msgid ""
15537 " file /WINDOWS/system32/config/system.LOG\n"
15538 "\n"
15539 msgstr ""
15540
15541 # type: verbatim
15542 #: ../fish/guestfish.pod:599
15543 #, no-wrap
15544 msgid ""
15545 " file win:/windows/system32/config/system.log\n"
15546 "\n"
15547 msgstr ""
15548
15549 # type: verbatim
15550 #: ../fish/guestfish.pod:601
15551 #, no-wrap
15552 msgid ""
15553 " file win:\\windows\\system32\\config\\system.log\n"
15554 "\n"
15555 msgstr ""
15556
15557 # type: verbatim
15558 #: ../fish/guestfish.pod:603
15559 #, no-wrap
15560 msgid ""
15561 " file WIN:C:\\Windows\\SYSTEM32\\conFIG\\SYSTEM.LOG\n"
15562 "\n"
15563 msgstr ""
15564
15565 # type: textblock
15566 #: ../fish/guestfish.pod:605
15567 msgid ""
15568 "This syntax implicitly calls C<case-sensitive-path> (q.v.) so it also "
15569 "handles case insensitivity like Windows would.  This only works in argument "
15570 "positions that expect a path."
15571 msgstr ""
15572
15573 # type: =head1
15574 #: ../fish/guestfish.pod:609
15575 msgid "UPLOADING AND DOWNLOADING FILES"
15576 msgstr ""
15577
15578 # type: textblock
15579 #: ../fish/guestfish.pod:611
15580 msgid ""
15581 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
15582 "others which upload from or download to a local file, you can use the "
15583 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
15584 msgstr ""
15585
15586 # type: verbatim
15587 #: ../fish/guestfish.pod:615
15588 #, no-wrap
15589 msgid ""
15590 " upload - /foo\n"
15591 "\n"
15592 msgstr ""
15593
15594 # type: textblock
15595 #: ../fish/guestfish.pod:617
15596 msgid "reads stdin and creates from that a file C</foo> in the disk image, and:"
15597 msgstr ""
15598
15599 # type: verbatim
15600 #: ../fish/guestfish.pod:620
15601 #, no-wrap
15602 msgid ""
15603 " tar-out /etc - | tar tf -\n"
15604 "\n"
15605 msgstr ""
15606
15607 # type: textblock
15608 #: ../fish/guestfish.pod:622
15609 msgid ""
15610 "writes the tarball to stdout and then pipes that into the external \"tar\" "
15611 "command (see L</PIPES>)."
15612 msgstr ""
15613
15614 # type: textblock
15615 #: ../fish/guestfish.pod:625
15616 msgid ""
15617 "When using C<-> to read from stdin, the input is read up to the end of "
15618 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
15619 "some arbitrary end marker:"
15620 msgstr ""
15621
15622 # type: verbatim
15623 #: ../fish/guestfish.pod:629
15624 #, no-wrap
15625 msgid ""
15626 " upload -<<END /foo\n"
15627 " input line 1\n"
15628 " input line 2\n"
15629 " input line 3\n"
15630 " END\n"
15631 "\n"
15632 msgstr ""
15633
15634 # type: textblock
15635 #: ../fish/guestfish.pod:635
15636 msgid ""
15637 "Any string of characters can be used instead of C<END>.  The end marker must "
15638 "appear on a line of its own, without any preceeding or following characters "
15639 "(not even spaces)."
15640 msgstr ""
15641
15642 # type: textblock
15643 #: ../fish/guestfish.pod:639
15644 msgid ""
15645 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
15646 "upload local files (so-called \"FileIn\" parameters in the generator)."
15647 msgstr ""
15648
15649 # type: =head1
15650 #: ../fish/guestfish.pod:642
15651 msgid "EXIT ON ERROR BEHAVIOUR"
15652 msgstr ""
15653
15654 # type: textblock
15655 #: ../fish/guestfish.pod:644
15656 msgid ""
15657 "By default, guestfish will ignore any errors when in interactive mode "
15658 "(ie. taking commands from a human over a tty), and will exit on the first "
15659 "error in non-interactive mode (scripts, commands given on the command line)."
15660 msgstr ""
15661
15662 # type: textblock
15663 #: ../fish/guestfish.pod:649
15664 msgid ""
15665 "If you prefix a command with a I<-> character, then that command will not "
15666 "cause guestfish to exit, even if that (one) command returns an error."
15667 msgstr ""
15668
15669 # type: =head1
15670 #: ../fish/guestfish.pod:653
15671 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
15672 msgstr ""
15673
15674 # type: textblock
15675 #: ../fish/guestfish.pod:655
15676 msgid ""
15677 "Guestfish can be remote-controlled over a socket.  This is useful "
15678 "particularly in shell scripts where you want to make several different "
15679 "changes to a filesystem, but you don't want the overhead of starting up a "
15680 "guestfish process each time."
15681 msgstr ""
15682
15683 # type: textblock
15684 #: ../fish/guestfish.pod:660
15685 msgid "Start a guestfish server process using:"
15686 msgstr ""
15687
15688 # type: verbatim
15689 #: ../fish/guestfish.pod:662
15690 #, no-wrap
15691 msgid ""
15692 " eval `guestfish --listen`\n"
15693 "\n"
15694 msgstr ""
15695
15696 # type: textblock
15697 #: ../fish/guestfish.pod:664
15698 msgid "and then send it commands by doing:"
15699 msgstr ""
15700
15701 # type: verbatim
15702 #: ../fish/guestfish.pod:666
15703 #, no-wrap
15704 msgid ""
15705 " guestfish --remote cmd [...]\n"
15706 "\n"
15707 msgstr ""
15708
15709 # type: textblock
15710 #: ../fish/guestfish.pod:668
15711 msgid "To cause the server to exit, send it the exit command:"
15712 msgstr ""
15713
15714 # type: verbatim
15715 #: ../fish/guestfish.pod:670
15716 #, no-wrap
15717 msgid ""
15718 " guestfish --remote exit\n"
15719 "\n"
15720 msgstr ""
15721
15722 # type: textblock
15723 #: ../fish/guestfish.pod:672
15724 msgid ""
15725 "Note that the server will normally exit if there is an error in a command.  "
15726 "You can change this in the usual way.  See section L</EXIT ON ERROR "
15727 "BEHAVIOUR>."
15728 msgstr ""
15729
15730 # type: =head2
15731 #: ../fish/guestfish.pod:676
15732 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
15733 msgstr ""
15734
15735 # type: textblock
15736 #: ../fish/guestfish.pod:678
15737 msgid ""
15738 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
15739 "is how the I<--remote> option knows where to send the commands.  You can "
15740 "have several guestfish listener processes running using:"
15741 msgstr ""
15742
15743 # type: verbatim
15744 #: ../fish/guestfish.pod:682
15745 #, no-wrap
15746 msgid ""
15747 " eval `guestfish --listen`\n"
15748 " pid1=$GUESTFISH_PID\n"
15749 " eval `guestfish --listen`\n"
15750 " pid2=$GUESTFISH_PID\n"
15751 " ...\n"
15752 " guestfish --remote=$pid1 cmd\n"
15753 " guestfish --remote=$pid2 cmd\n"
15754 "\n"
15755 msgstr ""
15756
15757 # type: =head2
15758 #: ../fish/guestfish.pod:690
15759 msgid "REMOTE CONTROL DETAILS"
15760 msgstr ""
15761
15762 # type: textblock
15763 #: ../fish/guestfish.pod:692
15764 msgid ""
15765 "Remote control happens over a Unix domain socket called "
15766 "C</tmp/.guestfish-$UID/socket-$PID>, where C<$UID> is the effective user ID "
15767 "of the process, and C<$PID> is the process ID of the server."
15768 msgstr ""
15769
15770 # type: textblock
15771 #: ../fish/guestfish.pod:696
15772 msgid "Guestfish client and server versions must match exactly."
15773 msgstr ""
15774
15775 # type: =head1
15776 #: ../fish/guestfish.pod:698
15777 msgid "PREPARED DISK IMAGES"
15778 msgstr ""
15779
15780 # type: textblock
15781 #: ../fish/guestfish.pod:700
15782 msgid ""
15783 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
15784 "preformatted disk images that guestfish can make for you to save typing.  "
15785 "This is particularly useful for testing purposes.  This option is used "
15786 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
15787 "can be mixed with I<-a>)."
15788 msgstr ""
15789
15790 # type: textblock
15791 #: ../fish/guestfish.pod:706
15792 msgid ""
15793 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
15794 "the second and so on.  Existing files in the current directory are "
15795 "I<overwritten>."
15796 msgstr ""
15797
15798 # type: textblock
15799 #: ../fish/guestfish.pod:710
15800 msgid ""
15801 "The type briefly describes how the disk should be sized, partitioned, how "
15802 "filesystem(s) should be created, and how content should be added.  "
15803 "Optionally the type can be followed by extra parameters, separated by C<:> "
15804 "(colon) characters.  For example, I<-N fs> creates a default 100MB, "
15805 "sparsely-allocated disk, containing a single partition, with the partition "
15806 "formatted as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem "
15807 "on a 1GB disk instead."
15808 msgstr ""
15809
15810 # type: textblock
15811 #: ../fish/guestfish.pod:718
15812 msgid "To list the available types and any extra parameters they take, run:"
15813 msgstr ""
15814
15815 # type: textblock
15816 #: ../fish/guestfish.pod:722
15817 msgid ""
15818 "Note that the prepared filesystem is not mounted.  You would usually have to "
15819 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
15820 msgstr ""
15821
15822 # type: textblock
15823 #: ../fish/guestfish.pod:726
15824 msgid ""
15825 "If any I<-N> or I<--new> options are given, the guest is automatically "
15826 "launched."
15827 msgstr ""
15828
15829 # type: textblock
15830 #: ../fish/guestfish.pod:731
15831 msgid "Create a 100MB disk with an ext4-formatted partition:"
15832 msgstr ""
15833
15834 # type: verbatim
15835 #: ../fish/guestfish.pod:733
15836 #, no-wrap
15837 msgid ""
15838 " guestfish -N fs:ext4\n"
15839 "\n"
15840 msgstr ""
15841
15842 # type: textblock
15843 #: ../fish/guestfish.pod:735
15844 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
15845 msgstr ""
15846
15847 # type: verbatim
15848 #: ../fish/guestfish.pod:737
15849 #, no-wrap
15850 msgid ""
15851 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
15852 "\n"
15853 msgstr ""
15854
15855 # type: textblock
15856 #: ../fish/guestfish.pod:739
15857 msgid "Create a blank 200MB disk:"
15858 msgstr ""
15859
15860 # type: verbatim
15861 #: ../fish/guestfish.pod:741
15862 #, no-wrap
15863 msgid ""
15864 " guestfish -N disk:200M\n"
15865 "\n"
15866 msgstr ""
15867
15868 # type: =head1
15869 #: ../fish/guestfish.pod:743
15870 msgid "PROGRESS BARS"
15871 msgstr ""
15872
15873 # type: textblock
15874 #: ../fish/guestfish.pod:745
15875 msgid ""
15876 "Some (not all) long-running commands send progress notification messages as "
15877 "they are running.  Guestfish turns these messages into progress bars."
15878 msgstr ""
15879
15880 # type: textblock
15881 #: ../fish/guestfish.pod:749
15882 msgid ""
15883 "When a command that supports progress bars takes longer than two seconds to "
15884 "run, and if progress bars are enabled, then you will see one appearing below "
15885 "the command:"
15886 msgstr ""
15887
15888 # type: verbatim
15889 #: ../fish/guestfish.pod:753
15890 #, no-wrap
15891 msgid ""
15892 " ><fs> copy-size /large-file /another-file 2048M\n"
15893 " / 10% [#####-----------------------------------------] 00:30\n"
15894 "\n"
15895 msgstr ""
15896
15897 # type: textblock
15898 #: ../fish/guestfish.pod:756
15899 msgid ""
15900 "The spinner on the left hand side moves round once for every progress "
15901 "notification received from the backend.  This is a (reasonably) golden "
15902 "assurance that the command is \"doing something\" even if the progress bar "
15903 "is not moving, because the command is able to send the progress "
15904 "notifications.  When the bar reaches 100% and the command finishes, the "
15905 "spinner disappears."
15906 msgstr ""
15907
15908 # type: textblock
15909 #: ../fish/guestfish.pod:763
15910 msgid ""
15911 "Progress bars are enabled by default when guestfish is used interactively.  "
15912 "You can enable them even for non-interactive modes using I<--progress-bars>, "
15913 "and you can disable them completely using I<--no-progress-bars>."
15914 msgstr ""
15915
15916 # type: =head1
15917 #: ../fish/guestfish.pod:768
15918 msgid "GUESTFISH COMMANDS"
15919 msgstr ""
15920
15921 # type: textblock
15922 #: ../fish/guestfish.pod:770
15923 msgid ""
15924 "The commands in this section are guestfish convenience commands, in other "
15925 "words, they are not part of the L<guestfs(3)> API."
15926 msgstr ""
15927
15928 # type: =head2
15929 #: ../fish/guestfish.pod:773
15930 msgid "alloc | allocate"
15931 msgstr ""
15932
15933 # type: verbatim
15934 #: ../fish/guestfish.pod:775
15935 #, no-wrap
15936 msgid ""
15937 " alloc filename size\n"
15938 "\n"
15939 msgstr ""
15940
15941 # type: textblock
15942 #: ../fish/guestfish.pod:777
15943 msgid ""
15944 "This creates an empty (zeroed) file of the given size, and then adds so it "
15945 "can be further examined."
15946 msgstr ""
15947
15948 # type: textblock
15949 #: ../fish/guestfish.pod:780 ../fish/guestfish.pod:903
15950 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
15951 msgstr ""
15952
15953 # type: textblock
15954 #: ../fish/guestfish.pod:782 ../fish/guestfish.pod:905
15955 msgid "Size can be specified using standard suffixes, eg. C<1M>."
15956 msgstr ""
15957
15958 # type: =head2
15959 #: ../fish/guestfish.pod:784
15960 msgid "copy-in"
15961 msgstr ""
15962
15963 # type: verbatim
15964 #: ../fish/guestfish.pod:786
15965 #, no-wrap
15966 msgid ""
15967 " copy-in local [local ...] /remotedir\n"
15968 "\n"
15969 msgstr ""
15970
15971 # type: textblock
15972 #: ../fish/guestfish.pod:788
15973 msgid ""
15974 "C<copy-in> copies local files or directories recursively into the disk "
15975 "image, placing them in the directory called C</remotedir> (which must "
15976 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
15977 "other commands as necessary."
15978 msgstr ""
15979
15980 # type: textblock
15981 #: ../fish/guestfish.pod:793
15982 msgid ""
15983 "Multiple local files and directories can be specified, but the last "
15984 "parameter must always be a remote directory.  Wildcards cannot be used."
15985 msgstr ""
15986
15987 # type: =head2
15988 #: ../fish/guestfish.pod:797
15989 msgid "copy-out"
15990 msgstr ""
15991
15992 # type: verbatim
15993 #: ../fish/guestfish.pod:799
15994 #, no-wrap
15995 msgid ""
15996 " copy-out remote [remote ...] localdir\n"
15997 "\n"
15998 msgstr ""
15999
16000 # type: textblock
16001 #: ../fish/guestfish.pod:801
16002 msgid ""
16003 "C<copy-out> copies remote files or directories recursively out of the disk "
16004 "image, placing them on the host disk in a local directory called C<localdir> "
16005 "(which must exist).  This guestfish meta-command turns into a sequence of "
16006 "L</download>, L</tar-out> and other commands as necessary."
16007 msgstr ""
16008
16009 # type: textblock
16010 #: ../fish/guestfish.pod:807
16011 msgid ""
16012 "Multiple remote files and directories can be specified, but the last "
16013 "parameter must always be a local directory.  To download to the current "
16014 "directory, use C<.> as in:"
16015 msgstr ""
16016
16017 # type: verbatim
16018 #: ../fish/guestfish.pod:811
16019 #, no-wrap
16020 msgid ""
16021 " copy-out /home .\n"
16022 "\n"
16023 msgstr ""
16024
16025 # type: textblock
16026 #: ../fish/guestfish.pod:813
16027 msgid ""
16028 "Wildcards cannot be used in the ordinary command, but you can use them with "
16029 "the help of L</glob> like this:"
16030 msgstr ""
16031
16032 # type: verbatim
16033 #: ../fish/guestfish.pod:816
16034 #, no-wrap
16035 msgid ""
16036 " glob copy-out /home/* .\n"
16037 "\n"
16038 msgstr ""
16039
16040 # type: =head2
16041 #: ../fish/guestfish.pod:818
16042 msgid "echo"
16043 msgstr ""
16044
16045 # type: verbatim
16046 #: ../fish/guestfish.pod:820
16047 #, no-wrap
16048 msgid ""
16049 " echo [params ...]\n"
16050 "\n"
16051 msgstr ""
16052
16053 # type: textblock
16054 #: ../fish/guestfish.pod:822
16055 msgid "This echos the parameters to the terminal."
16056 msgstr ""
16057
16058 # type: =head2
16059 #: ../fish/guestfish.pod:824
16060 msgid "edit | vi | emacs"
16061 msgstr ""
16062
16063 # type: verbatim
16064 #: ../fish/guestfish.pod:826
16065 #, no-wrap
16066 msgid ""
16067 " edit filename\n"
16068 "\n"
16069 msgstr ""
16070
16071 # type: textblock
16072 #: ../fish/guestfish.pod:828
16073 msgid ""
16074 "This is used to edit a file.  It downloads the file, edits it locally using "
16075 "your editor, then uploads the result."
16076 msgstr ""
16077
16078 # type: textblock
16079 #: ../fish/guestfish.pod:831
16080 msgid ""
16081 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
16082 "or C<emacs> you will get those corresponding editors."
16083 msgstr ""
16084
16085 # type: =head2
16086 #: ../fish/guestfish.pod:835
16087 msgid "glob"
16088 msgstr ""
16089
16090 # type: verbatim
16091 #: ../fish/guestfish.pod:837
16092 #, no-wrap
16093 msgid ""
16094 " glob command args...\n"
16095 "\n"
16096 msgstr ""
16097
16098 # type: textblock
16099 #: ../fish/guestfish.pod:839
16100 msgid ""
16101 "Expand wildcards in any paths in the args list, and run C<command> "
16102 "repeatedly on each matching path."
16103 msgstr ""
16104
16105 # type: textblock
16106 #: ../fish/guestfish.pod:842
16107 msgid "See section WILDCARDS AND GLOBBING."
16108 msgstr ""
16109
16110 # type: =head2
16111 #: ../fish/guestfish.pod:844
16112 msgid "help"
16113 msgstr ""
16114
16115 # type: verbatim
16116 #: ../fish/guestfish.pod:846
16117 #, no-wrap
16118 msgid ""
16119 " help\n"
16120 " help cmd\n"
16121 "\n"
16122 msgstr ""
16123
16124 # type: textblock
16125 #: ../fish/guestfish.pod:849
16126 msgid ""
16127 "Without any parameter, this lists all commands.  With a C<cmd> parameter, "
16128 "this displays detailed help for a command."
16129 msgstr ""
16130
16131 # type: =head2
16132 #: ../fish/guestfish.pod:852
16133 msgid "lcd"
16134 msgstr ""
16135
16136 # type: verbatim
16137 #: ../fish/guestfish.pod:854
16138 #, no-wrap
16139 msgid ""
16140 " lcd directory\n"
16141 "\n"
16142 msgstr ""
16143
16144 # type: textblock
16145 #: ../fish/guestfish.pod:856
16146 msgid "Change the local directory, ie. the current directory of guestfish itself."
16147 msgstr ""
16148
16149 # type: textblock
16150 #: ../fish/guestfish.pod:859
16151 msgid "Note that C<!cd> won't do what you might expect."
16152 msgstr ""
16153
16154 # type: =head2
16155 #: ../fish/guestfish.pod:861
16156 msgid "man | manual"
16157 msgstr ""
16158
16159 # type: verbatim
16160 #: ../fish/guestfish.pod:863
16161 #, no-wrap
16162 msgid ""
16163 " man\n"
16164 "\n"
16165 msgstr ""
16166
16167 # type: textblock
16168 #: ../fish/guestfish.pod:865
16169 msgid "Opens the manual page for guestfish."
16170 msgstr ""
16171
16172 # type: =head2
16173 #: ../fish/guestfish.pod:867
16174 msgid "more | less"
16175 msgstr ""
16176
16177 # type: verbatim
16178 #: ../fish/guestfish.pod:869
16179 #, no-wrap
16180 msgid ""
16181 " more filename\n"
16182 "\n"
16183 msgstr ""
16184
16185 # type: verbatim
16186 #: ../fish/guestfish.pod:871
16187 #, no-wrap
16188 msgid ""
16189 " less filename\n"
16190 "\n"
16191 msgstr ""
16192
16193 # type: textblock
16194 #: ../fish/guestfish.pod:873
16195 msgid "This is used to view a file."
16196 msgstr ""
16197
16198 # type: textblock
16199 #: ../fish/guestfish.pod:875
16200 msgid ""
16201 "The default viewer is C<$PAGER>.  However if you use the alternate command "
16202 "C<less> you will get the C<less> command specifically."
16203 msgstr ""
16204
16205 # type: =head2
16206 #: ../fish/guestfish.pod:878
16207 msgid "quit | exit"
16208 msgstr ""
16209
16210 # type: textblock
16211 #: ../fish/guestfish.pod:880
16212 msgid "This exits guestfish.  You can also use C<^D> key."
16213 msgstr ""
16214
16215 # type: =head2
16216 #: ../fish/guestfish.pod:882
16217 msgid "reopen"
16218 msgstr ""
16219
16220 # type: verbatim
16221 #: ../fish/guestfish.pod:884
16222 #, no-wrap
16223 msgid ""
16224 " reopen\n"
16225 "\n"
16226 msgstr ""
16227
16228 # type: textblock
16229 #: ../fish/guestfish.pod:886
16230 msgid ""
16231 "Close and reopen the libguestfs handle.  It is not necessary to use this "
16232 "normally, because the handle is closed properly when guestfish exits.  "
16233 "However this is occasionally useful for testing."
16234 msgstr ""
16235
16236 # type: =head2
16237 #: ../fish/guestfish.pod:890
16238 msgid "sparse"
16239 msgstr ""
16240
16241 # type: verbatim
16242 #: ../fish/guestfish.pod:892
16243 #, no-wrap
16244 msgid ""
16245 " sparse filename size\n"
16246 "\n"
16247 msgstr ""
16248
16249 # type: textblock
16250 #: ../fish/guestfish.pod:894
16251 msgid ""
16252 "This creates an empty sparse file of the given size, and then adds so it can "
16253 "be further examined."
16254 msgstr ""
16255
16256 # type: textblock
16257 #: ../fish/guestfish.pod:897
16258 msgid ""
16259 "In all respects it works the same as the C<alloc> command, except that the "
16260 "image file is allocated sparsely, which means that disk blocks are not "
16261 "assigned to the file until they are needed.  Sparse disk files only use "
16262 "space when written to, but they are slower and there is a danger you could "
16263 "run out of real disk space during a write operation."
16264 msgstr ""
16265
16266 # type: =head2
16267 #: ../fish/guestfish.pod:907
16268 msgid "supported"
16269 msgstr ""
16270
16271 # type: verbatim
16272 #: ../fish/guestfish.pod:909
16273 #, no-wrap
16274 msgid ""
16275 " supported\n"
16276 "\n"
16277 msgstr ""
16278
16279 # type: textblock
16280 #: ../fish/guestfish.pod:911
16281 msgid ""
16282 "This command returns a list of the optional groups known to the daemon, and "
16283 "indicates which ones are supported by this build of the libguestfs "
16284 "appliance."
16285 msgstr ""
16286
16287 # type: textblock
16288 #: ../fish/guestfish.pod:915
16289 msgid "See also L<guestfs(3)/AVAILABILITY>."
16290 msgstr ""
16291
16292 # type: =head2
16293 #: ../fish/guestfish.pod:917
16294 msgid "time"
16295 msgstr ""
16296
16297 # type: verbatim
16298 #: ../fish/guestfish.pod:919
16299 #, no-wrap
16300 msgid ""
16301 " time command args...\n"
16302 "\n"
16303 msgstr ""
16304
16305 # type: textblock
16306 #: ../fish/guestfish.pod:921
16307 msgid ""
16308 "Run the command as usual, but print the elapsed time afterwards.  This can "
16309 "be useful for benchmarking operations."
16310 msgstr ""
16311
16312 # type: =head1
16313 #: ../fish/guestfish.pod:924
16314 msgid "COMMANDS"
16315 msgstr ""
16316
16317 # type: =head1
16318 #: ../fish/guestfish.pod:928 ../test-tool/libguestfs-test-tool.pod:83
16319 msgid "EXIT CODE"
16320 msgstr ""
16321
16322 # type: textblock
16323 #: ../fish/guestfish.pod:930
16324 msgid ""
16325 "guestfish returns 0 if the commands completed without error, or 1 if there "
16326 "was an error."
16327 msgstr ""
16328
16329 # type: =item
16330 #: ../fish/guestfish.pod:937
16331 msgid "EDITOR"
16332 msgstr ""
16333
16334 # type: textblock
16335 #: ../fish/guestfish.pod:939
16336 msgid ""
16337 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
16338 "C<vi>."
16339 msgstr ""
16340
16341 # type: =item
16342 #: ../fish/guestfish.pod:942
16343 msgid "GUESTFISH_PID"
16344 msgstr ""
16345
16346 # type: textblock
16347 #: ../fish/guestfish.pod:944
16348 msgid ""
16349 "Used with the I<--remote> option to specify the remote guestfish process to "
16350 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
16351 msgstr ""
16352
16353 # type: =item
16354 #: ../fish/guestfish.pod:948
16355 msgid "HOME"
16356 msgstr ""
16357
16358 # type: textblock
16359 #: ../fish/guestfish.pod:950
16360 msgid ""
16361 "If compiled with GNU readline support, various files in the home directory "
16362 "can be used.  See L</FILES>."
16363 msgstr ""
16364
16365 # type: textblock
16366 #: ../fish/guestfish.pod:959
16367 msgid ""
16368 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
16369 "effect as using the B<-v> option."
16370 msgstr ""
16371
16372 # type: textblock
16373 #: ../fish/guestfish.pod:971
16374 msgid ""
16375 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
16376 "the discussion of paths in L<guestfs(3)>."
16377 msgstr ""
16378
16379 # type: textblock
16380 #: ../fish/guestfish.pod:982
16381 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
16382 msgstr ""
16383
16384 # type: =item
16385 #: ../fish/guestfish.pod:984
16386 msgid "PAGER"
16387 msgstr ""
16388
16389 # type: textblock
16390 #: ../fish/guestfish.pod:986
16391 msgid ""
16392 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
16393 "C<more>."
16394 msgstr ""
16395
16396 # type: =head1
16397 #: ../fish/guestfish.pod:1001 ../test-tool/libguestfs-test-tool.pod:88
16398 msgid "FILES"
16399 msgstr ""
16400
16401 # type: =item
16402 #: ../fish/guestfish.pod:1005
16403 msgid "$HOME/.guestfish"
16404 msgstr ""
16405
16406 # type: textblock
16407 #: ../fish/guestfish.pod:1007
16408 msgid ""
16409 "If compiled with GNU readline support, then the command history is saved in "
16410 "this file."
16411 msgstr ""
16412
16413 # type: =item
16414 #: ../fish/guestfish.pod:1010
16415 msgid "$HOME/.inputrc"
16416 msgstr ""
16417
16418 # type: =item
16419 #: ../fish/guestfish.pod:1012
16420 msgid "/etc/inputrc"
16421 msgstr ""
16422
16423 # type: textblock
16424 #: ../fish/guestfish.pod:1014
16425 msgid ""
16426 "If compiled with GNU readline support, then these files can be used to "
16427 "configure readline.  For further information, please see "
16428 "L<readline(3)/INITIALIZATION FILE>."
16429 msgstr ""
16430
16431 # type: textblock
16432 #: ../fish/guestfish.pod:1018
16433 msgid "To write rules which only apply to guestfish, use:"
16434 msgstr ""
16435
16436 # type: verbatim
16437 #: ../fish/guestfish.pod:1020
16438 #, no-wrap
16439 msgid ""
16440 " $if guestfish\n"
16441 " ...\n"
16442 " $endif\n"
16443 "\n"
16444 msgstr ""
16445
16446 # type: textblock
16447 #: ../fish/guestfish.pod:1024
16448 msgid ""
16449 "Variables that you can set in inputrc that change the behaviour of guestfish "
16450 "in useful ways include:"
16451 msgstr ""
16452
16453 # type: =item
16454 #: ../fish/guestfish.pod:1029
16455 msgid "completion-ignore-case (default: on)"
16456 msgstr ""
16457
16458 # type: textblock
16459 #: ../fish/guestfish.pod:1031
16460 msgid ""
16461 "By default, guestfish will ignore case when tab-completing paths on the "
16462 "disk.  Use:"
16463 msgstr ""
16464
16465 # type: verbatim
16466 #: ../fish/guestfish.pod:1034
16467 #, no-wrap
16468 msgid ""
16469 " set completion-ignore-case off\n"
16470 "\n"
16471 msgstr ""
16472
16473 # type: textblock
16474 #: ../fish/guestfish.pod:1036
16475 msgid "to make guestfish case sensitive."
16476 msgstr ""
16477
16478 # type: =item
16479 #: ../fish/guestfish.pod:1040
16480 msgid "test1.img"
16481 msgstr ""
16482
16483 # type: =item
16484 #: ../fish/guestfish.pod:1042
16485 msgid "test2.img (etc)"
16486 msgstr ""
16487
16488 # type: textblock
16489 #: ../fish/guestfish.pod:1044
16490 msgid ""
16491 "When using the C<-N> or C<--new> option, the prepared disk or filesystem "
16492 "will be created in the file C<test1.img> in the current directory.  The "
16493 "second use of C<-N> will use C<test2.img> and so on.  Any existing file with "
16494 "the same name will be overwritten."
16495 msgstr ""
16496
16497 # type: textblock
16498 #: ../fish/guestfish.pod:1053
16499 msgid ""
16500 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-cat(1)>, L<virt-df(1)>, "
16501 "L<virt-edit(1)>, L<virt-list-filesystems(1)>, L<virt-list-partitions(1)>, "
16502 "L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-resize(1)>, "
16503 "L<virt-tar(1)>, L<virt-win-reg(1)>."
16504 msgstr ""
16505
16506 # type: textblock
16507 #: ../fish/guestfish.pod:1076 ../test-tool/libguestfs-test-tool.pod:124 ../fuse/guestmount.pod:198 ../inspector/virt-inspector.pl:865 ../tools/virt-cat.pl:181 ../tools/virt-df.pl:499 ../tools/virt-edit.pl:345 ../tools/virt-list-filesystems.pl:211 ../tools/virt-list-partitions.pl:248 ../tools/virt-ls.pl:229 ../tools/virt-make-fs.pl:560 ../tools/virt-rescue.pl:249 ../tools/virt-resize.pl:1415 ../tools/virt-tar.pl:276 ../tools/virt-win-reg.pl:495
16508 msgid ""
16509 "This program is free software; you can redistribute it and/or modify it "
16510 "under the terms of the GNU General Public License as published by the Free "
16511 "Software Foundation; either version 2 of the License, or (at your option) "
16512 "any later version."
16513 msgstr ""
16514
16515 # type: textblock
16516 #: ../fish/guestfish.pod:1081 ../test-tool/libguestfs-test-tool.pod:129 ../fuse/guestmount.pod:203 ../inspector/virt-inspector.pl:870 ../tools/virt-cat.pl:186 ../tools/virt-df.pl:504 ../tools/virt-edit.pl:350 ../tools/virt-list-filesystems.pl:216 ../tools/virt-list-partitions.pl:253 ../tools/virt-ls.pl:234 ../tools/virt-make-fs.pl:565 ../tools/virt-rescue.pl:254 ../tools/virt-resize.pl:1420 ../tools/virt-tar.pl:281 ../tools/virt-win-reg.pl:500
16517 msgid ""
16518 "This program is distributed in the hope that it will be useful, but WITHOUT "
16519 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
16520 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
16521 "more details."
16522 msgstr ""
16523
16524 # type: textblock
16525 #: ../fish/guestfish.pod:1086 ../test-tool/libguestfs-test-tool.pod:134 ../fuse/guestmount.pod:208 ../inspector/virt-inspector.pl:875 ../tools/virt-cat.pl:191 ../tools/virt-df.pl:509 ../tools/virt-edit.pl:355 ../tools/virt-list-filesystems.pl:221 ../tools/virt-list-partitions.pl:258 ../tools/virt-ls.pl:239 ../tools/virt-make-fs.pl:570 ../tools/virt-rescue.pl:259 ../tools/virt-resize.pl:1425 ../tools/virt-tar.pl:286 ../tools/virt-win-reg.pl:505
16526 msgid ""
16527 "You should have received a copy of the GNU General Public License along with "
16528 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
16529 "Ave, Cambridge, MA 02139, USA."
16530 msgstr ""
16531
16532 # type: =head2
16533 #: ../fish/guestfish-actions.pod:1
16534 msgid "add-cdrom | cdrom"
16535 msgstr ""
16536
16537 # type: verbatim
16538 #: ../fish/guestfish-actions.pod:3
16539 #, no-wrap
16540 msgid ""
16541 " add-cdrom filename\n"
16542 "\n"
16543 msgstr ""
16544
16545 # type: textblock
16546 #: ../fish/guestfish-actions.pod:15
16547 msgid ""
16548 "This call checks for the existence of C<filename>.  This stops you from "
16549 "specifying other types of drive which are supported by qemu such as C<nbd:> "
16550 "and C<http:> URLs.  To specify those, use the general C<config> call "
16551 "instead."
16552 msgstr ""
16553
16554 # type: textblock
16555 #: ../fish/guestfish-actions.pod:22
16556 msgid ""
16557 "If you just want to add an ISO file (often you use this as an efficient way "
16558 "to transfer large files into the guest), then you should probably use "
16559 "C<add-drive-ro> instead."
16560 msgstr ""
16561
16562 # type: =head2
16563 #: ../fish/guestfish-actions.pod:28
16564 msgid "add-drive | add"
16565 msgstr ""
16566
16567 # type: verbatim
16568 #: ../fish/guestfish-actions.pod:30
16569 #, no-wrap
16570 msgid ""
16571 " add-drive filename\n"
16572 "\n"
16573 msgstr ""
16574
16575 # type: textblock
16576 #: ../fish/guestfish-actions.pod:49 ../fish/guestfish-actions.pod:75
16577 msgid ""
16578 "C<if=...> is set at compile time by the configuration option C<./configure "
16579 "--with-drive-if=...>.  In the rare case where you might need to change this "
16580 "at run time, use C<add-drive-with-if> or C<add-drive-ro-with-if>."
16581 msgstr ""
16582
16583 # type: textblock
16584 #: ../fish/guestfish-actions.pod:54 ../fish/guestfish-actions.pod:80
16585 msgid ""
16586 "Note that this call checks for the existence of C<filename>.  This stops you "
16587 "from specifying other types of drive which are supported by qemu such as "
16588 "C<nbd:> and C<http:> URLs.  To specify those, use the general C<config> call "
16589 "instead."
16590 msgstr ""
16591
16592 # type: =head2
16593 #: ../fish/guestfish-actions.pod:59
16594 msgid "add-drive-ro | add-ro"
16595 msgstr ""
16596
16597 # type: verbatim
16598 #: ../fish/guestfish-actions.pod:61
16599 #, no-wrap
16600 msgid ""
16601 " add-drive-ro filename\n"
16602 "\n"
16603 msgstr ""
16604
16605 # type: =head2
16606 #: ../fish/guestfish-actions.pod:85
16607 msgid "add-drive-ro-with-if"
16608 msgstr ""
16609
16610 # type: verbatim
16611 #: ../fish/guestfish-actions.pod:87
16612 #, no-wrap
16613 msgid ""
16614 " add-drive-ro-with-if filename iface\n"
16615 "\n"
16616 msgstr ""
16617
16618 # type: textblock
16619 #: ../fish/guestfish-actions.pod:89
16620 msgid ""
16621 "This is the same as C<add-drive-ro> but it allows you to specify the QEMU "
16622 "interface emulation to use at run time."
16623 msgstr ""
16624
16625 # type: =head2
16626 #: ../fish/guestfish-actions.pod:92
16627 msgid "add-drive-with-if"
16628 msgstr ""
16629
16630 # type: verbatim
16631 #: ../fish/guestfish-actions.pod:94
16632 #, no-wrap
16633 msgid ""
16634 " add-drive-with-if filename iface\n"
16635 "\n"
16636 msgstr ""
16637
16638 # type: textblock
16639 #: ../fish/guestfish-actions.pod:96
16640 msgid ""
16641 "This is the same as C<add-drive> but it allows you to specify the QEMU "
16642 "interface emulation to use at run time."
16643 msgstr ""
16644
16645 # type: =head2
16646 #: ../fish/guestfish-actions.pod:99
16647 msgid "aug-clear"
16648 msgstr ""
16649
16650 # type: verbatim
16651 #: ../fish/guestfish-actions.pod:101
16652 #, no-wrap
16653 msgid ""
16654 " aug-clear augpath\n"
16655 "\n"
16656 msgstr ""
16657
16658 # type: =head2
16659 #: ../fish/guestfish-actions.pod:106
16660 msgid "aug-close"
16661 msgstr ""
16662
16663 # type: verbatim
16664 #: ../fish/guestfish-actions.pod:108
16665 #, no-wrap
16666 msgid ""
16667 " aug-close\n"
16668 "\n"
16669 msgstr ""
16670
16671 # type: textblock
16672 #: ../fish/guestfish-actions.pod:110
16673 msgid ""
16674 "Close the current Augeas handle and free up any resources used by it.  After "
16675 "calling this, you have to call C<aug-init> again before you can use any "
16676 "other Augeas functions."
16677 msgstr ""
16678
16679 # type: =head2
16680 #: ../fish/guestfish-actions.pod:115
16681 msgid "aug-defnode"
16682 msgstr ""
16683
16684 # type: verbatim
16685 #: ../fish/guestfish-actions.pod:117
16686 #, no-wrap
16687 msgid ""
16688 " aug-defnode name expr val\n"
16689 "\n"
16690 msgstr ""
16691
16692 # type: textblock
16693 #: ../fish/guestfish-actions.pod:122
16694 msgid ""
16695 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
16696 "calling C<aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
16697 "containing that single node."
16698 msgstr ""
16699
16700 # type: =head2
16701 #: ../fish/guestfish-actions.pod:130
16702 msgid "aug-defvar"
16703 msgstr ""
16704
16705 # type: verbatim
16706 #: ../fish/guestfish-actions.pod:132
16707 #, no-wrap
16708 msgid ""
16709 " aug-defvar name expr\n"
16710 "\n"
16711 msgstr ""
16712
16713 # type: =head2
16714 #: ../fish/guestfish-actions.pod:141
16715 msgid "aug-get"
16716 msgstr ""
16717
16718 # type: verbatim
16719 #: ../fish/guestfish-actions.pod:143
16720 #, no-wrap
16721 msgid ""
16722 " aug-get augpath\n"
16723 "\n"
16724 msgstr ""
16725
16726 # type: =head2
16727 #: ../fish/guestfish-actions.pod:148
16728 msgid "aug-init"
16729 msgstr ""
16730
16731 # type: verbatim
16732 #: ../fish/guestfish-actions.pod:150
16733 #, no-wrap
16734 msgid ""
16735 " aug-init root flags\n"
16736 "\n"
16737 msgstr ""
16738
16739 # type: textblock
16740 #: ../fish/guestfish-actions.pod:156
16741 msgid "You must call this before using any other C<aug-*> commands."
16742 msgstr ""
16743
16744 # type: textblock
16745 #: ../fish/guestfish-actions.pod:191
16746 msgid "Do not load the tree in C<aug-init>."
16747 msgstr ""
16748
16749 # type: textblock
16750 #: ../fish/guestfish-actions.pod:195
16751 msgid "To close the handle, you can call C<aug-close>."
16752 msgstr ""
16753
16754 # type: =head2
16755 #: ../fish/guestfish-actions.pod:199
16756 msgid "aug-insert"
16757 msgstr ""
16758
16759 # type: verbatim
16760 #: ../fish/guestfish-actions.pod:201
16761 #, no-wrap
16762 msgid ""
16763 " aug-insert augpath label true|false\n"
16764 "\n"
16765 msgstr ""
16766
16767 # type: =head2
16768 #: ../fish/guestfish-actions.pod:211
16769 msgid "aug-load"
16770 msgstr ""
16771
16772 # type: verbatim
16773 #: ../fish/guestfish-actions.pod:213
16774 #, no-wrap
16775 msgid ""
16776 " aug-load\n"
16777 "\n"
16778 msgstr ""
16779
16780 # type: =head2
16781 #: ../fish/guestfish-actions.pod:220
16782 msgid "aug-ls"
16783 msgstr ""
16784
16785 # type: verbatim
16786 #: ../fish/guestfish-actions.pod:222
16787 #, no-wrap
16788 msgid ""
16789 " aug-ls augpath\n"
16790 "\n"
16791 msgstr ""
16792
16793 # type: textblock
16794 #: ../fish/guestfish-actions.pod:224
16795 msgid ""
16796 "This is just a shortcut for listing C<aug-match> C<path/*> and sorting the "
16797 "resulting nodes into alphabetical order."
16798 msgstr ""
16799
16800 # type: =head2
16801 #: ../fish/guestfish-actions.pod:227
16802 msgid "aug-match"
16803 msgstr ""
16804
16805 # type: verbatim
16806 #: ../fish/guestfish-actions.pod:229
16807 #, no-wrap
16808 msgid ""
16809 " aug-match augpath\n"
16810 "\n"
16811 msgstr ""
16812
16813 # type: =head2
16814 #: ../fish/guestfish-actions.pod:235
16815 msgid "aug-mv"
16816 msgstr ""
16817
16818 # type: verbatim
16819 #: ../fish/guestfish-actions.pod:237
16820 #, no-wrap
16821 msgid ""
16822 " aug-mv src dest\n"
16823 "\n"
16824 msgstr ""
16825
16826 # type: =head2
16827 #: ../fish/guestfish-actions.pod:242
16828 msgid "aug-rm"
16829 msgstr ""
16830
16831 # type: verbatim
16832 #: ../fish/guestfish-actions.pod:244
16833 #, no-wrap
16834 msgid ""
16835 " aug-rm augpath\n"
16836 "\n"
16837 msgstr ""
16838
16839 # type: =head2
16840 #: ../fish/guestfish-actions.pod:250
16841 msgid "aug-save"
16842 msgstr ""
16843
16844 # type: verbatim
16845 #: ../fish/guestfish-actions.pod:252
16846 #, no-wrap
16847 msgid ""
16848 " aug-save\n"
16849 "\n"
16850 msgstr ""
16851
16852 # type: textblock
16853 #: ../fish/guestfish-actions.pod:256
16854 msgid ""
16855 "The flags which were passed to C<aug-init> affect exactly how files are "
16856 "saved."
16857 msgstr ""
16858
16859 # type: =head2
16860 #: ../fish/guestfish-actions.pod:259
16861 msgid "aug-set"
16862 msgstr ""
16863
16864 # type: verbatim
16865 #: ../fish/guestfish-actions.pod:261
16866 #, no-wrap
16867 msgid ""
16868 " aug-set augpath val\n"
16869 "\n"
16870 msgstr ""
16871
16872 # type: textblock
16873 #: ../fish/guestfish-actions.pod:265
16874 msgid ""
16875 "In the Augeas API, it is possible to clear a node by setting the value to "
16876 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
16877 "this call.  Instead you must use the C<aug-clear> call."
16878 msgstr ""
16879
16880 # type: =head2
16881 #: ../fish/guestfish-actions.pod:270
16882 msgid "available"
16883 msgstr ""
16884
16885 # type: verbatim
16886 #: ../fish/guestfish-actions.pod:272
16887 #, no-wrap
16888 msgid ""
16889 " available 'groups ...'\n"
16890 "\n"
16891 msgstr ""
16892
16893 # type: textblock
16894 #: ../fish/guestfish-actions.pod:278
16895 msgid ""
16896 "The libguestfs groups, and the functions that those groups correspond to, "
16897 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
16898 "runtime by calling C<available-all-groups>."
16899 msgstr ""
16900
16901 # type: textblock
16902 #: ../fish/guestfish-actions.pod:302
16903 msgid "You must call C<launch> before calling this function."
16904 msgstr ""
16905
16906 # type: textblock
16907 #: ../fish/guestfish-actions.pod:324
16908 msgid ""
16909 "This call was added in version C<1.0.80>.  In previous versions of "
16910 "libguestfs all you could do would be to speculatively execute a command to "
16911 "find out if the daemon implemented it.  See also C<version>."
16912 msgstr ""
16913
16914 # type: =head2
16915 #: ../fish/guestfish-actions.pod:331
16916 msgid "available-all-groups"
16917 msgstr ""
16918
16919 # type: verbatim
16920 #: ../fish/guestfish-actions.pod:333
16921 #, no-wrap
16922 msgid ""
16923 " available-all-groups\n"
16924 "\n"
16925 msgstr ""
16926
16927 # type: textblock
16928 #: ../fish/guestfish-actions.pod:335
16929 msgid ""
16930 "This command returns a list of all optional groups that this daemon knows "
16931 "about.  Note this returns both supported and unsupported groups.  To find "
16932 "out which ones the daemon can actually support you have to call C<available> "
16933 "on each member of the returned list."
16934 msgstr ""
16935
16936 # type: textblock
16937 #: ../fish/guestfish-actions.pod:341
16938 msgid "See also C<available> and L<guestfs(3)/AVAILABILITY>."
16939 msgstr ""
16940
16941 # type: =head2
16942 #: ../fish/guestfish-actions.pod:343
16943 msgid "base64-in"
16944 msgstr ""
16945
16946 # type: verbatim
16947 #: ../fish/guestfish-actions.pod:345
16948 #, no-wrap
16949 msgid ""
16950 " base64-in (base64file|-) filename\n"
16951 "\n"
16952 msgstr ""
16953
16954 # type: textblock
16955 #: ../fish/guestfish-actions.pod:350 ../fish/guestfish-actions.pod:359 ../fish/guestfish-actions.pod:583 ../fish/guestfish-actions.pod:730 ../fish/guestfish-actions.pod:777 ../fish/guestfish-actions.pod:1154 ../fish/guestfish-actions.pod:3752 ../fish/guestfish-actions.pod:3764 ../fish/guestfish-actions.pod:3775 ../fish/guestfish-actions.pod:3786 ../fish/guestfish-actions.pod:3838 ../fish/guestfish-actions.pod:3847 ../fish/guestfish-actions.pod:3897
16956 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
16957 msgstr ""
16958
16959 # type: =head2
16960 #: ../fish/guestfish-actions.pod:352
16961 msgid "base64-out"
16962 msgstr ""
16963
16964 # type: verbatim
16965 #: ../fish/guestfish-actions.pod:354
16966 #, no-wrap
16967 msgid ""
16968 " base64-out filename (base64file|-)\n"
16969 "\n"
16970 msgstr ""
16971
16972 # type: =head2
16973 #: ../fish/guestfish-actions.pod:361
16974 msgid "blockdev-flushbufs"
16975 msgstr ""
16976
16977 # type: verbatim
16978 #: ../fish/guestfish-actions.pod:363
16979 #, no-wrap
16980 msgid ""
16981 " blockdev-flushbufs device\n"
16982 "\n"
16983 msgstr ""
16984
16985 # type: =head2
16986 #: ../fish/guestfish-actions.pod:370
16987 msgid "blockdev-getbsz"
16988 msgstr ""
16989
16990 # type: verbatim
16991 #: ../fish/guestfish-actions.pod:372
16992 #, no-wrap
16993 msgid ""
16994 " blockdev-getbsz device\n"
16995 "\n"
16996 msgstr ""
16997
16998 # type: =head2
16999 #: ../fish/guestfish-actions.pod:381
17000 msgid "blockdev-getro"
17001 msgstr ""
17002
17003 # type: verbatim
17004 #: ../fish/guestfish-actions.pod:383
17005 #, no-wrap
17006 msgid ""
17007 " blockdev-getro device\n"
17008 "\n"
17009 msgstr ""
17010
17011 # type: =head2
17012 #: ../fish/guestfish-actions.pod:390
17013 msgid "blockdev-getsize64"
17014 msgstr ""
17015
17016 # type: verbatim
17017 #: ../fish/guestfish-actions.pod:392
17018 #, no-wrap
17019 msgid ""
17020 " blockdev-getsize64 device\n"
17021 "\n"
17022 msgstr ""
17023
17024 # type: textblock
17025 #: ../fish/guestfish-actions.pod:396
17026 msgid "See also C<blockdev-getsz>."
17027 msgstr ""
17028
17029 # type: =head2
17030 #: ../fish/guestfish-actions.pod:400
17031 msgid "blockdev-getss"
17032 msgstr ""
17033
17034 # type: verbatim
17035 #: ../fish/guestfish-actions.pod:402
17036 #, no-wrap
17037 msgid ""
17038 " blockdev-getss device\n"
17039 "\n"
17040 msgstr ""
17041
17042 # type: textblock
17043 #: ../fish/guestfish-actions.pod:407
17044 msgid "(Note, this is not the size in sectors, use C<blockdev-getsz> for that)."
17045 msgstr ""
17046
17047 # type: =head2
17048 #: ../fish/guestfish-actions.pod:412
17049 msgid "blockdev-getsz"
17050 msgstr ""
17051
17052 # type: verbatim
17053 #: ../fish/guestfish-actions.pod:414
17054 #, no-wrap
17055 msgid ""
17056 " blockdev-getsz device\n"
17057 "\n"
17058 msgstr ""
17059
17060 # type: textblock
17061 #: ../fish/guestfish-actions.pod:419
17062 msgid ""
17063 "See also C<blockdev-getss> for the real sector size of the device, and "
17064 "C<blockdev-getsize64> for the more useful I<size in bytes>."
17065 msgstr ""
17066
17067 # type: =head2
17068 #: ../fish/guestfish-actions.pod:425
17069 msgid "blockdev-rereadpt"
17070 msgstr ""
17071
17072 # type: verbatim
17073 #: ../fish/guestfish-actions.pod:427
17074 #, no-wrap
17075 msgid ""
17076 " blockdev-rereadpt device\n"
17077 "\n"
17078 msgstr ""
17079
17080 # type: =head2
17081 #: ../fish/guestfish-actions.pod:433
17082 msgid "blockdev-setbsz"
17083 msgstr ""
17084
17085 # type: verbatim
17086 #: ../fish/guestfish-actions.pod:435
17087 #, no-wrap
17088 msgid ""
17089 " blockdev-setbsz device blocksize\n"
17090 "\n"
17091 msgstr ""
17092
17093 # type: =head2
17094 #: ../fish/guestfish-actions.pod:444
17095 msgid "blockdev-setro"
17096 msgstr ""
17097
17098 # type: verbatim
17099 #: ../fish/guestfish-actions.pod:446
17100 #, no-wrap
17101 msgid ""
17102 " blockdev-setro device\n"
17103 "\n"
17104 msgstr ""
17105
17106 # type: =head2
17107 #: ../fish/guestfish-actions.pod:452
17108 msgid "blockdev-setrw"
17109 msgstr ""
17110
17111 # type: verbatim
17112 #: ../fish/guestfish-actions.pod:454
17113 #, no-wrap
17114 msgid ""
17115 " blockdev-setrw device\n"
17116 "\n"
17117 msgstr ""
17118
17119 # type: =head2
17120 #: ../fish/guestfish-actions.pod:460
17121 msgid "case-sensitive-path"
17122 msgstr ""
17123
17124 # type: verbatim
17125 #: ../fish/guestfish-actions.pod:462
17126 #, no-wrap
17127 msgid ""
17128 " case-sensitive-path path\n"
17129 "\n"
17130 msgstr ""
17131
17132 # type: textblock
17133 #: ../fish/guestfish-actions.pod:486
17134 msgid ""
17135 "Thus C<case-sensitive-path> (\"/Windows/System32\")  might return "
17136 "C<\"/WINDOWS/system32\"> (the exact return value would depend on details of "
17137 "how the directories were originally created under Windows)."
17138 msgstr ""
17139
17140 # type: textblock
17141 #: ../fish/guestfish-actions.pod:494
17142 msgid "See also C<realpath>."
17143 msgstr ""
17144
17145 # type: =head2
17146 #: ../fish/guestfish-actions.pod:496
17147 msgid "cat"
17148 msgstr ""
17149
17150 # type: verbatim
17151 #: ../fish/guestfish-actions.pod:498
17152 #, no-wrap
17153 msgid ""
17154 " cat path\n"
17155 "\n"
17156 msgstr ""
17157
17158 # type: textblock
17159 #: ../fish/guestfish-actions.pod:502
17160 msgid ""
17161 "Note that this function cannot correctly handle binary files (specifically, "
17162 "files containing C<\\0> character which is treated as end of string).  For "
17163 "those you need to use the C<read-file> or C<download> functions which have a "
17164 "more complex interface."
17165 msgstr ""
17166
17167 # type: =head2
17168 #: ../fish/guestfish-actions.pod:510
17169 msgid "checksum"
17170 msgstr ""
17171
17172 # type: verbatim
17173 #: ../fish/guestfish-actions.pod:512
17174 #, no-wrap
17175 msgid ""
17176 " checksum csumtype path\n"
17177 "\n"
17178 msgstr ""
17179
17180 # type: textblock
17181 #: ../fish/guestfish-actions.pod:555
17182 msgid "To get the checksum for a device, use C<checksum-device>."
17183 msgstr ""
17184
17185 # type: textblock
17186 #: ../fish/guestfish-actions.pod:557
17187 msgid "To get the checksums for many files, use C<checksums-out>."
17188 msgstr ""
17189
17190 # type: =head2
17191 #: ../fish/guestfish-actions.pod:559
17192 msgid "checksum-device"
17193 msgstr ""
17194
17195 # type: verbatim
17196 #: ../fish/guestfish-actions.pod:561
17197 #, no-wrap
17198 msgid ""
17199 " checksum-device csumtype device\n"
17200 "\n"
17201 msgstr ""
17202
17203 # type: textblock
17204 #: ../fish/guestfish-actions.pod:563
17205 msgid ""
17206 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
17207 "device named C<device>.  For the types of checksums supported see the "
17208 "C<checksum> command."
17209 msgstr ""
17210
17211 # type: =head2
17212 #: ../fish/guestfish-actions.pod:567
17213 msgid "checksums-out"
17214 msgstr ""
17215
17216 # type: verbatim
17217 #: ../fish/guestfish-actions.pod:569
17218 #, no-wrap
17219 msgid ""
17220 " checksums-out csumtype directory (sumsfile|-)\n"
17221 "\n"
17222 msgstr ""
17223
17224 # type: =head2
17225 #: ../fish/guestfish-actions.pod:585
17226 msgid "chmod"
17227 msgstr ""
17228
17229 # type: verbatim
17230 #: ../fish/guestfish-actions.pod:587
17231 #, no-wrap
17232 msgid ""
17233 " chmod mode path\n"
17234 "\n"
17235 msgstr ""
17236
17237 # type: =head2
17238 #: ../fish/guestfish-actions.pod:598
17239 msgid "chown"
17240 msgstr ""
17241
17242 # type: verbatim
17243 #: ../fish/guestfish-actions.pod:600
17244 #, no-wrap
17245 msgid ""
17246 " chown owner group path\n"
17247 "\n"
17248 msgstr ""
17249
17250 # type: =head2
17251 #: ../fish/guestfish-actions.pod:608
17252 msgid "command"
17253 msgstr ""
17254
17255 # type: verbatim
17256 #: ../fish/guestfish-actions.pod:610
17257 #, no-wrap
17258 msgid ""
17259 " command 'arguments ...'\n"
17260 "\n"
17261 msgstr ""
17262
17263 # type: textblock
17264 #: ../fish/guestfish-actions.pod:617
17265 msgid ""
17266 "The single parameter is an argv-style list of arguments.  The first element "
17267 "is the name of the program to run.  Subsequent elements are parameters.  The "
17268 "list must be non-empty (ie. must contain a program name).  Note that the "
17269 "command runs directly, and is I<not> invoked via the shell (see C<sh>)."
17270 msgstr ""
17271
17272 # type: =head2
17273 #: ../fish/guestfish-actions.pod:645
17274 msgid "command-lines"
17275 msgstr ""
17276
17277 # type: verbatim
17278 #: ../fish/guestfish-actions.pod:647
17279 #, no-wrap
17280 msgid ""
17281 " command-lines 'arguments ...'\n"
17282 "\n"
17283 msgstr ""
17284
17285 # type: textblock
17286 #: ../fish/guestfish-actions.pod:649
17287 msgid "This is the same as C<command>, but splits the result into a list of lines."
17288 msgstr ""
17289
17290 # type: textblock
17291 #: ../fish/guestfish-actions.pod:652
17292 msgid "See also: C<sh-lines>"
17293 msgstr ""
17294
17295 # type: =head2
17296 #: ../fish/guestfish-actions.pod:657
17297 msgid "config"
17298 msgstr ""
17299
17300 # type: verbatim
17301 #: ../fish/guestfish-actions.pod:659
17302 #, no-wrap
17303 msgid ""
17304 " config qemuparam qemuvalue\n"
17305 "\n"
17306 msgstr ""
17307
17308 # type: =head2
17309 #: ../fish/guestfish-actions.pod:670
17310 msgid "copy-size"
17311 msgstr ""
17312
17313 # type: verbatim
17314 #: ../fish/guestfish-actions.pod:672
17315 #, no-wrap
17316 msgid ""
17317 " copy-size src dest size\n"
17318 "\n"
17319 msgstr ""
17320
17321 # type: =head2
17322 #: ../fish/guestfish-actions.pod:680
17323 msgid "cp"
17324 msgstr ""
17325
17326 # type: verbatim
17327 #: ../fish/guestfish-actions.pod:682
17328 #, no-wrap
17329 msgid ""
17330 " cp src dest\n"
17331 "\n"
17332 msgstr ""
17333
17334 # type: =head2
17335 #: ../fish/guestfish-actions.pod:687
17336 msgid "cp-a"
17337 msgstr ""
17338
17339 # type: verbatim
17340 #: ../fish/guestfish-actions.pod:689
17341 #, no-wrap
17342 msgid ""
17343 " cp-a src dest\n"
17344 "\n"
17345 msgstr ""
17346
17347 # type: =head2
17348 #: ../fish/guestfish-actions.pod:694
17349 msgid "dd"
17350 msgstr ""
17351
17352 # type: verbatim
17353 #: ../fish/guestfish-actions.pod:696
17354 #, no-wrap
17355 msgid ""
17356 " dd src dest\n"
17357 "\n"
17358 msgstr ""
17359
17360 # type: textblock
17361 #: ../fish/guestfish-actions.pod:703
17362 msgid ""
17363 "If the destination is a device, it must be as large or larger than the "
17364 "source file or device, otherwise the copy will fail.  This command cannot do "
17365 "partial copies (see C<copy-size>)."
17366 msgstr ""
17367
17368 # type: =head2
17369 #: ../fish/guestfish-actions.pod:707
17370 msgid "debug"
17371 msgstr ""
17372
17373 # type: verbatim
17374 #: ../fish/guestfish-actions.pod:709
17375 #, no-wrap
17376 msgid ""
17377 " debug subcmd 'extraargs ...'\n"
17378 "\n"
17379 msgstr ""
17380
17381 # type: textblock
17382 #: ../fish/guestfish-actions.pod:711
17383 msgid ""
17384 "The C<debug> command exposes some internals of C<guestfsd> (the guestfs "
17385 "daemon) that runs inside the qemu subprocess."
17386 msgstr ""
17387
17388 # type: =head2
17389 #: ../fish/guestfish-actions.pod:719
17390 msgid "debug-upload"
17391 msgstr ""
17392
17393 # type: verbatim
17394 #: ../fish/guestfish-actions.pod:721
17395 #, no-wrap
17396 msgid ""
17397 " debug-upload (filename|-) tmpname mode\n"
17398 "\n"
17399 msgstr ""
17400
17401 # type: textblock
17402 #: ../fish/guestfish-actions.pod:723
17403 msgid "The C<debug-upload> command uploads a file to the libguestfs appliance."
17404 msgstr ""
17405
17406 # type: =head2
17407 #: ../fish/guestfish-actions.pod:732
17408 msgid "df"
17409 msgstr ""
17410
17411 # type: verbatim
17412 #: ../fish/guestfish-actions.pod:734
17413 #, no-wrap
17414 msgid ""
17415 " df\n"
17416 "\n"
17417 msgstr ""
17418
17419 # type: =head2
17420 #: ../fish/guestfish-actions.pod:742
17421 msgid "df-h"
17422 msgstr ""
17423
17424 # type: verbatim
17425 #: ../fish/guestfish-actions.pod:744
17426 #, no-wrap
17427 msgid ""
17428 " df-h\n"
17429 "\n"
17430 msgstr ""
17431
17432 # type: =head2
17433 #: ../fish/guestfish-actions.pod:753
17434 msgid "dmesg"
17435 msgstr ""
17436
17437 # type: verbatim
17438 #: ../fish/guestfish-actions.pod:755
17439 #, no-wrap
17440 msgid ""
17441 " dmesg\n"
17442 "\n"
17443 msgstr ""
17444
17445 # type: textblock
17446 #: ../fish/guestfish-actions.pod:761
17447 msgid ""
17448 "Another way to get the same information is to enable verbose messages with "
17449 "C<set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
17450 "before running the program."
17451 msgstr ""
17452
17453 # type: =head2
17454 #: ../fish/guestfish-actions.pod:766
17455 msgid "download"
17456 msgstr ""
17457
17458 # type: verbatim
17459 #: ../fish/guestfish-actions.pod:768
17460 #, no-wrap
17461 msgid ""
17462 " download remotefilename (filename|-)\n"
17463 "\n"
17464 msgstr ""
17465
17466 # type: textblock
17467 #: ../fish/guestfish-actions.pod:775
17468 msgid "See also C<upload>, C<cat>."
17469 msgstr ""
17470
17471 # type: =head2
17472 #: ../fish/guestfish-actions.pod:779
17473 msgid "drop-caches"
17474 msgstr ""
17475
17476 # type: verbatim
17477 #: ../fish/guestfish-actions.pod:781
17478 #, no-wrap
17479 msgid ""
17480 " drop-caches whattodrop\n"
17481 "\n"
17482 msgstr ""
17483
17484 # type: =head2
17485 #: ../fish/guestfish-actions.pod:793
17486 msgid "du"
17487 msgstr ""
17488
17489 # type: verbatim
17490 #: ../fish/guestfish-actions.pod:795
17491 #, no-wrap
17492 msgid ""
17493 " du path\n"
17494 "\n"
17495 msgstr ""
17496
17497 # type: =head2
17498 #: ../fish/guestfish-actions.pod:807
17499 msgid "e2fsck-f"
17500 msgstr ""
17501
17502 # type: verbatim
17503 #: ../fish/guestfish-actions.pod:809
17504 #, no-wrap
17505 msgid ""
17506 " e2fsck-f device\n"
17507 "\n"
17508 msgstr ""
17509
17510 # type: textblock
17511 #: ../fish/guestfish-actions.pod:815
17512 msgid ""
17513 "This command is only needed because of C<resize2fs> (q.v.).  Normally you "
17514 "should use C<fsck>."
17515 msgstr ""
17516
17517 # type: =head2
17518 #: ../fish/guestfish-actions.pod:818
17519 msgid "echo-daemon"
17520 msgstr ""
17521
17522 # type: verbatim
17523 #: ../fish/guestfish-actions.pod:820
17524 #, no-wrap
17525 msgid ""
17526 " echo-daemon 'words ...'\n"
17527 "\n"
17528 msgstr ""
17529
17530 # type: textblock
17531 #: ../fish/guestfish-actions.pod:827
17532 msgid "See also C<ping-daemon>."
17533 msgstr ""
17534
17535 # type: =head2
17536 #: ../fish/guestfish-actions.pod:829
17537 msgid "egrep"
17538 msgstr ""
17539
17540 # type: verbatim
17541 #: ../fish/guestfish-actions.pod:831
17542 #, no-wrap
17543 msgid ""
17544 " egrep regex path\n"
17545 "\n"
17546 msgstr ""
17547
17548 # type: =head2
17549 #: ../fish/guestfish-actions.pod:839
17550 msgid "egrepi"
17551 msgstr ""
17552
17553 # type: verbatim
17554 #: ../fish/guestfish-actions.pod:841
17555 #, no-wrap
17556 msgid ""
17557 " egrepi regex path\n"
17558 "\n"
17559 msgstr ""
17560
17561 # type: =head2
17562 #: ../fish/guestfish-actions.pod:849
17563 msgid "equal"
17564 msgstr ""
17565
17566 # type: verbatim
17567 #: ../fish/guestfish-actions.pod:851
17568 #, no-wrap
17569 msgid ""
17570 " equal file1 file2\n"
17571 "\n"
17572 msgstr ""
17573
17574 # type: =head2
17575 #: ../fish/guestfish-actions.pod:858
17576 msgid "exists"
17577 msgstr ""
17578
17579 # type: verbatim
17580 #: ../fish/guestfish-actions.pod:860
17581 #, no-wrap
17582 msgid ""
17583 " exists path\n"
17584 "\n"
17585 msgstr ""
17586
17587 # type: textblock
17588 #: ../fish/guestfish-actions.pod:865
17589 msgid "See also C<is-file>, C<is-dir>, C<stat>."
17590 msgstr ""
17591
17592 # type: =head2
17593 #: ../fish/guestfish-actions.pod:867
17594 msgid "fallocate"
17595 msgstr ""
17596
17597 # type: verbatim
17598 #: ../fish/guestfish-actions.pod:869
17599 #, no-wrap
17600 msgid ""
17601 " fallocate path len\n"
17602 "\n"
17603 msgstr ""
17604
17605 # type: =head2
17606 #: ../fish/guestfish-actions.pod:886
17607 msgid "fallocate64"
17608 msgstr ""
17609
17610 # type: verbatim
17611 #: ../fish/guestfish-actions.pod:888
17612 #, no-wrap
17613 msgid ""
17614 " fallocate64 path len\n"
17615 "\n"
17616 msgstr ""
17617
17618 # type: textblock
17619 #: ../fish/guestfish-actions.pod:894
17620 msgid ""
17621 "Note that this call allocates disk blocks for the file.  To create a sparse "
17622 "file use C<truncate-size> instead."
17623 msgstr ""
17624
17625 # type: textblock
17626 #: ../fish/guestfish-actions.pod:897
17627 msgid ""
17628 "The deprecated call C<fallocate> does the same, but owing to an oversight it "
17629 "only allowed 30 bit lengths to be specified, effectively limiting the "
17630 "maximum size of files created through that call to 1GB."
17631 msgstr ""
17632
17633 # type: =head2
17634 #: ../fish/guestfish-actions.pod:906
17635 msgid "fgrep"
17636 msgstr ""
17637
17638 # type: verbatim
17639 #: ../fish/guestfish-actions.pod:908
17640 #, no-wrap
17641 msgid ""
17642 " fgrep pattern path\n"
17643 "\n"
17644 msgstr ""
17645
17646 # type: =head2
17647 #: ../fish/guestfish-actions.pod:916
17648 msgid "fgrepi"
17649 msgstr ""
17650
17651 # type: verbatim
17652 #: ../fish/guestfish-actions.pod:918
17653 #, no-wrap
17654 msgid ""
17655 " fgrepi pattern path\n"
17656 "\n"
17657 msgstr ""
17658
17659 # type: =head2
17660 #: ../fish/guestfish-actions.pod:926
17661 msgid "file"
17662 msgstr ""
17663
17664 # type: verbatim
17665 #: ../fish/guestfish-actions.pod:928
17666 #, no-wrap
17667 msgid ""
17668 " file path\n"
17669 "\n"
17670 msgstr ""
17671
17672 # type: textblock
17673 #: ../fish/guestfish-actions.pod:940
17674 msgid ""
17675 "This command can also be used on C</dev/> devices (and partitions, LV "
17676 "names).  You can for example use this to determine if a device contains a "
17677 "filesystem, although it's usually better to use C<vfs-type>."
17678 msgstr ""
17679
17680 # type: =head2
17681 #: ../fish/guestfish-actions.pod:950
17682 msgid "file-architecture"
17683 msgstr ""
17684
17685 # type: verbatim
17686 #: ../fish/guestfish-actions.pod:952
17687 #, no-wrap
17688 msgid ""
17689 " file-architecture filename\n"
17690 "\n"
17691 msgstr ""
17692
17693 # type: =head2
17694 #: ../fish/guestfish-actions.pod:1055
17695 msgid "filesize"
17696 msgstr ""
17697
17698 # type: verbatim
17699 #: ../fish/guestfish-actions.pod:1057
17700 #, no-wrap
17701 msgid ""
17702 " filesize file\n"
17703 "\n"
17704 msgstr ""
17705
17706 # type: textblock
17707 #: ../fish/guestfish-actions.pod:1061
17708 msgid ""
17709 "To get other stats about a file, use C<stat>, C<lstat>, C<is-dir>, "
17710 "C<is-file> etc.  To get the size of block devices, use "
17711 "C<blockdev-getsize64>."
17712 msgstr ""
17713
17714 # type: =head2
17715 #: ../fish/guestfish-actions.pod:1065
17716 msgid "fill"
17717 msgstr ""
17718
17719 # type: verbatim
17720 #: ../fish/guestfish-actions.pod:1067
17721 #, no-wrap
17722 msgid ""
17723 " fill c len path\n"
17724 "\n"
17725 msgstr ""
17726
17727 # type: textblock
17728 #: ../fish/guestfish-actions.pod:1073
17729 msgid ""
17730 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
17731 "C<truncate-size>.  To create a file with a pattern of repeating bytes use "
17732 "C<fill-pattern>."
17733 msgstr ""
17734
17735 # type: =head2
17736 #: ../fish/guestfish-actions.pod:1078
17737 msgid "fill-pattern"
17738 msgstr ""
17739
17740 # type: verbatim
17741 #: ../fish/guestfish-actions.pod:1080
17742 #, no-wrap
17743 msgid ""
17744 " fill-pattern pattern len path\n"
17745 "\n"
17746 msgstr ""
17747
17748 # type: textblock
17749 #: ../fish/guestfish-actions.pod:1082
17750 msgid ""
17751 "This function is like C<fill> except that it creates a new file of length "
17752 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
17753 "is truncated if necessary to ensure the length of the file is exactly C<len> "
17754 "bytes."
17755 msgstr ""
17756
17757 # type: =head2
17758 #: ../fish/guestfish-actions.pod:1087
17759 msgid "find"
17760 msgstr ""
17761
17762 # type: verbatim
17763 #: ../fish/guestfish-actions.pod:1089
17764 #, no-wrap
17765 msgid ""
17766 " find directory\n"
17767 "\n"
17768 msgstr ""
17769
17770 # type: textblock
17771 #: ../fish/guestfish-actions.pod:1103
17772 msgid "then the returned list from C<find> C</tmp> would be 4 elements:"
17773 msgstr ""
17774
17775 # type: textblock
17776 #: ../fish/guestfish-actions.pod:1116
17777 msgid "See also C<find0>."
17778 msgstr ""
17779
17780 # type: =head2
17781 #: ../fish/guestfish-actions.pod:1121
17782 msgid "find0"
17783 msgstr ""
17784
17785 # type: verbatim
17786 #: ../fish/guestfish-actions.pod:1123
17787 #, no-wrap
17788 msgid ""
17789 " find0 directory (files|-)\n"
17790 "\n"
17791 msgstr ""
17792
17793 # type: textblock
17794 #: ../fish/guestfish-actions.pod:1129
17795 msgid "This command works the same way as C<find> with the following exceptions:"
17796 msgstr ""
17797
17798 # type: =head2
17799 #: ../fish/guestfish-actions.pod:1156
17800 msgid "findfs-label"
17801 msgstr ""
17802
17803 # type: verbatim
17804 #: ../fish/guestfish-actions.pod:1158
17805 #, no-wrap
17806 msgid ""
17807 " findfs-label label\n"
17808 "\n"
17809 msgstr ""
17810
17811 # type: textblock
17812 #: ../fish/guestfish-actions.pod:1164
17813 msgid "To find the label of a filesystem, use C<vfs-label>."
17814 msgstr ""
17815
17816 # type: =head2
17817 #: ../fish/guestfish-actions.pod:1166
17818 msgid "findfs-uuid"
17819 msgstr ""
17820
17821 # type: verbatim
17822 #: ../fish/guestfish-actions.pod:1168
17823 #, no-wrap
17824 msgid ""
17825 " findfs-uuid uuid\n"
17826 "\n"
17827 msgstr ""
17828
17829 # type: textblock
17830 #: ../fish/guestfish-actions.pod:1174
17831 msgid "To find the UUID of a filesystem, use C<vfs-uuid>."
17832 msgstr ""
17833
17834 # type: =head2
17835 #: ../fish/guestfish-actions.pod:1176
17836 msgid "fsck"
17837 msgstr ""
17838
17839 # type: verbatim
17840 #: ../fish/guestfish-actions.pod:1178
17841 #, no-wrap
17842 msgid ""
17843 " fsck fstype device\n"
17844 "\n"
17845 msgstr ""
17846
17847 # type: =head2
17848 #: ../fish/guestfish-actions.pod:1208
17849 msgid "get-append"
17850 msgstr ""
17851
17852 # type: verbatim
17853 #: ../fish/guestfish-actions.pod:1210
17854 #, no-wrap
17855 msgid ""
17856 " get-append\n"
17857 "\n"
17858 msgstr ""
17859
17860 # type: =head2
17861 #: ../fish/guestfish-actions.pod:1217
17862 msgid "get-autosync"
17863 msgstr ""
17864
17865 # type: verbatim
17866 #: ../fish/guestfish-actions.pod:1219
17867 #, no-wrap
17868 msgid ""
17869 " get-autosync\n"
17870 "\n"
17871 msgstr ""
17872
17873 # type: =head2
17874 #: ../fish/guestfish-actions.pod:1223
17875 msgid "get-direct"
17876 msgstr ""
17877
17878 # type: verbatim
17879 #: ../fish/guestfish-actions.pod:1225
17880 #, no-wrap
17881 msgid ""
17882 " get-direct\n"
17883 "\n"
17884 msgstr ""
17885
17886 # type: =head2
17887 #: ../fish/guestfish-actions.pod:1229
17888 msgid "get-e2label"
17889 msgstr ""
17890
17891 # type: verbatim
17892 #: ../fish/guestfish-actions.pod:1231
17893 #, no-wrap
17894 msgid ""
17895 " get-e2label device\n"
17896 "\n"
17897 msgstr ""
17898
17899 # type: =head2
17900 #: ../fish/guestfish-actions.pod:1243
17901 msgid "get-e2uuid"
17902 msgstr ""
17903
17904 # type: verbatim
17905 #: ../fish/guestfish-actions.pod:1245
17906 #, no-wrap
17907 msgid ""
17908 " get-e2uuid device\n"
17909 "\n"
17910 msgstr ""
17911
17912 # type: =head2
17913 #: ../fish/guestfish-actions.pod:1257
17914 msgid "get-memsize"
17915 msgstr ""
17916
17917 # type: verbatim
17918 #: ../fish/guestfish-actions.pod:1259
17919 #, no-wrap
17920 msgid ""
17921 " get-memsize\n"
17922 "\n"
17923 msgstr ""
17924
17925 # type: textblock
17926 #: ../fish/guestfish-actions.pod:1264
17927 msgid ""
17928 "If C<set-memsize> was not called on this handle, and if "
17929 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
17930 "value for memsize."
17931 msgstr ""
17932
17933 # type: =head2
17934 #: ../fish/guestfish-actions.pod:1271
17935 msgid "get-network"
17936 msgstr ""
17937
17938 # type: verbatim
17939 #: ../fish/guestfish-actions.pod:1273
17940 #, no-wrap
17941 msgid ""
17942 " get-network\n"
17943 "\n"
17944 msgstr ""
17945
17946 # type: =head2
17947 #: ../fish/guestfish-actions.pod:1277
17948 msgid "get-path"
17949 msgstr ""
17950
17951 # type: verbatim
17952 #: ../fish/guestfish-actions.pod:1279
17953 #, no-wrap
17954 msgid ""
17955 " get-path\n"
17956 "\n"
17957 msgstr ""
17958
17959 # type: =head2
17960 #: ../fish/guestfish-actions.pod:1286
17961 msgid "get-pid | pid"
17962 msgstr ""
17963
17964 # type: verbatim
17965 #: ../fish/guestfish-actions.pod:1288
17966 #, no-wrap
17967 msgid ""
17968 " get-pid\n"
17969 "\n"
17970 msgstr ""
17971
17972 # type: =head2
17973 #: ../fish/guestfish-actions.pod:1295
17974 msgid "get-qemu"
17975 msgstr ""
17976
17977 # type: verbatim
17978 #: ../fish/guestfish-actions.pod:1297
17979 #, no-wrap
17980 msgid ""
17981 " get-qemu\n"
17982 "\n"
17983 msgstr ""
17984
17985 # type: =head2
17986 #: ../fish/guestfish-actions.pod:1304
17987 msgid "get-recovery-proc"
17988 msgstr ""
17989
17990 # type: verbatim
17991 #: ../fish/guestfish-actions.pod:1306
17992 #, no-wrap
17993 msgid ""
17994 " get-recovery-proc\n"
17995 "\n"
17996 msgstr ""
17997
17998 # type: =head2
17999 #: ../fish/guestfish-actions.pod:1310
18000 msgid "get-selinux"
18001 msgstr ""
18002
18003 # type: verbatim
18004 #: ../fish/guestfish-actions.pod:1312
18005 #, no-wrap
18006 msgid ""
18007 " get-selinux\n"
18008 "\n"
18009 msgstr ""
18010
18011 # type: textblock
18012 #: ../fish/guestfish-actions.pod:1314
18013 msgid ""
18014 "This returns the current setting of the selinux flag which is passed to the "
18015 "appliance at boot time.  See C<set-selinux>."
18016 msgstr ""
18017
18018 # type: =head2
18019 #: ../fish/guestfish-actions.pod:1320
18020 msgid "get-state"
18021 msgstr ""
18022
18023 # type: verbatim
18024 #: ../fish/guestfish-actions.pod:1322
18025 #, no-wrap
18026 msgid ""
18027 " get-state\n"
18028 "\n"
18029 msgstr ""
18030
18031 # type: =head2
18032 #: ../fish/guestfish-actions.pod:1329
18033 msgid "get-trace"
18034 msgstr ""
18035
18036 # type: verbatim
18037 #: ../fish/guestfish-actions.pod:1331
18038 #, no-wrap
18039 msgid ""
18040 " get-trace\n"
18041 "\n"
18042 msgstr ""
18043
18044 # type: =head2
18045 #: ../fish/guestfish-actions.pod:1335
18046 msgid "get-umask"
18047 msgstr ""
18048
18049 # type: verbatim
18050 #: ../fish/guestfish-actions.pod:1337
18051 #, no-wrap
18052 msgid ""
18053 " get-umask\n"
18054 "\n"
18055 msgstr ""
18056
18057 # type: textblock
18058 #: ../fish/guestfish-actions.pod:1339
18059 msgid ""
18060 "Return the current umask.  By default the umask is C<022> unless it has been "
18061 "set by calling C<umask>."
18062 msgstr ""
18063
18064 # type: =head2
18065 #: ../fish/guestfish-actions.pod:1342
18066 msgid "get-verbose"
18067 msgstr ""
18068
18069 # type: verbatim
18070 #: ../fish/guestfish-actions.pod:1344
18071 #, no-wrap
18072 msgid ""
18073 " get-verbose\n"
18074 "\n"
18075 msgstr ""
18076
18077 # type: =head2
18078 #: ../fish/guestfish-actions.pod:1348
18079 msgid "getcon"
18080 msgstr ""
18081
18082 # type: verbatim
18083 #: ../fish/guestfish-actions.pod:1350
18084 #, no-wrap
18085 msgid ""
18086 " getcon\n"
18087 "\n"
18088 msgstr ""
18089
18090 # type: textblock
18091 #: ../fish/guestfish-actions.pod:1354
18092 msgid "See the documentation about SELINUX in L<guestfs(3)>, and C<setcon>"
18093 msgstr ""
18094
18095 # type: =head2
18096 #: ../fish/guestfish-actions.pod:1357
18097 msgid "getxattrs"
18098 msgstr ""
18099
18100 # type: verbatim
18101 #: ../fish/guestfish-actions.pod:1359
18102 #, no-wrap
18103 msgid ""
18104 " getxattrs path\n"
18105 "\n"
18106 msgstr ""
18107
18108 # type: textblock
18109 #: ../fish/guestfish-actions.pod:1367
18110 msgid "See also: C<lgetxattrs>, L<attr(5)>."
18111 msgstr ""
18112
18113 # type: =head2
18114 #: ../fish/guestfish-actions.pod:1369
18115 msgid "glob-expand"
18116 msgstr ""
18117
18118 # type: verbatim
18119 #: ../fish/guestfish-actions.pod:1371
18120 #, no-wrap
18121 msgid ""
18122 " glob-expand pattern\n"
18123 "\n"
18124 msgstr ""
18125
18126 # type: =head2
18127 #: ../fish/guestfish-actions.pod:1384
18128 msgid "grep"
18129 msgstr ""
18130
18131 # type: verbatim
18132 #: ../fish/guestfish-actions.pod:1386
18133 #, no-wrap
18134 msgid ""
18135 " grep regex path\n"
18136 "\n"
18137 msgstr ""
18138
18139 # type: =head2
18140 #: ../fish/guestfish-actions.pod:1394
18141 msgid "grepi"
18142 msgstr ""
18143
18144 # type: verbatim
18145 #: ../fish/guestfish-actions.pod:1396
18146 #, no-wrap
18147 msgid ""
18148 " grepi regex path\n"
18149 "\n"
18150 msgstr ""
18151
18152 # type: =head2
18153 #: ../fish/guestfish-actions.pod:1404
18154 msgid "grub-install"
18155 msgstr ""
18156
18157 # type: verbatim
18158 #: ../fish/guestfish-actions.pod:1406
18159 #, no-wrap
18160 msgid ""
18161 " grub-install root device\n"
18162 "\n"
18163 msgstr ""
18164
18165 # type: =head2
18166 #: ../fish/guestfish-actions.pod:1422
18167 msgid "head"
18168 msgstr ""
18169
18170 # type: verbatim
18171 #: ../fish/guestfish-actions.pod:1424
18172 #, no-wrap
18173 msgid ""
18174 " head path\n"
18175 "\n"
18176 msgstr ""
18177
18178 # type: =head2
18179 #: ../fish/guestfish-actions.pod:1432
18180 msgid "head-n"
18181 msgstr ""
18182
18183 # type: verbatim
18184 #: ../fish/guestfish-actions.pod:1434
18185 #, no-wrap
18186 msgid ""
18187 " head-n nrlines path\n"
18188 "\n"
18189 msgstr ""
18190
18191 # type: =head2
18192 #: ../fish/guestfish-actions.pod:1447
18193 msgid "hexdump"
18194 msgstr ""
18195
18196 # type: verbatim
18197 #: ../fish/guestfish-actions.pod:1449
18198 #, no-wrap
18199 msgid ""
18200 " hexdump path\n"
18201 "\n"
18202 msgstr ""
18203
18204 # type: =head2
18205 #: ../fish/guestfish-actions.pod:1457
18206 msgid "initrd-cat"
18207 msgstr ""
18208
18209 # type: verbatim
18210 #: ../fish/guestfish-actions.pod:1459
18211 #, no-wrap
18212 msgid ""
18213 " initrd-cat initrdpath filename\n"
18214 "\n"
18215 msgstr ""
18216
18217 # type: textblock
18218 #: ../fish/guestfish-actions.pod:1471
18219 msgid "See also C<initrd-list>."
18220 msgstr ""
18221
18222 # type: =head2
18223 #: ../fish/guestfish-actions.pod:1476
18224 msgid "initrd-list"
18225 msgstr ""
18226
18227 # type: verbatim
18228 #: ../fish/guestfish-actions.pod:1478
18229 #, no-wrap
18230 msgid ""
18231 " initrd-list path\n"
18232 "\n"
18233 msgstr ""
18234
18235 # type: =head2
18236 #: ../fish/guestfish-actions.pod:1490
18237 msgid "inotify-add-watch"
18238 msgstr ""
18239
18240 # type: verbatim
18241 #: ../fish/guestfish-actions.pod:1492
18242 #, no-wrap
18243 msgid ""
18244 " inotify-add-watch path mask\n"
18245 "\n"
18246 msgstr ""
18247
18248 # type: =head2
18249 #: ../fish/guestfish-actions.pod:1504
18250 msgid "inotify-close"
18251 msgstr ""
18252
18253 # type: verbatim
18254 #: ../fish/guestfish-actions.pod:1506
18255 #, no-wrap
18256 msgid ""
18257 " inotify-close\n"
18258 "\n"
18259 msgstr ""
18260
18261 # type: =head2
18262 #: ../fish/guestfish-actions.pod:1512
18263 msgid "inotify-files"
18264 msgstr ""
18265
18266 # type: verbatim
18267 #: ../fish/guestfish-actions.pod:1514
18268 #, no-wrap
18269 msgid ""
18270 " inotify-files\n"
18271 "\n"
18272 msgstr ""
18273
18274 # type: textblock
18275 #: ../fish/guestfish-actions.pod:1516
18276 msgid ""
18277 "This function is a helpful wrapper around C<inotify-read> which just returns "
18278 "a list of pathnames of objects that were touched.  The returned pathnames "
18279 "are sorted and deduplicated."
18280 msgstr ""
18281
18282 # type: =head2
18283 #: ../fish/guestfish-actions.pod:1520
18284 msgid "inotify-init"
18285 msgstr ""
18286
18287 # type: verbatim
18288 #: ../fish/guestfish-actions.pod:1522
18289 #, no-wrap
18290 msgid ""
18291 " inotify-init maxevents\n"
18292 "\n"
18293 msgstr ""
18294
18295 # type: textblock
18296 #: ../fish/guestfish-actions.pod:1528
18297 msgid ""
18298 "C<maxevents> is the maximum number of events which will be queued up between "
18299 "calls to C<inotify-read> or C<inotify-files>.  If this is passed as C<0>, "
18300 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
18301 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
18302 "but records the fact that it threw them away by setting a flag "
18303 "C<IN_Q_OVERFLOW> in the returned structure list (see C<inotify-read>)."
18304 msgstr ""
18305
18306 # type: textblock
18307 #: ../fish/guestfish-actions.pod:1538
18308 msgid ""
18309 "Before any events are generated, you have to add some watches to the "
18310 "internal watch list.  See: C<inotify-add-watch>, C<inotify-rm-watch> and "
18311 "C<inotify-watch-all>."
18312 msgstr ""
18313
18314 # type: textblock
18315 #: ../fish/guestfish-actions.pod:1544
18316 msgid ""
18317 "Queued up events should be read periodically by calling C<inotify-read> (or "
18318 "C<inotify-files> which is just a helpful wrapper around C<inotify-read>).  "
18319 "If you don't read the events out often enough then you risk the internal "
18320 "queue overflowing."
18321 msgstr ""
18322
18323 # type: textblock
18324 #: ../fish/guestfish-actions.pod:1551
18325 msgid ""
18326 "The handle should be closed after use by calling C<inotify-close>.  This "
18327 "also removes any watches automatically."
18328 msgstr ""
18329
18330 # type: =head2
18331 #: ../fish/guestfish-actions.pod:1560
18332 msgid "inotify-read"
18333 msgstr ""
18334
18335 # type: verbatim
18336 #: ../fish/guestfish-actions.pod:1562
18337 #, no-wrap
18338 msgid ""
18339 " inotify-read\n"
18340 "\n"
18341 msgstr ""
18342
18343 # type: =head2
18344 #: ../fish/guestfish-actions.pod:1575
18345 msgid "inotify-rm-watch"
18346 msgstr ""
18347
18348 # type: verbatim
18349 #: ../fish/guestfish-actions.pod:1577
18350 #, no-wrap
18351 msgid ""
18352 " inotify-rm-watch wd\n"
18353 "\n"
18354 msgstr ""
18355
18356 # type: textblock
18357 #: ../fish/guestfish-actions.pod:1579
18358 msgid "Remove a previously defined inotify watch.  See C<inotify-add-watch>."
18359 msgstr ""
18360
18361 # type: =head2
18362 #: ../fish/guestfish-actions.pod:1582
18363 msgid "inspect-get-arch"
18364 msgstr ""
18365
18366 # type: verbatim
18367 #: ../fish/guestfish-actions.pod:1584
18368 #, no-wrap
18369 msgid ""
18370 " inspect-get-arch root\n"
18371 "\n"
18372 msgstr ""
18373
18374 # type: textblock
18375 #: ../fish/guestfish-actions.pod:1586 ../fish/guestfish-actions.pod:1602 ../fish/guestfish-actions.pod:1648 ../fish/guestfish-actions.pod:1666 ../fish/guestfish-actions.pod:1687 ../fish/guestfish-actions.pod:1702 ../fish/guestfish-actions.pod:1725 ../fish/guestfish-actions.pod:1742
18376 msgid ""
18377 "This function should only be called with a root device string as returned by "
18378 "C<inspect-os>."
18379 msgstr ""
18380
18381 # type: textblock
18382 #: ../fish/guestfish-actions.pod:1589
18383 msgid ""
18384 "This returns the architecture of the inspected operating system.  The "
18385 "possible return values are listed under C<file-architecture>."
18386 msgstr ""
18387
18388 # type: =head2
18389 #: ../fish/guestfish-actions.pod:1598
18390 msgid "inspect-get-distro"
18391 msgstr ""
18392
18393 # type: verbatim
18394 #: ../fish/guestfish-actions.pod:1600
18395 #, no-wrap
18396 msgid ""
18397 " inspect-get-distro root\n"
18398 "\n"
18399 msgstr ""
18400
18401 # type: =head2
18402 #: ../fish/guestfish-actions.pod:1644
18403 msgid "inspect-get-filesystems"
18404 msgstr ""
18405
18406 # type: verbatim
18407 #: ../fish/guestfish-actions.pod:1646
18408 #, no-wrap
18409 msgid ""
18410 " inspect-get-filesystems root\n"
18411 "\n"
18412 msgstr ""
18413
18414 # type: textblock
18415 #: ../fish/guestfish-actions.pod:1659
18416 msgid ""
18417 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
18418 "C<inspect-get-mountpoints>."
18419 msgstr ""
18420
18421 # type: =head2
18422 #: ../fish/guestfish-actions.pod:1662
18423 msgid "inspect-get-major-version"
18424 msgstr ""
18425
18426 # type: verbatim
18427 #: ../fish/guestfish-actions.pod:1664
18428 #, no-wrap
18429 msgid ""
18430 " inspect-get-major-version root\n"
18431 "\n"
18432 msgstr ""
18433
18434 # type: =head2
18435 #: ../fish/guestfish-actions.pod:1683
18436 msgid "inspect-get-minor-version"
18437 msgstr ""
18438
18439 # type: verbatim
18440 #: ../fish/guestfish-actions.pod:1685
18441 #, no-wrap
18442 msgid ""
18443 " inspect-get-minor-version root\n"
18444 "\n"
18445 msgstr ""
18446
18447 # type: textblock
18448 #: ../fish/guestfish-actions.pod:1695
18449 msgid ""
18450 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
18451 "C<inspect-get-major-version>."
18452 msgstr ""
18453
18454 # type: =head2
18455 #: ../fish/guestfish-actions.pod:1698
18456 msgid "inspect-get-mountpoints"
18457 msgstr ""
18458
18459 # type: verbatim
18460 #: ../fish/guestfish-actions.pod:1700
18461 #, no-wrap
18462 msgid ""
18463 " inspect-get-mountpoints root\n"
18464 "\n"
18465 msgstr ""
18466
18467 # type: textblock
18468 #: ../fish/guestfish-actions.pod:1718
18469 msgid ""
18470 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
18471 "C<inspect-get-filesystems>."
18472 msgstr ""
18473
18474 # type: =head2
18475 #: ../fish/guestfish-actions.pod:1721
18476 msgid "inspect-get-product-name"
18477 msgstr ""
18478
18479 # type: verbatim
18480 #: ../fish/guestfish-actions.pod:1723
18481 #, no-wrap
18482 msgid ""
18483 " inspect-get-product-name root\n"
18484 "\n"
18485 msgstr ""
18486
18487 # type: =head2
18488 #: ../fish/guestfish-actions.pod:1738
18489 msgid "inspect-get-type"
18490 msgstr ""
18491
18492 # type: verbatim
18493 #: ../fish/guestfish-actions.pod:1740
18494 #, no-wrap
18495 msgid ""
18496 " inspect-get-type root\n"
18497 "\n"
18498 msgstr ""
18499
18500 # type: =head2
18501 #: ../fish/guestfish-actions.pod:1769
18502 msgid "inspect-os"
18503 msgstr ""
18504
18505 # type: verbatim
18506 #: ../fish/guestfish-actions.pod:1771
18507 #, no-wrap
18508 msgid ""
18509 " inspect-os\n"
18510 "\n"
18511 msgstr ""
18512
18513 # type: textblock
18514 #: ../fish/guestfish-actions.pod:1786
18515 msgid ""
18516 "You can pass the root string(s) returned to other C<inspect-get-*> functions "
18517 "in order to query further information about each operating system, such as "
18518 "the name and version."
18519 msgstr ""
18520
18521 # type: textblock
18522 #: ../fish/guestfish-actions.pod:1791
18523 msgid ""
18524 "This function uses other libguestfs features such as C<mount-ro> and "
18525 "C<umount-all> in order to mount and unmount filesystems and look at the "
18526 "contents.  This should be called with no disks currently mounted.  The "
18527 "function may also use Augeas, so any existing Augeas handle will be closed."
18528 msgstr ""
18529
18530 # type: textblock
18531 #: ../fish/guestfish-actions.pod:1803 ../fish/guestfish-actions.pod:1957 ../fish/guestfish-actions.pod:2003
18532 msgid "See also C<list-filesystems>."
18533 msgstr ""
18534
18535 # type: =head2
18536 #: ../fish/guestfish-actions.pod:1805
18537 msgid "is-blockdev"
18538 msgstr ""
18539
18540 # type: verbatim
18541 #: ../fish/guestfish-actions.pod:1807
18542 #, no-wrap
18543 msgid ""
18544 " is-blockdev path\n"
18545 "\n"
18546 msgstr ""
18547
18548 # type: textblock
18549 #: ../fish/guestfish-actions.pod:1812 ../fish/guestfish-actions.pod:1830 ../fish/guestfish-actions.pod:1849 ../fish/guestfish-actions.pod:1858 ../fish/guestfish-actions.pod:1868 ../fish/guestfish-actions.pod:1902 ../fish/guestfish-actions.pod:1911
18550 msgid "See also C<stat>."
18551 msgstr ""
18552
18553 # type: =head2
18554 #: ../fish/guestfish-actions.pod:1814
18555 msgid "is-busy"
18556 msgstr ""
18557
18558 # type: verbatim
18559 #: ../fish/guestfish-actions.pod:1816
18560 #, no-wrap
18561 msgid ""
18562 " is-busy\n"
18563 "\n"
18564 msgstr ""
18565
18566 # type: =head2
18567 #: ../fish/guestfish-actions.pod:1823
18568 msgid "is-chardev"
18569 msgstr ""
18570
18571 # type: verbatim
18572 #: ../fish/guestfish-actions.pod:1825
18573 #, no-wrap
18574 msgid ""
18575 " is-chardev path\n"
18576 "\n"
18577 msgstr ""
18578
18579 # type: =head2
18580 #: ../fish/guestfish-actions.pod:1832
18581 msgid "is-config"
18582 msgstr ""
18583
18584 # type: verbatim
18585 #: ../fish/guestfish-actions.pod:1834
18586 #, no-wrap
18587 msgid ""
18588 " is-config\n"
18589 "\n"
18590 msgstr ""
18591
18592 # type: =head2
18593 #: ../fish/guestfish-actions.pod:1841
18594 msgid "is-dir"
18595 msgstr ""
18596
18597 # type: verbatim
18598 #: ../fish/guestfish-actions.pod:1843
18599 #, no-wrap
18600 msgid ""
18601 " is-dir path\n"
18602 "\n"
18603 msgstr ""
18604
18605 # type: =head2
18606 #: ../fish/guestfish-actions.pod:1851
18607 msgid "is-fifo"
18608 msgstr ""
18609
18610 # type: verbatim
18611 #: ../fish/guestfish-actions.pod:1853
18612 #, no-wrap
18613 msgid ""
18614 " is-fifo path\n"
18615 "\n"
18616 msgstr ""
18617
18618 # type: =head2
18619 #: ../fish/guestfish-actions.pod:1860
18620 msgid "is-file"
18621 msgstr ""
18622
18623 # type: verbatim
18624 #: ../fish/guestfish-actions.pod:1862
18625 #, no-wrap
18626 msgid ""
18627 " is-file path\n"
18628 "\n"
18629 msgstr ""
18630
18631 # type: =head2
18632 #: ../fish/guestfish-actions.pod:1870
18633 msgid "is-launching"
18634 msgstr ""
18635
18636 # type: verbatim
18637 #: ../fish/guestfish-actions.pod:1872
18638 #, no-wrap
18639 msgid ""
18640 " is-launching\n"
18641 "\n"
18642 msgstr ""
18643
18644 # type: =head2
18645 #: ../fish/guestfish-actions.pod:1879
18646 msgid "is-lv"
18647 msgstr ""
18648
18649 # type: verbatim
18650 #: ../fish/guestfish-actions.pod:1881
18651 #, no-wrap
18652 msgid ""
18653 " is-lv device\n"
18654 "\n"
18655 msgstr ""
18656
18657 # type: =head2
18658 #: ../fish/guestfish-actions.pod:1886
18659 msgid "is-ready"
18660 msgstr ""
18661
18662 # type: verbatim
18663 #: ../fish/guestfish-actions.pod:1888
18664 #, no-wrap
18665 msgid ""
18666 " is-ready\n"
18667 "\n"
18668 msgstr ""
18669
18670 # type: =head2
18671 #: ../fish/guestfish-actions.pod:1895
18672 msgid "is-socket"
18673 msgstr ""
18674
18675 # type: verbatim
18676 #: ../fish/guestfish-actions.pod:1897
18677 #, no-wrap
18678 msgid ""
18679 " is-socket path\n"
18680 "\n"
18681 msgstr ""
18682
18683 # type: =head2
18684 #: ../fish/guestfish-actions.pod:1904
18685 msgid "is-symlink"
18686 msgstr ""
18687
18688 # type: verbatim
18689 #: ../fish/guestfish-actions.pod:1906
18690 #, no-wrap
18691 msgid ""
18692 " is-symlink path\n"
18693 "\n"
18694 msgstr ""
18695
18696 # type: =head2
18697 #: ../fish/guestfish-actions.pod:1913
18698 msgid "kill-subprocess"
18699 msgstr ""
18700
18701 # type: verbatim
18702 #: ../fish/guestfish-actions.pod:1915
18703 #, no-wrap
18704 msgid ""
18705 " kill-subprocess\n"
18706 "\n"
18707 msgstr ""
18708
18709 # type: =head2
18710 #: ../fish/guestfish-actions.pod:1919
18711 msgid "launch | run"
18712 msgstr ""
18713
18714 # type: verbatim
18715 #: ../fish/guestfish-actions.pod:1921
18716 #, no-wrap
18717 msgid ""
18718 " launch\n"
18719 "\n"
18720 msgstr ""
18721
18722 # type: =head2
18723 #: ../fish/guestfish-actions.pod:1929
18724 msgid "lchown"
18725 msgstr ""
18726
18727 # type: verbatim
18728 #: ../fish/guestfish-actions.pod:1931
18729 #, no-wrap
18730 msgid ""
18731 " lchown owner group path\n"
18732 "\n"
18733 msgstr ""
18734
18735 # type: textblock
18736 #: ../fish/guestfish-actions.pod:1933
18737 msgid ""
18738 "Change the file owner to C<owner> and group to C<group>.  This is like "
18739 "C<chown> but if C<path> is a symlink then the link itself is changed, not "
18740 "the target."
18741 msgstr ""
18742
18743 # type: =head2
18744 #: ../fish/guestfish-actions.pod:1941
18745 msgid "lgetxattrs"
18746 msgstr ""
18747
18748 # type: verbatim
18749 #: ../fish/guestfish-actions.pod:1943
18750 #, no-wrap
18751 msgid ""
18752 " lgetxattrs path\n"
18753 "\n"
18754 msgstr ""
18755
18756 # type: textblock
18757 #: ../fish/guestfish-actions.pod:1945
18758 msgid ""
18759 "This is the same as C<getxattrs>, but if C<path> is a symbolic link, then it "
18760 "returns the extended attributes of the link itself."
18761 msgstr ""
18762
18763 # type: =head2
18764 #: ../fish/guestfish-actions.pod:1949
18765 msgid "list-devices"
18766 msgstr ""
18767
18768 # type: verbatim
18769 #: ../fish/guestfish-actions.pod:1951
18770 #, no-wrap
18771 msgid ""
18772 " list-devices\n"
18773 "\n"
18774 msgstr ""
18775
18776 # type: =head2
18777 #: ../fish/guestfish-actions.pod:1959
18778 msgid "list-filesystems"
18779 msgstr ""
18780
18781 # type: verbatim
18782 #: ../fish/guestfish-actions.pod:1961
18783 #, no-wrap
18784 msgid ""
18785 " list-filesystems\n"
18786 "\n"
18787 msgstr ""
18788
18789 # type: textblock
18790 #: ../fish/guestfish-actions.pod:1980
18791 msgid ""
18792 "This command runs other libguestfs commands, which might include C<mount> "
18793 "and C<umount>, and therefore you should use this soon after launch and only "
18794 "when nothing is mounted."
18795 msgstr ""
18796
18797 # type: textblock
18798 #: ../fish/guestfish-actions.pod:1984
18799 msgid ""
18800 "Not all of the filesystems returned will be mountable.  In particular, swap "
18801 "partitions are returned in the list.  Also this command does not check that "
18802 "each filesystem found is valid and mountable, and some filesystems might be "
18803 "mountable but require special options.  Filesystems may not all belong to a "
18804 "single logical operating system (use C<inspect-os> to look for OSes)."
18805 msgstr ""
18806
18807 # type: =head2
18808 #: ../fish/guestfish-actions.pod:1992
18809 msgid "list-partitions"
18810 msgstr ""
18811
18812 # type: verbatim
18813 #: ../fish/guestfish-actions.pod:1994
18814 #, no-wrap
18815 msgid ""
18816 " list-partitions\n"
18817 "\n"
18818 msgstr ""
18819
18820 # type: textblock
18821 #: ../fish/guestfish-actions.pod:2000
18822 msgid ""
18823 "This does not return logical volumes.  For that you will need to call "
18824 "C<lvs>."
18825 msgstr ""
18826
18827 # type: =head2
18828 #: ../fish/guestfish-actions.pod:2005
18829 msgid "ll"
18830 msgstr ""
18831
18832 # type: verbatim
18833 #: ../fish/guestfish-actions.pod:2007
18834 #, no-wrap
18835 msgid ""
18836 " ll directory\n"
18837 "\n"
18838 msgstr ""
18839
18840 # type: =head2
18841 #: ../fish/guestfish-actions.pod:2015
18842 msgid "ln"
18843 msgstr ""
18844
18845 # type: verbatim
18846 #: ../fish/guestfish-actions.pod:2017
18847 #, no-wrap
18848 msgid ""
18849 " ln target linkname\n"
18850 "\n"
18851 msgstr ""
18852
18853 # type: =head2
18854 #: ../fish/guestfish-actions.pod:2021
18855 msgid "ln-f"
18856 msgstr ""
18857
18858 # type: verbatim
18859 #: ../fish/guestfish-actions.pod:2023
18860 #, no-wrap
18861 msgid ""
18862 " ln-f target linkname\n"
18863 "\n"
18864 msgstr ""
18865
18866 # type: =head2
18867 #: ../fish/guestfish-actions.pod:2028
18868 msgid "ln-s"
18869 msgstr ""
18870
18871 # type: verbatim
18872 #: ../fish/guestfish-actions.pod:2030
18873 #, no-wrap
18874 msgid ""
18875 " ln-s target linkname\n"
18876 "\n"
18877 msgstr ""
18878
18879 # type: =head2
18880 #: ../fish/guestfish-actions.pod:2034
18881 msgid "ln-sf"
18882 msgstr ""
18883
18884 # type: verbatim
18885 #: ../fish/guestfish-actions.pod:2036
18886 #, no-wrap
18887 msgid ""
18888 " ln-sf target linkname\n"
18889 "\n"
18890 msgstr ""
18891
18892 # type: =head2
18893 #: ../fish/guestfish-actions.pod:2041
18894 msgid "lremovexattr"
18895 msgstr ""
18896
18897 # type: verbatim
18898 #: ../fish/guestfish-actions.pod:2043
18899 #, no-wrap
18900 msgid ""
18901 " lremovexattr xattr path\n"
18902 "\n"
18903 msgstr ""
18904
18905 # type: textblock
18906 #: ../fish/guestfish-actions.pod:2045
18907 msgid ""
18908 "This is the same as C<removexattr>, but if C<path> is a symbolic link, then "
18909 "it removes an extended attribute of the link itself."
18910 msgstr ""
18911
18912 # type: =head2
18913 #: ../fish/guestfish-actions.pod:2049
18914 msgid "ls"
18915 msgstr ""
18916
18917 # type: verbatim
18918 #: ../fish/guestfish-actions.pod:2051
18919 #, no-wrap
18920 msgid ""
18921 " ls directory\n"
18922 "\n"
18923 msgstr ""
18924
18925 # type: textblock
18926 #: ../fish/guestfish-actions.pod:2057
18927 msgid ""
18928 "This command is mostly useful for interactive sessions.  Programs should "
18929 "probably use C<readdir> instead."
18930 msgstr ""
18931
18932 # type: =head2
18933 #: ../fish/guestfish-actions.pod:2060
18934 msgid "lsetxattr"
18935 msgstr ""
18936
18937 # type: verbatim
18938 #: ../fish/guestfish-actions.pod:2062
18939 #, no-wrap
18940 msgid ""
18941 " lsetxattr xattr val vallen path\n"
18942 "\n"
18943 msgstr ""
18944
18945 # type: textblock
18946 #: ../fish/guestfish-actions.pod:2064
18947 msgid ""
18948 "This is the same as C<setxattr>, but if C<path> is a symbolic link, then it "
18949 "sets an extended attribute of the link itself."
18950 msgstr ""
18951
18952 # type: =head2
18953 #: ../fish/guestfish-actions.pod:2068
18954 msgid "lstat"
18955 msgstr ""
18956
18957 # type: verbatim
18958 #: ../fish/guestfish-actions.pod:2070
18959 #, no-wrap
18960 msgid ""
18961 " lstat path\n"
18962 "\n"
18963 msgstr ""
18964
18965 # type: textblock
18966 #: ../fish/guestfish-actions.pod:2074
18967 msgid ""
18968 "This is the same as C<stat> except that if C<path> is a symbolic link, then "
18969 "the link is stat-ed, not the file it refers to."
18970 msgstr ""
18971
18972 # type: =head2
18973 #: ../fish/guestfish-actions.pod:2080
18974 msgid "lstatlist"
18975 msgstr ""
18976
18977 # type: verbatim
18978 #: ../fish/guestfish-actions.pod:2082
18979 #, no-wrap
18980 msgid ""
18981 " lstatlist path 'names ...'\n"
18982 "\n"
18983 msgstr ""
18984
18985 # type: textblock
18986 #: ../fish/guestfish-actions.pod:2084
18987 msgid ""
18988 "This call allows you to perform the C<lstat> operation on multiple files, "
18989 "where all files are in the directory C<path>.  C<names> is the list of files "
18990 "from this directory."
18991 msgstr ""
18992
18993 # type: textblock
18994 #: ../fish/guestfish-actions.pod:2093
18995 msgid ""
18996 "This call is intended for programs that want to efficiently list a directory "
18997 "contents without making many round-trips.  See also C<lxattrlist> for a "
18998 "similarly efficient call for getting extended attributes.  Very long "
18999 "directory listings might cause the protocol message size to be exceeded, "
19000 "causing this call to fail.  The caller must split up such requests into "
19001 "smaller groups of names."
19002 msgstr ""
19003
19004 # type: =head2
19005 #: ../fish/guestfish-actions.pod:2101
19006 msgid "luks-add-key"
19007 msgstr ""
19008
19009 # type: verbatim
19010 #: ../fish/guestfish-actions.pod:2103
19011 #, no-wrap
19012 msgid ""
19013 " luks-add-key device keyslot\n"
19014 "\n"
19015 msgstr ""
19016
19017 # type: textblock
19018 #: ../fish/guestfish-actions.pod:2110
19019 msgid ""
19020 "Note that if C<keyslot> already contains a key, then this command will "
19021 "fail.  You have to use C<luks-kill-slot> first to remove that key."
19022 msgstr ""
19023
19024 # type: textblock
19025 #: ../fish/guestfish-actions.pod:2114 ../fish/guestfish-actions.pod:2136 ../fish/guestfish-actions.pod:2149 ../fish/guestfish-actions.pod:2163 ../fish/guestfish-actions.pod:2186 ../fish/guestfish-actions.pod:2196
19026 msgid ""
19027 "This command has one or more key or passphrase parameters.  Guestfish will "
19028 "prompt for these separately."
19029 msgstr ""
19030
19031 # type: =head2
19032 #: ../fish/guestfish-actions.pod:2117
19033 msgid "luks-close"
19034 msgstr ""
19035
19036 # type: verbatim
19037 #: ../fish/guestfish-actions.pod:2119
19038 #, no-wrap
19039 msgid ""
19040 " luks-close device\n"
19041 "\n"
19042 msgstr ""
19043
19044 # type: textblock
19045 #: ../fish/guestfish-actions.pod:2121
19046 msgid ""
19047 "This closes a LUKS device that was created earlier by C<luks-open> or "
19048 "C<luks-open-ro>.  The C<device> parameter must be the name of the LUKS "
19049 "mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
19050 "underlying block device."
19051 msgstr ""
19052
19053 # type: =head2
19054 #: ../fish/guestfish-actions.pod:2127
19055 msgid "luks-format"
19056 msgstr ""
19057
19058 # type: verbatim
19059 #: ../fish/guestfish-actions.pod:2129
19060 #, no-wrap
19061 msgid ""
19062 " luks-format device keyslot\n"
19063 "\n"
19064 msgstr ""
19065
19066 # type: =head2
19067 #: ../fish/guestfish-actions.pod:2142
19068 msgid "luks-format-cipher"
19069 msgstr ""
19070
19071 # type: verbatim
19072 #: ../fish/guestfish-actions.pod:2144
19073 #, no-wrap
19074 msgid ""
19075 " luks-format-cipher device keyslot cipher\n"
19076 "\n"
19077 msgstr ""
19078
19079 # type: textblock
19080 #: ../fish/guestfish-actions.pod:2146
19081 msgid ""
19082 "This command is the same as C<luks-format> but it also allows you to set the "
19083 "C<cipher> used."
19084 msgstr ""
19085
19086 # type: =head2
19087 #: ../fish/guestfish-actions.pod:2155
19088 msgid "luks-kill-slot"
19089 msgstr ""
19090
19091 # type: verbatim
19092 #: ../fish/guestfish-actions.pod:2157
19093 #, no-wrap
19094 msgid ""
19095 " luks-kill-slot device keyslot\n"
19096 "\n"
19097 msgstr ""
19098
19099 # type: =head2
19100 #: ../fish/guestfish-actions.pod:2166
19101 msgid "luks-open"
19102 msgstr ""
19103
19104 # type: verbatim
19105 #: ../fish/guestfish-actions.pod:2168
19106 #, no-wrap
19107 msgid ""
19108 " luks-open device mapname\n"
19109 "\n"
19110 msgstr ""
19111
19112 # type: textblock
19113 #: ../fish/guestfish-actions.pod:2182
19114 msgid ""
19115 "If this block device contains LVM volume groups, then calling C<vgscan> "
19116 "followed by C<vg-activate-all> will make them visible."
19117 msgstr ""
19118
19119 # type: =head2
19120 #: ../fish/guestfish-actions.pod:2189
19121 msgid "luks-open-ro"
19122 msgstr ""
19123
19124 # type: verbatim
19125 #: ../fish/guestfish-actions.pod:2191
19126 #, no-wrap
19127 msgid ""
19128 " luks-open-ro device mapname\n"
19129 "\n"
19130 msgstr ""
19131
19132 # type: textblock
19133 #: ../fish/guestfish-actions.pod:2193
19134 msgid "This is the same as C<luks-open> except that a read-only mapping is created."
19135 msgstr ""
19136
19137 # type: =head2
19138 #: ../fish/guestfish-actions.pod:2199
19139 msgid "lvcreate"
19140 msgstr ""
19141
19142 # type: verbatim
19143 #: ../fish/guestfish-actions.pod:2201
19144 #, no-wrap
19145 msgid ""
19146 " lvcreate logvol volgroup mbytes\n"
19147 "\n"
19148 msgstr ""
19149
19150 # type: =head2
19151 #: ../fish/guestfish-actions.pod:2206
19152 msgid "lvm-clear-filter"
19153 msgstr ""
19154
19155 # type: verbatim
19156 #: ../fish/guestfish-actions.pod:2208
19157 #, no-wrap
19158 msgid ""
19159 " lvm-clear-filter\n"
19160 "\n"
19161 msgstr ""
19162
19163 # type: textblock
19164 #: ../fish/guestfish-actions.pod:2210
19165 msgid ""
19166 "This undoes the effect of C<lvm-set-filter>.  LVM will be able to see every "
19167 "block device."
19168 msgstr ""
19169
19170 # type: =head2
19171 #: ../fish/guestfish-actions.pod:2216
19172 msgid "lvm-remove-all"
19173 msgstr ""
19174
19175 # type: verbatim
19176 #: ../fish/guestfish-actions.pod:2218
19177 #, no-wrap
19178 msgid ""
19179 " lvm-remove-all\n"
19180 "\n"
19181 msgstr ""
19182
19183 # type: =head2
19184 #: ../fish/guestfish-actions.pod:2226
19185 msgid "lvm-set-filter"
19186 msgstr ""
19187
19188 # type: verbatim
19189 #: ../fish/guestfish-actions.pod:2228
19190 #, no-wrap
19191 msgid ""
19192 " lvm-set-filter 'devices ...'\n"
19193 "\n"
19194 msgstr ""
19195
19196 # type: =head2
19197 #: ../fish/guestfish-actions.pod:2253
19198 msgid "lvremove"
19199 msgstr ""
19200
19201 # type: verbatim
19202 #: ../fish/guestfish-actions.pod:2255
19203 #, no-wrap
19204 msgid ""
19205 " lvremove device\n"
19206 "\n"
19207 msgstr ""
19208
19209 # type: =head2
19210 #: ../fish/guestfish-actions.pod:2263
19211 msgid "lvrename"
19212 msgstr ""
19213
19214 # type: verbatim
19215 #: ../fish/guestfish-actions.pod:2265
19216 #, no-wrap
19217 msgid ""
19218 " lvrename logvol newlogvol\n"
19219 "\n"
19220 msgstr ""
19221
19222 # type: =head2
19223 #: ../fish/guestfish-actions.pod:2269
19224 msgid "lvresize"
19225 msgstr ""
19226
19227 # type: verbatim
19228 #: ../fish/guestfish-actions.pod:2271
19229 #, no-wrap
19230 msgid ""
19231 " lvresize device mbytes\n"
19232 "\n"
19233 msgstr ""
19234
19235 # type: =head2
19236 #: ../fish/guestfish-actions.pod:2277
19237 msgid "lvresize-free"
19238 msgstr ""
19239
19240 # type: verbatim
19241 #: ../fish/guestfish-actions.pod:2279
19242 #, no-wrap
19243 msgid ""
19244 " lvresize-free lv percent\n"
19245 "\n"
19246 msgstr ""
19247
19248 # type: =head2
19249 #: ../fish/guestfish-actions.pod:2287
19250 msgid "lvs"
19251 msgstr ""
19252
19253 # type: verbatim
19254 #: ../fish/guestfish-actions.pod:2289
19255 #, no-wrap
19256 msgid ""
19257 " lvs\n"
19258 "\n"
19259 msgstr ""
19260
19261 # type: textblock
19262 #: ../fish/guestfish-actions.pod:2297
19263 msgid "See also C<lvs-full>, C<list-filesystems>."
19264 msgstr ""
19265
19266 # type: =head2
19267 #: ../fish/guestfish-actions.pod:2299
19268 msgid "lvs-full"
19269 msgstr ""
19270
19271 # type: verbatim
19272 #: ../fish/guestfish-actions.pod:2301
19273 #, no-wrap
19274 msgid ""
19275 " lvs-full\n"
19276 "\n"
19277 msgstr ""
19278
19279 # type: =head2
19280 #: ../fish/guestfish-actions.pod:2306
19281 msgid "lvuuid"
19282 msgstr ""
19283
19284 # type: verbatim
19285 #: ../fish/guestfish-actions.pod:2308
19286 #, no-wrap
19287 msgid ""
19288 " lvuuid device\n"
19289 "\n"
19290 msgstr ""
19291
19292 # type: =head2
19293 #: ../fish/guestfish-actions.pod:2312
19294 msgid "lxattrlist"
19295 msgstr ""
19296
19297 # type: verbatim
19298 #: ../fish/guestfish-actions.pod:2314
19299 #, no-wrap
19300 msgid ""
19301 " lxattrlist path 'names ...'\n"
19302 "\n"
19303 msgstr ""
19304
19305 # type: textblock
19306 #: ../fish/guestfish-actions.pod:2330
19307 msgid ""
19308 "This call is intended for programs that want to efficiently list a directory "
19309 "contents without making many round-trips.  See also C<lstatlist> for a "
19310 "similarly efficient call for getting standard stats.  Very long directory "
19311 "listings might cause the protocol message size to be exceeded, causing this "
19312 "call to fail.  The caller must split up such requests into smaller groups of "
19313 "names."
19314 msgstr ""
19315
19316 # type: =head2
19317 #: ../fish/guestfish-actions.pod:2338
19318 msgid "mkdir"
19319 msgstr ""
19320
19321 # type: verbatim
19322 #: ../fish/guestfish-actions.pod:2340
19323 #, no-wrap
19324 msgid ""
19325 " mkdir path\n"
19326 "\n"
19327 msgstr ""
19328
19329 # type: =head2
19330 #: ../fish/guestfish-actions.pod:2344
19331 msgid "mkdir-mode"
19332 msgstr ""
19333
19334 # type: verbatim
19335 #: ../fish/guestfish-actions.pod:2346
19336 #, no-wrap
19337 msgid ""
19338 " mkdir-mode path mode\n"
19339 "\n"
19340 msgstr ""
19341
19342 # type: textblock
19343 #: ../fish/guestfish-actions.pod:2355
19344 msgid "See also C<mkdir>, C<umask>"
19345 msgstr ""
19346
19347 # type: =head2
19348 #: ../fish/guestfish-actions.pod:2357
19349 msgid "mkdir-p"
19350 msgstr ""
19351
19352 # type: verbatim
19353 #: ../fish/guestfish-actions.pod:2359
19354 #, no-wrap
19355 msgid ""
19356 " mkdir-p path\n"
19357 "\n"
19358 msgstr ""
19359
19360 # type: =head2
19361 #: ../fish/guestfish-actions.pod:2364
19362 msgid "mkdtemp"
19363 msgstr ""
19364
19365 # type: verbatim
19366 #: ../fish/guestfish-actions.pod:2366
19367 #, no-wrap
19368 msgid ""
19369 " mkdtemp template\n"
19370 "\n"
19371 msgstr ""
19372
19373 # type: =head2
19374 #: ../fish/guestfish-actions.pod:2387
19375 msgid "mke2fs-J"
19376 msgstr ""
19377
19378 # type: verbatim
19379 #: ../fish/guestfish-actions.pod:2389
19380 #, no-wrap
19381 msgid ""
19382 " mke2fs-J fstype blocksize device journal\n"
19383 "\n"
19384 msgstr ""
19385
19386 # type: textblock
19387 #: ../fish/guestfish-actions.pod:2397
19388 msgid "See also C<mke2journal>."
19389 msgstr ""
19390
19391 # type: =head2
19392 #: ../fish/guestfish-actions.pod:2399
19393 msgid "mke2fs-JL"
19394 msgstr ""
19395
19396 # type: verbatim
19397 #: ../fish/guestfish-actions.pod:2401
19398 #, no-wrap
19399 msgid ""
19400 " mke2fs-JL fstype blocksize device label\n"
19401 "\n"
19402 msgstr ""
19403
19404 # type: textblock
19405 #: ../fish/guestfish-actions.pod:2406
19406 msgid "See also C<mke2journal-L>."
19407 msgstr ""
19408
19409 # type: =head2
19410 #: ../fish/guestfish-actions.pod:2408
19411 msgid "mke2fs-JU"
19412 msgstr ""
19413
19414 # type: verbatim
19415 #: ../fish/guestfish-actions.pod:2410
19416 #, no-wrap
19417 msgid ""
19418 " mke2fs-JU fstype blocksize device uuid\n"
19419 "\n"
19420 msgstr ""
19421
19422 # type: textblock
19423 #: ../fish/guestfish-actions.pod:2415
19424 msgid "See also C<mke2journal-U>."
19425 msgstr ""
19426
19427 # type: =head2
19428 #: ../fish/guestfish-actions.pod:2417
19429 msgid "mke2journal"
19430 msgstr ""
19431
19432 # type: verbatim
19433 #: ../fish/guestfish-actions.pod:2419
19434 #, no-wrap
19435 msgid ""
19436 " mke2journal blocksize device\n"
19437 "\n"
19438 msgstr ""
19439
19440 # type: =head2
19441 #: ../fish/guestfish-actions.pod:2426
19442 msgid "mke2journal-L"
19443 msgstr ""
19444
19445 # type: verbatim
19446 #: ../fish/guestfish-actions.pod:2428
19447 #, no-wrap
19448 msgid ""
19449 " mke2journal-L blocksize label device\n"
19450 "\n"
19451 msgstr ""
19452
19453 # type: =head2
19454 #: ../fish/guestfish-actions.pod:2432
19455 msgid "mke2journal-U"
19456 msgstr ""
19457
19458 # type: verbatim
19459 #: ../fish/guestfish-actions.pod:2434
19460 #, no-wrap
19461 msgid ""
19462 " mke2journal-U blocksize uuid device\n"
19463 "\n"
19464 msgstr ""
19465
19466 # type: =head2
19467 #: ../fish/guestfish-actions.pod:2438
19468 msgid "mkfifo"
19469 msgstr ""
19470
19471 # type: verbatim
19472 #: ../fish/guestfish-actions.pod:2440
19473 #, no-wrap
19474 msgid ""
19475 " mkfifo mode path\n"
19476 "\n"
19477 msgstr ""
19478
19479 # type: textblock
19480 #: ../fish/guestfish-actions.pod:2442
19481 msgid ""
19482 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
19483 "is just a convenient wrapper around C<mknod>."
19484 msgstr ""
19485
19486 # type: =head2
19487 #: ../fish/guestfish-actions.pod:2448
19488 msgid "mkfs"
19489 msgstr ""
19490
19491 # type: verbatim
19492 #: ../fish/guestfish-actions.pod:2450
19493 #, no-wrap
19494 msgid ""
19495 " mkfs fstype device\n"
19496 "\n"
19497 msgstr ""
19498
19499 # type: =head2
19500 #: ../fish/guestfish-actions.pod:2456
19501 msgid "mkfs-b"
19502 msgstr ""
19503
19504 # type: verbatim
19505 #: ../fish/guestfish-actions.pod:2458
19506 #, no-wrap
19507 msgid ""
19508 " mkfs-b fstype blocksize device\n"
19509 "\n"
19510 msgstr ""
19511
19512 # type: textblock
19513 #: ../fish/guestfish-actions.pod:2460
19514 msgid ""
19515 "This call is similar to C<mkfs>, but it allows you to control the block size "
19516 "of the resulting filesystem.  Supported block sizes depend on the filesystem "
19517 "type, but typically they are C<1024>, C<2048> or C<4096> only."
19518 msgstr ""
19519
19520 # type: =head2
19521 #: ../fish/guestfish-actions.pod:2468
19522 msgid "mkmountpoint"
19523 msgstr ""
19524
19525 # type: verbatim
19526 #: ../fish/guestfish-actions.pod:2470
19527 #, no-wrap
19528 msgid ""
19529 " mkmountpoint exemptpath\n"
19530 "\n"
19531 msgstr ""
19532
19533 # type: textblock
19534 #: ../fish/guestfish-actions.pod:2472
19535 msgid ""
19536 "C<mkmountpoint> and C<rmmountpoint> are specialized calls that can be used "
19537 "to create extra mountpoints before mounting the first filesystem."
19538 msgstr ""
19539
19540 # type: =head2
19541 #: ../fish/guestfish-actions.pod:2496
19542 msgid "mknod"
19543 msgstr ""
19544
19545 # type: verbatim
19546 #: ../fish/guestfish-actions.pod:2498
19547 #, no-wrap
19548 msgid ""
19549 " mknod mode devmajor devminor path\n"
19550 "\n"
19551 msgstr ""
19552
19553 # type: textblock
19554 #: ../fish/guestfish-actions.pod:2508
19555 msgid ""
19556 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
19557 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
19558 "regular file).  These constants are available in the standard Linux header "
19559 "files, or you can use C<mknod-b>, C<mknod-c> or C<mkfifo> which are wrappers "
19560 "around this command which bitwise OR in the appropriate constant for you."
19561 msgstr ""
19562
19563 # type: =head2
19564 #: ../fish/guestfish-actions.pod:2518
19565 msgid "mknod-b"
19566 msgstr ""
19567
19568 # type: verbatim
19569 #: ../fish/guestfish-actions.pod:2520
19570 #, no-wrap
19571 msgid ""
19572 " mknod-b mode devmajor devminor path\n"
19573 "\n"
19574 msgstr ""
19575
19576 # type: textblock
19577 #: ../fish/guestfish-actions.pod:2522
19578 msgid ""
19579 "This call creates a block device node called C<path> with mode C<mode> and "
19580 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
19581 "wrapper around C<mknod>."
19582 msgstr ""
19583
19584 # type: =head2
19585 #: ../fish/guestfish-actions.pod:2528
19586 msgid "mknod-c"
19587 msgstr ""
19588
19589 # type: verbatim
19590 #: ../fish/guestfish-actions.pod:2530
19591 #, no-wrap
19592 msgid ""
19593 " mknod-c mode devmajor devminor path\n"
19594 "\n"
19595 msgstr ""
19596
19597 # type: textblock
19598 #: ../fish/guestfish-actions.pod:2532
19599 msgid ""
19600 "This call creates a char device node called C<path> with mode C<mode> and "
19601 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
19602 "wrapper around C<mknod>."
19603 msgstr ""
19604
19605 # type: =head2
19606 #: ../fish/guestfish-actions.pod:2538
19607 msgid "mkswap"
19608 msgstr ""
19609
19610 # type: verbatim
19611 #: ../fish/guestfish-actions.pod:2540
19612 #, no-wrap
19613 msgid ""
19614 " mkswap device\n"
19615 "\n"
19616 msgstr ""
19617
19618 # type: =head2
19619 #: ../fish/guestfish-actions.pod:2544
19620 msgid "mkswap-L"
19621 msgstr ""
19622
19623 # type: verbatim
19624 #: ../fish/guestfish-actions.pod:2546
19625 #, no-wrap
19626 msgid ""
19627 " mkswap-L label device\n"
19628 "\n"
19629 msgstr ""
19630
19631 # type: =head2
19632 #: ../fish/guestfish-actions.pod:2554
19633 msgid "mkswap-U"
19634 msgstr ""
19635
19636 # type: verbatim
19637 #: ../fish/guestfish-actions.pod:2556
19638 #, no-wrap
19639 msgid ""
19640 " mkswap-U uuid device\n"
19641 "\n"
19642 msgstr ""
19643
19644 # type: =head2
19645 #: ../fish/guestfish-actions.pod:2560
19646 msgid "mkswap-file"
19647 msgstr ""
19648
19649 # type: verbatim
19650 #: ../fish/guestfish-actions.pod:2562
19651 #, no-wrap
19652 msgid ""
19653 " mkswap-file path\n"
19654 "\n"
19655 msgstr ""
19656
19657 # type: textblock
19658 #: ../fish/guestfish-actions.pod:2566
19659 msgid ""
19660 "This command just writes a swap file signature to an existing file.  To "
19661 "create the file itself, use something like C<fallocate>."
19662 msgstr ""
19663
19664 # type: =head2
19665 #: ../fish/guestfish-actions.pod:2569
19666 msgid "modprobe"
19667 msgstr ""
19668
19669 # type: verbatim
19670 #: ../fish/guestfish-actions.pod:2571
19671 #, no-wrap
19672 msgid ""
19673 " modprobe modulename\n"
19674 "\n"
19675 msgstr ""
19676
19677 # type: =head2
19678 #: ../fish/guestfish-actions.pod:2578
19679 msgid "mount"
19680 msgstr ""
19681
19682 # type: verbatim
19683 #: ../fish/guestfish-actions.pod:2580
19684 #, no-wrap
19685 msgid ""
19686 " mount device mountpoint\n"
19687 "\n"
19688 msgstr ""
19689
19690 # type: textblock
19691 #: ../fish/guestfish-actions.pod:2596
19692 msgid ""
19693 "B<Important note:> When you use this call, the filesystem options C<sync> "
19694 "and C<noatime> are set implicitly.  This was originally done because we "
19695 "thought it would improve reliability, but it turns out that I<-o sync> has a "
19696 "very large negative performance impact and negligible effect on "
19697 "reliability.  Therefore we recommend that you avoid using C<mount> in any "
19698 "code that needs performance, and instead use C<mount-options> (use an empty "
19699 "string for the first parameter if you don't want any options)."
19700 msgstr ""
19701
19702 # type: =head2
19703 #: ../fish/guestfish-actions.pod:2606
19704 msgid "mount-loop"
19705 msgstr ""
19706
19707 # type: verbatim
19708 #: ../fish/guestfish-actions.pod:2608
19709 #, no-wrap
19710 msgid ""
19711 " mount-loop file mountpoint\n"
19712 "\n"
19713 msgstr ""
19714
19715 # type: =head2
19716 #: ../fish/guestfish-actions.pod:2614
19717 msgid "mount-options"
19718 msgstr ""
19719
19720 # type: verbatim
19721 #: ../fish/guestfish-actions.pod:2616
19722 #, no-wrap
19723 msgid ""
19724 " mount-options options device mountpoint\n"
19725 "\n"
19726 msgstr ""
19727
19728 # type: textblock
19729 #: ../fish/guestfish-actions.pod:2618
19730 msgid ""
19731 "This is the same as the C<mount> command, but it allows you to set the mount "
19732 "options as for the L<mount(8)> I<-o> flag."
19733 msgstr ""
19734
19735 # type: =head2
19736 #: ../fish/guestfish-actions.pod:2626
19737 msgid "mount-ro"
19738 msgstr ""
19739
19740 # type: verbatim
19741 #: ../fish/guestfish-actions.pod:2628
19742 #, no-wrap
19743 msgid ""
19744 " mount-ro device mountpoint\n"
19745 "\n"
19746 msgstr ""
19747
19748 # type: textblock
19749 #: ../fish/guestfish-actions.pod:2630
19750 msgid ""
19751 "This is the same as the C<mount> command, but it mounts the filesystem with "
19752 "the read-only (I<-o ro>) flag."
19753 msgstr ""
19754
19755 # type: =head2
19756 #: ../fish/guestfish-actions.pod:2633
19757 msgid "mount-vfs"
19758 msgstr ""
19759
19760 # type: verbatim
19761 #: ../fish/guestfish-actions.pod:2635
19762 #, no-wrap
19763 msgid ""
19764 " mount-vfs options vfstype device mountpoint\n"
19765 "\n"
19766 msgstr ""
19767
19768 # type: textblock
19769 #: ../fish/guestfish-actions.pod:2637
19770 msgid ""
19771 "This is the same as the C<mount> command, but it allows you to set both the "
19772 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
19773 msgstr ""
19774
19775 # type: =head2
19776 #: ../fish/guestfish-actions.pod:2641
19777 msgid "mountpoints"
19778 msgstr ""
19779
19780 # type: verbatim
19781 #: ../fish/guestfish-actions.pod:2643
19782 #, no-wrap
19783 msgid ""
19784 " mountpoints\n"
19785 "\n"
19786 msgstr ""
19787
19788 # type: textblock
19789 #: ../fish/guestfish-actions.pod:2645
19790 msgid ""
19791 "This call is similar to C<mounts>.  That call returns a list of devices.  "
19792 "This one returns a hash table (map) of device name to directory where the "
19793 "device is mounted."
19794 msgstr ""
19795
19796 # type: =head2
19797 #: ../fish/guestfish-actions.pod:2649
19798 msgid "mounts"
19799 msgstr ""
19800
19801 # type: verbatim
19802 #: ../fish/guestfish-actions.pod:2651
19803 #, no-wrap
19804 msgid ""
19805 " mounts\n"
19806 "\n"
19807 msgstr ""
19808
19809 # type: textblock
19810 #: ../fish/guestfish-actions.pod:2658
19811 msgid "See also: C<mountpoints>"
19812 msgstr ""
19813
19814 # type: =head2
19815 #: ../fish/guestfish-actions.pod:2660
19816 msgid "mv"
19817 msgstr ""
19818
19819 # type: verbatim
19820 #: ../fish/guestfish-actions.pod:2662
19821 #, no-wrap
19822 msgid ""
19823 " mv src dest\n"
19824 "\n"
19825 msgstr ""
19826
19827 # type: =head2
19828 #: ../fish/guestfish-actions.pod:2667
19829 msgid "ntfs-3g-probe"
19830 msgstr ""
19831
19832 # type: verbatim
19833 #: ../fish/guestfish-actions.pod:2669
19834 #, no-wrap
19835 msgid ""
19836 " ntfs-3g-probe true|false device\n"
19837 "\n"
19838 msgstr ""
19839
19840 # type: =head2
19841 #: ../fish/guestfish-actions.pod:2683
19842 msgid "ntfsresize"
19843 msgstr ""
19844
19845 # type: verbatim
19846 #: ../fish/guestfish-actions.pod:2685
19847 #, no-wrap
19848 msgid ""
19849 " ntfsresize device\n"
19850 "\n"
19851 msgstr ""
19852
19853 # type: =head2
19854 #: ../fish/guestfish-actions.pod:2691
19855 msgid "ntfsresize-size"
19856 msgstr ""
19857
19858 # type: verbatim
19859 #: ../fish/guestfish-actions.pod:2693
19860 #, no-wrap
19861 msgid ""
19862 " ntfsresize-size device size\n"
19863 "\n"
19864 msgstr ""
19865
19866 # type: textblock
19867 #: ../fish/guestfish-actions.pod:2695
19868 msgid ""
19869 "This command is the same as C<ntfsresize> except that it allows you to "
19870 "specify the new size (in bytes) explicitly."
19871 msgstr ""
19872
19873 # type: =head2
19874 #: ../fish/guestfish-actions.pod:2698
19875 msgid "part-add"
19876 msgstr ""
19877
19878 # type: verbatim
19879 #: ../fish/guestfish-actions.pod:2700
19880 #, no-wrap
19881 msgid ""
19882 " part-add device prlogex startsect endsect\n"
19883 "\n"
19884 msgstr ""
19885
19886 # type: textblock
19887 #: ../fish/guestfish-actions.pod:2702
19888 msgid ""
19889 "This command adds a partition to C<device>.  If there is no partition table "
19890 "on the device, call C<part-init> first."
19891 msgstr ""
19892
19893 # type: textblock
19894 #: ../fish/guestfish-actions.pod:2714
19895 msgid ""
19896 "Creating a partition which covers the whole disk is not so easy.  Use "
19897 "C<part-disk> to do that."
19898 msgstr ""
19899
19900 # type: =head2
19901 #: ../fish/guestfish-actions.pod:2717
19902 msgid "part-del"
19903 msgstr ""
19904
19905 # type: verbatim
19906 #: ../fish/guestfish-actions.pod:2719
19907 #, no-wrap
19908 msgid ""
19909 " part-del device partnum\n"
19910 "\n"
19911 msgstr ""
19912
19913 # type: =head2
19914 #: ../fish/guestfish-actions.pod:2727
19915 msgid "part-disk"
19916 msgstr ""
19917
19918 # type: verbatim
19919 #: ../fish/guestfish-actions.pod:2729
19920 #, no-wrap
19921 msgid ""
19922 " part-disk device parttype\n"
19923 "\n"
19924 msgstr ""
19925
19926 # type: textblock
19927 #: ../fish/guestfish-actions.pod:2731
19928 msgid ""
19929 "This command is simply a combination of C<part-init> followed by C<part-add> "
19930 "to create a single primary partition covering the whole disk."
19931 msgstr ""
19932
19933 # type: textblock
19934 #: ../fish/guestfish-actions.pod:2735
19935 msgid ""
19936 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
19937 "possible values are described in C<part-init>."
19938 msgstr ""
19939
19940 # type: =head2
19941 #: ../fish/guestfish-actions.pod:2741
19942 msgid "part-get-bootable"
19943 msgstr ""
19944
19945 # type: verbatim
19946 #: ../fish/guestfish-actions.pod:2743
19947 #, no-wrap
19948 msgid ""
19949 " part-get-bootable device partnum\n"
19950 "\n"
19951 msgstr ""
19952
19953 # type: textblock
19954 #: ../fish/guestfish-actions.pod:2748
19955 msgid "See also C<part-set-bootable>."
19956 msgstr ""
19957
19958 # type: =head2
19959 #: ../fish/guestfish-actions.pod:2750
19960 msgid "part-get-mbr-id"
19961 msgstr ""
19962
19963 # type: verbatim
19964 #: ../fish/guestfish-actions.pod:2752
19965 #, no-wrap
19966 msgid ""
19967 " part-get-mbr-id device partnum\n"
19968 "\n"
19969 msgstr ""
19970
19971 # type: textblock
19972 #: ../fish/guestfish-actions.pod:2757 ../fish/guestfish-actions.pod:2895
19973 msgid ""
19974 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
19975 "undefined results for other partition table types (see "
19976 "C<part-get-parttype>)."
19977 msgstr ""
19978
19979 # type: =head2
19980 #: ../fish/guestfish-actions.pod:2761
19981 msgid "part-get-parttype"
19982 msgstr ""
19983
19984 # type: verbatim
19985 #: ../fish/guestfish-actions.pod:2763
19986 #, no-wrap
19987 msgid ""
19988 " part-get-parttype device\n"
19989 "\n"
19990 msgstr ""
19991
19992 # type: textblock
19993 #: ../fish/guestfish-actions.pod:2768
19994 msgid ""
19995 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
19996 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
19997 "possible, although unusual.  See C<part-init> for a full list."
19998 msgstr ""
19999
20000 # type: =head2
20001 #: ../fish/guestfish-actions.pod:2773
20002 msgid "part-init"
20003 msgstr ""
20004
20005 # type: verbatim
20006 #: ../fish/guestfish-actions.pod:2775
20007 #, no-wrap
20008 msgid ""
20009 " part-init device parttype\n"
20010 "\n"
20011 msgstr ""
20012
20013 # type: textblock
20014 #: ../fish/guestfish-actions.pod:2781
20015 msgid ""
20016 "Initially there are no partitions.  Following this, you should call "
20017 "C<part-add> for each partition required."
20018 msgstr ""
20019
20020 # type: =head2
20021 #: ../fish/guestfish-actions.pod:2844
20022 msgid "part-list"
20023 msgstr ""
20024
20025 # type: verbatim
20026 #: ../fish/guestfish-actions.pod:2846
20027 #, no-wrap
20028 msgid ""
20029 " part-list device\n"
20030 "\n"
20031 msgstr ""
20032
20033 # type: textblock
20034 #: ../fish/guestfish-actions.pod:2861
20035 msgid ""
20036 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
20037 "the device's sector size, see C<blockdev-getss>."
20038 msgstr ""
20039
20040 # type: =head2
20041 #: ../fish/guestfish-actions.pod:2874
20042 msgid "part-set-bootable"
20043 msgstr ""
20044
20045 # type: verbatim
20046 #: ../fish/guestfish-actions.pod:2876
20047 #, no-wrap
20048 msgid ""
20049 " part-set-bootable device partnum true|false\n"
20050 "\n"
20051 msgstr ""
20052
20053 # type: =head2
20054 #: ../fish/guestfish-actions.pod:2885
20055 msgid "part-set-mbr-id"
20056 msgstr ""
20057
20058 # type: verbatim
20059 #: ../fish/guestfish-actions.pod:2887
20060 #, no-wrap
20061 msgid ""
20062 " part-set-mbr-id device partnum idbyte\n"
20063 "\n"
20064 msgstr ""
20065
20066 # type: =head2
20067 #: ../fish/guestfish-actions.pod:2899
20068 msgid "part-set-name"
20069 msgstr ""
20070
20071 # type: verbatim
20072 #: ../fish/guestfish-actions.pod:2901
20073 #, no-wrap
20074 msgid ""
20075 " part-set-name device partnum name\n"
20076 "\n"
20077 msgstr ""
20078
20079 # type: =head2
20080 #: ../fish/guestfish-actions.pod:2909
20081 msgid "part-to-dev"
20082 msgstr ""
20083
20084 # type: verbatim
20085 #: ../fish/guestfish-actions.pod:2911
20086 #, no-wrap
20087 msgid ""
20088 " part-to-dev partition\n"
20089 "\n"
20090 msgstr ""
20091
20092 # type: textblock
20093 #: ../fish/guestfish-actions.pod:2917
20094 msgid ""
20095 "The named partition must exist, for example as a string returned from "
20096 "C<list-partitions>."
20097 msgstr ""
20098
20099 # type: =head2
20100 #: ../fish/guestfish-actions.pod:2920
20101 msgid "ping-daemon"
20102 msgstr ""
20103
20104 # type: verbatim
20105 #: ../fish/guestfish-actions.pod:2922
20106 #, no-wrap
20107 msgid ""
20108 " ping-daemon\n"
20109 "\n"
20110 msgstr ""
20111
20112 # type: =head2
20113 #: ../fish/guestfish-actions.pod:2929
20114 msgid "pread"
20115 msgstr ""
20116
20117 # type: verbatim
20118 #: ../fish/guestfish-actions.pod:2931
20119 #, no-wrap
20120 msgid ""
20121 " pread path count offset\n"
20122 "\n"
20123 msgstr ""
20124
20125 # type: textblock
20126 #: ../fish/guestfish-actions.pod:2939
20127 msgid "See also C<pwrite>."
20128 msgstr ""
20129
20130 # type: =head2
20131 #: ../fish/guestfish-actions.pod:2944
20132 msgid "pvcreate"
20133 msgstr ""
20134
20135 # type: verbatim
20136 #: ../fish/guestfish-actions.pod:2946
20137 #, no-wrap
20138 msgid ""
20139 " pvcreate device\n"
20140 "\n"
20141 msgstr ""
20142
20143 # type: =head2
20144 #: ../fish/guestfish-actions.pod:2952
20145 msgid "pvremove"
20146 msgstr ""
20147
20148 # type: verbatim
20149 #: ../fish/guestfish-actions.pod:2954
20150 #, no-wrap
20151 msgid ""
20152 " pvremove device\n"
20153 "\n"
20154 msgstr ""
20155
20156 # type: =head2
20157 #: ../fish/guestfish-actions.pod:2963
20158 msgid "pvresize"
20159 msgstr ""
20160
20161 # type: verbatim
20162 #: ../fish/guestfish-actions.pod:2965
20163 #, no-wrap
20164 msgid ""
20165 " pvresize device\n"
20166 "\n"
20167 msgstr ""
20168
20169 # type: =head2
20170 #: ../fish/guestfish-actions.pod:2970
20171 msgid "pvresize-size"
20172 msgstr ""
20173
20174 # type: verbatim
20175 #: ../fish/guestfish-actions.pod:2972
20176 #, no-wrap
20177 msgid ""
20178 " pvresize-size device size\n"
20179 "\n"
20180 msgstr ""
20181
20182 # type: textblock
20183 #: ../fish/guestfish-actions.pod:2974
20184 msgid ""
20185 "This command is the same as C<pvresize> except that it allows you to specify "
20186 "the new size (in bytes) explicitly."
20187 msgstr ""
20188
20189 # type: =head2
20190 #: ../fish/guestfish-actions.pod:2977
20191 msgid "pvs"
20192 msgstr ""
20193
20194 # type: verbatim
20195 #: ../fish/guestfish-actions.pod:2979
20196 #, no-wrap
20197 msgid ""
20198 " pvs\n"
20199 "\n"
20200 msgstr ""
20201
20202 # type: textblock
20203 #: ../fish/guestfish-actions.pod:2987
20204 msgid "See also C<pvs-full>."
20205 msgstr ""
20206
20207 # type: =head2
20208 #: ../fish/guestfish-actions.pod:2989
20209 msgid "pvs-full"
20210 msgstr ""
20211
20212 # type: verbatim
20213 #: ../fish/guestfish-actions.pod:2991
20214 #, no-wrap
20215 msgid ""
20216 " pvs-full\n"
20217 "\n"
20218 msgstr ""
20219
20220 # type: =head2
20221 #: ../fish/guestfish-actions.pod:2996
20222 msgid "pvuuid"
20223 msgstr ""
20224
20225 # type: verbatim
20226 #: ../fish/guestfish-actions.pod:2998
20227 #, no-wrap
20228 msgid ""
20229 " pvuuid device\n"
20230 "\n"
20231 msgstr ""
20232
20233 # type: =head2
20234 #: ../fish/guestfish-actions.pod:3002
20235 msgid "pwrite"
20236 msgstr ""
20237
20238 # type: verbatim
20239 #: ../fish/guestfish-actions.pod:3004
20240 #, no-wrap
20241 msgid ""
20242 " pwrite path content offset\n"
20243 "\n"
20244 msgstr ""
20245
20246 # type: textblock
20247 #: ../fish/guestfish-actions.pod:3015
20248 msgid "See also C<pread>."
20249 msgstr ""
20250
20251 # type: =head2
20252 #: ../fish/guestfish-actions.pod:3020
20253 msgid "read-file"
20254 msgstr ""
20255
20256 # type: verbatim
20257 #: ../fish/guestfish-actions.pod:3022
20258 #, no-wrap
20259 msgid ""
20260 " read-file path\n"
20261 "\n"
20262 msgstr ""
20263
20264 # type: textblock
20265 #: ../fish/guestfish-actions.pod:3027
20266 msgid ""
20267 "Unlike C<cat>, this function can correctly handle files that contain "
20268 "embedded ASCII NUL characters.  However unlike C<download>, this function is "
20269 "limited in the total size of file that can be handled."
20270 msgstr ""
20271
20272 # type: =head2
20273 #: ../fish/guestfish-actions.pod:3035
20274 msgid "read-lines"
20275 msgstr ""
20276
20277 # type: verbatim
20278 #: ../fish/guestfish-actions.pod:3037
20279 #, no-wrap
20280 msgid ""
20281 " read-lines path\n"
20282 "\n"
20283 msgstr ""
20284
20285 # type: textblock
20286 #: ../fish/guestfish-actions.pod:3044
20287 msgid ""
20288 "Note that this function cannot correctly handle binary files (specifically, "
20289 "files containing C<\\0> character which is treated as end of line).  For "
20290 "those you need to use the C<read-file> function which has a more complex "
20291 "interface."
20292 msgstr ""
20293
20294 # type: =head2
20295 #: ../fish/guestfish-actions.pod:3049
20296 msgid "readdir"
20297 msgstr ""
20298
20299 # type: verbatim
20300 #: ../fish/guestfish-actions.pod:3051
20301 #, no-wrap
20302 msgid ""
20303 " readdir dir\n"
20304 "\n"
20305 msgstr ""
20306
20307 # type: textblock
20308 #: ../fish/guestfish-actions.pod:3103
20309 msgid ""
20310 "This function is primarily intended for use by programs.  To get a simple "
20311 "list of names, use C<ls>.  To get a printable directory for human "
20312 "consumption, use C<ll>."
20313 msgstr ""
20314
20315 # type: =head2
20316 #: ../fish/guestfish-actions.pod:3107
20317 msgid "readlink"
20318 msgstr ""
20319
20320 # type: verbatim
20321 #: ../fish/guestfish-actions.pod:3109
20322 #, no-wrap
20323 msgid ""
20324 " readlink path\n"
20325 "\n"
20326 msgstr ""
20327
20328 # type: =head2
20329 #: ../fish/guestfish-actions.pod:3113
20330 msgid "readlinklist"
20331 msgstr ""
20332
20333 # type: verbatim
20334 #: ../fish/guestfish-actions.pod:3115
20335 #, no-wrap
20336 msgid ""
20337 " readlinklist path 'names ...'\n"
20338 "\n"
20339 msgstr ""
20340
20341 # type: =head2
20342 #: ../fish/guestfish-actions.pod:3139
20343 msgid "realpath"
20344 msgstr ""
20345
20346 # type: verbatim
20347 #: ../fish/guestfish-actions.pod:3141
20348 #, no-wrap
20349 msgid ""
20350 " realpath path\n"
20351 "\n"
20352 msgstr ""
20353
20354 # type: =head2
20355 #: ../fish/guestfish-actions.pod:3146
20356 msgid "removexattr"
20357 msgstr ""
20358
20359 # type: verbatim
20360 #: ../fish/guestfish-actions.pod:3148
20361 #, no-wrap
20362 msgid ""
20363 " removexattr xattr path\n"
20364 "\n"
20365 msgstr ""
20366
20367 # type: textblock
20368 #: ../fish/guestfish-actions.pod:3153
20369 msgid "See also: C<lremovexattr>, L<attr(5)>."
20370 msgstr ""
20371
20372 # type: =head2
20373 #: ../fish/guestfish-actions.pod:3155
20374 msgid "resize2fs"
20375 msgstr ""
20376
20377 # type: verbatim
20378 #: ../fish/guestfish-actions.pod:3157
20379 #, no-wrap
20380 msgid ""
20381 " resize2fs device\n"
20382 "\n"
20383 msgstr ""
20384
20385 # type: textblock
20386 #: ../fish/guestfish-actions.pod:3162
20387 msgid ""
20388 "I<Note:> It is sometimes required that you run C<e2fsck-f> on the C<device> "
20389 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
20390 "gives an error about this and sometimes not.  In any case, it is always safe "
20391 "to call C<e2fsck-f> before calling this function."
20392 msgstr ""
20393
20394 # type: =head2
20395 #: ../fish/guestfish-actions.pod:3168
20396 msgid "resize2fs-size"
20397 msgstr ""
20398
20399 # type: verbatim
20400 #: ../fish/guestfish-actions.pod:3170
20401 #, no-wrap
20402 msgid ""
20403 " resize2fs-size device size\n"
20404 "\n"
20405 msgstr ""
20406
20407 # type: textblock
20408 #: ../fish/guestfish-actions.pod:3172
20409 msgid ""
20410 "This command is the same as C<resize2fs> except that it allows you to "
20411 "specify the new size (in bytes) explicitly."
20412 msgstr ""
20413
20414 # type: =head2
20415 #: ../fish/guestfish-actions.pod:3175
20416 msgid "rm"
20417 msgstr ""
20418
20419 # type: verbatim
20420 #: ../fish/guestfish-actions.pod:3177
20421 #, no-wrap
20422 msgid ""
20423 " rm path\n"
20424 "\n"
20425 msgstr ""
20426
20427 # type: =head2
20428 #: ../fish/guestfish-actions.pod:3181
20429 msgid "rm-rf"
20430 msgstr ""
20431
20432 # type: verbatim
20433 #: ../fish/guestfish-actions.pod:3183
20434 #, no-wrap
20435 msgid ""
20436 " rm-rf path\n"
20437 "\n"
20438 msgstr ""
20439
20440 # type: =head2
20441 #: ../fish/guestfish-actions.pod:3189
20442 msgid "rmdir"
20443 msgstr ""
20444
20445 # type: verbatim
20446 #: ../fish/guestfish-actions.pod:3191
20447 #, no-wrap
20448 msgid ""
20449 " rmdir path\n"
20450 "\n"
20451 msgstr ""
20452
20453 # type: =head2
20454 #: ../fish/guestfish-actions.pod:3195
20455 msgid "rmmountpoint"
20456 msgstr ""
20457
20458 # type: verbatim
20459 #: ../fish/guestfish-actions.pod:3197
20460 #, no-wrap
20461 msgid ""
20462 " rmmountpoint exemptpath\n"
20463 "\n"
20464 msgstr ""
20465
20466 # type: textblock
20467 #: ../fish/guestfish-actions.pod:3199
20468 msgid ""
20469 "This calls removes a mountpoint that was previously created with "
20470 "C<mkmountpoint>.  See C<mkmountpoint> for full details."
20471 msgstr ""
20472
20473 # type: =head2
20474 #: ../fish/guestfish-actions.pod:3203
20475 msgid "scrub-device"
20476 msgstr ""
20477
20478 # type: verbatim
20479 #: ../fish/guestfish-actions.pod:3205
20480 #, no-wrap
20481 msgid ""
20482 " scrub-device device\n"
20483 "\n"
20484 msgstr ""
20485
20486 # type: =head2
20487 #: ../fish/guestfish-actions.pod:3216
20488 msgid "scrub-file"
20489 msgstr ""
20490
20491 # type: verbatim
20492 #: ../fish/guestfish-actions.pod:3218
20493 #, no-wrap
20494 msgid ""
20495 " scrub-file file\n"
20496 "\n"
20497 msgstr ""
20498
20499 # type: =head2
20500 #: ../fish/guestfish-actions.pod:3228
20501 msgid "scrub-freespace"
20502 msgstr ""
20503
20504 # type: verbatim
20505 #: ../fish/guestfish-actions.pod:3230
20506 #, no-wrap
20507 msgid ""
20508 " scrub-freespace dir\n"
20509 "\n"
20510 msgstr ""
20511
20512 # type: textblock
20513 #: ../fish/guestfish-actions.pod:3232
20514 msgid ""
20515 "This command creates the directory C<dir> and then fills it with files until "
20516 "the filesystem is full, and scrubs the files as for C<scrub-file>, and "
20517 "deletes them.  The intention is to scrub any free space on the partition "
20518 "containing C<dir>."
20519 msgstr ""
20520
20521 # type: =head2
20522 #: ../fish/guestfish-actions.pod:3241
20523 msgid "set-append | append"
20524 msgstr ""
20525
20526 # type: verbatim
20527 #: ../fish/guestfish-actions.pod:3243
20528 #, no-wrap
20529 msgid ""
20530 " set-append append\n"
20531 "\n"
20532 msgstr ""
20533
20534 # type: =head2
20535 #: ../fish/guestfish-actions.pod:3254
20536 msgid "set-autosync | autosync"
20537 msgstr ""
20538
20539 # type: verbatim
20540 #: ../fish/guestfish-actions.pod:3256
20541 #, no-wrap
20542 msgid ""
20543 " set-autosync true|false\n"
20544 "\n"
20545 msgstr ""
20546
20547 # type: textblock
20548 #: ../fish/guestfish-actions.pod:3258
20549 msgid ""
20550 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
20551 "effort attempt to run C<umount-all> followed by C<sync> when the handle is "
20552 "closed (also if the program exits without closing handles)."
20553 msgstr ""
20554
20555 # type: =head2
20556 #: ../fish/guestfish-actions.pod:3266
20557 msgid "set-direct | direct"
20558 msgstr ""
20559
20560 # type: verbatim
20561 #: ../fish/guestfish-actions.pod:3268
20562 #, no-wrap
20563 msgid ""
20564 " set-direct true|false\n"
20565 "\n"
20566 msgstr ""
20567
20568 # type: textblock
20569 #: ../fish/guestfish-actions.pod:3274
20570 msgid ""
20571 "One consequence of this is that log messages aren't caught by the library "
20572 "and handled by C<set-log-message-callback>, but go straight to stdout."
20573 msgstr ""
20574
20575 # type: =head2
20576 #: ../fish/guestfish-actions.pod:3283
20577 msgid "set-e2label"
20578 msgstr ""
20579
20580 # type: verbatim
20581 #: ../fish/guestfish-actions.pod:3285
20582 #, no-wrap
20583 msgid ""
20584 " set-e2label device label\n"
20585 "\n"
20586 msgstr ""
20587
20588 # type: textblock
20589 #: ../fish/guestfish-actions.pod:3291
20590 msgid ""
20591 "You can use either C<tune2fs-l> or C<get-e2label> to return the existing "
20592 "label on a filesystem."
20593 msgstr ""
20594
20595 # type: =head2
20596 #: ../fish/guestfish-actions.pod:3294
20597 msgid "set-e2uuid"
20598 msgstr ""
20599
20600 # type: verbatim
20601 #: ../fish/guestfish-actions.pod:3296
20602 #, no-wrap
20603 msgid ""
20604 " set-e2uuid device uuid\n"
20605 "\n"
20606 msgstr ""
20607
20608 # type: textblock
20609 #: ../fish/guestfish-actions.pod:3303
20610 msgid ""
20611 "You can use either C<tune2fs-l> or C<get-e2uuid> to return the existing UUID "
20612 "of a filesystem."
20613 msgstr ""
20614
20615 # type: =head2
20616 #: ../fish/guestfish-actions.pod:3306
20617 msgid "set-memsize | memsize"
20618 msgstr ""
20619
20620 # type: verbatim
20621 #: ../fish/guestfish-actions.pod:3308
20622 #, no-wrap
20623 msgid ""
20624 " set-memsize memsize\n"
20625 "\n"
20626 msgstr ""
20627
20628 # type: textblock
20629 #: ../fish/guestfish-actions.pod:3310
20630 msgid ""
20631 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
20632 "This only has any effect if called before C<launch>."
20633 msgstr ""
20634
20635 # type: =head2
20636 #: ../fish/guestfish-actions.pod:3321
20637 msgid "set-network | network"
20638 msgstr ""
20639
20640 # type: verbatim
20641 #: ../fish/guestfish-actions.pod:3323
20642 #, no-wrap
20643 msgid ""
20644 " set-network true|false\n"
20645 "\n"
20646 msgstr ""
20647
20648 # type: textblock
20649 #: ../fish/guestfish-actions.pod:3331
20650 msgid "You must call this before calling C<launch>, otherwise it has no effect."
20651 msgstr ""
20652
20653 # type: =head2
20654 #: ../fish/guestfish-actions.pod:3334
20655 msgid "set-path | path"
20656 msgstr ""
20657
20658 # type: verbatim
20659 #: ../fish/guestfish-actions.pod:3336
20660 #, no-wrap
20661 msgid ""
20662 " set-path searchpath\n"
20663 "\n"
20664 msgstr ""
20665
20666 # type: =head2
20667 #: ../fish/guestfish-actions.pod:3345
20668 msgid "set-qemu | qemu"
20669 msgstr ""
20670
20671 # type: verbatim
20672 #: ../fish/guestfish-actions.pod:3347
20673 #, no-wrap
20674 msgid ""
20675 " set-qemu qemu\n"
20676 "\n"
20677 msgstr ""
20678
20679 # type: =head2
20680 #: ../fish/guestfish-actions.pod:3367
20681 msgid "set-recovery-proc | recovery-proc"
20682 msgstr ""
20683
20684 # type: verbatim
20685 #: ../fish/guestfish-actions.pod:3369
20686 #, no-wrap
20687 msgid ""
20688 " set-recovery-proc true|false\n"
20689 "\n"
20690 msgstr ""
20691
20692 # type: textblock
20693 #: ../fish/guestfish-actions.pod:3371
20694 msgid ""
20695 "If this is called with the parameter C<false> then C<launch> does not create "
20696 "a recovery process.  The purpose of the recovery process is to stop runaway "
20697 "qemu processes in the case where the main program aborts abruptly."
20698 msgstr ""
20699
20700 # type: textblock
20701 #: ../fish/guestfish-actions.pod:3376
20702 msgid ""
20703 "This only has any effect if called before C<launch>, and the default is "
20704 "true."
20705 msgstr ""
20706
20707 # type: =head2
20708 #: ../fish/guestfish-actions.pod:3385
20709 msgid "set-selinux | selinux"
20710 msgstr ""
20711
20712 # type: verbatim
20713 #: ../fish/guestfish-actions.pod:3387
20714 #, no-wrap
20715 msgid ""
20716 " set-selinux true|false\n"
20717 "\n"
20718 msgstr ""
20719
20720 # type: =head2
20721 #: ../fish/guestfish-actions.pod:3398
20722 msgid "set-trace | trace"
20723 msgstr ""
20724
20725 # type: verbatim
20726 #: ../fish/guestfish-actions.pod:3400
20727 #, no-wrap
20728 msgid ""
20729 " set-trace true|false\n"
20730 "\n"
20731 msgstr ""
20732
20733 # type: =head2
20734 #: ../fish/guestfish-actions.pod:3416
20735 msgid "set-verbose | verbose"
20736 msgstr ""
20737
20738 # type: verbatim
20739 #: ../fish/guestfish-actions.pod:3418
20740 #, no-wrap
20741 msgid ""
20742 " set-verbose true|false\n"
20743 "\n"
20744 msgstr ""
20745
20746 # type: =head2
20747 #: ../fish/guestfish-actions.pod:3425
20748 msgid "setcon"
20749 msgstr ""
20750
20751 # type: verbatim
20752 #: ../fish/guestfish-actions.pod:3427
20753 #, no-wrap
20754 msgid ""
20755 " setcon context\n"
20756 "\n"
20757 msgstr ""
20758
20759 # type: =head2
20760 #: ../fish/guestfish-actions.pod:3434
20761 msgid "setxattr"
20762 msgstr ""
20763
20764 # type: verbatim
20765 #: ../fish/guestfish-actions.pod:3436
20766 #, no-wrap
20767 msgid ""
20768 " setxattr xattr val vallen path\n"
20769 "\n"
20770 msgstr ""
20771
20772 # type: textblock
20773 #: ../fish/guestfish-actions.pod:3442
20774 msgid "See also: C<lsetxattr>, L<attr(5)>."
20775 msgstr ""
20776
20777 # type: =head2
20778 #: ../fish/guestfish-actions.pod:3444
20779 msgid "sfdisk"
20780 msgstr ""
20781
20782 # type: verbatim
20783 #: ../fish/guestfish-actions.pod:3446
20784 #, no-wrap
20785 msgid ""
20786 " sfdisk device cyls heads sectors 'lines ...'\n"
20787 "\n"
20788 msgstr ""
20789
20790 # type: textblock
20791 #: ../fish/guestfish-actions.pod:3468
20792 msgid "See also: C<sfdisk-l>, C<sfdisk-N>, C<part-init>"
20793 msgstr ""
20794
20795 # type: =head2
20796 #: ../fish/guestfish-actions.pod:3474
20797 msgid "sfdiskM"
20798 msgstr ""
20799
20800 # type: verbatim
20801 #: ../fish/guestfish-actions.pod:3476
20802 #, no-wrap
20803 msgid ""
20804 " sfdiskM device 'lines ...'\n"
20805 "\n"
20806 msgstr ""
20807
20808 # type: textblock
20809 #: ../fish/guestfish-actions.pod:3478
20810 msgid ""
20811 "This is a simplified interface to the C<sfdisk> command, where partition "
20812 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
20813 "you don't need to specify the cyls, heads and sectors parameters which were "
20814 "rarely if ever used anyway."
20815 msgstr ""
20816
20817 # type: textblock
20818 #: ../fish/guestfish-actions.pod:3484
20819 msgid "See also: C<sfdisk>, the L<sfdisk(8)> manpage and C<part-disk>"
20820 msgstr ""
20821
20822 # type: =head2
20823 #: ../fish/guestfish-actions.pod:3490
20824 msgid "sfdisk-N"
20825 msgstr ""
20826
20827 # type: verbatim
20828 #: ../fish/guestfish-actions.pod:3492
20829 #, no-wrap
20830 msgid ""
20831 " sfdisk-N device partnum cyls heads sectors line\n"
20832 "\n"
20833 msgstr ""
20834
20835 # type: textblock
20836 #: ../fish/guestfish-actions.pod:3497
20837 msgid ""
20838 "For other parameters, see C<sfdisk>.  You should usually pass C<0> for the "
20839 "cyls/heads/sectors parameters."
20840 msgstr ""
20841
20842 # type: textblock
20843 #: ../fish/guestfish-actions.pod:3500
20844 msgid "See also: C<part-add>"
20845 msgstr ""
20846
20847 # type: =head2
20848 #: ../fish/guestfish-actions.pod:3505
20849 msgid "sfdisk-disk-geometry"
20850 msgstr ""
20851
20852 # type: verbatim
20853 #: ../fish/guestfish-actions.pod:3507
20854 #, no-wrap
20855 msgid ""
20856 " sfdisk-disk-geometry device\n"
20857 "\n"
20858 msgstr ""
20859
20860 # type: textblock
20861 #: ../fish/guestfish-actions.pod:3509
20862 msgid ""
20863 "This displays the disk geometry of C<device> read from the partition table.  "
20864 "Especially in the case where the underlying block device has been resized, "
20865 "this can be different from the kernel's idea of the geometry (see "
20866 "C<sfdisk-kernel-geometry>)."
20867 msgstr ""
20868
20869 # type: =head2
20870 #: ../fish/guestfish-actions.pod:3517
20871 msgid "sfdisk-kernel-geometry"
20872 msgstr ""
20873
20874 # type: verbatim
20875 #: ../fish/guestfish-actions.pod:3519
20876 #, no-wrap
20877 msgid ""
20878 " sfdisk-kernel-geometry device\n"
20879 "\n"
20880 msgstr ""
20881
20882 # type: =head2
20883 #: ../fish/guestfish-actions.pod:3526
20884 msgid "sfdisk-l"
20885 msgstr ""
20886
20887 # type: verbatim
20888 #: ../fish/guestfish-actions.pod:3528
20889 #, no-wrap
20890 msgid ""
20891 " sfdisk-l device\n"
20892 "\n"
20893 msgstr ""
20894
20895 # type: textblock
20896 #: ../fish/guestfish-actions.pod:3534
20897 msgid "See also: C<part-list>"
20898 msgstr ""
20899
20900 # type: =head2
20901 #: ../fish/guestfish-actions.pod:3536
20902 msgid "sh"
20903 msgstr ""
20904
20905 # type: verbatim
20906 #: ../fish/guestfish-actions.pod:3538
20907 #, no-wrap
20908 msgid ""
20909 " sh command\n"
20910 "\n"
20911 msgstr ""
20912
20913 # type: textblock
20914 #: ../fish/guestfish-actions.pod:3543
20915 msgid "This is like C<command>, but passes the command to:"
20916 msgstr ""
20917
20918 # type: textblock
20919 #: ../fish/guestfish-actions.pod:3551
20920 msgid "All the provisos about C<command> apply to this call."
20921 msgstr ""
20922
20923 # type: =head2
20924 #: ../fish/guestfish-actions.pod:3553
20925 msgid "sh-lines"
20926 msgstr ""
20927
20928 # type: verbatim
20929 #: ../fish/guestfish-actions.pod:3555
20930 #, no-wrap
20931 msgid ""
20932 " sh-lines command\n"
20933 "\n"
20934 msgstr ""
20935
20936 # type: textblock
20937 #: ../fish/guestfish-actions.pod:3557
20938 msgid "This is the same as C<sh>, but splits the result into a list of lines."
20939 msgstr ""
20940
20941 # type: textblock
20942 #: ../fish/guestfish-actions.pod:3560
20943 msgid "See also: C<command-lines>"
20944 msgstr ""
20945
20946 # type: =head2
20947 #: ../fish/guestfish-actions.pod:3562
20948 msgid "sleep"
20949 msgstr ""
20950
20951 # type: verbatim
20952 #: ../fish/guestfish-actions.pod:3564
20953 #, no-wrap
20954 msgid ""
20955 " sleep secs\n"
20956 "\n"
20957 msgstr ""
20958
20959 # type: =head2
20960 #: ../fish/guestfish-actions.pod:3568
20961 msgid "stat"
20962 msgstr ""
20963
20964 # type: verbatim
20965 #: ../fish/guestfish-actions.pod:3570
20966 #, no-wrap
20967 msgid ""
20968 " stat path\n"
20969 "\n"
20970 msgstr ""
20971
20972 # type: =head2
20973 #: ../fish/guestfish-actions.pod:3576
20974 msgid "statvfs"
20975 msgstr ""
20976
20977 # type: verbatim
20978 #: ../fish/guestfish-actions.pod:3578
20979 #, no-wrap
20980 msgid ""
20981 " statvfs path\n"
20982 "\n"
20983 msgstr ""
20984
20985 # type: =head2
20986 #: ../fish/guestfish-actions.pod:3586
20987 msgid "strings"
20988 msgstr ""
20989
20990 # type: verbatim
20991 #: ../fish/guestfish-actions.pod:3588
20992 #, no-wrap
20993 msgid ""
20994 " strings path\n"
20995 "\n"
20996 msgstr ""
20997
20998 # type: =head2
20999 #: ../fish/guestfish-actions.pod:3596
21000 msgid "strings-e"
21001 msgstr ""
21002
21003 # type: verbatim
21004 #: ../fish/guestfish-actions.pod:3598
21005 #, no-wrap
21006 msgid ""
21007 " strings-e encoding path\n"
21008 "\n"
21009 msgstr ""
21010
21011 # type: textblock
21012 #: ../fish/guestfish-actions.pod:3600
21013 msgid ""
21014 "This is like the C<strings> command, but allows you to specify the encoding "
21015 "of strings that are looked for in the source file C<path>."
21016 msgstr ""
21017
21018 # type: textblock
21019 #: ../fish/guestfish-actions.pod:3610
21020 msgid ""
21021 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
21022 "ISO-8859-X (this is what C<strings> uses)."
21023 msgstr ""
21024
21025 # type: =head2
21026 #: ../fish/guestfish-actions.pod:3642
21027 msgid "swapoff-device"
21028 msgstr ""
21029
21030 # type: verbatim
21031 #: ../fish/guestfish-actions.pod:3644
21032 #, no-wrap
21033 msgid ""
21034 " swapoff-device device\n"
21035 "\n"
21036 msgstr ""
21037
21038 # type: textblock
21039 #: ../fish/guestfish-actions.pod:3646
21040 msgid ""
21041 "This command disables the libguestfs appliance swap device or partition "
21042 "named C<device>.  See C<swapon-device>."
21043 msgstr ""
21044
21045 # type: =head2
21046 #: ../fish/guestfish-actions.pod:3650
21047 msgid "swapoff-file"
21048 msgstr ""
21049
21050 # type: verbatim
21051 #: ../fish/guestfish-actions.pod:3652
21052 #, no-wrap
21053 msgid ""
21054 " swapoff-file file\n"
21055 "\n"
21056 msgstr ""
21057
21058 # type: =head2
21059 #: ../fish/guestfish-actions.pod:3656
21060 msgid "swapoff-label"
21061 msgstr ""
21062
21063 # type: verbatim
21064 #: ../fish/guestfish-actions.pod:3658
21065 #, no-wrap
21066 msgid ""
21067 " swapoff-label label\n"
21068 "\n"
21069 msgstr ""
21070
21071 # type: =head2
21072 #: ../fish/guestfish-actions.pod:3663
21073 msgid "swapoff-uuid"
21074 msgstr ""
21075
21076 # type: verbatim
21077 #: ../fish/guestfish-actions.pod:3665
21078 #, no-wrap
21079 msgid ""
21080 " swapoff-uuid uuid\n"
21081 "\n"
21082 msgstr ""
21083
21084 # type: =head2
21085 #: ../fish/guestfish-actions.pod:3670
21086 msgid "swapon-device"
21087 msgstr ""
21088
21089 # type: verbatim
21090 #: ../fish/guestfish-actions.pod:3672
21091 #, no-wrap
21092 msgid ""
21093 " swapon-device device\n"
21094 "\n"
21095 msgstr ""
21096
21097 # type: textblock
21098 #: ../fish/guestfish-actions.pod:3674
21099 msgid ""
21100 "This command enables the libguestfs appliance to use the swap device or "
21101 "partition named C<device>.  The increased memory is made available for all "
21102 "commands, for example those run using C<command> or C<sh>."
21103 msgstr ""
21104
21105 # type: =head2
21106 #: ../fish/guestfish-actions.pod:3686
21107 msgid "swapon-file"
21108 msgstr ""
21109
21110 # type: verbatim
21111 #: ../fish/guestfish-actions.pod:3688
21112 #, no-wrap
21113 msgid ""
21114 " swapon-file file\n"
21115 "\n"
21116 msgstr ""
21117
21118 # type: textblock
21119 #: ../fish/guestfish-actions.pod:3690
21120 msgid "This command enables swap to a file.  See C<swapon-device> for other notes."
21121 msgstr ""
21122
21123 # type: =head2
21124 #: ../fish/guestfish-actions.pod:3693
21125 msgid "swapon-label"
21126 msgstr ""
21127
21128 # type: verbatim
21129 #: ../fish/guestfish-actions.pod:3695
21130 #, no-wrap
21131 msgid ""
21132 " swapon-label label\n"
21133 "\n"
21134 msgstr ""
21135
21136 # type: textblock
21137 #: ../fish/guestfish-actions.pod:3697
21138 msgid ""
21139 "This command enables swap to a labeled swap partition.  See C<swapon-device> "
21140 "for other notes."
21141 msgstr ""
21142
21143 # type: =head2
21144 #: ../fish/guestfish-actions.pod:3700
21145 msgid "swapon-uuid"
21146 msgstr ""
21147
21148 # type: verbatim
21149 #: ../fish/guestfish-actions.pod:3702
21150 #, no-wrap
21151 msgid ""
21152 " swapon-uuid uuid\n"
21153 "\n"
21154 msgstr ""
21155
21156 # type: textblock
21157 #: ../fish/guestfish-actions.pod:3704
21158 msgid ""
21159 "This command enables swap to a swap partition with the given UUID.  See "
21160 "C<swapon-device> for other notes."
21161 msgstr ""
21162
21163 # type: =head2
21164 #: ../fish/guestfish-actions.pod:3707
21165 msgid "sync"
21166 msgstr ""
21167
21168 # type: verbatim
21169 #: ../fish/guestfish-actions.pod:3709
21170 #, no-wrap
21171 msgid ""
21172 " sync\n"
21173 "\n"
21174 msgstr ""
21175
21176 # type: =head2
21177 #: ../fish/guestfish-actions.pod:3717
21178 msgid "tail"
21179 msgstr ""
21180
21181 # type: verbatim
21182 #: ../fish/guestfish-actions.pod:3719
21183 #, no-wrap
21184 msgid ""
21185 " tail path\n"
21186 "\n"
21187 msgstr ""
21188
21189 # type: =head2
21190 #: ../fish/guestfish-actions.pod:3727
21191 msgid "tail-n"
21192 msgstr ""
21193
21194 # type: verbatim
21195 #: ../fish/guestfish-actions.pod:3729
21196 #, no-wrap
21197 msgid ""
21198 " tail-n nrlines path\n"
21199 "\n"
21200 msgstr ""
21201
21202 # type: =head2
21203 #: ../fish/guestfish-actions.pod:3742
21204 msgid "tar-in"
21205 msgstr ""
21206
21207 # type: verbatim
21208 #: ../fish/guestfish-actions.pod:3744
21209 #, no-wrap
21210 msgid ""
21211 " tar-in (tarfile|-) directory\n"
21212 "\n"
21213 msgstr ""
21214
21215 # type: textblock
21216 #: ../fish/guestfish-actions.pod:3749
21217 msgid "To upload a compressed tarball, use C<tgz-in> or C<txz-in>."
21218 msgstr ""
21219
21220 # type: =head2
21221 #: ../fish/guestfish-actions.pod:3754
21222 msgid "tar-out"
21223 msgstr ""
21224
21225 # type: verbatim
21226 #: ../fish/guestfish-actions.pod:3756
21227 #, no-wrap
21228 msgid ""
21229 " tar-out directory (tarfile|-)\n"
21230 "\n"
21231 msgstr ""
21232
21233 # type: textblock
21234 #: ../fish/guestfish-actions.pod:3761
21235 msgid "To download a compressed tarball, use C<tgz-out> or C<txz-out>."
21236 msgstr ""
21237
21238 # type: =head2
21239 #: ../fish/guestfish-actions.pod:3766
21240 msgid "tgz-in"
21241 msgstr ""
21242
21243 # type: verbatim
21244 #: ../fish/guestfish-actions.pod:3768
21245 #, no-wrap
21246 msgid ""
21247 " tgz-in (tarball|-) directory\n"
21248 "\n"
21249 msgstr ""
21250
21251 # type: textblock
21252 #: ../fish/guestfish-actions.pod:3773
21253 msgid "To upload an uncompressed tarball, use C<tar-in>."
21254 msgstr ""
21255
21256 # type: =head2
21257 #: ../fish/guestfish-actions.pod:3777
21258 msgid "tgz-out"
21259 msgstr ""
21260
21261 # type: verbatim
21262 #: ../fish/guestfish-actions.pod:3779
21263 #, no-wrap
21264 msgid ""
21265 " tgz-out directory (tarball|-)\n"
21266 "\n"
21267 msgstr ""
21268
21269 # type: textblock
21270 #: ../fish/guestfish-actions.pod:3784
21271 msgid "To download an uncompressed tarball, use C<tar-out>."
21272 msgstr ""
21273
21274 # type: =head2
21275 #: ../fish/guestfish-actions.pod:3788
21276 msgid "touch"
21277 msgstr ""
21278
21279 # type: verbatim
21280 #: ../fish/guestfish-actions.pod:3790
21281 #, no-wrap
21282 msgid ""
21283 " touch path\n"
21284 "\n"
21285 msgstr ""
21286
21287 # type: =head2
21288 #: ../fish/guestfish-actions.pod:3799
21289 msgid "truncate"
21290 msgstr ""
21291
21292 # type: verbatim
21293 #: ../fish/guestfish-actions.pod:3801
21294 #, no-wrap
21295 msgid ""
21296 " truncate path\n"
21297 "\n"
21298 msgstr ""
21299
21300 # type: =head2
21301 #: ../fish/guestfish-actions.pod:3806
21302 msgid "truncate-size"
21303 msgstr ""
21304
21305 # type: verbatim
21306 #: ../fish/guestfish-actions.pod:3808
21307 #, no-wrap
21308 msgid ""
21309 " truncate-size path size\n"
21310 "\n"
21311 msgstr ""
21312
21313 # type: textblock
21314 #: ../fish/guestfish-actions.pod:3813
21315 msgid ""
21316 "If the current file size is less than C<size> then the file is extended to "
21317 "the required size with zero bytes.  This creates a sparse file (ie. disk "
21318 "blocks are not allocated for the file until you write to it).  To create a "
21319 "non-sparse file of zeroes, use C<fallocate64> instead."
21320 msgstr ""
21321
21322 # type: =head2
21323 #: ../fish/guestfish-actions.pod:3819
21324 msgid "tune2fs-l"
21325 msgstr ""
21326
21327 # type: verbatim
21328 #: ../fish/guestfish-actions.pod:3821
21329 #, no-wrap
21330 msgid ""
21331 " tune2fs-l device\n"
21332 "\n"
21333 msgstr ""
21334
21335 # type: =head2
21336 #: ../fish/guestfish-actions.pod:3831
21337 msgid "txz-in"
21338 msgstr ""
21339
21340 # type: verbatim
21341 #: ../fish/guestfish-actions.pod:3833
21342 #, no-wrap
21343 msgid ""
21344 " txz-in (tarball|-) directory\n"
21345 "\n"
21346 msgstr ""
21347
21348 # type: =head2
21349 #: ../fish/guestfish-actions.pod:3840
21350 msgid "txz-out"
21351 msgstr ""
21352
21353 # type: verbatim
21354 #: ../fish/guestfish-actions.pod:3842
21355 #, no-wrap
21356 msgid ""
21357 " txz-out directory (tarball|-)\n"
21358 "\n"
21359 msgstr ""
21360
21361 # type: =head2
21362 #: ../fish/guestfish-actions.pod:3849
21363 msgid "umask"
21364 msgstr ""
21365
21366 # type: verbatim
21367 #: ../fish/guestfish-actions.pod:3851
21368 #, no-wrap
21369 msgid ""
21370 " umask mask\n"
21371 "\n"
21372 msgstr ""
21373
21374 # type: textblock
21375 #: ../fish/guestfish-actions.pod:3865
21376 msgid "See also C<get-umask>, L<umask(2)>, C<mknod>, C<mkdir>."
21377 msgstr ""
21378
21379 # type: =head2
21380 #: ../fish/guestfish-actions.pod:3870
21381 msgid "umount | unmount"
21382 msgstr ""
21383
21384 # type: verbatim
21385 #: ../fish/guestfish-actions.pod:3872
21386 #, no-wrap
21387 msgid ""
21388 " umount pathordevice\n"
21389 "\n"
21390 msgstr ""
21391
21392 # type: =head2
21393 #: ../fish/guestfish-actions.pod:3878
21394 msgid "umount-all | unmount-all"
21395 msgstr ""
21396
21397 # type: verbatim
21398 #: ../fish/guestfish-actions.pod:3880
21399 #, no-wrap
21400 msgid ""
21401 " umount-all\n"
21402 "\n"
21403 msgstr ""
21404
21405 # type: =head2
21406 #: ../fish/guestfish-actions.pod:3886
21407 msgid "upload"
21408 msgstr ""
21409
21410 # type: verbatim
21411 #: ../fish/guestfish-actions.pod:3888
21412 #, no-wrap
21413 msgid ""
21414 " upload (filename|-) remotefilename\n"
21415 "\n"
21416 msgstr ""
21417
21418 # type: textblock
21419 #: ../fish/guestfish-actions.pod:3895
21420 msgid "See also C<download>."
21421 msgstr ""
21422
21423 # type: =head2
21424 #: ../fish/guestfish-actions.pod:3899
21425 msgid "utimens"
21426 msgstr ""
21427
21428 # type: verbatim
21429 #: ../fish/guestfish-actions.pod:3901
21430 #, no-wrap
21431 msgid ""
21432 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
21433 "\n"
21434 msgstr ""
21435
21436 # type: =head2
21437 #: ../fish/guestfish-actions.pod:3920
21438 msgid "version"
21439 msgstr ""
21440
21441 # type: verbatim
21442 #: ../fish/guestfish-actions.pod:3922
21443 #, no-wrap
21444 msgid ""
21445 " version\n"
21446 "\n"
21447 msgstr ""
21448
21449 # type: textblock
21450 #: ../fish/guestfish-actions.pod:3949
21451 msgid ""
21452 "I<Note:> Don't use this call to test for availability of features.  In "
21453 "enterprise distributions we backport features from later versions into "
21454 "earlier versions, making this an unreliable way to test for features.  Use "
21455 "C<available> instead."
21456 msgstr ""
21457
21458 # type: =head2
21459 #: ../fish/guestfish-actions.pod:3955
21460 msgid "vfs-label"
21461 msgstr ""
21462
21463 # type: verbatim
21464 #: ../fish/guestfish-actions.pod:3957
21465 #, no-wrap
21466 msgid ""
21467 " vfs-label device\n"
21468 "\n"
21469 msgstr ""
21470
21471 # type: textblock
21472 #: ../fish/guestfish-actions.pod:3964
21473 msgid "To find a filesystem from the label, use C<findfs-label>."
21474 msgstr ""
21475
21476 # type: =head2
21477 #: ../fish/guestfish-actions.pod:3966
21478 msgid "vfs-type"
21479 msgstr ""
21480
21481 # type: verbatim
21482 #: ../fish/guestfish-actions.pod:3968
21483 #, no-wrap
21484 msgid ""
21485 " vfs-type device\n"
21486 "\n"
21487 msgstr ""
21488
21489 # type: =head2
21490 #: ../fish/guestfish-actions.pod:3978
21491 msgid "vfs-uuid"
21492 msgstr ""
21493
21494 # type: verbatim
21495 #: ../fish/guestfish-actions.pod:3980
21496 #, no-wrap
21497 msgid ""
21498 " vfs-uuid device\n"
21499 "\n"
21500 msgstr ""
21501
21502 # type: textblock
21503 #: ../fish/guestfish-actions.pod:3987
21504 msgid "To find a filesystem from the UUID, use C<findfs-uuid>."
21505 msgstr ""
21506
21507 # type: =head2
21508 #: ../fish/guestfish-actions.pod:3989
21509 msgid "vg-activate"
21510 msgstr ""
21511
21512 # type: verbatim
21513 #: ../fish/guestfish-actions.pod:3991
21514 #, no-wrap
21515 msgid ""
21516 " vg-activate true|false 'volgroups ...'\n"
21517 "\n"
21518 msgstr ""
21519
21520 # type: =head2
21521 #: ../fish/guestfish-actions.pod:4004
21522 msgid "vg-activate-all"
21523 msgstr ""
21524
21525 # type: verbatim
21526 #: ../fish/guestfish-actions.pod:4006
21527 #, no-wrap
21528 msgid ""
21529 " vg-activate-all true|false\n"
21530 "\n"
21531 msgstr ""
21532
21533 # type: =head2
21534 #: ../fish/guestfish-actions.pod:4016
21535 msgid "vgcreate"
21536 msgstr ""
21537
21538 # type: verbatim
21539 #: ../fish/guestfish-actions.pod:4018
21540 #, no-wrap
21541 msgid ""
21542 " vgcreate volgroup 'physvols ...'\n"
21543 "\n"
21544 msgstr ""
21545
21546 # type: =head2
21547 #: ../fish/guestfish-actions.pod:4023
21548 msgid "vglvuuids"
21549 msgstr ""
21550
21551 # type: verbatim
21552 #: ../fish/guestfish-actions.pod:4025
21553 #, no-wrap
21554 msgid ""
21555 " vglvuuids vgname\n"
21556 "\n"
21557 msgstr ""
21558
21559 # type: textblock
21560 #: ../fish/guestfish-actions.pod:4030
21561 msgid ""
21562 "You can use this along with C<lvs> and C<lvuuid> calls to associate logical "
21563 "volumes and volume groups."
21564 msgstr ""
21565
21566 # type: textblock
21567 #: ../fish/guestfish-actions.pod:4033
21568 msgid "See also C<vgpvuuids>."
21569 msgstr ""
21570
21571 # type: =head2
21572 #: ../fish/guestfish-actions.pod:4035
21573 msgid "vgpvuuids"
21574 msgstr ""
21575
21576 # type: verbatim
21577 #: ../fish/guestfish-actions.pod:4037
21578 #, no-wrap
21579 msgid ""
21580 " vgpvuuids vgname\n"
21581 "\n"
21582 msgstr ""
21583
21584 # type: textblock
21585 #: ../fish/guestfish-actions.pod:4042
21586 msgid ""
21587 "You can use this along with C<pvs> and C<pvuuid> calls to associate physical "
21588 "volumes and volume groups."
21589 msgstr ""
21590
21591 # type: textblock
21592 #: ../fish/guestfish-actions.pod:4045
21593 msgid "See also C<vglvuuids>."
21594 msgstr ""
21595
21596 # type: =head2
21597 #: ../fish/guestfish-actions.pod:4047
21598 msgid "vgremove"
21599 msgstr ""
21600
21601 # type: verbatim
21602 #: ../fish/guestfish-actions.pod:4049
21603 #, no-wrap
21604 msgid ""
21605 " vgremove vgname\n"
21606 "\n"
21607 msgstr ""
21608
21609 # type: =head2
21610 #: ../fish/guestfish-actions.pod:4056
21611 msgid "vgrename"
21612 msgstr ""
21613
21614 # type: verbatim
21615 #: ../fish/guestfish-actions.pod:4058
21616 #, no-wrap
21617 msgid ""
21618 " vgrename volgroup newvolgroup\n"
21619 "\n"
21620 msgstr ""
21621
21622 # type: =head2
21623 #: ../fish/guestfish-actions.pod:4062
21624 msgid "vgs"
21625 msgstr ""
21626
21627 # type: verbatim
21628 #: ../fish/guestfish-actions.pod:4064
21629 #, no-wrap
21630 msgid ""
21631 " vgs\n"
21632 "\n"
21633 msgstr ""
21634
21635 # type: textblock
21636 #: ../fish/guestfish-actions.pod:4072
21637 msgid "See also C<vgs-full>."
21638 msgstr ""
21639
21640 # type: =head2
21641 #: ../fish/guestfish-actions.pod:4074
21642 msgid "vgs-full"
21643 msgstr ""
21644
21645 # type: verbatim
21646 #: ../fish/guestfish-actions.pod:4076
21647 #, no-wrap
21648 msgid ""
21649 " vgs-full\n"
21650 "\n"
21651 msgstr ""
21652
21653 # type: =head2
21654 #: ../fish/guestfish-actions.pod:4081
21655 msgid "vgscan"
21656 msgstr ""
21657
21658 # type: verbatim
21659 #: ../fish/guestfish-actions.pod:4083
21660 #, no-wrap
21661 msgid ""
21662 " vgscan\n"
21663 "\n"
21664 msgstr ""
21665
21666 # type: =head2
21667 #: ../fish/guestfish-actions.pod:4088
21668 msgid "vguuid"
21669 msgstr ""
21670
21671 # type: verbatim
21672 #: ../fish/guestfish-actions.pod:4090
21673 #, no-wrap
21674 msgid ""
21675 " vguuid vgname\n"
21676 "\n"
21677 msgstr ""
21678
21679 # type: =head2
21680 #: ../fish/guestfish-actions.pod:4094
21681 msgid "wc-c"
21682 msgstr ""
21683
21684 # type: verbatim
21685 #: ../fish/guestfish-actions.pod:4096
21686 #, no-wrap
21687 msgid ""
21688 " wc-c path\n"
21689 "\n"
21690 msgstr ""
21691
21692 # type: =head2
21693 #: ../fish/guestfish-actions.pod:4101
21694 msgid "wc-l"
21695 msgstr ""
21696
21697 # type: verbatim
21698 #: ../fish/guestfish-actions.pod:4103
21699 #, no-wrap
21700 msgid ""
21701 " wc-l path\n"
21702 "\n"
21703 msgstr ""
21704
21705 # type: =head2
21706 #: ../fish/guestfish-actions.pod:4108
21707 msgid "wc-w"
21708 msgstr ""
21709
21710 # type: verbatim
21711 #: ../fish/guestfish-actions.pod:4110
21712 #, no-wrap
21713 msgid ""
21714 " wc-w path\n"
21715 "\n"
21716 msgstr ""
21717
21718 # type: =head2
21719 #: ../fish/guestfish-actions.pod:4115
21720 msgid "write"
21721 msgstr ""
21722
21723 # type: verbatim
21724 #: ../fish/guestfish-actions.pod:4117
21725 #, no-wrap
21726 msgid ""
21727 " write path content\n"
21728 "\n"
21729 msgstr ""
21730
21731 # type: =head2
21732 #: ../fish/guestfish-actions.pod:4125
21733 msgid "write-file"
21734 msgstr ""
21735
21736 # type: verbatim
21737 #: ../fish/guestfish-actions.pod:4127
21738 #, no-wrap
21739 msgid ""
21740 " write-file path content size\n"
21741 "\n"
21742 msgstr ""
21743
21744 # type: =head2
21745 #: ../fish/guestfish-actions.pod:4150
21746 msgid "zegrep"
21747 msgstr ""
21748
21749 # type: verbatim
21750 #: ../fish/guestfish-actions.pod:4152
21751 #, no-wrap
21752 msgid ""
21753 " zegrep regex path\n"
21754 "\n"
21755 msgstr ""
21756
21757 # type: =head2
21758 #: ../fish/guestfish-actions.pod:4160
21759 msgid "zegrepi"
21760 msgstr ""
21761
21762 # type: verbatim
21763 #: ../fish/guestfish-actions.pod:4162
21764 #, no-wrap
21765 msgid ""
21766 " zegrepi regex path\n"
21767 "\n"
21768 msgstr ""
21769
21770 # type: =head2
21771 #: ../fish/guestfish-actions.pod:4170
21772 msgid "zero"
21773 msgstr ""
21774
21775 # type: verbatim
21776 #: ../fish/guestfish-actions.pod:4172
21777 #, no-wrap
21778 msgid ""
21779 " zero device\n"
21780 "\n"
21781 msgstr ""
21782
21783 # type: textblock
21784 #: ../fish/guestfish-actions.pod:4180
21785 msgid "See also: C<zero-device>, C<scrub-device>."
21786 msgstr ""
21787
21788 # type: =head2
21789 #: ../fish/guestfish-actions.pod:4182
21790 msgid "zero-device"
21791 msgstr ""
21792
21793 # type: verbatim
21794 #: ../fish/guestfish-actions.pod:4184
21795 #, no-wrap
21796 msgid ""
21797 " zero-device device\n"
21798 "\n"
21799 msgstr ""
21800
21801 # type: textblock
21802 #: ../fish/guestfish-actions.pod:4186
21803 msgid ""
21804 "This command writes zeroes over the entire C<device>.  Compare with C<zero> "
21805 "which just zeroes the first few blocks of a device."
21806 msgstr ""
21807
21808 # type: =head2
21809 #: ../fish/guestfish-actions.pod:4193
21810 msgid "zerofree"
21811 msgstr ""
21812
21813 # type: verbatim
21814 #: ../fish/guestfish-actions.pod:4195
21815 #, no-wrap
21816 msgid ""
21817 " zerofree device\n"
21818 "\n"
21819 msgstr ""
21820
21821 # type: =head2
21822 #: ../fish/guestfish-actions.pod:4208
21823 msgid "zfgrep"
21824 msgstr ""
21825
21826 # type: verbatim
21827 #: ../fish/guestfish-actions.pod:4210
21828 #, no-wrap
21829 msgid ""
21830 " zfgrep pattern path\n"
21831 "\n"
21832 msgstr ""
21833
21834 # type: =head2
21835 #: ../fish/guestfish-actions.pod:4218
21836 msgid "zfgrepi"
21837 msgstr ""
21838
21839 # type: verbatim
21840 #: ../fish/guestfish-actions.pod:4220
21841 #, no-wrap
21842 msgid ""
21843 " zfgrepi pattern path\n"
21844 "\n"
21845 msgstr ""
21846
21847 # type: =head2
21848 #: ../fish/guestfish-actions.pod:4228
21849 msgid "zfile"
21850 msgstr ""
21851
21852 # type: verbatim
21853 #: ../fish/guestfish-actions.pod:4230
21854 #, no-wrap
21855 msgid ""
21856 " zfile meth path\n"
21857 "\n"
21858 msgstr ""
21859
21860 # type: textblock
21861 #: ../fish/guestfish-actions.pod:4237
21862 msgid "Since 1.0.63, use C<file> instead which can now process compressed files."
21863 msgstr ""
21864
21865 # type: =head2
21866 #: ../fish/guestfish-actions.pod:4247
21867 msgid "zgrep"
21868 msgstr ""
21869
21870 # type: verbatim
21871 #: ../fish/guestfish-actions.pod:4249
21872 #, no-wrap
21873 msgid ""
21874 " zgrep regex path\n"
21875 "\n"
21876 msgstr ""
21877
21878 # type: =head2
21879 #: ../fish/guestfish-actions.pod:4257
21880 msgid "zgrepi"
21881 msgstr ""
21882
21883 # type: verbatim
21884 #: ../fish/guestfish-actions.pod:4259
21885 #, no-wrap
21886 msgid ""
21887 " zgrepi regex path\n"
21888 "\n"
21889 msgstr ""
21890
21891 # type: textblock
21892 #: ../test-tool/libguestfs-test-tool.pod:5
21893 msgid "libguestfs-test-tool - End user tests for libguestfs"
21894 msgstr ""
21895
21896 # type: verbatim
21897 #: ../test-tool/libguestfs-test-tool.pod:9
21898 #, no-wrap
21899 msgid ""
21900 " libguestfs-test-tool [--options]\n"
21901 "\n"
21902 msgstr ""
21903
21904 # type: textblock
21905 #: ../test-tool/libguestfs-test-tool.pod:13
21906 msgid ""
21907 "libguestfs-test-tool is a test program shipped with libguestfs to end users "
21908 "and developers, to allow them to check basic libguestfs functionality is "
21909 "working.  This is needed because libguestfs occasionally breaks for reasons "
21910 "beyond our control: usually because of changes in the underlying qemu or "
21911 "kernel packages, or the host environment."
21912 msgstr ""
21913
21914 # type: textblock
21915 #: ../test-tool/libguestfs-test-tool.pod:20
21916 msgid "If you suspect a problem in libguestfs, then just run:"
21917 msgstr ""
21918
21919 # type: verbatim
21920 #: ../test-tool/libguestfs-test-tool.pod:22
21921 #, no-wrap
21922 msgid ""
21923 " libguestfs-test-tool\n"
21924 "\n"
21925 msgstr ""
21926
21927 # type: textblock
21928 #: ../test-tool/libguestfs-test-tool.pod:24
21929 msgid "It will print lots of diagnostic messages."
21930 msgstr ""
21931
21932 # type: textblock
21933 #: ../test-tool/libguestfs-test-tool.pod:26
21934 msgid "If it runs to completion successfully, you will see this near the end:"
21935 msgstr ""
21936
21937 # type: verbatim
21938 #: ../test-tool/libguestfs-test-tool.pod:28
21939 #, no-wrap
21940 msgid ""
21941 " ===== TEST FINISHED OK =====\n"
21942 "\n"
21943 msgstr ""
21944
21945 # type: textblock
21946 #: ../test-tool/libguestfs-test-tool.pod:30
21947 msgid "and the test tool will exit with code 0."
21948 msgstr ""
21949
21950 # type: textblock
21951 #: ../test-tool/libguestfs-test-tool.pod:32
21952 msgid ""
21953 "If it fails (and/or exits with non-zero error code), please paste the "
21954 "B<complete, unedited> output of the test tool into a bug report.  More "
21955 "information about reporting bugs can be found on the "
21956 "L<http://libguestfs.org/> website."
21957 msgstr ""
21958
21959 # type: =item
21960 #: ../test-tool/libguestfs-test-tool.pod:41
21961 msgid "I<--help>"
21962 msgstr ""
21963
21964 # type: textblock
21965 #: ../test-tool/libguestfs-test-tool.pod:43
21966 msgid "Display short usage information and exit."
21967 msgstr ""
21968
21969 # type: =item
21970 #: ../test-tool/libguestfs-test-tool.pod:45
21971 msgid "I<--helper /path/to/libguestfs-test-tool-helper>"
21972 msgstr ""
21973
21974 # type: textblock
21975 #: ../test-tool/libguestfs-test-tool.pod:47
21976 msgid ""
21977 "Pass an alternate name for the helper program.  libguestfs-test-tool will "
21978 "normally look in the C<$libexec> directory that was configured when the tool "
21979 "was built."
21980 msgstr ""
21981
21982 # type: =item
21983 #: ../test-tool/libguestfs-test-tool.pod:51
21984 msgid "I<--qemu qemu_binary>"
21985 msgstr ""
21986
21987 # type: textblock
21988 #: ../test-tool/libguestfs-test-tool.pod:53
21989 msgid ""
21990 "If you have downloaded another qemu binary, point this option at the full "
21991 "path of the binary to try it."
21992 msgstr ""
21993
21994 # type: =item
21995 #: ../test-tool/libguestfs-test-tool.pod:56
21996 msgid "I<--qemudir qemu_source_dir>"
21997 msgstr ""
21998
21999 # type: textblock
22000 #: ../test-tool/libguestfs-test-tool.pod:58
22001 msgid ""
22002 "If you have compiled qemu from source, point this option at the source "
22003 "directory to try it."
22004 msgstr ""
22005
22006 # type: =item
22007 #: ../test-tool/libguestfs-test-tool.pod:61
22008 msgid "I<--timeout N>"
22009 msgstr ""
22010
22011 # type: textblock
22012 #: ../test-tool/libguestfs-test-tool.pod:63
22013 msgid ""
22014 "Set the launch timeout to C<N> seconds.  The default is 120 seconds which "
22015 "does not usually need to be adjusted unless your machine is very slow."
22016 msgstr ""
22017
22018 # type: =head1
22019 #: ../test-tool/libguestfs-test-tool.pod:69
22020 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
22021 msgstr ""
22022
22023 # type: textblock
22024 #: ../test-tool/libguestfs-test-tool.pod:71
22025 msgid ""
22026 "If you have compiled another version of qemu from source and would like to "
22027 "try that, then you can use the I<--qemudir> option to point to the qemu "
22028 "source directory."
22029 msgstr ""
22030
22031 # type: textblock
22032 #: ../test-tool/libguestfs-test-tool.pod:75
22033 msgid ""
22034 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
22035 "option to point to the binary."
22036 msgstr ""
22037
22038 # type: textblock
22039 #: ../test-tool/libguestfs-test-tool.pod:78
22040 msgid ""
22041 "When using an alternate qemu with libguestfs, usually you would need to "
22042 "write a qemu wrapper script (see section I<QEMU WRAPPERS> in "
22043 "L<guestfs(3)>).  libguestfs-test-tool writes a temporary qemu wrapper script "
22044 "when you use either of the I<--qemudir> or I<--qemu> options."
22045 msgstr ""
22046
22047 # type: textblock
22048 #: ../test-tool/libguestfs-test-tool.pod:85
22049 msgid ""
22050 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
22051 "I<1> if there was an error."
22052 msgstr ""
22053
22054 # type: =item
22055 #: ../test-tool/libguestfs-test-tool.pod:92
22056 msgid "/usr/libexec/libguestfs-test-tool-helper"
22057 msgstr ""
22058
22059 # type: textblock
22060 #: ../test-tool/libguestfs-test-tool.pod:94
22061 msgid ""
22062 "This helper program is run inside the appliance and provides additional "
22063 "tests."
22064 msgstr ""
22065
22066 # type: =item
22067 #: ../test-tool/libguestfs-test-tool.pod:97
22068 msgid "/usr/bin/mkisofs"
22069 msgstr ""
22070
22071 # type: textblock
22072 #: ../test-tool/libguestfs-test-tool.pod:99
22073 msgid ""
22074 "The C<mkisofs> command is required in order to construct a CD-ROM ISO file "
22075 "which is used as part of the tests."
22076 msgstr ""
22077
22078 # type: textblock
22079 #: ../test-tool/libguestfs-test-tool.pod:106
22080 msgid ""
22081 "For the full list of environment variables which may affect libguestfs, "
22082 "please see the L<guestfs(3)> manual page."
22083 msgstr ""
22084
22085 # type: textblock
22086 #: ../test-tool/libguestfs-test-tool.pod:111
22087 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
22088 msgstr ""
22089
22090 # type: textblock
22091 #: ../test-tool/libguestfs-test-tool.pod:121 ../fuse/guestmount.pod:195
22092 msgid "Copyright (C) 2009 Red Hat Inc.  L<http://libguestfs.org/>"
22093 msgstr ""
22094
22095 # type: textblock
22096 #: ../fuse/guestmount.pod:5
22097 msgid "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
22098 msgstr ""
22099
22100 # type: verbatim
22101 #: ../fuse/guestmount.pod:9
22102 #, no-wrap
22103 msgid ""
22104 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
22105 "\n"
22106 msgstr ""
22107
22108 # type: textblock
22109 #: ../fuse/guestmount.pod:13
22110 msgid ""
22111 "You must I<not> use C<guestmount> in read-write mode on live virtual "
22112 "machines.  If you do this, you risk disk corruption in the VM."
22113 msgstr ""
22114
22115 # type: textblock
22116 #: ../fuse/guestmount.pod:18
22117 msgid ""
22118 "The guestmount program can be used to mount virtual machine filesystems and "
22119 "other disk images on the host.  It uses libguestfs for access to the guest "
22120 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
22121 "a mountable device."
22122 msgstr ""
22123
22124 # type: textblock
22125 #: ../fuse/guestmount.pod:23
22126 msgid ""
22127 "Along with other options, you have to give at least one device (I<-a> "
22128 "option) and at least one mountpoint (I<-m> option).  How this works is "
22129 "better explained in the L<guestfish(1)> manual page, or you can use "
22130 "L<virt-inspector(1)> and/or the wrapper script C<guestmount-wrapper> to help "
22131 "you."
22132 msgstr ""
22133
22134 # type: textblock
22135 #: ../fuse/guestmount.pod:29
22136 msgid ""
22137 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
22138 "by you, and the filesystem will not be visible to any other users unless you "
22139 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
22140 "the filesystem, use the C<fusermount -u> command."
22141 msgstr ""
22142
22143 # type: textblock
22144 #: ../fuse/guestmount.pod:37
22145 msgid ""
22146 "For a typical Windows guest which has its main filesystem on the first "
22147 "partition:"
22148 msgstr ""
22149
22150 # type: verbatim
22151 #: ../fuse/guestmount.pod:40
22152 #, no-wrap
22153 msgid ""
22154 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
22155 "\n"
22156 msgstr ""
22157
22158 # type: textblock
22159 #: ../fuse/guestmount.pod:42
22160 msgid ""
22161 "For a typical Linux guest which has a /boot filesystem on the first "
22162 "partition, and the root filesystem on a logical volume:"
22163 msgstr ""
22164
22165 # type: verbatim
22166 #: ../fuse/guestmount.pod:45
22167 #, no-wrap
22168 msgid ""
22169 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
22170 "\n"
22171 msgstr ""
22172
22173 # type: textblock
22174 #: ../fuse/guestmount.pod:47
22175 msgid ""
22176 "To get L<virt-inspector(1)> to do the hard work of detecting guest "
22177 "mountpoints for you:"
22178 msgstr ""
22179
22180 # type: verbatim
22181 #: ../fuse/guestmount.pod:50
22182 #, no-wrap
22183 msgid ""
22184 " guestmount $(virt-inspector --ro-fish MyGuest) /mnt\n"
22185 "\n"
22186 msgstr ""
22187
22188 # type: textblock
22189 #: ../fuse/guestmount.pod:52
22190 msgid ""
22191 "(or use --fish if you don't want it to be a read only mount).  The option is "
22192 "called I<--ro-fish> or I<--fish> because these parameters are compatible "
22193 "with L<guestfish(1)>."
22194 msgstr ""
22195
22196 # type: textblock
22197 #: ../fuse/guestmount.pod:56
22198 msgid ""
22199 "If you don't know what filesystems are contained in a guest or disk image, "
22200 "use L<virt-list-filesystems(1)> first:"
22201 msgstr ""
22202
22203 # type: verbatim
22204 #: ../fuse/guestmount.pod:59
22205 #, no-wrap
22206 msgid ""
22207 " virt-list-filesystems MyGuest\n"
22208 "\n"
22209 msgstr ""
22210
22211 # type: textblock
22212 #: ../fuse/guestmount.pod:61
22213 msgid ""
22214 "If you want to trace the libguestfs calls but without excessive debugging, "
22215 "we recommend:"
22216 msgstr ""
22217
22218 # type: verbatim
22219 #: ../fuse/guestmount.pod:64
22220 #, no-wrap
22221 msgid ""
22222 " guestmount [-a ... -m ...] --trace /mnt\n"
22223 "\n"
22224 msgstr ""
22225
22226 # type: textblock
22227 #: ../fuse/guestmount.pod:66
22228 msgid "If you want to debug the program, we recommend:"
22229 msgstr ""
22230
22231 # type: verbatim
22232 #: ../fuse/guestmount.pod:68
22233 #, no-wrap
22234 msgid ""
22235 " guestmount [-a ... -m ...] --trace --verbose /mnt\n"
22236 "\n"
22237 msgstr ""
22238
22239 # type: textblock
22240 #: ../fuse/guestmount.pod:76
22241 msgid "Add a block device or virtual machine image."
22242 msgstr ""
22243
22244 # type: =item
22245 #: ../fuse/guestmount.pod:78
22246 msgid "B<--dir-cache-timeout N>"
22247 msgstr ""
22248
22249 # type: textblock
22250 #: ../fuse/guestmount.pod:80
22251 msgid ""
22252 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
22253 "seconds.  The readdir cache [actually, there are several semi-independent "
22254 "caches] is populated after a readdir(2) call with the stat and extended "
22255 "attributes of the files in the directory, in anticipation that they will be "
22256 "requested soon after."
22257 msgstr ""
22258
22259 # type: textblock
22260 #: ../fuse/guestmount.pod:86
22261 msgid ""
22262 "There is also a different attribute cache implemented by FUSE (see the FUSE "
22263 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
22264 "requests, only cache existing ones."
22265 msgstr ""
22266
22267 # type: =item
22268 #: ../fuse/guestmount.pod:90
22269 msgid "B<--fuse-help>"
22270 msgstr ""
22271
22272 # type: textblock
22273 #: ../fuse/guestmount.pod:92
22274 msgid "Display help on special FUSE options (see I<-o> below)."
22275 msgstr ""
22276
22277 # type: textblock
22278 #: ../fuse/guestmount.pod:96
22279 msgid "Display brief help and exit."
22280 msgstr ""
22281
22282 # type: =item
22283 #: ../fuse/guestmount.pod:98
22284 msgid "B<-m dev[:mnt]> | B<--mount dev[:mnt]>"
22285 msgstr ""
22286
22287 # type: textblock
22288 #: ../fuse/guestmount.pod:100
22289 msgid ""
22290 "Mount the named partition or logical volume on the given mountpoint B<in the "
22291 "guest> (this has nothing to do with mountpoints in the host)."
22292 msgstr ""
22293
22294 # type: textblock
22295 #: ../fuse/guestmount.pod:103
22296 msgid ""
22297 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
22298 "something on C</>."
22299 msgstr ""
22300
22301 # type: textblock
22302 #: ../fuse/guestmount.pod:108
22303 msgid ""
22304 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
22305 "unmounted.  If you specify this option, then we don't attempt to sync the "
22306 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
22307 msgstr ""
22308
22309 # type: =item
22310 #: ../fuse/guestmount.pod:113
22311 msgid "B<-o option> | B<--option option>"
22312 msgstr ""
22313
22314 # type: textblock
22315 #: ../fuse/guestmount.pod:115
22316 msgid "Pass extra options to FUSE."
22317 msgstr ""
22318
22319 # type: textblock
22320 #: ../fuse/guestmount.pod:117
22321 msgid ""
22322 "To get a list of all the extra options supported by FUSE, use the command "
22323 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
22324 "of them are a good idea."
22325 msgstr ""
22326
22327 # type: verbatim
22328 #: ../fuse/guestmount.pod:121
22329 #, no-wrap
22330 msgid ""
22331 " guestmount --fuse-help\n"
22332 "\n"
22333 msgstr ""
22334
22335 # type: textblock
22336 #: ../fuse/guestmount.pod:123
22337 msgid "Some potentially useful FUSE options:"
22338 msgstr ""
22339
22340 # type: =item
22341 #: ../fuse/guestmount.pod:127
22342 msgid "B<-o allow_other>"
22343 msgstr ""
22344
22345 # type: textblock
22346 #: ../fuse/guestmount.pod:129
22347 msgid "Allow other users to see the filesystem."
22348 msgstr ""
22349
22350 # type: =item
22351 #: ../fuse/guestmount.pod:131
22352 msgid "B<-o attr_timeout=N>"
22353 msgstr ""
22354
22355 # type: textblock
22356 #: ../fuse/guestmount.pod:133
22357 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
22358 msgstr ""
22359
22360 # type: =item
22361 #: ../fuse/guestmount.pod:135
22362 msgid "B<-o kernel_cache>"
22363 msgstr ""
22364
22365 # type: textblock
22366 #: ../fuse/guestmount.pod:137
22367 msgid ""
22368 "Allow the kernel to cache files (reduces the number of reads that have to go "
22369 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
22370 "afford the extra memory usage."
22371 msgstr ""
22372
22373 # type: =item
22374 #: ../fuse/guestmount.pod:141
22375 msgid "B<-o uid=N> B<-o gid=N>"
22376 msgstr ""
22377
22378 # type: textblock
22379 #: ../fuse/guestmount.pod:143
22380 msgid ""
22381 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
22382 "the chosen values."
22383 msgstr ""
22384
22385 # type: textblock
22386 #: ../fuse/guestmount.pod:150
22387 msgid ""
22388 "Add devices and mount everything read-only.  Also disallow writes and make "
22389 "the disk appear read-only to FUSE."
22390 msgstr ""
22391
22392 # type: textblock
22393 #: ../fuse/guestmount.pod:153
22394 msgid ""
22395 "This is highly recommended if you are not going to edit the guest disk.  If "
22396 "the guest is running and this option is I<not> supplied, then there is a "
22397 "strong risk of disk corruption in the guest.  We try to prevent this from "
22398 "happening, but it is not always possible."
22399 msgstr ""
22400
22401 # type: textblock
22402 #: ../fuse/guestmount.pod:160
22403 msgid "Enable SELinux support for the guest."
22404 msgstr ""
22405
22406 # type: =item
22407 #: ../fuse/guestmount.pod:162
22408 msgid "B<--trace>"
22409 msgstr ""
22410
22411 # type: textblock
22412 #: ../fuse/guestmount.pod:164
22413 msgid "Trace libguestfs calls (to stderr)."
22414 msgstr ""
22415
22416 # type: textblock
22417 #: ../fuse/guestmount.pod:166
22418 msgid "This also stops the daemon from forking into the background."
22419 msgstr ""
22420
22421 # type: textblock
22422 #: ../fuse/guestmount.pod:170
22423 msgid "Enable verbose messages from underlying libguestfs."
22424 msgstr ""
22425
22426 # type: textblock
22427 #: ../fuse/guestmount.pod:174
22428 msgid "Display the program version and exit."
22429 msgstr ""
22430
22431 # type: textblock
22432 #: ../fuse/guestmount.pod:180
22433 msgid ""
22434 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
22435 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, "
22436 "L<http://fuse.sf.net/>."
22437 msgstr ""
22438
22439 # type: textblock
22440 #: ../inspector/virt-inspector.pl:40
22441 msgid ""
22442 "virt-inspector - Display OS version, kernel, drivers, mount points, "
22443 "applications, etc. in a virtual machine"
22444 msgstr ""
22445
22446 # type: verbatim
22447 #: ../inspector/virt-inspector.pl:44
22448 #, no-wrap
22449 msgid ""
22450 " virt-inspector [--connect URI] domname\n"
22451 "\n"
22452 msgstr ""
22453
22454 # type: verbatim
22455 #: ../inspector/virt-inspector.pl:46
22456 #, no-wrap
22457 msgid ""
22458 " virt-inspector guest.img [guest.img ...]\n"
22459 "\n"
22460 msgstr ""
22461
22462 # type: textblock
22463 #: ../inspector/virt-inspector.pl:50
22464 msgid ""
22465 "B<virt-inspector> examines a virtual machine and tries to determine the "
22466 "version of the OS, the kernel version, what drivers are installed, whether "
22467 "the virtual machine is fully virtualized (FV) or para-virtualized (PV), what "
22468 "applications are installed and more."
22469 msgstr ""
22470
22471 # type: textblock
22472 #: ../inspector/virt-inspector.pl:55
22473 msgid ""
22474 "Virt-inspector can produce output in several formats, including a readable "
22475 "text report, and XML for feeding into other programs."
22476 msgstr ""
22477
22478 # type: textblock
22479 #: ../inspector/virt-inspector.pl:58
22480 msgid ""
22481 "In the normal usage, use C<virt-inspector domname> where C<domname> is the "
22482 "libvirt domain (see: C<virsh list --all>)."
22483 msgstr ""
22484
22485 # type: textblock
22486 #: ../inspector/virt-inspector.pl:61
22487 msgid ""
22488 "You can also run virt-inspector directly on disk images from a single "
22489 "virtual machine.  Use C<virt-inspector guest.img>.  In rare cases a domain "
22490 "has several block devices, in which case you should list them one after "
22491 "another, with the first corresponding to the guest's C</dev/sda>, the second "
22492 "to the guest's C</dev/sdb> and so on."
22493 msgstr ""
22494
22495 # type: textblock
22496 #: ../inspector/virt-inspector.pl:67
22497 msgid ""
22498 "Virt-inspector can only inspect and report upon I<one domain at a time>.  To "
22499 "inspect several virtual machines, you have to run virt-inspector several "
22500 "times (for example, from a shell script for-loop)."
22501 msgstr ""
22502
22503 # type: textblock
22504 #: ../inspector/virt-inspector.pl:72
22505 msgid ""
22506 "Because virt-inspector needs direct access to guest images, it won't "
22507 "normally work over remote libvirt connections."
22508 msgstr ""
22509
22510 # type: textblock
22511 #: ../inspector/virt-inspector.pl:85 ../tools/virt-cat.pl:90 ../tools/virt-df.pl:81 ../tools/virt-edit.pl:83 ../tools/virt-list-filesystems.pl:60 ../tools/virt-list-partitions.pl:61 ../tools/virt-ls.pl:89 ../tools/virt-make-fs.pl:163 ../tools/virt-rescue.pl:113 ../tools/virt-tar.pl:109 ../tools/virt-win-reg.pl:182
22512 msgid "Display brief help."
22513 msgstr ""
22514
22515 # type: =item
22516 #: ../inspector/virt-inspector.pl:91 ../tools/virt-cat.pl:96 ../tools/virt-df.pl:87 ../tools/virt-edit.pl:89 ../tools/virt-list-filesystems.pl:66 ../tools/virt-list-partitions.pl:67 ../tools/virt-ls.pl:95 ../tools/virt-make-fs.pl:169 ../tools/virt-rescue.pl:119 ../tools/virt-resize.pl:249 ../tools/virt-tar.pl:115 ../tools/virt-win-reg.pl:188
22517 msgid "B<--version>"
22518 msgstr ""
22519
22520 # type: textblock
22521 #: ../inspector/virt-inspector.pl:93 ../tools/virt-cat.pl:98 ../tools/virt-df.pl:89 ../tools/virt-edit.pl:91 ../tools/virt-list-filesystems.pl:68 ../tools/virt-list-partitions.pl:69 ../tools/virt-ls.pl:97 ../tools/virt-make-fs.pl:171 ../tools/virt-rescue.pl:121 ../tools/virt-resize.pl:251 ../tools/virt-tar.pl:117 ../tools/virt-win-reg.pl:190
22522 msgid "Display version number and exit."
22523 msgstr ""
22524
22525 # type: =item
22526 #: ../inspector/virt-inspector.pl:99 ../tools/virt-cat.pl:104 ../tools/virt-df.pl:95 ../tools/virt-edit.pl:113 ../tools/virt-list-filesystems.pl:74 ../tools/virt-list-partitions.pl:75 ../tools/virt-ls.pl:103 ../tools/virt-rescue.pl:135 ../tools/virt-tar.pl:123 ../tools/virt-win-reg.pl:204
22527 msgid "B<--connect URI> | B<-c URI>"
22528 msgstr ""
22529
22530 # type: textblock
22531 #: ../inspector/virt-inspector.pl:101 ../tools/virt-cat.pl:106 ../tools/virt-df.pl:97 ../tools/virt-edit.pl:115 ../tools/virt-list-filesystems.pl:76 ../tools/virt-list-partitions.pl:77 ../tools/virt-ls.pl:105 ../tools/virt-rescue.pl:137 ../tools/virt-tar.pl:125 ../tools/virt-win-reg.pl:206
22532 msgid ""
22533 "If using libvirt, connect to the given I<URI>.  If omitted, then we connect "
22534 "to the default libvirt hypervisor."
22535 msgstr ""
22536
22537 # type: textblock
22538 #: ../inspector/virt-inspector.pl:104
22539 msgid ""
22540 "Libvirt is only used if you specify a C<domname> on the command line.  If "
22541 "you specify guest block devices directly, then libvirt is not used at all."
22542 msgstr ""
22543
22544 # type: textblock
22545 #: ../inspector/virt-inspector.pl:114
22546 msgid ""
22547 "The following options select the output format.  Use only one of them.  The "
22548 "default is a readable text report."
22549 msgstr ""
22550
22551 # type: =item
22552 #: ../inspector/virt-inspector.pl:119
22553 msgid "B<--text> (default)"
22554 msgstr ""
22555
22556 # type: textblock
22557 #: ../inspector/virt-inspector.pl:121
22558 msgid "Plain text report."
22559 msgstr ""
22560
22561 # type: =item
22562 #: ../inspector/virt-inspector.pl:123
22563 msgid "B<--none>"
22564 msgstr ""
22565
22566 # type: textblock
22567 #: ../inspector/virt-inspector.pl:125
22568 msgid "Produce no output at all."
22569 msgstr ""
22570
22571 # type: =item
22572 #: ../inspector/virt-inspector.pl:127
22573 msgid "B<--xml>"
22574 msgstr ""
22575
22576 # type: textblock
22577 #: ../inspector/virt-inspector.pl:129
22578 msgid ""
22579 "If you select I<--xml> then you get XML output which can be fed to other "
22580 "programs."
22581 msgstr ""
22582
22583 # type: =item
22584 #: ../inspector/virt-inspector.pl:132
22585 msgid "B<--yaml>"
22586 msgstr ""
22587
22588 # type: textblock
22589 #: ../inspector/virt-inspector.pl:134
22590 msgid ""
22591 "If you select I<--yaml> then you get YAML output which can be fed to other "
22592 "programs."
22593 msgstr ""
22594
22595 # type: =item
22596 #: ../inspector/virt-inspector.pl:137
22597 msgid "B<--perl>"
22598 msgstr ""
22599
22600 # type: textblock
22601 #: ../inspector/virt-inspector.pl:139
22602 msgid ""
22603 "If you select I<--perl> then you get Perl structures output which can be "
22604 "used directly in another Perl program."
22605 msgstr ""
22606
22607 # type: =item
22608 #: ../inspector/virt-inspector.pl:142
22609 msgid "B<--fish>"
22610 msgstr ""
22611
22612 # type: =item
22613 #: ../inspector/virt-inspector.pl:144
22614 msgid "B<--ro-fish>"
22615 msgstr ""
22616
22617 # type: textblock
22618 #: ../inspector/virt-inspector.pl:146
22619 msgid ""
22620 "If you select I<--fish> then we print a L<guestfish(1)> command line which "
22621 "will automatically mount up the filesystems on the correct mount points.  "
22622 "Try this for example:"
22623 msgstr ""
22624
22625 # type: verbatim
22626 #: ../inspector/virt-inspector.pl:150
22627 #, no-wrap
22628 msgid ""
22629 " guestfish $(virt-inspector --fish guest.img)\n"
22630 "\n"
22631 msgstr ""
22632
22633 # type: textblock
22634 #: ../inspector/virt-inspector.pl:152
22635 msgid ""
22636 "I<--ro-fish> is the same, but the I<--ro> option is passed to guestfish so "
22637 "that the filesystems are mounted read-only."
22638 msgstr ""
22639
22640 # type: =item
22641 #: ../inspector/virt-inspector.pl:155
22642 msgid "B<--query>"
22643 msgstr ""
22644
22645 # type: textblock
22646 #: ../inspector/virt-inspector.pl:157
22647 msgid ""
22648 "In \"query mode\" we answer common questions about the guest, such as "
22649 "whether it is fullvirt or needs a Xen hypervisor to run."
22650 msgstr ""
22651
22652 # type: textblock
22653 #: ../inspector/virt-inspector.pl:160
22654 msgid "See section I<QUERY MODE> below."
22655 msgstr ""
22656
22657 # type: =item
22658 #: ../inspector/virt-inspector.pl:166
22659 msgid "B<--windows-registry>"
22660 msgstr ""
22661
22662 # type: textblock
22663 #: ../inspector/virt-inspector.pl:168
22664 msgid ""
22665 "This flag is ignored for compatibility with earlier releases of the "
22666 "software."
22667 msgstr ""
22668
22669 # type: textblock
22670 #: ../inspector/virt-inspector.pl:171
22671 msgid ""
22672 "In this version, if L<Win::Hivex(3)> is available, then we attempt to parse "
22673 "information out of the Registry for any Windows guest."
22674 msgstr ""
22675
22676 # type: =head1
22677 #: ../inspector/virt-inspector.pl:218
22678 msgid "OUTPUT FORMAT"
22679 msgstr ""
22680
22681 # type: verbatim
22682 #: ../inspector/virt-inspector.pl:220
22683 #, no-wrap
22684 msgid ""
22685 " Operating system(s)\n"
22686 " -------------------\n"
22687 " Linux (distro + version)\n"
22688 " Windows (version)\n"
22689 "    |\n"
22690 "    |\n"
22691 "    +--- Filesystems ---------- Installed apps --- Kernel & drivers\n"
22692 "         -----------            --------------     ----------------\n"
22693 "         mount point => device  List of apps       Extra information\n"
22694 "         mount point => device  and versions       about kernel(s)\n"
22695 "              ...                                  and drivers\n"
22696 "         swap => swap device\n"
22697 "         (plus lots of extra information\n"
22698 "         about each filesystem)\n"
22699 "\n"
22700 msgstr ""
22701
22702 # type: textblock
22703 #: ../inspector/virt-inspector.pl:235
22704 msgid "The output of virt-inspector is a complex two-level data structure."
22705 msgstr ""
22706
22707 # type: textblock
22708 #: ../inspector/virt-inspector.pl:237
22709 msgid ""
22710 "At the top level is a list of the operating systems installed on the guest.  "
22711 "(For the vast majority of guests, only a single OS is installed.)  The data "
22712 "returned for the OS includes the name (Linux, Windows), the distribution and "
22713 "version."
22714 msgstr ""
22715
22716 # type: textblock
22717 #: ../inspector/virt-inspector.pl:242
22718 msgid "The diagram above shows what we return for each OS."
22719 msgstr ""
22720
22721 # type: textblock
22722 #: ../inspector/virt-inspector.pl:244
22723 msgid ""
22724 "With the I<--xml> option the output is mapped into an XML document.  There "
22725 "is a RELAX-NG schema for this XML in the file I<virt-inspector.rng> which "
22726 "normally ships with virt-inspector, or can be found in the source."
22727 msgstr ""
22728
22729 # type: textblock
22730 #: ../inspector/virt-inspector.pl:249
22731 msgid ""
22732 "With the I<--fish> or I<--ro-fish> option the mount points are mapped to "
22733 "L<guestfish(1)> command line parameters, so that you can go in afterwards "
22734 "and inspect the guest with everything mounted in the right place.  For "
22735 "example:"
22736 msgstr ""
22737
22738 # type: verbatim
22739 #: ../inspector/virt-inspector.pl:254
22740 #, no-wrap
22741 msgid ""
22742 " guestfish $(virt-inspector --ro-fish guest.img)\n"
22743 " ==> guestfish --ro -a guest.img -m /dev/VG/LV:/ -m /dev/sda1:/boot\n"
22744 "\n"
22745 msgstr ""
22746
22747 # type: =head1
22748 #: ../inspector/virt-inspector.pl:589
22749 msgid "QUERY MODE"
22750 msgstr ""
22751
22752 # type: textblock
22753 #: ../inspector/virt-inspector.pl:591
22754 msgid ""
22755 "When you use C<virt-inspector --query>, the output is a series of lines of "
22756 "the form:"
22757 msgstr ""
22758
22759 # type: verbatim
22760 #: ../inspector/virt-inspector.pl:594
22761 #, no-wrap
22762 msgid ""
22763 " windows=no\n"
22764 " linux=yes\n"
22765 " fullvirt=yes\n"
22766 " xen_pv_drivers=no\n"
22767 "\n"
22768 msgstr ""
22769
22770 # type: textblock
22771 #: ../inspector/virt-inspector.pl:599
22772 msgid ""
22773 "(each answer is usually C<yes> or C<no>, or the line is completely missing "
22774 "if we could not determine the answer at all)."
22775 msgstr ""
22776
22777 # type: textblock
22778 #: ../inspector/virt-inspector.pl:602
22779 msgid ""
22780 "If the guest is multiboot, you can get apparently conflicting answers "
22781 "(eg. C<windows=yes> and C<linux=yes>, or a guest which is both fullvirt and "
22782 "has a Xen PV kernel).  This is normal, and just means that the guest can do "
22783 "both things, although it might require operator intervention such as "
22784 "selecting a boot option when the guest is booting."
22785 msgstr ""
22786
22787 # type: textblock
22788 #: ../inspector/virt-inspector.pl:609
22789 msgid "This section describes the full range of answers possible."
22790 msgstr ""
22791
22792 # type: =item
22793 #: ../inspector/virt-inspector.pl:630
22794 msgid "windows=(yes|no)"
22795 msgstr ""
22796
22797 # type: textblock
22798 #: ../inspector/virt-inspector.pl:632
22799 msgid "Answer C<yes> if Microsoft Windows is installed in the guest."
22800 msgstr ""
22801
22802 # type: =item
22803 #: ../inspector/virt-inspector.pl:645
22804 msgid "linux=(yes|no)"
22805 msgstr ""
22806
22807 # type: textblock
22808 #: ../inspector/virt-inspector.pl:647
22809 msgid "Answer C<yes> if a Linux kernel is installed in the guest."
22810 msgstr ""
22811
22812 # type: =item
22813 #: ../inspector/virt-inspector.pl:660
22814 msgid "rhel=(yes|no)"
22815 msgstr ""
22816
22817 # type: textblock
22818 #: ../inspector/virt-inspector.pl:662
22819 msgid "Answer C<yes> if the guest contains Red Hat Enterprise Linux."
22820 msgstr ""
22821
22822 # type: =item
22823 #: ../inspector/virt-inspector.pl:676
22824 msgid "fedora=(yes|no)"
22825 msgstr ""
22826
22827 # type: textblock
22828 #: ../inspector/virt-inspector.pl:678
22829 msgid "Answer C<yes> if the guest contains the Fedora Linux distribution."
22830 msgstr ""
22831
22832 # type: =item
22833 #: ../inspector/virt-inspector.pl:691
22834 msgid "debian=(yes|no)"
22835 msgstr ""
22836
22837 # type: textblock
22838 #: ../inspector/virt-inspector.pl:693
22839 msgid "Answer C<yes> if the guest contains the Debian Linux distribution."
22840 msgstr ""
22841
22842 # type: =item
22843 #: ../inspector/virt-inspector.pl:706
22844 msgid "fullvirt=(yes|no)"
22845 msgstr ""
22846
22847 # type: textblock
22848 #: ../inspector/virt-inspector.pl:708
22849 msgid ""
22850 "Answer C<yes> if there is at least one operating system kernel installed in "
22851 "the guest which runs fully virtualized.  Such a guest would require a "
22852 "hypervisor which supports full system virtualization."
22853 msgstr ""
22854
22855 # type: =item
22856 #: ../inspector/virt-inspector.pl:731
22857 msgid "xen_domU_kernel=(yes|no)"
22858 msgstr ""
22859
22860 # type: textblock
22861 #: ../inspector/virt-inspector.pl:733
22862 msgid ""
22863 "Answer C<yes> if there is at least one Linux kernel installed in the guest "
22864 "which is compiled as a Xen DomU (a Xen paravirtualized guest)."
22865 msgstr ""
22866
22867 # type: =item
22868 #: ../inspector/virt-inspector.pl:753
22869 msgid "xen_pv_drivers=(yes|no)"
22870 msgstr ""
22871
22872 # type: textblock
22873 #: ../inspector/virt-inspector.pl:755
22874 msgid ""
22875 "Answer C<yes> if the guest has Xen paravirtualized drivers installed "
22876 "(usually the kernel itself will be fully virtualized, but the PV drivers "
22877 "have been installed by the administrator for performance reasons)."
22878 msgstr ""
22879
22880 # type: =item
22881 #: ../inspector/virt-inspector.pl:777
22882 msgid "virtio_drivers=(yes|no)"
22883 msgstr ""
22884
22885 # type: textblock
22886 #: ../inspector/virt-inspector.pl:779
22887 msgid ""
22888 "Answer C<yes> if the guest has virtio paravirtualized drivers installed.  "
22889 "Virtio drivers are commonly used to improve the performance of KVM."
22890 msgstr ""
22891
22892 # type: =item
22893 #: ../inspector/virt-inspector.pl:800
22894 msgid "userspace_arch=(x86_64|...)"
22895 msgstr ""
22896
22897 # type: textblock
22898 #: ../inspector/virt-inspector.pl:802
22899 msgid "Print the architecture of userspace."
22900 msgstr ""
22901
22902 # type: textblock
22903 #: ../inspector/virt-inspector.pl:804 ../inspector/virt-inspector.pl:825
22904 msgid "NB. For multi-boot VMs this can print several lines."
22905 msgstr ""
22906
22907 # type: =item
22908 #: ../inspector/virt-inspector.pl:821
22909 msgid "kernel_arch=(x86_64|...)"
22910 msgstr ""
22911
22912 # type: textblock
22913 #: ../inspector/virt-inspector.pl:823
22914 msgid "Print the architecture of the kernel."
22915 msgstr ""
22916
22917 # type: textblock
22918 #: ../inspector/virt-inspector.pl:848 ../tools/virt-df.pl:484
22919 msgid ""
22920 "L<guestfs(3)>, L<guestfish(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
22921 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
22922 msgstr ""
22923
22924 # type: textblock
22925 #: ../inspector/virt-inspector.pl:857 ../tools/virt-cat.pl:175 ../tools/virt-df.pl:493 ../tools/virt-edit.pl:339 ../tools/virt-list-filesystems.pl:205 ../tools/virt-list-partitions.pl:242 ../tools/virt-ls.pl:223 ../tools/virt-make-fs.pl:554 ../tools/virt-rescue.pl:243 ../tools/virt-resize.pl:1409 ../tools/virt-tar.pl:270 ../tools/virt-win-reg.pl:489
22926 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
22927 msgstr ""
22928
22929 # type: textblock
22930 #: ../inspector/virt-inspector.pl:859
22931 msgid "Matthew Booth L<mbooth@redhat.com>"
22932 msgstr ""
22933
22934 # type: textblock
22935 #: ../inspector/virt-inspector.pl:863 ../tools/virt-cat.pl:179 ../tools/virt-list-filesystems.pl:209 ../tools/virt-ls.pl:227 ../tools/virt-tar.pl:274
22936 msgid "Copyright (C) 2009 Red Hat Inc."
22937 msgstr ""
22938
22939 # type: textblock
22940 #: ../tools/virt-cat.pl:34
22941 msgid "virt-cat - Display a file in a virtual machine"
22942 msgstr ""
22943
22944 # type: verbatim
22945 #: ../tools/virt-cat.pl:38
22946 #, no-wrap
22947 msgid ""
22948 " virt-cat [--options] domname file\n"
22949 "\n"
22950 msgstr ""
22951
22952 # type: verbatim
22953 #: ../tools/virt-cat.pl:40
22954 #, no-wrap
22955 msgid ""
22956 " virt-cat [--options] disk.img [disk.img ...] file\n"
22957 "\n"
22958 msgstr ""
22959
22960 # type: textblock
22961 #: ../tools/virt-cat.pl:44
22962 msgid ""
22963 "C<virt-cat> is a command line tool to display the contents of C<file> where "
22964 "C<file> exists in the named virtual machine (or disk image)."
22965 msgstr ""
22966
22967 # type: textblock
22968 #: ../tools/virt-cat.pl:47
22969 msgid ""
22970 "C<virt-cat> can be used to quickly view a single file.  To edit a file, use "
22971 "C<virt-edit>.  For more complex cases you should look at the L<guestfish(1)> "
22972 "tool."
22973 msgstr ""
22974
22975 # type: textblock
22976 #: ../tools/virt-cat.pl:53
22977 msgid "Display C</etc/fstab> file from inside the libvirt VM called C<mydomain>:"
22978 msgstr ""
22979
22980 # type: verbatim
22981 #: ../tools/virt-cat.pl:56
22982 #, no-wrap
22983 msgid ""
22984 " virt-cat mydomain /etc/fstab\n"
22985 "\n"
22986 msgstr ""
22987
22988 # type: textblock
22989 #: ../tools/virt-cat.pl:58
22990 msgid "List syslog messages from a VM:"
22991 msgstr ""
22992
22993 # type: verbatim
22994 #: ../tools/virt-cat.pl:60
22995 #, no-wrap
22996 msgid ""
22997 " virt-cat mydomain /var/log/messages | tail\n"
22998 "\n"
22999 msgstr ""
23000
23001 # type: textblock
23002 #: ../tools/virt-cat.pl:62
23003 msgid "Find out what DHCP IP address a VM acquired:"
23004 msgstr ""
23005
23006 # type: verbatim
23007 #: ../tools/virt-cat.pl:64
23008 #, no-wrap
23009 msgid ""
23010 " virt-cat mydomain /var/log/messages | grep 'dhclient: bound to' | tail\n"
23011 "\n"
23012 msgstr ""
23013
23014 # type: textblock
23015 #: ../tools/virt-cat.pl:66
23016 msgid "Find out what packages were recently installed:"
23017 msgstr ""
23018
23019 # type: verbatim
23020 #: ../tools/virt-cat.pl:68
23021 #, no-wrap
23022 msgid ""
23023 " virt-cat mydomain /var/log/yum.log | tail\n"
23024 "\n"
23025 msgstr ""
23026
23027 # type: textblock
23028 #: ../tools/virt-cat.pl:70
23029 msgid "Find out who is logged on inside a virtual machine:"
23030 msgstr ""
23031
23032 # type: verbatim
23033 #: ../tools/virt-cat.pl:72
23034 #, no-wrap
23035 msgid ""
23036 " virt-cat mydomain /var/run/utmp > /tmp/utmp\n"
23037 " who /tmp/utmp\n"
23038 "\n"
23039 msgstr ""
23040
23041 # type: textblock
23042 #: ../tools/virt-cat.pl:75
23043 msgid "or who was logged on:"
23044 msgstr ""
23045
23046 # type: verbatim
23047 #: ../tools/virt-cat.pl:77
23048 #, no-wrap
23049 msgid ""
23050 " virt-cat mydomain /var/log/wtmp > /tmp/wtmp\n"
23051 " last -f /tmp/wtmp\n"
23052 "\n"
23053 msgstr ""
23054
23055 # type: textblock
23056 #: ../tools/virt-cat.pl:109 ../tools/virt-df.pl:100 ../tools/virt-edit.pl:118 ../tools/virt-list-filesystems.pl:79 ../tools/virt-list-partitions.pl:80 ../tools/virt-ls.pl:108 ../tools/virt-rescue.pl:140 ../tools/virt-tar.pl:128 ../tools/virt-win-reg.pl:209
23057 msgid ""
23058 "If you specify guest block devices directly, then libvirt is not used at "
23059 "all."
23060 msgstr ""
23061
23062 # type: textblock
23063 #: ../tools/virt-cat.pl:165
23064 msgid ""
23065 "L<guestfs(3)>, L<guestfish(1)>, L<virt-edit(1)>, L<Sys::Guestfs(3)>, "
23066 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
23067 msgstr ""
23068
23069 # type: =head1
23070 #: ../tools/virt-cat.pl:173 ../tools/virt-df.pl:491 ../tools/virt-edit.pl:337 ../tools/virt-list-filesystems.pl:203 ../tools/virt-list-partitions.pl:240 ../tools/virt-ls.pl:221 ../tools/virt-make-fs.pl:552 ../tools/virt-rescue.pl:241 ../tools/virt-resize.pl:1407 ../tools/virt-tar.pl:268 ../tools/virt-win-reg.pl:487
23071 msgid "AUTHOR"
23072 msgstr ""
23073
23074 # type: textblock
23075 #: ../tools/virt-df.pl:36
23076 msgid "virt-df - Display free space on virtual filesystems"
23077 msgstr ""
23078
23079 # type: verbatim
23080 #: ../tools/virt-df.pl:40
23081 #, no-wrap
23082 msgid ""
23083 " virt-df [--options]\n"
23084 "\n"
23085 msgstr ""
23086
23087 # type: verbatim
23088 #: ../tools/virt-df.pl:42
23089 #, no-wrap
23090 msgid ""
23091 " virt-df [--options] domname\n"
23092 "\n"
23093 msgstr ""
23094
23095 # type: verbatim
23096 #: ../tools/virt-df.pl:44
23097 #, no-wrap
23098 msgid ""
23099 " virt-df [--options] disk.img [disk.img ...]\n"
23100 "\n"
23101 msgstr ""
23102
23103 # type: textblock
23104 #: ../tools/virt-df.pl:48
23105 msgid ""
23106 "C<virt-df> is a command line tool to display free space on virtual machine "
23107 "filesystems.  Unlike other tools, it doesn't just display the amount of "
23108 "space allocated to a virtual machine, but can look inside the virtual "
23109 "machine to see how much space is really being used."
23110 msgstr ""
23111
23112 # type: textblock
23113 #: ../tools/virt-df.pl:53
23114 msgid ""
23115 "It is like the L<df(1)> command, but for virtual machines, except that it "
23116 "also works for Windows virtual machines."
23117 msgstr ""
23118
23119 # type: textblock
23120 #: ../tools/virt-df.pl:56
23121 msgid ""
23122 "If used without any arguments, C<virt-df> checks with libvirt to get a list "
23123 "of all active and inactive guests, and performs a C<df>-type operation on "
23124 "each one in turn, printing out the results."
23125 msgstr ""
23126
23127 # type: textblock
23128 #: ../tools/virt-df.pl:60
23129 msgid ""
23130 "If used with any argument(s), C<virt-df> performs a C<df>-type operation on "
23131 "either the single named libvirt domain, or on the disk image(s) listed on "
23132 "the command line (which must all belong to a single VM).  In this mode (with "
23133 "arguments), C<virt-df> will I<only work for a single guest>.  If you want to "
23134 "run on multiple guests, then you have to invoke C<virt-df> multiple times."
23135 msgstr ""
23136
23137 # type: textblock
23138 #: ../tools/virt-df.pl:67
23139 msgid ""
23140 "Use the C<--csv> option to get a format which can be easily parsed by other "
23141 "programs.  Other options are mostly similar to standard C<df> options.  See "
23142 "below for the complete list."
23143 msgstr ""
23144
23145 # type: =item
23146 #: ../tools/virt-df.pl:107
23147 msgid "B<--csv>"
23148 msgstr ""
23149
23150 # type: textblock
23151 #: ../tools/virt-df.pl:109
23152 msgid ""
23153 "Write out the results in CSV format (comma-separated values).  This format "
23154 "can be imported easily into databases and spreadsheets, but read L</NOTE "
23155 "ABOUT CSV FORMAT> below."
23156 msgstr ""
23157
23158 # type: =item
23159 #: ../tools/virt-df.pl:117
23160 msgid "B<--human-readable> | B<-h>"
23161 msgstr ""
23162
23163 # type: textblock
23164 #: ../tools/virt-df.pl:119
23165 msgid "Print sizes in human-readable format."
23166 msgstr ""
23167
23168 # type: textblock
23169 #: ../tools/virt-df.pl:121
23170 msgid "You are not allowed to use I<-h> and I<--csv> at the same time."
23171 msgstr ""
23172
23173 # type: =item
23174 #: ../tools/virt-df.pl:127
23175 msgid "B<--inodes> | B<-i>"
23176 msgstr ""
23177
23178 # type: textblock
23179 #: ../tools/virt-df.pl:129
23180 msgid "Print inodes instead of blocks."
23181 msgstr ""
23182
23183 # type: =head1
23184 #: ../tools/virt-df.pl:458
23185 msgid "NOTE ABOUT CSV FORMAT"
23186 msgstr ""
23187
23188 # type: textblock
23189 #: ../tools/virt-df.pl:460
23190 msgid ""
23191 "Comma-separated values (CSV) is a deceptive format.  It I<seems> like it "
23192 "should be easy to parse, but it is definitely not easy to parse."
23193 msgstr ""
23194
23195 # type: textblock
23196 #: ../tools/virt-df.pl:463
23197 msgid ""
23198 "Myth: Just split fields at commas.  Reality: This does I<not> work "
23199 "reliably.  This example has two columns:"
23200 msgstr ""
23201
23202 # type: verbatim
23203 #: ../tools/virt-df.pl:466
23204 #, no-wrap
23205 msgid ""
23206 " \"foo,bar\",baz\n"
23207 "\n"
23208 msgstr ""
23209
23210 # type: textblock
23211 #: ../tools/virt-df.pl:468
23212 msgid ""
23213 "Myth: Read the file one line at a time.  Reality: This does I<not> work "
23214 "reliably.  This example has one row:"
23215 msgstr ""
23216
23217 # type: verbatim
23218 #: ../tools/virt-df.pl:471
23219 #, no-wrap
23220 msgid ""
23221 " \"foo\n"
23222 " bar\",baz\n"
23223 "\n"
23224 msgstr ""
23225
23226 # type: textblock
23227 #: ../tools/virt-df.pl:474
23228 msgid ""
23229 "For shell scripts, use C<csvtool> (L<http://merjis.com/developers/csv> also "
23230 "packaged in major Linux distributions)."
23231 msgstr ""
23232
23233 # type: textblock
23234 #: ../tools/virt-df.pl:477
23235 msgid ""
23236 "For other languages, use a CSV processing library (eg. C<Text::CSV> for Perl "
23237 "or Python's built-in csv library)."
23238 msgstr ""
23239
23240 # type: textblock
23241 #: ../tools/virt-df.pl:480
23242 msgid "Most spreadsheets and databases can import CSV directly."
23243 msgstr ""
23244
23245 # type: textblock
23246 #: ../tools/virt-df.pl:497 ../tools/virt-edit.pl:343 ../tools/virt-list-partitions.pl:246 ../tools/virt-rescue.pl:247
23247 msgid "Copyright (C) 2009-2010 Red Hat Inc."
23248 msgstr ""
23249
23250 # type: textblock
23251 #: ../tools/virt-edit.pl:35
23252 msgid "virt-edit - Edit a file in a virtual machine"
23253 msgstr ""
23254
23255 # type: verbatim
23256 #: ../tools/virt-edit.pl:39
23257 #, no-wrap
23258 msgid ""
23259 " virt-edit [--options] domname file\n"
23260 "\n"
23261 msgstr ""
23262
23263 # type: verbatim
23264 #: ../tools/virt-edit.pl:41
23265 #, no-wrap
23266 msgid ""
23267 " virt-edit [--options] disk.img [disk.img ...] file\n"
23268 "\n"
23269 msgstr ""
23270
23271 # type: verbatim
23272 #: ../tools/virt-edit.pl:43
23273 #, no-wrap
23274 msgid ""
23275 " virt-edit [domname|disk.img] file -e 'expr'\n"
23276 "\n"
23277 msgstr ""
23278
23279 # type: textblock
23280 #: ../tools/virt-edit.pl:47
23281 msgid ""
23282 "You must I<not> use C<virt-edit> on live virtual machines.  If you do this, "
23283 "you risk disk corruption in the VM.  C<virt-edit> tries to stop you from "
23284 "doing this, but doesn't catch all cases."
23285 msgstr ""
23286
23287 # type: textblock
23288 #: ../tools/virt-edit.pl:53
23289 msgid ""
23290 "C<virt-edit> is a command line tool to edit C<file> where C<file> exists in "
23291 "the named virtual machine (or disk image)."
23292 msgstr ""
23293
23294 # type: textblock
23295 #: ../tools/virt-edit.pl:56
23296 msgid ""
23297 "If you want to just view a file, use L<virt-cat(1)>.  For more complex cases "
23298 "you should look at the L<guestfish(1)> tool."
23299 msgstr ""
23300
23301 # type: textblock
23302 #: ../tools/virt-edit.pl:61
23303 msgid "Edit the named files interactively:"
23304 msgstr ""
23305
23306 # type: verbatim
23307 #: ../tools/virt-edit.pl:63
23308 #, no-wrap
23309 msgid ""
23310 " virt-edit mydomain /boot/grub/grub.conf\n"
23311 "\n"
23312 msgstr ""
23313
23314 # type: verbatim
23315 #: ../tools/virt-edit.pl:65
23316 #, no-wrap
23317 msgid ""
23318 " virt-edit mydomain /etc/passwd\n"
23319 "\n"
23320 msgstr ""
23321
23322 # type: textblock
23323 #: ../tools/virt-edit.pl:67
23324 msgid ""
23325 "You can also edit files non-interactively (see L</NON-INTERACTIVE EDITING> "
23326 "below).  To change the init default level to 5:"
23327 msgstr ""
23328
23329 # type: verbatim
23330 #: ../tools/virt-edit.pl:71
23331 #, no-wrap
23332 msgid ""
23333 " virt-edit mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
23334 "\n"
23335 msgstr ""
23336
23337 # type: =item
23338 #: ../tools/virt-edit.pl:97
23339 msgid "B<--backup extension> | B<-b extension>"
23340 msgstr ""
23341
23342 # type: textblock
23343 #: ../tools/virt-edit.pl:99
23344 msgid ""
23345 "Create a backup of the original file I<in the guest disk image>.  The backup "
23346 "has the original filename with C<extension> added."
23347 msgstr ""
23348
23349 # type: textblock
23350 #: ../tools/virt-edit.pl:102
23351 msgid ""
23352 "Usually the first character of C<extension> would be a dot C<.> so you would "
23353 "write:"
23354 msgstr ""
23355
23356 # type: verbatim
23357 #: ../tools/virt-edit.pl:105
23358 #, no-wrap
23359 msgid ""
23360 " virt-edit -b .orig [etc]\n"
23361 "\n"
23362 msgstr ""
23363
23364 # type: textblock
23365 #: ../tools/virt-edit.pl:107
23366 msgid "By default, no backup file is made."
23367 msgstr ""
23368
23369 # type: =item
23370 #: ../tools/virt-edit.pl:125
23371 msgid "B<--expr EXPR> | B<-e EXPR>"
23372 msgstr ""
23373
23374 # type: textblock
23375 #: ../tools/virt-edit.pl:127
23376 msgid ""
23377 "Instead of launching the external editor, non-interactively apply the Perl "
23378 "expression C<EXPR> to each line in the file.  See L</NON-INTERACTIVE "
23379 "EDITING> below."
23380 msgstr ""
23381
23382 # type: textblock
23383 #: ../tools/virt-edit.pl:131
23384 msgid ""
23385 "Be careful to properly quote the expression to prevent it from being altered "
23386 "by the shell."
23387 msgstr ""
23388
23389 # type: =head1
23390 #: ../tools/virt-edit.pl:250
23391 msgid "NON-INTERACTIVE EDITING"
23392 msgstr ""
23393
23394 # type: textblock
23395 #: ../tools/virt-edit.pl:252
23396 msgid ""
23397 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
23398 "administrator can interactively edit the file."
23399 msgstr ""
23400
23401 # type: textblock
23402 #: ../tools/virt-edit.pl:255
23403 msgid ""
23404 "There are two ways also to use C<virt-edit> from scripts in order to make "
23405 "automated edits to files.  (Note that although you I<can> use C<virt-edit> "
23406 "like this, it's less error-prone to write scripts directly using the "
23407 "libguestfs API and Augeas for configuration file editing.)"
23408 msgstr ""
23409
23410 # type: textblock
23411 #: ../tools/virt-edit.pl:261
23412 msgid ""
23413 "The first method is to temporarily set C<$EDITOR> to any script or program "
23414 "you want to run.  The script is invoked as C<$EDITOR tmpfile> and it should "
23415 "update C<tmpfile> in place however it likes."
23416 msgstr ""
23417
23418 # type: textblock
23419 #: ../tools/virt-edit.pl:265
23420 msgid ""
23421 "The second method is to use the C<-e> parameter of C<virt-edit> to run a "
23422 "short Perl snippet in the style of L<sed(1)>.  For example to replace all "
23423 "instances of C<foo> with C<bar> in a file:"
23424 msgstr ""
23425
23426 # type: verbatim
23427 #: ../tools/virt-edit.pl:269
23428 #, no-wrap
23429 msgid ""
23430 " virt-edit domname filename -e 's/foo/bar/'\n"
23431 "\n"
23432 msgstr ""
23433
23434 # type: textblock
23435 #: ../tools/virt-edit.pl:271
23436 msgid ""
23437 "The full power of Perl regular expressions can be used (see L<perlre(1)>).  "
23438 "For example to delete root's password you could do:"
23439 msgstr ""
23440
23441 # type: verbatim
23442 #: ../tools/virt-edit.pl:274
23443 #, no-wrap
23444 msgid ""
23445 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
23446 "\n"
23447 msgstr ""
23448
23449 # type: textblock
23450 #: ../tools/virt-edit.pl:276
23451 msgid ""
23452 "What really happens is that the snippet is evaluated as a Perl expression "
23453 "for each line of the file.  The line, including the final C<\\n>, is passed "
23454 "in C<$_> and the expression should update C<$_> or leave it unchanged."
23455 msgstr ""
23456
23457 # type: textblock
23458 #: ../tools/virt-edit.pl:281
23459 msgid ""
23460 "To delete a line, set C<$_> to the empty string.  For example, to delete the "
23461 "C<apache> user account from the password file you can do:"
23462 msgstr ""
23463
23464 # type: verbatim
23465 #: ../tools/virt-edit.pl:284
23466 #, no-wrap
23467 msgid ""
23468 " virt-edit mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
23469 "\n"
23470 msgstr ""
23471
23472 # type: textblock
23473 #: ../tools/virt-edit.pl:286
23474 msgid ""
23475 "To insert a line, prepend or append it to C<$_>.  However appending lines to "
23476 "the end of the file is rather difficult this way since there is no concept "
23477 "of \"last line of the file\" - your expression just doesn't get called "
23478 "again.  You might want to use the first method (setting C<$EDITOR>) if you "
23479 "want to do this."
23480 msgstr ""
23481
23482 # type: textblock
23483 #: ../tools/virt-edit.pl:292
23484 msgid ""
23485 "The variable C<$lineno> contains the current line number.  As is "
23486 "traditional, the first line in the file is number C<1>."
23487 msgstr ""
23488
23489 # type: textblock
23490 #: ../tools/virt-edit.pl:295
23491 msgid ""
23492 "The return value from the expression is ignored, but the expression may call "
23493 "C<die> in order to abort the whole program, leaving the original file "
23494 "untouched."
23495 msgstr ""
23496
23497 # type: textblock
23498 #: ../tools/virt-edit.pl:299
23499 msgid ""
23500 "Remember when matching the end of a line that C<$_> may contain the final "
23501 "C<\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
23502 "newline then neither of these.  Thus to match or substitute some text at the "
23503 "end of a line, use this regular expression:"
23504 msgstr ""
23505
23506 # type: verbatim
23507 #: ../tools/virt-edit.pl:304
23508 #, no-wrap
23509 msgid ""
23510 " /some text(\\r?\\n)?$/\n"
23511 "\n"
23512 msgstr ""
23513
23514 # type: textblock
23515 #: ../tools/virt-edit.pl:306
23516 msgid ""
23517 "Alternately, use the perl C<chomp> function, being careful not to chomp "
23518 "C<$_> itself (since that would remove all newlines from the file):"
23519 msgstr ""
23520
23521 # type: verbatim
23522 #: ../tools/virt-edit.pl:310
23523 #, no-wrap
23524 msgid ""
23525 " my $m = $_; chomp $m; $m =~ /some text$/\n"
23526 "\n"
23527 msgstr ""
23528
23529 # type: =item
23530 #: ../tools/virt-edit.pl:316
23531 msgid "C<EDITOR>"
23532 msgstr ""
23533
23534 # type: textblock
23535 #: ../tools/virt-edit.pl:318
23536 msgid ""
23537 "If set, this string is used as the editor.  It may contain arguments, "
23538 "eg. C<\"emacs -nw\">"
23539 msgstr ""
23540
23541 # type: textblock
23542 #: ../tools/virt-edit.pl:321
23543 msgid "If not set, C<vi> is used."
23544 msgstr ""
23545
23546 # type: textblock
23547 #: ../tools/virt-edit.pl:327
23548 msgid ""
23549 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, "
23550 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>, "
23551 "L<perl(1)>, L<perlre(1)>."
23552 msgstr ""
23553
23554 # type: textblock
23555 #: ../tools/virt-list-filesystems.pl:32
23556 msgid "virt-list-filesystems - List filesystems in a virtual machine or disk image"
23557 msgstr ""
23558
23559 # type: verbatim
23560 #: ../tools/virt-list-filesystems.pl:36
23561 #, no-wrap
23562 msgid ""
23563 " virt-list-filesystems [--options] domname\n"
23564 "\n"
23565 msgstr ""
23566
23567 # type: verbatim
23568 #: ../tools/virt-list-filesystems.pl:38
23569 #, no-wrap
23570 msgid ""
23571 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
23572 "\n"
23573 msgstr ""
23574
23575 # type: textblock
23576 #: ../tools/virt-list-filesystems.pl:42
23577 msgid ""
23578 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
23579 "are contained in a virtual machine or disk image."
23580 msgstr ""
23581
23582 # type: textblock
23583 #: ../tools/virt-list-filesystems.pl:46
23584 msgid ""
23585 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
23586 "functionality.  For more complex cases you should look at the "
23587 "L<guestfish(1)> tool."
23588 msgstr ""
23589
23590 # type: =item
23591 #: ../tools/virt-list-filesystems.pl:86 ../tools/virt-list-partitions.pl:95 ../tools/virt-ls.pl:115
23592 msgid "B<-l> | B<--long>"
23593 msgstr ""
23594
23595 # type: textblock
23596 #: ../tools/virt-list-filesystems.pl:88
23597 msgid ""
23598 "With this option, C<virt-list-filesystems> displays the type of each "
23599 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
23600 msgstr ""
23601
23602 # type: =item
23603 #: ../tools/virt-list-filesystems.pl:95
23604 msgid "B<-a> | B<--all>"
23605 msgstr ""
23606
23607 # type: textblock
23608 #: ../tools/virt-list-filesystems.pl:97
23609 msgid ""
23610 "Normally we only show mountable filesystems.  If this option is given then "
23611 "swap devices are shown too."
23612 msgstr ""
23613
23614 # type: textblock
23615 #: ../tools/virt-list-filesystems.pl:193
23616 msgid ""
23617 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, "
23618 "L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
23619 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
23620 msgstr ""
23621
23622 # type: textblock
23623 #: ../tools/virt-list-partitions.pl:32
23624 msgid "virt-list-partitions - List partitions in a virtual machine or disk image"
23625 msgstr ""
23626
23627 # type: verbatim
23628 #: ../tools/virt-list-partitions.pl:36
23629 #, no-wrap
23630 msgid ""
23631 " virt-list-partitions [--options] domname\n"
23632 "\n"
23633 msgstr ""
23634
23635 # type: verbatim
23636 #: ../tools/virt-list-partitions.pl:38
23637 #, no-wrap
23638 msgid ""
23639 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
23640 "\n"
23641 msgstr ""
23642
23643 # type: textblock
23644 #: ../tools/virt-list-partitions.pl:42
23645 msgid ""
23646 "C<virt-list-partitions> is a command line tool to list the partitions that "
23647 "are contained in a virtual machine or disk image.  It is mainly useful as a "
23648 "first step to using L<virt-resize(1)>."
23649 msgstr ""
23650
23651 # type: textblock
23652 #: ../tools/virt-list-partitions.pl:47
23653 msgid ""
23654 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
23655 "functionality.  For more complex cases you should look at the "
23656 "L<guestfish(1)> tool."
23657 msgstr ""
23658
23659 # type: =item
23660 #: ../tools/virt-list-partitions.pl:87
23661 msgid "B<-h> | B<--human-readable>"
23662 msgstr ""
23663
23664 # type: textblock
23665 #: ../tools/virt-list-partitions.pl:89
23666 msgid "Show sizes in human-readable form (eg. \"1G\")."
23667 msgstr ""
23668
23669 # type: textblock
23670 #: ../tools/virt-list-partitions.pl:97
23671 msgid ""
23672 "With this option, C<virt-list-partitions> displays the type and size of each "
23673 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
23674 msgstr ""
23675
23676 # type: =item
23677 #: ../tools/virt-list-partitions.pl:104
23678 msgid "B<-t> | B<--total>"
23679 msgstr ""
23680
23681 # type: textblock
23682 #: ../tools/virt-list-partitions.pl:106
23683 msgid "Display the total size of each block device (as a separate row or rows)."
23684 msgstr ""
23685
23686 # type: textblock
23687 #: ../tools/virt-list-partitions.pl:231
23688 msgid ""
23689 "L<guestfs(3)>, L<guestfish(1)>, L<virt-list-filesystems(1)>, "
23690 "L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
23691 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
23692 msgstr ""
23693
23694 # type: textblock
23695 #: ../tools/virt-ls.pl:35
23696 msgid "virt-ls - List files in a virtual machine"
23697 msgstr ""
23698
23699 # type: verbatim
23700 #: ../tools/virt-ls.pl:39
23701 #, no-wrap
23702 msgid ""
23703 " virt-ls [--options] domname directory\n"
23704 "\n"
23705 msgstr ""
23706
23707 # type: verbatim
23708 #: ../tools/virt-ls.pl:41
23709 #, no-wrap
23710 msgid ""
23711 " virt-ls [--options] disk.img [disk.img ...] directory\n"
23712 "\n"
23713 msgstr ""
23714
23715 # type: textblock
23716 #: ../tools/virt-ls.pl:45
23717 msgid ""
23718 "C<virt-ls> is a command line tool to list the names of files in a directory "
23719 "inside a virtual machine or disk image."
23720 msgstr ""
23721
23722 # type: textblock
23723 #: ../tools/virt-ls.pl:48
23724 msgid ""
23725 "C<virt-ls> is just a simple wrapper around L<libguestfs(3)> functionality.  "
23726 "For more complex cases you should look at the L<guestfish(1)> tool."
23727 msgstr ""
23728
23729 # type: textblock
23730 #: ../tools/virt-ls.pl:52
23731 msgid ""
23732 "C<virt-ls> can be used in one of three modes: simple, long and recursive.  A "
23733 "simple listing is like the ordinary L<ls(1)> command:"
23734 msgstr ""
23735
23736 # type: verbatim
23737 #: ../tools/virt-ls.pl:55
23738 #, no-wrap
23739 msgid ""
23740 " $ virt-ls myguest /\n"
23741 " bin\n"
23742 " boot\n"
23743 " [etc.]\n"
23744 "\n"
23745 msgstr ""
23746
23747 # type: textblock
23748 #: ../tools/virt-ls.pl:60
23749 msgid "With the C<-l> (C<--long>) option, C<virt-ls> shows more detail:"
23750 msgstr ""
23751
23752 # type: verbatim
23753 #: ../tools/virt-ls.pl:62
23754 #, no-wrap
23755 msgid ""
23756 " $ virt-ls -l myguest /\n"
23757 " total 204\n"
23758 " dr-xr-xr-x.   2 root root   4096 2009-08-25 19:06 bin\n"
23759 " dr-xr-xr-x.   5 root root   3072 2009-08-25 19:06 boot\n"
23760 " [etc.]\n"
23761 "\n"
23762 msgstr ""
23763
23764 # type: textblock
23765 #: ../tools/virt-ls.pl:68
23766 msgid ""
23767 "With the C<-R> (C<--recursive>) option, C<virt-ls> lists the names of files "
23768 "and directories recursively:"
23769 msgstr ""
23770
23771 # type: verbatim
23772 #: ../tools/virt-ls.pl:71
23773 #, no-wrap
23774 msgid ""
23775 " $ virt-ls -R myguest /tmp\n"
23776 " foo\n"
23777 " foo/bar\n"
23778 " [etc.]\n"
23779 "\n"
23780 msgstr ""
23781
23782 # type: textblock
23783 #: ../tools/virt-ls.pl:76
23784 msgid ""
23785 "You I<cannot> combine these options.  To do more complicated things, use "
23786 "L<guestfish(1)>."
23787 msgstr ""
23788
23789 # type: =item
23790 #: ../tools/virt-ls.pl:117
23791 msgid "B<-R> | B<--recursive>"
23792 msgstr ""
23793
23794 # type: textblock
23795 #: ../tools/virt-ls.pl:119
23796 msgid ""
23797 "Select the mode.  With neither of these options, C<virt-ls> produces a "
23798 "simple, flat list of the files in the named directory."
23799 msgstr ""
23800
23801 # type: textblock
23802 #: ../tools/virt-ls.pl:122
23803 msgid ""
23804 "C<virt-ls -l> produces a \"long listing\", which shows more detail (just "
23805 "like the plain C<ls -l> command)."
23806 msgstr ""
23807
23808 # type: textblock
23809 #: ../tools/virt-ls.pl:125
23810 msgid ""
23811 "C<virt-ls -R> produces a recursive list of files starting at the named "
23812 "directory.  See the documentation for the C<guestfs_find> command "
23813 "L<guestfs(3)> for precise details."
23814 msgstr ""
23815
23816 # type: textblock
23817 #: ../tools/virt-ls.pl:129
23818 msgid "You cannot combine these options."
23819 msgstr ""
23820
23821 # type: textblock
23822 #: ../tools/virt-ls.pl:212
23823 msgid ""
23824 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, "
23825 "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
23826 "L<http://libguestfs.org/>."
23827 msgstr ""
23828
23829 # type: textblock
23830 #: ../tools/virt-make-fs.pl:37
23831 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
23832 msgstr ""
23833
23834 # type: verbatim
23835 #: ../tools/virt-make-fs.pl:41
23836 #, no-wrap
23837 msgid ""
23838 " virt-make-fs [--options] input.tar output.img\n"
23839 "\n"
23840 msgstr ""
23841
23842 # type: verbatim
23843 #: ../tools/virt-make-fs.pl:43
23844 #, no-wrap
23845 msgid ""
23846 " virt-make-fs [--options] input.tar.gz output.img\n"
23847 "\n"
23848 msgstr ""
23849
23850 # type: verbatim
23851 #: ../tools/virt-make-fs.pl:45
23852 #, no-wrap
23853 msgid ""
23854 " virt-make-fs [--options] directory output.img\n"
23855 "\n"
23856 msgstr ""
23857
23858 # type: textblock
23859 #: ../tools/virt-make-fs.pl:49
23860 msgid ""
23861 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
23862 "archive or some files in a directory.  It is similar to tools like "
23863 "L<mkisofs(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, "
23864 "it can create common filesystem types like ext2/3 or NTFS, which can be "
23865 "useful if you want to attach these filesystems to existing virtual machines "
23866 "(eg. to import large amounts of read-only data to a VM)."
23867 msgstr ""
23868
23869 # type: textblock
23870 #: ../tools/virt-make-fs.pl:57
23871 msgid "Basic usage is:"
23872 msgstr ""
23873
23874 # type: verbatim
23875 #: ../tools/virt-make-fs.pl:59
23876 #, no-wrap
23877 msgid ""
23878 " virt-make-fs input output\n"
23879 "\n"
23880 msgstr ""
23881
23882 # type: textblock
23883 #: ../tools/virt-make-fs.pl:61
23884 msgid ""
23885 "where C<input> is either a directory containing files that you want to add, "
23886 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
23887 "C<output> is a disk image.  The input type is detected automatically.  The "
23888 "output disk image defaults to a raw ext2 image unless you specify extra "
23889 "flags (see L</OPTIONS> below)."
23890 msgstr ""
23891
23892 # type: =head2
23893 #: ../tools/virt-make-fs.pl:67
23894 msgid "EXTRA SPACE"
23895 msgstr ""
23896
23897 # type: textblock
23898 #: ../tools/virt-make-fs.pl:69
23899 msgid ""
23900 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
23901 "the files that it contains, but might have extra space.  Depending on how "
23902 "you are going to use the output, you might think this extra space is wasted "
23903 "and want to minimize it, or you might want to leave space so that more files "
23904 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
23905 "but you can use the C<--size> flag to leave space in the filesystem if you "
23906 "want it."
23907 msgstr ""
23908
23909 # type: textblock
23910 #: ../tools/virt-make-fs.pl:77
23911 msgid ""
23912 "An alternative way to leave extra space but not make the output image any "
23913 "bigger is to use an alternative disk image format (instead of the default "
23914 "\"raw\" format).  Using C<--format=qcow2> will use the native QEmu/KVM qcow2 "
23915 "image format (check your hypervisor supports this before using it).  This "
23916 "allows you to choose a large C<--size> but the extra space won't actually be "
23917 "allocated in the image until you try to store something in it."
23918 msgstr ""
23919
23920 # type: textblock
23921 #: ../tools/virt-make-fs.pl:85
23922 msgid ""
23923 "Don't forget that you can also use local commands including L<resize2fs(8)> "
23924 "and L<virt-resize(1)> to resize existing filesystems, or rerun "
23925 "virt-make-resize to build another image from scratch."
23926 msgstr ""
23927
23928 # type: =head3
23929 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123 ../tools/virt-make-fs.pl:142
23930 msgid "EXAMPLE"
23931 msgstr ""
23932
23933 # type: verbatim
23934 #: ../tools/virt-make-fs.pl:91
23935 #, no-wrap
23936 msgid ""
23937 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
23938 "\n"
23939 msgstr ""
23940
23941 # type: =head2
23942 #: ../tools/virt-make-fs.pl:93
23943 msgid "FILESYSTEM TYPE"
23944 msgstr ""
23945
23946 # type: textblock
23947 #: ../tools/virt-make-fs.pl:95
23948 msgid ""
23949 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
23950 "libguestfs supports can be used (but I<not> read-only formats like "
23951 "ISO9660).  Here are some of the more common choices:"
23952 msgstr ""
23953
23954 # type: =item
23955 #: ../tools/virt-make-fs.pl:101
23956 msgid "I<ext3>"
23957 msgstr ""
23958
23959 # type: textblock
23960 #: ../tools/virt-make-fs.pl:103
23961 msgid ""
23962 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
23963 "you are not going to use the filesystem in a way that requires the journal, "
23964 "then this is just wasted overhead."
23965 msgstr ""
23966
23967 # type: =item
23968 #: ../tools/virt-make-fs.pl:107
23969 msgid "I<ntfs> or I<vfat>"
23970 msgstr ""
23971
23972 # type: textblock
23973 #: ../tools/virt-make-fs.pl:109
23974 msgid "Useful if exporting data to a Windows guest."
23975 msgstr ""
23976
23977 # type: textblock
23978 #: ../tools/virt-make-fs.pl:111
23979 msgid ""
23980 "I<Note for vfat>: The tar archive or local directory must only contain files "
23981 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
23982 "program running within libguestfs is unable to change the ownership of "
23983 "non-root files, since vfat itself does not support this."
23984 msgstr ""
23985
23986 # type: =item
23987 #: ../tools/virt-make-fs.pl:116
23988 msgid "I<minix>"
23989 msgstr ""
23990
23991 # type: textblock
23992 #: ../tools/virt-make-fs.pl:118
23993 msgid ""
23994 "Lower overhead than C<ext2>, but certain limitations on filename length and "
23995 "total filesystem size."
23996 msgstr ""
23997
23998 # type: verbatim
23999 #: ../tools/virt-make-fs.pl:125
24000 #, no-wrap
24001 msgid ""
24002 " virt-make-fs --type=minix input minixfs.img\n"
24003 "\n"
24004 msgstr ""
24005
24006 # type: =head2
24007 #: ../tools/virt-make-fs.pl:127
24008 msgid "TO PARTITION OR NOT TO PARTITION"
24009 msgstr ""
24010
24011 # type: textblock
24012 #: ../tools/virt-make-fs.pl:129
24013 msgid "Optionally virt-make-fs can add a partition table to the output disk."
24014 msgstr ""
24015
24016 # type: textblock
24017 #: ../tools/virt-make-fs.pl:131
24018 msgid ""
24019 "Adding a partition can make the disk image more compatible with certain "
24020 "virtualized operating systems which don't expect to see a filesystem "
24021 "directly located on a block device (Linux doesn't care and will happily "
24022 "handle both types)."
24023 msgstr ""
24024
24025 # type: textblock
24026 #: ../tools/virt-make-fs.pl:136
24027 msgid ""
24028 "On the other hand, if you have a partition table then the output image is no "
24029 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
24030 "directly on a partitioned disk image.  (However libguestfs tools such as "
24031 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
24032 msgstr ""
24033
24034 # type: textblock
24035 #: ../tools/virt-make-fs.pl:144
24036 msgid "Add an MBR partition:"
24037 msgstr ""
24038
24039 # type: verbatim
24040 #: ../tools/virt-make-fs.pl:146
24041 #, no-wrap
24042 msgid ""
24043 " virt-make-fs --partition -- input disk.img\n"
24044 "\n"
24045 msgstr ""
24046
24047 # type: textblock
24048 #: ../tools/virt-make-fs.pl:148
24049 msgid ""
24050 "If the output disk image could be terabyte-sized or larger, it's better to "
24051 "use an EFI/GPT-compatible partition table:"
24052 msgstr ""
24053
24054 # type: verbatim
24055 #: ../tools/virt-make-fs.pl:151
24056 #, no-wrap
24057 msgid ""
24058 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
24059 "\n"
24060 msgstr ""
24061
24062 # type: =item
24063 #: ../tools/virt-make-fs.pl:177 ../tools/virt-win-reg.pl:196
24064 msgid "B<--debug>"
24065 msgstr ""
24066
24067 # type: textblock
24068 #: ../tools/virt-make-fs.pl:179
24069 msgid "Enable debugging information."
24070 msgstr ""
24071
24072 # type: =item
24073 #: ../tools/virt-make-fs.pl:185
24074 msgid "B<--size=E<lt>NE<gt>>"
24075 msgstr ""
24076
24077 # type: =item
24078 #: ../tools/virt-make-fs.pl:187
24079 msgid "B<--size=+E<lt>NE<gt>>"
24080 msgstr ""
24081
24082 # type: =item
24083 #: ../tools/virt-make-fs.pl:189
24084 msgid "B<-s E<lt>NE<gt>>"
24085 msgstr ""
24086
24087 # type: =item
24088 #: ../tools/virt-make-fs.pl:191
24089 msgid "B<-s +E<lt>NE<gt>>"
24090 msgstr ""
24091
24092 # type: textblock
24093 #: ../tools/virt-make-fs.pl:193
24094 msgid "Use the C<--size> (or C<-s>) option to choose the size of the output image."
24095 msgstr ""
24096
24097 # type: textblock
24098 #: ../tools/virt-make-fs.pl:196
24099 msgid ""
24100 "If this option is I<not> given, then the output image will be just large "
24101 "enough to contain all the files, with not much wasted space."
24102 msgstr ""
24103
24104 # type: textblock
24105 #: ../tools/virt-make-fs.pl:199
24106 msgid ""
24107 "To choose a fixed size output disk, specify an absolute number followed by "
24108 "b/K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
24109 "Petabytes or Exabytes.  This must be large enough to contain all the input "
24110 "files, else you will get an error."
24111 msgstr ""
24112
24113 # type: textblock
24114 #: ../tools/virt-make-fs.pl:204
24115 msgid ""
24116 "To leave extra space, specify C<+> (plus sign) and a number followed by "
24117 "b/K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
24118 "Petabytes or Exabytes.  For example: C<--size=+200M> means enough space for "
24119 "the input files, and (approximately) an extra 200 MB free space."
24120 msgstr ""
24121
24122 # type: textblock
24123 #: ../tools/virt-make-fs.pl:210
24124 msgid ""
24125 "Note that virt-make-fs estimates free space, and therefore will not produce "
24126 "filesystems containing precisely the free space requested.  (It is much more "
24127 "expensive and time-consuming to produce a filesystem which has precisely the "
24128 "desired free space)."
24129 msgstr ""
24130
24131 # type: =item
24132 #: ../tools/virt-make-fs.pl:219
24133 msgid "B<--format=E<lt>fmtE<gt>>"
24134 msgstr ""
24135
24136 # type: =item
24137 #: ../tools/virt-make-fs.pl:221
24138 msgid "B<-F E<lt>fmtE<gt>>"
24139 msgstr ""
24140
24141 # type: textblock
24142 #: ../tools/virt-make-fs.pl:223
24143 msgid "Choose the output disk image format."
24144 msgstr ""
24145
24146 # type: textblock
24147 #: ../tools/virt-make-fs.pl:225
24148 msgid "The default is C<raw> (raw disk image)."
24149 msgstr ""
24150
24151 # type: textblock
24152 #: ../tools/virt-make-fs.pl:227
24153 msgid ""
24154 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
24155 "that would really make sense here is C<qcow2>."
24156 msgstr ""
24157
24158 # type: =item
24159 #: ../tools/virt-make-fs.pl:234
24160 msgid "B<--type=E<lt>fsE<gt>>"
24161 msgstr ""
24162
24163 # type: =item
24164 #: ../tools/virt-make-fs.pl:236
24165 msgid "B<-t E<lt>fsE<gt>>"
24166 msgstr ""
24167
24168 # type: textblock
24169 #: ../tools/virt-make-fs.pl:238
24170 msgid "Choose the output filesystem type."
24171 msgstr ""
24172
24173 # type: textblock
24174 #: ../tools/virt-make-fs.pl:240
24175 msgid "The default is C<ext2>."
24176 msgstr ""
24177
24178 # type: textblock
24179 #: ../tools/virt-make-fs.pl:242
24180 msgid "Any filesystem which is supported read-write by libguestfs can be used here."
24181 msgstr ""
24182
24183 # type: =item
24184 #: ../tools/virt-make-fs.pl:249
24185 msgid "B<--partition>"
24186 msgstr ""
24187
24188 # type: =item
24189 #: ../tools/virt-make-fs.pl:251
24190 msgid "B<--partition=E<lt>parttypeE<gt>>"
24191 msgstr ""
24192
24193 # type: textblock
24194 #: ../tools/virt-make-fs.pl:253
24195 msgid ""
24196 "If specified, this flag adds an MBR partition table to the output disk "
24197 "image."
24198 msgstr ""
24199
24200 # type: textblock
24201 #: ../tools/virt-make-fs.pl:256
24202 msgid ""
24203 "You can change the partition table type, eg. C<--partition=gpt> for large "
24204 "disks."
24205 msgstr ""
24206
24207 # type: textblock
24208 #: ../tools/virt-make-fs.pl:259
24209 msgid ""
24210 "Note that if you just use a lonesome C<--partition>, the Perl option parser "
24211 "might consider the next parameter to be the partition type.  For example:"
24212 msgstr ""
24213
24214 # type: verbatim
24215 #: ../tools/virt-make-fs.pl:263
24216 #, no-wrap
24217 msgid ""
24218 " virt-make-fs --partition input.tar ...\n"
24219 "\n"
24220 msgstr ""
24221
24222 # type: textblock
24223 #: ../tools/virt-make-fs.pl:265
24224 msgid ""
24225 "would cause virt-make-fs to think you wanted to use a partition type of "
24226 "C<input.tar> which is completely wrong.  To avoid this, use C<--> (a double "
24227 "dash) between options and the input file argument:"
24228 msgstr ""
24229
24230 # type: verbatim
24231 #: ../tools/virt-make-fs.pl:269
24232 #, no-wrap
24233 msgid ""
24234 " virt-make-fs --partition -- input.tar ...\n"
24235 "\n"
24236 msgstr ""
24237
24238 # type: textblock
24239 #: ../tools/virt-make-fs.pl:529
24240 msgid ""
24241 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar(1)>, L<mkisofs(1)>, "
24242 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, "
24243 "L<guestfs(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
24244 msgstr ""
24245
24246 # type: textblock
24247 #: ../tools/virt-make-fs.pl:543 ../tools/virt-win-reg.pl:478
24248 msgid ""
24249 "When reporting bugs, please enable debugging and capture the I<complete> "
24250 "output:"
24251 msgstr ""
24252
24253 # type: verbatim
24254 #: ../tools/virt-make-fs.pl:546
24255 #, no-wrap
24256 msgid ""
24257 " export LIBGUESTFS_DEBUG=1\n"
24258 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
24259 "\n"
24260 msgstr ""
24261
24262 # type: textblock
24263 #: ../tools/virt-make-fs.pl:549
24264 msgid ""
24265 "Attach /tmp/virt-make-fs.log to a new bug report at "
24266 "L<https://bugzilla.redhat.com/>"
24267 msgstr ""
24268
24269 # type: textblock
24270 #: ../tools/virt-make-fs.pl:558 ../tools/virt-resize.pl:1413 ../tools/virt-win-reg.pl:493
24271 msgid "Copyright (C) 2010 Red Hat Inc."
24272 msgstr ""
24273
24274 # type: textblock
24275 #: ../tools/virt-rescue.pl:33
24276 msgid "virt-rescue - Run a rescue shell on a virtual machine"
24277 msgstr ""
24278
24279 # type: verbatim
24280 #: ../tools/virt-rescue.pl:37
24281 #, no-wrap
24282 msgid ""
24283 " virt-rescue [--options] domname\n"
24284 "\n"
24285 msgstr ""
24286
24287 # type: verbatim
24288 #: ../tools/virt-rescue.pl:39
24289 #, no-wrap
24290 msgid ""
24291 " virt-rescue [--options] disk.img [disk.img ...]\n"
24292 "\n"
24293 msgstr ""
24294
24295 # type: textblock
24296 #: ../tools/virt-rescue.pl:43
24297 msgid ""
24298 "You must I<not> use C<virt-rescue> on live virtual machines.  Doing so will "
24299 "probably result in disk corruption in the VM.  C<virt-rescue> tries to stop "
24300 "you from doing this, but doesn't catch all cases."
24301 msgstr ""
24302
24303 # type: textblock
24304 #: ../tools/virt-rescue.pl:47
24305 msgid ""
24306 "However if you use the I<--ro> (read only) option, then you can attach a "
24307 "shell to a live virtual machine.  The results might be strange or "
24308 "inconsistent at times but you won't get disk corruption."
24309 msgstr ""
24310
24311 # type: textblock
24312 #: ../tools/virt-rescue.pl:53
24313 msgid ""
24314 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
24315 "need for a CD.  virt-rescue gives you a rescue shell and some simple "
24316 "recovery tools which you can use to examine or rescue a virtual machine or "
24317 "disk image."
24318 msgstr ""
24319
24320 # type: textblock
24321 #: ../tools/virt-rescue.pl:58
24322 msgid ""
24323 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
24324 "on disk image(s):"
24325 msgstr ""
24326
24327 # type: verbatim
24328 #: ../tools/virt-rescue.pl:61
24329 #, no-wrap
24330 msgid ""
24331 " virt-rescue GuestName\n"
24332 "\n"
24333 msgstr ""
24334
24335 # type: verbatim
24336 #: ../tools/virt-rescue.pl:63
24337 #, no-wrap
24338 msgid ""
24339 " virt-rescue --ro /path/to/disk.img\n"
24340 "\n"
24341 msgstr ""
24342
24343 # type: verbatim
24344 #: ../tools/virt-rescue.pl:65
24345 #, no-wrap
24346 msgid ""
24347 " virt-rescue /dev/sdc\n"
24348 "\n"
24349 msgstr ""
24350
24351 # type: textblock
24352 #: ../tools/virt-rescue.pl:67
24353 msgid "For live VMs you I<must> use the --ro option."
24354 msgstr ""
24355
24356 # type: textblock
24357 #: ../tools/virt-rescue.pl:69
24358 msgid ""
24359 "When you run virt-rescue on a virtual machine or disk image, you are placed "
24360 "in an interactive bash shell where you can use many ordinary Linux "
24361 "commands.  What you see in C</> (C</bin>, C</lib> etc) is the rescue "
24362 "appliance.  You must mount the virtual machine's filesystems by hand.  There "
24363 "is an empty directory called C</sysroot> where you can mount filesystems."
24364 msgstr ""
24365
24366 # type: textblock
24367 #: ../tools/virt-rescue.pl:76
24368 msgid ""
24369 "In the example below, we list logical volumes, then choose one to mount "
24370 "under C</sysroot>:"
24371 msgstr ""
24372
24373 # type: verbatim
24374 #: ../tools/virt-rescue.pl:79
24375 #, no-wrap
24376 msgid ""
24377 " ><rescue> lvs\n"
24378 " LV      VG        Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n"
24379 " lv_root vg_f11x64 -wi-a-   8.83G\n"
24380 " lv_swap vg_f11x64 -wi-a- 992.00M\n"
24381 " ><rescue> mount /dev/vg_f11x64/lv_root /sysroot\n"
24382 " ><rescue> ls /sysroot\n"
24383 "\n"
24384 msgstr ""
24385
24386 # type: textblock
24387 #: ../tools/virt-rescue.pl:86
24388 msgid ""
24389 "If you don't know what filesystems are available on the virtual machine then "
24390 "you can use commands such as L<parted(8)> and L<lvs(8)> to find out."
24391 msgstr ""
24392
24393 # type: =head1
24394 #: ../tools/virt-rescue.pl:90 ../tools/virt-resize.pl:1350
24395 msgid "NOTES"
24396 msgstr ""
24397
24398 # type: textblock
24399 #: ../tools/virt-rescue.pl:92
24400 msgid ""
24401 "Virt-rescue can be used on I<any> disk image file or device, not just a "
24402 "virtual machine.  For example you can use it on a blank file if you want to "
24403 "partition that file (although we would recommend using L<guestfish(1)> "
24404 "instead as it is more suitable for this purpose).  You can even use "
24405 "virt-rescue on things like SD cards."
24406 msgstr ""
24407
24408 # type: textblock
24409 #: ../tools/virt-rescue.pl:98
24410 msgid ""
24411 "This tool is just designed for quick interactive hacking on a virtual "
24412 "machine.  For more structured access to a virtual machine disk image, you "
24413 "should use L<guestfs(3)>.  To get a structured shell that you can use to "
24414 "make scripted changes to guests, use L<guestfish(1)>."
24415 msgstr ""
24416
24417 # type: =item
24418 #: ../tools/virt-rescue.pl:127
24419 msgid "B<--append kernelopts>"
24420 msgstr ""
24421
24422 # type: textblock
24423 #: ../tools/virt-rescue.pl:129
24424 msgid "Pass additional options to the rescue kernel."
24425 msgstr ""
24426
24427 # type: =item
24428 #: ../tools/virt-rescue.pl:147
24429 msgid "B<--memsize MB> | B<-m MB>"
24430 msgstr ""
24431
24432 # type: textblock
24433 #: ../tools/virt-rescue.pl:149
24434 msgid ""
24435 "Change the amount of memory allocated to the rescue system.  The default is "
24436 "set by libguestfs and is small but adequate for running system tools.  The "
24437 "occasional program might need more memory.  The parameter is specified in "
24438 "megabytes."
24439 msgstr ""
24440
24441 # type: =item
24442 #: ../tools/virt-rescue.pl:158
24443 msgid "B<--ro> | B<-r>"
24444 msgstr ""
24445
24446 # type: textblock
24447 #: ../tools/virt-rescue.pl:160
24448 msgid "Open the image read-only."
24449 msgstr ""
24450
24451 # type: textblock
24452 #: ../tools/virt-rescue.pl:172
24453 msgid ""
24454 "Enable SELinux in the rescue appliance.  You should read "
24455 "L<guestfs(3)/SELINUX> before using this option."
24456 msgstr ""
24457
24458 # type: textblock
24459 #: ../tools/virt-rescue.pl:228
24460 msgid ""
24461 "Several environment variables affect virt-rescue.  See "
24462 "L<guestfs(3)/ENVIRONMENT VARIABLES> for the complete list."
24463 msgstr ""
24464
24465 # type: textblock
24466 #: ../tools/virt-rescue.pl:233
24467 msgid ""
24468 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, "
24469 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
24470 msgstr ""
24471
24472 # type: textblock
24473 #: ../tools/virt-resize.pl:42
24474 msgid "virt-resize - Resize a virtual machine disk"
24475 msgstr ""
24476
24477 # type: verbatim
24478 #: ../tools/virt-resize.pl:46
24479 #, no-wrap
24480 msgid ""
24481 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
24482 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
24483 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
24484 "\n"
24485 msgstr ""
24486
24487 # type: textblock
24488 #: ../tools/virt-resize.pl:52
24489 msgid ""
24490 "Virt-resize is a tool which can resize a virtual machine disk, making it "
24491 "larger or smaller overall, and resizing or deleting any partitions contained "
24492 "within."
24493 msgstr ""
24494
24495 # type: textblock
24496 #: ../tools/virt-resize.pl:56
24497 msgid ""
24498 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
24499 "not> be used on live virtual machines - for consistent results, shut the "
24500 "virtual machine down before resizing it."
24501 msgstr ""
24502
24503 # type: textblock
24504 #: ../tools/virt-resize.pl:60
24505 msgid ""
24506 "If you are not familiar with the associated tools: "
24507 "L<virt-list-partitions(1)>, L<virt-list-filesystems(1)> and L<virt-df(1)>, "
24508 "we recommend you go and read those manual pages first."
24509 msgstr ""
24510
24511 # type: textblock
24512 #: ../tools/virt-resize.pl:68
24513 msgid ""
24514 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
24515 "fill the extra 5GB of space."
24516 msgstr ""
24517
24518 # type: verbatim
24519 #: ../tools/virt-resize.pl:71
24520 #, no-wrap
24521 msgid ""
24522 " truncate -r olddisk newdisk; truncate -s +5G newdisk\n"
24523 " virt-list-partitions -lht olddisk\n"
24524 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
24525 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
24526 "\n"
24527 msgstr ""
24528
24529 # type: textblock
24530 #: ../tools/virt-resize.pl:76
24531 msgid ""
24532 "As above, but make the /boot partition 200MB bigger, while giving the "
24533 "remaining space to /dev/sda2:"
24534 msgstr ""
24535
24536 # type: verbatim
24537 #: ../tools/virt-resize.pl:79
24538 #, no-wrap
24539 msgid ""
24540 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 olddisk newdisk\n"
24541 "\n"
24542 msgstr ""
24543
24544 # type: =head1
24545 #: ../tools/virt-resize.pl:81
24546 msgid "DETAILED USAGE"
24547 msgstr ""
24548
24549 # type: =head2
24550 #: ../tools/virt-resize.pl:83
24551 msgid "EXPANDING A VIRTUAL MACHINE DISK"
24552 msgstr ""
24553
24554 # type: =item
24555 #: ../tools/virt-resize.pl:87
24556 msgid "1. Shut down the virtual machine"
24557 msgstr ""
24558
24559 # type: =item
24560 #: ../tools/virt-resize.pl:89
24561 msgid "2. Locate input disk image"
24562 msgstr ""
24563
24564 # type: textblock
24565 #: ../tools/virt-resize.pl:91
24566 msgid ""
24567 "Locate the input disk image (ie. the file or device on the host containing "
24568 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
24569 "dumpxml> like this to find the disk image name:"
24570 msgstr ""
24571
24572 # type: verbatim
24573 #: ../tools/virt-resize.pl:95
24574 #, no-wrap
24575 msgid ""
24576 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
24577 " Found 1 nodes:\n"
24578 " -- NODE --\n"
24579 " <source dev=\"/dev/vg/lv_guest\" />\n"
24580 "\n"
24581 msgstr ""
24582
24583 # type: =item
24584 #: ../tools/virt-resize.pl:100
24585 msgid "3. Look at current sizing"
24586 msgstr ""
24587
24588 # type: textblock
24589 #: ../tools/virt-resize.pl:102
24590 msgid "Use L<virt-list-partitions(1)> to display the current partitions and sizes:"
24591 msgstr ""
24592
24593 # type: verbatim
24594 #: ../tools/virt-resize.pl:105
24595 #, no-wrap
24596 msgid ""
24597 " # virt-list-partitions -lht /dev/vg/lv_guest\n"
24598 " /dev/sda1 ext3 101.9M\n"
24599 " /dev/sda2 pv 7.9G\n"
24600 " /dev/sda device 8.0G\n"
24601 "\n"
24602 msgstr ""
24603
24604 # type: textblock
24605 #: ../tools/virt-resize.pl:110
24606 msgid ""
24607 "(This example is a virtual machine with an 8 GB disk which we would like to "
24608 "expand up to 10 GB)."
24609 msgstr ""
24610
24611 # type: =item
24612 #: ../tools/virt-resize.pl:113
24613 msgid "4. Create output disk"
24614 msgstr ""
24615
24616 # type: textblock
24617 #: ../tools/virt-resize.pl:115
24618 msgid ""
24619 "Virt-resize cannot do in-place disk modifications.  You have to have space "
24620 "to store the resized output disk."
24621 msgstr ""
24622
24623 # type: textblock
24624 #: ../tools/virt-resize.pl:118
24625 msgid "To store the resized disk image in a file, create a file of a suitable size:"
24626 msgstr ""
24627
24628 # type: verbatim
24629 #: ../tools/virt-resize.pl:121
24630 #, no-wrap
24631 msgid ""
24632 " # rm -f outdisk\n"
24633 " # truncate -s 10G outdisk\n"
24634 "\n"
24635 msgstr ""
24636
24637 # type: textblock
24638 #: ../tools/virt-resize.pl:124
24639 msgid "Or use L<lvcreate(1)> to create a logical volume:"
24640 msgstr ""
24641
24642 # type: verbatim
24643 #: ../tools/virt-resize.pl:126
24644 #, no-wrap
24645 msgid ""
24646 " # lvcreate -L 10G -n lv_name vg_name\n"
24647 "\n"
24648 msgstr ""
24649
24650 # type: textblock
24651 #: ../tools/virt-resize.pl:128
24652 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
24653 msgstr ""
24654
24655 # type: verbatim
24656 #: ../tools/virt-resize.pl:130
24657 #, no-wrap
24658 msgid ""
24659 " # virsh pool-list\n"
24660 " # virsh vol-create-as poolname newvol 10G\n"
24661 "\n"
24662 msgstr ""
24663
24664 # type: =item
24665 #: ../tools/virt-resize.pl:133
24666 msgid "5. Resize"
24667 msgstr ""
24668
24669 # type: textblock
24670 #: ../tools/virt-resize.pl:135
24671 msgid ""
24672 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
24673 "file) and the output disk.  The output disk is the one created in the "
24674 "previous step."
24675 msgstr ""
24676
24677 # type: verbatim
24678 #: ../tools/virt-resize.pl:139
24679 #, no-wrap
24680 msgid ""
24681 " # virt-resize indisk outdisk\n"
24682 "\n"
24683 msgstr ""
24684
24685 # type: textblock
24686 #: ../tools/virt-resize.pl:141
24687 msgid ""
24688 "This command just copies disk image C<indisk> to disk image C<outdisk> "
24689 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
24690 "larger, then an extra, empty partition is created at the end of the disk "
24691 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
24692 "error."
24693 msgstr ""
24694
24695 # type: textblock
24696 #: ../tools/virt-resize.pl:147
24697 msgid ""
24698 "More realistically you'd want to expand existing partitions in the disk "
24699 "image by passing extra options (for the full list see the L</OPTIONS> "
24700 "section below)."
24701 msgstr ""
24702
24703 # type: textblock
24704 #: ../tools/virt-resize.pl:151
24705 msgid ""
24706 "L</--expand> is the most useful option.  It expands the named partition "
24707 "within the disk to fill any extra space:"
24708 msgstr ""
24709
24710 # type: verbatim
24711 #: ../tools/virt-resize.pl:154
24712 #, no-wrap
24713 msgid ""
24714 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
24715 "\n"
24716 msgstr ""
24717
24718 # type: textblock
24719 #: ../tools/virt-resize.pl:156
24720 msgid ""
24721 "(In this case, an extra partition is I<not> created at the end of the disk, "
24722 "because there will be no unused space)."
24723 msgstr ""
24724
24725 # type: textblock
24726 #: ../tools/virt-resize.pl:159
24727 msgid ""
24728 "L</--resize> is the other commonly used option.  The following would "
24729 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
24730 "rest of the available space:"
24731 msgstr ""
24732
24733 # type: verbatim
24734 #: ../tools/virt-resize.pl:163
24735 #, no-wrap
24736 msgid ""
24737 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
24738 "     indisk outdisk\n"
24739 "\n"
24740 msgstr ""
24741
24742 # type: textblock
24743 #: ../tools/virt-resize.pl:166
24744 msgid ""
24745 "If the expanded partition in the image contains a filesystem or LVM PV, then "
24746 "if virt-resize knows how, it will resize the contents, the equivalent of "
24747 "calling a command such as L<pvresize(8)>, L<resize2fs(8)> or "
24748 "L<ntfsresize(8)>.  However virt-resize does not know how to resize some "
24749 "filesystems, so you would have to online resize them after booting the "
24750 "guest.  And virt-resize also does not resize anything inside an LVM PV, it "
24751 "just resizes the PV itself and leaves the user to resize any LVs inside that "
24752 "PV as desired."
24753 msgstr ""
24754
24755 # type: textblock
24756 #: ../tools/virt-resize.pl:175
24757 msgid "Other options are covered below."
24758 msgstr ""
24759
24760 # type: =item
24761 #: ../tools/virt-resize.pl:177
24762 msgid "6. Test"
24763 msgstr ""
24764
24765 # type: textblock
24766 #: ../tools/virt-resize.pl:179
24767 msgid "Thoroughly test the new disk image I<before> discarding the old one."
24768 msgstr ""
24769
24770 # type: textblock
24771 #: ../tools/virt-resize.pl:181
24772 msgid "If you are using libvirt, edit the XML to point at the new disk:"
24773 msgstr ""
24774
24775 # type: verbatim
24776 #: ../tools/virt-resize.pl:183
24777 #, no-wrap
24778 msgid ""
24779 " # virsh edit guestname\n"
24780 "\n"
24781 msgstr ""
24782
24783 # type: textblock
24784 #: ../tools/virt-resize.pl:185
24785 msgid ""
24786 "Change E<lt>source ...E<gt>, see "
24787 "L<http://libvirt.org/formatdomain.html#elementsDisks>"
24788 msgstr ""
24789
24790 # type: textblock
24791 #: ../tools/virt-resize.pl:188
24792 msgid "Then start up the domain with the new, resized disk:"
24793 msgstr ""
24794
24795 # type: verbatim
24796 #: ../tools/virt-resize.pl:190
24797 #, no-wrap
24798 msgid ""
24799 " # virsh start guestname\n"
24800 "\n"
24801 msgstr ""
24802
24803 # type: textblock
24804 #: ../tools/virt-resize.pl:192
24805 msgid ""
24806 "and check that it still works.  See also the L</NOTES> section below for "
24807 "additional information."
24808 msgstr ""
24809
24810 # type: =item
24811 #: ../tools/virt-resize.pl:195
24812 msgid "7. Resize LVs etc inside the guest"
24813 msgstr ""
24814
24815 # type: textblock
24816 #: ../tools/virt-resize.pl:197
24817 msgid "(This can also be done offline using L<guestfish(1)>)"
24818 msgstr ""
24819
24820 # type: textblock
24821 #: ../tools/virt-resize.pl:199
24822 msgid ""
24823 "Once the guest has booted you should see the new space available, at least "
24824 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
24825 "may need to resize LVs inside PVs, and also resize filesystem types that "
24826 "virt-resize does not know how to expand."
24827 msgstr ""
24828
24829 # type: =head2
24830 #: ../tools/virt-resize.pl:206
24831 msgid "SHRINKING A VIRTUAL MACHINE DISK"
24832 msgstr ""
24833
24834 # type: textblock
24835 #: ../tools/virt-resize.pl:208
24836 msgid ""
24837 "Shrinking is somewhat more complex than expanding, and only an overview is "
24838 "given here."
24839 msgstr ""
24840
24841 # type: textblock
24842 #: ../tools/virt-resize.pl:211
24843 msgid ""
24844 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
24845 "filesystems).  The user has to shrink content before passing the disk image "
24846 "to virt-resize, and virt-resize will check that the content has been shrunk "
24847 "properly."
24848 msgstr ""
24849
24850 # type: textblock
24851 #: ../tools/virt-resize.pl:216
24852 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
24853 msgstr ""
24854
24855 # type: textblock
24856 #: ../tools/virt-resize.pl:218
24857 msgid ""
24858 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
24859 "steps 3 and 4 above to allocate a new disk image."
24860 msgstr ""
24861
24862 # type: textblock
24863 #: ../tools/virt-resize.pl:221
24864 msgid "Then run virt-resize with any of the C<--shrink> and/or C<--resize> options."
24865 msgstr ""
24866
24867 # type: =head2
24868 #: ../tools/virt-resize.pl:224
24869 msgid "IGNORING OR DELETING PARTITIONS"
24870 msgstr ""
24871
24872 # type: textblock
24873 #: ../tools/virt-resize.pl:226
24874 msgid ""
24875 "virt-resize also gives a convenient way to ignore or delete partitions when "
24876 "copying from the input disk to the output disk.  Ignoring a partition speeds "
24877 "up the copy where you don't care about the existing contents of a "
24878 "partition.  Deleting a partition removes it completely, but note that it "
24879 "also renumbers any partitions after the one which is deleted, which can "
24880 "leave some guests unbootable."
24881 msgstr ""
24882
24883 # type: textblock
24884 #: ../tools/virt-resize.pl:243
24885 msgid "Display help."
24886 msgstr ""
24887
24888 # type: =item
24889 #: ../tools/virt-resize.pl:257
24890 msgid "B<--resize part=size>"
24891 msgstr ""
24892
24893 # type: textblock
24894 #: ../tools/virt-resize.pl:259
24895 msgid ""
24896 "Resize the named partition (expanding or shrinking it) so that it has the "
24897 "given size."
24898 msgstr ""
24899
24900 # type: textblock
24901 #: ../tools/virt-resize.pl:262
24902 msgid ""
24903 "C<size> can be expressed as an absolute number followed by b/K/M/G/T/P/E to "
24904 "mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Petabytes or "
24905 "Exabytes; or as a percentage of the current size; or as a relative number or "
24906 "percentage.  For example:"
24907 msgstr ""
24908
24909 # type: verbatim
24910 #: ../tools/virt-resize.pl:267
24911 #, no-wrap
24912 msgid ""
24913 " --resize /dev/sda2=10G\n"
24914 "\n"
24915 msgstr ""
24916
24917 # type: verbatim
24918 #: ../tools/virt-resize.pl:269
24919 #, no-wrap
24920 msgid ""
24921 " --resize /dev/sda4=90%\n"
24922 "\n"
24923 msgstr ""
24924
24925 # type: verbatim
24926 #: ../tools/virt-resize.pl:271
24927 #, no-wrap
24928 msgid ""
24929 " --resize /dev/sda2=+1G\n"
24930 "\n"
24931 msgstr ""
24932
24933 # type: verbatim
24934 #: ../tools/virt-resize.pl:273
24935 #, no-wrap
24936 msgid ""
24937 " --resize /dev/sda2=-200M\n"
24938 "\n"
24939 msgstr ""
24940
24941 # type: verbatim
24942 #: ../tools/virt-resize.pl:275
24943 #, no-wrap
24944 msgid ""
24945 " --resize /dev/sda1=+128K\n"
24946 "\n"
24947 msgstr ""
24948
24949 # type: verbatim
24950 #: ../tools/virt-resize.pl:277
24951 #, no-wrap
24952 msgid ""
24953 " --resize /dev/sda1=+10%\n"
24954 "\n"
24955 msgstr ""
24956
24957 # type: verbatim
24958 #: ../tools/virt-resize.pl:279
24959 #, no-wrap
24960 msgid ""
24961 " --resize /dev/sda1=-10%\n"
24962 "\n"
24963 msgstr ""
24964
24965 # type: textblock
24966 #: ../tools/virt-resize.pl:281
24967 msgid ""
24968 "You can increase the size of any partition.  Virt-resize will expand the "
24969 "direct content of the partition if it knows how (see C<--expand> below)."
24970 msgstr ""
24971
24972 # type: textblock
24973 #: ../tools/virt-resize.pl:285
24974 msgid ""
24975 "You can only I<decrease> the size of partitions that contain filesystems or "
24976 "PVs which have already been shrunk.  Virt-resize will check this has been "
24977 "done before proceeding, or else will print an error (see also "
24978 "C<--resize-force>)."
24979 msgstr ""
24980
24981 # type: textblock
24982 #: ../tools/virt-resize.pl:290 ../tools/virt-resize.pl:382 ../tools/virt-resize.pl:399
24983 msgid "You can give this option multiple times."
24984 msgstr ""
24985
24986 # type: =item
24987 #: ../tools/virt-resize.pl:296
24988 msgid "B<--resize-force part=size>"
24989 msgstr ""
24990
24991 # type: textblock
24992 #: ../tools/virt-resize.pl:298
24993 msgid ""
24994 "This is the same as C<--resize> except that it will let you decrease the "
24995 "size of any partition.  Generally this means you will lose any data which "
24996 "was at the end of the partition you shrink, but you may not care about that "
24997 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
24998 "as a swap partition)."
24999 msgstr ""
25000
25001 # type: textblock
25002 #: ../tools/virt-resize.pl:304
25003 msgid "See also the C<--ignore> option."
25004 msgstr ""
25005
25006 # type: =item
25007 #: ../tools/virt-resize.pl:310
25008 msgid "B<--expand part>"
25009 msgstr ""
25010
25011 # type: textblock
25012 #: ../tools/virt-resize.pl:312
25013 msgid ""
25014 "Expand the named partition so it uses up all extra space (space left over "
25015 "after any other resize changes that you request have been done)."
25016 msgstr ""
25017
25018 # type: textblock
25019 #: ../tools/virt-resize.pl:315
25020 msgid ""
25021 "If virt-resize knows how, it will expand the direct content of the "
25022 "partition.  For example, if the partition is an LVM PV, it will expand the "
25023 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
25024 "content it doesn't know about alone."
25025 msgstr ""
25026
25027 # type: textblock
25028 #: ../tools/virt-resize.pl:320
25029 msgid "Currently virt-resize can resize:"
25030 msgstr ""
25031
25032 # type: textblock
25033 #: ../tools/virt-resize.pl:326
25034 msgid ""
25035 "ext2, ext3 and ext4 filesystems when they are contained directly inside a "
25036 "partition."
25037 msgstr ""
25038
25039 # type: textblock
25040 #: ../tools/virt-resize.pl:331
25041 msgid ""
25042 "NTFS filesystems contained directly in a partition, if libguestfs was "
25043 "compiled with support for NTFS."
25044 msgstr ""
25045
25046 # type: textblock
25047 #: ../tools/virt-resize.pl:334
25048 msgid ""
25049 "The filesystem must have been shut down consistently last time it was used.  "
25050 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
25051 "consistency check, so at the first boot after resizing Windows will check "
25052 "the disk."
25053 msgstr ""
25054
25055 # type: textblock
25056 #: ../tools/virt-resize.pl:341
25057 msgid ""
25058 "LVM PVs (physical volumes).  However virt-resize does I<not> resize anything "
25059 "inside the PV.  The user will have to resize LVs as desired."
25060 msgstr ""
25061
25062 # type: textblock
25063 #: ../tools/virt-resize.pl:347 ../tools/virt-resize.pl:369
25064 msgid "Note that you cannot use C<--expand> and C<--shrink> together."
25065 msgstr ""
25066
25067 # type: =item
25068 #: ../tools/virt-resize.pl:353
25069 msgid "B<--shrink part>"
25070 msgstr ""
25071
25072 # type: textblock
25073 #: ../tools/virt-resize.pl:355
25074 msgid ""
25075 "Shrink the named partition until the overall disk image fits in the "
25076 "destination.  The named partition B<must> contain a filesystem or PV which "
25077 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
25078 "online tools).  Virt-resize will check this and give an error if it has not "
25079 "been done."
25080 msgstr ""
25081
25082 # type: textblock
25083 #: ../tools/virt-resize.pl:361
25084 msgid ""
25085 "The amount by which the overall disk must be shrunk (after carrying out all "
25086 "other operations requested by the user) is called the \"deficit\".  For "
25087 "example, a straight copy (assume no other operations)  from a 5GB disk image "
25088 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
25089 "would give an error unless the user specified a partition to shrink and that "
25090 "partition had more than a gigabyte of free space."
25091 msgstr ""
25092
25093 # type: =item
25094 #: ../tools/virt-resize.pl:375
25095 msgid "B<--ignore part>"
25096 msgstr ""
25097
25098 # type: textblock
25099 #: ../tools/virt-resize.pl:377
25100 msgid ""
25101 "Ignore the named partition.  Effectively this means the partition is "
25102 "allocated on the destination disk, but the content is not copied across from "
25103 "the source disk.  The content of the partition will be blank (all zero "
25104 "bytes)."
25105 msgstr ""
25106
25107 # type: =item
25108 #: ../tools/virt-resize.pl:388
25109 msgid "B<--delete part>"
25110 msgstr ""
25111
25112 # type: textblock
25113 #: ../tools/virt-resize.pl:390
25114 msgid ""
25115 "Delete the named partition.  It would be more accurate to describe this as "
25116 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
25117 "the original disk image is left intact."
25118 msgstr ""
25119
25120 # type: textblock
25121 #: ../tools/virt-resize.pl:394
25122 msgid ""
25123 "Note that when you delete a partition, then anything contained in the "
25124 "partition is also deleted.  Furthermore, this causes any partitions that "
25125 "come after to be I<renumbered>, which can easily make your guest unbootable."
25126 msgstr ""
25127
25128 # type: =item
25129 #: ../tools/virt-resize.pl:405
25130 msgid "B<--LV-expand logvol>"
25131 msgstr ""
25132
25133 # type: textblock
25134 #: ../tools/virt-resize.pl:407
25135 msgid ""
25136 "This takes the logical volume and, as a final step, expands it to fill all "
25137 "the space available in its volume group.  A typical usage, assuming a Linux "
25138 "guest with a single PV C</dev/sda2> and a root device called "
25139 "C</dev/vg_guest/lv_root> would be:"
25140 msgstr ""
25141
25142 # type: verbatim
25143 #: ../tools/virt-resize.pl:412
25144 #, no-wrap
25145 msgid ""
25146 " virt-resize indisk outdisk \\\n"
25147 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
25148 "\n"
25149 msgstr ""
25150
25151 # type: textblock
25152 #: ../tools/virt-resize.pl:415
25153 msgid ""
25154 "This would first expand the partition (and PV), and then expand the root "
25155 "device to fill the extra space in the PV."
25156 msgstr ""
25157
25158 # type: textblock
25159 #: ../tools/virt-resize.pl:418
25160 msgid ""
25161 "The contents of the LV are also resized if virt-resize knows how to do "
25162 "that.  You can stop virt-resize from trying to expand the content by using "
25163 "the option C<--no-expand-content>."
25164 msgstr ""
25165
25166 # type: textblock
25167 #: ../tools/virt-resize.pl:422
25168 msgid "Use L<virt-list-filesystems(1)> to list the filesystems in the guest."
25169 msgstr ""
25170
25171 # type: textblock
25172 #: ../tools/virt-resize.pl:425
25173 msgid ""
25174 "You can give this option multiple times, I<but> it doesn't make sense to do "
25175 "this unless the logical volumes you specify are all in different volume "
25176 "groups."
25177 msgstr ""
25178
25179 # type: =item
25180 #: ../tools/virt-resize.pl:433
25181 msgid "B<--no-copy-boot-loader>"
25182 msgstr ""
25183
25184 # type: textblock
25185 #: ../tools/virt-resize.pl:435
25186 msgid ""
25187 "By default, virt-resize copies over some sectors at the start of the disk "
25188 "(up to the beginning of the first partition).  Commonly these sectors "
25189 "contain the Master Boot Record (MBR) and the boot loader, and are required "
25190 "in order for the guest to boot correctly."
25191 msgstr ""
25192
25193 # type: textblock
25194 #: ../tools/virt-resize.pl:440
25195 msgid ""
25196 "If you specify this flag, then this initial copy is not done.  You may need "
25197 "to reinstall the boot loader in this case."
25198 msgstr ""
25199
25200 # type: =item
25201 #: ../tools/virt-resize.pl:448
25202 msgid "B<--no-extra-partition>"
25203 msgstr ""
25204
25205 # type: textblock
25206 #: ../tools/virt-resize.pl:450
25207 msgid ""
25208 "By default, virt-resize creates an extra partition if there is any extra, "
25209 "unused space after all resizing has happened.  Use this option to prevent "
25210 "the extra partition from being created.  If you do this then the extra space "
25211 "will be inaccessible until you run fdisk, parted, or some other partitioning "
25212 "tool in the guest."
25213 msgstr ""
25214
25215 # type: textblock
25216 #: ../tools/virt-resize.pl:456
25217 msgid ""
25218 "Note that if the surplus space is smaller than 10 MB, no extra partition "
25219 "will be created."
25220 msgstr ""
25221
25222 # type: =item
25223 #: ../tools/virt-resize.pl:463
25224 msgid "B<--no-expand-content>"
25225 msgstr ""
25226
25227 # type: textblock
25228 #: ../tools/virt-resize.pl:465
25229 msgid ""
25230 "By default, virt-resize will try to expand the direct contents of "
25231 "partitions, if it knows how (see C<--expand> option above)."
25232 msgstr ""
25233
25234 # type: textblock
25235 #: ../tools/virt-resize.pl:468
25236 msgid ""
25237 "If you give the C<--no-expand-content> option then virt-resize will not "
25238 "attempt this."
25239 msgstr ""
25240
25241 # type: =item
25242 #: ../tools/virt-resize.pl:475
25243 msgid "B<-d> | B<--debug>"
25244 msgstr ""
25245
25246 # type: textblock
25247 #: ../tools/virt-resize.pl:477 ../tools/virt-win-reg.pl:198
25248 msgid "Enable debugging messages."
25249 msgstr ""
25250
25251 # type: =item
25252 #: ../tools/virt-resize.pl:483
25253 msgid "B<-n> | B<--dryrun>"
25254 msgstr ""
25255
25256 # type: textblock
25257 #: ../tools/virt-resize.pl:485
25258 msgid "Print a summary of what would be done, but don't do anything."
25259 msgstr ""
25260
25261 # type: =item
25262 #: ../tools/virt-resize.pl:491
25263 msgid "B<-q> | B<--quiet>"
25264 msgstr ""
25265
25266 # type: textblock
25267 #: ../tools/virt-resize.pl:493
25268 msgid "Don't print the summary."
25269 msgstr ""
25270
25271 # type: =head2
25272 #: ../tools/virt-resize.pl:1352
25273 msgid "\"Partition 1 does not end on cylinder boundary.\""
25274 msgstr ""
25275
25276 # type: textblock
25277 #: ../tools/virt-resize.pl:1354
25278 msgid ""
25279 "Virt-resize aligns partitions to multiples of 64 sectors.  Usually this "
25280 "means the partitions will not be aligned to the ancient CHS geometry.  "
25281 "However CHS geometry is meaningless for disks manufactured since the early "
25282 "1990s, and doubly so for virtual hard drives.  Alignment of partitions to "
25283 "cylinders is not required by any modern operating system."
25284 msgstr ""
25285
25286 # type: =head2
25287 #: ../tools/virt-resize.pl:1361
25288 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
25289 msgstr ""
25290
25291 # type: textblock
25292 #: ../tools/virt-resize.pl:1363
25293 msgid ""
25294 "In Windows Vista and later versions, Microsoft switched to using a separate "
25295 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
25296 "and C</dev/sda2> is the main (C:) drive.  We have not had any luck resizing "
25297 "the boot partition.  Doing so seems to break the guest completely.  However "
25298 "expanding the second partition (ie. C: drive) should work."
25299 msgstr ""
25300
25301 # type: textblock
25302 #: ../tools/virt-resize.pl:1370
25303 msgid ""
25304 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
25305 "NTFS partitions have been expanded.  This is just a safety check and (unless "
25306 "it find errors) is nothing to worry about."
25307 msgstr ""
25308
25309 # type: =head1
25310 #: ../tools/virt-resize.pl:1374
25311 msgid "ALTERNATIVE TOOLS"
25312 msgstr ""
25313
25314 # type: textblock
25315 #: ../tools/virt-resize.pl:1376
25316 msgid ""
25317 "There are several proprietary tools for resizing partitions.  We won't "
25318 "mention any here."
25319 msgstr ""
25320
25321 # type: textblock
25322 #: ../tools/virt-resize.pl:1379
25323 msgid ""
25324 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
25325 "operations on disk images.  They can resize and move partitions, but I don't "
25326 "think they can do anything with the contents, and they certainly don't "
25327 "understand LVM."
25328 msgstr ""
25329
25330 # type: textblock
25331 #: ../tools/virt-resize.pl:1384
25332 msgid ""
25333 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
25334 "but at a much lower level.  You will probably end up hand-calculating sector "
25335 "offsets, which is something that virt-resize was designed to avoid.  If you "
25336 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
25337 "C<--debug> flag."
25338 msgstr ""
25339
25340 # type: textblock
25341 #: ../tools/virt-resize.pl:1392
25342 msgid ""
25343 "L<virt-list-partitions(1)>, L<virt-list-filesystems(1)>, L<virt-df(1)>, "
25344 "L<guestfs(3)>, L<guestfish(1)>, L<lvm(8)>, L<pvresize(8)>, L<lvresize(8)>, "
25345 "L<resize2fs(8)>, L<ntfsresize(8)>, L<virsh(1)>, L<parted(8)>, "
25346 "L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
25347 msgstr ""
25348
25349 # type: textblock
25350 #: ../tools/virt-tar.pl:34
25351 msgid "virt-tar - Extract or upload files to a virtual machine"
25352 msgstr ""
25353
25354 # type: verbatim
25355 #: ../tools/virt-tar.pl:38
25356 #, no-wrap
25357 msgid ""
25358 " virt-tar [--options] -x domname directory tarball\n"
25359 "\n"
25360 msgstr ""
25361
25362 # type: verbatim
25363 #: ../tools/virt-tar.pl:40
25364 #, no-wrap
25365 msgid ""
25366 " virt-tar [--options] -u domname tarball directory\n"
25367 "\n"
25368 msgstr ""
25369
25370 # type: verbatim
25371 #: ../tools/virt-tar.pl:42
25372 #, no-wrap
25373 msgid ""
25374 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
25375 "\n"
25376 msgstr ""
25377
25378 # type: verbatim
25379 #: ../tools/virt-tar.pl:44
25380 #, no-wrap
25381 msgid ""
25382 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
25383 "\n"
25384 msgstr ""
25385
25386 # type: textblock
25387 #: ../tools/virt-tar.pl:48
25388 msgid "Download C</home> from the VM into a local tarball:"
25389 msgstr ""
25390
25391 # type: verbatim
25392 #: ../tools/virt-tar.pl:50
25393 #, no-wrap
25394 msgid ""
25395 " virt-tar -x domname /home home.tar\n"
25396 "\n"
25397 msgstr ""
25398
25399 # type: verbatim
25400 #: ../tools/virt-tar.pl:52
25401 #, no-wrap
25402 msgid ""
25403 " virt-tar -zx domname /home home.tar.gz\n"
25404 "\n"
25405 msgstr ""
25406
25407 # type: textblock
25408 #: ../tools/virt-tar.pl:54
25409 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
25410 msgstr ""
25411
25412 # type: verbatim
25413 #: ../tools/virt-tar.pl:56
25414 #, no-wrap
25415 msgid ""
25416 " virt-tar -u domname uploadstuff.tar /tmp\n"
25417 "\n"
25418 msgstr ""
25419
25420 # type: verbatim
25421 #: ../tools/virt-tar.pl:58
25422 #, no-wrap
25423 msgid ""
25424 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
25425 "\n"
25426 msgstr ""
25427
25428 # type: textblock
25429 #: ../tools/virt-tar.pl:62
25430 msgid ""
25431 "You must I<not> use C<virt-tar> with the C<-u> option (upload) on live "
25432 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
25433 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
25434 msgstr ""
25435
25436 # type: textblock
25437 #: ../tools/virt-tar.pl:67
25438 msgid ""
25439 "You can use C<-x> (extract) on live virtual machines, but you might get "
25440 "inconsistent results or errors if there is filesystem activity inside the "
25441 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
25442 "work, but the only way to guarantee consistent results is if the virtual "
25443 "machine is shut down."
25444 msgstr ""
25445
25446 # type: textblock
25447 #: ../tools/virt-tar.pl:75
25448 msgid ""
25449 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
25450 "parts of a guest filesystem.  There are many possibilities: making backups, "
25451 "uploading data files, snooping on guest activity, fixing or customizing "
25452 "guests, etc."
25453 msgstr ""
25454
25455 # type: textblock
25456 #: ../tools/virt-tar.pl:80
25457 msgid ""
25458 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
25459 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
25460 "should look at the L<guestfish(1)> tool."
25461 msgstr ""
25462
25463 # type: textblock
25464 #: ../tools/virt-tar.pl:84
25465 msgid ""
25466 "There are two modes of operation: C<-x> (eXtract) downloads a directory and "
25467 "its contents (recursively) from the virtual machine into a local tarball.  "
25468 "C<-u> uploads from a local tarball, unpacking it into a directory inside the "
25469 "virtual machine.  You cannot use these two options together."
25470 msgstr ""
25471
25472 # type: textblock
25473 #: ../tools/virt-tar.pl:90
25474 msgid ""
25475 "In addition, you may need to use the C<-z> (gZip) option to enable "
25476 "compression.  When uploading, you have to specify C<-z> if the upload file "
25477 "is compressed because virt-tar won't detect this on its own."
25478 msgstr ""
25479
25480 # type: textblock
25481 #: ../tools/virt-tar.pl:94
25482 msgid ""
25483 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
25484 "example it cannot do PKZip files or bzip2 compression.  If you want that "
25485 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
25486 "the L<libguestfs(3)> API)."
25487 msgstr ""
25488
25489 # type: =item
25490 #: ../tools/virt-tar.pl:135
25491 msgid "B<-x> | B<--extract> | B<--download>"
25492 msgstr ""
25493
25494 # type: =item
25495 #: ../tools/virt-tar.pl:137
25496 msgid "B<-u> | B<--upload>"
25497 msgstr ""
25498
25499 # type: textblock
25500 #: ../tools/virt-tar.pl:139
25501 msgid ""
25502 "Use C<-x> to extract (download) a directory from a virtual machine to a "
25503 "local tarball."
25504 msgstr ""
25505
25506 # type: textblock
25507 #: ../tools/virt-tar.pl:142
25508 msgid ""
25509 "Use C<-u> to upload and unpack from a local tarball into a virtual machine.  "
25510 "Please read the L</WARNING> section above before using this option."
25511 msgstr ""
25512
25513 # type: textblock
25514 #: ../tools/virt-tar.pl:146
25515 msgid "You must specify exactly one of these options."
25516 msgstr ""
25517
25518 # type: =item
25519 #: ../tools/virt-tar.pl:152
25520 msgid "B<-z> | B<--gzip>"
25521 msgstr ""
25522
25523 # type: textblock
25524 #: ../tools/virt-tar.pl:154
25525 msgid "Specify that the input or output tarball is gzip-compressed."
25526 msgstr ""
25527
25528 # type: textblock
25529 #: ../tools/virt-tar.pl:259
25530 msgid ""
25531 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
25532 "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
25533 "L<http://libguestfs.org/>."
25534 msgstr ""
25535
25536 # type: textblock
25537 #: ../tools/virt-win-reg.pl:38
25538 msgid ""
25539 "virt-win-reg - Export and merge Windows Registry entries from a Windows "
25540 "guest"
25541 msgstr ""
25542
25543 # type: verbatim
25544 #: ../tools/virt-win-reg.pl:42
25545 #, no-wrap
25546 msgid ""
25547 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
25548 "\n"
25549 msgstr ""
25550
25551 # type: verbatim
25552 #: ../tools/virt-win-reg.pl:44
25553 #, no-wrap
25554 msgid ""
25555 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
25556 "\n"
25557 msgstr ""
25558
25559 # type: verbatim
25560 #: ../tools/virt-win-reg.pl:46
25561 #, no-wrap
25562 msgid ""
25563 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
25564 "\n"
25565 msgstr ""
25566
25567 # type: verbatim
25568 #: ../tools/virt-win-reg.pl:48
25569 #, no-wrap
25570 msgid ""
25571 " virt-win-reg --merge domname [input.reg ...]\n"
25572 "\n"
25573 msgstr ""
25574
25575 # type: verbatim
25576 #: ../tools/virt-win-reg.pl:50
25577 #, no-wrap
25578 msgid ""
25579 " virt-win-reg [--options] disk.img ... # instead of domname\n"
25580 "\n"
25581 msgstr ""
25582
25583 # type: textblock
25584 #: ../tools/virt-win-reg.pl:54
25585 msgid ""
25586 "You must I<not> use C<virt-win-reg> with the C<--merge> option on live "
25587 "virtual machines.  If you do this, you I<will> get irreversible disk "
25588 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
25589 "but doesn't catch all cases."
25590 msgstr ""
25591
25592 # type: textblock
25593 #: ../tools/virt-win-reg.pl:59
25594 msgid ""
25595 "Modifying the Windows Registry is an inherently risky operation.  The format "
25596 "is deliberately obscure and undocumented, and Registry changes can leave the "
25597 "system unbootable.  Therefore when using the C<--merge> option, make sure "
25598 "you have a reliable backup first."
25599 msgstr ""
25600
25601 # type: textblock
25602 #: ../tools/virt-win-reg.pl:66
25603 msgid ""
25604 "This program can export and merge Windows Registry entries from a Windows "
25605 "guest."
25606 msgstr ""
25607
25608 # type: textblock
25609 #: ../tools/virt-win-reg.pl:69
25610 msgid ""
25611 "The first parameter is the libvirt guest name or the raw disk image of a "
25612 "Windows guest."
25613 msgstr ""
25614
25615 # type: textblock
25616 #: ../tools/virt-win-reg.pl:72
25617 msgid ""
25618 "If C<--merge> is I<not> specified, then the chosen registry key is "
25619 "displayed/exported (recursively).  For example:"
25620 msgstr ""
25621
25622 # type: verbatim
25623 #: ../tools/virt-win-reg.pl:75
25624 #, no-wrap
25625 msgid ""
25626 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
25627 "\n"
25628 msgstr ""
25629
25630 # type: textblock
25631 #: ../tools/virt-win-reg.pl:77
25632 msgid "You can also display single values from within registry keys, for example:"
25633 msgstr ""
25634
25635 # type: verbatim
25636 #: ../tools/virt-win-reg.pl:80
25637 #, no-wrap
25638 msgid ""
25639 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
25640 " $ virt-win-reg Windows7 $cvkey ProductName\n"
25641 " Windows 7 Enterprise\n"
25642 "\n"
25643 msgstr ""
25644
25645 # type: textblock
25646 #: ../tools/virt-win-reg.pl:84
25647 msgid ""
25648 "With C<--merge>, you can merge a textual regedit file into the Windows "
25649 "Registry:"
25650 msgstr ""
25651
25652 # type: verbatim
25653 #: ../tools/virt-win-reg.pl:87
25654 #, no-wrap
25655 msgid ""
25656 " $ virt-win-reg --merge Windows7 changes.reg\n"
25657 "\n"
25658 msgstr ""
25659
25660 # type: =head2
25661 #: ../tools/virt-win-reg.pl:89
25662 msgid "SUPPORTED SYSTEMS"
25663 msgstr ""
25664
25665 # type: textblock
25666 #: ../tools/virt-win-reg.pl:91
25667 msgid ""
25668 "The program currently supports Windows NT-derived guests starting with "
25669 "Windows XP through to at least Windows 7."
25670 msgstr ""
25671
25672 # type: textblock
25673 #: ../tools/virt-win-reg.pl:94
25674 msgid ""
25675 "Registry support is done for C<HKEY_LOCAL_MACHINE\\SAM>, "
25676 "C<HKEY_LOCAL_MACHINE\\SECURITY>, C<HKEY_LOCAL_MACHINE\\SOFTWARE>, "
25677 "C<HKEY_LOCAL_MACHINE\\SYSTEM> and C<HKEY_USERS\\.DEFAULT>."
25678 msgstr ""
25679
25680 # type: textblock
25681 #: ../tools/virt-win-reg.pl:98
25682 msgid ""
25683 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
25684 "C<HKEY_USERS>."
25685 msgstr ""
25686
25687 # type: textblock
25688 #: ../tools/virt-win-reg.pl:101
25689 msgid ""
25690 "C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are B<not> supported at this "
25691 "time."
25692 msgstr ""
25693
25694 # type: =head2
25695 #: ../tools/virt-win-reg.pl:104
25696 msgid "NOTE"
25697 msgstr ""
25698
25699 # type: textblock
25700 #: ../tools/virt-win-reg.pl:106
25701 msgid ""
25702 "This program is only meant for simple access to the registry.  If you want "
25703 "to do complicated things with the registry, we suggest you download the "
25704 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
25705 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
25706 "L<hivexregedit(1)>."
25707 msgstr ""
25708
25709 # type: =head2
25710 #: ../tools/virt-win-reg.pl:112
25711 msgid "ENCODING"
25712 msgstr ""
25713
25714 # type: textblock
25715 #: ../tools/virt-win-reg.pl:114
25716 msgid ""
25717 "C<virt-win-reg> expects that regedit files have already been reencoded in "
25718 "the local encoding.  Usually on Linux hosts, this means UTF-8 with "
25719 "Unix-style line endings.  Since Windows regedit files are often in UTF-16LE "
25720 "with Windows-style line endings, you may need to reencode the whole file "
25721 "before or after processing."
25722 msgstr ""
25723
25724 # type: textblock
25725 #: ../tools/virt-win-reg.pl:120
25726 msgid ""
25727 "To reencode a file from Windows format to Linux (before processing it with "
25728 "the C<--merge> option), you would do something like this:"
25729 msgstr ""
25730
25731 # type: verbatim
25732 #: ../tools/virt-win-reg.pl:123
25733 #, no-wrap
25734 msgid ""
25735 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
25736 "\n"
25737 msgstr ""
25738
25739 # type: textblock
25740 #: ../tools/virt-win-reg.pl:125
25741 msgid ""
25742 "To go in the opposite direction, after exporting and before sending the file "
25743 "to a Windows user, do something like this:"
25744 msgstr ""
25745
25746 # type: verbatim
25747 #: ../tools/virt-win-reg.pl:128
25748 #, no-wrap
25749 msgid ""
25750 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
25751 "\n"
25752 msgstr ""
25753
25754 # type: textblock
25755 #: ../tools/virt-win-reg.pl:130
25756 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
25757 msgstr ""
25758
25759 # type: textblock
25760 #: ../tools/virt-win-reg.pl:132
25761 msgid ""
25762 "If you are unsure about the current encoding, use the L<file(1)> command.  "
25763 "Recent versions of Windows regedit.exe produce a UTF-16LE file with "
25764 "Windows-style (CRLF) line endings, like this:"
25765 msgstr ""
25766
25767 # type: verbatim
25768 #: ../tools/virt-win-reg.pl:136
25769 #, no-wrap
25770 msgid ""
25771 " $ file software.reg\n"
25772 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
25773 " with CRLF line terminators\n"
25774 "\n"
25775 msgstr ""
25776
25777 # type: textblock
25778 #: ../tools/virt-win-reg.pl:140
25779 msgid "This file would need conversion before you could C<--merge> it."
25780 msgstr ""
25781
25782 # type: =head2
25783 #: ../tools/virt-win-reg.pl:142
25784 msgid "SHELL QUOTING"
25785 msgstr ""
25786
25787 # type: textblock
25788 #: ../tools/virt-win-reg.pl:144
25789 msgid ""
25790 "Be careful when passing parameters containing C<\\> (backslash) in the "
25791 "shell.  Usually you will have to use 'single quotes' or double backslashes "
25792 "(but not both) to protect them from the shell."
25793 msgstr ""
25794
25795 # type: textblock
25796 #: ../tools/virt-win-reg.pl:148
25797 msgid "Paths and value names are case-insensitive."
25798 msgstr ""
25799
25800 # type: =head2
25801 #: ../tools/virt-win-reg.pl:150
25802 msgid "CurrentControlSet etc."
25803 msgstr ""
25804
25805 # type: textblock
25806 #: ../tools/virt-win-reg.pl:152
25807 msgid ""
25808 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
25809 "Registry at the level of the hive file, and therefore you cannot modify "
25810 "these."
25811 msgstr ""
25812
25813 # type: textblock
25814 #: ../tools/virt-win-reg.pl:156
25815 msgid ""
25816 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
25817 "circumstances it might refer to another control set.  The way to find out is "
25818 "to look at the C<HKLM\\SYSTEM\\Select> key:"
25819 msgstr ""
25820
25821 # type: verbatim
25822 #: ../tools/virt-win-reg.pl:160
25823 #, no-wrap
25824 msgid ""
25825 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
25826 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
25827 " \"Current\"=dword:00000001\n"
25828 " \"Default\"=dword:00000001\n"
25829 " \"Failed\"=dword:00000000\n"
25830 " \"LastKnownGood\"=dword:00000002\n"
25831 "\n"
25832 msgstr ""
25833
25834 # type: textblock
25835 #: ../tools/virt-win-reg.pl:167
25836 msgid "\"Default\" is the one which Windows will choose when it boots."
25837 msgstr ""
25838
25839 # type: textblock
25840 #: ../tools/virt-win-reg.pl:169
25841 msgid "Similarly, other C<Current...> keys in the path may need to be replaced."
25842 msgstr ""
25843
25844 # type: =item
25845 #: ../tools/virt-win-reg.pl:216
25846 msgid "B<--merge>"
25847 msgstr ""
25848
25849 # type: textblock
25850 #: ../tools/virt-win-reg.pl:218
25851 msgid ""
25852 "In merge mode, this merges a textual regedit file into the Windows Registry "
25853 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
25854 "displays or exports Registry entries instead."
25855 msgstr ""
25856
25857 # type: textblock
25858 #: ../tools/virt-win-reg.pl:222
25859 msgid ""
25860 "Note that C<--merge> is I<unsafe> to use on live virtual machines, and will "
25861 "result in disk corruption.  However exporting (without this flag)  is always "
25862 "safe."
25863 msgstr ""
25864
25865 # type: =item
25866 #: ../tools/virt-win-reg.pl:230
25867 msgid "B<--encoding> UTF-16LE|ASCII"
25868 msgstr ""
25869
25870 # type: textblock
25871 #: ../tools/virt-win-reg.pl:232
25872 msgid ""
25873 "When merging (only), you may need to specify the encoding for strings to be "
25874 "used in the hive file.  This is explained in detail in "
25875 "L<Win::Hivex::Regedit(3)/ENCODING STRINGS>."
25876 msgstr ""
25877
25878 # type: textblock
25879 #: ../tools/virt-win-reg.pl:236
25880 msgid ""
25881 "The default is to use UTF-16LE, which should work with recent versions of "
25882 "Windows."
25883 msgstr ""
25884
25885 # type: textblock
25886 #: ../tools/virt-win-reg.pl:463
25887 msgid ""
25888 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, "
25889 "L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, "
25890 "L<Sys::Guestfs::Lib(3)>, L<Win::Hivex(3)>, L<Win::Hivex::Regedit(3)>, "
25891 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
25892 msgstr ""
25893
25894 # type: verbatim
25895 #: ../tools/virt-win-reg.pl:481
25896 #, no-wrap
25897 msgid ""
25898 " export LIBGUESTFS_DEBUG=1\n"
25899 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
25900 "\n"
25901 msgstr ""
25902
25903 # type: textblock
25904 #: ../tools/virt-win-reg.pl:484
25905 msgid ""
25906 "Attach /tmp/virt-win-reg.log to a new bug report at "
25907 "L<https://bugzilla.redhat.com/>"
25908 msgstr ""