Version 1.5.22.
[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.22\n"
10 "Report-Msgid-Bugs-To: libguestfs@redhat.com\n"
11 "POT-Creation-Date: 2010-10-19 15:17+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-edit.pl:31 ../tools/virt-win-reg.pl:34 ../tools/virt-df.pl:32 ../tools/virt-ls.pl:31 ../tools/virt-resize.pl:38 ../tools/virt-list-filesystems.pl:28 ../tools/virt-cat.pl:30 ../tools/virt-tar.pl:30 ../tools/virt-rescue.pl:29 ../tools/virt-make-fs.pl:33 ../tools/virt-list-partitions.pl:28
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-edit.pl:33 ../tools/virt-win-reg.pl:36 ../tools/virt-df.pl:34 ../tools/virt-ls.pl:33 ../tools/virt-resize.pl:40 ../tools/virt-list-filesystems.pl:30 ../tools/virt-cat.pl:32 ../tools/virt-tar.pl:32 ../tools/virt-rescue.pl:31 ../tools/virt-make-fs.pl:35 ../tools/virt-list-partitions.pl:30
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-edit.pl:37 ../tools/virt-win-reg.pl:40 ../tools/virt-df.pl:38 ../tools/virt-ls.pl:37 ../tools/virt-resize.pl:44 ../tools/virt-list-filesystems.pl:34 ../tools/virt-cat.pl:36 ../tools/virt-tar.pl:36 ../tools/virt-rescue.pl:35 ../tools/virt-make-fs.pl:39 ../tools/virt-list-partitions.pl:34
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:30 ../test-tool/libguestfs-test-tool.pod:11 ../fuse/guestmount.pod:16 ../inspector/virt-inspector.pl:48 ../tools/virt-edit.pl:51 ../tools/virt-win-reg.pl:64 ../tools/virt-df.pl:46 ../tools/virt-ls.pl:43 ../tools/virt-resize.pl:50 ../tools/virt-list-filesystems.pl:40 ../tools/virt-cat.pl:42 ../tools/virt-tar.pl:73 ../tools/virt-rescue.pl:51 ../tools/virt-make-fs.pl:47 ../tools/virt-list-partitions.pl:40
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:1254 ../src/guestfs.pod:1259 ../src/guestfs.pod:1263 ../src/guestfs.pod:1365 ../src/guestfs.pod:1369 ../src/guestfs.pod:1373 ../src/guestfs.pod:1378 ../src/guestfs.pod:1386 ../src/guestfs.pod:1405 ../src/guestfs.pod:1413 ../src/guestfs.pod:1643 ../src/guestfs.pod:1649 ../src/guestfs.pod:1654 ../src/guestfs.pod:1660 ../src/guestfs.pod:1767 ../src/guestfs.pod:1771 ../src/guestfs.pod:1775 ../src/guestfs.pod:1779 ../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:338 ../fish/guestfish.pod:342 ../fish/guestfish.pod:346 ../fish/guestfish.pod:350 ../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:348 ../tools/virt-resize.pl:353 ../tools/virt-resize.pl:363
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:589
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: =item
1511 #: ../src/guestfs.pod:750
1512 msgid "Ambiguity between devices and paths"
1513 msgstr ""
1514
1515 # type: textblock
1516 #: ../src/guestfs.pod:752
1517 msgid ""
1518 "There is a subtle ambiguity in the API between a device name "
1519 "(eg. C</dev/sdb2>) and a similar pathname.  A file might just happen to be "
1520 "called C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
1521 msgstr ""
1522
1523 # type: textblock
1524 #: ../src/guestfs.pod:757
1525 msgid ""
1526 "In the current API we usually resolve this ambiguity by having two separate "
1527 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
1528 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
1529 "detecting if the path supplied begins with C</dev/>."
1530 msgstr ""
1531
1532 # type: textblock
1533 #: ../src/guestfs.pod:763
1534 msgid ""
1535 "To avoid both the ambiguity and the need to duplicate some calls, we could "
1536 "make paths/devices into structured names.  One way to do this would be to "
1537 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
1538 "aspect of grub.  Another way would be to use a structured type, equivalent "
1539 "to this OCaml type:"
1540 msgstr ""
1541
1542 # type: verbatim
1543 #: ../src/guestfs.pod:769
1544 #, no-wrap
1545 msgid ""
1546 " type path = Path of string | Device of int | Partition of int * int\n"
1547 "\n"
1548 msgstr ""
1549
1550 # type: textblock
1551 #: ../src/guestfs.pod:771
1552 msgid "which would allow you to pass arguments like:"
1553 msgstr ""
1554
1555 # type: verbatim
1556 #: ../src/guestfs.pod:773
1557 #, no-wrap
1558 msgid ""
1559 " Path \"/foo/bar\"\n"
1560 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
1561 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
1562 " Path \"/dev/sdb2\"    (* not a device *)\n"
1563 "\n"
1564 msgstr ""
1565
1566 # type: textblock
1567 #: ../src/guestfs.pod:778
1568 msgid ""
1569 "As you can see there are still problems to resolve even with this "
1570 "representation.  Also consider how it might work in guestfish."
1571 msgstr ""
1572
1573 # type: =head2
1574 #: ../src/guestfs.pod:783
1575 msgid "PROTOCOL LIMITS"
1576 msgstr ""
1577
1578 # type: textblock
1579 #: ../src/guestfs.pod:785
1580 msgid ""
1581 "Internally libguestfs uses a message-based protocol to pass API calls and "
1582 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
1583 "plenty more detail about this).  The maximum message size used by the "
1584 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
1585 "aware of this limit.  The API calls which may be affected are individually "
1586 "documented, with a link back to this section of the documentation."
1587 msgstr ""
1588
1589 # type: textblock
1590 #: ../src/guestfs.pod:793
1591 msgid ""
1592 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
1593 "a simple string.  Because this string is at some point internally encoded as "
1594 "a message, the maximum size that it can return is slightly under 4 MB.  If "
1595 "the requested file is larger than this then you will get an error."
1596 msgstr ""
1597
1598 # type: textblock
1599 #: ../src/guestfs.pod:799
1600 msgid ""
1601 "In order to transfer large files into and out of the guest filesystem, you "
1602 "need to use particular calls that support this.  The sections L</UPLOADING> "
1603 "and L</DOWNLOADING> document how to do this."
1604 msgstr ""
1605
1606 # type: textblock
1607 #: ../src/guestfs.pod:803
1608 msgid ""
1609 "You might also consider mounting the disk image using our FUSE filesystem "
1610 "support (L<guestmount(1)>)."
1611 msgstr ""
1612
1613 # type: =head2
1614 #: ../src/guestfs.pod:806
1615 msgid "KEYS AND PASSPHRASES"
1616 msgstr ""
1617
1618 # type: textblock
1619 #: ../src/guestfs.pod:808
1620 msgid ""
1621 "Certain libguestfs calls take a parameter that contains sensitive key "
1622 "material, passed in as a C string."
1623 msgstr ""
1624
1625 # type: textblock
1626 #: ../src/guestfs.pod:811
1627 msgid ""
1628 "In the future we would hope to change the libguestfs implementation so that "
1629 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
1630 "swap.  However this is I<not> done at the moment, because of the complexity "
1631 "of such an implementation."
1632 msgstr ""
1633
1634 # type: textblock
1635 #: ../src/guestfs.pod:816
1636 msgid ""
1637 "Therefore you should be aware that any key parameter you pass to libguestfs "
1638 "might end up being written out to the swap partition.  If this is a concern, "
1639 "scrub the swap partition or don't use libguestfs on encrypted devices."
1640 msgstr ""
1641
1642 # type: =head1
1643 #: ../src/guestfs.pod:821
1644 msgid "CONNECTION MANAGEMENT"
1645 msgstr ""
1646
1647 # type: =head2
1648 #: ../src/guestfs.pod:823
1649 msgid "guestfs_h *"
1650 msgstr ""
1651
1652 # type: textblock
1653 #: ../src/guestfs.pod:825
1654 msgid ""
1655 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
1656 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
1657 "handle and release all resources used."
1658 msgstr ""
1659
1660 # type: textblock
1661 #: ../src/guestfs.pod:829
1662 msgid ""
1663 "For information on using multiple handles and threads, see the section "
1664 "L</MULTIPLE HANDLES AND MULTIPLE THREADS> below."
1665 msgstr ""
1666
1667 # type: =head2
1668 #: ../src/guestfs.pod:832
1669 msgid "guestfs_create"
1670 msgstr ""
1671
1672 # type: verbatim
1673 #: ../src/guestfs.pod:834
1674 #, no-wrap
1675 msgid ""
1676 " guestfs_h *guestfs_create (void);\n"
1677 "\n"
1678 msgstr ""
1679
1680 # type: textblock
1681 #: ../src/guestfs.pod:836
1682 msgid "Create a connection handle."
1683 msgstr ""
1684
1685 # type: textblock
1686 #: ../src/guestfs.pod:838
1687 msgid "You have to call L</guestfs_add_drive> on the handle at least once."
1688 msgstr ""
1689
1690 # type: textblock
1691 #: ../src/guestfs.pod:840
1692 msgid ""
1693 "This function returns a non-NULL pointer to a handle on success or NULL on "
1694 "error."
1695 msgstr ""
1696
1697 # type: textblock
1698 #: ../src/guestfs.pod:843
1699 msgid "After configuring the handle, you have to call L</guestfs_launch>."
1700 msgstr ""
1701
1702 # type: textblock
1703 #: ../src/guestfs.pod:845
1704 msgid ""
1705 "You may also want to configure error handling for the handle.  See L</ERROR "
1706 "HANDLING> section below."
1707 msgstr ""
1708
1709 # type: =head2
1710 #: ../src/guestfs.pod:848
1711 msgid "guestfs_close"
1712 msgstr ""
1713
1714 # type: verbatim
1715 #: ../src/guestfs.pod:850
1716 #, no-wrap
1717 msgid ""
1718 " void guestfs_close (guestfs_h *g);\n"
1719 "\n"
1720 msgstr ""
1721
1722 # type: textblock
1723 #: ../src/guestfs.pod:852
1724 msgid "This closes the connection handle and frees up all resources used."
1725 msgstr ""
1726
1727 # type: =head1
1728 #: ../src/guestfs.pod:854
1729 msgid "ERROR HANDLING"
1730 msgstr ""
1731
1732 # type: textblock
1733 #: ../src/guestfs.pod:856
1734 msgid ""
1735 "The convention in all functions that return C<int> is that they return C<-1> "
1736 "to indicate an error.  You can get additional information on errors by "
1737 "calling L</guestfs_last_error> and/or by setting up an error handler with "
1738 "L</guestfs_set_error_handler>."
1739 msgstr ""
1740
1741 # type: textblock
1742 #: ../src/guestfs.pod:861
1743 msgid "The default error handler prints the information string to C<stderr>."
1744 msgstr ""
1745
1746 # type: textblock
1747 #: ../src/guestfs.pod:863
1748 msgid ""
1749 "Out of memory errors are handled differently.  The default action is to call "
1750 "L<abort(3)>.  If this is undesirable, then you can set a handler using "
1751 "L</guestfs_set_out_of_memory_handler>."
1752 msgstr ""
1753
1754 # type: =head2
1755 #: ../src/guestfs.pod:867
1756 msgid "guestfs_last_error"
1757 msgstr ""
1758
1759 # type: verbatim
1760 #: ../src/guestfs.pod:869
1761 #, no-wrap
1762 msgid ""
1763 " const char *guestfs_last_error (guestfs_h *g);\n"
1764 "\n"
1765 msgstr ""
1766
1767 # type: textblock
1768 #: ../src/guestfs.pod:871
1769 msgid ""
1770 "This returns the last error message that happened on C<g>.  If there has not "
1771 "been an error since the handle was created, then this returns C<NULL>."
1772 msgstr ""
1773
1774 # type: textblock
1775 #: ../src/guestfs.pod:875
1776 msgid ""
1777 "The lifetime of the returned string is until the next error occurs, or "
1778 "L</guestfs_close> is called."
1779 msgstr ""
1780
1781 # type: textblock
1782 #: ../src/guestfs.pod:878
1783 msgid ""
1784 "The error string is not localized (ie. is always in English), because this "
1785 "makes searching for error messages in search engines give the largest number "
1786 "of results."
1787 msgstr ""
1788
1789 # type: =head2
1790 #: ../src/guestfs.pod:882
1791 msgid "guestfs_set_error_handler"
1792 msgstr ""
1793
1794 # type: verbatim
1795 #: ../src/guestfs.pod:884
1796 #, no-wrap
1797 msgid ""
1798 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
1799 "                                           void *opaque,\n"
1800 "                                           const char *msg);\n"
1801 " void guestfs_set_error_handler (guestfs_h *g,\n"
1802 "                                 guestfs_error_handler_cb cb,\n"
1803 "                                 void *opaque);\n"
1804 "\n"
1805 msgstr ""
1806
1807 # type: textblock
1808 #: ../src/guestfs.pod:891
1809 msgid ""
1810 "The callback C<cb> will be called if there is an error.  The parameters "
1811 "passed to the callback are an opaque data pointer and the error message "
1812 "string."
1813 msgstr ""
1814
1815 # type: textblock
1816 #: ../src/guestfs.pod:895
1817 msgid ""
1818 "Note that the message string C<msg> is freed as soon as the callback "
1819 "function returns, so if you want to stash it somewhere you must make your "
1820 "own copy."
1821 msgstr ""
1822
1823 # type: textblock
1824 #: ../src/guestfs.pod:899
1825 msgid "The default handler prints messages on C<stderr>."
1826 msgstr ""
1827
1828 # type: textblock
1829 #: ../src/guestfs.pod:901
1830 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
1831 msgstr ""
1832
1833 # type: =head2
1834 #: ../src/guestfs.pod:903
1835 msgid "guestfs_get_error_handler"
1836 msgstr ""
1837
1838 # type: verbatim
1839 #: ../src/guestfs.pod:905
1840 #, no-wrap
1841 msgid ""
1842 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
1843 "                                                     void **opaque_rtn);\n"
1844 "\n"
1845 msgstr ""
1846
1847 # type: textblock
1848 #: ../src/guestfs.pod:908
1849 msgid "Returns the current error handler callback."
1850 msgstr ""
1851
1852 # type: =head2
1853 #: ../src/guestfs.pod:910
1854 msgid "guestfs_set_out_of_memory_handler"
1855 msgstr ""
1856
1857 # type: verbatim
1858 #: ../src/guestfs.pod:912
1859 #, no-wrap
1860 msgid ""
1861 " typedef void (*guestfs_abort_cb) (void);\n"
1862 " int guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
1863 "                                        guestfs_abort_cb);\n"
1864 "\n"
1865 msgstr ""
1866
1867 # type: textblock
1868 #: ../src/guestfs.pod:916
1869 msgid ""
1870 "The callback C<cb> will be called if there is an out of memory situation.  "
1871 "I<Note this callback must not return>."
1872 msgstr ""
1873
1874 # type: textblock
1875 #: ../src/guestfs.pod:919
1876 msgid "The default is to call L<abort(3)>."
1877 msgstr ""
1878
1879 # type: textblock
1880 #: ../src/guestfs.pod:921
1881 msgid "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
1882 msgstr ""
1883
1884 # type: =head2
1885 #: ../src/guestfs.pod:924
1886 msgid "guestfs_get_out_of_memory_handler"
1887 msgstr ""
1888
1889 # type: verbatim
1890 #: ../src/guestfs.pod:926
1891 #, no-wrap
1892 msgid ""
1893 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
1894 "\n"
1895 msgstr ""
1896
1897 # type: textblock
1898 #: ../src/guestfs.pod:928
1899 msgid "This returns the current out of memory handler."
1900 msgstr ""
1901
1902 # type: =head1
1903 #: ../src/guestfs.pod:930
1904 msgid "PATH"
1905 msgstr ""
1906
1907 # type: textblock
1908 #: ../src/guestfs.pod:932
1909 msgid ""
1910 "Libguestfs needs a kernel and initrd.img, which it finds by looking along an "
1911 "internal path."
1912 msgstr ""
1913
1914 # type: textblock
1915 #: ../src/guestfs.pod:935
1916 msgid ""
1917 "By default it looks for these in the directory C<$libdir/guestfs> "
1918 "(eg. C</usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
1919 msgstr ""
1920
1921 # type: textblock
1922 #: ../src/guestfs.pod:938
1923 msgid ""
1924 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
1925 "to change the directories that libguestfs will search in.  The value is a "
1926 "colon-separated list of paths.  The current directory is I<not> searched "
1927 "unless the path contains an empty element or C<.>.  For example "
1928 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
1929 "then C</usr/lib/guestfs>."
1930 msgstr ""
1931
1932 # type: =head1
1933 #: ../src/guestfs.pod:945
1934 msgid "HIGH-LEVEL API ACTIONS"
1935 msgstr ""
1936
1937 # type: =head2
1938 #: ../src/guestfs.pod:947
1939 msgid "ABI GUARANTEE"
1940 msgstr ""
1941
1942 # type: textblock
1943 #: ../src/guestfs.pod:949
1944 msgid ""
1945 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
1946 "actions as outlined in this section.  Although we will deprecate some "
1947 "actions, for example if they get replaced by newer calls, we will keep the "
1948 "old actions forever.  This allows you the developer to program in confidence "
1949 "against the libguestfs API."
1950 msgstr ""
1951
1952 # type: textblock
1953 #: ../src/guestfs.pod:955 ../fish/guestfish.pod:819
1954 msgid "@ACTIONS@"
1955 msgstr ""
1956
1957 # type: =head1
1958 #: ../src/guestfs.pod:957
1959 msgid "STRUCTURES"
1960 msgstr ""
1961
1962 # type: textblock
1963 #: ../src/guestfs.pod:959
1964 msgid "@STRUCTS@"
1965 msgstr ""
1966
1967 # type: =head1
1968 #: ../src/guestfs.pod:961
1969 msgid "AVAILABILITY"
1970 msgstr ""
1971
1972 # type: =head2
1973 #: ../src/guestfs.pod:963
1974 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
1975 msgstr ""
1976
1977 # type: textblock
1978 #: ../src/guestfs.pod:965
1979 msgid ""
1980 "Using L</guestfs_available> you can test availability of the following "
1981 "groups of functions.  This test queries the appliance to see if the "
1982 "appliance you are currently using supports the functionality."
1983 msgstr ""
1984
1985 # type: textblock
1986 #: ../src/guestfs.pod:970
1987 msgid "@AVAILABILITY@"
1988 msgstr ""
1989
1990 # type: =head2
1991 #: ../src/guestfs.pod:972
1992 msgid "GUESTFISH supported COMMAND"
1993 msgstr ""
1994
1995 # type: textblock
1996 #: ../src/guestfs.pod:974
1997 msgid ""
1998 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
1999 "prints out the available groups and whether they are supported by this build "
2000 "of libguestfs.  Note however that you have to do C<run> first."
2001 msgstr ""
2002
2003 # type: =head2
2004 #: ../src/guestfs.pod:979
2005 msgid "SINGLE CALLS AT COMPILE TIME"
2006 msgstr ""
2007
2008 # type: textblock
2009 #: ../src/guestfs.pod:981
2010 msgid ""
2011 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
2012 "function, such as:"
2013 msgstr ""
2014
2015 # type: verbatim
2016 #: ../src/guestfs.pod:984
2017 #, no-wrap
2018 msgid ""
2019 " #define LIBGUESTFS_HAVE_DD 1\n"
2020 "\n"
2021 msgstr ""
2022
2023 # type: textblock
2024 #: ../src/guestfs.pod:986
2025 msgid "if L</guestfs_dd> is available."
2026 msgstr ""
2027
2028 # type: textblock
2029 #: ../src/guestfs.pod:988
2030 msgid ""
2031 "Before version 1.5.8, if you needed to test whether a single libguestfs "
2032 "function is available at compile time, we recommended using build tools such "
2033 "as autoconf or cmake.  For example in autotools you could use:"
2034 msgstr ""
2035
2036 # type: verbatim
2037 #: ../src/guestfs.pod:993
2038 #, no-wrap
2039 msgid ""
2040 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
2041 " AC_CHECK_FUNCS([guestfs_dd])\n"
2042 "\n"
2043 msgstr ""
2044
2045 # type: textblock
2046 #: ../src/guestfs.pod:996
2047 msgid ""
2048 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
2049 "in your program."
2050 msgstr ""
2051
2052 # type: =head2
2053 #: ../src/guestfs.pod:999
2054 msgid "SINGLE CALLS AT RUN TIME"
2055 msgstr ""
2056
2057 # type: textblock
2058 #: ../src/guestfs.pod:1001
2059 msgid ""
2060 "Testing at compile time doesn't guarantee that a function really exists in "
2061 "the library.  The reason is that you might be dynamically linked against a "
2062 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
2063 "This situation unfortunately results in a segmentation fault, which is a "
2064 "shortcoming of the C dynamic linking system itself."
2065 msgstr ""
2066
2067 # type: textblock
2068 #: ../src/guestfs.pod:1008
2069 msgid ""
2070 "You can use L<dlopen(3)> to test if a function is available at run time, as "
2071 "in this example program (note that you still need the compile time check as "
2072 "well):"
2073 msgstr ""
2074
2075 # type: verbatim
2076 #: ../src/guestfs.pod:1012
2077 #, no-wrap
2078 msgid ""
2079 " #include <stdio.h>\n"
2080 " #include <stdlib.h>\n"
2081 " #include <unistd.h>\n"
2082 " #include <dlfcn.h>\n"
2083 " #include <guestfs.h>\n"
2084 " \n"
2085 msgstr ""
2086
2087 # type: verbatim
2088 #: ../src/guestfs.pod:1018
2089 #, no-wrap
2090 msgid ""
2091 " main ()\n"
2092 " {\n"
2093 " #ifdef LIBGUESTFS_HAVE_DD\n"
2094 "   void *dl;\n"
2095 "   int has_function;\n"
2096 " \n"
2097 msgstr ""
2098
2099 # type: verbatim
2100 #: ../src/guestfs.pod:1024
2101 #, no-wrap
2102 msgid ""
2103 "   /* Test if the function guestfs_dd is really available. */\n"
2104 "   dl = dlopen (NULL, RTLD_LAZY);\n"
2105 "   if (!dl) {\n"
2106 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
2107 "     exit (EXIT_FAILURE);\n"
2108 "   }\n"
2109 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
2110 "   dlclose (dl);\n"
2111 " \n"
2112 msgstr ""
2113
2114 # type: verbatim
2115 #: ../src/guestfs.pod:1033
2116 #, no-wrap
2117 msgid ""
2118 "   if (!has_function)\n"
2119 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
2120 "   else {\n"
2121 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
2122 "     /* Now it's safe to call\n"
2123 "     guestfs_dd (g, \"foo\", \"bar\");\n"
2124 "     */\n"
2125 "   }\n"
2126 " #else\n"
2127 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
2128 " #endif\n"
2129 "  }\n"
2130 "\n"
2131 msgstr ""
2132
2133 # type: textblock
2134 #: ../src/guestfs.pod:1046
2135 msgid ""
2136 "You may think the above is an awful lot of hassle, and it is.  There are "
2137 "other ways outside of the C linking system to ensure that this kind of "
2138 "incompatibility never arises, such as using package versioning:"
2139 msgstr ""
2140
2141 # type: verbatim
2142 #: ../src/guestfs.pod:1051
2143 #, no-wrap
2144 msgid ""
2145 " Requires: libguestfs >= 1.0.80\n"
2146 "\n"
2147 msgstr ""
2148
2149 # type: =end
2150 #: ../src/guestfs.pod:1053 ../src/guestfs.pod:1058
2151 msgid "html"
2152 msgstr ""
2153
2154 # type: textblock
2155 #: ../src/guestfs.pod:1055
2156 msgid ""
2157 "<!-- old anchor for the next section --> <a "
2158 "name=\"state_machine_and_low_level_event_api\"/>"
2159 msgstr ""
2160
2161 # type: =head1
2162 #: ../src/guestfs.pod:1060
2163 msgid "ARCHITECTURE"
2164 msgstr ""
2165
2166 # type: textblock
2167 #: ../src/guestfs.pod:1062
2168 msgid ""
2169 "Internally, libguestfs is implemented by running an appliance (a special "
2170 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
2171 "process of the main program."
2172 msgstr ""
2173
2174 # type: verbatim
2175 #: ../src/guestfs.pod:1066
2176 #, no-wrap
2177 msgid ""
2178 "  ___________________\n"
2179 " /                   \\\n"
2180 " | main program      |\n"
2181 " |                   |\n"
2182 " |                   |           child process / appliance\n"
2183 " |                   |           __________________________\n"
2184 " |                   |          / qemu                     \\\n"
2185 " +-------------------+   RPC    |      +-----------------+ |\n"
2186 " | libguestfs     <--------------------> guestfsd        | |\n"
2187 " |                   |          |      +-----------------+ |\n"
2188 " \\___________________/          |      | Linux kernel    | |\n"
2189 "                                |      +--^--------------+ |\n"
2190 "                                \\_________|________________/\n"
2191 "                                          |\n"
2192 "                                   _______v______\n"
2193 "                                  /              \\\n"
2194 "                                  | Device or    |\n"
2195 "                                  | disk image   |\n"
2196 "                                  \\______________/\n"
2197 "\n"
2198 msgstr ""
2199
2200 # type: textblock
2201 #: ../src/guestfs.pod:1086
2202 msgid ""
2203 "The library, linked to the main program, creates the child process and hence "
2204 "the appliance in the L</guestfs_launch> function."
2205 msgstr ""
2206
2207 # type: textblock
2208 #: ../src/guestfs.pod:1089
2209 msgid ""
2210 "Inside the appliance is a Linux kernel and a complete stack of userspace "
2211 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
2212 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
2213 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
2214 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
2215 "attached to the qemu process which translates device access by the "
2216 "appliance's Linux kernel into accesses to the image."
2217 msgstr ""
2218
2219 # type: textblock
2220 #: ../src/guestfs.pod:1098
2221 msgid ""
2222 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
2223 "Although the disk image you are attached to might also be used by some "
2224 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
2225 "care if both libguestfs's qemu process and your virtual machine are trying "
2226 "to update the disk image at the same time, since these usually results in "
2227 "massive disk corruption)."
2228 msgstr ""
2229
2230 # type: =head1
2231 #: ../src/guestfs.pod:1105
2232 msgid "STATE MACHINE"
2233 msgstr ""
2234
2235 # type: textblock
2236 #: ../src/guestfs.pod:1107
2237 msgid "libguestfs uses a state machine to model the child process:"
2238 msgstr ""
2239
2240 # type: verbatim
2241 #: ../src/guestfs.pod:1109
2242 #, no-wrap
2243 msgid ""
2244 "                         |\n"
2245 "                    guestfs_create\n"
2246 "                         |\n"
2247 "                         |\n"
2248 "                     ____V_____\n"
2249 "                    /          \\\n"
2250 "                    |  CONFIG  |\n"
2251 "                    \\__________/\n"
2252 "                     ^ ^   ^  \\\n"
2253 "                    /  |    \\  \\ guestfs_launch\n"
2254 "                   /   |    _\\__V______\n"
2255 "                  /    |   /           \\\n"
2256 "                 /     |   | LAUNCHING |\n"
2257 "                /      |   \\___________/\n"
2258 "               /       |       /\n"
2259 "              /        |  guestfs_launch\n"
2260 "             /         |     /\n"
2261 "    ______  /        __|____V\n"
2262 "   /      \\ ------> /        \\\n"
2263 "   | BUSY |         | READY  |\n"
2264 "   \\______/ <------ \\________/\n"
2265 "\n"
2266 msgstr ""
2267
2268 # type: textblock
2269 #: ../src/guestfs.pod:1131
2270 msgid ""
2271 "The normal transitions are (1) CONFIG (when the handle is created, but there "
2272 "is no child process), (2) LAUNCHING (when the child process is booting up), "
2273 "(3) alternating between READY and BUSY as commands are issued to, and "
2274 "carried out by, the child process."
2275 msgstr ""
2276
2277 # type: textblock
2278 #: ../src/guestfs.pod:1136
2279 msgid ""
2280 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
2281 "asynchronously at any time (eg. due to some internal error), and that causes "
2282 "the state to transition back to CONFIG."
2283 msgstr ""
2284
2285 # type: textblock
2286 #: ../src/guestfs.pod:1140
2287 msgid ""
2288 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
2289 "issued when in the CONFIG state."
2290 msgstr ""
2291
2292 # type: textblock
2293 #: ../src/guestfs.pod:1143
2294 msgid ""
2295 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
2296 "L</guestfs_launch> blocks until the child process is READY to accept "
2297 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
2298 "moves the state from CONFIG to LAUNCHING while it is running."
2299 msgstr ""
2300
2301 # type: textblock
2302 #: ../src/guestfs.pod:1149
2303 msgid ""
2304 "API actions such as L</guestfs_mount> can only be issued when in the READY "
2305 "state.  These API calls block waiting for the command to be carried out "
2306 "(ie. the state to transition to BUSY and then back to READY).  There are no "
2307 "non-blocking versions, and no way to issue more than one command per handle "
2308 "at the same time."
2309 msgstr ""
2310
2311 # type: textblock
2312 #: ../src/guestfs.pod:1155
2313 msgid ""
2314 "Finally, the child process sends asynchronous messages back to the main "
2315 "program, such as kernel log messages.  You can register a callback to "
2316 "receive these messages."
2317 msgstr ""
2318
2319 # type: =head2
2320 #: ../src/guestfs.pod:1159
2321 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
2322 msgstr ""
2323
2324 # type: textblock
2325 #: ../src/guestfs.pod:1161
2326 msgid ""
2327 "The child process generates events in some situations.  Current events "
2328 "include: receiving a log message, the child process exits."
2329 msgstr ""
2330
2331 # type: textblock
2332 #: ../src/guestfs.pod:1164
2333 msgid ""
2334 "Use the C<guestfs_set_*_callback> functions to set a callback for different "
2335 "types of events."
2336 msgstr ""
2337
2338 # type: textblock
2339 #: ../src/guestfs.pod:1167
2340 msgid ""
2341 "Only I<one callback of each type> can be registered for each handle.  "
2342 "Calling C<guestfs_set_*_callback> again overwrites the previous callback of "
2343 "that type.  Cancel all callbacks of this type by calling this function with "
2344 "C<cb> set to C<NULL>."
2345 msgstr ""
2346
2347 # type: =head2
2348 #: ../src/guestfs.pod:1172
2349 msgid "guestfs_set_log_message_callback"
2350 msgstr ""
2351
2352 # type: verbatim
2353 #: ../src/guestfs.pod:1174
2354 #, no-wrap
2355 msgid ""
2356 " typedef void (*guestfs_log_message_cb) (guestfs_h *g, void *opaque,\n"
2357 "                                         char *buf, int len);\n"
2358 " void guestfs_set_log_message_callback (guestfs_h *g,\n"
2359 "                                        guestfs_log_message_cb cb,\n"
2360 "                                        void *opaque);\n"
2361 "\n"
2362 msgstr ""
2363
2364 # type: textblock
2365 #: ../src/guestfs.pod:1180
2366 msgid ""
2367 "The callback function C<cb> will be called whenever qemu or the guest writes "
2368 "anything to the console."
2369 msgstr ""
2370
2371 # type: textblock
2372 #: ../src/guestfs.pod:1183
2373 msgid "Use this function to capture kernel messages and similar."
2374 msgstr ""
2375
2376 # type: textblock
2377 #: ../src/guestfs.pod:1185
2378 msgid ""
2379 "Normally there is no log message handler, and log messages are just "
2380 "discarded."
2381 msgstr ""
2382
2383 # type: =head2
2384 #: ../src/guestfs.pod:1188
2385 msgid "guestfs_set_subprocess_quit_callback"
2386 msgstr ""
2387
2388 # type: verbatim
2389 #: ../src/guestfs.pod:1190
2390 #, no-wrap
2391 msgid ""
2392 " typedef void (*guestfs_subprocess_quit_cb) (guestfs_h *g, void *opaque);\n"
2393 " void guestfs_set_subprocess_quit_callback (guestfs_h *g,\n"
2394 "                                            guestfs_subprocess_quit_cb cb,\n"
2395 "                                            void *opaque);\n"
2396 "\n"
2397 msgstr ""
2398
2399 # type: textblock
2400 #: ../src/guestfs.pod:1195
2401 msgid ""
2402 "The callback function C<cb> will be called when the child process quits, "
2403 "either asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
2404 "corresponds to a transition from any state to the CONFIG state)."
2405 msgstr ""
2406
2407 # type: =head2
2408 #: ../src/guestfs.pod:1200
2409 msgid "guestfs_set_launch_done_callback"
2410 msgstr ""
2411
2412 # type: verbatim
2413 #: ../src/guestfs.pod:1202
2414 #, no-wrap
2415 msgid ""
2416 " typedef void (*guestfs_launch_done_cb) (guestfs_h *g, void *opaque);\n"
2417 " void guestfs_set_launch_done_callback (guestfs_h *g,\n"
2418 "                                        guestfs_launch_done_cb cb,\n"
2419 "                                        void *opaque);\n"
2420 "\n"
2421 msgstr ""
2422
2423 # type: textblock
2424 #: ../src/guestfs.pod:1207
2425 msgid ""
2426 "The callback function C<cb> will be called when the child process becomes "
2427 "ready first time after it has been launched.  (This corresponds to a "
2428 "transition from LAUNCHING to the READY state)."
2429 msgstr ""
2430
2431 # type: =head2
2432 #: ../src/guestfs.pod:1211
2433 msgid "guestfs_set_close_callback"
2434 msgstr ""
2435
2436 # type: verbatim
2437 #: ../src/guestfs.pod:1213
2438 #, no-wrap
2439 msgid ""
2440 " typedef void (*guestfs_close_cb) (guestfs_h *g, void *opaque);\n"
2441 " void guestfs_set_close_callback (guestfs_h *g,\n"
2442 "                                  guestfs_close_cb cb,\n"
2443 "                                  void *opaque);\n"
2444 "\n"
2445 msgstr ""
2446
2447 # type: textblock
2448 #: ../src/guestfs.pod:1218
2449 msgid ""
2450 "The callback function C<cb> will be called while the handle is being closed "
2451 "(synchronously from L</guestfs_close>)."
2452 msgstr ""
2453
2454 # type: textblock
2455 #: ../src/guestfs.pod:1221
2456 msgid ""
2457 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
2458 "handles that are open when the program exits.  This means that this callback "
2459 "might be called indirectly from L<exit(3)>, which can cause unexpected "
2460 "problems in higher-level languages (eg. if your HLL interpreter has already "
2461 "been cleaned up by the time this is called, and if your callback then jumps "
2462 "into some HLL function)."
2463 msgstr ""
2464
2465 # type: =head2
2466 #: ../src/guestfs.pod:1229
2467 msgid "guestfs_set_progress_callback"
2468 msgstr ""
2469
2470 # type: verbatim
2471 #: ../src/guestfs.pod:1231
2472 #, no-wrap
2473 msgid ""
2474 " typedef void (*guestfs_progress_cb) (guestfs_h *g, void *opaque,\n"
2475 "                                      int proc_nr, int serial,\n"
2476 "                                      uint64_t position, uint64_t total);\n"
2477 " void guestfs_set_progress_callback (guestfs_h *g,\n"
2478 "                                     guestfs_progress_cb cb,\n"
2479 "                                     void *opaque);\n"
2480 "\n"
2481 msgstr ""
2482
2483 # type: textblock
2484 #: ../src/guestfs.pod:1238
2485 msgid ""
2486 "Some long-running operations can generate progress messages.  If this "
2487 "callback is registered, then it will be called each time a progress message "
2488 "is generated (usually two seconds after the operation started, and three "
2489 "times per second thereafter until it completes, although the frequency may "
2490 "change in future versions)."
2491 msgstr ""
2492
2493 # type: textblock
2494 #: ../src/guestfs.pod:1244
2495 msgid ""
2496 "The callback receives two numbers: C<position> and C<total>.  The units of "
2497 "C<total> are not defined, although for some operations C<total> may relate "
2498 "in some way to the amount of data to be transferred (eg. in bytes or "
2499 "megabytes), and C<position> may be the portion which has been transferred."
2500 msgstr ""
2501
2502 # type: textblock
2503 #: ../src/guestfs.pod:1250
2504 msgid "The only defined and stable parts of the API are:"
2505 msgstr ""
2506
2507 # type: textblock
2508 #: ../src/guestfs.pod:1256
2509 msgid ""
2510 "The callback can display to the user some type of progress bar or indicator "
2511 "which shows the ratio of C<position>:C<total>."
2512 msgstr ""
2513
2514 # type: textblock
2515 #: ../src/guestfs.pod:1261
2516 msgid "0 E<lt>= C<position> E<lt>= C<total>"
2517 msgstr ""
2518
2519 # type: textblock
2520 #: ../src/guestfs.pod:1265
2521 msgid ""
2522 "If any progress notification is sent during a call, then a final progress "
2523 "notification is always sent when C<position> = C<total>."
2524 msgstr ""
2525
2526 # type: textblock
2527 #: ../src/guestfs.pod:1268
2528 msgid ""
2529 "This is to simplify caller code, so callers can easily set the progress "
2530 "indicator to \"100%\" at the end of the operation, without requiring special "
2531 "code to detect this case."
2532 msgstr ""
2533
2534 # type: textblock
2535 #: ../src/guestfs.pod:1274
2536 msgid ""
2537 "The callback also receives the procedure number and serial number of the "
2538 "call.  These are only useful for debugging protocol issues, and the callback "
2539 "can normally ignore them.  The callback may want to print these numbers in "
2540 "error messages or debugging messages."
2541 msgstr ""
2542
2543 # type: =head1
2544 #: ../src/guestfs.pod:1279
2545 msgid "PRIVATE DATA AREA"
2546 msgstr ""
2547
2548 # type: textblock
2549 #: ../src/guestfs.pod:1281
2550 msgid ""
2551 "You can attach named pieces of private data to the libguestfs handle, and "
2552 "fetch them by name for the lifetime of the handle.  This is called the "
2553 "private data area and is only available from the C API."
2554 msgstr ""
2555
2556 # type: textblock
2557 #: ../src/guestfs.pod:1285
2558 msgid "To attach a named piece of data, use the following call:"
2559 msgstr ""
2560
2561 # type: verbatim
2562 #: ../src/guestfs.pod:1287
2563 #, no-wrap
2564 msgid ""
2565 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
2566 "\n"
2567 msgstr ""
2568
2569 # type: textblock
2570 #: ../src/guestfs.pod:1289
2571 msgid ""
2572 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
2573 "pointer (which can be C<NULL>).  Any previous item with the same name is "
2574 "overwritten."
2575 msgstr ""
2576
2577 # type: textblock
2578 #: ../src/guestfs.pod:1293
2579 msgid ""
2580 "You can use any C<key> you want, but names beginning with an underscore "
2581 "character are reserved for internal libguestfs purposes (for implementing "
2582 "language bindings).  It is recommended to prefix the name with some unique "
2583 "string to avoid collisions with other users."
2584 msgstr ""
2585
2586 # type: textblock
2587 #: ../src/guestfs.pod:1298
2588 msgid "To retrieve the pointer, use:"
2589 msgstr ""
2590
2591 # type: verbatim
2592 #: ../src/guestfs.pod:1300
2593 #, no-wrap
2594 msgid ""
2595 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
2596 "\n"
2597 msgstr ""
2598
2599 # type: textblock
2600 #: ../src/guestfs.pod:1302
2601 msgid ""
2602 "This function returns C<NULL> if either no data is found associated with "
2603 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
2604 "C<NULL>."
2605 msgstr ""
2606
2607 # type: textblock
2608 #: ../src/guestfs.pod:1306
2609 msgid ""
2610 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
2611 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
2612 "all.  In particular, libguestfs does I<not> try to free the data when the "
2613 "handle is closed.  If the data must be freed, then the caller must either "
2614 "free it before calling L</guestfs_close> or must set up a close callback to "
2615 "do it (see L</guestfs_set_close_callback>, and note that only one callback "
2616 "can be registered for a handle)."
2617 msgstr ""
2618
2619 # type: textblock
2620 #: ../src/guestfs.pod:1314
2621 msgid ""
2622 "The private data area is implemented using a hash table, and should be "
2623 "reasonably efficient for moderate numbers of keys."
2624 msgstr ""
2625
2626 # type: =head1
2627 #: ../src/guestfs.pod:1317
2628 msgid "BLOCK DEVICE NAMING"
2629 msgstr ""
2630
2631 # type: textblock
2632 #: ../src/guestfs.pod:1319
2633 msgid ""
2634 "In the kernel there is now quite a profusion of schemata for naming block "
2635 "devices (in this context, by I<block device> I mean a physical or virtual "
2636 "hard drive).  The original Linux IDE driver used names starting with "
2637 "C</dev/hd*>.  SCSI devices have historically used a different naming scheme, "
2638 "C</dev/sd*>.  When the Linux kernel I<libata> driver became a popular "
2639 "replacement for the old IDE driver (particularly for SATA devices) those "
2640 "devices also used the C</dev/sd*> scheme.  Additionally we now have virtual "
2641 "machines with paravirtualized drivers.  This has created several different "
2642 "naming systems, such as C</dev/vd*> for virtio disks and C</dev/xvd*> for "
2643 "Xen PV disks."
2644 msgstr ""
2645
2646 # type: textblock
2647 #: ../src/guestfs.pod:1331
2648 msgid ""
2649 "As discussed above, libguestfs uses a qemu appliance running an embedded "
2650 "Linux kernel to access block devices.  We can run a variety of appliances "
2651 "based on a variety of Linux kernels."
2652 msgstr ""
2653
2654 # type: textblock
2655 #: ../src/guestfs.pod:1335
2656 msgid ""
2657 "This causes a problem for libguestfs because many API calls use device or "
2658 "partition names.  Working scripts and the recipe (example) scripts that we "
2659 "make available over the internet could fail if the naming scheme changes."
2660 msgstr ""
2661
2662 # type: textblock
2663 #: ../src/guestfs.pod:1340
2664 msgid ""
2665 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
2666 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
2667 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
2668 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
2669 msgstr ""
2670
2671 # type: textblock
2672 #: ../src/guestfs.pod:1346
2673 msgid ""
2674 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
2675 "L</guestfs_list_partitions> and similar calls return the true names of the "
2676 "devices and partitions as known to the appliance."
2677 msgstr ""
2678
2679 # type: =head2
2680 #: ../src/guestfs.pod:1351
2681 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
2682 msgstr ""
2683
2684 # type: textblock
2685 #: ../src/guestfs.pod:1353
2686 msgid ""
2687 "Usually this translation is transparent.  However in some (very rare)  cases "
2688 "you may need to know the exact algorithm.  Such cases include where you use "
2689 "L</guestfs_config> to add a mixture of virtio and IDE devices to the "
2690 "qemu-based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> "
2691 "devices."
2692 msgstr ""
2693
2694 # type: textblock
2695 #: ../src/guestfs.pod:1359
2696 msgid ""
2697 "The algorithm is applied only to I<parameters> which are known to be either "
2698 "device or partition names.  Return values from functions such as "
2699 "L</guestfs_list_devices> are never changed."
2700 msgstr ""
2701
2702 # type: textblock
2703 #: ../src/guestfs.pod:1367
2704 msgid "Is the string a parameter which is a device or partition name?"
2705 msgstr ""
2706
2707 # type: textblock
2708 #: ../src/guestfs.pod:1371
2709 msgid "Does the string begin with C</dev/sd>?"
2710 msgstr ""
2711
2712 # type: textblock
2713 #: ../src/guestfs.pod:1375
2714 msgid ""
2715 "Does the named device exist? If so, we use that device.  However if I<not> "
2716 "then we continue with this algorithm."
2717 msgstr ""
2718
2719 # type: textblock
2720 #: ../src/guestfs.pod:1380
2721 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
2722 msgstr ""
2723
2724 # type: textblock
2725 #: ../src/guestfs.pod:1382
2726 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
2727 msgstr ""
2728
2729 # type: textblock
2730 #: ../src/guestfs.pod:1384
2731 msgid "If that named device exists, use it.  If not, continue."
2732 msgstr ""
2733
2734 # type: textblock
2735 #: ../src/guestfs.pod:1388
2736 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
2737 msgstr ""
2738
2739 # type: textblock
2740 #: ../src/guestfs.pod:1390
2741 msgid "If that named device exists, use it.  If not, return an error."
2742 msgstr ""
2743
2744 # type: =head2
2745 #: ../src/guestfs.pod:1394
2746 msgid "PORTABILITY CONCERNS"
2747 msgstr ""
2748
2749 # type: textblock
2750 #: ../src/guestfs.pod:1396
2751 msgid ""
2752 "Although the standard naming scheme and automatic translation is useful for "
2753 "simple programs and guestfish scripts, for larger programs it is best not to "
2754 "rely on this mechanism."
2755 msgstr ""
2756
2757 # type: textblock
2758 #: ../src/guestfs.pod:1400
2759 msgid ""
2760 "Where possible for maximum future portability programs using libguestfs "
2761 "should use these future-proof techniques:"
2762 msgstr ""
2763
2764 # type: textblock
2765 #: ../src/guestfs.pod:1407
2766 msgid ""
2767 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
2768 "device names, and then use those names directly."
2769 msgstr ""
2770
2771 # type: textblock
2772 #: ../src/guestfs.pod:1410
2773 msgid "Since those device names exist by definition, they will never be translated."
2774 msgstr ""
2775
2776 # type: textblock
2777 #: ../src/guestfs.pod:1415
2778 msgid ""
2779 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
2780 "filesystem labels."
2781 msgstr ""
2782
2783 # type: =head1
2784 #: ../src/guestfs.pod:1420
2785 msgid "INTERNALS"
2786 msgstr ""
2787
2788 # type: =head2
2789 #: ../src/guestfs.pod:1422
2790 msgid "COMMUNICATION PROTOCOL"
2791 msgstr ""
2792
2793 # type: textblock
2794 #: ../src/guestfs.pod:1424
2795 msgid ""
2796 "Don't rely on using this protocol directly.  This section documents how it "
2797 "currently works, but it may change at any time."
2798 msgstr ""
2799
2800 # type: textblock
2801 #: ../src/guestfs.pod:1427
2802 msgid ""
2803 "The protocol used to talk between the library and the daemon running inside "
2804 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
2805 "1014, RFC 1832, RFC 4506)."
2806 msgstr ""
2807
2808 # type: textblock
2809 #: ../src/guestfs.pod:1431
2810 msgid ""
2811 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
2812 "this file is automatically generated)."
2813 msgstr ""
2814
2815 # type: textblock
2816 #: ../src/guestfs.pod:1434
2817 msgid ""
2818 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
2819 "and C<FileOut> parameters, which are handled with very simple request/reply "
2820 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
2821 "parameters, which use the same request and reply messages, but they may also "
2822 "be followed by files sent using a chunked encoding."
2823 msgstr ""
2824
2825 # type: =head3
2826 #: ../src/guestfs.pod:1441
2827 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
2828 msgstr ""
2829
2830 # type: textblock
2831 #: ../src/guestfs.pod:1443
2832 msgid "For ordinary functions, the request message is:"
2833 msgstr ""
2834
2835 # type: verbatim
2836 #: ../src/guestfs.pod:1445
2837 #, no-wrap
2838 msgid ""
2839 " total length (header + arguments,\n"
2840 "      but not including the length word itself)\n"
2841 " struct guestfs_message_header (encoded as XDR)\n"
2842 " struct guestfs_<foo>_args (encoded as XDR)\n"
2843 "\n"
2844 msgstr ""
2845
2846 # type: textblock
2847 #: ../src/guestfs.pod:1450
2848 msgid ""
2849 "The total length field allows the daemon to allocate a fixed size buffer "
2850 "into which it slurps the rest of the message.  As a result, the total length "
2851 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
2852 "effective size of any request is limited to somewhere under this size."
2853 msgstr ""
2854
2855 # type: textblock
2856 #: ../src/guestfs.pod:1456
2857 msgid ""
2858 "Note also that many functions don't take any arguments, in which case the "
2859 "C<guestfs_I<foo>_args> is completely omitted."
2860 msgstr ""
2861
2862 # type: textblock
2863 #: ../src/guestfs.pod:1459
2864 msgid ""
2865 "The header contains the procedure number (C<guestfs_proc>) which is how the "
2866 "receiver knows what type of args structure to expect, or none at all."
2867 msgstr ""
2868
2869 # type: textblock
2870 #: ../src/guestfs.pod:1463
2871 msgid "The reply message for ordinary functions is:"
2872 msgstr ""
2873
2874 # type: verbatim
2875 #: ../src/guestfs.pod:1465
2876 #, no-wrap
2877 msgid ""
2878 " total length (header + ret,\n"
2879 "      but not including the length word itself)\n"
2880 " struct guestfs_message_header (encoded as XDR)\n"
2881 " struct guestfs_<foo>_ret (encoded as XDR)\n"
2882 "\n"
2883 msgstr ""
2884
2885 # type: textblock
2886 #: ../src/guestfs.pod:1470
2887 msgid ""
2888 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
2889 "functions that return no formal return values."
2890 msgstr ""
2891
2892 # type: textblock
2893 #: ../src/guestfs.pod:1473
2894 msgid "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
2895 msgstr ""
2896
2897 # type: textblock
2898 #: ../src/guestfs.pod:1476
2899 msgid ""
2900 "In the case of an error, a flag is set in the header, and the reply message "
2901 "is slightly changed:"
2902 msgstr ""
2903
2904 # type: verbatim
2905 #: ../src/guestfs.pod:1479
2906 #, no-wrap
2907 msgid ""
2908 " total length (header + error,\n"
2909 "      but not including the length word itself)\n"
2910 " struct guestfs_message_header (encoded as XDR)\n"
2911 " struct guestfs_message_error (encoded as XDR)\n"
2912 "\n"
2913 msgstr ""
2914
2915 # type: textblock
2916 #: ../src/guestfs.pod:1484
2917 msgid ""
2918 "The C<guestfs_message_error> structure contains the error message as a "
2919 "string."
2920 msgstr ""
2921
2922 # type: =head3
2923 #: ../src/guestfs.pod:1487
2924 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
2925 msgstr ""
2926
2927 # type: textblock
2928 #: ../src/guestfs.pod:1489
2929 msgid ""
2930 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
2931 "The normal request message is sent (see above).  However this is followed by "
2932 "a sequence of file chunks."
2933 msgstr ""
2934
2935 # type: verbatim
2936 #: ../src/guestfs.pod:1493
2937 #, no-wrap
2938 msgid ""
2939 " total length (header + arguments,\n"
2940 "      but not including the length word itself,\n"
2941 "      and not including the chunks)\n"
2942 " struct guestfs_message_header (encoded as XDR)\n"
2943 " struct guestfs_<foo>_args (encoded as XDR)\n"
2944 " sequence of chunks for FileIn param #0\n"
2945 " sequence of chunks for FileIn param #1 etc.\n"
2946 "\n"
2947 msgstr ""
2948
2949 # type: textblock
2950 #: ../src/guestfs.pod:1501
2951 msgid "The \"sequence of chunks\" is:"
2952 msgstr ""
2953
2954 # type: verbatim
2955 #: ../src/guestfs.pod:1503
2956 #, no-wrap
2957 msgid ""
2958 " length of chunk (not including length word itself)\n"
2959 " struct guestfs_chunk (encoded as XDR)\n"
2960 " length of chunk\n"
2961 " struct guestfs_chunk (encoded as XDR)\n"
2962 "   ...\n"
2963 " length of chunk\n"
2964 " struct guestfs_chunk (with data.data_len == 0)\n"
2965 "\n"
2966 msgstr ""
2967
2968 # type: textblock
2969 #: ../src/guestfs.pod:1511
2970 msgid ""
2971 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
2972 "is set in the final chunk to indicate either successful completion or early "
2973 "cancellation."
2974 msgstr ""
2975
2976 # type: textblock
2977 #: ../src/guestfs.pod:1515
2978 msgid ""
2979 "At time of writing there are no functions that have more than one FileIn "
2980 "parameter.  However this is (theoretically) supported, by sending the "
2981 "sequence of chunks for each FileIn parameter one after another (from left to "
2982 "right)."
2983 msgstr ""
2984
2985 # type: textblock
2986 #: ../src/guestfs.pod:1520
2987 msgid ""
2988 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
2989 "transfer.  The library does this by sending a chunk with a special flag set "
2990 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
2991 "RPC, does I<not> send any reply, and goes back to reading the next request."
2992 msgstr ""
2993
2994 # type: textblock
2995 #: ../src/guestfs.pod:1526
2996 msgid ""
2997 "The daemon may also cancel.  It does this by writing a special word "
2998 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
2999 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
3000 "cancel chunk).  The special word is chosen so that even if cancellation "
3001 "happens right at the end of the transfer (after the library has finished "
3002 "writing and has started listening for the reply), the \"spurious\" cancel "
3003 "flag will not be confused with the reply message."
3004 msgstr ""
3005
3006 # type: textblock
3007 #: ../src/guestfs.pod:1535
3008 msgid ""
3009 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
3010 "limit), and also files where the size is not known in advance (eg. from "
3011 "pipes or sockets).  However the chunks are rather small "
3012 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
3013 "to keep much in memory."
3014 msgstr ""
3015
3016 # type: =head3
3017 #: ../src/guestfs.pod:1541
3018 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
3019 msgstr ""
3020
3021 # type: textblock
3022 #: ../src/guestfs.pod:1543
3023 msgid ""
3024 "The protocol for FileOut parameters is exactly the same as for FileIn "
3025 "parameters, but with the roles of daemon and library reversed."
3026 msgstr ""
3027
3028 # type: verbatim
3029 #: ../src/guestfs.pod:1546
3030 #, no-wrap
3031 msgid ""
3032 " total length (header + ret,\n"
3033 "      but not including the length word itself,\n"
3034 "      and not including the chunks)\n"
3035 " struct guestfs_message_header (encoded as XDR)\n"
3036 " struct guestfs_<foo>_ret (encoded as XDR)\n"
3037 " sequence of chunks for FileOut param #0\n"
3038 " sequence of chunks for FileOut param #1 etc.\n"
3039 "\n"
3040 msgstr ""
3041
3042 # type: =head3
3043 #: ../src/guestfs.pod:1554
3044 msgid "INITIAL MESSAGE"
3045 msgstr ""
3046
3047 # type: textblock
3048 #: ../src/guestfs.pod:1556
3049 msgid ""
3050 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
3051 "which indicates that the guest and daemon is alive.  This is what "
3052 "L</guestfs_launch> waits for."
3053 msgstr ""
3054
3055 # type: =head3
3056 #: ../src/guestfs.pod:1560
3057 msgid "PROGRESS NOTIFICATION MESSAGES"
3058 msgstr ""
3059
3060 # type: textblock
3061 #: ../src/guestfs.pod:1562
3062 msgid ""
3063 "The daemon may send progress notification messages at any time.  These are "
3064 "distinguished by the normal length word being replaced by "
3065 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
3066 msgstr ""
3067
3068 # type: textblock
3069 #: ../src/guestfs.pod:1566
3070 msgid ""
3071 "The library turns them into progress callbacks (see "
3072 "C<guestfs_set_progress_callback>) if there is a callback registered, or "
3073 "discards them if not."
3074 msgstr ""
3075
3076 # type: textblock
3077 #: ../src/guestfs.pod:1570
3078 msgid ""
3079 "The daemon self-limits the frequency of progress messages it sends (see "
3080 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
3081 "messages."
3082 msgstr ""
3083
3084 # type: =head1
3085 #: ../src/guestfs.pod:1574
3086 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
3087 msgstr ""
3088
3089 # type: textblock
3090 #: ../src/guestfs.pod:1576
3091 msgid ""
3092 "All high-level libguestfs actions are synchronous.  If you want to use "
3093 "libguestfs asynchronously then you must create a thread."
3094 msgstr ""
3095
3096 # type: textblock
3097 #: ../src/guestfs.pod:1579
3098 msgid ""
3099 "Only use the handle from a single thread.  Either use the handle exclusively "
3100 "from one thread, or provide your own mutex so that two threads cannot issue "
3101 "calls on the same handle at the same time."
3102 msgstr ""
3103
3104 # type: textblock
3105 #: ../src/guestfs.pod:1583
3106 msgid ""
3107 "See the graphical program guestfs-browser for one possible architecture for "
3108 "multithreaded programs using libvirt and libguestfs."
3109 msgstr ""
3110
3111 # type: =head1
3112 #: ../src/guestfs.pod:1586
3113 msgid "QEMU WRAPPERS"
3114 msgstr ""
3115
3116 # type: textblock
3117 #: ../src/guestfs.pod:1588
3118 msgid ""
3119 "If you want to compile your own qemu, run qemu from a non-standard location, "
3120 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
3121 "around qemu."
3122 msgstr ""
3123
3124 # type: textblock
3125 #: ../src/guestfs.pod:1592
3126 msgid ""
3127 "There is one important rule to remember: you I<must C<exec qemu>> as the "
3128 "last command in the shell script (so that qemu replaces the shell and "
3129 "becomes the direct child of the libguestfs-using program).  If you don't do "
3130 "this, then the qemu process won't be cleaned up correctly."
3131 msgstr ""
3132
3133 # type: textblock
3134 #: ../src/guestfs.pod:1597
3135 msgid ""
3136 "Here is an example of a wrapper, where I have built my own copy of qemu from "
3137 "source:"
3138 msgstr ""
3139
3140 # type: verbatim
3141 #: ../src/guestfs.pod:1600
3142 #, no-wrap
3143 msgid ""
3144 " #!/bin/sh -\n"
3145 " qemudir=/home/rjones/d/qemu\n"
3146 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios "
3147 "\"$@\"\n"
3148 "\n"
3149 msgstr ""
3150
3151 # type: textblock
3152 #: ../src/guestfs.pod:1604
3153 msgid ""
3154 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
3155 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
3156 "example:"
3157 msgstr ""
3158
3159 # type: verbatim
3160 #: ../src/guestfs.pod:1608
3161 #, no-wrap
3162 msgid ""
3163 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
3164 "\n"
3165 msgstr ""
3166
3167 # type: textblock
3168 #: ../src/guestfs.pod:1610
3169 msgid ""
3170 "Note that libguestfs also calls qemu with the -help and -version options in "
3171 "order to determine features."
3172 msgstr ""
3173
3174 # type: =head1
3175 #: ../src/guestfs.pod:1613
3176 msgid "LIBGUESTFS VERSION NUMBERS"
3177 msgstr ""
3178
3179 # type: textblock
3180 #: ../src/guestfs.pod:1615
3181 msgid ""
3182 "Since April 2010, libguestfs has started to make separate development and "
3183 "stable releases, along with corresponding branches in our git repository.  "
3184 "These separate releases can be identified by version number:"
3185 msgstr ""
3186
3187 # type: verbatim
3188 #: ../src/guestfs.pod:1620
3189 #, no-wrap
3190 msgid ""
3191 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
3192 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
3193 "       |\n"
3194 "       v\n"
3195 " 1  .  3  .  5\n"
3196 " ^           ^\n"
3197 " |           |\n"
3198 " |           `-------- sub-version\n"
3199 " |\n"
3200 " `------ always '1' because we don't change the ABI\n"
3201 "\n"
3202 msgstr ""
3203
3204 # type: textblock
3205 #: ../src/guestfs.pod:1631
3206 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
3207 msgstr ""
3208
3209 # type: textblock
3210 #: ../src/guestfs.pod:1633
3211 msgid ""
3212 "As time passes we cherry pick fixes from the development branch and backport "
3213 "those into the stable branch, the effect being that the stable branch should "
3214 "get more stable and less buggy over time.  So the stable releases are ideal "
3215 "for people who don't need new features but would just like the software to "
3216 "work."
3217 msgstr ""
3218
3219 # type: textblock
3220 #: ../src/guestfs.pod:1639
3221 msgid "Our criteria for backporting changes are:"
3222 msgstr ""
3223
3224 # type: textblock
3225 #: ../src/guestfs.pod:1645
3226 msgid ""
3227 "Documentation changes which don't affect any code are backported unless the "
3228 "documentation refers to a future feature which is not in stable."
3229 msgstr ""
3230
3231 # type: textblock
3232 #: ../src/guestfs.pod:1651
3233 msgid ""
3234 "Bug fixes which are not controversial, fix obvious problems, and have been "
3235 "well tested are backported."
3236 msgstr ""
3237
3238 # type: textblock
3239 #: ../src/guestfs.pod:1656
3240 msgid ""
3241 "Simple rearrangements of code which shouldn't affect how it works get "
3242 "backported.  This is so that the code in the two branches doesn't get too "
3243 "far out of step, allowing us to backport future fixes more easily."
3244 msgstr ""
3245
3246 # type: textblock
3247 #: ../src/guestfs.pod:1662
3248 msgid ""
3249 "We I<don't> backport new features, new APIs, new tools etc, except in one "
3250 "exceptional case: the new feature is required in order to implement an "
3251 "important bug fix."
3252 msgstr ""
3253
3254 # type: textblock
3255 #: ../src/guestfs.pod:1668
3256 msgid ""
3257 "A new stable branch starts when we think the new features in development are "
3258 "substantial and compelling enough over the current stable branch to warrant "
3259 "it.  When that happens we create new stable and development versions 1.N.0 "
3260 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
3261 "stable at this point, but by backporting fixes from development, that branch "
3262 "will stabilize over time."
3263 msgstr ""
3264
3265 # type: =head1
3266 #: ../src/guestfs.pod:1676 ../fish/guestfish.pod:826 ../test-tool/libguestfs-test-tool.pod:104 ../tools/virt-edit.pl:312 ../tools/virt-rescue.pl:226
3267 msgid "ENVIRONMENT VARIABLES"
3268 msgstr ""
3269
3270 # type: =item
3271 #: ../src/guestfs.pod:1680 ../fish/guestfish.pod:852
3272 msgid "LIBGUESTFS_APPEND"
3273 msgstr ""
3274
3275 # type: textblock
3276 #: ../src/guestfs.pod:1682 ../fish/guestfish.pod:854
3277 msgid "Pass additional options to the guest kernel."
3278 msgstr ""
3279
3280 # type: =item
3281 #: ../src/guestfs.pod:1684 ../fish/guestfish.pod:856
3282 msgid "LIBGUESTFS_DEBUG"
3283 msgstr ""
3284
3285 # type: textblock
3286 #: ../src/guestfs.pod:1686
3287 msgid ""
3288 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
3289 "effect as calling C<guestfs_set_verbose (g, 1)>."
3290 msgstr ""
3291
3292 # type: =item
3293 #: ../src/guestfs.pod:1689 ../fish/guestfish.pod:861
3294 msgid "LIBGUESTFS_MEMSIZE"
3295 msgstr ""
3296
3297 # type: textblock
3298 #: ../src/guestfs.pod:1691 ../fish/guestfish.pod:863
3299 msgid "Set the memory allocated to the qemu process, in megabytes.  For example:"
3300 msgstr ""
3301
3302 # type: verbatim
3303 #: ../src/guestfs.pod:1694 ../fish/guestfish.pod:866
3304 #, no-wrap
3305 msgid ""
3306 " LIBGUESTFS_MEMSIZE=700\n"
3307 "\n"
3308 msgstr ""
3309
3310 # type: =item
3311 #: ../src/guestfs.pod:1696 ../fish/guestfish.pod:868
3312 msgid "LIBGUESTFS_PATH"
3313 msgstr ""
3314
3315 # type: textblock
3316 #: ../src/guestfs.pod:1698
3317 msgid ""
3318 "Set the path that libguestfs uses to search for kernel and initrd.img.  See "
3319 "the discussion of paths in section PATH above."
3320 msgstr ""
3321
3322 # type: =item
3323 #: ../src/guestfs.pod:1701 ../fish/guestfish.pod:873
3324 msgid "LIBGUESTFS_QEMU"
3325 msgstr ""
3326
3327 # type: textblock
3328 #: ../src/guestfs.pod:1703 ../fish/guestfish.pod:875
3329 msgid ""
3330 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
3331 "which was found at compile time by the configure script is used."
3332 msgstr ""
3333
3334 # type: textblock
3335 #: ../src/guestfs.pod:1707
3336 msgid "See also L</QEMU WRAPPERS> above."
3337 msgstr ""
3338
3339 # type: =item
3340 #: ../src/guestfs.pod:1709 ../fish/guestfish.pod:879
3341 msgid "LIBGUESTFS_TRACE"
3342 msgstr ""
3343
3344 # type: textblock
3345 #: ../src/guestfs.pod:1711
3346 msgid ""
3347 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
3348 "effect as calling C<guestfs_set_trace (g, 1)>."
3349 msgstr ""
3350
3351 # type: =item
3352 #: ../src/guestfs.pod:1714 ../fish/guestfish.pod:888
3353 msgid "TMPDIR"
3354 msgstr ""
3355
3356 # type: textblock
3357 #: ../src/guestfs.pod:1716 ../fish/guestfish.pod:890
3358 msgid "Location of temporary directory, defaults to C</tmp>."
3359 msgstr ""
3360
3361 # type: textblock
3362 #: ../src/guestfs.pod:1718 ../fish/guestfish.pod:892
3363 msgid ""
3364 "If libguestfs was compiled to use the supermin appliance then the real "
3365 "appliance is cached in this directory, shared between all handles belonging "
3366 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
3367 "use in case C</tmp> is not large enough."
3368 msgstr ""
3369
3370 # type: =head1
3371 #: ../src/guestfs.pod:1726 ../fish/guestfish.pod:950 ../test-tool/libguestfs-test-tool.pod:109 ../fuse/guestmount.pod:178 ../inspector/virt-inspector.pl:853 ../tools/virt-edit.pl:332 ../tools/virt-win-reg.pl:468 ../tools/virt-df.pl:573 ../tools/virt-ls.pl:217 ../tools/virt-resize.pl:1447 ../tools/virt-list-filesystems.pl:198 ../tools/virt-cat.pl:170 ../tools/virt-tar.pl:264 ../tools/virt-rescue.pl:238 ../tools/virt-make-fs.pl:534 ../tools/virt-list-partitions.pl:236
3372 msgid "SEE ALSO"
3373 msgstr ""
3374
3375 # type: textblock
3376 #: ../src/guestfs.pod:1728
3377 msgid ""
3378 "L<guestfish(1)>, L<guestmount(1)>, L<virt-cat(1)>, L<virt-df(1)>, "
3379 "L<virt-edit(1)>, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, "
3380 "L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, "
3381 "L<virt-rescue(1)>, L<virt-tar(1)>, L<virt-win-reg(1)>, L<qemu(1)>, "
3382 "L<febootstrap(1)>, L<hivex(3)>, L<http://libguestfs.org/>."
3383 msgstr ""
3384
3385 # type: textblock
3386 #: ../src/guestfs.pod:1746
3387 msgid ""
3388 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, "
3389 "L<lvm(8)>, L<disktype(1)>."
3390 msgstr ""
3391
3392 # type: =head1
3393 #: ../src/guestfs.pod:1753 ../tools/virt-win-reg.pl:483 ../tools/virt-make-fs.pl:548
3394 msgid "BUGS"
3395 msgstr ""
3396
3397 # type: textblock
3398 #: ../src/guestfs.pod:1755
3399 msgid "To get a list of bugs against libguestfs use this link:"
3400 msgstr ""
3401
3402 # type: textblock
3403 #: ../src/guestfs.pod:1757
3404 msgid "L<https://bugzilla.redhat.com/buglist.cgi?component=libguestfs&product=Virtualization+Tools>"
3405 msgstr ""
3406
3407 # type: textblock
3408 #: ../src/guestfs.pod:1759
3409 msgid "To report a new bug against libguestfs use this link:"
3410 msgstr ""
3411
3412 # type: textblock
3413 #: ../src/guestfs.pod:1761
3414 msgid "L<https://bugzilla.redhat.com/enter_bug.cgi?component=libguestfs&product=Virtualization+Tools>"
3415 msgstr ""
3416
3417 # type: textblock
3418 #: ../src/guestfs.pod:1763
3419 msgid "When reporting a bug, please check:"
3420 msgstr ""
3421
3422 # type: textblock
3423 #: ../src/guestfs.pod:1769
3424 msgid "That the bug hasn't been reported already."
3425 msgstr ""
3426
3427 # type: textblock
3428 #: ../src/guestfs.pod:1773
3429 msgid "That you are testing a recent version."
3430 msgstr ""
3431
3432 # type: textblock
3433 #: ../src/guestfs.pod:1777
3434 msgid "Describe the bug accurately, and give a way to reproduce it."
3435 msgstr ""
3436
3437 # type: textblock
3438 #: ../src/guestfs.pod:1781
3439 msgid ""
3440 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
3441 "bug report."
3442 msgstr ""
3443
3444 # type: =head1
3445 #: ../src/guestfs.pod:1786 ../fish/guestfish.pod:967 ../test-tool/libguestfs-test-tool.pod:115 ../fuse/guestmount.pod:189 ../inspector/virt-inspector.pl:862
3446 msgid "AUTHORS"
3447 msgstr ""
3448
3449 # type: textblock
3450 #: ../src/guestfs.pod:1788 ../fish/guestfish.pod:969 ../test-tool/libguestfs-test-tool.pod:117 ../fuse/guestmount.pod:191
3451 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
3452 msgstr ""
3453
3454 # type: =head1
3455 #: ../src/guestfs.pod:1790 ../fish/guestfish.pod:971 ../test-tool/libguestfs-test-tool.pod:119 ../fuse/guestmount.pod:193 ../inspector/virt-inspector.pl:868 ../tools/virt-edit.pl:348 ../tools/virt-win-reg.pl:498 ../tools/virt-df.pl:586 ../tools/virt-ls.pl:232 ../tools/virt-resize.pl:1473 ../tools/virt-list-filesystems.pl:214 ../tools/virt-cat.pl:184 ../tools/virt-tar.pl:279 ../tools/virt-rescue.pl:252 ../tools/virt-make-fs.pl:563 ../tools/virt-list-partitions.pl:251
3456 msgid "COPYRIGHT"
3457 msgstr ""
3458
3459 # type: textblock
3460 #: ../src/guestfs.pod:1792 ../fish/guestfish.pod:973
3461 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
3462 msgstr ""
3463
3464 # type: textblock
3465 #: ../src/guestfs.pod:1795
3466 msgid ""
3467 "This library is free software; you can redistribute it and/or modify it "
3468 "under the terms of the GNU Lesser General Public License as published by the "
3469 "Free Software Foundation; either version 2 of the License, or (at your "
3470 "option) any later version."
3471 msgstr ""
3472
3473 # type: textblock
3474 #: ../src/guestfs.pod:1800
3475 msgid ""
3476 "This library is distributed in the hope that it will be useful, but WITHOUT "
3477 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
3478 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License "
3479 "for more details."
3480 msgstr ""
3481
3482 # type: textblock
3483 #: ../src/guestfs.pod:1805
3484 msgid ""
3485 "You should have received a copy of the GNU Lesser General Public License "
3486 "along with this library; if not, write to the Free Software Foundation, "
3487 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
3488 msgstr ""
3489
3490 # type: =head2
3491 #: ../src/guestfs-actions.pod:1
3492 msgid "guestfs_add_cdrom"
3493 msgstr ""
3494
3495 # type: verbatim
3496 #: ../src/guestfs-actions.pod:3
3497 #, no-wrap
3498 msgid ""
3499 " int guestfs_add_cdrom (guestfs_h *g,\n"
3500 "\t\tconst char *filename);\n"
3501 "\n"
3502 msgstr ""
3503
3504 # type: textblock
3505 #: ../src/guestfs-actions.pod:6 ../fish/guestfish-actions.pod:7
3506 msgid "This function adds a virtual CD-ROM disk image to the guest."
3507 msgstr ""
3508
3509 # type: textblock
3510 #: ../src/guestfs-actions.pod:8 ../fish/guestfish-actions.pod:9
3511 msgid "This is equivalent to the qemu parameter C<-cdrom filename>."
3512 msgstr ""
3513
3514 # type: textblock
3515 #: ../src/guestfs-actions.pod:10 ../src/guestfs-actions.pod:1516 ../fish/guestfish-actions.pod:11 ../fish/guestfish-actions.pod:1211
3516 msgid "Notes:"
3517 msgstr ""
3518
3519 # type: textblock
3520 #: ../src/guestfs-actions.pod:16
3521 msgid ""
3522 "This call checks for the existence of C<filename>.  This stops you from "
3523 "specifying other types of drive which are supported by qemu such as C<nbd:> "
3524 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
3525 "instead."
3526 msgstr ""
3527
3528 # type: textblock
3529 #: ../src/guestfs-actions.pod:23
3530 msgid ""
3531 "If you just want to add an ISO file (often you use this as an efficient way "
3532 "to transfer large files into the guest), then you should probably use "
3533 "C<guestfs_add_drive_ro> instead."
3534 msgstr ""
3535
3536 # type: textblock
3537 #: ../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:3870 ../src/guestfs-actions.pod:3884 ../src/guestfs-actions.pod:3894 ../src/guestfs-actions.pod:3905 ../src/guestfs-actions.pod:4160 ../src/guestfs-actions.pod:4176 ../src/guestfs-actions.pod:4187 ../src/guestfs-actions.pod:4196 ../src/guestfs-actions.pod:4207 ../src/guestfs-actions.pod:4216 ../src/guestfs-actions.pod:4227 ../src/guestfs-actions.pod:4240 ../src/guestfs-actions.pod:4258 ../src/guestfs-actions.pod:4274 ../src/guestfs-actions.pod:4290 ../src/guestfs-actions.pod:4305 ../src/guestfs-actions.pod:4325 ../src/guestfs-actions.pod:4340 ../src/guestfs-actions.pod:4356 ../src/guestfs-actions.pod:4374 ../src/guestfs-actions.pod:4390 ../src/guestfs-actions.pod:4404 ../src/guestfs-actions.pod:4429 ../src/guestfs-actions.pod:4450 ../src/guestfs-actions.pod:4466 ../src/guestfs-actions.pod:4487 ../src/guestfs-actions.pod:4499 ../src/guestfs-actions.pod:4511 ../src/guestfs-actions.pod:4527 ../src/guestfs-actions.pod:4561 ../src/guestfs-actions.pod:4581 ../src/guestfs-actions.pod:4604 ../src/guestfs-actions.pod:4694 ../src/guestfs-actions.pod:4800 ../src/guestfs-actions.pod:4809 ../src/guestfs-actions.pod:4819 ../src/guestfs-actions.pod:4829 ../src/guestfs-actions.pod:4848 ../src/guestfs-actions.pod:4858 ../src/guestfs-actions.pod:4868 ../src/guestfs-actions.pod:4878 ../src/guestfs-actions.pod:4890 ../src/guestfs-actions.pod:4940 ../src/guestfs-actions.pod:4954 ../src/guestfs-actions.pod:4967 ../src/guestfs-actions.pod:4980 ../src/guestfs-actions.pod:4994 ../src/guestfs-actions.pod:5004 ../src/guestfs-actions.pod:5021 ../src/guestfs-actions.pod:5051 ../src/guestfs-actions.pod:5062 ../src/guestfs-actions.pod:5097 ../src/guestfs-actions.pod:5107 ../src/guestfs-actions.pod:5122 ../src/guestfs-actions.pod:5148 ../src/guestfs-actions.pod:5176 ../src/guestfs-actions.pod:5280 ../src/guestfs-actions.pod:5295 ../src/guestfs-actions.pod:5306 ../src/guestfs-actions.pod:5352 ../src/guestfs-actions.pod:5362 ../src/guestfs-actions.pod:5399 ../src/guestfs-actions.pod:5426 ../src/guestfs-actions.pod:5468 ../src/guestfs-actions.pod:5491 ../src/guestfs-actions.pod:5548 ../src/guestfs-actions.pod:5564 ../src/guestfs-actions.pod:5590
3538 msgid "This function returns 0 on success or -1 on error."
3539 msgstr ""
3540
3541 # type: =head2
3542 #: ../src/guestfs-actions.pod:31
3543 msgid "guestfs_add_drive"
3544 msgstr ""
3545
3546 # type: verbatim
3547 #: ../src/guestfs-actions.pod:33
3548 #, no-wrap
3549 msgid ""
3550 " int guestfs_add_drive (guestfs_h *g,\n"
3551 "\t\tconst char *filename);\n"
3552 "\n"
3553 msgstr ""
3554
3555 # type: textblock
3556 #: ../src/guestfs-actions.pod:36 ../fish/guestfish-actions.pod:36
3557 msgid ""
3558 "This function adds a virtual machine disk image C<filename> to the guest.  "
3559 "The first time you call this function, the disk appears as IDE disk 0 "
3560 "(C</dev/sda>) in the guest, the second time as C</dev/sdb>, and so on."
3561 msgstr ""
3562
3563 # type: textblock
3564 #: ../src/guestfs-actions.pod:41 ../fish/guestfish-actions.pod:41
3565 msgid ""
3566 "You don't necessarily need to be root when using libguestfs.  However you "
3567 "obviously do need sufficient permissions to access the filename for whatever "
3568 "operations you want to perform (ie. read access if you just want to read the "
3569 "image or write access if you want to modify the image)."
3570 msgstr ""
3571
3572 # type: textblock
3573 #: ../src/guestfs-actions.pod:47 ../fish/guestfish-actions.pod:47
3574 msgid ""
3575 "This is equivalent to the qemu parameter C<-drive "
3576 "file=filename,cache=off,if=...>."
3577 msgstr ""
3578
3579 # type: textblock
3580 #: ../src/guestfs-actions.pod:50 ../fish/guestfish-actions.pod:50
3581 msgid ""
3582 "C<cache=off> is omitted in cases where it is not supported by the underlying "
3583 "filesystem."
3584 msgstr ""
3585
3586 # type: textblock
3587 #: ../src/guestfs-actions.pod:53 ../src/guestfs-actions.pod:82
3588 msgid ""
3589 "C<if=...> is set at compile time by the configuration option C<./configure "
3590 "--with-drive-if=...>.  In the rare case where you might need to change this "
3591 "at run time, use C<guestfs_add_drive_with_if> or "
3592 "C<guestfs_add_drive_ro_with_if>."
3593 msgstr ""
3594
3595 # type: textblock
3596 #: ../src/guestfs-actions.pod:58 ../src/guestfs-actions.pod:87
3597 msgid ""
3598 "Note that this call checks for the existence of C<filename>.  This stops you "
3599 "from specifying other types of drive which are supported by qemu such as "
3600 "C<nbd:> and C<http:> URLs.  To specify those, use the general "
3601 "C<guestfs_config> call instead."
3602 msgstr ""
3603
3604 # type: =head2
3605 #: ../src/guestfs-actions.pod:65
3606 msgid "guestfs_add_drive_ro"
3607 msgstr ""
3608
3609 # type: verbatim
3610 #: ../src/guestfs-actions.pod:67
3611 #, no-wrap
3612 msgid ""
3613 " int guestfs_add_drive_ro (guestfs_h *g,\n"
3614 "\t\tconst char *filename);\n"
3615 "\n"
3616 msgstr ""
3617
3618 # type: textblock
3619 #: ../src/guestfs-actions.pod:70 ../fish/guestfish-actions.pod:69
3620 msgid "This adds a drive in snapshot mode, making it effectively read-only."
3621 msgstr ""
3622
3623 # type: textblock
3624 #: ../src/guestfs-actions.pod:73 ../fish/guestfish-actions.pod:72
3625 msgid ""
3626 "Note that writes to the device are allowed, and will be seen for the "
3627 "duration of the guestfs handle, but they are written to a temporary file "
3628 "which is discarded as soon as the guestfs handle is closed.  We don't "
3629 "currently have any method to enable changes to be committed, although qemu "
3630 "can support this."
3631 msgstr ""
3632
3633 # type: textblock
3634 #: ../src/guestfs-actions.pod:79 ../fish/guestfish-actions.pod:78
3635 msgid ""
3636 "This is equivalent to the qemu parameter C<-drive "
3637 "file=filename,snapshot=on,if=...>."
3638 msgstr ""
3639
3640 # type: =head2
3641 #: ../src/guestfs-actions.pod:94
3642 msgid "guestfs_add_drive_ro_with_if"
3643 msgstr ""
3644
3645 # type: verbatim
3646 #: ../src/guestfs-actions.pod:96
3647 #, no-wrap
3648 msgid ""
3649 " int guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
3650 "\t\tconst char *filename,\n"
3651 "\t\tconst char *iface);\n"
3652 "\n"
3653 msgstr ""
3654
3655 # type: textblock
3656 #: ../src/guestfs-actions.pod:100
3657 msgid ""
3658 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
3659 "QEMU interface emulation to use at run time."
3660 msgstr ""
3661
3662 # type: =head2
3663 #: ../src/guestfs-actions.pod:105
3664 msgid "guestfs_add_drive_with_if"
3665 msgstr ""
3666
3667 # type: verbatim
3668 #: ../src/guestfs-actions.pod:107
3669 #, no-wrap
3670 msgid ""
3671 " int guestfs_add_drive_with_if (guestfs_h *g,\n"
3672 "\t\tconst char *filename,\n"
3673 "\t\tconst char *iface);\n"
3674 "\n"
3675 msgstr ""
3676
3677 # type: textblock
3678 #: ../src/guestfs-actions.pod:111
3679 msgid ""
3680 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
3681 "QEMU interface emulation to use at run time."
3682 msgstr ""
3683
3684 # type: =head2
3685 #: ../src/guestfs-actions.pod:116
3686 msgid "guestfs_aug_clear"
3687 msgstr ""
3688
3689 # type: verbatim
3690 #: ../src/guestfs-actions.pod:118
3691 #, no-wrap
3692 msgid ""
3693 " int guestfs_aug_clear (guestfs_h *g,\n"
3694 "\t\tconst char *augpath);\n"
3695 "\n"
3696 msgstr ""
3697
3698 # type: textblock
3699 #: ../src/guestfs-actions.pod:121 ../fish/guestfish-actions.pod:109
3700 msgid ""
3701 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
3702 "L<augtool(1)> C<clear> command."
3703 msgstr ""
3704
3705 # type: =head2
3706 #: ../src/guestfs-actions.pod:126
3707 msgid "guestfs_aug_close"
3708 msgstr ""
3709
3710 # type: verbatim
3711 #: ../src/guestfs-actions.pod:128
3712 #, no-wrap
3713 msgid ""
3714 " int guestfs_aug_close (guestfs_h *g);\n"
3715 "\n"
3716 msgstr ""
3717
3718 # type: textblock
3719 #: ../src/guestfs-actions.pod:130
3720 msgid ""
3721 "Close the current Augeas handle and free up any resources used by it.  After "
3722 "calling this, you have to call C<guestfs_aug_init> again before you can use "
3723 "any other Augeas functions."
3724 msgstr ""
3725
3726 # type: =head2
3727 #: ../src/guestfs-actions.pod:137
3728 msgid "guestfs_aug_defnode"
3729 msgstr ""
3730
3731 # type: verbatim
3732 #: ../src/guestfs-actions.pod:139
3733 #, no-wrap
3734 msgid ""
3735 " struct guestfs_int_bool *guestfs_aug_defnode (guestfs_h *g,\n"
3736 "\t\tconst char *name,\n"
3737 "\t\tconst char *expr,\n"
3738 "\t\tconst char *val);\n"
3739 "\n"
3740 msgstr ""
3741
3742 # type: textblock
3743 #: ../src/guestfs-actions.pod:144 ../fish/guestfish-actions.pod:125
3744 msgid "Defines a variable C<name> whose value is the result of evaluating C<expr>."
3745 msgstr ""
3746
3747 # type: textblock
3748 #: ../src/guestfs-actions.pod:147
3749 msgid ""
3750 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
3751 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
3752 "containing that single node."
3753 msgstr ""
3754
3755 # type: textblock
3756 #: ../src/guestfs-actions.pod:151 ../fish/guestfish-actions.pod:132
3757 msgid ""
3758 "On success this returns a pair containing the number of nodes in the "
3759 "nodeset, and a boolean flag if a node was created."
3760 msgstr ""
3761
3762 # type: textblock
3763 #: ../src/guestfs-actions.pod:155
3764 msgid ""
3765 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
3766 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
3767 msgstr ""
3768
3769 # type: =head2
3770 #: ../src/guestfs-actions.pod:159
3771 msgid "guestfs_aug_defvar"
3772 msgstr ""
3773
3774 # type: verbatim
3775 #: ../src/guestfs-actions.pod:161
3776 #, no-wrap
3777 msgid ""
3778 " int guestfs_aug_defvar (guestfs_h *g,\n"
3779 "\t\tconst char *name,\n"
3780 "\t\tconst char *expr);\n"
3781 "\n"
3782 msgstr ""
3783
3784 # type: textblock
3785 #: ../src/guestfs-actions.pod:165 ../fish/guestfish-actions.pod:140
3786 msgid ""
3787 "Defines an Augeas variable C<name> whose value is the result of evaluating "
3788 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
3789 msgstr ""
3790
3791 # type: textblock
3792 #: ../src/guestfs-actions.pod:169 ../fish/guestfish-actions.pod:144
3793 msgid ""
3794 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
3795 "evaluates to something which is not a nodeset."
3796 msgstr ""
3797
3798 # type: textblock
3799 #: ../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:3964 ../src/guestfs-actions.pod:3987 ../src/guestfs-actions.pod:5086 ../src/guestfs-actions.pod:5436 ../src/guestfs-actions.pod:5446 ../src/guestfs-actions.pod:5456
3800 msgid "On error this function returns -1."
3801 msgstr ""
3802
3803 # type: =head2
3804 #: ../src/guestfs-actions.pod:174
3805 msgid "guestfs_aug_get"
3806 msgstr ""
3807
3808 # type: verbatim
3809 #: ../src/guestfs-actions.pod:176
3810 #, no-wrap
3811 msgid ""
3812 " char *guestfs_aug_get (guestfs_h *g,\n"
3813 "\t\tconst char *augpath);\n"
3814 "\n"
3815 msgstr ""
3816
3817 # type: textblock
3818 #: ../src/guestfs-actions.pod:179 ../fish/guestfish-actions.pod:151
3819 msgid ""
3820 "Look up the value associated with C<path>.  If C<path> matches exactly one "
3821 "node, the C<value> is returned."
3822 msgstr ""
3823
3824 # type: textblock
3825 #: ../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:3942 ../src/guestfs-actions.pod:4103 ../src/guestfs-actions.pod:4146 ../src/guestfs-actions.pod:4622 ../src/guestfs-actions.pod:4635 ../src/guestfs-actions.pod:4649 ../src/guestfs-actions.pod:4670 ../src/guestfs-actions.pod:5229 ../src/guestfs-actions.pod:5245 ../src/guestfs-actions.pod:5260 ../src/guestfs-actions.pod:5408 ../src/guestfs-actions.pod:5638
3826 msgid ""
3827 "This function returns a string, or NULL on error.  I<The caller must free "
3828 "the returned string after use>."
3829 msgstr ""
3830
3831 # type: =head2
3832 #: ../src/guestfs-actions.pod:185
3833 msgid "guestfs_aug_init"
3834 msgstr ""
3835
3836 # type: verbatim
3837 #: ../src/guestfs-actions.pod:187
3838 #, no-wrap
3839 msgid ""
3840 " int guestfs_aug_init (guestfs_h *g,\n"
3841 "\t\tconst char *root,\n"
3842 "\t\tint flags);\n"
3843 "\n"
3844 msgstr ""
3845
3846 # type: textblock
3847 #: ../src/guestfs-actions.pod:191 ../fish/guestfish-actions.pod:158
3848 msgid ""
3849 "Create a new Augeas handle for editing configuration files.  If there was "
3850 "any previous Augeas handle associated with this guestfs session, then it is "
3851 "closed."
3852 msgstr ""
3853
3854 # type: textblock
3855 #: ../src/guestfs-actions.pod:195
3856 msgid "You must call this before using any other C<guestfs_aug_*> commands."
3857 msgstr ""
3858
3859 # type: textblock
3860 #: ../src/guestfs-actions.pod:198 ../fish/guestfish-actions.pod:165
3861 msgid "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
3862 msgstr ""
3863
3864 # type: textblock
3865 #: ../src/guestfs-actions.pod:201 ../fish/guestfish-actions.pod:168
3866 msgid ""
3867 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
3868 "logical I<or> of the following integers:"
3869 msgstr ""
3870
3871 # type: =item
3872 #: ../src/guestfs-actions.pod:207 ../fish/guestfish-actions.pod:174
3873 msgid "C<AUG_SAVE_BACKUP> = 1"
3874 msgstr ""
3875
3876 # type: textblock
3877 #: ../src/guestfs-actions.pod:209 ../fish/guestfish-actions.pod:176
3878 msgid "Keep the original file with a C<.augsave> extension."
3879 msgstr ""
3880
3881 # type: =item
3882 #: ../src/guestfs-actions.pod:211 ../fish/guestfish-actions.pod:178
3883 msgid "C<AUG_SAVE_NEWFILE> = 2"
3884 msgstr ""
3885
3886 # type: textblock
3887 #: ../src/guestfs-actions.pod:213 ../fish/guestfish-actions.pod:180
3888 msgid ""
3889 "Save changes into a file with extension C<.augnew>, and do not overwrite "
3890 "original.  Overrides C<AUG_SAVE_BACKUP>."
3891 msgstr ""
3892
3893 # type: =item
3894 #: ../src/guestfs-actions.pod:216 ../fish/guestfish-actions.pod:183
3895 msgid "C<AUG_TYPE_CHECK> = 4"
3896 msgstr ""
3897
3898 # type: textblock
3899 #: ../src/guestfs-actions.pod:218 ../fish/guestfish-actions.pod:185
3900 msgid "Typecheck lenses (can be expensive)."
3901 msgstr ""
3902
3903 # type: =item
3904 #: ../src/guestfs-actions.pod:220 ../fish/guestfish-actions.pod:187
3905 msgid "C<AUG_NO_STDINC> = 8"
3906 msgstr ""
3907
3908 # type: textblock
3909 #: ../src/guestfs-actions.pod:222 ../fish/guestfish-actions.pod:189
3910 msgid "Do not use standard load path for modules."
3911 msgstr ""
3912
3913 # type: =item
3914 #: ../src/guestfs-actions.pod:224 ../fish/guestfish-actions.pod:191
3915 msgid "C<AUG_SAVE_NOOP> = 16"
3916 msgstr ""
3917
3918 # type: textblock
3919 #: ../src/guestfs-actions.pod:226 ../fish/guestfish-actions.pod:193
3920 msgid "Make save a no-op, just record what would have been changed."
3921 msgstr ""
3922
3923 # type: =item
3924 #: ../src/guestfs-actions.pod:228 ../fish/guestfish-actions.pod:195
3925 msgid "C<AUG_NO_LOAD> = 32"
3926 msgstr ""
3927
3928 # type: textblock
3929 #: ../src/guestfs-actions.pod:230
3930 msgid "Do not load the tree in C<guestfs_aug_init>."
3931 msgstr ""
3932
3933 # type: textblock
3934 #: ../src/guestfs-actions.pod:234
3935 msgid "To close the handle, you can call C<guestfs_aug_close>."
3936 msgstr ""
3937
3938 # type: textblock
3939 #: ../src/guestfs-actions.pod:236 ../fish/guestfish-actions.pod:203
3940 msgid "To find out more about Augeas, see L<http://augeas.net/>."
3941 msgstr ""
3942
3943 # type: =head2
3944 #: ../src/guestfs-actions.pod:240
3945 msgid "guestfs_aug_insert"
3946 msgstr ""
3947
3948 # type: verbatim
3949 #: ../src/guestfs-actions.pod:242
3950 #, no-wrap
3951 msgid ""
3952 " int guestfs_aug_insert (guestfs_h *g,\n"
3953 "\t\tconst char *augpath,\n"
3954 "\t\tconst char *label,\n"
3955 "\t\tint before);\n"
3956 "\n"
3957 msgstr ""
3958
3959 # type: textblock
3960 #: ../src/guestfs-actions.pod:247 ../fish/guestfish-actions.pod:209
3961 msgid ""
3962 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
3963 "or after C<path> (depending on the boolean flag C<before>)."
3964 msgstr ""
3965
3966 # type: textblock
3967 #: ../src/guestfs-actions.pod:251 ../fish/guestfish-actions.pod:213
3968 msgid ""
3969 "C<path> must match exactly one existing node in the tree, and C<label> must "
3970 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
3971 msgstr ""
3972
3973 # type: =head2
3974 #: ../src/guestfs-actions.pod:257
3975 msgid "guestfs_aug_load"
3976 msgstr ""
3977
3978 # type: verbatim
3979 #: ../src/guestfs-actions.pod:259
3980 #, no-wrap
3981 msgid ""
3982 " int guestfs_aug_load (guestfs_h *g);\n"
3983 "\n"
3984 msgstr ""
3985
3986 # type: textblock
3987 #: ../src/guestfs-actions.pod:261 ../fish/guestfish-actions.pod:221
3988 msgid "Load files into the tree."
3989 msgstr ""
3990
3991 # type: textblock
3992 #: ../src/guestfs-actions.pod:263 ../fish/guestfish-actions.pod:223
3993 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
3994 msgstr ""
3995
3996 # type: =head2
3997 #: ../src/guestfs-actions.pod:268
3998 msgid "guestfs_aug_ls"
3999 msgstr ""
4000
4001 # type: verbatim
4002 #: ../src/guestfs-actions.pod:270
4003 #, no-wrap
4004 msgid ""
4005 " char **guestfs_aug_ls (guestfs_h *g,\n"
4006 "\t\tconst char *augpath);\n"
4007 "\n"
4008 msgstr ""
4009
4010 # type: textblock
4011 #: ../src/guestfs-actions.pod:273
4012 msgid ""
4013 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
4014 "sorting the resulting nodes into alphabetical order."
4015 msgstr ""
4016
4017 # type: textblock
4018 #: ../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:3919 ../src/guestfs-actions.pod:4028 ../src/guestfs-actions.pod:4134 ../src/guestfs-actions.pod:4683 ../src/guestfs-actions.pod:4732 ../src/guestfs-actions.pod:4784 ../src/guestfs-actions.pod:4900 ../src/guestfs-actions.pod:4921 ../src/guestfs-actions.pod:5321 ../src/guestfs-actions.pod:5338 ../src/guestfs-actions.pod:5376 ../src/guestfs-actions.pod:5512 ../src/guestfs-actions.pod:5528 ../src/guestfs-actions.pod:5601 ../src/guestfs-actions.pod:5617 ../src/guestfs-actions.pod:5657 ../src/guestfs-actions.pod:5673
4019 msgid ""
4020 "This function returns a NULL-terminated array of strings (like "
4021 "L<environ(3)>), or NULL if there was an error.  I<The caller must free the "
4022 "strings and the array after use>."
4023 msgstr ""
4024
4025 # type: =head2
4026 #: ../src/guestfs-actions.pod:280
4027 msgid "guestfs_aug_match"
4028 msgstr ""
4029
4030 # type: verbatim
4031 #: ../src/guestfs-actions.pod:282
4032 #, no-wrap
4033 msgid ""
4034 " char **guestfs_aug_match (guestfs_h *g,\n"
4035 "\t\tconst char *augpath);\n"
4036 "\n"
4037 msgstr ""
4038
4039 # type: textblock
4040 #: ../src/guestfs-actions.pod:285 ../fish/guestfish-actions.pod:237
4041 msgid ""
4042 "Returns a list of paths which match the path expression C<path>.  The "
4043 "returned paths are sufficiently qualified so that they match exactly one "
4044 "node in the current tree."
4045 msgstr ""
4046
4047 # type: =head2
4048 #: ../src/guestfs-actions.pod:293
4049 msgid "guestfs_aug_mv"
4050 msgstr ""
4051
4052 # type: verbatim
4053 #: ../src/guestfs-actions.pod:295
4054 #, no-wrap
4055 msgid ""
4056 " int guestfs_aug_mv (guestfs_h *g,\n"
4057 "\t\tconst char *src,\n"
4058 "\t\tconst char *dest);\n"
4059 "\n"
4060 msgstr ""
4061
4062 # type: textblock
4063 #: ../src/guestfs-actions.pod:299 ../fish/guestfish-actions.pod:245
4064 msgid ""
4065 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
4066 "C<dest> is overwritten if it exists."
4067 msgstr ""
4068
4069 # type: =head2
4070 #: ../src/guestfs-actions.pod:304
4071 msgid "guestfs_aug_rm"
4072 msgstr ""
4073
4074 # type: verbatim
4075 #: ../src/guestfs-actions.pod:306
4076 #, no-wrap
4077 msgid ""
4078 " int guestfs_aug_rm (guestfs_h *g,\n"
4079 "\t\tconst char *augpath);\n"
4080 "\n"
4081 msgstr ""
4082
4083 # type: textblock
4084 #: ../src/guestfs-actions.pod:309 ../fish/guestfish-actions.pod:252
4085 msgid "Remove C<path> and all of its children."
4086 msgstr ""
4087
4088 # type: textblock
4089 #: ../src/guestfs-actions.pod:311 ../fish/guestfish-actions.pod:254
4090 msgid "On success this returns the number of entries which were removed."
4091 msgstr ""
4092
4093 # type: =head2
4094 #: ../src/guestfs-actions.pod:315
4095 msgid "guestfs_aug_save"
4096 msgstr ""
4097
4098 # type: verbatim
4099 #: ../src/guestfs-actions.pod:317
4100 #, no-wrap
4101 msgid ""
4102 " int guestfs_aug_save (guestfs_h *g);\n"
4103 "\n"
4104 msgstr ""
4105
4106 # type: textblock
4107 #: ../src/guestfs-actions.pod:319 ../fish/guestfish-actions.pod:260
4108 msgid "This writes all pending changes to disk."
4109 msgstr ""
4110
4111 # type: textblock
4112 #: ../src/guestfs-actions.pod:321
4113 msgid ""
4114 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
4115 "are saved."
4116 msgstr ""
4117
4118 # type: =head2
4119 #: ../src/guestfs-actions.pod:326
4120 msgid "guestfs_aug_set"
4121 msgstr ""
4122
4123 # type: verbatim
4124 #: ../src/guestfs-actions.pod:328
4125 #, no-wrap
4126 msgid ""
4127 " int guestfs_aug_set (guestfs_h *g,\n"
4128 "\t\tconst char *augpath,\n"
4129 "\t\tconst char *val);\n"
4130 "\n"
4131 msgstr ""
4132
4133 # type: textblock
4134 #: ../src/guestfs-actions.pod:332 ../fish/guestfish-actions.pod:269
4135 msgid "Set the value associated with C<path> to C<val>."
4136 msgstr ""
4137
4138 # type: textblock
4139 #: ../src/guestfs-actions.pod:334
4140 msgid ""
4141 "In the Augeas API, it is possible to clear a node by setting the value to "
4142 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
4143 "this call.  Instead you must use the C<guestfs_aug_clear> call."
4144 msgstr ""
4145
4146 # type: =head2
4147 #: ../src/guestfs-actions.pod:341
4148 msgid "guestfs_available"
4149 msgstr ""
4150
4151 # type: verbatim
4152 #: ../src/guestfs-actions.pod:343
4153 #, no-wrap
4154 msgid ""
4155 " int guestfs_available (guestfs_h *g,\n"
4156 "\t\tchar *const *groups);\n"
4157 "\n"
4158 msgstr ""
4159
4160 # type: textblock
4161 #: ../src/guestfs-actions.pod:346 ../fish/guestfish-actions.pod:280
4162 msgid ""
4163 "This command is used to check the availability of some groups of "
4164 "functionality in the appliance, which not all builds of the libguestfs "
4165 "appliance will be able to provide."
4166 msgstr ""
4167
4168 # type: textblock
4169 #: ../src/guestfs-actions.pod:350
4170 msgid ""
4171 "The libguestfs groups, and the functions that those groups correspond to, "
4172 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
4173 "runtime by calling C<guestfs_available_all_groups>."
4174 msgstr ""
4175
4176 # type: textblock
4177 #: ../src/guestfs-actions.pod:355 ../fish/guestfish-actions.pod:289
4178 msgid ""
4179 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", "
4180 "\"augeas\"]> would check for the availability of the Linux inotify functions "
4181 "and Augeas (configuration file editing) functions."
4182 msgstr ""
4183
4184 # type: textblock
4185 #: ../src/guestfs-actions.pod:360 ../fish/guestfish-actions.pod:294
4186 msgid "The command returns no error if I<all> requested groups are available."
4187 msgstr ""
4188
4189 # type: textblock
4190 #: ../src/guestfs-actions.pod:362 ../fish/guestfish-actions.pod:296
4191 msgid ""
4192 "It fails with an error if one or more of the requested groups is unavailable "
4193 "in the appliance."
4194 msgstr ""
4195
4196 # type: textblock
4197 #: ../src/guestfs-actions.pod:365 ../fish/guestfish-actions.pod:299
4198 msgid ""
4199 "If an unknown group name is included in the list of groups then an error is "
4200 "always returned."
4201 msgstr ""
4202
4203 # type: textblock
4204 #: ../src/guestfs-actions.pod:368 ../fish/guestfish-actions.pod:302
4205 msgid "I<Notes:>"
4206 msgstr ""
4207
4208 # type: textblock
4209 #: ../src/guestfs-actions.pod:374
4210 msgid "You must call C<guestfs_launch> before calling this function."
4211 msgstr ""
4212
4213 # type: textblock
4214 #: ../src/guestfs-actions.pod:376 ../fish/guestfish-actions.pod:310
4215 msgid ""
4216 "The reason is because we don't know what groups are supported by the "
4217 "appliance/daemon until it is running and can be queried."
4218 msgstr ""
4219
4220 # type: textblock
4221 #: ../src/guestfs-actions.pod:382 ../fish/guestfish-actions.pod:316
4222 msgid ""
4223 "If a group of functions is available, this does not necessarily mean that "
4224 "they will work.  You still have to check for errors when calling individual "
4225 "API functions even if they are available."
4226 msgstr ""
4227
4228 # type: textblock
4229 #: ../src/guestfs-actions.pod:389 ../fish/guestfish-actions.pod:323
4230 msgid ""
4231 "It is usually the job of distro packagers to build complete functionality "
4232 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
4233 "with all requirements satisfied, will support everything."
4234 msgstr ""
4235
4236 # type: textblock
4237 #: ../src/guestfs-actions.pod:396
4238 msgid ""
4239 "This call was added in version C<1.0.80>.  In previous versions of "
4240 "libguestfs all you could do would be to speculatively execute a command to "
4241 "find out if the daemon implemented it.  See also C<guestfs_version>."
4242 msgstr ""
4243
4244 # type: =head2
4245 #: ../src/guestfs-actions.pod:405
4246 msgid "guestfs_available_all_groups"
4247 msgstr ""
4248
4249 # type: verbatim
4250 #: ../src/guestfs-actions.pod:407
4251 #, no-wrap
4252 msgid ""
4253 " char **guestfs_available_all_groups (guestfs_h *g);\n"
4254 "\n"
4255 msgstr ""
4256
4257 # type: textblock
4258 #: ../src/guestfs-actions.pod:409
4259 msgid ""
4260 "This command returns a list of all optional groups that this daemon knows "
4261 "about.  Note this returns both supported and unsupported groups.  To find "
4262 "out which ones the daemon can actually support you have to call "
4263 "C<guestfs_available> on each member of the returned list."
4264 msgstr ""
4265
4266 # type: textblock
4267 #: ../src/guestfs-actions.pod:415
4268 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
4269 msgstr ""
4270
4271 # type: =head2
4272 #: ../src/guestfs-actions.pod:421
4273 msgid "guestfs_base64_in"
4274 msgstr ""
4275
4276 # type: verbatim
4277 #: ../src/guestfs-actions.pod:423
4278 #, no-wrap
4279 msgid ""
4280 " int guestfs_base64_in (guestfs_h *g,\n"
4281 "\t\tconst char *base64file,\n"
4282 "\t\tconst char *filename);\n"
4283 "\n"
4284 msgstr ""
4285
4286 # type: textblock
4287 #: ../src/guestfs-actions.pod:427 ../fish/guestfish-actions.pod:353
4288 msgid "This command uploads base64-encoded data from C<base64file> to C<filename>."
4289 msgstr ""
4290
4291 # type: =head2
4292 #: ../src/guestfs-actions.pod:432
4293 msgid "guestfs_base64_out"
4294 msgstr ""
4295
4296 # type: verbatim
4297 #: ../src/guestfs-actions.pod:434
4298 #, no-wrap
4299 msgid ""
4300 " int guestfs_base64_out (guestfs_h *g,\n"
4301 "\t\tconst char *filename,\n"
4302 "\t\tconst char *base64file);\n"
4303 "\n"
4304 msgstr ""
4305
4306 # type: textblock
4307 #: ../src/guestfs-actions.pod:438 ../fish/guestfish-actions.pod:362
4308 msgid ""
4309 "This command downloads the contents of C<filename>, writing it out to local "
4310 "file C<base64file> encoded as base64."
4311 msgstr ""
4312
4313 # type: =head2
4314 #: ../src/guestfs-actions.pod:443
4315 msgid "guestfs_blockdev_flushbufs"
4316 msgstr ""
4317
4318 # type: verbatim
4319 #: ../src/guestfs-actions.pod:445
4320 #, no-wrap
4321 msgid ""
4322 " int guestfs_blockdev_flushbufs (guestfs_h *g,\n"
4323 "\t\tconst char *device);\n"
4324 "\n"
4325 msgstr ""
4326
4327 # type: textblock
4328 #: ../src/guestfs-actions.pod:448 ../fish/guestfish-actions.pod:371
4329 msgid "This tells the kernel to flush internal buffers associated with C<device>."
4330 msgstr ""
4331
4332 # type: textblock
4333 #: ../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
4334 msgid "This uses the L<blockdev(8)> command."
4335 msgstr ""
4336
4337 # type: =head2
4338 #: ../src/guestfs-actions.pod:455
4339 msgid "guestfs_blockdev_getbsz"
4340 msgstr ""
4341
4342 # type: verbatim
4343 #: ../src/guestfs-actions.pod:457
4344 #, no-wrap
4345 msgid ""
4346 " int guestfs_blockdev_getbsz (guestfs_h *g,\n"
4347 "\t\tconst char *device);\n"
4348 "\n"
4349 msgstr ""
4350
4351 # type: textblock
4352 #: ../src/guestfs-actions.pod:460 ../fish/guestfish-actions.pod:380
4353 msgid "This returns the block size of a device."
4354 msgstr ""
4355
4356 # type: textblock
4357 #: ../src/guestfs-actions.pod:462 ../src/guestfs-actions.pod:544 ../fish/guestfish-actions.pod:382 ../fish/guestfish-actions.pod:445
4358 msgid ""
4359 "(Note this is different from both I<size in blocks> and I<filesystem block "
4360 "size>)."
4361 msgstr ""
4362
4363 # type: =head2
4364 #: ../src/guestfs-actions.pod:469
4365 msgid "guestfs_blockdev_getro"
4366 msgstr ""
4367
4368 # type: verbatim
4369 #: ../src/guestfs-actions.pod:471
4370 #, no-wrap
4371 msgid ""
4372 " int guestfs_blockdev_getro (guestfs_h *g,\n"
4373 "\t\tconst char *device);\n"
4374 "\n"
4375 msgstr ""
4376
4377 # type: textblock
4378 #: ../src/guestfs-actions.pod:474 ../fish/guestfish-actions.pod:391
4379 msgid ""
4380 "Returns a boolean indicating if the block device is read-only (true if "
4381 "read-only, false if not)."
4382 msgstr ""
4383
4384 # type: textblock
4385 #: ../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
4386 msgid "This function returns a C truth value on success or -1 on error."
4387 msgstr ""
4388
4389 # type: =head2
4390 #: ../src/guestfs-actions.pod:481
4391 msgid "guestfs_blockdev_getsize64"
4392 msgstr ""
4393
4394 # type: verbatim
4395 #: ../src/guestfs-actions.pod:483
4396 #, no-wrap
4397 msgid ""
4398 " int64_t guestfs_blockdev_getsize64 (guestfs_h *g,\n"
4399 "\t\tconst char *device);\n"
4400 "\n"
4401 msgstr ""
4402
4403 # type: textblock
4404 #: ../src/guestfs-actions.pod:486 ../fish/guestfish-actions.pod:400
4405 msgid "This returns the size of the device in bytes."
4406 msgstr ""
4407
4408 # type: textblock
4409 #: ../src/guestfs-actions.pod:488
4410 msgid "See also C<guestfs_blockdev_getsz>."
4411 msgstr ""
4412
4413 # type: =head2
4414 #: ../src/guestfs-actions.pod:494
4415 msgid "guestfs_blockdev_getss"
4416 msgstr ""
4417
4418 # type: verbatim
4419 #: ../src/guestfs-actions.pod:496
4420 #, no-wrap
4421 msgid ""
4422 " int guestfs_blockdev_getss (guestfs_h *g,\n"
4423 "\t\tconst char *device);\n"
4424 "\n"
4425 msgstr ""
4426
4427 # type: textblock
4428 #: ../src/guestfs-actions.pod:499 ../fish/guestfish-actions.pod:410
4429 msgid ""
4430 "This returns the size of sectors on a block device.  Usually 512, but can be "
4431 "larger for modern devices."
4432 msgstr ""
4433
4434 # type: textblock
4435 #: ../src/guestfs-actions.pod:502
4436 msgid ""
4437 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
4438 "that)."
4439 msgstr ""
4440
4441 # type: =head2
4442 #: ../src/guestfs-actions.pod:509
4443 msgid "guestfs_blockdev_getsz"
4444 msgstr ""
4445
4446 # type: verbatim
4447 #: ../src/guestfs-actions.pod:511
4448 #, no-wrap
4449 msgid ""
4450 " int64_t guestfs_blockdev_getsz (guestfs_h *g,\n"
4451 "\t\tconst char *device);\n"
4452 "\n"
4453 msgstr ""
4454
4455 # type: textblock
4456 #: ../src/guestfs-actions.pod:514 ../fish/guestfish-actions.pod:422
4457 msgid ""
4458 "This returns the size of the device in units of 512-byte sectors (even if "
4459 "the sectorsize isn't 512 bytes ... weird)."
4460 msgstr ""
4461
4462 # type: textblock
4463 #: ../src/guestfs-actions.pod:517
4464 msgid ""
4465 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
4466 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
4467 msgstr ""
4468
4469 # type: =head2
4470 #: ../src/guestfs-actions.pod:525
4471 msgid "guestfs_blockdev_rereadpt"
4472 msgstr ""
4473
4474 # type: verbatim
4475 #: ../src/guestfs-actions.pod:527
4476 #, no-wrap
4477 msgid ""
4478 " int guestfs_blockdev_rereadpt (guestfs_h *g,\n"
4479 "\t\tconst char *device);\n"
4480 "\n"
4481 msgstr ""
4482
4483 # type: textblock
4484 #: ../src/guestfs-actions.pod:530 ../fish/guestfish-actions.pod:435
4485 msgid "Reread the partition table on C<device>."
4486 msgstr ""
4487
4488 # type: =head2
4489 #: ../src/guestfs-actions.pod:536
4490 msgid "guestfs_blockdev_setbsz"
4491 msgstr ""
4492
4493 # type: verbatim
4494 #: ../src/guestfs-actions.pod:538
4495 #, no-wrap
4496 msgid ""
4497 " int guestfs_blockdev_setbsz (guestfs_h *g,\n"
4498 "\t\tconst char *device,\n"
4499 "\t\tint blocksize);\n"
4500 "\n"
4501 msgstr ""
4502
4503 # type: textblock
4504 #: ../src/guestfs-actions.pod:542 ../fish/guestfish-actions.pod:443
4505 msgid "This sets the block size of a device."
4506 msgstr ""
4507
4508 # type: =head2
4509 #: ../src/guestfs-actions.pod:551
4510 msgid "guestfs_blockdev_setro"
4511 msgstr ""
4512
4513 # type: verbatim
4514 #: ../src/guestfs-actions.pod:553
4515 #, no-wrap
4516 msgid ""
4517 " int guestfs_blockdev_setro (guestfs_h *g,\n"
4518 "\t\tconst char *device);\n"
4519 "\n"
4520 msgstr ""
4521
4522 # type: textblock
4523 #: ../src/guestfs-actions.pod:556 ../fish/guestfish-actions.pod:454
4524 msgid "Sets the block device named C<device> to read-only."
4525 msgstr ""
4526
4527 # type: =head2
4528 #: ../src/guestfs-actions.pod:562
4529 msgid "guestfs_blockdev_setrw"
4530 msgstr ""
4531
4532 # type: verbatim
4533 #: ../src/guestfs-actions.pod:564
4534 #, no-wrap
4535 msgid ""
4536 " int guestfs_blockdev_setrw (guestfs_h *g,\n"
4537 "\t\tconst char *device);\n"
4538 "\n"
4539 msgstr ""
4540
4541 # type: textblock
4542 #: ../src/guestfs-actions.pod:567 ../fish/guestfish-actions.pod:462
4543 msgid "Sets the block device named C<device> to read-write."
4544 msgstr ""
4545
4546 # type: =head2
4547 #: ../src/guestfs-actions.pod:573
4548 msgid "guestfs_case_sensitive_path"
4549 msgstr ""
4550
4551 # type: verbatim
4552 #: ../src/guestfs-actions.pod:575
4553 #, no-wrap
4554 msgid ""
4555 " char *guestfs_case_sensitive_path (guestfs_h *g,\n"
4556 "\t\tconst char *path);\n"
4557 "\n"
4558 msgstr ""
4559
4560 # type: textblock
4561 #: ../src/guestfs-actions.pod:578 ../fish/guestfish-actions.pod:470
4562 msgid ""
4563 "This can be used to resolve case insensitive paths on a filesystem which is "
4564 "case sensitive.  The use case is to resolve paths which you have read from "
4565 "Windows configuration files or the Windows Registry, to the true path."
4566 msgstr ""
4567
4568 # type: textblock
4569 #: ../src/guestfs-actions.pod:583 ../fish/guestfish-actions.pod:475
4570 msgid ""
4571 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
4572 "(and probably others), which is that although the underlying filesystem is "
4573 "case-insensitive, the driver exports the filesystem to Linux as "
4574 "case-sensitive."
4575 msgstr ""
4576
4577 # type: textblock
4578 #: ../src/guestfs-actions.pod:588 ../fish/guestfish-actions.pod:480
4579 msgid ""
4580 "One consequence of this is that special directories such as C<c:\\windows> "
4581 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
4582 "precise details of how they were created.  In Windows itself this would not "
4583 "be a problem."
4584 msgstr ""
4585
4586 # type: textblock
4587 #: ../src/guestfs-actions.pod:594 ../fish/guestfish-actions.pod:486
4588 msgid ""
4589 "Bug or feature? You decide: "
4590 "L<http://www.tuxera.com/community/ntfs-3g-faq/#posixfilenames1>"
4591 msgstr ""
4592
4593 # type: textblock
4594 #: ../src/guestfs-actions.pod:597 ../fish/guestfish-actions.pod:489
4595 msgid ""
4596 "This function resolves the true case of each element in the path and returns "
4597 "the case-sensitive path."
4598 msgstr ""
4599
4600 # type: textblock
4601 #: ../src/guestfs-actions.pod:600
4602 msgid ""
4603 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return "
4604 "C<\"/WINDOWS/system32\"> (the exact return value would depend on details of "
4605 "how the directories were originally created under Windows)."
4606 msgstr ""
4607
4608 # type: textblock
4609 #: ../src/guestfs-actions.pod:605 ../fish/guestfish-actions.pod:497
4610 msgid "I<Note>: This function does not handle drive names, backslashes etc."
4611 msgstr ""
4612
4613 # type: textblock
4614 #: ../src/guestfs-actions.pod:608
4615 msgid "See also C<guestfs_realpath>."
4616 msgstr ""
4617
4618 # type: =head2
4619 #: ../src/guestfs-actions.pod:613
4620 msgid "guestfs_cat"
4621 msgstr ""
4622
4623 # type: verbatim
4624 #: ../src/guestfs-actions.pod:615
4625 #, no-wrap
4626 msgid ""
4627 " char *guestfs_cat (guestfs_h *g,\n"
4628 "\t\tconst char *path);\n"
4629 "\n"
4630 msgstr ""
4631
4632 # type: textblock
4633 #: ../src/guestfs-actions.pod:618 ../src/guestfs-actions.pod:4018 ../fish/guestfish-actions.pod:506 ../fish/guestfish-actions.pod:3100
4634 msgid "Return the contents of the file named C<path>."
4635 msgstr ""
4636
4637 # type: textblock
4638 #: ../src/guestfs-actions.pod:620
4639 msgid ""
4640 "Note that this function cannot correctly handle binary files (specifically, "
4641 "files containing C<\\0> character which is treated as end of string).  For "
4642 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
4643 "functions which have a more complex interface."
4644 msgstr ""
4645
4646 # type: textblock
4647 #: ../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:3858 ../src/guestfs-actions.pod:3966 ../src/guestfs-actions.pod:3989 ../src/guestfs-actions.pod:4010 ../src/guestfs-actions.pod:4736 ../src/guestfs-actions.pod:4788 ../src/guestfs-actions.pod:4904 ../src/guestfs-actions.pod:4925 ../src/guestfs-actions.pod:5470 ../src/guestfs-actions.pod:5493 ../src/guestfs-actions.pod:5516 ../src/guestfs-actions.pod:5532 ../src/guestfs-actions.pod:5605 ../src/guestfs-actions.pod:5621 ../src/guestfs-actions.pod:5661 ../src/guestfs-actions.pod:5677 ../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:2985 ../fish/guestfish-actions.pod:3061 ../fish/guestfish-actions.pod:3078 ../fish/guestfish-actions.pod:3093 ../fish/guestfish-actions.pod:3676 ../fish/guestfish-actions.pod:3722 ../fish/guestfish-actions.pod:3807 ../fish/guestfish-actions.pod:3822 ../fish/guestfish-actions.pod:4232 ../fish/guestfish-actions.pod:4250 ../fish/guestfish-actions.pod:4267 ../fish/guestfish-actions.pod:4277 ../fish/guestfish-actions.pod:4325 ../fish/guestfish-actions.pod:4335 ../fish/guestfish-actions.pod:4364 ../fish/guestfish-actions.pod:4374
4648 msgid ""
4649 "Because of the message protocol, there is a transfer limit of somewhere "
4650 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
4651 msgstr ""
4652
4653 # type: =head2
4654 #: ../src/guestfs-actions.pod:631
4655 msgid "guestfs_checksum"
4656 msgstr ""
4657
4658 # type: verbatim
4659 #: ../src/guestfs-actions.pod:633
4660 #, no-wrap
4661 msgid ""
4662 " char *guestfs_checksum (guestfs_h *g,\n"
4663 "\t\tconst char *csumtype,\n"
4664 "\t\tconst char *path);\n"
4665 "\n"
4666 msgstr ""
4667
4668 # type: textblock
4669 #: ../src/guestfs-actions.pod:637 ../fish/guestfish-actions.pod:520
4670 msgid "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
4671 msgstr ""
4672
4673 # type: textblock
4674 #: ../src/guestfs-actions.pod:640 ../fish/guestfish-actions.pod:523
4675 msgid ""
4676 "The type of checksum to compute is given by the C<csumtype> parameter which "
4677 "must have one of the following values:"
4678 msgstr ""
4679
4680 # type: =item
4681 #: ../src/guestfs-actions.pod:645 ../fish/guestfish-actions.pod:528
4682 msgid "C<crc>"
4683 msgstr ""
4684
4685 # type: textblock
4686 #: ../src/guestfs-actions.pod:647 ../fish/guestfish-actions.pod:530
4687 msgid ""
4688 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
4689 "C<cksum> command."
4690 msgstr ""
4691
4692 # type: =item
4693 #: ../src/guestfs-actions.pod:650 ../fish/guestfish-actions.pod:533
4694 msgid "C<md5>"
4695 msgstr ""
4696
4697 # type: textblock
4698 #: ../src/guestfs-actions.pod:652 ../fish/guestfish-actions.pod:535
4699 msgid "Compute the MD5 hash (using the C<md5sum> program)."
4700 msgstr ""
4701
4702 # type: =item
4703 #: ../src/guestfs-actions.pod:654 ../fish/guestfish-actions.pod:537
4704 msgid "C<sha1>"
4705 msgstr ""
4706
4707 # type: textblock
4708 #: ../src/guestfs-actions.pod:656 ../fish/guestfish-actions.pod:539
4709 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
4710 msgstr ""
4711
4712 # type: =item
4713 #: ../src/guestfs-actions.pod:658 ../fish/guestfish-actions.pod:541
4714 msgid "C<sha224>"
4715 msgstr ""
4716
4717 # type: textblock
4718 #: ../src/guestfs-actions.pod:660 ../fish/guestfish-actions.pod:543
4719 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
4720 msgstr ""
4721
4722 # type: =item
4723 #: ../src/guestfs-actions.pod:662 ../fish/guestfish-actions.pod:545
4724 msgid "C<sha256>"
4725 msgstr ""
4726
4727 # type: textblock
4728 #: ../src/guestfs-actions.pod:664 ../fish/guestfish-actions.pod:547
4729 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
4730 msgstr ""
4731
4732 # type: =item
4733 #: ../src/guestfs-actions.pod:666 ../fish/guestfish-actions.pod:549
4734 msgid "C<sha384>"
4735 msgstr ""
4736
4737 # type: textblock
4738 #: ../src/guestfs-actions.pod:668 ../fish/guestfish-actions.pod:551
4739 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
4740 msgstr ""
4741
4742 # type: =item
4743 #: ../src/guestfs-actions.pod:670 ../fish/guestfish-actions.pod:553
4744 msgid "C<sha512>"
4745 msgstr ""
4746
4747 # type: textblock
4748 #: ../src/guestfs-actions.pod:672 ../fish/guestfish-actions.pod:555
4749 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
4750 msgstr ""
4751
4752 # type: textblock
4753 #: ../src/guestfs-actions.pod:676 ../fish/guestfish-actions.pod:559
4754 msgid "The checksum is returned as a printable string."
4755 msgstr ""
4756
4757 # type: textblock
4758 #: ../src/guestfs-actions.pod:678
4759 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
4760 msgstr ""
4761
4762 # type: textblock
4763 #: ../src/guestfs-actions.pod:680
4764 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
4765 msgstr ""
4766
4767 # type: =head2
4768 #: ../src/guestfs-actions.pod:685
4769 msgid "guestfs_checksum_device"
4770 msgstr ""
4771
4772 # type: verbatim
4773 #: ../src/guestfs-actions.pod:687
4774 #, no-wrap
4775 msgid ""
4776 " char *guestfs_checksum_device (guestfs_h *g,\n"
4777 "\t\tconst char *csumtype,\n"
4778 "\t\tconst char *device);\n"
4779 "\n"
4780 msgstr ""
4781
4782 # type: textblock
4783 #: ../src/guestfs-actions.pod:691
4784 msgid ""
4785 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
4786 "device named C<device>.  For the types of checksums supported see the "
4787 "C<guestfs_checksum> command."
4788 msgstr ""
4789
4790 # type: =head2
4791 #: ../src/guestfs-actions.pod:698
4792 msgid "guestfs_checksums_out"
4793 msgstr ""
4794
4795 # type: verbatim
4796 #: ../src/guestfs-actions.pod:700
4797 #, no-wrap
4798 msgid ""
4799 " int guestfs_checksums_out (guestfs_h *g,\n"
4800 "\t\tconst char *csumtype,\n"
4801 "\t\tconst char *directory,\n"
4802 "\t\tconst char *sumsfile);\n"
4803 "\n"
4804 msgstr ""
4805
4806 # type: textblock
4807 #: ../src/guestfs-actions.pod:705 ../fish/guestfish-actions.pod:577
4808 msgid ""
4809 "This command computes the checksums of all regular files in C<directory> and "
4810 "then emits a list of those checksums to the local output file C<sumsfile>."
4811 msgstr ""
4812
4813 # type: textblock
4814 #: ../src/guestfs-actions.pod:709 ../fish/guestfish-actions.pod:581
4815 msgid ""
4816 "This can be used for verifying the integrity of a virtual machine.  However "
4817 "to be properly secure you should pay attention to the output of the checksum "
4818 "command (it uses the ones from GNU coreutils).  In particular when the "
4819 "filename is not printable, coreutils uses a special backslash syntax.  For "
4820 "more information, see the GNU coreutils info file."
4821 msgstr ""
4822
4823 # type: =head2
4824 #: ../src/guestfs-actions.pod:719
4825 msgid "guestfs_chmod"
4826 msgstr ""
4827
4828 # type: verbatim
4829 #: ../src/guestfs-actions.pod:721
4830 #, no-wrap
4831 msgid ""
4832 " int guestfs_chmod (guestfs_h *g,\n"
4833 "\t\tint mode,\n"
4834 "\t\tconst char *path);\n"
4835 "\n"
4836 msgstr ""
4837
4838 # type: textblock
4839 #: ../src/guestfs-actions.pod:725 ../fish/guestfish-actions.pod:595
4840 msgid ""
4841 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
4842 "supported."
4843 msgstr ""
4844
4845 # type: textblock
4846 #: ../src/guestfs-actions.pod:728 ../fish/guestfish-actions.pod:598
4847 msgid ""
4848 "I<Note>: When using this command from guestfish, C<mode> by default would be "
4849 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
4850 "C<700>."
4851 msgstr ""
4852
4853 # type: textblock
4854 #: ../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
4855 msgid "The mode actually set is affected by the umask."
4856 msgstr ""
4857
4858 # type: =head2
4859 #: ../src/guestfs-actions.pod:736
4860 msgid "guestfs_chown"
4861 msgstr ""
4862
4863 # type: verbatim
4864 #: ../src/guestfs-actions.pod:738
4865 #, no-wrap
4866 msgid ""
4867 " int guestfs_chown (guestfs_h *g,\n"
4868 "\t\tint owner,\n"
4869 "\t\tint group,\n"
4870 "\t\tconst char *path);\n"
4871 "\n"
4872 msgstr ""
4873
4874 # type: textblock
4875 #: ../src/guestfs-actions.pod:743 ../fish/guestfish-actions.pod:608
4876 msgid "Change the file owner to C<owner> and group to C<group>."
4877 msgstr ""
4878
4879 # type: textblock
4880 #: ../src/guestfs-actions.pod:745 ../src/guestfs-actions.pod:2464 ../fish/guestfish-actions.pod:610 ../fish/guestfish-actions.pod:1966
4881 msgid ""
4882 "Only numeric uid and gid are supported.  If you want to use names, you will "
4883 "need to locate and parse the password file yourself (Augeas support makes "
4884 "this relatively easy)."
4885 msgstr ""
4886
4887 # type: =head2
4888 #: ../src/guestfs-actions.pod:751
4889 msgid "guestfs_command"
4890 msgstr ""
4891
4892 # type: verbatim
4893 #: ../src/guestfs-actions.pod:753
4894 #, no-wrap
4895 msgid ""
4896 " char *guestfs_command (guestfs_h *g,\n"
4897 "\t\tchar *const *arguments);\n"
4898 "\n"
4899 msgstr ""
4900
4901 # type: textblock
4902 #: ../src/guestfs-actions.pod:756 ../fish/guestfish-actions.pod:618
4903 msgid ""
4904 "This call runs a command from the guest filesystem.  The filesystem must be "
4905 "mounted, and must contain a compatible operating system (ie. something "
4906 "Linux, with the same or compatible processor architecture)."
4907 msgstr ""
4908
4909 # type: textblock
4910 #: ../src/guestfs-actions.pod:761
4911 msgid ""
4912 "The single parameter is an argv-style list of arguments.  The first element "
4913 "is the name of the program to run.  Subsequent elements are parameters.  The "
4914 "list must be non-empty (ie. must contain a program name).  Note that the "
4915 "command runs directly, and is I<not> invoked via the shell (see "
4916 "C<guestfs_sh>)."
4917 msgstr ""
4918
4919 # type: textblock
4920 #: ../src/guestfs-actions.pod:768 ../fish/guestfish-actions.pod:630
4921 msgid "The return value is anything printed to I<stdout> by the command."
4922 msgstr ""
4923
4924 # type: textblock
4925 #: ../src/guestfs-actions.pod:771 ../fish/guestfish-actions.pod:633
4926 msgid ""
4927 "If the command returns a non-zero exit status, then this function returns an "
4928 "error message.  The error message string is the content of I<stderr> from "
4929 "the command."
4930 msgstr ""
4931
4932 # type: textblock
4933 #: ../src/guestfs-actions.pod:775 ../fish/guestfish-actions.pod:637
4934 msgid ""
4935 "The C<$PATH> environment variable will contain at least C</usr/bin> and "
4936 "C</bin>.  If you require a program from another location, you should provide "
4937 "the full path in the first parameter."
4938 msgstr ""
4939
4940 # type: textblock
4941 #: ../src/guestfs-actions.pod:780 ../fish/guestfish-actions.pod:642
4942 msgid ""
4943 "Shared libraries and data files required by the program must be available on "
4944 "filesystems which are mounted in the correct places.  It is the caller's "
4945 "responsibility to ensure all filesystems that are needed are mounted at the "
4946 "right locations."
4947 msgstr ""
4948
4949 # type: =head2
4950 #: ../src/guestfs-actions.pod:792
4951 msgid "guestfs_command_lines"
4952 msgstr ""
4953
4954 # type: verbatim
4955 #: ../src/guestfs-actions.pod:794
4956 #, no-wrap
4957 msgid ""
4958 " char **guestfs_command_lines (guestfs_h *g,\n"
4959 "\t\tchar *const *arguments);\n"
4960 "\n"
4961 msgstr ""
4962
4963 # type: textblock
4964 #: ../src/guestfs-actions.pod:797
4965 msgid ""
4966 "This is the same as C<guestfs_command>, but splits the result into a list of "
4967 "lines."
4968 msgstr ""
4969
4970 # type: textblock
4971 #: ../src/guestfs-actions.pod:800
4972 msgid "See also: C<guestfs_sh_lines>"
4973 msgstr ""
4974
4975 # type: =head2
4976 #: ../src/guestfs-actions.pod:809
4977 msgid "guestfs_config"
4978 msgstr ""
4979
4980 # type: verbatim
4981 #: ../src/guestfs-actions.pod:811
4982 #, no-wrap
4983 msgid ""
4984 " int guestfs_config (guestfs_h *g,\n"
4985 "\t\tconst char *qemuparam,\n"
4986 "\t\tconst char *qemuvalue);\n"
4987 "\n"
4988 msgstr ""
4989
4990 # type: textblock
4991 #: ../src/guestfs-actions.pod:815 ../fish/guestfish-actions.pod:667
4992 msgid ""
4993 "This can be used to add arbitrary qemu command line parameters of the form "
4994 "C<-param value>.  Actually it's not quite arbitrary - we prevent you from "
4995 "setting some parameters which would interfere with parameters that we use."
4996 msgstr ""
4997
4998 # type: textblock
4999 #: ../src/guestfs-actions.pod:820 ../fish/guestfish-actions.pod:672
5000 msgid "The first character of C<param> string must be a C<-> (dash)."
5001 msgstr ""
5002
5003 # type: textblock
5004 #: ../src/guestfs-actions.pod:822 ../fish/guestfish-actions.pod:674
5005 msgid "C<value> can be NULL."
5006 msgstr ""
5007
5008 # type: =head2
5009 #: ../src/guestfs-actions.pod:826
5010 msgid "guestfs_copy_size"
5011 msgstr ""
5012
5013 # type: verbatim
5014 #: ../src/guestfs-actions.pod:828
5015 #, no-wrap
5016 msgid ""
5017 " int guestfs_copy_size (guestfs_h *g,\n"
5018 "\t\tconst char *src,\n"
5019 "\t\tconst char *dest,\n"
5020 "\t\tint64_t size);\n"
5021 "\n"
5022 msgstr ""
5023
5024 # type: textblock
5025 #: ../src/guestfs-actions.pod:833 ../fish/guestfish-actions.pod:680
5026 msgid ""
5027 "This command copies exactly C<size> bytes from one source device or file "
5028 "C<src> to another destination device or file C<dest>."
5029 msgstr ""
5030
5031 # type: textblock
5032 #: ../src/guestfs-actions.pod:836 ../fish/guestfish-actions.pod:683
5033 msgid ""
5034 "Note this will fail if the source is too short or if the destination is not "
5035 "large enough."
5036 msgstr ""
5037
5038 # type: textblock
5039 #: ../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:5550 ../src/guestfs-actions.pod:5566
5040 msgid ""
5041 "This long-running command can generate progress notification messages so "
5042 "that the caller can display a progress bar or indicator.  To receive these "
5043 "messages, the caller must register a progress callback.  See "
5044 "L<guestfs(3)/guestfs_set_progress_callback>."
5045 msgstr ""
5046
5047 # type: =head2
5048 #: ../src/guestfs-actions.pod:846
5049 msgid "guestfs_cp"
5050 msgstr ""
5051
5052 # type: verbatim
5053 #: ../src/guestfs-actions.pod:848
5054 #, no-wrap
5055 msgid ""
5056 " int guestfs_cp (guestfs_h *g,\n"
5057 "\t\tconst char *src,\n"
5058 "\t\tconst char *dest);\n"
5059 "\n"
5060 msgstr ""
5061
5062 # type: textblock
5063 #: ../src/guestfs-actions.pod:852 ../fish/guestfish-actions.pod:690
5064 msgid ""
5065 "This copies a file from C<src> to C<dest> where C<dest> is either a "
5066 "destination filename or destination directory."
5067 msgstr ""
5068
5069 # type: =head2
5070 #: ../src/guestfs-actions.pod:857
5071 msgid "guestfs_cp_a"
5072 msgstr ""
5073
5074 # type: verbatim
5075 #: ../src/guestfs-actions.pod:859
5076 #, no-wrap
5077 msgid ""
5078 " int guestfs_cp_a (guestfs_h *g,\n"
5079 "\t\tconst char *src,\n"
5080 "\t\tconst char *dest);\n"
5081 "\n"
5082 msgstr ""
5083
5084 # type: textblock
5085 #: ../src/guestfs-actions.pod:863 ../fish/guestfish-actions.pod:697
5086 msgid ""
5087 "This copies a file or directory from C<src> to C<dest> recursively using the "
5088 "C<cp -a> command."
5089 msgstr ""
5090
5091 # type: =head2
5092 #: ../src/guestfs-actions.pod:868
5093 msgid "guestfs_dd"
5094 msgstr ""
5095
5096 # type: verbatim
5097 #: ../src/guestfs-actions.pod:870
5098 #, no-wrap
5099 msgid ""
5100 " int guestfs_dd (guestfs_h *g,\n"
5101 "\t\tconst char *src,\n"
5102 "\t\tconst char *dest);\n"
5103 "\n"
5104 msgstr ""
5105
5106 # type: textblock
5107 #: ../src/guestfs-actions.pod:874 ../fish/guestfish-actions.pod:704
5108 msgid ""
5109 "This command copies from one source device or file C<src> to another "
5110 "destination device or file C<dest>.  Normally you would use this to copy to "
5111 "or from a device or partition, for example to duplicate a filesystem."
5112 msgstr ""
5113
5114 # type: textblock
5115 #: ../src/guestfs-actions.pod:879
5116 msgid ""
5117 "If the destination is a device, it must be as large or larger than the "
5118 "source file or device, otherwise the copy will fail.  This command cannot do "
5119 "partial copies (see C<guestfs_copy_size>)."
5120 msgstr ""
5121
5122 # type: =head2
5123 #: ../src/guestfs-actions.pod:885
5124 msgid "guestfs_debug"
5125 msgstr ""
5126
5127 # type: verbatim
5128 #: ../src/guestfs-actions.pod:887
5129 #, no-wrap
5130 msgid ""
5131 " char *guestfs_debug (guestfs_h *g,\n"
5132 "\t\tconst char *subcmd,\n"
5133 "\t\tchar *const *extraargs);\n"
5134 "\n"
5135 msgstr ""
5136
5137 # type: textblock
5138 #: ../src/guestfs-actions.pod:891
5139 msgid ""
5140 "The C<guestfs_debug> command exposes some internals of C<guestfsd> (the "
5141 "guestfs daemon) that runs inside the qemu subprocess."
5142 msgstr ""
5143
5144 # type: textblock
5145 #: ../src/guestfs-actions.pod:895 ../fish/guestfish-actions.pod:721
5146 msgid ""
5147 "There is no comprehensive help for this command.  You have to look at the "
5148 "file C<daemon/debug.c> in the libguestfs source to find out what you can do."
5149 msgstr ""
5150
5151 # type: =head2
5152 #: ../src/guestfs-actions.pod:902
5153 msgid "guestfs_debug_upload"
5154 msgstr ""
5155
5156 # type: verbatim
5157 #: ../src/guestfs-actions.pod:904
5158 #, no-wrap
5159 msgid ""
5160 " int guestfs_debug_upload (guestfs_h *g,\n"
5161 "\t\tconst char *filename,\n"
5162 "\t\tconst char *tmpname,\n"
5163 "\t\tint mode);\n"
5164 "\n"
5165 msgstr ""
5166
5167 # type: textblock
5168 #: ../src/guestfs-actions.pod:909
5169 msgid ""
5170 "The C<guestfs_debug_upload> command uploads a file to the libguestfs "
5171 "appliance."
5172 msgstr ""
5173
5174 # type: textblock
5175 #: ../src/guestfs-actions.pod:912 ../fish/guestfish-actions.pod:732
5176 msgid ""
5177 "There is no comprehensive help for this command.  You have to look at the "
5178 "file C<daemon/debug.c> in the libguestfs source to find out what it is for."
5179 msgstr ""
5180
5181 # type: =head2
5182 #: ../src/guestfs-actions.pod:918
5183 msgid "guestfs_df"
5184 msgstr ""
5185
5186 # type: verbatim
5187 #: ../src/guestfs-actions.pod:920
5188 #, no-wrap
5189 msgid ""
5190 " char *guestfs_df (guestfs_h *g);\n"
5191 "\n"
5192 msgstr ""
5193
5194 # type: textblock
5195 #: ../src/guestfs-actions.pod:922 ../fish/guestfish-actions.pod:742
5196 msgid "This command runs the C<df> command to report disk space used."
5197 msgstr ""
5198
5199 # type: textblock
5200 #: ../src/guestfs-actions.pod:924 ../src/guestfs-actions.pod:938 ../fish/guestfish-actions.pod:744 ../fish/guestfish-actions.pod:755
5201 msgid ""
5202 "This command is mostly useful for interactive sessions.  It is I<not> "
5203 "intended that you try to parse the output string.  Use C<statvfs> from "
5204 "programs."
5205 msgstr ""
5206
5207 # type: =head2
5208 #: ../src/guestfs-actions.pod:931
5209 msgid "guestfs_df_h"
5210 msgstr ""
5211
5212 # type: verbatim
5213 #: ../src/guestfs-actions.pod:933
5214 #, no-wrap
5215 msgid ""
5216 " char *guestfs_df_h (guestfs_h *g);\n"
5217 "\n"
5218 msgstr ""
5219
5220 # type: textblock
5221 #: ../src/guestfs-actions.pod:935 ../fish/guestfish-actions.pod:752
5222 msgid ""
5223 "This command runs the C<df -h> command to report disk space used in "
5224 "human-readable format."
5225 msgstr ""
5226
5227 # type: =head2
5228 #: ../src/guestfs-actions.pod:945
5229 msgid "guestfs_dmesg"
5230 msgstr ""
5231
5232 # type: verbatim
5233 #: ../src/guestfs-actions.pod:947
5234 #, no-wrap
5235 msgid ""
5236 " char *guestfs_dmesg (guestfs_h *g);\n"
5237 "\n"
5238 msgstr ""
5239
5240 # type: textblock
5241 #: ../src/guestfs-actions.pod:949 ../fish/guestfish-actions.pod:763
5242 msgid ""
5243 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
5244 "This is sometimes useful for extended debugging of problems."
5245 msgstr ""
5246
5247 # type: textblock
5248 #: ../src/guestfs-actions.pod:953
5249 msgid ""
5250 "Another way to get the same information is to enable verbose messages with "
5251 "C<guestfs_set_verbose> or by setting the environment variable "
5252 "C<LIBGUESTFS_DEBUG=1> before running the program."
5253 msgstr ""
5254
5255 # type: =head2
5256 #: ../src/guestfs-actions.pod:961
5257 msgid "guestfs_download"
5258 msgstr ""
5259
5260 # type: verbatim
5261 #: ../src/guestfs-actions.pod:963
5262 #, no-wrap
5263 msgid ""
5264 " int guestfs_download (guestfs_h *g,\n"
5265 "\t\tconst char *remotefilename,\n"
5266 "\t\tconst char *filename);\n"
5267 "\n"
5268 msgstr ""
5269
5270 # type: textblock
5271 #: ../src/guestfs-actions.pod:967 ../src/guestfs-actions.pod:989 ../fish/guestfish-actions.pod:776 ../fish/guestfish-actions.pod:789
5272 msgid ""
5273 "Download file C<remotefilename> and save it as C<filename> on the local "
5274 "machine."
5275 msgstr ""
5276
5277 # type: textblock
5278 #: ../src/guestfs-actions.pod:970 ../src/guestfs-actions.pod:5118 ../fish/guestfish-actions.pod:779 ../fish/guestfish-actions.pod:3980
5279 msgid "C<filename> can also be a named pipe."
5280 msgstr ""
5281
5282 # type: textblock
5283 #: ../src/guestfs-actions.pod:972
5284 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
5285 msgstr ""
5286
5287 # type: =head2
5288 #: ../src/guestfs-actions.pod:981
5289 msgid "guestfs_download_offset"
5290 msgstr ""
5291
5292 # type: verbatim
5293 #: ../src/guestfs-actions.pod:983
5294 #, no-wrap
5295 msgid ""
5296 " int guestfs_download_offset (guestfs_h *g,\n"
5297 "\t\tconst char *remotefilename,\n"
5298 "\t\tconst char *filename,\n"
5299 "\t\tint64_t offset,\n"
5300 "\t\tint64_t size);\n"
5301 "\n"
5302 msgstr ""
5303
5304 # type: textblock
5305 #: ../src/guestfs-actions.pod:992 ../fish/guestfish-actions.pod:792
5306 msgid ""
5307 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
5308 "region must be within the file or device)."
5309 msgstr ""
5310
5311 # type: textblock
5312 #: ../src/guestfs-actions.pod:995
5313 msgid ""
5314 "Note that there is no limit on the amount of data that can be downloaded "
5315 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
5316 "full amount unless an error occurs."
5317 msgstr ""
5318
5319 # type: textblock
5320 #: ../src/guestfs-actions.pod:1000
5321 msgid "See also C<guestfs_download>, C<guestfs_pread>."
5322 msgstr ""
5323
5324 # type: =head2
5325 #: ../src/guestfs-actions.pod:1009
5326 msgid "guestfs_drop_caches"
5327 msgstr ""
5328
5329 # type: verbatim
5330 #: ../src/guestfs-actions.pod:1011
5331 #, no-wrap
5332 msgid ""
5333 " int guestfs_drop_caches (guestfs_h *g,\n"
5334 "\t\tint whattodrop);\n"
5335 "\n"
5336 msgstr ""
5337
5338 # type: textblock
5339 #: ../src/guestfs-actions.pod:1014 ../fish/guestfish-actions.pod:808
5340 msgid ""
5341 "This instructs the guest kernel to drop its page cache, and/or dentries and "
5342 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
5343 "to drop, see L<http://linux-mm.org/Drop_Caches>"
5344 msgstr ""
5345
5346 # type: textblock
5347 #: ../src/guestfs-actions.pod:1019 ../fish/guestfish-actions.pod:813
5348 msgid "Setting C<whattodrop> to 3 should drop everything."
5349 msgstr ""
5350
5351 # type: textblock
5352 #: ../src/guestfs-actions.pod:1021 ../fish/guestfish-actions.pod:815
5353 msgid ""
5354 "This automatically calls L<sync(2)> before the operation, so that the "
5355 "maximum guest memory is freed."
5356 msgstr ""
5357
5358 # type: =head2
5359 #: ../src/guestfs-actions.pod:1026
5360 msgid "guestfs_du"
5361 msgstr ""
5362
5363 # type: verbatim
5364 #: ../src/guestfs-actions.pod:1028
5365 #, no-wrap
5366 msgid ""
5367 " int64_t guestfs_du (guestfs_h *g,\n"
5368 "\t\tconst char *path);\n"
5369 "\n"
5370 msgstr ""
5371
5372 # type: textblock
5373 #: ../src/guestfs-actions.pod:1031 ../fish/guestfish-actions.pod:822
5374 msgid ""
5375 "This command runs the C<du -s> command to estimate file space usage for "
5376 "C<path>."
5377 msgstr ""
5378
5379 # type: textblock
5380 #: ../src/guestfs-actions.pod:1034 ../fish/guestfish-actions.pod:825
5381 msgid ""
5382 "C<path> can be a file or a directory.  If C<path> is a directory then the "
5383 "estimate includes the contents of the directory and all subdirectories "
5384 "(recursively)."
5385 msgstr ""
5386
5387 # type: textblock
5388 #: ../src/guestfs-actions.pod:1038 ../fish/guestfish-actions.pod:829
5389 msgid "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
5390 msgstr ""
5391
5392 # type: =head2
5393 #: ../src/guestfs-actions.pod:1043
5394 msgid "guestfs_e2fsck_f"
5395 msgstr ""
5396
5397 # type: verbatim
5398 #: ../src/guestfs-actions.pod:1045
5399 #, no-wrap
5400 msgid ""
5401 " int guestfs_e2fsck_f (guestfs_h *g,\n"
5402 "\t\tconst char *device);\n"
5403 "\n"
5404 msgstr ""
5405
5406 # type: textblock
5407 #: ../src/guestfs-actions.pod:1048 ../fish/guestfish-actions.pod:836
5408 msgid ""
5409 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
5410 "on C<device>, noninteractively (C<-p>), even if the filesystem appears to be "
5411 "clean (C<-f>)."
5412 msgstr ""
5413
5414 # type: textblock
5415 #: ../src/guestfs-actions.pod:1052
5416 msgid ""
5417 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
5418 "Normally you should use C<guestfs_fsck>."
5419 msgstr ""
5420
5421 # type: =head2
5422 #: ../src/guestfs-actions.pod:1057
5423 msgid "guestfs_echo_daemon"
5424 msgstr ""
5425
5426 # type: verbatim
5427 #: ../src/guestfs-actions.pod:1059
5428 #, no-wrap
5429 msgid ""
5430 " char *guestfs_echo_daemon (guestfs_h *g,\n"
5431 "\t\tchar *const *words);\n"
5432 "\n"
5433 msgstr ""
5434
5435 # type: textblock
5436 #: ../src/guestfs-actions.pod:1062 ../fish/guestfish-actions.pod:847
5437 msgid ""
5438 "This command concatenates the list of C<words> passed with single spaces "
5439 "between them and returns the resulting string."
5440 msgstr ""
5441
5442 # type: textblock
5443 #: ../src/guestfs-actions.pod:1065 ../fish/guestfish-actions.pod:850
5444 msgid "You can use this command to test the connection through to the daemon."
5445 msgstr ""
5446
5447 # type: textblock
5448 #: ../src/guestfs-actions.pod:1067
5449 msgid "See also C<guestfs_ping_daemon>."
5450 msgstr ""
5451
5452 # type: =head2
5453 #: ../src/guestfs-actions.pod:1072
5454 msgid "guestfs_egrep"
5455 msgstr ""
5456
5457 # type: verbatim
5458 #: ../src/guestfs-actions.pod:1074
5459 #, no-wrap
5460 msgid ""
5461 " char **guestfs_egrep (guestfs_h *g,\n"
5462 "\t\tconst char *regex,\n"
5463 "\t\tconst char *path);\n"
5464 "\n"
5465 msgstr ""
5466
5467 # type: textblock
5468 #: ../src/guestfs-actions.pod:1078 ../fish/guestfish-actions.pod:858
5469 msgid "This calls the external C<egrep> program and returns the matching lines."
5470 msgstr ""
5471
5472 # type: =head2
5473 #: ../src/guestfs-actions.pod:1088
5474 msgid "guestfs_egrepi"
5475 msgstr ""
5476
5477 # type: verbatim
5478 #: ../src/guestfs-actions.pod:1090
5479 #, no-wrap
5480 msgid ""
5481 " char **guestfs_egrepi (guestfs_h *g,\n"
5482 "\t\tconst char *regex,\n"
5483 "\t\tconst char *path);\n"
5484 "\n"
5485 msgstr ""
5486
5487 # type: textblock
5488 #: ../src/guestfs-actions.pod:1094 ../fish/guestfish-actions.pod:868
5489 msgid "This calls the external C<egrep -i> program and returns the matching lines."
5490 msgstr ""
5491
5492 # type: =head2
5493 #: ../src/guestfs-actions.pod:1104
5494 msgid "guestfs_equal"
5495 msgstr ""
5496
5497 # type: verbatim
5498 #: ../src/guestfs-actions.pod:1106
5499 #, no-wrap
5500 msgid ""
5501 " int guestfs_equal (guestfs_h *g,\n"
5502 "\t\tconst char *file1,\n"
5503 "\t\tconst char *file2);\n"
5504 "\n"
5505 msgstr ""
5506
5507 # type: textblock
5508 #: ../src/guestfs-actions.pod:1110 ../fish/guestfish-actions.pod:878
5509 msgid ""
5510 "This compares the two files C<file1> and C<file2> and returns true if their "
5511 "content is exactly equal, or false otherwise."
5512 msgstr ""
5513
5514 # type: textblock
5515 #: ../src/guestfs-actions.pod:1113 ../fish/guestfish-actions.pod:881
5516 msgid "The external L<cmp(1)> program is used for the comparison."
5517 msgstr ""
5518
5519 # type: =head2
5520 #: ../src/guestfs-actions.pod:1117
5521 msgid "guestfs_exists"
5522 msgstr ""
5523
5524 # type: verbatim
5525 #: ../src/guestfs-actions.pod:1119
5526 #, no-wrap
5527 msgid ""
5528 " int guestfs_exists (guestfs_h *g,\n"
5529 "\t\tconst char *path);\n"
5530 "\n"
5531 msgstr ""
5532
5533 # type: textblock
5534 #: ../src/guestfs-actions.pod:1122 ../fish/guestfish-actions.pod:887
5535 msgid ""
5536 "This returns C<true> if and only if there is a file, directory (or anything) "
5537 "with the given C<path> name."
5538 msgstr ""
5539
5540 # type: textblock
5541 #: ../src/guestfs-actions.pod:1125
5542 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
5543 msgstr ""
5544
5545 # type: =head2
5546 #: ../src/guestfs-actions.pod:1129
5547 msgid "guestfs_fallocate"
5548 msgstr ""
5549
5550 # type: verbatim
5551 #: ../src/guestfs-actions.pod:1131
5552 #, no-wrap
5553 msgid ""
5554 " int guestfs_fallocate (guestfs_h *g,\n"
5555 "\t\tconst char *path,\n"
5556 "\t\tint len);\n"
5557 "\n"
5558 msgstr ""
5559
5560 # type: textblock
5561 #: ../src/guestfs-actions.pod:1135 ../src/guestfs-actions.pod:1158 ../fish/guestfish-actions.pod:896 ../fish/guestfish-actions.pod:915
5562 msgid ""
5563 "This command preallocates a file (containing zero bytes) named C<path> of "
5564 "size C<len> bytes.  If the file exists already, it is overwritten."
5565 msgstr ""
5566
5567 # type: textblock
5568 #: ../src/guestfs-actions.pod:1139 ../fish/guestfish-actions.pod:900
5569 msgid ""
5570 "Do not confuse this with the guestfish-specific C<alloc> command which "
5571 "allocates a file in the host and attaches it as a device."
5572 msgstr ""
5573
5574 # type: textblock
5575 #: ../src/guestfs-actions.pod:1145 ../fish/guestfish-actions.pod:904
5576 msgid ""
5577 "This function is deprecated.  In new code, use the C<fallocate64> call "
5578 "instead."
5579 msgstr ""
5580
5581 # type: textblock
5582 #: ../src/guestfs-actions.pod:1148 ../src/guestfs-actions.pod:1583 ../src/guestfs-actions.pod:1601 ../src/guestfs-actions.pod:5499 ../src/guestfs-actions.pod:5644 ../fish/guestfish-actions.pod:907 ../fish/guestfish-actions.pod:1264 ../fish/guestfish-actions.pod:1278 ../fish/guestfish-actions.pod:4256 ../fish/guestfish-actions.pod:4353
5583 msgid ""
5584 "Deprecated functions will not be removed from the API, but the fact that "
5585 "they are deprecated indicates that there are problems with correct use of "
5586 "these functions."
5587 msgstr ""
5588
5589 # type: =head2
5590 #: ../src/guestfs-actions.pod:1152
5591 msgid "guestfs_fallocate64"
5592 msgstr ""
5593
5594 # type: verbatim
5595 #: ../src/guestfs-actions.pod:1154
5596 #, no-wrap
5597 msgid ""
5598 " int guestfs_fallocate64 (guestfs_h *g,\n"
5599 "\t\tconst char *path,\n"
5600 "\t\tint64_t len);\n"
5601 "\n"
5602 msgstr ""
5603
5604 # type: textblock
5605 #: ../src/guestfs-actions.pod:1162
5606 msgid ""
5607 "Note that this call allocates disk blocks for the file.  To create a sparse "
5608 "file use C<guestfs_truncate_size> instead."
5609 msgstr ""
5610
5611 # type: textblock
5612 #: ../src/guestfs-actions.pod:1165
5613 msgid ""
5614 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
5615 "oversight it only allowed 30 bit lengths to be specified, effectively "
5616 "limiting the maximum size of files created through that call to 1GB."
5617 msgstr ""
5618
5619 # type: textblock
5620 #: ../src/guestfs-actions.pod:1170 ../fish/guestfish-actions.pod:927
5621 msgid ""
5622 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
5623 "commands which create a file in the host and attach it as a device."
5624 msgstr ""
5625
5626 # type: =head2
5627 #: ../src/guestfs-actions.pod:1176
5628 msgid "guestfs_fgrep"
5629 msgstr ""
5630
5631 # type: verbatim
5632 #: ../src/guestfs-actions.pod:1178
5633 #, no-wrap
5634 msgid ""
5635 " char **guestfs_fgrep (guestfs_h *g,\n"
5636 "\t\tconst char *pattern,\n"
5637 "\t\tconst char *path);\n"
5638 "\n"
5639 msgstr ""
5640
5641 # type: textblock
5642 #: ../src/guestfs-actions.pod:1182 ../fish/guestfish-actions.pod:935
5643 msgid "This calls the external C<fgrep> program and returns the matching lines."
5644 msgstr ""
5645
5646 # type: =head2
5647 #: ../src/guestfs-actions.pod:1192
5648 msgid "guestfs_fgrepi"
5649 msgstr ""
5650
5651 # type: verbatim
5652 #: ../src/guestfs-actions.pod:1194
5653 #, no-wrap
5654 msgid ""
5655 " char **guestfs_fgrepi (guestfs_h *g,\n"
5656 "\t\tconst char *pattern,\n"
5657 "\t\tconst char *path);\n"
5658 "\n"
5659 msgstr ""
5660
5661 # type: textblock
5662 #: ../src/guestfs-actions.pod:1198 ../fish/guestfish-actions.pod:945
5663 msgid "This calls the external C<fgrep -i> program and returns the matching lines."
5664 msgstr ""
5665
5666 # type: =head2
5667 #: ../src/guestfs-actions.pod:1208
5668 msgid "guestfs_file"
5669 msgstr ""
5670
5671 # type: verbatim
5672 #: ../src/guestfs-actions.pod:1210
5673 #, no-wrap
5674 msgid ""
5675 " char *guestfs_file (guestfs_h *g,\n"
5676 "\t\tconst char *path);\n"
5677 "\n"
5678 msgstr ""
5679
5680 # type: textblock
5681 #: ../src/guestfs-actions.pod:1213 ../fish/guestfish-actions.pod:955
5682 msgid ""
5683 "This call uses the standard L<file(1)> command to determine the type or "
5684 "contents of the file."
5685 msgstr ""
5686
5687 # type: textblock
5688 #: ../src/guestfs-actions.pod:1216 ../fish/guestfish-actions.pod:958
5689 msgid ""
5690 "This call will also transparently look inside various types of compressed "
5691 "file."
5692 msgstr ""
5693
5694 # type: textblock
5695 #: ../src/guestfs-actions.pod:1219 ../fish/guestfish-actions.pod:961
5696 msgid ""
5697 "The exact command which runs is C<file -zb path>.  Note in particular that "
5698 "the filename is not prepended to the output (the C<-b> option)."
5699 msgstr ""
5700
5701 # type: textblock
5702 #: ../src/guestfs-actions.pod:1223
5703 msgid ""
5704 "This command can also be used on C</dev/> devices (and partitions, LV "
5705 "names).  You can for example use this to determine if a device contains a "
5706 "filesystem, although it's usually better to use C<guestfs_vfs_type>."
5707 msgstr ""
5708
5709 # type: textblock
5710 #: ../src/guestfs-actions.pod:1228 ../fish/guestfish-actions.pod:970
5711 msgid ""
5712 "If the C<path> does not begin with C</dev/> then this command only works for "
5713 "the content of regular files.  For other file types (directory, symbolic "
5714 "link etc) it will just return the string C<directory> etc."
5715 msgstr ""
5716
5717 # type: =head2
5718 #: ../src/guestfs-actions.pod:1236
5719 msgid "guestfs_file_architecture"
5720 msgstr ""
5721
5722 # type: verbatim
5723 #: ../src/guestfs-actions.pod:1238
5724 #, no-wrap
5725 msgid ""
5726 " char *guestfs_file_architecture (guestfs_h *g,\n"
5727 "\t\tconst char *filename);\n"
5728 "\n"
5729 msgstr ""
5730
5731 # type: textblock
5732 #: ../src/guestfs-actions.pod:1241 ../fish/guestfish-actions.pod:979
5733 msgid ""
5734 "This detects the architecture of the binary C<filename>, and returns it if "
5735 "known."
5736 msgstr ""
5737
5738 # type: textblock
5739 #: ../src/guestfs-actions.pod:1244 ../fish/guestfish-actions.pod:982
5740 msgid "Currently defined architectures are:"
5741 msgstr ""
5742
5743 # type: =item
5744 #: ../src/guestfs-actions.pod:1248 ../fish/guestfish-actions.pod:986
5745 msgid "\"i386\""
5746 msgstr ""
5747
5748 # type: textblock
5749 #: ../src/guestfs-actions.pod:1250 ../fish/guestfish-actions.pod:988
5750 msgid ""
5751 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
5752 "irrespective of the precise processor requirements of the binary."
5753 msgstr ""
5754
5755 # type: =item
5756 #: ../src/guestfs-actions.pod:1253 ../fish/guestfish-actions.pod:991
5757 msgid "\"x86_64\""
5758 msgstr ""
5759
5760 # type: textblock
5761 #: ../src/guestfs-actions.pod:1255 ../fish/guestfish-actions.pod:993
5762 msgid "64 bit x86-64."
5763 msgstr ""
5764
5765 # type: =item
5766 #: ../src/guestfs-actions.pod:1257 ../fish/guestfish-actions.pod:995
5767 msgid "\"sparc\""
5768 msgstr ""
5769
5770 # type: textblock
5771 #: ../src/guestfs-actions.pod:1259 ../fish/guestfish-actions.pod:997
5772 msgid "32 bit SPARC."
5773 msgstr ""
5774
5775 # type: =item
5776 #: ../src/guestfs-actions.pod:1261 ../fish/guestfish-actions.pod:999
5777 msgid "\"sparc64\""
5778 msgstr ""
5779
5780 # type: textblock
5781 #: ../src/guestfs-actions.pod:1263 ../fish/guestfish-actions.pod:1001
5782 msgid "64 bit SPARC V9 and above."
5783 msgstr ""
5784
5785 # type: =item
5786 #: ../src/guestfs-actions.pod:1265 ../fish/guestfish-actions.pod:1003
5787 msgid "\"ia64\""
5788 msgstr ""
5789
5790 # type: textblock
5791 #: ../src/guestfs-actions.pod:1267 ../fish/guestfish-actions.pod:1005
5792 msgid "Intel Itanium."
5793 msgstr ""
5794
5795 # type: =item
5796 #: ../src/guestfs-actions.pod:1269 ../fish/guestfish-actions.pod:1007
5797 msgid "\"ppc\""
5798 msgstr ""
5799
5800 # type: textblock
5801 #: ../src/guestfs-actions.pod:1271 ../fish/guestfish-actions.pod:1009
5802 msgid "32 bit Power PC."
5803 msgstr ""
5804
5805 # type: =item
5806 #: ../src/guestfs-actions.pod:1273 ../fish/guestfish-actions.pod:1011
5807 msgid "\"ppc64\""
5808 msgstr ""
5809
5810 # type: textblock
5811 #: ../src/guestfs-actions.pod:1275 ../fish/guestfish-actions.pod:1013
5812 msgid "64 bit Power PC."
5813 msgstr ""
5814
5815 # type: textblock
5816 #: ../src/guestfs-actions.pod:1279 ../fish/guestfish-actions.pod:1017
5817 msgid "Libguestfs may return other architecture strings in future."
5818 msgstr ""
5819
5820 # type: textblock
5821 #: ../src/guestfs-actions.pod:1281 ../fish/guestfish-actions.pod:1019
5822 msgid "The function works on at least the following types of files:"
5823 msgstr ""
5824
5825 # type: textblock
5826 #: ../src/guestfs-actions.pod:1287 ../fish/guestfish-actions.pod:1025
5827 msgid "many types of Un*x and Linux binary"
5828 msgstr ""
5829
5830 # type: textblock
5831 #: ../src/guestfs-actions.pod:1291 ../fish/guestfish-actions.pod:1029
5832 msgid "many types of Un*x and Linux shared library"
5833 msgstr ""
5834
5835 # type: textblock
5836 #: ../src/guestfs-actions.pod:1295 ../fish/guestfish-actions.pod:1033
5837 msgid "Windows Win32 and Win64 binaries"
5838 msgstr ""
5839
5840 # type: textblock
5841 #: ../src/guestfs-actions.pod:1299 ../fish/guestfish-actions.pod:1037
5842 msgid "Windows Win32 and Win64 DLLs"
5843 msgstr ""
5844
5845 # type: textblock
5846 #: ../src/guestfs-actions.pod:1301 ../fish/guestfish-actions.pod:1039
5847 msgid "Win32 binaries and DLLs return C<i386>."
5848 msgstr ""
5849
5850 # type: textblock
5851 #: ../src/guestfs-actions.pod:1303 ../fish/guestfish-actions.pod:1041
5852 msgid "Win64 binaries and DLLs return C<x86_64>."
5853 msgstr ""
5854
5855 # type: textblock
5856 #: ../src/guestfs-actions.pod:1307 ../fish/guestfish-actions.pod:1045
5857 msgid "Linux kernel modules"
5858 msgstr ""
5859
5860 # type: textblock
5861 #: ../src/guestfs-actions.pod:1311 ../fish/guestfish-actions.pod:1049
5862 msgid "Linux new-style initrd images"
5863 msgstr ""
5864
5865 # type: textblock
5866 #: ../src/guestfs-actions.pod:1315 ../fish/guestfish-actions.pod:1053
5867 msgid "some non-x86 Linux vmlinuz kernels"
5868 msgstr ""
5869
5870 # type: textblock
5871 #: ../src/guestfs-actions.pod:1319 ../fish/guestfish-actions.pod:1057
5872 msgid "What it can't do currently:"
5873 msgstr ""
5874
5875 # type: textblock
5876 #: ../src/guestfs-actions.pod:1325 ../fish/guestfish-actions.pod:1063
5877 msgid "static libraries (libfoo.a)"
5878 msgstr ""
5879
5880 # type: textblock
5881 #: ../src/guestfs-actions.pod:1329 ../fish/guestfish-actions.pod:1067
5882 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
5883 msgstr ""
5884
5885 # type: textblock
5886 #: ../src/guestfs-actions.pod:1333 ../fish/guestfish-actions.pod:1071
5887 msgid "x86 Linux vmlinuz kernels"
5888 msgstr ""
5889
5890 # type: textblock
5891 #: ../src/guestfs-actions.pod:1335 ../fish/guestfish-actions.pod:1073
5892 msgid ""
5893 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
5894 "compressed code, and are horribly hard to unpack.  If you want to find the "
5895 "architecture of a kernel, use the architecture of the associated initrd or "
5896 "kernel module(s) instead."
5897 msgstr ""
5898
5899 # type: =head2
5900 #: ../src/guestfs-actions.pod:1345
5901 msgid "guestfs_filesize"
5902 msgstr ""
5903
5904 # type: verbatim
5905 #: ../src/guestfs-actions.pod:1347
5906 #, no-wrap
5907 msgid ""
5908 " int64_t guestfs_filesize (guestfs_h *g,\n"
5909 "\t\tconst char *file);\n"
5910 "\n"
5911 msgstr ""
5912
5913 # type: textblock
5914 #: ../src/guestfs-actions.pod:1350 ../fish/guestfish-actions.pod:1084
5915 msgid "This command returns the size of C<file> in bytes."
5916 msgstr ""
5917
5918 # type: textblock
5919 #: ../src/guestfs-actions.pod:1352
5920 msgid ""
5921 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
5922 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
5923 "devices, use C<guestfs_blockdev_getsize64>."
5924 msgstr ""
5925
5926 # type: =head2
5927 #: ../src/guestfs-actions.pod:1358
5928 msgid "guestfs_fill"
5929 msgstr ""
5930
5931 # type: verbatim
5932 #: ../src/guestfs-actions.pod:1360
5933 #, no-wrap
5934 msgid ""
5935 " int guestfs_fill (guestfs_h *g,\n"
5936 "\t\tint c,\n"
5937 "\t\tint len,\n"
5938 "\t\tconst char *path);\n"
5939 "\n"
5940 msgstr ""
5941
5942 # type: textblock
5943 #: ../src/guestfs-actions.pod:1365 ../fish/guestfish-actions.pod:1094
5944 msgid ""
5945 "This command creates a new file called C<path>.  The initial content of the "
5946 "file is C<len> octets of C<c>, where C<c> must be a number in the range "
5947 "C<[0..255]>."
5948 msgstr ""
5949
5950 # type: textblock
5951 #: ../src/guestfs-actions.pod:1369
5952 msgid ""
5953 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
5954 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
5955 "bytes use C<guestfs_fill_pattern>."
5956 msgstr ""
5957
5958 # type: =head2
5959 #: ../src/guestfs-actions.pod:1381
5960 msgid "guestfs_fill_pattern"
5961 msgstr ""
5962
5963 # type: verbatim
5964 #: ../src/guestfs-actions.pod:1383
5965 #, no-wrap
5966 msgid ""
5967 " int guestfs_fill_pattern (guestfs_h *g,\n"
5968 "\t\tconst char *pattern,\n"
5969 "\t\tint len,\n"
5970 "\t\tconst char *path);\n"
5971 "\n"
5972 msgstr ""
5973
5974 # type: textblock
5975 #: ../src/guestfs-actions.pod:1388
5976 msgid ""
5977 "This function is like C<guestfs_fill> except that it creates a new file of "
5978 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
5979 "pattern is truncated if necessary to ensure the length of the file is "
5980 "exactly C<len> bytes."
5981 msgstr ""
5982
5983 # type: =head2
5984 #: ../src/guestfs-actions.pod:1400
5985 msgid "guestfs_find"
5986 msgstr ""
5987
5988 # type: verbatim
5989 #: ../src/guestfs-actions.pod:1402
5990 #, no-wrap
5991 msgid ""
5992 " char **guestfs_find (guestfs_h *g,\n"
5993 "\t\tconst char *directory);\n"
5994 "\n"
5995 msgstr ""
5996
5997 # type: textblock
5998 #: ../src/guestfs-actions.pod:1405 ../fish/guestfish-actions.pod:1116
5999 msgid ""
6000 "This command lists out all files and directories, recursively, starting at "
6001 "C<directory>.  It is essentially equivalent to running the shell command "
6002 "C<find directory -print> but some post-processing happens on the output, "
6003 "described below."
6004 msgstr ""
6005
6006 # type: textblock
6007 #: ../src/guestfs-actions.pod:1410 ../fish/guestfish-actions.pod:1121
6008 msgid ""
6009 "This returns a list of strings I<without any prefix>.  Thus if the directory "
6010 "structure was:"
6011 msgstr ""
6012
6013 # type: verbatim
6014 #: ../src/guestfs-actions.pod:1413 ../fish/guestfish-actions.pod:1124
6015 #, no-wrap
6016 msgid ""
6017 " /tmp/a\n"
6018 " /tmp/b\n"
6019 " /tmp/c/d\n"
6020 "\n"
6021 msgstr ""
6022
6023 # type: textblock
6024 #: ../src/guestfs-actions.pod:1417
6025 msgid "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
6026 msgstr ""
6027
6028 # type: verbatim
6029 #: ../src/guestfs-actions.pod:1420 ../fish/guestfish-actions.pod:1131
6030 #, no-wrap
6031 msgid ""
6032 " a\n"
6033 " b\n"
6034 " c\n"
6035 " c/d\n"
6036 "\n"
6037 msgstr ""
6038
6039 # type: textblock
6040 #: ../src/guestfs-actions.pod:1425 ../fish/guestfish-actions.pod:1136
6041 msgid "If C<directory> is not a directory, then this command returns an error."
6042 msgstr ""
6043
6044 # type: textblock
6045 #: ../src/guestfs-actions.pod:1428 ../fish/guestfish-actions.pod:1139
6046 msgid "The returned list is sorted."
6047 msgstr ""
6048
6049 # type: textblock
6050 #: ../src/guestfs-actions.pod:1430
6051 msgid "See also C<guestfs_find0>."
6052 msgstr ""
6053
6054 # type: =head2
6055 #: ../src/guestfs-actions.pod:1439
6056 msgid "guestfs_find0"
6057 msgstr ""
6058
6059 # type: verbatim
6060 #: ../src/guestfs-actions.pod:1441
6061 #, no-wrap
6062 msgid ""
6063 " int guestfs_find0 (guestfs_h *g,\n"
6064 "\t\tconst char *directory,\n"
6065 "\t\tconst char *files);\n"
6066 "\n"
6067 msgstr ""
6068
6069 # type: textblock
6070 #: ../src/guestfs-actions.pod:1445 ../fish/guestfish-actions.pod:1150
6071 msgid ""
6072 "This command lists out all files and directories, recursively, starting at "
6073 "C<directory>, placing the resulting list in the external file called "
6074 "C<files>."
6075 msgstr ""
6076
6077 # type: textblock
6078 #: ../src/guestfs-actions.pod:1449
6079 msgid ""
6080 "This command works the same way as C<guestfs_find> with the following "
6081 "exceptions:"
6082 msgstr ""
6083
6084 # type: textblock
6085 #: ../src/guestfs-actions.pod:1456 ../fish/guestfish-actions.pod:1161
6086 msgid "The resulting list is written to an external file."
6087 msgstr ""
6088
6089 # type: textblock
6090 #: ../src/guestfs-actions.pod:1460 ../fish/guestfish-actions.pod:1165
6091 msgid ""
6092 "Items (filenames) in the result are separated by C<\\0> characters.  See "
6093 "L<find(1)> option I<-print0>."
6094 msgstr ""
6095
6096 # type: textblock
6097 #: ../src/guestfs-actions.pod:1465 ../fish/guestfish-actions.pod:1170
6098 msgid "This command is not limited in the number of names that it can return."
6099 msgstr ""
6100
6101 # type: textblock
6102 #: ../src/guestfs-actions.pod:1470 ../fish/guestfish-actions.pod:1175
6103 msgid "The result list is not sorted."
6104 msgstr ""
6105
6106 # type: =head2
6107 #: ../src/guestfs-actions.pod:1476
6108 msgid "guestfs_findfs_label"
6109 msgstr ""
6110
6111 # type: verbatim
6112 #: ../src/guestfs-actions.pod:1478
6113 #, no-wrap
6114 msgid ""
6115 " char *guestfs_findfs_label (guestfs_h *g,\n"
6116 "\t\tconst char *label);\n"
6117 "\n"
6118 msgstr ""
6119
6120 # type: textblock
6121 #: ../src/guestfs-actions.pod:1481 ../fish/guestfish-actions.pod:1185
6122 msgid ""
6123 "This command searches the filesystems and returns the one which has the "
6124 "given label.  An error is returned if no such filesystem can be found."
6125 msgstr ""
6126
6127 # type: textblock
6128 #: ../src/guestfs-actions.pod:1485
6129 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
6130 msgstr ""
6131
6132 # type: =head2
6133 #: ../src/guestfs-actions.pod:1490
6134 msgid "guestfs_findfs_uuid"
6135 msgstr ""
6136
6137 # type: verbatim
6138 #: ../src/guestfs-actions.pod:1492
6139 #, no-wrap
6140 msgid ""
6141 " char *guestfs_findfs_uuid (guestfs_h *g,\n"
6142 "\t\tconst char *uuid);\n"
6143 "\n"
6144 msgstr ""
6145
6146 # type: textblock
6147 #: ../src/guestfs-actions.pod:1495 ../fish/guestfish-actions.pod:1195
6148 msgid ""
6149 "This command searches the filesystems and returns the one which has the "
6150 "given UUID.  An error is returned if no such filesystem can be found."
6151 msgstr ""
6152
6153 # type: textblock
6154 #: ../src/guestfs-actions.pod:1499
6155 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
6156 msgstr ""
6157
6158 # type: =head2
6159 #: ../src/guestfs-actions.pod:1504
6160 msgid "guestfs_fsck"
6161 msgstr ""
6162
6163 # type: verbatim
6164 #: ../src/guestfs-actions.pod:1506
6165 #, no-wrap
6166 msgid ""
6167 " int guestfs_fsck (guestfs_h *g,\n"
6168 "\t\tconst char *fstype,\n"
6169 "\t\tconst char *device);\n"
6170 "\n"
6171 msgstr ""
6172
6173 # type: textblock
6174 #: ../src/guestfs-actions.pod:1510 ../fish/guestfish-actions.pod:1205
6175 msgid ""
6176 "This runs the filesystem checker (fsck) on C<device> which should have "
6177 "filesystem type C<fstype>."
6178 msgstr ""
6179
6180 # type: textblock
6181 #: ../src/guestfs-actions.pod:1513 ../fish/guestfish-actions.pod:1208
6182 msgid ""
6183 "The returned integer is the status.  See L<fsck(8)> for the list of status "
6184 "codes from C<fsck>."
6185 msgstr ""
6186
6187 # type: textblock
6188 #: ../src/guestfs-actions.pod:1522 ../fish/guestfish-actions.pod:1217
6189 msgid "Multiple status codes can be summed together."
6190 msgstr ""
6191
6192 # type: textblock
6193 #: ../src/guestfs-actions.pod:1526 ../fish/guestfish-actions.pod:1221
6194 msgid ""
6195 "A non-zero return code can mean \"success\", for example if errors have been "
6196 "corrected on the filesystem."
6197 msgstr ""
6198
6199 # type: textblock
6200 #: ../src/guestfs-actions.pod:1531 ../fish/guestfish-actions.pod:1226
6201 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
6202 msgstr ""
6203
6204 # type: textblock
6205 #: ../src/guestfs-actions.pod:1536 ../fish/guestfish-actions.pod:1231
6206 msgid "This command is entirely equivalent to running C<fsck -a -t fstype device>."
6207 msgstr ""
6208
6209 # type: =head2
6210 #: ../src/guestfs-actions.pod:1540
6211 msgid "guestfs_get_append"
6212 msgstr ""
6213
6214 # type: verbatim
6215 #: ../src/guestfs-actions.pod:1542
6216 #, no-wrap
6217 msgid ""
6218 " const char *guestfs_get_append (guestfs_h *g);\n"
6219 "\n"
6220 msgstr ""
6221
6222 # type: textblock
6223 #: ../src/guestfs-actions.pod:1544 ../fish/guestfish-actions.pod:1237
6224 msgid ""
6225 "Return the additional kernel options which are added to the guest kernel "
6226 "command line."
6227 msgstr ""
6228
6229 # type: textblock
6230 #: ../src/guestfs-actions.pod:1547 ../fish/guestfish-actions.pod:1240
6231 msgid "If C<NULL> then no options are added."
6232 msgstr ""
6233
6234 # type: textblock
6235 #: ../src/guestfs-actions.pod:1549
6236 msgid ""
6237 "This function returns a string which may be NULL.  There is no way to return "
6238 "an error from this function.  The string is owned by the guest handle and "
6239 "must I<not> be freed."
6240 msgstr ""
6241
6242 # type: =head2
6243 #: ../src/guestfs-actions.pod:1553
6244 msgid "guestfs_get_autosync"
6245 msgstr ""
6246
6247 # type: verbatim
6248 #: ../src/guestfs-actions.pod:1555
6249 #, no-wrap
6250 msgid ""
6251 " int guestfs_get_autosync (guestfs_h *g);\n"
6252 "\n"
6253 msgstr ""
6254
6255 # type: textblock
6256 #: ../src/guestfs-actions.pod:1557 ../fish/guestfish-actions.pod:1246
6257 msgid "Get the autosync flag."
6258 msgstr ""
6259
6260 # type: =head2
6261 #: ../src/guestfs-actions.pod:1561
6262 msgid "guestfs_get_direct"
6263 msgstr ""
6264
6265 # type: verbatim
6266 #: ../src/guestfs-actions.pod:1563
6267 #, no-wrap
6268 msgid ""
6269 " int guestfs_get_direct (guestfs_h *g);\n"
6270 "\n"
6271 msgstr ""
6272
6273 # type: textblock
6274 #: ../src/guestfs-actions.pod:1565 ../fish/guestfish-actions.pod:1252
6275 msgid "Return the direct appliance mode flag."
6276 msgstr ""
6277
6278 # type: =head2
6279 #: ../src/guestfs-actions.pod:1569
6280 msgid "guestfs_get_e2label"
6281 msgstr ""
6282
6283 # type: verbatim
6284 #: ../src/guestfs-actions.pod:1571
6285 #, no-wrap
6286 msgid ""
6287 " char *guestfs_get_e2label (guestfs_h *g,\n"
6288 "\t\tconst char *device);\n"
6289 "\n"
6290 msgstr ""
6291
6292 # type: textblock
6293 #: ../src/guestfs-actions.pod:1574 ../fish/guestfish-actions.pod:1258
6294 msgid "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
6295 msgstr ""
6296
6297 # type: textblock
6298 #: ../src/guestfs-actions.pod:1580 ../fish/guestfish-actions.pod:1261
6299 msgid ""
6300 "This function is deprecated.  In new code, use the C<vfs_label> call "
6301 "instead."
6302 msgstr ""
6303
6304 # type: =head2
6305 #: ../src/guestfs-actions.pod:1587
6306 msgid "guestfs_get_e2uuid"
6307 msgstr ""
6308
6309 # type: verbatim
6310 #: ../src/guestfs-actions.pod:1589
6311 #, no-wrap
6312 msgid ""
6313 " char *guestfs_get_e2uuid (guestfs_h *g,\n"
6314 "\t\tconst char *device);\n"
6315 "\n"
6316 msgstr ""
6317
6318 # type: textblock
6319 #: ../src/guestfs-actions.pod:1592 ../fish/guestfish-actions.pod:1272
6320 msgid "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
6321 msgstr ""
6322
6323 # type: textblock
6324 #: ../src/guestfs-actions.pod:1598 ../fish/guestfish-actions.pod:1275
6325 msgid "This function is deprecated.  In new code, use the C<vfs_uuid> call instead."
6326 msgstr ""
6327
6328 # type: =head2
6329 #: ../src/guestfs-actions.pod:1605
6330 msgid "guestfs_get_memsize"
6331 msgstr ""
6332
6333 # type: verbatim
6334 #: ../src/guestfs-actions.pod:1607
6335 #, no-wrap
6336 msgid ""
6337 " int guestfs_get_memsize (guestfs_h *g);\n"
6338 "\n"
6339 msgstr ""
6340
6341 # type: textblock
6342 #: ../src/guestfs-actions.pod:1609 ../fish/guestfish-actions.pod:1286
6343 msgid "This gets the memory size in megabytes allocated to the qemu subprocess."
6344 msgstr ""
6345
6346 # type: textblock
6347 #: ../src/guestfs-actions.pod:1612
6348 msgid ""
6349 "If C<guestfs_set_memsize> was not called on this handle, and if "
6350 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
6351 "value for memsize."
6352 msgstr ""
6353
6354 # type: textblock
6355 #: ../src/guestfs-actions.pod:1616 ../src/guestfs-actions.pod:1679 ../src/guestfs-actions.pod:4371 ../src/guestfs-actions.pod:4463 ../fish/guestfish-actions.pod:1293 ../fish/guestfish-actions.pod:1344 ../fish/guestfish-actions.pod:3387 ../fish/guestfish-actions.pod:3474
6356 msgid "For more information on the architecture of libguestfs, see L<guestfs(3)>."
6357 msgstr ""
6358
6359 # type: =head2
6360 #: ../src/guestfs-actions.pod:1621
6361 msgid "guestfs_get_network"
6362 msgstr ""
6363
6364 # type: verbatim
6365 #: ../src/guestfs-actions.pod:1623
6366 #, no-wrap
6367 msgid ""
6368 " int guestfs_get_network (guestfs_h *g);\n"
6369 "\n"
6370 msgstr ""
6371
6372 # type: textblock
6373 #: ../src/guestfs-actions.pod:1625 ../fish/guestfish-actions.pod:1300
6374 msgid "This returns the enable network flag."
6375 msgstr ""
6376
6377 # type: =head2
6378 #: ../src/guestfs-actions.pod:1629
6379 msgid "guestfs_get_path"
6380 msgstr ""
6381
6382 # type: verbatim
6383 #: ../src/guestfs-actions.pod:1631
6384 #, no-wrap
6385 msgid ""
6386 " const char *guestfs_get_path (guestfs_h *g);\n"
6387 "\n"
6388 msgstr ""
6389
6390 # type: textblock
6391 #: ../src/guestfs-actions.pod:1633 ../fish/guestfish-actions.pod:1306
6392 msgid "Return the current search path."
6393 msgstr ""
6394
6395 # type: textblock
6396 #: ../src/guestfs-actions.pod:1635 ../fish/guestfish-actions.pod:1308
6397 msgid ""
6398 "This is always non-NULL.  If it wasn't set already, then this will return "
6399 "the default path."
6400 msgstr ""
6401
6402 # type: textblock
6403 #: ../src/guestfs-actions.pod:1638 ../src/guestfs-actions.pod:1661
6404 msgid ""
6405 "This function returns a string, or NULL on error.  The string is owned by "
6406 "the guest handle and must I<not> be freed."
6407 msgstr ""
6408
6409 # type: =head2
6410 #: ../src/guestfs-actions.pod:1641
6411 msgid "guestfs_get_pid"
6412 msgstr ""
6413
6414 # type: verbatim
6415 #: ../src/guestfs-actions.pod:1643
6416 #, no-wrap
6417 msgid ""
6418 " int guestfs_get_pid (guestfs_h *g);\n"
6419 "\n"
6420 msgstr ""
6421
6422 # type: textblock
6423 #: ../src/guestfs-actions.pod:1645 ../fish/guestfish-actions.pod:1317
6424 msgid ""
6425 "Return the process ID of the qemu subprocess.  If there is no qemu "
6426 "subprocess, then this will return an error."
6427 msgstr ""
6428
6429 # type: textblock
6430 #: ../src/guestfs-actions.pod:1648 ../fish/guestfish-actions.pod:1320
6431 msgid "This is an internal call used for debugging and testing."
6432 msgstr ""
6433
6434 # type: =head2
6435 #: ../src/guestfs-actions.pod:1652
6436 msgid "guestfs_get_qemu"
6437 msgstr ""
6438
6439 # type: verbatim
6440 #: ../src/guestfs-actions.pod:1654
6441 #, no-wrap
6442 msgid ""
6443 " const char *guestfs_get_qemu (guestfs_h *g);\n"
6444 "\n"
6445 msgstr ""
6446
6447 # type: textblock
6448 #: ../src/guestfs-actions.pod:1656 ../fish/guestfish-actions.pod:1326
6449 msgid "Return the current qemu binary."
6450 msgstr ""
6451
6452 # type: textblock
6453 #: ../src/guestfs-actions.pod:1658 ../fish/guestfish-actions.pod:1328
6454 msgid ""
6455 "This is always non-NULL.  If it wasn't set already, then this will return "
6456 "the default qemu binary name."
6457 msgstr ""
6458
6459 # type: =head2
6460 #: ../src/guestfs-actions.pod:1664
6461 msgid "guestfs_get_recovery_proc"
6462 msgstr ""
6463
6464 # type: verbatim
6465 #: ../src/guestfs-actions.pod:1666
6466 #, no-wrap
6467 msgid ""
6468 " int guestfs_get_recovery_proc (guestfs_h *g);\n"
6469 "\n"
6470 msgstr ""
6471
6472 # type: textblock
6473 #: ../src/guestfs-actions.pod:1668 ../fish/guestfish-actions.pod:1335
6474 msgid "Return the recovery process enabled flag."
6475 msgstr ""
6476
6477 # type: =head2
6478 #: ../src/guestfs-actions.pod:1672
6479 msgid "guestfs_get_selinux"
6480 msgstr ""
6481
6482 # type: verbatim
6483 #: ../src/guestfs-actions.pod:1674
6484 #, no-wrap
6485 msgid ""
6486 " int guestfs_get_selinux (guestfs_h *g);\n"
6487 "\n"
6488 msgstr ""
6489
6490 # type: textblock
6491 #: ../src/guestfs-actions.pod:1676
6492 msgid ""
6493 "This returns the current setting of the selinux flag which is passed to the "
6494 "appliance at boot time.  See C<guestfs_set_selinux>."
6495 msgstr ""
6496
6497 # type: =head2
6498 #: ../src/guestfs-actions.pod:1684
6499 msgid "guestfs_get_state"
6500 msgstr ""
6501
6502 # type: verbatim
6503 #: ../src/guestfs-actions.pod:1686
6504 #, no-wrap
6505 msgid ""
6506 " int guestfs_get_state (guestfs_h *g);\n"
6507 "\n"
6508 msgstr ""
6509
6510 # type: textblock
6511 #: ../src/guestfs-actions.pod:1688 ../fish/guestfish-actions.pod:1351
6512 msgid ""
6513 "This returns the current state as an opaque integer.  This is only useful "
6514 "for printing debug and internal error messages."
6515 msgstr ""
6516
6517 # type: textblock
6518 #: ../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
6519 msgid "For more information on states, see L<guestfs(3)>."
6520 msgstr ""
6521
6522 # type: =head2
6523 #: ../src/guestfs-actions.pod:1695
6524 msgid "guestfs_get_trace"
6525 msgstr ""
6526
6527 # type: verbatim
6528 #: ../src/guestfs-actions.pod:1697
6529 #, no-wrap
6530 msgid ""
6531 " int guestfs_get_trace (guestfs_h *g);\n"
6532 "\n"
6533 msgstr ""
6534
6535 # type: textblock
6536 #: ../src/guestfs-actions.pod:1699 ../fish/guestfish-actions.pod:1360
6537 msgid "Return the command trace flag."
6538 msgstr ""
6539
6540 # type: =head2
6541 #: ../src/guestfs-actions.pod:1703
6542 msgid "guestfs_get_umask"
6543 msgstr ""
6544
6545 # type: verbatim
6546 #: ../src/guestfs-actions.pod:1705
6547 #, no-wrap
6548 msgid ""
6549 " int guestfs_get_umask (guestfs_h *g);\n"
6550 "\n"
6551 msgstr ""
6552
6553 # type: textblock
6554 #: ../src/guestfs-actions.pod:1707
6555 msgid ""
6556 "Return the current umask.  By default the umask is C<022> unless it has been "
6557 "set by calling C<guestfs_umask>."
6558 msgstr ""
6559
6560 # type: =head2
6561 #: ../src/guestfs-actions.pod:1712
6562 msgid "guestfs_get_verbose"
6563 msgstr ""
6564
6565 # type: verbatim
6566 #: ../src/guestfs-actions.pod:1714
6567 #, no-wrap
6568 msgid ""
6569 " int guestfs_get_verbose (guestfs_h *g);\n"
6570 "\n"
6571 msgstr ""
6572
6573 # type: textblock
6574 #: ../src/guestfs-actions.pod:1716 ../fish/guestfish-actions.pod:1373
6575 msgid "This returns the verbose messages flag."
6576 msgstr ""
6577
6578 # type: =head2
6579 #: ../src/guestfs-actions.pod:1720
6580 msgid "guestfs_getcon"
6581 msgstr ""
6582
6583 # type: verbatim
6584 #: ../src/guestfs-actions.pod:1722
6585 #, no-wrap
6586 msgid ""
6587 " char *guestfs_getcon (guestfs_h *g);\n"
6588 "\n"
6589 msgstr ""
6590
6591 # type: textblock
6592 #: ../src/guestfs-actions.pod:1724 ../fish/guestfish-actions.pod:1379
6593 msgid "This gets the SELinux security context of the daemon."
6594 msgstr ""
6595
6596 # type: textblock
6597 #: ../src/guestfs-actions.pod:1726
6598 msgid "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
6599 msgstr ""
6600
6601 # type: =head2
6602 #: ../src/guestfs-actions.pod:1732
6603 msgid "guestfs_getxattrs"
6604 msgstr ""
6605
6606 # type: verbatim
6607 #: ../src/guestfs-actions.pod:1734
6608 #, no-wrap
6609 msgid ""
6610 " struct guestfs_xattr_list *guestfs_getxattrs (guestfs_h *g,\n"
6611 "\t\tconst char *path);\n"
6612 "\n"
6613 msgstr ""
6614
6615 # type: textblock
6616 #: ../src/guestfs-actions.pod:1737 ../fish/guestfish-actions.pod:1388
6617 msgid "This call lists the extended attributes of the file or directory C<path>."
6618 msgstr ""
6619
6620 # type: textblock
6621 #: ../src/guestfs-actions.pod:1740 ../fish/guestfish-actions.pod:1391
6622 msgid ""
6623 "At the system call level, this is a combination of the L<listxattr(2)> and "
6624 "L<getxattr(2)> calls."
6625 msgstr ""
6626
6627 # type: textblock
6628 #: ../src/guestfs-actions.pod:1743
6629 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
6630 msgstr ""
6631
6632 # type: textblock
6633 #: ../src/guestfs-actions.pod:1745 ../src/guestfs-actions.pod:2479 ../src/guestfs-actions.pod:3017
6634 msgid ""
6635 "This function returns a C<struct guestfs_xattr_list *> (see "
6636 "E<lt>guestfs-structs.hE<gt>), or NULL if there was an error.  I<The caller "
6637 "must call C<guestfs_free_xattr_list> after use>."
6638 msgstr ""
6639
6640 # type: =head2
6641 #: ../src/guestfs-actions.pod:1750
6642 msgid "guestfs_glob_expand"
6643 msgstr ""
6644
6645 # type: verbatim
6646 #: ../src/guestfs-actions.pod:1752
6647 #, no-wrap
6648 msgid ""
6649 " char **guestfs_glob_expand (guestfs_h *g,\n"
6650 "\t\tconst char *pattern);\n"
6651 "\n"
6652 msgstr ""
6653
6654 # type: textblock
6655 #: ../src/guestfs-actions.pod:1755 ../fish/guestfish-actions.pod:1400
6656 msgid ""
6657 "This command searches for all the pathnames matching C<pattern> according to "
6658 "the wildcard expansion rules used by the shell."
6659 msgstr ""
6660
6661 # type: textblock
6662 #: ../src/guestfs-actions.pod:1759 ../fish/guestfish-actions.pod:1404
6663 msgid "If no paths match, then this returns an empty list (note: not an error)."
6664 msgstr ""
6665
6666 # type: textblock
6667 #: ../src/guestfs-actions.pod:1762 ../fish/guestfish-actions.pod:1407
6668 msgid ""
6669 "It is just a wrapper around the C L<glob(3)> function with flags "
6670 "C<GLOB_MARK|GLOB_BRACE>.  See that manual page for more details."
6671 msgstr ""
6672
6673 # type: =head2
6674 #: ../src/guestfs-actions.pod:1770
6675 msgid "guestfs_grep"
6676 msgstr ""
6677
6678 # type: verbatim
6679 #: ../src/guestfs-actions.pod:1772
6680 #, no-wrap
6681 msgid ""
6682 " char **guestfs_grep (guestfs_h *g,\n"
6683 "\t\tconst char *regex,\n"
6684 "\t\tconst char *path);\n"
6685 "\n"
6686 msgstr ""
6687
6688 # type: textblock
6689 #: ../src/guestfs-actions.pod:1776 ../fish/guestfish-actions.pod:1415
6690 msgid "This calls the external C<grep> program and returns the matching lines."
6691 msgstr ""
6692
6693 # type: =head2
6694 #: ../src/guestfs-actions.pod:1786
6695 msgid "guestfs_grepi"
6696 msgstr ""
6697
6698 # type: verbatim
6699 #: ../src/guestfs-actions.pod:1788
6700 #, no-wrap
6701 msgid ""
6702 " char **guestfs_grepi (guestfs_h *g,\n"
6703 "\t\tconst char *regex,\n"
6704 "\t\tconst char *path);\n"
6705 "\n"
6706 msgstr ""
6707
6708 # type: textblock
6709 #: ../src/guestfs-actions.pod:1792 ../fish/guestfish-actions.pod:1425
6710 msgid "This calls the external C<grep -i> program and returns the matching lines."
6711 msgstr ""
6712
6713 # type: =head2
6714 #: ../src/guestfs-actions.pod:1802
6715 msgid "guestfs_grub_install"
6716 msgstr ""
6717
6718 # type: verbatim
6719 #: ../src/guestfs-actions.pod:1804
6720 #, no-wrap
6721 msgid ""
6722 " int guestfs_grub_install (guestfs_h *g,\n"
6723 "\t\tconst char *root,\n"
6724 "\t\tconst char *device);\n"
6725 "\n"
6726 msgstr ""
6727
6728 # type: textblock
6729 #: ../src/guestfs-actions.pod:1808 ../fish/guestfish-actions.pod:1435
6730 msgid ""
6731 "This command installs GRUB (the Grand Unified Bootloader) on C<device>, with "
6732 "the root directory being C<root>."
6733 msgstr ""
6734
6735 # type: textblock
6736 #: ../src/guestfs-actions.pod:1811 ../fish/guestfish-actions.pod:1438
6737 msgid ""
6738 "Note: If grub-install reports the error \"No suitable drive was found in the "
6739 "generated device map.\" it may be that you need to create a "
6740 "C</boot/grub/device.map> file first that contains the mapping between grub "
6741 "device names and Linux device names.  It is usually sufficient to create a "
6742 "file containing:"
6743 msgstr ""
6744
6745 # type: verbatim
6746 #: ../src/guestfs-actions.pod:1818 ../fish/guestfish-actions.pod:1445
6747 #, no-wrap
6748 msgid ""
6749 " (hd0) /dev/vda\n"
6750 "\n"
6751 msgstr ""
6752
6753 # type: textblock
6754 #: ../src/guestfs-actions.pod:1820 ../fish/guestfish-actions.pod:1447
6755 msgid "replacing C</dev/vda> with the name of the installation device."
6756 msgstr ""
6757
6758 # type: =head2
6759 #: ../src/guestfs-actions.pod:1824
6760 msgid "guestfs_head"
6761 msgstr ""
6762
6763 # type: verbatim
6764 #: ../src/guestfs-actions.pod:1826
6765 #, no-wrap
6766 msgid ""
6767 " char **guestfs_head (guestfs_h *g,\n"
6768 "\t\tconst char *path);\n"
6769 "\n"
6770 msgstr ""
6771
6772 # type: textblock
6773 #: ../src/guestfs-actions.pod:1829 ../fish/guestfish-actions.pod:1453
6774 msgid ""
6775 "This command returns up to the first 10 lines of a file as a list of "
6776 "strings."
6777 msgstr ""
6778
6779 # type: =head2
6780 #: ../src/guestfs-actions.pod:1839
6781 msgid "guestfs_head_n"
6782 msgstr ""
6783
6784 # type: verbatim
6785 #: ../src/guestfs-actions.pod:1841
6786 #, no-wrap
6787 msgid ""
6788 " char **guestfs_head_n (guestfs_h *g,\n"
6789 "\t\tint nrlines,\n"
6790 "\t\tconst char *path);\n"
6791 "\n"
6792 msgstr ""
6793
6794 # type: textblock
6795 #: ../src/guestfs-actions.pod:1845 ../fish/guestfish-actions.pod:1463
6796 msgid ""
6797 "If the parameter C<nrlines> is a positive number, this returns the first "
6798 "C<nrlines> lines of the file C<path>."
6799 msgstr ""
6800
6801 # type: textblock
6802 #: ../src/guestfs-actions.pod:1848 ../fish/guestfish-actions.pod:1466
6803 msgid ""
6804 "If the parameter C<nrlines> is a negative number, this returns lines from "
6805 "the file C<path>, excluding the last C<nrlines> lines."
6806 msgstr ""
6807
6808 # type: textblock
6809 #: ../src/guestfs-actions.pod:1851 ../src/guestfs-actions.pod:4919 ../fish/guestfish-actions.pod:1469 ../fish/guestfish-actions.pod:3820
6810 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
6811 msgstr ""
6812
6813 # type: =head2
6814 #: ../src/guestfs-actions.pod:1860
6815 msgid "guestfs_hexdump"
6816 msgstr ""
6817
6818 # type: verbatim
6819 #: ../src/guestfs-actions.pod:1862
6820 #, no-wrap
6821 msgid ""
6822 " char *guestfs_hexdump (guestfs_h *g,\n"
6823 "\t\tconst char *path);\n"
6824 "\n"
6825 msgstr ""
6826
6827 # type: textblock
6828 #: ../src/guestfs-actions.pod:1865 ../fish/guestfish-actions.pod:1478
6829 msgid ""
6830 "This runs C<hexdump -C> on the given C<path>.  The result is the "
6831 "human-readable, canonical hex dump of the file."
6832 msgstr ""
6833
6834 # type: =head2
6835 #: ../src/guestfs-actions.pod:1874
6836 msgid "guestfs_initrd_cat"
6837 msgstr ""
6838
6839 # type: verbatim
6840 #: ../src/guestfs-actions.pod:1876
6841 #, no-wrap
6842 msgid ""
6843 " char *guestfs_initrd_cat (guestfs_h *g,\n"
6844 "\t\tconst char *initrdpath,\n"
6845 "\t\tconst char *filename,\n"
6846 "\t\tsize_t *size_r);\n"
6847 "\n"
6848 msgstr ""
6849
6850 # type: textblock
6851 #: ../src/guestfs-actions.pod:1881 ../fish/guestfish-actions.pod:1488
6852 msgid ""
6853 "This command unpacks the file C<filename> from the initrd file called "
6854 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
6855 "character."
6856 msgstr ""
6857
6858 # type: textblock
6859 #: ../src/guestfs-actions.pod:1885 ../fish/guestfish-actions.pod:1492
6860 msgid ""
6861 "For example, in guestfish you could use the following command to examine the "
6862 "boot script (usually called C</init>)  contained in a Linux initrd or "
6863 "initramfs image:"
6864 msgstr ""
6865
6866 # type: verbatim
6867 #: ../src/guestfs-actions.pod:1889 ../fish/guestfish-actions.pod:1496
6868 #, no-wrap
6869 msgid ""
6870 " initrd-cat /boot/initrd-<version>.img init\n"
6871 "\n"
6872 msgstr ""
6873
6874 # type: textblock
6875 #: ../src/guestfs-actions.pod:1891
6876 msgid "See also C<guestfs_initrd_list>."
6877 msgstr ""
6878
6879 # type: textblock
6880 #: ../src/guestfs-actions.pod:1893 ../src/guestfs-actions.pod:3831 ../src/guestfs-actions.pod:3854 ../src/guestfs-actions.pod:4006
6881 msgid ""
6882 "This function returns a buffer, or NULL on error.  The size of the returned "
6883 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
6884 "after use>."
6885 msgstr ""
6886
6887 # type: =head2
6888 #: ../src/guestfs-actions.pod:1900
6889 msgid "guestfs_initrd_list"
6890 msgstr ""
6891
6892 # type: verbatim
6893 #: ../src/guestfs-actions.pod:1902
6894 #, no-wrap
6895 msgid ""
6896 " char **guestfs_initrd_list (guestfs_h *g,\n"
6897 "\t\tconst char *path);\n"
6898 "\n"
6899 msgstr ""
6900
6901 # type: textblock
6902 #: ../src/guestfs-actions.pod:1905 ../fish/guestfish-actions.pod:1507
6903 msgid "This command lists out files contained in an initrd."
6904 msgstr ""
6905
6906 # type: textblock
6907 #: ../src/guestfs-actions.pod:1907 ../fish/guestfish-actions.pod:1509
6908 msgid ""
6909 "The files are listed without any initial C</> character.  The files are "
6910 "listed in the order they appear (not necessarily alphabetical).  Directory "
6911 "names are listed as separate items."
6912 msgstr ""
6913
6914 # type: textblock
6915 #: ../src/guestfs-actions.pod:1911 ../fish/guestfish-actions.pod:1513
6916 msgid ""
6917 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
6918 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
6919 "files)."
6920 msgstr ""
6921
6922 # type: =head2
6923 #: ../src/guestfs-actions.pod:1919
6924 msgid "guestfs_inotify_add_watch"
6925 msgstr ""
6926
6927 # type: verbatim
6928 #: ../src/guestfs-actions.pod:1921
6929 #, no-wrap
6930 msgid ""
6931 " int64_t guestfs_inotify_add_watch (guestfs_h *g,\n"
6932 "\t\tconst char *path,\n"
6933 "\t\tint mask);\n"
6934 "\n"
6935 msgstr ""
6936
6937 # type: textblock
6938 #: ../src/guestfs-actions.pod:1925 ../fish/guestfish-actions.pod:1521
6939 msgid "Watch C<path> for the events listed in C<mask>."
6940 msgstr ""
6941
6942 # type: textblock
6943 #: ../src/guestfs-actions.pod:1927 ../fish/guestfish-actions.pod:1523
6944 msgid ""
6945 "Note that if C<path> is a directory then events within that directory are "
6946 "watched, but this does I<not> happen recursively (in subdirectories)."
6947 msgstr ""
6948
6949 # type: textblock
6950 #: ../src/guestfs-actions.pod:1931 ../fish/guestfish-actions.pod:1527
6951 msgid ""
6952 "Note for non-C or non-Linux callers: the inotify events are defined by the "
6953 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
6954 msgstr ""
6955
6956 # type: =head2
6957 #: ../src/guestfs-actions.pod:1937
6958 msgid "guestfs_inotify_close"
6959 msgstr ""
6960
6961 # type: verbatim
6962 #: ../src/guestfs-actions.pod:1939
6963 #, no-wrap
6964 msgid ""
6965 " int guestfs_inotify_close (guestfs_h *g);\n"
6966 "\n"
6967 msgstr ""
6968
6969 # type: textblock
6970 #: ../src/guestfs-actions.pod:1941 ../fish/guestfish-actions.pod:1535
6971 msgid ""
6972 "This closes the inotify handle which was previously opened by inotify_init.  "
6973 "It removes all watches, throws away any pending events, and deallocates all "
6974 "resources."
6975 msgstr ""
6976
6977 # type: =head2
6978 #: ../src/guestfs-actions.pod:1947
6979 msgid "guestfs_inotify_files"
6980 msgstr ""
6981
6982 # type: verbatim
6983 #: ../src/guestfs-actions.pod:1949
6984 #, no-wrap
6985 msgid ""
6986 " char **guestfs_inotify_files (guestfs_h *g);\n"
6987 "\n"
6988 msgstr ""
6989
6990 # type: textblock
6991 #: ../src/guestfs-actions.pod:1951
6992 msgid ""
6993 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
6994 "returns a list of pathnames of objects that were touched.  The returned "
6995 "pathnames are sorted and deduplicated."
6996 msgstr ""
6997
6998 # type: =head2
6999 #: ../src/guestfs-actions.pod:1959
7000 msgid "guestfs_inotify_init"
7001 msgstr ""
7002
7003 # type: verbatim
7004 #: ../src/guestfs-actions.pod:1961
7005 #, no-wrap
7006 msgid ""
7007 " int guestfs_inotify_init (guestfs_h *g,\n"
7008 "\t\tint maxevents);\n"
7009 "\n"
7010 msgstr ""
7011
7012 # type: textblock
7013 #: ../src/guestfs-actions.pod:1964 ../fish/guestfish-actions.pod:1551
7014 msgid ""
7015 "This command creates a new inotify handle.  The inotify subsystem can be "
7016 "used to notify events which happen to objects in the guest filesystem."
7017 msgstr ""
7018
7019 # type: textblock
7020 #: ../src/guestfs-actions.pod:1968
7021 msgid ""
7022 "C<maxevents> is the maximum number of events which will be queued up between "
7023 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
7024 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
7025 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
7026 "throws away events, but records the fact that it threw them away by setting "
7027 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
7028 "C<guestfs_inotify_read>)."
7029 msgstr ""
7030
7031 # type: textblock
7032 #: ../src/guestfs-actions.pod:1978
7033 msgid ""
7034 "Before any events are generated, you have to add some watches to the "
7035 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
7036 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
7037 msgstr ""
7038
7039 # type: textblock
7040 #: ../src/guestfs-actions.pod:1984
7041 msgid ""
7042 "Queued up events should be read periodically by calling "
7043 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
7044 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
7045 "often enough then you risk the internal queue overflowing."
7046 msgstr ""
7047
7048 # type: textblock
7049 #: ../src/guestfs-actions.pod:1991
7050 msgid ""
7051 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
7052 "This also removes any watches automatically."
7053 msgstr ""
7054
7055 # type: textblock
7056 #: ../src/guestfs-actions.pod:1995 ../fish/guestfish-actions.pod:1582
7057 msgid ""
7058 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
7059 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
7060 "that there is one global inotify handle per libguestfs instance."
7061 msgstr ""
7062
7063 # type: =head2
7064 #: ../src/guestfs-actions.pod:2002
7065 msgid "guestfs_inotify_read"
7066 msgstr ""
7067
7068 # type: verbatim
7069 #: ../src/guestfs-actions.pod:2004
7070 #, no-wrap
7071 msgid ""
7072 " struct guestfs_inotify_event_list *guestfs_inotify_read (guestfs_h *g);\n"
7073 "\n"
7074 msgstr ""
7075
7076 # type: textblock
7077 #: ../src/guestfs-actions.pod:2006 ../fish/guestfish-actions.pod:1591
7078 msgid ""
7079 "Return the complete queue of events that have happened since the previous "
7080 "read call."
7081 msgstr ""
7082
7083 # type: textblock
7084 #: ../src/guestfs-actions.pod:2009 ../fish/guestfish-actions.pod:1594
7085 msgid "If no events have happened, this returns an empty list."
7086 msgstr ""
7087
7088 # type: textblock
7089 #: ../src/guestfs-actions.pod:2011 ../fish/guestfish-actions.pod:1596
7090 msgid ""
7091 "I<Note>: In order to make sure that all events have been read, you must call "
7092 "this function repeatedly until it returns an empty list.  The reason is that "
7093 "the call will read events up to the maximum appliance-to-host message size "
7094 "and leave remaining events in the queue."
7095 msgstr ""
7096
7097 # type: textblock
7098 #: ../src/guestfs-actions.pod:2017
7099 msgid ""
7100 "This function returns a C<struct guestfs_inotify_event_list *> (see "
7101 "E<lt>guestfs-structs.hE<gt>), or NULL if there was an error.  I<The caller "
7102 "must call C<guestfs_free_inotify_event_list> after use>."
7103 msgstr ""
7104
7105 # type: =head2
7106 #: ../src/guestfs-actions.pod:2022
7107 msgid "guestfs_inotify_rm_watch"
7108 msgstr ""
7109
7110 # type: verbatim
7111 #: ../src/guestfs-actions.pod:2024
7112 #, no-wrap
7113 msgid ""
7114 " int guestfs_inotify_rm_watch (guestfs_h *g,\n"
7115 "\t\tint wd);\n"
7116 "\n"
7117 msgstr ""
7118
7119 # type: textblock
7120 #: ../src/guestfs-actions.pod:2027
7121 msgid ""
7122 "Remove a previously defined inotify watch.  See "
7123 "C<guestfs_inotify_add_watch>."
7124 msgstr ""
7125
7126 # type: =head2
7127 #: ../src/guestfs-actions.pod:2032
7128 msgid "guestfs_inspect_get_arch"
7129 msgstr ""
7130
7131 # type: verbatim
7132 #: ../src/guestfs-actions.pod:2034
7133 #, no-wrap
7134 msgid ""
7135 " char *guestfs_inspect_get_arch (guestfs_h *g,\n"
7136 "\t\tconst char *root);\n"
7137 "\n"
7138 msgstr ""
7139
7140 # type: textblock
7141 #: ../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
7142 msgid ""
7143 "This function should only be called with a root device string as returned by "
7144 "C<guestfs_inspect_os>."
7145 msgstr ""
7146
7147 # type: textblock
7148 #: ../src/guestfs-actions.pod:2040
7149 msgid ""
7150 "This returns the architecture of the inspected operating system.  The "
7151 "possible return values are listed under C<guestfs_file_architecture>."
7152 msgstr ""
7153
7154 # type: textblock
7155 #: ../src/guestfs-actions.pod:2044 ../fish/guestfish-actions.pod:1620
7156 msgid ""
7157 "If the architecture could not be determined, then the string C<unknown> is "
7158 "returned."
7159 msgstr ""
7160
7161 # type: textblock
7162 #: ../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
7163 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
7164 msgstr ""
7165
7166 # type: =head2
7167 #: ../src/guestfs-actions.pod:2052
7168 msgid "guestfs_inspect_get_distro"
7169 msgstr ""
7170
7171 # type: verbatim
7172 #: ../src/guestfs-actions.pod:2054
7173 #, no-wrap
7174 msgid ""
7175 " char *guestfs_inspect_get_distro (guestfs_h *g,\n"
7176 "\t\tconst char *root);\n"
7177 "\n"
7178 msgstr ""
7179
7180 # type: textblock
7181 #: ../src/guestfs-actions.pod:2060 ../fish/guestfish-actions.pod:1632
7182 msgid "This returns the distro (distribution) of the inspected operating system."
7183 msgstr ""
7184
7185 # type: textblock
7186 #: ../src/guestfs-actions.pod:2063 ../fish/guestfish-actions.pod:1635
7187 msgid "Currently defined distros are:"
7188 msgstr ""
7189
7190 # type: =item
7191 #: ../src/guestfs-actions.pod:2067 ../fish/guestfish-actions.pod:1639
7192 msgid "\"debian\""
7193 msgstr ""
7194
7195 # type: textblock
7196 #: ../src/guestfs-actions.pod:2069 ../fish/guestfish-actions.pod:1641
7197 msgid "Debian or a Debian-derived distro such as Ubuntu."
7198 msgstr ""
7199
7200 # type: =item
7201 #: ../src/guestfs-actions.pod:2071 ../fish/guestfish-actions.pod:1643
7202 msgid "\"fedora\""
7203 msgstr ""
7204
7205 # type: textblock
7206 #: ../src/guestfs-actions.pod:2073 ../fish/guestfish-actions.pod:1645
7207 msgid "Fedora."
7208 msgstr ""
7209
7210 # type: =item
7211 #: ../src/guestfs-actions.pod:2075 ../fish/guestfish-actions.pod:1647
7212 msgid "\"redhat-based\""
7213 msgstr ""
7214
7215 # type: textblock
7216 #: ../src/guestfs-actions.pod:2077 ../fish/guestfish-actions.pod:1649
7217 msgid "Some Red Hat-derived distro."
7218 msgstr ""
7219
7220 # type: =item
7221 #: ../src/guestfs-actions.pod:2079 ../fish/guestfish-actions.pod:1651
7222 msgid "\"rhel\""
7223 msgstr ""
7224
7225 # type: textblock
7226 #: ../src/guestfs-actions.pod:2081 ../fish/guestfish-actions.pod:1653
7227 msgid "Red Hat Enterprise Linux and some derivatives."
7228 msgstr ""
7229
7230 # type: =item
7231 #: ../src/guestfs-actions.pod:2083 ../src/guestfs-actions.pod:2235 ../fish/guestfish-actions.pod:1655 ../fish/guestfish-actions.pod:1781
7232 msgid "\"windows\""
7233 msgstr ""
7234
7235 # type: textblock
7236 #: ../src/guestfs-actions.pod:2085 ../fish/guestfish-actions.pod:1657
7237 msgid ""
7238 "Windows does not have distributions.  This string is returned if the OS type "
7239 "is Windows."
7240 msgstr ""
7241
7242 # type: =item
7243 #: ../src/guestfs-actions.pod:2088 ../src/guestfs-actions.pod:2239 ../fish/guestfish-actions.pod:1660 ../fish/guestfish-actions.pod:1785
7244 msgid "\"unknown\""
7245 msgstr ""
7246
7247 # type: textblock
7248 #: ../src/guestfs-actions.pod:2090 ../fish/guestfish-actions.pod:1662
7249 msgid "The distro could not be determined."
7250 msgstr ""
7251
7252 # type: textblock
7253 #: ../src/guestfs-actions.pod:2094 ../src/guestfs-actions.pod:2245 ../fish/guestfish-actions.pod:1666 ../fish/guestfish-actions.pod:1791
7254 msgid ""
7255 "Future versions of libguestfs may return other strings here.  The caller "
7256 "should be prepared to handle any string."
7257 msgstr ""
7258
7259 # type: =head2
7260 #: ../src/guestfs-actions.pod:2102
7261 msgid "guestfs_inspect_get_filesystems"
7262 msgstr ""
7263
7264 # type: verbatim
7265 #: ../src/guestfs-actions.pod:2104
7266 #, no-wrap
7267 msgid ""
7268 " char **guestfs_inspect_get_filesystems (guestfs_h *g,\n"
7269 "\t\tconst char *root);\n"
7270 "\n"
7271 msgstr ""
7272
7273 # type: textblock
7274 #: ../src/guestfs-actions.pod:2110 ../fish/guestfish-actions.pod:1678
7275 msgid ""
7276 "This returns a list of all the filesystems that we think are associated with "
7277 "this operating system.  This includes the root filesystem, other ordinary "
7278 "filesystems, and non-mounted devices like swap partitions."
7279 msgstr ""
7280
7281 # type: textblock
7282 #: ../src/guestfs-actions.pod:2115 ../fish/guestfish-actions.pod:1683
7283 msgid ""
7284 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
7285 "to be shared between operating systems."
7286 msgstr ""
7287
7288 # type: textblock
7289 #: ../src/guestfs-actions.pod:2118
7290 msgid ""
7291 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
7292 "C<guestfs_inspect_get_mountpoints>."
7293 msgstr ""
7294
7295 # type: =head2
7296 #: ../src/guestfs-actions.pod:2125
7297 msgid "guestfs_inspect_get_major_version"
7298 msgstr ""
7299
7300 # type: verbatim
7301 #: ../src/guestfs-actions.pod:2127
7302 #, no-wrap
7303 msgid ""
7304 " int guestfs_inspect_get_major_version (guestfs_h *g,\n"
7305 "\t\tconst char *root);\n"
7306 "\n"
7307 msgstr ""
7308
7309 # type: textblock
7310 #: ../src/guestfs-actions.pod:2133 ../fish/guestfish-actions.pod:1696
7311 msgid "This returns the major version number of the inspected operating system."
7312 msgstr ""
7313
7314 # type: textblock
7315 #: ../src/guestfs-actions.pod:2136 ../fish/guestfish-actions.pod:1699
7316 msgid ""
7317 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
7318 "popular public names used by the operating system.  Notably the operating "
7319 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
7320 "1).  You can find out the real versions corresponding to releases of Windows "
7321 "by consulting Wikipedia or MSDN."
7322 msgstr ""
7323
7324 # type: textblock
7325 #: ../src/guestfs-actions.pod:2143 ../src/guestfs-actions.pod:2160 ../fish/guestfish-actions.pod:1706 ../fish/guestfish-actions.pod:1720
7326 msgid "If the version could not be determined, then C<0> is returned."
7327 msgstr ""
7328
7329 # type: =head2
7330 #: ../src/guestfs-actions.pod:2149
7331 msgid "guestfs_inspect_get_minor_version"
7332 msgstr ""
7333
7334 # type: verbatim
7335 #: ../src/guestfs-actions.pod:2151
7336 #, no-wrap
7337 msgid ""
7338 " int guestfs_inspect_get_minor_version (guestfs_h *g,\n"
7339 "\t\tconst char *root);\n"
7340 "\n"
7341 msgstr ""
7342
7343 # type: textblock
7344 #: ../src/guestfs-actions.pod:2157 ../fish/guestfish-actions.pod:1717
7345 msgid "This returns the minor version number of the inspected operating system."
7346 msgstr ""
7347
7348 # type: textblock
7349 #: ../src/guestfs-actions.pod:2162
7350 msgid ""
7351 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
7352 "C<guestfs_inspect_get_major_version>."
7353 msgstr ""
7354
7355 # type: =head2
7356 #: ../src/guestfs-actions.pod:2167
7357 msgid "guestfs_inspect_get_mountpoints"
7358 msgstr ""
7359
7360 # type: verbatim
7361 #: ../src/guestfs-actions.pod:2169
7362 #, no-wrap
7363 msgid ""
7364 " char **guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
7365 "\t\tconst char *root);\n"
7366 "\n"
7367 msgstr ""
7368
7369 # type: textblock
7370 #: ../src/guestfs-actions.pod:2175 ../fish/guestfish-actions.pod:1732
7371 msgid ""
7372 "This returns a hash of where we think the filesystems associated with this "
7373 "operating system should be mounted.  Callers should note that this is at "
7374 "best an educated guess made by reading configuration files such as "
7375 "C</etc/fstab>."
7376 msgstr ""
7377
7378 # type: textblock
7379 #: ../src/guestfs-actions.pod:2180 ../fish/guestfish-actions.pod:1737
7380 msgid ""
7381 "Each element in the returned hashtable has a key which is the path of the "
7382 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
7383 "mounted there (eg. C</dev/sda1>)."
7384 msgstr ""
7385
7386 # type: textblock
7387 #: ../src/guestfs-actions.pod:2185 ../fish/guestfish-actions.pod:1742
7388 msgid "Non-mounted devices such as swap devices are I<not> returned in this list."
7389 msgstr ""
7390
7391 # type: textblock
7392 #: ../src/guestfs-actions.pod:2188
7393 msgid ""
7394 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
7395 "C<guestfs_inspect_get_filesystems>."
7396 msgstr ""
7397
7398 # type: textblock
7399 #: ../src/guestfs-actions.pod:2191 ../src/guestfs-actions.pod:2531 ../src/guestfs-actions.pod:3453 ../src/guestfs-actions.pod:5036
7400 msgid ""
7401 "This function returns a NULL-terminated array of strings, or NULL if there "
7402 "was an error.  The array of strings will always have length C<2n+1>, where "
7403 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
7404 "caller must free the strings and the array after use>."
7405 msgstr ""
7406
7407 # type: =head2
7408 #: ../src/guestfs-actions.pod:2197
7409 msgid "guestfs_inspect_get_product_name"
7410 msgstr ""
7411
7412 # type: verbatim
7413 #: ../src/guestfs-actions.pod:2199
7414 #, no-wrap
7415 msgid ""
7416 " char *guestfs_inspect_get_product_name (guestfs_h *g,\n"
7417 "\t\tconst char *root);\n"
7418 "\n"
7419 msgstr ""
7420
7421 # type: textblock
7422 #: ../src/guestfs-actions.pod:2205 ../fish/guestfish-actions.pod:1755
7423 msgid ""
7424 "This returns the product name of the inspected operating system.  The "
7425 "product name is generally some freeform string which can be displayed to the "
7426 "user, but should not be parsed by programs."
7427 msgstr ""
7428
7429 # type: textblock
7430 #: ../src/guestfs-actions.pod:2210 ../fish/guestfish-actions.pod:1760
7431 msgid ""
7432 "If the product name could not be determined, then the string C<unknown> is "
7433 "returned."
7434 msgstr ""
7435
7436 # type: =head2
7437 #: ../src/guestfs-actions.pod:2218
7438 msgid "guestfs_inspect_get_type"
7439 msgstr ""
7440
7441 # type: verbatim
7442 #: ../src/guestfs-actions.pod:2220
7443 #, no-wrap
7444 msgid ""
7445 " char *guestfs_inspect_get_type (guestfs_h *g,\n"
7446 "\t\tconst char *root);\n"
7447 "\n"
7448 msgstr ""
7449
7450 # type: textblock
7451 #: ../src/guestfs-actions.pod:2226 ../fish/guestfish-actions.pod:1772
7452 msgid ""
7453 "This returns the type of the inspected operating system.  Currently defined "
7454 "types are:"
7455 msgstr ""
7456
7457 # type: =item
7458 #: ../src/guestfs-actions.pod:2231 ../fish/guestfish-actions.pod:1777
7459 msgid "\"linux\""
7460 msgstr ""
7461
7462 # type: textblock
7463 #: ../src/guestfs-actions.pod:2233 ../fish/guestfish-actions.pod:1779
7464 msgid "Any Linux-based operating system."
7465 msgstr ""
7466
7467 # type: textblock
7468 #: ../src/guestfs-actions.pod:2237 ../fish/guestfish-actions.pod:1783
7469 msgid "Any Microsoft Windows operating system."
7470 msgstr ""
7471
7472 # type: textblock
7473 #: ../src/guestfs-actions.pod:2241 ../fish/guestfish-actions.pod:1787
7474 msgid "The operating system type could not be determined."
7475 msgstr ""
7476
7477 # type: =head2
7478 #: ../src/guestfs-actions.pod:2253
7479 msgid "guestfs_inspect_os"
7480 msgstr ""
7481
7482 # type: verbatim
7483 #: ../src/guestfs-actions.pod:2255
7484 #, no-wrap
7485 msgid ""
7486 " char **guestfs_inspect_os (guestfs_h *g);\n"
7487 "\n"
7488 msgstr ""
7489
7490 # type: textblock
7491 #: ../src/guestfs-actions.pod:2257 ../fish/guestfish-actions.pod:1800
7492 msgid ""
7493 "This function uses other libguestfs functions and certain heuristics to "
7494 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
7495 "for operating systems."
7496 msgstr ""
7497
7498 # type: textblock
7499 #: ../src/guestfs-actions.pod:2261 ../fish/guestfish-actions.pod:1804
7500 msgid "The list returned is empty if no operating systems were found."
7501 msgstr ""
7502
7503 # type: textblock
7504 #: ../src/guestfs-actions.pod:2263 ../fish/guestfish-actions.pod:1806
7505 msgid ""
7506 "If one operating system was found, then this returns a list with a single "
7507 "element, which is the name of the root filesystem of this operating system.  "
7508 "It is also possible for this function to return a list containing more than "
7509 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
7510 "element being the root filesystem of one of the operating systems."
7511 msgstr ""
7512
7513 # type: textblock
7514 #: ../src/guestfs-actions.pod:2270
7515 msgid ""
7516 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
7517 "functions in order to query further information about each operating system, "
7518 "such as the name and version."
7519 msgstr ""
7520
7521 # type: textblock
7522 #: ../src/guestfs-actions.pod:2275
7523 msgid ""
7524 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
7525 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
7526 "the contents.  This should be called with no disks currently mounted.  The "
7527 "function may also use Augeas, so any existing Augeas handle will be closed."
7528 msgstr ""
7529
7530 # type: textblock
7531 #: ../src/guestfs-actions.pod:2281 ../fish/guestfish-actions.pod:1824
7532 msgid ""
7533 "This function cannot decrypt encrypted disks.  The caller must do that first "
7534 "(supplying the necessary keys) if the disk is encrypted."
7535 msgstr ""
7536
7537 # type: textblock
7538 #: ../src/guestfs-actions.pod:2287 ../src/guestfs-actions.pod:2492 ../src/guestfs-actions.pod:2548
7539 msgid "See also C<guestfs_list_filesystems>."
7540 msgstr ""
7541
7542 # type: =head2
7543 #: ../src/guestfs-actions.pod:2293
7544 msgid "guestfs_is_blockdev"
7545 msgstr ""
7546
7547 # type: verbatim
7548 #: ../src/guestfs-actions.pod:2295
7549 #, no-wrap
7550 msgid ""
7551 " int guestfs_is_blockdev (guestfs_h *g,\n"
7552 "\t\tconst char *path);\n"
7553 "\n"
7554 msgstr ""
7555
7556 # type: textblock
7557 #: ../src/guestfs-actions.pod:2298 ../fish/guestfish-actions.pod:1836
7558 msgid ""
7559 "This returns C<true> if and only if there is a block device with the given "
7560 "C<path> name."
7561 msgstr ""
7562
7563 # type: textblock
7564 #: ../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
7565 msgid "See also C<guestfs_stat>."
7566 msgstr ""
7567
7568 # type: =head2
7569 #: ../src/guestfs-actions.pod:2305
7570 msgid "guestfs_is_busy"
7571 msgstr ""
7572
7573 # type: verbatim
7574 #: ../src/guestfs-actions.pod:2307
7575 #, no-wrap
7576 msgid ""
7577 " int guestfs_is_busy (guestfs_h *g);\n"
7578 "\n"
7579 msgstr ""
7580
7581 # type: textblock
7582 #: ../src/guestfs-actions.pod:2309 ../fish/guestfish-actions.pod:1845
7583 msgid ""
7584 "This returns true iff this handle is busy processing a command (in the "
7585 "C<BUSY> state)."
7586 msgstr ""
7587
7588 # type: =head2
7589 #: ../src/guestfs-actions.pod:2316
7590 msgid "guestfs_is_chardev"
7591 msgstr ""
7592
7593 # type: verbatim
7594 #: ../src/guestfs-actions.pod:2318
7595 #, no-wrap
7596 msgid ""
7597 " int guestfs_is_chardev (guestfs_h *g,\n"
7598 "\t\tconst char *path);\n"
7599 "\n"
7600 msgstr ""
7601
7602 # type: textblock
7603 #: ../src/guestfs-actions.pod:2321 ../fish/guestfish-actions.pod:1854
7604 msgid ""
7605 "This returns C<true> if and only if there is a character device with the "
7606 "given C<path> name."
7607 msgstr ""
7608
7609 # type: =head2
7610 #: ../src/guestfs-actions.pod:2328
7611 msgid "guestfs_is_config"
7612 msgstr ""
7613
7614 # type: verbatim
7615 #: ../src/guestfs-actions.pod:2330
7616 #, no-wrap
7617 msgid ""
7618 " int guestfs_is_config (guestfs_h *g);\n"
7619 "\n"
7620 msgstr ""
7621
7622 # type: textblock
7623 #: ../src/guestfs-actions.pod:2332 ../fish/guestfish-actions.pod:1863
7624 msgid ""
7625 "This returns true iff this handle is being configured (in the C<CONFIG> "
7626 "state)."
7627 msgstr ""
7628
7629 # type: =head2
7630 #: ../src/guestfs-actions.pod:2339
7631 msgid "guestfs_is_dir"
7632 msgstr ""
7633
7634 # type: verbatim
7635 #: ../src/guestfs-actions.pod:2341
7636 #, no-wrap
7637 msgid ""
7638 " int guestfs_is_dir (guestfs_h *g,\n"
7639 "\t\tconst char *path);\n"
7640 "\n"
7641 msgstr ""
7642
7643 # type: textblock
7644 #: ../src/guestfs-actions.pod:2344 ../fish/guestfish-actions.pod:1872
7645 msgid ""
7646 "This returns C<true> if and only if there is a directory with the given "
7647 "C<path> name.  Note that it returns false for other objects like files."
7648 msgstr ""
7649
7650 # type: =head2
7651 #: ../src/guestfs-actions.pod:2352
7652 msgid "guestfs_is_fifo"
7653 msgstr ""
7654
7655 # type: verbatim
7656 #: ../src/guestfs-actions.pod:2354
7657 #, no-wrap
7658 msgid ""
7659 " int guestfs_is_fifo (guestfs_h *g,\n"
7660 "\t\tconst char *path);\n"
7661 "\n"
7662 msgstr ""
7663
7664 # type: textblock
7665 #: ../src/guestfs-actions.pod:2357 ../fish/guestfish-actions.pod:1882
7666 msgid ""
7667 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
7668 "given C<path> name."
7669 msgstr ""
7670
7671 # type: =head2
7672 #: ../src/guestfs-actions.pod:2364
7673 msgid "guestfs_is_file"
7674 msgstr ""
7675
7676 # type: verbatim
7677 #: ../src/guestfs-actions.pod:2366
7678 #, no-wrap
7679 msgid ""
7680 " int guestfs_is_file (guestfs_h *g,\n"
7681 "\t\tconst char *path);\n"
7682 "\n"
7683 msgstr ""
7684
7685 # type: textblock
7686 #: ../src/guestfs-actions.pod:2369 ../fish/guestfish-actions.pod:1891
7687 msgid ""
7688 "This returns C<true> if and only if there is a regular file with the given "
7689 "C<path> name.  Note that it returns false for other objects like "
7690 "directories."
7691 msgstr ""
7692
7693 # type: =head2
7694 #: ../src/guestfs-actions.pod:2377
7695 msgid "guestfs_is_launching"
7696 msgstr ""
7697
7698 # type: verbatim
7699 #: ../src/guestfs-actions.pod:2379
7700 #, no-wrap
7701 msgid ""
7702 " int guestfs_is_launching (guestfs_h *g);\n"
7703 "\n"
7704 msgstr ""
7705
7706 # type: textblock
7707 #: ../src/guestfs-actions.pod:2381 ../fish/guestfish-actions.pod:1901
7708 msgid ""
7709 "This returns true iff this handle is launching the subprocess (in the "
7710 "C<LAUNCHING> state)."
7711 msgstr ""
7712
7713 # type: =head2
7714 #: ../src/guestfs-actions.pod:2388
7715 msgid "guestfs_is_lv"
7716 msgstr ""
7717
7718 # type: verbatim
7719 #: ../src/guestfs-actions.pod:2390
7720 #, no-wrap
7721 msgid ""
7722 " int guestfs_is_lv (guestfs_h *g,\n"
7723 "\t\tconst char *device);\n"
7724 "\n"
7725 msgstr ""
7726
7727 # type: textblock
7728 #: ../src/guestfs-actions.pod:2393 ../fish/guestfish-actions.pod:1910
7729 msgid ""
7730 "This command tests whether C<device> is a logical volume, and returns true "
7731 "iff this is the case."
7732 msgstr ""
7733
7734 # type: =head2
7735 #: ../src/guestfs-actions.pod:2398
7736 msgid "guestfs_is_ready"
7737 msgstr ""
7738
7739 # type: verbatim
7740 #: ../src/guestfs-actions.pod:2400
7741 #, no-wrap
7742 msgid ""
7743 " int guestfs_is_ready (guestfs_h *g);\n"
7744 "\n"
7745 msgstr ""
7746
7747 # type: textblock
7748 #: ../src/guestfs-actions.pod:2402 ../fish/guestfish-actions.pod:1917
7749 msgid ""
7750 "This returns true iff this handle is ready to accept commands (in the "
7751 "C<READY> state)."
7752 msgstr ""
7753
7754 # type: =head2
7755 #: ../src/guestfs-actions.pod:2409
7756 msgid "guestfs_is_socket"
7757 msgstr ""
7758
7759 # type: verbatim
7760 #: ../src/guestfs-actions.pod:2411
7761 #, no-wrap
7762 msgid ""
7763 " int guestfs_is_socket (guestfs_h *g,\n"
7764 "\t\tconst char *path);\n"
7765 "\n"
7766 msgstr ""
7767
7768 # type: textblock
7769 #: ../src/guestfs-actions.pod:2414 ../fish/guestfish-actions.pod:1926
7770 msgid ""
7771 "This returns C<true> if and only if there is a Unix domain socket with the "
7772 "given C<path> name."
7773 msgstr ""
7774
7775 # type: =head2
7776 #: ../src/guestfs-actions.pod:2421
7777 msgid "guestfs_is_symlink"
7778 msgstr ""
7779
7780 # type: verbatim
7781 #: ../src/guestfs-actions.pod:2423
7782 #, no-wrap
7783 msgid ""
7784 " int guestfs_is_symlink (guestfs_h *g,\n"
7785 "\t\tconst char *path);\n"
7786 "\n"
7787 msgstr ""
7788
7789 # type: textblock
7790 #: ../src/guestfs-actions.pod:2426 ../fish/guestfish-actions.pod:1935
7791 msgid ""
7792 "This returns C<true> if and only if there is a symbolic link with the given "
7793 "C<path> name."
7794 msgstr ""
7795
7796 # type: =head2
7797 #: ../src/guestfs-actions.pod:2433
7798 msgid "guestfs_kill_subprocess"
7799 msgstr ""
7800
7801 # type: verbatim
7802 #: ../src/guestfs-actions.pod:2435
7803 #, no-wrap
7804 msgid ""
7805 " int guestfs_kill_subprocess (guestfs_h *g);\n"
7806 "\n"
7807 msgstr ""
7808
7809 # type: textblock
7810 #: ../src/guestfs-actions.pod:2437 ../fish/guestfish-actions.pod:1944
7811 msgid "This kills the qemu subprocess.  You should never need to call this."
7812 msgstr ""
7813
7814 # type: =head2
7815 #: ../src/guestfs-actions.pod:2441
7816 msgid "guestfs_launch"
7817 msgstr ""
7818
7819 # type: verbatim
7820 #: ../src/guestfs-actions.pod:2443
7821 #, no-wrap
7822 msgid ""
7823 " int guestfs_launch (guestfs_h *g);\n"
7824 "\n"
7825 msgstr ""
7826
7827 # type: textblock
7828 #: ../src/guestfs-actions.pod:2445 ../fish/guestfish-actions.pod:1952
7829 msgid ""
7830 "Internally libguestfs is implemented by running a virtual machine using "
7831 "L<qemu(1)>."
7832 msgstr ""
7833
7834 # type: textblock
7835 #: ../src/guestfs-actions.pod:2448 ../fish/guestfish-actions.pod:1955
7836 msgid ""
7837 "You should call this after configuring the handle (eg. adding drives) but "
7838 "before performing any actions."
7839 msgstr ""
7840
7841 # type: =head2
7842 #: ../src/guestfs-actions.pod:2453
7843 msgid "guestfs_lchown"
7844 msgstr ""
7845
7846 # type: verbatim
7847 #: ../src/guestfs-actions.pod:2455
7848 #, no-wrap
7849 msgid ""
7850 " int guestfs_lchown (guestfs_h *g,\n"
7851 "\t\tint owner,\n"
7852 "\t\tint group,\n"
7853 "\t\tconst char *path);\n"
7854 "\n"
7855 msgstr ""
7856
7857 # type: textblock
7858 #: ../src/guestfs-actions.pod:2460
7859 msgid ""
7860 "Change the file owner to C<owner> and group to C<group>.  This is like "
7861 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
7862 "changed, not the target."
7863 msgstr ""
7864
7865 # type: =head2
7866 #: ../src/guestfs-actions.pod:2470
7867 msgid "guestfs_lgetxattrs"
7868 msgstr ""
7869
7870 # type: verbatim
7871 #: ../src/guestfs-actions.pod:2472
7872 #, no-wrap
7873 msgid ""
7874 " struct guestfs_xattr_list *guestfs_lgetxattrs (guestfs_h *g,\n"
7875 "\t\tconst char *path);\n"
7876 "\n"
7877 msgstr ""
7878
7879 # type: textblock
7880 #: ../src/guestfs-actions.pod:2475
7881 msgid ""
7882 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
7883 "then it returns the extended attributes of the link itself."
7884 msgstr ""
7885
7886 # type: =head2
7887 #: ../src/guestfs-actions.pod:2484
7888 msgid "guestfs_list_devices"
7889 msgstr ""
7890
7891 # type: verbatim
7892 #: ../src/guestfs-actions.pod:2486
7893 #, no-wrap
7894 msgid ""
7895 " char **guestfs_list_devices (guestfs_h *g);\n"
7896 "\n"
7897 msgstr ""
7898
7899 # type: textblock
7900 #: ../src/guestfs-actions.pod:2488 ../fish/guestfish-actions.pod:1982
7901 msgid "List all the block devices."
7902 msgstr ""
7903
7904 # type: textblock
7905 #: ../src/guestfs-actions.pod:2490 ../fish/guestfish-actions.pod:1984
7906 msgid "The full block device names are returned, eg. C</dev/sda>."
7907 msgstr ""
7908
7909 # type: =head2
7910 #: ../src/guestfs-actions.pod:2498
7911 msgid "guestfs_list_filesystems"
7912 msgstr ""
7913
7914 # type: verbatim
7915 #: ../src/guestfs-actions.pod:2500
7916 #, no-wrap
7917 msgid ""
7918 " char **guestfs_list_filesystems (guestfs_h *g);\n"
7919 "\n"
7920 msgstr ""
7921
7922 # type: textblock
7923 #: ../src/guestfs-actions.pod:2502 ../fish/guestfish-actions.pod:1992
7924 msgid ""
7925 "This inspection command looks for filesystems on partitions, block devices "
7926 "and logical volumes, returning a list of devices containing filesystems and "
7927 "their type."
7928 msgstr ""
7929
7930 # type: textblock
7931 #: ../src/guestfs-actions.pod:2506 ../fish/guestfish-actions.pod:1996
7932 msgid ""
7933 "The return value is a hash, where the keys are the devices containing "
7934 "filesystems, and the values are the filesystem types.  For example:"
7935 msgstr ""
7936
7937 # type: verbatim
7938 #: ../src/guestfs-actions.pod:2510 ../fish/guestfish-actions.pod:2000
7939 #, no-wrap
7940 msgid ""
7941 " \"/dev/sda1\" => \"ntfs\"\n"
7942 " \"/dev/sda2\" => \"ext2\"\n"
7943 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
7944 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
7945 "\n"
7946 msgstr ""
7947
7948 # type: textblock
7949 #: ../src/guestfs-actions.pod:2515 ../fish/guestfish-actions.pod:2005
7950 msgid ""
7951 "The value can have the special value \"unknown\", meaning the content of the "
7952 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
7953 msgstr ""
7954
7955 # type: textblock
7956 #: ../src/guestfs-actions.pod:2519
7957 msgid ""
7958 "This command runs other libguestfs commands, which might include "
7959 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
7960 "soon after launch and only when nothing is mounted."
7961 msgstr ""
7962
7963 # type: textblock
7964 #: ../src/guestfs-actions.pod:2523
7965 msgid ""
7966 "Not all of the filesystems returned will be mountable.  In particular, swap "
7967 "partitions are returned in the list.  Also this command does not check that "
7968 "each filesystem found is valid and mountable, and some filesystems might be "
7969 "mountable but require special options.  Filesystems may not all belong to a "
7970 "single logical operating system (use C<guestfs_inspect_os> to look for "
7971 "OSes)."
7972 msgstr ""
7973
7974 # type: =head2
7975 #: ../src/guestfs-actions.pod:2537
7976 msgid "guestfs_list_partitions"
7977 msgstr ""
7978
7979 # type: verbatim
7980 #: ../src/guestfs-actions.pod:2539
7981 #, no-wrap
7982 msgid ""
7983 " char **guestfs_list_partitions (guestfs_h *g);\n"
7984 "\n"
7985 msgstr ""
7986
7987 # type: textblock
7988 #: ../src/guestfs-actions.pod:2541 ../fish/guestfish-actions.pod:2025
7989 msgid "List all the partitions detected on all block devices."
7990 msgstr ""
7991
7992 # type: textblock
7993 #: ../src/guestfs-actions.pod:2543 ../fish/guestfish-actions.pod:2027
7994 msgid "The full partition device names are returned, eg. C</dev/sda1>"
7995 msgstr ""
7996
7997 # type: textblock
7998 #: ../src/guestfs-actions.pod:2545
7999 msgid ""
8000 "This does not return logical volumes.  For that you will need to call "
8001 "C<guestfs_lvs>."
8002 msgstr ""
8003
8004 # type: =head2
8005 #: ../src/guestfs-actions.pod:2554
8006 msgid "guestfs_ll"
8007 msgstr ""
8008
8009 # type: verbatim
8010 #: ../src/guestfs-actions.pod:2556
8011 #, no-wrap
8012 msgid ""
8013 " char *guestfs_ll (guestfs_h *g,\n"
8014 "\t\tconst char *directory);\n"
8015 "\n"
8016 msgstr ""
8017
8018 # type: textblock
8019 #: ../src/guestfs-actions.pod:2559 ../fish/guestfish-actions.pod:2038
8020 msgid ""
8021 "List the files in C<directory> (relative to the root directory, there is no "
8022 "cwd) in the format of 'ls -la'."
8023 msgstr ""
8024
8025 # type: textblock
8026 #: ../src/guestfs-actions.pod:2562 ../fish/guestfish-actions.pod:2041
8027 msgid ""
8028 "This command is mostly useful for interactive sessions.  It is I<not> "
8029 "intended that you try to parse the output string."
8030 msgstr ""
8031
8032 # type: =head2
8033 #: ../src/guestfs-actions.pod:2568
8034 msgid "guestfs_ln"
8035 msgstr ""
8036
8037 # type: verbatim
8038 #: ../src/guestfs-actions.pod:2570
8039 #, no-wrap
8040 msgid ""
8041 " int guestfs_ln (guestfs_h *g,\n"
8042 "\t\tconst char *target,\n"
8043 "\t\tconst char *linkname);\n"
8044 "\n"
8045 msgstr ""
8046
8047 # type: textblock
8048 #: ../src/guestfs-actions.pod:2574 ../fish/guestfish-actions.pod:2048
8049 msgid "This command creates a hard link using the C<ln> command."
8050 msgstr ""
8051
8052 # type: =head2
8053 #: ../src/guestfs-actions.pod:2578
8054 msgid "guestfs_ln_f"
8055 msgstr ""
8056
8057 # type: verbatim
8058 #: ../src/guestfs-actions.pod:2580
8059 #, no-wrap
8060 msgid ""
8061 " int guestfs_ln_f (guestfs_h *g,\n"
8062 "\t\tconst char *target,\n"
8063 "\t\tconst char *linkname);\n"
8064 "\n"
8065 msgstr ""
8066
8067 # type: textblock
8068 #: ../src/guestfs-actions.pod:2584 ../fish/guestfish-actions.pod:2054
8069 msgid ""
8070 "This command creates a hard link using the C<ln -f> command.  The C<-f> "
8071 "option removes the link (C<linkname>) if it exists already."
8072 msgstr ""
8073
8074 # type: =head2
8075 #: ../src/guestfs-actions.pod:2589
8076 msgid "guestfs_ln_s"
8077 msgstr ""
8078
8079 # type: verbatim
8080 #: ../src/guestfs-actions.pod:2591
8081 #, no-wrap
8082 msgid ""
8083 " int guestfs_ln_s (guestfs_h *g,\n"
8084 "\t\tconst char *target,\n"
8085 "\t\tconst char *linkname);\n"
8086 "\n"
8087 msgstr ""
8088
8089 # type: textblock
8090 #: ../src/guestfs-actions.pod:2595 ../fish/guestfish-actions.pod:2061
8091 msgid "This command creates a symbolic link using the C<ln -s> command."
8092 msgstr ""
8093
8094 # type: =head2
8095 #: ../src/guestfs-actions.pod:2599
8096 msgid "guestfs_ln_sf"
8097 msgstr ""
8098
8099 # type: verbatim
8100 #: ../src/guestfs-actions.pod:2601
8101 #, no-wrap
8102 msgid ""
8103 " int guestfs_ln_sf (guestfs_h *g,\n"
8104 "\t\tconst char *target,\n"
8105 "\t\tconst char *linkname);\n"
8106 "\n"
8107 msgstr ""
8108
8109 # type: textblock
8110 #: ../src/guestfs-actions.pod:2605 ../fish/guestfish-actions.pod:2067
8111 msgid ""
8112 "This command creates a symbolic link using the C<ln -sf> command, The C<-f> "
8113 "option removes the link (C<linkname>) if it exists already."
8114 msgstr ""
8115
8116 # type: =head2
8117 #: ../src/guestfs-actions.pod:2610
8118 msgid "guestfs_lremovexattr"
8119 msgstr ""
8120
8121 # type: verbatim
8122 #: ../src/guestfs-actions.pod:2612
8123 #, no-wrap
8124 msgid ""
8125 " int guestfs_lremovexattr (guestfs_h *g,\n"
8126 "\t\tconst char *xattr,\n"
8127 "\t\tconst char *path);\n"
8128 "\n"
8129 msgstr ""
8130
8131 # type: textblock
8132 #: ../src/guestfs-actions.pod:2616
8133 msgid ""
8134 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
8135 "link, then it removes an extended attribute of the link itself."
8136 msgstr ""
8137
8138 # type: =head2
8139 #: ../src/guestfs-actions.pod:2622
8140 msgid "guestfs_ls"
8141 msgstr ""
8142
8143 # type: verbatim
8144 #: ../src/guestfs-actions.pod:2624
8145 #, no-wrap
8146 msgid ""
8147 " char **guestfs_ls (guestfs_h *g,\n"
8148 "\t\tconst char *directory);\n"
8149 "\n"
8150 msgstr ""
8151
8152 # type: textblock
8153 #: ../src/guestfs-actions.pod:2627 ../fish/guestfish-actions.pod:2082
8154 msgid ""
8155 "List the files in C<directory> (relative to the root directory, there is no "
8156 "cwd).  The '.' and '..' entries are not returned, but hidden files are "
8157 "shown."
8158 msgstr ""
8159
8160 # type: textblock
8161 #: ../src/guestfs-actions.pod:2631
8162 msgid ""
8163 "This command is mostly useful for interactive sessions.  Programs should "
8164 "probably use C<guestfs_readdir> instead."
8165 msgstr ""
8166
8167 # type: =head2
8168 #: ../src/guestfs-actions.pod:2638
8169 msgid "guestfs_lsetxattr"
8170 msgstr ""
8171
8172 # type: verbatim
8173 #: ../src/guestfs-actions.pod:2640
8174 #, no-wrap
8175 msgid ""
8176 " int guestfs_lsetxattr (guestfs_h *g,\n"
8177 "\t\tconst char *xattr,\n"
8178 "\t\tconst char *val,\n"
8179 "\t\tint vallen,\n"
8180 "\t\tconst char *path);\n"
8181 "\n"
8182 msgstr ""
8183
8184 # type: textblock
8185 #: ../src/guestfs-actions.pod:2646
8186 msgid ""
8187 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
8188 "then it sets an extended attribute of the link itself."
8189 msgstr ""
8190
8191 # type: =head2
8192 #: ../src/guestfs-actions.pod:2652
8193 msgid "guestfs_lstat"
8194 msgstr ""
8195
8196 # type: verbatim
8197 #: ../src/guestfs-actions.pod:2654
8198 #, no-wrap
8199 msgid ""
8200 " struct guestfs_stat *guestfs_lstat (guestfs_h *g,\n"
8201 "\t\tconst char *path);\n"
8202 "\n"
8203 msgstr ""
8204
8205 # type: textblock
8206 #: ../src/guestfs-actions.pod:2657 ../src/guestfs-actions.pod:4701 ../fish/guestfish-actions.pod:2101 ../fish/guestfish-actions.pod:3655
8207 msgid "Returns file information for the given C<path>."
8208 msgstr ""
8209
8210 # type: textblock
8211 #: ../src/guestfs-actions.pod:2659
8212 msgid ""
8213 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
8214 "link, then the link is stat-ed, not the file it refers to."
8215 msgstr ""
8216
8217 # type: textblock
8218 #: ../src/guestfs-actions.pod:2663 ../fish/guestfish-actions.pod:2107
8219 msgid "This is the same as the C<lstat(2)> system call."
8220 msgstr ""
8221
8222 # type: textblock
8223 #: ../src/guestfs-actions.pod:2665 ../src/guestfs-actions.pod:4705
8224 msgid ""
8225 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
8226 "error.  I<The caller must call C<guestfs_free_stat> after use>."
8227 msgstr ""
8228
8229 # type: =head2
8230 #: ../src/guestfs-actions.pod:2669
8231 msgid "guestfs_lstatlist"
8232 msgstr ""
8233
8234 # type: verbatim
8235 #: ../src/guestfs-actions.pod:2671
8236 #, no-wrap
8237 msgid ""
8238 " struct guestfs_stat_list *guestfs_lstatlist (guestfs_h *g,\n"
8239 "\t\tconst char *path,\n"
8240 "\t\tchar *const *names);\n"
8241 "\n"
8242 msgstr ""
8243
8244 # type: textblock
8245 #: ../src/guestfs-actions.pod:2675
8246 msgid ""
8247 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
8248 "files, where all files are in the directory C<path>.  C<names> is the list "
8249 "of files from this directory."
8250 msgstr ""
8251
8252 # type: textblock
8253 #: ../src/guestfs-actions.pod:2679 ../fish/guestfish-actions.pod:2117
8254 msgid ""
8255 "On return you get a list of stat structs, with a one-to-one correspondence "
8256 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
8257 "then the C<ino> field of that structure is set to C<-1>."
8258 msgstr ""
8259
8260 # type: textblock
8261 #: ../src/guestfs-actions.pod:2684
8262 msgid ""
8263 "This call is intended for programs that want to efficiently list a directory "
8264 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
8265 "for a similarly efficient call for getting extended attributes.  Very long "
8266 "directory listings might cause the protocol message size to be exceeded, "
8267 "causing this call to fail.  The caller must split up such requests into "
8268 "smaller groups of names."
8269 msgstr ""
8270
8271 # type: textblock
8272 #: ../src/guestfs-actions.pod:2692
8273 msgid ""
8274 "This function returns a C<struct guestfs_stat_list *> (see "
8275 "E<lt>guestfs-structs.hE<gt>), or NULL if there was an error.  I<The caller "
8276 "must call C<guestfs_free_stat_list> after use>."
8277 msgstr ""
8278
8279 # type: =head2
8280 #: ../src/guestfs-actions.pod:2697
8281 msgid "guestfs_luks_add_key"
8282 msgstr ""
8283
8284 # type: verbatim
8285 #: ../src/guestfs-actions.pod:2699
8286 #, no-wrap
8287 msgid ""
8288 " int guestfs_luks_add_key (guestfs_h *g,\n"
8289 "\t\tconst char *device,\n"
8290 "\t\tconst char *key,\n"
8291 "\t\tconst char *newkey,\n"
8292 "\t\tint keyslot);\n"
8293 "\n"
8294 msgstr ""
8295
8296 # type: textblock
8297 #: ../src/guestfs-actions.pod:2705 ../fish/guestfish-actions.pod:2134
8298 msgid ""
8299 "This command adds a new key on LUKS device C<device>.  C<key> is any "
8300 "existing key, and is used to access the device.  C<newkey> is the new key to "
8301 "add.  C<keyslot> is the key slot that will be replaced."
8302 msgstr ""
8303
8304 # type: textblock
8305 #: ../src/guestfs-actions.pod:2710
8306 msgid ""
8307 "Note that if C<keyslot> already contains a key, then this command will "
8308 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
8309 msgstr ""
8310
8311 # type: textblock
8312 #: ../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
8313 msgid ""
8314 "This function takes a key or passphrase parameter which could contain "
8315 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
8316 "information."
8317 msgstr ""
8318
8319 # type: =head2
8320 #: ../src/guestfs-actions.pod:2720
8321 msgid "guestfs_luks_close"
8322 msgstr ""
8323
8324 # type: verbatim
8325 #: ../src/guestfs-actions.pod:2722
8326 #, no-wrap
8327 msgid ""
8328 " int guestfs_luks_close (guestfs_h *g,\n"
8329 "\t\tconst char *device);\n"
8330 "\n"
8331 msgstr ""
8332
8333 # type: textblock
8334 #: ../src/guestfs-actions.pod:2725
8335 msgid ""
8336 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
8337 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
8338 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
8339 "underlying block device."
8340 msgstr ""
8341
8342 # type: =head2
8343 #: ../src/guestfs-actions.pod:2733
8344 msgid "guestfs_luks_format"
8345 msgstr ""
8346
8347 # type: verbatim
8348 #: ../src/guestfs-actions.pod:2735
8349 #, no-wrap
8350 msgid ""
8351 " int guestfs_luks_format (guestfs_h *g,\n"
8352 "\t\tconst char *device,\n"
8353 "\t\tconst char *key,\n"
8354 "\t\tint keyslot);\n"
8355 "\n"
8356 msgstr ""
8357
8358 # type: textblock
8359 #: ../src/guestfs-actions.pod:2740 ../fish/guestfish-actions.pod:2160
8360 msgid ""
8361 "This command erases existing data on C<device> and formats the device as a "
8362 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
8363 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
8364 msgstr ""
8365
8366 # type: textblock
8367 #: ../src/guestfs-actions.pod:2747 ../src/guestfs-actions.pod:2767 ../src/guestfs-actions.pod:2869 ../src/guestfs-actions.pod:3581 ../src/guestfs-actions.pod:4242 ../src/guestfs-actions.pod:4563 ../src/guestfs-actions.pod:4583 ../src/guestfs-actions.pod:4606 ../src/guestfs-actions.pod:5571 ../fish/guestfish-actions.pod:2168 ../fish/guestfish-actions.pod:2181 ../fish/guestfish-actions.pod:2252 ../fish/guestfish-actions.pod:2767 ../fish/guestfish-actions.pod:3274 ../fish/guestfish-actions.pod:3554 ../fish/guestfish-actions.pod:3570 ../fish/guestfish-actions.pod:3585 ../fish/guestfish-actions.pod:4300
8368 msgid ""
8369 "B<This command is dangerous.  Without careful use you can easily destroy all "
8370 "your data>."
8371 msgstr ""
8372
8373 # type: =head2
8374 #: ../src/guestfs-actions.pod:2754
8375 msgid "guestfs_luks_format_cipher"
8376 msgstr ""
8377
8378 # type: verbatim
8379 #: ../src/guestfs-actions.pod:2756
8380 #, no-wrap
8381 msgid ""
8382 " int guestfs_luks_format_cipher (guestfs_h *g,\n"
8383 "\t\tconst char *device,\n"
8384 "\t\tconst char *key,\n"
8385 "\t\tint keyslot,\n"
8386 "\t\tconst char *cipher);\n"
8387 "\n"
8388 msgstr ""
8389
8390 # type: textblock
8391 #: ../src/guestfs-actions.pod:2762
8392 msgid ""
8393 "This command is the same as C<guestfs_luks_format> but it also allows you to "
8394 "set the C<cipher> used."
8395 msgstr ""
8396
8397 # type: =head2
8398 #: ../src/guestfs-actions.pod:2774
8399 msgid "guestfs_luks_kill_slot"
8400 msgstr ""
8401
8402 # type: verbatim
8403 #: ../src/guestfs-actions.pod:2776
8404 #, no-wrap
8405 msgid ""
8406 " int guestfs_luks_kill_slot (guestfs_h *g,\n"
8407 "\t\tconst char *device,\n"
8408 "\t\tconst char *key,\n"
8409 "\t\tint keyslot);\n"
8410 "\n"
8411 msgstr ""
8412
8413 # type: textblock
8414 #: ../src/guestfs-actions.pod:2781 ../fish/guestfish-actions.pod:2188
8415 msgid ""
8416 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
8417 "device C<device>.  C<key> must be one of the I<other> keys."
8418 msgstr ""
8419
8420 # type: =head2
8421 #: ../src/guestfs-actions.pod:2791
8422 msgid "guestfs_luks_open"
8423 msgstr ""
8424
8425 # type: verbatim
8426 #: ../src/guestfs-actions.pod:2793
8427 #, no-wrap
8428 msgid ""
8429 " int guestfs_luks_open (guestfs_h *g,\n"
8430 "\t\tconst char *device,\n"
8431 "\t\tconst char *key,\n"
8432 "\t\tconst char *mapname);\n"
8433 "\n"
8434 msgstr ""
8435
8436 # type: textblock
8437 #: ../src/guestfs-actions.pod:2798 ../fish/guestfish-actions.pod:2199
8438 msgid ""
8439 "This command opens a block device which has been encrypted according to the "
8440 "Linux Unified Key Setup (LUKS) standard."
8441 msgstr ""
8442
8443 # type: textblock
8444 #: ../src/guestfs-actions.pod:2801 ../fish/guestfish-actions.pod:2202
8445 msgid "C<device> is the encrypted block device or partition."
8446 msgstr ""
8447
8448 # type: textblock
8449 #: ../src/guestfs-actions.pod:2803 ../fish/guestfish-actions.pod:2204
8450 msgid ""
8451 "The caller must supply one of the keys associated with the LUKS block "
8452 "device, in the C<key> parameter."
8453 msgstr ""
8454
8455 # type: textblock
8456 #: ../src/guestfs-actions.pod:2806 ../fish/guestfish-actions.pod:2207
8457 msgid ""
8458 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
8459 "writes to this block device are decrypted from and encrypted to the "
8460 "underlying C<device> respectively."
8461 msgstr ""
8462
8463 # type: textblock
8464 #: ../src/guestfs-actions.pod:2810
8465 msgid ""
8466 "If this block device contains LVM volume groups, then calling "
8467 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
8468 "visible."
8469 msgstr ""
8470
8471 # type: =head2
8472 #: ../src/guestfs-actions.pod:2820
8473 msgid "guestfs_luks_open_ro"
8474 msgstr ""
8475
8476 # type: verbatim
8477 #: ../src/guestfs-actions.pod:2822
8478 #, no-wrap
8479 msgid ""
8480 " int guestfs_luks_open_ro (guestfs_h *g,\n"
8481 "\t\tconst char *device,\n"
8482 "\t\tconst char *key,\n"
8483 "\t\tconst char *mapname);\n"
8484 "\n"
8485 msgstr ""
8486
8487 # type: textblock
8488 #: ../src/guestfs-actions.pod:2827
8489 msgid ""
8490 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
8491 "created."
8492 msgstr ""
8493
8494 # type: =head2
8495 #: ../src/guestfs-actions.pod:2836
8496 msgid "guestfs_lvcreate"
8497 msgstr ""
8498
8499 # type: verbatim
8500 #: ../src/guestfs-actions.pod:2838
8501 #, no-wrap
8502 msgid ""
8503 " int guestfs_lvcreate (guestfs_h *g,\n"
8504 "\t\tconst char *logvol,\n"
8505 "\t\tconst char *volgroup,\n"
8506 "\t\tint mbytes);\n"
8507 "\n"
8508 msgstr ""
8509
8510 # type: textblock
8511 #: ../src/guestfs-actions.pod:2843 ../fish/guestfish-actions.pod:2232
8512 msgid ""
8513 "This creates an LVM logical volume called C<logvol> on the volume group "
8514 "C<volgroup>, with C<size> megabytes."
8515 msgstr ""
8516
8517 # type: =head2
8518 #: ../src/guestfs-actions.pod:2848
8519 msgid "guestfs_lvm_clear_filter"
8520 msgstr ""
8521
8522 # type: verbatim
8523 #: ../src/guestfs-actions.pod:2850
8524 #, no-wrap
8525 msgid ""
8526 " int guestfs_lvm_clear_filter (guestfs_h *g);\n"
8527 "\n"
8528 msgstr ""
8529
8530 # type: textblock
8531 #: ../src/guestfs-actions.pod:2852
8532 msgid ""
8533 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
8534 "see every block device."
8535 msgstr ""
8536
8537 # type: textblock
8538 #: ../src/guestfs-actions.pod:2855 ../src/guestfs-actions.pod:2891 ../fish/guestfish-actions.pod:2242 ../fish/guestfish-actions.pod:2273
8539 msgid "This command also clears the LVM cache and performs a volume group scan."
8540 msgstr ""
8541
8542 # type: =head2
8543 #: ../src/guestfs-actions.pod:2860
8544 msgid "guestfs_lvm_remove_all"
8545 msgstr ""
8546
8547 # type: verbatim
8548 #: ../src/guestfs-actions.pod:2862
8549 #, no-wrap
8550 msgid ""
8551 " int guestfs_lvm_remove_all (guestfs_h *g);\n"
8552 "\n"
8553 msgstr ""
8554
8555 # type: textblock
8556 #: ../src/guestfs-actions.pod:2864 ../fish/guestfish-actions.pod:2249
8557 msgid ""
8558 "This command removes all LVM logical volumes, volume groups and physical "
8559 "volumes."
8560 msgstr ""
8561
8562 # type: =head2
8563 #: ../src/guestfs-actions.pod:2872
8564 msgid "guestfs_lvm_set_filter"
8565 msgstr ""
8566
8567 # type: verbatim
8568 #: ../src/guestfs-actions.pod:2874
8569 #, no-wrap
8570 msgid ""
8571 " int guestfs_lvm_set_filter (guestfs_h *g,\n"
8572 "\t\tchar *const *devices);\n"
8573 "\n"
8574 msgstr ""
8575
8576 # type: textblock
8577 #: ../src/guestfs-actions.pod:2877 ../fish/guestfish-actions.pod:2259
8578 msgid ""
8579 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
8580 "block devices in the list C<devices>, and will ignore all other attached "
8581 "block devices."
8582 msgstr ""
8583
8584 # type: textblock
8585 #: ../src/guestfs-actions.pod:2881 ../fish/guestfish-actions.pod:2263
8586 msgid ""
8587 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
8588 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
8589 "there are two types of duplication possible: either cloned PVs/VGs which "
8590 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
8591 "same name.  In normal operation you cannot create this situation, but you "
8592 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
8593 "inside the LVM metadata."
8594 msgstr ""
8595
8596 # type: textblock
8597 #: ../src/guestfs-actions.pod:2894 ../fish/guestfish-actions.pod:2276
8598 msgid "You can filter whole block devices or individual partitions."
8599 msgstr ""
8600
8601 # type: textblock
8602 #: ../src/guestfs-actions.pod:2896 ../fish/guestfish-actions.pod:2278
8603 msgid ""
8604 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
8605 "filesystem), even if you are not filtering out that VG."
8606 msgstr ""
8607
8608 # type: =head2
8609 #: ../src/guestfs-actions.pod:2902
8610 msgid "guestfs_lvremove"
8611 msgstr ""
8612
8613 # type: verbatim
8614 #: ../src/guestfs-actions.pod:2904
8615 #, no-wrap
8616 msgid ""
8617 " int guestfs_lvremove (guestfs_h *g,\n"
8618 "\t\tconst char *device);\n"
8619 "\n"
8620 msgstr ""
8621
8622 # type: textblock
8623 #: ../src/guestfs-actions.pod:2907 ../fish/guestfish-actions.pod:2286
8624 msgid ""
8625 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
8626 "LV, such as C</dev/VG/LV>."
8627 msgstr ""
8628
8629 # type: textblock
8630 #: ../src/guestfs-actions.pod:2910 ../fish/guestfish-actions.pod:2289
8631 msgid ""
8632 "You can also remove all LVs in a volume group by specifying the VG name, "
8633 "C</dev/VG>."
8634 msgstr ""
8635
8636 # type: =head2
8637 #: ../src/guestfs-actions.pod:2915
8638 msgid "guestfs_lvrename"
8639 msgstr ""
8640
8641 # type: verbatim
8642 #: ../src/guestfs-actions.pod:2917
8643 #, no-wrap
8644 msgid ""
8645 " int guestfs_lvrename (guestfs_h *g,\n"
8646 "\t\tconst char *logvol,\n"
8647 "\t\tconst char *newlogvol);\n"
8648 "\n"
8649 msgstr ""
8650
8651 # type: textblock
8652 #: ../src/guestfs-actions.pod:2921 ../fish/guestfish-actions.pod:2296
8653 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
8654 msgstr ""
8655
8656 # type: =head2
8657 #: ../src/guestfs-actions.pod:2925
8658 msgid "guestfs_lvresize"
8659 msgstr ""
8660
8661 # type: verbatim
8662 #: ../src/guestfs-actions.pod:2927
8663 #, no-wrap
8664 msgid ""
8665 " int guestfs_lvresize (guestfs_h *g,\n"
8666 "\t\tconst char *device,\n"
8667 "\t\tint mbytes);\n"
8668 "\n"
8669 msgstr ""
8670
8671 # type: textblock
8672 #: ../src/guestfs-actions.pod:2931 ../fish/guestfish-actions.pod:2302
8673 msgid ""
8674 "This resizes (expands or shrinks) an existing LVM logical volume to "
8675 "C<mbytes>.  When reducing, data in the reduced part is lost."
8676 msgstr ""
8677
8678 # type: =head2
8679 #: ../src/guestfs-actions.pod:2937
8680 msgid "guestfs_lvresize_free"
8681 msgstr ""
8682
8683 # type: verbatim
8684 #: ../src/guestfs-actions.pod:2939
8685 #, no-wrap
8686 msgid ""
8687 " int guestfs_lvresize_free (guestfs_h *g,\n"
8688 "\t\tconst char *lv,\n"
8689 "\t\tint percent);\n"
8690 "\n"
8691 msgstr ""
8692
8693 # type: textblock
8694 #: ../src/guestfs-actions.pod:2943 ../fish/guestfish-actions.pod:2310
8695 msgid ""
8696 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
8697 "remaining free space in the volume group.  Commonly you would call this with "
8698 "pc = 100 which expands the logical volume as much as possible, using all "
8699 "remaining free space in the volume group."
8700 msgstr ""
8701
8702 # type: =head2
8703 #: ../src/guestfs-actions.pod:2951
8704 msgid "guestfs_lvs"
8705 msgstr ""
8706
8707 # type: verbatim
8708 #: ../src/guestfs-actions.pod:2953
8709 #, no-wrap
8710 msgid ""
8711 " char **guestfs_lvs (guestfs_h *g);\n"
8712 "\n"
8713 msgstr ""
8714
8715 # type: textblock
8716 #: ../src/guestfs-actions.pod:2955 ../fish/guestfish-actions.pod:2320
8717 msgid ""
8718 "List all the logical volumes detected.  This is the equivalent of the "
8719 "L<lvs(8)> command."
8720 msgstr ""
8721
8722 # type: textblock
8723 #: ../src/guestfs-actions.pod:2958 ../fish/guestfish-actions.pod:2323
8724 msgid ""
8725 "This returns a list of the logical volume device names "
8726 "(eg. C</dev/VolGroup00/LogVol00>)."
8727 msgstr ""
8728
8729 # type: textblock
8730 #: ../src/guestfs-actions.pod:2961
8731 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
8732 msgstr ""
8733
8734 # type: =head2
8735 #: ../src/guestfs-actions.pod:2967
8736 msgid "guestfs_lvs_full"
8737 msgstr ""
8738
8739 # type: verbatim
8740 #: ../src/guestfs-actions.pod:2969
8741 #, no-wrap
8742 msgid ""
8743 " struct guestfs_lvm_lv_list *guestfs_lvs_full (guestfs_h *g);\n"
8744 "\n"
8745 msgstr ""
8746
8747 # type: textblock
8748 #: ../src/guestfs-actions.pod:2971 ../fish/guestfish-actions.pod:2332
8749 msgid ""
8750 "List all the logical volumes detected.  This is the equivalent of the "
8751 "L<lvs(8)> command.  The \"full\" version includes all fields."
8752 msgstr ""
8753
8754 # type: textblock
8755 #: ../src/guestfs-actions.pod:2974
8756 msgid ""
8757 "This function returns a C<struct guestfs_lvm_lv_list *> (see "
8758 "E<lt>guestfs-structs.hE<gt>), or NULL if there was an error.  I<The caller "
8759 "must call C<guestfs_free_lvm_lv_list> after use>."
8760 msgstr ""
8761
8762 # type: =head2
8763 #: ../src/guestfs-actions.pod:2979
8764 msgid "guestfs_lvuuid"
8765 msgstr ""
8766
8767 # type: verbatim
8768 #: ../src/guestfs-actions.pod:2981
8769 #, no-wrap
8770 msgid ""
8771 " char *guestfs_lvuuid (guestfs_h *g,\n"
8772 "\t\tconst char *device);\n"
8773 "\n"
8774 msgstr ""
8775
8776 # type: textblock
8777 #: ../src/guestfs-actions.pod:2984 ../fish/guestfish-actions.pod:2339
8778 msgid "This command returns the UUID of the LVM LV C<device>."
8779 msgstr ""
8780
8781 # type: =head2
8782 #: ../src/guestfs-actions.pod:2989
8783 msgid "guestfs_lxattrlist"
8784 msgstr ""
8785
8786 # type: verbatim
8787 #: ../src/guestfs-actions.pod:2991
8788 #, no-wrap
8789 msgid ""
8790 " struct guestfs_xattr_list *guestfs_lxattrlist (guestfs_h *g,\n"
8791 "\t\tconst char *path,\n"
8792 "\t\tchar *const *names);\n"
8793 "\n"
8794 msgstr ""
8795
8796 # type: textblock
8797 #: ../src/guestfs-actions.pod:2995 ../fish/guestfish-actions.pod:2345
8798 msgid ""
8799 "This call allows you to get the extended attributes of multiple files, where "
8800 "all files are in the directory C<path>.  C<names> is the list of files from "
8801 "this directory."
8802 msgstr ""
8803
8804 # type: textblock
8805 #: ../src/guestfs-actions.pod:2999 ../fish/guestfish-actions.pod:2349
8806 msgid ""
8807 "On return you get a flat list of xattr structs which must be interpreted "
8808 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
8809 "C<attrval> in this struct is zero-length to indicate there was an error "
8810 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
8811 "number (the number of following attributes for this file, which could be "
8812 "C<\"0\">).  Then after the first xattr struct are the zero or more "
8813 "attributes for the first named file.  This repeats for the second and "
8814 "subsequent files."
8815 msgstr ""
8816
8817 # type: textblock
8818 #: ../src/guestfs-actions.pod:3009
8819 msgid ""
8820 "This call is intended for programs that want to efficiently list a directory "
8821 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
8822 "a similarly efficient call for getting standard stats.  Very long directory "
8823 "listings might cause the protocol message size to be exceeded, causing this "
8824 "call to fail.  The caller must split up such requests into smaller groups of "
8825 "names."
8826 msgstr ""
8827
8828 # type: =head2
8829 #: ../src/guestfs-actions.pod:3022
8830 msgid "guestfs_mkdir"
8831 msgstr ""
8832
8833 # type: verbatim
8834 #: ../src/guestfs-actions.pod:3024
8835 #, no-wrap
8836 msgid ""
8837 " int guestfs_mkdir (guestfs_h *g,\n"
8838 "\t\tconst char *path);\n"
8839 "\n"
8840 msgstr ""
8841
8842 # type: textblock
8843 #: ../src/guestfs-actions.pod:3027 ../fish/guestfish-actions.pod:2371
8844 msgid "Create a directory named C<path>."
8845 msgstr ""
8846
8847 # type: =head2
8848 #: ../src/guestfs-actions.pod:3031
8849 msgid "guestfs_mkdir_mode"
8850 msgstr ""
8851
8852 # type: verbatim
8853 #: ../src/guestfs-actions.pod:3033
8854 #, no-wrap
8855 msgid ""
8856 " int guestfs_mkdir_mode (guestfs_h *g,\n"
8857 "\t\tconst char *path,\n"
8858 "\t\tint mode);\n"
8859 "\n"
8860 msgstr ""
8861
8862 # type: textblock
8863 #: ../src/guestfs-actions.pod:3037 ../fish/guestfish-actions.pod:2377
8864 msgid ""
8865 "This command creates a directory, setting the initial permissions of the "
8866 "directory to C<mode>."
8867 msgstr ""
8868
8869 # type: textblock
8870 #: ../src/guestfs-actions.pod:3040 ../fish/guestfish-actions.pod:2380
8871 msgid ""
8872 "For common Linux filesystems, the actual mode which is set will be C<mode & "
8873 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
8874 "other ways."
8875 msgstr ""
8876
8877 # type: textblock
8878 #: ../src/guestfs-actions.pod:3044
8879 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
8880 msgstr ""
8881
8882 # type: =head2
8883 #: ../src/guestfs-actions.pod:3048
8884 msgid "guestfs_mkdir_p"
8885 msgstr ""
8886
8887 # type: verbatim
8888 #: ../src/guestfs-actions.pod:3050
8889 #, no-wrap
8890 msgid ""
8891 " int guestfs_mkdir_p (guestfs_h *g,\n"
8892 "\t\tconst char *path);\n"
8893 "\n"
8894 msgstr ""
8895
8896 # type: textblock
8897 #: ../src/guestfs-actions.pod:3053 ../fish/guestfish-actions.pod:2390
8898 msgid ""
8899 "Create a directory named C<path>, creating any parent directories as "
8900 "necessary.  This is like the C<mkdir -p> shell command."
8901 msgstr ""
8902
8903 # type: =head2
8904 #: ../src/guestfs-actions.pod:3058
8905 msgid "guestfs_mkdtemp"
8906 msgstr ""
8907
8908 # type: verbatim
8909 #: ../src/guestfs-actions.pod:3060
8910 #, no-wrap
8911 msgid ""
8912 " char *guestfs_mkdtemp (guestfs_h *g,\n"
8913 "\t\tconst char *template);\n"
8914 "\n"
8915 msgstr ""
8916
8917 # type: textblock
8918 #: ../src/guestfs-actions.pod:3063 ../fish/guestfish-actions.pod:2397
8919 msgid ""
8920 "This command creates a temporary directory.  The C<template> parameter "
8921 "should be a full pathname for the temporary directory name with the final "
8922 "six characters being \"XXXXXX\"."
8923 msgstr ""
8924
8925 # type: textblock
8926 #: ../src/guestfs-actions.pod:3068 ../fish/guestfish-actions.pod:2402
8927 msgid ""
8928 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
8929 "being suitable for Windows filesystems."
8930 msgstr ""
8931
8932 # type: textblock
8933 #: ../src/guestfs-actions.pod:3071 ../fish/guestfish-actions.pod:2405
8934 msgid "The name of the temporary directory that was created is returned."
8935 msgstr ""
8936
8937 # type: textblock
8938 #: ../src/guestfs-actions.pod:3074 ../fish/guestfish-actions.pod:2408
8939 msgid "The temporary directory is created with mode 0700 and is owned by root."
8940 msgstr ""
8941
8942 # type: textblock
8943 #: ../src/guestfs-actions.pod:3077 ../fish/guestfish-actions.pod:2411
8944 msgid ""
8945 "The caller is responsible for deleting the temporary directory and its "
8946 "contents after use."
8947 msgstr ""
8948
8949 # type: textblock
8950 #: ../src/guestfs-actions.pod:3080 ../fish/guestfish-actions.pod:2414
8951 msgid "See also: L<mkdtemp(3)>"
8952 msgstr ""
8953
8954 # type: =head2
8955 #: ../src/guestfs-actions.pod:3085
8956 msgid "guestfs_mke2fs_J"
8957 msgstr ""
8958
8959 # type: verbatim
8960 #: ../src/guestfs-actions.pod:3087
8961 #, no-wrap
8962 msgid ""
8963 " int guestfs_mke2fs_J (guestfs_h *g,\n"
8964 "\t\tconst char *fstype,\n"
8965 "\t\tint blocksize,\n"
8966 "\t\tconst char *device,\n"
8967 "\t\tconst char *journal);\n"
8968 "\n"
8969 msgstr ""
8970
8971 # type: textblock
8972 #: ../src/guestfs-actions.pod:3093 ../fish/guestfish-actions.pod:2420
8973 msgid ""
8974 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
8975 "C<journal>.  It is equivalent to the command:"
8976 msgstr ""
8977
8978 # type: verbatim
8979 #: ../src/guestfs-actions.pod:3097 ../fish/guestfish-actions.pod:2424
8980 #, no-wrap
8981 msgid ""
8982 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
8983 "\n"
8984 msgstr ""
8985
8986 # type: textblock
8987 #: ../src/guestfs-actions.pod:3099
8988 msgid "See also C<guestfs_mke2journal>."
8989 msgstr ""
8990
8991 # type: =head2
8992 #: ../src/guestfs-actions.pod:3103
8993 msgid "guestfs_mke2fs_JL"
8994 msgstr ""
8995
8996 # type: verbatim
8997 #: ../src/guestfs-actions.pod:3105
8998 #, no-wrap
8999 msgid ""
9000 " int guestfs_mke2fs_JL (guestfs_h *g,\n"
9001 "\t\tconst char *fstype,\n"
9002 "\t\tint blocksize,\n"
9003 "\t\tconst char *device,\n"
9004 "\t\tconst char *label);\n"
9005 "\n"
9006 msgstr ""
9007
9008 # type: textblock
9009 #: ../src/guestfs-actions.pod:3111 ../fish/guestfish-actions.pod:2432
9010 msgid ""
9011 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
9012 "the journal labeled C<label>."
9013 msgstr ""
9014
9015 # type: textblock
9016 #: ../src/guestfs-actions.pod:3114
9017 msgid "See also C<guestfs_mke2journal_L>."
9018 msgstr ""
9019
9020 # type: =head2
9021 #: ../src/guestfs-actions.pod:3118
9022 msgid "guestfs_mke2fs_JU"
9023 msgstr ""
9024
9025 # type: verbatim
9026 #: ../src/guestfs-actions.pod:3120
9027 #, no-wrap
9028 msgid ""
9029 " int guestfs_mke2fs_JU (guestfs_h *g,\n"
9030 "\t\tconst char *fstype,\n"
9031 "\t\tint blocksize,\n"
9032 "\t\tconst char *device,\n"
9033 "\t\tconst char *uuid);\n"
9034 "\n"
9035 msgstr ""
9036
9037 # type: textblock
9038 #: ../src/guestfs-actions.pod:3126 ../fish/guestfish-actions.pod:2441
9039 msgid ""
9040 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
9041 "the journal with UUID C<uuid>."
9042 msgstr ""
9043
9044 # type: textblock
9045 #: ../src/guestfs-actions.pod:3129
9046 msgid "See also C<guestfs_mke2journal_U>."
9047 msgstr ""
9048
9049 # type: =head2
9050 #: ../src/guestfs-actions.pod:3133
9051 msgid "guestfs_mke2journal"
9052 msgstr ""
9053
9054 # type: verbatim
9055 #: ../src/guestfs-actions.pod:3135
9056 #, no-wrap
9057 msgid ""
9058 " int guestfs_mke2journal (guestfs_h *g,\n"
9059 "\t\tint blocksize,\n"
9060 "\t\tconst char *device);\n"
9061 "\n"
9062 msgstr ""
9063
9064 # type: textblock
9065 #: ../src/guestfs-actions.pod:3139 ../fish/guestfish-actions.pod:2450
9066 msgid ""
9067 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
9068 "command:"
9069 msgstr ""
9070
9071 # type: verbatim
9072 #: ../src/guestfs-actions.pod:3142 ../fish/guestfish-actions.pod:2453
9073 #, no-wrap
9074 msgid ""
9075 " mke2fs -O journal_dev -b blocksize device\n"
9076 "\n"
9077 msgstr ""
9078
9079 # type: =head2
9080 #: ../src/guestfs-actions.pod:3146
9081 msgid "guestfs_mke2journal_L"
9082 msgstr ""
9083
9084 # type: verbatim
9085 #: ../src/guestfs-actions.pod:3148
9086 #, no-wrap
9087 msgid ""
9088 " int guestfs_mke2journal_L (guestfs_h *g,\n"
9089 "\t\tint blocksize,\n"
9090 "\t\tconst char *label,\n"
9091 "\t\tconst char *device);\n"
9092 "\n"
9093 msgstr ""
9094
9095 # type: textblock
9096 #: ../src/guestfs-actions.pod:3153 ../fish/guestfish-actions.pod:2459
9097 msgid "This creates an ext2 external journal on C<device> with label C<label>."
9098 msgstr ""
9099
9100 # type: =head2
9101 #: ../src/guestfs-actions.pod:3157
9102 msgid "guestfs_mke2journal_U"
9103 msgstr ""
9104
9105 # type: verbatim
9106 #: ../src/guestfs-actions.pod:3159
9107 #, no-wrap
9108 msgid ""
9109 " int guestfs_mke2journal_U (guestfs_h *g,\n"
9110 "\t\tint blocksize,\n"
9111 "\t\tconst char *uuid,\n"
9112 "\t\tconst char *device);\n"
9113 "\n"
9114 msgstr ""
9115
9116 # type: textblock
9117 #: ../src/guestfs-actions.pod:3164 ../fish/guestfish-actions.pod:2465
9118 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
9119 msgstr ""
9120
9121 # type: =head2
9122 #: ../src/guestfs-actions.pod:3168
9123 msgid "guestfs_mkfifo"
9124 msgstr ""
9125
9126 # type: verbatim
9127 #: ../src/guestfs-actions.pod:3170
9128 #, no-wrap
9129 msgid ""
9130 " int guestfs_mkfifo (guestfs_h *g,\n"
9131 "\t\tint mode,\n"
9132 "\t\tconst char *path);\n"
9133 "\n"
9134 msgstr ""
9135
9136 # type: textblock
9137 #: ../src/guestfs-actions.pod:3174
9138 msgid ""
9139 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
9140 "is just a convenient wrapper around C<guestfs_mknod>."
9141 msgstr ""
9142
9143 # type: =head2
9144 #: ../src/guestfs-actions.pod:3182
9145 msgid "guestfs_mkfs"
9146 msgstr ""
9147
9148 # type: verbatim
9149 #: ../src/guestfs-actions.pod:3184
9150 #, no-wrap
9151 msgid ""
9152 " int guestfs_mkfs (guestfs_h *g,\n"
9153 "\t\tconst char *fstype,\n"
9154 "\t\tconst char *device);\n"
9155 "\n"
9156 msgstr ""
9157
9158 # type: textblock
9159 #: ../src/guestfs-actions.pod:3188 ../fish/guestfish-actions.pod:2481
9160 msgid ""
9161 "This creates a filesystem on C<device> (usually a partition or LVM logical "
9162 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
9163 msgstr ""
9164
9165 # type: =head2
9166 #: ../src/guestfs-actions.pod:3194
9167 msgid "guestfs_mkfs_b"
9168 msgstr ""
9169
9170 # type: verbatim
9171 #: ../src/guestfs-actions.pod:3196
9172 #, no-wrap
9173 msgid ""
9174 " int guestfs_mkfs_b (guestfs_h *g,\n"
9175 "\t\tconst char *fstype,\n"
9176 "\t\tint blocksize,\n"
9177 "\t\tconst char *device);\n"
9178 "\n"
9179 msgstr ""
9180
9181 # type: textblock
9182 #: ../src/guestfs-actions.pod:3201
9183 msgid ""
9184 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
9185 "block size of the resulting filesystem.  Supported block sizes depend on the "
9186 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
9187 msgstr ""
9188
9189 # type: textblock
9190 #: ../src/guestfs-actions.pod:3206 ../fish/guestfish-actions.pod:2494
9191 msgid ""
9192 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
9193 "cluster size."
9194 msgstr ""
9195
9196 # type: =head2
9197 #: ../src/guestfs-actions.pod:3211
9198 msgid "guestfs_mkmountpoint"
9199 msgstr ""
9200
9201 # type: verbatim
9202 #: ../src/guestfs-actions.pod:3213
9203 #, no-wrap
9204 msgid ""
9205 " int guestfs_mkmountpoint (guestfs_h *g,\n"
9206 "\t\tconst char *exemptpath);\n"
9207 "\n"
9208 msgstr ""
9209
9210 # type: textblock
9211 #: ../src/guestfs-actions.pod:3216
9212 msgid ""
9213 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
9214 "that can be used to create extra mountpoints before mounting the first "
9215 "filesystem."
9216 msgstr ""
9217
9218 # type: textblock
9219 #: ../src/guestfs-actions.pod:3220 ../fish/guestfish-actions.pod:2505
9220 msgid ""
9221 "These calls are I<only> necessary in some very limited circumstances, mainly "
9222 "the case where you want to mount a mix of unrelated and/or read-only "
9223 "filesystems together."
9224 msgstr ""
9225
9226 # type: textblock
9227 #: ../src/guestfs-actions.pod:3224 ../fish/guestfish-actions.pod:2509
9228 msgid ""
9229 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
9230 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
9231 "inside that.  You can unpack this as follows in guestfish:"
9232 msgstr ""
9233
9234 # type: verbatim
9235 #: ../src/guestfs-actions.pod:3229 ../fish/guestfish-actions.pod:2514
9236 #, no-wrap
9237 msgid ""
9238 " add-ro Fedora-11-i686-Live.iso\n"
9239 " run\n"
9240 " mkmountpoint /cd\n"
9241 " mkmountpoint /squash\n"
9242 " mkmountpoint /ext3\n"
9243 " mount /dev/sda /cd\n"
9244 " mount-loop /cd/LiveOS/squashfs.img /squash\n"
9245 " mount-loop /squash/LiveOS/ext3fs.img /ext3\n"
9246 "\n"
9247 msgstr ""
9248
9249 # type: textblock
9250 #: ../src/guestfs-actions.pod:3238 ../fish/guestfish-actions.pod:2523
9251 msgid "The inner filesystem is now unpacked under the /ext3 mountpoint."
9252 msgstr ""
9253
9254 # type: =head2
9255 #: ../src/guestfs-actions.pod:3242
9256 msgid "guestfs_mknod"
9257 msgstr ""
9258
9259 # type: verbatim
9260 #: ../src/guestfs-actions.pod:3244
9261 #, no-wrap
9262 msgid ""
9263 " int guestfs_mknod (guestfs_h *g,\n"
9264 "\t\tint mode,\n"
9265 "\t\tint devmajor,\n"
9266 "\t\tint devminor,\n"
9267 "\t\tconst char *path);\n"
9268 "\n"
9269 msgstr ""
9270
9271 # type: textblock
9272 #: ../src/guestfs-actions.pod:3250 ../fish/guestfish-actions.pod:2529
9273 msgid ""
9274 "This call creates block or character special devices, or named pipes "
9275 "(FIFOs)."
9276 msgstr ""
9277
9278 # type: textblock
9279 #: ../src/guestfs-actions.pod:3253 ../fish/guestfish-actions.pod:2532
9280 msgid ""
9281 "The C<mode> parameter should be the mode, using the standard constants.  "
9282 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
9283 "used when creating block and character special devices."
9284 msgstr ""
9285
9286 # type: textblock
9287 #: ../src/guestfs-actions.pod:3258
9288 msgid ""
9289 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
9290 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
9291 "regular file).  These constants are available in the standard Linux header "
9292 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
9293 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
9294 "the appropriate constant for you."
9295 msgstr ""
9296
9297 # type: =head2
9298 #: ../src/guestfs-actions.pod:3270
9299 msgid "guestfs_mknod_b"
9300 msgstr ""
9301
9302 # type: verbatim
9303 #: ../src/guestfs-actions.pod:3272
9304 #, no-wrap
9305 msgid ""
9306 " int guestfs_mknod_b (guestfs_h *g,\n"
9307 "\t\tint mode,\n"
9308 "\t\tint devmajor,\n"
9309 "\t\tint devminor,\n"
9310 "\t\tconst char *path);\n"
9311 "\n"
9312 msgstr ""
9313
9314 # type: textblock
9315 #: ../src/guestfs-actions.pod:3278
9316 msgid ""
9317 "This call creates a block device node called C<path> with mode C<mode> and "
9318 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
9319 "wrapper around C<guestfs_mknod>."
9320 msgstr ""
9321
9322 # type: =head2
9323 #: ../src/guestfs-actions.pod:3286
9324 msgid "guestfs_mknod_c"
9325 msgstr ""
9326
9327 # type: verbatim
9328 #: ../src/guestfs-actions.pod:3288
9329 #, no-wrap
9330 msgid ""
9331 " int guestfs_mknod_c (guestfs_h *g,\n"
9332 "\t\tint mode,\n"
9333 "\t\tint devmajor,\n"
9334 "\t\tint devminor,\n"
9335 "\t\tconst char *path);\n"
9336 "\n"
9337 msgstr ""
9338
9339 # type: textblock
9340 #: ../src/guestfs-actions.pod:3294
9341 msgid ""
9342 "This call creates a char device node called C<path> with mode C<mode> and "
9343 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
9344 "wrapper around C<guestfs_mknod>."
9345 msgstr ""
9346
9347 # type: =head2
9348 #: ../src/guestfs-actions.pod:3302
9349 msgid "guestfs_mkswap"
9350 msgstr ""
9351
9352 # type: verbatim
9353 #: ../src/guestfs-actions.pod:3304
9354 #, no-wrap
9355 msgid ""
9356 " int guestfs_mkswap (guestfs_h *g,\n"
9357 "\t\tconst char *device);\n"
9358 "\n"
9359 msgstr ""
9360
9361 # type: textblock
9362 #: ../src/guestfs-actions.pod:3307 ../fish/guestfish-actions.pod:2571
9363 msgid "Create a swap partition on C<device>."
9364 msgstr ""
9365
9366 # type: =head2
9367 #: ../src/guestfs-actions.pod:3311
9368 msgid "guestfs_mkswap_L"
9369 msgstr ""
9370
9371 # type: verbatim
9372 #: ../src/guestfs-actions.pod:3313
9373 #, no-wrap
9374 msgid ""
9375 " int guestfs_mkswap_L (guestfs_h *g,\n"
9376 "\t\tconst char *label,\n"
9377 "\t\tconst char *device);\n"
9378 "\n"
9379 msgstr ""
9380
9381 # type: textblock
9382 #: ../src/guestfs-actions.pod:3317 ../fish/guestfish-actions.pod:2577
9383 msgid "Create a swap partition on C<device> with label C<label>."
9384 msgstr ""
9385
9386 # type: textblock
9387 #: ../src/guestfs-actions.pod:3319 ../fish/guestfish-actions.pod:2579
9388 msgid ""
9389 "Note that you cannot attach a swap label to a block device "
9390 "(eg. C</dev/sda>), just to a partition.  This appears to be a limitation of "
9391 "the kernel or swap tools."
9392 msgstr ""
9393
9394 # type: =head2
9395 #: ../src/guestfs-actions.pod:3325
9396 msgid "guestfs_mkswap_U"
9397 msgstr ""
9398
9399 # type: verbatim
9400 #: ../src/guestfs-actions.pod:3327
9401 #, no-wrap
9402 msgid ""
9403 " int guestfs_mkswap_U (guestfs_h *g,\n"
9404 "\t\tconst char *uuid,\n"
9405 "\t\tconst char *device);\n"
9406 "\n"
9407 msgstr ""
9408
9409 # type: textblock
9410 #: ../src/guestfs-actions.pod:3331 ../fish/guestfish-actions.pod:2587
9411 msgid "Create a swap partition on C<device> with UUID C<uuid>."
9412 msgstr ""
9413
9414 # type: =head2
9415 #: ../src/guestfs-actions.pod:3335
9416 msgid "guestfs_mkswap_file"
9417 msgstr ""
9418
9419 # type: verbatim
9420 #: ../src/guestfs-actions.pod:3337
9421 #, no-wrap
9422 msgid ""
9423 " int guestfs_mkswap_file (guestfs_h *g,\n"
9424 "\t\tconst char *path);\n"
9425 "\n"
9426 msgstr ""
9427
9428 # type: textblock
9429 #: ../src/guestfs-actions.pod:3340 ../fish/guestfish-actions.pod:2593
9430 msgid "Create a swap file."
9431 msgstr ""
9432
9433 # type: textblock
9434 #: ../src/guestfs-actions.pod:3342
9435 msgid ""
9436 "This command just writes a swap file signature to an existing file.  To "
9437 "create the file itself, use something like C<guestfs_fallocate>."
9438 msgstr ""
9439
9440 # type: =head2
9441 #: ../src/guestfs-actions.pod:3347
9442 msgid "guestfs_modprobe"
9443 msgstr ""
9444
9445 # type: verbatim
9446 #: ../src/guestfs-actions.pod:3349
9447 #, no-wrap
9448 msgid ""
9449 " int guestfs_modprobe (guestfs_h *g,\n"
9450 "\t\tconst char *modulename);\n"
9451 "\n"
9452 msgstr ""
9453
9454 # type: textblock
9455 #: ../src/guestfs-actions.pod:3352 ../fish/guestfish-actions.pod:2602
9456 msgid "This loads a kernel module in the appliance."
9457 msgstr ""
9458
9459 # type: textblock
9460 #: ../src/guestfs-actions.pod:3354 ../fish/guestfish-actions.pod:2604
9461 msgid ""
9462 "The kernel module must have been whitelisted when libguestfs was built (see "
9463 "C<appliance/kmod.whitelist.in> in the source)."
9464 msgstr ""
9465
9466 # type: =head2
9467 #: ../src/guestfs-actions.pod:3359
9468 msgid "guestfs_mount"
9469 msgstr ""
9470
9471 # type: verbatim
9472 #: ../src/guestfs-actions.pod:3361
9473 #, no-wrap
9474 msgid ""
9475 " int guestfs_mount (guestfs_h *g,\n"
9476 "\t\tconst char *device,\n"
9477 "\t\tconst char *mountpoint);\n"
9478 "\n"
9479 msgstr ""
9480
9481 # type: textblock
9482 #: ../src/guestfs-actions.pod:3365 ../fish/guestfish-actions.pod:2611
9483 msgid ""
9484 "Mount a guest disk at a position in the filesystem.  Block devices are named "
9485 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
9486 "those block devices contain partitions, they will have the usual names "
9487 "(eg. C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
9488 msgstr ""
9489
9490 # type: textblock
9491 #: ../src/guestfs-actions.pod:3371 ../fish/guestfish-actions.pod:2617
9492 msgid ""
9493 "The rules are the same as for L<mount(2)>: A filesystem must first be "
9494 "mounted on C</> before others can be mounted.  Other filesystems can only be "
9495 "mounted on directories which already exist."
9496 msgstr ""
9497
9498 # type: textblock
9499 #: ../src/guestfs-actions.pod:3376 ../fish/guestfish-actions.pod:2622
9500 msgid ""
9501 "The mounted filesystem is writable, if we have sufficient permissions on the "
9502 "underlying device."
9503 msgstr ""
9504
9505 # type: textblock
9506 #: ../src/guestfs-actions.pod:3379
9507 msgid ""
9508 "B<Important note:> When you use this call, the filesystem options C<sync> "
9509 "and C<noatime> are set implicitly.  This was originally done because we "
9510 "thought it would improve reliability, but it turns out that I<-o sync> has a "
9511 "very large negative performance impact and negligible effect on "
9512 "reliability.  Therefore we recommend that you avoid using C<guestfs_mount> "
9513 "in any code that needs performance, and instead use C<guestfs_mount_options> "
9514 "(use an empty string for the first parameter if you don't want any options)."
9515 msgstr ""
9516
9517 # type: =head2
9518 #: ../src/guestfs-actions.pod:3391
9519 msgid "guestfs_mount_loop"
9520 msgstr ""
9521
9522 # type: verbatim
9523 #: ../src/guestfs-actions.pod:3393
9524 #, no-wrap
9525 msgid ""
9526 " int guestfs_mount_loop (guestfs_h *g,\n"
9527 "\t\tconst char *file,\n"
9528 "\t\tconst char *mountpoint);\n"
9529 "\n"
9530 msgstr ""
9531
9532 # type: textblock
9533 #: ../src/guestfs-actions.pod:3397 ../fish/guestfish-actions.pod:2639
9534 msgid ""
9535 "This command lets you mount C<file> (a filesystem image in a file) on a "
9536 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
9537 "mountpoint>."
9538 msgstr ""
9539
9540 # type: =head2
9541 #: ../src/guestfs-actions.pod:3403
9542 msgid "guestfs_mount_options"
9543 msgstr ""
9544
9545 # type: verbatim
9546 #: ../src/guestfs-actions.pod:3405
9547 #, no-wrap
9548 msgid ""
9549 " int guestfs_mount_options (guestfs_h *g,\n"
9550 "\t\tconst char *options,\n"
9551 "\t\tconst char *device,\n"
9552 "\t\tconst char *mountpoint);\n"
9553 "\n"
9554 msgstr ""
9555
9556 # type: textblock
9557 #: ../src/guestfs-actions.pod:3410
9558 msgid ""
9559 "This is the same as the C<guestfs_mount> command, but it allows you to set "
9560 "the mount options as for the L<mount(8)> I<-o> flag."
9561 msgstr ""
9562
9563 # type: textblock
9564 #: ../src/guestfs-actions.pod:3414 ../fish/guestfish-actions.pod:2651
9565 msgid ""
9566 "If the C<options> parameter is an empty string, then no options are passed "
9567 "(all options default to whatever the filesystem uses)."
9568 msgstr ""
9569
9570 # type: =head2
9571 #: ../src/guestfs-actions.pod:3420
9572 msgid "guestfs_mount_ro"
9573 msgstr ""
9574
9575 # type: verbatim
9576 #: ../src/guestfs-actions.pod:3422
9577 #, no-wrap
9578 msgid ""
9579 " int guestfs_mount_ro (guestfs_h *g,\n"
9580 "\t\tconst char *device,\n"
9581 "\t\tconst char *mountpoint);\n"
9582 "\n"
9583 msgstr ""
9584
9585 # type: textblock
9586 #: ../src/guestfs-actions.pod:3426
9587 msgid ""
9588 "This is the same as the C<guestfs_mount> command, but it mounts the "
9589 "filesystem with the read-only (I<-o ro>) flag."
9590 msgstr ""
9591
9592 # type: =head2
9593 #: ../src/guestfs-actions.pod:3431
9594 msgid "guestfs_mount_vfs"
9595 msgstr ""
9596
9597 # type: verbatim
9598 #: ../src/guestfs-actions.pod:3433
9599 #, no-wrap
9600 msgid ""
9601 " int guestfs_mount_vfs (guestfs_h *g,\n"
9602 "\t\tconst char *options,\n"
9603 "\t\tconst char *vfstype,\n"
9604 "\t\tconst char *device,\n"
9605 "\t\tconst char *mountpoint);\n"
9606 "\n"
9607 msgstr ""
9608
9609 # type: textblock
9610 #: ../src/guestfs-actions.pod:3439
9611 msgid ""
9612 "This is the same as the C<guestfs_mount> command, but it allows you to set "
9613 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and "
9614 "I<-t> flags."
9615 msgstr ""
9616
9617 # type: =head2
9618 #: ../src/guestfs-actions.pod:3445
9619 msgid "guestfs_mountpoints"
9620 msgstr ""
9621
9622 # type: verbatim
9623 #: ../src/guestfs-actions.pod:3447
9624 #, no-wrap
9625 msgid ""
9626 " char **guestfs_mountpoints (guestfs_h *g);\n"
9627 "\n"
9628 msgstr ""
9629
9630 # type: textblock
9631 #: ../src/guestfs-actions.pod:3449
9632 msgid ""
9633 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
9634 "devices.  This one returns a hash table (map) of device name to directory "
9635 "where the device is mounted."
9636 msgstr ""
9637
9638 # type: =head2
9639 #: ../src/guestfs-actions.pod:3459
9640 msgid "guestfs_mounts"
9641 msgstr ""
9642
9643 # type: verbatim
9644 #: ../src/guestfs-actions.pod:3461
9645 #, no-wrap
9646 msgid ""
9647 " char **guestfs_mounts (guestfs_h *g);\n"
9648 "\n"
9649 msgstr ""
9650
9651 # type: textblock
9652 #: ../src/guestfs-actions.pod:3463 ../fish/guestfish-actions.pod:2682
9653 msgid ""
9654 "This returns the list of currently mounted filesystems.  It returns the list "
9655 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
9656 msgstr ""
9657
9658 # type: textblock
9659 #: ../src/guestfs-actions.pod:3466 ../fish/guestfish-actions.pod:2685
9660 msgid "Some internal mounts are not shown."
9661 msgstr ""
9662
9663 # type: textblock
9664 #: ../src/guestfs-actions.pod:3468
9665 msgid "See also: C<guestfs_mountpoints>"
9666 msgstr ""
9667
9668 # type: =head2
9669 #: ../src/guestfs-actions.pod:3474
9670 msgid "guestfs_mv"
9671 msgstr ""
9672
9673 # type: verbatim
9674 #: ../src/guestfs-actions.pod:3476
9675 #, no-wrap
9676 msgid ""
9677 " int guestfs_mv (guestfs_h *g,\n"
9678 "\t\tconst char *src,\n"
9679 "\t\tconst char *dest);\n"
9680 "\n"
9681 msgstr ""
9682
9683 # type: textblock
9684 #: ../src/guestfs-actions.pod:3480 ../fish/guestfish-actions.pod:2693
9685 msgid ""
9686 "This moves a file from C<src> to C<dest> where C<dest> is either a "
9687 "destination filename or destination directory."
9688 msgstr ""
9689
9690 # type: =head2
9691 #: ../src/guestfs-actions.pod:3485
9692 msgid "guestfs_ntfs_3g_probe"
9693 msgstr ""
9694
9695 # type: verbatim
9696 #: ../src/guestfs-actions.pod:3487
9697 #, no-wrap
9698 msgid ""
9699 " int guestfs_ntfs_3g_probe (guestfs_h *g,\n"
9700 "\t\tint rw,\n"
9701 "\t\tconst char *device);\n"
9702 "\n"
9703 msgstr ""
9704
9705 # type: textblock
9706 #: ../src/guestfs-actions.pod:3491 ../fish/guestfish-actions.pod:2700
9707 msgid ""
9708 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
9709 "C<device> for mountability.  (Not all NTFS volumes can be mounted "
9710 "read-write, and some cannot be mounted at all)."
9711 msgstr ""
9712
9713 # type: textblock
9714 #: ../src/guestfs-actions.pod:3495 ../fish/guestfish-actions.pod:2704
9715 msgid ""
9716 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
9717 "can be mounted read-write.  Set it to false if you want to test if the "
9718 "volume can be mounted read-only."
9719 msgstr ""
9720
9721 # type: textblock
9722 #: ../src/guestfs-actions.pod:3499 ../fish/guestfish-actions.pod:2708
9723 msgid ""
9724 "The return value is an integer which C<0> if the operation would succeed, or "
9725 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
9726 msgstr ""
9727
9728 # type: =head2
9729 #: ../src/guestfs-actions.pod:3505
9730 msgid "guestfs_ntfsresize"
9731 msgstr ""
9732
9733 # type: verbatim
9734 #: ../src/guestfs-actions.pod:3507
9735 #, no-wrap
9736 msgid ""
9737 " int guestfs_ntfsresize (guestfs_h *g,\n"
9738 "\t\tconst char *device);\n"
9739 "\n"
9740 msgstr ""
9741
9742 # type: textblock
9743 #: ../src/guestfs-actions.pod:3510 ../fish/guestfish-actions.pod:2716
9744 msgid ""
9745 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
9746 "size of the underlying device.  See also L<ntfsresize(8)>."
9747 msgstr ""
9748
9749 # type: =head2
9750 #: ../src/guestfs-actions.pod:3516
9751 msgid "guestfs_ntfsresize_size"
9752 msgstr ""
9753
9754 # type: verbatim
9755 #: ../src/guestfs-actions.pod:3518
9756 #, no-wrap
9757 msgid ""
9758 " int guestfs_ntfsresize_size (guestfs_h *g,\n"
9759 "\t\tconst char *device,\n"
9760 "\t\tint64_t size);\n"
9761 "\n"
9762 msgstr ""
9763
9764 # type: textblock
9765 #: ../src/guestfs-actions.pod:3522
9766 msgid ""
9767 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
9768 "to specify the new size (in bytes) explicitly."
9769 msgstr ""
9770
9771 # type: =head2
9772 #: ../src/guestfs-actions.pod:3527
9773 msgid "guestfs_part_add"
9774 msgstr ""
9775
9776 # type: verbatim
9777 #: ../src/guestfs-actions.pod:3529
9778 #, no-wrap
9779 msgid ""
9780 " int guestfs_part_add (guestfs_h *g,\n"
9781 "\t\tconst char *device,\n"
9782 "\t\tconst char *prlogex,\n"
9783 "\t\tint64_t startsect,\n"
9784 "\t\tint64_t endsect);\n"
9785 "\n"
9786 msgstr ""
9787
9788 # type: textblock
9789 #: ../src/guestfs-actions.pod:3535
9790 msgid ""
9791 "This command adds a partition to C<device>.  If there is no partition table "
9792 "on the device, call C<guestfs_part_init> first."
9793 msgstr ""
9794
9795 # type: textblock
9796 #: ../src/guestfs-actions.pod:3538 ../fish/guestfish-actions.pod:2734
9797 msgid ""
9798 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
9799 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
9800 "C<logical>) and C<e> (or C<extended>) partition types."
9801 msgstr ""
9802
9803 # type: textblock
9804 #: ../src/guestfs-actions.pod:3543 ../fish/guestfish-actions.pod:2739
9805 msgid ""
9806 "C<startsect> and C<endsect> are the start and end of the partition in "
9807 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
9808 "from the end of the disk (C<-1> is the last sector)."
9809 msgstr ""
9810
9811 # type: textblock
9812 #: ../src/guestfs-actions.pod:3547
9813 msgid ""
9814 "Creating a partition which covers the whole disk is not so easy.  Use "
9815 "C<guestfs_part_disk> to do that."
9816 msgstr ""
9817
9818 # type: =head2
9819 #: ../src/guestfs-actions.pod:3552
9820 msgid "guestfs_part_del"
9821 msgstr ""
9822
9823 # type: verbatim
9824 #: ../src/guestfs-actions.pod:3554
9825 #, no-wrap
9826 msgid ""
9827 " int guestfs_part_del (guestfs_h *g,\n"
9828 "\t\tconst char *device,\n"
9829 "\t\tint partnum);\n"
9830 "\n"
9831 msgstr ""
9832
9833 # type: textblock
9834 #: ../src/guestfs-actions.pod:3558 ../fish/guestfish-actions.pod:2750
9835 msgid "This command deletes the partition numbered C<partnum> on C<device>."
9836 msgstr ""
9837
9838 # type: textblock
9839 #: ../src/guestfs-actions.pod:3560 ../fish/guestfish-actions.pod:2752
9840 msgid ""
9841 "Note that in the case of MBR partitioning, deleting an extended partition "
9842 "also deletes any logical partitions it contains."
9843 msgstr ""
9844
9845 # type: =head2
9846 #: ../src/guestfs-actions.pod:3566
9847 msgid "guestfs_part_disk"
9848 msgstr ""
9849
9850 # type: verbatim
9851 #: ../src/guestfs-actions.pod:3568
9852 #, no-wrap
9853 msgid ""
9854 " int guestfs_part_disk (guestfs_h *g,\n"
9855 "\t\tconst char *device,\n"
9856 "\t\tconst char *parttype);\n"
9857 "\n"
9858 msgstr ""
9859
9860 # type: textblock
9861 #: ../src/guestfs-actions.pod:3572
9862 msgid ""
9863 "This command is simply a combination of C<guestfs_part_init> followed by "
9864 "C<guestfs_part_add> to create a single primary partition covering the whole "
9865 "disk."
9866 msgstr ""
9867
9868 # type: textblock
9869 #: ../src/guestfs-actions.pod:3576
9870 msgid ""
9871 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
9872 "possible values are described in C<guestfs_part_init>."
9873 msgstr ""
9874
9875 # type: =head2
9876 #: ../src/guestfs-actions.pod:3584
9877 msgid "guestfs_part_get_bootable"
9878 msgstr ""
9879
9880 # type: verbatim
9881 #: ../src/guestfs-actions.pod:3586
9882 #, no-wrap
9883 msgid ""
9884 " int guestfs_part_get_bootable (guestfs_h *g,\n"
9885 "\t\tconst char *device,\n"
9886 "\t\tint partnum);\n"
9887 "\n"
9888 msgstr ""
9889
9890 # type: textblock
9891 #: ../src/guestfs-actions.pod:3590 ../fish/guestfish-actions.pod:2774
9892 msgid ""
9893 "This command returns true if the partition C<partnum> on C<device> has the "
9894 "bootable flag set."
9895 msgstr ""
9896
9897 # type: textblock
9898 #: ../src/guestfs-actions.pod:3593
9899 msgid "See also C<guestfs_part_set_bootable>."
9900 msgstr ""
9901
9902 # type: =head2
9903 #: ../src/guestfs-actions.pod:3597
9904 msgid "guestfs_part_get_mbr_id"
9905 msgstr ""
9906
9907 # type: verbatim
9908 #: ../src/guestfs-actions.pod:3599
9909 #, no-wrap
9910 msgid ""
9911 " int guestfs_part_get_mbr_id (guestfs_h *g,\n"
9912 "\t\tconst char *device,\n"
9913 "\t\tint partnum);\n"
9914 "\n"
9915 msgstr ""
9916
9917 # type: textblock
9918 #: ../src/guestfs-actions.pod:3603 ../fish/guestfish-actions.pod:2783
9919 msgid ""
9920 "Returns the MBR type byte (also known as the ID byte) from the numbered "
9921 "partition C<partnum>."
9922 msgstr ""
9923
9924 # type: textblock
9925 #: ../src/guestfs-actions.pod:3606 ../src/guestfs-actions.pod:3768
9926 msgid ""
9927 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
9928 "undefined results for other partition table types (see "
9929 "C<guestfs_part_get_parttype>)."
9930 msgstr ""
9931
9932 # type: =head2
9933 #: ../src/guestfs-actions.pod:3612
9934 msgid "guestfs_part_get_parttype"
9935 msgstr ""
9936
9937 # type: verbatim
9938 #: ../src/guestfs-actions.pod:3614
9939 #, no-wrap
9940 msgid ""
9941 " char *guestfs_part_get_parttype (guestfs_h *g,\n"
9942 "\t\tconst char *device);\n"
9943 "\n"
9944 msgstr ""
9945
9946 # type: textblock
9947 #: ../src/guestfs-actions.pod:3617 ../fish/guestfish-actions.pod:2794
9948 msgid ""
9949 "This command examines the partition table on C<device> and returns the "
9950 "partition table type (format) being used."
9951 msgstr ""
9952
9953 # type: textblock
9954 #: ../src/guestfs-actions.pod:3620
9955 msgid ""
9956 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
9957 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
9958 "possible, although unusual.  See C<guestfs_part_init> for a full list."
9959 msgstr ""
9960
9961 # type: =head2
9962 #: ../src/guestfs-actions.pod:3628
9963 msgid "guestfs_part_init"
9964 msgstr ""
9965
9966 # type: verbatim
9967 #: ../src/guestfs-actions.pod:3630
9968 #, no-wrap
9969 msgid ""
9970 " int guestfs_part_init (guestfs_h *g,\n"
9971 "\t\tconst char *device,\n"
9972 "\t\tconst char *parttype);\n"
9973 "\n"
9974 msgstr ""
9975
9976 # type: textblock
9977 #: ../src/guestfs-actions.pod:3634 ../fish/guestfish-actions.pod:2806
9978 msgid ""
9979 "This creates an empty partition table on C<device> of one of the partition "
9980 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
9981 "(for large disks)."
9982 msgstr ""
9983
9984 # type: textblock
9985 #: ../src/guestfs-actions.pod:3638
9986 msgid ""
9987 "Initially there are no partitions.  Following this, you should call "
9988 "C<guestfs_part_add> for each partition required."
9989 msgstr ""
9990
9991 # type: textblock
9992 #: ../src/guestfs-actions.pod:3641 ../fish/guestfish-actions.pod:2813
9993 msgid "Possible values for C<parttype> are:"
9994 msgstr ""
9995
9996 # type: =item
9997 #: ../src/guestfs-actions.pod:3645 ../fish/guestfish-actions.pod:2817
9998 msgid "B<efi> | B<gpt>"
9999 msgstr ""
10000
10001 # type: textblock
10002 #: ../src/guestfs-actions.pod:3647 ../fish/guestfish-actions.pod:2819
10003 msgid "Intel EFI / GPT partition table."
10004 msgstr ""
10005
10006 # type: textblock
10007 #: ../src/guestfs-actions.pod:3649 ../fish/guestfish-actions.pod:2821
10008 msgid ""
10009 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
10010 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
10011 "the C<mbr> format."
10012 msgstr ""
10013
10014 # type: =item
10015 #: ../src/guestfs-actions.pod:3653 ../fish/guestfish-actions.pod:2825
10016 msgid "B<mbr> | B<msdos>"
10017 msgstr ""
10018
10019 # type: textblock
10020 #: ../src/guestfs-actions.pod:3655 ../fish/guestfish-actions.pod:2827
10021 msgid ""
10022 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
10023 "Windows.  This partition type will B<only> work for device sizes up to 2 "
10024 "TB.  For large disks we recommend using C<gpt>."
10025 msgstr ""
10026
10027 # type: textblock
10028 #: ../src/guestfs-actions.pod:3662 ../fish/guestfish-actions.pod:2834
10029 msgid "Other partition table types that may work but are not supported include:"
10030 msgstr ""
10031
10032 # type: =item
10033 #: ../src/guestfs-actions.pod:3667 ../fish/guestfish-actions.pod:2839
10034 msgid "B<aix>"
10035 msgstr ""
10036
10037 # type: textblock
10038 #: ../src/guestfs-actions.pod:3669 ../fish/guestfish-actions.pod:2841
10039 msgid "AIX disk labels."
10040 msgstr ""
10041
10042 # type: =item
10043 #: ../src/guestfs-actions.pod:3671 ../fish/guestfish-actions.pod:2843
10044 msgid "B<amiga> | B<rdb>"
10045 msgstr ""
10046
10047 # type: textblock
10048 #: ../src/guestfs-actions.pod:3673 ../fish/guestfish-actions.pod:2845
10049 msgid "Amiga \"Rigid Disk Block\" format."
10050 msgstr ""
10051
10052 # type: =item
10053 #: ../src/guestfs-actions.pod:3675 ../fish/guestfish-actions.pod:2847
10054 msgid "B<bsd>"
10055 msgstr ""
10056
10057 # type: textblock
10058 #: ../src/guestfs-actions.pod:3677 ../fish/guestfish-actions.pod:2849
10059 msgid "BSD disk labels."
10060 msgstr ""
10061
10062 # type: =item
10063 #: ../src/guestfs-actions.pod:3679 ../fish/guestfish-actions.pod:2851
10064 msgid "B<dasd>"
10065 msgstr ""
10066
10067 # type: textblock
10068 #: ../src/guestfs-actions.pod:3681 ../fish/guestfish-actions.pod:2853
10069 msgid "DASD, used on IBM mainframes."
10070 msgstr ""
10071
10072 # type: =item
10073 #: ../src/guestfs-actions.pod:3683 ../fish/guestfish-actions.pod:2855
10074 msgid "B<dvh>"
10075 msgstr ""
10076
10077 # type: textblock
10078 #: ../src/guestfs-actions.pod:3685 ../fish/guestfish-actions.pod:2857
10079 msgid "MIPS/SGI volumes."
10080 msgstr ""
10081
10082 # type: =item
10083 #: ../src/guestfs-actions.pod:3687 ../fish/guestfish-actions.pod:2859
10084 msgid "B<mac>"
10085 msgstr ""
10086
10087 # type: textblock
10088 #: ../src/guestfs-actions.pod:3689 ../fish/guestfish-actions.pod:2861
10089 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
10090 msgstr ""
10091
10092 # type: =item
10093 #: ../src/guestfs-actions.pod:3691 ../fish/guestfish-actions.pod:2863
10094 msgid "B<pc98>"
10095 msgstr ""
10096
10097 # type: textblock
10098 #: ../src/guestfs-actions.pod:3693 ../fish/guestfish-actions.pod:2865
10099 msgid "NEC PC-98 format, common in Japan apparently."
10100 msgstr ""
10101
10102 # type: =item
10103 #: ../src/guestfs-actions.pod:3695 ../fish/guestfish-actions.pod:2867
10104 msgid "B<sun>"
10105 msgstr ""
10106
10107 # type: textblock
10108 #: ../src/guestfs-actions.pod:3697 ../fish/guestfish-actions.pod:2869
10109 msgid "Sun disk labels."
10110 msgstr ""
10111
10112 # type: =head2
10113 #: ../src/guestfs-actions.pod:3703
10114 msgid "guestfs_part_list"
10115 msgstr ""
10116
10117 # type: verbatim
10118 #: ../src/guestfs-actions.pod:3705
10119 #, no-wrap
10120 msgid ""
10121 " struct guestfs_partition_list *guestfs_part_list (guestfs_h *g,\n"
10122 "\t\tconst char *device);\n"
10123 "\n"
10124 msgstr ""
10125
10126 # type: textblock
10127 #: ../src/guestfs-actions.pod:3708 ../fish/guestfish-actions.pod:2877
10128 msgid ""
10129 "This command parses the partition table on C<device> and returns the list of "
10130 "partitions found."
10131 msgstr ""
10132
10133 # type: textblock
10134 #: ../src/guestfs-actions.pod:3711 ../fish/guestfish-actions.pod:2880
10135 msgid "The fields in the returned structure are:"
10136 msgstr ""
10137
10138 # type: =item
10139 #: ../src/guestfs-actions.pod:3715 ../fish/guestfish-actions.pod:2884
10140 msgid "B<part_num>"
10141 msgstr ""
10142
10143 # type: textblock
10144 #: ../src/guestfs-actions.pod:3717 ../fish/guestfish-actions.pod:2886
10145 msgid "Partition number, counting from 1."
10146 msgstr ""
10147
10148 # type: =item
10149 #: ../src/guestfs-actions.pod:3719 ../fish/guestfish-actions.pod:2888
10150 msgid "B<part_start>"
10151 msgstr ""
10152
10153 # type: textblock
10154 #: ../src/guestfs-actions.pod:3721
10155 msgid ""
10156 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
10157 "the device's sector size, see C<guestfs_blockdev_getss>."
10158 msgstr ""
10159
10160 # type: =item
10161 #: ../src/guestfs-actions.pod:3724 ../fish/guestfish-actions.pod:2893
10162 msgid "B<part_end>"
10163 msgstr ""
10164
10165 # type: textblock
10166 #: ../src/guestfs-actions.pod:3726 ../fish/guestfish-actions.pod:2895
10167 msgid "End of the partition in bytes."
10168 msgstr ""
10169
10170 # type: =item
10171 #: ../src/guestfs-actions.pod:3728 ../fish/guestfish-actions.pod:2897
10172 msgid "B<part_size>"
10173 msgstr ""
10174
10175 # type: textblock
10176 #: ../src/guestfs-actions.pod:3730 ../fish/guestfish-actions.pod:2899
10177 msgid "Size of the partition in bytes."
10178 msgstr ""
10179
10180 # type: textblock
10181 #: ../src/guestfs-actions.pod:3734
10182 msgid ""
10183 "This function returns a C<struct guestfs_partition_list *> (see "
10184 "E<lt>guestfs-structs.hE<gt>), or NULL if there was an error.  I<The caller "
10185 "must call C<guestfs_free_partition_list> after use>."
10186 msgstr ""
10187
10188 # type: =head2
10189 #: ../src/guestfs-actions.pod:3739
10190 msgid "guestfs_part_set_bootable"
10191 msgstr ""
10192
10193 # type: verbatim
10194 #: ../src/guestfs-actions.pod:3741
10195 #, no-wrap
10196 msgid ""
10197 " int guestfs_part_set_bootable (guestfs_h *g,\n"
10198 "\t\tconst char *device,\n"
10199 "\t\tint partnum,\n"
10200 "\t\tint bootable);\n"
10201 "\n"
10202 msgstr ""
10203
10204 # type: textblock
10205 #: ../src/guestfs-actions.pod:3746 ../fish/guestfish-actions.pod:2907
10206 msgid ""
10207 "This sets the bootable flag on partition numbered C<partnum> on device "
10208 "C<device>.  Note that partitions are numbered from 1."
10209 msgstr ""
10210
10211 # type: textblock
10212 #: ../src/guestfs-actions.pod:3749 ../fish/guestfish-actions.pod:2910
10213 msgid ""
10214 "The bootable flag is used by some operating systems (notably Windows) to "
10215 "determine which partition to boot from.  It is by no means universally "
10216 "recognized."
10217 msgstr ""
10218
10219 # type: =head2
10220 #: ../src/guestfs-actions.pod:3755
10221 msgid "guestfs_part_set_mbr_id"
10222 msgstr ""
10223
10224 # type: verbatim
10225 #: ../src/guestfs-actions.pod:3757
10226 #, no-wrap
10227 msgid ""
10228 " int guestfs_part_set_mbr_id (guestfs_h *g,\n"
10229 "\t\tconst char *device,\n"
10230 "\t\tint partnum,\n"
10231 "\t\tint idbyte);\n"
10232 "\n"
10233 msgstr ""
10234
10235 # type: textblock
10236 #: ../src/guestfs-actions.pod:3762 ../fish/guestfish-actions.pod:2918
10237 msgid ""
10238 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
10239 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
10240 "documentation are in fact hexadecimal numbers, but usually documented "
10241 "without any leading \"0x\" which might be confusing."
10242 msgstr ""
10243
10244 # type: =head2
10245 #: ../src/guestfs-actions.pod:3774
10246 msgid "guestfs_part_set_name"
10247 msgstr ""
10248
10249 # type: verbatim
10250 #: ../src/guestfs-actions.pod:3776
10251 #, no-wrap
10252 msgid ""
10253 " int guestfs_part_set_name (guestfs_h *g,\n"
10254 "\t\tconst char *device,\n"
10255 "\t\tint partnum,\n"
10256 "\t\tconst char *name);\n"
10257 "\n"
10258 msgstr ""
10259
10260 # type: textblock
10261 #: ../src/guestfs-actions.pod:3781 ../fish/guestfish-actions.pod:2932
10262 msgid ""
10263 "This sets the partition name on partition numbered C<partnum> on device "
10264 "C<device>.  Note that partitions are numbered from 1."
10265 msgstr ""
10266
10267 # type: textblock
10268 #: ../src/guestfs-actions.pod:3784 ../fish/guestfish-actions.pod:2935
10269 msgid ""
10270 "The partition name can only be set on certain types of partition table.  "
10271 "This works on C<gpt> but not on C<mbr> partitions."
10272 msgstr ""
10273
10274 # type: =head2
10275 #: ../src/guestfs-actions.pod:3789
10276 msgid "guestfs_part_to_dev"
10277 msgstr ""
10278
10279 # type: verbatim
10280 #: ../src/guestfs-actions.pod:3791
10281 #, no-wrap
10282 msgid ""
10283 " char *guestfs_part_to_dev (guestfs_h *g,\n"
10284 "\t\tconst char *partition);\n"
10285 "\n"
10286 msgstr ""
10287
10288 # type: textblock
10289 #: ../src/guestfs-actions.pod:3794 ../fish/guestfish-actions.pod:2942
10290 msgid ""
10291 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
10292 "partition number, returning the device name (eg. \"/dev/sdb\")."
10293 msgstr ""
10294
10295 # type: textblock
10296 #: ../src/guestfs-actions.pod:3798
10297 msgid ""
10298 "The named partition must exist, for example as a string returned from "
10299 "C<guestfs_list_partitions>."
10300 msgstr ""
10301
10302 # type: =head2
10303 #: ../src/guestfs-actions.pod:3804
10304 msgid "guestfs_ping_daemon"
10305 msgstr ""
10306
10307 # type: verbatim
10308 #: ../src/guestfs-actions.pod:3806
10309 #, no-wrap
10310 msgid ""
10311 " int guestfs_ping_daemon (guestfs_h *g);\n"
10312 "\n"
10313 msgstr ""
10314
10315 # type: textblock
10316 #: ../src/guestfs-actions.pod:3808 ../fish/guestfish-actions.pod:2953
10317 msgid ""
10318 "This is a test probe into the guestfs daemon running inside the qemu "
10319 "subprocess.  Calling this function checks that the daemon responds to the "
10320 "ping message, without affecting the daemon or attached block device(s) in "
10321 "any other way."
10322 msgstr ""
10323
10324 # type: =head2
10325 #: ../src/guestfs-actions.pod:3815
10326 msgid "guestfs_pread"
10327 msgstr ""
10328
10329 # type: verbatim
10330 #: ../src/guestfs-actions.pod:3817
10331 #, no-wrap
10332 msgid ""
10333 " char *guestfs_pread (guestfs_h *g,\n"
10334 "\t\tconst char *path,\n"
10335 "\t\tint count,\n"
10336 "\t\tint64_t offset,\n"
10337 "\t\tsize_t *size_r);\n"
10338 "\n"
10339 msgstr ""
10340
10341 # type: textblock
10342 #: ../src/guestfs-actions.pod:3823 ../fish/guestfish-actions.pod:2962
10343 msgid ""
10344 "This command lets you read part of a file.  It reads C<count> bytes of the "
10345 "file, starting at C<offset>, from file C<path>."
10346 msgstr ""
10347
10348 # type: textblock
10349 #: ../src/guestfs-actions.pod:3826 ../src/guestfs-actions.pod:3849 ../fish/guestfish-actions.pod:2965 ../fish/guestfish-actions.pod:2980
10350 msgid ""
10351 "This may read fewer bytes than requested.  For further details see the "
10352 "L<pread(2)> system call."
10353 msgstr ""
10354
10355 # type: textblock
10356 #: ../src/guestfs-actions.pod:3829
10357 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
10358 msgstr ""
10359
10360 # type: =head2
10361 #: ../src/guestfs-actions.pod:3838
10362 msgid "guestfs_pread_device"
10363 msgstr ""
10364
10365 # type: verbatim
10366 #: ../src/guestfs-actions.pod:3840
10367 #, no-wrap
10368 msgid ""
10369 " char *guestfs_pread_device (guestfs_h *g,\n"
10370 "\t\tconst char *device,\n"
10371 "\t\tint count,\n"
10372 "\t\tint64_t offset,\n"
10373 "\t\tsize_t *size_r);\n"
10374 "\n"
10375 msgstr ""
10376
10377 # type: textblock
10378 #: ../src/guestfs-actions.pod:3846 ../fish/guestfish-actions.pod:2977
10379 msgid ""
10380 "This command lets you read part of a file.  It reads C<count> bytes of "
10381 "C<device>, starting at C<offset>."
10382 msgstr ""
10383
10384 # type: textblock
10385 #: ../src/guestfs-actions.pod:3852
10386 msgid "See also C<guestfs_pread>."
10387 msgstr ""
10388
10389 # type: =head2
10390 #: ../src/guestfs-actions.pod:3861
10391 msgid "guestfs_pvcreate"
10392 msgstr ""
10393
10394 # type: verbatim
10395 #: ../src/guestfs-actions.pod:3863
10396 #, no-wrap
10397 msgid ""
10398 " int guestfs_pvcreate (guestfs_h *g,\n"
10399 "\t\tconst char *device);\n"
10400 "\n"
10401 msgstr ""
10402
10403 # type: textblock
10404 #: ../src/guestfs-actions.pod:3866 ../fish/guestfish-actions.pod:2992
10405 msgid ""
10406 "This creates an LVM physical volume on the named C<device>, where C<device> "
10407 "should usually be a partition name such as C</dev/sda1>."
10408 msgstr ""
10409
10410 # type: =head2
10411 #: ../src/guestfs-actions.pod:3872
10412 msgid "guestfs_pvremove"
10413 msgstr ""
10414
10415 # type: verbatim
10416 #: ../src/guestfs-actions.pod:3874
10417 #, no-wrap
10418 msgid ""
10419 " int guestfs_pvremove (guestfs_h *g,\n"
10420 "\t\tconst char *device);\n"
10421 "\n"
10422 msgstr ""
10423
10424 # type: textblock
10425 #: ../src/guestfs-actions.pod:3877 ../fish/guestfish-actions.pod:3000
10426 msgid ""
10427 "This wipes a physical volume C<device> so that LVM will no longer recognise "
10428 "it."
10429 msgstr ""
10430
10431 # type: textblock
10432 #: ../src/guestfs-actions.pod:3880 ../fish/guestfish-actions.pod:3003
10433 msgid ""
10434 "The implementation uses the C<pvremove> command which refuses to wipe "
10435 "physical volumes that contain any volume groups, so you have to remove those "
10436 "first."
10437 msgstr ""
10438
10439 # type: =head2
10440 #: ../src/guestfs-actions.pod:3886
10441 msgid "guestfs_pvresize"
10442 msgstr ""
10443
10444 # type: verbatim
10445 #: ../src/guestfs-actions.pod:3888
10446 #, no-wrap
10447 msgid ""
10448 " int guestfs_pvresize (guestfs_h *g,\n"
10449 "\t\tconst char *device);\n"
10450 "\n"
10451 msgstr ""
10452
10453 # type: textblock
10454 #: ../src/guestfs-actions.pod:3891 ../fish/guestfish-actions.pod:3011
10455 msgid ""
10456 "This resizes (expands or shrinks) an existing LVM physical volume to match "
10457 "the new size of the underlying device."
10458 msgstr ""
10459
10460 # type: =head2
10461 #: ../src/guestfs-actions.pod:3896
10462 msgid "guestfs_pvresize_size"
10463 msgstr ""
10464
10465 # type: verbatim
10466 #: ../src/guestfs-actions.pod:3898
10467 #, no-wrap
10468 msgid ""
10469 " int guestfs_pvresize_size (guestfs_h *g,\n"
10470 "\t\tconst char *device,\n"
10471 "\t\tint64_t size);\n"
10472 "\n"
10473 msgstr ""
10474
10475 # type: textblock
10476 #: ../src/guestfs-actions.pod:3902
10477 msgid ""
10478 "This command is the same as C<guestfs_pvresize> except that it allows you to "
10479 "specify the new size (in bytes) explicitly."
10480 msgstr ""
10481
10482 # type: =head2
10483 #: ../src/guestfs-actions.pod:3907
10484 msgid "guestfs_pvs"
10485 msgstr ""
10486
10487 # type: verbatim
10488 #: ../src/guestfs-actions.pod:3909
10489 #, no-wrap
10490 msgid ""
10491 " char **guestfs_pvs (guestfs_h *g);\n"
10492 "\n"
10493 msgstr ""
10494
10495 # type: textblock
10496 #: ../src/guestfs-actions.pod:3911 ../fish/guestfish-actions.pod:3025
10497 msgid ""
10498 "List all the physical volumes detected.  This is the equivalent of the "
10499 "L<pvs(8)> command."
10500 msgstr ""
10501
10502 # type: textblock
10503 #: ../src/guestfs-actions.pod:3914 ../fish/guestfish-actions.pod:3028
10504 msgid ""
10505 "This returns a list of just the device names that contain PVs "
10506 "(eg. C</dev/sda2>)."
10507 msgstr ""
10508
10509 # type: textblock
10510 #: ../src/guestfs-actions.pod:3917
10511 msgid "See also C<guestfs_pvs_full>."
10512 msgstr ""
10513
10514 # type: =head2
10515 #: ../src/guestfs-actions.pod:3923
10516 msgid "guestfs_pvs_full"
10517 msgstr ""
10518
10519 # type: verbatim
10520 #: ../src/guestfs-actions.pod:3925
10521 #, no-wrap
10522 msgid ""
10523 " struct guestfs_lvm_pv_list *guestfs_pvs_full (guestfs_h *g);\n"
10524 "\n"
10525 msgstr ""
10526
10527 # type: textblock
10528 #: ../src/guestfs-actions.pod:3927 ../fish/guestfish-actions.pod:3037
10529 msgid ""
10530 "List all the physical volumes detected.  This is the equivalent of the "
10531 "L<pvs(8)> command.  The \"full\" version includes all fields."
10532 msgstr ""
10533
10534 # type: textblock
10535 #: ../src/guestfs-actions.pod:3930
10536 msgid ""
10537 "This function returns a C<struct guestfs_lvm_pv_list *> (see "
10538 "E<lt>guestfs-structs.hE<gt>), or NULL if there was an error.  I<The caller "
10539 "must call C<guestfs_free_lvm_pv_list> after use>."
10540 msgstr ""
10541
10542 # type: =head2
10543 #: ../src/guestfs-actions.pod:3935
10544 msgid "guestfs_pvuuid"
10545 msgstr ""
10546
10547 # type: verbatim
10548 #: ../src/guestfs-actions.pod:3937
10549 #, no-wrap
10550 msgid ""
10551 " char *guestfs_pvuuid (guestfs_h *g,\n"
10552 "\t\tconst char *device);\n"
10553 "\n"
10554 msgstr ""
10555
10556 # type: textblock
10557 #: ../src/guestfs-actions.pod:3940 ../fish/guestfish-actions.pod:3044
10558 msgid "This command returns the UUID of the LVM PV C<device>."
10559 msgstr ""
10560
10561 # type: =head2
10562 #: ../src/guestfs-actions.pod:3945
10563 msgid "guestfs_pwrite"
10564 msgstr ""
10565
10566 # type: verbatim
10567 #: ../src/guestfs-actions.pod:3947
10568 #, no-wrap
10569 msgid ""
10570 " int guestfs_pwrite (guestfs_h *g,\n"
10571 "\t\tconst char *path,\n"
10572 "\t\tconst char *content,\n"
10573 "\t\tsize_t content_size,\n"
10574 "\t\tint64_t offset);\n"
10575 "\n"
10576 msgstr ""
10577
10578 # type: textblock
10579 #: ../src/guestfs-actions.pod:3953 ../fish/guestfish-actions.pod:3050
10580 msgid ""
10581 "This command writes to part of a file.  It writes the data buffer C<content> "
10582 "to the file C<path> starting at offset C<offset>."
10583 msgstr ""
10584
10585 # type: textblock
10586 #: ../src/guestfs-actions.pod:3956 ../fish/guestfish-actions.pod:3053
10587 msgid ""
10588 "This command implements the L<pwrite(2)> system call, and like that system "
10589 "call it may not write the full data requested.  The return value is the "
10590 "number of bytes that were actually written to the file.  This could even be "
10591 "0, although short writes are unlikely for regular files in ordinary "
10592 "circumstances."
10593 msgstr ""
10594
10595 # type: textblock
10596 #: ../src/guestfs-actions.pod:3962
10597 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
10598 msgstr ""
10599
10600 # type: =head2
10601 #: ../src/guestfs-actions.pod:3969
10602 msgid "guestfs_pwrite_device"
10603 msgstr ""
10604
10605 # type: verbatim
10606 #: ../src/guestfs-actions.pod:3971
10607 #, no-wrap
10608 msgid ""
10609 " int guestfs_pwrite_device (guestfs_h *g,\n"
10610 "\t\tconst char *device,\n"
10611 "\t\tconst char *content,\n"
10612 "\t\tsize_t content_size,\n"
10613 "\t\tint64_t offset);\n"
10614 "\n"
10615 msgstr ""
10616
10617 # type: textblock
10618 #: ../src/guestfs-actions.pod:3977 ../fish/guestfish-actions.pod:3068
10619 msgid ""
10620 "This command writes to part of a device.  It writes the data buffer "
10621 "C<content> to C<device> starting at offset C<offset>."
10622 msgstr ""
10623
10624 # type: textblock
10625 #: ../src/guestfs-actions.pod:3980 ../fish/guestfish-actions.pod:3071
10626 msgid ""
10627 "This command implements the L<pwrite(2)> system call, and like that system "
10628 "call it may not write the full data requested (although short writes to disk "
10629 "devices and partitions are probably impossible with standard Linux kernels)."
10630 msgstr ""
10631
10632 # type: textblock
10633 #: ../src/guestfs-actions.pod:3985
10634 msgid "See also C<guestfs_pwrite>."
10635 msgstr ""
10636
10637 # type: =head2
10638 #: ../src/guestfs-actions.pod:3992
10639 msgid "guestfs_read_file"
10640 msgstr ""
10641
10642 # type: verbatim
10643 #: ../src/guestfs-actions.pod:3994
10644 #, no-wrap
10645 msgid ""
10646 " char *guestfs_read_file (guestfs_h *g,\n"
10647 "\t\tconst char *path,\n"
10648 "\t\tsize_t *size_r);\n"
10649 "\n"
10650 msgstr ""
10651
10652 # type: textblock
10653 #: ../src/guestfs-actions.pod:3998 ../fish/guestfish-actions.pod:3085
10654 msgid "This calls returns the contents of the file C<path> as a buffer."
10655 msgstr ""
10656
10657 # type: textblock
10658 #: ../src/guestfs-actions.pod:4001
10659 msgid ""
10660 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
10661 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
10662 "function is limited in the total size of file that can be handled."
10663 msgstr ""
10664
10665 # type: =head2
10666 #: ../src/guestfs-actions.pod:4013
10667 msgid "guestfs_read_lines"
10668 msgstr ""
10669
10670 # type: verbatim
10671 #: ../src/guestfs-actions.pod:4015
10672 #, no-wrap
10673 msgid ""
10674 " char **guestfs_read_lines (guestfs_h *g,\n"
10675 "\t\tconst char *path);\n"
10676 "\n"
10677 msgstr ""
10678
10679 # type: textblock
10680 #: ../src/guestfs-actions.pod:4020 ../fish/guestfish-actions.pod:3102
10681 msgid ""
10682 "The file contents are returned as a list of lines.  Trailing C<LF> and "
10683 "C<CRLF> character sequences are I<not> returned."
10684 msgstr ""
10685
10686 # type: textblock
10687 #: ../src/guestfs-actions.pod:4023
10688 msgid ""
10689 "Note that this function cannot correctly handle binary files (specifically, "
10690 "files containing C<\\0> character which is treated as end of line).  For "
10691 "those you need to use the C<guestfs_read_file> function which has a more "
10692 "complex interface."
10693 msgstr ""
10694
10695 # type: =head2
10696 #: ../src/guestfs-actions.pod:4032
10697 msgid "guestfs_readdir"
10698 msgstr ""
10699
10700 # type: verbatim
10701 #: ../src/guestfs-actions.pod:4034
10702 #, no-wrap
10703 msgid ""
10704 " struct guestfs_dirent_list *guestfs_readdir (guestfs_h *g,\n"
10705 "\t\tconst char *dir);\n"
10706 "\n"
10707 msgstr ""
10708
10709 # type: textblock
10710 #: ../src/guestfs-actions.pod:4037 ../fish/guestfish-actions.pod:3114
10711 msgid "This returns the list of directory entries in directory C<dir>."
10712 msgstr ""
10713
10714 # type: textblock
10715 #: ../src/guestfs-actions.pod:4039 ../fish/guestfish-actions.pod:3116
10716 msgid ""
10717 "All entries in the directory are returned, including C<.> and C<..>.  The "
10718 "entries are I<not> sorted, but returned in the same order as the underlying "
10719 "filesystem."
10720 msgstr ""
10721
10722 # type: textblock
10723 #: ../src/guestfs-actions.pod:4043 ../fish/guestfish-actions.pod:3120
10724 msgid ""
10725 "Also this call returns basic file type information about each file.  The "
10726 "C<ftyp> field will contain one of the following characters:"
10727 msgstr ""
10728
10729 # type: =item
10730 #: ../src/guestfs-actions.pod:4048 ../fish/guestfish-actions.pod:3125
10731 msgid "'b'"
10732 msgstr ""
10733
10734 # type: textblock
10735 #: ../src/guestfs-actions.pod:4050 ../fish/guestfish-actions.pod:3127
10736 msgid "Block special"
10737 msgstr ""
10738
10739 # type: =item
10740 #: ../src/guestfs-actions.pod:4052 ../fish/guestfish-actions.pod:3129
10741 msgid "'c'"
10742 msgstr ""
10743
10744 # type: textblock
10745 #: ../src/guestfs-actions.pod:4054 ../fish/guestfish-actions.pod:3131
10746 msgid "Char special"
10747 msgstr ""
10748
10749 # type: =item
10750 #: ../src/guestfs-actions.pod:4056 ../fish/guestfish-actions.pod:3133
10751 msgid "'d'"
10752 msgstr ""
10753
10754 # type: textblock
10755 #: ../src/guestfs-actions.pod:4058 ../fish/guestfish-actions.pod:3135
10756 msgid "Directory"
10757 msgstr ""
10758
10759 # type: =item
10760 #: ../src/guestfs-actions.pod:4060 ../fish/guestfish-actions.pod:3137
10761 msgid "'f'"
10762 msgstr ""
10763
10764 # type: textblock
10765 #: ../src/guestfs-actions.pod:4062 ../fish/guestfish-actions.pod:3139
10766 msgid "FIFO (named pipe)"
10767 msgstr ""
10768
10769 # type: =item
10770 #: ../src/guestfs-actions.pod:4064 ../fish/guestfish-actions.pod:3141
10771 msgid "'l'"
10772 msgstr ""
10773
10774 # type: textblock
10775 #: ../src/guestfs-actions.pod:4066 ../fish/guestfish-actions.pod:3143
10776 msgid "Symbolic link"
10777 msgstr ""
10778
10779 # type: =item
10780 #: ../src/guestfs-actions.pod:4068 ../fish/guestfish-actions.pod:3145
10781 msgid "'r'"
10782 msgstr ""
10783
10784 # type: textblock
10785 #: ../src/guestfs-actions.pod:4070 ../fish/guestfish-actions.pod:3147
10786 msgid "Regular file"
10787 msgstr ""
10788
10789 # type: =item
10790 #: ../src/guestfs-actions.pod:4072 ../fish/guestfish-actions.pod:3149
10791 msgid "'s'"
10792 msgstr ""
10793
10794 # type: textblock
10795 #: ../src/guestfs-actions.pod:4074 ../fish/guestfish-actions.pod:3151
10796 msgid "Socket"
10797 msgstr ""
10798
10799 # type: =item
10800 #: ../src/guestfs-actions.pod:4076 ../fish/guestfish-actions.pod:3153
10801 msgid "'u'"
10802 msgstr ""
10803
10804 # type: textblock
10805 #: ../src/guestfs-actions.pod:4078 ../fish/guestfish-actions.pod:3155
10806 msgid "Unknown file type"
10807 msgstr ""
10808
10809 # type: =item
10810 #: ../src/guestfs-actions.pod:4080 ../fish/guestfish-actions.pod:3157
10811 msgid "'?'"
10812 msgstr ""
10813
10814 # type: textblock
10815 #: ../src/guestfs-actions.pod:4082 ../fish/guestfish-actions.pod:3159
10816 msgid "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
10817 msgstr ""
10818
10819 # type: textblock
10820 #: ../src/guestfs-actions.pod:4087
10821 msgid ""
10822 "This function is primarily intended for use by programs.  To get a simple "
10823 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
10824 "consumption, use C<guestfs_ll>."
10825 msgstr ""
10826
10827 # type: textblock
10828 #: ../src/guestfs-actions.pod:4091
10829 msgid ""
10830 "This function returns a C<struct guestfs_dirent_list *> (see "
10831 "E<lt>guestfs-structs.hE<gt>), or NULL if there was an error.  I<The caller "
10832 "must call C<guestfs_free_dirent_list> after use>."
10833 msgstr ""
10834
10835 # type: =head2
10836 #: ../src/guestfs-actions.pod:4096
10837 msgid "guestfs_readlink"
10838 msgstr ""
10839
10840 # type: verbatim
10841 #: ../src/guestfs-actions.pod:4098
10842 #, no-wrap
10843 msgid ""
10844 " char *guestfs_readlink (guestfs_h *g,\n"
10845 "\t\tconst char *path);\n"
10846 "\n"
10847 msgstr ""
10848
10849 # type: textblock
10850 #: ../src/guestfs-actions.pod:4101 ../fish/guestfish-actions.pod:3172
10851 msgid "This command reads the target of a symbolic link."
10852 msgstr ""
10853
10854 # type: =head2
10855 #: ../src/guestfs-actions.pod:4106
10856 msgid "guestfs_readlinklist"
10857 msgstr ""
10858
10859 # type: verbatim
10860 #: ../src/guestfs-actions.pod:4108
10861 #, no-wrap
10862 msgid ""
10863 " char **guestfs_readlinklist (guestfs_h *g,\n"
10864 "\t\tconst char *path,\n"
10865 "\t\tchar *const *names);\n"
10866 "\n"
10867 msgstr ""
10868
10869 # type: textblock
10870 #: ../src/guestfs-actions.pod:4112 ../fish/guestfish-actions.pod:3178
10871 msgid ""
10872 "This call allows you to do a C<readlink> operation on multiple files, where "
10873 "all files are in the directory C<path>.  C<names> is the list of files from "
10874 "this directory."
10875 msgstr ""
10876
10877 # type: textblock
10878 #: ../src/guestfs-actions.pod:4116 ../fish/guestfish-actions.pod:3182
10879 msgid ""
10880 "On return you get a list of strings, with a one-to-one correspondence to the "
10881 "C<names> list.  Each string is the value of the symbolic link."
10882 msgstr ""
10883
10884 # type: textblock
10885 #: ../src/guestfs-actions.pod:4120 ../fish/guestfish-actions.pod:3186
10886 msgid ""
10887 "If the C<readlink(2)> operation fails on any name, then the corresponding "
10888 "result string is the empty string C<\"\">.  However the whole operation is "
10889 "completed even if there were C<readlink(2)> errors, and so you can call this "
10890 "function with names where you don't know if they are symbolic links already "
10891 "(albeit slightly less efficient)."
10892 msgstr ""
10893
10894 # type: textblock
10895 #: ../src/guestfs-actions.pod:4127 ../fish/guestfish-actions.pod:3193
10896 msgid ""
10897 "This call is intended for programs that want to efficiently list a directory "
10898 "contents without making many round-trips.  Very long directory listings "
10899 "might cause the protocol message size to be exceeded, causing this call to "
10900 "fail.  The caller must split up such requests into smaller groups of names."
10901 msgstr ""
10902
10903 # type: =head2
10904 #: ../src/guestfs-actions.pod:4138
10905 msgid "guestfs_realpath"
10906 msgstr ""
10907
10908 # type: verbatim
10909 #: ../src/guestfs-actions.pod:4140
10910 #, no-wrap
10911 msgid ""
10912 " char *guestfs_realpath (guestfs_h *g,\n"
10913 "\t\tconst char *path);\n"
10914 "\n"
10915 msgstr ""
10916
10917 # type: textblock
10918 #: ../src/guestfs-actions.pod:4143 ../fish/guestfish-actions.pod:3204
10919 msgid ""
10920 "Return the canonicalized absolute pathname of C<path>.  The returned path "
10921 "has no C<.>, C<..> or symbolic link path elements."
10922 msgstr ""
10923
10924 # type: =head2
10925 #: ../src/guestfs-actions.pod:4149
10926 msgid "guestfs_removexattr"
10927 msgstr ""
10928
10929 # type: verbatim
10930 #: ../src/guestfs-actions.pod:4151
10931 #, no-wrap
10932 msgid ""
10933 " int guestfs_removexattr (guestfs_h *g,\n"
10934 "\t\tconst char *xattr,\n"
10935 "\t\tconst char *path);\n"
10936 "\n"
10937 msgstr ""
10938
10939 # type: textblock
10940 #: ../src/guestfs-actions.pod:4155 ../fish/guestfish-actions.pod:3211
10941 msgid "This call removes the extended attribute named C<xattr> of the file C<path>."
10942 msgstr ""
10943
10944 # type: textblock
10945 #: ../src/guestfs-actions.pod:4158
10946 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
10947 msgstr ""
10948
10949 # type: =head2
10950 #: ../src/guestfs-actions.pod:4162
10951 msgid "guestfs_resize2fs"
10952 msgstr ""
10953
10954 # type: verbatim
10955 #: ../src/guestfs-actions.pod:4164
10956 #, no-wrap
10957 msgid ""
10958 " int guestfs_resize2fs (guestfs_h *g,\n"
10959 "\t\tconst char *device);\n"
10960 "\n"
10961 msgstr ""
10962
10963 # type: textblock
10964 #: ../src/guestfs-actions.pod:4167 ../fish/guestfish-actions.pod:3220
10965 msgid ""
10966 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
10967 "underlying device."
10968 msgstr ""
10969
10970 # type: textblock
10971 #: ../src/guestfs-actions.pod:4170
10972 msgid ""
10973 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
10974 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
10975 "sometimes gives an error about this and sometimes not.  In any case, it is "
10976 "always safe to call C<guestfs_e2fsck_f> before calling this function."
10977 msgstr ""
10978
10979 # type: =head2
10980 #: ../src/guestfs-actions.pod:4178
10981 msgid "guestfs_resize2fs_size"
10982 msgstr ""
10983
10984 # type: verbatim
10985 #: ../src/guestfs-actions.pod:4180
10986 #, no-wrap
10987 msgid ""
10988 " int guestfs_resize2fs_size (guestfs_h *g,\n"
10989 "\t\tconst char *device,\n"
10990 "\t\tint64_t size);\n"
10991 "\n"
10992 msgstr ""
10993
10994 # type: textblock
10995 #: ../src/guestfs-actions.pod:4184
10996 msgid ""
10997 "This command is the same as C<guestfs_resize2fs> except that it allows you "
10998 "to specify the new size (in bytes) explicitly."
10999 msgstr ""
11000
11001 # type: =head2
11002 #: ../src/guestfs-actions.pod:4189
11003 msgid "guestfs_rm"
11004 msgstr ""
11005
11006 # type: verbatim
11007 #: ../src/guestfs-actions.pod:4191
11008 #, no-wrap
11009 msgid ""
11010 " int guestfs_rm (guestfs_h *g,\n"
11011 "\t\tconst char *path);\n"
11012 "\n"
11013 msgstr ""
11014
11015 # type: textblock
11016 #: ../src/guestfs-actions.pod:4194 ../fish/guestfish-actions.pod:3240
11017 msgid "Remove the single file C<path>."
11018 msgstr ""
11019
11020 # type: =head2
11021 #: ../src/guestfs-actions.pod:4198
11022 msgid "guestfs_rm_rf"
11023 msgstr ""
11024
11025 # type: verbatim
11026 #: ../src/guestfs-actions.pod:4200
11027 #, no-wrap
11028 msgid ""
11029 " int guestfs_rm_rf (guestfs_h *g,\n"
11030 "\t\tconst char *path);\n"
11031 "\n"
11032 msgstr ""
11033
11034 # type: textblock
11035 #: ../src/guestfs-actions.pod:4203 ../fish/guestfish-actions.pod:3246
11036 msgid ""
11037 "Remove the file or directory C<path>, recursively removing the contents if "
11038 "its a directory.  This is like the C<rm -rf> shell command."
11039 msgstr ""
11040
11041 # type: =head2
11042 #: ../src/guestfs-actions.pod:4209
11043 msgid "guestfs_rmdir"
11044 msgstr ""
11045
11046 # type: verbatim
11047 #: ../src/guestfs-actions.pod:4211
11048 #, no-wrap
11049 msgid ""
11050 " int guestfs_rmdir (guestfs_h *g,\n"
11051 "\t\tconst char *path);\n"
11052 "\n"
11053 msgstr ""
11054
11055 # type: textblock
11056 #: ../src/guestfs-actions.pod:4214 ../fish/guestfish-actions.pod:3254
11057 msgid "Remove the single directory C<path>."
11058 msgstr ""
11059
11060 # type: =head2
11061 #: ../src/guestfs-actions.pod:4218
11062 msgid "guestfs_rmmountpoint"
11063 msgstr ""
11064
11065 # type: verbatim
11066 #: ../src/guestfs-actions.pod:4220
11067 #, no-wrap
11068 msgid ""
11069 " int guestfs_rmmountpoint (guestfs_h *g,\n"
11070 "\t\tconst char *exemptpath);\n"
11071 "\n"
11072 msgstr ""
11073
11074 # type: textblock
11075 #: ../src/guestfs-actions.pod:4223
11076 msgid ""
11077 "This calls removes a mountpoint that was previously created with "
11078 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
11079 msgstr ""
11080
11081 # type: =head2
11082 #: ../src/guestfs-actions.pod:4229
11083 msgid "guestfs_scrub_device"
11084 msgstr ""
11085
11086 # type: verbatim
11087 #: ../src/guestfs-actions.pod:4231
11088 #, no-wrap
11089 msgid ""
11090 " int guestfs_scrub_device (guestfs_h *g,\n"
11091 "\t\tconst char *device);\n"
11092 "\n"
11093 msgstr ""
11094
11095 # type: textblock
11096 #: ../src/guestfs-actions.pod:4234 ../fish/guestfish-actions.pod:3268
11097 msgid ""
11098 "This command writes patterns over C<device> to make data retrieval more "
11099 "difficult."
11100 msgstr ""
11101
11102 # type: textblock
11103 #: ../src/guestfs-actions.pod:4237 ../src/guestfs-actions.pod:4255 ../src/guestfs-actions.pod:4271 ../fish/guestfish-actions.pod:3271 ../fish/guestfish-actions.pod:3286 ../fish/guestfish-actions.pod:3299
11104 msgid ""
11105 "It is an interface to the L<scrub(1)> program.  See that manual page for "
11106 "more details."
11107 msgstr ""
11108
11109 # type: =head2
11110 #: ../src/guestfs-actions.pod:4245
11111 msgid "guestfs_scrub_file"
11112 msgstr ""
11113
11114 # type: verbatim
11115 #: ../src/guestfs-actions.pod:4247
11116 #, no-wrap
11117 msgid ""
11118 " int guestfs_scrub_file (guestfs_h *g,\n"
11119 "\t\tconst char *file);\n"
11120 "\n"
11121 msgstr ""
11122
11123 # type: textblock
11124 #: ../src/guestfs-actions.pod:4250 ../fish/guestfish-actions.pod:3281
11125 msgid ""
11126 "This command writes patterns over a file to make data retrieval more "
11127 "difficult."
11128 msgstr ""
11129
11130 # type: textblock
11131 #: ../src/guestfs-actions.pod:4253 ../fish/guestfish-actions.pod:3284
11132 msgid "The file is I<removed> after scrubbing."
11133 msgstr ""
11134
11135 # type: =head2
11136 #: ../src/guestfs-actions.pod:4260
11137 msgid "guestfs_scrub_freespace"
11138 msgstr ""
11139
11140 # type: verbatim
11141 #: ../src/guestfs-actions.pod:4262
11142 #, no-wrap
11143 msgid ""
11144 " int guestfs_scrub_freespace (guestfs_h *g,\n"
11145 "\t\tconst char *dir);\n"
11146 "\n"
11147 msgstr ""
11148
11149 # type: textblock
11150 #: ../src/guestfs-actions.pod:4265
11151 msgid ""
11152 "This command creates the directory C<dir> and then fills it with files until "
11153 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
11154 "and deletes them.  The intention is to scrub any free space on the partition "
11155 "containing C<dir>."
11156 msgstr ""
11157
11158 # type: =head2
11159 #: ../src/guestfs-actions.pod:4276
11160 msgid "guestfs_set_append"
11161 msgstr ""
11162
11163 # type: verbatim
11164 #: ../src/guestfs-actions.pod:4278
11165 #, no-wrap
11166 msgid ""
11167 " int guestfs_set_append (guestfs_h *g,\n"
11168 "\t\tconst char *append);\n"
11169 "\n"
11170 msgstr ""
11171
11172 # type: textblock
11173 #: ../src/guestfs-actions.pod:4281 ../fish/guestfish-actions.pod:3308
11174 msgid ""
11175 "This function is used to add additional options to the guest kernel command "
11176 "line."
11177 msgstr ""
11178
11179 # type: textblock
11180 #: ../src/guestfs-actions.pod:4284 ../fish/guestfish-actions.pod:3311
11181 msgid ""
11182 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
11183 "environment variable."
11184 msgstr ""
11185
11186 # type: textblock
11187 #: ../src/guestfs-actions.pod:4287 ../fish/guestfish-actions.pod:3314
11188 msgid ""
11189 "Setting C<append> to C<NULL> means I<no> additional options are passed "
11190 "(libguestfs always adds a few of its own)."
11191 msgstr ""
11192
11193 # type: =head2
11194 #: ../src/guestfs-actions.pod:4292
11195 msgid "guestfs_set_autosync"
11196 msgstr ""
11197
11198 # type: verbatim
11199 #: ../src/guestfs-actions.pod:4294
11200 #, no-wrap
11201 msgid ""
11202 " int guestfs_set_autosync (guestfs_h *g,\n"
11203 "\t\tint autosync);\n"
11204 "\n"
11205 msgstr ""
11206
11207 # type: textblock
11208 #: ../src/guestfs-actions.pod:4297
11209 msgid ""
11210 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
11211 "effort attempt to run C<guestfs_umount_all> followed by C<guestfs_sync> when "
11212 "the handle is closed (also if the program exits without closing handles)."
11213 msgstr ""
11214
11215 # type: textblock
11216 #: ../src/guestfs-actions.pod:4302 ../fish/guestfish-actions.pod:3328
11217 msgid ""
11218 "This is disabled by default (except in guestfish where it is enabled by "
11219 "default)."
11220 msgstr ""
11221
11222 # type: =head2
11223 #: ../src/guestfs-actions.pod:4307
11224 msgid "guestfs_set_direct"
11225 msgstr ""
11226
11227 # type: verbatim
11228 #: ../src/guestfs-actions.pod:4309
11229 #, no-wrap
11230 msgid ""
11231 " int guestfs_set_direct (guestfs_h *g,\n"
11232 "\t\tint direct);\n"
11233 "\n"
11234 msgstr ""
11235
11236 # type: textblock
11237 #: ../src/guestfs-actions.pod:4312 ../fish/guestfish-actions.pod:3337
11238 msgid ""
11239 "If the direct appliance mode flag is enabled, then stdin and stdout are "
11240 "passed directly through to the appliance once it is launched."
11241 msgstr ""
11242
11243 # type: textblock
11244 #: ../src/guestfs-actions.pod:4316
11245 msgid ""
11246 "One consequence of this is that log messages aren't caught by the library "
11247 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
11248 "stdout."
11249 msgstr ""
11250
11251 # type: textblock
11252 #: ../src/guestfs-actions.pod:4320 ../fish/guestfish-actions.pod:3345
11253 msgid "You probably don't want to use this unless you know what you are doing."
11254 msgstr ""
11255
11256 # type: textblock
11257 #: ../src/guestfs-actions.pod:4323 ../fish/guestfish-actions.pod:3348
11258 msgid "The default is disabled."
11259 msgstr ""
11260
11261 # type: =head2
11262 #: ../src/guestfs-actions.pod:4327
11263 msgid "guestfs_set_e2label"
11264 msgstr ""
11265
11266 # type: verbatim
11267 #: ../src/guestfs-actions.pod:4329
11268 #, no-wrap
11269 msgid ""
11270 " int guestfs_set_e2label (guestfs_h *g,\n"
11271 "\t\tconst char *device,\n"
11272 "\t\tconst char *label);\n"
11273 "\n"
11274 msgstr ""
11275
11276 # type: textblock
11277 #: ../src/guestfs-actions.pod:4333 ../fish/guestfish-actions.pod:3354
11278 msgid ""
11279 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
11280 "C<label>.  Filesystem labels are limited to 16 characters."
11281 msgstr ""
11282
11283 # type: textblock
11284 #: ../src/guestfs-actions.pod:4337
11285 msgid ""
11286 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
11287 "the existing label on a filesystem."
11288 msgstr ""
11289
11290 # type: =head2
11291 #: ../src/guestfs-actions.pod:4342
11292 msgid "guestfs_set_e2uuid"
11293 msgstr ""
11294
11295 # type: verbatim
11296 #: ../src/guestfs-actions.pod:4344
11297 #, no-wrap
11298 msgid ""
11299 " int guestfs_set_e2uuid (guestfs_h *g,\n"
11300 "\t\tconst char *device,\n"
11301 "\t\tconst char *uuid);\n"
11302 "\n"
11303 msgstr ""
11304
11305 # type: textblock
11306 #: ../src/guestfs-actions.pod:4348 ../fish/guestfish-actions.pod:3365
11307 msgid ""
11308 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
11309 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
11310 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
11311 msgstr ""
11312
11313 # type: textblock
11314 #: ../src/guestfs-actions.pod:4353
11315 msgid ""
11316 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
11317 "the existing UUID of a filesystem."
11318 msgstr ""
11319
11320 # type: =head2
11321 #: ../src/guestfs-actions.pod:4358
11322 msgid "guestfs_set_memsize"
11323 msgstr ""
11324
11325 # type: verbatim
11326 #: ../src/guestfs-actions.pod:4360
11327 #, no-wrap
11328 msgid ""
11329 " int guestfs_set_memsize (guestfs_h *g,\n"
11330 "\t\tint memsize);\n"
11331 "\n"
11332 msgstr ""
11333
11334 # type: textblock
11335 #: ../src/guestfs-actions.pod:4363
11336 msgid ""
11337 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
11338 "This only has any effect if called before C<guestfs_launch>."
11339 msgstr ""
11340
11341 # type: textblock
11342 #: ../src/guestfs-actions.pod:4367 ../fish/guestfish-actions.pod:3383
11343 msgid ""
11344 "You can also change this by setting the environment variable "
11345 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
11346 msgstr ""
11347
11348 # type: =head2
11349 #: ../src/guestfs-actions.pod:4376
11350 msgid "guestfs_set_network"
11351 msgstr ""
11352
11353 # type: verbatim
11354 #: ../src/guestfs-actions.pod:4378
11355 #, no-wrap
11356 msgid ""
11357 " int guestfs_set_network (guestfs_h *g,\n"
11358 "\t\tint network);\n"
11359 "\n"
11360 msgstr ""
11361
11362 # type: textblock
11363 #: ../src/guestfs-actions.pod:4381 ../fish/guestfish-actions.pod:3396
11364 msgid ""
11365 "If C<network> is true, then the network is enabled in the libguestfs "
11366 "appliance.  The default is false."
11367 msgstr ""
11368
11369 # type: textblock
11370 #: ../src/guestfs-actions.pod:4384 ../fish/guestfish-actions.pod:3399
11371 msgid ""
11372 "This affects whether commands are able to access the network (see "
11373 "L<guestfs(3)/RUNNING COMMANDS>)."
11374 msgstr ""
11375
11376 # type: textblock
11377 #: ../src/guestfs-actions.pod:4387
11378 msgid ""
11379 "You must call this before calling C<guestfs_launch>, otherwise it has no "
11380 "effect."
11381 msgstr ""
11382
11383 # type: =head2
11384 #: ../src/guestfs-actions.pod:4392
11385 msgid "guestfs_set_path"
11386 msgstr ""
11387
11388 # type: verbatim
11389 #: ../src/guestfs-actions.pod:4394
11390 #, no-wrap
11391 msgid ""
11392 " int guestfs_set_path (guestfs_h *g,\n"
11393 "\t\tconst char *searchpath);\n"
11394 "\n"
11395 msgstr ""
11396
11397 # type: textblock
11398 #: ../src/guestfs-actions.pod:4397 ../fish/guestfish-actions.pod:3411
11399 msgid "Set the path that libguestfs searches for kernel and initrd.img."
11400 msgstr ""
11401
11402 # type: textblock
11403 #: ../src/guestfs-actions.pod:4399 ../fish/guestfish-actions.pod:3413
11404 msgid ""
11405 "The default is C<$libdir/guestfs> unless overridden by setting "
11406 "C<LIBGUESTFS_PATH> environment variable."
11407 msgstr ""
11408
11409 # type: textblock
11410 #: ../src/guestfs-actions.pod:4402 ../fish/guestfish-actions.pod:3416
11411 msgid "Setting C<path> to C<NULL> restores the default path."
11412 msgstr ""
11413
11414 # type: =head2
11415 #: ../src/guestfs-actions.pod:4406
11416 msgid "guestfs_set_qemu"
11417 msgstr ""
11418
11419 # type: verbatim
11420 #: ../src/guestfs-actions.pod:4408
11421 #, no-wrap
11422 msgid ""
11423 " int guestfs_set_qemu (guestfs_h *g,\n"
11424 "\t\tconst char *qemu);\n"
11425 "\n"
11426 msgstr ""
11427
11428 # type: textblock
11429 #: ../src/guestfs-actions.pod:4411 ../fish/guestfish-actions.pod:3424
11430 msgid "Set the qemu binary that we will use."
11431 msgstr ""
11432
11433 # type: textblock
11434 #: ../src/guestfs-actions.pod:4413 ../fish/guestfish-actions.pod:3426
11435 msgid "The default is chosen when the library was compiled by the configure script."
11436 msgstr ""
11437
11438 # type: textblock
11439 #: ../src/guestfs-actions.pod:4416 ../fish/guestfish-actions.pod:3429
11440 msgid ""
11441 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
11442 "variable."
11443 msgstr ""
11444
11445 # type: textblock
11446 #: ../src/guestfs-actions.pod:4419 ../fish/guestfish-actions.pod:3432
11447 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
11448 msgstr ""
11449
11450 # type: textblock
11451 #: ../src/guestfs-actions.pod:4421 ../fish/guestfish-actions.pod:3434
11452 msgid ""
11453 "Note that you should call this function as early as possible after creating "
11454 "the handle.  This is because some pre-launch operations depend on testing "
11455 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
11456 "don't retest features, and so you might see inconsistent results.  Using the "
11457 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
11458 "the qemu binary at the same time as the handle is created."
11459 msgstr ""
11460
11461 # type: =head2
11462 #: ../src/guestfs-actions.pod:4431
11463 msgid "guestfs_set_recovery_proc"
11464 msgstr ""
11465
11466 # type: verbatim
11467 #: ../src/guestfs-actions.pod:4433
11468 #, no-wrap
11469 msgid ""
11470 " int guestfs_set_recovery_proc (guestfs_h *g,\n"
11471 "\t\tint recoveryproc);\n"
11472 "\n"
11473 msgstr ""
11474
11475 # type: textblock
11476 #: ../src/guestfs-actions.pod:4436
11477 msgid ""
11478 "If this is called with the parameter C<false> then C<guestfs_launch> does "
11479 "not create a recovery process.  The purpose of the recovery process is to "
11480 "stop runaway qemu processes in the case where the main program aborts "
11481 "abruptly."
11482 msgstr ""
11483
11484 # type: textblock
11485 #: ../src/guestfs-actions.pod:4441
11486 msgid ""
11487 "This only has any effect if called before C<guestfs_launch>, and the default "
11488 "is true."
11489 msgstr ""
11490
11491 # type: textblock
11492 #: ../src/guestfs-actions.pod:4444 ../fish/guestfish-actions.pod:3456
11493 msgid ""
11494 "About the only time when you would want to disable this is if the main "
11495 "process will fork itself into the background (\"daemonize\" itself).  In "
11496 "this case the recovery process thinks that the main program has disappeared "
11497 "and so kills qemu, which is not very helpful."
11498 msgstr ""
11499
11500 # type: =head2
11501 #: ../src/guestfs-actions.pod:4452
11502 msgid "guestfs_set_selinux"
11503 msgstr ""
11504
11505 # type: verbatim
11506 #: ../src/guestfs-actions.pod:4454
11507 #, no-wrap
11508 msgid ""
11509 " int guestfs_set_selinux (guestfs_h *g,\n"
11510 "\t\tint selinux);\n"
11511 "\n"
11512 msgstr ""
11513
11514 # type: textblock
11515 #: ../src/guestfs-actions.pod:4457 ../fish/guestfish-actions.pod:3468
11516 msgid ""
11517 "This sets the selinux flag that is passed to the appliance at boot time.  "
11518 "The default is C<selinux=0> (disabled)."
11519 msgstr ""
11520
11521 # type: textblock
11522 #: ../src/guestfs-actions.pod:4460 ../fish/guestfish-actions.pod:3471
11523 msgid ""
11524 "Note that if SELinux is enabled, it is always in Permissive mode "
11525 "(C<enforcing=0>)."
11526 msgstr ""
11527
11528 # type: =head2
11529 #: ../src/guestfs-actions.pod:4468
11530 msgid "guestfs_set_trace"
11531 msgstr ""
11532
11533 # type: verbatim
11534 #: ../src/guestfs-actions.pod:4470
11535 #, no-wrap
11536 msgid ""
11537 " int guestfs_set_trace (guestfs_h *g,\n"
11538 "\t\tint trace);\n"
11539 "\n"
11540 msgstr ""
11541
11542 # type: textblock
11543 #: ../src/guestfs-actions.pod:4473 ../fish/guestfish-actions.pod:3483
11544 msgid ""
11545 "If the command trace flag is set to 1, then commands are printed on stderr "
11546 "before they are executed in a format which is very similar to the one used "
11547 "by guestfish.  In other words, you can run a program with this enabled, and "
11548 "you will get out a script which you can feed to guestfish to perform the "
11549 "same set of actions."
11550 msgstr ""
11551
11552 # type: textblock
11553 #: ../src/guestfs-actions.pod:4480 ../fish/guestfish-actions.pod:3490
11554 msgid ""
11555 "If you want to trace C API calls into libguestfs (and other libraries) then "
11556 "possibly a better way is to use the external ltrace(1) command."
11557 msgstr ""
11558
11559 # type: textblock
11560 #: ../src/guestfs-actions.pod:4484 ../fish/guestfish-actions.pod:3494
11561 msgid ""
11562 "Command traces are disabled unless the environment variable "
11563 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
11564 msgstr ""
11565
11566 # type: =head2
11567 #: ../src/guestfs-actions.pod:4489
11568 msgid "guestfs_set_verbose"
11569 msgstr ""
11570
11571 # type: verbatim
11572 #: ../src/guestfs-actions.pod:4491
11573 #, no-wrap
11574 msgid ""
11575 " int guestfs_set_verbose (guestfs_h *g,\n"
11576 "\t\tint verbose);\n"
11577 "\n"
11578 msgstr ""
11579
11580 # type: textblock
11581 #: ../src/guestfs-actions.pod:4494 ../fish/guestfish-actions.pod:3503
11582 msgid "If C<verbose> is true, this turns on verbose messages (to C<stderr>)."
11583 msgstr ""
11584
11585 # type: textblock
11586 #: ../src/guestfs-actions.pod:4496 ../fish/guestfish-actions.pod:3505
11587 msgid ""
11588 "Verbose messages are disabled unless the environment variable "
11589 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
11590 msgstr ""
11591
11592 # type: =head2
11593 #: ../src/guestfs-actions.pod:4501
11594 msgid "guestfs_setcon"
11595 msgstr ""
11596
11597 # type: verbatim
11598 #: ../src/guestfs-actions.pod:4503
11599 #, no-wrap
11600 msgid ""
11601 " int guestfs_setcon (guestfs_h *g,\n"
11602 "\t\tconst char *context);\n"
11603 "\n"
11604 msgstr ""
11605
11606 # type: textblock
11607 #: ../src/guestfs-actions.pod:4506 ../fish/guestfish-actions.pod:3512
11608 msgid ""
11609 "This sets the SELinux security context of the daemon to the string "
11610 "C<context>."
11611 msgstr ""
11612
11613 # type: textblock
11614 #: ../src/guestfs-actions.pod:4509 ../fish/guestfish-actions.pod:3515
11615 msgid "See the documentation about SELINUX in L<guestfs(3)>."
11616 msgstr ""
11617
11618 # type: =head2
11619 #: ../src/guestfs-actions.pod:4513
11620 msgid "guestfs_setxattr"
11621 msgstr ""
11622
11623 # type: verbatim
11624 #: ../src/guestfs-actions.pod:4515
11625 #, no-wrap
11626 msgid ""
11627 " int guestfs_setxattr (guestfs_h *g,\n"
11628 "\t\tconst char *xattr,\n"
11629 "\t\tconst char *val,\n"
11630 "\t\tint vallen,\n"
11631 "\t\tconst char *path);\n"
11632 "\n"
11633 msgstr ""
11634
11635 # type: textblock
11636 #: ../src/guestfs-actions.pod:4521 ../fish/guestfish-actions.pod:3521
11637 msgid ""
11638 "This call sets the extended attribute named C<xattr> of the file C<path> to "
11639 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
11640 msgstr ""
11641
11642 # type: textblock
11643 #: ../src/guestfs-actions.pod:4525
11644 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
11645 msgstr ""
11646
11647 # type: =head2
11648 #: ../src/guestfs-actions.pod:4529
11649 msgid "guestfs_sfdisk"
11650 msgstr ""
11651
11652 # type: verbatim
11653 #: ../src/guestfs-actions.pod:4531
11654 #, no-wrap
11655 msgid ""
11656 " int guestfs_sfdisk (guestfs_h *g,\n"
11657 "\t\tconst char *device,\n"
11658 "\t\tint cyls,\n"
11659 "\t\tint heads,\n"
11660 "\t\tint sectors,\n"
11661 "\t\tchar *const *lines);\n"
11662 "\n"
11663 msgstr ""
11664
11665 # type: textblock
11666 #: ../src/guestfs-actions.pod:4538 ../fish/guestfish-actions.pod:3531
11667 msgid ""
11668 "This is a direct interface to the L<sfdisk(8)> program for creating "
11669 "partitions on block devices."
11670 msgstr ""
11671
11672 # type: textblock
11673 #: ../src/guestfs-actions.pod:4541 ../fish/guestfish-actions.pod:3534
11674 msgid "C<device> should be a block device, for example C</dev/sda>."
11675 msgstr ""
11676
11677 # type: textblock
11678 #: ../src/guestfs-actions.pod:4543 ../fish/guestfish-actions.pod:3536
11679 msgid ""
11680 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
11681 "sectors on the device, which are passed directly to sfdisk as the I<-C>, "
11682 "I<-H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
11683 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
11684 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
11685 "the kernel) cannot work out the right geometry and you will need to tell it."
11686 msgstr ""
11687
11688 # type: textblock
11689 #: ../src/guestfs-actions.pod:4551 ../fish/guestfish-actions.pod:3544
11690 msgid ""
11691 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
11692 "refer to the L<sfdisk(8)> manpage."
11693 msgstr ""
11694
11695 # type: textblock
11696 #: ../src/guestfs-actions.pod:4554 ../fish/guestfish-actions.pod:3547
11697 msgid ""
11698 "To create a single partition occupying the whole disk, you would pass "
11699 "C<lines> as a single element list, when the single element being the string "
11700 "C<,> (comma)."
11701 msgstr ""
11702
11703 # type: textblock
11704 #: ../src/guestfs-actions.pod:4558
11705 msgid "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
11706 msgstr ""
11707
11708 # type: =head2
11709 #: ../src/guestfs-actions.pod:4566
11710 msgid "guestfs_sfdiskM"
11711 msgstr ""
11712
11713 # type: verbatim
11714 #: ../src/guestfs-actions.pod:4568
11715 #, no-wrap
11716 msgid ""
11717 " int guestfs_sfdiskM (guestfs_h *g,\n"
11718 "\t\tconst char *device,\n"
11719 "\t\tchar *const *lines);\n"
11720 "\n"
11721 msgstr ""
11722
11723 # type: textblock
11724 #: ../src/guestfs-actions.pod:4572
11725 msgid ""
11726 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
11727 "partition sizes are specified in megabytes only (rounded to the nearest "
11728 "cylinder) and you don't need to specify the cyls, heads and sectors "
11729 "parameters which were rarely if ever used anyway."
11730 msgstr ""
11731
11732 # type: textblock
11733 #: ../src/guestfs-actions.pod:4578
11734 msgid ""
11735 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
11736 "C<guestfs_part_disk>"
11737 msgstr ""
11738
11739 # type: =head2
11740 #: ../src/guestfs-actions.pod:4586
11741 msgid "guestfs_sfdisk_N"
11742 msgstr ""
11743
11744 # type: verbatim
11745 #: ../src/guestfs-actions.pod:4588
11746 #, no-wrap
11747 msgid ""
11748 " int guestfs_sfdisk_N (guestfs_h *g,\n"
11749 "\t\tconst char *device,\n"
11750 "\t\tint partnum,\n"
11751 "\t\tint cyls,\n"
11752 "\t\tint heads,\n"
11753 "\t\tint sectors,\n"
11754 "\t\tconst char *line);\n"
11755 "\n"
11756 msgstr ""
11757
11758 # type: textblock
11759 #: ../src/guestfs-actions.pod:4596 ../fish/guestfish-actions.pod:3577
11760 msgid ""
11761 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
11762 "(note: C<n> counts from 1)."
11763 msgstr ""
11764
11765 # type: textblock
11766 #: ../src/guestfs-actions.pod:4599
11767 msgid ""
11768 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
11769 "for the cyls/heads/sectors parameters."
11770 msgstr ""
11771
11772 # type: textblock
11773 #: ../src/guestfs-actions.pod:4602
11774 msgid "See also: C<guestfs_part_add>"
11775 msgstr ""
11776
11777 # type: =head2
11778 #: ../src/guestfs-actions.pod:4609
11779 msgid "guestfs_sfdisk_disk_geometry"
11780 msgstr ""
11781
11782 # type: verbatim
11783 #: ../src/guestfs-actions.pod:4611
11784 #, no-wrap
11785 msgid ""
11786 " char *guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
11787 "\t\tconst char *device);\n"
11788 "\n"
11789 msgstr ""
11790
11791 # type: textblock
11792 #: ../src/guestfs-actions.pod:4614
11793 msgid ""
11794 "This displays the disk geometry of C<device> read from the partition table.  "
11795 "Especially in the case where the underlying block device has been resized, "
11796 "this can be different from the kernel's idea of the geometry (see "
11797 "C<guestfs_sfdisk_kernel_geometry>)."
11798 msgstr ""
11799
11800 # type: textblock
11801 #: ../src/guestfs-actions.pod:4619 ../src/guestfs-actions.pod:4632 ../fish/guestfish-actions.pod:3597 ../fish/guestfish-actions.pod:3606
11802 msgid "The result is in human-readable format, and not designed to be parsed."
11803 msgstr ""
11804
11805 # type: =head2
11806 #: ../src/guestfs-actions.pod:4625
11807 msgid "guestfs_sfdisk_kernel_geometry"
11808 msgstr ""
11809
11810 # type: verbatim
11811 #: ../src/guestfs-actions.pod:4627
11812 #, no-wrap
11813 msgid ""
11814 " char *guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
11815 "\t\tconst char *device);\n"
11816 "\n"
11817 msgstr ""
11818
11819 # type: textblock
11820 #: ../src/guestfs-actions.pod:4630 ../fish/guestfish-actions.pod:3604
11821 msgid "This displays the kernel's idea of the geometry of C<device>."
11822 msgstr ""
11823
11824 # type: =head2
11825 #: ../src/guestfs-actions.pod:4638
11826 msgid "guestfs_sfdisk_l"
11827 msgstr ""
11828
11829 # type: verbatim
11830 #: ../src/guestfs-actions.pod:4640
11831 #, no-wrap
11832 msgid ""
11833 " char *guestfs_sfdisk_l (guestfs_h *g,\n"
11834 "\t\tconst char *device);\n"
11835 "\n"
11836 msgstr ""
11837
11838 # type: textblock
11839 #: ../src/guestfs-actions.pod:4643 ../fish/guestfish-actions.pod:3613
11840 msgid ""
11841 "This displays the partition table on C<device>, in the human-readable output "
11842 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
11843 msgstr ""
11844
11845 # type: textblock
11846 #: ../src/guestfs-actions.pod:4647
11847 msgid "See also: C<guestfs_part_list>"
11848 msgstr ""
11849
11850 # type: =head2
11851 #: ../src/guestfs-actions.pod:4652
11852 msgid "guestfs_sh"
11853 msgstr ""
11854
11855 # type: verbatim
11856 #: ../src/guestfs-actions.pod:4654
11857 #, no-wrap
11858 msgid ""
11859 " char *guestfs_sh (guestfs_h *g,\n"
11860 "\t\tconst char *command);\n"
11861 "\n"
11862 msgstr ""
11863
11864 # type: textblock
11865 #: ../src/guestfs-actions.pod:4657 ../fish/guestfish-actions.pod:3623
11866 msgid ""
11867 "This call runs a command from the guest filesystem via the guest's "
11868 "C</bin/sh>."
11869 msgstr ""
11870
11871 # type: textblock
11872 #: ../src/guestfs-actions.pod:4660
11873 msgid "This is like C<guestfs_command>, but passes the command to:"
11874 msgstr ""
11875
11876 # type: verbatim
11877 #: ../src/guestfs-actions.pod:4662 ../fish/guestfish-actions.pod:3628
11878 #, no-wrap
11879 msgid ""
11880 " /bin/sh -c \"command\"\n"
11881 "\n"
11882 msgstr ""
11883
11884 # type: textblock
11885 #: ../src/guestfs-actions.pod:4664 ../fish/guestfish-actions.pod:3630
11886 msgid ""
11887 "Depending on the guest's shell, this usually results in wildcards being "
11888 "expanded, shell expressions being interpolated and so on."
11889 msgstr ""
11890
11891 # type: textblock
11892 #: ../src/guestfs-actions.pod:4668
11893 msgid "All the provisos about C<guestfs_command> apply to this call."
11894 msgstr ""
11895
11896 # type: =head2
11897 #: ../src/guestfs-actions.pod:4673
11898 msgid "guestfs_sh_lines"
11899 msgstr ""
11900
11901 # type: verbatim
11902 #: ../src/guestfs-actions.pod:4675
11903 #, no-wrap
11904 msgid ""
11905 " char **guestfs_sh_lines (guestfs_h *g,\n"
11906 "\t\tconst char *command);\n"
11907 "\n"
11908 msgstr ""
11909
11910 # type: textblock
11911 #: ../src/guestfs-actions.pod:4678
11912 msgid ""
11913 "This is the same as C<guestfs_sh>, but splits the result into a list of "
11914 "lines."
11915 msgstr ""
11916
11917 # type: textblock
11918 #: ../src/guestfs-actions.pod:4681
11919 msgid "See also: C<guestfs_command_lines>"
11920 msgstr ""
11921
11922 # type: =head2
11923 #: ../src/guestfs-actions.pod:4687
11924 msgid "guestfs_sleep"
11925 msgstr ""
11926
11927 # type: verbatim
11928 #: ../src/guestfs-actions.pod:4689
11929 #, no-wrap
11930 msgid ""
11931 " int guestfs_sleep (guestfs_h *g,\n"
11932 "\t\tint secs);\n"
11933 "\n"
11934 msgstr ""
11935
11936 # type: textblock
11937 #: ../src/guestfs-actions.pod:4692 ../fish/guestfish-actions.pod:3649
11938 msgid "Sleep for C<secs> seconds."
11939 msgstr ""
11940
11941 # type: =head2
11942 #: ../src/guestfs-actions.pod:4696 ../src/guestfs-structs.pod:109
11943 msgid "guestfs_stat"
11944 msgstr ""
11945
11946 # type: verbatim
11947 #: ../src/guestfs-actions.pod:4698
11948 #, no-wrap
11949 msgid ""
11950 " struct guestfs_stat *guestfs_stat (guestfs_h *g,\n"
11951 "\t\tconst char *path);\n"
11952 "\n"
11953 msgstr ""
11954
11955 # type: textblock
11956 #: ../src/guestfs-actions.pod:4703 ../fish/guestfish-actions.pod:3657
11957 msgid "This is the same as the C<stat(2)> system call."
11958 msgstr ""
11959
11960 # type: =head2
11961 #: ../src/guestfs-actions.pod:4709 ../src/guestfs-structs.pod:135
11962 msgid "guestfs_statvfs"
11963 msgstr ""
11964
11965 # type: verbatim
11966 #: ../src/guestfs-actions.pod:4711
11967 #, no-wrap
11968 msgid ""
11969 " struct guestfs_statvfs *guestfs_statvfs (guestfs_h *g,\n"
11970 "\t\tconst char *path);\n"
11971 "\n"
11972 msgstr ""
11973
11974 # type: textblock
11975 #: ../src/guestfs-actions.pod:4714 ../fish/guestfish-actions.pod:3663
11976 msgid ""
11977 "Returns file system statistics for any mounted file system.  C<path> should "
11978 "be a file or directory in the mounted file system (typically it is the mount "
11979 "point itself, but it doesn't need to be)."
11980 msgstr ""
11981
11982 # type: textblock
11983 #: ../src/guestfs-actions.pod:4718 ../fish/guestfish-actions.pod:3667
11984 msgid "This is the same as the C<statvfs(2)> system call."
11985 msgstr ""
11986
11987 # type: textblock
11988 #: ../src/guestfs-actions.pod:4720
11989 msgid ""
11990 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
11991 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
11992 msgstr ""
11993
11994 # type: =head2
11995 #: ../src/guestfs-actions.pod:4724
11996 msgid "guestfs_strings"
11997 msgstr ""
11998
11999 # type: verbatim
12000 #: ../src/guestfs-actions.pod:4726
12001 #, no-wrap
12002 msgid ""
12003 " char **guestfs_strings (guestfs_h *g,\n"
12004 "\t\tconst char *path);\n"
12005 "\n"
12006 msgstr ""
12007
12008 # type: textblock
12009 #: ../src/guestfs-actions.pod:4729 ../fish/guestfish-actions.pod:3673
12010 msgid ""
12011 "This runs the L<strings(1)> command on a file and returns the list of "
12012 "printable strings found."
12013 msgstr ""
12014
12015 # type: =head2
12016 #: ../src/guestfs-actions.pod:4739
12017 msgid "guestfs_strings_e"
12018 msgstr ""
12019
12020 # type: verbatim
12021 #: ../src/guestfs-actions.pod:4741
12022 #, no-wrap
12023 msgid ""
12024 " char **guestfs_strings_e (guestfs_h *g,\n"
12025 "\t\tconst char *encoding,\n"
12026 "\t\tconst char *path);\n"
12027 "\n"
12028 msgstr ""
12029
12030 # type: textblock
12031 #: ../src/guestfs-actions.pod:4745
12032 msgid ""
12033 "This is like the C<guestfs_strings> command, but allows you to specify the "
12034 "encoding of strings that are looked for in the source file C<path>."
12035 msgstr ""
12036
12037 # type: textblock
12038 #: ../src/guestfs-actions.pod:4749 ../fish/guestfish-actions.pod:3687
12039 msgid "Allowed encodings are:"
12040 msgstr ""
12041
12042 # type: =item
12043 #: ../src/guestfs-actions.pod:4753 ../fish/guestfish-actions.pod:3691
12044 msgid "s"
12045 msgstr ""
12046
12047 # type: textblock
12048 #: ../src/guestfs-actions.pod:4755
12049 msgid ""
12050 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
12051 "ISO-8859-X (this is what C<guestfs_strings> uses)."
12052 msgstr ""
12053
12054 # type: =item
12055 #: ../src/guestfs-actions.pod:4758 ../fish/guestfish-actions.pod:3696
12056 msgid "S"
12057 msgstr ""
12058
12059 # type: textblock
12060 #: ../src/guestfs-actions.pod:4760 ../fish/guestfish-actions.pod:3698
12061 msgid "Single 8-bit-byte characters."
12062 msgstr ""
12063
12064 # type: =item
12065 #: ../src/guestfs-actions.pod:4762 ../fish/guestfish-actions.pod:3700
12066 msgid "b"
12067 msgstr ""
12068
12069 # type: textblock
12070 #: ../src/guestfs-actions.pod:4764 ../fish/guestfish-actions.pod:3702
12071 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
12072 msgstr ""
12073
12074 # type: =item
12075 #: ../src/guestfs-actions.pod:4767 ../fish/guestfish-actions.pod:3705
12076 msgid "l (lower case letter L)"
12077 msgstr ""
12078
12079 # type: textblock
12080 #: ../src/guestfs-actions.pod:4769 ../fish/guestfish-actions.pod:3707
12081 msgid ""
12082 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
12083 "examining binaries in Windows guests."
12084 msgstr ""
12085
12086 # type: =item
12087 #: ../src/guestfs-actions.pod:4772 ../fish/guestfish-actions.pod:3710
12088 msgid "B"
12089 msgstr ""
12090
12091 # type: textblock
12092 #: ../src/guestfs-actions.pod:4774 ../fish/guestfish-actions.pod:3712
12093 msgid "32-bit big endian such as UCS-4BE."
12094 msgstr ""
12095
12096 # type: =item
12097 #: ../src/guestfs-actions.pod:4776 ../fish/guestfish-actions.pod:3714
12098 msgid "L"
12099 msgstr ""
12100
12101 # type: textblock
12102 #: ../src/guestfs-actions.pod:4778 ../fish/guestfish-actions.pod:3716
12103 msgid "32-bit little endian such as UCS-4LE."
12104 msgstr ""
12105
12106 # type: textblock
12107 #: ../src/guestfs-actions.pod:4782 ../fish/guestfish-actions.pod:3720
12108 msgid "The returned strings are transcoded to UTF-8."
12109 msgstr ""
12110
12111 # type: =head2
12112 #: ../src/guestfs-actions.pod:4791
12113 msgid "guestfs_swapoff_device"
12114 msgstr ""
12115
12116 # type: verbatim
12117 #: ../src/guestfs-actions.pod:4793
12118 #, no-wrap
12119 msgid ""
12120 " int guestfs_swapoff_device (guestfs_h *g,\n"
12121 "\t\tconst char *device);\n"
12122 "\n"
12123 msgstr ""
12124
12125 # type: textblock
12126 #: ../src/guestfs-actions.pod:4796
12127 msgid ""
12128 "This command disables the libguestfs appliance swap device or partition "
12129 "named C<device>.  See C<guestfs_swapon_device>."
12130 msgstr ""
12131
12132 # type: =head2
12133 #: ../src/guestfs-actions.pod:4802
12134 msgid "guestfs_swapoff_file"
12135 msgstr ""
12136
12137 # type: verbatim
12138 #: ../src/guestfs-actions.pod:4804
12139 #, no-wrap
12140 msgid ""
12141 " int guestfs_swapoff_file (guestfs_h *g,\n"
12142 "\t\tconst char *file);\n"
12143 "\n"
12144 msgstr ""
12145
12146 # type: textblock
12147 #: ../src/guestfs-actions.pod:4807 ../fish/guestfish-actions.pod:3737
12148 msgid "This command disables the libguestfs appliance swap on file."
12149 msgstr ""
12150
12151 # type: =head2
12152 #: ../src/guestfs-actions.pod:4811
12153 msgid "guestfs_swapoff_label"
12154 msgstr ""
12155
12156 # type: verbatim
12157 #: ../src/guestfs-actions.pod:4813
12158 #, no-wrap
12159 msgid ""
12160 " int guestfs_swapoff_label (guestfs_h *g,\n"
12161 "\t\tconst char *label);\n"
12162 "\n"
12163 msgstr ""
12164
12165 # type: textblock
12166 #: ../src/guestfs-actions.pod:4816 ../fish/guestfish-actions.pod:3743
12167 msgid ""
12168 "This command disables the libguestfs appliance swap on labeled swap "
12169 "partition."
12170 msgstr ""
12171
12172 # type: =head2
12173 #: ../src/guestfs-actions.pod:4821
12174 msgid "guestfs_swapoff_uuid"
12175 msgstr ""
12176
12177 # type: verbatim
12178 #: ../src/guestfs-actions.pod:4823
12179 #, no-wrap
12180 msgid ""
12181 " int guestfs_swapoff_uuid (guestfs_h *g,\n"
12182 "\t\tconst char *uuid);\n"
12183 "\n"
12184 msgstr ""
12185
12186 # type: textblock
12187 #: ../src/guestfs-actions.pod:4826 ../fish/guestfish-actions.pod:3750
12188 msgid ""
12189 "This command disables the libguestfs appliance swap partition with the given "
12190 "UUID."
12191 msgstr ""
12192
12193 # type: =head2
12194 #: ../src/guestfs-actions.pod:4831
12195 msgid "guestfs_swapon_device"
12196 msgstr ""
12197
12198 # type: verbatim
12199 #: ../src/guestfs-actions.pod:4833
12200 #, no-wrap
12201 msgid ""
12202 " int guestfs_swapon_device (guestfs_h *g,\n"
12203 "\t\tconst char *device);\n"
12204 "\n"
12205 msgstr ""
12206
12207 # type: textblock
12208 #: ../src/guestfs-actions.pod:4836
12209 msgid ""
12210 "This command enables the libguestfs appliance to use the swap device or "
12211 "partition named C<device>.  The increased memory is made available for all "
12212 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
12213 msgstr ""
12214
12215 # type: textblock
12216 #: ../src/guestfs-actions.pod:4841 ../fish/guestfish-actions.pod:3762
12217 msgid ""
12218 "Note that you should not swap to existing guest swap partitions unless you "
12219 "know what you are doing.  They may contain hibernation information, or other "
12220 "information that the guest doesn't want you to trash.  You also risk leaking "
12221 "information about the host to the guest this way.  Instead, attach a new "
12222 "host device to the guest and swap on that."
12223 msgstr ""
12224
12225 # type: =head2
12226 #: ../src/guestfs-actions.pod:4850
12227 msgid "guestfs_swapon_file"
12228 msgstr ""
12229
12230 # type: verbatim
12231 #: ../src/guestfs-actions.pod:4852
12232 #, no-wrap
12233 msgid ""
12234 " int guestfs_swapon_file (guestfs_h *g,\n"
12235 "\t\tconst char *file);\n"
12236 "\n"
12237 msgstr ""
12238
12239 # type: textblock
12240 #: ../src/guestfs-actions.pod:4855
12241 msgid ""
12242 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
12243 "notes."
12244 msgstr ""
12245
12246 # type: =head2
12247 #: ../src/guestfs-actions.pod:4860
12248 msgid "guestfs_swapon_label"
12249 msgstr ""
12250
12251 # type: verbatim
12252 #: ../src/guestfs-actions.pod:4862
12253 #, no-wrap
12254 msgid ""
12255 " int guestfs_swapon_label (guestfs_h *g,\n"
12256 "\t\tconst char *label);\n"
12257 "\n"
12258 msgstr ""
12259
12260 # type: textblock
12261 #: ../src/guestfs-actions.pod:4865
12262 msgid ""
12263 "This command enables swap to a labeled swap partition.  See "
12264 "C<guestfs_swapon_device> for other notes."
12265 msgstr ""
12266
12267 # type: =head2
12268 #: ../src/guestfs-actions.pod:4870
12269 msgid "guestfs_swapon_uuid"
12270 msgstr ""
12271
12272 # type: verbatim
12273 #: ../src/guestfs-actions.pod:4872
12274 #, no-wrap
12275 msgid ""
12276 " int guestfs_swapon_uuid (guestfs_h *g,\n"
12277 "\t\tconst char *uuid);\n"
12278 "\n"
12279 msgstr ""
12280
12281 # type: textblock
12282 #: ../src/guestfs-actions.pod:4875
12283 msgid ""
12284 "This command enables swap to a swap partition with the given UUID.  See "
12285 "C<guestfs_swapon_device> for other notes."
12286 msgstr ""
12287
12288 # type: =head2
12289 #: ../src/guestfs-actions.pod:4880
12290 msgid "guestfs_sync"
12291 msgstr ""
12292
12293 # type: verbatim
12294 #: ../src/guestfs-actions.pod:4882
12295 #, no-wrap
12296 msgid ""
12297 " int guestfs_sync (guestfs_h *g);\n"
12298 "\n"
12299 msgstr ""
12300
12301 # type: textblock
12302 #: ../src/guestfs-actions.pod:4884 ../fish/guestfish-actions.pod:3794
12303 msgid ""
12304 "This syncs the disk, so that any writes are flushed through to the "
12305 "underlying disk image."
12306 msgstr ""
12307
12308 # type: textblock
12309 #: ../src/guestfs-actions.pod:4887 ../fish/guestfish-actions.pod:3797
12310 msgid ""
12311 "You should always call this if you have modified a disk image, before "
12312 "closing the handle."
12313 msgstr ""
12314
12315 # type: =head2
12316 #: ../src/guestfs-actions.pod:4892
12317 msgid "guestfs_tail"
12318 msgstr ""
12319
12320 # type: verbatim
12321 #: ../src/guestfs-actions.pod:4894
12322 #, no-wrap
12323 msgid ""
12324 " char **guestfs_tail (guestfs_h *g,\n"
12325 "\t\tconst char *path);\n"
12326 "\n"
12327 msgstr ""
12328
12329 # type: textblock
12330 #: ../src/guestfs-actions.pod:4897 ../fish/guestfish-actions.pod:3804
12331 msgid "This command returns up to the last 10 lines of a file as a list of strings."
12332 msgstr ""
12333
12334 # type: =head2
12335 #: ../src/guestfs-actions.pod:4907
12336 msgid "guestfs_tail_n"
12337 msgstr ""
12338
12339 # type: verbatim
12340 #: ../src/guestfs-actions.pod:4909
12341 #, no-wrap
12342 msgid ""
12343 " char **guestfs_tail_n (guestfs_h *g,\n"
12344 "\t\tint nrlines,\n"
12345 "\t\tconst char *path);\n"
12346 "\n"
12347 msgstr ""
12348
12349 # type: textblock
12350 #: ../src/guestfs-actions.pod:4913 ../fish/guestfish-actions.pod:3814
12351 msgid ""
12352 "If the parameter C<nrlines> is a positive number, this returns the last "
12353 "C<nrlines> lines of the file C<path>."
12354 msgstr ""
12355
12356 # type: textblock
12357 #: ../src/guestfs-actions.pod:4916 ../fish/guestfish-actions.pod:3817
12358 msgid ""
12359 "If the parameter C<nrlines> is a negative number, this returns lines from "
12360 "the file C<path>, starting with the C<-nrlines>th line."
12361 msgstr ""
12362
12363 # type: =head2
12364 #: ../src/guestfs-actions.pod:4928
12365 msgid "guestfs_tar_in"
12366 msgstr ""
12367
12368 # type: verbatim
12369 #: ../src/guestfs-actions.pod:4930
12370 #, no-wrap
12371 msgid ""
12372 " int guestfs_tar_in (guestfs_h *g,\n"
12373 "\t\tconst char *tarfile,\n"
12374 "\t\tconst char *directory);\n"
12375 "\n"
12376 msgstr ""
12377
12378 # type: textblock
12379 #: ../src/guestfs-actions.pod:4934 ../fish/guestfish-actions.pod:3829
12380 msgid ""
12381 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
12382 "tar file) into C<directory>."
12383 msgstr ""
12384
12385 # type: textblock
12386 #: ../src/guestfs-actions.pod:4937
12387 msgid "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
12388 msgstr ""
12389
12390 # type: =head2
12391 #: ../src/guestfs-actions.pod:4942
12392 msgid "guestfs_tar_out"
12393 msgstr ""
12394
12395 # type: verbatim
12396 #: ../src/guestfs-actions.pod:4944
12397 #, no-wrap
12398 msgid ""
12399 " int guestfs_tar_out (guestfs_h *g,\n"
12400 "\t\tconst char *directory,\n"
12401 "\t\tconst char *tarfile);\n"
12402 "\n"
12403 msgstr ""
12404
12405 # type: textblock
12406 #: ../src/guestfs-actions.pod:4948 ../fish/guestfish-actions.pod:3841
12407 msgid ""
12408 "This command packs the contents of C<directory> and downloads it to local "
12409 "file C<tarfile>."
12410 msgstr ""
12411
12412 # type: textblock
12413 #: ../src/guestfs-actions.pod:4951
12414 msgid ""
12415 "To download a compressed tarball, use C<guestfs_tgz_out> or "
12416 "C<guestfs_txz_out>."
12417 msgstr ""
12418
12419 # type: =head2
12420 #: ../src/guestfs-actions.pod:4956
12421 msgid "guestfs_tgz_in"
12422 msgstr ""
12423
12424 # type: verbatim
12425 #: ../src/guestfs-actions.pod:4958
12426 #, no-wrap
12427 msgid ""
12428 " int guestfs_tgz_in (guestfs_h *g,\n"
12429 "\t\tconst char *tarball,\n"
12430 "\t\tconst char *directory);\n"
12431 "\n"
12432 msgstr ""
12433
12434 # type: textblock
12435 #: ../src/guestfs-actions.pod:4962 ../fish/guestfish-actions.pod:3853
12436 msgid ""
12437 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
12438 "tar file) into C<directory>."
12439 msgstr ""
12440
12441 # type: textblock
12442 #: ../src/guestfs-actions.pod:4965
12443 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
12444 msgstr ""
12445
12446 # type: =head2
12447 #: ../src/guestfs-actions.pod:4969
12448 msgid "guestfs_tgz_out"
12449 msgstr ""
12450
12451 # type: verbatim
12452 #: ../src/guestfs-actions.pod:4971
12453 #, no-wrap
12454 msgid ""
12455 " int guestfs_tgz_out (guestfs_h *g,\n"
12456 "\t\tconst char *directory,\n"
12457 "\t\tconst char *tarball);\n"
12458 "\n"
12459 msgstr ""
12460
12461 # type: textblock
12462 #: ../src/guestfs-actions.pod:4975 ../fish/guestfish-actions.pod:3864
12463 msgid ""
12464 "This command packs the contents of C<directory> and downloads it to local "
12465 "file C<tarball>."
12466 msgstr ""
12467
12468 # type: textblock
12469 #: ../src/guestfs-actions.pod:4978
12470 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
12471 msgstr ""
12472
12473 # type: =head2
12474 #: ../src/guestfs-actions.pod:4982
12475 msgid "guestfs_touch"
12476 msgstr ""
12477
12478 # type: verbatim
12479 #: ../src/guestfs-actions.pod:4984
12480 #, no-wrap
12481 msgid ""
12482 " int guestfs_touch (guestfs_h *g,\n"
12483 "\t\tconst char *path);\n"
12484 "\n"
12485 msgstr ""
12486
12487 # type: textblock
12488 #: ../src/guestfs-actions.pod:4987 ../fish/guestfish-actions.pod:3875
12489 msgid ""
12490 "Touch acts like the L<touch(1)> command.  It can be used to update the "
12491 "timestamps on a file, or, if the file does not exist, to create a new "
12492 "zero-length file."
12493 msgstr ""
12494
12495 # type: textblock
12496 #: ../src/guestfs-actions.pod:4991 ../fish/guestfish-actions.pod:3879
12497 msgid ""
12498 "This command only works on regular files, and will fail on other file types "
12499 "such as directories, symbolic links, block special etc."
12500 msgstr ""
12501
12502 # type: =head2
12503 #: ../src/guestfs-actions.pod:4996
12504 msgid "guestfs_truncate"
12505 msgstr ""
12506
12507 # type: verbatim
12508 #: ../src/guestfs-actions.pod:4998
12509 #, no-wrap
12510 msgid ""
12511 " int guestfs_truncate (guestfs_h *g,\n"
12512 "\t\tconst char *path);\n"
12513 "\n"
12514 msgstr ""
12515
12516 # type: textblock
12517 #: ../src/guestfs-actions.pod:5001 ../fish/guestfish-actions.pod:3886
12518 msgid ""
12519 "This command truncates C<path> to a zero-length file.  The file must exist "
12520 "already."
12521 msgstr ""
12522
12523 # type: =head2
12524 #: ../src/guestfs-actions.pod:5006
12525 msgid "guestfs_truncate_size"
12526 msgstr ""
12527
12528 # type: verbatim
12529 #: ../src/guestfs-actions.pod:5008
12530 #, no-wrap
12531 msgid ""
12532 " int guestfs_truncate_size (guestfs_h *g,\n"
12533 "\t\tconst char *path,\n"
12534 "\t\tint64_t size);\n"
12535 "\n"
12536 msgstr ""
12537
12538 # type: textblock
12539 #: ../src/guestfs-actions.pod:5012 ../fish/guestfish-actions.pod:3893
12540 msgid ""
12541 "This command truncates C<path> to size C<size> bytes.  The file must exist "
12542 "already."
12543 msgstr ""
12544
12545 # type: textblock
12546 #: ../src/guestfs-actions.pod:5015
12547 msgid ""
12548 "If the current file size is less than C<size> then the file is extended to "
12549 "the required size with zero bytes.  This creates a sparse file (ie. disk "
12550 "blocks are not allocated for the file until you write to it).  To create a "
12551 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
12552 msgstr ""
12553
12554 # type: =head2
12555 #: ../src/guestfs-actions.pod:5023
12556 msgid "guestfs_tune2fs_l"
12557 msgstr ""
12558
12559 # type: verbatim
12560 #: ../src/guestfs-actions.pod:5025
12561 #, no-wrap
12562 msgid ""
12563 " char **guestfs_tune2fs_l (guestfs_h *g,\n"
12564 "\t\tconst char *device);\n"
12565 "\n"
12566 msgstr ""
12567
12568 # type: textblock
12569 #: ../src/guestfs-actions.pod:5028 ../fish/guestfish-actions.pod:3906
12570 msgid ""
12571 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
12572 "C<device>."
12573 msgstr ""
12574
12575 # type: textblock
12576 #: ../src/guestfs-actions.pod:5031 ../fish/guestfish-actions.pod:3909
12577 msgid ""
12578 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
12579 "for more details.  The list of fields returned isn't clearly defined, and "
12580 "depends on both the version of C<tune2fs> that libguestfs was built against, "
12581 "and the filesystem itself."
12582 msgstr ""
12583
12584 # type: =head2
12585 #: ../src/guestfs-actions.pod:5042
12586 msgid "guestfs_txz_in"
12587 msgstr ""
12588
12589 # type: verbatim
12590 #: ../src/guestfs-actions.pod:5044
12591 #, no-wrap
12592 msgid ""
12593 " int guestfs_txz_in (guestfs_h *g,\n"
12594 "\t\tconst char *tarball,\n"
12595 "\t\tconst char *directory);\n"
12596 "\n"
12597 msgstr ""
12598
12599 # type: textblock
12600 #: ../src/guestfs-actions.pod:5048 ../fish/guestfish-actions.pod:3918
12601 msgid ""
12602 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
12603 "tar file) into C<directory>."
12604 msgstr ""
12605
12606 # type: =head2
12607 #: ../src/guestfs-actions.pod:5053
12608 msgid "guestfs_txz_out"
12609 msgstr ""
12610
12611 # type: verbatim
12612 #: ../src/guestfs-actions.pod:5055
12613 #, no-wrap
12614 msgid ""
12615 " int guestfs_txz_out (guestfs_h *g,\n"
12616 "\t\tconst char *directory,\n"
12617 "\t\tconst char *tarball);\n"
12618 "\n"
12619 msgstr ""
12620
12621 # type: textblock
12622 #: ../src/guestfs-actions.pod:5059 ../fish/guestfish-actions.pod:3927
12623 msgid ""
12624 "This command packs the contents of C<directory> and downloads it to local "
12625 "file C<tarball> (as an xz compressed tar archive)."
12626 msgstr ""
12627
12628 # type: =head2
12629 #: ../src/guestfs-actions.pod:5064
12630 msgid "guestfs_umask"
12631 msgstr ""
12632
12633 # type: verbatim
12634 #: ../src/guestfs-actions.pod:5066
12635 #, no-wrap
12636 msgid ""
12637 " int guestfs_umask (guestfs_h *g,\n"
12638 "\t\tint mask);\n"
12639 "\n"
12640 msgstr ""
12641
12642 # type: textblock
12643 #: ../src/guestfs-actions.pod:5069 ../fish/guestfish-actions.pod:3936
12644 msgid ""
12645 "This function sets the mask used for creating new files and device nodes to "
12646 "C<mask & 0777>."
12647 msgstr ""
12648
12649 # type: textblock
12650 #: ../src/guestfs-actions.pod:5072 ../fish/guestfish-actions.pod:3939
12651 msgid ""
12652 "Typical umask values would be C<022> which creates new files with "
12653 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
12654 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
12655 msgstr ""
12656
12657 # type: textblock
12658 #: ../src/guestfs-actions.pod:5077 ../fish/guestfish-actions.pod:3944
12659 msgid ""
12660 "The default umask is C<022>.  This is important because it means that "
12661 "directories and device nodes will be created with C<0644> or C<0755> mode "
12662 "even if you specify C<0777>."
12663 msgstr ""
12664
12665 # type: textblock
12666 #: ../src/guestfs-actions.pod:5081
12667 msgid ""
12668 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
12669 "C<guestfs_mkdir>."
12670 msgstr ""
12671
12672 # type: textblock
12673 #: ../src/guestfs-actions.pod:5084 ../fish/guestfish-actions.pod:3951
12674 msgid "This call returns the previous umask."
12675 msgstr ""
12676
12677 # type: =head2
12678 #: ../src/guestfs-actions.pod:5088
12679 msgid "guestfs_umount"
12680 msgstr ""
12681
12682 # type: verbatim
12683 #: ../src/guestfs-actions.pod:5090
12684 #, no-wrap
12685 msgid ""
12686 " int guestfs_umount (guestfs_h *g,\n"
12687 "\t\tconst char *pathordevice);\n"
12688 "\n"
12689 msgstr ""
12690
12691 # type: textblock
12692 #: ../src/guestfs-actions.pod:5093 ../fish/guestfish-actions.pod:3959
12693 msgid ""
12694 "This unmounts the given filesystem.  The filesystem may be specified either "
12695 "by its mountpoint (path) or the device which contains the filesystem."
12696 msgstr ""
12697
12698 # type: =head2
12699 #: ../src/guestfs-actions.pod:5099
12700 msgid "guestfs_umount_all"
12701 msgstr ""
12702
12703 # type: verbatim
12704 #: ../src/guestfs-actions.pod:5101
12705 #, no-wrap
12706 msgid ""
12707 " int guestfs_umount_all (guestfs_h *g);\n"
12708 "\n"
12709 msgstr ""
12710
12711 # type: textblock
12712 #: ../src/guestfs-actions.pod:5103 ../fish/guestfish-actions.pod:3969
12713 msgid "This unmounts all mounted filesystems."
12714 msgstr ""
12715
12716 # type: textblock
12717 #: ../src/guestfs-actions.pod:5105 ../fish/guestfish-actions.pod:3971
12718 msgid "Some internal mounts are not unmounted by this call."
12719 msgstr ""
12720
12721 # type: =head2
12722 #: ../src/guestfs-actions.pod:5109
12723 msgid "guestfs_upload"
12724 msgstr ""
12725
12726 # type: verbatim
12727 #: ../src/guestfs-actions.pod:5111
12728 #, no-wrap
12729 msgid ""
12730 " int guestfs_upload (guestfs_h *g,\n"
12731 "\t\tconst char *filename,\n"
12732 "\t\tconst char *remotefilename);\n"
12733 "\n"
12734 msgstr ""
12735
12736 # type: textblock
12737 #: ../src/guestfs-actions.pod:5115 ../src/guestfs-actions.pod:5131 ../fish/guestfish-actions.pod:3977 ../fish/guestfish-actions.pod:3990
12738 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
12739 msgstr ""
12740
12741 # type: textblock
12742 #: ../src/guestfs-actions.pod:5120
12743 msgid "See also C<guestfs_download>."
12744 msgstr ""
12745
12746 # type: =head2
12747 #: ../src/guestfs-actions.pod:5124
12748 msgid "guestfs_upload_offset"
12749 msgstr ""
12750
12751 # type: verbatim
12752 #: ../src/guestfs-actions.pod:5126
12753 #, no-wrap
12754 msgid ""
12755 " int guestfs_upload_offset (guestfs_h *g,\n"
12756 "\t\tconst char *filename,\n"
12757 "\t\tconst char *remotefilename,\n"
12758 "\t\tint64_t offset);\n"
12759 "\n"
12760 msgstr ""
12761
12762 # type: textblock
12763 #: ../src/guestfs-actions.pod:5134 ../fish/guestfish-actions.pod:3993
12764 msgid ""
12765 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
12766 "The intention is to overwrite parts of existing files or devices, although "
12767 "if a non-existant file is specified then it is created with a \"hole\" "
12768 "before C<offset>.  The size of the data written is implicit in the size of "
12769 "the source C<filename>."
12770 msgstr ""
12771
12772 # type: textblock
12773 #: ../src/guestfs-actions.pod:5141
12774 msgid ""
12775 "Note that there is no limit on the amount of data that can be uploaded with "
12776 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
12777 "full amount unless an error occurs."
12778 msgstr ""
12779
12780 # type: textblock
12781 #: ../src/guestfs-actions.pod:5146
12782 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
12783 msgstr ""
12784
12785 # type: =head2
12786 #: ../src/guestfs-actions.pod:5150
12787 msgid "guestfs_utimens"
12788 msgstr ""
12789
12790 # type: verbatim
12791 #: ../src/guestfs-actions.pod:5152
12792 #, no-wrap
12793 msgid ""
12794 " int guestfs_utimens (guestfs_h *g,\n"
12795 "\t\tconst char *path,\n"
12796 "\t\tint64_t atsecs,\n"
12797 "\t\tint64_t atnsecs,\n"
12798 "\t\tint64_t mtsecs,\n"
12799 "\t\tint64_t mtnsecs);\n"
12800 "\n"
12801 msgstr ""
12802
12803 # type: textblock
12804 #: ../src/guestfs-actions.pod:5159 ../fish/guestfish-actions.pod:4013
12805 msgid "This command sets the timestamps of a file with nanosecond precision."
12806 msgstr ""
12807
12808 # type: textblock
12809 #: ../src/guestfs-actions.pod:5162 ../fish/guestfish-actions.pod:4016
12810 msgid ""
12811 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
12812 "from the epoch."
12813 msgstr ""
12814
12815 # type: textblock
12816 #: ../src/guestfs-actions.pod:5165 ../fish/guestfish-actions.pod:4019
12817 msgid ""
12818 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
12819 "nanoseconds from the epoch."
12820 msgstr ""
12821
12822 # type: textblock
12823 #: ../src/guestfs-actions.pod:5168 ../fish/guestfish-actions.pod:4022
12824 msgid ""
12825 "If the C<*nsecs> field contains the special value C<-1> then the "
12826 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
12827 "ignored in this case)."
12828 msgstr ""
12829
12830 # type: textblock
12831 #: ../src/guestfs-actions.pod:5172 ../fish/guestfish-actions.pod:4026
12832 msgid ""
12833 "If the C<*nsecs> field contains the special value C<-2> then the "
12834 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
12835 "in this case)."
12836 msgstr ""
12837
12838 # type: =head2
12839 #: ../src/guestfs-actions.pod:5178 ../src/guestfs-structs.pod:175
12840 msgid "guestfs_version"
12841 msgstr ""
12842
12843 # type: verbatim
12844 #: ../src/guestfs-actions.pod:5180
12845 #, no-wrap
12846 msgid ""
12847 " struct guestfs_version *guestfs_version (guestfs_h *g);\n"
12848 "\n"
12849 msgstr ""
12850
12851 # type: textblock
12852 #: ../src/guestfs-actions.pod:5182 ../fish/guestfish-actions.pod:4034
12853 msgid "Return the libguestfs version number that the program is linked against."
12854 msgstr ""
12855
12856 # type: textblock
12857 #: ../src/guestfs-actions.pod:5185 ../fish/guestfish-actions.pod:4037
12858 msgid ""
12859 "Note that because of dynamic linking this is not necessarily the version of "
12860 "libguestfs that you compiled against.  You can compile the program, and then "
12861 "at runtime dynamically link against a completely different C<libguestfs.so> "
12862 "library."
12863 msgstr ""
12864
12865 # type: textblock
12866 #: ../src/guestfs-actions.pod:5190 ../fish/guestfish-actions.pod:4042
12867 msgid ""
12868 "This call was added in version C<1.0.58>.  In previous versions of "
12869 "libguestfs there was no way to get the version number.  From C code you can "
12870 "use dynamic linker functions to find out if this symbol exists (if it "
12871 "doesn't, then it's an earlier version)."
12872 msgstr ""
12873
12874 # type: textblock
12875 #: ../src/guestfs-actions.pod:5196 ../fish/guestfish-actions.pod:4048
12876 msgid ""
12877 "The call returns a structure with four elements.  The first three (C<major>, "
12878 "C<minor> and C<release>) are numbers and correspond to the usual version "
12879 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
12880 "but may be used for distro-specific information."
12881 msgstr ""
12882
12883 # type: textblock
12884 #: ../src/guestfs-actions.pod:5202 ../fish/guestfish-actions.pod:4054
12885 msgid "To construct the original version string: C<$major.$minor.$release$extra>"
12886 msgstr ""
12887
12888 # type: textblock
12889 #: ../src/guestfs-actions.pod:5205 ../fish/guestfish-actions.pod:4057
12890 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
12891 msgstr ""
12892
12893 # type: textblock
12894 #: ../src/guestfs-actions.pod:5207
12895 msgid ""
12896 "I<Note:> Don't use this call to test for availability of features.  In "
12897 "enterprise distributions we backport features from later versions into "
12898 "earlier versions, making this an unreliable way to test for features.  Use "
12899 "C<guestfs_available> instead."
12900 msgstr ""
12901
12902 # type: textblock
12903 #: ../src/guestfs-actions.pod:5213
12904 msgid ""
12905 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
12906 "error.  I<The caller must call C<guestfs_free_version> after use>."
12907 msgstr ""
12908
12909 # type: =head2
12910 #: ../src/guestfs-actions.pod:5217
12911 msgid "guestfs_vfs_label"
12912 msgstr ""
12913
12914 # type: verbatim
12915 #: ../src/guestfs-actions.pod:5219
12916 #, no-wrap
12917 msgid ""
12918 " char *guestfs_vfs_label (guestfs_h *g,\n"
12919 "\t\tconst char *device);\n"
12920 "\n"
12921 msgstr ""
12922
12923 # type: textblock
12924 #: ../src/guestfs-actions.pod:5222 ../fish/guestfish-actions.pod:4069
12925 msgid "This returns the filesystem label of the filesystem on C<device>."
12926 msgstr ""
12927
12928 # type: textblock
12929 #: ../src/guestfs-actions.pod:5225 ../fish/guestfish-actions.pod:4072
12930 msgid "If the filesystem is unlabeled, this returns the empty string."
12931 msgstr ""
12932
12933 # type: textblock
12934 #: ../src/guestfs-actions.pod:5227
12935 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
12936 msgstr ""
12937
12938 # type: =head2
12939 #: ../src/guestfs-actions.pod:5232
12940 msgid "guestfs_vfs_type"
12941 msgstr ""
12942
12943 # type: verbatim
12944 #: ../src/guestfs-actions.pod:5234
12945 #, no-wrap
12946 msgid ""
12947 " char *guestfs_vfs_type (guestfs_h *g,\n"
12948 "\t\tconst char *device);\n"
12949 "\n"
12950 msgstr ""
12951
12952 # type: textblock
12953 #: ../src/guestfs-actions.pod:5237 ../fish/guestfish-actions.pod:4080
12954 msgid ""
12955 "This command gets the filesystem type corresponding to the filesystem on "
12956 "C<device>."
12957 msgstr ""
12958
12959 # type: textblock
12960 #: ../src/guestfs-actions.pod:5240 ../fish/guestfish-actions.pod:4083
12961 msgid ""
12962 "For most filesystems, the result is the name of the Linux VFS module which "
12963 "would be used to mount this filesystem if you mounted it without specifying "
12964 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
12965 msgstr ""
12966
12967 # type: =head2
12968 #: ../src/guestfs-actions.pod:5248
12969 msgid "guestfs_vfs_uuid"
12970 msgstr ""
12971
12972 # type: verbatim
12973 #: ../src/guestfs-actions.pod:5250
12974 #, no-wrap
12975 msgid ""
12976 " char *guestfs_vfs_uuid (guestfs_h *g,\n"
12977 "\t\tconst char *device);\n"
12978 "\n"
12979 msgstr ""
12980
12981 # type: textblock
12982 #: ../src/guestfs-actions.pod:5253 ../fish/guestfish-actions.pod:4092
12983 msgid "This returns the filesystem UUID of the filesystem on C<device>."
12984 msgstr ""
12985
12986 # type: textblock
12987 #: ../src/guestfs-actions.pod:5256 ../fish/guestfish-actions.pod:4095
12988 msgid "If the filesystem does not have a UUID, this returns the empty string."
12989 msgstr ""
12990
12991 # type: textblock
12992 #: ../src/guestfs-actions.pod:5258
12993 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
12994 msgstr ""
12995
12996 # type: =head2
12997 #: ../src/guestfs-actions.pod:5263
12998 msgid "guestfs_vg_activate"
12999 msgstr ""
13000
13001 # type: verbatim
13002 #: ../src/guestfs-actions.pod:5265
13003 #, no-wrap
13004 msgid ""
13005 " int guestfs_vg_activate (guestfs_h *g,\n"
13006 "\t\tint activate,\n"
13007 "\t\tchar *const *volgroups);\n"
13008 "\n"
13009 msgstr ""
13010
13011 # type: textblock
13012 #: ../src/guestfs-actions.pod:5269 ../fish/guestfish-actions.pod:4103
13013 msgid ""
13014 "This command activates or (if C<activate> is false) deactivates all logical "
13015 "volumes in the listed volume groups C<volgroups>.  If activated, then they "
13016 "are made known to the kernel, ie. they appear as C</dev/mapper> devices.  If "
13017 "deactivated, then those devices disappear."
13018 msgstr ""
13019
13020 # type: textblock
13021 #: ../src/guestfs-actions.pod:5275 ../fish/guestfish-actions.pod:4109
13022 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
13023 msgstr ""
13024
13025 # type: textblock
13026 #: ../src/guestfs-actions.pod:5277 ../fish/guestfish-actions.pod:4111
13027 msgid ""
13028 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
13029 "activated or deactivated."
13030 msgstr ""
13031
13032 # type: =head2
13033 #: ../src/guestfs-actions.pod:5282
13034 msgid "guestfs_vg_activate_all"
13035 msgstr ""
13036
13037 # type: verbatim
13038 #: ../src/guestfs-actions.pod:5284
13039 #, no-wrap
13040 msgid ""
13041 " int guestfs_vg_activate_all (guestfs_h *g,\n"
13042 "\t\tint activate);\n"
13043 "\n"
13044 msgstr ""
13045
13046 # type: textblock
13047 #: ../src/guestfs-actions.pod:5287 ../fish/guestfish-actions.pod:4118
13048 msgid ""
13049 "This command activates or (if C<activate> is false) deactivates all logical "
13050 "volumes in all volume groups.  If activated, then they are made known to the "
13051 "kernel, ie. they appear as C</dev/mapper> devices.  If deactivated, then "
13052 "those devices disappear."
13053 msgstr ""
13054
13055 # type: textblock
13056 #: ../src/guestfs-actions.pod:5293 ../fish/guestfish-actions.pod:4124
13057 msgid "This command is the same as running C<vgchange -a y|n>"
13058 msgstr ""
13059
13060 # type: =head2
13061 #: ../src/guestfs-actions.pod:5297
13062 msgid "guestfs_vgcreate"
13063 msgstr ""
13064
13065 # type: verbatim
13066 #: ../src/guestfs-actions.pod:5299
13067 #, no-wrap
13068 msgid ""
13069 " int guestfs_vgcreate (guestfs_h *g,\n"
13070 "\t\tconst char *volgroup,\n"
13071 "\t\tchar *const *physvols);\n"
13072 "\n"
13073 msgstr ""
13074
13075 # type: textblock
13076 #: ../src/guestfs-actions.pod:5303 ../fish/guestfish-actions.pod:4130
13077 msgid ""
13078 "This creates an LVM volume group called C<volgroup> from the non-empty list "
13079 "of physical volumes C<physvols>."
13080 msgstr ""
13081
13082 # type: =head2
13083 #: ../src/guestfs-actions.pod:5308
13084 msgid "guestfs_vglvuuids"
13085 msgstr ""
13086
13087 # type: verbatim
13088 #: ../src/guestfs-actions.pod:5310
13089 #, no-wrap
13090 msgid ""
13091 " char **guestfs_vglvuuids (guestfs_h *g,\n"
13092 "\t\tconst char *vgname);\n"
13093 "\n"
13094 msgstr ""
13095
13096 # type: textblock
13097 #: ../src/guestfs-actions.pod:5313 ../fish/guestfish-actions.pod:4137
13098 msgid ""
13099 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
13100 "volumes created in this volume group."
13101 msgstr ""
13102
13103 # type: textblock
13104 #: ../src/guestfs-actions.pod:5316
13105 msgid ""
13106 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
13107 "associate logical volumes and volume groups."
13108 msgstr ""
13109
13110 # type: textblock
13111 #: ../src/guestfs-actions.pod:5319
13112 msgid "See also C<guestfs_vgpvuuids>."
13113 msgstr ""
13114
13115 # type: =head2
13116 #: ../src/guestfs-actions.pod:5325
13117 msgid "guestfs_vgpvuuids"
13118 msgstr ""
13119
13120 # type: verbatim
13121 #: ../src/guestfs-actions.pod:5327
13122 #, no-wrap
13123 msgid ""
13124 " char **guestfs_vgpvuuids (guestfs_h *g,\n"
13125 "\t\tconst char *vgname);\n"
13126 "\n"
13127 msgstr ""
13128
13129 # type: textblock
13130 #: ../src/guestfs-actions.pod:5330 ../fish/guestfish-actions.pod:4149
13131 msgid ""
13132 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
13133 "volumes that this volume group resides on."
13134 msgstr ""
13135
13136 # type: textblock
13137 #: ../src/guestfs-actions.pod:5333
13138 msgid ""
13139 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
13140 "associate physical volumes and volume groups."
13141 msgstr ""
13142
13143 # type: textblock
13144 #: ../src/guestfs-actions.pod:5336
13145 msgid "See also C<guestfs_vglvuuids>."
13146 msgstr ""
13147
13148 # type: =head2
13149 #: ../src/guestfs-actions.pod:5342
13150 msgid "guestfs_vgremove"
13151 msgstr ""
13152
13153 # type: verbatim
13154 #: ../src/guestfs-actions.pod:5344
13155 #, no-wrap
13156 msgid ""
13157 " int guestfs_vgremove (guestfs_h *g,\n"
13158 "\t\tconst char *vgname);\n"
13159 "\n"
13160 msgstr ""
13161
13162 # type: textblock
13163 #: ../src/guestfs-actions.pod:5347 ../fish/guestfish-actions.pod:4161
13164 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
13165 msgstr ""
13166
13167 # type: textblock
13168 #: ../src/guestfs-actions.pod:5349 ../fish/guestfish-actions.pod:4163
13169 msgid "This also forcibly removes all logical volumes in the volume group (if any)."
13170 msgstr ""
13171
13172 # type: =head2
13173 #: ../src/guestfs-actions.pod:5354
13174 msgid "guestfs_vgrename"
13175 msgstr ""
13176
13177 # type: verbatim
13178 #: ../src/guestfs-actions.pod:5356
13179 #, no-wrap
13180 msgid ""
13181 " int guestfs_vgrename (guestfs_h *g,\n"
13182 "\t\tconst char *volgroup,\n"
13183 "\t\tconst char *newvolgroup);\n"
13184 "\n"
13185 msgstr ""
13186
13187 # type: textblock
13188 #: ../src/guestfs-actions.pod:5360 ../fish/guestfish-actions.pod:4170
13189 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
13190 msgstr ""
13191
13192 # type: =head2
13193 #: ../src/guestfs-actions.pod:5364
13194 msgid "guestfs_vgs"
13195 msgstr ""
13196
13197 # type: verbatim
13198 #: ../src/guestfs-actions.pod:5366
13199 #, no-wrap
13200 msgid ""
13201 " char **guestfs_vgs (guestfs_h *g);\n"
13202 "\n"
13203 msgstr ""
13204
13205 # type: textblock
13206 #: ../src/guestfs-actions.pod:5368 ../fish/guestfish-actions.pod:4176
13207 msgid ""
13208 "List all the volumes groups detected.  This is the equivalent of the "
13209 "L<vgs(8)> command."
13210 msgstr ""
13211
13212 # type: textblock
13213 #: ../src/guestfs-actions.pod:5371 ../fish/guestfish-actions.pod:4179
13214 msgid ""
13215 "This returns a list of just the volume group names that were detected "
13216 "(eg. C<VolGroup00>)."
13217 msgstr ""
13218
13219 # type: textblock
13220 #: ../src/guestfs-actions.pod:5374
13221 msgid "See also C<guestfs_vgs_full>."
13222 msgstr ""
13223
13224 # type: =head2
13225 #: ../src/guestfs-actions.pod:5380
13226 msgid "guestfs_vgs_full"
13227 msgstr ""
13228
13229 # type: verbatim
13230 #: ../src/guestfs-actions.pod:5382
13231 #, no-wrap
13232 msgid ""
13233 " struct guestfs_lvm_vg_list *guestfs_vgs_full (guestfs_h *g);\n"
13234 "\n"
13235 msgstr ""
13236
13237 # type: textblock
13238 #: ../src/guestfs-actions.pod:5384 ../fish/guestfish-actions.pod:4188
13239 msgid ""
13240 "List all the volumes groups detected.  This is the equivalent of the "
13241 "L<vgs(8)> command.  The \"full\" version includes all fields."
13242 msgstr ""
13243
13244 # type: textblock
13245 #: ../src/guestfs-actions.pod:5387
13246 msgid ""
13247 "This function returns a C<struct guestfs_lvm_vg_list *> (see "
13248 "E<lt>guestfs-structs.hE<gt>), or NULL if there was an error.  I<The caller "
13249 "must call C<guestfs_free_lvm_vg_list> after use>."
13250 msgstr ""
13251
13252 # type: =head2
13253 #: ../src/guestfs-actions.pod:5392
13254 msgid "guestfs_vgscan"
13255 msgstr ""
13256
13257 # type: verbatim
13258 #: ../src/guestfs-actions.pod:5394
13259 #, no-wrap
13260 msgid ""
13261 " int guestfs_vgscan (guestfs_h *g);\n"
13262 "\n"
13263 msgstr ""
13264
13265 # type: textblock
13266 #: ../src/guestfs-actions.pod:5396 ../fish/guestfish-actions.pod:4195
13267 msgid ""
13268 "This rescans all block devices and rebuilds the list of LVM physical "
13269 "volumes, volume groups and logical volumes."
13270 msgstr ""
13271
13272 # type: =head2
13273 #: ../src/guestfs-actions.pod:5401
13274 msgid "guestfs_vguuid"
13275 msgstr ""
13276
13277 # type: verbatim
13278 #: ../src/guestfs-actions.pod:5403
13279 #, no-wrap
13280 msgid ""
13281 " char *guestfs_vguuid (guestfs_h *g,\n"
13282 "\t\tconst char *vgname);\n"
13283 "\n"
13284 msgstr ""
13285
13286 # type: textblock
13287 #: ../src/guestfs-actions.pod:5406 ../fish/guestfish-actions.pod:4202
13288 msgid "This command returns the UUID of the LVM VG named C<vgname>."
13289 msgstr ""
13290
13291 # type: =head2
13292 #: ../src/guestfs-actions.pod:5411
13293 msgid "guestfs_wait_ready"
13294 msgstr ""
13295
13296 # type: verbatim
13297 #: ../src/guestfs-actions.pod:5413
13298 #, no-wrap
13299 msgid ""
13300 " int guestfs_wait_ready (guestfs_h *g);\n"
13301 "\n"
13302 msgstr ""
13303
13304 # type: textblock
13305 #: ../src/guestfs-actions.pod:5415
13306 msgid "This function is a no op."
13307 msgstr ""
13308
13309 # type: textblock
13310 #: ../src/guestfs-actions.pod:5417
13311 msgid ""
13312 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
13313 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
13314 "is no longer necessary because C<guestfs_launch> now does the waiting."
13315 msgstr ""
13316
13317 # type: textblock
13318 #: ../src/guestfs-actions.pod:5422
13319 msgid ""
13320 "If you see any calls to this function in code then you can just remove them, "
13321 "unless you want to retain compatibility with older versions of the API."
13322 msgstr ""
13323
13324 # type: =head2
13325 #: ../src/guestfs-actions.pod:5428
13326 msgid "guestfs_wc_c"
13327 msgstr ""
13328
13329 # type: verbatim
13330 #: ../src/guestfs-actions.pod:5430
13331 #, no-wrap
13332 msgid ""
13333 " int guestfs_wc_c (guestfs_h *g,\n"
13334 "\t\tconst char *path);\n"
13335 "\n"
13336 msgstr ""
13337
13338 # type: textblock
13339 #: ../src/guestfs-actions.pod:5433 ../fish/guestfish-actions.pod:4208
13340 msgid ""
13341 "This command counts the characters in a file, using the C<wc -c> external "
13342 "command."
13343 msgstr ""
13344
13345 # type: =head2
13346 #: ../src/guestfs-actions.pod:5438
13347 msgid "guestfs_wc_l"
13348 msgstr ""
13349
13350 # type: verbatim
13351 #: ../src/guestfs-actions.pod:5440
13352 #, no-wrap
13353 msgid ""
13354 " int guestfs_wc_l (guestfs_h *g,\n"
13355 "\t\tconst char *path);\n"
13356 "\n"
13357 msgstr ""
13358
13359 # type: textblock
13360 #: ../src/guestfs-actions.pod:5443 ../fish/guestfish-actions.pod:4215
13361 msgid ""
13362 "This command counts the lines in a file, using the C<wc -l> external "
13363 "command."
13364 msgstr ""
13365
13366 # type: =head2
13367 #: ../src/guestfs-actions.pod:5448
13368 msgid "guestfs_wc_w"
13369 msgstr ""
13370
13371 # type: verbatim
13372 #: ../src/guestfs-actions.pod:5450
13373 #, no-wrap
13374 msgid ""
13375 " int guestfs_wc_w (guestfs_h *g,\n"
13376 "\t\tconst char *path);\n"
13377 "\n"
13378 msgstr ""
13379
13380 # type: textblock
13381 #: ../src/guestfs-actions.pod:5453 ../fish/guestfish-actions.pod:4222
13382 msgid ""
13383 "This command counts the words in a file, using the C<wc -w> external "
13384 "command."
13385 msgstr ""
13386
13387 # type: =head2
13388 #: ../src/guestfs-actions.pod:5458
13389 msgid "guestfs_write"
13390 msgstr ""
13391
13392 # type: verbatim
13393 #: ../src/guestfs-actions.pod:5460
13394 #, no-wrap
13395 msgid ""
13396 " int guestfs_write (guestfs_h *g,\n"
13397 "\t\tconst char *path,\n"
13398 "\t\tconst char *content,\n"
13399 "\t\tsize_t content_size);\n"
13400 "\n"
13401 msgstr ""
13402
13403 # type: textblock
13404 #: ../src/guestfs-actions.pod:5465 ../fish/guestfish-actions.pod:4229
13405 msgid ""
13406 "This call creates a file called C<path>.  The content of the file is the "
13407 "string C<content> (which can contain any 8 bit data)."
13408 msgstr ""
13409
13410 # type: =head2
13411 #: ../src/guestfs-actions.pod:5473
13412 msgid "guestfs_write_file"
13413 msgstr ""
13414
13415 # type: verbatim
13416 #: ../src/guestfs-actions.pod:5475
13417 #, no-wrap
13418 msgid ""
13419 " int guestfs_write_file (guestfs_h *g,\n"
13420 "\t\tconst char *path,\n"
13421 "\t\tconst char *content,\n"
13422 "\t\tint size);\n"
13423 "\n"
13424 msgstr ""
13425
13426 # type: textblock
13427 #: ../src/guestfs-actions.pod:5480 ../fish/guestfish-actions.pod:4239
13428 msgid ""
13429 "This call creates a file called C<path>.  The contents of the file is the "
13430 "string C<content> (which can contain any 8 bit data), with length C<size>."
13431 msgstr ""
13432
13433 # type: textblock
13434 #: ../src/guestfs-actions.pod:5484 ../fish/guestfish-actions.pod:4243
13435 msgid ""
13436 "As a special case, if C<size> is C<0> then the length is calculated using "
13437 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
13438 msgstr ""
13439
13440 # type: textblock
13441 #: ../src/guestfs-actions.pod:5488 ../fish/guestfish-actions.pod:4247
13442 msgid ""
13443 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
13444 "I<not> work, even if the length is specified."
13445 msgstr ""
13446
13447 # type: textblock
13448 #: ../src/guestfs-actions.pod:5496 ../fish/guestfish-actions.pod:4253
13449 msgid "This function is deprecated.  In new code, use the C<write> call instead."
13450 msgstr ""
13451
13452 # type: =head2
13453 #: ../src/guestfs-actions.pod:5503
13454 msgid "guestfs_zegrep"
13455 msgstr ""
13456
13457 # type: verbatim
13458 #: ../src/guestfs-actions.pod:5505
13459 #, no-wrap
13460 msgid ""
13461 " char **guestfs_zegrep (guestfs_h *g,\n"
13462 "\t\tconst char *regex,\n"
13463 "\t\tconst char *path);\n"
13464 "\n"
13465 msgstr ""
13466
13467 # type: textblock
13468 #: ../src/guestfs-actions.pod:5509 ../fish/guestfish-actions.pod:4264
13469 msgid "This calls the external C<zegrep> program and returns the matching lines."
13470 msgstr ""
13471
13472 # type: =head2
13473 #: ../src/guestfs-actions.pod:5519
13474 msgid "guestfs_zegrepi"
13475 msgstr ""
13476
13477 # type: verbatim
13478 #: ../src/guestfs-actions.pod:5521
13479 #, no-wrap
13480 msgid ""
13481 " char **guestfs_zegrepi (guestfs_h *g,\n"
13482 "\t\tconst char *regex,\n"
13483 "\t\tconst char *path);\n"
13484 "\n"
13485 msgstr ""
13486
13487 # type: textblock
13488 #: ../src/guestfs-actions.pod:5525 ../fish/guestfish-actions.pod:4274
13489 msgid "This calls the external C<zegrep -i> program and returns the matching lines."
13490 msgstr ""
13491
13492 # type: =head2
13493 #: ../src/guestfs-actions.pod:5535
13494 msgid "guestfs_zero"
13495 msgstr ""
13496
13497 # type: verbatim
13498 #: ../src/guestfs-actions.pod:5537
13499 #, no-wrap
13500 msgid ""
13501 " int guestfs_zero (guestfs_h *g,\n"
13502 "\t\tconst char *device);\n"
13503 "\n"
13504 msgstr ""
13505
13506 # type: textblock
13507 #: ../src/guestfs-actions.pod:5540 ../fish/guestfish-actions.pod:4284
13508 msgid "This command writes zeroes over the first few blocks of C<device>."
13509 msgstr ""
13510
13511 # type: textblock
13512 #: ../src/guestfs-actions.pod:5542 ../fish/guestfish-actions.pod:4286
13513 msgid ""
13514 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
13515 "securely wipe the device).  It should be sufficient to remove any partition "
13516 "tables, filesystem superblocks and so on."
13517 msgstr ""
13518
13519 # type: textblock
13520 #: ../src/guestfs-actions.pod:5546
13521 msgid "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>."
13522 msgstr ""
13523
13524 # type: =head2
13525 #: ../src/guestfs-actions.pod:5555
13526 msgid "guestfs_zero_device"
13527 msgstr ""
13528
13529 # type: verbatim
13530 #: ../src/guestfs-actions.pod:5557
13531 #, no-wrap
13532 msgid ""
13533 " int guestfs_zero_device (guestfs_h *g,\n"
13534 "\t\tconst char *device);\n"
13535 "\n"
13536 msgstr ""
13537
13538 # type: textblock
13539 #: ../src/guestfs-actions.pod:5560
13540 msgid ""
13541 "This command writes zeroes over the entire C<device>.  Compare with "
13542 "C<guestfs_zero> which just zeroes the first few blocks of a device."
13543 msgstr ""
13544
13545 # type: =head2
13546 #: ../src/guestfs-actions.pod:5574
13547 msgid "guestfs_zerofree"
13548 msgstr ""
13549
13550 # type: verbatim
13551 #: ../src/guestfs-actions.pod:5576
13552 #, no-wrap
13553 msgid ""
13554 " int guestfs_zerofree (guestfs_h *g,\n"
13555 "\t\tconst char *device);\n"
13556 "\n"
13557 msgstr ""
13558
13559 # type: textblock
13560 #: ../src/guestfs-actions.pod:5579 ../fish/guestfish-actions.pod:4307
13561 msgid ""
13562 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
13563 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
13564 "possible to compress the filesystem more effectively."
13565 msgstr ""
13566
13567 # type: textblock
13568 #: ../src/guestfs-actions.pod:5584 ../fish/guestfish-actions.pod:4312
13569 msgid "You should B<not> run this program if the filesystem is mounted."
13570 msgstr ""
13571
13572 # type: textblock
13573 #: ../src/guestfs-actions.pod:5587 ../fish/guestfish-actions.pod:4315
13574 msgid ""
13575 "It is possible that using this program can damage the filesystem or data on "
13576 "the filesystem."
13577 msgstr ""
13578
13579 # type: =head2
13580 #: ../src/guestfs-actions.pod:5592
13581 msgid "guestfs_zfgrep"
13582 msgstr ""
13583
13584 # type: verbatim
13585 #: ../src/guestfs-actions.pod:5594
13586 #, no-wrap
13587 msgid ""
13588 " char **guestfs_zfgrep (guestfs_h *g,\n"
13589 "\t\tconst char *pattern,\n"
13590 "\t\tconst char *path);\n"
13591 "\n"
13592 msgstr ""
13593
13594 # type: textblock
13595 #: ../src/guestfs-actions.pod:5598 ../fish/guestfish-actions.pod:4322
13596 msgid "This calls the external C<zfgrep> program and returns the matching lines."
13597 msgstr ""
13598
13599 # type: =head2
13600 #: ../src/guestfs-actions.pod:5608
13601 msgid "guestfs_zfgrepi"
13602 msgstr ""
13603
13604 # type: verbatim
13605 #: ../src/guestfs-actions.pod:5610
13606 #, no-wrap
13607 msgid ""
13608 " char **guestfs_zfgrepi (guestfs_h *g,\n"
13609 "\t\tconst char *pattern,\n"
13610 "\t\tconst char *path);\n"
13611 "\n"
13612 msgstr ""
13613
13614 # type: textblock
13615 #: ../src/guestfs-actions.pod:5614 ../fish/guestfish-actions.pod:4332
13616 msgid "This calls the external C<zfgrep -i> program and returns the matching lines."
13617 msgstr ""
13618
13619 # type: =head2
13620 #: ../src/guestfs-actions.pod:5624
13621 msgid "guestfs_zfile"
13622 msgstr ""
13623
13624 # type: verbatim
13625 #: ../src/guestfs-actions.pod:5626
13626 #, no-wrap
13627 msgid ""
13628 " char *guestfs_zfile (guestfs_h *g,\n"
13629 "\t\tconst char *meth,\n"
13630 "\t\tconst char *path);\n"
13631 "\n"
13632 msgstr ""
13633
13634 # type: textblock
13635 #: ../src/guestfs-actions.pod:5630 ../fish/guestfish-actions.pod:4342
13636 msgid "This command runs C<file> after first decompressing C<path> using C<method>."
13637 msgstr ""
13638
13639 # type: textblock
13640 #: ../src/guestfs-actions.pod:5633 ../fish/guestfish-actions.pod:4345
13641 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
13642 msgstr ""
13643
13644 # type: textblock
13645 #: ../src/guestfs-actions.pod:5635
13646 msgid ""
13647 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
13648 "files."
13649 msgstr ""
13650
13651 # type: textblock
13652 #: ../src/guestfs-actions.pod:5641 ../fish/guestfish-actions.pod:4350
13653 msgid "This function is deprecated.  In new code, use the C<file> call instead."
13654 msgstr ""
13655
13656 # type: =head2
13657 #: ../src/guestfs-actions.pod:5648
13658 msgid "guestfs_zgrep"
13659 msgstr ""
13660
13661 # type: verbatim
13662 #: ../src/guestfs-actions.pod:5650
13663 #, no-wrap
13664 msgid ""
13665 " char **guestfs_zgrep (guestfs_h *g,\n"
13666 "\t\tconst char *regex,\n"
13667 "\t\tconst char *path);\n"
13668 "\n"
13669 msgstr ""
13670
13671 # type: textblock
13672 #: ../src/guestfs-actions.pod:5654 ../fish/guestfish-actions.pod:4361
13673 msgid "This calls the external C<zgrep> program and returns the matching lines."
13674 msgstr ""
13675
13676 # type: =head2
13677 #: ../src/guestfs-actions.pod:5664
13678 msgid "guestfs_zgrepi"
13679 msgstr ""
13680
13681 # type: verbatim
13682 #: ../src/guestfs-actions.pod:5666
13683 #, no-wrap
13684 msgid ""
13685 " char **guestfs_zgrepi (guestfs_h *g,\n"
13686 "\t\tconst char *regex,\n"
13687 "\t\tconst char *path);\n"
13688 "\n"
13689 msgstr ""
13690
13691 # type: textblock
13692 #: ../src/guestfs-actions.pod:5670 ../fish/guestfish-actions.pod:4371
13693 msgid "This calls the external C<zgrep -i> program and returns the matching lines."
13694 msgstr ""
13695
13696 # type: =item
13697 #: ../src/guestfs-availability.pod:3
13698 msgid "B<augeas>"
13699 msgstr ""
13700
13701 # type: textblock
13702 #: ../src/guestfs-availability.pod:5
13703 msgid ""
13704 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> "
13705 "L</guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> "
13706 "L</guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> "
13707 "L</guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> "
13708 "L</guestfs_aug_rm> L</guestfs_aug_save> L</guestfs_aug_set>"
13709 msgstr ""
13710
13711 # type: =item
13712 #: ../src/guestfs-availability.pod:21
13713 msgid "B<inotify>"
13714 msgstr ""
13715
13716 # type: textblock
13717 #: ../src/guestfs-availability.pod:23
13718 msgid ""
13719 "The following functions: L</guestfs_inotify_add_watch> "
13720 "L</guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> "
13721 "L</guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
13722 msgstr ""
13723
13724 # type: =item
13725 #: ../src/guestfs-availability.pod:31
13726 msgid "B<linuxfsuuid>"
13727 msgstr ""
13728
13729 # type: textblock
13730 #: ../src/guestfs-availability.pod:33
13731 msgid ""
13732 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> "
13733 "L</guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
13734 msgstr ""
13735
13736 # type: =item
13737 #: ../src/guestfs-availability.pod:40
13738 msgid "B<linuxmodules>"
13739 msgstr ""
13740
13741 # type: textblock
13742 #: ../src/guestfs-availability.pod:42
13743 msgid "The following functions: L</guestfs_modprobe>"
13744 msgstr ""
13745
13746 # type: =item
13747 #: ../src/guestfs-availability.pod:45
13748 msgid "B<linuxxattrs>"
13749 msgstr ""
13750
13751 # type: textblock
13752 #: ../src/guestfs-availability.pod:47
13753 msgid ""
13754 "The following functions: L</guestfs_getxattrs> L</guestfs_lgetxattrs> "
13755 "L</guestfs_lremovexattr> L</guestfs_lsetxattr> L</guestfs_lxattrlist> "
13756 "L</guestfs_removexattr> L</guestfs_setxattr>"
13757 msgstr ""
13758
13759 # type: =item
13760 #: ../src/guestfs-availability.pod:56
13761 msgid "B<luks>"
13762 msgstr ""
13763
13764 # type: textblock
13765 #: ../src/guestfs-availability.pod:58
13766 msgid ""
13767 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> "
13768 "L</guestfs_luks_format> L</guestfs_luks_format_cipher> "
13769 "L</guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
13770 msgstr ""
13771
13772 # type: =item
13773 #: ../src/guestfs-availability.pod:67
13774 msgid "B<lvm2>"
13775 msgstr ""
13776
13777 # type: textblock
13778 #: ../src/guestfs-availability.pod:69
13779 msgid ""
13780 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> "
13781 "L</guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> "
13782 "L</guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> "
13783 "L</guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> "
13784 "L</guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> "
13785 "L</guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> "
13786 "L</guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> "
13787 "L</guestfs_vgs_full>"
13788 msgstr ""
13789
13790 # type: =item
13791 #: ../src/guestfs-availability.pod:92
13792 msgid "B<mknod>"
13793 msgstr ""
13794
13795 # type: textblock
13796 #: ../src/guestfs-availability.pod:94
13797 msgid ""
13798 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> "
13799 "L</guestfs_mknod_b> L</guestfs_mknod_c>"
13800 msgstr ""
13801
13802 # type: =item
13803 #: ../src/guestfs-availability.pod:100
13804 msgid "B<ntfs3g>"
13805 msgstr ""
13806
13807 # type: textblock
13808 #: ../src/guestfs-availability.pod:102
13809 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
13810 msgstr ""
13811
13812 # type: =item
13813 #: ../src/guestfs-availability.pod:105
13814 msgid "B<ntfsprogs>"
13815 msgstr ""
13816
13817 # type: textblock
13818 #: ../src/guestfs-availability.pod:107
13819 msgid "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_size>"
13820 msgstr ""
13821
13822 # type: =item
13823 #: ../src/guestfs-availability.pod:111
13824 msgid "B<realpath>"
13825 msgstr ""
13826
13827 # type: textblock
13828 #: ../src/guestfs-availability.pod:113
13829 msgid "The following functions: L</guestfs_realpath>"
13830 msgstr ""
13831
13832 # type: =item
13833 #: ../src/guestfs-availability.pod:116
13834 msgid "B<scrub>"
13835 msgstr ""
13836
13837 # type: textblock
13838 #: ../src/guestfs-availability.pod:118
13839 msgid ""
13840 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> "
13841 "L</guestfs_scrub_freespace>"
13842 msgstr ""
13843
13844 # type: =item
13845 #: ../src/guestfs-availability.pod:123
13846 msgid "B<selinux>"
13847 msgstr ""
13848
13849 # type: textblock
13850 #: ../src/guestfs-availability.pod:125
13851 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
13852 msgstr ""
13853
13854 # type: =item
13855 #: ../src/guestfs-availability.pod:129
13856 msgid "B<xz>"
13857 msgstr ""
13858
13859 # type: textblock
13860 #: ../src/guestfs-availability.pod:131
13861 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
13862 msgstr ""
13863
13864 # type: =item
13865 #: ../src/guestfs-availability.pod:135
13866 msgid "B<zerofree>"
13867 msgstr ""
13868
13869 # type: textblock
13870 #: ../src/guestfs-availability.pod:137
13871 msgid "The following functions: L</guestfs_zerofree>"
13872 msgstr ""
13873
13874 # type: =head2
13875 #: ../src/guestfs-structs.pod:1
13876 msgid "guestfs_int_bool"
13877 msgstr ""
13878
13879 # type: verbatim
13880 #: ../src/guestfs-structs.pod:3
13881 #, no-wrap
13882 msgid ""
13883 " struct guestfs_int_bool {\n"
13884 "   int32_t i;\n"
13885 "   int32_t b;\n"
13886 " };\n"
13887 " \n"
13888 msgstr ""
13889
13890 # type: verbatim
13891 #: ../src/guestfs-structs.pod:8
13892 #, no-wrap
13893 msgid ""
13894 " struct guestfs_int_bool_list {\n"
13895 "   uint32_t len; /* Number of elements in list. */\n"
13896 "   struct guestfs_int_bool *val; /* Elements. */\n"
13897 " };\n"
13898 " \n"
13899 msgstr ""
13900
13901 # type: verbatim
13902 #: ../src/guestfs-structs.pod:13
13903 #, no-wrap
13904 msgid ""
13905 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
13906 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
13907 "\n"
13908 msgstr ""
13909
13910 # type: =head2
13911 #: ../src/guestfs-structs.pod:16
13912 msgid "guestfs_lvm_pv"
13913 msgstr ""
13914
13915 # type: verbatim
13916 #: ../src/guestfs-structs.pod:18
13917 #, no-wrap
13918 msgid ""
13919 " struct guestfs_lvm_pv {\n"
13920 "   char *pv_name;\n"
13921 "   /* The next field is NOT nul-terminated, be careful when printing it: "
13922 "*/\n"
13923 "   char pv_uuid[32];\n"
13924 "   char *pv_fmt;\n"
13925 "   uint64_t pv_size;\n"
13926 "   uint64_t dev_size;\n"
13927 "   uint64_t pv_free;\n"
13928 "   uint64_t pv_used;\n"
13929 "   char *pv_attr;\n"
13930 "   int64_t pv_pe_count;\n"
13931 "   int64_t pv_pe_alloc_count;\n"
13932 "   char *pv_tags;\n"
13933 "   uint64_t pe_start;\n"
13934 "   int64_t pv_mda_count;\n"
13935 "   uint64_t pv_mda_free;\n"
13936 " };\n"
13937 " \n"
13938 msgstr ""
13939
13940 # type: verbatim
13941 #: ../src/guestfs-structs.pod:36
13942 #, no-wrap
13943 msgid ""
13944 " struct guestfs_lvm_pv_list {\n"
13945 "   uint32_t len; /* Number of elements in list. */\n"
13946 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
13947 " };\n"
13948 " \n"
13949 msgstr ""
13950
13951 # type: verbatim
13952 #: ../src/guestfs-structs.pod:41
13953 #, no-wrap
13954 msgid ""
13955 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
13956 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
13957 "\n"
13958 msgstr ""
13959
13960 # type: =head2
13961 #: ../src/guestfs-structs.pod:44
13962 msgid "guestfs_lvm_vg"
13963 msgstr ""
13964
13965 # type: verbatim
13966 #: ../src/guestfs-structs.pod:46
13967 #, no-wrap
13968 msgid ""
13969 " struct guestfs_lvm_vg {\n"
13970 "   char *vg_name;\n"
13971 "   /* The next field is NOT nul-terminated, be careful when printing it: "
13972 "*/\n"
13973 "   char vg_uuid[32];\n"
13974 "   char *vg_fmt;\n"
13975 "   char *vg_attr;\n"
13976 "   uint64_t vg_size;\n"
13977 "   uint64_t vg_free;\n"
13978 "   char *vg_sysid;\n"
13979 "   uint64_t vg_extent_size;\n"
13980 "   int64_t vg_extent_count;\n"
13981 "   int64_t vg_free_count;\n"
13982 "   int64_t max_lv;\n"
13983 "   int64_t max_pv;\n"
13984 "   int64_t pv_count;\n"
13985 "   int64_t lv_count;\n"
13986 "   int64_t snap_count;\n"
13987 "   int64_t vg_seqno;\n"
13988 "   char *vg_tags;\n"
13989 "   int64_t vg_mda_count;\n"
13990 "   uint64_t vg_mda_free;\n"
13991 " };\n"
13992 " \n"
13993 msgstr ""
13994
13995 # type: verbatim
13996 #: ../src/guestfs-structs.pod:69
13997 #, no-wrap
13998 msgid ""
13999 " struct guestfs_lvm_vg_list {\n"
14000 "   uint32_t len; /* Number of elements in list. */\n"
14001 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
14002 " };\n"
14003 " \n"
14004 msgstr ""
14005
14006 # type: verbatim
14007 #: ../src/guestfs-structs.pod:74
14008 #, no-wrap
14009 msgid ""
14010 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
14011 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
14012 "\n"
14013 msgstr ""
14014
14015 # type: =head2
14016 #: ../src/guestfs-structs.pod:77
14017 msgid "guestfs_lvm_lv"
14018 msgstr ""
14019
14020 # type: verbatim
14021 #: ../src/guestfs-structs.pod:79
14022 #, no-wrap
14023 msgid ""
14024 " struct guestfs_lvm_lv {\n"
14025 "   char *lv_name;\n"
14026 "   /* The next field is NOT nul-terminated, be careful when printing it: "
14027 "*/\n"
14028 "   char lv_uuid[32];\n"
14029 "   char *lv_attr;\n"
14030 "   int64_t lv_major;\n"
14031 "   int64_t lv_minor;\n"
14032 "   int64_t lv_kernel_major;\n"
14033 "   int64_t lv_kernel_minor;\n"
14034 "   uint64_t lv_size;\n"
14035 "   int64_t seg_count;\n"
14036 "   char *origin;\n"
14037 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
14038 "   float snap_percent;\n"
14039 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
14040 "   float copy_percent;\n"
14041 "   char *move_pv;\n"
14042 "   char *lv_tags;\n"
14043 "   char *mirror_log;\n"
14044 "   char *modules;\n"
14045 " };\n"
14046 " \n"
14047 msgstr ""
14048
14049 # type: verbatim
14050 #: ../src/guestfs-structs.pod:101
14051 #, no-wrap
14052 msgid ""
14053 " struct guestfs_lvm_lv_list {\n"
14054 "   uint32_t len; /* Number of elements in list. */\n"
14055 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
14056 " };\n"
14057 " \n"
14058 msgstr ""
14059
14060 # type: verbatim
14061 #: ../src/guestfs-structs.pod:106
14062 #, no-wrap
14063 msgid ""
14064 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
14065 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
14066 "\n"
14067 msgstr ""
14068
14069 # type: verbatim
14070 #: ../src/guestfs-structs.pod:111
14071 #, no-wrap
14072 msgid ""
14073 " struct guestfs_stat {\n"
14074 "   int64_t dev;\n"
14075 "   int64_t ino;\n"
14076 "   int64_t mode;\n"
14077 "   int64_t nlink;\n"
14078 "   int64_t uid;\n"
14079 "   int64_t gid;\n"
14080 "   int64_t rdev;\n"
14081 "   int64_t size;\n"
14082 "   int64_t blksize;\n"
14083 "   int64_t blocks;\n"
14084 "   int64_t atime;\n"
14085 "   int64_t mtime;\n"
14086 "   int64_t ctime;\n"
14087 " };\n"
14088 " \n"
14089 msgstr ""
14090
14091 # type: verbatim
14092 #: ../src/guestfs-structs.pod:127
14093 #, no-wrap
14094 msgid ""
14095 " struct guestfs_stat_list {\n"
14096 "   uint32_t len; /* Number of elements in list. */\n"
14097 "   struct guestfs_stat *val; /* Elements. */\n"
14098 " };\n"
14099 " \n"
14100 msgstr ""
14101
14102 # type: verbatim
14103 #: ../src/guestfs-structs.pod:132
14104 #, no-wrap
14105 msgid ""
14106 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
14107 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
14108 "\n"
14109 msgstr ""
14110
14111 # type: verbatim
14112 #: ../src/guestfs-structs.pod:137
14113 #, no-wrap
14114 msgid ""
14115 " struct guestfs_statvfs {\n"
14116 "   int64_t bsize;\n"
14117 "   int64_t frsize;\n"
14118 "   int64_t blocks;\n"
14119 "   int64_t bfree;\n"
14120 "   int64_t bavail;\n"
14121 "   int64_t files;\n"
14122 "   int64_t ffree;\n"
14123 "   int64_t favail;\n"
14124 "   int64_t fsid;\n"
14125 "   int64_t flag;\n"
14126 "   int64_t namemax;\n"
14127 " };\n"
14128 " \n"
14129 msgstr ""
14130
14131 # type: verbatim
14132 #: ../src/guestfs-structs.pod:151
14133 #, no-wrap
14134 msgid ""
14135 " struct guestfs_statvfs_list {\n"
14136 "   uint32_t len; /* Number of elements in list. */\n"
14137 "   struct guestfs_statvfs *val; /* Elements. */\n"
14138 " };\n"
14139 " \n"
14140 msgstr ""
14141
14142 # type: verbatim
14143 #: ../src/guestfs-structs.pod:156
14144 #, no-wrap
14145 msgid ""
14146 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
14147 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
14148 "\n"
14149 msgstr ""
14150
14151 # type: =head2
14152 #: ../src/guestfs-structs.pod:159
14153 msgid "guestfs_dirent"
14154 msgstr ""
14155
14156 # type: verbatim
14157 #: ../src/guestfs-structs.pod:161
14158 #, no-wrap
14159 msgid ""
14160 " struct guestfs_dirent {\n"
14161 "   int64_t ino;\n"
14162 "   char ftyp;\n"
14163 "   char *name;\n"
14164 " };\n"
14165 " \n"
14166 msgstr ""
14167
14168 # type: verbatim
14169 #: ../src/guestfs-structs.pod:167
14170 #, no-wrap
14171 msgid ""
14172 " struct guestfs_dirent_list {\n"
14173 "   uint32_t len; /* Number of elements in list. */\n"
14174 "   struct guestfs_dirent *val; /* Elements. */\n"
14175 " };\n"
14176 " \n"
14177 msgstr ""
14178
14179 # type: verbatim
14180 #: ../src/guestfs-structs.pod:172
14181 #, no-wrap
14182 msgid ""
14183 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
14184 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
14185 "\n"
14186 msgstr ""
14187
14188 # type: verbatim
14189 #: ../src/guestfs-structs.pod:177
14190 #, no-wrap
14191 msgid ""
14192 " struct guestfs_version {\n"
14193 "   int64_t major;\n"
14194 "   int64_t minor;\n"
14195 "   int64_t release;\n"
14196 "   char *extra;\n"
14197 " };\n"
14198 " \n"
14199 msgstr ""
14200
14201 # type: verbatim
14202 #: ../src/guestfs-structs.pod:184
14203 #, no-wrap
14204 msgid ""
14205 " struct guestfs_version_list {\n"
14206 "   uint32_t len; /* Number of elements in list. */\n"
14207 "   struct guestfs_version *val; /* Elements. */\n"
14208 " };\n"
14209 " \n"
14210 msgstr ""
14211
14212 # type: verbatim
14213 #: ../src/guestfs-structs.pod:189
14214 #, no-wrap
14215 msgid ""
14216 " void guestfs_free_version (struct guestfs_free_version *);\n"
14217 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
14218 "\n"
14219 msgstr ""
14220
14221 # type: =head2
14222 #: ../src/guestfs-structs.pod:192
14223 msgid "guestfs_xattr"
14224 msgstr ""
14225
14226 # type: verbatim
14227 #: ../src/guestfs-structs.pod:194
14228 #, no-wrap
14229 msgid ""
14230 " struct guestfs_xattr {\n"
14231 "   char *attrname;\n"
14232 "   /* The next two fields describe a byte array. */\n"
14233 "   uint32_t attrval_len;\n"
14234 "   char *attrval;\n"
14235 " };\n"
14236 " \n"
14237 msgstr ""
14238
14239 # type: verbatim
14240 #: ../src/guestfs-structs.pod:201
14241 #, no-wrap
14242 msgid ""
14243 " struct guestfs_xattr_list {\n"
14244 "   uint32_t len; /* Number of elements in list. */\n"
14245 "   struct guestfs_xattr *val; /* Elements. */\n"
14246 " };\n"
14247 " \n"
14248 msgstr ""
14249
14250 # type: verbatim
14251 #: ../src/guestfs-structs.pod:206
14252 #, no-wrap
14253 msgid ""
14254 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
14255 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
14256 "\n"
14257 msgstr ""
14258
14259 # type: =head2
14260 #: ../src/guestfs-structs.pod:209
14261 msgid "guestfs_inotify_event"
14262 msgstr ""
14263
14264 # type: verbatim
14265 #: ../src/guestfs-structs.pod:211
14266 #, no-wrap
14267 msgid ""
14268 " struct guestfs_inotify_event {\n"
14269 "   int64_t in_wd;\n"
14270 "   uint32_t in_mask;\n"
14271 "   uint32_t in_cookie;\n"
14272 "   char *in_name;\n"
14273 " };\n"
14274 " \n"
14275 msgstr ""
14276
14277 # type: verbatim
14278 #: ../src/guestfs-structs.pod:218
14279 #, no-wrap
14280 msgid ""
14281 " struct guestfs_inotify_event_list {\n"
14282 "   uint32_t len; /* Number of elements in list. */\n"
14283 "   struct guestfs_inotify_event *val; /* Elements. */\n"
14284 " };\n"
14285 " \n"
14286 msgstr ""
14287
14288 # type: verbatim
14289 #: ../src/guestfs-structs.pod:223
14290 #, no-wrap
14291 msgid ""
14292 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
14293 " void guestfs_free_inotify_event_list (struct "
14294 "guestfs_free_inotify_event_list *);\n"
14295 "\n"
14296 msgstr ""
14297
14298 # type: =head2
14299 #: ../src/guestfs-structs.pod:226
14300 msgid "guestfs_partition"
14301 msgstr ""
14302
14303 # type: verbatim
14304 #: ../src/guestfs-structs.pod:228
14305 #, no-wrap
14306 msgid ""
14307 " struct guestfs_partition {\n"
14308 "   int32_t part_num;\n"
14309 "   uint64_t part_start;\n"
14310 "   uint64_t part_end;\n"
14311 "   uint64_t part_size;\n"
14312 " };\n"
14313 " \n"
14314 msgstr ""
14315
14316 # type: verbatim
14317 #: ../src/guestfs-structs.pod:235
14318 #, no-wrap
14319 msgid ""
14320 " struct guestfs_partition_list {\n"
14321 "   uint32_t len; /* Number of elements in list. */\n"
14322 "   struct guestfs_partition *val; /* Elements. */\n"
14323 " };\n"
14324 " \n"
14325 msgstr ""
14326
14327 # type: verbatim
14328 #: ../src/guestfs-structs.pod:240
14329 #, no-wrap
14330 msgid ""
14331 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
14332 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
14333 "\n"
14334 msgstr ""
14335
14336 # type: textblock
14337 #: ../fish/guestfish.pod:5
14338 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
14339 msgstr ""
14340
14341 # type: verbatim
14342 #: ../fish/guestfish.pod:9
14343 #, no-wrap
14344 msgid ""
14345 " guestfish [--options] [commands]\n"
14346 "\n"
14347 msgstr ""
14348
14349 # type: verbatim
14350 #: ../fish/guestfish.pod:11
14351 #, no-wrap
14352 msgid ""
14353 " guestfish\n"
14354 "\n"
14355 msgstr ""
14356
14357 # type: verbatim
14358 #: ../fish/guestfish.pod:13
14359 #, no-wrap
14360 msgid ""
14361 " guestfish -a disk.img\n"
14362 "\n"
14363 msgstr ""
14364
14365 # type: verbatim
14366 #: ../fish/guestfish.pod:15
14367 #, no-wrap
14368 msgid ""
14369 " guestfish -a disk.img -m dev[:mountpoint]\n"
14370 "\n"
14371 msgstr ""
14372
14373 # type: verbatim
14374 #: ../fish/guestfish.pod:17
14375 #, no-wrap
14376 msgid ""
14377 " guestfish -d libvirt-domain\n"
14378 "\n"
14379 msgstr ""
14380
14381 # type: verbatim
14382 #: ../fish/guestfish.pod:19
14383 #, no-wrap
14384 msgid ""
14385 " guestfish -a disk.img -i\n"
14386 "\n"
14387 msgstr ""
14388
14389 # type: verbatim
14390 #: ../fish/guestfish.pod:21
14391 #, no-wrap
14392 msgid ""
14393 " guestfish -d libvirt-domain -i\n"
14394 "\n"
14395 msgstr ""
14396
14397 # type: =head1
14398 #: ../fish/guestfish.pod:23 ../fuse/guestmount.pod:11 ../tools/virt-edit.pl:45 ../tools/virt-win-reg.pl:52 ../tools/virt-tar.pl:60 ../tools/virt-rescue.pl:41
14399 msgid "WARNING"
14400 msgstr ""
14401
14402 # type: textblock
14403 #: ../fish/guestfish.pod:25
14404 msgid ""
14405 "Using guestfish in read/write mode on live virtual machines can be "
14406 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
14407 "option to use guestfish safely if the disk image or virtual machine might be "
14408 "live."
14409 msgstr ""
14410
14411 # type: textblock
14412 #: ../fish/guestfish.pod:32
14413 msgid ""
14414 "Guestfish is a shell and command-line tool for examining and modifying "
14415 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
14416 "functionality of the guestfs API, see L<guestfs(3)>."
14417 msgstr ""
14418
14419 # type: textblock
14420 #: ../fish/guestfish.pod:36
14421 msgid ""
14422 "Guestfish gives you structured access to the libguestfs API, from shell "
14423 "scripts or the command line or interactively.  If you want to rescue a "
14424 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
14425 "command."
14426 msgstr ""
14427
14428 # type: =head1
14429 #: ../fish/guestfish.pod:41 ../fish/guestfish.pod:759 ../fuse/guestmount.pod:35 ../tools/virt-edit.pl:59 ../tools/virt-resize.pl:66 ../tools/virt-cat.pl:51 ../tools/virt-tar.pl:46
14430 msgid "EXAMPLES"
14431 msgstr ""
14432
14433 # type: =head2
14434 #: ../fish/guestfish.pod:43
14435 msgid "As an interactive shell"
14436 msgstr ""
14437
14438 # type: verbatim
14439 #: ../fish/guestfish.pod:45
14440 #, no-wrap
14441 msgid ""
14442 " $ guestfish\n"
14443 " \n"
14444 msgstr ""
14445
14446 # type: verbatim
14447 #: ../fish/guestfish.pod:47
14448 #, no-wrap
14449 msgid ""
14450 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
14451 " editing virtual machine filesystems.\n"
14452 " \n"
14453 msgstr ""
14454
14455 # type: verbatim
14456 #: ../fish/guestfish.pod:50
14457 #, no-wrap
14458 msgid ""
14459 " Type: 'help' for a list of commands\n"
14460 "       'man' to read the manual\n"
14461 "       'quit' to quit the shell\n"
14462 " \n"
14463 msgstr ""
14464
14465 # type: verbatim
14466 #: ../fish/guestfish.pod:54
14467 #, no-wrap
14468 msgid ""
14469 " ><fs> add-ro disk.img\n"
14470 " ><fs> run\n"
14471 " ><fs> list-filesystems\n"
14472 " /dev/sda1: ext4\n"
14473 " /dev/vg_guest/lv_root: ext4\n"
14474 " /dev/vg_guest/lv_swap: swap\n"
14475 " ><fs> mount /dev/vg_guest/lv_root /\n"
14476 " ><fs> cat /etc/fstab\n"
14477 " # /etc/fstab\n"
14478 " # Created by anaconda\n"
14479 " [...]\n"
14480 " ><fs> exit\n"
14481 "\n"
14482 msgstr ""
14483
14484 # type: =head2
14485 #: ../fish/guestfish.pod:67
14486 msgid "From shell scripts"
14487 msgstr ""
14488
14489 # type: textblock
14490 #: ../fish/guestfish.pod:69
14491 msgid "Create a new C</etc/motd> file in a guest or disk image:"
14492 msgstr ""
14493
14494 # type: verbatim
14495 #: ../fish/guestfish.pod:71
14496 #, no-wrap
14497 msgid ""
14498 " guestfish <<_EOF_\n"
14499 " add disk.img\n"
14500 " run\n"
14501 " mount /dev/vg_guest/lv_root /\n"
14502 " write /etc/motd \"Welcome, new users\"\n"
14503 " _EOF_\n"
14504 "\n"
14505 msgstr ""
14506
14507 # type: textblock
14508 #: ../fish/guestfish.pod:78
14509 msgid "List the LVM logical volumes in a disk image:"
14510 msgstr ""
14511
14512 # type: verbatim
14513 #: ../fish/guestfish.pod:80
14514 #, no-wrap
14515 msgid ""
14516 " guestfish -a disk.img --ro <<_EOF_\n"
14517 " run\n"
14518 " lvs\n"
14519 " _EOF_\n"
14520 "\n"
14521 msgstr ""
14522
14523 # type: textblock
14524 #: ../fish/guestfish.pod:85
14525 msgid "List all the filesystems in a disk image:"
14526 msgstr ""
14527
14528 # type: verbatim
14529 #: ../fish/guestfish.pod:87
14530 #, no-wrap
14531 msgid ""
14532 " guestfish -a disk.img --ro <<_EOF_\n"
14533 " run\n"
14534 " list-filesystems\n"
14535 " _EOF_\n"
14536 "\n"
14537 msgstr ""
14538
14539 # type: =head2
14540 #: ../fish/guestfish.pod:92
14541 msgid "On one command line"
14542 msgstr ""
14543
14544 # type: textblock
14545 #: ../fish/guestfish.pod:94
14546 msgid "Update C</etc/resolv.conf> in a guest:"
14547 msgstr ""
14548
14549 # type: verbatim
14550 #: ../fish/guestfish.pod:96
14551 #, no-wrap
14552 msgid ""
14553 " guestfish \\\n"
14554 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
14555 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
14556 "\n"
14557 msgstr ""
14558
14559 # type: textblock
14560 #: ../fish/guestfish.pod:100
14561 msgid "Edit C</boot/grub/grub.conf> interactively:"
14562 msgstr ""
14563
14564 # type: verbatim
14565 #: ../fish/guestfish.pod:102
14566 #, no-wrap
14567 msgid ""
14568 " guestfish --add disk.img \\\n"
14569 "   --mount /dev/vg_guest/lv_root \\\n"
14570 "   --mount /dev/sda1:/boot \\\n"
14571 "   edit /boot/grub/grub.conf\n"
14572 "\n"
14573 msgstr ""
14574
14575 # type: =head2
14576 #: ../fish/guestfish.pod:107
14577 msgid "Mount disks automatically"
14578 msgstr ""
14579
14580 # type: textblock
14581 #: ../fish/guestfish.pod:109
14582 msgid ""
14583 "Use the I<-i> option to automatically mount the disks from a virtual "
14584 "machine:"
14585 msgstr ""
14586
14587 # type: verbatim
14588 #: ../fish/guestfish.pod:112
14589 #, no-wrap
14590 msgid ""
14591 " guestfish --ro -a disk.img -i cat /etc/group\n"
14592 "\n"
14593 msgstr ""
14594
14595 # type: verbatim
14596 #: ../fish/guestfish.pod:114
14597 #, no-wrap
14598 msgid ""
14599 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
14600 "\n"
14601 msgstr ""
14602
14603 # type: textblock
14604 #: ../fish/guestfish.pod:116
14605 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
14606 msgstr ""
14607
14608 # type: verbatim
14609 #: ../fish/guestfish.pod:118
14610 #, no-wrap
14611 msgid ""
14612 " guestfish -a disk.img -i edit /boot/grub/grub.conf\n"
14613 "\n"
14614 msgstr ""
14615
14616 # type: =head2
14617 #: ../fish/guestfish.pod:120
14618 msgid "As a script interpreter"
14619 msgstr ""
14620
14621 # type: textblock
14622 #: ../fish/guestfish.pod:122
14623 msgid "Create a 100MB disk containing an ext2-formatted partition:"
14624 msgstr ""
14625
14626 # type: verbatim
14627 #: ../fish/guestfish.pod:124
14628 #, no-wrap
14629 msgid ""
14630 " #!/usr/bin/guestfish -f\n"
14631 " sparse test1.img 100M\n"
14632 " run\n"
14633 " part-disk /dev/sda mbr\n"
14634 " mkfs ext2 /dev/sda1\n"
14635 "\n"
14636 msgstr ""
14637
14638 # type: =head2
14639 #: ../fish/guestfish.pod:130
14640 msgid "Start with a prepared disk"
14641 msgstr ""
14642
14643 # type: textblock
14644 #: ../fish/guestfish.pod:132
14645 msgid ""
14646 "An alternate way to create a 100MB disk called C<test1.img> containing a "
14647 "single ext2-formatted partition:"
14648 msgstr ""
14649
14650 # type: verbatim
14651 #: ../fish/guestfish.pod:135
14652 #, no-wrap
14653 msgid ""
14654 " guestfish -N fs\n"
14655 "\n"
14656 msgstr ""
14657
14658 # type: textblock
14659 #: ../fish/guestfish.pod:137
14660 msgid "To list what is available do:"
14661 msgstr ""
14662
14663 # type: verbatim
14664 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:750
14665 #, no-wrap
14666 msgid ""
14667 " guestfish -N help | less\n"
14668 "\n"
14669 msgstr ""
14670
14671 # type: =head2
14672 #: ../fish/guestfish.pod:141
14673 msgid "Remote control"
14674 msgstr ""
14675
14676 # type: verbatim
14677 #: ../fish/guestfish.pod:143
14678 #, no-wrap
14679 msgid ""
14680 " eval `guestfish --listen`\n"
14681 " guestfish --remote add-ro disk.img\n"
14682 " guestfish --remote run\n"
14683 " guestfish --remote lvs\n"
14684 "\n"
14685 msgstr ""
14686
14687 # type: =head1
14688 #: ../fish/guestfish.pod:148 ../test-tool/libguestfs-test-tool.pod:37 ../fuse/guestmount.pod:70 ../inspector/virt-inspector.pl:75 ../tools/virt-edit.pl:73 ../tools/virt-win-reg.pl:172 ../tools/virt-df.pl:71 ../tools/virt-ls.pl:79 ../tools/virt-resize.pl:257 ../tools/virt-list-filesystems.pl:50 ../tools/virt-cat.pl:80 ../tools/virt-tar.pl:99 ../tools/virt-rescue.pl:103 ../tools/virt-make-fs.pl:153 ../tools/virt-list-partitions.pl:51
14689 msgid "OPTIONS"
14690 msgstr ""
14691
14692 # type: =item
14693 #: ../fish/guestfish.pod:152 ../fuse/guestmount.pod:94 ../inspector/virt-inspector.pl:83 ../tools/virt-edit.pl:81 ../tools/virt-win-reg.pl:180 ../tools/virt-df.pl:79 ../tools/virt-ls.pl:87 ../tools/virt-resize.pl:265 ../tools/virt-list-filesystems.pl:58 ../tools/virt-cat.pl:88 ../tools/virt-tar.pl:107 ../tools/virt-rescue.pl:111 ../tools/virt-make-fs.pl:161 ../tools/virt-list-partitions.pl:59
14694 msgid "B<--help>"
14695 msgstr ""
14696
14697 # type: textblock
14698 #: ../fish/guestfish.pod:154
14699 msgid "Displays general help on options."
14700 msgstr ""
14701
14702 # type: =item
14703 #: ../fish/guestfish.pod:156
14704 msgid "B<-h> | B<--cmd-help>"
14705 msgstr ""
14706
14707 # type: textblock
14708 #: ../fish/guestfish.pod:158
14709 msgid "Lists all available guestfish commands."
14710 msgstr ""
14711
14712 # type: =item
14713 #: ../fish/guestfish.pod:160
14714 msgid "B<-h cmd> | B<--cmd-help cmd>"
14715 msgstr ""
14716
14717 # type: textblock
14718 #: ../fish/guestfish.pod:162
14719 msgid "Displays detailed help on a single command C<cmd>."
14720 msgstr ""
14721
14722 # type: =item
14723 #: ../fish/guestfish.pod:164 ../fuse/guestmount.pod:74
14724 msgid "B<-a image> | B<--add image>"
14725 msgstr ""
14726
14727 # type: textblock
14728 #: ../fish/guestfish.pod:166
14729 msgid "Add a block device or virtual machine image to the shell."
14730 msgstr ""
14731
14732 # type: =item
14733 #: ../fish/guestfish.pod:168
14734 msgid "B<-c URI> | B<--connect URI>"
14735 msgstr ""
14736
14737 # type: textblock
14738 #: ../fish/guestfish.pod:170
14739 msgid ""
14740 "When used in conjunction with the I<-d> option, this specifies the libvirt "
14741 "URI to use.  The default is to use the default libvirt connection."
14742 msgstr ""
14743
14744 # type: =item
14745 #: ../fish/guestfish.pod:174
14746 msgid "B<-d libvirt-domain> | B<--domain libvirt-domain>"
14747 msgstr ""
14748
14749 # type: textblock
14750 #: ../fish/guestfish.pod:176
14751 msgid ""
14752 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
14753 "used, then any libvirt domain can be used.  However in write mode, only "
14754 "libvirt domains which are shut down can be named here."
14755 msgstr ""
14756
14757 # type: =item
14758 #: ../fish/guestfish.pod:180
14759 msgid "B<-D> | B<--no-dest-paths>"
14760 msgstr ""
14761
14762 # type: textblock
14763 #: ../fish/guestfish.pod:182
14764 msgid ""
14765 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
14766 "to hit the tab key to complete paths on the guest filesystem, but this "
14767 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
14768 "allow this feature to be disabled."
14769 msgstr ""
14770
14771 # type: =item
14772 #: ../fish/guestfish.pod:187
14773 msgid "B<--echo-keys>"
14774 msgstr ""
14775
14776 # type: textblock
14777 #: ../fish/guestfish.pod:189
14778 msgid ""
14779 "When prompting for keys and passphrases, guestfish normally turns echoing "
14780 "off so you cannot see what you are typing.  If you are not worried about "
14781 "Tempest attacks and there is no one else in the room you can specify this "
14782 "flag to see what you are typing."
14783 msgstr ""
14784
14785 # type: =item
14786 #: ../fish/guestfish.pod:194
14787 msgid "B<-f file> | B<--file file>"
14788 msgstr ""
14789
14790 # type: textblock
14791 #: ../fish/guestfish.pod:196
14792 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
14793 msgstr ""
14794
14795 # type: verbatim
14796 #: ../fish/guestfish.pod:199
14797 #, no-wrap
14798 msgid ""
14799 " #!/usr/bin/guestfish -f\n"
14800 "\n"
14801 msgstr ""
14802
14803 # type: =item
14804 #: ../fish/guestfish.pod:201
14805 msgid "B<-i> | B<--inspector>"
14806 msgstr ""
14807
14808 # type: textblock
14809 #: ../fish/guestfish.pod:203
14810 msgid ""
14811 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
14812 "system and mount filesystems as they would be mounted on the real virtual "
14813 "machine."
14814 msgstr ""
14815
14816 # type: textblock
14817 #: ../fish/guestfish.pod:207
14818 msgid "Typical usage is either:"
14819 msgstr ""
14820
14821 # type: verbatim
14822 #: ../fish/guestfish.pod:209
14823 #, no-wrap
14824 msgid ""
14825 " guestfish -d myguest -i\n"
14826 "\n"
14827 msgstr ""
14828
14829 # type: textblock
14830 #: ../fish/guestfish.pod:211
14831 msgid "(for an inactive libvirt domain called I<myguest>), or:"
14832 msgstr ""
14833
14834 # type: verbatim
14835 #: ../fish/guestfish.pod:213
14836 #, no-wrap
14837 msgid ""
14838 " guestfish --ro -d myguest -i\n"
14839 "\n"
14840 msgstr ""
14841
14842 # type: textblock
14843 #: ../fish/guestfish.pod:215
14844 msgid "(for active domains, readonly), or specify the block device directly:"
14845 msgstr ""
14846
14847 # type: verbatim
14848 #: ../fish/guestfish.pod:217
14849 #, no-wrap
14850 msgid ""
14851 " guestfish -a /dev/Guests/MyGuest -i\n"
14852 "\n"
14853 msgstr ""
14854
14855 # type: textblock
14856 #: ../fish/guestfish.pod:219
14857 msgid ""
14858 "Note that the command line syntax changed slightly over older versions of "
14859 "guestfish.  You can still use the old syntax:"
14860 msgstr ""
14861
14862 # type: verbatim
14863 #: ../fish/guestfish.pod:222
14864 #, no-wrap
14865 msgid ""
14866 " guestfish [--ro] -i disk.img\n"
14867 "\n"
14868 msgstr ""
14869
14870 # type: verbatim
14871 #: ../fish/guestfish.pod:224
14872 #, no-wrap
14873 msgid ""
14874 " guestfish [--ro] -i libvirt-domain\n"
14875 "\n"
14876 msgstr ""
14877
14878 # type: =item
14879 #: ../fish/guestfish.pod:226
14880 msgid "B<--keys-from-stdin>"
14881 msgstr ""
14882
14883 # type: textblock
14884 #: ../fish/guestfish.pod:228
14885 msgid ""
14886 "Read key or passphrase parameters from stdin.  The default is to try to read "
14887 "passphrases from the user by opening C</dev/tty>."
14888 msgstr ""
14889
14890 # type: =item
14891 #: ../fish/guestfish.pod:231
14892 msgid "B<--listen>"
14893 msgstr ""
14894
14895 # type: textblock
14896 #: ../fish/guestfish.pod:233
14897 msgid ""
14898 "Fork into the background and listen for remote commands.  See section "
14899 "L</REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
14900 msgstr ""
14901
14902 # type: =item
14903 #: ../fish/guestfish.pod:236
14904 msgid "B<-m dev[:mountpoint]> | B<--mount dev[:mountpoint]>"
14905 msgstr ""
14906
14907 # type: textblock
14908 #: ../fish/guestfish.pod:238
14909 msgid "Mount the named partition or logical volume on the given mountpoint."
14910 msgstr ""
14911
14912 # type: textblock
14913 #: ../fish/guestfish.pod:240
14914 msgid "If the mountpoint is omitted, it defaults to C</>."
14915 msgstr ""
14916
14917 # type: textblock
14918 #: ../fish/guestfish.pod:242
14919 msgid "You have to mount something on C</> before most commands will work."
14920 msgstr ""
14921
14922 # type: textblock
14923 #: ../fish/guestfish.pod:244
14924 msgid ""
14925 "If any I<-m> or I<--mount> options are given, the guest is automatically "
14926 "launched."
14927 msgstr ""
14928
14929 # type: textblock
14930 #: ../fish/guestfish.pod:247
14931 msgid ""
14932 "If you don't know what filesystems a disk image contains, you can either run "
14933 "guestfish without this option, then list the partitions and LVs available "
14934 "(see L</list-partitions> and L</lvs> commands), or you can use the "
14935 "L<virt-list-filesystems(1)> program."
14936 msgstr ""
14937
14938 # type: =item
14939 #: ../fish/guestfish.pod:252 ../fuse/guestmount.pod:106
14940 msgid "B<-n> | B<--no-sync>"
14941 msgstr ""
14942
14943 # type: textblock
14944 #: ../fish/guestfish.pod:254
14945 msgid ""
14946 "Disable autosync.  This is enabled by default.  See the discussion of "
14947 "autosync in the L<guestfs(3)> manpage."
14948 msgstr ""
14949
14950 # type: =item
14951 #: ../fish/guestfish.pod:257
14952 msgid "B<-N type> | B<--new type> | B<-N help>"
14953 msgstr ""
14954
14955 # type: textblock
14956 #: ../fish/guestfish.pod:259
14957 msgid ""
14958 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
14959 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
14960 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
14961 "IMAGES> below."
14962 msgstr ""
14963
14964 # type: =item
14965 #: ../fish/guestfish.pod:264
14966 msgid "B<--progress-bars>"
14967 msgstr ""
14968
14969 # type: textblock
14970 #: ../fish/guestfish.pod:266
14971 msgid "Enable progress bars, even when guestfish is used non-interactively."
14972 msgstr ""
14973
14974 # type: textblock
14975 #: ../fish/guestfish.pod:268
14976 msgid ""
14977 "Progress bars are enabled by default when guestfish is used as an "
14978 "interactive shell."
14979 msgstr ""
14980
14981 # type: =item
14982 #: ../fish/guestfish.pod:271
14983 msgid "B<--no-progress-bars>"
14984 msgstr ""
14985
14986 # type: textblock
14987 #: ../fish/guestfish.pod:273
14988 msgid "Disable progress bars."
14989 msgstr ""
14990
14991 # type: =item
14992 #: ../fish/guestfish.pod:275
14993 msgid "B<--remote[=pid]>"
14994 msgstr ""
14995
14996 # type: textblock
14997 #: ../fish/guestfish.pod:277
14998 msgid ""
14999 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
15000 "CONTROL GUESTFISH OVER A SOCKET> below."
15001 msgstr ""
15002
15003 # type: =item
15004 #: ../fish/guestfish.pod:280 ../fuse/guestmount.pod:148
15005 msgid "B<-r> | B<--ro>"
15006 msgstr ""
15007
15008 # type: textblock
15009 #: ../fish/guestfish.pod:282
15010 msgid ""
15011 "This changes the I<-a> and I<-m> options so that disks are added and mounts "
15012 "are done read-only (see L<guestfs(3)/guestfs_mount_ro>)."
15013 msgstr ""
15014
15015 # type: textblock
15016 #: ../fish/guestfish.pod:285 ../tools/virt-rescue.pl:162
15017 msgid ""
15018 "The option must always be used if the disk image or virtual machine might be "
15019 "running, and is generally recommended in cases where you don't need write "
15020 "access to the disk."
15021 msgstr ""
15022
15023 # type: textblock
15024 #: ../fish/guestfish.pod:289
15025 msgid ""
15026 "Note that prepared disk images created with I<-N> are not affected by the "
15027 "I<--ro> option."
15028 msgstr ""
15029
15030 # type: =item
15031 #: ../fish/guestfish.pod:292 ../fuse/guestmount.pod:158 ../tools/virt-rescue.pl:170
15032 msgid "B<--selinux>"
15033 msgstr ""
15034
15035 # type: textblock
15036 #: ../fish/guestfish.pod:294
15037 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
15038 msgstr ""
15039
15040 # type: =item
15041 #: ../fish/guestfish.pod:296 ../fuse/guestmount.pod:168
15042 msgid "B<-v> | B<--verbose>"
15043 msgstr ""
15044
15045 # type: textblock
15046 #: ../fish/guestfish.pod:298
15047 msgid ""
15048 "Enable very verbose messages.  This is particularly useful if you find a "
15049 "bug."
15050 msgstr ""
15051
15052 # type: =item
15053 #: ../fish/guestfish.pod:301 ../fuse/guestmount.pod:172
15054 msgid "B<-V> | B<--version>"
15055 msgstr ""
15056
15057 # type: textblock
15058 #: ../fish/guestfish.pod:303
15059 msgid "Display the guestfish / libguestfs version number and exit."
15060 msgstr ""
15061
15062 # type: =item
15063 #: ../fish/guestfish.pod:305
15064 msgid "B<-x>"
15065 msgstr ""
15066
15067 # type: textblock
15068 #: ../fish/guestfish.pod:307
15069 msgid "Echo each command before executing it."
15070 msgstr ""
15071
15072 # type: =head1
15073 #: ../fish/guestfish.pod:311
15074 msgid "COMMANDS ON COMMAND LINE"
15075 msgstr ""
15076
15077 # type: textblock
15078 #: ../fish/guestfish.pod:313
15079 msgid "Any additional (non-option) arguments are treated as commands to execute."
15080 msgstr ""
15081
15082 # type: textblock
15083 #: ../fish/guestfish.pod:316
15084 msgid ""
15085 "Commands to execute should be separated by a colon (C<:>), where the colon "
15086 "is a separate parameter.  Thus:"
15087 msgstr ""
15088
15089 # type: verbatim
15090 #: ../fish/guestfish.pod:319
15091 #, no-wrap
15092 msgid ""
15093 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
15094 "\n"
15095 msgstr ""
15096
15097 # type: textblock
15098 #: ../fish/guestfish.pod:321
15099 msgid ""
15100 "If there are no additional arguments, then we enter a shell, either an "
15101 "interactive shell with a prompt (if the input is a terminal) or a "
15102 "non-interactive shell."
15103 msgstr ""
15104
15105 # type: textblock
15106 #: ../fish/guestfish.pod:325
15107 msgid ""
15108 "In either command line mode or non-interactive shell, the first command that "
15109 "gives an error causes the whole shell to exit.  In interactive mode (with a "
15110 "prompt) if a command fails, you can continue to enter commands."
15111 msgstr ""
15112
15113 # type: =head1
15114 #: ../fish/guestfish.pod:330
15115 msgid "USING launch (OR run)"
15116 msgstr ""
15117
15118 # type: textblock
15119 #: ../fish/guestfish.pod:332
15120 msgid ""
15121 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
15122 "then launch it, then mount any disks you need, and finally issue "
15123 "actions/commands.  So the general order of the day is:"
15124 msgstr ""
15125
15126 # type: textblock
15127 #: ../fish/guestfish.pod:340
15128 msgid "add or -a/--add"
15129 msgstr ""
15130
15131 # type: textblock
15132 #: ../fish/guestfish.pod:344
15133 msgid "launch (aka run)"
15134 msgstr ""
15135
15136 # type: textblock
15137 #: ../fish/guestfish.pod:348
15138 msgid "mount or -m/--mount"
15139 msgstr ""
15140
15141 # type: textblock
15142 #: ../fish/guestfish.pod:352
15143 msgid "any other commands"
15144 msgstr ""
15145
15146 # type: textblock
15147 #: ../fish/guestfish.pod:356
15148 msgid ""
15149 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
15150 "guest before mounting or performing any other commands."
15151 msgstr ""
15152
15153 # type: textblock
15154 #: ../fish/guestfish.pod:359
15155 msgid ""
15156 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
15157 "I<--new> options were given then C<run> is done automatically, simply "
15158 "because guestfish can't perform the action you asked for without doing this."
15159 msgstr ""
15160
15161 # type: =head1
15162 #: ../fish/guestfish.pod:364
15163 msgid "QUOTING"
15164 msgstr ""
15165
15166 # type: textblock
15167 #: ../fish/guestfish.pod:366
15168 msgid ""
15169 "You can quote ordinary parameters using either single or double quotes.  For "
15170 "example:"
15171 msgstr ""
15172
15173 # type: verbatim
15174 #: ../fish/guestfish.pod:369
15175 #, no-wrap
15176 msgid ""
15177 " add \"file with a space.img\"\n"
15178 "\n"
15179 msgstr ""
15180
15181 # type: verbatim
15182 #: ../fish/guestfish.pod:371
15183 #, no-wrap
15184 msgid ""
15185 " rm '/file name'\n"
15186 "\n"
15187 msgstr ""
15188
15189 # type: verbatim
15190 #: ../fish/guestfish.pod:373
15191 #, no-wrap
15192 msgid ""
15193 " rm '/\"'\n"
15194 "\n"
15195 msgstr ""
15196
15197 # type: textblock
15198 #: ../fish/guestfish.pod:375
15199 msgid ""
15200 "A few commands require a list of strings to be passed.  For these, use a "
15201 "whitespace-separated list, enclosed in quotes.  Strings containing "
15202 "whitespace to be passed through must be enclosed in single quotes.  A "
15203 "literal single quote must be escaped with a backslash."
15204 msgstr ""
15205
15206 # type: verbatim
15207 #: ../fish/guestfish.pod:380
15208 #, no-wrap
15209 msgid ""
15210 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
15211 " command \"/bin/echo 'foo      bar'\"\n"
15212 " command \"/bin/echo \\'foo\\'\"\n"
15213 "\n"
15214 msgstr ""
15215
15216 # type: =head1
15217 #: ../fish/guestfish.pod:384
15218 msgid "NUMBERS"
15219 msgstr ""
15220
15221 # type: textblock
15222 #: ../fish/guestfish.pod:386
15223 msgid "This section applies to all commands which can take integers as parameters."
15224 msgstr ""
15225
15226 # type: =head2
15227 #: ../fish/guestfish.pod:389
15228 msgid "SIZE SUFFIX"
15229 msgstr ""
15230
15231 # type: textblock
15232 #: ../fish/guestfish.pod:391
15233 msgid ""
15234 "When the command takes a parameter measured in bytes, you can use one of the "
15235 "following suffixes to specify kilobytes, megabytes and larger sizes:"
15236 msgstr ""
15237
15238 # type: =item
15239 #: ../fish/guestfish.pod:397
15240 msgid "B<k> or B<K> or B<KiB>"
15241 msgstr ""
15242
15243 # type: textblock
15244 #: ../fish/guestfish.pod:399
15245 msgid "The size in kilobytes (multiplied by 1024)."
15246 msgstr ""
15247
15248 # type: =item
15249 #: ../fish/guestfish.pod:401
15250 msgid "B<KB>"
15251 msgstr ""
15252
15253 # type: textblock
15254 #: ../fish/guestfish.pod:403
15255 msgid "The size in SI 1000 byte units."
15256 msgstr ""
15257
15258 # type: =item
15259 #: ../fish/guestfish.pod:405
15260 msgid "B<M> or B<MiB>"
15261 msgstr ""
15262
15263 # type: textblock
15264 #: ../fish/guestfish.pod:407
15265 msgid "The size in megabytes (multiplied by 1048576)."
15266 msgstr ""
15267
15268 # type: =item
15269 #: ../fish/guestfish.pod:409
15270 msgid "B<MB>"
15271 msgstr ""
15272
15273 # type: textblock
15274 #: ../fish/guestfish.pod:411
15275 msgid "The size in SI 1000000 byte units."
15276 msgstr ""
15277
15278 # type: =item
15279 #: ../fish/guestfish.pod:413
15280 msgid "B<G> or B<GiB>"
15281 msgstr ""
15282
15283 # type: textblock
15284 #: ../fish/guestfish.pod:415
15285 msgid "The size in gigabytes (multiplied by 2**30)."
15286 msgstr ""
15287
15288 # type: =item
15289 #: ../fish/guestfish.pod:417
15290 msgid "B<GB>"
15291 msgstr ""
15292
15293 # type: textblock
15294 #: ../fish/guestfish.pod:419
15295 msgid "The size in SI 10**9 byte units."
15296 msgstr ""
15297
15298 # type: =item
15299 #: ../fish/guestfish.pod:421
15300 msgid "B<T> or B<TiB>"
15301 msgstr ""
15302
15303 # type: textblock
15304 #: ../fish/guestfish.pod:423
15305 msgid "The size in terabytes (multiplied by 2**40)."
15306 msgstr ""
15307
15308 # type: =item
15309 #: ../fish/guestfish.pod:425
15310 msgid "B<TB>"
15311 msgstr ""
15312
15313 # type: textblock
15314 #: ../fish/guestfish.pod:427
15315 msgid "The size in SI 10**12 byte units."
15316 msgstr ""
15317
15318 # type: =item
15319 #: ../fish/guestfish.pod:429
15320 msgid "B<P> or B<PiB>"
15321 msgstr ""
15322
15323 # type: textblock
15324 #: ../fish/guestfish.pod:431
15325 msgid "The size in petabytes (multiplied by 2**50)."
15326 msgstr ""
15327
15328 # type: =item
15329 #: ../fish/guestfish.pod:433
15330 msgid "B<PB>"
15331 msgstr ""
15332
15333 # type: textblock
15334 #: ../fish/guestfish.pod:435
15335 msgid "The size in SI 10**15 byte units."
15336 msgstr ""
15337
15338 # type: =item
15339 #: ../fish/guestfish.pod:437
15340 msgid "B<E> or B<EiB>"
15341 msgstr ""
15342
15343 # type: textblock
15344 #: ../fish/guestfish.pod:439
15345 msgid "The size in exabytes (multiplied by 2**60)."
15346 msgstr ""
15347
15348 # type: =item
15349 #: ../fish/guestfish.pod:441
15350 msgid "B<EB>"
15351 msgstr ""
15352
15353 # type: textblock
15354 #: ../fish/guestfish.pod:443
15355 msgid "The size in SI 10**18 byte units."
15356 msgstr ""
15357
15358 # type: =item
15359 #: ../fish/guestfish.pod:445
15360 msgid "B<Z> or B<ZiB>"
15361 msgstr ""
15362
15363 # type: textblock
15364 #: ../fish/guestfish.pod:447
15365 msgid "The size in zettabytes (multiplied by 2**70)."
15366 msgstr ""
15367
15368 # type: =item
15369 #: ../fish/guestfish.pod:449
15370 msgid "B<ZB>"
15371 msgstr ""
15372
15373 # type: textblock
15374 #: ../fish/guestfish.pod:451
15375 msgid "The size in SI 10**21 byte units."
15376 msgstr ""
15377
15378 # type: =item
15379 #: ../fish/guestfish.pod:453
15380 msgid "B<Y> or B<YiB>"
15381 msgstr ""
15382
15383 # type: textblock
15384 #: ../fish/guestfish.pod:455
15385 msgid "The size in yottabytes (multiplied by 2**80)."
15386 msgstr ""
15387
15388 # type: =item
15389 #: ../fish/guestfish.pod:457
15390 msgid "B<YB>"
15391 msgstr ""
15392
15393 # type: textblock
15394 #: ../fish/guestfish.pod:459
15395 msgid "The size in SI 10**24 byte units."
15396 msgstr ""
15397
15398 # type: textblock
15399 #: ../fish/guestfish.pod:463
15400 msgid "For example:"
15401 msgstr ""
15402
15403 # type: verbatim
15404 #: ../fish/guestfish.pod:465
15405 #, no-wrap
15406 msgid ""
15407 " truncate-size /file 1G\n"
15408 "\n"
15409 msgstr ""
15410
15411 # type: textblock
15412 #: ../fish/guestfish.pod:467
15413 msgid "would truncate the file to 1 gigabyte."
15414 msgstr ""
15415
15416 # type: textblock
15417 #: ../fish/guestfish.pod:469
15418 msgid ""
15419 "Be careful because a few commands take sizes in kilobytes or megabytes "
15420 "(eg. the parameter to L</memsize> is specified in megabytes already).  "
15421 "Adding a suffix will probably not do what you expect."
15422 msgstr ""
15423
15424 # type: =head2
15425 #: ../fish/guestfish.pod:473
15426 msgid "OCTAL AND HEXADECIMAL NUMBERS"
15427 msgstr ""
15428
15429 # type: textblock
15430 #: ../fish/guestfish.pod:475
15431 msgid ""
15432 "For specifying the radix (base) use the C convention: C<0> to prefix an "
15433 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
15434 msgstr ""
15435
15436 # type: verbatim
15437 #: ../fish/guestfish.pod:478
15438 #, no-wrap
15439 msgid ""
15440 " 1234      decimal number 1234\n"
15441 " 02322     octal number, equivalent to decimal 1234\n"
15442 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
15443 "\n"
15444 msgstr ""
15445
15446 # type: textblock
15447 #: ../fish/guestfish.pod:482
15448 msgid ""
15449 "When using the C<chmod> command, you almost always want to specify an octal "
15450 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
15451 "L<chmod(1)> program):"
15452 msgstr ""
15453
15454 # type: verbatim
15455 #: ../fish/guestfish.pod:486
15456 #, no-wrap
15457 msgid ""
15458 " chmod 0777 /public  # OK\n"
15459 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
15460 "\n"
15461 msgstr ""
15462
15463 # type: textblock
15464 #: ../fish/guestfish.pod:489
15465 msgid ""
15466 "Commands that return numbers usually print them in decimal, but some "
15467 "commands print numbers in other radices (eg. C<umask> prints the mode in "
15468 "octal, preceeded by C<0>)."
15469 msgstr ""
15470
15471 # type: =head1
15472 #: ../fish/guestfish.pod:493
15473 msgid "WILDCARDS AND GLOBBING"
15474 msgstr ""
15475
15476 # type: textblock
15477 #: ../fish/guestfish.pod:495
15478 msgid ""
15479 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
15480 "(globbing) by default.  So for example the following will not do what you "
15481 "expect:"
15482 msgstr ""
15483
15484 # type: verbatim
15485 #: ../fish/guestfish.pod:499
15486 #, no-wrap
15487 msgid ""
15488 " rm-rf /home/*\n"
15489 "\n"
15490 msgstr ""
15491
15492 # type: textblock
15493 #: ../fish/guestfish.pod:501
15494 msgid ""
15495 "Assuming you don't have a directory called literally C</home/*> then the "
15496 "above command will return an error."
15497 msgstr ""
15498
15499 # type: textblock
15500 #: ../fish/guestfish.pod:504
15501 msgid "To perform wildcard expansion, use the C<glob> command."
15502 msgstr ""
15503
15504 # type: verbatim
15505 #: ../fish/guestfish.pod:506
15506 #, no-wrap
15507 msgid ""
15508 " glob rm-rf /home/*\n"
15509 "\n"
15510 msgstr ""
15511
15512 # type: textblock
15513 #: ../fish/guestfish.pod:508
15514 msgid ""
15515 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
15516 "many times), equivalent to:"
15517 msgstr ""
15518
15519 # type: verbatim
15520 #: ../fish/guestfish.pod:511
15521 #, no-wrap
15522 msgid ""
15523 " rm-rf /home/jim\n"
15524 " rm-rf /home/joe\n"
15525 " rm-rf /home/mary\n"
15526 "\n"
15527 msgstr ""
15528
15529 # type: textblock
15530 #: ../fish/guestfish.pod:515
15531 msgid "C<glob> only works on simple guest paths and not on device names."
15532 msgstr ""
15533
15534 # type: textblock
15535 #: ../fish/guestfish.pod:517
15536 msgid ""
15537 "If you have several parameters, each containing a wildcard, then glob will "
15538 "perform a Cartesian product."
15539 msgstr ""
15540
15541 # type: =head1
15542 #: ../fish/guestfish.pod:520
15543 msgid "COMMENTS"
15544 msgstr ""
15545
15546 # type: textblock
15547 #: ../fish/guestfish.pod:522
15548 msgid ""
15549 "Any line which starts with a I<#> character is treated as a comment and "
15550 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
15551 "a command.  For example:"
15552 msgstr ""
15553
15554 # type: verbatim
15555 #: ../fish/guestfish.pod:526
15556 #, no-wrap
15557 msgid ""
15558 " # this is a comment\n"
15559 "         # this is a comment\n"
15560 " foo # NOT a comment\n"
15561 "\n"
15562 msgstr ""
15563
15564 # type: textblock
15565 #: ../fish/guestfish.pod:530
15566 msgid "Blank lines are also ignored."
15567 msgstr ""
15568
15569 # type: =head1
15570 #: ../fish/guestfish.pod:532
15571 msgid "RUNNING COMMANDS LOCALLY"
15572 msgstr ""
15573
15574 # type: textblock
15575 #: ../fish/guestfish.pod:534
15576 msgid ""
15577 "Any line which starts with a I<!> character is treated as a command sent to "
15578 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
15579 msgstr ""
15580
15581 # type: verbatim
15582 #: ../fish/guestfish.pod:538
15583 #, no-wrap
15584 msgid ""
15585 " !mkdir local\n"
15586 " tgz-out /remote local/remote-data.tar.gz\n"
15587 "\n"
15588 msgstr ""
15589
15590 # type: textblock
15591 #: ../fish/guestfish.pod:541
15592 msgid ""
15593 "will create a directory C<local> on the host, and then export the contents "
15594 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
15595 "(See C<tgz-out>)."
15596 msgstr ""
15597
15598 # type: textblock
15599 #: ../fish/guestfish.pod:545
15600 msgid ""
15601 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
15602 "effect, due to the way that subprocesses work in Unix."
15603 msgstr ""
15604
15605 # type: =head1
15606 #: ../fish/guestfish.pod:548
15607 msgid "PIPES"
15608 msgstr ""
15609
15610 # type: textblock
15611 #: ../fish/guestfish.pod:550
15612 msgid ""
15613 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
15614 "command (a guestfish command) to the second command (any host command).  For "
15615 "example:"
15616 msgstr ""
15617
15618 # type: verbatim
15619 #: ../fish/guestfish.pod:554
15620 #, no-wrap
15621 msgid ""
15622 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
15623 "\n"
15624 msgstr ""
15625
15626 # type: textblock
15627 #: ../fish/guestfish.pod:556
15628 msgid ""
15629 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
15630 "program).  The above command would list all accounts in the guest filesystem "
15631 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
15632 msgstr ""
15633
15634 # type: verbatim
15635 #: ../fish/guestfish.pod:561
15636 #, no-wrap
15637 msgid ""
15638 " hexdump /bin/ls | head\n"
15639 " list-devices | tail -1\n"
15640 " tgz-out / - | tar ztf -\n"
15641 "\n"
15642 msgstr ""
15643
15644 # type: textblock
15645 #: ../fish/guestfish.pod:565
15646 msgid ""
15647 "The space before the pipe symbol is required, any space after the pipe "
15648 "symbol is optional.  Everything after the pipe symbol is just passed "
15649 "straight to the host shell, so it can contain redirections, globs and "
15650 "anything else that makes sense on the host side."
15651 msgstr ""
15652
15653 # type: textblock
15654 #: ../fish/guestfish.pod:570
15655 msgid ""
15656 "To use a literal argument which begins with a pipe symbol, you have to quote "
15657 "it, eg:"
15658 msgstr ""
15659
15660 # type: verbatim
15661 #: ../fish/guestfish.pod:573
15662 #, no-wrap
15663 msgid ""
15664 " echo \"|\"\n"
15665 "\n"
15666 msgstr ""
15667
15668 # type: =head1
15669 #: ../fish/guestfish.pod:575
15670 msgid "HOME DIRECTORIES"
15671 msgstr ""
15672
15673 # type: textblock
15674 #: ../fish/guestfish.pod:577
15675 msgid ""
15676 "If a parameter starts with the character C<~> then the tilde may be expanded "
15677 "as a home directory path (either C<~> for the current user's home directory, "
15678 "or C<~user> for another user)."
15679 msgstr ""
15680
15681 # type: textblock
15682 #: ../fish/guestfish.pod:581
15683 msgid ""
15684 "Note that home directory expansion happens for users known I<on the host>, "
15685 "not in the guest filesystem."
15686 msgstr ""
15687
15688 # type: textblock
15689 #: ../fish/guestfish.pod:584
15690 msgid ""
15691 "To use a literal argument which begins with a tilde, you have to quote it, "
15692 "eg:"
15693 msgstr ""
15694
15695 # type: verbatim
15696 #: ../fish/guestfish.pod:587
15697 #, no-wrap
15698 msgid ""
15699 " echo \"~\"\n"
15700 "\n"
15701 msgstr ""
15702
15703 # type: textblock
15704 #: ../fish/guestfish.pod:591
15705 msgid ""
15706 "Libguestfs has some support for Linux guests encrypted according to the "
15707 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
15708 "disk encryption systems used by modern Linux guests.  Currently only "
15709 "LVM-on-LUKS is supported."
15710 msgstr ""
15711
15712 # type: textblock
15713 #: ../fish/guestfish.pod:596
15714 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
15715 msgstr ""
15716
15717 # type: verbatim
15718 #: ../fish/guestfish.pod:598
15719 #, no-wrap
15720 msgid ""
15721 " ><fs> vfs-type /dev/sda2\n"
15722 " crypto_LUKS\n"
15723 "\n"
15724 msgstr ""
15725
15726 # type: textblock
15727 #: ../fish/guestfish.pod:601
15728 msgid ""
15729 "Then open those devices using L</luks-open>.  This creates a device-mapper "
15730 "device called C</dev/mapper/luksdev>."
15731 msgstr ""
15732
15733 # type: verbatim
15734 #: ../fish/guestfish.pod:604
15735 #, no-wrap
15736 msgid ""
15737 " ><fs> luks-open /dev/sda2 luksdev\n"
15738 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
15739 "\n"
15740 msgstr ""
15741
15742 # type: textblock
15743 #: ../fish/guestfish.pod:607
15744 msgid ""
15745 "Finally you have to tell LVM to scan for volume groups on the newly created "
15746 "mapper device:"
15747 msgstr ""
15748
15749 # type: verbatim
15750 #: ../fish/guestfish.pod:610
15751 #, no-wrap
15752 msgid ""
15753 " vgscan\n"
15754 " vg-activate-all true\n"
15755 "\n"
15756 msgstr ""
15757
15758 # type: textblock
15759 #: ../fish/guestfish.pod:613
15760 msgid "The logical volume(s) can now be mounted in the usual way."
15761 msgstr ""
15762
15763 # type: textblock
15764 #: ../fish/guestfish.pod:615
15765 msgid ""
15766 "Before closing a LUKS device you must unmount any logical volumes on it and "
15767 "deactivate the volume groups by calling C<vg-activate false VG> on each "
15768 "one.  Then you can close the mapper device:"
15769 msgstr ""
15770
15771 # type: verbatim
15772 #: ../fish/guestfish.pod:619
15773 #, no-wrap
15774 msgid ""
15775 " vg-activate false /dev/VG\n"
15776 " luks-close /dev/mapper/luksdev\n"
15777 "\n"
15778 msgstr ""
15779
15780 # type: =head1
15781 #: ../fish/guestfish.pod:622
15782 msgid "WINDOWS PATHS"
15783 msgstr ""
15784
15785 # type: textblock
15786 #: ../fish/guestfish.pod:624
15787 msgid ""
15788 "If a path is prefixed with C<win:> then you can use Windows-style paths "
15789 "(with some limitations).  The following commands are equivalent:"
15790 msgstr ""
15791
15792 # type: verbatim
15793 #: ../fish/guestfish.pod:627
15794 #, no-wrap
15795 msgid ""
15796 " file /WINDOWS/system32/config/system.LOG\n"
15797 "\n"
15798 msgstr ""
15799
15800 # type: verbatim
15801 #: ../fish/guestfish.pod:629
15802 #, no-wrap
15803 msgid ""
15804 " file win:/windows/system32/config/system.log\n"
15805 "\n"
15806 msgstr ""
15807
15808 # type: verbatim
15809 #: ../fish/guestfish.pod:631
15810 #, no-wrap
15811 msgid ""
15812 " file win:\\windows\\system32\\config\\system.log\n"
15813 "\n"
15814 msgstr ""
15815
15816 # type: verbatim
15817 #: ../fish/guestfish.pod:633
15818 #, no-wrap
15819 msgid ""
15820 " file WIN:C:\\Windows\\SYSTEM32\\conFIG\\SYSTEM.LOG\n"
15821 "\n"
15822 msgstr ""
15823
15824 # type: textblock
15825 #: ../fish/guestfish.pod:635
15826 msgid ""
15827 "This syntax implicitly calls C<case-sensitive-path> (q.v.) so it also "
15828 "handles case insensitivity like Windows would.  This only works in argument "
15829 "positions that expect a path."
15830 msgstr ""
15831
15832 # type: =head1
15833 #: ../fish/guestfish.pod:639
15834 msgid "UPLOADING AND DOWNLOADING FILES"
15835 msgstr ""
15836
15837 # type: textblock
15838 #: ../fish/guestfish.pod:641
15839 msgid ""
15840 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
15841 "others which upload from or download to a local file, you can use the "
15842 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
15843 msgstr ""
15844
15845 # type: verbatim
15846 #: ../fish/guestfish.pod:645
15847 #, no-wrap
15848 msgid ""
15849 " upload - /foo\n"
15850 "\n"
15851 msgstr ""
15852
15853 # type: textblock
15854 #: ../fish/guestfish.pod:647
15855 msgid "reads stdin and creates from that a file C</foo> in the disk image, and:"
15856 msgstr ""
15857
15858 # type: verbatim
15859 #: ../fish/guestfish.pod:650
15860 #, no-wrap
15861 msgid ""
15862 " tar-out /etc - | tar tf -\n"
15863 "\n"
15864 msgstr ""
15865
15866 # type: textblock
15867 #: ../fish/guestfish.pod:652
15868 msgid ""
15869 "writes the tarball to stdout and then pipes that into the external \"tar\" "
15870 "command (see L</PIPES>)."
15871 msgstr ""
15872
15873 # type: textblock
15874 #: ../fish/guestfish.pod:655
15875 msgid ""
15876 "When using C<-> to read from stdin, the input is read up to the end of "
15877 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
15878 "some arbitrary end marker:"
15879 msgstr ""
15880
15881 # type: verbatim
15882 #: ../fish/guestfish.pod:659
15883 #, no-wrap
15884 msgid ""
15885 " upload -<<END /foo\n"
15886 " input line 1\n"
15887 " input line 2\n"
15888 " input line 3\n"
15889 " END\n"
15890 "\n"
15891 msgstr ""
15892
15893 # type: textblock
15894 #: ../fish/guestfish.pod:665
15895 msgid ""
15896 "Any string of characters can be used instead of C<END>.  The end marker must "
15897 "appear on a line of its own, without any preceeding or following characters "
15898 "(not even spaces)."
15899 msgstr ""
15900
15901 # type: textblock
15902 #: ../fish/guestfish.pod:669
15903 msgid ""
15904 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
15905 "upload local files (so-called \"FileIn\" parameters in the generator)."
15906 msgstr ""
15907
15908 # type: =head1
15909 #: ../fish/guestfish.pod:672
15910 msgid "EXIT ON ERROR BEHAVIOUR"
15911 msgstr ""
15912
15913 # type: textblock
15914 #: ../fish/guestfish.pod:674
15915 msgid ""
15916 "By default, guestfish will ignore any errors when in interactive mode "
15917 "(ie. taking commands from a human over a tty), and will exit on the first "
15918 "error in non-interactive mode (scripts, commands given on the command line)."
15919 msgstr ""
15920
15921 # type: textblock
15922 #: ../fish/guestfish.pod:679
15923 msgid ""
15924 "If you prefix a command with a I<-> character, then that command will not "
15925 "cause guestfish to exit, even if that (one) command returns an error."
15926 msgstr ""
15927
15928 # type: =head1
15929 #: ../fish/guestfish.pod:683
15930 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
15931 msgstr ""
15932
15933 # type: textblock
15934 #: ../fish/guestfish.pod:685
15935 msgid ""
15936 "Guestfish can be remote-controlled over a socket.  This is useful "
15937 "particularly in shell scripts where you want to make several different "
15938 "changes to a filesystem, but you don't want the overhead of starting up a "
15939 "guestfish process each time."
15940 msgstr ""
15941
15942 # type: textblock
15943 #: ../fish/guestfish.pod:690
15944 msgid "Start a guestfish server process using:"
15945 msgstr ""
15946
15947 # type: verbatim
15948 #: ../fish/guestfish.pod:692
15949 #, no-wrap
15950 msgid ""
15951 " eval `guestfish --listen`\n"
15952 "\n"
15953 msgstr ""
15954
15955 # type: textblock
15956 #: ../fish/guestfish.pod:694
15957 msgid "and then send it commands by doing:"
15958 msgstr ""
15959
15960 # type: verbatim
15961 #: ../fish/guestfish.pod:696
15962 #, no-wrap
15963 msgid ""
15964 " guestfish --remote cmd [...]\n"
15965 "\n"
15966 msgstr ""
15967
15968 # type: textblock
15969 #: ../fish/guestfish.pod:698
15970 msgid "To cause the server to exit, send it the exit command:"
15971 msgstr ""
15972
15973 # type: verbatim
15974 #: ../fish/guestfish.pod:700
15975 #, no-wrap
15976 msgid ""
15977 " guestfish --remote exit\n"
15978 "\n"
15979 msgstr ""
15980
15981 # type: textblock
15982 #: ../fish/guestfish.pod:702
15983 msgid ""
15984 "Note that the server will normally exit if there is an error in a command.  "
15985 "You can change this in the usual way.  See section L</EXIT ON ERROR "
15986 "BEHAVIOUR>."
15987 msgstr ""
15988
15989 # type: =head2
15990 #: ../fish/guestfish.pod:706
15991 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
15992 msgstr ""
15993
15994 # type: textblock
15995 #: ../fish/guestfish.pod:708
15996 msgid ""
15997 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
15998 "is how the I<--remote> option knows where to send the commands.  You can "
15999 "have several guestfish listener processes running using:"
16000 msgstr ""
16001
16002 # type: verbatim
16003 #: ../fish/guestfish.pod:712
16004 #, no-wrap
16005 msgid ""
16006 " eval `guestfish --listen`\n"
16007 " pid1=$GUESTFISH_PID\n"
16008 " eval `guestfish --listen`\n"
16009 " pid2=$GUESTFISH_PID\n"
16010 " ...\n"
16011 " guestfish --remote=$pid1 cmd\n"
16012 " guestfish --remote=$pid2 cmd\n"
16013 "\n"
16014 msgstr ""
16015
16016 # type: =head2
16017 #: ../fish/guestfish.pod:720
16018 msgid "REMOTE CONTROL DETAILS"
16019 msgstr ""
16020
16021 # type: textblock
16022 #: ../fish/guestfish.pod:722
16023 msgid ""
16024 "Remote control happens over a Unix domain socket called "
16025 "C</tmp/.guestfish-$UID/socket-$PID>, where C<$UID> is the effective user ID "
16026 "of the process, and C<$PID> is the process ID of the server."
16027 msgstr ""
16028
16029 # type: textblock
16030 #: ../fish/guestfish.pod:726
16031 msgid "Guestfish client and server versions must match exactly."
16032 msgstr ""
16033
16034 # type: =head1
16035 #: ../fish/guestfish.pod:728
16036 msgid "PREPARED DISK IMAGES"
16037 msgstr ""
16038
16039 # type: textblock
16040 #: ../fish/guestfish.pod:730
16041 msgid ""
16042 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
16043 "preformatted disk images that guestfish can make for you to save typing.  "
16044 "This is particularly useful for testing purposes.  This option is used "
16045 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
16046 "can be mixed with I<-a>)."
16047 msgstr ""
16048
16049 # type: textblock
16050 #: ../fish/guestfish.pod:736
16051 msgid ""
16052 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
16053 "the second and so on.  Existing files in the current directory are "
16054 "I<overwritten>."
16055 msgstr ""
16056
16057 # type: textblock
16058 #: ../fish/guestfish.pod:740
16059 msgid ""
16060 "The type briefly describes how the disk should be sized, partitioned, how "
16061 "filesystem(s) should be created, and how content should be added.  "
16062 "Optionally the type can be followed by extra parameters, separated by C<:> "
16063 "(colon) characters.  For example, I<-N fs> creates a default 100MB, "
16064 "sparsely-allocated disk, containing a single partition, with the partition "
16065 "formatted as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem "
16066 "on a 1GB disk instead."
16067 msgstr ""
16068
16069 # type: textblock
16070 #: ../fish/guestfish.pod:748
16071 msgid "To list the available types and any extra parameters they take, run:"
16072 msgstr ""
16073
16074 # type: textblock
16075 #: ../fish/guestfish.pod:752
16076 msgid ""
16077 "Note that the prepared filesystem is not mounted.  You would usually have to "
16078 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
16079 msgstr ""
16080
16081 # type: textblock
16082 #: ../fish/guestfish.pod:756
16083 msgid ""
16084 "If any I<-N> or I<--new> options are given, the guest is automatically "
16085 "launched."
16086 msgstr ""
16087
16088 # type: textblock
16089 #: ../fish/guestfish.pod:761
16090 msgid "Create a 100MB disk with an ext4-formatted partition:"
16091 msgstr ""
16092
16093 # type: verbatim
16094 #: ../fish/guestfish.pod:763
16095 #, no-wrap
16096 msgid ""
16097 " guestfish -N fs:ext4\n"
16098 "\n"
16099 msgstr ""
16100
16101 # type: textblock
16102 #: ../fish/guestfish.pod:765
16103 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
16104 msgstr ""
16105
16106 # type: verbatim
16107 #: ../fish/guestfish.pod:767
16108 #, no-wrap
16109 msgid ""
16110 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
16111 "\n"
16112 msgstr ""
16113
16114 # type: textblock
16115 #: ../fish/guestfish.pod:769
16116 msgid "Create a blank 200MB disk:"
16117 msgstr ""
16118
16119 # type: verbatim
16120 #: ../fish/guestfish.pod:771
16121 #, no-wrap
16122 msgid ""
16123 " guestfish -N disk:200M\n"
16124 "\n"
16125 msgstr ""
16126
16127 # type: =head1
16128 #: ../fish/guestfish.pod:773
16129 msgid "PROGRESS BARS"
16130 msgstr ""
16131
16132 # type: textblock
16133 #: ../fish/guestfish.pod:775
16134 msgid ""
16135 "Some (not all) long-running commands send progress notification messages as "
16136 "they are running.  Guestfish turns these messages into progress bars."
16137 msgstr ""
16138
16139 # type: textblock
16140 #: ../fish/guestfish.pod:779
16141 msgid ""
16142 "When a command that supports progress bars takes longer than two seconds to "
16143 "run, and if progress bars are enabled, then you will see one appearing below "
16144 "the command:"
16145 msgstr ""
16146
16147 # type: verbatim
16148 #: ../fish/guestfish.pod:783
16149 #, no-wrap
16150 msgid ""
16151 " ><fs> copy-size /large-file /another-file 2048M\n"
16152 " / 10% [#####-----------------------------------------] 00:30\n"
16153 "\n"
16154 msgstr ""
16155
16156 # type: textblock
16157 #: ../fish/guestfish.pod:786
16158 msgid ""
16159 "The spinner on the left hand side moves round once for every progress "
16160 "notification received from the backend.  This is a (reasonably) golden "
16161 "assurance that the command is \"doing something\" even if the progress bar "
16162 "is not moving, because the command is able to send the progress "
16163 "notifications.  When the bar reaches 100% and the command finishes, the "
16164 "spinner disappears."
16165 msgstr ""
16166
16167 # type: textblock
16168 #: ../fish/guestfish.pod:793
16169 msgid ""
16170 "Progress bars are enabled by default when guestfish is used interactively.  "
16171 "You can enable them even for non-interactive modes using I<--progress-bars>, "
16172 "and you can disable them completely using I<--no-progress-bars>."
16173 msgstr ""
16174
16175 # type: =head1
16176 #: ../fish/guestfish.pod:798
16177 msgid "GUESTFISH COMMANDS"
16178 msgstr ""
16179
16180 # type: textblock
16181 #: ../fish/guestfish.pod:800
16182 msgid ""
16183 "The commands in this section are guestfish convenience commands, in other "
16184 "words, they are not part of the L<guestfs(3)> API."
16185 msgstr ""
16186
16187 # type: =head2
16188 #: ../fish/guestfish.pod:803
16189 msgid "help"
16190 msgstr ""
16191
16192 # type: verbatim
16193 #: ../fish/guestfish.pod:805
16194 #, no-wrap
16195 msgid ""
16196 " help\n"
16197 " help cmd\n"
16198 "\n"
16199 msgstr ""
16200
16201 # type: textblock
16202 #: ../fish/guestfish.pod:808
16203 msgid ""
16204 "Without any parameter, this lists all commands.  With a C<cmd> parameter, "
16205 "this displays detailed help for a command."
16206 msgstr ""
16207
16208 # type: =head2
16209 #: ../fish/guestfish.pod:811
16210 msgid "quit | exit"
16211 msgstr ""
16212
16213 # type: textblock
16214 #: ../fish/guestfish.pod:813
16215 msgid "This exits guestfish.  You can also use C<^D> key."
16216 msgstr ""
16217
16218 # type: textblock
16219 #: ../fish/guestfish.pod:815
16220 msgid "@FISH_COMMANDS@"
16221 msgstr ""
16222
16223 # type: =head1
16224 #: ../fish/guestfish.pod:817
16225 msgid "COMMANDS"
16226 msgstr ""
16227
16228 # type: =head1
16229 #: ../fish/guestfish.pod:821 ../test-tool/libguestfs-test-tool.pod:83
16230 msgid "EXIT CODE"
16231 msgstr ""
16232
16233 # type: textblock
16234 #: ../fish/guestfish.pod:823
16235 msgid ""
16236 "guestfish returns 0 if the commands completed without error, or 1 if there "
16237 "was an error."
16238 msgstr ""
16239
16240 # type: =item
16241 #: ../fish/guestfish.pod:830
16242 msgid "EDITOR"
16243 msgstr ""
16244
16245 # type: textblock
16246 #: ../fish/guestfish.pod:832
16247 msgid ""
16248 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
16249 "C<vi>."
16250 msgstr ""
16251
16252 # type: =item
16253 #: ../fish/guestfish.pod:835
16254 msgid "GUESTFISH_PID"
16255 msgstr ""
16256
16257 # type: textblock
16258 #: ../fish/guestfish.pod:837
16259 msgid ""
16260 "Used with the I<--remote> option to specify the remote guestfish process to "
16261 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
16262 msgstr ""
16263
16264 # type: =item
16265 #: ../fish/guestfish.pod:841
16266 msgid "HEXEDITOR"
16267 msgstr ""
16268
16269 # type: textblock
16270 #: ../fish/guestfish.pod:843
16271 msgid ""
16272 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
16273 "not specified, the external L<hexedit(1)> program is used."
16274 msgstr ""
16275
16276 # type: =item
16277 #: ../fish/guestfish.pod:847
16278 msgid "HOME"
16279 msgstr ""
16280
16281 # type: textblock
16282 #: ../fish/guestfish.pod:849
16283 msgid ""
16284 "If compiled with GNU readline support, various files in the home directory "
16285 "can be used.  See L</FILES>."
16286 msgstr ""
16287
16288 # type: textblock
16289 #: ../fish/guestfish.pod:858
16290 msgid ""
16291 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
16292 "effect as using the B<-v> option."
16293 msgstr ""
16294
16295 # type: textblock
16296 #: ../fish/guestfish.pod:870
16297 msgid ""
16298 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
16299 "the discussion of paths in L<guestfs(3)>."
16300 msgstr ""
16301
16302 # type: textblock
16303 #: ../fish/guestfish.pod:881
16304 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
16305 msgstr ""
16306
16307 # type: =item
16308 #: ../fish/guestfish.pod:883
16309 msgid "PAGER"
16310 msgstr ""
16311
16312 # type: textblock
16313 #: ../fish/guestfish.pod:885
16314 msgid ""
16315 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
16316 "C<more>."
16317 msgstr ""
16318
16319 # type: =head1
16320 #: ../fish/guestfish.pod:900 ../test-tool/libguestfs-test-tool.pod:88
16321 msgid "FILES"
16322 msgstr ""
16323
16324 # type: =item
16325 #: ../fish/guestfish.pod:904
16326 msgid "$HOME/.guestfish"
16327 msgstr ""
16328
16329 # type: textblock
16330 #: ../fish/guestfish.pod:906
16331 msgid ""
16332 "If compiled with GNU readline support, then the command history is saved in "
16333 "this file."
16334 msgstr ""
16335
16336 # type: =item
16337 #: ../fish/guestfish.pod:909
16338 msgid "$HOME/.inputrc"
16339 msgstr ""
16340
16341 # type: =item
16342 #: ../fish/guestfish.pod:911
16343 msgid "/etc/inputrc"
16344 msgstr ""
16345
16346 # type: textblock
16347 #: ../fish/guestfish.pod:913
16348 msgid ""
16349 "If compiled with GNU readline support, then these files can be used to "
16350 "configure readline.  For further information, please see "
16351 "L<readline(3)/INITIALIZATION FILE>."
16352 msgstr ""
16353
16354 # type: textblock
16355 #: ../fish/guestfish.pod:917
16356 msgid "To write rules which only apply to guestfish, use:"
16357 msgstr ""
16358
16359 # type: verbatim
16360 #: ../fish/guestfish.pod:919
16361 #, no-wrap
16362 msgid ""
16363 " $if guestfish\n"
16364 " ...\n"
16365 " $endif\n"
16366 "\n"
16367 msgstr ""
16368
16369 # type: textblock
16370 #: ../fish/guestfish.pod:923
16371 msgid ""
16372 "Variables that you can set in inputrc that change the behaviour of guestfish "
16373 "in useful ways include:"
16374 msgstr ""
16375
16376 # type: =item
16377 #: ../fish/guestfish.pod:928
16378 msgid "completion-ignore-case (default: on)"
16379 msgstr ""
16380
16381 # type: textblock
16382 #: ../fish/guestfish.pod:930
16383 msgid ""
16384 "By default, guestfish will ignore case when tab-completing paths on the "
16385 "disk.  Use:"
16386 msgstr ""
16387
16388 # type: verbatim
16389 #: ../fish/guestfish.pod:933
16390 #, no-wrap
16391 msgid ""
16392 " set completion-ignore-case off\n"
16393 "\n"
16394 msgstr ""
16395
16396 # type: textblock
16397 #: ../fish/guestfish.pod:935
16398 msgid "to make guestfish case sensitive."
16399 msgstr ""
16400
16401 # type: =item
16402 #: ../fish/guestfish.pod:939
16403 msgid "test1.img"
16404 msgstr ""
16405
16406 # type: =item
16407 #: ../fish/guestfish.pod:941
16408 msgid "test2.img (etc)"
16409 msgstr ""
16410
16411 # type: textblock
16412 #: ../fish/guestfish.pod:943
16413 msgid ""
16414 "When using the C<-N> or C<--new> option, the prepared disk or filesystem "
16415 "will be created in the file C<test1.img> in the current directory.  The "
16416 "second use of C<-N> will use C<test2.img> and so on.  Any existing file with "
16417 "the same name will be overwritten."
16418 msgstr ""
16419
16420 # type: textblock
16421 #: ../fish/guestfish.pod:952
16422 msgid ""
16423 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-cat(1)>, L<virt-df(1)>, "
16424 "L<virt-edit(1)>, L<virt-list-filesystems(1)>, L<virt-list-partitions(1)>, "
16425 "L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-resize(1)>, "
16426 "L<virt-tar(1)>, L<virt-win-reg(1)>, L<hexedit(1)>."
16427 msgstr ""
16428
16429 # type: textblock
16430 #: ../fish/guestfish.pod:976 ../test-tool/libguestfs-test-tool.pod:124 ../fuse/guestmount.pod:198 ../inspector/virt-inspector.pl:872 ../tools/virt-edit.pl:352 ../tools/virt-win-reg.pl:502 ../tools/virt-df.pl:590 ../tools/virt-ls.pl:236 ../tools/virt-resize.pl:1477 ../tools/virt-list-filesystems.pl:218 ../tools/virt-cat.pl:188 ../tools/virt-tar.pl:283 ../tools/virt-rescue.pl:256 ../tools/virt-make-fs.pl:567 ../tools/virt-list-partitions.pl:255
16431 msgid ""
16432 "This program is free software; you can redistribute it and/or modify it "
16433 "under the terms of the GNU General Public License as published by the Free "
16434 "Software Foundation; either version 2 of the License, or (at your option) "
16435 "any later version."
16436 msgstr ""
16437
16438 # type: textblock
16439 #: ../fish/guestfish.pod:981 ../test-tool/libguestfs-test-tool.pod:129 ../fuse/guestmount.pod:203 ../inspector/virt-inspector.pl:877 ../tools/virt-edit.pl:357 ../tools/virt-win-reg.pl:507 ../tools/virt-df.pl:595 ../tools/virt-ls.pl:241 ../tools/virt-resize.pl:1482 ../tools/virt-list-filesystems.pl:223 ../tools/virt-cat.pl:193 ../tools/virt-tar.pl:288 ../tools/virt-rescue.pl:261 ../tools/virt-make-fs.pl:572 ../tools/virt-list-partitions.pl:260
16440 msgid ""
16441 "This program is distributed in the hope that it will be useful, but WITHOUT "
16442 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
16443 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
16444 "more details."
16445 msgstr ""
16446
16447 # type: textblock
16448 #: ../fish/guestfish.pod:986 ../test-tool/libguestfs-test-tool.pod:134 ../fuse/guestmount.pod:208 ../inspector/virt-inspector.pl:882 ../tools/virt-edit.pl:362 ../tools/virt-win-reg.pl:512 ../tools/virt-df.pl:600 ../tools/virt-ls.pl:246 ../tools/virt-resize.pl:1487 ../tools/virt-list-filesystems.pl:228 ../tools/virt-cat.pl:198 ../tools/virt-tar.pl:293 ../tools/virt-rescue.pl:266 ../tools/virt-make-fs.pl:577 ../tools/virt-list-partitions.pl:265
16449 msgid ""
16450 "You should have received a copy of the GNU General Public License along with "
16451 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
16452 "Ave, Cambridge, MA 02139, USA."
16453 msgstr ""
16454
16455 # type: =head2
16456 #: ../fish/guestfish-actions.pod:1
16457 msgid "add-cdrom"
16458 msgstr ""
16459
16460 # type: =head2
16461 #: ../fish/guestfish-actions.pod:3
16462 msgid "cdrom"
16463 msgstr ""
16464
16465 # type: verbatim
16466 #: ../fish/guestfish-actions.pod:5
16467 #, no-wrap
16468 msgid ""
16469 " add-cdrom filename\n"
16470 "\n"
16471 msgstr ""
16472
16473 # type: textblock
16474 #: ../fish/guestfish-actions.pod:17
16475 msgid ""
16476 "This call checks for the existence of C<filename>.  This stops you from "
16477 "specifying other types of drive which are supported by qemu such as C<nbd:> "
16478 "and C<http:> URLs.  To specify those, use the general L</config> call "
16479 "instead."
16480 msgstr ""
16481
16482 # type: textblock
16483 #: ../fish/guestfish-actions.pod:24
16484 msgid ""
16485 "If you just want to add an ISO file (often you use this as an efficient way "
16486 "to transfer large files into the guest), then you should probably use "
16487 "L</add-drive-ro> instead."
16488 msgstr ""
16489
16490 # type: =head2
16491 #: ../fish/guestfish-actions.pod:30
16492 msgid "add-drive"
16493 msgstr ""
16494
16495 # type: =head2
16496 #: ../fish/guestfish-actions.pod:32
16497 msgid "add"
16498 msgstr ""
16499
16500 # type: verbatim
16501 #: ../fish/guestfish-actions.pod:34
16502 #, no-wrap
16503 msgid ""
16504 " add-drive filename\n"
16505 "\n"
16506 msgstr ""
16507
16508 # type: textblock
16509 #: ../fish/guestfish-actions.pod:53 ../fish/guestfish-actions.pod:81
16510 msgid ""
16511 "C<if=...> is set at compile time by the configuration option C<./configure "
16512 "--with-drive-if=...>.  In the rare case where you might need to change this "
16513 "at run time, use L</add-drive-with-if> or L</add-drive-ro-with-if>."
16514 msgstr ""
16515
16516 # type: textblock
16517 #: ../fish/guestfish-actions.pod:58 ../fish/guestfish-actions.pod:86
16518 msgid ""
16519 "Note that this call checks for the existence of C<filename>.  This stops you "
16520 "from specifying other types of drive which are supported by qemu such as "
16521 "C<nbd:> and C<http:> URLs.  To specify those, use the general L</config> "
16522 "call instead."
16523 msgstr ""
16524
16525 # type: =head2
16526 #: ../fish/guestfish-actions.pod:63
16527 msgid "add-drive-ro"
16528 msgstr ""
16529
16530 # type: =head2
16531 #: ../fish/guestfish-actions.pod:65
16532 msgid "add-ro"
16533 msgstr ""
16534
16535 # type: verbatim
16536 #: ../fish/guestfish-actions.pod:67
16537 #, no-wrap
16538 msgid ""
16539 " add-drive-ro filename\n"
16540 "\n"
16541 msgstr ""
16542
16543 # type: =head2
16544 #: ../fish/guestfish-actions.pod:91
16545 msgid "add-drive-ro-with-if"
16546 msgstr ""
16547
16548 # type: verbatim
16549 #: ../fish/guestfish-actions.pod:93
16550 #, no-wrap
16551 msgid ""
16552 " add-drive-ro-with-if filename iface\n"
16553 "\n"
16554 msgstr ""
16555
16556 # type: textblock
16557 #: ../fish/guestfish-actions.pod:95
16558 msgid ""
16559 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
16560 "interface emulation to use at run time."
16561 msgstr ""
16562
16563 # type: =head2
16564 #: ../fish/guestfish-actions.pod:98
16565 msgid "add-drive-with-if"
16566 msgstr ""
16567
16568 # type: verbatim
16569 #: ../fish/guestfish-actions.pod:100
16570 #, no-wrap
16571 msgid ""
16572 " add-drive-with-if filename iface\n"
16573 "\n"
16574 msgstr ""
16575
16576 # type: textblock
16577 #: ../fish/guestfish-actions.pod:102
16578 msgid ""
16579 "This is the same as L</add-drive> but it allows you to specify the QEMU "
16580 "interface emulation to use at run time."
16581 msgstr ""
16582
16583 # type: =head2
16584 #: ../fish/guestfish-actions.pod:105
16585 msgid "aug-clear"
16586 msgstr ""
16587
16588 # type: verbatim
16589 #: ../fish/guestfish-actions.pod:107
16590 #, no-wrap
16591 msgid ""
16592 " aug-clear augpath\n"
16593 "\n"
16594 msgstr ""
16595
16596 # type: =head2
16597 #: ../fish/guestfish-actions.pod:112
16598 msgid "aug-close"
16599 msgstr ""
16600
16601 # type: verbatim
16602 #: ../fish/guestfish-actions.pod:114
16603 #, no-wrap
16604 msgid ""
16605 " aug-close\n"
16606 "\n"
16607 msgstr ""
16608
16609 # type: textblock
16610 #: ../fish/guestfish-actions.pod:116
16611 msgid ""
16612 "Close the current Augeas handle and free up any resources used by it.  After "
16613 "calling this, you have to call L</aug-init> again before you can use any "
16614 "other Augeas functions."
16615 msgstr ""
16616
16617 # type: =head2
16618 #: ../fish/guestfish-actions.pod:121
16619 msgid "aug-defnode"
16620 msgstr ""
16621
16622 # type: verbatim
16623 #: ../fish/guestfish-actions.pod:123
16624 #, no-wrap
16625 msgid ""
16626 " aug-defnode name expr val\n"
16627 "\n"
16628 msgstr ""
16629
16630 # type: textblock
16631 #: ../fish/guestfish-actions.pod:128
16632 msgid ""
16633 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
16634 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
16635 "containing that single node."
16636 msgstr ""
16637
16638 # type: =head2
16639 #: ../fish/guestfish-actions.pod:136
16640 msgid "aug-defvar"
16641 msgstr ""
16642
16643 # type: verbatim
16644 #: ../fish/guestfish-actions.pod:138
16645 #, no-wrap
16646 msgid ""
16647 " aug-defvar name expr\n"
16648 "\n"
16649 msgstr ""
16650
16651 # type: =head2
16652 #: ../fish/guestfish-actions.pod:147
16653 msgid "aug-get"
16654 msgstr ""
16655
16656 # type: verbatim
16657 #: ../fish/guestfish-actions.pod:149
16658 #, no-wrap
16659 msgid ""
16660 " aug-get augpath\n"
16661 "\n"
16662 msgstr ""
16663
16664 # type: =head2
16665 #: ../fish/guestfish-actions.pod:154
16666 msgid "aug-init"
16667 msgstr ""
16668
16669 # type: verbatim
16670 #: ../fish/guestfish-actions.pod:156
16671 #, no-wrap
16672 msgid ""
16673 " aug-init root flags\n"
16674 "\n"
16675 msgstr ""
16676
16677 # type: textblock
16678 #: ../fish/guestfish-actions.pod:162
16679 msgid "You must call this before using any other L</aug-*> commands."
16680 msgstr ""
16681
16682 # type: textblock
16683 #: ../fish/guestfish-actions.pod:197
16684 msgid "Do not load the tree in L</aug-init>."
16685 msgstr ""
16686
16687 # type: textblock
16688 #: ../fish/guestfish-actions.pod:201
16689 msgid "To close the handle, you can call L</aug-close>."
16690 msgstr ""
16691
16692 # type: =head2
16693 #: ../fish/guestfish-actions.pod:205
16694 msgid "aug-insert"
16695 msgstr ""
16696
16697 # type: verbatim
16698 #: ../fish/guestfish-actions.pod:207
16699 #, no-wrap
16700 msgid ""
16701 " aug-insert augpath label true|false\n"
16702 "\n"
16703 msgstr ""
16704
16705 # type: =head2
16706 #: ../fish/guestfish-actions.pod:217
16707 msgid "aug-load"
16708 msgstr ""
16709
16710 # type: verbatim
16711 #: ../fish/guestfish-actions.pod:219
16712 #, no-wrap
16713 msgid ""
16714 " aug-load\n"
16715 "\n"
16716 msgstr ""
16717
16718 # type: =head2
16719 #: ../fish/guestfish-actions.pod:226
16720 msgid "aug-ls"
16721 msgstr ""
16722
16723 # type: verbatim
16724 #: ../fish/guestfish-actions.pod:228
16725 #, no-wrap
16726 msgid ""
16727 " aug-ls augpath\n"
16728 "\n"
16729 msgstr ""
16730
16731 # type: textblock
16732 #: ../fish/guestfish-actions.pod:230
16733 msgid ""
16734 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
16735 "resulting nodes into alphabetical order."
16736 msgstr ""
16737
16738 # type: =head2
16739 #: ../fish/guestfish-actions.pod:233
16740 msgid "aug-match"
16741 msgstr ""
16742
16743 # type: verbatim
16744 #: ../fish/guestfish-actions.pod:235
16745 #, no-wrap
16746 msgid ""
16747 " aug-match augpath\n"
16748 "\n"
16749 msgstr ""
16750
16751 # type: =head2
16752 #: ../fish/guestfish-actions.pod:241
16753 msgid "aug-mv"
16754 msgstr ""
16755
16756 # type: verbatim
16757 #: ../fish/guestfish-actions.pod:243
16758 #, no-wrap
16759 msgid ""
16760 " aug-mv src dest\n"
16761 "\n"
16762 msgstr ""
16763
16764 # type: =head2
16765 #: ../fish/guestfish-actions.pod:248
16766 msgid "aug-rm"
16767 msgstr ""
16768
16769 # type: verbatim
16770 #: ../fish/guestfish-actions.pod:250
16771 #, no-wrap
16772 msgid ""
16773 " aug-rm augpath\n"
16774 "\n"
16775 msgstr ""
16776
16777 # type: =head2
16778 #: ../fish/guestfish-actions.pod:256
16779 msgid "aug-save"
16780 msgstr ""
16781
16782 # type: verbatim
16783 #: ../fish/guestfish-actions.pod:258
16784 #, no-wrap
16785 msgid ""
16786 " aug-save\n"
16787 "\n"
16788 msgstr ""
16789
16790 # type: textblock
16791 #: ../fish/guestfish-actions.pod:262
16792 msgid ""
16793 "The flags which were passed to L</aug-init> affect exactly how files are "
16794 "saved."
16795 msgstr ""
16796
16797 # type: =head2
16798 #: ../fish/guestfish-actions.pod:265
16799 msgid "aug-set"
16800 msgstr ""
16801
16802 # type: verbatim
16803 #: ../fish/guestfish-actions.pod:267
16804 #, no-wrap
16805 msgid ""
16806 " aug-set augpath val\n"
16807 "\n"
16808 msgstr ""
16809
16810 # type: textblock
16811 #: ../fish/guestfish-actions.pod:271
16812 msgid ""
16813 "In the Augeas API, it is possible to clear a node by setting the value to "
16814 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
16815 "this call.  Instead you must use the L</aug-clear> call."
16816 msgstr ""
16817
16818 # type: =head2
16819 #: ../fish/guestfish-actions.pod:276
16820 msgid "available"
16821 msgstr ""
16822
16823 # type: verbatim
16824 #: ../fish/guestfish-actions.pod:278
16825 #, no-wrap
16826 msgid ""
16827 " available 'groups ...'\n"
16828 "\n"
16829 msgstr ""
16830
16831 # type: textblock
16832 #: ../fish/guestfish-actions.pod:284
16833 msgid ""
16834 "The libguestfs groups, and the functions that those groups correspond to, "
16835 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
16836 "runtime by calling L</available-all-groups>."
16837 msgstr ""
16838
16839 # type: textblock
16840 #: ../fish/guestfish-actions.pod:308
16841 msgid "You must call L</launch> before calling this function."
16842 msgstr ""
16843
16844 # type: textblock
16845 #: ../fish/guestfish-actions.pod:330
16846 msgid ""
16847 "This call was added in version C<1.0.80>.  In previous versions of "
16848 "libguestfs all you could do would be to speculatively execute a command to "
16849 "find out if the daemon implemented it.  See also L</version>."
16850 msgstr ""
16851
16852 # type: =head2
16853 #: ../fish/guestfish-actions.pod:337
16854 msgid "available-all-groups"
16855 msgstr ""
16856
16857 # type: verbatim
16858 #: ../fish/guestfish-actions.pod:339
16859 #, no-wrap
16860 msgid ""
16861 " available-all-groups\n"
16862 "\n"
16863 msgstr ""
16864
16865 # type: textblock
16866 #: ../fish/guestfish-actions.pod:341
16867 msgid ""
16868 "This command returns a list of all optional groups that this daemon knows "
16869 "about.  Note this returns both supported and unsupported groups.  To find "
16870 "out which ones the daemon can actually support you have to call "
16871 "L</available> on each member of the returned list."
16872 msgstr ""
16873
16874 # type: textblock
16875 #: ../fish/guestfish-actions.pod:347
16876 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
16877 msgstr ""
16878
16879 # type: =head2
16880 #: ../fish/guestfish-actions.pod:349
16881 msgid "base64-in"
16882 msgstr ""
16883
16884 # type: verbatim
16885 #: ../fish/guestfish-actions.pod:351
16886 #, no-wrap
16887 msgid ""
16888 " base64-in (base64file|-) filename\n"
16889 "\n"
16890 msgstr ""
16891
16892 # type: textblock
16893 #: ../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:3835 ../fish/guestfish-actions.pod:3847 ../fish/guestfish-actions.pod:3858 ../fish/guestfish-actions.pod:3869 ../fish/guestfish-actions.pod:3921 ../fish/guestfish-actions.pod:3930 ../fish/guestfish-actions.pod:3984 ../fish/guestfish-actions.pod:4007
16894 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
16895 msgstr ""
16896
16897 # type: =head2
16898 #: ../fish/guestfish-actions.pod:358
16899 msgid "base64-out"
16900 msgstr ""
16901
16902 # type: verbatim
16903 #: ../fish/guestfish-actions.pod:360
16904 #, no-wrap
16905 msgid ""
16906 " base64-out filename (base64file|-)\n"
16907 "\n"
16908 msgstr ""
16909
16910 # type: =head2
16911 #: ../fish/guestfish-actions.pod:367
16912 msgid "blockdev-flushbufs"
16913 msgstr ""
16914
16915 # type: verbatim
16916 #: ../fish/guestfish-actions.pod:369
16917 #, no-wrap
16918 msgid ""
16919 " blockdev-flushbufs device\n"
16920 "\n"
16921 msgstr ""
16922
16923 # type: =head2
16924 #: ../fish/guestfish-actions.pod:376
16925 msgid "blockdev-getbsz"
16926 msgstr ""
16927
16928 # type: verbatim
16929 #: ../fish/guestfish-actions.pod:378
16930 #, no-wrap
16931 msgid ""
16932 " blockdev-getbsz device\n"
16933 "\n"
16934 msgstr ""
16935
16936 # type: =head2
16937 #: ../fish/guestfish-actions.pod:387
16938 msgid "blockdev-getro"
16939 msgstr ""
16940
16941 # type: verbatim
16942 #: ../fish/guestfish-actions.pod:389
16943 #, no-wrap
16944 msgid ""
16945 " blockdev-getro device\n"
16946 "\n"
16947 msgstr ""
16948
16949 # type: =head2
16950 #: ../fish/guestfish-actions.pod:396
16951 msgid "blockdev-getsize64"
16952 msgstr ""
16953
16954 # type: verbatim
16955 #: ../fish/guestfish-actions.pod:398
16956 #, no-wrap
16957 msgid ""
16958 " blockdev-getsize64 device\n"
16959 "\n"
16960 msgstr ""
16961
16962 # type: textblock
16963 #: ../fish/guestfish-actions.pod:402
16964 msgid "See also L</blockdev-getsz>."
16965 msgstr ""
16966
16967 # type: =head2
16968 #: ../fish/guestfish-actions.pod:406
16969 msgid "blockdev-getss"
16970 msgstr ""
16971
16972 # type: verbatim
16973 #: ../fish/guestfish-actions.pod:408
16974 #, no-wrap
16975 msgid ""
16976 " blockdev-getss device\n"
16977 "\n"
16978 msgstr ""
16979
16980 # type: textblock
16981 #: ../fish/guestfish-actions.pod:413
16982 msgid "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
16983 msgstr ""
16984
16985 # type: =head2
16986 #: ../fish/guestfish-actions.pod:418
16987 msgid "blockdev-getsz"
16988 msgstr ""
16989
16990 # type: verbatim
16991 #: ../fish/guestfish-actions.pod:420
16992 #, no-wrap
16993 msgid ""
16994 " blockdev-getsz device\n"
16995 "\n"
16996 msgstr ""
16997
16998 # type: textblock
16999 #: ../fish/guestfish-actions.pod:425
17000 msgid ""
17001 "See also L</blockdev-getss> for the real sector size of the device, and "
17002 "L</blockdev-getsize64> for the more useful I<size in bytes>."
17003 msgstr ""
17004
17005 # type: =head2
17006 #: ../fish/guestfish-actions.pod:431
17007 msgid "blockdev-rereadpt"
17008 msgstr ""
17009
17010 # type: verbatim
17011 #: ../fish/guestfish-actions.pod:433
17012 #, no-wrap
17013 msgid ""
17014 " blockdev-rereadpt device\n"
17015 "\n"
17016 msgstr ""
17017
17018 # type: =head2
17019 #: ../fish/guestfish-actions.pod:439
17020 msgid "blockdev-setbsz"
17021 msgstr ""
17022
17023 # type: verbatim
17024 #: ../fish/guestfish-actions.pod:441
17025 #, no-wrap
17026 msgid ""
17027 " blockdev-setbsz device blocksize\n"
17028 "\n"
17029 msgstr ""
17030
17031 # type: =head2
17032 #: ../fish/guestfish-actions.pod:450
17033 msgid "blockdev-setro"
17034 msgstr ""
17035
17036 # type: verbatim
17037 #: ../fish/guestfish-actions.pod:452
17038 #, no-wrap
17039 msgid ""
17040 " blockdev-setro device\n"
17041 "\n"
17042 msgstr ""
17043
17044 # type: =head2
17045 #: ../fish/guestfish-actions.pod:458
17046 msgid "blockdev-setrw"
17047 msgstr ""
17048
17049 # type: verbatim
17050 #: ../fish/guestfish-actions.pod:460
17051 #, no-wrap
17052 msgid ""
17053 " blockdev-setrw device\n"
17054 "\n"
17055 msgstr ""
17056
17057 # type: =head2
17058 #: ../fish/guestfish-actions.pod:466
17059 msgid "case-sensitive-path"
17060 msgstr ""
17061
17062 # type: verbatim
17063 #: ../fish/guestfish-actions.pod:468
17064 #, no-wrap
17065 msgid ""
17066 " case-sensitive-path path\n"
17067 "\n"
17068 msgstr ""
17069
17070 # type: textblock
17071 #: ../fish/guestfish-actions.pod:492
17072 msgid ""
17073 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return "
17074 "C<\"/WINDOWS/system32\"> (the exact return value would depend on details of "
17075 "how the directories were originally created under Windows)."
17076 msgstr ""
17077
17078 # type: textblock
17079 #: ../fish/guestfish-actions.pod:500
17080 msgid "See also L</realpath>."
17081 msgstr ""
17082
17083 # type: =head2
17084 #: ../fish/guestfish-actions.pod:502
17085 msgid "cat"
17086 msgstr ""
17087
17088 # type: verbatim
17089 #: ../fish/guestfish-actions.pod:504
17090 #, no-wrap
17091 msgid ""
17092 " cat path\n"
17093 "\n"
17094 msgstr ""
17095
17096 # type: textblock
17097 #: ../fish/guestfish-actions.pod:508
17098 msgid ""
17099 "Note that this function cannot correctly handle binary files (specifically, "
17100 "files containing C<\\0> character which is treated as end of string).  For "
17101 "those you need to use the L</read-file> or L</download> functions which have "
17102 "a more complex interface."
17103 msgstr ""
17104
17105 # type: =head2
17106 #: ../fish/guestfish-actions.pod:516
17107 msgid "checksum"
17108 msgstr ""
17109
17110 # type: verbatim
17111 #: ../fish/guestfish-actions.pod:518
17112 #, no-wrap
17113 msgid ""
17114 " checksum csumtype path\n"
17115 "\n"
17116 msgstr ""
17117
17118 # type: textblock
17119 #: ../fish/guestfish-actions.pod:561
17120 msgid "To get the checksum for a device, use L</checksum-device>."
17121 msgstr ""
17122
17123 # type: textblock
17124 #: ../fish/guestfish-actions.pod:563
17125 msgid "To get the checksums for many files, use L</checksums-out>."
17126 msgstr ""
17127
17128 # type: =head2
17129 #: ../fish/guestfish-actions.pod:565
17130 msgid "checksum-device"
17131 msgstr ""
17132
17133 # type: verbatim
17134 #: ../fish/guestfish-actions.pod:567
17135 #, no-wrap
17136 msgid ""
17137 " checksum-device csumtype device\n"
17138 "\n"
17139 msgstr ""
17140
17141 # type: textblock
17142 #: ../fish/guestfish-actions.pod:569
17143 msgid ""
17144 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
17145 "device named C<device>.  For the types of checksums supported see the "
17146 "L</checksum> command."
17147 msgstr ""
17148
17149 # type: =head2
17150 #: ../fish/guestfish-actions.pod:573
17151 msgid "checksums-out"
17152 msgstr ""
17153
17154 # type: verbatim
17155 #: ../fish/guestfish-actions.pod:575
17156 #, no-wrap
17157 msgid ""
17158 " checksums-out csumtype directory (sumsfile|-)\n"
17159 "\n"
17160 msgstr ""
17161
17162 # type: =head2
17163 #: ../fish/guestfish-actions.pod:591
17164 msgid "chmod"
17165 msgstr ""
17166
17167 # type: verbatim
17168 #: ../fish/guestfish-actions.pod:593
17169 #, no-wrap
17170 msgid ""
17171 " chmod mode path\n"
17172 "\n"
17173 msgstr ""
17174
17175 # type: =head2
17176 #: ../fish/guestfish-actions.pod:604
17177 msgid "chown"
17178 msgstr ""
17179
17180 # type: verbatim
17181 #: ../fish/guestfish-actions.pod:606
17182 #, no-wrap
17183 msgid ""
17184 " chown owner group path\n"
17185 "\n"
17186 msgstr ""
17187
17188 # type: =head2
17189 #: ../fish/guestfish-actions.pod:614
17190 msgid "command"
17191 msgstr ""
17192
17193 # type: verbatim
17194 #: ../fish/guestfish-actions.pod:616
17195 #, no-wrap
17196 msgid ""
17197 " command 'arguments ...'\n"
17198 "\n"
17199 msgstr ""
17200
17201 # type: textblock
17202 #: ../fish/guestfish-actions.pod:623
17203 msgid ""
17204 "The single parameter is an argv-style list of arguments.  The first element "
17205 "is the name of the program to run.  Subsequent elements are parameters.  The "
17206 "list must be non-empty (ie. must contain a program name).  Note that the "
17207 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
17208 msgstr ""
17209
17210 # type: =head2
17211 #: ../fish/guestfish-actions.pod:651
17212 msgid "command-lines"
17213 msgstr ""
17214
17215 # type: verbatim
17216 #: ../fish/guestfish-actions.pod:653
17217 #, no-wrap
17218 msgid ""
17219 " command-lines 'arguments ...'\n"
17220 "\n"
17221 msgstr ""
17222
17223 # type: textblock
17224 #: ../fish/guestfish-actions.pod:655
17225 msgid "This is the same as L</command>, but splits the result into a list of lines."
17226 msgstr ""
17227
17228 # type: textblock
17229 #: ../fish/guestfish-actions.pod:658
17230 msgid "See also: L</sh-lines>"
17231 msgstr ""
17232
17233 # type: =head2
17234 #: ../fish/guestfish-actions.pod:663
17235 msgid "config"
17236 msgstr ""
17237
17238 # type: verbatim
17239 #: ../fish/guestfish-actions.pod:665
17240 #, no-wrap
17241 msgid ""
17242 " config qemuparam qemuvalue\n"
17243 "\n"
17244 msgstr ""
17245
17246 # type: =head2
17247 #: ../fish/guestfish-actions.pod:676
17248 msgid "copy-size"
17249 msgstr ""
17250
17251 # type: verbatim
17252 #: ../fish/guestfish-actions.pod:678
17253 #, no-wrap
17254 msgid ""
17255 " copy-size src dest size\n"
17256 "\n"
17257 msgstr ""
17258
17259 # type: =head2
17260 #: ../fish/guestfish-actions.pod:686
17261 msgid "cp"
17262 msgstr ""
17263
17264 # type: verbatim
17265 #: ../fish/guestfish-actions.pod:688
17266 #, no-wrap
17267 msgid ""
17268 " cp src dest\n"
17269 "\n"
17270 msgstr ""
17271
17272 # type: =head2
17273 #: ../fish/guestfish-actions.pod:693
17274 msgid "cp-a"
17275 msgstr ""
17276
17277 # type: verbatim
17278 #: ../fish/guestfish-actions.pod:695
17279 #, no-wrap
17280 msgid ""
17281 " cp-a src dest\n"
17282 "\n"
17283 msgstr ""
17284
17285 # type: =head2
17286 #: ../fish/guestfish-actions.pod:700
17287 msgid "dd"
17288 msgstr ""
17289
17290 # type: verbatim
17291 #: ../fish/guestfish-actions.pod:702
17292 #, no-wrap
17293 msgid ""
17294 " dd src dest\n"
17295 "\n"
17296 msgstr ""
17297
17298 # type: textblock
17299 #: ../fish/guestfish-actions.pod:709
17300 msgid ""
17301 "If the destination is a device, it must be as large or larger than the "
17302 "source file or device, otherwise the copy will fail.  This command cannot do "
17303 "partial copies (see L</copy-size>)."
17304 msgstr ""
17305
17306 # type: =head2
17307 #: ../fish/guestfish-actions.pod:713
17308 msgid "debug"
17309 msgstr ""
17310
17311 # type: verbatim
17312 #: ../fish/guestfish-actions.pod:715
17313 #, no-wrap
17314 msgid ""
17315 " debug subcmd 'extraargs ...'\n"
17316 "\n"
17317 msgstr ""
17318
17319 # type: textblock
17320 #: ../fish/guestfish-actions.pod:717
17321 msgid ""
17322 "The L</debug> command exposes some internals of C<guestfsd> (the guestfs "
17323 "daemon) that runs inside the qemu subprocess."
17324 msgstr ""
17325
17326 # type: =head2
17327 #: ../fish/guestfish-actions.pod:725
17328 msgid "debug-upload"
17329 msgstr ""
17330
17331 # type: verbatim
17332 #: ../fish/guestfish-actions.pod:727
17333 #, no-wrap
17334 msgid ""
17335 " debug-upload (filename|-) tmpname mode\n"
17336 "\n"
17337 msgstr ""
17338
17339 # type: textblock
17340 #: ../fish/guestfish-actions.pod:729
17341 msgid "The L</debug-upload> command uploads a file to the libguestfs appliance."
17342 msgstr ""
17343
17344 # type: =head2
17345 #: ../fish/guestfish-actions.pod:738
17346 msgid "df"
17347 msgstr ""
17348
17349 # type: verbatim
17350 #: ../fish/guestfish-actions.pod:740
17351 #, no-wrap
17352 msgid ""
17353 " df\n"
17354 "\n"
17355 msgstr ""
17356
17357 # type: =head2
17358 #: ../fish/guestfish-actions.pod:748
17359 msgid "df-h"
17360 msgstr ""
17361
17362 # type: verbatim
17363 #: ../fish/guestfish-actions.pod:750
17364 #, no-wrap
17365 msgid ""
17366 " df-h\n"
17367 "\n"
17368 msgstr ""
17369
17370 # type: =head2
17371 #: ../fish/guestfish-actions.pod:759
17372 msgid "dmesg"
17373 msgstr ""
17374
17375 # type: verbatim
17376 #: ../fish/guestfish-actions.pod:761
17377 #, no-wrap
17378 msgid ""
17379 " dmesg\n"
17380 "\n"
17381 msgstr ""
17382
17383 # type: textblock
17384 #: ../fish/guestfish-actions.pod:767
17385 msgid ""
17386 "Another way to get the same information is to enable verbose messages with "
17387 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
17388 "before running the program."
17389 msgstr ""
17390
17391 # type: =head2
17392 #: ../fish/guestfish-actions.pod:772
17393 msgid "download"
17394 msgstr ""
17395
17396 # type: verbatim
17397 #: ../fish/guestfish-actions.pod:774
17398 #, no-wrap
17399 msgid ""
17400 " download remotefilename (filename|-)\n"
17401 "\n"
17402 msgstr ""
17403
17404 # type: textblock
17405 #: ../fish/guestfish-actions.pod:781
17406 msgid "See also L</upload>, L</cat>."
17407 msgstr ""
17408
17409 # type: =head2
17410 #: ../fish/guestfish-actions.pod:785
17411 msgid "download-offset"
17412 msgstr ""
17413
17414 # type: verbatim
17415 #: ../fish/guestfish-actions.pod:787
17416 #, no-wrap
17417 msgid ""
17418 " download-offset remotefilename (filename|-) offset size\n"
17419 "\n"
17420 msgstr ""
17421
17422 # type: textblock
17423 #: ../fish/guestfish-actions.pod:795
17424 msgid ""
17425 "Note that there is no limit on the amount of data that can be downloaded "
17426 "with this call, unlike with L</pread>, and this call always reads the full "
17427 "amount unless an error occurs."
17428 msgstr ""
17429
17430 # type: textblock
17431 #: ../fish/guestfish-actions.pod:800
17432 msgid "See also L</download>, L</pread>."
17433 msgstr ""
17434
17435 # type: =head2
17436 #: ../fish/guestfish-actions.pod:804
17437 msgid "drop-caches"
17438 msgstr ""
17439
17440 # type: verbatim
17441 #: ../fish/guestfish-actions.pod:806
17442 #, no-wrap
17443 msgid ""
17444 " drop-caches whattodrop\n"
17445 "\n"
17446 msgstr ""
17447
17448 # type: =head2
17449 #: ../fish/guestfish-actions.pod:818
17450 msgid "du"
17451 msgstr ""
17452
17453 # type: verbatim
17454 #: ../fish/guestfish-actions.pod:820
17455 #, no-wrap
17456 msgid ""
17457 " du path\n"
17458 "\n"
17459 msgstr ""
17460
17461 # type: =head2
17462 #: ../fish/guestfish-actions.pod:832
17463 msgid "e2fsck-f"
17464 msgstr ""
17465
17466 # type: verbatim
17467 #: ../fish/guestfish-actions.pod:834
17468 #, no-wrap
17469 msgid ""
17470 " e2fsck-f device\n"
17471 "\n"
17472 msgstr ""
17473
17474 # type: textblock
17475 #: ../fish/guestfish-actions.pod:840
17476 msgid ""
17477 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
17478 "should use L</fsck>."
17479 msgstr ""
17480
17481 # type: =head2
17482 #: ../fish/guestfish-actions.pod:843
17483 msgid "echo-daemon"
17484 msgstr ""
17485
17486 # type: verbatim
17487 #: ../fish/guestfish-actions.pod:845
17488 #, no-wrap
17489 msgid ""
17490 " echo-daemon 'words ...'\n"
17491 "\n"
17492 msgstr ""
17493
17494 # type: textblock
17495 #: ../fish/guestfish-actions.pod:852
17496 msgid "See also L</ping-daemon>."
17497 msgstr ""
17498
17499 # type: =head2
17500 #: ../fish/guestfish-actions.pod:854
17501 msgid "egrep"
17502 msgstr ""
17503
17504 # type: verbatim
17505 #: ../fish/guestfish-actions.pod:856
17506 #, no-wrap
17507 msgid ""
17508 " egrep regex path\n"
17509 "\n"
17510 msgstr ""
17511
17512 # type: =head2
17513 #: ../fish/guestfish-actions.pod:864
17514 msgid "egrepi"
17515 msgstr ""
17516
17517 # type: verbatim
17518 #: ../fish/guestfish-actions.pod:866
17519 #, no-wrap
17520 msgid ""
17521 " egrepi regex path\n"
17522 "\n"
17523 msgstr ""
17524
17525 # type: =head2
17526 #: ../fish/guestfish-actions.pod:874
17527 msgid "equal"
17528 msgstr ""
17529
17530 # type: verbatim
17531 #: ../fish/guestfish-actions.pod:876
17532 #, no-wrap
17533 msgid ""
17534 " equal file1 file2\n"
17535 "\n"
17536 msgstr ""
17537
17538 # type: =head2
17539 #: ../fish/guestfish-actions.pod:883
17540 msgid "exists"
17541 msgstr ""
17542
17543 # type: verbatim
17544 #: ../fish/guestfish-actions.pod:885
17545 #, no-wrap
17546 msgid ""
17547 " exists path\n"
17548 "\n"
17549 msgstr ""
17550
17551 # type: textblock
17552 #: ../fish/guestfish-actions.pod:890
17553 msgid "See also L</is-file>, L</is-dir>, L</stat>."
17554 msgstr ""
17555
17556 # type: =head2
17557 #: ../fish/guestfish-actions.pod:892
17558 msgid "fallocate"
17559 msgstr ""
17560
17561 # type: verbatim
17562 #: ../fish/guestfish-actions.pod:894
17563 #, no-wrap
17564 msgid ""
17565 " fallocate path len\n"
17566 "\n"
17567 msgstr ""
17568
17569 # type: =head2
17570 #: ../fish/guestfish-actions.pod:911
17571 msgid "fallocate64"
17572 msgstr ""
17573
17574 # type: verbatim
17575 #: ../fish/guestfish-actions.pod:913
17576 #, no-wrap
17577 msgid ""
17578 " fallocate64 path len\n"
17579 "\n"
17580 msgstr ""
17581
17582 # type: textblock
17583 #: ../fish/guestfish-actions.pod:919
17584 msgid ""
17585 "Note that this call allocates disk blocks for the file.  To create a sparse "
17586 "file use L</truncate-size> instead."
17587 msgstr ""
17588
17589 # type: textblock
17590 #: ../fish/guestfish-actions.pod:922
17591 msgid ""
17592 "The deprecated call L</fallocate> does the same, but owing to an oversight "
17593 "it only allowed 30 bit lengths to be specified, effectively limiting the "
17594 "maximum size of files created through that call to 1GB."
17595 msgstr ""
17596
17597 # type: =head2
17598 #: ../fish/guestfish-actions.pod:931
17599 msgid "fgrep"
17600 msgstr ""
17601
17602 # type: verbatim
17603 #: ../fish/guestfish-actions.pod:933
17604 #, no-wrap
17605 msgid ""
17606 " fgrep pattern path\n"
17607 "\n"
17608 msgstr ""
17609
17610 # type: =head2
17611 #: ../fish/guestfish-actions.pod:941
17612 msgid "fgrepi"
17613 msgstr ""
17614
17615 # type: verbatim
17616 #: ../fish/guestfish-actions.pod:943
17617 #, no-wrap
17618 msgid ""
17619 " fgrepi pattern path\n"
17620 "\n"
17621 msgstr ""
17622
17623 # type: =head2
17624 #: ../fish/guestfish-actions.pod:951
17625 msgid "file"
17626 msgstr ""
17627
17628 # type: verbatim
17629 #: ../fish/guestfish-actions.pod:953
17630 #, no-wrap
17631 msgid ""
17632 " file path\n"
17633 "\n"
17634 msgstr ""
17635
17636 # type: textblock
17637 #: ../fish/guestfish-actions.pod:965
17638 msgid ""
17639 "This command can also be used on C</dev/> devices (and partitions, LV "
17640 "names).  You can for example use this to determine if a device contains a "
17641 "filesystem, although it's usually better to use L</vfs-type>."
17642 msgstr ""
17643
17644 # type: =head2
17645 #: ../fish/guestfish-actions.pod:975
17646 msgid "file-architecture"
17647 msgstr ""
17648
17649 # type: verbatim
17650 #: ../fish/guestfish-actions.pod:977
17651 #, no-wrap
17652 msgid ""
17653 " file-architecture filename\n"
17654 "\n"
17655 msgstr ""
17656
17657 # type: =head2
17658 #: ../fish/guestfish-actions.pod:1080
17659 msgid "filesize"
17660 msgstr ""
17661
17662 # type: verbatim
17663 #: ../fish/guestfish-actions.pod:1082
17664 #, no-wrap
17665 msgid ""
17666 " filesize file\n"
17667 "\n"
17668 msgstr ""
17669
17670 # type: textblock
17671 #: ../fish/guestfish-actions.pod:1086
17672 msgid ""
17673 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, "
17674 "L</is-file> etc.  To get the size of block devices, use "
17675 "L</blockdev-getsize64>."
17676 msgstr ""
17677
17678 # type: =head2
17679 #: ../fish/guestfish-actions.pod:1090
17680 msgid "fill"
17681 msgstr ""
17682
17683 # type: verbatim
17684 #: ../fish/guestfish-actions.pod:1092
17685 #, no-wrap
17686 msgid ""
17687 " fill c len path\n"
17688 "\n"
17689 msgstr ""
17690
17691 # type: textblock
17692 #: ../fish/guestfish-actions.pod:1098
17693 msgid ""
17694 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
17695 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
17696 "L</fill-pattern>."
17697 msgstr ""
17698
17699 # type: =head2
17700 #: ../fish/guestfish-actions.pod:1103
17701 msgid "fill-pattern"
17702 msgstr ""
17703
17704 # type: verbatim
17705 #: ../fish/guestfish-actions.pod:1105
17706 #, no-wrap
17707 msgid ""
17708 " fill-pattern pattern len path\n"
17709 "\n"
17710 msgstr ""
17711
17712 # type: textblock
17713 #: ../fish/guestfish-actions.pod:1107
17714 msgid ""
17715 "This function is like L</fill> except that it creates a new file of length "
17716 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
17717 "is truncated if necessary to ensure the length of the file is exactly C<len> "
17718 "bytes."
17719 msgstr ""
17720
17721 # type: =head2
17722 #: ../fish/guestfish-actions.pod:1112
17723 msgid "find"
17724 msgstr ""
17725
17726 # type: verbatim
17727 #: ../fish/guestfish-actions.pod:1114
17728 #, no-wrap
17729 msgid ""
17730 " find directory\n"
17731 "\n"
17732 msgstr ""
17733
17734 # type: textblock
17735 #: ../fish/guestfish-actions.pod:1128
17736 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
17737 msgstr ""
17738
17739 # type: textblock
17740 #: ../fish/guestfish-actions.pod:1141
17741 msgid "See also L</find0>."
17742 msgstr ""
17743
17744 # type: =head2
17745 #: ../fish/guestfish-actions.pod:1146
17746 msgid "find0"
17747 msgstr ""
17748
17749 # type: verbatim
17750 #: ../fish/guestfish-actions.pod:1148
17751 #, no-wrap
17752 msgid ""
17753 " find0 directory (files|-)\n"
17754 "\n"
17755 msgstr ""
17756
17757 # type: textblock
17758 #: ../fish/guestfish-actions.pod:1154
17759 msgid "This command works the same way as L</find> with the following exceptions:"
17760 msgstr ""
17761
17762 # type: =head2
17763 #: ../fish/guestfish-actions.pod:1181
17764 msgid "findfs-label"
17765 msgstr ""
17766
17767 # type: verbatim
17768 #: ../fish/guestfish-actions.pod:1183
17769 #, no-wrap
17770 msgid ""
17771 " findfs-label label\n"
17772 "\n"
17773 msgstr ""
17774
17775 # type: textblock
17776 #: ../fish/guestfish-actions.pod:1189
17777 msgid "To find the label of a filesystem, use L</vfs-label>."
17778 msgstr ""
17779
17780 # type: =head2
17781 #: ../fish/guestfish-actions.pod:1191
17782 msgid "findfs-uuid"
17783 msgstr ""
17784
17785 # type: verbatim
17786 #: ../fish/guestfish-actions.pod:1193
17787 #, no-wrap
17788 msgid ""
17789 " findfs-uuid uuid\n"
17790 "\n"
17791 msgstr ""
17792
17793 # type: textblock
17794 #: ../fish/guestfish-actions.pod:1199
17795 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
17796 msgstr ""
17797
17798 # type: =head2
17799 #: ../fish/guestfish-actions.pod:1201
17800 msgid "fsck"
17801 msgstr ""
17802
17803 # type: verbatim
17804 #: ../fish/guestfish-actions.pod:1203
17805 #, no-wrap
17806 msgid ""
17807 " fsck fstype device\n"
17808 "\n"
17809 msgstr ""
17810
17811 # type: =head2
17812 #: ../fish/guestfish-actions.pod:1233
17813 msgid "get-append"
17814 msgstr ""
17815
17816 # type: verbatim
17817 #: ../fish/guestfish-actions.pod:1235
17818 #, no-wrap
17819 msgid ""
17820 " get-append\n"
17821 "\n"
17822 msgstr ""
17823
17824 # type: =head2
17825 #: ../fish/guestfish-actions.pod:1242
17826 msgid "get-autosync"
17827 msgstr ""
17828
17829 # type: verbatim
17830 #: ../fish/guestfish-actions.pod:1244
17831 #, no-wrap
17832 msgid ""
17833 " get-autosync\n"
17834 "\n"
17835 msgstr ""
17836
17837 # type: =head2
17838 #: ../fish/guestfish-actions.pod:1248
17839 msgid "get-direct"
17840 msgstr ""
17841
17842 # type: verbatim
17843 #: ../fish/guestfish-actions.pod:1250
17844 #, no-wrap
17845 msgid ""
17846 " get-direct\n"
17847 "\n"
17848 msgstr ""
17849
17850 # type: =head2
17851 #: ../fish/guestfish-actions.pod:1254
17852 msgid "get-e2label"
17853 msgstr ""
17854
17855 # type: verbatim
17856 #: ../fish/guestfish-actions.pod:1256
17857 #, no-wrap
17858 msgid ""
17859 " get-e2label device\n"
17860 "\n"
17861 msgstr ""
17862
17863 # type: =head2
17864 #: ../fish/guestfish-actions.pod:1268
17865 msgid "get-e2uuid"
17866 msgstr ""
17867
17868 # type: verbatim
17869 #: ../fish/guestfish-actions.pod:1270
17870 #, no-wrap
17871 msgid ""
17872 " get-e2uuid device\n"
17873 "\n"
17874 msgstr ""
17875
17876 # type: =head2
17877 #: ../fish/guestfish-actions.pod:1282
17878 msgid "get-memsize"
17879 msgstr ""
17880
17881 # type: verbatim
17882 #: ../fish/guestfish-actions.pod:1284
17883 #, no-wrap
17884 msgid ""
17885 " get-memsize\n"
17886 "\n"
17887 msgstr ""
17888
17889 # type: textblock
17890 #: ../fish/guestfish-actions.pod:1289
17891 msgid ""
17892 "If L</set-memsize> was not called on this handle, and if "
17893 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
17894 "value for memsize."
17895 msgstr ""
17896
17897 # type: =head2
17898 #: ../fish/guestfish-actions.pod:1296
17899 msgid "get-network"
17900 msgstr ""
17901
17902 # type: verbatim
17903 #: ../fish/guestfish-actions.pod:1298
17904 #, no-wrap
17905 msgid ""
17906 " get-network\n"
17907 "\n"
17908 msgstr ""
17909
17910 # type: =head2
17911 #: ../fish/guestfish-actions.pod:1302
17912 msgid "get-path"
17913 msgstr ""
17914
17915 # type: verbatim
17916 #: ../fish/guestfish-actions.pod:1304
17917 #, no-wrap
17918 msgid ""
17919 " get-path\n"
17920 "\n"
17921 msgstr ""
17922
17923 # type: =head2
17924 #: ../fish/guestfish-actions.pod:1311
17925 msgid "get-pid"
17926 msgstr ""
17927
17928 # type: =head2
17929 #: ../fish/guestfish-actions.pod:1313
17930 msgid "pid"
17931 msgstr ""
17932
17933 # type: verbatim
17934 #: ../fish/guestfish-actions.pod:1315
17935 #, no-wrap
17936 msgid ""
17937 " get-pid\n"
17938 "\n"
17939 msgstr ""
17940
17941 # type: =head2
17942 #: ../fish/guestfish-actions.pod:1322
17943 msgid "get-qemu"
17944 msgstr ""
17945
17946 # type: verbatim
17947 #: ../fish/guestfish-actions.pod:1324
17948 #, no-wrap
17949 msgid ""
17950 " get-qemu\n"
17951 "\n"
17952 msgstr ""
17953
17954 # type: =head2
17955 #: ../fish/guestfish-actions.pod:1331
17956 msgid "get-recovery-proc"
17957 msgstr ""
17958
17959 # type: verbatim
17960 #: ../fish/guestfish-actions.pod:1333
17961 #, no-wrap
17962 msgid ""
17963 " get-recovery-proc\n"
17964 "\n"
17965 msgstr ""
17966
17967 # type: =head2
17968 #: ../fish/guestfish-actions.pod:1337
17969 msgid "get-selinux"
17970 msgstr ""
17971
17972 # type: verbatim
17973 #: ../fish/guestfish-actions.pod:1339
17974 #, no-wrap
17975 msgid ""
17976 " get-selinux\n"
17977 "\n"
17978 msgstr ""
17979
17980 # type: textblock
17981 #: ../fish/guestfish-actions.pod:1341
17982 msgid ""
17983 "This returns the current setting of the selinux flag which is passed to the "
17984 "appliance at boot time.  See L</set-selinux>."
17985 msgstr ""
17986
17987 # type: =head2
17988 #: ../fish/guestfish-actions.pod:1347
17989 msgid "get-state"
17990 msgstr ""
17991
17992 # type: verbatim
17993 #: ../fish/guestfish-actions.pod:1349
17994 #, no-wrap
17995 msgid ""
17996 " get-state\n"
17997 "\n"
17998 msgstr ""
17999
18000 # type: =head2
18001 #: ../fish/guestfish-actions.pod:1356
18002 msgid "get-trace"
18003 msgstr ""
18004
18005 # type: verbatim
18006 #: ../fish/guestfish-actions.pod:1358
18007 #, no-wrap
18008 msgid ""
18009 " get-trace\n"
18010 "\n"
18011 msgstr ""
18012
18013 # type: =head2
18014 #: ../fish/guestfish-actions.pod:1362
18015 msgid "get-umask"
18016 msgstr ""
18017
18018 # type: verbatim
18019 #: ../fish/guestfish-actions.pod:1364
18020 #, no-wrap
18021 msgid ""
18022 " get-umask\n"
18023 "\n"
18024 msgstr ""
18025
18026 # type: textblock
18027 #: ../fish/guestfish-actions.pod:1366
18028 msgid ""
18029 "Return the current umask.  By default the umask is C<022> unless it has been "
18030 "set by calling L</umask>."
18031 msgstr ""
18032
18033 # type: =head2
18034 #: ../fish/guestfish-actions.pod:1369
18035 msgid "get-verbose"
18036 msgstr ""
18037
18038 # type: verbatim
18039 #: ../fish/guestfish-actions.pod:1371
18040 #, no-wrap
18041 msgid ""
18042 " get-verbose\n"
18043 "\n"
18044 msgstr ""
18045
18046 # type: =head2
18047 #: ../fish/guestfish-actions.pod:1375
18048 msgid "getcon"
18049 msgstr ""
18050
18051 # type: verbatim
18052 #: ../fish/guestfish-actions.pod:1377
18053 #, no-wrap
18054 msgid ""
18055 " getcon\n"
18056 "\n"
18057 msgstr ""
18058
18059 # type: textblock
18060 #: ../fish/guestfish-actions.pod:1381
18061 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
18062 msgstr ""
18063
18064 # type: =head2
18065 #: ../fish/guestfish-actions.pod:1384
18066 msgid "getxattrs"
18067 msgstr ""
18068
18069 # type: verbatim
18070 #: ../fish/guestfish-actions.pod:1386
18071 #, no-wrap
18072 msgid ""
18073 " getxattrs path\n"
18074 "\n"
18075 msgstr ""
18076
18077 # type: textblock
18078 #: ../fish/guestfish-actions.pod:1394
18079 msgid "See also: L</lgetxattrs>, L<attr(5)>."
18080 msgstr ""
18081
18082 # type: =head2
18083 #: ../fish/guestfish-actions.pod:1396
18084 msgid "glob-expand"
18085 msgstr ""
18086
18087 # type: verbatim
18088 #: ../fish/guestfish-actions.pod:1398
18089 #, no-wrap
18090 msgid ""
18091 " glob-expand pattern\n"
18092 "\n"
18093 msgstr ""
18094
18095 # type: =head2
18096 #: ../fish/guestfish-actions.pod:1411
18097 msgid "grep"
18098 msgstr ""
18099
18100 # type: verbatim
18101 #: ../fish/guestfish-actions.pod:1413
18102 #, no-wrap
18103 msgid ""
18104 " grep regex path\n"
18105 "\n"
18106 msgstr ""
18107
18108 # type: =head2
18109 #: ../fish/guestfish-actions.pod:1421
18110 msgid "grepi"
18111 msgstr ""
18112
18113 # type: verbatim
18114 #: ../fish/guestfish-actions.pod:1423
18115 #, no-wrap
18116 msgid ""
18117 " grepi regex path\n"
18118 "\n"
18119 msgstr ""
18120
18121 # type: =head2
18122 #: ../fish/guestfish-actions.pod:1431
18123 msgid "grub-install"
18124 msgstr ""
18125
18126 # type: verbatim
18127 #: ../fish/guestfish-actions.pod:1433
18128 #, no-wrap
18129 msgid ""
18130 " grub-install root device\n"
18131 "\n"
18132 msgstr ""
18133
18134 # type: =head2
18135 #: ../fish/guestfish-actions.pod:1449
18136 msgid "head"
18137 msgstr ""
18138
18139 # type: verbatim
18140 #: ../fish/guestfish-actions.pod:1451
18141 #, no-wrap
18142 msgid ""
18143 " head path\n"
18144 "\n"
18145 msgstr ""
18146
18147 # type: =head2
18148 #: ../fish/guestfish-actions.pod:1459
18149 msgid "head-n"
18150 msgstr ""
18151
18152 # type: verbatim
18153 #: ../fish/guestfish-actions.pod:1461
18154 #, no-wrap
18155 msgid ""
18156 " head-n nrlines path\n"
18157 "\n"
18158 msgstr ""
18159
18160 # type: =head2
18161 #: ../fish/guestfish-actions.pod:1474
18162 msgid "hexdump"
18163 msgstr ""
18164
18165 # type: verbatim
18166 #: ../fish/guestfish-actions.pod:1476
18167 #, no-wrap
18168 msgid ""
18169 " hexdump path\n"
18170 "\n"
18171 msgstr ""
18172
18173 # type: =head2
18174 #: ../fish/guestfish-actions.pod:1484
18175 msgid "initrd-cat"
18176 msgstr ""
18177
18178 # type: verbatim
18179 #: ../fish/guestfish-actions.pod:1486
18180 #, no-wrap
18181 msgid ""
18182 " initrd-cat initrdpath filename\n"
18183 "\n"
18184 msgstr ""
18185
18186 # type: textblock
18187 #: ../fish/guestfish-actions.pod:1498
18188 msgid "See also L</initrd-list>."
18189 msgstr ""
18190
18191 # type: =head2
18192 #: ../fish/guestfish-actions.pod:1503
18193 msgid "initrd-list"
18194 msgstr ""
18195
18196 # type: verbatim
18197 #: ../fish/guestfish-actions.pod:1505
18198 #, no-wrap
18199 msgid ""
18200 " initrd-list path\n"
18201 "\n"
18202 msgstr ""
18203
18204 # type: =head2
18205 #: ../fish/guestfish-actions.pod:1517
18206 msgid "inotify-add-watch"
18207 msgstr ""
18208
18209 # type: verbatim
18210 #: ../fish/guestfish-actions.pod:1519
18211 #, no-wrap
18212 msgid ""
18213 " inotify-add-watch path mask\n"
18214 "\n"
18215 msgstr ""
18216
18217 # type: =head2
18218 #: ../fish/guestfish-actions.pod:1531
18219 msgid "inotify-close"
18220 msgstr ""
18221
18222 # type: verbatim
18223 #: ../fish/guestfish-actions.pod:1533
18224 #, no-wrap
18225 msgid ""
18226 " inotify-close\n"
18227 "\n"
18228 msgstr ""
18229
18230 # type: =head2
18231 #: ../fish/guestfish-actions.pod:1539
18232 msgid "inotify-files"
18233 msgstr ""
18234
18235 # type: verbatim
18236 #: ../fish/guestfish-actions.pod:1541
18237 #, no-wrap
18238 msgid ""
18239 " inotify-files\n"
18240 "\n"
18241 msgstr ""
18242
18243 # type: textblock
18244 #: ../fish/guestfish-actions.pod:1543
18245 msgid ""
18246 "This function is a helpful wrapper around L</inotify-read> which just "
18247 "returns a list of pathnames of objects that were touched.  The returned "
18248 "pathnames are sorted and deduplicated."
18249 msgstr ""
18250
18251 # type: =head2
18252 #: ../fish/guestfish-actions.pod:1547
18253 msgid "inotify-init"
18254 msgstr ""
18255
18256 # type: verbatim
18257 #: ../fish/guestfish-actions.pod:1549
18258 #, no-wrap
18259 msgid ""
18260 " inotify-init maxevents\n"
18261 "\n"
18262 msgstr ""
18263
18264 # type: textblock
18265 #: ../fish/guestfish-actions.pod:1555
18266 msgid ""
18267 "C<maxevents> is the maximum number of events which will be queued up between "
18268 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
18269 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
18270 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
18271 "but records the fact that it threw them away by setting a flag "
18272 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
18273 msgstr ""
18274
18275 # type: textblock
18276 #: ../fish/guestfish-actions.pod:1565
18277 msgid ""
18278 "Before any events are generated, you have to add some watches to the "
18279 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
18280 "L</inotify-watch-all>."
18281 msgstr ""
18282
18283 # type: textblock
18284 #: ../fish/guestfish-actions.pod:1571
18285 msgid ""
18286 "Queued up events should be read periodically by calling L</inotify-read> (or "
18287 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
18288 "If you don't read the events out often enough then you risk the internal "
18289 "queue overflowing."
18290 msgstr ""
18291
18292 # type: textblock
18293 #: ../fish/guestfish-actions.pod:1578
18294 msgid ""
18295 "The handle should be closed after use by calling L</inotify-close>.  This "
18296 "also removes any watches automatically."
18297 msgstr ""
18298
18299 # type: =head2
18300 #: ../fish/guestfish-actions.pod:1587
18301 msgid "inotify-read"
18302 msgstr ""
18303
18304 # type: verbatim
18305 #: ../fish/guestfish-actions.pod:1589
18306 #, no-wrap
18307 msgid ""
18308 " inotify-read\n"
18309 "\n"
18310 msgstr ""
18311
18312 # type: =head2
18313 #: ../fish/guestfish-actions.pod:1602
18314 msgid "inotify-rm-watch"
18315 msgstr ""
18316
18317 # type: verbatim
18318 #: ../fish/guestfish-actions.pod:1604
18319 #, no-wrap
18320 msgid ""
18321 " inotify-rm-watch wd\n"
18322 "\n"
18323 msgstr ""
18324
18325 # type: textblock
18326 #: ../fish/guestfish-actions.pod:1606
18327 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
18328 msgstr ""
18329
18330 # type: =head2
18331 #: ../fish/guestfish-actions.pod:1609
18332 msgid "inspect-get-arch"
18333 msgstr ""
18334
18335 # type: verbatim
18336 #: ../fish/guestfish-actions.pod:1611
18337 #, no-wrap
18338 msgid ""
18339 " inspect-get-arch root\n"
18340 "\n"
18341 msgstr ""
18342
18343 # type: textblock
18344 #: ../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
18345 msgid ""
18346 "This function should only be called with a root device string as returned by "
18347 "L</inspect-os>."
18348 msgstr ""
18349
18350 # type: textblock
18351 #: ../fish/guestfish-actions.pod:1616
18352 msgid ""
18353 "This returns the architecture of the inspected operating system.  The "
18354 "possible return values are listed under L</file-architecture>."
18355 msgstr ""
18356
18357 # type: =head2
18358 #: ../fish/guestfish-actions.pod:1625
18359 msgid "inspect-get-distro"
18360 msgstr ""
18361
18362 # type: verbatim
18363 #: ../fish/guestfish-actions.pod:1627
18364 #, no-wrap
18365 msgid ""
18366 " inspect-get-distro root\n"
18367 "\n"
18368 msgstr ""
18369
18370 # type: =head2
18371 #: ../fish/guestfish-actions.pod:1671
18372 msgid "inspect-get-filesystems"
18373 msgstr ""
18374
18375 # type: verbatim
18376 #: ../fish/guestfish-actions.pod:1673
18377 #, no-wrap
18378 msgid ""
18379 " inspect-get-filesystems root\n"
18380 "\n"
18381 msgstr ""
18382
18383 # type: textblock
18384 #: ../fish/guestfish-actions.pod:1686
18385 msgid ""
18386 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
18387 "L</inspect-get-mountpoints>."
18388 msgstr ""
18389
18390 # type: =head2
18391 #: ../fish/guestfish-actions.pod:1689
18392 msgid "inspect-get-major-version"
18393 msgstr ""
18394
18395 # type: verbatim
18396 #: ../fish/guestfish-actions.pod:1691
18397 #, no-wrap
18398 msgid ""
18399 " inspect-get-major-version root\n"
18400 "\n"
18401 msgstr ""
18402
18403 # type: =head2
18404 #: ../fish/guestfish-actions.pod:1710
18405 msgid "inspect-get-minor-version"
18406 msgstr ""
18407
18408 # type: verbatim
18409 #: ../fish/guestfish-actions.pod:1712
18410 #, no-wrap
18411 msgid ""
18412 " inspect-get-minor-version root\n"
18413 "\n"
18414 msgstr ""
18415
18416 # type: textblock
18417 #: ../fish/guestfish-actions.pod:1722
18418 msgid ""
18419 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
18420 "L</inspect-get-major-version>."
18421 msgstr ""
18422
18423 # type: =head2
18424 #: ../fish/guestfish-actions.pod:1725
18425 msgid "inspect-get-mountpoints"
18426 msgstr ""
18427
18428 # type: verbatim
18429 #: ../fish/guestfish-actions.pod:1727
18430 #, no-wrap
18431 msgid ""
18432 " inspect-get-mountpoints root\n"
18433 "\n"
18434 msgstr ""
18435
18436 # type: textblock
18437 #: ../fish/guestfish-actions.pod:1745
18438 msgid ""
18439 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
18440 "L</inspect-get-filesystems>."
18441 msgstr ""
18442
18443 # type: =head2
18444 #: ../fish/guestfish-actions.pod:1748
18445 msgid "inspect-get-product-name"
18446 msgstr ""
18447
18448 # type: verbatim
18449 #: ../fish/guestfish-actions.pod:1750
18450 #, no-wrap
18451 msgid ""
18452 " inspect-get-product-name root\n"
18453 "\n"
18454 msgstr ""
18455
18456 # type: =head2
18457 #: ../fish/guestfish-actions.pod:1765
18458 msgid "inspect-get-type"
18459 msgstr ""
18460
18461 # type: verbatim
18462 #: ../fish/guestfish-actions.pod:1767
18463 #, no-wrap
18464 msgid ""
18465 " inspect-get-type root\n"
18466 "\n"
18467 msgstr ""
18468
18469 # type: =head2
18470 #: ../fish/guestfish-actions.pod:1796
18471 msgid "inspect-os"
18472 msgstr ""
18473
18474 # type: verbatim
18475 #: ../fish/guestfish-actions.pod:1798
18476 #, no-wrap
18477 msgid ""
18478 " inspect-os\n"
18479 "\n"
18480 msgstr ""
18481
18482 # type: textblock
18483 #: ../fish/guestfish-actions.pod:1813
18484 msgid ""
18485 "You can pass the root string(s) returned to other L</inspect-get-*> "
18486 "functions in order to query further information about each operating system, "
18487 "such as the name and version."
18488 msgstr ""
18489
18490 # type: textblock
18491 #: ../fish/guestfish-actions.pod:1818
18492 msgid ""
18493 "This function uses other libguestfs features such as L</mount-ro> and "
18494 "L</umount-all> in order to mount and unmount filesystems and look at the "
18495 "contents.  This should be called with no disks currently mounted.  The "
18496 "function may also use Augeas, so any existing Augeas handle will be closed."
18497 msgstr ""
18498
18499 # type: textblock
18500 #: ../fish/guestfish-actions.pod:1830 ../fish/guestfish-actions.pod:1986 ../fish/guestfish-actions.pod:2032
18501 msgid "See also L</list-filesystems>."
18502 msgstr ""
18503
18504 # type: =head2
18505 #: ../fish/guestfish-actions.pod:1832
18506 msgid "is-blockdev"
18507 msgstr ""
18508
18509 # type: verbatim
18510 #: ../fish/guestfish-actions.pod:1834
18511 #, no-wrap
18512 msgid ""
18513 " is-blockdev path\n"
18514 "\n"
18515 msgstr ""
18516
18517 # type: textblock
18518 #: ../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
18519 msgid "See also L</stat>."
18520 msgstr ""
18521
18522 # type: =head2
18523 #: ../fish/guestfish-actions.pod:1841
18524 msgid "is-busy"
18525 msgstr ""
18526
18527 # type: verbatim
18528 #: ../fish/guestfish-actions.pod:1843
18529 #, no-wrap
18530 msgid ""
18531 " is-busy\n"
18532 "\n"
18533 msgstr ""
18534
18535 # type: =head2
18536 #: ../fish/guestfish-actions.pod:1850
18537 msgid "is-chardev"
18538 msgstr ""
18539
18540 # type: verbatim
18541 #: ../fish/guestfish-actions.pod:1852
18542 #, no-wrap
18543 msgid ""
18544 " is-chardev path\n"
18545 "\n"
18546 msgstr ""
18547
18548 # type: =head2
18549 #: ../fish/guestfish-actions.pod:1859
18550 msgid "is-config"
18551 msgstr ""
18552
18553 # type: verbatim
18554 #: ../fish/guestfish-actions.pod:1861
18555 #, no-wrap
18556 msgid ""
18557 " is-config\n"
18558 "\n"
18559 msgstr ""
18560
18561 # type: =head2
18562 #: ../fish/guestfish-actions.pod:1868
18563 msgid "is-dir"
18564 msgstr ""
18565
18566 # type: verbatim
18567 #: ../fish/guestfish-actions.pod:1870
18568 #, no-wrap
18569 msgid ""
18570 " is-dir path\n"
18571 "\n"
18572 msgstr ""
18573
18574 # type: =head2
18575 #: ../fish/guestfish-actions.pod:1878
18576 msgid "is-fifo"
18577 msgstr ""
18578
18579 # type: verbatim
18580 #: ../fish/guestfish-actions.pod:1880
18581 #, no-wrap
18582 msgid ""
18583 " is-fifo path\n"
18584 "\n"
18585 msgstr ""
18586
18587 # type: =head2
18588 #: ../fish/guestfish-actions.pod:1887
18589 msgid "is-file"
18590 msgstr ""
18591
18592 # type: verbatim
18593 #: ../fish/guestfish-actions.pod:1889
18594 #, no-wrap
18595 msgid ""
18596 " is-file path\n"
18597 "\n"
18598 msgstr ""
18599
18600 # type: =head2
18601 #: ../fish/guestfish-actions.pod:1897
18602 msgid "is-launching"
18603 msgstr ""
18604
18605 # type: verbatim
18606 #: ../fish/guestfish-actions.pod:1899
18607 #, no-wrap
18608 msgid ""
18609 " is-launching\n"
18610 "\n"
18611 msgstr ""
18612
18613 # type: =head2
18614 #: ../fish/guestfish-actions.pod:1906
18615 msgid "is-lv"
18616 msgstr ""
18617
18618 # type: verbatim
18619 #: ../fish/guestfish-actions.pod:1908
18620 #, no-wrap
18621 msgid ""
18622 " is-lv device\n"
18623 "\n"
18624 msgstr ""
18625
18626 # type: =head2
18627 #: ../fish/guestfish-actions.pod:1913
18628 msgid "is-ready"
18629 msgstr ""
18630
18631 # type: verbatim
18632 #: ../fish/guestfish-actions.pod:1915
18633 #, no-wrap
18634 msgid ""
18635 " is-ready\n"
18636 "\n"
18637 msgstr ""
18638
18639 # type: =head2
18640 #: ../fish/guestfish-actions.pod:1922
18641 msgid "is-socket"
18642 msgstr ""
18643
18644 # type: verbatim
18645 #: ../fish/guestfish-actions.pod:1924
18646 #, no-wrap
18647 msgid ""
18648 " is-socket path\n"
18649 "\n"
18650 msgstr ""
18651
18652 # type: =head2
18653 #: ../fish/guestfish-actions.pod:1931
18654 msgid "is-symlink"
18655 msgstr ""
18656
18657 # type: verbatim
18658 #: ../fish/guestfish-actions.pod:1933
18659 #, no-wrap
18660 msgid ""
18661 " is-symlink path\n"
18662 "\n"
18663 msgstr ""
18664
18665 # type: =head2
18666 #: ../fish/guestfish-actions.pod:1940
18667 msgid "kill-subprocess"
18668 msgstr ""
18669
18670 # type: verbatim
18671 #: ../fish/guestfish-actions.pod:1942
18672 #, no-wrap
18673 msgid ""
18674 " kill-subprocess\n"
18675 "\n"
18676 msgstr ""
18677
18678 # type: =head2
18679 #: ../fish/guestfish-actions.pod:1946
18680 msgid "launch"
18681 msgstr ""
18682
18683 # type: =head2
18684 #: ../fish/guestfish-actions.pod:1948
18685 msgid "run"
18686 msgstr ""
18687
18688 # type: verbatim
18689 #: ../fish/guestfish-actions.pod:1950
18690 #, no-wrap
18691 msgid ""
18692 " launch\n"
18693 "\n"
18694 msgstr ""
18695
18696 # type: =head2
18697 #: ../fish/guestfish-actions.pod:1958
18698 msgid "lchown"
18699 msgstr ""
18700
18701 # type: verbatim
18702 #: ../fish/guestfish-actions.pod:1960
18703 #, no-wrap
18704 msgid ""
18705 " lchown owner group path\n"
18706 "\n"
18707 msgstr ""
18708
18709 # type: textblock
18710 #: ../fish/guestfish-actions.pod:1962
18711 msgid ""
18712 "Change the file owner to C<owner> and group to C<group>.  This is like "
18713 "L</chown> but if C<path> is a symlink then the link itself is changed, not "
18714 "the target."
18715 msgstr ""
18716
18717 # type: =head2
18718 #: ../fish/guestfish-actions.pod:1970
18719 msgid "lgetxattrs"
18720 msgstr ""
18721
18722 # type: verbatim
18723 #: ../fish/guestfish-actions.pod:1972
18724 #, no-wrap
18725 msgid ""
18726 " lgetxattrs path\n"
18727 "\n"
18728 msgstr ""
18729
18730 # type: textblock
18731 #: ../fish/guestfish-actions.pod:1974
18732 msgid ""
18733 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
18734 "it returns the extended attributes of the link itself."
18735 msgstr ""
18736
18737 # type: =head2
18738 #: ../fish/guestfish-actions.pod:1978
18739 msgid "list-devices"
18740 msgstr ""
18741
18742 # type: verbatim
18743 #: ../fish/guestfish-actions.pod:1980
18744 #, no-wrap
18745 msgid ""
18746 " list-devices\n"
18747 "\n"
18748 msgstr ""
18749
18750 # type: =head2
18751 #: ../fish/guestfish-actions.pod:1988
18752 msgid "list-filesystems"
18753 msgstr ""
18754
18755 # type: verbatim
18756 #: ../fish/guestfish-actions.pod:1990
18757 #, no-wrap
18758 msgid ""
18759 " list-filesystems\n"
18760 "\n"
18761 msgstr ""
18762
18763 # type: textblock
18764 #: ../fish/guestfish-actions.pod:2009
18765 msgid ""
18766 "This command runs other libguestfs commands, which might include L</mount> "
18767 "and L</umount>, and therefore you should use this soon after launch and only "
18768 "when nothing is mounted."
18769 msgstr ""
18770
18771 # type: textblock
18772 #: ../fish/guestfish-actions.pod:2013
18773 msgid ""
18774 "Not all of the filesystems returned will be mountable.  In particular, swap "
18775 "partitions are returned in the list.  Also this command does not check that "
18776 "each filesystem found is valid and mountable, and some filesystems might be "
18777 "mountable but require special options.  Filesystems may not all belong to a "
18778 "single logical operating system (use L</inspect-os> to look for OSes)."
18779 msgstr ""
18780
18781 # type: =head2
18782 #: ../fish/guestfish-actions.pod:2021
18783 msgid "list-partitions"
18784 msgstr ""
18785
18786 # type: verbatim
18787 #: ../fish/guestfish-actions.pod:2023
18788 #, no-wrap
18789 msgid ""
18790 " list-partitions\n"
18791 "\n"
18792 msgstr ""
18793
18794 # type: textblock
18795 #: ../fish/guestfish-actions.pod:2029
18796 msgid ""
18797 "This does not return logical volumes.  For that you will need to call "
18798 "L</lvs>."
18799 msgstr ""
18800
18801 # type: =head2
18802 #: ../fish/guestfish-actions.pod:2034
18803 msgid "ll"
18804 msgstr ""
18805
18806 # type: verbatim
18807 #: ../fish/guestfish-actions.pod:2036
18808 #, no-wrap
18809 msgid ""
18810 " ll directory\n"
18811 "\n"
18812 msgstr ""
18813
18814 # type: =head2
18815 #: ../fish/guestfish-actions.pod:2044
18816 msgid "ln"
18817 msgstr ""
18818
18819 # type: verbatim
18820 #: ../fish/guestfish-actions.pod:2046
18821 #, no-wrap
18822 msgid ""
18823 " ln target linkname\n"
18824 "\n"
18825 msgstr ""
18826
18827 # type: =head2
18828 #: ../fish/guestfish-actions.pod:2050
18829 msgid "ln-f"
18830 msgstr ""
18831
18832 # type: verbatim
18833 #: ../fish/guestfish-actions.pod:2052
18834 #, no-wrap
18835 msgid ""
18836 " ln-f target linkname\n"
18837 "\n"
18838 msgstr ""
18839
18840 # type: =head2
18841 #: ../fish/guestfish-actions.pod:2057
18842 msgid "ln-s"
18843 msgstr ""
18844
18845 # type: verbatim
18846 #: ../fish/guestfish-actions.pod:2059
18847 #, no-wrap
18848 msgid ""
18849 " ln-s target linkname\n"
18850 "\n"
18851 msgstr ""
18852
18853 # type: =head2
18854 #: ../fish/guestfish-actions.pod:2063
18855 msgid "ln-sf"
18856 msgstr ""
18857
18858 # type: verbatim
18859 #: ../fish/guestfish-actions.pod:2065
18860 #, no-wrap
18861 msgid ""
18862 " ln-sf target linkname\n"
18863 "\n"
18864 msgstr ""
18865
18866 # type: =head2
18867 #: ../fish/guestfish-actions.pod:2070
18868 msgid "lremovexattr"
18869 msgstr ""
18870
18871 # type: verbatim
18872 #: ../fish/guestfish-actions.pod:2072
18873 #, no-wrap
18874 msgid ""
18875 " lremovexattr xattr path\n"
18876 "\n"
18877 msgstr ""
18878
18879 # type: textblock
18880 #: ../fish/guestfish-actions.pod:2074
18881 msgid ""
18882 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
18883 "it removes an extended attribute of the link itself."
18884 msgstr ""
18885
18886 # type: =head2
18887 #: ../fish/guestfish-actions.pod:2078
18888 msgid "ls"
18889 msgstr ""
18890
18891 # type: verbatim
18892 #: ../fish/guestfish-actions.pod:2080
18893 #, no-wrap
18894 msgid ""
18895 " ls directory\n"
18896 "\n"
18897 msgstr ""
18898
18899 # type: textblock
18900 #: ../fish/guestfish-actions.pod:2086
18901 msgid ""
18902 "This command is mostly useful for interactive sessions.  Programs should "
18903 "probably use L</readdir> instead."
18904 msgstr ""
18905
18906 # type: =head2
18907 #: ../fish/guestfish-actions.pod:2089
18908 msgid "lsetxattr"
18909 msgstr ""
18910
18911 # type: verbatim
18912 #: ../fish/guestfish-actions.pod:2091
18913 #, no-wrap
18914 msgid ""
18915 " lsetxattr xattr val vallen path\n"
18916 "\n"
18917 msgstr ""
18918
18919 # type: textblock
18920 #: ../fish/guestfish-actions.pod:2093
18921 msgid ""
18922 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
18923 "sets an extended attribute of the link itself."
18924 msgstr ""
18925
18926 # type: =head2
18927 #: ../fish/guestfish-actions.pod:2097
18928 msgid "lstat"
18929 msgstr ""
18930
18931 # type: verbatim
18932 #: ../fish/guestfish-actions.pod:2099
18933 #, no-wrap
18934 msgid ""
18935 " lstat path\n"
18936 "\n"
18937 msgstr ""
18938
18939 # type: textblock
18940 #: ../fish/guestfish-actions.pod:2103
18941 msgid ""
18942 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
18943 "the link is stat-ed, not the file it refers to."
18944 msgstr ""
18945
18946 # type: =head2
18947 #: ../fish/guestfish-actions.pod:2109
18948 msgid "lstatlist"
18949 msgstr ""
18950
18951 # type: verbatim
18952 #: ../fish/guestfish-actions.pod:2111
18953 #, no-wrap
18954 msgid ""
18955 " lstatlist path 'names ...'\n"
18956 "\n"
18957 msgstr ""
18958
18959 # type: textblock
18960 #: ../fish/guestfish-actions.pod:2113
18961 msgid ""
18962 "This call allows you to perform the L</lstat> operation on multiple files, "
18963 "where all files are in the directory C<path>.  C<names> is the list of files "
18964 "from this directory."
18965 msgstr ""
18966
18967 # type: textblock
18968 #: ../fish/guestfish-actions.pod:2122
18969 msgid ""
18970 "This call is intended for programs that want to efficiently list a directory "
18971 "contents without making many round-trips.  See also L</lxattrlist> for a "
18972 "similarly efficient call for getting extended attributes.  Very long "
18973 "directory listings might cause the protocol message size to be exceeded, "
18974 "causing this call to fail.  The caller must split up such requests into "
18975 "smaller groups of names."
18976 msgstr ""
18977
18978 # type: =head2
18979 #: ../fish/guestfish-actions.pod:2130
18980 msgid "luks-add-key"
18981 msgstr ""
18982
18983 # type: verbatim
18984 #: ../fish/guestfish-actions.pod:2132
18985 #, no-wrap
18986 msgid ""
18987 " luks-add-key device keyslot\n"
18988 "\n"
18989 msgstr ""
18990
18991 # type: textblock
18992 #: ../fish/guestfish-actions.pod:2139
18993 msgid ""
18994 "Note that if C<keyslot> already contains a key, then this command will "
18995 "fail.  You have to use L</luks-kill-slot> first to remove that key."
18996 msgstr ""
18997
18998 # type: textblock
18999 #: ../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
19000 msgid ""
19001 "This command has one or more key or passphrase parameters.  Guestfish will "
19002 "prompt for these separately."
19003 msgstr ""
19004
19005 # type: =head2
19006 #: ../fish/guestfish-actions.pod:2146
19007 msgid "luks-close"
19008 msgstr ""
19009
19010 # type: verbatim
19011 #: ../fish/guestfish-actions.pod:2148
19012 #, no-wrap
19013 msgid ""
19014 " luks-close device\n"
19015 "\n"
19016 msgstr ""
19017
19018 # type: textblock
19019 #: ../fish/guestfish-actions.pod:2150
19020 msgid ""
19021 "This closes a LUKS device that was created earlier by L</luks-open> or "
19022 "L</luks-open-ro>.  The C<device> parameter must be the name of the LUKS "
19023 "mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
19024 "underlying block device."
19025 msgstr ""
19026
19027 # type: =head2
19028 #: ../fish/guestfish-actions.pod:2156
19029 msgid "luks-format"
19030 msgstr ""
19031
19032 # type: verbatim
19033 #: ../fish/guestfish-actions.pod:2158
19034 #, no-wrap
19035 msgid ""
19036 " luks-format device keyslot\n"
19037 "\n"
19038 msgstr ""
19039
19040 # type: =head2
19041 #: ../fish/guestfish-actions.pod:2171
19042 msgid "luks-format-cipher"
19043 msgstr ""
19044
19045 # type: verbatim
19046 #: ../fish/guestfish-actions.pod:2173
19047 #, no-wrap
19048 msgid ""
19049 " luks-format-cipher device keyslot cipher\n"
19050 "\n"
19051 msgstr ""
19052
19053 # type: textblock
19054 #: ../fish/guestfish-actions.pod:2175
19055 msgid ""
19056 "This command is the same as L</luks-format> but it also allows you to set "
19057 "the C<cipher> used."
19058 msgstr ""
19059
19060 # type: =head2
19061 #: ../fish/guestfish-actions.pod:2184
19062 msgid "luks-kill-slot"
19063 msgstr ""
19064
19065 # type: verbatim
19066 #: ../fish/guestfish-actions.pod:2186
19067 #, no-wrap
19068 msgid ""
19069 " luks-kill-slot device keyslot\n"
19070 "\n"
19071 msgstr ""
19072
19073 # type: =head2
19074 #: ../fish/guestfish-actions.pod:2195
19075 msgid "luks-open"
19076 msgstr ""
19077
19078 # type: verbatim
19079 #: ../fish/guestfish-actions.pod:2197
19080 #, no-wrap
19081 msgid ""
19082 " luks-open device mapname\n"
19083 "\n"
19084 msgstr ""
19085
19086 # type: textblock
19087 #: ../fish/guestfish-actions.pod:2211
19088 msgid ""
19089 "If this block device contains LVM volume groups, then calling L</vgscan> "
19090 "followed by L</vg-activate-all> will make them visible."
19091 msgstr ""
19092
19093 # type: =head2
19094 #: ../fish/guestfish-actions.pod:2218
19095 msgid "luks-open-ro"
19096 msgstr ""
19097
19098 # type: verbatim
19099 #: ../fish/guestfish-actions.pod:2220
19100 #, no-wrap
19101 msgid ""
19102 " luks-open-ro device mapname\n"
19103 "\n"
19104 msgstr ""
19105
19106 # type: textblock
19107 #: ../fish/guestfish-actions.pod:2222
19108 msgid ""
19109 "This is the same as L</luks-open> except that a read-only mapping is "
19110 "created."
19111 msgstr ""
19112
19113 # type: =head2
19114 #: ../fish/guestfish-actions.pod:2228
19115 msgid "lvcreate"
19116 msgstr ""
19117
19118 # type: verbatim
19119 #: ../fish/guestfish-actions.pod:2230
19120 #, no-wrap
19121 msgid ""
19122 " lvcreate logvol volgroup mbytes\n"
19123 "\n"
19124 msgstr ""
19125
19126 # type: =head2
19127 #: ../fish/guestfish-actions.pod:2235
19128 msgid "lvm-clear-filter"
19129 msgstr ""
19130
19131 # type: verbatim
19132 #: ../fish/guestfish-actions.pod:2237
19133 #, no-wrap
19134 msgid ""
19135 " lvm-clear-filter\n"
19136 "\n"
19137 msgstr ""
19138
19139 # type: textblock
19140 #: ../fish/guestfish-actions.pod:2239
19141 msgid ""
19142 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
19143 "block device."
19144 msgstr ""
19145
19146 # type: =head2
19147 #: ../fish/guestfish-actions.pod:2245
19148 msgid "lvm-remove-all"
19149 msgstr ""
19150
19151 # type: verbatim
19152 #: ../fish/guestfish-actions.pod:2247
19153 #, no-wrap
19154 msgid ""
19155 " lvm-remove-all\n"
19156 "\n"
19157 msgstr ""
19158
19159 # type: =head2
19160 #: ../fish/guestfish-actions.pod:2255
19161 msgid "lvm-set-filter"
19162 msgstr ""
19163
19164 # type: verbatim
19165 #: ../fish/guestfish-actions.pod:2257
19166 #, no-wrap
19167 msgid ""
19168 " lvm-set-filter 'devices ...'\n"
19169 "\n"
19170 msgstr ""
19171
19172 # type: =head2
19173 #: ../fish/guestfish-actions.pod:2282
19174 msgid "lvremove"
19175 msgstr ""
19176
19177 # type: verbatim
19178 #: ../fish/guestfish-actions.pod:2284
19179 #, no-wrap
19180 msgid ""
19181 " lvremove device\n"
19182 "\n"
19183 msgstr ""
19184
19185 # type: =head2
19186 #: ../fish/guestfish-actions.pod:2292
19187 msgid "lvrename"
19188 msgstr ""
19189
19190 # type: verbatim
19191 #: ../fish/guestfish-actions.pod:2294
19192 #, no-wrap
19193 msgid ""
19194 " lvrename logvol newlogvol\n"
19195 "\n"
19196 msgstr ""
19197
19198 # type: =head2
19199 #: ../fish/guestfish-actions.pod:2298
19200 msgid "lvresize"
19201 msgstr ""
19202
19203 # type: verbatim
19204 #: ../fish/guestfish-actions.pod:2300
19205 #, no-wrap
19206 msgid ""
19207 " lvresize device mbytes\n"
19208 "\n"
19209 msgstr ""
19210
19211 # type: =head2
19212 #: ../fish/guestfish-actions.pod:2306
19213 msgid "lvresize-free"
19214 msgstr ""
19215
19216 # type: verbatim
19217 #: ../fish/guestfish-actions.pod:2308
19218 #, no-wrap
19219 msgid ""
19220 " lvresize-free lv percent\n"
19221 "\n"
19222 msgstr ""
19223
19224 # type: =head2
19225 #: ../fish/guestfish-actions.pod:2316
19226 msgid "lvs"
19227 msgstr ""
19228
19229 # type: verbatim
19230 #: ../fish/guestfish-actions.pod:2318
19231 #, no-wrap
19232 msgid ""
19233 " lvs\n"
19234 "\n"
19235 msgstr ""
19236
19237 # type: textblock
19238 #: ../fish/guestfish-actions.pod:2326
19239 msgid "See also L</lvs-full>, L</list-filesystems>."
19240 msgstr ""
19241
19242 # type: =head2
19243 #: ../fish/guestfish-actions.pod:2328
19244 msgid "lvs-full"
19245 msgstr ""
19246
19247 # type: verbatim
19248 #: ../fish/guestfish-actions.pod:2330
19249 #, no-wrap
19250 msgid ""
19251 " lvs-full\n"
19252 "\n"
19253 msgstr ""
19254
19255 # type: =head2
19256 #: ../fish/guestfish-actions.pod:2335
19257 msgid "lvuuid"
19258 msgstr ""
19259
19260 # type: verbatim
19261 #: ../fish/guestfish-actions.pod:2337
19262 #, no-wrap
19263 msgid ""
19264 " lvuuid device\n"
19265 "\n"
19266 msgstr ""
19267
19268 # type: =head2
19269 #: ../fish/guestfish-actions.pod:2341
19270 msgid "lxattrlist"
19271 msgstr ""
19272
19273 # type: verbatim
19274 #: ../fish/guestfish-actions.pod:2343
19275 #, no-wrap
19276 msgid ""
19277 " lxattrlist path 'names ...'\n"
19278 "\n"
19279 msgstr ""
19280
19281 # type: textblock
19282 #: ../fish/guestfish-actions.pod:2359
19283 msgid ""
19284 "This call is intended for programs that want to efficiently list a directory "
19285 "contents without making many round-trips.  See also L</lstatlist> for a "
19286 "similarly efficient call for getting standard stats.  Very long directory "
19287 "listings might cause the protocol message size to be exceeded, causing this "
19288 "call to fail.  The caller must split up such requests into smaller groups of "
19289 "names."
19290 msgstr ""
19291
19292 # type: =head2
19293 #: ../fish/guestfish-actions.pod:2367
19294 msgid "mkdir"
19295 msgstr ""
19296
19297 # type: verbatim
19298 #: ../fish/guestfish-actions.pod:2369
19299 #, no-wrap
19300 msgid ""
19301 " mkdir path\n"
19302 "\n"
19303 msgstr ""
19304
19305 # type: =head2
19306 #: ../fish/guestfish-actions.pod:2373
19307 msgid "mkdir-mode"
19308 msgstr ""
19309
19310 # type: verbatim
19311 #: ../fish/guestfish-actions.pod:2375
19312 #, no-wrap
19313 msgid ""
19314 " mkdir-mode path mode\n"
19315 "\n"
19316 msgstr ""
19317
19318 # type: textblock
19319 #: ../fish/guestfish-actions.pod:2384
19320 msgid "See also L</mkdir>, L</umask>"
19321 msgstr ""
19322
19323 # type: =head2
19324 #: ../fish/guestfish-actions.pod:2386
19325 msgid "mkdir-p"
19326 msgstr ""
19327
19328 # type: verbatim
19329 #: ../fish/guestfish-actions.pod:2388
19330 #, no-wrap
19331 msgid ""
19332 " mkdir-p path\n"
19333 "\n"
19334 msgstr ""
19335
19336 # type: =head2
19337 #: ../fish/guestfish-actions.pod:2393
19338 msgid "mkdtemp"
19339 msgstr ""
19340
19341 # type: verbatim
19342 #: ../fish/guestfish-actions.pod:2395
19343 #, no-wrap
19344 msgid ""
19345 " mkdtemp template\n"
19346 "\n"
19347 msgstr ""
19348
19349 # type: =head2
19350 #: ../fish/guestfish-actions.pod:2416
19351 msgid "mke2fs-J"
19352 msgstr ""
19353
19354 # type: verbatim
19355 #: ../fish/guestfish-actions.pod:2418
19356 #, no-wrap
19357 msgid ""
19358 " mke2fs-J fstype blocksize device journal\n"
19359 "\n"
19360 msgstr ""
19361
19362 # type: textblock
19363 #: ../fish/guestfish-actions.pod:2426
19364 msgid "See also L</mke2journal>."
19365 msgstr ""
19366
19367 # type: =head2
19368 #: ../fish/guestfish-actions.pod:2428
19369 msgid "mke2fs-JL"
19370 msgstr ""
19371
19372 # type: verbatim
19373 #: ../fish/guestfish-actions.pod:2430
19374 #, no-wrap
19375 msgid ""
19376 " mke2fs-JL fstype blocksize device label\n"
19377 "\n"
19378 msgstr ""
19379
19380 # type: textblock
19381 #: ../fish/guestfish-actions.pod:2435
19382 msgid "See also L</mke2journal-L>."
19383 msgstr ""
19384
19385 # type: =head2
19386 #: ../fish/guestfish-actions.pod:2437
19387 msgid "mke2fs-JU"
19388 msgstr ""
19389
19390 # type: verbatim
19391 #: ../fish/guestfish-actions.pod:2439
19392 #, no-wrap
19393 msgid ""
19394 " mke2fs-JU fstype blocksize device uuid\n"
19395 "\n"
19396 msgstr ""
19397
19398 # type: textblock
19399 #: ../fish/guestfish-actions.pod:2444
19400 msgid "See also L</mke2journal-U>."
19401 msgstr ""
19402
19403 # type: =head2
19404 #: ../fish/guestfish-actions.pod:2446
19405 msgid "mke2journal"
19406 msgstr ""
19407
19408 # type: verbatim
19409 #: ../fish/guestfish-actions.pod:2448
19410 #, no-wrap
19411 msgid ""
19412 " mke2journal blocksize device\n"
19413 "\n"
19414 msgstr ""
19415
19416 # type: =head2
19417 #: ../fish/guestfish-actions.pod:2455
19418 msgid "mke2journal-L"
19419 msgstr ""
19420
19421 # type: verbatim
19422 #: ../fish/guestfish-actions.pod:2457
19423 #, no-wrap
19424 msgid ""
19425 " mke2journal-L blocksize label device\n"
19426 "\n"
19427 msgstr ""
19428
19429 # type: =head2
19430 #: ../fish/guestfish-actions.pod:2461
19431 msgid "mke2journal-U"
19432 msgstr ""
19433
19434 # type: verbatim
19435 #: ../fish/guestfish-actions.pod:2463
19436 #, no-wrap
19437 msgid ""
19438 " mke2journal-U blocksize uuid device\n"
19439 "\n"
19440 msgstr ""
19441
19442 # type: =head2
19443 #: ../fish/guestfish-actions.pod:2467
19444 msgid "mkfifo"
19445 msgstr ""
19446
19447 # type: verbatim
19448 #: ../fish/guestfish-actions.pod:2469
19449 #, no-wrap
19450 msgid ""
19451 " mkfifo mode path\n"
19452 "\n"
19453 msgstr ""
19454
19455 # type: textblock
19456 #: ../fish/guestfish-actions.pod:2471
19457 msgid ""
19458 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
19459 "is just a convenient wrapper around L</mknod>."
19460 msgstr ""
19461
19462 # type: =head2
19463 #: ../fish/guestfish-actions.pod:2477
19464 msgid "mkfs"
19465 msgstr ""
19466
19467 # type: verbatim
19468 #: ../fish/guestfish-actions.pod:2479
19469 #, no-wrap
19470 msgid ""
19471 " mkfs fstype device\n"
19472 "\n"
19473 msgstr ""
19474
19475 # type: =head2
19476 #: ../fish/guestfish-actions.pod:2485
19477 msgid "mkfs-b"
19478 msgstr ""
19479
19480 # type: verbatim
19481 #: ../fish/guestfish-actions.pod:2487
19482 #, no-wrap
19483 msgid ""
19484 " mkfs-b fstype blocksize device\n"
19485 "\n"
19486 msgstr ""
19487
19488 # type: textblock
19489 #: ../fish/guestfish-actions.pod:2489
19490 msgid ""
19491 "This call is similar to L</mkfs>, but it allows you to control the block "
19492 "size of the resulting filesystem.  Supported block sizes depend on the "
19493 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
19494 msgstr ""
19495
19496 # type: =head2
19497 #: ../fish/guestfish-actions.pod:2497
19498 msgid "mkmountpoint"
19499 msgstr ""
19500
19501 # type: verbatim
19502 #: ../fish/guestfish-actions.pod:2499
19503 #, no-wrap
19504 msgid ""
19505 " mkmountpoint exemptpath\n"
19506 "\n"
19507 msgstr ""
19508
19509 # type: textblock
19510 #: ../fish/guestfish-actions.pod:2501
19511 msgid ""
19512 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
19513 "to create extra mountpoints before mounting the first filesystem."
19514 msgstr ""
19515
19516 # type: =head2
19517 #: ../fish/guestfish-actions.pod:2525
19518 msgid "mknod"
19519 msgstr ""
19520
19521 # type: verbatim
19522 #: ../fish/guestfish-actions.pod:2527
19523 #, no-wrap
19524 msgid ""
19525 " mknod mode devmajor devminor path\n"
19526 "\n"
19527 msgstr ""
19528
19529 # type: textblock
19530 #: ../fish/guestfish-actions.pod:2537
19531 msgid ""
19532 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
19533 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
19534 "regular file).  These constants are available in the standard Linux header "
19535 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
19536 "wrappers around this command which bitwise OR in the appropriate constant "
19537 "for you."
19538 msgstr ""
19539
19540 # type: =head2
19541 #: ../fish/guestfish-actions.pod:2547
19542 msgid "mknod-b"
19543 msgstr ""
19544
19545 # type: verbatim
19546 #: ../fish/guestfish-actions.pod:2549
19547 #, no-wrap
19548 msgid ""
19549 " mknod-b mode devmajor devminor path\n"
19550 "\n"
19551 msgstr ""
19552
19553 # type: textblock
19554 #: ../fish/guestfish-actions.pod:2551
19555 msgid ""
19556 "This call creates a block device node called C<path> with mode C<mode> and "
19557 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
19558 "wrapper around L</mknod>."
19559 msgstr ""
19560
19561 # type: =head2
19562 #: ../fish/guestfish-actions.pod:2557
19563 msgid "mknod-c"
19564 msgstr ""
19565
19566 # type: verbatim
19567 #: ../fish/guestfish-actions.pod:2559
19568 #, no-wrap
19569 msgid ""
19570 " mknod-c mode devmajor devminor path\n"
19571 "\n"
19572 msgstr ""
19573
19574 # type: textblock
19575 #: ../fish/guestfish-actions.pod:2561
19576 msgid ""
19577 "This call creates a char device node called C<path> with mode C<mode> and "
19578 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
19579 "wrapper around L</mknod>."
19580 msgstr ""
19581
19582 # type: =head2
19583 #: ../fish/guestfish-actions.pod:2567
19584 msgid "mkswap"
19585 msgstr ""
19586
19587 # type: verbatim
19588 #: ../fish/guestfish-actions.pod:2569
19589 #, no-wrap
19590 msgid ""
19591 " mkswap device\n"
19592 "\n"
19593 msgstr ""
19594
19595 # type: =head2
19596 #: ../fish/guestfish-actions.pod:2573
19597 msgid "mkswap-L"
19598 msgstr ""
19599
19600 # type: verbatim
19601 #: ../fish/guestfish-actions.pod:2575
19602 #, no-wrap
19603 msgid ""
19604 " mkswap-L label device\n"
19605 "\n"
19606 msgstr ""
19607
19608 # type: =head2
19609 #: ../fish/guestfish-actions.pod:2583
19610 msgid "mkswap-U"
19611 msgstr ""
19612
19613 # type: verbatim
19614 #: ../fish/guestfish-actions.pod:2585
19615 #, no-wrap
19616 msgid ""
19617 " mkswap-U uuid device\n"
19618 "\n"
19619 msgstr ""
19620
19621 # type: =head2
19622 #: ../fish/guestfish-actions.pod:2589
19623 msgid "mkswap-file"
19624 msgstr ""
19625
19626 # type: verbatim
19627 #: ../fish/guestfish-actions.pod:2591
19628 #, no-wrap
19629 msgid ""
19630 " mkswap-file path\n"
19631 "\n"
19632 msgstr ""
19633
19634 # type: textblock
19635 #: ../fish/guestfish-actions.pod:2595
19636 msgid ""
19637 "This command just writes a swap file signature to an existing file.  To "
19638 "create the file itself, use something like L</fallocate>."
19639 msgstr ""
19640
19641 # type: =head2
19642 #: ../fish/guestfish-actions.pod:2598
19643 msgid "modprobe"
19644 msgstr ""
19645
19646 # type: verbatim
19647 #: ../fish/guestfish-actions.pod:2600
19648 #, no-wrap
19649 msgid ""
19650 " modprobe modulename\n"
19651 "\n"
19652 msgstr ""
19653
19654 # type: =head2
19655 #: ../fish/guestfish-actions.pod:2607
19656 msgid "mount"
19657 msgstr ""
19658
19659 # type: verbatim
19660 #: ../fish/guestfish-actions.pod:2609
19661 #, no-wrap
19662 msgid ""
19663 " mount device mountpoint\n"
19664 "\n"
19665 msgstr ""
19666
19667 # type: textblock
19668 #: ../fish/guestfish-actions.pod:2625
19669 msgid ""
19670 "B<Important note:> When you use this call, the filesystem options C<sync> "
19671 "and C<noatime> are set implicitly.  This was originally done because we "
19672 "thought it would improve reliability, but it turns out that I<-o sync> has a "
19673 "very large negative performance impact and negligible effect on "
19674 "reliability.  Therefore we recommend that you avoid using L</mount> in any "
19675 "code that needs performance, and instead use L</mount-options> (use an empty "
19676 "string for the first parameter if you don't want any options)."
19677 msgstr ""
19678
19679 # type: =head2
19680 #: ../fish/guestfish-actions.pod:2635
19681 msgid "mount-loop"
19682 msgstr ""
19683
19684 # type: verbatim
19685 #: ../fish/guestfish-actions.pod:2637
19686 #, no-wrap
19687 msgid ""
19688 " mount-loop file mountpoint\n"
19689 "\n"
19690 msgstr ""
19691
19692 # type: =head2
19693 #: ../fish/guestfish-actions.pod:2643
19694 msgid "mount-options"
19695 msgstr ""
19696
19697 # type: verbatim
19698 #: ../fish/guestfish-actions.pod:2645
19699 #, no-wrap
19700 msgid ""
19701 " mount-options options device mountpoint\n"
19702 "\n"
19703 msgstr ""
19704
19705 # type: textblock
19706 #: ../fish/guestfish-actions.pod:2647
19707 msgid ""
19708 "This is the same as the L</mount> command, but it allows you to set the "
19709 "mount options as for the L<mount(8)> I<-o> flag."
19710 msgstr ""
19711
19712 # type: =head2
19713 #: ../fish/guestfish-actions.pod:2655
19714 msgid "mount-ro"
19715 msgstr ""
19716
19717 # type: verbatim
19718 #: ../fish/guestfish-actions.pod:2657
19719 #, no-wrap
19720 msgid ""
19721 " mount-ro device mountpoint\n"
19722 "\n"
19723 msgstr ""
19724
19725 # type: textblock
19726 #: ../fish/guestfish-actions.pod:2659
19727 msgid ""
19728 "This is the same as the L</mount> command, but it mounts the filesystem with "
19729 "the read-only (I<-o ro>) flag."
19730 msgstr ""
19731
19732 # type: =head2
19733 #: ../fish/guestfish-actions.pod:2662
19734 msgid "mount-vfs"
19735 msgstr ""
19736
19737 # type: verbatim
19738 #: ../fish/guestfish-actions.pod:2664
19739 #, no-wrap
19740 msgid ""
19741 " mount-vfs options vfstype device mountpoint\n"
19742 "\n"
19743 msgstr ""
19744
19745 # type: textblock
19746 #: ../fish/guestfish-actions.pod:2666
19747 msgid ""
19748 "This is the same as the L</mount> command, but it allows you to set both the "
19749 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
19750 msgstr ""
19751
19752 # type: =head2
19753 #: ../fish/guestfish-actions.pod:2670
19754 msgid "mountpoints"
19755 msgstr ""
19756
19757 # type: verbatim
19758 #: ../fish/guestfish-actions.pod:2672
19759 #, no-wrap
19760 msgid ""
19761 " mountpoints\n"
19762 "\n"
19763 msgstr ""
19764
19765 # type: textblock
19766 #: ../fish/guestfish-actions.pod:2674
19767 msgid ""
19768 "This call is similar to L</mounts>.  That call returns a list of devices.  "
19769 "This one returns a hash table (map) of device name to directory where the "
19770 "device is mounted."
19771 msgstr ""
19772
19773 # type: =head2
19774 #: ../fish/guestfish-actions.pod:2678
19775 msgid "mounts"
19776 msgstr ""
19777
19778 # type: verbatim
19779 #: ../fish/guestfish-actions.pod:2680
19780 #, no-wrap
19781 msgid ""
19782 " mounts\n"
19783 "\n"
19784 msgstr ""
19785
19786 # type: textblock
19787 #: ../fish/guestfish-actions.pod:2687
19788 msgid "See also: L</mountpoints>"
19789 msgstr ""
19790
19791 # type: =head2
19792 #: ../fish/guestfish-actions.pod:2689
19793 msgid "mv"
19794 msgstr ""
19795
19796 # type: verbatim
19797 #: ../fish/guestfish-actions.pod:2691
19798 #, no-wrap
19799 msgid ""
19800 " mv src dest\n"
19801 "\n"
19802 msgstr ""
19803
19804 # type: =head2
19805 #: ../fish/guestfish-actions.pod:2696
19806 msgid "ntfs-3g-probe"
19807 msgstr ""
19808
19809 # type: verbatim
19810 #: ../fish/guestfish-actions.pod:2698
19811 #, no-wrap
19812 msgid ""
19813 " ntfs-3g-probe true|false device\n"
19814 "\n"
19815 msgstr ""
19816
19817 # type: =head2
19818 #: ../fish/guestfish-actions.pod:2712
19819 msgid "ntfsresize"
19820 msgstr ""
19821
19822 # type: verbatim
19823 #: ../fish/guestfish-actions.pod:2714
19824 #, no-wrap
19825 msgid ""
19826 " ntfsresize device\n"
19827 "\n"
19828 msgstr ""
19829
19830 # type: =head2
19831 #: ../fish/guestfish-actions.pod:2720
19832 msgid "ntfsresize-size"
19833 msgstr ""
19834
19835 # type: verbatim
19836 #: ../fish/guestfish-actions.pod:2722
19837 #, no-wrap
19838 msgid ""
19839 " ntfsresize-size device size\n"
19840 "\n"
19841 msgstr ""
19842
19843 # type: textblock
19844 #: ../fish/guestfish-actions.pod:2724
19845 msgid ""
19846 "This command is the same as L</ntfsresize> except that it allows you to "
19847 "specify the new size (in bytes) explicitly."
19848 msgstr ""
19849
19850 # type: =head2
19851 #: ../fish/guestfish-actions.pod:2727
19852 msgid "part-add"
19853 msgstr ""
19854
19855 # type: verbatim
19856 #: ../fish/guestfish-actions.pod:2729
19857 #, no-wrap
19858 msgid ""
19859 " part-add device prlogex startsect endsect\n"
19860 "\n"
19861 msgstr ""
19862
19863 # type: textblock
19864 #: ../fish/guestfish-actions.pod:2731
19865 msgid ""
19866 "This command adds a partition to C<device>.  If there is no partition table "
19867 "on the device, call L</part-init> first."
19868 msgstr ""
19869
19870 # type: textblock
19871 #: ../fish/guestfish-actions.pod:2743
19872 msgid ""
19873 "Creating a partition which covers the whole disk is not so easy.  Use "
19874 "L</part-disk> to do that."
19875 msgstr ""
19876
19877 # type: =head2
19878 #: ../fish/guestfish-actions.pod:2746
19879 msgid "part-del"
19880 msgstr ""
19881
19882 # type: verbatim
19883 #: ../fish/guestfish-actions.pod:2748
19884 #, no-wrap
19885 msgid ""
19886 " part-del device partnum\n"
19887 "\n"
19888 msgstr ""
19889
19890 # type: =head2
19891 #: ../fish/guestfish-actions.pod:2756
19892 msgid "part-disk"
19893 msgstr ""
19894
19895 # type: verbatim
19896 #: ../fish/guestfish-actions.pod:2758
19897 #, no-wrap
19898 msgid ""
19899 " part-disk device parttype\n"
19900 "\n"
19901 msgstr ""
19902
19903 # type: textblock
19904 #: ../fish/guestfish-actions.pod:2760
19905 msgid ""
19906 "This command is simply a combination of L</part-init> followed by "
19907 "L</part-add> to create a single primary partition covering the whole disk."
19908 msgstr ""
19909
19910 # type: textblock
19911 #: ../fish/guestfish-actions.pod:2764
19912 msgid ""
19913 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
19914 "possible values are described in L</part-init>."
19915 msgstr ""
19916
19917 # type: =head2
19918 #: ../fish/guestfish-actions.pod:2770
19919 msgid "part-get-bootable"
19920 msgstr ""
19921
19922 # type: verbatim
19923 #: ../fish/guestfish-actions.pod:2772
19924 #, no-wrap
19925 msgid ""
19926 " part-get-bootable device partnum\n"
19927 "\n"
19928 msgstr ""
19929
19930 # type: textblock
19931 #: ../fish/guestfish-actions.pod:2777
19932 msgid "See also L</part-set-bootable>."
19933 msgstr ""
19934
19935 # type: =head2
19936 #: ../fish/guestfish-actions.pod:2779
19937 msgid "part-get-mbr-id"
19938 msgstr ""
19939
19940 # type: verbatim
19941 #: ../fish/guestfish-actions.pod:2781
19942 #, no-wrap
19943 msgid ""
19944 " part-get-mbr-id device partnum\n"
19945 "\n"
19946 msgstr ""
19947
19948 # type: textblock
19949 #: ../fish/guestfish-actions.pod:2786 ../fish/guestfish-actions.pod:2924
19950 msgid ""
19951 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
19952 "undefined results for other partition table types (see "
19953 "L</part-get-parttype>)."
19954 msgstr ""
19955
19956 # type: =head2
19957 #: ../fish/guestfish-actions.pod:2790
19958 msgid "part-get-parttype"
19959 msgstr ""
19960
19961 # type: verbatim
19962 #: ../fish/guestfish-actions.pod:2792
19963 #, no-wrap
19964 msgid ""
19965 " part-get-parttype device\n"
19966 "\n"
19967 msgstr ""
19968
19969 # type: textblock
19970 #: ../fish/guestfish-actions.pod:2797
19971 msgid ""
19972 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
19973 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
19974 "possible, although unusual.  See L</part-init> for a full list."
19975 msgstr ""
19976
19977 # type: =head2
19978 #: ../fish/guestfish-actions.pod:2802
19979 msgid "part-init"
19980 msgstr ""
19981
19982 # type: verbatim
19983 #: ../fish/guestfish-actions.pod:2804
19984 #, no-wrap
19985 msgid ""
19986 " part-init device parttype\n"
19987 "\n"
19988 msgstr ""
19989
19990 # type: textblock
19991 #: ../fish/guestfish-actions.pod:2810
19992 msgid ""
19993 "Initially there are no partitions.  Following this, you should call "
19994 "L</part-add> for each partition required."
19995 msgstr ""
19996
19997 # type: =head2
19998 #: ../fish/guestfish-actions.pod:2873
19999 msgid "part-list"
20000 msgstr ""
20001
20002 # type: verbatim
20003 #: ../fish/guestfish-actions.pod:2875
20004 #, no-wrap
20005 msgid ""
20006 " part-list device\n"
20007 "\n"
20008 msgstr ""
20009
20010 # type: textblock
20011 #: ../fish/guestfish-actions.pod:2890
20012 msgid ""
20013 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
20014 "the device's sector size, see L</blockdev-getss>."
20015 msgstr ""
20016
20017 # type: =head2
20018 #: ../fish/guestfish-actions.pod:2903
20019 msgid "part-set-bootable"
20020 msgstr ""
20021
20022 # type: verbatim
20023 #: ../fish/guestfish-actions.pod:2905
20024 #, no-wrap
20025 msgid ""
20026 " part-set-bootable device partnum true|false\n"
20027 "\n"
20028 msgstr ""
20029
20030 # type: =head2
20031 #: ../fish/guestfish-actions.pod:2914
20032 msgid "part-set-mbr-id"
20033 msgstr ""
20034
20035 # type: verbatim
20036 #: ../fish/guestfish-actions.pod:2916
20037 #, no-wrap
20038 msgid ""
20039 " part-set-mbr-id device partnum idbyte\n"
20040 "\n"
20041 msgstr ""
20042
20043 # type: =head2
20044 #: ../fish/guestfish-actions.pod:2928
20045 msgid "part-set-name"
20046 msgstr ""
20047
20048 # type: verbatim
20049 #: ../fish/guestfish-actions.pod:2930
20050 #, no-wrap
20051 msgid ""
20052 " part-set-name device partnum name\n"
20053 "\n"
20054 msgstr ""
20055
20056 # type: =head2
20057 #: ../fish/guestfish-actions.pod:2938
20058 msgid "part-to-dev"
20059 msgstr ""
20060
20061 # type: verbatim
20062 #: ../fish/guestfish-actions.pod:2940
20063 #, no-wrap
20064 msgid ""
20065 " part-to-dev partition\n"
20066 "\n"
20067 msgstr ""
20068
20069 # type: textblock
20070 #: ../fish/guestfish-actions.pod:2946
20071 msgid ""
20072 "The named partition must exist, for example as a string returned from "
20073 "L</list-partitions>."
20074 msgstr ""
20075
20076 # type: =head2
20077 #: ../fish/guestfish-actions.pod:2949
20078 msgid "ping-daemon"
20079 msgstr ""
20080
20081 # type: verbatim
20082 #: ../fish/guestfish-actions.pod:2951
20083 #, no-wrap
20084 msgid ""
20085 " ping-daemon\n"
20086 "\n"
20087 msgstr ""
20088
20089 # type: =head2
20090 #: ../fish/guestfish-actions.pod:2958
20091 msgid "pread"
20092 msgstr ""
20093
20094 # type: verbatim
20095 #: ../fish/guestfish-actions.pod:2960
20096 #, no-wrap
20097 msgid ""
20098 " pread path count offset\n"
20099 "\n"
20100 msgstr ""
20101
20102 # type: textblock
20103 #: ../fish/guestfish-actions.pod:2968
20104 msgid "See also L</pwrite>, L</pread-device>."
20105 msgstr ""
20106
20107 # type: =head2
20108 #: ../fish/guestfish-actions.pod:2973
20109 msgid "pread-device"
20110 msgstr ""
20111
20112 # type: verbatim
20113 #: ../fish/guestfish-actions.pod:2975
20114 #, no-wrap
20115 msgid ""
20116 " pread-device device count offset\n"
20117 "\n"
20118 msgstr ""
20119
20120 # type: textblock
20121 #: ../fish/guestfish-actions.pod:2983
20122 msgid "See also L</pread>."
20123 msgstr ""
20124
20125 # type: =head2
20126 #: ../fish/guestfish-actions.pod:2988
20127 msgid "pvcreate"
20128 msgstr ""
20129
20130 # type: verbatim
20131 #: ../fish/guestfish-actions.pod:2990
20132 #, no-wrap
20133 msgid ""
20134 " pvcreate device\n"
20135 "\n"
20136 msgstr ""
20137
20138 # type: =head2
20139 #: ../fish/guestfish-actions.pod:2996
20140 msgid "pvremove"
20141 msgstr ""
20142
20143 # type: verbatim
20144 #: ../fish/guestfish-actions.pod:2998
20145 #, no-wrap
20146 msgid ""
20147 " pvremove device\n"
20148 "\n"
20149 msgstr ""
20150
20151 # type: =head2
20152 #: ../fish/guestfish-actions.pod:3007
20153 msgid "pvresize"
20154 msgstr ""
20155
20156 # type: verbatim
20157 #: ../fish/guestfish-actions.pod:3009
20158 #, no-wrap
20159 msgid ""
20160 " pvresize device\n"
20161 "\n"
20162 msgstr ""
20163
20164 # type: =head2
20165 #: ../fish/guestfish-actions.pod:3014
20166 msgid "pvresize-size"
20167 msgstr ""
20168
20169 # type: verbatim
20170 #: ../fish/guestfish-actions.pod:3016
20171 #, no-wrap
20172 msgid ""
20173 " pvresize-size device size\n"
20174 "\n"
20175 msgstr ""
20176
20177 # type: textblock
20178 #: ../fish/guestfish-actions.pod:3018
20179 msgid ""
20180 "This command is the same as L</pvresize> except that it allows you to "
20181 "specify the new size (in bytes) explicitly."
20182 msgstr ""
20183
20184 # type: =head2
20185 #: ../fish/guestfish-actions.pod:3021
20186 msgid "pvs"
20187 msgstr ""
20188
20189 # type: verbatim
20190 #: ../fish/guestfish-actions.pod:3023
20191 #, no-wrap
20192 msgid ""
20193 " pvs\n"
20194 "\n"
20195 msgstr ""
20196
20197 # type: textblock
20198 #: ../fish/guestfish-actions.pod:3031
20199 msgid "See also L</pvs-full>."
20200 msgstr ""
20201
20202 # type: =head2
20203 #: ../fish/guestfish-actions.pod:3033
20204 msgid "pvs-full"
20205 msgstr ""
20206
20207 # type: verbatim
20208 #: ../fish/guestfish-actions.pod:3035
20209 #, no-wrap
20210 msgid ""
20211 " pvs-full\n"
20212 "\n"
20213 msgstr ""
20214
20215 # type: =head2
20216 #: ../fish/guestfish-actions.pod:3040
20217 msgid "pvuuid"
20218 msgstr ""
20219
20220 # type: verbatim
20221 #: ../fish/guestfish-actions.pod:3042
20222 #, no-wrap
20223 msgid ""
20224 " pvuuid device\n"
20225 "\n"
20226 msgstr ""
20227
20228 # type: =head2
20229 #: ../fish/guestfish-actions.pod:3046
20230 msgid "pwrite"
20231 msgstr ""
20232
20233 # type: verbatim
20234 #: ../fish/guestfish-actions.pod:3048
20235 #, no-wrap
20236 msgid ""
20237 " pwrite path content offset\n"
20238 "\n"
20239 msgstr ""
20240
20241 # type: textblock
20242 #: ../fish/guestfish-actions.pod:3059
20243 msgid "See also L</pread>, L</pwrite-device>."
20244 msgstr ""
20245
20246 # type: =head2
20247 #: ../fish/guestfish-actions.pod:3064
20248 msgid "pwrite-device"
20249 msgstr ""
20250
20251 # type: verbatim
20252 #: ../fish/guestfish-actions.pod:3066
20253 #, no-wrap
20254 msgid ""
20255 " pwrite-device device content offset\n"
20256 "\n"
20257 msgstr ""
20258
20259 # type: textblock
20260 #: ../fish/guestfish-actions.pod:3076
20261 msgid "See also L</pwrite>."
20262 msgstr ""
20263
20264 # type: =head2
20265 #: ../fish/guestfish-actions.pod:3081
20266 msgid "read-file"
20267 msgstr ""
20268
20269 # type: verbatim
20270 #: ../fish/guestfish-actions.pod:3083
20271 #, no-wrap
20272 msgid ""
20273 " read-file path\n"
20274 "\n"
20275 msgstr ""
20276
20277 # type: textblock
20278 #: ../fish/guestfish-actions.pod:3088
20279 msgid ""
20280 "Unlike L</cat>, this function can correctly handle files that contain "
20281 "embedded ASCII NUL characters.  However unlike L</download>, this function "
20282 "is limited in the total size of file that can be handled."
20283 msgstr ""
20284
20285 # type: =head2
20286 #: ../fish/guestfish-actions.pod:3096
20287 msgid "read-lines"
20288 msgstr ""
20289
20290 # type: verbatim
20291 #: ../fish/guestfish-actions.pod:3098
20292 #, no-wrap
20293 msgid ""
20294 " read-lines path\n"
20295 "\n"
20296 msgstr ""
20297
20298 # type: textblock
20299 #: ../fish/guestfish-actions.pod:3105
20300 msgid ""
20301 "Note that this function cannot correctly handle binary files (specifically, "
20302 "files containing C<\\0> character which is treated as end of line).  For "
20303 "those you need to use the L</read-file> function which has a more complex "
20304 "interface."
20305 msgstr ""
20306
20307 # type: =head2
20308 #: ../fish/guestfish-actions.pod:3110
20309 msgid "readdir"
20310 msgstr ""
20311
20312 # type: verbatim
20313 #: ../fish/guestfish-actions.pod:3112
20314 #, no-wrap
20315 msgid ""
20316 " readdir dir\n"
20317 "\n"
20318 msgstr ""
20319
20320 # type: textblock
20321 #: ../fish/guestfish-actions.pod:3164
20322 msgid ""
20323 "This function is primarily intended for use by programs.  To get a simple "
20324 "list of names, use L</ls>.  To get a printable directory for human "
20325 "consumption, use L</ll>."
20326 msgstr ""
20327
20328 # type: =head2
20329 #: ../fish/guestfish-actions.pod:3168
20330 msgid "readlink"
20331 msgstr ""
20332
20333 # type: verbatim
20334 #: ../fish/guestfish-actions.pod:3170
20335 #, no-wrap
20336 msgid ""
20337 " readlink path\n"
20338 "\n"
20339 msgstr ""
20340
20341 # type: =head2
20342 #: ../fish/guestfish-actions.pod:3174
20343 msgid "readlinklist"
20344 msgstr ""
20345
20346 # type: verbatim
20347 #: ../fish/guestfish-actions.pod:3176
20348 #, no-wrap
20349 msgid ""
20350 " readlinklist path 'names ...'\n"
20351 "\n"
20352 msgstr ""
20353
20354 # type: =head2
20355 #: ../fish/guestfish-actions.pod:3200
20356 msgid "realpath"
20357 msgstr ""
20358
20359 # type: verbatim
20360 #: ../fish/guestfish-actions.pod:3202
20361 #, no-wrap
20362 msgid ""
20363 " realpath path\n"
20364 "\n"
20365 msgstr ""
20366
20367 # type: =head2
20368 #: ../fish/guestfish-actions.pod:3207
20369 msgid "removexattr"
20370 msgstr ""
20371
20372 # type: verbatim
20373 #: ../fish/guestfish-actions.pod:3209
20374 #, no-wrap
20375 msgid ""
20376 " removexattr xattr path\n"
20377 "\n"
20378 msgstr ""
20379
20380 # type: textblock
20381 #: ../fish/guestfish-actions.pod:3214
20382 msgid "See also: L</lremovexattr>, L<attr(5)>."
20383 msgstr ""
20384
20385 # type: =head2
20386 #: ../fish/guestfish-actions.pod:3216
20387 msgid "resize2fs"
20388 msgstr ""
20389
20390 # type: verbatim
20391 #: ../fish/guestfish-actions.pod:3218
20392 #, no-wrap
20393 msgid ""
20394 " resize2fs device\n"
20395 "\n"
20396 msgstr ""
20397
20398 # type: textblock
20399 #: ../fish/guestfish-actions.pod:3223
20400 msgid ""
20401 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
20402 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
20403 "gives an error about this and sometimes not.  In any case, it is always safe "
20404 "to call L</e2fsck-f> before calling this function."
20405 msgstr ""
20406
20407 # type: =head2
20408 #: ../fish/guestfish-actions.pod:3229
20409 msgid "resize2fs-size"
20410 msgstr ""
20411
20412 # type: verbatim
20413 #: ../fish/guestfish-actions.pod:3231
20414 #, no-wrap
20415 msgid ""
20416 " resize2fs-size device size\n"
20417 "\n"
20418 msgstr ""
20419
20420 # type: textblock
20421 #: ../fish/guestfish-actions.pod:3233
20422 msgid ""
20423 "This command is the same as L</resize2fs> except that it allows you to "
20424 "specify the new size (in bytes) explicitly."
20425 msgstr ""
20426
20427 # type: =head2
20428 #: ../fish/guestfish-actions.pod:3236
20429 msgid "rm"
20430 msgstr ""
20431
20432 # type: verbatim
20433 #: ../fish/guestfish-actions.pod:3238
20434 #, no-wrap
20435 msgid ""
20436 " rm path\n"
20437 "\n"
20438 msgstr ""
20439
20440 # type: =head2
20441 #: ../fish/guestfish-actions.pod:3242
20442 msgid "rm-rf"
20443 msgstr ""
20444
20445 # type: verbatim
20446 #: ../fish/guestfish-actions.pod:3244
20447 #, no-wrap
20448 msgid ""
20449 " rm-rf path\n"
20450 "\n"
20451 msgstr ""
20452
20453 # type: =head2
20454 #: ../fish/guestfish-actions.pod:3250
20455 msgid "rmdir"
20456 msgstr ""
20457
20458 # type: verbatim
20459 #: ../fish/guestfish-actions.pod:3252
20460 #, no-wrap
20461 msgid ""
20462 " rmdir path\n"
20463 "\n"
20464 msgstr ""
20465
20466 # type: =head2
20467 #: ../fish/guestfish-actions.pod:3256
20468 msgid "rmmountpoint"
20469 msgstr ""
20470
20471 # type: verbatim
20472 #: ../fish/guestfish-actions.pod:3258
20473 #, no-wrap
20474 msgid ""
20475 " rmmountpoint exemptpath\n"
20476 "\n"
20477 msgstr ""
20478
20479 # type: textblock
20480 #: ../fish/guestfish-actions.pod:3260
20481 msgid ""
20482 "This calls removes a mountpoint that was previously created with "
20483 "L</mkmountpoint>.  See L</mkmountpoint> for full details."
20484 msgstr ""
20485
20486 # type: =head2
20487 #: ../fish/guestfish-actions.pod:3264
20488 msgid "scrub-device"
20489 msgstr ""
20490
20491 # type: verbatim
20492 #: ../fish/guestfish-actions.pod:3266
20493 #, no-wrap
20494 msgid ""
20495 " scrub-device device\n"
20496 "\n"
20497 msgstr ""
20498
20499 # type: =head2
20500 #: ../fish/guestfish-actions.pod:3277
20501 msgid "scrub-file"
20502 msgstr ""
20503
20504 # type: verbatim
20505 #: ../fish/guestfish-actions.pod:3279
20506 #, no-wrap
20507 msgid ""
20508 " scrub-file file\n"
20509 "\n"
20510 msgstr ""
20511
20512 # type: =head2
20513 #: ../fish/guestfish-actions.pod:3289
20514 msgid "scrub-freespace"
20515 msgstr ""
20516
20517 # type: verbatim
20518 #: ../fish/guestfish-actions.pod:3291
20519 #, no-wrap
20520 msgid ""
20521 " scrub-freespace dir\n"
20522 "\n"
20523 msgstr ""
20524
20525 # type: textblock
20526 #: ../fish/guestfish-actions.pod:3293
20527 msgid ""
20528 "This command creates the directory C<dir> and then fills it with files until "
20529 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
20530 "deletes them.  The intention is to scrub any free space on the partition "
20531 "containing C<dir>."
20532 msgstr ""
20533
20534 # type: =head2
20535 #: ../fish/guestfish-actions.pod:3302
20536 msgid "set-append"
20537 msgstr ""
20538
20539 # type: =head2
20540 #: ../fish/guestfish-actions.pod:3304
20541 msgid "append"
20542 msgstr ""
20543
20544 # type: verbatim
20545 #: ../fish/guestfish-actions.pod:3306
20546 #, no-wrap
20547 msgid ""
20548 " set-append append\n"
20549 "\n"
20550 msgstr ""
20551
20552 # type: =head2
20553 #: ../fish/guestfish-actions.pod:3317
20554 msgid "set-autosync"
20555 msgstr ""
20556
20557 # type: =head2
20558 #: ../fish/guestfish-actions.pod:3319
20559 msgid "autosync"
20560 msgstr ""
20561
20562 # type: verbatim
20563 #: ../fish/guestfish-actions.pod:3321
20564 #, no-wrap
20565 msgid ""
20566 " set-autosync true|false\n"
20567 "\n"
20568 msgstr ""
20569
20570 # type: textblock
20571 #: ../fish/guestfish-actions.pod:3323
20572 msgid ""
20573 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
20574 "effort attempt to run L</umount-all> followed by L</sync> when the handle is "
20575 "closed (also if the program exits without closing handles)."
20576 msgstr ""
20577
20578 # type: =head2
20579 #: ../fish/guestfish-actions.pod:3331
20580 msgid "set-direct"
20581 msgstr ""
20582
20583 # type: =head2
20584 #: ../fish/guestfish-actions.pod:3333
20585 msgid "direct"
20586 msgstr ""
20587
20588 # type: verbatim
20589 #: ../fish/guestfish-actions.pod:3335
20590 #, no-wrap
20591 msgid ""
20592 " set-direct true|false\n"
20593 "\n"
20594 msgstr ""
20595
20596 # type: textblock
20597 #: ../fish/guestfish-actions.pod:3341
20598 msgid ""
20599 "One consequence of this is that log messages aren't caught by the library "
20600 "and handled by L</set-log-message-callback>, but go straight to stdout."
20601 msgstr ""
20602
20603 # type: =head2
20604 #: ../fish/guestfish-actions.pod:3350
20605 msgid "set-e2label"
20606 msgstr ""
20607
20608 # type: verbatim
20609 #: ../fish/guestfish-actions.pod:3352
20610 #, no-wrap
20611 msgid ""
20612 " set-e2label device label\n"
20613 "\n"
20614 msgstr ""
20615
20616 # type: textblock
20617 #: ../fish/guestfish-actions.pod:3358
20618 msgid ""
20619 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
20620 "label on a filesystem."
20621 msgstr ""
20622
20623 # type: =head2
20624 #: ../fish/guestfish-actions.pod:3361
20625 msgid "set-e2uuid"
20626 msgstr ""
20627
20628 # type: verbatim
20629 #: ../fish/guestfish-actions.pod:3363
20630 #, no-wrap
20631 msgid ""
20632 " set-e2uuid device uuid\n"
20633 "\n"
20634 msgstr ""
20635
20636 # type: textblock
20637 #: ../fish/guestfish-actions.pod:3370
20638 msgid ""
20639 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
20640 "UUID of a filesystem."
20641 msgstr ""
20642
20643 # type: =head2
20644 #: ../fish/guestfish-actions.pod:3373
20645 msgid "set-memsize"
20646 msgstr ""
20647
20648 # type: =head2
20649 #: ../fish/guestfish-actions.pod:3375
20650 msgid "memsize"
20651 msgstr ""
20652
20653 # type: verbatim
20654 #: ../fish/guestfish-actions.pod:3377
20655 #, no-wrap
20656 msgid ""
20657 " set-memsize memsize\n"
20658 "\n"
20659 msgstr ""
20660
20661 # type: textblock
20662 #: ../fish/guestfish-actions.pod:3379
20663 msgid ""
20664 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
20665 "This only has any effect if called before L</launch>."
20666 msgstr ""
20667
20668 # type: =head2
20669 #: ../fish/guestfish-actions.pod:3390
20670 msgid "set-network"
20671 msgstr ""
20672
20673 # type: =head2
20674 #: ../fish/guestfish-actions.pod:3392
20675 msgid "network"
20676 msgstr ""
20677
20678 # type: verbatim
20679 #: ../fish/guestfish-actions.pod:3394
20680 #, no-wrap
20681 msgid ""
20682 " set-network true|false\n"
20683 "\n"
20684 msgstr ""
20685
20686 # type: textblock
20687 #: ../fish/guestfish-actions.pod:3402
20688 msgid "You must call this before calling L</launch>, otherwise it has no effect."
20689 msgstr ""
20690
20691 # type: =head2
20692 #: ../fish/guestfish-actions.pod:3405
20693 msgid "set-path"
20694 msgstr ""
20695
20696 # type: =head2
20697 #: ../fish/guestfish-actions.pod:3407
20698 msgid "path"
20699 msgstr ""
20700
20701 # type: verbatim
20702 #: ../fish/guestfish-actions.pod:3409
20703 #, no-wrap
20704 msgid ""
20705 " set-path searchpath\n"
20706 "\n"
20707 msgstr ""
20708
20709 # type: =head2
20710 #: ../fish/guestfish-actions.pod:3418
20711 msgid "set-qemu"
20712 msgstr ""
20713
20714 # type: =head2
20715 #: ../fish/guestfish-actions.pod:3420
20716 msgid "qemu"
20717 msgstr ""
20718
20719 # type: verbatim
20720 #: ../fish/guestfish-actions.pod:3422
20721 #, no-wrap
20722 msgid ""
20723 " set-qemu qemu\n"
20724 "\n"
20725 msgstr ""
20726
20727 # type: =head2
20728 #: ../fish/guestfish-actions.pod:3442
20729 msgid "set-recovery-proc"
20730 msgstr ""
20731
20732 # type: =head2
20733 #: ../fish/guestfish-actions.pod:3444
20734 msgid "recovery-proc"
20735 msgstr ""
20736
20737 # type: verbatim
20738 #: ../fish/guestfish-actions.pod:3446
20739 #, no-wrap
20740 msgid ""
20741 " set-recovery-proc true|false\n"
20742 "\n"
20743 msgstr ""
20744
20745 # type: textblock
20746 #: ../fish/guestfish-actions.pod:3448
20747 msgid ""
20748 "If this is called with the parameter C<false> then L</launch> does not "
20749 "create a recovery process.  The purpose of the recovery process is to stop "
20750 "runaway qemu processes in the case where the main program aborts abruptly."
20751 msgstr ""
20752
20753 # type: textblock
20754 #: ../fish/guestfish-actions.pod:3453
20755 msgid ""
20756 "This only has any effect if called before L</launch>, and the default is "
20757 "true."
20758 msgstr ""
20759
20760 # type: =head2
20761 #: ../fish/guestfish-actions.pod:3462
20762 msgid "set-selinux"
20763 msgstr ""
20764
20765 # type: =head2
20766 #: ../fish/guestfish-actions.pod:3464
20767 msgid "selinux"
20768 msgstr ""
20769
20770 # type: verbatim
20771 #: ../fish/guestfish-actions.pod:3466
20772 #, no-wrap
20773 msgid ""
20774 " set-selinux true|false\n"
20775 "\n"
20776 msgstr ""
20777
20778 # type: =head2
20779 #: ../fish/guestfish-actions.pod:3477
20780 msgid "set-trace"
20781 msgstr ""
20782
20783 # type: =head2
20784 #: ../fish/guestfish-actions.pod:3479
20785 msgid "trace"
20786 msgstr ""
20787
20788 # type: verbatim
20789 #: ../fish/guestfish-actions.pod:3481
20790 #, no-wrap
20791 msgid ""
20792 " set-trace true|false\n"
20793 "\n"
20794 msgstr ""
20795
20796 # type: =head2
20797 #: ../fish/guestfish-actions.pod:3497
20798 msgid "set-verbose"
20799 msgstr ""
20800
20801 # type: =head2
20802 #: ../fish/guestfish-actions.pod:3499
20803 msgid "verbose"
20804 msgstr ""
20805
20806 # type: verbatim
20807 #: ../fish/guestfish-actions.pod:3501
20808 #, no-wrap
20809 msgid ""
20810 " set-verbose true|false\n"
20811 "\n"
20812 msgstr ""
20813
20814 # type: =head2
20815 #: ../fish/guestfish-actions.pod:3508
20816 msgid "setcon"
20817 msgstr ""
20818
20819 # type: verbatim
20820 #: ../fish/guestfish-actions.pod:3510
20821 #, no-wrap
20822 msgid ""
20823 " setcon context\n"
20824 "\n"
20825 msgstr ""
20826
20827 # type: =head2
20828 #: ../fish/guestfish-actions.pod:3517
20829 msgid "setxattr"
20830 msgstr ""
20831
20832 # type: verbatim
20833 #: ../fish/guestfish-actions.pod:3519
20834 #, no-wrap
20835 msgid ""
20836 " setxattr xattr val vallen path\n"
20837 "\n"
20838 msgstr ""
20839
20840 # type: textblock
20841 #: ../fish/guestfish-actions.pod:3525
20842 msgid "See also: L</lsetxattr>, L<attr(5)>."
20843 msgstr ""
20844
20845 # type: =head2
20846 #: ../fish/guestfish-actions.pod:3527
20847 msgid "sfdisk"
20848 msgstr ""
20849
20850 # type: verbatim
20851 #: ../fish/guestfish-actions.pod:3529
20852 #, no-wrap
20853 msgid ""
20854 " sfdisk device cyls heads sectors 'lines ...'\n"
20855 "\n"
20856 msgstr ""
20857
20858 # type: textblock
20859 #: ../fish/guestfish-actions.pod:3551
20860 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
20861 msgstr ""
20862
20863 # type: =head2
20864 #: ../fish/guestfish-actions.pod:3557
20865 msgid "sfdiskM"
20866 msgstr ""
20867
20868 # type: verbatim
20869 #: ../fish/guestfish-actions.pod:3559
20870 #, no-wrap
20871 msgid ""
20872 " sfdiskM device 'lines ...'\n"
20873 "\n"
20874 msgstr ""
20875
20876 # type: textblock
20877 #: ../fish/guestfish-actions.pod:3561
20878 msgid ""
20879 "This is a simplified interface to the L</sfdisk> command, where partition "
20880 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
20881 "you don't need to specify the cyls, heads and sectors parameters which were "
20882 "rarely if ever used anyway."
20883 msgstr ""
20884
20885 # type: textblock
20886 #: ../fish/guestfish-actions.pod:3567
20887 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
20888 msgstr ""
20889
20890 # type: =head2
20891 #: ../fish/guestfish-actions.pod:3573
20892 msgid "sfdisk-N"
20893 msgstr ""
20894
20895 # type: verbatim
20896 #: ../fish/guestfish-actions.pod:3575
20897 #, no-wrap
20898 msgid ""
20899 " sfdisk-N device partnum cyls heads sectors line\n"
20900 "\n"
20901 msgstr ""
20902
20903 # type: textblock
20904 #: ../fish/guestfish-actions.pod:3580
20905 msgid ""
20906 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
20907 "cyls/heads/sectors parameters."
20908 msgstr ""
20909
20910 # type: textblock
20911 #: ../fish/guestfish-actions.pod:3583
20912 msgid "See also: L</part-add>"
20913 msgstr ""
20914
20915 # type: =head2
20916 #: ../fish/guestfish-actions.pod:3588
20917 msgid "sfdisk-disk-geometry"
20918 msgstr ""
20919
20920 # type: verbatim
20921 #: ../fish/guestfish-actions.pod:3590
20922 #, no-wrap
20923 msgid ""
20924 " sfdisk-disk-geometry device\n"
20925 "\n"
20926 msgstr ""
20927
20928 # type: textblock
20929 #: ../fish/guestfish-actions.pod:3592
20930 msgid ""
20931 "This displays the disk geometry of C<device> read from the partition table.  "
20932 "Especially in the case where the underlying block device has been resized, "
20933 "this can be different from the kernel's idea of the geometry (see "
20934 "L</sfdisk-kernel-geometry>)."
20935 msgstr ""
20936
20937 # type: =head2
20938 #: ../fish/guestfish-actions.pod:3600
20939 msgid "sfdisk-kernel-geometry"
20940 msgstr ""
20941
20942 # type: verbatim
20943 #: ../fish/guestfish-actions.pod:3602
20944 #, no-wrap
20945 msgid ""
20946 " sfdisk-kernel-geometry device\n"
20947 "\n"
20948 msgstr ""
20949
20950 # type: =head2
20951 #: ../fish/guestfish-actions.pod:3609
20952 msgid "sfdisk-l"
20953 msgstr ""
20954
20955 # type: verbatim
20956 #: ../fish/guestfish-actions.pod:3611
20957 #, no-wrap
20958 msgid ""
20959 " sfdisk-l device\n"
20960 "\n"
20961 msgstr ""
20962
20963 # type: textblock
20964 #: ../fish/guestfish-actions.pod:3617
20965 msgid "See also: L</part-list>"
20966 msgstr ""
20967
20968 # type: =head2
20969 #: ../fish/guestfish-actions.pod:3619
20970 msgid "sh"
20971 msgstr ""
20972
20973 # type: verbatim
20974 #: ../fish/guestfish-actions.pod:3621
20975 #, no-wrap
20976 msgid ""
20977 " sh command\n"
20978 "\n"
20979 msgstr ""
20980
20981 # type: textblock
20982 #: ../fish/guestfish-actions.pod:3626
20983 msgid "This is like L</command>, but passes the command to:"
20984 msgstr ""
20985
20986 # type: textblock
20987 #: ../fish/guestfish-actions.pod:3634
20988 msgid "All the provisos about L</command> apply to this call."
20989 msgstr ""
20990
20991 # type: =head2
20992 #: ../fish/guestfish-actions.pod:3636
20993 msgid "sh-lines"
20994 msgstr ""
20995
20996 # type: verbatim
20997 #: ../fish/guestfish-actions.pod:3638
20998 #, no-wrap
20999 msgid ""
21000 " sh-lines command\n"
21001 "\n"
21002 msgstr ""
21003
21004 # type: textblock
21005 #: ../fish/guestfish-actions.pod:3640
21006 msgid "This is the same as L</sh>, but splits the result into a list of lines."
21007 msgstr ""
21008
21009 # type: textblock
21010 #: ../fish/guestfish-actions.pod:3643
21011 msgid "See also: L</command-lines>"
21012 msgstr ""
21013
21014 # type: =head2
21015 #: ../fish/guestfish-actions.pod:3645
21016 msgid "sleep"
21017 msgstr ""
21018
21019 # type: verbatim
21020 #: ../fish/guestfish-actions.pod:3647
21021 #, no-wrap
21022 msgid ""
21023 " sleep secs\n"
21024 "\n"
21025 msgstr ""
21026
21027 # type: =head2
21028 #: ../fish/guestfish-actions.pod:3651
21029 msgid "stat"
21030 msgstr ""
21031
21032 # type: verbatim
21033 #: ../fish/guestfish-actions.pod:3653
21034 #, no-wrap
21035 msgid ""
21036 " stat path\n"
21037 "\n"
21038 msgstr ""
21039
21040 # type: =head2
21041 #: ../fish/guestfish-actions.pod:3659
21042 msgid "statvfs"
21043 msgstr ""
21044
21045 # type: verbatim
21046 #: ../fish/guestfish-actions.pod:3661
21047 #, no-wrap
21048 msgid ""
21049 " statvfs path\n"
21050 "\n"
21051 msgstr ""
21052
21053 # type: =head2
21054 #: ../fish/guestfish-actions.pod:3669
21055 msgid "strings"
21056 msgstr ""
21057
21058 # type: verbatim
21059 #: ../fish/guestfish-actions.pod:3671
21060 #, no-wrap
21061 msgid ""
21062 " strings path\n"
21063 "\n"
21064 msgstr ""
21065
21066 # type: =head2
21067 #: ../fish/guestfish-actions.pod:3679
21068 msgid "strings-e"
21069 msgstr ""
21070
21071 # type: verbatim
21072 #: ../fish/guestfish-actions.pod:3681
21073 #, no-wrap
21074 msgid ""
21075 " strings-e encoding path\n"
21076 "\n"
21077 msgstr ""
21078
21079 # type: textblock
21080 #: ../fish/guestfish-actions.pod:3683
21081 msgid ""
21082 "This is like the L</strings> command, but allows you to specify the encoding "
21083 "of strings that are looked for in the source file C<path>."
21084 msgstr ""
21085
21086 # type: textblock
21087 #: ../fish/guestfish-actions.pod:3693
21088 msgid ""
21089 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
21090 "ISO-8859-X (this is what L</strings> uses)."
21091 msgstr ""
21092
21093 # type: =head2
21094 #: ../fish/guestfish-actions.pod:3725
21095 msgid "swapoff-device"
21096 msgstr ""
21097
21098 # type: verbatim
21099 #: ../fish/guestfish-actions.pod:3727
21100 #, no-wrap
21101 msgid ""
21102 " swapoff-device device\n"
21103 "\n"
21104 msgstr ""
21105
21106 # type: textblock
21107 #: ../fish/guestfish-actions.pod:3729
21108 msgid ""
21109 "This command disables the libguestfs appliance swap device or partition "
21110 "named C<device>.  See L</swapon-device>."
21111 msgstr ""
21112
21113 # type: =head2
21114 #: ../fish/guestfish-actions.pod:3733
21115 msgid "swapoff-file"
21116 msgstr ""
21117
21118 # type: verbatim
21119 #: ../fish/guestfish-actions.pod:3735
21120 #, no-wrap
21121 msgid ""
21122 " swapoff-file file\n"
21123 "\n"
21124 msgstr ""
21125
21126 # type: =head2
21127 #: ../fish/guestfish-actions.pod:3739
21128 msgid "swapoff-label"
21129 msgstr ""
21130
21131 # type: verbatim
21132 #: ../fish/guestfish-actions.pod:3741
21133 #, no-wrap
21134 msgid ""
21135 " swapoff-label label\n"
21136 "\n"
21137 msgstr ""
21138
21139 # type: =head2
21140 #: ../fish/guestfish-actions.pod:3746
21141 msgid "swapoff-uuid"
21142 msgstr ""
21143
21144 # type: verbatim
21145 #: ../fish/guestfish-actions.pod:3748
21146 #, no-wrap
21147 msgid ""
21148 " swapoff-uuid uuid\n"
21149 "\n"
21150 msgstr ""
21151
21152 # type: =head2
21153 #: ../fish/guestfish-actions.pod:3753
21154 msgid "swapon-device"
21155 msgstr ""
21156
21157 # type: verbatim
21158 #: ../fish/guestfish-actions.pod:3755
21159 #, no-wrap
21160 msgid ""
21161 " swapon-device device\n"
21162 "\n"
21163 msgstr ""
21164
21165 # type: textblock
21166 #: ../fish/guestfish-actions.pod:3757
21167 msgid ""
21168 "This command enables the libguestfs appliance to use the swap device or "
21169 "partition named C<device>.  The increased memory is made available for all "
21170 "commands, for example those run using L</command> or L</sh>."
21171 msgstr ""
21172
21173 # type: =head2
21174 #: ../fish/guestfish-actions.pod:3769
21175 msgid "swapon-file"
21176 msgstr ""
21177
21178 # type: verbatim
21179 #: ../fish/guestfish-actions.pod:3771
21180 #, no-wrap
21181 msgid ""
21182 " swapon-file file\n"
21183 "\n"
21184 msgstr ""
21185
21186 # type: textblock
21187 #: ../fish/guestfish-actions.pod:3773
21188 msgid "This command enables swap to a file.  See L</swapon-device> for other notes."
21189 msgstr ""
21190
21191 # type: =head2
21192 #: ../fish/guestfish-actions.pod:3776
21193 msgid "swapon-label"
21194 msgstr ""
21195
21196 # type: verbatim
21197 #: ../fish/guestfish-actions.pod:3778
21198 #, no-wrap
21199 msgid ""
21200 " swapon-label label\n"
21201 "\n"
21202 msgstr ""
21203
21204 # type: textblock
21205 #: ../fish/guestfish-actions.pod:3780
21206 msgid ""
21207 "This command enables swap to a labeled swap partition.  See "
21208 "L</swapon-device> for other notes."
21209 msgstr ""
21210
21211 # type: =head2
21212 #: ../fish/guestfish-actions.pod:3783
21213 msgid "swapon-uuid"
21214 msgstr ""
21215
21216 # type: verbatim
21217 #: ../fish/guestfish-actions.pod:3785
21218 #, no-wrap
21219 msgid ""
21220 " swapon-uuid uuid\n"
21221 "\n"
21222 msgstr ""
21223
21224 # type: textblock
21225 #: ../fish/guestfish-actions.pod:3787
21226 msgid ""
21227 "This command enables swap to a swap partition with the given UUID.  See "
21228 "L</swapon-device> for other notes."
21229 msgstr ""
21230
21231 # type: =head2
21232 #: ../fish/guestfish-actions.pod:3790
21233 msgid "sync"
21234 msgstr ""
21235
21236 # type: verbatim
21237 #: ../fish/guestfish-actions.pod:3792
21238 #, no-wrap
21239 msgid ""
21240 " sync\n"
21241 "\n"
21242 msgstr ""
21243
21244 # type: =head2
21245 #: ../fish/guestfish-actions.pod:3800
21246 msgid "tail"
21247 msgstr ""
21248
21249 # type: verbatim
21250 #: ../fish/guestfish-actions.pod:3802
21251 #, no-wrap
21252 msgid ""
21253 " tail path\n"
21254 "\n"
21255 msgstr ""
21256
21257 # type: =head2
21258 #: ../fish/guestfish-actions.pod:3810
21259 msgid "tail-n"
21260 msgstr ""
21261
21262 # type: verbatim
21263 #: ../fish/guestfish-actions.pod:3812
21264 #, no-wrap
21265 msgid ""
21266 " tail-n nrlines path\n"
21267 "\n"
21268 msgstr ""
21269
21270 # type: =head2
21271 #: ../fish/guestfish-actions.pod:3825
21272 msgid "tar-in"
21273 msgstr ""
21274
21275 # type: verbatim
21276 #: ../fish/guestfish-actions.pod:3827
21277 #, no-wrap
21278 msgid ""
21279 " tar-in (tarfile|-) directory\n"
21280 "\n"
21281 msgstr ""
21282
21283 # type: textblock
21284 #: ../fish/guestfish-actions.pod:3832
21285 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
21286 msgstr ""
21287
21288 # type: =head2
21289 #: ../fish/guestfish-actions.pod:3837
21290 msgid "tar-out"
21291 msgstr ""
21292
21293 # type: verbatim
21294 #: ../fish/guestfish-actions.pod:3839
21295 #, no-wrap
21296 msgid ""
21297 " tar-out directory (tarfile|-)\n"
21298 "\n"
21299 msgstr ""
21300
21301 # type: textblock
21302 #: ../fish/guestfish-actions.pod:3844
21303 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
21304 msgstr ""
21305
21306 # type: =head2
21307 #: ../fish/guestfish-actions.pod:3849
21308 msgid "tgz-in"
21309 msgstr ""
21310
21311 # type: verbatim
21312 #: ../fish/guestfish-actions.pod:3851
21313 #, no-wrap
21314 msgid ""
21315 " tgz-in (tarball|-) directory\n"
21316 "\n"
21317 msgstr ""
21318
21319 # type: textblock
21320 #: ../fish/guestfish-actions.pod:3856
21321 msgid "To upload an uncompressed tarball, use L</tar-in>."
21322 msgstr ""
21323
21324 # type: =head2
21325 #: ../fish/guestfish-actions.pod:3860
21326 msgid "tgz-out"
21327 msgstr ""
21328
21329 # type: verbatim
21330 #: ../fish/guestfish-actions.pod:3862
21331 #, no-wrap
21332 msgid ""
21333 " tgz-out directory (tarball|-)\n"
21334 "\n"
21335 msgstr ""
21336
21337 # type: textblock
21338 #: ../fish/guestfish-actions.pod:3867
21339 msgid "To download an uncompressed tarball, use L</tar-out>."
21340 msgstr ""
21341
21342 # type: =head2
21343 #: ../fish/guestfish-actions.pod:3871
21344 msgid "touch"
21345 msgstr ""
21346
21347 # type: verbatim
21348 #: ../fish/guestfish-actions.pod:3873
21349 #, no-wrap
21350 msgid ""
21351 " touch path\n"
21352 "\n"
21353 msgstr ""
21354
21355 # type: =head2
21356 #: ../fish/guestfish-actions.pod:3882
21357 msgid "truncate"
21358 msgstr ""
21359
21360 # type: verbatim
21361 #: ../fish/guestfish-actions.pod:3884
21362 #, no-wrap
21363 msgid ""
21364 " truncate path\n"
21365 "\n"
21366 msgstr ""
21367
21368 # type: =head2
21369 #: ../fish/guestfish-actions.pod:3889
21370 msgid "truncate-size"
21371 msgstr ""
21372
21373 # type: verbatim
21374 #: ../fish/guestfish-actions.pod:3891
21375 #, no-wrap
21376 msgid ""
21377 " truncate-size path size\n"
21378 "\n"
21379 msgstr ""
21380
21381 # type: textblock
21382 #: ../fish/guestfish-actions.pod:3896
21383 msgid ""
21384 "If the current file size is less than C<size> then the file is extended to "
21385 "the required size with zero bytes.  This creates a sparse file (ie. disk "
21386 "blocks are not allocated for the file until you write to it).  To create a "
21387 "non-sparse file of zeroes, use L</fallocate64> instead."
21388 msgstr ""
21389
21390 # type: =head2
21391 #: ../fish/guestfish-actions.pod:3902
21392 msgid "tune2fs-l"
21393 msgstr ""
21394
21395 # type: verbatim
21396 #: ../fish/guestfish-actions.pod:3904
21397 #, no-wrap
21398 msgid ""
21399 " tune2fs-l device\n"
21400 "\n"
21401 msgstr ""
21402
21403 # type: =head2
21404 #: ../fish/guestfish-actions.pod:3914
21405 msgid "txz-in"
21406 msgstr ""
21407
21408 # type: verbatim
21409 #: ../fish/guestfish-actions.pod:3916
21410 #, no-wrap
21411 msgid ""
21412 " txz-in (tarball|-) directory\n"
21413 "\n"
21414 msgstr ""
21415
21416 # type: =head2
21417 #: ../fish/guestfish-actions.pod:3923
21418 msgid "txz-out"
21419 msgstr ""
21420
21421 # type: verbatim
21422 #: ../fish/guestfish-actions.pod:3925
21423 #, no-wrap
21424 msgid ""
21425 " txz-out directory (tarball|-)\n"
21426 "\n"
21427 msgstr ""
21428
21429 # type: =head2
21430 #: ../fish/guestfish-actions.pod:3932
21431 msgid "umask"
21432 msgstr ""
21433
21434 # type: verbatim
21435 #: ../fish/guestfish-actions.pod:3934
21436 #, no-wrap
21437 msgid ""
21438 " umask mask\n"
21439 "\n"
21440 msgstr ""
21441
21442 # type: textblock
21443 #: ../fish/guestfish-actions.pod:3948
21444 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
21445 msgstr ""
21446
21447 # type: =head2
21448 #: ../fish/guestfish-actions.pod:3953
21449 msgid "umount"
21450 msgstr ""
21451
21452 # type: =head2
21453 #: ../fish/guestfish-actions.pod:3955
21454 msgid "unmount"
21455 msgstr ""
21456
21457 # type: verbatim
21458 #: ../fish/guestfish-actions.pod:3957
21459 #, no-wrap
21460 msgid ""
21461 " umount pathordevice\n"
21462 "\n"
21463 msgstr ""
21464
21465 # type: =head2
21466 #: ../fish/guestfish-actions.pod:3963
21467 msgid "umount-all"
21468 msgstr ""
21469
21470 # type: =head2
21471 #: ../fish/guestfish-actions.pod:3965
21472 msgid "unmount-all"
21473 msgstr ""
21474
21475 # type: verbatim
21476 #: ../fish/guestfish-actions.pod:3967
21477 #, no-wrap
21478 msgid ""
21479 " umount-all\n"
21480 "\n"
21481 msgstr ""
21482
21483 # type: =head2
21484 #: ../fish/guestfish-actions.pod:3973
21485 msgid "upload"
21486 msgstr ""
21487
21488 # type: verbatim
21489 #: ../fish/guestfish-actions.pod:3975
21490 #, no-wrap
21491 msgid ""
21492 " upload (filename|-) remotefilename\n"
21493 "\n"
21494 msgstr ""
21495
21496 # type: textblock
21497 #: ../fish/guestfish-actions.pod:3982
21498 msgid "See also L</download>."
21499 msgstr ""
21500
21501 # type: =head2
21502 #: ../fish/guestfish-actions.pod:3986
21503 msgid "upload-offset"
21504 msgstr ""
21505
21506 # type: verbatim
21507 #: ../fish/guestfish-actions.pod:3988
21508 #, no-wrap
21509 msgid ""
21510 " upload-offset (filename|-) remotefilename offset\n"
21511 "\n"
21512 msgstr ""
21513
21514 # type: textblock
21515 #: ../fish/guestfish-actions.pod:4000
21516 msgid ""
21517 "Note that there is no limit on the amount of data that can be uploaded with "
21518 "this call, unlike with L</pwrite>, and this call always writes the full "
21519 "amount unless an error occurs."
21520 msgstr ""
21521
21522 # type: textblock
21523 #: ../fish/guestfish-actions.pod:4005
21524 msgid "See also L</upload>, L</pwrite>."
21525 msgstr ""
21526
21527 # type: =head2
21528 #: ../fish/guestfish-actions.pod:4009
21529 msgid "utimens"
21530 msgstr ""
21531
21532 # type: verbatim
21533 #: ../fish/guestfish-actions.pod:4011
21534 #, no-wrap
21535 msgid ""
21536 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
21537 "\n"
21538 msgstr ""
21539
21540 # type: =head2
21541 #: ../fish/guestfish-actions.pod:4030
21542 msgid "version"
21543 msgstr ""
21544
21545 # type: verbatim
21546 #: ../fish/guestfish-actions.pod:4032
21547 #, no-wrap
21548 msgid ""
21549 " version\n"
21550 "\n"
21551 msgstr ""
21552
21553 # type: textblock
21554 #: ../fish/guestfish-actions.pod:4059
21555 msgid ""
21556 "I<Note:> Don't use this call to test for availability of features.  In "
21557 "enterprise distributions we backport features from later versions into "
21558 "earlier versions, making this an unreliable way to test for features.  Use "
21559 "L</available> instead."
21560 msgstr ""
21561
21562 # type: =head2
21563 #: ../fish/guestfish-actions.pod:4065
21564 msgid "vfs-label"
21565 msgstr ""
21566
21567 # type: verbatim
21568 #: ../fish/guestfish-actions.pod:4067
21569 #, no-wrap
21570 msgid ""
21571 " vfs-label device\n"
21572 "\n"
21573 msgstr ""
21574
21575 # type: textblock
21576 #: ../fish/guestfish-actions.pod:4074
21577 msgid "To find a filesystem from the label, use L</findfs-label>."
21578 msgstr ""
21579
21580 # type: =head2
21581 #: ../fish/guestfish-actions.pod:4076
21582 msgid "vfs-type"
21583 msgstr ""
21584
21585 # type: verbatim
21586 #: ../fish/guestfish-actions.pod:4078
21587 #, no-wrap
21588 msgid ""
21589 " vfs-type device\n"
21590 "\n"
21591 msgstr ""
21592
21593 # type: =head2
21594 #: ../fish/guestfish-actions.pod:4088
21595 msgid "vfs-uuid"
21596 msgstr ""
21597
21598 # type: verbatim
21599 #: ../fish/guestfish-actions.pod:4090
21600 #, no-wrap
21601 msgid ""
21602 " vfs-uuid device\n"
21603 "\n"
21604 msgstr ""
21605
21606 # type: textblock
21607 #: ../fish/guestfish-actions.pod:4097
21608 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
21609 msgstr ""
21610
21611 # type: =head2
21612 #: ../fish/guestfish-actions.pod:4099
21613 msgid "vg-activate"
21614 msgstr ""
21615
21616 # type: verbatim
21617 #: ../fish/guestfish-actions.pod:4101
21618 #, no-wrap
21619 msgid ""
21620 " vg-activate true|false 'volgroups ...'\n"
21621 "\n"
21622 msgstr ""
21623
21624 # type: =head2
21625 #: ../fish/guestfish-actions.pod:4114
21626 msgid "vg-activate-all"
21627 msgstr ""
21628
21629 # type: verbatim
21630 #: ../fish/guestfish-actions.pod:4116
21631 #, no-wrap
21632 msgid ""
21633 " vg-activate-all true|false\n"
21634 "\n"
21635 msgstr ""
21636
21637 # type: =head2
21638 #: ../fish/guestfish-actions.pod:4126
21639 msgid "vgcreate"
21640 msgstr ""
21641
21642 # type: verbatim
21643 #: ../fish/guestfish-actions.pod:4128
21644 #, no-wrap
21645 msgid ""
21646 " vgcreate volgroup 'physvols ...'\n"
21647 "\n"
21648 msgstr ""
21649
21650 # type: =head2
21651 #: ../fish/guestfish-actions.pod:4133
21652 msgid "vglvuuids"
21653 msgstr ""
21654
21655 # type: verbatim
21656 #: ../fish/guestfish-actions.pod:4135
21657 #, no-wrap
21658 msgid ""
21659 " vglvuuids vgname\n"
21660 "\n"
21661 msgstr ""
21662
21663 # type: textblock
21664 #: ../fish/guestfish-actions.pod:4140
21665 msgid ""
21666 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
21667 "logical volumes and volume groups."
21668 msgstr ""
21669
21670 # type: textblock
21671 #: ../fish/guestfish-actions.pod:4143
21672 msgid "See also L</vgpvuuids>."
21673 msgstr ""
21674
21675 # type: =head2
21676 #: ../fish/guestfish-actions.pod:4145
21677 msgid "vgpvuuids"
21678 msgstr ""
21679
21680 # type: verbatim
21681 #: ../fish/guestfish-actions.pod:4147
21682 #, no-wrap
21683 msgid ""
21684 " vgpvuuids vgname\n"
21685 "\n"
21686 msgstr ""
21687
21688 # type: textblock
21689 #: ../fish/guestfish-actions.pod:4152
21690 msgid ""
21691 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
21692 "physical volumes and volume groups."
21693 msgstr ""
21694
21695 # type: textblock
21696 #: ../fish/guestfish-actions.pod:4155
21697 msgid "See also L</vglvuuids>."
21698 msgstr ""
21699
21700 # type: =head2
21701 #: ../fish/guestfish-actions.pod:4157
21702 msgid "vgremove"
21703 msgstr ""
21704
21705 # type: verbatim
21706 #: ../fish/guestfish-actions.pod:4159
21707 #, no-wrap
21708 msgid ""
21709 " vgremove vgname\n"
21710 "\n"
21711 msgstr ""
21712
21713 # type: =head2
21714 #: ../fish/guestfish-actions.pod:4166
21715 msgid "vgrename"
21716 msgstr ""
21717
21718 # type: verbatim
21719 #: ../fish/guestfish-actions.pod:4168
21720 #, no-wrap
21721 msgid ""
21722 " vgrename volgroup newvolgroup\n"
21723 "\n"
21724 msgstr ""
21725
21726 # type: =head2
21727 #: ../fish/guestfish-actions.pod:4172
21728 msgid "vgs"
21729 msgstr ""
21730
21731 # type: verbatim
21732 #: ../fish/guestfish-actions.pod:4174
21733 #, no-wrap
21734 msgid ""
21735 " vgs\n"
21736 "\n"
21737 msgstr ""
21738
21739 # type: textblock
21740 #: ../fish/guestfish-actions.pod:4182
21741 msgid "See also L</vgs-full>."
21742 msgstr ""
21743
21744 # type: =head2
21745 #: ../fish/guestfish-actions.pod:4184
21746 msgid "vgs-full"
21747 msgstr ""
21748
21749 # type: verbatim
21750 #: ../fish/guestfish-actions.pod:4186
21751 #, no-wrap
21752 msgid ""
21753 " vgs-full\n"
21754 "\n"
21755 msgstr ""
21756
21757 # type: =head2
21758 #: ../fish/guestfish-actions.pod:4191
21759 msgid "vgscan"
21760 msgstr ""
21761
21762 # type: verbatim
21763 #: ../fish/guestfish-actions.pod:4193
21764 #, no-wrap
21765 msgid ""
21766 " vgscan\n"
21767 "\n"
21768 msgstr ""
21769
21770 # type: =head2
21771 #: ../fish/guestfish-actions.pod:4198
21772 msgid "vguuid"
21773 msgstr ""
21774
21775 # type: verbatim
21776 #: ../fish/guestfish-actions.pod:4200
21777 #, no-wrap
21778 msgid ""
21779 " vguuid vgname\n"
21780 "\n"
21781 msgstr ""
21782
21783 # type: =head2
21784 #: ../fish/guestfish-actions.pod:4204
21785 msgid "wc-c"
21786 msgstr ""
21787
21788 # type: verbatim
21789 #: ../fish/guestfish-actions.pod:4206
21790 #, no-wrap
21791 msgid ""
21792 " wc-c path\n"
21793 "\n"
21794 msgstr ""
21795
21796 # type: =head2
21797 #: ../fish/guestfish-actions.pod:4211
21798 msgid "wc-l"
21799 msgstr ""
21800
21801 # type: verbatim
21802 #: ../fish/guestfish-actions.pod:4213
21803 #, no-wrap
21804 msgid ""
21805 " wc-l path\n"
21806 "\n"
21807 msgstr ""
21808
21809 # type: =head2
21810 #: ../fish/guestfish-actions.pod:4218
21811 msgid "wc-w"
21812 msgstr ""
21813
21814 # type: verbatim
21815 #: ../fish/guestfish-actions.pod:4220
21816 #, no-wrap
21817 msgid ""
21818 " wc-w path\n"
21819 "\n"
21820 msgstr ""
21821
21822 # type: =head2
21823 #: ../fish/guestfish-actions.pod:4225
21824 msgid "write"
21825 msgstr ""
21826
21827 # type: verbatim
21828 #: ../fish/guestfish-actions.pod:4227
21829 #, no-wrap
21830 msgid ""
21831 " write path content\n"
21832 "\n"
21833 msgstr ""
21834
21835 # type: =head2
21836 #: ../fish/guestfish-actions.pod:4235
21837 msgid "write-file"
21838 msgstr ""
21839
21840 # type: verbatim
21841 #: ../fish/guestfish-actions.pod:4237
21842 #, no-wrap
21843 msgid ""
21844 " write-file path content size\n"
21845 "\n"
21846 msgstr ""
21847
21848 # type: =head2
21849 #: ../fish/guestfish-actions.pod:4260
21850 msgid "zegrep"
21851 msgstr ""
21852
21853 # type: verbatim
21854 #: ../fish/guestfish-actions.pod:4262
21855 #, no-wrap
21856 msgid ""
21857 " zegrep regex path\n"
21858 "\n"
21859 msgstr ""
21860
21861 # type: =head2
21862 #: ../fish/guestfish-actions.pod:4270
21863 msgid "zegrepi"
21864 msgstr ""
21865
21866 # type: verbatim
21867 #: ../fish/guestfish-actions.pod:4272
21868 #, no-wrap
21869 msgid ""
21870 " zegrepi regex path\n"
21871 "\n"
21872 msgstr ""
21873
21874 # type: =head2
21875 #: ../fish/guestfish-actions.pod:4280
21876 msgid "zero"
21877 msgstr ""
21878
21879 # type: verbatim
21880 #: ../fish/guestfish-actions.pod:4282
21881 #, no-wrap
21882 msgid ""
21883 " zero device\n"
21884 "\n"
21885 msgstr ""
21886
21887 # type: textblock
21888 #: ../fish/guestfish-actions.pod:4290
21889 msgid "See also: L</zero-device>, L</scrub-device>."
21890 msgstr ""
21891
21892 # type: =head2
21893 #: ../fish/guestfish-actions.pod:4292
21894 msgid "zero-device"
21895 msgstr ""
21896
21897 # type: verbatim
21898 #: ../fish/guestfish-actions.pod:4294
21899 #, no-wrap
21900 msgid ""
21901 " zero-device device\n"
21902 "\n"
21903 msgstr ""
21904
21905 # type: textblock
21906 #: ../fish/guestfish-actions.pod:4296
21907 msgid ""
21908 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
21909 "which just zeroes the first few blocks of a device."
21910 msgstr ""
21911
21912 # type: =head2
21913 #: ../fish/guestfish-actions.pod:4303
21914 msgid "zerofree"
21915 msgstr ""
21916
21917 # type: verbatim
21918 #: ../fish/guestfish-actions.pod:4305
21919 #, no-wrap
21920 msgid ""
21921 " zerofree device\n"
21922 "\n"
21923 msgstr ""
21924
21925 # type: =head2
21926 #: ../fish/guestfish-actions.pod:4318
21927 msgid "zfgrep"
21928 msgstr ""
21929
21930 # type: verbatim
21931 #: ../fish/guestfish-actions.pod:4320
21932 #, no-wrap
21933 msgid ""
21934 " zfgrep pattern path\n"
21935 "\n"
21936 msgstr ""
21937
21938 # type: =head2
21939 #: ../fish/guestfish-actions.pod:4328
21940 msgid "zfgrepi"
21941 msgstr ""
21942
21943 # type: verbatim
21944 #: ../fish/guestfish-actions.pod:4330
21945 #, no-wrap
21946 msgid ""
21947 " zfgrepi pattern path\n"
21948 "\n"
21949 msgstr ""
21950
21951 # type: =head2
21952 #: ../fish/guestfish-actions.pod:4338
21953 msgid "zfile"
21954 msgstr ""
21955
21956 # type: verbatim
21957 #: ../fish/guestfish-actions.pod:4340
21958 #, no-wrap
21959 msgid ""
21960 " zfile meth path\n"
21961 "\n"
21962 msgstr ""
21963
21964 # type: textblock
21965 #: ../fish/guestfish-actions.pod:4347
21966 msgid "Since 1.0.63, use L</file> instead which can now process compressed files."
21967 msgstr ""
21968
21969 # type: =head2
21970 #: ../fish/guestfish-actions.pod:4357
21971 msgid "zgrep"
21972 msgstr ""
21973
21974 # type: verbatim
21975 #: ../fish/guestfish-actions.pod:4359
21976 #, no-wrap
21977 msgid ""
21978 " zgrep regex path\n"
21979 "\n"
21980 msgstr ""
21981
21982 # type: =head2
21983 #: ../fish/guestfish-actions.pod:4367
21984 msgid "zgrepi"
21985 msgstr ""
21986
21987 # type: verbatim
21988 #: ../fish/guestfish-actions.pod:4369
21989 #, no-wrap
21990 msgid ""
21991 " zgrepi regex path\n"
21992 "\n"
21993 msgstr ""
21994
21995 # type: =head2
21996 #: ../fish/guestfish-commands.pod:1
21997 msgid "alloc"
21998 msgstr ""
21999
22000 # type: =head2
22001 #: ../fish/guestfish-commands.pod:3
22002 msgid "allocate"
22003 msgstr ""
22004
22005 # type: verbatim
22006 #: ../fish/guestfish-commands.pod:5
22007 #, no-wrap
22008 msgid ""
22009 " alloc filename size\n"
22010 "\n"
22011 msgstr ""
22012
22013 # type: textblock
22014 #: ../fish/guestfish-commands.pod:7
22015 msgid ""
22016 "This creates an empty (zeroed) file of the given size, and then adds so it "
22017 "can be further examined."
22018 msgstr ""
22019
22020 # type: textblock
22021 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:168
22022 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
22023 msgstr ""
22024
22025 # type: textblock
22026 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:170
22027 msgid "Size can be specified using standard suffixes, eg. C<1M>."
22028 msgstr ""
22029
22030 # type: textblock
22031 #: ../fish/guestfish-commands.pod:14
22032 msgid ""
22033 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
22034 "image, see L</PREPARED DISK IMAGES>."
22035 msgstr ""
22036
22037 # type: =head2
22038 #: ../fish/guestfish-commands.pod:17
22039 msgid "copy-in"
22040 msgstr ""
22041
22042 # type: verbatim
22043 #: ../fish/guestfish-commands.pod:19
22044 #, no-wrap
22045 msgid ""
22046 " copy-in local [local ...] /remotedir\n"
22047 "\n"
22048 msgstr ""
22049
22050 # type: textblock
22051 #: ../fish/guestfish-commands.pod:21
22052 msgid ""
22053 "C<copy-in> copies local files or directories recursively into the disk "
22054 "image, placing them in the directory called C</remotedir> (which must "
22055 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
22056 "other commands as necessary."
22057 msgstr ""
22058
22059 # type: textblock
22060 #: ../fish/guestfish-commands.pod:26
22061 msgid ""
22062 "Multiple local files and directories can be specified, but the last "
22063 "parameter must always be a remote directory.  Wildcards cannot be used."
22064 msgstr ""
22065
22066 # type: =head2
22067 #: ../fish/guestfish-commands.pod:30
22068 msgid "copy-out"
22069 msgstr ""
22070
22071 # type: verbatim
22072 #: ../fish/guestfish-commands.pod:32
22073 #, no-wrap
22074 msgid ""
22075 " copy-out remote [remote ...] localdir\n"
22076 "\n"
22077 msgstr ""
22078
22079 # type: textblock
22080 #: ../fish/guestfish-commands.pod:34
22081 msgid ""
22082 "C<copy-out> copies remote files or directories recursively out of the disk "
22083 "image, placing them on the host disk in a local directory called C<localdir> "
22084 "(which must exist).  This guestfish meta-command turns into a sequence of "
22085 "L</download>, L</tar-out> and other commands as necessary."
22086 msgstr ""
22087
22088 # type: textblock
22089 #: ../fish/guestfish-commands.pod:40
22090 msgid ""
22091 "Multiple remote files and directories can be specified, but the last "
22092 "parameter must always be a local directory.  To download to the current "
22093 "directory, use C<.> as in:"
22094 msgstr ""
22095
22096 # type: verbatim
22097 #: ../fish/guestfish-commands.pod:44
22098 #, no-wrap
22099 msgid ""
22100 " copy-out /home .\n"
22101 "\n"
22102 msgstr ""
22103
22104 # type: textblock
22105 #: ../fish/guestfish-commands.pod:46
22106 msgid ""
22107 "Wildcards cannot be used in the ordinary command, but you can use them with "
22108 "the help of L</glob> like this:"
22109 msgstr ""
22110
22111 # type: verbatim
22112 #: ../fish/guestfish-commands.pod:49
22113 #, no-wrap
22114 msgid ""
22115 " glob copy-out /home/* .\n"
22116 "\n"
22117 msgstr ""
22118
22119 # type: =head2
22120 #: ../fish/guestfish-commands.pod:51
22121 msgid "echo"
22122 msgstr ""
22123
22124 # type: verbatim
22125 #: ../fish/guestfish-commands.pod:53
22126 #, no-wrap
22127 msgid ""
22128 " echo [params ...]\n"
22129 "\n"
22130 msgstr ""
22131
22132 # type: textblock
22133 #: ../fish/guestfish-commands.pod:55
22134 msgid "This echos the parameters to the terminal."
22135 msgstr ""
22136
22137 # type: =head2
22138 #: ../fish/guestfish-commands.pod:57
22139 msgid "edit"
22140 msgstr ""
22141
22142 # type: =head2
22143 #: ../fish/guestfish-commands.pod:59
22144 msgid "vi"
22145 msgstr ""
22146
22147 # type: =head2
22148 #: ../fish/guestfish-commands.pod:61
22149 msgid "emacs"
22150 msgstr ""
22151
22152 # type: verbatim
22153 #: ../fish/guestfish-commands.pod:63
22154 #, no-wrap
22155 msgid ""
22156 " edit filename\n"
22157 "\n"
22158 msgstr ""
22159
22160 # type: textblock
22161 #: ../fish/guestfish-commands.pod:65
22162 msgid ""
22163 "This is used to edit a file.  It downloads the file, edits it locally using "
22164 "your editor, then uploads the result."
22165 msgstr ""
22166
22167 # type: textblock
22168 #: ../fish/guestfish-commands.pod:68
22169 msgid ""
22170 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
22171 "or C<emacs> you will get those corresponding editors."
22172 msgstr ""
22173
22174 # type: =head2
22175 #: ../fish/guestfish-commands.pod:72
22176 msgid "glob"
22177 msgstr ""
22178
22179 # type: verbatim
22180 #: ../fish/guestfish-commands.pod:74
22181 #, no-wrap
22182 msgid ""
22183 " glob command args...\n"
22184 "\n"
22185 msgstr ""
22186
22187 # type: textblock
22188 #: ../fish/guestfish-commands.pod:76
22189 msgid ""
22190 "Expand wildcards in any paths in the args list, and run C<command> "
22191 "repeatedly on each matching path."
22192 msgstr ""
22193
22194 # type: textblock
22195 #: ../fish/guestfish-commands.pod:79
22196 msgid "See L</WILDCARDS AND GLOBBING>."
22197 msgstr ""
22198
22199 # type: =head2
22200 #: ../fish/guestfish-commands.pod:81
22201 msgid "hexedit"
22202 msgstr ""
22203
22204 # type: verbatim
22205 #: ../fish/guestfish-commands.pod:83
22206 #, no-wrap
22207 msgid ""
22208 " hexedit <filename|device>\n"
22209 " hexedit <filename|device> <max>\n"
22210 " hexedit <filename|device> <start> <max>\n"
22211 "\n"
22212 msgstr ""
22213
22214 # type: textblock
22215 #: ../fish/guestfish-commands.pod:87
22216 msgid ""
22217 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
22218 "device."
22219 msgstr ""
22220
22221 # type: textblock
22222 #: ../fish/guestfish-commands.pod:90
22223 msgid ""
22224 "This command works by downloading potentially the whole file or device, "
22225 "editing it locally, then uploading it.  If the file or device is large, you "
22226 "have to specify which part you wish to edit by using C<max> and/or C<start> "
22227 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
22228 "usual modifiers allowed such as C<1M> (1 megabyte)."
22229 msgstr ""
22230
22231 # type: textblock
22232 #: ../fish/guestfish-commands.pod:97
22233 msgid "For example to edit the first few sectors of a disk you might do:"
22234 msgstr ""
22235
22236 # type: verbatim
22237 #: ../fish/guestfish-commands.pod:100
22238 #, no-wrap
22239 msgid ""
22240 " hexedit /dev/sda 1M\n"
22241 "\n"
22242 msgstr ""
22243
22244 # type: textblock
22245 #: ../fish/guestfish-commands.pod:102
22246 msgid ""
22247 "which would allow you to edit anywhere within the first megabyte of the "
22248 "disk."
22249 msgstr ""
22250
22251 # type: textblock
22252 #: ../fish/guestfish-commands.pod:105
22253 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
22254 msgstr ""
22255
22256 # type: verbatim
22257 #: ../fish/guestfish-commands.pod:107
22258 #, no-wrap
22259 msgid ""
22260 " hexedit /dev/sda1 0x400 0x400\n"
22261 "\n"
22262 msgstr ""
22263
22264 # type: textblock
22265 #: ../fish/guestfish-commands.pod:109
22266 msgid "(assuming the superblock is in the standard location)."
22267 msgstr ""
22268
22269 # type: textblock
22270 #: ../fish/guestfish-commands.pod:111
22271 msgid ""
22272 "This command requires the external L<hexedit(1)> program.  You can specify "
22273 "another program to use by setting the C<HEXEDITOR> environment variable."
22274 msgstr ""
22275
22276 # type: textblock
22277 #: ../fish/guestfish-commands.pod:115
22278 msgid "See also L</hexdump>."
22279 msgstr ""
22280
22281 # type: =head2
22282 #: ../fish/guestfish-commands.pod:117
22283 msgid "lcd"
22284 msgstr ""
22285
22286 # type: verbatim
22287 #: ../fish/guestfish-commands.pod:119
22288 #, no-wrap
22289 msgid ""
22290 " lcd directory\n"
22291 "\n"
22292 msgstr ""
22293
22294 # type: textblock
22295 #: ../fish/guestfish-commands.pod:121
22296 msgid "Change the local directory, ie. the current directory of guestfish itself."
22297 msgstr ""
22298
22299 # type: textblock
22300 #: ../fish/guestfish-commands.pod:124
22301 msgid "Note that C<!cd> won't do what you might expect."
22302 msgstr ""
22303
22304 # type: =head2
22305 #: ../fish/guestfish-commands.pod:126
22306 msgid "man"
22307 msgstr ""
22308
22309 # type: =head2
22310 #: ../fish/guestfish-commands.pod:128
22311 msgid "manual"
22312 msgstr ""
22313
22314 # type: verbatim
22315 #: ../fish/guestfish-commands.pod:130
22316 #, no-wrap
22317 msgid ""
22318 "  man\n"
22319 "\n"
22320 msgstr ""
22321
22322 # type: textblock
22323 #: ../fish/guestfish-commands.pod:132
22324 msgid "Opens the manual page for guestfish."
22325 msgstr ""
22326
22327 # type: =head2
22328 #: ../fish/guestfish-commands.pod:134
22329 msgid "more"
22330 msgstr ""
22331
22332 # type: =head2
22333 #: ../fish/guestfish-commands.pod:136
22334 msgid "less"
22335 msgstr ""
22336
22337 # type: verbatim
22338 #: ../fish/guestfish-commands.pod:138
22339 #, no-wrap
22340 msgid ""
22341 " more filename\n"
22342 "\n"
22343 msgstr ""
22344
22345 # type: verbatim
22346 #: ../fish/guestfish-commands.pod:140
22347 #, no-wrap
22348 msgid ""
22349 " less filename\n"
22350 "\n"
22351 msgstr ""
22352
22353 # type: textblock
22354 #: ../fish/guestfish-commands.pod:142
22355 msgid "This is used to view a file."
22356 msgstr ""
22357
22358 # type: textblock
22359 #: ../fish/guestfish-commands.pod:144
22360 msgid ""
22361 "The default viewer is C<$PAGER>.  However if you use the alternate command "
22362 "C<less> you will get the C<less> command specifically."
22363 msgstr ""
22364
22365 # type: =head2
22366 #: ../fish/guestfish-commands.pod:147
22367 msgid "reopen"
22368 msgstr ""
22369
22370 # type: verbatim
22371 #: ../fish/guestfish-commands.pod:149
22372 #, no-wrap
22373 msgid ""
22374 "  reopen\n"
22375 "\n"
22376 msgstr ""
22377
22378 # type: textblock
22379 #: ../fish/guestfish-commands.pod:151
22380 msgid ""
22381 "Close and reopen the libguestfs handle.  It is not necessary to use this "
22382 "normally, because the handle is closed properly when guestfish exits.  "
22383 "However this is occasionally useful for testing."
22384 msgstr ""
22385
22386 # type: =head2
22387 #: ../fish/guestfish-commands.pod:155
22388 msgid "sparse"
22389 msgstr ""
22390
22391 # type: verbatim
22392 #: ../fish/guestfish-commands.pod:157
22393 #, no-wrap
22394 msgid ""
22395 " sparse filename size\n"
22396 "\n"
22397 msgstr ""
22398
22399 # type: textblock
22400 #: ../fish/guestfish-commands.pod:159
22401 msgid ""
22402 "This creates an empty sparse file of the given size, and then adds so it can "
22403 "be further examined."
22404 msgstr ""
22405
22406 # type: textblock
22407 #: ../fish/guestfish-commands.pod:162
22408 msgid ""
22409 "In all respects it works the same as the L</alloc> command, except that the "
22410 "image file is allocated sparsely, which means that disk blocks are not "
22411 "assigned to the file until they are needed.  Sparse disk files only use "
22412 "space when written to, but they are slower and there is a danger you could "
22413 "run out of real disk space during a write operation."
22414 msgstr ""
22415
22416 # type: =head2
22417 #: ../fish/guestfish-commands.pod:172
22418 msgid "supported"
22419 msgstr ""
22420
22421 # type: verbatim
22422 #: ../fish/guestfish-commands.pod:174
22423 #, no-wrap
22424 msgid ""
22425 " supported\n"
22426 "\n"
22427 msgstr ""
22428
22429 # type: textblock
22430 #: ../fish/guestfish-commands.pod:176
22431 msgid ""
22432 "This command returns a list of the optional groups known to the daemon, and "
22433 "indicates which ones are supported by this build of the libguestfs "
22434 "appliance."
22435 msgstr ""
22436
22437 # type: textblock
22438 #: ../fish/guestfish-commands.pod:180
22439 msgid "See also L<guestfs(3)/AVAILABILITY>."
22440 msgstr ""
22441
22442 # type: =head2
22443 #: ../fish/guestfish-commands.pod:182
22444 msgid "time"
22445 msgstr ""
22446
22447 # type: verbatim
22448 #: ../fish/guestfish-commands.pod:184
22449 #, no-wrap
22450 msgid ""
22451 " time command args...\n"
22452 "\n"
22453 msgstr ""
22454
22455 # type: textblock
22456 #: ../fish/guestfish-commands.pod:186
22457 msgid ""
22458 "Run the command as usual, but print the elapsed time afterwards.  This can "
22459 "be useful for benchmarking operations."
22460 msgstr ""
22461
22462 # type: textblock
22463 #: ../test-tool/libguestfs-test-tool.pod:5
22464 msgid "libguestfs-test-tool - End user tests for libguestfs"
22465 msgstr ""
22466
22467 # type: verbatim
22468 #: ../test-tool/libguestfs-test-tool.pod:9
22469 #, no-wrap
22470 msgid ""
22471 " libguestfs-test-tool [--options]\n"
22472 "\n"
22473 msgstr ""
22474
22475 # type: textblock
22476 #: ../test-tool/libguestfs-test-tool.pod:13
22477 msgid ""
22478 "libguestfs-test-tool is a test program shipped with libguestfs to end users "
22479 "and developers, to allow them to check basic libguestfs functionality is "
22480 "working.  This is needed because libguestfs occasionally breaks for reasons "
22481 "beyond our control: usually because of changes in the underlying qemu or "
22482 "kernel packages, or the host environment."
22483 msgstr ""
22484
22485 # type: textblock
22486 #: ../test-tool/libguestfs-test-tool.pod:20
22487 msgid "If you suspect a problem in libguestfs, then just run:"
22488 msgstr ""
22489
22490 # type: verbatim
22491 #: ../test-tool/libguestfs-test-tool.pod:22
22492 #, no-wrap
22493 msgid ""
22494 " libguestfs-test-tool\n"
22495 "\n"
22496 msgstr ""
22497
22498 # type: textblock
22499 #: ../test-tool/libguestfs-test-tool.pod:24
22500 msgid "It will print lots of diagnostic messages."
22501 msgstr ""
22502
22503 # type: textblock
22504 #: ../test-tool/libguestfs-test-tool.pod:26
22505 msgid "If it runs to completion successfully, you will see this near the end:"
22506 msgstr ""
22507
22508 # type: verbatim
22509 #: ../test-tool/libguestfs-test-tool.pod:28
22510 #, no-wrap
22511 msgid ""
22512 " ===== TEST FINISHED OK =====\n"
22513 "\n"
22514 msgstr ""
22515
22516 # type: textblock
22517 #: ../test-tool/libguestfs-test-tool.pod:30
22518 msgid "and the test tool will exit with code 0."
22519 msgstr ""
22520
22521 # type: textblock
22522 #: ../test-tool/libguestfs-test-tool.pod:32
22523 msgid ""
22524 "If it fails (and/or exits with non-zero error code), please paste the "
22525 "B<complete, unedited> output of the test tool into a bug report.  More "
22526 "information about reporting bugs can be found on the "
22527 "L<http://libguestfs.org/> website."
22528 msgstr ""
22529
22530 # type: =item
22531 #: ../test-tool/libguestfs-test-tool.pod:41
22532 msgid "I<--help>"
22533 msgstr ""
22534
22535 # type: textblock
22536 #: ../test-tool/libguestfs-test-tool.pod:43
22537 msgid "Display short usage information and exit."
22538 msgstr ""
22539
22540 # type: =item
22541 #: ../test-tool/libguestfs-test-tool.pod:45
22542 msgid "I<--helper /path/to/libguestfs-test-tool-helper>"
22543 msgstr ""
22544
22545 # type: textblock
22546 #: ../test-tool/libguestfs-test-tool.pod:47
22547 msgid ""
22548 "Pass an alternate name for the helper program.  libguestfs-test-tool will "
22549 "normally look in the C<$libexec> directory that was configured when the tool "
22550 "was built."
22551 msgstr ""
22552
22553 # type: =item
22554 #: ../test-tool/libguestfs-test-tool.pod:51
22555 msgid "I<--qemu qemu_binary>"
22556 msgstr ""
22557
22558 # type: textblock
22559 #: ../test-tool/libguestfs-test-tool.pod:53
22560 msgid ""
22561 "If you have downloaded another qemu binary, point this option at the full "
22562 "path of the binary to try it."
22563 msgstr ""
22564
22565 # type: =item
22566 #: ../test-tool/libguestfs-test-tool.pod:56
22567 msgid "I<--qemudir qemu_source_dir>"
22568 msgstr ""
22569
22570 # type: textblock
22571 #: ../test-tool/libguestfs-test-tool.pod:58
22572 msgid ""
22573 "If you have compiled qemu from source, point this option at the source "
22574 "directory to try it."
22575 msgstr ""
22576
22577 # type: =item
22578 #: ../test-tool/libguestfs-test-tool.pod:61
22579 msgid "I<--timeout N>"
22580 msgstr ""
22581
22582 # type: textblock
22583 #: ../test-tool/libguestfs-test-tool.pod:63
22584 msgid ""
22585 "Set the launch timeout to C<N> seconds.  The default is 120 seconds which "
22586 "does not usually need to be adjusted unless your machine is very slow."
22587 msgstr ""
22588
22589 # type: =head1
22590 #: ../test-tool/libguestfs-test-tool.pod:69
22591 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
22592 msgstr ""
22593
22594 # type: textblock
22595 #: ../test-tool/libguestfs-test-tool.pod:71
22596 msgid ""
22597 "If you have compiled another version of qemu from source and would like to "
22598 "try that, then you can use the I<--qemudir> option to point to the qemu "
22599 "source directory."
22600 msgstr ""
22601
22602 # type: textblock
22603 #: ../test-tool/libguestfs-test-tool.pod:75
22604 msgid ""
22605 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
22606 "option to point to the binary."
22607 msgstr ""
22608
22609 # type: textblock
22610 #: ../test-tool/libguestfs-test-tool.pod:78
22611 msgid ""
22612 "When using an alternate qemu with libguestfs, usually you would need to "
22613 "write a qemu wrapper script (see section I<QEMU WRAPPERS> in "
22614 "L<guestfs(3)>).  libguestfs-test-tool writes a temporary qemu wrapper script "
22615 "when you use either of the I<--qemudir> or I<--qemu> options."
22616 msgstr ""
22617
22618 # type: textblock
22619 #: ../test-tool/libguestfs-test-tool.pod:85
22620 msgid ""
22621 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
22622 "I<1> if there was an error."
22623 msgstr ""
22624
22625 # type: =item
22626 #: ../test-tool/libguestfs-test-tool.pod:92
22627 msgid "/usr/libexec/libguestfs-test-tool-helper"
22628 msgstr ""
22629
22630 # type: textblock
22631 #: ../test-tool/libguestfs-test-tool.pod:94
22632 msgid ""
22633 "This helper program is run inside the appliance and provides additional "
22634 "tests."
22635 msgstr ""
22636
22637 # type: =item
22638 #: ../test-tool/libguestfs-test-tool.pod:97
22639 msgid "/usr/bin/mkisofs"
22640 msgstr ""
22641
22642 # type: textblock
22643 #: ../test-tool/libguestfs-test-tool.pod:99
22644 msgid ""
22645 "The C<mkisofs> command is required in order to construct a CD-ROM ISO file "
22646 "which is used as part of the tests."
22647 msgstr ""
22648
22649 # type: textblock
22650 #: ../test-tool/libguestfs-test-tool.pod:106
22651 msgid ""
22652 "For the full list of environment variables which may affect libguestfs, "
22653 "please see the L<guestfs(3)> manual page."
22654 msgstr ""
22655
22656 # type: textblock
22657 #: ../test-tool/libguestfs-test-tool.pod:111
22658 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
22659 msgstr ""
22660
22661 # type: textblock
22662 #: ../test-tool/libguestfs-test-tool.pod:121 ../fuse/guestmount.pod:195
22663 msgid "Copyright (C) 2009 Red Hat Inc.  L<http://libguestfs.org/>"
22664 msgstr ""
22665
22666 # type: textblock
22667 #: ../fuse/guestmount.pod:5
22668 msgid "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
22669 msgstr ""
22670
22671 # type: verbatim
22672 #: ../fuse/guestmount.pod:9
22673 #, no-wrap
22674 msgid ""
22675 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
22676 "\n"
22677 msgstr ""
22678
22679 # type: textblock
22680 #: ../fuse/guestmount.pod:13
22681 msgid ""
22682 "You must I<not> use C<guestmount> in read-write mode on live virtual "
22683 "machines.  If you do this, you risk disk corruption in the VM."
22684 msgstr ""
22685
22686 # type: textblock
22687 #: ../fuse/guestmount.pod:18
22688 msgid ""
22689 "The guestmount program can be used to mount virtual machine filesystems and "
22690 "other disk images on the host.  It uses libguestfs for access to the guest "
22691 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
22692 "a mountable device."
22693 msgstr ""
22694
22695 # type: textblock
22696 #: ../fuse/guestmount.pod:23
22697 msgid ""
22698 "Along with other options, you have to give at least one device (I<-a> "
22699 "option) and at least one mountpoint (I<-m> option).  How this works is "
22700 "better explained in the L<guestfish(1)> manual page, or you can use "
22701 "L<virt-inspector(1)> and/or the wrapper script C<guestmount-wrapper> to help "
22702 "you."
22703 msgstr ""
22704
22705 # type: textblock
22706 #: ../fuse/guestmount.pod:29
22707 msgid ""
22708 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
22709 "by you, and the filesystem will not be visible to any other users unless you "
22710 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
22711 "the filesystem, use the C<fusermount -u> command."
22712 msgstr ""
22713
22714 # type: textblock
22715 #: ../fuse/guestmount.pod:37
22716 msgid ""
22717 "For a typical Windows guest which has its main filesystem on the first "
22718 "partition:"
22719 msgstr ""
22720
22721 # type: verbatim
22722 #: ../fuse/guestmount.pod:40
22723 #, no-wrap
22724 msgid ""
22725 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
22726 "\n"
22727 msgstr ""
22728
22729 # type: textblock
22730 #: ../fuse/guestmount.pod:42
22731 msgid ""
22732 "For a typical Linux guest which has a /boot filesystem on the first "
22733 "partition, and the root filesystem on a logical volume:"
22734 msgstr ""
22735
22736 # type: verbatim
22737 #: ../fuse/guestmount.pod:45
22738 #, no-wrap
22739 msgid ""
22740 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
22741 "\n"
22742 msgstr ""
22743
22744 # type: textblock
22745 #: ../fuse/guestmount.pod:47
22746 msgid ""
22747 "To get L<virt-inspector(1)> to do the hard work of detecting guest "
22748 "mountpoints for you:"
22749 msgstr ""
22750
22751 # type: verbatim
22752 #: ../fuse/guestmount.pod:50
22753 #, no-wrap
22754 msgid ""
22755 " guestmount $(virt-inspector --ro-fish MyGuest) /mnt\n"
22756 "\n"
22757 msgstr ""
22758
22759 # type: textblock
22760 #: ../fuse/guestmount.pod:52
22761 msgid ""
22762 "(or use --fish if you don't want it to be a read only mount).  The option is "
22763 "called I<--ro-fish> or I<--fish> because these parameters are compatible "
22764 "with L<guestfish(1)>."
22765 msgstr ""
22766
22767 # type: textblock
22768 #: ../fuse/guestmount.pod:56
22769 msgid ""
22770 "If you don't know what filesystems are contained in a guest or disk image, "
22771 "use L<virt-list-filesystems(1)> first:"
22772 msgstr ""
22773
22774 # type: verbatim
22775 #: ../fuse/guestmount.pod:59
22776 #, no-wrap
22777 msgid ""
22778 " virt-list-filesystems MyGuest\n"
22779 "\n"
22780 msgstr ""
22781
22782 # type: textblock
22783 #: ../fuse/guestmount.pod:61
22784 msgid ""
22785 "If you want to trace the libguestfs calls but without excessive debugging, "
22786 "we recommend:"
22787 msgstr ""
22788
22789 # type: verbatim
22790 #: ../fuse/guestmount.pod:64
22791 #, no-wrap
22792 msgid ""
22793 " guestmount [-a ... -m ...] --trace /mnt\n"
22794 "\n"
22795 msgstr ""
22796
22797 # type: textblock
22798 #: ../fuse/guestmount.pod:66
22799 msgid "If you want to debug the program, we recommend:"
22800 msgstr ""
22801
22802 # type: verbatim
22803 #: ../fuse/guestmount.pod:68
22804 #, no-wrap
22805 msgid ""
22806 " guestmount [-a ... -m ...] --trace --verbose /mnt\n"
22807 "\n"
22808 msgstr ""
22809
22810 # type: textblock
22811 #: ../fuse/guestmount.pod:76
22812 msgid "Add a block device or virtual machine image."
22813 msgstr ""
22814
22815 # type: =item
22816 #: ../fuse/guestmount.pod:78
22817 msgid "B<--dir-cache-timeout N>"
22818 msgstr ""
22819
22820 # type: textblock
22821 #: ../fuse/guestmount.pod:80
22822 msgid ""
22823 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
22824 "seconds.  The readdir cache [actually, there are several semi-independent "
22825 "caches] is populated after a readdir(2) call with the stat and extended "
22826 "attributes of the files in the directory, in anticipation that they will be "
22827 "requested soon after."
22828 msgstr ""
22829
22830 # type: textblock
22831 #: ../fuse/guestmount.pod:86
22832 msgid ""
22833 "There is also a different attribute cache implemented by FUSE (see the FUSE "
22834 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
22835 "requests, only cache existing ones."
22836 msgstr ""
22837
22838 # type: =item
22839 #: ../fuse/guestmount.pod:90
22840 msgid "B<--fuse-help>"
22841 msgstr ""
22842
22843 # type: textblock
22844 #: ../fuse/guestmount.pod:92
22845 msgid "Display help on special FUSE options (see I<-o> below)."
22846 msgstr ""
22847
22848 # type: textblock
22849 #: ../fuse/guestmount.pod:96
22850 msgid "Display brief help and exit."
22851 msgstr ""
22852
22853 # type: =item
22854 #: ../fuse/guestmount.pod:98
22855 msgid "B<-m dev[:mnt]> | B<--mount dev[:mnt]>"
22856 msgstr ""
22857
22858 # type: textblock
22859 #: ../fuse/guestmount.pod:100
22860 msgid ""
22861 "Mount the named partition or logical volume on the given mountpoint B<in the "
22862 "guest> (this has nothing to do with mountpoints in the host)."
22863 msgstr ""
22864
22865 # type: textblock
22866 #: ../fuse/guestmount.pod:103
22867 msgid ""
22868 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
22869 "something on C</>."
22870 msgstr ""
22871
22872 # type: textblock
22873 #: ../fuse/guestmount.pod:108
22874 msgid ""
22875 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
22876 "unmounted.  If you specify this option, then we don't attempt to sync the "
22877 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
22878 msgstr ""
22879
22880 # type: =item
22881 #: ../fuse/guestmount.pod:113
22882 msgid "B<-o option> | B<--option option>"
22883 msgstr ""
22884
22885 # type: textblock
22886 #: ../fuse/guestmount.pod:115
22887 msgid "Pass extra options to FUSE."
22888 msgstr ""
22889
22890 # type: textblock
22891 #: ../fuse/guestmount.pod:117
22892 msgid ""
22893 "To get a list of all the extra options supported by FUSE, use the command "
22894 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
22895 "of them are a good idea."
22896 msgstr ""
22897
22898 # type: verbatim
22899 #: ../fuse/guestmount.pod:121
22900 #, no-wrap
22901 msgid ""
22902 " guestmount --fuse-help\n"
22903 "\n"
22904 msgstr ""
22905
22906 # type: textblock
22907 #: ../fuse/guestmount.pod:123
22908 msgid "Some potentially useful FUSE options:"
22909 msgstr ""
22910
22911 # type: =item
22912 #: ../fuse/guestmount.pod:127
22913 msgid "B<-o allow_other>"
22914 msgstr ""
22915
22916 # type: textblock
22917 #: ../fuse/guestmount.pod:129
22918 msgid "Allow other users to see the filesystem."
22919 msgstr ""
22920
22921 # type: =item
22922 #: ../fuse/guestmount.pod:131
22923 msgid "B<-o attr_timeout=N>"
22924 msgstr ""
22925
22926 # type: textblock
22927 #: ../fuse/guestmount.pod:133
22928 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
22929 msgstr ""
22930
22931 # type: =item
22932 #: ../fuse/guestmount.pod:135
22933 msgid "B<-o kernel_cache>"
22934 msgstr ""
22935
22936 # type: textblock
22937 #: ../fuse/guestmount.pod:137
22938 msgid ""
22939 "Allow the kernel to cache files (reduces the number of reads that have to go "
22940 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
22941 "afford the extra memory usage."
22942 msgstr ""
22943
22944 # type: =item
22945 #: ../fuse/guestmount.pod:141
22946 msgid "B<-o uid=N> B<-o gid=N>"
22947 msgstr ""
22948
22949 # type: textblock
22950 #: ../fuse/guestmount.pod:143
22951 msgid ""
22952 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
22953 "the chosen values."
22954 msgstr ""
22955
22956 # type: textblock
22957 #: ../fuse/guestmount.pod:150
22958 msgid ""
22959 "Add devices and mount everything read-only.  Also disallow writes and make "
22960 "the disk appear read-only to FUSE."
22961 msgstr ""
22962
22963 # type: textblock
22964 #: ../fuse/guestmount.pod:153
22965 msgid ""
22966 "This is highly recommended if you are not going to edit the guest disk.  If "
22967 "the guest is running and this option is I<not> supplied, then there is a "
22968 "strong risk of disk corruption in the guest.  We try to prevent this from "
22969 "happening, but it is not always possible."
22970 msgstr ""
22971
22972 # type: textblock
22973 #: ../fuse/guestmount.pod:160
22974 msgid "Enable SELinux support for the guest."
22975 msgstr ""
22976
22977 # type: =item
22978 #: ../fuse/guestmount.pod:162
22979 msgid "B<--trace>"
22980 msgstr ""
22981
22982 # type: textblock
22983 #: ../fuse/guestmount.pod:164
22984 msgid "Trace libguestfs calls (to stderr)."
22985 msgstr ""
22986
22987 # type: textblock
22988 #: ../fuse/guestmount.pod:166
22989 msgid "This also stops the daemon from forking into the background."
22990 msgstr ""
22991
22992 # type: textblock
22993 #: ../fuse/guestmount.pod:170
22994 msgid "Enable verbose messages from underlying libguestfs."
22995 msgstr ""
22996
22997 # type: textblock
22998 #: ../fuse/guestmount.pod:174
22999 msgid "Display the program version and exit."
23000 msgstr ""
23001
23002 # type: textblock
23003 #: ../fuse/guestmount.pod:180
23004 msgid ""
23005 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
23006 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, "
23007 "L<http://fuse.sf.net/>."
23008 msgstr ""
23009
23010 # type: textblock
23011 #: ../inspector/virt-inspector.pl:40
23012 msgid ""
23013 "virt-inspector - Display OS version, kernel, drivers, mount points, "
23014 "applications, etc. in a virtual machine"
23015 msgstr ""
23016
23017 # type: verbatim
23018 #: ../inspector/virt-inspector.pl:44
23019 #, no-wrap
23020 msgid ""
23021 " virt-inspector [--connect URI] domname\n"
23022 "\n"
23023 msgstr ""
23024
23025 # type: verbatim
23026 #: ../inspector/virt-inspector.pl:46
23027 #, no-wrap
23028 msgid ""
23029 " virt-inspector guest.img [guest.img ...]\n"
23030 "\n"
23031 msgstr ""
23032
23033 # type: textblock
23034 #: ../inspector/virt-inspector.pl:50
23035 msgid ""
23036 "B<virt-inspector> examines a virtual machine and tries to determine the "
23037 "version of the OS, the kernel version, what drivers are installed, whether "
23038 "the virtual machine is fully virtualized (FV) or para-virtualized (PV), what "
23039 "applications are installed and more."
23040 msgstr ""
23041
23042 # type: textblock
23043 #: ../inspector/virt-inspector.pl:55
23044 msgid ""
23045 "Virt-inspector can produce output in several formats, including a readable "
23046 "text report, and XML for feeding into other programs."
23047 msgstr ""
23048
23049 # type: textblock
23050 #: ../inspector/virt-inspector.pl:58
23051 msgid ""
23052 "In the normal usage, use C<virt-inspector domname> where C<domname> is the "
23053 "libvirt domain (see: C<virsh list --all>)."
23054 msgstr ""
23055
23056 # type: textblock
23057 #: ../inspector/virt-inspector.pl:61
23058 msgid ""
23059 "You can also run virt-inspector directly on disk images from a single "
23060 "virtual machine.  Use C<virt-inspector guest.img>.  In rare cases a domain "
23061 "has several block devices, in which case you should list them one after "
23062 "another, with the first corresponding to the guest's C</dev/sda>, the second "
23063 "to the guest's C</dev/sdb> and so on."
23064 msgstr ""
23065
23066 # type: textblock
23067 #: ../inspector/virt-inspector.pl:67
23068 msgid ""
23069 "Virt-inspector can only inspect and report upon I<one domain at a time>.  To "
23070 "inspect several virtual machines, you have to run virt-inspector several "
23071 "times (for example, from a shell script for-loop)."
23072 msgstr ""
23073
23074 # type: textblock
23075 #: ../inspector/virt-inspector.pl:72
23076 msgid ""
23077 "Because virt-inspector needs direct access to guest images, it won't "
23078 "normally work over remote libvirt connections."
23079 msgstr ""
23080
23081 # type: textblock
23082 #: ../inspector/virt-inspector.pl:85 ../tools/virt-edit.pl:83 ../tools/virt-win-reg.pl:182 ../tools/virt-df.pl:81 ../tools/virt-ls.pl:89 ../tools/virt-list-filesystems.pl:60 ../tools/virt-cat.pl:90 ../tools/virt-tar.pl:109 ../tools/virt-rescue.pl:113 ../tools/virt-make-fs.pl:163 ../tools/virt-list-partitions.pl:61
23083 msgid "Display brief help."
23084 msgstr ""
23085
23086 # type: =item
23087 #: ../inspector/virt-inspector.pl:91 ../tools/virt-edit.pl:89 ../tools/virt-win-reg.pl:188 ../tools/virt-df.pl:87 ../tools/virt-ls.pl:95 ../tools/virt-resize.pl:273 ../tools/virt-list-filesystems.pl:66 ../tools/virt-cat.pl:96 ../tools/virt-tar.pl:115 ../tools/virt-rescue.pl:119 ../tools/virt-make-fs.pl:169 ../tools/virt-list-partitions.pl:67
23088 msgid "B<--version>"
23089 msgstr ""
23090
23091 # type: textblock
23092 #: ../inspector/virt-inspector.pl:93 ../tools/virt-edit.pl:91 ../tools/virt-win-reg.pl:190 ../tools/virt-df.pl:89 ../tools/virt-ls.pl:97 ../tools/virt-resize.pl:275 ../tools/virt-list-filesystems.pl:68 ../tools/virt-cat.pl:98 ../tools/virt-tar.pl:117 ../tools/virt-rescue.pl:121 ../tools/virt-make-fs.pl:171 ../tools/virt-list-partitions.pl:69
23093 msgid "Display version number and exit."
23094 msgstr ""
23095
23096 # type: =item
23097 #: ../inspector/virt-inspector.pl:99 ../tools/virt-edit.pl:113 ../tools/virt-win-reg.pl:204 ../tools/virt-df.pl:95 ../tools/virt-ls.pl:103 ../tools/virt-list-filesystems.pl:74 ../tools/virt-cat.pl:104 ../tools/virt-tar.pl:123 ../tools/virt-rescue.pl:135 ../tools/virt-list-partitions.pl:75
23098 msgid "B<--connect URI> | B<-c URI>"
23099 msgstr ""
23100
23101 # type: textblock
23102 #: ../inspector/virt-inspector.pl:101 ../tools/virt-edit.pl:115 ../tools/virt-win-reg.pl:206 ../tools/virt-df.pl:97 ../tools/virt-ls.pl:105 ../tools/virt-list-filesystems.pl:76 ../tools/virt-cat.pl:106 ../tools/virt-tar.pl:125 ../tools/virt-rescue.pl:137 ../tools/virt-list-partitions.pl:77
23103 msgid ""
23104 "If using libvirt, connect to the given I<URI>.  If omitted, then we connect "
23105 "to the default libvirt hypervisor."
23106 msgstr ""
23107
23108 # type: textblock
23109 #: ../inspector/virt-inspector.pl:104
23110 msgid ""
23111 "Libvirt is only used if you specify a C<domname> on the command line.  If "
23112 "you specify guest block devices directly, then libvirt is not used at all."
23113 msgstr ""
23114
23115 # type: textblock
23116 #: ../inspector/virt-inspector.pl:114
23117 msgid ""
23118 "The following options select the output format.  Use only one of them.  The "
23119 "default is a readable text report."
23120 msgstr ""
23121
23122 # type: =item
23123 #: ../inspector/virt-inspector.pl:119
23124 msgid "B<--text> (default)"
23125 msgstr ""
23126
23127 # type: textblock
23128 #: ../inspector/virt-inspector.pl:121
23129 msgid "Plain text report."
23130 msgstr ""
23131
23132 # type: =item
23133 #: ../inspector/virt-inspector.pl:123
23134 msgid "B<--none>"
23135 msgstr ""
23136
23137 # type: textblock
23138 #: ../inspector/virt-inspector.pl:125
23139 msgid "Produce no output at all."
23140 msgstr ""
23141
23142 # type: =item
23143 #: ../inspector/virt-inspector.pl:127
23144 msgid "B<--xml>"
23145 msgstr ""
23146
23147 # type: textblock
23148 #: ../inspector/virt-inspector.pl:129
23149 msgid ""
23150 "If you select I<--xml> then you get XML output which can be fed to other "
23151 "programs."
23152 msgstr ""
23153
23154 # type: =item
23155 #: ../inspector/virt-inspector.pl:132
23156 msgid "B<--yaml>"
23157 msgstr ""
23158
23159 # type: textblock
23160 #: ../inspector/virt-inspector.pl:134
23161 msgid ""
23162 "If you select I<--yaml> then you get YAML output which can be fed to other "
23163 "programs."
23164 msgstr ""
23165
23166 # type: =item
23167 #: ../inspector/virt-inspector.pl:137
23168 msgid "B<--perl>"
23169 msgstr ""
23170
23171 # type: textblock
23172 #: ../inspector/virt-inspector.pl:139
23173 msgid ""
23174 "If you select I<--perl> then you get Perl structures output which can be "
23175 "used directly in another Perl program."
23176 msgstr ""
23177
23178 # type: =item
23179 #: ../inspector/virt-inspector.pl:142
23180 msgid "B<--fish>"
23181 msgstr ""
23182
23183 # type: =item
23184 #: ../inspector/virt-inspector.pl:144
23185 msgid "B<--ro-fish>"
23186 msgstr ""
23187
23188 # type: textblock
23189 #: ../inspector/virt-inspector.pl:146
23190 msgid ""
23191 "If you select I<--fish> then we print a L<guestfish(1)> command line which "
23192 "will automatically mount up the filesystems on the correct mount points.  "
23193 "Try this for example:"
23194 msgstr ""
23195
23196 # type: verbatim
23197 #: ../inspector/virt-inspector.pl:150
23198 #, no-wrap
23199 msgid ""
23200 " guestfish $(virt-inspector --fish guest.img)\n"
23201 "\n"
23202 msgstr ""
23203
23204 # type: textblock
23205 #: ../inspector/virt-inspector.pl:152
23206 msgid ""
23207 "I<--ro-fish> is the same, but the I<--ro> option is passed to guestfish so "
23208 "that the filesystems are mounted read-only."
23209 msgstr ""
23210
23211 # type: =item
23212 #: ../inspector/virt-inspector.pl:155
23213 msgid "B<--query>"
23214 msgstr ""
23215
23216 # type: textblock
23217 #: ../inspector/virt-inspector.pl:157
23218 msgid ""
23219 "In \"query mode\" we answer common questions about the guest, such as "
23220 "whether it is fullvirt or needs a Xen hypervisor to run."
23221 msgstr ""
23222
23223 # type: textblock
23224 #: ../inspector/virt-inspector.pl:160
23225 msgid "See section I<QUERY MODE> below."
23226 msgstr ""
23227
23228 # type: =item
23229 #: ../inspector/virt-inspector.pl:166
23230 msgid "B<--windows-registry>"
23231 msgstr ""
23232
23233 # type: textblock
23234 #: ../inspector/virt-inspector.pl:168
23235 msgid ""
23236 "This flag is ignored for compatibility with earlier releases of the "
23237 "software."
23238 msgstr ""
23239
23240 # type: textblock
23241 #: ../inspector/virt-inspector.pl:171
23242 msgid ""
23243 "In this version, if L<Win::Hivex(3)> is available, then we attempt to parse "
23244 "information out of the Registry for any Windows guest."
23245 msgstr ""
23246
23247 # type: =head1
23248 #: ../inspector/virt-inspector.pl:218
23249 msgid "OUTPUT FORMAT"
23250 msgstr ""
23251
23252 # type: verbatim
23253 #: ../inspector/virt-inspector.pl:220
23254 #, no-wrap
23255 msgid ""
23256 " Operating system(s)\n"
23257 " -------------------\n"
23258 " Linux (distro + version)\n"
23259 " Windows (version)\n"
23260 "    |\n"
23261 "    |\n"
23262 "    +--- Filesystems ---------- Installed apps --- Kernel & drivers\n"
23263 "         -----------            --------------     ----------------\n"
23264 "         mount point => device  List of apps       Extra information\n"
23265 "         mount point => device  and versions       about kernel(s)\n"
23266 "              ...                                  and drivers\n"
23267 "         swap => swap device\n"
23268 "         (plus lots of extra information\n"
23269 "         about each filesystem)\n"
23270 "\n"
23271 msgstr ""
23272
23273 # type: textblock
23274 #: ../inspector/virt-inspector.pl:235
23275 msgid "The output of virt-inspector is a complex two-level data structure."
23276 msgstr ""
23277
23278 # type: textblock
23279 #: ../inspector/virt-inspector.pl:237
23280 msgid ""
23281 "At the top level is a list of the operating systems installed on the guest.  "
23282 "(For the vast majority of guests, only a single OS is installed.)  The data "
23283 "returned for the OS includes the name (Linux, Windows), the distribution and "
23284 "version."
23285 msgstr ""
23286
23287 # type: textblock
23288 #: ../inspector/virt-inspector.pl:242
23289 msgid "The diagram above shows what we return for each OS."
23290 msgstr ""
23291
23292 # type: textblock
23293 #: ../inspector/virt-inspector.pl:244
23294 msgid ""
23295 "With the I<--xml> option the output is mapped into an XML document.  There "
23296 "is a RELAX-NG schema for this XML in the file I<virt-inspector.rng> which "
23297 "normally ships with virt-inspector, or can be found in the source."
23298 msgstr ""
23299
23300 # type: textblock
23301 #: ../inspector/virt-inspector.pl:249
23302 msgid ""
23303 "With the I<--fish> or I<--ro-fish> option the mount points are mapped to "
23304 "L<guestfish(1)> command line parameters, so that you can go in afterwards "
23305 "and inspect the guest with everything mounted in the right place.  For "
23306 "example:"
23307 msgstr ""
23308
23309 # type: verbatim
23310 #: ../inspector/virt-inspector.pl:254
23311 #, no-wrap
23312 msgid ""
23313 " guestfish $(virt-inspector --ro-fish guest.img)\n"
23314 " ==> guestfish --ro -a guest.img -m /dev/VG/LV:/ -m /dev/sda1:/boot\n"
23315 "\n"
23316 msgstr ""
23317
23318 # type: =head1
23319 #: ../inspector/virt-inspector.pl:589
23320 msgid "QUERY MODE"
23321 msgstr ""
23322
23323 # type: textblock
23324 #: ../inspector/virt-inspector.pl:591
23325 msgid ""
23326 "When you use C<virt-inspector --query>, the output is a series of lines of "
23327 "the form:"
23328 msgstr ""
23329
23330 # type: verbatim
23331 #: ../inspector/virt-inspector.pl:594
23332 #, no-wrap
23333 msgid ""
23334 " windows=no\n"
23335 " linux=yes\n"
23336 " fullvirt=yes\n"
23337 " xen_pv_drivers=no\n"
23338 "\n"
23339 msgstr ""
23340
23341 # type: textblock
23342 #: ../inspector/virt-inspector.pl:599
23343 msgid ""
23344 "(each answer is usually C<yes> or C<no>, or the line is completely missing "
23345 "if we could not determine the answer at all)."
23346 msgstr ""
23347
23348 # type: textblock
23349 #: ../inspector/virt-inspector.pl:602
23350 msgid ""
23351 "If the guest is multiboot, you can get apparently conflicting answers "
23352 "(eg. C<windows=yes> and C<linux=yes>, or a guest which is both fullvirt and "
23353 "has a Xen PV kernel).  This is normal, and just means that the guest can do "
23354 "both things, although it might require operator intervention such as "
23355 "selecting a boot option when the guest is booting."
23356 msgstr ""
23357
23358 # type: textblock
23359 #: ../inspector/virt-inspector.pl:609
23360 msgid "This section describes the full range of answers possible."
23361 msgstr ""
23362
23363 # type: =item
23364 #: ../inspector/virt-inspector.pl:630
23365 msgid "windows=(yes|no)"
23366 msgstr ""
23367
23368 # type: textblock
23369 #: ../inspector/virt-inspector.pl:632
23370 msgid "Answer C<yes> if Microsoft Windows is installed in the guest."
23371 msgstr ""
23372
23373 # type: =item
23374 #: ../inspector/virt-inspector.pl:645
23375 msgid "linux=(yes|no)"
23376 msgstr ""
23377
23378 # type: textblock
23379 #: ../inspector/virt-inspector.pl:647
23380 msgid "Answer C<yes> if a Linux kernel is installed in the guest."
23381 msgstr ""
23382
23383 # type: =item
23384 #: ../inspector/virt-inspector.pl:660
23385 msgid "rhel=(yes|no)"
23386 msgstr ""
23387
23388 # type: textblock
23389 #: ../inspector/virt-inspector.pl:662
23390 msgid "Answer C<yes> if the guest contains Red Hat Enterprise Linux."
23391 msgstr ""
23392
23393 # type: =item
23394 #: ../inspector/virt-inspector.pl:676
23395 msgid "fedora=(yes|no)"
23396 msgstr ""
23397
23398 # type: textblock
23399 #: ../inspector/virt-inspector.pl:678
23400 msgid "Answer C<yes> if the guest contains the Fedora Linux distribution."
23401 msgstr ""
23402
23403 # type: =item
23404 #: ../inspector/virt-inspector.pl:691
23405 msgid "debian=(yes|no)"
23406 msgstr ""
23407
23408 # type: textblock
23409 #: ../inspector/virt-inspector.pl:693
23410 msgid "Answer C<yes> if the guest contains the Debian Linux distribution."
23411 msgstr ""
23412
23413 # type: =item
23414 #: ../inspector/virt-inspector.pl:706
23415 msgid "fullvirt=(yes|no)"
23416 msgstr ""
23417
23418 # type: textblock
23419 #: ../inspector/virt-inspector.pl:708
23420 msgid ""
23421 "Answer C<yes> if there is at least one operating system kernel installed in "
23422 "the guest which runs fully virtualized.  Such a guest would require a "
23423 "hypervisor which supports full system virtualization."
23424 msgstr ""
23425
23426 # type: =item
23427 #: ../inspector/virt-inspector.pl:731
23428 msgid "xen_domU_kernel=(yes|no)"
23429 msgstr ""
23430
23431 # type: textblock
23432 #: ../inspector/virt-inspector.pl:733
23433 msgid ""
23434 "Answer C<yes> if there is at least one Linux kernel installed in the guest "
23435 "which is compiled as a Xen DomU (a Xen paravirtualized guest)."
23436 msgstr ""
23437
23438 # type: =item
23439 #: ../inspector/virt-inspector.pl:753
23440 msgid "xen_pv_drivers=(yes|no)"
23441 msgstr ""
23442
23443 # type: textblock
23444 #: ../inspector/virt-inspector.pl:755
23445 msgid ""
23446 "Answer C<yes> if the guest has Xen paravirtualized drivers installed "
23447 "(usually the kernel itself will be fully virtualized, but the PV drivers "
23448 "have been installed by the administrator for performance reasons)."
23449 msgstr ""
23450
23451 # type: =item
23452 #: ../inspector/virt-inspector.pl:777
23453 msgid "virtio_drivers=(yes|no)"
23454 msgstr ""
23455
23456 # type: textblock
23457 #: ../inspector/virt-inspector.pl:779
23458 msgid ""
23459 "Answer C<yes> if the guest has virtio paravirtualized drivers installed.  "
23460 "Virtio drivers are commonly used to improve the performance of KVM."
23461 msgstr ""
23462
23463 # type: =item
23464 #: ../inspector/virt-inspector.pl:800
23465 msgid "userspace_arch=(x86_64|...)"
23466 msgstr ""
23467
23468 # type: textblock
23469 #: ../inspector/virt-inspector.pl:802
23470 msgid "Print the architecture of userspace."
23471 msgstr ""
23472
23473 # type: textblock
23474 #: ../inspector/virt-inspector.pl:804 ../inspector/virt-inspector.pl:825
23475 msgid "NB. For multi-boot VMs this can print several lines."
23476 msgstr ""
23477
23478 # type: =item
23479 #: ../inspector/virt-inspector.pl:821
23480 msgid "kernel_arch=(x86_64|...)"
23481 msgstr ""
23482
23483 # type: textblock
23484 #: ../inspector/virt-inspector.pl:823
23485 msgid "Print the architecture of the kernel."
23486 msgstr ""
23487
23488 # type: =head1
23489 #: ../inspector/virt-inspector.pl:846 ../tools/virt-edit.pl:325 ../tools/virt-win-reg.pl:142 ../tools/virt-win-reg.pl:461 ../tools/virt-df.pl:566 ../tools/virt-ls.pl:210 ../tools/virt-resize.pl:1440 ../tools/virt-list-filesystems.pl:191 ../tools/virt-cat.pl:163 ../tools/virt-tar.pl:257 ../tools/virt-rescue.pl:231 ../tools/virt-make-fs.pl:527 ../tools/virt-list-partitions.pl:229
23490 msgid "SHELL QUOTING"
23491 msgstr ""
23492
23493 # type: textblock
23494 #: ../inspector/virt-inspector.pl:848 ../tools/virt-edit.pl:327 ../tools/virt-win-reg.pl:463 ../tools/virt-df.pl:568 ../tools/virt-ls.pl:212 ../tools/virt-resize.pl:1442 ../tools/virt-list-filesystems.pl:193 ../tools/virt-cat.pl:165 ../tools/virt-tar.pl:259 ../tools/virt-rescue.pl:233 ../tools/virt-make-fs.pl:529 ../tools/virt-list-partitions.pl:231
23495 msgid ""
23496 "Libvirt guest names can contain arbitrary characters, some of which have "
23497 "meaning to the shell such as C<#> and space.  You may need to quote or "
23498 "escape these characters on the command line.  See the shell manual page "
23499 "L<sh(1)> for details."
23500 msgstr ""
23501
23502 # type: textblock
23503 #: ../inspector/virt-inspector.pl:855 ../tools/virt-df.pl:575
23504 msgid ""
23505 "L<guestfs(3)>, L<guestfish(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
23506 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
23507 msgstr ""
23508
23509 # type: textblock
23510 #: ../inspector/virt-inspector.pl:864 ../tools/virt-edit.pl:346 ../tools/virt-win-reg.pl:496 ../tools/virt-df.pl:584 ../tools/virt-ls.pl:230 ../tools/virt-resize.pl:1471 ../tools/virt-list-filesystems.pl:212 ../tools/virt-cat.pl:182 ../tools/virt-tar.pl:277 ../tools/virt-rescue.pl:250 ../tools/virt-make-fs.pl:561 ../tools/virt-list-partitions.pl:249
23511 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
23512 msgstr ""
23513
23514 # type: textblock
23515 #: ../inspector/virt-inspector.pl:866
23516 msgid "Matthew Booth L<mbooth@redhat.com>"
23517 msgstr ""
23518
23519 # type: textblock
23520 #: ../inspector/virt-inspector.pl:870 ../tools/virt-ls.pl:234 ../tools/virt-list-filesystems.pl:216 ../tools/virt-cat.pl:186 ../tools/virt-tar.pl:281
23521 msgid "Copyright (C) 2009 Red Hat Inc."
23522 msgstr ""
23523
23524 # type: textblock
23525 #: ../tools/virt-edit.pl:35
23526 msgid "virt-edit - Edit a file in a virtual machine"
23527 msgstr ""
23528
23529 # type: verbatim
23530 #: ../tools/virt-edit.pl:39
23531 #, no-wrap
23532 msgid ""
23533 " virt-edit [--options] domname file\n"
23534 "\n"
23535 msgstr ""
23536
23537 # type: verbatim
23538 #: ../tools/virt-edit.pl:41
23539 #, no-wrap
23540 msgid ""
23541 " virt-edit [--options] disk.img [disk.img ...] file\n"
23542 "\n"
23543 msgstr ""
23544
23545 # type: verbatim
23546 #: ../tools/virt-edit.pl:43
23547 #, no-wrap
23548 msgid ""
23549 " virt-edit [domname|disk.img] file -e 'expr'\n"
23550 "\n"
23551 msgstr ""
23552
23553 # type: textblock
23554 #: ../tools/virt-edit.pl:47
23555 msgid ""
23556 "You must I<not> use C<virt-edit> on live virtual machines.  If you do this, "
23557 "you risk disk corruption in the VM.  C<virt-edit> tries to stop you from "
23558 "doing this, but doesn't catch all cases."
23559 msgstr ""
23560
23561 # type: textblock
23562 #: ../tools/virt-edit.pl:53
23563 msgid ""
23564 "C<virt-edit> is a command line tool to edit C<file> where C<file> exists in "
23565 "the named virtual machine (or disk image)."
23566 msgstr ""
23567
23568 # type: textblock
23569 #: ../tools/virt-edit.pl:56
23570 msgid ""
23571 "If you want to just view a file, use L<virt-cat(1)>.  For more complex cases "
23572 "you should look at the L<guestfish(1)> tool."
23573 msgstr ""
23574
23575 # type: textblock
23576 #: ../tools/virt-edit.pl:61
23577 msgid "Edit the named files interactively:"
23578 msgstr ""
23579
23580 # type: verbatim
23581 #: ../tools/virt-edit.pl:63
23582 #, no-wrap
23583 msgid ""
23584 " virt-edit mydomain /boot/grub/grub.conf\n"
23585 "\n"
23586 msgstr ""
23587
23588 # type: verbatim
23589 #: ../tools/virt-edit.pl:65
23590 #, no-wrap
23591 msgid ""
23592 " virt-edit mydomain /etc/passwd\n"
23593 "\n"
23594 msgstr ""
23595
23596 # type: textblock
23597 #: ../tools/virt-edit.pl:67
23598 msgid ""
23599 "You can also edit files non-interactively (see L</NON-INTERACTIVE EDITING> "
23600 "below).  To change the init default level to 5:"
23601 msgstr ""
23602
23603 # type: verbatim
23604 #: ../tools/virt-edit.pl:71
23605 #, no-wrap
23606 msgid ""
23607 " virt-edit mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
23608 "\n"
23609 msgstr ""
23610
23611 # type: =item
23612 #: ../tools/virt-edit.pl:97
23613 msgid "B<--backup extension> | B<-b extension>"
23614 msgstr ""
23615
23616 # type: textblock
23617 #: ../tools/virt-edit.pl:99
23618 msgid ""
23619 "Create a backup of the original file I<in the guest disk image>.  The backup "
23620 "has the original filename with C<extension> added."
23621 msgstr ""
23622
23623 # type: textblock
23624 #: ../tools/virt-edit.pl:102
23625 msgid ""
23626 "Usually the first character of C<extension> would be a dot C<.> so you would "
23627 "write:"
23628 msgstr ""
23629
23630 # type: verbatim
23631 #: ../tools/virt-edit.pl:105
23632 #, no-wrap
23633 msgid ""
23634 " virt-edit -b .orig [etc]\n"
23635 "\n"
23636 msgstr ""
23637
23638 # type: textblock
23639 #: ../tools/virt-edit.pl:107
23640 msgid "By default, no backup file is made."
23641 msgstr ""
23642
23643 # type: textblock
23644 #: ../tools/virt-edit.pl:118 ../tools/virt-win-reg.pl:209 ../tools/virt-df.pl:100 ../tools/virt-ls.pl:108 ../tools/virt-list-filesystems.pl:79 ../tools/virt-cat.pl:109 ../tools/virt-tar.pl:128 ../tools/virt-rescue.pl:140 ../tools/virt-list-partitions.pl:80
23645 msgid ""
23646 "If you specify guest block devices directly, then libvirt is not used at "
23647 "all."
23648 msgstr ""
23649
23650 # type: =item
23651 #: ../tools/virt-edit.pl:125
23652 msgid "B<--expr EXPR> | B<-e EXPR>"
23653 msgstr ""
23654
23655 # type: textblock
23656 #: ../tools/virt-edit.pl:127
23657 msgid ""
23658 "Instead of launching the external editor, non-interactively apply the Perl "
23659 "expression C<EXPR> to each line in the file.  See L</NON-INTERACTIVE "
23660 "EDITING> below."
23661 msgstr ""
23662
23663 # type: textblock
23664 #: ../tools/virt-edit.pl:131
23665 msgid ""
23666 "Be careful to properly quote the expression to prevent it from being altered "
23667 "by the shell."
23668 msgstr ""
23669
23670 # type: =head1
23671 #: ../tools/virt-edit.pl:250
23672 msgid "NON-INTERACTIVE EDITING"
23673 msgstr ""
23674
23675 # type: textblock
23676 #: ../tools/virt-edit.pl:252
23677 msgid ""
23678 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
23679 "administrator can interactively edit the file."
23680 msgstr ""
23681
23682 # type: textblock
23683 #: ../tools/virt-edit.pl:255
23684 msgid ""
23685 "There are two ways also to use C<virt-edit> from scripts in order to make "
23686 "automated edits to files.  (Note that although you I<can> use C<virt-edit> "
23687 "like this, it's less error-prone to write scripts directly using the "
23688 "libguestfs API and Augeas for configuration file editing.)"
23689 msgstr ""
23690
23691 # type: textblock
23692 #: ../tools/virt-edit.pl:261
23693 msgid ""
23694 "The first method is to temporarily set C<$EDITOR> to any script or program "
23695 "you want to run.  The script is invoked as C<$EDITOR tmpfile> and it should "
23696 "update C<tmpfile> in place however it likes."
23697 msgstr ""
23698
23699 # type: textblock
23700 #: ../tools/virt-edit.pl:265
23701 msgid ""
23702 "The second method is to use the C<-e> parameter of C<virt-edit> to run a "
23703 "short Perl snippet in the style of L<sed(1)>.  For example to replace all "
23704 "instances of C<foo> with C<bar> in a file:"
23705 msgstr ""
23706
23707 # type: verbatim
23708 #: ../tools/virt-edit.pl:269
23709 #, no-wrap
23710 msgid ""
23711 " virt-edit domname filename -e 's/foo/bar/'\n"
23712 "\n"
23713 msgstr ""
23714
23715 # type: textblock
23716 #: ../tools/virt-edit.pl:271
23717 msgid ""
23718 "The full power of Perl regular expressions can be used (see L<perlre(1)>).  "
23719 "For example to delete root's password you could do:"
23720 msgstr ""
23721
23722 # type: verbatim
23723 #: ../tools/virt-edit.pl:274
23724 #, no-wrap
23725 msgid ""
23726 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
23727 "\n"
23728 msgstr ""
23729
23730 # type: textblock
23731 #: ../tools/virt-edit.pl:276
23732 msgid ""
23733 "What really happens is that the snippet is evaluated as a Perl expression "
23734 "for each line of the file.  The line, including the final C<\\n>, is passed "
23735 "in C<$_> and the expression should update C<$_> or leave it unchanged."
23736 msgstr ""
23737
23738 # type: textblock
23739 #: ../tools/virt-edit.pl:281
23740 msgid ""
23741 "To delete a line, set C<$_> to the empty string.  For example, to delete the "
23742 "C<apache> user account from the password file you can do:"
23743 msgstr ""
23744
23745 # type: verbatim
23746 #: ../tools/virt-edit.pl:284
23747 #, no-wrap
23748 msgid ""
23749 " virt-edit mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
23750 "\n"
23751 msgstr ""
23752
23753 # type: textblock
23754 #: ../tools/virt-edit.pl:286
23755 msgid ""
23756 "To insert a line, prepend or append it to C<$_>.  However appending lines to "
23757 "the end of the file is rather difficult this way since there is no concept "
23758 "of \"last line of the file\" - your expression just doesn't get called "
23759 "again.  You might want to use the first method (setting C<$EDITOR>) if you "
23760 "want to do this."
23761 msgstr ""
23762
23763 # type: textblock
23764 #: ../tools/virt-edit.pl:292
23765 msgid ""
23766 "The variable C<$lineno> contains the current line number.  As is "
23767 "traditional, the first line in the file is number C<1>."
23768 msgstr ""
23769
23770 # type: textblock
23771 #: ../tools/virt-edit.pl:295
23772 msgid ""
23773 "The return value from the expression is ignored, but the expression may call "
23774 "C<die> in order to abort the whole program, leaving the original file "
23775 "untouched."
23776 msgstr ""
23777
23778 # type: textblock
23779 #: ../tools/virt-edit.pl:299
23780 msgid ""
23781 "Remember when matching the end of a line that C<$_> may contain the final "
23782 "C<\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
23783 "newline then neither of these.  Thus to match or substitute some text at the "
23784 "end of a line, use this regular expression:"
23785 msgstr ""
23786
23787 # type: verbatim
23788 #: ../tools/virt-edit.pl:304
23789 #, no-wrap
23790 msgid ""
23791 " /some text(\\r?\\n)?$/\n"
23792 "\n"
23793 msgstr ""
23794
23795 # type: textblock
23796 #: ../tools/virt-edit.pl:306
23797 msgid ""
23798 "Alternately, use the perl C<chomp> function, being careful not to chomp "
23799 "C<$_> itself (since that would remove all newlines from the file):"
23800 msgstr ""
23801
23802 # type: verbatim
23803 #: ../tools/virt-edit.pl:310
23804 #, no-wrap
23805 msgid ""
23806 " my $m = $_; chomp $m; $m =~ /some text$/\n"
23807 "\n"
23808 msgstr ""
23809
23810 # type: =item
23811 #: ../tools/virt-edit.pl:316
23812 msgid "C<EDITOR>"
23813 msgstr ""
23814
23815 # type: textblock
23816 #: ../tools/virt-edit.pl:318
23817 msgid ""
23818 "If set, this string is used as the editor.  It may contain arguments, "
23819 "eg. C<\"emacs -nw\">"
23820 msgstr ""
23821
23822 # type: textblock
23823 #: ../tools/virt-edit.pl:321
23824 msgid "If not set, C<vi> is used."
23825 msgstr ""
23826
23827 # type: textblock
23828 #: ../tools/virt-edit.pl:334
23829 msgid ""
23830 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, "
23831 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>, "
23832 "L<perl(1)>, L<perlre(1)>."
23833 msgstr ""
23834
23835 # type: =head1
23836 #: ../tools/virt-edit.pl:344 ../tools/virt-win-reg.pl:494 ../tools/virt-df.pl:582 ../tools/virt-ls.pl:228 ../tools/virt-resize.pl:1469 ../tools/virt-list-filesystems.pl:210 ../tools/virt-cat.pl:180 ../tools/virt-tar.pl:275 ../tools/virt-rescue.pl:248 ../tools/virt-make-fs.pl:559 ../tools/virt-list-partitions.pl:247
23837 msgid "AUTHOR"
23838 msgstr ""
23839
23840 # type: textblock
23841 #: ../tools/virt-edit.pl:350 ../tools/virt-df.pl:588 ../tools/virt-rescue.pl:254 ../tools/virt-list-partitions.pl:253
23842 msgid "Copyright (C) 2009-2010 Red Hat Inc."
23843 msgstr ""
23844
23845 # type: textblock
23846 #: ../tools/virt-win-reg.pl:38
23847 msgid ""
23848 "virt-win-reg - Export and merge Windows Registry entries from a Windows "
23849 "guest"
23850 msgstr ""
23851
23852 # type: verbatim
23853 #: ../tools/virt-win-reg.pl:42
23854 #, no-wrap
23855 msgid ""
23856 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
23857 "\n"
23858 msgstr ""
23859
23860 # type: verbatim
23861 #: ../tools/virt-win-reg.pl:44
23862 #, no-wrap
23863 msgid ""
23864 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
23865 "\n"
23866 msgstr ""
23867
23868 # type: verbatim
23869 #: ../tools/virt-win-reg.pl:46
23870 #, no-wrap
23871 msgid ""
23872 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
23873 "\n"
23874 msgstr ""
23875
23876 # type: verbatim
23877 #: ../tools/virt-win-reg.pl:48
23878 #, no-wrap
23879 msgid ""
23880 " virt-win-reg --merge domname [input.reg ...]\n"
23881 "\n"
23882 msgstr ""
23883
23884 # type: verbatim
23885 #: ../tools/virt-win-reg.pl:50
23886 #, no-wrap
23887 msgid ""
23888 " virt-win-reg [--options] disk.img ... # instead of domname\n"
23889 "\n"
23890 msgstr ""
23891
23892 # type: textblock
23893 #: ../tools/virt-win-reg.pl:54
23894 msgid ""
23895 "You must I<not> use C<virt-win-reg> with the C<--merge> option on live "
23896 "virtual machines.  If you do this, you I<will> get irreversible disk "
23897 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
23898 "but doesn't catch all cases."
23899 msgstr ""
23900
23901 # type: textblock
23902 #: ../tools/virt-win-reg.pl:59
23903 msgid ""
23904 "Modifying the Windows Registry is an inherently risky operation.  The format "
23905 "is deliberately obscure and undocumented, and Registry changes can leave the "
23906 "system unbootable.  Therefore when using the C<--merge> option, make sure "
23907 "you have a reliable backup first."
23908 msgstr ""
23909
23910 # type: textblock
23911 #: ../tools/virt-win-reg.pl:66
23912 msgid ""
23913 "This program can export and merge Windows Registry entries from a Windows "
23914 "guest."
23915 msgstr ""
23916
23917 # type: textblock
23918 #: ../tools/virt-win-reg.pl:69
23919 msgid ""
23920 "The first parameter is the libvirt guest name or the raw disk image of a "
23921 "Windows guest."
23922 msgstr ""
23923
23924 # type: textblock
23925 #: ../tools/virt-win-reg.pl:72
23926 msgid ""
23927 "If C<--merge> is I<not> specified, then the chosen registry key is "
23928 "displayed/exported (recursively).  For example:"
23929 msgstr ""
23930
23931 # type: verbatim
23932 #: ../tools/virt-win-reg.pl:75
23933 #, no-wrap
23934 msgid ""
23935 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
23936 "\n"
23937 msgstr ""
23938
23939 # type: textblock
23940 #: ../tools/virt-win-reg.pl:77
23941 msgid "You can also display single values from within registry keys, for example:"
23942 msgstr ""
23943
23944 # type: verbatim
23945 #: ../tools/virt-win-reg.pl:80
23946 #, no-wrap
23947 msgid ""
23948 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
23949 " $ virt-win-reg Windows7 $cvkey ProductName\n"
23950 " Windows 7 Enterprise\n"
23951 "\n"
23952 msgstr ""
23953
23954 # type: textblock
23955 #: ../tools/virt-win-reg.pl:84
23956 msgid ""
23957 "With C<--merge>, you can merge a textual regedit file into the Windows "
23958 "Registry:"
23959 msgstr ""
23960
23961 # type: verbatim
23962 #: ../tools/virt-win-reg.pl:87
23963 #, no-wrap
23964 msgid ""
23965 " $ virt-win-reg --merge Windows7 changes.reg\n"
23966 "\n"
23967 msgstr ""
23968
23969 # type: =head2
23970 #: ../tools/virt-win-reg.pl:89
23971 msgid "SUPPORTED SYSTEMS"
23972 msgstr ""
23973
23974 # type: textblock
23975 #: ../tools/virt-win-reg.pl:91
23976 msgid ""
23977 "The program currently supports Windows NT-derived guests starting with "
23978 "Windows XP through to at least Windows 7."
23979 msgstr ""
23980
23981 # type: textblock
23982 #: ../tools/virt-win-reg.pl:94
23983 msgid ""
23984 "Registry support is done for C<HKEY_LOCAL_MACHINE\\SAM>, "
23985 "C<HKEY_LOCAL_MACHINE\\SECURITY>, C<HKEY_LOCAL_MACHINE\\SOFTWARE>, "
23986 "C<HKEY_LOCAL_MACHINE\\SYSTEM> and C<HKEY_USERS\\.DEFAULT>."
23987 msgstr ""
23988
23989 # type: textblock
23990 #: ../tools/virt-win-reg.pl:98
23991 msgid ""
23992 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
23993 "C<HKEY_USERS>."
23994 msgstr ""
23995
23996 # type: textblock
23997 #: ../tools/virt-win-reg.pl:101
23998 msgid ""
23999 "C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are B<not> supported at this "
24000 "time."
24001 msgstr ""
24002
24003 # type: =head2
24004 #: ../tools/virt-win-reg.pl:104
24005 msgid "NOTE"
24006 msgstr ""
24007
24008 # type: textblock
24009 #: ../tools/virt-win-reg.pl:106
24010 msgid ""
24011 "This program is only meant for simple access to the registry.  If you want "
24012 "to do complicated things with the registry, we suggest you download the "
24013 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
24014 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
24015 "L<hivexregedit(1)>."
24016 msgstr ""
24017
24018 # type: =head2
24019 #: ../tools/virt-win-reg.pl:112
24020 msgid "ENCODING"
24021 msgstr ""
24022
24023 # type: textblock
24024 #: ../tools/virt-win-reg.pl:114
24025 msgid ""
24026 "C<virt-win-reg> expects that regedit files have already been reencoded in "
24027 "the local encoding.  Usually on Linux hosts, this means UTF-8 with "
24028 "Unix-style line endings.  Since Windows regedit files are often in UTF-16LE "
24029 "with Windows-style line endings, you may need to reencode the whole file "
24030 "before or after processing."
24031 msgstr ""
24032
24033 # type: textblock
24034 #: ../tools/virt-win-reg.pl:120
24035 msgid ""
24036 "To reencode a file from Windows format to Linux (before processing it with "
24037 "the C<--merge> option), you would do something like this:"
24038 msgstr ""
24039
24040 # type: verbatim
24041 #: ../tools/virt-win-reg.pl:123
24042 #, no-wrap
24043 msgid ""
24044 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
24045 "\n"
24046 msgstr ""
24047
24048 # type: textblock
24049 #: ../tools/virt-win-reg.pl:125
24050 msgid ""
24051 "To go in the opposite direction, after exporting and before sending the file "
24052 "to a Windows user, do something like this:"
24053 msgstr ""
24054
24055 # type: verbatim
24056 #: ../tools/virt-win-reg.pl:128
24057 #, no-wrap
24058 msgid ""
24059 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
24060 "\n"
24061 msgstr ""
24062
24063 # type: textblock
24064 #: ../tools/virt-win-reg.pl:130
24065 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
24066 msgstr ""
24067
24068 # type: textblock
24069 #: ../tools/virt-win-reg.pl:132
24070 msgid ""
24071 "If you are unsure about the current encoding, use the L<file(1)> command.  "
24072 "Recent versions of Windows regedit.exe produce a UTF-16LE file with "
24073 "Windows-style (CRLF) line endings, like this:"
24074 msgstr ""
24075
24076 # type: verbatim
24077 #: ../tools/virt-win-reg.pl:136
24078 #, no-wrap
24079 msgid ""
24080 " $ file software.reg\n"
24081 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
24082 " with CRLF line terminators\n"
24083 "\n"
24084 msgstr ""
24085
24086 # type: textblock
24087 #: ../tools/virt-win-reg.pl:140
24088 msgid "This file would need conversion before you could C<--merge> it."
24089 msgstr ""
24090
24091 # type: textblock
24092 #: ../tools/virt-win-reg.pl:144
24093 msgid ""
24094 "Be careful when passing parameters containing C<\\> (backslash) in the "
24095 "shell.  Usually you will have to use 'single quotes' or double backslashes "
24096 "(but not both) to protect them from the shell."
24097 msgstr ""
24098
24099 # type: textblock
24100 #: ../tools/virt-win-reg.pl:148
24101 msgid "Paths and value names are case-insensitive."
24102 msgstr ""
24103
24104 # type: =head2
24105 #: ../tools/virt-win-reg.pl:150
24106 msgid "CurrentControlSet etc."
24107 msgstr ""
24108
24109 # type: textblock
24110 #: ../tools/virt-win-reg.pl:152
24111 msgid ""
24112 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
24113 "Registry at the level of the hive file, and therefore you cannot modify "
24114 "these."
24115 msgstr ""
24116
24117 # type: textblock
24118 #: ../tools/virt-win-reg.pl:156
24119 msgid ""
24120 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
24121 "circumstances it might refer to another control set.  The way to find out is "
24122 "to look at the C<HKLM\\SYSTEM\\Select> key:"
24123 msgstr ""
24124
24125 # type: verbatim
24126 #: ../tools/virt-win-reg.pl:160
24127 #, no-wrap
24128 msgid ""
24129 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
24130 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
24131 " \"Current\"=dword:00000001\n"
24132 " \"Default\"=dword:00000001\n"
24133 " \"Failed\"=dword:00000000\n"
24134 " \"LastKnownGood\"=dword:00000002\n"
24135 "\n"
24136 msgstr ""
24137
24138 # type: textblock
24139 #: ../tools/virt-win-reg.pl:167
24140 msgid "\"Default\" is the one which Windows will choose when it boots."
24141 msgstr ""
24142
24143 # type: textblock
24144 #: ../tools/virt-win-reg.pl:169
24145 msgid "Similarly, other C<Current...> keys in the path may need to be replaced."
24146 msgstr ""
24147
24148 # type: =item
24149 #: ../tools/virt-win-reg.pl:196 ../tools/virt-make-fs.pl:177
24150 msgid "B<--debug>"
24151 msgstr ""
24152
24153 # type: textblock
24154 #: ../tools/virt-win-reg.pl:198 ../tools/virt-resize.pl:501
24155 msgid "Enable debugging messages."
24156 msgstr ""
24157
24158 # type: =item
24159 #: ../tools/virt-win-reg.pl:216
24160 msgid "B<--merge>"
24161 msgstr ""
24162
24163 # type: textblock
24164 #: ../tools/virt-win-reg.pl:218
24165 msgid ""
24166 "In merge mode, this merges a textual regedit file into the Windows Registry "
24167 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
24168 "displays or exports Registry entries instead."
24169 msgstr ""
24170
24171 # type: textblock
24172 #: ../tools/virt-win-reg.pl:222
24173 msgid ""
24174 "Note that C<--merge> is I<unsafe> to use on live virtual machines, and will "
24175 "result in disk corruption.  However exporting (without this flag)  is always "
24176 "safe."
24177 msgstr ""
24178
24179 # type: =item
24180 #: ../tools/virt-win-reg.pl:230
24181 msgid "B<--encoding> UTF-16LE|ASCII"
24182 msgstr ""
24183
24184 # type: textblock
24185 #: ../tools/virt-win-reg.pl:232
24186 msgid ""
24187 "When merging (only), you may need to specify the encoding for strings to be "
24188 "used in the hive file.  This is explained in detail in "
24189 "L<Win::Hivex::Regedit(3)/ENCODING STRINGS>."
24190 msgstr ""
24191
24192 # type: textblock
24193 #: ../tools/virt-win-reg.pl:236
24194 msgid ""
24195 "The default is to use UTF-16LE, which should work with recent versions of "
24196 "Windows."
24197 msgstr ""
24198
24199 # type: textblock
24200 #: ../tools/virt-win-reg.pl:470
24201 msgid ""
24202 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, "
24203 "L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, "
24204 "L<Sys::Guestfs::Lib(3)>, L<Win::Hivex(3)>, L<Win::Hivex::Regedit(3)>, "
24205 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
24206 msgstr ""
24207
24208 # type: textblock
24209 #: ../tools/virt-win-reg.pl:485 ../tools/virt-make-fs.pl:550
24210 msgid ""
24211 "When reporting bugs, please enable debugging and capture the I<complete> "
24212 "output:"
24213 msgstr ""
24214
24215 # type: verbatim
24216 #: ../tools/virt-win-reg.pl:488
24217 #, no-wrap
24218 msgid ""
24219 " export LIBGUESTFS_DEBUG=1\n"
24220 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
24221 "\n"
24222 msgstr ""
24223
24224 # type: textblock
24225 #: ../tools/virt-win-reg.pl:491
24226 msgid ""
24227 "Attach /tmp/virt-win-reg.log to a new bug report at "
24228 "L<https://bugzilla.redhat.com/>"
24229 msgstr ""
24230
24231 # type: textblock
24232 #: ../tools/virt-win-reg.pl:500 ../tools/virt-resize.pl:1475 ../tools/virt-make-fs.pl:565
24233 msgid "Copyright (C) 2010 Red Hat Inc."
24234 msgstr ""
24235
24236 # type: textblock
24237 #: ../tools/virt-df.pl:36
24238 msgid "virt-df - Display free space on virtual filesystems"
24239 msgstr ""
24240
24241 # type: verbatim
24242 #: ../tools/virt-df.pl:40
24243 #, no-wrap
24244 msgid ""
24245 " virt-df [--options]\n"
24246 "\n"
24247 msgstr ""
24248
24249 # type: verbatim
24250 #: ../tools/virt-df.pl:42
24251 #, no-wrap
24252 msgid ""
24253 " virt-df [--options] domname\n"
24254 "\n"
24255 msgstr ""
24256
24257 # type: verbatim
24258 #: ../tools/virt-df.pl:44
24259 #, no-wrap
24260 msgid ""
24261 " virt-df [--options] disk.img [disk.img ...]\n"
24262 "\n"
24263 msgstr ""
24264
24265 # type: textblock
24266 #: ../tools/virt-df.pl:48
24267 msgid ""
24268 "C<virt-df> is a command line tool to display free space on virtual machine "
24269 "filesystems.  Unlike other tools, it doesn't just display the amount of "
24270 "space allocated to a virtual machine, but can look inside the virtual "
24271 "machine to see how much space is really being used."
24272 msgstr ""
24273
24274 # type: textblock
24275 #: ../tools/virt-df.pl:53
24276 msgid ""
24277 "It is like the L<df(1)> command, but for virtual machines, except that it "
24278 "also works for Windows virtual machines."
24279 msgstr ""
24280
24281 # type: textblock
24282 #: ../tools/virt-df.pl:56
24283 msgid ""
24284 "If used without any arguments, C<virt-df> checks with libvirt to get a list "
24285 "of all active and inactive guests, and performs a C<df>-type operation on "
24286 "each one in turn, printing out the results."
24287 msgstr ""
24288
24289 # type: textblock
24290 #: ../tools/virt-df.pl:60
24291 msgid ""
24292 "If used with any argument(s), C<virt-df> performs a C<df>-type operation on "
24293 "either the single named libvirt domain, or on the disk image(s) listed on "
24294 "the command line (which must all belong to a single VM).  In this mode (with "
24295 "arguments), C<virt-df> will I<only work for a single guest>.  If you want to "
24296 "run on multiple guests, then you have to invoke C<virt-df> multiple times."
24297 msgstr ""
24298
24299 # type: textblock
24300 #: ../tools/virt-df.pl:67
24301 msgid ""
24302 "Use the C<--csv> option to get a format which can be easily parsed by other "
24303 "programs.  Other options are mostly similar to standard C<df> options.  See "
24304 "below for the complete list."
24305 msgstr ""
24306
24307 # type: =item
24308 #: ../tools/virt-df.pl:107
24309 msgid "B<--csv>"
24310 msgstr ""
24311
24312 # type: textblock
24313 #: ../tools/virt-df.pl:109
24314 msgid ""
24315 "Write out the results in CSV format (comma-separated values).  This format "
24316 "can be imported easily into databases and spreadsheets, but read L</NOTE "
24317 "ABOUT CSV FORMAT> below."
24318 msgstr ""
24319
24320 # type: =item
24321 #: ../tools/virt-df.pl:117
24322 msgid "B<--human-readable> | B<-h>"
24323 msgstr ""
24324
24325 # type: textblock
24326 #: ../tools/virt-df.pl:119
24327 msgid "Print sizes in human-readable format."
24328 msgstr ""
24329
24330 # type: textblock
24331 #: ../tools/virt-df.pl:121
24332 msgid "You are not allowed to use I<-h> and I<--csv> at the same time."
24333 msgstr ""
24334
24335 # type: =item
24336 #: ../tools/virt-df.pl:127
24337 msgid "B<--inodes> | B<-i>"
24338 msgstr ""
24339
24340 # type: textblock
24341 #: ../tools/virt-df.pl:129
24342 msgid "Print inodes instead of blocks."
24343 msgstr ""
24344
24345 # type: =item
24346 #: ../tools/virt-df.pl:135
24347 msgid "B<--one-per-guest>"
24348 msgstr ""
24349
24350 # type: textblock
24351 #: ../tools/virt-df.pl:137
24352 msgid ""
24353 "Run one libguestfs appliance per guest.  Normally C<virt-df> will add the "
24354 "disks from several guests to a single libguestfs appliance."
24355 msgstr ""
24356
24357 # type: textblock
24358 #: ../tools/virt-df.pl:140
24359 msgid "You might use this option in the following circumstances:"
24360 msgstr ""
24361
24362 # type: textblock
24363 #: ../tools/virt-df.pl:146
24364 msgid ""
24365 "If you think an untrusted guest might actively try to exploit the libguestfs "
24366 "appliance kernel, then this prevents one guest from interfering with the "
24367 "stats printed for another guest."
24368 msgstr ""
24369
24370 # type: textblock
24371 #: ../tools/virt-df.pl:152
24372 msgid ""
24373 "If the kernel has a bug which stops it from accessing a filesystem in one "
24374 "guest (see for example RHBZ#635373) then this allows libguestfs to continue "
24375 "and report stats for further guests."
24376 msgstr ""
24377
24378 # type: =head1
24379 #: ../tools/virt-df.pl:542
24380 msgid "NOTE ABOUT CSV FORMAT"
24381 msgstr ""
24382
24383 # type: textblock
24384 #: ../tools/virt-df.pl:544
24385 msgid ""
24386 "Comma-separated values (CSV) is a deceptive format.  It I<seems> like it "
24387 "should be easy to parse, but it is definitely not easy to parse."
24388 msgstr ""
24389
24390 # type: textblock
24391 #: ../tools/virt-df.pl:547
24392 msgid ""
24393 "Myth: Just split fields at commas.  Reality: This does I<not> work "
24394 "reliably.  This example has two columns:"
24395 msgstr ""
24396
24397 # type: verbatim
24398 #: ../tools/virt-df.pl:550
24399 #, no-wrap
24400 msgid ""
24401 " \"foo,bar\",baz\n"
24402 "\n"
24403 msgstr ""
24404
24405 # type: textblock
24406 #: ../tools/virt-df.pl:552
24407 msgid ""
24408 "Myth: Read the file one line at a time.  Reality: This does I<not> work "
24409 "reliably.  This example has one row:"
24410 msgstr ""
24411
24412 # type: verbatim
24413 #: ../tools/virt-df.pl:555
24414 #, no-wrap
24415 msgid ""
24416 " \"foo\n"
24417 " bar\",baz\n"
24418 "\n"
24419 msgstr ""
24420
24421 # type: textblock
24422 #: ../tools/virt-df.pl:558
24423 msgid ""
24424 "For shell scripts, use C<csvtool> (L<http://merjis.com/developers/csv> also "
24425 "packaged in major Linux distributions)."
24426 msgstr ""
24427
24428 # type: textblock
24429 #: ../tools/virt-df.pl:561
24430 msgid ""
24431 "For other languages, use a CSV processing library (eg. C<Text::CSV> for Perl "
24432 "or Python's built-in csv library)."
24433 msgstr ""
24434
24435 # type: textblock
24436 #: ../tools/virt-df.pl:564
24437 msgid "Most spreadsheets and databases can import CSV directly."
24438 msgstr ""
24439
24440 # type: textblock
24441 #: ../tools/virt-ls.pl:35
24442 msgid "virt-ls - List files in a virtual machine"
24443 msgstr ""
24444
24445 # type: verbatim
24446 #: ../tools/virt-ls.pl:39
24447 #, no-wrap
24448 msgid ""
24449 " virt-ls [--options] domname directory\n"
24450 "\n"
24451 msgstr ""
24452
24453 # type: verbatim
24454 #: ../tools/virt-ls.pl:41
24455 #, no-wrap
24456 msgid ""
24457 " virt-ls [--options] disk.img [disk.img ...] directory\n"
24458 "\n"
24459 msgstr ""
24460
24461 # type: textblock
24462 #: ../tools/virt-ls.pl:45
24463 msgid ""
24464 "C<virt-ls> is a command line tool to list the names of files in a directory "
24465 "inside a virtual machine or disk image."
24466 msgstr ""
24467
24468 # type: textblock
24469 #: ../tools/virt-ls.pl:48
24470 msgid ""
24471 "C<virt-ls> is just a simple wrapper around L<libguestfs(3)> functionality.  "
24472 "For more complex cases you should look at the L<guestfish(1)> tool."
24473 msgstr ""
24474
24475 # type: textblock
24476 #: ../tools/virt-ls.pl:52
24477 msgid ""
24478 "C<virt-ls> can be used in one of three modes: simple, long and recursive.  A "
24479 "simple listing is like the ordinary L<ls(1)> command:"
24480 msgstr ""
24481
24482 # type: verbatim
24483 #: ../tools/virt-ls.pl:55
24484 #, no-wrap
24485 msgid ""
24486 " $ virt-ls myguest /\n"
24487 " bin\n"
24488 " boot\n"
24489 " [etc.]\n"
24490 "\n"
24491 msgstr ""
24492
24493 # type: textblock
24494 #: ../tools/virt-ls.pl:60
24495 msgid "With the C<-l> (C<--long>) option, C<virt-ls> shows more detail:"
24496 msgstr ""
24497
24498 # type: verbatim
24499 #: ../tools/virt-ls.pl:62
24500 #, no-wrap
24501 msgid ""
24502 " $ virt-ls -l myguest /\n"
24503 " total 204\n"
24504 " dr-xr-xr-x.   2 root root   4096 2009-08-25 19:06 bin\n"
24505 " dr-xr-xr-x.   5 root root   3072 2009-08-25 19:06 boot\n"
24506 " [etc.]\n"
24507 "\n"
24508 msgstr ""
24509
24510 # type: textblock
24511 #: ../tools/virt-ls.pl:68
24512 msgid ""
24513 "With the C<-R> (C<--recursive>) option, C<virt-ls> lists the names of files "
24514 "and directories recursively:"
24515 msgstr ""
24516
24517 # type: verbatim
24518 #: ../tools/virt-ls.pl:71
24519 #, no-wrap
24520 msgid ""
24521 " $ virt-ls -R myguest /tmp\n"
24522 " foo\n"
24523 " foo/bar\n"
24524 " [etc.]\n"
24525 "\n"
24526 msgstr ""
24527
24528 # type: textblock
24529 #: ../tools/virt-ls.pl:76
24530 msgid ""
24531 "You I<cannot> combine these options.  To do more complicated things, use "
24532 "L<guestfish(1)>."
24533 msgstr ""
24534
24535 # type: =item
24536 #: ../tools/virt-ls.pl:115 ../tools/virt-list-filesystems.pl:86 ../tools/virt-list-partitions.pl:95
24537 msgid "B<-l> | B<--long>"
24538 msgstr ""
24539
24540 # type: =item
24541 #: ../tools/virt-ls.pl:117
24542 msgid "B<-R> | B<--recursive>"
24543 msgstr ""
24544
24545 # type: textblock
24546 #: ../tools/virt-ls.pl:119
24547 msgid ""
24548 "Select the mode.  With neither of these options, C<virt-ls> produces a "
24549 "simple, flat list of the files in the named directory."
24550 msgstr ""
24551
24552 # type: textblock
24553 #: ../tools/virt-ls.pl:122
24554 msgid ""
24555 "C<virt-ls -l> produces a \"long listing\", which shows more detail (just "
24556 "like the plain C<ls -l> command)."
24557 msgstr ""
24558
24559 # type: textblock
24560 #: ../tools/virt-ls.pl:125
24561 msgid ""
24562 "C<virt-ls -R> produces a recursive list of files starting at the named "
24563 "directory.  See the documentation for the C<guestfs_find> command "
24564 "L<guestfs(3)> for precise details."
24565 msgstr ""
24566
24567 # type: textblock
24568 #: ../tools/virt-ls.pl:129
24569 msgid "You cannot combine these options."
24570 msgstr ""
24571
24572 # type: textblock
24573 #: ../tools/virt-ls.pl:219
24574 msgid ""
24575 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, "
24576 "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
24577 "L<http://libguestfs.org/>."
24578 msgstr ""
24579
24580 # type: textblock
24581 #: ../tools/virt-resize.pl:42
24582 msgid "virt-resize - Resize a virtual machine disk"
24583 msgstr ""
24584
24585 # type: verbatim
24586 #: ../tools/virt-resize.pl:46
24587 #, no-wrap
24588 msgid ""
24589 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
24590 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
24591 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
24592 "\n"
24593 msgstr ""
24594
24595 # type: textblock
24596 #: ../tools/virt-resize.pl:52
24597 msgid ""
24598 "Virt-resize is a tool which can resize a virtual machine disk, making it "
24599 "larger or smaller overall, and resizing or deleting any partitions contained "
24600 "within."
24601 msgstr ""
24602
24603 # type: textblock
24604 #: ../tools/virt-resize.pl:56
24605 msgid ""
24606 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
24607 "not> be used on live virtual machines - for consistent results, shut the "
24608 "virtual machine down before resizing it."
24609 msgstr ""
24610
24611 # type: textblock
24612 #: ../tools/virt-resize.pl:60
24613 msgid ""
24614 "If you are not familiar with the associated tools: "
24615 "L<virt-list-partitions(1)>, L<virt-list-filesystems(1)> and L<virt-df(1)>, "
24616 "we recommend you go and read those manual pages first."
24617 msgstr ""
24618
24619 # type: textblock
24620 #: ../tools/virt-resize.pl:68
24621 msgid ""
24622 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
24623 "fill the extra 5GB of space."
24624 msgstr ""
24625
24626 # type: verbatim
24627 #: ../tools/virt-resize.pl:71
24628 #, no-wrap
24629 msgid ""
24630 " truncate -r olddisk newdisk; truncate -s +5G newdisk\n"
24631 " virt-list-partitions -lht olddisk\n"
24632 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
24633 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
24634 "\n"
24635 msgstr ""
24636
24637 # type: textblock
24638 #: ../tools/virt-resize.pl:76
24639 msgid ""
24640 "As above, but make the /boot partition 200MB bigger, while giving the "
24641 "remaining space to /dev/sda2:"
24642 msgstr ""
24643
24644 # type: verbatim
24645 #: ../tools/virt-resize.pl:79
24646 #, no-wrap
24647 msgid ""
24648 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 olddisk newdisk\n"
24649 "\n"
24650 msgstr ""
24651
24652 # type: textblock
24653 #: ../tools/virt-resize.pl:81
24654 msgid "As above, but the output format will be uncompressed qcow2:"
24655 msgstr ""
24656
24657 # type: verbatim
24658 #: ../tools/virt-resize.pl:83
24659 #, no-wrap
24660 msgid ""
24661 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
24662 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
24663 "\n"
24664 msgstr ""
24665
24666 # type: =head1
24667 #: ../tools/virt-resize.pl:86
24668 msgid "DETAILED USAGE"
24669 msgstr ""
24670
24671 # type: =head2
24672 #: ../tools/virt-resize.pl:88
24673 msgid "EXPANDING A VIRTUAL MACHINE DISK"
24674 msgstr ""
24675
24676 # type: =item
24677 #: ../tools/virt-resize.pl:92
24678 msgid "1. Shut down the virtual machine"
24679 msgstr ""
24680
24681 # type: =item
24682 #: ../tools/virt-resize.pl:94
24683 msgid "2. Locate input disk image"
24684 msgstr ""
24685
24686 # type: textblock
24687 #: ../tools/virt-resize.pl:96
24688 msgid ""
24689 "Locate the input disk image (ie. the file or device on the host containing "
24690 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
24691 "dumpxml> like this to find the disk image name:"
24692 msgstr ""
24693
24694 # type: verbatim
24695 #: ../tools/virt-resize.pl:100
24696 #, no-wrap
24697 msgid ""
24698 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
24699 " Found 1 nodes:\n"
24700 " -- NODE --\n"
24701 " <source dev=\"/dev/vg/lv_guest\" />\n"
24702 "\n"
24703 msgstr ""
24704
24705 # type: =item
24706 #: ../tools/virt-resize.pl:105
24707 msgid "3. Look at current sizing"
24708 msgstr ""
24709
24710 # type: textblock
24711 #: ../tools/virt-resize.pl:107
24712 msgid "Use L<virt-list-partitions(1)> to display the current partitions and sizes:"
24713 msgstr ""
24714
24715 # type: verbatim
24716 #: ../tools/virt-resize.pl:110
24717 #, no-wrap
24718 msgid ""
24719 " # virt-list-partitions -lht /dev/vg/lv_guest\n"
24720 " /dev/sda1 ext3 101.9M\n"
24721 " /dev/sda2 pv 7.9G\n"
24722 " /dev/sda device 8.0G\n"
24723 "\n"
24724 msgstr ""
24725
24726 # type: textblock
24727 #: ../tools/virt-resize.pl:115
24728 msgid ""
24729 "(This example is a virtual machine with an 8 GB disk which we would like to "
24730 "expand up to 10 GB)."
24731 msgstr ""
24732
24733 # type: =item
24734 #: ../tools/virt-resize.pl:118
24735 msgid "4. Create output disk"
24736 msgstr ""
24737
24738 # type: textblock
24739 #: ../tools/virt-resize.pl:120
24740 msgid ""
24741 "Virt-resize cannot do in-place disk modifications.  You have to have space "
24742 "to store the resized output disk."
24743 msgstr ""
24744
24745 # type: textblock
24746 #: ../tools/virt-resize.pl:123
24747 msgid "To store the resized disk image in a file, create a file of a suitable size:"
24748 msgstr ""
24749
24750 # type: verbatim
24751 #: ../tools/virt-resize.pl:126
24752 #, no-wrap
24753 msgid ""
24754 " # rm -f outdisk\n"
24755 " # truncate -s 10G outdisk\n"
24756 "\n"
24757 msgstr ""
24758
24759 # type: textblock
24760 #: ../tools/virt-resize.pl:129
24761 msgid "Or use L<lvcreate(1)> to create a logical volume:"
24762 msgstr ""
24763
24764 # type: verbatim
24765 #: ../tools/virt-resize.pl:131
24766 #, no-wrap
24767 msgid ""
24768 " # lvcreate -L 10G -n lv_name vg_name\n"
24769 "\n"
24770 msgstr ""
24771
24772 # type: textblock
24773 #: ../tools/virt-resize.pl:133
24774 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
24775 msgstr ""
24776
24777 # type: verbatim
24778 #: ../tools/virt-resize.pl:135
24779 #, no-wrap
24780 msgid ""
24781 " # virsh pool-list\n"
24782 " # virsh vol-create-as poolname newvol 10G\n"
24783 "\n"
24784 msgstr ""
24785
24786 # type: =item
24787 #: ../tools/virt-resize.pl:138
24788 msgid "5. Resize"
24789 msgstr ""
24790
24791 # type: textblock
24792 #: ../tools/virt-resize.pl:140
24793 msgid ""
24794 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
24795 "file) and the output disk.  The output disk is the one created in the "
24796 "previous step."
24797 msgstr ""
24798
24799 # type: verbatim
24800 #: ../tools/virt-resize.pl:144
24801 #, no-wrap
24802 msgid ""
24803 " # virt-resize indisk outdisk\n"
24804 "\n"
24805 msgstr ""
24806
24807 # type: textblock
24808 #: ../tools/virt-resize.pl:146
24809 msgid ""
24810 "This command just copies disk image C<indisk> to disk image C<outdisk> "
24811 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
24812 "larger, then an extra, empty partition is created at the end of the disk "
24813 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
24814 "error."
24815 msgstr ""
24816
24817 # type: textblock
24818 #: ../tools/virt-resize.pl:152
24819 msgid ""
24820 "More realistically you'd want to expand existing partitions in the disk "
24821 "image by passing extra options (for the full list see the L</OPTIONS> "
24822 "section below)."
24823 msgstr ""
24824
24825 # type: textblock
24826 #: ../tools/virt-resize.pl:156
24827 msgid ""
24828 "L</--expand> is the most useful option.  It expands the named partition "
24829 "within the disk to fill any extra space:"
24830 msgstr ""
24831
24832 # type: verbatim
24833 #: ../tools/virt-resize.pl:159
24834 #, no-wrap
24835 msgid ""
24836 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
24837 "\n"
24838 msgstr ""
24839
24840 # type: textblock
24841 #: ../tools/virt-resize.pl:161
24842 msgid ""
24843 "(In this case, an extra partition is I<not> created at the end of the disk, "
24844 "because there will be no unused space)."
24845 msgstr ""
24846
24847 # type: textblock
24848 #: ../tools/virt-resize.pl:164
24849 msgid ""
24850 "L</--resize> is the other commonly used option.  The following would "
24851 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
24852 "rest of the available space:"
24853 msgstr ""
24854
24855 # type: verbatim
24856 #: ../tools/virt-resize.pl:168
24857 #, no-wrap
24858 msgid ""
24859 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
24860 "     indisk outdisk\n"
24861 "\n"
24862 msgstr ""
24863
24864 # type: textblock
24865 #: ../tools/virt-resize.pl:171
24866 msgid ""
24867 "If the expanded partition in the image contains a filesystem or LVM PV, then "
24868 "if virt-resize knows how, it will resize the contents, the equivalent of "
24869 "calling a command such as L<pvresize(8)>, L<resize2fs(8)> or "
24870 "L<ntfsresize(8)>.  However virt-resize does not know how to resize some "
24871 "filesystems, so you would have to online resize them after booting the "
24872 "guest.  And virt-resize also does not resize anything inside an LVM PV, it "
24873 "just resizes the PV itself and leaves the user to resize any LVs inside that "
24874 "PV as desired."
24875 msgstr ""
24876
24877 # type: textblock
24878 #: ../tools/virt-resize.pl:180
24879 msgid "Other options are covered below."
24880 msgstr ""
24881
24882 # type: =item
24883 #: ../tools/virt-resize.pl:182
24884 msgid "6. Test"
24885 msgstr ""
24886
24887 # type: textblock
24888 #: ../tools/virt-resize.pl:184
24889 msgid "Thoroughly test the new disk image I<before> discarding the old one."
24890 msgstr ""
24891
24892 # type: textblock
24893 #: ../tools/virt-resize.pl:186
24894 msgid "If you are using libvirt, edit the XML to point at the new disk:"
24895 msgstr ""
24896
24897 # type: verbatim
24898 #: ../tools/virt-resize.pl:188
24899 #, no-wrap
24900 msgid ""
24901 " # virsh edit guestname\n"
24902 "\n"
24903 msgstr ""
24904
24905 # type: textblock
24906 #: ../tools/virt-resize.pl:190
24907 msgid ""
24908 "Change E<lt>source ...E<gt>, see "
24909 "L<http://libvirt.org/formatdomain.html#elementsDisks>"
24910 msgstr ""
24911
24912 # type: textblock
24913 #: ../tools/virt-resize.pl:193
24914 msgid "Then start up the domain with the new, resized disk:"
24915 msgstr ""
24916
24917 # type: verbatim
24918 #: ../tools/virt-resize.pl:195
24919 #, no-wrap
24920 msgid ""
24921 " # virsh start guestname\n"
24922 "\n"
24923 msgstr ""
24924
24925 # type: textblock
24926 #: ../tools/virt-resize.pl:197
24927 msgid ""
24928 "and check that it still works.  See also the L</NOTES> section below for "
24929 "additional information."
24930 msgstr ""
24931
24932 # type: =item
24933 #: ../tools/virt-resize.pl:200
24934 msgid "7. Resize LVs etc inside the guest"
24935 msgstr ""
24936
24937 # type: textblock
24938 #: ../tools/virt-resize.pl:202
24939 msgid "(This can also be done offline using L<guestfish(1)>)"
24940 msgstr ""
24941
24942 # type: textblock
24943 #: ../tools/virt-resize.pl:204
24944 msgid ""
24945 "Once the guest has booted you should see the new space available, at least "
24946 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
24947 "may need to resize LVs inside PVs, and also resize filesystem types that "
24948 "virt-resize does not know how to expand."
24949 msgstr ""
24950
24951 # type: =head2
24952 #: ../tools/virt-resize.pl:211
24953 msgid "SHRINKING A VIRTUAL MACHINE DISK"
24954 msgstr ""
24955
24956 # type: textblock
24957 #: ../tools/virt-resize.pl:213
24958 msgid ""
24959 "Shrinking is somewhat more complex than expanding, and only an overview is "
24960 "given here."
24961 msgstr ""
24962
24963 # type: textblock
24964 #: ../tools/virt-resize.pl:216
24965 msgid ""
24966 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
24967 "filesystems).  The user has to shrink content before passing the disk image "
24968 "to virt-resize, and virt-resize will check that the content has been shrunk "
24969 "properly."
24970 msgstr ""
24971
24972 # type: textblock
24973 #: ../tools/virt-resize.pl:221
24974 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
24975 msgstr ""
24976
24977 # type: textblock
24978 #: ../tools/virt-resize.pl:223
24979 msgid ""
24980 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
24981 "steps 3 and 4 above to allocate a new disk image."
24982 msgstr ""
24983
24984 # type: textblock
24985 #: ../tools/virt-resize.pl:226
24986 msgid "Then run virt-resize with any of the C<--shrink> and/or C<--resize> options."
24987 msgstr ""
24988
24989 # type: =head2
24990 #: ../tools/virt-resize.pl:229
24991 msgid "IGNORING OR DELETING PARTITIONS"
24992 msgstr ""
24993
24994 # type: textblock
24995 #: ../tools/virt-resize.pl:231
24996 msgid ""
24997 "virt-resize also gives a convenient way to ignore or delete partitions when "
24998 "copying from the input disk to the output disk.  Ignoring a partition speeds "
24999 "up the copy where you don't care about the existing contents of a "
25000 "partition.  Deleting a partition removes it completely, but note that it "
25001 "also renumbers any partitions after the one which is deleted, which can "
25002 "leave some guests unbootable."
25003 msgstr ""
25004
25005 # type: =head2
25006 #: ../tools/virt-resize.pl:238
25007 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
25008 msgstr ""
25009
25010 # type: textblock
25011 #: ../tools/virt-resize.pl:240
25012 msgid ""
25013 "If the input disk is in qcow2 format, then you may prefer that the output is "
25014 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
25015 "the fly.  The output format is simply determined by the format of the empty "
25016 "output container that you provide.  Thus to create qcow2 output, use:"
25017 msgstr ""
25018
25019 # type: verbatim
25020 #: ../tools/virt-resize.pl:246
25021 #, no-wrap
25022 msgid ""
25023 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
25024 "\n"
25025 msgstr ""
25026
25027 # type: textblock
25028 #: ../tools/virt-resize.pl:248
25029 msgid "instead of the truncate command (use C<-c> for a compressed disk)."
25030 msgstr ""
25031
25032 # type: textblock
25033 #: ../tools/virt-resize.pl:250
25034 msgid "Similarly, to get non-sparse raw output use:"
25035 msgstr ""
25036
25037 # type: verbatim
25038 #: ../tools/virt-resize.pl:252
25039 #, no-wrap
25040 msgid ""
25041 " fallocate -l size outdisk\n"
25042 "\n"
25043 msgstr ""
25044
25045 # type: textblock
25046 #: ../tools/virt-resize.pl:254
25047 msgid ""
25048 "(on older systems that don't have the L<fallocate(1)> command use C<dd "
25049 "if=/dev/zero of=outdisk bs=1M count=..>)"
25050 msgstr ""
25051
25052 # type: textblock
25053 #: ../tools/virt-resize.pl:267
25054 msgid "Display help."
25055 msgstr ""
25056
25057 # type: =item
25058 #: ../tools/virt-resize.pl:281
25059 msgid "B<--resize part=size>"
25060 msgstr ""
25061
25062 # type: textblock
25063 #: ../tools/virt-resize.pl:283
25064 msgid ""
25065 "Resize the named partition (expanding or shrinking it) so that it has the "
25066 "given size."
25067 msgstr ""
25068
25069 # type: textblock
25070 #: ../tools/virt-resize.pl:286
25071 msgid ""
25072 "C<size> can be expressed as an absolute number followed by b/K/M/G/T/P/E to "
25073 "mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Petabytes or "
25074 "Exabytes; or as a percentage of the current size; or as a relative number or "
25075 "percentage.  For example:"
25076 msgstr ""
25077
25078 # type: verbatim
25079 #: ../tools/virt-resize.pl:291
25080 #, no-wrap
25081 msgid ""
25082 " --resize /dev/sda2=10G\n"
25083 "\n"
25084 msgstr ""
25085
25086 # type: verbatim
25087 #: ../tools/virt-resize.pl:293
25088 #, no-wrap
25089 msgid ""
25090 " --resize /dev/sda4=90%\n"
25091 "\n"
25092 msgstr ""
25093
25094 # type: verbatim
25095 #: ../tools/virt-resize.pl:295
25096 #, no-wrap
25097 msgid ""
25098 " --resize /dev/sda2=+1G\n"
25099 "\n"
25100 msgstr ""
25101
25102 # type: verbatim
25103 #: ../tools/virt-resize.pl:297
25104 #, no-wrap
25105 msgid ""
25106 " --resize /dev/sda2=-200M\n"
25107 "\n"
25108 msgstr ""
25109
25110 # type: verbatim
25111 #: ../tools/virt-resize.pl:299
25112 #, no-wrap
25113 msgid ""
25114 " --resize /dev/sda1=+128K\n"
25115 "\n"
25116 msgstr ""
25117
25118 # type: verbatim
25119 #: ../tools/virt-resize.pl:301
25120 #, no-wrap
25121 msgid ""
25122 " --resize /dev/sda1=+10%\n"
25123 "\n"
25124 msgstr ""
25125
25126 # type: verbatim
25127 #: ../tools/virt-resize.pl:303
25128 #, no-wrap
25129 msgid ""
25130 " --resize /dev/sda1=-10%\n"
25131 "\n"
25132 msgstr ""
25133
25134 # type: textblock
25135 #: ../tools/virt-resize.pl:305
25136 msgid ""
25137 "You can increase the size of any partition.  Virt-resize will expand the "
25138 "direct content of the partition if it knows how (see C<--expand> below)."
25139 msgstr ""
25140
25141 # type: textblock
25142 #: ../tools/virt-resize.pl:309
25143 msgid ""
25144 "You can only I<decrease> the size of partitions that contain filesystems or "
25145 "PVs which have already been shrunk.  Virt-resize will check this has been "
25146 "done before proceeding, or else will print an error (see also "
25147 "C<--resize-force>)."
25148 msgstr ""
25149
25150 # type: textblock
25151 #: ../tools/virt-resize.pl:314 ../tools/virt-resize.pl:406 ../tools/virt-resize.pl:423
25152 msgid "You can give this option multiple times."
25153 msgstr ""
25154
25155 # type: =item
25156 #: ../tools/virt-resize.pl:320
25157 msgid "B<--resize-force part=size>"
25158 msgstr ""
25159
25160 # type: textblock
25161 #: ../tools/virt-resize.pl:322
25162 msgid ""
25163 "This is the same as C<--resize> except that it will let you decrease the "
25164 "size of any partition.  Generally this means you will lose any data which "
25165 "was at the end of the partition you shrink, but you may not care about that "
25166 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
25167 "as a swap partition)."
25168 msgstr ""
25169
25170 # type: textblock
25171 #: ../tools/virt-resize.pl:328
25172 msgid "See also the C<--ignore> option."
25173 msgstr ""
25174
25175 # type: =item
25176 #: ../tools/virt-resize.pl:334
25177 msgid "B<--expand part>"
25178 msgstr ""
25179
25180 # type: textblock
25181 #: ../tools/virt-resize.pl:336
25182 msgid ""
25183 "Expand the named partition so it uses up all extra space (space left over "
25184 "after any other resize changes that you request have been done)."
25185 msgstr ""
25186
25187 # type: textblock
25188 #: ../tools/virt-resize.pl:339
25189 msgid ""
25190 "If virt-resize knows how, it will expand the direct content of the "
25191 "partition.  For example, if the partition is an LVM PV, it will expand the "
25192 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
25193 "content it doesn't know about alone."
25194 msgstr ""
25195
25196 # type: textblock
25197 #: ../tools/virt-resize.pl:344
25198 msgid "Currently virt-resize can resize:"
25199 msgstr ""
25200
25201 # type: textblock
25202 #: ../tools/virt-resize.pl:350
25203 msgid ""
25204 "ext2, ext3 and ext4 filesystems when they are contained directly inside a "
25205 "partition."
25206 msgstr ""
25207
25208 # type: textblock
25209 #: ../tools/virt-resize.pl:355
25210 msgid ""
25211 "NTFS filesystems contained directly in a partition, if libguestfs was "
25212 "compiled with support for NTFS."
25213 msgstr ""
25214
25215 # type: textblock
25216 #: ../tools/virt-resize.pl:358
25217 msgid ""
25218 "The filesystem must have been shut down consistently last time it was used.  "
25219 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
25220 "consistency check, so at the first boot after resizing Windows will check "
25221 "the disk."
25222 msgstr ""
25223
25224 # type: textblock
25225 #: ../tools/virt-resize.pl:365
25226 msgid ""
25227 "LVM PVs (physical volumes).  However virt-resize does I<not> resize anything "
25228 "inside the PV.  The user will have to resize LVs as desired."
25229 msgstr ""
25230
25231 # type: textblock
25232 #: ../tools/virt-resize.pl:371 ../tools/virt-resize.pl:393
25233 msgid "Note that you cannot use C<--expand> and C<--shrink> together."
25234 msgstr ""
25235
25236 # type: =item
25237 #: ../tools/virt-resize.pl:377
25238 msgid "B<--shrink part>"
25239 msgstr ""
25240
25241 # type: textblock
25242 #: ../tools/virt-resize.pl:379
25243 msgid ""
25244 "Shrink the named partition until the overall disk image fits in the "
25245 "destination.  The named partition B<must> contain a filesystem or PV which "
25246 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
25247 "online tools).  Virt-resize will check this and give an error if it has not "
25248 "been done."
25249 msgstr ""
25250
25251 # type: textblock
25252 #: ../tools/virt-resize.pl:385
25253 msgid ""
25254 "The amount by which the overall disk must be shrunk (after carrying out all "
25255 "other operations requested by the user) is called the \"deficit\".  For "
25256 "example, a straight copy (assume no other operations)  from a 5GB disk image "
25257 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
25258 "would give an error unless the user specified a partition to shrink and that "
25259 "partition had more than a gigabyte of free space."
25260 msgstr ""
25261
25262 # type: =item
25263 #: ../tools/virt-resize.pl:399
25264 msgid "B<--ignore part>"
25265 msgstr ""
25266
25267 # type: textblock
25268 #: ../tools/virt-resize.pl:401
25269 msgid ""
25270 "Ignore the named partition.  Effectively this means the partition is "
25271 "allocated on the destination disk, but the content is not copied across from "
25272 "the source disk.  The content of the partition will be blank (all zero "
25273 "bytes)."
25274 msgstr ""
25275
25276 # type: =item
25277 #: ../tools/virt-resize.pl:412
25278 msgid "B<--delete part>"
25279 msgstr ""
25280
25281 # type: textblock
25282 #: ../tools/virt-resize.pl:414
25283 msgid ""
25284 "Delete the named partition.  It would be more accurate to describe this as "
25285 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
25286 "the original disk image is left intact."
25287 msgstr ""
25288
25289 # type: textblock
25290 #: ../tools/virt-resize.pl:418
25291 msgid ""
25292 "Note that when you delete a partition, then anything contained in the "
25293 "partition is also deleted.  Furthermore, this causes any partitions that "
25294 "come after to be I<renumbered>, which can easily make your guest unbootable."
25295 msgstr ""
25296
25297 # type: =item
25298 #: ../tools/virt-resize.pl:429
25299 msgid "B<--LV-expand logvol>"
25300 msgstr ""
25301
25302 # type: textblock
25303 #: ../tools/virt-resize.pl:431
25304 msgid ""
25305 "This takes the logical volume and, as a final step, expands it to fill all "
25306 "the space available in its volume group.  A typical usage, assuming a Linux "
25307 "guest with a single PV C</dev/sda2> and a root device called "
25308 "C</dev/vg_guest/lv_root> would be:"
25309 msgstr ""
25310
25311 # type: verbatim
25312 #: ../tools/virt-resize.pl:436
25313 #, no-wrap
25314 msgid ""
25315 " virt-resize indisk outdisk \\\n"
25316 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
25317 "\n"
25318 msgstr ""
25319
25320 # type: textblock
25321 #: ../tools/virt-resize.pl:439
25322 msgid ""
25323 "This would first expand the partition (and PV), and then expand the root "
25324 "device to fill the extra space in the PV."
25325 msgstr ""
25326
25327 # type: textblock
25328 #: ../tools/virt-resize.pl:442
25329 msgid ""
25330 "The contents of the LV are also resized if virt-resize knows how to do "
25331 "that.  You can stop virt-resize from trying to expand the content by using "
25332 "the option C<--no-expand-content>."
25333 msgstr ""
25334
25335 # type: textblock
25336 #: ../tools/virt-resize.pl:446
25337 msgid "Use L<virt-list-filesystems(1)> to list the filesystems in the guest."
25338 msgstr ""
25339
25340 # type: textblock
25341 #: ../tools/virt-resize.pl:449
25342 msgid ""
25343 "You can give this option multiple times, I<but> it doesn't make sense to do "
25344 "this unless the logical volumes you specify are all in different volume "
25345 "groups."
25346 msgstr ""
25347
25348 # type: =item
25349 #: ../tools/virt-resize.pl:457
25350 msgid "B<--no-copy-boot-loader>"
25351 msgstr ""
25352
25353 # type: textblock
25354 #: ../tools/virt-resize.pl:459
25355 msgid ""
25356 "By default, virt-resize copies over some sectors at the start of the disk "
25357 "(up to the beginning of the first partition).  Commonly these sectors "
25358 "contain the Master Boot Record (MBR) and the boot loader, and are required "
25359 "in order for the guest to boot correctly."
25360 msgstr ""
25361
25362 # type: textblock
25363 #: ../tools/virt-resize.pl:464
25364 msgid ""
25365 "If you specify this flag, then this initial copy is not done.  You may need "
25366 "to reinstall the boot loader in this case."
25367 msgstr ""
25368
25369 # type: =item
25370 #: ../tools/virt-resize.pl:472
25371 msgid "B<--no-extra-partition>"
25372 msgstr ""
25373
25374 # type: textblock
25375 #: ../tools/virt-resize.pl:474
25376 msgid ""
25377 "By default, virt-resize creates an extra partition if there is any extra, "
25378 "unused space after all resizing has happened.  Use this option to prevent "
25379 "the extra partition from being created.  If you do this then the extra space "
25380 "will be inaccessible until you run fdisk, parted, or some other partitioning "
25381 "tool in the guest."
25382 msgstr ""
25383
25384 # type: textblock
25385 #: ../tools/virt-resize.pl:480
25386 msgid ""
25387 "Note that if the surplus space is smaller than 10 MB, no extra partition "
25388 "will be created."
25389 msgstr ""
25390
25391 # type: =item
25392 #: ../tools/virt-resize.pl:487
25393 msgid "B<--no-expand-content>"
25394 msgstr ""
25395
25396 # type: textblock
25397 #: ../tools/virt-resize.pl:489
25398 msgid ""
25399 "By default, virt-resize will try to expand the direct contents of "
25400 "partitions, if it knows how (see C<--expand> option above)."
25401 msgstr ""
25402
25403 # type: textblock
25404 #: ../tools/virt-resize.pl:492
25405 msgid ""
25406 "If you give the C<--no-expand-content> option then virt-resize will not "
25407 "attempt this."
25408 msgstr ""
25409
25410 # type: =item
25411 #: ../tools/virt-resize.pl:499
25412 msgid "B<-d> | B<--debug>"
25413 msgstr ""
25414
25415 # type: =item
25416 #: ../tools/virt-resize.pl:507
25417 msgid "B<-n> | B<--dryrun>"
25418 msgstr ""
25419
25420 # type: textblock
25421 #: ../tools/virt-resize.pl:509
25422 msgid "Print a summary of what would be done, but don't do anything."
25423 msgstr ""
25424
25425 # type: =item
25426 #: ../tools/virt-resize.pl:515
25427 msgid "B<-q> | B<--quiet>"
25428 msgstr ""
25429
25430 # type: textblock
25431 #: ../tools/virt-resize.pl:517
25432 msgid "Don't print the summary."
25433 msgstr ""
25434
25435 # type: =head2
25436 #: ../tools/virt-resize.pl:1383 ../tools/virt-rescue.pl:90
25437 msgid "NOTES"
25438 msgstr ""
25439
25440 # type: =head2
25441 #: ../tools/virt-resize.pl:1385
25442 msgid "\"Partition 1 does not end on cylinder boundary.\""
25443 msgstr ""
25444
25445 # type: textblock
25446 #: ../tools/virt-resize.pl:1387
25447 msgid ""
25448 "Virt-resize aligns partitions to multiples of 64 sectors.  Usually this "
25449 "means the partitions will not be aligned to the ancient CHS geometry.  "
25450 "However CHS geometry is meaningless for disks manufactured since the early "
25451 "1990s, and doubly so for virtual hard drives.  Alignment of partitions to "
25452 "cylinders is not required by any modern operating system."
25453 msgstr ""
25454
25455 # type: =head2
25456 #: ../tools/virt-resize.pl:1394
25457 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
25458 msgstr ""
25459
25460 # type: textblock
25461 #: ../tools/virt-resize.pl:1396
25462 msgid ""
25463 "In Windows Vista and later versions, Microsoft switched to using a separate "
25464 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
25465 "and C</dev/sda2> is the main (C:) drive.  We have not had any luck resizing "
25466 "the boot partition.  Doing so seems to break the guest completely.  However "
25467 "expanding the second partition (ie. C: drive) should work."
25468 msgstr ""
25469
25470 # type: textblock
25471 #: ../tools/virt-resize.pl:1403
25472 msgid ""
25473 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
25474 "NTFS partitions have been expanded.  This is just a safety check and (unless "
25475 "it find errors) is nothing to worry about."
25476 msgstr ""
25477
25478 # type: =head2
25479 #: ../tools/virt-resize.pl:1407
25480 msgid "GUEST BOOT STUCK AT \"GRUB\""
25481 msgstr ""
25482
25483 # type: textblock
25484 #: ../tools/virt-resize.pl:1409
25485 msgid ""
25486 "If a Linux guest does not boot after resizing, and the boot is stuck after "
25487 "printing C<GRUB> on the console, try reinstalling grub.  This sometimes "
25488 "happens on older (RHEL 5-era) guests, for reasons we don't fully understand, "
25489 "although we think is to do with partition alignment."
25490 msgstr ""
25491
25492 # type: verbatim
25493 #: ../tools/virt-resize.pl:1414
25494 #, no-wrap
25495 msgid ""
25496 " guestfish -i -a newdisk\n"
25497 " ><fs> cat /boot/grub/device.map\n"
25498 " # check the contents of this file are sensible or\n"
25499 " # edit the file if necessary\n"
25500 " ><fs> grub-install / /dev/vda\n"
25501 " ><fs> exit\n"
25502 "\n"
25503 msgstr ""
25504
25505 # type: textblock
25506 #: ../tools/virt-resize.pl:1421
25507 msgid ""
25508 "For more flexible guest reconfiguration, including if you need to specify "
25509 "other parameters to grub-install, use L<virt-rescue(1)>."
25510 msgstr ""
25511
25512 # type: =head1
25513 #: ../tools/virt-resize.pl:1424
25514 msgid "ALTERNATIVE TOOLS"
25515 msgstr ""
25516
25517 # type: textblock
25518 #: ../tools/virt-resize.pl:1426
25519 msgid ""
25520 "There are several proprietary tools for resizing partitions.  We won't "
25521 "mention any here."
25522 msgstr ""
25523
25524 # type: textblock
25525 #: ../tools/virt-resize.pl:1429
25526 msgid ""
25527 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
25528 "operations on disk images.  They can resize and move partitions, but I don't "
25529 "think they can do anything with the contents, and they certainly don't "
25530 "understand LVM."
25531 msgstr ""
25532
25533 # type: textblock
25534 #: ../tools/virt-resize.pl:1434
25535 msgid ""
25536 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
25537 "but at a much lower level.  You will probably end up hand-calculating sector "
25538 "offsets, which is something that virt-resize was designed to avoid.  If you "
25539 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
25540 "C<--debug> flag."
25541 msgstr ""
25542
25543 # type: textblock
25544 #: ../tools/virt-resize.pl:1449
25545 msgid ""
25546 "L<virt-list-partitions(1)>, L<virt-list-filesystems(1)>, L<virt-df(1)>, "
25547 "L<guestfs(3)>, L<guestfish(1)>, L<lvm(8)>, L<pvresize(8)>, L<lvresize(8)>, "
25548 "L<resize2fs(8)>, L<ntfsresize(8)>, L<virsh(1)>, L<parted(8)>, "
25549 "L<truncate(1)>, L<fallocate(1)>, L<grub(8)>, L<grub-install(8)>, "
25550 "L<virt-rescue(1)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
25551 msgstr ""
25552
25553 # type: textblock
25554 #: ../tools/virt-list-filesystems.pl:32
25555 msgid "virt-list-filesystems - List filesystems in a virtual machine or disk image"
25556 msgstr ""
25557
25558 # type: verbatim
25559 #: ../tools/virt-list-filesystems.pl:36
25560 #, no-wrap
25561 msgid ""
25562 " virt-list-filesystems [--options] domname\n"
25563 "\n"
25564 msgstr ""
25565
25566 # type: verbatim
25567 #: ../tools/virt-list-filesystems.pl:38
25568 #, no-wrap
25569 msgid ""
25570 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
25571 "\n"
25572 msgstr ""
25573
25574 # type: textblock
25575 #: ../tools/virt-list-filesystems.pl:42
25576 msgid ""
25577 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
25578 "are contained in a virtual machine or disk image."
25579 msgstr ""
25580
25581 # type: textblock
25582 #: ../tools/virt-list-filesystems.pl:46
25583 msgid ""
25584 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
25585 "functionality.  For more complex cases you should look at the "
25586 "L<guestfish(1)> tool."
25587 msgstr ""
25588
25589 # type: textblock
25590 #: ../tools/virt-list-filesystems.pl:88
25591 msgid ""
25592 "With this option, C<virt-list-filesystems> displays the type of each "
25593 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
25594 msgstr ""
25595
25596 # type: =item
25597 #: ../tools/virt-list-filesystems.pl:95
25598 msgid "B<-a> | B<--all>"
25599 msgstr ""
25600
25601 # type: textblock
25602 #: ../tools/virt-list-filesystems.pl:97
25603 msgid ""
25604 "Normally we only show mountable filesystems.  If this option is given then "
25605 "swap devices are shown too."
25606 msgstr ""
25607
25608 # type: textblock
25609 #: ../tools/virt-list-filesystems.pl:200
25610 msgid ""
25611 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, "
25612 "L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
25613 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
25614 msgstr ""
25615
25616 # type: textblock
25617 #: ../tools/virt-cat.pl:34
25618 msgid "virt-cat - Display a file in a virtual machine"
25619 msgstr ""
25620
25621 # type: verbatim
25622 #: ../tools/virt-cat.pl:38
25623 #, no-wrap
25624 msgid ""
25625 " virt-cat [--options] domname file\n"
25626 "\n"
25627 msgstr ""
25628
25629 # type: verbatim
25630 #: ../tools/virt-cat.pl:40
25631 #, no-wrap
25632 msgid ""
25633 " virt-cat [--options] disk.img [disk.img ...] file\n"
25634 "\n"
25635 msgstr ""
25636
25637 # type: textblock
25638 #: ../tools/virt-cat.pl:44
25639 msgid ""
25640 "C<virt-cat> is a command line tool to display the contents of C<file> where "
25641 "C<file> exists in the named virtual machine (or disk image)."
25642 msgstr ""
25643
25644 # type: textblock
25645 #: ../tools/virt-cat.pl:47
25646 msgid ""
25647 "C<virt-cat> can be used to quickly view a single file.  To edit a file, use "
25648 "C<virt-edit>.  For more complex cases you should look at the L<guestfish(1)> "
25649 "tool."
25650 msgstr ""
25651
25652 # type: textblock
25653 #: ../tools/virt-cat.pl:53
25654 msgid "Display C</etc/fstab> file from inside the libvirt VM called C<mydomain>:"
25655 msgstr ""
25656
25657 # type: verbatim
25658 #: ../tools/virt-cat.pl:56
25659 #, no-wrap
25660 msgid ""
25661 " virt-cat mydomain /etc/fstab\n"
25662 "\n"
25663 msgstr ""
25664
25665 # type: textblock
25666 #: ../tools/virt-cat.pl:58
25667 msgid "List syslog messages from a VM:"
25668 msgstr ""
25669
25670 # type: verbatim
25671 #: ../tools/virt-cat.pl:60
25672 #, no-wrap
25673 msgid ""
25674 " virt-cat mydomain /var/log/messages | tail\n"
25675 "\n"
25676 msgstr ""
25677
25678 # type: textblock
25679 #: ../tools/virt-cat.pl:62
25680 msgid "Find out what DHCP IP address a VM acquired:"
25681 msgstr ""
25682
25683 # type: verbatim
25684 #: ../tools/virt-cat.pl:64
25685 #, no-wrap
25686 msgid ""
25687 " virt-cat mydomain /var/log/messages | grep 'dhclient: bound to' | tail\n"
25688 "\n"
25689 msgstr ""
25690
25691 # type: textblock
25692 #: ../tools/virt-cat.pl:66
25693 msgid "Find out what packages were recently installed:"
25694 msgstr ""
25695
25696 # type: verbatim
25697 #: ../tools/virt-cat.pl:68
25698 #, no-wrap
25699 msgid ""
25700 " virt-cat mydomain /var/log/yum.log | tail\n"
25701 "\n"
25702 msgstr ""
25703
25704 # type: textblock
25705 #: ../tools/virt-cat.pl:70
25706 msgid "Find out who is logged on inside a virtual machine:"
25707 msgstr ""
25708
25709 # type: verbatim
25710 #: ../tools/virt-cat.pl:72
25711 #, no-wrap
25712 msgid ""
25713 " virt-cat mydomain /var/run/utmp > /tmp/utmp\n"
25714 " who /tmp/utmp\n"
25715 "\n"
25716 msgstr ""
25717
25718 # type: textblock
25719 #: ../tools/virt-cat.pl:75
25720 msgid "or who was logged on:"
25721 msgstr ""
25722
25723 # type: verbatim
25724 #: ../tools/virt-cat.pl:77
25725 #, no-wrap
25726 msgid ""
25727 " virt-cat mydomain /var/log/wtmp > /tmp/wtmp\n"
25728 " last -f /tmp/wtmp\n"
25729 "\n"
25730 msgstr ""
25731
25732 # type: textblock
25733 #: ../tools/virt-cat.pl:172
25734 msgid ""
25735 "L<guestfs(3)>, L<guestfish(1)>, L<virt-edit(1)>, L<Sys::Guestfs(3)>, "
25736 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
25737 msgstr ""
25738
25739 # type: textblock
25740 #: ../tools/virt-tar.pl:34
25741 msgid "virt-tar - Extract or upload files to a virtual machine"
25742 msgstr ""
25743
25744 # type: verbatim
25745 #: ../tools/virt-tar.pl:38
25746 #, no-wrap
25747 msgid ""
25748 " virt-tar [--options] -x domname directory tarball\n"
25749 "\n"
25750 msgstr ""
25751
25752 # type: verbatim
25753 #: ../tools/virt-tar.pl:40
25754 #, no-wrap
25755 msgid ""
25756 " virt-tar [--options] -u domname tarball directory\n"
25757 "\n"
25758 msgstr ""
25759
25760 # type: verbatim
25761 #: ../tools/virt-tar.pl:42
25762 #, no-wrap
25763 msgid ""
25764 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
25765 "\n"
25766 msgstr ""
25767
25768 # type: verbatim
25769 #: ../tools/virt-tar.pl:44
25770 #, no-wrap
25771 msgid ""
25772 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
25773 "\n"
25774 msgstr ""
25775
25776 # type: textblock
25777 #: ../tools/virt-tar.pl:48
25778 msgid "Download C</home> from the VM into a local tarball:"
25779 msgstr ""
25780
25781 # type: verbatim
25782 #: ../tools/virt-tar.pl:50
25783 #, no-wrap
25784 msgid ""
25785 " virt-tar -x domname /home home.tar\n"
25786 "\n"
25787 msgstr ""
25788
25789 # type: verbatim
25790 #: ../tools/virt-tar.pl:52
25791 #, no-wrap
25792 msgid ""
25793 " virt-tar -zx domname /home home.tar.gz\n"
25794 "\n"
25795 msgstr ""
25796
25797 # type: textblock
25798 #: ../tools/virt-tar.pl:54
25799 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
25800 msgstr ""
25801
25802 # type: verbatim
25803 #: ../tools/virt-tar.pl:56
25804 #, no-wrap
25805 msgid ""
25806 " virt-tar -u domname uploadstuff.tar /tmp\n"
25807 "\n"
25808 msgstr ""
25809
25810 # type: verbatim
25811 #: ../tools/virt-tar.pl:58
25812 #, no-wrap
25813 msgid ""
25814 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
25815 "\n"
25816 msgstr ""
25817
25818 # type: textblock
25819 #: ../tools/virt-tar.pl:62
25820 msgid ""
25821 "You must I<not> use C<virt-tar> with the C<-u> option (upload) on live "
25822 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
25823 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
25824 msgstr ""
25825
25826 # type: textblock
25827 #: ../tools/virt-tar.pl:67
25828 msgid ""
25829 "You can use C<-x> (extract) on live virtual machines, but you might get "
25830 "inconsistent results or errors if there is filesystem activity inside the "
25831 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
25832 "work, but the only way to guarantee consistent results is if the virtual "
25833 "machine is shut down."
25834 msgstr ""
25835
25836 # type: textblock
25837 #: ../tools/virt-tar.pl:75
25838 msgid ""
25839 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
25840 "parts of a guest filesystem.  There are many possibilities: making backups, "
25841 "uploading data files, snooping on guest activity, fixing or customizing "
25842 "guests, etc."
25843 msgstr ""
25844
25845 # type: textblock
25846 #: ../tools/virt-tar.pl:80
25847 msgid ""
25848 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
25849 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
25850 "should look at the L<guestfish(1)> tool."
25851 msgstr ""
25852
25853 # type: textblock
25854 #: ../tools/virt-tar.pl:84
25855 msgid ""
25856 "There are two modes of operation: C<-x> (eXtract) downloads a directory and "
25857 "its contents (recursively) from the virtual machine into a local tarball.  "
25858 "C<-u> uploads from a local tarball, unpacking it into a directory inside the "
25859 "virtual machine.  You cannot use these two options together."
25860 msgstr ""
25861
25862 # type: textblock
25863 #: ../tools/virt-tar.pl:90
25864 msgid ""
25865 "In addition, you may need to use the C<-z> (gZip) option to enable "
25866 "compression.  When uploading, you have to specify C<-z> if the upload file "
25867 "is compressed because virt-tar won't detect this on its own."
25868 msgstr ""
25869
25870 # type: textblock
25871 #: ../tools/virt-tar.pl:94
25872 msgid ""
25873 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
25874 "example it cannot do PKZip files or bzip2 compression.  If you want that "
25875 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
25876 "the L<libguestfs(3)> API)."
25877 msgstr ""
25878
25879 # type: =item
25880 #: ../tools/virt-tar.pl:135
25881 msgid "B<-x> | B<--extract> | B<--download>"
25882 msgstr ""
25883
25884 # type: =item
25885 #: ../tools/virt-tar.pl:137
25886 msgid "B<-u> | B<--upload>"
25887 msgstr ""
25888
25889 # type: textblock
25890 #: ../tools/virt-tar.pl:139
25891 msgid ""
25892 "Use C<-x> to extract (download) a directory from a virtual machine to a "
25893 "local tarball."
25894 msgstr ""
25895
25896 # type: textblock
25897 #: ../tools/virt-tar.pl:142
25898 msgid ""
25899 "Use C<-u> to upload and unpack from a local tarball into a virtual machine.  "
25900 "Please read the L</WARNING> section above before using this option."
25901 msgstr ""
25902
25903 # type: textblock
25904 #: ../tools/virt-tar.pl:146
25905 msgid "You must specify exactly one of these options."
25906 msgstr ""
25907
25908 # type: =item
25909 #: ../tools/virt-tar.pl:152
25910 msgid "B<-z> | B<--gzip>"
25911 msgstr ""
25912
25913 # type: textblock
25914 #: ../tools/virt-tar.pl:154
25915 msgid "Specify that the input or output tarball is gzip-compressed."
25916 msgstr ""
25917
25918 # type: textblock
25919 #: ../tools/virt-tar.pl:266
25920 msgid ""
25921 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
25922 "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
25923 "L<http://libguestfs.org/>."
25924 msgstr ""
25925
25926 # type: textblock
25927 #: ../tools/virt-rescue.pl:33
25928 msgid "virt-rescue - Run a rescue shell on a virtual machine"
25929 msgstr ""
25930
25931 # type: verbatim
25932 #: ../tools/virt-rescue.pl:37
25933 #, no-wrap
25934 msgid ""
25935 " virt-rescue [--options] domname\n"
25936 "\n"
25937 msgstr ""
25938
25939 # type: verbatim
25940 #: ../tools/virt-rescue.pl:39
25941 #, no-wrap
25942 msgid ""
25943 " virt-rescue [--options] disk.img [disk.img ...]\n"
25944 "\n"
25945 msgstr ""
25946
25947 # type: textblock
25948 #: ../tools/virt-rescue.pl:43
25949 msgid ""
25950 "You must I<not> use C<virt-rescue> on live virtual machines.  Doing so will "
25951 "probably result in disk corruption in the VM.  C<virt-rescue> tries to stop "
25952 "you from doing this, but doesn't catch all cases."
25953 msgstr ""
25954
25955 # type: textblock
25956 #: ../tools/virt-rescue.pl:47
25957 msgid ""
25958 "However if you use the I<--ro> (read only) option, then you can attach a "
25959 "shell to a live virtual machine.  The results might be strange or "
25960 "inconsistent at times but you won't get disk corruption."
25961 msgstr ""
25962
25963 # type: textblock
25964 #: ../tools/virt-rescue.pl:53
25965 msgid ""
25966 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
25967 "need for a CD.  virt-rescue gives you a rescue shell and some simple "
25968 "recovery tools which you can use to examine or rescue a virtual machine or "
25969 "disk image."
25970 msgstr ""
25971
25972 # type: textblock
25973 #: ../tools/virt-rescue.pl:58
25974 msgid ""
25975 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
25976 "on disk image(s):"
25977 msgstr ""
25978
25979 # type: verbatim
25980 #: ../tools/virt-rescue.pl:61
25981 #, no-wrap
25982 msgid ""
25983 " virt-rescue GuestName\n"
25984 "\n"
25985 msgstr ""
25986
25987 # type: verbatim
25988 #: ../tools/virt-rescue.pl:63
25989 #, no-wrap
25990 msgid ""
25991 " virt-rescue --ro /path/to/disk.img\n"
25992 "\n"
25993 msgstr ""
25994
25995 # type: verbatim
25996 #: ../tools/virt-rescue.pl:65
25997 #, no-wrap
25998 msgid ""
25999 " virt-rescue /dev/sdc\n"
26000 "\n"
26001 msgstr ""
26002
26003 # type: textblock
26004 #: ../tools/virt-rescue.pl:67
26005 msgid "For live VMs you I<must> use the --ro option."
26006 msgstr ""
26007
26008 # type: textblock
26009 #: ../tools/virt-rescue.pl:69
26010 msgid ""
26011 "When you run virt-rescue on a virtual machine or disk image, you are placed "
26012 "in an interactive bash shell where you can use many ordinary Linux "
26013 "commands.  What you see in C</> (C</bin>, C</lib> etc) is the rescue "
26014 "appliance.  You must mount the virtual machine's filesystems by hand.  There "
26015 "is an empty directory called C</sysroot> where you can mount filesystems."
26016 msgstr ""
26017
26018 # type: textblock
26019 #: ../tools/virt-rescue.pl:76
26020 msgid ""
26021 "In the example below, we list logical volumes, then choose one to mount "
26022 "under C</sysroot>:"
26023 msgstr ""
26024
26025 # type: verbatim
26026 #: ../tools/virt-rescue.pl:79
26027 #, no-wrap
26028 msgid ""
26029 " ><rescue> lvs\n"
26030 " LV      VG        Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n"
26031 " lv_root vg_f11x64 -wi-a-   8.83G\n"
26032 " lv_swap vg_f11x64 -wi-a- 992.00M\n"
26033 " ><rescue> mount /dev/vg_f11x64/lv_root /sysroot\n"
26034 " ><rescue> ls /sysroot\n"
26035 "\n"
26036 msgstr ""
26037
26038 # type: textblock
26039 #: ../tools/virt-rescue.pl:86
26040 msgid ""
26041 "If you don't know what filesystems are available on the virtual machine then "
26042 "you can use commands such as L<parted(8)> and L<lvs(8)> to find out."
26043 msgstr ""
26044
26045 # type: textblock
26046 #: ../tools/virt-rescue.pl:92
26047 msgid ""
26048 "Virt-rescue can be used on I<any> disk image file or device, not just a "
26049 "virtual machine.  For example you can use it on a blank file if you want to "
26050 "partition that file (although we would recommend using L<guestfish(1)> "
26051 "instead as it is more suitable for this purpose).  You can even use "
26052 "virt-rescue on things like SD cards."
26053 msgstr ""
26054
26055 # type: textblock
26056 #: ../tools/virt-rescue.pl:98
26057 msgid ""
26058 "This tool is just designed for quick interactive hacking on a virtual "
26059 "machine.  For more structured access to a virtual machine disk image, you "
26060 "should use L<guestfs(3)>.  To get a structured shell that you can use to "
26061 "make scripted changes to guests, use L<guestfish(1)>."
26062 msgstr ""
26063
26064 # type: =item
26065 #: ../tools/virt-rescue.pl:127
26066 msgid "B<--append kernelopts>"
26067 msgstr ""
26068
26069 # type: textblock
26070 #: ../tools/virt-rescue.pl:129
26071 msgid "Pass additional options to the rescue kernel."
26072 msgstr ""
26073
26074 # type: =item
26075 #: ../tools/virt-rescue.pl:147
26076 msgid "B<--memsize MB> | B<-m MB>"
26077 msgstr ""
26078
26079 # type: textblock
26080 #: ../tools/virt-rescue.pl:149
26081 msgid ""
26082 "Change the amount of memory allocated to the rescue system.  The default is "
26083 "set by libguestfs and is small but adequate for running system tools.  The "
26084 "occasional program might need more memory.  The parameter is specified in "
26085 "megabytes."
26086 msgstr ""
26087
26088 # type: =item
26089 #: ../tools/virt-rescue.pl:158
26090 msgid "B<--ro> | B<-r>"
26091 msgstr ""
26092
26093 # type: textblock
26094 #: ../tools/virt-rescue.pl:160
26095 msgid "Open the image read-only."
26096 msgstr ""
26097
26098 # type: textblock
26099 #: ../tools/virt-rescue.pl:172
26100 msgid ""
26101 "Enable SELinux in the rescue appliance.  You should read "
26102 "L<guestfs(3)/SELINUX> before using this option."
26103 msgstr ""
26104
26105 # type: textblock
26106 #: ../tools/virt-rescue.pl:228
26107 msgid ""
26108 "Several environment variables affect virt-rescue.  See "
26109 "L<guestfs(3)/ENVIRONMENT VARIABLES> for the complete list."
26110 msgstr ""
26111
26112 # type: textblock
26113 #: ../tools/virt-rescue.pl:240
26114 msgid ""
26115 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, "
26116 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
26117 msgstr ""
26118
26119 # type: textblock
26120 #: ../tools/virt-make-fs.pl:37
26121 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
26122 msgstr ""
26123
26124 # type: verbatim
26125 #: ../tools/virt-make-fs.pl:41
26126 #, no-wrap
26127 msgid ""
26128 " virt-make-fs [--options] input.tar output.img\n"
26129 "\n"
26130 msgstr ""
26131
26132 # type: verbatim
26133 #: ../tools/virt-make-fs.pl:43
26134 #, no-wrap
26135 msgid ""
26136 " virt-make-fs [--options] input.tar.gz output.img\n"
26137 "\n"
26138 msgstr ""
26139
26140 # type: verbatim
26141 #: ../tools/virt-make-fs.pl:45
26142 #, no-wrap
26143 msgid ""
26144 " virt-make-fs [--options] directory output.img\n"
26145 "\n"
26146 msgstr ""
26147
26148 # type: textblock
26149 #: ../tools/virt-make-fs.pl:49
26150 msgid ""
26151 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
26152 "archive or some files in a directory.  It is similar to tools like "
26153 "L<mkisofs(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, "
26154 "it can create common filesystem types like ext2/3 or NTFS, which can be "
26155 "useful if you want to attach these filesystems to existing virtual machines "
26156 "(eg. to import large amounts of read-only data to a VM)."
26157 msgstr ""
26158
26159 # type: textblock
26160 #: ../tools/virt-make-fs.pl:57
26161 msgid "Basic usage is:"
26162 msgstr ""
26163
26164 # type: verbatim
26165 #: ../tools/virt-make-fs.pl:59
26166 #, no-wrap
26167 msgid ""
26168 " virt-make-fs input output\n"
26169 "\n"
26170 msgstr ""
26171
26172 # type: textblock
26173 #: ../tools/virt-make-fs.pl:61
26174 msgid ""
26175 "where C<input> is either a directory containing files that you want to add, "
26176 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
26177 "C<output> is a disk image.  The input type is detected automatically.  The "
26178 "output disk image defaults to a raw ext2 image unless you specify extra "
26179 "flags (see L</OPTIONS> below)."
26180 msgstr ""
26181
26182 # type: =head2
26183 #: ../tools/virt-make-fs.pl:67
26184 msgid "EXTRA SPACE"
26185 msgstr ""
26186
26187 # type: textblock
26188 #: ../tools/virt-make-fs.pl:69
26189 msgid ""
26190 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
26191 "the files that it contains, but might have extra space.  Depending on how "
26192 "you are going to use the output, you might think this extra space is wasted "
26193 "and want to minimize it, or you might want to leave space so that more files "
26194 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
26195 "but you can use the C<--size> flag to leave space in the filesystem if you "
26196 "want it."
26197 msgstr ""
26198
26199 # type: textblock
26200 #: ../tools/virt-make-fs.pl:77
26201 msgid ""
26202 "An alternative way to leave extra space but not make the output image any "
26203 "bigger is to use an alternative disk image format (instead of the default "
26204 "\"raw\" format).  Using C<--format=qcow2> will use the native QEmu/KVM qcow2 "
26205 "image format (check your hypervisor supports this before using it).  This "
26206 "allows you to choose a large C<--size> but the extra space won't actually be "
26207 "allocated in the image until you try to store something in it."
26208 msgstr ""
26209
26210 # type: textblock
26211 #: ../tools/virt-make-fs.pl:85
26212 msgid ""
26213 "Don't forget that you can also use local commands including L<resize2fs(8)> "
26214 "and L<virt-resize(1)> to resize existing filesystems, or rerun "
26215 "virt-make-resize to build another image from scratch."
26216 msgstr ""
26217
26218 # type: =head3
26219 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123 ../tools/virt-make-fs.pl:142
26220 msgid "EXAMPLE"
26221 msgstr ""
26222
26223 # type: verbatim
26224 #: ../tools/virt-make-fs.pl:91
26225 #, no-wrap
26226 msgid ""
26227 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
26228 "\n"
26229 msgstr ""
26230
26231 # type: =head2
26232 #: ../tools/virt-make-fs.pl:93
26233 msgid "FILESYSTEM TYPE"
26234 msgstr ""
26235
26236 # type: textblock
26237 #: ../tools/virt-make-fs.pl:95
26238 msgid ""
26239 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
26240 "libguestfs supports can be used (but I<not> read-only formats like "
26241 "ISO9660).  Here are some of the more common choices:"
26242 msgstr ""
26243
26244 # type: =item
26245 #: ../tools/virt-make-fs.pl:101
26246 msgid "I<ext3>"
26247 msgstr ""
26248
26249 # type: textblock
26250 #: ../tools/virt-make-fs.pl:103
26251 msgid ""
26252 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
26253 "you are not going to use the filesystem in a way that requires the journal, "
26254 "then this is just wasted overhead."
26255 msgstr ""
26256
26257 # type: =item
26258 #: ../tools/virt-make-fs.pl:107
26259 msgid "I<ntfs> or I<vfat>"
26260 msgstr ""
26261
26262 # type: textblock
26263 #: ../tools/virt-make-fs.pl:109
26264 msgid "Useful if exporting data to a Windows guest."
26265 msgstr ""
26266
26267 # type: textblock
26268 #: ../tools/virt-make-fs.pl:111
26269 msgid ""
26270 "I<Note for vfat>: The tar archive or local directory must only contain files "
26271 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
26272 "program running within libguestfs is unable to change the ownership of "
26273 "non-root files, since vfat itself does not support this."
26274 msgstr ""
26275
26276 # type: =item
26277 #: ../tools/virt-make-fs.pl:116
26278 msgid "I<minix>"
26279 msgstr ""
26280
26281 # type: textblock
26282 #: ../tools/virt-make-fs.pl:118
26283 msgid ""
26284 "Lower overhead than C<ext2>, but certain limitations on filename length and "
26285 "total filesystem size."
26286 msgstr ""
26287
26288 # type: verbatim
26289 #: ../tools/virt-make-fs.pl:125
26290 #, no-wrap
26291 msgid ""
26292 " virt-make-fs --type=minix input minixfs.img\n"
26293 "\n"
26294 msgstr ""
26295
26296 # type: =head2
26297 #: ../tools/virt-make-fs.pl:127
26298 msgid "TO PARTITION OR NOT TO PARTITION"
26299 msgstr ""
26300
26301 # type: textblock
26302 #: ../tools/virt-make-fs.pl:129
26303 msgid "Optionally virt-make-fs can add a partition table to the output disk."
26304 msgstr ""
26305
26306 # type: textblock
26307 #: ../tools/virt-make-fs.pl:131
26308 msgid ""
26309 "Adding a partition can make the disk image more compatible with certain "
26310 "virtualized operating systems which don't expect to see a filesystem "
26311 "directly located on a block device (Linux doesn't care and will happily "
26312 "handle both types)."
26313 msgstr ""
26314
26315 # type: textblock
26316 #: ../tools/virt-make-fs.pl:136
26317 msgid ""
26318 "On the other hand, if you have a partition table then the output image is no "
26319 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
26320 "directly on a partitioned disk image.  (However libguestfs tools such as "
26321 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
26322 msgstr ""
26323
26324 # type: textblock
26325 #: ../tools/virt-make-fs.pl:144
26326 msgid "Add an MBR partition:"
26327 msgstr ""
26328
26329 # type: verbatim
26330 #: ../tools/virt-make-fs.pl:146
26331 #, no-wrap
26332 msgid ""
26333 " virt-make-fs --partition -- input disk.img\n"
26334 "\n"
26335 msgstr ""
26336
26337 # type: textblock
26338 #: ../tools/virt-make-fs.pl:148
26339 msgid ""
26340 "If the output disk image could be terabyte-sized or larger, it's better to "
26341 "use an EFI/GPT-compatible partition table:"
26342 msgstr ""
26343
26344 # type: verbatim
26345 #: ../tools/virt-make-fs.pl:151
26346 #, no-wrap
26347 msgid ""
26348 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
26349 "\n"
26350 msgstr ""
26351
26352 # type: textblock
26353 #: ../tools/virt-make-fs.pl:179
26354 msgid "Enable debugging information."
26355 msgstr ""
26356
26357 # type: =item
26358 #: ../tools/virt-make-fs.pl:185
26359 msgid "B<--size=E<lt>NE<gt>>"
26360 msgstr ""
26361
26362 # type: =item
26363 #: ../tools/virt-make-fs.pl:187
26364 msgid "B<--size=+E<lt>NE<gt>>"
26365 msgstr ""
26366
26367 # type: =item
26368 #: ../tools/virt-make-fs.pl:189
26369 msgid "B<-s E<lt>NE<gt>>"
26370 msgstr ""
26371
26372 # type: =item
26373 #: ../tools/virt-make-fs.pl:191
26374 msgid "B<-s +E<lt>NE<gt>>"
26375 msgstr ""
26376
26377 # type: textblock
26378 #: ../tools/virt-make-fs.pl:193
26379 msgid "Use the C<--size> (or C<-s>) option to choose the size of the output image."
26380 msgstr ""
26381
26382 # type: textblock
26383 #: ../tools/virt-make-fs.pl:196
26384 msgid ""
26385 "If this option is I<not> given, then the output image will be just large "
26386 "enough to contain all the files, with not much wasted space."
26387 msgstr ""
26388
26389 # type: textblock
26390 #: ../tools/virt-make-fs.pl:199
26391 msgid ""
26392 "To choose a fixed size output disk, specify an absolute number followed by "
26393 "b/K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
26394 "Petabytes or Exabytes.  This must be large enough to contain all the input "
26395 "files, else you will get an error."
26396 msgstr ""
26397
26398 # type: textblock
26399 #: ../tools/virt-make-fs.pl:204
26400 msgid ""
26401 "To leave extra space, specify C<+> (plus sign) and a number followed by "
26402 "b/K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
26403 "Petabytes or Exabytes.  For example: C<--size=+200M> means enough space for "
26404 "the input files, and (approximately) an extra 200 MB free space."
26405 msgstr ""
26406
26407 # type: textblock
26408 #: ../tools/virt-make-fs.pl:210
26409 msgid ""
26410 "Note that virt-make-fs estimates free space, and therefore will not produce "
26411 "filesystems containing precisely the free space requested.  (It is much more "
26412 "expensive and time-consuming to produce a filesystem which has precisely the "
26413 "desired free space)."
26414 msgstr ""
26415
26416 # type: =item
26417 #: ../tools/virt-make-fs.pl:219
26418 msgid "B<--format=E<lt>fmtE<gt>>"
26419 msgstr ""
26420
26421 # type: =item
26422 #: ../tools/virt-make-fs.pl:221
26423 msgid "B<-F E<lt>fmtE<gt>>"
26424 msgstr ""
26425
26426 # type: textblock
26427 #: ../tools/virt-make-fs.pl:223
26428 msgid "Choose the output disk image format."
26429 msgstr ""
26430
26431 # type: textblock
26432 #: ../tools/virt-make-fs.pl:225
26433 msgid "The default is C<raw> (raw disk image)."
26434 msgstr ""
26435
26436 # type: textblock
26437 #: ../tools/virt-make-fs.pl:227
26438 msgid ""
26439 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
26440 "that would really make sense here is C<qcow2>."
26441 msgstr ""
26442
26443 # type: =item
26444 #: ../tools/virt-make-fs.pl:234
26445 msgid "B<--type=E<lt>fsE<gt>>"
26446 msgstr ""
26447
26448 # type: =item
26449 #: ../tools/virt-make-fs.pl:236
26450 msgid "B<-t E<lt>fsE<gt>>"
26451 msgstr ""
26452
26453 # type: textblock
26454 #: ../tools/virt-make-fs.pl:238
26455 msgid "Choose the output filesystem type."
26456 msgstr ""
26457
26458 # type: textblock
26459 #: ../tools/virt-make-fs.pl:240
26460 msgid "The default is C<ext2>."
26461 msgstr ""
26462
26463 # type: textblock
26464 #: ../tools/virt-make-fs.pl:242
26465 msgid "Any filesystem which is supported read-write by libguestfs can be used here."
26466 msgstr ""
26467
26468 # type: =item
26469 #: ../tools/virt-make-fs.pl:249
26470 msgid "B<--partition>"
26471 msgstr ""
26472
26473 # type: =item
26474 #: ../tools/virt-make-fs.pl:251
26475 msgid "B<--partition=E<lt>parttypeE<gt>>"
26476 msgstr ""
26477
26478 # type: textblock
26479 #: ../tools/virt-make-fs.pl:253
26480 msgid ""
26481 "If specified, this flag adds an MBR partition table to the output disk "
26482 "image."
26483 msgstr ""
26484
26485 # type: textblock
26486 #: ../tools/virt-make-fs.pl:256
26487 msgid ""
26488 "You can change the partition table type, eg. C<--partition=gpt> for large "
26489 "disks."
26490 msgstr ""
26491
26492 # type: textblock
26493 #: ../tools/virt-make-fs.pl:259
26494 msgid ""
26495 "Note that if you just use a lonesome C<--partition>, the Perl option parser "
26496 "might consider the next parameter to be the partition type.  For example:"
26497 msgstr ""
26498
26499 # type: verbatim
26500 #: ../tools/virt-make-fs.pl:263
26501 #, no-wrap
26502 msgid ""
26503 " virt-make-fs --partition input.tar ...\n"
26504 "\n"
26505 msgstr ""
26506
26507 # type: textblock
26508 #: ../tools/virt-make-fs.pl:265
26509 msgid ""
26510 "would cause virt-make-fs to think you wanted to use a partition type of "
26511 "C<input.tar> which is completely wrong.  To avoid this, use C<--> (a double "
26512 "dash) between options and the input file argument:"
26513 msgstr ""
26514
26515 # type: verbatim
26516 #: ../tools/virt-make-fs.pl:269
26517 #, no-wrap
26518 msgid ""
26519 " virt-make-fs --partition -- input.tar ...\n"
26520 "\n"
26521 msgstr ""
26522
26523 # type: textblock
26524 #: ../tools/virt-make-fs.pl:536
26525 msgid ""
26526 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar(1)>, L<mkisofs(1)>, "
26527 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, "
26528 "L<guestfs(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
26529 msgstr ""
26530
26531 # type: verbatim
26532 #: ../tools/virt-make-fs.pl:553
26533 #, no-wrap
26534 msgid ""
26535 " export LIBGUESTFS_DEBUG=1\n"
26536 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
26537 "\n"
26538 msgstr ""
26539
26540 # type: textblock
26541 #: ../tools/virt-make-fs.pl:556
26542 msgid ""
26543 "Attach /tmp/virt-make-fs.log to a new bug report at "
26544 "L<https://bugzilla.redhat.com/>"
26545 msgstr ""
26546
26547 # type: textblock
26548 #: ../tools/virt-list-partitions.pl:32
26549 msgid "virt-list-partitions - List partitions in a virtual machine or disk image"
26550 msgstr ""
26551
26552 # type: verbatim
26553 #: ../tools/virt-list-partitions.pl:36
26554 #, no-wrap
26555 msgid ""
26556 " virt-list-partitions [--options] domname\n"
26557 "\n"
26558 msgstr ""
26559
26560 # type: verbatim
26561 #: ../tools/virt-list-partitions.pl:38
26562 #, no-wrap
26563 msgid ""
26564 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
26565 "\n"
26566 msgstr ""
26567
26568 # type: textblock
26569 #: ../tools/virt-list-partitions.pl:42
26570 msgid ""
26571 "C<virt-list-partitions> is a command line tool to list the partitions that "
26572 "are contained in a virtual machine or disk image.  It is mainly useful as a "
26573 "first step to using L<virt-resize(1)>."
26574 msgstr ""
26575
26576 # type: textblock
26577 #: ../tools/virt-list-partitions.pl:47
26578 msgid ""
26579 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
26580 "functionality.  For more complex cases you should look at the "
26581 "L<guestfish(1)> tool."
26582 msgstr ""
26583
26584 # type: =item
26585 #: ../tools/virt-list-partitions.pl:87
26586 msgid "B<-h> | B<--human-readable>"
26587 msgstr ""
26588
26589 # type: textblock
26590 #: ../tools/virt-list-partitions.pl:89
26591 msgid "Show sizes in human-readable form (eg. \"1G\")."
26592 msgstr ""
26593
26594 # type: textblock
26595 #: ../tools/virt-list-partitions.pl:97
26596 msgid ""
26597 "With this option, C<virt-list-partitions> displays the type and size of each "
26598 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
26599 msgstr ""
26600
26601 # type: =item
26602 #: ../tools/virt-list-partitions.pl:104
26603 msgid "B<-t> | B<--total>"
26604 msgstr ""
26605
26606 # type: textblock
26607 #: ../tools/virt-list-partitions.pl:106
26608 msgid "Display the total size of each block device (as a separate row or rows)."
26609 msgstr ""
26610
26611 # type: textblock
26612 #: ../tools/virt-list-partitions.pl:238
26613 msgid ""
26614 "L<guestfs(3)>, L<guestfish(1)>, L<virt-list-filesystems(1)>, "
26615 "L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
26616 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
26617 msgstr ""