generator: Generate guestfish-only commands.
[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-18 09:23+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:789
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:796 ../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:816
3209 msgid "LIBGUESTFS_APPEND"
3210 msgstr ""
3211
3212 # type: textblock
3213 #: ../src/guestfs.pod:1651 ../fish/guestfish.pod:818
3214 msgid "Pass additional options to the guest kernel."
3215 msgstr ""
3216
3217 # type: =item
3218 #: ../src/guestfs.pod:1653 ../fish/guestfish.pod:820
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:825
3231 msgid "LIBGUESTFS_MEMSIZE"
3232 msgstr ""
3233
3234 # type: textblock
3235 #: ../src/guestfs.pod:1660 ../fish/guestfish.pod:827
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:830
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:832
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:837
3261 msgid "LIBGUESTFS_QEMU"
3262 msgstr ""
3263
3264 # type: textblock
3265 #: ../src/guestfs.pod:1672 ../fish/guestfish.pod:839
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:843
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:852
3290 msgid "TMPDIR"
3291 msgstr ""
3292
3293 # type: textblock
3294 #: ../src/guestfs.pod:1685 ../fish/guestfish.pod:854
3295 msgid "Location of temporary directory, defaults to C</tmp>."
3296 msgstr ""
3297
3298 # type: textblock
3299 #: ../src/guestfs.pod:1687 ../fish/guestfish.pod:856
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:914 ../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:930 ../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:932 ../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:934 ../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:936
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 "help"
15931 msgstr ""
15932
15933 # type: verbatim
15934 #: ../fish/guestfish.pod:775
15935 #, no-wrap
15936 msgid ""
15937 " help\n"
15938 " help cmd\n"
15939 "\n"
15940 msgstr ""
15941
15942 # type: textblock
15943 #: ../fish/guestfish.pod:778
15944 msgid ""
15945 "Without any parameter, this lists all commands.  With a C<cmd> parameter, "
15946 "this displays detailed help for a command."
15947 msgstr ""
15948
15949 # type: =head2
15950 #: ../fish/guestfish.pod:781
15951 msgid "quit | exit"
15952 msgstr ""
15953
15954 # type: textblock
15955 #: ../fish/guestfish.pod:783
15956 msgid "This exits guestfish.  You can also use C<^D> key."
15957 msgstr ""
15958
15959 # type: textblock
15960 #: ../fish/guestfish.pod:785
15961 msgid "@FISH_COMMANDS@"
15962 msgstr ""
15963
15964 # type: =head1
15965 #: ../fish/guestfish.pod:787
15966 msgid "COMMANDS"
15967 msgstr ""
15968
15969 # type: =head1
15970 #: ../fish/guestfish.pod:791 ../test-tool/libguestfs-test-tool.pod:83
15971 msgid "EXIT CODE"
15972 msgstr ""
15973
15974 # type: textblock
15975 #: ../fish/guestfish.pod:793
15976 msgid ""
15977 "guestfish returns 0 if the commands completed without error, or 1 if there "
15978 "was an error."
15979 msgstr ""
15980
15981 # type: =item
15982 #: ../fish/guestfish.pod:800
15983 msgid "EDITOR"
15984 msgstr ""
15985
15986 # type: textblock
15987 #: ../fish/guestfish.pod:802
15988 msgid ""
15989 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
15990 "C<vi>."
15991 msgstr ""
15992
15993 # type: =item
15994 #: ../fish/guestfish.pod:805
15995 msgid "GUESTFISH_PID"
15996 msgstr ""
15997
15998 # type: textblock
15999 #: ../fish/guestfish.pod:807
16000 msgid ""
16001 "Used with the I<--remote> option to specify the remote guestfish process to "
16002 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
16003 msgstr ""
16004
16005 # type: =item
16006 #: ../fish/guestfish.pod:811
16007 msgid "HOME"
16008 msgstr ""
16009
16010 # type: textblock
16011 #: ../fish/guestfish.pod:813
16012 msgid ""
16013 "If compiled with GNU readline support, various files in the home directory "
16014 "can be used.  See L</FILES>."
16015 msgstr ""
16016
16017 # type: textblock
16018 #: ../fish/guestfish.pod:822
16019 msgid ""
16020 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
16021 "effect as using the B<-v> option."
16022 msgstr ""
16023
16024 # type: textblock
16025 #: ../fish/guestfish.pod:834
16026 msgid ""
16027 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
16028 "the discussion of paths in L<guestfs(3)>."
16029 msgstr ""
16030
16031 # type: textblock
16032 #: ../fish/guestfish.pod:845
16033 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
16034 msgstr ""
16035
16036 # type: =item
16037 #: ../fish/guestfish.pod:847
16038 msgid "PAGER"
16039 msgstr ""
16040
16041 # type: textblock
16042 #: ../fish/guestfish.pod:849
16043 msgid ""
16044 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
16045 "C<more>."
16046 msgstr ""
16047
16048 # type: =head1
16049 #: ../fish/guestfish.pod:864 ../test-tool/libguestfs-test-tool.pod:88
16050 msgid "FILES"
16051 msgstr ""
16052
16053 # type: =item
16054 #: ../fish/guestfish.pod:868
16055 msgid "$HOME/.guestfish"
16056 msgstr ""
16057
16058 # type: textblock
16059 #: ../fish/guestfish.pod:870
16060 msgid ""
16061 "If compiled with GNU readline support, then the command history is saved in "
16062 "this file."
16063 msgstr ""
16064
16065 # type: =item
16066 #: ../fish/guestfish.pod:873
16067 msgid "$HOME/.inputrc"
16068 msgstr ""
16069
16070 # type: =item
16071 #: ../fish/guestfish.pod:875
16072 msgid "/etc/inputrc"
16073 msgstr ""
16074
16075 # type: textblock
16076 #: ../fish/guestfish.pod:877
16077 msgid ""
16078 "If compiled with GNU readline support, then these files can be used to "
16079 "configure readline.  For further information, please see "
16080 "L<readline(3)/INITIALIZATION FILE>."
16081 msgstr ""
16082
16083 # type: textblock
16084 #: ../fish/guestfish.pod:881
16085 msgid "To write rules which only apply to guestfish, use:"
16086 msgstr ""
16087
16088 # type: verbatim
16089 #: ../fish/guestfish.pod:883
16090 #, no-wrap
16091 msgid ""
16092 " $if guestfish\n"
16093 " ...\n"
16094 " $endif\n"
16095 "\n"
16096 msgstr ""
16097
16098 # type: textblock
16099 #: ../fish/guestfish.pod:887
16100 msgid ""
16101 "Variables that you can set in inputrc that change the behaviour of guestfish "
16102 "in useful ways include:"
16103 msgstr ""
16104
16105 # type: =item
16106 #: ../fish/guestfish.pod:892
16107 msgid "completion-ignore-case (default: on)"
16108 msgstr ""
16109
16110 # type: textblock
16111 #: ../fish/guestfish.pod:894
16112 msgid ""
16113 "By default, guestfish will ignore case when tab-completing paths on the "
16114 "disk.  Use:"
16115 msgstr ""
16116
16117 # type: verbatim
16118 #: ../fish/guestfish.pod:897
16119 #, no-wrap
16120 msgid ""
16121 " set completion-ignore-case off\n"
16122 "\n"
16123 msgstr ""
16124
16125 # type: textblock
16126 #: ../fish/guestfish.pod:899
16127 msgid "to make guestfish case sensitive."
16128 msgstr ""
16129
16130 # type: =item
16131 #: ../fish/guestfish.pod:903
16132 msgid "test1.img"
16133 msgstr ""
16134
16135 # type: =item
16136 #: ../fish/guestfish.pod:905
16137 msgid "test2.img (etc)"
16138 msgstr ""
16139
16140 # type: textblock
16141 #: ../fish/guestfish.pod:907
16142 msgid ""
16143 "When using the C<-N> or C<--new> option, the prepared disk or filesystem "
16144 "will be created in the file C<test1.img> in the current directory.  The "
16145 "second use of C<-N> will use C<test2.img> and so on.  Any existing file with "
16146 "the same name will be overwritten."
16147 msgstr ""
16148
16149 # type: textblock
16150 #: ../fish/guestfish.pod:916
16151 msgid ""
16152 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-cat(1)>, L<virt-df(1)>, "
16153 "L<virt-edit(1)>, L<virt-list-filesystems(1)>, L<virt-list-partitions(1)>, "
16154 "L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-resize(1)>, "
16155 "L<virt-tar(1)>, L<virt-win-reg(1)>."
16156 msgstr ""
16157
16158 # type: textblock
16159 #: ../fish/guestfish.pod:939 ../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
16160 msgid ""
16161 "This program is free software; you can redistribute it and/or modify it "
16162 "under the terms of the GNU General Public License as published by the Free "
16163 "Software Foundation; either version 2 of the License, or (at your option) "
16164 "any later version."
16165 msgstr ""
16166
16167 # type: textblock
16168 #: ../fish/guestfish.pod:944 ../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
16169 msgid ""
16170 "This program is distributed in the hope that it will be useful, but WITHOUT "
16171 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
16172 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
16173 "more details."
16174 msgstr ""
16175
16176 # type: textblock
16177 #: ../fish/guestfish.pod:949 ../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
16178 msgid ""
16179 "You should have received a copy of the GNU General Public License along with "
16180 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
16181 "Ave, Cambridge, MA 02139, USA."
16182 msgstr ""
16183
16184 # type: =head2
16185 #: ../fish/guestfish-actions.pod:1
16186 msgid "add-cdrom | cdrom"
16187 msgstr ""
16188
16189 # type: verbatim
16190 #: ../fish/guestfish-actions.pod:3
16191 #, no-wrap
16192 msgid ""
16193 " add-cdrom filename\n"
16194 "\n"
16195 msgstr ""
16196
16197 # type: textblock
16198 #: ../fish/guestfish-actions.pod:15
16199 msgid ""
16200 "This call checks for the existence of C<filename>.  This stops you from "
16201 "specifying other types of drive which are supported by qemu such as C<nbd:> "
16202 "and C<http:> URLs.  To specify those, use the general L</config> call "
16203 "instead."
16204 msgstr ""
16205
16206 # type: textblock
16207 #: ../fish/guestfish-actions.pod:22
16208 msgid ""
16209 "If you just want to add an ISO file (often you use this as an efficient way "
16210 "to transfer large files into the guest), then you should probably use "
16211 "L</add-drive-ro> instead."
16212 msgstr ""
16213
16214 # type: =head2
16215 #: ../fish/guestfish-actions.pod:28
16216 msgid "add-drive | add"
16217 msgstr ""
16218
16219 # type: verbatim
16220 #: ../fish/guestfish-actions.pod:30
16221 #, no-wrap
16222 msgid ""
16223 " add-drive filename\n"
16224 "\n"
16225 msgstr ""
16226
16227 # type: textblock
16228 #: ../fish/guestfish-actions.pod:49 ../fish/guestfish-actions.pod:75
16229 msgid ""
16230 "C<if=...> is set at compile time by the configuration option C<./configure "
16231 "--with-drive-if=...>.  In the rare case where you might need to change this "
16232 "at run time, use L</add-drive-with-if> or L</add-drive-ro-with-if>."
16233 msgstr ""
16234
16235 # type: textblock
16236 #: ../fish/guestfish-actions.pod:54 ../fish/guestfish-actions.pod:80
16237 msgid ""
16238 "Note that this call checks for the existence of C<filename>.  This stops you "
16239 "from specifying other types of drive which are supported by qemu such as "
16240 "C<nbd:> and C<http:> URLs.  To specify those, use the general L</config> "
16241 "call instead."
16242 msgstr ""
16243
16244 # type: =head2
16245 #: ../fish/guestfish-actions.pod:59
16246 msgid "add-drive-ro | add-ro"
16247 msgstr ""
16248
16249 # type: verbatim
16250 #: ../fish/guestfish-actions.pod:61
16251 #, no-wrap
16252 msgid ""
16253 " add-drive-ro filename\n"
16254 "\n"
16255 msgstr ""
16256
16257 # type: =head2
16258 #: ../fish/guestfish-actions.pod:85
16259 msgid "add-drive-ro-with-if"
16260 msgstr ""
16261
16262 # type: verbatim
16263 #: ../fish/guestfish-actions.pod:87
16264 #, no-wrap
16265 msgid ""
16266 " add-drive-ro-with-if filename iface\n"
16267 "\n"
16268 msgstr ""
16269
16270 # type: textblock
16271 #: ../fish/guestfish-actions.pod:89
16272 msgid ""
16273 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
16274 "interface emulation to use at run time."
16275 msgstr ""
16276
16277 # type: =head2
16278 #: ../fish/guestfish-actions.pod:92
16279 msgid "add-drive-with-if"
16280 msgstr ""
16281
16282 # type: verbatim
16283 #: ../fish/guestfish-actions.pod:94
16284 #, no-wrap
16285 msgid ""
16286 " add-drive-with-if filename iface\n"
16287 "\n"
16288 msgstr ""
16289
16290 # type: textblock
16291 #: ../fish/guestfish-actions.pod:96
16292 msgid ""
16293 "This is the same as L</add-drive> but it allows you to specify the QEMU "
16294 "interface emulation to use at run time."
16295 msgstr ""
16296
16297 # type: =head2
16298 #: ../fish/guestfish-actions.pod:99
16299 msgid "aug-clear"
16300 msgstr ""
16301
16302 # type: verbatim
16303 #: ../fish/guestfish-actions.pod:101
16304 #, no-wrap
16305 msgid ""
16306 " aug-clear augpath\n"
16307 "\n"
16308 msgstr ""
16309
16310 # type: =head2
16311 #: ../fish/guestfish-actions.pod:106
16312 msgid "aug-close"
16313 msgstr ""
16314
16315 # type: verbatim
16316 #: ../fish/guestfish-actions.pod:108
16317 #, no-wrap
16318 msgid ""
16319 " aug-close\n"
16320 "\n"
16321 msgstr ""
16322
16323 # type: textblock
16324 #: ../fish/guestfish-actions.pod:110
16325 msgid ""
16326 "Close the current Augeas handle and free up any resources used by it.  After "
16327 "calling this, you have to call L</aug-init> again before you can use any "
16328 "other Augeas functions."
16329 msgstr ""
16330
16331 # type: =head2
16332 #: ../fish/guestfish-actions.pod:115
16333 msgid "aug-defnode"
16334 msgstr ""
16335
16336 # type: verbatim
16337 #: ../fish/guestfish-actions.pod:117
16338 #, no-wrap
16339 msgid ""
16340 " aug-defnode name expr val\n"
16341 "\n"
16342 msgstr ""
16343
16344 # type: textblock
16345 #: ../fish/guestfish-actions.pod:122
16346 msgid ""
16347 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
16348 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
16349 "containing that single node."
16350 msgstr ""
16351
16352 # type: =head2
16353 #: ../fish/guestfish-actions.pod:130
16354 msgid "aug-defvar"
16355 msgstr ""
16356
16357 # type: verbatim
16358 #: ../fish/guestfish-actions.pod:132
16359 #, no-wrap
16360 msgid ""
16361 " aug-defvar name expr\n"
16362 "\n"
16363 msgstr ""
16364
16365 # type: =head2
16366 #: ../fish/guestfish-actions.pod:141
16367 msgid "aug-get"
16368 msgstr ""
16369
16370 # type: verbatim
16371 #: ../fish/guestfish-actions.pod:143
16372 #, no-wrap
16373 msgid ""
16374 " aug-get augpath\n"
16375 "\n"
16376 msgstr ""
16377
16378 # type: =head2
16379 #: ../fish/guestfish-actions.pod:148
16380 msgid "aug-init"
16381 msgstr ""
16382
16383 # type: verbatim
16384 #: ../fish/guestfish-actions.pod:150
16385 #, no-wrap
16386 msgid ""
16387 " aug-init root flags\n"
16388 "\n"
16389 msgstr ""
16390
16391 # type: textblock
16392 #: ../fish/guestfish-actions.pod:156
16393 msgid "You must call this before using any other L</aug-*> commands."
16394 msgstr ""
16395
16396 # type: textblock
16397 #: ../fish/guestfish-actions.pod:191
16398 msgid "Do not load the tree in L</aug-init>."
16399 msgstr ""
16400
16401 # type: textblock
16402 #: ../fish/guestfish-actions.pod:195
16403 msgid "To close the handle, you can call L</aug-close>."
16404 msgstr ""
16405
16406 # type: =head2
16407 #: ../fish/guestfish-actions.pod:199
16408 msgid "aug-insert"
16409 msgstr ""
16410
16411 # type: verbatim
16412 #: ../fish/guestfish-actions.pod:201
16413 #, no-wrap
16414 msgid ""
16415 " aug-insert augpath label true|false\n"
16416 "\n"
16417 msgstr ""
16418
16419 # type: =head2
16420 #: ../fish/guestfish-actions.pod:211
16421 msgid "aug-load"
16422 msgstr ""
16423
16424 # type: verbatim
16425 #: ../fish/guestfish-actions.pod:213
16426 #, no-wrap
16427 msgid ""
16428 " aug-load\n"
16429 "\n"
16430 msgstr ""
16431
16432 # type: =head2
16433 #: ../fish/guestfish-actions.pod:220
16434 msgid "aug-ls"
16435 msgstr ""
16436
16437 # type: verbatim
16438 #: ../fish/guestfish-actions.pod:222
16439 #, no-wrap
16440 msgid ""
16441 " aug-ls augpath\n"
16442 "\n"
16443 msgstr ""
16444
16445 # type: textblock
16446 #: ../fish/guestfish-actions.pod:224
16447 msgid ""
16448 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
16449 "resulting nodes into alphabetical order."
16450 msgstr ""
16451
16452 # type: =head2
16453 #: ../fish/guestfish-actions.pod:227
16454 msgid "aug-match"
16455 msgstr ""
16456
16457 # type: verbatim
16458 #: ../fish/guestfish-actions.pod:229
16459 #, no-wrap
16460 msgid ""
16461 " aug-match augpath\n"
16462 "\n"
16463 msgstr ""
16464
16465 # type: =head2
16466 #: ../fish/guestfish-actions.pod:235
16467 msgid "aug-mv"
16468 msgstr ""
16469
16470 # type: verbatim
16471 #: ../fish/guestfish-actions.pod:237
16472 #, no-wrap
16473 msgid ""
16474 " aug-mv src dest\n"
16475 "\n"
16476 msgstr ""
16477
16478 # type: =head2
16479 #: ../fish/guestfish-actions.pod:242
16480 msgid "aug-rm"
16481 msgstr ""
16482
16483 # type: verbatim
16484 #: ../fish/guestfish-actions.pod:244
16485 #, no-wrap
16486 msgid ""
16487 " aug-rm augpath\n"
16488 "\n"
16489 msgstr ""
16490
16491 # type: =head2
16492 #: ../fish/guestfish-actions.pod:250
16493 msgid "aug-save"
16494 msgstr ""
16495
16496 # type: verbatim
16497 #: ../fish/guestfish-actions.pod:252
16498 #, no-wrap
16499 msgid ""
16500 " aug-save\n"
16501 "\n"
16502 msgstr ""
16503
16504 # type: textblock
16505 #: ../fish/guestfish-actions.pod:256
16506 msgid ""
16507 "The flags which were passed to L</aug-init> affect exactly how files are "
16508 "saved."
16509 msgstr ""
16510
16511 # type: =head2
16512 #: ../fish/guestfish-actions.pod:259
16513 msgid "aug-set"
16514 msgstr ""
16515
16516 # type: verbatim
16517 #: ../fish/guestfish-actions.pod:261
16518 #, no-wrap
16519 msgid ""
16520 " aug-set augpath val\n"
16521 "\n"
16522 msgstr ""
16523
16524 # type: textblock
16525 #: ../fish/guestfish-actions.pod:265
16526 msgid ""
16527 "In the Augeas API, it is possible to clear a node by setting the value to "
16528 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
16529 "this call.  Instead you must use the L</aug-clear> call."
16530 msgstr ""
16531
16532 # type: =head2
16533 #: ../fish/guestfish-actions.pod:270
16534 msgid "available"
16535 msgstr ""
16536
16537 # type: verbatim
16538 #: ../fish/guestfish-actions.pod:272
16539 #, no-wrap
16540 msgid ""
16541 " available 'groups ...'\n"
16542 "\n"
16543 msgstr ""
16544
16545 # type: textblock
16546 #: ../fish/guestfish-actions.pod:278
16547 msgid ""
16548 "The libguestfs groups, and the functions that those groups correspond to, "
16549 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
16550 "runtime by calling L</available-all-groups>."
16551 msgstr ""
16552
16553 # type: textblock
16554 #: ../fish/guestfish-actions.pod:302
16555 msgid "You must call L</launch> before calling this function."
16556 msgstr ""
16557
16558 # type: textblock
16559 #: ../fish/guestfish-actions.pod:324
16560 msgid ""
16561 "This call was added in version C<1.0.80>.  In previous versions of "
16562 "libguestfs all you could do would be to speculatively execute a command to "
16563 "find out if the daemon implemented it.  See also L</version>."
16564 msgstr ""
16565
16566 # type: =head2
16567 #: ../fish/guestfish-actions.pod:331
16568 msgid "available-all-groups"
16569 msgstr ""
16570
16571 # type: verbatim
16572 #: ../fish/guestfish-actions.pod:333
16573 #, no-wrap
16574 msgid ""
16575 " available-all-groups\n"
16576 "\n"
16577 msgstr ""
16578
16579 # type: textblock
16580 #: ../fish/guestfish-actions.pod:335
16581 msgid ""
16582 "This command returns a list of all optional groups that this daemon knows "
16583 "about.  Note this returns both supported and unsupported groups.  To find "
16584 "out which ones the daemon can actually support you have to call "
16585 "L</available> on each member of the returned list."
16586 msgstr ""
16587
16588 # type: textblock
16589 #: ../fish/guestfish-actions.pod:341
16590 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
16591 msgstr ""
16592
16593 # type: =head2
16594 #: ../fish/guestfish-actions.pod:343
16595 msgid "base64-in"
16596 msgstr ""
16597
16598 # type: verbatim
16599 #: ../fish/guestfish-actions.pod:345
16600 #, no-wrap
16601 msgid ""
16602 " base64-in (base64file|-) filename\n"
16603 "\n"
16604 msgstr ""
16605
16606 # type: textblock
16607 #: ../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
16608 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
16609 msgstr ""
16610
16611 # type: =head2
16612 #: ../fish/guestfish-actions.pod:352
16613 msgid "base64-out"
16614 msgstr ""
16615
16616 # type: verbatim
16617 #: ../fish/guestfish-actions.pod:354
16618 #, no-wrap
16619 msgid ""
16620 " base64-out filename (base64file|-)\n"
16621 "\n"
16622 msgstr ""
16623
16624 # type: =head2
16625 #: ../fish/guestfish-actions.pod:361
16626 msgid "blockdev-flushbufs"
16627 msgstr ""
16628
16629 # type: verbatim
16630 #: ../fish/guestfish-actions.pod:363
16631 #, no-wrap
16632 msgid ""
16633 " blockdev-flushbufs device\n"
16634 "\n"
16635 msgstr ""
16636
16637 # type: =head2
16638 #: ../fish/guestfish-actions.pod:370
16639 msgid "blockdev-getbsz"
16640 msgstr ""
16641
16642 # type: verbatim
16643 #: ../fish/guestfish-actions.pod:372
16644 #, no-wrap
16645 msgid ""
16646 " blockdev-getbsz device\n"
16647 "\n"
16648 msgstr ""
16649
16650 # type: =head2
16651 #: ../fish/guestfish-actions.pod:381
16652 msgid "blockdev-getro"
16653 msgstr ""
16654
16655 # type: verbatim
16656 #: ../fish/guestfish-actions.pod:383
16657 #, no-wrap
16658 msgid ""
16659 " blockdev-getro device\n"
16660 "\n"
16661 msgstr ""
16662
16663 # type: =head2
16664 #: ../fish/guestfish-actions.pod:390
16665 msgid "blockdev-getsize64"
16666 msgstr ""
16667
16668 # type: verbatim
16669 #: ../fish/guestfish-actions.pod:392
16670 #, no-wrap
16671 msgid ""
16672 " blockdev-getsize64 device\n"
16673 "\n"
16674 msgstr ""
16675
16676 # type: textblock
16677 #: ../fish/guestfish-actions.pod:396
16678 msgid "See also L</blockdev-getsz>."
16679 msgstr ""
16680
16681 # type: =head2
16682 #: ../fish/guestfish-actions.pod:400
16683 msgid "blockdev-getss"
16684 msgstr ""
16685
16686 # type: verbatim
16687 #: ../fish/guestfish-actions.pod:402
16688 #, no-wrap
16689 msgid ""
16690 " blockdev-getss device\n"
16691 "\n"
16692 msgstr ""
16693
16694 # type: textblock
16695 #: ../fish/guestfish-actions.pod:407
16696 msgid "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
16697 msgstr ""
16698
16699 # type: =head2
16700 #: ../fish/guestfish-actions.pod:412
16701 msgid "blockdev-getsz"
16702 msgstr ""
16703
16704 # type: verbatim
16705 #: ../fish/guestfish-actions.pod:414
16706 #, no-wrap
16707 msgid ""
16708 " blockdev-getsz device\n"
16709 "\n"
16710 msgstr ""
16711
16712 # type: textblock
16713 #: ../fish/guestfish-actions.pod:419
16714 msgid ""
16715 "See also L</blockdev-getss> for the real sector size of the device, and "
16716 "L</blockdev-getsize64> for the more useful I<size in bytes>."
16717 msgstr ""
16718
16719 # type: =head2
16720 #: ../fish/guestfish-actions.pod:425
16721 msgid "blockdev-rereadpt"
16722 msgstr ""
16723
16724 # type: verbatim
16725 #: ../fish/guestfish-actions.pod:427
16726 #, no-wrap
16727 msgid ""
16728 " blockdev-rereadpt device\n"
16729 "\n"
16730 msgstr ""
16731
16732 # type: =head2
16733 #: ../fish/guestfish-actions.pod:433
16734 msgid "blockdev-setbsz"
16735 msgstr ""
16736
16737 # type: verbatim
16738 #: ../fish/guestfish-actions.pod:435
16739 #, no-wrap
16740 msgid ""
16741 " blockdev-setbsz device blocksize\n"
16742 "\n"
16743 msgstr ""
16744
16745 # type: =head2
16746 #: ../fish/guestfish-actions.pod:444
16747 msgid "blockdev-setro"
16748 msgstr ""
16749
16750 # type: verbatim
16751 #: ../fish/guestfish-actions.pod:446
16752 #, no-wrap
16753 msgid ""
16754 " blockdev-setro device\n"
16755 "\n"
16756 msgstr ""
16757
16758 # type: =head2
16759 #: ../fish/guestfish-actions.pod:452
16760 msgid "blockdev-setrw"
16761 msgstr ""
16762
16763 # type: verbatim
16764 #: ../fish/guestfish-actions.pod:454
16765 #, no-wrap
16766 msgid ""
16767 " blockdev-setrw device\n"
16768 "\n"
16769 msgstr ""
16770
16771 # type: =head2
16772 #: ../fish/guestfish-actions.pod:460
16773 msgid "case-sensitive-path"
16774 msgstr ""
16775
16776 # type: verbatim
16777 #: ../fish/guestfish-actions.pod:462
16778 #, no-wrap
16779 msgid ""
16780 " case-sensitive-path path\n"
16781 "\n"
16782 msgstr ""
16783
16784 # type: textblock
16785 #: ../fish/guestfish-actions.pod:486
16786 msgid ""
16787 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return "
16788 "C<\"/WINDOWS/system32\"> (the exact return value would depend on details of "
16789 "how the directories were originally created under Windows)."
16790 msgstr ""
16791
16792 # type: textblock
16793 #: ../fish/guestfish-actions.pod:494
16794 msgid "See also L</realpath>."
16795 msgstr ""
16796
16797 # type: =head2
16798 #: ../fish/guestfish-actions.pod:496
16799 msgid "cat"
16800 msgstr ""
16801
16802 # type: verbatim
16803 #: ../fish/guestfish-actions.pod:498
16804 #, no-wrap
16805 msgid ""
16806 " cat path\n"
16807 "\n"
16808 msgstr ""
16809
16810 # type: textblock
16811 #: ../fish/guestfish-actions.pod:502
16812 msgid ""
16813 "Note that this function cannot correctly handle binary files (specifically, "
16814 "files containing C<\\0> character which is treated as end of string).  For "
16815 "those you need to use the L</read-file> or L</download> functions which have "
16816 "a more complex interface."
16817 msgstr ""
16818
16819 # type: =head2
16820 #: ../fish/guestfish-actions.pod:510
16821 msgid "checksum"
16822 msgstr ""
16823
16824 # type: verbatim
16825 #: ../fish/guestfish-actions.pod:512
16826 #, no-wrap
16827 msgid ""
16828 " checksum csumtype path\n"
16829 "\n"
16830 msgstr ""
16831
16832 # type: textblock
16833 #: ../fish/guestfish-actions.pod:555
16834 msgid "To get the checksum for a device, use L</checksum-device>."
16835 msgstr ""
16836
16837 # type: textblock
16838 #: ../fish/guestfish-actions.pod:557
16839 msgid "To get the checksums for many files, use L</checksums-out>."
16840 msgstr ""
16841
16842 # type: =head2
16843 #: ../fish/guestfish-actions.pod:559
16844 msgid "checksum-device"
16845 msgstr ""
16846
16847 # type: verbatim
16848 #: ../fish/guestfish-actions.pod:561
16849 #, no-wrap
16850 msgid ""
16851 " checksum-device csumtype device\n"
16852 "\n"
16853 msgstr ""
16854
16855 # type: textblock
16856 #: ../fish/guestfish-actions.pod:563
16857 msgid ""
16858 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
16859 "device named C<device>.  For the types of checksums supported see the "
16860 "L</checksum> command."
16861 msgstr ""
16862
16863 # type: =head2
16864 #: ../fish/guestfish-actions.pod:567
16865 msgid "checksums-out"
16866 msgstr ""
16867
16868 # type: verbatim
16869 #: ../fish/guestfish-actions.pod:569
16870 #, no-wrap
16871 msgid ""
16872 " checksums-out csumtype directory (sumsfile|-)\n"
16873 "\n"
16874 msgstr ""
16875
16876 # type: =head2
16877 #: ../fish/guestfish-actions.pod:585
16878 msgid "chmod"
16879 msgstr ""
16880
16881 # type: verbatim
16882 #: ../fish/guestfish-actions.pod:587
16883 #, no-wrap
16884 msgid ""
16885 " chmod mode path\n"
16886 "\n"
16887 msgstr ""
16888
16889 # type: =head2
16890 #: ../fish/guestfish-actions.pod:598
16891 msgid "chown"
16892 msgstr ""
16893
16894 # type: verbatim
16895 #: ../fish/guestfish-actions.pod:600
16896 #, no-wrap
16897 msgid ""
16898 " chown owner group path\n"
16899 "\n"
16900 msgstr ""
16901
16902 # type: =head2
16903 #: ../fish/guestfish-actions.pod:608
16904 msgid "command"
16905 msgstr ""
16906
16907 # type: verbatim
16908 #: ../fish/guestfish-actions.pod:610
16909 #, no-wrap
16910 msgid ""
16911 " command 'arguments ...'\n"
16912 "\n"
16913 msgstr ""
16914
16915 # type: textblock
16916 #: ../fish/guestfish-actions.pod:617
16917 msgid ""
16918 "The single parameter is an argv-style list of arguments.  The first element "
16919 "is the name of the program to run.  Subsequent elements are parameters.  The "
16920 "list must be non-empty (ie. must contain a program name).  Note that the "
16921 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
16922 msgstr ""
16923
16924 # type: =head2
16925 #: ../fish/guestfish-actions.pod:645
16926 msgid "command-lines"
16927 msgstr ""
16928
16929 # type: verbatim
16930 #: ../fish/guestfish-actions.pod:647
16931 #, no-wrap
16932 msgid ""
16933 " command-lines 'arguments ...'\n"
16934 "\n"
16935 msgstr ""
16936
16937 # type: textblock
16938 #: ../fish/guestfish-actions.pod:649
16939 msgid "This is the same as L</command>, but splits the result into a list of lines."
16940 msgstr ""
16941
16942 # type: textblock
16943 #: ../fish/guestfish-actions.pod:652
16944 msgid "See also: L</sh-lines>"
16945 msgstr ""
16946
16947 # type: =head2
16948 #: ../fish/guestfish-actions.pod:657
16949 msgid "config"
16950 msgstr ""
16951
16952 # type: verbatim
16953 #: ../fish/guestfish-actions.pod:659
16954 #, no-wrap
16955 msgid ""
16956 " config qemuparam qemuvalue\n"
16957 "\n"
16958 msgstr ""
16959
16960 # type: =head2
16961 #: ../fish/guestfish-actions.pod:670
16962 msgid "copy-size"
16963 msgstr ""
16964
16965 # type: verbatim
16966 #: ../fish/guestfish-actions.pod:672
16967 #, no-wrap
16968 msgid ""
16969 " copy-size src dest size\n"
16970 "\n"
16971 msgstr ""
16972
16973 # type: =head2
16974 #: ../fish/guestfish-actions.pod:680
16975 msgid "cp"
16976 msgstr ""
16977
16978 # type: verbatim
16979 #: ../fish/guestfish-actions.pod:682
16980 #, no-wrap
16981 msgid ""
16982 " cp src dest\n"
16983 "\n"
16984 msgstr ""
16985
16986 # type: =head2
16987 #: ../fish/guestfish-actions.pod:687
16988 msgid "cp-a"
16989 msgstr ""
16990
16991 # type: verbatim
16992 #: ../fish/guestfish-actions.pod:689
16993 #, no-wrap
16994 msgid ""
16995 " cp-a src dest\n"
16996 "\n"
16997 msgstr ""
16998
16999 # type: =head2
17000 #: ../fish/guestfish-actions.pod:694
17001 msgid "dd"
17002 msgstr ""
17003
17004 # type: verbatim
17005 #: ../fish/guestfish-actions.pod:696
17006 #, no-wrap
17007 msgid ""
17008 " dd src dest\n"
17009 "\n"
17010 msgstr ""
17011
17012 # type: textblock
17013 #: ../fish/guestfish-actions.pod:703
17014 msgid ""
17015 "If the destination is a device, it must be as large or larger than the "
17016 "source file or device, otherwise the copy will fail.  This command cannot do "
17017 "partial copies (see L</copy-size>)."
17018 msgstr ""
17019
17020 # type: =head2
17021 #: ../fish/guestfish-actions.pod:707
17022 msgid "debug"
17023 msgstr ""
17024
17025 # type: verbatim
17026 #: ../fish/guestfish-actions.pod:709
17027 #, no-wrap
17028 msgid ""
17029 " debug subcmd 'extraargs ...'\n"
17030 "\n"
17031 msgstr ""
17032
17033 # type: textblock
17034 #: ../fish/guestfish-actions.pod:711
17035 msgid ""
17036 "The L</debug> command exposes some internals of C<guestfsd> (the guestfs "
17037 "daemon) that runs inside the qemu subprocess."
17038 msgstr ""
17039
17040 # type: =head2
17041 #: ../fish/guestfish-actions.pod:719
17042 msgid "debug-upload"
17043 msgstr ""
17044
17045 # type: verbatim
17046 #: ../fish/guestfish-actions.pod:721
17047 #, no-wrap
17048 msgid ""
17049 " debug-upload (filename|-) tmpname mode\n"
17050 "\n"
17051 msgstr ""
17052
17053 # type: textblock
17054 #: ../fish/guestfish-actions.pod:723
17055 msgid "The L</debug-upload> command uploads a file to the libguestfs appliance."
17056 msgstr ""
17057
17058 # type: =head2
17059 #: ../fish/guestfish-actions.pod:732
17060 msgid "df"
17061 msgstr ""
17062
17063 # type: verbatim
17064 #: ../fish/guestfish-actions.pod:734
17065 #, no-wrap
17066 msgid ""
17067 " df\n"
17068 "\n"
17069 msgstr ""
17070
17071 # type: =head2
17072 #: ../fish/guestfish-actions.pod:742
17073 msgid "df-h"
17074 msgstr ""
17075
17076 # type: verbatim
17077 #: ../fish/guestfish-actions.pod:744
17078 #, no-wrap
17079 msgid ""
17080 " df-h\n"
17081 "\n"
17082 msgstr ""
17083
17084 # type: =head2
17085 #: ../fish/guestfish-actions.pod:753
17086 msgid "dmesg"
17087 msgstr ""
17088
17089 # type: verbatim
17090 #: ../fish/guestfish-actions.pod:755
17091 #, no-wrap
17092 msgid ""
17093 " dmesg\n"
17094 "\n"
17095 msgstr ""
17096
17097 # type: textblock
17098 #: ../fish/guestfish-actions.pod:761
17099 msgid ""
17100 "Another way to get the same information is to enable verbose messages with "
17101 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
17102 "before running the program."
17103 msgstr ""
17104
17105 # type: =head2
17106 #: ../fish/guestfish-actions.pod:766
17107 msgid "download"
17108 msgstr ""
17109
17110 # type: verbatim
17111 #: ../fish/guestfish-actions.pod:768
17112 #, no-wrap
17113 msgid ""
17114 " download remotefilename (filename|-)\n"
17115 "\n"
17116 msgstr ""
17117
17118 # type: textblock
17119 #: ../fish/guestfish-actions.pod:775
17120 msgid "See also L</upload>, L</cat>."
17121 msgstr ""
17122
17123 # type: =head2
17124 #: ../fish/guestfish-actions.pod:779
17125 msgid "drop-caches"
17126 msgstr ""
17127
17128 # type: verbatim
17129 #: ../fish/guestfish-actions.pod:781
17130 #, no-wrap
17131 msgid ""
17132 " drop-caches whattodrop\n"
17133 "\n"
17134 msgstr ""
17135
17136 # type: =head2
17137 #: ../fish/guestfish-actions.pod:793
17138 msgid "du"
17139 msgstr ""
17140
17141 # type: verbatim
17142 #: ../fish/guestfish-actions.pod:795
17143 #, no-wrap
17144 msgid ""
17145 " du path\n"
17146 "\n"
17147 msgstr ""
17148
17149 # type: =head2
17150 #: ../fish/guestfish-actions.pod:807
17151 msgid "e2fsck-f"
17152 msgstr ""
17153
17154 # type: verbatim
17155 #: ../fish/guestfish-actions.pod:809
17156 #, no-wrap
17157 msgid ""
17158 " e2fsck-f device\n"
17159 "\n"
17160 msgstr ""
17161
17162 # type: textblock
17163 #: ../fish/guestfish-actions.pod:815
17164 msgid ""
17165 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
17166 "should use L</fsck>."
17167 msgstr ""
17168
17169 # type: =head2
17170 #: ../fish/guestfish-actions.pod:818
17171 msgid "echo-daemon"
17172 msgstr ""
17173
17174 # type: verbatim
17175 #: ../fish/guestfish-actions.pod:820
17176 #, no-wrap
17177 msgid ""
17178 " echo-daemon 'words ...'\n"
17179 "\n"
17180 msgstr ""
17181
17182 # type: textblock
17183 #: ../fish/guestfish-actions.pod:827
17184 msgid "See also L</ping-daemon>."
17185 msgstr ""
17186
17187 # type: =head2
17188 #: ../fish/guestfish-actions.pod:829
17189 msgid "egrep"
17190 msgstr ""
17191
17192 # type: verbatim
17193 #: ../fish/guestfish-actions.pod:831
17194 #, no-wrap
17195 msgid ""
17196 " egrep regex path\n"
17197 "\n"
17198 msgstr ""
17199
17200 # type: =head2
17201 #: ../fish/guestfish-actions.pod:839
17202 msgid "egrepi"
17203 msgstr ""
17204
17205 # type: verbatim
17206 #: ../fish/guestfish-actions.pod:841
17207 #, no-wrap
17208 msgid ""
17209 " egrepi regex path\n"
17210 "\n"
17211 msgstr ""
17212
17213 # type: =head2
17214 #: ../fish/guestfish-actions.pod:849
17215 msgid "equal"
17216 msgstr ""
17217
17218 # type: verbatim
17219 #: ../fish/guestfish-actions.pod:851
17220 #, no-wrap
17221 msgid ""
17222 " equal file1 file2\n"
17223 "\n"
17224 msgstr ""
17225
17226 # type: =head2
17227 #: ../fish/guestfish-actions.pod:858
17228 msgid "exists"
17229 msgstr ""
17230
17231 # type: verbatim
17232 #: ../fish/guestfish-actions.pod:860
17233 #, no-wrap
17234 msgid ""
17235 " exists path\n"
17236 "\n"
17237 msgstr ""
17238
17239 # type: textblock
17240 #: ../fish/guestfish-actions.pod:865
17241 msgid "See also L</is-file>, L</is-dir>, L</stat>."
17242 msgstr ""
17243
17244 # type: =head2
17245 #: ../fish/guestfish-actions.pod:867
17246 msgid "fallocate"
17247 msgstr ""
17248
17249 # type: verbatim
17250 #: ../fish/guestfish-actions.pod:869
17251 #, no-wrap
17252 msgid ""
17253 " fallocate path len\n"
17254 "\n"
17255 msgstr ""
17256
17257 # type: =head2
17258 #: ../fish/guestfish-actions.pod:886
17259 msgid "fallocate64"
17260 msgstr ""
17261
17262 # type: verbatim
17263 #: ../fish/guestfish-actions.pod:888
17264 #, no-wrap
17265 msgid ""
17266 " fallocate64 path len\n"
17267 "\n"
17268 msgstr ""
17269
17270 # type: textblock
17271 #: ../fish/guestfish-actions.pod:894
17272 msgid ""
17273 "Note that this call allocates disk blocks for the file.  To create a sparse "
17274 "file use L</truncate-size> instead."
17275 msgstr ""
17276
17277 # type: textblock
17278 #: ../fish/guestfish-actions.pod:897
17279 msgid ""
17280 "The deprecated call L</fallocate> does the same, but owing to an oversight "
17281 "it only allowed 30 bit lengths to be specified, effectively limiting the "
17282 "maximum size of files created through that call to 1GB."
17283 msgstr ""
17284
17285 # type: =head2
17286 #: ../fish/guestfish-actions.pod:906
17287 msgid "fgrep"
17288 msgstr ""
17289
17290 # type: verbatim
17291 #: ../fish/guestfish-actions.pod:908
17292 #, no-wrap
17293 msgid ""
17294 " fgrep pattern path\n"
17295 "\n"
17296 msgstr ""
17297
17298 # type: =head2
17299 #: ../fish/guestfish-actions.pod:916
17300 msgid "fgrepi"
17301 msgstr ""
17302
17303 # type: verbatim
17304 #: ../fish/guestfish-actions.pod:918
17305 #, no-wrap
17306 msgid ""
17307 " fgrepi pattern path\n"
17308 "\n"
17309 msgstr ""
17310
17311 # type: =head2
17312 #: ../fish/guestfish-actions.pod:926
17313 msgid "file"
17314 msgstr ""
17315
17316 # type: verbatim
17317 #: ../fish/guestfish-actions.pod:928
17318 #, no-wrap
17319 msgid ""
17320 " file path\n"
17321 "\n"
17322 msgstr ""
17323
17324 # type: textblock
17325 #: ../fish/guestfish-actions.pod:940
17326 msgid ""
17327 "This command can also be used on C</dev/> devices (and partitions, LV "
17328 "names).  You can for example use this to determine if a device contains a "
17329 "filesystem, although it's usually better to use L</vfs-type>."
17330 msgstr ""
17331
17332 # type: =head2
17333 #: ../fish/guestfish-actions.pod:950
17334 msgid "file-architecture"
17335 msgstr ""
17336
17337 # type: verbatim
17338 #: ../fish/guestfish-actions.pod:952
17339 #, no-wrap
17340 msgid ""
17341 " file-architecture filename\n"
17342 "\n"
17343 msgstr ""
17344
17345 # type: =head2
17346 #: ../fish/guestfish-actions.pod:1055
17347 msgid "filesize"
17348 msgstr ""
17349
17350 # type: verbatim
17351 #: ../fish/guestfish-actions.pod:1057
17352 #, no-wrap
17353 msgid ""
17354 " filesize file\n"
17355 "\n"
17356 msgstr ""
17357
17358 # type: textblock
17359 #: ../fish/guestfish-actions.pod:1061
17360 msgid ""
17361 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, "
17362 "L</is-file> etc.  To get the size of block devices, use "
17363 "L</blockdev-getsize64>."
17364 msgstr ""
17365
17366 # type: =head2
17367 #: ../fish/guestfish-actions.pod:1065
17368 msgid "fill"
17369 msgstr ""
17370
17371 # type: verbatim
17372 #: ../fish/guestfish-actions.pod:1067
17373 #, no-wrap
17374 msgid ""
17375 " fill c len path\n"
17376 "\n"
17377 msgstr ""
17378
17379 # type: textblock
17380 #: ../fish/guestfish-actions.pod:1073
17381 msgid ""
17382 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
17383 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
17384 "L</fill-pattern>."
17385 msgstr ""
17386
17387 # type: =head2
17388 #: ../fish/guestfish-actions.pod:1078
17389 msgid "fill-pattern"
17390 msgstr ""
17391
17392 # type: verbatim
17393 #: ../fish/guestfish-actions.pod:1080
17394 #, no-wrap
17395 msgid ""
17396 " fill-pattern pattern len path\n"
17397 "\n"
17398 msgstr ""
17399
17400 # type: textblock
17401 #: ../fish/guestfish-actions.pod:1082
17402 msgid ""
17403 "This function is like L</fill> except that it creates a new file of length "
17404 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
17405 "is truncated if necessary to ensure the length of the file is exactly C<len> "
17406 "bytes."
17407 msgstr ""
17408
17409 # type: =head2
17410 #: ../fish/guestfish-actions.pod:1087
17411 msgid "find"
17412 msgstr ""
17413
17414 # type: verbatim
17415 #: ../fish/guestfish-actions.pod:1089
17416 #, no-wrap
17417 msgid ""
17418 " find directory\n"
17419 "\n"
17420 msgstr ""
17421
17422 # type: textblock
17423 #: ../fish/guestfish-actions.pod:1103
17424 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
17425 msgstr ""
17426
17427 # type: textblock
17428 #: ../fish/guestfish-actions.pod:1116
17429 msgid "See also L</find0>."
17430 msgstr ""
17431
17432 # type: =head2
17433 #: ../fish/guestfish-actions.pod:1121
17434 msgid "find0"
17435 msgstr ""
17436
17437 # type: verbatim
17438 #: ../fish/guestfish-actions.pod:1123
17439 #, no-wrap
17440 msgid ""
17441 " find0 directory (files|-)\n"
17442 "\n"
17443 msgstr ""
17444
17445 # type: textblock
17446 #: ../fish/guestfish-actions.pod:1129
17447 msgid "This command works the same way as L</find> with the following exceptions:"
17448 msgstr ""
17449
17450 # type: =head2
17451 #: ../fish/guestfish-actions.pod:1156
17452 msgid "findfs-label"
17453 msgstr ""
17454
17455 # type: verbatim
17456 #: ../fish/guestfish-actions.pod:1158
17457 #, no-wrap
17458 msgid ""
17459 " findfs-label label\n"
17460 "\n"
17461 msgstr ""
17462
17463 # type: textblock
17464 #: ../fish/guestfish-actions.pod:1164
17465 msgid "To find the label of a filesystem, use L</vfs-label>."
17466 msgstr ""
17467
17468 # type: =head2
17469 #: ../fish/guestfish-actions.pod:1166
17470 msgid "findfs-uuid"
17471 msgstr ""
17472
17473 # type: verbatim
17474 #: ../fish/guestfish-actions.pod:1168
17475 #, no-wrap
17476 msgid ""
17477 " findfs-uuid uuid\n"
17478 "\n"
17479 msgstr ""
17480
17481 # type: textblock
17482 #: ../fish/guestfish-actions.pod:1174
17483 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
17484 msgstr ""
17485
17486 # type: =head2
17487 #: ../fish/guestfish-actions.pod:1176
17488 msgid "fsck"
17489 msgstr ""
17490
17491 # type: verbatim
17492 #: ../fish/guestfish-actions.pod:1178
17493 #, no-wrap
17494 msgid ""
17495 " fsck fstype device\n"
17496 "\n"
17497 msgstr ""
17498
17499 # type: =head2
17500 #: ../fish/guestfish-actions.pod:1208
17501 msgid "get-append"
17502 msgstr ""
17503
17504 # type: verbatim
17505 #: ../fish/guestfish-actions.pod:1210
17506 #, no-wrap
17507 msgid ""
17508 " get-append\n"
17509 "\n"
17510 msgstr ""
17511
17512 # type: =head2
17513 #: ../fish/guestfish-actions.pod:1217
17514 msgid "get-autosync"
17515 msgstr ""
17516
17517 # type: verbatim
17518 #: ../fish/guestfish-actions.pod:1219
17519 #, no-wrap
17520 msgid ""
17521 " get-autosync\n"
17522 "\n"
17523 msgstr ""
17524
17525 # type: =head2
17526 #: ../fish/guestfish-actions.pod:1223
17527 msgid "get-direct"
17528 msgstr ""
17529
17530 # type: verbatim
17531 #: ../fish/guestfish-actions.pod:1225
17532 #, no-wrap
17533 msgid ""
17534 " get-direct\n"
17535 "\n"
17536 msgstr ""
17537
17538 # type: =head2
17539 #: ../fish/guestfish-actions.pod:1229
17540 msgid "get-e2label"
17541 msgstr ""
17542
17543 # type: verbatim
17544 #: ../fish/guestfish-actions.pod:1231
17545 #, no-wrap
17546 msgid ""
17547 " get-e2label device\n"
17548 "\n"
17549 msgstr ""
17550
17551 # type: =head2
17552 #: ../fish/guestfish-actions.pod:1243
17553 msgid "get-e2uuid"
17554 msgstr ""
17555
17556 # type: verbatim
17557 #: ../fish/guestfish-actions.pod:1245
17558 #, no-wrap
17559 msgid ""
17560 " get-e2uuid device\n"
17561 "\n"
17562 msgstr ""
17563
17564 # type: =head2
17565 #: ../fish/guestfish-actions.pod:1257
17566 msgid "get-memsize"
17567 msgstr ""
17568
17569 # type: verbatim
17570 #: ../fish/guestfish-actions.pod:1259
17571 #, no-wrap
17572 msgid ""
17573 " get-memsize\n"
17574 "\n"
17575 msgstr ""
17576
17577 # type: textblock
17578 #: ../fish/guestfish-actions.pod:1264
17579 msgid ""
17580 "If L</set-memsize> was not called on this handle, and if "
17581 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
17582 "value for memsize."
17583 msgstr ""
17584
17585 # type: =head2
17586 #: ../fish/guestfish-actions.pod:1271
17587 msgid "get-network"
17588 msgstr ""
17589
17590 # type: verbatim
17591 #: ../fish/guestfish-actions.pod:1273
17592 #, no-wrap
17593 msgid ""
17594 " get-network\n"
17595 "\n"
17596 msgstr ""
17597
17598 # type: =head2
17599 #: ../fish/guestfish-actions.pod:1277
17600 msgid "get-path"
17601 msgstr ""
17602
17603 # type: verbatim
17604 #: ../fish/guestfish-actions.pod:1279
17605 #, no-wrap
17606 msgid ""
17607 " get-path\n"
17608 "\n"
17609 msgstr ""
17610
17611 # type: =head2
17612 #: ../fish/guestfish-actions.pod:1286
17613 msgid "get-pid | pid"
17614 msgstr ""
17615
17616 # type: verbatim
17617 #: ../fish/guestfish-actions.pod:1288
17618 #, no-wrap
17619 msgid ""
17620 " get-pid\n"
17621 "\n"
17622 msgstr ""
17623
17624 # type: =head2
17625 #: ../fish/guestfish-actions.pod:1295
17626 msgid "get-qemu"
17627 msgstr ""
17628
17629 # type: verbatim
17630 #: ../fish/guestfish-actions.pod:1297
17631 #, no-wrap
17632 msgid ""
17633 " get-qemu\n"
17634 "\n"
17635 msgstr ""
17636
17637 # type: =head2
17638 #: ../fish/guestfish-actions.pod:1304
17639 msgid "get-recovery-proc"
17640 msgstr ""
17641
17642 # type: verbatim
17643 #: ../fish/guestfish-actions.pod:1306
17644 #, no-wrap
17645 msgid ""
17646 " get-recovery-proc\n"
17647 "\n"
17648 msgstr ""
17649
17650 # type: =head2
17651 #: ../fish/guestfish-actions.pod:1310
17652 msgid "get-selinux"
17653 msgstr ""
17654
17655 # type: verbatim
17656 #: ../fish/guestfish-actions.pod:1312
17657 #, no-wrap
17658 msgid ""
17659 " get-selinux\n"
17660 "\n"
17661 msgstr ""
17662
17663 # type: textblock
17664 #: ../fish/guestfish-actions.pod:1314
17665 msgid ""
17666 "This returns the current setting of the selinux flag which is passed to the "
17667 "appliance at boot time.  See L</set-selinux>."
17668 msgstr ""
17669
17670 # type: =head2
17671 #: ../fish/guestfish-actions.pod:1320
17672 msgid "get-state"
17673 msgstr ""
17674
17675 # type: verbatim
17676 #: ../fish/guestfish-actions.pod:1322
17677 #, no-wrap
17678 msgid ""
17679 " get-state\n"
17680 "\n"
17681 msgstr ""
17682
17683 # type: =head2
17684 #: ../fish/guestfish-actions.pod:1329
17685 msgid "get-trace"
17686 msgstr ""
17687
17688 # type: verbatim
17689 #: ../fish/guestfish-actions.pod:1331
17690 #, no-wrap
17691 msgid ""
17692 " get-trace\n"
17693 "\n"
17694 msgstr ""
17695
17696 # type: =head2
17697 #: ../fish/guestfish-actions.pod:1335
17698 msgid "get-umask"
17699 msgstr ""
17700
17701 # type: verbatim
17702 #: ../fish/guestfish-actions.pod:1337
17703 #, no-wrap
17704 msgid ""
17705 " get-umask\n"
17706 "\n"
17707 msgstr ""
17708
17709 # type: textblock
17710 #: ../fish/guestfish-actions.pod:1339
17711 msgid ""
17712 "Return the current umask.  By default the umask is C<022> unless it has been "
17713 "set by calling L</umask>."
17714 msgstr ""
17715
17716 # type: =head2
17717 #: ../fish/guestfish-actions.pod:1342
17718 msgid "get-verbose"
17719 msgstr ""
17720
17721 # type: verbatim
17722 #: ../fish/guestfish-actions.pod:1344
17723 #, no-wrap
17724 msgid ""
17725 " get-verbose\n"
17726 "\n"
17727 msgstr ""
17728
17729 # type: =head2
17730 #: ../fish/guestfish-actions.pod:1348
17731 msgid "getcon"
17732 msgstr ""
17733
17734 # type: verbatim
17735 #: ../fish/guestfish-actions.pod:1350
17736 #, no-wrap
17737 msgid ""
17738 " getcon\n"
17739 "\n"
17740 msgstr ""
17741
17742 # type: textblock
17743 #: ../fish/guestfish-actions.pod:1354
17744 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
17745 msgstr ""
17746
17747 # type: =head2
17748 #: ../fish/guestfish-actions.pod:1357
17749 msgid "getxattrs"
17750 msgstr ""
17751
17752 # type: verbatim
17753 #: ../fish/guestfish-actions.pod:1359
17754 #, no-wrap
17755 msgid ""
17756 " getxattrs path\n"
17757 "\n"
17758 msgstr ""
17759
17760 # type: textblock
17761 #: ../fish/guestfish-actions.pod:1367
17762 msgid "See also: L</lgetxattrs>, L<attr(5)>."
17763 msgstr ""
17764
17765 # type: =head2
17766 #: ../fish/guestfish-actions.pod:1369
17767 msgid "glob-expand"
17768 msgstr ""
17769
17770 # type: verbatim
17771 #: ../fish/guestfish-actions.pod:1371
17772 #, no-wrap
17773 msgid ""
17774 " glob-expand pattern\n"
17775 "\n"
17776 msgstr ""
17777
17778 # type: =head2
17779 #: ../fish/guestfish-actions.pod:1384
17780 msgid "grep"
17781 msgstr ""
17782
17783 # type: verbatim
17784 #: ../fish/guestfish-actions.pod:1386
17785 #, no-wrap
17786 msgid ""
17787 " grep regex path\n"
17788 "\n"
17789 msgstr ""
17790
17791 # type: =head2
17792 #: ../fish/guestfish-actions.pod:1394
17793 msgid "grepi"
17794 msgstr ""
17795
17796 # type: verbatim
17797 #: ../fish/guestfish-actions.pod:1396
17798 #, no-wrap
17799 msgid ""
17800 " grepi regex path\n"
17801 "\n"
17802 msgstr ""
17803
17804 # type: =head2
17805 #: ../fish/guestfish-actions.pod:1404
17806 msgid "grub-install"
17807 msgstr ""
17808
17809 # type: verbatim
17810 #: ../fish/guestfish-actions.pod:1406
17811 #, no-wrap
17812 msgid ""
17813 " grub-install root device\n"
17814 "\n"
17815 msgstr ""
17816
17817 # type: =head2
17818 #: ../fish/guestfish-actions.pod:1422
17819 msgid "head"
17820 msgstr ""
17821
17822 # type: verbatim
17823 #: ../fish/guestfish-actions.pod:1424
17824 #, no-wrap
17825 msgid ""
17826 " head path\n"
17827 "\n"
17828 msgstr ""
17829
17830 # type: =head2
17831 #: ../fish/guestfish-actions.pod:1432
17832 msgid "head-n"
17833 msgstr ""
17834
17835 # type: verbatim
17836 #: ../fish/guestfish-actions.pod:1434
17837 #, no-wrap
17838 msgid ""
17839 " head-n nrlines path\n"
17840 "\n"
17841 msgstr ""
17842
17843 # type: =head2
17844 #: ../fish/guestfish-actions.pod:1447
17845 msgid "hexdump"
17846 msgstr ""
17847
17848 # type: verbatim
17849 #: ../fish/guestfish-actions.pod:1449
17850 #, no-wrap
17851 msgid ""
17852 " hexdump path\n"
17853 "\n"
17854 msgstr ""
17855
17856 # type: =head2
17857 #: ../fish/guestfish-actions.pod:1457
17858 msgid "initrd-cat"
17859 msgstr ""
17860
17861 # type: verbatim
17862 #: ../fish/guestfish-actions.pod:1459
17863 #, no-wrap
17864 msgid ""
17865 " initrd-cat initrdpath filename\n"
17866 "\n"
17867 msgstr ""
17868
17869 # type: textblock
17870 #: ../fish/guestfish-actions.pod:1471
17871 msgid "See also L</initrd-list>."
17872 msgstr ""
17873
17874 # type: =head2
17875 #: ../fish/guestfish-actions.pod:1476
17876 msgid "initrd-list"
17877 msgstr ""
17878
17879 # type: verbatim
17880 #: ../fish/guestfish-actions.pod:1478
17881 #, no-wrap
17882 msgid ""
17883 " initrd-list path\n"
17884 "\n"
17885 msgstr ""
17886
17887 # type: =head2
17888 #: ../fish/guestfish-actions.pod:1490
17889 msgid "inotify-add-watch"
17890 msgstr ""
17891
17892 # type: verbatim
17893 #: ../fish/guestfish-actions.pod:1492
17894 #, no-wrap
17895 msgid ""
17896 " inotify-add-watch path mask\n"
17897 "\n"
17898 msgstr ""
17899
17900 # type: =head2
17901 #: ../fish/guestfish-actions.pod:1504
17902 msgid "inotify-close"
17903 msgstr ""
17904
17905 # type: verbatim
17906 #: ../fish/guestfish-actions.pod:1506
17907 #, no-wrap
17908 msgid ""
17909 " inotify-close\n"
17910 "\n"
17911 msgstr ""
17912
17913 # type: =head2
17914 #: ../fish/guestfish-actions.pod:1512
17915 msgid "inotify-files"
17916 msgstr ""
17917
17918 # type: verbatim
17919 #: ../fish/guestfish-actions.pod:1514
17920 #, no-wrap
17921 msgid ""
17922 " inotify-files\n"
17923 "\n"
17924 msgstr ""
17925
17926 # type: textblock
17927 #: ../fish/guestfish-actions.pod:1516
17928 msgid ""
17929 "This function is a helpful wrapper around L</inotify-read> which just "
17930 "returns a list of pathnames of objects that were touched.  The returned "
17931 "pathnames are sorted and deduplicated."
17932 msgstr ""
17933
17934 # type: =head2
17935 #: ../fish/guestfish-actions.pod:1520
17936 msgid "inotify-init"
17937 msgstr ""
17938
17939 # type: verbatim
17940 #: ../fish/guestfish-actions.pod:1522
17941 #, no-wrap
17942 msgid ""
17943 " inotify-init maxevents\n"
17944 "\n"
17945 msgstr ""
17946
17947 # type: textblock
17948 #: ../fish/guestfish-actions.pod:1528
17949 msgid ""
17950 "C<maxevents> is the maximum number of events which will be queued up between "
17951 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
17952 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
17953 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
17954 "but records the fact that it threw them away by setting a flag "
17955 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
17956 msgstr ""
17957
17958 # type: textblock
17959 #: ../fish/guestfish-actions.pod:1538
17960 msgid ""
17961 "Before any events are generated, you have to add some watches to the "
17962 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
17963 "L</inotify-watch-all>."
17964 msgstr ""
17965
17966 # type: textblock
17967 #: ../fish/guestfish-actions.pod:1544
17968 msgid ""
17969 "Queued up events should be read periodically by calling L</inotify-read> (or "
17970 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
17971 "If you don't read the events out often enough then you risk the internal "
17972 "queue overflowing."
17973 msgstr ""
17974
17975 # type: textblock
17976 #: ../fish/guestfish-actions.pod:1551
17977 msgid ""
17978 "The handle should be closed after use by calling L</inotify-close>.  This "
17979 "also removes any watches automatically."
17980 msgstr ""
17981
17982 # type: =head2
17983 #: ../fish/guestfish-actions.pod:1560
17984 msgid "inotify-read"
17985 msgstr ""
17986
17987 # type: verbatim
17988 #: ../fish/guestfish-actions.pod:1562
17989 #, no-wrap
17990 msgid ""
17991 " inotify-read\n"
17992 "\n"
17993 msgstr ""
17994
17995 # type: =head2
17996 #: ../fish/guestfish-actions.pod:1575
17997 msgid "inotify-rm-watch"
17998 msgstr ""
17999
18000 # type: verbatim
18001 #: ../fish/guestfish-actions.pod:1577
18002 #, no-wrap
18003 msgid ""
18004 " inotify-rm-watch wd\n"
18005 "\n"
18006 msgstr ""
18007
18008 # type: textblock
18009 #: ../fish/guestfish-actions.pod:1579
18010 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
18011 msgstr ""
18012
18013 # type: =head2
18014 #: ../fish/guestfish-actions.pod:1582
18015 msgid "inspect-get-arch"
18016 msgstr ""
18017
18018 # type: verbatim
18019 #: ../fish/guestfish-actions.pod:1584
18020 #, no-wrap
18021 msgid ""
18022 " inspect-get-arch root\n"
18023 "\n"
18024 msgstr ""
18025
18026 # type: textblock
18027 #: ../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
18028 msgid ""
18029 "This function should only be called with a root device string as returned by "
18030 "L</inspect-os>."
18031 msgstr ""
18032
18033 # type: textblock
18034 #: ../fish/guestfish-actions.pod:1589
18035 msgid ""
18036 "This returns the architecture of the inspected operating system.  The "
18037 "possible return values are listed under L</file-architecture>."
18038 msgstr ""
18039
18040 # type: =head2
18041 #: ../fish/guestfish-actions.pod:1598
18042 msgid "inspect-get-distro"
18043 msgstr ""
18044
18045 # type: verbatim
18046 #: ../fish/guestfish-actions.pod:1600
18047 #, no-wrap
18048 msgid ""
18049 " inspect-get-distro root\n"
18050 "\n"
18051 msgstr ""
18052
18053 # type: =head2
18054 #: ../fish/guestfish-actions.pod:1644
18055 msgid "inspect-get-filesystems"
18056 msgstr ""
18057
18058 # type: verbatim
18059 #: ../fish/guestfish-actions.pod:1646
18060 #, no-wrap
18061 msgid ""
18062 " inspect-get-filesystems root\n"
18063 "\n"
18064 msgstr ""
18065
18066 # type: textblock
18067 #: ../fish/guestfish-actions.pod:1659
18068 msgid ""
18069 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
18070 "L</inspect-get-mountpoints>."
18071 msgstr ""
18072
18073 # type: =head2
18074 #: ../fish/guestfish-actions.pod:1662
18075 msgid "inspect-get-major-version"
18076 msgstr ""
18077
18078 # type: verbatim
18079 #: ../fish/guestfish-actions.pod:1664
18080 #, no-wrap
18081 msgid ""
18082 " inspect-get-major-version root\n"
18083 "\n"
18084 msgstr ""
18085
18086 # type: =head2
18087 #: ../fish/guestfish-actions.pod:1683
18088 msgid "inspect-get-minor-version"
18089 msgstr ""
18090
18091 # type: verbatim
18092 #: ../fish/guestfish-actions.pod:1685
18093 #, no-wrap
18094 msgid ""
18095 " inspect-get-minor-version root\n"
18096 "\n"
18097 msgstr ""
18098
18099 # type: textblock
18100 #: ../fish/guestfish-actions.pod:1695
18101 msgid ""
18102 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
18103 "L</inspect-get-major-version>."
18104 msgstr ""
18105
18106 # type: =head2
18107 #: ../fish/guestfish-actions.pod:1698
18108 msgid "inspect-get-mountpoints"
18109 msgstr ""
18110
18111 # type: verbatim
18112 #: ../fish/guestfish-actions.pod:1700
18113 #, no-wrap
18114 msgid ""
18115 " inspect-get-mountpoints root\n"
18116 "\n"
18117 msgstr ""
18118
18119 # type: textblock
18120 #: ../fish/guestfish-actions.pod:1718
18121 msgid ""
18122 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
18123 "L</inspect-get-filesystems>."
18124 msgstr ""
18125
18126 # type: =head2
18127 #: ../fish/guestfish-actions.pod:1721
18128 msgid "inspect-get-product-name"
18129 msgstr ""
18130
18131 # type: verbatim
18132 #: ../fish/guestfish-actions.pod:1723
18133 #, no-wrap
18134 msgid ""
18135 " inspect-get-product-name root\n"
18136 "\n"
18137 msgstr ""
18138
18139 # type: =head2
18140 #: ../fish/guestfish-actions.pod:1738
18141 msgid "inspect-get-type"
18142 msgstr ""
18143
18144 # type: verbatim
18145 #: ../fish/guestfish-actions.pod:1740
18146 #, no-wrap
18147 msgid ""
18148 " inspect-get-type root\n"
18149 "\n"
18150 msgstr ""
18151
18152 # type: =head2
18153 #: ../fish/guestfish-actions.pod:1769
18154 msgid "inspect-os"
18155 msgstr ""
18156
18157 # type: verbatim
18158 #: ../fish/guestfish-actions.pod:1771
18159 #, no-wrap
18160 msgid ""
18161 " inspect-os\n"
18162 "\n"
18163 msgstr ""
18164
18165 # type: textblock
18166 #: ../fish/guestfish-actions.pod:1786
18167 msgid ""
18168 "You can pass the root string(s) returned to other L</inspect-get-*> "
18169 "functions in order to query further information about each operating system, "
18170 "such as the name and version."
18171 msgstr ""
18172
18173 # type: textblock
18174 #: ../fish/guestfish-actions.pod:1791
18175 msgid ""
18176 "This function uses other libguestfs features such as L</mount-ro> and "
18177 "L</umount-all> in order to mount and unmount filesystems and look at the "
18178 "contents.  This should be called with no disks currently mounted.  The "
18179 "function may also use Augeas, so any existing Augeas handle will be closed."
18180 msgstr ""
18181
18182 # type: textblock
18183 #: ../fish/guestfish-actions.pod:1803 ../fish/guestfish-actions.pod:1957 ../fish/guestfish-actions.pod:2003
18184 msgid "See also L</list-filesystems>."
18185 msgstr ""
18186
18187 # type: =head2
18188 #: ../fish/guestfish-actions.pod:1805
18189 msgid "is-blockdev"
18190 msgstr ""
18191
18192 # type: verbatim
18193 #: ../fish/guestfish-actions.pod:1807
18194 #, no-wrap
18195 msgid ""
18196 " is-blockdev path\n"
18197 "\n"
18198 msgstr ""
18199
18200 # type: textblock
18201 #: ../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
18202 msgid "See also L</stat>."
18203 msgstr ""
18204
18205 # type: =head2
18206 #: ../fish/guestfish-actions.pod:1814
18207 msgid "is-busy"
18208 msgstr ""
18209
18210 # type: verbatim
18211 #: ../fish/guestfish-actions.pod:1816
18212 #, no-wrap
18213 msgid ""
18214 " is-busy\n"
18215 "\n"
18216 msgstr ""
18217
18218 # type: =head2
18219 #: ../fish/guestfish-actions.pod:1823
18220 msgid "is-chardev"
18221 msgstr ""
18222
18223 # type: verbatim
18224 #: ../fish/guestfish-actions.pod:1825
18225 #, no-wrap
18226 msgid ""
18227 " is-chardev path\n"
18228 "\n"
18229 msgstr ""
18230
18231 # type: =head2
18232 #: ../fish/guestfish-actions.pod:1832
18233 msgid "is-config"
18234 msgstr ""
18235
18236 # type: verbatim
18237 #: ../fish/guestfish-actions.pod:1834
18238 #, no-wrap
18239 msgid ""
18240 " is-config\n"
18241 "\n"
18242 msgstr ""
18243
18244 # type: =head2
18245 #: ../fish/guestfish-actions.pod:1841
18246 msgid "is-dir"
18247 msgstr ""
18248
18249 # type: verbatim
18250 #: ../fish/guestfish-actions.pod:1843
18251 #, no-wrap
18252 msgid ""
18253 " is-dir path\n"
18254 "\n"
18255 msgstr ""
18256
18257 # type: =head2
18258 #: ../fish/guestfish-actions.pod:1851
18259 msgid "is-fifo"
18260 msgstr ""
18261
18262 # type: verbatim
18263 #: ../fish/guestfish-actions.pod:1853
18264 #, no-wrap
18265 msgid ""
18266 " is-fifo path\n"
18267 "\n"
18268 msgstr ""
18269
18270 # type: =head2
18271 #: ../fish/guestfish-actions.pod:1860
18272 msgid "is-file"
18273 msgstr ""
18274
18275 # type: verbatim
18276 #: ../fish/guestfish-actions.pod:1862
18277 #, no-wrap
18278 msgid ""
18279 " is-file path\n"
18280 "\n"
18281 msgstr ""
18282
18283 # type: =head2
18284 #: ../fish/guestfish-actions.pod:1870
18285 msgid "is-launching"
18286 msgstr ""
18287
18288 # type: verbatim
18289 #: ../fish/guestfish-actions.pod:1872
18290 #, no-wrap
18291 msgid ""
18292 " is-launching\n"
18293 "\n"
18294 msgstr ""
18295
18296 # type: =head2
18297 #: ../fish/guestfish-actions.pod:1879
18298 msgid "is-lv"
18299 msgstr ""
18300
18301 # type: verbatim
18302 #: ../fish/guestfish-actions.pod:1881
18303 #, no-wrap
18304 msgid ""
18305 " is-lv device\n"
18306 "\n"
18307 msgstr ""
18308
18309 # type: =head2
18310 #: ../fish/guestfish-actions.pod:1886
18311 msgid "is-ready"
18312 msgstr ""
18313
18314 # type: verbatim
18315 #: ../fish/guestfish-actions.pod:1888
18316 #, no-wrap
18317 msgid ""
18318 " is-ready\n"
18319 "\n"
18320 msgstr ""
18321
18322 # type: =head2
18323 #: ../fish/guestfish-actions.pod:1895
18324 msgid "is-socket"
18325 msgstr ""
18326
18327 # type: verbatim
18328 #: ../fish/guestfish-actions.pod:1897
18329 #, no-wrap
18330 msgid ""
18331 " is-socket path\n"
18332 "\n"
18333 msgstr ""
18334
18335 # type: =head2
18336 #: ../fish/guestfish-actions.pod:1904
18337 msgid "is-symlink"
18338 msgstr ""
18339
18340 # type: verbatim
18341 #: ../fish/guestfish-actions.pod:1906
18342 #, no-wrap
18343 msgid ""
18344 " is-symlink path\n"
18345 "\n"
18346 msgstr ""
18347
18348 # type: =head2
18349 #: ../fish/guestfish-actions.pod:1913
18350 msgid "kill-subprocess"
18351 msgstr ""
18352
18353 # type: verbatim
18354 #: ../fish/guestfish-actions.pod:1915
18355 #, no-wrap
18356 msgid ""
18357 " kill-subprocess\n"
18358 "\n"
18359 msgstr ""
18360
18361 # type: =head2
18362 #: ../fish/guestfish-actions.pod:1919
18363 msgid "launch | run"
18364 msgstr ""
18365
18366 # type: verbatim
18367 #: ../fish/guestfish-actions.pod:1921
18368 #, no-wrap
18369 msgid ""
18370 " launch\n"
18371 "\n"
18372 msgstr ""
18373
18374 # type: =head2
18375 #: ../fish/guestfish-actions.pod:1929
18376 msgid "lchown"
18377 msgstr ""
18378
18379 # type: verbatim
18380 #: ../fish/guestfish-actions.pod:1931
18381 #, no-wrap
18382 msgid ""
18383 " lchown owner group path\n"
18384 "\n"
18385 msgstr ""
18386
18387 # type: textblock
18388 #: ../fish/guestfish-actions.pod:1933
18389 msgid ""
18390 "Change the file owner to C<owner> and group to C<group>.  This is like "
18391 "L</chown> but if C<path> is a symlink then the link itself is changed, not "
18392 "the target."
18393 msgstr ""
18394
18395 # type: =head2
18396 #: ../fish/guestfish-actions.pod:1941
18397 msgid "lgetxattrs"
18398 msgstr ""
18399
18400 # type: verbatim
18401 #: ../fish/guestfish-actions.pod:1943
18402 #, no-wrap
18403 msgid ""
18404 " lgetxattrs path\n"
18405 "\n"
18406 msgstr ""
18407
18408 # type: textblock
18409 #: ../fish/guestfish-actions.pod:1945
18410 msgid ""
18411 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
18412 "it returns the extended attributes of the link itself."
18413 msgstr ""
18414
18415 # type: =head2
18416 #: ../fish/guestfish-actions.pod:1949
18417 msgid "list-devices"
18418 msgstr ""
18419
18420 # type: verbatim
18421 #: ../fish/guestfish-actions.pod:1951
18422 #, no-wrap
18423 msgid ""
18424 " list-devices\n"
18425 "\n"
18426 msgstr ""
18427
18428 # type: =head2
18429 #: ../fish/guestfish-actions.pod:1959
18430 msgid "list-filesystems"
18431 msgstr ""
18432
18433 # type: verbatim
18434 #: ../fish/guestfish-actions.pod:1961
18435 #, no-wrap
18436 msgid ""
18437 " list-filesystems\n"
18438 "\n"
18439 msgstr ""
18440
18441 # type: textblock
18442 #: ../fish/guestfish-actions.pod:1980
18443 msgid ""
18444 "This command runs other libguestfs commands, which might include L</mount> "
18445 "and L</umount>, and therefore you should use this soon after launch and only "
18446 "when nothing is mounted."
18447 msgstr ""
18448
18449 # type: textblock
18450 #: ../fish/guestfish-actions.pod:1984
18451 msgid ""
18452 "Not all of the filesystems returned will be mountable.  In particular, swap "
18453 "partitions are returned in the list.  Also this command does not check that "
18454 "each filesystem found is valid and mountable, and some filesystems might be "
18455 "mountable but require special options.  Filesystems may not all belong to a "
18456 "single logical operating system (use L</inspect-os> to look for OSes)."
18457 msgstr ""
18458
18459 # type: =head2
18460 #: ../fish/guestfish-actions.pod:1992
18461 msgid "list-partitions"
18462 msgstr ""
18463
18464 # type: verbatim
18465 #: ../fish/guestfish-actions.pod:1994
18466 #, no-wrap
18467 msgid ""
18468 " list-partitions\n"
18469 "\n"
18470 msgstr ""
18471
18472 # type: textblock
18473 #: ../fish/guestfish-actions.pod:2000
18474 msgid ""
18475 "This does not return logical volumes.  For that you will need to call "
18476 "L</lvs>."
18477 msgstr ""
18478
18479 # type: =head2
18480 #: ../fish/guestfish-actions.pod:2005
18481 msgid "ll"
18482 msgstr ""
18483
18484 # type: verbatim
18485 #: ../fish/guestfish-actions.pod:2007
18486 #, no-wrap
18487 msgid ""
18488 " ll directory\n"
18489 "\n"
18490 msgstr ""
18491
18492 # type: =head2
18493 #: ../fish/guestfish-actions.pod:2015
18494 msgid "ln"
18495 msgstr ""
18496
18497 # type: verbatim
18498 #: ../fish/guestfish-actions.pod:2017
18499 #, no-wrap
18500 msgid ""
18501 " ln target linkname\n"
18502 "\n"
18503 msgstr ""
18504
18505 # type: =head2
18506 #: ../fish/guestfish-actions.pod:2021
18507 msgid "ln-f"
18508 msgstr ""
18509
18510 # type: verbatim
18511 #: ../fish/guestfish-actions.pod:2023
18512 #, no-wrap
18513 msgid ""
18514 " ln-f target linkname\n"
18515 "\n"
18516 msgstr ""
18517
18518 # type: =head2
18519 #: ../fish/guestfish-actions.pod:2028
18520 msgid "ln-s"
18521 msgstr ""
18522
18523 # type: verbatim
18524 #: ../fish/guestfish-actions.pod:2030
18525 #, no-wrap
18526 msgid ""
18527 " ln-s target linkname\n"
18528 "\n"
18529 msgstr ""
18530
18531 # type: =head2
18532 #: ../fish/guestfish-actions.pod:2034
18533 msgid "ln-sf"
18534 msgstr ""
18535
18536 # type: verbatim
18537 #: ../fish/guestfish-actions.pod:2036
18538 #, no-wrap
18539 msgid ""
18540 " ln-sf target linkname\n"
18541 "\n"
18542 msgstr ""
18543
18544 # type: =head2
18545 #: ../fish/guestfish-actions.pod:2041
18546 msgid "lremovexattr"
18547 msgstr ""
18548
18549 # type: verbatim
18550 #: ../fish/guestfish-actions.pod:2043
18551 #, no-wrap
18552 msgid ""
18553 " lremovexattr xattr path\n"
18554 "\n"
18555 msgstr ""
18556
18557 # type: textblock
18558 #: ../fish/guestfish-actions.pod:2045
18559 msgid ""
18560 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
18561 "it removes an extended attribute of the link itself."
18562 msgstr ""
18563
18564 # type: =head2
18565 #: ../fish/guestfish-actions.pod:2049
18566 msgid "ls"
18567 msgstr ""
18568
18569 # type: verbatim
18570 #: ../fish/guestfish-actions.pod:2051
18571 #, no-wrap
18572 msgid ""
18573 " ls directory\n"
18574 "\n"
18575 msgstr ""
18576
18577 # type: textblock
18578 #: ../fish/guestfish-actions.pod:2057
18579 msgid ""
18580 "This command is mostly useful for interactive sessions.  Programs should "
18581 "probably use L</readdir> instead."
18582 msgstr ""
18583
18584 # type: =head2
18585 #: ../fish/guestfish-actions.pod:2060
18586 msgid "lsetxattr"
18587 msgstr ""
18588
18589 # type: verbatim
18590 #: ../fish/guestfish-actions.pod:2062
18591 #, no-wrap
18592 msgid ""
18593 " lsetxattr xattr val vallen path\n"
18594 "\n"
18595 msgstr ""
18596
18597 # type: textblock
18598 #: ../fish/guestfish-actions.pod:2064
18599 msgid ""
18600 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
18601 "sets an extended attribute of the link itself."
18602 msgstr ""
18603
18604 # type: =head2
18605 #: ../fish/guestfish-actions.pod:2068
18606 msgid "lstat"
18607 msgstr ""
18608
18609 # type: verbatim
18610 #: ../fish/guestfish-actions.pod:2070
18611 #, no-wrap
18612 msgid ""
18613 " lstat path\n"
18614 "\n"
18615 msgstr ""
18616
18617 # type: textblock
18618 #: ../fish/guestfish-actions.pod:2074
18619 msgid ""
18620 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
18621 "the link is stat-ed, not the file it refers to."
18622 msgstr ""
18623
18624 # type: =head2
18625 #: ../fish/guestfish-actions.pod:2080
18626 msgid "lstatlist"
18627 msgstr ""
18628
18629 # type: verbatim
18630 #: ../fish/guestfish-actions.pod:2082
18631 #, no-wrap
18632 msgid ""
18633 " lstatlist path 'names ...'\n"
18634 "\n"
18635 msgstr ""
18636
18637 # type: textblock
18638 #: ../fish/guestfish-actions.pod:2084
18639 msgid ""
18640 "This call allows you to perform the L</lstat> operation on multiple files, "
18641 "where all files are in the directory C<path>.  C<names> is the list of files "
18642 "from this directory."
18643 msgstr ""
18644
18645 # type: textblock
18646 #: ../fish/guestfish-actions.pod:2093
18647 msgid ""
18648 "This call is intended for programs that want to efficiently list a directory "
18649 "contents without making many round-trips.  See also L</lxattrlist> for a "
18650 "similarly efficient call for getting extended attributes.  Very long "
18651 "directory listings might cause the protocol message size to be exceeded, "
18652 "causing this call to fail.  The caller must split up such requests into "
18653 "smaller groups of names."
18654 msgstr ""
18655
18656 # type: =head2
18657 #: ../fish/guestfish-actions.pod:2101
18658 msgid "luks-add-key"
18659 msgstr ""
18660
18661 # type: verbatim
18662 #: ../fish/guestfish-actions.pod:2103
18663 #, no-wrap
18664 msgid ""
18665 " luks-add-key device keyslot\n"
18666 "\n"
18667 msgstr ""
18668
18669 # type: textblock
18670 #: ../fish/guestfish-actions.pod:2110
18671 msgid ""
18672 "Note that if C<keyslot> already contains a key, then this command will "
18673 "fail.  You have to use L</luks-kill-slot> first to remove that key."
18674 msgstr ""
18675
18676 # type: textblock
18677 #: ../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
18678 msgid ""
18679 "This command has one or more key or passphrase parameters.  Guestfish will "
18680 "prompt for these separately."
18681 msgstr ""
18682
18683 # type: =head2
18684 #: ../fish/guestfish-actions.pod:2117
18685 msgid "luks-close"
18686 msgstr ""
18687
18688 # type: verbatim
18689 #: ../fish/guestfish-actions.pod:2119
18690 #, no-wrap
18691 msgid ""
18692 " luks-close device\n"
18693 "\n"
18694 msgstr ""
18695
18696 # type: textblock
18697 #: ../fish/guestfish-actions.pod:2121
18698 msgid ""
18699 "This closes a LUKS device that was created earlier by L</luks-open> or "
18700 "L</luks-open-ro>.  The C<device> parameter must be the name of the LUKS "
18701 "mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
18702 "underlying block device."
18703 msgstr ""
18704
18705 # type: =head2
18706 #: ../fish/guestfish-actions.pod:2127
18707 msgid "luks-format"
18708 msgstr ""
18709
18710 # type: verbatim
18711 #: ../fish/guestfish-actions.pod:2129
18712 #, no-wrap
18713 msgid ""
18714 " luks-format device keyslot\n"
18715 "\n"
18716 msgstr ""
18717
18718 # type: =head2
18719 #: ../fish/guestfish-actions.pod:2142
18720 msgid "luks-format-cipher"
18721 msgstr ""
18722
18723 # type: verbatim
18724 #: ../fish/guestfish-actions.pod:2144
18725 #, no-wrap
18726 msgid ""
18727 " luks-format-cipher device keyslot cipher\n"
18728 "\n"
18729 msgstr ""
18730
18731 # type: textblock
18732 #: ../fish/guestfish-actions.pod:2146
18733 msgid ""
18734 "This command is the same as L</luks-format> but it also allows you to set "
18735 "the C<cipher> used."
18736 msgstr ""
18737
18738 # type: =head2
18739 #: ../fish/guestfish-actions.pod:2155
18740 msgid "luks-kill-slot"
18741 msgstr ""
18742
18743 # type: verbatim
18744 #: ../fish/guestfish-actions.pod:2157
18745 #, no-wrap
18746 msgid ""
18747 " luks-kill-slot device keyslot\n"
18748 "\n"
18749 msgstr ""
18750
18751 # type: =head2
18752 #: ../fish/guestfish-actions.pod:2166
18753 msgid "luks-open"
18754 msgstr ""
18755
18756 # type: verbatim
18757 #: ../fish/guestfish-actions.pod:2168
18758 #, no-wrap
18759 msgid ""
18760 " luks-open device mapname\n"
18761 "\n"
18762 msgstr ""
18763
18764 # type: textblock
18765 #: ../fish/guestfish-actions.pod:2182
18766 msgid ""
18767 "If this block device contains LVM volume groups, then calling L</vgscan> "
18768 "followed by L</vg-activate-all> will make them visible."
18769 msgstr ""
18770
18771 # type: =head2
18772 #: ../fish/guestfish-actions.pod:2189
18773 msgid "luks-open-ro"
18774 msgstr ""
18775
18776 # type: verbatim
18777 #: ../fish/guestfish-actions.pod:2191
18778 #, no-wrap
18779 msgid ""
18780 " luks-open-ro device mapname\n"
18781 "\n"
18782 msgstr ""
18783
18784 # type: textblock
18785 #: ../fish/guestfish-actions.pod:2193
18786 msgid ""
18787 "This is the same as L</luks-open> except that a read-only mapping is "
18788 "created."
18789 msgstr ""
18790
18791 # type: =head2
18792 #: ../fish/guestfish-actions.pod:2199
18793 msgid "lvcreate"
18794 msgstr ""
18795
18796 # type: verbatim
18797 #: ../fish/guestfish-actions.pod:2201
18798 #, no-wrap
18799 msgid ""
18800 " lvcreate logvol volgroup mbytes\n"
18801 "\n"
18802 msgstr ""
18803
18804 # type: =head2
18805 #: ../fish/guestfish-actions.pod:2206
18806 msgid "lvm-clear-filter"
18807 msgstr ""
18808
18809 # type: verbatim
18810 #: ../fish/guestfish-actions.pod:2208
18811 #, no-wrap
18812 msgid ""
18813 " lvm-clear-filter\n"
18814 "\n"
18815 msgstr ""
18816
18817 # type: textblock
18818 #: ../fish/guestfish-actions.pod:2210
18819 msgid ""
18820 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
18821 "block device."
18822 msgstr ""
18823
18824 # type: =head2
18825 #: ../fish/guestfish-actions.pod:2216
18826 msgid "lvm-remove-all"
18827 msgstr ""
18828
18829 # type: verbatim
18830 #: ../fish/guestfish-actions.pod:2218
18831 #, no-wrap
18832 msgid ""
18833 " lvm-remove-all\n"
18834 "\n"
18835 msgstr ""
18836
18837 # type: =head2
18838 #: ../fish/guestfish-actions.pod:2226
18839 msgid "lvm-set-filter"
18840 msgstr ""
18841
18842 # type: verbatim
18843 #: ../fish/guestfish-actions.pod:2228
18844 #, no-wrap
18845 msgid ""
18846 " lvm-set-filter 'devices ...'\n"
18847 "\n"
18848 msgstr ""
18849
18850 # type: =head2
18851 #: ../fish/guestfish-actions.pod:2253
18852 msgid "lvremove"
18853 msgstr ""
18854
18855 # type: verbatim
18856 #: ../fish/guestfish-actions.pod:2255
18857 #, no-wrap
18858 msgid ""
18859 " lvremove device\n"
18860 "\n"
18861 msgstr ""
18862
18863 # type: =head2
18864 #: ../fish/guestfish-actions.pod:2263
18865 msgid "lvrename"
18866 msgstr ""
18867
18868 # type: verbatim
18869 #: ../fish/guestfish-actions.pod:2265
18870 #, no-wrap
18871 msgid ""
18872 " lvrename logvol newlogvol\n"
18873 "\n"
18874 msgstr ""
18875
18876 # type: =head2
18877 #: ../fish/guestfish-actions.pod:2269
18878 msgid "lvresize"
18879 msgstr ""
18880
18881 # type: verbatim
18882 #: ../fish/guestfish-actions.pod:2271
18883 #, no-wrap
18884 msgid ""
18885 " lvresize device mbytes\n"
18886 "\n"
18887 msgstr ""
18888
18889 # type: =head2
18890 #: ../fish/guestfish-actions.pod:2277
18891 msgid "lvresize-free"
18892 msgstr ""
18893
18894 # type: verbatim
18895 #: ../fish/guestfish-actions.pod:2279
18896 #, no-wrap
18897 msgid ""
18898 " lvresize-free lv percent\n"
18899 "\n"
18900 msgstr ""
18901
18902 # type: =head2
18903 #: ../fish/guestfish-actions.pod:2287
18904 msgid "lvs"
18905 msgstr ""
18906
18907 # type: verbatim
18908 #: ../fish/guestfish-actions.pod:2289
18909 #, no-wrap
18910 msgid ""
18911 " lvs\n"
18912 "\n"
18913 msgstr ""
18914
18915 # type: textblock
18916 #: ../fish/guestfish-actions.pod:2297
18917 msgid "See also L</lvs-full>, L</list-filesystems>."
18918 msgstr ""
18919
18920 # type: =head2
18921 #: ../fish/guestfish-actions.pod:2299
18922 msgid "lvs-full"
18923 msgstr ""
18924
18925 # type: verbatim
18926 #: ../fish/guestfish-actions.pod:2301
18927 #, no-wrap
18928 msgid ""
18929 " lvs-full\n"
18930 "\n"
18931 msgstr ""
18932
18933 # type: =head2
18934 #: ../fish/guestfish-actions.pod:2306
18935 msgid "lvuuid"
18936 msgstr ""
18937
18938 # type: verbatim
18939 #: ../fish/guestfish-actions.pod:2308
18940 #, no-wrap
18941 msgid ""
18942 " lvuuid device\n"
18943 "\n"
18944 msgstr ""
18945
18946 # type: =head2
18947 #: ../fish/guestfish-actions.pod:2312
18948 msgid "lxattrlist"
18949 msgstr ""
18950
18951 # type: verbatim
18952 #: ../fish/guestfish-actions.pod:2314
18953 #, no-wrap
18954 msgid ""
18955 " lxattrlist path 'names ...'\n"
18956 "\n"
18957 msgstr ""
18958
18959 # type: textblock
18960 #: ../fish/guestfish-actions.pod:2330
18961 msgid ""
18962 "This call is intended for programs that want to efficiently list a directory "
18963 "contents without making many round-trips.  See also L</lstatlist> for a "
18964 "similarly efficient call for getting standard stats.  Very long directory "
18965 "listings might cause the protocol message size to be exceeded, causing this "
18966 "call to fail.  The caller must split up such requests into smaller groups of "
18967 "names."
18968 msgstr ""
18969
18970 # type: =head2
18971 #: ../fish/guestfish-actions.pod:2338
18972 msgid "mkdir"
18973 msgstr ""
18974
18975 # type: verbatim
18976 #: ../fish/guestfish-actions.pod:2340
18977 #, no-wrap
18978 msgid ""
18979 " mkdir path\n"
18980 "\n"
18981 msgstr ""
18982
18983 # type: =head2
18984 #: ../fish/guestfish-actions.pod:2344
18985 msgid "mkdir-mode"
18986 msgstr ""
18987
18988 # type: verbatim
18989 #: ../fish/guestfish-actions.pod:2346
18990 #, no-wrap
18991 msgid ""
18992 " mkdir-mode path mode\n"
18993 "\n"
18994 msgstr ""
18995
18996 # type: textblock
18997 #: ../fish/guestfish-actions.pod:2355
18998 msgid "See also L</mkdir>, L</umask>"
18999 msgstr ""
19000
19001 # type: =head2
19002 #: ../fish/guestfish-actions.pod:2357
19003 msgid "mkdir-p"
19004 msgstr ""
19005
19006 # type: verbatim
19007 #: ../fish/guestfish-actions.pod:2359
19008 #, no-wrap
19009 msgid ""
19010 " mkdir-p path\n"
19011 "\n"
19012 msgstr ""
19013
19014 # type: =head2
19015 #: ../fish/guestfish-actions.pod:2364
19016 msgid "mkdtemp"
19017 msgstr ""
19018
19019 # type: verbatim
19020 #: ../fish/guestfish-actions.pod:2366
19021 #, no-wrap
19022 msgid ""
19023 " mkdtemp template\n"
19024 "\n"
19025 msgstr ""
19026
19027 # type: =head2
19028 #: ../fish/guestfish-actions.pod:2387
19029 msgid "mke2fs-J"
19030 msgstr ""
19031
19032 # type: verbatim
19033 #: ../fish/guestfish-actions.pod:2389
19034 #, no-wrap
19035 msgid ""
19036 " mke2fs-J fstype blocksize device journal\n"
19037 "\n"
19038 msgstr ""
19039
19040 # type: textblock
19041 #: ../fish/guestfish-actions.pod:2397
19042 msgid "See also L</mke2journal>."
19043 msgstr ""
19044
19045 # type: =head2
19046 #: ../fish/guestfish-actions.pod:2399
19047 msgid "mke2fs-JL"
19048 msgstr ""
19049
19050 # type: verbatim
19051 #: ../fish/guestfish-actions.pod:2401
19052 #, no-wrap
19053 msgid ""
19054 " mke2fs-JL fstype blocksize device label\n"
19055 "\n"
19056 msgstr ""
19057
19058 # type: textblock
19059 #: ../fish/guestfish-actions.pod:2406
19060 msgid "See also L</mke2journal-L>."
19061 msgstr ""
19062
19063 # type: =head2
19064 #: ../fish/guestfish-actions.pod:2408
19065 msgid "mke2fs-JU"
19066 msgstr ""
19067
19068 # type: verbatim
19069 #: ../fish/guestfish-actions.pod:2410
19070 #, no-wrap
19071 msgid ""
19072 " mke2fs-JU fstype blocksize device uuid\n"
19073 "\n"
19074 msgstr ""
19075
19076 # type: textblock
19077 #: ../fish/guestfish-actions.pod:2415
19078 msgid "See also L</mke2journal-U>."
19079 msgstr ""
19080
19081 # type: =head2
19082 #: ../fish/guestfish-actions.pod:2417
19083 msgid "mke2journal"
19084 msgstr ""
19085
19086 # type: verbatim
19087 #: ../fish/guestfish-actions.pod:2419
19088 #, no-wrap
19089 msgid ""
19090 " mke2journal blocksize device\n"
19091 "\n"
19092 msgstr ""
19093
19094 # type: =head2
19095 #: ../fish/guestfish-actions.pod:2426
19096 msgid "mke2journal-L"
19097 msgstr ""
19098
19099 # type: verbatim
19100 #: ../fish/guestfish-actions.pod:2428
19101 #, no-wrap
19102 msgid ""
19103 " mke2journal-L blocksize label device\n"
19104 "\n"
19105 msgstr ""
19106
19107 # type: =head2
19108 #: ../fish/guestfish-actions.pod:2432
19109 msgid "mke2journal-U"
19110 msgstr ""
19111
19112 # type: verbatim
19113 #: ../fish/guestfish-actions.pod:2434
19114 #, no-wrap
19115 msgid ""
19116 " mke2journal-U blocksize uuid device\n"
19117 "\n"
19118 msgstr ""
19119
19120 # type: =head2
19121 #: ../fish/guestfish-actions.pod:2438
19122 msgid "mkfifo"
19123 msgstr ""
19124
19125 # type: verbatim
19126 #: ../fish/guestfish-actions.pod:2440
19127 #, no-wrap
19128 msgid ""
19129 " mkfifo mode path\n"
19130 "\n"
19131 msgstr ""
19132
19133 # type: textblock
19134 #: ../fish/guestfish-actions.pod:2442
19135 msgid ""
19136 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
19137 "is just a convenient wrapper around L</mknod>."
19138 msgstr ""
19139
19140 # type: =head2
19141 #: ../fish/guestfish-actions.pod:2448
19142 msgid "mkfs"
19143 msgstr ""
19144
19145 # type: verbatim
19146 #: ../fish/guestfish-actions.pod:2450
19147 #, no-wrap
19148 msgid ""
19149 " mkfs fstype device\n"
19150 "\n"
19151 msgstr ""
19152
19153 # type: =head2
19154 #: ../fish/guestfish-actions.pod:2456
19155 msgid "mkfs-b"
19156 msgstr ""
19157
19158 # type: verbatim
19159 #: ../fish/guestfish-actions.pod:2458
19160 #, no-wrap
19161 msgid ""
19162 " mkfs-b fstype blocksize device\n"
19163 "\n"
19164 msgstr ""
19165
19166 # type: textblock
19167 #: ../fish/guestfish-actions.pod:2460
19168 msgid ""
19169 "This call is similar to L</mkfs>, but it allows you to control the block "
19170 "size of the resulting filesystem.  Supported block sizes depend on the "
19171 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
19172 msgstr ""
19173
19174 # type: =head2
19175 #: ../fish/guestfish-actions.pod:2468
19176 msgid "mkmountpoint"
19177 msgstr ""
19178
19179 # type: verbatim
19180 #: ../fish/guestfish-actions.pod:2470
19181 #, no-wrap
19182 msgid ""
19183 " mkmountpoint exemptpath\n"
19184 "\n"
19185 msgstr ""
19186
19187 # type: textblock
19188 #: ../fish/guestfish-actions.pod:2472
19189 msgid ""
19190 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
19191 "to create extra mountpoints before mounting the first filesystem."
19192 msgstr ""
19193
19194 # type: =head2
19195 #: ../fish/guestfish-actions.pod:2496
19196 msgid "mknod"
19197 msgstr ""
19198
19199 # type: verbatim
19200 #: ../fish/guestfish-actions.pod:2498
19201 #, no-wrap
19202 msgid ""
19203 " mknod mode devmajor devminor path\n"
19204 "\n"
19205 msgstr ""
19206
19207 # type: textblock
19208 #: ../fish/guestfish-actions.pod:2508
19209 msgid ""
19210 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
19211 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
19212 "regular file).  These constants are available in the standard Linux header "
19213 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
19214 "wrappers around this command which bitwise OR in the appropriate constant "
19215 "for you."
19216 msgstr ""
19217
19218 # type: =head2
19219 #: ../fish/guestfish-actions.pod:2518
19220 msgid "mknod-b"
19221 msgstr ""
19222
19223 # type: verbatim
19224 #: ../fish/guestfish-actions.pod:2520
19225 #, no-wrap
19226 msgid ""
19227 " mknod-b mode devmajor devminor path\n"
19228 "\n"
19229 msgstr ""
19230
19231 # type: textblock
19232 #: ../fish/guestfish-actions.pod:2522
19233 msgid ""
19234 "This call creates a block device node called C<path> with mode C<mode> and "
19235 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
19236 "wrapper around L</mknod>."
19237 msgstr ""
19238
19239 # type: =head2
19240 #: ../fish/guestfish-actions.pod:2528
19241 msgid "mknod-c"
19242 msgstr ""
19243
19244 # type: verbatim
19245 #: ../fish/guestfish-actions.pod:2530
19246 #, no-wrap
19247 msgid ""
19248 " mknod-c mode devmajor devminor path\n"
19249 "\n"
19250 msgstr ""
19251
19252 # type: textblock
19253 #: ../fish/guestfish-actions.pod:2532
19254 msgid ""
19255 "This call creates a char device node called C<path> with mode C<mode> and "
19256 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
19257 "wrapper around L</mknod>."
19258 msgstr ""
19259
19260 # type: =head2
19261 #: ../fish/guestfish-actions.pod:2538
19262 msgid "mkswap"
19263 msgstr ""
19264
19265 # type: verbatim
19266 #: ../fish/guestfish-actions.pod:2540
19267 #, no-wrap
19268 msgid ""
19269 " mkswap device\n"
19270 "\n"
19271 msgstr ""
19272
19273 # type: =head2
19274 #: ../fish/guestfish-actions.pod:2544
19275 msgid "mkswap-L"
19276 msgstr ""
19277
19278 # type: verbatim
19279 #: ../fish/guestfish-actions.pod:2546
19280 #, no-wrap
19281 msgid ""
19282 " mkswap-L label device\n"
19283 "\n"
19284 msgstr ""
19285
19286 # type: =head2
19287 #: ../fish/guestfish-actions.pod:2554
19288 msgid "mkswap-U"
19289 msgstr ""
19290
19291 # type: verbatim
19292 #: ../fish/guestfish-actions.pod:2556
19293 #, no-wrap
19294 msgid ""
19295 " mkswap-U uuid device\n"
19296 "\n"
19297 msgstr ""
19298
19299 # type: =head2
19300 #: ../fish/guestfish-actions.pod:2560
19301 msgid "mkswap-file"
19302 msgstr ""
19303
19304 # type: verbatim
19305 #: ../fish/guestfish-actions.pod:2562
19306 #, no-wrap
19307 msgid ""
19308 " mkswap-file path\n"
19309 "\n"
19310 msgstr ""
19311
19312 # type: textblock
19313 #: ../fish/guestfish-actions.pod:2566
19314 msgid ""
19315 "This command just writes a swap file signature to an existing file.  To "
19316 "create the file itself, use something like L</fallocate>."
19317 msgstr ""
19318
19319 # type: =head2
19320 #: ../fish/guestfish-actions.pod:2569
19321 msgid "modprobe"
19322 msgstr ""
19323
19324 # type: verbatim
19325 #: ../fish/guestfish-actions.pod:2571
19326 #, no-wrap
19327 msgid ""
19328 " modprobe modulename\n"
19329 "\n"
19330 msgstr ""
19331
19332 # type: =head2
19333 #: ../fish/guestfish-actions.pod:2578
19334 msgid "mount"
19335 msgstr ""
19336
19337 # type: verbatim
19338 #: ../fish/guestfish-actions.pod:2580
19339 #, no-wrap
19340 msgid ""
19341 " mount device mountpoint\n"
19342 "\n"
19343 msgstr ""
19344
19345 # type: textblock
19346 #: ../fish/guestfish-actions.pod:2596
19347 msgid ""
19348 "B<Important note:> When you use this call, the filesystem options C<sync> "
19349 "and C<noatime> are set implicitly.  This was originally done because we "
19350 "thought it would improve reliability, but it turns out that I<-o sync> has a "
19351 "very large negative performance impact and negligible effect on "
19352 "reliability.  Therefore we recommend that you avoid using L</mount> in any "
19353 "code that needs performance, and instead use L</mount-options> (use an empty "
19354 "string for the first parameter if you don't want any options)."
19355 msgstr ""
19356
19357 # type: =head2
19358 #: ../fish/guestfish-actions.pod:2606
19359 msgid "mount-loop"
19360 msgstr ""
19361
19362 # type: verbatim
19363 #: ../fish/guestfish-actions.pod:2608
19364 #, no-wrap
19365 msgid ""
19366 " mount-loop file mountpoint\n"
19367 "\n"
19368 msgstr ""
19369
19370 # type: =head2
19371 #: ../fish/guestfish-actions.pod:2614
19372 msgid "mount-options"
19373 msgstr ""
19374
19375 # type: verbatim
19376 #: ../fish/guestfish-actions.pod:2616
19377 #, no-wrap
19378 msgid ""
19379 " mount-options options device mountpoint\n"
19380 "\n"
19381 msgstr ""
19382
19383 # type: textblock
19384 #: ../fish/guestfish-actions.pod:2618
19385 msgid ""
19386 "This is the same as the L</mount> command, but it allows you to set the "
19387 "mount options as for the L<mount(8)> I<-o> flag."
19388 msgstr ""
19389
19390 # type: =head2
19391 #: ../fish/guestfish-actions.pod:2626
19392 msgid "mount-ro"
19393 msgstr ""
19394
19395 # type: verbatim
19396 #: ../fish/guestfish-actions.pod:2628
19397 #, no-wrap
19398 msgid ""
19399 " mount-ro device mountpoint\n"
19400 "\n"
19401 msgstr ""
19402
19403 # type: textblock
19404 #: ../fish/guestfish-actions.pod:2630
19405 msgid ""
19406 "This is the same as the L</mount> command, but it mounts the filesystem with "
19407 "the read-only (I<-o ro>) flag."
19408 msgstr ""
19409
19410 # type: =head2
19411 #: ../fish/guestfish-actions.pod:2633
19412 msgid "mount-vfs"
19413 msgstr ""
19414
19415 # type: verbatim
19416 #: ../fish/guestfish-actions.pod:2635
19417 #, no-wrap
19418 msgid ""
19419 " mount-vfs options vfstype device mountpoint\n"
19420 "\n"
19421 msgstr ""
19422
19423 # type: textblock
19424 #: ../fish/guestfish-actions.pod:2637
19425 msgid ""
19426 "This is the same as the L</mount> command, but it allows you to set both the "
19427 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
19428 msgstr ""
19429
19430 # type: =head2
19431 #: ../fish/guestfish-actions.pod:2641
19432 msgid "mountpoints"
19433 msgstr ""
19434
19435 # type: verbatim
19436 #: ../fish/guestfish-actions.pod:2643
19437 #, no-wrap
19438 msgid ""
19439 " mountpoints\n"
19440 "\n"
19441 msgstr ""
19442
19443 # type: textblock
19444 #: ../fish/guestfish-actions.pod:2645
19445 msgid ""
19446 "This call is similar to L</mounts>.  That call returns a list of devices.  "
19447 "This one returns a hash table (map) of device name to directory where the "
19448 "device is mounted."
19449 msgstr ""
19450
19451 # type: =head2
19452 #: ../fish/guestfish-actions.pod:2649
19453 msgid "mounts"
19454 msgstr ""
19455
19456 # type: verbatim
19457 #: ../fish/guestfish-actions.pod:2651
19458 #, no-wrap
19459 msgid ""
19460 " mounts\n"
19461 "\n"
19462 msgstr ""
19463
19464 # type: textblock
19465 #: ../fish/guestfish-actions.pod:2658
19466 msgid "See also: L</mountpoints>"
19467 msgstr ""
19468
19469 # type: =head2
19470 #: ../fish/guestfish-actions.pod:2660
19471 msgid "mv"
19472 msgstr ""
19473
19474 # type: verbatim
19475 #: ../fish/guestfish-actions.pod:2662
19476 #, no-wrap
19477 msgid ""
19478 " mv src dest\n"
19479 "\n"
19480 msgstr ""
19481
19482 # type: =head2
19483 #: ../fish/guestfish-actions.pod:2667
19484 msgid "ntfs-3g-probe"
19485 msgstr ""
19486
19487 # type: verbatim
19488 #: ../fish/guestfish-actions.pod:2669
19489 #, no-wrap
19490 msgid ""
19491 " ntfs-3g-probe true|false device\n"
19492 "\n"
19493 msgstr ""
19494
19495 # type: =head2
19496 #: ../fish/guestfish-actions.pod:2683
19497 msgid "ntfsresize"
19498 msgstr ""
19499
19500 # type: verbatim
19501 #: ../fish/guestfish-actions.pod:2685
19502 #, no-wrap
19503 msgid ""
19504 " ntfsresize device\n"
19505 "\n"
19506 msgstr ""
19507
19508 # type: =head2
19509 #: ../fish/guestfish-actions.pod:2691
19510 msgid "ntfsresize-size"
19511 msgstr ""
19512
19513 # type: verbatim
19514 #: ../fish/guestfish-actions.pod:2693
19515 #, no-wrap
19516 msgid ""
19517 " ntfsresize-size device size\n"
19518 "\n"
19519 msgstr ""
19520
19521 # type: textblock
19522 #: ../fish/guestfish-actions.pod:2695
19523 msgid ""
19524 "This command is the same as L</ntfsresize> except that it allows you to "
19525 "specify the new size (in bytes) explicitly."
19526 msgstr ""
19527
19528 # type: =head2
19529 #: ../fish/guestfish-actions.pod:2698
19530 msgid "part-add"
19531 msgstr ""
19532
19533 # type: verbatim
19534 #: ../fish/guestfish-actions.pod:2700
19535 #, no-wrap
19536 msgid ""
19537 " part-add device prlogex startsect endsect\n"
19538 "\n"
19539 msgstr ""
19540
19541 # type: textblock
19542 #: ../fish/guestfish-actions.pod:2702
19543 msgid ""
19544 "This command adds a partition to C<device>.  If there is no partition table "
19545 "on the device, call L</part-init> first."
19546 msgstr ""
19547
19548 # type: textblock
19549 #: ../fish/guestfish-actions.pod:2714
19550 msgid ""
19551 "Creating a partition which covers the whole disk is not so easy.  Use "
19552 "L</part-disk> to do that."
19553 msgstr ""
19554
19555 # type: =head2
19556 #: ../fish/guestfish-actions.pod:2717
19557 msgid "part-del"
19558 msgstr ""
19559
19560 # type: verbatim
19561 #: ../fish/guestfish-actions.pod:2719
19562 #, no-wrap
19563 msgid ""
19564 " part-del device partnum\n"
19565 "\n"
19566 msgstr ""
19567
19568 # type: =head2
19569 #: ../fish/guestfish-actions.pod:2727
19570 msgid "part-disk"
19571 msgstr ""
19572
19573 # type: verbatim
19574 #: ../fish/guestfish-actions.pod:2729
19575 #, no-wrap
19576 msgid ""
19577 " part-disk device parttype\n"
19578 "\n"
19579 msgstr ""
19580
19581 # type: textblock
19582 #: ../fish/guestfish-actions.pod:2731
19583 msgid ""
19584 "This command is simply a combination of L</part-init> followed by "
19585 "L</part-add> to create a single primary partition covering the whole disk."
19586 msgstr ""
19587
19588 # type: textblock
19589 #: ../fish/guestfish-actions.pod:2735
19590 msgid ""
19591 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
19592 "possible values are described in L</part-init>."
19593 msgstr ""
19594
19595 # type: =head2
19596 #: ../fish/guestfish-actions.pod:2741
19597 msgid "part-get-bootable"
19598 msgstr ""
19599
19600 # type: verbatim
19601 #: ../fish/guestfish-actions.pod:2743
19602 #, no-wrap
19603 msgid ""
19604 " part-get-bootable device partnum\n"
19605 "\n"
19606 msgstr ""
19607
19608 # type: textblock
19609 #: ../fish/guestfish-actions.pod:2748
19610 msgid "See also L</part-set-bootable>."
19611 msgstr ""
19612
19613 # type: =head2
19614 #: ../fish/guestfish-actions.pod:2750
19615 msgid "part-get-mbr-id"
19616 msgstr ""
19617
19618 # type: verbatim
19619 #: ../fish/guestfish-actions.pod:2752
19620 #, no-wrap
19621 msgid ""
19622 " part-get-mbr-id device partnum\n"
19623 "\n"
19624 msgstr ""
19625
19626 # type: textblock
19627 #: ../fish/guestfish-actions.pod:2757 ../fish/guestfish-actions.pod:2895
19628 msgid ""
19629 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
19630 "undefined results for other partition table types (see "
19631 "L</part-get-parttype>)."
19632 msgstr ""
19633
19634 # type: =head2
19635 #: ../fish/guestfish-actions.pod:2761
19636 msgid "part-get-parttype"
19637 msgstr ""
19638
19639 # type: verbatim
19640 #: ../fish/guestfish-actions.pod:2763
19641 #, no-wrap
19642 msgid ""
19643 " part-get-parttype device\n"
19644 "\n"
19645 msgstr ""
19646
19647 # type: textblock
19648 #: ../fish/guestfish-actions.pod:2768
19649 msgid ""
19650 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
19651 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
19652 "possible, although unusual.  See L</part-init> for a full list."
19653 msgstr ""
19654
19655 # type: =head2
19656 #: ../fish/guestfish-actions.pod:2773
19657 msgid "part-init"
19658 msgstr ""
19659
19660 # type: verbatim
19661 #: ../fish/guestfish-actions.pod:2775
19662 #, no-wrap
19663 msgid ""
19664 " part-init device parttype\n"
19665 "\n"
19666 msgstr ""
19667
19668 # type: textblock
19669 #: ../fish/guestfish-actions.pod:2781
19670 msgid ""
19671 "Initially there are no partitions.  Following this, you should call "
19672 "L</part-add> for each partition required."
19673 msgstr ""
19674
19675 # type: =head2
19676 #: ../fish/guestfish-actions.pod:2844
19677 msgid "part-list"
19678 msgstr ""
19679
19680 # type: verbatim
19681 #: ../fish/guestfish-actions.pod:2846
19682 #, no-wrap
19683 msgid ""
19684 " part-list device\n"
19685 "\n"
19686 msgstr ""
19687
19688 # type: textblock
19689 #: ../fish/guestfish-actions.pod:2861
19690 msgid ""
19691 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
19692 "the device's sector size, see L</blockdev-getss>."
19693 msgstr ""
19694
19695 # type: =head2
19696 #: ../fish/guestfish-actions.pod:2874
19697 msgid "part-set-bootable"
19698 msgstr ""
19699
19700 # type: verbatim
19701 #: ../fish/guestfish-actions.pod:2876
19702 #, no-wrap
19703 msgid ""
19704 " part-set-bootable device partnum true|false\n"
19705 "\n"
19706 msgstr ""
19707
19708 # type: =head2
19709 #: ../fish/guestfish-actions.pod:2885
19710 msgid "part-set-mbr-id"
19711 msgstr ""
19712
19713 # type: verbatim
19714 #: ../fish/guestfish-actions.pod:2887
19715 #, no-wrap
19716 msgid ""
19717 " part-set-mbr-id device partnum idbyte\n"
19718 "\n"
19719 msgstr ""
19720
19721 # type: =head2
19722 #: ../fish/guestfish-actions.pod:2899
19723 msgid "part-set-name"
19724 msgstr ""
19725
19726 # type: verbatim
19727 #: ../fish/guestfish-actions.pod:2901
19728 #, no-wrap
19729 msgid ""
19730 " part-set-name device partnum name\n"
19731 "\n"
19732 msgstr ""
19733
19734 # type: =head2
19735 #: ../fish/guestfish-actions.pod:2909
19736 msgid "part-to-dev"
19737 msgstr ""
19738
19739 # type: verbatim
19740 #: ../fish/guestfish-actions.pod:2911
19741 #, no-wrap
19742 msgid ""
19743 " part-to-dev partition\n"
19744 "\n"
19745 msgstr ""
19746
19747 # type: textblock
19748 #: ../fish/guestfish-actions.pod:2917
19749 msgid ""
19750 "The named partition must exist, for example as a string returned from "
19751 "L</list-partitions>."
19752 msgstr ""
19753
19754 # type: =head2
19755 #: ../fish/guestfish-actions.pod:2920
19756 msgid "ping-daemon"
19757 msgstr ""
19758
19759 # type: verbatim
19760 #: ../fish/guestfish-actions.pod:2922
19761 #, no-wrap
19762 msgid ""
19763 " ping-daemon\n"
19764 "\n"
19765 msgstr ""
19766
19767 # type: =head2
19768 #: ../fish/guestfish-actions.pod:2929
19769 msgid "pread"
19770 msgstr ""
19771
19772 # type: verbatim
19773 #: ../fish/guestfish-actions.pod:2931
19774 #, no-wrap
19775 msgid ""
19776 " pread path count offset\n"
19777 "\n"
19778 msgstr ""
19779
19780 # type: textblock
19781 #: ../fish/guestfish-actions.pod:2939
19782 msgid "See also L</pwrite>."
19783 msgstr ""
19784
19785 # type: =head2
19786 #: ../fish/guestfish-actions.pod:2944
19787 msgid "pvcreate"
19788 msgstr ""
19789
19790 # type: verbatim
19791 #: ../fish/guestfish-actions.pod:2946
19792 #, no-wrap
19793 msgid ""
19794 " pvcreate device\n"
19795 "\n"
19796 msgstr ""
19797
19798 # type: =head2
19799 #: ../fish/guestfish-actions.pod:2952
19800 msgid "pvremove"
19801 msgstr ""
19802
19803 # type: verbatim
19804 #: ../fish/guestfish-actions.pod:2954
19805 #, no-wrap
19806 msgid ""
19807 " pvremove device\n"
19808 "\n"
19809 msgstr ""
19810
19811 # type: =head2
19812 #: ../fish/guestfish-actions.pod:2963
19813 msgid "pvresize"
19814 msgstr ""
19815
19816 # type: verbatim
19817 #: ../fish/guestfish-actions.pod:2965
19818 #, no-wrap
19819 msgid ""
19820 " pvresize device\n"
19821 "\n"
19822 msgstr ""
19823
19824 # type: =head2
19825 #: ../fish/guestfish-actions.pod:2970
19826 msgid "pvresize-size"
19827 msgstr ""
19828
19829 # type: verbatim
19830 #: ../fish/guestfish-actions.pod:2972
19831 #, no-wrap
19832 msgid ""
19833 " pvresize-size device size\n"
19834 "\n"
19835 msgstr ""
19836
19837 # type: textblock
19838 #: ../fish/guestfish-actions.pod:2974
19839 msgid ""
19840 "This command is the same as L</pvresize> except that it allows you to "
19841 "specify the new size (in bytes) explicitly."
19842 msgstr ""
19843
19844 # type: =head2
19845 #: ../fish/guestfish-actions.pod:2977
19846 msgid "pvs"
19847 msgstr ""
19848
19849 # type: verbatim
19850 #: ../fish/guestfish-actions.pod:2979
19851 #, no-wrap
19852 msgid ""
19853 " pvs\n"
19854 "\n"
19855 msgstr ""
19856
19857 # type: textblock
19858 #: ../fish/guestfish-actions.pod:2987
19859 msgid "See also L</pvs-full>."
19860 msgstr ""
19861
19862 # type: =head2
19863 #: ../fish/guestfish-actions.pod:2989
19864 msgid "pvs-full"
19865 msgstr ""
19866
19867 # type: verbatim
19868 #: ../fish/guestfish-actions.pod:2991
19869 #, no-wrap
19870 msgid ""
19871 " pvs-full\n"
19872 "\n"
19873 msgstr ""
19874
19875 # type: =head2
19876 #: ../fish/guestfish-actions.pod:2996
19877 msgid "pvuuid"
19878 msgstr ""
19879
19880 # type: verbatim
19881 #: ../fish/guestfish-actions.pod:2998
19882 #, no-wrap
19883 msgid ""
19884 " pvuuid device\n"
19885 "\n"
19886 msgstr ""
19887
19888 # type: =head2
19889 #: ../fish/guestfish-actions.pod:3002
19890 msgid "pwrite"
19891 msgstr ""
19892
19893 # type: verbatim
19894 #: ../fish/guestfish-actions.pod:3004
19895 #, no-wrap
19896 msgid ""
19897 " pwrite path content offset\n"
19898 "\n"
19899 msgstr ""
19900
19901 # type: textblock
19902 #: ../fish/guestfish-actions.pod:3015
19903 msgid "See also L</pread>."
19904 msgstr ""
19905
19906 # type: =head2
19907 #: ../fish/guestfish-actions.pod:3020
19908 msgid "read-file"
19909 msgstr ""
19910
19911 # type: verbatim
19912 #: ../fish/guestfish-actions.pod:3022
19913 #, no-wrap
19914 msgid ""
19915 " read-file path\n"
19916 "\n"
19917 msgstr ""
19918
19919 # type: textblock
19920 #: ../fish/guestfish-actions.pod:3027
19921 msgid ""
19922 "Unlike L</cat>, this function can correctly handle files that contain "
19923 "embedded ASCII NUL characters.  However unlike L</download>, this function "
19924 "is limited in the total size of file that can be handled."
19925 msgstr ""
19926
19927 # type: =head2
19928 #: ../fish/guestfish-actions.pod:3035
19929 msgid "read-lines"
19930 msgstr ""
19931
19932 # type: verbatim
19933 #: ../fish/guestfish-actions.pod:3037
19934 #, no-wrap
19935 msgid ""
19936 " read-lines path\n"
19937 "\n"
19938 msgstr ""
19939
19940 # type: textblock
19941 #: ../fish/guestfish-actions.pod:3044
19942 msgid ""
19943 "Note that this function cannot correctly handle binary files (specifically, "
19944 "files containing C<\\0> character which is treated as end of line).  For "
19945 "those you need to use the L</read-file> function which has a more complex "
19946 "interface."
19947 msgstr ""
19948
19949 # type: =head2
19950 #: ../fish/guestfish-actions.pod:3049
19951 msgid "readdir"
19952 msgstr ""
19953
19954 # type: verbatim
19955 #: ../fish/guestfish-actions.pod:3051
19956 #, no-wrap
19957 msgid ""
19958 " readdir dir\n"
19959 "\n"
19960 msgstr ""
19961
19962 # type: textblock
19963 #: ../fish/guestfish-actions.pod:3103
19964 msgid ""
19965 "This function is primarily intended for use by programs.  To get a simple "
19966 "list of names, use L</ls>.  To get a printable directory for human "
19967 "consumption, use L</ll>."
19968 msgstr ""
19969
19970 # type: =head2
19971 #: ../fish/guestfish-actions.pod:3107
19972 msgid "readlink"
19973 msgstr ""
19974
19975 # type: verbatim
19976 #: ../fish/guestfish-actions.pod:3109
19977 #, no-wrap
19978 msgid ""
19979 " readlink path\n"
19980 "\n"
19981 msgstr ""
19982
19983 # type: =head2
19984 #: ../fish/guestfish-actions.pod:3113
19985 msgid "readlinklist"
19986 msgstr ""
19987
19988 # type: verbatim
19989 #: ../fish/guestfish-actions.pod:3115
19990 #, no-wrap
19991 msgid ""
19992 " readlinklist path 'names ...'\n"
19993 "\n"
19994 msgstr ""
19995
19996 # type: =head2
19997 #: ../fish/guestfish-actions.pod:3139
19998 msgid "realpath"
19999 msgstr ""
20000
20001 # type: verbatim
20002 #: ../fish/guestfish-actions.pod:3141
20003 #, no-wrap
20004 msgid ""
20005 " realpath path\n"
20006 "\n"
20007 msgstr ""
20008
20009 # type: =head2
20010 #: ../fish/guestfish-actions.pod:3146
20011 msgid "removexattr"
20012 msgstr ""
20013
20014 # type: verbatim
20015 #: ../fish/guestfish-actions.pod:3148
20016 #, no-wrap
20017 msgid ""
20018 " removexattr xattr path\n"
20019 "\n"
20020 msgstr ""
20021
20022 # type: textblock
20023 #: ../fish/guestfish-actions.pod:3153
20024 msgid "See also: L</lremovexattr>, L<attr(5)>."
20025 msgstr ""
20026
20027 # type: =head2
20028 #: ../fish/guestfish-actions.pod:3155
20029 msgid "resize2fs"
20030 msgstr ""
20031
20032 # type: verbatim
20033 #: ../fish/guestfish-actions.pod:3157
20034 #, no-wrap
20035 msgid ""
20036 " resize2fs device\n"
20037 "\n"
20038 msgstr ""
20039
20040 # type: textblock
20041 #: ../fish/guestfish-actions.pod:3162
20042 msgid ""
20043 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
20044 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
20045 "gives an error about this and sometimes not.  In any case, it is always safe "
20046 "to call L</e2fsck-f> before calling this function."
20047 msgstr ""
20048
20049 # type: =head2
20050 #: ../fish/guestfish-actions.pod:3168
20051 msgid "resize2fs-size"
20052 msgstr ""
20053
20054 # type: verbatim
20055 #: ../fish/guestfish-actions.pod:3170
20056 #, no-wrap
20057 msgid ""
20058 " resize2fs-size device size\n"
20059 "\n"
20060 msgstr ""
20061
20062 # type: textblock
20063 #: ../fish/guestfish-actions.pod:3172
20064 msgid ""
20065 "This command is the same as L</resize2fs> except that it allows you to "
20066 "specify the new size (in bytes) explicitly."
20067 msgstr ""
20068
20069 # type: =head2
20070 #: ../fish/guestfish-actions.pod:3175
20071 msgid "rm"
20072 msgstr ""
20073
20074 # type: verbatim
20075 #: ../fish/guestfish-actions.pod:3177
20076 #, no-wrap
20077 msgid ""
20078 " rm path\n"
20079 "\n"
20080 msgstr ""
20081
20082 # type: =head2
20083 #: ../fish/guestfish-actions.pod:3181
20084 msgid "rm-rf"
20085 msgstr ""
20086
20087 # type: verbatim
20088 #: ../fish/guestfish-actions.pod:3183
20089 #, no-wrap
20090 msgid ""
20091 " rm-rf path\n"
20092 "\n"
20093 msgstr ""
20094
20095 # type: =head2
20096 #: ../fish/guestfish-actions.pod:3189
20097 msgid "rmdir"
20098 msgstr ""
20099
20100 # type: verbatim
20101 #: ../fish/guestfish-actions.pod:3191
20102 #, no-wrap
20103 msgid ""
20104 " rmdir path\n"
20105 "\n"
20106 msgstr ""
20107
20108 # type: =head2
20109 #: ../fish/guestfish-actions.pod:3195
20110 msgid "rmmountpoint"
20111 msgstr ""
20112
20113 # type: verbatim
20114 #: ../fish/guestfish-actions.pod:3197
20115 #, no-wrap
20116 msgid ""
20117 " rmmountpoint exemptpath\n"
20118 "\n"
20119 msgstr ""
20120
20121 # type: textblock
20122 #: ../fish/guestfish-actions.pod:3199
20123 msgid ""
20124 "This calls removes a mountpoint that was previously created with "
20125 "L</mkmountpoint>.  See L</mkmountpoint> for full details."
20126 msgstr ""
20127
20128 # type: =head2
20129 #: ../fish/guestfish-actions.pod:3203
20130 msgid "scrub-device"
20131 msgstr ""
20132
20133 # type: verbatim
20134 #: ../fish/guestfish-actions.pod:3205
20135 #, no-wrap
20136 msgid ""
20137 " scrub-device device\n"
20138 "\n"
20139 msgstr ""
20140
20141 # type: =head2
20142 #: ../fish/guestfish-actions.pod:3216
20143 msgid "scrub-file"
20144 msgstr ""
20145
20146 # type: verbatim
20147 #: ../fish/guestfish-actions.pod:3218
20148 #, no-wrap
20149 msgid ""
20150 " scrub-file file\n"
20151 "\n"
20152 msgstr ""
20153
20154 # type: =head2
20155 #: ../fish/guestfish-actions.pod:3228
20156 msgid "scrub-freespace"
20157 msgstr ""
20158
20159 # type: verbatim
20160 #: ../fish/guestfish-actions.pod:3230
20161 #, no-wrap
20162 msgid ""
20163 " scrub-freespace dir\n"
20164 "\n"
20165 msgstr ""
20166
20167 # type: textblock
20168 #: ../fish/guestfish-actions.pod:3232
20169 msgid ""
20170 "This command creates the directory C<dir> and then fills it with files until "
20171 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
20172 "deletes them.  The intention is to scrub any free space on the partition "
20173 "containing C<dir>."
20174 msgstr ""
20175
20176 # type: =head2
20177 #: ../fish/guestfish-actions.pod:3241
20178 msgid "set-append | append"
20179 msgstr ""
20180
20181 # type: verbatim
20182 #: ../fish/guestfish-actions.pod:3243
20183 #, no-wrap
20184 msgid ""
20185 " set-append append\n"
20186 "\n"
20187 msgstr ""
20188
20189 # type: =head2
20190 #: ../fish/guestfish-actions.pod:3254
20191 msgid "set-autosync | autosync"
20192 msgstr ""
20193
20194 # type: verbatim
20195 #: ../fish/guestfish-actions.pod:3256
20196 #, no-wrap
20197 msgid ""
20198 " set-autosync true|false\n"
20199 "\n"
20200 msgstr ""
20201
20202 # type: textblock
20203 #: ../fish/guestfish-actions.pod:3258
20204 msgid ""
20205 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
20206 "effort attempt to run L</umount-all> followed by L</sync> when the handle is "
20207 "closed (also if the program exits without closing handles)."
20208 msgstr ""
20209
20210 # type: =head2
20211 #: ../fish/guestfish-actions.pod:3266
20212 msgid "set-direct | direct"
20213 msgstr ""
20214
20215 # type: verbatim
20216 #: ../fish/guestfish-actions.pod:3268
20217 #, no-wrap
20218 msgid ""
20219 " set-direct true|false\n"
20220 "\n"
20221 msgstr ""
20222
20223 # type: textblock
20224 #: ../fish/guestfish-actions.pod:3274
20225 msgid ""
20226 "One consequence of this is that log messages aren't caught by the library "
20227 "and handled by L</set-log-message-callback>, but go straight to stdout."
20228 msgstr ""
20229
20230 # type: =head2
20231 #: ../fish/guestfish-actions.pod:3283
20232 msgid "set-e2label"
20233 msgstr ""
20234
20235 # type: verbatim
20236 #: ../fish/guestfish-actions.pod:3285
20237 #, no-wrap
20238 msgid ""
20239 " set-e2label device label\n"
20240 "\n"
20241 msgstr ""
20242
20243 # type: textblock
20244 #: ../fish/guestfish-actions.pod:3291
20245 msgid ""
20246 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
20247 "label on a filesystem."
20248 msgstr ""
20249
20250 # type: =head2
20251 #: ../fish/guestfish-actions.pod:3294
20252 msgid "set-e2uuid"
20253 msgstr ""
20254
20255 # type: verbatim
20256 #: ../fish/guestfish-actions.pod:3296
20257 #, no-wrap
20258 msgid ""
20259 " set-e2uuid device uuid\n"
20260 "\n"
20261 msgstr ""
20262
20263 # type: textblock
20264 #: ../fish/guestfish-actions.pod:3303
20265 msgid ""
20266 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
20267 "UUID of a filesystem."
20268 msgstr ""
20269
20270 # type: =head2
20271 #: ../fish/guestfish-actions.pod:3306
20272 msgid "set-memsize | memsize"
20273 msgstr ""
20274
20275 # type: verbatim
20276 #: ../fish/guestfish-actions.pod:3308
20277 #, no-wrap
20278 msgid ""
20279 " set-memsize memsize\n"
20280 "\n"
20281 msgstr ""
20282
20283 # type: textblock
20284 #: ../fish/guestfish-actions.pod:3310
20285 msgid ""
20286 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
20287 "This only has any effect if called before L</launch>."
20288 msgstr ""
20289
20290 # type: =head2
20291 #: ../fish/guestfish-actions.pod:3321
20292 msgid "set-network | network"
20293 msgstr ""
20294
20295 # type: verbatim
20296 #: ../fish/guestfish-actions.pod:3323
20297 #, no-wrap
20298 msgid ""
20299 " set-network true|false\n"
20300 "\n"
20301 msgstr ""
20302
20303 # type: textblock
20304 #: ../fish/guestfish-actions.pod:3331
20305 msgid "You must call this before calling L</launch>, otherwise it has no effect."
20306 msgstr ""
20307
20308 # type: =head2
20309 #: ../fish/guestfish-actions.pod:3334
20310 msgid "set-path | path"
20311 msgstr ""
20312
20313 # type: verbatim
20314 #: ../fish/guestfish-actions.pod:3336
20315 #, no-wrap
20316 msgid ""
20317 " set-path searchpath\n"
20318 "\n"
20319 msgstr ""
20320
20321 # type: =head2
20322 #: ../fish/guestfish-actions.pod:3345
20323 msgid "set-qemu | qemu"
20324 msgstr ""
20325
20326 # type: verbatim
20327 #: ../fish/guestfish-actions.pod:3347
20328 #, no-wrap
20329 msgid ""
20330 " set-qemu qemu\n"
20331 "\n"
20332 msgstr ""
20333
20334 # type: =head2
20335 #: ../fish/guestfish-actions.pod:3367
20336 msgid "set-recovery-proc | recovery-proc"
20337 msgstr ""
20338
20339 # type: verbatim
20340 #: ../fish/guestfish-actions.pod:3369
20341 #, no-wrap
20342 msgid ""
20343 " set-recovery-proc true|false\n"
20344 "\n"
20345 msgstr ""
20346
20347 # type: textblock
20348 #: ../fish/guestfish-actions.pod:3371
20349 msgid ""
20350 "If this is called with the parameter C<false> then L</launch> does not "
20351 "create a recovery process.  The purpose of the recovery process is to stop "
20352 "runaway qemu processes in the case where the main program aborts abruptly."
20353 msgstr ""
20354
20355 # type: textblock
20356 #: ../fish/guestfish-actions.pod:3376
20357 msgid ""
20358 "This only has any effect if called before L</launch>, and the default is "
20359 "true."
20360 msgstr ""
20361
20362 # type: =head2
20363 #: ../fish/guestfish-actions.pod:3385
20364 msgid "set-selinux | selinux"
20365 msgstr ""
20366
20367 # type: verbatim
20368 #: ../fish/guestfish-actions.pod:3387
20369 #, no-wrap
20370 msgid ""
20371 " set-selinux true|false\n"
20372 "\n"
20373 msgstr ""
20374
20375 # type: =head2
20376 #: ../fish/guestfish-actions.pod:3398
20377 msgid "set-trace | trace"
20378 msgstr ""
20379
20380 # type: verbatim
20381 #: ../fish/guestfish-actions.pod:3400
20382 #, no-wrap
20383 msgid ""
20384 " set-trace true|false\n"
20385 "\n"
20386 msgstr ""
20387
20388 # type: =head2
20389 #: ../fish/guestfish-actions.pod:3416
20390 msgid "set-verbose | verbose"
20391 msgstr ""
20392
20393 # type: verbatim
20394 #: ../fish/guestfish-actions.pod:3418
20395 #, no-wrap
20396 msgid ""
20397 " set-verbose true|false\n"
20398 "\n"
20399 msgstr ""
20400
20401 # type: =head2
20402 #: ../fish/guestfish-actions.pod:3425
20403 msgid "setcon"
20404 msgstr ""
20405
20406 # type: verbatim
20407 #: ../fish/guestfish-actions.pod:3427
20408 #, no-wrap
20409 msgid ""
20410 " setcon context\n"
20411 "\n"
20412 msgstr ""
20413
20414 # type: =head2
20415 #: ../fish/guestfish-actions.pod:3434
20416 msgid "setxattr"
20417 msgstr ""
20418
20419 # type: verbatim
20420 #: ../fish/guestfish-actions.pod:3436
20421 #, no-wrap
20422 msgid ""
20423 " setxattr xattr val vallen path\n"
20424 "\n"
20425 msgstr ""
20426
20427 # type: textblock
20428 #: ../fish/guestfish-actions.pod:3442
20429 msgid "See also: L</lsetxattr>, L<attr(5)>."
20430 msgstr ""
20431
20432 # type: =head2
20433 #: ../fish/guestfish-actions.pod:3444
20434 msgid "sfdisk"
20435 msgstr ""
20436
20437 # type: verbatim
20438 #: ../fish/guestfish-actions.pod:3446
20439 #, no-wrap
20440 msgid ""
20441 " sfdisk device cyls heads sectors 'lines ...'\n"
20442 "\n"
20443 msgstr ""
20444
20445 # type: textblock
20446 #: ../fish/guestfish-actions.pod:3468
20447 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
20448 msgstr ""
20449
20450 # type: =head2
20451 #: ../fish/guestfish-actions.pod:3474
20452 msgid "sfdiskM"
20453 msgstr ""
20454
20455 # type: verbatim
20456 #: ../fish/guestfish-actions.pod:3476
20457 #, no-wrap
20458 msgid ""
20459 " sfdiskM device 'lines ...'\n"
20460 "\n"
20461 msgstr ""
20462
20463 # type: textblock
20464 #: ../fish/guestfish-actions.pod:3478
20465 msgid ""
20466 "This is a simplified interface to the L</sfdisk> command, where partition "
20467 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
20468 "you don't need to specify the cyls, heads and sectors parameters which were "
20469 "rarely if ever used anyway."
20470 msgstr ""
20471
20472 # type: textblock
20473 #: ../fish/guestfish-actions.pod:3484
20474 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
20475 msgstr ""
20476
20477 # type: =head2
20478 #: ../fish/guestfish-actions.pod:3490
20479 msgid "sfdisk-N"
20480 msgstr ""
20481
20482 # type: verbatim
20483 #: ../fish/guestfish-actions.pod:3492
20484 #, no-wrap
20485 msgid ""
20486 " sfdisk-N device partnum cyls heads sectors line\n"
20487 "\n"
20488 msgstr ""
20489
20490 # type: textblock
20491 #: ../fish/guestfish-actions.pod:3497
20492 msgid ""
20493 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
20494 "cyls/heads/sectors parameters."
20495 msgstr ""
20496
20497 # type: textblock
20498 #: ../fish/guestfish-actions.pod:3500
20499 msgid "See also: L</part-add>"
20500 msgstr ""
20501
20502 # type: =head2
20503 #: ../fish/guestfish-actions.pod:3505
20504 msgid "sfdisk-disk-geometry"
20505 msgstr ""
20506
20507 # type: verbatim
20508 #: ../fish/guestfish-actions.pod:3507
20509 #, no-wrap
20510 msgid ""
20511 " sfdisk-disk-geometry device\n"
20512 "\n"
20513 msgstr ""
20514
20515 # type: textblock
20516 #: ../fish/guestfish-actions.pod:3509
20517 msgid ""
20518 "This displays the disk geometry of C<device> read from the partition table.  "
20519 "Especially in the case where the underlying block device has been resized, "
20520 "this can be different from the kernel's idea of the geometry (see "
20521 "L</sfdisk-kernel-geometry>)."
20522 msgstr ""
20523
20524 # type: =head2
20525 #: ../fish/guestfish-actions.pod:3517
20526 msgid "sfdisk-kernel-geometry"
20527 msgstr ""
20528
20529 # type: verbatim
20530 #: ../fish/guestfish-actions.pod:3519
20531 #, no-wrap
20532 msgid ""
20533 " sfdisk-kernel-geometry device\n"
20534 "\n"
20535 msgstr ""
20536
20537 # type: =head2
20538 #: ../fish/guestfish-actions.pod:3526
20539 msgid "sfdisk-l"
20540 msgstr ""
20541
20542 # type: verbatim
20543 #: ../fish/guestfish-actions.pod:3528
20544 #, no-wrap
20545 msgid ""
20546 " sfdisk-l device\n"
20547 "\n"
20548 msgstr ""
20549
20550 # type: textblock
20551 #: ../fish/guestfish-actions.pod:3534
20552 msgid "See also: L</part-list>"
20553 msgstr ""
20554
20555 # type: =head2
20556 #: ../fish/guestfish-actions.pod:3536
20557 msgid "sh"
20558 msgstr ""
20559
20560 # type: verbatim
20561 #: ../fish/guestfish-actions.pod:3538
20562 #, no-wrap
20563 msgid ""
20564 " sh command\n"
20565 "\n"
20566 msgstr ""
20567
20568 # type: textblock
20569 #: ../fish/guestfish-actions.pod:3543
20570 msgid "This is like L</command>, but passes the command to:"
20571 msgstr ""
20572
20573 # type: textblock
20574 #: ../fish/guestfish-actions.pod:3551
20575 msgid "All the provisos about L</command> apply to this call."
20576 msgstr ""
20577
20578 # type: =head2
20579 #: ../fish/guestfish-actions.pod:3553
20580 msgid "sh-lines"
20581 msgstr ""
20582
20583 # type: verbatim
20584 #: ../fish/guestfish-actions.pod:3555
20585 #, no-wrap
20586 msgid ""
20587 " sh-lines command\n"
20588 "\n"
20589 msgstr ""
20590
20591 # type: textblock
20592 #: ../fish/guestfish-actions.pod:3557
20593 msgid "This is the same as L</sh>, but splits the result into a list of lines."
20594 msgstr ""
20595
20596 # type: textblock
20597 #: ../fish/guestfish-actions.pod:3560
20598 msgid "See also: L</command-lines>"
20599 msgstr ""
20600
20601 # type: =head2
20602 #: ../fish/guestfish-actions.pod:3562
20603 msgid "sleep"
20604 msgstr ""
20605
20606 # type: verbatim
20607 #: ../fish/guestfish-actions.pod:3564
20608 #, no-wrap
20609 msgid ""
20610 " sleep secs\n"
20611 "\n"
20612 msgstr ""
20613
20614 # type: =head2
20615 #: ../fish/guestfish-actions.pod:3568
20616 msgid "stat"
20617 msgstr ""
20618
20619 # type: verbatim
20620 #: ../fish/guestfish-actions.pod:3570
20621 #, no-wrap
20622 msgid ""
20623 " stat path\n"
20624 "\n"
20625 msgstr ""
20626
20627 # type: =head2
20628 #: ../fish/guestfish-actions.pod:3576
20629 msgid "statvfs"
20630 msgstr ""
20631
20632 # type: verbatim
20633 #: ../fish/guestfish-actions.pod:3578
20634 #, no-wrap
20635 msgid ""
20636 " statvfs path\n"
20637 "\n"
20638 msgstr ""
20639
20640 # type: =head2
20641 #: ../fish/guestfish-actions.pod:3586
20642 msgid "strings"
20643 msgstr ""
20644
20645 # type: verbatim
20646 #: ../fish/guestfish-actions.pod:3588
20647 #, no-wrap
20648 msgid ""
20649 " strings path\n"
20650 "\n"
20651 msgstr ""
20652
20653 # type: =head2
20654 #: ../fish/guestfish-actions.pod:3596
20655 msgid "strings-e"
20656 msgstr ""
20657
20658 # type: verbatim
20659 #: ../fish/guestfish-actions.pod:3598
20660 #, no-wrap
20661 msgid ""
20662 " strings-e encoding path\n"
20663 "\n"
20664 msgstr ""
20665
20666 # type: textblock
20667 #: ../fish/guestfish-actions.pod:3600
20668 msgid ""
20669 "This is like the L</strings> command, but allows you to specify the encoding "
20670 "of strings that are looked for in the source file C<path>."
20671 msgstr ""
20672
20673 # type: textblock
20674 #: ../fish/guestfish-actions.pod:3610
20675 msgid ""
20676 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
20677 "ISO-8859-X (this is what L</strings> uses)."
20678 msgstr ""
20679
20680 # type: =head2
20681 #: ../fish/guestfish-actions.pod:3642
20682 msgid "swapoff-device"
20683 msgstr ""
20684
20685 # type: verbatim
20686 #: ../fish/guestfish-actions.pod:3644
20687 #, no-wrap
20688 msgid ""
20689 " swapoff-device device\n"
20690 "\n"
20691 msgstr ""
20692
20693 # type: textblock
20694 #: ../fish/guestfish-actions.pod:3646
20695 msgid ""
20696 "This command disables the libguestfs appliance swap device or partition "
20697 "named C<device>.  See L</swapon-device>."
20698 msgstr ""
20699
20700 # type: =head2
20701 #: ../fish/guestfish-actions.pod:3650
20702 msgid "swapoff-file"
20703 msgstr ""
20704
20705 # type: verbatim
20706 #: ../fish/guestfish-actions.pod:3652
20707 #, no-wrap
20708 msgid ""
20709 " swapoff-file file\n"
20710 "\n"
20711 msgstr ""
20712
20713 # type: =head2
20714 #: ../fish/guestfish-actions.pod:3656
20715 msgid "swapoff-label"
20716 msgstr ""
20717
20718 # type: verbatim
20719 #: ../fish/guestfish-actions.pod:3658
20720 #, no-wrap
20721 msgid ""
20722 " swapoff-label label\n"
20723 "\n"
20724 msgstr ""
20725
20726 # type: =head2
20727 #: ../fish/guestfish-actions.pod:3663
20728 msgid "swapoff-uuid"
20729 msgstr ""
20730
20731 # type: verbatim
20732 #: ../fish/guestfish-actions.pod:3665
20733 #, no-wrap
20734 msgid ""
20735 " swapoff-uuid uuid\n"
20736 "\n"
20737 msgstr ""
20738
20739 # type: =head2
20740 #: ../fish/guestfish-actions.pod:3670
20741 msgid "swapon-device"
20742 msgstr ""
20743
20744 # type: verbatim
20745 #: ../fish/guestfish-actions.pod:3672
20746 #, no-wrap
20747 msgid ""
20748 " swapon-device device\n"
20749 "\n"
20750 msgstr ""
20751
20752 # type: textblock
20753 #: ../fish/guestfish-actions.pod:3674
20754 msgid ""
20755 "This command enables the libguestfs appliance to use the swap device or "
20756 "partition named C<device>.  The increased memory is made available for all "
20757 "commands, for example those run using L</command> or L</sh>."
20758 msgstr ""
20759
20760 # type: =head2
20761 #: ../fish/guestfish-actions.pod:3686
20762 msgid "swapon-file"
20763 msgstr ""
20764
20765 # type: verbatim
20766 #: ../fish/guestfish-actions.pod:3688
20767 #, no-wrap
20768 msgid ""
20769 " swapon-file file\n"
20770 "\n"
20771 msgstr ""
20772
20773 # type: textblock
20774 #: ../fish/guestfish-actions.pod:3690
20775 msgid "This command enables swap to a file.  See L</swapon-device> for other notes."
20776 msgstr ""
20777
20778 # type: =head2
20779 #: ../fish/guestfish-actions.pod:3693
20780 msgid "swapon-label"
20781 msgstr ""
20782
20783 # type: verbatim
20784 #: ../fish/guestfish-actions.pod:3695
20785 #, no-wrap
20786 msgid ""
20787 " swapon-label label\n"
20788 "\n"
20789 msgstr ""
20790
20791 # type: textblock
20792 #: ../fish/guestfish-actions.pod:3697
20793 msgid ""
20794 "This command enables swap to a labeled swap partition.  See "
20795 "L</swapon-device> for other notes."
20796 msgstr ""
20797
20798 # type: =head2
20799 #: ../fish/guestfish-actions.pod:3700
20800 msgid "swapon-uuid"
20801 msgstr ""
20802
20803 # type: verbatim
20804 #: ../fish/guestfish-actions.pod:3702
20805 #, no-wrap
20806 msgid ""
20807 " swapon-uuid uuid\n"
20808 "\n"
20809 msgstr ""
20810
20811 # type: textblock
20812 #: ../fish/guestfish-actions.pod:3704
20813 msgid ""
20814 "This command enables swap to a swap partition with the given UUID.  See "
20815 "L</swapon-device> for other notes."
20816 msgstr ""
20817
20818 # type: =head2
20819 #: ../fish/guestfish-actions.pod:3707
20820 msgid "sync"
20821 msgstr ""
20822
20823 # type: verbatim
20824 #: ../fish/guestfish-actions.pod:3709
20825 #, no-wrap
20826 msgid ""
20827 " sync\n"
20828 "\n"
20829 msgstr ""
20830
20831 # type: =head2
20832 #: ../fish/guestfish-actions.pod:3717
20833 msgid "tail"
20834 msgstr ""
20835
20836 # type: verbatim
20837 #: ../fish/guestfish-actions.pod:3719
20838 #, no-wrap
20839 msgid ""
20840 " tail path\n"
20841 "\n"
20842 msgstr ""
20843
20844 # type: =head2
20845 #: ../fish/guestfish-actions.pod:3727
20846 msgid "tail-n"
20847 msgstr ""
20848
20849 # type: verbatim
20850 #: ../fish/guestfish-actions.pod:3729
20851 #, no-wrap
20852 msgid ""
20853 " tail-n nrlines path\n"
20854 "\n"
20855 msgstr ""
20856
20857 # type: =head2
20858 #: ../fish/guestfish-actions.pod:3742
20859 msgid "tar-in"
20860 msgstr ""
20861
20862 # type: verbatim
20863 #: ../fish/guestfish-actions.pod:3744
20864 #, no-wrap
20865 msgid ""
20866 " tar-in (tarfile|-) directory\n"
20867 "\n"
20868 msgstr ""
20869
20870 # type: textblock
20871 #: ../fish/guestfish-actions.pod:3749
20872 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
20873 msgstr ""
20874
20875 # type: =head2
20876 #: ../fish/guestfish-actions.pod:3754
20877 msgid "tar-out"
20878 msgstr ""
20879
20880 # type: verbatim
20881 #: ../fish/guestfish-actions.pod:3756
20882 #, no-wrap
20883 msgid ""
20884 " tar-out directory (tarfile|-)\n"
20885 "\n"
20886 msgstr ""
20887
20888 # type: textblock
20889 #: ../fish/guestfish-actions.pod:3761
20890 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
20891 msgstr ""
20892
20893 # type: =head2
20894 #: ../fish/guestfish-actions.pod:3766
20895 msgid "tgz-in"
20896 msgstr ""
20897
20898 # type: verbatim
20899 #: ../fish/guestfish-actions.pod:3768
20900 #, no-wrap
20901 msgid ""
20902 " tgz-in (tarball|-) directory\n"
20903 "\n"
20904 msgstr ""
20905
20906 # type: textblock
20907 #: ../fish/guestfish-actions.pod:3773
20908 msgid "To upload an uncompressed tarball, use L</tar-in>."
20909 msgstr ""
20910
20911 # type: =head2
20912 #: ../fish/guestfish-actions.pod:3777
20913 msgid "tgz-out"
20914 msgstr ""
20915
20916 # type: verbatim
20917 #: ../fish/guestfish-actions.pod:3779
20918 #, no-wrap
20919 msgid ""
20920 " tgz-out directory (tarball|-)\n"
20921 "\n"
20922 msgstr ""
20923
20924 # type: textblock
20925 #: ../fish/guestfish-actions.pod:3784
20926 msgid "To download an uncompressed tarball, use L</tar-out>."
20927 msgstr ""
20928
20929 # type: =head2
20930 #: ../fish/guestfish-actions.pod:3788
20931 msgid "touch"
20932 msgstr ""
20933
20934 # type: verbatim
20935 #: ../fish/guestfish-actions.pod:3790
20936 #, no-wrap
20937 msgid ""
20938 " touch path\n"
20939 "\n"
20940 msgstr ""
20941
20942 # type: =head2
20943 #: ../fish/guestfish-actions.pod:3799
20944 msgid "truncate"
20945 msgstr ""
20946
20947 # type: verbatim
20948 #: ../fish/guestfish-actions.pod:3801
20949 #, no-wrap
20950 msgid ""
20951 " truncate path\n"
20952 "\n"
20953 msgstr ""
20954
20955 # type: =head2
20956 #: ../fish/guestfish-actions.pod:3806
20957 msgid "truncate-size"
20958 msgstr ""
20959
20960 # type: verbatim
20961 #: ../fish/guestfish-actions.pod:3808
20962 #, no-wrap
20963 msgid ""
20964 " truncate-size path size\n"
20965 "\n"
20966 msgstr ""
20967
20968 # type: textblock
20969 #: ../fish/guestfish-actions.pod:3813
20970 msgid ""
20971 "If the current file size is less than C<size> then the file is extended to "
20972 "the required size with zero bytes.  This creates a sparse file (ie. disk "
20973 "blocks are not allocated for the file until you write to it).  To create a "
20974 "non-sparse file of zeroes, use L</fallocate64> instead."
20975 msgstr ""
20976
20977 # type: =head2
20978 #: ../fish/guestfish-actions.pod:3819
20979 msgid "tune2fs-l"
20980 msgstr ""
20981
20982 # type: verbatim
20983 #: ../fish/guestfish-actions.pod:3821
20984 #, no-wrap
20985 msgid ""
20986 " tune2fs-l device\n"
20987 "\n"
20988 msgstr ""
20989
20990 # type: =head2
20991 #: ../fish/guestfish-actions.pod:3831
20992 msgid "txz-in"
20993 msgstr ""
20994
20995 # type: verbatim
20996 #: ../fish/guestfish-actions.pod:3833
20997 #, no-wrap
20998 msgid ""
20999 " txz-in (tarball|-) directory\n"
21000 "\n"
21001 msgstr ""
21002
21003 # type: =head2
21004 #: ../fish/guestfish-actions.pod:3840
21005 msgid "txz-out"
21006 msgstr ""
21007
21008 # type: verbatim
21009 #: ../fish/guestfish-actions.pod:3842
21010 #, no-wrap
21011 msgid ""
21012 " txz-out directory (tarball|-)\n"
21013 "\n"
21014 msgstr ""
21015
21016 # type: =head2
21017 #: ../fish/guestfish-actions.pod:3849
21018 msgid "umask"
21019 msgstr ""
21020
21021 # type: verbatim
21022 #: ../fish/guestfish-actions.pod:3851
21023 #, no-wrap
21024 msgid ""
21025 " umask mask\n"
21026 "\n"
21027 msgstr ""
21028
21029 # type: textblock
21030 #: ../fish/guestfish-actions.pod:3865
21031 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
21032 msgstr ""
21033
21034 # type: =head2
21035 #: ../fish/guestfish-actions.pod:3870
21036 msgid "umount | unmount"
21037 msgstr ""
21038
21039 # type: verbatim
21040 #: ../fish/guestfish-actions.pod:3872
21041 #, no-wrap
21042 msgid ""
21043 " umount pathordevice\n"
21044 "\n"
21045 msgstr ""
21046
21047 # type: =head2
21048 #: ../fish/guestfish-actions.pod:3878
21049 msgid "umount-all | unmount-all"
21050 msgstr ""
21051
21052 # type: verbatim
21053 #: ../fish/guestfish-actions.pod:3880
21054 #, no-wrap
21055 msgid ""
21056 " umount-all\n"
21057 "\n"
21058 msgstr ""
21059
21060 # type: =head2
21061 #: ../fish/guestfish-actions.pod:3886
21062 msgid "upload"
21063 msgstr ""
21064
21065 # type: verbatim
21066 #: ../fish/guestfish-actions.pod:3888
21067 #, no-wrap
21068 msgid ""
21069 " upload (filename|-) remotefilename\n"
21070 "\n"
21071 msgstr ""
21072
21073 # type: textblock
21074 #: ../fish/guestfish-actions.pod:3895
21075 msgid "See also L</download>."
21076 msgstr ""
21077
21078 # type: =head2
21079 #: ../fish/guestfish-actions.pod:3899
21080 msgid "utimens"
21081 msgstr ""
21082
21083 # type: verbatim
21084 #: ../fish/guestfish-actions.pod:3901
21085 #, no-wrap
21086 msgid ""
21087 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
21088 "\n"
21089 msgstr ""
21090
21091 # type: =head2
21092 #: ../fish/guestfish-actions.pod:3920
21093 msgid "version"
21094 msgstr ""
21095
21096 # type: verbatim
21097 #: ../fish/guestfish-actions.pod:3922
21098 #, no-wrap
21099 msgid ""
21100 " version\n"
21101 "\n"
21102 msgstr ""
21103
21104 # type: textblock
21105 #: ../fish/guestfish-actions.pod:3949
21106 msgid ""
21107 "I<Note:> Don't use this call to test for availability of features.  In "
21108 "enterprise distributions we backport features from later versions into "
21109 "earlier versions, making this an unreliable way to test for features.  Use "
21110 "L</available> instead."
21111 msgstr ""
21112
21113 # type: =head2
21114 #: ../fish/guestfish-actions.pod:3955
21115 msgid "vfs-label"
21116 msgstr ""
21117
21118 # type: verbatim
21119 #: ../fish/guestfish-actions.pod:3957
21120 #, no-wrap
21121 msgid ""
21122 " vfs-label device\n"
21123 "\n"
21124 msgstr ""
21125
21126 # type: textblock
21127 #: ../fish/guestfish-actions.pod:3964
21128 msgid "To find a filesystem from the label, use L</findfs-label>."
21129 msgstr ""
21130
21131 # type: =head2
21132 #: ../fish/guestfish-actions.pod:3966
21133 msgid "vfs-type"
21134 msgstr ""
21135
21136 # type: verbatim
21137 #: ../fish/guestfish-actions.pod:3968
21138 #, no-wrap
21139 msgid ""
21140 " vfs-type device\n"
21141 "\n"
21142 msgstr ""
21143
21144 # type: =head2
21145 #: ../fish/guestfish-actions.pod:3978
21146 msgid "vfs-uuid"
21147 msgstr ""
21148
21149 # type: verbatim
21150 #: ../fish/guestfish-actions.pod:3980
21151 #, no-wrap
21152 msgid ""
21153 " vfs-uuid device\n"
21154 "\n"
21155 msgstr ""
21156
21157 # type: textblock
21158 #: ../fish/guestfish-actions.pod:3987
21159 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
21160 msgstr ""
21161
21162 # type: =head2
21163 #: ../fish/guestfish-actions.pod:3989
21164 msgid "vg-activate"
21165 msgstr ""
21166
21167 # type: verbatim
21168 #: ../fish/guestfish-actions.pod:3991
21169 #, no-wrap
21170 msgid ""
21171 " vg-activate true|false 'volgroups ...'\n"
21172 "\n"
21173 msgstr ""
21174
21175 # type: =head2
21176 #: ../fish/guestfish-actions.pod:4004
21177 msgid "vg-activate-all"
21178 msgstr ""
21179
21180 # type: verbatim
21181 #: ../fish/guestfish-actions.pod:4006
21182 #, no-wrap
21183 msgid ""
21184 " vg-activate-all true|false\n"
21185 "\n"
21186 msgstr ""
21187
21188 # type: =head2
21189 #: ../fish/guestfish-actions.pod:4016
21190 msgid "vgcreate"
21191 msgstr ""
21192
21193 # type: verbatim
21194 #: ../fish/guestfish-actions.pod:4018
21195 #, no-wrap
21196 msgid ""
21197 " vgcreate volgroup 'physvols ...'\n"
21198 "\n"
21199 msgstr ""
21200
21201 # type: =head2
21202 #: ../fish/guestfish-actions.pod:4023
21203 msgid "vglvuuids"
21204 msgstr ""
21205
21206 # type: verbatim
21207 #: ../fish/guestfish-actions.pod:4025
21208 #, no-wrap
21209 msgid ""
21210 " vglvuuids vgname\n"
21211 "\n"
21212 msgstr ""
21213
21214 # type: textblock
21215 #: ../fish/guestfish-actions.pod:4030
21216 msgid ""
21217 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
21218 "logical volumes and volume groups."
21219 msgstr ""
21220
21221 # type: textblock
21222 #: ../fish/guestfish-actions.pod:4033
21223 msgid "See also L</vgpvuuids>."
21224 msgstr ""
21225
21226 # type: =head2
21227 #: ../fish/guestfish-actions.pod:4035
21228 msgid "vgpvuuids"
21229 msgstr ""
21230
21231 # type: verbatim
21232 #: ../fish/guestfish-actions.pod:4037
21233 #, no-wrap
21234 msgid ""
21235 " vgpvuuids vgname\n"
21236 "\n"
21237 msgstr ""
21238
21239 # type: textblock
21240 #: ../fish/guestfish-actions.pod:4042
21241 msgid ""
21242 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
21243 "physical volumes and volume groups."
21244 msgstr ""
21245
21246 # type: textblock
21247 #: ../fish/guestfish-actions.pod:4045
21248 msgid "See also L</vglvuuids>."
21249 msgstr ""
21250
21251 # type: =head2
21252 #: ../fish/guestfish-actions.pod:4047
21253 msgid "vgremove"
21254 msgstr ""
21255
21256 # type: verbatim
21257 #: ../fish/guestfish-actions.pod:4049
21258 #, no-wrap
21259 msgid ""
21260 " vgremove vgname\n"
21261 "\n"
21262 msgstr ""
21263
21264 # type: =head2
21265 #: ../fish/guestfish-actions.pod:4056
21266 msgid "vgrename"
21267 msgstr ""
21268
21269 # type: verbatim
21270 #: ../fish/guestfish-actions.pod:4058
21271 #, no-wrap
21272 msgid ""
21273 " vgrename volgroup newvolgroup\n"
21274 "\n"
21275 msgstr ""
21276
21277 # type: =head2
21278 #: ../fish/guestfish-actions.pod:4062
21279 msgid "vgs"
21280 msgstr ""
21281
21282 # type: verbatim
21283 #: ../fish/guestfish-actions.pod:4064
21284 #, no-wrap
21285 msgid ""
21286 " vgs\n"
21287 "\n"
21288 msgstr ""
21289
21290 # type: textblock
21291 #: ../fish/guestfish-actions.pod:4072
21292 msgid "See also L</vgs-full>."
21293 msgstr ""
21294
21295 # type: =head2
21296 #: ../fish/guestfish-actions.pod:4074
21297 msgid "vgs-full"
21298 msgstr ""
21299
21300 # type: verbatim
21301 #: ../fish/guestfish-actions.pod:4076
21302 #, no-wrap
21303 msgid ""
21304 " vgs-full\n"
21305 "\n"
21306 msgstr ""
21307
21308 # type: =head2
21309 #: ../fish/guestfish-actions.pod:4081
21310 msgid "vgscan"
21311 msgstr ""
21312
21313 # type: verbatim
21314 #: ../fish/guestfish-actions.pod:4083
21315 #, no-wrap
21316 msgid ""
21317 " vgscan\n"
21318 "\n"
21319 msgstr ""
21320
21321 # type: =head2
21322 #: ../fish/guestfish-actions.pod:4088
21323 msgid "vguuid"
21324 msgstr ""
21325
21326 # type: verbatim
21327 #: ../fish/guestfish-actions.pod:4090
21328 #, no-wrap
21329 msgid ""
21330 " vguuid vgname\n"
21331 "\n"
21332 msgstr ""
21333
21334 # type: =head2
21335 #: ../fish/guestfish-actions.pod:4094
21336 msgid "wc-c"
21337 msgstr ""
21338
21339 # type: verbatim
21340 #: ../fish/guestfish-actions.pod:4096
21341 #, no-wrap
21342 msgid ""
21343 " wc-c path\n"
21344 "\n"
21345 msgstr ""
21346
21347 # type: =head2
21348 #: ../fish/guestfish-actions.pod:4101
21349 msgid "wc-l"
21350 msgstr ""
21351
21352 # type: verbatim
21353 #: ../fish/guestfish-actions.pod:4103
21354 #, no-wrap
21355 msgid ""
21356 " wc-l path\n"
21357 "\n"
21358 msgstr ""
21359
21360 # type: =head2
21361 #: ../fish/guestfish-actions.pod:4108
21362 msgid "wc-w"
21363 msgstr ""
21364
21365 # type: verbatim
21366 #: ../fish/guestfish-actions.pod:4110
21367 #, no-wrap
21368 msgid ""
21369 " wc-w path\n"
21370 "\n"
21371 msgstr ""
21372
21373 # type: =head2
21374 #: ../fish/guestfish-actions.pod:4115
21375 msgid "write"
21376 msgstr ""
21377
21378 # type: verbatim
21379 #: ../fish/guestfish-actions.pod:4117
21380 #, no-wrap
21381 msgid ""
21382 " write path content\n"
21383 "\n"
21384 msgstr ""
21385
21386 # type: =head2
21387 #: ../fish/guestfish-actions.pod:4125
21388 msgid "write-file"
21389 msgstr ""
21390
21391 # type: verbatim
21392 #: ../fish/guestfish-actions.pod:4127
21393 #, no-wrap
21394 msgid ""
21395 " write-file path content size\n"
21396 "\n"
21397 msgstr ""
21398
21399 # type: =head2
21400 #: ../fish/guestfish-actions.pod:4150
21401 msgid "zegrep"
21402 msgstr ""
21403
21404 # type: verbatim
21405 #: ../fish/guestfish-actions.pod:4152
21406 #, no-wrap
21407 msgid ""
21408 " zegrep regex path\n"
21409 "\n"
21410 msgstr ""
21411
21412 # type: =head2
21413 #: ../fish/guestfish-actions.pod:4160
21414 msgid "zegrepi"
21415 msgstr ""
21416
21417 # type: verbatim
21418 #: ../fish/guestfish-actions.pod:4162
21419 #, no-wrap
21420 msgid ""
21421 " zegrepi regex path\n"
21422 "\n"
21423 msgstr ""
21424
21425 # type: =head2
21426 #: ../fish/guestfish-actions.pod:4170
21427 msgid "zero"
21428 msgstr ""
21429
21430 # type: verbatim
21431 #: ../fish/guestfish-actions.pod:4172
21432 #, no-wrap
21433 msgid ""
21434 " zero device\n"
21435 "\n"
21436 msgstr ""
21437
21438 # type: textblock
21439 #: ../fish/guestfish-actions.pod:4180
21440 msgid "See also: L</zero-device>, L</scrub-device>."
21441 msgstr ""
21442
21443 # type: =head2
21444 #: ../fish/guestfish-actions.pod:4182
21445 msgid "zero-device"
21446 msgstr ""
21447
21448 # type: verbatim
21449 #: ../fish/guestfish-actions.pod:4184
21450 #, no-wrap
21451 msgid ""
21452 " zero-device device\n"
21453 "\n"
21454 msgstr ""
21455
21456 # type: textblock
21457 #: ../fish/guestfish-actions.pod:4186
21458 msgid ""
21459 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
21460 "which just zeroes the first few blocks of a device."
21461 msgstr ""
21462
21463 # type: =head2
21464 #: ../fish/guestfish-actions.pod:4193
21465 msgid "zerofree"
21466 msgstr ""
21467
21468 # type: verbatim
21469 #: ../fish/guestfish-actions.pod:4195
21470 #, no-wrap
21471 msgid ""
21472 " zerofree device\n"
21473 "\n"
21474 msgstr ""
21475
21476 # type: =head2
21477 #: ../fish/guestfish-actions.pod:4208
21478 msgid "zfgrep"
21479 msgstr ""
21480
21481 # type: verbatim
21482 #: ../fish/guestfish-actions.pod:4210
21483 #, no-wrap
21484 msgid ""
21485 " zfgrep pattern path\n"
21486 "\n"
21487 msgstr ""
21488
21489 # type: =head2
21490 #: ../fish/guestfish-actions.pod:4218
21491 msgid "zfgrepi"
21492 msgstr ""
21493
21494 # type: verbatim
21495 #: ../fish/guestfish-actions.pod:4220
21496 #, no-wrap
21497 msgid ""
21498 " zfgrepi pattern path\n"
21499 "\n"
21500 msgstr ""
21501
21502 # type: =head2
21503 #: ../fish/guestfish-actions.pod:4228
21504 msgid "zfile"
21505 msgstr ""
21506
21507 # type: verbatim
21508 #: ../fish/guestfish-actions.pod:4230
21509 #, no-wrap
21510 msgid ""
21511 " zfile meth path\n"
21512 "\n"
21513 msgstr ""
21514
21515 # type: textblock
21516 #: ../fish/guestfish-actions.pod:4237
21517 msgid "Since 1.0.63, use L</file> instead which can now process compressed files."
21518 msgstr ""
21519
21520 # type: =head2
21521 #: ../fish/guestfish-actions.pod:4247
21522 msgid "zgrep"
21523 msgstr ""
21524
21525 # type: verbatim
21526 #: ../fish/guestfish-actions.pod:4249
21527 #, no-wrap
21528 msgid ""
21529 " zgrep regex path\n"
21530 "\n"
21531 msgstr ""
21532
21533 # type: =head2
21534 #: ../fish/guestfish-actions.pod:4257
21535 msgid "zgrepi"
21536 msgstr ""
21537
21538 # type: verbatim
21539 #: ../fish/guestfish-actions.pod:4259
21540 #, no-wrap
21541 msgid ""
21542 " zgrepi regex path\n"
21543 "\n"
21544 msgstr ""
21545
21546 # type: =head2
21547 #: ../fish/guestfish-commands.pod:1
21548 msgid "alloc"
21549 msgstr ""
21550
21551 # type: =head2
21552 #: ../fish/guestfish-commands.pod:3
21553 msgid "allocate"
21554 msgstr ""
21555
21556 # type: verbatim
21557 #: ../fish/guestfish-commands.pod:5
21558 #, no-wrap
21559 msgid ""
21560 " alloc filename size\n"
21561 "\n"
21562 msgstr ""
21563
21564 # type: textblock
21565 #: ../fish/guestfish-commands.pod:7
21566 msgid ""
21567 "This creates an empty (zeroed) file of the given size, and then adds so it "
21568 "can be further examined."
21569 msgstr ""
21570
21571 # type: textblock
21572 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:132
21573 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
21574 msgstr ""
21575
21576 # type: textblock
21577 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:134
21578 msgid "Size can be specified using standard suffixes, eg. C<1M>."
21579 msgstr ""
21580
21581 # type: textblock
21582 #: ../fish/guestfish-commands.pod:14
21583 msgid ""
21584 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
21585 "image, see L</PREPARED DISK IMAGES>."
21586 msgstr ""
21587
21588 # type: =head2
21589 #: ../fish/guestfish-commands.pod:17
21590 msgid "copy-in"
21591 msgstr ""
21592
21593 # type: verbatim
21594 #: ../fish/guestfish-commands.pod:19
21595 #, no-wrap
21596 msgid ""
21597 " copy-in local [local ...] /remotedir\n"
21598 "\n"
21599 msgstr ""
21600
21601 # type: textblock
21602 #: ../fish/guestfish-commands.pod:21
21603 msgid ""
21604 "C<copy-in> copies local files or directories recursively into the disk "
21605 "image, placing them in the directory called C</remotedir> (which must "
21606 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
21607 "other commands as necessary."
21608 msgstr ""
21609
21610 # type: textblock
21611 #: ../fish/guestfish-commands.pod:26
21612 msgid ""
21613 "Multiple local files and directories can be specified, but the last "
21614 "parameter must always be a remote directory.  Wildcards cannot be used."
21615 msgstr ""
21616
21617 # type: =head2
21618 #: ../fish/guestfish-commands.pod:30
21619 msgid "copy-out"
21620 msgstr ""
21621
21622 # type: verbatim
21623 #: ../fish/guestfish-commands.pod:32
21624 #, no-wrap
21625 msgid ""
21626 " copy-out remote [remote ...] localdir\n"
21627 "\n"
21628 msgstr ""
21629
21630 # type: textblock
21631 #: ../fish/guestfish-commands.pod:34
21632 msgid ""
21633 "C<copy-out> copies remote files or directories recursively out of the disk "
21634 "image, placing them on the host disk in a local directory called C<localdir> "
21635 "(which must exist).  This guestfish meta-command turns into a sequence of "
21636 "L</download>, L</tar-out> and other commands as necessary."
21637 msgstr ""
21638
21639 # type: textblock
21640 #: ../fish/guestfish-commands.pod:40
21641 msgid ""
21642 "Multiple remote files and directories can be specified, but the last "
21643 "parameter must always be a local directory.  To download to the current "
21644 "directory, use C<.> as in:"
21645 msgstr ""
21646
21647 # type: verbatim
21648 #: ../fish/guestfish-commands.pod:44
21649 #, no-wrap
21650 msgid ""
21651 " copy-out /home .\n"
21652 "\n"
21653 msgstr ""
21654
21655 # type: textblock
21656 #: ../fish/guestfish-commands.pod:46
21657 msgid ""
21658 "Wildcards cannot be used in the ordinary command, but you can use them with "
21659 "the help of L</glob> like this:"
21660 msgstr ""
21661
21662 # type: verbatim
21663 #: ../fish/guestfish-commands.pod:49
21664 #, no-wrap
21665 msgid ""
21666 " glob copy-out /home/* .\n"
21667 "\n"
21668 msgstr ""
21669
21670 # type: =head2
21671 #: ../fish/guestfish-commands.pod:51
21672 msgid "echo"
21673 msgstr ""
21674
21675 # type: verbatim
21676 #: ../fish/guestfish-commands.pod:53
21677 #, no-wrap
21678 msgid ""
21679 " echo [params ...]\n"
21680 "\n"
21681 msgstr ""
21682
21683 # type: textblock
21684 #: ../fish/guestfish-commands.pod:55
21685 msgid "This echos the parameters to the terminal."
21686 msgstr ""
21687
21688 # type: =head2
21689 #: ../fish/guestfish-commands.pod:57
21690 msgid "edit"
21691 msgstr ""
21692
21693 # type: =head2
21694 #: ../fish/guestfish-commands.pod:59
21695 msgid "vi"
21696 msgstr ""
21697
21698 # type: =head2
21699 #: ../fish/guestfish-commands.pod:61
21700 msgid "emacs"
21701 msgstr ""
21702
21703 # type: verbatim
21704 #: ../fish/guestfish-commands.pod:63
21705 #, no-wrap
21706 msgid ""
21707 " edit filename\n"
21708 "\n"
21709 msgstr ""
21710
21711 # type: textblock
21712 #: ../fish/guestfish-commands.pod:65
21713 msgid ""
21714 "This is used to edit a file.  It downloads the file, edits it locally using "
21715 "your editor, then uploads the result."
21716 msgstr ""
21717
21718 # type: textblock
21719 #: ../fish/guestfish-commands.pod:68
21720 msgid ""
21721 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
21722 "or C<emacs> you will get those corresponding editors."
21723 msgstr ""
21724
21725 # type: =head2
21726 #: ../fish/guestfish-commands.pod:72
21727 msgid "glob"
21728 msgstr ""
21729
21730 # type: verbatim
21731 #: ../fish/guestfish-commands.pod:74
21732 #, no-wrap
21733 msgid ""
21734 " glob command args...\n"
21735 "\n"
21736 msgstr ""
21737
21738 # type: textblock
21739 #: ../fish/guestfish-commands.pod:76
21740 msgid ""
21741 "Expand wildcards in any paths in the args list, and run C<command> "
21742 "repeatedly on each matching path."
21743 msgstr ""
21744
21745 # type: textblock
21746 #: ../fish/guestfish-commands.pod:79
21747 msgid "See L</WILDCARDS AND GLOBBING>."
21748 msgstr ""
21749
21750 # type: =head2
21751 #: ../fish/guestfish-commands.pod:81
21752 msgid "lcd"
21753 msgstr ""
21754
21755 # type: verbatim
21756 #: ../fish/guestfish-commands.pod:83
21757 #, no-wrap
21758 msgid ""
21759 " lcd directory\n"
21760 "\n"
21761 msgstr ""
21762
21763 # type: textblock
21764 #: ../fish/guestfish-commands.pod:85
21765 msgid "Change the local directory, ie. the current directory of guestfish itself."
21766 msgstr ""
21767
21768 # type: textblock
21769 #: ../fish/guestfish-commands.pod:88
21770 msgid "Note that C<!cd> won't do what you might expect."
21771 msgstr ""
21772
21773 # type: =head2
21774 #: ../fish/guestfish-commands.pod:90
21775 msgid "man"
21776 msgstr ""
21777
21778 # type: =head2
21779 #: ../fish/guestfish-commands.pod:92
21780 msgid "manual"
21781 msgstr ""
21782
21783 # type: verbatim
21784 #: ../fish/guestfish-commands.pod:94
21785 #, no-wrap
21786 msgid ""
21787 "  man\n"
21788 "\n"
21789 msgstr ""
21790
21791 # type: textblock
21792 #: ../fish/guestfish-commands.pod:96
21793 msgid "Opens the manual page for guestfish."
21794 msgstr ""
21795
21796 # type: =head2
21797 #: ../fish/guestfish-commands.pod:98
21798 msgid "more"
21799 msgstr ""
21800
21801 # type: =head2
21802 #: ../fish/guestfish-commands.pod:100
21803 msgid "less"
21804 msgstr ""
21805
21806 # type: verbatim
21807 #: ../fish/guestfish-commands.pod:102
21808 #, no-wrap
21809 msgid ""
21810 "  more filename\n"
21811 "\n"
21812 msgstr ""
21813
21814 # type: verbatim
21815 #: ../fish/guestfish-commands.pod:104
21816 #, no-wrap
21817 msgid ""
21818 " less filename\n"
21819 "\n"
21820 msgstr ""
21821
21822 # type: textblock
21823 #: ../fish/guestfish-commands.pod:106
21824 msgid "This is used to view a file."
21825 msgstr ""
21826
21827 # type: textblock
21828 #: ../fish/guestfish-commands.pod:108
21829 msgid ""
21830 "The default viewer is C<$PAGER>.  However if you use the alternate command "
21831 "C<less> you will get the C<less> command specifically."
21832 msgstr ""
21833
21834 # type: =head2
21835 #: ../fish/guestfish-commands.pod:111
21836 msgid "reopen"
21837 msgstr ""
21838
21839 # type: verbatim
21840 #: ../fish/guestfish-commands.pod:113
21841 #, no-wrap
21842 msgid ""
21843 "  reopen\n"
21844 "\n"
21845 msgstr ""
21846
21847 # type: textblock
21848 #: ../fish/guestfish-commands.pod:115
21849 msgid ""
21850 "Close and reopen the libguestfs handle.  It is not necessary to use this "
21851 "normally, because the handle is closed properly when guestfish exits.  "
21852 "However this is occasionally useful for testing."
21853 msgstr ""
21854
21855 # type: =head2
21856 #: ../fish/guestfish-commands.pod:119
21857 msgid "sparse"
21858 msgstr ""
21859
21860 # type: verbatim
21861 #: ../fish/guestfish-commands.pod:121
21862 #, no-wrap
21863 msgid ""
21864 " sparse filename size\n"
21865 "\n"
21866 msgstr ""
21867
21868 # type: textblock
21869 #: ../fish/guestfish-commands.pod:123
21870 msgid ""
21871 "This creates an empty sparse file of the given size, and then adds so it can "
21872 "be further examined."
21873 msgstr ""
21874
21875 # type: textblock
21876 #: ../fish/guestfish-commands.pod:126
21877 msgid ""
21878 "In all respects it works the same as the L</alloc> command, except that the "
21879 "image file is allocated sparsely, which means that disk blocks are not "
21880 "assigned to the file until they are needed.  Sparse disk files only use "
21881 "space when written to, but they are slower and there is a danger you could "
21882 "run out of real disk space during a write operation."
21883 msgstr ""
21884
21885 # type: =head2
21886 #: ../fish/guestfish-commands.pod:136
21887 msgid "supported"
21888 msgstr ""
21889
21890 # type: verbatim
21891 #: ../fish/guestfish-commands.pod:138
21892 #, no-wrap
21893 msgid ""
21894 " supported\n"
21895 "\n"
21896 msgstr ""
21897
21898 # type: textblock
21899 #: ../fish/guestfish-commands.pod:140
21900 msgid ""
21901 "This command returns a list of the optional groups known to the daemon, and "
21902 "indicates which ones are supported by this build of the libguestfs "
21903 "appliance."
21904 msgstr ""
21905
21906 # type: textblock
21907 #: ../fish/guestfish-commands.pod:144
21908 msgid "See also L<guestfs(3)/AVAILABILITY>."
21909 msgstr ""
21910
21911 # type: =head2
21912 #: ../fish/guestfish-commands.pod:146
21913 msgid "time"
21914 msgstr ""
21915
21916 # type: verbatim
21917 #: ../fish/guestfish-commands.pod:148
21918 #, no-wrap
21919 msgid ""
21920 " time command args...\n"
21921 "\n"
21922 msgstr ""
21923
21924 # type: textblock
21925 #: ../fish/guestfish-commands.pod:150
21926 msgid ""
21927 "Run the command as usual, but print the elapsed time afterwards.  This can "
21928 "be useful for benchmarking operations."
21929 msgstr ""
21930
21931 # type: textblock
21932 #: ../test-tool/libguestfs-test-tool.pod:5
21933 msgid "libguestfs-test-tool - End user tests for libguestfs"
21934 msgstr ""
21935
21936 # type: verbatim
21937 #: ../test-tool/libguestfs-test-tool.pod:9
21938 #, no-wrap
21939 msgid ""
21940 " libguestfs-test-tool [--options]\n"
21941 "\n"
21942 msgstr ""
21943
21944 # type: textblock
21945 #: ../test-tool/libguestfs-test-tool.pod:13
21946 msgid ""
21947 "libguestfs-test-tool is a test program shipped with libguestfs to end users "
21948 "and developers, to allow them to check basic libguestfs functionality is "
21949 "working.  This is needed because libguestfs occasionally breaks for reasons "
21950 "beyond our control: usually because of changes in the underlying qemu or "
21951 "kernel packages, or the host environment."
21952 msgstr ""
21953
21954 # type: textblock
21955 #: ../test-tool/libguestfs-test-tool.pod:20
21956 msgid "If you suspect a problem in libguestfs, then just run:"
21957 msgstr ""
21958
21959 # type: verbatim
21960 #: ../test-tool/libguestfs-test-tool.pod:22
21961 #, no-wrap
21962 msgid ""
21963 " libguestfs-test-tool\n"
21964 "\n"
21965 msgstr ""
21966
21967 # type: textblock
21968 #: ../test-tool/libguestfs-test-tool.pod:24
21969 msgid "It will print lots of diagnostic messages."
21970 msgstr ""
21971
21972 # type: textblock
21973 #: ../test-tool/libguestfs-test-tool.pod:26
21974 msgid "If it runs to completion successfully, you will see this near the end:"
21975 msgstr ""
21976
21977 # type: verbatim
21978 #: ../test-tool/libguestfs-test-tool.pod:28
21979 #, no-wrap
21980 msgid ""
21981 " ===== TEST FINISHED OK =====\n"
21982 "\n"
21983 msgstr ""
21984
21985 # type: textblock
21986 #: ../test-tool/libguestfs-test-tool.pod:30
21987 msgid "and the test tool will exit with code 0."
21988 msgstr ""
21989
21990 # type: textblock
21991 #: ../test-tool/libguestfs-test-tool.pod:32
21992 msgid ""
21993 "If it fails (and/or exits with non-zero error code), please paste the "
21994 "B<complete, unedited> output of the test tool into a bug report.  More "
21995 "information about reporting bugs can be found on the "
21996 "L<http://libguestfs.org/> website."
21997 msgstr ""
21998
21999 # type: =item
22000 #: ../test-tool/libguestfs-test-tool.pod:41
22001 msgid "I<--help>"
22002 msgstr ""
22003
22004 # type: textblock
22005 #: ../test-tool/libguestfs-test-tool.pod:43
22006 msgid "Display short usage information and exit."
22007 msgstr ""
22008
22009 # type: =item
22010 #: ../test-tool/libguestfs-test-tool.pod:45
22011 msgid "I<--helper /path/to/libguestfs-test-tool-helper>"
22012 msgstr ""
22013
22014 # type: textblock
22015 #: ../test-tool/libguestfs-test-tool.pod:47
22016 msgid ""
22017 "Pass an alternate name for the helper program.  libguestfs-test-tool will "
22018 "normally look in the C<$libexec> directory that was configured when the tool "
22019 "was built."
22020 msgstr ""
22021
22022 # type: =item
22023 #: ../test-tool/libguestfs-test-tool.pod:51
22024 msgid "I<--qemu qemu_binary>"
22025 msgstr ""
22026
22027 # type: textblock
22028 #: ../test-tool/libguestfs-test-tool.pod:53
22029 msgid ""
22030 "If you have downloaded another qemu binary, point this option at the full "
22031 "path of the binary to try it."
22032 msgstr ""
22033
22034 # type: =item
22035 #: ../test-tool/libguestfs-test-tool.pod:56
22036 msgid "I<--qemudir qemu_source_dir>"
22037 msgstr ""
22038
22039 # type: textblock
22040 #: ../test-tool/libguestfs-test-tool.pod:58
22041 msgid ""
22042 "If you have compiled qemu from source, point this option at the source "
22043 "directory to try it."
22044 msgstr ""
22045
22046 # type: =item
22047 #: ../test-tool/libguestfs-test-tool.pod:61
22048 msgid "I<--timeout N>"
22049 msgstr ""
22050
22051 # type: textblock
22052 #: ../test-tool/libguestfs-test-tool.pod:63
22053 msgid ""
22054 "Set the launch timeout to C<N> seconds.  The default is 120 seconds which "
22055 "does not usually need to be adjusted unless your machine is very slow."
22056 msgstr ""
22057
22058 # type: =head1
22059 #: ../test-tool/libguestfs-test-tool.pod:69
22060 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
22061 msgstr ""
22062
22063 # type: textblock
22064 #: ../test-tool/libguestfs-test-tool.pod:71
22065 msgid ""
22066 "If you have compiled another version of qemu from source and would like to "
22067 "try that, then you can use the I<--qemudir> option to point to the qemu "
22068 "source directory."
22069 msgstr ""
22070
22071 # type: textblock
22072 #: ../test-tool/libguestfs-test-tool.pod:75
22073 msgid ""
22074 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
22075 "option to point to the binary."
22076 msgstr ""
22077
22078 # type: textblock
22079 #: ../test-tool/libguestfs-test-tool.pod:78
22080 msgid ""
22081 "When using an alternate qemu with libguestfs, usually you would need to "
22082 "write a qemu wrapper script (see section I<QEMU WRAPPERS> in "
22083 "L<guestfs(3)>).  libguestfs-test-tool writes a temporary qemu wrapper script "
22084 "when you use either of the I<--qemudir> or I<--qemu> options."
22085 msgstr ""
22086
22087 # type: textblock
22088 #: ../test-tool/libguestfs-test-tool.pod:85
22089 msgid ""
22090 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
22091 "I<1> if there was an error."
22092 msgstr ""
22093
22094 # type: =item
22095 #: ../test-tool/libguestfs-test-tool.pod:92
22096 msgid "/usr/libexec/libguestfs-test-tool-helper"
22097 msgstr ""
22098
22099 # type: textblock
22100 #: ../test-tool/libguestfs-test-tool.pod:94
22101 msgid ""
22102 "This helper program is run inside the appliance and provides additional "
22103 "tests."
22104 msgstr ""
22105
22106 # type: =item
22107 #: ../test-tool/libguestfs-test-tool.pod:97
22108 msgid "/usr/bin/mkisofs"
22109 msgstr ""
22110
22111 # type: textblock
22112 #: ../test-tool/libguestfs-test-tool.pod:99
22113 msgid ""
22114 "The C<mkisofs> command is required in order to construct a CD-ROM ISO file "
22115 "which is used as part of the tests."
22116 msgstr ""
22117
22118 # type: textblock
22119 #: ../test-tool/libguestfs-test-tool.pod:106
22120 msgid ""
22121 "For the full list of environment variables which may affect libguestfs, "
22122 "please see the L<guestfs(3)> manual page."
22123 msgstr ""
22124
22125 # type: textblock
22126 #: ../test-tool/libguestfs-test-tool.pod:111
22127 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
22128 msgstr ""
22129
22130 # type: textblock
22131 #: ../test-tool/libguestfs-test-tool.pod:121 ../fuse/guestmount.pod:195
22132 msgid "Copyright (C) 2009 Red Hat Inc.  L<http://libguestfs.org/>"
22133 msgstr ""
22134
22135 # type: textblock
22136 #: ../fuse/guestmount.pod:5
22137 msgid "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
22138 msgstr ""
22139
22140 # type: verbatim
22141 #: ../fuse/guestmount.pod:9
22142 #, no-wrap
22143 msgid ""
22144 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
22145 "\n"
22146 msgstr ""
22147
22148 # type: textblock
22149 #: ../fuse/guestmount.pod:13
22150 msgid ""
22151 "You must I<not> use C<guestmount> in read-write mode on live virtual "
22152 "machines.  If you do this, you risk disk corruption in the VM."
22153 msgstr ""
22154
22155 # type: textblock
22156 #: ../fuse/guestmount.pod:18
22157 msgid ""
22158 "The guestmount program can be used to mount virtual machine filesystems and "
22159 "other disk images on the host.  It uses libguestfs for access to the guest "
22160 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
22161 "a mountable device."
22162 msgstr ""
22163
22164 # type: textblock
22165 #: ../fuse/guestmount.pod:23
22166 msgid ""
22167 "Along with other options, you have to give at least one device (I<-a> "
22168 "option) and at least one mountpoint (I<-m> option).  How this works is "
22169 "better explained in the L<guestfish(1)> manual page, or you can use "
22170 "L<virt-inspector(1)> and/or the wrapper script C<guestmount-wrapper> to help "
22171 "you."
22172 msgstr ""
22173
22174 # type: textblock
22175 #: ../fuse/guestmount.pod:29
22176 msgid ""
22177 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
22178 "by you, and the filesystem will not be visible to any other users unless you "
22179 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
22180 "the filesystem, use the C<fusermount -u> command."
22181 msgstr ""
22182
22183 # type: textblock
22184 #: ../fuse/guestmount.pod:37
22185 msgid ""
22186 "For a typical Windows guest which has its main filesystem on the first "
22187 "partition:"
22188 msgstr ""
22189
22190 # type: verbatim
22191 #: ../fuse/guestmount.pod:40
22192 #, no-wrap
22193 msgid ""
22194 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
22195 "\n"
22196 msgstr ""
22197
22198 # type: textblock
22199 #: ../fuse/guestmount.pod:42
22200 msgid ""
22201 "For a typical Linux guest which has a /boot filesystem on the first "
22202 "partition, and the root filesystem on a logical volume:"
22203 msgstr ""
22204
22205 # type: verbatim
22206 #: ../fuse/guestmount.pod:45
22207 #, no-wrap
22208 msgid ""
22209 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
22210 "\n"
22211 msgstr ""
22212
22213 # type: textblock
22214 #: ../fuse/guestmount.pod:47
22215 msgid ""
22216 "To get L<virt-inspector(1)> to do the hard work of detecting guest "
22217 "mountpoints for you:"
22218 msgstr ""
22219
22220 # type: verbatim
22221 #: ../fuse/guestmount.pod:50
22222 #, no-wrap
22223 msgid ""
22224 " guestmount $(virt-inspector --ro-fish MyGuest) /mnt\n"
22225 "\n"
22226 msgstr ""
22227
22228 # type: textblock
22229 #: ../fuse/guestmount.pod:52
22230 msgid ""
22231 "(or use --fish if you don't want it to be a read only mount).  The option is "
22232 "called I<--ro-fish> or I<--fish> because these parameters are compatible "
22233 "with L<guestfish(1)>."
22234 msgstr ""
22235
22236 # type: textblock
22237 #: ../fuse/guestmount.pod:56
22238 msgid ""
22239 "If you don't know what filesystems are contained in a guest or disk image, "
22240 "use L<virt-list-filesystems(1)> first:"
22241 msgstr ""
22242
22243 # type: verbatim
22244 #: ../fuse/guestmount.pod:59
22245 #, no-wrap
22246 msgid ""
22247 " virt-list-filesystems MyGuest\n"
22248 "\n"
22249 msgstr ""
22250
22251 # type: textblock
22252 #: ../fuse/guestmount.pod:61
22253 msgid ""
22254 "If you want to trace the libguestfs calls but without excessive debugging, "
22255 "we recommend:"
22256 msgstr ""
22257
22258 # type: verbatim
22259 #: ../fuse/guestmount.pod:64
22260 #, no-wrap
22261 msgid ""
22262 " guestmount [-a ... -m ...] --trace /mnt\n"
22263 "\n"
22264 msgstr ""
22265
22266 # type: textblock
22267 #: ../fuse/guestmount.pod:66
22268 msgid "If you want to debug the program, we recommend:"
22269 msgstr ""
22270
22271 # type: verbatim
22272 #: ../fuse/guestmount.pod:68
22273 #, no-wrap
22274 msgid ""
22275 " guestmount [-a ... -m ...] --trace --verbose /mnt\n"
22276 "\n"
22277 msgstr ""
22278
22279 # type: textblock
22280 #: ../fuse/guestmount.pod:76
22281 msgid "Add a block device or virtual machine image."
22282 msgstr ""
22283
22284 # type: =item
22285 #: ../fuse/guestmount.pod:78
22286 msgid "B<--dir-cache-timeout N>"
22287 msgstr ""
22288
22289 # type: textblock
22290 #: ../fuse/guestmount.pod:80
22291 msgid ""
22292 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
22293 "seconds.  The readdir cache [actually, there are several semi-independent "
22294 "caches] is populated after a readdir(2) call with the stat and extended "
22295 "attributes of the files in the directory, in anticipation that they will be "
22296 "requested soon after."
22297 msgstr ""
22298
22299 # type: textblock
22300 #: ../fuse/guestmount.pod:86
22301 msgid ""
22302 "There is also a different attribute cache implemented by FUSE (see the FUSE "
22303 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
22304 "requests, only cache existing ones."
22305 msgstr ""
22306
22307 # type: =item
22308 #: ../fuse/guestmount.pod:90
22309 msgid "B<--fuse-help>"
22310 msgstr ""
22311
22312 # type: textblock
22313 #: ../fuse/guestmount.pod:92
22314 msgid "Display help on special FUSE options (see I<-o> below)."
22315 msgstr ""
22316
22317 # type: textblock
22318 #: ../fuse/guestmount.pod:96
22319 msgid "Display brief help and exit."
22320 msgstr ""
22321
22322 # type: =item
22323 #: ../fuse/guestmount.pod:98
22324 msgid "B<-m dev[:mnt]> | B<--mount dev[:mnt]>"
22325 msgstr ""
22326
22327 # type: textblock
22328 #: ../fuse/guestmount.pod:100
22329 msgid ""
22330 "Mount the named partition or logical volume on the given mountpoint B<in the "
22331 "guest> (this has nothing to do with mountpoints in the host)."
22332 msgstr ""
22333
22334 # type: textblock
22335 #: ../fuse/guestmount.pod:103
22336 msgid ""
22337 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
22338 "something on C</>."
22339 msgstr ""
22340
22341 # type: textblock
22342 #: ../fuse/guestmount.pod:108
22343 msgid ""
22344 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
22345 "unmounted.  If you specify this option, then we don't attempt to sync the "
22346 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
22347 msgstr ""
22348
22349 # type: =item
22350 #: ../fuse/guestmount.pod:113
22351 msgid "B<-o option> | B<--option option>"
22352 msgstr ""
22353
22354 # type: textblock
22355 #: ../fuse/guestmount.pod:115
22356 msgid "Pass extra options to FUSE."
22357 msgstr ""
22358
22359 # type: textblock
22360 #: ../fuse/guestmount.pod:117
22361 msgid ""
22362 "To get a list of all the extra options supported by FUSE, use the command "
22363 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
22364 "of them are a good idea."
22365 msgstr ""
22366
22367 # type: verbatim
22368 #: ../fuse/guestmount.pod:121
22369 #, no-wrap
22370 msgid ""
22371 " guestmount --fuse-help\n"
22372 "\n"
22373 msgstr ""
22374
22375 # type: textblock
22376 #: ../fuse/guestmount.pod:123
22377 msgid "Some potentially useful FUSE options:"
22378 msgstr ""
22379
22380 # type: =item
22381 #: ../fuse/guestmount.pod:127
22382 msgid "B<-o allow_other>"
22383 msgstr ""
22384
22385 # type: textblock
22386 #: ../fuse/guestmount.pod:129
22387 msgid "Allow other users to see the filesystem."
22388 msgstr ""
22389
22390 # type: =item
22391 #: ../fuse/guestmount.pod:131
22392 msgid "B<-o attr_timeout=N>"
22393 msgstr ""
22394
22395 # type: textblock
22396 #: ../fuse/guestmount.pod:133
22397 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
22398 msgstr ""
22399
22400 # type: =item
22401 #: ../fuse/guestmount.pod:135
22402 msgid "B<-o kernel_cache>"
22403 msgstr ""
22404
22405 # type: textblock
22406 #: ../fuse/guestmount.pod:137
22407 msgid ""
22408 "Allow the kernel to cache files (reduces the number of reads that have to go "
22409 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
22410 "afford the extra memory usage."
22411 msgstr ""
22412
22413 # type: =item
22414 #: ../fuse/guestmount.pod:141
22415 msgid "B<-o uid=N> B<-o gid=N>"
22416 msgstr ""
22417
22418 # type: textblock
22419 #: ../fuse/guestmount.pod:143
22420 msgid ""
22421 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
22422 "the chosen values."
22423 msgstr ""
22424
22425 # type: textblock
22426 #: ../fuse/guestmount.pod:150
22427 msgid ""
22428 "Add devices and mount everything read-only.  Also disallow writes and make "
22429 "the disk appear read-only to FUSE."
22430 msgstr ""
22431
22432 # type: textblock
22433 #: ../fuse/guestmount.pod:153
22434 msgid ""
22435 "This is highly recommended if you are not going to edit the guest disk.  If "
22436 "the guest is running and this option is I<not> supplied, then there is a "
22437 "strong risk of disk corruption in the guest.  We try to prevent this from "
22438 "happening, but it is not always possible."
22439 msgstr ""
22440
22441 # type: textblock
22442 #: ../fuse/guestmount.pod:160
22443 msgid "Enable SELinux support for the guest."
22444 msgstr ""
22445
22446 # type: =item
22447 #: ../fuse/guestmount.pod:162
22448 msgid "B<--trace>"
22449 msgstr ""
22450
22451 # type: textblock
22452 #: ../fuse/guestmount.pod:164
22453 msgid "Trace libguestfs calls (to stderr)."
22454 msgstr ""
22455
22456 # type: textblock
22457 #: ../fuse/guestmount.pod:166
22458 msgid "This also stops the daemon from forking into the background."
22459 msgstr ""
22460
22461 # type: textblock
22462 #: ../fuse/guestmount.pod:170
22463 msgid "Enable verbose messages from underlying libguestfs."
22464 msgstr ""
22465
22466 # type: textblock
22467 #: ../fuse/guestmount.pod:174
22468 msgid "Display the program version and exit."
22469 msgstr ""
22470
22471 # type: textblock
22472 #: ../fuse/guestmount.pod:180
22473 msgid ""
22474 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
22475 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, "
22476 "L<http://fuse.sf.net/>."
22477 msgstr ""
22478
22479 # type: textblock
22480 #: ../inspector/virt-inspector.pl:40
22481 msgid ""
22482 "virt-inspector - Display OS version, kernel, drivers, mount points, "
22483 "applications, etc. in a virtual machine"
22484 msgstr ""
22485
22486 # type: verbatim
22487 #: ../inspector/virt-inspector.pl:44
22488 #, no-wrap
22489 msgid ""
22490 " virt-inspector [--connect URI] domname\n"
22491 "\n"
22492 msgstr ""
22493
22494 # type: verbatim
22495 #: ../inspector/virt-inspector.pl:46
22496 #, no-wrap
22497 msgid ""
22498 " virt-inspector guest.img [guest.img ...]\n"
22499 "\n"
22500 msgstr ""
22501
22502 # type: textblock
22503 #: ../inspector/virt-inspector.pl:50
22504 msgid ""
22505 "B<virt-inspector> examines a virtual machine and tries to determine the "
22506 "version of the OS, the kernel version, what drivers are installed, whether "
22507 "the virtual machine is fully virtualized (FV) or para-virtualized (PV), what "
22508 "applications are installed and more."
22509 msgstr ""
22510
22511 # type: textblock
22512 #: ../inspector/virt-inspector.pl:55
22513 msgid ""
22514 "Virt-inspector can produce output in several formats, including a readable "
22515 "text report, and XML for feeding into other programs."
22516 msgstr ""
22517
22518 # type: textblock
22519 #: ../inspector/virt-inspector.pl:58
22520 msgid ""
22521 "In the normal usage, use C<virt-inspector domname> where C<domname> is the "
22522 "libvirt domain (see: C<virsh list --all>)."
22523 msgstr ""
22524
22525 # type: textblock
22526 #: ../inspector/virt-inspector.pl:61
22527 msgid ""
22528 "You can also run virt-inspector directly on disk images from a single "
22529 "virtual machine.  Use C<virt-inspector guest.img>.  In rare cases a domain "
22530 "has several block devices, in which case you should list them one after "
22531 "another, with the first corresponding to the guest's C</dev/sda>, the second "
22532 "to the guest's C</dev/sdb> and so on."
22533 msgstr ""
22534
22535 # type: textblock
22536 #: ../inspector/virt-inspector.pl:67
22537 msgid ""
22538 "Virt-inspector can only inspect and report upon I<one domain at a time>.  To "
22539 "inspect several virtual machines, you have to run virt-inspector several "
22540 "times (for example, from a shell script for-loop)."
22541 msgstr ""
22542
22543 # type: textblock
22544 #: ../inspector/virt-inspector.pl:72
22545 msgid ""
22546 "Because virt-inspector needs direct access to guest images, it won't "
22547 "normally work over remote libvirt connections."
22548 msgstr ""
22549
22550 # type: textblock
22551 #: ../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
22552 msgid "Display brief help."
22553 msgstr ""
22554
22555 # type: =item
22556 #: ../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
22557 msgid "B<--version>"
22558 msgstr ""
22559
22560 # type: textblock
22561 #: ../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
22562 msgid "Display version number and exit."
22563 msgstr ""
22564
22565 # type: =item
22566 #: ../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
22567 msgid "B<--connect URI> | B<-c URI>"
22568 msgstr ""
22569
22570 # type: textblock
22571 #: ../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
22572 msgid ""
22573 "If using libvirt, connect to the given I<URI>.  If omitted, then we connect "
22574 "to the default libvirt hypervisor."
22575 msgstr ""
22576
22577 # type: textblock
22578 #: ../inspector/virt-inspector.pl:104
22579 msgid ""
22580 "Libvirt is only used if you specify a C<domname> on the command line.  If "
22581 "you specify guest block devices directly, then libvirt is not used at all."
22582 msgstr ""
22583
22584 # type: textblock
22585 #: ../inspector/virt-inspector.pl:114
22586 msgid ""
22587 "The following options select the output format.  Use only one of them.  The "
22588 "default is a readable text report."
22589 msgstr ""
22590
22591 # type: =item
22592 #: ../inspector/virt-inspector.pl:119
22593 msgid "B<--text> (default)"
22594 msgstr ""
22595
22596 # type: textblock
22597 #: ../inspector/virt-inspector.pl:121
22598 msgid "Plain text report."
22599 msgstr ""
22600
22601 # type: =item
22602 #: ../inspector/virt-inspector.pl:123
22603 msgid "B<--none>"
22604 msgstr ""
22605
22606 # type: textblock
22607 #: ../inspector/virt-inspector.pl:125
22608 msgid "Produce no output at all."
22609 msgstr ""
22610
22611 # type: =item
22612 #: ../inspector/virt-inspector.pl:127
22613 msgid "B<--xml>"
22614 msgstr ""
22615
22616 # type: textblock
22617 #: ../inspector/virt-inspector.pl:129
22618 msgid ""
22619 "If you select I<--xml> then you get XML output which can be fed to other "
22620 "programs."
22621 msgstr ""
22622
22623 # type: =item
22624 #: ../inspector/virt-inspector.pl:132
22625 msgid "B<--yaml>"
22626 msgstr ""
22627
22628 # type: textblock
22629 #: ../inspector/virt-inspector.pl:134
22630 msgid ""
22631 "If you select I<--yaml> then you get YAML output which can be fed to other "
22632 "programs."
22633 msgstr ""
22634
22635 # type: =item
22636 #: ../inspector/virt-inspector.pl:137
22637 msgid "B<--perl>"
22638 msgstr ""
22639
22640 # type: textblock
22641 #: ../inspector/virt-inspector.pl:139
22642 msgid ""
22643 "If you select I<--perl> then you get Perl structures output which can be "
22644 "used directly in another Perl program."
22645 msgstr ""
22646
22647 # type: =item
22648 #: ../inspector/virt-inspector.pl:142
22649 msgid "B<--fish>"
22650 msgstr ""
22651
22652 # type: =item
22653 #: ../inspector/virt-inspector.pl:144
22654 msgid "B<--ro-fish>"
22655 msgstr ""
22656
22657 # type: textblock
22658 #: ../inspector/virt-inspector.pl:146
22659 msgid ""
22660 "If you select I<--fish> then we print a L<guestfish(1)> command line which "
22661 "will automatically mount up the filesystems on the correct mount points.  "
22662 "Try this for example:"
22663 msgstr ""
22664
22665 # type: verbatim
22666 #: ../inspector/virt-inspector.pl:150
22667 #, no-wrap
22668 msgid ""
22669 " guestfish $(virt-inspector --fish guest.img)\n"
22670 "\n"
22671 msgstr ""
22672
22673 # type: textblock
22674 #: ../inspector/virt-inspector.pl:152
22675 msgid ""
22676 "I<--ro-fish> is the same, but the I<--ro> option is passed to guestfish so "
22677 "that the filesystems are mounted read-only."
22678 msgstr ""
22679
22680 # type: =item
22681 #: ../inspector/virt-inspector.pl:155
22682 msgid "B<--query>"
22683 msgstr ""
22684
22685 # type: textblock
22686 #: ../inspector/virt-inspector.pl:157
22687 msgid ""
22688 "In \"query mode\" we answer common questions about the guest, such as "
22689 "whether it is fullvirt or needs a Xen hypervisor to run."
22690 msgstr ""
22691
22692 # type: textblock
22693 #: ../inspector/virt-inspector.pl:160
22694 msgid "See section I<QUERY MODE> below."
22695 msgstr ""
22696
22697 # type: =item
22698 #: ../inspector/virt-inspector.pl:166
22699 msgid "B<--windows-registry>"
22700 msgstr ""
22701
22702 # type: textblock
22703 #: ../inspector/virt-inspector.pl:168
22704 msgid ""
22705 "This flag is ignored for compatibility with earlier releases of the "
22706 "software."
22707 msgstr ""
22708
22709 # type: textblock
22710 #: ../inspector/virt-inspector.pl:171
22711 msgid ""
22712 "In this version, if L<Win::Hivex(3)> is available, then we attempt to parse "
22713 "information out of the Registry for any Windows guest."
22714 msgstr ""
22715
22716 # type: =head1
22717 #: ../inspector/virt-inspector.pl:218
22718 msgid "OUTPUT FORMAT"
22719 msgstr ""
22720
22721 # type: verbatim
22722 #: ../inspector/virt-inspector.pl:220
22723 #, no-wrap
22724 msgid ""
22725 " Operating system(s)\n"
22726 " -------------------\n"
22727 " Linux (distro + version)\n"
22728 " Windows (version)\n"
22729 "    |\n"
22730 "    |\n"
22731 "    +--- Filesystems ---------- Installed apps --- Kernel & drivers\n"
22732 "         -----------            --------------     ----------------\n"
22733 "         mount point => device  List of apps       Extra information\n"
22734 "         mount point => device  and versions       about kernel(s)\n"
22735 "              ...                                  and drivers\n"
22736 "         swap => swap device\n"
22737 "         (plus lots of extra information\n"
22738 "         about each filesystem)\n"
22739 "\n"
22740 msgstr ""
22741
22742 # type: textblock
22743 #: ../inspector/virt-inspector.pl:235
22744 msgid "The output of virt-inspector is a complex two-level data structure."
22745 msgstr ""
22746
22747 # type: textblock
22748 #: ../inspector/virt-inspector.pl:237
22749 msgid ""
22750 "At the top level is a list of the operating systems installed on the guest.  "
22751 "(For the vast majority of guests, only a single OS is installed.)  The data "
22752 "returned for the OS includes the name (Linux, Windows), the distribution and "
22753 "version."
22754 msgstr ""
22755
22756 # type: textblock
22757 #: ../inspector/virt-inspector.pl:242
22758 msgid "The diagram above shows what we return for each OS."
22759 msgstr ""
22760
22761 # type: textblock
22762 #: ../inspector/virt-inspector.pl:244
22763 msgid ""
22764 "With the I<--xml> option the output is mapped into an XML document.  There "
22765 "is a RELAX-NG schema for this XML in the file I<virt-inspector.rng> which "
22766 "normally ships with virt-inspector, or can be found in the source."
22767 msgstr ""
22768
22769 # type: textblock
22770 #: ../inspector/virt-inspector.pl:249
22771 msgid ""
22772 "With the I<--fish> or I<--ro-fish> option the mount points are mapped to "
22773 "L<guestfish(1)> command line parameters, so that you can go in afterwards "
22774 "and inspect the guest with everything mounted in the right place.  For "
22775 "example:"
22776 msgstr ""
22777
22778 # type: verbatim
22779 #: ../inspector/virt-inspector.pl:254
22780 #, no-wrap
22781 msgid ""
22782 " guestfish $(virt-inspector --ro-fish guest.img)\n"
22783 " ==> guestfish --ro -a guest.img -m /dev/VG/LV:/ -m /dev/sda1:/boot\n"
22784 "\n"
22785 msgstr ""
22786
22787 # type: =head1
22788 #: ../inspector/virt-inspector.pl:589
22789 msgid "QUERY MODE"
22790 msgstr ""
22791
22792 # type: textblock
22793 #: ../inspector/virt-inspector.pl:591
22794 msgid ""
22795 "When you use C<virt-inspector --query>, the output is a series of lines of "
22796 "the form:"
22797 msgstr ""
22798
22799 # type: verbatim
22800 #: ../inspector/virt-inspector.pl:594
22801 #, no-wrap
22802 msgid ""
22803 " windows=no\n"
22804 " linux=yes\n"
22805 " fullvirt=yes\n"
22806 " xen_pv_drivers=no\n"
22807 "\n"
22808 msgstr ""
22809
22810 # type: textblock
22811 #: ../inspector/virt-inspector.pl:599
22812 msgid ""
22813 "(each answer is usually C<yes> or C<no>, or the line is completely missing "
22814 "if we could not determine the answer at all)."
22815 msgstr ""
22816
22817 # type: textblock
22818 #: ../inspector/virt-inspector.pl:602
22819 msgid ""
22820 "If the guest is multiboot, you can get apparently conflicting answers "
22821 "(eg. C<windows=yes> and C<linux=yes>, or a guest which is both fullvirt and "
22822 "has a Xen PV kernel).  This is normal, and just means that the guest can do "
22823 "both things, although it might require operator intervention such as "
22824 "selecting a boot option when the guest is booting."
22825 msgstr ""
22826
22827 # type: textblock
22828 #: ../inspector/virt-inspector.pl:609
22829 msgid "This section describes the full range of answers possible."
22830 msgstr ""
22831
22832 # type: =item
22833 #: ../inspector/virt-inspector.pl:630
22834 msgid "windows=(yes|no)"
22835 msgstr ""
22836
22837 # type: textblock
22838 #: ../inspector/virt-inspector.pl:632
22839 msgid "Answer C<yes> if Microsoft Windows is installed in the guest."
22840 msgstr ""
22841
22842 # type: =item
22843 #: ../inspector/virt-inspector.pl:645
22844 msgid "linux=(yes|no)"
22845 msgstr ""
22846
22847 # type: textblock
22848 #: ../inspector/virt-inspector.pl:647
22849 msgid "Answer C<yes> if a Linux kernel is installed in the guest."
22850 msgstr ""
22851
22852 # type: =item
22853 #: ../inspector/virt-inspector.pl:660
22854 msgid "rhel=(yes|no)"
22855 msgstr ""
22856
22857 # type: textblock
22858 #: ../inspector/virt-inspector.pl:662
22859 msgid "Answer C<yes> if the guest contains Red Hat Enterprise Linux."
22860 msgstr ""
22861
22862 # type: =item
22863 #: ../inspector/virt-inspector.pl:676
22864 msgid "fedora=(yes|no)"
22865 msgstr ""
22866
22867 # type: textblock
22868 #: ../inspector/virt-inspector.pl:678
22869 msgid "Answer C<yes> if the guest contains the Fedora Linux distribution."
22870 msgstr ""
22871
22872 # type: =item
22873 #: ../inspector/virt-inspector.pl:691
22874 msgid "debian=(yes|no)"
22875 msgstr ""
22876
22877 # type: textblock
22878 #: ../inspector/virt-inspector.pl:693
22879 msgid "Answer C<yes> if the guest contains the Debian Linux distribution."
22880 msgstr ""
22881
22882 # type: =item
22883 #: ../inspector/virt-inspector.pl:706
22884 msgid "fullvirt=(yes|no)"
22885 msgstr ""
22886
22887 # type: textblock
22888 #: ../inspector/virt-inspector.pl:708
22889 msgid ""
22890 "Answer C<yes> if there is at least one operating system kernel installed in "
22891 "the guest which runs fully virtualized.  Such a guest would require a "
22892 "hypervisor which supports full system virtualization."
22893 msgstr ""
22894
22895 # type: =item
22896 #: ../inspector/virt-inspector.pl:731
22897 msgid "xen_domU_kernel=(yes|no)"
22898 msgstr ""
22899
22900 # type: textblock
22901 #: ../inspector/virt-inspector.pl:733
22902 msgid ""
22903 "Answer C<yes> if there is at least one Linux kernel installed in the guest "
22904 "which is compiled as a Xen DomU (a Xen paravirtualized guest)."
22905 msgstr ""
22906
22907 # type: =item
22908 #: ../inspector/virt-inspector.pl:753
22909 msgid "xen_pv_drivers=(yes|no)"
22910 msgstr ""
22911
22912 # type: textblock
22913 #: ../inspector/virt-inspector.pl:755
22914 msgid ""
22915 "Answer C<yes> if the guest has Xen paravirtualized drivers installed "
22916 "(usually the kernel itself will be fully virtualized, but the PV drivers "
22917 "have been installed by the administrator for performance reasons)."
22918 msgstr ""
22919
22920 # type: =item
22921 #: ../inspector/virt-inspector.pl:777
22922 msgid "virtio_drivers=(yes|no)"
22923 msgstr ""
22924
22925 # type: textblock
22926 #: ../inspector/virt-inspector.pl:779
22927 msgid ""
22928 "Answer C<yes> if the guest has virtio paravirtualized drivers installed.  "
22929 "Virtio drivers are commonly used to improve the performance of KVM."
22930 msgstr ""
22931
22932 # type: =item
22933 #: ../inspector/virt-inspector.pl:800
22934 msgid "userspace_arch=(x86_64|...)"
22935 msgstr ""
22936
22937 # type: textblock
22938 #: ../inspector/virt-inspector.pl:802
22939 msgid "Print the architecture of userspace."
22940 msgstr ""
22941
22942 # type: textblock
22943 #: ../inspector/virt-inspector.pl:804 ../inspector/virt-inspector.pl:825
22944 msgid "NB. For multi-boot VMs this can print several lines."
22945 msgstr ""
22946
22947 # type: =item
22948 #: ../inspector/virt-inspector.pl:821
22949 msgid "kernel_arch=(x86_64|...)"
22950 msgstr ""
22951
22952 # type: textblock
22953 #: ../inspector/virt-inspector.pl:823
22954 msgid "Print the architecture of the kernel."
22955 msgstr ""
22956
22957 # type: textblock
22958 #: ../inspector/virt-inspector.pl:848 ../tools/virt-df.pl:484
22959 msgid ""
22960 "L<guestfs(3)>, L<guestfish(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
22961 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
22962 msgstr ""
22963
22964 # type: textblock
22965 #: ../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
22966 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
22967 msgstr ""
22968
22969 # type: textblock
22970 #: ../inspector/virt-inspector.pl:859
22971 msgid "Matthew Booth L<mbooth@redhat.com>"
22972 msgstr ""
22973
22974 # type: textblock
22975 #: ../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
22976 msgid "Copyright (C) 2009 Red Hat Inc."
22977 msgstr ""
22978
22979 # type: textblock
22980 #: ../tools/virt-cat.pl:34
22981 msgid "virt-cat - Display a file in a virtual machine"
22982 msgstr ""
22983
22984 # type: verbatim
22985 #: ../tools/virt-cat.pl:38
22986 #, no-wrap
22987 msgid ""
22988 " virt-cat [--options] domname file\n"
22989 "\n"
22990 msgstr ""
22991
22992 # type: verbatim
22993 #: ../tools/virt-cat.pl:40
22994 #, no-wrap
22995 msgid ""
22996 " virt-cat [--options] disk.img [disk.img ...] file\n"
22997 "\n"
22998 msgstr ""
22999
23000 # type: textblock
23001 #: ../tools/virt-cat.pl:44
23002 msgid ""
23003 "C<virt-cat> is a command line tool to display the contents of C<file> where "
23004 "C<file> exists in the named virtual machine (or disk image)."
23005 msgstr ""
23006
23007 # type: textblock
23008 #: ../tools/virt-cat.pl:47
23009 msgid ""
23010 "C<virt-cat> can be used to quickly view a single file.  To edit a file, use "
23011 "C<virt-edit>.  For more complex cases you should look at the L<guestfish(1)> "
23012 "tool."
23013 msgstr ""
23014
23015 # type: textblock
23016 #: ../tools/virt-cat.pl:53
23017 msgid "Display C</etc/fstab> file from inside the libvirt VM called C<mydomain>:"
23018 msgstr ""
23019
23020 # type: verbatim
23021 #: ../tools/virt-cat.pl:56
23022 #, no-wrap
23023 msgid ""
23024 " virt-cat mydomain /etc/fstab\n"
23025 "\n"
23026 msgstr ""
23027
23028 # type: textblock
23029 #: ../tools/virt-cat.pl:58
23030 msgid "List syslog messages from a VM:"
23031 msgstr ""
23032
23033 # type: verbatim
23034 #: ../tools/virt-cat.pl:60
23035 #, no-wrap
23036 msgid ""
23037 " virt-cat mydomain /var/log/messages | tail\n"
23038 "\n"
23039 msgstr ""
23040
23041 # type: textblock
23042 #: ../tools/virt-cat.pl:62
23043 msgid "Find out what DHCP IP address a VM acquired:"
23044 msgstr ""
23045
23046 # type: verbatim
23047 #: ../tools/virt-cat.pl:64
23048 #, no-wrap
23049 msgid ""
23050 " virt-cat mydomain /var/log/messages | grep 'dhclient: bound to' | tail\n"
23051 "\n"
23052 msgstr ""
23053
23054 # type: textblock
23055 #: ../tools/virt-cat.pl:66
23056 msgid "Find out what packages were recently installed:"
23057 msgstr ""
23058
23059 # type: verbatim
23060 #: ../tools/virt-cat.pl:68
23061 #, no-wrap
23062 msgid ""
23063 " virt-cat mydomain /var/log/yum.log | tail\n"
23064 "\n"
23065 msgstr ""
23066
23067 # type: textblock
23068 #: ../tools/virt-cat.pl:70
23069 msgid "Find out who is logged on inside a virtual machine:"
23070 msgstr ""
23071
23072 # type: verbatim
23073 #: ../tools/virt-cat.pl:72
23074 #, no-wrap
23075 msgid ""
23076 " virt-cat mydomain /var/run/utmp > /tmp/utmp\n"
23077 " who /tmp/utmp\n"
23078 "\n"
23079 msgstr ""
23080
23081 # type: textblock
23082 #: ../tools/virt-cat.pl:75
23083 msgid "or who was logged on:"
23084 msgstr ""
23085
23086 # type: verbatim
23087 #: ../tools/virt-cat.pl:77
23088 #, no-wrap
23089 msgid ""
23090 " virt-cat mydomain /var/log/wtmp > /tmp/wtmp\n"
23091 " last -f /tmp/wtmp\n"
23092 "\n"
23093 msgstr ""
23094
23095 # type: textblock
23096 #: ../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
23097 msgid ""
23098 "If you specify guest block devices directly, then libvirt is not used at "
23099 "all."
23100 msgstr ""
23101
23102 # type: textblock
23103 #: ../tools/virt-cat.pl:165
23104 msgid ""
23105 "L<guestfs(3)>, L<guestfish(1)>, L<virt-edit(1)>, L<Sys::Guestfs(3)>, "
23106 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
23107 msgstr ""
23108
23109 # type: =head1
23110 #: ../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
23111 msgid "AUTHOR"
23112 msgstr ""
23113
23114 # type: textblock
23115 #: ../tools/virt-df.pl:36
23116 msgid "virt-df - Display free space on virtual filesystems"
23117 msgstr ""
23118
23119 # type: verbatim
23120 #: ../tools/virt-df.pl:40
23121 #, no-wrap
23122 msgid ""
23123 " virt-df [--options]\n"
23124 "\n"
23125 msgstr ""
23126
23127 # type: verbatim
23128 #: ../tools/virt-df.pl:42
23129 #, no-wrap
23130 msgid ""
23131 " virt-df [--options] domname\n"
23132 "\n"
23133 msgstr ""
23134
23135 # type: verbatim
23136 #: ../tools/virt-df.pl:44
23137 #, no-wrap
23138 msgid ""
23139 " virt-df [--options] disk.img [disk.img ...]\n"
23140 "\n"
23141 msgstr ""
23142
23143 # type: textblock
23144 #: ../tools/virt-df.pl:48
23145 msgid ""
23146 "C<virt-df> is a command line tool to display free space on virtual machine "
23147 "filesystems.  Unlike other tools, it doesn't just display the amount of "
23148 "space allocated to a virtual machine, but can look inside the virtual "
23149 "machine to see how much space is really being used."
23150 msgstr ""
23151
23152 # type: textblock
23153 #: ../tools/virt-df.pl:53
23154 msgid ""
23155 "It is like the L<df(1)> command, but for virtual machines, except that it "
23156 "also works for Windows virtual machines."
23157 msgstr ""
23158
23159 # type: textblock
23160 #: ../tools/virt-df.pl:56
23161 msgid ""
23162 "If used without any arguments, C<virt-df> checks with libvirt to get a list "
23163 "of all active and inactive guests, and performs a C<df>-type operation on "
23164 "each one in turn, printing out the results."
23165 msgstr ""
23166
23167 # type: textblock
23168 #: ../tools/virt-df.pl:60
23169 msgid ""
23170 "If used with any argument(s), C<virt-df> performs a C<df>-type operation on "
23171 "either the single named libvirt domain, or on the disk image(s) listed on "
23172 "the command line (which must all belong to a single VM).  In this mode (with "
23173 "arguments), C<virt-df> will I<only work for a single guest>.  If you want to "
23174 "run on multiple guests, then you have to invoke C<virt-df> multiple times."
23175 msgstr ""
23176
23177 # type: textblock
23178 #: ../tools/virt-df.pl:67
23179 msgid ""
23180 "Use the C<--csv> option to get a format which can be easily parsed by other "
23181 "programs.  Other options are mostly similar to standard C<df> options.  See "
23182 "below for the complete list."
23183 msgstr ""
23184
23185 # type: =item
23186 #: ../tools/virt-df.pl:107
23187 msgid "B<--csv>"
23188 msgstr ""
23189
23190 # type: textblock
23191 #: ../tools/virt-df.pl:109
23192 msgid ""
23193 "Write out the results in CSV format (comma-separated values).  This format "
23194 "can be imported easily into databases and spreadsheets, but read L</NOTE "
23195 "ABOUT CSV FORMAT> below."
23196 msgstr ""
23197
23198 # type: =item
23199 #: ../tools/virt-df.pl:117
23200 msgid "B<--human-readable> | B<-h>"
23201 msgstr ""
23202
23203 # type: textblock
23204 #: ../tools/virt-df.pl:119
23205 msgid "Print sizes in human-readable format."
23206 msgstr ""
23207
23208 # type: textblock
23209 #: ../tools/virt-df.pl:121
23210 msgid "You are not allowed to use I<-h> and I<--csv> at the same time."
23211 msgstr ""
23212
23213 # type: =item
23214 #: ../tools/virt-df.pl:127
23215 msgid "B<--inodes> | B<-i>"
23216 msgstr ""
23217
23218 # type: textblock
23219 #: ../tools/virt-df.pl:129
23220 msgid "Print inodes instead of blocks."
23221 msgstr ""
23222
23223 # type: =head1
23224 #: ../tools/virt-df.pl:458
23225 msgid "NOTE ABOUT CSV FORMAT"
23226 msgstr ""
23227
23228 # type: textblock
23229 #: ../tools/virt-df.pl:460
23230 msgid ""
23231 "Comma-separated values (CSV) is a deceptive format.  It I<seems> like it "
23232 "should be easy to parse, but it is definitely not easy to parse."
23233 msgstr ""
23234
23235 # type: textblock
23236 #: ../tools/virt-df.pl:463
23237 msgid ""
23238 "Myth: Just split fields at commas.  Reality: This does I<not> work "
23239 "reliably.  This example has two columns:"
23240 msgstr ""
23241
23242 # type: verbatim
23243 #: ../tools/virt-df.pl:466
23244 #, no-wrap
23245 msgid ""
23246 " \"foo,bar\",baz\n"
23247 "\n"
23248 msgstr ""
23249
23250 # type: textblock
23251 #: ../tools/virt-df.pl:468
23252 msgid ""
23253 "Myth: Read the file one line at a time.  Reality: This does I<not> work "
23254 "reliably.  This example has one row:"
23255 msgstr ""
23256
23257 # type: verbatim
23258 #: ../tools/virt-df.pl:471
23259 #, no-wrap
23260 msgid ""
23261 " \"foo\n"
23262 " bar\",baz\n"
23263 "\n"
23264 msgstr ""
23265
23266 # type: textblock
23267 #: ../tools/virt-df.pl:474
23268 msgid ""
23269 "For shell scripts, use C<csvtool> (L<http://merjis.com/developers/csv> also "
23270 "packaged in major Linux distributions)."
23271 msgstr ""
23272
23273 # type: textblock
23274 #: ../tools/virt-df.pl:477
23275 msgid ""
23276 "For other languages, use a CSV processing library (eg. C<Text::CSV> for Perl "
23277 "or Python's built-in csv library)."
23278 msgstr ""
23279
23280 # type: textblock
23281 #: ../tools/virt-df.pl:480
23282 msgid "Most spreadsheets and databases can import CSV directly."
23283 msgstr ""
23284
23285 # type: textblock
23286 #: ../tools/virt-df.pl:497 ../tools/virt-edit.pl:343 ../tools/virt-list-partitions.pl:246 ../tools/virt-rescue.pl:247
23287 msgid "Copyright (C) 2009-2010 Red Hat Inc."
23288 msgstr ""
23289
23290 # type: textblock
23291 #: ../tools/virt-edit.pl:35
23292 msgid "virt-edit - Edit a file in a virtual machine"
23293 msgstr ""
23294
23295 # type: verbatim
23296 #: ../tools/virt-edit.pl:39
23297 #, no-wrap
23298 msgid ""
23299 " virt-edit [--options] domname file\n"
23300 "\n"
23301 msgstr ""
23302
23303 # type: verbatim
23304 #: ../tools/virt-edit.pl:41
23305 #, no-wrap
23306 msgid ""
23307 " virt-edit [--options] disk.img [disk.img ...] file\n"
23308 "\n"
23309 msgstr ""
23310
23311 # type: verbatim
23312 #: ../tools/virt-edit.pl:43
23313 #, no-wrap
23314 msgid ""
23315 " virt-edit [domname|disk.img] file -e 'expr'\n"
23316 "\n"
23317 msgstr ""
23318
23319 # type: textblock
23320 #: ../tools/virt-edit.pl:47
23321 msgid ""
23322 "You must I<not> use C<virt-edit> on live virtual machines.  If you do this, "
23323 "you risk disk corruption in the VM.  C<virt-edit> tries to stop you from "
23324 "doing this, but doesn't catch all cases."
23325 msgstr ""
23326
23327 # type: textblock
23328 #: ../tools/virt-edit.pl:53
23329 msgid ""
23330 "C<virt-edit> is a command line tool to edit C<file> where C<file> exists in "
23331 "the named virtual machine (or disk image)."
23332 msgstr ""
23333
23334 # type: textblock
23335 #: ../tools/virt-edit.pl:56
23336 msgid ""
23337 "If you want to just view a file, use L<virt-cat(1)>.  For more complex cases "
23338 "you should look at the L<guestfish(1)> tool."
23339 msgstr ""
23340
23341 # type: textblock
23342 #: ../tools/virt-edit.pl:61
23343 msgid "Edit the named files interactively:"
23344 msgstr ""
23345
23346 # type: verbatim
23347 #: ../tools/virt-edit.pl:63
23348 #, no-wrap
23349 msgid ""
23350 " virt-edit mydomain /boot/grub/grub.conf\n"
23351 "\n"
23352 msgstr ""
23353
23354 # type: verbatim
23355 #: ../tools/virt-edit.pl:65
23356 #, no-wrap
23357 msgid ""
23358 " virt-edit mydomain /etc/passwd\n"
23359 "\n"
23360 msgstr ""
23361
23362 # type: textblock
23363 #: ../tools/virt-edit.pl:67
23364 msgid ""
23365 "You can also edit files non-interactively (see L</NON-INTERACTIVE EDITING> "
23366 "below).  To change the init default level to 5:"
23367 msgstr ""
23368
23369 # type: verbatim
23370 #: ../tools/virt-edit.pl:71
23371 #, no-wrap
23372 msgid ""
23373 " virt-edit mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
23374 "\n"
23375 msgstr ""
23376
23377 # type: =item
23378 #: ../tools/virt-edit.pl:97
23379 msgid "B<--backup extension> | B<-b extension>"
23380 msgstr ""
23381
23382 # type: textblock
23383 #: ../tools/virt-edit.pl:99
23384 msgid ""
23385 "Create a backup of the original file I<in the guest disk image>.  The backup "
23386 "has the original filename with C<extension> added."
23387 msgstr ""
23388
23389 # type: textblock
23390 #: ../tools/virt-edit.pl:102
23391 msgid ""
23392 "Usually the first character of C<extension> would be a dot C<.> so you would "
23393 "write:"
23394 msgstr ""
23395
23396 # type: verbatim
23397 #: ../tools/virt-edit.pl:105
23398 #, no-wrap
23399 msgid ""
23400 " virt-edit -b .orig [etc]\n"
23401 "\n"
23402 msgstr ""
23403
23404 # type: textblock
23405 #: ../tools/virt-edit.pl:107
23406 msgid "By default, no backup file is made."
23407 msgstr ""
23408
23409 # type: =item
23410 #: ../tools/virt-edit.pl:125
23411 msgid "B<--expr EXPR> | B<-e EXPR>"
23412 msgstr ""
23413
23414 # type: textblock
23415 #: ../tools/virt-edit.pl:127
23416 msgid ""
23417 "Instead of launching the external editor, non-interactively apply the Perl "
23418 "expression C<EXPR> to each line in the file.  See L</NON-INTERACTIVE "
23419 "EDITING> below."
23420 msgstr ""
23421
23422 # type: textblock
23423 #: ../tools/virt-edit.pl:131
23424 msgid ""
23425 "Be careful to properly quote the expression to prevent it from being altered "
23426 "by the shell."
23427 msgstr ""
23428
23429 # type: =head1
23430 #: ../tools/virt-edit.pl:250
23431 msgid "NON-INTERACTIVE EDITING"
23432 msgstr ""
23433
23434 # type: textblock
23435 #: ../tools/virt-edit.pl:252
23436 msgid ""
23437 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
23438 "administrator can interactively edit the file."
23439 msgstr ""
23440
23441 # type: textblock
23442 #: ../tools/virt-edit.pl:255
23443 msgid ""
23444 "There are two ways also to use C<virt-edit> from scripts in order to make "
23445 "automated edits to files.  (Note that although you I<can> use C<virt-edit> "
23446 "like this, it's less error-prone to write scripts directly using the "
23447 "libguestfs API and Augeas for configuration file editing.)"
23448 msgstr ""
23449
23450 # type: textblock
23451 #: ../tools/virt-edit.pl:261
23452 msgid ""
23453 "The first method is to temporarily set C<$EDITOR> to any script or program "
23454 "you want to run.  The script is invoked as C<$EDITOR tmpfile> and it should "
23455 "update C<tmpfile> in place however it likes."
23456 msgstr ""
23457
23458 # type: textblock
23459 #: ../tools/virt-edit.pl:265
23460 msgid ""
23461 "The second method is to use the C<-e> parameter of C<virt-edit> to run a "
23462 "short Perl snippet in the style of L<sed(1)>.  For example to replace all "
23463 "instances of C<foo> with C<bar> in a file:"
23464 msgstr ""
23465
23466 # type: verbatim
23467 #: ../tools/virt-edit.pl:269
23468 #, no-wrap
23469 msgid ""
23470 " virt-edit domname filename -e 's/foo/bar/'\n"
23471 "\n"
23472 msgstr ""
23473
23474 # type: textblock
23475 #: ../tools/virt-edit.pl:271
23476 msgid ""
23477 "The full power of Perl regular expressions can be used (see L<perlre(1)>).  "
23478 "For example to delete root's password you could do:"
23479 msgstr ""
23480
23481 # type: verbatim
23482 #: ../tools/virt-edit.pl:274
23483 #, no-wrap
23484 msgid ""
23485 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
23486 "\n"
23487 msgstr ""
23488
23489 # type: textblock
23490 #: ../tools/virt-edit.pl:276
23491 msgid ""
23492 "What really happens is that the snippet is evaluated as a Perl expression "
23493 "for each line of the file.  The line, including the final C<\\n>, is passed "
23494 "in C<$_> and the expression should update C<$_> or leave it unchanged."
23495 msgstr ""
23496
23497 # type: textblock
23498 #: ../tools/virt-edit.pl:281
23499 msgid ""
23500 "To delete a line, set C<$_> to the empty string.  For example, to delete the "
23501 "C<apache> user account from the password file you can do:"
23502 msgstr ""
23503
23504 # type: verbatim
23505 #: ../tools/virt-edit.pl:284
23506 #, no-wrap
23507 msgid ""
23508 " virt-edit mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
23509 "\n"
23510 msgstr ""
23511
23512 # type: textblock
23513 #: ../tools/virt-edit.pl:286
23514 msgid ""
23515 "To insert a line, prepend or append it to C<$_>.  However appending lines to "
23516 "the end of the file is rather difficult this way since there is no concept "
23517 "of \"last line of the file\" - your expression just doesn't get called "
23518 "again.  You might want to use the first method (setting C<$EDITOR>) if you "
23519 "want to do this."
23520 msgstr ""
23521
23522 # type: textblock
23523 #: ../tools/virt-edit.pl:292
23524 msgid ""
23525 "The variable C<$lineno> contains the current line number.  As is "
23526 "traditional, the first line in the file is number C<1>."
23527 msgstr ""
23528
23529 # type: textblock
23530 #: ../tools/virt-edit.pl:295
23531 msgid ""
23532 "The return value from the expression is ignored, but the expression may call "
23533 "C<die> in order to abort the whole program, leaving the original file "
23534 "untouched."
23535 msgstr ""
23536
23537 # type: textblock
23538 #: ../tools/virt-edit.pl:299
23539 msgid ""
23540 "Remember when matching the end of a line that C<$_> may contain the final "
23541 "C<\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
23542 "newline then neither of these.  Thus to match or substitute some text at the "
23543 "end of a line, use this regular expression:"
23544 msgstr ""
23545
23546 # type: verbatim
23547 #: ../tools/virt-edit.pl:304
23548 #, no-wrap
23549 msgid ""
23550 " /some text(\\r?\\n)?$/\n"
23551 "\n"
23552 msgstr ""
23553
23554 # type: textblock
23555 #: ../tools/virt-edit.pl:306
23556 msgid ""
23557 "Alternately, use the perl C<chomp> function, being careful not to chomp "
23558 "C<$_> itself (since that would remove all newlines from the file):"
23559 msgstr ""
23560
23561 # type: verbatim
23562 #: ../tools/virt-edit.pl:310
23563 #, no-wrap
23564 msgid ""
23565 " my $m = $_; chomp $m; $m =~ /some text$/\n"
23566 "\n"
23567 msgstr ""
23568
23569 # type: =item
23570 #: ../tools/virt-edit.pl:316
23571 msgid "C<EDITOR>"
23572 msgstr ""
23573
23574 # type: textblock
23575 #: ../tools/virt-edit.pl:318
23576 msgid ""
23577 "If set, this string is used as the editor.  It may contain arguments, "
23578 "eg. C<\"emacs -nw\">"
23579 msgstr ""
23580
23581 # type: textblock
23582 #: ../tools/virt-edit.pl:321
23583 msgid "If not set, C<vi> is used."
23584 msgstr ""
23585
23586 # type: textblock
23587 #: ../tools/virt-edit.pl:327
23588 msgid ""
23589 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, "
23590 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>, "
23591 "L<perl(1)>, L<perlre(1)>."
23592 msgstr ""
23593
23594 # type: textblock
23595 #: ../tools/virt-list-filesystems.pl:32
23596 msgid "virt-list-filesystems - List filesystems in a virtual machine or disk image"
23597 msgstr ""
23598
23599 # type: verbatim
23600 #: ../tools/virt-list-filesystems.pl:36
23601 #, no-wrap
23602 msgid ""
23603 " virt-list-filesystems [--options] domname\n"
23604 "\n"
23605 msgstr ""
23606
23607 # type: verbatim
23608 #: ../tools/virt-list-filesystems.pl:38
23609 #, no-wrap
23610 msgid ""
23611 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
23612 "\n"
23613 msgstr ""
23614
23615 # type: textblock
23616 #: ../tools/virt-list-filesystems.pl:42
23617 msgid ""
23618 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
23619 "are contained in a virtual machine or disk image."
23620 msgstr ""
23621
23622 # type: textblock
23623 #: ../tools/virt-list-filesystems.pl:46
23624 msgid ""
23625 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
23626 "functionality.  For more complex cases you should look at the "
23627 "L<guestfish(1)> tool."
23628 msgstr ""
23629
23630 # type: =item
23631 #: ../tools/virt-list-filesystems.pl:86 ../tools/virt-list-partitions.pl:95 ../tools/virt-ls.pl:115
23632 msgid "B<-l> | B<--long>"
23633 msgstr ""
23634
23635 # type: textblock
23636 #: ../tools/virt-list-filesystems.pl:88
23637 msgid ""
23638 "With this option, C<virt-list-filesystems> displays the type of each "
23639 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
23640 msgstr ""
23641
23642 # type: =item
23643 #: ../tools/virt-list-filesystems.pl:95
23644 msgid "B<-a> | B<--all>"
23645 msgstr ""
23646
23647 # type: textblock
23648 #: ../tools/virt-list-filesystems.pl:97
23649 msgid ""
23650 "Normally we only show mountable filesystems.  If this option is given then "
23651 "swap devices are shown too."
23652 msgstr ""
23653
23654 # type: textblock
23655 #: ../tools/virt-list-filesystems.pl:193
23656 msgid ""
23657 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, "
23658 "L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
23659 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
23660 msgstr ""
23661
23662 # type: textblock
23663 #: ../tools/virt-list-partitions.pl:32
23664 msgid "virt-list-partitions - List partitions in a virtual machine or disk image"
23665 msgstr ""
23666
23667 # type: verbatim
23668 #: ../tools/virt-list-partitions.pl:36
23669 #, no-wrap
23670 msgid ""
23671 " virt-list-partitions [--options] domname\n"
23672 "\n"
23673 msgstr ""
23674
23675 # type: verbatim
23676 #: ../tools/virt-list-partitions.pl:38
23677 #, no-wrap
23678 msgid ""
23679 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
23680 "\n"
23681 msgstr ""
23682
23683 # type: textblock
23684 #: ../tools/virt-list-partitions.pl:42
23685 msgid ""
23686 "C<virt-list-partitions> is a command line tool to list the partitions that "
23687 "are contained in a virtual machine or disk image.  It is mainly useful as a "
23688 "first step to using L<virt-resize(1)>."
23689 msgstr ""
23690
23691 # type: textblock
23692 #: ../tools/virt-list-partitions.pl:47
23693 msgid ""
23694 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
23695 "functionality.  For more complex cases you should look at the "
23696 "L<guestfish(1)> tool."
23697 msgstr ""
23698
23699 # type: =item
23700 #: ../tools/virt-list-partitions.pl:87
23701 msgid "B<-h> | B<--human-readable>"
23702 msgstr ""
23703
23704 # type: textblock
23705 #: ../tools/virt-list-partitions.pl:89
23706 msgid "Show sizes in human-readable form (eg. \"1G\")."
23707 msgstr ""
23708
23709 # type: textblock
23710 #: ../tools/virt-list-partitions.pl:97
23711 msgid ""
23712 "With this option, C<virt-list-partitions> displays the type and size of each "
23713 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
23714 msgstr ""
23715
23716 # type: =item
23717 #: ../tools/virt-list-partitions.pl:104
23718 msgid "B<-t> | B<--total>"
23719 msgstr ""
23720
23721 # type: textblock
23722 #: ../tools/virt-list-partitions.pl:106
23723 msgid "Display the total size of each block device (as a separate row or rows)."
23724 msgstr ""
23725
23726 # type: textblock
23727 #: ../tools/virt-list-partitions.pl:231
23728 msgid ""
23729 "L<guestfs(3)>, L<guestfish(1)>, L<virt-list-filesystems(1)>, "
23730 "L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
23731 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
23732 msgstr ""
23733
23734 # type: textblock
23735 #: ../tools/virt-ls.pl:35
23736 msgid "virt-ls - List files in a virtual machine"
23737 msgstr ""
23738
23739 # type: verbatim
23740 #: ../tools/virt-ls.pl:39
23741 #, no-wrap
23742 msgid ""
23743 " virt-ls [--options] domname directory\n"
23744 "\n"
23745 msgstr ""
23746
23747 # type: verbatim
23748 #: ../tools/virt-ls.pl:41
23749 #, no-wrap
23750 msgid ""
23751 " virt-ls [--options] disk.img [disk.img ...] directory\n"
23752 "\n"
23753 msgstr ""
23754
23755 # type: textblock
23756 #: ../tools/virt-ls.pl:45
23757 msgid ""
23758 "C<virt-ls> is a command line tool to list the names of files in a directory "
23759 "inside a virtual machine or disk image."
23760 msgstr ""
23761
23762 # type: textblock
23763 #: ../tools/virt-ls.pl:48
23764 msgid ""
23765 "C<virt-ls> is just a simple wrapper around L<libguestfs(3)> functionality.  "
23766 "For more complex cases you should look at the L<guestfish(1)> tool."
23767 msgstr ""
23768
23769 # type: textblock
23770 #: ../tools/virt-ls.pl:52
23771 msgid ""
23772 "C<virt-ls> can be used in one of three modes: simple, long and recursive.  A "
23773 "simple listing is like the ordinary L<ls(1)> command:"
23774 msgstr ""
23775
23776 # type: verbatim
23777 #: ../tools/virt-ls.pl:55
23778 #, no-wrap
23779 msgid ""
23780 " $ virt-ls myguest /\n"
23781 " bin\n"
23782 " boot\n"
23783 " [etc.]\n"
23784 "\n"
23785 msgstr ""
23786
23787 # type: textblock
23788 #: ../tools/virt-ls.pl:60
23789 msgid "With the C<-l> (C<--long>) option, C<virt-ls> shows more detail:"
23790 msgstr ""
23791
23792 # type: verbatim
23793 #: ../tools/virt-ls.pl:62
23794 #, no-wrap
23795 msgid ""
23796 " $ virt-ls -l myguest /\n"
23797 " total 204\n"
23798 " dr-xr-xr-x.   2 root root   4096 2009-08-25 19:06 bin\n"
23799 " dr-xr-xr-x.   5 root root   3072 2009-08-25 19:06 boot\n"
23800 " [etc.]\n"
23801 "\n"
23802 msgstr ""
23803
23804 # type: textblock
23805 #: ../tools/virt-ls.pl:68
23806 msgid ""
23807 "With the C<-R> (C<--recursive>) option, C<virt-ls> lists the names of files "
23808 "and directories recursively:"
23809 msgstr ""
23810
23811 # type: verbatim
23812 #: ../tools/virt-ls.pl:71
23813 #, no-wrap
23814 msgid ""
23815 " $ virt-ls -R myguest /tmp\n"
23816 " foo\n"
23817 " foo/bar\n"
23818 " [etc.]\n"
23819 "\n"
23820 msgstr ""
23821
23822 # type: textblock
23823 #: ../tools/virt-ls.pl:76
23824 msgid ""
23825 "You I<cannot> combine these options.  To do more complicated things, use "
23826 "L<guestfish(1)>."
23827 msgstr ""
23828
23829 # type: =item
23830 #: ../tools/virt-ls.pl:117
23831 msgid "B<-R> | B<--recursive>"
23832 msgstr ""
23833
23834 # type: textblock
23835 #: ../tools/virt-ls.pl:119
23836 msgid ""
23837 "Select the mode.  With neither of these options, C<virt-ls> produces a "
23838 "simple, flat list of the files in the named directory."
23839 msgstr ""
23840
23841 # type: textblock
23842 #: ../tools/virt-ls.pl:122
23843 msgid ""
23844 "C<virt-ls -l> produces a \"long listing\", which shows more detail (just "
23845 "like the plain C<ls -l> command)."
23846 msgstr ""
23847
23848 # type: textblock
23849 #: ../tools/virt-ls.pl:125
23850 msgid ""
23851 "C<virt-ls -R> produces a recursive list of files starting at the named "
23852 "directory.  See the documentation for the C<guestfs_find> command "
23853 "L<guestfs(3)> for precise details."
23854 msgstr ""
23855
23856 # type: textblock
23857 #: ../tools/virt-ls.pl:129
23858 msgid "You cannot combine these options."
23859 msgstr ""
23860
23861 # type: textblock
23862 #: ../tools/virt-ls.pl:212
23863 msgid ""
23864 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, "
23865 "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
23866 "L<http://libguestfs.org/>."
23867 msgstr ""
23868
23869 # type: textblock
23870 #: ../tools/virt-make-fs.pl:37
23871 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
23872 msgstr ""
23873
23874 # type: verbatim
23875 #: ../tools/virt-make-fs.pl:41
23876 #, no-wrap
23877 msgid ""
23878 " virt-make-fs [--options] input.tar output.img\n"
23879 "\n"
23880 msgstr ""
23881
23882 # type: verbatim
23883 #: ../tools/virt-make-fs.pl:43
23884 #, no-wrap
23885 msgid ""
23886 " virt-make-fs [--options] input.tar.gz output.img\n"
23887 "\n"
23888 msgstr ""
23889
23890 # type: verbatim
23891 #: ../tools/virt-make-fs.pl:45
23892 #, no-wrap
23893 msgid ""
23894 " virt-make-fs [--options] directory output.img\n"
23895 "\n"
23896 msgstr ""
23897
23898 # type: textblock
23899 #: ../tools/virt-make-fs.pl:49
23900 msgid ""
23901 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
23902 "archive or some files in a directory.  It is similar to tools like "
23903 "L<mkisofs(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, "
23904 "it can create common filesystem types like ext2/3 or NTFS, which can be "
23905 "useful if you want to attach these filesystems to existing virtual machines "
23906 "(eg. to import large amounts of read-only data to a VM)."
23907 msgstr ""
23908
23909 # type: textblock
23910 #: ../tools/virt-make-fs.pl:57
23911 msgid "Basic usage is:"
23912 msgstr ""
23913
23914 # type: verbatim
23915 #: ../tools/virt-make-fs.pl:59
23916 #, no-wrap
23917 msgid ""
23918 " virt-make-fs input output\n"
23919 "\n"
23920 msgstr ""
23921
23922 # type: textblock
23923 #: ../tools/virt-make-fs.pl:61
23924 msgid ""
23925 "where C<input> is either a directory containing files that you want to add, "
23926 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
23927 "C<output> is a disk image.  The input type is detected automatically.  The "
23928 "output disk image defaults to a raw ext2 image unless you specify extra "
23929 "flags (see L</OPTIONS> below)."
23930 msgstr ""
23931
23932 # type: =head2
23933 #: ../tools/virt-make-fs.pl:67
23934 msgid "EXTRA SPACE"
23935 msgstr ""
23936
23937 # type: textblock
23938 #: ../tools/virt-make-fs.pl:69
23939 msgid ""
23940 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
23941 "the files that it contains, but might have extra space.  Depending on how "
23942 "you are going to use the output, you might think this extra space is wasted "
23943 "and want to minimize it, or you might want to leave space so that more files "
23944 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
23945 "but you can use the C<--size> flag to leave space in the filesystem if you "
23946 "want it."
23947 msgstr ""
23948
23949 # type: textblock
23950 #: ../tools/virt-make-fs.pl:77
23951 msgid ""
23952 "An alternative way to leave extra space but not make the output image any "
23953 "bigger is to use an alternative disk image format (instead of the default "
23954 "\"raw\" format).  Using C<--format=qcow2> will use the native QEmu/KVM qcow2 "
23955 "image format (check your hypervisor supports this before using it).  This "
23956 "allows you to choose a large C<--size> but the extra space won't actually be "
23957 "allocated in the image until you try to store something in it."
23958 msgstr ""
23959
23960 # type: textblock
23961 #: ../tools/virt-make-fs.pl:85
23962 msgid ""
23963 "Don't forget that you can also use local commands including L<resize2fs(8)> "
23964 "and L<virt-resize(1)> to resize existing filesystems, or rerun "
23965 "virt-make-resize to build another image from scratch."
23966 msgstr ""
23967
23968 # type: =head3
23969 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123 ../tools/virt-make-fs.pl:142
23970 msgid "EXAMPLE"
23971 msgstr ""
23972
23973 # type: verbatim
23974 #: ../tools/virt-make-fs.pl:91
23975 #, no-wrap
23976 msgid ""
23977 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
23978 "\n"
23979 msgstr ""
23980
23981 # type: =head2
23982 #: ../tools/virt-make-fs.pl:93
23983 msgid "FILESYSTEM TYPE"
23984 msgstr ""
23985
23986 # type: textblock
23987 #: ../tools/virt-make-fs.pl:95
23988 msgid ""
23989 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
23990 "libguestfs supports can be used (but I<not> read-only formats like "
23991 "ISO9660).  Here are some of the more common choices:"
23992 msgstr ""
23993
23994 # type: =item
23995 #: ../tools/virt-make-fs.pl:101
23996 msgid "I<ext3>"
23997 msgstr ""
23998
23999 # type: textblock
24000 #: ../tools/virt-make-fs.pl:103
24001 msgid ""
24002 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
24003 "you are not going to use the filesystem in a way that requires the journal, "
24004 "then this is just wasted overhead."
24005 msgstr ""
24006
24007 # type: =item
24008 #: ../tools/virt-make-fs.pl:107
24009 msgid "I<ntfs> or I<vfat>"
24010 msgstr ""
24011
24012 # type: textblock
24013 #: ../tools/virt-make-fs.pl:109
24014 msgid "Useful if exporting data to a Windows guest."
24015 msgstr ""
24016
24017 # type: textblock
24018 #: ../tools/virt-make-fs.pl:111
24019 msgid ""
24020 "I<Note for vfat>: The tar archive or local directory must only contain files "
24021 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
24022 "program running within libguestfs is unable to change the ownership of "
24023 "non-root files, since vfat itself does not support this."
24024 msgstr ""
24025
24026 # type: =item
24027 #: ../tools/virt-make-fs.pl:116
24028 msgid "I<minix>"
24029 msgstr ""
24030
24031 # type: textblock
24032 #: ../tools/virt-make-fs.pl:118
24033 msgid ""
24034 "Lower overhead than C<ext2>, but certain limitations on filename length and "
24035 "total filesystem size."
24036 msgstr ""
24037
24038 # type: verbatim
24039 #: ../tools/virt-make-fs.pl:125
24040 #, no-wrap
24041 msgid ""
24042 " virt-make-fs --type=minix input minixfs.img\n"
24043 "\n"
24044 msgstr ""
24045
24046 # type: =head2
24047 #: ../tools/virt-make-fs.pl:127
24048 msgid "TO PARTITION OR NOT TO PARTITION"
24049 msgstr ""
24050
24051 # type: textblock
24052 #: ../tools/virt-make-fs.pl:129
24053 msgid "Optionally virt-make-fs can add a partition table to the output disk."
24054 msgstr ""
24055
24056 # type: textblock
24057 #: ../tools/virt-make-fs.pl:131
24058 msgid ""
24059 "Adding a partition can make the disk image more compatible with certain "
24060 "virtualized operating systems which don't expect to see a filesystem "
24061 "directly located on a block device (Linux doesn't care and will happily "
24062 "handle both types)."
24063 msgstr ""
24064
24065 # type: textblock
24066 #: ../tools/virt-make-fs.pl:136
24067 msgid ""
24068 "On the other hand, if you have a partition table then the output image is no "
24069 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
24070 "directly on a partitioned disk image.  (However libguestfs tools such as "
24071 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
24072 msgstr ""
24073
24074 # type: textblock
24075 #: ../tools/virt-make-fs.pl:144
24076 msgid "Add an MBR partition:"
24077 msgstr ""
24078
24079 # type: verbatim
24080 #: ../tools/virt-make-fs.pl:146
24081 #, no-wrap
24082 msgid ""
24083 " virt-make-fs --partition -- input disk.img\n"
24084 "\n"
24085 msgstr ""
24086
24087 # type: textblock
24088 #: ../tools/virt-make-fs.pl:148
24089 msgid ""
24090 "If the output disk image could be terabyte-sized or larger, it's better to "
24091 "use an EFI/GPT-compatible partition table:"
24092 msgstr ""
24093
24094 # type: verbatim
24095 #: ../tools/virt-make-fs.pl:151
24096 #, no-wrap
24097 msgid ""
24098 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
24099 "\n"
24100 msgstr ""
24101
24102 # type: =item
24103 #: ../tools/virt-make-fs.pl:177 ../tools/virt-win-reg.pl:196
24104 msgid "B<--debug>"
24105 msgstr ""
24106
24107 # type: textblock
24108 #: ../tools/virt-make-fs.pl:179
24109 msgid "Enable debugging information."
24110 msgstr ""
24111
24112 # type: =item
24113 #: ../tools/virt-make-fs.pl:185
24114 msgid "B<--size=E<lt>NE<gt>>"
24115 msgstr ""
24116
24117 # type: =item
24118 #: ../tools/virt-make-fs.pl:187
24119 msgid "B<--size=+E<lt>NE<gt>>"
24120 msgstr ""
24121
24122 # type: =item
24123 #: ../tools/virt-make-fs.pl:189
24124 msgid "B<-s E<lt>NE<gt>>"
24125 msgstr ""
24126
24127 # type: =item
24128 #: ../tools/virt-make-fs.pl:191
24129 msgid "B<-s +E<lt>NE<gt>>"
24130 msgstr ""
24131
24132 # type: textblock
24133 #: ../tools/virt-make-fs.pl:193
24134 msgid "Use the C<--size> (or C<-s>) option to choose the size of the output image."
24135 msgstr ""
24136
24137 # type: textblock
24138 #: ../tools/virt-make-fs.pl:196
24139 msgid ""
24140 "If this option is I<not> given, then the output image will be just large "
24141 "enough to contain all the files, with not much wasted space."
24142 msgstr ""
24143
24144 # type: textblock
24145 #: ../tools/virt-make-fs.pl:199
24146 msgid ""
24147 "To choose a fixed size output disk, specify an absolute number followed by "
24148 "b/K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
24149 "Petabytes or Exabytes.  This must be large enough to contain all the input "
24150 "files, else you will get an error."
24151 msgstr ""
24152
24153 # type: textblock
24154 #: ../tools/virt-make-fs.pl:204
24155 msgid ""
24156 "To leave extra space, specify C<+> (plus sign) and a number followed by "
24157 "b/K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
24158 "Petabytes or Exabytes.  For example: C<--size=+200M> means enough space for "
24159 "the input files, and (approximately) an extra 200 MB free space."
24160 msgstr ""
24161
24162 # type: textblock
24163 #: ../tools/virt-make-fs.pl:210
24164 msgid ""
24165 "Note that virt-make-fs estimates free space, and therefore will not produce "
24166 "filesystems containing precisely the free space requested.  (It is much more "
24167 "expensive and time-consuming to produce a filesystem which has precisely the "
24168 "desired free space)."
24169 msgstr ""
24170
24171 # type: =item
24172 #: ../tools/virt-make-fs.pl:219
24173 msgid "B<--format=E<lt>fmtE<gt>>"
24174 msgstr ""
24175
24176 # type: =item
24177 #: ../tools/virt-make-fs.pl:221
24178 msgid "B<-F E<lt>fmtE<gt>>"
24179 msgstr ""
24180
24181 # type: textblock
24182 #: ../tools/virt-make-fs.pl:223
24183 msgid "Choose the output disk image format."
24184 msgstr ""
24185
24186 # type: textblock
24187 #: ../tools/virt-make-fs.pl:225
24188 msgid "The default is C<raw> (raw disk image)."
24189 msgstr ""
24190
24191 # type: textblock
24192 #: ../tools/virt-make-fs.pl:227
24193 msgid ""
24194 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
24195 "that would really make sense here is C<qcow2>."
24196 msgstr ""
24197
24198 # type: =item
24199 #: ../tools/virt-make-fs.pl:234
24200 msgid "B<--type=E<lt>fsE<gt>>"
24201 msgstr ""
24202
24203 # type: =item
24204 #: ../tools/virt-make-fs.pl:236
24205 msgid "B<-t E<lt>fsE<gt>>"
24206 msgstr ""
24207
24208 # type: textblock
24209 #: ../tools/virt-make-fs.pl:238
24210 msgid "Choose the output filesystem type."
24211 msgstr ""
24212
24213 # type: textblock
24214 #: ../tools/virt-make-fs.pl:240
24215 msgid "The default is C<ext2>."
24216 msgstr ""
24217
24218 # type: textblock
24219 #: ../tools/virt-make-fs.pl:242
24220 msgid "Any filesystem which is supported read-write by libguestfs can be used here."
24221 msgstr ""
24222
24223 # type: =item
24224 #: ../tools/virt-make-fs.pl:249
24225 msgid "B<--partition>"
24226 msgstr ""
24227
24228 # type: =item
24229 #: ../tools/virt-make-fs.pl:251
24230 msgid "B<--partition=E<lt>parttypeE<gt>>"
24231 msgstr ""
24232
24233 # type: textblock
24234 #: ../tools/virt-make-fs.pl:253
24235 msgid ""
24236 "If specified, this flag adds an MBR partition table to the output disk "
24237 "image."
24238 msgstr ""
24239
24240 # type: textblock
24241 #: ../tools/virt-make-fs.pl:256
24242 msgid ""
24243 "You can change the partition table type, eg. C<--partition=gpt> for large "
24244 "disks."
24245 msgstr ""
24246
24247 # type: textblock
24248 #: ../tools/virt-make-fs.pl:259
24249 msgid ""
24250 "Note that if you just use a lonesome C<--partition>, the Perl option parser "
24251 "might consider the next parameter to be the partition type.  For example:"
24252 msgstr ""
24253
24254 # type: verbatim
24255 #: ../tools/virt-make-fs.pl:263
24256 #, no-wrap
24257 msgid ""
24258 " virt-make-fs --partition input.tar ...\n"
24259 "\n"
24260 msgstr ""
24261
24262 # type: textblock
24263 #: ../tools/virt-make-fs.pl:265
24264 msgid ""
24265 "would cause virt-make-fs to think you wanted to use a partition type of "
24266 "C<input.tar> which is completely wrong.  To avoid this, use C<--> (a double "
24267 "dash) between options and the input file argument:"
24268 msgstr ""
24269
24270 # type: verbatim
24271 #: ../tools/virt-make-fs.pl:269
24272 #, no-wrap
24273 msgid ""
24274 " virt-make-fs --partition -- input.tar ...\n"
24275 "\n"
24276 msgstr ""
24277
24278 # type: textblock
24279 #: ../tools/virt-make-fs.pl:529
24280 msgid ""
24281 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar(1)>, L<mkisofs(1)>, "
24282 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, "
24283 "L<guestfs(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
24284 msgstr ""
24285
24286 # type: textblock
24287 #: ../tools/virt-make-fs.pl:543 ../tools/virt-win-reg.pl:478
24288 msgid ""
24289 "When reporting bugs, please enable debugging and capture the I<complete> "
24290 "output:"
24291 msgstr ""
24292
24293 # type: verbatim
24294 #: ../tools/virt-make-fs.pl:546
24295 #, no-wrap
24296 msgid ""
24297 " export LIBGUESTFS_DEBUG=1\n"
24298 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
24299 "\n"
24300 msgstr ""
24301
24302 # type: textblock
24303 #: ../tools/virt-make-fs.pl:549
24304 msgid ""
24305 "Attach /tmp/virt-make-fs.log to a new bug report at "
24306 "L<https://bugzilla.redhat.com/>"
24307 msgstr ""
24308
24309 # type: textblock
24310 #: ../tools/virt-make-fs.pl:558 ../tools/virt-resize.pl:1413 ../tools/virt-win-reg.pl:493
24311 msgid "Copyright (C) 2010 Red Hat Inc."
24312 msgstr ""
24313
24314 # type: textblock
24315 #: ../tools/virt-rescue.pl:33
24316 msgid "virt-rescue - Run a rescue shell on a virtual machine"
24317 msgstr ""
24318
24319 # type: verbatim
24320 #: ../tools/virt-rescue.pl:37
24321 #, no-wrap
24322 msgid ""
24323 " virt-rescue [--options] domname\n"
24324 "\n"
24325 msgstr ""
24326
24327 # type: verbatim
24328 #: ../tools/virt-rescue.pl:39
24329 #, no-wrap
24330 msgid ""
24331 " virt-rescue [--options] disk.img [disk.img ...]\n"
24332 "\n"
24333 msgstr ""
24334
24335 # type: textblock
24336 #: ../tools/virt-rescue.pl:43
24337 msgid ""
24338 "You must I<not> use C<virt-rescue> on live virtual machines.  Doing so will "
24339 "probably result in disk corruption in the VM.  C<virt-rescue> tries to stop "
24340 "you from doing this, but doesn't catch all cases."
24341 msgstr ""
24342
24343 # type: textblock
24344 #: ../tools/virt-rescue.pl:47
24345 msgid ""
24346 "However if you use the I<--ro> (read only) option, then you can attach a "
24347 "shell to a live virtual machine.  The results might be strange or "
24348 "inconsistent at times but you won't get disk corruption."
24349 msgstr ""
24350
24351 # type: textblock
24352 #: ../tools/virt-rescue.pl:53
24353 msgid ""
24354 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
24355 "need for a CD.  virt-rescue gives you a rescue shell and some simple "
24356 "recovery tools which you can use to examine or rescue a virtual machine or "
24357 "disk image."
24358 msgstr ""
24359
24360 # type: textblock
24361 #: ../tools/virt-rescue.pl:58
24362 msgid ""
24363 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
24364 "on disk image(s):"
24365 msgstr ""
24366
24367 # type: verbatim
24368 #: ../tools/virt-rescue.pl:61
24369 #, no-wrap
24370 msgid ""
24371 " virt-rescue GuestName\n"
24372 "\n"
24373 msgstr ""
24374
24375 # type: verbatim
24376 #: ../tools/virt-rescue.pl:63
24377 #, no-wrap
24378 msgid ""
24379 " virt-rescue --ro /path/to/disk.img\n"
24380 "\n"
24381 msgstr ""
24382
24383 # type: verbatim
24384 #: ../tools/virt-rescue.pl:65
24385 #, no-wrap
24386 msgid ""
24387 " virt-rescue /dev/sdc\n"
24388 "\n"
24389 msgstr ""
24390
24391 # type: textblock
24392 #: ../tools/virt-rescue.pl:67
24393 msgid "For live VMs you I<must> use the --ro option."
24394 msgstr ""
24395
24396 # type: textblock
24397 #: ../tools/virt-rescue.pl:69
24398 msgid ""
24399 "When you run virt-rescue on a virtual machine or disk image, you are placed "
24400 "in an interactive bash shell where you can use many ordinary Linux "
24401 "commands.  What you see in C</> (C</bin>, C</lib> etc) is the rescue "
24402 "appliance.  You must mount the virtual machine's filesystems by hand.  There "
24403 "is an empty directory called C</sysroot> where you can mount filesystems."
24404 msgstr ""
24405
24406 # type: textblock
24407 #: ../tools/virt-rescue.pl:76
24408 msgid ""
24409 "In the example below, we list logical volumes, then choose one to mount "
24410 "under C</sysroot>:"
24411 msgstr ""
24412
24413 # type: verbatim
24414 #: ../tools/virt-rescue.pl:79
24415 #, no-wrap
24416 msgid ""
24417 " ><rescue> lvs\n"
24418 " LV      VG        Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n"
24419 " lv_root vg_f11x64 -wi-a-   8.83G\n"
24420 " lv_swap vg_f11x64 -wi-a- 992.00M\n"
24421 " ><rescue> mount /dev/vg_f11x64/lv_root /sysroot\n"
24422 " ><rescue> ls /sysroot\n"
24423 "\n"
24424 msgstr ""
24425
24426 # type: textblock
24427 #: ../tools/virt-rescue.pl:86
24428 msgid ""
24429 "If you don't know what filesystems are available on the virtual machine then "
24430 "you can use commands such as L<parted(8)> and L<lvs(8)> to find out."
24431 msgstr ""
24432
24433 # type: =head1
24434 #: ../tools/virt-rescue.pl:90 ../tools/virt-resize.pl:1350
24435 msgid "NOTES"
24436 msgstr ""
24437
24438 # type: textblock
24439 #: ../tools/virt-rescue.pl:92
24440 msgid ""
24441 "Virt-rescue can be used on I<any> disk image file or device, not just a "
24442 "virtual machine.  For example you can use it on a blank file if you want to "
24443 "partition that file (although we would recommend using L<guestfish(1)> "
24444 "instead as it is more suitable for this purpose).  You can even use "
24445 "virt-rescue on things like SD cards."
24446 msgstr ""
24447
24448 # type: textblock
24449 #: ../tools/virt-rescue.pl:98
24450 msgid ""
24451 "This tool is just designed for quick interactive hacking on a virtual "
24452 "machine.  For more structured access to a virtual machine disk image, you "
24453 "should use L<guestfs(3)>.  To get a structured shell that you can use to "
24454 "make scripted changes to guests, use L<guestfish(1)>."
24455 msgstr ""
24456
24457 # type: =item
24458 #: ../tools/virt-rescue.pl:127
24459 msgid "B<--append kernelopts>"
24460 msgstr ""
24461
24462 # type: textblock
24463 #: ../tools/virt-rescue.pl:129
24464 msgid "Pass additional options to the rescue kernel."
24465 msgstr ""
24466
24467 # type: =item
24468 #: ../tools/virt-rescue.pl:147
24469 msgid "B<--memsize MB> | B<-m MB>"
24470 msgstr ""
24471
24472 # type: textblock
24473 #: ../tools/virt-rescue.pl:149
24474 msgid ""
24475 "Change the amount of memory allocated to the rescue system.  The default is "
24476 "set by libguestfs and is small but adequate for running system tools.  The "
24477 "occasional program might need more memory.  The parameter is specified in "
24478 "megabytes."
24479 msgstr ""
24480
24481 # type: =item
24482 #: ../tools/virt-rescue.pl:158
24483 msgid "B<--ro> | B<-r>"
24484 msgstr ""
24485
24486 # type: textblock
24487 #: ../tools/virt-rescue.pl:160
24488 msgid "Open the image read-only."
24489 msgstr ""
24490
24491 # type: textblock
24492 #: ../tools/virt-rescue.pl:172
24493 msgid ""
24494 "Enable SELinux in the rescue appliance.  You should read "
24495 "L<guestfs(3)/SELINUX> before using this option."
24496 msgstr ""
24497
24498 # type: textblock
24499 #: ../tools/virt-rescue.pl:228
24500 msgid ""
24501 "Several environment variables affect virt-rescue.  See "
24502 "L<guestfs(3)/ENVIRONMENT VARIABLES> for the complete list."
24503 msgstr ""
24504
24505 # type: textblock
24506 #: ../tools/virt-rescue.pl:233
24507 msgid ""
24508 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, "
24509 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
24510 msgstr ""
24511
24512 # type: textblock
24513 #: ../tools/virt-resize.pl:42
24514 msgid "virt-resize - Resize a virtual machine disk"
24515 msgstr ""
24516
24517 # type: verbatim
24518 #: ../tools/virt-resize.pl:46
24519 #, no-wrap
24520 msgid ""
24521 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
24522 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
24523 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
24524 "\n"
24525 msgstr ""
24526
24527 # type: textblock
24528 #: ../tools/virt-resize.pl:52
24529 msgid ""
24530 "Virt-resize is a tool which can resize a virtual machine disk, making it "
24531 "larger or smaller overall, and resizing or deleting any partitions contained "
24532 "within."
24533 msgstr ""
24534
24535 # type: textblock
24536 #: ../tools/virt-resize.pl:56
24537 msgid ""
24538 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
24539 "not> be used on live virtual machines - for consistent results, shut the "
24540 "virtual machine down before resizing it."
24541 msgstr ""
24542
24543 # type: textblock
24544 #: ../tools/virt-resize.pl:60
24545 msgid ""
24546 "If you are not familiar with the associated tools: "
24547 "L<virt-list-partitions(1)>, L<virt-list-filesystems(1)> and L<virt-df(1)>, "
24548 "we recommend you go and read those manual pages first."
24549 msgstr ""
24550
24551 # type: textblock
24552 #: ../tools/virt-resize.pl:68
24553 msgid ""
24554 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
24555 "fill the extra 5GB of space."
24556 msgstr ""
24557
24558 # type: verbatim
24559 #: ../tools/virt-resize.pl:71
24560 #, no-wrap
24561 msgid ""
24562 " truncate -r olddisk newdisk; truncate -s +5G newdisk\n"
24563 " virt-list-partitions -lht olddisk\n"
24564 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
24565 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
24566 "\n"
24567 msgstr ""
24568
24569 # type: textblock
24570 #: ../tools/virt-resize.pl:76
24571 msgid ""
24572 "As above, but make the /boot partition 200MB bigger, while giving the "
24573 "remaining space to /dev/sda2:"
24574 msgstr ""
24575
24576 # type: verbatim
24577 #: ../tools/virt-resize.pl:79
24578 #, no-wrap
24579 msgid ""
24580 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 olddisk newdisk\n"
24581 "\n"
24582 msgstr ""
24583
24584 # type: =head1
24585 #: ../tools/virt-resize.pl:81
24586 msgid "DETAILED USAGE"
24587 msgstr ""
24588
24589 # type: =head2
24590 #: ../tools/virt-resize.pl:83
24591 msgid "EXPANDING A VIRTUAL MACHINE DISK"
24592 msgstr ""
24593
24594 # type: =item
24595 #: ../tools/virt-resize.pl:87
24596 msgid "1. Shut down the virtual machine"
24597 msgstr ""
24598
24599 # type: =item
24600 #: ../tools/virt-resize.pl:89
24601 msgid "2. Locate input disk image"
24602 msgstr ""
24603
24604 # type: textblock
24605 #: ../tools/virt-resize.pl:91
24606 msgid ""
24607 "Locate the input disk image (ie. the file or device on the host containing "
24608 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
24609 "dumpxml> like this to find the disk image name:"
24610 msgstr ""
24611
24612 # type: verbatim
24613 #: ../tools/virt-resize.pl:95
24614 #, no-wrap
24615 msgid ""
24616 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
24617 " Found 1 nodes:\n"
24618 " -- NODE --\n"
24619 " <source dev=\"/dev/vg/lv_guest\" />\n"
24620 "\n"
24621 msgstr ""
24622
24623 # type: =item
24624 #: ../tools/virt-resize.pl:100
24625 msgid "3. Look at current sizing"
24626 msgstr ""
24627
24628 # type: textblock
24629 #: ../tools/virt-resize.pl:102
24630 msgid "Use L<virt-list-partitions(1)> to display the current partitions and sizes:"
24631 msgstr ""
24632
24633 # type: verbatim
24634 #: ../tools/virt-resize.pl:105
24635 #, no-wrap
24636 msgid ""
24637 " # virt-list-partitions -lht /dev/vg/lv_guest\n"
24638 " /dev/sda1 ext3 101.9M\n"
24639 " /dev/sda2 pv 7.9G\n"
24640 " /dev/sda device 8.0G\n"
24641 "\n"
24642 msgstr ""
24643
24644 # type: textblock
24645 #: ../tools/virt-resize.pl:110
24646 msgid ""
24647 "(This example is a virtual machine with an 8 GB disk which we would like to "
24648 "expand up to 10 GB)."
24649 msgstr ""
24650
24651 # type: =item
24652 #: ../tools/virt-resize.pl:113
24653 msgid "4. Create output disk"
24654 msgstr ""
24655
24656 # type: textblock
24657 #: ../tools/virt-resize.pl:115
24658 msgid ""
24659 "Virt-resize cannot do in-place disk modifications.  You have to have space "
24660 "to store the resized output disk."
24661 msgstr ""
24662
24663 # type: textblock
24664 #: ../tools/virt-resize.pl:118
24665 msgid "To store the resized disk image in a file, create a file of a suitable size:"
24666 msgstr ""
24667
24668 # type: verbatim
24669 #: ../tools/virt-resize.pl:121
24670 #, no-wrap
24671 msgid ""
24672 " # rm -f outdisk\n"
24673 " # truncate -s 10G outdisk\n"
24674 "\n"
24675 msgstr ""
24676
24677 # type: textblock
24678 #: ../tools/virt-resize.pl:124
24679 msgid "Or use L<lvcreate(1)> to create a logical volume:"
24680 msgstr ""
24681
24682 # type: verbatim
24683 #: ../tools/virt-resize.pl:126
24684 #, no-wrap
24685 msgid ""
24686 " # lvcreate -L 10G -n lv_name vg_name\n"
24687 "\n"
24688 msgstr ""
24689
24690 # type: textblock
24691 #: ../tools/virt-resize.pl:128
24692 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
24693 msgstr ""
24694
24695 # type: verbatim
24696 #: ../tools/virt-resize.pl:130
24697 #, no-wrap
24698 msgid ""
24699 " # virsh pool-list\n"
24700 " # virsh vol-create-as poolname newvol 10G\n"
24701 "\n"
24702 msgstr ""
24703
24704 # type: =item
24705 #: ../tools/virt-resize.pl:133
24706 msgid "5. Resize"
24707 msgstr ""
24708
24709 # type: textblock
24710 #: ../tools/virt-resize.pl:135
24711 msgid ""
24712 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
24713 "file) and the output disk.  The output disk is the one created in the "
24714 "previous step."
24715 msgstr ""
24716
24717 # type: verbatim
24718 #: ../tools/virt-resize.pl:139
24719 #, no-wrap
24720 msgid ""
24721 " # virt-resize indisk outdisk\n"
24722 "\n"
24723 msgstr ""
24724
24725 # type: textblock
24726 #: ../tools/virt-resize.pl:141
24727 msgid ""
24728 "This command just copies disk image C<indisk> to disk image C<outdisk> "
24729 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
24730 "larger, then an extra, empty partition is created at the end of the disk "
24731 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
24732 "error."
24733 msgstr ""
24734
24735 # type: textblock
24736 #: ../tools/virt-resize.pl:147
24737 msgid ""
24738 "More realistically you'd want to expand existing partitions in the disk "
24739 "image by passing extra options (for the full list see the L</OPTIONS> "
24740 "section below)."
24741 msgstr ""
24742
24743 # type: textblock
24744 #: ../tools/virt-resize.pl:151
24745 msgid ""
24746 "L</--expand> is the most useful option.  It expands the named partition "
24747 "within the disk to fill any extra space:"
24748 msgstr ""
24749
24750 # type: verbatim
24751 #: ../tools/virt-resize.pl:154
24752 #, no-wrap
24753 msgid ""
24754 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
24755 "\n"
24756 msgstr ""
24757
24758 # type: textblock
24759 #: ../tools/virt-resize.pl:156
24760 msgid ""
24761 "(In this case, an extra partition is I<not> created at the end of the disk, "
24762 "because there will be no unused space)."
24763 msgstr ""
24764
24765 # type: textblock
24766 #: ../tools/virt-resize.pl:159
24767 msgid ""
24768 "L</--resize> is the other commonly used option.  The following would "
24769 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
24770 "rest of the available space:"
24771 msgstr ""
24772
24773 # type: verbatim
24774 #: ../tools/virt-resize.pl:163
24775 #, no-wrap
24776 msgid ""
24777 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
24778 "     indisk outdisk\n"
24779 "\n"
24780 msgstr ""
24781
24782 # type: textblock
24783 #: ../tools/virt-resize.pl:166
24784 msgid ""
24785 "If the expanded partition in the image contains a filesystem or LVM PV, then "
24786 "if virt-resize knows how, it will resize the contents, the equivalent of "
24787 "calling a command such as L<pvresize(8)>, L<resize2fs(8)> or "
24788 "L<ntfsresize(8)>.  However virt-resize does not know how to resize some "
24789 "filesystems, so you would have to online resize them after booting the "
24790 "guest.  And virt-resize also does not resize anything inside an LVM PV, it "
24791 "just resizes the PV itself and leaves the user to resize any LVs inside that "
24792 "PV as desired."
24793 msgstr ""
24794
24795 # type: textblock
24796 #: ../tools/virt-resize.pl:175
24797 msgid "Other options are covered below."
24798 msgstr ""
24799
24800 # type: =item
24801 #: ../tools/virt-resize.pl:177
24802 msgid "6. Test"
24803 msgstr ""
24804
24805 # type: textblock
24806 #: ../tools/virt-resize.pl:179
24807 msgid "Thoroughly test the new disk image I<before> discarding the old one."
24808 msgstr ""
24809
24810 # type: textblock
24811 #: ../tools/virt-resize.pl:181
24812 msgid "If you are using libvirt, edit the XML to point at the new disk:"
24813 msgstr ""
24814
24815 # type: verbatim
24816 #: ../tools/virt-resize.pl:183
24817 #, no-wrap
24818 msgid ""
24819 " # virsh edit guestname\n"
24820 "\n"
24821 msgstr ""
24822
24823 # type: textblock
24824 #: ../tools/virt-resize.pl:185
24825 msgid ""
24826 "Change E<lt>source ...E<gt>, see "
24827 "L<http://libvirt.org/formatdomain.html#elementsDisks>"
24828 msgstr ""
24829
24830 # type: textblock
24831 #: ../tools/virt-resize.pl:188
24832 msgid "Then start up the domain with the new, resized disk:"
24833 msgstr ""
24834
24835 # type: verbatim
24836 #: ../tools/virt-resize.pl:190
24837 #, no-wrap
24838 msgid ""
24839 " # virsh start guestname\n"
24840 "\n"
24841 msgstr ""
24842
24843 # type: textblock
24844 #: ../tools/virt-resize.pl:192
24845 msgid ""
24846 "and check that it still works.  See also the L</NOTES> section below for "
24847 "additional information."
24848 msgstr ""
24849
24850 # type: =item
24851 #: ../tools/virt-resize.pl:195
24852 msgid "7. Resize LVs etc inside the guest"
24853 msgstr ""
24854
24855 # type: textblock
24856 #: ../tools/virt-resize.pl:197
24857 msgid "(This can also be done offline using L<guestfish(1)>)"
24858 msgstr ""
24859
24860 # type: textblock
24861 #: ../tools/virt-resize.pl:199
24862 msgid ""
24863 "Once the guest has booted you should see the new space available, at least "
24864 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
24865 "may need to resize LVs inside PVs, and also resize filesystem types that "
24866 "virt-resize does not know how to expand."
24867 msgstr ""
24868
24869 # type: =head2
24870 #: ../tools/virt-resize.pl:206
24871 msgid "SHRINKING A VIRTUAL MACHINE DISK"
24872 msgstr ""
24873
24874 # type: textblock
24875 #: ../tools/virt-resize.pl:208
24876 msgid ""
24877 "Shrinking is somewhat more complex than expanding, and only an overview is "
24878 "given here."
24879 msgstr ""
24880
24881 # type: textblock
24882 #: ../tools/virt-resize.pl:211
24883 msgid ""
24884 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
24885 "filesystems).  The user has to shrink content before passing the disk image "
24886 "to virt-resize, and virt-resize will check that the content has been shrunk "
24887 "properly."
24888 msgstr ""
24889
24890 # type: textblock
24891 #: ../tools/virt-resize.pl:216
24892 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
24893 msgstr ""
24894
24895 # type: textblock
24896 #: ../tools/virt-resize.pl:218
24897 msgid ""
24898 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
24899 "steps 3 and 4 above to allocate a new disk image."
24900 msgstr ""
24901
24902 # type: textblock
24903 #: ../tools/virt-resize.pl:221
24904 msgid "Then run virt-resize with any of the C<--shrink> and/or C<--resize> options."
24905 msgstr ""
24906
24907 # type: =head2
24908 #: ../tools/virt-resize.pl:224
24909 msgid "IGNORING OR DELETING PARTITIONS"
24910 msgstr ""
24911
24912 # type: textblock
24913 #: ../tools/virt-resize.pl:226
24914 msgid ""
24915 "virt-resize also gives a convenient way to ignore or delete partitions when "
24916 "copying from the input disk to the output disk.  Ignoring a partition speeds "
24917 "up the copy where you don't care about the existing contents of a "
24918 "partition.  Deleting a partition removes it completely, but note that it "
24919 "also renumbers any partitions after the one which is deleted, which can "
24920 "leave some guests unbootable."
24921 msgstr ""
24922
24923 # type: textblock
24924 #: ../tools/virt-resize.pl:243
24925 msgid "Display help."
24926 msgstr ""
24927
24928 # type: =item
24929 #: ../tools/virt-resize.pl:257
24930 msgid "B<--resize part=size>"
24931 msgstr ""
24932
24933 # type: textblock
24934 #: ../tools/virt-resize.pl:259
24935 msgid ""
24936 "Resize the named partition (expanding or shrinking it) so that it has the "
24937 "given size."
24938 msgstr ""
24939
24940 # type: textblock
24941 #: ../tools/virt-resize.pl:262
24942 msgid ""
24943 "C<size> can be expressed as an absolute number followed by b/K/M/G/T/P/E to "
24944 "mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Petabytes or "
24945 "Exabytes; or as a percentage of the current size; or as a relative number or "
24946 "percentage.  For example:"
24947 msgstr ""
24948
24949 # type: verbatim
24950 #: ../tools/virt-resize.pl:267
24951 #, no-wrap
24952 msgid ""
24953 " --resize /dev/sda2=10G\n"
24954 "\n"
24955 msgstr ""
24956
24957 # type: verbatim
24958 #: ../tools/virt-resize.pl:269
24959 #, no-wrap
24960 msgid ""
24961 " --resize /dev/sda4=90%\n"
24962 "\n"
24963 msgstr ""
24964
24965 # type: verbatim
24966 #: ../tools/virt-resize.pl:271
24967 #, no-wrap
24968 msgid ""
24969 " --resize /dev/sda2=+1G\n"
24970 "\n"
24971 msgstr ""
24972
24973 # type: verbatim
24974 #: ../tools/virt-resize.pl:273
24975 #, no-wrap
24976 msgid ""
24977 " --resize /dev/sda2=-200M\n"
24978 "\n"
24979 msgstr ""
24980
24981 # type: verbatim
24982 #: ../tools/virt-resize.pl:275
24983 #, no-wrap
24984 msgid ""
24985 " --resize /dev/sda1=+128K\n"
24986 "\n"
24987 msgstr ""
24988
24989 # type: verbatim
24990 #: ../tools/virt-resize.pl:277
24991 #, no-wrap
24992 msgid ""
24993 " --resize /dev/sda1=+10%\n"
24994 "\n"
24995 msgstr ""
24996
24997 # type: verbatim
24998 #: ../tools/virt-resize.pl:279
24999 #, no-wrap
25000 msgid ""
25001 " --resize /dev/sda1=-10%\n"
25002 "\n"
25003 msgstr ""
25004
25005 # type: textblock
25006 #: ../tools/virt-resize.pl:281
25007 msgid ""
25008 "You can increase the size of any partition.  Virt-resize will expand the "
25009 "direct content of the partition if it knows how (see C<--expand> below)."
25010 msgstr ""
25011
25012 # type: textblock
25013 #: ../tools/virt-resize.pl:285
25014 msgid ""
25015 "You can only I<decrease> the size of partitions that contain filesystems or "
25016 "PVs which have already been shrunk.  Virt-resize will check this has been "
25017 "done before proceeding, or else will print an error (see also "
25018 "C<--resize-force>)."
25019 msgstr ""
25020
25021 # type: textblock
25022 #: ../tools/virt-resize.pl:290 ../tools/virt-resize.pl:382 ../tools/virt-resize.pl:399
25023 msgid "You can give this option multiple times."
25024 msgstr ""
25025
25026 # type: =item
25027 #: ../tools/virt-resize.pl:296
25028 msgid "B<--resize-force part=size>"
25029 msgstr ""
25030
25031 # type: textblock
25032 #: ../tools/virt-resize.pl:298
25033 msgid ""
25034 "This is the same as C<--resize> except that it will let you decrease the "
25035 "size of any partition.  Generally this means you will lose any data which "
25036 "was at the end of the partition you shrink, but you may not care about that "
25037 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
25038 "as a swap partition)."
25039 msgstr ""
25040
25041 # type: textblock
25042 #: ../tools/virt-resize.pl:304
25043 msgid "See also the C<--ignore> option."
25044 msgstr ""
25045
25046 # type: =item
25047 #: ../tools/virt-resize.pl:310
25048 msgid "B<--expand part>"
25049 msgstr ""
25050
25051 # type: textblock
25052 #: ../tools/virt-resize.pl:312
25053 msgid ""
25054 "Expand the named partition so it uses up all extra space (space left over "
25055 "after any other resize changes that you request have been done)."
25056 msgstr ""
25057
25058 # type: textblock
25059 #: ../tools/virt-resize.pl:315
25060 msgid ""
25061 "If virt-resize knows how, it will expand the direct content of the "
25062 "partition.  For example, if the partition is an LVM PV, it will expand the "
25063 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
25064 "content it doesn't know about alone."
25065 msgstr ""
25066
25067 # type: textblock
25068 #: ../tools/virt-resize.pl:320
25069 msgid "Currently virt-resize can resize:"
25070 msgstr ""
25071
25072 # type: textblock
25073 #: ../tools/virt-resize.pl:326
25074 msgid ""
25075 "ext2, ext3 and ext4 filesystems when they are contained directly inside a "
25076 "partition."
25077 msgstr ""
25078
25079 # type: textblock
25080 #: ../tools/virt-resize.pl:331
25081 msgid ""
25082 "NTFS filesystems contained directly in a partition, if libguestfs was "
25083 "compiled with support for NTFS."
25084 msgstr ""
25085
25086 # type: textblock
25087 #: ../tools/virt-resize.pl:334
25088 msgid ""
25089 "The filesystem must have been shut down consistently last time it was used.  "
25090 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
25091 "consistency check, so at the first boot after resizing Windows will check "
25092 "the disk."
25093 msgstr ""
25094
25095 # type: textblock
25096 #: ../tools/virt-resize.pl:341
25097 msgid ""
25098 "LVM PVs (physical volumes).  However virt-resize does I<not> resize anything "
25099 "inside the PV.  The user will have to resize LVs as desired."
25100 msgstr ""
25101
25102 # type: textblock
25103 #: ../tools/virt-resize.pl:347 ../tools/virt-resize.pl:369
25104 msgid "Note that you cannot use C<--expand> and C<--shrink> together."
25105 msgstr ""
25106
25107 # type: =item
25108 #: ../tools/virt-resize.pl:353
25109 msgid "B<--shrink part>"
25110 msgstr ""
25111
25112 # type: textblock
25113 #: ../tools/virt-resize.pl:355
25114 msgid ""
25115 "Shrink the named partition until the overall disk image fits in the "
25116 "destination.  The named partition B<must> contain a filesystem or PV which "
25117 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
25118 "online tools).  Virt-resize will check this and give an error if it has not "
25119 "been done."
25120 msgstr ""
25121
25122 # type: textblock
25123 #: ../tools/virt-resize.pl:361
25124 msgid ""
25125 "The amount by which the overall disk must be shrunk (after carrying out all "
25126 "other operations requested by the user) is called the \"deficit\".  For "
25127 "example, a straight copy (assume no other operations)  from a 5GB disk image "
25128 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
25129 "would give an error unless the user specified a partition to shrink and that "
25130 "partition had more than a gigabyte of free space."
25131 msgstr ""
25132
25133 # type: =item
25134 #: ../tools/virt-resize.pl:375
25135 msgid "B<--ignore part>"
25136 msgstr ""
25137
25138 # type: textblock
25139 #: ../tools/virt-resize.pl:377
25140 msgid ""
25141 "Ignore the named partition.  Effectively this means the partition is "
25142 "allocated on the destination disk, but the content is not copied across from "
25143 "the source disk.  The content of the partition will be blank (all zero "
25144 "bytes)."
25145 msgstr ""
25146
25147 # type: =item
25148 #: ../tools/virt-resize.pl:388
25149 msgid "B<--delete part>"
25150 msgstr ""
25151
25152 # type: textblock
25153 #: ../tools/virt-resize.pl:390
25154 msgid ""
25155 "Delete the named partition.  It would be more accurate to describe this as "
25156 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
25157 "the original disk image is left intact."
25158 msgstr ""
25159
25160 # type: textblock
25161 #: ../tools/virt-resize.pl:394
25162 msgid ""
25163 "Note that when you delete a partition, then anything contained in the "
25164 "partition is also deleted.  Furthermore, this causes any partitions that "
25165 "come after to be I<renumbered>, which can easily make your guest unbootable."
25166 msgstr ""
25167
25168 # type: =item
25169 #: ../tools/virt-resize.pl:405
25170 msgid "B<--LV-expand logvol>"
25171 msgstr ""
25172
25173 # type: textblock
25174 #: ../tools/virt-resize.pl:407
25175 msgid ""
25176 "This takes the logical volume and, as a final step, expands it to fill all "
25177 "the space available in its volume group.  A typical usage, assuming a Linux "
25178 "guest with a single PV C</dev/sda2> and a root device called "
25179 "C</dev/vg_guest/lv_root> would be:"
25180 msgstr ""
25181
25182 # type: verbatim
25183 #: ../tools/virt-resize.pl:412
25184 #, no-wrap
25185 msgid ""
25186 " virt-resize indisk outdisk \\\n"
25187 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
25188 "\n"
25189 msgstr ""
25190
25191 # type: textblock
25192 #: ../tools/virt-resize.pl:415
25193 msgid ""
25194 "This would first expand the partition (and PV), and then expand the root "
25195 "device to fill the extra space in the PV."
25196 msgstr ""
25197
25198 # type: textblock
25199 #: ../tools/virt-resize.pl:418
25200 msgid ""
25201 "The contents of the LV are also resized if virt-resize knows how to do "
25202 "that.  You can stop virt-resize from trying to expand the content by using "
25203 "the option C<--no-expand-content>."
25204 msgstr ""
25205
25206 # type: textblock
25207 #: ../tools/virt-resize.pl:422
25208 msgid "Use L<virt-list-filesystems(1)> to list the filesystems in the guest."
25209 msgstr ""
25210
25211 # type: textblock
25212 #: ../tools/virt-resize.pl:425
25213 msgid ""
25214 "You can give this option multiple times, I<but> it doesn't make sense to do "
25215 "this unless the logical volumes you specify are all in different volume "
25216 "groups."
25217 msgstr ""
25218
25219 # type: =item
25220 #: ../tools/virt-resize.pl:433
25221 msgid "B<--no-copy-boot-loader>"
25222 msgstr ""
25223
25224 # type: textblock
25225 #: ../tools/virt-resize.pl:435
25226 msgid ""
25227 "By default, virt-resize copies over some sectors at the start of the disk "
25228 "(up to the beginning of the first partition).  Commonly these sectors "
25229 "contain the Master Boot Record (MBR) and the boot loader, and are required "
25230 "in order for the guest to boot correctly."
25231 msgstr ""
25232
25233 # type: textblock
25234 #: ../tools/virt-resize.pl:440
25235 msgid ""
25236 "If you specify this flag, then this initial copy is not done.  You may need "
25237 "to reinstall the boot loader in this case."
25238 msgstr ""
25239
25240 # type: =item
25241 #: ../tools/virt-resize.pl:448
25242 msgid "B<--no-extra-partition>"
25243 msgstr ""
25244
25245 # type: textblock
25246 #: ../tools/virt-resize.pl:450
25247 msgid ""
25248 "By default, virt-resize creates an extra partition if there is any extra, "
25249 "unused space after all resizing has happened.  Use this option to prevent "
25250 "the extra partition from being created.  If you do this then the extra space "
25251 "will be inaccessible until you run fdisk, parted, or some other partitioning "
25252 "tool in the guest."
25253 msgstr ""
25254
25255 # type: textblock
25256 #: ../tools/virt-resize.pl:456
25257 msgid ""
25258 "Note that if the surplus space is smaller than 10 MB, no extra partition "
25259 "will be created."
25260 msgstr ""
25261
25262 # type: =item
25263 #: ../tools/virt-resize.pl:463
25264 msgid "B<--no-expand-content>"
25265 msgstr ""
25266
25267 # type: textblock
25268 #: ../tools/virt-resize.pl:465
25269 msgid ""
25270 "By default, virt-resize will try to expand the direct contents of "
25271 "partitions, if it knows how (see C<--expand> option above)."
25272 msgstr ""
25273
25274 # type: textblock
25275 #: ../tools/virt-resize.pl:468
25276 msgid ""
25277 "If you give the C<--no-expand-content> option then virt-resize will not "
25278 "attempt this."
25279 msgstr ""
25280
25281 # type: =item
25282 #: ../tools/virt-resize.pl:475
25283 msgid "B<-d> | B<--debug>"
25284 msgstr ""
25285
25286 # type: textblock
25287 #: ../tools/virt-resize.pl:477 ../tools/virt-win-reg.pl:198
25288 msgid "Enable debugging messages."
25289 msgstr ""
25290
25291 # type: =item
25292 #: ../tools/virt-resize.pl:483
25293 msgid "B<-n> | B<--dryrun>"
25294 msgstr ""
25295
25296 # type: textblock
25297 #: ../tools/virt-resize.pl:485
25298 msgid "Print a summary of what would be done, but don't do anything."
25299 msgstr ""
25300
25301 # type: =item
25302 #: ../tools/virt-resize.pl:491
25303 msgid "B<-q> | B<--quiet>"
25304 msgstr ""
25305
25306 # type: textblock
25307 #: ../tools/virt-resize.pl:493
25308 msgid "Don't print the summary."
25309 msgstr ""
25310
25311 # type: =head2
25312 #: ../tools/virt-resize.pl:1352
25313 msgid "\"Partition 1 does not end on cylinder boundary.\""
25314 msgstr ""
25315
25316 # type: textblock
25317 #: ../tools/virt-resize.pl:1354
25318 msgid ""
25319 "Virt-resize aligns partitions to multiples of 64 sectors.  Usually this "
25320 "means the partitions will not be aligned to the ancient CHS geometry.  "
25321 "However CHS geometry is meaningless for disks manufactured since the early "
25322 "1990s, and doubly so for virtual hard drives.  Alignment of partitions to "
25323 "cylinders is not required by any modern operating system."
25324 msgstr ""
25325
25326 # type: =head2
25327 #: ../tools/virt-resize.pl:1361
25328 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
25329 msgstr ""
25330
25331 # type: textblock
25332 #: ../tools/virt-resize.pl:1363
25333 msgid ""
25334 "In Windows Vista and later versions, Microsoft switched to using a separate "
25335 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
25336 "and C</dev/sda2> is the main (C:) drive.  We have not had any luck resizing "
25337 "the boot partition.  Doing so seems to break the guest completely.  However "
25338 "expanding the second partition (ie. C: drive) should work."
25339 msgstr ""
25340
25341 # type: textblock
25342 #: ../tools/virt-resize.pl:1370
25343 msgid ""
25344 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
25345 "NTFS partitions have been expanded.  This is just a safety check and (unless "
25346 "it find errors) is nothing to worry about."
25347 msgstr ""
25348
25349 # type: =head1
25350 #: ../tools/virt-resize.pl:1374
25351 msgid "ALTERNATIVE TOOLS"
25352 msgstr ""
25353
25354 # type: textblock
25355 #: ../tools/virt-resize.pl:1376
25356 msgid ""
25357 "There are several proprietary tools for resizing partitions.  We won't "
25358 "mention any here."
25359 msgstr ""
25360
25361 # type: textblock
25362 #: ../tools/virt-resize.pl:1379
25363 msgid ""
25364 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
25365 "operations on disk images.  They can resize and move partitions, but I don't "
25366 "think they can do anything with the contents, and they certainly don't "
25367 "understand LVM."
25368 msgstr ""
25369
25370 # type: textblock
25371 #: ../tools/virt-resize.pl:1384
25372 msgid ""
25373 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
25374 "but at a much lower level.  You will probably end up hand-calculating sector "
25375 "offsets, which is something that virt-resize was designed to avoid.  If you "
25376 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
25377 "C<--debug> flag."
25378 msgstr ""
25379
25380 # type: textblock
25381 #: ../tools/virt-resize.pl:1392
25382 msgid ""
25383 "L<virt-list-partitions(1)>, L<virt-list-filesystems(1)>, L<virt-df(1)>, "
25384 "L<guestfs(3)>, L<guestfish(1)>, L<lvm(8)>, L<pvresize(8)>, L<lvresize(8)>, "
25385 "L<resize2fs(8)>, L<ntfsresize(8)>, L<virsh(1)>, L<parted(8)>, "
25386 "L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
25387 msgstr ""
25388
25389 # type: textblock
25390 #: ../tools/virt-tar.pl:34
25391 msgid "virt-tar - Extract or upload files to a virtual machine"
25392 msgstr ""
25393
25394 # type: verbatim
25395 #: ../tools/virt-tar.pl:38
25396 #, no-wrap
25397 msgid ""
25398 " virt-tar [--options] -x domname directory tarball\n"
25399 "\n"
25400 msgstr ""
25401
25402 # type: verbatim
25403 #: ../tools/virt-tar.pl:40
25404 #, no-wrap
25405 msgid ""
25406 " virt-tar [--options] -u domname tarball directory\n"
25407 "\n"
25408 msgstr ""
25409
25410 # type: verbatim
25411 #: ../tools/virt-tar.pl:42
25412 #, no-wrap
25413 msgid ""
25414 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
25415 "\n"
25416 msgstr ""
25417
25418 # type: verbatim
25419 #: ../tools/virt-tar.pl:44
25420 #, no-wrap
25421 msgid ""
25422 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
25423 "\n"
25424 msgstr ""
25425
25426 # type: textblock
25427 #: ../tools/virt-tar.pl:48
25428 msgid "Download C</home> from the VM into a local tarball:"
25429 msgstr ""
25430
25431 # type: verbatim
25432 #: ../tools/virt-tar.pl:50
25433 #, no-wrap
25434 msgid ""
25435 " virt-tar -x domname /home home.tar\n"
25436 "\n"
25437 msgstr ""
25438
25439 # type: verbatim
25440 #: ../tools/virt-tar.pl:52
25441 #, no-wrap
25442 msgid ""
25443 " virt-tar -zx domname /home home.tar.gz\n"
25444 "\n"
25445 msgstr ""
25446
25447 # type: textblock
25448 #: ../tools/virt-tar.pl:54
25449 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
25450 msgstr ""
25451
25452 # type: verbatim
25453 #: ../tools/virt-tar.pl:56
25454 #, no-wrap
25455 msgid ""
25456 " virt-tar -u domname uploadstuff.tar /tmp\n"
25457 "\n"
25458 msgstr ""
25459
25460 # type: verbatim
25461 #: ../tools/virt-tar.pl:58
25462 #, no-wrap
25463 msgid ""
25464 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
25465 "\n"
25466 msgstr ""
25467
25468 # type: textblock
25469 #: ../tools/virt-tar.pl:62
25470 msgid ""
25471 "You must I<not> use C<virt-tar> with the C<-u> option (upload) on live "
25472 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
25473 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
25474 msgstr ""
25475
25476 # type: textblock
25477 #: ../tools/virt-tar.pl:67
25478 msgid ""
25479 "You can use C<-x> (extract) on live virtual machines, but you might get "
25480 "inconsistent results or errors if there is filesystem activity inside the "
25481 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
25482 "work, but the only way to guarantee consistent results is if the virtual "
25483 "machine is shut down."
25484 msgstr ""
25485
25486 # type: textblock
25487 #: ../tools/virt-tar.pl:75
25488 msgid ""
25489 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
25490 "parts of a guest filesystem.  There are many possibilities: making backups, "
25491 "uploading data files, snooping on guest activity, fixing or customizing "
25492 "guests, etc."
25493 msgstr ""
25494
25495 # type: textblock
25496 #: ../tools/virt-tar.pl:80
25497 msgid ""
25498 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
25499 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
25500 "should look at the L<guestfish(1)> tool."
25501 msgstr ""
25502
25503 # type: textblock
25504 #: ../tools/virt-tar.pl:84
25505 msgid ""
25506 "There are two modes of operation: C<-x> (eXtract) downloads a directory and "
25507 "its contents (recursively) from the virtual machine into a local tarball.  "
25508 "C<-u> uploads from a local tarball, unpacking it into a directory inside the "
25509 "virtual machine.  You cannot use these two options together."
25510 msgstr ""
25511
25512 # type: textblock
25513 #: ../tools/virt-tar.pl:90
25514 msgid ""
25515 "In addition, you may need to use the C<-z> (gZip) option to enable "
25516 "compression.  When uploading, you have to specify C<-z> if the upload file "
25517 "is compressed because virt-tar won't detect this on its own."
25518 msgstr ""
25519
25520 # type: textblock
25521 #: ../tools/virt-tar.pl:94
25522 msgid ""
25523 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
25524 "example it cannot do PKZip files or bzip2 compression.  If you want that "
25525 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
25526 "the L<libguestfs(3)> API)."
25527 msgstr ""
25528
25529 # type: =item
25530 #: ../tools/virt-tar.pl:135
25531 msgid "B<-x> | B<--extract> | B<--download>"
25532 msgstr ""
25533
25534 # type: =item
25535 #: ../tools/virt-tar.pl:137
25536 msgid "B<-u> | B<--upload>"
25537 msgstr ""
25538
25539 # type: textblock
25540 #: ../tools/virt-tar.pl:139
25541 msgid ""
25542 "Use C<-x> to extract (download) a directory from a virtual machine to a "
25543 "local tarball."
25544 msgstr ""
25545
25546 # type: textblock
25547 #: ../tools/virt-tar.pl:142
25548 msgid ""
25549 "Use C<-u> to upload and unpack from a local tarball into a virtual machine.  "
25550 "Please read the L</WARNING> section above before using this option."
25551 msgstr ""
25552
25553 # type: textblock
25554 #: ../tools/virt-tar.pl:146
25555 msgid "You must specify exactly one of these options."
25556 msgstr ""
25557
25558 # type: =item
25559 #: ../tools/virt-tar.pl:152
25560 msgid "B<-z> | B<--gzip>"
25561 msgstr ""
25562
25563 # type: textblock
25564 #: ../tools/virt-tar.pl:154
25565 msgid "Specify that the input or output tarball is gzip-compressed."
25566 msgstr ""
25567
25568 # type: textblock
25569 #: ../tools/virt-tar.pl:259
25570 msgid ""
25571 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
25572 "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
25573 "L<http://libguestfs.org/>."
25574 msgstr ""
25575
25576 # type: textblock
25577 #: ../tools/virt-win-reg.pl:38
25578 msgid ""
25579 "virt-win-reg - Export and merge Windows Registry entries from a Windows "
25580 "guest"
25581 msgstr ""
25582
25583 # type: verbatim
25584 #: ../tools/virt-win-reg.pl:42
25585 #, no-wrap
25586 msgid ""
25587 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
25588 "\n"
25589 msgstr ""
25590
25591 # type: verbatim
25592 #: ../tools/virt-win-reg.pl:44
25593 #, no-wrap
25594 msgid ""
25595 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
25596 "\n"
25597 msgstr ""
25598
25599 # type: verbatim
25600 #: ../tools/virt-win-reg.pl:46
25601 #, no-wrap
25602 msgid ""
25603 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
25604 "\n"
25605 msgstr ""
25606
25607 # type: verbatim
25608 #: ../tools/virt-win-reg.pl:48
25609 #, no-wrap
25610 msgid ""
25611 " virt-win-reg --merge domname [input.reg ...]\n"
25612 "\n"
25613 msgstr ""
25614
25615 # type: verbatim
25616 #: ../tools/virt-win-reg.pl:50
25617 #, no-wrap
25618 msgid ""
25619 " virt-win-reg [--options] disk.img ... # instead of domname\n"
25620 "\n"
25621 msgstr ""
25622
25623 # type: textblock
25624 #: ../tools/virt-win-reg.pl:54
25625 msgid ""
25626 "You must I<not> use C<virt-win-reg> with the C<--merge> option on live "
25627 "virtual machines.  If you do this, you I<will> get irreversible disk "
25628 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
25629 "but doesn't catch all cases."
25630 msgstr ""
25631
25632 # type: textblock
25633 #: ../tools/virt-win-reg.pl:59
25634 msgid ""
25635 "Modifying the Windows Registry is an inherently risky operation.  The format "
25636 "is deliberately obscure and undocumented, and Registry changes can leave the "
25637 "system unbootable.  Therefore when using the C<--merge> option, make sure "
25638 "you have a reliable backup first."
25639 msgstr ""
25640
25641 # type: textblock
25642 #: ../tools/virt-win-reg.pl:66
25643 msgid ""
25644 "This program can export and merge Windows Registry entries from a Windows "
25645 "guest."
25646 msgstr ""
25647
25648 # type: textblock
25649 #: ../tools/virt-win-reg.pl:69
25650 msgid ""
25651 "The first parameter is the libvirt guest name or the raw disk image of a "
25652 "Windows guest."
25653 msgstr ""
25654
25655 # type: textblock
25656 #: ../tools/virt-win-reg.pl:72
25657 msgid ""
25658 "If C<--merge> is I<not> specified, then the chosen registry key is "
25659 "displayed/exported (recursively).  For example:"
25660 msgstr ""
25661
25662 # type: verbatim
25663 #: ../tools/virt-win-reg.pl:75
25664 #, no-wrap
25665 msgid ""
25666 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
25667 "\n"
25668 msgstr ""
25669
25670 # type: textblock
25671 #: ../tools/virt-win-reg.pl:77
25672 msgid "You can also display single values from within registry keys, for example:"
25673 msgstr ""
25674
25675 # type: verbatim
25676 #: ../tools/virt-win-reg.pl:80
25677 #, no-wrap
25678 msgid ""
25679 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
25680 " $ virt-win-reg Windows7 $cvkey ProductName\n"
25681 " Windows 7 Enterprise\n"
25682 "\n"
25683 msgstr ""
25684
25685 # type: textblock
25686 #: ../tools/virt-win-reg.pl:84
25687 msgid ""
25688 "With C<--merge>, you can merge a textual regedit file into the Windows "
25689 "Registry:"
25690 msgstr ""
25691
25692 # type: verbatim
25693 #: ../tools/virt-win-reg.pl:87
25694 #, no-wrap
25695 msgid ""
25696 " $ virt-win-reg --merge Windows7 changes.reg\n"
25697 "\n"
25698 msgstr ""
25699
25700 # type: =head2
25701 #: ../tools/virt-win-reg.pl:89
25702 msgid "SUPPORTED SYSTEMS"
25703 msgstr ""
25704
25705 # type: textblock
25706 #: ../tools/virt-win-reg.pl:91
25707 msgid ""
25708 "The program currently supports Windows NT-derived guests starting with "
25709 "Windows XP through to at least Windows 7."
25710 msgstr ""
25711
25712 # type: textblock
25713 #: ../tools/virt-win-reg.pl:94
25714 msgid ""
25715 "Registry support is done for C<HKEY_LOCAL_MACHINE\\SAM>, "
25716 "C<HKEY_LOCAL_MACHINE\\SECURITY>, C<HKEY_LOCAL_MACHINE\\SOFTWARE>, "
25717 "C<HKEY_LOCAL_MACHINE\\SYSTEM> and C<HKEY_USERS\\.DEFAULT>."
25718 msgstr ""
25719
25720 # type: textblock
25721 #: ../tools/virt-win-reg.pl:98
25722 msgid ""
25723 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
25724 "C<HKEY_USERS>."
25725 msgstr ""
25726
25727 # type: textblock
25728 #: ../tools/virt-win-reg.pl:101
25729 msgid ""
25730 "C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are B<not> supported at this "
25731 "time."
25732 msgstr ""
25733
25734 # type: =head2
25735 #: ../tools/virt-win-reg.pl:104
25736 msgid "NOTE"
25737 msgstr ""
25738
25739 # type: textblock
25740 #: ../tools/virt-win-reg.pl:106
25741 msgid ""
25742 "This program is only meant for simple access to the registry.  If you want "
25743 "to do complicated things with the registry, we suggest you download the "
25744 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
25745 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
25746 "L<hivexregedit(1)>."
25747 msgstr ""
25748
25749 # type: =head2
25750 #: ../tools/virt-win-reg.pl:112
25751 msgid "ENCODING"
25752 msgstr ""
25753
25754 # type: textblock
25755 #: ../tools/virt-win-reg.pl:114
25756 msgid ""
25757 "C<virt-win-reg> expects that regedit files have already been reencoded in "
25758 "the local encoding.  Usually on Linux hosts, this means UTF-8 with "
25759 "Unix-style line endings.  Since Windows regedit files are often in UTF-16LE "
25760 "with Windows-style line endings, you may need to reencode the whole file "
25761 "before or after processing."
25762 msgstr ""
25763
25764 # type: textblock
25765 #: ../tools/virt-win-reg.pl:120
25766 msgid ""
25767 "To reencode a file from Windows format to Linux (before processing it with "
25768 "the C<--merge> option), you would do something like this:"
25769 msgstr ""
25770
25771 # type: verbatim
25772 #: ../tools/virt-win-reg.pl:123
25773 #, no-wrap
25774 msgid ""
25775 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
25776 "\n"
25777 msgstr ""
25778
25779 # type: textblock
25780 #: ../tools/virt-win-reg.pl:125
25781 msgid ""
25782 "To go in the opposite direction, after exporting and before sending the file "
25783 "to a Windows user, do something like this:"
25784 msgstr ""
25785
25786 # type: verbatim
25787 #: ../tools/virt-win-reg.pl:128
25788 #, no-wrap
25789 msgid ""
25790 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
25791 "\n"
25792 msgstr ""
25793
25794 # type: textblock
25795 #: ../tools/virt-win-reg.pl:130
25796 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
25797 msgstr ""
25798
25799 # type: textblock
25800 #: ../tools/virt-win-reg.pl:132
25801 msgid ""
25802 "If you are unsure about the current encoding, use the L<file(1)> command.  "
25803 "Recent versions of Windows regedit.exe produce a UTF-16LE file with "
25804 "Windows-style (CRLF) line endings, like this:"
25805 msgstr ""
25806
25807 # type: verbatim
25808 #: ../tools/virt-win-reg.pl:136
25809 #, no-wrap
25810 msgid ""
25811 " $ file software.reg\n"
25812 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
25813 " with CRLF line terminators\n"
25814 "\n"
25815 msgstr ""
25816
25817 # type: textblock
25818 #: ../tools/virt-win-reg.pl:140
25819 msgid "This file would need conversion before you could C<--merge> it."
25820 msgstr ""
25821
25822 # type: =head2
25823 #: ../tools/virt-win-reg.pl:142
25824 msgid "SHELL QUOTING"
25825 msgstr ""
25826
25827 # type: textblock
25828 #: ../tools/virt-win-reg.pl:144
25829 msgid ""
25830 "Be careful when passing parameters containing C<\\> (backslash) in the "
25831 "shell.  Usually you will have to use 'single quotes' or double backslashes "
25832 "(but not both) to protect them from the shell."
25833 msgstr ""
25834
25835 # type: textblock
25836 #: ../tools/virt-win-reg.pl:148
25837 msgid "Paths and value names are case-insensitive."
25838 msgstr ""
25839
25840 # type: =head2
25841 #: ../tools/virt-win-reg.pl:150
25842 msgid "CurrentControlSet etc."
25843 msgstr ""
25844
25845 # type: textblock
25846 #: ../tools/virt-win-reg.pl:152
25847 msgid ""
25848 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
25849 "Registry at the level of the hive file, and therefore you cannot modify "
25850 "these."
25851 msgstr ""
25852
25853 # type: textblock
25854 #: ../tools/virt-win-reg.pl:156
25855 msgid ""
25856 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
25857 "circumstances it might refer to another control set.  The way to find out is "
25858 "to look at the C<HKLM\\SYSTEM\\Select> key:"
25859 msgstr ""
25860
25861 # type: verbatim
25862 #: ../tools/virt-win-reg.pl:160
25863 #, no-wrap
25864 msgid ""
25865 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
25866 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
25867 " \"Current\"=dword:00000001\n"
25868 " \"Default\"=dword:00000001\n"
25869 " \"Failed\"=dword:00000000\n"
25870 " \"LastKnownGood\"=dword:00000002\n"
25871 "\n"
25872 msgstr ""
25873
25874 # type: textblock
25875 #: ../tools/virt-win-reg.pl:167
25876 msgid "\"Default\" is the one which Windows will choose when it boots."
25877 msgstr ""
25878
25879 # type: textblock
25880 #: ../tools/virt-win-reg.pl:169
25881 msgid "Similarly, other C<Current...> keys in the path may need to be replaced."
25882 msgstr ""
25883
25884 # type: =item
25885 #: ../tools/virt-win-reg.pl:216
25886 msgid "B<--merge>"
25887 msgstr ""
25888
25889 # type: textblock
25890 #: ../tools/virt-win-reg.pl:218
25891 msgid ""
25892 "In merge mode, this merges a textual regedit file into the Windows Registry "
25893 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
25894 "displays or exports Registry entries instead."
25895 msgstr ""
25896
25897 # type: textblock
25898 #: ../tools/virt-win-reg.pl:222
25899 msgid ""
25900 "Note that C<--merge> is I<unsafe> to use on live virtual machines, and will "
25901 "result in disk corruption.  However exporting (without this flag)  is always "
25902 "safe."
25903 msgstr ""
25904
25905 # type: =item
25906 #: ../tools/virt-win-reg.pl:230
25907 msgid "B<--encoding> UTF-16LE|ASCII"
25908 msgstr ""
25909
25910 # type: textblock
25911 #: ../tools/virt-win-reg.pl:232
25912 msgid ""
25913 "When merging (only), you may need to specify the encoding for strings to be "
25914 "used in the hive file.  This is explained in detail in "
25915 "L<Win::Hivex::Regedit(3)/ENCODING STRINGS>."
25916 msgstr ""
25917
25918 # type: textblock
25919 #: ../tools/virt-win-reg.pl:236
25920 msgid ""
25921 "The default is to use UTF-16LE, which should work with recent versions of "
25922 "Windows."
25923 msgstr ""
25924
25925 # type: textblock
25926 #: ../tools/virt-win-reg.pl:463
25927 msgid ""
25928 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, "
25929 "L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, "
25930 "L<Sys::Guestfs::Lib(3)>, L<Win::Hivex(3)>, L<Win::Hivex::Regedit(3)>, "
25931 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
25932 msgstr ""
25933
25934 # type: verbatim
25935 #: ../tools/virt-win-reg.pl:481
25936 #, no-wrap
25937 msgid ""
25938 " export LIBGUESTFS_DEBUG=1\n"
25939 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
25940 "\n"
25941 msgstr ""
25942
25943 # type: textblock
25944 #: ../tools/virt-win-reg.pl:484
25945 msgid ""
25946 "Attach /tmp/virt-win-reg.log to a new bug report at "
25947 "L<https://bugzilla.redhat.com/>"
25948 msgstr ""