Version 1.5.17.
[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.17\n"
10 "Report-Msgid-Bugs-To: libguestfs@redhat.com\n"
11 "POT-Creation-Date: 2010-09-21 22:15+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:1285 ../src/guestfs-actions.pod:1289 ../src/guestfs-actions.pod:1293 ../src/guestfs-actions.pod:1297 ../src/guestfs-actions.pod:1305 ../src/guestfs-actions.pod:1309 ../src/guestfs-actions.pod:1313 ../src/guestfs-actions.pod:1323 ../src/guestfs-actions.pod:1327 ../src/guestfs-actions.pod:1331 ../src/guestfs-actions.pod:1454 ../src/guestfs-actions.pod:1458 ../src/guestfs-actions.pod:1463 ../src/guestfs-actions.pod:1468 ../src/guestfs-actions.pod:1520 ../src/guestfs-actions.pod:1524 ../src/guestfs-actions.pod:1529 ../fish/guestfish.pod:316 ../fish/guestfish.pod:320 ../fish/guestfish.pod:324 ../fish/guestfish.pod:328 ../fish/guestfish-actions.pod:15 ../fish/guestfish-actions.pod:22 ../fish/guestfish-actions.pod:306 ../fish/guestfish-actions.pod:314 ../fish/guestfish-actions.pod:321 ../fish/guestfish-actions.pod:328 ../fish/guestfish-actions.pod:1023 ../fish/guestfish-actions.pod:1027 ../fish/guestfish-actions.pod:1031 ../fish/guestfish-actions.pod:1035 ../fish/guestfish-actions.pod:1043 ../fish/guestfish-actions.pod:1047 ../fish/guestfish-actions.pod:1051 ../fish/guestfish-actions.pod:1061 ../fish/guestfish-actions.pod:1065 ../fish/guestfish-actions.pod:1069 ../fish/guestfish-actions.pod:1159 ../fish/guestfish-actions.pod:1163 ../fish/guestfish-actions.pod:1168 ../fish/guestfish-actions.pod:1173 ../fish/guestfish-actions.pod:1215 ../fish/guestfish-actions.pod:1219 ../fish/guestfish-actions.pod:1224 ../tools/virt-df.pl:144 ../tools/virt-df.pl:150 ../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:566
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:796
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:803 ../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:829
3209 msgid "LIBGUESTFS_APPEND"
3210 msgstr ""
3211
3212 # type: textblock
3213 #: ../src/guestfs.pod:1651 ../fish/guestfish.pod:831
3214 msgid "Pass additional options to the guest kernel."
3215 msgstr ""
3216
3217 # type: =item
3218 #: ../src/guestfs.pod:1653 ../fish/guestfish.pod:833
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:838
3231 msgid "LIBGUESTFS_MEMSIZE"
3232 msgstr ""
3233
3234 # type: textblock
3235 #: ../src/guestfs.pod:1660 ../fish/guestfish.pod:840
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:843
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:845
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:850
3261 msgid "LIBGUESTFS_QEMU"
3262 msgstr ""
3263
3264 # type: textblock
3265 #: ../src/guestfs.pod:1672 ../fish/guestfish.pod:852
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:856
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:865
3290 msgid "TMPDIR"
3291 msgstr ""
3292
3293 # type: textblock
3294 #: ../src/guestfs.pod:1685 ../fish/guestfish.pod:867
3295 msgid "Location of temporary directory, defaults to C</tmp>."
3296 msgstr ""
3297
3298 # type: textblock
3299 #: ../src/guestfs.pod:1687 ../fish/guestfish.pod:869
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:927 ../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:536 ../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:944 ../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:946 ../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:948 ../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:549 ../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:950
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:7
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:9
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:1516 ../fish/guestfish-actions.pod:11 ../fish/guestfish-actions.pod:1211
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:1002 ../src/guestfs-actions.pod:1024 ../src/guestfs-actions.pod:1055 ../src/guestfs-actions.pod:1143 ../src/guestfs-actions.pod:1174 ../src/guestfs-actions.pod:1374 ../src/guestfs-actions.pod:1393 ../src/guestfs-actions.pod:1474 ../src/guestfs-actions.pod:1822 ../src/guestfs-actions.pod:1945 ../src/guestfs-actions.pod:2000 ../src/guestfs-actions.pod:2030 ../src/guestfs-actions.pod:2439 ../src/guestfs-actions.pod:2451 ../src/guestfs-actions.pod:2468 ../src/guestfs-actions.pod:2576 ../src/guestfs-actions.pod:2587 ../src/guestfs-actions.pod:2597 ../src/guestfs-actions.pod:2608 ../src/guestfs-actions.pod:2620 ../src/guestfs-actions.pod:2650 ../src/guestfs-actions.pod:2714 ../src/guestfs-actions.pod:2731 ../src/guestfs-actions.pod:2745 ../src/guestfs-actions.pod:2765 ../src/guestfs-actions.pod:2785 ../src/guestfs-actions.pod:2814 ../src/guestfs-actions.pod:2830 ../src/guestfs-actions.pod:2846 ../src/guestfs-actions.pod:2858 ../src/guestfs-actions.pod:2867 ../src/guestfs-actions.pod:2900 ../src/guestfs-actions.pod:2913 ../src/guestfs-actions.pod:2923 ../src/guestfs-actions.pod:2935 ../src/guestfs-actions.pod:2949 ../src/guestfs-actions.pod:3029 ../src/guestfs-actions.pod:3046 ../src/guestfs-actions.pod:3056 ../src/guestfs-actions.pod:3101 ../src/guestfs-actions.pod:3116 ../src/guestfs-actions.pod:3131 ../src/guestfs-actions.pod:3144 ../src/guestfs-actions.pod:3155 ../src/guestfs-actions.pod:3166 ../src/guestfs-actions.pod:3180 ../src/guestfs-actions.pod:3192 ../src/guestfs-actions.pod:3209 ../src/guestfs-actions.pod:3240 ../src/guestfs-actions.pod:3268 ../src/guestfs-actions.pod:3284 ../src/guestfs-actions.pod:3300 ../src/guestfs-actions.pod:3309 ../src/guestfs-actions.pod:3323 ../src/guestfs-actions.pod:3333 ../src/guestfs-actions.pod:3345 ../src/guestfs-actions.pod:3357 ../src/guestfs-actions.pod:3389 ../src/guestfs-actions.pod:3401 ../src/guestfs-actions.pod:3418 ../src/guestfs-actions.pod:3429 ../src/guestfs-actions.pod:3443 ../src/guestfs-actions.pod:3483 ../src/guestfs-actions.pod:3514 ../src/guestfs-actions.pod:3525 ../src/guestfs-actions.pod:3550 ../src/guestfs-actions.pod:3564 ../src/guestfs-actions.pod:3579 ../src/guestfs-actions.pod:3701 ../src/guestfs-actions.pod:3753 ../src/guestfs-actions.pod:3772 ../src/guestfs-actions.pod:3787 ../src/guestfs-actions.pod:3813 ../src/guestfs-actions.pod:3847 ../src/guestfs-actions.pod:3861 ../src/guestfs-actions.pod:3871 ../src/guestfs-actions.pod:3882 ../src/guestfs-actions.pod:4114 ../src/guestfs-actions.pod:4130 ../src/guestfs-actions.pod:4141 ../src/guestfs-actions.pod:4150 ../src/guestfs-actions.pod:4161 ../src/guestfs-actions.pod:4170 ../src/guestfs-actions.pod:4181 ../src/guestfs-actions.pod:4194 ../src/guestfs-actions.pod:4212 ../src/guestfs-actions.pod:4228 ../src/guestfs-actions.pod:4244 ../src/guestfs-actions.pod:4259 ../src/guestfs-actions.pod:4279 ../src/guestfs-actions.pod:4294 ../src/guestfs-actions.pod:4310 ../src/guestfs-actions.pod:4328 ../src/guestfs-actions.pod:4344 ../src/guestfs-actions.pod:4358 ../src/guestfs-actions.pod:4383 ../src/guestfs-actions.pod:4404 ../src/guestfs-actions.pod:4420 ../src/guestfs-actions.pod:4441 ../src/guestfs-actions.pod:4453 ../src/guestfs-actions.pod:4465 ../src/guestfs-actions.pod:4481 ../src/guestfs-actions.pod:4515 ../src/guestfs-actions.pod:4535 ../src/guestfs-actions.pod:4558 ../src/guestfs-actions.pod:4648 ../src/guestfs-actions.pod:4754 ../src/guestfs-actions.pod:4763 ../src/guestfs-actions.pod:4773 ../src/guestfs-actions.pod:4783 ../src/guestfs-actions.pod:4802 ../src/guestfs-actions.pod:4812 ../src/guestfs-actions.pod:4822 ../src/guestfs-actions.pod:4832 ../src/guestfs-actions.pod:4844 ../src/guestfs-actions.pod:4894 ../src/guestfs-actions.pod:4908 ../src/guestfs-actions.pod:4921 ../src/guestfs-actions.pod:4934 ../src/guestfs-actions.pod:4948 ../src/guestfs-actions.pod:4958 ../src/guestfs-actions.pod:4975 ../src/guestfs-actions.pod:5005 ../src/guestfs-actions.pod:5016 ../src/guestfs-actions.pod:5051 ../src/guestfs-actions.pod:5061 ../src/guestfs-actions.pod:5076 ../src/guestfs-actions.pod:5102 ../src/guestfs-actions.pod:5130 ../src/guestfs-actions.pod:5234 ../src/guestfs-actions.pod:5249 ../src/guestfs-actions.pod:5260 ../src/guestfs-actions.pod:5306 ../src/guestfs-actions.pod:5316 ../src/guestfs-actions.pod:5353 ../src/guestfs-actions.pod:5380 ../src/guestfs-actions.pod:5422 ../src/guestfs-actions.pod:5445 ../src/guestfs-actions.pod:5502 ../src/guestfs-actions.pod:5518 ../src/guestfs-actions.pod:5544
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:36
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:41
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:47
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:50
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:69
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:72
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:78
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:109
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:125
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:132
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:140
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:144
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:1041 ../src/guestfs-actions.pod:1356 ../src/guestfs-actions.pod:1538 ../src/guestfs-actions.pod:1619 ../src/guestfs-actions.pod:1650 ../src/guestfs-actions.pod:1693 ../src/guestfs-actions.pod:1710 ../src/guestfs-actions.pod:1935 ../src/guestfs-actions.pod:2147 ../src/guestfs-actions.pod:2165 ../src/guestfs-actions.pod:3503 ../src/guestfs-actions.pod:3610 ../src/guestfs-actions.pod:3941 ../src/guestfs-actions.pod:5040 ../src/guestfs-actions.pod:5390 ../src/guestfs-actions.pod:5400 ../src/guestfs-actions.pod:5410
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:151
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:1069 ../src/guestfs-actions.pod:1233 ../src/guestfs-actions.pod:1342 ../src/guestfs-actions.pod:1487 ../src/guestfs-actions.pod:1501 ../src/guestfs-actions.pod:1577 ../src/guestfs-actions.pod:1595 ../src/guestfs-actions.pod:1729 ../src/guestfs-actions.pod:1868 ../src/guestfs-actions.pod:2049 ../src/guestfs-actions.pod:2099 ../src/guestfs-actions.pod:2215 ../src/guestfs-actions.pod:2250 ../src/guestfs-actions.pod:2565 ../src/guestfs-actions.pod:2986 ../src/guestfs-actions.pod:3082 ../src/guestfs-actions.pod:3625 ../src/guestfs-actions.pod:3801 ../src/guestfs-actions.pod:3919 ../src/guestfs-actions.pod:4057 ../src/guestfs-actions.pod:4100 ../src/guestfs-actions.pod:4576 ../src/guestfs-actions.pod:4589 ../src/guestfs-actions.pod:4603 ../src/guestfs-actions.pod:4624 ../src/guestfs-actions.pod:5183 ../src/guestfs-actions.pod:5199 ../src/guestfs-actions.pod:5214 ../src/guestfs-actions.pod:5362 ../src/guestfs-actions.pod:5592
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:158
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:165
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:168
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:174
3810 msgid "C<AUG_SAVE_BACKUP> = 1"
3811 msgstr ""
3812
3813 # type: textblock
3814 #: ../src/guestfs-actions.pod:209 ../fish/guestfish-actions.pod:176
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:178
3820 msgid "C<AUG_SAVE_NEWFILE> = 2"
3821 msgstr ""
3822
3823 # type: textblock
3824 #: ../src/guestfs-actions.pod:213 ../fish/guestfish-actions.pod:180
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:183
3832 msgid "C<AUG_TYPE_CHECK> = 4"
3833 msgstr ""
3834
3835 # type: textblock
3836 #: ../src/guestfs-actions.pod:218 ../fish/guestfish-actions.pod:185
3837 msgid "Typecheck lenses (can be expensive)."
3838 msgstr ""
3839
3840 # type: =item
3841 #: ../src/guestfs-actions.pod:220 ../fish/guestfish-actions.pod:187
3842 msgid "C<AUG_NO_STDINC> = 8"
3843 msgstr ""
3844
3845 # type: textblock
3846 #: ../src/guestfs-actions.pod:222 ../fish/guestfish-actions.pod:189
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:191
3852 msgid "C<AUG_SAVE_NOOP> = 16"
3853 msgstr ""
3854
3855 # type: textblock
3856 #: ../src/guestfs-actions.pod:226 ../fish/guestfish-actions.pod:193
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:195
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:203
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:209
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:213
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:221
3925 msgid "Load files into the tree."
3926 msgstr ""
3927
3928 # type: textblock
3929 #: ../src/guestfs-actions.pod:263 ../fish/guestfish-actions.pod:223
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:1081 ../src/guestfs-actions.pod:1097 ../src/guestfs-actions.pod:1185 ../src/guestfs-actions.pod:1201 ../src/guestfs-actions.pod:1432 ../src/guestfs-actions.pod:1766 ../src/guestfs-actions.pod:1779 ../src/guestfs-actions.pod:1795 ../src/guestfs-actions.pod:1832 ../src/guestfs-actions.pod:1853 ../src/guestfs-actions.pod:1915 ../src/guestfs-actions.pod:1955 ../src/guestfs-actions.pod:2121 ../src/guestfs-actions.pod:2289 ../src/guestfs-actions.pod:2494 ../src/guestfs-actions.pod:2550 ../src/guestfs-actions.pod:2634 ../src/guestfs-actions.pod:2963 ../src/guestfs-actions.pod:3470 ../src/guestfs-actions.pod:3896 ../src/guestfs-actions.pod:3982 ../src/guestfs-actions.pod:4088 ../src/guestfs-actions.pod:4637 ../src/guestfs-actions.pod:4686 ../src/guestfs-actions.pod:4738 ../src/guestfs-actions.pod:4854 ../src/guestfs-actions.pod:4875 ../src/guestfs-actions.pod:5275 ../src/guestfs-actions.pod:5292 ../src/guestfs-actions.pod:5330 ../src/guestfs-actions.pod:5466 ../src/guestfs-actions.pod:5482 ../src/guestfs-actions.pod:5555 ../src/guestfs-actions.pod:5571 ../src/guestfs-actions.pod:5611 ../src/guestfs-actions.pod:5627
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:237
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:245
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:252
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:254
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:260
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:269
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:280
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:289
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:294
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:296
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:299
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:302
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:310
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:316
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:323
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:353
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:362
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:371
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:374 ../fish/guestfish-actions.pod:385 ../fish/guestfish-actions.pod:394 ../fish/guestfish-actions.pod:404 ../fish/guestfish-actions.pod:416 ../fish/guestfish-actions.pod:429 ../fish/guestfish-actions.pod:437 ../fish/guestfish-actions.pod:448 ../fish/guestfish-actions.pod:456 ../fish/guestfish-actions.pod:464
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:380
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:382 ../fish/guestfish-actions.pod:445
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:391
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:1115 ../src/guestfs-actions.pod:1127 ../src/guestfs-actions.pod:1559 ../src/guestfs-actions.pod:1567 ../src/guestfs-actions.pod:1627 ../src/guestfs-actions.pod:1670 ../src/guestfs-actions.pod:1682 ../src/guestfs-actions.pod:1701 ../src/guestfs-actions.pod:1718 ../src/guestfs-actions.pod:2303 ../src/guestfs-actions.pod:2314 ../src/guestfs-actions.pod:2326 ../src/guestfs-actions.pod:2337 ../src/guestfs-actions.pod:2350 ../src/guestfs-actions.pod:2362 ../src/guestfs-actions.pod:2375 ../src/guestfs-actions.pod:2386 ../src/guestfs-actions.pod:2396 ../src/guestfs-actions.pod:2407 ../src/guestfs-actions.pod:2419 ../src/guestfs-actions.pod:2431 ../src/guestfs-actions.pod:3595
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:400
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:410
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:422
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:435
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:443
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:454
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:462
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:470
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:475
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:480
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:486
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:489
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:497
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:3972 ../fish/guestfish-actions.pod:506 ../fish/guestfish-actions.pod:3068
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:1085 ../src/guestfs-actions.pod:1101 ../src/guestfs-actions.pod:1189 ../src/guestfs-actions.pod:1205 ../src/guestfs-actions.pod:1436 ../src/guestfs-actions.pod:1783 ../src/guestfs-actions.pod:1799 ../src/guestfs-actions.pod:1836 ../src/guestfs-actions.pod:1857 ../src/guestfs-actions.pod:1871 ../src/guestfs-actions.pod:1897 ../src/guestfs-actions.pod:3835 ../src/guestfs-actions.pod:3943 ../src/guestfs-actions.pod:3964 ../src/guestfs-actions.pod:4690 ../src/guestfs-actions.pod:4742 ../src/guestfs-actions.pod:4858 ../src/guestfs-actions.pod:4879 ../src/guestfs-actions.pod:5424 ../src/guestfs-actions.pod:5447 ../src/guestfs-actions.pod:5470 ../src/guestfs-actions.pod:5486 ../src/guestfs-actions.pod:5559 ../src/guestfs-actions.pod:5575 ../src/guestfs-actions.pod:5615 ../src/guestfs-actions.pod:5631 ../fish/guestfish-actions.pod:513 ../fish/guestfish-actions.pod:648 ../fish/guestfish-actions.pod:660 ../fish/guestfish-actions.pod:861 ../fish/guestfish-actions.pod:871 ../fish/guestfish-actions.pod:938 ../fish/guestfish-actions.pod:948 ../fish/guestfish-actions.pod:1143 ../fish/guestfish-actions.pod:1418 ../fish/guestfish-actions.pod:1428 ../fish/guestfish-actions.pod:1456 ../fish/guestfish-actions.pod:1471 ../fish/guestfish-actions.pod:1481 ../fish/guestfish-actions.pod:1500 ../fish/guestfish-actions.pod:2970 ../fish/guestfish-actions.pod:3046 ../fish/guestfish-actions.pod:3061 ../fish/guestfish-actions.pod:3644 ../fish/guestfish-actions.pod:3690 ../fish/guestfish-actions.pod:3775 ../fish/guestfish-actions.pod:3790 ../fish/guestfish-actions.pod:4200 ../fish/guestfish-actions.pod:4218 ../fish/guestfish-actions.pod:4235 ../fish/guestfish-actions.pod:4245 ../fish/guestfish-actions.pod:4293 ../fish/guestfish-actions.pod:4303 ../fish/guestfish-actions.pod:4332 ../fish/guestfish-actions.pod:4342
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:520
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:523
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:528
4619 msgid "C<crc>"
4620 msgstr ""
4621
4622 # type: textblock
4623 #: ../src/guestfs-actions.pod:647 ../fish/guestfish-actions.pod:530
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:533
4631 msgid "C<md5>"
4632 msgstr ""
4633
4634 # type: textblock
4635 #: ../src/guestfs-actions.pod:652 ../fish/guestfish-actions.pod:535
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:537
4641 msgid "C<sha1>"
4642 msgstr ""
4643
4644 # type: textblock
4645 #: ../src/guestfs-actions.pod:656 ../fish/guestfish-actions.pod:539
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:541
4651 msgid "C<sha224>"
4652 msgstr ""
4653
4654 # type: textblock
4655 #: ../src/guestfs-actions.pod:660 ../fish/guestfish-actions.pod:543
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:545
4661 msgid "C<sha256>"
4662 msgstr ""
4663
4664 # type: textblock
4665 #: ../src/guestfs-actions.pod:664 ../fish/guestfish-actions.pod:547
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:549
4671 msgid "C<sha384>"
4672 msgstr ""
4673
4674 # type: textblock
4675 #: ../src/guestfs-actions.pod:668 ../fish/guestfish-actions.pod:551
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:553
4681 msgid "C<sha512>"
4682 msgstr ""
4683
4684 # type: textblock
4685 #: ../src/guestfs-actions.pod:672 ../fish/guestfish-actions.pod:555
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:559
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:577
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:581
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:595
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:598
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:3178 ../src/guestfs-actions.pod:3266 ../src/guestfs-actions.pod:3282 ../src/guestfs-actions.pod:3298 ../fish/guestfish-actions.pod:602 ../fish/guestfish-actions.pod:2475 ../fish/guestfish-actions.pod:2545 ../fish/guestfish-actions.pod:2555 ../fish/guestfish-actions.pod:2565
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:608
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:2464 ../fish/guestfish-actions.pod:610 ../fish/guestfish-actions.pod:1966
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:618
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:630
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:633
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:637
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:642
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:667
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:672
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:674
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:680
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:683
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:1004 ../src/guestfs-actions.pod:1376 ../src/guestfs-actions.pod:1395 ../src/guestfs-actions.pod:5504 ../src/guestfs-actions.pod:5520
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:690
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:697
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:704
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:721
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:732
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:742
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:744 ../fish/guestfish-actions.pod:755
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:752
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:763
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 ../src/guestfs-actions.pod:989 ../fish/guestfish-actions.pod:776 ../fish/guestfish-actions.pod:789
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:5072 ../fish/guestfish-actions.pod:779 ../fish/guestfish-actions.pod:3948
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_download_offset"
5227 msgstr ""
5228
5229 # type: verbatim
5230 #: ../src/guestfs-actions.pod:983
5231 #, no-wrap
5232 msgid ""
5233 " int guestfs_download_offset (guestfs_h *g,\n"
5234 "\t\tconst char *remotefilename,\n"
5235 "\t\tconst char *filename,\n"
5236 "\t\tint64_t offset,\n"
5237 "\t\tint64_t size);\n"
5238 "\n"
5239 msgstr ""
5240
5241 # type: textblock
5242 #: ../src/guestfs-actions.pod:992 ../fish/guestfish-actions.pod:792
5243 msgid ""
5244 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
5245 "region must be within the file or device)."
5246 msgstr ""
5247
5248 # type: textblock
5249 #: ../src/guestfs-actions.pod:995
5250 msgid ""
5251 "Note that there is no limit on the amount of data that can be downloaded "
5252 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
5253 "full amount unless an error occurs."
5254 msgstr ""
5255
5256 # type: textblock
5257 #: ../src/guestfs-actions.pod:1000
5258 msgid "See also C<guestfs_download>, C<guestfs_pread>."
5259 msgstr ""
5260
5261 # type: =head2
5262 #: ../src/guestfs-actions.pod:1009
5263 msgid "guestfs_drop_caches"
5264 msgstr ""
5265
5266 # type: verbatim
5267 #: ../src/guestfs-actions.pod:1011
5268 #, no-wrap
5269 msgid ""
5270 " int guestfs_drop_caches (guestfs_h *g,\n"
5271 "\t\tint whattodrop);\n"
5272 "\n"
5273 msgstr ""
5274
5275 # type: textblock
5276 #: ../src/guestfs-actions.pod:1014 ../fish/guestfish-actions.pod:808
5277 msgid ""
5278 "This instructs the guest kernel to drop its page cache, and/or dentries and "
5279 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
5280 "to drop, see L<http://linux-mm.org/Drop_Caches>"
5281 msgstr ""
5282
5283 # type: textblock
5284 #: ../src/guestfs-actions.pod:1019 ../fish/guestfish-actions.pod:813
5285 msgid "Setting C<whattodrop> to 3 should drop everything."
5286 msgstr ""
5287
5288 # type: textblock
5289 #: ../src/guestfs-actions.pod:1021 ../fish/guestfish-actions.pod:815
5290 msgid ""
5291 "This automatically calls L<sync(2)> before the operation, so that the "
5292 "maximum guest memory is freed."
5293 msgstr ""
5294
5295 # type: =head2
5296 #: ../src/guestfs-actions.pod:1026
5297 msgid "guestfs_du"
5298 msgstr ""
5299
5300 # type: verbatim
5301 #: ../src/guestfs-actions.pod:1028
5302 #, no-wrap
5303 msgid ""
5304 " int64_t guestfs_du (guestfs_h *g,\n"
5305 "\t\tconst char *path);\n"
5306 "\n"
5307 msgstr ""
5308
5309 # type: textblock
5310 #: ../src/guestfs-actions.pod:1031 ../fish/guestfish-actions.pod:822
5311 msgid ""
5312 "This command runs the C<du -s> command to estimate file space usage for "
5313 "C<path>."
5314 msgstr ""
5315
5316 # type: textblock
5317 #: ../src/guestfs-actions.pod:1034 ../fish/guestfish-actions.pod:825
5318 msgid ""
5319 "C<path> can be a file or a directory.  If C<path> is a directory then the "
5320 "estimate includes the contents of the directory and all subdirectories "
5321 "(recursively)."
5322 msgstr ""
5323
5324 # type: textblock
5325 #: ../src/guestfs-actions.pod:1038 ../fish/guestfish-actions.pod:829
5326 msgid "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
5327 msgstr ""
5328
5329 # type: =head2
5330 #: ../src/guestfs-actions.pod:1043
5331 msgid "guestfs_e2fsck_f"
5332 msgstr ""
5333
5334 # type: verbatim
5335 #: ../src/guestfs-actions.pod:1045
5336 #, no-wrap
5337 msgid ""
5338 " int guestfs_e2fsck_f (guestfs_h *g,\n"
5339 "\t\tconst char *device);\n"
5340 "\n"
5341 msgstr ""
5342
5343 # type: textblock
5344 #: ../src/guestfs-actions.pod:1048 ../fish/guestfish-actions.pod:836
5345 msgid ""
5346 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
5347 "on C<device>, noninteractively (C<-p>), even if the filesystem appears to be "
5348 "clean (C<-f>)."
5349 msgstr ""
5350
5351 # type: textblock
5352 #: ../src/guestfs-actions.pod:1052
5353 msgid ""
5354 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
5355 "Normally you should use C<guestfs_fsck>."
5356 msgstr ""
5357
5358 # type: =head2
5359 #: ../src/guestfs-actions.pod:1057
5360 msgid "guestfs_echo_daemon"
5361 msgstr ""
5362
5363 # type: verbatim
5364 #: ../src/guestfs-actions.pod:1059
5365 #, no-wrap
5366 msgid ""
5367 " char *guestfs_echo_daemon (guestfs_h *g,\n"
5368 "\t\tchar *const *words);\n"
5369 "\n"
5370 msgstr ""
5371
5372 # type: textblock
5373 #: ../src/guestfs-actions.pod:1062 ../fish/guestfish-actions.pod:847
5374 msgid ""
5375 "This command concatenates the list of C<words> passed with single spaces "
5376 "between them and returns the resulting string."
5377 msgstr ""
5378
5379 # type: textblock
5380 #: ../src/guestfs-actions.pod:1065 ../fish/guestfish-actions.pod:850
5381 msgid "You can use this command to test the connection through to the daemon."
5382 msgstr ""
5383
5384 # type: textblock
5385 #: ../src/guestfs-actions.pod:1067
5386 msgid "See also C<guestfs_ping_daemon>."
5387 msgstr ""
5388
5389 # type: =head2
5390 #: ../src/guestfs-actions.pod:1072
5391 msgid "guestfs_egrep"
5392 msgstr ""
5393
5394 # type: verbatim
5395 #: ../src/guestfs-actions.pod:1074
5396 #, no-wrap
5397 msgid ""
5398 " char **guestfs_egrep (guestfs_h *g,\n"
5399 "\t\tconst char *regex,\n"
5400 "\t\tconst char *path);\n"
5401 "\n"
5402 msgstr ""
5403
5404 # type: textblock
5405 #: ../src/guestfs-actions.pod:1078 ../fish/guestfish-actions.pod:858
5406 msgid "This calls the external C<egrep> program and returns the matching lines."
5407 msgstr ""
5408
5409 # type: =head2
5410 #: ../src/guestfs-actions.pod:1088
5411 msgid "guestfs_egrepi"
5412 msgstr ""
5413
5414 # type: verbatim
5415 #: ../src/guestfs-actions.pod:1090
5416 #, no-wrap
5417 msgid ""
5418 " char **guestfs_egrepi (guestfs_h *g,\n"
5419 "\t\tconst char *regex,\n"
5420 "\t\tconst char *path);\n"
5421 "\n"
5422 msgstr ""
5423
5424 # type: textblock
5425 #: ../src/guestfs-actions.pod:1094 ../fish/guestfish-actions.pod:868
5426 msgid "This calls the external C<egrep -i> program and returns the matching lines."
5427 msgstr ""
5428
5429 # type: =head2
5430 #: ../src/guestfs-actions.pod:1104
5431 msgid "guestfs_equal"
5432 msgstr ""
5433
5434 # type: verbatim
5435 #: ../src/guestfs-actions.pod:1106
5436 #, no-wrap
5437 msgid ""
5438 " int guestfs_equal (guestfs_h *g,\n"
5439 "\t\tconst char *file1,\n"
5440 "\t\tconst char *file2);\n"
5441 "\n"
5442 msgstr ""
5443
5444 # type: textblock
5445 #: ../src/guestfs-actions.pod:1110 ../fish/guestfish-actions.pod:878
5446 msgid ""
5447 "This compares the two files C<file1> and C<file2> and returns true if their "
5448 "content is exactly equal, or false otherwise."
5449 msgstr ""
5450
5451 # type: textblock
5452 #: ../src/guestfs-actions.pod:1113 ../fish/guestfish-actions.pod:881
5453 msgid "The external L<cmp(1)> program is used for the comparison."
5454 msgstr ""
5455
5456 # type: =head2
5457 #: ../src/guestfs-actions.pod:1117
5458 msgid "guestfs_exists"
5459 msgstr ""
5460
5461 # type: verbatim
5462 #: ../src/guestfs-actions.pod:1119
5463 #, no-wrap
5464 msgid ""
5465 " int guestfs_exists (guestfs_h *g,\n"
5466 "\t\tconst char *path);\n"
5467 "\n"
5468 msgstr ""
5469
5470 # type: textblock
5471 #: ../src/guestfs-actions.pod:1122 ../fish/guestfish-actions.pod:887
5472 msgid ""
5473 "This returns C<true> if and only if there is a file, directory (or anything) "
5474 "with the given C<path> name."
5475 msgstr ""
5476
5477 # type: textblock
5478 #: ../src/guestfs-actions.pod:1125
5479 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
5480 msgstr ""
5481
5482 # type: =head2
5483 #: ../src/guestfs-actions.pod:1129
5484 msgid "guestfs_fallocate"
5485 msgstr ""
5486
5487 # type: verbatim
5488 #: ../src/guestfs-actions.pod:1131
5489 #, no-wrap
5490 msgid ""
5491 " int guestfs_fallocate (guestfs_h *g,\n"
5492 "\t\tconst char *path,\n"
5493 "\t\tint len);\n"
5494 "\n"
5495 msgstr ""
5496
5497 # type: textblock
5498 #: ../src/guestfs-actions.pod:1135 ../src/guestfs-actions.pod:1158 ../fish/guestfish-actions.pod:896 ../fish/guestfish-actions.pod:915
5499 msgid ""
5500 "This command preallocates a file (containing zero bytes) named C<path> of "
5501 "size C<len> bytes.  If the file exists already, it is overwritten."
5502 msgstr ""
5503
5504 # type: textblock
5505 #: ../src/guestfs-actions.pod:1139 ../fish/guestfish-actions.pod:900
5506 msgid ""
5507 "Do not confuse this with the guestfish-specific C<alloc> command which "
5508 "allocates a file in the host and attaches it as a device."
5509 msgstr ""
5510
5511 # type: textblock
5512 #: ../src/guestfs-actions.pod:1145 ../fish/guestfish-actions.pod:904
5513 msgid ""
5514 "This function is deprecated.  In new code, use the C<fallocate64> call "
5515 "instead."
5516 msgstr ""
5517
5518 # type: textblock
5519 #: ../src/guestfs-actions.pod:1148 ../src/guestfs-actions.pod:1583 ../src/guestfs-actions.pod:1601 ../src/guestfs-actions.pod:5453 ../src/guestfs-actions.pod:5598 ../fish/guestfish-actions.pod:907 ../fish/guestfish-actions.pod:1264 ../fish/guestfish-actions.pod:1278 ../fish/guestfish-actions.pod:4224 ../fish/guestfish-actions.pod:4321
5520 msgid ""
5521 "Deprecated functions will not be removed from the API, but the fact that "
5522 "they are deprecated indicates that there are problems with correct use of "
5523 "these functions."
5524 msgstr ""
5525
5526 # type: =head2
5527 #: ../src/guestfs-actions.pod:1152
5528 msgid "guestfs_fallocate64"
5529 msgstr ""
5530
5531 # type: verbatim
5532 #: ../src/guestfs-actions.pod:1154
5533 #, no-wrap
5534 msgid ""
5535 " int guestfs_fallocate64 (guestfs_h *g,\n"
5536 "\t\tconst char *path,\n"
5537 "\t\tint64_t len);\n"
5538 "\n"
5539 msgstr ""
5540
5541 # type: textblock
5542 #: ../src/guestfs-actions.pod:1162
5543 msgid ""
5544 "Note that this call allocates disk blocks for the file.  To create a sparse "
5545 "file use C<guestfs_truncate_size> instead."
5546 msgstr ""
5547
5548 # type: textblock
5549 #: ../src/guestfs-actions.pod:1165
5550 msgid ""
5551 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
5552 "oversight it only allowed 30 bit lengths to be specified, effectively "
5553 "limiting the maximum size of files created through that call to 1GB."
5554 msgstr ""
5555
5556 # type: textblock
5557 #: ../src/guestfs-actions.pod:1170 ../fish/guestfish-actions.pod:927
5558 msgid ""
5559 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
5560 "commands which create a file in the host and attach it as a device."
5561 msgstr ""
5562
5563 # type: =head2
5564 #: ../src/guestfs-actions.pod:1176
5565 msgid "guestfs_fgrep"
5566 msgstr ""
5567
5568 # type: verbatim
5569 #: ../src/guestfs-actions.pod:1178
5570 #, no-wrap
5571 msgid ""
5572 " char **guestfs_fgrep (guestfs_h *g,\n"
5573 "\t\tconst char *pattern,\n"
5574 "\t\tconst char *path);\n"
5575 "\n"
5576 msgstr ""
5577
5578 # type: textblock
5579 #: ../src/guestfs-actions.pod:1182 ../fish/guestfish-actions.pod:935
5580 msgid "This calls the external C<fgrep> program and returns the matching lines."
5581 msgstr ""
5582
5583 # type: =head2
5584 #: ../src/guestfs-actions.pod:1192
5585 msgid "guestfs_fgrepi"
5586 msgstr ""
5587
5588 # type: verbatim
5589 #: ../src/guestfs-actions.pod:1194
5590 #, no-wrap
5591 msgid ""
5592 " char **guestfs_fgrepi (guestfs_h *g,\n"
5593 "\t\tconst char *pattern,\n"
5594 "\t\tconst char *path);\n"
5595 "\n"
5596 msgstr ""
5597
5598 # type: textblock
5599 #: ../src/guestfs-actions.pod:1198 ../fish/guestfish-actions.pod:945
5600 msgid "This calls the external C<fgrep -i> program and returns the matching lines."
5601 msgstr ""
5602
5603 # type: =head2
5604 #: ../src/guestfs-actions.pod:1208
5605 msgid "guestfs_file"
5606 msgstr ""
5607
5608 # type: verbatim
5609 #: ../src/guestfs-actions.pod:1210
5610 #, no-wrap
5611 msgid ""
5612 " char *guestfs_file (guestfs_h *g,\n"
5613 "\t\tconst char *path);\n"
5614 "\n"
5615 msgstr ""
5616
5617 # type: textblock
5618 #: ../src/guestfs-actions.pod:1213 ../fish/guestfish-actions.pod:955
5619 msgid ""
5620 "This call uses the standard L<file(1)> command to determine the type or "
5621 "contents of the file."
5622 msgstr ""
5623
5624 # type: textblock
5625 #: ../src/guestfs-actions.pod:1216 ../fish/guestfish-actions.pod:958
5626 msgid ""
5627 "This call will also transparently look inside various types of compressed "
5628 "file."
5629 msgstr ""
5630
5631 # type: textblock
5632 #: ../src/guestfs-actions.pod:1219 ../fish/guestfish-actions.pod:961
5633 msgid ""
5634 "The exact command which runs is C<file -zb path>.  Note in particular that "
5635 "the filename is not prepended to the output (the C<-b> option)."
5636 msgstr ""
5637
5638 # type: textblock
5639 #: ../src/guestfs-actions.pod:1223
5640 msgid ""
5641 "This command can also be used on C</dev/> devices (and partitions, LV "
5642 "names).  You can for example use this to determine if a device contains a "
5643 "filesystem, although it's usually better to use C<guestfs_vfs_type>."
5644 msgstr ""
5645
5646 # type: textblock
5647 #: ../src/guestfs-actions.pod:1228 ../fish/guestfish-actions.pod:970
5648 msgid ""
5649 "If the C<path> does not begin with C</dev/> then this command only works for "
5650 "the content of regular files.  For other file types (directory, symbolic "
5651 "link etc) it will just return the string C<directory> etc."
5652 msgstr ""
5653
5654 # type: =head2
5655 #: ../src/guestfs-actions.pod:1236
5656 msgid "guestfs_file_architecture"
5657 msgstr ""
5658
5659 # type: verbatim
5660 #: ../src/guestfs-actions.pod:1238
5661 #, no-wrap
5662 msgid ""
5663 " char *guestfs_file_architecture (guestfs_h *g,\n"
5664 "\t\tconst char *filename);\n"
5665 "\n"
5666 msgstr ""
5667
5668 # type: textblock
5669 #: ../src/guestfs-actions.pod:1241 ../fish/guestfish-actions.pod:979
5670 msgid ""
5671 "This detects the architecture of the binary C<filename>, and returns it if "
5672 "known."
5673 msgstr ""
5674
5675 # type: textblock
5676 #: ../src/guestfs-actions.pod:1244 ../fish/guestfish-actions.pod:982
5677 msgid "Currently defined architectures are:"
5678 msgstr ""
5679
5680 # type: =item
5681 #: ../src/guestfs-actions.pod:1248 ../fish/guestfish-actions.pod:986
5682 msgid "\"i386\""
5683 msgstr ""
5684
5685 # type: textblock
5686 #: ../src/guestfs-actions.pod:1250 ../fish/guestfish-actions.pod:988
5687 msgid ""
5688 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
5689 "irrespective of the precise processor requirements of the binary."
5690 msgstr ""
5691
5692 # type: =item
5693 #: ../src/guestfs-actions.pod:1253 ../fish/guestfish-actions.pod:991
5694 msgid "\"x86_64\""
5695 msgstr ""
5696
5697 # type: textblock
5698 #: ../src/guestfs-actions.pod:1255 ../fish/guestfish-actions.pod:993
5699 msgid "64 bit x86-64."
5700 msgstr ""
5701
5702 # type: =item
5703 #: ../src/guestfs-actions.pod:1257 ../fish/guestfish-actions.pod:995
5704 msgid "\"sparc\""
5705 msgstr ""
5706
5707 # type: textblock
5708 #: ../src/guestfs-actions.pod:1259 ../fish/guestfish-actions.pod:997
5709 msgid "32 bit SPARC."
5710 msgstr ""
5711
5712 # type: =item
5713 #: ../src/guestfs-actions.pod:1261 ../fish/guestfish-actions.pod:999
5714 msgid "\"sparc64\""
5715 msgstr ""
5716
5717 # type: textblock
5718 #: ../src/guestfs-actions.pod:1263 ../fish/guestfish-actions.pod:1001
5719 msgid "64 bit SPARC V9 and above."
5720 msgstr ""
5721
5722 # type: =item
5723 #: ../src/guestfs-actions.pod:1265 ../fish/guestfish-actions.pod:1003
5724 msgid "\"ia64\""
5725 msgstr ""
5726
5727 # type: textblock
5728 #: ../src/guestfs-actions.pod:1267 ../fish/guestfish-actions.pod:1005
5729 msgid "Intel Itanium."
5730 msgstr ""
5731
5732 # type: =item
5733 #: ../src/guestfs-actions.pod:1269 ../fish/guestfish-actions.pod:1007
5734 msgid "\"ppc\""
5735 msgstr ""
5736
5737 # type: textblock
5738 #: ../src/guestfs-actions.pod:1271 ../fish/guestfish-actions.pod:1009
5739 msgid "32 bit Power PC."
5740 msgstr ""
5741
5742 # type: =item
5743 #: ../src/guestfs-actions.pod:1273 ../fish/guestfish-actions.pod:1011
5744 msgid "\"ppc64\""
5745 msgstr ""
5746
5747 # type: textblock
5748 #: ../src/guestfs-actions.pod:1275 ../fish/guestfish-actions.pod:1013
5749 msgid "64 bit Power PC."
5750 msgstr ""
5751
5752 # type: textblock
5753 #: ../src/guestfs-actions.pod:1279 ../fish/guestfish-actions.pod:1017
5754 msgid "Libguestfs may return other architecture strings in future."
5755 msgstr ""
5756
5757 # type: textblock
5758 #: ../src/guestfs-actions.pod:1281 ../fish/guestfish-actions.pod:1019
5759 msgid "The function works on at least the following types of files:"
5760 msgstr ""
5761
5762 # type: textblock
5763 #: ../src/guestfs-actions.pod:1287 ../fish/guestfish-actions.pod:1025
5764 msgid "many types of Un*x and Linux binary"
5765 msgstr ""
5766
5767 # type: textblock
5768 #: ../src/guestfs-actions.pod:1291 ../fish/guestfish-actions.pod:1029
5769 msgid "many types of Un*x and Linux shared library"
5770 msgstr ""
5771
5772 # type: textblock
5773 #: ../src/guestfs-actions.pod:1295 ../fish/guestfish-actions.pod:1033
5774 msgid "Windows Win32 and Win64 binaries"
5775 msgstr ""
5776
5777 # type: textblock
5778 #: ../src/guestfs-actions.pod:1299 ../fish/guestfish-actions.pod:1037
5779 msgid "Windows Win32 and Win64 DLLs"
5780 msgstr ""
5781
5782 # type: textblock
5783 #: ../src/guestfs-actions.pod:1301 ../fish/guestfish-actions.pod:1039
5784 msgid "Win32 binaries and DLLs return C<i386>."
5785 msgstr ""
5786
5787 # type: textblock
5788 #: ../src/guestfs-actions.pod:1303 ../fish/guestfish-actions.pod:1041
5789 msgid "Win64 binaries and DLLs return C<x86_64>."
5790 msgstr ""
5791
5792 # type: textblock
5793 #: ../src/guestfs-actions.pod:1307 ../fish/guestfish-actions.pod:1045
5794 msgid "Linux kernel modules"
5795 msgstr ""
5796
5797 # type: textblock
5798 #: ../src/guestfs-actions.pod:1311 ../fish/guestfish-actions.pod:1049
5799 msgid "Linux new-style initrd images"
5800 msgstr ""
5801
5802 # type: textblock
5803 #: ../src/guestfs-actions.pod:1315 ../fish/guestfish-actions.pod:1053
5804 msgid "some non-x86 Linux vmlinuz kernels"
5805 msgstr ""
5806
5807 # type: textblock
5808 #: ../src/guestfs-actions.pod:1319 ../fish/guestfish-actions.pod:1057
5809 msgid "What it can't do currently:"
5810 msgstr ""
5811
5812 # type: textblock
5813 #: ../src/guestfs-actions.pod:1325 ../fish/guestfish-actions.pod:1063
5814 msgid "static libraries (libfoo.a)"
5815 msgstr ""
5816
5817 # type: textblock
5818 #: ../src/guestfs-actions.pod:1329 ../fish/guestfish-actions.pod:1067
5819 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
5820 msgstr ""
5821
5822 # type: textblock
5823 #: ../src/guestfs-actions.pod:1333 ../fish/guestfish-actions.pod:1071
5824 msgid "x86 Linux vmlinuz kernels"
5825 msgstr ""
5826
5827 # type: textblock
5828 #: ../src/guestfs-actions.pod:1335 ../fish/guestfish-actions.pod:1073
5829 msgid ""
5830 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
5831 "compressed code, and are horribly hard to unpack.  If you want to find the "
5832 "architecture of a kernel, use the architecture of the associated initrd or "
5833 "kernel module(s) instead."
5834 msgstr ""
5835
5836 # type: =head2
5837 #: ../src/guestfs-actions.pod:1345
5838 msgid "guestfs_filesize"
5839 msgstr ""
5840
5841 # type: verbatim
5842 #: ../src/guestfs-actions.pod:1347
5843 #, no-wrap
5844 msgid ""
5845 " int64_t guestfs_filesize (guestfs_h *g,\n"
5846 "\t\tconst char *file);\n"
5847 "\n"
5848 msgstr ""
5849
5850 # type: textblock
5851 #: ../src/guestfs-actions.pod:1350 ../fish/guestfish-actions.pod:1084
5852 msgid "This command returns the size of C<file> in bytes."
5853 msgstr ""
5854
5855 # type: textblock
5856 #: ../src/guestfs-actions.pod:1352
5857 msgid ""
5858 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
5859 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
5860 "devices, use C<guestfs_blockdev_getsize64>."
5861 msgstr ""
5862
5863 # type: =head2
5864 #: ../src/guestfs-actions.pod:1358
5865 msgid "guestfs_fill"
5866 msgstr ""
5867
5868 # type: verbatim
5869 #: ../src/guestfs-actions.pod:1360
5870 #, no-wrap
5871 msgid ""
5872 " int guestfs_fill (guestfs_h *g,\n"
5873 "\t\tint c,\n"
5874 "\t\tint len,\n"
5875 "\t\tconst char *path);\n"
5876 "\n"
5877 msgstr ""
5878
5879 # type: textblock
5880 #: ../src/guestfs-actions.pod:1365 ../fish/guestfish-actions.pod:1094
5881 msgid ""
5882 "This command creates a new file called C<path>.  The initial content of the "
5883 "file is C<len> octets of C<c>, where C<c> must be a number in the range "
5884 "C<[0..255]>."
5885 msgstr ""
5886
5887 # type: textblock
5888 #: ../src/guestfs-actions.pod:1369
5889 msgid ""
5890 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
5891 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
5892 "bytes use C<guestfs_fill_pattern>."
5893 msgstr ""
5894
5895 # type: =head2
5896 #: ../src/guestfs-actions.pod:1381
5897 msgid "guestfs_fill_pattern"
5898 msgstr ""
5899
5900 # type: verbatim
5901 #: ../src/guestfs-actions.pod:1383
5902 #, no-wrap
5903 msgid ""
5904 " int guestfs_fill_pattern (guestfs_h *g,\n"
5905 "\t\tconst char *pattern,\n"
5906 "\t\tint len,\n"
5907 "\t\tconst char *path);\n"
5908 "\n"
5909 msgstr ""
5910
5911 # type: textblock
5912 #: ../src/guestfs-actions.pod:1388
5913 msgid ""
5914 "This function is like C<guestfs_fill> except that it creates a new file of "
5915 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
5916 "pattern is truncated if necessary to ensure the length of the file is "
5917 "exactly C<len> bytes."
5918 msgstr ""
5919
5920 # type: =head2
5921 #: ../src/guestfs-actions.pod:1400
5922 msgid "guestfs_find"
5923 msgstr ""
5924
5925 # type: verbatim
5926 #: ../src/guestfs-actions.pod:1402
5927 #, no-wrap
5928 msgid ""
5929 " char **guestfs_find (guestfs_h *g,\n"
5930 "\t\tconst char *directory);\n"
5931 "\n"
5932 msgstr ""
5933
5934 # type: textblock
5935 #: ../src/guestfs-actions.pod:1405 ../fish/guestfish-actions.pod:1116
5936 msgid ""
5937 "This command lists out all files and directories, recursively, starting at "
5938 "C<directory>.  It is essentially equivalent to running the shell command "
5939 "C<find directory -print> but some post-processing happens on the output, "
5940 "described below."
5941 msgstr ""
5942
5943 # type: textblock
5944 #: ../src/guestfs-actions.pod:1410 ../fish/guestfish-actions.pod:1121
5945 msgid ""
5946 "This returns a list of strings I<without any prefix>.  Thus if the directory "
5947 "structure was:"
5948 msgstr ""
5949
5950 # type: verbatim
5951 #: ../src/guestfs-actions.pod:1413 ../fish/guestfish-actions.pod:1124
5952 #, no-wrap
5953 msgid ""
5954 " /tmp/a\n"
5955 " /tmp/b\n"
5956 " /tmp/c/d\n"
5957 "\n"
5958 msgstr ""
5959
5960 # type: textblock
5961 #: ../src/guestfs-actions.pod:1417
5962 msgid "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
5963 msgstr ""
5964
5965 # type: verbatim
5966 #: ../src/guestfs-actions.pod:1420 ../fish/guestfish-actions.pod:1131
5967 #, no-wrap
5968 msgid ""
5969 " a\n"
5970 " b\n"
5971 " c\n"
5972 " c/d\n"
5973 "\n"
5974 msgstr ""
5975
5976 # type: textblock
5977 #: ../src/guestfs-actions.pod:1425 ../fish/guestfish-actions.pod:1136
5978 msgid "If C<directory> is not a directory, then this command returns an error."
5979 msgstr ""
5980
5981 # type: textblock
5982 #: ../src/guestfs-actions.pod:1428 ../fish/guestfish-actions.pod:1139
5983 msgid "The returned list is sorted."
5984 msgstr ""
5985
5986 # type: textblock
5987 #: ../src/guestfs-actions.pod:1430
5988 msgid "See also C<guestfs_find0>."
5989 msgstr ""
5990
5991 # type: =head2
5992 #: ../src/guestfs-actions.pod:1439
5993 msgid "guestfs_find0"
5994 msgstr ""
5995
5996 # type: verbatim
5997 #: ../src/guestfs-actions.pod:1441
5998 #, no-wrap
5999 msgid ""
6000 " int guestfs_find0 (guestfs_h *g,\n"
6001 "\t\tconst char *directory,\n"
6002 "\t\tconst char *files);\n"
6003 "\n"
6004 msgstr ""
6005
6006 # type: textblock
6007 #: ../src/guestfs-actions.pod:1445 ../fish/guestfish-actions.pod:1150
6008 msgid ""
6009 "This command lists out all files and directories, recursively, starting at "
6010 "C<directory>, placing the resulting list in the external file called "
6011 "C<files>."
6012 msgstr ""
6013
6014 # type: textblock
6015 #: ../src/guestfs-actions.pod:1449
6016 msgid ""
6017 "This command works the same way as C<guestfs_find> with the following "
6018 "exceptions:"
6019 msgstr ""
6020
6021 # type: textblock
6022 #: ../src/guestfs-actions.pod:1456 ../fish/guestfish-actions.pod:1161
6023 msgid "The resulting list is written to an external file."
6024 msgstr ""
6025
6026 # type: textblock
6027 #: ../src/guestfs-actions.pod:1460 ../fish/guestfish-actions.pod:1165
6028 msgid ""
6029 "Items (filenames) in the result are separated by C<\\0> characters.  See "
6030 "L<find(1)> option I<-print0>."
6031 msgstr ""
6032
6033 # type: textblock
6034 #: ../src/guestfs-actions.pod:1465 ../fish/guestfish-actions.pod:1170
6035 msgid "This command is not limited in the number of names that it can return."
6036 msgstr ""
6037
6038 # type: textblock
6039 #: ../src/guestfs-actions.pod:1470 ../fish/guestfish-actions.pod:1175
6040 msgid "The result list is not sorted."
6041 msgstr ""
6042
6043 # type: =head2
6044 #: ../src/guestfs-actions.pod:1476
6045 msgid "guestfs_findfs_label"
6046 msgstr ""
6047
6048 # type: verbatim
6049 #: ../src/guestfs-actions.pod:1478
6050 #, no-wrap
6051 msgid ""
6052 " char *guestfs_findfs_label (guestfs_h *g,\n"
6053 "\t\tconst char *label);\n"
6054 "\n"
6055 msgstr ""
6056
6057 # type: textblock
6058 #: ../src/guestfs-actions.pod:1481 ../fish/guestfish-actions.pod:1185
6059 msgid ""
6060 "This command searches the filesystems and returns the one which has the "
6061 "given label.  An error is returned if no such filesystem can be found."
6062 msgstr ""
6063
6064 # type: textblock
6065 #: ../src/guestfs-actions.pod:1485
6066 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
6067 msgstr ""
6068
6069 # type: =head2
6070 #: ../src/guestfs-actions.pod:1490
6071 msgid "guestfs_findfs_uuid"
6072 msgstr ""
6073
6074 # type: verbatim
6075 #: ../src/guestfs-actions.pod:1492
6076 #, no-wrap
6077 msgid ""
6078 " char *guestfs_findfs_uuid (guestfs_h *g,\n"
6079 "\t\tconst char *uuid);\n"
6080 "\n"
6081 msgstr ""
6082
6083 # type: textblock
6084 #: ../src/guestfs-actions.pod:1495 ../fish/guestfish-actions.pod:1195
6085 msgid ""
6086 "This command searches the filesystems and returns the one which has the "
6087 "given UUID.  An error is returned if no such filesystem can be found."
6088 msgstr ""
6089
6090 # type: textblock
6091 #: ../src/guestfs-actions.pod:1499
6092 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
6093 msgstr ""
6094
6095 # type: =head2
6096 #: ../src/guestfs-actions.pod:1504
6097 msgid "guestfs_fsck"
6098 msgstr ""
6099
6100 # type: verbatim
6101 #: ../src/guestfs-actions.pod:1506
6102 #, no-wrap
6103 msgid ""
6104 " int guestfs_fsck (guestfs_h *g,\n"
6105 "\t\tconst char *fstype,\n"
6106 "\t\tconst char *device);\n"
6107 "\n"
6108 msgstr ""
6109
6110 # type: textblock
6111 #: ../src/guestfs-actions.pod:1510 ../fish/guestfish-actions.pod:1205
6112 msgid ""
6113 "This runs the filesystem checker (fsck) on C<device> which should have "
6114 "filesystem type C<fstype>."
6115 msgstr ""
6116
6117 # type: textblock
6118 #: ../src/guestfs-actions.pod:1513 ../fish/guestfish-actions.pod:1208
6119 msgid ""
6120 "The returned integer is the status.  See L<fsck(8)> for the list of status "
6121 "codes from C<fsck>."
6122 msgstr ""
6123
6124 # type: textblock
6125 #: ../src/guestfs-actions.pod:1522 ../fish/guestfish-actions.pod:1217
6126 msgid "Multiple status codes can be summed together."
6127 msgstr ""
6128
6129 # type: textblock
6130 #: ../src/guestfs-actions.pod:1526 ../fish/guestfish-actions.pod:1221
6131 msgid ""
6132 "A non-zero return code can mean \"success\", for example if errors have been "
6133 "corrected on the filesystem."
6134 msgstr ""
6135
6136 # type: textblock
6137 #: ../src/guestfs-actions.pod:1531 ../fish/guestfish-actions.pod:1226
6138 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
6139 msgstr ""
6140
6141 # type: textblock
6142 #: ../src/guestfs-actions.pod:1536 ../fish/guestfish-actions.pod:1231
6143 msgid "This command is entirely equivalent to running C<fsck -a -t fstype device>."
6144 msgstr ""
6145
6146 # type: =head2
6147 #: ../src/guestfs-actions.pod:1540
6148 msgid "guestfs_get_append"
6149 msgstr ""
6150
6151 # type: verbatim
6152 #: ../src/guestfs-actions.pod:1542
6153 #, no-wrap
6154 msgid ""
6155 " const char *guestfs_get_append (guestfs_h *g);\n"
6156 "\n"
6157 msgstr ""
6158
6159 # type: textblock
6160 #: ../src/guestfs-actions.pod:1544 ../fish/guestfish-actions.pod:1237
6161 msgid ""
6162 "Return the additional kernel options which are added to the guest kernel "
6163 "command line."
6164 msgstr ""
6165
6166 # type: textblock
6167 #: ../src/guestfs-actions.pod:1547 ../fish/guestfish-actions.pod:1240
6168 msgid "If C<NULL> then no options are added."
6169 msgstr ""
6170
6171 # type: textblock
6172 #: ../src/guestfs-actions.pod:1549
6173 msgid ""
6174 "This function returns a string which may be NULL.  There is no way to return "
6175 "an error from this function.  The string is owned by the guest handle and "
6176 "must I<not> be freed."
6177 msgstr ""
6178
6179 # type: =head2
6180 #: ../src/guestfs-actions.pod:1553
6181 msgid "guestfs_get_autosync"
6182 msgstr ""
6183
6184 # type: verbatim
6185 #: ../src/guestfs-actions.pod:1555
6186 #, no-wrap
6187 msgid ""
6188 " int guestfs_get_autosync (guestfs_h *g);\n"
6189 "\n"
6190 msgstr ""
6191
6192 # type: textblock
6193 #: ../src/guestfs-actions.pod:1557 ../fish/guestfish-actions.pod:1246
6194 msgid "Get the autosync flag."
6195 msgstr ""
6196
6197 # type: =head2
6198 #: ../src/guestfs-actions.pod:1561
6199 msgid "guestfs_get_direct"
6200 msgstr ""
6201
6202 # type: verbatim
6203 #: ../src/guestfs-actions.pod:1563
6204 #, no-wrap
6205 msgid ""
6206 " int guestfs_get_direct (guestfs_h *g);\n"
6207 "\n"
6208 msgstr ""
6209
6210 # type: textblock
6211 #: ../src/guestfs-actions.pod:1565 ../fish/guestfish-actions.pod:1252
6212 msgid "Return the direct appliance mode flag."
6213 msgstr ""
6214
6215 # type: =head2
6216 #: ../src/guestfs-actions.pod:1569
6217 msgid "guestfs_get_e2label"
6218 msgstr ""
6219
6220 # type: verbatim
6221 #: ../src/guestfs-actions.pod:1571
6222 #, no-wrap
6223 msgid ""
6224 " char *guestfs_get_e2label (guestfs_h *g,\n"
6225 "\t\tconst char *device);\n"
6226 "\n"
6227 msgstr ""
6228
6229 # type: textblock
6230 #: ../src/guestfs-actions.pod:1574 ../fish/guestfish-actions.pod:1258
6231 msgid "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
6232 msgstr ""
6233
6234 # type: textblock
6235 #: ../src/guestfs-actions.pod:1580 ../fish/guestfish-actions.pod:1261
6236 msgid ""
6237 "This function is deprecated.  In new code, use the C<vfs_label> call "
6238 "instead."
6239 msgstr ""
6240
6241 # type: =head2
6242 #: ../src/guestfs-actions.pod:1587
6243 msgid "guestfs_get_e2uuid"
6244 msgstr ""
6245
6246 # type: verbatim
6247 #: ../src/guestfs-actions.pod:1589
6248 #, no-wrap
6249 msgid ""
6250 " char *guestfs_get_e2uuid (guestfs_h *g,\n"
6251 "\t\tconst char *device);\n"
6252 "\n"
6253 msgstr ""
6254
6255 # type: textblock
6256 #: ../src/guestfs-actions.pod:1592 ../fish/guestfish-actions.pod:1272
6257 msgid "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
6258 msgstr ""
6259
6260 # type: textblock
6261 #: ../src/guestfs-actions.pod:1598 ../fish/guestfish-actions.pod:1275
6262 msgid "This function is deprecated.  In new code, use the C<vfs_uuid> call instead."
6263 msgstr ""
6264
6265 # type: =head2
6266 #: ../src/guestfs-actions.pod:1605
6267 msgid "guestfs_get_memsize"
6268 msgstr ""
6269
6270 # type: verbatim
6271 #: ../src/guestfs-actions.pod:1607
6272 #, no-wrap
6273 msgid ""
6274 " int guestfs_get_memsize (guestfs_h *g);\n"
6275 "\n"
6276 msgstr ""
6277
6278 # type: textblock
6279 #: ../src/guestfs-actions.pod:1609 ../fish/guestfish-actions.pod:1286
6280 msgid "This gets the memory size in megabytes allocated to the qemu subprocess."
6281 msgstr ""
6282
6283 # type: textblock
6284 #: ../src/guestfs-actions.pod:1612
6285 msgid ""
6286 "If C<guestfs_set_memsize> was not called on this handle, and if "
6287 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
6288 "value for memsize."
6289 msgstr ""
6290
6291 # type: textblock
6292 #: ../src/guestfs-actions.pod:1616 ../src/guestfs-actions.pod:1679 ../src/guestfs-actions.pod:4325 ../src/guestfs-actions.pod:4417 ../fish/guestfish-actions.pod:1293 ../fish/guestfish-actions.pod:1344 ../fish/guestfish-actions.pod:3355 ../fish/guestfish-actions.pod:3442
6293 msgid "For more information on the architecture of libguestfs, see L<guestfs(3)>."
6294 msgstr ""
6295
6296 # type: =head2
6297 #: ../src/guestfs-actions.pod:1621
6298 msgid "guestfs_get_network"
6299 msgstr ""
6300
6301 # type: verbatim
6302 #: ../src/guestfs-actions.pod:1623
6303 #, no-wrap
6304 msgid ""
6305 " int guestfs_get_network (guestfs_h *g);\n"
6306 "\n"
6307 msgstr ""
6308
6309 # type: textblock
6310 #: ../src/guestfs-actions.pod:1625 ../fish/guestfish-actions.pod:1300
6311 msgid "This returns the enable network flag."
6312 msgstr ""
6313
6314 # type: =head2
6315 #: ../src/guestfs-actions.pod:1629
6316 msgid "guestfs_get_path"
6317 msgstr ""
6318
6319 # type: verbatim
6320 #: ../src/guestfs-actions.pod:1631
6321 #, no-wrap
6322 msgid ""
6323 " const char *guestfs_get_path (guestfs_h *g);\n"
6324 "\n"
6325 msgstr ""
6326
6327 # type: textblock
6328 #: ../src/guestfs-actions.pod:1633 ../fish/guestfish-actions.pod:1306
6329 msgid "Return the current search path."
6330 msgstr ""
6331
6332 # type: textblock
6333 #: ../src/guestfs-actions.pod:1635 ../fish/guestfish-actions.pod:1308
6334 msgid ""
6335 "This is always non-NULL.  If it wasn't set already, then this will return "
6336 "the default path."
6337 msgstr ""
6338
6339 # type: textblock
6340 #: ../src/guestfs-actions.pod:1638 ../src/guestfs-actions.pod:1661
6341 msgid ""
6342 "This function returns a string, or NULL on error.  The string is owned by "
6343 "the guest handle and must I<not> be freed."
6344 msgstr ""
6345
6346 # type: =head2
6347 #: ../src/guestfs-actions.pod:1641
6348 msgid "guestfs_get_pid"
6349 msgstr ""
6350
6351 # type: verbatim
6352 #: ../src/guestfs-actions.pod:1643
6353 #, no-wrap
6354 msgid ""
6355 " int guestfs_get_pid (guestfs_h *g);\n"
6356 "\n"
6357 msgstr ""
6358
6359 # type: textblock
6360 #: ../src/guestfs-actions.pod:1645 ../fish/guestfish-actions.pod:1317
6361 msgid ""
6362 "Return the process ID of the qemu subprocess.  If there is no qemu "
6363 "subprocess, then this will return an error."
6364 msgstr ""
6365
6366 # type: textblock
6367 #: ../src/guestfs-actions.pod:1648 ../fish/guestfish-actions.pod:1320
6368 msgid "This is an internal call used for debugging and testing."
6369 msgstr ""
6370
6371 # type: =head2
6372 #: ../src/guestfs-actions.pod:1652
6373 msgid "guestfs_get_qemu"
6374 msgstr ""
6375
6376 # type: verbatim
6377 #: ../src/guestfs-actions.pod:1654
6378 #, no-wrap
6379 msgid ""
6380 " const char *guestfs_get_qemu (guestfs_h *g);\n"
6381 "\n"
6382 msgstr ""
6383
6384 # type: textblock
6385 #: ../src/guestfs-actions.pod:1656 ../fish/guestfish-actions.pod:1326
6386 msgid "Return the current qemu binary."
6387 msgstr ""
6388
6389 # type: textblock
6390 #: ../src/guestfs-actions.pod:1658 ../fish/guestfish-actions.pod:1328
6391 msgid ""
6392 "This is always non-NULL.  If it wasn't set already, then this will return "
6393 "the default qemu binary name."
6394 msgstr ""
6395
6396 # type: =head2
6397 #: ../src/guestfs-actions.pod:1664
6398 msgid "guestfs_get_recovery_proc"
6399 msgstr ""
6400
6401 # type: verbatim
6402 #: ../src/guestfs-actions.pod:1666
6403 #, no-wrap
6404 msgid ""
6405 " int guestfs_get_recovery_proc (guestfs_h *g);\n"
6406 "\n"
6407 msgstr ""
6408
6409 # type: textblock
6410 #: ../src/guestfs-actions.pod:1668 ../fish/guestfish-actions.pod:1335
6411 msgid "Return the recovery process enabled flag."
6412 msgstr ""
6413
6414 # type: =head2
6415 #: ../src/guestfs-actions.pod:1672
6416 msgid "guestfs_get_selinux"
6417 msgstr ""
6418
6419 # type: verbatim
6420 #: ../src/guestfs-actions.pod:1674
6421 #, no-wrap
6422 msgid ""
6423 " int guestfs_get_selinux (guestfs_h *g);\n"
6424 "\n"
6425 msgstr ""
6426
6427 # type: textblock
6428 #: ../src/guestfs-actions.pod:1676
6429 msgid ""
6430 "This returns the current setting of the selinux flag which is passed to the "
6431 "appliance at boot time.  See C<guestfs_set_selinux>."
6432 msgstr ""
6433
6434 # type: =head2
6435 #: ../src/guestfs-actions.pod:1684
6436 msgid "guestfs_get_state"
6437 msgstr ""
6438
6439 # type: verbatim
6440 #: ../src/guestfs-actions.pod:1686
6441 #, no-wrap
6442 msgid ""
6443 " int guestfs_get_state (guestfs_h *g);\n"
6444 "\n"
6445 msgstr ""
6446
6447 # type: textblock
6448 #: ../src/guestfs-actions.pod:1688 ../fish/guestfish-actions.pod:1351
6449 msgid ""
6450 "This returns the current state as an opaque integer.  This is only useful "
6451 "for printing debug and internal error messages."
6452 msgstr ""
6453
6454 # type: textblock
6455 #: ../src/guestfs-actions.pod:1691 ../src/guestfs-actions.pod:2312 ../src/guestfs-actions.pod:2335 ../src/guestfs-actions.pod:2384 ../src/guestfs-actions.pod:2405 ../fish/guestfish-actions.pod:1354 ../fish/guestfish-actions.pod:1848 ../fish/guestfish-actions.pod:1866 ../fish/guestfish-actions.pod:1904 ../fish/guestfish-actions.pod:1920
6456 msgid "For more information on states, see L<guestfs(3)>."
6457 msgstr ""
6458
6459 # type: =head2
6460 #: ../src/guestfs-actions.pod:1695
6461 msgid "guestfs_get_trace"
6462 msgstr ""
6463
6464 # type: verbatim
6465 #: ../src/guestfs-actions.pod:1697
6466 #, no-wrap
6467 msgid ""
6468 " int guestfs_get_trace (guestfs_h *g);\n"
6469 "\n"
6470 msgstr ""
6471
6472 # type: textblock
6473 #: ../src/guestfs-actions.pod:1699 ../fish/guestfish-actions.pod:1360
6474 msgid "Return the command trace flag."
6475 msgstr ""
6476
6477 # type: =head2
6478 #: ../src/guestfs-actions.pod:1703
6479 msgid "guestfs_get_umask"
6480 msgstr ""
6481
6482 # type: verbatim
6483 #: ../src/guestfs-actions.pod:1705
6484 #, no-wrap
6485 msgid ""
6486 " int guestfs_get_umask (guestfs_h *g);\n"
6487 "\n"
6488 msgstr ""
6489
6490 # type: textblock
6491 #: ../src/guestfs-actions.pod:1707
6492 msgid ""
6493 "Return the current umask.  By default the umask is C<022> unless it has been "
6494 "set by calling C<guestfs_umask>."
6495 msgstr ""
6496
6497 # type: =head2
6498 #: ../src/guestfs-actions.pod:1712
6499 msgid "guestfs_get_verbose"
6500 msgstr ""
6501
6502 # type: verbatim
6503 #: ../src/guestfs-actions.pod:1714
6504 #, no-wrap
6505 msgid ""
6506 " int guestfs_get_verbose (guestfs_h *g);\n"
6507 "\n"
6508 msgstr ""
6509
6510 # type: textblock
6511 #: ../src/guestfs-actions.pod:1716 ../fish/guestfish-actions.pod:1373
6512 msgid "This returns the verbose messages flag."
6513 msgstr ""
6514
6515 # type: =head2
6516 #: ../src/guestfs-actions.pod:1720
6517 msgid "guestfs_getcon"
6518 msgstr ""
6519
6520 # type: verbatim
6521 #: ../src/guestfs-actions.pod:1722
6522 #, no-wrap
6523 msgid ""
6524 " char *guestfs_getcon (guestfs_h *g);\n"
6525 "\n"
6526 msgstr ""
6527
6528 # type: textblock
6529 #: ../src/guestfs-actions.pod:1724 ../fish/guestfish-actions.pod:1379
6530 msgid "This gets the SELinux security context of the daemon."
6531 msgstr ""
6532
6533 # type: textblock
6534 #: ../src/guestfs-actions.pod:1726
6535 msgid "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
6536 msgstr ""
6537
6538 # type: =head2
6539 #: ../src/guestfs-actions.pod:1732
6540 msgid "guestfs_getxattrs"
6541 msgstr ""
6542
6543 # type: verbatim
6544 #: ../src/guestfs-actions.pod:1734
6545 #, no-wrap
6546 msgid ""
6547 " struct guestfs_xattr_list *guestfs_getxattrs (guestfs_h *g,\n"
6548 "\t\tconst char *path);\n"
6549 "\n"
6550 msgstr ""
6551
6552 # type: textblock
6553 #: ../src/guestfs-actions.pod:1737 ../fish/guestfish-actions.pod:1388
6554 msgid "This call lists the extended attributes of the file or directory C<path>."
6555 msgstr ""
6556
6557 # type: textblock
6558 #: ../src/guestfs-actions.pod:1740 ../fish/guestfish-actions.pod:1391
6559 msgid ""
6560 "At the system call level, this is a combination of the L<listxattr(2)> and "
6561 "L<getxattr(2)> calls."
6562 msgstr ""
6563
6564 # type: textblock
6565 #: ../src/guestfs-actions.pod:1743
6566 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
6567 msgstr ""
6568
6569 # type: textblock
6570 #: ../src/guestfs-actions.pod:1745 ../src/guestfs-actions.pod:2479 ../src/guestfs-actions.pod:3017
6571 msgid ""
6572 "This function returns a C<struct guestfs_xattr_list *> (see "
6573 "E<lt>guestfs-structs.hE<gt>), or NULL if there was an error.  I<The caller "
6574 "must call C<guestfs_free_xattr_list> after use>."
6575 msgstr ""
6576
6577 # type: =head2
6578 #: ../src/guestfs-actions.pod:1750
6579 msgid "guestfs_glob_expand"
6580 msgstr ""
6581
6582 # type: verbatim
6583 #: ../src/guestfs-actions.pod:1752
6584 #, no-wrap
6585 msgid ""
6586 " char **guestfs_glob_expand (guestfs_h *g,\n"
6587 "\t\tconst char *pattern);\n"
6588 "\n"
6589 msgstr ""
6590
6591 # type: textblock
6592 #: ../src/guestfs-actions.pod:1755 ../fish/guestfish-actions.pod:1400
6593 msgid ""
6594 "This command searches for all the pathnames matching C<pattern> according to "
6595 "the wildcard expansion rules used by the shell."
6596 msgstr ""
6597
6598 # type: textblock
6599 #: ../src/guestfs-actions.pod:1759 ../fish/guestfish-actions.pod:1404
6600 msgid "If no paths match, then this returns an empty list (note: not an error)."
6601 msgstr ""
6602
6603 # type: textblock
6604 #: ../src/guestfs-actions.pod:1762 ../fish/guestfish-actions.pod:1407
6605 msgid ""
6606 "It is just a wrapper around the C L<glob(3)> function with flags "
6607 "C<GLOB_MARK|GLOB_BRACE>.  See that manual page for more details."
6608 msgstr ""
6609
6610 # type: =head2
6611 #: ../src/guestfs-actions.pod:1770
6612 msgid "guestfs_grep"
6613 msgstr ""
6614
6615 # type: verbatim
6616 #: ../src/guestfs-actions.pod:1772
6617 #, no-wrap
6618 msgid ""
6619 " char **guestfs_grep (guestfs_h *g,\n"
6620 "\t\tconst char *regex,\n"
6621 "\t\tconst char *path);\n"
6622 "\n"
6623 msgstr ""
6624
6625 # type: textblock
6626 #: ../src/guestfs-actions.pod:1776 ../fish/guestfish-actions.pod:1415
6627 msgid "This calls the external C<grep> program and returns the matching lines."
6628 msgstr ""
6629
6630 # type: =head2
6631 #: ../src/guestfs-actions.pod:1786
6632 msgid "guestfs_grepi"
6633 msgstr ""
6634
6635 # type: verbatim
6636 #: ../src/guestfs-actions.pod:1788
6637 #, no-wrap
6638 msgid ""
6639 " char **guestfs_grepi (guestfs_h *g,\n"
6640 "\t\tconst char *regex,\n"
6641 "\t\tconst char *path);\n"
6642 "\n"
6643 msgstr ""
6644
6645 # type: textblock
6646 #: ../src/guestfs-actions.pod:1792 ../fish/guestfish-actions.pod:1425
6647 msgid "This calls the external C<grep -i> program and returns the matching lines."
6648 msgstr ""
6649
6650 # type: =head2
6651 #: ../src/guestfs-actions.pod:1802
6652 msgid "guestfs_grub_install"
6653 msgstr ""
6654
6655 # type: verbatim
6656 #: ../src/guestfs-actions.pod:1804
6657 #, no-wrap
6658 msgid ""
6659 " int guestfs_grub_install (guestfs_h *g,\n"
6660 "\t\tconst char *root,\n"
6661 "\t\tconst char *device);\n"
6662 "\n"
6663 msgstr ""
6664
6665 # type: textblock
6666 #: ../src/guestfs-actions.pod:1808 ../fish/guestfish-actions.pod:1435
6667 msgid ""
6668 "This command installs GRUB (the Grand Unified Bootloader) on C<device>, with "
6669 "the root directory being C<root>."
6670 msgstr ""
6671
6672 # type: textblock
6673 #: ../src/guestfs-actions.pod:1811 ../fish/guestfish-actions.pod:1438
6674 msgid ""
6675 "Note: If grub-install reports the error \"No suitable drive was found in the "
6676 "generated device map.\" it may be that you need to create a "
6677 "C</boot/grub/device.map> file first that contains the mapping between grub "
6678 "device names and Linux device names.  It is usually sufficient to create a "
6679 "file containing:"
6680 msgstr ""
6681
6682 # type: verbatim
6683 #: ../src/guestfs-actions.pod:1818 ../fish/guestfish-actions.pod:1445
6684 #, no-wrap
6685 msgid ""
6686 " (hd0) /dev/vda\n"
6687 "\n"
6688 msgstr ""
6689
6690 # type: textblock
6691 #: ../src/guestfs-actions.pod:1820 ../fish/guestfish-actions.pod:1447
6692 msgid "replacing C</dev/vda> with the name of the installation device."
6693 msgstr ""
6694
6695 # type: =head2
6696 #: ../src/guestfs-actions.pod:1824
6697 msgid "guestfs_head"
6698 msgstr ""
6699
6700 # type: verbatim
6701 #: ../src/guestfs-actions.pod:1826
6702 #, no-wrap
6703 msgid ""
6704 " char **guestfs_head (guestfs_h *g,\n"
6705 "\t\tconst char *path);\n"
6706 "\n"
6707 msgstr ""
6708
6709 # type: textblock
6710 #: ../src/guestfs-actions.pod:1829 ../fish/guestfish-actions.pod:1453
6711 msgid ""
6712 "This command returns up to the first 10 lines of a file as a list of "
6713 "strings."
6714 msgstr ""
6715
6716 # type: =head2
6717 #: ../src/guestfs-actions.pod:1839
6718 msgid "guestfs_head_n"
6719 msgstr ""
6720
6721 # type: verbatim
6722 #: ../src/guestfs-actions.pod:1841
6723 #, no-wrap
6724 msgid ""
6725 " char **guestfs_head_n (guestfs_h *g,\n"
6726 "\t\tint nrlines,\n"
6727 "\t\tconst char *path);\n"
6728 "\n"
6729 msgstr ""
6730
6731 # type: textblock
6732 #: ../src/guestfs-actions.pod:1845 ../fish/guestfish-actions.pod:1463
6733 msgid ""
6734 "If the parameter C<nrlines> is a positive number, this returns the first "
6735 "C<nrlines> lines of the file C<path>."
6736 msgstr ""
6737
6738 # type: textblock
6739 #: ../src/guestfs-actions.pod:1848 ../fish/guestfish-actions.pod:1466
6740 msgid ""
6741 "If the parameter C<nrlines> is a negative number, this returns lines from "
6742 "the file C<path>, excluding the last C<nrlines> lines."
6743 msgstr ""
6744
6745 # type: textblock
6746 #: ../src/guestfs-actions.pod:1851 ../src/guestfs-actions.pod:4873 ../fish/guestfish-actions.pod:1469 ../fish/guestfish-actions.pod:3788
6747 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
6748 msgstr ""
6749
6750 # type: =head2
6751 #: ../src/guestfs-actions.pod:1860
6752 msgid "guestfs_hexdump"
6753 msgstr ""
6754
6755 # type: verbatim
6756 #: ../src/guestfs-actions.pod:1862
6757 #, no-wrap
6758 msgid ""
6759 " char *guestfs_hexdump (guestfs_h *g,\n"
6760 "\t\tconst char *path);\n"
6761 "\n"
6762 msgstr ""
6763
6764 # type: textblock
6765 #: ../src/guestfs-actions.pod:1865 ../fish/guestfish-actions.pod:1478
6766 msgid ""
6767 "This runs C<hexdump -C> on the given C<path>.  The result is the "
6768 "human-readable, canonical hex dump of the file."
6769 msgstr ""
6770
6771 # type: =head2
6772 #: ../src/guestfs-actions.pod:1874
6773 msgid "guestfs_initrd_cat"
6774 msgstr ""
6775
6776 # type: verbatim
6777 #: ../src/guestfs-actions.pod:1876
6778 #, no-wrap
6779 msgid ""
6780 " char *guestfs_initrd_cat (guestfs_h *g,\n"
6781 "\t\tconst char *initrdpath,\n"
6782 "\t\tconst char *filename,\n"
6783 "\t\tsize_t *size_r);\n"
6784 "\n"
6785 msgstr ""
6786
6787 # type: textblock
6788 #: ../src/guestfs-actions.pod:1881 ../fish/guestfish-actions.pod:1488
6789 msgid ""
6790 "This command unpacks the file C<filename> from the initrd file called "
6791 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
6792 "character."
6793 msgstr ""
6794
6795 # type: textblock
6796 #: ../src/guestfs-actions.pod:1885 ../fish/guestfish-actions.pod:1492
6797 msgid ""
6798 "For example, in guestfish you could use the following command to examine the "
6799 "boot script (usually called C</init>)  contained in a Linux initrd or "
6800 "initramfs image:"
6801 msgstr ""
6802
6803 # type: verbatim
6804 #: ../src/guestfs-actions.pod:1889 ../fish/guestfish-actions.pod:1496
6805 #, no-wrap
6806 msgid ""
6807 " initrd-cat /boot/initrd-<version>.img init\n"
6808 "\n"
6809 msgstr ""
6810
6811 # type: textblock
6812 #: ../src/guestfs-actions.pod:1891
6813 msgid "See also C<guestfs_initrd_list>."
6814 msgstr ""
6815
6816 # type: textblock
6817 #: ../src/guestfs-actions.pod:1893 ../src/guestfs-actions.pod:3831 ../src/guestfs-actions.pod:3960
6818 msgid ""
6819 "This function returns a buffer, or NULL on error.  The size of the returned "
6820 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
6821 "after use>."
6822 msgstr ""
6823
6824 # type: =head2
6825 #: ../src/guestfs-actions.pod:1900
6826 msgid "guestfs_initrd_list"
6827 msgstr ""
6828
6829 # type: verbatim
6830 #: ../src/guestfs-actions.pod:1902
6831 #, no-wrap
6832 msgid ""
6833 " char **guestfs_initrd_list (guestfs_h *g,\n"
6834 "\t\tconst char *path);\n"
6835 "\n"
6836 msgstr ""
6837
6838 # type: textblock
6839 #: ../src/guestfs-actions.pod:1905 ../fish/guestfish-actions.pod:1507
6840 msgid "This command lists out files contained in an initrd."
6841 msgstr ""
6842
6843 # type: textblock
6844 #: ../src/guestfs-actions.pod:1907 ../fish/guestfish-actions.pod:1509
6845 msgid ""
6846 "The files are listed without any initial C</> character.  The files are "
6847 "listed in the order they appear (not necessarily alphabetical).  Directory "
6848 "names are listed as separate items."
6849 msgstr ""
6850
6851 # type: textblock
6852 #: ../src/guestfs-actions.pod:1911 ../fish/guestfish-actions.pod:1513
6853 msgid ""
6854 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
6855 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
6856 "files)."
6857 msgstr ""
6858
6859 # type: =head2
6860 #: ../src/guestfs-actions.pod:1919
6861 msgid "guestfs_inotify_add_watch"
6862 msgstr ""
6863
6864 # type: verbatim
6865 #: ../src/guestfs-actions.pod:1921
6866 #, no-wrap
6867 msgid ""
6868 " int64_t guestfs_inotify_add_watch (guestfs_h *g,\n"
6869 "\t\tconst char *path,\n"
6870 "\t\tint mask);\n"
6871 "\n"
6872 msgstr ""
6873
6874 # type: textblock
6875 #: ../src/guestfs-actions.pod:1925 ../fish/guestfish-actions.pod:1521
6876 msgid "Watch C<path> for the events listed in C<mask>."
6877 msgstr ""
6878
6879 # type: textblock
6880 #: ../src/guestfs-actions.pod:1927 ../fish/guestfish-actions.pod:1523
6881 msgid ""
6882 "Note that if C<path> is a directory then events within that directory are "
6883 "watched, but this does I<not> happen recursively (in subdirectories)."
6884 msgstr ""
6885
6886 # type: textblock
6887 #: ../src/guestfs-actions.pod:1931 ../fish/guestfish-actions.pod:1527
6888 msgid ""
6889 "Note for non-C or non-Linux callers: the inotify events are defined by the "
6890 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
6891 msgstr ""
6892
6893 # type: =head2
6894 #: ../src/guestfs-actions.pod:1937
6895 msgid "guestfs_inotify_close"
6896 msgstr ""
6897
6898 # type: verbatim
6899 #: ../src/guestfs-actions.pod:1939
6900 #, no-wrap
6901 msgid ""
6902 " int guestfs_inotify_close (guestfs_h *g);\n"
6903 "\n"
6904 msgstr ""
6905
6906 # type: textblock
6907 #: ../src/guestfs-actions.pod:1941 ../fish/guestfish-actions.pod:1535
6908 msgid ""
6909 "This closes the inotify handle which was previously opened by inotify_init.  "
6910 "It removes all watches, throws away any pending events, and deallocates all "
6911 "resources."
6912 msgstr ""
6913
6914 # type: =head2
6915 #: ../src/guestfs-actions.pod:1947
6916 msgid "guestfs_inotify_files"
6917 msgstr ""
6918
6919 # type: verbatim
6920 #: ../src/guestfs-actions.pod:1949
6921 #, no-wrap
6922 msgid ""
6923 " char **guestfs_inotify_files (guestfs_h *g);\n"
6924 "\n"
6925 msgstr ""
6926
6927 # type: textblock
6928 #: ../src/guestfs-actions.pod:1951
6929 msgid ""
6930 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
6931 "returns a list of pathnames of objects that were touched.  The returned "
6932 "pathnames are sorted and deduplicated."
6933 msgstr ""
6934
6935 # type: =head2
6936 #: ../src/guestfs-actions.pod:1959
6937 msgid "guestfs_inotify_init"
6938 msgstr ""
6939
6940 # type: verbatim
6941 #: ../src/guestfs-actions.pod:1961
6942 #, no-wrap
6943 msgid ""
6944 " int guestfs_inotify_init (guestfs_h *g,\n"
6945 "\t\tint maxevents);\n"
6946 "\n"
6947 msgstr ""
6948
6949 # type: textblock
6950 #: ../src/guestfs-actions.pod:1964 ../fish/guestfish-actions.pod:1551
6951 msgid ""
6952 "This command creates a new inotify handle.  The inotify subsystem can be "
6953 "used to notify events which happen to objects in the guest filesystem."
6954 msgstr ""
6955
6956 # type: textblock
6957 #: ../src/guestfs-actions.pod:1968
6958 msgid ""
6959 "C<maxevents> is the maximum number of events which will be queued up between "
6960 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
6961 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
6962 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
6963 "throws away events, but records the fact that it threw them away by setting "
6964 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
6965 "C<guestfs_inotify_read>)."
6966 msgstr ""
6967
6968 # type: textblock
6969 #: ../src/guestfs-actions.pod:1978
6970 msgid ""
6971 "Before any events are generated, you have to add some watches to the "
6972 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
6973 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
6974 msgstr ""
6975
6976 # type: textblock
6977 #: ../src/guestfs-actions.pod:1984
6978 msgid ""
6979 "Queued up events should be read periodically by calling "
6980 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
6981 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
6982 "often enough then you risk the internal queue overflowing."
6983 msgstr ""
6984
6985 # type: textblock
6986 #: ../src/guestfs-actions.pod:1991
6987 msgid ""
6988 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
6989 "This also removes any watches automatically."
6990 msgstr ""
6991
6992 # type: textblock
6993 #: ../src/guestfs-actions.pod:1995 ../fish/guestfish-actions.pod:1582
6994 msgid ""
6995 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
6996 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
6997 "that there is one global inotify handle per libguestfs instance."
6998 msgstr ""
6999
7000 # type: =head2
7001 #: ../src/guestfs-actions.pod:2002
7002 msgid "guestfs_inotify_read"
7003 msgstr ""
7004
7005 # type: verbatim
7006 #: ../src/guestfs-actions.pod:2004
7007 #, no-wrap
7008 msgid ""
7009 " struct guestfs_inotify_event_list *guestfs_inotify_read (guestfs_h *g);\n"
7010 "\n"
7011 msgstr ""
7012
7013 # type: textblock
7014 #: ../src/guestfs-actions.pod:2006 ../fish/guestfish-actions.pod:1591
7015 msgid ""
7016 "Return the complete queue of events that have happened since the previous "
7017 "read call."
7018 msgstr ""
7019
7020 # type: textblock
7021 #: ../src/guestfs-actions.pod:2009 ../fish/guestfish-actions.pod:1594
7022 msgid "If no events have happened, this returns an empty list."
7023 msgstr ""
7024
7025 # type: textblock
7026 #: ../src/guestfs-actions.pod:2011 ../fish/guestfish-actions.pod:1596
7027 msgid ""
7028 "I<Note>: In order to make sure that all events have been read, you must call "
7029 "this function repeatedly until it returns an empty list.  The reason is that "
7030 "the call will read events up to the maximum appliance-to-host message size "
7031 "and leave remaining events in the queue."
7032 msgstr ""
7033
7034 # type: textblock
7035 #: ../src/guestfs-actions.pod:2017
7036 msgid ""
7037 "This function returns a C<struct guestfs_inotify_event_list *> (see "
7038 "E<lt>guestfs-structs.hE<gt>), or NULL if there was an error.  I<The caller "
7039 "must call C<guestfs_free_inotify_event_list> after use>."
7040 msgstr ""
7041
7042 # type: =head2
7043 #: ../src/guestfs-actions.pod:2022
7044 msgid "guestfs_inotify_rm_watch"
7045 msgstr ""
7046
7047 # type: verbatim
7048 #: ../src/guestfs-actions.pod:2024
7049 #, no-wrap
7050 msgid ""
7051 " int guestfs_inotify_rm_watch (guestfs_h *g,\n"
7052 "\t\tint wd);\n"
7053 "\n"
7054 msgstr ""
7055
7056 # type: textblock
7057 #: ../src/guestfs-actions.pod:2027
7058 msgid ""
7059 "Remove a previously defined inotify watch.  See "
7060 "C<guestfs_inotify_add_watch>."
7061 msgstr ""
7062
7063 # type: =head2
7064 #: ../src/guestfs-actions.pod:2032
7065 msgid "guestfs_inspect_get_arch"
7066 msgstr ""
7067
7068 # type: verbatim
7069 #: ../src/guestfs-actions.pod:2034
7070 #, no-wrap
7071 msgid ""
7072 " char *guestfs_inspect_get_arch (guestfs_h *g,\n"
7073 "\t\tconst char *root);\n"
7074 "\n"
7075 msgstr ""
7076
7077 # type: textblock
7078 #: ../src/guestfs-actions.pod:2037 ../src/guestfs-actions.pod:2057 ../src/guestfs-actions.pod:2107 ../src/guestfs-actions.pod:2130 ../src/guestfs-actions.pod:2154 ../src/guestfs-actions.pod:2172 ../src/guestfs-actions.pod:2202 ../src/guestfs-actions.pod:2223
7079 msgid ""
7080 "This function should only be called with a root device string as returned by "
7081 "C<guestfs_inspect_os>."
7082 msgstr ""
7083
7084 # type: textblock
7085 #: ../src/guestfs-actions.pod:2040
7086 msgid ""
7087 "This returns the architecture of the inspected operating system.  The "
7088 "possible return values are listed under C<guestfs_file_architecture>."
7089 msgstr ""
7090
7091 # type: textblock
7092 #: ../src/guestfs-actions.pod:2044 ../fish/guestfish-actions.pod:1620
7093 msgid ""
7094 "If the architecture could not be determined, then the string C<unknown> is "
7095 "returned."
7096 msgstr ""
7097
7098 # type: textblock
7099 #: ../src/guestfs-actions.pod:2047 ../src/guestfs-actions.pod:2097 ../src/guestfs-actions.pod:2145 ../src/guestfs-actions.pod:2213 ../src/guestfs-actions.pod:2248 ../src/guestfs-actions.pod:2285 ../fish/guestfish-actions.pod:1623 ../fish/guestfish-actions.pod:1669 ../fish/guestfish-actions.pod:1708 ../fish/guestfish-actions.pod:1763 ../fish/guestfish-actions.pod:1794 ../fish/guestfish-actions.pod:1828
7100 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
7101 msgstr ""
7102
7103 # type: =head2
7104 #: ../src/guestfs-actions.pod:2052
7105 msgid "guestfs_inspect_get_distro"
7106 msgstr ""
7107
7108 # type: verbatim
7109 #: ../src/guestfs-actions.pod:2054
7110 #, no-wrap
7111 msgid ""
7112 " char *guestfs_inspect_get_distro (guestfs_h *g,\n"
7113 "\t\tconst char *root);\n"
7114 "\n"
7115 msgstr ""
7116
7117 # type: textblock
7118 #: ../src/guestfs-actions.pod:2060 ../fish/guestfish-actions.pod:1632
7119 msgid "This returns the distro (distribution) of the inspected operating system."
7120 msgstr ""
7121
7122 # type: textblock
7123 #: ../src/guestfs-actions.pod:2063 ../fish/guestfish-actions.pod:1635
7124 msgid "Currently defined distros are:"
7125 msgstr ""
7126
7127 # type: =item
7128 #: ../src/guestfs-actions.pod:2067 ../fish/guestfish-actions.pod:1639
7129 msgid "\"debian\""
7130 msgstr ""
7131
7132 # type: textblock
7133 #: ../src/guestfs-actions.pod:2069 ../fish/guestfish-actions.pod:1641
7134 msgid "Debian or a Debian-derived distro such as Ubuntu."
7135 msgstr ""
7136
7137 # type: =item
7138 #: ../src/guestfs-actions.pod:2071 ../fish/guestfish-actions.pod:1643
7139 msgid "\"fedora\""
7140 msgstr ""
7141
7142 # type: textblock
7143 #: ../src/guestfs-actions.pod:2073 ../fish/guestfish-actions.pod:1645
7144 msgid "Fedora."
7145 msgstr ""
7146
7147 # type: =item
7148 #: ../src/guestfs-actions.pod:2075 ../fish/guestfish-actions.pod:1647
7149 msgid "\"redhat-based\""
7150 msgstr ""
7151
7152 # type: textblock
7153 #: ../src/guestfs-actions.pod:2077 ../fish/guestfish-actions.pod:1649
7154 msgid "Some Red Hat-derived distro."
7155 msgstr ""
7156
7157 # type: =item
7158 #: ../src/guestfs-actions.pod:2079 ../fish/guestfish-actions.pod:1651
7159 msgid "\"rhel\""
7160 msgstr ""
7161
7162 # type: textblock
7163 #: ../src/guestfs-actions.pod:2081 ../fish/guestfish-actions.pod:1653
7164 msgid "Red Hat Enterprise Linux and some derivatives."
7165 msgstr ""
7166
7167 # type: =item
7168 #: ../src/guestfs-actions.pod:2083 ../src/guestfs-actions.pod:2235 ../fish/guestfish-actions.pod:1655 ../fish/guestfish-actions.pod:1781
7169 msgid "\"windows\""
7170 msgstr ""
7171
7172 # type: textblock
7173 #: ../src/guestfs-actions.pod:2085 ../fish/guestfish-actions.pod:1657
7174 msgid ""
7175 "Windows does not have distributions.  This string is returned if the OS type "
7176 "is Windows."
7177 msgstr ""
7178
7179 # type: =item
7180 #: ../src/guestfs-actions.pod:2088 ../src/guestfs-actions.pod:2239 ../fish/guestfish-actions.pod:1660 ../fish/guestfish-actions.pod:1785
7181 msgid "\"unknown\""
7182 msgstr ""
7183
7184 # type: textblock
7185 #: ../src/guestfs-actions.pod:2090 ../fish/guestfish-actions.pod:1662
7186 msgid "The distro could not be determined."
7187 msgstr ""
7188
7189 # type: textblock
7190 #: ../src/guestfs-actions.pod:2094 ../src/guestfs-actions.pod:2245 ../fish/guestfish-actions.pod:1666 ../fish/guestfish-actions.pod:1791
7191 msgid ""
7192 "Future versions of libguestfs may return other strings here.  The caller "
7193 "should be prepared to handle any string."
7194 msgstr ""
7195
7196 # type: =head2
7197 #: ../src/guestfs-actions.pod:2102
7198 msgid "guestfs_inspect_get_filesystems"
7199 msgstr ""
7200
7201 # type: verbatim
7202 #: ../src/guestfs-actions.pod:2104
7203 #, no-wrap
7204 msgid ""
7205 " char **guestfs_inspect_get_filesystems (guestfs_h *g,\n"
7206 "\t\tconst char *root);\n"
7207 "\n"
7208 msgstr ""
7209
7210 # type: textblock
7211 #: ../src/guestfs-actions.pod:2110 ../fish/guestfish-actions.pod:1678
7212 msgid ""
7213 "This returns a list of all the filesystems that we think are associated with "
7214 "this operating system.  This includes the root filesystem, other ordinary "
7215 "filesystems, and non-mounted devices like swap partitions."
7216 msgstr ""
7217
7218 # type: textblock
7219 #: ../src/guestfs-actions.pod:2115 ../fish/guestfish-actions.pod:1683
7220 msgid ""
7221 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
7222 "to be shared between operating systems."
7223 msgstr ""
7224
7225 # type: textblock
7226 #: ../src/guestfs-actions.pod:2118
7227 msgid ""
7228 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
7229 "C<guestfs_inspect_get_mountpoints>."
7230 msgstr ""
7231
7232 # type: =head2
7233 #: ../src/guestfs-actions.pod:2125
7234 msgid "guestfs_inspect_get_major_version"
7235 msgstr ""
7236
7237 # type: verbatim
7238 #: ../src/guestfs-actions.pod:2127
7239 #, no-wrap
7240 msgid ""
7241 " int guestfs_inspect_get_major_version (guestfs_h *g,\n"
7242 "\t\tconst char *root);\n"
7243 "\n"
7244 msgstr ""
7245
7246 # type: textblock
7247 #: ../src/guestfs-actions.pod:2133 ../fish/guestfish-actions.pod:1696
7248 msgid "This returns the major version number of the inspected operating system."
7249 msgstr ""
7250
7251 # type: textblock
7252 #: ../src/guestfs-actions.pod:2136 ../fish/guestfish-actions.pod:1699
7253 msgid ""
7254 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
7255 "popular public names used by the operating system.  Notably the operating "
7256 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
7257 "1).  You can find out the real versions corresponding to releases of Windows "
7258 "by consulting Wikipedia or MSDN."
7259 msgstr ""
7260
7261 # type: textblock
7262 #: ../src/guestfs-actions.pod:2143 ../src/guestfs-actions.pod:2160 ../fish/guestfish-actions.pod:1706 ../fish/guestfish-actions.pod:1720
7263 msgid "If the version could not be determined, then C<0> is returned."
7264 msgstr ""
7265
7266 # type: =head2
7267 #: ../src/guestfs-actions.pod:2149
7268 msgid "guestfs_inspect_get_minor_version"
7269 msgstr ""
7270
7271 # type: verbatim
7272 #: ../src/guestfs-actions.pod:2151
7273 #, no-wrap
7274 msgid ""
7275 " int guestfs_inspect_get_minor_version (guestfs_h *g,\n"
7276 "\t\tconst char *root);\n"
7277 "\n"
7278 msgstr ""
7279
7280 # type: textblock
7281 #: ../src/guestfs-actions.pod:2157 ../fish/guestfish-actions.pod:1717
7282 msgid "This returns the minor version number of the inspected operating system."
7283 msgstr ""
7284
7285 # type: textblock
7286 #: ../src/guestfs-actions.pod:2162
7287 msgid ""
7288 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
7289 "C<guestfs_inspect_get_major_version>."
7290 msgstr ""
7291
7292 # type: =head2
7293 #: ../src/guestfs-actions.pod:2167
7294 msgid "guestfs_inspect_get_mountpoints"
7295 msgstr ""
7296
7297 # type: verbatim
7298 #: ../src/guestfs-actions.pod:2169
7299 #, no-wrap
7300 msgid ""
7301 " char **guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
7302 "\t\tconst char *root);\n"
7303 "\n"
7304 msgstr ""
7305
7306 # type: textblock
7307 #: ../src/guestfs-actions.pod:2175 ../fish/guestfish-actions.pod:1732
7308 msgid ""
7309 "This returns a hash of where we think the filesystems associated with this "
7310 "operating system should be mounted.  Callers should note that this is at "
7311 "best an educated guess made by reading configuration files such as "
7312 "C</etc/fstab>."
7313 msgstr ""
7314
7315 # type: textblock
7316 #: ../src/guestfs-actions.pod:2180 ../fish/guestfish-actions.pod:1737
7317 msgid ""
7318 "Each element in the returned hashtable has a key which is the path of the "
7319 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
7320 "mounted there (eg. C</dev/sda1>)."
7321 msgstr ""
7322
7323 # type: textblock
7324 #: ../src/guestfs-actions.pod:2185 ../fish/guestfish-actions.pod:1742
7325 msgid "Non-mounted devices such as swap devices are I<not> returned in this list."
7326 msgstr ""
7327
7328 # type: textblock
7329 #: ../src/guestfs-actions.pod:2188
7330 msgid ""
7331 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
7332 "C<guestfs_inspect_get_filesystems>."
7333 msgstr ""
7334
7335 # type: textblock
7336 #: ../src/guestfs-actions.pod:2191 ../src/guestfs-actions.pod:2531 ../src/guestfs-actions.pod:3453 ../src/guestfs-actions.pod:4990
7337 msgid ""
7338 "This function returns a NULL-terminated array of strings, or NULL if there "
7339 "was an error.  The array of strings will always have length C<2n+1>, where "
7340 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
7341 "caller must free the strings and the array after use>."
7342 msgstr ""
7343
7344 # type: =head2
7345 #: ../src/guestfs-actions.pod:2197
7346 msgid "guestfs_inspect_get_product_name"
7347 msgstr ""
7348
7349 # type: verbatim
7350 #: ../src/guestfs-actions.pod:2199
7351 #, no-wrap
7352 msgid ""
7353 " char *guestfs_inspect_get_product_name (guestfs_h *g,\n"
7354 "\t\tconst char *root);\n"
7355 "\n"
7356 msgstr ""
7357
7358 # type: textblock
7359 #: ../src/guestfs-actions.pod:2205 ../fish/guestfish-actions.pod:1755
7360 msgid ""
7361 "This returns the product name of the inspected operating system.  The "
7362 "product name is generally some freeform string which can be displayed to the "
7363 "user, but should not be parsed by programs."
7364 msgstr ""
7365
7366 # type: textblock
7367 #: ../src/guestfs-actions.pod:2210 ../fish/guestfish-actions.pod:1760
7368 msgid ""
7369 "If the product name could not be determined, then the string C<unknown> is "
7370 "returned."
7371 msgstr ""
7372
7373 # type: =head2
7374 #: ../src/guestfs-actions.pod:2218
7375 msgid "guestfs_inspect_get_type"
7376 msgstr ""
7377
7378 # type: verbatim
7379 #: ../src/guestfs-actions.pod:2220
7380 #, no-wrap
7381 msgid ""
7382 " char *guestfs_inspect_get_type (guestfs_h *g,\n"
7383 "\t\tconst char *root);\n"
7384 "\n"
7385 msgstr ""
7386
7387 # type: textblock
7388 #: ../src/guestfs-actions.pod:2226 ../fish/guestfish-actions.pod:1772
7389 msgid ""
7390 "This returns the type of the inspected operating system.  Currently defined "
7391 "types are:"
7392 msgstr ""
7393
7394 # type: =item
7395 #: ../src/guestfs-actions.pod:2231 ../fish/guestfish-actions.pod:1777
7396 msgid "\"linux\""
7397 msgstr ""
7398
7399 # type: textblock
7400 #: ../src/guestfs-actions.pod:2233 ../fish/guestfish-actions.pod:1779
7401 msgid "Any Linux-based operating system."
7402 msgstr ""
7403
7404 # type: textblock
7405 #: ../src/guestfs-actions.pod:2237 ../fish/guestfish-actions.pod:1783
7406 msgid "Any Microsoft Windows operating system."
7407 msgstr ""
7408
7409 # type: textblock
7410 #: ../src/guestfs-actions.pod:2241 ../fish/guestfish-actions.pod:1787
7411 msgid "The operating system type could not be determined."
7412 msgstr ""
7413
7414 # type: =head2
7415 #: ../src/guestfs-actions.pod:2253
7416 msgid "guestfs_inspect_os"
7417 msgstr ""
7418
7419 # type: verbatim
7420 #: ../src/guestfs-actions.pod:2255
7421 #, no-wrap
7422 msgid ""
7423 " char **guestfs_inspect_os (guestfs_h *g);\n"
7424 "\n"
7425 msgstr ""
7426
7427 # type: textblock
7428 #: ../src/guestfs-actions.pod:2257 ../fish/guestfish-actions.pod:1800
7429 msgid ""
7430 "This function uses other libguestfs functions and certain heuristics to "
7431 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
7432 "for operating systems."
7433 msgstr ""
7434
7435 # type: textblock
7436 #: ../src/guestfs-actions.pod:2261 ../fish/guestfish-actions.pod:1804
7437 msgid "The list returned is empty if no operating systems were found."
7438 msgstr ""
7439
7440 # type: textblock
7441 #: ../src/guestfs-actions.pod:2263 ../fish/guestfish-actions.pod:1806
7442 msgid ""
7443 "If one operating system was found, then this returns a list with a single "
7444 "element, which is the name of the root filesystem of this operating system.  "
7445 "It is also possible for this function to return a list containing more than "
7446 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
7447 "element being the root filesystem of one of the operating systems."
7448 msgstr ""
7449
7450 # type: textblock
7451 #: ../src/guestfs-actions.pod:2270
7452 msgid ""
7453 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
7454 "functions in order to query further information about each operating system, "
7455 "such as the name and version."
7456 msgstr ""
7457
7458 # type: textblock
7459 #: ../src/guestfs-actions.pod:2275
7460 msgid ""
7461 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
7462 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
7463 "the contents.  This should be called with no disks currently mounted.  The "
7464 "function may also use Augeas, so any existing Augeas handle will be closed."
7465 msgstr ""
7466
7467 # type: textblock
7468 #: ../src/guestfs-actions.pod:2281 ../fish/guestfish-actions.pod:1824
7469 msgid ""
7470 "This function cannot decrypt encrypted disks.  The caller must do that first "
7471 "(supplying the necessary keys) if the disk is encrypted."
7472 msgstr ""
7473
7474 # type: textblock
7475 #: ../src/guestfs-actions.pod:2287 ../src/guestfs-actions.pod:2492 ../src/guestfs-actions.pod:2548
7476 msgid "See also C<guestfs_list_filesystems>."
7477 msgstr ""
7478
7479 # type: =head2
7480 #: ../src/guestfs-actions.pod:2293
7481 msgid "guestfs_is_blockdev"
7482 msgstr ""
7483
7484 # type: verbatim
7485 #: ../src/guestfs-actions.pod:2295
7486 #, no-wrap
7487 msgid ""
7488 " int guestfs_is_blockdev (guestfs_h *g,\n"
7489 "\t\tconst char *path);\n"
7490 "\n"
7491 msgstr ""
7492
7493 # type: textblock
7494 #: ../src/guestfs-actions.pod:2298 ../fish/guestfish-actions.pod:1836
7495 msgid ""
7496 "This returns C<true> if and only if there is a block device with the given "
7497 "C<path> name."
7498 msgstr ""
7499
7500 # type: textblock
7501 #: ../src/guestfs-actions.pod:2301 ../src/guestfs-actions.pod:2324 ../src/guestfs-actions.pod:2348 ../src/guestfs-actions.pod:2360 ../src/guestfs-actions.pod:2373 ../src/guestfs-actions.pod:2417 ../src/guestfs-actions.pod:2429
7502 msgid "See also C<guestfs_stat>."
7503 msgstr ""
7504
7505 # type: =head2
7506 #: ../src/guestfs-actions.pod:2305
7507 msgid "guestfs_is_busy"
7508 msgstr ""
7509
7510 # type: verbatim
7511 #: ../src/guestfs-actions.pod:2307
7512 #, no-wrap
7513 msgid ""
7514 " int guestfs_is_busy (guestfs_h *g);\n"
7515 "\n"
7516 msgstr ""
7517
7518 # type: textblock
7519 #: ../src/guestfs-actions.pod:2309 ../fish/guestfish-actions.pod:1845
7520 msgid ""
7521 "This returns true iff this handle is busy processing a command (in the "
7522 "C<BUSY> state)."
7523 msgstr ""
7524
7525 # type: =head2
7526 #: ../src/guestfs-actions.pod:2316
7527 msgid "guestfs_is_chardev"
7528 msgstr ""
7529
7530 # type: verbatim
7531 #: ../src/guestfs-actions.pod:2318
7532 #, no-wrap
7533 msgid ""
7534 " int guestfs_is_chardev (guestfs_h *g,\n"
7535 "\t\tconst char *path);\n"
7536 "\n"
7537 msgstr ""
7538
7539 # type: textblock
7540 #: ../src/guestfs-actions.pod:2321 ../fish/guestfish-actions.pod:1854
7541 msgid ""
7542 "This returns C<true> if and only if there is a character device with the "
7543 "given C<path> name."
7544 msgstr ""
7545
7546 # type: =head2
7547 #: ../src/guestfs-actions.pod:2328
7548 msgid "guestfs_is_config"
7549 msgstr ""
7550
7551 # type: verbatim
7552 #: ../src/guestfs-actions.pod:2330
7553 #, no-wrap
7554 msgid ""
7555 " int guestfs_is_config (guestfs_h *g);\n"
7556 "\n"
7557 msgstr ""
7558
7559 # type: textblock
7560 #: ../src/guestfs-actions.pod:2332 ../fish/guestfish-actions.pod:1863
7561 msgid ""
7562 "This returns true iff this handle is being configured (in the C<CONFIG> "
7563 "state)."
7564 msgstr ""
7565
7566 # type: =head2
7567 #: ../src/guestfs-actions.pod:2339
7568 msgid "guestfs_is_dir"
7569 msgstr ""
7570
7571 # type: verbatim
7572 #: ../src/guestfs-actions.pod:2341
7573 #, no-wrap
7574 msgid ""
7575 " int guestfs_is_dir (guestfs_h *g,\n"
7576 "\t\tconst char *path);\n"
7577 "\n"
7578 msgstr ""
7579
7580 # type: textblock
7581 #: ../src/guestfs-actions.pod:2344 ../fish/guestfish-actions.pod:1872
7582 msgid ""
7583 "This returns C<true> if and only if there is a directory with the given "
7584 "C<path> name.  Note that it returns false for other objects like files."
7585 msgstr ""
7586
7587 # type: =head2
7588 #: ../src/guestfs-actions.pod:2352
7589 msgid "guestfs_is_fifo"
7590 msgstr ""
7591
7592 # type: verbatim
7593 #: ../src/guestfs-actions.pod:2354
7594 #, no-wrap
7595 msgid ""
7596 " int guestfs_is_fifo (guestfs_h *g,\n"
7597 "\t\tconst char *path);\n"
7598 "\n"
7599 msgstr ""
7600
7601 # type: textblock
7602 #: ../src/guestfs-actions.pod:2357 ../fish/guestfish-actions.pod:1882
7603 msgid ""
7604 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
7605 "given C<path> name."
7606 msgstr ""
7607
7608 # type: =head2
7609 #: ../src/guestfs-actions.pod:2364
7610 msgid "guestfs_is_file"
7611 msgstr ""
7612
7613 # type: verbatim
7614 #: ../src/guestfs-actions.pod:2366
7615 #, no-wrap
7616 msgid ""
7617 " int guestfs_is_file (guestfs_h *g,\n"
7618 "\t\tconst char *path);\n"
7619 "\n"
7620 msgstr ""
7621
7622 # type: textblock
7623 #: ../src/guestfs-actions.pod:2369 ../fish/guestfish-actions.pod:1891
7624 msgid ""
7625 "This returns C<true> if and only if there is a regular file with the given "
7626 "C<path> name.  Note that it returns false for other objects like "
7627 "directories."
7628 msgstr ""
7629
7630 # type: =head2
7631 #: ../src/guestfs-actions.pod:2377
7632 msgid "guestfs_is_launching"
7633 msgstr ""
7634
7635 # type: verbatim
7636 #: ../src/guestfs-actions.pod:2379
7637 #, no-wrap
7638 msgid ""
7639 " int guestfs_is_launching (guestfs_h *g);\n"
7640 "\n"
7641 msgstr ""
7642
7643 # type: textblock
7644 #: ../src/guestfs-actions.pod:2381 ../fish/guestfish-actions.pod:1901
7645 msgid ""
7646 "This returns true iff this handle is launching the subprocess (in the "
7647 "C<LAUNCHING> state)."
7648 msgstr ""
7649
7650 # type: =head2
7651 #: ../src/guestfs-actions.pod:2388
7652 msgid "guestfs_is_lv"
7653 msgstr ""
7654
7655 # type: verbatim
7656 #: ../src/guestfs-actions.pod:2390
7657 #, no-wrap
7658 msgid ""
7659 " int guestfs_is_lv (guestfs_h *g,\n"
7660 "\t\tconst char *device);\n"
7661 "\n"
7662 msgstr ""
7663
7664 # type: textblock
7665 #: ../src/guestfs-actions.pod:2393 ../fish/guestfish-actions.pod:1910
7666 msgid ""
7667 "This command tests whether C<device> is a logical volume, and returns true "
7668 "iff this is the case."
7669 msgstr ""
7670
7671 # type: =head2
7672 #: ../src/guestfs-actions.pod:2398
7673 msgid "guestfs_is_ready"
7674 msgstr ""
7675
7676 # type: verbatim
7677 #: ../src/guestfs-actions.pod:2400
7678 #, no-wrap
7679 msgid ""
7680 " int guestfs_is_ready (guestfs_h *g);\n"
7681 "\n"
7682 msgstr ""
7683
7684 # type: textblock
7685 #: ../src/guestfs-actions.pod:2402 ../fish/guestfish-actions.pod:1917
7686 msgid ""
7687 "This returns true iff this handle is ready to accept commands (in the "
7688 "C<READY> state)."
7689 msgstr ""
7690
7691 # type: =head2
7692 #: ../src/guestfs-actions.pod:2409
7693 msgid "guestfs_is_socket"
7694 msgstr ""
7695
7696 # type: verbatim
7697 #: ../src/guestfs-actions.pod:2411
7698 #, no-wrap
7699 msgid ""
7700 " int guestfs_is_socket (guestfs_h *g,\n"
7701 "\t\tconst char *path);\n"
7702 "\n"
7703 msgstr ""
7704
7705 # type: textblock
7706 #: ../src/guestfs-actions.pod:2414 ../fish/guestfish-actions.pod:1926
7707 msgid ""
7708 "This returns C<true> if and only if there is a Unix domain socket with the "
7709 "given C<path> name."
7710 msgstr ""
7711
7712 # type: =head2
7713 #: ../src/guestfs-actions.pod:2421
7714 msgid "guestfs_is_symlink"
7715 msgstr ""
7716
7717 # type: verbatim
7718 #: ../src/guestfs-actions.pod:2423
7719 #, no-wrap
7720 msgid ""
7721 " int guestfs_is_symlink (guestfs_h *g,\n"
7722 "\t\tconst char *path);\n"
7723 "\n"
7724 msgstr ""
7725
7726 # type: textblock
7727 #: ../src/guestfs-actions.pod:2426 ../fish/guestfish-actions.pod:1935
7728 msgid ""
7729 "This returns C<true> if and only if there is a symbolic link with the given "
7730 "C<path> name."
7731 msgstr ""
7732
7733 # type: =head2
7734 #: ../src/guestfs-actions.pod:2433
7735 msgid "guestfs_kill_subprocess"
7736 msgstr ""
7737
7738 # type: verbatim
7739 #: ../src/guestfs-actions.pod:2435
7740 #, no-wrap
7741 msgid ""
7742 " int guestfs_kill_subprocess (guestfs_h *g);\n"
7743 "\n"
7744 msgstr ""
7745
7746 # type: textblock
7747 #: ../src/guestfs-actions.pod:2437 ../fish/guestfish-actions.pod:1944
7748 msgid "This kills the qemu subprocess.  You should never need to call this."
7749 msgstr ""
7750
7751 # type: =head2
7752 #: ../src/guestfs-actions.pod:2441
7753 msgid "guestfs_launch"
7754 msgstr ""
7755
7756 # type: verbatim
7757 #: ../src/guestfs-actions.pod:2443
7758 #, no-wrap
7759 msgid ""
7760 " int guestfs_launch (guestfs_h *g);\n"
7761 "\n"
7762 msgstr ""
7763
7764 # type: textblock
7765 #: ../src/guestfs-actions.pod:2445 ../fish/guestfish-actions.pod:1952
7766 msgid ""
7767 "Internally libguestfs is implemented by running a virtual machine using "
7768 "L<qemu(1)>."
7769 msgstr ""
7770
7771 # type: textblock
7772 #: ../src/guestfs-actions.pod:2448 ../fish/guestfish-actions.pod:1955
7773 msgid ""
7774 "You should call this after configuring the handle (eg. adding drives) but "
7775 "before performing any actions."
7776 msgstr ""
7777
7778 # type: =head2
7779 #: ../src/guestfs-actions.pod:2453
7780 msgid "guestfs_lchown"
7781 msgstr ""
7782
7783 # type: verbatim
7784 #: ../src/guestfs-actions.pod:2455
7785 #, no-wrap
7786 msgid ""
7787 " int guestfs_lchown (guestfs_h *g,\n"
7788 "\t\tint owner,\n"
7789 "\t\tint group,\n"
7790 "\t\tconst char *path);\n"
7791 "\n"
7792 msgstr ""
7793
7794 # type: textblock
7795 #: ../src/guestfs-actions.pod:2460
7796 msgid ""
7797 "Change the file owner to C<owner> and group to C<group>.  This is like "
7798 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
7799 "changed, not the target."
7800 msgstr ""
7801
7802 # type: =head2
7803 #: ../src/guestfs-actions.pod:2470
7804 msgid "guestfs_lgetxattrs"
7805 msgstr ""
7806
7807 # type: verbatim
7808 #: ../src/guestfs-actions.pod:2472
7809 #, no-wrap
7810 msgid ""
7811 " struct guestfs_xattr_list *guestfs_lgetxattrs (guestfs_h *g,\n"
7812 "\t\tconst char *path);\n"
7813 "\n"
7814 msgstr ""
7815
7816 # type: textblock
7817 #: ../src/guestfs-actions.pod:2475
7818 msgid ""
7819 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
7820 "then it returns the extended attributes of the link itself."
7821 msgstr ""
7822
7823 # type: =head2
7824 #: ../src/guestfs-actions.pod:2484
7825 msgid "guestfs_list_devices"
7826 msgstr ""
7827
7828 # type: verbatim
7829 #: ../src/guestfs-actions.pod:2486
7830 #, no-wrap
7831 msgid ""
7832 " char **guestfs_list_devices (guestfs_h *g);\n"
7833 "\n"
7834 msgstr ""
7835
7836 # type: textblock
7837 #: ../src/guestfs-actions.pod:2488 ../fish/guestfish-actions.pod:1982
7838 msgid "List all the block devices."
7839 msgstr ""
7840
7841 # type: textblock
7842 #: ../src/guestfs-actions.pod:2490 ../fish/guestfish-actions.pod:1984
7843 msgid "The full block device names are returned, eg. C</dev/sda>."
7844 msgstr ""
7845
7846 # type: =head2
7847 #: ../src/guestfs-actions.pod:2498
7848 msgid "guestfs_list_filesystems"
7849 msgstr ""
7850
7851 # type: verbatim
7852 #: ../src/guestfs-actions.pod:2500
7853 #, no-wrap
7854 msgid ""
7855 " char **guestfs_list_filesystems (guestfs_h *g);\n"
7856 "\n"
7857 msgstr ""
7858
7859 # type: textblock
7860 #: ../src/guestfs-actions.pod:2502 ../fish/guestfish-actions.pod:1992
7861 msgid ""
7862 "This inspection command looks for filesystems on partitions, block devices "
7863 "and logical volumes, returning a list of devices containing filesystems and "
7864 "their type."
7865 msgstr ""
7866
7867 # type: textblock
7868 #: ../src/guestfs-actions.pod:2506 ../fish/guestfish-actions.pod:1996
7869 msgid ""
7870 "The return value is a hash, where the keys are the devices containing "
7871 "filesystems, and the values are the filesystem types.  For example:"
7872 msgstr ""
7873
7874 # type: verbatim
7875 #: ../src/guestfs-actions.pod:2510 ../fish/guestfish-actions.pod:2000
7876 #, no-wrap
7877 msgid ""
7878 " \"/dev/sda1\" => \"ntfs\"\n"
7879 " \"/dev/sda2\" => \"ext2\"\n"
7880 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
7881 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
7882 "\n"
7883 msgstr ""
7884
7885 # type: textblock
7886 #: ../src/guestfs-actions.pod:2515 ../fish/guestfish-actions.pod:2005
7887 msgid ""
7888 "The value can have the special value \"unknown\", meaning the content of the "
7889 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
7890 msgstr ""
7891
7892 # type: textblock
7893 #: ../src/guestfs-actions.pod:2519
7894 msgid ""
7895 "This command runs other libguestfs commands, which might include "
7896 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
7897 "soon after launch and only when nothing is mounted."
7898 msgstr ""
7899
7900 # type: textblock
7901 #: ../src/guestfs-actions.pod:2523
7902 msgid ""
7903 "Not all of the filesystems returned will be mountable.  In particular, swap "
7904 "partitions are returned in the list.  Also this command does not check that "
7905 "each filesystem found is valid and mountable, and some filesystems might be "
7906 "mountable but require special options.  Filesystems may not all belong to a "
7907 "single logical operating system (use C<guestfs_inspect_os> to look for "
7908 "OSes)."
7909 msgstr ""
7910
7911 # type: =head2
7912 #: ../src/guestfs-actions.pod:2537
7913 msgid "guestfs_list_partitions"
7914 msgstr ""
7915
7916 # type: verbatim
7917 #: ../src/guestfs-actions.pod:2539
7918 #, no-wrap
7919 msgid ""
7920 " char **guestfs_list_partitions (guestfs_h *g);\n"
7921 "\n"
7922 msgstr ""
7923
7924 # type: textblock
7925 #: ../src/guestfs-actions.pod:2541 ../fish/guestfish-actions.pod:2025
7926 msgid "List all the partitions detected on all block devices."
7927 msgstr ""
7928
7929 # type: textblock
7930 #: ../src/guestfs-actions.pod:2543 ../fish/guestfish-actions.pod:2027
7931 msgid "The full partition device names are returned, eg. C</dev/sda1>"
7932 msgstr ""
7933
7934 # type: textblock
7935 #: ../src/guestfs-actions.pod:2545
7936 msgid ""
7937 "This does not return logical volumes.  For that you will need to call "
7938 "C<guestfs_lvs>."
7939 msgstr ""
7940
7941 # type: =head2
7942 #: ../src/guestfs-actions.pod:2554
7943 msgid "guestfs_ll"
7944 msgstr ""
7945
7946 # type: verbatim
7947 #: ../src/guestfs-actions.pod:2556
7948 #, no-wrap
7949 msgid ""
7950 " char *guestfs_ll (guestfs_h *g,\n"
7951 "\t\tconst char *directory);\n"
7952 "\n"
7953 msgstr ""
7954
7955 # type: textblock
7956 #: ../src/guestfs-actions.pod:2559 ../fish/guestfish-actions.pod:2038
7957 msgid ""
7958 "List the files in C<directory> (relative to the root directory, there is no "
7959 "cwd) in the format of 'ls -la'."
7960 msgstr ""
7961
7962 # type: textblock
7963 #: ../src/guestfs-actions.pod:2562 ../fish/guestfish-actions.pod:2041
7964 msgid ""
7965 "This command is mostly useful for interactive sessions.  It is I<not> "
7966 "intended that you try to parse the output string."
7967 msgstr ""
7968
7969 # type: =head2
7970 #: ../src/guestfs-actions.pod:2568
7971 msgid "guestfs_ln"
7972 msgstr ""
7973
7974 # type: verbatim
7975 #: ../src/guestfs-actions.pod:2570
7976 #, no-wrap
7977 msgid ""
7978 " int guestfs_ln (guestfs_h *g,\n"
7979 "\t\tconst char *target,\n"
7980 "\t\tconst char *linkname);\n"
7981 "\n"
7982 msgstr ""
7983
7984 # type: textblock
7985 #: ../src/guestfs-actions.pod:2574 ../fish/guestfish-actions.pod:2048
7986 msgid "This command creates a hard link using the C<ln> command."
7987 msgstr ""
7988
7989 # type: =head2
7990 #: ../src/guestfs-actions.pod:2578
7991 msgid "guestfs_ln_f"
7992 msgstr ""
7993
7994 # type: verbatim
7995 #: ../src/guestfs-actions.pod:2580
7996 #, no-wrap
7997 msgid ""
7998 " int guestfs_ln_f (guestfs_h *g,\n"
7999 "\t\tconst char *target,\n"
8000 "\t\tconst char *linkname);\n"
8001 "\n"
8002 msgstr ""
8003
8004 # type: textblock
8005 #: ../src/guestfs-actions.pod:2584 ../fish/guestfish-actions.pod:2054
8006 msgid ""
8007 "This command creates a hard link using the C<ln -f> command.  The C<-f> "
8008 "option removes the link (C<linkname>) if it exists already."
8009 msgstr ""
8010
8011 # type: =head2
8012 #: ../src/guestfs-actions.pod:2589
8013 msgid "guestfs_ln_s"
8014 msgstr ""
8015
8016 # type: verbatim
8017 #: ../src/guestfs-actions.pod:2591
8018 #, no-wrap
8019 msgid ""
8020 " int guestfs_ln_s (guestfs_h *g,\n"
8021 "\t\tconst char *target,\n"
8022 "\t\tconst char *linkname);\n"
8023 "\n"
8024 msgstr ""
8025
8026 # type: textblock
8027 #: ../src/guestfs-actions.pod:2595 ../fish/guestfish-actions.pod:2061
8028 msgid "This command creates a symbolic link using the C<ln -s> command."
8029 msgstr ""
8030
8031 # type: =head2
8032 #: ../src/guestfs-actions.pod:2599
8033 msgid "guestfs_ln_sf"
8034 msgstr ""
8035
8036 # type: verbatim
8037 #: ../src/guestfs-actions.pod:2601
8038 #, no-wrap
8039 msgid ""
8040 " int guestfs_ln_sf (guestfs_h *g,\n"
8041 "\t\tconst char *target,\n"
8042 "\t\tconst char *linkname);\n"
8043 "\n"
8044 msgstr ""
8045
8046 # type: textblock
8047 #: ../src/guestfs-actions.pod:2605 ../fish/guestfish-actions.pod:2067
8048 msgid ""
8049 "This command creates a symbolic link using the C<ln -sf> command, The C<-f> "
8050 "option removes the link (C<linkname>) if it exists already."
8051 msgstr ""
8052
8053 # type: =head2
8054 #: ../src/guestfs-actions.pod:2610
8055 msgid "guestfs_lremovexattr"
8056 msgstr ""
8057
8058 # type: verbatim
8059 #: ../src/guestfs-actions.pod:2612
8060 #, no-wrap
8061 msgid ""
8062 " int guestfs_lremovexattr (guestfs_h *g,\n"
8063 "\t\tconst char *xattr,\n"
8064 "\t\tconst char *path);\n"
8065 "\n"
8066 msgstr ""
8067
8068 # type: textblock
8069 #: ../src/guestfs-actions.pod:2616
8070 msgid ""
8071 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
8072 "link, then it removes an extended attribute of the link itself."
8073 msgstr ""
8074
8075 # type: =head2
8076 #: ../src/guestfs-actions.pod:2622
8077 msgid "guestfs_ls"
8078 msgstr ""
8079
8080 # type: verbatim
8081 #: ../src/guestfs-actions.pod:2624
8082 #, no-wrap
8083 msgid ""
8084 " char **guestfs_ls (guestfs_h *g,\n"
8085 "\t\tconst char *directory);\n"
8086 "\n"
8087 msgstr ""
8088
8089 # type: textblock
8090 #: ../src/guestfs-actions.pod:2627 ../fish/guestfish-actions.pod:2082
8091 msgid ""
8092 "List the files in C<directory> (relative to the root directory, there is no "
8093 "cwd).  The '.' and '..' entries are not returned, but hidden files are "
8094 "shown."
8095 msgstr ""
8096
8097 # type: textblock
8098 #: ../src/guestfs-actions.pod:2631
8099 msgid ""
8100 "This command is mostly useful for interactive sessions.  Programs should "
8101 "probably use C<guestfs_readdir> instead."
8102 msgstr ""
8103
8104 # type: =head2
8105 #: ../src/guestfs-actions.pod:2638
8106 msgid "guestfs_lsetxattr"
8107 msgstr ""
8108
8109 # type: verbatim
8110 #: ../src/guestfs-actions.pod:2640
8111 #, no-wrap
8112 msgid ""
8113 " int guestfs_lsetxattr (guestfs_h *g,\n"
8114 "\t\tconst char *xattr,\n"
8115 "\t\tconst char *val,\n"
8116 "\t\tint vallen,\n"
8117 "\t\tconst char *path);\n"
8118 "\n"
8119 msgstr ""
8120
8121 # type: textblock
8122 #: ../src/guestfs-actions.pod:2646
8123 msgid ""
8124 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
8125 "then it sets an extended attribute of the link itself."
8126 msgstr ""
8127
8128 # type: =head2
8129 #: ../src/guestfs-actions.pod:2652
8130 msgid "guestfs_lstat"
8131 msgstr ""
8132
8133 # type: verbatim
8134 #: ../src/guestfs-actions.pod:2654
8135 #, no-wrap
8136 msgid ""
8137 " struct guestfs_stat *guestfs_lstat (guestfs_h *g,\n"
8138 "\t\tconst char *path);\n"
8139 "\n"
8140 msgstr ""
8141
8142 # type: textblock
8143 #: ../src/guestfs-actions.pod:2657 ../src/guestfs-actions.pod:4655 ../fish/guestfish-actions.pod:2101 ../fish/guestfish-actions.pod:3623
8144 msgid "Returns file information for the given C<path>."
8145 msgstr ""
8146
8147 # type: textblock
8148 #: ../src/guestfs-actions.pod:2659
8149 msgid ""
8150 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
8151 "link, then the link is stat-ed, not the file it refers to."
8152 msgstr ""
8153
8154 # type: textblock
8155 #: ../src/guestfs-actions.pod:2663 ../fish/guestfish-actions.pod:2107
8156 msgid "This is the same as the C<lstat(2)> system call."
8157 msgstr ""
8158
8159 # type: textblock
8160 #: ../src/guestfs-actions.pod:2665 ../src/guestfs-actions.pod:4659
8161 msgid ""
8162 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
8163 "error.  I<The caller must call C<guestfs_free_stat> after use>."
8164 msgstr ""
8165
8166 # type: =head2
8167 #: ../src/guestfs-actions.pod:2669
8168 msgid "guestfs_lstatlist"
8169 msgstr ""
8170
8171 # type: verbatim
8172 #: ../src/guestfs-actions.pod:2671
8173 #, no-wrap
8174 msgid ""
8175 " struct guestfs_stat_list *guestfs_lstatlist (guestfs_h *g,\n"
8176 "\t\tconst char *path,\n"
8177 "\t\tchar *const *names);\n"
8178 "\n"
8179 msgstr ""
8180
8181 # type: textblock
8182 #: ../src/guestfs-actions.pod:2675
8183 msgid ""
8184 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
8185 "files, where all files are in the directory C<path>.  C<names> is the list "
8186 "of files from this directory."
8187 msgstr ""
8188
8189 # type: textblock
8190 #: ../src/guestfs-actions.pod:2679 ../fish/guestfish-actions.pod:2117
8191 msgid ""
8192 "On return you get a list of stat structs, with a one-to-one correspondence "
8193 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
8194 "then the C<ino> field of that structure is set to C<-1>."
8195 msgstr ""
8196
8197 # type: textblock
8198 #: ../src/guestfs-actions.pod:2684
8199 msgid ""
8200 "This call is intended for programs that want to efficiently list a directory "
8201 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
8202 "for a similarly efficient call for getting extended attributes.  Very long "
8203 "directory listings might cause the protocol message size to be exceeded, "
8204 "causing this call to fail.  The caller must split up such requests into "
8205 "smaller groups of names."
8206 msgstr ""
8207
8208 # type: textblock
8209 #: ../src/guestfs-actions.pod:2692
8210 msgid ""
8211 "This function returns a C<struct guestfs_stat_list *> (see "
8212 "E<lt>guestfs-structs.hE<gt>), or NULL if there was an error.  I<The caller "
8213 "must call C<guestfs_free_stat_list> after use>."
8214 msgstr ""
8215
8216 # type: =head2
8217 #: ../src/guestfs-actions.pod:2697
8218 msgid "guestfs_luks_add_key"
8219 msgstr ""
8220
8221 # type: verbatim
8222 #: ../src/guestfs-actions.pod:2699
8223 #, no-wrap
8224 msgid ""
8225 " int guestfs_luks_add_key (guestfs_h *g,\n"
8226 "\t\tconst char *device,\n"
8227 "\t\tconst char *key,\n"
8228 "\t\tconst char *newkey,\n"
8229 "\t\tint keyslot);\n"
8230 "\n"
8231 msgstr ""
8232
8233 # type: textblock
8234 #: ../src/guestfs-actions.pod:2705 ../fish/guestfish-actions.pod:2134
8235 msgid ""
8236 "This command adds a new key on LUKS device C<device>.  C<key> is any "
8237 "existing key, and is used to access the device.  C<newkey> is the new key to "
8238 "add.  C<keyslot> is the key slot that will be replaced."
8239 msgstr ""
8240
8241 # type: textblock
8242 #: ../src/guestfs-actions.pod:2710
8243 msgid ""
8244 "Note that if C<keyslot> already contains a key, then this command will "
8245 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
8246 msgstr ""
8247
8248 # type: textblock
8249 #: ../src/guestfs-actions.pod:2716 ../src/guestfs-actions.pod:2750 ../src/guestfs-actions.pod:2770 ../src/guestfs-actions.pod:2787 ../src/guestfs-actions.pod:2816 ../src/guestfs-actions.pod:2832
8250 msgid ""
8251 "This function takes a key or passphrase parameter which could contain "
8252 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
8253 "information."
8254 msgstr ""
8255
8256 # type: =head2
8257 #: ../src/guestfs-actions.pod:2720
8258 msgid "guestfs_luks_close"
8259 msgstr ""
8260
8261 # type: verbatim
8262 #: ../src/guestfs-actions.pod:2722
8263 #, no-wrap
8264 msgid ""
8265 " int guestfs_luks_close (guestfs_h *g,\n"
8266 "\t\tconst char *device);\n"
8267 "\n"
8268 msgstr ""
8269
8270 # type: textblock
8271 #: ../src/guestfs-actions.pod:2725
8272 msgid ""
8273 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
8274 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
8275 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
8276 "underlying block device."
8277 msgstr ""
8278
8279 # type: =head2
8280 #: ../src/guestfs-actions.pod:2733
8281 msgid "guestfs_luks_format"
8282 msgstr ""
8283
8284 # type: verbatim
8285 #: ../src/guestfs-actions.pod:2735
8286 #, no-wrap
8287 msgid ""
8288 " int guestfs_luks_format (guestfs_h *g,\n"
8289 "\t\tconst char *device,\n"
8290 "\t\tconst char *key,\n"
8291 "\t\tint keyslot);\n"
8292 "\n"
8293 msgstr ""
8294
8295 # type: textblock
8296 #: ../src/guestfs-actions.pod:2740 ../fish/guestfish-actions.pod:2160
8297 msgid ""
8298 "This command erases existing data on C<device> and formats the device as a "
8299 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
8300 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
8301 msgstr ""
8302
8303 # type: textblock
8304 #: ../src/guestfs-actions.pod:2747 ../src/guestfs-actions.pod:2767 ../src/guestfs-actions.pod:2869 ../src/guestfs-actions.pod:3581 ../src/guestfs-actions.pod:4196 ../src/guestfs-actions.pod:4517 ../src/guestfs-actions.pod:4537 ../src/guestfs-actions.pod:4560 ../src/guestfs-actions.pod:5525 ../fish/guestfish-actions.pod:2168 ../fish/guestfish-actions.pod:2181 ../fish/guestfish-actions.pod:2252 ../fish/guestfish-actions.pod:2767 ../fish/guestfish-actions.pod:3242 ../fish/guestfish-actions.pod:3522 ../fish/guestfish-actions.pod:3538 ../fish/guestfish-actions.pod:3553 ../fish/guestfish-actions.pod:4268
8305 msgid ""
8306 "B<This command is dangerous.  Without careful use you can easily destroy all "
8307 "your data>."
8308 msgstr ""
8309
8310 # type: =head2
8311 #: ../src/guestfs-actions.pod:2754
8312 msgid "guestfs_luks_format_cipher"
8313 msgstr ""
8314
8315 # type: verbatim
8316 #: ../src/guestfs-actions.pod:2756
8317 #, no-wrap
8318 msgid ""
8319 " int guestfs_luks_format_cipher (guestfs_h *g,\n"
8320 "\t\tconst char *device,\n"
8321 "\t\tconst char *key,\n"
8322 "\t\tint keyslot,\n"
8323 "\t\tconst char *cipher);\n"
8324 "\n"
8325 msgstr ""
8326
8327 # type: textblock
8328 #: ../src/guestfs-actions.pod:2762
8329 msgid ""
8330 "This command is the same as C<guestfs_luks_format> but it also allows you to "
8331 "set the C<cipher> used."
8332 msgstr ""
8333
8334 # type: =head2
8335 #: ../src/guestfs-actions.pod:2774
8336 msgid "guestfs_luks_kill_slot"
8337 msgstr ""
8338
8339 # type: verbatim
8340 #: ../src/guestfs-actions.pod:2776
8341 #, no-wrap
8342 msgid ""
8343 " int guestfs_luks_kill_slot (guestfs_h *g,\n"
8344 "\t\tconst char *device,\n"
8345 "\t\tconst char *key,\n"
8346 "\t\tint keyslot);\n"
8347 "\n"
8348 msgstr ""
8349
8350 # type: textblock
8351 #: ../src/guestfs-actions.pod:2781 ../fish/guestfish-actions.pod:2188
8352 msgid ""
8353 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
8354 "device C<device>.  C<key> must be one of the I<other> keys."
8355 msgstr ""
8356
8357 # type: =head2
8358 #: ../src/guestfs-actions.pod:2791
8359 msgid "guestfs_luks_open"
8360 msgstr ""
8361
8362 # type: verbatim
8363 #: ../src/guestfs-actions.pod:2793
8364 #, no-wrap
8365 msgid ""
8366 " int guestfs_luks_open (guestfs_h *g,\n"
8367 "\t\tconst char *device,\n"
8368 "\t\tconst char *key,\n"
8369 "\t\tconst char *mapname);\n"
8370 "\n"
8371 msgstr ""
8372
8373 # type: textblock
8374 #: ../src/guestfs-actions.pod:2798 ../fish/guestfish-actions.pod:2199
8375 msgid ""
8376 "This command opens a block device which has been encrypted according to the "
8377 "Linux Unified Key Setup (LUKS) standard."
8378 msgstr ""
8379
8380 # type: textblock
8381 #: ../src/guestfs-actions.pod:2801 ../fish/guestfish-actions.pod:2202
8382 msgid "C<device> is the encrypted block device or partition."
8383 msgstr ""
8384
8385 # type: textblock
8386 #: ../src/guestfs-actions.pod:2803 ../fish/guestfish-actions.pod:2204
8387 msgid ""
8388 "The caller must supply one of the keys associated with the LUKS block "
8389 "device, in the C<key> parameter."
8390 msgstr ""
8391
8392 # type: textblock
8393 #: ../src/guestfs-actions.pod:2806 ../fish/guestfish-actions.pod:2207
8394 msgid ""
8395 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
8396 "writes to this block device are decrypted from and encrypted to the "
8397 "underlying C<device> respectively."
8398 msgstr ""
8399
8400 # type: textblock
8401 #: ../src/guestfs-actions.pod:2810
8402 msgid ""
8403 "If this block device contains LVM volume groups, then calling "
8404 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
8405 "visible."
8406 msgstr ""
8407
8408 # type: =head2
8409 #: ../src/guestfs-actions.pod:2820
8410 msgid "guestfs_luks_open_ro"
8411 msgstr ""
8412
8413 # type: verbatim
8414 #: ../src/guestfs-actions.pod:2822
8415 #, no-wrap
8416 msgid ""
8417 " int guestfs_luks_open_ro (guestfs_h *g,\n"
8418 "\t\tconst char *device,\n"
8419 "\t\tconst char *key,\n"
8420 "\t\tconst char *mapname);\n"
8421 "\n"
8422 msgstr ""
8423
8424 # type: textblock
8425 #: ../src/guestfs-actions.pod:2827
8426 msgid ""
8427 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
8428 "created."
8429 msgstr ""
8430
8431 # type: =head2
8432 #: ../src/guestfs-actions.pod:2836
8433 msgid "guestfs_lvcreate"
8434 msgstr ""
8435
8436 # type: verbatim
8437 #: ../src/guestfs-actions.pod:2838
8438 #, no-wrap
8439 msgid ""
8440 " int guestfs_lvcreate (guestfs_h *g,\n"
8441 "\t\tconst char *logvol,\n"
8442 "\t\tconst char *volgroup,\n"
8443 "\t\tint mbytes);\n"
8444 "\n"
8445 msgstr ""
8446
8447 # type: textblock
8448 #: ../src/guestfs-actions.pod:2843 ../fish/guestfish-actions.pod:2232
8449 msgid ""
8450 "This creates an LVM logical volume called C<logvol> on the volume group "
8451 "C<volgroup>, with C<size> megabytes."
8452 msgstr ""
8453
8454 # type: =head2
8455 #: ../src/guestfs-actions.pod:2848
8456 msgid "guestfs_lvm_clear_filter"
8457 msgstr ""
8458
8459 # type: verbatim
8460 #: ../src/guestfs-actions.pod:2850
8461 #, no-wrap
8462 msgid ""
8463 " int guestfs_lvm_clear_filter (guestfs_h *g);\n"
8464 "\n"
8465 msgstr ""
8466
8467 # type: textblock
8468 #: ../src/guestfs-actions.pod:2852
8469 msgid ""
8470 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
8471 "see every block device."
8472 msgstr ""
8473
8474 # type: textblock
8475 #: ../src/guestfs-actions.pod:2855 ../src/guestfs-actions.pod:2891 ../fish/guestfish-actions.pod:2242 ../fish/guestfish-actions.pod:2273
8476 msgid "This command also clears the LVM cache and performs a volume group scan."
8477 msgstr ""
8478
8479 # type: =head2
8480 #: ../src/guestfs-actions.pod:2860
8481 msgid "guestfs_lvm_remove_all"
8482 msgstr ""
8483
8484 # type: verbatim
8485 #: ../src/guestfs-actions.pod:2862
8486 #, no-wrap
8487 msgid ""
8488 " int guestfs_lvm_remove_all (guestfs_h *g);\n"
8489 "\n"
8490 msgstr ""
8491
8492 # type: textblock
8493 #: ../src/guestfs-actions.pod:2864 ../fish/guestfish-actions.pod:2249
8494 msgid ""
8495 "This command removes all LVM logical volumes, volume groups and physical "
8496 "volumes."
8497 msgstr ""
8498
8499 # type: =head2
8500 #: ../src/guestfs-actions.pod:2872
8501 msgid "guestfs_lvm_set_filter"
8502 msgstr ""
8503
8504 # type: verbatim
8505 #: ../src/guestfs-actions.pod:2874
8506 #, no-wrap
8507 msgid ""
8508 " int guestfs_lvm_set_filter (guestfs_h *g,\n"
8509 "\t\tchar *const *devices);\n"
8510 "\n"
8511 msgstr ""
8512
8513 # type: textblock
8514 #: ../src/guestfs-actions.pod:2877 ../fish/guestfish-actions.pod:2259
8515 msgid ""
8516 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
8517 "block devices in the list C<devices>, and will ignore all other attached "
8518 "block devices."
8519 msgstr ""
8520
8521 # type: textblock
8522 #: ../src/guestfs-actions.pod:2881 ../fish/guestfish-actions.pod:2263
8523 msgid ""
8524 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
8525 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
8526 "there are two types of duplication possible: either cloned PVs/VGs which "
8527 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
8528 "same name.  In normal operation you cannot create this situation, but you "
8529 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
8530 "inside the LVM metadata."
8531 msgstr ""
8532
8533 # type: textblock
8534 #: ../src/guestfs-actions.pod:2894 ../fish/guestfish-actions.pod:2276
8535 msgid "You can filter whole block devices or individual partitions."
8536 msgstr ""
8537
8538 # type: textblock
8539 #: ../src/guestfs-actions.pod:2896 ../fish/guestfish-actions.pod:2278
8540 msgid ""
8541 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
8542 "filesystem), even if you are not filtering out that VG."
8543 msgstr ""
8544
8545 # type: =head2
8546 #: ../src/guestfs-actions.pod:2902
8547 msgid "guestfs_lvremove"
8548 msgstr ""
8549
8550 # type: verbatim
8551 #: ../src/guestfs-actions.pod:2904
8552 #, no-wrap
8553 msgid ""
8554 " int guestfs_lvremove (guestfs_h *g,\n"
8555 "\t\tconst char *device);\n"
8556 "\n"
8557 msgstr ""
8558
8559 # type: textblock
8560 #: ../src/guestfs-actions.pod:2907 ../fish/guestfish-actions.pod:2286
8561 msgid ""
8562 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
8563 "LV, such as C</dev/VG/LV>."
8564 msgstr ""
8565
8566 # type: textblock
8567 #: ../src/guestfs-actions.pod:2910 ../fish/guestfish-actions.pod:2289
8568 msgid ""
8569 "You can also remove all LVs in a volume group by specifying the VG name, "
8570 "C</dev/VG>."
8571 msgstr ""
8572
8573 # type: =head2
8574 #: ../src/guestfs-actions.pod:2915
8575 msgid "guestfs_lvrename"
8576 msgstr ""
8577
8578 # type: verbatim
8579 #: ../src/guestfs-actions.pod:2917
8580 #, no-wrap
8581 msgid ""
8582 " int guestfs_lvrename (guestfs_h *g,\n"
8583 "\t\tconst char *logvol,\n"
8584 "\t\tconst char *newlogvol);\n"
8585 "\n"
8586 msgstr ""
8587
8588 # type: textblock
8589 #: ../src/guestfs-actions.pod:2921 ../fish/guestfish-actions.pod:2296
8590 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
8591 msgstr ""
8592
8593 # type: =head2
8594 #: ../src/guestfs-actions.pod:2925
8595 msgid "guestfs_lvresize"
8596 msgstr ""
8597
8598 # type: verbatim
8599 #: ../src/guestfs-actions.pod:2927
8600 #, no-wrap
8601 msgid ""
8602 " int guestfs_lvresize (guestfs_h *g,\n"
8603 "\t\tconst char *device,\n"
8604 "\t\tint mbytes);\n"
8605 "\n"
8606 msgstr ""
8607
8608 # type: textblock
8609 #: ../src/guestfs-actions.pod:2931 ../fish/guestfish-actions.pod:2302
8610 msgid ""
8611 "This resizes (expands or shrinks) an existing LVM logical volume to "
8612 "C<mbytes>.  When reducing, data in the reduced part is lost."
8613 msgstr ""
8614
8615 # type: =head2
8616 #: ../src/guestfs-actions.pod:2937
8617 msgid "guestfs_lvresize_free"
8618 msgstr ""
8619
8620 # type: verbatim
8621 #: ../src/guestfs-actions.pod:2939
8622 #, no-wrap
8623 msgid ""
8624 " int guestfs_lvresize_free (guestfs_h *g,\n"
8625 "\t\tconst char *lv,\n"
8626 "\t\tint percent);\n"
8627 "\n"
8628 msgstr ""
8629
8630 # type: textblock
8631 #: ../src/guestfs-actions.pod:2943 ../fish/guestfish-actions.pod:2310
8632 msgid ""
8633 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
8634 "remaining free space in the volume group.  Commonly you would call this with "
8635 "pc = 100 which expands the logical volume as much as possible, using all "
8636 "remaining free space in the volume group."
8637 msgstr ""
8638
8639 # type: =head2
8640 #: ../src/guestfs-actions.pod:2951
8641 msgid "guestfs_lvs"
8642 msgstr ""
8643
8644 # type: verbatim
8645 #: ../src/guestfs-actions.pod:2953
8646 #, no-wrap
8647 msgid ""
8648 " char **guestfs_lvs (guestfs_h *g);\n"
8649 "\n"
8650 msgstr ""
8651
8652 # type: textblock
8653 #: ../src/guestfs-actions.pod:2955 ../fish/guestfish-actions.pod:2320
8654 msgid ""
8655 "List all the logical volumes detected.  This is the equivalent of the "
8656 "L<lvs(8)> command."
8657 msgstr ""
8658
8659 # type: textblock
8660 #: ../src/guestfs-actions.pod:2958 ../fish/guestfish-actions.pod:2323
8661 msgid ""
8662 "This returns a list of the logical volume device names "
8663 "(eg. C</dev/VolGroup00/LogVol00>)."
8664 msgstr ""
8665
8666 # type: textblock
8667 #: ../src/guestfs-actions.pod:2961
8668 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
8669 msgstr ""
8670
8671 # type: =head2
8672 #: ../src/guestfs-actions.pod:2967
8673 msgid "guestfs_lvs_full"
8674 msgstr ""
8675
8676 # type: verbatim
8677 #: ../src/guestfs-actions.pod:2969
8678 #, no-wrap
8679 msgid ""
8680 " struct guestfs_lvm_lv_list *guestfs_lvs_full (guestfs_h *g);\n"
8681 "\n"
8682 msgstr ""
8683
8684 # type: textblock
8685 #: ../src/guestfs-actions.pod:2971 ../fish/guestfish-actions.pod:2332
8686 msgid ""
8687 "List all the logical volumes detected.  This is the equivalent of the "
8688 "L<lvs(8)> command.  The \"full\" version includes all fields."
8689 msgstr ""
8690
8691 # type: textblock
8692 #: ../src/guestfs-actions.pod:2974
8693 msgid ""
8694 "This function returns a C<struct guestfs_lvm_lv_list *> (see "
8695 "E<lt>guestfs-structs.hE<gt>), or NULL if there was an error.  I<The caller "
8696 "must call C<guestfs_free_lvm_lv_list> after use>."
8697 msgstr ""
8698
8699 # type: =head2
8700 #: ../src/guestfs-actions.pod:2979
8701 msgid "guestfs_lvuuid"
8702 msgstr ""
8703
8704 # type: verbatim
8705 #: ../src/guestfs-actions.pod:2981
8706 #, no-wrap
8707 msgid ""
8708 " char *guestfs_lvuuid (guestfs_h *g,\n"
8709 "\t\tconst char *device);\n"
8710 "\n"
8711 msgstr ""
8712
8713 # type: textblock
8714 #: ../src/guestfs-actions.pod:2984 ../fish/guestfish-actions.pod:2339
8715 msgid "This command returns the UUID of the LVM LV C<device>."
8716 msgstr ""
8717
8718 # type: =head2
8719 #: ../src/guestfs-actions.pod:2989
8720 msgid "guestfs_lxattrlist"
8721 msgstr ""
8722
8723 # type: verbatim
8724 #: ../src/guestfs-actions.pod:2991
8725 #, no-wrap
8726 msgid ""
8727 " struct guestfs_xattr_list *guestfs_lxattrlist (guestfs_h *g,\n"
8728 "\t\tconst char *path,\n"
8729 "\t\tchar *const *names);\n"
8730 "\n"
8731 msgstr ""
8732
8733 # type: textblock
8734 #: ../src/guestfs-actions.pod:2995 ../fish/guestfish-actions.pod:2345
8735 msgid ""
8736 "This call allows you to get the extended attributes of multiple files, where "
8737 "all files are in the directory C<path>.  C<names> is the list of files from "
8738 "this directory."
8739 msgstr ""
8740
8741 # type: textblock
8742 #: ../src/guestfs-actions.pod:2999 ../fish/guestfish-actions.pod:2349
8743 msgid ""
8744 "On return you get a flat list of xattr structs which must be interpreted "
8745 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
8746 "C<attrval> in this struct is zero-length to indicate there was an error "
8747 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
8748 "number (the number of following attributes for this file, which could be "
8749 "C<\"0\">).  Then after the first xattr struct are the zero or more "
8750 "attributes for the first named file.  This repeats for the second and "
8751 "subsequent files."
8752 msgstr ""
8753
8754 # type: textblock
8755 #: ../src/guestfs-actions.pod:3009
8756 msgid ""
8757 "This call is intended for programs that want to efficiently list a directory "
8758 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
8759 "a similarly efficient call for getting standard stats.  Very long directory "
8760 "listings might cause the protocol message size to be exceeded, causing this "
8761 "call to fail.  The caller must split up such requests into smaller groups of "
8762 "names."
8763 msgstr ""
8764
8765 # type: =head2
8766 #: ../src/guestfs-actions.pod:3022
8767 msgid "guestfs_mkdir"
8768 msgstr ""
8769
8770 # type: verbatim
8771 #: ../src/guestfs-actions.pod:3024
8772 #, no-wrap
8773 msgid ""
8774 " int guestfs_mkdir (guestfs_h *g,\n"
8775 "\t\tconst char *path);\n"
8776 "\n"
8777 msgstr ""
8778
8779 # type: textblock
8780 #: ../src/guestfs-actions.pod:3027 ../fish/guestfish-actions.pod:2371
8781 msgid "Create a directory named C<path>."
8782 msgstr ""
8783
8784 # type: =head2
8785 #: ../src/guestfs-actions.pod:3031
8786 msgid "guestfs_mkdir_mode"
8787 msgstr ""
8788
8789 # type: verbatim
8790 #: ../src/guestfs-actions.pod:3033
8791 #, no-wrap
8792 msgid ""
8793 " int guestfs_mkdir_mode (guestfs_h *g,\n"
8794 "\t\tconst char *path,\n"
8795 "\t\tint mode);\n"
8796 "\n"
8797 msgstr ""
8798
8799 # type: textblock
8800 #: ../src/guestfs-actions.pod:3037 ../fish/guestfish-actions.pod:2377
8801 msgid ""
8802 "This command creates a directory, setting the initial permissions of the "
8803 "directory to C<mode>."
8804 msgstr ""
8805
8806 # type: textblock
8807 #: ../src/guestfs-actions.pod:3040 ../fish/guestfish-actions.pod:2380
8808 msgid ""
8809 "For common Linux filesystems, the actual mode which is set will be C<mode & "
8810 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
8811 "other ways."
8812 msgstr ""
8813
8814 # type: textblock
8815 #: ../src/guestfs-actions.pod:3044
8816 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
8817 msgstr ""
8818
8819 # type: =head2
8820 #: ../src/guestfs-actions.pod:3048
8821 msgid "guestfs_mkdir_p"
8822 msgstr ""
8823
8824 # type: verbatim
8825 #: ../src/guestfs-actions.pod:3050
8826 #, no-wrap
8827 msgid ""
8828 " int guestfs_mkdir_p (guestfs_h *g,\n"
8829 "\t\tconst char *path);\n"
8830 "\n"
8831 msgstr ""
8832
8833 # type: textblock
8834 #: ../src/guestfs-actions.pod:3053 ../fish/guestfish-actions.pod:2390
8835 msgid ""
8836 "Create a directory named C<path>, creating any parent directories as "
8837 "necessary.  This is like the C<mkdir -p> shell command."
8838 msgstr ""
8839
8840 # type: =head2
8841 #: ../src/guestfs-actions.pod:3058
8842 msgid "guestfs_mkdtemp"
8843 msgstr ""
8844
8845 # type: verbatim
8846 #: ../src/guestfs-actions.pod:3060
8847 #, no-wrap
8848 msgid ""
8849 " char *guestfs_mkdtemp (guestfs_h *g,\n"
8850 "\t\tconst char *template);\n"
8851 "\n"
8852 msgstr ""
8853
8854 # type: textblock
8855 #: ../src/guestfs-actions.pod:3063 ../fish/guestfish-actions.pod:2397
8856 msgid ""
8857 "This command creates a temporary directory.  The C<template> parameter "
8858 "should be a full pathname for the temporary directory name with the final "
8859 "six characters being \"XXXXXX\"."
8860 msgstr ""
8861
8862 # type: textblock
8863 #: ../src/guestfs-actions.pod:3068 ../fish/guestfish-actions.pod:2402
8864 msgid ""
8865 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
8866 "being suitable for Windows filesystems."
8867 msgstr ""
8868
8869 # type: textblock
8870 #: ../src/guestfs-actions.pod:3071 ../fish/guestfish-actions.pod:2405
8871 msgid "The name of the temporary directory that was created is returned."
8872 msgstr ""
8873
8874 # type: textblock
8875 #: ../src/guestfs-actions.pod:3074 ../fish/guestfish-actions.pod:2408
8876 msgid "The temporary directory is created with mode 0700 and is owned by root."
8877 msgstr ""
8878
8879 # type: textblock
8880 #: ../src/guestfs-actions.pod:3077 ../fish/guestfish-actions.pod:2411
8881 msgid ""
8882 "The caller is responsible for deleting the temporary directory and its "
8883 "contents after use."
8884 msgstr ""
8885
8886 # type: textblock
8887 #: ../src/guestfs-actions.pod:3080 ../fish/guestfish-actions.pod:2414
8888 msgid "See also: L<mkdtemp(3)>"
8889 msgstr ""
8890
8891 # type: =head2
8892 #: ../src/guestfs-actions.pod:3085
8893 msgid "guestfs_mke2fs_J"
8894 msgstr ""
8895
8896 # type: verbatim
8897 #: ../src/guestfs-actions.pod:3087
8898 #, no-wrap
8899 msgid ""
8900 " int guestfs_mke2fs_J (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 *journal);\n"
8905 "\n"
8906 msgstr ""
8907
8908 # type: textblock
8909 #: ../src/guestfs-actions.pod:3093 ../fish/guestfish-actions.pod:2420
8910 msgid ""
8911 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
8912 "C<journal>.  It is equivalent to the command:"
8913 msgstr ""
8914
8915 # type: verbatim
8916 #: ../src/guestfs-actions.pod:3097 ../fish/guestfish-actions.pod:2424
8917 #, no-wrap
8918 msgid ""
8919 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
8920 "\n"
8921 msgstr ""
8922
8923 # type: textblock
8924 #: ../src/guestfs-actions.pod:3099
8925 msgid "See also C<guestfs_mke2journal>."
8926 msgstr ""
8927
8928 # type: =head2
8929 #: ../src/guestfs-actions.pod:3103
8930 msgid "guestfs_mke2fs_JL"
8931 msgstr ""
8932
8933 # type: verbatim
8934 #: ../src/guestfs-actions.pod:3105
8935 #, no-wrap
8936 msgid ""
8937 " int guestfs_mke2fs_JL (guestfs_h *g,\n"
8938 "\t\tconst char *fstype,\n"
8939 "\t\tint blocksize,\n"
8940 "\t\tconst char *device,\n"
8941 "\t\tconst char *label);\n"
8942 "\n"
8943 msgstr ""
8944
8945 # type: textblock
8946 #: ../src/guestfs-actions.pod:3111 ../fish/guestfish-actions.pod:2432
8947 msgid ""
8948 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
8949 "the journal labeled C<label>."
8950 msgstr ""
8951
8952 # type: textblock
8953 #: ../src/guestfs-actions.pod:3114
8954 msgid "See also C<guestfs_mke2journal_L>."
8955 msgstr ""
8956
8957 # type: =head2
8958 #: ../src/guestfs-actions.pod:3118
8959 msgid "guestfs_mke2fs_JU"
8960 msgstr ""
8961
8962 # type: verbatim
8963 #: ../src/guestfs-actions.pod:3120
8964 #, no-wrap
8965 msgid ""
8966 " int guestfs_mke2fs_JU (guestfs_h *g,\n"
8967 "\t\tconst char *fstype,\n"
8968 "\t\tint blocksize,\n"
8969 "\t\tconst char *device,\n"
8970 "\t\tconst char *uuid);\n"
8971 "\n"
8972 msgstr ""
8973
8974 # type: textblock
8975 #: ../src/guestfs-actions.pod:3126 ../fish/guestfish-actions.pod:2441
8976 msgid ""
8977 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
8978 "the journal with UUID C<uuid>."
8979 msgstr ""
8980
8981 # type: textblock
8982 #: ../src/guestfs-actions.pod:3129
8983 msgid "See also C<guestfs_mke2journal_U>."
8984 msgstr ""
8985
8986 # type: =head2
8987 #: ../src/guestfs-actions.pod:3133
8988 msgid "guestfs_mke2journal"
8989 msgstr ""
8990
8991 # type: verbatim
8992 #: ../src/guestfs-actions.pod:3135
8993 #, no-wrap
8994 msgid ""
8995 " int guestfs_mke2journal (guestfs_h *g,\n"
8996 "\t\tint blocksize,\n"
8997 "\t\tconst char *device);\n"
8998 "\n"
8999 msgstr ""
9000
9001 # type: textblock
9002 #: ../src/guestfs-actions.pod:3139 ../fish/guestfish-actions.pod:2450
9003 msgid ""
9004 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
9005 "command:"
9006 msgstr ""
9007
9008 # type: verbatim
9009 #: ../src/guestfs-actions.pod:3142 ../fish/guestfish-actions.pod:2453
9010 #, no-wrap
9011 msgid ""
9012 " mke2fs -O journal_dev -b blocksize device\n"
9013 "\n"
9014 msgstr ""
9015
9016 # type: =head2
9017 #: ../src/guestfs-actions.pod:3146
9018 msgid "guestfs_mke2journal_L"
9019 msgstr ""
9020
9021 # type: verbatim
9022 #: ../src/guestfs-actions.pod:3148
9023 #, no-wrap
9024 msgid ""
9025 " int guestfs_mke2journal_L (guestfs_h *g,\n"
9026 "\t\tint blocksize,\n"
9027 "\t\tconst char *label,\n"
9028 "\t\tconst char *device);\n"
9029 "\n"
9030 msgstr ""
9031
9032 # type: textblock
9033 #: ../src/guestfs-actions.pod:3153 ../fish/guestfish-actions.pod:2459
9034 msgid "This creates an ext2 external journal on C<device> with label C<label>."
9035 msgstr ""
9036
9037 # type: =head2
9038 #: ../src/guestfs-actions.pod:3157
9039 msgid "guestfs_mke2journal_U"
9040 msgstr ""
9041
9042 # type: verbatim
9043 #: ../src/guestfs-actions.pod:3159
9044 #, no-wrap
9045 msgid ""
9046 " int guestfs_mke2journal_U (guestfs_h *g,\n"
9047 "\t\tint blocksize,\n"
9048 "\t\tconst char *uuid,\n"
9049 "\t\tconst char *device);\n"
9050 "\n"
9051 msgstr ""
9052
9053 # type: textblock
9054 #: ../src/guestfs-actions.pod:3164 ../fish/guestfish-actions.pod:2465
9055 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
9056 msgstr ""
9057
9058 # type: =head2
9059 #: ../src/guestfs-actions.pod:3168
9060 msgid "guestfs_mkfifo"
9061 msgstr ""
9062
9063 # type: verbatim
9064 #: ../src/guestfs-actions.pod:3170
9065 #, no-wrap
9066 msgid ""
9067 " int guestfs_mkfifo (guestfs_h *g,\n"
9068 "\t\tint mode,\n"
9069 "\t\tconst char *path);\n"
9070 "\n"
9071 msgstr ""
9072
9073 # type: textblock
9074 #: ../src/guestfs-actions.pod:3174
9075 msgid ""
9076 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
9077 "is just a convenient wrapper around C<guestfs_mknod>."
9078 msgstr ""
9079
9080 # type: =head2
9081 #: ../src/guestfs-actions.pod:3182
9082 msgid "guestfs_mkfs"
9083 msgstr ""
9084
9085 # type: verbatim
9086 #: ../src/guestfs-actions.pod:3184
9087 #, no-wrap
9088 msgid ""
9089 " int guestfs_mkfs (guestfs_h *g,\n"
9090 "\t\tconst char *fstype,\n"
9091 "\t\tconst char *device);\n"
9092 "\n"
9093 msgstr ""
9094
9095 # type: textblock
9096 #: ../src/guestfs-actions.pod:3188 ../fish/guestfish-actions.pod:2481
9097 msgid ""
9098 "This creates a filesystem on C<device> (usually a partition or LVM logical "
9099 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
9100 msgstr ""
9101
9102 # type: =head2
9103 #: ../src/guestfs-actions.pod:3194
9104 msgid "guestfs_mkfs_b"
9105 msgstr ""
9106
9107 # type: verbatim
9108 #: ../src/guestfs-actions.pod:3196
9109 #, no-wrap
9110 msgid ""
9111 " int guestfs_mkfs_b (guestfs_h *g,\n"
9112 "\t\tconst char *fstype,\n"
9113 "\t\tint blocksize,\n"
9114 "\t\tconst char *device);\n"
9115 "\n"
9116 msgstr ""
9117
9118 # type: textblock
9119 #: ../src/guestfs-actions.pod:3201
9120 msgid ""
9121 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
9122 "block size of the resulting filesystem.  Supported block sizes depend on the "
9123 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
9124 msgstr ""
9125
9126 # type: textblock
9127 #: ../src/guestfs-actions.pod:3206 ../fish/guestfish-actions.pod:2494
9128 msgid ""
9129 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
9130 "cluster size."
9131 msgstr ""
9132
9133 # type: =head2
9134 #: ../src/guestfs-actions.pod:3211
9135 msgid "guestfs_mkmountpoint"
9136 msgstr ""
9137
9138 # type: verbatim
9139 #: ../src/guestfs-actions.pod:3213
9140 #, no-wrap
9141 msgid ""
9142 " int guestfs_mkmountpoint (guestfs_h *g,\n"
9143 "\t\tconst char *exemptpath);\n"
9144 "\n"
9145 msgstr ""
9146
9147 # type: textblock
9148 #: ../src/guestfs-actions.pod:3216
9149 msgid ""
9150 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
9151 "that can be used to create extra mountpoints before mounting the first "
9152 "filesystem."
9153 msgstr ""
9154
9155 # type: textblock
9156 #: ../src/guestfs-actions.pod:3220 ../fish/guestfish-actions.pod:2505
9157 msgid ""
9158 "These calls are I<only> necessary in some very limited circumstances, mainly "
9159 "the case where you want to mount a mix of unrelated and/or read-only "
9160 "filesystems together."
9161 msgstr ""
9162
9163 # type: textblock
9164 #: ../src/guestfs-actions.pod:3224 ../fish/guestfish-actions.pod:2509
9165 msgid ""
9166 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
9167 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
9168 "inside that.  You can unpack this as follows in guestfish:"
9169 msgstr ""
9170
9171 # type: verbatim
9172 #: ../src/guestfs-actions.pod:3229 ../fish/guestfish-actions.pod:2514
9173 #, no-wrap
9174 msgid ""
9175 " add-ro Fedora-11-i686-Live.iso\n"
9176 " run\n"
9177 " mkmountpoint /cd\n"
9178 " mkmountpoint /squash\n"
9179 " mkmountpoint /ext3\n"
9180 " mount /dev/sda /cd\n"
9181 " mount-loop /cd/LiveOS/squashfs.img /squash\n"
9182 " mount-loop /squash/LiveOS/ext3fs.img /ext3\n"
9183 "\n"
9184 msgstr ""
9185
9186 # type: textblock
9187 #: ../src/guestfs-actions.pod:3238 ../fish/guestfish-actions.pod:2523
9188 msgid "The inner filesystem is now unpacked under the /ext3 mountpoint."
9189 msgstr ""
9190
9191 # type: =head2
9192 #: ../src/guestfs-actions.pod:3242
9193 msgid "guestfs_mknod"
9194 msgstr ""
9195
9196 # type: verbatim
9197 #: ../src/guestfs-actions.pod:3244
9198 #, no-wrap
9199 msgid ""
9200 " int guestfs_mknod (guestfs_h *g,\n"
9201 "\t\tint mode,\n"
9202 "\t\tint devmajor,\n"
9203 "\t\tint devminor,\n"
9204 "\t\tconst char *path);\n"
9205 "\n"
9206 msgstr ""
9207
9208 # type: textblock
9209 #: ../src/guestfs-actions.pod:3250 ../fish/guestfish-actions.pod:2529
9210 msgid ""
9211 "This call creates block or character special devices, or named pipes "
9212 "(FIFOs)."
9213 msgstr ""
9214
9215 # type: textblock
9216 #: ../src/guestfs-actions.pod:3253 ../fish/guestfish-actions.pod:2532
9217 msgid ""
9218 "The C<mode> parameter should be the mode, using the standard constants.  "
9219 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
9220 "used when creating block and character special devices."
9221 msgstr ""
9222
9223 # type: textblock
9224 #: ../src/guestfs-actions.pod:3258
9225 msgid ""
9226 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
9227 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
9228 "regular file).  These constants are available in the standard Linux header "
9229 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
9230 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
9231 "the appropriate constant for you."
9232 msgstr ""
9233
9234 # type: =head2
9235 #: ../src/guestfs-actions.pod:3270
9236 msgid "guestfs_mknod_b"
9237 msgstr ""
9238
9239 # type: verbatim
9240 #: ../src/guestfs-actions.pod:3272
9241 #, no-wrap
9242 msgid ""
9243 " int guestfs_mknod_b (guestfs_h *g,\n"
9244 "\t\tint mode,\n"
9245 "\t\tint devmajor,\n"
9246 "\t\tint devminor,\n"
9247 "\t\tconst char *path);\n"
9248 "\n"
9249 msgstr ""
9250
9251 # type: textblock
9252 #: ../src/guestfs-actions.pod:3278
9253 msgid ""
9254 "This call creates a block device node called C<path> with mode C<mode> and "
9255 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
9256 "wrapper around C<guestfs_mknod>."
9257 msgstr ""
9258
9259 # type: =head2
9260 #: ../src/guestfs-actions.pod:3286
9261 msgid "guestfs_mknod_c"
9262 msgstr ""
9263
9264 # type: verbatim
9265 #: ../src/guestfs-actions.pod:3288
9266 #, no-wrap
9267 msgid ""
9268 " int guestfs_mknod_c (guestfs_h *g,\n"
9269 "\t\tint mode,\n"
9270 "\t\tint devmajor,\n"
9271 "\t\tint devminor,\n"
9272 "\t\tconst char *path);\n"
9273 "\n"
9274 msgstr ""
9275
9276 # type: textblock
9277 #: ../src/guestfs-actions.pod:3294
9278 msgid ""
9279 "This call creates a char device node called C<path> with mode C<mode> and "
9280 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
9281 "wrapper around C<guestfs_mknod>."
9282 msgstr ""
9283
9284 # type: =head2
9285 #: ../src/guestfs-actions.pod:3302
9286 msgid "guestfs_mkswap"
9287 msgstr ""
9288
9289 # type: verbatim
9290 #: ../src/guestfs-actions.pod:3304
9291 #, no-wrap
9292 msgid ""
9293 " int guestfs_mkswap (guestfs_h *g,\n"
9294 "\t\tconst char *device);\n"
9295 "\n"
9296 msgstr ""
9297
9298 # type: textblock
9299 #: ../src/guestfs-actions.pod:3307 ../fish/guestfish-actions.pod:2571
9300 msgid "Create a swap partition on C<device>."
9301 msgstr ""
9302
9303 # type: =head2
9304 #: ../src/guestfs-actions.pod:3311
9305 msgid "guestfs_mkswap_L"
9306 msgstr ""
9307
9308 # type: verbatim
9309 #: ../src/guestfs-actions.pod:3313
9310 #, no-wrap
9311 msgid ""
9312 " int guestfs_mkswap_L (guestfs_h *g,\n"
9313 "\t\tconst char *label,\n"
9314 "\t\tconst char *device);\n"
9315 "\n"
9316 msgstr ""
9317
9318 # type: textblock
9319 #: ../src/guestfs-actions.pod:3317 ../fish/guestfish-actions.pod:2577
9320 msgid "Create a swap partition on C<device> with label C<label>."
9321 msgstr ""
9322
9323 # type: textblock
9324 #: ../src/guestfs-actions.pod:3319 ../fish/guestfish-actions.pod:2579
9325 msgid ""
9326 "Note that you cannot attach a swap label to a block device "
9327 "(eg. C</dev/sda>), just to a partition.  This appears to be a limitation of "
9328 "the kernel or swap tools."
9329 msgstr ""
9330
9331 # type: =head2
9332 #: ../src/guestfs-actions.pod:3325
9333 msgid "guestfs_mkswap_U"
9334 msgstr ""
9335
9336 # type: verbatim
9337 #: ../src/guestfs-actions.pod:3327
9338 #, no-wrap
9339 msgid ""
9340 " int guestfs_mkswap_U (guestfs_h *g,\n"
9341 "\t\tconst char *uuid,\n"
9342 "\t\tconst char *device);\n"
9343 "\n"
9344 msgstr ""
9345
9346 # type: textblock
9347 #: ../src/guestfs-actions.pod:3331 ../fish/guestfish-actions.pod:2587
9348 msgid "Create a swap partition on C<device> with UUID C<uuid>."
9349 msgstr ""
9350
9351 # type: =head2
9352 #: ../src/guestfs-actions.pod:3335
9353 msgid "guestfs_mkswap_file"
9354 msgstr ""
9355
9356 # type: verbatim
9357 #: ../src/guestfs-actions.pod:3337
9358 #, no-wrap
9359 msgid ""
9360 " int guestfs_mkswap_file (guestfs_h *g,\n"
9361 "\t\tconst char *path);\n"
9362 "\n"
9363 msgstr ""
9364
9365 # type: textblock
9366 #: ../src/guestfs-actions.pod:3340 ../fish/guestfish-actions.pod:2593
9367 msgid "Create a swap file."
9368 msgstr ""
9369
9370 # type: textblock
9371 #: ../src/guestfs-actions.pod:3342
9372 msgid ""
9373 "This command just writes a swap file signature to an existing file.  To "
9374 "create the file itself, use something like C<guestfs_fallocate>."
9375 msgstr ""
9376
9377 # type: =head2
9378 #: ../src/guestfs-actions.pod:3347
9379 msgid "guestfs_modprobe"
9380 msgstr ""
9381
9382 # type: verbatim
9383 #: ../src/guestfs-actions.pod:3349
9384 #, no-wrap
9385 msgid ""
9386 " int guestfs_modprobe (guestfs_h *g,\n"
9387 "\t\tconst char *modulename);\n"
9388 "\n"
9389 msgstr ""
9390
9391 # type: textblock
9392 #: ../src/guestfs-actions.pod:3352 ../fish/guestfish-actions.pod:2602
9393 msgid "This loads a kernel module in the appliance."
9394 msgstr ""
9395
9396 # type: textblock
9397 #: ../src/guestfs-actions.pod:3354 ../fish/guestfish-actions.pod:2604
9398 msgid ""
9399 "The kernel module must have been whitelisted when libguestfs was built (see "
9400 "C<appliance/kmod.whitelist.in> in the source)."
9401 msgstr ""
9402
9403 # type: =head2
9404 #: ../src/guestfs-actions.pod:3359
9405 msgid "guestfs_mount"
9406 msgstr ""
9407
9408 # type: verbatim
9409 #: ../src/guestfs-actions.pod:3361
9410 #, no-wrap
9411 msgid ""
9412 " int guestfs_mount (guestfs_h *g,\n"
9413 "\t\tconst char *device,\n"
9414 "\t\tconst char *mountpoint);\n"
9415 "\n"
9416 msgstr ""
9417
9418 # type: textblock
9419 #: ../src/guestfs-actions.pod:3365 ../fish/guestfish-actions.pod:2611
9420 msgid ""
9421 "Mount a guest disk at a position in the filesystem.  Block devices are named "
9422 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
9423 "those block devices contain partitions, they will have the usual names "
9424 "(eg. C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
9425 msgstr ""
9426
9427 # type: textblock
9428 #: ../src/guestfs-actions.pod:3371 ../fish/guestfish-actions.pod:2617
9429 msgid ""
9430 "The rules are the same as for L<mount(2)>: A filesystem must first be "
9431 "mounted on C</> before others can be mounted.  Other filesystems can only be "
9432 "mounted on directories which already exist."
9433 msgstr ""
9434
9435 # type: textblock
9436 #: ../src/guestfs-actions.pod:3376 ../fish/guestfish-actions.pod:2622
9437 msgid ""
9438 "The mounted filesystem is writable, if we have sufficient permissions on the "
9439 "underlying device."
9440 msgstr ""
9441
9442 # type: textblock
9443 #: ../src/guestfs-actions.pod:3379
9444 msgid ""
9445 "B<Important note:> When you use this call, the filesystem options C<sync> "
9446 "and C<noatime> are set implicitly.  This was originally done because we "
9447 "thought it would improve reliability, but it turns out that I<-o sync> has a "
9448 "very large negative performance impact and negligible effect on "
9449 "reliability.  Therefore we recommend that you avoid using C<guestfs_mount> "
9450 "in any code that needs performance, and instead use C<guestfs_mount_options> "
9451 "(use an empty string for the first parameter if you don't want any options)."
9452 msgstr ""
9453
9454 # type: =head2
9455 #: ../src/guestfs-actions.pod:3391
9456 msgid "guestfs_mount_loop"
9457 msgstr ""
9458
9459 # type: verbatim
9460 #: ../src/guestfs-actions.pod:3393
9461 #, no-wrap
9462 msgid ""
9463 " int guestfs_mount_loop (guestfs_h *g,\n"
9464 "\t\tconst char *file,\n"
9465 "\t\tconst char *mountpoint);\n"
9466 "\n"
9467 msgstr ""
9468
9469 # type: textblock
9470 #: ../src/guestfs-actions.pod:3397 ../fish/guestfish-actions.pod:2639
9471 msgid ""
9472 "This command lets you mount C<file> (a filesystem image in a file) on a "
9473 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
9474 "mountpoint>."
9475 msgstr ""
9476
9477 # type: =head2
9478 #: ../src/guestfs-actions.pod:3403
9479 msgid "guestfs_mount_options"
9480 msgstr ""
9481
9482 # type: verbatim
9483 #: ../src/guestfs-actions.pod:3405
9484 #, no-wrap
9485 msgid ""
9486 " int guestfs_mount_options (guestfs_h *g,\n"
9487 "\t\tconst char *options,\n"
9488 "\t\tconst char *device,\n"
9489 "\t\tconst char *mountpoint);\n"
9490 "\n"
9491 msgstr ""
9492
9493 # type: textblock
9494 #: ../src/guestfs-actions.pod:3410
9495 msgid ""
9496 "This is the same as the C<guestfs_mount> command, but it allows you to set "
9497 "the mount options as for the L<mount(8)> I<-o> flag."
9498 msgstr ""
9499
9500 # type: textblock
9501 #: ../src/guestfs-actions.pod:3414 ../fish/guestfish-actions.pod:2651
9502 msgid ""
9503 "If the C<options> parameter is an empty string, then no options are passed "
9504 "(all options default to whatever the filesystem uses)."
9505 msgstr ""
9506
9507 # type: =head2
9508 #: ../src/guestfs-actions.pod:3420
9509 msgid "guestfs_mount_ro"
9510 msgstr ""
9511
9512 # type: verbatim
9513 #: ../src/guestfs-actions.pod:3422
9514 #, no-wrap
9515 msgid ""
9516 " int guestfs_mount_ro (guestfs_h *g,\n"
9517 "\t\tconst char *device,\n"
9518 "\t\tconst char *mountpoint);\n"
9519 "\n"
9520 msgstr ""
9521
9522 # type: textblock
9523 #: ../src/guestfs-actions.pod:3426
9524 msgid ""
9525 "This is the same as the C<guestfs_mount> command, but it mounts the "
9526 "filesystem with the read-only (I<-o ro>) flag."
9527 msgstr ""
9528
9529 # type: =head2
9530 #: ../src/guestfs-actions.pod:3431
9531 msgid "guestfs_mount_vfs"
9532 msgstr ""
9533
9534 # type: verbatim
9535 #: ../src/guestfs-actions.pod:3433
9536 #, no-wrap
9537 msgid ""
9538 " int guestfs_mount_vfs (guestfs_h *g,\n"
9539 "\t\tconst char *options,\n"
9540 "\t\tconst char *vfstype,\n"
9541 "\t\tconst char *device,\n"
9542 "\t\tconst char *mountpoint);\n"
9543 "\n"
9544 msgstr ""
9545
9546 # type: textblock
9547 #: ../src/guestfs-actions.pod:3439
9548 msgid ""
9549 "This is the same as the C<guestfs_mount> command, but it allows you to set "
9550 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and "
9551 "I<-t> flags."
9552 msgstr ""
9553
9554 # type: =head2
9555 #: ../src/guestfs-actions.pod:3445
9556 msgid "guestfs_mountpoints"
9557 msgstr ""
9558
9559 # type: verbatim
9560 #: ../src/guestfs-actions.pod:3447
9561 #, no-wrap
9562 msgid ""
9563 " char **guestfs_mountpoints (guestfs_h *g);\n"
9564 "\n"
9565 msgstr ""
9566
9567 # type: textblock
9568 #: ../src/guestfs-actions.pod:3449
9569 msgid ""
9570 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
9571 "devices.  This one returns a hash table (map) of device name to directory "
9572 "where the device is mounted."
9573 msgstr ""
9574
9575 # type: =head2
9576 #: ../src/guestfs-actions.pod:3459
9577 msgid "guestfs_mounts"
9578 msgstr ""
9579
9580 # type: verbatim
9581 #: ../src/guestfs-actions.pod:3461
9582 #, no-wrap
9583 msgid ""
9584 " char **guestfs_mounts (guestfs_h *g);\n"
9585 "\n"
9586 msgstr ""
9587
9588 # type: textblock
9589 #: ../src/guestfs-actions.pod:3463 ../fish/guestfish-actions.pod:2682
9590 msgid ""
9591 "This returns the list of currently mounted filesystems.  It returns the list "
9592 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
9593 msgstr ""
9594
9595 # type: textblock
9596 #: ../src/guestfs-actions.pod:3466 ../fish/guestfish-actions.pod:2685
9597 msgid "Some internal mounts are not shown."
9598 msgstr ""
9599
9600 # type: textblock
9601 #: ../src/guestfs-actions.pod:3468
9602 msgid "See also: C<guestfs_mountpoints>"
9603 msgstr ""
9604
9605 # type: =head2
9606 #: ../src/guestfs-actions.pod:3474
9607 msgid "guestfs_mv"
9608 msgstr ""
9609
9610 # type: verbatim
9611 #: ../src/guestfs-actions.pod:3476
9612 #, no-wrap
9613 msgid ""
9614 " int guestfs_mv (guestfs_h *g,\n"
9615 "\t\tconst char *src,\n"
9616 "\t\tconst char *dest);\n"
9617 "\n"
9618 msgstr ""
9619
9620 # type: textblock
9621 #: ../src/guestfs-actions.pod:3480 ../fish/guestfish-actions.pod:2693
9622 msgid ""
9623 "This moves a file from C<src> to C<dest> where C<dest> is either a "
9624 "destination filename or destination directory."
9625 msgstr ""
9626
9627 # type: =head2
9628 #: ../src/guestfs-actions.pod:3485
9629 msgid "guestfs_ntfs_3g_probe"
9630 msgstr ""
9631
9632 # type: verbatim
9633 #: ../src/guestfs-actions.pod:3487
9634 #, no-wrap
9635 msgid ""
9636 " int guestfs_ntfs_3g_probe (guestfs_h *g,\n"
9637 "\t\tint rw,\n"
9638 "\t\tconst char *device);\n"
9639 "\n"
9640 msgstr ""
9641
9642 # type: textblock
9643 #: ../src/guestfs-actions.pod:3491 ../fish/guestfish-actions.pod:2700
9644 msgid ""
9645 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
9646 "C<device> for mountability.  (Not all NTFS volumes can be mounted "
9647 "read-write, and some cannot be mounted at all)."
9648 msgstr ""
9649
9650 # type: textblock
9651 #: ../src/guestfs-actions.pod:3495 ../fish/guestfish-actions.pod:2704
9652 msgid ""
9653 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
9654 "can be mounted read-write.  Set it to false if you want to test if the "
9655 "volume can be mounted read-only."
9656 msgstr ""
9657
9658 # type: textblock
9659 #: ../src/guestfs-actions.pod:3499 ../fish/guestfish-actions.pod:2708
9660 msgid ""
9661 "The return value is an integer which C<0> if the operation would succeed, or "
9662 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
9663 msgstr ""
9664
9665 # type: =head2
9666 #: ../src/guestfs-actions.pod:3505
9667 msgid "guestfs_ntfsresize"
9668 msgstr ""
9669
9670 # type: verbatim
9671 #: ../src/guestfs-actions.pod:3507
9672 #, no-wrap
9673 msgid ""
9674 " int guestfs_ntfsresize (guestfs_h *g,\n"
9675 "\t\tconst char *device);\n"
9676 "\n"
9677 msgstr ""
9678
9679 # type: textblock
9680 #: ../src/guestfs-actions.pod:3510 ../fish/guestfish-actions.pod:2716
9681 msgid ""
9682 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
9683 "size of the underlying device.  See also L<ntfsresize(8)>."
9684 msgstr ""
9685
9686 # type: =head2
9687 #: ../src/guestfs-actions.pod:3516
9688 msgid "guestfs_ntfsresize_size"
9689 msgstr ""
9690
9691 # type: verbatim
9692 #: ../src/guestfs-actions.pod:3518
9693 #, no-wrap
9694 msgid ""
9695 " int guestfs_ntfsresize_size (guestfs_h *g,\n"
9696 "\t\tconst char *device,\n"
9697 "\t\tint64_t size);\n"
9698 "\n"
9699 msgstr ""
9700
9701 # type: textblock
9702 #: ../src/guestfs-actions.pod:3522
9703 msgid ""
9704 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
9705 "to specify the new size (in bytes) explicitly."
9706 msgstr ""
9707
9708 # type: =head2
9709 #: ../src/guestfs-actions.pod:3527
9710 msgid "guestfs_part_add"
9711 msgstr ""
9712
9713 # type: verbatim
9714 #: ../src/guestfs-actions.pod:3529
9715 #, no-wrap
9716 msgid ""
9717 " int guestfs_part_add (guestfs_h *g,\n"
9718 "\t\tconst char *device,\n"
9719 "\t\tconst char *prlogex,\n"
9720 "\t\tint64_t startsect,\n"
9721 "\t\tint64_t endsect);\n"
9722 "\n"
9723 msgstr ""
9724
9725 # type: textblock
9726 #: ../src/guestfs-actions.pod:3535
9727 msgid ""
9728 "This command adds a partition to C<device>.  If there is no partition table "
9729 "on the device, call C<guestfs_part_init> first."
9730 msgstr ""
9731
9732 # type: textblock
9733 #: ../src/guestfs-actions.pod:3538 ../fish/guestfish-actions.pod:2734
9734 msgid ""
9735 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
9736 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
9737 "C<logical>) and C<e> (or C<extended>) partition types."
9738 msgstr ""
9739
9740 # type: textblock
9741 #: ../src/guestfs-actions.pod:3543 ../fish/guestfish-actions.pod:2739
9742 msgid ""
9743 "C<startsect> and C<endsect> are the start and end of the partition in "
9744 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
9745 "from the end of the disk (C<-1> is the last sector)."
9746 msgstr ""
9747
9748 # type: textblock
9749 #: ../src/guestfs-actions.pod:3547
9750 msgid ""
9751 "Creating a partition which covers the whole disk is not so easy.  Use "
9752 "C<guestfs_part_disk> to do that."
9753 msgstr ""
9754
9755 # type: =head2
9756 #: ../src/guestfs-actions.pod:3552
9757 msgid "guestfs_part_del"
9758 msgstr ""
9759
9760 # type: verbatim
9761 #: ../src/guestfs-actions.pod:3554
9762 #, no-wrap
9763 msgid ""
9764 " int guestfs_part_del (guestfs_h *g,\n"
9765 "\t\tconst char *device,\n"
9766 "\t\tint partnum);\n"
9767 "\n"
9768 msgstr ""
9769
9770 # type: textblock
9771 #: ../src/guestfs-actions.pod:3558 ../fish/guestfish-actions.pod:2750
9772 msgid "This command deletes the partition numbered C<partnum> on C<device>."
9773 msgstr ""
9774
9775 # type: textblock
9776 #: ../src/guestfs-actions.pod:3560 ../fish/guestfish-actions.pod:2752
9777 msgid ""
9778 "Note that in the case of MBR partitioning, deleting an extended partition "
9779 "also deletes any logical partitions it contains."
9780 msgstr ""
9781
9782 # type: =head2
9783 #: ../src/guestfs-actions.pod:3566
9784 msgid "guestfs_part_disk"
9785 msgstr ""
9786
9787 # type: verbatim
9788 #: ../src/guestfs-actions.pod:3568
9789 #, no-wrap
9790 msgid ""
9791 " int guestfs_part_disk (guestfs_h *g,\n"
9792 "\t\tconst char *device,\n"
9793 "\t\tconst char *parttype);\n"
9794 "\n"
9795 msgstr ""
9796
9797 # type: textblock
9798 #: ../src/guestfs-actions.pod:3572
9799 msgid ""
9800 "This command is simply a combination of C<guestfs_part_init> followed by "
9801 "C<guestfs_part_add> to create a single primary partition covering the whole "
9802 "disk."
9803 msgstr ""
9804
9805 # type: textblock
9806 #: ../src/guestfs-actions.pod:3576
9807 msgid ""
9808 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
9809 "possible values are described in C<guestfs_part_init>."
9810 msgstr ""
9811
9812 # type: =head2
9813 #: ../src/guestfs-actions.pod:3584
9814 msgid "guestfs_part_get_bootable"
9815 msgstr ""
9816
9817 # type: verbatim
9818 #: ../src/guestfs-actions.pod:3586
9819 #, no-wrap
9820 msgid ""
9821 " int guestfs_part_get_bootable (guestfs_h *g,\n"
9822 "\t\tconst char *device,\n"
9823 "\t\tint partnum);\n"
9824 "\n"
9825 msgstr ""
9826
9827 # type: textblock
9828 #: ../src/guestfs-actions.pod:3590 ../fish/guestfish-actions.pod:2774
9829 msgid ""
9830 "This command returns true if the partition C<partnum> on C<device> has the "
9831 "bootable flag set."
9832 msgstr ""
9833
9834 # type: textblock
9835 #: ../src/guestfs-actions.pod:3593
9836 msgid "See also C<guestfs_part_set_bootable>."
9837 msgstr ""
9838
9839 # type: =head2
9840 #: ../src/guestfs-actions.pod:3597
9841 msgid "guestfs_part_get_mbr_id"
9842 msgstr ""
9843
9844 # type: verbatim
9845 #: ../src/guestfs-actions.pod:3599
9846 #, no-wrap
9847 msgid ""
9848 " int guestfs_part_get_mbr_id (guestfs_h *g,\n"
9849 "\t\tconst char *device,\n"
9850 "\t\tint partnum);\n"
9851 "\n"
9852 msgstr ""
9853
9854 # type: textblock
9855 #: ../src/guestfs-actions.pod:3603 ../fish/guestfish-actions.pod:2783
9856 msgid ""
9857 "Returns the MBR type byte (also known as the ID byte) from the numbered "
9858 "partition C<partnum>."
9859 msgstr ""
9860
9861 # type: textblock
9862 #: ../src/guestfs-actions.pod:3606 ../src/guestfs-actions.pod:3768
9863 msgid ""
9864 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
9865 "undefined results for other partition table types (see "
9866 "C<guestfs_part_get_parttype>)."
9867 msgstr ""
9868
9869 # type: =head2
9870 #: ../src/guestfs-actions.pod:3612
9871 msgid "guestfs_part_get_parttype"
9872 msgstr ""
9873
9874 # type: verbatim
9875 #: ../src/guestfs-actions.pod:3614
9876 #, no-wrap
9877 msgid ""
9878 " char *guestfs_part_get_parttype (guestfs_h *g,\n"
9879 "\t\tconst char *device);\n"
9880 "\n"
9881 msgstr ""
9882
9883 # type: textblock
9884 #: ../src/guestfs-actions.pod:3617 ../fish/guestfish-actions.pod:2794
9885 msgid ""
9886 "This command examines the partition table on C<device> and returns the "
9887 "partition table type (format) being used."
9888 msgstr ""
9889
9890 # type: textblock
9891 #: ../src/guestfs-actions.pod:3620
9892 msgid ""
9893 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
9894 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
9895 "possible, although unusual.  See C<guestfs_part_init> for a full list."
9896 msgstr ""
9897
9898 # type: =head2
9899 #: ../src/guestfs-actions.pod:3628
9900 msgid "guestfs_part_init"
9901 msgstr ""
9902
9903 # type: verbatim
9904 #: ../src/guestfs-actions.pod:3630
9905 #, no-wrap
9906 msgid ""
9907 " int guestfs_part_init (guestfs_h *g,\n"
9908 "\t\tconst char *device,\n"
9909 "\t\tconst char *parttype);\n"
9910 "\n"
9911 msgstr ""
9912
9913 # type: textblock
9914 #: ../src/guestfs-actions.pod:3634 ../fish/guestfish-actions.pod:2806
9915 msgid ""
9916 "This creates an empty partition table on C<device> of one of the partition "
9917 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
9918 "(for large disks)."
9919 msgstr ""
9920
9921 # type: textblock
9922 #: ../src/guestfs-actions.pod:3638
9923 msgid ""
9924 "Initially there are no partitions.  Following this, you should call "
9925 "C<guestfs_part_add> for each partition required."
9926 msgstr ""
9927
9928 # type: textblock
9929 #: ../src/guestfs-actions.pod:3641 ../fish/guestfish-actions.pod:2813
9930 msgid "Possible values for C<parttype> are:"
9931 msgstr ""
9932
9933 # type: =item
9934 #: ../src/guestfs-actions.pod:3645 ../fish/guestfish-actions.pod:2817
9935 msgid "B<efi> | B<gpt>"
9936 msgstr ""
9937
9938 # type: textblock
9939 #: ../src/guestfs-actions.pod:3647 ../fish/guestfish-actions.pod:2819
9940 msgid "Intel EFI / GPT partition table."
9941 msgstr ""
9942
9943 # type: textblock
9944 #: ../src/guestfs-actions.pod:3649 ../fish/guestfish-actions.pod:2821
9945 msgid ""
9946 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
9947 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
9948 "the C<mbr> format."
9949 msgstr ""
9950
9951 # type: =item
9952 #: ../src/guestfs-actions.pod:3653 ../fish/guestfish-actions.pod:2825
9953 msgid "B<mbr> | B<msdos>"
9954 msgstr ""
9955
9956 # type: textblock
9957 #: ../src/guestfs-actions.pod:3655 ../fish/guestfish-actions.pod:2827
9958 msgid ""
9959 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
9960 "Windows.  This partition type will B<only> work for device sizes up to 2 "
9961 "TB.  For large disks we recommend using C<gpt>."
9962 msgstr ""
9963
9964 # type: textblock
9965 #: ../src/guestfs-actions.pod:3662 ../fish/guestfish-actions.pod:2834
9966 msgid "Other partition table types that may work but are not supported include:"
9967 msgstr ""
9968
9969 # type: =item
9970 #: ../src/guestfs-actions.pod:3667 ../fish/guestfish-actions.pod:2839
9971 msgid "B<aix>"
9972 msgstr ""
9973
9974 # type: textblock
9975 #: ../src/guestfs-actions.pod:3669 ../fish/guestfish-actions.pod:2841
9976 msgid "AIX disk labels."
9977 msgstr ""
9978
9979 # type: =item
9980 #: ../src/guestfs-actions.pod:3671 ../fish/guestfish-actions.pod:2843
9981 msgid "B<amiga> | B<rdb>"
9982 msgstr ""
9983
9984 # type: textblock
9985 #: ../src/guestfs-actions.pod:3673 ../fish/guestfish-actions.pod:2845
9986 msgid "Amiga \"Rigid Disk Block\" format."
9987 msgstr ""
9988
9989 # type: =item
9990 #: ../src/guestfs-actions.pod:3675 ../fish/guestfish-actions.pod:2847
9991 msgid "B<bsd>"
9992 msgstr ""
9993
9994 # type: textblock
9995 #: ../src/guestfs-actions.pod:3677 ../fish/guestfish-actions.pod:2849
9996 msgid "BSD disk labels."
9997 msgstr ""
9998
9999 # type: =item
10000 #: ../src/guestfs-actions.pod:3679 ../fish/guestfish-actions.pod:2851
10001 msgid "B<dasd>"
10002 msgstr ""
10003
10004 # type: textblock
10005 #: ../src/guestfs-actions.pod:3681 ../fish/guestfish-actions.pod:2853
10006 msgid "DASD, used on IBM mainframes."
10007 msgstr ""
10008
10009 # type: =item
10010 #: ../src/guestfs-actions.pod:3683 ../fish/guestfish-actions.pod:2855
10011 msgid "B<dvh>"
10012 msgstr ""
10013
10014 # type: textblock
10015 #: ../src/guestfs-actions.pod:3685 ../fish/guestfish-actions.pod:2857
10016 msgid "MIPS/SGI volumes."
10017 msgstr ""
10018
10019 # type: =item
10020 #: ../src/guestfs-actions.pod:3687 ../fish/guestfish-actions.pod:2859
10021 msgid "B<mac>"
10022 msgstr ""
10023
10024 # type: textblock
10025 #: ../src/guestfs-actions.pod:3689 ../fish/guestfish-actions.pod:2861
10026 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
10027 msgstr ""
10028
10029 # type: =item
10030 #: ../src/guestfs-actions.pod:3691 ../fish/guestfish-actions.pod:2863
10031 msgid "B<pc98>"
10032 msgstr ""
10033
10034 # type: textblock
10035 #: ../src/guestfs-actions.pod:3693 ../fish/guestfish-actions.pod:2865
10036 msgid "NEC PC-98 format, common in Japan apparently."
10037 msgstr ""
10038
10039 # type: =item
10040 #: ../src/guestfs-actions.pod:3695 ../fish/guestfish-actions.pod:2867
10041 msgid "B<sun>"
10042 msgstr ""
10043
10044 # type: textblock
10045 #: ../src/guestfs-actions.pod:3697 ../fish/guestfish-actions.pod:2869
10046 msgid "Sun disk labels."
10047 msgstr ""
10048
10049 # type: =head2
10050 #: ../src/guestfs-actions.pod:3703
10051 msgid "guestfs_part_list"
10052 msgstr ""
10053
10054 # type: verbatim
10055 #: ../src/guestfs-actions.pod:3705
10056 #, no-wrap
10057 msgid ""
10058 " struct guestfs_partition_list *guestfs_part_list (guestfs_h *g,\n"
10059 "\t\tconst char *device);\n"
10060 "\n"
10061 msgstr ""
10062
10063 # type: textblock
10064 #: ../src/guestfs-actions.pod:3708 ../fish/guestfish-actions.pod:2877
10065 msgid ""
10066 "This command parses the partition table on C<device> and returns the list of "
10067 "partitions found."
10068 msgstr ""
10069
10070 # type: textblock
10071 #: ../src/guestfs-actions.pod:3711 ../fish/guestfish-actions.pod:2880
10072 msgid "The fields in the returned structure are:"
10073 msgstr ""
10074
10075 # type: =item
10076 #: ../src/guestfs-actions.pod:3715 ../fish/guestfish-actions.pod:2884
10077 msgid "B<part_num>"
10078 msgstr ""
10079
10080 # type: textblock
10081 #: ../src/guestfs-actions.pod:3717 ../fish/guestfish-actions.pod:2886
10082 msgid "Partition number, counting from 1."
10083 msgstr ""
10084
10085 # type: =item
10086 #: ../src/guestfs-actions.pod:3719 ../fish/guestfish-actions.pod:2888
10087 msgid "B<part_start>"
10088 msgstr ""
10089
10090 # type: textblock
10091 #: ../src/guestfs-actions.pod:3721
10092 msgid ""
10093 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
10094 "the device's sector size, see C<guestfs_blockdev_getss>."
10095 msgstr ""
10096
10097 # type: =item
10098 #: ../src/guestfs-actions.pod:3724 ../fish/guestfish-actions.pod:2893
10099 msgid "B<part_end>"
10100 msgstr ""
10101
10102 # type: textblock
10103 #: ../src/guestfs-actions.pod:3726 ../fish/guestfish-actions.pod:2895
10104 msgid "End of the partition in bytes."
10105 msgstr ""
10106
10107 # type: =item
10108 #: ../src/guestfs-actions.pod:3728 ../fish/guestfish-actions.pod:2897
10109 msgid "B<part_size>"
10110 msgstr ""
10111
10112 # type: textblock
10113 #: ../src/guestfs-actions.pod:3730 ../fish/guestfish-actions.pod:2899
10114 msgid "Size of the partition in bytes."
10115 msgstr ""
10116
10117 # type: textblock
10118 #: ../src/guestfs-actions.pod:3734
10119 msgid ""
10120 "This function returns a C<struct guestfs_partition_list *> (see "
10121 "E<lt>guestfs-structs.hE<gt>), or NULL if there was an error.  I<The caller "
10122 "must call C<guestfs_free_partition_list> after use>."
10123 msgstr ""
10124
10125 # type: =head2
10126 #: ../src/guestfs-actions.pod:3739
10127 msgid "guestfs_part_set_bootable"
10128 msgstr ""
10129
10130 # type: verbatim
10131 #: ../src/guestfs-actions.pod:3741
10132 #, no-wrap
10133 msgid ""
10134 " int guestfs_part_set_bootable (guestfs_h *g,\n"
10135 "\t\tconst char *device,\n"
10136 "\t\tint partnum,\n"
10137 "\t\tint bootable);\n"
10138 "\n"
10139 msgstr ""
10140
10141 # type: textblock
10142 #: ../src/guestfs-actions.pod:3746 ../fish/guestfish-actions.pod:2907
10143 msgid ""
10144 "This sets the bootable flag on partition numbered C<partnum> on device "
10145 "C<device>.  Note that partitions are numbered from 1."
10146 msgstr ""
10147
10148 # type: textblock
10149 #: ../src/guestfs-actions.pod:3749 ../fish/guestfish-actions.pod:2910
10150 msgid ""
10151 "The bootable flag is used by some operating systems (notably Windows) to "
10152 "determine which partition to boot from.  It is by no means universally "
10153 "recognized."
10154 msgstr ""
10155
10156 # type: =head2
10157 #: ../src/guestfs-actions.pod:3755
10158 msgid "guestfs_part_set_mbr_id"
10159 msgstr ""
10160
10161 # type: verbatim
10162 #: ../src/guestfs-actions.pod:3757
10163 #, no-wrap
10164 msgid ""
10165 " int guestfs_part_set_mbr_id (guestfs_h *g,\n"
10166 "\t\tconst char *device,\n"
10167 "\t\tint partnum,\n"
10168 "\t\tint idbyte);\n"
10169 "\n"
10170 msgstr ""
10171
10172 # type: textblock
10173 #: ../src/guestfs-actions.pod:3762 ../fish/guestfish-actions.pod:2918
10174 msgid ""
10175 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
10176 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
10177 "documentation are in fact hexadecimal numbers, but usually documented "
10178 "without any leading \"0x\" which might be confusing."
10179 msgstr ""
10180
10181 # type: =head2
10182 #: ../src/guestfs-actions.pod:3774
10183 msgid "guestfs_part_set_name"
10184 msgstr ""
10185
10186 # type: verbatim
10187 #: ../src/guestfs-actions.pod:3776
10188 #, no-wrap
10189 msgid ""
10190 " int guestfs_part_set_name (guestfs_h *g,\n"
10191 "\t\tconst char *device,\n"
10192 "\t\tint partnum,\n"
10193 "\t\tconst char *name);\n"
10194 "\n"
10195 msgstr ""
10196
10197 # type: textblock
10198 #: ../src/guestfs-actions.pod:3781 ../fish/guestfish-actions.pod:2932
10199 msgid ""
10200 "This sets the partition name on partition numbered C<partnum> on device "
10201 "C<device>.  Note that partitions are numbered from 1."
10202 msgstr ""
10203
10204 # type: textblock
10205 #: ../src/guestfs-actions.pod:3784 ../fish/guestfish-actions.pod:2935
10206 msgid ""
10207 "The partition name can only be set on certain types of partition table.  "
10208 "This works on C<gpt> but not on C<mbr> partitions."
10209 msgstr ""
10210
10211 # type: =head2
10212 #: ../src/guestfs-actions.pod:3789
10213 msgid "guestfs_part_to_dev"
10214 msgstr ""
10215
10216 # type: verbatim
10217 #: ../src/guestfs-actions.pod:3791
10218 #, no-wrap
10219 msgid ""
10220 " char *guestfs_part_to_dev (guestfs_h *g,\n"
10221 "\t\tconst char *partition);\n"
10222 "\n"
10223 msgstr ""
10224
10225 # type: textblock
10226 #: ../src/guestfs-actions.pod:3794 ../fish/guestfish-actions.pod:2942
10227 msgid ""
10228 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
10229 "partition number, returning the device name (eg. \"/dev/sdb\")."
10230 msgstr ""
10231
10232 # type: textblock
10233 #: ../src/guestfs-actions.pod:3798
10234 msgid ""
10235 "The named partition must exist, for example as a string returned from "
10236 "C<guestfs_list_partitions>."
10237 msgstr ""
10238
10239 # type: =head2
10240 #: ../src/guestfs-actions.pod:3804
10241 msgid "guestfs_ping_daemon"
10242 msgstr ""
10243
10244 # type: verbatim
10245 #: ../src/guestfs-actions.pod:3806
10246 #, no-wrap
10247 msgid ""
10248 " int guestfs_ping_daemon (guestfs_h *g);\n"
10249 "\n"
10250 msgstr ""
10251
10252 # type: textblock
10253 #: ../src/guestfs-actions.pod:3808 ../fish/guestfish-actions.pod:2953
10254 msgid ""
10255 "This is a test probe into the guestfs daemon running inside the qemu "
10256 "subprocess.  Calling this function checks that the daemon responds to the "
10257 "ping message, without affecting the daemon or attached block device(s) in "
10258 "any other way."
10259 msgstr ""
10260
10261 # type: =head2
10262 #: ../src/guestfs-actions.pod:3815
10263 msgid "guestfs_pread"
10264 msgstr ""
10265
10266 # type: verbatim
10267 #: ../src/guestfs-actions.pod:3817
10268 #, no-wrap
10269 msgid ""
10270 " char *guestfs_pread (guestfs_h *g,\n"
10271 "\t\tconst char *path,\n"
10272 "\t\tint count,\n"
10273 "\t\tint64_t offset,\n"
10274 "\t\tsize_t *size_r);\n"
10275 "\n"
10276 msgstr ""
10277
10278 # type: textblock
10279 #: ../src/guestfs-actions.pod:3823 ../fish/guestfish-actions.pod:2962
10280 msgid ""
10281 "This command lets you read part of a file.  It reads C<count> bytes of the "
10282 "file, starting at C<offset>, from file C<path>."
10283 msgstr ""
10284
10285 # type: textblock
10286 #: ../src/guestfs-actions.pod:3826 ../fish/guestfish-actions.pod:2965
10287 msgid ""
10288 "This may read fewer bytes than requested.  For further details see the "
10289 "L<pread(2)> system call."
10290 msgstr ""
10291
10292 # type: textblock
10293 #: ../src/guestfs-actions.pod:3829
10294 msgid "See also C<guestfs_pwrite>."
10295 msgstr ""
10296
10297 # type: =head2
10298 #: ../src/guestfs-actions.pod:3838
10299 msgid "guestfs_pvcreate"
10300 msgstr ""
10301
10302 # type: verbatim
10303 #: ../src/guestfs-actions.pod:3840
10304 #, no-wrap
10305 msgid ""
10306 " int guestfs_pvcreate (guestfs_h *g,\n"
10307 "\t\tconst char *device);\n"
10308 "\n"
10309 msgstr ""
10310
10311 # type: textblock
10312 #: ../src/guestfs-actions.pod:3843 ../fish/guestfish-actions.pod:2977
10313 msgid ""
10314 "This creates an LVM physical volume on the named C<device>, where C<device> "
10315 "should usually be a partition name such as C</dev/sda1>."
10316 msgstr ""
10317
10318 # type: =head2
10319 #: ../src/guestfs-actions.pod:3849
10320 msgid "guestfs_pvremove"
10321 msgstr ""
10322
10323 # type: verbatim
10324 #: ../src/guestfs-actions.pod:3851
10325 #, no-wrap
10326 msgid ""
10327 " int guestfs_pvremove (guestfs_h *g,\n"
10328 "\t\tconst char *device);\n"
10329 "\n"
10330 msgstr ""
10331
10332 # type: textblock
10333 #: ../src/guestfs-actions.pod:3854 ../fish/guestfish-actions.pod:2985
10334 msgid ""
10335 "This wipes a physical volume C<device> so that LVM will no longer recognise "
10336 "it."
10337 msgstr ""
10338
10339 # type: textblock
10340 #: ../src/guestfs-actions.pod:3857 ../fish/guestfish-actions.pod:2988
10341 msgid ""
10342 "The implementation uses the C<pvremove> command which refuses to wipe "
10343 "physical volumes that contain any volume groups, so you have to remove those "
10344 "first."
10345 msgstr ""
10346
10347 # type: =head2
10348 #: ../src/guestfs-actions.pod:3863
10349 msgid "guestfs_pvresize"
10350 msgstr ""
10351
10352 # type: verbatim
10353 #: ../src/guestfs-actions.pod:3865
10354 #, no-wrap
10355 msgid ""
10356 " int guestfs_pvresize (guestfs_h *g,\n"
10357 "\t\tconst char *device);\n"
10358 "\n"
10359 msgstr ""
10360
10361 # type: textblock
10362 #: ../src/guestfs-actions.pod:3868 ../fish/guestfish-actions.pod:2996
10363 msgid ""
10364 "This resizes (expands or shrinks) an existing LVM physical volume to match "
10365 "the new size of the underlying device."
10366 msgstr ""
10367
10368 # type: =head2
10369 #: ../src/guestfs-actions.pod:3873
10370 msgid "guestfs_pvresize_size"
10371 msgstr ""
10372
10373 # type: verbatim
10374 #: ../src/guestfs-actions.pod:3875
10375 #, no-wrap
10376 msgid ""
10377 " int guestfs_pvresize_size (guestfs_h *g,\n"
10378 "\t\tconst char *device,\n"
10379 "\t\tint64_t size);\n"
10380 "\n"
10381 msgstr ""
10382
10383 # type: textblock
10384 #: ../src/guestfs-actions.pod:3879
10385 msgid ""
10386 "This command is the same as C<guestfs_pvresize> except that it allows you to "
10387 "specify the new size (in bytes) explicitly."
10388 msgstr ""
10389
10390 # type: =head2
10391 #: ../src/guestfs-actions.pod:3884
10392 msgid "guestfs_pvs"
10393 msgstr ""
10394
10395 # type: verbatim
10396 #: ../src/guestfs-actions.pod:3886
10397 #, no-wrap
10398 msgid ""
10399 " char **guestfs_pvs (guestfs_h *g);\n"
10400 "\n"
10401 msgstr ""
10402
10403 # type: textblock
10404 #: ../src/guestfs-actions.pod:3888 ../fish/guestfish-actions.pod:3010
10405 msgid ""
10406 "List all the physical volumes detected.  This is the equivalent of the "
10407 "L<pvs(8)> command."
10408 msgstr ""
10409
10410 # type: textblock
10411 #: ../src/guestfs-actions.pod:3891 ../fish/guestfish-actions.pod:3013
10412 msgid ""
10413 "This returns a list of just the device names that contain PVs "
10414 "(eg. C</dev/sda2>)."
10415 msgstr ""
10416
10417 # type: textblock
10418 #: ../src/guestfs-actions.pod:3894
10419 msgid "See also C<guestfs_pvs_full>."
10420 msgstr ""
10421
10422 # type: =head2
10423 #: ../src/guestfs-actions.pod:3900
10424 msgid "guestfs_pvs_full"
10425 msgstr ""
10426
10427 # type: verbatim
10428 #: ../src/guestfs-actions.pod:3902
10429 #, no-wrap
10430 msgid ""
10431 " struct guestfs_lvm_pv_list *guestfs_pvs_full (guestfs_h *g);\n"
10432 "\n"
10433 msgstr ""
10434
10435 # type: textblock
10436 #: ../src/guestfs-actions.pod:3904 ../fish/guestfish-actions.pod:3022
10437 msgid ""
10438 "List all the physical volumes detected.  This is the equivalent of the "
10439 "L<pvs(8)> command.  The \"full\" version includes all fields."
10440 msgstr ""
10441
10442 # type: textblock
10443 #: ../src/guestfs-actions.pod:3907
10444 msgid ""
10445 "This function returns a C<struct guestfs_lvm_pv_list *> (see "
10446 "E<lt>guestfs-structs.hE<gt>), or NULL if there was an error.  I<The caller "
10447 "must call C<guestfs_free_lvm_pv_list> after use>."
10448 msgstr ""
10449
10450 # type: =head2
10451 #: ../src/guestfs-actions.pod:3912
10452 msgid "guestfs_pvuuid"
10453 msgstr ""
10454
10455 # type: verbatim
10456 #: ../src/guestfs-actions.pod:3914
10457 #, no-wrap
10458 msgid ""
10459 " char *guestfs_pvuuid (guestfs_h *g,\n"
10460 "\t\tconst char *device);\n"
10461 "\n"
10462 msgstr ""
10463
10464 # type: textblock
10465 #: ../src/guestfs-actions.pod:3917 ../fish/guestfish-actions.pod:3029
10466 msgid "This command returns the UUID of the LVM PV C<device>."
10467 msgstr ""
10468
10469 # type: =head2
10470 #: ../src/guestfs-actions.pod:3922
10471 msgid "guestfs_pwrite"
10472 msgstr ""
10473
10474 # type: verbatim
10475 #: ../src/guestfs-actions.pod:3924
10476 #, no-wrap
10477 msgid ""
10478 " int guestfs_pwrite (guestfs_h *g,\n"
10479 "\t\tconst char *path,\n"
10480 "\t\tconst char *content,\n"
10481 "\t\tsize_t content_size,\n"
10482 "\t\tint64_t offset);\n"
10483 "\n"
10484 msgstr ""
10485
10486 # type: textblock
10487 #: ../src/guestfs-actions.pod:3930 ../fish/guestfish-actions.pod:3035
10488 msgid ""
10489 "This command writes to part of a file.  It writes the data buffer C<content> "
10490 "to the file C<path> starting at offset C<offset>."
10491 msgstr ""
10492
10493 # type: textblock
10494 #: ../src/guestfs-actions.pod:3933 ../fish/guestfish-actions.pod:3038
10495 msgid ""
10496 "This command implements the L<pwrite(2)> system call, and like that system "
10497 "call it may not write the full data requested.  The return value is the "
10498 "number of bytes that were actually written to the file.  This could even be "
10499 "0, although short writes are unlikely for regular files in ordinary "
10500 "circumstances."
10501 msgstr ""
10502
10503 # type: textblock
10504 #: ../src/guestfs-actions.pod:3939
10505 msgid "See also C<guestfs_pread>."
10506 msgstr ""
10507
10508 # type: =head2
10509 #: ../src/guestfs-actions.pod:3946
10510 msgid "guestfs_read_file"
10511 msgstr ""
10512
10513 # type: verbatim
10514 #: ../src/guestfs-actions.pod:3948
10515 #, no-wrap
10516 msgid ""
10517 " char *guestfs_read_file (guestfs_h *g,\n"
10518 "\t\tconst char *path,\n"
10519 "\t\tsize_t *size_r);\n"
10520 "\n"
10521 msgstr ""
10522
10523 # type: textblock
10524 #: ../src/guestfs-actions.pod:3952 ../fish/guestfish-actions.pod:3053
10525 msgid "This calls returns the contents of the file C<path> as a buffer."
10526 msgstr ""
10527
10528 # type: textblock
10529 #: ../src/guestfs-actions.pod:3955
10530 msgid ""
10531 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
10532 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
10533 "function is limited in the total size of file that can be handled."
10534 msgstr ""
10535
10536 # type: =head2
10537 #: ../src/guestfs-actions.pod:3967
10538 msgid "guestfs_read_lines"
10539 msgstr ""
10540
10541 # type: verbatim
10542 #: ../src/guestfs-actions.pod:3969
10543 #, no-wrap
10544 msgid ""
10545 " char **guestfs_read_lines (guestfs_h *g,\n"
10546 "\t\tconst char *path);\n"
10547 "\n"
10548 msgstr ""
10549
10550 # type: textblock
10551 #: ../src/guestfs-actions.pod:3974 ../fish/guestfish-actions.pod:3070
10552 msgid ""
10553 "The file contents are returned as a list of lines.  Trailing C<LF> and "
10554 "C<CRLF> character sequences are I<not> returned."
10555 msgstr ""
10556
10557 # type: textblock
10558 #: ../src/guestfs-actions.pod:3977
10559 msgid ""
10560 "Note that this function cannot correctly handle binary files (specifically, "
10561 "files containing C<\\0> character which is treated as end of line).  For "
10562 "those you need to use the C<guestfs_read_file> function which has a more "
10563 "complex interface."
10564 msgstr ""
10565
10566 # type: =head2
10567 #: ../src/guestfs-actions.pod:3986
10568 msgid "guestfs_readdir"
10569 msgstr ""
10570
10571 # type: verbatim
10572 #: ../src/guestfs-actions.pod:3988
10573 #, no-wrap
10574 msgid ""
10575 " struct guestfs_dirent_list *guestfs_readdir (guestfs_h *g,\n"
10576 "\t\tconst char *dir);\n"
10577 "\n"
10578 msgstr ""
10579
10580 # type: textblock
10581 #: ../src/guestfs-actions.pod:3991 ../fish/guestfish-actions.pod:3082
10582 msgid "This returns the list of directory entries in directory C<dir>."
10583 msgstr ""
10584
10585 # type: textblock
10586 #: ../src/guestfs-actions.pod:3993 ../fish/guestfish-actions.pod:3084
10587 msgid ""
10588 "All entries in the directory are returned, including C<.> and C<..>.  The "
10589 "entries are I<not> sorted, but returned in the same order as the underlying "
10590 "filesystem."
10591 msgstr ""
10592
10593 # type: textblock
10594 #: ../src/guestfs-actions.pod:3997 ../fish/guestfish-actions.pod:3088
10595 msgid ""
10596 "Also this call returns basic file type information about each file.  The "
10597 "C<ftyp> field will contain one of the following characters:"
10598 msgstr ""
10599
10600 # type: =item
10601 #: ../src/guestfs-actions.pod:4002 ../fish/guestfish-actions.pod:3093
10602 msgid "'b'"
10603 msgstr ""
10604
10605 # type: textblock
10606 #: ../src/guestfs-actions.pod:4004 ../fish/guestfish-actions.pod:3095
10607 msgid "Block special"
10608 msgstr ""
10609
10610 # type: =item
10611 #: ../src/guestfs-actions.pod:4006 ../fish/guestfish-actions.pod:3097
10612 msgid "'c'"
10613 msgstr ""
10614
10615 # type: textblock
10616 #: ../src/guestfs-actions.pod:4008 ../fish/guestfish-actions.pod:3099
10617 msgid "Char special"
10618 msgstr ""
10619
10620 # type: =item
10621 #: ../src/guestfs-actions.pod:4010 ../fish/guestfish-actions.pod:3101
10622 msgid "'d'"
10623 msgstr ""
10624
10625 # type: textblock
10626 #: ../src/guestfs-actions.pod:4012 ../fish/guestfish-actions.pod:3103
10627 msgid "Directory"
10628 msgstr ""
10629
10630 # type: =item
10631 #: ../src/guestfs-actions.pod:4014 ../fish/guestfish-actions.pod:3105
10632 msgid "'f'"
10633 msgstr ""
10634
10635 # type: textblock
10636 #: ../src/guestfs-actions.pod:4016 ../fish/guestfish-actions.pod:3107
10637 msgid "FIFO (named pipe)"
10638 msgstr ""
10639
10640 # type: =item
10641 #: ../src/guestfs-actions.pod:4018 ../fish/guestfish-actions.pod:3109
10642 msgid "'l'"
10643 msgstr ""
10644
10645 # type: textblock
10646 #: ../src/guestfs-actions.pod:4020 ../fish/guestfish-actions.pod:3111
10647 msgid "Symbolic link"
10648 msgstr ""
10649
10650 # type: =item
10651 #: ../src/guestfs-actions.pod:4022 ../fish/guestfish-actions.pod:3113
10652 msgid "'r'"
10653 msgstr ""
10654
10655 # type: textblock
10656 #: ../src/guestfs-actions.pod:4024 ../fish/guestfish-actions.pod:3115
10657 msgid "Regular file"
10658 msgstr ""
10659
10660 # type: =item
10661 #: ../src/guestfs-actions.pod:4026 ../fish/guestfish-actions.pod:3117
10662 msgid "'s'"
10663 msgstr ""
10664
10665 # type: textblock
10666 #: ../src/guestfs-actions.pod:4028 ../fish/guestfish-actions.pod:3119
10667 msgid "Socket"
10668 msgstr ""
10669
10670 # type: =item
10671 #: ../src/guestfs-actions.pod:4030 ../fish/guestfish-actions.pod:3121
10672 msgid "'u'"
10673 msgstr ""
10674
10675 # type: textblock
10676 #: ../src/guestfs-actions.pod:4032 ../fish/guestfish-actions.pod:3123
10677 msgid "Unknown file type"
10678 msgstr ""
10679
10680 # type: =item
10681 #: ../src/guestfs-actions.pod:4034 ../fish/guestfish-actions.pod:3125
10682 msgid "'?'"
10683 msgstr ""
10684
10685 # type: textblock
10686 #: ../src/guestfs-actions.pod:4036 ../fish/guestfish-actions.pod:3127
10687 msgid "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
10688 msgstr ""
10689
10690 # type: textblock
10691 #: ../src/guestfs-actions.pod:4041
10692 msgid ""
10693 "This function is primarily intended for use by programs.  To get a simple "
10694 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
10695 "consumption, use C<guestfs_ll>."
10696 msgstr ""
10697
10698 # type: textblock
10699 #: ../src/guestfs-actions.pod:4045
10700 msgid ""
10701 "This function returns a C<struct guestfs_dirent_list *> (see "
10702 "E<lt>guestfs-structs.hE<gt>), or NULL if there was an error.  I<The caller "
10703 "must call C<guestfs_free_dirent_list> after use>."
10704 msgstr ""
10705
10706 # type: =head2
10707 #: ../src/guestfs-actions.pod:4050
10708 msgid "guestfs_readlink"
10709 msgstr ""
10710
10711 # type: verbatim
10712 #: ../src/guestfs-actions.pod:4052
10713 #, no-wrap
10714 msgid ""
10715 " char *guestfs_readlink (guestfs_h *g,\n"
10716 "\t\tconst char *path);\n"
10717 "\n"
10718 msgstr ""
10719
10720 # type: textblock
10721 #: ../src/guestfs-actions.pod:4055 ../fish/guestfish-actions.pod:3140
10722 msgid "This command reads the target of a symbolic link."
10723 msgstr ""
10724
10725 # type: =head2
10726 #: ../src/guestfs-actions.pod:4060
10727 msgid "guestfs_readlinklist"
10728 msgstr ""
10729
10730 # type: verbatim
10731 #: ../src/guestfs-actions.pod:4062
10732 #, no-wrap
10733 msgid ""
10734 " char **guestfs_readlinklist (guestfs_h *g,\n"
10735 "\t\tconst char *path,\n"
10736 "\t\tchar *const *names);\n"
10737 "\n"
10738 msgstr ""
10739
10740 # type: textblock
10741 #: ../src/guestfs-actions.pod:4066 ../fish/guestfish-actions.pod:3146
10742 msgid ""
10743 "This call allows you to do a C<readlink> operation on multiple files, where "
10744 "all files are in the directory C<path>.  C<names> is the list of files from "
10745 "this directory."
10746 msgstr ""
10747
10748 # type: textblock
10749 #: ../src/guestfs-actions.pod:4070 ../fish/guestfish-actions.pod:3150
10750 msgid ""
10751 "On return you get a list of strings, with a one-to-one correspondence to the "
10752 "C<names> list.  Each string is the value of the symbolic link."
10753 msgstr ""
10754
10755 # type: textblock
10756 #: ../src/guestfs-actions.pod:4074 ../fish/guestfish-actions.pod:3154
10757 msgid ""
10758 "If the C<readlink(2)> operation fails on any name, then the corresponding "
10759 "result string is the empty string C<\"\">.  However the whole operation is "
10760 "completed even if there were C<readlink(2)> errors, and so you can call this "
10761 "function with names where you don't know if they are symbolic links already "
10762 "(albeit slightly less efficient)."
10763 msgstr ""
10764
10765 # type: textblock
10766 #: ../src/guestfs-actions.pod:4081 ../fish/guestfish-actions.pod:3161
10767 msgid ""
10768 "This call is intended for programs that want to efficiently list a directory "
10769 "contents without making many round-trips.  Very long directory listings "
10770 "might cause the protocol message size to be exceeded, causing this call to "
10771 "fail.  The caller must split up such requests into smaller groups of names."
10772 msgstr ""
10773
10774 # type: =head2
10775 #: ../src/guestfs-actions.pod:4092
10776 msgid "guestfs_realpath"
10777 msgstr ""
10778
10779 # type: verbatim
10780 #: ../src/guestfs-actions.pod:4094
10781 #, no-wrap
10782 msgid ""
10783 " char *guestfs_realpath (guestfs_h *g,\n"
10784 "\t\tconst char *path);\n"
10785 "\n"
10786 msgstr ""
10787
10788 # type: textblock
10789 #: ../src/guestfs-actions.pod:4097 ../fish/guestfish-actions.pod:3172
10790 msgid ""
10791 "Return the canonicalized absolute pathname of C<path>.  The returned path "
10792 "has no C<.>, C<..> or symbolic link path elements."
10793 msgstr ""
10794
10795 # type: =head2
10796 #: ../src/guestfs-actions.pod:4103
10797 msgid "guestfs_removexattr"
10798 msgstr ""
10799
10800 # type: verbatim
10801 #: ../src/guestfs-actions.pod:4105
10802 #, no-wrap
10803 msgid ""
10804 " int guestfs_removexattr (guestfs_h *g,\n"
10805 "\t\tconst char *xattr,\n"
10806 "\t\tconst char *path);\n"
10807 "\n"
10808 msgstr ""
10809
10810 # type: textblock
10811 #: ../src/guestfs-actions.pod:4109 ../fish/guestfish-actions.pod:3179
10812 msgid "This call removes the extended attribute named C<xattr> of the file C<path>."
10813 msgstr ""
10814
10815 # type: textblock
10816 #: ../src/guestfs-actions.pod:4112
10817 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
10818 msgstr ""
10819
10820 # type: =head2
10821 #: ../src/guestfs-actions.pod:4116
10822 msgid "guestfs_resize2fs"
10823 msgstr ""
10824
10825 # type: verbatim
10826 #: ../src/guestfs-actions.pod:4118
10827 #, no-wrap
10828 msgid ""
10829 " int guestfs_resize2fs (guestfs_h *g,\n"
10830 "\t\tconst char *device);\n"
10831 "\n"
10832 msgstr ""
10833
10834 # type: textblock
10835 #: ../src/guestfs-actions.pod:4121 ../fish/guestfish-actions.pod:3188
10836 msgid ""
10837 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
10838 "underlying device."
10839 msgstr ""
10840
10841 # type: textblock
10842 #: ../src/guestfs-actions.pod:4124
10843 msgid ""
10844 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
10845 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
10846 "sometimes gives an error about this and sometimes not.  In any case, it is "
10847 "always safe to call C<guestfs_e2fsck_f> before calling this function."
10848 msgstr ""
10849
10850 # type: =head2
10851 #: ../src/guestfs-actions.pod:4132
10852 msgid "guestfs_resize2fs_size"
10853 msgstr ""
10854
10855 # type: verbatim
10856 #: ../src/guestfs-actions.pod:4134
10857 #, no-wrap
10858 msgid ""
10859 " int guestfs_resize2fs_size (guestfs_h *g,\n"
10860 "\t\tconst char *device,\n"
10861 "\t\tint64_t size);\n"
10862 "\n"
10863 msgstr ""
10864
10865 # type: textblock
10866 #: ../src/guestfs-actions.pod:4138
10867 msgid ""
10868 "This command is the same as C<guestfs_resize2fs> except that it allows you "
10869 "to specify the new size (in bytes) explicitly."
10870 msgstr ""
10871
10872 # type: =head2
10873 #: ../src/guestfs-actions.pod:4143
10874 msgid "guestfs_rm"
10875 msgstr ""
10876
10877 # type: verbatim
10878 #: ../src/guestfs-actions.pod:4145
10879 #, no-wrap
10880 msgid ""
10881 " int guestfs_rm (guestfs_h *g,\n"
10882 "\t\tconst char *path);\n"
10883 "\n"
10884 msgstr ""
10885
10886 # type: textblock
10887 #: ../src/guestfs-actions.pod:4148 ../fish/guestfish-actions.pod:3208
10888 msgid "Remove the single file C<path>."
10889 msgstr ""
10890
10891 # type: =head2
10892 #: ../src/guestfs-actions.pod:4152
10893 msgid "guestfs_rm_rf"
10894 msgstr ""
10895
10896 # type: verbatim
10897 #: ../src/guestfs-actions.pod:4154
10898 #, no-wrap
10899 msgid ""
10900 " int guestfs_rm_rf (guestfs_h *g,\n"
10901 "\t\tconst char *path);\n"
10902 "\n"
10903 msgstr ""
10904
10905 # type: textblock
10906 #: ../src/guestfs-actions.pod:4157 ../fish/guestfish-actions.pod:3214
10907 msgid ""
10908 "Remove the file or directory C<path>, recursively removing the contents if "
10909 "its a directory.  This is like the C<rm -rf> shell command."
10910 msgstr ""
10911
10912 # type: =head2
10913 #: ../src/guestfs-actions.pod:4163
10914 msgid "guestfs_rmdir"
10915 msgstr ""
10916
10917 # type: verbatim
10918 #: ../src/guestfs-actions.pod:4165
10919 #, no-wrap
10920 msgid ""
10921 " int guestfs_rmdir (guestfs_h *g,\n"
10922 "\t\tconst char *path);\n"
10923 "\n"
10924 msgstr ""
10925
10926 # type: textblock
10927 #: ../src/guestfs-actions.pod:4168 ../fish/guestfish-actions.pod:3222
10928 msgid "Remove the single directory C<path>."
10929 msgstr ""
10930
10931 # type: =head2
10932 #: ../src/guestfs-actions.pod:4172
10933 msgid "guestfs_rmmountpoint"
10934 msgstr ""
10935
10936 # type: verbatim
10937 #: ../src/guestfs-actions.pod:4174
10938 #, no-wrap
10939 msgid ""
10940 " int guestfs_rmmountpoint (guestfs_h *g,\n"
10941 "\t\tconst char *exemptpath);\n"
10942 "\n"
10943 msgstr ""
10944
10945 # type: textblock
10946 #: ../src/guestfs-actions.pod:4177
10947 msgid ""
10948 "This calls removes a mountpoint that was previously created with "
10949 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
10950 msgstr ""
10951
10952 # type: =head2
10953 #: ../src/guestfs-actions.pod:4183
10954 msgid "guestfs_scrub_device"
10955 msgstr ""
10956
10957 # type: verbatim
10958 #: ../src/guestfs-actions.pod:4185
10959 #, no-wrap
10960 msgid ""
10961 " int guestfs_scrub_device (guestfs_h *g,\n"
10962 "\t\tconst char *device);\n"
10963 "\n"
10964 msgstr ""
10965
10966 # type: textblock
10967 #: ../src/guestfs-actions.pod:4188 ../fish/guestfish-actions.pod:3236
10968 msgid ""
10969 "This command writes patterns over C<device> to make data retrieval more "
10970 "difficult."
10971 msgstr ""
10972
10973 # type: textblock
10974 #: ../src/guestfs-actions.pod:4191 ../src/guestfs-actions.pod:4209 ../src/guestfs-actions.pod:4225 ../fish/guestfish-actions.pod:3239 ../fish/guestfish-actions.pod:3254 ../fish/guestfish-actions.pod:3267
10975 msgid ""
10976 "It is an interface to the L<scrub(1)> program.  See that manual page for "
10977 "more details."
10978 msgstr ""
10979
10980 # type: =head2
10981 #: ../src/guestfs-actions.pod:4199
10982 msgid "guestfs_scrub_file"
10983 msgstr ""
10984
10985 # type: verbatim
10986 #: ../src/guestfs-actions.pod:4201
10987 #, no-wrap
10988 msgid ""
10989 " int guestfs_scrub_file (guestfs_h *g,\n"
10990 "\t\tconst char *file);\n"
10991 "\n"
10992 msgstr ""
10993
10994 # type: textblock
10995 #: ../src/guestfs-actions.pod:4204 ../fish/guestfish-actions.pod:3249
10996 msgid ""
10997 "This command writes patterns over a file to make data retrieval more "
10998 "difficult."
10999 msgstr ""
11000
11001 # type: textblock
11002 #: ../src/guestfs-actions.pod:4207 ../fish/guestfish-actions.pod:3252
11003 msgid "The file is I<removed> after scrubbing."
11004 msgstr ""
11005
11006 # type: =head2
11007 #: ../src/guestfs-actions.pod:4214
11008 msgid "guestfs_scrub_freespace"
11009 msgstr ""
11010
11011 # type: verbatim
11012 #: ../src/guestfs-actions.pod:4216
11013 #, no-wrap
11014 msgid ""
11015 " int guestfs_scrub_freespace (guestfs_h *g,\n"
11016 "\t\tconst char *dir);\n"
11017 "\n"
11018 msgstr ""
11019
11020 # type: textblock
11021 #: ../src/guestfs-actions.pod:4219
11022 msgid ""
11023 "This command creates the directory C<dir> and then fills it with files until "
11024 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
11025 "and deletes them.  The intention is to scrub any free space on the partition "
11026 "containing C<dir>."
11027 msgstr ""
11028
11029 # type: =head2
11030 #: ../src/guestfs-actions.pod:4230
11031 msgid "guestfs_set_append"
11032 msgstr ""
11033
11034 # type: verbatim
11035 #: ../src/guestfs-actions.pod:4232
11036 #, no-wrap
11037 msgid ""
11038 " int guestfs_set_append (guestfs_h *g,\n"
11039 "\t\tconst char *append);\n"
11040 "\n"
11041 msgstr ""
11042
11043 # type: textblock
11044 #: ../src/guestfs-actions.pod:4235 ../fish/guestfish-actions.pod:3276
11045 msgid ""
11046 "This function is used to add additional options to the guest kernel command "
11047 "line."
11048 msgstr ""
11049
11050 # type: textblock
11051 #: ../src/guestfs-actions.pod:4238 ../fish/guestfish-actions.pod:3279
11052 msgid ""
11053 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
11054 "environment variable."
11055 msgstr ""
11056
11057 # type: textblock
11058 #: ../src/guestfs-actions.pod:4241 ../fish/guestfish-actions.pod:3282
11059 msgid ""
11060 "Setting C<append> to C<NULL> means I<no> additional options are passed "
11061 "(libguestfs always adds a few of its own)."
11062 msgstr ""
11063
11064 # type: =head2
11065 #: ../src/guestfs-actions.pod:4246
11066 msgid "guestfs_set_autosync"
11067 msgstr ""
11068
11069 # type: verbatim
11070 #: ../src/guestfs-actions.pod:4248
11071 #, no-wrap
11072 msgid ""
11073 " int guestfs_set_autosync (guestfs_h *g,\n"
11074 "\t\tint autosync);\n"
11075 "\n"
11076 msgstr ""
11077
11078 # type: textblock
11079 #: ../src/guestfs-actions.pod:4251
11080 msgid ""
11081 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
11082 "effort attempt to run C<guestfs_umount_all> followed by C<guestfs_sync> when "
11083 "the handle is closed (also if the program exits without closing handles)."
11084 msgstr ""
11085
11086 # type: textblock
11087 #: ../src/guestfs-actions.pod:4256 ../fish/guestfish-actions.pod:3296
11088 msgid ""
11089 "This is disabled by default (except in guestfish where it is enabled by "
11090 "default)."
11091 msgstr ""
11092
11093 # type: =head2
11094 #: ../src/guestfs-actions.pod:4261
11095 msgid "guestfs_set_direct"
11096 msgstr ""
11097
11098 # type: verbatim
11099 #: ../src/guestfs-actions.pod:4263
11100 #, no-wrap
11101 msgid ""
11102 " int guestfs_set_direct (guestfs_h *g,\n"
11103 "\t\tint direct);\n"
11104 "\n"
11105 msgstr ""
11106
11107 # type: textblock
11108 #: ../src/guestfs-actions.pod:4266 ../fish/guestfish-actions.pod:3305
11109 msgid ""
11110 "If the direct appliance mode flag is enabled, then stdin and stdout are "
11111 "passed directly through to the appliance once it is launched."
11112 msgstr ""
11113
11114 # type: textblock
11115 #: ../src/guestfs-actions.pod:4270
11116 msgid ""
11117 "One consequence of this is that log messages aren't caught by the library "
11118 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
11119 "stdout."
11120 msgstr ""
11121
11122 # type: textblock
11123 #: ../src/guestfs-actions.pod:4274 ../fish/guestfish-actions.pod:3313
11124 msgid "You probably don't want to use this unless you know what you are doing."
11125 msgstr ""
11126
11127 # type: textblock
11128 #: ../src/guestfs-actions.pod:4277 ../fish/guestfish-actions.pod:3316
11129 msgid "The default is disabled."
11130 msgstr ""
11131
11132 # type: =head2
11133 #: ../src/guestfs-actions.pod:4281
11134 msgid "guestfs_set_e2label"
11135 msgstr ""
11136
11137 # type: verbatim
11138 #: ../src/guestfs-actions.pod:4283
11139 #, no-wrap
11140 msgid ""
11141 " int guestfs_set_e2label (guestfs_h *g,\n"
11142 "\t\tconst char *device,\n"
11143 "\t\tconst char *label);\n"
11144 "\n"
11145 msgstr ""
11146
11147 # type: textblock
11148 #: ../src/guestfs-actions.pod:4287 ../fish/guestfish-actions.pod:3322
11149 msgid ""
11150 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
11151 "C<label>.  Filesystem labels are limited to 16 characters."
11152 msgstr ""
11153
11154 # type: textblock
11155 #: ../src/guestfs-actions.pod:4291
11156 msgid ""
11157 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
11158 "the existing label on a filesystem."
11159 msgstr ""
11160
11161 # type: =head2
11162 #: ../src/guestfs-actions.pod:4296
11163 msgid "guestfs_set_e2uuid"
11164 msgstr ""
11165
11166 # type: verbatim
11167 #: ../src/guestfs-actions.pod:4298
11168 #, no-wrap
11169 msgid ""
11170 " int guestfs_set_e2uuid (guestfs_h *g,\n"
11171 "\t\tconst char *device,\n"
11172 "\t\tconst char *uuid);\n"
11173 "\n"
11174 msgstr ""
11175
11176 # type: textblock
11177 #: ../src/guestfs-actions.pod:4302 ../fish/guestfish-actions.pod:3333
11178 msgid ""
11179 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
11180 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
11181 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
11182 msgstr ""
11183
11184 # type: textblock
11185 #: ../src/guestfs-actions.pod:4307
11186 msgid ""
11187 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
11188 "the existing UUID of a filesystem."
11189 msgstr ""
11190
11191 # type: =head2
11192 #: ../src/guestfs-actions.pod:4312
11193 msgid "guestfs_set_memsize"
11194 msgstr ""
11195
11196 # type: verbatim
11197 #: ../src/guestfs-actions.pod:4314
11198 #, no-wrap
11199 msgid ""
11200 " int guestfs_set_memsize (guestfs_h *g,\n"
11201 "\t\tint memsize);\n"
11202 "\n"
11203 msgstr ""
11204
11205 # type: textblock
11206 #: ../src/guestfs-actions.pod:4317
11207 msgid ""
11208 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
11209 "This only has any effect if called before C<guestfs_launch>."
11210 msgstr ""
11211
11212 # type: textblock
11213 #: ../src/guestfs-actions.pod:4321 ../fish/guestfish-actions.pod:3351
11214 msgid ""
11215 "You can also change this by setting the environment variable "
11216 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
11217 msgstr ""
11218
11219 # type: =head2
11220 #: ../src/guestfs-actions.pod:4330
11221 msgid "guestfs_set_network"
11222 msgstr ""
11223
11224 # type: verbatim
11225 #: ../src/guestfs-actions.pod:4332
11226 #, no-wrap
11227 msgid ""
11228 " int guestfs_set_network (guestfs_h *g,\n"
11229 "\t\tint network);\n"
11230 "\n"
11231 msgstr ""
11232
11233 # type: textblock
11234 #: ../src/guestfs-actions.pod:4335 ../fish/guestfish-actions.pod:3364
11235 msgid ""
11236 "If C<network> is true, then the network is enabled in the libguestfs "
11237 "appliance.  The default is false."
11238 msgstr ""
11239
11240 # type: textblock
11241 #: ../src/guestfs-actions.pod:4338 ../fish/guestfish-actions.pod:3367
11242 msgid ""
11243 "This affects whether commands are able to access the network (see "
11244 "L<guestfs(3)/RUNNING COMMANDS>)."
11245 msgstr ""
11246
11247 # type: textblock
11248 #: ../src/guestfs-actions.pod:4341
11249 msgid ""
11250 "You must call this before calling C<guestfs_launch>, otherwise it has no "
11251 "effect."
11252 msgstr ""
11253
11254 # type: =head2
11255 #: ../src/guestfs-actions.pod:4346
11256 msgid "guestfs_set_path"
11257 msgstr ""
11258
11259 # type: verbatim
11260 #: ../src/guestfs-actions.pod:4348
11261 #, no-wrap
11262 msgid ""
11263 " int guestfs_set_path (guestfs_h *g,\n"
11264 "\t\tconst char *searchpath);\n"
11265 "\n"
11266 msgstr ""
11267
11268 # type: textblock
11269 #: ../src/guestfs-actions.pod:4351 ../fish/guestfish-actions.pod:3379
11270 msgid "Set the path that libguestfs searches for kernel and initrd.img."
11271 msgstr ""
11272
11273 # type: textblock
11274 #: ../src/guestfs-actions.pod:4353 ../fish/guestfish-actions.pod:3381
11275 msgid ""
11276 "The default is C<$libdir/guestfs> unless overridden by setting "
11277 "C<LIBGUESTFS_PATH> environment variable."
11278 msgstr ""
11279
11280 # type: textblock
11281 #: ../src/guestfs-actions.pod:4356 ../fish/guestfish-actions.pod:3384
11282 msgid "Setting C<path> to C<NULL> restores the default path."
11283 msgstr ""
11284
11285 # type: =head2
11286 #: ../src/guestfs-actions.pod:4360
11287 msgid "guestfs_set_qemu"
11288 msgstr ""
11289
11290 # type: verbatim
11291 #: ../src/guestfs-actions.pod:4362
11292 #, no-wrap
11293 msgid ""
11294 " int guestfs_set_qemu (guestfs_h *g,\n"
11295 "\t\tconst char *qemu);\n"
11296 "\n"
11297 msgstr ""
11298
11299 # type: textblock
11300 #: ../src/guestfs-actions.pod:4365 ../fish/guestfish-actions.pod:3392
11301 msgid "Set the qemu binary that we will use."
11302 msgstr ""
11303
11304 # type: textblock
11305 #: ../src/guestfs-actions.pod:4367 ../fish/guestfish-actions.pod:3394
11306 msgid "The default is chosen when the library was compiled by the configure script."
11307 msgstr ""
11308
11309 # type: textblock
11310 #: ../src/guestfs-actions.pod:4370 ../fish/guestfish-actions.pod:3397
11311 msgid ""
11312 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
11313 "variable."
11314 msgstr ""
11315
11316 # type: textblock
11317 #: ../src/guestfs-actions.pod:4373 ../fish/guestfish-actions.pod:3400
11318 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
11319 msgstr ""
11320
11321 # type: textblock
11322 #: ../src/guestfs-actions.pod:4375 ../fish/guestfish-actions.pod:3402
11323 msgid ""
11324 "Note that you should call this function as early as possible after creating "
11325 "the handle.  This is because some pre-launch operations depend on testing "
11326 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
11327 "don't retest features, and so you might see inconsistent results.  Using the "
11328 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
11329 "the qemu binary at the same time as the handle is created."
11330 msgstr ""
11331
11332 # type: =head2
11333 #: ../src/guestfs-actions.pod:4385
11334 msgid "guestfs_set_recovery_proc"
11335 msgstr ""
11336
11337 # type: verbatim
11338 #: ../src/guestfs-actions.pod:4387
11339 #, no-wrap
11340 msgid ""
11341 " int guestfs_set_recovery_proc (guestfs_h *g,\n"
11342 "\t\tint recoveryproc);\n"
11343 "\n"
11344 msgstr ""
11345
11346 # type: textblock
11347 #: ../src/guestfs-actions.pod:4390
11348 msgid ""
11349 "If this is called with the parameter C<false> then C<guestfs_launch> does "
11350 "not create a recovery process.  The purpose of the recovery process is to "
11351 "stop runaway qemu processes in the case where the main program aborts "
11352 "abruptly."
11353 msgstr ""
11354
11355 # type: textblock
11356 #: ../src/guestfs-actions.pod:4395
11357 msgid ""
11358 "This only has any effect if called before C<guestfs_launch>, and the default "
11359 "is true."
11360 msgstr ""
11361
11362 # type: textblock
11363 #: ../src/guestfs-actions.pod:4398 ../fish/guestfish-actions.pod:3424
11364 msgid ""
11365 "About the only time when you would want to disable this is if the main "
11366 "process will fork itself into the background (\"daemonize\" itself).  In "
11367 "this case the recovery process thinks that the main program has disappeared "
11368 "and so kills qemu, which is not very helpful."
11369 msgstr ""
11370
11371 # type: =head2
11372 #: ../src/guestfs-actions.pod:4406
11373 msgid "guestfs_set_selinux"
11374 msgstr ""
11375
11376 # type: verbatim
11377 #: ../src/guestfs-actions.pod:4408
11378 #, no-wrap
11379 msgid ""
11380 " int guestfs_set_selinux (guestfs_h *g,\n"
11381 "\t\tint selinux);\n"
11382 "\n"
11383 msgstr ""
11384
11385 # type: textblock
11386 #: ../src/guestfs-actions.pod:4411 ../fish/guestfish-actions.pod:3436
11387 msgid ""
11388 "This sets the selinux flag that is passed to the appliance at boot time.  "
11389 "The default is C<selinux=0> (disabled)."
11390 msgstr ""
11391
11392 # type: textblock
11393 #: ../src/guestfs-actions.pod:4414 ../fish/guestfish-actions.pod:3439
11394 msgid ""
11395 "Note that if SELinux is enabled, it is always in Permissive mode "
11396 "(C<enforcing=0>)."
11397 msgstr ""
11398
11399 # type: =head2
11400 #: ../src/guestfs-actions.pod:4422
11401 msgid "guestfs_set_trace"
11402 msgstr ""
11403
11404 # type: verbatim
11405 #: ../src/guestfs-actions.pod:4424
11406 #, no-wrap
11407 msgid ""
11408 " int guestfs_set_trace (guestfs_h *g,\n"
11409 "\t\tint trace);\n"
11410 "\n"
11411 msgstr ""
11412
11413 # type: textblock
11414 #: ../src/guestfs-actions.pod:4427 ../fish/guestfish-actions.pod:3451
11415 msgid ""
11416 "If the command trace flag is set to 1, then commands are printed on stderr "
11417 "before they are executed in a format which is very similar to the one used "
11418 "by guestfish.  In other words, you can run a program with this enabled, and "
11419 "you will get out a script which you can feed to guestfish to perform the "
11420 "same set of actions."
11421 msgstr ""
11422
11423 # type: textblock
11424 #: ../src/guestfs-actions.pod:4434 ../fish/guestfish-actions.pod:3458
11425 msgid ""
11426 "If you want to trace C API calls into libguestfs (and other libraries) then "
11427 "possibly a better way is to use the external ltrace(1) command."
11428 msgstr ""
11429
11430 # type: textblock
11431 #: ../src/guestfs-actions.pod:4438 ../fish/guestfish-actions.pod:3462
11432 msgid ""
11433 "Command traces are disabled unless the environment variable "
11434 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
11435 msgstr ""
11436
11437 # type: =head2
11438 #: ../src/guestfs-actions.pod:4443
11439 msgid "guestfs_set_verbose"
11440 msgstr ""
11441
11442 # type: verbatim
11443 #: ../src/guestfs-actions.pod:4445
11444 #, no-wrap
11445 msgid ""
11446 " int guestfs_set_verbose (guestfs_h *g,\n"
11447 "\t\tint verbose);\n"
11448 "\n"
11449 msgstr ""
11450
11451 # type: textblock
11452 #: ../src/guestfs-actions.pod:4448 ../fish/guestfish-actions.pod:3471
11453 msgid "If C<verbose> is true, this turns on verbose messages (to C<stderr>)."
11454 msgstr ""
11455
11456 # type: textblock
11457 #: ../src/guestfs-actions.pod:4450 ../fish/guestfish-actions.pod:3473
11458 msgid ""
11459 "Verbose messages are disabled unless the environment variable "
11460 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
11461 msgstr ""
11462
11463 # type: =head2
11464 #: ../src/guestfs-actions.pod:4455
11465 msgid "guestfs_setcon"
11466 msgstr ""
11467
11468 # type: verbatim
11469 #: ../src/guestfs-actions.pod:4457
11470 #, no-wrap
11471 msgid ""
11472 " int guestfs_setcon (guestfs_h *g,\n"
11473 "\t\tconst char *context);\n"
11474 "\n"
11475 msgstr ""
11476
11477 # type: textblock
11478 #: ../src/guestfs-actions.pod:4460 ../fish/guestfish-actions.pod:3480
11479 msgid ""
11480 "This sets the SELinux security context of the daemon to the string "
11481 "C<context>."
11482 msgstr ""
11483
11484 # type: textblock
11485 #: ../src/guestfs-actions.pod:4463 ../fish/guestfish-actions.pod:3483
11486 msgid "See the documentation about SELINUX in L<guestfs(3)>."
11487 msgstr ""
11488
11489 # type: =head2
11490 #: ../src/guestfs-actions.pod:4467
11491 msgid "guestfs_setxattr"
11492 msgstr ""
11493
11494 # type: verbatim
11495 #: ../src/guestfs-actions.pod:4469
11496 #, no-wrap
11497 msgid ""
11498 " int guestfs_setxattr (guestfs_h *g,\n"
11499 "\t\tconst char *xattr,\n"
11500 "\t\tconst char *val,\n"
11501 "\t\tint vallen,\n"
11502 "\t\tconst char *path);\n"
11503 "\n"
11504 msgstr ""
11505
11506 # type: textblock
11507 #: ../src/guestfs-actions.pod:4475 ../fish/guestfish-actions.pod:3489
11508 msgid ""
11509 "This call sets the extended attribute named C<xattr> of the file C<path> to "
11510 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
11511 msgstr ""
11512
11513 # type: textblock
11514 #: ../src/guestfs-actions.pod:4479
11515 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
11516 msgstr ""
11517
11518 # type: =head2
11519 #: ../src/guestfs-actions.pod:4483
11520 msgid "guestfs_sfdisk"
11521 msgstr ""
11522
11523 # type: verbatim
11524 #: ../src/guestfs-actions.pod:4485
11525 #, no-wrap
11526 msgid ""
11527 " int guestfs_sfdisk (guestfs_h *g,\n"
11528 "\t\tconst char *device,\n"
11529 "\t\tint cyls,\n"
11530 "\t\tint heads,\n"
11531 "\t\tint sectors,\n"
11532 "\t\tchar *const *lines);\n"
11533 "\n"
11534 msgstr ""
11535
11536 # type: textblock
11537 #: ../src/guestfs-actions.pod:4492 ../fish/guestfish-actions.pod:3499
11538 msgid ""
11539 "This is a direct interface to the L<sfdisk(8)> program for creating "
11540 "partitions on block devices."
11541 msgstr ""
11542
11543 # type: textblock
11544 #: ../src/guestfs-actions.pod:4495 ../fish/guestfish-actions.pod:3502
11545 msgid "C<device> should be a block device, for example C</dev/sda>."
11546 msgstr ""
11547
11548 # type: textblock
11549 #: ../src/guestfs-actions.pod:4497 ../fish/guestfish-actions.pod:3504
11550 msgid ""
11551 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
11552 "sectors on the device, which are passed directly to sfdisk as the I<-C>, "
11553 "I<-H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
11554 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
11555 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
11556 "the kernel) cannot work out the right geometry and you will need to tell it."
11557 msgstr ""
11558
11559 # type: textblock
11560 #: ../src/guestfs-actions.pod:4505 ../fish/guestfish-actions.pod:3512
11561 msgid ""
11562 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
11563 "refer to the L<sfdisk(8)> manpage."
11564 msgstr ""
11565
11566 # type: textblock
11567 #: ../src/guestfs-actions.pod:4508 ../fish/guestfish-actions.pod:3515
11568 msgid ""
11569 "To create a single partition occupying the whole disk, you would pass "
11570 "C<lines> as a single element list, when the single element being the string "
11571 "C<,> (comma)."
11572 msgstr ""
11573
11574 # type: textblock
11575 #: ../src/guestfs-actions.pod:4512
11576 msgid "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
11577 msgstr ""
11578
11579 # type: =head2
11580 #: ../src/guestfs-actions.pod:4520
11581 msgid "guestfs_sfdiskM"
11582 msgstr ""
11583
11584 # type: verbatim
11585 #: ../src/guestfs-actions.pod:4522
11586 #, no-wrap
11587 msgid ""
11588 " int guestfs_sfdiskM (guestfs_h *g,\n"
11589 "\t\tconst char *device,\n"
11590 "\t\tchar *const *lines);\n"
11591 "\n"
11592 msgstr ""
11593
11594 # type: textblock
11595 #: ../src/guestfs-actions.pod:4526
11596 msgid ""
11597 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
11598 "partition sizes are specified in megabytes only (rounded to the nearest "
11599 "cylinder) and you don't need to specify the cyls, heads and sectors "
11600 "parameters which were rarely if ever used anyway."
11601 msgstr ""
11602
11603 # type: textblock
11604 #: ../src/guestfs-actions.pod:4532
11605 msgid ""
11606 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
11607 "C<guestfs_part_disk>"
11608 msgstr ""
11609
11610 # type: =head2
11611 #: ../src/guestfs-actions.pod:4540
11612 msgid "guestfs_sfdisk_N"
11613 msgstr ""
11614
11615 # type: verbatim
11616 #: ../src/guestfs-actions.pod:4542
11617 #, no-wrap
11618 msgid ""
11619 " int guestfs_sfdisk_N (guestfs_h *g,\n"
11620 "\t\tconst char *device,\n"
11621 "\t\tint partnum,\n"
11622 "\t\tint cyls,\n"
11623 "\t\tint heads,\n"
11624 "\t\tint sectors,\n"
11625 "\t\tconst char *line);\n"
11626 "\n"
11627 msgstr ""
11628
11629 # type: textblock
11630 #: ../src/guestfs-actions.pod:4550 ../fish/guestfish-actions.pod:3545
11631 msgid ""
11632 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
11633 "(note: C<n> counts from 1)."
11634 msgstr ""
11635
11636 # type: textblock
11637 #: ../src/guestfs-actions.pod:4553
11638 msgid ""
11639 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
11640 "for the cyls/heads/sectors parameters."
11641 msgstr ""
11642
11643 # type: textblock
11644 #: ../src/guestfs-actions.pod:4556
11645 msgid "See also: C<guestfs_part_add>"
11646 msgstr ""
11647
11648 # type: =head2
11649 #: ../src/guestfs-actions.pod:4563
11650 msgid "guestfs_sfdisk_disk_geometry"
11651 msgstr ""
11652
11653 # type: verbatim
11654 #: ../src/guestfs-actions.pod:4565
11655 #, no-wrap
11656 msgid ""
11657 " char *guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
11658 "\t\tconst char *device);\n"
11659 "\n"
11660 msgstr ""
11661
11662 # type: textblock
11663 #: ../src/guestfs-actions.pod:4568
11664 msgid ""
11665 "This displays the disk geometry of C<device> read from the partition table.  "
11666 "Especially in the case where the underlying block device has been resized, "
11667 "this can be different from the kernel's idea of the geometry (see "
11668 "C<guestfs_sfdisk_kernel_geometry>)."
11669 msgstr ""
11670
11671 # type: textblock
11672 #: ../src/guestfs-actions.pod:4573 ../src/guestfs-actions.pod:4586 ../fish/guestfish-actions.pod:3565 ../fish/guestfish-actions.pod:3574
11673 msgid "The result is in human-readable format, and not designed to be parsed."
11674 msgstr ""
11675
11676 # type: =head2
11677 #: ../src/guestfs-actions.pod:4579
11678 msgid "guestfs_sfdisk_kernel_geometry"
11679 msgstr ""
11680
11681 # type: verbatim
11682 #: ../src/guestfs-actions.pod:4581
11683 #, no-wrap
11684 msgid ""
11685 " char *guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
11686 "\t\tconst char *device);\n"
11687 "\n"
11688 msgstr ""
11689
11690 # type: textblock
11691 #: ../src/guestfs-actions.pod:4584 ../fish/guestfish-actions.pod:3572
11692 msgid "This displays the kernel's idea of the geometry of C<device>."
11693 msgstr ""
11694
11695 # type: =head2
11696 #: ../src/guestfs-actions.pod:4592
11697 msgid "guestfs_sfdisk_l"
11698 msgstr ""
11699
11700 # type: verbatim
11701 #: ../src/guestfs-actions.pod:4594
11702 #, no-wrap
11703 msgid ""
11704 " char *guestfs_sfdisk_l (guestfs_h *g,\n"
11705 "\t\tconst char *device);\n"
11706 "\n"
11707 msgstr ""
11708
11709 # type: textblock
11710 #: ../src/guestfs-actions.pod:4597 ../fish/guestfish-actions.pod:3581
11711 msgid ""
11712 "This displays the partition table on C<device>, in the human-readable output "
11713 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
11714 msgstr ""
11715
11716 # type: textblock
11717 #: ../src/guestfs-actions.pod:4601
11718 msgid "See also: C<guestfs_part_list>"
11719 msgstr ""
11720
11721 # type: =head2
11722 #: ../src/guestfs-actions.pod:4606
11723 msgid "guestfs_sh"
11724 msgstr ""
11725
11726 # type: verbatim
11727 #: ../src/guestfs-actions.pod:4608
11728 #, no-wrap
11729 msgid ""
11730 " char *guestfs_sh (guestfs_h *g,\n"
11731 "\t\tconst char *command);\n"
11732 "\n"
11733 msgstr ""
11734
11735 # type: textblock
11736 #: ../src/guestfs-actions.pod:4611 ../fish/guestfish-actions.pod:3591
11737 msgid ""
11738 "This call runs a command from the guest filesystem via the guest's "
11739 "C</bin/sh>."
11740 msgstr ""
11741
11742 # type: textblock
11743 #: ../src/guestfs-actions.pod:4614
11744 msgid "This is like C<guestfs_command>, but passes the command to:"
11745 msgstr ""
11746
11747 # type: verbatim
11748 #: ../src/guestfs-actions.pod:4616 ../fish/guestfish-actions.pod:3596
11749 #, no-wrap
11750 msgid ""
11751 " /bin/sh -c \"command\"\n"
11752 "\n"
11753 msgstr ""
11754
11755 # type: textblock
11756 #: ../src/guestfs-actions.pod:4618 ../fish/guestfish-actions.pod:3598
11757 msgid ""
11758 "Depending on the guest's shell, this usually results in wildcards being "
11759 "expanded, shell expressions being interpolated and so on."
11760 msgstr ""
11761
11762 # type: textblock
11763 #: ../src/guestfs-actions.pod:4622
11764 msgid "All the provisos about C<guestfs_command> apply to this call."
11765 msgstr ""
11766
11767 # type: =head2
11768 #: ../src/guestfs-actions.pod:4627
11769 msgid "guestfs_sh_lines"
11770 msgstr ""
11771
11772 # type: verbatim
11773 #: ../src/guestfs-actions.pod:4629
11774 #, no-wrap
11775 msgid ""
11776 " char **guestfs_sh_lines (guestfs_h *g,\n"
11777 "\t\tconst char *command);\n"
11778 "\n"
11779 msgstr ""
11780
11781 # type: textblock
11782 #: ../src/guestfs-actions.pod:4632
11783 msgid ""
11784 "This is the same as C<guestfs_sh>, but splits the result into a list of "
11785 "lines."
11786 msgstr ""
11787
11788 # type: textblock
11789 #: ../src/guestfs-actions.pod:4635
11790 msgid "See also: C<guestfs_command_lines>"
11791 msgstr ""
11792
11793 # type: =head2
11794 #: ../src/guestfs-actions.pod:4641
11795 msgid "guestfs_sleep"
11796 msgstr ""
11797
11798 # type: verbatim
11799 #: ../src/guestfs-actions.pod:4643
11800 #, no-wrap
11801 msgid ""
11802 " int guestfs_sleep (guestfs_h *g,\n"
11803 "\t\tint secs);\n"
11804 "\n"
11805 msgstr ""
11806
11807 # type: textblock
11808 #: ../src/guestfs-actions.pod:4646 ../fish/guestfish-actions.pod:3617
11809 msgid "Sleep for C<secs> seconds."
11810 msgstr ""
11811
11812 # type: =head2
11813 #: ../src/guestfs-actions.pod:4650 ../src/guestfs-structs.pod:109
11814 msgid "guestfs_stat"
11815 msgstr ""
11816
11817 # type: verbatim
11818 #: ../src/guestfs-actions.pod:4652
11819 #, no-wrap
11820 msgid ""
11821 " struct guestfs_stat *guestfs_stat (guestfs_h *g,\n"
11822 "\t\tconst char *path);\n"
11823 "\n"
11824 msgstr ""
11825
11826 # type: textblock
11827 #: ../src/guestfs-actions.pod:4657 ../fish/guestfish-actions.pod:3625
11828 msgid "This is the same as the C<stat(2)> system call."
11829 msgstr ""
11830
11831 # type: =head2
11832 #: ../src/guestfs-actions.pod:4663 ../src/guestfs-structs.pod:135
11833 msgid "guestfs_statvfs"
11834 msgstr ""
11835
11836 # type: verbatim
11837 #: ../src/guestfs-actions.pod:4665
11838 #, no-wrap
11839 msgid ""
11840 " struct guestfs_statvfs *guestfs_statvfs (guestfs_h *g,\n"
11841 "\t\tconst char *path);\n"
11842 "\n"
11843 msgstr ""
11844
11845 # type: textblock
11846 #: ../src/guestfs-actions.pod:4668 ../fish/guestfish-actions.pod:3631
11847 msgid ""
11848 "Returns file system statistics for any mounted file system.  C<path> should "
11849 "be a file or directory in the mounted file system (typically it is the mount "
11850 "point itself, but it doesn't need to be)."
11851 msgstr ""
11852
11853 # type: textblock
11854 #: ../src/guestfs-actions.pod:4672 ../fish/guestfish-actions.pod:3635
11855 msgid "This is the same as the C<statvfs(2)> system call."
11856 msgstr ""
11857
11858 # type: textblock
11859 #: ../src/guestfs-actions.pod:4674
11860 msgid ""
11861 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
11862 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
11863 msgstr ""
11864
11865 # type: =head2
11866 #: ../src/guestfs-actions.pod:4678
11867 msgid "guestfs_strings"
11868 msgstr ""
11869
11870 # type: verbatim
11871 #: ../src/guestfs-actions.pod:4680
11872 #, no-wrap
11873 msgid ""
11874 " char **guestfs_strings (guestfs_h *g,\n"
11875 "\t\tconst char *path);\n"
11876 "\n"
11877 msgstr ""
11878
11879 # type: textblock
11880 #: ../src/guestfs-actions.pod:4683 ../fish/guestfish-actions.pod:3641
11881 msgid ""
11882 "This runs the L<strings(1)> command on a file and returns the list of "
11883 "printable strings found."
11884 msgstr ""
11885
11886 # type: =head2
11887 #: ../src/guestfs-actions.pod:4693
11888 msgid "guestfs_strings_e"
11889 msgstr ""
11890
11891 # type: verbatim
11892 #: ../src/guestfs-actions.pod:4695
11893 #, no-wrap
11894 msgid ""
11895 " char **guestfs_strings_e (guestfs_h *g,\n"
11896 "\t\tconst char *encoding,\n"
11897 "\t\tconst char *path);\n"
11898 "\n"
11899 msgstr ""
11900
11901 # type: textblock
11902 #: ../src/guestfs-actions.pod:4699
11903 msgid ""
11904 "This is like the C<guestfs_strings> command, but allows you to specify the "
11905 "encoding of strings that are looked for in the source file C<path>."
11906 msgstr ""
11907
11908 # type: textblock
11909 #: ../src/guestfs-actions.pod:4703 ../fish/guestfish-actions.pod:3655
11910 msgid "Allowed encodings are:"
11911 msgstr ""
11912
11913 # type: =item
11914 #: ../src/guestfs-actions.pod:4707 ../fish/guestfish-actions.pod:3659
11915 msgid "s"
11916 msgstr ""
11917
11918 # type: textblock
11919 #: ../src/guestfs-actions.pod:4709
11920 msgid ""
11921 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
11922 "ISO-8859-X (this is what C<guestfs_strings> uses)."
11923 msgstr ""
11924
11925 # type: =item
11926 #: ../src/guestfs-actions.pod:4712 ../fish/guestfish-actions.pod:3664
11927 msgid "S"
11928 msgstr ""
11929
11930 # type: textblock
11931 #: ../src/guestfs-actions.pod:4714 ../fish/guestfish-actions.pod:3666
11932 msgid "Single 8-bit-byte characters."
11933 msgstr ""
11934
11935 # type: =item
11936 #: ../src/guestfs-actions.pod:4716 ../fish/guestfish-actions.pod:3668
11937 msgid "b"
11938 msgstr ""
11939
11940 # type: textblock
11941 #: ../src/guestfs-actions.pod:4718 ../fish/guestfish-actions.pod:3670
11942 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
11943 msgstr ""
11944
11945 # type: =item
11946 #: ../src/guestfs-actions.pod:4721 ../fish/guestfish-actions.pod:3673
11947 msgid "l (lower case letter L)"
11948 msgstr ""
11949
11950 # type: textblock
11951 #: ../src/guestfs-actions.pod:4723 ../fish/guestfish-actions.pod:3675
11952 msgid ""
11953 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
11954 "examining binaries in Windows guests."
11955 msgstr ""
11956
11957 # type: =item
11958 #: ../src/guestfs-actions.pod:4726 ../fish/guestfish-actions.pod:3678
11959 msgid "B"
11960 msgstr ""
11961
11962 # type: textblock
11963 #: ../src/guestfs-actions.pod:4728 ../fish/guestfish-actions.pod:3680
11964 msgid "32-bit big endian such as UCS-4BE."
11965 msgstr ""
11966
11967 # type: =item
11968 #: ../src/guestfs-actions.pod:4730 ../fish/guestfish-actions.pod:3682
11969 msgid "L"
11970 msgstr ""
11971
11972 # type: textblock
11973 #: ../src/guestfs-actions.pod:4732 ../fish/guestfish-actions.pod:3684
11974 msgid "32-bit little endian such as UCS-4LE."
11975 msgstr ""
11976
11977 # type: textblock
11978 #: ../src/guestfs-actions.pod:4736 ../fish/guestfish-actions.pod:3688
11979 msgid "The returned strings are transcoded to UTF-8."
11980 msgstr ""
11981
11982 # type: =head2
11983 #: ../src/guestfs-actions.pod:4745
11984 msgid "guestfs_swapoff_device"
11985 msgstr ""
11986
11987 # type: verbatim
11988 #: ../src/guestfs-actions.pod:4747
11989 #, no-wrap
11990 msgid ""
11991 " int guestfs_swapoff_device (guestfs_h *g,\n"
11992 "\t\tconst char *device);\n"
11993 "\n"
11994 msgstr ""
11995
11996 # type: textblock
11997 #: ../src/guestfs-actions.pod:4750
11998 msgid ""
11999 "This command disables the libguestfs appliance swap device or partition "
12000 "named C<device>.  See C<guestfs_swapon_device>."
12001 msgstr ""
12002
12003 # type: =head2
12004 #: ../src/guestfs-actions.pod:4756
12005 msgid "guestfs_swapoff_file"
12006 msgstr ""
12007
12008 # type: verbatim
12009 #: ../src/guestfs-actions.pod:4758
12010 #, no-wrap
12011 msgid ""
12012 " int guestfs_swapoff_file (guestfs_h *g,\n"
12013 "\t\tconst char *file);\n"
12014 "\n"
12015 msgstr ""
12016
12017 # type: textblock
12018 #: ../src/guestfs-actions.pod:4761 ../fish/guestfish-actions.pod:3705
12019 msgid "This command disables the libguestfs appliance swap on file."
12020 msgstr ""
12021
12022 # type: =head2
12023 #: ../src/guestfs-actions.pod:4765
12024 msgid "guestfs_swapoff_label"
12025 msgstr ""
12026
12027 # type: verbatim
12028 #: ../src/guestfs-actions.pod:4767
12029 #, no-wrap
12030 msgid ""
12031 " int guestfs_swapoff_label (guestfs_h *g,\n"
12032 "\t\tconst char *label);\n"
12033 "\n"
12034 msgstr ""
12035
12036 # type: textblock
12037 #: ../src/guestfs-actions.pod:4770 ../fish/guestfish-actions.pod:3711
12038 msgid ""
12039 "This command disables the libguestfs appliance swap on labeled swap "
12040 "partition."
12041 msgstr ""
12042
12043 # type: =head2
12044 #: ../src/guestfs-actions.pod:4775
12045 msgid "guestfs_swapoff_uuid"
12046 msgstr ""
12047
12048 # type: verbatim
12049 #: ../src/guestfs-actions.pod:4777
12050 #, no-wrap
12051 msgid ""
12052 " int guestfs_swapoff_uuid (guestfs_h *g,\n"
12053 "\t\tconst char *uuid);\n"
12054 "\n"
12055 msgstr ""
12056
12057 # type: textblock
12058 #: ../src/guestfs-actions.pod:4780 ../fish/guestfish-actions.pod:3718
12059 msgid ""
12060 "This command disables the libguestfs appliance swap partition with the given "
12061 "UUID."
12062 msgstr ""
12063
12064 # type: =head2
12065 #: ../src/guestfs-actions.pod:4785
12066 msgid "guestfs_swapon_device"
12067 msgstr ""
12068
12069 # type: verbatim
12070 #: ../src/guestfs-actions.pod:4787
12071 #, no-wrap
12072 msgid ""
12073 " int guestfs_swapon_device (guestfs_h *g,\n"
12074 "\t\tconst char *device);\n"
12075 "\n"
12076 msgstr ""
12077
12078 # type: textblock
12079 #: ../src/guestfs-actions.pod:4790
12080 msgid ""
12081 "This command enables the libguestfs appliance to use the swap device or "
12082 "partition named C<device>.  The increased memory is made available for all "
12083 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
12084 msgstr ""
12085
12086 # type: textblock
12087 #: ../src/guestfs-actions.pod:4795 ../fish/guestfish-actions.pod:3730
12088 msgid ""
12089 "Note that you should not swap to existing guest swap partitions unless you "
12090 "know what you are doing.  They may contain hibernation information, or other "
12091 "information that the guest doesn't want you to trash.  You also risk leaking "
12092 "information about the host to the guest this way.  Instead, attach a new "
12093 "host device to the guest and swap on that."
12094 msgstr ""
12095
12096 # type: =head2
12097 #: ../src/guestfs-actions.pod:4804
12098 msgid "guestfs_swapon_file"
12099 msgstr ""
12100
12101 # type: verbatim
12102 #: ../src/guestfs-actions.pod:4806
12103 #, no-wrap
12104 msgid ""
12105 " int guestfs_swapon_file (guestfs_h *g,\n"
12106 "\t\tconst char *file);\n"
12107 "\n"
12108 msgstr ""
12109
12110 # type: textblock
12111 #: ../src/guestfs-actions.pod:4809
12112 msgid ""
12113 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
12114 "notes."
12115 msgstr ""
12116
12117 # type: =head2
12118 #: ../src/guestfs-actions.pod:4814
12119 msgid "guestfs_swapon_label"
12120 msgstr ""
12121
12122 # type: verbatim
12123 #: ../src/guestfs-actions.pod:4816
12124 #, no-wrap
12125 msgid ""
12126 " int guestfs_swapon_label (guestfs_h *g,\n"
12127 "\t\tconst char *label);\n"
12128 "\n"
12129 msgstr ""
12130
12131 # type: textblock
12132 #: ../src/guestfs-actions.pod:4819
12133 msgid ""
12134 "This command enables swap to a labeled swap partition.  See "
12135 "C<guestfs_swapon_device> for other notes."
12136 msgstr ""
12137
12138 # type: =head2
12139 #: ../src/guestfs-actions.pod:4824
12140 msgid "guestfs_swapon_uuid"
12141 msgstr ""
12142
12143 # type: verbatim
12144 #: ../src/guestfs-actions.pod:4826
12145 #, no-wrap
12146 msgid ""
12147 " int guestfs_swapon_uuid (guestfs_h *g,\n"
12148 "\t\tconst char *uuid);\n"
12149 "\n"
12150 msgstr ""
12151
12152 # type: textblock
12153 #: ../src/guestfs-actions.pod:4829
12154 msgid ""
12155 "This command enables swap to a swap partition with the given UUID.  See "
12156 "C<guestfs_swapon_device> for other notes."
12157 msgstr ""
12158
12159 # type: =head2
12160 #: ../src/guestfs-actions.pod:4834
12161 msgid "guestfs_sync"
12162 msgstr ""
12163
12164 # type: verbatim
12165 #: ../src/guestfs-actions.pod:4836
12166 #, no-wrap
12167 msgid ""
12168 " int guestfs_sync (guestfs_h *g);\n"
12169 "\n"
12170 msgstr ""
12171
12172 # type: textblock
12173 #: ../src/guestfs-actions.pod:4838 ../fish/guestfish-actions.pod:3762
12174 msgid ""
12175 "This syncs the disk, so that any writes are flushed through to the "
12176 "underlying disk image."
12177 msgstr ""
12178
12179 # type: textblock
12180 #: ../src/guestfs-actions.pod:4841 ../fish/guestfish-actions.pod:3765
12181 msgid ""
12182 "You should always call this if you have modified a disk image, before "
12183 "closing the handle."
12184 msgstr ""
12185
12186 # type: =head2
12187 #: ../src/guestfs-actions.pod:4846
12188 msgid "guestfs_tail"
12189 msgstr ""
12190
12191 # type: verbatim
12192 #: ../src/guestfs-actions.pod:4848
12193 #, no-wrap
12194 msgid ""
12195 " char **guestfs_tail (guestfs_h *g,\n"
12196 "\t\tconst char *path);\n"
12197 "\n"
12198 msgstr ""
12199
12200 # type: textblock
12201 #: ../src/guestfs-actions.pod:4851 ../fish/guestfish-actions.pod:3772
12202 msgid "This command returns up to the last 10 lines of a file as a list of strings."
12203 msgstr ""
12204
12205 # type: =head2
12206 #: ../src/guestfs-actions.pod:4861
12207 msgid "guestfs_tail_n"
12208 msgstr ""
12209
12210 # type: verbatim
12211 #: ../src/guestfs-actions.pod:4863
12212 #, no-wrap
12213 msgid ""
12214 " char **guestfs_tail_n (guestfs_h *g,\n"
12215 "\t\tint nrlines,\n"
12216 "\t\tconst char *path);\n"
12217 "\n"
12218 msgstr ""
12219
12220 # type: textblock
12221 #: ../src/guestfs-actions.pod:4867 ../fish/guestfish-actions.pod:3782
12222 msgid ""
12223 "If the parameter C<nrlines> is a positive number, this returns the last "
12224 "C<nrlines> lines of the file C<path>."
12225 msgstr ""
12226
12227 # type: textblock
12228 #: ../src/guestfs-actions.pod:4870 ../fish/guestfish-actions.pod:3785
12229 msgid ""
12230 "If the parameter C<nrlines> is a negative number, this returns lines from "
12231 "the file C<path>, starting with the C<-nrlines>th line."
12232 msgstr ""
12233
12234 # type: =head2
12235 #: ../src/guestfs-actions.pod:4882
12236 msgid "guestfs_tar_in"
12237 msgstr ""
12238
12239 # type: verbatim
12240 #: ../src/guestfs-actions.pod:4884
12241 #, no-wrap
12242 msgid ""
12243 " int guestfs_tar_in (guestfs_h *g,\n"
12244 "\t\tconst char *tarfile,\n"
12245 "\t\tconst char *directory);\n"
12246 "\n"
12247 msgstr ""
12248
12249 # type: textblock
12250 #: ../src/guestfs-actions.pod:4888 ../fish/guestfish-actions.pod:3797
12251 msgid ""
12252 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
12253 "tar file) into C<directory>."
12254 msgstr ""
12255
12256 # type: textblock
12257 #: ../src/guestfs-actions.pod:4891
12258 msgid "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
12259 msgstr ""
12260
12261 # type: =head2
12262 #: ../src/guestfs-actions.pod:4896
12263 msgid "guestfs_tar_out"
12264 msgstr ""
12265
12266 # type: verbatim
12267 #: ../src/guestfs-actions.pod:4898
12268 #, no-wrap
12269 msgid ""
12270 " int guestfs_tar_out (guestfs_h *g,\n"
12271 "\t\tconst char *directory,\n"
12272 "\t\tconst char *tarfile);\n"
12273 "\n"
12274 msgstr ""
12275
12276 # type: textblock
12277 #: ../src/guestfs-actions.pod:4902 ../fish/guestfish-actions.pod:3809
12278 msgid ""
12279 "This command packs the contents of C<directory> and downloads it to local "
12280 "file C<tarfile>."
12281 msgstr ""
12282
12283 # type: textblock
12284 #: ../src/guestfs-actions.pod:4905
12285 msgid ""
12286 "To download a compressed tarball, use C<guestfs_tgz_out> or "
12287 "C<guestfs_txz_out>."
12288 msgstr ""
12289
12290 # type: =head2
12291 #: ../src/guestfs-actions.pod:4910
12292 msgid "guestfs_tgz_in"
12293 msgstr ""
12294
12295 # type: verbatim
12296 #: ../src/guestfs-actions.pod:4912
12297 #, no-wrap
12298 msgid ""
12299 " int guestfs_tgz_in (guestfs_h *g,\n"
12300 "\t\tconst char *tarball,\n"
12301 "\t\tconst char *directory);\n"
12302 "\n"
12303 msgstr ""
12304
12305 # type: textblock
12306 #: ../src/guestfs-actions.pod:4916 ../fish/guestfish-actions.pod:3821
12307 msgid ""
12308 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
12309 "tar file) into C<directory>."
12310 msgstr ""
12311
12312 # type: textblock
12313 #: ../src/guestfs-actions.pod:4919
12314 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
12315 msgstr ""
12316
12317 # type: =head2
12318 #: ../src/guestfs-actions.pod:4923
12319 msgid "guestfs_tgz_out"
12320 msgstr ""
12321
12322 # type: verbatim
12323 #: ../src/guestfs-actions.pod:4925
12324 #, no-wrap
12325 msgid ""
12326 " int guestfs_tgz_out (guestfs_h *g,\n"
12327 "\t\tconst char *directory,\n"
12328 "\t\tconst char *tarball);\n"
12329 "\n"
12330 msgstr ""
12331
12332 # type: textblock
12333 #: ../src/guestfs-actions.pod:4929 ../fish/guestfish-actions.pod:3832
12334 msgid ""
12335 "This command packs the contents of C<directory> and downloads it to local "
12336 "file C<tarball>."
12337 msgstr ""
12338
12339 # type: textblock
12340 #: ../src/guestfs-actions.pod:4932
12341 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
12342 msgstr ""
12343
12344 # type: =head2
12345 #: ../src/guestfs-actions.pod:4936
12346 msgid "guestfs_touch"
12347 msgstr ""
12348
12349 # type: verbatim
12350 #: ../src/guestfs-actions.pod:4938
12351 #, no-wrap
12352 msgid ""
12353 " int guestfs_touch (guestfs_h *g,\n"
12354 "\t\tconst char *path);\n"
12355 "\n"
12356 msgstr ""
12357
12358 # type: textblock
12359 #: ../src/guestfs-actions.pod:4941 ../fish/guestfish-actions.pod:3843
12360 msgid ""
12361 "Touch acts like the L<touch(1)> command.  It can be used to update the "
12362 "timestamps on a file, or, if the file does not exist, to create a new "
12363 "zero-length file."
12364 msgstr ""
12365
12366 # type: textblock
12367 #: ../src/guestfs-actions.pod:4945 ../fish/guestfish-actions.pod:3847
12368 msgid ""
12369 "This command only works on regular files, and will fail on other file types "
12370 "such as directories, symbolic links, block special etc."
12371 msgstr ""
12372
12373 # type: =head2
12374 #: ../src/guestfs-actions.pod:4950
12375 msgid "guestfs_truncate"
12376 msgstr ""
12377
12378 # type: verbatim
12379 #: ../src/guestfs-actions.pod:4952
12380 #, no-wrap
12381 msgid ""
12382 " int guestfs_truncate (guestfs_h *g,\n"
12383 "\t\tconst char *path);\n"
12384 "\n"
12385 msgstr ""
12386
12387 # type: textblock
12388 #: ../src/guestfs-actions.pod:4955 ../fish/guestfish-actions.pod:3854
12389 msgid ""
12390 "This command truncates C<path> to a zero-length file.  The file must exist "
12391 "already."
12392 msgstr ""
12393
12394 # type: =head2
12395 #: ../src/guestfs-actions.pod:4960
12396 msgid "guestfs_truncate_size"
12397 msgstr ""
12398
12399 # type: verbatim
12400 #: ../src/guestfs-actions.pod:4962
12401 #, no-wrap
12402 msgid ""
12403 " int guestfs_truncate_size (guestfs_h *g,\n"
12404 "\t\tconst char *path,\n"
12405 "\t\tint64_t size);\n"
12406 "\n"
12407 msgstr ""
12408
12409 # type: textblock
12410 #: ../src/guestfs-actions.pod:4966 ../fish/guestfish-actions.pod:3861
12411 msgid ""
12412 "This command truncates C<path> to size C<size> bytes.  The file must exist "
12413 "already."
12414 msgstr ""
12415
12416 # type: textblock
12417 #: ../src/guestfs-actions.pod:4969
12418 msgid ""
12419 "If the current file size is less than C<size> then the file is extended to "
12420 "the required size with zero bytes.  This creates a sparse file (ie. disk "
12421 "blocks are not allocated for the file until you write to it).  To create a "
12422 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
12423 msgstr ""
12424
12425 # type: =head2
12426 #: ../src/guestfs-actions.pod:4977
12427 msgid "guestfs_tune2fs_l"
12428 msgstr ""
12429
12430 # type: verbatim
12431 #: ../src/guestfs-actions.pod:4979
12432 #, no-wrap
12433 msgid ""
12434 " char **guestfs_tune2fs_l (guestfs_h *g,\n"
12435 "\t\tconst char *device);\n"
12436 "\n"
12437 msgstr ""
12438
12439 # type: textblock
12440 #: ../src/guestfs-actions.pod:4982 ../fish/guestfish-actions.pod:3874
12441 msgid ""
12442 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
12443 "C<device>."
12444 msgstr ""
12445
12446 # type: textblock
12447 #: ../src/guestfs-actions.pod:4985 ../fish/guestfish-actions.pod:3877
12448 msgid ""
12449 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
12450 "for more details.  The list of fields returned isn't clearly defined, and "
12451 "depends on both the version of C<tune2fs> that libguestfs was built against, "
12452 "and the filesystem itself."
12453 msgstr ""
12454
12455 # type: =head2
12456 #: ../src/guestfs-actions.pod:4996
12457 msgid "guestfs_txz_in"
12458 msgstr ""
12459
12460 # type: verbatim
12461 #: ../src/guestfs-actions.pod:4998
12462 #, no-wrap
12463 msgid ""
12464 " int guestfs_txz_in (guestfs_h *g,\n"
12465 "\t\tconst char *tarball,\n"
12466 "\t\tconst char *directory);\n"
12467 "\n"
12468 msgstr ""
12469
12470 # type: textblock
12471 #: ../src/guestfs-actions.pod:5002 ../fish/guestfish-actions.pod:3886
12472 msgid ""
12473 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
12474 "tar file) into C<directory>."
12475 msgstr ""
12476
12477 # type: =head2
12478 #: ../src/guestfs-actions.pod:5007
12479 msgid "guestfs_txz_out"
12480 msgstr ""
12481
12482 # type: verbatim
12483 #: ../src/guestfs-actions.pod:5009
12484 #, no-wrap
12485 msgid ""
12486 " int guestfs_txz_out (guestfs_h *g,\n"
12487 "\t\tconst char *directory,\n"
12488 "\t\tconst char *tarball);\n"
12489 "\n"
12490 msgstr ""
12491
12492 # type: textblock
12493 #: ../src/guestfs-actions.pod:5013 ../fish/guestfish-actions.pod:3895
12494 msgid ""
12495 "This command packs the contents of C<directory> and downloads it to local "
12496 "file C<tarball> (as an xz compressed tar archive)."
12497 msgstr ""
12498
12499 # type: =head2
12500 #: ../src/guestfs-actions.pod:5018
12501 msgid "guestfs_umask"
12502 msgstr ""
12503
12504 # type: verbatim
12505 #: ../src/guestfs-actions.pod:5020
12506 #, no-wrap
12507 msgid ""
12508 " int guestfs_umask (guestfs_h *g,\n"
12509 "\t\tint mask);\n"
12510 "\n"
12511 msgstr ""
12512
12513 # type: textblock
12514 #: ../src/guestfs-actions.pod:5023 ../fish/guestfish-actions.pod:3904
12515 msgid ""
12516 "This function sets the mask used for creating new files and device nodes to "
12517 "C<mask & 0777>."
12518 msgstr ""
12519
12520 # type: textblock
12521 #: ../src/guestfs-actions.pod:5026 ../fish/guestfish-actions.pod:3907
12522 msgid ""
12523 "Typical umask values would be C<022> which creates new files with "
12524 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
12525 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
12526 msgstr ""
12527
12528 # type: textblock
12529 #: ../src/guestfs-actions.pod:5031 ../fish/guestfish-actions.pod:3912
12530 msgid ""
12531 "The default umask is C<022>.  This is important because it means that "
12532 "directories and device nodes will be created with C<0644> or C<0755> mode "
12533 "even if you specify C<0777>."
12534 msgstr ""
12535
12536 # type: textblock
12537 #: ../src/guestfs-actions.pod:5035
12538 msgid ""
12539 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
12540 "C<guestfs_mkdir>."
12541 msgstr ""
12542
12543 # type: textblock
12544 #: ../src/guestfs-actions.pod:5038 ../fish/guestfish-actions.pod:3919
12545 msgid "This call returns the previous umask."
12546 msgstr ""
12547
12548 # type: =head2
12549 #: ../src/guestfs-actions.pod:5042
12550 msgid "guestfs_umount"
12551 msgstr ""
12552
12553 # type: verbatim
12554 #: ../src/guestfs-actions.pod:5044
12555 #, no-wrap
12556 msgid ""
12557 " int guestfs_umount (guestfs_h *g,\n"
12558 "\t\tconst char *pathordevice);\n"
12559 "\n"
12560 msgstr ""
12561
12562 # type: textblock
12563 #: ../src/guestfs-actions.pod:5047 ../fish/guestfish-actions.pod:3927
12564 msgid ""
12565 "This unmounts the given filesystem.  The filesystem may be specified either "
12566 "by its mountpoint (path) or the device which contains the filesystem."
12567 msgstr ""
12568
12569 # type: =head2
12570 #: ../src/guestfs-actions.pod:5053
12571 msgid "guestfs_umount_all"
12572 msgstr ""
12573
12574 # type: verbatim
12575 #: ../src/guestfs-actions.pod:5055
12576 #, no-wrap
12577 msgid ""
12578 " int guestfs_umount_all (guestfs_h *g);\n"
12579 "\n"
12580 msgstr ""
12581
12582 # type: textblock
12583 #: ../src/guestfs-actions.pod:5057 ../fish/guestfish-actions.pod:3937
12584 msgid "This unmounts all mounted filesystems."
12585 msgstr ""
12586
12587 # type: textblock
12588 #: ../src/guestfs-actions.pod:5059 ../fish/guestfish-actions.pod:3939
12589 msgid "Some internal mounts are not unmounted by this call."
12590 msgstr ""
12591
12592 # type: =head2
12593 #: ../src/guestfs-actions.pod:5063
12594 msgid "guestfs_upload"
12595 msgstr ""
12596
12597 # type: verbatim
12598 #: ../src/guestfs-actions.pod:5065
12599 #, no-wrap
12600 msgid ""
12601 " int guestfs_upload (guestfs_h *g,\n"
12602 "\t\tconst char *filename,\n"
12603 "\t\tconst char *remotefilename);\n"
12604 "\n"
12605 msgstr ""
12606
12607 # type: textblock
12608 #: ../src/guestfs-actions.pod:5069 ../src/guestfs-actions.pod:5085 ../fish/guestfish-actions.pod:3945 ../fish/guestfish-actions.pod:3958
12609 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
12610 msgstr ""
12611
12612 # type: textblock
12613 #: ../src/guestfs-actions.pod:5074
12614 msgid "See also C<guestfs_download>."
12615 msgstr ""
12616
12617 # type: =head2
12618 #: ../src/guestfs-actions.pod:5078
12619 msgid "guestfs_upload_offset"
12620 msgstr ""
12621
12622 # type: verbatim
12623 #: ../src/guestfs-actions.pod:5080
12624 #, no-wrap
12625 msgid ""
12626 " int guestfs_upload_offset (guestfs_h *g,\n"
12627 "\t\tconst char *filename,\n"
12628 "\t\tconst char *remotefilename,\n"
12629 "\t\tint64_t offset);\n"
12630 "\n"
12631 msgstr ""
12632
12633 # type: textblock
12634 #: ../src/guestfs-actions.pod:5088 ../fish/guestfish-actions.pod:3961
12635 msgid ""
12636 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
12637 "The intention is to overwrite parts of existing files or devices, although "
12638 "if a non-existant file is specified then it is created with a \"hole\" "
12639 "before C<offset>.  The size of the data written is implicit in the size of "
12640 "the source C<filename>."
12641 msgstr ""
12642
12643 # type: textblock
12644 #: ../src/guestfs-actions.pod:5095
12645 msgid ""
12646 "Note that there is no limit on the amount of data that can be uploaded with "
12647 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
12648 "full amount unless an error occurs."
12649 msgstr ""
12650
12651 # type: textblock
12652 #: ../src/guestfs-actions.pod:5100
12653 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
12654 msgstr ""
12655
12656 # type: =head2
12657 #: ../src/guestfs-actions.pod:5104
12658 msgid "guestfs_utimens"
12659 msgstr ""
12660
12661 # type: verbatim
12662 #: ../src/guestfs-actions.pod:5106
12663 #, no-wrap
12664 msgid ""
12665 " int guestfs_utimens (guestfs_h *g,\n"
12666 "\t\tconst char *path,\n"
12667 "\t\tint64_t atsecs,\n"
12668 "\t\tint64_t atnsecs,\n"
12669 "\t\tint64_t mtsecs,\n"
12670 "\t\tint64_t mtnsecs);\n"
12671 "\n"
12672 msgstr ""
12673
12674 # type: textblock
12675 #: ../src/guestfs-actions.pod:5113 ../fish/guestfish-actions.pod:3981
12676 msgid "This command sets the timestamps of a file with nanosecond precision."
12677 msgstr ""
12678
12679 # type: textblock
12680 #: ../src/guestfs-actions.pod:5116 ../fish/guestfish-actions.pod:3984
12681 msgid ""
12682 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
12683 "from the epoch."
12684 msgstr ""
12685
12686 # type: textblock
12687 #: ../src/guestfs-actions.pod:5119 ../fish/guestfish-actions.pod:3987
12688 msgid ""
12689 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
12690 "nanoseconds from the epoch."
12691 msgstr ""
12692
12693 # type: textblock
12694 #: ../src/guestfs-actions.pod:5122 ../fish/guestfish-actions.pod:3990
12695 msgid ""
12696 "If the C<*nsecs> field contains the special value C<-1> then the "
12697 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
12698 "ignored in this case)."
12699 msgstr ""
12700
12701 # type: textblock
12702 #: ../src/guestfs-actions.pod:5126 ../fish/guestfish-actions.pod:3994
12703 msgid ""
12704 "If the C<*nsecs> field contains the special value C<-2> then the "
12705 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
12706 "in this case)."
12707 msgstr ""
12708
12709 # type: =head2
12710 #: ../src/guestfs-actions.pod:5132 ../src/guestfs-structs.pod:175
12711 msgid "guestfs_version"
12712 msgstr ""
12713
12714 # type: verbatim
12715 #: ../src/guestfs-actions.pod:5134
12716 #, no-wrap
12717 msgid ""
12718 " struct guestfs_version *guestfs_version (guestfs_h *g);\n"
12719 "\n"
12720 msgstr ""
12721
12722 # type: textblock
12723 #: ../src/guestfs-actions.pod:5136 ../fish/guestfish-actions.pod:4002
12724 msgid "Return the libguestfs version number that the program is linked against."
12725 msgstr ""
12726
12727 # type: textblock
12728 #: ../src/guestfs-actions.pod:5139 ../fish/guestfish-actions.pod:4005
12729 msgid ""
12730 "Note that because of dynamic linking this is not necessarily the version of "
12731 "libguestfs that you compiled against.  You can compile the program, and then "
12732 "at runtime dynamically link against a completely different C<libguestfs.so> "
12733 "library."
12734 msgstr ""
12735
12736 # type: textblock
12737 #: ../src/guestfs-actions.pod:5144 ../fish/guestfish-actions.pod:4010
12738 msgid ""
12739 "This call was added in version C<1.0.58>.  In previous versions of "
12740 "libguestfs there was no way to get the version number.  From C code you can "
12741 "use dynamic linker functions to find out if this symbol exists (if it "
12742 "doesn't, then it's an earlier version)."
12743 msgstr ""
12744
12745 # type: textblock
12746 #: ../src/guestfs-actions.pod:5150 ../fish/guestfish-actions.pod:4016
12747 msgid ""
12748 "The call returns a structure with four elements.  The first three (C<major>, "
12749 "C<minor> and C<release>) are numbers and correspond to the usual version "
12750 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
12751 "but may be used for distro-specific information."
12752 msgstr ""
12753
12754 # type: textblock
12755 #: ../src/guestfs-actions.pod:5156 ../fish/guestfish-actions.pod:4022
12756 msgid "To construct the original version string: C<$major.$minor.$release$extra>"
12757 msgstr ""
12758
12759 # type: textblock
12760 #: ../src/guestfs-actions.pod:5159 ../fish/guestfish-actions.pod:4025
12761 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
12762 msgstr ""
12763
12764 # type: textblock
12765 #: ../src/guestfs-actions.pod:5161
12766 msgid ""
12767 "I<Note:> Don't use this call to test for availability of features.  In "
12768 "enterprise distributions we backport features from later versions into "
12769 "earlier versions, making this an unreliable way to test for features.  Use "
12770 "C<guestfs_available> instead."
12771 msgstr ""
12772
12773 # type: textblock
12774 #: ../src/guestfs-actions.pod:5167
12775 msgid ""
12776 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
12777 "error.  I<The caller must call C<guestfs_free_version> after use>."
12778 msgstr ""
12779
12780 # type: =head2
12781 #: ../src/guestfs-actions.pod:5171
12782 msgid "guestfs_vfs_label"
12783 msgstr ""
12784
12785 # type: verbatim
12786 #: ../src/guestfs-actions.pod:5173
12787 #, no-wrap
12788 msgid ""
12789 " char *guestfs_vfs_label (guestfs_h *g,\n"
12790 "\t\tconst char *device);\n"
12791 "\n"
12792 msgstr ""
12793
12794 # type: textblock
12795 #: ../src/guestfs-actions.pod:5176 ../fish/guestfish-actions.pod:4037
12796 msgid "This returns the filesystem label of the filesystem on C<device>."
12797 msgstr ""
12798
12799 # type: textblock
12800 #: ../src/guestfs-actions.pod:5179 ../fish/guestfish-actions.pod:4040
12801 msgid "If the filesystem is unlabeled, this returns the empty string."
12802 msgstr ""
12803
12804 # type: textblock
12805 #: ../src/guestfs-actions.pod:5181
12806 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
12807 msgstr ""
12808
12809 # type: =head2
12810 #: ../src/guestfs-actions.pod:5186
12811 msgid "guestfs_vfs_type"
12812 msgstr ""
12813
12814 # type: verbatim
12815 #: ../src/guestfs-actions.pod:5188
12816 #, no-wrap
12817 msgid ""
12818 " char *guestfs_vfs_type (guestfs_h *g,\n"
12819 "\t\tconst char *device);\n"
12820 "\n"
12821 msgstr ""
12822
12823 # type: textblock
12824 #: ../src/guestfs-actions.pod:5191 ../fish/guestfish-actions.pod:4048
12825 msgid ""
12826 "This command gets the filesystem type corresponding to the filesystem on "
12827 "C<device>."
12828 msgstr ""
12829
12830 # type: textblock
12831 #: ../src/guestfs-actions.pod:5194 ../fish/guestfish-actions.pod:4051
12832 msgid ""
12833 "For most filesystems, the result is the name of the Linux VFS module which "
12834 "would be used to mount this filesystem if you mounted it without specifying "
12835 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
12836 msgstr ""
12837
12838 # type: =head2
12839 #: ../src/guestfs-actions.pod:5202
12840 msgid "guestfs_vfs_uuid"
12841 msgstr ""
12842
12843 # type: verbatim
12844 #: ../src/guestfs-actions.pod:5204
12845 #, no-wrap
12846 msgid ""
12847 " char *guestfs_vfs_uuid (guestfs_h *g,\n"
12848 "\t\tconst char *device);\n"
12849 "\n"
12850 msgstr ""
12851
12852 # type: textblock
12853 #: ../src/guestfs-actions.pod:5207 ../fish/guestfish-actions.pod:4060
12854 msgid "This returns the filesystem UUID of the filesystem on C<device>."
12855 msgstr ""
12856
12857 # type: textblock
12858 #: ../src/guestfs-actions.pod:5210 ../fish/guestfish-actions.pod:4063
12859 msgid "If the filesystem does not have a UUID, this returns the empty string."
12860 msgstr ""
12861
12862 # type: textblock
12863 #: ../src/guestfs-actions.pod:5212
12864 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
12865 msgstr ""
12866
12867 # type: =head2
12868 #: ../src/guestfs-actions.pod:5217
12869 msgid "guestfs_vg_activate"
12870 msgstr ""
12871
12872 # type: verbatim
12873 #: ../src/guestfs-actions.pod:5219
12874 #, no-wrap
12875 msgid ""
12876 " int guestfs_vg_activate (guestfs_h *g,\n"
12877 "\t\tint activate,\n"
12878 "\t\tchar *const *volgroups);\n"
12879 "\n"
12880 msgstr ""
12881
12882 # type: textblock
12883 #: ../src/guestfs-actions.pod:5223 ../fish/guestfish-actions.pod:4071
12884 msgid ""
12885 "This command activates or (if C<activate> is false) deactivates all logical "
12886 "volumes in the listed volume groups C<volgroups>.  If activated, then they "
12887 "are made known to the kernel, ie. they appear as C</dev/mapper> devices.  If "
12888 "deactivated, then those devices disappear."
12889 msgstr ""
12890
12891 # type: textblock
12892 #: ../src/guestfs-actions.pod:5229 ../fish/guestfish-actions.pod:4077
12893 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
12894 msgstr ""
12895
12896 # type: textblock
12897 #: ../src/guestfs-actions.pod:5231 ../fish/guestfish-actions.pod:4079
12898 msgid ""
12899 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
12900 "activated or deactivated."
12901 msgstr ""
12902
12903 # type: =head2
12904 #: ../src/guestfs-actions.pod:5236
12905 msgid "guestfs_vg_activate_all"
12906 msgstr ""
12907
12908 # type: verbatim
12909 #: ../src/guestfs-actions.pod:5238
12910 #, no-wrap
12911 msgid ""
12912 " int guestfs_vg_activate_all (guestfs_h *g,\n"
12913 "\t\tint activate);\n"
12914 "\n"
12915 msgstr ""
12916
12917 # type: textblock
12918 #: ../src/guestfs-actions.pod:5241 ../fish/guestfish-actions.pod:4086
12919 msgid ""
12920 "This command activates or (if C<activate> is false) deactivates all logical "
12921 "volumes in all volume groups.  If activated, then they are made known to the "
12922 "kernel, ie. they appear as C</dev/mapper> devices.  If deactivated, then "
12923 "those devices disappear."
12924 msgstr ""
12925
12926 # type: textblock
12927 #: ../src/guestfs-actions.pod:5247 ../fish/guestfish-actions.pod:4092
12928 msgid "This command is the same as running C<vgchange -a y|n>"
12929 msgstr ""
12930
12931 # type: =head2
12932 #: ../src/guestfs-actions.pod:5251
12933 msgid "guestfs_vgcreate"
12934 msgstr ""
12935
12936 # type: verbatim
12937 #: ../src/guestfs-actions.pod:5253
12938 #, no-wrap
12939 msgid ""
12940 " int guestfs_vgcreate (guestfs_h *g,\n"
12941 "\t\tconst char *volgroup,\n"
12942 "\t\tchar *const *physvols);\n"
12943 "\n"
12944 msgstr ""
12945
12946 # type: textblock
12947 #: ../src/guestfs-actions.pod:5257 ../fish/guestfish-actions.pod:4098
12948 msgid ""
12949 "This creates an LVM volume group called C<volgroup> from the non-empty list "
12950 "of physical volumes C<physvols>."
12951 msgstr ""
12952
12953 # type: =head2
12954 #: ../src/guestfs-actions.pod:5262
12955 msgid "guestfs_vglvuuids"
12956 msgstr ""
12957
12958 # type: verbatim
12959 #: ../src/guestfs-actions.pod:5264
12960 #, no-wrap
12961 msgid ""
12962 " char **guestfs_vglvuuids (guestfs_h *g,\n"
12963 "\t\tconst char *vgname);\n"
12964 "\n"
12965 msgstr ""
12966
12967 # type: textblock
12968 #: ../src/guestfs-actions.pod:5267 ../fish/guestfish-actions.pod:4105
12969 msgid ""
12970 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
12971 "volumes created in this volume group."
12972 msgstr ""
12973
12974 # type: textblock
12975 #: ../src/guestfs-actions.pod:5270
12976 msgid ""
12977 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
12978 "associate logical volumes and volume groups."
12979 msgstr ""
12980
12981 # type: textblock
12982 #: ../src/guestfs-actions.pod:5273
12983 msgid "See also C<guestfs_vgpvuuids>."
12984 msgstr ""
12985
12986 # type: =head2
12987 #: ../src/guestfs-actions.pod:5279
12988 msgid "guestfs_vgpvuuids"
12989 msgstr ""
12990
12991 # type: verbatim
12992 #: ../src/guestfs-actions.pod:5281
12993 #, no-wrap
12994 msgid ""
12995 " char **guestfs_vgpvuuids (guestfs_h *g,\n"
12996 "\t\tconst char *vgname);\n"
12997 "\n"
12998 msgstr ""
12999
13000 # type: textblock
13001 #: ../src/guestfs-actions.pod:5284 ../fish/guestfish-actions.pod:4117
13002 msgid ""
13003 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
13004 "volumes that this volume group resides on."
13005 msgstr ""
13006
13007 # type: textblock
13008 #: ../src/guestfs-actions.pod:5287
13009 msgid ""
13010 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
13011 "associate physical volumes and volume groups."
13012 msgstr ""
13013
13014 # type: textblock
13015 #: ../src/guestfs-actions.pod:5290
13016 msgid "See also C<guestfs_vglvuuids>."
13017 msgstr ""
13018
13019 # type: =head2
13020 #: ../src/guestfs-actions.pod:5296
13021 msgid "guestfs_vgremove"
13022 msgstr ""
13023
13024 # type: verbatim
13025 #: ../src/guestfs-actions.pod:5298
13026 #, no-wrap
13027 msgid ""
13028 " int guestfs_vgremove (guestfs_h *g,\n"
13029 "\t\tconst char *vgname);\n"
13030 "\n"
13031 msgstr ""
13032
13033 # type: textblock
13034 #: ../src/guestfs-actions.pod:5301 ../fish/guestfish-actions.pod:4129
13035 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
13036 msgstr ""
13037
13038 # type: textblock
13039 #: ../src/guestfs-actions.pod:5303 ../fish/guestfish-actions.pod:4131
13040 msgid "This also forcibly removes all logical volumes in the volume group (if any)."
13041 msgstr ""
13042
13043 # type: =head2
13044 #: ../src/guestfs-actions.pod:5308
13045 msgid "guestfs_vgrename"
13046 msgstr ""
13047
13048 # type: verbatim
13049 #: ../src/guestfs-actions.pod:5310
13050 #, no-wrap
13051 msgid ""
13052 " int guestfs_vgrename (guestfs_h *g,\n"
13053 "\t\tconst char *volgroup,\n"
13054 "\t\tconst char *newvolgroup);\n"
13055 "\n"
13056 msgstr ""
13057
13058 # type: textblock
13059 #: ../src/guestfs-actions.pod:5314 ../fish/guestfish-actions.pod:4138
13060 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
13061 msgstr ""
13062
13063 # type: =head2
13064 #: ../src/guestfs-actions.pod:5318
13065 msgid "guestfs_vgs"
13066 msgstr ""
13067
13068 # type: verbatim
13069 #: ../src/guestfs-actions.pod:5320
13070 #, no-wrap
13071 msgid ""
13072 " char **guestfs_vgs (guestfs_h *g);\n"
13073 "\n"
13074 msgstr ""
13075
13076 # type: textblock
13077 #: ../src/guestfs-actions.pod:5322 ../fish/guestfish-actions.pod:4144
13078 msgid ""
13079 "List all the volumes groups detected.  This is the equivalent of the "
13080 "L<vgs(8)> command."
13081 msgstr ""
13082
13083 # type: textblock
13084 #: ../src/guestfs-actions.pod:5325 ../fish/guestfish-actions.pod:4147
13085 msgid ""
13086 "This returns a list of just the volume group names that were detected "
13087 "(eg. C<VolGroup00>)."
13088 msgstr ""
13089
13090 # type: textblock
13091 #: ../src/guestfs-actions.pod:5328
13092 msgid "See also C<guestfs_vgs_full>."
13093 msgstr ""
13094
13095 # type: =head2
13096 #: ../src/guestfs-actions.pod:5334
13097 msgid "guestfs_vgs_full"
13098 msgstr ""
13099
13100 # type: verbatim
13101 #: ../src/guestfs-actions.pod:5336
13102 #, no-wrap
13103 msgid ""
13104 " struct guestfs_lvm_vg_list *guestfs_vgs_full (guestfs_h *g);\n"
13105 "\n"
13106 msgstr ""
13107
13108 # type: textblock
13109 #: ../src/guestfs-actions.pod:5338 ../fish/guestfish-actions.pod:4156
13110 msgid ""
13111 "List all the volumes groups detected.  This is the equivalent of the "
13112 "L<vgs(8)> command.  The \"full\" version includes all fields."
13113 msgstr ""
13114
13115 # type: textblock
13116 #: ../src/guestfs-actions.pod:5341
13117 msgid ""
13118 "This function returns a C<struct guestfs_lvm_vg_list *> (see "
13119 "E<lt>guestfs-structs.hE<gt>), or NULL if there was an error.  I<The caller "
13120 "must call C<guestfs_free_lvm_vg_list> after use>."
13121 msgstr ""
13122
13123 # type: =head2
13124 #: ../src/guestfs-actions.pod:5346
13125 msgid "guestfs_vgscan"
13126 msgstr ""
13127
13128 # type: verbatim
13129 #: ../src/guestfs-actions.pod:5348
13130 #, no-wrap
13131 msgid ""
13132 " int guestfs_vgscan (guestfs_h *g);\n"
13133 "\n"
13134 msgstr ""
13135
13136 # type: textblock
13137 #: ../src/guestfs-actions.pod:5350 ../fish/guestfish-actions.pod:4163
13138 msgid ""
13139 "This rescans all block devices and rebuilds the list of LVM physical "
13140 "volumes, volume groups and logical volumes."
13141 msgstr ""
13142
13143 # type: =head2
13144 #: ../src/guestfs-actions.pod:5355
13145 msgid "guestfs_vguuid"
13146 msgstr ""
13147
13148 # type: verbatim
13149 #: ../src/guestfs-actions.pod:5357
13150 #, no-wrap
13151 msgid ""
13152 " char *guestfs_vguuid (guestfs_h *g,\n"
13153 "\t\tconst char *vgname);\n"
13154 "\n"
13155 msgstr ""
13156
13157 # type: textblock
13158 #: ../src/guestfs-actions.pod:5360 ../fish/guestfish-actions.pod:4170
13159 msgid "This command returns the UUID of the LVM VG named C<vgname>."
13160 msgstr ""
13161
13162 # type: =head2
13163 #: ../src/guestfs-actions.pod:5365
13164 msgid "guestfs_wait_ready"
13165 msgstr ""
13166
13167 # type: verbatim
13168 #: ../src/guestfs-actions.pod:5367
13169 #, no-wrap
13170 msgid ""
13171 " int guestfs_wait_ready (guestfs_h *g);\n"
13172 "\n"
13173 msgstr ""
13174
13175 # type: textblock
13176 #: ../src/guestfs-actions.pod:5369
13177 msgid "This function is a no op."
13178 msgstr ""
13179
13180 # type: textblock
13181 #: ../src/guestfs-actions.pod:5371
13182 msgid ""
13183 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
13184 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
13185 "is no longer necessary because C<guestfs_launch> now does the waiting."
13186 msgstr ""
13187
13188 # type: textblock
13189 #: ../src/guestfs-actions.pod:5376
13190 msgid ""
13191 "If you see any calls to this function in code then you can just remove them, "
13192 "unless you want to retain compatibility with older versions of the API."
13193 msgstr ""
13194
13195 # type: =head2
13196 #: ../src/guestfs-actions.pod:5382
13197 msgid "guestfs_wc_c"
13198 msgstr ""
13199
13200 # type: verbatim
13201 #: ../src/guestfs-actions.pod:5384
13202 #, no-wrap
13203 msgid ""
13204 " int guestfs_wc_c (guestfs_h *g,\n"
13205 "\t\tconst char *path);\n"
13206 "\n"
13207 msgstr ""
13208
13209 # type: textblock
13210 #: ../src/guestfs-actions.pod:5387 ../fish/guestfish-actions.pod:4176
13211 msgid ""
13212 "This command counts the characters in a file, using the C<wc -c> external "
13213 "command."
13214 msgstr ""
13215
13216 # type: =head2
13217 #: ../src/guestfs-actions.pod:5392
13218 msgid "guestfs_wc_l"
13219 msgstr ""
13220
13221 # type: verbatim
13222 #: ../src/guestfs-actions.pod:5394
13223 #, no-wrap
13224 msgid ""
13225 " int guestfs_wc_l (guestfs_h *g,\n"
13226 "\t\tconst char *path);\n"
13227 "\n"
13228 msgstr ""
13229
13230 # type: textblock
13231 #: ../src/guestfs-actions.pod:5397 ../fish/guestfish-actions.pod:4183
13232 msgid ""
13233 "This command counts the lines in a file, using the C<wc -l> external "
13234 "command."
13235 msgstr ""
13236
13237 # type: =head2
13238 #: ../src/guestfs-actions.pod:5402
13239 msgid "guestfs_wc_w"
13240 msgstr ""
13241
13242 # type: verbatim
13243 #: ../src/guestfs-actions.pod:5404
13244 #, no-wrap
13245 msgid ""
13246 " int guestfs_wc_w (guestfs_h *g,\n"
13247 "\t\tconst char *path);\n"
13248 "\n"
13249 msgstr ""
13250
13251 # type: textblock
13252 #: ../src/guestfs-actions.pod:5407 ../fish/guestfish-actions.pod:4190
13253 msgid ""
13254 "This command counts the words in a file, using the C<wc -w> external "
13255 "command."
13256 msgstr ""
13257
13258 # type: =head2
13259 #: ../src/guestfs-actions.pod:5412
13260 msgid "guestfs_write"
13261 msgstr ""
13262
13263 # type: verbatim
13264 #: ../src/guestfs-actions.pod:5414
13265 #, no-wrap
13266 msgid ""
13267 " int guestfs_write (guestfs_h *g,\n"
13268 "\t\tconst char *path,\n"
13269 "\t\tconst char *content,\n"
13270 "\t\tsize_t content_size);\n"
13271 "\n"
13272 msgstr ""
13273
13274 # type: textblock
13275 #: ../src/guestfs-actions.pod:5419 ../fish/guestfish-actions.pod:4197
13276 msgid ""
13277 "This call creates a file called C<path>.  The content of the file is the "
13278 "string C<content> (which can contain any 8 bit data)."
13279 msgstr ""
13280
13281 # type: =head2
13282 #: ../src/guestfs-actions.pod:5427
13283 msgid "guestfs_write_file"
13284 msgstr ""
13285
13286 # type: verbatim
13287 #: ../src/guestfs-actions.pod:5429
13288 #, no-wrap
13289 msgid ""
13290 " int guestfs_write_file (guestfs_h *g,\n"
13291 "\t\tconst char *path,\n"
13292 "\t\tconst char *content,\n"
13293 "\t\tint size);\n"
13294 "\n"
13295 msgstr ""
13296
13297 # type: textblock
13298 #: ../src/guestfs-actions.pod:5434 ../fish/guestfish-actions.pod:4207
13299 msgid ""
13300 "This call creates a file called C<path>.  The contents of the file is the "
13301 "string C<content> (which can contain any 8 bit data), with length C<size>."
13302 msgstr ""
13303
13304 # type: textblock
13305 #: ../src/guestfs-actions.pod:5438 ../fish/guestfish-actions.pod:4211
13306 msgid ""
13307 "As a special case, if C<size> is C<0> then the length is calculated using "
13308 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
13309 msgstr ""
13310
13311 # type: textblock
13312 #: ../src/guestfs-actions.pod:5442 ../fish/guestfish-actions.pod:4215
13313 msgid ""
13314 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
13315 "I<not> work, even if the length is specified."
13316 msgstr ""
13317
13318 # type: textblock
13319 #: ../src/guestfs-actions.pod:5450 ../fish/guestfish-actions.pod:4221
13320 msgid "This function is deprecated.  In new code, use the C<write> call instead."
13321 msgstr ""
13322
13323 # type: =head2
13324 #: ../src/guestfs-actions.pod:5457
13325 msgid "guestfs_zegrep"
13326 msgstr ""
13327
13328 # type: verbatim
13329 #: ../src/guestfs-actions.pod:5459
13330 #, no-wrap
13331 msgid ""
13332 " char **guestfs_zegrep (guestfs_h *g,\n"
13333 "\t\tconst char *regex,\n"
13334 "\t\tconst char *path);\n"
13335 "\n"
13336 msgstr ""
13337
13338 # type: textblock
13339 #: ../src/guestfs-actions.pod:5463 ../fish/guestfish-actions.pod:4232
13340 msgid "This calls the external C<zegrep> program and returns the matching lines."
13341 msgstr ""
13342
13343 # type: =head2
13344 #: ../src/guestfs-actions.pod:5473
13345 msgid "guestfs_zegrepi"
13346 msgstr ""
13347
13348 # type: verbatim
13349 #: ../src/guestfs-actions.pod:5475
13350 #, no-wrap
13351 msgid ""
13352 " char **guestfs_zegrepi (guestfs_h *g,\n"
13353 "\t\tconst char *regex,\n"
13354 "\t\tconst char *path);\n"
13355 "\n"
13356 msgstr ""
13357
13358 # type: textblock
13359 #: ../src/guestfs-actions.pod:5479 ../fish/guestfish-actions.pod:4242
13360 msgid "This calls the external C<zegrep -i> program and returns the matching lines."
13361 msgstr ""
13362
13363 # type: =head2
13364 #: ../src/guestfs-actions.pod:5489
13365 msgid "guestfs_zero"
13366 msgstr ""
13367
13368 # type: verbatim
13369 #: ../src/guestfs-actions.pod:5491
13370 #, no-wrap
13371 msgid ""
13372 " int guestfs_zero (guestfs_h *g,\n"
13373 "\t\tconst char *device);\n"
13374 "\n"
13375 msgstr ""
13376
13377 # type: textblock
13378 #: ../src/guestfs-actions.pod:5494 ../fish/guestfish-actions.pod:4252
13379 msgid "This command writes zeroes over the first few blocks of C<device>."
13380 msgstr ""
13381
13382 # type: textblock
13383 #: ../src/guestfs-actions.pod:5496 ../fish/guestfish-actions.pod:4254
13384 msgid ""
13385 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
13386 "securely wipe the device).  It should be sufficient to remove any partition "
13387 "tables, filesystem superblocks and so on."
13388 msgstr ""
13389
13390 # type: textblock
13391 #: ../src/guestfs-actions.pod:5500
13392 msgid "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>."
13393 msgstr ""
13394
13395 # type: =head2
13396 #: ../src/guestfs-actions.pod:5509
13397 msgid "guestfs_zero_device"
13398 msgstr ""
13399
13400 # type: verbatim
13401 #: ../src/guestfs-actions.pod:5511
13402 #, no-wrap
13403 msgid ""
13404 " int guestfs_zero_device (guestfs_h *g,\n"
13405 "\t\tconst char *device);\n"
13406 "\n"
13407 msgstr ""
13408
13409 # type: textblock
13410 #: ../src/guestfs-actions.pod:5514
13411 msgid ""
13412 "This command writes zeroes over the entire C<device>.  Compare with "
13413 "C<guestfs_zero> which just zeroes the first few blocks of a device."
13414 msgstr ""
13415
13416 # type: =head2
13417 #: ../src/guestfs-actions.pod:5528
13418 msgid "guestfs_zerofree"
13419 msgstr ""
13420
13421 # type: verbatim
13422 #: ../src/guestfs-actions.pod:5530
13423 #, no-wrap
13424 msgid ""
13425 " int guestfs_zerofree (guestfs_h *g,\n"
13426 "\t\tconst char *device);\n"
13427 "\n"
13428 msgstr ""
13429
13430 # type: textblock
13431 #: ../src/guestfs-actions.pod:5533 ../fish/guestfish-actions.pod:4275
13432 msgid ""
13433 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
13434 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
13435 "possible to compress the filesystem more effectively."
13436 msgstr ""
13437
13438 # type: textblock
13439 #: ../src/guestfs-actions.pod:5538 ../fish/guestfish-actions.pod:4280
13440 msgid "You should B<not> run this program if the filesystem is mounted."
13441 msgstr ""
13442
13443 # type: textblock
13444 #: ../src/guestfs-actions.pod:5541 ../fish/guestfish-actions.pod:4283
13445 msgid ""
13446 "It is possible that using this program can damage the filesystem or data on "
13447 "the filesystem."
13448 msgstr ""
13449
13450 # type: =head2
13451 #: ../src/guestfs-actions.pod:5546
13452 msgid "guestfs_zfgrep"
13453 msgstr ""
13454
13455 # type: verbatim
13456 #: ../src/guestfs-actions.pod:5548
13457 #, no-wrap
13458 msgid ""
13459 " char **guestfs_zfgrep (guestfs_h *g,\n"
13460 "\t\tconst char *pattern,\n"
13461 "\t\tconst char *path);\n"
13462 "\n"
13463 msgstr ""
13464
13465 # type: textblock
13466 #: ../src/guestfs-actions.pod:5552 ../fish/guestfish-actions.pod:4290
13467 msgid "This calls the external C<zfgrep> program and returns the matching lines."
13468 msgstr ""
13469
13470 # type: =head2
13471 #: ../src/guestfs-actions.pod:5562
13472 msgid "guestfs_zfgrepi"
13473 msgstr ""
13474
13475 # type: verbatim
13476 #: ../src/guestfs-actions.pod:5564
13477 #, no-wrap
13478 msgid ""
13479 " char **guestfs_zfgrepi (guestfs_h *g,\n"
13480 "\t\tconst char *pattern,\n"
13481 "\t\tconst char *path);\n"
13482 "\n"
13483 msgstr ""
13484
13485 # type: textblock
13486 #: ../src/guestfs-actions.pod:5568 ../fish/guestfish-actions.pod:4300
13487 msgid "This calls the external C<zfgrep -i> program and returns the matching lines."
13488 msgstr ""
13489
13490 # type: =head2
13491 #: ../src/guestfs-actions.pod:5578
13492 msgid "guestfs_zfile"
13493 msgstr ""
13494
13495 # type: verbatim
13496 #: ../src/guestfs-actions.pod:5580
13497 #, no-wrap
13498 msgid ""
13499 " char *guestfs_zfile (guestfs_h *g,\n"
13500 "\t\tconst char *meth,\n"
13501 "\t\tconst char *path);\n"
13502 "\n"
13503 msgstr ""
13504
13505 # type: textblock
13506 #: ../src/guestfs-actions.pod:5584 ../fish/guestfish-actions.pod:4310
13507 msgid "This command runs C<file> after first decompressing C<path> using C<method>."
13508 msgstr ""
13509
13510 # type: textblock
13511 #: ../src/guestfs-actions.pod:5587 ../fish/guestfish-actions.pod:4313
13512 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
13513 msgstr ""
13514
13515 # type: textblock
13516 #: ../src/guestfs-actions.pod:5589
13517 msgid ""
13518 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
13519 "files."
13520 msgstr ""
13521
13522 # type: textblock
13523 #: ../src/guestfs-actions.pod:5595 ../fish/guestfish-actions.pod:4318
13524 msgid "This function is deprecated.  In new code, use the C<file> call instead."
13525 msgstr ""
13526
13527 # type: =head2
13528 #: ../src/guestfs-actions.pod:5602
13529 msgid "guestfs_zgrep"
13530 msgstr ""
13531
13532 # type: verbatim
13533 #: ../src/guestfs-actions.pod:5604
13534 #, no-wrap
13535 msgid ""
13536 " char **guestfs_zgrep (guestfs_h *g,\n"
13537 "\t\tconst char *regex,\n"
13538 "\t\tconst char *path);\n"
13539 "\n"
13540 msgstr ""
13541
13542 # type: textblock
13543 #: ../src/guestfs-actions.pod:5608 ../fish/guestfish-actions.pod:4329
13544 msgid "This calls the external C<zgrep> program and returns the matching lines."
13545 msgstr ""
13546
13547 # type: =head2
13548 #: ../src/guestfs-actions.pod:5618
13549 msgid "guestfs_zgrepi"
13550 msgstr ""
13551
13552 # type: verbatim
13553 #: ../src/guestfs-actions.pod:5620
13554 #, no-wrap
13555 msgid ""
13556 " char **guestfs_zgrepi (guestfs_h *g,\n"
13557 "\t\tconst char *regex,\n"
13558 "\t\tconst char *path);\n"
13559 "\n"
13560 msgstr ""
13561
13562 # type: textblock
13563 #: ../src/guestfs-actions.pod:5624 ../fish/guestfish-actions.pod:4339
13564 msgid "This calls the external C<zgrep -i> program and returns the matching lines."
13565 msgstr ""
13566
13567 # type: =item
13568 #: ../src/guestfs-availability.pod:3
13569 msgid "B<augeas>"
13570 msgstr ""
13571
13572 # type: textblock
13573 #: ../src/guestfs-availability.pod:5
13574 msgid ""
13575 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> "
13576 "L</guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> "
13577 "L</guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> "
13578 "L</guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> "
13579 "L</guestfs_aug_rm> L</guestfs_aug_save> L</guestfs_aug_set>"
13580 msgstr ""
13581
13582 # type: =item
13583 #: ../src/guestfs-availability.pod:21
13584 msgid "B<inotify>"
13585 msgstr ""
13586
13587 # type: textblock
13588 #: ../src/guestfs-availability.pod:23
13589 msgid ""
13590 "The following functions: L</guestfs_inotify_add_watch> "
13591 "L</guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> "
13592 "L</guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
13593 msgstr ""
13594
13595 # type: =item
13596 #: ../src/guestfs-availability.pod:31
13597 msgid "B<linuxfsuuid>"
13598 msgstr ""
13599
13600 # type: textblock
13601 #: ../src/guestfs-availability.pod:33
13602 msgid ""
13603 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> "
13604 "L</guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
13605 msgstr ""
13606
13607 # type: =item
13608 #: ../src/guestfs-availability.pod:40
13609 msgid "B<linuxmodules>"
13610 msgstr ""
13611
13612 # type: textblock
13613 #: ../src/guestfs-availability.pod:42
13614 msgid "The following functions: L</guestfs_modprobe>"
13615 msgstr ""
13616
13617 # type: =item
13618 #: ../src/guestfs-availability.pod:45
13619 msgid "B<linuxxattrs>"
13620 msgstr ""
13621
13622 # type: textblock
13623 #: ../src/guestfs-availability.pod:47
13624 msgid ""
13625 "The following functions: L</guestfs_getxattrs> L</guestfs_lgetxattrs> "
13626 "L</guestfs_lremovexattr> L</guestfs_lsetxattr> L</guestfs_lxattrlist> "
13627 "L</guestfs_removexattr> L</guestfs_setxattr>"
13628 msgstr ""
13629
13630 # type: =item
13631 #: ../src/guestfs-availability.pod:56
13632 msgid "B<luks>"
13633 msgstr ""
13634
13635 # type: textblock
13636 #: ../src/guestfs-availability.pod:58
13637 msgid ""
13638 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> "
13639 "L</guestfs_luks_format> L</guestfs_luks_format_cipher> "
13640 "L</guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
13641 msgstr ""
13642
13643 # type: =item
13644 #: ../src/guestfs-availability.pod:67
13645 msgid "B<lvm2>"
13646 msgstr ""
13647
13648 # type: textblock
13649 #: ../src/guestfs-availability.pod:69
13650 msgid ""
13651 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> "
13652 "L</guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> "
13653 "L</guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> "
13654 "L</guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> "
13655 "L</guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> "
13656 "L</guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> "
13657 "L</guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> "
13658 "L</guestfs_vgs_full>"
13659 msgstr ""
13660
13661 # type: =item
13662 #: ../src/guestfs-availability.pod:92
13663 msgid "B<mknod>"
13664 msgstr ""
13665
13666 # type: textblock
13667 #: ../src/guestfs-availability.pod:94
13668 msgid ""
13669 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> "
13670 "L</guestfs_mknod_b> L</guestfs_mknod_c>"
13671 msgstr ""
13672
13673 # type: =item
13674 #: ../src/guestfs-availability.pod:100
13675 msgid "B<ntfs3g>"
13676 msgstr ""
13677
13678 # type: textblock
13679 #: ../src/guestfs-availability.pod:102
13680 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
13681 msgstr ""
13682
13683 # type: =item
13684 #: ../src/guestfs-availability.pod:105
13685 msgid "B<ntfsprogs>"
13686 msgstr ""
13687
13688 # type: textblock
13689 #: ../src/guestfs-availability.pod:107
13690 msgid "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_size>"
13691 msgstr ""
13692
13693 # type: =item
13694 #: ../src/guestfs-availability.pod:111
13695 msgid "B<realpath>"
13696 msgstr ""
13697
13698 # type: textblock
13699 #: ../src/guestfs-availability.pod:113
13700 msgid "The following functions: L</guestfs_realpath>"
13701 msgstr ""
13702
13703 # type: =item
13704 #: ../src/guestfs-availability.pod:116
13705 msgid "B<scrub>"
13706 msgstr ""
13707
13708 # type: textblock
13709 #: ../src/guestfs-availability.pod:118
13710 msgid ""
13711 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> "
13712 "L</guestfs_scrub_freespace>"
13713 msgstr ""
13714
13715 # type: =item
13716 #: ../src/guestfs-availability.pod:123
13717 msgid "B<selinux>"
13718 msgstr ""
13719
13720 # type: textblock
13721 #: ../src/guestfs-availability.pod:125
13722 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
13723 msgstr ""
13724
13725 # type: =item
13726 #: ../src/guestfs-availability.pod:129
13727 msgid "B<xz>"
13728 msgstr ""
13729
13730 # type: textblock
13731 #: ../src/guestfs-availability.pod:131
13732 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
13733 msgstr ""
13734
13735 # type: =item
13736 #: ../src/guestfs-availability.pod:135
13737 msgid "B<zerofree>"
13738 msgstr ""
13739
13740 # type: textblock
13741 #: ../src/guestfs-availability.pod:137
13742 msgid "The following functions: L</guestfs_zerofree>"
13743 msgstr ""
13744
13745 # type: =head2
13746 #: ../src/guestfs-structs.pod:1
13747 msgid "guestfs_int_bool"
13748 msgstr ""
13749
13750 # type: verbatim
13751 #: ../src/guestfs-structs.pod:3
13752 #, no-wrap
13753 msgid ""
13754 " struct guestfs_int_bool {\n"
13755 "   int32_t i;\n"
13756 "   int32_t b;\n"
13757 " };\n"
13758 " \n"
13759 msgstr ""
13760
13761 # type: verbatim
13762 #: ../src/guestfs-structs.pod:8
13763 #, no-wrap
13764 msgid ""
13765 " struct guestfs_int_bool_list {\n"
13766 "   uint32_t len; /* Number of elements in list. */\n"
13767 "   struct guestfs_int_bool *val; /* Elements. */\n"
13768 " };\n"
13769 " \n"
13770 msgstr ""
13771
13772 # type: verbatim
13773 #: ../src/guestfs-structs.pod:13
13774 #, no-wrap
13775 msgid ""
13776 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
13777 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
13778 "\n"
13779 msgstr ""
13780
13781 # type: =head2
13782 #: ../src/guestfs-structs.pod:16
13783 msgid "guestfs_lvm_pv"
13784 msgstr ""
13785
13786 # type: verbatim
13787 #: ../src/guestfs-structs.pod:18
13788 #, no-wrap
13789 msgid ""
13790 " struct guestfs_lvm_pv {\n"
13791 "   char *pv_name;\n"
13792 "   /* The next field is NOT nul-terminated, be careful when printing it: "
13793 "*/\n"
13794 "   char pv_uuid[32];\n"
13795 "   char *pv_fmt;\n"
13796 "   uint64_t pv_size;\n"
13797 "   uint64_t dev_size;\n"
13798 "   uint64_t pv_free;\n"
13799 "   uint64_t pv_used;\n"
13800 "   char *pv_attr;\n"
13801 "   int64_t pv_pe_count;\n"
13802 "   int64_t pv_pe_alloc_count;\n"
13803 "   char *pv_tags;\n"
13804 "   uint64_t pe_start;\n"
13805 "   int64_t pv_mda_count;\n"
13806 "   uint64_t pv_mda_free;\n"
13807 " };\n"
13808 " \n"
13809 msgstr ""
13810
13811 # type: verbatim
13812 #: ../src/guestfs-structs.pod:36
13813 #, no-wrap
13814 msgid ""
13815 " struct guestfs_lvm_pv_list {\n"
13816 "   uint32_t len; /* Number of elements in list. */\n"
13817 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
13818 " };\n"
13819 " \n"
13820 msgstr ""
13821
13822 # type: verbatim
13823 #: ../src/guestfs-structs.pod:41
13824 #, no-wrap
13825 msgid ""
13826 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
13827 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
13828 "\n"
13829 msgstr ""
13830
13831 # type: =head2
13832 #: ../src/guestfs-structs.pod:44
13833 msgid "guestfs_lvm_vg"
13834 msgstr ""
13835
13836 # type: verbatim
13837 #: ../src/guestfs-structs.pod:46
13838 #, no-wrap
13839 msgid ""
13840 " struct guestfs_lvm_vg {\n"
13841 "   char *vg_name;\n"
13842 "   /* The next field is NOT nul-terminated, be careful when printing it: "
13843 "*/\n"
13844 "   char vg_uuid[32];\n"
13845 "   char *vg_fmt;\n"
13846 "   char *vg_attr;\n"
13847 "   uint64_t vg_size;\n"
13848 "   uint64_t vg_free;\n"
13849 "   char *vg_sysid;\n"
13850 "   uint64_t vg_extent_size;\n"
13851 "   int64_t vg_extent_count;\n"
13852 "   int64_t vg_free_count;\n"
13853 "   int64_t max_lv;\n"
13854 "   int64_t max_pv;\n"
13855 "   int64_t pv_count;\n"
13856 "   int64_t lv_count;\n"
13857 "   int64_t snap_count;\n"
13858 "   int64_t vg_seqno;\n"
13859 "   char *vg_tags;\n"
13860 "   int64_t vg_mda_count;\n"
13861 "   uint64_t vg_mda_free;\n"
13862 " };\n"
13863 " \n"
13864 msgstr ""
13865
13866 # type: verbatim
13867 #: ../src/guestfs-structs.pod:69
13868 #, no-wrap
13869 msgid ""
13870 " struct guestfs_lvm_vg_list {\n"
13871 "   uint32_t len; /* Number of elements in list. */\n"
13872 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
13873 " };\n"
13874 " \n"
13875 msgstr ""
13876
13877 # type: verbatim
13878 #: ../src/guestfs-structs.pod:74
13879 #, no-wrap
13880 msgid ""
13881 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
13882 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
13883 "\n"
13884 msgstr ""
13885
13886 # type: =head2
13887 #: ../src/guestfs-structs.pod:77
13888 msgid "guestfs_lvm_lv"
13889 msgstr ""
13890
13891 # type: verbatim
13892 #: ../src/guestfs-structs.pod:79
13893 #, no-wrap
13894 msgid ""
13895 " struct guestfs_lvm_lv {\n"
13896 "   char *lv_name;\n"
13897 "   /* The next field is NOT nul-terminated, be careful when printing it: "
13898 "*/\n"
13899 "   char lv_uuid[32];\n"
13900 "   char *lv_attr;\n"
13901 "   int64_t lv_major;\n"
13902 "   int64_t lv_minor;\n"
13903 "   int64_t lv_kernel_major;\n"
13904 "   int64_t lv_kernel_minor;\n"
13905 "   uint64_t lv_size;\n"
13906 "   int64_t seg_count;\n"
13907 "   char *origin;\n"
13908 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
13909 "   float snap_percent;\n"
13910 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
13911 "   float copy_percent;\n"
13912 "   char *move_pv;\n"
13913 "   char *lv_tags;\n"
13914 "   char *mirror_log;\n"
13915 "   char *modules;\n"
13916 " };\n"
13917 " \n"
13918 msgstr ""
13919
13920 # type: verbatim
13921 #: ../src/guestfs-structs.pod:101
13922 #, no-wrap
13923 msgid ""
13924 " struct guestfs_lvm_lv_list {\n"
13925 "   uint32_t len; /* Number of elements in list. */\n"
13926 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
13927 " };\n"
13928 " \n"
13929 msgstr ""
13930
13931 # type: verbatim
13932 #: ../src/guestfs-structs.pod:106
13933 #, no-wrap
13934 msgid ""
13935 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
13936 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
13937 "\n"
13938 msgstr ""
13939
13940 # type: verbatim
13941 #: ../src/guestfs-structs.pod:111
13942 #, no-wrap
13943 msgid ""
13944 " struct guestfs_stat {\n"
13945 "   int64_t dev;\n"
13946 "   int64_t ino;\n"
13947 "   int64_t mode;\n"
13948 "   int64_t nlink;\n"
13949 "   int64_t uid;\n"
13950 "   int64_t gid;\n"
13951 "   int64_t rdev;\n"
13952 "   int64_t size;\n"
13953 "   int64_t blksize;\n"
13954 "   int64_t blocks;\n"
13955 "   int64_t atime;\n"
13956 "   int64_t mtime;\n"
13957 "   int64_t ctime;\n"
13958 " };\n"
13959 " \n"
13960 msgstr ""
13961
13962 # type: verbatim
13963 #: ../src/guestfs-structs.pod:127
13964 #, no-wrap
13965 msgid ""
13966 " struct guestfs_stat_list {\n"
13967 "   uint32_t len; /* Number of elements in list. */\n"
13968 "   struct guestfs_stat *val; /* Elements. */\n"
13969 " };\n"
13970 " \n"
13971 msgstr ""
13972
13973 # type: verbatim
13974 #: ../src/guestfs-structs.pod:132
13975 #, no-wrap
13976 msgid ""
13977 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
13978 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
13979 "\n"
13980 msgstr ""
13981
13982 # type: verbatim
13983 #: ../src/guestfs-structs.pod:137
13984 #, no-wrap
13985 msgid ""
13986 " struct guestfs_statvfs {\n"
13987 "   int64_t bsize;\n"
13988 "   int64_t frsize;\n"
13989 "   int64_t blocks;\n"
13990 "   int64_t bfree;\n"
13991 "   int64_t bavail;\n"
13992 "   int64_t files;\n"
13993 "   int64_t ffree;\n"
13994 "   int64_t favail;\n"
13995 "   int64_t fsid;\n"
13996 "   int64_t flag;\n"
13997 "   int64_t namemax;\n"
13998 " };\n"
13999 " \n"
14000 msgstr ""
14001
14002 # type: verbatim
14003 #: ../src/guestfs-structs.pod:151
14004 #, no-wrap
14005 msgid ""
14006 " struct guestfs_statvfs_list {\n"
14007 "   uint32_t len; /* Number of elements in list. */\n"
14008 "   struct guestfs_statvfs *val; /* Elements. */\n"
14009 " };\n"
14010 " \n"
14011 msgstr ""
14012
14013 # type: verbatim
14014 #: ../src/guestfs-structs.pod:156
14015 #, no-wrap
14016 msgid ""
14017 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
14018 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
14019 "\n"
14020 msgstr ""
14021
14022 # type: =head2
14023 #: ../src/guestfs-structs.pod:159
14024 msgid "guestfs_dirent"
14025 msgstr ""
14026
14027 # type: verbatim
14028 #: ../src/guestfs-structs.pod:161
14029 #, no-wrap
14030 msgid ""
14031 " struct guestfs_dirent {\n"
14032 "   int64_t ino;\n"
14033 "   char ftyp;\n"
14034 "   char *name;\n"
14035 " };\n"
14036 " \n"
14037 msgstr ""
14038
14039 # type: verbatim
14040 #: ../src/guestfs-structs.pod:167
14041 #, no-wrap
14042 msgid ""
14043 " struct guestfs_dirent_list {\n"
14044 "   uint32_t len; /* Number of elements in list. */\n"
14045 "   struct guestfs_dirent *val; /* Elements. */\n"
14046 " };\n"
14047 " \n"
14048 msgstr ""
14049
14050 # type: verbatim
14051 #: ../src/guestfs-structs.pod:172
14052 #, no-wrap
14053 msgid ""
14054 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
14055 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
14056 "\n"
14057 msgstr ""
14058
14059 # type: verbatim
14060 #: ../src/guestfs-structs.pod:177
14061 #, no-wrap
14062 msgid ""
14063 " struct guestfs_version {\n"
14064 "   int64_t major;\n"
14065 "   int64_t minor;\n"
14066 "   int64_t release;\n"
14067 "   char *extra;\n"
14068 " };\n"
14069 " \n"
14070 msgstr ""
14071
14072 # type: verbatim
14073 #: ../src/guestfs-structs.pod:184
14074 #, no-wrap
14075 msgid ""
14076 " struct guestfs_version_list {\n"
14077 "   uint32_t len; /* Number of elements in list. */\n"
14078 "   struct guestfs_version *val; /* Elements. */\n"
14079 " };\n"
14080 " \n"
14081 msgstr ""
14082
14083 # type: verbatim
14084 #: ../src/guestfs-structs.pod:189
14085 #, no-wrap
14086 msgid ""
14087 " void guestfs_free_version (struct guestfs_free_version *);\n"
14088 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
14089 "\n"
14090 msgstr ""
14091
14092 # type: =head2
14093 #: ../src/guestfs-structs.pod:192
14094 msgid "guestfs_xattr"
14095 msgstr ""
14096
14097 # type: verbatim
14098 #: ../src/guestfs-structs.pod:194
14099 #, no-wrap
14100 msgid ""
14101 " struct guestfs_xattr {\n"
14102 "   char *attrname;\n"
14103 "   /* The next two fields describe a byte array. */\n"
14104 "   uint32_t attrval_len;\n"
14105 "   char *attrval;\n"
14106 " };\n"
14107 " \n"
14108 msgstr ""
14109
14110 # type: verbatim
14111 #: ../src/guestfs-structs.pod:201
14112 #, no-wrap
14113 msgid ""
14114 " struct guestfs_xattr_list {\n"
14115 "   uint32_t len; /* Number of elements in list. */\n"
14116 "   struct guestfs_xattr *val; /* Elements. */\n"
14117 " };\n"
14118 " \n"
14119 msgstr ""
14120
14121 # type: verbatim
14122 #: ../src/guestfs-structs.pod:206
14123 #, no-wrap
14124 msgid ""
14125 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
14126 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
14127 "\n"
14128 msgstr ""
14129
14130 # type: =head2
14131 #: ../src/guestfs-structs.pod:209
14132 msgid "guestfs_inotify_event"
14133 msgstr ""
14134
14135 # type: verbatim
14136 #: ../src/guestfs-structs.pod:211
14137 #, no-wrap
14138 msgid ""
14139 " struct guestfs_inotify_event {\n"
14140 "   int64_t in_wd;\n"
14141 "   uint32_t in_mask;\n"
14142 "   uint32_t in_cookie;\n"
14143 "   char *in_name;\n"
14144 " };\n"
14145 " \n"
14146 msgstr ""
14147
14148 # type: verbatim
14149 #: ../src/guestfs-structs.pod:218
14150 #, no-wrap
14151 msgid ""
14152 " struct guestfs_inotify_event_list {\n"
14153 "   uint32_t len; /* Number of elements in list. */\n"
14154 "   struct guestfs_inotify_event *val; /* Elements. */\n"
14155 " };\n"
14156 " \n"
14157 msgstr ""
14158
14159 # type: verbatim
14160 #: ../src/guestfs-structs.pod:223
14161 #, no-wrap
14162 msgid ""
14163 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
14164 " void guestfs_free_inotify_event_list (struct "
14165 "guestfs_free_inotify_event_list *);\n"
14166 "\n"
14167 msgstr ""
14168
14169 # type: =head2
14170 #: ../src/guestfs-structs.pod:226
14171 msgid "guestfs_partition"
14172 msgstr ""
14173
14174 # type: verbatim
14175 #: ../src/guestfs-structs.pod:228
14176 #, no-wrap
14177 msgid ""
14178 " struct guestfs_partition {\n"
14179 "   int32_t part_num;\n"
14180 "   uint64_t part_start;\n"
14181 "   uint64_t part_end;\n"
14182 "   uint64_t part_size;\n"
14183 " };\n"
14184 " \n"
14185 msgstr ""
14186
14187 # type: verbatim
14188 #: ../src/guestfs-structs.pod:235
14189 #, no-wrap
14190 msgid ""
14191 " struct guestfs_partition_list {\n"
14192 "   uint32_t len; /* Number of elements in list. */\n"
14193 "   struct guestfs_partition *val; /* Elements. */\n"
14194 " };\n"
14195 " \n"
14196 msgstr ""
14197
14198 # type: verbatim
14199 #: ../src/guestfs-structs.pod:240
14200 #, no-wrap
14201 msgid ""
14202 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
14203 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
14204 "\n"
14205 msgstr ""
14206
14207 # type: textblock
14208 #: ../fish/guestfish.pod:5
14209 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
14210 msgstr ""
14211
14212 # type: verbatim
14213 #: ../fish/guestfish.pod:9
14214 #, no-wrap
14215 msgid ""
14216 " guestfish [--options] [commands]\n"
14217 "\n"
14218 msgstr ""
14219
14220 # type: verbatim
14221 #: ../fish/guestfish.pod:11
14222 #, no-wrap
14223 msgid ""
14224 " guestfish\n"
14225 "\n"
14226 msgstr ""
14227
14228 # type: verbatim
14229 #: ../fish/guestfish.pod:13
14230 #, no-wrap
14231 msgid ""
14232 " guestfish -a disk.img\n"
14233 "\n"
14234 msgstr ""
14235
14236 # type: verbatim
14237 #: ../fish/guestfish.pod:15
14238 #, no-wrap
14239 msgid ""
14240 " guestfish -a disk.img -m dev[:mountpoint]\n"
14241 "\n"
14242 msgstr ""
14243
14244 # type: verbatim
14245 #: ../fish/guestfish.pod:17
14246 #, no-wrap
14247 msgid ""
14248 " guestfish -d libvirt-domain\n"
14249 "\n"
14250 msgstr ""
14251
14252 # type: verbatim
14253 #: ../fish/guestfish.pod:19
14254 #, no-wrap
14255 msgid ""
14256 " guestfish -a disk.img -i\n"
14257 "\n"
14258 msgstr ""
14259
14260 # type: verbatim
14261 #: ../fish/guestfish.pod:21
14262 #, no-wrap
14263 msgid ""
14264 " guestfish -d libvirt-domain -i\n"
14265 "\n"
14266 msgstr ""
14267
14268 # type: =head1
14269 #: ../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
14270 msgid "WARNING"
14271 msgstr ""
14272
14273 # type: textblock
14274 #: ../fish/guestfish.pod:25
14275 msgid ""
14276 "Using guestfish in read/write mode on live virtual machines can be "
14277 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
14278 "option to use guestfish safely if the disk image or virtual machine might be "
14279 "live."
14280 msgstr ""
14281
14282 # type: =head1
14283 #: ../fish/guestfish.pod:30 ../fish/guestfish.pod:736 ../fuse/guestmount.pod:35 ../tools/virt-cat.pl:51 ../tools/virt-edit.pl:59 ../tools/virt-resize.pl:66 ../tools/virt-tar.pl:46
14284 msgid "EXAMPLES"
14285 msgstr ""
14286
14287 # type: =head2
14288 #: ../fish/guestfish.pod:32
14289 msgid "As an interactive shell"
14290 msgstr ""
14291
14292 # type: verbatim
14293 #: ../fish/guestfish.pod:34
14294 #, no-wrap
14295 msgid ""
14296 " $ guestfish\n"
14297 " \n"
14298 msgstr ""
14299
14300 # type: verbatim
14301 #: ../fish/guestfish.pod:36
14302 #, no-wrap
14303 msgid ""
14304 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
14305 " editing virtual machine filesystems.\n"
14306 " \n"
14307 msgstr ""
14308
14309 # type: verbatim
14310 #: ../fish/guestfish.pod:39
14311 #, no-wrap
14312 msgid ""
14313 " Type: 'help' for a list of commands\n"
14314 "       'man' to read the manual\n"
14315 "       'quit' to quit the shell\n"
14316 " \n"
14317 msgstr ""
14318
14319 # type: verbatim
14320 #: ../fish/guestfish.pod:43
14321 #, no-wrap
14322 msgid ""
14323 " ><fs> man\n"
14324 "\n"
14325 msgstr ""
14326
14327 # type: =head2
14328 #: ../fish/guestfish.pod:45
14329 msgid "From shell scripts"
14330 msgstr ""
14331
14332 # type: textblock
14333 #: ../fish/guestfish.pod:47
14334 msgid "Create a new C</etc/motd> file in a guest:"
14335 msgstr ""
14336
14337 # type: verbatim
14338 #: ../fish/guestfish.pod:49
14339 #, no-wrap
14340 msgid ""
14341 " guestfish <<_EOF_\n"
14342 " add disk.img\n"
14343 " run\n"
14344 " mount /dev/vg_guest/lv_root /\n"
14345 " write /etc/motd \"Welcome, new users\"\n"
14346 " _EOF_\n"
14347 "\n"
14348 msgstr ""
14349
14350 # type: textblock
14351 #: ../fish/guestfish.pod:56
14352 msgid "List the LVM logical volumes in a guest:"
14353 msgstr ""
14354
14355 # type: verbatim
14356 #: ../fish/guestfish.pod:58
14357 #, no-wrap
14358 msgid ""
14359 " guestfish -a disk.img --ro <<_EOF_\n"
14360 " run\n"
14361 " lvs\n"
14362 " _EOF_\n"
14363 "\n"
14364 msgstr ""
14365
14366 # type: =head2
14367 #: ../fish/guestfish.pod:63
14368 msgid "On one command line"
14369 msgstr ""
14370
14371 # type: textblock
14372 #: ../fish/guestfish.pod:65
14373 msgid "Update C</etc/resolv.conf> in a guest:"
14374 msgstr ""
14375
14376 # type: verbatim
14377 #: ../fish/guestfish.pod:67
14378 #, no-wrap
14379 msgid ""
14380 " guestfish \\\n"
14381 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
14382 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
14383 "\n"
14384 msgstr ""
14385
14386 # type: textblock
14387 #: ../fish/guestfish.pod:71
14388 msgid "Edit C</boot/grub/grub.conf> interactively:"
14389 msgstr ""
14390
14391 # type: verbatim
14392 #: ../fish/guestfish.pod:73
14393 #, no-wrap
14394 msgid ""
14395 " guestfish --add disk.img \\\n"
14396 "   --mount /dev/vg_guest/lv_root \\\n"
14397 "   --mount /dev/sda1:/boot \\\n"
14398 "   edit /boot/grub/grub.conf\n"
14399 "\n"
14400 msgstr ""
14401
14402 # type: =head2
14403 #: ../fish/guestfish.pod:78
14404 msgid "Mount disks automatically"
14405 msgstr ""
14406
14407 # type: textblock
14408 #: ../fish/guestfish.pod:80
14409 msgid ""
14410 "Use the I<-i> option to automatically mount the disks from a virtual "
14411 "machine:"
14412 msgstr ""
14413
14414 # type: verbatim
14415 #: ../fish/guestfish.pod:83
14416 #, no-wrap
14417 msgid ""
14418 " guestfish --ro -a disk.img -i cat /etc/group\n"
14419 "\n"
14420 msgstr ""
14421
14422 # type: verbatim
14423 #: ../fish/guestfish.pod:85
14424 #, no-wrap
14425 msgid ""
14426 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
14427 "\n"
14428 msgstr ""
14429
14430 # type: =head2
14431 #: ../fish/guestfish.pod:87
14432 msgid "As a script interpreter"
14433 msgstr ""
14434
14435 # type: textblock
14436 #: ../fish/guestfish.pod:89
14437 msgid "Create a 100MB disk containing an ext2-formatted partition:"
14438 msgstr ""
14439
14440 # type: verbatim
14441 #: ../fish/guestfish.pod:91
14442 #, no-wrap
14443 msgid ""
14444 " #!/usr/bin/guestfish -f\n"
14445 " sparse test1.img 100M\n"
14446 " run\n"
14447 " part-disk /dev/sda mbr\n"
14448 " mkfs ext2 /dev/sda1\n"
14449 "\n"
14450 msgstr ""
14451
14452 # type: =head2
14453 #: ../fish/guestfish.pod:97
14454 msgid "Start with a prepared disk"
14455 msgstr ""
14456
14457 # type: textblock
14458 #: ../fish/guestfish.pod:99
14459 msgid ""
14460 "An alternate way to create a 100MB disk called C<test1.img> containing a "
14461 "single ext2-formatted partition:"
14462 msgstr ""
14463
14464 # type: verbatim
14465 #: ../fish/guestfish.pod:102
14466 #, no-wrap
14467 msgid ""
14468 " guestfish -N fs\n"
14469 "\n"
14470 msgstr ""
14471
14472 # type: textblock
14473 #: ../fish/guestfish.pod:104
14474 msgid "To list what is available do:"
14475 msgstr ""
14476
14477 # type: verbatim
14478 #: ../fish/guestfish.pod:106 ../fish/guestfish.pod:727
14479 #, no-wrap
14480 msgid ""
14481 " guestfish -N help | less\n"
14482 "\n"
14483 msgstr ""
14484
14485 # type: =head2
14486 #: ../fish/guestfish.pod:108
14487 msgid "Remote control"
14488 msgstr ""
14489
14490 # type: verbatim
14491 #: ../fish/guestfish.pod:110
14492 #, no-wrap
14493 msgid ""
14494 " eval `guestfish --listen --ro`\n"
14495 " guestfish --remote add disk.img\n"
14496 " guestfish --remote run\n"
14497 " guestfish --remote lvs\n"
14498 "\n"
14499 msgstr ""
14500
14501 # type: textblock
14502 #: ../fish/guestfish.pod:117
14503 msgid ""
14504 "Guestfish is a shell and command-line tool for examining and modifying "
14505 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
14506 "functionality of the guestfs API, see L<guestfs(3)>."
14507 msgstr ""
14508
14509 # type: textblock
14510 #: ../fish/guestfish.pod:121
14511 msgid ""
14512 "Guestfish gives you structured access to the libguestfs API, from shell "
14513 "scripts or the command line or interactively.  If you want to rescue a "
14514 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
14515 "command."
14516 msgstr ""
14517
14518 # type: =head1
14519 #: ../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
14520 msgid "OPTIONS"
14521 msgstr ""
14522
14523 # type: =item
14524 #: ../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
14525 msgid "B<--help>"
14526 msgstr ""
14527
14528 # type: textblock
14529 #: ../fish/guestfish.pod:132
14530 msgid "Displays general help on options."
14531 msgstr ""
14532
14533 # type: =item
14534 #: ../fish/guestfish.pod:134
14535 msgid "B<-h> | B<--cmd-help>"
14536 msgstr ""
14537
14538 # type: textblock
14539 #: ../fish/guestfish.pod:136
14540 msgid "Lists all available guestfish commands."
14541 msgstr ""
14542
14543 # type: =item
14544 #: ../fish/guestfish.pod:138
14545 msgid "B<-h cmd> | B<--cmd-help cmd>"
14546 msgstr ""
14547
14548 # type: textblock
14549 #: ../fish/guestfish.pod:140
14550 msgid "Displays detailed help on a single command C<cmd>."
14551 msgstr ""
14552
14553 # type: =item
14554 #: ../fish/guestfish.pod:142 ../fuse/guestmount.pod:74
14555 msgid "B<-a image> | B<--add image>"
14556 msgstr ""
14557
14558 # type: textblock
14559 #: ../fish/guestfish.pod:144
14560 msgid "Add a block device or virtual machine image to the shell."
14561 msgstr ""
14562
14563 # type: =item
14564 #: ../fish/guestfish.pod:146
14565 msgid "B<-c URI> | B<--connect URI>"
14566 msgstr ""
14567
14568 # type: textblock
14569 #: ../fish/guestfish.pod:148
14570 msgid ""
14571 "When used in conjunction with the I<-d> option, this specifies the libvirt "
14572 "URI to use.  The default is to use the default libvirt connection."
14573 msgstr ""
14574
14575 # type: =item
14576 #: ../fish/guestfish.pod:152
14577 msgid "B<-d libvirt-domain> | B<--domain libvirt-domain>"
14578 msgstr ""
14579
14580 # type: textblock
14581 #: ../fish/guestfish.pod:154
14582 msgid ""
14583 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
14584 "used, then any libvirt domain can be used.  However in write mode, only "
14585 "libvirt domains which are shut down can be named here."
14586 msgstr ""
14587
14588 # type: =item
14589 #: ../fish/guestfish.pod:158
14590 msgid "B<-D> | B<--no-dest-paths>"
14591 msgstr ""
14592
14593 # type: textblock
14594 #: ../fish/guestfish.pod:160
14595 msgid ""
14596 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
14597 "to hit the tab key to complete paths on the guest filesystem, but this "
14598 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
14599 "allow this feature to be disabled."
14600 msgstr ""
14601
14602 # type: =item
14603 #: ../fish/guestfish.pod:165
14604 msgid "B<--echo-keys>"
14605 msgstr ""
14606
14607 # type: textblock
14608 #: ../fish/guestfish.pod:167
14609 msgid ""
14610 "When prompting for keys and passphrases, guestfish normally turns echoing "
14611 "off so you cannot see what you are typing.  If you are not worried about "
14612 "Tempest attacks and there is no one else in the room you can specify this "
14613 "flag to see what you are typing."
14614 msgstr ""
14615
14616 # type: =item
14617 #: ../fish/guestfish.pod:172
14618 msgid "B<-f file> | B<--file file>"
14619 msgstr ""
14620
14621 # type: textblock
14622 #: ../fish/guestfish.pod:174
14623 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
14624 msgstr ""
14625
14626 # type: verbatim
14627 #: ../fish/guestfish.pod:177
14628 #, no-wrap
14629 msgid ""
14630 " #!/usr/bin/guestfish -f\n"
14631 "\n"
14632 msgstr ""
14633
14634 # type: =item
14635 #: ../fish/guestfish.pod:179
14636 msgid "B<-i> | B<--inspector>"
14637 msgstr ""
14638
14639 # type: textblock
14640 #: ../fish/guestfish.pod:181
14641 msgid ""
14642 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
14643 "system and mount filesystems as they would be mounted on the real virtual "
14644 "machine."
14645 msgstr ""
14646
14647 # type: textblock
14648 #: ../fish/guestfish.pod:185
14649 msgid "Typical usage is either:"
14650 msgstr ""
14651
14652 # type: verbatim
14653 #: ../fish/guestfish.pod:187
14654 #, no-wrap
14655 msgid ""
14656 " guestfish -d myguest -i\n"
14657 "\n"
14658 msgstr ""
14659
14660 # type: textblock
14661 #: ../fish/guestfish.pod:189
14662 msgid "(for an inactive libvirt domain called I<myguest>), or:"
14663 msgstr ""
14664
14665 # type: verbatim
14666 #: ../fish/guestfish.pod:191
14667 #, no-wrap
14668 msgid ""
14669 " guestfish --ro -d myguest -i\n"
14670 "\n"
14671 msgstr ""
14672
14673 # type: textblock
14674 #: ../fish/guestfish.pod:193
14675 msgid "(for active domains, readonly), or specify the block device directly:"
14676 msgstr ""
14677
14678 # type: verbatim
14679 #: ../fish/guestfish.pod:195
14680 #, no-wrap
14681 msgid ""
14682 " guestfish -a /dev/Guests/MyGuest -i\n"
14683 "\n"
14684 msgstr ""
14685
14686 # type: textblock
14687 #: ../fish/guestfish.pod:197
14688 msgid ""
14689 "Note that the command line syntax changed slightly over older versions of "
14690 "guestfish.  You can still use the old syntax:"
14691 msgstr ""
14692
14693 # type: verbatim
14694 #: ../fish/guestfish.pod:200
14695 #, no-wrap
14696 msgid ""
14697 " guestfish [--ro] -i disk.img\n"
14698 "\n"
14699 msgstr ""
14700
14701 # type: verbatim
14702 #: ../fish/guestfish.pod:202
14703 #, no-wrap
14704 msgid ""
14705 " guestfish [--ro] -i libvirt-domain\n"
14706 "\n"
14707 msgstr ""
14708
14709 # type: =item
14710 #: ../fish/guestfish.pod:204
14711 msgid "B<--keys-from-stdin>"
14712 msgstr ""
14713
14714 # type: textblock
14715 #: ../fish/guestfish.pod:206
14716 msgid ""
14717 "Read key or passphrase parameters from stdin.  The default is to try to read "
14718 "passphrases from the user by opening C</dev/tty>."
14719 msgstr ""
14720
14721 # type: =item
14722 #: ../fish/guestfish.pod:209
14723 msgid "B<--listen>"
14724 msgstr ""
14725
14726 # type: textblock
14727 #: ../fish/guestfish.pod:211
14728 msgid ""
14729 "Fork into the background and listen for remote commands.  See section "
14730 "L</REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
14731 msgstr ""
14732
14733 # type: =item
14734 #: ../fish/guestfish.pod:214
14735 msgid "B<-m dev[:mountpoint]> | B<--mount dev[:mountpoint]>"
14736 msgstr ""
14737
14738 # type: textblock
14739 #: ../fish/guestfish.pod:216
14740 msgid "Mount the named partition or logical volume on the given mountpoint."
14741 msgstr ""
14742
14743 # type: textblock
14744 #: ../fish/guestfish.pod:218
14745 msgid "If the mountpoint is omitted, it defaults to C</>."
14746 msgstr ""
14747
14748 # type: textblock
14749 #: ../fish/guestfish.pod:220
14750 msgid "You have to mount something on C</> before most commands will work."
14751 msgstr ""
14752
14753 # type: textblock
14754 #: ../fish/guestfish.pod:222
14755 msgid ""
14756 "If any I<-m> or I<--mount> options are given, the guest is automatically "
14757 "launched."
14758 msgstr ""
14759
14760 # type: textblock
14761 #: ../fish/guestfish.pod:225
14762 msgid ""
14763 "If you don't know what filesystems a disk image contains, you can either run "
14764 "guestfish without this option, then list the partitions and LVs available "
14765 "(see L</list-partitions> and L</lvs> commands), or you can use the "
14766 "L<virt-list-filesystems(1)> program."
14767 msgstr ""
14768
14769 # type: =item
14770 #: ../fish/guestfish.pod:230 ../fuse/guestmount.pod:106
14771 msgid "B<-n> | B<--no-sync>"
14772 msgstr ""
14773
14774 # type: textblock
14775 #: ../fish/guestfish.pod:232
14776 msgid ""
14777 "Disable autosync.  This is enabled by default.  See the discussion of "
14778 "autosync in the L<guestfs(3)> manpage."
14779 msgstr ""
14780
14781 # type: =item
14782 #: ../fish/guestfish.pod:235
14783 msgid "B<-N type> | B<--new type> | B<-N help>"
14784 msgstr ""
14785
14786 # type: textblock
14787 #: ../fish/guestfish.pod:237
14788 msgid ""
14789 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
14790 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
14791 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
14792 "IMAGES> below."
14793 msgstr ""
14794
14795 # type: =item
14796 #: ../fish/guestfish.pod:242
14797 msgid "B<--progress-bars>"
14798 msgstr ""
14799
14800 # type: textblock
14801 #: ../fish/guestfish.pod:244
14802 msgid "Enable progress bars, even when guestfish is used non-interactively."
14803 msgstr ""
14804
14805 # type: textblock
14806 #: ../fish/guestfish.pod:246
14807 msgid ""
14808 "Progress bars are enabled by default when guestfish is used as an "
14809 "interactive shell."
14810 msgstr ""
14811
14812 # type: =item
14813 #: ../fish/guestfish.pod:249
14814 msgid "B<--no-progress-bars>"
14815 msgstr ""
14816
14817 # type: textblock
14818 #: ../fish/guestfish.pod:251
14819 msgid "Disable progress bars."
14820 msgstr ""
14821
14822 # type: =item
14823 #: ../fish/guestfish.pod:253
14824 msgid "B<--remote[=pid]>"
14825 msgstr ""
14826
14827 # type: textblock
14828 #: ../fish/guestfish.pod:255
14829 msgid ""
14830 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
14831 "CONTROL GUESTFISH OVER A SOCKET> below."
14832 msgstr ""
14833
14834 # type: =item
14835 #: ../fish/guestfish.pod:258 ../fuse/guestmount.pod:148
14836 msgid "B<-r> | B<--ro>"
14837 msgstr ""
14838
14839 # type: textblock
14840 #: ../fish/guestfish.pod:260
14841 msgid ""
14842 "This changes the I<-a> and I<-m> options so that disks are added and mounts "
14843 "are done read-only (see L<guestfs(3)/guestfs_mount_ro>)."
14844 msgstr ""
14845
14846 # type: textblock
14847 #: ../fish/guestfish.pod:263 ../tools/virt-rescue.pl:162
14848 msgid ""
14849 "The option must always be used if the disk image or virtual machine might be "
14850 "running, and is generally recommended in cases where you don't need write "
14851 "access to the disk."
14852 msgstr ""
14853
14854 # type: textblock
14855 #: ../fish/guestfish.pod:267
14856 msgid ""
14857 "Note that prepared disk images created with I<-N> are not affected by the "
14858 "I<--ro> option."
14859 msgstr ""
14860
14861 # type: =item
14862 #: ../fish/guestfish.pod:270 ../fuse/guestmount.pod:158 ../tools/virt-rescue.pl:170
14863 msgid "B<--selinux>"
14864 msgstr ""
14865
14866 # type: textblock
14867 #: ../fish/guestfish.pod:272
14868 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
14869 msgstr ""
14870
14871 # type: =item
14872 #: ../fish/guestfish.pod:274 ../fuse/guestmount.pod:168
14873 msgid "B<-v> | B<--verbose>"
14874 msgstr ""
14875
14876 # type: textblock
14877 #: ../fish/guestfish.pod:276
14878 msgid ""
14879 "Enable very verbose messages.  This is particularly useful if you find a "
14880 "bug."
14881 msgstr ""
14882
14883 # type: =item
14884 #: ../fish/guestfish.pod:279 ../fuse/guestmount.pod:172
14885 msgid "B<-V> | B<--version>"
14886 msgstr ""
14887
14888 # type: textblock
14889 #: ../fish/guestfish.pod:281
14890 msgid "Display the guestfish / libguestfs version number and exit."
14891 msgstr ""
14892
14893 # type: =item
14894 #: ../fish/guestfish.pod:283
14895 msgid "B<-x>"
14896 msgstr ""
14897
14898 # type: textblock
14899 #: ../fish/guestfish.pod:285
14900 msgid "Echo each command before executing it."
14901 msgstr ""
14902
14903 # type: =head1
14904 #: ../fish/guestfish.pod:289
14905 msgid "COMMANDS ON COMMAND LINE"
14906 msgstr ""
14907
14908 # type: textblock
14909 #: ../fish/guestfish.pod:291
14910 msgid "Any additional (non-option) arguments are treated as commands to execute."
14911 msgstr ""
14912
14913 # type: textblock
14914 #: ../fish/guestfish.pod:294
14915 msgid ""
14916 "Commands to execute should be separated by a colon (C<:>), where the colon "
14917 "is a separate parameter.  Thus:"
14918 msgstr ""
14919
14920 # type: verbatim
14921 #: ../fish/guestfish.pod:297
14922 #, no-wrap
14923 msgid ""
14924 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
14925 "\n"
14926 msgstr ""
14927
14928 # type: textblock
14929 #: ../fish/guestfish.pod:299
14930 msgid ""
14931 "If there are no additional arguments, then we enter a shell, either an "
14932 "interactive shell with a prompt (if the input is a terminal) or a "
14933 "non-interactive shell."
14934 msgstr ""
14935
14936 # type: textblock
14937 #: ../fish/guestfish.pod:303
14938 msgid ""
14939 "In either command line mode or non-interactive shell, the first command that "
14940 "gives an error causes the whole shell to exit.  In interactive mode (with a "
14941 "prompt) if a command fails, you can continue to enter commands."
14942 msgstr ""
14943
14944 # type: =head1
14945 #: ../fish/guestfish.pod:308
14946 msgid "USING launch (OR run)"
14947 msgstr ""
14948
14949 # type: textblock
14950 #: ../fish/guestfish.pod:310
14951 msgid ""
14952 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
14953 "then launch it, then mount any disks you need, and finally issue "
14954 "actions/commands.  So the general order of the day is:"
14955 msgstr ""
14956
14957 # type: textblock
14958 #: ../fish/guestfish.pod:318
14959 msgid "add or -a/--add"
14960 msgstr ""
14961
14962 # type: textblock
14963 #: ../fish/guestfish.pod:322
14964 msgid "launch (aka run)"
14965 msgstr ""
14966
14967 # type: textblock
14968 #: ../fish/guestfish.pod:326
14969 msgid "mount or -m/--mount"
14970 msgstr ""
14971
14972 # type: textblock
14973 #: ../fish/guestfish.pod:330
14974 msgid "any other commands"
14975 msgstr ""
14976
14977 # type: textblock
14978 #: ../fish/guestfish.pod:334
14979 msgid ""
14980 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
14981 "guest before mounting or performing any other commands."
14982 msgstr ""
14983
14984 # type: textblock
14985 #: ../fish/guestfish.pod:337
14986 msgid ""
14987 "The only exception is that if the I<-m> or I<--mount> option was given, the "
14988 "guest is automatically run for you (simply because guestfish can't mount the "
14989 "disks you asked for without doing this)."
14990 msgstr ""
14991
14992 # type: =head1
14993 #: ../fish/guestfish.pod:341
14994 msgid "QUOTING"
14995 msgstr ""
14996
14997 # type: textblock
14998 #: ../fish/guestfish.pod:343
14999 msgid ""
15000 "You can quote ordinary parameters using either single or double quotes.  For "
15001 "example:"
15002 msgstr ""
15003
15004 # type: verbatim
15005 #: ../fish/guestfish.pod:346
15006 #, no-wrap
15007 msgid ""
15008 " add \"file with a space.img\"\n"
15009 "\n"
15010 msgstr ""
15011
15012 # type: verbatim
15013 #: ../fish/guestfish.pod:348
15014 #, no-wrap
15015 msgid ""
15016 " rm '/file name'\n"
15017 "\n"
15018 msgstr ""
15019
15020 # type: verbatim
15021 #: ../fish/guestfish.pod:350
15022 #, no-wrap
15023 msgid ""
15024 " rm '/\"'\n"
15025 "\n"
15026 msgstr ""
15027
15028 # type: textblock
15029 #: ../fish/guestfish.pod:352
15030 msgid ""
15031 "A few commands require a list of strings to be passed.  For these, use a "
15032 "whitespace-separated list, enclosed in quotes.  Strings containing "
15033 "whitespace to be passed through must be enclosed in single quotes.  A "
15034 "literal single quote must be escaped with a backslash."
15035 msgstr ""
15036
15037 # type: verbatim
15038 #: ../fish/guestfish.pod:357
15039 #, no-wrap
15040 msgid ""
15041 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
15042 " command \"/bin/echo 'foo      bar'\"\n"
15043 " command \"/bin/echo \\'foo\\'\"\n"
15044 "\n"
15045 msgstr ""
15046
15047 # type: =head1
15048 #: ../fish/guestfish.pod:361
15049 msgid "NUMBERS"
15050 msgstr ""
15051
15052 # type: textblock
15053 #: ../fish/guestfish.pod:363
15054 msgid "This section applies to all commands which can take integers as parameters."
15055 msgstr ""
15056
15057 # type: =head2
15058 #: ../fish/guestfish.pod:366
15059 msgid "SIZE SUFFIX"
15060 msgstr ""
15061
15062 # type: textblock
15063 #: ../fish/guestfish.pod:368
15064 msgid ""
15065 "When the command takes a parameter measured in bytes, you can use one of the "
15066 "following suffixes to specify kilobytes, megabytes and larger sizes:"
15067 msgstr ""
15068
15069 # type: =item
15070 #: ../fish/guestfish.pod:374
15071 msgid "B<k> or B<K> or B<KiB>"
15072 msgstr ""
15073
15074 # type: textblock
15075 #: ../fish/guestfish.pod:376
15076 msgid "The size in kilobytes (multiplied by 1024)."
15077 msgstr ""
15078
15079 # type: =item
15080 #: ../fish/guestfish.pod:378
15081 msgid "B<KB>"
15082 msgstr ""
15083
15084 # type: textblock
15085 #: ../fish/guestfish.pod:380
15086 msgid "The size in SI 1000 byte units."
15087 msgstr ""
15088
15089 # type: =item
15090 #: ../fish/guestfish.pod:382
15091 msgid "B<M> or B<MiB>"
15092 msgstr ""
15093
15094 # type: textblock
15095 #: ../fish/guestfish.pod:384
15096 msgid "The size in megabytes (multiplied by 1048576)."
15097 msgstr ""
15098
15099 # type: =item
15100 #: ../fish/guestfish.pod:386
15101 msgid "B<MB>"
15102 msgstr ""
15103
15104 # type: textblock
15105 #: ../fish/guestfish.pod:388
15106 msgid "The size in SI 1000000 byte units."
15107 msgstr ""
15108
15109 # type: =item
15110 #: ../fish/guestfish.pod:390
15111 msgid "B<G> or B<GiB>"
15112 msgstr ""
15113
15114 # type: textblock
15115 #: ../fish/guestfish.pod:392
15116 msgid "The size in gigabytes (multiplied by 2**30)."
15117 msgstr ""
15118
15119 # type: =item
15120 #: ../fish/guestfish.pod:394
15121 msgid "B<GB>"
15122 msgstr ""
15123
15124 # type: textblock
15125 #: ../fish/guestfish.pod:396
15126 msgid "The size in SI 10**9 byte units."
15127 msgstr ""
15128
15129 # type: =item
15130 #: ../fish/guestfish.pod:398
15131 msgid "B<T> or B<TiB>"
15132 msgstr ""
15133
15134 # type: textblock
15135 #: ../fish/guestfish.pod:400
15136 msgid "The size in terabytes (multiplied by 2**40)."
15137 msgstr ""
15138
15139 # type: =item
15140 #: ../fish/guestfish.pod:402
15141 msgid "B<TB>"
15142 msgstr ""
15143
15144 # type: textblock
15145 #: ../fish/guestfish.pod:404
15146 msgid "The size in SI 10**12 byte units."
15147 msgstr ""
15148
15149 # type: =item
15150 #: ../fish/guestfish.pod:406
15151 msgid "B<P> or B<PiB>"
15152 msgstr ""
15153
15154 # type: textblock
15155 #: ../fish/guestfish.pod:408
15156 msgid "The size in petabytes (multiplied by 2**50)."
15157 msgstr ""
15158
15159 # type: =item
15160 #: ../fish/guestfish.pod:410
15161 msgid "B<PB>"
15162 msgstr ""
15163
15164 # type: textblock
15165 #: ../fish/guestfish.pod:412
15166 msgid "The size in SI 10**15 byte units."
15167 msgstr ""
15168
15169 # type: =item
15170 #: ../fish/guestfish.pod:414
15171 msgid "B<E> or B<EiB>"
15172 msgstr ""
15173
15174 # type: textblock
15175 #: ../fish/guestfish.pod:416
15176 msgid "The size in exabytes (multiplied by 2**60)."
15177 msgstr ""
15178
15179 # type: =item
15180 #: ../fish/guestfish.pod:418
15181 msgid "B<EB>"
15182 msgstr ""
15183
15184 # type: textblock
15185 #: ../fish/guestfish.pod:420
15186 msgid "The size in SI 10**18 byte units."
15187 msgstr ""
15188
15189 # type: =item
15190 #: ../fish/guestfish.pod:422
15191 msgid "B<Z> or B<ZiB>"
15192 msgstr ""
15193
15194 # type: textblock
15195 #: ../fish/guestfish.pod:424
15196 msgid "The size in zettabytes (multiplied by 2**70)."
15197 msgstr ""
15198
15199 # type: =item
15200 #: ../fish/guestfish.pod:426
15201 msgid "B<ZB>"
15202 msgstr ""
15203
15204 # type: textblock
15205 #: ../fish/guestfish.pod:428
15206 msgid "The size in SI 10**21 byte units."
15207 msgstr ""
15208
15209 # type: =item
15210 #: ../fish/guestfish.pod:430
15211 msgid "B<Y> or B<YiB>"
15212 msgstr ""
15213
15214 # type: textblock
15215 #: ../fish/guestfish.pod:432
15216 msgid "The size in yottabytes (multiplied by 2**80)."
15217 msgstr ""
15218
15219 # type: =item
15220 #: ../fish/guestfish.pod:434
15221 msgid "B<YB>"
15222 msgstr ""
15223
15224 # type: textblock
15225 #: ../fish/guestfish.pod:436
15226 msgid "The size in SI 10**24 byte units."
15227 msgstr ""
15228
15229 # type: textblock
15230 #: ../fish/guestfish.pod:440
15231 msgid "For example:"
15232 msgstr ""
15233
15234 # type: verbatim
15235 #: ../fish/guestfish.pod:442
15236 #, no-wrap
15237 msgid ""
15238 " truncate-size /file 1G\n"
15239 "\n"
15240 msgstr ""
15241
15242 # type: textblock
15243 #: ../fish/guestfish.pod:444
15244 msgid "would truncate the file to 1 gigabyte."
15245 msgstr ""
15246
15247 # type: textblock
15248 #: ../fish/guestfish.pod:446
15249 msgid ""
15250 "Be careful because a few commands take sizes in kilobytes or megabytes "
15251 "(eg. the parameter to L</memsize> is specified in megabytes already).  "
15252 "Adding a suffix will probably not do what you expect."
15253 msgstr ""
15254
15255 # type: =head2
15256 #: ../fish/guestfish.pod:450
15257 msgid "OCTAL AND HEXADECIMAL NUMBERS"
15258 msgstr ""
15259
15260 # type: textblock
15261 #: ../fish/guestfish.pod:452
15262 msgid ""
15263 "For specifying the radix (base) use the C convention: C<0> to prefix an "
15264 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
15265 msgstr ""
15266
15267 # type: verbatim
15268 #: ../fish/guestfish.pod:455
15269 #, no-wrap
15270 msgid ""
15271 " 1234      decimal number 1234\n"
15272 " 02322     octal number, equivalent to decimal 1234\n"
15273 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
15274 "\n"
15275 msgstr ""
15276
15277 # type: textblock
15278 #: ../fish/guestfish.pod:459
15279 msgid ""
15280 "When using the C<chmod> command, you almost always want to specify an octal "
15281 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
15282 "L<chmod(1)> program):"
15283 msgstr ""
15284
15285 # type: verbatim
15286 #: ../fish/guestfish.pod:463
15287 #, no-wrap
15288 msgid ""
15289 " chmod 0777 /public  # OK\n"
15290 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
15291 "\n"
15292 msgstr ""
15293
15294 # type: textblock
15295 #: ../fish/guestfish.pod:466
15296 msgid ""
15297 "Commands that return numbers usually print them in decimal, but some "
15298 "commands print numbers in other radices (eg. C<umask> prints the mode in "
15299 "octal, preceeded by C<0>)."
15300 msgstr ""
15301
15302 # type: =head1
15303 #: ../fish/guestfish.pod:470
15304 msgid "WILDCARDS AND GLOBBING"
15305 msgstr ""
15306
15307 # type: textblock
15308 #: ../fish/guestfish.pod:472
15309 msgid ""
15310 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
15311 "(globbing) by default.  So for example the following will not do what you "
15312 "expect:"
15313 msgstr ""
15314
15315 # type: verbatim
15316 #: ../fish/guestfish.pod:476
15317 #, no-wrap
15318 msgid ""
15319 " rm-rf /home/*\n"
15320 "\n"
15321 msgstr ""
15322
15323 # type: textblock
15324 #: ../fish/guestfish.pod:478
15325 msgid ""
15326 "Assuming you don't have a directory literally called C</home/*> then the "
15327 "above command will return an error."
15328 msgstr ""
15329
15330 # type: textblock
15331 #: ../fish/guestfish.pod:481
15332 msgid "To perform wildcard expansion, use the C<glob> command."
15333 msgstr ""
15334
15335 # type: verbatim
15336 #: ../fish/guestfish.pod:483
15337 #, no-wrap
15338 msgid ""
15339 " glob rm-rf /home/*\n"
15340 "\n"
15341 msgstr ""
15342
15343 # type: textblock
15344 #: ../fish/guestfish.pod:485
15345 msgid ""
15346 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
15347 "many times), equivalent to:"
15348 msgstr ""
15349
15350 # type: verbatim
15351 #: ../fish/guestfish.pod:488
15352 #, no-wrap
15353 msgid ""
15354 " rm-rf /home/jim\n"
15355 " rm-rf /home/joe\n"
15356 " rm-rf /home/mary\n"
15357 "\n"
15358 msgstr ""
15359
15360 # type: textblock
15361 #: ../fish/guestfish.pod:492
15362 msgid "C<glob> only works on simple guest paths and not on device names."
15363 msgstr ""
15364
15365 # type: textblock
15366 #: ../fish/guestfish.pod:494
15367 msgid ""
15368 "If you have several parameters, each containing a wildcard, then glob will "
15369 "perform a cartesian product."
15370 msgstr ""
15371
15372 # type: =head1
15373 #: ../fish/guestfish.pod:497
15374 msgid "COMMENTS"
15375 msgstr ""
15376
15377 # type: textblock
15378 #: ../fish/guestfish.pod:499
15379 msgid ""
15380 "Any line which starts with a I<#> character is treated as a comment and "
15381 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
15382 "a command.  For example:"
15383 msgstr ""
15384
15385 # type: verbatim
15386 #: ../fish/guestfish.pod:503
15387 #, no-wrap
15388 msgid ""
15389 " # this is a comment\n"
15390 "         # this is a comment\n"
15391 " foo # NOT a comment\n"
15392 "\n"
15393 msgstr ""
15394
15395 # type: textblock
15396 #: ../fish/guestfish.pod:507
15397 msgid "Blank lines are also ignored."
15398 msgstr ""
15399
15400 # type: =head1
15401 #: ../fish/guestfish.pod:509
15402 msgid "RUNNING COMMANDS LOCALLY"
15403 msgstr ""
15404
15405 # type: textblock
15406 #: ../fish/guestfish.pod:511
15407 msgid ""
15408 "Any line which starts with a I<!> character is treated as a command sent to "
15409 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
15410 msgstr ""
15411
15412 # type: verbatim
15413 #: ../fish/guestfish.pod:515
15414 #, no-wrap
15415 msgid ""
15416 " !mkdir local\n"
15417 " tgz-out /remote local/remote-data.tar.gz\n"
15418 "\n"
15419 msgstr ""
15420
15421 # type: textblock
15422 #: ../fish/guestfish.pod:518
15423 msgid ""
15424 "will create a directory C<local> on the host, and then export the contents "
15425 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
15426 "(See C<tgz-out>)."
15427 msgstr ""
15428
15429 # type: textblock
15430 #: ../fish/guestfish.pod:522
15431 msgid ""
15432 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
15433 "effect, due to the way that subprocesses work in Unix."
15434 msgstr ""
15435
15436 # type: =head1
15437 #: ../fish/guestfish.pod:525
15438 msgid "PIPES"
15439 msgstr ""
15440
15441 # type: textblock
15442 #: ../fish/guestfish.pod:527
15443 msgid ""
15444 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
15445 "command (a guestfish command) to the second command (any host command).  For "
15446 "example:"
15447 msgstr ""
15448
15449 # type: verbatim
15450 #: ../fish/guestfish.pod:531
15451 #, no-wrap
15452 msgid ""
15453 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
15454 "\n"
15455 msgstr ""
15456
15457 # type: textblock
15458 #: ../fish/guestfish.pod:533
15459 msgid ""
15460 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
15461 "program).  The above command would list all accounts in the guest filesystem "
15462 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
15463 msgstr ""
15464
15465 # type: verbatim
15466 #: ../fish/guestfish.pod:538
15467 #, no-wrap
15468 msgid ""
15469 " hexdump /bin/ls | head\n"
15470 " list-devices | tail -1\n"
15471 " tgz-out / - | tar ztf -\n"
15472 "\n"
15473 msgstr ""
15474
15475 # type: textblock
15476 #: ../fish/guestfish.pod:542
15477 msgid ""
15478 "The space before the pipe symbol is required, any space after the pipe "
15479 "symbol is optional.  Everything after the pipe symbol is just passed "
15480 "straight to the host shell, so it can contain redirections, globs and "
15481 "anything else that makes sense on the host side."
15482 msgstr ""
15483
15484 # type: textblock
15485 #: ../fish/guestfish.pod:547
15486 msgid ""
15487 "To use a literal argument which begins with a pipe symbol, you have to quote "
15488 "it, eg:"
15489 msgstr ""
15490
15491 # type: verbatim
15492 #: ../fish/guestfish.pod:550
15493 #, no-wrap
15494 msgid ""
15495 " echo \"|\"\n"
15496 "\n"
15497 msgstr ""
15498
15499 # type: =head1
15500 #: ../fish/guestfish.pod:552
15501 msgid "HOME DIRECTORIES"
15502 msgstr ""
15503
15504 # type: textblock
15505 #: ../fish/guestfish.pod:554
15506 msgid ""
15507 "If a parameter starts with the character C<~> then the tilde may be expanded "
15508 "as a home directory path (either C<~> for the current user's home directory, "
15509 "or C<~user> for another user)."
15510 msgstr ""
15511
15512 # type: textblock
15513 #: ../fish/guestfish.pod:558
15514 msgid ""
15515 "Note that home directory expansion happens for users known I<on the host>, "
15516 "not in the guest filesystem."
15517 msgstr ""
15518
15519 # type: textblock
15520 #: ../fish/guestfish.pod:561
15521 msgid ""
15522 "To use a literal argument which begins with a tilde, you have to quote it, "
15523 "eg:"
15524 msgstr ""
15525
15526 # type: verbatim
15527 #: ../fish/guestfish.pod:564
15528 #, no-wrap
15529 msgid ""
15530 " echo \"~\"\n"
15531 "\n"
15532 msgstr ""
15533
15534 # type: textblock
15535 #: ../fish/guestfish.pod:568
15536 msgid ""
15537 "Libguestfs has some support for Linux guests encrypted according to the "
15538 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
15539 "disk encryption systems used by modern Linux guests.  Currently only "
15540 "LVM-on-LUKS is supported."
15541 msgstr ""
15542
15543 # type: textblock
15544 #: ../fish/guestfish.pod:573
15545 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
15546 msgstr ""
15547
15548 # type: verbatim
15549 #: ../fish/guestfish.pod:575
15550 #, no-wrap
15551 msgid ""
15552 " ><fs> vfs-type /dev/sda2\n"
15553 " crypto_LUKS\n"
15554 "\n"
15555 msgstr ""
15556
15557 # type: textblock
15558 #: ../fish/guestfish.pod:578
15559 msgid ""
15560 "Then open those devices using L</luks-open>.  This creates a device-mapper "
15561 "device called C</dev/mapper/luksdev>."
15562 msgstr ""
15563
15564 # type: verbatim
15565 #: ../fish/guestfish.pod:581
15566 #, no-wrap
15567 msgid ""
15568 " ><fs> luks-open /dev/sda2 luksdev\n"
15569 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
15570 "\n"
15571 msgstr ""
15572
15573 # type: textblock
15574 #: ../fish/guestfish.pod:584
15575 msgid ""
15576 "Finally you have to tell LVM to scan for volume groups on the newly created "
15577 "mapper device:"
15578 msgstr ""
15579
15580 # type: verbatim
15581 #: ../fish/guestfish.pod:587
15582 #, no-wrap
15583 msgid ""
15584 " ><fs> vgscan\n"
15585 " ><fs> vg-activate-all true\n"
15586 "\n"
15587 msgstr ""
15588
15589 # type: textblock
15590 #: ../fish/guestfish.pod:590
15591 msgid "The logical volume(s) can now be mounted in the usual way."
15592 msgstr ""
15593
15594 # type: textblock
15595 #: ../fish/guestfish.pod:592
15596 msgid ""
15597 "Before closing a LUKS device you must unmount any logical volumes on it and "
15598 "deactivate the volume groups by calling C<vg-activate false VG> on each "
15599 "one.  Then you can close the mapper device:"
15600 msgstr ""
15601
15602 # type: verbatim
15603 #: ../fish/guestfish.pod:596
15604 #, no-wrap
15605 msgid ""
15606 " ><fs> vg-activate false /dev/VG\n"
15607 " ><fs> luks-close /dev/mapper/luksdev\n"
15608 "\n"
15609 msgstr ""
15610
15611 # type: =head1
15612 #: ../fish/guestfish.pod:599
15613 msgid "WINDOWS PATHS"
15614 msgstr ""
15615
15616 # type: textblock
15617 #: ../fish/guestfish.pod:601
15618 msgid ""
15619 "If a path is prefixed with C<win:> then you can use Windows-style paths "
15620 "(with some limitations).  The following commands are equivalent:"
15621 msgstr ""
15622
15623 # type: verbatim
15624 #: ../fish/guestfish.pod:604
15625 #, no-wrap
15626 msgid ""
15627 " file /WINDOWS/system32/config/system.LOG\n"
15628 "\n"
15629 msgstr ""
15630
15631 # type: verbatim
15632 #: ../fish/guestfish.pod:606
15633 #, no-wrap
15634 msgid ""
15635 " file win:/windows/system32/config/system.log\n"
15636 "\n"
15637 msgstr ""
15638
15639 # type: verbatim
15640 #: ../fish/guestfish.pod:608
15641 #, no-wrap
15642 msgid ""
15643 " file win:\\windows\\system32\\config\\system.log\n"
15644 "\n"
15645 msgstr ""
15646
15647 # type: verbatim
15648 #: ../fish/guestfish.pod:610
15649 #, no-wrap
15650 msgid ""
15651 " file WIN:C:\\Windows\\SYSTEM32\\conFIG\\SYSTEM.LOG\n"
15652 "\n"
15653 msgstr ""
15654
15655 # type: textblock
15656 #: ../fish/guestfish.pod:612
15657 msgid ""
15658 "This syntax implicitly calls C<case-sensitive-path> (q.v.) so it also "
15659 "handles case insensitivity like Windows would.  This only works in argument "
15660 "positions that expect a path."
15661 msgstr ""
15662
15663 # type: =head1
15664 #: ../fish/guestfish.pod:616
15665 msgid "UPLOADING AND DOWNLOADING FILES"
15666 msgstr ""
15667
15668 # type: textblock
15669 #: ../fish/guestfish.pod:618
15670 msgid ""
15671 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
15672 "others which upload from or download to a local file, you can use the "
15673 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
15674 msgstr ""
15675
15676 # type: verbatim
15677 #: ../fish/guestfish.pod:622
15678 #, no-wrap
15679 msgid ""
15680 " upload - /foo\n"
15681 "\n"
15682 msgstr ""
15683
15684 # type: textblock
15685 #: ../fish/guestfish.pod:624
15686 msgid "reads stdin and creates from that a file C</foo> in the disk image, and:"
15687 msgstr ""
15688
15689 # type: verbatim
15690 #: ../fish/guestfish.pod:627
15691 #, no-wrap
15692 msgid ""
15693 " tar-out /etc - | tar tf -\n"
15694 "\n"
15695 msgstr ""
15696
15697 # type: textblock
15698 #: ../fish/guestfish.pod:629
15699 msgid ""
15700 "writes the tarball to stdout and then pipes that into the external \"tar\" "
15701 "command (see L</PIPES>)."
15702 msgstr ""
15703
15704 # type: textblock
15705 #: ../fish/guestfish.pod:632
15706 msgid ""
15707 "When using C<-> to read from stdin, the input is read up to the end of "
15708 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
15709 "some arbitrary end marker:"
15710 msgstr ""
15711
15712 # type: verbatim
15713 #: ../fish/guestfish.pod:636
15714 #, no-wrap
15715 msgid ""
15716 " upload -<<END /foo\n"
15717 " input line 1\n"
15718 " input line 2\n"
15719 " input line 3\n"
15720 " END\n"
15721 "\n"
15722 msgstr ""
15723
15724 # type: textblock
15725 #: ../fish/guestfish.pod:642
15726 msgid ""
15727 "Any string of characters can be used instead of C<END>.  The end marker must "
15728 "appear on a line of its own, without any preceeding or following characters "
15729 "(not even spaces)."
15730 msgstr ""
15731
15732 # type: textblock
15733 #: ../fish/guestfish.pod:646
15734 msgid ""
15735 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
15736 "upload local files (so-called \"FileIn\" parameters in the generator)."
15737 msgstr ""
15738
15739 # type: =head1
15740 #: ../fish/guestfish.pod:649
15741 msgid "EXIT ON ERROR BEHAVIOUR"
15742 msgstr ""
15743
15744 # type: textblock
15745 #: ../fish/guestfish.pod:651
15746 msgid ""
15747 "By default, guestfish will ignore any errors when in interactive mode "
15748 "(ie. taking commands from a human over a tty), and will exit on the first "
15749 "error in non-interactive mode (scripts, commands given on the command line)."
15750 msgstr ""
15751
15752 # type: textblock
15753 #: ../fish/guestfish.pod:656
15754 msgid ""
15755 "If you prefix a command with a I<-> character, then that command will not "
15756 "cause guestfish to exit, even if that (one) command returns an error."
15757 msgstr ""
15758
15759 # type: =head1
15760 #: ../fish/guestfish.pod:660
15761 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
15762 msgstr ""
15763
15764 # type: textblock
15765 #: ../fish/guestfish.pod:662
15766 msgid ""
15767 "Guestfish can be remote-controlled over a socket.  This is useful "
15768 "particularly in shell scripts where you want to make several different "
15769 "changes to a filesystem, but you don't want the overhead of starting up a "
15770 "guestfish process each time."
15771 msgstr ""
15772
15773 # type: textblock
15774 #: ../fish/guestfish.pod:667
15775 msgid "Start a guestfish server process using:"
15776 msgstr ""
15777
15778 # type: verbatim
15779 #: ../fish/guestfish.pod:669
15780 #, no-wrap
15781 msgid ""
15782 " eval `guestfish --listen`\n"
15783 "\n"
15784 msgstr ""
15785
15786 # type: textblock
15787 #: ../fish/guestfish.pod:671
15788 msgid "and then send it commands by doing:"
15789 msgstr ""
15790
15791 # type: verbatim
15792 #: ../fish/guestfish.pod:673
15793 #, no-wrap
15794 msgid ""
15795 " guestfish --remote cmd [...]\n"
15796 "\n"
15797 msgstr ""
15798
15799 # type: textblock
15800 #: ../fish/guestfish.pod:675
15801 msgid "To cause the server to exit, send it the exit command:"
15802 msgstr ""
15803
15804 # type: verbatim
15805 #: ../fish/guestfish.pod:677
15806 #, no-wrap
15807 msgid ""
15808 " guestfish --remote exit\n"
15809 "\n"
15810 msgstr ""
15811
15812 # type: textblock
15813 #: ../fish/guestfish.pod:679
15814 msgid ""
15815 "Note that the server will normally exit if there is an error in a command.  "
15816 "You can change this in the usual way.  See section L</EXIT ON ERROR "
15817 "BEHAVIOUR>."
15818 msgstr ""
15819
15820 # type: =head2
15821 #: ../fish/guestfish.pod:683
15822 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
15823 msgstr ""
15824
15825 # type: textblock
15826 #: ../fish/guestfish.pod:685
15827 msgid ""
15828 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
15829 "is how the I<--remote> option knows where to send the commands.  You can "
15830 "have several guestfish listener processes running using:"
15831 msgstr ""
15832
15833 # type: verbatim
15834 #: ../fish/guestfish.pod:689
15835 #, no-wrap
15836 msgid ""
15837 " eval `guestfish --listen`\n"
15838 " pid1=$GUESTFISH_PID\n"
15839 " eval `guestfish --listen`\n"
15840 " pid2=$GUESTFISH_PID\n"
15841 " ...\n"
15842 " guestfish --remote=$pid1 cmd\n"
15843 " guestfish --remote=$pid2 cmd\n"
15844 "\n"
15845 msgstr ""
15846
15847 # type: =head2
15848 #: ../fish/guestfish.pod:697
15849 msgid "REMOTE CONTROL DETAILS"
15850 msgstr ""
15851
15852 # type: textblock
15853 #: ../fish/guestfish.pod:699
15854 msgid ""
15855 "Remote control happens over a Unix domain socket called "
15856 "C</tmp/.guestfish-$UID/socket-$PID>, where C<$UID> is the effective user ID "
15857 "of the process, and C<$PID> is the process ID of the server."
15858 msgstr ""
15859
15860 # type: textblock
15861 #: ../fish/guestfish.pod:703
15862 msgid "Guestfish client and server versions must match exactly."
15863 msgstr ""
15864
15865 # type: =head1
15866 #: ../fish/guestfish.pod:705
15867 msgid "PREPARED DISK IMAGES"
15868 msgstr ""
15869
15870 # type: textblock
15871 #: ../fish/guestfish.pod:707
15872 msgid ""
15873 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
15874 "preformatted disk images that guestfish can make for you to save typing.  "
15875 "This is particularly useful for testing purposes.  This option is used "
15876 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
15877 "can be mixed with I<-a>)."
15878 msgstr ""
15879
15880 # type: textblock
15881 #: ../fish/guestfish.pod:713
15882 msgid ""
15883 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
15884 "the second and so on.  Existing files in the current directory are "
15885 "I<overwritten>."
15886 msgstr ""
15887
15888 # type: textblock
15889 #: ../fish/guestfish.pod:717
15890 msgid ""
15891 "The type briefly describes how the disk should be sized, partitioned, how "
15892 "filesystem(s) should be created, and how content should be added.  "
15893 "Optionally the type can be followed by extra parameters, separated by C<:> "
15894 "(colon) characters.  For example, I<-N fs> creates a default 100MB, "
15895 "sparsely-allocated disk, containing a single partition, with the partition "
15896 "formatted as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem "
15897 "on a 1GB disk instead."
15898 msgstr ""
15899
15900 # type: textblock
15901 #: ../fish/guestfish.pod:725
15902 msgid "To list the available types and any extra parameters they take, run:"
15903 msgstr ""
15904
15905 # type: textblock
15906 #: ../fish/guestfish.pod:729
15907 msgid ""
15908 "Note that the prepared filesystem is not mounted.  You would usually have to "
15909 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
15910 msgstr ""
15911
15912 # type: textblock
15913 #: ../fish/guestfish.pod:733
15914 msgid ""
15915 "If any I<-N> or I<--new> options are given, the guest is automatically "
15916 "launched."
15917 msgstr ""
15918
15919 # type: textblock
15920 #: ../fish/guestfish.pod:738
15921 msgid "Create a 100MB disk with an ext4-formatted partition:"
15922 msgstr ""
15923
15924 # type: verbatim
15925 #: ../fish/guestfish.pod:740
15926 #, no-wrap
15927 msgid ""
15928 " guestfish -N fs:ext4\n"
15929 "\n"
15930 msgstr ""
15931
15932 # type: textblock
15933 #: ../fish/guestfish.pod:742
15934 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
15935 msgstr ""
15936
15937 # type: verbatim
15938 #: ../fish/guestfish.pod:744
15939 #, no-wrap
15940 msgid ""
15941 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
15942 "\n"
15943 msgstr ""
15944
15945 # type: textblock
15946 #: ../fish/guestfish.pod:746
15947 msgid "Create a blank 200MB disk:"
15948 msgstr ""
15949
15950 # type: verbatim
15951 #: ../fish/guestfish.pod:748
15952 #, no-wrap
15953 msgid ""
15954 " guestfish -N disk:200M\n"
15955 "\n"
15956 msgstr ""
15957
15958 # type: =head1
15959 #: ../fish/guestfish.pod:750
15960 msgid "PROGRESS BARS"
15961 msgstr ""
15962
15963 # type: textblock
15964 #: ../fish/guestfish.pod:752
15965 msgid ""
15966 "Some (not all) long-running commands send progress notification messages as "
15967 "they are running.  Guestfish turns these messages into progress bars."
15968 msgstr ""
15969
15970 # type: textblock
15971 #: ../fish/guestfish.pod:756
15972 msgid ""
15973 "When a command that supports progress bars takes longer than two seconds to "
15974 "run, and if progress bars are enabled, then you will see one appearing below "
15975 "the command:"
15976 msgstr ""
15977
15978 # type: verbatim
15979 #: ../fish/guestfish.pod:760
15980 #, no-wrap
15981 msgid ""
15982 " ><fs> copy-size /large-file /another-file 2048M\n"
15983 " / 10% [#####-----------------------------------------] 00:30\n"
15984 "\n"
15985 msgstr ""
15986
15987 # type: textblock
15988 #: ../fish/guestfish.pod:763
15989 msgid ""
15990 "The spinner on the left hand side moves round once for every progress "
15991 "notification received from the backend.  This is a (reasonably) golden "
15992 "assurance that the command is \"doing something\" even if the progress bar "
15993 "is not moving, because the command is able to send the progress "
15994 "notifications.  When the bar reaches 100% and the command finishes, the "
15995 "spinner disappears."
15996 msgstr ""
15997
15998 # type: textblock
15999 #: ../fish/guestfish.pod:770
16000 msgid ""
16001 "Progress bars are enabled by default when guestfish is used interactively.  "
16002 "You can enable them even for non-interactive modes using I<--progress-bars>, "
16003 "and you can disable them completely using I<--no-progress-bars>."
16004 msgstr ""
16005
16006 # type: =head1
16007 #: ../fish/guestfish.pod:775
16008 msgid "GUESTFISH COMMANDS"
16009 msgstr ""
16010
16011 # type: textblock
16012 #: ../fish/guestfish.pod:777
16013 msgid ""
16014 "The commands in this section are guestfish convenience commands, in other "
16015 "words, they are not part of the L<guestfs(3)> API."
16016 msgstr ""
16017
16018 # type: =head2
16019 #: ../fish/guestfish.pod:780
16020 msgid "help"
16021 msgstr ""
16022
16023 # type: verbatim
16024 #: ../fish/guestfish.pod:782
16025 #, no-wrap
16026 msgid ""
16027 " help\n"
16028 " help cmd\n"
16029 "\n"
16030 msgstr ""
16031
16032 # type: textblock
16033 #: ../fish/guestfish.pod:785
16034 msgid ""
16035 "Without any parameter, this lists all commands.  With a C<cmd> parameter, "
16036 "this displays detailed help for a command."
16037 msgstr ""
16038
16039 # type: =head2
16040 #: ../fish/guestfish.pod:788
16041 msgid "quit | exit"
16042 msgstr ""
16043
16044 # type: textblock
16045 #: ../fish/guestfish.pod:790
16046 msgid "This exits guestfish.  You can also use C<^D> key."
16047 msgstr ""
16048
16049 # type: textblock
16050 #: ../fish/guestfish.pod:792
16051 msgid "@FISH_COMMANDS@"
16052 msgstr ""
16053
16054 # type: =head1
16055 #: ../fish/guestfish.pod:794
16056 msgid "COMMANDS"
16057 msgstr ""
16058
16059 # type: =head1
16060 #: ../fish/guestfish.pod:798 ../test-tool/libguestfs-test-tool.pod:83
16061 msgid "EXIT CODE"
16062 msgstr ""
16063
16064 # type: textblock
16065 #: ../fish/guestfish.pod:800
16066 msgid ""
16067 "guestfish returns 0 if the commands completed without error, or 1 if there "
16068 "was an error."
16069 msgstr ""
16070
16071 # type: =item
16072 #: ../fish/guestfish.pod:807
16073 msgid "EDITOR"
16074 msgstr ""
16075
16076 # type: textblock
16077 #: ../fish/guestfish.pod:809
16078 msgid ""
16079 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
16080 "C<vi>."
16081 msgstr ""
16082
16083 # type: =item
16084 #: ../fish/guestfish.pod:812
16085 msgid "GUESTFISH_PID"
16086 msgstr ""
16087
16088 # type: textblock
16089 #: ../fish/guestfish.pod:814
16090 msgid ""
16091 "Used with the I<--remote> option to specify the remote guestfish process to "
16092 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
16093 msgstr ""
16094
16095 # type: =item
16096 #: ../fish/guestfish.pod:818
16097 msgid "HEXEDITOR"
16098 msgstr ""
16099
16100 # type: textblock
16101 #: ../fish/guestfish.pod:820
16102 msgid ""
16103 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
16104 "not specified, the external L<hexedit(1)> program is used."
16105 msgstr ""
16106
16107 # type: =item
16108 #: ../fish/guestfish.pod:824
16109 msgid "HOME"
16110 msgstr ""
16111
16112 # type: textblock
16113 #: ../fish/guestfish.pod:826
16114 msgid ""
16115 "If compiled with GNU readline support, various files in the home directory "
16116 "can be used.  See L</FILES>."
16117 msgstr ""
16118
16119 # type: textblock
16120 #: ../fish/guestfish.pod:835
16121 msgid ""
16122 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
16123 "effect as using the B<-v> option."
16124 msgstr ""
16125
16126 # type: textblock
16127 #: ../fish/guestfish.pod:847
16128 msgid ""
16129 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
16130 "the discussion of paths in L<guestfs(3)>."
16131 msgstr ""
16132
16133 # type: textblock
16134 #: ../fish/guestfish.pod:858
16135 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
16136 msgstr ""
16137
16138 # type: =item
16139 #: ../fish/guestfish.pod:860
16140 msgid "PAGER"
16141 msgstr ""
16142
16143 # type: textblock
16144 #: ../fish/guestfish.pod:862
16145 msgid ""
16146 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
16147 "C<more>."
16148 msgstr ""
16149
16150 # type: =head1
16151 #: ../fish/guestfish.pod:877 ../test-tool/libguestfs-test-tool.pod:88
16152 msgid "FILES"
16153 msgstr ""
16154
16155 # type: =item
16156 #: ../fish/guestfish.pod:881
16157 msgid "$HOME/.guestfish"
16158 msgstr ""
16159
16160 # type: textblock
16161 #: ../fish/guestfish.pod:883
16162 msgid ""
16163 "If compiled with GNU readline support, then the command history is saved in "
16164 "this file."
16165 msgstr ""
16166
16167 # type: =item
16168 #: ../fish/guestfish.pod:886
16169 msgid "$HOME/.inputrc"
16170 msgstr ""
16171
16172 # type: =item
16173 #: ../fish/guestfish.pod:888
16174 msgid "/etc/inputrc"
16175 msgstr ""
16176
16177 # type: textblock
16178 #: ../fish/guestfish.pod:890
16179 msgid ""
16180 "If compiled with GNU readline support, then these files can be used to "
16181 "configure readline.  For further information, please see "
16182 "L<readline(3)/INITIALIZATION FILE>."
16183 msgstr ""
16184
16185 # type: textblock
16186 #: ../fish/guestfish.pod:894
16187 msgid "To write rules which only apply to guestfish, use:"
16188 msgstr ""
16189
16190 # type: verbatim
16191 #: ../fish/guestfish.pod:896
16192 #, no-wrap
16193 msgid ""
16194 " $if guestfish\n"
16195 " ...\n"
16196 " $endif\n"
16197 "\n"
16198 msgstr ""
16199
16200 # type: textblock
16201 #: ../fish/guestfish.pod:900
16202 msgid ""
16203 "Variables that you can set in inputrc that change the behaviour of guestfish "
16204 "in useful ways include:"
16205 msgstr ""
16206
16207 # type: =item
16208 #: ../fish/guestfish.pod:905
16209 msgid "completion-ignore-case (default: on)"
16210 msgstr ""
16211
16212 # type: textblock
16213 #: ../fish/guestfish.pod:907
16214 msgid ""
16215 "By default, guestfish will ignore case when tab-completing paths on the "
16216 "disk.  Use:"
16217 msgstr ""
16218
16219 # type: verbatim
16220 #: ../fish/guestfish.pod:910
16221 #, no-wrap
16222 msgid ""
16223 " set completion-ignore-case off\n"
16224 "\n"
16225 msgstr ""
16226
16227 # type: textblock
16228 #: ../fish/guestfish.pod:912
16229 msgid "to make guestfish case sensitive."
16230 msgstr ""
16231
16232 # type: =item
16233 #: ../fish/guestfish.pod:916
16234 msgid "test1.img"
16235 msgstr ""
16236
16237 # type: =item
16238 #: ../fish/guestfish.pod:918
16239 msgid "test2.img (etc)"
16240 msgstr ""
16241
16242 # type: textblock
16243 #: ../fish/guestfish.pod:920
16244 msgid ""
16245 "When using the C<-N> or C<--new> option, the prepared disk or filesystem "
16246 "will be created in the file C<test1.img> in the current directory.  The "
16247 "second use of C<-N> will use C<test2.img> and so on.  Any existing file with "
16248 "the same name will be overwritten."
16249 msgstr ""
16250
16251 # type: textblock
16252 #: ../fish/guestfish.pod:929
16253 msgid ""
16254 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-cat(1)>, L<virt-df(1)>, "
16255 "L<virt-edit(1)>, L<virt-list-filesystems(1)>, L<virt-list-partitions(1)>, "
16256 "L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-resize(1)>, "
16257 "L<virt-tar(1)>, L<virt-win-reg(1)>, L<hexedit(1)>."
16258 msgstr ""
16259
16260 # type: textblock
16261 #: ../fish/guestfish.pod:953 ../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:553 ../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
16262 msgid ""
16263 "This program is free software; you can redistribute it and/or modify it "
16264 "under the terms of the GNU General Public License as published by the Free "
16265 "Software Foundation; either version 2 of the License, or (at your option) "
16266 "any later version."
16267 msgstr ""
16268
16269 # type: textblock
16270 #: ../fish/guestfish.pod:958 ../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:558 ../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
16271 msgid ""
16272 "This program is distributed in the hope that it will be useful, but WITHOUT "
16273 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
16274 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
16275 "more details."
16276 msgstr ""
16277
16278 # type: textblock
16279 #: ../fish/guestfish.pod:963 ../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:563 ../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
16280 msgid ""
16281 "You should have received a copy of the GNU General Public License along with "
16282 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
16283 "Ave, Cambridge, MA 02139, USA."
16284 msgstr ""
16285
16286 # type: =head2
16287 #: ../fish/guestfish-actions.pod:1
16288 msgid "add-cdrom"
16289 msgstr ""
16290
16291 # type: =head2
16292 #: ../fish/guestfish-actions.pod:3
16293 msgid "cdrom"
16294 msgstr ""
16295
16296 # type: verbatim
16297 #: ../fish/guestfish-actions.pod:5
16298 #, no-wrap
16299 msgid ""
16300 " add-cdrom filename\n"
16301 "\n"
16302 msgstr ""
16303
16304 # type: textblock
16305 #: ../fish/guestfish-actions.pod:17
16306 msgid ""
16307 "This call checks for the existence of C<filename>.  This stops you from "
16308 "specifying other types of drive which are supported by qemu such as C<nbd:> "
16309 "and C<http:> URLs.  To specify those, use the general L</config> call "
16310 "instead."
16311 msgstr ""
16312
16313 # type: textblock
16314 #: ../fish/guestfish-actions.pod:24
16315 msgid ""
16316 "If you just want to add an ISO file (often you use this as an efficient way "
16317 "to transfer large files into the guest), then you should probably use "
16318 "L</add-drive-ro> instead."
16319 msgstr ""
16320
16321 # type: =head2
16322 #: ../fish/guestfish-actions.pod:30
16323 msgid "add-drive"
16324 msgstr ""
16325
16326 # type: =head2
16327 #: ../fish/guestfish-actions.pod:32
16328 msgid "add"
16329 msgstr ""
16330
16331 # type: verbatim
16332 #: ../fish/guestfish-actions.pod:34
16333 #, no-wrap
16334 msgid ""
16335 " add-drive filename\n"
16336 "\n"
16337 msgstr ""
16338
16339 # type: textblock
16340 #: ../fish/guestfish-actions.pod:53 ../fish/guestfish-actions.pod:81
16341 msgid ""
16342 "C<if=...> is set at compile time by the configuration option C<./configure "
16343 "--with-drive-if=...>.  In the rare case where you might need to change this "
16344 "at run time, use L</add-drive-with-if> or L</add-drive-ro-with-if>."
16345 msgstr ""
16346
16347 # type: textblock
16348 #: ../fish/guestfish-actions.pod:58 ../fish/guestfish-actions.pod:86
16349 msgid ""
16350 "Note that this call checks for the existence of C<filename>.  This stops you "
16351 "from specifying other types of drive which are supported by qemu such as "
16352 "C<nbd:> and C<http:> URLs.  To specify those, use the general L</config> "
16353 "call instead."
16354 msgstr ""
16355
16356 # type: =head2
16357 #: ../fish/guestfish-actions.pod:63
16358 msgid "add-drive-ro"
16359 msgstr ""
16360
16361 # type: =head2
16362 #: ../fish/guestfish-actions.pod:65
16363 msgid "add-ro"
16364 msgstr ""
16365
16366 # type: verbatim
16367 #: ../fish/guestfish-actions.pod:67
16368 #, no-wrap
16369 msgid ""
16370 " add-drive-ro filename\n"
16371 "\n"
16372 msgstr ""
16373
16374 # type: =head2
16375 #: ../fish/guestfish-actions.pod:91
16376 msgid "add-drive-ro-with-if"
16377 msgstr ""
16378
16379 # type: verbatim
16380 #: ../fish/guestfish-actions.pod:93
16381 #, no-wrap
16382 msgid ""
16383 " add-drive-ro-with-if filename iface\n"
16384 "\n"
16385 msgstr ""
16386
16387 # type: textblock
16388 #: ../fish/guestfish-actions.pod:95
16389 msgid ""
16390 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
16391 "interface emulation to use at run time."
16392 msgstr ""
16393
16394 # type: =head2
16395 #: ../fish/guestfish-actions.pod:98
16396 msgid "add-drive-with-if"
16397 msgstr ""
16398
16399 # type: verbatim
16400 #: ../fish/guestfish-actions.pod:100
16401 #, no-wrap
16402 msgid ""
16403 " add-drive-with-if filename iface\n"
16404 "\n"
16405 msgstr ""
16406
16407 # type: textblock
16408 #: ../fish/guestfish-actions.pod:102
16409 msgid ""
16410 "This is the same as L</add-drive> but it allows you to specify the QEMU "
16411 "interface emulation to use at run time."
16412 msgstr ""
16413
16414 # type: =head2
16415 #: ../fish/guestfish-actions.pod:105
16416 msgid "aug-clear"
16417 msgstr ""
16418
16419 # type: verbatim
16420 #: ../fish/guestfish-actions.pod:107
16421 #, no-wrap
16422 msgid ""
16423 " aug-clear augpath\n"
16424 "\n"
16425 msgstr ""
16426
16427 # type: =head2
16428 #: ../fish/guestfish-actions.pod:112
16429 msgid "aug-close"
16430 msgstr ""
16431
16432 # type: verbatim
16433 #: ../fish/guestfish-actions.pod:114
16434 #, no-wrap
16435 msgid ""
16436 " aug-close\n"
16437 "\n"
16438 msgstr ""
16439
16440 # type: textblock
16441 #: ../fish/guestfish-actions.pod:116
16442 msgid ""
16443 "Close the current Augeas handle and free up any resources used by it.  After "
16444 "calling this, you have to call L</aug-init> again before you can use any "
16445 "other Augeas functions."
16446 msgstr ""
16447
16448 # type: =head2
16449 #: ../fish/guestfish-actions.pod:121
16450 msgid "aug-defnode"
16451 msgstr ""
16452
16453 # type: verbatim
16454 #: ../fish/guestfish-actions.pod:123
16455 #, no-wrap
16456 msgid ""
16457 " aug-defnode name expr val\n"
16458 "\n"
16459 msgstr ""
16460
16461 # type: textblock
16462 #: ../fish/guestfish-actions.pod:128
16463 msgid ""
16464 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
16465 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
16466 "containing that single node."
16467 msgstr ""
16468
16469 # type: =head2
16470 #: ../fish/guestfish-actions.pod:136
16471 msgid "aug-defvar"
16472 msgstr ""
16473
16474 # type: verbatim
16475 #: ../fish/guestfish-actions.pod:138
16476 #, no-wrap
16477 msgid ""
16478 " aug-defvar name expr\n"
16479 "\n"
16480 msgstr ""
16481
16482 # type: =head2
16483 #: ../fish/guestfish-actions.pod:147
16484 msgid "aug-get"
16485 msgstr ""
16486
16487 # type: verbatim
16488 #: ../fish/guestfish-actions.pod:149
16489 #, no-wrap
16490 msgid ""
16491 " aug-get augpath\n"
16492 "\n"
16493 msgstr ""
16494
16495 # type: =head2
16496 #: ../fish/guestfish-actions.pod:154
16497 msgid "aug-init"
16498 msgstr ""
16499
16500 # type: verbatim
16501 #: ../fish/guestfish-actions.pod:156
16502 #, no-wrap
16503 msgid ""
16504 " aug-init root flags\n"
16505 "\n"
16506 msgstr ""
16507
16508 # type: textblock
16509 #: ../fish/guestfish-actions.pod:162
16510 msgid "You must call this before using any other L</aug-*> commands."
16511 msgstr ""
16512
16513 # type: textblock
16514 #: ../fish/guestfish-actions.pod:197
16515 msgid "Do not load the tree in L</aug-init>."
16516 msgstr ""
16517
16518 # type: textblock
16519 #: ../fish/guestfish-actions.pod:201
16520 msgid "To close the handle, you can call L</aug-close>."
16521 msgstr ""
16522
16523 # type: =head2
16524 #: ../fish/guestfish-actions.pod:205
16525 msgid "aug-insert"
16526 msgstr ""
16527
16528 # type: verbatim
16529 #: ../fish/guestfish-actions.pod:207
16530 #, no-wrap
16531 msgid ""
16532 " aug-insert augpath label true|false\n"
16533 "\n"
16534 msgstr ""
16535
16536 # type: =head2
16537 #: ../fish/guestfish-actions.pod:217
16538 msgid "aug-load"
16539 msgstr ""
16540
16541 # type: verbatim
16542 #: ../fish/guestfish-actions.pod:219
16543 #, no-wrap
16544 msgid ""
16545 " aug-load\n"
16546 "\n"
16547 msgstr ""
16548
16549 # type: =head2
16550 #: ../fish/guestfish-actions.pod:226
16551 msgid "aug-ls"
16552 msgstr ""
16553
16554 # type: verbatim
16555 #: ../fish/guestfish-actions.pod:228
16556 #, no-wrap
16557 msgid ""
16558 " aug-ls augpath\n"
16559 "\n"
16560 msgstr ""
16561
16562 # type: textblock
16563 #: ../fish/guestfish-actions.pod:230
16564 msgid ""
16565 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
16566 "resulting nodes into alphabetical order."
16567 msgstr ""
16568
16569 # type: =head2
16570 #: ../fish/guestfish-actions.pod:233
16571 msgid "aug-match"
16572 msgstr ""
16573
16574 # type: verbatim
16575 #: ../fish/guestfish-actions.pod:235
16576 #, no-wrap
16577 msgid ""
16578 " aug-match augpath\n"
16579 "\n"
16580 msgstr ""
16581
16582 # type: =head2
16583 #: ../fish/guestfish-actions.pod:241
16584 msgid "aug-mv"
16585 msgstr ""
16586
16587 # type: verbatim
16588 #: ../fish/guestfish-actions.pod:243
16589 #, no-wrap
16590 msgid ""
16591 " aug-mv src dest\n"
16592 "\n"
16593 msgstr ""
16594
16595 # type: =head2
16596 #: ../fish/guestfish-actions.pod:248
16597 msgid "aug-rm"
16598 msgstr ""
16599
16600 # type: verbatim
16601 #: ../fish/guestfish-actions.pod:250
16602 #, no-wrap
16603 msgid ""
16604 " aug-rm augpath\n"
16605 "\n"
16606 msgstr ""
16607
16608 # type: =head2
16609 #: ../fish/guestfish-actions.pod:256
16610 msgid "aug-save"
16611 msgstr ""
16612
16613 # type: verbatim
16614 #: ../fish/guestfish-actions.pod:258
16615 #, no-wrap
16616 msgid ""
16617 " aug-save\n"
16618 "\n"
16619 msgstr ""
16620
16621 # type: textblock
16622 #: ../fish/guestfish-actions.pod:262
16623 msgid ""
16624 "The flags which were passed to L</aug-init> affect exactly how files are "
16625 "saved."
16626 msgstr ""
16627
16628 # type: =head2
16629 #: ../fish/guestfish-actions.pod:265
16630 msgid "aug-set"
16631 msgstr ""
16632
16633 # type: verbatim
16634 #: ../fish/guestfish-actions.pod:267
16635 #, no-wrap
16636 msgid ""
16637 " aug-set augpath val\n"
16638 "\n"
16639 msgstr ""
16640
16641 # type: textblock
16642 #: ../fish/guestfish-actions.pod:271
16643 msgid ""
16644 "In the Augeas API, it is possible to clear a node by setting the value to "
16645 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
16646 "this call.  Instead you must use the L</aug-clear> call."
16647 msgstr ""
16648
16649 # type: =head2
16650 #: ../fish/guestfish-actions.pod:276
16651 msgid "available"
16652 msgstr ""
16653
16654 # type: verbatim
16655 #: ../fish/guestfish-actions.pod:278
16656 #, no-wrap
16657 msgid ""
16658 " available 'groups ...'\n"
16659 "\n"
16660 msgstr ""
16661
16662 # type: textblock
16663 #: ../fish/guestfish-actions.pod:284
16664 msgid ""
16665 "The libguestfs groups, and the functions that those groups correspond to, "
16666 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
16667 "runtime by calling L</available-all-groups>."
16668 msgstr ""
16669
16670 # type: textblock
16671 #: ../fish/guestfish-actions.pod:308
16672 msgid "You must call L</launch> before calling this function."
16673 msgstr ""
16674
16675 # type: textblock
16676 #: ../fish/guestfish-actions.pod:330
16677 msgid ""
16678 "This call was added in version C<1.0.80>.  In previous versions of "
16679 "libguestfs all you could do would be to speculatively execute a command to "
16680 "find out if the daemon implemented it.  See also L</version>."
16681 msgstr ""
16682
16683 # type: =head2
16684 #: ../fish/guestfish-actions.pod:337
16685 msgid "available-all-groups"
16686 msgstr ""
16687
16688 # type: verbatim
16689 #: ../fish/guestfish-actions.pod:339
16690 #, no-wrap
16691 msgid ""
16692 " available-all-groups\n"
16693 "\n"
16694 msgstr ""
16695
16696 # type: textblock
16697 #: ../fish/guestfish-actions.pod:341
16698 msgid ""
16699 "This command returns a list of all optional groups that this daemon knows "
16700 "about.  Note this returns both supported and unsupported groups.  To find "
16701 "out which ones the daemon can actually support you have to call "
16702 "L</available> on each member of the returned list."
16703 msgstr ""
16704
16705 # type: textblock
16706 #: ../fish/guestfish-actions.pod:347
16707 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
16708 msgstr ""
16709
16710 # type: =head2
16711 #: ../fish/guestfish-actions.pod:349
16712 msgid "base64-in"
16713 msgstr ""
16714
16715 # type: verbatim
16716 #: ../fish/guestfish-actions.pod:351
16717 #, no-wrap
16718 msgid ""
16719 " base64-in (base64file|-) filename\n"
16720 "\n"
16721 msgstr ""
16722
16723 # type: textblock
16724 #: ../fish/guestfish-actions.pod:356 ../fish/guestfish-actions.pod:365 ../fish/guestfish-actions.pod:589 ../fish/guestfish-actions.pod:736 ../fish/guestfish-actions.pod:783 ../fish/guestfish-actions.pod:802 ../fish/guestfish-actions.pod:1179 ../fish/guestfish-actions.pod:3803 ../fish/guestfish-actions.pod:3815 ../fish/guestfish-actions.pod:3826 ../fish/guestfish-actions.pod:3837 ../fish/guestfish-actions.pod:3889 ../fish/guestfish-actions.pod:3898 ../fish/guestfish-actions.pod:3952 ../fish/guestfish-actions.pod:3975
16725 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
16726 msgstr ""
16727
16728 # type: =head2
16729 #: ../fish/guestfish-actions.pod:358
16730 msgid "base64-out"
16731 msgstr ""
16732
16733 # type: verbatim
16734 #: ../fish/guestfish-actions.pod:360
16735 #, no-wrap
16736 msgid ""
16737 " base64-out filename (base64file|-)\n"
16738 "\n"
16739 msgstr ""
16740
16741 # type: =head2
16742 #: ../fish/guestfish-actions.pod:367
16743 msgid "blockdev-flushbufs"
16744 msgstr ""
16745
16746 # type: verbatim
16747 #: ../fish/guestfish-actions.pod:369
16748 #, no-wrap
16749 msgid ""
16750 " blockdev-flushbufs device\n"
16751 "\n"
16752 msgstr ""
16753
16754 # type: =head2
16755 #: ../fish/guestfish-actions.pod:376
16756 msgid "blockdev-getbsz"
16757 msgstr ""
16758
16759 # type: verbatim
16760 #: ../fish/guestfish-actions.pod:378
16761 #, no-wrap
16762 msgid ""
16763 " blockdev-getbsz device\n"
16764 "\n"
16765 msgstr ""
16766
16767 # type: =head2
16768 #: ../fish/guestfish-actions.pod:387
16769 msgid "blockdev-getro"
16770 msgstr ""
16771
16772 # type: verbatim
16773 #: ../fish/guestfish-actions.pod:389
16774 #, no-wrap
16775 msgid ""
16776 " blockdev-getro device\n"
16777 "\n"
16778 msgstr ""
16779
16780 # type: =head2
16781 #: ../fish/guestfish-actions.pod:396
16782 msgid "blockdev-getsize64"
16783 msgstr ""
16784
16785 # type: verbatim
16786 #: ../fish/guestfish-actions.pod:398
16787 #, no-wrap
16788 msgid ""
16789 " blockdev-getsize64 device\n"
16790 "\n"
16791 msgstr ""
16792
16793 # type: textblock
16794 #: ../fish/guestfish-actions.pod:402
16795 msgid "See also L</blockdev-getsz>."
16796 msgstr ""
16797
16798 # type: =head2
16799 #: ../fish/guestfish-actions.pod:406
16800 msgid "blockdev-getss"
16801 msgstr ""
16802
16803 # type: verbatim
16804 #: ../fish/guestfish-actions.pod:408
16805 #, no-wrap
16806 msgid ""
16807 " blockdev-getss device\n"
16808 "\n"
16809 msgstr ""
16810
16811 # type: textblock
16812 #: ../fish/guestfish-actions.pod:413
16813 msgid "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
16814 msgstr ""
16815
16816 # type: =head2
16817 #: ../fish/guestfish-actions.pod:418
16818 msgid "blockdev-getsz"
16819 msgstr ""
16820
16821 # type: verbatim
16822 #: ../fish/guestfish-actions.pod:420
16823 #, no-wrap
16824 msgid ""
16825 " blockdev-getsz device\n"
16826 "\n"
16827 msgstr ""
16828
16829 # type: textblock
16830 #: ../fish/guestfish-actions.pod:425
16831 msgid ""
16832 "See also L</blockdev-getss> for the real sector size of the device, and "
16833 "L</blockdev-getsize64> for the more useful I<size in bytes>."
16834 msgstr ""
16835
16836 # type: =head2
16837 #: ../fish/guestfish-actions.pod:431
16838 msgid "blockdev-rereadpt"
16839 msgstr ""
16840
16841 # type: verbatim
16842 #: ../fish/guestfish-actions.pod:433
16843 #, no-wrap
16844 msgid ""
16845 " blockdev-rereadpt device\n"
16846 "\n"
16847 msgstr ""
16848
16849 # type: =head2
16850 #: ../fish/guestfish-actions.pod:439
16851 msgid "blockdev-setbsz"
16852 msgstr ""
16853
16854 # type: verbatim
16855 #: ../fish/guestfish-actions.pod:441
16856 #, no-wrap
16857 msgid ""
16858 " blockdev-setbsz device blocksize\n"
16859 "\n"
16860 msgstr ""
16861
16862 # type: =head2
16863 #: ../fish/guestfish-actions.pod:450
16864 msgid "blockdev-setro"
16865 msgstr ""
16866
16867 # type: verbatim
16868 #: ../fish/guestfish-actions.pod:452
16869 #, no-wrap
16870 msgid ""
16871 " blockdev-setro device\n"
16872 "\n"
16873 msgstr ""
16874
16875 # type: =head2
16876 #: ../fish/guestfish-actions.pod:458
16877 msgid "blockdev-setrw"
16878 msgstr ""
16879
16880 # type: verbatim
16881 #: ../fish/guestfish-actions.pod:460
16882 #, no-wrap
16883 msgid ""
16884 " blockdev-setrw device\n"
16885 "\n"
16886 msgstr ""
16887
16888 # type: =head2
16889 #: ../fish/guestfish-actions.pod:466
16890 msgid "case-sensitive-path"
16891 msgstr ""
16892
16893 # type: verbatim
16894 #: ../fish/guestfish-actions.pod:468
16895 #, no-wrap
16896 msgid ""
16897 " case-sensitive-path path\n"
16898 "\n"
16899 msgstr ""
16900
16901 # type: textblock
16902 #: ../fish/guestfish-actions.pod:492
16903 msgid ""
16904 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return "
16905 "C<\"/WINDOWS/system32\"> (the exact return value would depend on details of "
16906 "how the directories were originally created under Windows)."
16907 msgstr ""
16908
16909 # type: textblock
16910 #: ../fish/guestfish-actions.pod:500
16911 msgid "See also L</realpath>."
16912 msgstr ""
16913
16914 # type: =head2
16915 #: ../fish/guestfish-actions.pod:502
16916 msgid "cat"
16917 msgstr ""
16918
16919 # type: verbatim
16920 #: ../fish/guestfish-actions.pod:504
16921 #, no-wrap
16922 msgid ""
16923 " cat path\n"
16924 "\n"
16925 msgstr ""
16926
16927 # type: textblock
16928 #: ../fish/guestfish-actions.pod:508
16929 msgid ""
16930 "Note that this function cannot correctly handle binary files (specifically, "
16931 "files containing C<\\0> character which is treated as end of string).  For "
16932 "those you need to use the L</read-file> or L</download> functions which have "
16933 "a more complex interface."
16934 msgstr ""
16935
16936 # type: =head2
16937 #: ../fish/guestfish-actions.pod:516
16938 msgid "checksum"
16939 msgstr ""
16940
16941 # type: verbatim
16942 #: ../fish/guestfish-actions.pod:518
16943 #, no-wrap
16944 msgid ""
16945 " checksum csumtype path\n"
16946 "\n"
16947 msgstr ""
16948
16949 # type: textblock
16950 #: ../fish/guestfish-actions.pod:561
16951 msgid "To get the checksum for a device, use L</checksum-device>."
16952 msgstr ""
16953
16954 # type: textblock
16955 #: ../fish/guestfish-actions.pod:563
16956 msgid "To get the checksums for many files, use L</checksums-out>."
16957 msgstr ""
16958
16959 # type: =head2
16960 #: ../fish/guestfish-actions.pod:565
16961 msgid "checksum-device"
16962 msgstr ""
16963
16964 # type: verbatim
16965 #: ../fish/guestfish-actions.pod:567
16966 #, no-wrap
16967 msgid ""
16968 " checksum-device csumtype device\n"
16969 "\n"
16970 msgstr ""
16971
16972 # type: textblock
16973 #: ../fish/guestfish-actions.pod:569
16974 msgid ""
16975 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
16976 "device named C<device>.  For the types of checksums supported see the "
16977 "L</checksum> command."
16978 msgstr ""
16979
16980 # type: =head2
16981 #: ../fish/guestfish-actions.pod:573
16982 msgid "checksums-out"
16983 msgstr ""
16984
16985 # type: verbatim
16986 #: ../fish/guestfish-actions.pod:575
16987 #, no-wrap
16988 msgid ""
16989 " checksums-out csumtype directory (sumsfile|-)\n"
16990 "\n"
16991 msgstr ""
16992
16993 # type: =head2
16994 #: ../fish/guestfish-actions.pod:591
16995 msgid "chmod"
16996 msgstr ""
16997
16998 # type: verbatim
16999 #: ../fish/guestfish-actions.pod:593
17000 #, no-wrap
17001 msgid ""
17002 " chmod mode path\n"
17003 "\n"
17004 msgstr ""
17005
17006 # type: =head2
17007 #: ../fish/guestfish-actions.pod:604
17008 msgid "chown"
17009 msgstr ""
17010
17011 # type: verbatim
17012 #: ../fish/guestfish-actions.pod:606
17013 #, no-wrap
17014 msgid ""
17015 " chown owner group path\n"
17016 "\n"
17017 msgstr ""
17018
17019 # type: =head2
17020 #: ../fish/guestfish-actions.pod:614
17021 msgid "command"
17022 msgstr ""
17023
17024 # type: verbatim
17025 #: ../fish/guestfish-actions.pod:616
17026 #, no-wrap
17027 msgid ""
17028 " command 'arguments ...'\n"
17029 "\n"
17030 msgstr ""
17031
17032 # type: textblock
17033 #: ../fish/guestfish-actions.pod:623
17034 msgid ""
17035 "The single parameter is an argv-style list of arguments.  The first element "
17036 "is the name of the program to run.  Subsequent elements are parameters.  The "
17037 "list must be non-empty (ie. must contain a program name).  Note that the "
17038 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
17039 msgstr ""
17040
17041 # type: =head2
17042 #: ../fish/guestfish-actions.pod:651
17043 msgid "command-lines"
17044 msgstr ""
17045
17046 # type: verbatim
17047 #: ../fish/guestfish-actions.pod:653
17048 #, no-wrap
17049 msgid ""
17050 " command-lines 'arguments ...'\n"
17051 "\n"
17052 msgstr ""
17053
17054 # type: textblock
17055 #: ../fish/guestfish-actions.pod:655
17056 msgid "This is the same as L</command>, but splits the result into a list of lines."
17057 msgstr ""
17058
17059 # type: textblock
17060 #: ../fish/guestfish-actions.pod:658
17061 msgid "See also: L</sh-lines>"
17062 msgstr ""
17063
17064 # type: =head2
17065 #: ../fish/guestfish-actions.pod:663
17066 msgid "config"
17067 msgstr ""
17068
17069 # type: verbatim
17070 #: ../fish/guestfish-actions.pod:665
17071 #, no-wrap
17072 msgid ""
17073 " config qemuparam qemuvalue\n"
17074 "\n"
17075 msgstr ""
17076
17077 # type: =head2
17078 #: ../fish/guestfish-actions.pod:676
17079 msgid "copy-size"
17080 msgstr ""
17081
17082 # type: verbatim
17083 #: ../fish/guestfish-actions.pod:678
17084 #, no-wrap
17085 msgid ""
17086 " copy-size src dest size\n"
17087 "\n"
17088 msgstr ""
17089
17090 # type: =head2
17091 #: ../fish/guestfish-actions.pod:686
17092 msgid "cp"
17093 msgstr ""
17094
17095 # type: verbatim
17096 #: ../fish/guestfish-actions.pod:688
17097 #, no-wrap
17098 msgid ""
17099 " cp src dest\n"
17100 "\n"
17101 msgstr ""
17102
17103 # type: =head2
17104 #: ../fish/guestfish-actions.pod:693
17105 msgid "cp-a"
17106 msgstr ""
17107
17108 # type: verbatim
17109 #: ../fish/guestfish-actions.pod:695
17110 #, no-wrap
17111 msgid ""
17112 " cp-a src dest\n"
17113 "\n"
17114 msgstr ""
17115
17116 # type: =head2
17117 #: ../fish/guestfish-actions.pod:700
17118 msgid "dd"
17119 msgstr ""
17120
17121 # type: verbatim
17122 #: ../fish/guestfish-actions.pod:702
17123 #, no-wrap
17124 msgid ""
17125 " dd src dest\n"
17126 "\n"
17127 msgstr ""
17128
17129 # type: textblock
17130 #: ../fish/guestfish-actions.pod:709
17131 msgid ""
17132 "If the destination is a device, it must be as large or larger than the "
17133 "source file or device, otherwise the copy will fail.  This command cannot do "
17134 "partial copies (see L</copy-size>)."
17135 msgstr ""
17136
17137 # type: =head2
17138 #: ../fish/guestfish-actions.pod:713
17139 msgid "debug"
17140 msgstr ""
17141
17142 # type: verbatim
17143 #: ../fish/guestfish-actions.pod:715
17144 #, no-wrap
17145 msgid ""
17146 " debug subcmd 'extraargs ...'\n"
17147 "\n"
17148 msgstr ""
17149
17150 # type: textblock
17151 #: ../fish/guestfish-actions.pod:717
17152 msgid ""
17153 "The L</debug> command exposes some internals of C<guestfsd> (the guestfs "
17154 "daemon) that runs inside the qemu subprocess."
17155 msgstr ""
17156
17157 # type: =head2
17158 #: ../fish/guestfish-actions.pod:725
17159 msgid "debug-upload"
17160 msgstr ""
17161
17162 # type: verbatim
17163 #: ../fish/guestfish-actions.pod:727
17164 #, no-wrap
17165 msgid ""
17166 " debug-upload (filename|-) tmpname mode\n"
17167 "\n"
17168 msgstr ""
17169
17170 # type: textblock
17171 #: ../fish/guestfish-actions.pod:729
17172 msgid "The L</debug-upload> command uploads a file to the libguestfs appliance."
17173 msgstr ""
17174
17175 # type: =head2
17176 #: ../fish/guestfish-actions.pod:738
17177 msgid "df"
17178 msgstr ""
17179
17180 # type: verbatim
17181 #: ../fish/guestfish-actions.pod:740
17182 #, no-wrap
17183 msgid ""
17184 " df\n"
17185 "\n"
17186 msgstr ""
17187
17188 # type: =head2
17189 #: ../fish/guestfish-actions.pod:748
17190 msgid "df-h"
17191 msgstr ""
17192
17193 # type: verbatim
17194 #: ../fish/guestfish-actions.pod:750
17195 #, no-wrap
17196 msgid ""
17197 " df-h\n"
17198 "\n"
17199 msgstr ""
17200
17201 # type: =head2
17202 #: ../fish/guestfish-actions.pod:759
17203 msgid "dmesg"
17204 msgstr ""
17205
17206 # type: verbatim
17207 #: ../fish/guestfish-actions.pod:761
17208 #, no-wrap
17209 msgid ""
17210 " dmesg\n"
17211 "\n"
17212 msgstr ""
17213
17214 # type: textblock
17215 #: ../fish/guestfish-actions.pod:767
17216 msgid ""
17217 "Another way to get the same information is to enable verbose messages with "
17218 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
17219 "before running the program."
17220 msgstr ""
17221
17222 # type: =head2
17223 #: ../fish/guestfish-actions.pod:772
17224 msgid "download"
17225 msgstr ""
17226
17227 # type: verbatim
17228 #: ../fish/guestfish-actions.pod:774
17229 #, no-wrap
17230 msgid ""
17231 " download remotefilename (filename|-)\n"
17232 "\n"
17233 msgstr ""
17234
17235 # type: textblock
17236 #: ../fish/guestfish-actions.pod:781
17237 msgid "See also L</upload>, L</cat>."
17238 msgstr ""
17239
17240 # type: =head2
17241 #: ../fish/guestfish-actions.pod:785
17242 msgid "download-offset"
17243 msgstr ""
17244
17245 # type: verbatim
17246 #: ../fish/guestfish-actions.pod:787
17247 #, no-wrap
17248 msgid ""
17249 " download-offset remotefilename (filename|-) offset size\n"
17250 "\n"
17251 msgstr ""
17252
17253 # type: textblock
17254 #: ../fish/guestfish-actions.pod:795
17255 msgid ""
17256 "Note that there is no limit on the amount of data that can be downloaded "
17257 "with this call, unlike with L</pread>, and this call always reads the full "
17258 "amount unless an error occurs."
17259 msgstr ""
17260
17261 # type: textblock
17262 #: ../fish/guestfish-actions.pod:800
17263 msgid "See also L</download>, L</pread>."
17264 msgstr ""
17265
17266 # type: =head2
17267 #: ../fish/guestfish-actions.pod:804
17268 msgid "drop-caches"
17269 msgstr ""
17270
17271 # type: verbatim
17272 #: ../fish/guestfish-actions.pod:806
17273 #, no-wrap
17274 msgid ""
17275 " drop-caches whattodrop\n"
17276 "\n"
17277 msgstr ""
17278
17279 # type: =head2
17280 #: ../fish/guestfish-actions.pod:818
17281 msgid "du"
17282 msgstr ""
17283
17284 # type: verbatim
17285 #: ../fish/guestfish-actions.pod:820
17286 #, no-wrap
17287 msgid ""
17288 " du path\n"
17289 "\n"
17290 msgstr ""
17291
17292 # type: =head2
17293 #: ../fish/guestfish-actions.pod:832
17294 msgid "e2fsck-f"
17295 msgstr ""
17296
17297 # type: verbatim
17298 #: ../fish/guestfish-actions.pod:834
17299 #, no-wrap
17300 msgid ""
17301 " e2fsck-f device\n"
17302 "\n"
17303 msgstr ""
17304
17305 # type: textblock
17306 #: ../fish/guestfish-actions.pod:840
17307 msgid ""
17308 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
17309 "should use L</fsck>."
17310 msgstr ""
17311
17312 # type: =head2
17313 #: ../fish/guestfish-actions.pod:843
17314 msgid "echo-daemon"
17315 msgstr ""
17316
17317 # type: verbatim
17318 #: ../fish/guestfish-actions.pod:845
17319 #, no-wrap
17320 msgid ""
17321 " echo-daemon 'words ...'\n"
17322 "\n"
17323 msgstr ""
17324
17325 # type: textblock
17326 #: ../fish/guestfish-actions.pod:852
17327 msgid "See also L</ping-daemon>."
17328 msgstr ""
17329
17330 # type: =head2
17331 #: ../fish/guestfish-actions.pod:854
17332 msgid "egrep"
17333 msgstr ""
17334
17335 # type: verbatim
17336 #: ../fish/guestfish-actions.pod:856
17337 #, no-wrap
17338 msgid ""
17339 " egrep regex path\n"
17340 "\n"
17341 msgstr ""
17342
17343 # type: =head2
17344 #: ../fish/guestfish-actions.pod:864
17345 msgid "egrepi"
17346 msgstr ""
17347
17348 # type: verbatim
17349 #: ../fish/guestfish-actions.pod:866
17350 #, no-wrap
17351 msgid ""
17352 " egrepi regex path\n"
17353 "\n"
17354 msgstr ""
17355
17356 # type: =head2
17357 #: ../fish/guestfish-actions.pod:874
17358 msgid "equal"
17359 msgstr ""
17360
17361 # type: verbatim
17362 #: ../fish/guestfish-actions.pod:876
17363 #, no-wrap
17364 msgid ""
17365 " equal file1 file2\n"
17366 "\n"
17367 msgstr ""
17368
17369 # type: =head2
17370 #: ../fish/guestfish-actions.pod:883
17371 msgid "exists"
17372 msgstr ""
17373
17374 # type: verbatim
17375 #: ../fish/guestfish-actions.pod:885
17376 #, no-wrap
17377 msgid ""
17378 " exists path\n"
17379 "\n"
17380 msgstr ""
17381
17382 # type: textblock
17383 #: ../fish/guestfish-actions.pod:890
17384 msgid "See also L</is-file>, L</is-dir>, L</stat>."
17385 msgstr ""
17386
17387 # type: =head2
17388 #: ../fish/guestfish-actions.pod:892
17389 msgid "fallocate"
17390 msgstr ""
17391
17392 # type: verbatim
17393 #: ../fish/guestfish-actions.pod:894
17394 #, no-wrap
17395 msgid ""
17396 " fallocate path len\n"
17397 "\n"
17398 msgstr ""
17399
17400 # type: =head2
17401 #: ../fish/guestfish-actions.pod:911
17402 msgid "fallocate64"
17403 msgstr ""
17404
17405 # type: verbatim
17406 #: ../fish/guestfish-actions.pod:913
17407 #, no-wrap
17408 msgid ""
17409 " fallocate64 path len\n"
17410 "\n"
17411 msgstr ""
17412
17413 # type: textblock
17414 #: ../fish/guestfish-actions.pod:919
17415 msgid ""
17416 "Note that this call allocates disk blocks for the file.  To create a sparse "
17417 "file use L</truncate-size> instead."
17418 msgstr ""
17419
17420 # type: textblock
17421 #: ../fish/guestfish-actions.pod:922
17422 msgid ""
17423 "The deprecated call L</fallocate> does the same, but owing to an oversight "
17424 "it only allowed 30 bit lengths to be specified, effectively limiting the "
17425 "maximum size of files created through that call to 1GB."
17426 msgstr ""
17427
17428 # type: =head2
17429 #: ../fish/guestfish-actions.pod:931
17430 msgid "fgrep"
17431 msgstr ""
17432
17433 # type: verbatim
17434 #: ../fish/guestfish-actions.pod:933
17435 #, no-wrap
17436 msgid ""
17437 " fgrep pattern path\n"
17438 "\n"
17439 msgstr ""
17440
17441 # type: =head2
17442 #: ../fish/guestfish-actions.pod:941
17443 msgid "fgrepi"
17444 msgstr ""
17445
17446 # type: verbatim
17447 #: ../fish/guestfish-actions.pod:943
17448 #, no-wrap
17449 msgid ""
17450 " fgrepi pattern path\n"
17451 "\n"
17452 msgstr ""
17453
17454 # type: =head2
17455 #: ../fish/guestfish-actions.pod:951
17456 msgid "file"
17457 msgstr ""
17458
17459 # type: verbatim
17460 #: ../fish/guestfish-actions.pod:953
17461 #, no-wrap
17462 msgid ""
17463 " file path\n"
17464 "\n"
17465 msgstr ""
17466
17467 # type: textblock
17468 #: ../fish/guestfish-actions.pod:965
17469 msgid ""
17470 "This command can also be used on C</dev/> devices (and partitions, LV "
17471 "names).  You can for example use this to determine if a device contains a "
17472 "filesystem, although it's usually better to use L</vfs-type>."
17473 msgstr ""
17474
17475 # type: =head2
17476 #: ../fish/guestfish-actions.pod:975
17477 msgid "file-architecture"
17478 msgstr ""
17479
17480 # type: verbatim
17481 #: ../fish/guestfish-actions.pod:977
17482 #, no-wrap
17483 msgid ""
17484 " file-architecture filename\n"
17485 "\n"
17486 msgstr ""
17487
17488 # type: =head2
17489 #: ../fish/guestfish-actions.pod:1080
17490 msgid "filesize"
17491 msgstr ""
17492
17493 # type: verbatim
17494 #: ../fish/guestfish-actions.pod:1082
17495 #, no-wrap
17496 msgid ""
17497 " filesize file\n"
17498 "\n"
17499 msgstr ""
17500
17501 # type: textblock
17502 #: ../fish/guestfish-actions.pod:1086
17503 msgid ""
17504 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, "
17505 "L</is-file> etc.  To get the size of block devices, use "
17506 "L</blockdev-getsize64>."
17507 msgstr ""
17508
17509 # type: =head2
17510 #: ../fish/guestfish-actions.pod:1090
17511 msgid "fill"
17512 msgstr ""
17513
17514 # type: verbatim
17515 #: ../fish/guestfish-actions.pod:1092
17516 #, no-wrap
17517 msgid ""
17518 " fill c len path\n"
17519 "\n"
17520 msgstr ""
17521
17522 # type: textblock
17523 #: ../fish/guestfish-actions.pod:1098
17524 msgid ""
17525 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
17526 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
17527 "L</fill-pattern>."
17528 msgstr ""
17529
17530 # type: =head2
17531 #: ../fish/guestfish-actions.pod:1103
17532 msgid "fill-pattern"
17533 msgstr ""
17534
17535 # type: verbatim
17536 #: ../fish/guestfish-actions.pod:1105
17537 #, no-wrap
17538 msgid ""
17539 " fill-pattern pattern len path\n"
17540 "\n"
17541 msgstr ""
17542
17543 # type: textblock
17544 #: ../fish/guestfish-actions.pod:1107
17545 msgid ""
17546 "This function is like L</fill> except that it creates a new file of length "
17547 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
17548 "is truncated if necessary to ensure the length of the file is exactly C<len> "
17549 "bytes."
17550 msgstr ""
17551
17552 # type: =head2
17553 #: ../fish/guestfish-actions.pod:1112
17554 msgid "find"
17555 msgstr ""
17556
17557 # type: verbatim
17558 #: ../fish/guestfish-actions.pod:1114
17559 #, no-wrap
17560 msgid ""
17561 " find directory\n"
17562 "\n"
17563 msgstr ""
17564
17565 # type: textblock
17566 #: ../fish/guestfish-actions.pod:1128
17567 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
17568 msgstr ""
17569
17570 # type: textblock
17571 #: ../fish/guestfish-actions.pod:1141
17572 msgid "See also L</find0>."
17573 msgstr ""
17574
17575 # type: =head2
17576 #: ../fish/guestfish-actions.pod:1146
17577 msgid "find0"
17578 msgstr ""
17579
17580 # type: verbatim
17581 #: ../fish/guestfish-actions.pod:1148
17582 #, no-wrap
17583 msgid ""
17584 " find0 directory (files|-)\n"
17585 "\n"
17586 msgstr ""
17587
17588 # type: textblock
17589 #: ../fish/guestfish-actions.pod:1154
17590 msgid "This command works the same way as L</find> with the following exceptions:"
17591 msgstr ""
17592
17593 # type: =head2
17594 #: ../fish/guestfish-actions.pod:1181
17595 msgid "findfs-label"
17596 msgstr ""
17597
17598 # type: verbatim
17599 #: ../fish/guestfish-actions.pod:1183
17600 #, no-wrap
17601 msgid ""
17602 " findfs-label label\n"
17603 "\n"
17604 msgstr ""
17605
17606 # type: textblock
17607 #: ../fish/guestfish-actions.pod:1189
17608 msgid "To find the label of a filesystem, use L</vfs-label>."
17609 msgstr ""
17610
17611 # type: =head2
17612 #: ../fish/guestfish-actions.pod:1191
17613 msgid "findfs-uuid"
17614 msgstr ""
17615
17616 # type: verbatim
17617 #: ../fish/guestfish-actions.pod:1193
17618 #, no-wrap
17619 msgid ""
17620 " findfs-uuid uuid\n"
17621 "\n"
17622 msgstr ""
17623
17624 # type: textblock
17625 #: ../fish/guestfish-actions.pod:1199
17626 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
17627 msgstr ""
17628
17629 # type: =head2
17630 #: ../fish/guestfish-actions.pod:1201
17631 msgid "fsck"
17632 msgstr ""
17633
17634 # type: verbatim
17635 #: ../fish/guestfish-actions.pod:1203
17636 #, no-wrap
17637 msgid ""
17638 " fsck fstype device\n"
17639 "\n"
17640 msgstr ""
17641
17642 # type: =head2
17643 #: ../fish/guestfish-actions.pod:1233
17644 msgid "get-append"
17645 msgstr ""
17646
17647 # type: verbatim
17648 #: ../fish/guestfish-actions.pod:1235
17649 #, no-wrap
17650 msgid ""
17651 " get-append\n"
17652 "\n"
17653 msgstr ""
17654
17655 # type: =head2
17656 #: ../fish/guestfish-actions.pod:1242
17657 msgid "get-autosync"
17658 msgstr ""
17659
17660 # type: verbatim
17661 #: ../fish/guestfish-actions.pod:1244
17662 #, no-wrap
17663 msgid ""
17664 " get-autosync\n"
17665 "\n"
17666 msgstr ""
17667
17668 # type: =head2
17669 #: ../fish/guestfish-actions.pod:1248
17670 msgid "get-direct"
17671 msgstr ""
17672
17673 # type: verbatim
17674 #: ../fish/guestfish-actions.pod:1250
17675 #, no-wrap
17676 msgid ""
17677 " get-direct\n"
17678 "\n"
17679 msgstr ""
17680
17681 # type: =head2
17682 #: ../fish/guestfish-actions.pod:1254
17683 msgid "get-e2label"
17684 msgstr ""
17685
17686 # type: verbatim
17687 #: ../fish/guestfish-actions.pod:1256
17688 #, no-wrap
17689 msgid ""
17690 " get-e2label device\n"
17691 "\n"
17692 msgstr ""
17693
17694 # type: =head2
17695 #: ../fish/guestfish-actions.pod:1268
17696 msgid "get-e2uuid"
17697 msgstr ""
17698
17699 # type: verbatim
17700 #: ../fish/guestfish-actions.pod:1270
17701 #, no-wrap
17702 msgid ""
17703 " get-e2uuid device\n"
17704 "\n"
17705 msgstr ""
17706
17707 # type: =head2
17708 #: ../fish/guestfish-actions.pod:1282
17709 msgid "get-memsize"
17710 msgstr ""
17711
17712 # type: verbatim
17713 #: ../fish/guestfish-actions.pod:1284
17714 #, no-wrap
17715 msgid ""
17716 " get-memsize\n"
17717 "\n"
17718 msgstr ""
17719
17720 # type: textblock
17721 #: ../fish/guestfish-actions.pod:1289
17722 msgid ""
17723 "If L</set-memsize> was not called on this handle, and if "
17724 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
17725 "value for memsize."
17726 msgstr ""
17727
17728 # type: =head2
17729 #: ../fish/guestfish-actions.pod:1296
17730 msgid "get-network"
17731 msgstr ""
17732
17733 # type: verbatim
17734 #: ../fish/guestfish-actions.pod:1298
17735 #, no-wrap
17736 msgid ""
17737 " get-network\n"
17738 "\n"
17739 msgstr ""
17740
17741 # type: =head2
17742 #: ../fish/guestfish-actions.pod:1302
17743 msgid "get-path"
17744 msgstr ""
17745
17746 # type: verbatim
17747 #: ../fish/guestfish-actions.pod:1304
17748 #, no-wrap
17749 msgid ""
17750 " get-path\n"
17751 "\n"
17752 msgstr ""
17753
17754 # type: =head2
17755 #: ../fish/guestfish-actions.pod:1311
17756 msgid "get-pid"
17757 msgstr ""
17758
17759 # type: =head2
17760 #: ../fish/guestfish-actions.pod:1313
17761 msgid "pid"
17762 msgstr ""
17763
17764 # type: verbatim
17765 #: ../fish/guestfish-actions.pod:1315
17766 #, no-wrap
17767 msgid ""
17768 " get-pid\n"
17769 "\n"
17770 msgstr ""
17771
17772 # type: =head2
17773 #: ../fish/guestfish-actions.pod:1322
17774 msgid "get-qemu"
17775 msgstr ""
17776
17777 # type: verbatim
17778 #: ../fish/guestfish-actions.pod:1324
17779 #, no-wrap
17780 msgid ""
17781 " get-qemu\n"
17782 "\n"
17783 msgstr ""
17784
17785 # type: =head2
17786 #: ../fish/guestfish-actions.pod:1331
17787 msgid "get-recovery-proc"
17788 msgstr ""
17789
17790 # type: verbatim
17791 #: ../fish/guestfish-actions.pod:1333
17792 #, no-wrap
17793 msgid ""
17794 " get-recovery-proc\n"
17795 "\n"
17796 msgstr ""
17797
17798 # type: =head2
17799 #: ../fish/guestfish-actions.pod:1337
17800 msgid "get-selinux"
17801 msgstr ""
17802
17803 # type: verbatim
17804 #: ../fish/guestfish-actions.pod:1339
17805 #, no-wrap
17806 msgid ""
17807 " get-selinux\n"
17808 "\n"
17809 msgstr ""
17810
17811 # type: textblock
17812 #: ../fish/guestfish-actions.pod:1341
17813 msgid ""
17814 "This returns the current setting of the selinux flag which is passed to the "
17815 "appliance at boot time.  See L</set-selinux>."
17816 msgstr ""
17817
17818 # type: =head2
17819 #: ../fish/guestfish-actions.pod:1347
17820 msgid "get-state"
17821 msgstr ""
17822
17823 # type: verbatim
17824 #: ../fish/guestfish-actions.pod:1349
17825 #, no-wrap
17826 msgid ""
17827 " get-state\n"
17828 "\n"
17829 msgstr ""
17830
17831 # type: =head2
17832 #: ../fish/guestfish-actions.pod:1356
17833 msgid "get-trace"
17834 msgstr ""
17835
17836 # type: verbatim
17837 #: ../fish/guestfish-actions.pod:1358
17838 #, no-wrap
17839 msgid ""
17840 " get-trace\n"
17841 "\n"
17842 msgstr ""
17843
17844 # type: =head2
17845 #: ../fish/guestfish-actions.pod:1362
17846 msgid "get-umask"
17847 msgstr ""
17848
17849 # type: verbatim
17850 #: ../fish/guestfish-actions.pod:1364
17851 #, no-wrap
17852 msgid ""
17853 " get-umask\n"
17854 "\n"
17855 msgstr ""
17856
17857 # type: textblock
17858 #: ../fish/guestfish-actions.pod:1366
17859 msgid ""
17860 "Return the current umask.  By default the umask is C<022> unless it has been "
17861 "set by calling L</umask>."
17862 msgstr ""
17863
17864 # type: =head2
17865 #: ../fish/guestfish-actions.pod:1369
17866 msgid "get-verbose"
17867 msgstr ""
17868
17869 # type: verbatim
17870 #: ../fish/guestfish-actions.pod:1371
17871 #, no-wrap
17872 msgid ""
17873 " get-verbose\n"
17874 "\n"
17875 msgstr ""
17876
17877 # type: =head2
17878 #: ../fish/guestfish-actions.pod:1375
17879 msgid "getcon"
17880 msgstr ""
17881
17882 # type: verbatim
17883 #: ../fish/guestfish-actions.pod:1377
17884 #, no-wrap
17885 msgid ""
17886 " getcon\n"
17887 "\n"
17888 msgstr ""
17889
17890 # type: textblock
17891 #: ../fish/guestfish-actions.pod:1381
17892 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
17893 msgstr ""
17894
17895 # type: =head2
17896 #: ../fish/guestfish-actions.pod:1384
17897 msgid "getxattrs"
17898 msgstr ""
17899
17900 # type: verbatim
17901 #: ../fish/guestfish-actions.pod:1386
17902 #, no-wrap
17903 msgid ""
17904 " getxattrs path\n"
17905 "\n"
17906 msgstr ""
17907
17908 # type: textblock
17909 #: ../fish/guestfish-actions.pod:1394
17910 msgid "See also: L</lgetxattrs>, L<attr(5)>."
17911 msgstr ""
17912
17913 # type: =head2
17914 #: ../fish/guestfish-actions.pod:1396
17915 msgid "glob-expand"
17916 msgstr ""
17917
17918 # type: verbatim
17919 #: ../fish/guestfish-actions.pod:1398
17920 #, no-wrap
17921 msgid ""
17922 " glob-expand pattern\n"
17923 "\n"
17924 msgstr ""
17925
17926 # type: =head2
17927 #: ../fish/guestfish-actions.pod:1411
17928 msgid "grep"
17929 msgstr ""
17930
17931 # type: verbatim
17932 #: ../fish/guestfish-actions.pod:1413
17933 #, no-wrap
17934 msgid ""
17935 " grep regex path\n"
17936 "\n"
17937 msgstr ""
17938
17939 # type: =head2
17940 #: ../fish/guestfish-actions.pod:1421
17941 msgid "grepi"
17942 msgstr ""
17943
17944 # type: verbatim
17945 #: ../fish/guestfish-actions.pod:1423
17946 #, no-wrap
17947 msgid ""
17948 " grepi regex path\n"
17949 "\n"
17950 msgstr ""
17951
17952 # type: =head2
17953 #: ../fish/guestfish-actions.pod:1431
17954 msgid "grub-install"
17955 msgstr ""
17956
17957 # type: verbatim
17958 #: ../fish/guestfish-actions.pod:1433
17959 #, no-wrap
17960 msgid ""
17961 " grub-install root device\n"
17962 "\n"
17963 msgstr ""
17964
17965 # type: =head2
17966 #: ../fish/guestfish-actions.pod:1449
17967 msgid "head"
17968 msgstr ""
17969
17970 # type: verbatim
17971 #: ../fish/guestfish-actions.pod:1451
17972 #, no-wrap
17973 msgid ""
17974 " head path\n"
17975 "\n"
17976 msgstr ""
17977
17978 # type: =head2
17979 #: ../fish/guestfish-actions.pod:1459
17980 msgid "head-n"
17981 msgstr ""
17982
17983 # type: verbatim
17984 #: ../fish/guestfish-actions.pod:1461
17985 #, no-wrap
17986 msgid ""
17987 " head-n nrlines path\n"
17988 "\n"
17989 msgstr ""
17990
17991 # type: =head2
17992 #: ../fish/guestfish-actions.pod:1474
17993 msgid "hexdump"
17994 msgstr ""
17995
17996 # type: verbatim
17997 #: ../fish/guestfish-actions.pod:1476
17998 #, no-wrap
17999 msgid ""
18000 " hexdump path\n"
18001 "\n"
18002 msgstr ""
18003
18004 # type: =head2
18005 #: ../fish/guestfish-actions.pod:1484
18006 msgid "initrd-cat"
18007 msgstr ""
18008
18009 # type: verbatim
18010 #: ../fish/guestfish-actions.pod:1486
18011 #, no-wrap
18012 msgid ""
18013 " initrd-cat initrdpath filename\n"
18014 "\n"
18015 msgstr ""
18016
18017 # type: textblock
18018 #: ../fish/guestfish-actions.pod:1498
18019 msgid "See also L</initrd-list>."
18020 msgstr ""
18021
18022 # type: =head2
18023 #: ../fish/guestfish-actions.pod:1503
18024 msgid "initrd-list"
18025 msgstr ""
18026
18027 # type: verbatim
18028 #: ../fish/guestfish-actions.pod:1505
18029 #, no-wrap
18030 msgid ""
18031 " initrd-list path\n"
18032 "\n"
18033 msgstr ""
18034
18035 # type: =head2
18036 #: ../fish/guestfish-actions.pod:1517
18037 msgid "inotify-add-watch"
18038 msgstr ""
18039
18040 # type: verbatim
18041 #: ../fish/guestfish-actions.pod:1519
18042 #, no-wrap
18043 msgid ""
18044 " inotify-add-watch path mask\n"
18045 "\n"
18046 msgstr ""
18047
18048 # type: =head2
18049 #: ../fish/guestfish-actions.pod:1531
18050 msgid "inotify-close"
18051 msgstr ""
18052
18053 # type: verbatim
18054 #: ../fish/guestfish-actions.pod:1533
18055 #, no-wrap
18056 msgid ""
18057 " inotify-close\n"
18058 "\n"
18059 msgstr ""
18060
18061 # type: =head2
18062 #: ../fish/guestfish-actions.pod:1539
18063 msgid "inotify-files"
18064 msgstr ""
18065
18066 # type: verbatim
18067 #: ../fish/guestfish-actions.pod:1541
18068 #, no-wrap
18069 msgid ""
18070 " inotify-files\n"
18071 "\n"
18072 msgstr ""
18073
18074 # type: textblock
18075 #: ../fish/guestfish-actions.pod:1543
18076 msgid ""
18077 "This function is a helpful wrapper around L</inotify-read> which just "
18078 "returns a list of pathnames of objects that were touched.  The returned "
18079 "pathnames are sorted and deduplicated."
18080 msgstr ""
18081
18082 # type: =head2
18083 #: ../fish/guestfish-actions.pod:1547
18084 msgid "inotify-init"
18085 msgstr ""
18086
18087 # type: verbatim
18088 #: ../fish/guestfish-actions.pod:1549
18089 #, no-wrap
18090 msgid ""
18091 " inotify-init maxevents\n"
18092 "\n"
18093 msgstr ""
18094
18095 # type: textblock
18096 #: ../fish/guestfish-actions.pod:1555
18097 msgid ""
18098 "C<maxevents> is the maximum number of events which will be queued up between "
18099 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
18100 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
18101 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
18102 "but records the fact that it threw them away by setting a flag "
18103 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
18104 msgstr ""
18105
18106 # type: textblock
18107 #: ../fish/guestfish-actions.pod:1565
18108 msgid ""
18109 "Before any events are generated, you have to add some watches to the "
18110 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
18111 "L</inotify-watch-all>."
18112 msgstr ""
18113
18114 # type: textblock
18115 #: ../fish/guestfish-actions.pod:1571
18116 msgid ""
18117 "Queued up events should be read periodically by calling L</inotify-read> (or "
18118 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
18119 "If you don't read the events out often enough then you risk the internal "
18120 "queue overflowing."
18121 msgstr ""
18122
18123 # type: textblock
18124 #: ../fish/guestfish-actions.pod:1578
18125 msgid ""
18126 "The handle should be closed after use by calling L</inotify-close>.  This "
18127 "also removes any watches automatically."
18128 msgstr ""
18129
18130 # type: =head2
18131 #: ../fish/guestfish-actions.pod:1587
18132 msgid "inotify-read"
18133 msgstr ""
18134
18135 # type: verbatim
18136 #: ../fish/guestfish-actions.pod:1589
18137 #, no-wrap
18138 msgid ""
18139 " inotify-read\n"
18140 "\n"
18141 msgstr ""
18142
18143 # type: =head2
18144 #: ../fish/guestfish-actions.pod:1602
18145 msgid "inotify-rm-watch"
18146 msgstr ""
18147
18148 # type: verbatim
18149 #: ../fish/guestfish-actions.pod:1604
18150 #, no-wrap
18151 msgid ""
18152 " inotify-rm-watch wd\n"
18153 "\n"
18154 msgstr ""
18155
18156 # type: textblock
18157 #: ../fish/guestfish-actions.pod:1606
18158 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
18159 msgstr ""
18160
18161 # type: =head2
18162 #: ../fish/guestfish-actions.pod:1609
18163 msgid "inspect-get-arch"
18164 msgstr ""
18165
18166 # type: verbatim
18167 #: ../fish/guestfish-actions.pod:1611
18168 #, no-wrap
18169 msgid ""
18170 " inspect-get-arch root\n"
18171 "\n"
18172 msgstr ""
18173
18174 # type: textblock
18175 #: ../fish/guestfish-actions.pod:1613 ../fish/guestfish-actions.pod:1629 ../fish/guestfish-actions.pod:1675 ../fish/guestfish-actions.pod:1693 ../fish/guestfish-actions.pod:1714 ../fish/guestfish-actions.pod:1729 ../fish/guestfish-actions.pod:1752 ../fish/guestfish-actions.pod:1769
18176 msgid ""
18177 "This function should only be called with a root device string as returned by "
18178 "L</inspect-os>."
18179 msgstr ""
18180
18181 # type: textblock
18182 #: ../fish/guestfish-actions.pod:1616
18183 msgid ""
18184 "This returns the architecture of the inspected operating system.  The "
18185 "possible return values are listed under L</file-architecture>."
18186 msgstr ""
18187
18188 # type: =head2
18189 #: ../fish/guestfish-actions.pod:1625
18190 msgid "inspect-get-distro"
18191 msgstr ""
18192
18193 # type: verbatim
18194 #: ../fish/guestfish-actions.pod:1627
18195 #, no-wrap
18196 msgid ""
18197 " inspect-get-distro root\n"
18198 "\n"
18199 msgstr ""
18200
18201 # type: =head2
18202 #: ../fish/guestfish-actions.pod:1671
18203 msgid "inspect-get-filesystems"
18204 msgstr ""
18205
18206 # type: verbatim
18207 #: ../fish/guestfish-actions.pod:1673
18208 #, no-wrap
18209 msgid ""
18210 " inspect-get-filesystems root\n"
18211 "\n"
18212 msgstr ""
18213
18214 # type: textblock
18215 #: ../fish/guestfish-actions.pod:1686
18216 msgid ""
18217 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
18218 "L</inspect-get-mountpoints>."
18219 msgstr ""
18220
18221 # type: =head2
18222 #: ../fish/guestfish-actions.pod:1689
18223 msgid "inspect-get-major-version"
18224 msgstr ""
18225
18226 # type: verbatim
18227 #: ../fish/guestfish-actions.pod:1691
18228 #, no-wrap
18229 msgid ""
18230 " inspect-get-major-version root\n"
18231 "\n"
18232 msgstr ""
18233
18234 # type: =head2
18235 #: ../fish/guestfish-actions.pod:1710
18236 msgid "inspect-get-minor-version"
18237 msgstr ""
18238
18239 # type: verbatim
18240 #: ../fish/guestfish-actions.pod:1712
18241 #, no-wrap
18242 msgid ""
18243 " inspect-get-minor-version root\n"
18244 "\n"
18245 msgstr ""
18246
18247 # type: textblock
18248 #: ../fish/guestfish-actions.pod:1722
18249 msgid ""
18250 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
18251 "L</inspect-get-major-version>."
18252 msgstr ""
18253
18254 # type: =head2
18255 #: ../fish/guestfish-actions.pod:1725
18256 msgid "inspect-get-mountpoints"
18257 msgstr ""
18258
18259 # type: verbatim
18260 #: ../fish/guestfish-actions.pod:1727
18261 #, no-wrap
18262 msgid ""
18263 " inspect-get-mountpoints root\n"
18264 "\n"
18265 msgstr ""
18266
18267 # type: textblock
18268 #: ../fish/guestfish-actions.pod:1745
18269 msgid ""
18270 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
18271 "L</inspect-get-filesystems>."
18272 msgstr ""
18273
18274 # type: =head2
18275 #: ../fish/guestfish-actions.pod:1748
18276 msgid "inspect-get-product-name"
18277 msgstr ""
18278
18279 # type: verbatim
18280 #: ../fish/guestfish-actions.pod:1750
18281 #, no-wrap
18282 msgid ""
18283 " inspect-get-product-name root\n"
18284 "\n"
18285 msgstr ""
18286
18287 # type: =head2
18288 #: ../fish/guestfish-actions.pod:1765
18289 msgid "inspect-get-type"
18290 msgstr ""
18291
18292 # type: verbatim
18293 #: ../fish/guestfish-actions.pod:1767
18294 #, no-wrap
18295 msgid ""
18296 " inspect-get-type root\n"
18297 "\n"
18298 msgstr ""
18299
18300 # type: =head2
18301 #: ../fish/guestfish-actions.pod:1796
18302 msgid "inspect-os"
18303 msgstr ""
18304
18305 # type: verbatim
18306 #: ../fish/guestfish-actions.pod:1798
18307 #, no-wrap
18308 msgid ""
18309 " inspect-os\n"
18310 "\n"
18311 msgstr ""
18312
18313 # type: textblock
18314 #: ../fish/guestfish-actions.pod:1813
18315 msgid ""
18316 "You can pass the root string(s) returned to other L</inspect-get-*> "
18317 "functions in order to query further information about each operating system, "
18318 "such as the name and version."
18319 msgstr ""
18320
18321 # type: textblock
18322 #: ../fish/guestfish-actions.pod:1818
18323 msgid ""
18324 "This function uses other libguestfs features such as L</mount-ro> and "
18325 "L</umount-all> in order to mount and unmount filesystems and look at the "
18326 "contents.  This should be called with no disks currently mounted.  The "
18327 "function may also use Augeas, so any existing Augeas handle will be closed."
18328 msgstr ""
18329
18330 # type: textblock
18331 #: ../fish/guestfish-actions.pod:1830 ../fish/guestfish-actions.pod:1986 ../fish/guestfish-actions.pod:2032
18332 msgid "See also L</list-filesystems>."
18333 msgstr ""
18334
18335 # type: =head2
18336 #: ../fish/guestfish-actions.pod:1832
18337 msgid "is-blockdev"
18338 msgstr ""
18339
18340 # type: verbatim
18341 #: ../fish/guestfish-actions.pod:1834
18342 #, no-wrap
18343 msgid ""
18344 " is-blockdev path\n"
18345 "\n"
18346 msgstr ""
18347
18348 # type: textblock
18349 #: ../fish/guestfish-actions.pod:1839 ../fish/guestfish-actions.pod:1857 ../fish/guestfish-actions.pod:1876 ../fish/guestfish-actions.pod:1885 ../fish/guestfish-actions.pod:1895 ../fish/guestfish-actions.pod:1929 ../fish/guestfish-actions.pod:1938
18350 msgid "See also L</stat>."
18351 msgstr ""
18352
18353 # type: =head2
18354 #: ../fish/guestfish-actions.pod:1841
18355 msgid "is-busy"
18356 msgstr ""
18357
18358 # type: verbatim
18359 #: ../fish/guestfish-actions.pod:1843
18360 #, no-wrap
18361 msgid ""
18362 " is-busy\n"
18363 "\n"
18364 msgstr ""
18365
18366 # type: =head2
18367 #: ../fish/guestfish-actions.pod:1850
18368 msgid "is-chardev"
18369 msgstr ""
18370
18371 # type: verbatim
18372 #: ../fish/guestfish-actions.pod:1852
18373 #, no-wrap
18374 msgid ""
18375 " is-chardev path\n"
18376 "\n"
18377 msgstr ""
18378
18379 # type: =head2
18380 #: ../fish/guestfish-actions.pod:1859
18381 msgid "is-config"
18382 msgstr ""
18383
18384 # type: verbatim
18385 #: ../fish/guestfish-actions.pod:1861
18386 #, no-wrap
18387 msgid ""
18388 " is-config\n"
18389 "\n"
18390 msgstr ""
18391
18392 # type: =head2
18393 #: ../fish/guestfish-actions.pod:1868
18394 msgid "is-dir"
18395 msgstr ""
18396
18397 # type: verbatim
18398 #: ../fish/guestfish-actions.pod:1870
18399 #, no-wrap
18400 msgid ""
18401 " is-dir path\n"
18402 "\n"
18403 msgstr ""
18404
18405 # type: =head2
18406 #: ../fish/guestfish-actions.pod:1878
18407 msgid "is-fifo"
18408 msgstr ""
18409
18410 # type: verbatim
18411 #: ../fish/guestfish-actions.pod:1880
18412 #, no-wrap
18413 msgid ""
18414 " is-fifo path\n"
18415 "\n"
18416 msgstr ""
18417
18418 # type: =head2
18419 #: ../fish/guestfish-actions.pod:1887
18420 msgid "is-file"
18421 msgstr ""
18422
18423 # type: verbatim
18424 #: ../fish/guestfish-actions.pod:1889
18425 #, no-wrap
18426 msgid ""
18427 " is-file path\n"
18428 "\n"
18429 msgstr ""
18430
18431 # type: =head2
18432 #: ../fish/guestfish-actions.pod:1897
18433 msgid "is-launching"
18434 msgstr ""
18435
18436 # type: verbatim
18437 #: ../fish/guestfish-actions.pod:1899
18438 #, no-wrap
18439 msgid ""
18440 " is-launching\n"
18441 "\n"
18442 msgstr ""
18443
18444 # type: =head2
18445 #: ../fish/guestfish-actions.pod:1906
18446 msgid "is-lv"
18447 msgstr ""
18448
18449 # type: verbatim
18450 #: ../fish/guestfish-actions.pod:1908
18451 #, no-wrap
18452 msgid ""
18453 " is-lv device\n"
18454 "\n"
18455 msgstr ""
18456
18457 # type: =head2
18458 #: ../fish/guestfish-actions.pod:1913
18459 msgid "is-ready"
18460 msgstr ""
18461
18462 # type: verbatim
18463 #: ../fish/guestfish-actions.pod:1915
18464 #, no-wrap
18465 msgid ""
18466 " is-ready\n"
18467 "\n"
18468 msgstr ""
18469
18470 # type: =head2
18471 #: ../fish/guestfish-actions.pod:1922
18472 msgid "is-socket"
18473 msgstr ""
18474
18475 # type: verbatim
18476 #: ../fish/guestfish-actions.pod:1924
18477 #, no-wrap
18478 msgid ""
18479 " is-socket path\n"
18480 "\n"
18481 msgstr ""
18482
18483 # type: =head2
18484 #: ../fish/guestfish-actions.pod:1931
18485 msgid "is-symlink"
18486 msgstr ""
18487
18488 # type: verbatim
18489 #: ../fish/guestfish-actions.pod:1933
18490 #, no-wrap
18491 msgid ""
18492 " is-symlink path\n"
18493 "\n"
18494 msgstr ""
18495
18496 # type: =head2
18497 #: ../fish/guestfish-actions.pod:1940
18498 msgid "kill-subprocess"
18499 msgstr ""
18500
18501 # type: verbatim
18502 #: ../fish/guestfish-actions.pod:1942
18503 #, no-wrap
18504 msgid ""
18505 " kill-subprocess\n"
18506 "\n"
18507 msgstr ""
18508
18509 # type: =head2
18510 #: ../fish/guestfish-actions.pod:1946
18511 msgid "launch"
18512 msgstr ""
18513
18514 # type: =head2
18515 #: ../fish/guestfish-actions.pod:1948
18516 msgid "run"
18517 msgstr ""
18518
18519 # type: verbatim
18520 #: ../fish/guestfish-actions.pod:1950
18521 #, no-wrap
18522 msgid ""
18523 " launch\n"
18524 "\n"
18525 msgstr ""
18526
18527 # type: =head2
18528 #: ../fish/guestfish-actions.pod:1958
18529 msgid "lchown"
18530 msgstr ""
18531
18532 # type: verbatim
18533 #: ../fish/guestfish-actions.pod:1960
18534 #, no-wrap
18535 msgid ""
18536 " lchown owner group path\n"
18537 "\n"
18538 msgstr ""
18539
18540 # type: textblock
18541 #: ../fish/guestfish-actions.pod:1962
18542 msgid ""
18543 "Change the file owner to C<owner> and group to C<group>.  This is like "
18544 "L</chown> but if C<path> is a symlink then the link itself is changed, not "
18545 "the target."
18546 msgstr ""
18547
18548 # type: =head2
18549 #: ../fish/guestfish-actions.pod:1970
18550 msgid "lgetxattrs"
18551 msgstr ""
18552
18553 # type: verbatim
18554 #: ../fish/guestfish-actions.pod:1972
18555 #, no-wrap
18556 msgid ""
18557 " lgetxattrs path\n"
18558 "\n"
18559 msgstr ""
18560
18561 # type: textblock
18562 #: ../fish/guestfish-actions.pod:1974
18563 msgid ""
18564 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
18565 "it returns the extended attributes of the link itself."
18566 msgstr ""
18567
18568 # type: =head2
18569 #: ../fish/guestfish-actions.pod:1978
18570 msgid "list-devices"
18571 msgstr ""
18572
18573 # type: verbatim
18574 #: ../fish/guestfish-actions.pod:1980
18575 #, no-wrap
18576 msgid ""
18577 " list-devices\n"
18578 "\n"
18579 msgstr ""
18580
18581 # type: =head2
18582 #: ../fish/guestfish-actions.pod:1988
18583 msgid "list-filesystems"
18584 msgstr ""
18585
18586 # type: verbatim
18587 #: ../fish/guestfish-actions.pod:1990
18588 #, no-wrap
18589 msgid ""
18590 " list-filesystems\n"
18591 "\n"
18592 msgstr ""
18593
18594 # type: textblock
18595 #: ../fish/guestfish-actions.pod:2009
18596 msgid ""
18597 "This command runs other libguestfs commands, which might include L</mount> "
18598 "and L</umount>, and therefore you should use this soon after launch and only "
18599 "when nothing is mounted."
18600 msgstr ""
18601
18602 # type: textblock
18603 #: ../fish/guestfish-actions.pod:2013
18604 msgid ""
18605 "Not all of the filesystems returned will be mountable.  In particular, swap "
18606 "partitions are returned in the list.  Also this command does not check that "
18607 "each filesystem found is valid and mountable, and some filesystems might be "
18608 "mountable but require special options.  Filesystems may not all belong to a "
18609 "single logical operating system (use L</inspect-os> to look for OSes)."
18610 msgstr ""
18611
18612 # type: =head2
18613 #: ../fish/guestfish-actions.pod:2021
18614 msgid "list-partitions"
18615 msgstr ""
18616
18617 # type: verbatim
18618 #: ../fish/guestfish-actions.pod:2023
18619 #, no-wrap
18620 msgid ""
18621 " list-partitions\n"
18622 "\n"
18623 msgstr ""
18624
18625 # type: textblock
18626 #: ../fish/guestfish-actions.pod:2029
18627 msgid ""
18628 "This does not return logical volumes.  For that you will need to call "
18629 "L</lvs>."
18630 msgstr ""
18631
18632 # type: =head2
18633 #: ../fish/guestfish-actions.pod:2034
18634 msgid "ll"
18635 msgstr ""
18636
18637 # type: verbatim
18638 #: ../fish/guestfish-actions.pod:2036
18639 #, no-wrap
18640 msgid ""
18641 " ll directory\n"
18642 "\n"
18643 msgstr ""
18644
18645 # type: =head2
18646 #: ../fish/guestfish-actions.pod:2044
18647 msgid "ln"
18648 msgstr ""
18649
18650 # type: verbatim
18651 #: ../fish/guestfish-actions.pod:2046
18652 #, no-wrap
18653 msgid ""
18654 " ln target linkname\n"
18655 "\n"
18656 msgstr ""
18657
18658 # type: =head2
18659 #: ../fish/guestfish-actions.pod:2050
18660 msgid "ln-f"
18661 msgstr ""
18662
18663 # type: verbatim
18664 #: ../fish/guestfish-actions.pod:2052
18665 #, no-wrap
18666 msgid ""
18667 " ln-f target linkname\n"
18668 "\n"
18669 msgstr ""
18670
18671 # type: =head2
18672 #: ../fish/guestfish-actions.pod:2057
18673 msgid "ln-s"
18674 msgstr ""
18675
18676 # type: verbatim
18677 #: ../fish/guestfish-actions.pod:2059
18678 #, no-wrap
18679 msgid ""
18680 " ln-s target linkname\n"
18681 "\n"
18682 msgstr ""
18683
18684 # type: =head2
18685 #: ../fish/guestfish-actions.pod:2063
18686 msgid "ln-sf"
18687 msgstr ""
18688
18689 # type: verbatim
18690 #: ../fish/guestfish-actions.pod:2065
18691 #, no-wrap
18692 msgid ""
18693 " ln-sf target linkname\n"
18694 "\n"
18695 msgstr ""
18696
18697 # type: =head2
18698 #: ../fish/guestfish-actions.pod:2070
18699 msgid "lremovexattr"
18700 msgstr ""
18701
18702 # type: verbatim
18703 #: ../fish/guestfish-actions.pod:2072
18704 #, no-wrap
18705 msgid ""
18706 " lremovexattr xattr path\n"
18707 "\n"
18708 msgstr ""
18709
18710 # type: textblock
18711 #: ../fish/guestfish-actions.pod:2074
18712 msgid ""
18713 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
18714 "it removes an extended attribute of the link itself."
18715 msgstr ""
18716
18717 # type: =head2
18718 #: ../fish/guestfish-actions.pod:2078
18719 msgid "ls"
18720 msgstr ""
18721
18722 # type: verbatim
18723 #: ../fish/guestfish-actions.pod:2080
18724 #, no-wrap
18725 msgid ""
18726 " ls directory\n"
18727 "\n"
18728 msgstr ""
18729
18730 # type: textblock
18731 #: ../fish/guestfish-actions.pod:2086
18732 msgid ""
18733 "This command is mostly useful for interactive sessions.  Programs should "
18734 "probably use L</readdir> instead."
18735 msgstr ""
18736
18737 # type: =head2
18738 #: ../fish/guestfish-actions.pod:2089
18739 msgid "lsetxattr"
18740 msgstr ""
18741
18742 # type: verbatim
18743 #: ../fish/guestfish-actions.pod:2091
18744 #, no-wrap
18745 msgid ""
18746 " lsetxattr xattr val vallen path\n"
18747 "\n"
18748 msgstr ""
18749
18750 # type: textblock
18751 #: ../fish/guestfish-actions.pod:2093
18752 msgid ""
18753 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
18754 "sets an extended attribute of the link itself."
18755 msgstr ""
18756
18757 # type: =head2
18758 #: ../fish/guestfish-actions.pod:2097
18759 msgid "lstat"
18760 msgstr ""
18761
18762 # type: verbatim
18763 #: ../fish/guestfish-actions.pod:2099
18764 #, no-wrap
18765 msgid ""
18766 " lstat path\n"
18767 "\n"
18768 msgstr ""
18769
18770 # type: textblock
18771 #: ../fish/guestfish-actions.pod:2103
18772 msgid ""
18773 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
18774 "the link is stat-ed, not the file it refers to."
18775 msgstr ""
18776
18777 # type: =head2
18778 #: ../fish/guestfish-actions.pod:2109
18779 msgid "lstatlist"
18780 msgstr ""
18781
18782 # type: verbatim
18783 #: ../fish/guestfish-actions.pod:2111
18784 #, no-wrap
18785 msgid ""
18786 " lstatlist path 'names ...'\n"
18787 "\n"
18788 msgstr ""
18789
18790 # type: textblock
18791 #: ../fish/guestfish-actions.pod:2113
18792 msgid ""
18793 "This call allows you to perform the L</lstat> operation on multiple files, "
18794 "where all files are in the directory C<path>.  C<names> is the list of files "
18795 "from this directory."
18796 msgstr ""
18797
18798 # type: textblock
18799 #: ../fish/guestfish-actions.pod:2122
18800 msgid ""
18801 "This call is intended for programs that want to efficiently list a directory "
18802 "contents without making many round-trips.  See also L</lxattrlist> for a "
18803 "similarly efficient call for getting extended attributes.  Very long "
18804 "directory listings might cause the protocol message size to be exceeded, "
18805 "causing this call to fail.  The caller must split up such requests into "
18806 "smaller groups of names."
18807 msgstr ""
18808
18809 # type: =head2
18810 #: ../fish/guestfish-actions.pod:2130
18811 msgid "luks-add-key"
18812 msgstr ""
18813
18814 # type: verbatim
18815 #: ../fish/guestfish-actions.pod:2132
18816 #, no-wrap
18817 msgid ""
18818 " luks-add-key device keyslot\n"
18819 "\n"
18820 msgstr ""
18821
18822 # type: textblock
18823 #: ../fish/guestfish-actions.pod:2139
18824 msgid ""
18825 "Note that if C<keyslot> already contains a key, then this command will "
18826 "fail.  You have to use L</luks-kill-slot> first to remove that key."
18827 msgstr ""
18828
18829 # type: textblock
18830 #: ../fish/guestfish-actions.pod:2143 ../fish/guestfish-actions.pod:2165 ../fish/guestfish-actions.pod:2178 ../fish/guestfish-actions.pod:2192 ../fish/guestfish-actions.pod:2215 ../fish/guestfish-actions.pod:2225
18831 msgid ""
18832 "This command has one or more key or passphrase parameters.  Guestfish will "
18833 "prompt for these separately."
18834 msgstr ""
18835
18836 # type: =head2
18837 #: ../fish/guestfish-actions.pod:2146
18838 msgid "luks-close"
18839 msgstr ""
18840
18841 # type: verbatim
18842 #: ../fish/guestfish-actions.pod:2148
18843 #, no-wrap
18844 msgid ""
18845 " luks-close device\n"
18846 "\n"
18847 msgstr ""
18848
18849 # type: textblock
18850 #: ../fish/guestfish-actions.pod:2150
18851 msgid ""
18852 "This closes a LUKS device that was created earlier by L</luks-open> or "
18853 "L</luks-open-ro>.  The C<device> parameter must be the name of the LUKS "
18854 "mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
18855 "underlying block device."
18856 msgstr ""
18857
18858 # type: =head2
18859 #: ../fish/guestfish-actions.pod:2156
18860 msgid "luks-format"
18861 msgstr ""
18862
18863 # type: verbatim
18864 #: ../fish/guestfish-actions.pod:2158
18865 #, no-wrap
18866 msgid ""
18867 " luks-format device keyslot\n"
18868 "\n"
18869 msgstr ""
18870
18871 # type: =head2
18872 #: ../fish/guestfish-actions.pod:2171
18873 msgid "luks-format-cipher"
18874 msgstr ""
18875
18876 # type: verbatim
18877 #: ../fish/guestfish-actions.pod:2173
18878 #, no-wrap
18879 msgid ""
18880 " luks-format-cipher device keyslot cipher\n"
18881 "\n"
18882 msgstr ""
18883
18884 # type: textblock
18885 #: ../fish/guestfish-actions.pod:2175
18886 msgid ""
18887 "This command is the same as L</luks-format> but it also allows you to set "
18888 "the C<cipher> used."
18889 msgstr ""
18890
18891 # type: =head2
18892 #: ../fish/guestfish-actions.pod:2184
18893 msgid "luks-kill-slot"
18894 msgstr ""
18895
18896 # type: verbatim
18897 #: ../fish/guestfish-actions.pod:2186
18898 #, no-wrap
18899 msgid ""
18900 " luks-kill-slot device keyslot\n"
18901 "\n"
18902 msgstr ""
18903
18904 # type: =head2
18905 #: ../fish/guestfish-actions.pod:2195
18906 msgid "luks-open"
18907 msgstr ""
18908
18909 # type: verbatim
18910 #: ../fish/guestfish-actions.pod:2197
18911 #, no-wrap
18912 msgid ""
18913 " luks-open device mapname\n"
18914 "\n"
18915 msgstr ""
18916
18917 # type: textblock
18918 #: ../fish/guestfish-actions.pod:2211
18919 msgid ""
18920 "If this block device contains LVM volume groups, then calling L</vgscan> "
18921 "followed by L</vg-activate-all> will make them visible."
18922 msgstr ""
18923
18924 # type: =head2
18925 #: ../fish/guestfish-actions.pod:2218
18926 msgid "luks-open-ro"
18927 msgstr ""
18928
18929 # type: verbatim
18930 #: ../fish/guestfish-actions.pod:2220
18931 #, no-wrap
18932 msgid ""
18933 " luks-open-ro device mapname\n"
18934 "\n"
18935 msgstr ""
18936
18937 # type: textblock
18938 #: ../fish/guestfish-actions.pod:2222
18939 msgid ""
18940 "This is the same as L</luks-open> except that a read-only mapping is "
18941 "created."
18942 msgstr ""
18943
18944 # type: =head2
18945 #: ../fish/guestfish-actions.pod:2228
18946 msgid "lvcreate"
18947 msgstr ""
18948
18949 # type: verbatim
18950 #: ../fish/guestfish-actions.pod:2230
18951 #, no-wrap
18952 msgid ""
18953 " lvcreate logvol volgroup mbytes\n"
18954 "\n"
18955 msgstr ""
18956
18957 # type: =head2
18958 #: ../fish/guestfish-actions.pod:2235
18959 msgid "lvm-clear-filter"
18960 msgstr ""
18961
18962 # type: verbatim
18963 #: ../fish/guestfish-actions.pod:2237
18964 #, no-wrap
18965 msgid ""
18966 " lvm-clear-filter\n"
18967 "\n"
18968 msgstr ""
18969
18970 # type: textblock
18971 #: ../fish/guestfish-actions.pod:2239
18972 msgid ""
18973 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
18974 "block device."
18975 msgstr ""
18976
18977 # type: =head2
18978 #: ../fish/guestfish-actions.pod:2245
18979 msgid "lvm-remove-all"
18980 msgstr ""
18981
18982 # type: verbatim
18983 #: ../fish/guestfish-actions.pod:2247
18984 #, no-wrap
18985 msgid ""
18986 " lvm-remove-all\n"
18987 "\n"
18988 msgstr ""
18989
18990 # type: =head2
18991 #: ../fish/guestfish-actions.pod:2255
18992 msgid "lvm-set-filter"
18993 msgstr ""
18994
18995 # type: verbatim
18996 #: ../fish/guestfish-actions.pod:2257
18997 #, no-wrap
18998 msgid ""
18999 " lvm-set-filter 'devices ...'\n"
19000 "\n"
19001 msgstr ""
19002
19003 # type: =head2
19004 #: ../fish/guestfish-actions.pod:2282
19005 msgid "lvremove"
19006 msgstr ""
19007
19008 # type: verbatim
19009 #: ../fish/guestfish-actions.pod:2284
19010 #, no-wrap
19011 msgid ""
19012 " lvremove device\n"
19013 "\n"
19014 msgstr ""
19015
19016 # type: =head2
19017 #: ../fish/guestfish-actions.pod:2292
19018 msgid "lvrename"
19019 msgstr ""
19020
19021 # type: verbatim
19022 #: ../fish/guestfish-actions.pod:2294
19023 #, no-wrap
19024 msgid ""
19025 " lvrename logvol newlogvol\n"
19026 "\n"
19027 msgstr ""
19028
19029 # type: =head2
19030 #: ../fish/guestfish-actions.pod:2298
19031 msgid "lvresize"
19032 msgstr ""
19033
19034 # type: verbatim
19035 #: ../fish/guestfish-actions.pod:2300
19036 #, no-wrap
19037 msgid ""
19038 " lvresize device mbytes\n"
19039 "\n"
19040 msgstr ""
19041
19042 # type: =head2
19043 #: ../fish/guestfish-actions.pod:2306
19044 msgid "lvresize-free"
19045 msgstr ""
19046
19047 # type: verbatim
19048 #: ../fish/guestfish-actions.pod:2308
19049 #, no-wrap
19050 msgid ""
19051 " lvresize-free lv percent\n"
19052 "\n"
19053 msgstr ""
19054
19055 # type: =head2
19056 #: ../fish/guestfish-actions.pod:2316
19057 msgid "lvs"
19058 msgstr ""
19059
19060 # type: verbatim
19061 #: ../fish/guestfish-actions.pod:2318
19062 #, no-wrap
19063 msgid ""
19064 " lvs\n"
19065 "\n"
19066 msgstr ""
19067
19068 # type: textblock
19069 #: ../fish/guestfish-actions.pod:2326
19070 msgid "See also L</lvs-full>, L</list-filesystems>."
19071 msgstr ""
19072
19073 # type: =head2
19074 #: ../fish/guestfish-actions.pod:2328
19075 msgid "lvs-full"
19076 msgstr ""
19077
19078 # type: verbatim
19079 #: ../fish/guestfish-actions.pod:2330
19080 #, no-wrap
19081 msgid ""
19082 " lvs-full\n"
19083 "\n"
19084 msgstr ""
19085
19086 # type: =head2
19087 #: ../fish/guestfish-actions.pod:2335
19088 msgid "lvuuid"
19089 msgstr ""
19090
19091 # type: verbatim
19092 #: ../fish/guestfish-actions.pod:2337
19093 #, no-wrap
19094 msgid ""
19095 " lvuuid device\n"
19096 "\n"
19097 msgstr ""
19098
19099 # type: =head2
19100 #: ../fish/guestfish-actions.pod:2341
19101 msgid "lxattrlist"
19102 msgstr ""
19103
19104 # type: verbatim
19105 #: ../fish/guestfish-actions.pod:2343
19106 #, no-wrap
19107 msgid ""
19108 " lxattrlist path 'names ...'\n"
19109 "\n"
19110 msgstr ""
19111
19112 # type: textblock
19113 #: ../fish/guestfish-actions.pod:2359
19114 msgid ""
19115 "This call is intended for programs that want to efficiently list a directory "
19116 "contents without making many round-trips.  See also L</lstatlist> for a "
19117 "similarly efficient call for getting standard stats.  Very long directory "
19118 "listings might cause the protocol message size to be exceeded, causing this "
19119 "call to fail.  The caller must split up such requests into smaller groups of "
19120 "names."
19121 msgstr ""
19122
19123 # type: =head2
19124 #: ../fish/guestfish-actions.pod:2367
19125 msgid "mkdir"
19126 msgstr ""
19127
19128 # type: verbatim
19129 #: ../fish/guestfish-actions.pod:2369
19130 #, no-wrap
19131 msgid ""
19132 " mkdir path\n"
19133 "\n"
19134 msgstr ""
19135
19136 # type: =head2
19137 #: ../fish/guestfish-actions.pod:2373
19138 msgid "mkdir-mode"
19139 msgstr ""
19140
19141 # type: verbatim
19142 #: ../fish/guestfish-actions.pod:2375
19143 #, no-wrap
19144 msgid ""
19145 " mkdir-mode path mode\n"
19146 "\n"
19147 msgstr ""
19148
19149 # type: textblock
19150 #: ../fish/guestfish-actions.pod:2384
19151 msgid "See also L</mkdir>, L</umask>"
19152 msgstr ""
19153
19154 # type: =head2
19155 #: ../fish/guestfish-actions.pod:2386
19156 msgid "mkdir-p"
19157 msgstr ""
19158
19159 # type: verbatim
19160 #: ../fish/guestfish-actions.pod:2388
19161 #, no-wrap
19162 msgid ""
19163 " mkdir-p path\n"
19164 "\n"
19165 msgstr ""
19166
19167 # type: =head2
19168 #: ../fish/guestfish-actions.pod:2393
19169 msgid "mkdtemp"
19170 msgstr ""
19171
19172 # type: verbatim
19173 #: ../fish/guestfish-actions.pod:2395
19174 #, no-wrap
19175 msgid ""
19176 " mkdtemp template\n"
19177 "\n"
19178 msgstr ""
19179
19180 # type: =head2
19181 #: ../fish/guestfish-actions.pod:2416
19182 msgid "mke2fs-J"
19183 msgstr ""
19184
19185 # type: verbatim
19186 #: ../fish/guestfish-actions.pod:2418
19187 #, no-wrap
19188 msgid ""
19189 " mke2fs-J fstype blocksize device journal\n"
19190 "\n"
19191 msgstr ""
19192
19193 # type: textblock
19194 #: ../fish/guestfish-actions.pod:2426
19195 msgid "See also L</mke2journal>."
19196 msgstr ""
19197
19198 # type: =head2
19199 #: ../fish/guestfish-actions.pod:2428
19200 msgid "mke2fs-JL"
19201 msgstr ""
19202
19203 # type: verbatim
19204 #: ../fish/guestfish-actions.pod:2430
19205 #, no-wrap
19206 msgid ""
19207 " mke2fs-JL fstype blocksize device label\n"
19208 "\n"
19209 msgstr ""
19210
19211 # type: textblock
19212 #: ../fish/guestfish-actions.pod:2435
19213 msgid "See also L</mke2journal-L>."
19214 msgstr ""
19215
19216 # type: =head2
19217 #: ../fish/guestfish-actions.pod:2437
19218 msgid "mke2fs-JU"
19219 msgstr ""
19220
19221 # type: verbatim
19222 #: ../fish/guestfish-actions.pod:2439
19223 #, no-wrap
19224 msgid ""
19225 " mke2fs-JU fstype blocksize device uuid\n"
19226 "\n"
19227 msgstr ""
19228
19229 # type: textblock
19230 #: ../fish/guestfish-actions.pod:2444
19231 msgid "See also L</mke2journal-U>."
19232 msgstr ""
19233
19234 # type: =head2
19235 #: ../fish/guestfish-actions.pod:2446
19236 msgid "mke2journal"
19237 msgstr ""
19238
19239 # type: verbatim
19240 #: ../fish/guestfish-actions.pod:2448
19241 #, no-wrap
19242 msgid ""
19243 " mke2journal blocksize device\n"
19244 "\n"
19245 msgstr ""
19246
19247 # type: =head2
19248 #: ../fish/guestfish-actions.pod:2455
19249 msgid "mke2journal-L"
19250 msgstr ""
19251
19252 # type: verbatim
19253 #: ../fish/guestfish-actions.pod:2457
19254 #, no-wrap
19255 msgid ""
19256 " mke2journal-L blocksize label device\n"
19257 "\n"
19258 msgstr ""
19259
19260 # type: =head2
19261 #: ../fish/guestfish-actions.pod:2461
19262 msgid "mke2journal-U"
19263 msgstr ""
19264
19265 # type: verbatim
19266 #: ../fish/guestfish-actions.pod:2463
19267 #, no-wrap
19268 msgid ""
19269 " mke2journal-U blocksize uuid device\n"
19270 "\n"
19271 msgstr ""
19272
19273 # type: =head2
19274 #: ../fish/guestfish-actions.pod:2467
19275 msgid "mkfifo"
19276 msgstr ""
19277
19278 # type: verbatim
19279 #: ../fish/guestfish-actions.pod:2469
19280 #, no-wrap
19281 msgid ""
19282 " mkfifo mode path\n"
19283 "\n"
19284 msgstr ""
19285
19286 # type: textblock
19287 #: ../fish/guestfish-actions.pod:2471
19288 msgid ""
19289 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
19290 "is just a convenient wrapper around L</mknod>."
19291 msgstr ""
19292
19293 # type: =head2
19294 #: ../fish/guestfish-actions.pod:2477
19295 msgid "mkfs"
19296 msgstr ""
19297
19298 # type: verbatim
19299 #: ../fish/guestfish-actions.pod:2479
19300 #, no-wrap
19301 msgid ""
19302 " mkfs fstype device\n"
19303 "\n"
19304 msgstr ""
19305
19306 # type: =head2
19307 #: ../fish/guestfish-actions.pod:2485
19308 msgid "mkfs-b"
19309 msgstr ""
19310
19311 # type: verbatim
19312 #: ../fish/guestfish-actions.pod:2487
19313 #, no-wrap
19314 msgid ""
19315 " mkfs-b fstype blocksize device\n"
19316 "\n"
19317 msgstr ""
19318
19319 # type: textblock
19320 #: ../fish/guestfish-actions.pod:2489
19321 msgid ""
19322 "This call is similar to L</mkfs>, but it allows you to control the block "
19323 "size of the resulting filesystem.  Supported block sizes depend on the "
19324 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
19325 msgstr ""
19326
19327 # type: =head2
19328 #: ../fish/guestfish-actions.pod:2497
19329 msgid "mkmountpoint"
19330 msgstr ""
19331
19332 # type: verbatim
19333 #: ../fish/guestfish-actions.pod:2499
19334 #, no-wrap
19335 msgid ""
19336 " mkmountpoint exemptpath\n"
19337 "\n"
19338 msgstr ""
19339
19340 # type: textblock
19341 #: ../fish/guestfish-actions.pod:2501
19342 msgid ""
19343 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
19344 "to create extra mountpoints before mounting the first filesystem."
19345 msgstr ""
19346
19347 # type: =head2
19348 #: ../fish/guestfish-actions.pod:2525
19349 msgid "mknod"
19350 msgstr ""
19351
19352 # type: verbatim
19353 #: ../fish/guestfish-actions.pod:2527
19354 #, no-wrap
19355 msgid ""
19356 " mknod mode devmajor devminor path\n"
19357 "\n"
19358 msgstr ""
19359
19360 # type: textblock
19361 #: ../fish/guestfish-actions.pod:2537
19362 msgid ""
19363 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
19364 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
19365 "regular file).  These constants are available in the standard Linux header "
19366 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
19367 "wrappers around this command which bitwise OR in the appropriate constant "
19368 "for you."
19369 msgstr ""
19370
19371 # type: =head2
19372 #: ../fish/guestfish-actions.pod:2547
19373 msgid "mknod-b"
19374 msgstr ""
19375
19376 # type: verbatim
19377 #: ../fish/guestfish-actions.pod:2549
19378 #, no-wrap
19379 msgid ""
19380 " mknod-b mode devmajor devminor path\n"
19381 "\n"
19382 msgstr ""
19383
19384 # type: textblock
19385 #: ../fish/guestfish-actions.pod:2551
19386 msgid ""
19387 "This call creates a block device node called C<path> with mode C<mode> and "
19388 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
19389 "wrapper around L</mknod>."
19390 msgstr ""
19391
19392 # type: =head2
19393 #: ../fish/guestfish-actions.pod:2557
19394 msgid "mknod-c"
19395 msgstr ""
19396
19397 # type: verbatim
19398 #: ../fish/guestfish-actions.pod:2559
19399 #, no-wrap
19400 msgid ""
19401 " mknod-c mode devmajor devminor path\n"
19402 "\n"
19403 msgstr ""
19404
19405 # type: textblock
19406 #: ../fish/guestfish-actions.pod:2561
19407 msgid ""
19408 "This call creates a char device node called C<path> with mode C<mode> and "
19409 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
19410 "wrapper around L</mknod>."
19411 msgstr ""
19412
19413 # type: =head2
19414 #: ../fish/guestfish-actions.pod:2567
19415 msgid "mkswap"
19416 msgstr ""
19417
19418 # type: verbatim
19419 #: ../fish/guestfish-actions.pod:2569
19420 #, no-wrap
19421 msgid ""
19422 " mkswap device\n"
19423 "\n"
19424 msgstr ""
19425
19426 # type: =head2
19427 #: ../fish/guestfish-actions.pod:2573
19428 msgid "mkswap-L"
19429 msgstr ""
19430
19431 # type: verbatim
19432 #: ../fish/guestfish-actions.pod:2575
19433 #, no-wrap
19434 msgid ""
19435 " mkswap-L label device\n"
19436 "\n"
19437 msgstr ""
19438
19439 # type: =head2
19440 #: ../fish/guestfish-actions.pod:2583
19441 msgid "mkswap-U"
19442 msgstr ""
19443
19444 # type: verbatim
19445 #: ../fish/guestfish-actions.pod:2585
19446 #, no-wrap
19447 msgid ""
19448 " mkswap-U uuid device\n"
19449 "\n"
19450 msgstr ""
19451
19452 # type: =head2
19453 #: ../fish/guestfish-actions.pod:2589
19454 msgid "mkswap-file"
19455 msgstr ""
19456
19457 # type: verbatim
19458 #: ../fish/guestfish-actions.pod:2591
19459 #, no-wrap
19460 msgid ""
19461 " mkswap-file path\n"
19462 "\n"
19463 msgstr ""
19464
19465 # type: textblock
19466 #: ../fish/guestfish-actions.pod:2595
19467 msgid ""
19468 "This command just writes a swap file signature to an existing file.  To "
19469 "create the file itself, use something like L</fallocate>."
19470 msgstr ""
19471
19472 # type: =head2
19473 #: ../fish/guestfish-actions.pod:2598
19474 msgid "modprobe"
19475 msgstr ""
19476
19477 # type: verbatim
19478 #: ../fish/guestfish-actions.pod:2600
19479 #, no-wrap
19480 msgid ""
19481 " modprobe modulename\n"
19482 "\n"
19483 msgstr ""
19484
19485 # type: =head2
19486 #: ../fish/guestfish-actions.pod:2607
19487 msgid "mount"
19488 msgstr ""
19489
19490 # type: verbatim
19491 #: ../fish/guestfish-actions.pod:2609
19492 #, no-wrap
19493 msgid ""
19494 " mount device mountpoint\n"
19495 "\n"
19496 msgstr ""
19497
19498 # type: textblock
19499 #: ../fish/guestfish-actions.pod:2625
19500 msgid ""
19501 "B<Important note:> When you use this call, the filesystem options C<sync> "
19502 "and C<noatime> are set implicitly.  This was originally done because we "
19503 "thought it would improve reliability, but it turns out that I<-o sync> has a "
19504 "very large negative performance impact and negligible effect on "
19505 "reliability.  Therefore we recommend that you avoid using L</mount> in any "
19506 "code that needs performance, and instead use L</mount-options> (use an empty "
19507 "string for the first parameter if you don't want any options)."
19508 msgstr ""
19509
19510 # type: =head2
19511 #: ../fish/guestfish-actions.pod:2635
19512 msgid "mount-loop"
19513 msgstr ""
19514
19515 # type: verbatim
19516 #: ../fish/guestfish-actions.pod:2637
19517 #, no-wrap
19518 msgid ""
19519 " mount-loop file mountpoint\n"
19520 "\n"
19521 msgstr ""
19522
19523 # type: =head2
19524 #: ../fish/guestfish-actions.pod:2643
19525 msgid "mount-options"
19526 msgstr ""
19527
19528 # type: verbatim
19529 #: ../fish/guestfish-actions.pod:2645
19530 #, no-wrap
19531 msgid ""
19532 " mount-options options device mountpoint\n"
19533 "\n"
19534 msgstr ""
19535
19536 # type: textblock
19537 #: ../fish/guestfish-actions.pod:2647
19538 msgid ""
19539 "This is the same as the L</mount> command, but it allows you to set the "
19540 "mount options as for the L<mount(8)> I<-o> flag."
19541 msgstr ""
19542
19543 # type: =head2
19544 #: ../fish/guestfish-actions.pod:2655
19545 msgid "mount-ro"
19546 msgstr ""
19547
19548 # type: verbatim
19549 #: ../fish/guestfish-actions.pod:2657
19550 #, no-wrap
19551 msgid ""
19552 " mount-ro device mountpoint\n"
19553 "\n"
19554 msgstr ""
19555
19556 # type: textblock
19557 #: ../fish/guestfish-actions.pod:2659
19558 msgid ""
19559 "This is the same as the L</mount> command, but it mounts the filesystem with "
19560 "the read-only (I<-o ro>) flag."
19561 msgstr ""
19562
19563 # type: =head2
19564 #: ../fish/guestfish-actions.pod:2662
19565 msgid "mount-vfs"
19566 msgstr ""
19567
19568 # type: verbatim
19569 #: ../fish/guestfish-actions.pod:2664
19570 #, no-wrap
19571 msgid ""
19572 " mount-vfs options vfstype device mountpoint\n"
19573 "\n"
19574 msgstr ""
19575
19576 # type: textblock
19577 #: ../fish/guestfish-actions.pod:2666
19578 msgid ""
19579 "This is the same as the L</mount> command, but it allows you to set both the "
19580 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
19581 msgstr ""
19582
19583 # type: =head2
19584 #: ../fish/guestfish-actions.pod:2670
19585 msgid "mountpoints"
19586 msgstr ""
19587
19588 # type: verbatim
19589 #: ../fish/guestfish-actions.pod:2672
19590 #, no-wrap
19591 msgid ""
19592 " mountpoints\n"
19593 "\n"
19594 msgstr ""
19595
19596 # type: textblock
19597 #: ../fish/guestfish-actions.pod:2674
19598 msgid ""
19599 "This call is similar to L</mounts>.  That call returns a list of devices.  "
19600 "This one returns a hash table (map) of device name to directory where the "
19601 "device is mounted."
19602 msgstr ""
19603
19604 # type: =head2
19605 #: ../fish/guestfish-actions.pod:2678
19606 msgid "mounts"
19607 msgstr ""
19608
19609 # type: verbatim
19610 #: ../fish/guestfish-actions.pod:2680
19611 #, no-wrap
19612 msgid ""
19613 " mounts\n"
19614 "\n"
19615 msgstr ""
19616
19617 # type: textblock
19618 #: ../fish/guestfish-actions.pod:2687
19619 msgid "See also: L</mountpoints>"
19620 msgstr ""
19621
19622 # type: =head2
19623 #: ../fish/guestfish-actions.pod:2689
19624 msgid "mv"
19625 msgstr ""
19626
19627 # type: verbatim
19628 #: ../fish/guestfish-actions.pod:2691
19629 #, no-wrap
19630 msgid ""
19631 " mv src dest\n"
19632 "\n"
19633 msgstr ""
19634
19635 # type: =head2
19636 #: ../fish/guestfish-actions.pod:2696
19637 msgid "ntfs-3g-probe"
19638 msgstr ""
19639
19640 # type: verbatim
19641 #: ../fish/guestfish-actions.pod:2698
19642 #, no-wrap
19643 msgid ""
19644 " ntfs-3g-probe true|false device\n"
19645 "\n"
19646 msgstr ""
19647
19648 # type: =head2
19649 #: ../fish/guestfish-actions.pod:2712
19650 msgid "ntfsresize"
19651 msgstr ""
19652
19653 # type: verbatim
19654 #: ../fish/guestfish-actions.pod:2714
19655 #, no-wrap
19656 msgid ""
19657 " ntfsresize device\n"
19658 "\n"
19659 msgstr ""
19660
19661 # type: =head2
19662 #: ../fish/guestfish-actions.pod:2720
19663 msgid "ntfsresize-size"
19664 msgstr ""
19665
19666 # type: verbatim
19667 #: ../fish/guestfish-actions.pod:2722
19668 #, no-wrap
19669 msgid ""
19670 " ntfsresize-size device size\n"
19671 "\n"
19672 msgstr ""
19673
19674 # type: textblock
19675 #: ../fish/guestfish-actions.pod:2724
19676 msgid ""
19677 "This command is the same as L</ntfsresize> except that it allows you to "
19678 "specify the new size (in bytes) explicitly."
19679 msgstr ""
19680
19681 # type: =head2
19682 #: ../fish/guestfish-actions.pod:2727
19683 msgid "part-add"
19684 msgstr ""
19685
19686 # type: verbatim
19687 #: ../fish/guestfish-actions.pod:2729
19688 #, no-wrap
19689 msgid ""
19690 " part-add device prlogex startsect endsect\n"
19691 "\n"
19692 msgstr ""
19693
19694 # type: textblock
19695 #: ../fish/guestfish-actions.pod:2731
19696 msgid ""
19697 "This command adds a partition to C<device>.  If there is no partition table "
19698 "on the device, call L</part-init> first."
19699 msgstr ""
19700
19701 # type: textblock
19702 #: ../fish/guestfish-actions.pod:2743
19703 msgid ""
19704 "Creating a partition which covers the whole disk is not so easy.  Use "
19705 "L</part-disk> to do that."
19706 msgstr ""
19707
19708 # type: =head2
19709 #: ../fish/guestfish-actions.pod:2746
19710 msgid "part-del"
19711 msgstr ""
19712
19713 # type: verbatim
19714 #: ../fish/guestfish-actions.pod:2748
19715 #, no-wrap
19716 msgid ""
19717 " part-del device partnum\n"
19718 "\n"
19719 msgstr ""
19720
19721 # type: =head2
19722 #: ../fish/guestfish-actions.pod:2756
19723 msgid "part-disk"
19724 msgstr ""
19725
19726 # type: verbatim
19727 #: ../fish/guestfish-actions.pod:2758
19728 #, no-wrap
19729 msgid ""
19730 " part-disk device parttype\n"
19731 "\n"
19732 msgstr ""
19733
19734 # type: textblock
19735 #: ../fish/guestfish-actions.pod:2760
19736 msgid ""
19737 "This command is simply a combination of L</part-init> followed by "
19738 "L</part-add> to create a single primary partition covering the whole disk."
19739 msgstr ""
19740
19741 # type: textblock
19742 #: ../fish/guestfish-actions.pod:2764
19743 msgid ""
19744 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
19745 "possible values are described in L</part-init>."
19746 msgstr ""
19747
19748 # type: =head2
19749 #: ../fish/guestfish-actions.pod:2770
19750 msgid "part-get-bootable"
19751 msgstr ""
19752
19753 # type: verbatim
19754 #: ../fish/guestfish-actions.pod:2772
19755 #, no-wrap
19756 msgid ""
19757 " part-get-bootable device partnum\n"
19758 "\n"
19759 msgstr ""
19760
19761 # type: textblock
19762 #: ../fish/guestfish-actions.pod:2777
19763 msgid "See also L</part-set-bootable>."
19764 msgstr ""
19765
19766 # type: =head2
19767 #: ../fish/guestfish-actions.pod:2779
19768 msgid "part-get-mbr-id"
19769 msgstr ""
19770
19771 # type: verbatim
19772 #: ../fish/guestfish-actions.pod:2781
19773 #, no-wrap
19774 msgid ""
19775 " part-get-mbr-id device partnum\n"
19776 "\n"
19777 msgstr ""
19778
19779 # type: textblock
19780 #: ../fish/guestfish-actions.pod:2786 ../fish/guestfish-actions.pod:2924
19781 msgid ""
19782 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
19783 "undefined results for other partition table types (see "
19784 "L</part-get-parttype>)."
19785 msgstr ""
19786
19787 # type: =head2
19788 #: ../fish/guestfish-actions.pod:2790
19789 msgid "part-get-parttype"
19790 msgstr ""
19791
19792 # type: verbatim
19793 #: ../fish/guestfish-actions.pod:2792
19794 #, no-wrap
19795 msgid ""
19796 " part-get-parttype device\n"
19797 "\n"
19798 msgstr ""
19799
19800 # type: textblock
19801 #: ../fish/guestfish-actions.pod:2797
19802 msgid ""
19803 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
19804 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
19805 "possible, although unusual.  See L</part-init> for a full list."
19806 msgstr ""
19807
19808 # type: =head2
19809 #: ../fish/guestfish-actions.pod:2802
19810 msgid "part-init"
19811 msgstr ""
19812
19813 # type: verbatim
19814 #: ../fish/guestfish-actions.pod:2804
19815 #, no-wrap
19816 msgid ""
19817 " part-init device parttype\n"
19818 "\n"
19819 msgstr ""
19820
19821 # type: textblock
19822 #: ../fish/guestfish-actions.pod:2810
19823 msgid ""
19824 "Initially there are no partitions.  Following this, you should call "
19825 "L</part-add> for each partition required."
19826 msgstr ""
19827
19828 # type: =head2
19829 #: ../fish/guestfish-actions.pod:2873
19830 msgid "part-list"
19831 msgstr ""
19832
19833 # type: verbatim
19834 #: ../fish/guestfish-actions.pod:2875
19835 #, no-wrap
19836 msgid ""
19837 " part-list device\n"
19838 "\n"
19839 msgstr ""
19840
19841 # type: textblock
19842 #: ../fish/guestfish-actions.pod:2890
19843 msgid ""
19844 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
19845 "the device's sector size, see L</blockdev-getss>."
19846 msgstr ""
19847
19848 # type: =head2
19849 #: ../fish/guestfish-actions.pod:2903
19850 msgid "part-set-bootable"
19851 msgstr ""
19852
19853 # type: verbatim
19854 #: ../fish/guestfish-actions.pod:2905
19855 #, no-wrap
19856 msgid ""
19857 " part-set-bootable device partnum true|false\n"
19858 "\n"
19859 msgstr ""
19860
19861 # type: =head2
19862 #: ../fish/guestfish-actions.pod:2914
19863 msgid "part-set-mbr-id"
19864 msgstr ""
19865
19866 # type: verbatim
19867 #: ../fish/guestfish-actions.pod:2916
19868 #, no-wrap
19869 msgid ""
19870 " part-set-mbr-id device partnum idbyte\n"
19871 "\n"
19872 msgstr ""
19873
19874 # type: =head2
19875 #: ../fish/guestfish-actions.pod:2928
19876 msgid "part-set-name"
19877 msgstr ""
19878
19879 # type: verbatim
19880 #: ../fish/guestfish-actions.pod:2930
19881 #, no-wrap
19882 msgid ""
19883 " part-set-name device partnum name\n"
19884 "\n"
19885 msgstr ""
19886
19887 # type: =head2
19888 #: ../fish/guestfish-actions.pod:2938
19889 msgid "part-to-dev"
19890 msgstr ""
19891
19892 # type: verbatim
19893 #: ../fish/guestfish-actions.pod:2940
19894 #, no-wrap
19895 msgid ""
19896 " part-to-dev partition\n"
19897 "\n"
19898 msgstr ""
19899
19900 # type: textblock
19901 #: ../fish/guestfish-actions.pod:2946
19902 msgid ""
19903 "The named partition must exist, for example as a string returned from "
19904 "L</list-partitions>."
19905 msgstr ""
19906
19907 # type: =head2
19908 #: ../fish/guestfish-actions.pod:2949
19909 msgid "ping-daemon"
19910 msgstr ""
19911
19912 # type: verbatim
19913 #: ../fish/guestfish-actions.pod:2951
19914 #, no-wrap
19915 msgid ""
19916 " ping-daemon\n"
19917 "\n"
19918 msgstr ""
19919
19920 # type: =head2
19921 #: ../fish/guestfish-actions.pod:2958
19922 msgid "pread"
19923 msgstr ""
19924
19925 # type: verbatim
19926 #: ../fish/guestfish-actions.pod:2960
19927 #, no-wrap
19928 msgid ""
19929 " pread path count offset\n"
19930 "\n"
19931 msgstr ""
19932
19933 # type: textblock
19934 #: ../fish/guestfish-actions.pod:2968
19935 msgid "See also L</pwrite>."
19936 msgstr ""
19937
19938 # type: =head2
19939 #: ../fish/guestfish-actions.pod:2973
19940 msgid "pvcreate"
19941 msgstr ""
19942
19943 # type: verbatim
19944 #: ../fish/guestfish-actions.pod:2975
19945 #, no-wrap
19946 msgid ""
19947 " pvcreate device\n"
19948 "\n"
19949 msgstr ""
19950
19951 # type: =head2
19952 #: ../fish/guestfish-actions.pod:2981
19953 msgid "pvremove"
19954 msgstr ""
19955
19956 # type: verbatim
19957 #: ../fish/guestfish-actions.pod:2983
19958 #, no-wrap
19959 msgid ""
19960 " pvremove device\n"
19961 "\n"
19962 msgstr ""
19963
19964 # type: =head2
19965 #: ../fish/guestfish-actions.pod:2992
19966 msgid "pvresize"
19967 msgstr ""
19968
19969 # type: verbatim
19970 #: ../fish/guestfish-actions.pod:2994
19971 #, no-wrap
19972 msgid ""
19973 " pvresize device\n"
19974 "\n"
19975 msgstr ""
19976
19977 # type: =head2
19978 #: ../fish/guestfish-actions.pod:2999
19979 msgid "pvresize-size"
19980 msgstr ""
19981
19982 # type: verbatim
19983 #: ../fish/guestfish-actions.pod:3001
19984 #, no-wrap
19985 msgid ""
19986 " pvresize-size device size\n"
19987 "\n"
19988 msgstr ""
19989
19990 # type: textblock
19991 #: ../fish/guestfish-actions.pod:3003
19992 msgid ""
19993 "This command is the same as L</pvresize> except that it allows you to "
19994 "specify the new size (in bytes) explicitly."
19995 msgstr ""
19996
19997 # type: =head2
19998 #: ../fish/guestfish-actions.pod:3006
19999 msgid "pvs"
20000 msgstr ""
20001
20002 # type: verbatim
20003 #: ../fish/guestfish-actions.pod:3008
20004 #, no-wrap
20005 msgid ""
20006 " pvs\n"
20007 "\n"
20008 msgstr ""
20009
20010 # type: textblock
20011 #: ../fish/guestfish-actions.pod:3016
20012 msgid "See also L</pvs-full>."
20013 msgstr ""
20014
20015 # type: =head2
20016 #: ../fish/guestfish-actions.pod:3018
20017 msgid "pvs-full"
20018 msgstr ""
20019
20020 # type: verbatim
20021 #: ../fish/guestfish-actions.pod:3020
20022 #, no-wrap
20023 msgid ""
20024 " pvs-full\n"
20025 "\n"
20026 msgstr ""
20027
20028 # type: =head2
20029 #: ../fish/guestfish-actions.pod:3025
20030 msgid "pvuuid"
20031 msgstr ""
20032
20033 # type: verbatim
20034 #: ../fish/guestfish-actions.pod:3027
20035 #, no-wrap
20036 msgid ""
20037 " pvuuid device\n"
20038 "\n"
20039 msgstr ""
20040
20041 # type: =head2
20042 #: ../fish/guestfish-actions.pod:3031
20043 msgid "pwrite"
20044 msgstr ""
20045
20046 # type: verbatim
20047 #: ../fish/guestfish-actions.pod:3033
20048 #, no-wrap
20049 msgid ""
20050 " pwrite path content offset\n"
20051 "\n"
20052 msgstr ""
20053
20054 # type: textblock
20055 #: ../fish/guestfish-actions.pod:3044
20056 msgid "See also L</pread>."
20057 msgstr ""
20058
20059 # type: =head2
20060 #: ../fish/guestfish-actions.pod:3049
20061 msgid "read-file"
20062 msgstr ""
20063
20064 # type: verbatim
20065 #: ../fish/guestfish-actions.pod:3051
20066 #, no-wrap
20067 msgid ""
20068 " read-file path\n"
20069 "\n"
20070 msgstr ""
20071
20072 # type: textblock
20073 #: ../fish/guestfish-actions.pod:3056
20074 msgid ""
20075 "Unlike L</cat>, this function can correctly handle files that contain "
20076 "embedded ASCII NUL characters.  However unlike L</download>, this function "
20077 "is limited in the total size of file that can be handled."
20078 msgstr ""
20079
20080 # type: =head2
20081 #: ../fish/guestfish-actions.pod:3064
20082 msgid "read-lines"
20083 msgstr ""
20084
20085 # type: verbatim
20086 #: ../fish/guestfish-actions.pod:3066
20087 #, no-wrap
20088 msgid ""
20089 " read-lines path\n"
20090 "\n"
20091 msgstr ""
20092
20093 # type: textblock
20094 #: ../fish/guestfish-actions.pod:3073
20095 msgid ""
20096 "Note that this function cannot correctly handle binary files (specifically, "
20097 "files containing C<\\0> character which is treated as end of line).  For "
20098 "those you need to use the L</read-file> function which has a more complex "
20099 "interface."
20100 msgstr ""
20101
20102 # type: =head2
20103 #: ../fish/guestfish-actions.pod:3078
20104 msgid "readdir"
20105 msgstr ""
20106
20107 # type: verbatim
20108 #: ../fish/guestfish-actions.pod:3080
20109 #, no-wrap
20110 msgid ""
20111 " readdir dir\n"
20112 "\n"
20113 msgstr ""
20114
20115 # type: textblock
20116 #: ../fish/guestfish-actions.pod:3132
20117 msgid ""
20118 "This function is primarily intended for use by programs.  To get a simple "
20119 "list of names, use L</ls>.  To get a printable directory for human "
20120 "consumption, use L</ll>."
20121 msgstr ""
20122
20123 # type: =head2
20124 #: ../fish/guestfish-actions.pod:3136
20125 msgid "readlink"
20126 msgstr ""
20127
20128 # type: verbatim
20129 #: ../fish/guestfish-actions.pod:3138
20130 #, no-wrap
20131 msgid ""
20132 " readlink path\n"
20133 "\n"
20134 msgstr ""
20135
20136 # type: =head2
20137 #: ../fish/guestfish-actions.pod:3142
20138 msgid "readlinklist"
20139 msgstr ""
20140
20141 # type: verbatim
20142 #: ../fish/guestfish-actions.pod:3144
20143 #, no-wrap
20144 msgid ""
20145 " readlinklist path 'names ...'\n"
20146 "\n"
20147 msgstr ""
20148
20149 # type: =head2
20150 #: ../fish/guestfish-actions.pod:3168
20151 msgid "realpath"
20152 msgstr ""
20153
20154 # type: verbatim
20155 #: ../fish/guestfish-actions.pod:3170
20156 #, no-wrap
20157 msgid ""
20158 " realpath path\n"
20159 "\n"
20160 msgstr ""
20161
20162 # type: =head2
20163 #: ../fish/guestfish-actions.pod:3175
20164 msgid "removexattr"
20165 msgstr ""
20166
20167 # type: verbatim
20168 #: ../fish/guestfish-actions.pod:3177
20169 #, no-wrap
20170 msgid ""
20171 " removexattr xattr path\n"
20172 "\n"
20173 msgstr ""
20174
20175 # type: textblock
20176 #: ../fish/guestfish-actions.pod:3182
20177 msgid "See also: L</lremovexattr>, L<attr(5)>."
20178 msgstr ""
20179
20180 # type: =head2
20181 #: ../fish/guestfish-actions.pod:3184
20182 msgid "resize2fs"
20183 msgstr ""
20184
20185 # type: verbatim
20186 #: ../fish/guestfish-actions.pod:3186
20187 #, no-wrap
20188 msgid ""
20189 " resize2fs device\n"
20190 "\n"
20191 msgstr ""
20192
20193 # type: textblock
20194 #: ../fish/guestfish-actions.pod:3191
20195 msgid ""
20196 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
20197 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
20198 "gives an error about this and sometimes not.  In any case, it is always safe "
20199 "to call L</e2fsck-f> before calling this function."
20200 msgstr ""
20201
20202 # type: =head2
20203 #: ../fish/guestfish-actions.pod:3197
20204 msgid "resize2fs-size"
20205 msgstr ""
20206
20207 # type: verbatim
20208 #: ../fish/guestfish-actions.pod:3199
20209 #, no-wrap
20210 msgid ""
20211 " resize2fs-size device size\n"
20212 "\n"
20213 msgstr ""
20214
20215 # type: textblock
20216 #: ../fish/guestfish-actions.pod:3201
20217 msgid ""
20218 "This command is the same as L</resize2fs> except that it allows you to "
20219 "specify the new size (in bytes) explicitly."
20220 msgstr ""
20221
20222 # type: =head2
20223 #: ../fish/guestfish-actions.pod:3204
20224 msgid "rm"
20225 msgstr ""
20226
20227 # type: verbatim
20228 #: ../fish/guestfish-actions.pod:3206
20229 #, no-wrap
20230 msgid ""
20231 " rm path\n"
20232 "\n"
20233 msgstr ""
20234
20235 # type: =head2
20236 #: ../fish/guestfish-actions.pod:3210
20237 msgid "rm-rf"
20238 msgstr ""
20239
20240 # type: verbatim
20241 #: ../fish/guestfish-actions.pod:3212
20242 #, no-wrap
20243 msgid ""
20244 " rm-rf path\n"
20245 "\n"
20246 msgstr ""
20247
20248 # type: =head2
20249 #: ../fish/guestfish-actions.pod:3218
20250 msgid "rmdir"
20251 msgstr ""
20252
20253 # type: verbatim
20254 #: ../fish/guestfish-actions.pod:3220
20255 #, no-wrap
20256 msgid ""
20257 " rmdir path\n"
20258 "\n"
20259 msgstr ""
20260
20261 # type: =head2
20262 #: ../fish/guestfish-actions.pod:3224
20263 msgid "rmmountpoint"
20264 msgstr ""
20265
20266 # type: verbatim
20267 #: ../fish/guestfish-actions.pod:3226
20268 #, no-wrap
20269 msgid ""
20270 " rmmountpoint exemptpath\n"
20271 "\n"
20272 msgstr ""
20273
20274 # type: textblock
20275 #: ../fish/guestfish-actions.pod:3228
20276 msgid ""
20277 "This calls removes a mountpoint that was previously created with "
20278 "L</mkmountpoint>.  See L</mkmountpoint> for full details."
20279 msgstr ""
20280
20281 # type: =head2
20282 #: ../fish/guestfish-actions.pod:3232
20283 msgid "scrub-device"
20284 msgstr ""
20285
20286 # type: verbatim
20287 #: ../fish/guestfish-actions.pod:3234
20288 #, no-wrap
20289 msgid ""
20290 " scrub-device device\n"
20291 "\n"
20292 msgstr ""
20293
20294 # type: =head2
20295 #: ../fish/guestfish-actions.pod:3245
20296 msgid "scrub-file"
20297 msgstr ""
20298
20299 # type: verbatim
20300 #: ../fish/guestfish-actions.pod:3247
20301 #, no-wrap
20302 msgid ""
20303 " scrub-file file\n"
20304 "\n"
20305 msgstr ""
20306
20307 # type: =head2
20308 #: ../fish/guestfish-actions.pod:3257
20309 msgid "scrub-freespace"
20310 msgstr ""
20311
20312 # type: verbatim
20313 #: ../fish/guestfish-actions.pod:3259
20314 #, no-wrap
20315 msgid ""
20316 " scrub-freespace dir\n"
20317 "\n"
20318 msgstr ""
20319
20320 # type: textblock
20321 #: ../fish/guestfish-actions.pod:3261
20322 msgid ""
20323 "This command creates the directory C<dir> and then fills it with files until "
20324 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
20325 "deletes them.  The intention is to scrub any free space on the partition "
20326 "containing C<dir>."
20327 msgstr ""
20328
20329 # type: =head2
20330 #: ../fish/guestfish-actions.pod:3270
20331 msgid "set-append"
20332 msgstr ""
20333
20334 # type: =head2
20335 #: ../fish/guestfish-actions.pod:3272
20336 msgid "append"
20337 msgstr ""
20338
20339 # type: verbatim
20340 #: ../fish/guestfish-actions.pod:3274
20341 #, no-wrap
20342 msgid ""
20343 " set-append append\n"
20344 "\n"
20345 msgstr ""
20346
20347 # type: =head2
20348 #: ../fish/guestfish-actions.pod:3285
20349 msgid "set-autosync"
20350 msgstr ""
20351
20352 # type: =head2
20353 #: ../fish/guestfish-actions.pod:3287
20354 msgid "autosync"
20355 msgstr ""
20356
20357 # type: verbatim
20358 #: ../fish/guestfish-actions.pod:3289
20359 #, no-wrap
20360 msgid ""
20361 " set-autosync true|false\n"
20362 "\n"
20363 msgstr ""
20364
20365 # type: textblock
20366 #: ../fish/guestfish-actions.pod:3291
20367 msgid ""
20368 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
20369 "effort attempt to run L</umount-all> followed by L</sync> when the handle is "
20370 "closed (also if the program exits without closing handles)."
20371 msgstr ""
20372
20373 # type: =head2
20374 #: ../fish/guestfish-actions.pod:3299
20375 msgid "set-direct"
20376 msgstr ""
20377
20378 # type: =head2
20379 #: ../fish/guestfish-actions.pod:3301
20380 msgid "direct"
20381 msgstr ""
20382
20383 # type: verbatim
20384 #: ../fish/guestfish-actions.pod:3303
20385 #, no-wrap
20386 msgid ""
20387 " set-direct true|false\n"
20388 "\n"
20389 msgstr ""
20390
20391 # type: textblock
20392 #: ../fish/guestfish-actions.pod:3309
20393 msgid ""
20394 "One consequence of this is that log messages aren't caught by the library "
20395 "and handled by L</set-log-message-callback>, but go straight to stdout."
20396 msgstr ""
20397
20398 # type: =head2
20399 #: ../fish/guestfish-actions.pod:3318
20400 msgid "set-e2label"
20401 msgstr ""
20402
20403 # type: verbatim
20404 #: ../fish/guestfish-actions.pod:3320
20405 #, no-wrap
20406 msgid ""
20407 " set-e2label device label\n"
20408 "\n"
20409 msgstr ""
20410
20411 # type: textblock
20412 #: ../fish/guestfish-actions.pod:3326
20413 msgid ""
20414 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
20415 "label on a filesystem."
20416 msgstr ""
20417
20418 # type: =head2
20419 #: ../fish/guestfish-actions.pod:3329
20420 msgid "set-e2uuid"
20421 msgstr ""
20422
20423 # type: verbatim
20424 #: ../fish/guestfish-actions.pod:3331
20425 #, no-wrap
20426 msgid ""
20427 " set-e2uuid device uuid\n"
20428 "\n"
20429 msgstr ""
20430
20431 # type: textblock
20432 #: ../fish/guestfish-actions.pod:3338
20433 msgid ""
20434 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
20435 "UUID of a filesystem."
20436 msgstr ""
20437
20438 # type: =head2
20439 #: ../fish/guestfish-actions.pod:3341
20440 msgid "set-memsize"
20441 msgstr ""
20442
20443 # type: =head2
20444 #: ../fish/guestfish-actions.pod:3343
20445 msgid "memsize"
20446 msgstr ""
20447
20448 # type: verbatim
20449 #: ../fish/guestfish-actions.pod:3345
20450 #, no-wrap
20451 msgid ""
20452 " set-memsize memsize\n"
20453 "\n"
20454 msgstr ""
20455
20456 # type: textblock
20457 #: ../fish/guestfish-actions.pod:3347
20458 msgid ""
20459 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
20460 "This only has any effect if called before L</launch>."
20461 msgstr ""
20462
20463 # type: =head2
20464 #: ../fish/guestfish-actions.pod:3358
20465 msgid "set-network"
20466 msgstr ""
20467
20468 # type: =head2
20469 #: ../fish/guestfish-actions.pod:3360
20470 msgid "network"
20471 msgstr ""
20472
20473 # type: verbatim
20474 #: ../fish/guestfish-actions.pod:3362
20475 #, no-wrap
20476 msgid ""
20477 " set-network true|false\n"
20478 "\n"
20479 msgstr ""
20480
20481 # type: textblock
20482 #: ../fish/guestfish-actions.pod:3370
20483 msgid "You must call this before calling L</launch>, otherwise it has no effect."
20484 msgstr ""
20485
20486 # type: =head2
20487 #: ../fish/guestfish-actions.pod:3373
20488 msgid "set-path"
20489 msgstr ""
20490
20491 # type: =head2
20492 #: ../fish/guestfish-actions.pod:3375
20493 msgid "path"
20494 msgstr ""
20495
20496 # type: verbatim
20497 #: ../fish/guestfish-actions.pod:3377
20498 #, no-wrap
20499 msgid ""
20500 " set-path searchpath\n"
20501 "\n"
20502 msgstr ""
20503
20504 # type: =head2
20505 #: ../fish/guestfish-actions.pod:3386
20506 msgid "set-qemu"
20507 msgstr ""
20508
20509 # type: =head2
20510 #: ../fish/guestfish-actions.pod:3388
20511 msgid "qemu"
20512 msgstr ""
20513
20514 # type: verbatim
20515 #: ../fish/guestfish-actions.pod:3390
20516 #, no-wrap
20517 msgid ""
20518 " set-qemu qemu\n"
20519 "\n"
20520 msgstr ""
20521
20522 # type: =head2
20523 #: ../fish/guestfish-actions.pod:3410
20524 msgid "set-recovery-proc"
20525 msgstr ""
20526
20527 # type: =head2
20528 #: ../fish/guestfish-actions.pod:3412
20529 msgid "recovery-proc"
20530 msgstr ""
20531
20532 # type: verbatim
20533 #: ../fish/guestfish-actions.pod:3414
20534 #, no-wrap
20535 msgid ""
20536 " set-recovery-proc true|false\n"
20537 "\n"
20538 msgstr ""
20539
20540 # type: textblock
20541 #: ../fish/guestfish-actions.pod:3416
20542 msgid ""
20543 "If this is called with the parameter C<false> then L</launch> does not "
20544 "create a recovery process.  The purpose of the recovery process is to stop "
20545 "runaway qemu processes in the case where the main program aborts abruptly."
20546 msgstr ""
20547
20548 # type: textblock
20549 #: ../fish/guestfish-actions.pod:3421
20550 msgid ""
20551 "This only has any effect if called before L</launch>, and the default is "
20552 "true."
20553 msgstr ""
20554
20555 # type: =head2
20556 #: ../fish/guestfish-actions.pod:3430
20557 msgid "set-selinux"
20558 msgstr ""
20559
20560 # type: =head2
20561 #: ../fish/guestfish-actions.pod:3432
20562 msgid "selinux"
20563 msgstr ""
20564
20565 # type: verbatim
20566 #: ../fish/guestfish-actions.pod:3434
20567 #, no-wrap
20568 msgid ""
20569 " set-selinux true|false\n"
20570 "\n"
20571 msgstr ""
20572
20573 # type: =head2
20574 #: ../fish/guestfish-actions.pod:3445
20575 msgid "set-trace"
20576 msgstr ""
20577
20578 # type: =head2
20579 #: ../fish/guestfish-actions.pod:3447
20580 msgid "trace"
20581 msgstr ""
20582
20583 # type: verbatim
20584 #: ../fish/guestfish-actions.pod:3449
20585 #, no-wrap
20586 msgid ""
20587 " set-trace true|false\n"
20588 "\n"
20589 msgstr ""
20590
20591 # type: =head2
20592 #: ../fish/guestfish-actions.pod:3465
20593 msgid "set-verbose"
20594 msgstr ""
20595
20596 # type: =head2
20597 #: ../fish/guestfish-actions.pod:3467
20598 msgid "verbose"
20599 msgstr ""
20600
20601 # type: verbatim
20602 #: ../fish/guestfish-actions.pod:3469
20603 #, no-wrap
20604 msgid ""
20605 " set-verbose true|false\n"
20606 "\n"
20607 msgstr ""
20608
20609 # type: =head2
20610 #: ../fish/guestfish-actions.pod:3476
20611 msgid "setcon"
20612 msgstr ""
20613
20614 # type: verbatim
20615 #: ../fish/guestfish-actions.pod:3478
20616 #, no-wrap
20617 msgid ""
20618 " setcon context\n"
20619 "\n"
20620 msgstr ""
20621
20622 # type: =head2
20623 #: ../fish/guestfish-actions.pod:3485
20624 msgid "setxattr"
20625 msgstr ""
20626
20627 # type: verbatim
20628 #: ../fish/guestfish-actions.pod:3487
20629 #, no-wrap
20630 msgid ""
20631 " setxattr xattr val vallen path\n"
20632 "\n"
20633 msgstr ""
20634
20635 # type: textblock
20636 #: ../fish/guestfish-actions.pod:3493
20637 msgid "See also: L</lsetxattr>, L<attr(5)>."
20638 msgstr ""
20639
20640 # type: =head2
20641 #: ../fish/guestfish-actions.pod:3495
20642 msgid "sfdisk"
20643 msgstr ""
20644
20645 # type: verbatim
20646 #: ../fish/guestfish-actions.pod:3497
20647 #, no-wrap
20648 msgid ""
20649 " sfdisk device cyls heads sectors 'lines ...'\n"
20650 "\n"
20651 msgstr ""
20652
20653 # type: textblock
20654 #: ../fish/guestfish-actions.pod:3519
20655 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
20656 msgstr ""
20657
20658 # type: =head2
20659 #: ../fish/guestfish-actions.pod:3525
20660 msgid "sfdiskM"
20661 msgstr ""
20662
20663 # type: verbatim
20664 #: ../fish/guestfish-actions.pod:3527
20665 #, no-wrap
20666 msgid ""
20667 " sfdiskM device 'lines ...'\n"
20668 "\n"
20669 msgstr ""
20670
20671 # type: textblock
20672 #: ../fish/guestfish-actions.pod:3529
20673 msgid ""
20674 "This is a simplified interface to the L</sfdisk> command, where partition "
20675 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
20676 "you don't need to specify the cyls, heads and sectors parameters which were "
20677 "rarely if ever used anyway."
20678 msgstr ""
20679
20680 # type: textblock
20681 #: ../fish/guestfish-actions.pod:3535
20682 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
20683 msgstr ""
20684
20685 # type: =head2
20686 #: ../fish/guestfish-actions.pod:3541
20687 msgid "sfdisk-N"
20688 msgstr ""
20689
20690 # type: verbatim
20691 #: ../fish/guestfish-actions.pod:3543
20692 #, no-wrap
20693 msgid ""
20694 " sfdisk-N device partnum cyls heads sectors line\n"
20695 "\n"
20696 msgstr ""
20697
20698 # type: textblock
20699 #: ../fish/guestfish-actions.pod:3548
20700 msgid ""
20701 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
20702 "cyls/heads/sectors parameters."
20703 msgstr ""
20704
20705 # type: textblock
20706 #: ../fish/guestfish-actions.pod:3551
20707 msgid "See also: L</part-add>"
20708 msgstr ""
20709
20710 # type: =head2
20711 #: ../fish/guestfish-actions.pod:3556
20712 msgid "sfdisk-disk-geometry"
20713 msgstr ""
20714
20715 # type: verbatim
20716 #: ../fish/guestfish-actions.pod:3558
20717 #, no-wrap
20718 msgid ""
20719 " sfdisk-disk-geometry device\n"
20720 "\n"
20721 msgstr ""
20722
20723 # type: textblock
20724 #: ../fish/guestfish-actions.pod:3560
20725 msgid ""
20726 "This displays the disk geometry of C<device> read from the partition table.  "
20727 "Especially in the case where the underlying block device has been resized, "
20728 "this can be different from the kernel's idea of the geometry (see "
20729 "L</sfdisk-kernel-geometry>)."
20730 msgstr ""
20731
20732 # type: =head2
20733 #: ../fish/guestfish-actions.pod:3568
20734 msgid "sfdisk-kernel-geometry"
20735 msgstr ""
20736
20737 # type: verbatim
20738 #: ../fish/guestfish-actions.pod:3570
20739 #, no-wrap
20740 msgid ""
20741 " sfdisk-kernel-geometry device\n"
20742 "\n"
20743 msgstr ""
20744
20745 # type: =head2
20746 #: ../fish/guestfish-actions.pod:3577
20747 msgid "sfdisk-l"
20748 msgstr ""
20749
20750 # type: verbatim
20751 #: ../fish/guestfish-actions.pod:3579
20752 #, no-wrap
20753 msgid ""
20754 " sfdisk-l device\n"
20755 "\n"
20756 msgstr ""
20757
20758 # type: textblock
20759 #: ../fish/guestfish-actions.pod:3585
20760 msgid "See also: L</part-list>"
20761 msgstr ""
20762
20763 # type: =head2
20764 #: ../fish/guestfish-actions.pod:3587
20765 msgid "sh"
20766 msgstr ""
20767
20768 # type: verbatim
20769 #: ../fish/guestfish-actions.pod:3589
20770 #, no-wrap
20771 msgid ""
20772 " sh command\n"
20773 "\n"
20774 msgstr ""
20775
20776 # type: textblock
20777 #: ../fish/guestfish-actions.pod:3594
20778 msgid "This is like L</command>, but passes the command to:"
20779 msgstr ""
20780
20781 # type: textblock
20782 #: ../fish/guestfish-actions.pod:3602
20783 msgid "All the provisos about L</command> apply to this call."
20784 msgstr ""
20785
20786 # type: =head2
20787 #: ../fish/guestfish-actions.pod:3604
20788 msgid "sh-lines"
20789 msgstr ""
20790
20791 # type: verbatim
20792 #: ../fish/guestfish-actions.pod:3606
20793 #, no-wrap
20794 msgid ""
20795 " sh-lines command\n"
20796 "\n"
20797 msgstr ""
20798
20799 # type: textblock
20800 #: ../fish/guestfish-actions.pod:3608
20801 msgid "This is the same as L</sh>, but splits the result into a list of lines."
20802 msgstr ""
20803
20804 # type: textblock
20805 #: ../fish/guestfish-actions.pod:3611
20806 msgid "See also: L</command-lines>"
20807 msgstr ""
20808
20809 # type: =head2
20810 #: ../fish/guestfish-actions.pod:3613
20811 msgid "sleep"
20812 msgstr ""
20813
20814 # type: verbatim
20815 #: ../fish/guestfish-actions.pod:3615
20816 #, no-wrap
20817 msgid ""
20818 " sleep secs\n"
20819 "\n"
20820 msgstr ""
20821
20822 # type: =head2
20823 #: ../fish/guestfish-actions.pod:3619
20824 msgid "stat"
20825 msgstr ""
20826
20827 # type: verbatim
20828 #: ../fish/guestfish-actions.pod:3621
20829 #, no-wrap
20830 msgid ""
20831 " stat path\n"
20832 "\n"
20833 msgstr ""
20834
20835 # type: =head2
20836 #: ../fish/guestfish-actions.pod:3627
20837 msgid "statvfs"
20838 msgstr ""
20839
20840 # type: verbatim
20841 #: ../fish/guestfish-actions.pod:3629
20842 #, no-wrap
20843 msgid ""
20844 " statvfs path\n"
20845 "\n"
20846 msgstr ""
20847
20848 # type: =head2
20849 #: ../fish/guestfish-actions.pod:3637
20850 msgid "strings"
20851 msgstr ""
20852
20853 # type: verbatim
20854 #: ../fish/guestfish-actions.pod:3639
20855 #, no-wrap
20856 msgid ""
20857 " strings path\n"
20858 "\n"
20859 msgstr ""
20860
20861 # type: =head2
20862 #: ../fish/guestfish-actions.pod:3647
20863 msgid "strings-e"
20864 msgstr ""
20865
20866 # type: verbatim
20867 #: ../fish/guestfish-actions.pod:3649
20868 #, no-wrap
20869 msgid ""
20870 " strings-e encoding path\n"
20871 "\n"
20872 msgstr ""
20873
20874 # type: textblock
20875 #: ../fish/guestfish-actions.pod:3651
20876 msgid ""
20877 "This is like the L</strings> command, but allows you to specify the encoding "
20878 "of strings that are looked for in the source file C<path>."
20879 msgstr ""
20880
20881 # type: textblock
20882 #: ../fish/guestfish-actions.pod:3661
20883 msgid ""
20884 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
20885 "ISO-8859-X (this is what L</strings> uses)."
20886 msgstr ""
20887
20888 # type: =head2
20889 #: ../fish/guestfish-actions.pod:3693
20890 msgid "swapoff-device"
20891 msgstr ""
20892
20893 # type: verbatim
20894 #: ../fish/guestfish-actions.pod:3695
20895 #, no-wrap
20896 msgid ""
20897 " swapoff-device device\n"
20898 "\n"
20899 msgstr ""
20900
20901 # type: textblock
20902 #: ../fish/guestfish-actions.pod:3697
20903 msgid ""
20904 "This command disables the libguestfs appliance swap device or partition "
20905 "named C<device>.  See L</swapon-device>."
20906 msgstr ""
20907
20908 # type: =head2
20909 #: ../fish/guestfish-actions.pod:3701
20910 msgid "swapoff-file"
20911 msgstr ""
20912
20913 # type: verbatim
20914 #: ../fish/guestfish-actions.pod:3703
20915 #, no-wrap
20916 msgid ""
20917 " swapoff-file file\n"
20918 "\n"
20919 msgstr ""
20920
20921 # type: =head2
20922 #: ../fish/guestfish-actions.pod:3707
20923 msgid "swapoff-label"
20924 msgstr ""
20925
20926 # type: verbatim
20927 #: ../fish/guestfish-actions.pod:3709
20928 #, no-wrap
20929 msgid ""
20930 " swapoff-label label\n"
20931 "\n"
20932 msgstr ""
20933
20934 # type: =head2
20935 #: ../fish/guestfish-actions.pod:3714
20936 msgid "swapoff-uuid"
20937 msgstr ""
20938
20939 # type: verbatim
20940 #: ../fish/guestfish-actions.pod:3716
20941 #, no-wrap
20942 msgid ""
20943 " swapoff-uuid uuid\n"
20944 "\n"
20945 msgstr ""
20946
20947 # type: =head2
20948 #: ../fish/guestfish-actions.pod:3721
20949 msgid "swapon-device"
20950 msgstr ""
20951
20952 # type: verbatim
20953 #: ../fish/guestfish-actions.pod:3723
20954 #, no-wrap
20955 msgid ""
20956 " swapon-device device\n"
20957 "\n"
20958 msgstr ""
20959
20960 # type: textblock
20961 #: ../fish/guestfish-actions.pod:3725
20962 msgid ""
20963 "This command enables the libguestfs appliance to use the swap device or "
20964 "partition named C<device>.  The increased memory is made available for all "
20965 "commands, for example those run using L</command> or L</sh>."
20966 msgstr ""
20967
20968 # type: =head2
20969 #: ../fish/guestfish-actions.pod:3737
20970 msgid "swapon-file"
20971 msgstr ""
20972
20973 # type: verbatim
20974 #: ../fish/guestfish-actions.pod:3739
20975 #, no-wrap
20976 msgid ""
20977 " swapon-file file\n"
20978 "\n"
20979 msgstr ""
20980
20981 # type: textblock
20982 #: ../fish/guestfish-actions.pod:3741
20983 msgid "This command enables swap to a file.  See L</swapon-device> for other notes."
20984 msgstr ""
20985
20986 # type: =head2
20987 #: ../fish/guestfish-actions.pod:3744
20988 msgid "swapon-label"
20989 msgstr ""
20990
20991 # type: verbatim
20992 #: ../fish/guestfish-actions.pod:3746
20993 #, no-wrap
20994 msgid ""
20995 " swapon-label label\n"
20996 "\n"
20997 msgstr ""
20998
20999 # type: textblock
21000 #: ../fish/guestfish-actions.pod:3748
21001 msgid ""
21002 "This command enables swap to a labeled swap partition.  See "
21003 "L</swapon-device> for other notes."
21004 msgstr ""
21005
21006 # type: =head2
21007 #: ../fish/guestfish-actions.pod:3751
21008 msgid "swapon-uuid"
21009 msgstr ""
21010
21011 # type: verbatim
21012 #: ../fish/guestfish-actions.pod:3753
21013 #, no-wrap
21014 msgid ""
21015 " swapon-uuid uuid\n"
21016 "\n"
21017 msgstr ""
21018
21019 # type: textblock
21020 #: ../fish/guestfish-actions.pod:3755
21021 msgid ""
21022 "This command enables swap to a swap partition with the given UUID.  See "
21023 "L</swapon-device> for other notes."
21024 msgstr ""
21025
21026 # type: =head2
21027 #: ../fish/guestfish-actions.pod:3758
21028 msgid "sync"
21029 msgstr ""
21030
21031 # type: verbatim
21032 #: ../fish/guestfish-actions.pod:3760
21033 #, no-wrap
21034 msgid ""
21035 " sync\n"
21036 "\n"
21037 msgstr ""
21038
21039 # type: =head2
21040 #: ../fish/guestfish-actions.pod:3768
21041 msgid "tail"
21042 msgstr ""
21043
21044 # type: verbatim
21045 #: ../fish/guestfish-actions.pod:3770
21046 #, no-wrap
21047 msgid ""
21048 " tail path\n"
21049 "\n"
21050 msgstr ""
21051
21052 # type: =head2
21053 #: ../fish/guestfish-actions.pod:3778
21054 msgid "tail-n"
21055 msgstr ""
21056
21057 # type: verbatim
21058 #: ../fish/guestfish-actions.pod:3780
21059 #, no-wrap
21060 msgid ""
21061 " tail-n nrlines path\n"
21062 "\n"
21063 msgstr ""
21064
21065 # type: =head2
21066 #: ../fish/guestfish-actions.pod:3793
21067 msgid "tar-in"
21068 msgstr ""
21069
21070 # type: verbatim
21071 #: ../fish/guestfish-actions.pod:3795
21072 #, no-wrap
21073 msgid ""
21074 " tar-in (tarfile|-) directory\n"
21075 "\n"
21076 msgstr ""
21077
21078 # type: textblock
21079 #: ../fish/guestfish-actions.pod:3800
21080 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
21081 msgstr ""
21082
21083 # type: =head2
21084 #: ../fish/guestfish-actions.pod:3805
21085 msgid "tar-out"
21086 msgstr ""
21087
21088 # type: verbatim
21089 #: ../fish/guestfish-actions.pod:3807
21090 #, no-wrap
21091 msgid ""
21092 " tar-out directory (tarfile|-)\n"
21093 "\n"
21094 msgstr ""
21095
21096 # type: textblock
21097 #: ../fish/guestfish-actions.pod:3812
21098 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
21099 msgstr ""
21100
21101 # type: =head2
21102 #: ../fish/guestfish-actions.pod:3817
21103 msgid "tgz-in"
21104 msgstr ""
21105
21106 # type: verbatim
21107 #: ../fish/guestfish-actions.pod:3819
21108 #, no-wrap
21109 msgid ""
21110 " tgz-in (tarball|-) directory\n"
21111 "\n"
21112 msgstr ""
21113
21114 # type: textblock
21115 #: ../fish/guestfish-actions.pod:3824
21116 msgid "To upload an uncompressed tarball, use L</tar-in>."
21117 msgstr ""
21118
21119 # type: =head2
21120 #: ../fish/guestfish-actions.pod:3828
21121 msgid "tgz-out"
21122 msgstr ""
21123
21124 # type: verbatim
21125 #: ../fish/guestfish-actions.pod:3830
21126 #, no-wrap
21127 msgid ""
21128 " tgz-out directory (tarball|-)\n"
21129 "\n"
21130 msgstr ""
21131
21132 # type: textblock
21133 #: ../fish/guestfish-actions.pod:3835
21134 msgid "To download an uncompressed tarball, use L</tar-out>."
21135 msgstr ""
21136
21137 # type: =head2
21138 #: ../fish/guestfish-actions.pod:3839
21139 msgid "touch"
21140 msgstr ""
21141
21142 # type: verbatim
21143 #: ../fish/guestfish-actions.pod:3841
21144 #, no-wrap
21145 msgid ""
21146 " touch path\n"
21147 "\n"
21148 msgstr ""
21149
21150 # type: =head2
21151 #: ../fish/guestfish-actions.pod:3850
21152 msgid "truncate"
21153 msgstr ""
21154
21155 # type: verbatim
21156 #: ../fish/guestfish-actions.pod:3852
21157 #, no-wrap
21158 msgid ""
21159 " truncate path\n"
21160 "\n"
21161 msgstr ""
21162
21163 # type: =head2
21164 #: ../fish/guestfish-actions.pod:3857
21165 msgid "truncate-size"
21166 msgstr ""
21167
21168 # type: verbatim
21169 #: ../fish/guestfish-actions.pod:3859
21170 #, no-wrap
21171 msgid ""
21172 " truncate-size path size\n"
21173 "\n"
21174 msgstr ""
21175
21176 # type: textblock
21177 #: ../fish/guestfish-actions.pod:3864
21178 msgid ""
21179 "If the current file size is less than C<size> then the file is extended to "
21180 "the required size with zero bytes.  This creates a sparse file (ie. disk "
21181 "blocks are not allocated for the file until you write to it).  To create a "
21182 "non-sparse file of zeroes, use L</fallocate64> instead."
21183 msgstr ""
21184
21185 # type: =head2
21186 #: ../fish/guestfish-actions.pod:3870
21187 msgid "tune2fs-l"
21188 msgstr ""
21189
21190 # type: verbatim
21191 #: ../fish/guestfish-actions.pod:3872
21192 #, no-wrap
21193 msgid ""
21194 " tune2fs-l device\n"
21195 "\n"
21196 msgstr ""
21197
21198 # type: =head2
21199 #: ../fish/guestfish-actions.pod:3882
21200 msgid "txz-in"
21201 msgstr ""
21202
21203 # type: verbatim
21204 #: ../fish/guestfish-actions.pod:3884
21205 #, no-wrap
21206 msgid ""
21207 " txz-in (tarball|-) directory\n"
21208 "\n"
21209 msgstr ""
21210
21211 # type: =head2
21212 #: ../fish/guestfish-actions.pod:3891
21213 msgid "txz-out"
21214 msgstr ""
21215
21216 # type: verbatim
21217 #: ../fish/guestfish-actions.pod:3893
21218 #, no-wrap
21219 msgid ""
21220 " txz-out directory (tarball|-)\n"
21221 "\n"
21222 msgstr ""
21223
21224 # type: =head2
21225 #: ../fish/guestfish-actions.pod:3900
21226 msgid "umask"
21227 msgstr ""
21228
21229 # type: verbatim
21230 #: ../fish/guestfish-actions.pod:3902
21231 #, no-wrap
21232 msgid ""
21233 " umask mask\n"
21234 "\n"
21235 msgstr ""
21236
21237 # type: textblock
21238 #: ../fish/guestfish-actions.pod:3916
21239 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
21240 msgstr ""
21241
21242 # type: =head2
21243 #: ../fish/guestfish-actions.pod:3921
21244 msgid "umount"
21245 msgstr ""
21246
21247 # type: =head2
21248 #: ../fish/guestfish-actions.pod:3923
21249 msgid "unmount"
21250 msgstr ""
21251
21252 # type: verbatim
21253 #: ../fish/guestfish-actions.pod:3925
21254 #, no-wrap
21255 msgid ""
21256 " umount pathordevice\n"
21257 "\n"
21258 msgstr ""
21259
21260 # type: =head2
21261 #: ../fish/guestfish-actions.pod:3931
21262 msgid "umount-all"
21263 msgstr ""
21264
21265 # type: =head2
21266 #: ../fish/guestfish-actions.pod:3933
21267 msgid "unmount-all"
21268 msgstr ""
21269
21270 # type: verbatim
21271 #: ../fish/guestfish-actions.pod:3935
21272 #, no-wrap
21273 msgid ""
21274 " umount-all\n"
21275 "\n"
21276 msgstr ""
21277
21278 # type: =head2
21279 #: ../fish/guestfish-actions.pod:3941
21280 msgid "upload"
21281 msgstr ""
21282
21283 # type: verbatim
21284 #: ../fish/guestfish-actions.pod:3943
21285 #, no-wrap
21286 msgid ""
21287 " upload (filename|-) remotefilename\n"
21288 "\n"
21289 msgstr ""
21290
21291 # type: textblock
21292 #: ../fish/guestfish-actions.pod:3950
21293 msgid "See also L</download>."
21294 msgstr ""
21295
21296 # type: =head2
21297 #: ../fish/guestfish-actions.pod:3954
21298 msgid "upload-offset"
21299 msgstr ""
21300
21301 # type: verbatim
21302 #: ../fish/guestfish-actions.pod:3956
21303 #, no-wrap
21304 msgid ""
21305 " upload-offset (filename|-) remotefilename offset\n"
21306 "\n"
21307 msgstr ""
21308
21309 # type: textblock
21310 #: ../fish/guestfish-actions.pod:3968
21311 msgid ""
21312 "Note that there is no limit on the amount of data that can be uploaded with "
21313 "this call, unlike with L</pwrite>, and this call always writes the full "
21314 "amount unless an error occurs."
21315 msgstr ""
21316
21317 # type: textblock
21318 #: ../fish/guestfish-actions.pod:3973
21319 msgid "See also L</upload>, L</pwrite>."
21320 msgstr ""
21321
21322 # type: =head2
21323 #: ../fish/guestfish-actions.pod:3977
21324 msgid "utimens"
21325 msgstr ""
21326
21327 # type: verbatim
21328 #: ../fish/guestfish-actions.pod:3979
21329 #, no-wrap
21330 msgid ""
21331 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
21332 "\n"
21333 msgstr ""
21334
21335 # type: =head2
21336 #: ../fish/guestfish-actions.pod:3998
21337 msgid "version"
21338 msgstr ""
21339
21340 # type: verbatim
21341 #: ../fish/guestfish-actions.pod:4000
21342 #, no-wrap
21343 msgid ""
21344 " version\n"
21345 "\n"
21346 msgstr ""
21347
21348 # type: textblock
21349 #: ../fish/guestfish-actions.pod:4027
21350 msgid ""
21351 "I<Note:> Don't use this call to test for availability of features.  In "
21352 "enterprise distributions we backport features from later versions into "
21353 "earlier versions, making this an unreliable way to test for features.  Use "
21354 "L</available> instead."
21355 msgstr ""
21356
21357 # type: =head2
21358 #: ../fish/guestfish-actions.pod:4033
21359 msgid "vfs-label"
21360 msgstr ""
21361
21362 # type: verbatim
21363 #: ../fish/guestfish-actions.pod:4035
21364 #, no-wrap
21365 msgid ""
21366 " vfs-label device\n"
21367 "\n"
21368 msgstr ""
21369
21370 # type: textblock
21371 #: ../fish/guestfish-actions.pod:4042
21372 msgid "To find a filesystem from the label, use L</findfs-label>."
21373 msgstr ""
21374
21375 # type: =head2
21376 #: ../fish/guestfish-actions.pod:4044
21377 msgid "vfs-type"
21378 msgstr ""
21379
21380 # type: verbatim
21381 #: ../fish/guestfish-actions.pod:4046
21382 #, no-wrap
21383 msgid ""
21384 " vfs-type device\n"
21385 "\n"
21386 msgstr ""
21387
21388 # type: =head2
21389 #: ../fish/guestfish-actions.pod:4056
21390 msgid "vfs-uuid"
21391 msgstr ""
21392
21393 # type: verbatim
21394 #: ../fish/guestfish-actions.pod:4058
21395 #, no-wrap
21396 msgid ""
21397 " vfs-uuid device\n"
21398 "\n"
21399 msgstr ""
21400
21401 # type: textblock
21402 #: ../fish/guestfish-actions.pod:4065
21403 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
21404 msgstr ""
21405
21406 # type: =head2
21407 #: ../fish/guestfish-actions.pod:4067
21408 msgid "vg-activate"
21409 msgstr ""
21410
21411 # type: verbatim
21412 #: ../fish/guestfish-actions.pod:4069
21413 #, no-wrap
21414 msgid ""
21415 " vg-activate true|false 'volgroups ...'\n"
21416 "\n"
21417 msgstr ""
21418
21419 # type: =head2
21420 #: ../fish/guestfish-actions.pod:4082
21421 msgid "vg-activate-all"
21422 msgstr ""
21423
21424 # type: verbatim
21425 #: ../fish/guestfish-actions.pod:4084
21426 #, no-wrap
21427 msgid ""
21428 " vg-activate-all true|false\n"
21429 "\n"
21430 msgstr ""
21431
21432 # type: =head2
21433 #: ../fish/guestfish-actions.pod:4094
21434 msgid "vgcreate"
21435 msgstr ""
21436
21437 # type: verbatim
21438 #: ../fish/guestfish-actions.pod:4096
21439 #, no-wrap
21440 msgid ""
21441 " vgcreate volgroup 'physvols ...'\n"
21442 "\n"
21443 msgstr ""
21444
21445 # type: =head2
21446 #: ../fish/guestfish-actions.pod:4101
21447 msgid "vglvuuids"
21448 msgstr ""
21449
21450 # type: verbatim
21451 #: ../fish/guestfish-actions.pod:4103
21452 #, no-wrap
21453 msgid ""
21454 " vglvuuids vgname\n"
21455 "\n"
21456 msgstr ""
21457
21458 # type: textblock
21459 #: ../fish/guestfish-actions.pod:4108
21460 msgid ""
21461 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
21462 "logical volumes and volume groups."
21463 msgstr ""
21464
21465 # type: textblock
21466 #: ../fish/guestfish-actions.pod:4111
21467 msgid "See also L</vgpvuuids>."
21468 msgstr ""
21469
21470 # type: =head2
21471 #: ../fish/guestfish-actions.pod:4113
21472 msgid "vgpvuuids"
21473 msgstr ""
21474
21475 # type: verbatim
21476 #: ../fish/guestfish-actions.pod:4115
21477 #, no-wrap
21478 msgid ""
21479 " vgpvuuids vgname\n"
21480 "\n"
21481 msgstr ""
21482
21483 # type: textblock
21484 #: ../fish/guestfish-actions.pod:4120
21485 msgid ""
21486 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
21487 "physical volumes and volume groups."
21488 msgstr ""
21489
21490 # type: textblock
21491 #: ../fish/guestfish-actions.pod:4123
21492 msgid "See also L</vglvuuids>."
21493 msgstr ""
21494
21495 # type: =head2
21496 #: ../fish/guestfish-actions.pod:4125
21497 msgid "vgremove"
21498 msgstr ""
21499
21500 # type: verbatim
21501 #: ../fish/guestfish-actions.pod:4127
21502 #, no-wrap
21503 msgid ""
21504 " vgremove vgname\n"
21505 "\n"
21506 msgstr ""
21507
21508 # type: =head2
21509 #: ../fish/guestfish-actions.pod:4134
21510 msgid "vgrename"
21511 msgstr ""
21512
21513 # type: verbatim
21514 #: ../fish/guestfish-actions.pod:4136
21515 #, no-wrap
21516 msgid ""
21517 " vgrename volgroup newvolgroup\n"
21518 "\n"
21519 msgstr ""
21520
21521 # type: =head2
21522 #: ../fish/guestfish-actions.pod:4140
21523 msgid "vgs"
21524 msgstr ""
21525
21526 # type: verbatim
21527 #: ../fish/guestfish-actions.pod:4142
21528 #, no-wrap
21529 msgid ""
21530 " vgs\n"
21531 "\n"
21532 msgstr ""
21533
21534 # type: textblock
21535 #: ../fish/guestfish-actions.pod:4150
21536 msgid "See also L</vgs-full>."
21537 msgstr ""
21538
21539 # type: =head2
21540 #: ../fish/guestfish-actions.pod:4152
21541 msgid "vgs-full"
21542 msgstr ""
21543
21544 # type: verbatim
21545 #: ../fish/guestfish-actions.pod:4154
21546 #, no-wrap
21547 msgid ""
21548 " vgs-full\n"
21549 "\n"
21550 msgstr ""
21551
21552 # type: =head2
21553 #: ../fish/guestfish-actions.pod:4159
21554 msgid "vgscan"
21555 msgstr ""
21556
21557 # type: verbatim
21558 #: ../fish/guestfish-actions.pod:4161
21559 #, no-wrap
21560 msgid ""
21561 " vgscan\n"
21562 "\n"
21563 msgstr ""
21564
21565 # type: =head2
21566 #: ../fish/guestfish-actions.pod:4166
21567 msgid "vguuid"
21568 msgstr ""
21569
21570 # type: verbatim
21571 #: ../fish/guestfish-actions.pod:4168
21572 #, no-wrap
21573 msgid ""
21574 " vguuid vgname\n"
21575 "\n"
21576 msgstr ""
21577
21578 # type: =head2
21579 #: ../fish/guestfish-actions.pod:4172
21580 msgid "wc-c"
21581 msgstr ""
21582
21583 # type: verbatim
21584 #: ../fish/guestfish-actions.pod:4174
21585 #, no-wrap
21586 msgid ""
21587 " wc-c path\n"
21588 "\n"
21589 msgstr ""
21590
21591 # type: =head2
21592 #: ../fish/guestfish-actions.pod:4179
21593 msgid "wc-l"
21594 msgstr ""
21595
21596 # type: verbatim
21597 #: ../fish/guestfish-actions.pod:4181
21598 #, no-wrap
21599 msgid ""
21600 " wc-l path\n"
21601 "\n"
21602 msgstr ""
21603
21604 # type: =head2
21605 #: ../fish/guestfish-actions.pod:4186
21606 msgid "wc-w"
21607 msgstr ""
21608
21609 # type: verbatim
21610 #: ../fish/guestfish-actions.pod:4188
21611 #, no-wrap
21612 msgid ""
21613 " wc-w path\n"
21614 "\n"
21615 msgstr ""
21616
21617 # type: =head2
21618 #: ../fish/guestfish-actions.pod:4193
21619 msgid "write"
21620 msgstr ""
21621
21622 # type: verbatim
21623 #: ../fish/guestfish-actions.pod:4195
21624 #, no-wrap
21625 msgid ""
21626 " write path content\n"
21627 "\n"
21628 msgstr ""
21629
21630 # type: =head2
21631 #: ../fish/guestfish-actions.pod:4203
21632 msgid "write-file"
21633 msgstr ""
21634
21635 # type: verbatim
21636 #: ../fish/guestfish-actions.pod:4205
21637 #, no-wrap
21638 msgid ""
21639 " write-file path content size\n"
21640 "\n"
21641 msgstr ""
21642
21643 # type: =head2
21644 #: ../fish/guestfish-actions.pod:4228
21645 msgid "zegrep"
21646 msgstr ""
21647
21648 # type: verbatim
21649 #: ../fish/guestfish-actions.pod:4230
21650 #, no-wrap
21651 msgid ""
21652 " zegrep regex path\n"
21653 "\n"
21654 msgstr ""
21655
21656 # type: =head2
21657 #: ../fish/guestfish-actions.pod:4238
21658 msgid "zegrepi"
21659 msgstr ""
21660
21661 # type: verbatim
21662 #: ../fish/guestfish-actions.pod:4240
21663 #, no-wrap
21664 msgid ""
21665 " zegrepi regex path\n"
21666 "\n"
21667 msgstr ""
21668
21669 # type: =head2
21670 #: ../fish/guestfish-actions.pod:4248
21671 msgid "zero"
21672 msgstr ""
21673
21674 # type: verbatim
21675 #: ../fish/guestfish-actions.pod:4250
21676 #, no-wrap
21677 msgid ""
21678 " zero device\n"
21679 "\n"
21680 msgstr ""
21681
21682 # type: textblock
21683 #: ../fish/guestfish-actions.pod:4258
21684 msgid "See also: L</zero-device>, L</scrub-device>."
21685 msgstr ""
21686
21687 # type: =head2
21688 #: ../fish/guestfish-actions.pod:4260
21689 msgid "zero-device"
21690 msgstr ""
21691
21692 # type: verbatim
21693 #: ../fish/guestfish-actions.pod:4262
21694 #, no-wrap
21695 msgid ""
21696 " zero-device device\n"
21697 "\n"
21698 msgstr ""
21699
21700 # type: textblock
21701 #: ../fish/guestfish-actions.pod:4264
21702 msgid ""
21703 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
21704 "which just zeroes the first few blocks of a device."
21705 msgstr ""
21706
21707 # type: =head2
21708 #: ../fish/guestfish-actions.pod:4271
21709 msgid "zerofree"
21710 msgstr ""
21711
21712 # type: verbatim
21713 #: ../fish/guestfish-actions.pod:4273
21714 #, no-wrap
21715 msgid ""
21716 " zerofree device\n"
21717 "\n"
21718 msgstr ""
21719
21720 # type: =head2
21721 #: ../fish/guestfish-actions.pod:4286
21722 msgid "zfgrep"
21723 msgstr ""
21724
21725 # type: verbatim
21726 #: ../fish/guestfish-actions.pod:4288
21727 #, no-wrap
21728 msgid ""
21729 " zfgrep pattern path\n"
21730 "\n"
21731 msgstr ""
21732
21733 # type: =head2
21734 #: ../fish/guestfish-actions.pod:4296
21735 msgid "zfgrepi"
21736 msgstr ""
21737
21738 # type: verbatim
21739 #: ../fish/guestfish-actions.pod:4298
21740 #, no-wrap
21741 msgid ""
21742 " zfgrepi pattern path\n"
21743 "\n"
21744 msgstr ""
21745
21746 # type: =head2
21747 #: ../fish/guestfish-actions.pod:4306
21748 msgid "zfile"
21749 msgstr ""
21750
21751 # type: verbatim
21752 #: ../fish/guestfish-actions.pod:4308
21753 #, no-wrap
21754 msgid ""
21755 " zfile meth path\n"
21756 "\n"
21757 msgstr ""
21758
21759 # type: textblock
21760 #: ../fish/guestfish-actions.pod:4315
21761 msgid "Since 1.0.63, use L</file> instead which can now process compressed files."
21762 msgstr ""
21763
21764 # type: =head2
21765 #: ../fish/guestfish-actions.pod:4325
21766 msgid "zgrep"
21767 msgstr ""
21768
21769 # type: verbatim
21770 #: ../fish/guestfish-actions.pod:4327
21771 #, no-wrap
21772 msgid ""
21773 " zgrep regex path\n"
21774 "\n"
21775 msgstr ""
21776
21777 # type: =head2
21778 #: ../fish/guestfish-actions.pod:4335
21779 msgid "zgrepi"
21780 msgstr ""
21781
21782 # type: verbatim
21783 #: ../fish/guestfish-actions.pod:4337
21784 #, no-wrap
21785 msgid ""
21786 " zgrepi regex path\n"
21787 "\n"
21788 msgstr ""
21789
21790 # type: =head2
21791 #: ../fish/guestfish-commands.pod:1
21792 msgid "alloc"
21793 msgstr ""
21794
21795 # type: =head2
21796 #: ../fish/guestfish-commands.pod:3
21797 msgid "allocate"
21798 msgstr ""
21799
21800 # type: verbatim
21801 #: ../fish/guestfish-commands.pod:5
21802 #, no-wrap
21803 msgid ""
21804 " alloc filename size\n"
21805 "\n"
21806 msgstr ""
21807
21808 # type: textblock
21809 #: ../fish/guestfish-commands.pod:7
21810 msgid ""
21811 "This creates an empty (zeroed) file of the given size, and then adds so it "
21812 "can be further examined."
21813 msgstr ""
21814
21815 # type: textblock
21816 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:168
21817 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
21818 msgstr ""
21819
21820 # type: textblock
21821 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:170
21822 msgid "Size can be specified using standard suffixes, eg. C<1M>."
21823 msgstr ""
21824
21825 # type: textblock
21826 #: ../fish/guestfish-commands.pod:14
21827 msgid ""
21828 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
21829 "image, see L</PREPARED DISK IMAGES>."
21830 msgstr ""
21831
21832 # type: =head2
21833 #: ../fish/guestfish-commands.pod:17
21834 msgid "copy-in"
21835 msgstr ""
21836
21837 # type: verbatim
21838 #: ../fish/guestfish-commands.pod:19
21839 #, no-wrap
21840 msgid ""
21841 " copy-in local [local ...] /remotedir\n"
21842 "\n"
21843 msgstr ""
21844
21845 # type: textblock
21846 #: ../fish/guestfish-commands.pod:21
21847 msgid ""
21848 "C<copy-in> copies local files or directories recursively into the disk "
21849 "image, placing them in the directory called C</remotedir> (which must "
21850 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
21851 "other commands as necessary."
21852 msgstr ""
21853
21854 # type: textblock
21855 #: ../fish/guestfish-commands.pod:26
21856 msgid ""
21857 "Multiple local files and directories can be specified, but the last "
21858 "parameter must always be a remote directory.  Wildcards cannot be used."
21859 msgstr ""
21860
21861 # type: =head2
21862 #: ../fish/guestfish-commands.pod:30
21863 msgid "copy-out"
21864 msgstr ""
21865
21866 # type: verbatim
21867 #: ../fish/guestfish-commands.pod:32
21868 #, no-wrap
21869 msgid ""
21870 " copy-out remote [remote ...] localdir\n"
21871 "\n"
21872 msgstr ""
21873
21874 # type: textblock
21875 #: ../fish/guestfish-commands.pod:34
21876 msgid ""
21877 "C<copy-out> copies remote files or directories recursively out of the disk "
21878 "image, placing them on the host disk in a local directory called C<localdir> "
21879 "(which must exist).  This guestfish meta-command turns into a sequence of "
21880 "L</download>, L</tar-out> and other commands as necessary."
21881 msgstr ""
21882
21883 # type: textblock
21884 #: ../fish/guestfish-commands.pod:40
21885 msgid ""
21886 "Multiple remote files and directories can be specified, but the last "
21887 "parameter must always be a local directory.  To download to the current "
21888 "directory, use C<.> as in:"
21889 msgstr ""
21890
21891 # type: verbatim
21892 #: ../fish/guestfish-commands.pod:44
21893 #, no-wrap
21894 msgid ""
21895 " copy-out /home .\n"
21896 "\n"
21897 msgstr ""
21898
21899 # type: textblock
21900 #: ../fish/guestfish-commands.pod:46
21901 msgid ""
21902 "Wildcards cannot be used in the ordinary command, but you can use them with "
21903 "the help of L</glob> like this:"
21904 msgstr ""
21905
21906 # type: verbatim
21907 #: ../fish/guestfish-commands.pod:49
21908 #, no-wrap
21909 msgid ""
21910 " glob copy-out /home/* .\n"
21911 "\n"
21912 msgstr ""
21913
21914 # type: =head2
21915 #: ../fish/guestfish-commands.pod:51
21916 msgid "echo"
21917 msgstr ""
21918
21919 # type: verbatim
21920 #: ../fish/guestfish-commands.pod:53
21921 #, no-wrap
21922 msgid ""
21923 " echo [params ...]\n"
21924 "\n"
21925 msgstr ""
21926
21927 # type: textblock
21928 #: ../fish/guestfish-commands.pod:55
21929 msgid "This echos the parameters to the terminal."
21930 msgstr ""
21931
21932 # type: =head2
21933 #: ../fish/guestfish-commands.pod:57
21934 msgid "edit"
21935 msgstr ""
21936
21937 # type: =head2
21938 #: ../fish/guestfish-commands.pod:59
21939 msgid "vi"
21940 msgstr ""
21941
21942 # type: =head2
21943 #: ../fish/guestfish-commands.pod:61
21944 msgid "emacs"
21945 msgstr ""
21946
21947 # type: verbatim
21948 #: ../fish/guestfish-commands.pod:63
21949 #, no-wrap
21950 msgid ""
21951 " edit filename\n"
21952 "\n"
21953 msgstr ""
21954
21955 # type: textblock
21956 #: ../fish/guestfish-commands.pod:65
21957 msgid ""
21958 "This is used to edit a file.  It downloads the file, edits it locally using "
21959 "your editor, then uploads the result."
21960 msgstr ""
21961
21962 # type: textblock
21963 #: ../fish/guestfish-commands.pod:68
21964 msgid ""
21965 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
21966 "or C<emacs> you will get those corresponding editors."
21967 msgstr ""
21968
21969 # type: =head2
21970 #: ../fish/guestfish-commands.pod:72
21971 msgid "glob"
21972 msgstr ""
21973
21974 # type: verbatim
21975 #: ../fish/guestfish-commands.pod:74
21976 #, no-wrap
21977 msgid ""
21978 " glob command args...\n"
21979 "\n"
21980 msgstr ""
21981
21982 # type: textblock
21983 #: ../fish/guestfish-commands.pod:76
21984 msgid ""
21985 "Expand wildcards in any paths in the args list, and run C<command> "
21986 "repeatedly on each matching path."
21987 msgstr ""
21988
21989 # type: textblock
21990 #: ../fish/guestfish-commands.pod:79
21991 msgid "See L</WILDCARDS AND GLOBBING>."
21992 msgstr ""
21993
21994 # type: =head2
21995 #: ../fish/guestfish-commands.pod:81
21996 msgid "hexedit"
21997 msgstr ""
21998
21999 # type: verbatim
22000 #: ../fish/guestfish-commands.pod:83
22001 #, no-wrap
22002 msgid ""
22003 " hexedit <filename|device>\n"
22004 " hexedit <filename|device> <max>\n"
22005 " hexedit <filename|device> <start> <max>\n"
22006 "\n"
22007 msgstr ""
22008
22009 # type: textblock
22010 #: ../fish/guestfish-commands.pod:87
22011 msgid ""
22012 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
22013 "device."
22014 msgstr ""
22015
22016 # type: textblock
22017 #: ../fish/guestfish-commands.pod:90
22018 msgid ""
22019 "This command works by downloading potentially the whole file or device, "
22020 "editing it locally, then uploading it.  If the file or device is large, you "
22021 "have to specify which part you wish to edit by using C<max> and/or C<start> "
22022 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
22023 "usual modifiers allowed such as C<1M> (1 megabyte)."
22024 msgstr ""
22025
22026 # type: textblock
22027 #: ../fish/guestfish-commands.pod:97
22028 msgid "For example to edit the first few sectors of a disk you might do:"
22029 msgstr ""
22030
22031 # type: verbatim
22032 #: ../fish/guestfish-commands.pod:100
22033 #, no-wrap
22034 msgid ""
22035 " hexedit /dev/sda 1M\n"
22036 "\n"
22037 msgstr ""
22038
22039 # type: textblock
22040 #: ../fish/guestfish-commands.pod:102
22041 msgid ""
22042 "which would allow you to edit anywhere within the first megabyte of the "
22043 "disk."
22044 msgstr ""
22045
22046 # type: textblock
22047 #: ../fish/guestfish-commands.pod:105
22048 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
22049 msgstr ""
22050
22051 # type: verbatim
22052 #: ../fish/guestfish-commands.pod:107
22053 #, no-wrap
22054 msgid ""
22055 " hexedit /dev/sda1 0x400 0x400\n"
22056 "\n"
22057 msgstr ""
22058
22059 # type: textblock
22060 #: ../fish/guestfish-commands.pod:109
22061 msgid "(assuming the superblock is in the standard location)."
22062 msgstr ""
22063
22064 # type: textblock
22065 #: ../fish/guestfish-commands.pod:111
22066 msgid ""
22067 "This command requires the external L<hexedit(1)> program.  You can specify "
22068 "another program to use by setting the C<HEXEDITOR> environment variable."
22069 msgstr ""
22070
22071 # type: textblock
22072 #: ../fish/guestfish-commands.pod:115
22073 msgid "See also L</hexdump>."
22074 msgstr ""
22075
22076 # type: =head2
22077 #: ../fish/guestfish-commands.pod:117
22078 msgid "lcd"
22079 msgstr ""
22080
22081 # type: verbatim
22082 #: ../fish/guestfish-commands.pod:119
22083 #, no-wrap
22084 msgid ""
22085 " lcd directory\n"
22086 "\n"
22087 msgstr ""
22088
22089 # type: textblock
22090 #: ../fish/guestfish-commands.pod:121
22091 msgid "Change the local directory, ie. the current directory of guestfish itself."
22092 msgstr ""
22093
22094 # type: textblock
22095 #: ../fish/guestfish-commands.pod:124
22096 msgid "Note that C<!cd> won't do what you might expect."
22097 msgstr ""
22098
22099 # type: =head2
22100 #: ../fish/guestfish-commands.pod:126
22101 msgid "man"
22102 msgstr ""
22103
22104 # type: =head2
22105 #: ../fish/guestfish-commands.pod:128
22106 msgid "manual"
22107 msgstr ""
22108
22109 # type: verbatim
22110 #: ../fish/guestfish-commands.pod:130
22111 #, no-wrap
22112 msgid ""
22113 "  man\n"
22114 "\n"
22115 msgstr ""
22116
22117 # type: textblock
22118 #: ../fish/guestfish-commands.pod:132
22119 msgid "Opens the manual page for guestfish."
22120 msgstr ""
22121
22122 # type: =head2
22123 #: ../fish/guestfish-commands.pod:134
22124 msgid "more"
22125 msgstr ""
22126
22127 # type: =head2
22128 #: ../fish/guestfish-commands.pod:136
22129 msgid "less"
22130 msgstr ""
22131
22132 # type: verbatim
22133 #: ../fish/guestfish-commands.pod:138
22134 #, no-wrap
22135 msgid ""
22136 " more filename\n"
22137 "\n"
22138 msgstr ""
22139
22140 # type: verbatim
22141 #: ../fish/guestfish-commands.pod:140
22142 #, no-wrap
22143 msgid ""
22144 " less filename\n"
22145 "\n"
22146 msgstr ""
22147
22148 # type: textblock
22149 #: ../fish/guestfish-commands.pod:142
22150 msgid "This is used to view a file."
22151 msgstr ""
22152
22153 # type: textblock
22154 #: ../fish/guestfish-commands.pod:144
22155 msgid ""
22156 "The default viewer is C<$PAGER>.  However if you use the alternate command "
22157 "C<less> you will get the C<less> command specifically."
22158 msgstr ""
22159
22160 # type: =head2
22161 #: ../fish/guestfish-commands.pod:147
22162 msgid "reopen"
22163 msgstr ""
22164
22165 # type: verbatim
22166 #: ../fish/guestfish-commands.pod:149
22167 #, no-wrap
22168 msgid ""
22169 "  reopen\n"
22170 "\n"
22171 msgstr ""
22172
22173 # type: textblock
22174 #: ../fish/guestfish-commands.pod:151
22175 msgid ""
22176 "Close and reopen the libguestfs handle.  It is not necessary to use this "
22177 "normally, because the handle is closed properly when guestfish exits.  "
22178 "However this is occasionally useful for testing."
22179 msgstr ""
22180
22181 # type: =head2
22182 #: ../fish/guestfish-commands.pod:155
22183 msgid "sparse"
22184 msgstr ""
22185
22186 # type: verbatim
22187 #: ../fish/guestfish-commands.pod:157
22188 #, no-wrap
22189 msgid ""
22190 " sparse filename size\n"
22191 "\n"
22192 msgstr ""
22193
22194 # type: textblock
22195 #: ../fish/guestfish-commands.pod:159
22196 msgid ""
22197 "This creates an empty sparse file of the given size, and then adds so it can "
22198 "be further examined."
22199 msgstr ""
22200
22201 # type: textblock
22202 #: ../fish/guestfish-commands.pod:162
22203 msgid ""
22204 "In all respects it works the same as the L</alloc> command, except that the "
22205 "image file is allocated sparsely, which means that disk blocks are not "
22206 "assigned to the file until they are needed.  Sparse disk files only use "
22207 "space when written to, but they are slower and there is a danger you could "
22208 "run out of real disk space during a write operation."
22209 msgstr ""
22210
22211 # type: =head2
22212 #: ../fish/guestfish-commands.pod:172
22213 msgid "supported"
22214 msgstr ""
22215
22216 # type: verbatim
22217 #: ../fish/guestfish-commands.pod:174
22218 #, no-wrap
22219 msgid ""
22220 " supported\n"
22221 "\n"
22222 msgstr ""
22223
22224 # type: textblock
22225 #: ../fish/guestfish-commands.pod:176
22226 msgid ""
22227 "This command returns a list of the optional groups known to the daemon, and "
22228 "indicates which ones are supported by this build of the libguestfs "
22229 "appliance."
22230 msgstr ""
22231
22232 # type: textblock
22233 #: ../fish/guestfish-commands.pod:180
22234 msgid "See also L<guestfs(3)/AVAILABILITY>."
22235 msgstr ""
22236
22237 # type: =head2
22238 #: ../fish/guestfish-commands.pod:182
22239 msgid "time"
22240 msgstr ""
22241
22242 # type: verbatim
22243 #: ../fish/guestfish-commands.pod:184
22244 #, no-wrap
22245 msgid ""
22246 " time command args...\n"
22247 "\n"
22248 msgstr ""
22249
22250 # type: textblock
22251 #: ../fish/guestfish-commands.pod:186
22252 msgid ""
22253 "Run the command as usual, but print the elapsed time afterwards.  This can "
22254 "be useful for benchmarking operations."
22255 msgstr ""
22256
22257 # type: textblock
22258 #: ../test-tool/libguestfs-test-tool.pod:5
22259 msgid "libguestfs-test-tool - End user tests for libguestfs"
22260 msgstr ""
22261
22262 # type: verbatim
22263 #: ../test-tool/libguestfs-test-tool.pod:9
22264 #, no-wrap
22265 msgid ""
22266 " libguestfs-test-tool [--options]\n"
22267 "\n"
22268 msgstr ""
22269
22270 # type: textblock
22271 #: ../test-tool/libguestfs-test-tool.pod:13
22272 msgid ""
22273 "libguestfs-test-tool is a test program shipped with libguestfs to end users "
22274 "and developers, to allow them to check basic libguestfs functionality is "
22275 "working.  This is needed because libguestfs occasionally breaks for reasons "
22276 "beyond our control: usually because of changes in the underlying qemu or "
22277 "kernel packages, or the host environment."
22278 msgstr ""
22279
22280 # type: textblock
22281 #: ../test-tool/libguestfs-test-tool.pod:20
22282 msgid "If you suspect a problem in libguestfs, then just run:"
22283 msgstr ""
22284
22285 # type: verbatim
22286 #: ../test-tool/libguestfs-test-tool.pod:22
22287 #, no-wrap
22288 msgid ""
22289 " libguestfs-test-tool\n"
22290 "\n"
22291 msgstr ""
22292
22293 # type: textblock
22294 #: ../test-tool/libguestfs-test-tool.pod:24
22295 msgid "It will print lots of diagnostic messages."
22296 msgstr ""
22297
22298 # type: textblock
22299 #: ../test-tool/libguestfs-test-tool.pod:26
22300 msgid "If it runs to completion successfully, you will see this near the end:"
22301 msgstr ""
22302
22303 # type: verbatim
22304 #: ../test-tool/libguestfs-test-tool.pod:28
22305 #, no-wrap
22306 msgid ""
22307 " ===== TEST FINISHED OK =====\n"
22308 "\n"
22309 msgstr ""
22310
22311 # type: textblock
22312 #: ../test-tool/libguestfs-test-tool.pod:30
22313 msgid "and the test tool will exit with code 0."
22314 msgstr ""
22315
22316 # type: textblock
22317 #: ../test-tool/libguestfs-test-tool.pod:32
22318 msgid ""
22319 "If it fails (and/or exits with non-zero error code), please paste the "
22320 "B<complete, unedited> output of the test tool into a bug report.  More "
22321 "information about reporting bugs can be found on the "
22322 "L<http://libguestfs.org/> website."
22323 msgstr ""
22324
22325 # type: =item
22326 #: ../test-tool/libguestfs-test-tool.pod:41
22327 msgid "I<--help>"
22328 msgstr ""
22329
22330 # type: textblock
22331 #: ../test-tool/libguestfs-test-tool.pod:43
22332 msgid "Display short usage information and exit."
22333 msgstr ""
22334
22335 # type: =item
22336 #: ../test-tool/libguestfs-test-tool.pod:45
22337 msgid "I<--helper /path/to/libguestfs-test-tool-helper>"
22338 msgstr ""
22339
22340 # type: textblock
22341 #: ../test-tool/libguestfs-test-tool.pod:47
22342 msgid ""
22343 "Pass an alternate name for the helper program.  libguestfs-test-tool will "
22344 "normally look in the C<$libexec> directory that was configured when the tool "
22345 "was built."
22346 msgstr ""
22347
22348 # type: =item
22349 #: ../test-tool/libguestfs-test-tool.pod:51
22350 msgid "I<--qemu qemu_binary>"
22351 msgstr ""
22352
22353 # type: textblock
22354 #: ../test-tool/libguestfs-test-tool.pod:53
22355 msgid ""
22356 "If you have downloaded another qemu binary, point this option at the full "
22357 "path of the binary to try it."
22358 msgstr ""
22359
22360 # type: =item
22361 #: ../test-tool/libguestfs-test-tool.pod:56
22362 msgid "I<--qemudir qemu_source_dir>"
22363 msgstr ""
22364
22365 # type: textblock
22366 #: ../test-tool/libguestfs-test-tool.pod:58
22367 msgid ""
22368 "If you have compiled qemu from source, point this option at the source "
22369 "directory to try it."
22370 msgstr ""
22371
22372 # type: =item
22373 #: ../test-tool/libguestfs-test-tool.pod:61
22374 msgid "I<--timeout N>"
22375 msgstr ""
22376
22377 # type: textblock
22378 #: ../test-tool/libguestfs-test-tool.pod:63
22379 msgid ""
22380 "Set the launch timeout to C<N> seconds.  The default is 120 seconds which "
22381 "does not usually need to be adjusted unless your machine is very slow."
22382 msgstr ""
22383
22384 # type: =head1
22385 #: ../test-tool/libguestfs-test-tool.pod:69
22386 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
22387 msgstr ""
22388
22389 # type: textblock
22390 #: ../test-tool/libguestfs-test-tool.pod:71
22391 msgid ""
22392 "If you have compiled another version of qemu from source and would like to "
22393 "try that, then you can use the I<--qemudir> option to point to the qemu "
22394 "source directory."
22395 msgstr ""
22396
22397 # type: textblock
22398 #: ../test-tool/libguestfs-test-tool.pod:75
22399 msgid ""
22400 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
22401 "option to point to the binary."
22402 msgstr ""
22403
22404 # type: textblock
22405 #: ../test-tool/libguestfs-test-tool.pod:78
22406 msgid ""
22407 "When using an alternate qemu with libguestfs, usually you would need to "
22408 "write a qemu wrapper script (see section I<QEMU WRAPPERS> in "
22409 "L<guestfs(3)>).  libguestfs-test-tool writes a temporary qemu wrapper script "
22410 "when you use either of the I<--qemudir> or I<--qemu> options."
22411 msgstr ""
22412
22413 # type: textblock
22414 #: ../test-tool/libguestfs-test-tool.pod:85
22415 msgid ""
22416 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
22417 "I<1> if there was an error."
22418 msgstr ""
22419
22420 # type: =item
22421 #: ../test-tool/libguestfs-test-tool.pod:92
22422 msgid "/usr/libexec/libguestfs-test-tool-helper"
22423 msgstr ""
22424
22425 # type: textblock
22426 #: ../test-tool/libguestfs-test-tool.pod:94
22427 msgid ""
22428 "This helper program is run inside the appliance and provides additional "
22429 "tests."
22430 msgstr ""
22431
22432 # type: =item
22433 #: ../test-tool/libguestfs-test-tool.pod:97
22434 msgid "/usr/bin/mkisofs"
22435 msgstr ""
22436
22437 # type: textblock
22438 #: ../test-tool/libguestfs-test-tool.pod:99
22439 msgid ""
22440 "The C<mkisofs> command is required in order to construct a CD-ROM ISO file "
22441 "which is used as part of the tests."
22442 msgstr ""
22443
22444 # type: textblock
22445 #: ../test-tool/libguestfs-test-tool.pod:106
22446 msgid ""
22447 "For the full list of environment variables which may affect libguestfs, "
22448 "please see the L<guestfs(3)> manual page."
22449 msgstr ""
22450
22451 # type: textblock
22452 #: ../test-tool/libguestfs-test-tool.pod:111
22453 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
22454 msgstr ""
22455
22456 # type: textblock
22457 #: ../test-tool/libguestfs-test-tool.pod:121 ../fuse/guestmount.pod:195
22458 msgid "Copyright (C) 2009 Red Hat Inc.  L<http://libguestfs.org/>"
22459 msgstr ""
22460
22461 # type: textblock
22462 #: ../fuse/guestmount.pod:5
22463 msgid "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
22464 msgstr ""
22465
22466 # type: verbatim
22467 #: ../fuse/guestmount.pod:9
22468 #, no-wrap
22469 msgid ""
22470 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
22471 "\n"
22472 msgstr ""
22473
22474 # type: textblock
22475 #: ../fuse/guestmount.pod:13
22476 msgid ""
22477 "You must I<not> use C<guestmount> in read-write mode on live virtual "
22478 "machines.  If you do this, you risk disk corruption in the VM."
22479 msgstr ""
22480
22481 # type: textblock
22482 #: ../fuse/guestmount.pod:18
22483 msgid ""
22484 "The guestmount program can be used to mount virtual machine filesystems and "
22485 "other disk images on the host.  It uses libguestfs for access to the guest "
22486 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
22487 "a mountable device."
22488 msgstr ""
22489
22490 # type: textblock
22491 #: ../fuse/guestmount.pod:23
22492 msgid ""
22493 "Along with other options, you have to give at least one device (I<-a> "
22494 "option) and at least one mountpoint (I<-m> option).  How this works is "
22495 "better explained in the L<guestfish(1)> manual page, or you can use "
22496 "L<virt-inspector(1)> and/or the wrapper script C<guestmount-wrapper> to help "
22497 "you."
22498 msgstr ""
22499
22500 # type: textblock
22501 #: ../fuse/guestmount.pod:29
22502 msgid ""
22503 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
22504 "by you, and the filesystem will not be visible to any other users unless you "
22505 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
22506 "the filesystem, use the C<fusermount -u> command."
22507 msgstr ""
22508
22509 # type: textblock
22510 #: ../fuse/guestmount.pod:37
22511 msgid ""
22512 "For a typical Windows guest which has its main filesystem on the first "
22513 "partition:"
22514 msgstr ""
22515
22516 # type: verbatim
22517 #: ../fuse/guestmount.pod:40
22518 #, no-wrap
22519 msgid ""
22520 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
22521 "\n"
22522 msgstr ""
22523
22524 # type: textblock
22525 #: ../fuse/guestmount.pod:42
22526 msgid ""
22527 "For a typical Linux guest which has a /boot filesystem on the first "
22528 "partition, and the root filesystem on a logical volume:"
22529 msgstr ""
22530
22531 # type: verbatim
22532 #: ../fuse/guestmount.pod:45
22533 #, no-wrap
22534 msgid ""
22535 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
22536 "\n"
22537 msgstr ""
22538
22539 # type: textblock
22540 #: ../fuse/guestmount.pod:47
22541 msgid ""
22542 "To get L<virt-inspector(1)> to do the hard work of detecting guest "
22543 "mountpoints for you:"
22544 msgstr ""
22545
22546 # type: verbatim
22547 #: ../fuse/guestmount.pod:50
22548 #, no-wrap
22549 msgid ""
22550 " guestmount $(virt-inspector --ro-fish MyGuest) /mnt\n"
22551 "\n"
22552 msgstr ""
22553
22554 # type: textblock
22555 #: ../fuse/guestmount.pod:52
22556 msgid ""
22557 "(or use --fish if you don't want it to be a read only mount).  The option is "
22558 "called I<--ro-fish> or I<--fish> because these parameters are compatible "
22559 "with L<guestfish(1)>."
22560 msgstr ""
22561
22562 # type: textblock
22563 #: ../fuse/guestmount.pod:56
22564 msgid ""
22565 "If you don't know what filesystems are contained in a guest or disk image, "
22566 "use L<virt-list-filesystems(1)> first:"
22567 msgstr ""
22568
22569 # type: verbatim
22570 #: ../fuse/guestmount.pod:59
22571 #, no-wrap
22572 msgid ""
22573 " virt-list-filesystems MyGuest\n"
22574 "\n"
22575 msgstr ""
22576
22577 # type: textblock
22578 #: ../fuse/guestmount.pod:61
22579 msgid ""
22580 "If you want to trace the libguestfs calls but without excessive debugging, "
22581 "we recommend:"
22582 msgstr ""
22583
22584 # type: verbatim
22585 #: ../fuse/guestmount.pod:64
22586 #, no-wrap
22587 msgid ""
22588 " guestmount [-a ... -m ...] --trace /mnt\n"
22589 "\n"
22590 msgstr ""
22591
22592 # type: textblock
22593 #: ../fuse/guestmount.pod:66
22594 msgid "If you want to debug the program, we recommend:"
22595 msgstr ""
22596
22597 # type: verbatim
22598 #: ../fuse/guestmount.pod:68
22599 #, no-wrap
22600 msgid ""
22601 " guestmount [-a ... -m ...] --trace --verbose /mnt\n"
22602 "\n"
22603 msgstr ""
22604
22605 # type: textblock
22606 #: ../fuse/guestmount.pod:76
22607 msgid "Add a block device or virtual machine image."
22608 msgstr ""
22609
22610 # type: =item
22611 #: ../fuse/guestmount.pod:78
22612 msgid "B<--dir-cache-timeout N>"
22613 msgstr ""
22614
22615 # type: textblock
22616 #: ../fuse/guestmount.pod:80
22617 msgid ""
22618 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
22619 "seconds.  The readdir cache [actually, there are several semi-independent "
22620 "caches] is populated after a readdir(2) call with the stat and extended "
22621 "attributes of the files in the directory, in anticipation that they will be "
22622 "requested soon after."
22623 msgstr ""
22624
22625 # type: textblock
22626 #: ../fuse/guestmount.pod:86
22627 msgid ""
22628 "There is also a different attribute cache implemented by FUSE (see the FUSE "
22629 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
22630 "requests, only cache existing ones."
22631 msgstr ""
22632
22633 # type: =item
22634 #: ../fuse/guestmount.pod:90
22635 msgid "B<--fuse-help>"
22636 msgstr ""
22637
22638 # type: textblock
22639 #: ../fuse/guestmount.pod:92
22640 msgid "Display help on special FUSE options (see I<-o> below)."
22641 msgstr ""
22642
22643 # type: textblock
22644 #: ../fuse/guestmount.pod:96
22645 msgid "Display brief help and exit."
22646 msgstr ""
22647
22648 # type: =item
22649 #: ../fuse/guestmount.pod:98
22650 msgid "B<-m dev[:mnt]> | B<--mount dev[:mnt]>"
22651 msgstr ""
22652
22653 # type: textblock
22654 #: ../fuse/guestmount.pod:100
22655 msgid ""
22656 "Mount the named partition or logical volume on the given mountpoint B<in the "
22657 "guest> (this has nothing to do with mountpoints in the host)."
22658 msgstr ""
22659
22660 # type: textblock
22661 #: ../fuse/guestmount.pod:103
22662 msgid ""
22663 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
22664 "something on C</>."
22665 msgstr ""
22666
22667 # type: textblock
22668 #: ../fuse/guestmount.pod:108
22669 msgid ""
22670 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
22671 "unmounted.  If you specify this option, then we don't attempt to sync the "
22672 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
22673 msgstr ""
22674
22675 # type: =item
22676 #: ../fuse/guestmount.pod:113
22677 msgid "B<-o option> | B<--option option>"
22678 msgstr ""
22679
22680 # type: textblock
22681 #: ../fuse/guestmount.pod:115
22682 msgid "Pass extra options to FUSE."
22683 msgstr ""
22684
22685 # type: textblock
22686 #: ../fuse/guestmount.pod:117
22687 msgid ""
22688 "To get a list of all the extra options supported by FUSE, use the command "
22689 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
22690 "of them are a good idea."
22691 msgstr ""
22692
22693 # type: verbatim
22694 #: ../fuse/guestmount.pod:121
22695 #, no-wrap
22696 msgid ""
22697 " guestmount --fuse-help\n"
22698 "\n"
22699 msgstr ""
22700
22701 # type: textblock
22702 #: ../fuse/guestmount.pod:123
22703 msgid "Some potentially useful FUSE options:"
22704 msgstr ""
22705
22706 # type: =item
22707 #: ../fuse/guestmount.pod:127
22708 msgid "B<-o allow_other>"
22709 msgstr ""
22710
22711 # type: textblock
22712 #: ../fuse/guestmount.pod:129
22713 msgid "Allow other users to see the filesystem."
22714 msgstr ""
22715
22716 # type: =item
22717 #: ../fuse/guestmount.pod:131
22718 msgid "B<-o attr_timeout=N>"
22719 msgstr ""
22720
22721 # type: textblock
22722 #: ../fuse/guestmount.pod:133
22723 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
22724 msgstr ""
22725
22726 # type: =item
22727 #: ../fuse/guestmount.pod:135
22728 msgid "B<-o kernel_cache>"
22729 msgstr ""
22730
22731 # type: textblock
22732 #: ../fuse/guestmount.pod:137
22733 msgid ""
22734 "Allow the kernel to cache files (reduces the number of reads that have to go "
22735 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
22736 "afford the extra memory usage."
22737 msgstr ""
22738
22739 # type: =item
22740 #: ../fuse/guestmount.pod:141
22741 msgid "B<-o uid=N> B<-o gid=N>"
22742 msgstr ""
22743
22744 # type: textblock
22745 #: ../fuse/guestmount.pod:143
22746 msgid ""
22747 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
22748 "the chosen values."
22749 msgstr ""
22750
22751 # type: textblock
22752 #: ../fuse/guestmount.pod:150
22753 msgid ""
22754 "Add devices and mount everything read-only.  Also disallow writes and make "
22755 "the disk appear read-only to FUSE."
22756 msgstr ""
22757
22758 # type: textblock
22759 #: ../fuse/guestmount.pod:153
22760 msgid ""
22761 "This is highly recommended if you are not going to edit the guest disk.  If "
22762 "the guest is running and this option is I<not> supplied, then there is a "
22763 "strong risk of disk corruption in the guest.  We try to prevent this from "
22764 "happening, but it is not always possible."
22765 msgstr ""
22766
22767 # type: textblock
22768 #: ../fuse/guestmount.pod:160
22769 msgid "Enable SELinux support for the guest."
22770 msgstr ""
22771
22772 # type: =item
22773 #: ../fuse/guestmount.pod:162
22774 msgid "B<--trace>"
22775 msgstr ""
22776
22777 # type: textblock
22778 #: ../fuse/guestmount.pod:164
22779 msgid "Trace libguestfs calls (to stderr)."
22780 msgstr ""
22781
22782 # type: textblock
22783 #: ../fuse/guestmount.pod:166
22784 msgid "This also stops the daemon from forking into the background."
22785 msgstr ""
22786
22787 # type: textblock
22788 #: ../fuse/guestmount.pod:170
22789 msgid "Enable verbose messages from underlying libguestfs."
22790 msgstr ""
22791
22792 # type: textblock
22793 #: ../fuse/guestmount.pod:174
22794 msgid "Display the program version and exit."
22795 msgstr ""
22796
22797 # type: textblock
22798 #: ../fuse/guestmount.pod:180
22799 msgid ""
22800 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
22801 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, "
22802 "L<http://fuse.sf.net/>."
22803 msgstr ""
22804
22805 # type: textblock
22806 #: ../inspector/virt-inspector.pl:40
22807 msgid ""
22808 "virt-inspector - Display OS version, kernel, drivers, mount points, "
22809 "applications, etc. in a virtual machine"
22810 msgstr ""
22811
22812 # type: verbatim
22813 #: ../inspector/virt-inspector.pl:44
22814 #, no-wrap
22815 msgid ""
22816 " virt-inspector [--connect URI] domname\n"
22817 "\n"
22818 msgstr ""
22819
22820 # type: verbatim
22821 #: ../inspector/virt-inspector.pl:46
22822 #, no-wrap
22823 msgid ""
22824 " virt-inspector guest.img [guest.img ...]\n"
22825 "\n"
22826 msgstr ""
22827
22828 # type: textblock
22829 #: ../inspector/virt-inspector.pl:50
22830 msgid ""
22831 "B<virt-inspector> examines a virtual machine and tries to determine the "
22832 "version of the OS, the kernel version, what drivers are installed, whether "
22833 "the virtual machine is fully virtualized (FV) or para-virtualized (PV), what "
22834 "applications are installed and more."
22835 msgstr ""
22836
22837 # type: textblock
22838 #: ../inspector/virt-inspector.pl:55
22839 msgid ""
22840 "Virt-inspector can produce output in several formats, including a readable "
22841 "text report, and XML for feeding into other programs."
22842 msgstr ""
22843
22844 # type: textblock
22845 #: ../inspector/virt-inspector.pl:58
22846 msgid ""
22847 "In the normal usage, use C<virt-inspector domname> where C<domname> is the "
22848 "libvirt domain (see: C<virsh list --all>)."
22849 msgstr ""
22850
22851 # type: textblock
22852 #: ../inspector/virt-inspector.pl:61
22853 msgid ""
22854 "You can also run virt-inspector directly on disk images from a single "
22855 "virtual machine.  Use C<virt-inspector guest.img>.  In rare cases a domain "
22856 "has several block devices, in which case you should list them one after "
22857 "another, with the first corresponding to the guest's C</dev/sda>, the second "
22858 "to the guest's C</dev/sdb> and so on."
22859 msgstr ""
22860
22861 # type: textblock
22862 #: ../inspector/virt-inspector.pl:67
22863 msgid ""
22864 "Virt-inspector can only inspect and report upon I<one domain at a time>.  To "
22865 "inspect several virtual machines, you have to run virt-inspector several "
22866 "times (for example, from a shell script for-loop)."
22867 msgstr ""
22868
22869 # type: textblock
22870 #: ../inspector/virt-inspector.pl:72
22871 msgid ""
22872 "Because virt-inspector needs direct access to guest images, it won't "
22873 "normally work over remote libvirt connections."
22874 msgstr ""
22875
22876 # type: textblock
22877 #: ../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
22878 msgid "Display brief help."
22879 msgstr ""
22880
22881 # type: =item
22882 #: ../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
22883 msgid "B<--version>"
22884 msgstr ""
22885
22886 # type: textblock
22887 #: ../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
22888 msgid "Display version number and exit."
22889 msgstr ""
22890
22891 # type: =item
22892 #: ../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
22893 msgid "B<--connect URI> | B<-c URI>"
22894 msgstr ""
22895
22896 # type: textblock
22897 #: ../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
22898 msgid ""
22899 "If using libvirt, connect to the given I<URI>.  If omitted, then we connect "
22900 "to the default libvirt hypervisor."
22901 msgstr ""
22902
22903 # type: textblock
22904 #: ../inspector/virt-inspector.pl:104
22905 msgid ""
22906 "Libvirt is only used if you specify a C<domname> on the command line.  If "
22907 "you specify guest block devices directly, then libvirt is not used at all."
22908 msgstr ""
22909
22910 # type: textblock
22911 #: ../inspector/virt-inspector.pl:114
22912 msgid ""
22913 "The following options select the output format.  Use only one of them.  The "
22914 "default is a readable text report."
22915 msgstr ""
22916
22917 # type: =item
22918 #: ../inspector/virt-inspector.pl:119
22919 msgid "B<--text> (default)"
22920 msgstr ""
22921
22922 # type: textblock
22923 #: ../inspector/virt-inspector.pl:121
22924 msgid "Plain text report."
22925 msgstr ""
22926
22927 # type: =item
22928 #: ../inspector/virt-inspector.pl:123
22929 msgid "B<--none>"
22930 msgstr ""
22931
22932 # type: textblock
22933 #: ../inspector/virt-inspector.pl:125
22934 msgid "Produce no output at all."
22935 msgstr ""
22936
22937 # type: =item
22938 #: ../inspector/virt-inspector.pl:127
22939 msgid "B<--xml>"
22940 msgstr ""
22941
22942 # type: textblock
22943 #: ../inspector/virt-inspector.pl:129
22944 msgid ""
22945 "If you select I<--xml> then you get XML output which can be fed to other "
22946 "programs."
22947 msgstr ""
22948
22949 # type: =item
22950 #: ../inspector/virt-inspector.pl:132
22951 msgid "B<--yaml>"
22952 msgstr ""
22953
22954 # type: textblock
22955 #: ../inspector/virt-inspector.pl:134
22956 msgid ""
22957 "If you select I<--yaml> then you get YAML output which can be fed to other "
22958 "programs."
22959 msgstr ""
22960
22961 # type: =item
22962 #: ../inspector/virt-inspector.pl:137
22963 msgid "B<--perl>"
22964 msgstr ""
22965
22966 # type: textblock
22967 #: ../inspector/virt-inspector.pl:139
22968 msgid ""
22969 "If you select I<--perl> then you get Perl structures output which can be "
22970 "used directly in another Perl program."
22971 msgstr ""
22972
22973 # type: =item
22974 #: ../inspector/virt-inspector.pl:142
22975 msgid "B<--fish>"
22976 msgstr ""
22977
22978 # type: =item
22979 #: ../inspector/virt-inspector.pl:144
22980 msgid "B<--ro-fish>"
22981 msgstr ""
22982
22983 # type: textblock
22984 #: ../inspector/virt-inspector.pl:146
22985 msgid ""
22986 "If you select I<--fish> then we print a L<guestfish(1)> command line which "
22987 "will automatically mount up the filesystems on the correct mount points.  "
22988 "Try this for example:"
22989 msgstr ""
22990
22991 # type: verbatim
22992 #: ../inspector/virt-inspector.pl:150
22993 #, no-wrap
22994 msgid ""
22995 " guestfish $(virt-inspector --fish guest.img)\n"
22996 "\n"
22997 msgstr ""
22998
22999 # type: textblock
23000 #: ../inspector/virt-inspector.pl:152
23001 msgid ""
23002 "I<--ro-fish> is the same, but the I<--ro> option is passed to guestfish so "
23003 "that the filesystems are mounted read-only."
23004 msgstr ""
23005
23006 # type: =item
23007 #: ../inspector/virt-inspector.pl:155
23008 msgid "B<--query>"
23009 msgstr ""
23010
23011 # type: textblock
23012 #: ../inspector/virt-inspector.pl:157
23013 msgid ""
23014 "In \"query mode\" we answer common questions about the guest, such as "
23015 "whether it is fullvirt or needs a Xen hypervisor to run."
23016 msgstr ""
23017
23018 # type: textblock
23019 #: ../inspector/virt-inspector.pl:160
23020 msgid "See section I<QUERY MODE> below."
23021 msgstr ""
23022
23023 # type: =item
23024 #: ../inspector/virt-inspector.pl:166
23025 msgid "B<--windows-registry>"
23026 msgstr ""
23027
23028 # type: textblock
23029 #: ../inspector/virt-inspector.pl:168
23030 msgid ""
23031 "This flag is ignored for compatibility with earlier releases of the "
23032 "software."
23033 msgstr ""
23034
23035 # type: textblock
23036 #: ../inspector/virt-inspector.pl:171
23037 msgid ""
23038 "In this version, if L<Win::Hivex(3)> is available, then we attempt to parse "
23039 "information out of the Registry for any Windows guest."
23040 msgstr ""
23041
23042 # type: =head1
23043 #: ../inspector/virt-inspector.pl:218
23044 msgid "OUTPUT FORMAT"
23045 msgstr ""
23046
23047 # type: verbatim
23048 #: ../inspector/virt-inspector.pl:220
23049 #, no-wrap
23050 msgid ""
23051 " Operating system(s)\n"
23052 " -------------------\n"
23053 " Linux (distro + version)\n"
23054 " Windows (version)\n"
23055 "    |\n"
23056 "    |\n"
23057 "    +--- Filesystems ---------- Installed apps --- Kernel & drivers\n"
23058 "         -----------            --------------     ----------------\n"
23059 "         mount point => device  List of apps       Extra information\n"
23060 "         mount point => device  and versions       about kernel(s)\n"
23061 "              ...                                  and drivers\n"
23062 "         swap => swap device\n"
23063 "         (plus lots of extra information\n"
23064 "         about each filesystem)\n"
23065 "\n"
23066 msgstr ""
23067
23068 # type: textblock
23069 #: ../inspector/virt-inspector.pl:235
23070 msgid "The output of virt-inspector is a complex two-level data structure."
23071 msgstr ""
23072
23073 # type: textblock
23074 #: ../inspector/virt-inspector.pl:237
23075 msgid ""
23076 "At the top level is a list of the operating systems installed on the guest.  "
23077 "(For the vast majority of guests, only a single OS is installed.)  The data "
23078 "returned for the OS includes the name (Linux, Windows), the distribution and "
23079 "version."
23080 msgstr ""
23081
23082 # type: textblock
23083 #: ../inspector/virt-inspector.pl:242
23084 msgid "The diagram above shows what we return for each OS."
23085 msgstr ""
23086
23087 # type: textblock
23088 #: ../inspector/virt-inspector.pl:244
23089 msgid ""
23090 "With the I<--xml> option the output is mapped into an XML document.  There "
23091 "is a RELAX-NG schema for this XML in the file I<virt-inspector.rng> which "
23092 "normally ships with virt-inspector, or can be found in the source."
23093 msgstr ""
23094
23095 # type: textblock
23096 #: ../inspector/virt-inspector.pl:249
23097 msgid ""
23098 "With the I<--fish> or I<--ro-fish> option the mount points are mapped to "
23099 "L<guestfish(1)> command line parameters, so that you can go in afterwards "
23100 "and inspect the guest with everything mounted in the right place.  For "
23101 "example:"
23102 msgstr ""
23103
23104 # type: verbatim
23105 #: ../inspector/virt-inspector.pl:254
23106 #, no-wrap
23107 msgid ""
23108 " guestfish $(virt-inspector --ro-fish guest.img)\n"
23109 " ==> guestfish --ro -a guest.img -m /dev/VG/LV:/ -m /dev/sda1:/boot\n"
23110 "\n"
23111 msgstr ""
23112
23113 # type: =head1
23114 #: ../inspector/virt-inspector.pl:589
23115 msgid "QUERY MODE"
23116 msgstr ""
23117
23118 # type: textblock
23119 #: ../inspector/virt-inspector.pl:591
23120 msgid ""
23121 "When you use C<virt-inspector --query>, the output is a series of lines of "
23122 "the form:"
23123 msgstr ""
23124
23125 # type: verbatim
23126 #: ../inspector/virt-inspector.pl:594
23127 #, no-wrap
23128 msgid ""
23129 " windows=no\n"
23130 " linux=yes\n"
23131 " fullvirt=yes\n"
23132 " xen_pv_drivers=no\n"
23133 "\n"
23134 msgstr ""
23135
23136 # type: textblock
23137 #: ../inspector/virt-inspector.pl:599
23138 msgid ""
23139 "(each answer is usually C<yes> or C<no>, or the line is completely missing "
23140 "if we could not determine the answer at all)."
23141 msgstr ""
23142
23143 # type: textblock
23144 #: ../inspector/virt-inspector.pl:602
23145 msgid ""
23146 "If the guest is multiboot, you can get apparently conflicting answers "
23147 "(eg. C<windows=yes> and C<linux=yes>, or a guest which is both fullvirt and "
23148 "has a Xen PV kernel).  This is normal, and just means that the guest can do "
23149 "both things, although it might require operator intervention such as "
23150 "selecting a boot option when the guest is booting."
23151 msgstr ""
23152
23153 # type: textblock
23154 #: ../inspector/virt-inspector.pl:609
23155 msgid "This section describes the full range of answers possible."
23156 msgstr ""
23157
23158 # type: =item
23159 #: ../inspector/virt-inspector.pl:630
23160 msgid "windows=(yes|no)"
23161 msgstr ""
23162
23163 # type: textblock
23164 #: ../inspector/virt-inspector.pl:632
23165 msgid "Answer C<yes> if Microsoft Windows is installed in the guest."
23166 msgstr ""
23167
23168 # type: =item
23169 #: ../inspector/virt-inspector.pl:645
23170 msgid "linux=(yes|no)"
23171 msgstr ""
23172
23173 # type: textblock
23174 #: ../inspector/virt-inspector.pl:647
23175 msgid "Answer C<yes> if a Linux kernel is installed in the guest."
23176 msgstr ""
23177
23178 # type: =item
23179 #: ../inspector/virt-inspector.pl:660
23180 msgid "rhel=(yes|no)"
23181 msgstr ""
23182
23183 # type: textblock
23184 #: ../inspector/virt-inspector.pl:662
23185 msgid "Answer C<yes> if the guest contains Red Hat Enterprise Linux."
23186 msgstr ""
23187
23188 # type: =item
23189 #: ../inspector/virt-inspector.pl:676
23190 msgid "fedora=(yes|no)"
23191 msgstr ""
23192
23193 # type: textblock
23194 #: ../inspector/virt-inspector.pl:678
23195 msgid "Answer C<yes> if the guest contains the Fedora Linux distribution."
23196 msgstr ""
23197
23198 # type: =item
23199 #: ../inspector/virt-inspector.pl:691
23200 msgid "debian=(yes|no)"
23201 msgstr ""
23202
23203 # type: textblock
23204 #: ../inspector/virt-inspector.pl:693
23205 msgid "Answer C<yes> if the guest contains the Debian Linux distribution."
23206 msgstr ""
23207
23208 # type: =item
23209 #: ../inspector/virt-inspector.pl:706
23210 msgid "fullvirt=(yes|no)"
23211 msgstr ""
23212
23213 # type: textblock
23214 #: ../inspector/virt-inspector.pl:708
23215 msgid ""
23216 "Answer C<yes> if there is at least one operating system kernel installed in "
23217 "the guest which runs fully virtualized.  Such a guest would require a "
23218 "hypervisor which supports full system virtualization."
23219 msgstr ""
23220
23221 # type: =item
23222 #: ../inspector/virt-inspector.pl:731
23223 msgid "xen_domU_kernel=(yes|no)"
23224 msgstr ""
23225
23226 # type: textblock
23227 #: ../inspector/virt-inspector.pl:733
23228 msgid ""
23229 "Answer C<yes> if there is at least one Linux kernel installed in the guest "
23230 "which is compiled as a Xen DomU (a Xen paravirtualized guest)."
23231 msgstr ""
23232
23233 # type: =item
23234 #: ../inspector/virt-inspector.pl:753
23235 msgid "xen_pv_drivers=(yes|no)"
23236 msgstr ""
23237
23238 # type: textblock
23239 #: ../inspector/virt-inspector.pl:755
23240 msgid ""
23241 "Answer C<yes> if the guest has Xen paravirtualized drivers installed "
23242 "(usually the kernel itself will be fully virtualized, but the PV drivers "
23243 "have been installed by the administrator for performance reasons)."
23244 msgstr ""
23245
23246 # type: =item
23247 #: ../inspector/virt-inspector.pl:777
23248 msgid "virtio_drivers=(yes|no)"
23249 msgstr ""
23250
23251 # type: textblock
23252 #: ../inspector/virt-inspector.pl:779
23253 msgid ""
23254 "Answer C<yes> if the guest has virtio paravirtualized drivers installed.  "
23255 "Virtio drivers are commonly used to improve the performance of KVM."
23256 msgstr ""
23257
23258 # type: =item
23259 #: ../inspector/virt-inspector.pl:800
23260 msgid "userspace_arch=(x86_64|...)"
23261 msgstr ""
23262
23263 # type: textblock
23264 #: ../inspector/virt-inspector.pl:802
23265 msgid "Print the architecture of userspace."
23266 msgstr ""
23267
23268 # type: textblock
23269 #: ../inspector/virt-inspector.pl:804 ../inspector/virt-inspector.pl:825
23270 msgid "NB. For multi-boot VMs this can print several lines."
23271 msgstr ""
23272
23273 # type: =item
23274 #: ../inspector/virt-inspector.pl:821
23275 msgid "kernel_arch=(x86_64|...)"
23276 msgstr ""
23277
23278 # type: textblock
23279 #: ../inspector/virt-inspector.pl:823
23280 msgid "Print the architecture of the kernel."
23281 msgstr ""
23282
23283 # type: textblock
23284 #: ../inspector/virt-inspector.pl:848 ../tools/virt-df.pl:538
23285 msgid ""
23286 "L<guestfs(3)>, L<guestfish(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
23287 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
23288 msgstr ""
23289
23290 # type: textblock
23291 #: ../inspector/virt-inspector.pl:857 ../tools/virt-cat.pl:175 ../tools/virt-df.pl:547 ../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
23292 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
23293 msgstr ""
23294
23295 # type: textblock
23296 #: ../inspector/virt-inspector.pl:859
23297 msgid "Matthew Booth L<mbooth@redhat.com>"
23298 msgstr ""
23299
23300 # type: textblock
23301 #: ../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
23302 msgid "Copyright (C) 2009 Red Hat Inc."
23303 msgstr ""
23304
23305 # type: textblock
23306 #: ../tools/virt-cat.pl:34
23307 msgid "virt-cat - Display a file in a virtual machine"
23308 msgstr ""
23309
23310 # type: verbatim
23311 #: ../tools/virt-cat.pl:38
23312 #, no-wrap
23313 msgid ""
23314 " virt-cat [--options] domname file\n"
23315 "\n"
23316 msgstr ""
23317
23318 # type: verbatim
23319 #: ../tools/virt-cat.pl:40
23320 #, no-wrap
23321 msgid ""
23322 " virt-cat [--options] disk.img [disk.img ...] file\n"
23323 "\n"
23324 msgstr ""
23325
23326 # type: textblock
23327 #: ../tools/virt-cat.pl:44
23328 msgid ""
23329 "C<virt-cat> is a command line tool to display the contents of C<file> where "
23330 "C<file> exists in the named virtual machine (or disk image)."
23331 msgstr ""
23332
23333 # type: textblock
23334 #: ../tools/virt-cat.pl:47
23335 msgid ""
23336 "C<virt-cat> can be used to quickly view a single file.  To edit a file, use "
23337 "C<virt-edit>.  For more complex cases you should look at the L<guestfish(1)> "
23338 "tool."
23339 msgstr ""
23340
23341 # type: textblock
23342 #: ../tools/virt-cat.pl:53
23343 msgid "Display C</etc/fstab> file from inside the libvirt VM called C<mydomain>:"
23344 msgstr ""
23345
23346 # type: verbatim
23347 #: ../tools/virt-cat.pl:56
23348 #, no-wrap
23349 msgid ""
23350 " virt-cat mydomain /etc/fstab\n"
23351 "\n"
23352 msgstr ""
23353
23354 # type: textblock
23355 #: ../tools/virt-cat.pl:58
23356 msgid "List syslog messages from a VM:"
23357 msgstr ""
23358
23359 # type: verbatim
23360 #: ../tools/virt-cat.pl:60
23361 #, no-wrap
23362 msgid ""
23363 " virt-cat mydomain /var/log/messages | tail\n"
23364 "\n"
23365 msgstr ""
23366
23367 # type: textblock
23368 #: ../tools/virt-cat.pl:62
23369 msgid "Find out what DHCP IP address a VM acquired:"
23370 msgstr ""
23371
23372 # type: verbatim
23373 #: ../tools/virt-cat.pl:64
23374 #, no-wrap
23375 msgid ""
23376 " virt-cat mydomain /var/log/messages | grep 'dhclient: bound to' | tail\n"
23377 "\n"
23378 msgstr ""
23379
23380 # type: textblock
23381 #: ../tools/virt-cat.pl:66
23382 msgid "Find out what packages were recently installed:"
23383 msgstr ""
23384
23385 # type: verbatim
23386 #: ../tools/virt-cat.pl:68
23387 #, no-wrap
23388 msgid ""
23389 " virt-cat mydomain /var/log/yum.log | tail\n"
23390 "\n"
23391 msgstr ""
23392
23393 # type: textblock
23394 #: ../tools/virt-cat.pl:70
23395 msgid "Find out who is logged on inside a virtual machine:"
23396 msgstr ""
23397
23398 # type: verbatim
23399 #: ../tools/virt-cat.pl:72
23400 #, no-wrap
23401 msgid ""
23402 " virt-cat mydomain /var/run/utmp > /tmp/utmp\n"
23403 " who /tmp/utmp\n"
23404 "\n"
23405 msgstr ""
23406
23407 # type: textblock
23408 #: ../tools/virt-cat.pl:75
23409 msgid "or who was logged on:"
23410 msgstr ""
23411
23412 # type: verbatim
23413 #: ../tools/virt-cat.pl:77
23414 #, no-wrap
23415 msgid ""
23416 " virt-cat mydomain /var/log/wtmp > /tmp/wtmp\n"
23417 " last -f /tmp/wtmp\n"
23418 "\n"
23419 msgstr ""
23420
23421 # type: textblock
23422 #: ../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
23423 msgid ""
23424 "If you specify guest block devices directly, then libvirt is not used at "
23425 "all."
23426 msgstr ""
23427
23428 # type: textblock
23429 #: ../tools/virt-cat.pl:165
23430 msgid ""
23431 "L<guestfs(3)>, L<guestfish(1)>, L<virt-edit(1)>, L<Sys::Guestfs(3)>, "
23432 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
23433 msgstr ""
23434
23435 # type: =head1
23436 #: ../tools/virt-cat.pl:173 ../tools/virt-df.pl:545 ../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
23437 msgid "AUTHOR"
23438 msgstr ""
23439
23440 # type: textblock
23441 #: ../tools/virt-df.pl:36
23442 msgid "virt-df - Display free space on virtual filesystems"
23443 msgstr ""
23444
23445 # type: verbatim
23446 #: ../tools/virt-df.pl:40
23447 #, no-wrap
23448 msgid ""
23449 " virt-df [--options]\n"
23450 "\n"
23451 msgstr ""
23452
23453 # type: verbatim
23454 #: ../tools/virt-df.pl:42
23455 #, no-wrap
23456 msgid ""
23457 " virt-df [--options] domname\n"
23458 "\n"
23459 msgstr ""
23460
23461 # type: verbatim
23462 #: ../tools/virt-df.pl:44
23463 #, no-wrap
23464 msgid ""
23465 " virt-df [--options] disk.img [disk.img ...]\n"
23466 "\n"
23467 msgstr ""
23468
23469 # type: textblock
23470 #: ../tools/virt-df.pl:48
23471 msgid ""
23472 "C<virt-df> is a command line tool to display free space on virtual machine "
23473 "filesystems.  Unlike other tools, it doesn't just display the amount of "
23474 "space allocated to a virtual machine, but can look inside the virtual "
23475 "machine to see how much space is really being used."
23476 msgstr ""
23477
23478 # type: textblock
23479 #: ../tools/virt-df.pl:53
23480 msgid ""
23481 "It is like the L<df(1)> command, but for virtual machines, except that it "
23482 "also works for Windows virtual machines."
23483 msgstr ""
23484
23485 # type: textblock
23486 #: ../tools/virt-df.pl:56
23487 msgid ""
23488 "If used without any arguments, C<virt-df> checks with libvirt to get a list "
23489 "of all active and inactive guests, and performs a C<df>-type operation on "
23490 "each one in turn, printing out the results."
23491 msgstr ""
23492
23493 # type: textblock
23494 #: ../tools/virt-df.pl:60
23495 msgid ""
23496 "If used with any argument(s), C<virt-df> performs a C<df>-type operation on "
23497 "either the single named libvirt domain, or on the disk image(s) listed on "
23498 "the command line (which must all belong to a single VM).  In this mode (with "
23499 "arguments), C<virt-df> will I<only work for a single guest>.  If you want to "
23500 "run on multiple guests, then you have to invoke C<virt-df> multiple times."
23501 msgstr ""
23502
23503 # type: textblock
23504 #: ../tools/virt-df.pl:67
23505 msgid ""
23506 "Use the C<--csv> option to get a format which can be easily parsed by other "
23507 "programs.  Other options are mostly similar to standard C<df> options.  See "
23508 "below for the complete list."
23509 msgstr ""
23510
23511 # type: =item
23512 #: ../tools/virt-df.pl:107
23513 msgid "B<--csv>"
23514 msgstr ""
23515
23516 # type: textblock
23517 #: ../tools/virt-df.pl:109
23518 msgid ""
23519 "Write out the results in CSV format (comma-separated values).  This format "
23520 "can be imported easily into databases and spreadsheets, but read L</NOTE "
23521 "ABOUT CSV FORMAT> below."
23522 msgstr ""
23523
23524 # type: =item
23525 #: ../tools/virt-df.pl:117
23526 msgid "B<--human-readable> | B<-h>"
23527 msgstr ""
23528
23529 # type: textblock
23530 #: ../tools/virt-df.pl:119
23531 msgid "Print sizes in human-readable format."
23532 msgstr ""
23533
23534 # type: textblock
23535 #: ../tools/virt-df.pl:121
23536 msgid "You are not allowed to use I<-h> and I<--csv> at the same time."
23537 msgstr ""
23538
23539 # type: =item
23540 #: ../tools/virt-df.pl:127
23541 msgid "B<--inodes> | B<-i>"
23542 msgstr ""
23543
23544 # type: textblock
23545 #: ../tools/virt-df.pl:129
23546 msgid "Print inodes instead of blocks."
23547 msgstr ""
23548
23549 # type: =item
23550 #: ../tools/virt-df.pl:135
23551 msgid "B<--one-per-guest>"
23552 msgstr ""
23553
23554 # type: textblock
23555 #: ../tools/virt-df.pl:137
23556 msgid ""
23557 "Run one libguestfs appliance per guest.  Normally C<virt-df> will add the "
23558 "disks from several guests to a single libguestfs appliance."
23559 msgstr ""
23560
23561 # type: textblock
23562 #: ../tools/virt-df.pl:140
23563 msgid "You might use this option in the following circumstances:"
23564 msgstr ""
23565
23566 # type: textblock
23567 #: ../tools/virt-df.pl:146
23568 msgid ""
23569 "If you think an untrusted guest might actively try to exploit the libguestfs "
23570 "appliance kernel, then this prevents one guest from interfering with the "
23571 "stats printed for another guest."
23572 msgstr ""
23573
23574 # type: textblock
23575 #: ../tools/virt-df.pl:152
23576 msgid ""
23577 "If the kernel has a bug which stops it from accessing a filesystem in one "
23578 "guest (see for example RHBZ#635373) then this allows libguestfs to continue "
23579 "and report stats for further guests."
23580 msgstr ""
23581
23582 # type: =head1
23583 #: ../tools/virt-df.pl:512
23584 msgid "NOTE ABOUT CSV FORMAT"
23585 msgstr ""
23586
23587 # type: textblock
23588 #: ../tools/virt-df.pl:514
23589 msgid ""
23590 "Comma-separated values (CSV) is a deceptive format.  It I<seems> like it "
23591 "should be easy to parse, but it is definitely not easy to parse."
23592 msgstr ""
23593
23594 # type: textblock
23595 #: ../tools/virt-df.pl:517
23596 msgid ""
23597 "Myth: Just split fields at commas.  Reality: This does I<not> work "
23598 "reliably.  This example has two columns:"
23599 msgstr ""
23600
23601 # type: verbatim
23602 #: ../tools/virt-df.pl:520
23603 #, no-wrap
23604 msgid ""
23605 " \"foo,bar\",baz\n"
23606 "\n"
23607 msgstr ""
23608
23609 # type: textblock
23610 #: ../tools/virt-df.pl:522
23611 msgid ""
23612 "Myth: Read the file one line at a time.  Reality: This does I<not> work "
23613 "reliably.  This example has one row:"
23614 msgstr ""
23615
23616 # type: verbatim
23617 #: ../tools/virt-df.pl:525
23618 #, no-wrap
23619 msgid ""
23620 " \"foo\n"
23621 " bar\",baz\n"
23622 "\n"
23623 msgstr ""
23624
23625 # type: textblock
23626 #: ../tools/virt-df.pl:528
23627 msgid ""
23628 "For shell scripts, use C<csvtool> (L<http://merjis.com/developers/csv> also "
23629 "packaged in major Linux distributions)."
23630 msgstr ""
23631
23632 # type: textblock
23633 #: ../tools/virt-df.pl:531
23634 msgid ""
23635 "For other languages, use a CSV processing library (eg. C<Text::CSV> for Perl "
23636 "or Python's built-in csv library)."
23637 msgstr ""
23638
23639 # type: textblock
23640 #: ../tools/virt-df.pl:534
23641 msgid "Most spreadsheets and databases can import CSV directly."
23642 msgstr ""
23643
23644 # type: textblock
23645 #: ../tools/virt-df.pl:551 ../tools/virt-edit.pl:343 ../tools/virt-list-partitions.pl:246 ../tools/virt-rescue.pl:247
23646 msgid "Copyright (C) 2009-2010 Red Hat Inc."
23647 msgstr ""
23648
23649 # type: textblock
23650 #: ../tools/virt-edit.pl:35
23651 msgid "virt-edit - Edit a file in a virtual machine"
23652 msgstr ""
23653
23654 # type: verbatim
23655 #: ../tools/virt-edit.pl:39
23656 #, no-wrap
23657 msgid ""
23658 " virt-edit [--options] domname file\n"
23659 "\n"
23660 msgstr ""
23661
23662 # type: verbatim
23663 #: ../tools/virt-edit.pl:41
23664 #, no-wrap
23665 msgid ""
23666 " virt-edit [--options] disk.img [disk.img ...] file\n"
23667 "\n"
23668 msgstr ""
23669
23670 # type: verbatim
23671 #: ../tools/virt-edit.pl:43
23672 #, no-wrap
23673 msgid ""
23674 " virt-edit [domname|disk.img] file -e 'expr'\n"
23675 "\n"
23676 msgstr ""
23677
23678 # type: textblock
23679 #: ../tools/virt-edit.pl:47
23680 msgid ""
23681 "You must I<not> use C<virt-edit> on live virtual machines.  If you do this, "
23682 "you risk disk corruption in the VM.  C<virt-edit> tries to stop you from "
23683 "doing this, but doesn't catch all cases."
23684 msgstr ""
23685
23686 # type: textblock
23687 #: ../tools/virt-edit.pl:53
23688 msgid ""
23689 "C<virt-edit> is a command line tool to edit C<file> where C<file> exists in "
23690 "the named virtual machine (or disk image)."
23691 msgstr ""
23692
23693 # type: textblock
23694 #: ../tools/virt-edit.pl:56
23695 msgid ""
23696 "If you want to just view a file, use L<virt-cat(1)>.  For more complex cases "
23697 "you should look at the L<guestfish(1)> tool."
23698 msgstr ""
23699
23700 # type: textblock
23701 #: ../tools/virt-edit.pl:61
23702 msgid "Edit the named files interactively:"
23703 msgstr ""
23704
23705 # type: verbatim
23706 #: ../tools/virt-edit.pl:63
23707 #, no-wrap
23708 msgid ""
23709 " virt-edit mydomain /boot/grub/grub.conf\n"
23710 "\n"
23711 msgstr ""
23712
23713 # type: verbatim
23714 #: ../tools/virt-edit.pl:65
23715 #, no-wrap
23716 msgid ""
23717 " virt-edit mydomain /etc/passwd\n"
23718 "\n"
23719 msgstr ""
23720
23721 # type: textblock
23722 #: ../tools/virt-edit.pl:67
23723 msgid ""
23724 "You can also edit files non-interactively (see L</NON-INTERACTIVE EDITING> "
23725 "below).  To change the init default level to 5:"
23726 msgstr ""
23727
23728 # type: verbatim
23729 #: ../tools/virt-edit.pl:71
23730 #, no-wrap
23731 msgid ""
23732 " virt-edit mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
23733 "\n"
23734 msgstr ""
23735
23736 # type: =item
23737 #: ../tools/virt-edit.pl:97
23738 msgid "B<--backup extension> | B<-b extension>"
23739 msgstr ""
23740
23741 # type: textblock
23742 #: ../tools/virt-edit.pl:99
23743 msgid ""
23744 "Create a backup of the original file I<in the guest disk image>.  The backup "
23745 "has the original filename with C<extension> added."
23746 msgstr ""
23747
23748 # type: textblock
23749 #: ../tools/virt-edit.pl:102
23750 msgid ""
23751 "Usually the first character of C<extension> would be a dot C<.> so you would "
23752 "write:"
23753 msgstr ""
23754
23755 # type: verbatim
23756 #: ../tools/virt-edit.pl:105
23757 #, no-wrap
23758 msgid ""
23759 " virt-edit -b .orig [etc]\n"
23760 "\n"
23761 msgstr ""
23762
23763 # type: textblock
23764 #: ../tools/virt-edit.pl:107
23765 msgid "By default, no backup file is made."
23766 msgstr ""
23767
23768 # type: =item
23769 #: ../tools/virt-edit.pl:125
23770 msgid "B<--expr EXPR> | B<-e EXPR>"
23771 msgstr ""
23772
23773 # type: textblock
23774 #: ../tools/virt-edit.pl:127
23775 msgid ""
23776 "Instead of launching the external editor, non-interactively apply the Perl "
23777 "expression C<EXPR> to each line in the file.  See L</NON-INTERACTIVE "
23778 "EDITING> below."
23779 msgstr ""
23780
23781 # type: textblock
23782 #: ../tools/virt-edit.pl:131
23783 msgid ""
23784 "Be careful to properly quote the expression to prevent it from being altered "
23785 "by the shell."
23786 msgstr ""
23787
23788 # type: =head1
23789 #: ../tools/virt-edit.pl:250
23790 msgid "NON-INTERACTIVE EDITING"
23791 msgstr ""
23792
23793 # type: textblock
23794 #: ../tools/virt-edit.pl:252
23795 msgid ""
23796 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
23797 "administrator can interactively edit the file."
23798 msgstr ""
23799
23800 # type: textblock
23801 #: ../tools/virt-edit.pl:255
23802 msgid ""
23803 "There are two ways also to use C<virt-edit> from scripts in order to make "
23804 "automated edits to files.  (Note that although you I<can> use C<virt-edit> "
23805 "like this, it's less error-prone to write scripts directly using the "
23806 "libguestfs API and Augeas for configuration file editing.)"
23807 msgstr ""
23808
23809 # type: textblock
23810 #: ../tools/virt-edit.pl:261
23811 msgid ""
23812 "The first method is to temporarily set C<$EDITOR> to any script or program "
23813 "you want to run.  The script is invoked as C<$EDITOR tmpfile> and it should "
23814 "update C<tmpfile> in place however it likes."
23815 msgstr ""
23816
23817 # type: textblock
23818 #: ../tools/virt-edit.pl:265
23819 msgid ""
23820 "The second method is to use the C<-e> parameter of C<virt-edit> to run a "
23821 "short Perl snippet in the style of L<sed(1)>.  For example to replace all "
23822 "instances of C<foo> with C<bar> in a file:"
23823 msgstr ""
23824
23825 # type: verbatim
23826 #: ../tools/virt-edit.pl:269
23827 #, no-wrap
23828 msgid ""
23829 " virt-edit domname filename -e 's/foo/bar/'\n"
23830 "\n"
23831 msgstr ""
23832
23833 # type: textblock
23834 #: ../tools/virt-edit.pl:271
23835 msgid ""
23836 "The full power of Perl regular expressions can be used (see L<perlre(1)>).  "
23837 "For example to delete root's password you could do:"
23838 msgstr ""
23839
23840 # type: verbatim
23841 #: ../tools/virt-edit.pl:274
23842 #, no-wrap
23843 msgid ""
23844 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
23845 "\n"
23846 msgstr ""
23847
23848 # type: textblock
23849 #: ../tools/virt-edit.pl:276
23850 msgid ""
23851 "What really happens is that the snippet is evaluated as a Perl expression "
23852 "for each line of the file.  The line, including the final C<\\n>, is passed "
23853 "in C<$_> and the expression should update C<$_> or leave it unchanged."
23854 msgstr ""
23855
23856 # type: textblock
23857 #: ../tools/virt-edit.pl:281
23858 msgid ""
23859 "To delete a line, set C<$_> to the empty string.  For example, to delete the "
23860 "C<apache> user account from the password file you can do:"
23861 msgstr ""
23862
23863 # type: verbatim
23864 #: ../tools/virt-edit.pl:284
23865 #, no-wrap
23866 msgid ""
23867 " virt-edit mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
23868 "\n"
23869 msgstr ""
23870
23871 # type: textblock
23872 #: ../tools/virt-edit.pl:286
23873 msgid ""
23874 "To insert a line, prepend or append it to C<$_>.  However appending lines to "
23875 "the end of the file is rather difficult this way since there is no concept "
23876 "of \"last line of the file\" - your expression just doesn't get called "
23877 "again.  You might want to use the first method (setting C<$EDITOR>) if you "
23878 "want to do this."
23879 msgstr ""
23880
23881 # type: textblock
23882 #: ../tools/virt-edit.pl:292
23883 msgid ""
23884 "The variable C<$lineno> contains the current line number.  As is "
23885 "traditional, the first line in the file is number C<1>."
23886 msgstr ""
23887
23888 # type: textblock
23889 #: ../tools/virt-edit.pl:295
23890 msgid ""
23891 "The return value from the expression is ignored, but the expression may call "
23892 "C<die> in order to abort the whole program, leaving the original file "
23893 "untouched."
23894 msgstr ""
23895
23896 # type: textblock
23897 #: ../tools/virt-edit.pl:299
23898 msgid ""
23899 "Remember when matching the end of a line that C<$_> may contain the final "
23900 "C<\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
23901 "newline then neither of these.  Thus to match or substitute some text at the "
23902 "end of a line, use this regular expression:"
23903 msgstr ""
23904
23905 # type: verbatim
23906 #: ../tools/virt-edit.pl:304
23907 #, no-wrap
23908 msgid ""
23909 " /some text(\\r?\\n)?$/\n"
23910 "\n"
23911 msgstr ""
23912
23913 # type: textblock
23914 #: ../tools/virt-edit.pl:306
23915 msgid ""
23916 "Alternately, use the perl C<chomp> function, being careful not to chomp "
23917 "C<$_> itself (since that would remove all newlines from the file):"
23918 msgstr ""
23919
23920 # type: verbatim
23921 #: ../tools/virt-edit.pl:310
23922 #, no-wrap
23923 msgid ""
23924 " my $m = $_; chomp $m; $m =~ /some text$/\n"
23925 "\n"
23926 msgstr ""
23927
23928 # type: =item
23929 #: ../tools/virt-edit.pl:316
23930 msgid "C<EDITOR>"
23931 msgstr ""
23932
23933 # type: textblock
23934 #: ../tools/virt-edit.pl:318
23935 msgid ""
23936 "If set, this string is used as the editor.  It may contain arguments, "
23937 "eg. C<\"emacs -nw\">"
23938 msgstr ""
23939
23940 # type: textblock
23941 #: ../tools/virt-edit.pl:321
23942 msgid "If not set, C<vi> is used."
23943 msgstr ""
23944
23945 # type: textblock
23946 #: ../tools/virt-edit.pl:327
23947 msgid ""
23948 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, "
23949 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>, "
23950 "L<perl(1)>, L<perlre(1)>."
23951 msgstr ""
23952
23953 # type: textblock
23954 #: ../tools/virt-list-filesystems.pl:32
23955 msgid "virt-list-filesystems - List filesystems in a virtual machine or disk image"
23956 msgstr ""
23957
23958 # type: verbatim
23959 #: ../tools/virt-list-filesystems.pl:36
23960 #, no-wrap
23961 msgid ""
23962 " virt-list-filesystems [--options] domname\n"
23963 "\n"
23964 msgstr ""
23965
23966 # type: verbatim
23967 #: ../tools/virt-list-filesystems.pl:38
23968 #, no-wrap
23969 msgid ""
23970 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
23971 "\n"
23972 msgstr ""
23973
23974 # type: textblock
23975 #: ../tools/virt-list-filesystems.pl:42
23976 msgid ""
23977 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
23978 "are contained in a virtual machine or disk image."
23979 msgstr ""
23980
23981 # type: textblock
23982 #: ../tools/virt-list-filesystems.pl:46
23983 msgid ""
23984 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
23985 "functionality.  For more complex cases you should look at the "
23986 "L<guestfish(1)> tool."
23987 msgstr ""
23988
23989 # type: =item
23990 #: ../tools/virt-list-filesystems.pl:86 ../tools/virt-list-partitions.pl:95 ../tools/virt-ls.pl:115
23991 msgid "B<-l> | B<--long>"
23992 msgstr ""
23993
23994 # type: textblock
23995 #: ../tools/virt-list-filesystems.pl:88
23996 msgid ""
23997 "With this option, C<virt-list-filesystems> displays the type of each "
23998 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
23999 msgstr ""
24000
24001 # type: =item
24002 #: ../tools/virt-list-filesystems.pl:95
24003 msgid "B<-a> | B<--all>"
24004 msgstr ""
24005
24006 # type: textblock
24007 #: ../tools/virt-list-filesystems.pl:97
24008 msgid ""
24009 "Normally we only show mountable filesystems.  If this option is given then "
24010 "swap devices are shown too."
24011 msgstr ""
24012
24013 # type: textblock
24014 #: ../tools/virt-list-filesystems.pl:193
24015 msgid ""
24016 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, "
24017 "L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
24018 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
24019 msgstr ""
24020
24021 # type: textblock
24022 #: ../tools/virt-list-partitions.pl:32
24023 msgid "virt-list-partitions - List partitions in a virtual machine or disk image"
24024 msgstr ""
24025
24026 # type: verbatim
24027 #: ../tools/virt-list-partitions.pl:36
24028 #, no-wrap
24029 msgid ""
24030 " virt-list-partitions [--options] domname\n"
24031 "\n"
24032 msgstr ""
24033
24034 # type: verbatim
24035 #: ../tools/virt-list-partitions.pl:38
24036 #, no-wrap
24037 msgid ""
24038 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
24039 "\n"
24040 msgstr ""
24041
24042 # type: textblock
24043 #: ../tools/virt-list-partitions.pl:42
24044 msgid ""
24045 "C<virt-list-partitions> is a command line tool to list the partitions that "
24046 "are contained in a virtual machine or disk image.  It is mainly useful as a "
24047 "first step to using L<virt-resize(1)>."
24048 msgstr ""
24049
24050 # type: textblock
24051 #: ../tools/virt-list-partitions.pl:47
24052 msgid ""
24053 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
24054 "functionality.  For more complex cases you should look at the "
24055 "L<guestfish(1)> tool."
24056 msgstr ""
24057
24058 # type: =item
24059 #: ../tools/virt-list-partitions.pl:87
24060 msgid "B<-h> | B<--human-readable>"
24061 msgstr ""
24062
24063 # type: textblock
24064 #: ../tools/virt-list-partitions.pl:89
24065 msgid "Show sizes in human-readable form (eg. \"1G\")."
24066 msgstr ""
24067
24068 # type: textblock
24069 #: ../tools/virt-list-partitions.pl:97
24070 msgid ""
24071 "With this option, C<virt-list-partitions> displays the type and size of each "
24072 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
24073 msgstr ""
24074
24075 # type: =item
24076 #: ../tools/virt-list-partitions.pl:104
24077 msgid "B<-t> | B<--total>"
24078 msgstr ""
24079
24080 # type: textblock
24081 #: ../tools/virt-list-partitions.pl:106
24082 msgid "Display the total size of each block device (as a separate row or rows)."
24083 msgstr ""
24084
24085 # type: textblock
24086 #: ../tools/virt-list-partitions.pl:231
24087 msgid ""
24088 "L<guestfs(3)>, L<guestfish(1)>, L<virt-list-filesystems(1)>, "
24089 "L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
24090 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
24091 msgstr ""
24092
24093 # type: textblock
24094 #: ../tools/virt-ls.pl:35
24095 msgid "virt-ls - List files in a virtual machine"
24096 msgstr ""
24097
24098 # type: verbatim
24099 #: ../tools/virt-ls.pl:39
24100 #, no-wrap
24101 msgid ""
24102 " virt-ls [--options] domname directory\n"
24103 "\n"
24104 msgstr ""
24105
24106 # type: verbatim
24107 #: ../tools/virt-ls.pl:41
24108 #, no-wrap
24109 msgid ""
24110 " virt-ls [--options] disk.img [disk.img ...] directory\n"
24111 "\n"
24112 msgstr ""
24113
24114 # type: textblock
24115 #: ../tools/virt-ls.pl:45
24116 msgid ""
24117 "C<virt-ls> is a command line tool to list the names of files in a directory "
24118 "inside a virtual machine or disk image."
24119 msgstr ""
24120
24121 # type: textblock
24122 #: ../tools/virt-ls.pl:48
24123 msgid ""
24124 "C<virt-ls> is just a simple wrapper around L<libguestfs(3)> functionality.  "
24125 "For more complex cases you should look at the L<guestfish(1)> tool."
24126 msgstr ""
24127
24128 # type: textblock
24129 #: ../tools/virt-ls.pl:52
24130 msgid ""
24131 "C<virt-ls> can be used in one of three modes: simple, long and recursive.  A "
24132 "simple listing is like the ordinary L<ls(1)> command:"
24133 msgstr ""
24134
24135 # type: verbatim
24136 #: ../tools/virt-ls.pl:55
24137 #, no-wrap
24138 msgid ""
24139 " $ virt-ls myguest /\n"
24140 " bin\n"
24141 " boot\n"
24142 " [etc.]\n"
24143 "\n"
24144 msgstr ""
24145
24146 # type: textblock
24147 #: ../tools/virt-ls.pl:60
24148 msgid "With the C<-l> (C<--long>) option, C<virt-ls> shows more detail:"
24149 msgstr ""
24150
24151 # type: verbatim
24152 #: ../tools/virt-ls.pl:62
24153 #, no-wrap
24154 msgid ""
24155 " $ virt-ls -l myguest /\n"
24156 " total 204\n"
24157 " dr-xr-xr-x.   2 root root   4096 2009-08-25 19:06 bin\n"
24158 " dr-xr-xr-x.   5 root root   3072 2009-08-25 19:06 boot\n"
24159 " [etc.]\n"
24160 "\n"
24161 msgstr ""
24162
24163 # type: textblock
24164 #: ../tools/virt-ls.pl:68
24165 msgid ""
24166 "With the C<-R> (C<--recursive>) option, C<virt-ls> lists the names of files "
24167 "and directories recursively:"
24168 msgstr ""
24169
24170 # type: verbatim
24171 #: ../tools/virt-ls.pl:71
24172 #, no-wrap
24173 msgid ""
24174 " $ virt-ls -R myguest /tmp\n"
24175 " foo\n"
24176 " foo/bar\n"
24177 " [etc.]\n"
24178 "\n"
24179 msgstr ""
24180
24181 # type: textblock
24182 #: ../tools/virt-ls.pl:76
24183 msgid ""
24184 "You I<cannot> combine these options.  To do more complicated things, use "
24185 "L<guestfish(1)>."
24186 msgstr ""
24187
24188 # type: =item
24189 #: ../tools/virt-ls.pl:117
24190 msgid "B<-R> | B<--recursive>"
24191 msgstr ""
24192
24193 # type: textblock
24194 #: ../tools/virt-ls.pl:119
24195 msgid ""
24196 "Select the mode.  With neither of these options, C<virt-ls> produces a "
24197 "simple, flat list of the files in the named directory."
24198 msgstr ""
24199
24200 # type: textblock
24201 #: ../tools/virt-ls.pl:122
24202 msgid ""
24203 "C<virt-ls -l> produces a \"long listing\", which shows more detail (just "
24204 "like the plain C<ls -l> command)."
24205 msgstr ""
24206
24207 # type: textblock
24208 #: ../tools/virt-ls.pl:125
24209 msgid ""
24210 "C<virt-ls -R> produces a recursive list of files starting at the named "
24211 "directory.  See the documentation for the C<guestfs_find> command "
24212 "L<guestfs(3)> for precise details."
24213 msgstr ""
24214
24215 # type: textblock
24216 #: ../tools/virt-ls.pl:129
24217 msgid "You cannot combine these options."
24218 msgstr ""
24219
24220 # type: textblock
24221 #: ../tools/virt-ls.pl:212
24222 msgid ""
24223 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, "
24224 "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
24225 "L<http://libguestfs.org/>."
24226 msgstr ""
24227
24228 # type: textblock
24229 #: ../tools/virt-make-fs.pl:37
24230 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
24231 msgstr ""
24232
24233 # type: verbatim
24234 #: ../tools/virt-make-fs.pl:41
24235 #, no-wrap
24236 msgid ""
24237 " virt-make-fs [--options] input.tar output.img\n"
24238 "\n"
24239 msgstr ""
24240
24241 # type: verbatim
24242 #: ../tools/virt-make-fs.pl:43
24243 #, no-wrap
24244 msgid ""
24245 " virt-make-fs [--options] input.tar.gz output.img\n"
24246 "\n"
24247 msgstr ""
24248
24249 # type: verbatim
24250 #: ../tools/virt-make-fs.pl:45
24251 #, no-wrap
24252 msgid ""
24253 " virt-make-fs [--options] directory output.img\n"
24254 "\n"
24255 msgstr ""
24256
24257 # type: textblock
24258 #: ../tools/virt-make-fs.pl:49
24259 msgid ""
24260 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
24261 "archive or some files in a directory.  It is similar to tools like "
24262 "L<mkisofs(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, "
24263 "it can create common filesystem types like ext2/3 or NTFS, which can be "
24264 "useful if you want to attach these filesystems to existing virtual machines "
24265 "(eg. to import large amounts of read-only data to a VM)."
24266 msgstr ""
24267
24268 # type: textblock
24269 #: ../tools/virt-make-fs.pl:57
24270 msgid "Basic usage is:"
24271 msgstr ""
24272
24273 # type: verbatim
24274 #: ../tools/virt-make-fs.pl:59
24275 #, no-wrap
24276 msgid ""
24277 " virt-make-fs input output\n"
24278 "\n"
24279 msgstr ""
24280
24281 # type: textblock
24282 #: ../tools/virt-make-fs.pl:61
24283 msgid ""
24284 "where C<input> is either a directory containing files that you want to add, "
24285 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
24286 "C<output> is a disk image.  The input type is detected automatically.  The "
24287 "output disk image defaults to a raw ext2 image unless you specify extra "
24288 "flags (see L</OPTIONS> below)."
24289 msgstr ""
24290
24291 # type: =head2
24292 #: ../tools/virt-make-fs.pl:67
24293 msgid "EXTRA SPACE"
24294 msgstr ""
24295
24296 # type: textblock
24297 #: ../tools/virt-make-fs.pl:69
24298 msgid ""
24299 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
24300 "the files that it contains, but might have extra space.  Depending on how "
24301 "you are going to use the output, you might think this extra space is wasted "
24302 "and want to minimize it, or you might want to leave space so that more files "
24303 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
24304 "but you can use the C<--size> flag to leave space in the filesystem if you "
24305 "want it."
24306 msgstr ""
24307
24308 # type: textblock
24309 #: ../tools/virt-make-fs.pl:77
24310 msgid ""
24311 "An alternative way to leave extra space but not make the output image any "
24312 "bigger is to use an alternative disk image format (instead of the default "
24313 "\"raw\" format).  Using C<--format=qcow2> will use the native QEmu/KVM qcow2 "
24314 "image format (check your hypervisor supports this before using it).  This "
24315 "allows you to choose a large C<--size> but the extra space won't actually be "
24316 "allocated in the image until you try to store something in it."
24317 msgstr ""
24318
24319 # type: textblock
24320 #: ../tools/virt-make-fs.pl:85
24321 msgid ""
24322 "Don't forget that you can also use local commands including L<resize2fs(8)> "
24323 "and L<virt-resize(1)> to resize existing filesystems, or rerun "
24324 "virt-make-resize to build another image from scratch."
24325 msgstr ""
24326
24327 # type: =head3
24328 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123 ../tools/virt-make-fs.pl:142
24329 msgid "EXAMPLE"
24330 msgstr ""
24331
24332 # type: verbatim
24333 #: ../tools/virt-make-fs.pl:91
24334 #, no-wrap
24335 msgid ""
24336 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
24337 "\n"
24338 msgstr ""
24339
24340 # type: =head2
24341 #: ../tools/virt-make-fs.pl:93
24342 msgid "FILESYSTEM TYPE"
24343 msgstr ""
24344
24345 # type: textblock
24346 #: ../tools/virt-make-fs.pl:95
24347 msgid ""
24348 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
24349 "libguestfs supports can be used (but I<not> read-only formats like "
24350 "ISO9660).  Here are some of the more common choices:"
24351 msgstr ""
24352
24353 # type: =item
24354 #: ../tools/virt-make-fs.pl:101
24355 msgid "I<ext3>"
24356 msgstr ""
24357
24358 # type: textblock
24359 #: ../tools/virt-make-fs.pl:103
24360 msgid ""
24361 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
24362 "you are not going to use the filesystem in a way that requires the journal, "
24363 "then this is just wasted overhead."
24364 msgstr ""
24365
24366 # type: =item
24367 #: ../tools/virt-make-fs.pl:107
24368 msgid "I<ntfs> or I<vfat>"
24369 msgstr ""
24370
24371 # type: textblock
24372 #: ../tools/virt-make-fs.pl:109
24373 msgid "Useful if exporting data to a Windows guest."
24374 msgstr ""
24375
24376 # type: textblock
24377 #: ../tools/virt-make-fs.pl:111
24378 msgid ""
24379 "I<Note for vfat>: The tar archive or local directory must only contain files "
24380 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
24381 "program running within libguestfs is unable to change the ownership of "
24382 "non-root files, since vfat itself does not support this."
24383 msgstr ""
24384
24385 # type: =item
24386 #: ../tools/virt-make-fs.pl:116
24387 msgid "I<minix>"
24388 msgstr ""
24389
24390 # type: textblock
24391 #: ../tools/virt-make-fs.pl:118
24392 msgid ""
24393 "Lower overhead than C<ext2>, but certain limitations on filename length and "
24394 "total filesystem size."
24395 msgstr ""
24396
24397 # type: verbatim
24398 #: ../tools/virt-make-fs.pl:125
24399 #, no-wrap
24400 msgid ""
24401 " virt-make-fs --type=minix input minixfs.img\n"
24402 "\n"
24403 msgstr ""
24404
24405 # type: =head2
24406 #: ../tools/virt-make-fs.pl:127
24407 msgid "TO PARTITION OR NOT TO PARTITION"
24408 msgstr ""
24409
24410 # type: textblock
24411 #: ../tools/virt-make-fs.pl:129
24412 msgid "Optionally virt-make-fs can add a partition table to the output disk."
24413 msgstr ""
24414
24415 # type: textblock
24416 #: ../tools/virt-make-fs.pl:131
24417 msgid ""
24418 "Adding a partition can make the disk image more compatible with certain "
24419 "virtualized operating systems which don't expect to see a filesystem "
24420 "directly located on a block device (Linux doesn't care and will happily "
24421 "handle both types)."
24422 msgstr ""
24423
24424 # type: textblock
24425 #: ../tools/virt-make-fs.pl:136
24426 msgid ""
24427 "On the other hand, if you have a partition table then the output image is no "
24428 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
24429 "directly on a partitioned disk image.  (However libguestfs tools such as "
24430 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
24431 msgstr ""
24432
24433 # type: textblock
24434 #: ../tools/virt-make-fs.pl:144
24435 msgid "Add an MBR partition:"
24436 msgstr ""
24437
24438 # type: verbatim
24439 #: ../tools/virt-make-fs.pl:146
24440 #, no-wrap
24441 msgid ""
24442 " virt-make-fs --partition -- input disk.img\n"
24443 "\n"
24444 msgstr ""
24445
24446 # type: textblock
24447 #: ../tools/virt-make-fs.pl:148
24448 msgid ""
24449 "If the output disk image could be terabyte-sized or larger, it's better to "
24450 "use an EFI/GPT-compatible partition table:"
24451 msgstr ""
24452
24453 # type: verbatim
24454 #: ../tools/virt-make-fs.pl:151
24455 #, no-wrap
24456 msgid ""
24457 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
24458 "\n"
24459 msgstr ""
24460
24461 # type: =item
24462 #: ../tools/virt-make-fs.pl:177 ../tools/virt-win-reg.pl:196
24463 msgid "B<--debug>"
24464 msgstr ""
24465
24466 # type: textblock
24467 #: ../tools/virt-make-fs.pl:179
24468 msgid "Enable debugging information."
24469 msgstr ""
24470
24471 # type: =item
24472 #: ../tools/virt-make-fs.pl:185
24473 msgid "B<--size=E<lt>NE<gt>>"
24474 msgstr ""
24475
24476 # type: =item
24477 #: ../tools/virt-make-fs.pl:187
24478 msgid "B<--size=+E<lt>NE<gt>>"
24479 msgstr ""
24480
24481 # type: =item
24482 #: ../tools/virt-make-fs.pl:189
24483 msgid "B<-s E<lt>NE<gt>>"
24484 msgstr ""
24485
24486 # type: =item
24487 #: ../tools/virt-make-fs.pl:191
24488 msgid "B<-s +E<lt>NE<gt>>"
24489 msgstr ""
24490
24491 # type: textblock
24492 #: ../tools/virt-make-fs.pl:193
24493 msgid "Use the C<--size> (or C<-s>) option to choose the size of the output image."
24494 msgstr ""
24495
24496 # type: textblock
24497 #: ../tools/virt-make-fs.pl:196
24498 msgid ""
24499 "If this option is I<not> given, then the output image will be just large "
24500 "enough to contain all the files, with not much wasted space."
24501 msgstr ""
24502
24503 # type: textblock
24504 #: ../tools/virt-make-fs.pl:199
24505 msgid ""
24506 "To choose a fixed size output disk, specify an absolute number followed by "
24507 "b/K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
24508 "Petabytes or Exabytes.  This must be large enough to contain all the input "
24509 "files, else you will get an error."
24510 msgstr ""
24511
24512 # type: textblock
24513 #: ../tools/virt-make-fs.pl:204
24514 msgid ""
24515 "To leave extra space, specify C<+> (plus sign) and a number followed by "
24516 "b/K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
24517 "Petabytes or Exabytes.  For example: C<--size=+200M> means enough space for "
24518 "the input files, and (approximately) an extra 200 MB free space."
24519 msgstr ""
24520
24521 # type: textblock
24522 #: ../tools/virt-make-fs.pl:210
24523 msgid ""
24524 "Note that virt-make-fs estimates free space, and therefore will not produce "
24525 "filesystems containing precisely the free space requested.  (It is much more "
24526 "expensive and time-consuming to produce a filesystem which has precisely the "
24527 "desired free space)."
24528 msgstr ""
24529
24530 # type: =item
24531 #: ../tools/virt-make-fs.pl:219
24532 msgid "B<--format=E<lt>fmtE<gt>>"
24533 msgstr ""
24534
24535 # type: =item
24536 #: ../tools/virt-make-fs.pl:221
24537 msgid "B<-F E<lt>fmtE<gt>>"
24538 msgstr ""
24539
24540 # type: textblock
24541 #: ../tools/virt-make-fs.pl:223
24542 msgid "Choose the output disk image format."
24543 msgstr ""
24544
24545 # type: textblock
24546 #: ../tools/virt-make-fs.pl:225
24547 msgid "The default is C<raw> (raw disk image)."
24548 msgstr ""
24549
24550 # type: textblock
24551 #: ../tools/virt-make-fs.pl:227
24552 msgid ""
24553 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
24554 "that would really make sense here is C<qcow2>."
24555 msgstr ""
24556
24557 # type: =item
24558 #: ../tools/virt-make-fs.pl:234
24559 msgid "B<--type=E<lt>fsE<gt>>"
24560 msgstr ""
24561
24562 # type: =item
24563 #: ../tools/virt-make-fs.pl:236
24564 msgid "B<-t E<lt>fsE<gt>>"
24565 msgstr ""
24566
24567 # type: textblock
24568 #: ../tools/virt-make-fs.pl:238
24569 msgid "Choose the output filesystem type."
24570 msgstr ""
24571
24572 # type: textblock
24573 #: ../tools/virt-make-fs.pl:240
24574 msgid "The default is C<ext2>."
24575 msgstr ""
24576
24577 # type: textblock
24578 #: ../tools/virt-make-fs.pl:242
24579 msgid "Any filesystem which is supported read-write by libguestfs can be used here."
24580 msgstr ""
24581
24582 # type: =item
24583 #: ../tools/virt-make-fs.pl:249
24584 msgid "B<--partition>"
24585 msgstr ""
24586
24587 # type: =item
24588 #: ../tools/virt-make-fs.pl:251
24589 msgid "B<--partition=E<lt>parttypeE<gt>>"
24590 msgstr ""
24591
24592 # type: textblock
24593 #: ../tools/virt-make-fs.pl:253
24594 msgid ""
24595 "If specified, this flag adds an MBR partition table to the output disk "
24596 "image."
24597 msgstr ""
24598
24599 # type: textblock
24600 #: ../tools/virt-make-fs.pl:256
24601 msgid ""
24602 "You can change the partition table type, eg. C<--partition=gpt> for large "
24603 "disks."
24604 msgstr ""
24605
24606 # type: textblock
24607 #: ../tools/virt-make-fs.pl:259
24608 msgid ""
24609 "Note that if you just use a lonesome C<--partition>, the Perl option parser "
24610 "might consider the next parameter to be the partition type.  For example:"
24611 msgstr ""
24612
24613 # type: verbatim
24614 #: ../tools/virt-make-fs.pl:263
24615 #, no-wrap
24616 msgid ""
24617 " virt-make-fs --partition input.tar ...\n"
24618 "\n"
24619 msgstr ""
24620
24621 # type: textblock
24622 #: ../tools/virt-make-fs.pl:265
24623 msgid ""
24624 "would cause virt-make-fs to think you wanted to use a partition type of "
24625 "C<input.tar> which is completely wrong.  To avoid this, use C<--> (a double "
24626 "dash) between options and the input file argument:"
24627 msgstr ""
24628
24629 # type: verbatim
24630 #: ../tools/virt-make-fs.pl:269
24631 #, no-wrap
24632 msgid ""
24633 " virt-make-fs --partition -- input.tar ...\n"
24634 "\n"
24635 msgstr ""
24636
24637 # type: textblock
24638 #: ../tools/virt-make-fs.pl:529
24639 msgid ""
24640 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar(1)>, L<mkisofs(1)>, "
24641 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, "
24642 "L<guestfs(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
24643 msgstr ""
24644
24645 # type: textblock
24646 #: ../tools/virt-make-fs.pl:543 ../tools/virt-win-reg.pl:478
24647 msgid ""
24648 "When reporting bugs, please enable debugging and capture the I<complete> "
24649 "output:"
24650 msgstr ""
24651
24652 # type: verbatim
24653 #: ../tools/virt-make-fs.pl:546
24654 #, no-wrap
24655 msgid ""
24656 " export LIBGUESTFS_DEBUG=1\n"
24657 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
24658 "\n"
24659 msgstr ""
24660
24661 # type: textblock
24662 #: ../tools/virt-make-fs.pl:549
24663 msgid ""
24664 "Attach /tmp/virt-make-fs.log to a new bug report at "
24665 "L<https://bugzilla.redhat.com/>"
24666 msgstr ""
24667
24668 # type: textblock
24669 #: ../tools/virt-make-fs.pl:558 ../tools/virt-resize.pl:1413 ../tools/virt-win-reg.pl:493
24670 msgid "Copyright (C) 2010 Red Hat Inc."
24671 msgstr ""
24672
24673 # type: textblock
24674 #: ../tools/virt-rescue.pl:33
24675 msgid "virt-rescue - Run a rescue shell on a virtual machine"
24676 msgstr ""
24677
24678 # type: verbatim
24679 #: ../tools/virt-rescue.pl:37
24680 #, no-wrap
24681 msgid ""
24682 " virt-rescue [--options] domname\n"
24683 "\n"
24684 msgstr ""
24685
24686 # type: verbatim
24687 #: ../tools/virt-rescue.pl:39
24688 #, no-wrap
24689 msgid ""
24690 " virt-rescue [--options] disk.img [disk.img ...]\n"
24691 "\n"
24692 msgstr ""
24693
24694 # type: textblock
24695 #: ../tools/virt-rescue.pl:43
24696 msgid ""
24697 "You must I<not> use C<virt-rescue> on live virtual machines.  Doing so will "
24698 "probably result in disk corruption in the VM.  C<virt-rescue> tries to stop "
24699 "you from doing this, but doesn't catch all cases."
24700 msgstr ""
24701
24702 # type: textblock
24703 #: ../tools/virt-rescue.pl:47
24704 msgid ""
24705 "However if you use the I<--ro> (read only) option, then you can attach a "
24706 "shell to a live virtual machine.  The results might be strange or "
24707 "inconsistent at times but you won't get disk corruption."
24708 msgstr ""
24709
24710 # type: textblock
24711 #: ../tools/virt-rescue.pl:53
24712 msgid ""
24713 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
24714 "need for a CD.  virt-rescue gives you a rescue shell and some simple "
24715 "recovery tools which you can use to examine or rescue a virtual machine or "
24716 "disk image."
24717 msgstr ""
24718
24719 # type: textblock
24720 #: ../tools/virt-rescue.pl:58
24721 msgid ""
24722 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
24723 "on disk image(s):"
24724 msgstr ""
24725
24726 # type: verbatim
24727 #: ../tools/virt-rescue.pl:61
24728 #, no-wrap
24729 msgid ""
24730 " virt-rescue GuestName\n"
24731 "\n"
24732 msgstr ""
24733
24734 # type: verbatim
24735 #: ../tools/virt-rescue.pl:63
24736 #, no-wrap
24737 msgid ""
24738 " virt-rescue --ro /path/to/disk.img\n"
24739 "\n"
24740 msgstr ""
24741
24742 # type: verbatim
24743 #: ../tools/virt-rescue.pl:65
24744 #, no-wrap
24745 msgid ""
24746 " virt-rescue /dev/sdc\n"
24747 "\n"
24748 msgstr ""
24749
24750 # type: textblock
24751 #: ../tools/virt-rescue.pl:67
24752 msgid "For live VMs you I<must> use the --ro option."
24753 msgstr ""
24754
24755 # type: textblock
24756 #: ../tools/virt-rescue.pl:69
24757 msgid ""
24758 "When you run virt-rescue on a virtual machine or disk image, you are placed "
24759 "in an interactive bash shell where you can use many ordinary Linux "
24760 "commands.  What you see in C</> (C</bin>, C</lib> etc) is the rescue "
24761 "appliance.  You must mount the virtual machine's filesystems by hand.  There "
24762 "is an empty directory called C</sysroot> where you can mount filesystems."
24763 msgstr ""
24764
24765 # type: textblock
24766 #: ../tools/virt-rescue.pl:76
24767 msgid ""
24768 "In the example below, we list logical volumes, then choose one to mount "
24769 "under C</sysroot>:"
24770 msgstr ""
24771
24772 # type: verbatim
24773 #: ../tools/virt-rescue.pl:79
24774 #, no-wrap
24775 msgid ""
24776 " ><rescue> lvs\n"
24777 " LV      VG        Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n"
24778 " lv_root vg_f11x64 -wi-a-   8.83G\n"
24779 " lv_swap vg_f11x64 -wi-a- 992.00M\n"
24780 " ><rescue> mount /dev/vg_f11x64/lv_root /sysroot\n"
24781 " ><rescue> ls /sysroot\n"
24782 "\n"
24783 msgstr ""
24784
24785 # type: textblock
24786 #: ../tools/virt-rescue.pl:86
24787 msgid ""
24788 "If you don't know what filesystems are available on the virtual machine then "
24789 "you can use commands such as L<parted(8)> and L<lvs(8)> to find out."
24790 msgstr ""
24791
24792 # type: =head1
24793 #: ../tools/virt-rescue.pl:90 ../tools/virt-resize.pl:1350
24794 msgid "NOTES"
24795 msgstr ""
24796
24797 # type: textblock
24798 #: ../tools/virt-rescue.pl:92
24799 msgid ""
24800 "Virt-rescue can be used on I<any> disk image file or device, not just a "
24801 "virtual machine.  For example you can use it on a blank file if you want to "
24802 "partition that file (although we would recommend using L<guestfish(1)> "
24803 "instead as it is more suitable for this purpose).  You can even use "
24804 "virt-rescue on things like SD cards."
24805 msgstr ""
24806
24807 # type: textblock
24808 #: ../tools/virt-rescue.pl:98
24809 msgid ""
24810 "This tool is just designed for quick interactive hacking on a virtual "
24811 "machine.  For more structured access to a virtual machine disk image, you "
24812 "should use L<guestfs(3)>.  To get a structured shell that you can use to "
24813 "make scripted changes to guests, use L<guestfish(1)>."
24814 msgstr ""
24815
24816 # type: =item
24817 #: ../tools/virt-rescue.pl:127
24818 msgid "B<--append kernelopts>"
24819 msgstr ""
24820
24821 # type: textblock
24822 #: ../tools/virt-rescue.pl:129
24823 msgid "Pass additional options to the rescue kernel."
24824 msgstr ""
24825
24826 # type: =item
24827 #: ../tools/virt-rescue.pl:147
24828 msgid "B<--memsize MB> | B<-m MB>"
24829 msgstr ""
24830
24831 # type: textblock
24832 #: ../tools/virt-rescue.pl:149
24833 msgid ""
24834 "Change the amount of memory allocated to the rescue system.  The default is "
24835 "set by libguestfs and is small but adequate for running system tools.  The "
24836 "occasional program might need more memory.  The parameter is specified in "
24837 "megabytes."
24838 msgstr ""
24839
24840 # type: =item
24841 #: ../tools/virt-rescue.pl:158
24842 msgid "B<--ro> | B<-r>"
24843 msgstr ""
24844
24845 # type: textblock
24846 #: ../tools/virt-rescue.pl:160
24847 msgid "Open the image read-only."
24848 msgstr ""
24849
24850 # type: textblock
24851 #: ../tools/virt-rescue.pl:172
24852 msgid ""
24853 "Enable SELinux in the rescue appliance.  You should read "
24854 "L<guestfs(3)/SELINUX> before using this option."
24855 msgstr ""
24856
24857 # type: textblock
24858 #: ../tools/virt-rescue.pl:228
24859 msgid ""
24860 "Several environment variables affect virt-rescue.  See "
24861 "L<guestfs(3)/ENVIRONMENT VARIABLES> for the complete list."
24862 msgstr ""
24863
24864 # type: textblock
24865 #: ../tools/virt-rescue.pl:233
24866 msgid ""
24867 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, "
24868 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
24869 msgstr ""
24870
24871 # type: textblock
24872 #: ../tools/virt-resize.pl:42
24873 msgid "virt-resize - Resize a virtual machine disk"
24874 msgstr ""
24875
24876 # type: verbatim
24877 #: ../tools/virt-resize.pl:46
24878 #, no-wrap
24879 msgid ""
24880 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
24881 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
24882 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
24883 "\n"
24884 msgstr ""
24885
24886 # type: textblock
24887 #: ../tools/virt-resize.pl:52
24888 msgid ""
24889 "Virt-resize is a tool which can resize a virtual machine disk, making it "
24890 "larger or smaller overall, and resizing or deleting any partitions contained "
24891 "within."
24892 msgstr ""
24893
24894 # type: textblock
24895 #: ../tools/virt-resize.pl:56
24896 msgid ""
24897 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
24898 "not> be used on live virtual machines - for consistent results, shut the "
24899 "virtual machine down before resizing it."
24900 msgstr ""
24901
24902 # type: textblock
24903 #: ../tools/virt-resize.pl:60
24904 msgid ""
24905 "If you are not familiar with the associated tools: "
24906 "L<virt-list-partitions(1)>, L<virt-list-filesystems(1)> and L<virt-df(1)>, "
24907 "we recommend you go and read those manual pages first."
24908 msgstr ""
24909
24910 # type: textblock
24911 #: ../tools/virt-resize.pl:68
24912 msgid ""
24913 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
24914 "fill the extra 5GB of space."
24915 msgstr ""
24916
24917 # type: verbatim
24918 #: ../tools/virt-resize.pl:71
24919 #, no-wrap
24920 msgid ""
24921 " truncate -r olddisk newdisk; truncate -s +5G newdisk\n"
24922 " virt-list-partitions -lht olddisk\n"
24923 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
24924 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
24925 "\n"
24926 msgstr ""
24927
24928 # type: textblock
24929 #: ../tools/virt-resize.pl:76
24930 msgid ""
24931 "As above, but make the /boot partition 200MB bigger, while giving the "
24932 "remaining space to /dev/sda2:"
24933 msgstr ""
24934
24935 # type: verbatim
24936 #: ../tools/virt-resize.pl:79
24937 #, no-wrap
24938 msgid ""
24939 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 olddisk newdisk\n"
24940 "\n"
24941 msgstr ""
24942
24943 # type: =head1
24944 #: ../tools/virt-resize.pl:81
24945 msgid "DETAILED USAGE"
24946 msgstr ""
24947
24948 # type: =head2
24949 #: ../tools/virt-resize.pl:83
24950 msgid "EXPANDING A VIRTUAL MACHINE DISK"
24951 msgstr ""
24952
24953 # type: =item
24954 #: ../tools/virt-resize.pl:87
24955 msgid "1. Shut down the virtual machine"
24956 msgstr ""
24957
24958 # type: =item
24959 #: ../tools/virt-resize.pl:89
24960 msgid "2. Locate input disk image"
24961 msgstr ""
24962
24963 # type: textblock
24964 #: ../tools/virt-resize.pl:91
24965 msgid ""
24966 "Locate the input disk image (ie. the file or device on the host containing "
24967 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
24968 "dumpxml> like this to find the disk image name:"
24969 msgstr ""
24970
24971 # type: verbatim
24972 #: ../tools/virt-resize.pl:95
24973 #, no-wrap
24974 msgid ""
24975 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
24976 " Found 1 nodes:\n"
24977 " -- NODE --\n"
24978 " <source dev=\"/dev/vg/lv_guest\" />\n"
24979 "\n"
24980 msgstr ""
24981
24982 # type: =item
24983 #: ../tools/virt-resize.pl:100
24984 msgid "3. Look at current sizing"
24985 msgstr ""
24986
24987 # type: textblock
24988 #: ../tools/virt-resize.pl:102
24989 msgid "Use L<virt-list-partitions(1)> to display the current partitions and sizes:"
24990 msgstr ""
24991
24992 # type: verbatim
24993 #: ../tools/virt-resize.pl:105
24994 #, no-wrap
24995 msgid ""
24996 " # virt-list-partitions -lht /dev/vg/lv_guest\n"
24997 " /dev/sda1 ext3 101.9M\n"
24998 " /dev/sda2 pv 7.9G\n"
24999 " /dev/sda device 8.0G\n"
25000 "\n"
25001 msgstr ""
25002
25003 # type: textblock
25004 #: ../tools/virt-resize.pl:110
25005 msgid ""
25006 "(This example is a virtual machine with an 8 GB disk which we would like to "
25007 "expand up to 10 GB)."
25008 msgstr ""
25009
25010 # type: =item
25011 #: ../tools/virt-resize.pl:113
25012 msgid "4. Create output disk"
25013 msgstr ""
25014
25015 # type: textblock
25016 #: ../tools/virt-resize.pl:115
25017 msgid ""
25018 "Virt-resize cannot do in-place disk modifications.  You have to have space "
25019 "to store the resized output disk."
25020 msgstr ""
25021
25022 # type: textblock
25023 #: ../tools/virt-resize.pl:118
25024 msgid "To store the resized disk image in a file, create a file of a suitable size:"
25025 msgstr ""
25026
25027 # type: verbatim
25028 #: ../tools/virt-resize.pl:121
25029 #, no-wrap
25030 msgid ""
25031 " # rm -f outdisk\n"
25032 " # truncate -s 10G outdisk\n"
25033 "\n"
25034 msgstr ""
25035
25036 # type: textblock
25037 #: ../tools/virt-resize.pl:124
25038 msgid "Or use L<lvcreate(1)> to create a logical volume:"
25039 msgstr ""
25040
25041 # type: verbatim
25042 #: ../tools/virt-resize.pl:126
25043 #, no-wrap
25044 msgid ""
25045 " # lvcreate -L 10G -n lv_name vg_name\n"
25046 "\n"
25047 msgstr ""
25048
25049 # type: textblock
25050 #: ../tools/virt-resize.pl:128
25051 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
25052 msgstr ""
25053
25054 # type: verbatim
25055 #: ../tools/virt-resize.pl:130
25056 #, no-wrap
25057 msgid ""
25058 " # virsh pool-list\n"
25059 " # virsh vol-create-as poolname newvol 10G\n"
25060 "\n"
25061 msgstr ""
25062
25063 # type: =item
25064 #: ../tools/virt-resize.pl:133
25065 msgid "5. Resize"
25066 msgstr ""
25067
25068 # type: textblock
25069 #: ../tools/virt-resize.pl:135
25070 msgid ""
25071 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
25072 "file) and the output disk.  The output disk is the one created in the "
25073 "previous step."
25074 msgstr ""
25075
25076 # type: verbatim
25077 #: ../tools/virt-resize.pl:139
25078 #, no-wrap
25079 msgid ""
25080 " # virt-resize indisk outdisk\n"
25081 "\n"
25082 msgstr ""
25083
25084 # type: textblock
25085 #: ../tools/virt-resize.pl:141
25086 msgid ""
25087 "This command just copies disk image C<indisk> to disk image C<outdisk> "
25088 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
25089 "larger, then an extra, empty partition is created at the end of the disk "
25090 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
25091 "error."
25092 msgstr ""
25093
25094 # type: textblock
25095 #: ../tools/virt-resize.pl:147
25096 msgid ""
25097 "More realistically you'd want to expand existing partitions in the disk "
25098 "image by passing extra options (for the full list see the L</OPTIONS> "
25099 "section below)."
25100 msgstr ""
25101
25102 # type: textblock
25103 #: ../tools/virt-resize.pl:151
25104 msgid ""
25105 "L</--expand> is the most useful option.  It expands the named partition "
25106 "within the disk to fill any extra space:"
25107 msgstr ""
25108
25109 # type: verbatim
25110 #: ../tools/virt-resize.pl:154
25111 #, no-wrap
25112 msgid ""
25113 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
25114 "\n"
25115 msgstr ""
25116
25117 # type: textblock
25118 #: ../tools/virt-resize.pl:156
25119 msgid ""
25120 "(In this case, an extra partition is I<not> created at the end of the disk, "
25121 "because there will be no unused space)."
25122 msgstr ""
25123
25124 # type: textblock
25125 #: ../tools/virt-resize.pl:159
25126 msgid ""
25127 "L</--resize> is the other commonly used option.  The following would "
25128 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
25129 "rest of the available space:"
25130 msgstr ""
25131
25132 # type: verbatim
25133 #: ../tools/virt-resize.pl:163
25134 #, no-wrap
25135 msgid ""
25136 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
25137 "     indisk outdisk\n"
25138 "\n"
25139 msgstr ""
25140
25141 # type: textblock
25142 #: ../tools/virt-resize.pl:166
25143 msgid ""
25144 "If the expanded partition in the image contains a filesystem or LVM PV, then "
25145 "if virt-resize knows how, it will resize the contents, the equivalent of "
25146 "calling a command such as L<pvresize(8)>, L<resize2fs(8)> or "
25147 "L<ntfsresize(8)>.  However virt-resize does not know how to resize some "
25148 "filesystems, so you would have to online resize them after booting the "
25149 "guest.  And virt-resize also does not resize anything inside an LVM PV, it "
25150 "just resizes the PV itself and leaves the user to resize any LVs inside that "
25151 "PV as desired."
25152 msgstr ""
25153
25154 # type: textblock
25155 #: ../tools/virt-resize.pl:175
25156 msgid "Other options are covered below."
25157 msgstr ""
25158
25159 # type: =item
25160 #: ../tools/virt-resize.pl:177
25161 msgid "6. Test"
25162 msgstr ""
25163
25164 # type: textblock
25165 #: ../tools/virt-resize.pl:179
25166 msgid "Thoroughly test the new disk image I<before> discarding the old one."
25167 msgstr ""
25168
25169 # type: textblock
25170 #: ../tools/virt-resize.pl:181
25171 msgid "If you are using libvirt, edit the XML to point at the new disk:"
25172 msgstr ""
25173
25174 # type: verbatim
25175 #: ../tools/virt-resize.pl:183
25176 #, no-wrap
25177 msgid ""
25178 " # virsh edit guestname\n"
25179 "\n"
25180 msgstr ""
25181
25182 # type: textblock
25183 #: ../tools/virt-resize.pl:185
25184 msgid ""
25185 "Change E<lt>source ...E<gt>, see "
25186 "L<http://libvirt.org/formatdomain.html#elementsDisks>"
25187 msgstr ""
25188
25189 # type: textblock
25190 #: ../tools/virt-resize.pl:188
25191 msgid "Then start up the domain with the new, resized disk:"
25192 msgstr ""
25193
25194 # type: verbatim
25195 #: ../tools/virt-resize.pl:190
25196 #, no-wrap
25197 msgid ""
25198 " # virsh start guestname\n"
25199 "\n"
25200 msgstr ""
25201
25202 # type: textblock
25203 #: ../tools/virt-resize.pl:192
25204 msgid ""
25205 "and check that it still works.  See also the L</NOTES> section below for "
25206 "additional information."
25207 msgstr ""
25208
25209 # type: =item
25210 #: ../tools/virt-resize.pl:195
25211 msgid "7. Resize LVs etc inside the guest"
25212 msgstr ""
25213
25214 # type: textblock
25215 #: ../tools/virt-resize.pl:197
25216 msgid "(This can also be done offline using L<guestfish(1)>)"
25217 msgstr ""
25218
25219 # type: textblock
25220 #: ../tools/virt-resize.pl:199
25221 msgid ""
25222 "Once the guest has booted you should see the new space available, at least "
25223 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
25224 "may need to resize LVs inside PVs, and also resize filesystem types that "
25225 "virt-resize does not know how to expand."
25226 msgstr ""
25227
25228 # type: =head2
25229 #: ../tools/virt-resize.pl:206
25230 msgid "SHRINKING A VIRTUAL MACHINE DISK"
25231 msgstr ""
25232
25233 # type: textblock
25234 #: ../tools/virt-resize.pl:208
25235 msgid ""
25236 "Shrinking is somewhat more complex than expanding, and only an overview is "
25237 "given here."
25238 msgstr ""
25239
25240 # type: textblock
25241 #: ../tools/virt-resize.pl:211
25242 msgid ""
25243 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
25244 "filesystems).  The user has to shrink content before passing the disk image "
25245 "to virt-resize, and virt-resize will check that the content has been shrunk "
25246 "properly."
25247 msgstr ""
25248
25249 # type: textblock
25250 #: ../tools/virt-resize.pl:216
25251 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
25252 msgstr ""
25253
25254 # type: textblock
25255 #: ../tools/virt-resize.pl:218
25256 msgid ""
25257 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
25258 "steps 3 and 4 above to allocate a new disk image."
25259 msgstr ""
25260
25261 # type: textblock
25262 #: ../tools/virt-resize.pl:221
25263 msgid "Then run virt-resize with any of the C<--shrink> and/or C<--resize> options."
25264 msgstr ""
25265
25266 # type: =head2
25267 #: ../tools/virt-resize.pl:224
25268 msgid "IGNORING OR DELETING PARTITIONS"
25269 msgstr ""
25270
25271 # type: textblock
25272 #: ../tools/virt-resize.pl:226
25273 msgid ""
25274 "virt-resize also gives a convenient way to ignore or delete partitions when "
25275 "copying from the input disk to the output disk.  Ignoring a partition speeds "
25276 "up the copy where you don't care about the existing contents of a "
25277 "partition.  Deleting a partition removes it completely, but note that it "
25278 "also renumbers any partitions after the one which is deleted, which can "
25279 "leave some guests unbootable."
25280 msgstr ""
25281
25282 # type: textblock
25283 #: ../tools/virt-resize.pl:243
25284 msgid "Display help."
25285 msgstr ""
25286
25287 # type: =item
25288 #: ../tools/virt-resize.pl:257
25289 msgid "B<--resize part=size>"
25290 msgstr ""
25291
25292 # type: textblock
25293 #: ../tools/virt-resize.pl:259
25294 msgid ""
25295 "Resize the named partition (expanding or shrinking it) so that it has the "
25296 "given size."
25297 msgstr ""
25298
25299 # type: textblock
25300 #: ../tools/virt-resize.pl:262
25301 msgid ""
25302 "C<size> can be expressed as an absolute number followed by b/K/M/G/T/P/E to "
25303 "mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Petabytes or "
25304 "Exabytes; or as a percentage of the current size; or as a relative number or "
25305 "percentage.  For example:"
25306 msgstr ""
25307
25308 # type: verbatim
25309 #: ../tools/virt-resize.pl:267
25310 #, no-wrap
25311 msgid ""
25312 " --resize /dev/sda2=10G\n"
25313 "\n"
25314 msgstr ""
25315
25316 # type: verbatim
25317 #: ../tools/virt-resize.pl:269
25318 #, no-wrap
25319 msgid ""
25320 " --resize /dev/sda4=90%\n"
25321 "\n"
25322 msgstr ""
25323
25324 # type: verbatim
25325 #: ../tools/virt-resize.pl:271
25326 #, no-wrap
25327 msgid ""
25328 " --resize /dev/sda2=+1G\n"
25329 "\n"
25330 msgstr ""
25331
25332 # type: verbatim
25333 #: ../tools/virt-resize.pl:273
25334 #, no-wrap
25335 msgid ""
25336 " --resize /dev/sda2=-200M\n"
25337 "\n"
25338 msgstr ""
25339
25340 # type: verbatim
25341 #: ../tools/virt-resize.pl:275
25342 #, no-wrap
25343 msgid ""
25344 " --resize /dev/sda1=+128K\n"
25345 "\n"
25346 msgstr ""
25347
25348 # type: verbatim
25349 #: ../tools/virt-resize.pl:277
25350 #, no-wrap
25351 msgid ""
25352 " --resize /dev/sda1=+10%\n"
25353 "\n"
25354 msgstr ""
25355
25356 # type: verbatim
25357 #: ../tools/virt-resize.pl:279
25358 #, no-wrap
25359 msgid ""
25360 " --resize /dev/sda1=-10%\n"
25361 "\n"
25362 msgstr ""
25363
25364 # type: textblock
25365 #: ../tools/virt-resize.pl:281
25366 msgid ""
25367 "You can increase the size of any partition.  Virt-resize will expand the "
25368 "direct content of the partition if it knows how (see C<--expand> below)."
25369 msgstr ""
25370
25371 # type: textblock
25372 #: ../tools/virt-resize.pl:285
25373 msgid ""
25374 "You can only I<decrease> the size of partitions that contain filesystems or "
25375 "PVs which have already been shrunk.  Virt-resize will check this has been "
25376 "done before proceeding, or else will print an error (see also "
25377 "C<--resize-force>)."
25378 msgstr ""
25379
25380 # type: textblock
25381 #: ../tools/virt-resize.pl:290 ../tools/virt-resize.pl:382 ../tools/virt-resize.pl:399
25382 msgid "You can give this option multiple times."
25383 msgstr ""
25384
25385 # type: =item
25386 #: ../tools/virt-resize.pl:296
25387 msgid "B<--resize-force part=size>"
25388 msgstr ""
25389
25390 # type: textblock
25391 #: ../tools/virt-resize.pl:298
25392 msgid ""
25393 "This is the same as C<--resize> except that it will let you decrease the "
25394 "size of any partition.  Generally this means you will lose any data which "
25395 "was at the end of the partition you shrink, but you may not care about that "
25396 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
25397 "as a swap partition)."
25398 msgstr ""
25399
25400 # type: textblock
25401 #: ../tools/virt-resize.pl:304
25402 msgid "See also the C<--ignore> option."
25403 msgstr ""
25404
25405 # type: =item
25406 #: ../tools/virt-resize.pl:310
25407 msgid "B<--expand part>"
25408 msgstr ""
25409
25410 # type: textblock
25411 #: ../tools/virt-resize.pl:312
25412 msgid ""
25413 "Expand the named partition so it uses up all extra space (space left over "
25414 "after any other resize changes that you request have been done)."
25415 msgstr ""
25416
25417 # type: textblock
25418 #: ../tools/virt-resize.pl:315
25419 msgid ""
25420 "If virt-resize knows how, it will expand the direct content of the "
25421 "partition.  For example, if the partition is an LVM PV, it will expand the "
25422 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
25423 "content it doesn't know about alone."
25424 msgstr ""
25425
25426 # type: textblock
25427 #: ../tools/virt-resize.pl:320
25428 msgid "Currently virt-resize can resize:"
25429 msgstr ""
25430
25431 # type: textblock
25432 #: ../tools/virt-resize.pl:326
25433 msgid ""
25434 "ext2, ext3 and ext4 filesystems when they are contained directly inside a "
25435 "partition."
25436 msgstr ""
25437
25438 # type: textblock
25439 #: ../tools/virt-resize.pl:331
25440 msgid ""
25441 "NTFS filesystems contained directly in a partition, if libguestfs was "
25442 "compiled with support for NTFS."
25443 msgstr ""
25444
25445 # type: textblock
25446 #: ../tools/virt-resize.pl:334
25447 msgid ""
25448 "The filesystem must have been shut down consistently last time it was used.  "
25449 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
25450 "consistency check, so at the first boot after resizing Windows will check "
25451 "the disk."
25452 msgstr ""
25453
25454 # type: textblock
25455 #: ../tools/virt-resize.pl:341
25456 msgid ""
25457 "LVM PVs (physical volumes).  However virt-resize does I<not> resize anything "
25458 "inside the PV.  The user will have to resize LVs as desired."
25459 msgstr ""
25460
25461 # type: textblock
25462 #: ../tools/virt-resize.pl:347 ../tools/virt-resize.pl:369
25463 msgid "Note that you cannot use C<--expand> and C<--shrink> together."
25464 msgstr ""
25465
25466 # type: =item
25467 #: ../tools/virt-resize.pl:353
25468 msgid "B<--shrink part>"
25469 msgstr ""
25470
25471 # type: textblock
25472 #: ../tools/virt-resize.pl:355
25473 msgid ""
25474 "Shrink the named partition until the overall disk image fits in the "
25475 "destination.  The named partition B<must> contain a filesystem or PV which "
25476 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
25477 "online tools).  Virt-resize will check this and give an error if it has not "
25478 "been done."
25479 msgstr ""
25480
25481 # type: textblock
25482 #: ../tools/virt-resize.pl:361
25483 msgid ""
25484 "The amount by which the overall disk must be shrunk (after carrying out all "
25485 "other operations requested by the user) is called the \"deficit\".  For "
25486 "example, a straight copy (assume no other operations)  from a 5GB disk image "
25487 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
25488 "would give an error unless the user specified a partition to shrink and that "
25489 "partition had more than a gigabyte of free space."
25490 msgstr ""
25491
25492 # type: =item
25493 #: ../tools/virt-resize.pl:375
25494 msgid "B<--ignore part>"
25495 msgstr ""
25496
25497 # type: textblock
25498 #: ../tools/virt-resize.pl:377
25499 msgid ""
25500 "Ignore the named partition.  Effectively this means the partition is "
25501 "allocated on the destination disk, but the content is not copied across from "
25502 "the source disk.  The content of the partition will be blank (all zero "
25503 "bytes)."
25504 msgstr ""
25505
25506 # type: =item
25507 #: ../tools/virt-resize.pl:388
25508 msgid "B<--delete part>"
25509 msgstr ""
25510
25511 # type: textblock
25512 #: ../tools/virt-resize.pl:390
25513 msgid ""
25514 "Delete the named partition.  It would be more accurate to describe this as "
25515 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
25516 "the original disk image is left intact."
25517 msgstr ""
25518
25519 # type: textblock
25520 #: ../tools/virt-resize.pl:394
25521 msgid ""
25522 "Note that when you delete a partition, then anything contained in the "
25523 "partition is also deleted.  Furthermore, this causes any partitions that "
25524 "come after to be I<renumbered>, which can easily make your guest unbootable."
25525 msgstr ""
25526
25527 # type: =item
25528 #: ../tools/virt-resize.pl:405
25529 msgid "B<--LV-expand logvol>"
25530 msgstr ""
25531
25532 # type: textblock
25533 #: ../tools/virt-resize.pl:407
25534 msgid ""
25535 "This takes the logical volume and, as a final step, expands it to fill all "
25536 "the space available in its volume group.  A typical usage, assuming a Linux "
25537 "guest with a single PV C</dev/sda2> and a root device called "
25538 "C</dev/vg_guest/lv_root> would be:"
25539 msgstr ""
25540
25541 # type: verbatim
25542 #: ../tools/virt-resize.pl:412
25543 #, no-wrap
25544 msgid ""
25545 " virt-resize indisk outdisk \\\n"
25546 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
25547 "\n"
25548 msgstr ""
25549
25550 # type: textblock
25551 #: ../tools/virt-resize.pl:415
25552 msgid ""
25553 "This would first expand the partition (and PV), and then expand the root "
25554 "device to fill the extra space in the PV."
25555 msgstr ""
25556
25557 # type: textblock
25558 #: ../tools/virt-resize.pl:418
25559 msgid ""
25560 "The contents of the LV are also resized if virt-resize knows how to do "
25561 "that.  You can stop virt-resize from trying to expand the content by using "
25562 "the option C<--no-expand-content>."
25563 msgstr ""
25564
25565 # type: textblock
25566 #: ../tools/virt-resize.pl:422
25567 msgid "Use L<virt-list-filesystems(1)> to list the filesystems in the guest."
25568 msgstr ""
25569
25570 # type: textblock
25571 #: ../tools/virt-resize.pl:425
25572 msgid ""
25573 "You can give this option multiple times, I<but> it doesn't make sense to do "
25574 "this unless the logical volumes you specify are all in different volume "
25575 "groups."
25576 msgstr ""
25577
25578 # type: =item
25579 #: ../tools/virt-resize.pl:433
25580 msgid "B<--no-copy-boot-loader>"
25581 msgstr ""
25582
25583 # type: textblock
25584 #: ../tools/virt-resize.pl:435
25585 msgid ""
25586 "By default, virt-resize copies over some sectors at the start of the disk "
25587 "(up to the beginning of the first partition).  Commonly these sectors "
25588 "contain the Master Boot Record (MBR) and the boot loader, and are required "
25589 "in order for the guest to boot correctly."
25590 msgstr ""
25591
25592 # type: textblock
25593 #: ../tools/virt-resize.pl:440
25594 msgid ""
25595 "If you specify this flag, then this initial copy is not done.  You may need "
25596 "to reinstall the boot loader in this case."
25597 msgstr ""
25598
25599 # type: =item
25600 #: ../tools/virt-resize.pl:448
25601 msgid "B<--no-extra-partition>"
25602 msgstr ""
25603
25604 # type: textblock
25605 #: ../tools/virt-resize.pl:450
25606 msgid ""
25607 "By default, virt-resize creates an extra partition if there is any extra, "
25608 "unused space after all resizing has happened.  Use this option to prevent "
25609 "the extra partition from being created.  If you do this then the extra space "
25610 "will be inaccessible until you run fdisk, parted, or some other partitioning "
25611 "tool in the guest."
25612 msgstr ""
25613
25614 # type: textblock
25615 #: ../tools/virt-resize.pl:456
25616 msgid ""
25617 "Note that if the surplus space is smaller than 10 MB, no extra partition "
25618 "will be created."
25619 msgstr ""
25620
25621 # type: =item
25622 #: ../tools/virt-resize.pl:463
25623 msgid "B<--no-expand-content>"
25624 msgstr ""
25625
25626 # type: textblock
25627 #: ../tools/virt-resize.pl:465
25628 msgid ""
25629 "By default, virt-resize will try to expand the direct contents of "
25630 "partitions, if it knows how (see C<--expand> option above)."
25631 msgstr ""
25632
25633 # type: textblock
25634 #: ../tools/virt-resize.pl:468
25635 msgid ""
25636 "If you give the C<--no-expand-content> option then virt-resize will not "
25637 "attempt this."
25638 msgstr ""
25639
25640 # type: =item
25641 #: ../tools/virt-resize.pl:475
25642 msgid "B<-d> | B<--debug>"
25643 msgstr ""
25644
25645 # type: textblock
25646 #: ../tools/virt-resize.pl:477 ../tools/virt-win-reg.pl:198
25647 msgid "Enable debugging messages."
25648 msgstr ""
25649
25650 # type: =item
25651 #: ../tools/virt-resize.pl:483
25652 msgid "B<-n> | B<--dryrun>"
25653 msgstr ""
25654
25655 # type: textblock
25656 #: ../tools/virt-resize.pl:485
25657 msgid "Print a summary of what would be done, but don't do anything."
25658 msgstr ""
25659
25660 # type: =item
25661 #: ../tools/virt-resize.pl:491
25662 msgid "B<-q> | B<--quiet>"
25663 msgstr ""
25664
25665 # type: textblock
25666 #: ../tools/virt-resize.pl:493
25667 msgid "Don't print the summary."
25668 msgstr ""
25669
25670 # type: =head2
25671 #: ../tools/virt-resize.pl:1352
25672 msgid "\"Partition 1 does not end on cylinder boundary.\""
25673 msgstr ""
25674
25675 # type: textblock
25676 #: ../tools/virt-resize.pl:1354
25677 msgid ""
25678 "Virt-resize aligns partitions to multiples of 64 sectors.  Usually this "
25679 "means the partitions will not be aligned to the ancient CHS geometry.  "
25680 "However CHS geometry is meaningless for disks manufactured since the early "
25681 "1990s, and doubly so for virtual hard drives.  Alignment of partitions to "
25682 "cylinders is not required by any modern operating system."
25683 msgstr ""
25684
25685 # type: =head2
25686 #: ../tools/virt-resize.pl:1361
25687 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
25688 msgstr ""
25689
25690 # type: textblock
25691 #: ../tools/virt-resize.pl:1363
25692 msgid ""
25693 "In Windows Vista and later versions, Microsoft switched to using a separate "
25694 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
25695 "and C</dev/sda2> is the main (C:) drive.  We have not had any luck resizing "
25696 "the boot partition.  Doing so seems to break the guest completely.  However "
25697 "expanding the second partition (ie. C: drive) should work."
25698 msgstr ""
25699
25700 # type: textblock
25701 #: ../tools/virt-resize.pl:1370
25702 msgid ""
25703 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
25704 "NTFS partitions have been expanded.  This is just a safety check and (unless "
25705 "it find errors) is nothing to worry about."
25706 msgstr ""
25707
25708 # type: =head1
25709 #: ../tools/virt-resize.pl:1374
25710 msgid "ALTERNATIVE TOOLS"
25711 msgstr ""
25712
25713 # type: textblock
25714 #: ../tools/virt-resize.pl:1376
25715 msgid ""
25716 "There are several proprietary tools for resizing partitions.  We won't "
25717 "mention any here."
25718 msgstr ""
25719
25720 # type: textblock
25721 #: ../tools/virt-resize.pl:1379
25722 msgid ""
25723 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
25724 "operations on disk images.  They can resize and move partitions, but I don't "
25725 "think they can do anything with the contents, and they certainly don't "
25726 "understand LVM."
25727 msgstr ""
25728
25729 # type: textblock
25730 #: ../tools/virt-resize.pl:1384
25731 msgid ""
25732 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
25733 "but at a much lower level.  You will probably end up hand-calculating sector "
25734 "offsets, which is something that virt-resize was designed to avoid.  If you "
25735 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
25736 "C<--debug> flag."
25737 msgstr ""
25738
25739 # type: textblock
25740 #: ../tools/virt-resize.pl:1392
25741 msgid ""
25742 "L<virt-list-partitions(1)>, L<virt-list-filesystems(1)>, L<virt-df(1)>, "
25743 "L<guestfs(3)>, L<guestfish(1)>, L<lvm(8)>, L<pvresize(8)>, L<lvresize(8)>, "
25744 "L<resize2fs(8)>, L<ntfsresize(8)>, L<virsh(1)>, L<parted(8)>, "
25745 "L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
25746 msgstr ""
25747
25748 # type: textblock
25749 #: ../tools/virt-tar.pl:34
25750 msgid "virt-tar - Extract or upload files to a virtual machine"
25751 msgstr ""
25752
25753 # type: verbatim
25754 #: ../tools/virt-tar.pl:38
25755 #, no-wrap
25756 msgid ""
25757 " virt-tar [--options] -x domname directory tarball\n"
25758 "\n"
25759 msgstr ""
25760
25761 # type: verbatim
25762 #: ../tools/virt-tar.pl:40
25763 #, no-wrap
25764 msgid ""
25765 " virt-tar [--options] -u domname tarball directory\n"
25766 "\n"
25767 msgstr ""
25768
25769 # type: verbatim
25770 #: ../tools/virt-tar.pl:42
25771 #, no-wrap
25772 msgid ""
25773 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
25774 "\n"
25775 msgstr ""
25776
25777 # type: verbatim
25778 #: ../tools/virt-tar.pl:44
25779 #, no-wrap
25780 msgid ""
25781 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
25782 "\n"
25783 msgstr ""
25784
25785 # type: textblock
25786 #: ../tools/virt-tar.pl:48
25787 msgid "Download C</home> from the VM into a local tarball:"
25788 msgstr ""
25789
25790 # type: verbatim
25791 #: ../tools/virt-tar.pl:50
25792 #, no-wrap
25793 msgid ""
25794 " virt-tar -x domname /home home.tar\n"
25795 "\n"
25796 msgstr ""
25797
25798 # type: verbatim
25799 #: ../tools/virt-tar.pl:52
25800 #, no-wrap
25801 msgid ""
25802 " virt-tar -zx domname /home home.tar.gz\n"
25803 "\n"
25804 msgstr ""
25805
25806 # type: textblock
25807 #: ../tools/virt-tar.pl:54
25808 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
25809 msgstr ""
25810
25811 # type: verbatim
25812 #: ../tools/virt-tar.pl:56
25813 #, no-wrap
25814 msgid ""
25815 " virt-tar -u domname uploadstuff.tar /tmp\n"
25816 "\n"
25817 msgstr ""
25818
25819 # type: verbatim
25820 #: ../tools/virt-tar.pl:58
25821 #, no-wrap
25822 msgid ""
25823 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
25824 "\n"
25825 msgstr ""
25826
25827 # type: textblock
25828 #: ../tools/virt-tar.pl:62
25829 msgid ""
25830 "You must I<not> use C<virt-tar> with the C<-u> option (upload) on live "
25831 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
25832 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
25833 msgstr ""
25834
25835 # type: textblock
25836 #: ../tools/virt-tar.pl:67
25837 msgid ""
25838 "You can use C<-x> (extract) on live virtual machines, but you might get "
25839 "inconsistent results or errors if there is filesystem activity inside the "
25840 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
25841 "work, but the only way to guarantee consistent results is if the virtual "
25842 "machine is shut down."
25843 msgstr ""
25844
25845 # type: textblock
25846 #: ../tools/virt-tar.pl:75
25847 msgid ""
25848 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
25849 "parts of a guest filesystem.  There are many possibilities: making backups, "
25850 "uploading data files, snooping on guest activity, fixing or customizing "
25851 "guests, etc."
25852 msgstr ""
25853
25854 # type: textblock
25855 #: ../tools/virt-tar.pl:80
25856 msgid ""
25857 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
25858 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
25859 "should look at the L<guestfish(1)> tool."
25860 msgstr ""
25861
25862 # type: textblock
25863 #: ../tools/virt-tar.pl:84
25864 msgid ""
25865 "There are two modes of operation: C<-x> (eXtract) downloads a directory and "
25866 "its contents (recursively) from the virtual machine into a local tarball.  "
25867 "C<-u> uploads from a local tarball, unpacking it into a directory inside the "
25868 "virtual machine.  You cannot use these two options together."
25869 msgstr ""
25870
25871 # type: textblock
25872 #: ../tools/virt-tar.pl:90
25873 msgid ""
25874 "In addition, you may need to use the C<-z> (gZip) option to enable "
25875 "compression.  When uploading, you have to specify C<-z> if the upload file "
25876 "is compressed because virt-tar won't detect this on its own."
25877 msgstr ""
25878
25879 # type: textblock
25880 #: ../tools/virt-tar.pl:94
25881 msgid ""
25882 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
25883 "example it cannot do PKZip files or bzip2 compression.  If you want that "
25884 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
25885 "the L<libguestfs(3)> API)."
25886 msgstr ""
25887
25888 # type: =item
25889 #: ../tools/virt-tar.pl:135
25890 msgid "B<-x> | B<--extract> | B<--download>"
25891 msgstr ""
25892
25893 # type: =item
25894 #: ../tools/virt-tar.pl:137
25895 msgid "B<-u> | B<--upload>"
25896 msgstr ""
25897
25898 # type: textblock
25899 #: ../tools/virt-tar.pl:139
25900 msgid ""
25901 "Use C<-x> to extract (download) a directory from a virtual machine to a "
25902 "local tarball."
25903 msgstr ""
25904
25905 # type: textblock
25906 #: ../tools/virt-tar.pl:142
25907 msgid ""
25908 "Use C<-u> to upload and unpack from a local tarball into a virtual machine.  "
25909 "Please read the L</WARNING> section above before using this option."
25910 msgstr ""
25911
25912 # type: textblock
25913 #: ../tools/virt-tar.pl:146
25914 msgid "You must specify exactly one of these options."
25915 msgstr ""
25916
25917 # type: =item
25918 #: ../tools/virt-tar.pl:152
25919 msgid "B<-z> | B<--gzip>"
25920 msgstr ""
25921
25922 # type: textblock
25923 #: ../tools/virt-tar.pl:154
25924 msgid "Specify that the input or output tarball is gzip-compressed."
25925 msgstr ""
25926
25927 # type: textblock
25928 #: ../tools/virt-tar.pl:259
25929 msgid ""
25930 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
25931 "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
25932 "L<http://libguestfs.org/>."
25933 msgstr ""
25934
25935 # type: textblock
25936 #: ../tools/virt-win-reg.pl:38
25937 msgid ""
25938 "virt-win-reg - Export and merge Windows Registry entries from a Windows "
25939 "guest"
25940 msgstr ""
25941
25942 # type: verbatim
25943 #: ../tools/virt-win-reg.pl:42
25944 #, no-wrap
25945 msgid ""
25946 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
25947 "\n"
25948 msgstr ""
25949
25950 # type: verbatim
25951 #: ../tools/virt-win-reg.pl:44
25952 #, no-wrap
25953 msgid ""
25954 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
25955 "\n"
25956 msgstr ""
25957
25958 # type: verbatim
25959 #: ../tools/virt-win-reg.pl:46
25960 #, no-wrap
25961 msgid ""
25962 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
25963 "\n"
25964 msgstr ""
25965
25966 # type: verbatim
25967 #: ../tools/virt-win-reg.pl:48
25968 #, no-wrap
25969 msgid ""
25970 " virt-win-reg --merge domname [input.reg ...]\n"
25971 "\n"
25972 msgstr ""
25973
25974 # type: verbatim
25975 #: ../tools/virt-win-reg.pl:50
25976 #, no-wrap
25977 msgid ""
25978 " virt-win-reg [--options] disk.img ... # instead of domname\n"
25979 "\n"
25980 msgstr ""
25981
25982 # type: textblock
25983 #: ../tools/virt-win-reg.pl:54
25984 msgid ""
25985 "You must I<not> use C<virt-win-reg> with the C<--merge> option on live "
25986 "virtual machines.  If you do this, you I<will> get irreversible disk "
25987 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
25988 "but doesn't catch all cases."
25989 msgstr ""
25990
25991 # type: textblock
25992 #: ../tools/virt-win-reg.pl:59
25993 msgid ""
25994 "Modifying the Windows Registry is an inherently risky operation.  The format "
25995 "is deliberately obscure and undocumented, and Registry changes can leave the "
25996 "system unbootable.  Therefore when using the C<--merge> option, make sure "
25997 "you have a reliable backup first."
25998 msgstr ""
25999
26000 # type: textblock
26001 #: ../tools/virt-win-reg.pl:66
26002 msgid ""
26003 "This program can export and merge Windows Registry entries from a Windows "
26004 "guest."
26005 msgstr ""
26006
26007 # type: textblock
26008 #: ../tools/virt-win-reg.pl:69
26009 msgid ""
26010 "The first parameter is the libvirt guest name or the raw disk image of a "
26011 "Windows guest."
26012 msgstr ""
26013
26014 # type: textblock
26015 #: ../tools/virt-win-reg.pl:72
26016 msgid ""
26017 "If C<--merge> is I<not> specified, then the chosen registry key is "
26018 "displayed/exported (recursively).  For example:"
26019 msgstr ""
26020
26021 # type: verbatim
26022 #: ../tools/virt-win-reg.pl:75
26023 #, no-wrap
26024 msgid ""
26025 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
26026 "\n"
26027 msgstr ""
26028
26029 # type: textblock
26030 #: ../tools/virt-win-reg.pl:77
26031 msgid "You can also display single values from within registry keys, for example:"
26032 msgstr ""
26033
26034 # type: verbatim
26035 #: ../tools/virt-win-reg.pl:80
26036 #, no-wrap
26037 msgid ""
26038 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
26039 " $ virt-win-reg Windows7 $cvkey ProductName\n"
26040 " Windows 7 Enterprise\n"
26041 "\n"
26042 msgstr ""
26043
26044 # type: textblock
26045 #: ../tools/virt-win-reg.pl:84
26046 msgid ""
26047 "With C<--merge>, you can merge a textual regedit file into the Windows "
26048 "Registry:"
26049 msgstr ""
26050
26051 # type: verbatim
26052 #: ../tools/virt-win-reg.pl:87
26053 #, no-wrap
26054 msgid ""
26055 " $ virt-win-reg --merge Windows7 changes.reg\n"
26056 "\n"
26057 msgstr ""
26058
26059 # type: =head2
26060 #: ../tools/virt-win-reg.pl:89
26061 msgid "SUPPORTED SYSTEMS"
26062 msgstr ""
26063
26064 # type: textblock
26065 #: ../tools/virt-win-reg.pl:91
26066 msgid ""
26067 "The program currently supports Windows NT-derived guests starting with "
26068 "Windows XP through to at least Windows 7."
26069 msgstr ""
26070
26071 # type: textblock
26072 #: ../tools/virt-win-reg.pl:94
26073 msgid ""
26074 "Registry support is done for C<HKEY_LOCAL_MACHINE\\SAM>, "
26075 "C<HKEY_LOCAL_MACHINE\\SECURITY>, C<HKEY_LOCAL_MACHINE\\SOFTWARE>, "
26076 "C<HKEY_LOCAL_MACHINE\\SYSTEM> and C<HKEY_USERS\\.DEFAULT>."
26077 msgstr ""
26078
26079 # type: textblock
26080 #: ../tools/virt-win-reg.pl:98
26081 msgid ""
26082 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
26083 "C<HKEY_USERS>."
26084 msgstr ""
26085
26086 # type: textblock
26087 #: ../tools/virt-win-reg.pl:101
26088 msgid ""
26089 "C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are B<not> supported at this "
26090 "time."
26091 msgstr ""
26092
26093 # type: =head2
26094 #: ../tools/virt-win-reg.pl:104
26095 msgid "NOTE"
26096 msgstr ""
26097
26098 # type: textblock
26099 #: ../tools/virt-win-reg.pl:106
26100 msgid ""
26101 "This program is only meant for simple access to the registry.  If you want "
26102 "to do complicated things with the registry, we suggest you download the "
26103 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
26104 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
26105 "L<hivexregedit(1)>."
26106 msgstr ""
26107
26108 # type: =head2
26109 #: ../tools/virt-win-reg.pl:112
26110 msgid "ENCODING"
26111 msgstr ""
26112
26113 # type: textblock
26114 #: ../tools/virt-win-reg.pl:114
26115 msgid ""
26116 "C<virt-win-reg> expects that regedit files have already been reencoded in "
26117 "the local encoding.  Usually on Linux hosts, this means UTF-8 with "
26118 "Unix-style line endings.  Since Windows regedit files are often in UTF-16LE "
26119 "with Windows-style line endings, you may need to reencode the whole file "
26120 "before or after processing."
26121 msgstr ""
26122
26123 # type: textblock
26124 #: ../tools/virt-win-reg.pl:120
26125 msgid ""
26126 "To reencode a file from Windows format to Linux (before processing it with "
26127 "the C<--merge> option), you would do something like this:"
26128 msgstr ""
26129
26130 # type: verbatim
26131 #: ../tools/virt-win-reg.pl:123
26132 #, no-wrap
26133 msgid ""
26134 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
26135 "\n"
26136 msgstr ""
26137
26138 # type: textblock
26139 #: ../tools/virt-win-reg.pl:125
26140 msgid ""
26141 "To go in the opposite direction, after exporting and before sending the file "
26142 "to a Windows user, do something like this:"
26143 msgstr ""
26144
26145 # type: verbatim
26146 #: ../tools/virt-win-reg.pl:128
26147 #, no-wrap
26148 msgid ""
26149 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
26150 "\n"
26151 msgstr ""
26152
26153 # type: textblock
26154 #: ../tools/virt-win-reg.pl:130
26155 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
26156 msgstr ""
26157
26158 # type: textblock
26159 #: ../tools/virt-win-reg.pl:132
26160 msgid ""
26161 "If you are unsure about the current encoding, use the L<file(1)> command.  "
26162 "Recent versions of Windows regedit.exe produce a UTF-16LE file with "
26163 "Windows-style (CRLF) line endings, like this:"
26164 msgstr ""
26165
26166 # type: verbatim
26167 #: ../tools/virt-win-reg.pl:136
26168 #, no-wrap
26169 msgid ""
26170 " $ file software.reg\n"
26171 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
26172 " with CRLF line terminators\n"
26173 "\n"
26174 msgstr ""
26175
26176 # type: textblock
26177 #: ../tools/virt-win-reg.pl:140
26178 msgid "This file would need conversion before you could C<--merge> it."
26179 msgstr ""
26180
26181 # type: =head2
26182 #: ../tools/virt-win-reg.pl:142
26183 msgid "SHELL QUOTING"
26184 msgstr ""
26185
26186 # type: textblock
26187 #: ../tools/virt-win-reg.pl:144
26188 msgid ""
26189 "Be careful when passing parameters containing C<\\> (backslash) in the "
26190 "shell.  Usually you will have to use 'single quotes' or double backslashes "
26191 "(but not both) to protect them from the shell."
26192 msgstr ""
26193
26194 # type: textblock
26195 #: ../tools/virt-win-reg.pl:148
26196 msgid "Paths and value names are case-insensitive."
26197 msgstr ""
26198
26199 # type: =head2
26200 #: ../tools/virt-win-reg.pl:150
26201 msgid "CurrentControlSet etc."
26202 msgstr ""
26203
26204 # type: textblock
26205 #: ../tools/virt-win-reg.pl:152
26206 msgid ""
26207 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
26208 "Registry at the level of the hive file, and therefore you cannot modify "
26209 "these."
26210 msgstr ""
26211
26212 # type: textblock
26213 #: ../tools/virt-win-reg.pl:156
26214 msgid ""
26215 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
26216 "circumstances it might refer to another control set.  The way to find out is "
26217 "to look at the C<HKLM\\SYSTEM\\Select> key:"
26218 msgstr ""
26219
26220 # type: verbatim
26221 #: ../tools/virt-win-reg.pl:160
26222 #, no-wrap
26223 msgid ""
26224 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
26225 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
26226 " \"Current\"=dword:00000001\n"
26227 " \"Default\"=dword:00000001\n"
26228 " \"Failed\"=dword:00000000\n"
26229 " \"LastKnownGood\"=dword:00000002\n"
26230 "\n"
26231 msgstr ""
26232
26233 # type: textblock
26234 #: ../tools/virt-win-reg.pl:167
26235 msgid "\"Default\" is the one which Windows will choose when it boots."
26236 msgstr ""
26237
26238 # type: textblock
26239 #: ../tools/virt-win-reg.pl:169
26240 msgid "Similarly, other C<Current...> keys in the path may need to be replaced."
26241 msgstr ""
26242
26243 # type: =item
26244 #: ../tools/virt-win-reg.pl:216
26245 msgid "B<--merge>"
26246 msgstr ""
26247
26248 # type: textblock
26249 #: ../tools/virt-win-reg.pl:218
26250 msgid ""
26251 "In merge mode, this merges a textual regedit file into the Windows Registry "
26252 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
26253 "displays or exports Registry entries instead."
26254 msgstr ""
26255
26256 # type: textblock
26257 #: ../tools/virt-win-reg.pl:222
26258 msgid ""
26259 "Note that C<--merge> is I<unsafe> to use on live virtual machines, and will "
26260 "result in disk corruption.  However exporting (without this flag)  is always "
26261 "safe."
26262 msgstr ""
26263
26264 # type: =item
26265 #: ../tools/virt-win-reg.pl:230
26266 msgid "B<--encoding> UTF-16LE|ASCII"
26267 msgstr ""
26268
26269 # type: textblock
26270 #: ../tools/virt-win-reg.pl:232
26271 msgid ""
26272 "When merging (only), you may need to specify the encoding for strings to be "
26273 "used in the hive file.  This is explained in detail in "
26274 "L<Win::Hivex::Regedit(3)/ENCODING STRINGS>."
26275 msgstr ""
26276
26277 # type: textblock
26278 #: ../tools/virt-win-reg.pl:236
26279 msgid ""
26280 "The default is to use UTF-16LE, which should work with recent versions of "
26281 "Windows."
26282 msgstr ""
26283
26284 # type: textblock
26285 #: ../tools/virt-win-reg.pl:463
26286 msgid ""
26287 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, "
26288 "L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, "
26289 "L<Sys::Guestfs::Lib(3)>, L<Win::Hivex(3)>, L<Win::Hivex::Regedit(3)>, "
26290 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
26291 msgstr ""
26292
26293 # type: verbatim
26294 #: ../tools/virt-win-reg.pl:481
26295 #, no-wrap
26296 msgid ""
26297 " export LIBGUESTFS_DEBUG=1\n"
26298 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
26299 "\n"
26300 msgstr ""
26301
26302 # type: textblock
26303 #: ../tools/virt-win-reg.pl:484
26304 msgid ""
26305 "Attach /tmp/virt-win-reg.log to a new bug report at "
26306 "L<https://bugzilla.redhat.com/>"
26307 msgstr ""